@uxland/primary-shell 7.46.2 → 7.46.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/{component-BE8pBQfD.js → component-Cubb3jxz.js} +2 -2
- package/dist/{component-BE8pBQfD.js.map → component-Cubb3jxz.js.map} +1 -1
- package/dist/{index-JPNbnLH1.js → index-DtHjM8k5.js} +32 -89
- package/dist/index-DtHjM8k5.js.map +1 -0
- package/dist/index.js +14 -17
- package/dist/index.umd.cjs +10 -10
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/components/clinical-pathways-action-menu/clinical-pathways-action-menu.d.ts +1 -1
- package/dist/primary/shell/src/UI/components/communication-action-menu/communication-action-menu.d.ts +1 -1
- package/dist/primary/shell/src/UI/components/petitioner-action-menu/petitioner-action-menu.d.ts +1 -1
- package/dist/primary/shell/src/UI/components/primaria-shell/primaria-shell.d.ts +0 -1
- package/dist/primary/shell/src/api/broker/broker-events.d.ts +0 -2
- package/dist/primary/shell/src/api/token-manager/token-manager.d.ts +15 -2
- package/dist/primary/shell/src/index.d.ts +3 -1
- package/package.json +1 -1
- package/src/UI/components/clinical-pathways-action-menu/clinical-pathways-action-menu.ts +6 -5
- package/src/UI/components/communication-action-menu/communication-action-menu.ts +6 -5
- package/src/UI/components/petitioner-action-menu/petitioner-action-menu.ts +6 -5
- package/src/UI/components/primaria-shell/primaria-shell.ts +2 -92
- package/src/api/broker/broker-events.ts +0 -2
- package/src/api/token-manager/token-manager.ts +16 -2
- package/src/features/utils.ts +6 -3
- package/src/index.ts +9 -1
- package/dist/index-JPNbnLH1.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
import { E as s,
|
|
1
|
+
import { E as s, e, w as t, y as n, b as r, c as o, P as l, Q as c, o as g, p as m, q as p, n as v, d as P, v as E, g as h, u, f as R, j as S, l as d, s as w, m as y, x as C } from "./index-DtHjM8k5.js";
|
|
2
2
|
export {
|
|
3
3
|
s as EcapEventManager,
|
|
4
4
|
e as ExitShell,
|
|
5
5
|
t as PrimariaContentSwitcher,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
n as PrimariaInteractionService,
|
|
7
|
+
r as PrimariaNavItem,
|
|
8
8
|
o as PrimariaRegion,
|
|
9
9
|
l as PrimariaRegionHost,
|
|
10
10
|
c as QuickActionItem,
|
|
11
11
|
g as activityHistoryRegions,
|
|
12
|
-
m as
|
|
13
|
-
p as
|
|
14
|
-
v as
|
|
15
|
-
P as
|
|
16
|
-
h as createEcapEventManager,
|
|
12
|
+
m as administrativeManagementRegions,
|
|
13
|
+
p as bootstrapPlugins,
|
|
14
|
+
v as clinicalMonitoringRegions,
|
|
15
|
+
P as createEcapEventManager,
|
|
17
16
|
E as disposePlugins,
|
|
18
|
-
|
|
17
|
+
h as disposeShell,
|
|
19
18
|
u as handleStartupPlugin,
|
|
20
|
-
|
|
21
|
-
S as
|
|
22
|
-
d as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
C as shellRegions,
|
|
27
|
-
f as wrapReactViewFactory
|
|
19
|
+
R as initializeShell,
|
|
20
|
+
S as raiseCloseEvent,
|
|
21
|
+
d as raiseCustomCloseEvent,
|
|
22
|
+
w as shellApi,
|
|
23
|
+
y as shellRegions,
|
|
24
|
+
C as wrapReactViewFactory
|
|
28
25
|
};
|
|
29
26
|
//# sourceMappingURL=index.js.map
|
package/dist/index.umd.cjs
CHANGED
|
@@ -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(X){return(W,te)=>{const{slot:re,selector:oe}=X??{},ne="slot"+(re?`[name=${re}]`:":not([name])");return e$U(W,te,{get(){const de=this.renderRoot?.querySelector(ne),ce=de?.assignedElements(X)??[];return oe===void 0?ce:ce.filter((ue=>ue.matches(oe)))}})}}const v$n=X=>j$3(X,p$h);let l$r=class{constructor(){this.viewsByRegion={},this.regions={}}registerRegion(W,te){this.regions[W]=[...this.regions[W]||[],te]}unregisterRegion(W,te){this.regions[W]=this.getRegionsByName(W).filter(re=>re!==te)}registerView(W,te,re){const oe=this.viewsByRegion[W]||[],ne=oe.findIndex(de=>de.key===te);ne>=0?(oe[ne]={key:te,view:re},this.viewsByRegion[W]=oe):this.viewsByRegion[W]=[...oe,{key:te,view:re}]}unregisterView(W,te){const re=this.viewsByRegion[W];re&&(this.viewsByRegion[W]=re.filter(oe=>oe.key!==te))}getRegisteredViews(W){return this.viewsByRegion[W]||[]}getRegionsByName(W){return this.regions[W]||[]}destroy(){this.viewsByRegion={},this.regions={}}clear(){this.viewsByRegion={}}},g$o=class Ni{constructor(W){this._viewRegistry=W,this._regions={}}add(W,te){const re=this.getRegion(W);if(re){const oe=re.host,ne=te.host;if(oe&&ne&&oe===ne)throw oe.uxlRegion=re,new Error(`RegionManager.add: region "${W}" already exists for the same host (idempotent rejection)`);const de=oe;if(de)for(;de.firstChild;)de.removeChild(de.firstChild);this.remove(re)}return this._regions[W]=te,this._viewRegistry.registerRegion(W,te),this}getRegion(W){return this._regions[W]}remove(W){let te,re="";return typeof W=="string"?(te=this.getRegion(W),re=W,delete this._regions[W]):typeof W=="object"&&(re=Object.keys(this._regions).find(oe=>this._regions[oe]===W),re&&(te=W,delete this._regions[re])),re&&te&&this._viewRegistry.unregisterRegion(re,te),te}addViewToRegion(W,te,re){const oe=this.getRegion(W);if(!oe)throw new Error(`Couldn't find a region with name: ${W}`);return oe.addView(te,re),this}async registerViewWithRegion(W,te,re){return this._viewRegistry.registerView(W,te,re),await Promise.allSettled(this._viewRegistry.getRegionsByName(W).map(oe=>{if(!oe.containsView(te))return oe.addView(te,re)})),this}async unregisterViewFromRegion(W,te){return this._viewRegistry.unregisterView(W,te),await Promise.allSettled(this._viewRegistry.getRegionsByName(W).map(re=>re.removeView(te))),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(te=>W[0]?.removeView(te))}),this}destroy(){return this.clear(),Object.values(this._viewRegistry.regions).forEach(W=>this.remove(W[0])),this._regions={},this}createRegionManager(){return new Ni(this._viewRegistry)}},w$5=class extends g$o{constructor(W){const te=new l$r;super(te),this._name=W}clear(){return super.clear(),this._viewRegistry.clear(),this}destroy(){return super.destroy(),this._viewRegistry.destroy(),this}};const f$o=X=>new w$5(X),c$o=X=>X.importer(),R$5=async(X,W,te)=>{try{const re=await c$o(X),oe=W(X);return await te(oe,re),{dispose:()=>d$v(oe,re),importedPlugin:re,apiInstance:oe}}catch(re){console.error(`Failed to load plugin ${X.pluginId}:`,re)}},u$r=async(X,W)=>{await W.initialize(X)},d$v=(X,W)=>W.dispose(X),p$d=async(X,W)=>{if(!X?.length)throw new Error("No plugins to bootstrap");return(await Promise.allSettled(X.map(te=>R$5(te,W,u$r)))).map(te=>te.status==="fulfilled"?te.value:null)},primariaShellId="primaria-shell",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"},administrativeManagement:{tabSelected:"administrative_management_tab_selected"}};class Broker{constructor(){this.events=BROKER_EVENTS,this.requestHandlers=new Map,this.eventSubscribers=new Map}async send(W,te){const re=typeof W=="string"?W:W.constructor,oe=this.requestHandlers.get(re);if(!oe){const de=typeof W=="string"?W:W.constructor?.name;throw new Error(`Broker: no request handler registered for "${de}".`)}const ne=typeof W=="string"?{...te}:{...W};return await oe(ne)}registerRequest(W,te){if(this.requestHandlers.has(W)){const re=typeof W=="string"?W:W.name;throw new Error(`Broker: a request handler is already registered for "${re}".`)}return this.requestHandlers.set(W,te),{dispose:()=>{this.requestHandlers.get(W)===te&&this.requestHandlers.delete(W)}}}async publish(W,te){const re=typeof W=="string"?W:W.constructor,oe=this.eventSubscribers.get(re);if(!oe||oe.size===0)return;const ne=typeof W=="string"?te:{...W},de=typeof W=="string"?W:W.constructor?.name;await Promise.all([...oe].map(async ce=>{try{await ce(ne)}catch(ue){console.error(`Broker: a subscriber for event "${de}" threw and was isolated.`,ue)}}))}subscribe(W,te){let re=this.eventSubscribers.get(W);return re||(re=new Set,this.eventSubscribers.set(W,re)),re.add(te),{dispose:()=>{const oe=this.eventSubscribers.get(W);oe&&(oe.delete(te),oe.size===0&&this.eventSubscribers.delete(W))}}}_clear(){this.requestHandlers.clear(),this.eventSubscribers.clear()}}const createBroker=()=>new Broker,LAST_WORKED_DIAGNOSTICS_KEY="lastWorkedDiagnostics",EVENTS_WITH_DIAGNOSTICS=["PROVES_ORDRES_CLINIQUES_CONSULTAR","RESULT_OC","LABORATORI_SEROTECA_PETICIO_CONSULTA","LABORATORI","ORDRE_TRACTAMENT","PRESCRIPCIO_ACTIVA","REV_IT","OC_EXPRES"];class EcapEventManager{}class EcapEventManagerImpl{constructor(W){this.globalStateManager=W}publish(W,te,re){const oe=this.createEcapEvent(W,te,re??{});EVENTS_WITH_DIAGNOSTICS.includes(W)&&(oe.DIAGNOSTICS=this.globalStateManager.getData(LAST_WORKED_DIAGNOSTICS_KEY)??[]),this.raiseEcapEvent(oe)}createEcapEvent(W,te,re){return{TipusEvent:W,Accio:te,...re}}raiseEcapEvent(W){window.parent&&window.parent.postMessage(JSON.stringify(W),"*"),console.log("method",JSON.stringify(W))}}const createEcapEventManager=X=>new EcapEventManagerImpl(X);class ExitGuardManagerImpl{constructor(){this.guards=new Map}register(W,te){this.guards.set(W,te)}unregister(W){this.guards.delete(W)}async canExit(){for(const W of this.guards.values())try{if(!await W())return!1}catch(te){console.error("Exit guard failed:",te)}return!0}}class PrimariaGlobalStateManagerImpl{constructor(W){this.broker=W,this.state={}}setData(W,te){this.state[W]=te,this.broker.publish("data_set",{key:W,value:te})}getData(W){return this.state[W]}clearData(){this.state={}}}const createGlobalStateManager=X=>new PrimariaGlobalStateManagerImpl(X),ACTIVITY_EVENTS=["keydown","click","scroll"];class ActivityMonitorImpl{constructor(){this.lastActivityTimestamp=0,this.activityHandler=()=>{this.lastActivityTimestamp=Date.now()},this.start=()=>{for(const W of ACTIVITY_EVENTS)window.addEventListener(W,this.activityHandler)},this.stop=()=>{for(const W of ACTIVITY_EVENTS)window.removeEventListener(W,this.activityHandler)},this.getLastActivityTimestamp=()=>this.lastActivityTimestamp}}const createActivityMonitor=()=>new ActivityMonitorImpl;function bind(X,W){return function(){return X.apply(W,arguments)}}const{toString}=Object.prototype,{getPrototypeOf:getPrototypeOf$1}=Object,{iterator,toStringTag}=Symbol,kindOf=(X=>W=>{const te=toString.call(W);return X[te]||(X[te]=te.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=X=>(X=X.toLowerCase(),W=>kindOf(W)===X),typeOfTest=X=>W=>typeof W===X,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(X){return X!==null&&!isUndefined(X)&&X.constructor!==null&&!isUndefined(X.constructor)&&isFunction$1(X.constructor.isBuffer)&&X.constructor.isBuffer(X)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(X){let W;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?W=ArrayBuffer.isView(X):W=X&&X.buffer&&isArrayBuffer(X.buffer),W}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=X=>X!==null&&typeof X=="object",isBoolean$1=X=>X===!0||X===!1,isPlainObject$2=X=>{if(kindOf(X)!=="object")return!1;const W=getPrototypeOf$1(X);return(W===null||W===Object.prototype||Object.getPrototypeOf(W)===null)&&!(toStringTag in X)&&!(iterator in X)},isEmptyObject=X=>{if(!isObject(X)||isBuffer(X))return!1;try{return Object.keys(X).length===0&&Object.getPrototypeOf(X)===Object.prototype}catch{return!1}},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=X=>isObject(X)&&isFunction$1(X.pipe),isFormData=X=>{let W;return X&&(typeof FormData=="function"&&X instanceof FormData||isFunction$1(X.append)&&((W=kindOf(X))==="formdata"||W==="object"&&isFunction$1(X.toString)&&X.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=X=>X.trim?X.trim():X.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(X,W,{allOwnKeys:te=!1}={}){if(X===null||typeof X>"u")return;let re,oe;if(typeof X!="object"&&(X=[X]),isArray(X))for(re=0,oe=X.length;re<oe;re++)W.call(null,X[re],re,X);else{if(isBuffer(X))return;const ne=te?Object.getOwnPropertyNames(X):Object.keys(X),de=ne.length;let ce;for(re=0;re<de;re++)ce=ne[re],W.call(null,X[ce],ce,X)}}function findKey$1(X,W){if(isBuffer(X))return null;W=W.toLowerCase();const te=Object.keys(X);let re=te.length,oe;for(;re-- >0;)if(oe=te[re],W===oe.toLowerCase())return oe;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=X=>!isUndefined(X)&&X!==_global;function merge(){const{caseless:X,skipUndefined:W}=isContextDefined(this)&&this||{},te={},re=(oe,ne)=>{const de=X&&findKey$1(te,ne)||ne;isPlainObject$2(te[de])&&isPlainObject$2(oe)?te[de]=merge(te[de],oe):isPlainObject$2(oe)?te[de]=merge({},oe):isArray(oe)?te[de]=oe.slice():(!W||!isUndefined(oe))&&(te[de]=oe)};for(let oe=0,ne=arguments.length;oe<ne;oe++)arguments[oe]&&forEach(arguments[oe],re);return te}const extend=(X,W,te,{allOwnKeys:re}={})=>(forEach(W,(oe,ne)=>{te&&isFunction$1(oe)?X[ne]=bind(oe,te):X[ne]=oe},{allOwnKeys:re}),X),stripBOM=X=>(X.charCodeAt(0)===65279&&(X=X.slice(1)),X),inherits=(X,W,te,re)=>{X.prototype=Object.create(W.prototype,re),X.prototype.constructor=X,Object.defineProperty(X,"super",{value:W.prototype}),te&&Object.assign(X.prototype,te)},toFlatObject=(X,W,te,re)=>{let oe,ne,de;const ce={};if(W=W||{},X==null)return W;do{for(oe=Object.getOwnPropertyNames(X),ne=oe.length;ne-- >0;)de=oe[ne],(!re||re(de,X,W))&&!ce[de]&&(W[de]=X[de],ce[de]=!0);X=te!==!1&&getPrototypeOf$1(X)}while(X&&(!te||te(X,W))&&X!==Object.prototype);return W},endsWith=(X,W,te)=>{X=String(X),(te===void 0||te>X.length)&&(te=X.length),te-=W.length;const re=X.indexOf(W,te);return re!==-1&&re===te},toArray=X=>{if(!X)return null;if(isArray(X))return X;let W=X.length;if(!isNumber(W))return null;const te=new Array(W);for(;W-- >0;)te[W]=X[W];return te},isTypedArray=(X=>W=>X&&W instanceof X)(typeof Uint8Array<"u"&&getPrototypeOf$1(Uint8Array)),forEachEntry=(X,W)=>{const re=(X&&X[iterator]).call(X);let oe;for(;(oe=re.next())&&!oe.done;){const ne=oe.value;W.call(X,ne[0],ne[1])}},matchAll=(X,W)=>{let te;const re=[];for(;(te=X.exec(W))!==null;)re.push(te);return re},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=X=>X.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(te,re,oe){return re.toUpperCase()+oe}),hasOwnProperty=(({hasOwnProperty:X})=>(W,te)=>X.call(W,te))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(X,W)=>{const te=Object.getOwnPropertyDescriptors(X),re={};forEach(te,(oe,ne)=>{let de;(de=W(oe,ne,X))!==!1&&(re[ne]=de||oe)}),Object.defineProperties(X,re)},freezeMethods=X=>{reduceDescriptors(X,(W,te)=>{if(isFunction$1(X)&&["arguments","caller","callee"].indexOf(te)!==-1)return!1;const re=X[te];if(isFunction$1(re)){if(W.enumerable=!1,"writable"in W){W.writable=!1;return}W.set||(W.set=()=>{throw Error("Can not rewrite read-only method '"+te+"'")})}})},toObjectSet=(X,W)=>{const te={},re=oe=>{oe.forEach(ne=>{te[ne]=!0})};return isArray(X)?re(X):re(String(X).split(W)),te},noop$1=()=>{},toFiniteNumber=(X,W)=>X!=null&&Number.isFinite(X=+X)?X:W;function isSpecCompliantForm(X){return!!(X&&isFunction$1(X.append)&&X[toStringTag]==="FormData"&&X[iterator])}const toJSONObject=X=>{const W=new Array(10),te=(re,oe)=>{if(isObject(re)){if(W.indexOf(re)>=0)return;if(isBuffer(re))return re;if(!("toJSON"in re)){W[oe]=re;const ne=isArray(re)?[]:{};return forEach(re,(de,ce)=>{const ue=te(de,oe+1);!isUndefined(ue)&&(ne[ce]=ue)}),W[oe]=void 0,ne}}return re};return te(X,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=X=>X&&(isObject(X)||isFunction$1(X))&&isFunction$1(X.then)&&isFunction$1(X.catch),_setImmediate=((X,W)=>X?setImmediate:W?((te,re)=>(_global.addEventListener("message",({source:oe,data:ne})=>{oe===_global&&ne===te&&re.length&&re.shift()()},!1),oe=>{re.push(oe),_global.postMessage(te,"*")}))(`axios@${Math.random()}`,[]):te=>setTimeout(te))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable=X=>X!=null&&isFunction$1(X[iterator]),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber,isBoolean:isBoolean$1,isObject,isPlainObject:isPlainObject$2,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey:findKey$1,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable};function AxiosError$1(X,W,te,re,oe){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=X,this.name="AxiosError",W&&(this.code=W),te&&(this.config=te),re&&(this.request=re),oe&&(this.response=oe,this.status=oe.status?oe.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(X=>{descriptors[X]={value:X}}),Object.defineProperties(AxiosError$1,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$1.from=(X,W,te,re,oe,ne)=>{const de=Object.create(prototype$1);utils$1.toFlatObject(X,de,function(he){return he!==Error.prototype},pe=>pe!=="isAxiosError");const ce=X&&X.message?X.message:"Error",ue=W==null&&X?X.code:W;return AxiosError$1.call(de,ce,ue,te,re,oe),X&&de.cause==null&&Object.defineProperty(de,"cause",{value:X,configurable:!0}),de.name=X&&X.name||"Error",ne&&Object.assign(de,ne),de};const httpAdapter=null;function isVisitable(X){return utils$1.isPlainObject(X)||utils$1.isArray(X)}function removeBrackets(X){return utils$1.endsWith(X,"[]")?X.slice(0,-2):X}function renderKey(X,W,te){return X?X.concat(W).map(function(oe,ne){return oe=removeBrackets(oe),!te&&ne?"["+oe+"]":oe}).join(te?".":""):W}function isFlatArray(X){return utils$1.isArray(X)&&!X.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(W){return/^is[A-Z]/.test(W)});function toFormData$1(X,W,te){if(!utils$1.isObject(X))throw new TypeError("target must be an object");W=W||new FormData,te=utils$1.toFlatObject(te,{metaTokens:!0,dots:!1,indexes:!1},!1,function(me,_e){return!utils$1.isUndefined(_e[me])});const re=te.metaTokens,oe=te.visitor||he,ne=te.dots,de=te.indexes,ue=(te.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(W);if(!utils$1.isFunction(oe))throw new TypeError("visitor must be a function");function pe(ve){if(ve===null)return"";if(utils$1.isDate(ve))return ve.toISOString();if(utils$1.isBoolean(ve))return ve.toString();if(!ue&&utils$1.isBlob(ve))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(ve)||utils$1.isTypedArray(ve)?ue&&typeof Blob=="function"?new Blob([ve]):Buffer.from(ve):ve}function he(ve,me,_e){let ye=ve;if(ve&&!_e&&typeof ve=="object"){if(utils$1.endsWith(me,"{}"))me=re?me:me.slice(0,-2),ve=JSON.stringify(ve);else if(utils$1.isArray(ve)&&isFlatArray(ve)||(utils$1.isFileList(ve)||utils$1.endsWith(me,"[]"))&&(ye=utils$1.toArray(ve)))return me=removeBrackets(me),ye.forEach(function(Se,Ae){!(utils$1.isUndefined(Se)||Se===null)&&W.append(de===!0?renderKey([me],Ae,ne):de===null?me:me+"[]",pe(Se))}),!1}return isVisitable(ve)?!0:(W.append(renderKey(_e,me,ne),pe(ve)),!1)}const fe=[],be=Object.assign(predicates,{defaultVisitor:he,convertValue:pe,isVisitable});function ge(ve,me){if(!utils$1.isUndefined(ve)){if(fe.indexOf(ve)!==-1)throw Error("Circular reference detected in "+me.join("."));fe.push(ve),utils$1.forEach(ve,function(ye,we){(!(utils$1.isUndefined(ye)||ye===null)&&oe.call(W,ye,utils$1.isString(we)?we.trim():we,me,be))===!0&&ge(ye,me?me.concat(we):[we])}),fe.pop()}}if(!utils$1.isObject(X))throw new TypeError("data must be an object");return ge(X),W}function encode$1(X){const W={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(X).replace(/[!'()~]|%20|%00/g,function(re){return W[re]})}function AxiosURLSearchParams(X,W){this._pairs=[],X&&toFormData$1(X,this,W)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(W,te){this._pairs.push([W,te])},prototype.toString=function(W){const te=W?function(re){return W.call(this,re,encode$1)}:encode$1;return this._pairs.map(function(oe){return te(oe[0])+"="+te(oe[1])},"").join("&")};function encode(X){return encodeURIComponent(X).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(X,W,te){if(!W)return X;const re=te&&te.encode||encode;utils$1.isFunction(te)&&(te={serialize:te});const oe=te&&te.serialize;let ne;if(oe?ne=oe(W,te):ne=utils$1.isURLSearchParams(W)?W.toString():new AxiosURLSearchParams(W,te).toString(re),ne){const de=X.indexOf("#");de!==-1&&(X=X.slice(0,de)),X+=(X.indexOf("?")===-1?"?":"&")+ne}return X}class InterceptorManager{constructor(){this.handlers=[]}use(W,te,re){return this.handlers.push({fulfilled:W,rejected:te,synchronous:re?re.synchronous:!1,runWhen:re?re.runWhen:null}),this.handlers.length-1}eject(W){this.handlers[W]&&(this.handlers[W]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(W){utils$1.forEach(this.handlers,function(re){re!==null&&W(re)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(X,W){return toFormData$1(X,new platform.classes.URLSearchParams,{visitor:function(te,re,oe,ne){return platform.isNode&&utils$1.isBuffer(te)?(this.append(re,te.toString("base64")),!1):ne.defaultVisitor.apply(this,arguments)},...W})}function parsePropPath(X){return utils$1.matchAll(/\w+|\[(\w*)]/g,X).map(W=>W[0]==="[]"?"":W[1]||W[0])}function arrayToObject(X){const W={},te=Object.keys(X);let re;const oe=te.length;let ne;for(re=0;re<oe;re++)ne=te[re],W[ne]=X[ne];return W}function formDataToJSON(X){function W(te,re,oe,ne){let de=te[ne++];if(de==="__proto__")return!0;const ce=Number.isFinite(+de),ue=ne>=te.length;return de=!de&&utils$1.isArray(oe)?oe.length:de,ue?(utils$1.hasOwnProp(oe,de)?oe[de]=[oe[de],re]:oe[de]=re,!ce):((!oe[de]||!utils$1.isObject(oe[de]))&&(oe[de]=[]),W(te,re,oe[de],ne)&&utils$1.isArray(oe[de])&&(oe[de]=arrayToObject(oe[de])),!ce)}if(utils$1.isFormData(X)&&utils$1.isFunction(X.entries)){const te={};return utils$1.forEachEntry(X,(re,oe)=>{W(parsePropPath(re),oe,te,0)}),te}return null}function stringifySafely(X,W,te){if(utils$1.isString(X))try{return(W||JSON.parse)(X),utils$1.trim(X)}catch(re){if(re.name!=="SyntaxError")throw re}return(te||JSON.stringify)(X)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(W,te){const re=te.getContentType()||"",oe=re.indexOf("application/json")>-1,ne=utils$1.isObject(W);if(ne&&utils$1.isHTMLForm(W)&&(W=new FormData(W)),utils$1.isFormData(W))return oe?JSON.stringify(formDataToJSON(W)):W;if(utils$1.isArrayBuffer(W)||utils$1.isBuffer(W)||utils$1.isStream(W)||utils$1.isFile(W)||utils$1.isBlob(W)||utils$1.isReadableStream(W))return W;if(utils$1.isArrayBufferView(W))return W.buffer;if(utils$1.isURLSearchParams(W))return te.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),W.toString();let ce;if(ne){if(re.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(W,this.formSerializer).toString();if((ce=utils$1.isFileList(W))||re.indexOf("multipart/form-data")>-1){const ue=this.env&&this.env.FormData;return toFormData$1(ce?{"files[]":W}:W,ue&&new ue,this.formSerializer)}}return ne||oe?(te.setContentType("application/json",!1),stringifySafely(W)):W}],transformResponse:[function(W){const te=this.transitional||defaults.transitional,re=te&&te.forcedJSONParsing,oe=this.responseType==="json";if(utils$1.isResponse(W)||utils$1.isReadableStream(W))return W;if(W&&utils$1.isString(W)&&(re&&!this.responseType||oe)){const de=!(te&&te.silentJSONParsing)&&oe;try{return JSON.parse(W,this.parseReviver)}catch(ce){if(de)throw ce.name==="SyntaxError"?AxiosError$1.from(ce,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):ce}}return W}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(W){return W>=200&&W<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],X=>{defaults.headers[X]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=X=>{const W={};let te,re,oe;return X&&X.split(`
|
|
114
|
+
*/function o$Y(X){return(W,te)=>{const{slot:re,selector:oe}=X??{},ne="slot"+(re?`[name=${re}]`:":not([name])");return e$U(W,te,{get(){const de=this.renderRoot?.querySelector(ne),ce=de?.assignedElements(X)??[];return oe===void 0?ce:ce.filter((ue=>ue.matches(oe)))}})}}const v$n=X=>j$3(X,p$h);let l$r=class{constructor(){this.viewsByRegion={},this.regions={}}registerRegion(W,te){this.regions[W]=[...this.regions[W]||[],te]}unregisterRegion(W,te){this.regions[W]=this.getRegionsByName(W).filter(re=>re!==te)}registerView(W,te,re){const oe=this.viewsByRegion[W]||[],ne=oe.findIndex(de=>de.key===te);ne>=0?(oe[ne]={key:te,view:re},this.viewsByRegion[W]=oe):this.viewsByRegion[W]=[...oe,{key:te,view:re}]}unregisterView(W,te){const re=this.viewsByRegion[W];re&&(this.viewsByRegion[W]=re.filter(oe=>oe.key!==te))}getRegisteredViews(W){return this.viewsByRegion[W]||[]}getRegionsByName(W){return this.regions[W]||[]}destroy(){this.viewsByRegion={},this.regions={}}clear(){this.viewsByRegion={}}},g$o=class Ni{constructor(W){this._viewRegistry=W,this._regions={}}add(W,te){const re=this.getRegion(W);if(re){const oe=re.host,ne=te.host;if(oe&&ne&&oe===ne)throw oe.uxlRegion=re,new Error(`RegionManager.add: region "${W}" already exists for the same host (idempotent rejection)`);const de=oe;if(de)for(;de.firstChild;)de.removeChild(de.firstChild);this.remove(re)}return this._regions[W]=te,this._viewRegistry.registerRegion(W,te),this}getRegion(W){return this._regions[W]}remove(W){let te,re="";return typeof W=="string"?(te=this.getRegion(W),re=W,delete this._regions[W]):typeof W=="object"&&(re=Object.keys(this._regions).find(oe=>this._regions[oe]===W),re&&(te=W,delete this._regions[re])),re&&te&&this._viewRegistry.unregisterRegion(re,te),te}addViewToRegion(W,te,re){const oe=this.getRegion(W);if(!oe)throw new Error(`Couldn't find a region with name: ${W}`);return oe.addView(te,re),this}async registerViewWithRegion(W,te,re){return this._viewRegistry.registerView(W,te,re),await Promise.allSettled(this._viewRegistry.getRegionsByName(W).map(oe=>{if(!oe.containsView(te))return oe.addView(te,re)})),this}async unregisterViewFromRegion(W,te){return this._viewRegistry.unregisterView(W,te),await Promise.allSettled(this._viewRegistry.getRegionsByName(W).map(re=>re.removeView(te))),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(te=>W[0]?.removeView(te))}),this}destroy(){return this.clear(),Object.values(this._viewRegistry.regions).forEach(W=>this.remove(W[0])),this._regions={},this}createRegionManager(){return new Ni(this._viewRegistry)}},w$5=class extends g$o{constructor(W){const te=new l$r;super(te),this._name=W}clear(){return super.clear(),this._viewRegistry.clear(),this}destroy(){return super.destroy(),this._viewRegistry.destroy(),this}};const f$o=X=>new w$5(X),c$o=X=>X.importer(),R$5=async(X,W,te)=>{try{const re=await c$o(X),oe=W(X);return await te(oe,re),{dispose:()=>d$v(oe,re),importedPlugin:re,apiInstance:oe}}catch(re){console.error(`Failed to load plugin ${X.pluginId}:`,re)}},u$r=async(X,W)=>{await W.initialize(X)},d$v=(X,W)=>W.dispose(X),p$d=async(X,W)=>{if(!X?.length)throw new Error("No plugins to bootstrap");return(await Promise.allSettled(X.map(te=>R$5(te,W,u$r)))).map(te=>te.status==="fulfilled"?te.value:null)},primariaShellId="primaria-shell",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"},administrativeManagement:{tabSelected:"administrative_management_tab_selected"}};class Broker{constructor(){this.events=BROKER_EVENTS,this.requestHandlers=new Map,this.eventSubscribers=new Map}async send(W,te){const re=typeof W=="string"?W:W.constructor,oe=this.requestHandlers.get(re);if(!oe){const de=typeof W=="string"?W:W.constructor?.name;throw new Error(`Broker: no request handler registered for "${de}".`)}const ne=typeof W=="string"?{...te}:{...W};return await oe(ne)}registerRequest(W,te){if(this.requestHandlers.has(W)){const re=typeof W=="string"?W:W.name;throw new Error(`Broker: a request handler is already registered for "${re}".`)}return this.requestHandlers.set(W,te),{dispose:()=>{this.requestHandlers.get(W)===te&&this.requestHandlers.delete(W)}}}async publish(W,te){const re=typeof W=="string"?W:W.constructor,oe=this.eventSubscribers.get(re);if(!oe||oe.size===0)return;const ne=typeof W=="string"?te:{...W},de=typeof W=="string"?W:W.constructor?.name;await Promise.all([...oe].map(async ce=>{try{await ce(ne)}catch(ue){console.error(`Broker: a subscriber for event "${de}" threw and was isolated.`,ue)}}))}subscribe(W,te){let re=this.eventSubscribers.get(W);return re||(re=new Set,this.eventSubscribers.set(W,re)),re.add(te),{dispose:()=>{const oe=this.eventSubscribers.get(W);oe&&(oe.delete(te),oe.size===0&&this.eventSubscribers.delete(W))}}}_clear(){this.requestHandlers.clear(),this.eventSubscribers.clear()}}const createBroker=()=>new Broker,LAST_WORKED_DIAGNOSTICS_KEY="lastWorkedDiagnostics",EVENTS_WITH_DIAGNOSTICS=["PROVES_ORDRES_CLINIQUES_CONSULTAR","RESULT_OC","LABORATORI_SEROTECA_PETICIO_CONSULTA","LABORATORI","ORDRE_TRACTAMENT","PRESCRIPCIO_ACTIVA","REV_IT","OC_EXPRES"];class EcapEventManager{}class EcapEventManagerImpl{constructor(W){this.globalStateManager=W}publish(W,te,re){const oe=this.createEcapEvent(W,te,re??{});EVENTS_WITH_DIAGNOSTICS.includes(W)&&(oe.DIAGNOSTICS=this.globalStateManager.getData(LAST_WORKED_DIAGNOSTICS_KEY)??[]),this.raiseEcapEvent(oe)}createEcapEvent(W,te,re){return{TipusEvent:W,Accio:te,...re}}raiseEcapEvent(W){window.parent&&window.parent.postMessage(JSON.stringify(W),"*"),console.log("method",JSON.stringify(W))}}const createEcapEventManager=X=>new EcapEventManagerImpl(X);class ExitGuardManagerImpl{constructor(){this.guards=new Map}register(W,te){this.guards.set(W,te)}unregister(W){this.guards.delete(W)}async canExit(){for(const W of this.guards.values())try{if(!await W())return!1}catch(te){console.error("Exit guard failed:",te)}return!0}}class PrimariaGlobalStateManagerImpl{constructor(W){this.broker=W,this.state={}}setData(W,te){this.state[W]=te,this.broker.publish("data_set",{key:W,value:te})}getData(W){return this.state[W]}clearData(){this.state={}}}const createGlobalStateManager=X=>new PrimariaGlobalStateManagerImpl(X),ACTIVITY_EVENTS=["keydown","click","scroll"];class ActivityMonitorImpl{constructor(){this.lastActivityTimestamp=0,this.activityHandler=()=>{this.lastActivityTimestamp=Date.now()},this.start=()=>{for(const W of ACTIVITY_EVENTS)window.addEventListener(W,this.activityHandler)},this.stop=()=>{for(const W of ACTIVITY_EVENTS)window.removeEventListener(W,this.activityHandler)},this.getLastActivityTimestamp=()=>this.lastActivityTimestamp}}const createActivityMonitor=()=>new ActivityMonitorImpl;function bind(X,W){return function(){return X.apply(W,arguments)}}const{toString}=Object.prototype,{getPrototypeOf:getPrototypeOf$1}=Object,{iterator,toStringTag}=Symbol,kindOf=(X=>W=>{const te=toString.call(W);return X[te]||(X[te]=te.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=X=>(X=X.toLowerCase(),W=>kindOf(W)===X),typeOfTest=X=>W=>typeof W===X,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(X){return X!==null&&!isUndefined(X)&&X.constructor!==null&&!isUndefined(X.constructor)&&isFunction$1(X.constructor.isBuffer)&&X.constructor.isBuffer(X)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(X){let W;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?W=ArrayBuffer.isView(X):W=X&&X.buffer&&isArrayBuffer(X.buffer),W}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=X=>X!==null&&typeof X=="object",isBoolean$1=X=>X===!0||X===!1,isPlainObject$2=X=>{if(kindOf(X)!=="object")return!1;const W=getPrototypeOf$1(X);return(W===null||W===Object.prototype||Object.getPrototypeOf(W)===null)&&!(toStringTag in X)&&!(iterator in X)},isEmptyObject=X=>{if(!isObject(X)||isBuffer(X))return!1;try{return Object.keys(X).length===0&&Object.getPrototypeOf(X)===Object.prototype}catch{return!1}},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=X=>isObject(X)&&isFunction$1(X.pipe),isFormData=X=>{let W;return X&&(typeof FormData=="function"&&X instanceof FormData||isFunction$1(X.append)&&((W=kindOf(X))==="formdata"||W==="object"&&isFunction$1(X.toString)&&X.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=X=>X.trim?X.trim():X.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(X,W,{allOwnKeys:te=!1}={}){if(X===null||typeof X>"u")return;let re,oe;if(typeof X!="object"&&(X=[X]),isArray(X))for(re=0,oe=X.length;re<oe;re++)W.call(null,X[re],re,X);else{if(isBuffer(X))return;const ne=te?Object.getOwnPropertyNames(X):Object.keys(X),de=ne.length;let ce;for(re=0;re<de;re++)ce=ne[re],W.call(null,X[ce],ce,X)}}function findKey$1(X,W){if(isBuffer(X))return null;W=W.toLowerCase();const te=Object.keys(X);let re=te.length,oe;for(;re-- >0;)if(oe=te[re],W===oe.toLowerCase())return oe;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=X=>!isUndefined(X)&&X!==_global;function merge(){const{caseless:X,skipUndefined:W}=isContextDefined(this)&&this||{},te={},re=(oe,ne)=>{const de=X&&findKey$1(te,ne)||ne;isPlainObject$2(te[de])&&isPlainObject$2(oe)?te[de]=merge(te[de],oe):isPlainObject$2(oe)?te[de]=merge({},oe):isArray(oe)?te[de]=oe.slice():(!W||!isUndefined(oe))&&(te[de]=oe)};for(let oe=0,ne=arguments.length;oe<ne;oe++)arguments[oe]&&forEach(arguments[oe],re);return te}const extend=(X,W,te,{allOwnKeys:re}={})=>(forEach(W,(oe,ne)=>{te&&isFunction$1(oe)?X[ne]=bind(oe,te):X[ne]=oe},{allOwnKeys:re}),X),stripBOM=X=>(X.charCodeAt(0)===65279&&(X=X.slice(1)),X),inherits=(X,W,te,re)=>{X.prototype=Object.create(W.prototype,re),X.prototype.constructor=X,Object.defineProperty(X,"super",{value:W.prototype}),te&&Object.assign(X.prototype,te)},toFlatObject=(X,W,te,re)=>{let oe,ne,de;const ce={};if(W=W||{},X==null)return W;do{for(oe=Object.getOwnPropertyNames(X),ne=oe.length;ne-- >0;)de=oe[ne],(!re||re(de,X,W))&&!ce[de]&&(W[de]=X[de],ce[de]=!0);X=te!==!1&&getPrototypeOf$1(X)}while(X&&(!te||te(X,W))&&X!==Object.prototype);return W},endsWith=(X,W,te)=>{X=String(X),(te===void 0||te>X.length)&&(te=X.length),te-=W.length;const re=X.indexOf(W,te);return re!==-1&&re===te},toArray=X=>{if(!X)return null;if(isArray(X))return X;let W=X.length;if(!isNumber(W))return null;const te=new Array(W);for(;W-- >0;)te[W]=X[W];return te},isTypedArray=(X=>W=>X&&W instanceof X)(typeof Uint8Array<"u"&&getPrototypeOf$1(Uint8Array)),forEachEntry=(X,W)=>{const re=(X&&X[iterator]).call(X);let oe;for(;(oe=re.next())&&!oe.done;){const ne=oe.value;W.call(X,ne[0],ne[1])}},matchAll=(X,W)=>{let te;const re=[];for(;(te=X.exec(W))!==null;)re.push(te);return re},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=X=>X.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(te,re,oe){return re.toUpperCase()+oe}),hasOwnProperty=(({hasOwnProperty:X})=>(W,te)=>X.call(W,te))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(X,W)=>{const te=Object.getOwnPropertyDescriptors(X),re={};forEach(te,(oe,ne)=>{let de;(de=W(oe,ne,X))!==!1&&(re[ne]=de||oe)}),Object.defineProperties(X,re)},freezeMethods=X=>{reduceDescriptors(X,(W,te)=>{if(isFunction$1(X)&&["arguments","caller","callee"].indexOf(te)!==-1)return!1;const re=X[te];if(isFunction$1(re)){if(W.enumerable=!1,"writable"in W){W.writable=!1;return}W.set||(W.set=()=>{throw Error("Can not rewrite read-only method '"+te+"'")})}})},toObjectSet=(X,W)=>{const te={},re=oe=>{oe.forEach(ne=>{te[ne]=!0})};return isArray(X)?re(X):re(String(X).split(W)),te},noop$1=()=>{},toFiniteNumber=(X,W)=>X!=null&&Number.isFinite(X=+X)?X:W;function isSpecCompliantForm(X){return!!(X&&isFunction$1(X.append)&&X[toStringTag]==="FormData"&&X[iterator])}const toJSONObject=X=>{const W=new Array(10),te=(re,oe)=>{if(isObject(re)){if(W.indexOf(re)>=0)return;if(isBuffer(re))return re;if(!("toJSON"in re)){W[oe]=re;const ne=isArray(re)?[]:{};return forEach(re,(de,ce)=>{const ue=te(de,oe+1);!isUndefined(ue)&&(ne[ce]=ue)}),W[oe]=void 0,ne}}return re};return te(X,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=X=>X&&(isObject(X)||isFunction$1(X))&&isFunction$1(X.then)&&isFunction$1(X.catch),_setImmediate=((X,W)=>X?setImmediate:W?((te,re)=>(_global.addEventListener("message",({source:oe,data:ne})=>{oe===_global&&ne===te&&re.length&&re.shift()()},!1),oe=>{re.push(oe),_global.postMessage(te,"*")}))(`axios@${Math.random()}`,[]):te=>setTimeout(te))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable=X=>X!=null&&isFunction$1(X[iterator]),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber,isBoolean:isBoolean$1,isObject,isPlainObject:isPlainObject$2,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey:findKey$1,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable};function AxiosError$1(X,W,te,re,oe){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=X,this.name="AxiosError",W&&(this.code=W),te&&(this.config=te),re&&(this.request=re),oe&&(this.response=oe,this.status=oe.status?oe.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(X=>{descriptors[X]={value:X}}),Object.defineProperties(AxiosError$1,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$1.from=(X,W,te,re,oe,ne)=>{const de=Object.create(prototype$1);utils$1.toFlatObject(X,de,function(he){return he!==Error.prototype},pe=>pe!=="isAxiosError");const ce=X&&X.message?X.message:"Error",ue=W==null&&X?X.code:W;return AxiosError$1.call(de,ce,ue,te,re,oe),X&&de.cause==null&&Object.defineProperty(de,"cause",{value:X,configurable:!0}),de.name=X&&X.name||"Error",ne&&Object.assign(de,ne),de};const httpAdapter=null;function isVisitable(X){return utils$1.isPlainObject(X)||utils$1.isArray(X)}function removeBrackets(X){return utils$1.endsWith(X,"[]")?X.slice(0,-2):X}function renderKey(X,W,te){return X?X.concat(W).map(function(oe,ne){return oe=removeBrackets(oe),!te&&ne?"["+oe+"]":oe}).join(te?".":""):W}function isFlatArray(X){return utils$1.isArray(X)&&!X.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(W){return/^is[A-Z]/.test(W)});function toFormData$1(X,W,te){if(!utils$1.isObject(X))throw new TypeError("target must be an object");W=W||new FormData,te=utils$1.toFlatObject(te,{metaTokens:!0,dots:!1,indexes:!1},!1,function(me,_e){return!utils$1.isUndefined(_e[me])});const re=te.metaTokens,oe=te.visitor||he,ne=te.dots,de=te.indexes,ue=(te.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(W);if(!utils$1.isFunction(oe))throw new TypeError("visitor must be a function");function pe(ve){if(ve===null)return"";if(utils$1.isDate(ve))return ve.toISOString();if(utils$1.isBoolean(ve))return ve.toString();if(!ue&&utils$1.isBlob(ve))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(ve)||utils$1.isTypedArray(ve)?ue&&typeof Blob=="function"?new Blob([ve]):Buffer.from(ve):ve}function he(ve,me,_e){let ye=ve;if(ve&&!_e&&typeof ve=="object"){if(utils$1.endsWith(me,"{}"))me=re?me:me.slice(0,-2),ve=JSON.stringify(ve);else if(utils$1.isArray(ve)&&isFlatArray(ve)||(utils$1.isFileList(ve)||utils$1.endsWith(me,"[]"))&&(ye=utils$1.toArray(ve)))return me=removeBrackets(me),ye.forEach(function(Se,Ae){!(utils$1.isUndefined(Se)||Se===null)&&W.append(de===!0?renderKey([me],Ae,ne):de===null?me:me+"[]",pe(Se))}),!1}return isVisitable(ve)?!0:(W.append(renderKey(_e,me,ne),pe(ve)),!1)}const fe=[],be=Object.assign(predicates,{defaultVisitor:he,convertValue:pe,isVisitable});function ge(ve,me){if(!utils$1.isUndefined(ve)){if(fe.indexOf(ve)!==-1)throw Error("Circular reference detected in "+me.join("."));fe.push(ve),utils$1.forEach(ve,function(ye,we){(!(utils$1.isUndefined(ye)||ye===null)&&oe.call(W,ye,utils$1.isString(we)?we.trim():we,me,be))===!0&&ge(ye,me?me.concat(we):[we])}),fe.pop()}}if(!utils$1.isObject(X))throw new TypeError("data must be an object");return ge(X),W}function encode$1(X){const W={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(X).replace(/[!'()~]|%20|%00/g,function(re){return W[re]})}function AxiosURLSearchParams(X,W){this._pairs=[],X&&toFormData$1(X,this,W)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(W,te){this._pairs.push([W,te])},prototype.toString=function(W){const te=W?function(re){return W.call(this,re,encode$1)}:encode$1;return this._pairs.map(function(oe){return te(oe[0])+"="+te(oe[1])},"").join("&")};function encode(X){return encodeURIComponent(X).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(X,W,te){if(!W)return X;const re=te&&te.encode||encode;utils$1.isFunction(te)&&(te={serialize:te});const oe=te&&te.serialize;let ne;if(oe?ne=oe(W,te):ne=utils$1.isURLSearchParams(W)?W.toString():new AxiosURLSearchParams(W,te).toString(re),ne){const de=X.indexOf("#");de!==-1&&(X=X.slice(0,de)),X+=(X.indexOf("?")===-1?"?":"&")+ne}return X}class InterceptorManager{constructor(){this.handlers=[]}use(W,te,re){return this.handlers.push({fulfilled:W,rejected:te,synchronous:re?re.synchronous:!1,runWhen:re?re.runWhen:null}),this.handlers.length-1}eject(W){this.handlers[W]&&(this.handlers[W]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(W){utils$1.forEach(this.handlers,function(re){re!==null&&W(re)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(X,W){return toFormData$1(X,new platform.classes.URLSearchParams,{visitor:function(te,re,oe,ne){return platform.isNode&&utils$1.isBuffer(te)?(this.append(re,te.toString("base64")),!1):ne.defaultVisitor.apply(this,arguments)},...W})}function parsePropPath(X){return utils$1.matchAll(/\w+|\[(\w*)]/g,X).map(W=>W[0]==="[]"?"":W[1]||W[0])}function arrayToObject(X){const W={},te=Object.keys(X);let re;const oe=te.length;let ne;for(re=0;re<oe;re++)ne=te[re],W[ne]=X[ne];return W}function formDataToJSON(X){function W(te,re,oe,ne){let de=te[ne++];if(de==="__proto__")return!0;const ce=Number.isFinite(+de),ue=ne>=te.length;return de=!de&&utils$1.isArray(oe)?oe.length:de,ue?(utils$1.hasOwnProp(oe,de)?oe[de]=[oe[de],re]:oe[de]=re,!ce):((!oe[de]||!utils$1.isObject(oe[de]))&&(oe[de]=[]),W(te,re,oe[de],ne)&&utils$1.isArray(oe[de])&&(oe[de]=arrayToObject(oe[de])),!ce)}if(utils$1.isFormData(X)&&utils$1.isFunction(X.entries)){const te={};return utils$1.forEachEntry(X,(re,oe)=>{W(parsePropPath(re),oe,te,0)}),te}return null}function stringifySafely(X,W,te){if(utils$1.isString(X))try{return(W||JSON.parse)(X),utils$1.trim(X)}catch(re){if(re.name!=="SyntaxError")throw re}return(te||JSON.stringify)(X)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(W,te){const re=te.getContentType()||"",oe=re.indexOf("application/json")>-1,ne=utils$1.isObject(W);if(ne&&utils$1.isHTMLForm(W)&&(W=new FormData(W)),utils$1.isFormData(W))return oe?JSON.stringify(formDataToJSON(W)):W;if(utils$1.isArrayBuffer(W)||utils$1.isBuffer(W)||utils$1.isStream(W)||utils$1.isFile(W)||utils$1.isBlob(W)||utils$1.isReadableStream(W))return W;if(utils$1.isArrayBufferView(W))return W.buffer;if(utils$1.isURLSearchParams(W))return te.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),W.toString();let ce;if(ne){if(re.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(W,this.formSerializer).toString();if((ce=utils$1.isFileList(W))||re.indexOf("multipart/form-data")>-1){const ue=this.env&&this.env.FormData;return toFormData$1(ce?{"files[]":W}:W,ue&&new ue,this.formSerializer)}}return ne||oe?(te.setContentType("application/json",!1),stringifySafely(W)):W}],transformResponse:[function(W){const te=this.transitional||defaults.transitional,re=te&&te.forcedJSONParsing,oe=this.responseType==="json";if(utils$1.isResponse(W)||utils$1.isReadableStream(W))return W;if(W&&utils$1.isString(W)&&(re&&!this.responseType||oe)){const de=!(te&&te.silentJSONParsing)&&oe;try{return JSON.parse(W,this.parseReviver)}catch(ce){if(de)throw ce.name==="SyntaxError"?AxiosError$1.from(ce,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):ce}}return W}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(W){return W>=200&&W<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],X=>{defaults.headers[X]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=X=>{const W={};let te,re,oe;return X&&X.split(`
|
|
115
115
|
`).forEach(function(de){oe=de.indexOf(":"),te=de.substring(0,oe).trim().toLowerCase(),re=de.substring(oe+1).trim(),!(!te||W[te]&&ignoreDuplicateOf[te])&&(te==="set-cookie"?W[te]?W[te].push(re):W[te]=[re]:W[te]=W[te]?W[te]+", "+re:re)}),W},$internals=Symbol("internals");function normalizeHeader(X){return X&&String(X).trim().toLowerCase()}function normalizeValue(X){return X===!1||X==null?X:utils$1.isArray(X)?X.map(normalizeValue):String(X)}function parseTokens(X){const W=Object.create(null),te=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let re;for(;re=te.exec(X);)W[re[1]]=re[2];return W}const isValidHeaderName=X=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(X.trim());function matchHeaderValue(X,W,te,re,oe){if(utils$1.isFunction(re))return re.call(this,W,te);if(oe&&(W=te),!!utils$1.isString(W)){if(utils$1.isString(re))return W.indexOf(re)!==-1;if(utils$1.isRegExp(re))return re.test(W)}}function formatHeader(X){return X.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(W,te,re)=>te.toUpperCase()+re)}function buildAccessors(X,W){const te=utils$1.toCamelCase(" "+W);["get","set","has"].forEach(re=>{Object.defineProperty(X,re+te,{value:function(oe,ne,de){return this[re].call(this,W,oe,ne,de)},configurable:!0})})}let AxiosHeaders$1=class{constructor(W){W&&this.set(W)}set(W,te,re){const oe=this;function ne(ce,ue,pe){const he=normalizeHeader(ue);if(!he)throw new Error("header name must be a non-empty string");const fe=utils$1.findKey(oe,he);(!fe||oe[fe]===void 0||pe===!0||pe===void 0&&oe[fe]!==!1)&&(oe[fe||ue]=normalizeValue(ce))}const de=(ce,ue)=>utils$1.forEach(ce,(pe,he)=>ne(pe,he,ue));if(utils$1.isPlainObject(W)||W instanceof this.constructor)de(W,te);else if(utils$1.isString(W)&&(W=W.trim())&&!isValidHeaderName(W))de(parseHeaders(W),te);else if(utils$1.isObject(W)&&utils$1.isIterable(W)){let ce={},ue,pe;for(const he of W){if(!utils$1.isArray(he))throw TypeError("Object iterator must return a key-value pair");ce[pe=he[0]]=(ue=ce[pe])?utils$1.isArray(ue)?[...ue,he[1]]:[ue,he[1]]:he[1]}de(ce,te)}else W!=null&&ne(te,W,re);return this}get(W,te){if(W=normalizeHeader(W),W){const re=utils$1.findKey(this,W);if(re){const oe=this[re];if(!te)return oe;if(te===!0)return parseTokens(oe);if(utils$1.isFunction(te))return te.call(this,oe,re);if(utils$1.isRegExp(te))return te.exec(oe);throw new TypeError("parser must be boolean|regexp|function")}}}has(W,te){if(W=normalizeHeader(W),W){const re=utils$1.findKey(this,W);return!!(re&&this[re]!==void 0&&(!te||matchHeaderValue(this,this[re],re,te)))}return!1}delete(W,te){const re=this;let oe=!1;function ne(de){if(de=normalizeHeader(de),de){const ce=utils$1.findKey(re,de);ce&&(!te||matchHeaderValue(re,re[ce],ce,te))&&(delete re[ce],oe=!0)}}return utils$1.isArray(W)?W.forEach(ne):ne(W),oe}clear(W){const te=Object.keys(this);let re=te.length,oe=!1;for(;re--;){const ne=te[re];(!W||matchHeaderValue(this,this[ne],ne,W,!0))&&(delete this[ne],oe=!0)}return oe}normalize(W){const te=this,re={};return utils$1.forEach(this,(oe,ne)=>{const de=utils$1.findKey(re,ne);if(de){te[de]=normalizeValue(oe),delete te[ne];return}const ce=W?formatHeader(ne):String(ne).trim();ce!==ne&&delete te[ne],te[ce]=normalizeValue(oe),re[ce]=!0}),this}concat(...W){return this.constructor.concat(this,...W)}toJSON(W){const te=Object.create(null);return utils$1.forEach(this,(re,oe)=>{re!=null&&re!==!1&&(te[oe]=W&&utils$1.isArray(re)?re.join(", "):re)}),te}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([W,te])=>W+": "+te).join(`
|
|
116
116
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(W){return W instanceof this?W:new this(W)}static concat(W,...te){const re=new this(W);return te.forEach(oe=>re.set(oe)),re}static accessor(W){const re=(this[$internals]=this[$internals]={accessors:{}}).accessors,oe=this.prototype;function ne(de){const ce=normalizeHeader(de);re[ce]||(buildAccessors(oe,de),re[ce]=!0)}return utils$1.isArray(W)?W.forEach(ne):ne(W),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders$1.prototype,({value:X},W)=>{let te=W[0].toUpperCase()+W.slice(1);return{get:()=>X,set(re){this[te]=re}}}),utils$1.freezeMethods(AxiosHeaders$1);function transformData(X,W){const te=this||defaults,re=W||te,oe=AxiosHeaders$1.from(re.headers);let ne=re.data;return utils$1.forEach(X,function(ce){ne=ce.call(te,ne,oe.normalize(),W?W.status:void 0)}),oe.normalize(),ne}function isCancel$1(X){return!!(X&&X.__CANCEL__)}function CanceledError$1(X,W,te){AxiosError$1.call(this,X??"canceled",AxiosError$1.ERR_CANCELED,W,te),this.name="CanceledError"}utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle(X,W,te){const re=te.config.validateStatus;!te.status||!re||re(te.status)?X(te):W(new AxiosError$1("Request failed with status code "+te.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(te.status/100)-4],te.config,te.request,te))}function parseProtocol(X){const W=/^([-+\w]{1,25})(:?\/\/|:)/.exec(X);return W&&W[1]||""}function speedometer(X,W){X=X||10;const te=new Array(X),re=new Array(X);let oe=0,ne=0,de;return W=W!==void 0?W:1e3,function(ue){const pe=Date.now(),he=re[ne];de||(de=pe),te[oe]=ue,re[oe]=pe;let fe=ne,be=0;for(;fe!==oe;)be+=te[fe++],fe=fe%X;if(oe=(oe+1)%X,oe===ne&&(ne=(ne+1)%X),pe-de<W)return;const ge=he&&pe-he;return ge?Math.round(be*1e3/ge):void 0}}function throttle(X,W){let te=0,re=1e3/W,oe,ne;const de=(pe,he=Date.now())=>{te=he,oe=null,ne&&(clearTimeout(ne),ne=null),X(...pe)};return[(...pe)=>{const he=Date.now(),fe=he-te;fe>=re?de(pe,he):(oe=pe,ne||(ne=setTimeout(()=>{ne=null,de(oe)},re-fe)))},()=>oe&&de(oe)]}const progressEventReducer=(X,W,te=3)=>{let re=0;const oe=speedometer(50,250);return throttle(ne=>{const de=ne.loaded,ce=ne.lengthComputable?ne.total:void 0,ue=de-re,pe=oe(ue),he=de<=ce;re=de;const fe={loaded:de,total:ce,progress:ce?de/ce:void 0,bytes:ue,rate:pe||void 0,estimated:pe&&ce&&he?(ce-de)/pe:void 0,event:ne,lengthComputable:ce!=null,[W?"download":"upload"]:!0};X(fe)},te)},progressEventDecorator=(X,W)=>{const te=X!=null;return[re=>W[0]({lengthComputable:te,total:X,loaded:re}),W[1]]},asyncDecorator=X=>(...W)=>utils$1.asap(()=>X(...W)),isURLSameOrigin=platform.hasStandardBrowserEnv?((X,W)=>te=>(te=new URL(te,platform.origin),X.protocol===te.protocol&&X.host===te.host&&(W||X.port===te.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(X,W,te,re,oe,ne){const de=[X+"="+encodeURIComponent(W)];utils$1.isNumber(te)&&de.push("expires="+new Date(te).toGMTString()),utils$1.isString(re)&&de.push("path="+re),utils$1.isString(oe)&&de.push("domain="+oe),ne===!0&&de.push("secure"),document.cookie=de.join("; ")},read(X){const W=document.cookie.match(new RegExp("(^|;\\s*)("+X+")=([^;]*)"));return W?decodeURIComponent(W[3]):null},remove(X){this.write(X,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(X){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(X)}function combineURLs(X,W){return W?X.replace(/\/?\/$/,"")+"/"+W.replace(/^\/+/,""):X}function buildFullPath(X,W,te){let re=!isAbsoluteURL(W);return X&&(re||te==!1)?combineURLs(X,W):W}const headersToObject=X=>X instanceof AxiosHeaders$1?{...X}:X;function mergeConfig$2(X,W){W=W||{};const te={};function re(pe,he,fe,be){return utils$1.isPlainObject(pe)&&utils$1.isPlainObject(he)?utils$1.merge.call({caseless:be},pe,he):utils$1.isPlainObject(he)?utils$1.merge({},he):utils$1.isArray(he)?he.slice():he}function oe(pe,he,fe,be){if(utils$1.isUndefined(he)){if(!utils$1.isUndefined(pe))return re(void 0,pe,fe,be)}else return re(pe,he,fe,be)}function ne(pe,he){if(!utils$1.isUndefined(he))return re(void 0,he)}function de(pe,he){if(utils$1.isUndefined(he)){if(!utils$1.isUndefined(pe))return re(void 0,pe)}else return re(void 0,he)}function ce(pe,he,fe){if(fe in W)return re(pe,he);if(fe in X)return re(void 0,pe)}const ue={url:ne,method:ne,data:ne,baseURL:de,transformRequest:de,transformResponse:de,paramsSerializer:de,timeout:de,timeoutMessage:de,withCredentials:de,withXSRFToken:de,adapter:de,responseType:de,xsrfCookieName:de,xsrfHeaderName:de,onUploadProgress:de,onDownloadProgress:de,decompress:de,maxContentLength:de,maxBodyLength:de,beforeRedirect:de,transport:de,httpAgent:de,httpsAgent:de,cancelToken:de,socketPath:de,responseEncoding:de,validateStatus:ce,headers:(pe,he,fe)=>oe(headersToObject(pe),headersToObject(he),fe,!0)};return utils$1.forEach(Object.keys({...X,...W}),function(he){const fe=ue[he]||oe,be=fe(X[he],W[he],he);utils$1.isUndefined(be)&&fe!==ce||(te[he]=be)}),te}const resolveConfig=X=>{const W=mergeConfig$2({},X);let{data:te,withXSRFToken:re,xsrfHeaderName:oe,xsrfCookieName:ne,headers:de,auth:ce}=W;if(W.headers=de=AxiosHeaders$1.from(de),W.url=buildURL(buildFullPath(W.baseURL,W.url,W.allowAbsoluteUrls),X.params,X.paramsSerializer),ce&&de.set("Authorization","Basic "+btoa((ce.username||"")+":"+(ce.password?unescape(encodeURIComponent(ce.password)):""))),utils$1.isFormData(te)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)de.setContentType(void 0);else if(utils$1.isFunction(te.getHeaders)){const ue=te.getHeaders(),pe=["content-type","content-length"];Object.entries(ue).forEach(([he,fe])=>{pe.includes(he.toLowerCase())&&de.set(he,fe)})}}if(platform.hasStandardBrowserEnv&&(re&&utils$1.isFunction(re)&&(re=re(W)),re||re!==!1&&isURLSameOrigin(W.url))){const ue=oe&&ne&&cookies.read(ne);ue&&de.set(oe,ue)}return W},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(X){return new Promise(function(te,re){const oe=resolveConfig(X);let ne=oe.data;const de=AxiosHeaders$1.from(oe.headers).normalize();let{responseType:ce,onUploadProgress:ue,onDownloadProgress:pe}=oe,he,fe,be,ge,ve;function me(){ge&&ge(),ve&&ve(),oe.cancelToken&&oe.cancelToken.unsubscribe(he),oe.signal&&oe.signal.removeEventListener("abort",he)}let _e=new XMLHttpRequest;_e.open(oe.method.toUpperCase(),oe.url,!0),_e.timeout=oe.timeout;function ye(){if(!_e)return;const Se=AxiosHeaders$1.from("getAllResponseHeaders"in _e&&_e.getAllResponseHeaders()),Ce={data:!ce||ce==="text"||ce==="json"?_e.responseText:_e.response,status:_e.status,statusText:_e.statusText,headers:Se,config:X,request:_e};settle(function(Ie){te(Ie),me()},function(Ie){re(Ie),me()},Ce),_e=null}"onloadend"in _e?_e.onloadend=ye:_e.onreadystatechange=function(){!_e||_e.readyState!==4||_e.status===0&&!(_e.responseURL&&_e.responseURL.indexOf("file:")===0)||setTimeout(ye)},_e.onabort=function(){_e&&(re(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,X,_e)),_e=null)},_e.onerror=function(Ae){const Ce=Ae&&Ae.message?Ae.message:"Network Error",Le=new AxiosError$1(Ce,AxiosError$1.ERR_NETWORK,X,_e);Le.event=Ae||null,re(Le),_e=null},_e.ontimeout=function(){let Ae=oe.timeout?"timeout of "+oe.timeout+"ms exceeded":"timeout exceeded";const Ce=oe.transitional||transitionalDefaults;oe.timeoutErrorMessage&&(Ae=oe.timeoutErrorMessage),re(new AxiosError$1(Ae,Ce.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,X,_e)),_e=null},ne===void 0&&de.setContentType(null),"setRequestHeader"in _e&&utils$1.forEach(de.toJSON(),function(Ae,Ce){_e.setRequestHeader(Ce,Ae)}),utils$1.isUndefined(oe.withCredentials)||(_e.withCredentials=!!oe.withCredentials),ce&&ce!=="json"&&(_e.responseType=oe.responseType),pe&&([be,ve]=progressEventReducer(pe,!0),_e.addEventListener("progress",be)),ue&&_e.upload&&([fe,ge]=progressEventReducer(ue),_e.upload.addEventListener("progress",fe),_e.upload.addEventListener("loadend",ge)),(oe.cancelToken||oe.signal)&&(he=Se=>{_e&&(re(!Se||Se.type?new CanceledError$1(null,X,_e):Se),_e.abort(),_e=null)},oe.cancelToken&&oe.cancelToken.subscribe(he),oe.signal&&(oe.signal.aborted?he():oe.signal.addEventListener("abort",he)));const we=parseProtocol(oe.url);if(we&&platform.protocols.indexOf(we)===-1){re(new AxiosError$1("Unsupported protocol "+we+":",AxiosError$1.ERR_BAD_REQUEST,X));return}_e.send(ne||null)})},composeSignals=(X,W)=>{const{length:te}=X=X?X.filter(Boolean):[];if(W||te){let re=new AbortController,oe;const ne=function(pe){if(!oe){oe=!0,ce();const he=pe instanceof Error?pe:this.reason;re.abort(he instanceof AxiosError$1?he:new CanceledError$1(he instanceof Error?he.message:he))}};let de=W&&setTimeout(()=>{de=null,ne(new AxiosError$1(`timeout ${W} of ms exceeded`,AxiosError$1.ETIMEDOUT))},W);const ce=()=>{X&&(de&&clearTimeout(de),de=null,X.forEach(pe=>{pe.unsubscribe?pe.unsubscribe(ne):pe.removeEventListener("abort",ne)}),X=null)};X.forEach(pe=>pe.addEventListener("abort",ne));const{signal:ue}=re;return ue.unsubscribe=()=>utils$1.asap(ce),ue}},streamChunk=function*(X,W){let te=X.byteLength;if(te<W){yield X;return}let re=0,oe;for(;re<te;)oe=re+W,yield X.slice(re,oe),re=oe},readBytes=async function*(X,W){for await(const te of readStream(X))yield*streamChunk(te,W)},readStream=async function*(X){if(X[Symbol.asyncIterator]){yield*X;return}const W=X.getReader();try{for(;;){const{done:te,value:re}=await W.read();if(te)break;yield re}}finally{await W.cancel()}},trackStream=(X,W,te,re)=>{const oe=readBytes(X,W);let ne=0,de,ce=ue=>{de||(de=!0,re&&re(ue))};return new ReadableStream({async pull(ue){try{const{done:pe,value:he}=await oe.next();if(pe){ce(),ue.close();return}let fe=he.byteLength;if(te){let be=ne+=fe;te(be)}ue.enqueue(new Uint8Array(he))}catch(pe){throw ce(pe),pe}},cancel(ue){return ce(ue),oe.return()}},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=64*1024,{isFunction}=utils$1,globalFetchAPI=(({Request:X,Response:W})=>({Request:X,Response:W}))(utils$1.global),{ReadableStream:ReadableStream$1,TextEncoder}=utils$1.global,test=(X,...W)=>{try{return!!X(...W)}catch{return!1}},factory=X=>{X=utils$1.merge.call({skipUndefined:!0},globalFetchAPI,X);const{fetch:W,Request:te,Response:re}=X,oe=W?isFunction(W):typeof fetch=="function",ne=isFunction(te),de=isFunction(re);if(!oe)return!1;const ce=oe&&isFunction(ReadableStream$1),ue=oe&&(typeof TextEncoder=="function"?(ve=>me=>ve.encode(me))(new TextEncoder):async ve=>new Uint8Array(await new te(ve).arrayBuffer())),pe=ne&&ce&&test(()=>{let ve=!1;const me=new te(platform.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return ve=!0,"half"}}).headers.has("Content-Type");return ve&&!me}),he=de&&ce&&test(()=>utils$1.isReadableStream(new re("").body)),fe={stream:he&&(ve=>ve.body)};oe&&["text","arrayBuffer","blob","formData","stream"].forEach(ve=>{!fe[ve]&&(fe[ve]=(me,_e)=>{let ye=me&&me[ve];if(ye)return ye.call(me);throw new AxiosError$1(`Response type '${ve}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,_e)})});const be=async ve=>{if(ve==null)return 0;if(utils$1.isBlob(ve))return ve.size;if(utils$1.isSpecCompliantForm(ve))return(await new te(platform.origin,{method:"POST",body:ve}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(ve)||utils$1.isArrayBuffer(ve))return ve.byteLength;if(utils$1.isURLSearchParams(ve)&&(ve=ve+""),utils$1.isString(ve))return(await ue(ve)).byteLength},ge=async(ve,me)=>{const _e=utils$1.toFiniteNumber(ve.getContentLength());return _e??be(me)};return async ve=>{let{url:me,method:_e,data:ye,signal:we,cancelToken:Se,timeout:Ae,onDownloadProgress:Ce,onUploadProgress:Le,responseType:Ie,headers:Me,withCredentials:Ve="same-origin",fetchOptions:Pe}=resolveConfig(ve),Oe=W||fetch;Ie=Ie?(Ie+"").toLowerCase():"text";let qe=composeSignals([we,Se&&Se.toAbortSignal()],Ae),Fe=null;const He=qe&&qe.unsubscribe&&(()=>{qe.unsubscribe()});let Ke;try{if(Le&&pe&&_e!=="get"&&_e!=="head"&&(Ke=await ge(Me,ye))!==0){let ze=new te(me,{method:"POST",body:ye,duplex:"half"}),je;if(utils$1.isFormData(ye)&&(je=ze.headers.get("content-type"))&&Me.setContentType(je),ze.body){const[Be,Xe]=progressEventDecorator(Ke,progressEventReducer(asyncDecorator(Le)));ye=trackStream(ze.body,DEFAULT_CHUNK_SIZE,Be,Xe)}}utils$1.isString(Ve)||(Ve=Ve?"include":"omit");const Ge=ne&&"credentials"in te.prototype,Ye={...Pe,signal:qe,method:_e.toUpperCase(),headers:Me.normalize().toJSON(),body:ye,duplex:"half",credentials:Ge?Ve:void 0};Fe=ne&&new te(me,Ye);let xt=await(ne?Oe(Fe,Pe):Oe(me,Ye));const Qe=he&&(Ie==="stream"||Ie==="response");if(he&&(Ce||Qe&&He)){const ze={};["status","statusText","headers"].forEach(tt=>{ze[tt]=xt[tt]});const je=utils$1.toFiniteNumber(xt.headers.get("content-length")),[Be,Xe]=Ce&&progressEventDecorator(je,progressEventReducer(asyncDecorator(Ce),!0))||[];xt=new re(trackStream(xt.body,DEFAULT_CHUNK_SIZE,Be,()=>{Xe&&Xe(),He&&He()}),ze)}Ie=Ie||"text";let Ze=await fe[utils$1.findKey(fe,Ie)||"text"](xt,ve);return!Qe&&He&&He(),await new Promise((ze,je)=>{settle(ze,je,{data:Ze,headers:AxiosHeaders$1.from(xt.headers),status:xt.status,statusText:xt.statusText,config:ve,request:Fe})})}catch(Ge){throw He&&He(),Ge&&Ge.name==="TypeError"&&/Load failed|fetch/i.test(Ge.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,ve,Fe),{cause:Ge.cause||Ge}):AxiosError$1.from(Ge,Ge&&Ge.code,ve,Fe)}}},seedCache=new Map,getFetch=X=>{let W=X?X.env:{};const{fetch:te,Request:re,Response:oe}=W,ne=[re,oe,te];let de=ne.length,ce=de,ue,pe,he=seedCache;for(;ce--;)ue=ne[ce],pe=he.get(ue),pe===void 0&&he.set(ue,pe=ce?new Map:factory(W)),he=pe;return pe};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,(X,W)=>{if(X){try{Object.defineProperty(X,"name",{value:W})}catch{}Object.defineProperty(X,"adapterName",{value:W})}});const renderReason=X=>`- ${X}`,isResolvedHandle=X=>utils$1.isFunction(X)||X===null||X===!1,adapters={getAdapter:(X,W)=>{X=utils$1.isArray(X)?X:[X];const{length:te}=X;let re,oe;const ne={};for(let de=0;de<te;de++){re=X[de];let ce;if(oe=re,!isResolvedHandle(re)&&(oe=knownAdapters[(ce=String(re)).toLowerCase()],oe===void 0))throw new AxiosError$1(`Unknown adapter '${ce}'`);if(oe&&(utils$1.isFunction(oe)||(oe=oe.get(W))))break;ne[ce||"#"+de]=oe}if(!oe){const de=Object.entries(ne).map(([ue,pe])=>`adapter ${ue} `+(pe===!1?"is not supported by the environment":"is not available in the build"));let ce=te?de.length>1?`since :
|
|
117
117
|
`+de.map(renderReason).join(`
|
|
@@ -8669,7 +8669,7 @@ ${X.searchString?.length>1?ke$1`
|
|
|
8669
8669
|
</div>
|
|
8670
8670
|
<primaria-error-view .error=${X.error} view=${shellViews.error}></primaria-error-view>
|
|
8671
8671
|
</primaria-content-switcher>
|
|
8672
|
-
`;var __defProp$e=Object.defineProperty,__decorateClass$f=(X,W,te,re)=>{for(var oe=void 0,ne=X.length-1,de;ne>=0;ne--)(de=X[ne])&&(oe=de(W,te,oe)||oe);return oe&&__defProp$e(W,te,oe),oe};const js=class js extends PrimariaRegionHost(h$n){constructor(){super(...arguments),this.sidebarExpanded=!1,this.viewSelected=shellViews.shell,this.quickActionBusy=!1,this.subscriptions=[]}render(){return ke$1`${template$d(this)}`}connectedCallback(){super.connectedCallback(),this._subscribeEvents()}disconnectedCallback(){super.disconnectedCallback(),this._unsubscribeEvents()}_toggleSidebar(){this.sidebarExpanded=!this.sidebarExpanded}_subscribeEvents(){this.subscriptions.push(shellApi.broker.subscribe(BROKER_EVENTS.shell.appCrashed,W=>{this._handleError(W)})),this.subscriptions.push(shellApi.broker.subscribe(BROKER_EVENTS.shell.refreshTokenFailed,W=>{this._handleError({message:translate$1("errors.session")})})),this.subscriptions.push(shellApi.broker.subscribe(BROKER_EVENTS.shell.mpidHeaderInvalid,W=>{this._handleError({message:translate$1("errors.invalidPatient")})})),this.subscriptions.push(shellApi.broker.subscribe(BROKER_EVENTS.shell.quickActionBusyChanged,W=>{this.quickActionBusy=W.busy}))
|
|
8672
|
+
`;var __defProp$e=Object.defineProperty,__decorateClass$f=(X,W,te,re)=>{for(var oe=void 0,ne=X.length-1,de;ne>=0;ne--)(de=X[ne])&&(oe=de(W,te,oe)||oe);return oe&&__defProp$e(W,te,oe),oe};const js=class js extends PrimariaRegionHost(h$n){constructor(){super(...arguments),this.sidebarExpanded=!1,this.viewSelected=shellViews.shell,this.quickActionBusy=!1,this.subscriptions=[]}render(){return ke$1`${template$d(this)}`}connectedCallback(){super.connectedCallback(),this._subscribeEvents()}disconnectedCallback(){super.disconnectedCallback(),this._unsubscribeEvents()}_toggleSidebar(){this.sidebarExpanded=!this.sidebarExpanded}_subscribeEvents(){this.subscriptions.push(shellApi.broker.subscribe(BROKER_EVENTS.shell.appCrashed,W=>{this._handleError(W)})),this.subscriptions.push(shellApi.broker.subscribe(BROKER_EVENTS.shell.refreshTokenFailed,W=>{this._handleError({message:translate$1("errors.session")})})),this.subscriptions.push(shellApi.broker.subscribe(BROKER_EVENTS.shell.mpidHeaderInvalid,W=>{this._handleError({message:translate$1("errors.invalidPatient")})})),this.subscriptions.push(shellApi.broker.subscribe(BROKER_EVENTS.shell.quickActionBusyChanged,W=>{this.quickActionBusy=W.busy}))}_handleError(W){this.viewSelected=shellViews.error,this.error=W,disposeShell()}_unsubscribeEvents(){this.subscriptions.forEach(W=>W.dispose())}};js.styles=i$R`
|
|
8673
8673
|
${r$K(styles$c)}
|
|
8674
8674
|
`;let PrimariaShell=js;__decorateClass$f([s$L({targetId:"menu-region-container",name:shellApi.regionManager.regions.shell.navigationMenu})],PrimariaShell.prototype,"navigationMenuRegion"),__decorateClass$f([s$L({targetId:"main-region-container",name:shellApi.regionManager.regions.shell.main})],PrimariaShell.prototype,"mainRegion"),__decorateClass$f([s$L({targetId:"quick-actions-region-container",name:shellApi.regionManager.regions.shell.quickActions})],PrimariaShell.prototype,"quickActionsRegion"),__decorateClass$f([s$L({targetId:"floating-region-container",name:shellApi.regionManager.regions.shell.floating})],PrimariaShell.prototype,"floatingRegion"),__decorateClass$f([s$L({targetId:"navigation-menu-lower-region-container",name:shellApi.regionManager.regions.shell.navigationLowerLeftMenu})],PrimariaShell.prototype,"navLowerLeftMenu"),__decorateClass$f([r$H()],PrimariaShell.prototype,"sidebarExpanded"),__decorateClass$f([r$H()],PrimariaShell.prototype,"viewSelected"),__decorateClass$f([r$H()],PrimariaShell.prototype,"error"),__decorateClass$f([r$H()],PrimariaShell.prototype,"quickActionBusy");const styles$b=":host{width:100%;height:100%;min-height:1px;display:flex}.container{width:100%;min-height:1px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#60a8f0}svg{width:45px;height:45px;fill:#d36262}h1{color:#fff}",template$c=X=>ke$1`
|
|
8675
8675
|
<div class="container">
|
|
@@ -8778,7 +8778,7 @@ ${X.searchString?.length>1?ke$1`
|
|
|
8778
8778
|
justify-content: space-between;
|
|
8779
8779
|
align-items: center;
|
|
8780
8780
|
}
|
|
8781
|
-
`;let PrimariaAccordion=Zs;__decorateClass$c([n$A({type:Boolean})],PrimariaAccordion.prototype,"isOpen");const template$9=X=>ke$1`
|
|
8781
|
+
`;let PrimariaAccordion=Zs;__decorateClass$c([n$A({type:Boolean})],PrimariaAccordion.prototype,"isOpen");const styles$9=".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}dss-tooltip{pointer-events:none}",template$9=X=>ke$1`
|
|
8782
8782
|
<div class="item" ?expanded=${X.showText}>
|
|
8783
8783
|
<div class="icon-label">
|
|
8784
8784
|
<dss-icon icon=${X.icon} size="md"></dss-icon>
|
|
@@ -8792,9 +8792,9 @@ ${X.searchString?.length>1?ke$1`
|
|
|
8792
8792
|
</dss-action-menu>
|
|
8793
8793
|
${X.showText?ke$1`<dss-icon icon="chevron_right" size="md"></dss-icon>`:D$4}
|
|
8794
8794
|
</div>
|
|
8795
|
-
|
|
8795
|
+
`;var __defProp$a=Object.defineProperty,__decorateClass$b=(X,W,te,re)=>{for(var oe=void 0,ne=X.length-1,de;ne>=0;ne--)(de=X[ne])&&(oe=de(W,te,oe)||oe);return oe&&__defProp$a(W,te,oe),oe};const Ys=class Ys extends PrimariaRegionHost(h$n){constructor(W,te){super(),this.showText=!1,this.icon="",this.label="",this.icon=W,this.label=te}firstUpdated(W){super.firstUpdated(W),this.observeHostResize()}observeHostResize(){const W=this.parentElement;new ResizeObserver(re=>{for(const oe of re){const ne=oe.target.clientWidth;this.showText=ne>100}}).observe(W)}render(){return ke$1`${template$9(this)}`}};Ys.styles=i$R`
|
|
8796
8796
|
${r$K(styles$9)}
|
|
8797
|
-
`;let CommunicationActionMenu=Ys;__decorateClass$b([r$H()],CommunicationActionMenu.prototype,"showText"),__decorateClass$b([s$L({targetId:"communication-sidenav-region-container",name:
|
|
8797
|
+
`;let CommunicationActionMenu=Ys;__decorateClass$b([r$H()],CommunicationActionMenu.prototype,"showText"),__decorateClass$b([s$L({targetId:"communication-sidenav-region-container",name:shellRegions.communicationSidenav})],CommunicationActionMenu.prototype,"comminucationSidenavRegion"),__decorateClass$b([n$A({type:String})],CommunicationActionMenu.prototype,"icon"),__decorateClass$b([n$A({type:String})],CommunicationActionMenu.prototype,"label");const styles$8=".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}dss-tooltip{pointer-events:none}",template$8=X=>ke$1`
|
|
8798
8798
|
<div class="item" ?expanded=${X.showText}>
|
|
8799
8799
|
<div class="icon-label">
|
|
8800
8800
|
<dss-icon icon=${X.icon} size="md"></dss-icon>
|
|
@@ -8808,9 +8808,9 @@ ${X.searchString?.length>1?ke$1`
|
|
|
8808
8808
|
</dss-action-menu>
|
|
8809
8809
|
${X.showText?ke$1`<dss-icon icon="chevron_right" size="md"></dss-icon>`:D$4}
|
|
8810
8810
|
</div>
|
|
8811
|
-
|
|
8811
|
+
`;var __defProp$9=Object.defineProperty,__decorateClass$a=(X,W,te,re)=>{for(var oe=void 0,ne=X.length-1,de;ne>=0;ne--)(de=X[ne])&&(oe=de(W,te,oe)||oe);return oe&&__defProp$9(W,te,oe),oe};const Js=class Js extends PrimariaRegionHost(h$n){constructor(W,te){super(),this.showText=!1,this.icon="",this.label="",this.icon=W,this.label=te}firstUpdated(W){super.firstUpdated(W),this.observeHostResize()}observeHostResize(){const W=this.parentElement;new ResizeObserver(re=>{for(const oe of re){const ne=oe.target.clientWidth;this.showText=ne>100}}).observe(W)}render(){return ke$1`${template$8(this)}`}};Js.styles=i$R`
|
|
8812
8812
|
${r$K(styles$8)}
|
|
8813
|
-
`;let ClinicalPathwaysActionMenu=Js;__decorateClass$a([r$H()],ClinicalPathwaysActionMenu.prototype,"showText"),__decorateClass$a([s$L({targetId:"clinical-pathways-sidenav-region-container",name:
|
|
8813
|
+
`;let ClinicalPathwaysActionMenu=Js;__decorateClass$a([r$H()],ClinicalPathwaysActionMenu.prototype,"showText"),__decorateClass$a([s$L({targetId:"clinical-pathways-sidenav-region-container",name:shellRegions.clinicalPathwaysSidenav})],ClinicalPathwaysActionMenu.prototype,"clinicalPathwaysSidenavRegion"),__decorateClass$a([n$A({type:String})],ClinicalPathwaysActionMenu.prototype,"icon"),__decorateClass$a([n$A({type:String})],ClinicalPathwaysActionMenu.prototype,"label");const styles$7=".item{display:flex;cursor:pointer;border-radius:8px;padding:8px;justify-content:center;transition:background-color .3s ease}.item[expanded]{justify-content:space-between}.item:hover{background-color:var(--color-primary-900);color:#fff}.item .icon-label{display:flex;gap:8px;transition:background-color .3s}.item.active{outline:2px solid white;outline-offset:-2px}dss-tooltip{pointer-events:none}",template$7=X=>ke$1`
|
|
8814
8814
|
<div class="item" ?expanded=${X.showText}>
|
|
8815
8815
|
<div class="icon-label">
|
|
8816
8816
|
<dss-icon icon=${X.icon} size="md"></dss-icon>
|
|
@@ -8824,9 +8824,9 @@ ${X.searchString?.length>1?ke$1`
|
|
|
8824
8824
|
</dss-action-menu>
|
|
8825
8825
|
${X.showText?ke$1`<dss-icon icon="chevron_right" size="md"></dss-icon>`:D$4}
|
|
8826
8826
|
</div>
|
|
8827
|
-
|
|
8827
|
+
`;var __defProp$8=Object.defineProperty,__decorateClass$9=(X,W,te,re)=>{for(var oe=void 0,ne=X.length-1,de;ne>=0;ne--)(de=X[ne])&&(oe=de(W,te,oe)||oe);return oe&&__defProp$8(W,te,oe),oe};const Qs=class Qs extends PrimariaRegionHost(h$n){constructor(W,te){super(),this.showText=!1,this.icon="",this.label="",this.icon=W,this.label=te}firstUpdated(W){super.firstUpdated(W),this.observeHostResize()}observeHostResize(){const W=this.parentElement;new ResizeObserver(re=>{for(const oe of re){const ne=oe.target.clientWidth;this.showText=ne>100}}).observe(W)}render(){return ke$1`${template$7(this)}`}};Qs.styles=i$R`
|
|
8828
8828
|
${r$K(styles$7)}
|
|
8829
|
-
`;let PetitionerActionMenu=Qs;__decorateClass$9([r$H()],PetitionerActionMenu.prototype,"showText"),__decorateClass$9([s$L({targetId:"petitioner-sidenav-region-container",name:
|
|
8829
|
+
`;let PetitionerActionMenu=Qs;__decorateClass$9([r$H()],PetitionerActionMenu.prototype,"showText"),__decorateClass$9([s$L({targetId:"petitioner-sidenav-region-container",name:shellRegions.petitionerSidenav})],PetitionerActionMenu.prototype,"petitionerSidenavRegion"),__decorateClass$9([n$A({type:String})],PetitionerActionMenu.prototype,"icon"),__decorateClass$9([n$A({type:String})],PetitionerActionMenu.prototype,"label");const styles$6=".header-container{width:1px;height:40px;background-color:var(--color-neutral-100)}",template$6=X=>ke$1`
|
|
8830
8830
|
<div class="header-container"></div>
|
|
8831
8831
|
`,Xs=class Xs extends h$n{render(){return ke$1`${template$6()}`}};Xs.styles=i$R`
|
|
8832
8832
|
${r$K(styles$6)}
|
|
@@ -8981,5 +8981,5 @@ ${X.searchString?.length>1?ke$1`
|
|
|
8981
8981
|
</div>
|
|
8982
8982
|
`;var __getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(X,W,te,re)=>{for(var oe=re>1?void 0:re?__getOwnPropDesc(W,te):W,ne=X.length-1,de;ne>=0;ne--)(de=X[ne])&&(oe=de(oe)||oe);return oe};let ImportDataManagerModal=class extends h$n{constructor(){super(...arguments),this._accept=()=>{this.confirm()}}render(){return ke$1`${template(this)}`}};ImportDataManagerModal.styles=i$R`
|
|
8983
8983
|
${r$K(styles)}
|
|
8984
|
-
`,ImportDataManagerModal=__decorateClass([t$z("import-data-manager-modal")],ImportDataManagerModal);const component=Object.freeze(Object.defineProperty({__proto__:null,get ImportDataManagerModal(){return ImportDataManagerModal}},Symbol.toStringTag,{value:"Module"}));exports.EcapEventManager=EcapEventManager,exports.ExitShell=ExitShell,exports.PrimariaContentSwitcher=PrimariaContentSwitcher,exports.PrimariaInteractionService=PrimariaInteractionService,exports.PrimariaNavItem=PrimariaNavItem,exports.PrimariaRegion=PrimariaRegion,exports.PrimariaRegionHost=PrimariaRegionHost,exports.activityHistoryRegions=activityHistoryRegions,exports.
|
|
8984
|
+
`,ImportDataManagerModal=__decorateClass([t$z("import-data-manager-modal")],ImportDataManagerModal);const component=Object.freeze(Object.defineProperty({__proto__:null,get ImportDataManagerModal(){return ImportDataManagerModal}},Symbol.toStringTag,{value:"Module"}));exports.EcapEventManager=EcapEventManager,exports.ExitShell=ExitShell,exports.PrimariaContentSwitcher=PrimariaContentSwitcher,exports.PrimariaInteractionService=PrimariaInteractionService,exports.PrimariaNavItem=PrimariaNavItem,exports.PrimariaRegion=PrimariaRegion,exports.PrimariaRegionHost=PrimariaRegionHost,exports.activityHistoryRegions=activityHistoryRegions,exports.administrativeManagementRegions=administrativeManagementRegions,exports.bootstrapPlugins=bootstrapPlugins,exports.clinicalMonitoringRegions=clinicalMonitoringRegions,exports.createEcapEventManager=createEcapEventManager,exports.disposePlugins=disposePlugins,exports.disposeShell=disposeShell,exports.handleStartupPlugin=handleStartupPlugin,exports.initializeShell=initializeShell,exports.raiseCloseEvent=raiseCloseEvent,exports.raiseCustomCloseEvent=raiseCustomCloseEvent,exports.shellApi=shellApi,exports.shellRegions=shellRegions,exports.wrapReactViewFactory=l,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));
|
|
8985
8985
|
//# sourceMappingURL=index.umd.cjs.map
|