@uxland/primary-shell 7.36.2 → 7.36.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as s, f as e, x as r, z as t, c as n, d as o, P as l, Q as c, p as g, q as p, o as m, e as P, v, j as E, u as h, g as u, w as R, l as S, m as y, a as d, n as w, y as C } from "./index-DRzDb9o9.js";
1
+ import { E as s, f as e, x as r, z as t, c as n, d as o, P as l, Q as c, p as g, q as p, o as m, e as P, v, j as E, u as h, g as u, w as R, l as S, m as y, a as d, n as w, y as C } from "./index-YWggdwLf.js";
2
2
  export {
3
3
  s as EcapEventManager,
4
4
  e as ExitShell,
@@ -111,7 +111,7 @@
111
111
  * @license
112
112
  * Copyright 2021 Google LLC
113
113
  * SPDX-License-Identifier: BSD-3-Clause
114
- */function o$Y(J){return(W,X)=>{const{slot:te,selector:re}=J??{},oe="slot"+(te?`[name=${te}]`:":not([name])");return e$P(W,X,{get(){const ne=this.renderRoot?.querySelector(oe),de=ne?.assignedElements(J)??[];return re===void 0?de:de.filter((ce=>ce.matches(re)))}})}}const v$m=J=>j$3(J,p$h);let c$p=class{constructor(){this.viewsByRegion={},this.regions={}}registerRegion(W,X){this.regions[W]=[...this.regions[W]||[],X]}unregisterRegion(W,X){this.regions[W]=this.getRegionsByName(W).filter(te=>te!==X)}registerView(W,X,te){const re=this.viewsByRegion[W]||[],oe=re.findIndex(ne=>ne.key===X);oe>=0?(re[oe]={key:X,view:te},this.viewsByRegion[W]=re):this.viewsByRegion[W]=[...re,{key:X,view:te}]}unregisterView(W,X){const te=this.viewsByRegion[W];te&&(this.viewsByRegion[W]=te.filter(re=>re.key!==X))}getRegisteredViews(W){return this.viewsByRegion[W]||[]}getRegionsByName(W){return this.regions[W]||[]}destroy(){this.viewsByRegion={},this.regions={}}clear(){this.viewsByRegion={}}},n$x=class Ti{constructor(W){this._viewRegistry=W,this._regions={}}add(W,X){const te=this.getRegion(W);return te&&this.remove(te),this._regions[W]=X,this._viewRegistry.registerRegion(W,X),this}getRegion(W){return this._regions[W]}remove(W){let X,te="";return typeof W=="string"?(X=this.getRegion(W),te=W,delete this._regions[W]):typeof W=="object"&&(te=Object.keys(this._regions).find(re=>this._regions[re]===W),te&&(X=W,delete this._regions[te])),te&&X&&this._viewRegistry.unregisterRegion(te,X),X}addViewToRegion(W,X,te){const re=this.getRegion(W);if(!re)throw new Error(`Couldn't find a region with name: ${W}`);return re.addView(X,te),this}registerViewWithRegion(W,X,te){return this._viewRegistry.registerView(W,X,te),this._viewRegistry.getRegionsByName(W).forEach(re=>{re.containsView(X)||re.addView(X,te)}),this}unregisterViewFromRegion(W,X){return this._viewRegistry.unregisterView(W,X),this._viewRegistry.getRegionsByName(W).forEach(te=>te.removeView(X)),this}getRegisteredViews(W){return this._viewRegistry.getRegisteredViews(W)}clear(){return Object.values(this._viewRegistry.regions).forEach(W=>{W?.length&&Object.keys(W[0].views).forEach(X=>W[0]?.removeView(X))}),this}destroy(){return this.clear(),Object.values(this._viewRegistry.regions).forEach(W=>this.remove(W[0])),this._regions={},this}createRegionManager(){return new Ti(this._viewRegistry)}},w$5=class extends n$x{constructor(W){const X=new c$p;super(X),this._name=W}clear(){return super.clear(),this._viewRegistry.clear(),this}destroy(){return super.destroy(),this._viewRegistry.destroy(),this}};const f$r=J=>new w$5(J),l$w=J=>J.importer(),R$3=async(J,W,X)=>{try{const te=await l$w(J),re=W(J);return await X(re,te),{dispose:()=>y$c(re,te),importedPlugin:te,apiInstance:re}}catch(te){console.error(`Failed to load plugin ${J.pluginId}:`,te)}},u$q=async(J,W)=>{await W.initialize(J)},y$c=(J,W)=>W.dispose(J),p$d=async(J,W)=>{if(!J?.length)throw new Error("No plugins to bootstrap");return(await Promise.allSettled(J.map(X=>R$3(X,W,u$q)))).map(X=>X.status==="fulfilled"?X.value:null)},primariaShellId="primaria-shell";var __extends$2=(function(){var J=function(W,X){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,re){te.__proto__=re}||function(te,re){for(var oe in re)Object.prototype.hasOwnProperty.call(re,oe)&&(te[oe]=re[oe])},J(W,X)};return function(W,X){if(typeof X!="function"&&X!==null)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");J(W,X);function te(){this.constructor=W}W.prototype=X===null?Object.create(X):(te.prototype=X.prototype,new te)}})(),__spreadArray$3=function(J,W,X){if(X||arguments.length===2)for(var te=0,re=W.length,oe;te<re;te++)(oe||!(te in W))&&(oe||(oe=Array.prototype.slice.call(W,0,te)),oe[te]=W[te]);return J.concat(oe||Array.prototype.slice.call(W))},OrderMappings=(function(){function J(){this._mappings=[]}return J.prototype.add=function(W){W.order!==0&&(W.order=this._mappings.length),this._mappings.push(W),this.onAdded(W)},J.prototype.clear=function(){this._mappings=[]},J})();function byOrder(J,W){return(W.order||0)-(J.order||0)}var NotificationMappings=(function(J){__extends$2(W,J);function W(){return J!==null&&J.apply(this,arguments)||this}return W.prototype.onAdded=function(X){var te=X.handler.prototype.constructor.name;mediatorSettings.resolver.add(te,X.handler)},W.prototype.setOrder=function(X,te){for(var re=this.getAll(X),oe=0,ne=re;oe<ne.length;oe++){var de=ne[oe];de.order=te.indexOf(de.handler)}},W.prototype.getAll=function(X){var te=this._mappings.filter(function(re){return re.notification===X});if(te.length===0)throw new Error("Cannot find notification handler with key: ".concat(X.prototype.name));return te.sort(byOrder)},W})(OrderMappings),BehaviorMappings=(function(J){__extends$2(W,J);function W(){return J!==null&&J.apply(this,arguments)||this}return W.prototype.onAdded=function(X){var te=X.behavior.prototype.constructor.name;mediatorSettings.resolver.add(te,X.behavior)},W.prototype.setOrder=function(X){for(var te=this.getAll(),re=0,oe=te;re<oe.length;re++){var ne=oe[re];ne.order=X.indexOf(ne.behavior)}},W.prototype.getAll=function(){var X=__spreadArray$3([],this._mappings,!0);return X.sort(byOrder)},W})(OrderMappings),Dispatcher=(function(){function J(){this._notifications=new NotificationMappings,this._behaviors=new BehaviorMappings}return Object.defineProperty(J.prototype,"notifications",{get:function(){return this._notifications},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"behaviors",{get:function(){return this._behaviors},enumerable:!1,configurable:!0}),J})(),HandlerInstance=(function(){function J(W,X){this._name=W,this._value=X}return Object.defineProperty(J.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),J})(),Resolver=(function(){function J(){this._instances=[]}return J.prototype.resolve=function(W){var X=this._instances.find(function(re){return re.name===W});if(!X)throw new Error("Cannot find element with key: ".concat(W));var te=X.value;return new te},J.prototype.add=function(W,X){var te=this._instances.find(function(re){return re.name===W});if(te===void 0)this._instances.push(new HandlerInstance(W,X));else throw new Error("The key ".concat(W," is already been added"))},J.prototype.remove=function(W){var X=this._instances.findIndex(function(te){return te.name===W});X>=0&&this._instances.splice(X,1)},J.prototype.clear=function(){this._instances=[]},J})(),MediatrSettings=(function(){function J(){this.resolver=new Resolver,this.dispatcher=new Dispatcher}return J})(),mediatorSettings=new MediatrSettings,requestHandler=function(J){return function(W){var X=J.prototype.constructor.name;mediatorSettings.resolver.add(X,W)}},notificationHandler=function(J){return function(W){mediatorSettings.dispatcher.notifications.add({notification:J,handler:W})}},__awaiter$4=function(J,W,X,te){function re(oe){return oe instanceof X?oe:new X(function(ne){ne(oe)})}return new(X||(X=Promise))(function(oe,ne){function de(he){try{ue(te.next(he))}catch(pe){ne(pe)}}function ce(he){try{ue(te.throw(he))}catch(pe){ne(pe)}}function ue(he){he.done?oe(he.value):re(he.value).then(de,ce)}ue((te=te.apply(J,W||[])).next())})},__generator$4=function(J,W){var X={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},te,re,oe,ne;return ne={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function de(ue){return function(he){return ce([ue,he])}}function ce(ue){if(te)throw new TypeError("Generator is already executing.");for(;ne&&(ne=0,ue[0]&&(X=0)),X;)try{if(te=1,re&&(oe=ue[0]&2?re.return:ue[0]?re.throw||((oe=re.return)&&oe.call(re),0):re.next)&&!(oe=oe.call(re,ue[1])).done)return oe;switch(re=0,oe&&(ue=[ue[0]&2,oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,re=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(oe=X.trys,!(oe=oe.length>0&&oe[oe.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!oe||ue[1]>oe[0]&&ue[1]<oe[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<oe[1]){X.label=oe[1],oe=ue;break}if(oe&&X.label<oe[2]){X.label=oe[2],X.ops.push(ue);break}oe[2]&&X.ops.pop(),X.trys.pop();continue}ue=W.call(J,X)}catch(he){ue=[6,he],re=0}finally{te=oe=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},Mediator=(function(){function J(){}return J.prototype.send=function(W){return __awaiter$4(this,void 0,void 0,function(){var X,te,re,oe,ne,de=this;return __generator$4(this,function(ce){switch(ce.label){case 0:return X=W.constructor.name,te=mediatorSettings.resolver.resolve(X),re=mediatorSettings.dispatcher.behaviors.getAll().map(function(ue){return ue.behavior}),oe=0,ne=function(){return __awaiter$4(de,void 0,void 0,function(){var ue,he;return __generator$4(this,function(pe){switch(pe.label){case 0:return oe<re.length?(ue=re[oe],he=mediatorSettings.resolver.resolve(ue.name),oe++,[4,he.handle(W,ne)]):[3,2];case 1:return[2,pe.sent()];case 2:return[4,te.handle(W)];case 3:return[2,pe.sent()]}})})},[4,ne()];case 1:return[2,ce.sent()]}})})},J.prototype.publish=function(W){return __awaiter$4(this,void 0,void 0,function(){var X,te=this;return __generator$4(this,function(re){switch(re.label){case 0:return X=mediatorSettings.dispatcher.notifications.getAll(W.constructor),[4,Promise.all(X.map(function(oe){return __awaiter$4(te,void 0,void 0,function(){var ne;return __generator$4(this,function(de){return ne=mediatorSettings.resolver.resolve(oe.handler.name),[2,ne.handle(W)]})})}))];case 1:return re.sent(),[2]}})})},J})();const BROKER_EVENTS={activityHistory:{refreshDataRequested:"refresh_history_data_requested",errorLoadingData:"error_loading_activity_history_data",searched:"activity_history_searched",filtersCleaned:"activity_history_filters_cleaned",diagnosticFilterDeactivated:"activity_history_diagnostic_filter_deactivated",injectAsyncHistoryItemsRequest:"inject_async_history_items_request",addHistoryItemRequest:"add_history_item_request",addHistoryItemsRequest:"add_history_items_request",updateHistoryItemRequest:"update_history_item_request",removeHistoryItemRequest:"remove_history_item_request"},shell:{appCrashed:"appCrashed",mainViewChanged:"mainViewChanged",refreshTokenFailed:"refreshTokenFailed",mpidHeaderInvalid:"mpidHeaderInvalid",quickActionBusyChanged:"quickActionBusyChanged",scrollToNavItemRequested:"scrollToNavItemRequested",scrollToNavItemCompleted:"scrollToNavItemCompleted"}},disposableFactory=J=>({dispose:()=>{mediatorSettings.resolver.remove(J.name);const W=mediatorSettings.dispatcher.notifications._mappings.findIndex(X=>X.handler.name===J.name);W>-1&&mediatorSettings.dispatcher.notifications._mappings.splice(W,1)}});class Broker{constructor(){this.events=BROKER_EVENTS,this.eventConstructorMap=new Map,this.requestConstructorMap=new Map,this.mediator=new Mediator,mediatorSettings.resolver.clear()}send(W,X){const te=typeof W=="string"?this.getRequest(W,X):W;return this.mediator.send(te)}publish(W,X){const te=typeof W=="string"?this.getEvent(W,X):W,re=te.constructor||Object.getPrototypeOf(te).constructor;return mediatorSettings.dispatcher.notifications._mappings.filter(ne=>ne.notification===re).length?this.mediator.publish(te):Promise.resolve()}subscribe(W,X){const te=typeof W=="function"?W:this.getEventType(W),re=createDynamicEventHandler(X);return notificationHandler(te)(re),disposableFactory(re)}registerRequest(W,X){const te=typeof W=="function"?W:this.getRequestType(W),re=createDynamicRequestHandler(X);return requestHandler(te)(re),disposableFactory(re)}getEvent(W,X){const te=this.getEventType(W);return new te(X)}getRequest(W,X){const te=this.getRequestType(W);return new te(X)}getEventType(W){if(!this.eventConstructorMap.has(W)){const X=createDynamicEventClass(W);this.eventConstructorMap.set(W,X)}return this.eventConstructorMap.get(W)}getRequestType(W){if(!this.requestConstructorMap.has(W)){const X=createDynamicRequestClass(W);this.requestConstructorMap.set(W,X)}return this.requestConstructorMap.get(W)}}const createDynamicEventClass=J=>new Function(`return class Event_${J} {
114
+ */function o$Y(J){return(W,X)=>{const{slot:te,selector:re}=J??{},oe="slot"+(te?`[name=${te}]`:":not([name])");return e$P(W,X,{get(){const ne=this.renderRoot?.querySelector(oe),de=ne?.assignedElements(J)??[];return re===void 0?de:de.filter((ce=>ce.matches(re)))}})}}const v$m=J=>j$3(J,p$h);let w$5=class{constructor(){this.viewsByRegion={},this.regions={}}registerRegion(W,X){this.regions[W]=[...this.regions[W]||[],X]}unregisterRegion(W,X){this.regions[W]=this.getRegionsByName(W).filter(te=>te!==X)}registerView(W,X,te){const re=this.viewsByRegion[W]||[],oe=re.findIndex(ne=>ne.key===X);oe>=0?(re[oe]={key:X,view:te},this.viewsByRegion[W]=re):this.viewsByRegion[W]=[...re,{key:X,view:te}]}unregisterView(W,X){const te=this.viewsByRegion[W];te&&(this.viewsByRegion[W]=te.filter(re=>re.key!==X))}getRegisteredViews(W){return this.viewsByRegion[W]||[]}getRegionsByName(W){return this.regions[W]||[]}destroy(){this.viewsByRegion={},this.regions={}}clear(){this.viewsByRegion={}}},n$x=class Ti{constructor(W){this._viewRegistry=W,this._regions={}}add(W,X){const te=this.getRegion(W);if(te){const re=te.host;if(re)for(;re.firstChild;)re.removeChild(re.firstChild);this.remove(te),delete this._viewRegistry.viewsByRegion[W]}return this._regions[W]=X,this._viewRegistry.registerRegion(W,X),this}getRegion(W){return this._regions[W]}remove(W){let X,te="";return typeof W=="string"?(X=this.getRegion(W),te=W,delete this._regions[W]):typeof W=="object"&&(te=Object.keys(this._regions).find(re=>this._regions[re]===W),te&&(X=W,delete this._regions[te])),te&&X&&this._viewRegistry.unregisterRegion(te,X),X}addViewToRegion(W,X,te){const re=this.getRegion(W);if(!re)throw new Error(`Couldn't find a region with name: ${W}`);return re.addView(X,te),this}registerViewWithRegion(W,X,te){return this._viewRegistry.registerView(W,X,te),this._viewRegistry.getRegionsByName(W).forEach(re=>{re.containsView(X)||re.addView(X,te)}),this}unregisterViewFromRegion(W,X){return this._viewRegistry.unregisterView(W,X),this._viewRegistry.getRegionsByName(W).forEach(te=>te.removeView(X)),this}getRegisteredViews(W){return this._viewRegistry.getRegisteredViews(W)}clear(){return Object.values(this._viewRegistry.regions).forEach(W=>{W?.length&&Object.keys(W[0].views).forEach(X=>W[0]?.removeView(X))}),this}destroy(){return this.clear(),Object.values(this._viewRegistry.regions).forEach(W=>this.remove(W[0])),this._regions={},this}createRegionManager(){return new Ti(this._viewRegistry)}},c$p=class extends n$x{constructor(W){const X=new w$5;super(X),this._name=W}clear(){return super.clear(),this._viewRegistry.clear(),this}destroy(){return super.destroy(),this._viewRegistry.destroy(),this}};const f$r=J=>new c$p(J),l$w=J=>J.importer(),R$3=async(J,W,X)=>{try{const te=await l$w(J),re=W(J);return await X(re,te),{dispose:()=>y$c(re,te),importedPlugin:te,apiInstance:re}}catch(te){console.error(`Failed to load plugin ${J.pluginId}:`,te)}},u$q=async(J,W)=>{await W.initialize(J)},y$c=(J,W)=>W.dispose(J),p$d=async(J,W)=>{if(!J?.length)throw new Error("No plugins to bootstrap");return(await Promise.allSettled(J.map(X=>R$3(X,W,u$q)))).map(X=>X.status==="fulfilled"?X.value:null)},primariaShellId="primaria-shell";var __extends$2=(function(){var J=function(W,X){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,re){te.__proto__=re}||function(te,re){for(var oe in re)Object.prototype.hasOwnProperty.call(re,oe)&&(te[oe]=re[oe])},J(W,X)};return function(W,X){if(typeof X!="function"&&X!==null)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");J(W,X);function te(){this.constructor=W}W.prototype=X===null?Object.create(X):(te.prototype=X.prototype,new te)}})(),__spreadArray$3=function(J,W,X){if(X||arguments.length===2)for(var te=0,re=W.length,oe;te<re;te++)(oe||!(te in W))&&(oe||(oe=Array.prototype.slice.call(W,0,te)),oe[te]=W[te]);return J.concat(oe||Array.prototype.slice.call(W))},OrderMappings=(function(){function J(){this._mappings=[]}return J.prototype.add=function(W){W.order!==0&&(W.order=this._mappings.length),this._mappings.push(W),this.onAdded(W)},J.prototype.clear=function(){this._mappings=[]},J})();function byOrder(J,W){return(W.order||0)-(J.order||0)}var NotificationMappings=(function(J){__extends$2(W,J);function W(){return J!==null&&J.apply(this,arguments)||this}return W.prototype.onAdded=function(X){var te=X.handler.prototype.constructor.name;mediatorSettings.resolver.add(te,X.handler)},W.prototype.setOrder=function(X,te){for(var re=this.getAll(X),oe=0,ne=re;oe<ne.length;oe++){var de=ne[oe];de.order=te.indexOf(de.handler)}},W.prototype.getAll=function(X){var te=this._mappings.filter(function(re){return re.notification===X});if(te.length===0)throw new Error("Cannot find notification handler with key: ".concat(X.prototype.name));return te.sort(byOrder)},W})(OrderMappings),BehaviorMappings=(function(J){__extends$2(W,J);function W(){return J!==null&&J.apply(this,arguments)||this}return W.prototype.onAdded=function(X){var te=X.behavior.prototype.constructor.name;mediatorSettings.resolver.add(te,X.behavior)},W.prototype.setOrder=function(X){for(var te=this.getAll(),re=0,oe=te;re<oe.length;re++){var ne=oe[re];ne.order=X.indexOf(ne.behavior)}},W.prototype.getAll=function(){var X=__spreadArray$3([],this._mappings,!0);return X.sort(byOrder)},W})(OrderMappings),Dispatcher=(function(){function J(){this._notifications=new NotificationMappings,this._behaviors=new BehaviorMappings}return Object.defineProperty(J.prototype,"notifications",{get:function(){return this._notifications},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"behaviors",{get:function(){return this._behaviors},enumerable:!1,configurable:!0}),J})(),HandlerInstance=(function(){function J(W,X){this._name=W,this._value=X}return Object.defineProperty(J.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),J})(),Resolver=(function(){function J(){this._instances=[]}return J.prototype.resolve=function(W){var X=this._instances.find(function(re){return re.name===W});if(!X)throw new Error("Cannot find element with key: ".concat(W));var te=X.value;return new te},J.prototype.add=function(W,X){var te=this._instances.find(function(re){return re.name===W});if(te===void 0)this._instances.push(new HandlerInstance(W,X));else throw new Error("The key ".concat(W," is already been added"))},J.prototype.remove=function(W){var X=this._instances.findIndex(function(te){return te.name===W});X>=0&&this._instances.splice(X,1)},J.prototype.clear=function(){this._instances=[]},J})(),MediatrSettings=(function(){function J(){this.resolver=new Resolver,this.dispatcher=new Dispatcher}return J})(),mediatorSettings=new MediatrSettings,requestHandler=function(J){return function(W){var X=J.prototype.constructor.name;mediatorSettings.resolver.add(X,W)}},notificationHandler=function(J){return function(W){mediatorSettings.dispatcher.notifications.add({notification:J,handler:W})}},__awaiter$4=function(J,W,X,te){function re(oe){return oe instanceof X?oe:new X(function(ne){ne(oe)})}return new(X||(X=Promise))(function(oe,ne){function de(he){try{ue(te.next(he))}catch(pe){ne(pe)}}function ce(he){try{ue(te.throw(he))}catch(pe){ne(pe)}}function ue(he){he.done?oe(he.value):re(he.value).then(de,ce)}ue((te=te.apply(J,W||[])).next())})},__generator$4=function(J,W){var X={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},te,re,oe,ne;return ne={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function de(ue){return function(he){return ce([ue,he])}}function ce(ue){if(te)throw new TypeError("Generator is already executing.");for(;ne&&(ne=0,ue[0]&&(X=0)),X;)try{if(te=1,re&&(oe=ue[0]&2?re.return:ue[0]?re.throw||((oe=re.return)&&oe.call(re),0):re.next)&&!(oe=oe.call(re,ue[1])).done)return oe;switch(re=0,oe&&(ue=[ue[0]&2,oe.value]),ue[0]){case 0:case 1:oe=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,re=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(oe=X.trys,!(oe=oe.length>0&&oe[oe.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!oe||ue[1]>oe[0]&&ue[1]<oe[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<oe[1]){X.label=oe[1],oe=ue;break}if(oe&&X.label<oe[2]){X.label=oe[2],X.ops.push(ue);break}oe[2]&&X.ops.pop(),X.trys.pop();continue}ue=W.call(J,X)}catch(he){ue=[6,he],re=0}finally{te=oe=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}},Mediator=(function(){function J(){}return J.prototype.send=function(W){return __awaiter$4(this,void 0,void 0,function(){var X,te,re,oe,ne,de=this;return __generator$4(this,function(ce){switch(ce.label){case 0:return X=W.constructor.name,te=mediatorSettings.resolver.resolve(X),re=mediatorSettings.dispatcher.behaviors.getAll().map(function(ue){return ue.behavior}),oe=0,ne=function(){return __awaiter$4(de,void 0,void 0,function(){var ue,he;return __generator$4(this,function(pe){switch(pe.label){case 0:return oe<re.length?(ue=re[oe],he=mediatorSettings.resolver.resolve(ue.name),oe++,[4,he.handle(W,ne)]):[3,2];case 1:return[2,pe.sent()];case 2:return[4,te.handle(W)];case 3:return[2,pe.sent()]}})})},[4,ne()];case 1:return[2,ce.sent()]}})})},J.prototype.publish=function(W){return __awaiter$4(this,void 0,void 0,function(){var X,te=this;return __generator$4(this,function(re){switch(re.label){case 0:return X=mediatorSettings.dispatcher.notifications.getAll(W.constructor),[4,Promise.all(X.map(function(oe){return __awaiter$4(te,void 0,void 0,function(){var ne;return __generator$4(this,function(de){return ne=mediatorSettings.resolver.resolve(oe.handler.name),[2,ne.handle(W)]})})}))];case 1:return re.sent(),[2]}})})},J})();const BROKER_EVENTS={activityHistory:{refreshDataRequested:"refresh_history_data_requested",errorLoadingData:"error_loading_activity_history_data",searched:"activity_history_searched",filtersCleaned:"activity_history_filters_cleaned",diagnosticFilterDeactivated:"activity_history_diagnostic_filter_deactivated",injectAsyncHistoryItemsRequest:"inject_async_history_items_request",addHistoryItemRequest:"add_history_item_request",addHistoryItemsRequest:"add_history_items_request",updateHistoryItemRequest:"update_history_item_request",removeHistoryItemRequest:"remove_history_item_request"},shell:{appCrashed:"appCrashed",mainViewChanged:"mainViewChanged",refreshTokenFailed:"refreshTokenFailed",mpidHeaderInvalid:"mpidHeaderInvalid",quickActionBusyChanged:"quickActionBusyChanged",scrollToNavItemRequested:"scrollToNavItemRequested",scrollToNavItemCompleted:"scrollToNavItemCompleted"}},disposableFactory=J=>({dispose:()=>{mediatorSettings.resolver.remove(J.name);const W=mediatorSettings.dispatcher.notifications._mappings.findIndex(X=>X.handler.name===J.name);W>-1&&mediatorSettings.dispatcher.notifications._mappings.splice(W,1)}});class Broker{constructor(){this.events=BROKER_EVENTS,this.eventConstructorMap=new Map,this.requestConstructorMap=new Map,this.mediator=new Mediator,mediatorSettings.resolver.clear()}send(W,X){const te=typeof W=="string"?this.getRequest(W,X):W;return this.mediator.send(te)}publish(W,X){const te=typeof W=="string"?this.getEvent(W,X):W,re=te.constructor||Object.getPrototypeOf(te).constructor;return mediatorSettings.dispatcher.notifications._mappings.filter(ne=>ne.notification===re).length?this.mediator.publish(te):Promise.resolve()}subscribe(W,X){const te=typeof W=="function"?W:this.getEventType(W),re=createDynamicEventHandler(X);return notificationHandler(te)(re),disposableFactory(re)}registerRequest(W,X){const te=typeof W=="function"?W:this.getRequestType(W),re=createDynamicRequestHandler(X);return requestHandler(te)(re),disposableFactory(re)}getEvent(W,X){const te=this.getEventType(W);return new te(X)}getRequest(W,X){const te=this.getRequestType(W);return new te(X)}getEventType(W){if(!this.eventConstructorMap.has(W)){const X=createDynamicEventClass(W);this.eventConstructorMap.set(W,X)}return this.eventConstructorMap.get(W)}getRequestType(W){if(!this.requestConstructorMap.has(W)){const X=createDynamicRequestClass(W);this.requestConstructorMap.set(W,X)}return this.requestConstructorMap.get(W)}}const createDynamicEventClass=J=>new Function(`return class Event_${J} {
115
115
  constructor(payload) {
116
116
  this.payload = payload;
117
117
  }
@@ -149,7 +149,7 @@
149
149
  align-items: center;
150
150
  justify-content: center;
151
151
  position: fixed;
152
- z-index: 999;
152
+ z-index: 998;
153
153
  left: 0;
154
154
  top: 0;
155
155
  width: 100%;