@luigi-project/core 2.0.1 → 2.0.2-dev.202302230028
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/README.md +2 -2
- package/luigi.css +1 -1
- package/luigi.js +4 -4
- package/luigi.js.map +1 -1
- package/package.json +1 -1
package/luigi.js
CHANGED
|
@@ -26,7 +26,7 @@ Invalid Children:`,t),null):(t.some(s=>{if(s.pathSegment===e||s.pathSegment&&s.p
|
|
|
26
26
|
}
|
|
27
27
|
${n}
|
|
28
28
|
</style>
|
|
29
|
-
`,t}createCompoundItemContainer(e){const t=e||{},n=document.createElement("div");return n.setAttribute("style",`grid-row: ${t.row||"auto"}; grid-column: ${t.column||"auto"}`),n}}const P_=i=>{const e=i.use;if(e){if(e==="grid")return new i2(i);if(e.createCompoundContainer||e.createCompoundItemContainer||e.attachCompoundItem)return new n2(i)}else return new ur(i);return new ur(i)},Gf=(i,e,t,n)=>{e.eventListeners&&e.eventListeners.forEach(l=>{const r=l.source+"."+l.name,s=i[r],o={wcElementId:t,wcElement:n,action:l.action,converter:l.dataConverter};s?s.push(o):i[r]=[o]})};class l2{constructor(){}dynamicImport(e){return import(/* webpackIgnore: true */ e)}attachWC(e,t,n,l,r,s){if(n&&n.contains(t)){const o=document.createElement(e);s&&o.setAttribute("nodeId",s),this.initWC(o,e,n,r,l,s),n.replaceChild(o,t)}}initWC(e,t,n,l,r,s){const o={linkManager:window.Luigi.navigation,uxManager:window.Luigi.ux,getCurrentLocale:()=>window.Luigi.i18n().getCurrentLocale(),publishEvent:c=>{n.eventBus&&n.eventBus.onPublishEvent(c,s,t)},getActiveFeatureToggleList:()=>window.Luigi.featureToggles().getActiveFeatureToggleList(),getActiveFeatureToggles:()=>window.Luigi.featureToggles().getActiveFeatureToggleList()};if(e.__postProcess){const c=new URL(document.baseURI).origin===new URL(l,document.baseURI).origin?new URL(l,document.baseURI):new URL("./",l);e.__postProcess(r,o,c.origin+c.pathname)}else e.context=r,e.LuigiClient=o}generateWCId(e){let t="";for(let n=0;n<e.length;n++)t+=e.charCodeAt(n).toString(16);return"luigi-wc-"+t}registerWCFromUrl(e,t){const n=pe.getI18nViewUrl(e);return new Promise((l,r)=>{this.checkWCUrl(n)?this.dynamicImport(n).then(s=>{try{if(!window.customElements.get(t)){let o=s.default;if(!HTMLElement.isPrototypeOf(o)){let c=Object.keys(s);for(let g=0;g<c.length&&(o=s[c[g]],!HTMLElement.isPrototypeOf(o));g++);}window.customElements.define(t,o)}l()}catch(o){r(o)}}).catch(s=>r(s)):(console.warn(`View URL '${n}' not allowed to be included`),r(`View URL '${n}' not allowed`))})}includeSelfRegisteredWCFromUrl(e,t,n){if(this.checkWCUrl(t)){window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(r,s)=>{window.customElements.define(this.generateWCId(r),s)});let l=document.createElement("script");l.setAttribute("src",t),e.webcomponent.type==="module"&&l.setAttribute("type","module"),l.setAttribute("defer",!0),l.addEventListener("load",()=>{n()}),document.body.appendChild(l)}else console.warn(`View URL '${t}' not allowed to be included`)}checkWCUrl(e){if(e.indexOf("://")>0||e.trim().indexOf("//")===0){if(new URL(e).host===window.location.host)return!0;const n=re.getConfigValue("navigation.validWebcomponentUrls");if(n&&n.length>0)for(let l of n)try{if(new RegExp(l).test(e))return!0}catch(r){console.error(r)}return!1}return!0}renderWebComponent(e,t,n,l,r){const s=pe.substituteViewUrl(e,{context:n}),o=l.webcomponent&&l.webcomponent.tagName?l.webcomponent.tagName:this.generateWCId(s),c=document.createElement("div");t.appendChild(c),t._luigi_node=l,window.customElements.get(o)?this.attachWC(o,c,t,n,s,r):window.luigiWCFn?window.luigiWCFn(s,o,c,()=>{this.attachWC(o,c,t,n,s,r)}):l.webcomponent&&l.webcomponent.selfRegistered?this.includeSelfRegisteredWCFromUrl(l,s,()=>{this.attachWC(o,c,t,n,s,r)}):this.registerWCFromUrl(s,o).then(()=>{this.attachWC(o,c,t,n,s,r)})}createCompoundContainerAsync(e,t){return new Promise((n,l)=>{if(e.viewUrl)try{const r=this.generateWCId(e.viewUrl);this.registerWCFromUrl(e.viewUrl,r).then(()=>{const s=document.createElement(r);this.initWC(s,r,s,e.viewUrl,t,"_root"),n(s)})}catch(r){l(r)}else n(e.createCompoundContainer())})}renderWebComponentCompound(e,t,n){let l;return e.webcomponent&&e.viewUrl?(l=new ur,l.viewUrl=pe.substituteViewUrl(e.viewUrl,{context:n}),l.createCompoundItemContainer=r=>{var s=document.createElement("div");return r&&r.slot&&s.setAttribute("slot",r.slot),s}):e.compound.renderer&&(l=P_(e.compound.renderer)),l=l||new ur,new Promise(r=>{this.createCompoundContainerAsync(l,n).then(s=>{const o={};s.eventBus={listeners:o,onPublishEvent:(c,g,h)=>{const _=o[g+"."+c.type]||[];_.push(...o["*."+c.type]||[]),_.forEach(p=>{const m=p.wcElement||s.querySelector("[nodeId="+p.wcElementId+"]");m?m.dispatchEvent(new CustomEvent(p.action,{detail:p.converter?p.converter(c.detail):c.detail})):console.debug("Could not find event target",p)})}},e.compound.children.forEach((c,g)=>{const h={...n,...c.context},_=l.createCompoundItemContainer(c.layoutConfig);_.eventBus=s.eventBus,l.attachCompoundItem(s,_);const p=c.id||"gen_"+g;this.renderWebComponent(c.viewUrl,_,h,c,p),Gf(o,c,p)}),t.appendChild(s),Gf(o,e.compound,"_root",s),r(s)})})}}const oa=new l2;class r2{getNodePath(e,t){return e?pe.buildRoute(e,e.pathSegment?"/"+e.pathSegment:"",t):""}normalizePath(e){const t=e.indexOf("/")===0;let n=new URL(e,"http://valid.url");const l=n.pathname+n.search+n.hash;return!t&&l.indexOf("/")===0?l.substr(1):l}concatenatePath(e,t){let n=ee.getPathWithoutHash(e);return n?(t&&(n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")||(n+="/"),n+=t),n):t}async navigateTo(e,t={}){const{nodeObject:n}=await Mt.extractDataFromPath(e),{keepBrowserHistory:l=!0,navSync:r=!0,preventContextUpdate:s=!1}=t;if(await Mt.shouldPreventNavigation(n)||ee.trimLeadingSlash(this.getWindowPath())===ee.trimLeadingSlash(e))return;const c=re.getConfigValue("routing.useHashRouting"),g=re.getConfigValue("routing.preserveQueryParams");let h=new URL(location.href);e=g?pe.composeSearchParamsToRoute(e):e,c&&(h.hash=e);const _=l?"pushState":"replaceState",p=re.getConfigValue("routing.disableBrowserHistory")?"replaceState":_;window.history[p]({path:c?h.hash:e},"",c?h.hash:e);let m;if(ee.isIE())m=new Event("popstate",{bubbles:!0,cancelable:!0});else{const v={detail:{preventContextUpdate:s,withoutSync:!r}};m=new CustomEvent("popstate",v)}window.dispatchEvent(m)}getWindowPath(){return re.getConfigValue("routing.useHashRouting")?ee.getPathWithoutHash(window.location.hash):window.location.pathname.concat(window.location.search)}buildFromRelativePath(e){let t=this.getWindowPath();if(e.parent&&e.parent.pathSegment){const n=ee.trimLeadingSlash(this.getNodePath(e.parent)).split("/"),l=ee.trimLeadingSlash(t).split("/");l.length>n.length&&(t=l.slice(0,n.length).join("/"))}return this.normalizePath(ee.addLeadingSlash(this.concatenatePath(t,e.link)))}getHashPath(e=window.location.hash){if(e&&/\?intent=/i.test(e)){const t=e.replace("#/#","#"),n=pe.getIntentPath(t.split("#")[1]);if(n)return n}return e.split("#/")[1]}getModifiedPathname(){if(window.location.hash&&/\?intent=/i.test(window.location.hash)){const n=window.location.hash.replace("#/#","").replace("#",""),l=pe.getIntentPath(n);return l||"/"}const e=window.location.search?window.location.search:"";return(window.history.state&&window.history.state.path||window.location.pathname+e).split("/").slice(1).join("/")}getCurrentPath(){if(/\?intent=/i.test(window.location.hash)){const e=window.location.hash.replace("#/#","").replace("#",""),t=pe.getIntentPath(e);if(t)return Luigi.getConfigValue("routing.replaceIntentRoute")&&history.replaceState(window.state,"",t),t}return re.getConfigValue("routing.useHashRouting")?window.location.hash.replace("#",""):window.location.search?ee.trimLeadingSlash(window.location.pathname)+window.location.search:ee.trimLeadingSlash(window.location.pathname)}setFeatureToggle(e){const t=re.getConfigValue("settings.featureToggles.queryStringParam");t&&typeof e=="string"&&pe.setFeatureToggles(t,e)}shouldSkipRoutingForUrlPatterns(){const e=[/access_token=/,/id_token=/];return(re.getConfigValue("routing.skipRoutingForUrlPatterns")||e).filter(n=>location.href.match(n)).length!==0}handleUnsavedChangesModal(e,t,n,l){const r=window.location.href,s=t.get().unsavedChanges.persistUrl;return s&&history.pushState(window.state,"",s),t.getUnsavedChangesModalPromise().then(()=>{this.resolveUnsavedChanges(e,t,n,l,r)},()=>{}).catch(()=>{})}resolveUnsavedChanges(e,t,n,l,r){e&&(this.handleRouteChange(e,t,n,l),history.replaceState(window.state,"",r))}async shouldShowModalPathInUrl(){re.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath()}async handleViewUrlMisconfigured(e,t,n,l,r){const{children:s,intendToHaveEmptyViewUrl:o,compound:c}=e,g=s&&Array.isArray(s)&&s.length>0||s||!1;if(!c&&t.trim()===""&&!g&&!o){if(console.warn("The intended target route can't be accessed since it has neither a viewUrl nor children. This is most likely a misconfiguration."),!(n&&(n.viewUrl||n.currentNode&&n.currentNode.compound))){const h=await Mt.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),"/"),_=await pe.getDefaultChildNode(h);this.showPageNotFoundError(r,_,l),this.navigateTo(_)}return!0}return!1}async handlePageNotFound(e,t,n,l,r,s,o){if(!t&&!e.compound){const c=await pe.getDefaultChildNode(n,async(g,h)=>await Mt.getChildren(g,h));if(n.isExistingRoute){const g=ee.getTrimmedUrl(l);this.navigateTo(`${g?`/${g}`:""}/${c}`,{keepBrowserHistory:!1}),r.set({navigationPath:[]})}else{if(c&&n.navigationPath.length>1)return this.showPageNotFoundError(r,ee.trimTrailingSlash(n.matchedPath)+"/"+c,s,!0),!0;const g=await Mt.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),"/"),h=await pe.getDefaultChildNode(g);this.showPageNotFoundError(r,h,s,!1,o)}return!0}return n.isExistingRoute?!1:(this.showPageNotFoundError(r,n.matchedPath,s,!0),!0)}async handleRouteChange(e,t,n,l,r,s=!1){if(e.external){this.navigateToExternalLink({url:e.url,sameWindow:!e.openInNewTab});return}if(this.setFeatureToggle(e),!this.shouldSkipRoutingForUrlPatterns()){if(window.Luigi.preventLoadingModalData){window.Luigi.preventLoadingModalData=!1;return}try{if(t.shouldShowUnsavedChangesModal()){await this.handleUnsavedChangesModal(e,t,n,l);return}await this.shouldShowModalPathInUrl();const o=t.get();this.checkInvalidateCache(o,e);const c=e&&e.length?ee.getPathWithoutHash(e):"",{nodeObject:g,pathData:h}=await Mt.extractDataFromPath(e),_=g.viewUrl||"";if(await this.handleViewUrlMisconfigured(g,_,o,c,t)||await this.handlePageNotFound(g,_,h,e,t,c,l))return;const p=re.getConfigBooleanValue("settings.hideNavigation"),m=pe.parseParams(c.split("?")[1]),v=pe.getNodeParams(m),k=pe.findViewGroup(g),y=decodeURIComponent(c.split("?")[1]||""),C=h.navigationPath&&h.navigationPath.length>0?h.navigationPath[h.navigationPath.length-1]:null;let T=!1,N=C;for(;N;){if(N.tabNav===!0){T=!0;break}else if(N.tabNav===!1){T=!1;break}else if(ee.isObject(N.tabNav))if("hideTabNavAutomatically"in N.tabNav&&N.children)if(N.tabNav.hideTabNavAutomatically===!0&&N.children.length===1){T=!1;break}else{T=!0;break}else console.warn("tabNav:{hideTabNavAutomatically:true|false} is not configured correctly.");N=N.parent}let D=C,I=g.hideSideNav;if(I===void 0)for(;D;){if(D.tabNav&&D.hideSideNav===!0){I=!0;break}if(D.hideSideNav===!1){I=!1;break}D=D.parent}const L=pe.substituteDynamicParamsInObject(Object.assign({},h.context,C.context),h.pathParams);h.navigationPath._context=L;const M={hideNav:p,viewUrl:_,nodeParams:v,viewGroup:k,urlParamsRaw:y,currentNode:C,navigationPath:h.navigationPath,context:L,pathParams:h.pathParams,hideSideNav:I||!1,isolateView:g.isolateView||!1,tabNav:T};t.set(Object.assign({},M,{previousNodeValues:o?{viewUrl:o.viewUrl,isolateView:o.isolateView,viewGroup:o.viewGroup}:{}}));let F=document.getElementsByClassName("iframeContainer")[0];if(F&&(T?F.classList.add("iframeContainerTabNav"):F.classList.contains("iframeContainerTabNav")&&F.classList.remove("iframeContainerTabNav")),g.compound)Qn.switchActiveIframe(n,void 0,!1),F&&F.classList.add("lui-webComponent"),this.navigateWebComponentCompound(t,g);else if(g.webcomponent)Qn.switchActiveIframe(n,void 0,!1),F&&F.classList.add("lui-webComponent"),this.navigateWebComponent(t,g);else if(F&&F.classList.remove("lui-webComponent"),!s)if(!r)await Qn.navigateIframe(l,t,n);else{const O=t.get(),j=await t.prepareInternalData(l);Ie.sendMessageToIframe(l.iframe,{msg:"luigi.navigate",viewUrl:_,context:JSON.stringify(O.context),nodeParams:JSON.stringify(O.nodeParams),pathParams:JSON.stringify(O.pathParams),searchParams:JSON.stringify(pe.prepareSearchParamsForClient(l.iframe.luigi.currentNode)),internal:JSON.stringify(j),withoutSync:!0})}Mt.onNodeChange(o.currentNode,C)}catch(o){console.info("Could not handle route change",o)}}}async handleBookmarkableModalPath(){const e=pe.getModalPathFromPath();if(e){const t=pe.getModalParamsFromPath(),{nodeObject:n}=await Mt.extractDataFromPath(e);C_.openAsModal(e,n.openNodeInModal||t)}}checkInvalidateCache(e,t){let n=t.split("/");if(e.navigationPath&&e.navigationPath.length>0){let l=e.navigationPath.slice(1),r=!0;for(let s=0;s<l.length;s++){let o=n.length>s?n[s]:void 0,c=l[s];if(o!==c.pathSegment||!r)if(pe.isDynamicNode(c)){if(!r||o!==pe.getDynamicNodeValue(c,e.pathParams)){Vn.deleteNodesRecursively(c);break}}else r=!1}}else Vn.deleteCache()}handleRouteClick(e,t){const n=pe.getRouteLink(e,t.get().pathParams);if(e.externalLink&&e.externalLink.url)this.navigateToExternalLink(n,e,t.get().pathParams);else if(e.link)this.navigateTo(n);else if(ee.trimLeadingSlash(this.getWindowPath())===ee.trimLeadingSlash(n)){const r=Ie.getIframeContainer(),s=Qn.getActiveIframe(r);s&&s.vg&&Qn.canCache(s.vg)?(Qn.switchActiveIframe(Ie.getIframeContainer(),void 0,!1),setTimeout(()=>{Qn.switchActiveIframe(Ie.getIframeContainer(),s,!1),window.postMessage({msg:"refreshRoute"},"*")})):(s&&r.removeChild(s),window.postMessage({msg:"refreshRoute"},"*"))}else this.navigateTo(n)}async showPageNotFoundError(e,t,n,l=!1,r={}){const s=pe.getPageNotFoundRedirectResult(n,l),o=s.path;if(o){s.keepURL?this.handleRouteChange(o,e,Ie.getIframeContainer(),r):this.navigateTo(o);return}pe.showRouteNotFoundAlert(e,n,l),this.navigateTo(ee.addLeadingSlash(t))}navigateToLink(e){e.externalLink&&e.externalLink.url?this.navigateToExternalLink(e.externalLink):this.navigateTo(e.link)}navigateToExternalLink(e,t,n){const l={...t2.externalLink,...e};t&&(l.url=pe.calculateNodeHref(t,n)),window.open(l.url,l.sameWindow?"_self":"_blank").focus()}navigateWebComponent(e,t){const n=this.removeLastChildFromWCContainer();if(!n)return;const l=e.get();oa.renderWebComponent(l.viewUrl,n,l.context,t)}navigateWebComponentCompound(e,t){const n=this.removeLastChildFromWCContainer();if(!n)return;const l=e.get(),{compound:r}=t;r&&r.children&&(r.children=r.children.filter(s=>Te.checkVisibleForFeatureToggles(s))),oa.renderWebComponentCompound(t,n,l.context)}removeLastChildFromWCContainer(){const e=document.querySelector(".wcContainer");if(!!e){for(;e.lastChild;)e.lastChild.remove();return e}}updateModalDataInUrl(e,t,n){let l=pe.getHashQueryParamSeparator();const r=pe.getQueryParams(),s=pe.getModalViewParamName();r[s]=e,t&&Object.keys(t).length&&(r[`${s}Params`]=JSON.stringify(t));const o=new URL(location.href);if(re.getConfigBooleanValue("routing.useHashRouting")){const g=location.hash.indexOf(l);g!==-1&&(o.hash=o.hash.slice(0,g)),o.hash=`${o.hash}${l}${pe.encodeParams(r)}`}else o.search=`?${pe.encodeParams(r)}`;n?history.pushState(window.state,"",o.href):history.replaceState(window.state,"",o.href)}appendModalDataToUrl(e,t){let n=pe.getHashQueryParamSeparator();const l=pe.getQueryParams(),r=pe.getModalViewParamName(),s=l[r],o=new URL(location.href),c=re.getConfigBooleanValue("routing.useHashRouting");let g=history.state,h,_;if(c){let[p,m]=o.hash.split("?");h=p,_=pe.getURLWithoutModalData(m,r),_&&(h+="?"+_)}else h=o.pathname,_=pe.getURLWithoutModalData(o.search,r),_&&(h+="?"+pe.getURLWithoutModalData(o.search,r));if(g=pe.handleHistoryState(g,h),s!==e){if(l[r]=e,t&&Object.keys(t).length&&(l[`${r}Params`]=JSON.stringify(t)),c){const p=location.hash.indexOf(n);p!==-1&&(o.hash=o.hash.slice(0,p)),o.hash=`${o.hash}${n}${pe.encodeParams(l)}`}else o.search=`?${pe.encodeParams(l)}`;history.pushState(g,"",o.href)}else{const p=new URL(o);if(c){let m=p.hash.split("?")[0];p.hash=m,_&&(p.hash+="?"+_)}else p.search=_;history.replaceState({},"",p.href),history.pushState(g,"",o.href)}}removeModalDataFromUrl(e){const t=pe.getQueryParams(),n=pe.getModalViewParamName();let l=new URL(location.href);if(re.getConfigBooleanValue("routing.useHashRouting")){let s={};t[n]&&(s[n]=t[n]),t[`${n}Params`]&&(s[`${n}Params`]=t[`${n}Params`]);let o=pe.encodeParams(s);l.hash.includes(`?${o}`)?l.hash=l.hash.replace(`?${o}`,""):l.hash.includes(`&${o}`)&&(l.hash=l.hash.replace(`&${o}`,""))}else{let s=new URLSearchParams(l.search.slice(1));s.delete(n),s.delete(`${n}Params`);let o="";Array.from(s.keys()).forEach(c=>{o+=(o===""?"?":"&")+c+"="+s.get(c)}),l.search=o}if(history.state&&history.state.modalHistoryLength>=0&&e){history.state.modalHistoryLength;const s=history.state.pathBeforeHistory;let o=!1;if(window.addEventListener("popstate",c=>{o?(history.replaceState({},"",s),history.pushState({},"",s),history.back()):(history.pushState({},"",s),history.back())},{once:!0}),history.state.historygap===history.length-history.state.modalHistoryLength)history.go(-history.state.modalHistoryLength);else if(history.state.modalHistoryLength>history.length){const c=history.length-1;o=!0,history.go(-c),window.Luigi.preventLoadingModalData=!0}else{const c=history.state.modalHistoryLength;history.go(-c)}}else history.pushState({},"",l.href)}}const it=new r2;class s2{constructor(){this.splitViewValues,this.internalValues={innerHeight:null,rightContentHeight:null,thresholdTop:null,thresholdBottom:null,m_pos_prev:null}}getContainer(){return document.getElementById("splitViewContainer")}getDragger(){return document.getElementById("splitViewDragger")}getDraggerButton(){return document.querySelector("#splitViewDragger>.lui-collapse-btn")}getCollapsedDraggerButton(){return document.querySelector("#splitViewDraggerCollapsed>.lui-collapse-btn")}getDraggerBackdrop(){return document.getElementById("splitViewDraggerBackdrop")}getDefaultData(){return{mfSplitView:{displayed:!1,settings:{}}}}setIframe(e,t,n){e&&(e=pe.substituteViewUrl(e,t));const l=Ie.createIframe(e,void 0,n.get().lastNode,"split-view",t);return document.querySelector(".iframeSplitViewCnt").appendChild(l),l}async prepareSplitViewData(e,t){const n=t&&t.length?ee.getPathWithoutHash(t):"",l=await Mt.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),t),r=pe.parseParams(n.split("?")[1]),s=pe.getNodeParams(r),o=pe.getLastNodeObject(l),c=e.get().splitViewSettings;c.title||(c.title=o.label);const g=c.collapsed||!1;e.set({splitViewSettings:c,lastNode:o,pathData:l,nodeParams:s,collapsed:g,isDataPrepared:!0})}createAndSetView(e){const{nodeParams:t,lastNode:n,pathData:l}=e.get();if(n.webcomponent){oa.renderWebComponent(n.viewUrl,document.querySelector(".iframeSplitViewCnt"),l.context,n);const r={splitViewWC:document.querySelector(".iframeSplitViewCnt"),splitViewWCData:{...l,nodeParams:t}};e.set(r),e.dispatch("wcCreated",{...r,collapsed:!1});const s=document.querySelector(".wcContainer");if(s&&s.childElementCount){const o=document.getElementsByClassName("iframeContainer")[0];o&&o.classList.add("lui-webComponent")}}else{const s={splitViewIframe:this.setIframe(n.viewUrl,{context:l.context,pathParams:l.pathParams,nodeParams:t},e),splitViewIframeData:{...l,nodeParams:t}};e.set(s),e.dispatch("iframeCreated",{...s,collapsed:!1})}this.fixIOSscroll()}fixIOSscroll(){if(!(!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)))return;const t=document.querySelector(".iframeSplitViewCnt iframe");t&&t.addEventListener("load",()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="hidden",setTimeout(()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="auto"})})}calculateInitialValues(e,t){if(t){const n=e||40,l=parseInt(ee.computePxFromPercent(t,n)),r=e?100-e:60,s=parseInt(ee.computePxFromPercent(t,r));return{percent:n,bottom:l,top:s}}}calculateAndSetSplitViewValues(e,t){const n=parseInt(ee.computePxFromPercent(t.rightContentHeight,100-e))+Mn.getShellbar().clientHeight;this.splitViewValues=this.enforceTresholds(n,t.innerHeight-n,t)}enforceTresholds(e,t){const n=this.internalValues;return e<=n.thresholdTop?(e=n.thresholdTop,t=n.innerHeight-n.thresholdTop):t<=n.thresholdBottom&&(e=n.innerHeight-n.thresholdBottom,t=n.thresholdBottom),{top:e,bottom:t,percent:ee.computePercentFromPx(n.rightContentHeight,t)}}open(e,t,n){const l={displayed:!0,collapsed:n.collapsed===!0,nodepath:t,settings:n};this.splitViewValues=this.calculateInitialValues(l.settings&&l.settings.size,ee.getContentAreaHeight()),this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:l.collapsed}),e.set({mfSplitView:l,splitViewValues:this.splitViewValues})}close(e){e.get().splitViewIframe||e.get().splitViewWC?e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{e.get().mfSplitView&&(e.get().mfSplitView.displayed=!1,e.get().mfSplitView.collapsed=!1,e.set({mfSplitView:e.get().mfSplitView})),e.dispatch("statusChanged",{displayed:!1}),Ie.getIframeContainer().style.marginBottom="",at.sendMessageToClients("close.ok")}):e.get().mfSplitView.displayed&&(e.get().mfSplitView.displayed=!1,e.set({mfSplitView:e.get().mfSplitView}))}async expand(e){this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!1}),this.sendMessageToClients("expand.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!1}),this.getContainer().style.top=`${this.splitViewValues.top}px`,Ie.getIframeContainer().style.marginBottom=`${this.splitViewValues.bottom}px`,setTimeout(()=>{this.getDragger().style.top=`${this.splitViewValues.top}px`})}collapse(e){(e.get().splitViewIframe||e.get().splitViewWC)&&e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!0}),this.sendMessageToClients("collapse.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!0}),this.getContainer().style.top="",Ie.getIframeContainer().style.marginBottom=""})}sendMessageToClients(e,t){Ie.sendMessageToVisibleIframes({msg:`luigi.navigation.splitview.${e}`,data:t})}}const at=new s2;class a2{luigiAfterInit(){re.getConfigBooleanValue("settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{Xr.hideAppLoadingIndicator()},0)}}const o2=new a2;class u2{constructor(){this._defaultStorage="localStorage",this._authKey="luigi.auth",this._newlyAuthorizedKey="luigi.newlyAuthorized",this._invalidStorageMsg="Configuration Error: Invalid auth.storage value defined. Must be one of localStorage, sessionStorage or none."}getStorageKey(){return this._authKey}getStorageType(){return this._storageType||(this._storageType=re.getConfigValue("auth.storage")||this._defaultStorage),this._storageType}getAuthData(){return this._getStore(this.getStorageKey())}setAuthData(e){this._setStore(this.getStorageKey(),e)}removeAuthData(){this._setStore(this.getStorageKey(),void 0)}isNewlyAuthorized(){return!!this._getStore(this._newlyAuthorizedKey)}setNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,!0)}removeNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,void 0)}_setStore(e,t){switch(this.getStorageType()){case"localStorage":case"sessionStorage":t!==void 0?window[this.getStorageType()].setItem(e,JSON.stringify(t)):window[this.getStorageType()].removeItem(e);break;case"none":this[e]=t;break;default:console.error(this._invalidStorageMsg)}}_getStore(e){try{switch(this.getStorageType()){case"localStorage":case"sessionStorage":return JSON.parse(window[this.getStorageType()].getItem(e));case"none":return this[e];default:console.error(this._invalidStorageMsg)}}catch{console.warn("Error parsing authorization data. Auto-logout might not work!")}}}const ii=new u2;class f2{constructor(){return this._userInfoStore=or({}),this._loggedInStore=or(!1),this}setUserInfo(e){this._userInfoStore.set(e)}setLoggedIn(e){this._loggedInStore.set(e)}getUserInfoStore(){return this._userInfoStore}getLoggedInStore(){return this._loggedInStore}setProfileLogoutFn(e){this._profileLogoutFn=e}async init(){const e=re.getConfigValue("auth.use");if(!e)return Promise.resolve(!0);const t=re.getConfigValue(`auth.${e}`),n=al.parseUrlAuthErrors()||{};if(!!await al.handleUrlAuthErrors(t,n.error,n.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(e,t),ee.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(r=>(this.idpProviderInstance=r,this.checkAuth(t))).catch(r=>{const s=`Error: ${r.message||r}`;console.error(s,r.message&&r),re.setErrorMessage(s)}):this.checkAuth(t)}async checkAuth(e){const t=al.getStoredAuthData();if(!t||!al.isLoggedIn()){if(re.getConfigValue("auth.disableAutoLogin"))return;let l=!0;return t&&(l=await gi.handleAuthEvent("onAuthExpired",e)),l?this.startAuthorization():void 0}this.idpProviderInstance.settings&&ee.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,t).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):ee.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(e).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(rl(this._userInfoStore))),ee.isFunction(re.getConfigValue("auth.events.onAuthSuccessful"))&&ii.isNewlyAuthorized()&&await gi.handleAuthEvent("onAuthSuccessful",e,t),ii.removeNewlyAuthorized(),ee.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),ee.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(e=>{ii.setNewlyAuthorized(),e&&console.error(e)})}logout(){const e=al.getStoredAuthData(),t=async l=>{await gi.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),ii.removeAuthData()},n=re.getConfigValue(`auth.${re.getConfigValue("auth.use")}.logoutFn`);ee.isFunction(n)?n(this.idpProviderInstance.settings,e,t):ee.isFunction(this.idpProviderInstance.logout)?this.idpProviderInstance.logout(e,t):this._profileLogoutFn?this._profileLogoutFn(e,t):t(this.idpProviderInstance.settings.logoutUrl)}IdpProviderException(e){return{message:e,name:"IdpProviderException"}}async getIdpProviderInstance(e,t){const n=ee.getConfigValueFromObject(t,"idpProvider");if(n){const r=await new n(t);return["login"].forEach(s=>{if(!ee.isFunction(r[s]))throw this.IdpProviderException(`${s} function does not exist in custom IDP Provider ${e}`)}),r}if(ee.isFunction(re.getConfigValue("auth.events.onAuthConfigError")))await gi.handleAuthEvent("onAuthConfigError",{idpProviderName:e,type:"IdpProviderException"});else throw this.IdpProviderException(`IDP Provider ${e} does not exist.`)}unload(){this.idpProviderInstance&&ee.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}}const en=new f2;class c2{constructor(){this.decorators=[]}hasDecorators(){return this.decorators.length>0}add(e){this.decorators=this.decorators.filter(t=>t.uid!==e.uid).concat(e)}applyDecorators(e,t){if(!e)return e;const n=new URL(ee.prependOrigin(e)),l=this.decorators.filter(r=>r.type==="queryString");for(let r=0;r<l.length;r++){const s=l[r];n.searchParams.has(s.key)&&n.searchParams.delete(s.key);const o=s.valueFn();n.searchParams.append(s.key,o)}return t&&(n.search=decodeURIComponent(n.search)),n.href}}const Zr=new c2;class d2{getStoredAuthData(){return ii.getAuthData()}isLoggedIn(){const e=this.getStoredAuthData();return e&&(()=>e.accessTokenExpirationDate>Number(new Date))()}parseUrlAuthErrors(){const e=ee.getUrlParameter("error"),t=ee.getUrlParameter("errorDescription");if(e)return{error:e,errorDescription:t}}async handleUrlAuthErrors(e,t,n){return t?await gi.handleAuthEvent("onAuthError",e,{error:t,errorDescription:n},e.logoutUrl+"?post_logout_redirect_uri="+e.post_logout_redirect_uri+"&error="+t+"&errorDescription="+n):!0}}const al=new d2;class h2{sanitizeHtml(e=""){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/javascript:/g,"")}restoreSanitizedBrs(e=""){return e.replace(/<br\/>/g,"<br>").replace(/<br \/>/g,"<br>").replace(/<br>/g,"<br>").replace(/<br >/g,"<br>")}restoreSanitizedElements(e=""){let t=e;const n=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let l=0;l<n.length;l++){const r=new RegExp(`<${n[l]}/>`,"g"),s=new RegExp(`<${n[l]} />`,"g"),o=new RegExp(`<${n[l]}>`,"g"),c=new RegExp(`<${n[l]} >`,"g"),g=new RegExp(`</${n[l]}[/]>`,"g"),h=new RegExp(`</${n[l]} [/]>`,"g"),_=new RegExp(`<[/]${n[l]}>`,"g"),p=new RegExp(`<[/]${n[l]} >`,"g");t=t.replace(r,`<${n[l]}>`).replace(s,`<${n[l]}>`).replace(o,`<${n[l]}>`).replace(c,`<${n[l]}>`).replace(g,`</${n[l]}>`).replace(h,`</${n[l]}>`).replace(_,`</${n[l]}>`).replace(p,`</${n[l]}>`)}return t}sanatizeHtmlExceptTextFormatting(e=""){return this.restoreSanitizedElements(this.sanitizeHtml(e))}sanitizeParam(e=""){return String(e).replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}escapeKeyForRegexp(e=""){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}processTextAndLinks(e="",t,n){let r={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(e)),links:[]};return t?Object.entries(t).reduce((s,[o,c])=>{const g=`_luigi_alert_${n}_link_${this.sanitizeParam(o)}`,h=this.restoreSanitizedBrs(this.sanitizeHtml(c.text)),_=`<a id="${g}">${h}</a>`,p=this.escapeKeyForRegexp(o),m=new RegExp(`({${p}})`,"g");return{sanitizedText:s.sanitizedText.replace(m,_),links:s.links.concat({elemId:g,url:c.url?encodeURI(this.sanitizeHtml(c.url)):void 0,dismissKey:c.dismissKey?encodeURI(this.sanitizeHtml(c.dismissKey)):void 0})}},r):r}}const fr=new h2;var Yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cr={exports:{}};/**
|
|
29
|
+
`,t}createCompoundItemContainer(e){const t=e||{},n=document.createElement("div");return n.setAttribute("style",`grid-row: ${t.row||"auto"}; grid-column: ${t.column||"auto"}`),n}}const P_=i=>{const e=i.use;if(e){if(e==="grid")return new i2(i);if(e.createCompoundContainer||e.createCompoundItemContainer||e.attachCompoundItem)return new n2(i)}else return new ur(i);return new ur(i)},Gf=(i,e,t,n)=>{e.eventListeners&&e.eventListeners.forEach(l=>{const r=l.source+"."+l.name,s=i[r],o={wcElementId:t,wcElement:n,action:l.action,converter:l.dataConverter};s?s.push(o):i[r]=[o]})};class l2{constructor(){}dynamicImport(e){return import(/* webpackIgnore: true */ e)}attachWC(e,t,n,l,r,s){if(n&&n.contains(t)){const o=document.createElement(e);s&&o.setAttribute("nodeId",s),this.initWC(o,e,n,r,l,s),n.replaceChild(o,t)}}initWC(e,t,n,l,r,s){const o={linkManager:window.Luigi.navigation,uxManager:window.Luigi.ux,getCurrentLocale:()=>window.Luigi.i18n().getCurrentLocale(),publishEvent:c=>{n.eventBus&&n.eventBus.onPublishEvent(c,s,t)},getActiveFeatureToggleList:()=>window.Luigi.featureToggles().getActiveFeatureToggleList(),getActiveFeatureToggles:()=>window.Luigi.featureToggles().getActiveFeatureToggleList()};if(e.__postProcess){const c=new URL(document.baseURI).origin===new URL(l,document.baseURI).origin?new URL(l,document.baseURI):new URL("./",l);e.__postProcess(r,o,c.origin+c.pathname)}else e.context=r,e.LuigiClient=o}generateWCId(e){let t="";for(let n=0;n<e.length;n++)t+=e.charCodeAt(n).toString(16);return"luigi-wc-"+t}registerWCFromUrl(e,t){const n=pe.getI18nViewUrl(e);return new Promise((l,r)=>{this.checkWCUrl(n)?this.dynamicImport(n).then(s=>{try{if(!window.customElements.get(t)){let o=s.default;if(!HTMLElement.isPrototypeOf(o)){let c=Object.keys(s);for(let g=0;g<c.length&&(o=s[c[g]],!HTMLElement.isPrototypeOf(o));g++);}window.customElements.define(t,o)}l()}catch(o){r(o)}}).catch(s=>r(s)):(console.warn(`View URL '${n}' not allowed to be included`),r(`View URL '${n}' not allowed`))})}includeSelfRegisteredWCFromUrl(e,t,n){if(this.checkWCUrl(t)){window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(r,s)=>{const o=this.generateWCId(r);window.customElements.get(o)||window.customElements.define(o,s)});let l=document.createElement("script");l.setAttribute("src",t),e.webcomponent.type==="module"&&l.setAttribute("type","module"),l.setAttribute("defer",!0),l.addEventListener("load",()=>{n()}),document.body.appendChild(l)}else console.warn(`View URL '${t}' not allowed to be included`)}checkWCUrl(e){if(e.indexOf("://")>0||e.trim().indexOf("//")===0){if(new URL(e).host===window.location.host)return!0;const n=re.getConfigValue("navigation.validWebcomponentUrls");if(n&&n.length>0)for(let l of n)try{if(new RegExp(l).test(e))return!0}catch(r){console.error(r)}return!1}return!0}renderWebComponent(e,t,n,l,r){const s=pe.substituteViewUrl(e,{context:n}),o=l.webcomponent&&l.webcomponent.tagName?l.webcomponent.tagName:this.generateWCId(s),c=document.createElement("div");t.appendChild(c),t._luigi_node=l,window.customElements.get(o)?this.attachWC(o,c,t,n,s,r):window.luigiWCFn?window.luigiWCFn(s,o,c,()=>{this.attachWC(o,c,t,n,s,r)}):l.webcomponent&&l.webcomponent.selfRegistered?this.includeSelfRegisteredWCFromUrl(l,s,()=>{this.attachWC(o,c,t,n,s,r)}):this.registerWCFromUrl(s,o).then(()=>{this.attachWC(o,c,t,n,s,r)})}createCompoundContainerAsync(e,t){return new Promise((n,l)=>{if(e.viewUrl)try{const r=this.generateWCId(e.viewUrl);this.registerWCFromUrl(e.viewUrl,r).then(()=>{const s=document.createElement(r);this.initWC(s,r,s,e.viewUrl,t,"_root"),n(s)})}catch(r){l(r)}else n(e.createCompoundContainer())})}renderWebComponentCompound(e,t,n){let l;return e.webcomponent&&e.viewUrl?(l=new ur,l.viewUrl=pe.substituteViewUrl(e.viewUrl,{context:n}),l.createCompoundItemContainer=r=>{var s=document.createElement("div");return r&&r.slot&&s.setAttribute("slot",r.slot),s}):e.compound.renderer&&(l=P_(e.compound.renderer)),l=l||new ur,new Promise(r=>{this.createCompoundContainerAsync(l,n).then(s=>{const o={};s.eventBus={listeners:o,onPublishEvent:(c,g,h)=>{const _=o[g+"."+c.type]||[];_.push(...o["*."+c.type]||[]),_.forEach(p=>{const m=p.wcElement||s.querySelector("[nodeId="+p.wcElementId+"]");m?m.dispatchEvent(new CustomEvent(p.action,{detail:p.converter?p.converter(c.detail):c.detail})):console.debug("Could not find event target",p)})}},e.compound.children.forEach((c,g)=>{const h={...n,...c.context},_=l.createCompoundItemContainer(c.layoutConfig);_.eventBus=s.eventBus,l.attachCompoundItem(s,_);const p=c.id||"gen_"+g;this.renderWebComponent(c.viewUrl,_,h,c,p),Gf(o,c,p)}),t.appendChild(s),Gf(o,e.compound,"_root",s),r(s)})})}}const oa=new l2;class r2{getNodePath(e,t){return e?pe.buildRoute(e,e.pathSegment?"/"+e.pathSegment:"",t):""}normalizePath(e){const t=e.indexOf("/")===0;let n=new URL(e,"http://valid.url");const l=n.pathname+n.search+n.hash;return!t&&l.indexOf("/")===0?l.substr(1):l}concatenatePath(e,t){let n=ee.getPathWithoutHash(e);return n?(t&&(n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")||(n+="/"),n+=t),n):t}async navigateTo(e,t={}){const{nodeObject:n}=await Mt.extractDataFromPath(e),{keepBrowserHistory:l=!0,navSync:r=!0,preventContextUpdate:s=!1}=t;if(await Mt.shouldPreventNavigation(n)||ee.trimLeadingSlash(this.getWindowPath())===ee.trimLeadingSlash(e))return;const c=re.getConfigValue("routing.useHashRouting"),g=re.getConfigValue("routing.preserveQueryParams");let h=new URL(location.href);e=g?pe.composeSearchParamsToRoute(e):e,c&&(h.hash=e);const _=l?"pushState":"replaceState",p=re.getConfigValue("routing.disableBrowserHistory")?"replaceState":_;window.history[p]({path:c?h.hash:e},"",c?h.hash:e);let m;if(ee.isIE())m=new Event("popstate",{bubbles:!0,cancelable:!0});else{const v={detail:{preventContextUpdate:s,withoutSync:!r}};m=new CustomEvent("popstate",v)}window.dispatchEvent(m)}getWindowPath(){return re.getConfigValue("routing.useHashRouting")?ee.getPathWithoutHash(window.location.hash):window.location.pathname.concat(window.location.search)}buildFromRelativePath(e){let t=this.getWindowPath();if(e.parent&&e.parent.pathSegment){const n=ee.trimLeadingSlash(this.getNodePath(e.parent)).split("/"),l=ee.trimLeadingSlash(t).split("/");l.length>n.length&&(t=l.slice(0,n.length).join("/"))}return this.normalizePath(ee.addLeadingSlash(this.concatenatePath(t,e.link)))}getHashPath(e=window.location.hash){if(e&&/\?intent=/i.test(e)){const t=e.replace("#/#","#"),n=pe.getIntentPath(t.split("#")[1]);if(n)return n}return e.split("#/")[1]}getModifiedPathname(){if(window.location.hash&&/\?intent=/i.test(window.location.hash)){const n=window.location.hash.replace("#/#","").replace("#",""),l=pe.getIntentPath(n);return l||"/"}const e=window.location.search?window.location.search:"";return(window.history.state&&window.history.state.path||window.location.pathname+e).split("/").slice(1).join("/")}getCurrentPath(){if(/\?intent=/i.test(window.location.hash)){const e=window.location.hash.replace("#/#","").replace("#",""),t=pe.getIntentPath(e);if(t)return Luigi.getConfigValue("routing.replaceIntentRoute")&&history.replaceState(window.state,"",t),t}return re.getConfigValue("routing.useHashRouting")?window.location.hash.replace("#",""):window.location.search?ee.trimLeadingSlash(window.location.pathname)+window.location.search:ee.trimLeadingSlash(window.location.pathname)}setFeatureToggle(e){const t=re.getConfigValue("settings.featureToggles.queryStringParam");t&&typeof e=="string"&&pe.setFeatureToggles(t,e)}shouldSkipRoutingForUrlPatterns(){const e=[/access_token=/,/id_token=/];return(re.getConfigValue("routing.skipRoutingForUrlPatterns")||e).filter(n=>location.href.match(n)).length!==0}handleUnsavedChangesModal(e,t,n,l){const r=window.location.href,s=t.get().unsavedChanges.persistUrl;return s&&history.pushState(window.state,"",s),t.getUnsavedChangesModalPromise().then(()=>{this.resolveUnsavedChanges(e,t,n,l,r)},()=>{}).catch(()=>{})}resolveUnsavedChanges(e,t,n,l,r){e&&(this.handleRouteChange(e,t,n,l),history.replaceState(window.state,"",r))}async shouldShowModalPathInUrl(){re.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath()}async handleViewUrlMisconfigured(e,t,n,l,r){const{children:s,intendToHaveEmptyViewUrl:o,compound:c}=e,g=s&&Array.isArray(s)&&s.length>0||s||!1;if(!c&&t.trim()===""&&!g&&!o){if(console.warn("The intended target route can't be accessed since it has neither a viewUrl nor children. This is most likely a misconfiguration."),!(n&&(n.viewUrl||n.currentNode&&n.currentNode.compound))){const h=await Mt.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),"/"),_=await pe.getDefaultChildNode(h);this.showPageNotFoundError(r,_,l),this.navigateTo(_)}return!0}return!1}async handlePageNotFound(e,t,n,l,r,s,o){if(!t&&!e.compound){const c=await pe.getDefaultChildNode(n,async(g,h)=>await Mt.getChildren(g,h));if(n.isExistingRoute){const g=ee.getTrimmedUrl(l);this.navigateTo(`${g?`/${g}`:""}/${c}`,{keepBrowserHistory:!1}),r.set({navigationPath:[]})}else{if(c&&n.navigationPath.length>1)return this.showPageNotFoundError(r,ee.trimTrailingSlash(n.matchedPath)+"/"+c,s,!0),!0;const g=await Mt.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),"/"),h=await pe.getDefaultChildNode(g);this.showPageNotFoundError(r,h,s,!1,o)}return!0}return n.isExistingRoute?!1:(this.showPageNotFoundError(r,n.matchedPath,s,!0),!0)}async handleRouteChange(e,t,n,l,r,s=!1){if(e.external){this.navigateToExternalLink({url:e.url,sameWindow:!e.openInNewTab});return}if(this.setFeatureToggle(e),!this.shouldSkipRoutingForUrlPatterns()){if(window.Luigi.preventLoadingModalData){window.Luigi.preventLoadingModalData=!1;return}try{if(t.shouldShowUnsavedChangesModal()){await this.handleUnsavedChangesModal(e,t,n,l);return}await this.shouldShowModalPathInUrl();const o=t.get();this.checkInvalidateCache(o,e);const c=e&&e.length?ee.getPathWithoutHash(e):"",{nodeObject:g,pathData:h}=await Mt.extractDataFromPath(e),_=g.viewUrl||"";if(await this.handleViewUrlMisconfigured(g,_,o,c,t)||await this.handlePageNotFound(g,_,h,e,t,c,l))return;const p=re.getConfigBooleanValue("settings.hideNavigation"),m=pe.parseParams(c.split("?")[1]),v=pe.getNodeParams(m),k=pe.findViewGroup(g),y=decodeURIComponent(c.split("?")[1]||""),C=h.navigationPath&&h.navigationPath.length>0?h.navigationPath[h.navigationPath.length-1]:null;let T=!1,N=C;for(;N;){if(N.tabNav===!0){T=!0;break}else if(N.tabNav===!1){T=!1;break}else if(ee.isObject(N.tabNav))if("hideTabNavAutomatically"in N.tabNav&&N.children)if(N.tabNav.hideTabNavAutomatically===!0&&N.children.length===1){T=!1;break}else{T=!0;break}else console.warn("tabNav:{hideTabNavAutomatically:true|false} is not configured correctly.");N=N.parent}let D=C,I=g.hideSideNav;if(I===void 0)for(;D;){if(D.tabNav&&D.hideSideNav===!0){I=!0;break}if(D.hideSideNav===!1){I=!1;break}D=D.parent}const L=pe.substituteDynamicParamsInObject(Object.assign({},h.context,C.context),h.pathParams);h.navigationPath._context=L;const M={hideNav:p,viewUrl:_,nodeParams:v,viewGroup:k,urlParamsRaw:y,currentNode:C,navigationPath:h.navigationPath,context:L,pathParams:h.pathParams,hideSideNav:I||!1,isolateView:g.isolateView||!1,tabNav:T};t.set(Object.assign({},M,{previousNodeValues:o?{viewUrl:o.viewUrl,isolateView:o.isolateView,viewGroup:o.viewGroup}:{}}));let F=document.getElementsByClassName("iframeContainer")[0];if(F&&(T?F.classList.add("iframeContainerTabNav"):F.classList.contains("iframeContainerTabNav")&&F.classList.remove("iframeContainerTabNav")),g.compound)Qn.switchActiveIframe(n,void 0,!1),F&&F.classList.add("lui-webComponent"),this.navigateWebComponentCompound(t,g);else if(g.webcomponent)Qn.switchActiveIframe(n,void 0,!1),F&&F.classList.add("lui-webComponent"),this.navigateWebComponent(t,g);else if(F&&F.classList.remove("lui-webComponent"),!s)if(!r)await Qn.navigateIframe(l,t,n);else{const O=t.get(),j=await t.prepareInternalData(l);Ie.sendMessageToIframe(l.iframe,{msg:"luigi.navigate",viewUrl:_,context:JSON.stringify(O.context),nodeParams:JSON.stringify(O.nodeParams),pathParams:JSON.stringify(O.pathParams),searchParams:JSON.stringify(pe.prepareSearchParamsForClient(l.iframe.luigi.currentNode)),internal:JSON.stringify(j),withoutSync:!0})}Mt.onNodeChange(o.currentNode,C)}catch(o){console.info("Could not handle route change",o)}}}async handleBookmarkableModalPath(){const e=pe.getModalPathFromPath();if(e){const t=pe.getModalParamsFromPath(),{nodeObject:n}=await Mt.extractDataFromPath(e);C_.openAsModal(e,n.openNodeInModal||t)}}checkInvalidateCache(e,t){let n=t.split("/");if(e.navigationPath&&e.navigationPath.length>0){let l=e.navigationPath.slice(1),r=!0;for(let s=0;s<l.length;s++){let o=n.length>s?n[s]:void 0,c=l[s];if(o!==c.pathSegment||!r)if(pe.isDynamicNode(c)){if(!r||o!==pe.getDynamicNodeValue(c,e.pathParams)){Vn.deleteNodesRecursively(c);break}}else r=!1}}else Vn.deleteCache()}handleRouteClick(e,t){const n=pe.getRouteLink(e,t.get().pathParams);if(e.externalLink&&e.externalLink.url)this.navigateToExternalLink(n,e,t.get().pathParams);else if(e.link)this.navigateTo(n);else if(ee.trimLeadingSlash(this.getWindowPath())===ee.trimLeadingSlash(n)){const r=Ie.getIframeContainer(),s=Qn.getActiveIframe(r);s&&s.vg&&Qn.canCache(s.vg)?(Qn.switchActiveIframe(Ie.getIframeContainer(),void 0,!1),setTimeout(()=>{Qn.switchActiveIframe(Ie.getIframeContainer(),s,!1),window.postMessage({msg:"refreshRoute"},"*")})):(s&&r.removeChild(s),window.postMessage({msg:"refreshRoute"},"*"))}else this.navigateTo(n)}async showPageNotFoundError(e,t,n,l=!1,r={}){const s=pe.getPageNotFoundRedirectResult(n,l),o=s.path;if(o){s.keepURL?this.handleRouteChange(o,e,Ie.getIframeContainer(),r):this.navigateTo(o);return}pe.showRouteNotFoundAlert(e,n,l),this.navigateTo(ee.addLeadingSlash(t))}navigateToLink(e){e.externalLink&&e.externalLink.url?this.navigateToExternalLink(e.externalLink):this.navigateTo(e.link)}navigateToExternalLink(e,t,n){const l={...t2.externalLink,...e};t&&(l.url=pe.calculateNodeHref(t,n)),window.open(l.url,l.sameWindow?"_self":"_blank").focus()}navigateWebComponent(e,t){const n=this.removeLastChildFromWCContainer();if(!n)return;const l=e.get();oa.renderWebComponent(l.viewUrl,n,l.context,t)}navigateWebComponentCompound(e,t){const n=this.removeLastChildFromWCContainer();if(!n)return;const l=e.get(),{compound:r}=t;r&&r.children&&(r.children=r.children.filter(s=>Te.checkVisibleForFeatureToggles(s))),oa.renderWebComponentCompound(t,n,l.context)}removeLastChildFromWCContainer(){const e=document.querySelector(".wcContainer");if(!!e){for(;e.lastChild;)e.lastChild.remove();return e}}updateModalDataInUrl(e,t,n){let l=pe.getHashQueryParamSeparator();const r=pe.getQueryParams(),s=pe.getModalViewParamName();r[s]=e,t&&Object.keys(t).length&&(r[`${s}Params`]=JSON.stringify(t));const o=new URL(location.href);if(re.getConfigBooleanValue("routing.useHashRouting")){const g=location.hash.indexOf(l);g!==-1&&(o.hash=o.hash.slice(0,g)),o.hash=`${o.hash}${l}${pe.encodeParams(r)}`}else o.search=`?${pe.encodeParams(r)}`;n?history.pushState(window.state,"",o.href):history.replaceState(window.state,"",o.href)}appendModalDataToUrl(e,t){let n=pe.getHashQueryParamSeparator();const l=pe.getQueryParams(),r=pe.getModalViewParamName(),s=l[r],o=new URL(location.href),c=re.getConfigBooleanValue("routing.useHashRouting");let g=history.state,h,_;if(c){let[p,m]=o.hash.split("?");h=p,_=pe.getURLWithoutModalData(m,r),_&&(h+="?"+_)}else h=o.pathname,_=pe.getURLWithoutModalData(o.search,r),_&&(h+="?"+pe.getURLWithoutModalData(o.search,r));if(g=pe.handleHistoryState(g,h),s!==e){if(l[r]=e,t&&Object.keys(t).length&&(l[`${r}Params`]=JSON.stringify(t)),c){const p=location.hash.indexOf(n);p!==-1&&(o.hash=o.hash.slice(0,p)),o.hash=`${o.hash}${n}${pe.encodeParams(l)}`}else o.search=`?${pe.encodeParams(l)}`;history.pushState(g,"",o.href)}else{const p=new URL(o);if(c){let m=p.hash.split("?")[0];p.hash=m,_&&(p.hash+="?"+_)}else p.search=_;history.replaceState({},"",p.href),history.pushState(g,"",o.href)}}removeModalDataFromUrl(e){const t=pe.getQueryParams(),n=pe.getModalViewParamName();let l=new URL(location.href);if(re.getConfigBooleanValue("routing.useHashRouting")){let s={};t[n]&&(s[n]=t[n]),t[`${n}Params`]&&(s[`${n}Params`]=t[`${n}Params`]);let o=pe.encodeParams(s);l.hash.includes(`?${o}`)?l.hash=l.hash.replace(`?${o}`,""):l.hash.includes(`&${o}`)&&(l.hash=l.hash.replace(`&${o}`,""))}else{let s=new URLSearchParams(l.search.slice(1));s.delete(n),s.delete(`${n}Params`);let o="";Array.from(s.keys()).forEach(c=>{o+=(o===""?"?":"&")+c+"="+s.get(c)}),l.search=o}if(history.state&&history.state.modalHistoryLength>=0&&e){history.state.modalHistoryLength;const s=history.state.pathBeforeHistory;let o=!1;if(window.addEventListener("popstate",c=>{o?(history.replaceState({},"",s),history.pushState({},"",s),history.back()):(history.pushState({},"",s),history.back())},{once:!0}),history.state.historygap===history.length-history.state.modalHistoryLength)history.go(-history.state.modalHistoryLength);else if(history.state.modalHistoryLength>history.length){const c=history.length-1;o=!0,history.go(-c),window.Luigi.preventLoadingModalData=!0}else{const c=history.state.modalHistoryLength;history.go(-c)}}else history.pushState({},"",l.href)}}const it=new r2;class s2{constructor(){this.splitViewValues,this.internalValues={innerHeight:null,rightContentHeight:null,thresholdTop:null,thresholdBottom:null,m_pos_prev:null}}getContainer(){return document.getElementById("splitViewContainer")}getDragger(){return document.getElementById("splitViewDragger")}getDraggerButton(){return document.querySelector("#splitViewDragger>.lui-collapse-btn")}getCollapsedDraggerButton(){return document.querySelector("#splitViewDraggerCollapsed>.lui-collapse-btn")}getDraggerBackdrop(){return document.getElementById("splitViewDraggerBackdrop")}getDefaultData(){return{mfSplitView:{displayed:!1,settings:{}}}}setIframe(e,t,n){e&&(e=pe.substituteViewUrl(e,t));const l=Ie.createIframe(e,void 0,n.get().lastNode,"split-view",t);return document.querySelector(".iframeSplitViewCnt").appendChild(l),l}async prepareSplitViewData(e,t){const n=t&&t.length?ee.getPathWithoutHash(t):"",l=await Mt.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),t),r=pe.parseParams(n.split("?")[1]),s=pe.getNodeParams(r),o=pe.getLastNodeObject(l),c=e.get().splitViewSettings;c.title||(c.title=o.label);const g=c.collapsed||!1;e.set({splitViewSettings:c,lastNode:o,pathData:l,nodeParams:s,collapsed:g,isDataPrepared:!0})}createAndSetView(e){const{nodeParams:t,lastNode:n,pathData:l}=e.get();if(n.webcomponent){oa.renderWebComponent(n.viewUrl,document.querySelector(".iframeSplitViewCnt"),l.context,n);const r={splitViewWC:document.querySelector(".iframeSplitViewCnt"),splitViewWCData:{...l,nodeParams:t}};e.set(r),e.dispatch("wcCreated",{...r,collapsed:!1});const s=document.querySelector(".wcContainer");if(s&&s.childElementCount){const o=document.getElementsByClassName("iframeContainer")[0];o&&o.classList.add("lui-webComponent")}}else{const s={splitViewIframe:this.setIframe(n.viewUrl,{context:l.context,pathParams:l.pathParams,nodeParams:t},e),splitViewIframeData:{...l,nodeParams:t}};e.set(s),e.dispatch("iframeCreated",{...s,collapsed:!1})}this.fixIOSscroll()}fixIOSscroll(){if(!(!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)))return;const t=document.querySelector(".iframeSplitViewCnt iframe");t&&t.addEventListener("load",()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="hidden",setTimeout(()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="auto"})})}calculateInitialValues(e,t){if(t){const n=e||40,l=parseInt(ee.computePxFromPercent(t,n)),r=e?100-e:60,s=parseInt(ee.computePxFromPercent(t,r));return{percent:n,bottom:l,top:s}}}calculateAndSetSplitViewValues(e,t){const n=parseInt(ee.computePxFromPercent(t.rightContentHeight,100-e))+Mn.getShellbar().clientHeight;this.splitViewValues=this.enforceTresholds(n,t.innerHeight-n,t)}enforceTresholds(e,t){const n=this.internalValues;return e<=n.thresholdTop?(e=n.thresholdTop,t=n.innerHeight-n.thresholdTop):t<=n.thresholdBottom&&(e=n.innerHeight-n.thresholdBottom,t=n.thresholdBottom),{top:e,bottom:t,percent:ee.computePercentFromPx(n.rightContentHeight,t)}}open(e,t,n){const l={displayed:!0,collapsed:n.collapsed===!0,nodepath:t,settings:n};this.splitViewValues=this.calculateInitialValues(l.settings&&l.settings.size,ee.getContentAreaHeight()),this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:l.collapsed}),e.set({mfSplitView:l,splitViewValues:this.splitViewValues})}close(e){e.get().splitViewIframe||e.get().splitViewWC?e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{e.get().mfSplitView&&(e.get().mfSplitView.displayed=!1,e.get().mfSplitView.collapsed=!1,e.set({mfSplitView:e.get().mfSplitView})),e.dispatch("statusChanged",{displayed:!1}),Ie.getIframeContainer().style.marginBottom="",at.sendMessageToClients("close.ok")}):e.get().mfSplitView.displayed&&(e.get().mfSplitView.displayed=!1,e.set({mfSplitView:e.get().mfSplitView}))}async expand(e){this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!1}),this.sendMessageToClients("expand.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!1}),this.getContainer().style.top=`${this.splitViewValues.top}px`,Ie.getIframeContainer().style.marginBottom=`${this.splitViewValues.bottom}px`,setTimeout(()=>{this.getDragger().style.top=`${this.splitViewValues.top}px`})}collapse(e){(e.get().splitViewIframe||e.get().splitViewWC)&&e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!0}),this.sendMessageToClients("collapse.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!0}),this.getContainer().style.top="",Ie.getIframeContainer().style.marginBottom=""})}sendMessageToClients(e,t){Ie.sendMessageToVisibleIframes({msg:`luigi.navigation.splitview.${e}`,data:t})}}const at=new s2;class a2{luigiAfterInit(){re.getConfigBooleanValue("settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{Xr.hideAppLoadingIndicator()},0)}}const o2=new a2;class u2{constructor(){this._defaultStorage="localStorage",this._authKey="luigi.auth",this._newlyAuthorizedKey="luigi.newlyAuthorized",this._invalidStorageMsg="Configuration Error: Invalid auth.storage value defined. Must be one of localStorage, sessionStorage or none."}getStorageKey(){return this._authKey}getStorageType(){return this._storageType||(this._storageType=re.getConfigValue("auth.storage")||this._defaultStorage),this._storageType}getAuthData(){return this._getStore(this.getStorageKey())}setAuthData(e){this._setStore(this.getStorageKey(),e)}removeAuthData(){this._setStore(this.getStorageKey(),void 0)}isNewlyAuthorized(){return!!this._getStore(this._newlyAuthorizedKey)}setNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,!0)}removeNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,void 0)}_setStore(e,t){switch(this.getStorageType()){case"localStorage":case"sessionStorage":t!==void 0?window[this.getStorageType()].setItem(e,JSON.stringify(t)):window[this.getStorageType()].removeItem(e);break;case"none":this[e]=t;break;default:console.error(this._invalidStorageMsg)}}_getStore(e){try{switch(this.getStorageType()){case"localStorage":case"sessionStorage":return JSON.parse(window[this.getStorageType()].getItem(e));case"none":return this[e];default:console.error(this._invalidStorageMsg)}}catch{console.warn("Error parsing authorization data. Auto-logout might not work!")}}}const ii=new u2;class f2{constructor(){return this._userInfoStore=or({}),this._loggedInStore=or(!1),this}setUserInfo(e){this._userInfoStore.set(e)}setLoggedIn(e){this._loggedInStore.set(e)}getUserInfoStore(){return this._userInfoStore}getLoggedInStore(){return this._loggedInStore}setProfileLogoutFn(e){this._profileLogoutFn=e}async init(){const e=re.getConfigValue("auth.use");if(!e)return Promise.resolve(!0);const t=re.getConfigValue(`auth.${e}`),n=al.parseUrlAuthErrors()||{};if(!!await al.handleUrlAuthErrors(t,n.error,n.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(e,t),ee.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(r=>(this.idpProviderInstance=r,this.checkAuth(t))).catch(r=>{const s=`Error: ${r.message||r}`;console.error(s,r.message&&r),re.setErrorMessage(s)}):this.checkAuth(t)}async checkAuth(e){const t=al.getStoredAuthData();if(!t||!al.isLoggedIn()){if(re.getConfigValue("auth.disableAutoLogin"))return;let l=!0;return t&&(l=await gi.handleAuthEvent("onAuthExpired",e)),l?this.startAuthorization():void 0}this.idpProviderInstance.settings&&ee.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,t).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):ee.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(e).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(rl(this._userInfoStore))),ee.isFunction(re.getConfigValue("auth.events.onAuthSuccessful"))&&ii.isNewlyAuthorized()&&await gi.handleAuthEvent("onAuthSuccessful",e,t),ii.removeNewlyAuthorized(),ee.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),ee.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(e=>{ii.setNewlyAuthorized(),e&&console.error(e)})}logout(){const e=al.getStoredAuthData(),t=async l=>{await gi.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),ii.removeAuthData()},n=re.getConfigValue(`auth.${re.getConfigValue("auth.use")}.logoutFn`);ee.isFunction(n)?n(this.idpProviderInstance.settings,e,t):ee.isFunction(this.idpProviderInstance.logout)?this.idpProviderInstance.logout(e,t):this._profileLogoutFn?this._profileLogoutFn(e,t):t(this.idpProviderInstance.settings.logoutUrl)}IdpProviderException(e){return{message:e,name:"IdpProviderException"}}async getIdpProviderInstance(e,t){const n=ee.getConfigValueFromObject(t,"idpProvider");if(n){const r=await new n(t);return["login"].forEach(s=>{if(!ee.isFunction(r[s]))throw this.IdpProviderException(`${s} function does not exist in custom IDP Provider ${e}`)}),r}if(ee.isFunction(re.getConfigValue("auth.events.onAuthConfigError")))await gi.handleAuthEvent("onAuthConfigError",{idpProviderName:e,type:"IdpProviderException"});else throw this.IdpProviderException(`IDP Provider ${e} does not exist.`)}unload(){this.idpProviderInstance&&ee.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}}const en=new f2;class c2{constructor(){this.decorators=[]}hasDecorators(){return this.decorators.length>0}add(e){this.decorators=this.decorators.filter(t=>t.uid!==e.uid).concat(e)}applyDecorators(e,t){if(!e)return e;const n=new URL(ee.prependOrigin(e)),l=this.decorators.filter(r=>r.type==="queryString");for(let r=0;r<l.length;r++){const s=l[r];n.searchParams.has(s.key)&&n.searchParams.delete(s.key);const o=s.valueFn();n.searchParams.append(s.key,o)}return t&&(n.search=decodeURIComponent(n.search)),n.href}}const Zr=new c2;class d2{getStoredAuthData(){return ii.getAuthData()}isLoggedIn(){const e=this.getStoredAuthData();return e&&(()=>e.accessTokenExpirationDate>Number(new Date))()}parseUrlAuthErrors(){const e=ee.getUrlParameter("error"),t=ee.getUrlParameter("errorDescription");if(e)return{error:e,errorDescription:t}}async handleUrlAuthErrors(e,t,n){return t?await gi.handleAuthEvent("onAuthError",e,{error:t,errorDescription:n},e.logoutUrl+"?post_logout_redirect_uri="+e.post_logout_redirect_uri+"&error="+t+"&errorDescription="+n):!0}}const al=new d2;class h2{sanitizeHtml(e=""){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/javascript:/g,"")}restoreSanitizedBrs(e=""){return e.replace(/<br\/>/g,"<br>").replace(/<br \/>/g,"<br>").replace(/<br>/g,"<br>").replace(/<br >/g,"<br>")}restoreSanitizedElements(e=""){let t=e;const n=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let l=0;l<n.length;l++){const r=new RegExp(`<${n[l]}/>`,"g"),s=new RegExp(`<${n[l]} />`,"g"),o=new RegExp(`<${n[l]}>`,"g"),c=new RegExp(`<${n[l]} >`,"g"),g=new RegExp(`</${n[l]}[/]>`,"g"),h=new RegExp(`</${n[l]} [/]>`,"g"),_=new RegExp(`<[/]${n[l]}>`,"g"),p=new RegExp(`<[/]${n[l]} >`,"g");t=t.replace(r,`<${n[l]}>`).replace(s,`<${n[l]}>`).replace(o,`<${n[l]}>`).replace(c,`<${n[l]}>`).replace(g,`</${n[l]}>`).replace(h,`</${n[l]}>`).replace(_,`</${n[l]}>`).replace(p,`</${n[l]}>`)}return t}sanatizeHtmlExceptTextFormatting(e=""){return this.restoreSanitizedElements(this.sanitizeHtml(e))}sanitizeParam(e=""){return String(e).replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}escapeKeyForRegexp(e=""){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}processTextAndLinks(e="",t,n){let r={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(e)),links:[]};return t?Object.entries(t).reduce((s,[o,c])=>{const g=`_luigi_alert_${n}_link_${this.sanitizeParam(o)}`,h=this.restoreSanitizedBrs(this.sanitizeHtml(c.text)),_=`<a id="${g}">${h}</a>`,p=this.escapeKeyForRegexp(o),m=new RegExp(`({${p}})`,"g");return{sanitizedText:s.sanitizedText.replace(m,_),links:s.links.concat({elemId:g,url:c.url?encodeURI(this.sanitizeHtml(c.url)):void 0,dismissKey:c.dismissKey?encodeURI(this.sanitizeHtml(c.dismissKey)):void 0})}},r):r}}const fr=new h2;var Yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cr={exports:{}};/**
|
|
30
30
|
* @license
|
|
31
31
|
* Lodash <https://lodash.com/>
|
|
32
32
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -58,7 +58,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
58
58
|
<div class="fd-busy-indicator--circle-1"></div>
|
|
59
59
|
<div class="fd-busy-indicator--circle-2"></div></div>`,f(e,"class","lui-contextswitcher-indicator")},m(t,n){R(t,e,n)},d(t){t&&A(e)}}}function uh(i){let e,t=i[3],n=[];for(let l=0;l<t.length;l+=1)n[l]=fh(ih(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=ye()},m(l,r){for(let s=0;s<n.length;s+=1)n[s].m(l,r);R(l,e,r)},p(l,r){if(r&5054){t=l[3];let s;for(s=0;s<t.length;s+=1){const o=ih(l,t,s);n[s]?n[s].p(o,r):(n[s]=fh(o),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){ct(n,l),l&&A(e)}}}function vS(i){return{c:Ue,m:Ue,p:Ue,d:Ue}}function wS(i){let e,t,n,l,r;function s(h,_){return h[2]?SS:kS}let o=s(i),c=o(i);function g(){return i[16](i[20])}return{c(){e=S("li"),c.c(),n=q(),f(e,"class","fd-menu__item"),f(e,"data-testid",t=i[9](i[20]))},m(h,_){R(h,e,_),c.m(e,null),R(h,n,_),l||(r=ne(e,"click",g),l=!0)},p(h,_){i=h,o===(o=s(i))&&c?c.p(i,_):(c.d(1),c=o(i),c&&(c.c(),c.m(e,null))),_&520&&t!==(t=i[9](i[20]))&&f(e,"data-testid",t)},d(h){h&&A(e),c.d(),h&&A(n),l=!1,r()}}}function kS(i){let e,t,n=i[25]+"",l,r,s,o,c,g;return{c(){e=S("a"),t=S("span"),l=Pe(n),f(t,"class","fd-menu__title"),f(e,"href",r=i[8](i[20])),f(e,"class",s="fd-menu__link "+(i[25]===i[4]?"is-selected":"")),f(e,"title",o=i[25])},m(h,_){R(h,e,_),w(e,t),w(t,l),c||(g=ne(e,"click",i[15]),c=!0)},p(h,_){_&138&&n!==(n=h[25]+"")&&Ne(l,n),_&264&&r!==(r=h[8](h[20]))&&f(e,"href",r),_&154&&s!==(s="fd-menu__link "+(h[25]===h[4]?"is-selected":""))&&f(e,"class",s),_&138&&o!==(o=h[25])&&f(e,"title",o)},d(h){h&&A(e),c=!1,g()}}}function SS(i){let e,t=i[2](i[20],i[25]===i[4])+"",n;return{c(){e=new dr(!1),n=ye(),e.a=n},m(l,r){e.m(t,l,r),R(l,n,r)},p(l,r){r&158&&t!==(t=l[2](l[20],l[25]===l[4])+"")&&e.p(t)},d(l){l&&A(n),l&&e.d()}}}function CS(i){return{c:Ue,m:Ue,p:Ue,d:Ue}}function fh(i){let e,t,n={ctx:i,current:null,token:null,hasCatch:!1,pending:CS,then:wS,catch:vS,value:25};return la(t=i[7](i[20].label,i[1].fallbackLabelResolver,i[20].id),n),{c(){e=ye(),n.block.c()},m(l,r){R(l,e,r),n.block.m(l,n.anchor=r),n.mount=()=>e.parentNode,n.anchor=e},p(l,r){i=l,n.ctx=i,r&138&&t!==(t=i[7](i[20].label,i[1].fallbackLabelResolver,i[20].id))&&la(t,n)||h_(n,i,r)},d(l){l&&A(e),n.block.d(l),n.token=null,n=null}}}function ch(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=hh(nh(i,t,l));return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-menu__list fd-menu__list--bottom svelte-qht2wo")},m(l,r){R(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null)},p(l,r){if(r&11009){t=l[0];let s;for(s=0;s<t.length;s+=1){const o=nh(l,t,s);n[s]?n[s].p(o,r):(n[s]=hh(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){l&&A(e),ct(n,l)}}}function dh(i){let e,t,n,l=i[13](i[20].label)+"",r,s,o,c,g,h;function _(){return i[18](i[20])}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Pe(l),o=q(),f(n,"class","fd-menu__title"),f(t,"href",s=i[8](i[20])),f(t,"class","fd-menu__link"),f(e,"class","fd-menu__item"),f(e,"data-testid",c=i[9](i[20]))},m(p,m){R(p,e,m),w(e,t),w(t,n),w(n,r),w(e,o),g||(h=[ne(t,"click",i[17]),ne(e,"click",_)],g=!0)},p(p,m){i=p,m&8193&&l!==(l=i[13](i[20].label)+"")&&Ne(r,l),m&257&&s!==(s=i[8](i[20]))&&f(t,"href",s),m&513&&c!==(c=i[9](i[20]))&&f(e,"data-testid",c)},d(p){p&&A(e),g=!1,Ze(h)}}}function hh(i){let e,t=i[20].position==="bottom"&&dh(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[20].position==="bottom"?t?t.p(n,l):(t=dh(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function yS(i){let e,t,n,l,r,s,o=i[0]&&i[0].length&&rh(i),c=i[3]&&i[3].length===0&&oh(),g=i[3]&&i[3].length&&uh(i),h=i[0]&&i[0].length&&ch(i);return{c(){e=S("nav"),o&&o.c(),t=q(),n=S("ul"),c&&c.c(),l=q(),g&&g.c(),r=q(),h&&h.c(),f(n,"class","fd-menu__list"),f(n,"id","context_menu_middle"),f(e,"class",s="fd-menu lui-ctx-switch-nav "+(i[6]?"fd-menu--mobile":"")+" svelte-qht2wo")},m(_,p){R(_,e,p),o&&o.m(e,null),w(e,t),w(e,n),c&&c.m(n,null),w(n,l),g&&g.m(n,null),w(e,r),h&&h.m(e,null)},p(_,[p]){_[0]&&_[0].length?o?o.p(_,p):(o=rh(_),o.c(),o.m(e,t)):o&&(o.d(1),o=null),_[3]&&_[3].length===0?c||(c=oh(),c.c(),c.m(n,l)):c&&(c.d(1),c=null),_[3]&&_[3].length?g?g.p(_,p):(g=uh(_),g.c(),g.m(n,null)):g&&(g.d(1),g=null),_[0]&&_[0].length?h?h.p(_,p):(h=ch(_),h.c(),h.m(e,null)):h&&(h.d(1),h=null),p&64&&s!==(s="fd-menu lui-ctx-switch-nav "+(_[6]?"fd-menu--mobile":"")+" svelte-qht2wo")&&f(e,"class",s)},i:Ue,o:Ue,d(_){_&&A(e),o&&o.d(),c&&c.d(),g&&g.d(),h&&h.d()}}}const PS=()=>{};function NS(i,e,t){let n,l=Ue,r=()=>(l(),l=Ao(y,O=>t(13,n=O)),y);i.$$.on_destroy.push(()=>l());let{actions:s=[]}=e,{config:o={}}=e,{customOptionsRenderer:c}=e,{options:g=[]}=e,{selectedLabel:h}=e,{selectedOption:_}=e,{isMobile:p}=e,{getNodeName:m}=e,{getRouteLink:v}=e,{getTestId:k}=e,{getTranslation:y}=e;r();const C=Wt();function T(O){C("onActionClick",{node:O})}function N(O,j){C("goToOption",{option:O,selectedOption:j})}const D=O=>T(O),I=O=>{Te.handleNavAnchorClickedWithoutMetaKey(O)},L=O=>N(O,_),M=O=>{Te.handleNavAnchorClickedWithoutMetaKey(O)},F=O=>T(O);return i.$$set=O=>{"actions"in O&&t(0,s=O.actions),"config"in O&&t(1,o=O.config),"customOptionsRenderer"in O&&t(2,c=O.customOptionsRenderer),"options"in O&&t(3,g=O.options),"selectedLabel"in O&&t(4,h=O.selectedLabel),"selectedOption"in O&&t(5,_=O.selectedOption),"isMobile"in O&&t(6,p=O.isMobile),"getNodeName"in O&&t(7,m=O.getNodeName),"getRouteLink"in O&&t(8,v=O.getRouteLink),"getTestId"in O&&t(9,k=O.getTestId),"getTranslation"in O&&r(t(10,y=O.getTranslation))},[s,o,c,g,h,_,p,m,v,k,y,T,N,n,D,I,L,M,F]}class R_ extends At{constructor(e){super(),Lt(this,e,NS,yS,It,{actions:0,config:1,customOptionsRenderer:2,options:3,selectedLabel:4,selectedOption:5,isMobile:6,getNodeName:7,getRouteLink:8,getTestId:9,getTranslation:10,onActionClick:11,goToOption:12})}get onActionClick(){return this.$$.ctx[11]}get goToOption(){return this.$$.ctx[12]}}function gh(i){let e,t,n,l=!i[9]&&_h(i),r=i[9]&&i[8].contextSwitcherPopover&&i[14]&&ph(i);return{c(){l&&l.c(),e=q(),r&&r.c(),t=ye()},m(s,o){l&&l.m(s,o),R(s,e,o),r&&r.m(s,o),R(s,t,o),n=!0},p(s,o){s[9]?l&&(Ee(),G(l,1,1,()=>{l=null}),De()):l?(l.p(s,o),o[0]&512&&B(l,1)):(l=_h(s),l.c(),B(l,1),l.m(e.parentNode,e)),s[9]&&s[8].contextSwitcherPopover&&s[14]?r?(r.p(s,o),o[0]&17152&&B(r,1)):(r=ph(s),r.c(),B(r,1),r.m(t.parentNode,t)):r&&(Ee(),G(r,1,1,()=>{r=null}),De())},i(s){n||(B(l),B(r),n=!0)},o(s){G(l),G(r),n=!1},d(s){l&&l.d(s),s&&A(e),r&&r.d(s),s&&A(t)}}}function _h(i){let e,t,n,l,r,s,o,c,g,h;function _(v,k){return v[17]&&v[2]!==v[5].defaultLabel?TS:IS}let p=_(i),m=p(i);return s=new R_({props:{actions:i[0],config:i[5],customOptionsRenderer:i[6],options:i[1],selectedLabel:i[4],selectedOption:i[2],getNodeName:i[18],getRouteLink:i[20],getTestId:i[19],getTranslation:i[16],isMobile:i[9]}}),s.$on("onActionClick",i[10]),s.$on("goToOption",i[11]),{c(){e=S("div"),t=S("div"),n=S("div"),m.c(),l=q(),r=S("div"),Ge(s.$$.fragment),f(n,"class","fd-popover__control"),f(r,"class","fd-popover__body fd-popover__body--right svelte-11j1get"),f(r,"aria-hidden",o=!i[8].contextSwitcherPopover),f(r,"id","contextSwitcherPopover"),f(r,"data-testid","luigi-contextswitcher-popover"),f(t,"class","fd-popover fd-popover--right svelte-11j1get"),f(e,"class","fd-shellbar__action fd-shellbar__action--desktop")},m(v,k){R(v,e,k),w(e,t),w(t,n),m.m(n,null),w(t,l),w(t,r),He(s,r,null),c=!0,g||(h=ne(n,"click",Ot(US)),g=!0)},p(v,k){p===(p=_(v))&&m?m.p(v,k):(m.d(1),m=p(v),m&&(m.c(),m.m(n,null)));const y={};k[0]&1&&(y.actions=v[0]),k[0]&32&&(y.config=v[5]),k[0]&64&&(y.customOptionsRenderer=v[6]),k[0]&2&&(y.options=v[1]),k[0]&16&&(y.selectedLabel=v[4]),k[0]&4&&(y.selectedOption=v[2]),k[0]&512&&(y.isMobile=v[9]),s.$set(y),(!c||k[0]&256&&o!==(o=!v[8].contextSwitcherPopover))&&f(r,"aria-hidden",o)},i(v){c||(B(s.$$.fragment,v),c=!0)},o(v){G(s.$$.fragment,v),c=!1},d(v){v&&A(e),m.d(),ze(s),g=!1,h()}}}function IS(i){let e,t,n,l,r,s;function o(h,_){return h[2]&&h[7]?AS:LS}let c=o(i),g=c(i);return{c(){e=S("button"),g.c(),f(e,"class","fd-button fd-button--transparent fd-button--menu fd-shellbar__button fd-shellbar__button--menu lui-ctx-switch-menu svelte-11j1get"),f(e,"aria-expanded",t=i[8].contextSwitcherPopover||!1),f(e,"aria-haspopup","true"),f(e,"title",n=i[4]?i[4]:i[5].defaultLabel),f(e,"aria-disabled",l=!i[14]),f(e,"data-testid","luigi-contextswitcher-button")},m(h,_){R(h,e,_),g.m(e,null),r||(s=ne(e,"click",i[30]),r=!0)},p(h,_){c===(c=o(h))&&g?g.p(h,_):(g.d(1),g=c(h),g&&(g.c(),g.m(e,null))),_[0]&256&&t!==(t=h[8].contextSwitcherPopover||!1)&&f(e,"aria-expanded",t),_[0]&48&&n!==(n=h[4]?h[4]:h[5].defaultLabel)&&f(e,"title",n),_[0]&16384&&l!==(l=!h[14])&&f(e,"aria-disabled",l)},d(h){h&&A(e),g.d(),r=!1,s()}}}function TS(i){let e,t,n,l,r,s;function o(h,_){return h[2]&&h[7]?VS:DS}let c=o(i),g=c(i);return{c(){e=S("a"),g.c(),f(e,"href",i[13]),f(e,"class","fd-button fd-button--transparent fd-shellbar__button fd-button--menu fd-shellbar__button--menu lui-ctx-switch-menu svelte-11j1get"),f(e,"aria-expanded",t=i[8].contextSwitcherPopover||!1),f(e,"aria-haspopup","true"),f(e,"title",n=i[4]?i[4]:i[5].defaultLabel),f(e,"aria-disabled",l=!i[14]),f(e,"data-testid","luigi-contextswitcher-button")},m(h,_){R(h,e,_),g.m(e,null),r||(s=ne(e,"click",Tt(i[29])),r=!0)},p(h,_){c===(c=o(h))&&g?g.p(h,_):(g.d(1),g=c(h),g&&(g.c(),g.m(e,null))),_[0]&8192&&f(e,"href",h[13]),_[0]&256&&t!==(t=h[8].contextSwitcherPopover||!1)&&f(e,"aria-expanded",t),_[0]&48&&n!==(n=h[4]?h[4]:h[5].defaultLabel)&&f(e,"title",n),_[0]&16384&&l!==(l=!h[14])&&f(e,"aria-disabled",l)},d(h){h&&A(e),g.d(),r=!1,s()}}}function LS(i){let e,t;function n(s,o){return s[4]?RS:ES}let l=n(i),r=l(i);return{c(){r.c(),e=q(),t=S("i"),f(t,"class","sap-icon--megamenu fd-shellbar__button--icon")},m(s,o){r.m(s,o),R(s,e,o),R(s,t,o)},p(s,o){l===(l=n(s))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){r.d(s),s&&A(e),s&&A(t)}}}function AS(i){let e,t=i[7](i[2])+"",n;return{c(){e=new dr(!1),n=ye(),e.a=n},m(l,r){e.m(t,l,r),R(l,n,r)},p(l,r){r[0]&132&&t!==(t=l[7](l[2])+"")&&e.p(t)},d(l){l&&A(n),l&&e.d()}}}function RS(i){let e;return{c(){e=Pe(i[4])},m(t,n){R(t,e,n)},p(t,n){n[0]&16&&Ne(e,t[4])},d(t){t&&A(e)}}}function ES(i){let e=i[15](i[5].defaultLabel)+"",t;return{c(){t=Pe(e)},m(n,l){R(n,t,l)},p(n,l){l[0]&32800&&e!==(e=n[15](n[5].defaultLabel)+"")&&Ne(t,e)},d(n){n&&A(t)}}}function DS(i){let e,t;function n(s,o){return s[4]?MS:OS}let l=n(i),r=l(i);return{c(){r.c(),e=q(),t=S("i"),f(t,"class","sap-icon--megamenu fd-shellbar__button--icon")},m(s,o){r.m(s,o),R(s,e,o),R(s,t,o)},p(s,o){l===(l=n(s))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){r.d(s),s&&A(e),s&&A(t)}}}function VS(i){let e,t=i[7](i[2])+"",n;return{c(){e=new dr(!1),n=ye(),e.a=n},m(l,r){e.m(t,l,r),R(l,n,r)},p(l,r){r[0]&132&&t!==(t=l[7](l[2])+"")&&e.p(t)},d(l){l&&A(n),l&&e.d()}}}function MS(i){let e;return{c(){e=Pe(i[4])},m(t,n){R(t,e,n)},p(t,n){n[0]&16&&Ne(e,t[4])},d(t){t&&A(e)}}}function OS(i){let e=i[15](i[5].defaultLabel)+"",t;return{c(){t=Pe(e)},m(n,l){R(n,t,l)},p(n,l){l[0]&32800&&e!==(e=n[15](n[5].defaultLabel)+"")&&Ne(t,e)},d(n){n&&A(t)}}}function ph(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,k,y,C,T,N=!i[4]&&mh(i),D=i[4]&&bh(i);return h=new R_({props:{actions:i[0],config:i[5],customOptionsRenderer:i[6],options:i[1],selectedLabel:i[4],selectedOption:i[2],getNodeName:i[18],getRouteLink:i[20],getTestId:i[19],getTranslation:i[16],isMobile:i[9]}}),h.$on("onActionClick",i[10]),h.$on("goToOption",i[11]),{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),r=S("div"),s=S("h2"),N&&N.c(),o=q(),D&&D.c(),c=q(),g=S("div"),Ge(h.$$.fragment),_=q(),p=S("footer"),m=S("div"),v=S("div"),k=S("button"),k.textContent="Cancel",f(s,"class","fd-title fd-title--h5"),f(s,"id","dialog-title-3"),f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(n,"class","fd-dialog__header fd-bar fd-bar--header"),f(g,"class","fd-dialog__body fd-dialog__body--no-vertical-padding"),f(k,"class","fd-button fd-button--light fd-dialog__decisive-button"),f(k,"data-testid","mobile-topnav-close"),f(v,"class","fd-bar__element"),f(m,"class","fd-bar__right"),f(p,"class","fd-dialog__footer fd-bar fd-bar--cosy fd-bar--footer"),f(t,"class","fd-dialog__content fd-dialog__content--mobile"),f(t,"role","dialog"),f(t,"aria-modal","true"),f(t,"aria-labelledby","dialog-title-3"),f(e,"class","fd-dialog fd-dialog--active")},m(I,L){R(I,e,L),w(e,t),w(t,n),w(n,l),w(l,r),w(r,s),N&&N.m(s,null),w(s,o),D&&D.m(s,null),w(t,c),w(t,g),He(h,g,null),w(t,_),w(t,p),w(p,m),w(m,v),w(v,k),y=!0,C||(T=[ne(k,"click",i[12]),ne(e,"click",Ot(BS))],C=!0)},p(I,L){I[4]?N&&(N.d(1),N=null):N?N.p(I,L):(N=mh(I),N.c(),N.m(s,o)),I[4]?D?D.p(I,L):(D=bh(I),D.c(),D.m(s,null)):D&&(D.d(1),D=null);const M={};L[0]&1&&(M.actions=I[0]),L[0]&32&&(M.config=I[5]),L[0]&64&&(M.customOptionsRenderer=I[6]),L[0]&2&&(M.options=I[1]),L[0]&16&&(M.selectedLabel=I[4]),L[0]&4&&(M.selectedOption=I[2]),L[0]&512&&(M.isMobile=I[9]),h.$set(M)},i(I){y||(B(h.$$.fragment,I),y=!0)},o(I){G(h.$$.fragment,I),y=!1},d(I){I&&A(e),N&&N.d(),D&&D.d(),ze(h),C=!1,Ze(T)}}}function mh(i){let e=i[15](i[5].defaultLabel)+"",t;return{c(){t=Pe(e)},m(n,l){R(n,t,l)},p(n,l){l[0]&32800&&e!==(e=n[15](n[5].defaultLabel)+"")&&Ne(t,e)},d(n){n&&A(t)}}}function bh(i){let e;return{c(){e=Pe(i[4])},m(t,n){R(t,e,n)},p(t,n){n[0]&16&&Ne(e,t[4])},d(t){t&&A(e)}}}function FS(i){let e,t,n=i[3]&&gh(i);return{c(){n&&n.c(),e=ye()},m(l,r){n&&n.m(l,r),R(l,e,r),t=!0},p(l,r){l[3]?n?(n.p(l,r),r[0]&8&&B(n,1)):(n=gh(l),n.c(),B(n,1),n.m(e.parentNode,e)):n&&(Ee(),G(n,1,1,()=>{n=null}),De())},i(l){t||(B(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}const US=()=>{},BS=()=>{};function WS(i,e,t){let n,l;const r=Wt();let{contextSwitcherEnabled:s=!1}=e,{dropDownStates:o={}}=e,{selectedLabel:c=null}=e,{config:g={}}=e,{actions:h=[]}=e,{options:_=null}=e,p=!0,{selectedOption:m}=e,{fallbackLabelResolver:v=null}=e,{pathParams:k}=e,{customOptionsRenderer:y}=e,{customSelectedOptionRenderer:C}=e,{isMobile:T}=e,{contextSwitcherToggle:N=!1}=e,{defaultLabel:D}=e,I,L=vt("getUnsavedChangesModalPromise"),M=vt("store"),F=vt("getTranslation");mi(i,F,x=>t(15,l=x));let O=!1,j,fe;Kt(async()=>{Fn.doOnStoreChange(M,async()=>{const x=re.getConfigValue("navigation.contextSwitcher");if(t(3,s=!!x),!!s&&(t(6,y=ee.isFunction(x.customOptionsRenderer)?x.customOptionsRenderer:void 0),t(7,C=ee.isFunction(x.customSelectedOptionRenderer)?x.customSelectedOptionRenderer:void 0),t(5,g=x),t(1,_=void 0),x)){t(28,p=x.alwaysShowDropdown!==!1),t(0,h=await re.getConfigValueAsync("navigation.contextSwitcher.actions"));const be=it.getCurrentPath();t(21,v=x.fallbackLabelResolver),cn.resetFallbackLabelCache(),x.lazyloadOptions||await Ce(),cn.isContextSwitcherDetailsView(be,x.parentNodePath)&&await H(be)}},["navigation.contextSwitcher"]),pe.addRouteChangeListener(x=>H(x)),Pn.addEventListener("message",x=>{!Ie.getValidMessageSource(x)||x.data&&x.data.msg==="luigi.refresh-context-switcher"&&(t(1,_=null),Ce())}),t(22,D=g.defaultLabel)}),On(()=>{O!==N&&(O=N,Ce())});function X(x,be,ke){return x?Promise.resolve(x):cn.getFallbackLabel(be,ke)}function Q(x){return x.testId?x.testId:Te.prepareForTests(x.pathSegment,x.label)}function ce(x){return pe.getNodeHref(x,k)}async function Ce(){t(1,_=await cn.fetchOptions(_));const x=g||{},be=x.parentNodePath,ke=x.fallbackLabelResolver,we=it.getCurrentPath();t(2,m=await cn.getSelectedOption(we,_,be)),t(4,c=await cn.getSelectedLabel(we,_,be,ke)),t(13,j=await cn.getSelectedNode(we,_,be)),I=x.preserveSubPathOnSwitch}async function H(x){const be=g||{},ke=be.parentNodePath,we=be.fallbackLabelResolver;t(2,m=await cn.getSelectedOption(x,_,ke)),t(4,c=await cn.getSelectedLabel(x,_,ke,we)),t(13,j=await cn.getSelectedNode(x,_,ke))}async function ae(x){let be=x.detail.node;be.clickHandler&&!await be.clickHandler(be)||(setTimeout(()=>{$(be.link)}),T&&r("toggleDropdownState"))}function $(x){L().then(()=>{it.navigateTo(x)})}function K(x){let be=x.detail.option,ke=x.detail.selectedOption;L().then(()=>{I&&ke?it.navigateTo(cn.getNodePathFromCurrentPath(be,ke)):it.navigateTo(be.link),T&&r("toggleDropdownState")})}function le(){r("toggleDropdownState");const x=o||{};JSON.parse(x.contextSwitcherPopover)&&Ce()}const ve=()=>{n&&le()},ue=()=>{n&&le()};return i.$$set=x=>{"contextSwitcherEnabled"in x&&t(3,s=x.contextSwitcherEnabled),"dropDownStates"in x&&t(8,o=x.dropDownStates),"selectedLabel"in x&&t(4,c=x.selectedLabel),"config"in x&&t(5,g=x.config),"actions"in x&&t(0,h=x.actions),"options"in x&&t(1,_=x.options),"selectedOption"in x&&t(2,m=x.selectedOption),"fallbackLabelResolver"in x&&t(21,v=x.fallbackLabelResolver),"pathParams"in x&&t(23,k=x.pathParams),"customOptionsRenderer"in x&&t(6,y=x.customOptionsRenderer),"customSelectedOptionRenderer"in x&&t(7,C=x.customSelectedOptionRenderer),"isMobile"in x&&t(9,T=x.isMobile),"contextSwitcherToggle"in x&&t(24,N=x.contextSwitcherToggle),"defaultLabel"in x&&t(22,D=x.defaultLabel)},i.$$.update=()=>{i.$$.dirty[0]&268435463&&t(14,n=p||h&&h.length>0||_&&_.length>1||!m)},[h,_,m,s,c,g,y,C,o,T,ae,K,le,j,n,l,F,fe,X,Q,ce,v,D,k,N,Ce,H,$,p,ve,ue]}class E_ extends At{constructor(e){super(),Lt(this,e,WS,FS,It,{contextSwitcherEnabled:3,dropDownStates:8,selectedLabel:4,config:5,actions:0,options:1,selectedOption:2,fallbackLabelResolver:21,pathParams:23,customOptionsRenderer:6,customSelectedOptionRenderer:7,isMobile:9,contextSwitcherToggle:24,defaultLabel:22,fetchOptions:25,setSelectedContext:26,onActionClick:10,goToPath:27,goToOption:11,toggleDropdownState:12},null,[-1,-1])}get fetchOptions(){return this.$$.ctx[25]}get setSelectedContext(){return this.$$.ctx[26]}get onActionClick(){return this.$$.ctx[10]}get goToPath(){return this.$$.ctx[27]}get goToOption(){return this.$$.ctx[11]}get toggleDropdownState(){return this.$$.ctx[12]}}const{window:HS}=Ui;function vh(i,e,t){const n=i.slice();return n[22]=e[t],n}function wh(i){let e,t,n,l=!i[2]&&kh(i),r=i[2]&&i[3].productSwitcherPopover&&Nh(i);return{c(){l&&l.c(),e=q(),r&&r.c(),t=ye()},m(s,o){l&&l.m(s,o),R(s,e,o),r&&r.m(s,o),R(s,t,o),n=!0},p(s,o){s[2]?l&&(l.d(1),l=null):l?l.p(s,o):(l=kh(s),l.c(),l.m(e.parentNode,e)),s[2]&&s[3].productSwitcherPopover?r?(r.p(s,o),o&12&&B(r,1)):(r=Nh(s),r.c(),B(r,1),r.m(t.parentNode,t)):r&&(Ee(),G(r,1,1,()=>{r=null}),De())},i(s){n||(B(r),n=!0)},o(s){G(r),n=!1},d(s){l&&l.d(s),s&&A(e),r&&r.d(s),s&&A(t)}}}function kh(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,k,y,C;function T(M,F){return F&2&&(s=null),s==null&&(s=!!M[11](M[1])),s?qS:zS}let N=T(i,-1),D=N(i),I=i[0],L=[];for(let M=0;M<I.length;M+=1)L[M]=Ph(vh(i,I,M));return{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),r=S("button"),D.c(),h=q(),_=S("div"),p=S("div"),m=S("ul");for(let M=0;M<L.length;M+=1)L[M].c();f(r,"class","fd-button fd-button--transparent fd-shellbar__button fd-product-switch__control"),f(r,"aria-expanded",o=i[3].productSwitcherPopover||!1),f(r,"aria-haspopup","true"),f(r,"title",c=i[1].label),f(r,"data-testid",g=i[14](i[1])),f(l,"class","fd-popover__control"),f(m,"class","fd-product-switch__list"),f(p,"class",v=yn(i[9])+" svelte-1e1qi56"),f(_,"class","fd-popover__body fd-popover__body--right"),f(_,"aria-hidden",k=!i[3].productSwitcherPopover),f(_,"id","productSwitcherPopover"),f(n,"class","fd-popover fd-popover--right"),f(t,"class","fd-product-switch"),f(e,"class","fd-shellbar__action fd-shellbar__action--desktop")},m(M,F){R(M,e,F),w(e,t),w(t,n),w(n,l),w(l,r),D.m(r,null),w(n,h),w(n,_),w(_,p),w(p,m);for(let O=0;O<L.length;O+=1)L[O].m(m,null);y||(C=[ne(r,"click",Ot(i[7])),ne(l,"click",Ot(XS))],y=!0)},p(M,F){if(N===(N=T(M,F))&&D?D.p(M,F):(D.d(1),D=N(M),D&&(D.c(),D.m(r,null))),F&8&&o!==(o=M[3].productSwitcherPopover||!1)&&f(r,"aria-expanded",o),F&2&&c!==(c=M[1].label)&&f(r,"title",c),F&2&&g!==(g=M[14](M[1]))&&f(r,"data-testid",g),F&64561){I=M[0];let O;for(O=0;O<I.length;O+=1){const j=vh(M,I,O);L[O]?L[O].p(j,F):(L[O]=Ph(j),L[O].c(),L[O].m(m,null))}for(;O<L.length;O+=1)L[O].d(1);L.length=I.length}F&512&&v!==(v=yn(M[9])+" svelte-1e1qi56")&&f(p,"class",v),F&8&&k!==(k=!M[3].productSwitcherPopover)&&f(_,"aria-hidden",k)},d(M){M&&A(e),D.d(),ct(L,M),y=!1,Ze(C)}}}function zS(i){let e,t,n;return{c(){e=S("img"),rt(e.src,t=i[1].icon)||f(e,"src",t),f(e,"alt",n=i[1].altText?i[1].altText:"")},m(l,r){R(l,e,r)},p(l,r){r&2&&!rt(e.src,t=l[1].icon)&&f(e,"src",t),r&2&&n!==(n=l[1].altText?l[1].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function qS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="sap-icon "+i[10](i[1].icon))},m(n,l){R(n,e,l)},p(n,l){l&2&&t!==(t="sap-icon "+n[10](n[1].icon))&&f(e,"class",t)},d(n){n&&A(e)}}}function Sh(i){let e,t,n,l,r,s;function o(_,p){return _[4]?KS:GS}let c=o(i),g=c(i);function h(){return i[17](i[22])}return{c(){e=S("li"),g.c(),t=q(),f(e,"class",n="fd-product-switch__item "+(i[22].selected?"selected":"")),f(e,"data-testid",l=i[14](i[22]))},m(_,p){R(_,e,p),g.m(e,null),w(e,t),r||(s=ne(e,"click",h),r=!0)},p(_,p){i=_,c===(c=o(i))&&g?g.p(i,p):(g.d(1),g=c(i),g&&(g.c(),g.m(e,t))),p&1&&n!==(n="fd-product-switch__item "+(i[22].selected?"selected":""))&&f(e,"class",n),p&1&&l!==(l=i[14](i[22]))&&f(e,"data-testid",l)},d(_){_&&A(e),g.d(),r=!1,s()}}}function GS(i){let e,t,n,l,r,s=i[12](i[22])+"",o,c,g=i[13](i[22]);function h(v,k){return k&1&&(t=null),t==null&&(t=!!v[11](v[22])),t?jS:JS}let _=h(i,-1),p=_(i),m=g&&Ch(i);return{c(){e=S("div"),p.c(),n=q(),l=S("div"),r=S("div"),o=Pe(s),c=q(),m&&m.c(),f(e,"class","lui-product-switch__icon svelte-1e1qi56"),f(r,"class","fd-product-switch__title"),f(l,"class","fd-product-switch__text")},m(v,k){R(v,e,k),p.m(e,null),R(v,n,k),R(v,l,k),w(l,r),w(r,o),w(l,c),m&&m.m(l,null)},p(v,k){_===(_=h(v,k))&&p?p.p(v,k):(p.d(1),p=_(v),p&&(p.c(),p.m(e,null))),k&1&&s!==(s=v[12](v[22])+"")&&Ne(o,s),k&1&&(g=v[13](v[22])),g?m?m.p(v,k):(m=Ch(v),m.c(),m.m(l,null)):m&&(m.d(1),m=null)},d(v){v&&A(e),p.d(),v&&A(n),v&&A(l),m&&m.d()}}}function KS(i){let e,t,n,l,r,s,o=i[12](i[22])+"",c,g,h=i[13](i[22]),_,p,m;function v(T,N){return N&1&&(n=null),n==null&&(n=!!T[11](T[22])),n?QS:YS}let k=v(i,-1),y=k(i),C=h&&yh(i);return{c(){e=S("a"),t=S("div"),y.c(),l=q(),r=S("div"),s=S("div"),c=Pe(o),g=q(),C&&C.c(),f(t,"class","lui-product-switch__icon svelte-1e1qi56"),f(s,"class","fd-product-switch__title"),f(r,"class","fd-product-switch__text"),f(e,"href",_=i[15](i[22])),f(e,"class","fd-menu__link")},m(T,N){R(T,e,N),w(e,t),y.m(t,null),w(e,l),w(e,r),w(r,s),w(s,c),w(r,g),C&&C.m(r,null),p||(m=ne(e,"click",i[16]),p=!0)},p(T,N){k===(k=v(T,N))&&y?y.p(T,N):(y.d(1),y=k(T),y&&(y.c(),y.m(t,null))),N&1&&o!==(o=T[12](T[22])+"")&&Ne(c,o),N&1&&(h=T[13](T[22])),h?C?C.p(T,N):(C=yh(T),C.c(),C.m(r,null)):C&&(C.d(1),C=null),N&1&&_!==(_=T[15](T[22]))&&f(e,"href",_)},d(T){T&&A(e),y.d(),C&&C.d(),p=!1,m()}}}function JS(i){let e,t,n;return{c(){e=S("img"),rt(e.src,t=i[22].icon)||f(e,"src",t),f(e,"alt",n=i[22].altText?i[22].altText:""),f(e,"class","svelte-1e1qi56")},m(l,r){R(l,e,r)},p(l,r){r&1&&!rt(e.src,t=l[22].icon)&&f(e,"src",t),r&1&&n!==(n=l[22].altText?l[22].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function jS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="sap-icon "+(i[22].icon&&i[11](i[22])?i[10](i[22].icon):"")+" svelte-1e1qi56")},m(n,l){R(n,e,l)},p(n,l){l&1&&t!==(t="sap-icon "+(n[22].icon&&n[11](n[22])?n[10](n[22].icon):"")+" svelte-1e1qi56")&&f(e,"class",t)},d(n){n&&A(e)}}}function Ch(i){let e,t=i[13](i[22])+"",n;return{c(){e=S("div"),n=Pe(t),f(e,"class","fd-product-switch__subtitle")},m(l,r){R(l,e,r),w(e,n)},p(l,r){r&1&&t!==(t=l[13](l[22])+"")&&Ne(n,t)},d(l){l&&A(e)}}}function YS(i){let e,t,n;return{c(){e=S("img"),rt(e.src,t=i[22].icon)||f(e,"src",t),f(e,"alt",n=i[22].altText?i[22].altText:""),f(e,"class","svelte-1e1qi56")},m(l,r){R(l,e,r)},p(l,r){r&1&&!rt(e.src,t=l[22].icon)&&f(e,"src",t),r&1&&n!==(n=l[22].altText?l[22].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function QS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="sap-icon "+(i[22].icon&&i[11](i[22])?i[10](i[22].icon):"")+" svelte-1e1qi56")},m(n,l){R(n,e,l)},p(n,l){l&1&&t!==(t="sap-icon "+(n[22].icon&&n[11](n[22])?n[10](n[22].icon):"")+" svelte-1e1qi56")&&f(e,"class",t)},d(n){n&&A(e)}}}function yh(i){let e,t=i[13](i[22])+"",n;return{c(){e=S("div"),n=Pe(t),f(e,"class","fd-product-switch__subtitle")},m(l,r){R(l,e,r),w(e,n)},p(l,r){r&1&&t!==(t=l[13](l[22])+"")&&Ne(n,t)},d(l){l&&A(e)}}}function Ph(i){let e,t=i[22].label&&Sh(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[22].label?t?t.p(n,l):(t=Sh(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function Nh(i){let e,t;return e=new L_({props:{nodes:i[0],label:i[1].label,hasOpenUIicon:i[11],getNodeLabel:i[12],getNodeSubtitle:i[13],getTestId:i[14]}}),e.$on("click",i[7]),e.$on("listClick",i[6]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l&1&&(r.nodes=n[0]),l&2&&(r.label=n[1].label),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function ZS(i){let e=i[0]&&i[0].length&&Object.keys(i[0][0]).length,t,n,l,r,s=e&&wh(i);return{c(){s&&s.c(),t=ye()},m(o,c){s&&s.m(o,c),R(o,t,c),n=!0,l||(r=ne(HS,"resize",ca),l=!0)},p(o,[c]){c&1&&(e=o[0]&&o[0].length&&Object.keys(o[0][0]).length),e?s?(s.p(o,c),c&1&&B(s,1)):(s=wh(o),s.c(),B(s,1),s.m(t.parentNode,t)):s&&(Ee(),G(s,1,1,()=>{s=null}),De())},i(o){n||(B(s),n=!0)},o(o){G(s),n=!1},d(o){s&&s.d(o),o&&A(t),l=!1,r()}}}function ca(){let i=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${i}px`)}const XS=()=>{};function $S(i,e,t){const n=Wt();let{productSwitcherItems:l}=e,{isMobile:r}=e,{config:s}=e,{dropDownStates:o}=e,c=vt("store"),g=vt("getUnsavedChangesModalPromise"),h,{addNavHrefForAnchor:_}=e;Kt(async()=>{Fn.doOnStoreChange(c,async()=>{t(1,s=Te.getProductSwitcherConfig()),s&&(t(0,l=await re.getConfigValueAsync("navigation.productSwitcher.items")),N()),ca()},["navigation.productSwitcher"])});function p(F){g().then(()=>{it.navigateToLink(F)}),v()}function m(F){p(F.detail)}function v(){n("toggleDropdownState")}function k(F){return Te.renderIconClassName(F)}function y(F){return Te.isOpenUIiconName(F.icon)}function C(F){return ht.getTranslation(F.label)}function T(F){return ht.getTranslation(F.subTitle)}function N(){Te.getProductSwitcherColumnsNumber()===3?t(9,h="fd-product-switch__body fd-product-switch__body--col-3"):t(9,h="fd-product-switch__body")}function D(F){return F.testId?F.testId:Te.prepareForTests(F.label)}function I(F){return pe.getNodeHref(F)}const L=F=>{Te.handleNavAnchorClickedWithoutMetaKey(F)},M=F=>p(F);return i.$$set=F=>{"productSwitcherItems"in F&&t(0,l=F.productSwitcherItems),"isMobile"in F&&t(2,r=F.isMobile),"config"in F&&t(1,s=F.config),"dropDownStates"in F&&t(3,o=F.dropDownStates),"addNavHrefForAnchor"in F&&t(4,_=F.addNavHrefForAnchor)},[l,s,r,o,_,p,m,v,ca,h,k,y,C,T,D,I,L,M]}class D_ extends At{constructor(e){super(),Lt(this,e,$S,ZS,It,{productSwitcherItems:0,isMobile:2,config:1,dropDownStates:3,addNavHrefForAnchor:4,onActionClick:5,onActionClickExternal:6,toggleDropdownState:7,setViewportHeightVariable:8})}get onActionClick(){return this.$$.ctx[5]}get onActionClickExternal(){return this.$$.ctx[6]}get toggleDropdownState(){return this.$$.ctx[7]}get setViewportHeightVariable(){return ca}}function Ih(i,e,t){const n=i.slice();return n[31]=e[t],n[33]=t,n}function xS(i){let e,t,n;return{c(){e=S("input"),f(e,"type","text"),f(e,"class","fd-input fd-input-group__input fd-shellbar__input-group-input luigi-search__input svelte-1jkaxo8"),f(e,"data-testid","luigi-search-input"),e.autofocus=!0},m(l,r){R(l,e,r),i[19](e),e.focus(),t||(n=ne(e,"keyup",i[18]),t=!0)},p:Ue,d(l){l&&A(e),i[19](null),t=!1,n()}}}function eC(i){let e;return{c(){e=S("input"),f(e,"type","text"),f(e,"class","fd-input fd-input-group__input fd-shellbar__input-group-input luigi-search__input svelte-1jkaxo8"),f(e,"data-testid","luigi-search-input__no-handlers"),e.autofocus=!0},m(t,n){R(t,e,n),e.focus()},p:Ue,d(t){t&&A(e)}}}function tC(i){let e;return{c(){e=S("div")},m(t,n){R(t,e,n),i[23](e)},p:Ue,d(t){t&&A(e),i[23](null)}}}function nC(i){let e,t,n,l=i[5]&&Th(i);return{c(){e=S("div"),t=S("nav"),l&&l.c(),f(t,"class","fd-menu svelte-1jkaxo8"),f(e,"class","fd-popover__body fd-popover__body--right luigi-search-popover__body svelte-1jkaxo8"),f(e,"aria-hidden",n=!i[0])},m(r,s){R(r,e,s),w(e,t),l&&l.m(t,null)},p(r,s){r[5]?l?l.p(r,s):(l=Th(r),l.c(),l.m(t,null)):l&&(l.d(1),l=null),s[0]&1&&n!==(n=!r[0])&&f(e,"aria-hidden",n)},d(r){r&&A(e),l&&l.d()}}}function Th(i){let e,t=i[5],n=[];for(let l=0;l<t.length;l+=1)n[l]=Lh(Ih(i,t,l));return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-menu__list fd-menu__list--top")},m(l,r){R(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null);i[22](e)},p(l,r){if(r[0]&26152){t=l[5];let s;for(s=0;s<t.length;s+=1){const o=Ih(l,t,s);n[s]?n[s].p(o,r):(n[s]=Lh(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){l&&A(e),ct(n,l),i[22](null)}}}function iC(i){let e,t=i[10](i[31],i[3],i[33])+"",n;return{c(){e=new dr(!1),n=ye(),e.a=n},m(l,r){e.m(t,l,r),R(l,n,r)},p(l,r){r[0]&40&&t!==(t=l[10](l[31],l[3],l[33])+"")&&e.p(t)},d(l){l&&A(n),l&&e.d()}}}function lC(i){let e,t,n,l=i[31].label+"",r,s,o,c=i[31].description+"",g,h,_;return{c(){e=S("a"),t=S("div"),n=S("div"),r=Pe(l),s=q(),o=S("div"),g=Pe(c),f(n,"class","fd-product-switch__title svelte-1jkaxo8"),f(o,"class","fd-product-switch__subtitle"),f(t,"class","fd-product-switch__text"),f(e,"class","fd-menu__link svelte-1jkaxo8")},m(p,m){R(p,e,m),w(e,t),w(t,n),w(n,r),w(t,s),w(t,o),w(o,g),h||(_=ne(e,"click",Tt(sC)),h=!0)},p(p,m){m[0]&32&&l!==(l=p[31].label+"")&&Ne(r,l),m[0]&32&&c!==(c=p[31].description+"")&&Ne(g,c)},d(p){p&&A(e),h=!1,_()}}}function Lh(i){let e,t,n,l;function r(h,_){return h[9]?iC:lC}let s=r(i),o=s(i);function c(...h){return i[20](i[31],...h)}function g(...h){return i[21](i[31],...h)}return{c(){e=S("li"),o.c(),t=q(),f(e,"class","fd-menu__item luigi-search-result-item__"+i[33]+" svelte-1jkaxo8"),f(e,"tabindex","0")},m(h,_){R(h,e,_),o.m(e,null),w(e,t),n||(l=[ne(e,"click",c),ne(e,"keyup",g)],n=!0)},p(h,_){i=h,s===(s=r(i))&&o?o.p(i,_):(o.d(1),o=s(i),o&&(o.c(),o.m(e,t)))},d(h){h&&A(e),o.d(),n=!1,Ze(l)}}}function rC(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,k;function y(L,M){return L[7]&&L[7].disableInputHandlers?eC:xS}let C=y(i),T=C(i);function N(L,M){return L[8]?tC:nC}let D=N(i),I=D(i);return{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),T.c(),r=q(),I.c(),c=q(),g=S("div"),h=S("div"),_=S("button"),p=S("i"),f(l,"class","fd-input-group fd-shellbar__input-group"),f(n,"class","fd-popover__control luigi-search svelte-1jkaxo8"),f(n,"aria-hidden",s=!i[4]),f(n,"aria-haspopup","true"),f(t,"class","fd-popover svelte-1jkaxo8"),f(e,"class",o="fd-shellbar__action "+(i[4]?"luigi-search-shell__mobile":"")+" svelte-1jkaxo8"),f(p,"class","sap-icon sap-icon--search"),f(_,"class","fd-button fd-button--transparent fd-shellbar__button"),f(_,"aria-haspopup","true"),f(_,"aria-expanded",m=!i[4]),f(_,"data-testid","luigi-search-btn-desktop"),f(g,"class","fd-shellbar__action fd-shellbar__action--desktop")},m(L,M){R(L,e,M),w(e,t),w(t,n),w(n,l),T.m(l,null),w(n,r),I.m(n,null),R(L,c,M),R(L,g,M),w(g,h),w(h,_),w(_,p),v||(k=[ne(window,"click",i[11]),ne(window,"blur",i[11]),ne(n,"click",Ot(aC)),ne(_,"click",i[6]),ne(h,"click",Ot(oC))],v=!0)},p(L,M){C===(C=y(L))&&T?T.p(L,M):(T.d(1),T=C(L),T&&(T.c(),T.m(l,null))),D===(D=N(L))&&I?I.p(L,M):(I.d(1),I=D(L),I&&(I.c(),I.m(n,null))),M[0]&16&&s!==(s=!L[4])&&f(n,"aria-hidden",s),M[0]&16&&o!==(o="fd-shellbar__action "+(L[4]?"luigi-search-shell__mobile":"")+" svelte-1jkaxo8")&&f(e,"class",o),M[0]&16&&m!==(m=!L[4])&&f(_,"aria-expanded",m)},i:Ue,o:Ue,d(L){L&&A(e),T.d(),I.d(),L&&A(c),L&&A(g),v=!1,Ze(k)}}}const sC=()=>{},aC=()=>{},oC=()=>{};function uC(i,e,t){let{isSearchFieldVisible:n}=e,{searchResult:l=[]}=e,{displaySearchResult:r}=e,{displayCustomSearchResult:s}=e,{inputElem:o}=e,{luigiCustomSearchRenderer__slot:c}=e,{luigiCustomSearchItemRenderer__slotContainer:g}=e,{globalSearchConfig:h}=e;const _=Wt(),p={fireItemSelected:$=>{m.searchProvider.onSearchResultItemSelected($)}};let m={},v,k;Kt(async()=>{t(7,m=h);let $=o;const K=C(m.searchProvider);K&&($.placeholder=K),y()}),On(()=>{t(7,m=h),y()});function y(){!m.searchProvider||(t(8,v=ee.isFunction(m.searchProvider.customSearchResultRenderer)),t(9,k=ee.isFunction(m.searchProvider.customSearchResultItemRenderer)))}function C($){if(!$||!$.inputPlaceholder)return;const K=ht.getCurrentLocale();if(ee.isFunction($.inputPlaceholder))return $.inputPlaceholder();if(typeof $.inputPlaceholder=="string"){const le=ht.getTranslation($.inputPlaceholder);return!!le&&le.trim().length>0?le:$.inputPlaceholder}if(typeof $.inputPlaceholder=="object")return $.inputPlaceholder[K]}function T($,K,le){return setTimeout(()=>{m.searchProvider.customSearchResultItemRenderer($,K.children[le],p)}),""}function N(){_("closeSearchResult")}function D({keyCode:$}){m&&m.searchProvider?ee.isFunction(m.searchProvider.onEnter)&&$===pi?m.searchProvider.onEnter():ee.isFunction(m.searchProvider.onEscape)&&$===_i?m.searchProvider.onEscape():$===Oi?r&&(document.querySelector(".luigi-search-result-item__0").childNodes[0].setAttribute("aria-selected","true"),document.querySelector(".luigi-search-result-item__0").focus()):ee.isFunction(m.searchProvider.onInput)&&m.searchProvider.onInput():console.warn("GlobalSearch is not available.")}function I($){let K=g.children;if(K)for(let le=0;le<K.length;le++){let{childNodes:ve,nextSibling:ue,previousSibling:x}=K[le],be;if(ve[0].getAttribute("aria-selected")==="true"){$===Oi&&(be=ue!==null?ue:K[0]),$===Al&&(be=x!==null?x:K[K.length-1]),ve[0].setAttribute("aria-selected","false"),be.childNodes[0].setAttribute("aria-selected","true"),be.focus();break}}}function L(){let $=g.children;if($)for(let K=0;K<$.length;K++){let le=$[K];le.childNodes[0].getAttribute("aria-selected")==="true"&&le.childNodes[0].setAttribute("aria-selected","false")}}function M($){m&&ee.isFunction(m.searchProvider.onSearchResultItemSelected)?m.searchProvider.onSearchResultItemSelected($):ee.isFunction(m.searchProvider.onEscape)&&event.keyCode===_i&&m.searchProvider.onEscape()}function F($,{keyCode:K}){K===pi&&m.searchProvider.onSearchResultItemSelected($),K===Al||K===Oi?I(K):ee.isFunction(m.searchProvider.onEscape)&&K===_i&&(L(),setTimeout(()=>{o.focus()}),m.searchProvider.onEscape())}function O($){let K=$.pathObject;K.externalLink?it.navigateToLink(K):_("handleSearchNavigation",{node:K})}function j(){o&&o.focus()}function fe(){if(n?t(0,r=!1):setTimeout(()=>{j()}),_("toggleSearch",{isSearchFieldVisible:n,inputElem:o,luigiCustomSearchRenderer__slot:c}),m&&m.searchProvider&&ee.isFunction(m.searchProvider.toggleSearch)){const $=n===void 0?!0:!n;m.searchProvider.toggleSearch(o,$)}}const X=$=>D($);function Q($){xe[$?"unshift":"push"](()=>{o=$,t(1,o)})}const ce=($,K)=>M($),Ce=($,K)=>F($,K);function H($){xe[$?"unshift":"push"](()=>{g=$,t(3,g)})}function ae($){xe[$?"unshift":"push"](()=>{c=$,t(2,c)})}return i.$$set=$=>{"isSearchFieldVisible"in $&&t(4,n=$.isSearchFieldVisible),"searchResult"in $&&t(5,l=$.searchResult),"displaySearchResult"in $&&t(0,r=$.displaySearchResult),"displayCustomSearchResult"in $&&t(15,s=$.displayCustomSearchResult),"inputElem"in $&&t(1,o=$.inputElem),"luigiCustomSearchRenderer__slot"in $&&t(2,c=$.luigiCustomSearchRenderer__slot),"luigiCustomSearchItemRenderer__slotContainer"in $&&t(3,g=$.luigiCustomSearchItemRenderer__slotContainer),"globalSearchConfig"in $&&t(16,h=$.globalSearchConfig)},[r,o,c,g,n,l,fe,m,v,k,T,N,D,M,F,s,h,O,X,Q,ce,Ce,H,ae]}class fC extends At{constructor(e){super(),Lt(this,e,uC,rC,It,{isSearchFieldVisible:4,searchResult:5,displaySearchResult:0,displayCustomSearchResult:15,inputElem:1,luigiCustomSearchRenderer__slot:2,luigiCustomSearchItemRenderer__slotContainer:3,globalSearchConfig:16,onActionClick:17,toggleSearch:6},null,[-1,-1])}get onActionClick(){return this.$$.ctx[17]}get toggleSearch(){return this.$$.ctx[6]}}function Ah(i,e,t){const n=i.slice();return n[40]=e[t],n[42]=t,n}function cC(i){let e,t,n,l,r,s,o,c=i[11]&&Rh(i);return{c(){e=S("input"),t=q(),n=S("span"),c&&c.c(),l=q(),r=S("button"),r.innerHTML='<i class="sap-icon--search"></i>',f(e,"type","text"),f(e,"class","fd-input fd-input-group__input fd-shellbar__input-group-input luigi-search__input svelte-1yci3dk"),f(e,"data-testid","luigi-search-input"),f(r,"aria-label","button-search"),f(r,"class","fd-shellbar__button fd-button fd-button--transparent lui-search-btn svelte-1yci3dk"),f(n,"class","fd-input-group__addon fd-shellbar__input-group__addon fd-input-group__addon--button lui-search-btn-ctn svelte-1yci3dk")},m(g,h){R(g,e,h),i[26](e),R(g,t,h),R(g,n,h),c&&c.m(n,null),w(n,l),w(n,r),s||(o=[ne(e,"keyup",i[25]),ne(e,"input",i[27]),ne(r,"click",i[17])],s=!0)},p(g,h){g[11]?c?c.p(g,h):(c=Rh(g),c.c(),c.m(n,l)):c&&(c.d(1),c=null)},d(g){g&&A(e),i[26](null),g&&A(t),g&&A(n),c&&c.d(),s=!1,Ze(o)}}}function dC(i){let e;return{c(){e=S("input"),f(e,"type","text"),f(e,"class","fd-input fd-input-group__input fd-shellbar__input-group-input luigi-search__input svelte-1yci3dk"),f(e,"data-testid","luigi-search-input__no-handlers")},m(t,n){R(t,e,n)},p:Ue,d(t){t&&A(e)}}}function Rh(i){let e,t,n;return{c(){e=S("button"),e.innerHTML='<i class="sap-icon--decline lui-clear-search svelte-1yci3dk"></i>',f(e,"aria-label","button-decline"),f(e,"class","fd-shellbar__button fd-button fd-button--transparent svelte-1yci3dk")},m(l,r){R(l,e,r),t||(n=ne(e,"click",i[19]),t=!0)},p:Ue,d(l){l&&A(e),t=!1,n()}}}function hC(i){let e;return{c(){e=S("div")},m(t,n){R(t,e,n),i[31](e)},p:Ue,d(t){t&&A(e),i[31](null)}}}function gC(i){let e,t,n,l=i[4]&&Eh(i);return{c(){e=S("div"),t=S("nav"),l&&l.c(),f(t,"class","fd-menu"),f(e,"class","fd-popover__body fd-popover__body--right luigi-search-popover__body svelte-1yci3dk"),f(e,"aria-hidden",n=!i[0])},m(r,s){R(r,e,s),w(e,t),l&&l.m(t,null)},p(r,s){r[4]?l?l.p(r,s):(l=Eh(r),l.c(),l.m(t,null)):l&&(l.d(1),l=null),s[0]&1&&n!==(n=!r[0])&&f(e,"aria-hidden",n)},d(r){r&&A(e),l&&l.d()}}}function Eh(i){let e,t=i[4],n=[];for(let l=0;l<t.length;l+=1)n[l]=Dh(Ah(i,t,l));return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-menu__list fd-menu__list--top")},m(l,r){R(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null);i[30](e)},p(l,r){if(r[0]&3163160){t=l[4];let s;for(s=0;s<t.length;s+=1){const o=Ah(l,t,s);n[s]?n[s].p(o,r):(n[s]=Dh(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){l&&A(e),ct(n,l),i[30](null)}}}function _C(i){let e,t=i[14](i[40],i[3],i[42])+"",n;return{c(){e=new dr(!1),n=ye(),e.a=n},m(l,r){e.m(t,l,r),R(l,n,r)},p(l,r){r[0]&24&&t!==(t=l[14](l[40],l[3],l[42])+"")&&e.p(t)},d(l){l&&A(n),l&&e.d()}}}function pC(i){let e,t,n,l=i[40].label+"",r,s,o,c=i[40].description+"",g,h,_;return{c(){e=S("a"),t=S("div"),n=S("div"),r=Pe(l),s=q(),o=S("div"),g=Pe(c),f(n,"class","fd-product-switch__title"),f(o,"class","fd-product-switch__subtitle"),f(t,"class","fd-product-switch__text"),f(e,"class","fd-menu__link")},m(p,m){R(p,e,m),w(e,t),w(t,n),w(n,r),w(t,s),w(t,o),w(o,g),h||(_=ne(e,"click",Tt(bC)),h=!0)},p(p,m){m[0]&16&&l!==(l=p[40].label+"")&&Ne(r,l),m[0]&16&&c!==(c=p[40].description+"")&&Ne(g,c)},d(p){p&&A(e),h=!1,_()}}}function Dh(i){let e,t,n,l;function r(h,_){return h[10]?_C:pC}let s=r(i),o=s(i);function c(...h){return i[28](i[40],...h)}function g(...h){return i[29](i[40],...h)}return{c(){e=S("li"),o.c(),t=q(),f(e,"class","fd-menu__item luigi-search-result-item__"+i[42]+" svelte-1yci3dk"),f(e,"tabindex","0")},m(h,_){R(h,e,_),o.m(e,null),w(e,t),n||(l=[ne(e,"click",c),ne(e,"keyup",g)],n=!0)},p(h,_){i=h,s===(s=r(i))&&o?o.p(i,_):(o.d(1),o=s(i),o&&(o.c(),o.m(e,t)))},d(h){h&&A(e),o.d(),n=!1,Ze(l)}}}function Vh(i){let e,t,n,l,r,s,o;return{c(){e=S("div"),t=S("div"),n=S("button"),l=S("i"),f(l,"class","sap-icon sap-icon--search"),f(n,"class","fd-button fd-button--transparent fd-shellbar__button"),f(n,"aria-haspopup","true"),f(n,"aria-expanded",r=!i[5]),f(n,"data-testid","luigi-search-btn-desktop"),f(t,"class","fd-shellbar__group"),f(e,"class","lui-global-search-btn svelte-1yci3dk")},m(c,g){R(c,e,g),w(e,t),w(t,n),w(n,l),s||(o=[ne(n,"click",i[6]),ne(t,"click",Ot(wC))],s=!0)},p(c,g){g[0]&32&&r!==(r=!c[5])&&f(n,"aria-expanded",r)},d(c){c&&A(e),s=!1,Ze(o)}}}function Mh(i){let e,t,n=i[12](i[7])+"",l,r,s,o,c;return{c(){e=S("div"),t=S("button"),l=Pe(n),f(t,"class","fd-button fd-button--transparent fd-shellbar__button svelte-1yci3dk"),f(t,"aria-haspopup","true"),f(t,"aria-expanded",r=!i[5]),f(t,"data-testid","luigi-search-cancel-btn"),f(e,"class",s="fd-shellbar__group lui-global-search-cancel-btn "+(i[5]?"lui-global-search-cancel-btn--active":"")+" svelte-1yci3dk")},m(g,h){R(g,e,h),w(e,t),w(t,l),o||(c=ne(t,"click",Ot(i[32])),o=!0)},p(g,h){h[0]&4224&&n!==(n=g[12](g[7])+"")&&Ne(l,n),h[0]&32&&r!==(r=!g[5])&&f(t,"aria-expanded",r),h[0]&32&&s!==(s="fd-shellbar__group lui-global-search-cancel-btn "+(g[5]?"lui-global-search-cancel-btn--active":"")+" svelte-1yci3dk")&&f(e,"class",s)},d(g){g&&A(e),o=!1,c()}}}function mC(i){let e,t,n,l,r,s,o,c,g,h,_,p;function m(I,L){return I[8]&&I[8].disableInputHandlers?dC:cC}let v=m(i),k=v(i);function y(I,L){return I[9]?hC:gC}let C=y(i),T=C(i),N=!i[5]&&Vh(i),D=i[5]&&Mh(i);return{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),k.c(),r=q(),T.c(),c=q(),N&&N.c(),g=q(),D&&D.c(),h=ye(),f(l,"class","fd-input-group fd-shellbar__input-group luigi-search-input-ctn svelte-1yci3dk"),f(n,"class","fd-popover__control luigi-search fd-shellbar__group svelte-1yci3dk"),f(n,"aria-hidden",s=!i[5]),f(n,"aria-haspopup","true"),f(t,"class","fd-popover svelte-1yci3dk"),f(e,"class",o="fd-shellbar__action lui-global-search-input "+(i[5]?"lui-global-search-mobile--active":"")+" svelte-1yci3dk")},m(I,L){R(I,e,L),w(e,t),w(t,n),w(n,l),k.m(l,null),w(n,r),T.m(n,null),R(I,c,L),N&&N.m(I,L),R(I,g,L),D&&D.m(I,L),R(I,h,L),_||(p=[ne(window,"click",i[15]),ne(window,"blur",i[15]),ne(n,"click",Ot(vC))],_=!0)},p(I,L){v===(v=m(I))&&k?k.p(I,L):(k.d(1),k=v(I),k&&(k.c(),k.m(l,null))),C===(C=y(I))&&T?T.p(I,L):(T.d(1),T=C(I),T&&(T.c(),T.m(n,null))),L[0]&32&&s!==(s=!I[5])&&f(n,"aria-hidden",s),L[0]&32&&o!==(o="fd-shellbar__action lui-global-search-input "+(I[5]?"lui-global-search-mobile--active":"")+" svelte-1yci3dk")&&f(e,"class",o),I[5]?N&&(N.d(1),N=null):N?N.p(I,L):(N=Vh(I),N.c(),N.m(g.parentNode,g)),I[5]?D?D.p(I,L):(D=Mh(I),D.c(),D.m(h.parentNode,h)):D&&(D.d(1),D=null)},i:Ue,o:Ue,d(I){I&&A(e),k.d(),T.d(),I&&A(c),N&&N.d(I),I&&A(g),D&&D.d(I),I&&A(h),_=!1,Ze(p)}}}const bC=()=>{},vC=()=>{},wC=()=>{};function kC(i,e,t){let n,{searchResult:l=[]}=e,{displaySearchResult:r}=e,{displayCustomSearchResult:s}=e,{inputElem:o}=e,{luigiCustomSearchRenderer__slot:c}=e,{luigiCustomSearchItemRenderer__slotContainer:g}=e,{globalSearchConfig:h}=e;const _=Wt(),p={fireItemSelected:ie=>{k.searchProvider.onSearchResultItemSelected(ie)}};let m=ul.globalSearchCenteredCancelButton,{isSearchFieldVisible:v}=e,k={},y,C,T=!1,N=vt("getTranslation");mi(i,N,ie=>t(12,n=ie)),Kt(async()=>{t(8,k=h),t(7,m=k.globalSearchCenteredCancelButton?k.globalSearchCenteredCancelButton:m);let ie=o;const Re=I(k.searchProvider);Re&&(ie.placeholder=Re),D(),Kf.handleVisibilityGlobalSearch();const Le=document.querySelector(".lui-global-search");Le&&new ResizeObserver(tt=>{Kf.handleVisibilityGlobalSearch()}).observe(Le)}),On(()=>{t(8,k=h),D(),j()});function D(){t(9,y=k.searchProvider&&ee.isFunction(k.searchProvider.customSearchResultRenderer)),t(10,C=k.searchProvider&&ee.isFunction(k.searchProvider.customSearchResultItemRenderer))}function I(ie){if(!ie||!ie.inputPlaceholder)return;const Re=ht.getCurrentLocale();if(ee.isFunction(ie.inputPlaceholder))return ie.inputPlaceholder();if(typeof ie.inputPlaceholder=="string"){const Le=ht.getTranslation(ie.inputPlaceholder);return!!Le&&Le.trim().length>0?Le:ie.inputPlaceholder}if(typeof ie.inputPlaceholder=="object")return ie.inputPlaceholder[Re]}function L(ie,Re,Le){return setTimeout(()=>{k.searchProvider.customSearchResultItemRenderer(ie,Re.children[Le],p)}),""}function M(){_("closeSearchResult")}function F({keyCode:ie}){k?ee.isFunction(k.searchProvider.onEnter)&&ie===pi?k.searchProvider.onEnter():ee.isFunction(k.searchProvider.onEscape)&&ie===_i?k.searchProvider.onEscape():ie===Oi?r&&(document.querySelector(".luigi-search-result-item__0").childNodes[0].setAttribute("aria-selected","true"),document.querySelector(".luigi-search-result-item__0").focus()):ee.isFunction(k.searchProvider.onInput)&&k.searchProvider.onInput():console.warn("GlobalSearchCentered is not available.")}function O(){k&&ee.isFunction(k.searchProvider.onSearchBtnClick)&&k.searchProvider.onSearchBtnClick()}function j(){o&&o.value?t(11,T=!0):t(11,T=!1)}function fe(){t(1,o.value="",o),M(),t(11,T=!1)}function X(ie){let Re=g.children;if(Re)for(let Le=0;Le<Re.length;Le++){let{childNodes:_e,nextSibling:tt,previousSibling:Ft}=Re[Le],Jt;if(_e[0].getAttribute("aria-selected")==="true"){ie===Oi&&(Jt=tt!==null?tt:Re[0]),ie===Al&&(Jt=Ft!==null?Ft:Re[Re.length-1]),_e[0].setAttribute("aria-selected","false"),Jt.childNodes[0].setAttribute("aria-selected","true"),Jt.focus();break}}}function Q(){let ie=g.children;if(ie)for(let Re=0;Re<ie.length;Re++){let Le=ie[Re];Le.childNodes[0].getAttribute("aria-selected")==="true"&&Le.childNodes[0].setAttribute("aria-selected","false")}}function ce(ie){k&&ee.isFunction(k.searchProvider.onSearchResultItemSelected)?k.searchProvider.onSearchResultItemSelected(ie):ee.isFunction(k.searchProvider.onEscape)&&event.keyCode===_i&&k.searchProvider.onEscape()}function Ce(ie,{keyCode:Re}){Re===pi&&k.searchProvider.onSearchResultItemSelected(ie),Re===Al||Re===Oi?X(Re):ee.isFunction(k.searchProvider.onEscape)&&Re===_i&&(Q(),setTimeout(()=>{o.focus()}),k.searchProvider.onEscape())}function H(ie){let Re=ie.pathObject;Re.externalLink?it.navigateToLink(Re):_("handleSearchNavigation",{node:Re})}function ae(){o&&o.focus()}function $(){if(v?t(0,r=!1):setTimeout(()=>{ae()}),_("toggleSearch",{isSearchFieldVisible:v,inputElem:o,luigiCustomSearchRenderer__slot:c}),ee.isFunction(k.searchProvider.toggleSearch)){const ie=v===void 0?!0:!v;k.searchProvider.toggleSearch(o,ie)}}const K=ie=>F(ie);function le(ie){xe[ie?"unshift":"push"](()=>{o=ie,t(1,o)})}const ve=()=>j(),ue=(ie,Re)=>ce(ie),x=(ie,Re)=>Ce(ie,Re);function be(ie){xe[ie?"unshift":"push"](()=>{g=ie,t(3,g)})}function ke(ie){xe[ie?"unshift":"push"](()=>{c=ie,t(2,c)})}const we=()=>$();return i.$$set=ie=>{"searchResult"in ie&&t(4,l=ie.searchResult),"displaySearchResult"in ie&&t(0,r=ie.displaySearchResult),"displayCustomSearchResult"in ie&&t(22,s=ie.displayCustomSearchResult),"inputElem"in ie&&t(1,o=ie.inputElem),"luigiCustomSearchRenderer__slot"in ie&&t(2,c=ie.luigiCustomSearchRenderer__slot),"luigiCustomSearchItemRenderer__slotContainer"in ie&&t(3,g=ie.luigiCustomSearchItemRenderer__slotContainer),"globalSearchConfig"in ie&&t(23,h=ie.globalSearchConfig),"isSearchFieldVisible"in ie&&t(5,v=ie.isSearchFieldVisible)},[r,o,c,g,l,v,$,m,k,y,C,T,n,N,L,M,F,O,j,fe,ce,Ce,s,h,H,K,le,ve,ue,x,be,ke,we]}class SC extends At{constructor(e){super(),Lt(this,e,kC,mC,It,{searchResult:4,displaySearchResult:0,displayCustomSearchResult:22,inputElem:1,luigiCustomSearchRenderer__slot:2,luigiCustomSearchItemRenderer__slotContainer:3,globalSearchConfig:23,isSearchFieldVisible:5,onActionClick:24,toggleSearch:6},null,[-1,-1])}get onActionClick(){return this.$$.ctx[24]}get toggleSearch(){return this.$$.ctx[6]}}function Oh(i){let e,t;function n(s,o){return o&1&&(e=null),e==null&&(e=!!s[1](s[0])),e?yC:CC}let l=n(i,-1),r=l(i);return{c(){r.c(),t=ye()},m(s,o){r.m(s,o),R(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function CC(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon sap-icon"),rt(e.src,t=i[0].icon)||f(e,"src",t),f(e,"alt",n=i[0].altText?i[0].altText:"")},m(l,r){R(l,e,r)},p(l,r){r&1&&!rt(e.src,t=l[0].icon)&&f(e,"src",t),r&1&&n!==(n=l[0].altText?l[0].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function yC(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-top-nav__icon sap-icon "+i[2](i[0].icon))},m(n,l){R(n,e,l)},p(n,l){l&1&&t!==(t="fd-top-nav__icon sap-icon "+n[2](n[0].icon))&&f(e,"class",t)},d(n){n&&A(e)}}}function Fh(i){let e,t=i[3](i[0])+"",n,l,r,s;return r=new xr({props:{node:i[0]}}),{c(){e=S("span"),n=Pe(t),l=q(),Ge(r.$$.fragment)},m(o,c){R(o,e,c),w(e,n),w(e,l),He(r,e,null),s=!0},p(o,c){(!s||c&1)&&t!==(t=o[3](o[0])+"")&&Ne(n,t);const g={};c&1&&(g.node=o[0]),r.$set(g)},i(o){s||(B(r.$$.fragment,o),s=!0)},o(o){G(r.$$.fragment,o),s=!1},d(o){o&&A(e),ze(r)}}}function PC(i){let e,t,n,l=i[0].icon&&Oh(i),r=(!i[0].icon||i[0].showLabel)&&Fh(i);return{c(){l&&l.c(),e=q(),r&&r.c(),t=ye()},m(s,o){l&&l.m(s,o),R(s,e,o),r&&r.m(s,o),R(s,t,o),n=!0},p(s,[o]){s[0].icon?l?l.p(s,o):(l=Oh(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),!s[0].icon||s[0].showLabel?r?(r.p(s,o),o&1&&B(r,1)):(r=Fh(s),r.c(),B(r,1),r.m(t.parentNode,t)):r&&(Ee(),G(r,1,1,()=>{r=null}),De())},i(s){n||(B(r),n=!0)},o(s){G(r),n=!1},d(s){l&&l.d(s),s&&A(e),r&&r.d(s),s&&A(t)}}}function NC(i,e,t){let{node:n}=e;function l(o){return Te.isOpenUIiconName(o.icon)}function r(o){return Te.renderIconClassName(o)}function s(o){return ht.getTranslation(o.label)}return i.$$set=o=>{"node"in o&&t(0,n=o.node)},[n,l,r,s]}class Mo extends At{constructor(e){super(),Lt(this,e,NC,PC,It,{node:0})}}const{Boolean:V_,window:Uh}=Ui;function Bh(i,e,t){const n=i.slice();return n[111]=e[t],n[113]=t,n}function Wh(i,e,t){const n=i.slice();return n[111]=e[t],n[114]=e,n[113]=t,n}function IC(i){let e,t;return e=new T_({props:{isHidden:!0,addNavHrefForAnchor:i[28]}}),e.$on("toggleDropdownState",i[103]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&268435456&&(r.addNavHrefForAnchor=n[28]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function TC(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v=(i[3]==="simple"||i[3]==="simpleMobileOnly"||i[3]==="Fiori3")&&Hh(i);function k(L){i[59](L)}let y={pathData:i[30],pathParams:i[31],addNavHrefForAnchor:i[28]};i[6]!==void 0&&(y.dropDownStates=i[6]),l=new Kk({props:y}),xe.push(()=>bt(l,"dropDownStates",k)),l.$on("toggleDropdownState",i[39]),l.$on("handleClick",i[37]);let C=i[18]&&i[19]&&zh(i),T=(!i[0]||i[1])&&qh(i),N=(i[18]||i[7]&&i[30].length>0)&&Kh(i),D=(i[0]||i[16])&&sg(i),I=i[12]&&ag(i);return{c(){e=S("div"),t=S("div"),v&&v.c(),n=q(),Ge(l.$$.fragment),s=q(),C&&C.c(),o=q(),c=S("div"),T&&T.c(),g=q(),N&&N.c(),h=q(),D&&D.c(),_=q(),I&&I.c(),f(t,"class","fd-shellbar__group fd-shellbar__group--product"),f(c,"class","fd-shellbar__group fd-shellbar__group--actions lui-shellbar_group--actions"),f(e,"class",p="fd-shellbar "+(i[27]?"fd-shellbar--responsive-paddings":"")+" lui-shellbar-wrapper "+(i[2]?"hideNavComponent":"")+" svelte-1q5ghii"),f(e,"tabindex","0")},m(L,M){R(L,e,M),w(e,t),v&&v.m(t,null),w(t,n),He(l,t,null),w(e,s),C&&C.m(e,null),w(e,o),w(e,c),T&&T.m(c,null),w(c,g),N&&N.m(c,null),w(c,h),D&&D.m(c,null),w(c,_),I&&I.m(c,null),m=!0},p(L,M){L[3]==="simple"||L[3]==="simpleMobileOnly"||L[3]==="Fiori3"?v?v.p(L,M):(v=Hh(L),v.c(),v.m(t,n)):v&&(v.d(1),v=null);const F={};M[0]&1073741824&&(F.pathData=L[30]),M[1]&1&&(F.pathParams=L[31]),M[0]&268435456&&(F.addNavHrefForAnchor=L[28]),!r&&M[0]&64&&(r=!0,F.dropDownStates=L[6],mt(()=>r=!1)),l.$set(F),L[18]&&L[19]?C?(C.p(L,M),M[0]&786432&&B(C,1)):(C=zh(L),C.c(),B(C,1),C.m(e,o)):C&&(Ee(),G(C,1,1,()=>{C=null}),De()),!L[0]||L[1]?T?(T.p(L,M),M[0]&3&&B(T,1)):(T=qh(L),T.c(),B(T,1),T.m(c,g)):T&&(Ee(),G(T,1,1,()=>{T=null}),De()),L[18]||L[7]&&L[30].length>0?N?(N.p(L,M),M[0]&1074004096&&B(N,1)):(N=Kh(L),N.c(),B(N,1),N.m(c,h)):N&&(Ee(),G(N,1,1,()=>{N=null}),De()),L[0]||L[16]?D?(D.p(L,M),M[0]&65537&&B(D,1)):(D=sg(L),D.c(),B(D,1),D.m(c,_)):D&&(Ee(),G(D,1,1,()=>{D=null}),De()),L[12]?I?(I.p(L,M),M[0]&4096&&B(I,1)):(I=ag(L),I.c(),B(I,1),I.m(c,null)):I&&(Ee(),G(I,1,1,()=>{I=null}),De()),(!m||M[0]&134217732&&p!==(p="fd-shellbar "+(L[27]?"fd-shellbar--responsive-paddings":"")+" lui-shellbar-wrapper "+(L[2]?"hideNavComponent":"")+" svelte-1q5ghii"))&&f(e,"class",p)},i(L){m||(B(l.$$.fragment,L),B(C),B(T),B(N),B(D),B(I),m=!0)},o(L){G(l.$$.fragment,L),G(C),G(T),G(N),G(D),G(I),m=!1},d(L){L&&A(e),v&&v.d(),ze(l),C&&C.d(),T&&T.d(),N&&N.d(),D&&D.d(),I&&I.d()}}}function Hh(i){let e,t,n,l;return{c(){e=S("button"),t=S("i"),f(t,"class","sap-icon sap-icon--menu2"),f(e,"class","fd-shellbar__button fd-button fd-button--transparent lui-burger svelte-1q5ghii"),f(e,"tabindex","0"),f(e,"title",i[26])},m(r,s){R(r,e,s),w(e,t),n||(l=ne(e,"click",i[53]),n=!0)},p(r,s){s[0]&67108864&&f(e,"title",r[26])},d(r){r&&A(e),n=!1,l()}}}function zh(i){let e,t,n,l,r,s,o,c,g;function h(C){i[60](C)}function _(C){i[61](C)}function p(C){i[62](C)}function m(C){i[63](C)}function v(C){i[64](C)}function k(C){i[65](C)}let y={globalSearchConfig:i[18]};return i[20]!==void 0&&(y.isSearchFieldVisible=i[20]),i[25]!==void 0&&(y.searchResult=i[25]),i[23]!==void 0&&(y.displaySearchResult=i[23]),i[24]!==void 0&&(y.displayCustomSearchResult=i[24]),i[21]!==void 0&&(y.inputElem=i[21]),i[22]!==void 0&&(y.luigiCustomSearchRenderer__slot=i[22]),t=new SC({props:y}),xe.push(()=>bt(t,"isSearchFieldVisible",h)),xe.push(()=>bt(t,"searchResult",_)),xe.push(()=>bt(t,"displaySearchResult",p)),xe.push(()=>bt(t,"displayCustomSearchResult",m)),xe.push(()=>bt(t,"inputElem",v)),xe.push(()=>bt(t,"luigiCustomSearchRenderer__slot",k)),t.$on("toggleSearch",i[66]),t.$on("handleSearchNavigation",i[67]),t.$on("closeSearchResult",i[68]),{c(){e=S("div"),Ge(t.$$.fragment),f(e,"class","lui-global-search")},m(C,T){R(C,e,T),He(t,e,null),g=!0},p(C,T){const N={};T[0]&262144&&(N.globalSearchConfig=C[18]),!n&&T[0]&1048576&&(n=!0,N.isSearchFieldVisible=C[20],mt(()=>n=!1)),!l&&T[0]&33554432&&(l=!0,N.searchResult=C[25],mt(()=>l=!1)),!r&&T[0]&8388608&&(r=!0,N.displaySearchResult=C[23],mt(()=>r=!1)),!s&&T[0]&16777216&&(s=!0,N.displayCustomSearchResult=C[24],mt(()=>s=!1)),!o&&T[0]&2097152&&(o=!0,N.inputElem=C[21],mt(()=>o=!1)),!c&&T[0]&4194304&&(c=!0,N.luigiCustomSearchRenderer__slot=C[22],mt(()=>c=!1)),t.$set(N)},i(C){g||(B(t.$$.fragment,C),g=!0)},o(C){G(t.$$.fragment,C),g=!1},d(C){C&&A(e),ze(t)}}}function qh(i){let e,t,n,l,r=i[18]&&!i[19]&&Gh(i);function s(c){i[78](c)}let o={isMobile:!1,addNavHrefForAnchor:i[28]};return i[6]!==void 0&&(o.dropDownStates=i[6]),t=new E_({props:o}),xe.push(()=>bt(t,"dropDownStates",s)),t.$on("toggleDropdownState",i[79]),{c(){r&&r.c(),e=q(),Ge(t.$$.fragment)},m(c,g){r&&r.m(c,g),R(c,e,g),He(t,c,g),l=!0},p(c,g){c[18]&&!c[19]?r?(r.p(c,g),g[0]&786432&&B(r,1)):(r=Gh(c),r.c(),B(r,1),r.m(e.parentNode,e)):r&&(Ee(),G(r,1,1,()=>{r=null}),De());const h={};g[0]&268435456&&(h.addNavHrefForAnchor=c[28]),!n&&g[0]&64&&(n=!0,h.dropDownStates=c[6],mt(()=>n=!1)),t.$set(h)},i(c){l||(B(r),B(t.$$.fragment,c),l=!0)},o(c){G(r),G(t.$$.fragment,c),l=!1},d(c){r&&r.d(c),c&&A(e),ze(t,c)}}}function Gh(i){let e,t,n,l,r,s,o,c;function g(y){i[69](y)}function h(y){i[70](y)}function _(y){i[71](y)}function p(y){i[72](y)}function m(y){i[73](y)}function v(y){i[74](y)}let k={globalSearchConfig:i[18]};return i[20]!==void 0&&(k.isSearchFieldVisible=i[20]),i[25]!==void 0&&(k.searchResult=i[25]),i[23]!==void 0&&(k.displaySearchResult=i[23]),i[24]!==void 0&&(k.displayCustomSearchResult=i[24]),i[21]!==void 0&&(k.inputElem=i[21]),i[22]!==void 0&&(k.luigiCustomSearchRenderer__slot=i[22]),e=new fC({props:k}),xe.push(()=>bt(e,"isSearchFieldVisible",g)),xe.push(()=>bt(e,"searchResult",h)),xe.push(()=>bt(e,"displaySearchResult",_)),xe.push(()=>bt(e,"displayCustomSearchResult",p)),xe.push(()=>bt(e,"inputElem",m)),xe.push(()=>bt(e,"luigiCustomSearchRenderer__slot",v)),e.$on("toggleSearch",i[75]),e.$on("handleSearchNavigation",i[76]),e.$on("closeSearchResult",i[77]),{c(){Ge(e.$$.fragment)},m(y,C){He(e,y,C),c=!0},p(y,C){const T={};C[0]&262144&&(T.globalSearchConfig=y[18]),!t&&C[0]&1048576&&(t=!0,T.isSearchFieldVisible=y[20],mt(()=>t=!1)),!n&&C[0]&33554432&&(n=!0,T.searchResult=y[25],mt(()=>n=!1)),!l&&C[0]&8388608&&(l=!0,T.displaySearchResult=y[23],mt(()=>l=!1)),!r&&C[0]&16777216&&(r=!0,T.displayCustomSearchResult=y[24],mt(()=>r=!1)),!s&&C[0]&2097152&&(s=!0,T.inputElem=y[21],mt(()=>s=!1)),!o&&C[0]&4194304&&(o=!0,T.luigiCustomSearchRenderer__slot=y[22],mt(()=>o=!1)),e.$set(T)},i(y){c||(B(e.$$.fragment,y),c=!0)},o(y){G(e.$$.fragment,y),c=!1},d(y){ze(e,y)}}}function Kh(i){let e,t,n,l=i[7]&&i[30].length>0&&Jh(i),r=(i[9]-i[10]>0||i[12]||i[46]||i[18])&&Qh(i);return{c(){l&&l.c(),e=q(),r&&r.c(),t=ye()},m(s,o){l&&l.m(s,o),R(s,e,o),r&&r.m(s,o),R(s,t,o),n=!0},p(s,o){s[7]&&s[30].length>0?l?(l.p(s,o),o[0]&1073741952&&B(l,1)):(l=Jh(s),l.c(),B(l,1),l.m(e.parentNode,e)):l&&(Ee(),G(l,1,1,()=>{l=null}),De()),s[9]-s[10]>0||s[12]||s[46]||s[18]?r?(r.p(s,o),o[0]&267776|o[1]&32768&&B(r,1)):(r=Qh(s),r.c(),B(r,1),r.m(t.parentNode,t)):r&&(Ee(),G(r,1,1,()=>{r=null}),De())},i(s){n||(B(l),B(r),n=!0)},o(s){G(l),G(r),n=!1},d(s){l&&l.d(s),s&&A(e),r&&r.d(s),s&&A(t)}}}function Jh(i){let e,t,n=i[7],l=[];for(let s=0;s<n.length;s+=1)l[s]=Yh(Wh(i,n,s));const r=s=>G(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s<l.length;s+=1)l[s].c();e=ye()},m(s,o){for(let c=0;c<l.length;c+=1)l[c].m(s,o);R(s,e,o),t=!0},p(s,o){if(o[0]&268435936|o[1]&3932321){n=s[7];let c;for(c=0;c<n.length;c+=1){const g=Wh(s,n,c);l[c]?(l[c].p(g,o),B(l[c],1)):(l[c]=Yh(g),l[c].c(),B(l[c],1),l[c].m(e.parentNode,e))}for(Ee(),c=n.length;c<l.length;c+=1)r(c);De()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)B(l[o]);t=!0}},o(s){l=l.filter(V_);for(let o=0;o<l.length;o+=1)G(l[o]);t=!1},d(s){ct(l,s),s&&A(e)}}}function jh(i){let e,t,n,l;const r=[AC,LC],s=[];function o(c,g){return c[111].isCat?0:1}return e=o(i),t=s[e]=r[e](i),{c(){t.c(),n=ye()},m(c,g){s[e].m(c,g),R(c,n,g),l=!0},p(c,g){let h=e;e=o(c),e===h?s[e].p(c,g):(Ee(),G(s[h],1,1,()=>{s[h]=null}),De(),t=s[e],t?t.p(c,g):(t=s[e]=r[e](c),t.c()),B(t,1),t.m(n.parentNode,n))},i(c){l||(B(t),l=!0)},o(c){G(t),l=!1},d(c){s[e].d(c),c&&A(n)}}}function LC(i){let e,t,n,l,r;const s=[EC,RC],o=[];function c(g,h){return g[28]?0:1}return t=c(i),n=o[t]=s[t](i),{c(){e=S("div"),n.c(),l=q(),f(e,"class","fd-shellbar__action fd-shellbar__action--hide fd-shellbar__action--desktop")},m(g,h){R(g,e,h),o[t].m(e,null),w(e,l),r=!0},p(g,h){let _=t;t=c(g),t===_?o[t].p(g,h):(Ee(),G(o[_],1,1,()=>{o[_]=null}),De(),n=o[t],n?n.p(g,h):(n=o[t]=s[t](g),n.c()),B(n,1),n.m(e,l))},i(g){r||(B(n),r=!0)},o(g){G(n),r=!1},d(g){g&&A(e),o[t].d()}}}function AC(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,k,y,C,T,N,D;function I(F){i[80](F,i[111],i[114],i[113])}let L={};i[111]!==void 0&&(L.node=i[111]),r=new Mo({props:L}),xe.push(()=>bt(r,"node",I)),c=new Zn({props:{node:i[111]}});function M(){return i[81](i[113])}return k=new A_({props:{node:i[111],isMobile:!1,pathParams:i[31],addNavHrefForAnchor:i[28]}}),{c(){e=S("div"),t=S("div"),n=S("div"),l=S("button"),Ge(r.$$.fragment),o=q(),Ge(c.$$.fragment),m=q(),v=S("div"),Ge(k.$$.fragment),C=q(),f(l,"title",g=i[52](i[111],i[49](i[111]))),f(l,"class",h="fd-shellbar__button fd-button fd-button--transparent "+(i[111]===i[8]?"is-selected":"")),f(l,"aria-controls","dropDownPopover-"+i[113]),f(l,"aria-expanded",_=i[6][`dropDownPopover-${i[113]}`]||!1),f(l,"aria-haspopup","true"),f(l,"data-testid",p=i[50](i[111])),f(n,"class","fd-popover__control"),f(v,"class","fd-popover__body fd-popover__body--right"),f(v,"aria-hidden",y=!i[6][`dropDownPopover-${i[113]}`]),f(v,"id","dropDownPopover-"+i[113]),f(t,"class","fd-popover fd-popover--right"),f(e,"class","fd-shellbar__action fd-shellbar__action--hide fd-shellbar__action--desktop")},m(F,O){R(F,e,O),w(e,t),w(t,n),w(n,l),He(r,l,null),w(l,o),He(c,l,null),w(t,m),w(t,v),He(k,v,null),w(e,C),T=!0,N||(D=[ne(l,"click",M),ne(n,"click",Ot(JC))],N=!0)},p(F,O){i=F;const j={};!s&&O[0]&128&&(s=!0,j.node=i[111],mt(()=>s=!1)),r.$set(j);const fe={};O[0]&128&&(fe.node=i[111]),c.$set(fe),(!T||O[0]&128&&g!==(g=i[52](i[111],i[49](i[111]))))&&f(l,"title",g),(!T||O[0]&384&&h!==(h="fd-shellbar__button fd-button fd-button--transparent "+(i[111]===i[8]?"is-selected":"")))&&f(l,"class",h),(!T||O[0]&64&&_!==(_=i[6][`dropDownPopover-${i[113]}`]||!1))&&f(l,"aria-expanded",_),(!T||O[0]&128&&p!==(p=i[50](i[111])))&&f(l,"data-testid",p);const X={};O[0]&128&&(X.node=i[111]),O[1]&1&&(X.pathParams=i[31]),O[0]&268435456&&(X.addNavHrefForAnchor=i[28]),k.$set(X),(!T||O[0]&64&&y!==(y=!i[6][`dropDownPopover-${i[113]}`]))&&f(v,"aria-hidden",y)},i(F){T||(B(r.$$.fragment,F),B(c.$$.fragment,F),B(k.$$.fragment,F),T=!0)},o(F){G(r.$$.fragment,F),G(c.$$.fragment,F),G(k.$$.fragment,F),T=!1},d(F){F&&A(e),ze(r),ze(c),ze(k),N=!1,Ze(D)}}}function RC(i){let e,t,n,l,r,s,o,c,g,h,_;function p(k){i[84](k,i[111],i[114],i[113])}let m={};i[111]!==void 0&&(m.node=i[111]),t=new Mo({props:m}),xe.push(()=>bt(t,"node",p)),r=new Zn({props:{node:i[111]}});function v(){return i[85](i[111])}return{c(){e=S("button"),Ge(t.$$.fragment),l=q(),Ge(r.$$.fragment),f(e,"title",s=i[52](i[111],i[49](i[111]))),f(e,"class",o="fd-shellbar__button fd-button fd-button--transparent "+(i[111]===i[8]?"is-selected":"")),f(e,"aria-expanded","false"),f(e,"aria-haspopup","true"),f(e,"data-testid",c=i[50](i[111]))},m(k,y){R(k,e,y),He(t,e,null),w(e,l),He(r,e,null),g=!0,h||(_=ne(e,"click",v),h=!0)},p(k,y){i=k;const C={};!n&&y[0]&128&&(n=!0,C.node=i[111],mt(()=>n=!1)),t.$set(C);const T={};y[0]&128&&(T.node=i[111]),r.$set(T),(!g||y[0]&128&&s!==(s=i[52](i[111],i[49](i[111]))))&&f(e,"title",s),(!g||y[0]&384&&o!==(o="fd-shellbar__button fd-button fd-button--transparent "+(i[111]===i[8]?"is-selected":"")))&&f(e,"class",o),(!g||y[0]&128&&c!==(c=i[50](i[111])))&&f(e,"data-testid",c)},i(k){g||(B(t.$$.fragment,k),B(r.$$.fragment,k),g=!0)},o(k){G(t.$$.fragment,k),G(r.$$.fragment,k),g=!1},d(k){k&&A(e),ze(t),ze(r),h=!1,_()}}}function EC(i){let e,t,n,l,r,s,o,c,g,h,_,p;function m(y){i[82](y,i[111],i[114],i[113])}let v={};i[111]!==void 0&&(v.node=i[111]),t=new Mo({props:v}),xe.push(()=>bt(t,"node",m)),r=new Zn({props:{node:i[111]}});function k(...y){return i[83](i[111],...y)}return{c(){e=S("a"),Ge(t.$$.fragment),l=q(),Ge(r.$$.fragment),f(e,"href",s=i[51](i[111])),f(e,"class",o="fd-shellbar__button fd-button fd-button--transparent "+(i[111]===i[8]?"is-selected":"")),f(e,"title",c=i[52](i[111],i[49](i[111]))),f(e,"aria-expanded","false"),f(e,"aria-haspopup","true"),f(e,"data-testid",g=i[50](i[111]))},m(y,C){R(y,e,C),He(t,e,null),w(e,l),He(r,e,null),h=!0,_||(p=ne(e,"click",k),_=!0)},p(y,C){i=y;const T={};!n&&C[0]&128&&(n=!0,T.node=i[111],mt(()=>n=!1)),t.$set(T);const N={};C[0]&128&&(N.node=i[111]),r.$set(N),(!h||C[0]&128&&s!==(s=i[51](i[111])))&&f(e,"href",s),(!h||C[0]&384&&o!==(o="fd-shellbar__button fd-button fd-button--transparent "+(i[111]===i[8]?"is-selected":"")))&&f(e,"class",o),(!h||C[0]&128&&c!==(c=i[52](i[111],i[49](i[111]))))&&f(e,"title",c),(!h||C[0]&128&&g!==(g=i[50](i[111])))&&f(e,"data-testid",g)},i(y){h||(B(t.$$.fragment,y),B(r.$$.fragment,y),h=!0)},o(y){G(t.$$.fragment,y),G(r.$$.fragment,y),h=!1},d(y){y&&A(e),ze(t),ze(r),_=!1,p()}}}function Yh(i){let e,t,n=!(i[111].hideFromNav||i[5]&&i[111].globalNav)&&jh(i);return{c(){n&&n.c(),e=ye()},m(l,r){n&&n.m(l,r),R(l,e,r),t=!0},p(l,r){l[111].hideFromNav||l[5]&&l[111].globalNav?n&&(Ee(),G(n,1,1,()=>{n=null}),De()):n?(n.p(l,r),r[0]&160&&B(n,1)):(n=jh(l),n.c(),B(n,1),n.m(e.parentNode,e))},i(l){t||(B(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function Qh(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,k,y,C,T,N,D,I,L,M,F;g=new Zn({props:{node:i[11],special:"true"}});let O=i[18]&&!i[19]&&Zh(i),j=i[46]&&(!i[0]||i[1])&&Xh(i),fe=i[7]&&$h(i),X=i[12]&&ng(i),Q=i[12]&&ig(i),ce=i[14]&&lg(i),Ce=(!i[0]||i[1])&&rg(i);return{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),r=S("div"),s=S("button"),o=S("i"),c=q(),Ge(g.$$.fragment),_=q(),p=S("div"),m=S("nav"),v=S("ul"),O&&O.c(),k=q(),j&&j.c(),y=q(),fe&&fe.c(),C=q(),X&&X.c(),N=q(),Q&&Q.c(),D=q(),ce&&ce.c(),I=q(),Ce&&Ce.c(),f(o,"class","sap-icon sap-icon--overflow"),f(s,"class","fd-shellbar__button fd-button fd-button--transparent"),f(s,"aria-controls","overflowPopover"),f(s,"aria-expanded",h=i[6].overflowPopover||!1),f(s,"aria-haspopup","true"),f(s,"data-testid","mobile-menu"),f(r,"class","fd-shellbar-collapse--control"),f(r,"aria-expanded","false"),f(r,"aria-haspopup","true"),f(r,"role","button"),f(l,"class","fd-popover__control"),f(v,"class","fd-menu__list fd-menu__list--no-shadow"),f(m,"class","fd-menu"),f(p,"class","fd-popover__body fd-popover__body--right"),f(p,"aria-hidden",T=!i[6].overflowPopover),f(p,"id","overflowPopover"),f(n,"class","fd-popover fd-popover--right svelte-1q5ghii"),f(t,"class","fd-shellbar-collapse"),f(e,"class","fd-shellbar__action fd-shellbar__action--mobile")},m(H,ae){R(H,e,ae),w(e,t),w(t,n),w(n,l),w(l,r),w(r,s),w(s,o),w(s,c),He(g,s,null),w(n,_),w(n,p),w(p,m),w(m,v),O&&O.m(v,null),w(v,k),j&&j.m(v,null),w(v,y),fe&&fe.m(v,null),w(v,C),X&&X.m(v,null),w(n,N),Q&&Q.m(n,null),w(n,D),ce&&ce.m(n,null),w(n,I),Ce&&Ce.m(n,null),L=!0,M||(F=[ne(s,"click",i[86]),ne(l,"click",Ot(jC))],M=!0)},p(H,ae){const $={};ae[0]&2048&&($.node=H[11]),g.$set($),(!L||ae[0]&64&&h!==(h=H[6].overflowPopover||!1))&&f(s,"aria-expanded",h),H[18]&&!H[19]?O?O.p(H,ae):(O=Zh(H),O.c(),O.m(v,k)):O&&(O.d(1),O=null),H[46]&&(!H[0]||H[1])?j?j.p(H,ae):(j=Xh(H),j.c(),j.m(v,y)):j&&(j.d(1),j=null),H[7]?fe?(fe.p(H,ae),ae[0]&128&&B(fe,1)):(fe=$h(H),fe.c(),B(fe,1),fe.m(v,C)):fe&&(Ee(),G(fe,1,1,()=>{fe=null}),De()),H[12]?X?X.p(H,ae):(X=ng(H),X.c(),X.m(v,null)):X&&(X.d(1),X=null),(!L||ae[0]&64&&T!==(T=!H[6].overflowPopover))&&f(p,"aria-hidden",T),H[12]?Q?(Q.p(H,ae),ae[0]&4096&&B(Q,1)):(Q=ig(H),Q.c(),B(Q,1),Q.m(n,D)):Q&&(Ee(),G(Q,1,1,()=>{Q=null}),De()),H[14]?ce?(ce.p(H,ae),ae[0]&16384&&B(ce,1)):(ce=lg(H),ce.c(),B(ce,1),ce.m(n,I)):ce&&(Ee(),G(ce,1,1,()=>{ce=null}),De()),!H[0]||H[1]?Ce?(Ce.p(H,ae),ae[0]&3&&B(Ce,1)):(Ce=rg(H),Ce.c(),B(Ce,1),Ce.m(n,null)):Ce&&(Ee(),G(Ce,1,1,()=>{Ce=null}),De())},i(H){L||(B(g.$$.fragment,H),B(fe),B(Q),B(ce),B(Ce),L=!0)},o(H){G(g.$$.fragment,H),G(fe),G(Q),G(ce),G(Ce),L=!1},d(H){H&&A(e),ze(g),O&&O.d(),j&&j.d(),fe&&fe.d(),X&&X.d(),Q&&Q.d(),ce&&ce.d(),Ce&&Ce.d(),M=!1,Ze(F)}}}function Zh(i){let e,t,n,l;return{c(){e=S("li"),t=S("a"),t.innerHTML=`<i class="sap-icon sap-icon--search fd-top-nav__icon svelte-1q5ghii"></i>
|
|
60
60
|
<span class="fd-menu__title">Search</span>`,f(t,"class","fd-menu__link"),f(t,"data-testid","luigi-search-btn-mobile"),f(e,"class","fd-menu__item")},m(r,s){R(r,e,s),w(e,t),n||(l=ne(t,"click",Ot(i[87])),n=!0)},p:Ue,d(r){r&&A(e),n=!1,l()}}}function Xh(i){let e,t,n,l,r,s,o=(i[44]?i[44]:i[45])+"",c,g,h;return{c(){e=S("li"),t=S("a"),n=S("i"),r=q(),s=S("span"),c=Pe(o),f(n,"class",l="sap-icon fd-top-nav__icon "+(i[46].icon&&i[48](i[46])?i[47](i[46].icon):"sap-icon--switch-views")+" svelte-1q5ghii"),f(s,"class","fd-menu__title"),f(t,"class","fd-menu__link"),f(e,"class","fd-menu__item")},m(_,p){R(_,e,p),w(e,t),w(t,n),w(t,r),w(t,s),w(s,c),g||(h=ne(t,"click",Ot(i[33])),g=!0)},p(_,p){p[1]&32768&&l!==(l="sap-icon fd-top-nav__icon "+(_[46].icon&&_[48](_[46])?_[47](_[46].icon):"sap-icon--switch-views")+" svelte-1q5ghii")&&f(n,"class",l),p[1]&24576&&o!==(o=(_[44]?_[44]:_[45])+"")&&Ne(c,o)},d(_){_&&A(e),g=!1,h()}}}function $h(i){let e,t,n=i[7],l=[];for(let s=0;s<n.length;s+=1)l[s]=tg(Bh(i,n,s));const r=s=>G(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s<l.length;s+=1)l[s].c();e=ye()},m(s,o){for(let c=0;c<l.length;c+=1)l[c].m(s,o);R(s,e,o),t=!0},p(s,o){if(o[0]&416|o[1]&4128808){n=s[7];let c;for(c=0;c<n.length;c+=1){const g=Bh(s,n,c);l[c]?(l[c].p(g,o),B(l[c],1)):(l[c]=tg(g),l[c].c(),B(l[c],1),l[c].m(e.parentNode,e))}for(Ee(),c=n.length;c<l.length;c+=1)r(c);De()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)B(l[o]);t=!0}},o(s){l=l.filter(V_);for(let o=0;o<l.length;o+=1)G(l[o]);t=!1},d(s){ct(l,s),s&&A(e)}}}function xh(i){let e,t,n,l;const r=[VC,DC],s=[];function o(c,g){return c[111].isCat?1:0}return e=o(i),t=s[e]=r[e](i),{c(){t.c(),n=ye()},m(c,g){s[e].m(c,g),R(c,n,g),l=!0},p(c,g){let h=e;e=o(c),e===h?s[e].p(c,g):(Ee(),G(s[h],1,1,()=>{s[h]=null}),De(),t=s[e],t?t.p(c,g):(t=s[e]=r[e](c),t.c()),B(t,1),t.m(n.parentNode,n))},i(c){l||(B(t),l=!0)},o(c){G(t),l=!1},d(c){s[e].d(c),c&&A(n)}}}function DC(i){let e,t,n,l,r,s,o,c,g=i[49](i[111])+"",h,_,p,m,v,k,y;function C(I,L){return L[0]&128&&(l=null),l==null&&(l=!!I[48](I[111])),l?OC:MC}let T=C(i,[-1,-1,-1,-1]),N=T(i);s=new Zn({props:{node:i[111]}});function D(){return i[89](i[111])}return{c(){e=S("li"),t=S("a"),n=S("span"),N.c(),r=q(),Ge(s.$$.fragment),o=q(),c=S("span"),h=Pe(g),m=q(),f(n,"class","fd-top-nav__icon svelte-1q5ghii"),f(c,"class","fd-list__title"),f(t,"href",_=i[51](i[111])),f(t,"title",p=i[52](i[111],i[49](i[111]))),f(t,"class","fd-menu__link"),f(t,"data-e2e","mobile-topnav-dropdown-category"),f(e,"class","fd-menu__item")},m(I,L){R(I,e,L),w(e,t),w(t,n),N.m(n,null),w(n,r),He(s,n,null),w(t,o),w(t,c),w(c,h),w(e,m),v=!0,k||(y=ne(t,"click",Tt(D)),k=!0)},p(I,L){i=I,T===(T=C(i,L))&&N?N.p(i,L):(N.d(1),N=T(i),N&&(N.c(),N.m(n,r)));const M={};L[0]&128&&(M.node=i[111]),s.$set(M),(!v||L[0]&128)&&g!==(g=i[49](i[111])+"")&&Ne(h,g),(!v||L[0]&128&&_!==(_=i[51](i[111])))&&f(t,"href",_),(!v||L[0]&128&&p!==(p=i[52](i[111],i[49](i[111]))))&&f(t,"title",p)},i(I){v||(B(s.$$.fragment,I),v=!0)},o(I){G(s.$$.fragment,I),v=!1},d(I){I&&A(e),N.d(),ze(s),k=!1,y()}}}function VC(i){let e,t,n,l=!i[48](i[111]),r,s,o,c,g,h=i[49](i[111])+"",_,p,m,v,k,y,C,T,N=l&&eg(i);s=new Zn({props:{node:i[111]}});function D(){return i[88](i[111])}return{c(){e=S("li"),t=S("a"),n=S("span"),N&&N.c(),r=q(),Ge(s.$$.fragment),c=q(),g=S("span"),_=Pe(h),k=q(),f(n,"class",o="fd-top-nav__icon sap-icon "+(i[111].icon&&i[48](i[111])?i[47](i[111].icon):"")+" svelte-1q5ghii"),f(g,"class","fd-menu__title"),f(t,"href",p=i[51](i[111])),f(t,"class",m="fd-menu__link "+(i[111]===i[8]?"is-selected":"")),f(t,"data-testid",v=i[50](i[111])+"-mobile"),f(e,"class","fd-menu__item")},m(I,L){R(I,e,L),w(e,t),w(t,n),N&&N.m(n,null),w(n,r),He(s,n,null),w(t,c),w(t,g),w(g,_),w(e,k),y=!0,C||(T=ne(t,"click",Tt(D)),C=!0)},p(I,L){i=I,L[0]&128&&(l=!i[48](i[111])),l?N?N.p(i,L):(N=eg(i),N.c(),N.m(n,r)):N&&(N.d(1),N=null);const M={};L[0]&128&&(M.node=i[111]),s.$set(M),(!y||L[0]&128&&o!==(o="fd-top-nav__icon sap-icon "+(i[111].icon&&i[48](i[111])?i[47](i[111].icon):"")+" svelte-1q5ghii"))&&f(n,"class",o),(!y||L[0]&128)&&h!==(h=i[49](i[111])+"")&&Ne(_,h),(!y||L[0]&128&&p!==(p=i[51](i[111])))&&f(t,"href",p),(!y||L[0]&384&&m!==(m="fd-menu__link "+(i[111]===i[8]?"is-selected":"")))&&f(t,"class",m),(!y||L[0]&128&&v!==(v=i[50](i[111])+"-mobile"))&&f(t,"data-testid",v)},i(I){y||(B(s.$$.fragment,I),y=!0)},o(I){G(s.$$.fragment,I),y=!1},d(I){I&&A(e),N&&N.d(),ze(s),C=!1,T()}}}function MC(i){let e,t,n;return{c(){e=S("img"),rt(e.src,t=i[111].icon)||f(e,"src",t),f(e,"alt",n=i[111].altText?i[111].altText:""),f(e,"class","svelte-1q5ghii")},m(l,r){R(l,e,r)},p(l,r){r[0]&128&&!rt(e.src,t=l[111].icon)&&f(e,"src",t),r[0]&128&&n!==(n=l[111].altText?l[111].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function OC(i){let e,t;return{c(){e=S("i"),f(e,"class",t="sap-icon "+(i[111].icon&&i[48](i[111])?i[47](i[111].icon):"")+" svelte-1q5ghii")},m(n,l){R(n,e,l)},p(n,l){l[0]&128&&t!==(t="sap-icon "+(n[111].icon&&n[48](n[111])?n[47](n[111].icon):"")+" svelte-1q5ghii")&&f(e,"class",t)},d(n){n&&A(e)}}}function eg(i){let e,t,n;return{c(){e=S("img"),rt(e.src,t=i[111].icon)||f(e,"src",t),f(e,"alt",n=i[111].altText?i[111].altText:""),f(e,"class","svelte-1q5ghii")},m(l,r){R(l,e,r)},p(l,r){r[0]&128&&!rt(e.src,t=l[111].icon)&&f(e,"src",t),r[0]&128&&n!==(n=l[111].altText?l[111].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function tg(i){let e,t,n=!(i[111].hideFromNav||i[5]&&i[111].globalNav)&&xh(i);return{c(){n&&n.c(),e=ye()},m(l,r){n&&n.m(l,r),R(l,e,r),t=!0},p(l,r){l[111].hideFromNav||l[5]&&l[111].globalNav?n&&(Ee(),G(n,1,1,()=>{n=null}),De()):n?(n.p(l,r),r[0]&160&&B(n,1)):(n=xh(l),n.c(),B(n,1),n.m(e.parentNode,e))},i(l){t||(B(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function ng(i){let e,t,n,l,r,s=i[13].label+"",o,c,g;function h(m,v){return v[0]&8192&&(n=null),n==null&&(n=!!(m[48](m[13])||!m[13].icon)),n?UC:FC}let _=h(i,[-1,-1,-1,-1]),p=_(i);return{c(){e=S("li"),t=S("a"),p.c(),l=q(),r=S("span"),o=Pe(s),f(r,"class","fd-menu__title"),f(t,"class","fd-menu__link"),f(t,"data-testid","mobile-product-switcher"),f(e,"class","fd-menu__item")},m(m,v){R(m,e,v),w(e,t),p.m(t,null),w(t,l),w(t,r),w(r,o),c||(g=ne(t,"click",Ot(i[32])),c=!0)},p(m,v){_===(_=h(m,v))&&p?p.p(m,v):(p.d(1),p=_(m),p&&(p.c(),p.m(t,l))),v[0]&8192&&s!==(s=m[13].label+"")&&Ne(o,s)},d(m){m&&A(e),p.d(),c=!1,g()}}}function FC(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),rt(t.src,n=i[13].icon)||f(t,"src",n),f(t,"alt",l=i[13].altText?i[13].altText:""),f(t,"class","svelte-1q5ghii"),f(e,"class","fd-top-nav__icon sap-icon svelte-1q5ghii")},m(r,s){R(r,e,s),w(e,t)},p(r,s){s[0]&8192&&!rt(t.src,n=r[13].icon)&&f(t,"src",n),s[0]&8192&&l!==(l=r[13].altText?r[13].altText:"")&&f(t,"alt",l)},d(r){r&&A(e)}}}function UC(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-top-nav__icon sap-icon "+i[47](i[13].icon||"grid")+" svelte-1q5ghii")},m(n,l){R(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-top-nav__icon sap-icon "+n[47](n[13].icon||"grid")+" svelte-1q5ghii")&&f(e,"class",t)},d(n){n&&A(e)}}}function ig(i){let e,t,n;function l(s){i[90](s)}let r={isMobile:!0};return i[6]!==void 0&&(r.dropDownStates=i[6]),e=new D_({props:r}),xe.push(()=>bt(e,"dropDownStates",l)),e.$on("toggleDropdownState",i[91]),{c(){Ge(e.$$.fragment)},m(s,o){He(e,s,o),n=!0},p(s,o){const c={};!t&&o[0]&64&&(t=!0,c.dropDownStates=s[6],mt(()=>t=!1)),e.$set(c)},i(s){n||(B(e.$$.fragment,s),n=!0)},o(s){G(e.$$.fragment,s),n=!1},d(s){ze(e,s)}}}function lg(i){let e,t;return e=new A_({props:{node:i[15],isMobile:!0,pathParams:i[31]}}),e.$on("close",i[35]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&32768&&(r.node=n[15]),l[1]&1&&(r.pathParams=n[31]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function rg(i){let e,t,n,l,r;function s(h){i[92](h)}function o(h){i[93](h)}function c(h){i[94](h)}let g={isMobile:!0,contextSwitcherToggle:i[43]};return i[6]!==void 0&&(g.dropDownStates=i[6]),i[44]!==void 0&&(g.selectedLabel=i[44]),i[45]!==void 0&&(g.defaultLabel=i[45]),e=new E_({props:g}),xe.push(()=>bt(e,"dropDownStates",s)),xe.push(()=>bt(e,"selectedLabel",o)),xe.push(()=>bt(e,"defaultLabel",c)),e.$on("toggleDropdownState",i[95]),{c(){Ge(e.$$.fragment)},m(h,_){He(e,h,_),r=!0},p(h,_){const p={};_[1]&4096&&(p.contextSwitcherToggle=h[43]),!t&&_[0]&64&&(t=!0,p.dropDownStates=h[6],mt(()=>t=!1)),!n&&_[1]&8192&&(n=!0,p.selectedLabel=h[44],mt(()=>n=!1)),!l&&_[1]&16384&&(l=!0,p.defaultLabel=h[45],mt(()=>l=!1)),e.$set(p)},i(h){r||(B(e.$$.fragment,h),r=!0)},o(h){G(e.$$.fragment,h),r=!1},d(h){ze(e,h)}}}function sg(i){let e,t,n,l,r;const s=[WC,BC],o=[];function c(g,h){return h[0]&16&&(t=null),t==null&&(t=!!(g[4]==="Fiori3"&&ee.requestExperimentalFeature("profileMenuFiori3",!0))),t?0:1}return n=c(i,[-1,-1,-1,-1]),l=o[n]=s[n](i),{c(){e=S("div"),l.c(),f(e,"class","fd-shellbar__action fd-shellbar__action--show-always"),f(e,"data-testid","luigi-topnav-profile")},m(g,h){R(g,e,h),o[n].m(e,null),r=!0},p(g,h){let _=n;n=c(g,h),n===_?o[n].p(g,h):(Ee(),G(o[_],1,1,()=>{o[_]=null}),De(),l=o[n],l?l.p(g,h):(l=o[n]=s[n](g),l.c()),B(l,1),l.m(e,null))},i(g){r||(B(l),r=!0)},o(g){G(l),r=!1},d(g){g&&A(e),o[n].d()}}}function BC(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,k;function y(N,D){return N[17].picture?zC:HC}let C=y(i),T=C(i);return _=new T_({props:{addNavHrefForAnchor:i[28]}}),_.$on("toggleDropdownState",i[100]),_.$on("userInfoUpdated",i[42]),{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),r=S("button"),T.c(),g=q(),h=S("div"),Ge(_.$$.fragment),f(r,"class","fd-button fd-button--transparent fd-shellbar__button svelte-1q5ghii"),f(r,"aria-expanded",s=i[6].profilePopover||!1),f(r,"aria-haspopup","true"),f(r,"aria-controls","profilePopover"),f(r,"title",o=i[17].name?i[17].name:void 0),f(r,"tabindex","0"),f(r,"data-testid","luigi-topnav-profile-btn"),f(l,"class",c=i[17].picture?"fd-shellbar__button--user-menu":""),f(n,"class","fd-popover__control"),f(h,"class","fd-popover__body fd-popover__body--right"),f(h,"aria-hidden",p=!i[6].profilePopover),f(h,"id","profilePopover"),f(t,"class","fd-popover"),f(e,"class","fd-user-menu svelte-1q5ghii")},m(N,D){R(N,e,D),w(e,t),w(t,n),w(n,l),w(l,r),T.m(r,null),w(t,g),w(t,h),He(_,h,null),m=!0,v||(k=[ne(r,"click",i[99]),ne(n,"click",Ot(QC))],v=!0)},p(N,D){C===(C=y(N))&&T?T.p(N,D):(T.d(1),T=C(N),T&&(T.c(),T.m(r,null))),(!m||D[0]&64&&s!==(s=N[6].profilePopover||!1))&&f(r,"aria-expanded",s),(!m||D[0]&131072&&o!==(o=N[17].name?N[17].name:void 0))&&f(r,"title",o),(!m||D[0]&131072&&c!==(c=N[17].picture?"fd-shellbar__button--user-menu":""))&&f(l,"class",c);const I={};D[0]&268435456&&(I.addNavHrefForAnchor=N[28]),_.$set(I),(!m||D[0]&64&&p!==(p=!N[6].profilePopover))&&f(h,"aria-hidden",p)},i(N){m||(B(_.$$.fragment,N),m=!0)},o(N){G(_.$$.fragment,N),m=!1},d(N){N&&A(e),T.d(),ze(_),v=!1,Ze(k)}}}function WC(i){let e,t,n,l,r,s,o,c,g;function h(m,v){return m[17].picture?GC:qC}let _=h(i),p=_(i);return r=new eS({props:{addNavHrefForAnchor:i[28]}}),r.$on("toggleDropdownState",i[98]),r.$on("userInfoUpdated",i[42]),{c(){e=S("div"),t=S("div"),p.c(),n=q(),l=S("div"),Ge(r.$$.fragment),f(t,"class","fd-popover__control"),f(l,"class","fd-popover__body fd-popover__body--right"),f(l,"aria-hidden",s=!i[6].profilePopover),f(l,"id","profilePopover"),f(e,"class","fd-popover fd-popover--right fd-user-menu svelte-1q5ghii")},m(m,v){R(m,e,v),w(e,t),p.m(t,null),w(e,n),w(e,l),He(r,l,null),o=!0,c||(g=ne(t,"click",Ot(YC)),c=!0)},p(m,v){_===(_=h(m))&&p?p.p(m,v):(p.d(1),p=_(m),p&&(p.c(),p.m(t,null)));const k={};v[0]&268435456&&(k.addNavHrefForAnchor=m[28]),r.$set(k),(!o||v[0]&64&&s!==(s=!m[6].profilePopover))&&f(l,"aria-hidden",s)},i(m){o||(B(r.$$.fragment,m),o=!0)},o(m){G(r.$$.fragment,m),o=!1},d(m){m&&A(e),p.d(),ze(r),c=!1,g()}}}function HC(i){let e,t;return{c(){e=S("i"),f(e,"class",t="sap-icon "+(i[17].picture?"fd-identifier fd-identifier--xs fd-identifier--circle":"sap-icon--customer"))},m(n,l){R(n,e,l)},p(n,l){l[0]&131072&&t!==(t="sap-icon "+(n[17].picture?"fd-identifier fd-identifier--xs fd-identifier--circle":"sap-icon--customer"))&&f(e,"class",t)},d(n){n&&A(e)}}}function zC(i){let e;return{c(){e=S("span"),f(e,"class","fd-avatar fd-avatar--xs fd-avatar--circle svelte-1q5ghii"),li(e,"background-image","url('"+i[17].picture+"')")},m(t,n){R(t,e,n)},p(t,n){n[0]&131072&&li(e,"background-image","url('"+t[17].picture+"')")},d(t){t&&A(e)}}}function qC(i){let e,t=(i[17].initials?i[17].initials:"")+"",n,l,r,s;return{c(){e=S("button"),n=Pe(t),f(e,"class","fd-avatar fd-avatar--xs fd-avatar--circle fd-avatar--thumbnail svelte-1q5ghii"),f(e,"aria-expanded","true"),f(e,"aria-haspopup","true"),f(e,"title",l=i[17].name?i[17].name:void 0),f(e,"tabindex","0"),f(e,"data-testid","luigi-topnav-profile-initials")},m(o,c){R(o,e,c),w(e,n),r||(s=ne(e,"click",i[97]),r=!0)},p(o,c){c[0]&131072&&t!==(t=(o[17].initials?o[17].initials:"")+"")&&Ne(n,t),c[0]&131072&&l!==(l=o[17].name?o[17].name:void 0)&&f(e,"title",l)},d(o){o&&A(e),r=!1,s()}}}function GC(i){let e,t,n,l;return{c(){e=S("button"),f(e,"class","fd-avatar fd-avatar--xs fd-avatar--circle fd-avatar--thumbnail svelte-1q5ghii"),f(e,"aria-controls","profilePopover"),f(e,"aria-expanded","true"),f(e,"aria-haspopup","true"),f(e,"title",t=i[17].name?i[17].name:void 0),f(e,"tabindex","0"),li(e,"background-image","url('"+i[17].picture+"')"),f(e,"data-testid","luigi-topnav-profile-btn")},m(r,s){R(r,e,s),n||(l=ne(e,"click",i[96]),n=!0)},p(r,s){s[0]&131072&&t!==(t=r[17].name?r[17].name:void 0)&&f(e,"title",t),s[0]&131072&&li(e,"background-image","url('"+r[17].picture+"')")},d(r){r&&A(e),n=!1,l()}}}function ag(i){let e,t,n;function l(s){i[101](s)}let r={isMobile:!1,addNavHrefForAnchor:i[28]};return i[6]!==void 0&&(r.dropDownStates=i[6]),e=new D_({props:r}),xe.push(()=>bt(e,"dropDownStates",l)),e.$on("toggleDropdownState",i[102]),{c(){Ge(e.$$.fragment)},m(s,o){He(e,s,o),n=!0},p(s,o){const c={};o[0]&268435456&&(c.addNavHrefForAnchor=s[28]),!t&&o[0]&64&&(t=!0,c.dropDownStates=s[6],mt(()=>t=!1)),e.$set(c)},i(s){n||(B(e.$$.fragment,s),n=!0)},o(s){G(e.$$.fragment,s),n=!1},d(s){ze(e,s)}}}function KC(i){let e,t,n,l,r,s;const o=[TC,IC],c=[];function g(h,_){return h[29]?0:1}return e=g(i),t=c[e]=o[e](i),{c(){t.c(),n=ye()},m(h,_){c[e].m(h,_),R(h,n,_),l=!0,r||(s=[ne(Uh,"click",i[41]),ne(Uh,"blur",i[41])],r=!0)},p(h,_){let p=e;e=g(h),e===p?c[e].p(h,_):(Ee(),G(c[p],1,1,()=>{c[p]=null}),De(),t=c[e],t?t.p(h,_):(t=c[e]=o[e](h),t.c()),B(t,1),t.m(n.parentNode,n))},i(h){l||(B(t),l=!0)},o(h){G(t),l=!1},d(h){c[e].d(h),h&&A(n),r=!1,Ze(s)}}}const JC=()=>{},jC=()=>{},YC=()=>{},QC=()=>{};function ZC(i,e,t){const n=Wt();let{authorizationEnabled:l}=e,{autologinEnabled:r}=e,{isLoggedIn:s=!1}=e,{hideNavComponent:o}=e,{responsiveNavSetting:c}=e,{profileTypeSettings:g}=e,{showGlobalNav:h}=e,{pathData:_}=e,p,{pathParams:m}=e,{dropDownStates:v={}}=e,{children:k}=e,{selectedNode:y}=e,{visibleNodeCount:C}=e,{globalNavNodeCount:T}=e,{totalBadgeNode:N}=e,{isProductSwitcherAvailable:D}=e,{productSwitcherConfig:I}=e,{openMobileDropDown:L}=e,{nodeForMobile:M}=e,{profileItemsAvailable:F}=e,{userInfo:O={}}=e,{urlAuthError:j}=e,{globalSearchConfig:fe}=e,{isGlobalSearchCentered:X}=e,{isSearchFieldVisible:Q}=e,{inputElem:ce}=e,{luigiCustomSearchRenderer__slot:Ce}=e,{displaySearchResult:H}=e,{displayCustomSearchResult:ae}=e,{searchResult:$}=e,{burgerTooltip:K}=e,{responsiveShellbarPadding:le}=e,ve=vt("store"),ue=!1,x,be,ke=re.getConfigValue("navigation.contextSwitcher"),{addNavHrefForAnchor:we=re.getConfigBooleanValue("navigation.addNavHrefs")}=e;const ie=async()=>{if(_&&0<_.length){const J=await Te.generateTopNavNodes(_);t(7,k=J.children),t(8,y=J.selectedNode),t(9,C=J.visibleNodeCount),t(11,N=J.totalBadgeNode),t(10,T=J.globalNavNodeCount),window.TOPNAVDATA=J.children,p=_}},Re=()=>{t(1,s=al.isLoggedIn())};Kt(()=>{Fn.doOnStoreChange(ve,()=>{t(0,l=gi.isAuthorizationEnabled()),t(16,F=re.getConfigValue("navigation.profile")),t(54,r=!Boolean(re.getConfigValue("auth.disableAutoLogin"))),t(12,D=re.getConfigValue("navigation.productSwitcher")),t(2,o=re.getConfigBooleanValue("settings.hideNavigation")),t(3,c=re.getConfigValue("settings.responsiveNavigation")),t(4,g=re.getConfigValue("settings.profileType")),t(27,le=re.getConfigValue("settings.header.responsiveShellbarPaddings")),t(13,I=Te.getProductSwitcherConfig()),t(18,fe=re.getConfigValue("globalSearch")),t(19,X=fe&&fe.searchFieldCentered&&ee.requestExperimentalFeature("globalSearchCentered",!0)),t(5,h=re.getConfigBooleanValue("settings.globalSideNavigation")&&ee.requestExperimentalFeature("globalNav",!0)),t(28,we=re.getConfigBooleanValue("navigation.addNavHrefs")),t(46,ke=re.getConfigValue("navigation.contextSwitcher"))},["navigation"]),Pn.addEventListener("message",J=>{J.data.msg==="luigi.navigation.update-badge-counters"&&ie()})}),On(()=>{(!p||p!=_)&&ie(),Re()});let{showTopNav:Le}=e;function _e(J){return Te.renderIconClassName(J)}function tt(J){return Te.isOpenUIiconName(J.icon)}function Ft(J){return ht.getTranslation(J.label)}function Jt(J){return J.testId?J.testId:Te.prepareForTests(J.pathSegment,J.label)}function Rt(J){return pe.getNodeHref(J,m)}function Un(J,Et){return Te.generateTooltipText(J,Et)}function Bi(){dt("productSwitcherPopover")}function zt(){t(43,ue=!ue),dt("contextSwitcherPopover")}function bi(J){t(14,L=!0),t(15,M=J)}function Wi(){t(14,L=!1)}function $t(J){n("handleClick",{node:J})}function jt(J){n("handleSearchNavigation",{node:J})}function Xn(J){$t(J.detail.node)}function dt(J){const Et=v||{},on=!Et[J];nn(),Wi(),Et[J]=on,t(6,v=Et)}function dn(J){dt(J.detail.name)}function $n(){ce&&ce.focus()}function tn(){Q||setTimeout(()=>{$n()}),n("toggleSearch",{isSearchFieldVisible:Q,inputElem:ce,luigiCustomSearchRenderer__slot:Ce})}function nn(){const J=v||{},Et=Object.keys(J);Et&&Et.length>0&&Et.forEach(on=>{J[on]=!1,t(6,v=J)})}function Bn(){c==="simple"||c==="simpleMobileOnly"?ln():te(),vi()}function vi(){if(!Te.getBurgerTooltipConfig())return;const[J,Et]=Te.getBurgerTooltipConfig();J&&Et&&(document.body.classList.contains("lui-simpleSlideInNav")&&t(26,K=document.body.classList.contains("lui-leftNavToggle")?J:Et),document.body.classList.contains("lui-semiCollapsible")&&t(26,K=document.body.classList.contains("semiCollapsed")?J:Et))}function ln(){document.body.classList.toggle("lui-leftNavToggle"),document.getElementsByClassName("fd-tabs").length>0&&n("resizeTabNav",{})}function te(){di.buttonClicked(),document.getElementsByClassName("fd-tabs").length>0&&n("resizeTabNav",{})}function Ve(J){const Et=J.detail;t(17,O=Et||{})}function gt(J){v=J,t(6,v)}function yt(J){Q=J,t(20,Q)}function Pt(J){$=J,t(25,$)}function wt(J){H=J,t(23,H)}function an(J){ae=J,t(24,ae)}function Nn(J){ce=J,t(21,ce)}function ri(J){Ce=J,t(22,Ce)}function Hi(J){Ll.call(this,i,J)}function cl(J){Ll.call(this,i,J)}function wi(J){Ll.call(this,i,J)}function hr(J){Q=J,t(20,Q)}function gr(J){$=J,t(25,$)}function _r(J){H=J,t(23,H)}function pr(J){ae=J,t(24,ae)}function El(J){ce=J,t(21,ce)}function mr(J){Ce=J,t(22,Ce)}function br(J){Ll.call(this,i,J)}function vr(J){Ll.call(this,i,J)}function ki(J){Ll.call(this,i,J)}function zi(J){v=J,t(6,v)}const Si=()=>dt("contextSwitcherPopover");function qi(J,Et,on,Pi){on[Pi]=J,t(7,k)}const Dl=J=>dt(`dropDownPopover-${J}`);function Vl(J,Et,on,Pi){on[Pi]=J,t(7,k)}const Ml=(J,Et)=>{Te.handleNavAnchorClickedWithoutMetaKey(Et)&&$t(J)};function wr(J,Et,on,Pi){on[Pi]=J,t(7,k)}const mn=J=>$t(J),dl=()=>dt("overflowPopover"),hl=()=>{tn(),dt("overflowPopover")},gl=J=>$t(J),kr=J=>bi(J);function Gi(J){v=J,t(6,v)}const _l=()=>dt("productSwitcherPopover");function pl(J){v=J,t(6,v)}function ml(J){x=J,t(44,x)}function Ol(J){be=J,t(45,be)}const Ci=()=>dt("contextSwitcherPopover"),St=()=>dt("profilePopover"),si=()=>dt("profilePopover"),bl=()=>dt("profilePopover"),Fl=()=>dt("profilePopover"),Ul=()=>dt("profilePopover");function ai(J){v=J,t(6,v)}const Ut=()=>dt("productSwitcherPopover"),yi=()=>dt("profilePopover");return i.$$set=J=>{"authorizationEnabled"in J&&t(0,l=J.authorizationEnabled),"autologinEnabled"in J&&t(54,r=J.autologinEnabled),"isLoggedIn"in J&&t(1,s=J.isLoggedIn),"hideNavComponent"in J&&t(2,o=J.hideNavComponent),"responsiveNavSetting"in J&&t(3,c=J.responsiveNavSetting),"profileTypeSettings"in J&&t(4,g=J.profileTypeSettings),"showGlobalNav"in J&&t(5,h=J.showGlobalNav),"pathData"in J&&t(30,_=J.pathData),"pathParams"in J&&t(31,m=J.pathParams),"dropDownStates"in J&&t(6,v=J.dropDownStates),"children"in J&&t(7,k=J.children),"selectedNode"in J&&t(8,y=J.selectedNode),"visibleNodeCount"in J&&t(9,C=J.visibleNodeCount),"globalNavNodeCount"in J&&t(10,T=J.globalNavNodeCount),"totalBadgeNode"in J&&t(11,N=J.totalBadgeNode),"isProductSwitcherAvailable"in J&&t(12,D=J.isProductSwitcherAvailable),"productSwitcherConfig"in J&&t(13,I=J.productSwitcherConfig),"openMobileDropDown"in J&&t(14,L=J.openMobileDropDown),"nodeForMobile"in J&&t(15,M=J.nodeForMobile),"profileItemsAvailable"in J&&t(16,F=J.profileItemsAvailable),"userInfo"in J&&t(17,O=J.userInfo),"urlAuthError"in J&&t(55,j=J.urlAuthError),"globalSearchConfig"in J&&t(18,fe=J.globalSearchConfig),"isGlobalSearchCentered"in J&&t(19,X=J.isGlobalSearchCentered),"isSearchFieldVisible"in J&&t(20,Q=J.isSearchFieldVisible),"inputElem"in J&&t(21,ce=J.inputElem),"luigiCustomSearchRenderer__slot"in J&&t(22,Ce=J.luigiCustomSearchRenderer__slot),"displaySearchResult"in J&&t(23,H=J.displaySearchResult),"displayCustomSearchResult"in J&&t(24,ae=J.displayCustomSearchResult),"searchResult"in J&&t(25,$=J.searchResult),"burgerTooltip"in J&&t(26,K=J.burgerTooltip),"responsiveShellbarPadding"in J&&t(27,le=J.responsiveShellbarPadding),"addNavHrefForAnchor"in J&&t(28,we=J.addNavHrefForAnchor),"showTopNav"in J&&t(29,Le=J.showTopNav)},i.$$.update=()=>{i.$$.dirty[0]&3|i.$$.dirty[1]&8388608&&t(29,Le=l&&(!r||s)||!l)},[l,s,o,c,g,h,v,k,y,C,T,N,D,I,L,M,F,O,fe,X,Q,ce,Ce,H,ae,$,K,le,we,Le,_,m,Bi,zt,bi,Wi,$t,Xn,dt,dn,tn,nn,Ve,ue,x,be,ke,_e,tt,Ft,Jt,Rt,Un,Bn,r,j,jt,ln,te,gt,yt,Pt,wt,an,Nn,ri,Hi,cl,wi,hr,gr,_r,pr,El,mr,br,vr,ki,zi,Si,qi,Dl,Vl,Ml,wr,mn,dl,hl,gl,kr,Gi,_l,pl,ml,Ol,Ci,St,si,bl,Fl,Ul,ai,Ut,yi]}class XC extends At{constructor(e){super(),Lt(this,e,ZC,KC,It,{authorizationEnabled:0,autologinEnabled:54,isLoggedIn:1,hideNavComponent:2,responsiveNavSetting:3,profileTypeSettings:4,showGlobalNav:5,pathData:30,pathParams:31,dropDownStates:6,children:7,selectedNode:8,visibleNodeCount:9,globalNavNodeCount:10,totalBadgeNode:11,isProductSwitcherAvailable:12,productSwitcherConfig:13,openMobileDropDown:14,nodeForMobile:15,profileItemsAvailable:16,userInfo:17,urlAuthError:55,globalSearchConfig:18,isGlobalSearchCentered:19,isSearchFieldVisible:20,inputElem:21,luigiCustomSearchRenderer__slot:22,displaySearchResult:23,displayCustomSearchResult:24,searchResult:25,burgerTooltip:26,responsiveShellbarPadding:27,addNavHrefForAnchor:28,showTopNav:29,openMobileProductSwitcher:32,openMobileContextSwitcher:33,openMobileTopNavDropDown:34,closeMobileTopNavDropDown:35,handleClick:36,handleSearchNavigation:56,handleClickExternal:37,toggleDropdownState:38,toggleDropdownStateExternal:39,toggleSearch:40,closeAllDropdowns:41,simpleNav:57,semicollapsedNav:58,userInfoUpdate:42},null,[-1,-1,-1,-1])}get openMobileProductSwitcher(){return this.$$.ctx[32]}get openMobileContextSwitcher(){return this.$$.ctx[33]}get openMobileTopNavDropDown(){return this.$$.ctx[34]}get closeMobileTopNavDropDown(){return this.$$.ctx[35]}get handleClick(){return this.$$.ctx[36]}get handleSearchNavigation(){return this.$$.ctx[56]}get handleClickExternal(){return this.$$.ctx[37]}get toggleDropdownState(){return this.$$.ctx[38]}get toggleDropdownStateExternal(){return this.$$.ctx[39]}get toggleSearch(){return this.$$.ctx[40]}get closeAllDropdowns(){return this.$$.ctx[41]}get simpleNav(){return this.$$.ctx[57]}get semicollapsedNav(){return this.$$.ctx[58]}get userInfoUpdate(){return this.$$.ctx[42]}}const{window:yo}=Ui;function og(i,e,t){const n=i.slice();return n[34]=e[t][0],n[35]=e[t][1],n[37]=t,n}function ug(i,e,t){const n=i.slice();return n[38]=e[t],n}function fg(i,e,t){const n=i.slice();return n[38]=e[t],n[40]=t,n}function cg(i,e,t){const n=i.slice();return n[34]=e[t][0],n[35]=e[t][1],n[37]=t,n}function dg(i,e,t){const n=i.slice();return n[38]=e[t],n}function hg(i,e,t){const n=i.slice();return n[38]=e[t],n[40]=t,n}function gg(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,k=Object.entries(i[0]),y=[];for(let N=0;N<k.length;N+=1)y[N]=kg(cg(i,k,N));let C=Object.entries(i[0]),T=[];for(let N=0;N<C.length;N+=1)T[N]=yg(og(i,C,N));return{c(){e=S("nav"),t=S("div"),n=S("div");for(let N=0;N<y.length;N+=1)y[N].c();l=q(),r=S("div"),s=S("span"),o=S("div"),c=S("a"),c.innerHTML=`<span class="label fd-tabs__tag svelte-1kb8g8n">More</span>
|
|
61
|
-
<span class="sap-icon--dropdown luigi-icon--dropdown svelte-1kb8g8n"></span>`,g=q(),h=S("div"),_=S("ul");for(let N=0;N<T.length;N+=1)T[N].c();f(n,"class","tabsContainer luigi-tabsContainer svelte-1kb8g8n"),f(t,"class","tabsContainerWrapper svelte-1kb8g8n"),f(c,"class","fd-tabs__link fd-popover__control has-child luigi__more svelte-1kb8g8n"),f(c,"aria-expanded","false"),f(c,"role","tab"),f(_,"class","fd-nested-list fd-nested-list--compact fd-nested-list--text-only svelte-1kb8g8n"),f(h,"class","fd-popover__body fd-popover__body--right fd-popover__body--no-arrow svelte-1kb8g8n"),f(h,"aria-hidden",p=!i[4]),f(o,"class","fd-popover fd-popover--right"),f(s,"class","fd-tabs__item svelte-1kb8g8n"),f(r,"class","luigi-tabsMoreButton svelte-1kb8g8n"),f(e,"class","fd-tabs fd-tabs--l svelte-1kb8g8n"),f(e,"role","tablist"),f(e,"id","tabsContainer")},m(N,D){R(N,e,D),w(e,t),w(t,n);for(let I=0;I<y.length;I+=1)y[I].m(n,null);w(e,l),w(e,r),w(r,s),w(s,o),w(o,c),w(o,g),w(o,h),w(h,_);for(let I=0;I<T.length;I+=1)T[I].m(_,null);m||(v=[ne(c,"click",Tt(i[10])),ne(s,"click",ly),ne(e,"toggleDropdownState",i[24])],m=!0)},p(N,D){if(D[0]&10477){k=Object.entries(N[0]);let I;for(I=0;I<k.length;I+=1){const L=cg(N,k,I);y[I]?y[I].p(L,D):(y[I]=kg(L),y[I].c(),y[I].m(n,null))}for(;I<y.length;I+=1)y[I].d(1);y.length=k.length}if(D[0]&10477){C=Object.entries(N[0]);let I;for(I=0;I<C.length;I+=1){const L=og(N,C,I);T[I]?T[I].p(L,D):(T[I]=yg(L),T[I].c(),T[I].m(_,null))}for(;I<T.length;I+=1)T[I].d(1);T.length=C.length}D[0]&16&&p!==(p=!N[4])&&f(h,"aria-hidden",p)},d(N){N&&A(e),ct(y,N),ct(T,N),m=!1,Ze(v)}}}function $C(i){let e,t,n,l,r,s=i[11](i[34])+"",o,c,g,h,_,p,m,v,k,y,C,T,N;function D(){return i[18](i[34])}let I=i[35],L=[];for(let M=0;M<I.length;M+=1)L[M]=mg(dg(i,I,M));return{c(){e=S("span"),t=S("div"),n=S("div"),l=S("a"),r=S("span"),o=Pe(s),c=q(),g=S("span"),_=q(),p=S("div"),m=S("nav"),v=S("ul");for(let M=0;M<L.length;M+=1)L[M].c();y=q(),f(r,"class","label fd-tabs__tag svelte-1kb8g8n"),f(g,"class","sap-icon--dropdown luigi-icon--dropdown svelte-1kb8g8n"),f(l,"class","fd-tabs__link has-child svelte-1kb8g8n"),f(l,"aria-expanded","false"),f(l,"role","tab"),f(l,"aria-selected",h=sr(i[34],i[2])),f(n,"class","fd-popover__control"),f(v,"class","fd-menu__list fd-menu__list--no-shadow"),f(m,"class","fd-menu"),f(p,"class","fd-popover__body fd-popover__body--no-arrow"),f(p,"aria-hidden",k=!i[3][i[34]]),f(t,"class","fd-popover"),f(e,"class","fd-tabs__item svelte-1kb8g8n"),f(e,"uid",i[37]+"-0"),f(e,"isselected",C=sr(i[34],i[2]))},m(M,F){R(M,e,F),w(e,t),w(t,n),w(n,l),w(l,r),w(r,o),w(l,c),w(l,g),w(t,_),w(t,p),w(p,m),w(m,v);for(let O=0;O<L.length;O+=1)L[O].m(v,null);w(e,y),T||(N=[ne(l,"click",Tt(D)),ne(e,"click",iy)],T=!0)},p(M,F){if(i=M,F[0]&2049&&s!==(s=i[11](i[34])+"")&&Ne(o,s),F[0]&5&&h!==(h=sr(i[34],i[2]))&&f(l,"aria-selected",h),F[0]&10309){I=i[35];let O;for(O=0;O<I.length;O+=1){const j=dg(i,I,O);L[O]?L[O].p(j,F):(L[O]=mg(j),L[O].c(),L[O].m(v,null))}for(;O<L.length;O+=1)L[O].d(1);L.length=I.length}F[0]&9&&k!==(k=!i[3][i[34]])&&f(p,"aria-hidden",k),F[0]&5&&C!==(C=sr(i[34],i[2]))&&f(e,"isselected",C)},d(M){M&&A(e),ct(L,M),T=!1,Ze(N)}}}function xC(i){let e,t=i[35],n=[];for(let l=0;l<t.length;l+=1)n[l]=wg(hg(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=ye()},m(l,r){for(let s=0;s<n.length;s+=1)n[s].m(l,r);R(l,e,r)},p(l,r){if(r[0]&10309){t=l[35];let s;for(s=0;s<t.length;s+=1){const o=hg(l,t,s);n[s]?n[s].p(o,r):(n[s]=wg(o),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){ct(n,l),l&&A(e)}}}function _g(i){let e,t=i[38].label&&pg(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[38].label?t?t.p(n,l):(t=pg(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function pg(i){let e,t,n,l=i[11](i[38].label)+"",r,s,o,c,g,h;function _(){return i[19](i[38])}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Pe(l),c=q(),f(n,"class","fd-menu__title"),f(t,"href",s=i[13](i[38])),f(t,"class","fd-menu__link"),f(t,"aria-selected",o=i[38]===i[2]),f(e,"class","fd-menu__item")},m(p,m){R(p,e,m),w(e,t),w(t,n),w(n,r),w(e,c),g||(h=ne(t,"click",Tt(_)),g=!0)},p(p,m){i=p,m[0]&2049&&l!==(l=i[11](i[38].label)+"")&&Ne(r,l),m[0]&1&&s!==(s=i[13](i[38]))&&f(t,"href",s),m[0]&5&&o!==(o=i[38]===i[2])&&f(t,"aria-selected",o)},d(p){p&&A(e),g=!1,h()}}}function mg(i){let e,t=!i[38].hideFromNav&&_g(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[38].hideFromNav?t&&(t.d(1),t=null):t?t.p(n,l):(t=_g(n),t.c(),t.m(e.parentNode,e))},d(n){t&&t.d(n),n&&A(e)}}}function bg(i){let e,t=i[38].label&&vg(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[38].label?t?t.p(n,l):(t=vg(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function vg(i){let e,t,n,l=i[11](i[38].label)+"",r,s,o,c,g,h,_,p;function m(){return i[17](i[38])}return{c(){e=S("span"),t=S("a"),n=S("span"),r=Pe(l),c=q(),f(n,"class","fd-tabs__tag"),f(t,"class","fd-tabs__link"),f(t,"href",s=i[13](i[38])),f(t,"role","tab"),f(t,"aria-selected",o=i[38]===i[2]),f(e,"class",g="fd-tabs__item "+(i[38]===i[2]?"is-selected":"")+" svelte-1kb8g8n"),f(e,"uid",i[37]+"-"+i[40]),f(e,"isselected",h=i[38]===i[2])},m(v,k){R(v,e,k),w(e,t),w(t,n),w(n,r),w(e,c),_||(p=ne(t,"click",Tt(m)),_=!0)},p(v,k){i=v,k[0]&2049&&l!==(l=i[11](i[38].label)+"")&&Ne(r,l),k[0]&1&&s!==(s=i[13](i[38]))&&f(t,"href",s),k[0]&5&&o!==(o=i[38]===i[2])&&f(t,"aria-selected",o),k[0]&5&&g!==(g="fd-tabs__item "+(i[38]===i[2]?"is-selected":"")+" svelte-1kb8g8n")&&f(e,"class",g),k[0]&5&&h!==(h=i[38]===i[2])&&f(e,"isselected",h)},d(v){v&&A(e),_=!1,p()}}}function wg(i){let e,t=!i[38].hideFromNav&&bg(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[38].hideFromNav?t&&(t.d(1),t=null):t?t.p(n,l):(t=bg(n),t.c(),t.m(e.parentNode,e))},d(n){t&&t.d(n),n&&A(e)}}}function kg(i){let e,t;function n(s,o){return o[0]&33&&(e=null),e==null&&(e=s[34]==="undefined"||s[34].indexOf(s[5])===0),e?xC:$C}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=ye()},m(s,o){r.m(s,o),R(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function ey(i){let e,t,n,l,r=i[11](i[34])+"",s,o,c,g,h,_,p,m,v,k,y,C,T,N;function D(){return i[21](i[34],i[37])}function I(){return i[22](i[34],i[37])}let L=i[35],M=[];for(let F=0;F<L.length;F+=1)M[F]=Sg(ug(i,L,F));return{c(){e=S("li"),t=S("div"),n=S("a"),l=S("span"),s=Pe(r),g=q(),h=S("button"),_=S("i"),v=q(),k=S("ul");for(let F=0;F<M.length;F+=1)M[F].c();C=q(),f(l,"class","fd-nested-list__title"),f(n,"href","javascript:void(null)"),f(n,"tabindex","-1"),f(n,"class","fd-nested-list__link"),f(n,"id","tabnav_list_level1_"+i[37]),f(n,"aria-haspopup","true"),f(n,"aria-expanded",o=i[3][i[34]+i[37]]),f(n,"aria-selected",c=sr(i[34],i[2])),f(_,"class",p=i[3][i[34]+i[37]]?"sap-icon--navigation-down-arrow":"sap-icon--navigation-right-arrow"),f(_,"role","presentation"),f(h,"class","fd-button fd-nested-list__button"),f(h,"href","#"),f(h,"tabindex","-1"),f(h,"aria-label","Expand submenu"),f(h,"aria-haspopup","true"),f(h,"aria-expanded",m=i[3][i[34]+i[37]]),f(t,"class","fd-nested-list__content has-child svelte-1kb8g8n"),f(t,"tabindex","0"),f(k,"class","fd-nested-list level-2"),f(k,"aria-hidden",y=!i[3][i[34]+i[37]]),f(e,"class","fd-nested-list__item"),f(e,"uid",i[37]+"-0")},m(F,O){R(F,e,O),w(e,t),w(t,n),w(n,l),w(l,s),w(t,g),w(t,h),w(h,_),w(e,v),w(e,k);for(let j=0;j<M.length;j+=1)M[j].m(k,null);w(e,C),T||(N=[ne(n,"click",Tt(D)),ne(h,"click",Tt(I))],T=!0)},p(F,O){if(i=F,O[0]&2049&&r!==(r=i[11](i[34])+"")&&Ne(s,r),O[0]&9&&o!==(o=i[3][i[34]+i[37]])&&f(n,"aria-expanded",o),O[0]&5&&c!==(c=sr(i[34],i[2]))&&f(n,"aria-selected",c),O[0]&9&&p!==(p=i[3][i[34]+i[37]]?"sap-icon--navigation-down-arrow":"sap-icon--navigation-right-arrow")&&f(_,"class",p),O[0]&9&&m!==(m=i[3][i[34]+i[37]])&&f(h,"aria-expanded",m),O[0]&10309){L=i[35];let j;for(j=0;j<L.length;j+=1){const fe=ug(i,L,j);M[j]?M[j].p(fe,O):(M[j]=Sg(fe),M[j].c(),M[j].m(k,null))}for(;j<M.length;j+=1)M[j].d(1);M.length=L.length}O[0]&9&&y!==(y=!i[3][i[34]+i[37]])&&f(k,"aria-hidden",y)},d(F){F&&A(e),ct(M,F),T=!1,Ze(N)}}}function ty(i){let e,t=i[35],n=[];for(let l=0;l<t.length;l+=1)n[l]=Cg(fg(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=ye()},m(l,r){for(let s=0;s<n.length;s+=1)n[s].m(l,r);R(l,e,r)},p(l,r){if(r[0]&10309){t=l[35];let s;for(s=0;s<t.length;s+=1){const o=fg(l,t,s);n[s]?n[s].p(o,r):(n[s]=Cg(o),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){ct(n,l),l&&A(e)}}}function Sg(i){let e,t,n,l=i[11](i[38].label)+"",r,s,o,c,g,h;function _(){return i[23](i[38])}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Pe(l),c=q(),f(n,"class","fd-nested-list__title"),f(t,"class","fd-nested-list__link"),f(t,"href",s=i[13](i[38])),f(t,"aria-selected",o=i[38]===i[2]),f(e,"class","fd-nested-list__item"),f(e,"aria-labelledby","tabnav_list_level1_"+i[37])},m(p,m){R(p,e,m),w(e,t),w(t,n),w(n,r),w(e,c),g||(h=ne(t,"click",Tt(_)),g=!0)},p(p,m){i=p,m[0]&2049&&l!==(l=i[11](i[38].label)+"")&&Ne(r,l),m[0]&1&&s!==(s=i[13](i[38]))&&f(t,"href",s),m[0]&5&&o!==(o=i[38]===i[2])&&f(t,"aria-selected",o)},d(p){p&&A(e),g=!1,h()}}}function Cg(i){let e,t,n,l=i[11](i[38].label)+"",r,s,o,c,g,h;function _(){return i[20](i[38])}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Pe(l),c=q(),f(n,"class","fd-nested-list__title"),f(t,"href",s=i[13](i[38])),f(t,"class","fd-nested-list__link"),f(t,"aria-selected",o=i[38]===i[2]),f(e,"class","fd-nested-list__item"),f(e,"uid",i[37]+"-"+i[40])},m(p,m){R(p,e,m),w(e,t),w(t,n),w(n,r),w(e,c),g||(h=ne(t,"click",Tt(_)),g=!0)},p(p,m){i=p,m[0]&2049&&l!==(l=i[11](i[38].label)+"")&&Ne(r,l),m[0]&1&&s!==(s=i[13](i[38]))&&f(t,"href",s),m[0]&5&&o!==(o=i[38]===i[2])&&f(t,"aria-selected",o)},d(p){p&&A(e),g=!1,h()}}}function yg(i){let e,t;function n(s,o){return o[0]&33&&(e=null),e==null&&(e=s[34]==="undefined"||s[34].indexOf(s[5])===0),e?ty:ey}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=ye()},m(s,o){r.m(s,o),R(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function ny(i){let e,t,n,l=i[0]&&i[1].length>1&&gg(i);return{c(){l&&l.c(),e=ye()},m(r,s){l&&l.m(r,s),R(r,e,s),t||(n=[ne(yo,"click",i[8]),ne(yo,"blur",i[8]),ne(yo,"resize",i[9])],t=!0)},p(r,s){r[0]&&r[1].length>1?l?l.p(r,s):(l=gg(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ue,o:Ue,d(r){l&&l.d(r),r&&A(e),t=!1,Ze(n)}}}function sr(i,e){return e&&e.category&&(e.category===i||e.category.label===i)}const iy=i=>i.stopPropagation(),ly=i=>i.stopPropagation();function ry(i,e,t){let n,{children:l}=e,{pathData:r}=e,{pathParams:s}=e,o,{hideNavComponent:c}=e,{virtualGroupPrefix:g=Te.virtualGroupPrefix}=e,h,{selectedNodeForTabNav:_}=e,{dropDownStates:p={}}=e,{isMoreBtnExpanded:m=!1}=e,{resizeTabNavToggle:v}=e,k,y=vt("getTranslation");mi(i,y,le=>t(11,n=le));const C={get:()=>({children:l,pathData:r,hideNavComponent:c,virtualGroupPrefix:g,selectedNode:h,selectedNodeForTabNav:_,dropDownStates:p,isMoreBtnExpanded:m}),set:le=>{le&&Object.getOwnPropertyNames(le).forEach(ve=>{ve==="pathData"?t(1,r=le.pathData):ve==="context"?context=le.context:ve==="children"?t(0,l=le.children):ve==="selectedNode"?h=le.selectedNode:ve==="selectedNodeForTabNav"&&t(2,_=le.selectedNodeForTabNav)})}},T=Wt(),N=async()=>{const le=C.get(),ve=await Mt.getTabNavData({...le},le);!ve||(C.set({...ve}),o=r,window.LEFTNAVDATA=ve.groupedChildren,setTimeout(D))},D=()=>{I();let le=document.getElementsByClassName("luigi-tabsContainer")[0],ve=document.getElementsByClassName("luigi-tabsMoreButton")[0],ue=document.getElementsByClassName("luigi__more")[0],x,be=0,ke=!1,we,ie;ue&&ue.setAttribute("aria-selected","false"),le&&(x=le.offsetWidth,[...le.children].forEach(Le=>{we=Le.currentStyle||window.getComputedStyle(Le),ie=parseFloat(we.marginLeft)+parseFloat(we.marginRight),be+=Le.offsetWidth+ie;let _e=Le.getAttribute("uid");be>=x?(Le.classList.add("hide_element"),Le.getAttribute("isSelected")==="true"&&ue.setAttribute("aria-selected","true"),document.querySelector('li[uid="'+_e+'"]').classList.remove("hide_element"),ke=!0):document.querySelector('li[uid="'+_e+'"]').classList.add("hide_element")}),ke?ve.classList.remove("hide_element"):ve.classList.add("hide_element"))},I=()=>{let le=document.getElementsByClassName("luigi-tabsContainer")[0];le!==void 0&&[...le.children].forEach(ue=>{ue.classList.remove("hide_element")})};Kt(()=>{t(14,c=re.getConfigBooleanValue("settings.hideNavigation"))}),On(()=>{(!o||o!=r)&&N(),(k===void 0||k!==v)&&(k=v,N())});function L(le){return pe.getNodeHref(le,s)}function M(le){O(),T("handleClick",{node:le})}function F(le){let ve={};p[le]||(ve[le]=!0),t(3,p=ve)}function O(){t(3,p={}),t(4,m=!1)}function j(){I(),D()}function fe(){t(4,m=!m)}const X=le=>M(le),Q=le=>F(le),ce=le=>M(le),Ce=le=>M(le),H=(le,ve)=>F(le+ve),ae=(le,ve)=>F(le+ve),$=le=>M(le),K=le=>F(le.name);return i.$$set=le=>{"children"in le&&t(0,l=le.children),"pathData"in le&&t(1,r=le.pathData),"pathParams"in le&&t(15,s=le.pathParams),"hideNavComponent"in le&&t(14,c=le.hideNavComponent),"virtualGroupPrefix"in le&&t(5,g=le.virtualGroupPrefix),"selectedNodeForTabNav"in le&&t(2,_=le.selectedNodeForTabNav),"dropDownStates"in le&&t(3,p=le.dropDownStates),"isMoreBtnExpanded"in le&&t(4,m=le.isMoreBtnExpanded),"resizeTabNavToggle"in le&&t(16,v=le.resizeTabNavToggle)},[l,r,_,p,m,g,M,F,O,j,fe,n,y,L,c,s,v,X,Q,ce,Ce,H,ae,$,K]}class sy extends At{constructor(e){super(),Lt(this,e,ry,ny,It,{children:0,pathData:1,pathParams:15,hideNavComponent:14,virtualGroupPrefix:5,selectedNodeForTabNav:2,dropDownStates:3,isMoreBtnExpanded:4,resizeTabNavToggle:16,handleClick:6,toggleDropdownState:7,closeAllDropdowns:8,onResize:9,toggleMoreBtn:10},null,[-1,-1])}get handleClick(){return this.$$.ctx[6]}get toggleDropdownState(){return this.$$.ctx[7]}get closeAllDropdowns(){return this.$$.ctx[8]}get onResize(){return this.$$.ctx[9]}get toggleMoreBtn(){return this.$$.ctx[10]}}function Pg(i,e,t){const n=i.slice();return n[24]=e[t],n[26]=t,n}function Ng(i,e,t){const n=i.slice();return n[24]=e[t],n[26]=t,n}function Ig(i){let e,t,n,l,r,s=i[0]&&i[3].length>0&&Tg(i),o=i[0]&&i[3].length>0&&Eg(i);return{c(){e=S("div"),t=S("nav"),n=S("div"),s&&s.c(),l=q(),r=S("div"),o&&o.c(),f(n,"class","fd-side-nav__main-navigation"),f(r,"class","fd-side-nav__utility svelte-174hcxg"),f(r,"aria-label","Utility Menu"),f(t,"class","fd-side-nav fd-side-nav--condensed svelte-174hcxg"),f(e,"class","lui-globalnav svelte-174hcxg")},m(c,g){R(c,e,g),w(e,t),w(t,n),s&&s.m(n,null),w(t,l),w(t,r),o&&o.m(r,null)},p(c,g){c[0]&&c[3].length>0?s?s.p(c,g):(s=Tg(c),s.c(),s.m(n,null)):s&&(s.d(1),s=null),c[0]&&c[3].length>0?o?o.p(c,g):(o=Eg(c),o.c(),o.m(r,null)):o&&(o.d(1),o=null)},d(c){c&&A(e),s&&s.d(),o&&o.d()}}}function Tg(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Rg(Ng(i,t,l));return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-nested-list svelte-174hcxg")},m(l,r){R(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null)},p(l,r){if(r&16083){t=l[0];let s;for(s=0;s<t.length;s+=1){const o=Ng(l,t,s);n[s]?n[s].p(o,r):(n[s]=Rg(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){l&&A(e),ct(n,l)}}}function Lg(i){let e,t,n,l,r,s=i[11](i[24])+"",o,c,g,h,_,p,m,v,k,y,C=i[24].icon&&Ag(i);function T(...N){return i[18](i[24],...N)}return{c(){e=S("li"),t=S("a"),n=S("div"),C&&C.c(),l=q(),r=S("div"),o=Pe(s),c=q(),g=S("div"),p=q(),f(r,"class","lui-text svelte-174hcxg"),f(g,"class","lui-indicator svelte-174hcxg"),f(n,"class","lui-fd-nested-list__content svelte-174hcxg"),f(t,"href",h=i[6]?i[13](i[24]):void 0),f(t,"title",_=i[7](i[24].label)),f(t,"role","button"),f(t,"tabindex","0"),f(t,"class","svelte-174hcxg"),f(e,"class",m="fd-nested-list__item "+(i[24]===i[1]?"is-selected":"")+" svelte-174hcxg"),f(e,"data-testid",v=i[12](i[24]))},m(N,D){R(N,e,D),w(e,t),w(t,n),C&&C.m(n,null),w(n,l),w(n,r),w(r,o),w(n,c),w(n,g),w(e,p),k||(y=ne(t,"click",T),k=!0)},p(N,D){i=N,i[24].icon?C?C.p(i,D):(C=Ag(i),C.c(),C.m(n,l)):C&&(C.d(1),C=null),D&1&&s!==(s=i[11](i[24])+"")&&Ne(o,s),D&65&&h!==(h=i[6]?i[13](i[24]):void 0)&&f(t,"href",h),D&129&&_!==(_=i[7](i[24].label))&&f(t,"title",_),D&3&&m!==(m="fd-nested-list__item "+(i[24]===i[1]?"is-selected":"")+" svelte-174hcxg")&&f(e,"class",m),D&1&&v!==(v=i[12](i[24]))&&f(e,"data-testid",v)},d(N){N&&A(e),C&&C.d(),k=!1,y()}}}function Ag(i){let e,t;function n(s,o){return o&1&&(e=null),e==null&&(e=!!s[10](s[24])),e?oy:ay}let l=n(i,-1),r=l(i);return{c(){r.c(),t=ye()},m(s,o){r.m(s,o),R(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function ay(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-174hcxg"),rt(e.src,t=i[24].icon)||f(e,"src",t),f(e,"alt",n=i[24].altText?i[24].altText:"")},m(l,r){R(l,e,r)},p(l,r){r&1&&!rt(e.src,t=l[24].icon)&&f(e,"src",t),r&1&&n!==(n=l[24].altText?l[24].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function oy(i){let e,t;return{c(){e=S("span"),f(e,"class",t="lui-text fd-top-nav__icon "+i[9](i[24].icon)+" svelte-174hcxg")},m(n,l){R(n,e,l)},p(n,l){l&1&&t!==(t="lui-text fd-top-nav__icon "+n[9](n[24].icon)+" svelte-174hcxg")&&f(e,"class",t)},d(n){n&&A(e)}}}function Rg(i){let e,t=i[24].globalNav===!0&&!i[24].separator&&Lg(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[24].globalNav===!0&&!n[24].separator?t?t.p(n,l):(t=Lg(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function Eg(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Mg(Pg(i,t,l));return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-nested-list svelte-174hcxg")},m(l,r){R(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null)},p(l,r){if(r&16083){t=l[0];let s;for(s=0;s<t.length;s+=1){const o=Pg(l,t,s);n[s]?n[s].p(o,r):(n[s]=Mg(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){l&&A(e),ct(n,l)}}}function Dg(i){let e,t,n,l,r,s=i[11](i[24])+"",o,c,g,h,_,p,m,v,k,y,C=i[24].icon&&Vg(i);function T(){return i[19](i[24])}return{c(){e=S("li"),t=S("a"),n=S("div"),C&&C.c(),l=q(),r=S("div"),o=Pe(s),c=q(),g=S("div"),p=q(),f(r,"class","lui-text svelte-174hcxg"),f(g,"class","lui-indicator svelte-174hcxg"),f(n,"class","lui-fd-nested-list__content svelte-174hcxg"),f(t,"href",h=i[6]?i[13](i[24]):void 0),f(t,"title",_=i[7](i[24].label)),f(t,"class","svelte-174hcxg"),f(e,"class",m="fd-nested-list__item "+(i[24]===i[1]?"is-selected":"")+" svelte-174hcxg"),f(e,"data-testid",v=i[12](i[24]))},m(N,D){R(N,e,D),w(e,t),w(t,n),C&&C.m(n,null),w(n,l),w(n,r),w(r,o),w(n,c),w(n,g),w(e,p),k||(y=ne(n,"click",Tt(T)),k=!0)},p(N,D){i=N,i[24].icon?C?C.p(i,D):(C=Vg(i),C.c(),C.m(n,l)):C&&(C.d(1),C=null),D&1&&s!==(s=i[11](i[24])+"")&&Ne(o,s),D&65&&h!==(h=i[6]?i[13](i[24]):void 0)&&f(t,"href",h),D&129&&_!==(_=i[7](i[24].label))&&f(t,"title",_),D&3&&m!==(m="fd-nested-list__item "+(i[24]===i[1]?"is-selected":"")+" svelte-174hcxg")&&f(e,"class",m),D&1&&v!==(v=i[12](i[24]))&&f(e,"data-testid",v)},d(N){N&&A(e),C&&C.d(),k=!1,y()}}}function Vg(i){let e,t;function n(s,o){return o&1&&(e=null),e==null&&(e=!!s[10](s[24])),e?fy:uy}let l=n(i,-1),r=l(i);return{c(){r.c(),t=ye()},m(s,o){r.m(s,o),R(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function uy(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-174hcxg"),rt(e.src,t=i[24].icon)||f(e,"src",t),f(e,"alt",n=i[24].altText?i[24].altText:"")},m(l,r){R(l,e,r)},p(l,r){r&1&&!rt(e.src,t=l[24].icon)&&f(e,"src",t),r&1&&n!==(n=l[24].altText?l[24].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function fy(i){let e,t;return{c(){e=S("span"),f(e,"class",t="lui-text fd-top-nav__icon "+i[9](i[24].icon)+" svelte-174hcxg")},m(n,l){R(n,e,l)},p(n,l){l&1&&t!==(t="lui-text fd-top-nav__icon "+n[9](n[24].icon)+" svelte-174hcxg")&&f(e,"class",t)},d(n){n&&A(e)}}}function Mg(i){let e,t=i[24].globalNav==="bottom"&&!i[24].separator&&Dg(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[24].globalNav==="bottom"&&!n[24].separator?t?t.p(n,l):(t=Dg(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function cy(i){let e,t,n,l=i[2]&&Ig(i);return{c(){l&&l.c(),e=ye()},m(r,s){l&&l.m(r,s),R(r,e,s),t||(n=[ne(window,"click",da),ne(window,"blur",da)],t=!0)},p(r,[s]){r[2]?l?l.p(r,s):(l=Ig(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ue,o:Ue,d(r){l&&l.d(r),r&&A(e),t=!1,Ze(n)}}}function da(){}function dy(i,e,t){let n;const l=Wt();let{pathData:r}=e,s,{pathParams:o}=e,{children:c}=e,{selectedNode:g}=e,h=vt("store"),_=vt("getTranslation");mi(i,_,j=>t(7,n=j));let{showGlobalNav:p}=e,{hideNavComponent:m}=e,{responsiveNavSetting:v}=e,k=re.getConfigBooleanValue("navigation.addNavHrefs");const y=async()=>{if(r&&0<r.length){const j=await Te.generateTopNavNodes(r);t(0,c=j.children),t(1,g=j.selectedNode),s=r}};Kt(()=>{Fn.doOnStoreChange(h,()=>{t(14,m=re.getConfigBooleanValue("settings.hideNavigation")),t(15,v=re.getConfigValue("settings.responsiveNavigation")),t(2,p=re.getConfigBooleanValue("settings.globalSideNavigation")&&ee.requestExperimentalFeature("globalNav",!0)),document.body.classList.toggle("lui-global-nav-visible",p)},["navigation"])}),On(()=>{(!s||s!=r)&&y(),t(6,k=re.getConfigBooleanValue("navigation.addNavHrefs"))});function C(j){return Te.renderIconClassName(j)}function T(j){return Te.isOpenUIiconName(j.icon)}function N(j){return ht.getTranslation(j.label)}function D(j){return j.testId?j.testId:Te.prepareForTests(j.pathSegment,j.label)}function I(j){return pe.getNodeHref(j,o)}function L(j){l("handleClick",{node:j})}function M(j){L(j.detail.node)}const F=(j,fe)=>{Te.handleNavAnchorClickedWithoutMetaKey(fe)&&L(j)},O=j=>L(j);return i.$$set=j=>{"pathData"in j&&t(3,r=j.pathData),"pathParams"in j&&t(16,o=j.pathParams),"children"in j&&t(0,c=j.children),"selectedNode"in j&&t(1,g=j.selectedNode),"showGlobalNav"in j&&t(2,p=j.showGlobalNav),"hideNavComponent"in j&&t(14,m=j.hideNavComponent),"responsiveNavSetting"in j&&t(15,v=j.responsiveNavSetting)},[c,g,p,r,L,da,k,n,_,C,T,N,D,I,m,v,o,M,F,O]}class hy extends At{constructor(e){super(),Lt(this,e,dy,cy,It,{pathData:3,pathParams:16,children:0,selectedNode:1,showGlobalNav:2,hideNavComponent:14,responsiveNavSetting:15,handleClick:4,handleClickExternal:17,closeAllDropdowns:5})}get handleClick(){return this.$$.ctx[4]}get handleClickExternal(){return this.$$.ctx[17]}get closeAllDropdowns(){return da}}function gy(i){let e;return{c(){e=S("div"),f(e,"class","lui-breadcrumb-container svelte-fl7dhk")},m(t,n){R(t,e,n),i[6](e)},p:Ue,i:Ue,o:Ue,d(t){t&&A(e),i[6](null)}}}function _y(i,e,t){const n=Wt();let{pathData:l}=e,r,s={},o,c=vt("store"),{showBreadcrumb:g}=e,{hideNavComponent:h}=e,{responsiveNavSetting:_}=e;re.getConfigBooleanValue("navigation.addNavHrefs");const p=async()=>{l&&0<l.length&&(r=l)},m=C=>{C.last||k(C.node)};Kt(()=>{Fn.doOnStoreChange(c,()=>{},["navigation"])}),On(async()=>{if(l&&(!r||r!=l)){if(p(),l.length===0)return;const C=re.getConfigValue("navigation.breadcrumbs");if(t(1,g=!!C),g&&l.forEach(T=>{T.showBreadcrumbs===!1?t(1,g=!1):T.showBreadcrumbs===!0&&t(1,g=!0)}),g)if(re.getConfigBooleanValue("navigation.addNavHrefs"),C.renderer){let T=[];const N=C.omitRoot?2:1,D=it.getCurrentPath();for(let I=N;I<l.length;I++){const L=l[I],M=pe.mapPathToNode(D,L);if(s[M])T.push(s[M]);else if(L.label||L.pathSegment||L.titleResolver)if(document.body.classList.add("lui-breadcrumb"),L.titleResolver)T.push({label:L.titleResolver.prerenderFallback&&L.titleResolver.fallbackTitle?ht.getTranslation(L.titleResolver.fallbackTitle):C.pendingItemLabel||"",node:L,route:M,pending:!0});else{const F=await v(L);F&&T.push({label:F,node:L,route:M})}}C.clearBeforeRender&&t(0,o.innerHTML="",o),C.renderer(o,T,m),T=[];for(let I=N;I<l.length;I++){const L=l[I],M=pe.mapPathToNode(D,L);if(L.titleResolver){const O=await Mt.extractDataFromPath(M),j=pe.substituteDynamicParamsInObject(Object.assign({},O.pathData.context,L.context),O.pathData.pathParams);try{const fe=await Te.fetchNodeTitleData(L,j);T.push({label:fe.label,node:L,route:M});continue}catch{}}const F=await v(L);F&&T.push({label:F,node:L,route:M})}D===it.getCurrentPath()&&(C.clearBeforeRender&&t(0,o.innerHTML="",o),T.length>1?(T[T.length-1].last=!0,document.body.classList.add("lui-breadcrumb"),C.renderer(o,T,m)):C.autoHide&&document.body.classList.remove("lui-breadcrumb"),s={},T.map(I=>{s[I.route]=I}))}else document.body.classList.remove("lui-breadcrumb"),console.warn("No breadcrumb container renderer specified");else t(0,o.innerHTML="",o),document.body.classList.remove("lui-breadcrumb")}});async function v(C){if(C.label&&!C._virtualTree)return ht.getTranslation(C.label)||C.label;if(C.pathSegment&&C.pathSegment.indexOf(":")===0){const T=pe.mapPathToNode(it.getCurrentPath(),C),N=await Mt.extractDataFromPath(T);return pe.getDynamicNodeValue(C,N.pathData.pathParams)}return C.pathSegment?C.pathSegment:""}function k(C){n("handleClick",{node:C})}function y(C){xe[C?"unshift":"push"](()=>{o=C,t(0,o)})}return i.$$set=C=>{"pathData"in C&&t(2,l=C.pathData),"showBreadcrumb"in C&&t(1,g=C.showBreadcrumb),"hideNavComponent"in C&&t(3,h=C.hideNavComponent),"responsiveNavSetting"in C&&t(4,_=C.responsiveNavSetting)},[o,g,l,h,_,k,y]}class py extends At{constructor(e){super(),Lt(this,e,_y,gy,It,{pathData:2,showBreadcrumb:1,hideNavComponent:3,responsiveNavSetting:4,handleClick:5})}get handleClick(){return this.$$.ctx[5]}}let To="not_checked";Pn.addEventListener("message",function(i){i.data==="luigi.tpcDisabled"?(console.warn("Third party cookies are not supported! Silent token renewal might not work!"),To="disabled"):i.data==="luigi.tpcEnabled"&&(To="enabled")},!1);function my(){return To}const{Boolean:by,window:vy}=Ui;function Og(i,e,t){const n=i.slice();return n[142]=e[t],n[144]=t,n}function Fg(i){let e,t;return e=new N2({props:{alertQueue:i[26]}}),e.$on("alertDismiss",i[36]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&67108864&&(r.alertQueue=n[26]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function Ug(i){let e,t;function n(){return i[67](i[144])}function l(...s){return i[68](i[144],...s)}function r(...s){return i[69](i[144],...s)}return e=new N_({props:{settings:i[142].mfModal.settings,nodepath:i[142].mfModal.nodepath,modalIndex:i[144],disableBackdrop:i[13]}}),e.$on("close",n),e.$on("iframeCreated",l),e.$on("wcCreated",r),{c(){Ge(e.$$.fragment)},m(s,o){He(e,s,o),t=!0},p(s,o){i=s;const c={};o[0]&268435456&&(c.settings=i[142].mfModal.settings),o[0]&268435456&&(c.nodepath=i[142].mfModal.nodepath),o[0]&8192&&(c.disableBackdrop=i[13]),e.$set(c)},i(s){t||(B(e.$$.fragment,s),t=!0)},o(s){G(e.$$.fragment,s),t=!1},d(s){ze(e,s)}}}function Bg(i){let e,t,n=i[142].mfModal.displayed&&Ug(i);return{c(){n&&n.c(),e=ye()},m(l,r){n&&n.m(l,r),R(l,e,r),t=!0},p(l,r){l[142].mfModal.displayed?n?(n.p(l,r),r[0]&268435456&&B(n,1)):(n=Ug(l),n.c(),B(n,1),n.m(e.parentNode,e)):n&&(Ee(),G(n,1,1,()=>{n=null}),De())},i(l){t||(B(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function Wg(i){let e,t;return e=new N_({props:{settings:i[29].settings,nodepath:i[29].nodepath,$$slots:{default:[wy]},$$scope:{ctx:i}}}),e.$on("close",i[44]),e.$on("drawerState",i[43]),e.$on("iframeCreated",i[41]),e.$on("wcCreated",i[42]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&536870912&&(r.settings=n[29].settings),l[0]&536870912&&(r.nodepath=n[29].nodepath),l[0]&8192|l[4]&2097152&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function wy(i){let e,t;return e=new $r({props:{area:"drawer",disable:i[13]}}),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.disable=n[13]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function Hg(i){let e,t;return e=new R2({props:{settings:i[27].settings}}),e.$on("modalConfirm",i[70]),e.$on("modalDismiss",i[71]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&134217728&&(r.settings=n[27].settings),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function zg(i){let e,t,n;function l(s){i[72](s)}let r={userSettingGroups:i[18].userSettingGroups};return i[6]!==void 0&&(r.storedUserSettings=i[6]),e=new Y2({props:r}),xe.push(()=>bt(e,"storedUserSettings",l)),e.$on("close",i[10]),{c(){Ge(e.$$.fragment)},m(s,o){He(e,s,o),n=!0},p(s,o){const c={};o[0]&262144&&(c.userSettingGroups=s[18].userSettingGroups),!t&&o[0]&64&&(t=!0,c.storedUserSettings=s[6],mt(()=>t=!1)),e.$set(c)},i(s){n||(B(e.$$.fragment,s),n=!0)},o(s){G(e.$$.fragment,s),n=!1},d(s){ze(e,s)}}}function qg(i){let e,t;return e=new ek({props:{splitViewSettings:i[12].settings,collapsed:i[12].collapsed,nodepath:i[12].nodepath,disableBackdrop:i[13]}}),e.$on("iframeCreated",i[32]),e.$on("statusChanged",i[33]),e.$on("wcCreated",i[34]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&4096&&(r.splitViewSettings=n[12].settings),l[0]&4096&&(r.collapsed=n[12].collapsed),l[0]&4096&&(r.nodepath=n[12].nodepath),l[0]&8192&&(r.disableBackdrop=n[13]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function ky(i){let e,t,n,l,r,s,o,c,g;t=new $r({props:{area:"main",disable:i[13]}});let h=i[12].displayed&&qg(i);return{c(){e=S("div"),Ge(t.$$.fragment),n=q(),l=S("div"),r=q(),h&&h.c(),s=ye(),f(l,"class","wcContainer svelte-1m7a6br"),f(e,"class","fd-page iframeContainer svelte-1m7a6br"),f(e,"tabindex","0"),hi(e,"lui-split-view",i[12].displayed),hi(e,"lui-collapsed",i[12].collapsed)},m(_,p){R(_,e,p),He(t,e,null),w(e,n),w(e,l),R(_,r,p),h&&h.m(_,p),R(_,s,p),o=!0,c||(g=pw(i[45].call(null,e)),c=!0)},p(_,p){const m={};p[0]&8192&&(m.disable=_[13]),t.$set(m),(!o||p[0]&4096)&&hi(e,"lui-split-view",_[12].displayed),(!o||p[0]&4096)&&hi(e,"lui-collapsed",_[12].collapsed),_[12].displayed?h?(h.p(_,p),p[0]&4096&&B(h,1)):(h=qg(_),h.c(),B(h,1),h.m(s.parentNode,s)):h&&(Ee(),G(h,1,1,()=>{h=null}),De())},i(_){o||(B(t.$$.fragment,_),B(h),o=!0)},o(_){G(t.$$.fragment,_),G(h),o=!1},d(_){_&&A(e),ze(t),_&&A(r),h&&h.d(_),_&&A(s),c=!1,g()}}}function Gg(i){let e,t,n,l;return{c(){e=S("div"),e.innerHTML=`<div class="fd-busy-indicator--m svelte-1m7a6br" aria-hidden="false" aria-label="Loading" data-testid="luigi-loading-spinner"><div class="fd-busy-indicator--circle-0 svelte-1m7a6br"></div>
|
|
62
|
-
<div class="fd-busy-indicator--circle-1 svelte-
|
|
63
|
-
<div class="fd-busy-indicator--circle-2 svelte-1m7a6br"></div></div>`,f(e,"class","fd-page spinnerContainer svelte-1m7a6br"),f(e,"aria-hidden","false"),f(e,"aria-label","Loading")},m(r,s){R(r,e,s),l=!0},i(r){l||(Rl(()=>{n&&n.end(1),t=c_(e,ua,{delay:250,duration:250}),t.start()}),l=!0)},o(r){t&&t.invalidate(),n=d_(e,ua,{duration:250}),l=!1},d(r){r&&A(e),r&&n&&n.end()}}}function Kg(i){let e,t,n,l,r,s,o,c;function g(y){i[73](y)}function h(y){i[74](y)}function _(y){i[75](y)}function p(y){i[76](y)}function m(y){i[77](y)}function v(y){i[78](y)}let k={pathData:i[15],pathParams:i[14],burgerTooltip:i[19]};return i[0]!==void 0&&(k.isSearchFieldVisible=i[0]),i[3]!==void 0&&(k.displaySearchResult=i[3]),i[4]!==void 0&&(k.displayCustomSearchResult=i[4]),i[5]!==void 0&&(k.searchResult=i[5]),i[1]!==void 0&&(k.inputElem=i[1]),i[2]!==void 0&&(k.luigiCustomSearchRenderer__slot=i[2]),e=new XC({props:k}),xe.push(()=>bt(e,"isSearchFieldVisible",g)),xe.push(()=>bt(e,"displaySearchResult",h)),xe.push(()=>bt(e,"displayCustomSearchResult",_)),xe.push(()=>bt(e,"searchResult",p)),xe.push(()=>bt(e,"inputElem",m)),xe.push(()=>bt(e,"luigiCustomSearchRenderer__slot",v)),e.$on("handleClick",i[30]),e.$on("resizeTabNav",i[31]),e.$on("toggleSearch",i[7]),e.$on("closeSearchResult",i[8]),e.$on("handleSearchNavigation",i[9]),{c(){Ge(e.$$.fragment)},m(y,C){He(e,y,C),c=!0},p(y,C){const T={};C[0]&32768&&(T.pathData=y[15]),C[0]&16384&&(T.pathParams=y[14]),C[0]&524288&&(T.burgerTooltip=y[19]),!t&&C[0]&1&&(t=!0,T.isSearchFieldVisible=y[0],mt(()=>t=!1)),!n&&C[0]&8&&(n=!0,T.displaySearchResult=y[3],mt(()=>n=!1)),!l&&C[0]&16&&(l=!0,T.displayCustomSearchResult=y[4],mt(()=>l=!1)),!r&&C[0]&32&&(r=!0,T.searchResult=y[5],mt(()=>r=!1)),!s&&C[0]&2&&(s=!0,T.inputElem=y[1],mt(()=>s=!1)),!o&&C[0]&4&&(o=!0,T.luigiCustomSearchRenderer__slot=y[2],mt(()=>o=!1)),e.$set(T)},i(y){c||(B(e.$$.fragment,y),c=!0)},o(y){G(e.$$.fragment,y),c=!1},d(y){ze(e,y)}}}function Jg(i){let e,t,n,l;e=new hy({props:{pathData:i[15],pathParams:i[14]}}),e.$on("handleClick",i[30]);let r=i[20]&&jg(i);return{c(){Ge(e.$$.fragment),t=q(),r&&r.c(),n=ye()},m(s,o){He(e,s,o),R(s,t,o),r&&r.m(s,o),R(s,n,o),l=!0},p(s,o){const c={};o[0]&32768&&(c.pathData=s[15]),o[0]&16384&&(c.pathParams=s[14]),e.$set(c),s[20]?r?(r.p(s,o),o[0]&1048576&&B(r,1)):(r=jg(s),r.c(),B(r,1),r.m(n.parentNode,n)):r&&(Ee(),G(r,1,1,()=>{r=null}),De())},i(s){l||(B(e.$$.fragment,s),B(r),l=!0)},o(s){G(e.$$.fragment,s),G(r),l=!1},d(s){ze(e,s),s&&A(t),r&&r.d(s),s&&A(n)}}}function jg(i){let e,t;return e=new py({props:{pathData:i[15],pathParams:i[14]}}),e.$on("handleClick",i[30]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&32768&&(r.pathData=n[15]),l[0]&16384&&(r.pathParams=n[14]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function Yg(i){let e,t;return e=new Lk({props:{pathData:i[15],pathParams:i[14],burgerTooltip:i[19]}}),e.$on("handleClick",i[30]),e.$on("resizeTabNav",i[31]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&32768&&(r.pathData=n[15]),l[0]&16384&&(r.pathParams=n[14]),l[0]&524288&&(r.burgerTooltip=n[19]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function Qg(i){let e,t;return e=new sy({props:{pathData:i[15],pathParams:i[14],resizeTabNavToggle:i[17]}}),e.$on("handleClick",i[30]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&32768&&(r.pathData=n[15]),l[0]&16384&&(r.pathParams=n[14]),l[0]&131072&&(r.resizeTabNavToggle=n[17]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function Sy(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,k,y,C=i[26]&&i[26].length&&Fg(i),T=i[28],N=[];for(let Q=0;Q<T.length;Q+=1)N[Q]=Bg(Og(i,T,Q));const D=Q=>G(N[Q],1,1,()=>{N[Q]=null});let I=i[29].displayed&&i[29].settings.isDrawer&&Wg(i),L=i[27].displayed&&Hg(i),M=i[18].displayed&&zg(i);o=new $r({props:{disable:i[13],$$slots:{default:[ky]},$$scope:{ctx:i}}});let F=i[11]&&Gg(),O=!i[25]&&Kg(i),j=!i[21]&&Jg(i),fe=!(i[21]||i[22])&&Yg(i),X=i[16]&&!i[21]&&Qg(i);return{c(){e=S("div"),C&&C.c(),t=q();for(let Q=0;Q<N.length;Q+=1)N[Q].c();n=q(),I&&I.c(),l=q(),L&&L.c(),r=q(),M&&M.c(),s=q(),Ge(o.$$.fragment),c=q(),F&&F.c(),g=q(),O&&O.c(),h=q(),j&&j.c(),_=q(),fe&&fe.c(),p=q(),X&&X.c(),f(e,"id","app"),f(e,"class",m=(i[21]?"no-nav":"")+" "+(i[22]?"no-side-nav":"")+" "+(i[25]?"no-top-nav":"")+" "+(i[23]?"no-animation":"")+" svelte-1m7a6br"),f(e,"configversion",i[24])},m(Q,ce){R(Q,e,ce),C&&C.m(e,null),w(e,t);for(let Ce=0;Ce<N.length;Ce+=1)N[Ce].m(e,null);w(e,n),I&&I.m(e,null),w(e,l),L&&L.m(e,null),w(e,r),M&&M.m(e,null),w(e,s),He(o,e,null),w(e,c),F&&F.m(e,null),w(e,g),O&&O.m(e,null),w(e,h),j&&j.m(e,null),w(e,_),fe&&fe.m(e,null),w(e,p),X&&X.m(e,null),v=!0,k||(y=ne(vy,"resize",i[35]),k=!0)},p(Q,ce){if(Q[26]&&Q[26].length?C?(C.p(Q,ce),ce[0]&67108864&&B(C,1)):(C=Fg(Q),C.c(),B(C,1),C.m(e,t)):C&&(Ee(),G(C,1,1,()=>{C=null}),De()),ce[0]&268443648|ce[1]&896){T=Q[28];let H;for(H=0;H<T.length;H+=1){const ae=Og(Q,T,H);N[H]?(N[H].p(ae,ce),B(N[H],1)):(N[H]=Bg(ae),N[H].c(),B(N[H],1),N[H].m(e,n))}for(Ee(),H=T.length;H<N.length;H+=1)D(H);De()}Q[29].displayed&&Q[29].settings.isDrawer?I?(I.p(Q,ce),ce[0]&536870912&&B(I,1)):(I=Wg(Q),I.c(),B(I,1),I.m(e,l)):I&&(Ee(),G(I,1,1,()=>{I=null}),De()),Q[27].displayed?L?(L.p(Q,ce),ce[0]&134217728&&B(L,1)):(L=Hg(Q),L.c(),B(L,1),L.m(e,r)):L&&(Ee(),G(L,1,1,()=>{L=null}),De()),Q[18].displayed?M?(M.p(Q,ce),ce[0]&262144&&B(M,1)):(M=zg(Q),M.c(),B(M,1),M.m(e,s)):M&&(Ee(),G(M,1,1,()=>{M=null}),De());const Ce={};ce[0]&8192&&(Ce.disable=Q[13]),ce[0]&12288|ce[4]&2097152&&(Ce.$$scope={dirty:ce,ctx:Q}),o.$set(Ce),Q[11]?F?ce[0]&2048&&B(F,1):(F=Gg(),F.c(),B(F,1),F.m(e,g)):F&&(Ee(),G(F,1,1,()=>{F=null}),De()),Q[25]?O&&(Ee(),G(O,1,1,()=>{O=null}),De()):O?(O.p(Q,ce),ce[0]&33554432&&B(O,1)):(O=Kg(Q),O.c(),B(O,1),O.m(e,h)),Q[21]?j&&(Ee(),G(j,1,1,()=>{j=null}),De()):j?(j.p(Q,ce),ce[0]&2097152&&B(j,1)):(j=Jg(Q),j.c(),B(j,1),j.m(e,_)),Q[21]||Q[22]?fe&&(Ee(),G(fe,1,1,()=>{fe=null}),De()):fe?(fe.p(Q,ce),ce[0]&6291456&&B(fe,1)):(fe=Yg(Q),fe.c(),B(fe,1),fe.m(e,p)),Q[16]&&!Q[21]?X?(X.p(Q,ce),ce[0]&2162688&&B(X,1)):(X=Qg(Q),X.c(),B(X,1),X.m(e,null)):X&&(Ee(),G(X,1,1,()=>{X=null}),De()),(!v||ce[0]&48234496&&m!==(m=(Q[21]?"no-nav":"")+" "+(Q[22]?"no-side-nav":"")+" "+(Q[25]?"no-top-nav":"")+" "+(Q[23]?"no-animation":"")+" svelte-1m7a6br"))&&f(e,"class",m),(!v||ce[0]&16777216)&&f(e,"configversion",Q[24])},i(Q){if(!v){B(C);for(let ce=0;ce<T.length;ce+=1)B(N[ce]);B(I),B(L),B(M),B(o.$$.fragment,Q),B(F),B(O),B(j),B(fe),B(X),v=!0}},o(Q){G(C),N=N.filter(by);for(let ce=0;ce<N.length;ce+=1)G(N[ce]);G(I),G(L),G(M),G(o.$$.fragment,Q),G(F),G(O),G(j),G(fe),G(X),v=!1},d(Q){Q&&A(e),C&&C.d(),ct(N,Q),I&&I.d(),L&&L.d(),M&&M.d(),ze(o),F&&F.d(),O&&O.d(),j&&j.d(),fe&&fe.d(),X&&X.d(),k=!1,y()}}}function Cy(i,e,t){const n=Wt();let{store:l}=e,{getTranslation:r}=e,s=!1,o={displayed:!1},c,g,h=!1,_,p,m,v,k,y,C,T,N,D,I,L,M,F,O,j,fe,X,Q,ce=!0,Ce=!1,H,ae,$,K=[],le={isDirty:!1,persistUrl:null},ve,ue,x=!1,be,ke,we={},ie,{isSearchFieldVisible:Re}=e,{inputElem:Le}=e,{luigiCustomSearchRenderer__slot:_e}=e,{displaySearchResult:tt}=e,{displayCustomSearchResult:Ft=!0}=e,{searchResult:Jt}=e,{storedUserSettings:Rt}=e,Un;const Bi=async U=>{const oe=U.iframe.luigi,Me=oe.currentNode&&oe.currentNode.userSettingsGroup,je=await re.readUserSettings(),Fe=Me&&typeof je=="object"&&je!==null,Se=Ie.applyCoreStateData({isNavigateBack:Ce,viewStackSize:K.length,clientPermissions:oe.nextViewUrl?oe.nextClientPermissions:oe.clientPermissions,userSettings:Fe?je[Me]:null,anchor:sl.getAnchor()});return Ie.specialIframeTypes.map(Oe=>Oe.iframeConfigKey).forEach(Oe=>{Se[Oe]=U[Oe]||!1}),Se},zt=async(U,oe={})=>{if(!U.iframe){console.debug("iframe does not exist, not able to send context.");return}const Me={msg:"luigi.init",context:JSON.stringify(Object.assign({},U.context||D,oe)),nodeParams:JSON.stringify(Object.assign({},U.nodeParams||I)),pathParams:JSON.stringify(Object.assign({},U.pathParams||L)),searchParams:JSON.stringify(Object.assign({},pe.prepareSearchParamsForClient(U.iframe.luigi.currentNode))),internal:JSON.stringify(await Bi(U)),authData:al.getStoredAuthData()};U.iframe.luigi._lastUpdatedMessage=Me,Ie.sendMessageToIframe(U.iframe,Me)},bi=U=>{const oe={msg:"luigi.auth.tokenIssued",authData:U};Ie.broadcastMessageToAllIframes(oe)},Wi=(U,oe)=>{if(U.params.preserveView||U.params.viewgroup){const Me=nn(U.params),je=it.getNodePath(F,M);K.push({path:oe.iframe.luigi&&oe.iframe.luigi.pathParams?ee.replaceVars(je,oe.iframe.luigi.pathParams,":",!1):je,nextPath:Me.startsWith("/")?Me:"/"+Me,context:D}),oe.iframe.pv="pv"}},$t=(U,oe,Me,je)=>{let Fe=nn(U.params,Me,je);const{preventHistoryEntry:Se,preserveQueryParams:Oe,preventContextUpdate:_t}=U.params,Dt={keepBrowserHistory:!Se,navSync:ce,preventContextUpdate:_t};return Fe=ee.addLeadingSlash(Fe),Fe=Oe?pe.composeSearchParamsToRoute(Fe):Fe,Wi(U,oe),it.navigateTo(Fe,Dt)},jt=U=>U.split("?")[0],Xn=(U,oe)=>{if(U.length===0)return!1;const Me=oe.startsWith("/")?oe:`/${oe}`,je=[...U].pop();return[jt(je.path),jt(je.nextPath)].includes(jt(Me))},dt=U=>new Promise((oe,Me)=>{Ol(U)?Ci().then(()=>{le&&le.dirtySet&&(U?le.dirtySet.delete(U):le.dirtySet.clear()),oe()},()=>{Me()}):oe()}),dn=()=>({get:()=>({unsavedChanges:le,hideNav:ki,viewUrl:O,nodeParams:I,viewGroup:j,urlParamsRaw:M,currentNode:F,navigationPath:ae,context:D,pathParams:L,hideSideNav:zi,isolateView:fe,pageErrorHandler:X,previousNodeValues:Q,mfSplitView:o,splitViewValues:c,splitViewIframe:y,splitViewWC:T,showLoadingIndicator:s,tabNav:ue,isNavigateBack:Ce,goBackContext:H,isNavigationSyncEnabled:ce}),set:U=>{U&&(t(23,Si=!1),Object.getOwnPropertyNames(U).forEach(oe=>{oe==="hideNav"?t(21,ki=U.hideNav):oe==="viewUrl"?O=U.viewUrl:oe==="nodeParams"?I=U.nodeParams:oe==="viewGroup"?j=U.viewGroup:oe==="urlParamsRaw"?M=U.urlParamsRaw:oe==="currentNode"?F=U.currentNode:oe==="navigationPath"?t(15,ae=U.navigationPath):oe==="context"?D=U.context:oe==="pathParams"?t(14,L=U.pathParams):oe==="hideSideNav"?(zi!=U.hideSideNav&&(t(23,Si=!0),setTimeout(()=>{const Me=document.querySelector("#app");Me&&Me.classList.remove("no-animation")})),t(22,zi=U.hideSideNav)):oe==="isolateView"?fe=U.isolateView:oe==="pageErrorHandler"?X=U.pageErrorHandler:oe==="previousNodeValues"?Q=U.previousNodeValues:oe==="mfSplitView"?t(12,o=U.mfSplitView):oe==="splitViewValues"?c=U.splitViewValues:oe==="splitViewIframe"?y=U.splitViewIframe:oe=="splitViewWC"?T=U.splitViewWC:oe==="showLoadingIndicator"?t(11,s=U.showLoadingIndicator):oe==="tabNav"?t(16,ue=U.tabNav):oe==="isNavigateBack"?Ce=U.isNavigateBack:oe==="goBackContext"?H=U.goBackContext:oe==="isNavigationSyncEnabled"&&(ce=U.isNavigationSyncEnabled)}))},shouldShowUnsavedChangesModal:Ol,getUnsavedChangesModalPromise:dt,showUnsavedChangesModal:Ci,showAlert:hl,prepareInternalData:Bi,dispatch:n}),$n=(U,oe)=>{Fn.doOnStoreChange(l,()=>{Vn.deleteCache();const Me=it.getCurrentPath();it.handleRouteChange(Me,dn(),U,oe)},["navigation.nodes"]),pe.addRouteChangeListener((Me,je)=>{const{withoutSync:Fe,preventContextUpdate:Se}=je||{};Xn(K,Me)||(K=[],Qn.removeInactiveIframes(U));for(let _t=St.length;_t--;)ai(_t);Xr.removeBackdrop(),wi(),it.handleRouteChange(Me,dn(),U,oe,Fe,Se)})},tn=(U,oe)=>ee.replaceVars(it.getNodePath(U),oe,":",!1),nn=(U,oe,Me)=>{const je=oe||F,Fe=Me||L;let Se=ae;if(oe){let _t=oe.parent;for(Se=[oe];_t;)Se.push(_t),_t=_t.parent;Se=[...Se].reverse()}let Oe=U.link;if(U.fromVirtualTreeRoot){const _t=[...Se].reverse().find(Dt=>Dt.virtualTree);if(!_t){console.error("LuigiClient Error: fromVirtualTreeRoot() is not possible because you are not inside a Luigi virtualTree navigation node.");return}Oe=it.concatenatePath(tn(_t,Fe),U.link)}else if(U.fromParent)Oe=it.concatenatePath(tn(je.parent,Fe),U.link);else if(U.fromClosestContext){const _t=[...Se].reverse().find(Dt=>Dt.navigationContext&&Dt.navigationContext.length>0);Oe=it.concatenatePath(tn(_t,Fe),U.link)}else if(U.fromContext){const _t=U.fromContext,Dt=[...Se].reverse().find(vl=>_t===vl.navigationContext);Oe=it.concatenatePath(tn(Dt,Fe),U.link)}else U.intent?Oe=pe.getIntentPath(U.link):U.relative&&(Oe=it.concatenatePath(tn(je,Fe),U.link));return U.nodeParams&&Object.keys(U.nodeParams).length>0&&(Oe+=Oe.includes("?")?"&":"?",Object.entries(U.nodeParams).forEach((_t,Dt)=>{Oe+=encodeURIComponent(pe.getContentViewParamPrefix()+_t[0])+"="+encodeURIComponent(_t[1])+(Dt<Object.keys(U.nodeParams).length-1?"&":"")})),Oe},Bn=U=>{const oe=U.detail.node;dt().then(()=>{if(Ml(),oe.openNodeInModal){const Me=pe.buildRoute(oe,`/${oe.pathSegment}`);bl(Me,oe.openNodeInModal===!0?{}:oe.openNodeInModal)}else if(oe.drawer){const Me=pe.buildRoute(oe,`/${oe.pathSegment}`);oe.drawer.isDrawer=!0,J(Me,oe.drawer)}else dn().set({isNavigationSyncEnabled:!0}),it.handleRouteClick(oe,dn())})},vi=()=>{t(17,x=!x)};Jr("handleNavigation",$t);const ln=U=>U?!0:(console.warn("No search provider defined."),!1),te=()=>{ln(ke)&&t(0,Re=!1)},Ve=()=>{ln(ke)&&Le&&(t(0,Re=!0),Le.focus())},gt=()=>{ln(ke)&&Le&&(t(1,Le.value="",Le),ri())},yt=()=>{t(0,Re=!Re),Xw.clearSearchField()},Pt=()=>{if(ln(ke)&&Le)return Le.value},wt=U=>{ln(ke)&&Le&&(t(1,Le.value=U,Le),ee.isFunction(ke.onInput)?ke.onInput():console.error("onInput is not a function. Please check the global search configuration."))},an=U=>{ln(ke)&&Le&&t(1,Le.placeholder=U,Le)},Nn=U=>{if(ln(ke))if(U&&U.length>0)if(ee.isFunction(ke.customSearchResultRenderer)){t(4,Ft=!0);let oe={fireItemSelected:Me=>{ke.onSearchResultItemSelected(Me)}};ke.customSearchResultRenderer(U,_e,oe)}else t(3,tt=!0),t(5,Jt=U);else console.warn("Search result array is empty.")},ri=()=>{if(ln(ke)&&(t(3,tt=!1),t(5,Jt=[]),_e))for(;_e.lastElementChild;)_e.removeChild(_e.lastElementChild)},Hi=U=>{let oe=U.detail.node,Me={params:{link:oe.link,nodeParams:oe.params}};$t(Me)},cl=(U,oe)=>{if(o.displayed){console.warn("Only one splitview can be opened at a time");return}t(12,o=at.getDefaultData().mfSplitView),at.open(dn(),U,oe)},wi=()=>{at.close(dn())},hr=()=>{at.collapse(dn()),t(12,o.collapsed=!0,o)},gr=()=>{at.expand(dn()),t(12,o.collapsed=!1,o)},_r=()=>o.displayed?o.collapsed:!1,pr=()=>o.displayed?!o.collapsed:!1,El=()=>o.displayed,mr=U=>{y=U.detail.splitViewIframe,C=U.detail.splitViewIframeData,t(12,o.collapsed=U.detail.collapsed,o)},br=U=>{U.detail.displayed!==void 0&&t(12,o.displayed=U.detail.displayed,o),U.detail.collapsed!==void 0&&t(12,o.collapsed=U.detail.collapsed,o)},vr=U=>{T=U.detail.splitViewWC,U.detail.splitViewWCData,t(12,o.collapsed=U.detail.collapsed,o)};let ki,zi,Si,qi,Dl,Vl;const Ml=()=>{document.body.classList.remove("lui-leftNavToggle")},wr=()=>{on();const U=window.innerWidth>=Xt.desktopMinWidth&&qi<Xt.desktopMinWidth,oe=window.innerWidth<Xt.desktopMinWidth&&qi>=Xt.desktopMinWidth;(U||oe)&&Ml(),qi=window.innerWidth};let mn=[];const dl=(U,oe)=>{if(!(!U||!(U.length>0)))return U.filter(Me=>Me.settings.id===oe)[0]},hl=(U,oe=!1)=>{const Me=re.getConfigValue("settings.customAlertHandler");if(ee.isFunction(Me)){const Fe=Me(U,oe);if(Fe!==!1)return Fe}const je=mn;return U.id||(U.id=ee.getRandomId()),U.id&&je&&dl(je,U.id)?(console.error(`The alert with id '${U.id}' already exists in a queue, therefore it won't be displayed `),Promise.reject()):(U.closeAfter&&setTimeout(()=>{dl(mn,U.id)&&gl(U.id)},U.closeAfter),new Promise((Fe,Se)=>{t(26,mn=[...je||[],{displayed:!0,settings:U,openFromClient:oe,promise:{resolve:Fe}}])}))},gl=(U,oe)=>{const Me=dl(mn,U);if(!Me){console.error("An unexisting alert has been dismissed.",mn,U);return}if(t(26,mn=mn.filter(je=>je.settings.id!==U)),Me.openFromClient){const je=Qn.getActiveIframe($),Fe={msg:"luigi.ux.alert.hide",id:U,dismissKey:oe};Ie.sendMessageToIframe(je,Fe)}else Me.promise&&Me.promise.resolve(oe||U)},kr=U=>{gl(U.detail.id,U.detail.dismissKey)};let Gi;const _l=()=>{t(27,Gi={displayed:!1,content:{},openFromClient:!1,promise:null})};_l();const pl=(U,oe=!1,Me)=>new Promise((je,Fe)=>{t(27,Gi={displayed:!0,settings:U,openFromClient:oe,promise:{resolve:je,reject:Fe},targetIframe:Me})}),ml=U=>{const{promise:oe,openFromClient:Me,targetIframe:je}=Gi;if(_l(),U?oe.resolve():oe.reject(),Me&&je){const Fe={msg:"luigi.ux.confirmationModal.hide",data:{confirmed:U}};Ie.sendMessageToIframe(je,Fe)}},Ol=U=>{if(le.dirtySet){if(U)return le.dirtySet.has(U);if(le.dirtySet.size>0)return!0}return!1},Ci=()=>pl({header:ht.getTranslation("luigi.unsavedChangesAlert.header"),body:ht.getTranslation("luigi.unsavedChangesAlert.body"),buttonDismiss:ht.getTranslation("luigi.button.dismiss"),buttonConfirm:ht.getTranslation("luigi.button.confirm")});Jr("getUnsavedChangesModalPromise",dt);let St=[];const si=U=>{if(typeof U>"u"){t(28,St=[]);return}t(28,St=St.filter((oe,Me)=>U!==Me))};si();const bl=async(U,oe)=>{if(await Te.shouldPreventNavigationForPath(U))return;const Me={mfModal:{displayed:!0,nodepath:U,settings:oe}};t(28,St=[...St,Me]),re.getConfigBooleanValue("routing.showModalPathInUrl")&&St.length===1&&it.appendModalDataToUrl(U,oe)},Fl=(U,oe)=>{t(28,St[oe].modalIframe=U.detail.modalIframe,St),t(28,St[oe].modalIframeData=U.detail.modalIframeData,St)},Ul=(U,oe)=>{t(28,St[oe].modalWC=U.detail.modalWC,St),t(28,St[oe].modalWCData=U.detail.modalWCData,St)},ai=(U,oe,Me)=>{const je=(Oe,_t)=>{re.getConfigBooleanValue("routing.showModalPathInUrl")&&St.length===1&&it.removeModalDataFromUrl(_t),si(Oe)},Fe=St[U],Se=ee.getRemotePromise(Fe.mfModal.settings.onClosePromiseId);Fe&&Fe.modalIframe?dt(Fe.modalIframe.contentWindow).then(()=>{je(U,oe),Se&&Se.doResolve(Me)}):Fe&&Fe.modalWC&&(je(U,oe),Se&&Se.doResolve(Me))};Jr("openViewInModal",bl);let Ut={};const yi=()=>{t(29,Ut.displayed=!1,Ut),t(29,Ut.nodepath=void 0,Ut),t(29,Ut.settings={},Ut),t(13,_=!1)};yi();const J=async(U,oe)=>{await Te.shouldPreventNavigationForPath(U)||(t(29,Ut.displayed=!0,Ut),t(29,Ut.nodepath=U,Ut),t(29,Ut.settings=oe,Ut),Ut.settings&&Ut.settings.backdrop&&t(13,_=!0))},Et=()=>window.innerWidth>=Xt.desktopMinWidth&&Ut.displayed&&Ut.settings&&!Ut.settings.overlap,on=()=>{if(!Et())return;const U=document.querySelector(".iframeModalCtn._drawer"),oe=Ie.getCurrentMicrofrontendIframe();if(U&&oe){oe.removeAttribute("style"),document.querySelector("div.iframeContainer").removeAttribute("style");const{width:Me}=getComputedStyle(U),je=oe.clientWidth;oe.setAttribute("style",`width: calc(${je}px - ${Me})`)}},Pi=U=>{p=U.detail.modalIframe,m=U.detail.modalIframeData,on()},es=U=>{v=U.detail.modalWC,U.detail.modalWCData,on()},ts=U=>{h=U.detail.activeDrawer},Bl=U=>{if(U&&U.detail&&U.detail.activeDrawer!==void 0&&(h=U.detail.activeDrawer),!h||U&&U.detail&&U.detail.type!=="modal")try{p?dt(p.contentWindow).then(()=>{yi()}):v&&dt().then(()=>{yi()}),Ie.getCurrentMicrofrontendIframe().removeAttribute("style")}catch(oe){console.log(oe)}},Sr=()=>{const U=rr.processUserSettingGroups();Array.isArray(U)&&U.length>0?(t(18,we.userSettingGroups=[...U],we),t(18,we.displayed=!0,we)):console.info("There are no user setting groups in the settings section of the luigi config defined.")},_a=()=>{t(18,we.displayed=!1,we)},ns=async U=>{if(await Te.shouldPreventNavigationForPath(U))return;re.getConfigValue("routing.useHashRouting")&&(U="#"+U),window.open(U,"_blank","noopener,noreferrer")},Wl=U=>{let oe=ae;if(F){let Fe=F.parent;for(oe=[F];Fe;)oe.push(Fe),Fe=Fe.parent;oe=[...oe].reverse()}let Me=U.link,je=tn(F,L);if(U.fromVirtualTreeRoot){const Fe=[...oe].reverse().find(Oe=>Oe.virtualTree);if(!Fe){console.error("LuigiClient Error: fromVirtualTreeRoot() is not possible because you are not inside a Luigi virtualTree navigation node.");return}const Se=tn(Fe,L);Me=je.split(Se).join("")}else if(U.fromParent){const Fe=tn(F.parent,L);Me=je.split(Fe).join("")}else if(U.fromClosestContext){const Fe=[...oe].reverse().find(Oe=>Oe.navigationContext&&Oe.navigationContext.length>0),Se=tn(Fe,L);Me=je.split(Se).join("")}else if(U.fromContext){const Fe=U.fromContext,Se=[...oe].reverse().find(_t=>Fe===_t.navigationContext),Oe=tn(Se,L);Me=je.split(Oe).join("")}else Me=je;return Me};function is(U){sessionStorage.removeItem("historyState"),ir.shouldPreload=!0,ir.preload(!0),ir.shouldPreload=!1;const oe=re.getConfigValue("navigation.defaults.isolateView"),Me=re.getConfigValue("navigation.defaults.pageErrorHandler"),je=re.getConfigValue("navigation.defaults.runTimeErrorHandler"),Fe={iframe:null,navigateOk:null,builderCompatibilityMode:Boolean(window.builderCompatibilityMode),isolateAllViews:oe,defaultPageErrorHandler:Me};ht.addCurrentLocaleChangeListener(Se=>{const Oe={msg:"luigi.current-locale-changed",currentLocale:Se};Ie.broadcastMessageToAllIframes(Oe)}),Pn.addEventListener("popstate",async Se=>{const Oe=mn;if(!Oe||!(Oe.length>0))return;const _t=Oe.map(Dt=>{if(Dt&&!Dt.openFromClient&&typeof Dt.settings.ttl=="number"){if(Dt.settings.ttl===0)return null;Dt.settings.ttl--}return Dt}).filter(Dt=>Dt);t(26,mn=_t)}),Pn.addEventListener("message",async Se=>{const Oe=Ie.getValidMessageSource(Se),_t=St[St.length-1],Dt=_t&&_t.modalIframe,vl=_t&&_t.modalIframeData,Ji={modalIframe:Dt,modalIframeData:vl,drawerIframe:p,drawerIframeData:m,drawer:k,modal:g,splitViewIframe:y,splitViewIframeData:C,splitView:N};if(!Oe)return;Oe._ready=!0;const Ir=Ie.getSpecialIframeMessageSource(Se,Ji),ji=Ir&&Ir.length>0,Tr=re.getConfigValue("communication.skipEventsWhenInactive");if(Tr&&Tr.length>0&&!ji&&Oe.contentWindow!==window&&!ee.isElementVisible(Oe)&&Tr.includes(Se.data.msg)){console.debug(`EVENT '${Se.data.msg}' from inactive iframe -> SKIPPED`);return}if(Se.data.msg==="custom"){const qe=re.getConfigValue("communication.customMessagesListeners")||{},Ke=sa.convertCustomMessageInternalToUser(Se.data),Xe=qe[Ke.id],Wn="luigi.updateUserSettings";if(we&&Ke.id===Wn){Xe&&console.warn(`The key "${Wn}" is not allowed to use for custom messages.`);return}if(typeof Xe=="function"){const oi=Mn.getMicrofrontends().find(Yi=>Ie.isMessageSource(Se,Yi.container));Xe(Ke,oi,ee.removeInternalProperties(Oe.luigi.currentNode))}else console.warn(`Warning: Custom message with id: '${Ke.id}' does not exist. Make sure you provided the same id as in the config file.`)}if(Se.data.msg==="luigi.init.ok"&&(Oe.luigi.initOk=!0),Se.data.msg==="luigi.navigate.ok"&&(Oe.luigi.viewUrl=Oe.luigi.nextViewUrl,Oe.luigi.nextViewUrl="",Oe.luigi.clientPermissions=Oe.luigi.nextClientPermissions,delete Oe.luigi.nextClientPermissions,Fe.navigateOk=!0,ir.preload()),Se.data.msg==="luigi.get-context"){if(Oe.luigi.clientVersion=Se.data.clientVersion,Oe.luigi.initOk=!1,ji)Ir.forEach(async qe=>{let Ke=Ji[qe.dataKey].context;const Xe={...Fe,iframe:Ji[qe.iframeKey],context:Ke,pathParams:Ji[qe.dataKey].pathParams,nodeParams:Ji[qe.dataKey].nodeParams,searchParams:pe.prepareSearchParamsForClient(Ji[qe.iframeKey].luigi.currentNode),modal:qe.iframeKey.startsWith("modal"),drawer:qe.iframeKey.startsWith("drawer"),splitView:qe.iframeKey.startsWith("splitView")};await zt(Xe,{})});else if(Fe.iframe&&Ie.isMessageSource(Se,Fe.iframe))await zt(Fe,{}),(!F||!F.loadingIndicator||F.loadingIndicator.hideAutomatically!==!1)&&t(11,s=!1),ir.preload();else if(Oe.luigi.preloading)await zt({iframe:Oe,context:{},nodeParams:{},pathParams:{},internal:{}},{});else{let qe=rr.findActiveCustomUserSettingsIframe(Se.source);if(qe){let Ke=qe.getAttribute("userSettingsGroup"),Xe={context:{userSettingsData:Rt[Ke]},iframe:qe};await zt(Xe)}}ir.viewGroupLoaded(Oe)}if(Se.data.msg==="luigi.show-loading-indicator"&&t(11,s=!0),Se.data.msg==="luigi.hide-loading-indicator"&&t(11,s=!1),Se.data.msg==="luigi.navigation.open"){Ce=!1;const qe=window.location.href,Ke=ji?Oe.luigi.currentNode:void 0,Xe=ji?Oe.luigi.pathParams:void 0,Wn=Se.data.params,{intent:oi,newTab:Yi,modal:wl,splitView:Lr,drawer:Hl,withoutSync:ba}=Wn;let Ar=Yi||wl||Lr||Hl;const Yt=()=>{const bn=ee.getRemotePromise(Se.data.remotePromiseId);bn&&bn.doResolve()},Qi=()=>{const bn=ee.getRemotePromise(Se.data.remotePromiseId);bn&&bn.doReject()},In=bn=>{!bn||qe!==window.location.href?Yt():Qi()};Se.source!==window&&!oi&&Wn.link&&(Wn.link=Wn.link.split("?")[0]);let rn=nn(Se.data.params,Ke,Xe);if(Ar=Ar||oi&&rn.external,!Ar)dt().then(()=>{ce=!Se.data.params.withoutSync,$t(Se.data,Fe,Ke,Xe).then(()=>{In(!0)}).catch(()=>{Qi()}),St.forEach((bn,vn)=>{ai(vn)}),wi(),Bl(),ce=!0}).catch(()=>{Qi()});else{if(oi&&rn.external){it.navigateToExternalLink({url:rn.url,sameWindow:!rn.openInNewTab});return}if(rn=ee.addLeadingSlash(rn),Yi){await ns(rn),In();return}const bn=await Cr(rn);if(rn=await pe.handlePageNotFoundAndRetrieveRedirectPath(dn(),rn,bn),!rn){Qi();return}$=U,wl!==void 0?(!wl.keepPrevious&&si(),await bl(rn,wl===!0?{}:wl),In()):Lr!==void 0?(await cl(rn,Lr),In()):Hl!==void 0&&(yi(),Hl.isDrawer=!0,await J(rn,Hl),In())}}if(Se.data.msg==="luigi.navigation.back"){const qe=St[St.length-1],Ke=Se.data.goBackContext&&JSON.parse(Se.data.goBackContext);Ie.isMessageSource(Se,qe&&qe.modalIframe)?(ai(St.length-1,!0,Ke),Fe.iframe&&await zt(Fe,{goBackContext:Ke})):Ie.isMessageSource(Se,y)?(wi(),Fe.iframe&&await zt(Fe,{goBackContext:Ke})):Ie.isMessageSource(Se,p)?(h&&(h=!h),Bl(),Fe.iframe&&await zt(Fe,{goBackContext:Ke})):K&&K.length>0?dt().then(()=>{Qn.setActiveIframeToPrevious(U);const Xe=K.pop();Fe.iframe=Qn.getActiveIframe(U),Ce=!0,K=K,H=Ke,$t({params:{link:Xe.path}},Fe)}):(Ke&&console.warn("Warning: goBack() does not support goBackContext value. This is available only when using the Luigi preserveView feature."),window.history.back())}if(Se.data.msg==="luigi.navigation.currentRoute"){const qe=Se.data.data,Xe={msg:"luigi.navigation.currentRoute.answer",data:{route:Wl(qe),correlationId:qe.id}};Ie.sendMessageToIframe(Oe,Xe)}if(Se.data.msg==="luigi.auth.tokenIssued"&&bi(Se.data.authData),Se.data.msg==="luigi.navigation.updateModalDataPath")if(ji){const qe=ee.addLeadingSlash(nn(Se.data.params,Oe.luigi.currentNode,Oe.luigi.pathParams));it.updateModalDataInUrl(qe,Se.data.params.modal,Se.data.params.history)}else console.warn("updateModalDataPath can only be called from modal, ignoring.");if(Se.data.msg==="luigi.navigation.pathExists"){const qe=Oe.luigi.currentNode,Ke=Oe.luigi.pathParams,Xe=Se.data.data,Wn=nn(Xe,qe,Ke),oi=Wn?await Mt.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),Wn):!1,Yi={msg:"luigi.navigation.pathExists.answer",data:{correlationId:Xe.id,pathExists:oi?oi.isExistingRoute:!1}};Ie.sendMessageToIframe(Oe,Yi)}if(Se.data.msg==="luigi.set-page-dirty"){if(!le.dirtySet){const qe=new Set;qe.add(Se.source),le={dirtySet:qe}}le.persistUrl=window.location.href,Se.data.dirty?le.dirtySet.add(Se.source):le.dirtySet.delete(Se.source)}if(Se.data.msg==="luigi.ux.confirmationModal.show"){const qe=Se.data.data.settings;$=U,_l(),pl(qe,!0,Oe).catch(()=>{})}if(Se.data.msg==="luigi.ux.alert.show"){const{settings:qe}=Se.data.data;if(!qe.text&&!ee.isFunction(re.getConfigValue("settings.customAlertHandler"))){console.error("Luigi Client alert: 'text' field for alert is empty or not present, therefore alert will not be displayed");return}$=U,hl(qe,!0).catch(()=>{})}if(Se.data.msg==="luigi.ux.set-current-locale")if(Oe.luigi.clientPermissions&&Oe.luigi.clientPermissions.changeCurrentLocale){const{currentLocale:qe}=Se.data.data;qe&&ht.setCurrentLocale(qe)}else console.error("Current local change from client declined because client permission changeCurrentLocale is not set for this view.");if(be&&!be.thirdPartyCookieScriptLocation&&Se.data.msg==="luigi.third-party-cookie"&&Se.data.tpc==="disabled"&&ls(),Se.data.msg==="storage"&&k2.process(Oe.luigi.id,Se.origin,Se.data.data.id,Se.data.data.operation,Se.data.data.params),Se.data.msg==="luigi-runtime-error-handling"){let qe=Oe.luigi.currentNode;qe&&qe.runTimeErrorHandler&&ee.isFunction(qe.runTimeErrorHandler.errorFn)?qe.runTimeErrorHandler.errorFn(Se.data.errorObj,qe):je&&ee.isFunction(je.errorFn)&&je.errorFn(Se.data.errorObj,qe)}if(Se.data.msg==="luigi.addSearchParams")if(Oe.luigi.currentNode.clientPermissions&&Oe.luigi.currentNode.clientPermissions.urlParameters){const{data:qe,keepBrowserHistory:Ke}=Se.data;pe.addSearchParamsFromClient(Oe.luigi.currentNode,qe,Ke)}else console.warn("No client permissions to add url parameter for this node.");if(Se.data.msg==="luigi.addNodeParams"){if(ji)return;const{data:qe,keepBrowserHistory:Ke}=Se.data;sl.addNodeParams(qe,Ke)}if(Se.data.msg==="luigi.setAnchor"){const{anchor:qe}=Se.data;sl.setAnchor(qe)}}),$n(U,Fe)}Jr("store",l),Jr("getTranslation",r);const ls=U=>{be&&be.thirdPartyCookieErrorHandling&&ee.isFunction(be.thirdPartyCookieErrorHandling)&&be.thirdPartyCookieErrorHandling()},Cr=async U=>{const oe={link:U,relative:U[0]!=="/",intent:pe.hasIntent(U)},Me=nn(oe),je=Me?await Mt.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),Me):!1;return je?je.isExistingRoute:!1},rs=()=>St.length>0||K.length!==0;Kt(()=>{if(y_._init(),ke=re.getConfigValue("globalSearch.searchProvider"),ve=re.getConfigValue("settings.responsiveNavigation"),qi=window.innerWidth,ve==="simple"){if(document.body.classList.add("lui-simpleSlideInNav"),Te.getBurgerTooltipConfig()){const[U,oe]=Te.getBurgerTooltipConfig();U&&oe&&t(19,ie=document.body.classList.contains("lui-leftNavToggle")?U:oe)}}else if(ve==="simpleMobileOnly")document.body.classList.add("lui-simpleSlideInNav","lui-mobileOnly");else{if(Te.getBurgerTooltipConfig()){const[U,oe]=Te.getBurgerTooltipConfig();if(U&&oe){const Me=JSON.parse(localStorage.getItem(Te.COL_NAV_KEY));t(19,ie=Me?U:oe)}}document.body.classList.add("lui-semiCollapsible")}be=re.getConfigValue("settings.thirdPartyCookieCheck"),be&&be.thirdPartyCookieScriptLocation&&setTimeout(()=>{let U=document.createElement("iframe");U.width="0px",U.height="0px",U.src=be.thirdPartyCookieScriptLocation,document.body.appendChild(U),U.onload=function(){setTimeout(()=>{my()==="disabled"&&ls()}),document.body.removeChild(U)}})}),Eo(()=>{on()}),On(()=>{t(20,Un=ee.requestExperimentalFeature("breadcrumbs")),ke=re.getConfigValue("globalSearch.searchProvider"),t(24,Dl=re.getConfigValue("tag")),t(25,Vl=re.getConfigValue("settings.header.disabled"))});const yr=U=>ai(U,!0),pa=(U,oe)=>Fl(oe,U),ss=(U,oe)=>Ul(oe,U),Pr=()=>ml(!0),Nr=()=>ml(!1);function Ki(U){Rt=U,t(6,Rt)}function as(U){Re=U,t(0,Re)}function os(U){tt=U,t(3,tt)}function ma(U){Ft=U,t(4,Ft)}function us(U){Jt=U,t(5,Jt)}function fs(U){Le=U,t(1,Le)}function cs(U){_e=U,t(2,_e)}return i.$$set=U=>{"store"in U&&t(46,l=U.store),"getTranslation"in U&&t(47,r=U.getTranslation),"isSearchFieldVisible"in U&&t(0,Re=U.isSearchFieldVisible),"inputElem"in U&&t(1,Le=U.inputElem),"luigiCustomSearchRenderer__slot"in U&&t(2,_e=U.luigiCustomSearchRenderer__slot),"displaySearchResult"in U&&t(3,tt=U.displaySearchResult),"displayCustomSearchResult"in U&&t(4,Ft=U.displayCustomSearchResult),"searchResult"in U&&t(5,Jt=U.searchResult),"storedUserSettings"in U&&t(6,Rt=U.storedUserSettings)},[Re,Le,_e,tt,Ft,Jt,Rt,yt,ri,Hi,_a,s,o,_,L,ae,ue,x,we,ie,Un,ki,zi,Si,Dl,Vl,mn,Gi,St,Ut,Bn,vi,mr,br,vr,wr,kr,ml,Fl,Ul,ai,Pi,es,ts,Bl,is,l,r,te,Ve,gt,Pt,wt,an,Nn,cl,wi,hr,gr,_r,pr,El,hl,pl,Sr,Cr,rs,yr,pa,ss,Pr,Nr,Ki,as,os,ma,us,fs,cs]}class yy extends At{constructor(e){super(),Lt(this,e,Cy,Sy,It,{store:46,getTranslation:47,isSearchFieldVisible:0,inputElem:1,luigiCustomSearchRenderer__slot:2,displaySearchResult:3,displayCustomSearchResult:4,searchResult:5,storedUserSettings:6,closeSearchField:48,openSearchField:49,clearSearchField:50,toggleSearch:7,getGlobalSearchString:51,setGlobalSearchString:52,setSearchInputPlaceholder:53,showSearchResult:54,closeSearchResult:8,handleSearchNavigation:9,openSplitView:55,closeSplitView:56,collapseSplitView:57,expandSplitView:58,isSplitViewCollapsed:59,isSplitViewExpanded:60,existsSplitView:61,showAlert:62,showModal:63,openUserSettings:64,closeUserSettings:10,pathExists:65,hasBack:66},null,[-1,-1,-1,-1,-1])}get closeSearchField(){return this.$$.ctx[48]}get openSearchField(){return this.$$.ctx[49]}get clearSearchField(){return this.$$.ctx[50]}get toggleSearch(){return this.$$.ctx[7]}get getGlobalSearchString(){return this.$$.ctx[51]}get setGlobalSearchString(){return this.$$.ctx[52]}get setSearchInputPlaceholder(){return this.$$.ctx[53]}get showSearchResult(){return this.$$.ctx[54]}get closeSearchResult(){return this.$$.ctx[8]}get handleSearchNavigation(){return this.$$.ctx[9]}get openSplitView(){return this.$$.ctx[55]}get closeSplitView(){return this.$$.ctx[56]}get collapseSplitView(){return this.$$.ctx[57]}get expandSplitView(){return this.$$.ctx[58]}get isSplitViewCollapsed(){return this.$$.ctx[59]}get isSplitViewExpanded(){return this.$$.ctx[60]}get existsSplitView(){return this.$$.ctx[61]}get showAlert(){return this.$$.ctx[62]}get showModal(){return this.$$.ctx[63]}get openUserSettings(){return this.$$.ctx[64]}get closeUserSettings(){return this.$$.ctx[10]}get pathExists(){return this.$$.ctx[65]}get hasBack(){return this.$$.ctx[66]}}const Py=()=>{const{subscribe:i,update:e,reset:t}=or({}),n={};return{subscribe:i,update:e,reset:t,subscribeToScope:(l,r)=>{let s=n[r];s||(s=new Set,n[r]=s),s.add(l)},fire:(l,r)=>{let s=n[l];s&&[...s].forEach(o=>{o(r)})}}},M_=Py(),Ny=Gw((i,e,t)=>ht.getTranslation(i,e,t));Luigi._store=M_;const Iy=()=>new Promise(i=>{ht._init(),en.init().then(()=>{setTimeout(()=>{let e;Mn.isCustomLuigiContainer()&&document.getElementsByTagName("html")[0].classList.add("luigi-app-in-custom-container"),e=new yy({target:Mn.getLuigiContainer(),props:{store:M_,getTranslation:Ny}}),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()},i()})})});re.setConfigCallbacks(Iy);
|
|
61
|
+
<span class="sap-icon--dropdown luigi-icon--dropdown svelte-1kb8g8n"></span>`,g=q(),h=S("div"),_=S("ul");for(let N=0;N<T.length;N+=1)T[N].c();f(n,"class","tabsContainer luigi-tabsContainer svelte-1kb8g8n"),f(t,"class","tabsContainerWrapper svelte-1kb8g8n"),f(c,"class","fd-tabs__link fd-popover__control has-child luigi__more svelte-1kb8g8n"),f(c,"aria-expanded","false"),f(c,"role","tab"),f(_,"class","fd-nested-list fd-nested-list--compact fd-nested-list--text-only svelte-1kb8g8n"),f(h,"class","fd-popover__body fd-popover__body--right fd-popover__body--no-arrow svelte-1kb8g8n"),f(h,"aria-hidden",p=!i[4]),f(o,"class","fd-popover fd-popover--right"),f(s,"class","fd-tabs__item svelte-1kb8g8n"),f(r,"class","luigi-tabsMoreButton svelte-1kb8g8n"),f(e,"class","fd-tabs fd-tabs--l svelte-1kb8g8n"),f(e,"role","tablist"),f(e,"id","tabsContainer")},m(N,D){R(N,e,D),w(e,t),w(t,n);for(let I=0;I<y.length;I+=1)y[I].m(n,null);w(e,l),w(e,r),w(r,s),w(s,o),w(o,c),w(o,g),w(o,h),w(h,_);for(let I=0;I<T.length;I+=1)T[I].m(_,null);m||(v=[ne(c,"click",Tt(i[10])),ne(s,"click",ly),ne(e,"toggleDropdownState",i[24])],m=!0)},p(N,D){if(D[0]&10477){k=Object.entries(N[0]);let I;for(I=0;I<k.length;I+=1){const L=cg(N,k,I);y[I]?y[I].p(L,D):(y[I]=kg(L),y[I].c(),y[I].m(n,null))}for(;I<y.length;I+=1)y[I].d(1);y.length=k.length}if(D[0]&10477){C=Object.entries(N[0]);let I;for(I=0;I<C.length;I+=1){const L=og(N,C,I);T[I]?T[I].p(L,D):(T[I]=yg(L),T[I].c(),T[I].m(_,null))}for(;I<T.length;I+=1)T[I].d(1);T.length=C.length}D[0]&16&&p!==(p=!N[4])&&f(h,"aria-hidden",p)},d(N){N&&A(e),ct(y,N),ct(T,N),m=!1,Ze(v)}}}function $C(i){let e,t,n,l,r,s=i[11](i[34])+"",o,c,g,h,_,p,m,v,k,y,C,T,N;function D(){return i[18](i[34])}let I=i[35],L=[];for(let M=0;M<I.length;M+=1)L[M]=mg(dg(i,I,M));return{c(){e=S("span"),t=S("div"),n=S("div"),l=S("a"),r=S("span"),o=Pe(s),c=q(),g=S("span"),_=q(),p=S("div"),m=S("nav"),v=S("ul");for(let M=0;M<L.length;M+=1)L[M].c();y=q(),f(r,"class","label fd-tabs__tag svelte-1kb8g8n"),f(g,"class","sap-icon--dropdown luigi-icon--dropdown svelte-1kb8g8n"),f(l,"class","fd-tabs__link has-child svelte-1kb8g8n"),f(l,"aria-expanded","false"),f(l,"role","tab"),f(l,"aria-selected",h=sr(i[34],i[2])),f(n,"class","fd-popover__control"),f(v,"class","fd-menu__list fd-menu__list--no-shadow"),f(m,"class","fd-menu"),f(p,"class","fd-popover__body fd-popover__body--no-arrow"),f(p,"aria-hidden",k=!i[3][i[34]]),f(t,"class","fd-popover"),f(e,"class","fd-tabs__item svelte-1kb8g8n"),f(e,"uid",i[37]+"-0"),f(e,"isselected",C=sr(i[34],i[2]))},m(M,F){R(M,e,F),w(e,t),w(t,n),w(n,l),w(l,r),w(r,o),w(l,c),w(l,g),w(t,_),w(t,p),w(p,m),w(m,v);for(let O=0;O<L.length;O+=1)L[O].m(v,null);w(e,y),T||(N=[ne(l,"click",Tt(D)),ne(e,"click",iy)],T=!0)},p(M,F){if(i=M,F[0]&2049&&s!==(s=i[11](i[34])+"")&&Ne(o,s),F[0]&5&&h!==(h=sr(i[34],i[2]))&&f(l,"aria-selected",h),F[0]&10309){I=i[35];let O;for(O=0;O<I.length;O+=1){const j=dg(i,I,O);L[O]?L[O].p(j,F):(L[O]=mg(j),L[O].c(),L[O].m(v,null))}for(;O<L.length;O+=1)L[O].d(1);L.length=I.length}F[0]&9&&k!==(k=!i[3][i[34]])&&f(p,"aria-hidden",k),F[0]&5&&C!==(C=sr(i[34],i[2]))&&f(e,"isselected",C)},d(M){M&&A(e),ct(L,M),T=!1,Ze(N)}}}function xC(i){let e,t=i[35],n=[];for(let l=0;l<t.length;l+=1)n[l]=wg(hg(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=ye()},m(l,r){for(let s=0;s<n.length;s+=1)n[s].m(l,r);R(l,e,r)},p(l,r){if(r[0]&10309){t=l[35];let s;for(s=0;s<t.length;s+=1){const o=hg(l,t,s);n[s]?n[s].p(o,r):(n[s]=wg(o),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){ct(n,l),l&&A(e)}}}function _g(i){let e,t=i[38].label&&pg(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[38].label?t?t.p(n,l):(t=pg(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function pg(i){let e,t,n,l=i[11](i[38].label)+"",r,s,o,c,g,h;function _(){return i[19](i[38])}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Pe(l),c=q(),f(n,"class","fd-menu__title"),f(t,"href",s=i[13](i[38])),f(t,"class","fd-menu__link"),f(t,"aria-selected",o=i[38]===i[2]),f(e,"class","fd-menu__item")},m(p,m){R(p,e,m),w(e,t),w(t,n),w(n,r),w(e,c),g||(h=ne(t,"click",Tt(_)),g=!0)},p(p,m){i=p,m[0]&2049&&l!==(l=i[11](i[38].label)+"")&&Ne(r,l),m[0]&1&&s!==(s=i[13](i[38]))&&f(t,"href",s),m[0]&5&&o!==(o=i[38]===i[2])&&f(t,"aria-selected",o)},d(p){p&&A(e),g=!1,h()}}}function mg(i){let e,t=!i[38].hideFromNav&&_g(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[38].hideFromNav?t&&(t.d(1),t=null):t?t.p(n,l):(t=_g(n),t.c(),t.m(e.parentNode,e))},d(n){t&&t.d(n),n&&A(e)}}}function bg(i){let e,t=i[38].label&&vg(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[38].label?t?t.p(n,l):(t=vg(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function vg(i){let e,t,n,l=i[11](i[38].label)+"",r,s,o,c,g,h,_,p;function m(){return i[17](i[38])}return{c(){e=S("span"),t=S("a"),n=S("span"),r=Pe(l),c=q(),f(n,"class","fd-tabs__tag"),f(t,"class","fd-tabs__link"),f(t,"href",s=i[13](i[38])),f(t,"role","tab"),f(t,"aria-selected",o=i[38]===i[2]),f(e,"class",g="fd-tabs__item "+(i[38]===i[2]?"is-selected":"")+" svelte-1kb8g8n"),f(e,"uid",i[37]+"-"+i[40]),f(e,"isselected",h=i[38]===i[2])},m(v,k){R(v,e,k),w(e,t),w(t,n),w(n,r),w(e,c),_||(p=ne(t,"click",Tt(m)),_=!0)},p(v,k){i=v,k[0]&2049&&l!==(l=i[11](i[38].label)+"")&&Ne(r,l),k[0]&1&&s!==(s=i[13](i[38]))&&f(t,"href",s),k[0]&5&&o!==(o=i[38]===i[2])&&f(t,"aria-selected",o),k[0]&5&&g!==(g="fd-tabs__item "+(i[38]===i[2]?"is-selected":"")+" svelte-1kb8g8n")&&f(e,"class",g),k[0]&5&&h!==(h=i[38]===i[2])&&f(e,"isselected",h)},d(v){v&&A(e),_=!1,p()}}}function wg(i){let e,t=!i[38].hideFromNav&&bg(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[38].hideFromNav?t&&(t.d(1),t=null):t?t.p(n,l):(t=bg(n),t.c(),t.m(e.parentNode,e))},d(n){t&&t.d(n),n&&A(e)}}}function kg(i){let e,t;function n(s,o){return o[0]&33&&(e=null),e==null&&(e=s[34]==="undefined"||s[34].indexOf(s[5])===0),e?xC:$C}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=ye()},m(s,o){r.m(s,o),R(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function ey(i){let e,t,n,l,r=i[11](i[34])+"",s,o,c,g,h,_,p,m,v,k,y,C,T,N;function D(){return i[21](i[34],i[37])}function I(){return i[22](i[34],i[37])}let L=i[35],M=[];for(let F=0;F<L.length;F+=1)M[F]=Sg(ug(i,L,F));return{c(){e=S("li"),t=S("div"),n=S("a"),l=S("span"),s=Pe(r),g=q(),h=S("button"),_=S("i"),v=q(),k=S("ul");for(let F=0;F<M.length;F+=1)M[F].c();C=q(),f(l,"class","fd-nested-list__title"),f(n,"href","javascript:void(null)"),f(n,"tabindex","-1"),f(n,"class","fd-nested-list__link"),f(n,"id","tabnav_list_level1_"+i[37]),f(n,"aria-haspopup","true"),f(n,"aria-expanded",o=i[3][i[34]+i[37]]),f(n,"aria-selected",c=sr(i[34],i[2])),f(_,"class",p=i[3][i[34]+i[37]]?"sap-icon--navigation-down-arrow":"sap-icon--navigation-right-arrow"),f(_,"role","presentation"),f(h,"class","fd-button fd-nested-list__button"),f(h,"href","#"),f(h,"tabindex","-1"),f(h,"aria-label","Expand submenu"),f(h,"aria-haspopup","true"),f(h,"aria-expanded",m=i[3][i[34]+i[37]]),f(t,"class","fd-nested-list__content has-child svelte-1kb8g8n"),f(t,"tabindex","0"),f(k,"class","fd-nested-list level-2"),f(k,"aria-hidden",y=!i[3][i[34]+i[37]]),f(e,"class","fd-nested-list__item"),f(e,"uid",i[37]+"-0")},m(F,O){R(F,e,O),w(e,t),w(t,n),w(n,l),w(l,s),w(t,g),w(t,h),w(h,_),w(e,v),w(e,k);for(let j=0;j<M.length;j+=1)M[j].m(k,null);w(e,C),T||(N=[ne(n,"click",Tt(D)),ne(h,"click",Tt(I))],T=!0)},p(F,O){if(i=F,O[0]&2049&&r!==(r=i[11](i[34])+"")&&Ne(s,r),O[0]&9&&o!==(o=i[3][i[34]+i[37]])&&f(n,"aria-expanded",o),O[0]&5&&c!==(c=sr(i[34],i[2]))&&f(n,"aria-selected",c),O[0]&9&&p!==(p=i[3][i[34]+i[37]]?"sap-icon--navigation-down-arrow":"sap-icon--navigation-right-arrow")&&f(_,"class",p),O[0]&9&&m!==(m=i[3][i[34]+i[37]])&&f(h,"aria-expanded",m),O[0]&10309){L=i[35];let j;for(j=0;j<L.length;j+=1){const fe=ug(i,L,j);M[j]?M[j].p(fe,O):(M[j]=Sg(fe),M[j].c(),M[j].m(k,null))}for(;j<M.length;j+=1)M[j].d(1);M.length=L.length}O[0]&9&&y!==(y=!i[3][i[34]+i[37]])&&f(k,"aria-hidden",y)},d(F){F&&A(e),ct(M,F),T=!1,Ze(N)}}}function ty(i){let e,t=i[35],n=[];for(let l=0;l<t.length;l+=1)n[l]=Cg(fg(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=ye()},m(l,r){for(let s=0;s<n.length;s+=1)n[s].m(l,r);R(l,e,r)},p(l,r){if(r[0]&10309){t=l[35];let s;for(s=0;s<t.length;s+=1){const o=fg(l,t,s);n[s]?n[s].p(o,r):(n[s]=Cg(o),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){ct(n,l),l&&A(e)}}}function Sg(i){let e,t,n,l=i[11](i[38].label)+"",r,s,o,c,g,h;function _(){return i[23](i[38])}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Pe(l),c=q(),f(n,"class","fd-nested-list__title"),f(t,"class","fd-nested-list__link"),f(t,"href",s=i[13](i[38])),f(t,"aria-selected",o=i[38]===i[2]),f(e,"class","fd-nested-list__item"),f(e,"aria-labelledby","tabnav_list_level1_"+i[37])},m(p,m){R(p,e,m),w(e,t),w(t,n),w(n,r),w(e,c),g||(h=ne(t,"click",Tt(_)),g=!0)},p(p,m){i=p,m[0]&2049&&l!==(l=i[11](i[38].label)+"")&&Ne(r,l),m[0]&1&&s!==(s=i[13](i[38]))&&f(t,"href",s),m[0]&5&&o!==(o=i[38]===i[2])&&f(t,"aria-selected",o)},d(p){p&&A(e),g=!1,h()}}}function Cg(i){let e,t,n,l=i[11](i[38].label)+"",r,s,o,c,g,h;function _(){return i[20](i[38])}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Pe(l),c=q(),f(n,"class","fd-nested-list__title"),f(t,"href",s=i[13](i[38])),f(t,"class","fd-nested-list__link"),f(t,"aria-selected",o=i[38]===i[2]),f(e,"class","fd-nested-list__item"),f(e,"uid",i[37]+"-"+i[40])},m(p,m){R(p,e,m),w(e,t),w(t,n),w(n,r),w(e,c),g||(h=ne(t,"click",Tt(_)),g=!0)},p(p,m){i=p,m[0]&2049&&l!==(l=i[11](i[38].label)+"")&&Ne(r,l),m[0]&1&&s!==(s=i[13](i[38]))&&f(t,"href",s),m[0]&5&&o!==(o=i[38]===i[2])&&f(t,"aria-selected",o)},d(p){p&&A(e),g=!1,h()}}}function yg(i){let e,t;function n(s,o){return o[0]&33&&(e=null),e==null&&(e=s[34]==="undefined"||s[34].indexOf(s[5])===0),e?ty:ey}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=ye()},m(s,o){r.m(s,o),R(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function ny(i){let e,t,n,l=i[0]&&i[1].length>1&&gg(i);return{c(){l&&l.c(),e=ye()},m(r,s){l&&l.m(r,s),R(r,e,s),t||(n=[ne(yo,"click",i[8]),ne(yo,"blur",i[8]),ne(yo,"resize",i[9])],t=!0)},p(r,s){r[0]&&r[1].length>1?l?l.p(r,s):(l=gg(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ue,o:Ue,d(r){l&&l.d(r),r&&A(e),t=!1,Ze(n)}}}function sr(i,e){return e&&e.category&&(e.category===i||e.category.label===i)}const iy=i=>i.stopPropagation(),ly=i=>i.stopPropagation();function ry(i,e,t){let n,{children:l}=e,{pathData:r}=e,{pathParams:s}=e,o,{hideNavComponent:c}=e,{virtualGroupPrefix:g=Te.virtualGroupPrefix}=e,h,{selectedNodeForTabNav:_}=e,{dropDownStates:p={}}=e,{isMoreBtnExpanded:m=!1}=e,{resizeTabNavToggle:v}=e,k,y=vt("getTranslation");mi(i,y,le=>t(11,n=le));const C={get:()=>({children:l,pathData:r,hideNavComponent:c,virtualGroupPrefix:g,selectedNode:h,selectedNodeForTabNav:_,dropDownStates:p,isMoreBtnExpanded:m}),set:le=>{le&&Object.getOwnPropertyNames(le).forEach(ve=>{ve==="pathData"?t(1,r=le.pathData):ve==="context"?context=le.context:ve==="children"?t(0,l=le.children):ve==="selectedNode"?h=le.selectedNode:ve==="selectedNodeForTabNav"&&t(2,_=le.selectedNodeForTabNav)})}},T=Wt(),N=async()=>{const le=C.get(),ve=await Mt.getTabNavData({...le},le);!ve||(C.set({...ve}),o=r,window.LEFTNAVDATA=ve.groupedChildren,setTimeout(D))},D=()=>{I();let le=document.getElementsByClassName("luigi-tabsContainer")[0],ve=document.getElementsByClassName("luigi-tabsMoreButton")[0],ue=document.getElementsByClassName("luigi__more")[0],x,be=0,ke=!1,we,ie;ue&&ue.setAttribute("aria-selected","false"),le&&(x=le.offsetWidth,[...le.children].forEach(Le=>{we=Le.currentStyle||window.getComputedStyle(Le),ie=parseFloat(we.marginLeft)+parseFloat(we.marginRight),be+=Le.offsetWidth+ie;let _e=Le.getAttribute("uid");be>=x?(Le.classList.add("hide_element"),Le.getAttribute("isSelected")==="true"&&ue.setAttribute("aria-selected","true"),document.querySelector('li[uid="'+_e+'"]').classList.remove("hide_element"),ke=!0):document.querySelector('li[uid="'+_e+'"]').classList.add("hide_element")}),ke?ve.classList.remove("hide_element"):ve.classList.add("hide_element"))},I=()=>{let le=document.getElementsByClassName("luigi-tabsContainer")[0];le!==void 0&&[...le.children].forEach(ue=>{ue.classList.remove("hide_element")})};Kt(()=>{t(14,c=re.getConfigBooleanValue("settings.hideNavigation"))}),On(()=>{(!o||o!=r)&&N(),(k===void 0||k!==v)&&(k=v,N())});function L(le){return pe.getNodeHref(le,s)}function M(le){O(),T("handleClick",{node:le})}function F(le){let ve={};p[le]||(ve[le]=!0),t(3,p=ve)}function O(){t(3,p={}),t(4,m=!1)}function j(){I(),D()}function fe(){t(4,m=!m)}const X=le=>M(le),Q=le=>F(le),ce=le=>M(le),Ce=le=>M(le),H=(le,ve)=>F(le+ve),ae=(le,ve)=>F(le+ve),$=le=>M(le),K=le=>F(le.name);return i.$$set=le=>{"children"in le&&t(0,l=le.children),"pathData"in le&&t(1,r=le.pathData),"pathParams"in le&&t(15,s=le.pathParams),"hideNavComponent"in le&&t(14,c=le.hideNavComponent),"virtualGroupPrefix"in le&&t(5,g=le.virtualGroupPrefix),"selectedNodeForTabNav"in le&&t(2,_=le.selectedNodeForTabNav),"dropDownStates"in le&&t(3,p=le.dropDownStates),"isMoreBtnExpanded"in le&&t(4,m=le.isMoreBtnExpanded),"resizeTabNavToggle"in le&&t(16,v=le.resizeTabNavToggle)},[l,r,_,p,m,g,M,F,O,j,fe,n,y,L,c,s,v,X,Q,ce,Ce,H,ae,$,K]}class sy extends At{constructor(e){super(),Lt(this,e,ry,ny,It,{children:0,pathData:1,pathParams:15,hideNavComponent:14,virtualGroupPrefix:5,selectedNodeForTabNav:2,dropDownStates:3,isMoreBtnExpanded:4,resizeTabNavToggle:16,handleClick:6,toggleDropdownState:7,closeAllDropdowns:8,onResize:9,toggleMoreBtn:10},null,[-1,-1])}get handleClick(){return this.$$.ctx[6]}get toggleDropdownState(){return this.$$.ctx[7]}get closeAllDropdowns(){return this.$$.ctx[8]}get onResize(){return this.$$.ctx[9]}get toggleMoreBtn(){return this.$$.ctx[10]}}function Pg(i,e,t){const n=i.slice();return n[24]=e[t],n[26]=t,n}function Ng(i,e,t){const n=i.slice();return n[24]=e[t],n[26]=t,n}function Ig(i){let e,t,n,l,r,s=i[0]&&i[3].length>0&&Tg(i),o=i[0]&&i[3].length>0&&Eg(i);return{c(){e=S("div"),t=S("nav"),n=S("div"),s&&s.c(),l=q(),r=S("div"),o&&o.c(),f(n,"class","fd-side-nav__main-navigation"),f(r,"class","fd-side-nav__utility svelte-174hcxg"),f(r,"aria-label","Utility Menu"),f(t,"class","fd-side-nav fd-side-nav--condensed svelte-174hcxg"),f(e,"class","lui-globalnav svelte-174hcxg")},m(c,g){R(c,e,g),w(e,t),w(t,n),s&&s.m(n,null),w(t,l),w(t,r),o&&o.m(r,null)},p(c,g){c[0]&&c[3].length>0?s?s.p(c,g):(s=Tg(c),s.c(),s.m(n,null)):s&&(s.d(1),s=null),c[0]&&c[3].length>0?o?o.p(c,g):(o=Eg(c),o.c(),o.m(r,null)):o&&(o.d(1),o=null)},d(c){c&&A(e),s&&s.d(),o&&o.d()}}}function Tg(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Rg(Ng(i,t,l));return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-nested-list svelte-174hcxg")},m(l,r){R(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null)},p(l,r){if(r&16083){t=l[0];let s;for(s=0;s<t.length;s+=1){const o=Ng(l,t,s);n[s]?n[s].p(o,r):(n[s]=Rg(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){l&&A(e),ct(n,l)}}}function Lg(i){let e,t,n,l,r,s=i[11](i[24])+"",o,c,g,h,_,p,m,v,k,y,C=i[24].icon&&Ag(i);function T(...N){return i[18](i[24],...N)}return{c(){e=S("li"),t=S("a"),n=S("div"),C&&C.c(),l=q(),r=S("div"),o=Pe(s),c=q(),g=S("div"),p=q(),f(r,"class","lui-text svelte-174hcxg"),f(g,"class","lui-indicator svelte-174hcxg"),f(n,"class","lui-fd-nested-list__content svelte-174hcxg"),f(t,"href",h=i[6]?i[13](i[24]):void 0),f(t,"title",_=i[7](i[24].label)),f(t,"role","button"),f(t,"tabindex","0"),f(t,"class","svelte-174hcxg"),f(e,"class",m="fd-nested-list__item "+(i[24]===i[1]?"is-selected":"")+" svelte-174hcxg"),f(e,"data-testid",v=i[12](i[24]))},m(N,D){R(N,e,D),w(e,t),w(t,n),C&&C.m(n,null),w(n,l),w(n,r),w(r,o),w(n,c),w(n,g),w(e,p),k||(y=ne(t,"click",T),k=!0)},p(N,D){i=N,i[24].icon?C?C.p(i,D):(C=Ag(i),C.c(),C.m(n,l)):C&&(C.d(1),C=null),D&1&&s!==(s=i[11](i[24])+"")&&Ne(o,s),D&65&&h!==(h=i[6]?i[13](i[24]):void 0)&&f(t,"href",h),D&129&&_!==(_=i[7](i[24].label))&&f(t,"title",_),D&3&&m!==(m="fd-nested-list__item "+(i[24]===i[1]?"is-selected":"")+" svelte-174hcxg")&&f(e,"class",m),D&1&&v!==(v=i[12](i[24]))&&f(e,"data-testid",v)},d(N){N&&A(e),C&&C.d(),k=!1,y()}}}function Ag(i){let e,t;function n(s,o){return o&1&&(e=null),e==null&&(e=!!s[10](s[24])),e?oy:ay}let l=n(i,-1),r=l(i);return{c(){r.c(),t=ye()},m(s,o){r.m(s,o),R(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function ay(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-174hcxg"),rt(e.src,t=i[24].icon)||f(e,"src",t),f(e,"alt",n=i[24].altText?i[24].altText:"")},m(l,r){R(l,e,r)},p(l,r){r&1&&!rt(e.src,t=l[24].icon)&&f(e,"src",t),r&1&&n!==(n=l[24].altText?l[24].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function oy(i){let e,t;return{c(){e=S("span"),f(e,"class",t="lui-text fd-top-nav__icon "+i[9](i[24].icon)+" svelte-174hcxg")},m(n,l){R(n,e,l)},p(n,l){l&1&&t!==(t="lui-text fd-top-nav__icon "+n[9](n[24].icon)+" svelte-174hcxg")&&f(e,"class",t)},d(n){n&&A(e)}}}function Rg(i){let e,t=i[24].globalNav===!0&&!i[24].separator&&Lg(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[24].globalNav===!0&&!n[24].separator?t?t.p(n,l):(t=Lg(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function Eg(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Mg(Pg(i,t,l));return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-nested-list svelte-174hcxg")},m(l,r){R(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null)},p(l,r){if(r&16083){t=l[0];let s;for(s=0;s<t.length;s+=1){const o=Pg(l,t,s);n[s]?n[s].p(o,r):(n[s]=Mg(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){l&&A(e),ct(n,l)}}}function Dg(i){let e,t,n,l,r,s=i[11](i[24])+"",o,c,g,h,_,p,m,v,k,y,C=i[24].icon&&Vg(i);function T(){return i[19](i[24])}return{c(){e=S("li"),t=S("a"),n=S("div"),C&&C.c(),l=q(),r=S("div"),o=Pe(s),c=q(),g=S("div"),p=q(),f(r,"class","lui-text svelte-174hcxg"),f(g,"class","lui-indicator svelte-174hcxg"),f(n,"class","lui-fd-nested-list__content svelte-174hcxg"),f(t,"href",h=i[6]?i[13](i[24]):void 0),f(t,"title",_=i[7](i[24].label)),f(t,"class","svelte-174hcxg"),f(e,"class",m="fd-nested-list__item "+(i[24]===i[1]?"is-selected":"")+" svelte-174hcxg"),f(e,"data-testid",v=i[12](i[24]))},m(N,D){R(N,e,D),w(e,t),w(t,n),C&&C.m(n,null),w(n,l),w(n,r),w(r,o),w(n,c),w(n,g),w(e,p),k||(y=ne(n,"click",Tt(T)),k=!0)},p(N,D){i=N,i[24].icon?C?C.p(i,D):(C=Vg(i),C.c(),C.m(n,l)):C&&(C.d(1),C=null),D&1&&s!==(s=i[11](i[24])+"")&&Ne(o,s),D&65&&h!==(h=i[6]?i[13](i[24]):void 0)&&f(t,"href",h),D&129&&_!==(_=i[7](i[24].label))&&f(t,"title",_),D&3&&m!==(m="fd-nested-list__item "+(i[24]===i[1]?"is-selected":"")+" svelte-174hcxg")&&f(e,"class",m),D&1&&v!==(v=i[12](i[24]))&&f(e,"data-testid",v)},d(N){N&&A(e),C&&C.d(),k=!1,y()}}}function Vg(i){let e,t;function n(s,o){return o&1&&(e=null),e==null&&(e=!!s[10](s[24])),e?fy:uy}let l=n(i,-1),r=l(i);return{c(){r.c(),t=ye()},m(s,o){r.m(s,o),R(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function uy(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-174hcxg"),rt(e.src,t=i[24].icon)||f(e,"src",t),f(e,"alt",n=i[24].altText?i[24].altText:"")},m(l,r){R(l,e,r)},p(l,r){r&1&&!rt(e.src,t=l[24].icon)&&f(e,"src",t),r&1&&n!==(n=l[24].altText?l[24].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function fy(i){let e,t;return{c(){e=S("span"),f(e,"class",t="lui-text fd-top-nav__icon "+i[9](i[24].icon)+" svelte-174hcxg")},m(n,l){R(n,e,l)},p(n,l){l&1&&t!==(t="lui-text fd-top-nav__icon "+n[9](n[24].icon)+" svelte-174hcxg")&&f(e,"class",t)},d(n){n&&A(e)}}}function Mg(i){let e,t=i[24].globalNav==="bottom"&&!i[24].separator&&Dg(i);return{c(){t&&t.c(),e=ye()},m(n,l){t&&t.m(n,l),R(n,e,l)},p(n,l){n[24].globalNav==="bottom"&&!n[24].separator?t?t.p(n,l):(t=Dg(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function cy(i){let e,t,n,l=i[2]&&Ig(i);return{c(){l&&l.c(),e=ye()},m(r,s){l&&l.m(r,s),R(r,e,s),t||(n=[ne(window,"click",da),ne(window,"blur",da)],t=!0)},p(r,[s]){r[2]?l?l.p(r,s):(l=Ig(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:Ue,o:Ue,d(r){l&&l.d(r),r&&A(e),t=!1,Ze(n)}}}function da(){}function dy(i,e,t){let n;const l=Wt();let{pathData:r}=e,s,{pathParams:o}=e,{children:c}=e,{selectedNode:g}=e,h=vt("store"),_=vt("getTranslation");mi(i,_,j=>t(7,n=j));let{showGlobalNav:p}=e,{hideNavComponent:m}=e,{responsiveNavSetting:v}=e,k=re.getConfigBooleanValue("navigation.addNavHrefs");const y=async()=>{if(r&&0<r.length){const j=await Te.generateTopNavNodes(r);t(0,c=j.children),t(1,g=j.selectedNode),s=r}};Kt(()=>{Fn.doOnStoreChange(h,()=>{t(14,m=re.getConfigBooleanValue("settings.hideNavigation")),t(15,v=re.getConfigValue("settings.responsiveNavigation")),t(2,p=re.getConfigBooleanValue("settings.globalSideNavigation")&&ee.requestExperimentalFeature("globalNav",!0)),document.body.classList.toggle("lui-global-nav-visible",p)},["navigation"])}),On(()=>{(!s||s!=r)&&y(),t(6,k=re.getConfigBooleanValue("navigation.addNavHrefs"))});function C(j){return Te.renderIconClassName(j)}function T(j){return Te.isOpenUIiconName(j.icon)}function N(j){return ht.getTranslation(j.label)}function D(j){return j.testId?j.testId:Te.prepareForTests(j.pathSegment,j.label)}function I(j){return pe.getNodeHref(j,o)}function L(j){l("handleClick",{node:j})}function M(j){L(j.detail.node)}const F=(j,fe)=>{Te.handleNavAnchorClickedWithoutMetaKey(fe)&&L(j)},O=j=>L(j);return i.$$set=j=>{"pathData"in j&&t(3,r=j.pathData),"pathParams"in j&&t(16,o=j.pathParams),"children"in j&&t(0,c=j.children),"selectedNode"in j&&t(1,g=j.selectedNode),"showGlobalNav"in j&&t(2,p=j.showGlobalNav),"hideNavComponent"in j&&t(14,m=j.hideNavComponent),"responsiveNavSetting"in j&&t(15,v=j.responsiveNavSetting)},[c,g,p,r,L,da,k,n,_,C,T,N,D,I,m,v,o,M,F,O]}class hy extends At{constructor(e){super(),Lt(this,e,dy,cy,It,{pathData:3,pathParams:16,children:0,selectedNode:1,showGlobalNav:2,hideNavComponent:14,responsiveNavSetting:15,handleClick:4,handleClickExternal:17,closeAllDropdowns:5})}get handleClick(){return this.$$.ctx[4]}get handleClickExternal(){return this.$$.ctx[17]}get closeAllDropdowns(){return da}}function gy(i){let e;return{c(){e=S("div"),f(e,"class","lui-breadcrumb-container svelte-fl7dhk")},m(t,n){R(t,e,n),i[6](e)},p:Ue,i:Ue,o:Ue,d(t){t&&A(e),i[6](null)}}}function _y(i,e,t){const n=Wt();let{pathData:l}=e,r,s={},o,c=vt("store"),{showBreadcrumb:g}=e,{hideNavComponent:h}=e,{responsiveNavSetting:_}=e;re.getConfigBooleanValue("navigation.addNavHrefs");const p=async()=>{l&&0<l.length&&(r=l)},m=C=>{C.last||k(C.node)};Kt(()=>{Fn.doOnStoreChange(c,()=>{},["navigation"])}),On(async()=>{if(l&&(!r||r!=l)){if(p(),l.length===0)return;const C=re.getConfigValue("navigation.breadcrumbs");if(t(1,g=!!C),g&&l.forEach(T=>{T.showBreadcrumbs===!1?t(1,g=!1):T.showBreadcrumbs===!0&&t(1,g=!0)}),g)if(re.getConfigBooleanValue("navigation.addNavHrefs"),C.renderer){let T=[];const N=C.omitRoot?2:1,D=it.getCurrentPath();for(let I=N;I<l.length;I++){const L=l[I],M=pe.mapPathToNode(D,L);if(s[M])T.push(s[M]);else if(L.label||L.pathSegment||L.titleResolver)if(document.body.classList.add("lui-breadcrumb"),L.titleResolver)T.push({label:L.titleResolver.prerenderFallback&&L.titleResolver.fallbackTitle?ht.getTranslation(L.titleResolver.fallbackTitle):C.pendingItemLabel||"",node:L,route:M,pending:!0});else{const F=await v(L);F&&T.push({label:F,node:L,route:M})}}C.clearBeforeRender&&t(0,o.innerHTML="",o),C.renderer(o,T,m),T=[];for(let I=N;I<l.length;I++){const L=l[I],M=pe.mapPathToNode(D,L);if(L.titleResolver){const O=await Mt.extractDataFromPath(M),j=pe.substituteDynamicParamsInObject(Object.assign({},O.pathData.context,L.context),O.pathData.pathParams);try{const fe=await Te.fetchNodeTitleData(L,j);T.push({label:fe.label,node:L,route:M});continue}catch{}}const F=await v(L);F&&T.push({label:F,node:L,route:M})}D===it.getCurrentPath()&&(C.clearBeforeRender&&t(0,o.innerHTML="",o),T.length>1?(T[T.length-1].last=!0,document.body.classList.add("lui-breadcrumb"),C.renderer(o,T,m)):C.autoHide&&document.body.classList.remove("lui-breadcrumb"),s={},T.map(I=>{s[I.route]=I}))}else document.body.classList.remove("lui-breadcrumb"),console.warn("No breadcrumb container renderer specified");else t(0,o.innerHTML="",o),document.body.classList.remove("lui-breadcrumb")}});async function v(C){if(C.label&&!C._virtualTree)return ht.getTranslation(C.label)||C.label;if(C.pathSegment&&C.pathSegment.indexOf(":")===0){const T=pe.mapPathToNode(it.getCurrentPath(),C),N=await Mt.extractDataFromPath(T);return pe.getDynamicNodeValue(C,N.pathData.pathParams)}return C.pathSegment?C.pathSegment:""}function k(C){n("handleClick",{node:C})}function y(C){xe[C?"unshift":"push"](()=>{o=C,t(0,o)})}return i.$$set=C=>{"pathData"in C&&t(2,l=C.pathData),"showBreadcrumb"in C&&t(1,g=C.showBreadcrumb),"hideNavComponent"in C&&t(3,h=C.hideNavComponent),"responsiveNavSetting"in C&&t(4,_=C.responsiveNavSetting)},[o,g,l,h,_,k,y]}class py extends At{constructor(e){super(),Lt(this,e,_y,gy,It,{pathData:2,showBreadcrumb:1,hideNavComponent:3,responsiveNavSetting:4,handleClick:5})}get handleClick(){return this.$$.ctx[5]}}let To="not_checked";Pn.addEventListener("message",function(i){i.data==="luigi.tpcDisabled"?(console.warn("Third party cookies are not supported! Silent token renewal might not work!"),To="disabled"):i.data==="luigi.tpcEnabled"&&(To="enabled")},!1);function my(){return To}const{Boolean:by,window:vy}=Ui;function Og(i,e,t){const n=i.slice();return n[142]=e[t],n[144]=t,n}function Fg(i){let e,t;return e=new N2({props:{alertQueue:i[26]}}),e.$on("alertDismiss",i[36]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&67108864&&(r.alertQueue=n[26]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function Ug(i){let e,t;function n(){return i[67](i[144])}function l(...s){return i[68](i[144],...s)}function r(...s){return i[69](i[144],...s)}return e=new N_({props:{settings:i[142].mfModal.settings,nodepath:i[142].mfModal.nodepath,modalIndex:i[144],disableBackdrop:i[13]}}),e.$on("close",n),e.$on("iframeCreated",l),e.$on("wcCreated",r),{c(){Ge(e.$$.fragment)},m(s,o){He(e,s,o),t=!0},p(s,o){i=s;const c={};o[0]&268435456&&(c.settings=i[142].mfModal.settings),o[0]&268435456&&(c.nodepath=i[142].mfModal.nodepath),o[0]&8192&&(c.disableBackdrop=i[13]),e.$set(c)},i(s){t||(B(e.$$.fragment,s),t=!0)},o(s){G(e.$$.fragment,s),t=!1},d(s){ze(e,s)}}}function Bg(i){let e,t,n=i[142].mfModal.displayed&&Ug(i);return{c(){n&&n.c(),e=ye()},m(l,r){n&&n.m(l,r),R(l,e,r),t=!0},p(l,r){l[142].mfModal.displayed?n?(n.p(l,r),r[0]&268435456&&B(n,1)):(n=Ug(l),n.c(),B(n,1),n.m(e.parentNode,e)):n&&(Ee(),G(n,1,1,()=>{n=null}),De())},i(l){t||(B(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function Wg(i){let e,t;return e=new N_({props:{settings:i[29].settings,nodepath:i[29].nodepath,$$slots:{default:[wy]},$$scope:{ctx:i}}}),e.$on("close",i[44]),e.$on("drawerState",i[43]),e.$on("iframeCreated",i[41]),e.$on("wcCreated",i[42]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&536870912&&(r.settings=n[29].settings),l[0]&536870912&&(r.nodepath=n[29].nodepath),l[0]&8192|l[4]&2097152&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function wy(i){let e,t;return e=new $r({props:{area:"drawer",disable:i[13]}}),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.disable=n[13]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function Hg(i){let e,t;return e=new R2({props:{settings:i[27].settings}}),e.$on("modalConfirm",i[70]),e.$on("modalDismiss",i[71]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&134217728&&(r.settings=n[27].settings),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function zg(i){let e,t,n;function l(s){i[72](s)}let r={userSettingGroups:i[18].userSettingGroups};return i[6]!==void 0&&(r.storedUserSettings=i[6]),e=new Y2({props:r}),xe.push(()=>bt(e,"storedUserSettings",l)),e.$on("close",i[10]),{c(){Ge(e.$$.fragment)},m(s,o){He(e,s,o),n=!0},p(s,o){const c={};o[0]&262144&&(c.userSettingGroups=s[18].userSettingGroups),!t&&o[0]&64&&(t=!0,c.storedUserSettings=s[6],mt(()=>t=!1)),e.$set(c)},i(s){n||(B(e.$$.fragment,s),n=!0)},o(s){G(e.$$.fragment,s),n=!1},d(s){ze(e,s)}}}function qg(i){let e,t;return e=new ek({props:{splitViewSettings:i[12].settings,collapsed:i[12].collapsed,nodepath:i[12].nodepath,disableBackdrop:i[13]}}),e.$on("iframeCreated",i[32]),e.$on("statusChanged",i[33]),e.$on("wcCreated",i[34]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&4096&&(r.splitViewSettings=n[12].settings),l[0]&4096&&(r.collapsed=n[12].collapsed),l[0]&4096&&(r.nodepath=n[12].nodepath),l[0]&8192&&(r.disableBackdrop=n[13]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function ky(i){let e,t,n,l,r,s,o,c,g;t=new $r({props:{area:"main",disable:i[13]}});let h=i[12].displayed&&qg(i);return{c(){e=S("div"),Ge(t.$$.fragment),n=q(),l=S("div"),r=q(),h&&h.c(),s=ye(),f(l,"class","wcContainer svelte-1tqo7n8"),f(e,"class","fd-page iframeContainer svelte-1tqo7n8"),f(e,"tabindex","0"),hi(e,"lui-split-view",i[12].displayed),hi(e,"lui-collapsed",i[12].collapsed)},m(_,p){R(_,e,p),He(t,e,null),w(e,n),w(e,l),R(_,r,p),h&&h.m(_,p),R(_,s,p),o=!0,c||(g=pw(i[45].call(null,e)),c=!0)},p(_,p){const m={};p[0]&8192&&(m.disable=_[13]),t.$set(m),(!o||p[0]&4096)&&hi(e,"lui-split-view",_[12].displayed),(!o||p[0]&4096)&&hi(e,"lui-collapsed",_[12].collapsed),_[12].displayed?h?(h.p(_,p),p[0]&4096&&B(h,1)):(h=qg(_),h.c(),B(h,1),h.m(s.parentNode,s)):h&&(Ee(),G(h,1,1,()=>{h=null}),De())},i(_){o||(B(t.$$.fragment,_),B(h),o=!0)},o(_){G(t.$$.fragment,_),G(h),o=!1},d(_){_&&A(e),ze(t),_&&A(r),h&&h.d(_),_&&A(s),c=!1,g()}}}function Gg(i){let e,t,n,l;return{c(){e=S("div"),e.innerHTML=`<div class="fd-busy-indicator--m svelte-1tqo7n8" aria-hidden="false" aria-label="Loading" data-testid="luigi-loading-spinner"><div class="fd-busy-indicator--circle-0 svelte-1tqo7n8"></div>
|
|
62
|
+
<div class="fd-busy-indicator--circle-1 svelte-1tqo7n8"></div>
|
|
63
|
+
<div class="fd-busy-indicator--circle-2 svelte-1tqo7n8"></div></div>`,f(e,"class","fd-page spinnerContainer svelte-1tqo7n8"),f(e,"aria-hidden","false"),f(e,"aria-label","Loading")},m(r,s){R(r,e,s),l=!0},i(r){l||(Rl(()=>{n&&n.end(1),t=c_(e,ua,{delay:250,duration:250}),t.start()}),l=!0)},o(r){t&&t.invalidate(),n=d_(e,ua,{duration:250}),l=!1},d(r){r&&A(e),r&&n&&n.end()}}}function Kg(i){let e,t,n,l,r,s,o,c;function g(y){i[73](y)}function h(y){i[74](y)}function _(y){i[75](y)}function p(y){i[76](y)}function m(y){i[77](y)}function v(y){i[78](y)}let k={pathData:i[15],pathParams:i[14],burgerTooltip:i[19]};return i[0]!==void 0&&(k.isSearchFieldVisible=i[0]),i[3]!==void 0&&(k.displaySearchResult=i[3]),i[4]!==void 0&&(k.displayCustomSearchResult=i[4]),i[5]!==void 0&&(k.searchResult=i[5]),i[1]!==void 0&&(k.inputElem=i[1]),i[2]!==void 0&&(k.luigiCustomSearchRenderer__slot=i[2]),e=new XC({props:k}),xe.push(()=>bt(e,"isSearchFieldVisible",g)),xe.push(()=>bt(e,"displaySearchResult",h)),xe.push(()=>bt(e,"displayCustomSearchResult",_)),xe.push(()=>bt(e,"searchResult",p)),xe.push(()=>bt(e,"inputElem",m)),xe.push(()=>bt(e,"luigiCustomSearchRenderer__slot",v)),e.$on("handleClick",i[30]),e.$on("resizeTabNav",i[31]),e.$on("toggleSearch",i[7]),e.$on("closeSearchResult",i[8]),e.$on("handleSearchNavigation",i[9]),{c(){Ge(e.$$.fragment)},m(y,C){He(e,y,C),c=!0},p(y,C){const T={};C[0]&32768&&(T.pathData=y[15]),C[0]&16384&&(T.pathParams=y[14]),C[0]&524288&&(T.burgerTooltip=y[19]),!t&&C[0]&1&&(t=!0,T.isSearchFieldVisible=y[0],mt(()=>t=!1)),!n&&C[0]&8&&(n=!0,T.displaySearchResult=y[3],mt(()=>n=!1)),!l&&C[0]&16&&(l=!0,T.displayCustomSearchResult=y[4],mt(()=>l=!1)),!r&&C[0]&32&&(r=!0,T.searchResult=y[5],mt(()=>r=!1)),!s&&C[0]&2&&(s=!0,T.inputElem=y[1],mt(()=>s=!1)),!o&&C[0]&4&&(o=!0,T.luigiCustomSearchRenderer__slot=y[2],mt(()=>o=!1)),e.$set(T)},i(y){c||(B(e.$$.fragment,y),c=!0)},o(y){G(e.$$.fragment,y),c=!1},d(y){ze(e,y)}}}function Jg(i){let e,t,n,l;e=new hy({props:{pathData:i[15],pathParams:i[14]}}),e.$on("handleClick",i[30]);let r=i[20]&&jg(i);return{c(){Ge(e.$$.fragment),t=q(),r&&r.c(),n=ye()},m(s,o){He(e,s,o),R(s,t,o),r&&r.m(s,o),R(s,n,o),l=!0},p(s,o){const c={};o[0]&32768&&(c.pathData=s[15]),o[0]&16384&&(c.pathParams=s[14]),e.$set(c),s[20]?r?(r.p(s,o),o[0]&1048576&&B(r,1)):(r=jg(s),r.c(),B(r,1),r.m(n.parentNode,n)):r&&(Ee(),G(r,1,1,()=>{r=null}),De())},i(s){l||(B(e.$$.fragment,s),B(r),l=!0)},o(s){G(e.$$.fragment,s),G(r),l=!1},d(s){ze(e,s),s&&A(t),r&&r.d(s),s&&A(n)}}}function jg(i){let e,t;return e=new py({props:{pathData:i[15],pathParams:i[14]}}),e.$on("handleClick",i[30]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&32768&&(r.pathData=n[15]),l[0]&16384&&(r.pathParams=n[14]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function Yg(i){let e,t;return e=new Lk({props:{pathData:i[15],pathParams:i[14],burgerTooltip:i[19]}}),e.$on("handleClick",i[30]),e.$on("resizeTabNav",i[31]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&32768&&(r.pathData=n[15]),l[0]&16384&&(r.pathParams=n[14]),l[0]&524288&&(r.burgerTooltip=n[19]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function Qg(i){let e,t;return e=new sy({props:{pathData:i[15],pathParams:i[14],resizeTabNavToggle:i[17]}}),e.$on("handleClick",i[30]),{c(){Ge(e.$$.fragment)},m(n,l){He(e,n,l),t=!0},p(n,l){const r={};l[0]&32768&&(r.pathData=n[15]),l[0]&16384&&(r.pathParams=n[14]),l[0]&131072&&(r.resizeTabNavToggle=n[17]),e.$set(r)},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){ze(e,n)}}}function Sy(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,k,y,C=i[26]&&i[26].length&&Fg(i),T=i[28],N=[];for(let Q=0;Q<T.length;Q+=1)N[Q]=Bg(Og(i,T,Q));const D=Q=>G(N[Q],1,1,()=>{N[Q]=null});let I=i[29].displayed&&i[29].settings.isDrawer&&Wg(i),L=i[27].displayed&&Hg(i),M=i[18].displayed&&zg(i);o=new $r({props:{disable:i[13],$$slots:{default:[ky]},$$scope:{ctx:i}}});let F=i[11]&&Gg(),O=!i[25]&&Kg(i),j=!i[21]&&Jg(i),fe=!(i[21]||i[22])&&Yg(i),X=i[16]&&!i[21]&&Qg(i);return{c(){e=S("div"),C&&C.c(),t=q();for(let Q=0;Q<N.length;Q+=1)N[Q].c();n=q(),I&&I.c(),l=q(),L&&L.c(),r=q(),M&&M.c(),s=q(),Ge(o.$$.fragment),c=q(),F&&F.c(),g=q(),O&&O.c(),h=q(),j&&j.c(),_=q(),fe&&fe.c(),p=q(),X&&X.c(),f(e,"id","app"),f(e,"class",m=(i[21]?"no-nav":"")+" "+(i[22]?"no-side-nav":"")+" "+(i[25]?"no-top-nav":"")+" "+(i[23]?"no-animation":"")+" svelte-1tqo7n8"),f(e,"configversion",i[24])},m(Q,ce){R(Q,e,ce),C&&C.m(e,null),w(e,t);for(let Ce=0;Ce<N.length;Ce+=1)N[Ce].m(e,null);w(e,n),I&&I.m(e,null),w(e,l),L&&L.m(e,null),w(e,r),M&&M.m(e,null),w(e,s),He(o,e,null),w(e,c),F&&F.m(e,null),w(e,g),O&&O.m(e,null),w(e,h),j&&j.m(e,null),w(e,_),fe&&fe.m(e,null),w(e,p),X&&X.m(e,null),v=!0,k||(y=ne(vy,"resize",i[35]),k=!0)},p(Q,ce){if(Q[26]&&Q[26].length?C?(C.p(Q,ce),ce[0]&67108864&&B(C,1)):(C=Fg(Q),C.c(),B(C,1),C.m(e,t)):C&&(Ee(),G(C,1,1,()=>{C=null}),De()),ce[0]&268443648|ce[1]&896){T=Q[28];let H;for(H=0;H<T.length;H+=1){const ae=Og(Q,T,H);N[H]?(N[H].p(ae,ce),B(N[H],1)):(N[H]=Bg(ae),N[H].c(),B(N[H],1),N[H].m(e,n))}for(Ee(),H=T.length;H<N.length;H+=1)D(H);De()}Q[29].displayed&&Q[29].settings.isDrawer?I?(I.p(Q,ce),ce[0]&536870912&&B(I,1)):(I=Wg(Q),I.c(),B(I,1),I.m(e,l)):I&&(Ee(),G(I,1,1,()=>{I=null}),De()),Q[27].displayed?L?(L.p(Q,ce),ce[0]&134217728&&B(L,1)):(L=Hg(Q),L.c(),B(L,1),L.m(e,r)):L&&(Ee(),G(L,1,1,()=>{L=null}),De()),Q[18].displayed?M?(M.p(Q,ce),ce[0]&262144&&B(M,1)):(M=zg(Q),M.c(),B(M,1),M.m(e,s)):M&&(Ee(),G(M,1,1,()=>{M=null}),De());const Ce={};ce[0]&8192&&(Ce.disable=Q[13]),ce[0]&12288|ce[4]&2097152&&(Ce.$$scope={dirty:ce,ctx:Q}),o.$set(Ce),Q[11]?F?ce[0]&2048&&B(F,1):(F=Gg(),F.c(),B(F,1),F.m(e,g)):F&&(Ee(),G(F,1,1,()=>{F=null}),De()),Q[25]?O&&(Ee(),G(O,1,1,()=>{O=null}),De()):O?(O.p(Q,ce),ce[0]&33554432&&B(O,1)):(O=Kg(Q),O.c(),B(O,1),O.m(e,h)),Q[21]?j&&(Ee(),G(j,1,1,()=>{j=null}),De()):j?(j.p(Q,ce),ce[0]&2097152&&B(j,1)):(j=Jg(Q),j.c(),B(j,1),j.m(e,_)),Q[21]||Q[22]?fe&&(Ee(),G(fe,1,1,()=>{fe=null}),De()):fe?(fe.p(Q,ce),ce[0]&6291456&&B(fe,1)):(fe=Yg(Q),fe.c(),B(fe,1),fe.m(e,p)),Q[16]&&!Q[21]?X?(X.p(Q,ce),ce[0]&2162688&&B(X,1)):(X=Qg(Q),X.c(),B(X,1),X.m(e,null)):X&&(Ee(),G(X,1,1,()=>{X=null}),De()),(!v||ce[0]&48234496&&m!==(m=(Q[21]?"no-nav":"")+" "+(Q[22]?"no-side-nav":"")+" "+(Q[25]?"no-top-nav":"")+" "+(Q[23]?"no-animation":"")+" svelte-1tqo7n8"))&&f(e,"class",m),(!v||ce[0]&16777216)&&f(e,"configversion",Q[24])},i(Q){if(!v){B(C);for(let ce=0;ce<T.length;ce+=1)B(N[ce]);B(I),B(L),B(M),B(o.$$.fragment,Q),B(F),B(O),B(j),B(fe),B(X),v=!0}},o(Q){G(C),N=N.filter(by);for(let ce=0;ce<N.length;ce+=1)G(N[ce]);G(I),G(L),G(M),G(o.$$.fragment,Q),G(F),G(O),G(j),G(fe),G(X),v=!1},d(Q){Q&&A(e),C&&C.d(),ct(N,Q),I&&I.d(),L&&L.d(),M&&M.d(),ze(o),F&&F.d(),O&&O.d(),j&&j.d(),fe&&fe.d(),X&&X.d(),k=!1,y()}}}function Cy(i,e,t){const n=Wt();let{store:l}=e,{getTranslation:r}=e,s=!1,o={displayed:!1},c,g,h=!1,_,p,m,v,k,y,C,T,N,D,I,L,M,F,O,j,fe,X,Q,ce=!0,Ce=!1,H,ae,$,K=[],le={isDirty:!1,persistUrl:null},ve,ue,x=!1,be,ke,we={},ie,{isSearchFieldVisible:Re}=e,{inputElem:Le}=e,{luigiCustomSearchRenderer__slot:_e}=e,{displaySearchResult:tt}=e,{displayCustomSearchResult:Ft=!0}=e,{searchResult:Jt}=e,{storedUserSettings:Rt}=e,Un;const Bi=async U=>{const oe=U.iframe.luigi,Me=oe.currentNode&&oe.currentNode.userSettingsGroup,je=await re.readUserSettings(),Fe=Me&&typeof je=="object"&&je!==null,Se=Ie.applyCoreStateData({isNavigateBack:Ce,viewStackSize:K.length,clientPermissions:oe.nextViewUrl?oe.nextClientPermissions:oe.clientPermissions,userSettings:Fe?je[Me]:null,anchor:sl.getAnchor()});return Ie.specialIframeTypes.map(Oe=>Oe.iframeConfigKey).forEach(Oe=>{Se[Oe]=U[Oe]||!1}),Se},zt=async(U,oe={})=>{if(!U.iframe){console.debug("iframe does not exist, not able to send context.");return}const Me={msg:"luigi.init",context:JSON.stringify(Object.assign({},U.context||D,oe)),nodeParams:JSON.stringify(Object.assign({},U.nodeParams||I)),pathParams:JSON.stringify(Object.assign({},U.pathParams||L)),searchParams:JSON.stringify(Object.assign({},pe.prepareSearchParamsForClient(U.iframe.luigi.currentNode))),internal:JSON.stringify(await Bi(U)),authData:al.getStoredAuthData()};U.iframe.luigi._lastUpdatedMessage=Me,Ie.sendMessageToIframe(U.iframe,Me)},bi=U=>{const oe={msg:"luigi.auth.tokenIssued",authData:U};Ie.broadcastMessageToAllIframes(oe)},Wi=(U,oe)=>{if(U.params.preserveView||U.params.viewgroup){const Me=nn(U.params),je=it.getNodePath(F,M);K.push({path:oe.iframe.luigi&&oe.iframe.luigi.pathParams?ee.replaceVars(je,oe.iframe.luigi.pathParams,":",!1):je,nextPath:Me.startsWith("/")?Me:"/"+Me,context:D}),oe.iframe.pv="pv"}},$t=(U,oe,Me,je)=>{let Fe=nn(U.params,Me,je);const{preventHistoryEntry:Se,preserveQueryParams:Oe,preventContextUpdate:_t}=U.params,Dt={keepBrowserHistory:!Se,navSync:ce,preventContextUpdate:_t};return Fe=ee.addLeadingSlash(Fe),Fe=Oe?pe.composeSearchParamsToRoute(Fe):Fe,Wi(U,oe),it.navigateTo(Fe,Dt)},jt=U=>U.split("?")[0],Xn=(U,oe)=>{if(U.length===0)return!1;const Me=oe.startsWith("/")?oe:`/${oe}`,je=[...U].pop();return[jt(je.path),jt(je.nextPath)].includes(jt(Me))},dt=U=>new Promise((oe,Me)=>{Ol(U)?Ci().then(()=>{le&&le.dirtySet&&(U?le.dirtySet.delete(U):le.dirtySet.clear()),oe()},()=>{Me()}):oe()}),dn=()=>({get:()=>({unsavedChanges:le,hideNav:ki,viewUrl:O,nodeParams:I,viewGroup:j,urlParamsRaw:M,currentNode:F,navigationPath:ae,context:D,pathParams:L,hideSideNav:zi,isolateView:fe,pageErrorHandler:X,previousNodeValues:Q,mfSplitView:o,splitViewValues:c,splitViewIframe:y,splitViewWC:T,showLoadingIndicator:s,tabNav:ue,isNavigateBack:Ce,goBackContext:H,isNavigationSyncEnabled:ce}),set:U=>{U&&(t(23,Si=!1),Object.getOwnPropertyNames(U).forEach(oe=>{oe==="hideNav"?t(21,ki=U.hideNav):oe==="viewUrl"?O=U.viewUrl:oe==="nodeParams"?I=U.nodeParams:oe==="viewGroup"?j=U.viewGroup:oe==="urlParamsRaw"?M=U.urlParamsRaw:oe==="currentNode"?F=U.currentNode:oe==="navigationPath"?t(15,ae=U.navigationPath):oe==="context"?D=U.context:oe==="pathParams"?t(14,L=U.pathParams):oe==="hideSideNav"?(zi!=U.hideSideNav&&(t(23,Si=!0),setTimeout(()=>{const Me=document.querySelector("#app");Me&&Me.classList.remove("no-animation")})),t(22,zi=U.hideSideNav)):oe==="isolateView"?fe=U.isolateView:oe==="pageErrorHandler"?X=U.pageErrorHandler:oe==="previousNodeValues"?Q=U.previousNodeValues:oe==="mfSplitView"?t(12,o=U.mfSplitView):oe==="splitViewValues"?c=U.splitViewValues:oe==="splitViewIframe"?y=U.splitViewIframe:oe=="splitViewWC"?T=U.splitViewWC:oe==="showLoadingIndicator"?t(11,s=U.showLoadingIndicator):oe==="tabNav"?t(16,ue=U.tabNav):oe==="isNavigateBack"?Ce=U.isNavigateBack:oe==="goBackContext"?H=U.goBackContext:oe==="isNavigationSyncEnabled"&&(ce=U.isNavigationSyncEnabled)}))},shouldShowUnsavedChangesModal:Ol,getUnsavedChangesModalPromise:dt,showUnsavedChangesModal:Ci,showAlert:hl,prepareInternalData:Bi,dispatch:n}),$n=(U,oe)=>{Fn.doOnStoreChange(l,()=>{Vn.deleteCache();const Me=it.getCurrentPath();it.handleRouteChange(Me,dn(),U,oe)},["navigation.nodes"]),pe.addRouteChangeListener((Me,je)=>{const{withoutSync:Fe,preventContextUpdate:Se}=je||{};Xn(K,Me)||(K=[],Qn.removeInactiveIframes(U));for(let _t=St.length;_t--;)ai(_t);Xr.removeBackdrop(),wi(),it.handleRouteChange(Me,dn(),U,oe,Fe,Se)})},tn=(U,oe)=>ee.replaceVars(it.getNodePath(U),oe,":",!1),nn=(U,oe,Me)=>{const je=oe||F,Fe=Me||L;let Se=ae;if(oe){let _t=oe.parent;for(Se=[oe];_t;)Se.push(_t),_t=_t.parent;Se=[...Se].reverse()}let Oe=U.link;if(U.fromVirtualTreeRoot){const _t=[...Se].reverse().find(Dt=>Dt.virtualTree);if(!_t){console.error("LuigiClient Error: fromVirtualTreeRoot() is not possible because you are not inside a Luigi virtualTree navigation node.");return}Oe=it.concatenatePath(tn(_t,Fe),U.link)}else if(U.fromParent)Oe=it.concatenatePath(tn(je.parent,Fe),U.link);else if(U.fromClosestContext){const _t=[...Se].reverse().find(Dt=>Dt.navigationContext&&Dt.navigationContext.length>0);Oe=it.concatenatePath(tn(_t,Fe),U.link)}else if(U.fromContext){const _t=U.fromContext,Dt=[...Se].reverse().find(vl=>_t===vl.navigationContext);Oe=it.concatenatePath(tn(Dt,Fe),U.link)}else U.intent?Oe=pe.getIntentPath(U.link):U.relative&&(Oe=it.concatenatePath(tn(je,Fe),U.link));return U.nodeParams&&Object.keys(U.nodeParams).length>0&&(Oe+=Oe.includes("?")?"&":"?",Object.entries(U.nodeParams).forEach((_t,Dt)=>{Oe+=encodeURIComponent(pe.getContentViewParamPrefix()+_t[0])+"="+encodeURIComponent(_t[1])+(Dt<Object.keys(U.nodeParams).length-1?"&":"")})),Oe},Bn=U=>{const oe=U.detail.node;dt().then(()=>{if(Ml(),oe.openNodeInModal){const Me=pe.buildRoute(oe,`/${oe.pathSegment}`);bl(Me,oe.openNodeInModal===!0?{}:oe.openNodeInModal)}else if(oe.drawer){const Me=pe.buildRoute(oe,`/${oe.pathSegment}`);oe.drawer.isDrawer=!0,J(Me,oe.drawer)}else dn().set({isNavigationSyncEnabled:!0}),it.handleRouteClick(oe,dn())})},vi=()=>{t(17,x=!x)};Jr("handleNavigation",$t);const ln=U=>U?!0:(console.warn("No search provider defined."),!1),te=()=>{ln(ke)&&t(0,Re=!1)},Ve=()=>{ln(ke)&&Le&&(t(0,Re=!0),Le.focus())},gt=()=>{ln(ke)&&Le&&(t(1,Le.value="",Le),ri())},yt=()=>{t(0,Re=!Re),Xw.clearSearchField()},Pt=()=>{if(ln(ke)&&Le)return Le.value},wt=U=>{ln(ke)&&Le&&(t(1,Le.value=U,Le),ee.isFunction(ke.onInput)?ke.onInput():console.error("onInput is not a function. Please check the global search configuration."))},an=U=>{ln(ke)&&Le&&t(1,Le.placeholder=U,Le)},Nn=U=>{if(ln(ke))if(U&&U.length>0)if(ee.isFunction(ke.customSearchResultRenderer)){t(4,Ft=!0);let oe={fireItemSelected:Me=>{ke.onSearchResultItemSelected(Me)}};ke.customSearchResultRenderer(U,_e,oe)}else t(3,tt=!0),t(5,Jt=U);else console.warn("Search result array is empty.")},ri=()=>{if(ln(ke)&&(t(3,tt=!1),t(5,Jt=[]),_e))for(;_e.lastElementChild;)_e.removeChild(_e.lastElementChild)},Hi=U=>{let oe=U.detail.node,Me={params:{link:oe.link,nodeParams:oe.params}};$t(Me)},cl=(U,oe)=>{if(o.displayed){console.warn("Only one splitview can be opened at a time");return}t(12,o=at.getDefaultData().mfSplitView),at.open(dn(),U,oe)},wi=()=>{at.close(dn())},hr=()=>{at.collapse(dn()),t(12,o.collapsed=!0,o)},gr=()=>{at.expand(dn()),t(12,o.collapsed=!1,o)},_r=()=>o.displayed?o.collapsed:!1,pr=()=>o.displayed?!o.collapsed:!1,El=()=>o.displayed,mr=U=>{y=U.detail.splitViewIframe,C=U.detail.splitViewIframeData,t(12,o.collapsed=U.detail.collapsed,o)},br=U=>{U.detail.displayed!==void 0&&t(12,o.displayed=U.detail.displayed,o),U.detail.collapsed!==void 0&&t(12,o.collapsed=U.detail.collapsed,o)},vr=U=>{T=U.detail.splitViewWC,U.detail.splitViewWCData,t(12,o.collapsed=U.detail.collapsed,o)};let ki,zi,Si,qi,Dl,Vl;const Ml=()=>{document.body.classList.remove("lui-leftNavToggle")},wr=()=>{on();const U=window.innerWidth>=Xt.desktopMinWidth&&qi<Xt.desktopMinWidth,oe=window.innerWidth<Xt.desktopMinWidth&&qi>=Xt.desktopMinWidth;(U||oe)&&Ml(),qi=window.innerWidth};let mn=[];const dl=(U,oe)=>{if(!(!U||!(U.length>0)))return U.filter(Me=>Me.settings.id===oe)[0]},hl=(U,oe=!1)=>{const Me=re.getConfigValue("settings.customAlertHandler");if(ee.isFunction(Me)){const Fe=Me(U,oe);if(Fe!==!1)return Fe}const je=mn;return U.id||(U.id=ee.getRandomId()),U.id&&je&&dl(je,U.id)?(console.error(`The alert with id '${U.id}' already exists in a queue, therefore it won't be displayed `),Promise.reject()):(U.closeAfter&&setTimeout(()=>{dl(mn,U.id)&&gl(U.id)},U.closeAfter),new Promise((Fe,Se)=>{t(26,mn=[...je||[],{displayed:!0,settings:U,openFromClient:oe,promise:{resolve:Fe}}])}))},gl=(U,oe)=>{const Me=dl(mn,U);if(!Me){console.error("An unexisting alert has been dismissed.",mn,U);return}if(t(26,mn=mn.filter(je=>je.settings.id!==U)),Me.openFromClient){const je=Qn.getActiveIframe($),Fe={msg:"luigi.ux.alert.hide",id:U,dismissKey:oe};Ie.sendMessageToIframe(je,Fe)}else Me.promise&&Me.promise.resolve(oe||U)},kr=U=>{gl(U.detail.id,U.detail.dismissKey)};let Gi;const _l=()=>{t(27,Gi={displayed:!1,content:{},openFromClient:!1,promise:null})};_l();const pl=(U,oe=!1,Me)=>new Promise((je,Fe)=>{t(27,Gi={displayed:!0,settings:U,openFromClient:oe,promise:{resolve:je,reject:Fe},targetIframe:Me})}),ml=U=>{const{promise:oe,openFromClient:Me,targetIframe:je}=Gi;if(_l(),U?oe.resolve():oe.reject(),Me&&je){const Fe={msg:"luigi.ux.confirmationModal.hide",data:{confirmed:U}};Ie.sendMessageToIframe(je,Fe)}},Ol=U=>{if(le.dirtySet){if(U)return le.dirtySet.has(U);if(le.dirtySet.size>0)return!0}return!1},Ci=()=>pl({header:ht.getTranslation("luigi.unsavedChangesAlert.header"),body:ht.getTranslation("luigi.unsavedChangesAlert.body"),buttonDismiss:ht.getTranslation("luigi.button.dismiss"),buttonConfirm:ht.getTranslation("luigi.button.confirm")});Jr("getUnsavedChangesModalPromise",dt);let St=[];const si=U=>{if(typeof U>"u"){t(28,St=[]);return}t(28,St=St.filter((oe,Me)=>U!==Me))};si();const bl=async(U,oe)=>{if(await Te.shouldPreventNavigationForPath(U))return;const Me={mfModal:{displayed:!0,nodepath:U,settings:oe}};t(28,St=[...St,Me]),re.getConfigBooleanValue("routing.showModalPathInUrl")&&St.length===1&&it.appendModalDataToUrl(U,oe)},Fl=(U,oe)=>{t(28,St[oe].modalIframe=U.detail.modalIframe,St),t(28,St[oe].modalIframeData=U.detail.modalIframeData,St)},Ul=(U,oe)=>{t(28,St[oe].modalWC=U.detail.modalWC,St),t(28,St[oe].modalWCData=U.detail.modalWCData,St)},ai=(U,oe,Me)=>{const je=(Oe,_t)=>{re.getConfigBooleanValue("routing.showModalPathInUrl")&&St.length===1&&it.removeModalDataFromUrl(_t),si(Oe)},Fe=St[U],Se=ee.getRemotePromise(Fe.mfModal.settings.onClosePromiseId);Fe&&Fe.modalIframe?dt(Fe.modalIframe.contentWindow).then(()=>{je(U,oe),Se&&Se.doResolve(Me)}):Fe&&Fe.modalWC&&(je(U,oe),Se&&Se.doResolve(Me))};Jr("openViewInModal",bl);let Ut={};const yi=()=>{t(29,Ut.displayed=!1,Ut),t(29,Ut.nodepath=void 0,Ut),t(29,Ut.settings={},Ut),t(13,_=!1)};yi();const J=async(U,oe)=>{await Te.shouldPreventNavigationForPath(U)||(t(29,Ut.displayed=!0,Ut),t(29,Ut.nodepath=U,Ut),t(29,Ut.settings=oe,Ut),Ut.settings&&Ut.settings.backdrop&&t(13,_=!0))},Et=()=>window.innerWidth>=Xt.desktopMinWidth&&Ut.displayed&&Ut.settings&&!Ut.settings.overlap,on=()=>{if(!Et())return;const U=document.querySelector(".iframeModalCtn._drawer"),oe=Ie.getCurrentMicrofrontendIframe();if(U&&oe){oe.removeAttribute("style"),document.querySelector("div.iframeContainer").removeAttribute("style");const{width:Me}=getComputedStyle(U),je=oe.clientWidth;oe.setAttribute("style",`width: calc(${je}px - ${Me})`)}},Pi=U=>{p=U.detail.modalIframe,m=U.detail.modalIframeData,on()},es=U=>{v=U.detail.modalWC,U.detail.modalWCData,on()},ts=U=>{h=U.detail.activeDrawer},Bl=U=>{if(U&&U.detail&&U.detail.activeDrawer!==void 0&&(h=U.detail.activeDrawer),!h||U&&U.detail&&U.detail.type!=="modal")try{p?dt(p.contentWindow).then(()=>{yi()}):v&&dt().then(()=>{yi()}),Ie.getCurrentMicrofrontendIframe().removeAttribute("style")}catch(oe){console.log(oe)}},Sr=()=>{const U=rr.processUserSettingGroups();Array.isArray(U)&&U.length>0?(t(18,we.userSettingGroups=[...U],we),t(18,we.displayed=!0,we)):console.info("There are no user setting groups in the settings section of the luigi config defined.")},_a=()=>{t(18,we.displayed=!1,we)},ns=async U=>{if(await Te.shouldPreventNavigationForPath(U))return;re.getConfigValue("routing.useHashRouting")&&(U="#"+U),window.open(U,"_blank","noopener,noreferrer")},Wl=U=>{let oe=ae;if(F){let Fe=F.parent;for(oe=[F];Fe;)oe.push(Fe),Fe=Fe.parent;oe=[...oe].reverse()}let Me=U.link,je=tn(F,L);if(U.fromVirtualTreeRoot){const Fe=[...oe].reverse().find(Oe=>Oe.virtualTree);if(!Fe){console.error("LuigiClient Error: fromVirtualTreeRoot() is not possible because you are not inside a Luigi virtualTree navigation node.");return}const Se=tn(Fe,L);Me=je.split(Se).join("")}else if(U.fromParent){const Fe=tn(F.parent,L);Me=je.split(Fe).join("")}else if(U.fromClosestContext){const Fe=[...oe].reverse().find(Oe=>Oe.navigationContext&&Oe.navigationContext.length>0),Se=tn(Fe,L);Me=je.split(Se).join("")}else if(U.fromContext){const Fe=U.fromContext,Se=[...oe].reverse().find(_t=>Fe===_t.navigationContext),Oe=tn(Se,L);Me=je.split(Oe).join("")}else Me=je;return Me};function is(U){sessionStorage.removeItem("historyState"),ir.shouldPreload=!0,ir.preload(!0),ir.shouldPreload=!1;const oe=re.getConfigValue("navigation.defaults.isolateView"),Me=re.getConfigValue("navigation.defaults.pageErrorHandler"),je=re.getConfigValue("navigation.defaults.runTimeErrorHandler"),Fe={iframe:null,navigateOk:null,builderCompatibilityMode:Boolean(window.builderCompatibilityMode),isolateAllViews:oe,defaultPageErrorHandler:Me};ht.addCurrentLocaleChangeListener(Se=>{const Oe={msg:"luigi.current-locale-changed",currentLocale:Se};Ie.broadcastMessageToAllIframes(Oe)}),Pn.addEventListener("popstate",async Se=>{const Oe=mn;if(!Oe||!(Oe.length>0))return;const _t=Oe.map(Dt=>{if(Dt&&!Dt.openFromClient&&typeof Dt.settings.ttl=="number"){if(Dt.settings.ttl===0)return null;Dt.settings.ttl--}return Dt}).filter(Dt=>Dt);t(26,mn=_t)}),Pn.addEventListener("message",async Se=>{const Oe=Ie.getValidMessageSource(Se),_t=St[St.length-1],Dt=_t&&_t.modalIframe,vl=_t&&_t.modalIframeData,Ji={modalIframe:Dt,modalIframeData:vl,drawerIframe:p,drawerIframeData:m,drawer:k,modal:g,splitViewIframe:y,splitViewIframeData:C,splitView:N};if(!Oe)return;Oe._ready=!0;const Ir=Ie.getSpecialIframeMessageSource(Se,Ji),ji=Ir&&Ir.length>0,Tr=re.getConfigValue("communication.skipEventsWhenInactive");if(Tr&&Tr.length>0&&!ji&&Oe.contentWindow!==window&&!ee.isElementVisible(Oe)&&Tr.includes(Se.data.msg)){console.debug(`EVENT '${Se.data.msg}' from inactive iframe -> SKIPPED`);return}if(Se.data.msg==="custom"){const qe=re.getConfigValue("communication.customMessagesListeners")||{},Ke=sa.convertCustomMessageInternalToUser(Se.data),Xe=qe[Ke.id],Wn="luigi.updateUserSettings";if(we&&Ke.id===Wn){Xe&&console.warn(`The key "${Wn}" is not allowed to use for custom messages.`);return}if(typeof Xe=="function"){const oi=Mn.getMicrofrontends().find(Yi=>Ie.isMessageSource(Se,Yi.container));Xe(Ke,oi,ee.removeInternalProperties(Oe.luigi.currentNode))}else console.warn(`Warning: Custom message with id: '${Ke.id}' does not exist. Make sure you provided the same id as in the config file.`)}if(Se.data.msg==="luigi.init.ok"&&(Oe.luigi.initOk=!0),Se.data.msg==="luigi.navigate.ok"&&(Oe.luigi.viewUrl=Oe.luigi.nextViewUrl,Oe.luigi.nextViewUrl="",Oe.luigi.clientPermissions=Oe.luigi.nextClientPermissions,delete Oe.luigi.nextClientPermissions,Fe.navigateOk=!0,ir.preload()),Se.data.msg==="luigi.get-context"){if(Oe.luigi.clientVersion=Se.data.clientVersion,Oe.luigi.initOk=!1,ji)Ir.forEach(async qe=>{let Ke=Ji[qe.dataKey].context;const Xe={...Fe,iframe:Ji[qe.iframeKey],context:Ke,pathParams:Ji[qe.dataKey].pathParams,nodeParams:Ji[qe.dataKey].nodeParams,searchParams:pe.prepareSearchParamsForClient(Ji[qe.iframeKey].luigi.currentNode),modal:qe.iframeKey.startsWith("modal"),drawer:qe.iframeKey.startsWith("drawer"),splitView:qe.iframeKey.startsWith("splitView")};await zt(Xe,{})});else if(Fe.iframe&&Ie.isMessageSource(Se,Fe.iframe))await zt(Fe,{}),(!F||!F.loadingIndicator||F.loadingIndicator.hideAutomatically!==!1)&&t(11,s=!1),ir.preload();else if(Oe.luigi.preloading)await zt({iframe:Oe,context:{},nodeParams:{},pathParams:{},internal:{}},{});else{let qe=rr.findActiveCustomUserSettingsIframe(Se.source);if(qe){let Ke=qe.getAttribute("userSettingsGroup"),Xe={context:{userSettingsData:Rt[Ke]},iframe:qe};await zt(Xe)}}ir.viewGroupLoaded(Oe)}if(Se.data.msg==="luigi.show-loading-indicator"&&t(11,s=!0),Se.data.msg==="luigi.hide-loading-indicator"&&t(11,s=!1),Se.data.msg==="luigi.navigation.open"){Ce=!1;const qe=window.location.href,Ke=ji?Oe.luigi.currentNode:void 0,Xe=ji?Oe.luigi.pathParams:void 0,Wn=Se.data.params,{intent:oi,newTab:Yi,modal:wl,splitView:Lr,drawer:Hl,withoutSync:ba}=Wn;let Ar=Yi||wl||Lr||Hl;const Yt=()=>{const bn=ee.getRemotePromise(Se.data.remotePromiseId);bn&&bn.doResolve()},Qi=()=>{const bn=ee.getRemotePromise(Se.data.remotePromiseId);bn&&bn.doReject()},In=bn=>{!bn||qe!==window.location.href?Yt():Qi()};Se.source!==window&&!oi&&Wn.link&&(Wn.link=Wn.link.split("?")[0]);let rn=nn(Se.data.params,Ke,Xe);if(Ar=Ar||oi&&rn.external,!Ar)dt().then(()=>{ce=!Se.data.params.withoutSync,$t(Se.data,Fe,Ke,Xe).then(()=>{In(!0)}).catch(()=>{Qi()}),St.forEach((bn,vn)=>{ai(vn)}),wi(),Bl(),ce=!0}).catch(()=>{Qi()});else{if(oi&&rn.external){it.navigateToExternalLink({url:rn.url,sameWindow:!rn.openInNewTab});return}if(rn=ee.addLeadingSlash(rn),Yi){await ns(rn),In();return}const bn=await Cr(rn);if(rn=await pe.handlePageNotFoundAndRetrieveRedirectPath(dn(),rn,bn),!rn){Qi();return}$=U,wl!==void 0?(!wl.keepPrevious&&si(),await bl(rn,wl===!0?{}:wl),In()):Lr!==void 0?(await cl(rn,Lr),In()):Hl!==void 0&&(yi(),Hl.isDrawer=!0,await J(rn,Hl),In())}}if(Se.data.msg==="luigi.navigation.back"){const qe=St[St.length-1],Ke=Se.data.goBackContext&&JSON.parse(Se.data.goBackContext);Ie.isMessageSource(Se,qe&&qe.modalIframe)?(ai(St.length-1,!0,Ke),Fe.iframe&&await zt(Fe,{goBackContext:Ke})):Ie.isMessageSource(Se,y)?(wi(),Fe.iframe&&await zt(Fe,{goBackContext:Ke})):Ie.isMessageSource(Se,p)?(h&&(h=!h),Bl(),Fe.iframe&&await zt(Fe,{goBackContext:Ke})):K&&K.length>0?dt().then(()=>{Qn.setActiveIframeToPrevious(U);const Xe=K.pop();Fe.iframe=Qn.getActiveIframe(U),Ce=!0,K=K,H=Ke,$t({params:{link:Xe.path}},Fe)}):(Ke&&console.warn("Warning: goBack() does not support goBackContext value. This is available only when using the Luigi preserveView feature."),window.history.back())}if(Se.data.msg==="luigi.navigation.currentRoute"){const qe=Se.data.data,Xe={msg:"luigi.navigation.currentRoute.answer",data:{route:Wl(qe),correlationId:qe.id}};Ie.sendMessageToIframe(Oe,Xe)}if(Se.data.msg==="luigi.auth.tokenIssued"&&bi(Se.data.authData),Se.data.msg==="luigi.navigation.updateModalDataPath")if(ji){const qe=ee.addLeadingSlash(nn(Se.data.params,Oe.luigi.currentNode,Oe.luigi.pathParams));it.updateModalDataInUrl(qe,Se.data.params.modal,Se.data.params.history)}else console.warn("updateModalDataPath can only be called from modal, ignoring.");if(Se.data.msg==="luigi.navigation.pathExists"){const qe=Oe.luigi.currentNode,Ke=Oe.luigi.pathParams,Xe=Se.data.data,Wn=nn(Xe,qe,Ke),oi=Wn?await Mt.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),Wn):!1,Yi={msg:"luigi.navigation.pathExists.answer",data:{correlationId:Xe.id,pathExists:oi?oi.isExistingRoute:!1}};Ie.sendMessageToIframe(Oe,Yi)}if(Se.data.msg==="luigi.set-page-dirty"){if(!le.dirtySet){const qe=new Set;qe.add(Se.source),le={dirtySet:qe}}le.persistUrl=window.location.href,Se.data.dirty?le.dirtySet.add(Se.source):le.dirtySet.delete(Se.source)}if(Se.data.msg==="luigi.ux.confirmationModal.show"){const qe=Se.data.data.settings;$=U,_l(),pl(qe,!0,Oe).catch(()=>{})}if(Se.data.msg==="luigi.ux.alert.show"){const{settings:qe}=Se.data.data;if(!qe.text&&!ee.isFunction(re.getConfigValue("settings.customAlertHandler"))){console.error("Luigi Client alert: 'text' field for alert is empty or not present, therefore alert will not be displayed");return}$=U,hl(qe,!0).catch(()=>{})}if(Se.data.msg==="luigi.ux.set-current-locale")if(Oe.luigi.clientPermissions&&Oe.luigi.clientPermissions.changeCurrentLocale){const{currentLocale:qe}=Se.data.data;qe&&ht.setCurrentLocale(qe)}else console.error("Current local change from client declined because client permission changeCurrentLocale is not set for this view.");if(be&&!be.thirdPartyCookieScriptLocation&&Se.data.msg==="luigi.third-party-cookie"&&Se.data.tpc==="disabled"&&ls(),Se.data.msg==="storage"&&k2.process(Oe.luigi.id,Se.origin,Se.data.data.id,Se.data.data.operation,Se.data.data.params),Se.data.msg==="luigi-runtime-error-handling"){let qe=Oe.luigi.currentNode;qe&&qe.runTimeErrorHandler&&ee.isFunction(qe.runTimeErrorHandler.errorFn)?qe.runTimeErrorHandler.errorFn(Se.data.errorObj,qe):je&&ee.isFunction(je.errorFn)&&je.errorFn(Se.data.errorObj,qe)}if(Se.data.msg==="luigi.addSearchParams")if(Oe.luigi.currentNode.clientPermissions&&Oe.luigi.currentNode.clientPermissions.urlParameters){const{data:qe,keepBrowserHistory:Ke}=Se.data;pe.addSearchParamsFromClient(Oe.luigi.currentNode,qe,Ke)}else console.warn("No client permissions to add url parameter for this node.");if(Se.data.msg==="luigi.addNodeParams"){if(ji)return;const{data:qe,keepBrowserHistory:Ke}=Se.data;sl.addNodeParams(qe,Ke)}if(Se.data.msg==="luigi.setAnchor"){const{anchor:qe}=Se.data;sl.setAnchor(qe)}}),$n(U,Fe)}Jr("store",l),Jr("getTranslation",r);const ls=U=>{be&&be.thirdPartyCookieErrorHandling&&ee.isFunction(be.thirdPartyCookieErrorHandling)&&be.thirdPartyCookieErrorHandling()},Cr=async U=>{const oe={link:U,relative:U[0]!=="/",intent:pe.hasIntent(U)},Me=nn(oe),je=Me?await Mt.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),Me):!1;return je?je.isExistingRoute:!1},rs=()=>St.length>0||K.length!==0;Kt(()=>{if(y_._init(),ke=re.getConfigValue("globalSearch.searchProvider"),ve=re.getConfigValue("settings.responsiveNavigation"),qi=window.innerWidth,ve==="simple"){if(document.body.classList.add("lui-simpleSlideInNav"),Te.getBurgerTooltipConfig()){const[U,oe]=Te.getBurgerTooltipConfig();U&&oe&&t(19,ie=document.body.classList.contains("lui-leftNavToggle")?U:oe)}}else if(ve==="simpleMobileOnly")document.body.classList.add("lui-simpleSlideInNav","lui-mobileOnly");else{if(Te.getBurgerTooltipConfig()){const[U,oe]=Te.getBurgerTooltipConfig();if(U&&oe){const Me=JSON.parse(localStorage.getItem(Te.COL_NAV_KEY));t(19,ie=Me?U:oe)}}document.body.classList.add("lui-semiCollapsible")}be=re.getConfigValue("settings.thirdPartyCookieCheck"),be&&be.thirdPartyCookieScriptLocation&&setTimeout(()=>{let U=document.createElement("iframe");U.width="0px",U.height="0px",U.src=be.thirdPartyCookieScriptLocation,document.body.appendChild(U),U.onload=function(){setTimeout(()=>{my()==="disabled"&&ls()}),document.body.removeChild(U)}})}),Eo(()=>{on()}),On(()=>{t(20,Un=ee.requestExperimentalFeature("breadcrumbs")),ke=re.getConfigValue("globalSearch.searchProvider"),t(24,Dl=re.getConfigValue("tag")),t(25,Vl=re.getConfigValue("settings.header.disabled"))});const yr=U=>ai(U,!0),pa=(U,oe)=>Fl(oe,U),ss=(U,oe)=>Ul(oe,U),Pr=()=>ml(!0),Nr=()=>ml(!1);function Ki(U){Rt=U,t(6,Rt)}function as(U){Re=U,t(0,Re)}function os(U){tt=U,t(3,tt)}function ma(U){Ft=U,t(4,Ft)}function us(U){Jt=U,t(5,Jt)}function fs(U){Le=U,t(1,Le)}function cs(U){_e=U,t(2,_e)}return i.$$set=U=>{"store"in U&&t(46,l=U.store),"getTranslation"in U&&t(47,r=U.getTranslation),"isSearchFieldVisible"in U&&t(0,Re=U.isSearchFieldVisible),"inputElem"in U&&t(1,Le=U.inputElem),"luigiCustomSearchRenderer__slot"in U&&t(2,_e=U.luigiCustomSearchRenderer__slot),"displaySearchResult"in U&&t(3,tt=U.displaySearchResult),"displayCustomSearchResult"in U&&t(4,Ft=U.displayCustomSearchResult),"searchResult"in U&&t(5,Jt=U.searchResult),"storedUserSettings"in U&&t(6,Rt=U.storedUserSettings)},[Re,Le,_e,tt,Ft,Jt,Rt,yt,ri,Hi,_a,s,o,_,L,ae,ue,x,we,ie,Un,ki,zi,Si,Dl,Vl,mn,Gi,St,Ut,Bn,vi,mr,br,vr,wr,kr,ml,Fl,Ul,ai,Pi,es,ts,Bl,is,l,r,te,Ve,gt,Pt,wt,an,Nn,cl,wi,hr,gr,_r,pr,El,hl,pl,Sr,Cr,rs,yr,pa,ss,Pr,Nr,Ki,as,os,ma,us,fs,cs]}class yy extends At{constructor(e){super(),Lt(this,e,Cy,Sy,It,{store:46,getTranslation:47,isSearchFieldVisible:0,inputElem:1,luigiCustomSearchRenderer__slot:2,displaySearchResult:3,displayCustomSearchResult:4,searchResult:5,storedUserSettings:6,closeSearchField:48,openSearchField:49,clearSearchField:50,toggleSearch:7,getGlobalSearchString:51,setGlobalSearchString:52,setSearchInputPlaceholder:53,showSearchResult:54,closeSearchResult:8,handleSearchNavigation:9,openSplitView:55,closeSplitView:56,collapseSplitView:57,expandSplitView:58,isSplitViewCollapsed:59,isSplitViewExpanded:60,existsSplitView:61,showAlert:62,showModal:63,openUserSettings:64,closeUserSettings:10,pathExists:65,hasBack:66},null,[-1,-1,-1,-1,-1])}get closeSearchField(){return this.$$.ctx[48]}get openSearchField(){return this.$$.ctx[49]}get clearSearchField(){return this.$$.ctx[50]}get toggleSearch(){return this.$$.ctx[7]}get getGlobalSearchString(){return this.$$.ctx[51]}get setGlobalSearchString(){return this.$$.ctx[52]}get setSearchInputPlaceholder(){return this.$$.ctx[53]}get showSearchResult(){return this.$$.ctx[54]}get closeSearchResult(){return this.$$.ctx[8]}get handleSearchNavigation(){return this.$$.ctx[9]}get openSplitView(){return this.$$.ctx[55]}get closeSplitView(){return this.$$.ctx[56]}get collapseSplitView(){return this.$$.ctx[57]}get expandSplitView(){return this.$$.ctx[58]}get isSplitViewCollapsed(){return this.$$.ctx[59]}get isSplitViewExpanded(){return this.$$.ctx[60]}get existsSplitView(){return this.$$.ctx[61]}get showAlert(){return this.$$.ctx[62]}get showModal(){return this.$$.ctx[63]}get openUserSettings(){return this.$$.ctx[64]}get closeUserSettings(){return this.$$.ctx[10]}get pathExists(){return this.$$.ctx[65]}get hasBack(){return this.$$.ctx[66]}}const Py=()=>{const{subscribe:i,update:e,reset:t}=or({}),n={};return{subscribe:i,update:e,reset:t,subscribeToScope:(l,r)=>{let s=n[r];s||(s=new Set,n[r]=s),s.add(l)},fire:(l,r)=>{let s=n[l];s&&[...s].forEach(o=>{o(r)})}}},M_=Py(),Ny=Gw((i,e,t)=>ht.getTranslation(i,e,t));Luigi._store=M_;const Iy=()=>new Promise(i=>{ht._init(),en.init().then(()=>{setTimeout(()=>{let e;Mn.isCustomLuigiContainer()&&document.getElementsByTagName("html")[0].classList.add("luigi-app-in-custom-container"),e=new yy({target:Mn.getLuigiContainer(),props:{store:M_,getTranslation:Ny}}),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()},i()})})});re.setConfigCallbacks(Iy);
|
|
64
64
|
//# sourceMappingURL=luigi.js.map
|