@luigi-project/core 2.16.1-dev.20241020823 → 2.16.1-dev.20241020912

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/luigi.js CHANGED
@@ -60,5 +60,5 @@ function print() { __p += __j.call(arguments, '') }
60
60
  <div class="fd-busy-indicator__circle"></div>
61
61
  <div class="fd-busy-indicator__circle"></div></div>`,f(e,"class","fd-page spinnerContainer appSpinner fade-out svelte-1dwxj5w"),f(e,"aria-hidden","false"),f(e,"aria-label","Loading")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function D_(i){let e,t,n,l,r,a,o;function c(m){i[82](m)}function h(m){i[83](m)}function d(m){i[84](m)}function g(m){i[85](m)}function p(m){i[86](m)}let b={hideSearchComponent:i[21],pathData:i[14],pathParams:i[13],burgerTooltip:i[18]};return i[0]!==void 0&&(b.isSearchFieldVisible=i[0]),i[3]!==void 0&&(b.displaySearchResult=i[3]),i[4]!==void 0&&(b.searchResult=i[4]),i[1]!==void 0&&(b.inputElem=i[1]),i[2]!==void 0&&(b.customSearchItemRendererSlot=i[2]),e=new bp({props:b}),je.push(()=>wt(e,"isSearchFieldVisible",c,i[0])),je.push(()=>wt(e,"displaySearchResult",h,i[3])),je.push(()=>wt(e,"searchResult",d,i[4])),je.push(()=>wt(e,"inputElem",g,i[1])),je.push(()=>wt(e,"customSearchItemRendererSlot",p,i[2])),e.$on("handleClick",i[31]),e.$on("resizeTabNav",i[32]),e.$on("toggleSearch",i[6]),e.$on("closeSearchResult",i[7]),e.$on("handleSearchNavigation",i[8]),{c(){Me(e.$$.fragment)},m(m,v){Ve(e,m,v),o=!0},p(m,v){const C={};v[0]&2097152&&(C.hideSearchComponent=m[21]),v[0]&16384&&(C.pathData=m[14]),v[0]&8192&&(C.pathParams=m[13]),v[0]&262144&&(C.burgerTooltip=m[18]),!t&&v[0]&1&&(t=!0,C.isSearchFieldVisible=m[0],vt(()=>t=!1)),!n&&v[0]&8&&(n=!0,C.displaySearchResult=m[3],vt(()=>n=!1)),!l&&v[0]&16&&(l=!0,C.searchResult=m[4],vt(()=>l=!1)),!r&&v[0]&2&&(r=!0,C.inputElem=m[1],vt(()=>r=!1)),!a&&v[0]&4&&(a=!0,C.customSearchItemRendererSlot=m[2],vt(()=>a=!1)),e.$set(C)},i(m){o||(R(e.$$.fragment,m),o=!0)},o(m){U(e.$$.fragment,m),o=!1},d(m){Oe(e,m)}}}function V_(i){let e,t,n,l;e=new I9({props:{pathData:i[14],pathParams:i[13]}}),e.$on("handleClick",i[31]);let r=i[19]&&O_(i);return{c(){Me(e.$$.fragment),t=W(),r&&r.c(),n=ke()},m(a,o){Ve(e,a,o),A(a,t,o),r&&r.m(a,o),A(a,n,o),l=!0},p(a,o){const c={};o[0]&16384&&(c.pathData=a[14]),o[0]&8192&&(c.pathParams=a[13]),e.$set(c),a[19]?r?(r.p(a,o),o[0]&524288&&R(r,1)):(r=O_(a),r.c(),R(r,1),r.m(n.parentNode,n)):r&&(ve(),U(r,1,1,()=>{r=null}),we())},i(a){l||(R(e.$$.fragment,a),R(r),l=!0)},o(a){U(e.$$.fragment,a),U(r),l=!1},d(a){Oe(e,a),a&&L(t),r&&r.d(a),a&&L(n)}}}function O_(i){let e,t;return e=new kp({props:{pathData:i[14],pathParams:i[13]}}),e.$on("handleClick",i[31]),{c(){Me(e.$$.fragment)},m(n,l){Ve(e,n,l),t=!0},p(n,l){const r={};l[0]&16384&&(r.pathData=n[14]),l[0]&8192&&(r.pathParams=n[13]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Oe(e,n)}}}function M_(i){let e,t;return e=new up({props:{pathData:i[14],pathParams:i[13],burgerTooltip:i[18]}}),e.$on("handleClick",i[31]),e.$on("resizeTabNav",i[32]),{c(){Me(e.$$.fragment)},m(n,l){Ve(e,n,l),t=!0},p(n,l){const r={};l[0]&16384&&(r.pathData=n[14]),l[0]&8192&&(r.pathParams=n[13]),l[0]&262144&&(r.burgerTooltip=n[18]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Oe(e,n)}}}function F_(i){let e,t;return e=new wp({props:{pathData:i[14],pathParams:i[13],resizeTabNavToggle:i[16]}}),e.$on("handleClick",i[31]),{c(){Me(e.$$.fragment)},m(n,l){Ve(e,n,l),t=!0},p(n,l){const r={};l[0]&16384&&(r.pathData=n[14]),l[0]&8192&&(r.pathParams=n[13]),l[0]&65536&&(r.resizeTabNavToggle=n[16]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Oe(e,n)}}}function U_(i){let e,t,n,l,r,a,o;function c(m){i[77](m)}function h(m){i[78](m)}function d(m){i[79](m)}function g(m){i[80](m)}function p(m){i[81](m)}let b={hideSearchComponent:i[21],pathData:i[14],pathParams:i[13],burgerTooltip:i[18]};return i[0]!==void 0&&(b.isSearchFieldVisible=i[0]),i[3]!==void 0&&(b.displaySearchResult=i[3]),i[4]!==void 0&&(b.searchResult=i[4]),i[1]!==void 0&&(b.inputElem=i[1]),i[2]!==void 0&&(b.customSearchItemRendererSlot=i[2]),e=new bp({props:b}),je.push(()=>wt(e,"isSearchFieldVisible",c,i[0])),je.push(()=>wt(e,"displaySearchResult",h,i[3])),je.push(()=>wt(e,"searchResult",d,i[4])),je.push(()=>wt(e,"inputElem",g,i[1])),je.push(()=>wt(e,"customSearchItemRendererSlot",p,i[2])),e.$on("handleClick",i[31]),e.$on("resizeTabNav",i[32]),e.$on("toggleSearch",i[6]),e.$on("closeSearchResult",i[7]),e.$on("handleSearchNavigation",i[8]),{c(){Me(e.$$.fragment)},m(m,v){Ve(e,m,v),o=!0},p(m,v){const C={};v[0]&2097152&&(C.hideSearchComponent=m[21]),v[0]&16384&&(C.pathData=m[14]),v[0]&8192&&(C.pathParams=m[13]),v[0]&262144&&(C.burgerTooltip=m[18]),!t&&v[0]&1&&(t=!0,C.isSearchFieldVisible=m[0],vt(()=>t=!1)),!n&&v[0]&8&&(n=!0,C.displaySearchResult=m[3],vt(()=>n=!1)),!l&&v[0]&16&&(l=!0,C.searchResult=m[4],vt(()=>l=!1)),!r&&v[0]&2&&(r=!0,C.inputElem=m[1],vt(()=>r=!1)),!a&&v[0]&4&&(a=!0,C.customSearchItemRendererSlot=m[2],vt(()=>a=!1)),e.$set(C)},i(m){o||(R(e.$$.fragment,m),o=!0)},o(m){U(e.$$.fragment,m),o=!1},d(m){Oe(e,m)}}}function B_(i){let e,t,n,l;return n=new up({props:{pathData:i[14],pathParams:i[13],burgerTooltip:i[18]}}),n.$on("handleClick",i[31]),n.$on("resizeTabNav",i[32]),{c(){e=S("div"),t=S("div"),Me(n.$$.fragment),f(t,"class","lui-box svelte-1dwxj5w"),f(e,"class","fd-tool-layout__navigation-container svelte-1dwxj5w")},m(r,a){A(r,e,a),w(e,t),Ve(n,t,null),l=!0},p(r,a){const o={};a[0]&16384&&(o.pathData=r[14]),a[0]&8192&&(o.pathParams=r[13]),a[0]&262144&&(o.burgerTooltip=r[18]),n.$set(o)},i(r){l||(R(n.$$.fragment,r),l=!0)},o(r){U(n.$$.fragment,r),l=!1},d(r){r&&L(e),Oe(n)}}}function H_(i){let e,t;return e=new kp({props:{pathData:i[14],pathParams:i[13]}}),e.$on("handleClick",i[31]),{c(){Me(e.$$.fragment)},m(n,l){Ve(e,n,l),t=!0},p(n,l){const r={};l[0]&16384&&(r.pathData=n[14]),l[0]&8192&&(r.pathParams=n[13]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Oe(e,n)}}}function W_(i){let e,t;return e=new wp({props:{pathData:i[14],pathParams:i[13],resizeTabNavToggle:i[16]}}),e.$on("handleClick",i[31]),{c(){Me(e.$$.fragment)},m(n,l){Ve(e,n,l),t=!0},p(n,l){const r={};l[0]&16384&&(r.pathData=n[14]),l[0]&8192&&(r.pathParams=n[13]),l[0]&65536&&(r.resizeTabNavToggle=n[16]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Oe(e,n)}}}function q_(i){let e,t;return e=new op({props:{splitViewSettings:i[11].settings,collapsed:i[11].collapsed,nodepath:i[11].nodepath,disableBackdrop:i[12]}}),e.$on("iframeCreated",i[33]),e.$on("statusChanged",i[34]),e.$on("wcCreated",i[35]),{c(){Me(e.$$.fragment)},m(n,l){Ve(e,n,l),t=!0},p(n,l){const r={};l[0]&2048&&(r.splitViewSettings=n[11].settings),l[0]&2048&&(r.collapsed=n[11].collapsed),l[0]&2048&&(r.nodepath=n[11].nodepath),l[0]&4096&&(r.disableBackdrop=n[12]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Oe(e,n)}}}function O9(i){let e,t,n,l,r,a,o,c,h,d;t=new Wl({props:{area:"main",disable:i[12]}});let g=i[15]&&!i[20]&&W_(i),p=i[11].displayed&&q_(i);return{c(){e=S("div"),Me(t.$$.fragment),n=W(),l=S("div"),r=W(),g&&g.c(),a=W(),p&&p.c(),o=ke(),f(l,"class","wcContainer svelte-1dwxj5w"),f(e,"class","fd-page iframeContainer svelte-1dwxj5w"),f(e,"tabindex","0"),jt(e,"lui-split-view",i[11].displayed),jt(e,"lui-collapsed",i[11].collapsed)},m(b,m){A(b,e,m),Ve(t,e,null),w(e,n),w(e,l),A(b,r,m),g&&g.m(b,m),A(b,a,m),p&&p.m(b,m),A(b,o,m),c=!0,h||(d=j_(i[46].call(null,e)),h=!0)},p(b,m){const v={};m[0]&4096&&(v.disable=b[12]),t.$set(v),(!c||m[0]&2048)&&jt(e,"lui-split-view",b[11].displayed),(!c||m[0]&2048)&&jt(e,"lui-collapsed",b[11].collapsed),b[15]&&!b[20]?g?(g.p(b,m),m[0]&1081344&&R(g,1)):(g=W_(b),g.c(),R(g,1),g.m(a.parentNode,a)):g&&(ve(),U(g,1,1,()=>{g=null}),we()),b[11].displayed?p?(p.p(b,m),m[0]&2048&&R(p,1)):(p=q_(b),p.c(),R(p,1),p.m(o.parentNode,o)):p&&(ve(),U(p,1,1,()=>{p=null}),we())},i(b){c||(R(t.$$.fragment,b),R(g),R(p),c=!0)},o(b){U(t.$$.fragment,b),U(g),U(p),c=!1},d(b){b&&L(e),Oe(t),b&&L(r),g&&g.d(b),b&&L(a),p&&p.d(b),b&&L(o),h=!1,d()}}}function z_(i){let e;return{c(){e=S("div"),e.innerHTML=`<div class="fd-busy-indicator fd-busy-indicator--m" aria-hidden="false" aria-label="Loading" data-testid="luigi-loading-spinner"><div class="fd-busy-indicator__circle"></div>
62
62
  <div class="fd-busy-indicator__circle"></div>
63
- <div class="fd-busy-indicator__circle"></div></div>`,f(e,"class","fd-page spinnerContainer appSpinner fade-out svelte-1dwxj5w"),f(e,"aria-hidden","false"),f(e,"aria-label","Loading")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function M9(i){let e,t,n,l,r,a,o,c,h,d,g,p=i[26]&&i[26].length&&P_(i),b=i[28],m=[];for(let E=0;E<b.length;E+=1)m[E]=N_(y_(i,b,E));const v=E=>U(m[E],1,1,()=>{m[E]=null});let C=i[29].displayed&&i[29].settings.isDrawer&&T_(i),y=i[27].displayed&&L_(i),P=i[17].displayed&&A_(i);const I=[D9,R9],T=[];function V(E,H){return E[30]?0:1}return o=V(i),c=T[o]=I[o](i),{c(){e=S("div"),p&&p.c(),t=W();for(let E=0;E<m.length;E+=1)m[E].c();n=W(),C&&C.c(),l=W(),y&&y.c(),r=W(),P&&P.c(),a=W(),c.c(),f(e,"id","app"),f(e,"configversion",i[24]),f(e,"class","svelte-1dwxj5w"),jt(e,"no-nav",i[20]),jt(e,"no-side-nav",i[22]),jt(e,"no-top-nav",i[25]),jt(e,"no-animation",i[23]),jt(e,"btp-layout",i[30])},m(E,H){A(E,e,H),p&&p.m(e,null),w(e,t);for(let D=0;D<m.length;D+=1)m[D].m(e,null);w(e,n),C&&C.m(e,null),w(e,l),y&&y.m(e,null),w(e,r),P&&P.m(e,null),w(e,a),T[o].m(e,null),h=!0,d||(g=[ee(C_,"resize",i[36]),ee(C_,"keydown",i[47])],d=!0)},p(E,H){if(E[26]&&E[26].length?p?(p.p(E,H),H[0]&67108864&&R(p,1)):(p=P_(E),p.c(),R(p,1),p.m(e,t)):p&&(ve(),U(p,1,1,()=>{p=null}),we()),H[0]&268439552|H[1]&1792){b=E[28];let D;for(D=0;D<b.length;D+=1){const O=y_(E,b,D);m[D]?(m[D].p(O,H),R(m[D],1)):(m[D]=N_(O),m[D].c(),R(m[D],1),m[D].m(e,n))}for(ve(),D=b.length;D<m.length;D+=1)v(D);we()}E[29].displayed&&E[29].settings.isDrawer?C?(C.p(E,H),H[0]&536870912&&R(C,1)):(C=T_(E),C.c(),R(C,1),C.m(e,l)):C&&(ve(),U(C,1,1,()=>{C=null}),we()),E[27].displayed?y?(y.p(E,H),H[0]&134217728&&R(y,1)):(y=L_(E),y.c(),R(y,1),y.m(e,r)):y&&(ve(),U(y,1,1,()=>{y=null}),we()),E[17].displayed?P?(P.p(E,H),H[0]&131072&&R(P,1)):(P=A_(E),P.c(),R(P,1),P.m(e,a)):P&&(ve(),U(P,1,1,()=>{P=null}),we()),c.p(E,H),(!h||H[0]&16777216)&&f(e,"configversion",E[24]),(!h||H[0]&1048576)&&jt(e,"no-nav",E[20]),(!h||H[0]&4194304)&&jt(e,"no-side-nav",E[22]),(!h||H[0]&33554432)&&jt(e,"no-top-nav",E[25]),(!h||H[0]&8388608)&&jt(e,"no-animation",E[23])},i(E){if(!h){R(p);for(let H=0;H<b.length;H+=1)R(m[H]);R(C),R(y),R(P),R(c),h=!0}},o(E){U(p),m=m.filter(A9);for(let H=0;H<m.length;H+=1)U(m[H]);U(C),U(y),U(P),U(c),h=!1},d(E){E&&L(e),p&&p.d(),ft(m,E),C&&C.d(),y&&y.d(),P&&P.d(),T[o].d(),d=!1,Je(g)}}}function F9(i,e,t){const n=Jt();let{store:l}=e,{getTranslation:r}=e,a=!1,o={displayed:!1},c,h,d=!1,g,p,b,m,v,C,y,P,I,T,V,E,H,D,O,z,Q,X,ce,Z=!0,G=!1,j,ae,fe,ne=[],se={isDirty:!1,persistUrl:null},Se,ie,Re=!1,ze,Ce,Pe={},Fe,ct,qe,dt=te.getConfigValue("settings.btpToolLayout")&&le.requestExperimentalFeature("btpToolLayout",!0),{isSearchFieldVisible:Ft}=e,{inputElem:de}=e,{customSearchItemRendererSlot:xe}=e,{displaySearchResult:St}=e,{searchResult:ln}=e,{storedUserSettings:Ln}=e;const an=async B=>{const ue=B.iframe.luigi,Ee=ue.currentNode&&ue.currentNode.userSettingsGroup,Ge=await te.readUserSettings(),Ie=Ee&&typeof Ge=="object"&&Ge!==null,he=Ae.applyCoreStateData({isNavigateBack:G,viewStackSize:ne.length,clientPermissions:ue.nextViewUrl?ue.nextClientPermissions:ue.clientPermissions,userSettings:Ie?Ge[Ee]:null,anchor:ul.getAnchor(),cssVariables:await Bo.getCSSVariables()});return Ae.specialIframeTypes.map(Ue=>Ue.iframeConfigKey).forEach(Ue=>{he[Ue]=B[Ue]||!1}),he},Ht=async(B,ue={})=>{if(!B.iframe){console.debug("iframe does not exist, not able to send context.");return}const Ee={msg:"luigi.init",context:JSON.stringify(Object.assign({},B.context||T,ue)),nodeParams:JSON.stringify(Object.assign({},B.nodeParams||V)),pathParams:JSON.stringify(Object.assign({},B.pathParams||E)),searchParams:JSON.stringify(Object.assign({},me.prepareSearchParamsForClient(B.iframe.luigi.currentNode))),internal:JSON.stringify(await an(B)),authData:fl.getStoredAuthData()};B.iframe.luigi._lastUpdatedMessage=Ee,Ae.sendMessageToIframe(B.iframe,Ee)},Te=B=>{const ue={msg:"luigi.auth.tokenIssued",authData:B};Ae.broadcastMessageToAllIframes(ue)},rt=(B,ue)=>{if(B.params.preserveView||B.params.viewgroup){const Ee=Sn(B.params),Ge=at.getNodePath(D,H);ne.push({path:ue.iframe.luigi&&ue.iframe.luigi.pathParams?le.replaceVars(Ge,ue.iframe.luigi.pathParams,":",!1):Ge,nextPath:Ee.startsWith("/")?Ee:"/"+Ee,context:T}),ue.iframe.pv="pv"}},tt=(B,ue,Ee,Ge)=>{let Ie=Sn(B.params,Ee,Ge);const{preventHistoryEntry:he,preserveQueryParams:Ue,preventContextUpdate:Ct}=B.params,qt={keepBrowserHistory:!he,navSync:Z,preventContextUpdate:Ct};return Ie=le.addLeadingSlash(Ie),Ie=Ue?me.composeSearchParamsToRoute(Ie):Ie,rt(B,ue),at.navigateTo(Ie,qt)},Yt=B=>B.split("?")[0],Qt=(B,ue)=>{if(B.length===0)return!1;const Ee=ue.startsWith("/")?ue:`/${ue}`,Ge=[...B].pop();return[Yt(Ge.path),Yt(Ge.nextPath)].includes(Yt(Ee))},An=B=>{se&&se.dirtySet&&(B?se.dirtySet.delete(B):se.dirtySet.clear())},Lt=B=>new Promise((ue,Ee)=>{Ei(B)?ql().then(()=>{An(),ue()},()=>{Ee()}):ue()}),gn=()=>({get:()=>({unsavedChanges:se,hideNav:ei,viewUrl:O,nodeParams:V,viewGroup:z,urlParamsRaw:H,currentNode:D,navigationPath:ae,context:T,pathParams:E,hideGlobalSearch:Li,hideSideNav:ui,isolateView:Q,pageErrorHandler:X,previousNodeValues:ce,mfSplitView:o,splitViewValues:c,splitViewIframe:C,splitViewWC:P,showLoadingIndicator:a,tabNav:ie,isNavigateBack:G,goBackContext:j,isNavigationSyncEnabled:Z}),set:B=>{B&&(t(23,Ai=!1),Object.getOwnPropertyNames(B).forEach(ue=>{ue==="hideNav"?t(20,ei=B.hideNav):ue==="viewUrl"?O=B.viewUrl:ue==="nodeParams"?V=B.nodeParams:ue==="viewGroup"?z=B.viewGroup:ue==="urlParamsRaw"?H=B.urlParamsRaw:ue==="currentNode"?D=B.currentNode:ue==="navigationPath"?t(14,ae=B.navigationPath):ue==="context"?T=B.context:ue==="pathParams"?t(13,E=B.pathParams):ue==="hideGlobalSearch"?t(21,Li=B.hideGlobalSearch):ue==="hideSideNav"?(ui!=B.hideSideNav&&(t(23,Ai=!0),setTimeout(()=>{const Ee=document.querySelector("#app");Ee&&Ee.classList.remove("no-animation")})),t(22,ui=B.hideSideNav)):ue==="isolateView"?Q=B.isolateView:ue==="pageErrorHandler"?X=B.pageErrorHandler:ue==="previousNodeValues"?ce=B.previousNodeValues:ue==="mfSplitView"?t(11,o=B.mfSplitView):ue==="splitViewValues"?c=B.splitViewValues:ue==="splitViewIframe"?C=B.splitViewIframe:ue=="splitViewWC"?P=B.splitViewWC:ue==="showLoadingIndicator"?B.showLoadingIndicator===!0?(clearTimeout(qe),qe=setTimeout(()=>{t(10,a=!0)},250)):(t(10,a=!1),clearTimeout(qe)):ue==="tabNav"?t(15,ie=B.tabNav):ue==="isNavigateBack"?G=B.isNavigateBack:ue==="goBackContext"?j=B.goBackContext:ue==="isNavigationSyncEnabled"&&(Z=B.isNavigationSyncEnabled)}))},shouldShowUnsavedChangesModal:Ei,getUnsavedChangesModalPromise:Lt,showUnsavedChangesModal:ql,showAlert:Wt,prepareInternalData:an,dispatch:n}),xn=(B,ue)=>{pn.doOnStoreChange(l,()=>{const Ee=document.querySelector(".wcContainer");Ee&&(Ee.configChangedRequest=!0),qn.deleteCache();const Ge=at.getCurrentPath();at.handleRouteChange(Ge,gn(),B,ue)},["navigation.nodes"]),me.addRouteChangeListener((Ee,Ge)=>{const{withoutSync:Ie,preventContextUpdate:he}=Ge||{};Qt(ne,Ee)||(ne=[],ai.removeInactiveIframes(B));for(let Ct=Y.length;Ct--;)Yi(Ct);$r.removeBackdrop(),oi(),at.handleRouteChange(Ee,gn(),B,ue,Ie,he)})},Gt=(B,ue)=>le.replaceVars(at.getNodePath(B),ue,":",!1),Sn=(B,ue,Ee)=>{const Ge=ue||D,Ie=Ee||E;let he=ae;if(ue){let Ct=ue.parent;for(he=[ue];Ct;)he.push(Ct),Ct=Ct.parent;he=[...he].reverse()}let Ue=B.link;if(B.fromVirtualTreeRoot){const Ct=[...he].reverse().find(qt=>qt.virtualTree);if(!Ct){console.error("LuigiClient Error: fromVirtualTreeRoot() is not possible because you are not inside a Luigi virtualTree navigation node.");return}Ue=at.concatenatePath(Gt(Ct,Ie),B.link)}else if(B.fromParent)Ue=at.concatenatePath(Gt(Ge.parent,Ie),B.link);else if(B.fromClosestContext){const Ct=[...he].reverse().find(qt=>qt.navigationContext&&qt.navigationContext.length>0);Ue=at.concatenatePath(Gt(Ct,Ie),B.link)}else if(B.fromContext){const Ct=B.fromContext,qt=[...he].reverse().find(yr=>Ct===yr.navigationContext);Ue=at.concatenatePath(Gt(qt,Ie),B.link)}else B.intent?Ue=me.getIntentPath(B.link):B.relative&&(Ue=at.concatenatePath(Gt(Ge,Ie),B.link));return B.nodeParams&&Object.keys(B.nodeParams).length>0&&(Ue+=Ue.includes("?")?"&":"?",Object.entries(B.nodeParams).forEach((Ct,qt)=>{Ue+=encodeURIComponent(me.getContentViewParamPrefix()+Ct[0])+"="+encodeURIComponent(Ct[1])+(qt<Object.keys(B.nodeParams).length-1?"&":"")})),Ue},wi=B=>{const ue=B.detail.node;Lt().then(()=>{if(Xe(),ue.openNodeInModal){const Ee=me.buildRoute(ue,`/${ue.pathSegment}`);bn(Ee,ue.openNodeInModal===!0?{}:ue.openNodeInModal)}else if(ue.drawer){const Ee=me.buildRoute(ue,`/${ue.pathSegment}`);ue.drawer.isDrawer=!0,vr(Ee,ue.drawer)}else gn().set({isNavigationSyncEnabled:!0}),at.handleRouteClick(ue,gn())},()=>{})},ki=()=>{t(16,Re=!Re)};qr("handleNavigation",tt);const mn=B=>B?!0:(console.warn("No search provider defined."),!1),Si=()=>{mn(Ce)&&t(0,Ft=!1)},Ci=()=>{mn(Ce)&&de&&(t(0,Ft=!0),de.focus())},yi=()=>{mn(Ce)&&de&&(t(1,de.value="",de),Ni())},Pi=()=>{t(0,Ft=!Ft),Dk.clearSearchField()},Ii=()=>{if(mn(Ce)&&de)return de.value},pl=B=>{mn(Ce)&&de&&(t(1,de.value=B,de),le.isFunction(Ce.onInput)?Ce.onInput():console.error("onInput is not a function. Please check the global search configuration."))},ml=B=>{mn(Ce)&&de&&t(1,de.placeholder=B,de)},bl=B=>{if(mn(Ce))if(B&&B.length>0)if(le.isFunction(Ce.customSearchResultRenderer)){let ue={fireItemSelected:Ee=>{Ce.onSearchResultItemSelected(Ee)}};Ce.customSearchResultRenderer(B,xe,ue)}else t(3,St=!0),t(4,ln=B);else console.warn("Search result array is empty.")},Ni=()=>{if(mn(Ce)&&(t(3,St=!1),t(4,ln=[]),xe))for(;xe.lastElementChild;)xe.removeChild(xe.lastElementChild)},Gi=B=>{let ue=B.detail.node,Ee={params:{link:ue.link,nodeParams:ue.params}};tt(Ee)},Ki=(B,ue)=>{if(o.displayed){console.warn("Only one splitview can be opened at a time");return}t(11,o=ht.getDefaultData().mfSplitView),ht.open(gn(),B,ue)},oi=()=>{ht.close(gn())},vl=()=>{ht.collapse(gn()),t(11,o.collapsed=!0,o)},wl=()=>{ht.expand(gn()),t(11,o.collapsed=!1,o)},ji=()=>o.displayed?o.collapsed:!1,kl=()=>o.displayed?!o.collapsed:!1,Sl=()=>o.displayed,Cl=B=>{C=B.detail.splitViewIframe,y=B.detail.splitViewIframeData,t(11,o.collapsed=B.detail.collapsed,o)},Ti=B=>{B.detail.displayed!==void 0&&t(11,o.displayed=B.detail.displayed,o),B.detail.collapsed!==void 0&&t(11,o.collapsed=B.detail.collapsed,o)},yl=B=>{P=B.detail.splitViewWC,B.detail.splitViewWCData,t(11,o.collapsed=B.detail.collapsed,o)};let ei,Li,ui,Ai,fi,K,be;const Xe=()=>{document.body.classList.remove("lui-leftNavToggle")},nt=()=>{Qi();const B=window.innerWidth>=fn.desktopMinWidth&&fi<fn.desktopMinWidth,ue=window.innerWidth<fn.desktopMinWidth&&fi>=fn.desktopMinWidth;(B||ue)&&Xe(),fi=window.innerWidth};let it=[];const bt=(B,ue)=>{if(!(!B||!(B.length>0)))return B.filter(Ee=>Ee.settings.id===ue)[0]},Wt=(B,ue=!1)=>{const Ee=te.getConfigValue("settings.customAlertHandler");if(le.isFunction(Ee)){const Ie=Ee(B,ue);if(Ie!==!1)return Ie}const Ge=it;return B.id||(B.id=le.getRandomId()),B.id&&Ge&&bt(Ge,B.id)?(console.error(`The alert with id '${B.id}' already exists in a queue, therefore it won't be displayed `),Promise.reject()):(B.closeAfter&&setTimeout(()=>{bt(it,B.id)&&Zt(B.id)},B.closeAfter),new Promise((Ie,he)=>{t(26,it=[...Ge||[],{displayed:!0,settings:B,openFromClient:ue,promise:{resolve:Ie}}])}))},Zt=(B,ue)=>{const Ee=bt(it,B);if(!Ee){console.error("An unexisting alert has been dismissed.",it,B);return}if(t(26,it=it.filter(Ge=>Ge.settings.id!==B)),Ee.openFromClient){const Ge=ai.getActiveIframe(fe),Ie={msg:"luigi.ux.alert.hide",id:B,dismissKey:ue};Ae.sendMessageToIframe(Ge,Ie)}else Ee.promise&&Ee.promise.resolve(ue||B)},ci=B=>{Zt(B.detail.id,B.detail.dismissKey)};let Ji;const Pl=()=>{t(27,Ji={displayed:!1,content:{},openFromClient:!1,promise:null})};Pl();const di=(B,ue=!1,Ee)=>new Promise((Ge,Ie)=>{t(27,Ji={displayed:!0,settings:B,openFromClient:ue,promise:{resolve:Ge,reject:Ie},targetIframe:Ee})}),Il=B=>{const{promise:ue,openFromClient:Ee,targetIframe:Ge}=Ji;if(Pl(),B?ue.resolve():ue.reject(),Ee&&Ge){const Ie={msg:"luigi.ux.confirmationModal.hide",data:{confirmed:B}};Ae.sendMessageToIframe(Ge,Ie)}},Ei=B=>{if(se.dirtySet){if(B)return se.dirtySet.has(B);if(se.dirtySet.size>0)return!0}return!1},ql=()=>di({header:Tt.getTranslation("luigi.unsavedChangesAlert.header"),body:Tt.getTranslation("luigi.unsavedChangesAlert.body"),buttonDismiss:Tt.getTranslation("luigi.button.dismiss"),buttonConfirm:Tt.getTranslation("luigi.button.confirm")}),br=()=>se.dirtySet?se.dirtySet.size>0:se.isDirty;qr("getUnsavedChangesModalPromise",Lt);let Y=[];const Rt=(B,ue)=>{var Ge;if(typeof B>"u"){t(28,Y=[]);return}let Ee;if(t(28,Y=Y.filter((Ie,he)=>(B===he&&(Ee=Ie),B!==he))),(Ge=Ee==null?void 0:Ee.mfModal)!=null&&Ge.openerIframe){const Ie={msg:"luigi.navigation.modal.close",data:ue};Ae.sendMessageToIframe(Ee.mfModal.openerIframe,Ie)}};Rt();const bn=async(B,ue,Ee)=>{if(await re.shouldPreventNavigationForPath(B))return;const Ge={mfModal:{displayed:!0,nodepath:B,settings:ue,openerIframe:Ee}};t(28,Y=[...Y,Ge]),te.getConfigBooleanValue("routing.showModalPathInUrl")&&Y.length===1&&at.appendModalDataToUrl(B,ue)},ti=(B,ue)=>{t(28,Y[ue].modalIframe=B.detail.modalIframe,Y),t(28,Y[ue].modalIframeData=B.detail.modalIframeData,Y)},xr=(B,ue)=>{t(28,Y[ue].modalWC=B.detail.modalWC,Y),t(28,Y[ue].modalWCData=B.detail.modalWCData,Y)},Yi=(B,ue,Ee)=>{const Ge=(Ue,Ct)=>{te.getConfigBooleanValue("routing.showModalPathInUrl")&&Y.length===1&&at.removeModalDataFromUrl(Ct),Rt(Ue,Ee)},Ie=Y[B],he=le.getRemotePromise(Ie.mfModal.settings.onClosePromiseId);Ie&&Ie.modalIframe?Lt(Ie.modalIframe.contentWindow).then(()=>{Ge(B,ue),he&&he.doResolve(Ee)},()=>{}):Ie&&Ie.modalWC&&(Ge(B,ue),he&&he.doResolve(Ee))};qr("openViewInModal",bn);let rn={};const zl=()=>{t(29,rn.displayed=!1,rn),t(29,rn.nodepath=void 0,rn),t(29,rn.settings={},rn),t(12,g=!1)};zl();const vr=async(B,ue)=>{await re.shouldPreventNavigationForPath(B)||(t(29,rn.displayed=!0,rn),t(29,rn.nodepath=B,rn),t(29,rn.settings=ue,rn),rn.settings&&rn.settings.backdrop&&t(12,g=!0))},ea=()=>window.innerWidth>=fn.desktopMinWidth&&rn.displayed&&rn.settings&&!rn.settings.overlap,Qi=(B=!1)=>{if(!ea())return;const ue=document.querySelector(".iframeModalCtn._drawer");if(!ue)return;const Ee=[document.querySelector("div.iframeContainer"),document.getElementById("splitViewContainer"),document.getElementById("splitViewDragger"),document.getElementById("splitViewDraggerBackdrop"),document.getElementById("tabsContainer")];if(B)Ee.forEach(Ge=>{Ge==null||Ge.style.removeProperty("width")});else{const{width:Ge}=getComputedStyle(ue);Ee.forEach(Ie=>{wr(Ie,Ge)})}},wr=(B,ue)=>{B&&!B.style.getPropertyValue("width").includes("calc(")&&B.style.setProperty("width",`calc(${B.clientWidth}px - ${ue})`)},ps=B=>{p=B.detail.modalIframe,b=B.detail.modalIframeData,Qi()},ta=B=>{m=B.detail.modalWC,B.detail.modalWCData,Qi()},Gl=B=>{d=B.detail.activeDrawer},Kl=B=>{if(B&&B.detail&&B.detail.activeDrawer!==void 0&&(d=B.detail.activeDrawer),!d||B&&B.detail&&B.detail.type!=="modal")try{p?Lt(p.contentWindow).then(()=>{zl()},()=>{}):m&&Lt().then(()=>{zl()},()=>{}),Qi(!0)}catch(ue){console.log(ue)}},ms=()=>{const B=cr.processUserSettingGroups();Array.isArray(B)&&B.length>0?(t(17,Pe.userSettingGroups=[...B],Pe),t(17,Pe.displayed=!0,Pe)):console.info("There are no user setting groups in the settings section of the luigi config defined.")},na=()=>{t(17,Pe.displayed=!1,Pe)},ia=async B=>{if(await re.shouldPreventNavigationForPath(B))return;te.getConfigValue("routing.useHashRouting")&&(B="#"+B),window.open(B,"_blank","noopener,noreferrer")},jl=B=>{let ue=ae;if(D){let Ie=D.parent;for(ue=[D];Ie;)ue.push(Ie),Ie=Ie.parent;ue=[...ue].reverse()}let Ee=B.link,Ge=Gt(D,E);if(B.fromVirtualTreeRoot){const Ie=[...ue].reverse().find(Ue=>Ue.virtualTree);if(!Ie){console.error("LuigiClient Error: fromVirtualTreeRoot() is not possible because you are not inside a Luigi virtualTree navigation node.");return}const he=Gt(Ie,E);Ee=Ge.split(he).join("")}else if(B.fromParent){const Ie=Gt(D.parent,E);Ee=Ge.split(Ie).join("")}else if(B.fromClosestContext){const Ie=[...ue].reverse().find(Ue=>Ue.navigationContext&&Ue.navigationContext.length>0),he=Gt(Ie,E);Ee=Ge.split(he).join("")}else if(B.fromContext){const Ie=B.fromContext,he=[...ue].reverse().find(Ct=>Ie===Ct.navigationContext),Ue=Gt(he,E);Ee=Ge.split(Ue).join("")}else Ee=Ge;return Ee};function bs(B){sessionStorage.removeItem("historyState"),fr.shouldPreload=!0,fr.preload(!0),fr.shouldPreload=!1;const ue=te.getConfigValue("navigation.defaults.isolateView"),Ee=te.getConfigValue("navigation.defaults.pageErrorHandler"),Ge=te.getConfigValue("navigation.defaults.runTimeErrorHandler"),Ie={iframe:null,navigateOk:null,builderCompatibilityMode:!!window.builderCompatibilityMode,isolateAllViews:ue,defaultPageErrorHandler:Ee};Tt.addCurrentLocaleChangeListener(he=>{const Ue={msg:"luigi.current-locale-changed",currentLocale:he};Ae.broadcastMessageToAllIframes(Ue)}),Mn.addEventListener("popstate",async he=>{const Ue=it;if(!Ue||!(Ue.length>0))return;const Ct=Ue.map(qt=>{if(qt&&!qt.openFromClient&&typeof qt.settings.ttl=="number"){if(qt.settings.ttl===0)return null;qt.settings.ttl--}return qt}).filter(qt=>qt);t(26,it=Ct)}),Mn.addEventListener("message",async he=>{const Ue=Ae.getValidMessageSource(he),Ct=Y[Y.length-1],qt=Ct&&Ct.modalIframe,yr=Ct&&Ct.modalIframeData,Xi={modalIframe:qt,modalIframeData:yr,drawerIframe:p,drawerIframeData:b,drawer:v,modal:h,splitViewIframe:C,splitViewIframeData:y,splitView:I};if(!Ue)return;Ue._ready=!0;const Pr=Ae.getSpecialIframeMessageSource(he,Xi),Ri=Pr&&Pr.length>0,Ir=te.getConfigValue("communication.skipEventsWhenInactive");if(Ir&&Ir.length>0&&!Ri&&Ue.contentWindow!==window&&!le.isElementVisible(Ue)&&Ir.includes(he.data.msg)){console.debug(`EVENT '${he.data.msg}' from inactive iframe -> SKIPPED`);return}if(he.data.msg==="custom"){const Be=te.getConfigValue("communication.customMessagesListeners")||{},It=as.convertCustomMessageInternalToUser(he.data),yt=Be[It.id],sn="luigi.updateUserSettings";if(Pe&&It.id===sn){yt&&console.warn(`The key "${sn}" is not allowed to use for custom messages.`);return}if(typeof yt=="function"){const Cn=zi.getMicrofrontends().find(Xt=>Ae.isMessageSource(he,Xt.container));yt(It,Cn,le.removeInternalProperties(Ue.luigi.currentNode))}else console.warn(`Warning: Custom message with id: '${It.id}' does not exist. Make sure you provided the same id as in the config file.`)}if(he.data.msg==="luigi.init.ok"&&(Ue.luigi.initOk=!0),he.data.msg==="luigi.navigate.ok"&&(Ue.luigi.viewUrl=Ue.luigi.nextViewUrl,Ue.luigi.nextViewUrl="",Ue.luigi.clientPermissions=Ue.luigi.nextClientPermissions,delete Ue.luigi.nextClientPermissions,Ie.navigateOk=!0,fr.preload()),he.data.msg==="luigi.get-context"){if(Ue.luigi.clientVersion=he.data.clientVersion,Ue.luigi.initOk=!1,Ri)Pr.forEach(async Be=>{let It=Xi[Be.dataKey].context;const yt={...Ie,iframe:Xi[Be.iframeKey],context:It,pathParams:Xi[Be.dataKey].pathParams,nodeParams:Xi[Be.dataKey].nodeParams,searchParams:me.prepareSearchParamsForClient(Xi[Be.iframeKey].luigi.currentNode),modal:Be.iframeKey.startsWith("modal"),drawer:Be.iframeKey.startsWith("drawer"),splitView:Be.iframeKey.startsWith("splitView")};await Ht(yt,{})});else if(Ie.iframe&&Ae.isMessageSource(he,Ie.iframe))await Ht(Ie,{}),(!D||!D.loadingIndicator||D.loadingIndicator.hideAutomatically!==!1)&&Sr(),fr.preload();else if(Ue.luigi.preloading)await Ht({iframe:Ue,context:{},nodeParams:{},pathParams:{},internal:{}},{});else{let Be=cr.findActiveCustomUserSettingsIframe(he.source);if(Be){let It=Be.getAttribute("userSettingsGroup"),yt={context:{userSettingsData:Ln[It]},iframe:Be};await Ht(yt)}}fr.viewGroupLoaded(Ue)}if(he.data.msg==="luigi.show-loading-indicator"&&t(10,a=!0),he.data.msg==="luigi.hide-loading-indicator"&&(clearTimeout(qe),t(10,a=!1)),he.data.msg==="luigi.navigation.open"){G=!1;const Be=window.location.href,It=Ri?Ue.luigi.currentNode:void 0,yt=Ri?Ue.luigi.pathParams:void 0,sn=he.data.params,{intent:Cn,newTab:Xt,modal:$i,splitView:Yl,drawer:Nl,withoutSync:Ts}=sn;let Ql=Xt||$i||Yl||Nl;const ca=()=>{const Gn=le.getRemotePromise(he.data.remotePromiseId);Gn&&Gn.doResolve()},cn=()=>{const Gn=le.getRemotePromise(he.data.remotePromiseId);Gn&&Gn.doReject()},Tl=Gn=>{!Gn||Be!==window.location.href?ca():cn()};he.source!==window&&!Cn&&sn.link&&(sn.link=sn.link.split("?")[0]);let Ot=Sn(he.data.params,It,yt);if(Ql=Ql||Cn&&Ot.external,!Ql)Lt().then(()=>{Z=!he.data.params.withoutSync,tt(he.data,Ie,It,yt).then(()=>{Tl(!0)}).catch(()=>{cn()}),Y.forEach((Gn,da)=>{Yi(da)}),oi(),Kl(),Z=!0}).catch(()=>{cn()});else{if(Cn&&Ot.external){at.navigateToExternalLink({url:Ot.url,sameWindow:!Ot.openInNewTab});return}if(Ot=le.addLeadingSlash(Ot),Xt){await ia(Ot),Tl();return}const Gn=await Jl(Ot);if(Ot=await me.handlePageNotFoundAndRetrieveRedirectPath(gn(),Ot,Gn),!Ot){cn();return}fe=B,$i!==void 0?(!$i.keepPrevious&&Rt(),await bn(Ot,$i===!0?{}:$i,Ue),Tl()):Yl!==void 0?(await Ki(Ot,Yl),Tl()):Nl!==void 0&&(zl(),Nl.isDrawer=!0,await vr(Ot,Nl),Tl())}}if(he.data.msg==="luigi.navigation.back"){const Be=Y[Y.length-1],It=Y.length>1&&Y[Y.length-2],yt=he.data.goBackContext&&JSON.parse(he.data.goBackContext);if(Ae.isMessageSource(he,Be&&Be.modalIframe)){Yi(Y.length-1,!0,yt);let sn=Ie;if(It&&It.modalIframeData&&It.modalIframe){const Cn=It,Xt=Cn.modalIframeData;sn={pathParams:Xt.pathParams,context:Xt.context,iframe:Cn.modalIframe}}sn.iframe&&await Ht(sn,{goBackContext:yt})}else Ae.isMessageSource(he,C)?(oi(),Ie.iframe&&await Ht(Ie,{goBackContext:yt})):Ae.isMessageSource(he,p)?(d&&(d=!d),Kl(),Ie.iframe&&await Ht(Ie,{goBackContext:yt})):ne&&ne.length>0?Lt().then(()=>{ai.setActiveIframeToPrevious(B);const sn=ne.pop();Ie.iframe=ai.getActiveIframe(B),G=!0,ne=ne,j=yt,tt({params:{link:sn.path}},Ie)},()=>{}):(yt&&console.warn("Warning: goBack() does not support goBackContext value. This is available only when using the Luigi preserveView feature."),window.history.back())}if(he.data.msg==="luigi.navigation.currentRoute"){const Be=he.data.data,yt={msg:"luigi.navigation.currentRoute.answer",data:{route:jl(Be),correlationId:Be.id}};Ae.sendMessageToIframe(Ue,yt)}if(he.data.msg==="luigi.auth.tokenIssued"&&Te(he.data.authData),he.data.msg==="luigi.navigation.updateModalDataPath"){if(!te.getConfigBooleanValue("routing.showModalPathInUrl"))return;if(Ri){const Be=le.addLeadingSlash(Sn(he.data.params,Ue.luigi.currentNode,Ue.luigi.pathParams));at.updateModalDataInUrl(Be,he.data.params.modal,he.data.params.history)}else console.warn("updateModalDataPath can only be called from modal, ignoring.")}if(he.data.msg==="luigi.navigation.pathExists"){const Be=Ue.luigi.currentNode,It=Ue.luigi.pathParams,yt=he.data.data,sn=Sn(yt,Be,It),Cn=sn?await Ut.getNavigationPath(te.getConfigValueAsync("navigation.nodes"),sn):!1,Xt={msg:"luigi.navigation.pathExists.answer",data:{correlationId:yt.id,pathExists:Cn?Cn.isExistingRoute:!1}};Ae.sendMessageToIframe(Ue,Xt)}if(he.data.msg==="luigi.set-page-dirty"){if(!se.dirtySet){const Be=new Set;Be.add(he.source),se={dirtySet:Be}}se.persistUrl=window.location.href,he.data.dirty?se.dirtySet.add(he.source):se.dirtySet.delete(he.source)}if(he.data.msg==="luigi.ux.confirmationModal.show"){const Be=he.data.data.settings;fe=B,Pl(),di(Be,!0,Ue).catch(()=>{})}if(he.data.msg==="luigi.ux.alert.show"){const{settings:Be}=he.data.data;if(!Be.text&&!le.isFunction(te.getConfigValue("settings.customAlertHandler"))){console.error("Luigi Client alert: 'text' field for alert is empty or not present, therefore alert will not be displayed");return}fe=B,Wt(Be,!0).catch(()=>{})}if(he.data.msg==="luigi.ux.set-current-locale")if(Ue.luigi.clientPermissions&&Ue.luigi.clientPermissions.changeCurrentLocale){const{currentLocale:Be}=he.data.data;Be&&Tt.setCurrentLocale(Be)}else console.error("Current local change from client declined because client permission changeCurrentLocale is not set for this view.");if(ze&&!ze.thirdPartyCookieScriptLocation&&he.data.msg==="luigi.third-party-cookie"&&he.data.tpc==="disabled"&&kr(),he.data.msg==="storage"&&a2.process(Ue.luigi.id,he.origin,he.data.data.id,he.data.data.operation,he.data.data.params),he.data.msg==="luigi-runtime-error-handling"){let Be=Ue.luigi.currentNode;Be&&Be.runTimeErrorHandler&&le.isFunction(Be.runTimeErrorHandler.errorFn)?Be.runTimeErrorHandler.errorFn(he.data.errorObj,Be):Ge&&le.isFunction(Ge.errorFn)&&Ge.errorFn(he.data.errorObj,Be)}if(he.data.msg==="luigi.addSearchParams")if(Ue.luigi.currentNode.clientPermissions&&Ue.luigi.currentNode.clientPermissions.urlParameters){const{data:Be,keepBrowserHistory:It}=he.data;me.addSearchParamsFromClient(Ue.luigi.currentNode,Be,It)}else console.warn("No client permissions to add url parameter for this node.");if(he.data.msg==="luigi.addNodeParams"){if(Ri)return;const{data:Be,keepBrowserHistory:It}=he.data;ul.addNodeParams(Be,It)}if(he.data.msg==="luigi.setAnchor"){const{anchor:Be}=he.data;ul.setAnchor(Be)}if(he.data.msg==="luigi.setVGData"){const Be=he.data,It=re.findViewGroup(Ue.luigi.currentNode);if(It){const yt=re.getViewGroupSettings(It);yt._liveCustomData=Be.data,te.configChanged("navigation.viewgroupdata")}}}),xn(B,Ie)}qr("store",l),qr("getTranslation",r);const kr=B=>{ze&&ze.thirdPartyCookieErrorHandling&&le.isFunction(ze.thirdPartyCookieErrorHandling)&&ze.thirdPartyCookieErrorHandling()};function Sr(){const B=document.querySelector(".spinnerContainer.appSpinner");B&&B.classList.contains("fade-out")?(B.classList.remove("fade-out"),setTimeout(()=>{clearTimeout(qe),t(10,a=!1)},250)):clearTimeout(qe)}const Jl=async B=>{const ue={link:B,relative:B[0]!=="/",intent:me.hasIntent(B)},Ee=Sn(ue),Ge=Ee?await Ut.getNavigationPath(te.getConfigValueAsync("navigation.nodes"),Ee):!1;return Ge?Ge.isExistingRoute:!1},Zi=()=>Y.length>0||ne.length!==0;nn(()=>{if(Bo._init(),Ce=te.getConfigValue("globalSearch.searchProvider"),Se=te.getConfigValue("settings.responsiveNavigation"),fi=window.innerWidth,Se==="simple"){if(document.body.classList.add("lui-simpleSlideInNav"),re.getBurgerTooltipConfig()){const[B,ue]=re.getBurgerTooltipConfig();B&&ue&&t(18,Fe=document.body.classList.contains("lui-leftNavToggle")?B:ue)}}else if(Se==="simpleMobileOnly")document.body.classList.add("lui-simpleSlideInNav","lui-mobileOnly");else{if(re.getBurgerTooltipConfig()){const[B,ue]=re.getBurgerTooltipConfig();if(B&&ue){const Ee=JSON.parse(localStorage.getItem(re.COL_NAV_KEY));t(18,Fe=Ee?B:ue)}}document.body.classList.add("lui-semiCollapsible")}ze=te.getConfigValue("settings.thirdPartyCookieCheck"),ze&&ze.thirdPartyCookieScriptLocation&&setTimeout(()=>{let B=document.createElement("iframe");B.width="0px",B.height="0px",B.src=ze.thirdPartyCookieScriptLocation,document.body.appendChild(B),B.onload=function(){setTimeout(()=>{L9()==="disabled"&&kr()}),document.body.removeChild(B)}})}),Zr(()=>{Qi()}),zn(()=>{t(19,ct=te.getConfigValue("navigation.breadcrumbs")),Ce=te.getConfigValue("globalSearch.searchProvider"),t(24,K=te.getConfigValue("tag")),t(25,be=te.getConfigValue("settings.header.disabled"))});const la=B=>{B.keyCode===Hl&&Y&&Y.length>0&&Yi(Y.length-1)},ra=B=>Yi(B,!0),vs=(B,ue)=>ti(ue,B),aa=(B,ue)=>xr(ue,B),sa=()=>Il(!0),oa=()=>Il(!1);function ua(B){Ln=B,t(5,Ln)}function ws(B){Ft=B,t(0,Ft)}function ks(B){St=B,t(3,St)}function Ss(B){ln=B,t(4,ln)}function fa(B){de=B,t(1,de)}function Cs(B){xe=B,t(2,xe)}function ys(B){Ft=B,t(0,Ft)}function Ps(B){St=B,t(3,St)}function Is(B){ln=B,t(4,ln)}function Cr(B){de=B,t(1,de)}function Ns(B){xe=B,t(2,xe)}return i.$$set=B=>{"store"in B&&t(48,l=B.store),"getTranslation"in B&&t(49,r=B.getTranslation),"isSearchFieldVisible"in B&&t(0,Ft=B.isSearchFieldVisible),"inputElem"in B&&t(1,de=B.inputElem),"customSearchItemRendererSlot"in B&&t(2,xe=B.customSearchItemRendererSlot),"displaySearchResult"in B&&t(3,St=B.displaySearchResult),"searchResult"in B&&t(4,ln=B.searchResult),"storedUserSettings"in B&&t(5,Ln=B.storedUserSettings)},[Ft,de,xe,St,ln,Ln,Pi,Ni,Gi,na,a,o,g,E,ae,ie,Re,Pe,Fe,ct,ei,Li,ui,Ai,K,be,it,Ji,Y,rn,dt,wi,ki,Cl,Ti,yl,nt,ci,Il,ti,xr,Yi,ps,ta,Gl,Kl,bs,la,l,r,Si,Ci,yi,Ii,pl,ml,bl,Ki,oi,vl,wl,ji,kl,Sl,Wt,di,br,ms,jl,Jl,Zi,ra,vs,aa,sa,oa,ua,ws,ks,Ss,fa,Cs,ys,Ps,Is,Cr,Ns]}class U9 extends Vt{constructor(e){super(),Dt(this,e,F9,M9,Et,{store:48,getTranslation:49,isSearchFieldVisible:0,inputElem:1,customSearchItemRendererSlot:2,displaySearchResult:3,searchResult:4,storedUserSettings:5,closeSearchField:50,openSearchField:51,clearSearchField:52,toggleSearch:6,getGlobalSearchString:53,setGlobalSearchString:54,setSearchInputPlaceholder:55,showSearchResult:56,closeSearchResult:7,handleSearchNavigation:8,openSplitView:57,closeSplitView:58,collapseSplitView:59,expandSplitView:60,isSplitViewCollapsed:61,isSplitViewExpanded:62,existsSplitView:63,showAlert:64,showModal:65,getDirtyStatus:66,openUserSettings:67,closeUserSettings:9,buildPathForGetCurrentRoute:68,pathExists:69,hasBack:70},null,[-1,-1,-1,-1,-1,-1])}get closeSearchField(){return this.$$.ctx[50]}get openSearchField(){return this.$$.ctx[51]}get clearSearchField(){return this.$$.ctx[52]}get toggleSearch(){return this.$$.ctx[6]}get getGlobalSearchString(){return this.$$.ctx[53]}get setGlobalSearchString(){return this.$$.ctx[54]}get setSearchInputPlaceholder(){return this.$$.ctx[55]}get showSearchResult(){return this.$$.ctx[56]}get closeSearchResult(){return this.$$.ctx[7]}get handleSearchNavigation(){return this.$$.ctx[8]}get openSplitView(){return this.$$.ctx[57]}get closeSplitView(){return this.$$.ctx[58]}get collapseSplitView(){return this.$$.ctx[59]}get expandSplitView(){return this.$$.ctx[60]}get isSplitViewCollapsed(){return this.$$.ctx[61]}get isSplitViewExpanded(){return this.$$.ctx[62]}get existsSplitView(){return this.$$.ctx[63]}get showAlert(){return this.$$.ctx[64]}get showModal(){return this.$$.ctx[65]}get getDirtyStatus(){return this.$$.ctx[66]}get openUserSettings(){return this.$$.ctx[67]}get closeUserSettings(){return this.$$.ctx[9]}get buildPathForGetCurrentRoute(){return this.$$.ctx[68]}get pathExists(){return this.$$.ctx[69]}get hasBack(){return this.$$.ctx[70]}}const B9=()=>{const{subscribe:i,update:e,reset:t}=gr({}),n={};let l=[];return{subscribe:r=>{l.push(i(r))},update:e,reset:t,subscribeToScope:(r,a)=>{let o=n[a];o||(o=new Set,n[a]=o),o.add(r)},fire:(r,a)=>{let o=n[r];o&&[...o].forEach(c=>{c(a)})},clear:()=>{l.forEach(r=>{r()}),l=[]}}},Sp=B9(),H9=Ik((i,e,t)=>Tt.getTranslation(i,e,t));Luigi._store=Sp;const W9=()=>new Promise(i=>{Tt._init(),hn.init().then(()=>{setTimeout(()=>{let e;zi.isCustomLuigiContainer()&&document.getElementsByTagName("html")[0].classList.add("luigi-app-in-custom-container"),e=new U9({target:zi.getLuigiContainer(),props:{store:Sp,getTranslation:H9}}),Luigi.showAlert=t=>e.showAlert(t),Luigi.showConfirmationModal=t=>e.showModal(t),Luigi.closeSearchField=()=>e.closeSearchField(),Luigi.openSearchField=()=>e.openSearchField(),Luigi.getGlobalSearchString=()=>e.getGlobalSearchString(),Luigi.setGlobalSearchString=t=>{e.setGlobalSearchString(t)},Luigi.showSearchResult=t=>e.showSearchResult(t),Luigi.closeSearchResult=()=>{e.closeSearchResult()},Luigi.clearSearchField=()=>{e.clearSearchField()},Luigi.splitView={splitViewHandle:{close:()=>e.closeSplitView(),collapse:()=>e.collapseSplitView(),expand:()=>e.expandSplitView(),isCollapsed:()=>e.isSplitViewCollapsed(),isExpanded:()=>e.isSplitViewExpanded(),exists:()=>e.existsSplitView()}},Luigi.pathExists=t=>e.pathExists(t),Luigi.hasBack=()=>e.hasBack(),Luigi.openUserSettings=()=>{e.openUserSettings()},Luigi.closeUserSettings=()=>{e.closeUserSettings()},Luigi.getDirtyStatus=()=>e.getDirtyStatus(),Luigi._app=e.$$,i()})})});te.setConfigCallbacks(W9);
63
+ <div class="fd-busy-indicator__circle"></div></div>`,f(e,"class","fd-page spinnerContainer appSpinner fade-out svelte-1dwxj5w"),f(e,"aria-hidden","false"),f(e,"aria-label","Loading")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function M9(i){let e,t,n,l,r,a,o,c,h,d,g,p=i[26]&&i[26].length&&P_(i),b=i[28],m=[];for(let E=0;E<b.length;E+=1)m[E]=N_(y_(i,b,E));const v=E=>U(m[E],1,1,()=>{m[E]=null});let C=i[29].displayed&&i[29].settings.isDrawer&&T_(i),y=i[27].displayed&&L_(i),P=i[17].displayed&&A_(i);const I=[D9,R9],T=[];function V(E,H){return E[30]?0:1}return o=V(i),c=T[o]=I[o](i),{c(){e=S("div"),p&&p.c(),t=W();for(let E=0;E<m.length;E+=1)m[E].c();n=W(),C&&C.c(),l=W(),y&&y.c(),r=W(),P&&P.c(),a=W(),c.c(),f(e,"id","app"),f(e,"configversion",i[24]),f(e,"class","svelte-1dwxj5w"),jt(e,"no-nav",i[20]),jt(e,"no-side-nav",i[22]),jt(e,"no-top-nav",i[25]),jt(e,"no-animation",i[23]),jt(e,"btp-layout",i[30])},m(E,H){A(E,e,H),p&&p.m(e,null),w(e,t);for(let D=0;D<m.length;D+=1)m[D].m(e,null);w(e,n),C&&C.m(e,null),w(e,l),y&&y.m(e,null),w(e,r),P&&P.m(e,null),w(e,a),T[o].m(e,null),h=!0,d||(g=[ee(C_,"resize",i[36]),ee(C_,"keydown",i[47])],d=!0)},p(E,H){if(E[26]&&E[26].length?p?(p.p(E,H),H[0]&67108864&&R(p,1)):(p=P_(E),p.c(),R(p,1),p.m(e,t)):p&&(ve(),U(p,1,1,()=>{p=null}),we()),H[0]&268439552|H[1]&1792){b=E[28];let D;for(D=0;D<b.length;D+=1){const O=y_(E,b,D);m[D]?(m[D].p(O,H),R(m[D],1)):(m[D]=N_(O),m[D].c(),R(m[D],1),m[D].m(e,n))}for(ve(),D=b.length;D<m.length;D+=1)v(D);we()}E[29].displayed&&E[29].settings.isDrawer?C?(C.p(E,H),H[0]&536870912&&R(C,1)):(C=T_(E),C.c(),R(C,1),C.m(e,l)):C&&(ve(),U(C,1,1,()=>{C=null}),we()),E[27].displayed?y?(y.p(E,H),H[0]&134217728&&R(y,1)):(y=L_(E),y.c(),R(y,1),y.m(e,r)):y&&(ve(),U(y,1,1,()=>{y=null}),we()),E[17].displayed?P?(P.p(E,H),H[0]&131072&&R(P,1)):(P=A_(E),P.c(),R(P,1),P.m(e,a)):P&&(ve(),U(P,1,1,()=>{P=null}),we()),c.p(E,H),(!h||H[0]&16777216)&&f(e,"configversion",E[24]),(!h||H[0]&1048576)&&jt(e,"no-nav",E[20]),(!h||H[0]&4194304)&&jt(e,"no-side-nav",E[22]),(!h||H[0]&33554432)&&jt(e,"no-top-nav",E[25]),(!h||H[0]&8388608)&&jt(e,"no-animation",E[23])},i(E){if(!h){R(p);for(let H=0;H<b.length;H+=1)R(m[H]);R(C),R(y),R(P),R(c),h=!0}},o(E){U(p),m=m.filter(A9);for(let H=0;H<m.length;H+=1)U(m[H]);U(C),U(y),U(P),U(c),h=!1},d(E){E&&L(e),p&&p.d(),ft(m,E),C&&C.d(),y&&y.d(),P&&P.d(),T[o].d(),d=!1,Je(g)}}}function F9(i,e,t){const n=Jt();let{store:l}=e,{getTranslation:r}=e,a=!1,o={displayed:!1},c,h,d=!1,g,p,b,m,v,C,y,P,I,T,V,E,H,D,O,z,Q,X,ce,Z=!0,G=!1,j,ae,fe,ne=[],se={isDirty:!1,persistUrl:null},Se,ie,Re=!1,ze,Ce,Pe={},Fe,ct,qe,dt=te.getConfigValue("settings.btpToolLayout")&&le.requestExperimentalFeature("btpToolLayout",!0),{isSearchFieldVisible:Ft}=e,{inputElem:de}=e,{customSearchItemRendererSlot:xe}=e,{displaySearchResult:St}=e,{searchResult:ln}=e,{storedUserSettings:Ln}=e;const an=async B=>{const ue=B.iframe.luigi,Ee=ue.currentNode&&ue.currentNode.userSettingsGroup,Ge=await te.readUserSettings(),Ie=Ee&&typeof Ge=="object"&&Ge!==null,he=Ae.applyCoreStateData({isNavigateBack:G,viewStackSize:ne.length,clientPermissions:ue.nextViewUrl?ue.nextClientPermissions:ue.clientPermissions,thirdPartyCookieCheck:await te.getConfigValue("settings.thirdPartyCookieCheck"),userSettings:Ie?Ge[Ee]:null,anchor:ul.getAnchor(),cssVariables:await Bo.getCSSVariables()});return Ae.specialIframeTypes.map(Ue=>Ue.iframeConfigKey).forEach(Ue=>{he[Ue]=B[Ue]||!1}),he},Ht=async(B,ue={})=>{if(!B.iframe){console.debug("iframe does not exist, not able to send context.");return}const Ee={msg:"luigi.init",context:JSON.stringify(Object.assign({},B.context||T,ue)),nodeParams:JSON.stringify(Object.assign({},B.nodeParams||V)),pathParams:JSON.stringify(Object.assign({},B.pathParams||E)),searchParams:JSON.stringify(Object.assign({},me.prepareSearchParamsForClient(B.iframe.luigi.currentNode))),internal:JSON.stringify(await an(B)),authData:fl.getStoredAuthData()};B.iframe.luigi._lastUpdatedMessage=Ee,Ae.sendMessageToIframe(B.iframe,Ee)},Te=B=>{const ue={msg:"luigi.auth.tokenIssued",authData:B};Ae.broadcastMessageToAllIframes(ue)},rt=(B,ue)=>{if(B.params.preserveView||B.params.viewgroup){const Ee=Sn(B.params),Ge=at.getNodePath(D,H);ne.push({path:ue.iframe.luigi&&ue.iframe.luigi.pathParams?le.replaceVars(Ge,ue.iframe.luigi.pathParams,":",!1):Ge,nextPath:Ee.startsWith("/")?Ee:"/"+Ee,context:T}),ue.iframe.pv="pv"}},tt=(B,ue,Ee,Ge)=>{let Ie=Sn(B.params,Ee,Ge);const{preventHistoryEntry:he,preserveQueryParams:Ue,preventContextUpdate:Ct}=B.params,qt={keepBrowserHistory:!he,navSync:Z,preventContextUpdate:Ct};return Ie=le.addLeadingSlash(Ie),Ie=Ue?me.composeSearchParamsToRoute(Ie):Ie,rt(B,ue),at.navigateTo(Ie,qt)},Yt=B=>B.split("?")[0],Qt=(B,ue)=>{if(B.length===0)return!1;const Ee=ue.startsWith("/")?ue:`/${ue}`,Ge=[...B].pop();return[Yt(Ge.path),Yt(Ge.nextPath)].includes(Yt(Ee))},An=B=>{se&&se.dirtySet&&(B?se.dirtySet.delete(B):se.dirtySet.clear())},Lt=B=>new Promise((ue,Ee)=>{Ei(B)?ql().then(()=>{An(),ue()},()=>{Ee()}):ue()}),gn=()=>({get:()=>({unsavedChanges:se,hideNav:ei,viewUrl:O,nodeParams:V,viewGroup:z,urlParamsRaw:H,currentNode:D,navigationPath:ae,context:T,pathParams:E,hideGlobalSearch:Li,hideSideNav:ui,isolateView:Q,pageErrorHandler:X,previousNodeValues:ce,mfSplitView:o,splitViewValues:c,splitViewIframe:C,splitViewWC:P,showLoadingIndicator:a,tabNav:ie,isNavigateBack:G,goBackContext:j,isNavigationSyncEnabled:Z}),set:B=>{B&&(t(23,Ai=!1),Object.getOwnPropertyNames(B).forEach(ue=>{ue==="hideNav"?t(20,ei=B.hideNav):ue==="viewUrl"?O=B.viewUrl:ue==="nodeParams"?V=B.nodeParams:ue==="viewGroup"?z=B.viewGroup:ue==="urlParamsRaw"?H=B.urlParamsRaw:ue==="currentNode"?D=B.currentNode:ue==="navigationPath"?t(14,ae=B.navigationPath):ue==="context"?T=B.context:ue==="pathParams"?t(13,E=B.pathParams):ue==="hideGlobalSearch"?t(21,Li=B.hideGlobalSearch):ue==="hideSideNav"?(ui!=B.hideSideNav&&(t(23,Ai=!0),setTimeout(()=>{const Ee=document.querySelector("#app");Ee&&Ee.classList.remove("no-animation")})),t(22,ui=B.hideSideNav)):ue==="isolateView"?Q=B.isolateView:ue==="pageErrorHandler"?X=B.pageErrorHandler:ue==="previousNodeValues"?ce=B.previousNodeValues:ue==="mfSplitView"?t(11,o=B.mfSplitView):ue==="splitViewValues"?c=B.splitViewValues:ue==="splitViewIframe"?C=B.splitViewIframe:ue=="splitViewWC"?P=B.splitViewWC:ue==="showLoadingIndicator"?B.showLoadingIndicator===!0?(clearTimeout(qe),qe=setTimeout(()=>{t(10,a=!0)},250)):(t(10,a=!1),clearTimeout(qe)):ue==="tabNav"?t(15,ie=B.tabNav):ue==="isNavigateBack"?G=B.isNavigateBack:ue==="goBackContext"?j=B.goBackContext:ue==="isNavigationSyncEnabled"&&(Z=B.isNavigationSyncEnabled)}))},shouldShowUnsavedChangesModal:Ei,getUnsavedChangesModalPromise:Lt,showUnsavedChangesModal:ql,showAlert:Wt,prepareInternalData:an,dispatch:n}),xn=(B,ue)=>{pn.doOnStoreChange(l,()=>{const Ee=document.querySelector(".wcContainer");Ee&&(Ee.configChangedRequest=!0),qn.deleteCache();const Ge=at.getCurrentPath();at.handleRouteChange(Ge,gn(),B,ue)},["navigation.nodes"]),me.addRouteChangeListener((Ee,Ge)=>{const{withoutSync:Ie,preventContextUpdate:he}=Ge||{};Qt(ne,Ee)||(ne=[],ai.removeInactiveIframes(B));for(let Ct=Y.length;Ct--;)Yi(Ct);$r.removeBackdrop(),oi(),at.handleRouteChange(Ee,gn(),B,ue,Ie,he)})},Gt=(B,ue)=>le.replaceVars(at.getNodePath(B),ue,":",!1),Sn=(B,ue,Ee)=>{const Ge=ue||D,Ie=Ee||E;let he=ae;if(ue){let Ct=ue.parent;for(he=[ue];Ct;)he.push(Ct),Ct=Ct.parent;he=[...he].reverse()}let Ue=B.link;if(B.fromVirtualTreeRoot){const Ct=[...he].reverse().find(qt=>qt.virtualTree);if(!Ct){console.error("LuigiClient Error: fromVirtualTreeRoot() is not possible because you are not inside a Luigi virtualTree navigation node.");return}Ue=at.concatenatePath(Gt(Ct,Ie),B.link)}else if(B.fromParent)Ue=at.concatenatePath(Gt(Ge.parent,Ie),B.link);else if(B.fromClosestContext){const Ct=[...he].reverse().find(qt=>qt.navigationContext&&qt.navigationContext.length>0);Ue=at.concatenatePath(Gt(Ct,Ie),B.link)}else if(B.fromContext){const Ct=B.fromContext,qt=[...he].reverse().find(yr=>Ct===yr.navigationContext);Ue=at.concatenatePath(Gt(qt,Ie),B.link)}else B.intent?Ue=me.getIntentPath(B.link):B.relative&&(Ue=at.concatenatePath(Gt(Ge,Ie),B.link));return B.nodeParams&&Object.keys(B.nodeParams).length>0&&(Ue+=Ue.includes("?")?"&":"?",Object.entries(B.nodeParams).forEach((Ct,qt)=>{Ue+=encodeURIComponent(me.getContentViewParamPrefix()+Ct[0])+"="+encodeURIComponent(Ct[1])+(qt<Object.keys(B.nodeParams).length-1?"&":"")})),Ue},wi=B=>{const ue=B.detail.node;Lt().then(()=>{if(Xe(),ue.openNodeInModal){const Ee=me.buildRoute(ue,`/${ue.pathSegment}`);bn(Ee,ue.openNodeInModal===!0?{}:ue.openNodeInModal)}else if(ue.drawer){const Ee=me.buildRoute(ue,`/${ue.pathSegment}`);ue.drawer.isDrawer=!0,vr(Ee,ue.drawer)}else gn().set({isNavigationSyncEnabled:!0}),at.handleRouteClick(ue,gn())},()=>{})},ki=()=>{t(16,Re=!Re)};qr("handleNavigation",tt);const mn=B=>B?!0:(console.warn("No search provider defined."),!1),Si=()=>{mn(Ce)&&t(0,Ft=!1)},Ci=()=>{mn(Ce)&&de&&(t(0,Ft=!0),de.focus())},yi=()=>{mn(Ce)&&de&&(t(1,de.value="",de),Ni())},Pi=()=>{t(0,Ft=!Ft),Dk.clearSearchField()},Ii=()=>{if(mn(Ce)&&de)return de.value},pl=B=>{mn(Ce)&&de&&(t(1,de.value=B,de),le.isFunction(Ce.onInput)?Ce.onInput():console.error("onInput is not a function. Please check the global search configuration."))},ml=B=>{mn(Ce)&&de&&t(1,de.placeholder=B,de)},bl=B=>{if(mn(Ce))if(B&&B.length>0)if(le.isFunction(Ce.customSearchResultRenderer)){let ue={fireItemSelected:Ee=>{Ce.onSearchResultItemSelected(Ee)}};Ce.customSearchResultRenderer(B,xe,ue)}else t(3,St=!0),t(4,ln=B);else console.warn("Search result array is empty.")},Ni=()=>{if(mn(Ce)&&(t(3,St=!1),t(4,ln=[]),xe))for(;xe.lastElementChild;)xe.removeChild(xe.lastElementChild)},Gi=B=>{let ue=B.detail.node,Ee={params:{link:ue.link,nodeParams:ue.params}};tt(Ee)},Ki=(B,ue)=>{if(o.displayed){console.warn("Only one splitview can be opened at a time");return}t(11,o=ht.getDefaultData().mfSplitView),ht.open(gn(),B,ue)},oi=()=>{ht.close(gn())},vl=()=>{ht.collapse(gn()),t(11,o.collapsed=!0,o)},wl=()=>{ht.expand(gn()),t(11,o.collapsed=!1,o)},ji=()=>o.displayed?o.collapsed:!1,kl=()=>o.displayed?!o.collapsed:!1,Sl=()=>o.displayed,Cl=B=>{C=B.detail.splitViewIframe,y=B.detail.splitViewIframeData,t(11,o.collapsed=B.detail.collapsed,o)},Ti=B=>{B.detail.displayed!==void 0&&t(11,o.displayed=B.detail.displayed,o),B.detail.collapsed!==void 0&&t(11,o.collapsed=B.detail.collapsed,o)},yl=B=>{P=B.detail.splitViewWC,B.detail.splitViewWCData,t(11,o.collapsed=B.detail.collapsed,o)};let ei,Li,ui,Ai,fi,K,be;const Xe=()=>{document.body.classList.remove("lui-leftNavToggle")},nt=()=>{Qi();const B=window.innerWidth>=fn.desktopMinWidth&&fi<fn.desktopMinWidth,ue=window.innerWidth<fn.desktopMinWidth&&fi>=fn.desktopMinWidth;(B||ue)&&Xe(),fi=window.innerWidth};let it=[];const bt=(B,ue)=>{if(!(!B||!(B.length>0)))return B.filter(Ee=>Ee.settings.id===ue)[0]},Wt=(B,ue=!1)=>{const Ee=te.getConfigValue("settings.customAlertHandler");if(le.isFunction(Ee)){const Ie=Ee(B,ue);if(Ie!==!1)return Ie}const Ge=it;return B.id||(B.id=le.getRandomId()),B.id&&Ge&&bt(Ge,B.id)?(console.error(`The alert with id '${B.id}' already exists in a queue, therefore it won't be displayed `),Promise.reject()):(B.closeAfter&&setTimeout(()=>{bt(it,B.id)&&Zt(B.id)},B.closeAfter),new Promise((Ie,he)=>{t(26,it=[...Ge||[],{displayed:!0,settings:B,openFromClient:ue,promise:{resolve:Ie}}])}))},Zt=(B,ue)=>{const Ee=bt(it,B);if(!Ee){console.error("An unexisting alert has been dismissed.",it,B);return}if(t(26,it=it.filter(Ge=>Ge.settings.id!==B)),Ee.openFromClient){const Ge=ai.getActiveIframe(fe),Ie={msg:"luigi.ux.alert.hide",id:B,dismissKey:ue};Ae.sendMessageToIframe(Ge,Ie)}else Ee.promise&&Ee.promise.resolve(ue||B)},ci=B=>{Zt(B.detail.id,B.detail.dismissKey)};let Ji;const Pl=()=>{t(27,Ji={displayed:!1,content:{},openFromClient:!1,promise:null})};Pl();const di=(B,ue=!1,Ee)=>new Promise((Ge,Ie)=>{t(27,Ji={displayed:!0,settings:B,openFromClient:ue,promise:{resolve:Ge,reject:Ie},targetIframe:Ee})}),Il=B=>{const{promise:ue,openFromClient:Ee,targetIframe:Ge}=Ji;if(Pl(),B?ue.resolve():ue.reject(),Ee&&Ge){const Ie={msg:"luigi.ux.confirmationModal.hide",data:{confirmed:B}};Ae.sendMessageToIframe(Ge,Ie)}},Ei=B=>{if(se.dirtySet){if(B)return se.dirtySet.has(B);if(se.dirtySet.size>0)return!0}return!1},ql=()=>di({header:Tt.getTranslation("luigi.unsavedChangesAlert.header"),body:Tt.getTranslation("luigi.unsavedChangesAlert.body"),buttonDismiss:Tt.getTranslation("luigi.button.dismiss"),buttonConfirm:Tt.getTranslation("luigi.button.confirm")}),br=()=>se.dirtySet?se.dirtySet.size>0:se.isDirty;qr("getUnsavedChangesModalPromise",Lt);let Y=[];const Rt=(B,ue)=>{var Ge;if(typeof B>"u"){t(28,Y=[]);return}let Ee;if(t(28,Y=Y.filter((Ie,he)=>(B===he&&(Ee=Ie),B!==he))),(Ge=Ee==null?void 0:Ee.mfModal)!=null&&Ge.openerIframe){const Ie={msg:"luigi.navigation.modal.close",data:ue};Ae.sendMessageToIframe(Ee.mfModal.openerIframe,Ie)}};Rt();const bn=async(B,ue,Ee)=>{if(await re.shouldPreventNavigationForPath(B))return;const Ge={mfModal:{displayed:!0,nodepath:B,settings:ue,openerIframe:Ee}};t(28,Y=[...Y,Ge]),te.getConfigBooleanValue("routing.showModalPathInUrl")&&Y.length===1&&at.appendModalDataToUrl(B,ue)},ti=(B,ue)=>{t(28,Y[ue].modalIframe=B.detail.modalIframe,Y),t(28,Y[ue].modalIframeData=B.detail.modalIframeData,Y)},xr=(B,ue)=>{t(28,Y[ue].modalWC=B.detail.modalWC,Y),t(28,Y[ue].modalWCData=B.detail.modalWCData,Y)},Yi=(B,ue,Ee)=>{const Ge=(Ue,Ct)=>{te.getConfigBooleanValue("routing.showModalPathInUrl")&&Y.length===1&&at.removeModalDataFromUrl(Ct),Rt(Ue,Ee)},Ie=Y[B],he=le.getRemotePromise(Ie.mfModal.settings.onClosePromiseId);Ie&&Ie.modalIframe?Lt(Ie.modalIframe.contentWindow).then(()=>{Ge(B,ue),he&&he.doResolve(Ee)},()=>{}):Ie&&Ie.modalWC&&(Ge(B,ue),he&&he.doResolve(Ee))};qr("openViewInModal",bn);let rn={};const zl=()=>{t(29,rn.displayed=!1,rn),t(29,rn.nodepath=void 0,rn),t(29,rn.settings={},rn),t(12,g=!1)};zl();const vr=async(B,ue)=>{await re.shouldPreventNavigationForPath(B)||(t(29,rn.displayed=!0,rn),t(29,rn.nodepath=B,rn),t(29,rn.settings=ue,rn),rn.settings&&rn.settings.backdrop&&t(12,g=!0))},ea=()=>window.innerWidth>=fn.desktopMinWidth&&rn.displayed&&rn.settings&&!rn.settings.overlap,Qi=(B=!1)=>{if(!ea())return;const ue=document.querySelector(".iframeModalCtn._drawer");if(!ue)return;const Ee=[document.querySelector("div.iframeContainer"),document.getElementById("splitViewContainer"),document.getElementById("splitViewDragger"),document.getElementById("splitViewDraggerBackdrop"),document.getElementById("tabsContainer")];if(B)Ee.forEach(Ge=>{Ge==null||Ge.style.removeProperty("width")});else{const{width:Ge}=getComputedStyle(ue);Ee.forEach(Ie=>{wr(Ie,Ge)})}},wr=(B,ue)=>{B&&!B.style.getPropertyValue("width").includes("calc(")&&B.style.setProperty("width",`calc(${B.clientWidth}px - ${ue})`)},ps=B=>{p=B.detail.modalIframe,b=B.detail.modalIframeData,Qi()},ta=B=>{m=B.detail.modalWC,B.detail.modalWCData,Qi()},Gl=B=>{d=B.detail.activeDrawer},Kl=B=>{if(B&&B.detail&&B.detail.activeDrawer!==void 0&&(d=B.detail.activeDrawer),!d||B&&B.detail&&B.detail.type!=="modal")try{p?Lt(p.contentWindow).then(()=>{zl()},()=>{}):m&&Lt().then(()=>{zl()},()=>{}),Qi(!0)}catch(ue){console.log(ue)}},ms=()=>{const B=cr.processUserSettingGroups();Array.isArray(B)&&B.length>0?(t(17,Pe.userSettingGroups=[...B],Pe),t(17,Pe.displayed=!0,Pe)):console.info("There are no user setting groups in the settings section of the luigi config defined.")},na=()=>{t(17,Pe.displayed=!1,Pe)},ia=async B=>{if(await re.shouldPreventNavigationForPath(B))return;te.getConfigValue("routing.useHashRouting")&&(B="#"+B),window.open(B,"_blank","noopener,noreferrer")},jl=B=>{let ue=ae;if(D){let Ie=D.parent;for(ue=[D];Ie;)ue.push(Ie),Ie=Ie.parent;ue=[...ue].reverse()}let Ee=B.link,Ge=Gt(D,E);if(B.fromVirtualTreeRoot){const Ie=[...ue].reverse().find(Ue=>Ue.virtualTree);if(!Ie){console.error("LuigiClient Error: fromVirtualTreeRoot() is not possible because you are not inside a Luigi virtualTree navigation node.");return}const he=Gt(Ie,E);Ee=Ge.split(he).join("")}else if(B.fromParent){const Ie=Gt(D.parent,E);Ee=Ge.split(Ie).join("")}else if(B.fromClosestContext){const Ie=[...ue].reverse().find(Ue=>Ue.navigationContext&&Ue.navigationContext.length>0),he=Gt(Ie,E);Ee=Ge.split(he).join("")}else if(B.fromContext){const Ie=B.fromContext,he=[...ue].reverse().find(Ct=>Ie===Ct.navigationContext),Ue=Gt(he,E);Ee=Ge.split(Ue).join("")}else Ee=Ge;return Ee};function bs(B){sessionStorage.removeItem("historyState"),fr.shouldPreload=!0,fr.preload(!0),fr.shouldPreload=!1;const ue=te.getConfigValue("navigation.defaults.isolateView"),Ee=te.getConfigValue("navigation.defaults.pageErrorHandler"),Ge=te.getConfigValue("navigation.defaults.runTimeErrorHandler"),Ie={iframe:null,navigateOk:null,builderCompatibilityMode:!!window.builderCompatibilityMode,isolateAllViews:ue,defaultPageErrorHandler:Ee};Tt.addCurrentLocaleChangeListener(he=>{const Ue={msg:"luigi.current-locale-changed",currentLocale:he};Ae.broadcastMessageToAllIframes(Ue)}),Mn.addEventListener("popstate",async he=>{const Ue=it;if(!Ue||!(Ue.length>0))return;const Ct=Ue.map(qt=>{if(qt&&!qt.openFromClient&&typeof qt.settings.ttl=="number"){if(qt.settings.ttl===0)return null;qt.settings.ttl--}return qt}).filter(qt=>qt);t(26,it=Ct)}),Mn.addEventListener("message",async he=>{const Ue=Ae.getValidMessageSource(he),Ct=Y[Y.length-1],qt=Ct&&Ct.modalIframe,yr=Ct&&Ct.modalIframeData,Xi={modalIframe:qt,modalIframeData:yr,drawerIframe:p,drawerIframeData:b,drawer:v,modal:h,splitViewIframe:C,splitViewIframeData:y,splitView:I};if(!Ue)return;Ue._ready=!0;const Pr=Ae.getSpecialIframeMessageSource(he,Xi),Ri=Pr&&Pr.length>0,Ir=te.getConfigValue("communication.skipEventsWhenInactive");if(Ir&&Ir.length>0&&!Ri&&Ue.contentWindow!==window&&!le.isElementVisible(Ue)&&Ir.includes(he.data.msg)){console.debug(`EVENT '${he.data.msg}' from inactive iframe -> SKIPPED`);return}if(he.data.msg==="custom"){const Be=te.getConfigValue("communication.customMessagesListeners")||{},It=as.convertCustomMessageInternalToUser(he.data),yt=Be[It.id],sn="luigi.updateUserSettings";if(Pe&&It.id===sn){yt&&console.warn(`The key "${sn}" is not allowed to use for custom messages.`);return}if(typeof yt=="function"){const Cn=zi.getMicrofrontends().find(Xt=>Ae.isMessageSource(he,Xt.container));yt(It,Cn,le.removeInternalProperties(Ue.luigi.currentNode))}else console.warn(`Warning: Custom message with id: '${It.id}' does not exist. Make sure you provided the same id as in the config file.`)}if(he.data.msg==="luigi.init.ok"&&(Ue.luigi.initOk=!0),he.data.msg==="luigi.navigate.ok"&&(Ue.luigi.viewUrl=Ue.luigi.nextViewUrl,Ue.luigi.nextViewUrl="",Ue.luigi.clientPermissions=Ue.luigi.nextClientPermissions,delete Ue.luigi.nextClientPermissions,Ie.navigateOk=!0,fr.preload()),he.data.msg==="luigi.get-context"){if(Ue.luigi.clientVersion=he.data.clientVersion,Ue.luigi.initOk=!1,Ri)Pr.forEach(async Be=>{let It=Xi[Be.dataKey].context;const yt={...Ie,iframe:Xi[Be.iframeKey],context:It,pathParams:Xi[Be.dataKey].pathParams,nodeParams:Xi[Be.dataKey].nodeParams,searchParams:me.prepareSearchParamsForClient(Xi[Be.iframeKey].luigi.currentNode),modal:Be.iframeKey.startsWith("modal"),drawer:Be.iframeKey.startsWith("drawer"),splitView:Be.iframeKey.startsWith("splitView")};await Ht(yt,{})});else if(Ie.iframe&&Ae.isMessageSource(he,Ie.iframe))await Ht(Ie,{}),(!D||!D.loadingIndicator||D.loadingIndicator.hideAutomatically!==!1)&&Sr(),fr.preload();else if(Ue.luigi.preloading)await Ht({iframe:Ue,context:{},nodeParams:{},pathParams:{},internal:{}},{});else{let Be=cr.findActiveCustomUserSettingsIframe(he.source);if(Be){let It=Be.getAttribute("userSettingsGroup"),yt={context:{userSettingsData:Ln[It]},iframe:Be};await Ht(yt)}}fr.viewGroupLoaded(Ue)}if(he.data.msg==="luigi.show-loading-indicator"&&t(10,a=!0),he.data.msg==="luigi.hide-loading-indicator"&&(clearTimeout(qe),t(10,a=!1)),he.data.msg==="luigi.navigation.open"){G=!1;const Be=window.location.href,It=Ri?Ue.luigi.currentNode:void 0,yt=Ri?Ue.luigi.pathParams:void 0,sn=he.data.params,{intent:Cn,newTab:Xt,modal:$i,splitView:Yl,drawer:Nl,withoutSync:Ts}=sn;let Ql=Xt||$i||Yl||Nl;const ca=()=>{const Gn=le.getRemotePromise(he.data.remotePromiseId);Gn&&Gn.doResolve()},cn=()=>{const Gn=le.getRemotePromise(he.data.remotePromiseId);Gn&&Gn.doReject()},Tl=Gn=>{!Gn||Be!==window.location.href?ca():cn()};he.source!==window&&!Cn&&sn.link&&(sn.link=sn.link.split("?")[0]);let Ot=Sn(he.data.params,It,yt);if(Ql=Ql||Cn&&Ot.external,!Ql)Lt().then(()=>{Z=!he.data.params.withoutSync,tt(he.data,Ie,It,yt).then(()=>{Tl(!0)}).catch(()=>{cn()}),Y.forEach((Gn,da)=>{Yi(da)}),oi(),Kl(),Z=!0}).catch(()=>{cn()});else{if(Cn&&Ot.external){at.navigateToExternalLink({url:Ot.url,sameWindow:!Ot.openInNewTab});return}if(Ot=le.addLeadingSlash(Ot),Xt){await ia(Ot),Tl();return}const Gn=await Jl(Ot);if(Ot=await me.handlePageNotFoundAndRetrieveRedirectPath(gn(),Ot,Gn),!Ot){cn();return}fe=B,$i!==void 0?(!$i.keepPrevious&&Rt(),await bn(Ot,$i===!0?{}:$i,Ue),Tl()):Yl!==void 0?(await Ki(Ot,Yl),Tl()):Nl!==void 0&&(zl(),Nl.isDrawer=!0,await vr(Ot,Nl),Tl())}}if(he.data.msg==="luigi.navigation.back"){const Be=Y[Y.length-1],It=Y.length>1&&Y[Y.length-2],yt=he.data.goBackContext&&JSON.parse(he.data.goBackContext);if(Ae.isMessageSource(he,Be&&Be.modalIframe)){Yi(Y.length-1,!0,yt);let sn=Ie;if(It&&It.modalIframeData&&It.modalIframe){const Cn=It,Xt=Cn.modalIframeData;sn={pathParams:Xt.pathParams,context:Xt.context,iframe:Cn.modalIframe}}sn.iframe&&await Ht(sn,{goBackContext:yt})}else Ae.isMessageSource(he,C)?(oi(),Ie.iframe&&await Ht(Ie,{goBackContext:yt})):Ae.isMessageSource(he,p)?(d&&(d=!d),Kl(),Ie.iframe&&await Ht(Ie,{goBackContext:yt})):ne&&ne.length>0?Lt().then(()=>{ai.setActiveIframeToPrevious(B);const sn=ne.pop();Ie.iframe=ai.getActiveIframe(B),G=!0,ne=ne,j=yt,tt({params:{link:sn.path}},Ie)},()=>{}):(yt&&console.warn("Warning: goBack() does not support goBackContext value. This is available only when using the Luigi preserveView feature."),window.history.back())}if(he.data.msg==="luigi.navigation.currentRoute"){const Be=he.data.data,yt={msg:"luigi.navigation.currentRoute.answer",data:{route:jl(Be),correlationId:Be.id}};Ae.sendMessageToIframe(Ue,yt)}if(he.data.msg==="luigi.auth.tokenIssued"&&Te(he.data.authData),he.data.msg==="luigi.navigation.updateModalDataPath"){if(!te.getConfigBooleanValue("routing.showModalPathInUrl"))return;if(Ri){const Be=le.addLeadingSlash(Sn(he.data.params,Ue.luigi.currentNode,Ue.luigi.pathParams));at.updateModalDataInUrl(Be,he.data.params.modal,he.data.params.history)}else console.warn("updateModalDataPath can only be called from modal, ignoring.")}if(he.data.msg==="luigi.navigation.pathExists"){const Be=Ue.luigi.currentNode,It=Ue.luigi.pathParams,yt=he.data.data,sn=Sn(yt,Be,It),Cn=sn?await Ut.getNavigationPath(te.getConfigValueAsync("navigation.nodes"),sn):!1,Xt={msg:"luigi.navigation.pathExists.answer",data:{correlationId:yt.id,pathExists:Cn?Cn.isExistingRoute:!1}};Ae.sendMessageToIframe(Ue,Xt)}if(he.data.msg==="luigi.set-page-dirty"){if(!se.dirtySet){const Be=new Set;Be.add(he.source),se={dirtySet:Be}}se.persistUrl=window.location.href,he.data.dirty?se.dirtySet.add(he.source):se.dirtySet.delete(he.source)}if(he.data.msg==="luigi.ux.confirmationModal.show"){const Be=he.data.data.settings;fe=B,Pl(),di(Be,!0,Ue).catch(()=>{})}if(he.data.msg==="luigi.ux.alert.show"){const{settings:Be}=he.data.data;if(!Be.text&&!le.isFunction(te.getConfigValue("settings.customAlertHandler"))){console.error("Luigi Client alert: 'text' field for alert is empty or not present, therefore alert will not be displayed");return}fe=B,Wt(Be,!0).catch(()=>{})}if(he.data.msg==="luigi.ux.set-current-locale")if(Ue.luigi.clientPermissions&&Ue.luigi.clientPermissions.changeCurrentLocale){const{currentLocale:Be}=he.data.data;Be&&Tt.setCurrentLocale(Be)}else console.error("Current local change from client declined because client permission changeCurrentLocale is not set for this view.");if(ze&&!ze.thirdPartyCookieScriptLocation&&he.data.msg==="luigi.third-party-cookie"&&he.data.tpc==="disabled"&&kr(),he.data.msg==="storage"&&a2.process(Ue.luigi.id,he.origin,he.data.data.id,he.data.data.operation,he.data.data.params),he.data.msg==="luigi-runtime-error-handling"){let Be=Ue.luigi.currentNode;Be&&Be.runTimeErrorHandler&&le.isFunction(Be.runTimeErrorHandler.errorFn)?Be.runTimeErrorHandler.errorFn(he.data.errorObj,Be):Ge&&le.isFunction(Ge.errorFn)&&Ge.errorFn(he.data.errorObj,Be)}if(he.data.msg==="luigi.addSearchParams")if(Ue.luigi.currentNode.clientPermissions&&Ue.luigi.currentNode.clientPermissions.urlParameters){const{data:Be,keepBrowserHistory:It}=he.data;me.addSearchParamsFromClient(Ue.luigi.currentNode,Be,It)}else console.warn("No client permissions to add url parameter for this node.");if(he.data.msg==="luigi.addNodeParams"){if(Ri)return;const{data:Be,keepBrowserHistory:It}=he.data;ul.addNodeParams(Be,It)}if(he.data.msg==="luigi.setAnchor"){const{anchor:Be}=he.data;ul.setAnchor(Be)}if(he.data.msg==="luigi.setVGData"){const Be=he.data,It=re.findViewGroup(Ue.luigi.currentNode);if(It){const yt=re.getViewGroupSettings(It);yt._liveCustomData=Be.data,te.configChanged("navigation.viewgroupdata")}}}),xn(B,Ie)}qr("store",l),qr("getTranslation",r);const kr=B=>{ze&&ze.thirdPartyCookieErrorHandling&&le.isFunction(ze.thirdPartyCookieErrorHandling)&&ze.thirdPartyCookieErrorHandling()};function Sr(){const B=document.querySelector(".spinnerContainer.appSpinner");B&&B.classList.contains("fade-out")?(B.classList.remove("fade-out"),setTimeout(()=>{clearTimeout(qe),t(10,a=!1)},250)):clearTimeout(qe)}const Jl=async B=>{const ue={link:B,relative:B[0]!=="/",intent:me.hasIntent(B)},Ee=Sn(ue),Ge=Ee?await Ut.getNavigationPath(te.getConfigValueAsync("navigation.nodes"),Ee):!1;return Ge?Ge.isExistingRoute:!1},Zi=()=>Y.length>0||ne.length!==0;nn(()=>{if(Bo._init(),Ce=te.getConfigValue("globalSearch.searchProvider"),Se=te.getConfigValue("settings.responsiveNavigation"),fi=window.innerWidth,Se==="simple"){if(document.body.classList.add("lui-simpleSlideInNav"),re.getBurgerTooltipConfig()){const[B,ue]=re.getBurgerTooltipConfig();B&&ue&&t(18,Fe=document.body.classList.contains("lui-leftNavToggle")?B:ue)}}else if(Se==="simpleMobileOnly")document.body.classList.add("lui-simpleSlideInNav","lui-mobileOnly");else{if(re.getBurgerTooltipConfig()){const[B,ue]=re.getBurgerTooltipConfig();if(B&&ue){const Ee=JSON.parse(localStorage.getItem(re.COL_NAV_KEY));t(18,Fe=Ee?B:ue)}}document.body.classList.add("lui-semiCollapsible")}ze=te.getConfigValue("settings.thirdPartyCookieCheck"),ze&&ze.thirdPartyCookieScriptLocation&&setTimeout(()=>{let B=document.createElement("iframe");B.width="0px",B.height="0px",B.src=ze.thirdPartyCookieScriptLocation,document.body.appendChild(B),B.onload=function(){setTimeout(()=>{L9()==="disabled"&&kr()}),document.body.removeChild(B)}})}),Zr(()=>{Qi()}),zn(()=>{t(19,ct=te.getConfigValue("navigation.breadcrumbs")),Ce=te.getConfigValue("globalSearch.searchProvider"),t(24,K=te.getConfigValue("tag")),t(25,be=te.getConfigValue("settings.header.disabled"))});const la=B=>{B.keyCode===Hl&&Y&&Y.length>0&&Yi(Y.length-1)},ra=B=>Yi(B,!0),vs=(B,ue)=>ti(ue,B),aa=(B,ue)=>xr(ue,B),sa=()=>Il(!0),oa=()=>Il(!1);function ua(B){Ln=B,t(5,Ln)}function ws(B){Ft=B,t(0,Ft)}function ks(B){St=B,t(3,St)}function Ss(B){ln=B,t(4,ln)}function fa(B){de=B,t(1,de)}function Cs(B){xe=B,t(2,xe)}function ys(B){Ft=B,t(0,Ft)}function Ps(B){St=B,t(3,St)}function Is(B){ln=B,t(4,ln)}function Cr(B){de=B,t(1,de)}function Ns(B){xe=B,t(2,xe)}return i.$$set=B=>{"store"in B&&t(48,l=B.store),"getTranslation"in B&&t(49,r=B.getTranslation),"isSearchFieldVisible"in B&&t(0,Ft=B.isSearchFieldVisible),"inputElem"in B&&t(1,de=B.inputElem),"customSearchItemRendererSlot"in B&&t(2,xe=B.customSearchItemRendererSlot),"displaySearchResult"in B&&t(3,St=B.displaySearchResult),"searchResult"in B&&t(4,ln=B.searchResult),"storedUserSettings"in B&&t(5,Ln=B.storedUserSettings)},[Ft,de,xe,St,ln,Ln,Pi,Ni,Gi,na,a,o,g,E,ae,ie,Re,Pe,Fe,ct,ei,Li,ui,Ai,K,be,it,Ji,Y,rn,dt,wi,ki,Cl,Ti,yl,nt,ci,Il,ti,xr,Yi,ps,ta,Gl,Kl,bs,la,l,r,Si,Ci,yi,Ii,pl,ml,bl,Ki,oi,vl,wl,ji,kl,Sl,Wt,di,br,ms,jl,Jl,Zi,ra,vs,aa,sa,oa,ua,ws,ks,Ss,fa,Cs,ys,Ps,Is,Cr,Ns]}class U9 extends Vt{constructor(e){super(),Dt(this,e,F9,M9,Et,{store:48,getTranslation:49,isSearchFieldVisible:0,inputElem:1,customSearchItemRendererSlot:2,displaySearchResult:3,searchResult:4,storedUserSettings:5,closeSearchField:50,openSearchField:51,clearSearchField:52,toggleSearch:6,getGlobalSearchString:53,setGlobalSearchString:54,setSearchInputPlaceholder:55,showSearchResult:56,closeSearchResult:7,handleSearchNavigation:8,openSplitView:57,closeSplitView:58,collapseSplitView:59,expandSplitView:60,isSplitViewCollapsed:61,isSplitViewExpanded:62,existsSplitView:63,showAlert:64,showModal:65,getDirtyStatus:66,openUserSettings:67,closeUserSettings:9,buildPathForGetCurrentRoute:68,pathExists:69,hasBack:70},null,[-1,-1,-1,-1,-1,-1])}get closeSearchField(){return this.$$.ctx[50]}get openSearchField(){return this.$$.ctx[51]}get clearSearchField(){return this.$$.ctx[52]}get toggleSearch(){return this.$$.ctx[6]}get getGlobalSearchString(){return this.$$.ctx[53]}get setGlobalSearchString(){return this.$$.ctx[54]}get setSearchInputPlaceholder(){return this.$$.ctx[55]}get showSearchResult(){return this.$$.ctx[56]}get closeSearchResult(){return this.$$.ctx[7]}get handleSearchNavigation(){return this.$$.ctx[8]}get openSplitView(){return this.$$.ctx[57]}get closeSplitView(){return this.$$.ctx[58]}get collapseSplitView(){return this.$$.ctx[59]}get expandSplitView(){return this.$$.ctx[60]}get isSplitViewCollapsed(){return this.$$.ctx[61]}get isSplitViewExpanded(){return this.$$.ctx[62]}get existsSplitView(){return this.$$.ctx[63]}get showAlert(){return this.$$.ctx[64]}get showModal(){return this.$$.ctx[65]}get getDirtyStatus(){return this.$$.ctx[66]}get openUserSettings(){return this.$$.ctx[67]}get closeUserSettings(){return this.$$.ctx[9]}get buildPathForGetCurrentRoute(){return this.$$.ctx[68]}get pathExists(){return this.$$.ctx[69]}get hasBack(){return this.$$.ctx[70]}}const B9=()=>{const{subscribe:i,update:e,reset:t}=gr({}),n={};let l=[];return{subscribe:r=>{l.push(i(r))},update:e,reset:t,subscribeToScope:(r,a)=>{let o=n[a];o||(o=new Set,n[a]=o),o.add(r)},fire:(r,a)=>{let o=n[r];o&&[...o].forEach(c=>{c(a)})},clear:()=>{l.forEach(r=>{r()}),l=[]}}},Sp=B9(),H9=Ik((i,e,t)=>Tt.getTranslation(i,e,t));Luigi._store=Sp;const W9=()=>new Promise(i=>{Tt._init(),hn.init().then(()=>{setTimeout(()=>{let e;zi.isCustomLuigiContainer()&&document.getElementsByTagName("html")[0].classList.add("luigi-app-in-custom-container"),e=new U9({target:zi.getLuigiContainer(),props:{store:Sp,getTranslation:H9}}),Luigi.showAlert=t=>e.showAlert(t),Luigi.showConfirmationModal=t=>e.showModal(t),Luigi.closeSearchField=()=>e.closeSearchField(),Luigi.openSearchField=()=>e.openSearchField(),Luigi.getGlobalSearchString=()=>e.getGlobalSearchString(),Luigi.setGlobalSearchString=t=>{e.setGlobalSearchString(t)},Luigi.showSearchResult=t=>e.showSearchResult(t),Luigi.closeSearchResult=()=>{e.closeSearchResult()},Luigi.clearSearchField=()=>{e.clearSearchField()},Luigi.splitView={splitViewHandle:{close:()=>e.closeSplitView(),collapse:()=>e.collapseSplitView(),expand:()=>e.expandSplitView(),isCollapsed:()=>e.isSplitViewCollapsed(),isExpanded:()=>e.isSplitViewExpanded(),exists:()=>e.existsSplitView()}},Luigi.pathExists=t=>e.pathExists(t),Luigi.hasBack=()=>e.hasBack(),Luigi.openUserSettings=()=>{e.openUserSettings()},Luigi.closeUserSettings=()=>{e.closeUserSettings()},Luigi.getDirtyStatus=()=>e.getDirtyStatus(),Luigi._app=e.$$,i()})})});te.setConfigCallbacks(W9);
64
64
  //# sourceMappingURL=luigi.js.map