@luigi-project/core 2.11.1-dev.202404300025 → 2.11.1-dev.202404301416
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/luigi.js +2 -2
- package/luigi.js.map +1 -1
- package/package.json +1 -1
package/luigi.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Yw=Object.defineProperty;var Qw=(i,e,t)=>e in i?Yw(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Bf=(i,e,t)=>(Qw(i,typeof e!="symbol"?e+"":e,t),t);function He(){}function Zw(i,e){for(const t in e)i[t]=e[t];return i}function Xw(i){return i&&typeof i=="object"&&typeof i.then=="function"}function F_(i){return i()}function Hf(){return Object.create(null)}function Ze(i){i.forEach(F_)}function bi(i){return typeof i=="function"}function At(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Xr;function Xe(i,e){return Xr||(Xr=document.createElement("a")),Xr.href=e,i===Xr.href}function $w(i){return Object.keys(i).length===0}function Oo(i,...e){if(i==null)return He;const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function ol(i){let e;return Oo(i,t=>e=t)(),e}function wi(i,e,t){i.$$.on_destroy.push(Oo(e,t))}function U_(i,e,t,n){if(i){const l=z_(i,e,t,n);return i[0](l)}}function z_(i,e,t,n){return i[1]&&n?Zw(t.ctx.slice(),i[1](n(e))):t.ctx}function B_(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const a=[],r=Math.max(e.dirty.length,l.length);for(let o=0;o<r;o+=1)a[o]=e.dirty[o]|l[o];return a}return e.dirty|l}return e.dirty}function H_(i,e,t,n,l,a){if(l){const r=z_(e,t,n,a);i.p(r,l)}}function W_(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ei(i){return i??""}function q_(i){return i&&bi(i.destroy)?i.destroy:He}function w(i,e){i.appendChild(e)}function A(i,e,t){i.insertBefore(e,t||null)}function L(i){i.parentNode&&i.parentNode.removeChild(i)}function ct(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function xw(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function H(){return Le(" ")}function Ce(){return Le("")}function ne(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Pt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function Ut(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function e2(i){return Array.from(i.childNodes)}function Ae(i,e){e=""+e,i.wholeText!==e&&(i.data=e)}function Wf(i,e){i.value=e??""}function Vn(i,e,t,n){t===null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function jt(i,e,t){i.classList[t?"add":"remove"](e)}function t2(i,e,{bubbles:t=!1,cancelable:n=!1}={}){const l=document.createEvent("CustomEvent");return l.initCustomEvent(i,t,n,e),l}class ha{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=xw(t.nodeName):this.e=S(t.nodeName),this.t=t,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)A(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(L)}}let Wa;function zi(i){Wa=i}function hl(){if(!Wa)throw new Error("Function called outside component initialization");return Wa}function Gn(i){hl().$$.before_update.push(i)}function xt(i){hl().$$.on_mount.push(i)}function ja(i){hl().$$.after_update.push(i)}function Ja(i){hl().$$.on_destroy.push(i)}function Jt(){const i=hl();return(e,t,{cancelable:n=!1}={})=>{const l=i.$$.callbacks[e];if(l){const a=t2(e,t,{cancelable:n});return l.slice().forEach(r=>{r.call(i,a)}),!a.defaultPrevented}return!0}}function za(i,e){return hl().$$.context.set(i,e),e}function vt(i){return hl().$$.context.get(i)}function Dl(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Ha=[],Je=[],es=[],Ao=[],n2=Promise.resolve();let Eo=!1;function i2(){Eo||(Eo=!0,n2.then(Fo))}function Ro(i){es.push(i)}function mt(i){Ao.push(i)}const To=new Set;let $r=0;function Fo(){const i=Wa;do{for(;$r<Ha.length;){const e=Ha[$r];$r++,zi(e),l2(e.$$)}for(zi(null),Ha.length=0,$r=0;Je.length;)Je.pop()();for(let e=0;e<es.length;e+=1){const t=es[e];To.has(t)||(To.add(t),t())}es.length=0}while(Ha.length);for(;Ao.length;)Ao.pop()();Eo=!1,To.clear(),zi(i)}function l2(i){if(i.fragment!==null){i.update(),Ze(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ro)}}const ts=new Set;let Vl;function ke(){Vl={r:0,c:[],p:Vl}}function Se(){Vl.r||Ze(Vl.c),Vl=Vl.p}function R(i,e){i&&i.i&&(ts.delete(i),i.i(e))}function U(i,e,t,n){if(i&&i.o){if(ts.has(i))return;ts.add(i),Vl.c.push(()=>{ts.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function is(i,e){const t=e.token={};function n(l,a,r,o){if(e.token!==t)return;e.resolved=o;let c=e.ctx;r!==void 0&&(c=c.slice(),c[r]=o);const g=l&&(e.current=l)(c);let d=!1;e.block&&(e.blocks?e.blocks.forEach((h,p)=>{p!==a&&h&&(ke(),U(h,1,1,()=>{e.blocks[p]===h&&(e.blocks[p]=null)}),Se())}):e.block.d(1),g.c(),R(g,1),g.m(e.mount(),e.anchor),d=!0),e.block=g,e.blocks&&(e.blocks[a]=g),d&&Fo()}if(Xw(i)){const l=hl();if(i.then(a=>{zi(l),n(e.then,1,e.value,a),zi(null)},a=>{if(zi(l),n(e.catch,2,e.error,a),zi(null),!e.hasCatch)throw a}),e.current!==e.pending)return n(e.pending,0),!0}else{if(e.current!==e.then)return n(e.then,1,e.value,i),!0;e.resolved=i}}function G_(i,e,t){const n=e.slice(),{resolved:l}=i;i.current===i.then&&(n[i.value]=l),i.current===i.catch&&(n[i.error]=l),i.block.p(n,t)}const gl=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function bt(i,e,t,n){const l=i.$$.props[e];l!==void 0&&(i.$$.bound[l]=t,n===void 0&&t(i.$$.ctx[l]))}function Ue(i){i&&i.c()}function Oe(i,e,t,n){const{fragment:l,after_update:a}=i.$$;l&&l.m(e,t),n||Ro(()=>{const r=i.$$.on_mount.map(F_).filter(bi);i.$$.on_destroy?i.$$.on_destroy.push(...r):Ze(r),i.$$.on_mount=[]}),a.forEach(Ro)}function Fe(i,e){const t=i.$$;t.fragment!==null&&(Ze(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function a2(i,e){i.$$.dirty[0]===-1&&(Ha.push(i),i2(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Dt(i,e,t,n,l,a,r,o=[-1]){const c=Wa;zi(i);const g=i.$$={fragment:null,ctx:[],props:a,update:He,not_equal:l,bound:Hf(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Hf(),dirty:o,skip_bound:!1,root:e.target||c.$$.root};r&&r(g.root);let d=!1;if(g.ctx=t?t(i,e.props||{},(h,p,...b)=>{const m=b.length?b[0]:p;return g.ctx&&l(g.ctx[h],g.ctx[h]=m)&&(!g.skip_bound&&g.bound[h]&&g.bound[h](m),d&&a2(i,h)),p}):[],g.update(),d=!0,Ze(g.before_update),g.fragment=n?n(g.ctx):!1,e.target){if(e.hydrate){const h=e2(e.target);g.fragment&&g.fragment.l(h),h.forEach(L)}else g.fragment&&g.fragment.c();e.intro&&R(i.$$.fragment),Oe(i,e.target,e.anchor,e.customElement),Fo()}zi(c)}class Vt{$destroy(){Fe(this,1),this.$destroy=He}$on(e,t){if(!bi(t))return He;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!$w(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}class r2{constructor(){this.handles={},this.keyExistencyTimeout=2e4,this.keyExistencyCheckInterval=50}wrapAsPromise(e){return new Promise(t=>{t(e)})}applyFunctionPromisified(e,t){return e=e.apply(this,t),le.isPromise(e)?e:this.wrapAsPromise(e)}getConfigValueFromObjectAsync(e,t,...n){let l=le.getConfigValueFromObject(e,t);return le.isFunction(l)?this.applyFunctionPromisified(l,n):this.wrapAsPromise(l)}}const ls=new r2;class s2{convertCustomMessageInternalToUser(e){return e.data}convertCustomMessageUserToInternal(e){return{msg:"custom",data:e}}}const as=new s2;class o2{constructor(){this.dataManagement=new Map}setChildren(e,t){this.dataManagement.set(e,t),this.navPath=""}getChildren(e){return e?this.dataManagement.get(e):{}}hasChildren(e){const t=this.getChildren(e);return t&&t.hasOwnProperty("children")}setRootNode(e){this.dataManagement.set("_luigiRootNode",{node:e})}getRootNode(){return this.dataManagement.get("_luigiRootNode")}hasRootNode(){return!!this.getRootNode()}deleteCache(){this.dataManagement.clear()}deleteNodesRecursively(e){if(this.hasChildren(e)){let t=this.getChildren(e).children;for(let n=0;n<t.length;n++)this.deleteNodesRecursively(t[n])}this.dataManagement.delete(e)}}const qn=new o2;let u2=class{constructor(){this.configReadyCallback=function(){},this.initialized=!1,this.USER_SETTINGS_KEY="luigi.preferences.userSettings"}setConfigCallbacks(e){this.configReadyCallback=e}async setConfig(e){this.config=e,window.Luigi._store.update(()=>({config:e})),this._configModificationTimestamp=new Date,this.initialized||(this.initialized=!0,this.configReadyCallback().then(async()=>{q2.luigiAfterInit(),await this.executeConfigFnAsync("lifecycleHooks.luigiAfterInit")}))}getConfig(){return this.config}configChanged(...e){const t=dn.optimizeScope(e);t.length>0?t.forEach(n=>{window.Luigi._store.fire(n,{current:window.Luigi._store})}):window.Luigi._store.update(n=>n)}setErrorMessage(e){var t=document.createTextNode(e),n=document.createElement("div");n.setAttribute("class","fd-ui"),n.setAttribute("style","text-align: center;");var l=document.createElement("div");l.setAttribute("class","fd-message-strip fd-message-strip--error"),l.setAttribute("style","max-width: 800px; display: inline-block; margin-top: 40px;"),l.appendChild(t),n.appendChild(l),Bi.getLuigiContainer().appendChild(n)}getConfigValue(e){return le.getConfigValueFromObject(this.getConfig(),e)}getConfigBooleanValue(e){const t=le.getConfigValueFromObject(this.getConfig(),e);return t===!0||t==="true"}getConfigValueAsync(e,...t){return ls.getConfigValueFromObjectAsync(this.getConfig(),e,t)}async executeConfigFnAsync(e,t=!1,...n){const l=this.getConfigValue(e);if(le.isFunction(l))try{return await ls.applyFunctionPromisified(l,n)}catch(a){if(t)return Promise.reject(a)}return Promise.resolve(void 0)}isAuthorizationEnabled(){return pi.isAuthorizationEnabled()}unload(){this.initialized=!1,fn.unload(),Mn.removeAllEventListeners();const e=Bi.getLuigiContainer();for(;e.firstChild;)e.removeChild(e.lastChild)}async readUserSettings(){const e=await this.getConfigValueAsync("userSettings"),t=e||await this.getConfigValueAsync("settings.userSettings");if(t&&le.isFunction(t.readUserSettings))return t.readUserSettings();const n=localStorage.getItem(this.USER_SETTINGS_KEY);return n&&JSON.parse(n)}async storeUserSettings(e,t){const n=await this.getConfigValueAsync("userSettings"),l=n||await this.getConfigValueAsync("settings.userSettings");if(l&&le.isFunction(l.storeUserSettings))return l.storeUserSettings(e,t);localStorage.setItem(this.USER_SETTINGS_KEY,JSON.stringify(e)),this.configChanged()}reset(){const e=this.getConfig();this.unload(),this.setConfig(e)}clearNavigationCache(){qn.deleteCache();const e=t=>{t&&t.forEach&&t.forEach(n=>{n.titleResolver&&n.titleResolver._cache&&(n.titleResolver._cache=void 0),n.children&&e(n.children)})};e(this.getConfig().navigation.nodes)}setGlobalContext(e,t){this.config&&this.config.navigation&&(this.config.navigation.globalContext=e,t||this.configChanged("navigation"))}getGlobalContext(){var e,t;return((t=(e=this.config)==null?void 0:e.navigation)==null?void 0:t.globalContext)||{}}};const rs=new u2;let f2=class{constructor(){}isAuthorizationEnabled(){return!!re.getConfigValue("auth.use")}login(){this.isAuthorizationEnabled()&&fn.startAuthorization()}logout(){this.isAuthorizationEnabled()&&fn.logout()}async handleAuthEvent(e,t,n,l){const a=await re.executeConfigFnAsync("auth.events."+e,!1,t,n);let r=a===void 0||!!a;if(r&&l){window.location.href=l;return}return r}get store(){return re.initialized||console.warn("Luigi Core is not initialized yet. Consider moving your code to the luigiAfterInit lifecycle hook. Documentation: https://docs.luigi-project.io/docs/lifecycle-hooks"),{getStorageKey:()=>ui.getStorageKey(),getStorageType:()=>ui.getStorageType(),getAuthData:()=>ui.getAuthData(),setAuthData:e=>ui.setAuthData(e),removeAuthData:()=>ui.removeAuthData(),setNewlyAuthorized:()=>ui.setNewlyAuthorized()}}};const K_=new f2,rn={desktopMinWidth:600},c2=[{type:"main",selector:".iframeContainer iframe"},{type:"split-view",selector:".iframeSplitViewCnt iframe"},{type:"modal",selector:".iframeModalCtn._modal iframe"},{type:"drawer",selector:".iframeModalCtn._drawer iframe"},{type:"user-settings",selector:".iframeUserSettingsCtn iframe"}],d2={cssSelector:"[luigi-app-root]"},h2={cssSelector:"[luigi-app-loading-indicator]"};let g2=class{getLuigiContainer(){return this.getCustomLuigiContainer()||this.getDefaultLuigiContainer()}isCustomLuigiContainer(){return this.getLuigiContainer()===this.getCustomLuigiContainer()}getCustomLuigiContainer(){return document.querySelector(d2.cssSelector)}getDefaultLuigiContainer(){return document.querySelector("body")}getShellbar(){return document.getElementsByClassName("lui-shellbar-wrapper")[0]}getShellbarActions(){return document.getElementsByClassName("lui-shellbar_group--actions")[0]}getMicrofrontends(){return Ee.getMicrofrontendsInDom()}getMicrofrontendIframes(){return Ee.getMicrofrontendIframes()}getCurrentMicrofrontendIframe(){return Ee.getCurrentMicrofrontendIframe()}getNavFooterContainer(){return document.getElementsByClassName("lui-side-nav__footer")[0]}};const j_=new g2;class _2{constructor(){this.promises={}}setPromise(e,t){this.promises[e]=t}getPromise(e){return this.promises[e]}}class xn extends _2{constructor(e){super(),Object.assign(this,e),this.options={preserveView:!1,nodeParams:{},errorSkipNavigation:!1,fromContext:null,fromClosestContext:!1,relative:!1,link:""}}async navigate(e,t,n,l,a){if(this.options.errorSkipNavigation)return this.options.errorSkipNavigation=!1,Promise.reject(new Error("navigation skipped"));this.options.preserveView=t;const r=e[0]!=="/";if(e==="/"&&(n||l||a))return console.warn("Navigation with an absolute path prevented."),Promise.reject(new Error("Navigation with an absolute path prevented."));const o=le.createRemotePromise(),c={msg:"luigi.navigation.open",params:Object.assign(this.options,{link:e,relative:r,modal:n,splitView:l,drawer:a}),remotePromiseId:o.id};return this.sendPostMessageToLuigiCore(c),o}openAsModal(e,t={},n){if(le.isFunction(n)){const l=le.createRemotePromise();l.then(a=>{n(a)}),t.onClosePromiseId=l.id}return this.navigate(e,!0,t)}openAsDrawer(e,t={}){return this.navigate(e,!0,void 0,void 0,t)}openAsSplitView(e,t={}){return this.navigate(e,!0,void 0,t),Luigi.splitView.splitViewHandle}fromContext(e){return this.options.fromContext=e,this}fromClosestContext(){return this.options.fromContext=null,this.options.fromClosestContext=!0,this}fromVirtualTreeRoot(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!0,this}withParams(e){return e&&Object.assign(this.options.nodeParams,e),this}pathExists(e){if(le.isFunction(Luigi.pathExists))return Luigi.pathExists(e);console.error("Luigi.navigation().pathExists(path) is only available inside your configuration, after the configuration was initialized with Luigi.setConfig().")}hasBack(){return Luigi.hasBack()}goBack(e){this.sendPostMessageToLuigiCore({msg:"luigi.navigation.back",goBackContext:e&&JSON.stringify(e)})}sendPostMessageToLuigiCore(e){window.postMessage(e,"*")}}class p2{constructor(){}updateTopNavigation(){window.postMessage({msg:"luigi.navigation.update-badge-counters"},"*")}navigate(e,t,n,l,a){return new xn().navigate(e,t,n,l,a)}openAsModal(e,t,n){return new xn().openAsModal(e,t,n)}openAsSplitView(e,t={}){if(e==="/"){console.warn("Navigation with an absolute path prevented.");return}return new xn().openAsSplitView(e,t)}openAsDrawer(e,t){return new xn().openAsDrawer(e,t)}fromContext(e){return new xn().fromContext(e)}fromClosestContext(){return new xn().fromClosestContext()}fromVirtualTreeRoot(){return new xn().fromVirtualTreeRoot()}withParams(e){return new xn().withParams(e)}pathExists(e){return new xn().pathExists(e)}hasBack(){return new xn().hasBack()}goBack(e){return new xn().goBack(e)}}const J_=new p2,m2={luigi:{unsavedChangesAlert:{header:"Unsaved changes detected",body:"Unsaved changes will be lost. Do you want to continue?"},confirmationModal:{header:"Confirmation",body:"Are you sure you want to do this?"},button:{dismiss:"No",confirm:"Yes"},requestedRouteNotFound:"Could not find the requested route {route}.",notExactTargetNode:"Could not map the exact target node for the requested route {route}.",navigation:{up:"Up"}}},b2=m2;class v2{constructor(){this.currentLocaleStorageKey="luigi.currentLocale",this.defaultLocale="en",this.translationTable=b2,this.listeners={}}_init(){dn.doOnStoreChange(window.Luigi._store,()=>{this._initCustomImplementation()},["settings"])}getCurrentLocale(){return sessionStorage.getItem(this.currentLocaleStorageKey)||this.defaultLocale}setCurrentLocale(e){e&&(sessionStorage.setItem(this.currentLocaleStorageKey,e),this._notifyLocaleChange(e))}addCurrentLocaleChangeListener(e){if(le.isFunction(e)){const t=le.getRandomId();return this.listeners[t]=e,t}else console.error("Provided locale change listener is not a function.")}removeCurrentLocaleChangeListener(e){e&&this.listeners[e]?delete this.listeners[e]:console.error("Unable to remove locale change listener - no listener registered for given ID.")}_notifyLocaleChange(e){Object.getOwnPropertyNames(this.listeners).forEach(t=>{this.listeners[t](e)}),rs.configChanged()}_initCustomImplementation(){this.translationImpl=rs.getConfigValue("settings.customTranslationImplementation"),le.isFunction(this.translationImpl)&&(this.translationImpl=this.translationImpl())}getTranslation(e,t=void 0,n=void 0){if(!e)return"";if(this.translationImpl){const a=this.translationImpl.getTranslation(e,t,n);if(a!==e)return a}const l=this.findTranslation(e,this.translationTable,t);return l||e}findTranslation(e,t,n){let l=e.split(".");for(let a=0;a<l.length;a++){let r=l[a];if(t.hasOwnProperty(r)&&typeof t[r]=="object")t=t[r];else return n?this.findInterpolations(t[r],n):t[r]}}findInterpolations(e,t){return Object.keys(t).forEach(n=>{e=e.replace(new RegExp("{"+da.escapeKeyForRegexp(n)+"}","gi"),t[n])}),e}}const Y_=new v2;class w2{sendToAll(e){const t=as.convertCustomMessageUserToInternal(e);Ee.getMicrofrontendsInDom().map(n=>n.container).map(n=>Ee.sendMessageToIframe(n,t))}send(e,t){const n=as.convertCustomMessageUserToInternal(t);Ee.getMicrofrontendsInDom().filter(l=>l.id===e).map(l=>l.container).map(l=>Ee.sendMessageToIframe(l,n))}}const k2=new w2,ra=[];function S2(i,e){return{subscribe:fa(i,e).subscribe}}function fa(i,e=He){let t;const n=new Set;function l(o){if(At(i,o)&&(i=o,t)){const c=!ra.length;for(const g of n)g[1](),ra.push(g,i);if(c){for(let g=0;g<ra.length;g+=2)ra[g][0](ra[g+1]);ra.length=0}}}function a(o){l(o(i))}function r(o,c=He){const g=[o,c];return n.add(g),n.size===1&&(t=e(l)||He),o(i),()=>{n.delete(g),n.size===0&&(t(),t=null)}}return{set:l,update:a,subscribe:r}}class C2{initial(){this.responsiveNavSetting=re.getConfigValue("settings.responsiveNavigation");const e=this.responsiveNavSetting==="semiCollapsible"||this.responsiveNavSetting==="Fiori3";JSON.parse(localStorage.getItem(oe.COL_NAV_KEY))!==!1&&e&&(this.isSemiCollapsed=this.getCollapsed()),this.semiCollapsible=!!e;let t=this.isSemiCollapsed===void 0;return this.semiCollapsible&&window.innerWidth!==0&&window.innerWidth<rn.desktopMinWidth?this.isSemiCollapsed=t?!0:this.getCollapsed():this.isSemiCollapsed=t?!1:this.getCollapsed(),this.setCollapsed(this.isSemiCollapsed),this.previousWindowWidth=window.innerWidth,{isSemiCollapsed:this.isSemiCollapsed,semiCollapsible:this.semiCollapsible}}onValueChanged(e){this.valueChangedFns?this.valueChangedFns.push(e):this.valueChangedFns=[e]}onResize(e){const t=window.innerWidth!==0&&window.innerWidth<rn.desktopMinWidth&&this.previousWindowWidth>=rn.desktopMinWidth,n=window.innerWidth!==0&&window.innerWidth>rn.desktopMinWidth&&this.previousWindowWidth>=rn.desktopMinWidth;return t&&this.setCollapsed(!0,!1),!this.isStoredCollapsed()&&n&&this.setCollapsed(!1,!1),e=this.closePopupMenu(e),{isSemiCollapsed:this.isSemiCollapsed,selectedCategory:e}}setCollapsed(e,t=!0){document.body.classList.remove("semiCollapsed"),e&&document.body.classList.add("semiCollapsed"),this.isSemiCollapsed=e,t&&localStorage.setItem(oe.COL_NAV_KEY,e),this.valueChangedFns instanceof Array&&this.valueChangedFns.forEach(n=>n({isSemiCollapsed:this.isSemiCollapsed}))}isStoredCollapsed(){return JSON.parse(localStorage.getItem(oe.COL_NAV_KEY))}getCollapsed(){return this.isStoredCollapsed()?!0:this.isSemiCollapsed}closePopupMenu(e){var t;return e&&(e=null,(t=document.getElementsByClassName("fd-app__sidebar")[0])==null||t.classList.remove("isBlocked")),e}buttonClicked(e){return this.closePopupMenu(),this.getCollapsed()?this.setCollapsed(!1):(this.setCollapsed(!0),document.getElementsByClassName("lui-fd-side-nav-wrapper")[0]&&(document.getElementsByClassName("lui-fd-side-nav-wrapper")[0].setAttribute("style","overflow-y:hidden;"),window.setTimeout(function(){document.getElementsByClassName("lui-fd-side-nav-wrapper")[0].setAttribute("style","overflow-y:auto;")}))),this.isSemiCollapsed}}const _i=new C2;let y2=class{constructor(){this.documentTitle=fa()}hideAppLoadingIndicator(){const e=document.querySelector(h2.cssSelector);e&&(e.classList.add("hidden"),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e)},500))}showAlert(e){if(le.isFunction(Luigi.showAlert))return Luigi.showAlert(e);console.error("Luigi.ux().showAlert() is only available inside your configuration, after the configuration was initialized with Luigi.setConfig().")}showConfirmationModal(e){if(le.isFunction(Luigi.showConfirmationModal))return Luigi.showConfirmationModal(e);console.error("Luigi.ux().showConfirmationModal() is only available inside your configuration, after the configuration was initialized with Luigi.setConfig().")}setDocumentTitle(e){this.documentTitle.set(e),Luigi.configChanged("settings.header")}getDocumentTitle(){return ol(this.documentTitle)}collapseLeftSideNav(e){_i.setCollapsed(e)}openUserSettings(){Luigi.openUserSettings()}closeUserSettings(){Luigi.closeUserSettings()}removeBackdrop(){new xn().sendPostMessageToLuigiCore({msg:"luigi.remove-backdrop"})}getDirtyStatus(){return Luigi.getDirtyStatus()}};const Q_=new y2;let P2=class{openSearchField(){Luigi.openSearchField()}closeSearchField(){Luigi.closeSearchField()}clearSearchField(){Luigi.clearSearchField()}showSearchResult(e){Luigi.showSearchResult(e)}closeSearchResult(){Luigi.closeSearchResult()}getSearchString(){return Luigi.getGlobalSearchString()}setSearchString(e){Luigi.setGlobalSearchString(e)}setSearchInputPlaceholder(e){Luigi.setSearchInputPlaceholder(e)}};const Z_=new P2;let N2=class{constructor(){this.currentTheme}async getAvailableThemes(){return await re.getConfigValueAsync("settings.theming.themes")}setCurrentTheme(e){this.currentTheme=e,window.Luigi.__cssVars=void 0}async getThemeObject(e){const t=await this.getAvailableThemes();return t&&t.find(n=>n.id===e)}getCurrentTheme(){if(!this.isThemingAvailable())return!1;if(this.currentTheme)return this.currentTheme;const e=re.getConfigValue("settings.theming");return e.defaultTheme||console.error("[Theming] getCurrentTheme() error. No theme set and no defaultTheme found in configuration",e),e.defaultTheme}isThemingAvailable(){return!!re.getConfigValue("settings.theming")}async getCSSVariables(){if(!window.Luigi.__cssVars){const e=re.getConfigValue("settings.theming.variables.file");if(e)try{const t=await fetch(e);window.Luigi.__cssVars=(await t.json()).root,Object.keys(window.Luigi.__cssVars).forEach(n=>{const l=getComputedStyle(document.documentElement).getPropertyValue("--"+n);l&&(window.Luigi.__cssVars[n]=l)})}catch(t){le.isFunction(re.getConfigValue("settings.theming.variables.errorHandling"))?re.getConfigValue("settings.theming.variables.errorHandling")(t):console.error("CSS variables file error: ",t)}else re.getConfigValue("settings.theming.variables")==="fiori"&&window.__luigiThemeVars?(window.Luigi.__cssVars={},window.__luigiThemeVars.forEach(t=>{window.Luigi.__cssVars[t]=getComputedStyle(document.documentElement).getPropertyValue("--"+t)})):window.Luigi.__cssVars={}}return window.Luigi.__cssVars}_init(){const e=()=>{const t=re.getConfigValue("settings.theming");t&&t.nodeViewURLDecorator&&t.nodeViewURLDecorator.queryStringParameter&&Ga.add({type:"queryString",uid:"theming",key:t.nodeViewURLDecorator.queryStringParameter.keyName,valueFn:()=>{const n=this.getCurrentTheme(),l=t.nodeViewURLDecorator.queryStringParameter.value;return l?l(n):n}}),t&&t.useFioriScrollbars===!0&&document.body.classList.add("fioriScrollbars")};dn.doOnStoreChange(window.Luigi._store,()=>{e()},["settings.theming"])}};const X_=new N2;let T2=class{constructor(){this.featureToggleList=fa([])}setFeatureToggle(e,t=!1){this.isValid(e)&&(e.startsWith("!")&&!t||this.isDuplicatedOrDisabled(e)||ol(this.featureToggleList).push(e))}unsetFeatureToggle(e){if(!this.isValid(e))return;const t=ol(this.featureToggleList).indexOf(e);if(t===-1){console.warn("Feature toggle name is not in the list.");return}ol(this.featureToggleList).splice(t,1)}getActiveFeatureToggleList(){return[...ol(this.featureToggleList)].filter(e=>!e.startsWith("!"))}isValid(e){return le.isString(e)?!0:(console.warn("Feature toggle name is not valid or not of type 'string'"),!1)}isDuplicatedOrDisabled(e){return ol(this.featureToggleList).includes(e)?(console.warn("Feature toggle name already exists"),!0):ol(this.featureToggleList).includes(`!${e}`)?(console.warn("Disabled feature toggle can not be activated"),!0):!1}};const $_=new T2;let I2=class{constructor(){}getSearchParams(){const e={},t=new URL(location);if(re.getConfigValue("routing.useHashRouting"))for(const[n,l]of new URLSearchParams(t.hash.split("?")[1]))e[n]=l;else for(const[n,l]of t.searchParams.entries())e[n]=l;return e}addSearchParams(e,t){if(!le.isObject(e)){console.log("Params argument must be an object");return}const n=new URL(location);re.getConfigValue("routing.useHashRouting")?n.hash=we.addParamsOnHashRouting(e,n.hash):we.modifySearchParams(e,n.searchParams),this.handleBrowserHistory(t,n),re.configChanged()}addNodeParams(e,t){if(!le.isObject(e)){console.log("Params argument must be an object");return}const n=we.getContentViewParamPrefix(),l=new URL(location);re.getConfigValue("routing.useHashRouting")?l.hash=we.addParamsOnHashRouting(e,l.hash,n):we.modifySearchParams(e,l.searchParams,n),this.handleBrowserHistory(t,l),re.configChanged()}sanitizeUrl(e){return new URL(location).origin===new URL(e).origin?e:void 0}handleBrowserHistory(e,t){const n=this.sanitizeUrl(t.href);if(!n){console.warn("invalid url: "+n);return}e?window.history.pushState({},"",n):window.history.replaceState({},"",n)}getAnchor(){const{hash:e}=new URL(location);return re.getConfigValue("routing.useHashRouting")&&e.split("#").length===2?"":e.split("#").pop()}setAnchor(e){if(re.getConfigValue("routing.useHashRouting")){const{hash:t}=new URL(location),n=t.split("#"),a=n.length>2?n.slice(0,-1):n;window.location.hash=[...a,e].join("#")}else window.location.hash=e}};const x_=new I2,re=rs,pi=K_,Bi=j_,ep=J_,St=Y_,Ya=Q_,L2=Z_,Do=X_,Uo=$_,ul=x_;window.Luigi=rs;window.Luigi.auth=()=>K_;window.Luigi.elements=()=>j_;window.Luigi.navigation=()=>J_;window.Luigi.i18n=()=>Y_;window.Luigi.customMessages=()=>k2;window.Luigi.ux=()=>Q_;window.Luigi.globalSearch=()=>Z_;window.Luigi.theming=()=>X_;window.Luigi.featureToggles=()=>$_;window.Luigi.routing=()=>x_;class A2{constructor(){this.iframeNavFallbackTimeout=2e3,this.timeoutHandle}getActiveIframe(e){return[...e.children].filter(n=>n.tagName==="IFRAME").find(le.isElementVisible)}setActiveIframeToPrevious(e){const t=Ee.getMainIframes(),n=this.getPreservedViewsInDom(t);if(n.length===0)return;const l=this.getActiveIframe(e);Ee.hideElementChildren(e),l&&e.removeChild(l),n[0].pv=void 0,n[0].style.display="block"}removeInactiveIframes(e){Array.from(e.children).forEach(n=>{!le.isElementVisible(n)&&!n.vg&&n.tagName==="IFRAME"&&e.removeChild(n)})}hasIsolatedView(e,t,n){return e||n&&e!==!1&&!t}getPreservedViewsInDom(e){return e.filter(t=>t.pv)}canCache(e){const t=oe.getViewGroupSettings(e);return t&&t.preloadUrl}notifyInactiveIframes(){const e={msg:"luigi-client.inactive-microfrontend",context:JSON.stringify({}),nodeParams:JSON.stringify({}),pathParams:JSON.stringify({}),internal:JSON.stringify({currentLocale:St.getCurrentLocale()})};Ee.sendMessageToVisibleIframes(e)}switchActiveIframe(e,t,n){const l=this.getActiveIframe(e);if(l!==t){let a=!1;Array.from(e.children).forEach(o=>{if(o===l)if(n)e.removeChild(o);else{const c=oe.getViewGroupSettings(o.vg);if(c&&this.notifyInactiveIframes(),o.style.display="none",c.preloadUrl){const g={msg:"luigi.navigate",viewUrl:c.preloadUrl,context:JSON.stringify({}),nodeParams:JSON.stringify({}),pathParams:JSON.stringify({}),internal:JSON.stringify({currentLocale:St.getCurrentLocale()})};Ee.sendMessageToIframe(o,g)}}o===t&&(a=!0)}),t&&(t.style.display="block",a||e.insertBefore(t,e.firstChild))}return t}setOkResponseHandler(e,t,n){this.timeoutHandle=setTimeout(async()=>{e.navigateOk?e.navigateOk=void 0:(Ee.removeIframe(e.iframe,n),e.iframe=void 0,e.isFallbackFrame=!0,console.info("navigate: luigi-client did not respond, using fallback by replacing iframe"),await this.navigateIframe(e,t,n))},this.iframeNavFallbackTimeout)}checkIframe(e,t,n,l,a){this.timeoutHandle=setTimeout(()=>{t.get().showLoadingIndicator&&(e.viewUrl?(n=e.viewUrl,t.set({viewUrl:n}),this.iframeNavFallbackTimeout=0,this.setOkResponseHandler(l,t,a)):oe.handleUnresponsiveClient(e))},e.timeout)}initHandshakeFailed(e){if(!(e&&e.iframe&&e.iframe.luigi))return!0;const t=e.iframe.luigi.clientVersion;return e.iframe.luigi.initOk===void 0?!0:!t||le.semverCompare("1.1.1",t)!==-1?!1:!e.iframe.luigi.initOk}async navigateIframe(e,t,n){clearTimeout(this.timeoutHandle);const l=t.get();let a=l.viewUrl;a&&(a=we.substituteViewUrl(a,l));const r=Ee.isSameViewGroup(e,t),o=this.hasIsolatedView(l.previousNodeValues.isolateView,r,e.isolateAllViews),c=this.hasIsolatedView(l.isolateView,r,e.isolateAllViews),g=Ee.canReuseIframe(e,t);let d=this.getActiveIframe(n);const h=Ee.getMainIframes(),p=this.getPreservedViewsInDom(h);let b,m=!1;if(p.length>0&&(b=p.shift(),b===d&&(m=!0,d=void 0,e.iframe=void 0)),!m&&!t.get().isNavigateBack){d&&o&&(d=this.switchActiveIframe(n,void 0,!0)),d&&c&&(d=this.switchActiveIframe(n,void 0,!d.vg));let v;if(!c&&l.viewGroup){const y=Ee.getMainIframes().filter(P=>P.vg===l.viewGroup);y.length>0&&(v=y[0],d=this.switchActiveIframe(n,v,d&&!d.vg))}d&&!v&&(d.vg?d=this.switchActiveIframe(n,void 0,!1):g||(d=this.switchActiveIframe(n,void 0,!0))),e.iframe=d}if(!e.iframe||this.initHandshakeFailed(e)){if(e.iframe&&n.removeChild(e.iframe),m?(this.notifyInactiveIframes(),Ee.hideElementChildren(n)):Ee.removeElementChildren(n),l.viewUrl){le.getConfigValueFromObject(l,"currentNode.loadingIndicator.enabled")!==!1?t.set({showLoadingIndicator:!0}):t.set({showLoadingIndicator:!1}),e.navigateOk=void 0;const v=l.viewGroup&&!c&&this.canCache(l.viewGroup);e.iframe=Ee.createIframe(a,v?l.viewGroup:void 0,t.get().currentNode,"main",l),n.insertBefore(e.iframe,n.firstChild),e.builderCompatibilityMode?e.iframe.addEventListener("load",()=>{e.iframe._ready=!0;const y=["init",JSON.stringify(l.context)];Ee.sendMessageToIframe(e.iframe,y)}):e.iframe.addEventListener("load",()=>{e.iframe._ready=!0});const C=l.currentNode.pageErrorHandler;C?this.checkIframe(C,t,a,e,n):e.defaultPageErrorHandler&&this.checkIframe(e.defaultPageErrorHandler,t,a,e,n)}}else{t.set({showLoadingIndicator:!1});const v=t.get().goBackContext;e.iframe.style.display="block",e.iframe.luigi.nextViewUrl=a,e.iframe.luigi.nextClientPermissions=t.get().currentNode.clientPermissions,e.iframe.vg=this.canCache(l.viewGroup)?l.viewGroup:void 0,e.iframe.luigi.currentNode=l.currentNode;const C=await t.prepareInternalData(e),y={msg:"luigi.navigate",viewUrl:a,context:JSON.stringify(Object.assign({},l.context,{goBackContext:v})),nodeParams:JSON.stringify(Object.assign({},l.nodeParams)),pathParams:JSON.stringify(Object.assign({},l.pathParams)),searchParams:JSON.stringify(Object.assign({},we.prepareSearchParamsForClient(e.iframe.luigi.currentNode))),internal:JSON.stringify(C)};l.isNavigationSyncEnabled?(Ee.getVisibleIframes().forEach(T=>{T!==e.iframe&&(T.userSettingsGroup?Luigi.readUserSettings().then(E=>{Ee.sendMessageToIframe(T,{msg:"luigi.navigate",context:{userSettingsData:E[T.userSettingsGroup]},internal:Ee.applyCoreStateData(T.luigi._lastUpdatedMessage.internal)})}):Ee.sendMessageToIframe(T,{msg:"luigi.navigate",context:T.luigi._lastUpdatedMessage.context,nodeParams:T.luigi._lastUpdatedMessage.nodeParams,pathParams:JSON.stringify(Object.assign({},T.luigi.pathParams)),searchParams:JSON.stringify(Object.assign({},we.prepareSearchParamsForClient(e.iframe.luigi.currentNode))),internal:Ee.applyCoreStateData(T.luigi._lastUpdatedMessage.internal)}))}),Ee.sendMessageToIframe(e.iframe,y),this.setOkResponseHandler(e,t,n)):t.set({isNavigationSyncEnabled:!0}),t.set({goBackContext:void 0,isNavigateBack:!1})}}}const oi=new A2;class E2{constructor(){this.preloadBatchSize=1,this.shouldPreload=!1}preloadViewGroups(e=3,t){if(re.getConfigValue("navigation.preloadViewGroups")===!1)return;const l=oe.getAllViewGroupSettings();if(!l)return;const a=Ee.getIframeContainer(),r=Ee.getMainIframes(),o=new Date().getTime();if(r.filter(h=>h.luigi&&h.luigi.preloading&&o-h.luigi.createdAt<3e4).length>0){console.debug("skipping view group preloading (busy)");return}const g=r.map(h=>h.vg).filter(Boolean),d=Object.entries(l).filter(([h,p])=>!g.includes(h)).filter(([h,p])=>p&&p.preloadUrl);t&&d.forEach(([h,p])=>{p.loadOnStartup&&this.preloadIframeOnBackground(p,h,a)}),!t&&d.filter((h,p)=>p<e).forEach(([h,p])=>{console.debug("preloading view group "+h+" - "+p.preloadUrl),this.preloadIframeOnBackground(p,h,a)})}preloadIframeOnBackground(e,t,n){const l=Ee.createIframe(e.preloadUrl,t,null,"main");l.style.display="none",l.luigi.preloading=!0,n.appendChild(l)}preload(e){this.shouldPreload&&setTimeout(()=>{this.preloadViewGroups(this.preloadBatchSize,e)},e),this.shouldPreload=!0}viewGroupLoaded(e){if(e.luigi.preloading){const t=new Date().getTime()-e.luigi.createdAt;let n=1;t<500?n=3:t<1e3&&(n=2),this.preloadBatchSize=n,console.debug("preload batch size: "+this.preloadBatchSize),setTimeout(()=>{e.luigi.preloading=!1},this.preloadBatchSize>2?500:1e3)}}}const sa=new E2;class R2{async getNavigationPath(e,t=""){try{const n=le.getTrimmedUrl(t);if(!e)return console.error("No navigation nodes provided in the configuration."),[{}];let l;if(qn.hasRootNode()&&(l=qn.getRootNode().node),!l){const h=await e;le.isObject(h)?(l=h,l.pathSegment&&(l.pathSegment="",console.warn("Root node must have an empty path segment. Provided path segment will be ignored."))):l={children:h},l.children=await this.getChildren(l),qn.setRootNode(l)}const a=n.split("/"),o={...re.getConfigValue("navigation.globalContext")||{},...l.context||{}},c=await this.buildNode(a,[l],l.children,o),g=c.navigationPath.filter(h=>h.pathSegment).map(h=>h.pathSegment);c.isExistingRoute=!n||a.length===g.length;const d=n.split("/");return c.matchedPath=d.filter((h,p)=>g[p]&&g[p].startsWith(":")||g[p]===h).join("/"),c}catch(n){console.error("Failed to load top navigation nodes.",n)}}async getChildren(e,t){if(!e)return[];let n=[];if(qn.hasChildren(e)){let a=qn.getChildren(e);a&&(n=a.children)}else try{n=await ls.getConfigValueFromObjectAsync(e,"children",t||e.context),n==null&&(n=[]),n=n.map(a=>this.getExpandStructuralPathSegment(a)).map(a=>this.bindChildToParent(a,e))||[]}catch(a){console.error("Could not lazy-load children for node",a)}let l=this.getAccessibleNodes(e,n,t);return qn.setChildren(e,{children:n,filteredChildren:l}),l}async getFilteredChildren(e){return qn.hasChildren(e)?Ot.getChildrenFromCache(e):await Ot.getChildren(e)}getChildrenFromCache(e){let t=qn.getChildren(e);return t?t.filteredChildren:[]}getAccessibleNodes(e,t,n){return t?t.filter(l=>oe.isNodeAccessPermitted(l,e,n)):[]}bindChildToParent(e,t){return t&&t.pathSegment&&(e.parent=t),e}getExpandStructuralPathSegment(e){if(e&&e.pathSegment&&e.pathSegment.indexOf("/")!==-1){const t=e.pathSegment.split("/"),n={...e},l=(a,r)=>{const o=a.shift();let c={};return a.length?(c.pathSegment=o,r.hideFromNav&&(c.hideFromNav=r.hideFromNav),c.children=[l(a,r)]):(c=n,c.pathSegment=o),c};return l(t,e)}return e}async buildNode(e,t,n,l,a={}){l.parentNavigationContexts||(l.parentNavigationContexts=[]);let r={navigationPath:t,context:l,pathParams:a};if(e.length>0&&n&&n.length>0){const o=e[0],c=this.findMatchingNode(o,n);if(c){t.push(c);let g=oe.applyContext(l,c.context,c.navigationContext);c.pathSegment.startsWith(":")&&(a[c.pathSegment.replace(":","")]=da.sanitizeParam(o)),g=we.substituteDynamicParamsInObject(g,a);try{this.buildVirtualTree(c,e,a);let d=await this.getChildren(c,g);const h=e.slice(1);r=this.buildNode(h,t,d,g,a)}catch(d){console.error("Error getting nodes children",d)}}}return r}buildVirtualViewUrl(e,t,n){let l="";for(const a in t)a.startsWith("virtualSegment")&&(l+=":"+a+"/");return n?(l+=":virtualSegment_"+n+"/",e+"/"+l):e}buildVirtualTree(e,t,n){const l=e.virtualTree,a=e._virtualTree,r=e._virtualViewUrl||e.viewUrl;if((l||a)&&t[0]){let o=e._virtualPathIndex;if(l&&(o=0,e.keepSelectedForChildren=!0),o>50)return;o++;const g=["_*","virtualTree","parent","children","keepSelectedForChildren","navigationContext"],d=le.removeProperties(e,g);Object.assign(d,{pathSegment:":virtualSegment_"+o,label:":virtualSegment_"+o,viewUrl:le.trimTrailingSlash(this.buildVirtualViewUrl(r,n,o)),_virtualTree:!0,_virtualPathIndex:o,_virtualViewUrl:r});const h=Array.isArray(e.children)&&e.children.length>0?e.children[0]._virtualTree:!1;e.children&&!h&&console.warn(`Found both virtualTree and children nodes defined on a navigation node.
|
|
1
|
+
var Yw=Object.defineProperty;var Qw=(i,e,t)=>e in i?Yw(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Bf=(i,e,t)=>(Qw(i,typeof e!="symbol"?e+"":e,t),t);function He(){}function Zw(i,e){for(const t in e)i[t]=e[t];return i}function Xw(i){return i&&typeof i=="object"&&typeof i.then=="function"}function F_(i){return i()}function Hf(){return Object.create(null)}function Ze(i){i.forEach(F_)}function bi(i){return typeof i=="function"}function At(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Xr;function Xe(i,e){return Xr||(Xr=document.createElement("a")),Xr.href=e,i===Xr.href}function $w(i){return Object.keys(i).length===0}function Oo(i,...e){if(i==null)return He;const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function ol(i){let e;return Oo(i,t=>e=t)(),e}function wi(i,e,t){i.$$.on_destroy.push(Oo(e,t))}function U_(i,e,t,n){if(i){const l=z_(i,e,t,n);return i[0](l)}}function z_(i,e,t,n){return i[1]&&n?Zw(t.ctx.slice(),i[1](n(e))):t.ctx}function B_(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const a=[],r=Math.max(e.dirty.length,l.length);for(let o=0;o<r;o+=1)a[o]=e.dirty[o]|l[o];return a}return e.dirty|l}return e.dirty}function H_(i,e,t,n,l,a){if(l){const r=z_(e,t,n,a);i.p(r,l)}}function W_(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ei(i){return i??""}function q_(i){return i&&bi(i.destroy)?i.destroy:He}function w(i,e){i.appendChild(e)}function A(i,e,t){i.insertBefore(e,t||null)}function L(i){i.parentNode&&i.parentNode.removeChild(i)}function ct(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function S(i){return document.createElement(i)}function xw(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function H(){return Le(" ")}function Ce(){return Le("")}function ne(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Pt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function Ut(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function e2(i){return Array.from(i.childNodes)}function Ae(i,e){e=""+e,i.wholeText!==e&&(i.data=e)}function Wf(i,e){i.value=e??""}function Vn(i,e,t,n){t===null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function jt(i,e,t){i.classList[t?"add":"remove"](e)}function t2(i,e,{bubbles:t=!1,cancelable:n=!1}={}){const l=document.createEvent("CustomEvent");return l.initCustomEvent(i,t,n,e),l}class ha{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=xw(t.nodeName):this.e=S(t.nodeName),this.t=t,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)A(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(L)}}let Wa;function zi(i){Wa=i}function hl(){if(!Wa)throw new Error("Function called outside component initialization");return Wa}function Gn(i){hl().$$.before_update.push(i)}function xt(i){hl().$$.on_mount.push(i)}function ja(i){hl().$$.after_update.push(i)}function Ja(i){hl().$$.on_destroy.push(i)}function Jt(){const i=hl();return(e,t,{cancelable:n=!1}={})=>{const l=i.$$.callbacks[e];if(l){const a=t2(e,t,{cancelable:n});return l.slice().forEach(r=>{r.call(i,a)}),!a.defaultPrevented}return!0}}function za(i,e){return hl().$$.context.set(i,e),e}function vt(i){return hl().$$.context.get(i)}function Dl(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Ha=[],Je=[],es=[],Ao=[],n2=Promise.resolve();let Eo=!1;function i2(){Eo||(Eo=!0,n2.then(Fo))}function Ro(i){es.push(i)}function mt(i){Ao.push(i)}const To=new Set;let $r=0;function Fo(){const i=Wa;do{for(;$r<Ha.length;){const e=Ha[$r];$r++,zi(e),l2(e.$$)}for(zi(null),Ha.length=0,$r=0;Je.length;)Je.pop()();for(let e=0;e<es.length;e+=1){const t=es[e];To.has(t)||(To.add(t),t())}es.length=0}while(Ha.length);for(;Ao.length;)Ao.pop()();Eo=!1,To.clear(),zi(i)}function l2(i){if(i.fragment!==null){i.update(),Ze(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ro)}}const ts=new Set;let Vl;function ke(){Vl={r:0,c:[],p:Vl}}function Se(){Vl.r||Ze(Vl.c),Vl=Vl.p}function R(i,e){i&&i.i&&(ts.delete(i),i.i(e))}function U(i,e,t,n){if(i&&i.o){if(ts.has(i))return;ts.add(i),Vl.c.push(()=>{ts.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function is(i,e){const t=e.token={};function n(l,a,r,o){if(e.token!==t)return;e.resolved=o;let c=e.ctx;r!==void 0&&(c=c.slice(),c[r]=o);const g=l&&(e.current=l)(c);let d=!1;e.block&&(e.blocks?e.blocks.forEach((h,p)=>{p!==a&&h&&(ke(),U(h,1,1,()=>{e.blocks[p]===h&&(e.blocks[p]=null)}),Se())}):e.block.d(1),g.c(),R(g,1),g.m(e.mount(),e.anchor),d=!0),e.block=g,e.blocks&&(e.blocks[a]=g),d&&Fo()}if(Xw(i)){const l=hl();if(i.then(a=>{zi(l),n(e.then,1,e.value,a),zi(null)},a=>{if(zi(l),n(e.catch,2,e.error,a),zi(null),!e.hasCatch)throw a}),e.current!==e.pending)return n(e.pending,0),!0}else{if(e.current!==e.then)return n(e.then,1,e.value,i),!0;e.resolved=i}}function G_(i,e,t){const n=e.slice(),{resolved:l}=i;i.current===i.then&&(n[i.value]=l),i.current===i.catch&&(n[i.error]=l),i.block.p(n,t)}const gl=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function bt(i,e,t,n){const l=i.$$.props[e];l!==void 0&&(i.$$.bound[l]=t,n===void 0&&t(i.$$.ctx[l]))}function Ue(i){i&&i.c()}function Oe(i,e,t,n){const{fragment:l,after_update:a}=i.$$;l&&l.m(e,t),n||Ro(()=>{const r=i.$$.on_mount.map(F_).filter(bi);i.$$.on_destroy?i.$$.on_destroy.push(...r):Ze(r),i.$$.on_mount=[]}),a.forEach(Ro)}function Fe(i,e){const t=i.$$;t.fragment!==null&&(Ze(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function a2(i,e){i.$$.dirty[0]===-1&&(Ha.push(i),i2(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Dt(i,e,t,n,l,a,r,o=[-1]){const c=Wa;zi(i);const g=i.$$={fragment:null,ctx:[],props:a,update:He,not_equal:l,bound:Hf(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Hf(),dirty:o,skip_bound:!1,root:e.target||c.$$.root};r&&r(g.root);let d=!1;if(g.ctx=t?t(i,e.props||{},(h,p,...b)=>{const m=b.length?b[0]:p;return g.ctx&&l(g.ctx[h],g.ctx[h]=m)&&(!g.skip_bound&&g.bound[h]&&g.bound[h](m),d&&a2(i,h)),p}):[],g.update(),d=!0,Ze(g.before_update),g.fragment=n?n(g.ctx):!1,e.target){if(e.hydrate){const h=e2(e.target);g.fragment&&g.fragment.l(h),h.forEach(L)}else g.fragment&&g.fragment.c();e.intro&&R(i.$$.fragment),Oe(i,e.target,e.anchor,e.customElement),Fo()}zi(c)}class Vt{$destroy(){Fe(this,1),this.$destroy=He}$on(e,t){if(!bi(t))return He;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!$w(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}class r2{constructor(){this.handles={},this.keyExistencyTimeout=2e4,this.keyExistencyCheckInterval=50}wrapAsPromise(e){return new Promise(t=>{t(e)})}applyFunctionPromisified(e,t){return e=e.apply(this,t),le.isPromise(e)?e:this.wrapAsPromise(e)}getConfigValueFromObjectAsync(e,t,...n){let l=le.getConfigValueFromObject(e,t);return le.isFunction(l)?this.applyFunctionPromisified(l,n):this.wrapAsPromise(l)}}const ls=new r2;class s2{convertCustomMessageInternalToUser(e){return e.data}convertCustomMessageUserToInternal(e){return{msg:"custom",data:e}}}const as=new s2;class o2{constructor(){this.dataManagement=new Map}setChildren(e,t){this.dataManagement.set(e,t),this.navPath=""}getChildren(e){return e?this.dataManagement.get(e):{}}hasChildren(e){const t=this.getChildren(e);return t&&t.hasOwnProperty("children")}setRootNode(e){this.dataManagement.set("_luigiRootNode",{node:e})}getRootNode(){return this.dataManagement.get("_luigiRootNode")}hasRootNode(){return!!this.getRootNode()}deleteCache(){this.dataManagement.clear()}deleteNodesRecursively(e){if(this.hasChildren(e)){let t=this.getChildren(e).children;for(let n=0;n<t.length;n++)this.deleteNodesRecursively(t[n])}this.dataManagement.delete(e)}}const qn=new o2;let u2=class{constructor(){this.configReadyCallback=function(){},this.initialized=!1,this.USER_SETTINGS_KEY="luigi.preferences.userSettings"}setConfigCallbacks(e){this.configReadyCallback=e}async setConfig(e){this.config=e,window.Luigi._store.update(()=>({config:e})),this._configModificationTimestamp=new Date,this.initialized||(this.initialized=!0,this.configReadyCallback().then(async()=>{q2.luigiAfterInit(),await this.executeConfigFnAsync("lifecycleHooks.luigiAfterInit")}))}getConfig(){return this.config}configChanged(...e){const t=dn.optimizeScope(e);t.length>0?t.forEach(n=>{window.Luigi._store.fire(n,{current:window.Luigi._store})}):window.Luigi._store.update(n=>n)}setErrorMessage(e){var t=document.createTextNode(e),n=document.createElement("div");n.setAttribute("class","fd-ui"),n.setAttribute("style","text-align: center;");var l=document.createElement("div");l.setAttribute("class","fd-message-strip fd-message-strip--error"),l.setAttribute("style","max-width: 800px; display: inline-block; margin-top: 40px;"),l.appendChild(t),n.appendChild(l),Bi.getLuigiContainer().appendChild(n)}getConfigValue(e){return le.getConfigValueFromObject(this.getConfig(),e)}getConfigBooleanValue(e){const t=le.getConfigValueFromObject(this.getConfig(),e);return t===!0||t==="true"}getConfigValueAsync(e,...t){return ls.getConfigValueFromObjectAsync(this.getConfig(),e,t)}async executeConfigFnAsync(e,t=!1,...n){const l=this.getConfigValue(e);if(le.isFunction(l))try{return await ls.applyFunctionPromisified(l,n)}catch(a){if(t)return Promise.reject(a)}return Promise.resolve(void 0)}isAuthorizationEnabled(){return pi.isAuthorizationEnabled()}unload(){this.initialized=!1,fn.unload(),Mn.removeAllEventListeners();const e=Bi.getLuigiContainer();for(;e.firstChild;)e.removeChild(e.lastChild)}async readUserSettings(){const e=await this.getConfigValueAsync("userSettings"),t=e||await this.getConfigValueAsync("settings.userSettings");if(t&&le.isFunction(t.readUserSettings))return t.readUserSettings();const n=localStorage.getItem(this.USER_SETTINGS_KEY);return n&&JSON.parse(n)}async storeUserSettings(e,t){const n=await this.getConfigValueAsync("userSettings"),l=n||await this.getConfigValueAsync("settings.userSettings");if(l&&le.isFunction(l.storeUserSettings))return l.storeUserSettings(e,t);localStorage.setItem(this.USER_SETTINGS_KEY,JSON.stringify(e)),this.configChanged()}reset(){const e=this.getConfig();this.unload(),this.setConfig(e)}clearNavigationCache(){qn.deleteCache();const e=t=>{t&&t.forEach&&t.forEach(n=>{n.titleResolver&&n.titleResolver._cache&&(n.titleResolver._cache=void 0),n.children&&e(n.children)})};e(this.getConfig().navigation.nodes)}setGlobalContext(e,t){this.config&&this.config.navigation&&(this.config.navigation.globalContext=e,t||this.configChanged("navigation"))}getGlobalContext(){var e,t;return((t=(e=this.config)==null?void 0:e.navigation)==null?void 0:t.globalContext)||{}}};const rs=new u2;let f2=class{constructor(){}isAuthorizationEnabled(){return!!re.getConfigValue("auth.use")}login(){this.isAuthorizationEnabled()&&fn.startAuthorization()}logout(){this.isAuthorizationEnabled()&&fn.logout()}async handleAuthEvent(e,t,n,l){const a=await re.executeConfigFnAsync("auth.events."+e,!1,t,n);let r=a===void 0||!!a;if(r&&l){window.location.href=l;return}return r}get store(){return re.initialized||console.warn("Luigi Core is not initialized yet. Consider moving your code to the luigiAfterInit lifecycle hook. Documentation: https://docs.luigi-project.io/docs/lifecycle-hooks"),{getStorageKey:()=>ui.getStorageKey(),getStorageType:()=>ui.getStorageType(),getAuthData:()=>ui.getAuthData(),setAuthData:e=>ui.setAuthData(e),removeAuthData:()=>ui.removeAuthData(),setNewlyAuthorized:()=>ui.setNewlyAuthorized()}}};const K_=new f2,rn={desktopMinWidth:600},c2=[{type:"main",selector:".iframeContainer iframe"},{type:"split-view",selector:".iframeSplitViewCnt iframe"},{type:"modal",selector:".iframeModalCtn._modal iframe"},{type:"drawer",selector:".iframeModalCtn._drawer iframe"},{type:"user-settings",selector:".iframeUserSettingsCtn iframe"}],d2={cssSelector:"[luigi-app-root]"},h2={cssSelector:"[luigi-app-loading-indicator]"};let g2=class{getLuigiContainer(){return this.getCustomLuigiContainer()||this.getDefaultLuigiContainer()}isCustomLuigiContainer(){return this.getLuigiContainer()===this.getCustomLuigiContainer()}getCustomLuigiContainer(){return document.querySelector(d2.cssSelector)}getDefaultLuigiContainer(){return document.querySelector("body")}getShellbar(){return document.getElementsByClassName("lui-shellbar-wrapper")[0]}getShellbarActions(){return document.getElementsByClassName("lui-shellbar_group--actions")[0]}getMicrofrontends(){return Ee.getMicrofrontendsInDom()}getMicrofrontendIframes(){return Ee.getMicrofrontendIframes()}getCurrentMicrofrontendIframe(){return Ee.getCurrentMicrofrontendIframe()}getNavFooterContainer(){return document.getElementsByClassName("lui-side-nav__footer")[0]}};const j_=new g2;class _2{constructor(){this.promises={}}setPromise(e,t){this.promises[e]=t}getPromise(e){return this.promises[e]}}class xn extends _2{constructor(e){super(),Object.assign(this,e),this.options={preserveView:!1,nodeParams:{},errorSkipNavigation:!1,fromContext:null,fromClosestContext:!1,relative:!1,link:""}}async navigate(e,t,n,l,a){if(this.options.errorSkipNavigation)return this.options.errorSkipNavigation=!1,Promise.reject(new Error("navigation skipped"));this.options.preserveView=t;const r=e[0]!=="/";if(e==="/"&&(n||l||a))return console.warn("Navigation with an absolute path prevented."),Promise.reject(new Error("Navigation with an absolute path prevented."));const o=le.createRemotePromise(),c={msg:"luigi.navigation.open",params:Object.assign(this.options,{link:e,relative:r,modal:n,splitView:l,drawer:a}),remotePromiseId:o.id};return this.sendPostMessageToLuigiCore(c),o}openAsModal(e,t={},n){if(le.isFunction(n)){const l=le.createRemotePromise();l.then(a=>{n(a)}),t.onClosePromiseId=l.id}return this.navigate(e,!0,t)}openAsDrawer(e,t={}){return this.navigate(e,!0,void 0,void 0,t)}openAsSplitView(e,t={}){return this.navigate(e,!0,void 0,t),Luigi.splitView.splitViewHandle}fromContext(e){return this.options.fromContext=e,this}fromClosestContext(){return this.options.fromContext=null,this.options.fromClosestContext=!0,this}fromVirtualTreeRoot(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!0,this}withParams(e){return e&&Object.assign(this.options.nodeParams,e),this}pathExists(e){if(le.isFunction(Luigi.pathExists))return Luigi.pathExists(e);console.error("Luigi.navigation().pathExists(path) is only available inside your configuration, after the configuration was initialized with Luigi.setConfig().")}hasBack(){return Luigi.hasBack()}goBack(e){this.sendPostMessageToLuigiCore({msg:"luigi.navigation.back",goBackContext:e&&JSON.stringify(e)})}sendPostMessageToLuigiCore(e){window.postMessage(e,"*")}}class p2{constructor(){}updateTopNavigation(){window.postMessage({msg:"luigi.navigation.update-badge-counters"},"*")}navigate(e,t,n,l,a){return new xn().navigate(e,t,n,l,a)}openAsModal(e,t,n){return new xn().openAsModal(e,t,n)}openAsSplitView(e,t={}){if(e==="/"){console.warn("Navigation with an absolute path prevented.");return}return new xn().openAsSplitView(e,t)}openAsDrawer(e,t){return new xn().openAsDrawer(e,t)}fromContext(e){return new xn().fromContext(e)}fromClosestContext(){return new xn().fromClosestContext()}fromVirtualTreeRoot(){return new xn().fromVirtualTreeRoot()}withParams(e){return new xn().withParams(e)}pathExists(e){return new xn().pathExists(e)}hasBack(){return new xn().hasBack()}goBack(e){return new xn().goBack(e)}}const J_=new p2,m2={luigi:{unsavedChangesAlert:{header:"Unsaved changes detected",body:"Unsaved changes will be lost. Do you want to continue?"},confirmationModal:{header:"Confirmation",body:"Are you sure you want to do this?"},button:{dismiss:"No",confirm:"Yes"},requestedRouteNotFound:"Could not find the requested route {route}.",notExactTargetNode:"Could not map the exact target node for the requested route {route}.",navigation:{up:"Up"}}},b2=m2;class v2{constructor(){this.currentLocaleStorageKey="luigi.currentLocale",this.defaultLocale="en",this.translationTable=b2,this.listeners={}}_init(){dn.doOnStoreChange(window.Luigi._store,()=>{this._initCustomImplementation()},["settings"])}getCurrentLocale(){return sessionStorage.getItem(this.currentLocaleStorageKey)||this.defaultLocale}setCurrentLocale(e){e&&(sessionStorage.setItem(this.currentLocaleStorageKey,e),this._notifyLocaleChange(e))}addCurrentLocaleChangeListener(e){if(le.isFunction(e)){const t=le.getRandomId();return this.listeners[t]=e,t}else console.error("Provided locale change listener is not a function.")}removeCurrentLocaleChangeListener(e){e&&this.listeners[e]?delete this.listeners[e]:console.error("Unable to remove locale change listener - no listener registered for given ID.")}_notifyLocaleChange(e){Object.getOwnPropertyNames(this.listeners).forEach(t=>{this.listeners[t](e)}),rs.configChanged()}_initCustomImplementation(){this.translationImpl=rs.getConfigValue("settings.customTranslationImplementation"),le.isFunction(this.translationImpl)&&(this.translationImpl=this.translationImpl())}getTranslation(e,t=void 0,n=void 0){if(!e)return"";if(this.translationImpl){const a=this.translationImpl.getTranslation(e,t,n);if(a!==e)return a}const l=this.findTranslation(e,this.translationTable,t);return l||e}findTranslation(e,t,n){let l=e.split(".");for(let a=0;a<l.length;a++){let r=l[a];if(t.hasOwnProperty(r)&&typeof t[r]=="object")t=t[r];else return n?this.findInterpolations(t[r],n):t[r]}}findInterpolations(e,t){return typeof e!="string"||!e.trim()||Object.keys(t).forEach(n=>{e=e.replace(new RegExp("{"+da.escapeKeyForRegexp(n)+"}","gi"),t[n])}),e}}const Y_=new v2;class w2{sendToAll(e){const t=as.convertCustomMessageUserToInternal(e);Ee.getMicrofrontendsInDom().map(n=>n.container).map(n=>Ee.sendMessageToIframe(n,t))}send(e,t){const n=as.convertCustomMessageUserToInternal(t);Ee.getMicrofrontendsInDom().filter(l=>l.id===e).map(l=>l.container).map(l=>Ee.sendMessageToIframe(l,n))}}const k2=new w2,ra=[];function S2(i,e){return{subscribe:fa(i,e).subscribe}}function fa(i,e=He){let t;const n=new Set;function l(o){if(At(i,o)&&(i=o,t)){const c=!ra.length;for(const g of n)g[1](),ra.push(g,i);if(c){for(let g=0;g<ra.length;g+=2)ra[g][0](ra[g+1]);ra.length=0}}}function a(o){l(o(i))}function r(o,c=He){const g=[o,c];return n.add(g),n.size===1&&(t=e(l)||He),o(i),()=>{n.delete(g),n.size===0&&(t(),t=null)}}return{set:l,update:a,subscribe:r}}class C2{initial(){this.responsiveNavSetting=re.getConfigValue("settings.responsiveNavigation");const e=this.responsiveNavSetting==="semiCollapsible"||this.responsiveNavSetting==="Fiori3";JSON.parse(localStorage.getItem(oe.COL_NAV_KEY))!==!1&&e&&(this.isSemiCollapsed=this.getCollapsed()),this.semiCollapsible=!!e;let t=this.isSemiCollapsed===void 0;return this.semiCollapsible&&window.innerWidth!==0&&window.innerWidth<rn.desktopMinWidth?this.isSemiCollapsed=t?!0:this.getCollapsed():this.isSemiCollapsed=t?!1:this.getCollapsed(),this.setCollapsed(this.isSemiCollapsed),this.previousWindowWidth=window.innerWidth,{isSemiCollapsed:this.isSemiCollapsed,semiCollapsible:this.semiCollapsible}}onValueChanged(e){this.valueChangedFns?this.valueChangedFns.push(e):this.valueChangedFns=[e]}onResize(e){const t=window.innerWidth!==0&&window.innerWidth<rn.desktopMinWidth&&this.previousWindowWidth>=rn.desktopMinWidth,n=window.innerWidth!==0&&window.innerWidth>rn.desktopMinWidth&&this.previousWindowWidth>=rn.desktopMinWidth;return t&&this.setCollapsed(!0,!1),!this.isStoredCollapsed()&&n&&this.setCollapsed(!1,!1),e=this.closePopupMenu(e),{isSemiCollapsed:this.isSemiCollapsed,selectedCategory:e}}setCollapsed(e,t=!0){document.body.classList.remove("semiCollapsed"),e&&document.body.classList.add("semiCollapsed"),this.isSemiCollapsed=e,t&&localStorage.setItem(oe.COL_NAV_KEY,e),this.valueChangedFns instanceof Array&&this.valueChangedFns.forEach(n=>n({isSemiCollapsed:this.isSemiCollapsed}))}isStoredCollapsed(){return JSON.parse(localStorage.getItem(oe.COL_NAV_KEY))}getCollapsed(){return this.isStoredCollapsed()?!0:this.isSemiCollapsed}closePopupMenu(e){var t;return e&&(e=null,(t=document.getElementsByClassName("fd-app__sidebar")[0])==null||t.classList.remove("isBlocked")),e}buttonClicked(e){return this.closePopupMenu(),this.getCollapsed()?this.setCollapsed(!1):(this.setCollapsed(!0),document.getElementsByClassName("lui-fd-side-nav-wrapper")[0]&&(document.getElementsByClassName("lui-fd-side-nav-wrapper")[0].setAttribute("style","overflow-y:hidden;"),window.setTimeout(function(){document.getElementsByClassName("lui-fd-side-nav-wrapper")[0].setAttribute("style","overflow-y:auto;")}))),this.isSemiCollapsed}}const _i=new C2;let y2=class{constructor(){this.documentTitle=fa()}hideAppLoadingIndicator(){const e=document.querySelector(h2.cssSelector);e&&(e.classList.add("hidden"),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e)},500))}showAlert(e){if(le.isFunction(Luigi.showAlert))return Luigi.showAlert(e);console.error("Luigi.ux().showAlert() is only available inside your configuration, after the configuration was initialized with Luigi.setConfig().")}showConfirmationModal(e){if(le.isFunction(Luigi.showConfirmationModal))return Luigi.showConfirmationModal(e);console.error("Luigi.ux().showConfirmationModal() is only available inside your configuration, after the configuration was initialized with Luigi.setConfig().")}setDocumentTitle(e){this.documentTitle.set(e),Luigi.configChanged("settings.header")}getDocumentTitle(){return ol(this.documentTitle)}collapseLeftSideNav(e){_i.setCollapsed(e)}openUserSettings(){Luigi.openUserSettings()}closeUserSettings(){Luigi.closeUserSettings()}removeBackdrop(){new xn().sendPostMessageToLuigiCore({msg:"luigi.remove-backdrop"})}getDirtyStatus(){return Luigi.getDirtyStatus()}};const Q_=new y2;let P2=class{openSearchField(){Luigi.openSearchField()}closeSearchField(){Luigi.closeSearchField()}clearSearchField(){Luigi.clearSearchField()}showSearchResult(e){Luigi.showSearchResult(e)}closeSearchResult(){Luigi.closeSearchResult()}getSearchString(){return Luigi.getGlobalSearchString()}setSearchString(e){Luigi.setGlobalSearchString(e)}setSearchInputPlaceholder(e){Luigi.setSearchInputPlaceholder(e)}};const Z_=new P2;let N2=class{constructor(){this.currentTheme}async getAvailableThemes(){return await re.getConfigValueAsync("settings.theming.themes")}setCurrentTheme(e){this.currentTheme=e,window.Luigi.__cssVars=void 0}async getThemeObject(e){const t=await this.getAvailableThemes();return t&&t.find(n=>n.id===e)}getCurrentTheme(){if(!this.isThemingAvailable())return!1;if(this.currentTheme)return this.currentTheme;const e=re.getConfigValue("settings.theming");return e.defaultTheme||console.error("[Theming] getCurrentTheme() error. No theme set and no defaultTheme found in configuration",e),e.defaultTheme}isThemingAvailable(){return!!re.getConfigValue("settings.theming")}async getCSSVariables(){if(!window.Luigi.__cssVars){const e=re.getConfigValue("settings.theming.variables.file");if(e)try{const t=await fetch(e);window.Luigi.__cssVars=(await t.json()).root,Object.keys(window.Luigi.__cssVars).forEach(n=>{const l=getComputedStyle(document.documentElement).getPropertyValue("--"+n);l&&(window.Luigi.__cssVars[n]=l)})}catch(t){le.isFunction(re.getConfigValue("settings.theming.variables.errorHandling"))?re.getConfigValue("settings.theming.variables.errorHandling")(t):console.error("CSS variables file error: ",t)}else re.getConfigValue("settings.theming.variables")==="fiori"&&window.__luigiThemeVars?(window.Luigi.__cssVars={},window.__luigiThemeVars.forEach(t=>{window.Luigi.__cssVars[t]=getComputedStyle(document.documentElement).getPropertyValue("--"+t)})):window.Luigi.__cssVars={}}return window.Luigi.__cssVars}_init(){const e=()=>{const t=re.getConfigValue("settings.theming");t&&t.nodeViewURLDecorator&&t.nodeViewURLDecorator.queryStringParameter&&Ga.add({type:"queryString",uid:"theming",key:t.nodeViewURLDecorator.queryStringParameter.keyName,valueFn:()=>{const n=this.getCurrentTheme(),l=t.nodeViewURLDecorator.queryStringParameter.value;return l?l(n):n}}),t&&t.useFioriScrollbars===!0&&document.body.classList.add("fioriScrollbars")};dn.doOnStoreChange(window.Luigi._store,()=>{e()},["settings.theming"])}};const X_=new N2;let T2=class{constructor(){this.featureToggleList=fa([])}setFeatureToggle(e,t=!1){this.isValid(e)&&(e.startsWith("!")&&!t||this.isDuplicatedOrDisabled(e)||ol(this.featureToggleList).push(e))}unsetFeatureToggle(e){if(!this.isValid(e))return;const t=ol(this.featureToggleList).indexOf(e);if(t===-1){console.warn("Feature toggle name is not in the list.");return}ol(this.featureToggleList).splice(t,1)}getActiveFeatureToggleList(){return[...ol(this.featureToggleList)].filter(e=>!e.startsWith("!"))}isValid(e){return le.isString(e)?!0:(console.warn("Feature toggle name is not valid or not of type 'string'"),!1)}isDuplicatedOrDisabled(e){return ol(this.featureToggleList).includes(e)?(console.warn("Feature toggle name already exists"),!0):ol(this.featureToggleList).includes(`!${e}`)?(console.warn("Disabled feature toggle can not be activated"),!0):!1}};const $_=new T2;let I2=class{constructor(){}getSearchParams(){const e={},t=new URL(location);if(re.getConfigValue("routing.useHashRouting"))for(const[n,l]of new URLSearchParams(t.hash.split("?")[1]))e[n]=l;else for(const[n,l]of t.searchParams.entries())e[n]=l;return e}addSearchParams(e,t){if(!le.isObject(e)){console.log("Params argument must be an object");return}const n=new URL(location);re.getConfigValue("routing.useHashRouting")?n.hash=we.addParamsOnHashRouting(e,n.hash):we.modifySearchParams(e,n.searchParams),this.handleBrowserHistory(t,n),re.configChanged()}addNodeParams(e,t){if(!le.isObject(e)){console.log("Params argument must be an object");return}const n=we.getContentViewParamPrefix(),l=new URL(location);re.getConfigValue("routing.useHashRouting")?l.hash=we.addParamsOnHashRouting(e,l.hash,n):we.modifySearchParams(e,l.searchParams,n),this.handleBrowserHistory(t,l),re.configChanged()}sanitizeUrl(e){return new URL(location).origin===new URL(e).origin?e:void 0}handleBrowserHistory(e,t){const n=this.sanitizeUrl(t.href);if(!n){console.warn("invalid url: "+n);return}e?window.history.pushState({},"",n):window.history.replaceState({},"",n)}getAnchor(){const{hash:e}=new URL(location);return re.getConfigValue("routing.useHashRouting")&&e.split("#").length===2?"":e.split("#").pop()}setAnchor(e){if(re.getConfigValue("routing.useHashRouting")){const{hash:t}=new URL(location),n=t.split("#"),a=n.length>2?n.slice(0,-1):n;window.location.hash=[...a,e].join("#")}else window.location.hash=e}};const x_=new I2,re=rs,pi=K_,Bi=j_,ep=J_,St=Y_,Ya=Q_,L2=Z_,Do=X_,Uo=$_,ul=x_;window.Luigi=rs;window.Luigi.auth=()=>K_;window.Luigi.elements=()=>j_;window.Luigi.navigation=()=>J_;window.Luigi.i18n=()=>Y_;window.Luigi.customMessages=()=>k2;window.Luigi.ux=()=>Q_;window.Luigi.globalSearch=()=>Z_;window.Luigi.theming=()=>X_;window.Luigi.featureToggles=()=>$_;window.Luigi.routing=()=>x_;class A2{constructor(){this.iframeNavFallbackTimeout=2e3,this.timeoutHandle}getActiveIframe(e){return[...e.children].filter(n=>n.tagName==="IFRAME").find(le.isElementVisible)}setActiveIframeToPrevious(e){const t=Ee.getMainIframes(),n=this.getPreservedViewsInDom(t);if(n.length===0)return;const l=this.getActiveIframe(e);Ee.hideElementChildren(e),l&&e.removeChild(l),n[0].pv=void 0,n[0].style.display="block"}removeInactiveIframes(e){Array.from(e.children).forEach(n=>{!le.isElementVisible(n)&&!n.vg&&n.tagName==="IFRAME"&&e.removeChild(n)})}hasIsolatedView(e,t,n){return e||n&&e!==!1&&!t}getPreservedViewsInDom(e){return e.filter(t=>t.pv)}canCache(e){const t=oe.getViewGroupSettings(e);return t&&t.preloadUrl}notifyInactiveIframes(){const e={msg:"luigi-client.inactive-microfrontend",context:JSON.stringify({}),nodeParams:JSON.stringify({}),pathParams:JSON.stringify({}),internal:JSON.stringify({currentLocale:St.getCurrentLocale()})};Ee.sendMessageToVisibleIframes(e)}switchActiveIframe(e,t,n){const l=this.getActiveIframe(e);if(l!==t){let a=!1;Array.from(e.children).forEach(o=>{if(o===l)if(n)e.removeChild(o);else{const c=oe.getViewGroupSettings(o.vg);if(c&&this.notifyInactiveIframes(),o.style.display="none",c.preloadUrl){const g={msg:"luigi.navigate",viewUrl:c.preloadUrl,context:JSON.stringify({}),nodeParams:JSON.stringify({}),pathParams:JSON.stringify({}),internal:JSON.stringify({currentLocale:St.getCurrentLocale()})};Ee.sendMessageToIframe(o,g)}}o===t&&(a=!0)}),t&&(t.style.display="block",a||e.insertBefore(t,e.firstChild))}return t}setOkResponseHandler(e,t,n){this.timeoutHandle=setTimeout(async()=>{e.navigateOk?e.navigateOk=void 0:(Ee.removeIframe(e.iframe,n),e.iframe=void 0,e.isFallbackFrame=!0,console.info("navigate: luigi-client did not respond, using fallback by replacing iframe"),await this.navigateIframe(e,t,n))},this.iframeNavFallbackTimeout)}checkIframe(e,t,n,l,a){this.timeoutHandle=setTimeout(()=>{t.get().showLoadingIndicator&&(e.viewUrl?(n=e.viewUrl,t.set({viewUrl:n}),this.iframeNavFallbackTimeout=0,this.setOkResponseHandler(l,t,a)):oe.handleUnresponsiveClient(e))},e.timeout)}initHandshakeFailed(e){if(!(e&&e.iframe&&e.iframe.luigi))return!0;const t=e.iframe.luigi.clientVersion;return e.iframe.luigi.initOk===void 0?!0:!t||le.semverCompare("1.1.1",t)!==-1?!1:!e.iframe.luigi.initOk}async navigateIframe(e,t,n){clearTimeout(this.timeoutHandle);const l=t.get();let a=l.viewUrl;a&&(a=we.substituteViewUrl(a,l));const r=Ee.isSameViewGroup(e,t),o=this.hasIsolatedView(l.previousNodeValues.isolateView,r,e.isolateAllViews),c=this.hasIsolatedView(l.isolateView,r,e.isolateAllViews),g=Ee.canReuseIframe(e,t);let d=this.getActiveIframe(n);const h=Ee.getMainIframes(),p=this.getPreservedViewsInDom(h);let b,m=!1;if(p.length>0&&(b=p.shift(),b===d&&(m=!0,d=void 0,e.iframe=void 0)),!m&&!t.get().isNavigateBack){d&&o&&(d=this.switchActiveIframe(n,void 0,!0)),d&&c&&(d=this.switchActiveIframe(n,void 0,!d.vg));let v;if(!c&&l.viewGroup){const y=Ee.getMainIframes().filter(P=>P.vg===l.viewGroup);y.length>0&&(v=y[0],d=this.switchActiveIframe(n,v,d&&!d.vg))}d&&!v&&(d.vg?d=this.switchActiveIframe(n,void 0,!1):g||(d=this.switchActiveIframe(n,void 0,!0))),e.iframe=d}if(!e.iframe||this.initHandshakeFailed(e)){if(e.iframe&&n.removeChild(e.iframe),m?(this.notifyInactiveIframes(),Ee.hideElementChildren(n)):Ee.removeElementChildren(n),l.viewUrl){le.getConfigValueFromObject(l,"currentNode.loadingIndicator.enabled")!==!1?t.set({showLoadingIndicator:!0}):t.set({showLoadingIndicator:!1}),e.navigateOk=void 0;const v=l.viewGroup&&!c&&this.canCache(l.viewGroup);e.iframe=Ee.createIframe(a,v?l.viewGroup:void 0,t.get().currentNode,"main",l),n.insertBefore(e.iframe,n.firstChild),e.builderCompatibilityMode?e.iframe.addEventListener("load",()=>{e.iframe._ready=!0;const y=["init",JSON.stringify(l.context)];Ee.sendMessageToIframe(e.iframe,y)}):e.iframe.addEventListener("load",()=>{e.iframe._ready=!0});const C=l.currentNode.pageErrorHandler;C?this.checkIframe(C,t,a,e,n):e.defaultPageErrorHandler&&this.checkIframe(e.defaultPageErrorHandler,t,a,e,n)}}else{t.set({showLoadingIndicator:!1});const v=t.get().goBackContext;e.iframe.style.display="block",e.iframe.luigi.nextViewUrl=a,e.iframe.luigi.nextClientPermissions=t.get().currentNode.clientPermissions,e.iframe.vg=this.canCache(l.viewGroup)?l.viewGroup:void 0,e.iframe.luigi.currentNode=l.currentNode;const C=await t.prepareInternalData(e),y={msg:"luigi.navigate",viewUrl:a,context:JSON.stringify(Object.assign({},l.context,{goBackContext:v})),nodeParams:JSON.stringify(Object.assign({},l.nodeParams)),pathParams:JSON.stringify(Object.assign({},l.pathParams)),searchParams:JSON.stringify(Object.assign({},we.prepareSearchParamsForClient(e.iframe.luigi.currentNode))),internal:JSON.stringify(C)};l.isNavigationSyncEnabled?(Ee.getVisibleIframes().forEach(T=>{T!==e.iframe&&(T.userSettingsGroup?Luigi.readUserSettings().then(E=>{Ee.sendMessageToIframe(T,{msg:"luigi.navigate",context:{userSettingsData:E[T.userSettingsGroup]},internal:Ee.applyCoreStateData(T.luigi._lastUpdatedMessage.internal)})}):Ee.sendMessageToIframe(T,{msg:"luigi.navigate",context:T.luigi._lastUpdatedMessage.context,nodeParams:T.luigi._lastUpdatedMessage.nodeParams,pathParams:JSON.stringify(Object.assign({},T.luigi.pathParams)),searchParams:JSON.stringify(Object.assign({},we.prepareSearchParamsForClient(e.iframe.luigi.currentNode))),internal:Ee.applyCoreStateData(T.luigi._lastUpdatedMessage.internal)}))}),Ee.sendMessageToIframe(e.iframe,y),this.setOkResponseHandler(e,t,n)):t.set({isNavigationSyncEnabled:!0}),t.set({goBackContext:void 0,isNavigateBack:!1})}}}const oi=new A2;class E2{constructor(){this.preloadBatchSize=1,this.shouldPreload=!1}preloadViewGroups(e=3,t){if(re.getConfigValue("navigation.preloadViewGroups")===!1)return;const l=oe.getAllViewGroupSettings();if(!l)return;const a=Ee.getIframeContainer(),r=Ee.getMainIframes(),o=new Date().getTime();if(r.filter(h=>h.luigi&&h.luigi.preloading&&o-h.luigi.createdAt<3e4).length>0){console.debug("skipping view group preloading (busy)");return}const g=r.map(h=>h.vg).filter(Boolean),d=Object.entries(l).filter(([h,p])=>!g.includes(h)).filter(([h,p])=>p&&p.preloadUrl);t&&d.forEach(([h,p])=>{p.loadOnStartup&&this.preloadIframeOnBackground(p,h,a)}),!t&&d.filter((h,p)=>p<e).forEach(([h,p])=>{console.debug("preloading view group "+h+" - "+p.preloadUrl),this.preloadIframeOnBackground(p,h,a)})}preloadIframeOnBackground(e,t,n){const l=Ee.createIframe(e.preloadUrl,t,null,"main");l.style.display="none",l.luigi.preloading=!0,n.appendChild(l)}preload(e){this.shouldPreload&&setTimeout(()=>{this.preloadViewGroups(this.preloadBatchSize,e)},e),this.shouldPreload=!0}viewGroupLoaded(e){if(e.luigi.preloading){const t=new Date().getTime()-e.luigi.createdAt;let n=1;t<500?n=3:t<1e3&&(n=2),this.preloadBatchSize=n,console.debug("preload batch size: "+this.preloadBatchSize),setTimeout(()=>{e.luigi.preloading=!1},this.preloadBatchSize>2?500:1e3)}}}const sa=new E2;class R2{async getNavigationPath(e,t=""){try{const n=le.getTrimmedUrl(t);if(!e)return console.error("No navigation nodes provided in the configuration."),[{}];let l;if(qn.hasRootNode()&&(l=qn.getRootNode().node),!l){const h=await e;le.isObject(h)?(l=h,l.pathSegment&&(l.pathSegment="",console.warn("Root node must have an empty path segment. Provided path segment will be ignored."))):l={children:h},l.children=await this.getChildren(l),qn.setRootNode(l)}const a=n.split("/"),o={...re.getConfigValue("navigation.globalContext")||{},...l.context||{}},c=await this.buildNode(a,[l],l.children,o),g=c.navigationPath.filter(h=>h.pathSegment).map(h=>h.pathSegment);c.isExistingRoute=!n||a.length===g.length;const d=n.split("/");return c.matchedPath=d.filter((h,p)=>g[p]&&g[p].startsWith(":")||g[p]===h).join("/"),c}catch(n){console.error("Failed to load top navigation nodes.",n)}}async getChildren(e,t){if(!e)return[];let n=[];if(qn.hasChildren(e)){let a=qn.getChildren(e);a&&(n=a.children)}else try{n=await ls.getConfigValueFromObjectAsync(e,"children",t||e.context),n==null&&(n=[]),n=n.map(a=>this.getExpandStructuralPathSegment(a)).map(a=>this.bindChildToParent(a,e))||[]}catch(a){console.error("Could not lazy-load children for node",a)}let l=this.getAccessibleNodes(e,n,t);return qn.setChildren(e,{children:n,filteredChildren:l}),l}async getFilteredChildren(e){return qn.hasChildren(e)?Ot.getChildrenFromCache(e):await Ot.getChildren(e)}getChildrenFromCache(e){let t=qn.getChildren(e);return t?t.filteredChildren:[]}getAccessibleNodes(e,t,n){return t?t.filter(l=>oe.isNodeAccessPermitted(l,e,n)):[]}bindChildToParent(e,t){return t&&t.pathSegment&&(e.parent=t),e}getExpandStructuralPathSegment(e){if(e&&e.pathSegment&&e.pathSegment.indexOf("/")!==-1){const t=e.pathSegment.split("/"),n={...e},l=(a,r)=>{const o=a.shift();let c={};return a.length?(c.pathSegment=o,r.hideFromNav&&(c.hideFromNav=r.hideFromNav),c.children=[l(a,r)]):(c=n,c.pathSegment=o),c};return l(t,e)}return e}async buildNode(e,t,n,l,a={}){l.parentNavigationContexts||(l.parentNavigationContexts=[]);let r={navigationPath:t,context:l,pathParams:a};if(e.length>0&&n&&n.length>0){const o=e[0],c=this.findMatchingNode(o,n);if(c){t.push(c);let g=oe.applyContext(l,c.context,c.navigationContext);c.pathSegment.startsWith(":")&&(a[c.pathSegment.replace(":","")]=da.sanitizeParam(o)),g=we.substituteDynamicParamsInObject(g,a);try{this.buildVirtualTree(c,e,a);let d=await this.getChildren(c,g);const h=e.slice(1);r=this.buildNode(h,t,d,g,a)}catch(d){console.error("Error getting nodes children",d)}}}return r}buildVirtualViewUrl(e,t,n){let l="";for(const a in t)a.startsWith("virtualSegment")&&(l+=":"+a+"/");return n?(l+=":virtualSegment_"+n+"/",e+"/"+l):e}buildVirtualTree(e,t,n){const l=e.virtualTree,a=e._virtualTree,r=e._virtualViewUrl||e.viewUrl;if((l||a)&&t[0]){let o=e._virtualPathIndex;if(l&&(o=0,e.keepSelectedForChildren=!0),o>50)return;o++;const g=["_*","virtualTree","parent","children","keepSelectedForChildren","navigationContext"],d=le.removeProperties(e,g);Object.assign(d,{pathSegment:":virtualSegment_"+o,label:":virtualSegment_"+o,viewUrl:le.trimTrailingSlash(this.buildVirtualViewUrl(r,n,o)),_virtualTree:!0,_virtualPathIndex:o,_virtualViewUrl:r});const h=Array.isArray(e.children)&&e.children.length>0?e.children[0]._virtualTree:!1;e.children&&!h&&console.warn(`Found both virtualTree and children nodes defined on a navigation node.
|
|
2
2
|
Children nodes are redundant and ignored when virtualTree is enabled.
|
|
3
3
|
Please refer to documentation`),e.children=[d]}}findMatchingNode(e,t){let n=null;const l=t.filter(r=>!!r.pathSegment).length,a=t.filter(r=>r.pathSegment&&r.pathSegment.startsWith(":")).length;return e=e.includes("#")?e.split("#").shift():e,l>1&&(a===1&&(console.warn(`Invalid node setup detected.
|
|
4
4
|
Static and dynamic nodes cannot be used together on the same level. Static node gets cleaned up.
|
|
@@ -49,7 +49,7 @@ __p += '`),pt&&(ye+=`' +
|
|
|
49
49
|
function print() { __p += __j.call(arguments, '') }
|
|
50
50
|
`:`;
|
|
51
51
|
`)+ye+`return __p
|
|
52
|
-
}`;var ot=Ff(function(){return yt(F,Ge+"return "+ye).apply(t,W)});if(ot.source=ye,po(ot))throw ot;return ot}function tw(s){return Nt(s).toLowerCase()}function nw(s){return Nt(s).toUpperCase()}function iw(s,u,_){if(s=Nt(s),s&&(_||u===t))return Ko(s);if(!s||!(u=zn(u)))return s;var k=li(s),N=li(u),F=jo(k,N),W=Jo(k,N)+1;return rl(k,F,W).join("")}function lw(s,u,_){if(s=Nt(s),s&&(_||u===t))return s.slice(0,Qo(s)+1);if(!s||!(u=zn(u)))return s;var k=li(s),N=Jo(k,li(u))+1;return rl(k,0,N).join("")}function aw(s,u,_){if(s=Nt(s),s&&(_||u===t))return s.replace(Zt,"");if(!s||!(u=zn(u)))return s;var k=li(s),N=jo(k,li(u));return rl(k,N).join("")}function rw(s,u){var _=q,k=X;if(Kt(u)){var N="separator"in u?u.separator:N;_="length"in u?st(u.length):_,k="omission"in u?zn(u.omission):k}s=Nt(s);var F=s.length;if(Yl(s)){var W=li(s);F=W.length}if(_>=F)return s;var G=_-Ql(k);if(G<1)return k;var ee=W?rl(W,0,G).join(""):s.slice(0,G);if(N===t)return ee+k;if(W&&(G+=ee.length-G),mo(N)){if(s.slice(G).search(N)){var me,be=ee;for(N.global||(N=Rs(N.source,Nt(Ki.exec(N))+"g")),N.lastIndex=0;me=N.exec(be);)var ye=me.index;ee=ee.slice(0,ye===t?G:ye)}}else if(s.indexOf(zn(N),G)!=G){var Ve=ee.lastIndexOf(N);Ve>-1&&(ee=ee.slice(0,Ve))}return ee+k}function sw(s){return s=Nt(s),s&&qi.test(s)?s.replace(Ii,Op):s}var ow=na(function(s,u,_){return s+(_?" ":"")+u.toUpperCase()}),wo=Fu("toUpperCase");function Of(s,u,_){return s=Nt(s),u=_?t:u,u===t?Ep(s)?zp(s):Sp(s):s.match(u)||[]}var Ff=ut(function(s,u){try{return nn(s,t,u)}catch(_){return po(_)?_:new et(_)}}),uw=Vi(function(s,u){return Gt(u,function(_){_=gi(_),Ri(s,_,go(s[_],s))}),s});function fw(s){var u=s==null?0:s.length,_=je();return s=u?Wt(s,function(k){if(typeof k[1]!="function")throw new Jn(r);return[_(k[0]),k[1]]}):[],ut(function(k){for(var N=-1;++N<u;){var F=s[N];if(nn(F[0],this,k))return nn(F[1],this,k)}})}function cw(s){return Om(Qn(s,h))}function ko(s){return function(){return s}}function dw(s,u){return s==null||s!==s?u:s}var hw=zu(),gw=zu(!0);function Dn(s){return s}function So(s){return _u(typeof s=="function"?s:Qn(s,h))}function _w(s){return mu(Qn(s,h))}function pw(s,u){return bu(s,Qn(u,h))}var mw=ut(function(s,u){return function(_){return Ra(_,s,u)}}),bw=ut(function(s,u){return function(_){return Ra(s,_,u)}});function Co(s,u,_){var k=on(u),N=Er(u,k);_==null&&!(Kt(u)&&(N.length||!k.length))&&(_=u,u=s,s=this,N=Er(u,on(u)));var F=!(Kt(_)&&"chain"in _)||!!_.chain,W=Oi(s);return Gt(N,function(G){var ee=u[G];s[G]=ee,W&&(s.prototype[G]=function(){var me=this.__chain__;if(F||me){var be=s(this.__wrapped__),ye=be.__actions__=An(this.__actions__);return ye.push({func:ee,args:arguments,thisArg:s}),be.__chain__=me,be}return ee.apply(s,el([this.value()],arguments))})}),s}function vw(){return xe._===this&&(xe._=Kp),this}function yo(){}function ww(s){return s=st(s),ut(function(u){return vu(u,s)})}var kw=eo(Wt),Sw=eo(Bo),Cw=eo(Ps);function Uf(s){return so(s)?Ns(gi(s)):xm(s)}function yw(s){return function(u){return s==null?t:Ll(s,u)}}var Pw=Hu(),Nw=Hu(!0);function Po(){return[]}function No(){return!1}function Tw(){return{}}function Iw(){return""}function Lw(){return!0}function Aw(s,u){if(s=st(s),s<1||s>_e)return[];var _=ve,k=mn(s,ve);u=je(u),s-=ve;for(var N=Ls(k,u);++_<s;)u(_);return N}function Ew(s){return it(s)?Wt(s,gi):Bn(s)?[s]:An(lf(Nt(s)))}function Rw(s){var u=++qp;return Nt(s)+u}var Dw=Fr(function(s,u){return s+u},0),Vw=to("ceil"),Mw=Fr(function(s,u){return s/u},1),Ow=to("floor");function Fw(s){return s&&s.length?Ar(s,Dn,Bs):t}function Uw(s,u){return s&&s.length?Ar(s,je(u,2),Bs):t}function zw(s){return qo(s,Dn)}function Bw(s,u){return qo(s,je(u,2))}function Hw(s){return s&&s.length?Ar(s,Dn,Gs):t}function Ww(s,u){return s&&s.length?Ar(s,je(u,2),Gs):t}var qw=Fr(function(s,u){return s*u},1),Gw=to("round"),Kw=Fr(function(s,u){return s-u},0);function jw(s){return s&&s.length?Is(s,Dn):0}function Jw(s,u){return s&&s.length?Is(s,je(u,2)):0}return O.after=_v,O.ary=_f,O.assign=n0,O.assignIn=Lf,O.assignInWith=Zr,O.assignWith=i0,O.at=l0,O.before=pf,O.bind=go,O.bindAll=uw,O.bindKey=mf,O.castArray=Tv,O.chain=df,O.chunk=O1,O.compact=F1,O.concat=U1,O.cond=fw,O.conforms=cw,O.constant=ko,O.countBy=jb,O.create=a0,O.curry=bf,O.curryRight=vf,O.debounce=wf,O.defaults=r0,O.defaultsDeep=s0,O.defer=pv,O.delay=mv,O.difference=z1,O.differenceBy=B1,O.differenceWith=H1,O.drop=W1,O.dropRight=q1,O.dropRightWhile=G1,O.dropWhile=K1,O.fill=j1,O.filter=Yb,O.flatMap=Xb,O.flatMapDeep=$b,O.flatMapDepth=xb,O.flatten=of,O.flattenDeep=J1,O.flattenDepth=Y1,O.flip=bv,O.flow=hw,O.flowRight=gw,O.fromPairs=Q1,O.functions=g0,O.functionsIn=_0,O.groupBy=ev,O.initial=X1,O.intersection=$1,O.intersectionBy=x1,O.intersectionWith=eb,O.invert=m0,O.invertBy=b0,O.invokeMap=nv,O.iteratee=So,O.keyBy=iv,O.keys=on,O.keysIn=Rn,O.map=Gr,O.mapKeys=w0,O.mapValues=k0,O.matches=_w,O.matchesProperty=pw,O.memoize=jr,O.merge=S0,O.mergeWith=Af,O.method=mw,O.methodOf=bw,O.mixin=Co,O.negate=Jr,O.nthArg=ww,O.omit=C0,O.omitBy=y0,O.once=vv,O.orderBy=lv,O.over=kw,O.overArgs=wv,O.overEvery=Sw,O.overSome=Cw,O.partial=_o,O.partialRight=kf,O.partition=av,O.pick=P0,O.pickBy=Ef,O.property=Uf,O.propertyOf=yw,O.pull=lb,O.pullAll=ff,O.pullAllBy=ab,O.pullAllWith=rb,O.pullAt=sb,O.range=Pw,O.rangeRight=Nw,O.rearg=kv,O.reject=ov,O.remove=ob,O.rest=Sv,O.reverse=co,O.sampleSize=fv,O.set=T0,O.setWith=I0,O.shuffle=cv,O.slice=ub,O.sortBy=gv,O.sortedUniq=pb,O.sortedUniqBy=mb,O.split=X0,O.spread=Cv,O.tail=bb,O.take=vb,O.takeRight=wb,O.takeRightWhile=kb,O.takeWhile=Sb,O.tap=Fb,O.throttle=yv,O.thru=qr,O.toArray=Nf,O.toPairs=Rf,O.toPairsIn=Df,O.toPath=Ew,O.toPlainObject=If,O.transform=L0,O.unary=Pv,O.union=Cb,O.unionBy=yb,O.unionWith=Pb,O.uniq=Nb,O.uniqBy=Tb,O.uniqWith=Ib,O.unset=A0,O.unzip=ho,O.unzipWith=cf,O.update=E0,O.updateWith=R0,O.values=aa,O.valuesIn=D0,O.without=Lb,O.words=Of,O.wrap=Nv,O.xor=Ab,O.xorBy=Eb,O.xorWith=Rb,O.zip=Db,O.zipObject=Vb,O.zipObjectDeep=Mb,O.zipWith=Ob,O.entries=Rf,O.entriesIn=Df,O.extend=Lf,O.extendWith=Zr,Co(O,O),O.add=Dw,O.attempt=Ff,O.camelCase=F0,O.capitalize=Vf,O.ceil=Vw,O.clamp=V0,O.clone=Iv,O.cloneDeep=Av,O.cloneDeepWith=Ev,O.cloneWith=Lv,O.conformsTo=Rv,O.deburr=Mf,O.defaultTo=dw,O.divide=Mw,O.endsWith=U0,O.eq=ri,O.escape=z0,O.escapeRegExp=B0,O.every=Jb,O.find=Qb,O.findIndex=rf,O.findKey=o0,O.findLast=Zb,O.findLastIndex=sf,O.findLastKey=u0,O.floor=Ow,O.forEach=hf,O.forEachRight=gf,O.forIn=f0,O.forInRight=c0,O.forOwn=d0,O.forOwnRight=h0,O.get=bo,O.gt=Dv,O.gte=Vv,O.has=p0,O.hasIn=vo,O.head=uf,O.identity=Dn,O.includes=tv,O.indexOf=Z1,O.inRange=M0,O.invoke=v0,O.isArguments=Rl,O.isArray=it,O.isArrayBuffer=Mv,O.isArrayLike=En,O.isArrayLikeObject=Xt,O.isBoolean=Ov,O.isBuffer=sl,O.isDate=Fv,O.isElement=Uv,O.isEmpty=zv,O.isEqual=Bv,O.isEqualWith=Hv,O.isError=po,O.isFinite=Wv,O.isFunction=Oi,O.isInteger=Sf,O.isLength=Yr,O.isMap=Cf,O.isMatch=qv,O.isMatchWith=Gv,O.isNaN=Kv,O.isNative=jv,O.isNil=Yv,O.isNull=Jv,O.isNumber=yf,O.isObject=Kt,O.isObjectLike=Qt,O.isPlainObject=Ua,O.isRegExp=mo,O.isSafeInteger=Qv,O.isSet=Pf,O.isString=Qr,O.isSymbol=Bn,O.isTypedArray=la,O.isUndefined=Zv,O.isWeakMap=Xv,O.isWeakSet=$v,O.join=tb,O.kebabCase=H0,O.last=Xn,O.lastIndexOf=nb,O.lowerCase=W0,O.lowerFirst=q0,O.lt=xv,O.lte=e0,O.max=Fw,O.maxBy=Uw,O.mean=zw,O.meanBy=Bw,O.min=Hw,O.minBy=Ww,O.stubArray=Po,O.stubFalse=No,O.stubObject=Tw,O.stubString=Iw,O.stubTrue=Lw,O.multiply=qw,O.nth=ib,O.noConflict=vw,O.noop=yo,O.now=Kr,O.pad=G0,O.padEnd=K0,O.padStart=j0,O.parseInt=J0,O.random=O0,O.reduce=rv,O.reduceRight=sv,O.repeat=Y0,O.replace=Q0,O.result=N0,O.round=Gw,O.runInContext=$,O.sample=uv,O.size=dv,O.snakeCase=Z0,O.some=hv,O.sortedIndex=fb,O.sortedIndexBy=cb,O.sortedIndexOf=db,O.sortedLastIndex=hb,O.sortedLastIndexBy=gb,O.sortedLastIndexOf=_b,O.startCase=$0,O.startsWith=x0,O.subtract=Kw,O.sum=jw,O.sumBy=Jw,O.template=ew,O.times=Aw,O.toFinite=Fi,O.toInteger=st,O.toLength=Tf,O.toLower=tw,O.toNumber=$n,O.toSafeInteger=t0,O.toString=Nt,O.toUpper=nw,O.trim=iw,O.trimEnd=lw,O.trimStart=aw,O.truncate=rw,O.unescape=sw,O.uniqueId=Rw,O.upperCase=ow,O.upperFirst=wo,O.each=hf,O.eachRight=gf,O.first=uf,Co(O,function(){var s={};return di(O,function(u,_){It.call(O.prototype,_)||(s[_]=u)}),s}(),{chain:!1}),O.VERSION=n,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){O[s].placeholder=O}),Gt(["drop","take"],function(s,u){_t.prototype[s]=function(_){_=_===t?1:an(st(_),0);var k=this.__filtered__&&!u?new _t(this):this.clone();return k.__filtered__?k.__takeCount__=mn(_,k.__takeCount__):k.__views__.push({size:mn(_,ve),type:s+(k.__dir__<0?"Right":"")}),k},_t.prototype[s+"Right"]=function(_){return this.reverse()[s](_).reverse()}}),Gt(["filter","map","takeWhile"],function(s,u){var _=u+1,k=_==x||_==J;_t.prototype[s]=function(N){var F=this.clone();return F.__iteratees__.push({iteratee:je(N,3),type:_}),F.__filtered__=F.__filtered__||k,F}}),Gt(["head","last"],function(s,u){var _="take"+(u?"Right":"");_t.prototype[s]=function(){return this[_](1).value()[0]}}),Gt(["initial","tail"],function(s,u){var _="drop"+(u?"":"Right");_t.prototype[s]=function(){return this.__filtered__?new _t(this):this[_](1)}}),_t.prototype.compact=function(){return this.filter(Dn)},_t.prototype.find=function(s){return this.filter(s).head()},_t.prototype.findLast=function(s){return this.reverse().find(s)},_t.prototype.invokeMap=ut(function(s,u){return typeof s=="function"?new _t(this):this.map(function(_){return Ra(_,s,u)})}),_t.prototype.reject=function(s){return this.filter(Jr(je(s)))},_t.prototype.slice=function(s,u){s=st(s);var _=this;return _.__filtered__&&(s>0||u<0)?new _t(_):(s<0?_=_.takeRight(-s):s&&(_=_.drop(s)),u!==t&&(u=st(u),_=u<0?_.dropRight(-u):_.take(u-s)),_)},_t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},_t.prototype.toArray=function(){return this.take(ve)},di(_t.prototype,function(s,u){var _=/^(?:filter|find|map|reject)|While$/.test(u),k=/^(?:head|last)$/.test(u),N=O[k?"take"+(u=="last"?"Right":""):u],F=k||/^find/.test(u);N&&(O.prototype[u]=function(){var W=this.__wrapped__,G=k?[1]:arguments,ee=W instanceof _t,me=G[0],be=ee||it(W),ye=function(gt){var pt=N.apply(O,el([gt],G));return k&&Ve?pt[0]:pt};be&&_&&typeof me=="function"&&me.length!=1&&(ee=be=!1);var Ve=this.__chain__,Ge=!!this.__actions__.length,Ye=F&&!Ve,ot=ee&&!Ge;if(!F&&be){W=ot?W:new _t(this);var Qe=s.apply(W,G);return Qe.__actions__.push({func:qr,args:[ye],thisArg:t}),new Yn(Qe,Ve)}return Ye&&ot?s.apply(this,G):(Qe=this.thru(ye),Ye?k?Qe.value()[0]:Qe.value():Qe)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(s){var u=_r[s],_=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",k=/^(?:pop|shift)$/.test(s);O.prototype[s]=function(){var N=arguments;if(k&&!this.__chain__){var F=this.value();return u.apply(it(F)?F:[],N)}return this[_](function(W){return u.apply(it(W)?W:[],N)})}}),di(_t.prototype,function(s,u){var _=O[u];if(_){var k=_.name+"";It.call(xl,k)||(xl[k]=[]),xl[k].push({name:u,func:_})}}),xl[Or(t,y).name]=[{name:"wrapper",func:t}],_t.prototype.clone=sm,_t.prototype.reverse=om,_t.prototype.value=um,O.prototype.at=Ub,O.prototype.chain=zb,O.prototype.commit=Bb,O.prototype.next=Hb,O.prototype.plant=qb,O.prototype.reverse=Gb,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=Kb,O.prototype.first=O.prototype.head,Pa&&(O.prototype[Pa]=Wb),O},Zl=Bp();Ht?((Ht.exports=Zl)._=Zl,Lt._=Zl):xe._=Zl}).call(Ba)})(ss,ss.exports);var qa=ss.exports;class B2{getNodePath(e,t){return e?we.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=le.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 Ot.extractDataFromPath(e),{keepBrowserHistory:l=!0,navSync:a=!0,preventContextUpdate:r=!1}=t;if(await Ot.shouldPreventNavigation(n)||le.trimLeadingSlash(this.getWindowPath())===le.trimLeadingSlash(e))return;const c=re.getConfigValue("routing.useHashRouting"),g=re.getConfigValue("routing.preserveQueryParams");let d=new URL(location.href);e=g?we.composeSearchParamsToRoute(e):e,c&&(d.hash=e);const h=l?"pushState":"replaceState",p=re.getConfigValue("routing.disableBrowserHistory")?"replaceState":h;window.history[p]({path:c?d.hash:e},"",c?d.hash:e);const b={detail:{preventContextUpdate:r,withoutSync:!a}},m=new CustomEvent("popstate",b);window.dispatchEvent(m)}getWindowPath(){return re.getConfigValue("routing.useHashRouting")?le.getPathWithoutHash(window.location.hash):window.location.pathname+window.location.search}buildFromRelativePath(e){let t=this.getWindowPath();if(e.parent&&e.parent.pathSegment){const n=le.trimLeadingSlash(this.getNodePath(e.parent)).split("/"),l=le.trimLeadingSlash(t).split("/");l.length>n.length&&(t=l.slice(0,n.length).join("/"))}return this.normalizePath(le.addLeadingSlash(this.concatenatePath(t,e.link)))}getHashPath(e=window.location.hash){if(e&&/\?intent=/i.test(e)){const t=e.replace("#/#","#"),n=we.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=we.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=we.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?le.trimLeadingSlash(window.location.pathname)+window.location.search:le.trimLeadingSlash(window.location.pathname)}setFeatureToggle(e){const t=re.getConfigValue("settings.featureToggles.queryStringParam");t&&typeof e=="string"&&we.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 a=window.location.href,r=t.get().unsavedChanges.persistUrl;return r&&history.pushState(window.state,"",r),t.getUnsavedChangesModalPromise().then(()=>{this.resolveUnsavedChanges(e,t,n,l,a)},()=>{})}resolveUnsavedChanges(e,t,n,l,a){e&&(this.handleRouteChange(e,t,n,l),history.replaceState(window.state,"",a))}async shouldShowModalPathInUrl(){re.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath()}async handleViewUrlMisconfigured(e,t,n,l,a){const{children:r,intendToHaveEmptyViewUrl:o,compound:c}=e,g=r&&Array.isArray(r)&&r.length>0||r||!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 d=await Ot.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),"/"),h=await we.getDefaultChildNode(d);this.showPageNotFoundError(a,h,l),this.navigateTo(h)}return!0}return!1}async handlePageNotFound(e,t,n,l,a,r,o){if(!t&&!e.compound||e.tabNav&&e.tabNav.showAsTabHeader){const c=await we.getDefaultChildNode(n,async(g,d)=>await Ot.getChildren(g,d));if(n.isExistingRoute){const g=le.getTrimmedUrl(l);this.navigateTo(`${g?`/${g}`:""}/${c}`,{keepBrowserHistory:!1}),a.set({navigationPath:[]})}else{if(c&&n.navigationPath.length>1)return this.showPageNotFoundError(a,le.trimTrailingSlash(n.matchedPath)+"/"+c,r,!0),!0;const g=await Ot.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),"/"),d=await we.getDefaultChildNode(g);this.showPageNotFoundError(a,d,r,!1,o)}return!0}return n.isExistingRoute?!1:(this.showPageNotFoundError(a,n.matchedPath,r,!0),!0)}async handleRouteChange(e,t,n,l,a,r=!1){const o=e||"";if(o.external){this.navigateToExternalLink({url:o.url,sameWindow:!o.openInNewTab});return}if(this.setFeatureToggle(o),!this.shouldSkipRoutingForUrlPatterns()){if(window.Luigi.preventLoadingModalData){window.Luigi.preventLoadingModalData=!1;return}try{if(t.shouldShowUnsavedChangesModal()){await this.handleUnsavedChangesModal(o,t,n,l);return}await this.shouldShowModalPathInUrl();const c=t.get();this.checkInvalidateCache(c,o);const g=o&&o.length?le.getPathWithoutHash(o):"",{nodeObject:d,pathData:h}=await Ot.extractDataFromPath(o),p=d.viewUrl||"";if(await this.handleViewUrlMisconfigured(d,p,c,g,t)||await this.handlePageNotFound(d,p,h,o,t,g,l))return;const b=re.getConfigBooleanValue("settings.hideNavigation"),m=we.parseParams(g.split("?")[1]),v=we.getNodeParams(m),C=oe.findViewGroup(d),y=decodeURIComponent(g.split("?")[1]||""),P=h.navigationPath&&h.navigationPath.length>0?h.navigationPath[h.navigationPath.length-1]:null;let T=!1,E=P;for(;E;){if(E.tabNav===!0){T=!0;break}else if(E.tabNav===!1){T=!1;break}else if(le.isObject(E.tabNav)){if(E.tabNav.showAsTabHeader){T=!0;break}if("hideTabNavAutomatically"in E.tabNav&&E.children)if(E.tabNav.hideTabNavAutomatically===!0&&E.children.length===1){T=!1;break}else{T=!0;break}else console.warn("tabNav:{hideTabNavAutomatically:true|false} is not configured correctly.")}E=oe.getParentNode(E,h.navigationPath)}let V=P,I=d.hideSideNav;if(I===void 0)for(;V;){if(V.tabNav&&V.hideSideNav===!0){I=!0;break}if(V.hideSideNav===!1){I=!1;break}V=oe.getParentNode(V,h.navigationPath)}const B=we.substituteDynamicParamsInObject(Object.assign({},h.context,P.context),h.pathParams);h.navigationPath._context=B;const M={hideNav:b,viewUrl:p,nodeParams:v,viewGroup:C,urlParamsRaw:y,currentNode:P,navigationPath:h.navigationPath,context:B,pathParams:h.pathParams,hideSideNav:I||!1,isolateView:d.isolateView||!1,tabNav:T};t.set(Object.assign({},M,{previousNodeValues:c?{viewUrl:c.viewUrl,isolateView:c.isolateView,viewGroup:c.viewGroup}:{}}));let D=document.getElementsByClassName("iframeContainer")[0];if(D&&(T?D.classList.add("iframeContainerTabNav"):D.classList.contains("iframeContainerTabNav")&&D.classList.remove("iframeContainerTabNav")),d.compound)oi.switchActiveIframe(n,void 0,!1),D&&D.classList.add("lui-webComponent"),this.navigateWebComponentCompound(t,d);else if(d.webcomponent)oi.switchActiveIframe(n,void 0,!1),D&&D.classList.add("lui-webComponent"),this.navigateWebComponent(t,d);else{const X=document.querySelector(".wcContainer");if(X&&(X.configChangedRequest=!1),D&&(D.classList.remove("lui-webComponent"),this.removeLastChildFromWCContainer()),!r)if(!a)await oi.navigateIframe(l,t,n);else{const Q=t.get(),ce=await t.prepareInternalData(l);Ee.sendMessageToIframe(l.iframe,{msg:"luigi.navigate",viewUrl:p,context:JSON.stringify(Q.context),nodeParams:JSON.stringify(Q.nodeParams),pathParams:JSON.stringify(Q.pathParams),searchParams:JSON.stringify(we.prepareSearchParamsForClient(l.iframe.luigi.currentNode)),internal:JSON.stringify(ce),withoutSync:!0})}}const q=document.querySelector(".lui-tab-header");q&&q.dispatchEvent(new Event("lui_ctx_update")),Ot.onNodeChange(c.currentNode,P)}catch(c){console.info("Could not handle route change",c)}}}async handleBookmarkableModalPath(){const e=we.getModalPathFromPath();if(e){const t=we.getModalParamsFromPath(),{nodeObject:n}=await Ot.extractDataFromPath(e);ep.openAsModal(e,t||n.openNodeInModal)}}checkInvalidateCache(e,t){let n=t.split("/");if(e.navigationPath&&e.navigationPath.length>0){let l=e.navigationPath.slice(1),a=!0;for(let r=0;r<l.length;r++){let o=n.length>r?n[r]:void 0,c=l[r];if(o!==c.pathSegment||!a)if(we.isDynamicNode(c)){if(!a||o!==we.getDynamicNodeValue(c,e.pathParams)){qn.deleteNodesRecursively(c);break}}else a=!1}}else qn.deleteCache()}handleRouteClick(e,t){const n=we.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(le.trimLeadingSlash(this.getWindowPath())===le.trimLeadingSlash(n)){const a=Ee.getIframeContainer(),r=oi.getActiveIframe(a);r&&r.vg&&oi.canCache(r.vg)?(oi.switchActiveIframe(Ee.getIframeContainer(),void 0,!1),setTimeout(()=>{oi.switchActiveIframe(Ee.getIframeContainer(),r,!1),window.postMessage({msg:"refreshRoute"},"*")})):(r&&a.removeChild(r),window.postMessage({msg:"refreshRoute"},"*"))}else this.navigateTo(n)}async showPageNotFoundError(e,t,n,l=!1,a={}){const r=we.getPageNotFoundRedirectResult(n,l),o=r.path;if(o){r.keepURL?this.handleRouteChange(o,e,Ee.getIframeContainer(),a):this.navigateTo(o);return}we.showRouteNotFoundAlert(e,n,l),this.navigateTo(le.addLeadingSlash(t))}navigateToLink(e){e.externalLink&&e.externalLink.url?this.navigateToExternalLink(e.externalLink):this.navigateTo(e.link)}navigateToExternalLink(e,t,n){if(t){const l={...D2.externalLink,...(t==null?void 0:t.externalLink)||{}};l.url=we.calculateNodeHref(t,n),window.open(l.url,l.sameWindow?"_self":"_blank").focus()}else le.isObject(e)&&window.open(e.url,e.sameWindow?"_self":"_blank").focus()}getGeneratedWCId(e){const{viewUrl:t,context:n}=e;if(t){const l=we.substituteViewUrl(t,{context:n});return e.webcomponent&&e.webcomponent.tagName?e.webcomponent.tagName:ua.generateWCId(l)}}navigateWebComponent(e,t){let n=document.querySelector(".wcContainer"),l=n._luigi_node;const a=this.getGeneratedWCId(t),r=e.get();if(t===l&&!n.configChangedRequest){const o=document.querySelector(a);o.context=r.context,o.extendedContext&&(o.extendedContext.nodeParams=r.nodeParams);return}n.configChangedRequest=!1,n=this.removeLastChildFromWCContainer(),n&&ua.renderWebComponent(r.viewUrl,n,r,t)}navigateWebComponentCompound(e,t){const n=document.querySelector(".wcContainer");if(!n)return;const l=e.get();if(n._luigi_node===t&&qa.isEqual(n._luigi_pathParams,l.pathParams)&&!n.configChangedRequest)return;n.configChangedRequest=!1;const{compound:a}=t;this.removeLastChildFromWCContainer(),a&&a.children&&(a.children=a.children.filter(r=>oe.checkVisibleForFeatureToggles(r))),ua.renderWebComponentCompound(t,n,l),n._luigi_pathParams=l.pathParams}removeLastChildFromWCContainer(){const e=document.querySelector(".wcContainer");if(e){for(;e.lastChild;)e.lastChild.remove();return e._luigi_node=void 0,e}}updateModalDataInUrl(e,t,n){let l=we.getHashQueryParamSeparator();const a=we.getQueryParams(),r=we.getModalViewParamName();a[r]=e,t&&Object.keys(t).length&&(a[`${r}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}${we.encodeParams(a)}`}else o.search=`?${we.encodeParams(a)}`;n?history.pushState(window.state,"",o.href):history.replaceState(window.state,"",o.href)}appendModalDataToUrl(e,t){let n=we.getHashQueryParamSeparator();const l=we.getQueryParams(),a=we.getModalViewParamName(),r=l[a],o=new URL(location.href),c=re.getConfigBooleanValue("routing.useHashRouting");let g=history.state,d,h;if(c){let[p,b]=o.hash.split("?");d=p,h=we.getURLWithoutModalData(b,a),h&&(d+="?"+h)}else d=o.pathname,h=we.getURLWithoutModalData(o.search,a),h&&(d+="?"+we.getURLWithoutModalData(o.search,a));if(g=we.handleHistoryState(g,d),r!==e){if(l[a]=e,t&&Object.keys(t).length&&(l[`${a}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}${we.encodeParams(l)}`}else o.search=`?${we.encodeParams(l)}`;history.pushState(g,"",o.href)}else{const p=new URL(o);if(c){let b=p.hash.split("?")[0];p.hash=b,h&&(p.hash+="?"+h)}else p.search=h;history.replaceState({},"",p.href),history.pushState(g,"",o.href)}}removeModalDataFromUrl(e){const t=we.getQueryParams(),n=we.getModalViewParamName();let l=new URL(location.href);if(re.getConfigBooleanValue("routing.useHashRouting")){let r={};t[n]&&(r[n]=t[n]),t[`${n}Params`]&&(r[`${n}Params`]=t[`${n}Params`]);let o=we.encodeParams(r);l.hash.includes(`?${o}`)?l.hash=l.hash.replace(`?${o}`,""):l.hash.includes(`&${o}`)&&(l.hash=l.hash.replace(`&${o}`,""))}else{let r=new URLSearchParams(l.search.slice(1));r.delete(n),r.delete(`${n}Params`);let o="";Array.from(r.keys()).forEach(c=>{o+=(o===""?"?":"&")+c+"="+r.get(c)}),l.search=o}if(history.state&&history.state.modalHistoryLength>=0&&e){history.state.modalHistoryLength;const r=history.state.pathBeforeHistory;let o=!1;if(window.addEventListener("popstate",c=>{o?(history.replaceState({},"",r),history.pushState({},"",r),history.back()):(history.pushState({},"",r),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 lt=new B2;class H2{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=we.substituteViewUrl(e,t));const l=Ee.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?le.getPathWithoutHash(t):"",l=await Ot.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),t),a=we.parseParams(n.split("?")[1]),r=we.getNodeParams(a),o=we.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:r,collapsed:g,isDataPrepared:!0})}createAndSetView(e){const{nodeParams:t,lastNode:n,pathData:l}=e.get();if(n.webcomponent){ua.renderWebComponent(n.viewUrl,document.querySelector(".iframeSplitViewCnt"),{context:l.context},n,void 0,!0);const a={splitViewWC:document.querySelector(".iframeSplitViewCnt"),splitViewWCData:{...l,nodeParams:t}};e.set(a),e.dispatch("wcCreated",{...a,collapsed:!1});const r=document.querySelector(".wcContainer");if(r&&r.childElementCount){const o=document.getElementsByClassName("iframeContainer")[0];o&&o.classList.add("lui-webComponent")}}else{const r={splitViewIframe:this.setIframe(n.viewUrl,{context:l.context,pathParams:l.pathParams,nodeParams:t},e),splitViewIframeData:{...l,nodeParams:t}};e.set(r),e.dispatch("iframeCreated",{...r,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(le.computePxFromPercent(t,n)),a=e?100-e:60,r=parseInt(le.computePxFromPercent(t,a));return{percent:n,bottom:l,top:r}}}calculateAndSetSplitViewValues(e,t){const n=parseInt(le.computePxFromPercent(t.rightContentHeight,100-e))+Ee.getIframeContainer().getBoundingClientRect().top;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:le.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,le.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}),Ee.getIframeContainer().style.marginBottom="",ft.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`,Ee.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="",Ee.getIframeContainer().style.marginBottom=""},()=>{})}sendMessageToClients(e,t){Ee.sendMessageToVisibleIframes({msg:`luigi.navigation.splitview.${e}`,data:t})}}const ft=new H2;class W2{luigiAfterInit(){re.getConfigBooleanValue("settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{Ya.hideAppLoadingIndicator()},0)}}const q2=new W2;class G2{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 ui=new G2;class K2{constructor(){return this._userInfoStore=fa({}),this._loggedInStore=fa(!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=fl.parseUrlAuthErrors()||{};if(await fl.handleUrlAuthErrors(t,n.error,n.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(e,t),le.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(a=>(this.idpProviderInstance=a,this.checkAuth(t))).catch(a=>{const r=`Error: ${a.message||a}`;console.error(r,a.message&&a),re.setErrorMessage(r)}):this.checkAuth(t)}async checkAuth(e){const t=fl.getStoredAuthData();if(!t||!fl.isLoggedIn()){if(re.getConfigValue("auth.disableAutoLogin"))return;let l=!0;return t&&(l=await pi.handleAuthEvent("onAuthExpired",e)),l?this.startAuthorization():void 0}this.idpProviderInstance.settings&&le.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,t).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):le.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(e).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(ol(this._userInfoStore))),le.isFunction(re.getConfigValue("auth.events.onAuthSuccessful"))&&ui.isNewlyAuthorized()&&await pi.handleAuthEvent("onAuthSuccessful",e,t),ui.removeNewlyAuthorized(),le.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),le.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(e=>{ui.setNewlyAuthorized(),e&&console.error(e)})}logout(){const e=fl.getStoredAuthData(),t=async l=>{await pi.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),ui.removeAuthData()},n=re.getConfigValue(`auth.${re.getConfigValue("auth.use")}.logoutFn`);le.isFunction(n)?n(this.idpProviderInstance.settings,e,t):le.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=le.getConfigValueFromObject(t,"idpProvider");if(n){const a=await new n(t);return["login"].forEach(r=>{if(!le.isFunction(a[r]))throw this.IdpProviderException(`${r} function does not exist in custom IDP Provider ${e}`)}),a}if(le.isFunction(re.getConfigValue("auth.events.onAuthConfigError")))await pi.handleAuthEvent("onAuthConfigError",{idpProviderName:e,type:"IdpProviderException"});else throw this.IdpProviderException(`IDP Provider ${e} does not exist.`)}unload(){this.idpProviderInstance&&le.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}}const fn=new K2;class j2{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(le.prependOrigin(e)),l=this.decorators.filter(a=>a.type==="queryString");for(let a=0;a<l.length;a++){const r=l[a];n.searchParams.has(r.key)&&n.searchParams.delete(r.key);const o=r.valueFn();n.searchParams.append(r.key,o)}return t&&(n.search=decodeURIComponent(n.search)),n.href}}const Ga=new j2;class J2{getStoredAuthData(){return ui.getAuthData()}isLoggedIn(){const e=this.getStoredAuthData();return e&&(()=>e.accessTokenExpirationDate>Number(new Date))()}parseUrlAuthErrors(){const e=le.getUrlParameter("error"),t=le.getUrlParameter("errorDescription");if(e)return{error:e,errorDescription:t}}async handleUrlAuthErrors(e,t,n){return t?await pi.handleAuthEvent("onAuthError",e,{error:t,errorDescription:n},e.logoutUrl+"?post_logout_redirect_uri="+e.post_logout_redirect_uri+"&error="+t+"&errorDescription="+n):!0}}const fl=new J2;class Y2{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 a=new RegExp(`<${n[l]}/>`,"g"),r=new RegExp(`<${n[l]} />`,"g"),o=new RegExp(`<${n[l]}>`,"g"),c=new RegExp(`<${n[l]} >`,"g"),g=new RegExp(`</${n[l]}[/]>`,"g"),d=new RegExp(`</${n[l]} [/]>`,"g"),h=new RegExp(`<[/]${n[l]}>`,"g"),p=new RegExp(`<[/]${n[l]} >`,"g");t=t.replace(a,`<${n[l]}>`).replace(r,`<${n[l]}>`).replace(o,`<${n[l]}>`).replace(c,`<${n[l]}>`).replace(g,`</${n[l]}>`).replace(d,`</${n[l]}>`).replace(h,`</${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 a={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(e)),links:[]};return t?Object.entries(t).reduce((r,[o,c])=>{const g=`_luigi_alert_${n}_link_${this.sanitizeParam(o)}`,d=this.restoreSanitizedBrs(this.sanitizeHtml(c.text)),h=`<a id="${g}">${d}</a>`,p=this.escapeKeyForRegexp(o),b=new RegExp(`({${p}})`,"g");return{sanitizedText:r.sanitizedText.replace(b,h),links:r.links.concat({elemId:g,url:c.url?encodeURI(this.sanitizeHtml(c.url)):void 0,dismissKey:c.dismissKey?encodeURI(this.sanitizeHtml(c.dismissKey)):void 0})}},a):a}}const da=new Y2;class Q2{get specialIframeTypes(){return[{iframeKey:"modalIframe",dataKey:"modalIframeData",iframeConfigKey:"modal"},{iframeKey:"drawerIframe",dataKey:"drawerIframeData",iframeConfigKey:"drawer"},{iframeKey:"splitViewIframe",dataKey:"splitViewIframeData",iframeConfigKey:"splitView"}]}hideElementChildren(e){e.children&&Array.from(e.children).forEach(t=>{t.tagName==="IFRAME"&&(t.style.display="none")})}removeElementChildren(e){[...e.children].forEach(n=>{!n.vg&&n.tagName==="IFRAME"&&e.removeChild(n)})}removeIframe(e,t){Array.from(t.children).forEach(l=>{l===e&&t.removeChild(l)})}isSameDomain(e,t){if(e.iframe){const n=t.get(),l=le.getUrlWithoutHash(n.previousNodeValues.viewUrl),a=le.getUrlWithoutHash(n.viewUrl),r=n.previousNodeValues.viewGroup,o=n.viewGroup;if(l===a&&!r&&!o)return!0}return!1}isSameViewGroup(e,t){if(e.iframe){const n=t.get(),l=le.getUrlWithoutHash(n.previousNodeValues.viewUrl),a=le.getUrlWithoutHash(n.viewUrl),r=this.getLocation(l),o=this.getLocation(a);if(r===o){const c=n.previousNodeValues.viewGroup,g=n.viewGroup;if(c&&g&&c===g)return!0}}return!1}canReuseIframe(e,t){return this.isSameDomain(e,t)||this.isSameViewGroup(e,t)}getLocation(e){const t=document.createElement("a");if(t.href=e,t.origin)return t.origin}urlMatchesTheDomain(e="",t){return this.getLocation(e)===this.getLocation(t)}iframeIsSameDomain(e,t){return this.urlMatchesTheDomain(e,t)}getIframeContainer(){const e=Array.from(document.querySelectorAll(".iframeContainer"));return e.length>0?e[0]:void 0}getMicrofrontendsInDom(){return c2.map(({type:e,selector:t})=>Array.from(document.querySelectorAll(t)).map(n=>({id:n.luigi.id,container:n,active:le.isElementVisible(n),type:e}))).reduce((e,t)=>e.concat(t),[])}getMicrofrontendIframes(){return this.getMicrofrontendsInDom().map(e=>e.container)}getCurrentWebcomponentCtnInDom(){return document.querySelector(".iframeContainer.lui-webComponent")}getCurrentMicrofrontendIframe(){const e=this.getModalIframes(),t=this.getMainIframes().filter(le.isElementVisible),n=this.getCurrentWebcomponentCtnInDom();return e[0]||t[0]||n||null}getIframesWithType(e){return this.getMicrofrontendsInDom().filter(t=>t.type===e).map(t=>t.container)}getMainIframes(){return this.getIframesWithType("main")}getModalIframes(){return this.getIframesWithType("modal")}getVisibleIframes(){return this.getMicrofrontendsInDom().filter(e=>e.active).map(e=>e.container)}sendMessageToIframe(e,t){if(!(e.luigi&&e.luigi.viewUrl&&e._ready))return;const n=this.getLocation(e.luigi.viewUrl);n!==""&&e.contentWindow&&e.contentWindow.postMessage(t,n)}sendMessageToVisibleIframes(e){this.getVisibleIframes().forEach(t=>this.sendMessageToIframe(t,e))}broadcastMessageToAllIframes(e){Ee.getMicrofrontendIframes().forEach(t=>this.sendMessageToIframe(t,e))}createIframe(e,t,n,l,a){const r=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],o=re.getConfigValue("settings.customSandboxRules"),c=re.getConfigValue("settings.allowRules"),g=o?[...new Set([...r,...o])]:r,d=document.createElement("iframe");d.src=Ga.hasDecorators()?Ga.applyDecorators(e,n?n.decodeViewUrl:void 0):e,c&&(c.forEach((p,b)=>{c[b]=p+(p.indexOf(";")!=-1?"":";")}),d.allow=c.join(" ")),d.sandbox=g.join(" "),d.luigi={viewUrl:e,currentNode:n,createdAt:new Date().getTime(),id:le.getRandomId(),pathParams:a?a.pathParams:void 0},t&&(d.vg=t),n&&n.clientPermissions&&(d.luigi.clientPermissions=n.clientPermissions);const h=re.getConfigValue("settings.iframeCreationInterceptor");if(le.isFunction(h))try{h(d,t,n,l)}catch(p){console.error("Error applying iframe creation interceptor: ",p)}return d}isMessageSource(e,t){return t&&t.contentWindow===e.source}getValidMessageSource(e){const n=[...Ee.getMicrofrontendIframes(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(r=>this.isMessageSource(e,r));if(!n||!n.luigi||!n.luigi.viewUrl)return;const l=e.data.msg==="luigi.navigate.ok";if(l&&!n.luigi.nextViewUrl)return;const a=l?n.luigi.nextViewUrl:n.luigi.viewUrl;if(this.iframeIsSameDomain(a,e.origin))return n}getSpecialIframeMessageSource(e,t){return Ee.specialIframeTypes.filter(n=>Ee.isMessageSource(e,t[n.iframeKey]))}disableA11yOfInactiveIframe(e){[...document.querySelectorAll("*")].forEach(n=>{n.getAttribute("oldTab")||n.setAttribute("oldTab",n.getAttribute("tabindex")),n!==e&&n.setAttribute("tabindex","-1")})}enableA11yOfInactiveIframe(){[...document.querySelectorAll("*")].forEach(t=>{const n=t.getAttribute("oldTab");t.getAttribute("oldTab")==="null"&&t.removeAttribute("tabindex"),t.removeAttribute("oldTab"),n&&n!=="null"&&t.setAttribute("tabindex",n)})}disableA11YKeyboardExceptClassName(e){[...document.querySelectorAll("*")].forEach(n=>{const l=!n.closest(e),a=n.getAttribute("tabindex");(a||a===0)&&l&&!n.hasAttribute("oldtab")&&n.setAttribute("oldtab",a),l&&n.setAttribute("tabindex","-1")})}enableA11YKeyboardBackdropExceptClassName(e){[...document.querySelectorAll("*")].forEach(n=>{const l=n.getAttribute("oldtab");!n.closest(e)&&n.removeAttribute("tabindex"),l&&l!=="null"&&(n.setAttribute("tabindex",l),n.removeAttribute("oldtab"))})}applyCoreStateData(e){return{...e,activeFeatureToggleList:Uo.getActiveFeatureToggleList(),currentLocale:St.getCurrentLocale(),currentTheme:Do.getCurrentTheme()}}}const Ee=new Q2;class Z2{getRandomId(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]}isFunction(e){return e&&{}.toString.call(e)==="[object Function]"}isAsyncFunction(e){return e&&{}.toString.call(e)==="[object AsyncFunction]"}isPromise(e){return e&&this.isFunction(e.then)}isString(e){return typeof e=="string"||e instanceof String}isIE(){const e=navigator.userAgent;return!!(e.includes("MSIE ")||e.includes("Trident/"))}isObject(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}isEmptyObject(e){return this.isObject(e)&&Object.keys(e).length===0}deepMerge(e,...t){if(!t.length)return e;const n=t.shift();if(this.isObject(e)&&this.isObject(n))for(const l in n)this.isObject(n[l])?(e[l]||Object.assign(e,{[l]:{}}),this.deepMerge(e[l],n[l])):Object.assign(e,{[l]:n[l]});return this.deepMerge(e,...t)}getUrlWithoutHash(e){if(!e)return!1;const t=e.split("#")[0];return t.startsWith("http")?t:window.location.origin+(t.startsWith("/")?"":"/")+t}hasHash(e){return e&&e.search(/^[#\/].*$/)===0}getPathWithoutHash(e){for(;this.hasHash(e);)e=e.substr(1);return e}getUrlParameter(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return n&&decodeURIComponent(n[1].replace(/\+/g," "))||""}prependOrigin(e){if(!e||e.startsWith("http"))return e;const t=e.startsWith("/");return e.length?window.location.origin+(t?"":"/")+e:window.location.origin}addLeadingSlash(e){return(e.startsWith("/")?"":"/")+e}addTrailingSlash(e){return typeof e!="string"?e:e.replace(/\/?$/,"/")}trimLeadingSlash(e){return this.isString(e)?e.replace(/^\/+/g,""):""}trimTrailingSlash(e){return this.isString(e)?e.replace(/\/+$/,""):""}getTrimmedUrl(e){const t=e.length>0?this.getPathWithoutHash(e):e;return this.trimTrailingSlash(t.split("?")[0])}normalizePath(e){return typeof e!="string"?e:this.addLeadingSlash(this.addTrailingSlash(e))}getConfigValueFromObject(e,t){let n=0,l=e;const a=t.split(".");for(;l&&n<a.length;)l=l[a[n++]];return l}canComponentHandleModal(e){return e&&typeof e.get=="function"}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}replaceVars(e,t,n,l=!0){let a=e;return t&&(l?a=qa.replace(a,/{([\s\S]+?)}/g,r=>{let o=r.slice(1,-1).trim();return o.indexOf(n)===0&&(o=o.substring(n.length)),qa.get(t,o,r)}):Object.entries(t).forEach(r=>{a=a.replace(new RegExp(this.escapeRegExp(n+r[0]),"g"),encodeURIComponent(r[1]))})),l&&(a=a.replace(new RegExp("\\{"+this.escapeRegExp(n)+"[^\\}]+\\}","g"),"")),a}getInnerHeight(){return Ee.getIframeContainer().clientHeight}getContentAreaHeight(){return this.getInnerHeight()-Ee.getIframeContainer().getBoundingClientRect().top}getShellbarHeight(){return(Bi.getShellbar()||{}).clientHeight||0}computePxFromPercent(e,t){return e/100*t}computePercentFromPx(e,t){return Math.floor(100*t/e)}isElementVisible(e){return window.getComputedStyle(e,null).getPropertyValue("display")!=="none"}removeInternalProperties(e){return e&&Object.keys(e).filter(t=>!t.startsWith("_")).reduce((t,n)=>(t[n]=e[n],t),{})||e}removeProperties(e,t){const n={};if(!t instanceof Array||!t.length)return console.error("[ERROR] removeProperties requires second parameter: array of keys to remove from object."),e;for(const l in e)if(e.hasOwnProperty(l)){const a=t.filter(o=>l.includes(o)).length===0,r=t.filter(o=>o.endsWith("*")).map(o=>o.slice(0,-1)).filter(o=>l.startsWith(o)).length===0;a&&r&&(n[l]=e[l])}return n}semverCompare(e,t){const n=e.split("-")[0].split("."),l=t.split("-")[0].split(".");for(let a=0;a<3;a++){const r=Number(n[a]),o=Number(l[a]);if(r>o)return 1;if(o>r)return-1;if(!isNaN(r)&&isNaN(o))return 1;if(isNaN(r)&&!isNaN(o))return-1}return 0}requestExperimentalFeature(e,t){const n=!!re.getConfigValue("settings.experimental."+e);return t&&!n&&console.warn("Experimental feature not enabled: ",e),n}createRemotePromise(){let e,t;const n=new Promise(a=>{e=r=>{a(r||!0)},t=()=>{a(!1)}});let l=re._remotePromises;return l||(l={counter:0,promises:[]},re._remotePromises=l),n.id=l.counter++,l.promises[n.id]=n,n.doResolve=a=>{delete l.promises[n.id],e(a)},n.doReject=()=>{delete l.promises[n.id],t()},n}getRemotePromise(e){return re._remotePromises?re._remotePromises.promises[e]:void 0}isString(e){return typeof e=="string"||e instanceof String}}const le=new Z2;class X2{constructor(){this.EXP_CAT_KEY="luigi.preferences.navigation.expandedCategories",this.COL_NAV_KEY="luigi.preferences.navigation.collapsedNavigation",this.virtualGroupPrefix="___"}getProductSwitcherConfig(){const e=re.getConfigValue("navigation.productSwitcher");return Object.assign({icon:"grid",label:"My Products"},e)}getProductSwitcherColumnsNumber(){const e=this.getProductSwitcherConfig();if(!e.items)return;let t=e.columns,n;return le.isFunction(e.items)?n=e.items().length:n=e.items.length,t==="auto"?n<=6?e.columns=3:e.columns=4:e.columns===3?3:4}prepareForTests(...e){let t="";return e.forEach(n=>{n&&(t+=(t?"_":"")+encodeURIComponent(n.toLowerCase().split(" ").join("")))}),t}checkVisibleForFeatureToggles(e){if(e&&e.visibleForFeatureToggles){const t=Uo.getActiveFeatureToggleList();for(const n of e.visibleForFeatureToggles)if(n.startsWith("!")){if(t.includes(n.slice(1)))return!1}else if(!t.includes(n))return!1}return!0}isNodeAccessPermitted(e,t,n){if(pi.isAuthorizationEnabled()){const a=fl.isLoggedIn(),r=e.anonymousAccess;if(a&&r==="exclusive"||!a&&r!=="exclusive"&&r!==!0)return!1}if(!this.checkVisibleForFeatureToggles(e))return!1;const l=re.getConfigValue("navigation.nodeAccessibilityResolver");return typeof l!="function"?!0:l(e,t,n)}applyContext(e,t,n){if(t)for(var l in t)e[l]=t[l];return n&&e.parentNavigationContexts.unshift(n),e}getNodePath(e){return e.parent?this.getNodePath(e.parent)+"/"+e.pathSegment:e.pathSegment}groupNodesBy(e,t,n){const l=re.getConfigValue("navigation.defaults.category");let a={},r=0,o=0;const c=g=>{g.sort((d,h)=>{const p=d.order||0,b=h.order||0;return p-b})};return e.forEach(g=>{let d,h;const p=g[t];le.isObject(p)?(d=p.id?p.id:p.label,h=Object.assign({},p)):(d=p,n&&!p&&(d=this.virtualGroupPrefix+o),h={label:d,_fromString:!0});let b=a[d];b||(n&&p&&o++,(h.order===void 0||h.order===null||h.order==="")&&(h.order=d?r++:-1),b=[],a[d]=b),b.metaInfo||(b.metaInfo=h),le.isObject(p)&&b.metaInfo._fromString&&(delete b.metaInfo._fromString,b.metaInfo={...b.metaInfo,...p}),le.isObject(p)&&l&&(p.titleExpandButton?b.metaInfo.titleExpandButton=p.titleExpandButton:b.metaInfo.titleExpandButton=l.titleExpandButton,p.titleCollapseButton?b.metaInfo.titleCollapseButton=p.titleCollapseButton:b.metaInfo.titleCollapseButton=l.titleCollapseButton),!b.metaInfo.categoryUid&&d&&(b.metaInfo.categoryUid=g.parent?this.getNodePath(g.parent)+":"+d:d),b.push(g)}),Object.keys(a).forEach(g=>{const d=a[g].metaInfo;d&&d.id&&(a[d.label]=a[d.id],delete a[d.id])}),Object.keys(a).forEach(g=>{c(a[g]),a[g].length===0&&delete a[g]}),a}generateTooltipText(e,t){let n=e.tooltipText;return n===void 0&&(n=re.getConfigValue("navigation.defaults.tooltipText")),n===void 0?t:n===!1?"":St.getTranslation(n)}async generateTopNavNodes(e){const t=e[0].topNav===!1?[]:await Ot.getFilteredChildren(e[0]);let n=null,l=0,a=0,r={};const o=[];let c=[];for(const d of t){e.forEach(b=>{!n&&b===d&&(n=d)}),d.hideFromNav||(l++,d.globalNav&&a++);let h;const p=!!d.badgeCounter;if(p&&(h=await d.badgeCounter.count()),d.category){const b=d.category.label||d.category;if(r[b]){if(r[b].icon||(r[b].icon=d.category.icon,r[b].altText=d.category.altText),p&&!r[b].badgeCounter)r[b].badgeCounter={label:"",count:()=>h};else if(p){const m=r[b].badgeCounter.count()+h;r[b].badgeCounter.count=()=>m}}else r[b]={isCat:!0,label:b,icon:d.category.icon,altText:d.category.altText,children:[],badgeCounter:p&&{label:"",count:()=>h}},o.push(r[b]);r[b].children.push(d)}else o.push(d);h&&c.push(h)}for(let d=0;d<o.length;d++)o[d].isCat&&(o[d].visibleChildren=await Ot.getChildren(o[d])||[]);const g={children:o,selectedNode:n,visibleNodeCount:l,globalNavNodeCount:a};if(c.length){const d=c.reduce((h,p)=>h+p);g.totalBadgeNode={badgeCounter:{count:()=>d,label:""}}}return g}getSideNavAccordionMode(e){let t=e&&e.sideNavAccordionMode||e&&e.parent&&e.parent.sideNavAccordionMode;return typeof t<"u"?t:re.getConfigBooleanValue("navigation.defaults.sideNavAccordionMode")}loadExpandedCategories(){let e=[];const t=localStorage.getItem(this.EXP_CAT_KEY);if(t)try{e=JSON.parse(t)}catch{console.warn("Preference data corrupted, using default")}return e}storeExpandedState(e,t,n=!1){let l=this.loadExpandedCategories(),a=e.split(":")[0];if(t)n&&(l=l.filter(r=>r.indexOf(a+":")===-1)),l.indexOf(e)<0&&l.push(e);else{let r=l.indexOf(e);r>=0&&l.splice(r,1)}return localStorage.setItem(this.EXP_CAT_KEY,JSON.stringify(l)),l}isOpenUIiconName(e){return/^[a-z0-9\-]+$/i.test(e)}renderIconClassName(e){if(!e)return"";let t="sap-icon-";return e.startsWith("businessSuiteInAppSymbols")||e.startsWith("TNT")?t+=e:t+="-"+e,t}handleUnresponsiveClient(e){if(e.errorFn)e.errorFn();else{console.warn("Something went wrong with a client! You will be redirected to another page.");const t=e.redirectPath||"/";lt.navigateTo(t)}}getBurgerTooltipConfig(){const e=re.getConfigValue("settings.burgerTooltip");if(le.isObject(e)||e===!0){const t=e.navExpanded?St.getTranslation(e.navExpanded):"Collapse navigation";return[e.navCollapsed?St.getTranslation(e.navCollapsed):"Expand navigation",t]}}stripNode(e){const t={...e};return delete t.parent,delete t.children,delete t.navHeader,t}async shouldPreventNavigationForPath(e){const{nodeObject:t}=await Ot.extractDataFromPath(e);return!!await Ot.shouldPreventNavigation(t)}getPropertyChainValue(e,t,n){return!t||!e?n:qa.get(e,t,n)}substituteVars(e,t){const l=JSON.stringify(e).replace(/\$\{[a-zA-Z0-9$_.]+\}/g,a=>{const r=a.substr(2,a.length-3);return this.getPropertyChainValue(t,r)||a});return JSON.parse(l)}_fetch(e,t){return fetch(e,t)}processTitleData(e,t){let n=this.getPropertyChainValue(e,t.titlePropertyChain);return n&&(n=n.trim()),n&&t.titleDecorator&&(n=t.titleDecorator.replace("%s",n)),{label:n||t.fallbackTitle,icon:this.getPropertyChainValue(e,t.iconPropertyChain,t.fallbackIcon)}}async fetchNodeTitleData(e,t){return new Promise((n,l)=>{if(!e.titleResolver){l(new Error("No title resolver defined at node"));return}const a={...e.titleResolver};delete a._cache;const r=this.substituteVars(a,t),o=JSON.stringify(r);if(e.titleResolver._cache&&e.titleResolver._cache.key===o){n(e.titleResolver._cache.value);return}const c=r.request;this._fetch(c.url,{method:c.method,headers:c.headers,body:JSON.stringify(c.body)}).then(g=>{g.json().then(d=>{try{const h=this.processTitleData(d,r,e);e.titleResolver._cache={key:o,value:h},n(h)}catch(h){l(h)}})}).catch(g=>{l(g)})}).catch(n=>{qa.reject(n)})}handleNavAnchorClickedWithoutMetaKey(e){return e.ctrlKey||e.metaKey||e.shiftKey?(e.stopPropagation(),!1):(e.preventDefault(),!0)}getNodeLabel(e){let t=St.getTranslation(e.label);const n=this.findViewGroup(e);if(n){const l=this.getViewGroupSettings(n)||{};let a={...l.customData||{},...l._liveCustomData||{}};t=le.replaceVars(t,a,"viewGroupData.")}return t}getParentNode(e,t){let n=e.parent;return!n&&t.length>0&&t[1]===e&&(n=t[0]),n}getAllViewGroupSettings(){return re.getConfigValue("navigation.viewGroupSettings")}getViewGroupSettings(e){const t=this.getAllViewGroupSettings();return e&&t&&t[e]?t[e]:{}}findViewGroup(e,t){if(e.viewGroup)return t&&t!==e?e.viewUrl&&t.viewUrl&&Ee.getLocation(e.viewUrl)===Ee.getLocation(t.viewUrl)?e.viewGroup:void 0:e.viewGroup;if(e.parent)return this.findViewGroup(e.parent,t||e)}getTestId(e){return e.testId?e.testId:oe.prepareForTests(e.pathSegment,e.label)}}const oe=new X2;class $2{constructor(){this.defaultContentViewParamPrefix="~",this.defaultQueryParamSeparator="?",this.defaultModalViewParamName="modal"}getLastNodeObject(e){return[...e.navigationPath].pop()||{}}async getDefaultChildNode(e,t){const n=e.navigationPath[e.navigationPath.length-1],l=t?await t(n,e.context):await ls.getConfigValueFromObjectAsync(n,"children",e.context),a=l.find(r=>r.pathSegment===n.defaultChildNode);if(n.defaultChildNode&&a)return n.defaultChildNode;if(l&&l.length){if(e.navigationPath.length===1){const c=l.find(g=>g.pathSegment);return c&&c.pathSegment||console.error("At least one navigation node in the root hierarchy must have a pathSegment.")}const o=l.find(c=>c.pathSegment&&(c.viewUrl||c.compound||c.externalLink&&c.externalLink.url));if(o)return o.pathSegment}return""}parseParams(e){if(!e)return{};const t={},n=e.replace(/\+/g," "),l=n?n.split("&"):null;return l&&l.forEach(a=>{const r=a.split("=");r&&r.length>0&&(t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]))}),t}encodeParams(e){const t=[];for(const n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}getNodeParams(e){const t={},n=this.getContentViewParamPrefix();return e&&Object.entries(e).forEach(l=>{if(l[0].startsWith(n)){const a=l[0].substr(n.length);t[a]=l[1]}}),this.sanitizeParamsMap(t)}applyPathParams(e,t){let n=e;return t&&Object.entries(t).forEach(([l,a])=>{n=n.replace(new RegExp(":"+l,"g"),a)}),n}getContentViewParamPrefix(){let e=re.getConfigValue("routing.nodeParamPrefix");return e===!1?e="":e||(e=this.defaultContentViewParamPrefix),e}getModalViewParamName(){let e=re.getConfigValue("routing.modalPathParam");return e||(e=this.defaultModalViewParamName),e}getHashQueryParamSeparator(){return this.defaultQueryParamSeparator}getQueryParam(e){return this.getQueryParams()[e]}getQueryParams(){return re.getConfigBooleanValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()}getLocation(){return location}getLocationHashQueryParams(){const e=we.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return e!==-1?we.parseParams(we.getLocation().hash.slice(e+1)):{}}getLocationSearchQueryParams(){return we.getLocation().search?we.parseParams(we.getLocation().search.slice(1)):{}}composeSearchParamsToRoute(e){if(re.getConfigBooleanValue("routing.useHashRouting")){const n=location.hash.indexOf(this.defaultQueryParamSeparator);return n!==-1?e+location.hash.slice(n):e}return location.search?e+location.search:e}getModalPathFromPath(){return this.getQueryParam(this.getModalViewParamName())}getModalParamsFromPath(){const e=this.getQueryParam(`${this.getModalViewParamName()}Params`);return e&&JSON.parse(e)}addRouteChangeListener(e){const t=re.getConfigValue("routing.useHashRouting");Mn.addEventListener("message",n=>{if(n.data.msg==="refreshRoute"&&n.origin===window.origin){const l=t?lt.getHashPath():lt.getModifiedPathname();e(l)}}),Mn.addEventListener("popstate",n=>{const l=t?lt.getHashPath(location.href):lt.getModifiedPathname();e(l,n.detail)})}buildRoute(e,t,n){return e.parent?this.buildRoute(e.parent,`/${e.parent.pathSegment}${t}`,n):t+(n?"?"+n:"")}getContext(e,t){return t==null?this.getContext(e,e.context||{}):e.parent?{...this.getContext(e.parent),...t}:t}getRouteLink(e,t,n){const l=n||"";if(e.externalLink&&e.externalLink.url){const r=e.externalLink.url,o={context:we.substituteDynamicParamsInObject(this.getContext(e),t),pathParams:t,nodeParams:{}};return this.substituteViewUrl(r,o)}else if(e.link){const r=e.link.startsWith("/")?e.link:lt.buildFromRelativePath(e);return l+r}const a=we.buildRoute(e,`/${e.pathSegment}`);return l+le.replaceVars(a,t,":",!1)}calculateNodeHref(e,t){const n=we.getRouteLink(e,t,re.getConfigValue("routing.useHashRouting")?"#":"");return this.getI18nViewUrl(n.url)||n}getNodeHref(e,t){if(re.getConfigBooleanValue("navigation.addNavHrefs"))return this.calculateNodeHref(e,t)}substituteDynamicParamsInObject(e,t,n=":",l=!1){return Object.entries(e).map(([a,r])=>{const o=l?Object.keys(t).find(c=>r&&r.indexOf(n+c)>=0):Object.keys(t).find(c=>r===n+c);return[a,o?l?r.replace(n+o,t[o]):t[o]:r]}).reduce((a,[r,o])=>Object.assign(a,{[r]:o}),{})}mapPathToNode(e,t){if(!e||!t)return;const n=le.trimLeadingSlash(e).split("/"),l=we.buildRoute(t,`/${t.pathSegment}`),a=le.trimLeadingSlash(l).split("/");if(n.length<a.length)return;let r="";for(let o=0;o<a.length;o++){if(n[o]!==a[o]&&a[o].indexOf(":")!==0)return;r+="/"+n[o]}return r}isDynamicNode(e){return e.pathSegment&&e.pathSegment.length>0&&e.pathSegment[0]===":"}getDynamicNodeValue(e,t){return this.isDynamicNode(e)?t[e.pathSegment.substring(1)]:void 0}getI18nViewUrl(e){const t="{i18n.currentLocale}",n=St.getCurrentLocale();return e&&e.includes(t)?e.replace(t,n):e}substituteViewUrl(e,t){const n="context.",l="nodeParams.",a="routing.queryParams";if(e=le.replaceVars(e,t.pathParams,":",!1),e=le.replaceVars(e,t.context,n),e=le.replaceVars(e,t.nodeParams,l),e=this.getI18nViewUrl(e),e&&e.includes(a)){const r=e.split("?")[1];if(r){const o=r.split("=")[0];ul.getSearchParams()[o]?e=e.replace(`{${a}.${o}}`,ul.getSearchParams()[o]):e=e.replace(`?${o}={${a}.${o}}`,"")}}return e}sanitizeParamsMap(e){return Object.entries(e).reduce((t,n)=>(t[da.sanitizeParam(n[0])]=da.sanitizeParam(n[1]),t),{})}setFeatureToggles(e,t){let n;const l=this.sanitizeParamsMap(this.parseParams(t.split("?")[1]));if(l[e]&&(n=l[e]),!n)return;const a=n.split(",");a.length>0&&a[0]!==""&&a.forEach(r=>Uo.setFeatureToggle(r,!0))}getIntentObject(e){const t=e.split("?intent=")[1];if(t){const n=t.split("?"),l=n[0].split("-"),a=Object.fromEntries(new URLSearchParams(n[1]).entries());return{semanticObject:l[0],action:l[1],params:a}}}getIntentPath(e){const t=re.getConfigValue("navigation.intentMapping");if(t&&t.length>0){const n=e.replace(/\?intent=/i,"?intent="),l=this.getIntentObject(n);if(l){let a=t.find(o=>o.semanticObject===l.semanticObject&&o.action===l.action);if(!a)return!1;if(a.externalLink)return{...a.externalLink,external:!0};a=a.pathSegment;const r=Object.entries(l.params);if(r&&r.length>0){a=this.resolveDynamicIntentPath(a,l.params);let o=re.getConfigValue("routing.nodeParamPrefix");o=o||"~",a=a.concat(`?${o}`),r.forEach(([c,g],d)=>{a+=`${d>0?"&"+o:""}${c}=${g}`})}return a}else console.warn("Could not parse given intent link.")}else console.warn("No intent mappings are defined in Luigi configuration.");return!1}resolveDynamicIntentPath(e,t){if(!t)return e;let n=e;for(const[l,a]of Object.entries(t)){const r=new RegExp("/:"+l+"(/|$)","g");n=n.replace(r,`/${a}/`)}return n=n.replace(/\/$/,""),n}prepareSearchParamsForClient(e){const t={};return e&&e.clientPermissions&&e.clientPermissions.urlParameters&&Object.keys(e.clientPermissions.urlParameters).forEach(n=>{n in ul.getSearchParams()&&e.clientPermissions.urlParameters[n].read===!0&&(t[n]=ul.getSearchParams()[n])}),t}addSearchParamsFromClient(e,t,n){const l={...t};if(le.isObject(l)&&e&&e.clientPermissions&&e.clientPermissions.urlParameters){const a={};Object.keys(e.clientPermissions.urlParameters).forEach(r=>{r in l&&e.clientPermissions.urlParameters[r].write===!0&&(a[r]=l[r],delete l[r])});for(const r in l)console.warn(`No permission to add the search param "${r}" to the url`);Object.keys(a).length>0&&ul.addSearchParams(a,n)}}hasIntent(e){return!!e&&e.toLowerCase().includes("#?intent=")}getPageNotFoundRedirectResult(e,t=!1){const n=re.getConfigValue("routing.pageNotFoundHandler");if(typeof n=="function"){const l=n(e,t);if(l&&l.redirectTo)return{path:l.redirectTo,keepURL:l.keepURL}}return{}}async handlePageNotFoundAndRetrieveRedirectPath(e,t,n){if(n)return t;const l=this.getPageNotFoundRedirectResult(t).path;if(l!==void 0)return l;this.showRouteNotFoundAlert(e,t),console.warn(`Could not find the requested route: ${t}`)}showRouteNotFoundAlert(e,t,n=!1){const l={text:St.getTranslation(n?"luigi.notExactTargetNode":"luigi.requestedRouteNotFound",{route:t}),type:"error",ttl:1};e.showAlert(l,!1)}modifySearchParams(e,t,n){for(const[l,a]of Object.entries(e)){const r=n?`${n}${l}`:l;t.set(r,a),a===void 0&&t.delete(r)}}addParamsOnHashRouting(e,t,n){let l=t;const[a,r]=l.split("?"),o=new URLSearchParams(r);return this.modifySearchParams(e,o,n),l=a,o.toString()!==""&&(l+=`?${o.toString()}`),l}getURLWithoutModalData(e,t){let n=new URLSearchParams(e);return n.delete(t),n.delete(`${t}Params`),n.toString()}handleHistoryState(e,t){return e&&e.modalHistoryLength?e.modalHistoryLength+=1:e={modalHistoryLength:1,historygap:history.length,pathBeforeHistory:t},e}}const we=new $2;class x2{optimizeScope(e){let t="";const n=[];return[...e].sort().forEach(l=>{l&&!n.includes(l)&&(!t||l.indexOf(t)!==0)&&(n.push(l),t=l)}),n}expandScope(e){const t=[];return e.forEach(n=>{let l="";n.split(".").forEach(a=>{l=l+(l?".":"")+a,t.push(l)})}),[...new Set(t)]}doOnStoreChange(e,t,n=[]){e.subscribe(t),this.expandScope(n).forEach(l=>{e.subscribeToScope(t,l)})}}const dn=new x2;class ek{constructor(){this.listeners=[],this.hashChangeWithoutSync=!1}addEventListener(e,t){this.listeners.push({type:e,listenerFn:t}),window.addEventListener(e,t)}removeEventListener(e,t){this.listeners=this.listeners.filter(n=>!(n.type===e&&n.listenerFn===t)),window.removeEventListener(e,t)}removeAllEventListeners(){this.listeners.forEach(e=>{window.removeEventListener(e.type,e.listenerFn)}),this.listeners=[]}}const Mn=new ek;class tk{constructor(){this.init=!1,this.storage=void 0,this.browseSupported=void 0}checkInit(){this.init||(this.storage=window.localStorage,this.browseSupported=this.supportLocalStorage(),this.init=!0)}supportLocalStorage(){try{return"localStorage"in window&&window.localStorage!==null}catch{return!1}}checkStorageBrowserSupport(){if(!this.browseSupported)throw"Browser does not support local storage"}process(e,t,n,l,a){try{this.checkInit(),this.checkStorageBrowserSupport();const r=this[l];if(typeof r!="function")throw l+" is not a supported operation for the storage";const o=r.bind(this,this.cleanHostname(t),a)();this.sendBackOperation(e,n,"OK",o)}catch(r){console.log(r),this.sendBackOperation(e,n,"ERROR",r)}}cleanHostname(e){return e.replace("http://","").replace("https://","")}setItem(e,t){this.checkKey(t);const n=this.stringifyValue(t.value),l=this.buildKey(e,t.key);this.storage.setItem(l,n)}getItem(e,t){this.checkKey(t);const n=this.buildKey(e,t.key),l=this.storage.getItem(n);if(l)return this.parseJsonIfPossible(l)}buildKey(e,t){return this.buildPrefix(e)+t.trim()}buildPrefix(e){return"Luigi#"+e+"#"}removeItem(e,t){this.checkKey(t);const n=this.buildKey(e,t.key),l=this.storage.getItem(n);if(l)return this.storage.removeItem(n),l}clear(e,t){const n=this.buildPrefix(e);Object.keys(this.storage).filter(l=>l.startsWith(n)).forEach(l=>this.storage.removeItem(l))}has(e,t){this.checkKey(t);const n=this.buildKey(e,t.key);return!!this.storage.getItem(n)}getAllKeys(e,t){const n=this.buildPrefix(e);return Object.keys(this.storage).filter(l=>l.startsWith(n)).map(l=>l.substring(n.length))}checkKey(e){if(!e.key||e.key.trim().length===0)throw"Missing key, we cannot execute storage operation"}parseJsonIfPossible(e){try{return JSON.parse(e)}catch{return e}}stringifyValue(e){if(!e)throw"Value is empty";if(typeof e=="string"||e instanceof String)return e;try{return JSON.stringify(e)}catch(t){throw"Value cannot be stringify, error: "+t}}sendBackOperation(e,t,n,l){let a={msg:"storage",data:{id:t,status:n,result:l}};Ee.getMicrofrontendsInDom().filter(r=>r.id===e).map(r=>r.container).map(r=>Ee.sendMessageToIframe(r,a))}}const nk=new tk;class ik{constructor(){}processUserSettingGroups(){const e=[],t=re.getConfigValue("userSettings.userSettingGroups"),n=re.getConfigValue("settings.userSettings.userSettingGroups"),l=t||n;if(le.isObject(l)){for(const a in l){let r={};r[a]=l[a],e.push(r)}return e}return e}createIframe(e,t){const n=Ee.createIframe(e,void 0,void 0,"usersettings"),l=document.querySelector(".iframeUserSettingsCtn");return n.setAttribute("userSettingsGroup",t),n.userSettingsGroup=t,l.appendChild(n),n}getUserSettingsIframesInDom(){const e=document.querySelector(".iframeUserSettingsCtn");return e?[...e.children]:[]}hideUserSettingsIframe(){this.getUserSettingsIframesInDom().forEach(e=>{e.style.display="none"})}findActiveCustomUserSettingsIframe(e){let t=document.querySelectorAll("[userSettingsGroup]");for(let n=0;n<t.length;n++)if(t[n].contentWindow===e)return t[n];return null}}const oa=new ik;class lk{constructor(){}handleVisibilityGlobalSearch(){if(!document.querySelector(".lui-global-search"))return;const e=document.querySelector(".lui-global-search"),t=e.offsetWidth<=384;e.classList.toggle("lui-global-search-toggle",t)}}const Kf=new lk;function jf(i,e,t){const n=i.slice();return n[9]=e[t],n}function Jf(i){let e,t,n=(i[9].dataSanitized?i[9].settings.text:"")+"",l,a,r,o,c,g;function d(){return i[4](i[9])}return{c(){e=S("div"),t=S("p"),l=H(),a=S("button"),a.innerHTML='<i class="sap-icon sap-icon--decline"></i>',r=H(),f(t,"class","fd-message-strip__text svelte-dkyena"),f(a,"class","fd-button fd-button--transparent fd-button--compact fd-message-strip__close"),f(a,"aria-label","Close"),f(a,"aria-controls","j2ALl423"),f(a,"data-testid","luigi-alert-dismiss"),f(e,"class",o="fd-message-strip fd-message-strip--"+i[1][i[9].settings.type]+" fd-message-strip--dismissible svelte-dkyena"),f(e,"role","alert"),f(e,"id","j2ALl423"),f(e,"data-testid","luigi-alert")},m(h,p){A(h,e,p),w(e,t),t.innerHTML=n,w(e,l),w(e,a),w(e,r),c||(g=ne(a,"click",d),c=!0)},p(h,p){i=h,p&1&&n!==(n=(i[9].dataSanitized?i[9].settings.text:"")+"")&&(t.innerHTML=n),p&3&&o!==(o="fd-message-strip fd-message-strip--"+i[1][i[9].settings.type]+" fd-message-strip--dismissible svelte-dkyena")&&f(e,"class",o)},d(h){h&&L(e),c=!1,g()}}}function ak(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Jf(jf(i,t,l));return{c(){e=S("div");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-shell__overlay luigi-alert--overlay svelte-dkyena"),f(e,"aria-hidden","false")},m(l,a){A(l,e,a);for(let r=0;r<n.length;r+=1)n[r].m(e,null);i[5](e)},p(l,[a]){if(a&11){t=l[0];let r;for(r=0;r<t.length;r+=1){const o=jf(l,t,r);n[r]?n[r].p(o,a):(n[r]=Jf(o),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:He,o:He,d(l){l&&L(e),ct(n,l),i[5](null)}}}function rk(i,e,t){const n=Jt();let{alertQueue:l}=e,{alertTypeMap:a={info:"information",success:"success",warning:"warning",error:"error"}}=e,r;const o=vt("getUnsavedChangesModalPromise"),c=vt("handleNavigation");Gn(()=>{if(!l||!l.length){console.warn("There are no alerts to display");return}if(l.processed)return;const p=l.map(b=>{const{text:m,links:v,closeAfter:C}=b.settings,y=da.processTextAndLinks(m,v,b.settings.id);if(setTimeout(()=>{y.links.forEach(P=>{g(P,b.settings.id)})}),b.settings.afterInit){const P=r;b.settings.afterInit({dismiss:()=>{P&&P.isConnected?n("alertDismiss",{id:b.settings.id}):console.debug("Alert already dismissed: ",P)},element:P})}return{settings:{...b.settings,text:y.sanitizedText},dataSanitized:!0}});p.processed=!0,t(0,l=p)}),xt(()=>{});function g(p,b){try{const m=document.getElementById(p.elemId);m.dismissListener&&m.removeEventListener("click",m.dismissListener);const v=C=>{if(p.url){const y=!p.url.startsWith("/");C.stopPropagation(),o().then(()=>{const P={params:{link:p.url,relative:y}};c(P)},()=>{})}else p.dismissKey&&n("alertDismiss",{id:b,dismissKey:p.dismissKey})};m.addEventListener("click",v),m.dismissListener=v}catch(m){console.error("Error on Alert::addClickListener",m)}}const d=p=>n("alertDismiss",{id:p.settings.id});function h(p){Je[p?"unshift":"push"](()=>{r=p,t(2,r)})}return i.$$set=p=>{"alertQueue"in p&&t(0,l=p.alertQueue),"alertTypeMap"in p&&t(1,a=p.alertTypeMap)},[l,a,r,n,d,h]}class sk extends Vt{constructor(e){super(),Dt(this,e,rk,ak,At,{alertQueue:0,alertTypeMap:1})}}const Ml=38,Hi=40,vi=13,mi=27,Ka=32,ok=36,uk=35;function Yf(i){let e,t;return{c(){e=S("i"),f(e,"class",t=ei(i[3](i[0].icon))+" svelte-lzffuc")},m(n,l){A(n,e,l)},p(n,l){l&1&&t!==(t=ei(n[3](n[0].icon))+" svelte-lzffuc")&&f(e,"class",t)},d(n){n&&L(e)}}}function Qf(i){let e,t,n=i[0].buttonConfirm+"",l,a,r;return{c(){e=S("div"),t=S("button"),l=Le(n),f(t,"data-testid","luigi-modal-confirm"),f(t,"class","fd-button fd-button--emphasized fd-button--compact fd-message-box__decisive-button confirm-button"),f(e,"class","fd-bar__element")},m(o,c){A(o,e,c),w(e,t),w(t,l),a||(r=ne(t,"click",i[4]),a=!0)},p(o,c){c&1&&n!==(n=o[0].buttonConfirm+"")&&Ae(l,n)},d(o){o&&L(e),a=!1,r()}}}function fk(i){let e,t,n,l,a,r,o,c=i[0].header+"",g,d,h,p=i[0].body+"",b,m,v,C,y,P,T=i[0].buttonDismiss+"",E,V,I,B,M,D=i[0].type&&Yf(i),q=i[0].buttonConfirm!==!1&&Qf(i);return{c(){e=S("div"),t=S("section"),n=S("header"),l=S("div"),a=S("div"),D&&D.c(),r=H(),o=S("h2"),g=Le(c),d=H(),h=S("div"),b=H(),m=S("footer"),v=S("div"),q&&q.c(),C=H(),y=S("div"),P=S("button"),E=Le(T),f(o,"class","fd-title fd-title--h5"),f(a,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(n,"class","fd-bar fd-bar--header fd-message-box__header"),f(h,"class","fd-message-box__body svelte-lzffuc"),f(P,"data-testid","luigi-modal-dismiss"),f(P,"class",V="fd-button "+(i[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button"),f(y,"class","fd-bar__element"),f(v,"class","fd-bar__right"),f(m,"class","fd-bar fd-bar--footer fd-message-box__footer"),f(t,"class","fd-message-box__content svelte-lzffuc"),f(e,"class",I="fd-message-box-docs-static fd-message-box fd-message-box--"+i[0].type+" fd-message-box--active svelte-lzffuc"),f(e,"data-testid","luigi-confirmation-modal")},m(X,Q){A(X,e,Q),w(e,t),w(t,n),w(n,l),w(l,a),D&&D.m(a,null),w(a,r),w(a,o),w(o,g),w(t,d),w(t,h),h.innerHTML=p,w(t,b),w(t,m),w(m,v),q&&q.m(v,null),w(v,C),w(v,y),w(y,P),w(P,E),B||(M=[ne(window,"keydown",i[1]),ne(P,"click",i[5])],B=!0)},p(X,[Q]){X[0].type?D?D.p(X,Q):(D=Yf(X),D.c(),D.m(a,r)):D&&(D.d(1),D=null),Q&1&&c!==(c=X[0].header+"")&&Ae(g,c),Q&1&&p!==(p=X[0].body+"")&&(h.innerHTML=p),X[0].buttonConfirm!==!1?q?q.p(X,Q):(q=Qf(X),q.c(),q.m(v,C)):q&&(q.d(1),q=null),Q&1&&T!==(T=X[0].buttonDismiss+"")&&Ae(E,T),Q&1&&V!==(V="fd-button "+(X[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button")&&f(P,"class",V),Q&1&&I!==(I="fd-message-box-docs-static fd-message-box fd-message-box--"+X[0].type+" fd-message-box--active svelte-lzffuc")&&f(e,"class",I)},i:He,o:He,d(X){X&&L(e),D&&D.d(),q&&q.d(),B=!1,Ze(M)}}}function ck(i,e,t){const n=Jt();let{settings:l}=e;const a={confirmation:"question-mark",information:"message-information",warning:"message-warning",error:"message-error",success:"message-success"};Ja(()=>{Ee.enableA11YKeyboardBackdropExceptClassName(".fd-message-box-docs-static")}),xt(()=>{const d={icon:a[l.type],header:St.getTranslation("luigi.confirmationModal.header"),body:St.getTranslation("luigi.confirmationModal.body"),buttonDismiss:St.getTranslation("luigi.button.dismiss"),buttonConfirm:St.getTranslation("luigi.button.confirm")};t(0,l={...l,body:da.sanatizeHtmlExceptTextFormatting(l.body)}),t(0,l=Object.assign(d,l)),Ee.disableA11YKeyboardExceptClassName(".fd-message-box-docs-static");const h=l.buttonConfirm?"confirm-button":"dismiss-button";try{document.querySelector(`.${h}`).focus()}catch{console.warn(`Couldn't focus ${h} in modal`)}});function r(d){return oe.renderIconClassName(d)}function o(d){d.keyCode===mi&&n("modalDismiss")}const c=()=>n("modalConfirm"),g=()=>n("modalDismiss");return i.$$set=d=>{"settings"in d&&t(0,l=d.settings)},[l,o,n,r,c,g]}class dk extends Vt{constructor(e){super(),Dt(this,e,ck,fk,At,{settings:0,handleKeydown:1})}get handleKeydown(){return this.$$.ctx[1]}}function hk(i){let e,t,n;const l=i[5].default,a=U_(l,i,i[4],null);return{c(){e=S("div"),a&&a.c(),f(e,"class",t=i[0]+" "+(i[1]==="main"?"zIndexZero":"")+" svelte-az6f9h"),f(e,"aria-hidden","false")},m(r,o){A(r,e,o),a&&a.m(e,null),n=!0},p(r,[o]){a&&a.p&&(!n||o&16)&&H_(a,l,r,r[4],n?B_(l,r[4],o,null):W_(r[4]),null),(!n||o&3&&t!==(t=r[0]+" "+(r[1]==="main"?"zIndexZero":"")+" svelte-az6f9h"))&&f(e,"class",t)},i(r){n||(R(a,r),n=!0)},o(r){U(a,r),n=!1},d(r){r&&L(e),a&&a.d(r)}}}function gk(i,e,t){let{$$slots:n={},$$scope:l}=e;const a=Jt();let{backdropClass:r=""}=e,{backdropActive:o=!1}=e,c=!1,g={},{area:d}=e,{disable:h}=e;const p=()=>{const m="lui-backdrop ";o?g.data&&g.data.heightCssClass?t(0,r=m+g.data.heightCssClass):t(0,r=m+"height-auto"):t(0,r="")},b=m=>{if(!d)return!0;const C=[...Ee.getMicrofrontendsInDom(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(y=>y.container&&y.container.contentWindow===m.source);return!(C&&d===C.type)};return xt(()=>{re.getConfigValue("settings.backdropDisabled")||(p(),Mn.addEventListener("message",v=>{const C=Ee.getValidMessageSource(v);C&&h!==!0&&(v.data.msg==="luigi.add-backdrop"&&(t(2,o=b(v)),a("stateChanged",{backdropActive:!0}),Ee.disableA11yOfInactiveIframe(C)),v.data.msg==="luigi.remove-backdrop"&&(t(2,o=!1),a("stateChanged",{backdropActive:!1}),c&&Ee.enableA11yOfInactiveIframe()))}))}),Gn(()=>{o!==c&&(c=o,p())}),i.$$set=m=>{"backdropClass"in m&&t(0,r=m.backdropClass),"backdropActive"in m&&t(2,o=m.backdropActive),"area"in m&&t(1,d=m.area),"disable"in m&&t(3,h=m.disable),"$$scope"in m&&t(4,l=m.$$scope)},[r,d,o,h,l,n]}class Ol extends Vt{constructor(e){super(),Dt(this,e,gk,hk,At,{backdropClass:0,backdropActive:2,area:1,disable:3})}}function Zf(i){let e,t,n,l,a,r,o,c,g,d,h,p,b,m;t=new Ol({props:{disable:i[2]}});let v=i[0].title&&Xf(i);return{c(){e=S("div"),Ue(t.$$.fragment),n=H(),l=S("div"),a=S("div"),v&&v.c(),r=H(),o=S("div"),c=S("div"),g=S("button"),d=S("i"),f(a,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(d,"class","sap-icon sap-icon--decline"),f(g,"class","fd-button fd-button--transparent fd-button--compact"),f(g,"aria-label","close"),f(g,"data-testid",h=i[0].closebtn_data_testid&&i[5]?i[0].closebtn_data_testid:"lui-modal-index-"+i[1]),f(c,"class","fd-bar__element"),f(o,"class","fd-bar__right"),f(e,"class","lui-modal-header fd-dialog__header fd-bar fd-bar--header svelte-1rzu3xo")},m(C,y){A(C,e,y),Oe(t,e,null),w(e,n),w(e,l),w(l,a),v&&v.m(a,null),w(e,r),w(e,o),w(o,c),w(c,g),w(g,d),p=!0,b||(m=ne(g,"click",i[11]),b=!0)},p(C,y){const P={};y&4&&(P.disable=C[2]),t.$set(P),C[0].title?v?v.p(C,y):(v=Xf(C),v.c(),v.m(a,null)):v&&(v.d(1),v=null),(!p||y&35&&h!==(h=C[0].closebtn_data_testid&&C[5]?C[0].closebtn_data_testid:"lui-modal-index-"+C[1]))&&f(g,"data-testid",h)},i(C){p||(R(t.$$.fragment,C),p=!0)},o(C){U(t.$$.fragment,C),p=!1},d(C){C&&L(e),Fe(t),v&&v.d(),b=!1,m()}}}function Xf(i){let e,t=i[0].title+"",n;return{c(){e=S("h2"),n=Le(t),f(e,"class","fd-title fd-title--h5"),f(e,"id","dialog-title-1")},m(l,a){A(l,e,a),w(e,n)},p(l,a){a&1&&t!==(t=l[0].title+"")&&Ae(n,t)},d(l){l&&L(e)}}}function $f(i){let e;const t=i[10].default,n=U_(t,i,i[9],null);return{c(){n&&n.c()},m(l,a){n&&n.m(l,a),e=!0},p(l,a){n&&n.p&&(!e||a&512)&&H_(n,t,l,l[9],e?B_(t,l[9],a,null):W_(l[9]),null)},i(l){e||(R(n,l),e=!0)},o(l){U(n,l),e=!1},d(l){n&&n.d(l)}}}function xf(i){let e;return{c(){e=S("div"),e.innerHTML=`<div class="fd-busy-indicator fd-busy-indicator--m" aria-hidden="false" aria-label="Loading" data-testid="luigi-loading-spinner"><div class="fd-busy-indicator__circle"></div>
|
|
52
|
+
}`;var ot=Ff(function(){return yt(F,Ge+"return "+ye).apply(t,W)});if(ot.source=ye,po(ot))throw ot;return ot}function tw(s){return Nt(s).toLowerCase()}function nw(s){return Nt(s).toUpperCase()}function iw(s,u,_){if(s=Nt(s),s&&(_||u===t))return Ko(s);if(!s||!(u=zn(u)))return s;var k=li(s),N=li(u),F=jo(k,N),W=Jo(k,N)+1;return rl(k,F,W).join("")}function lw(s,u,_){if(s=Nt(s),s&&(_||u===t))return s.slice(0,Qo(s)+1);if(!s||!(u=zn(u)))return s;var k=li(s),N=Jo(k,li(u))+1;return rl(k,0,N).join("")}function aw(s,u,_){if(s=Nt(s),s&&(_||u===t))return s.replace(Zt,"");if(!s||!(u=zn(u)))return s;var k=li(s),N=jo(k,li(u));return rl(k,N).join("")}function rw(s,u){var _=q,k=X;if(Kt(u)){var N="separator"in u?u.separator:N;_="length"in u?st(u.length):_,k="omission"in u?zn(u.omission):k}s=Nt(s);var F=s.length;if(Yl(s)){var W=li(s);F=W.length}if(_>=F)return s;var G=_-Ql(k);if(G<1)return k;var ee=W?rl(W,0,G).join(""):s.slice(0,G);if(N===t)return ee+k;if(W&&(G+=ee.length-G),mo(N)){if(s.slice(G).search(N)){var me,be=ee;for(N.global||(N=Rs(N.source,Nt(Ki.exec(N))+"g")),N.lastIndex=0;me=N.exec(be);)var ye=me.index;ee=ee.slice(0,ye===t?G:ye)}}else if(s.indexOf(zn(N),G)!=G){var Ve=ee.lastIndexOf(N);Ve>-1&&(ee=ee.slice(0,Ve))}return ee+k}function sw(s){return s=Nt(s),s&&qi.test(s)?s.replace(Ii,Op):s}var ow=na(function(s,u,_){return s+(_?" ":"")+u.toUpperCase()}),wo=Fu("toUpperCase");function Of(s,u,_){return s=Nt(s),u=_?t:u,u===t?Ep(s)?zp(s):Sp(s):s.match(u)||[]}var Ff=ut(function(s,u){try{return nn(s,t,u)}catch(_){return po(_)?_:new et(_)}}),uw=Vi(function(s,u){return Gt(u,function(_){_=gi(_),Ri(s,_,go(s[_],s))}),s});function fw(s){var u=s==null?0:s.length,_=je();return s=u?Wt(s,function(k){if(typeof k[1]!="function")throw new Jn(r);return[_(k[0]),k[1]]}):[],ut(function(k){for(var N=-1;++N<u;){var F=s[N];if(nn(F[0],this,k))return nn(F[1],this,k)}})}function cw(s){return Om(Qn(s,h))}function ko(s){return function(){return s}}function dw(s,u){return s==null||s!==s?u:s}var hw=zu(),gw=zu(!0);function Dn(s){return s}function So(s){return _u(typeof s=="function"?s:Qn(s,h))}function _w(s){return mu(Qn(s,h))}function pw(s,u){return bu(s,Qn(u,h))}var mw=ut(function(s,u){return function(_){return Ra(_,s,u)}}),bw=ut(function(s,u){return function(_){return Ra(s,_,u)}});function Co(s,u,_){var k=on(u),N=Er(u,k);_==null&&!(Kt(u)&&(N.length||!k.length))&&(_=u,u=s,s=this,N=Er(u,on(u)));var F=!(Kt(_)&&"chain"in _)||!!_.chain,W=Oi(s);return Gt(N,function(G){var ee=u[G];s[G]=ee,W&&(s.prototype[G]=function(){var me=this.__chain__;if(F||me){var be=s(this.__wrapped__),ye=be.__actions__=An(this.__actions__);return ye.push({func:ee,args:arguments,thisArg:s}),be.__chain__=me,be}return ee.apply(s,el([this.value()],arguments))})}),s}function vw(){return xe._===this&&(xe._=Kp),this}function yo(){}function ww(s){return s=st(s),ut(function(u){return vu(u,s)})}var kw=eo(Wt),Sw=eo(Bo),Cw=eo(Ps);function Uf(s){return so(s)?Ns(gi(s)):xm(s)}function yw(s){return function(u){return s==null?t:Ll(s,u)}}var Pw=Hu(),Nw=Hu(!0);function Po(){return[]}function No(){return!1}function Tw(){return{}}function Iw(){return""}function Lw(){return!0}function Aw(s,u){if(s=st(s),s<1||s>_e)return[];var _=ve,k=mn(s,ve);u=je(u),s-=ve;for(var N=Ls(k,u);++_<s;)u(_);return N}function Ew(s){return it(s)?Wt(s,gi):Bn(s)?[s]:An(lf(Nt(s)))}function Rw(s){var u=++qp;return Nt(s)+u}var Dw=Fr(function(s,u){return s+u},0),Vw=to("ceil"),Mw=Fr(function(s,u){return s/u},1),Ow=to("floor");function Fw(s){return s&&s.length?Ar(s,Dn,Bs):t}function Uw(s,u){return s&&s.length?Ar(s,je(u,2),Bs):t}function zw(s){return qo(s,Dn)}function Bw(s,u){return qo(s,je(u,2))}function Hw(s){return s&&s.length?Ar(s,Dn,Gs):t}function Ww(s,u){return s&&s.length?Ar(s,je(u,2),Gs):t}var qw=Fr(function(s,u){return s*u},1),Gw=to("round"),Kw=Fr(function(s,u){return s-u},0);function jw(s){return s&&s.length?Is(s,Dn):0}function Jw(s,u){return s&&s.length?Is(s,je(u,2)):0}return O.after=_v,O.ary=_f,O.assign=n0,O.assignIn=Lf,O.assignInWith=Zr,O.assignWith=i0,O.at=l0,O.before=pf,O.bind=go,O.bindAll=uw,O.bindKey=mf,O.castArray=Tv,O.chain=df,O.chunk=O1,O.compact=F1,O.concat=U1,O.cond=fw,O.conforms=cw,O.constant=ko,O.countBy=jb,O.create=a0,O.curry=bf,O.curryRight=vf,O.debounce=wf,O.defaults=r0,O.defaultsDeep=s0,O.defer=pv,O.delay=mv,O.difference=z1,O.differenceBy=B1,O.differenceWith=H1,O.drop=W1,O.dropRight=q1,O.dropRightWhile=G1,O.dropWhile=K1,O.fill=j1,O.filter=Yb,O.flatMap=Xb,O.flatMapDeep=$b,O.flatMapDepth=xb,O.flatten=of,O.flattenDeep=J1,O.flattenDepth=Y1,O.flip=bv,O.flow=hw,O.flowRight=gw,O.fromPairs=Q1,O.functions=g0,O.functionsIn=_0,O.groupBy=ev,O.initial=X1,O.intersection=$1,O.intersectionBy=x1,O.intersectionWith=eb,O.invert=m0,O.invertBy=b0,O.invokeMap=nv,O.iteratee=So,O.keyBy=iv,O.keys=on,O.keysIn=Rn,O.map=Gr,O.mapKeys=w0,O.mapValues=k0,O.matches=_w,O.matchesProperty=pw,O.memoize=jr,O.merge=S0,O.mergeWith=Af,O.method=mw,O.methodOf=bw,O.mixin=Co,O.negate=Jr,O.nthArg=ww,O.omit=C0,O.omitBy=y0,O.once=vv,O.orderBy=lv,O.over=kw,O.overArgs=wv,O.overEvery=Sw,O.overSome=Cw,O.partial=_o,O.partialRight=kf,O.partition=av,O.pick=P0,O.pickBy=Ef,O.property=Uf,O.propertyOf=yw,O.pull=lb,O.pullAll=ff,O.pullAllBy=ab,O.pullAllWith=rb,O.pullAt=sb,O.range=Pw,O.rangeRight=Nw,O.rearg=kv,O.reject=ov,O.remove=ob,O.rest=Sv,O.reverse=co,O.sampleSize=fv,O.set=T0,O.setWith=I0,O.shuffle=cv,O.slice=ub,O.sortBy=gv,O.sortedUniq=pb,O.sortedUniqBy=mb,O.split=X0,O.spread=Cv,O.tail=bb,O.take=vb,O.takeRight=wb,O.takeRightWhile=kb,O.takeWhile=Sb,O.tap=Fb,O.throttle=yv,O.thru=qr,O.toArray=Nf,O.toPairs=Rf,O.toPairsIn=Df,O.toPath=Ew,O.toPlainObject=If,O.transform=L0,O.unary=Pv,O.union=Cb,O.unionBy=yb,O.unionWith=Pb,O.uniq=Nb,O.uniqBy=Tb,O.uniqWith=Ib,O.unset=A0,O.unzip=ho,O.unzipWith=cf,O.update=E0,O.updateWith=R0,O.values=aa,O.valuesIn=D0,O.without=Lb,O.words=Of,O.wrap=Nv,O.xor=Ab,O.xorBy=Eb,O.xorWith=Rb,O.zip=Db,O.zipObject=Vb,O.zipObjectDeep=Mb,O.zipWith=Ob,O.entries=Rf,O.entriesIn=Df,O.extend=Lf,O.extendWith=Zr,Co(O,O),O.add=Dw,O.attempt=Ff,O.camelCase=F0,O.capitalize=Vf,O.ceil=Vw,O.clamp=V0,O.clone=Iv,O.cloneDeep=Av,O.cloneDeepWith=Ev,O.cloneWith=Lv,O.conformsTo=Rv,O.deburr=Mf,O.defaultTo=dw,O.divide=Mw,O.endsWith=U0,O.eq=ri,O.escape=z0,O.escapeRegExp=B0,O.every=Jb,O.find=Qb,O.findIndex=rf,O.findKey=o0,O.findLast=Zb,O.findLastIndex=sf,O.findLastKey=u0,O.floor=Ow,O.forEach=hf,O.forEachRight=gf,O.forIn=f0,O.forInRight=c0,O.forOwn=d0,O.forOwnRight=h0,O.get=bo,O.gt=Dv,O.gte=Vv,O.has=p0,O.hasIn=vo,O.head=uf,O.identity=Dn,O.includes=tv,O.indexOf=Z1,O.inRange=M0,O.invoke=v0,O.isArguments=Rl,O.isArray=it,O.isArrayBuffer=Mv,O.isArrayLike=En,O.isArrayLikeObject=Xt,O.isBoolean=Ov,O.isBuffer=sl,O.isDate=Fv,O.isElement=Uv,O.isEmpty=zv,O.isEqual=Bv,O.isEqualWith=Hv,O.isError=po,O.isFinite=Wv,O.isFunction=Oi,O.isInteger=Sf,O.isLength=Yr,O.isMap=Cf,O.isMatch=qv,O.isMatchWith=Gv,O.isNaN=Kv,O.isNative=jv,O.isNil=Yv,O.isNull=Jv,O.isNumber=yf,O.isObject=Kt,O.isObjectLike=Qt,O.isPlainObject=Ua,O.isRegExp=mo,O.isSafeInteger=Qv,O.isSet=Pf,O.isString=Qr,O.isSymbol=Bn,O.isTypedArray=la,O.isUndefined=Zv,O.isWeakMap=Xv,O.isWeakSet=$v,O.join=tb,O.kebabCase=H0,O.last=Xn,O.lastIndexOf=nb,O.lowerCase=W0,O.lowerFirst=q0,O.lt=xv,O.lte=e0,O.max=Fw,O.maxBy=Uw,O.mean=zw,O.meanBy=Bw,O.min=Hw,O.minBy=Ww,O.stubArray=Po,O.stubFalse=No,O.stubObject=Tw,O.stubString=Iw,O.stubTrue=Lw,O.multiply=qw,O.nth=ib,O.noConflict=vw,O.noop=yo,O.now=Kr,O.pad=G0,O.padEnd=K0,O.padStart=j0,O.parseInt=J0,O.random=O0,O.reduce=rv,O.reduceRight=sv,O.repeat=Y0,O.replace=Q0,O.result=N0,O.round=Gw,O.runInContext=$,O.sample=uv,O.size=dv,O.snakeCase=Z0,O.some=hv,O.sortedIndex=fb,O.sortedIndexBy=cb,O.sortedIndexOf=db,O.sortedLastIndex=hb,O.sortedLastIndexBy=gb,O.sortedLastIndexOf=_b,O.startCase=$0,O.startsWith=x0,O.subtract=Kw,O.sum=jw,O.sumBy=Jw,O.template=ew,O.times=Aw,O.toFinite=Fi,O.toInteger=st,O.toLength=Tf,O.toLower=tw,O.toNumber=$n,O.toSafeInteger=t0,O.toString=Nt,O.toUpper=nw,O.trim=iw,O.trimEnd=lw,O.trimStart=aw,O.truncate=rw,O.unescape=sw,O.uniqueId=Rw,O.upperCase=ow,O.upperFirst=wo,O.each=hf,O.eachRight=gf,O.first=uf,Co(O,function(){var s={};return di(O,function(u,_){It.call(O.prototype,_)||(s[_]=u)}),s}(),{chain:!1}),O.VERSION=n,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){O[s].placeholder=O}),Gt(["drop","take"],function(s,u){_t.prototype[s]=function(_){_=_===t?1:an(st(_),0);var k=this.__filtered__&&!u?new _t(this):this.clone();return k.__filtered__?k.__takeCount__=mn(_,k.__takeCount__):k.__views__.push({size:mn(_,ve),type:s+(k.__dir__<0?"Right":"")}),k},_t.prototype[s+"Right"]=function(_){return this.reverse()[s](_).reverse()}}),Gt(["filter","map","takeWhile"],function(s,u){var _=u+1,k=_==x||_==J;_t.prototype[s]=function(N){var F=this.clone();return F.__iteratees__.push({iteratee:je(N,3),type:_}),F.__filtered__=F.__filtered__||k,F}}),Gt(["head","last"],function(s,u){var _="take"+(u?"Right":"");_t.prototype[s]=function(){return this[_](1).value()[0]}}),Gt(["initial","tail"],function(s,u){var _="drop"+(u?"":"Right");_t.prototype[s]=function(){return this.__filtered__?new _t(this):this[_](1)}}),_t.prototype.compact=function(){return this.filter(Dn)},_t.prototype.find=function(s){return this.filter(s).head()},_t.prototype.findLast=function(s){return this.reverse().find(s)},_t.prototype.invokeMap=ut(function(s,u){return typeof s=="function"?new _t(this):this.map(function(_){return Ra(_,s,u)})}),_t.prototype.reject=function(s){return this.filter(Jr(je(s)))},_t.prototype.slice=function(s,u){s=st(s);var _=this;return _.__filtered__&&(s>0||u<0)?new _t(_):(s<0?_=_.takeRight(-s):s&&(_=_.drop(s)),u!==t&&(u=st(u),_=u<0?_.dropRight(-u):_.take(u-s)),_)},_t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},_t.prototype.toArray=function(){return this.take(ve)},di(_t.prototype,function(s,u){var _=/^(?:filter|find|map|reject)|While$/.test(u),k=/^(?:head|last)$/.test(u),N=O[k?"take"+(u=="last"?"Right":""):u],F=k||/^find/.test(u);N&&(O.prototype[u]=function(){var W=this.__wrapped__,G=k?[1]:arguments,ee=W instanceof _t,me=G[0],be=ee||it(W),ye=function(gt){var pt=N.apply(O,el([gt],G));return k&&Ve?pt[0]:pt};be&&_&&typeof me=="function"&&me.length!=1&&(ee=be=!1);var Ve=this.__chain__,Ge=!!this.__actions__.length,Ye=F&&!Ve,ot=ee&&!Ge;if(!F&&be){W=ot?W:new _t(this);var Qe=s.apply(W,G);return Qe.__actions__.push({func:qr,args:[ye],thisArg:t}),new Yn(Qe,Ve)}return Ye&&ot?s.apply(this,G):(Qe=this.thru(ye),Ye?k?Qe.value()[0]:Qe.value():Qe)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(s){var u=_r[s],_=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",k=/^(?:pop|shift)$/.test(s);O.prototype[s]=function(){var N=arguments;if(k&&!this.__chain__){var F=this.value();return u.apply(it(F)?F:[],N)}return this[_](function(W){return u.apply(it(W)?W:[],N)})}}),di(_t.prototype,function(s,u){var _=O[u];if(_){var k=_.name+"";It.call(xl,k)||(xl[k]=[]),xl[k].push({name:u,func:_})}}),xl[Or(t,y).name]=[{name:"wrapper",func:t}],_t.prototype.clone=sm,_t.prototype.reverse=om,_t.prototype.value=um,O.prototype.at=Ub,O.prototype.chain=zb,O.prototype.commit=Bb,O.prototype.next=Hb,O.prototype.plant=qb,O.prototype.reverse=Gb,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=Kb,O.prototype.first=O.prototype.head,Pa&&(O.prototype[Pa]=Wb),O},Zl=Bp();Ht?((Ht.exports=Zl)._=Zl,Lt._=Zl):xe._=Zl}).call(Ba)})(ss,ss.exports);var qa=ss.exports;class B2{getNodePath(e,t){return e?we.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=le.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 Ot.extractDataFromPath(e),{keepBrowserHistory:l=!0,navSync:a=!0,preventContextUpdate:r=!1}=t;if(await Ot.shouldPreventNavigation(n)||le.trimLeadingSlash(this.getWindowPath())===le.trimLeadingSlash(e))return;const c=re.getConfigValue("routing.useHashRouting"),g=re.getConfigValue("routing.preserveQueryParams");let d=new URL(location.href);e=g?we.composeSearchParamsToRoute(e):e,c&&(d.hash=e);const h=l?"pushState":"replaceState",p=re.getConfigValue("routing.disableBrowserHistory")?"replaceState":h;window.history[p]({path:c?d.hash:e},"",c?d.hash:e);const b={detail:{preventContextUpdate:r,withoutSync:!a}},m=new CustomEvent("popstate",b);window.dispatchEvent(m)}getWindowPath(){return re.getConfigValue("routing.useHashRouting")?le.getPathWithoutHash(window.location.hash):window.location.pathname+window.location.search}buildFromRelativePath(e){let t=this.getWindowPath();if(e.parent&&e.parent.pathSegment){const n=le.trimLeadingSlash(this.getNodePath(e.parent)).split("/"),l=le.trimLeadingSlash(t).split("/");l.length>n.length&&(t=l.slice(0,n.length).join("/"))}return this.normalizePath(le.addLeadingSlash(this.concatenatePath(t,e.link)))}getHashPath(e=window.location.hash){if(e&&/\?intent=/i.test(e)){const t=e.replace("#/#","#"),n=we.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=we.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=we.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?le.trimLeadingSlash(window.location.pathname)+window.location.search:le.trimLeadingSlash(window.location.pathname)}setFeatureToggle(e){const t=re.getConfigValue("settings.featureToggles.queryStringParam");t&&typeof e=="string"&&we.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 a=window.location.href,r=t.get().unsavedChanges.persistUrl;return r&&history.pushState(window.state,"",r),t.getUnsavedChangesModalPromise().then(()=>{this.resolveUnsavedChanges(e,t,n,l,a)},()=>{})}resolveUnsavedChanges(e,t,n,l,a){e&&(this.handleRouteChange(e,t,n,l),history.replaceState(window.state,"",a))}async shouldShowModalPathInUrl(){re.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath()}async handleViewUrlMisconfigured(e,t,n,l,a){const{children:r,intendToHaveEmptyViewUrl:o,compound:c}=e,g=r&&Array.isArray(r)&&r.length>0||r||!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 d=await Ot.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),"/"),h=await we.getDefaultChildNode(d);this.showPageNotFoundError(a,h,l),this.navigateTo(h)}return!0}return!1}async handlePageNotFound(e,t,n,l,a,r,o){if(!t&&!e.compound||e.tabNav&&e.tabNav.showAsTabHeader){const c=await we.getDefaultChildNode(n,async(g,d)=>await Ot.getChildren(g,d));if(n.isExistingRoute){const g=le.getTrimmedUrl(l);this.navigateTo(`${g?`/${g}`:""}/${c}`,{keepBrowserHistory:!1}),a.set({navigationPath:[]})}else{if(c&&n.navigationPath.length>1)return this.showPageNotFoundError(a,le.trimTrailingSlash(n.matchedPath)+"/"+c,r,!0),!0;const g=await Ot.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),"/"),d=await we.getDefaultChildNode(g);this.showPageNotFoundError(a,d,r,!1,o)}return!0}return n.isExistingRoute?!1:(this.showPageNotFoundError(a,n.matchedPath,r,!0),!0)}async handleRouteChange(e,t,n,l,a,r=!1){const o=e||"";if(o.external){this.navigateToExternalLink({url:o.url,sameWindow:!o.openInNewTab});return}if(this.setFeatureToggle(o),!this.shouldSkipRoutingForUrlPatterns()){if(window.Luigi.preventLoadingModalData){window.Luigi.preventLoadingModalData=!1;return}try{if(t.shouldShowUnsavedChangesModal()){await this.handleUnsavedChangesModal(o,t,n,l);return}await this.shouldShowModalPathInUrl();const c=t.get();this.checkInvalidateCache(c,o);const g=o&&o.length?le.getPathWithoutHash(o):"",{nodeObject:d,pathData:h}=await Ot.extractDataFromPath(o),p=d.viewUrl||"";if(await this.handleViewUrlMisconfigured(d,p,c,g,t)||await this.handlePageNotFound(d,p,h,o,t,g,l))return;const b=re.getConfigBooleanValue("settings.hideNavigation"),m=we.parseParams(g.split("?")[1]),v=we.getNodeParams(m),C=oe.findViewGroup(d),y=decodeURIComponent(g.split("?")[1]||""),P=h.navigationPath&&h.navigationPath.length>0?h.navigationPath[h.navigationPath.length-1]:null;let T=!1,E=P;for(;E;){if(E.tabNav===!0){T=!0;break}else if(E.tabNav===!1){T=!1;break}else if(le.isObject(E.tabNav)){if(E.tabNav.showAsTabHeader){T=!0;break}if("hideTabNavAutomatically"in E.tabNav&&E.children)if(E.tabNav.hideTabNavAutomatically===!0&&E.children.length===1){T=!1;break}else{T=!0;break}else console.warn("tabNav:{hideTabNavAutomatically:true|false} is not configured correctly.")}E=oe.getParentNode(E,h.navigationPath)}let V=P,I=d.hideSideNav;if(I===void 0)for(;V;){if(V.tabNav&&V.hideSideNav===!0){I=!0;break}if(V.hideSideNav===!1){I=!1;break}V=oe.getParentNode(V,h.navigationPath)}const B=we.substituteDynamicParamsInObject(Object.assign({},h.context,P.context),h.pathParams);h.navigationPath._context=B;const M={hideNav:b,viewUrl:p,nodeParams:v,viewGroup:C,urlParamsRaw:y,currentNode:P,navigationPath:h.navigationPath,context:B,pathParams:h.pathParams,hideSideNav:I||!1,isolateView:d.isolateView||!1,tabNav:T};t.set(Object.assign({},M,{previousNodeValues:c?{viewUrl:c.viewUrl,isolateView:c.isolateView,viewGroup:c.viewGroup}:{}}));let D=document.getElementsByClassName("iframeContainer")[0];if(D&&(T?D.classList.add("iframeContainerTabNav"):D.classList.contains("iframeContainerTabNav")&&D.classList.remove("iframeContainerTabNav")),d.compound)oi.switchActiveIframe(n,void 0,!1),D&&D.classList.add("lui-webComponent"),this.navigateWebComponentCompound(t,d);else if(d.webcomponent)oi.switchActiveIframe(n,void 0,!1),D&&D.classList.add("lui-webComponent"),this.navigateWebComponent(t,d);else{const X=document.querySelector(".wcContainer");if(X&&(X.configChangedRequest=!1),D&&(D.classList.remove("lui-webComponent"),this.removeLastChildFromWCContainer()),!r)if(!a)await oi.navigateIframe(l,t,n);else{const Q=t.get(),ce=await t.prepareInternalData(l);Ee.sendMessageToIframe(l.iframe,{msg:"luigi.navigate",viewUrl:p,context:JSON.stringify(Q.context),nodeParams:JSON.stringify(Q.nodeParams),pathParams:JSON.stringify(Q.pathParams),searchParams:JSON.stringify(we.prepareSearchParamsForClient(l.iframe.luigi.currentNode)),internal:JSON.stringify(ce),withoutSync:!0})}}const q=document.querySelector(".lui-tab-header");q&&q.dispatchEvent(new Event("lui_ctx_update")),Ot.onNodeChange(c.currentNode,P)}catch(c){console.info("Could not handle route change",c)}}}async handleBookmarkableModalPath(){const e=we.getModalPathFromPath();if(e){const t=we.getModalParamsFromPath(),{nodeObject:n}=await Ot.extractDataFromPath(e);ep.openAsModal(e,t||n.openNodeInModal)}}checkInvalidateCache(e,t){let n=t.split("/");if(e.navigationPath&&e.navigationPath.length>0){let l=e.navigationPath.slice(1),a=!0;for(let r=0;r<l.length;r++){let o=n.length>r?n[r]:void 0,c=l[r];if(o!==c.pathSegment||!a)if(we.isDynamicNode(c)){if(!a||o!==we.getDynamicNodeValue(c,e.pathParams)){qn.deleteNodesRecursively(c);break}}else a=!1}}else qn.deleteCache()}handleRouteClick(e,t){const n=we.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(le.trimLeadingSlash(this.getWindowPath())===le.trimLeadingSlash(n)){const a=Ee.getIframeContainer(),r=oi.getActiveIframe(a);r&&r.vg&&oi.canCache(r.vg)?(oi.switchActiveIframe(Ee.getIframeContainer(),void 0,!1),setTimeout(()=>{oi.switchActiveIframe(Ee.getIframeContainer(),r,!1),window.postMessage({msg:"refreshRoute"},"*")})):(r&&a.removeChild(r),window.postMessage({msg:"refreshRoute"},"*"))}else this.navigateTo(n)}async showPageNotFoundError(e,t,n,l=!1,a={}){const r=we.getPageNotFoundRedirectResult(n,l);if(r.ignoreNavigation)return;const o=r.path;if(o){r.keepURL?this.handleRouteChange(o,e,Ee.getIframeContainer(),a):this.navigateTo(o);return}we.showRouteNotFoundAlert(e,n,l),this.navigateTo(le.addLeadingSlash(t))}navigateToLink(e){e.externalLink&&e.externalLink.url?this.navigateToExternalLink(e.externalLink):this.navigateTo(e.link)}navigateToExternalLink(e,t,n){if(t){const l={...D2.externalLink,...(t==null?void 0:t.externalLink)||{}};l.url=we.calculateNodeHref(t,n),window.open(l.url,l.sameWindow?"_self":"_blank").focus()}else le.isObject(e)&&window.open(e.url,e.sameWindow?"_self":"_blank").focus()}getGeneratedWCId(e){const{viewUrl:t,context:n}=e;if(t){const l=we.substituteViewUrl(t,{context:n});return e.webcomponent&&e.webcomponent.tagName?e.webcomponent.tagName:ua.generateWCId(l)}}navigateWebComponent(e,t){let n=document.querySelector(".wcContainer"),l=n._luigi_node;const a=this.getGeneratedWCId(t),r=e.get();if(t===l&&!n.configChangedRequest){const o=document.querySelector(a);o.context=r.context,o.extendedContext&&(o.extendedContext.nodeParams=r.nodeParams);return}n.configChangedRequest=!1,n=this.removeLastChildFromWCContainer(),n&&ua.renderWebComponent(r.viewUrl,n,r,t)}navigateWebComponentCompound(e,t){const n=document.querySelector(".wcContainer");if(!n)return;const l=e.get();if(n._luigi_node===t&&qa.isEqual(n._luigi_pathParams,l.pathParams)&&!n.configChangedRequest)return;n.configChangedRequest=!1;const{compound:a}=t;this.removeLastChildFromWCContainer(),a&&a.children&&(a.children=a.children.filter(r=>oe.checkVisibleForFeatureToggles(r))),ua.renderWebComponentCompound(t,n,l),n._luigi_pathParams=l.pathParams}removeLastChildFromWCContainer(){const e=document.querySelector(".wcContainer");if(e){for(;e.lastChild;)e.lastChild.remove();return e._luigi_node=void 0,e}}updateModalDataInUrl(e,t,n){let l=we.getHashQueryParamSeparator();const a=we.getQueryParams(),r=we.getModalViewParamName();a[r]=e,t&&Object.keys(t).length&&(a[`${r}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}${we.encodeParams(a)}`}else o.search=`?${we.encodeParams(a)}`;n?history.pushState(window.state,"",o.href):history.replaceState(window.state,"",o.href)}appendModalDataToUrl(e,t){let n=we.getHashQueryParamSeparator();const l=we.getQueryParams(),a=we.getModalViewParamName(),r=l[a],o=new URL(location.href),c=re.getConfigBooleanValue("routing.useHashRouting");let g=history.state,d,h;if(c){let[p,b]=o.hash.split("?");d=p,h=we.getURLWithoutModalData(b,a),h&&(d+="?"+h)}else d=o.pathname,h=we.getURLWithoutModalData(o.search,a),h&&(d+="?"+we.getURLWithoutModalData(o.search,a));if(g=we.handleHistoryState(g,d),r!==e){if(l[a]=e,t&&Object.keys(t).length&&(l[`${a}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}${we.encodeParams(l)}`}else o.search=`?${we.encodeParams(l)}`;history.pushState(g,"",o.href)}else{const p=new URL(o);if(c){let b=p.hash.split("?")[0];p.hash=b,h&&(p.hash+="?"+h)}else p.search=h;history.replaceState({},"",p.href),history.pushState(g,"",o.href)}}removeModalDataFromUrl(e){const t=we.getQueryParams(),n=we.getModalViewParamName();let l=new URL(location.href);if(re.getConfigBooleanValue("routing.useHashRouting")){let r={};t[n]&&(r[n]=t[n]),t[`${n}Params`]&&(r[`${n}Params`]=t[`${n}Params`]);let o=we.encodeParams(r);l.hash.includes(`?${o}`)?l.hash=l.hash.replace(`?${o}`,""):l.hash.includes(`&${o}`)&&(l.hash=l.hash.replace(`&${o}`,""))}else{let r=new URLSearchParams(l.search.slice(1));r.delete(n),r.delete(`${n}Params`);let o="";Array.from(r.keys()).forEach(c=>{o+=(o===""?"?":"&")+c+"="+r.get(c)}),l.search=o}if(history.state&&history.state.modalHistoryLength>=0&&e){history.state.modalHistoryLength;const r=history.state.pathBeforeHistory;let o=!1;if(window.addEventListener("popstate",c=>{o?(history.replaceState({},"",r),history.pushState({},"",r),history.back()):(history.pushState({},"",r),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 lt=new B2;class H2{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=we.substituteViewUrl(e,t));const l=Ee.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?le.getPathWithoutHash(t):"",l=await Ot.getNavigationPath(re.getConfigValueAsync("navigation.nodes"),t),a=we.parseParams(n.split("?")[1]),r=we.getNodeParams(a),o=we.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:r,collapsed:g,isDataPrepared:!0})}createAndSetView(e){const{nodeParams:t,lastNode:n,pathData:l}=e.get();if(n.webcomponent){ua.renderWebComponent(n.viewUrl,document.querySelector(".iframeSplitViewCnt"),{context:l.context},n,void 0,!0);const a={splitViewWC:document.querySelector(".iframeSplitViewCnt"),splitViewWCData:{...l,nodeParams:t}};e.set(a),e.dispatch("wcCreated",{...a,collapsed:!1});const r=document.querySelector(".wcContainer");if(r&&r.childElementCount){const o=document.getElementsByClassName("iframeContainer")[0];o&&o.classList.add("lui-webComponent")}}else{const r={splitViewIframe:this.setIframe(n.viewUrl,{context:l.context,pathParams:l.pathParams,nodeParams:t},e),splitViewIframeData:{...l,nodeParams:t}};e.set(r),e.dispatch("iframeCreated",{...r,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(le.computePxFromPercent(t,n)),a=e?100-e:60,r=parseInt(le.computePxFromPercent(t,a));return{percent:n,bottom:l,top:r}}}calculateAndSetSplitViewValues(e,t){const n=parseInt(le.computePxFromPercent(t.rightContentHeight,100-e))+Ee.getIframeContainer().getBoundingClientRect().top;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:le.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,le.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}),Ee.getIframeContainer().style.marginBottom="",ft.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`,Ee.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="",Ee.getIframeContainer().style.marginBottom=""},()=>{})}sendMessageToClients(e,t){Ee.sendMessageToVisibleIframes({msg:`luigi.navigation.splitview.${e}`,data:t})}}const ft=new H2;class W2{luigiAfterInit(){re.getConfigBooleanValue("settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{Ya.hideAppLoadingIndicator()},0)}}const q2=new W2;class G2{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 ui=new G2;class K2{constructor(){return this._userInfoStore=fa({}),this._loggedInStore=fa(!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=fl.parseUrlAuthErrors()||{};if(await fl.handleUrlAuthErrors(t,n.error,n.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(e,t),le.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(a=>(this.idpProviderInstance=a,this.checkAuth(t))).catch(a=>{const r=`Error: ${a.message||a}`;console.error(r,a.message&&a),re.setErrorMessage(r)}):this.checkAuth(t)}async checkAuth(e){const t=fl.getStoredAuthData();if(!t||!fl.isLoggedIn()){if(re.getConfigValue("auth.disableAutoLogin"))return;let l=!0;return t&&(l=await pi.handleAuthEvent("onAuthExpired",e)),l?this.startAuthorization():void 0}this.idpProviderInstance.settings&&le.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,t).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):le.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(e).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(ol(this._userInfoStore))),le.isFunction(re.getConfigValue("auth.events.onAuthSuccessful"))&&ui.isNewlyAuthorized()&&await pi.handleAuthEvent("onAuthSuccessful",e,t),ui.removeNewlyAuthorized(),le.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),le.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(e=>{ui.setNewlyAuthorized(),e&&console.error(e)})}logout(){const e=fl.getStoredAuthData(),t=async l=>{await pi.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),ui.removeAuthData()},n=re.getConfigValue(`auth.${re.getConfigValue("auth.use")}.logoutFn`);le.isFunction(n)?n(this.idpProviderInstance.settings,e,t):le.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=le.getConfigValueFromObject(t,"idpProvider");if(n){const a=await new n(t);return["login"].forEach(r=>{if(!le.isFunction(a[r]))throw this.IdpProviderException(`${r} function does not exist in custom IDP Provider ${e}`)}),a}if(le.isFunction(re.getConfigValue("auth.events.onAuthConfigError")))await pi.handleAuthEvent("onAuthConfigError",{idpProviderName:e,type:"IdpProviderException"});else throw this.IdpProviderException(`IDP Provider ${e} does not exist.`)}unload(){this.idpProviderInstance&&le.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}}const fn=new K2;class j2{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(le.prependOrigin(e)),l=this.decorators.filter(a=>a.type==="queryString");for(let a=0;a<l.length;a++){const r=l[a];n.searchParams.has(r.key)&&n.searchParams.delete(r.key);const o=r.valueFn();n.searchParams.append(r.key,o)}return t&&(n.search=decodeURIComponent(n.search)),n.href}}const Ga=new j2;class J2{getStoredAuthData(){return ui.getAuthData()}isLoggedIn(){const e=this.getStoredAuthData();return e&&(()=>e.accessTokenExpirationDate>Number(new Date))()}parseUrlAuthErrors(){const e=le.getUrlParameter("error"),t=le.getUrlParameter("errorDescription");if(e)return{error:e,errorDescription:t}}async handleUrlAuthErrors(e,t,n){return t?await pi.handleAuthEvent("onAuthError",e,{error:t,errorDescription:n},e.logoutUrl+"?post_logout_redirect_uri="+e.post_logout_redirect_uri+"&error="+t+"&errorDescription="+n):!0}}const fl=new J2;class Y2{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 a=new RegExp(`<${n[l]}/>`,"g"),r=new RegExp(`<${n[l]} />`,"g"),o=new RegExp(`<${n[l]}>`,"g"),c=new RegExp(`<${n[l]} >`,"g"),g=new RegExp(`</${n[l]}[/]>`,"g"),d=new RegExp(`</${n[l]} [/]>`,"g"),h=new RegExp(`<[/]${n[l]}>`,"g"),p=new RegExp(`<[/]${n[l]} >`,"g");t=t.replace(a,`<${n[l]}>`).replace(r,`<${n[l]}>`).replace(o,`<${n[l]}>`).replace(c,`<${n[l]}>`).replace(g,`</${n[l]}>`).replace(d,`</${n[l]}>`).replace(h,`</${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 a={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(e)),links:[]};return t?Object.entries(t).reduce((r,[o,c])=>{const g=`_luigi_alert_${n}_link_${this.sanitizeParam(o)}`,d=this.restoreSanitizedBrs(this.sanitizeHtml(c.text)),h=`<a id="${g}">${d}</a>`,p=this.escapeKeyForRegexp(o),b=new RegExp(`({${p}})`,"g");return{sanitizedText:r.sanitizedText.replace(b,h),links:r.links.concat({elemId:g,url:c.url?encodeURI(this.sanitizeHtml(c.url)):void 0,dismissKey:c.dismissKey?encodeURI(this.sanitizeHtml(c.dismissKey)):void 0})}},a):a}}const da=new Y2;class Q2{get specialIframeTypes(){return[{iframeKey:"modalIframe",dataKey:"modalIframeData",iframeConfigKey:"modal"},{iframeKey:"drawerIframe",dataKey:"drawerIframeData",iframeConfigKey:"drawer"},{iframeKey:"splitViewIframe",dataKey:"splitViewIframeData",iframeConfigKey:"splitView"}]}hideElementChildren(e){e.children&&Array.from(e.children).forEach(t=>{t.tagName==="IFRAME"&&(t.style.display="none")})}removeElementChildren(e){[...e.children].forEach(n=>{!n.vg&&n.tagName==="IFRAME"&&e.removeChild(n)})}removeIframe(e,t){Array.from(t.children).forEach(l=>{l===e&&t.removeChild(l)})}isSameDomain(e,t){if(e.iframe){const n=t.get(),l=le.getUrlWithoutHash(n.previousNodeValues.viewUrl),a=le.getUrlWithoutHash(n.viewUrl),r=n.previousNodeValues.viewGroup,o=n.viewGroup;if(l===a&&!r&&!o)return!0}return!1}isSameViewGroup(e,t){if(e.iframe){const n=t.get(),l=le.getUrlWithoutHash(n.previousNodeValues.viewUrl),a=le.getUrlWithoutHash(n.viewUrl),r=this.getLocation(l),o=this.getLocation(a);if(r===o){const c=n.previousNodeValues.viewGroup,g=n.viewGroup;if(c&&g&&c===g)return!0}}return!1}canReuseIframe(e,t){return this.isSameDomain(e,t)||this.isSameViewGroup(e,t)}getLocation(e){const t=document.createElement("a");if(t.href=e,t.origin)return t.origin}urlMatchesTheDomain(e="",t){return this.getLocation(e)===this.getLocation(t)}iframeIsSameDomain(e,t){return this.urlMatchesTheDomain(e,t)}getIframeContainer(){const e=Array.from(document.querySelectorAll(".iframeContainer"));return e.length>0?e[0]:void 0}getMicrofrontendsInDom(){return c2.map(({type:e,selector:t})=>Array.from(document.querySelectorAll(t)).map(n=>({id:n.luigi.id,container:n,active:le.isElementVisible(n),type:e}))).reduce((e,t)=>e.concat(t),[])}getMicrofrontendIframes(){return this.getMicrofrontendsInDom().map(e=>e.container)}getCurrentWebcomponentCtnInDom(){return document.querySelector(".iframeContainer.lui-webComponent")}getCurrentMicrofrontendIframe(){const e=this.getModalIframes(),t=this.getMainIframes().filter(le.isElementVisible),n=this.getCurrentWebcomponentCtnInDom();return e[0]||t[0]||n||null}getIframesWithType(e){return this.getMicrofrontendsInDom().filter(t=>t.type===e).map(t=>t.container)}getMainIframes(){return this.getIframesWithType("main")}getModalIframes(){return this.getIframesWithType("modal")}getVisibleIframes(){return this.getMicrofrontendsInDom().filter(e=>e.active).map(e=>e.container)}sendMessageToIframe(e,t){if(!(e.luigi&&e.luigi.viewUrl&&e._ready))return;const n=this.getLocation(e.luigi.viewUrl);n!==""&&e.contentWindow&&e.contentWindow.postMessage(t,n)}sendMessageToVisibleIframes(e){this.getVisibleIframes().forEach(t=>this.sendMessageToIframe(t,e))}broadcastMessageToAllIframes(e){Ee.getMicrofrontendIframes().forEach(t=>this.sendMessageToIframe(t,e))}createIframe(e,t,n,l,a){const r=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],o=re.getConfigValue("settings.customSandboxRules"),c=re.getConfigValue("settings.allowRules"),g=o?[...new Set([...r,...o])]:r,d=document.createElement("iframe");d.src=Ga.hasDecorators()?Ga.applyDecorators(e,n?n.decodeViewUrl:void 0):e,c&&(c.forEach((p,b)=>{c[b]=p+(p.indexOf(";")!=-1?"":";")}),d.allow=c.join(" ")),d.sandbox=g.join(" "),d.luigi={viewUrl:e,currentNode:n,createdAt:new Date().getTime(),id:le.getRandomId(),pathParams:a?a.pathParams:void 0},t&&(d.vg=t),n&&n.clientPermissions&&(d.luigi.clientPermissions=n.clientPermissions);const h=re.getConfigValue("settings.iframeCreationInterceptor");if(le.isFunction(h))try{h(d,t,n,l)}catch(p){console.error("Error applying iframe creation interceptor: ",p)}return d}isMessageSource(e,t){return t&&t.contentWindow===e.source}getValidMessageSource(e){const n=[...Ee.getMicrofrontendIframes(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(r=>this.isMessageSource(e,r));if(!n||!n.luigi||!n.luigi.viewUrl)return;const l=e.data.msg==="luigi.navigate.ok";if(l&&!n.luigi.nextViewUrl)return;const a=l?n.luigi.nextViewUrl:n.luigi.viewUrl;if(this.iframeIsSameDomain(a,e.origin))return n}getSpecialIframeMessageSource(e,t){return Ee.specialIframeTypes.filter(n=>Ee.isMessageSource(e,t[n.iframeKey]))}disableA11yOfInactiveIframe(e){[...document.querySelectorAll("*")].forEach(n=>{n.getAttribute("oldTab")||n.setAttribute("oldTab",n.getAttribute("tabindex")),n!==e&&n.setAttribute("tabindex","-1")})}enableA11yOfInactiveIframe(){[...document.querySelectorAll("*")].forEach(t=>{const n=t.getAttribute("oldTab");t.getAttribute("oldTab")==="null"&&t.removeAttribute("tabindex"),t.removeAttribute("oldTab"),n&&n!=="null"&&t.setAttribute("tabindex",n)})}disableA11YKeyboardExceptClassName(e){[...document.querySelectorAll("*")].forEach(n=>{const l=!n.closest(e),a=n.getAttribute("tabindex");(a||a===0)&&l&&!n.hasAttribute("oldtab")&&n.setAttribute("oldtab",a),l&&n.setAttribute("tabindex","-1")})}enableA11YKeyboardBackdropExceptClassName(e){[...document.querySelectorAll("*")].forEach(n=>{const l=n.getAttribute("oldtab");!n.closest(e)&&n.removeAttribute("tabindex"),l&&l!=="null"&&(n.setAttribute("tabindex",l),n.removeAttribute("oldtab"))})}applyCoreStateData(e){return{...e,activeFeatureToggleList:Uo.getActiveFeatureToggleList(),currentLocale:St.getCurrentLocale(),currentTheme:Do.getCurrentTheme()}}}const Ee=new Q2;class Z2{getRandomId(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]}isFunction(e){return e&&{}.toString.call(e)==="[object Function]"}isAsyncFunction(e){return e&&{}.toString.call(e)==="[object AsyncFunction]"}isPromise(e){return e&&this.isFunction(e.then)}isString(e){return typeof e=="string"||e instanceof String}isIE(){const e=navigator.userAgent;return!!(e.includes("MSIE ")||e.includes("Trident/"))}isObject(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}isEmptyObject(e){return this.isObject(e)&&Object.keys(e).length===0}deepMerge(e,...t){if(!t.length)return e;const n=t.shift();if(this.isObject(e)&&this.isObject(n))for(const l in n)this.isObject(n[l])?(e[l]||Object.assign(e,{[l]:{}}),this.deepMerge(e[l],n[l])):Object.assign(e,{[l]:n[l]});return this.deepMerge(e,...t)}getUrlWithoutHash(e){if(!e)return!1;const t=e.split("#")[0];return t.startsWith("http")?t:window.location.origin+(t.startsWith("/")?"":"/")+t}hasHash(e){return e&&e.search(/^[#\/].*$/)===0}getPathWithoutHash(e){for(;this.hasHash(e);)e=e.substr(1);return e}getUrlParameter(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return n&&decodeURIComponent(n[1].replace(/\+/g," "))||""}prependOrigin(e){if(!e||e.startsWith("http"))return e;const t=e.startsWith("/");return e.length?window.location.origin+(t?"":"/")+e:window.location.origin}addLeadingSlash(e){return(e.startsWith("/")?"":"/")+e}addTrailingSlash(e){return typeof e!="string"?e:e.replace(/\/?$/,"/")}trimLeadingSlash(e){return this.isString(e)?e.replace(/^\/+/g,""):""}trimTrailingSlash(e){return this.isString(e)?e.replace(/\/+$/,""):""}getTrimmedUrl(e){const t=e.length>0?this.getPathWithoutHash(e):e;return this.trimTrailingSlash(t.split("?")[0])}normalizePath(e){return typeof e!="string"?e:this.addLeadingSlash(this.addTrailingSlash(e))}getConfigValueFromObject(e,t){let n=0,l=e;const a=t.split(".");for(;l&&n<a.length;)l=l[a[n++]];return l}canComponentHandleModal(e){return e&&typeof e.get=="function"}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}replaceVars(e,t,n,l=!0){let a=e;return t&&(l?a=qa.replace(a,/{([\s\S]+?)}/g,r=>{let o=r.slice(1,-1).trim();return o.indexOf(n)===0&&(o=o.substring(n.length)),qa.get(t,o,r)}):Object.entries(t).forEach(r=>{a=a.replace(new RegExp(this.escapeRegExp(n+r[0]),"g"),encodeURIComponent(r[1]))})),l&&(a=a.replace(new RegExp("\\{"+this.escapeRegExp(n)+"[^\\}]+\\}","g"),"")),a}getInnerHeight(){return Ee.getIframeContainer().clientHeight}getContentAreaHeight(){return this.getInnerHeight()-Ee.getIframeContainer().getBoundingClientRect().top}getShellbarHeight(){return(Bi.getShellbar()||{}).clientHeight||0}computePxFromPercent(e,t){return e/100*t}computePercentFromPx(e,t){return Math.floor(100*t/e)}isElementVisible(e){return window.getComputedStyle(e,null).getPropertyValue("display")!=="none"}removeInternalProperties(e){return e&&Object.keys(e).filter(t=>!t.startsWith("_")).reduce((t,n)=>(t[n]=e[n],t),{})||e}removeProperties(e,t){const n={};if(!t instanceof Array||!t.length)return console.error("[ERROR] removeProperties requires second parameter: array of keys to remove from object."),e;for(const l in e)if(e.hasOwnProperty(l)){const a=t.filter(o=>l.includes(o)).length===0,r=t.filter(o=>o.endsWith("*")).map(o=>o.slice(0,-1)).filter(o=>l.startsWith(o)).length===0;a&&r&&(n[l]=e[l])}return n}semverCompare(e,t){const n=e.split("-")[0].split("."),l=t.split("-")[0].split(".");for(let a=0;a<3;a++){const r=Number(n[a]),o=Number(l[a]);if(r>o)return 1;if(o>r)return-1;if(!isNaN(r)&&isNaN(o))return 1;if(isNaN(r)&&!isNaN(o))return-1}return 0}requestExperimentalFeature(e,t){const n=!!re.getConfigValue("settings.experimental."+e);return t&&!n&&console.warn("Experimental feature not enabled: ",e),n}createRemotePromise(){let e,t;const n=new Promise(a=>{e=r=>{a(r||!0)},t=()=>{a(!1)}});let l=re._remotePromises;return l||(l={counter:0,promises:[]},re._remotePromises=l),n.id=l.counter++,l.promises[n.id]=n,n.doResolve=a=>{delete l.promises[n.id],e(a)},n.doReject=()=>{delete l.promises[n.id],t()},n}getRemotePromise(e){return re._remotePromises?re._remotePromises.promises[e]:void 0}isString(e){return typeof e=="string"||e instanceof String}}const le=new Z2;class X2{constructor(){this.EXP_CAT_KEY="luigi.preferences.navigation.expandedCategories",this.COL_NAV_KEY="luigi.preferences.navigation.collapsedNavigation",this.virtualGroupPrefix="___"}getProductSwitcherConfig(){const e=re.getConfigValue("navigation.productSwitcher");return Object.assign({icon:"grid",label:"My Products"},e)}getProductSwitcherColumnsNumber(){const e=this.getProductSwitcherConfig();if(!e.items)return;let t=e.columns,n;return le.isFunction(e.items)?n=e.items().length:n=e.items.length,t==="auto"?n<=6?e.columns=3:e.columns=4:e.columns===3?3:4}prepareForTests(...e){let t="";return e.forEach(n=>{n&&(t+=(t?"_":"")+encodeURIComponent(n.toLowerCase().split(" ").join("")))}),t}checkVisibleForFeatureToggles(e){if(e&&e.visibleForFeatureToggles){const t=Uo.getActiveFeatureToggleList();for(const n of e.visibleForFeatureToggles)if(n.startsWith("!")){if(t.includes(n.slice(1)))return!1}else if(!t.includes(n))return!1}return!0}isNodeAccessPermitted(e,t,n){if(pi.isAuthorizationEnabled()){const a=fl.isLoggedIn(),r=e.anonymousAccess;if(a&&r==="exclusive"||!a&&r!=="exclusive"&&r!==!0)return!1}if(!this.checkVisibleForFeatureToggles(e))return!1;const l=re.getConfigValue("navigation.nodeAccessibilityResolver");return typeof l!="function"?!0:l(e,t,n)}applyContext(e,t,n){if(t)for(var l in t)e[l]=t[l];return n&&e.parentNavigationContexts.unshift(n),e}getNodePath(e){return e.parent?this.getNodePath(e.parent)+"/"+e.pathSegment:e.pathSegment}groupNodesBy(e,t,n){const l=re.getConfigValue("navigation.defaults.category");let a={},r=0,o=0;const c=g=>{g.sort((d,h)=>{const p=d.order||0,b=h.order||0;return p-b})};return e.forEach(g=>{let d,h;const p=g[t];le.isObject(p)?(d=p.id?p.id:p.label,h=Object.assign({},p)):(d=p,n&&!p&&(d=this.virtualGroupPrefix+o),h={label:d,_fromString:!0});let b=a[d];b||(n&&p&&o++,(h.order===void 0||h.order===null||h.order==="")&&(h.order=d?r++:-1),b=[],a[d]=b),b.metaInfo||(b.metaInfo=h),le.isObject(p)&&b.metaInfo._fromString&&(delete b.metaInfo._fromString,b.metaInfo={...b.metaInfo,...p}),le.isObject(p)&&l&&(p.titleExpandButton?b.metaInfo.titleExpandButton=p.titleExpandButton:b.metaInfo.titleExpandButton=l.titleExpandButton,p.titleCollapseButton?b.metaInfo.titleCollapseButton=p.titleCollapseButton:b.metaInfo.titleCollapseButton=l.titleCollapseButton),!b.metaInfo.categoryUid&&d&&(b.metaInfo.categoryUid=g.parent?this.getNodePath(g.parent)+":"+d:d),b.push(g)}),Object.keys(a).forEach(g=>{const d=a[g].metaInfo;d&&d.id&&(a[d.label]=a[d.id],delete a[d.id])}),Object.keys(a).forEach(g=>{c(a[g]),a[g].length===0&&delete a[g]}),a}generateTooltipText(e,t){let n=e.tooltipText;return n===void 0&&(n=re.getConfigValue("navigation.defaults.tooltipText")),n===void 0?t:n===!1?"":St.getTranslation(n)}async generateTopNavNodes(e){const t=e[0].topNav===!1?[]:await Ot.getFilteredChildren(e[0]);let n=null,l=0,a=0,r={};const o=[];let c=[];for(const d of t){e.forEach(b=>{!n&&b===d&&(n=d)}),d.hideFromNav||(l++,d.globalNav&&a++);let h;const p=!!d.badgeCounter;if(p&&(h=await d.badgeCounter.count()),d.category){const b=d.category.label||d.category;if(r[b]){if(r[b].icon||(r[b].icon=d.category.icon,r[b].altText=d.category.altText),p&&!r[b].badgeCounter)r[b].badgeCounter={label:"",count:()=>h};else if(p){const m=r[b].badgeCounter.count()+h;r[b].badgeCounter.count=()=>m}}else r[b]={isCat:!0,label:b,icon:d.category.icon,altText:d.category.altText,children:[],badgeCounter:p&&{label:"",count:()=>h}},o.push(r[b]);r[b].children.push(d)}else o.push(d);h&&c.push(h)}for(let d=0;d<o.length;d++)o[d].isCat&&(o[d].visibleChildren=await Ot.getChildren(o[d])||[]);const g={children:o,selectedNode:n,visibleNodeCount:l,globalNavNodeCount:a};if(c.length){const d=c.reduce((h,p)=>h+p);g.totalBadgeNode={badgeCounter:{count:()=>d,label:""}}}return g}getSideNavAccordionMode(e){let t=e&&e.sideNavAccordionMode||e&&e.parent&&e.parent.sideNavAccordionMode;return typeof t<"u"?t:re.getConfigBooleanValue("navigation.defaults.sideNavAccordionMode")}loadExpandedCategories(){let e=[];const t=localStorage.getItem(this.EXP_CAT_KEY);if(t)try{e=JSON.parse(t)}catch{console.warn("Preference data corrupted, using default")}return e}storeExpandedState(e,t,n=!1){let l=this.loadExpandedCategories(),a=e.split(":")[0];if(t)n&&(l=l.filter(r=>r.indexOf(a+":")===-1)),l.indexOf(e)<0&&l.push(e);else{let r=l.indexOf(e);r>=0&&l.splice(r,1)}return localStorage.setItem(this.EXP_CAT_KEY,JSON.stringify(l)),l}isOpenUIiconName(e){return/^[a-z0-9\-]+$/i.test(e)}renderIconClassName(e){if(!e)return"";let t="sap-icon-";return e.startsWith("businessSuiteInAppSymbols")||e.startsWith("TNT")?t+=e:t+="-"+e,t}handleUnresponsiveClient(e){if(e.errorFn)e.errorFn();else{console.warn("Something went wrong with a client! You will be redirected to another page.");const t=e.redirectPath||"/";lt.navigateTo(t)}}getBurgerTooltipConfig(){const e=re.getConfigValue("settings.burgerTooltip");if(le.isObject(e)||e===!0){const t=e.navExpanded?St.getTranslation(e.navExpanded):"Collapse navigation";return[e.navCollapsed?St.getTranslation(e.navCollapsed):"Expand navigation",t]}}stripNode(e){const t={...e};return delete t.parent,delete t.children,delete t.navHeader,t}async shouldPreventNavigationForPath(e){const{nodeObject:t}=await Ot.extractDataFromPath(e);return!!await Ot.shouldPreventNavigation(t)}getPropertyChainValue(e,t,n){return!t||!e?n:qa.get(e,t,n)}substituteVars(e,t){const l=JSON.stringify(e).replace(/\$\{[a-zA-Z0-9$_.]+\}/g,a=>{const r=a.substr(2,a.length-3);return this.getPropertyChainValue(t,r)||a});return JSON.parse(l)}_fetch(e,t){return fetch(e,t)}processTitleData(e,t){let n=this.getPropertyChainValue(e,t.titlePropertyChain);return n&&(n=n.trim()),n&&t.titleDecorator&&(n=t.titleDecorator.replace("%s",n)),{label:n||t.fallbackTitle,icon:this.getPropertyChainValue(e,t.iconPropertyChain,t.fallbackIcon)}}async fetchNodeTitleData(e,t){return new Promise((n,l)=>{if(!e.titleResolver){l(new Error("No title resolver defined at node"));return}const a={...e.titleResolver};delete a._cache;const r=this.substituteVars(a,t),o=JSON.stringify(r);if(e.titleResolver._cache&&e.titleResolver._cache.key===o){n(e.titleResolver._cache.value);return}const c=r.request;this._fetch(c.url,{method:c.method,headers:c.headers,body:JSON.stringify(c.body)}).then(g=>{g.json().then(d=>{try{const h=this.processTitleData(d,r,e);e.titleResolver._cache={key:o,value:h},n(h)}catch(h){l(h)}})}).catch(g=>{l(g)})}).catch(n=>{qa.reject(n)})}handleNavAnchorClickedWithoutMetaKey(e){return e.ctrlKey||e.metaKey||e.shiftKey?(e.stopPropagation(),!1):(e.preventDefault(),!0)}getNodeLabel(e){let t=St.getTranslation(e.label);const n=this.findViewGroup(e);if(n){const l=this.getViewGroupSettings(n)||{};let a={...l.customData||{},...l._liveCustomData||{}};t=le.replaceVars(t,a,"viewGroupData.")}return t}getParentNode(e,t){let n=e.parent;return!n&&t.length>0&&t[1]===e&&(n=t[0]),n}getAllViewGroupSettings(){return re.getConfigValue("navigation.viewGroupSettings")}getViewGroupSettings(e){const t=this.getAllViewGroupSettings();return e&&t&&t[e]?t[e]:{}}findViewGroup(e,t){if(e.viewGroup)return t&&t!==e?e.viewUrl&&t.viewUrl&&Ee.getLocation(e.viewUrl)===Ee.getLocation(t.viewUrl)?e.viewGroup:void 0:e.viewGroup;if(e.parent)return this.findViewGroup(e.parent,t||e)}getTestId(e){return e.testId?e.testId:oe.prepareForTests(e.pathSegment,e.label)}}const oe=new X2;class $2{constructor(){this.defaultContentViewParamPrefix="~",this.defaultQueryParamSeparator="?",this.defaultModalViewParamName="modal"}getLastNodeObject(e){return[...e.navigationPath].pop()||{}}async getDefaultChildNode(e,t){const n=e.navigationPath[e.navigationPath.length-1],l=t?await t(n,e.context):await ls.getConfigValueFromObjectAsync(n,"children",e.context),a=l.find(r=>r.pathSegment===n.defaultChildNode);if(n.defaultChildNode&&a)return n.defaultChildNode;if(l&&l.length){if(e.navigationPath.length===1){const c=l.find(g=>g.pathSegment);return c&&c.pathSegment||console.error("At least one navigation node in the root hierarchy must have a pathSegment.")}const o=l.find(c=>c.pathSegment&&(c.viewUrl||c.compound||c.externalLink&&c.externalLink.url));if(o)return o.pathSegment}return""}parseParams(e){if(!e)return{};const t={},n=e.replace(/\+/g," "),l=n?n.split("&"):null;return l&&l.forEach(a=>{const r=a.split("=");r&&r.length>0&&(t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]))}),t}encodeParams(e){const t=[];for(const n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}getNodeParams(e){const t={},n=this.getContentViewParamPrefix();return e&&Object.entries(e).forEach(l=>{if(l[0].startsWith(n)){const a=l[0].substr(n.length);t[a]=l[1]}}),this.sanitizeParamsMap(t)}applyPathParams(e,t){let n=e;return t&&Object.entries(t).forEach(([l,a])=>{n=n.replace(new RegExp(":"+l,"g"),a)}),n}getContentViewParamPrefix(){let e=re.getConfigValue("routing.nodeParamPrefix");return e===!1?e="":e||(e=this.defaultContentViewParamPrefix),e}getModalViewParamName(){let e=re.getConfigValue("routing.modalPathParam");return e||(e=this.defaultModalViewParamName),e}getHashQueryParamSeparator(){return this.defaultQueryParamSeparator}getQueryParam(e){return this.getQueryParams()[e]}getQueryParams(){return re.getConfigBooleanValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()}getLocation(){return location}getLocationHashQueryParams(){const e=we.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return e!==-1?we.parseParams(we.getLocation().hash.slice(e+1)):{}}getLocationSearchQueryParams(){return we.getLocation().search?we.parseParams(we.getLocation().search.slice(1)):{}}composeSearchParamsToRoute(e){if(re.getConfigBooleanValue("routing.useHashRouting")){const n=location.hash.indexOf(this.defaultQueryParamSeparator);return n!==-1?e+location.hash.slice(n):e}return location.search?e+location.search:e}getModalPathFromPath(){return this.getQueryParam(this.getModalViewParamName())}getModalParamsFromPath(){const e=this.getQueryParam(`${this.getModalViewParamName()}Params`);return e&&JSON.parse(e)}addRouteChangeListener(e){const t=re.getConfigValue("routing.useHashRouting");Mn.addEventListener("message",n=>{if(n.data.msg==="refreshRoute"&&n.origin===window.origin){const l=t?lt.getHashPath():lt.getModifiedPathname();e(l)}}),Mn.addEventListener("popstate",n=>{const l=t?lt.getHashPath(location.href):lt.getModifiedPathname();e(l,n.detail)})}buildRoute(e,t,n){return e.parent?this.buildRoute(e.parent,`/${e.parent.pathSegment}${t}`,n):t+(n?"?"+n:"")}getContext(e,t){return t==null?this.getContext(e,e.context||{}):e.parent?{...this.getContext(e.parent),...t}:t}getRouteLink(e,t,n){const l=n||"";if(e.externalLink&&e.externalLink.url){const r=e.externalLink.url,o={context:we.substituteDynamicParamsInObject(this.getContext(e),t),pathParams:t,nodeParams:{}};return this.substituteViewUrl(r,o)}else if(e.link){const r=e.link.startsWith("/")?e.link:lt.buildFromRelativePath(e);return l+r}const a=we.buildRoute(e,`/${e.pathSegment}`);return l+le.replaceVars(a,t,":",!1)}calculateNodeHref(e,t){const n=we.getRouteLink(e,t,re.getConfigValue("routing.useHashRouting")?"#":"");return this.getI18nViewUrl(n.url)||n}getNodeHref(e,t){if(re.getConfigBooleanValue("navigation.addNavHrefs"))return this.calculateNodeHref(e,t)}substituteDynamicParamsInObject(e,t,n=":",l=!1){return Object.entries(e).map(([a,r])=>{const o=l?Object.keys(t).find(c=>r&&r.indexOf(n+c)>=0):Object.keys(t).find(c=>r===n+c);return[a,o?l?r.replace(n+o,t[o]):t[o]:r]}).reduce((a,[r,o])=>Object.assign(a,{[r]:o}),{})}mapPathToNode(e,t){if(!e||!t)return;const n=le.trimLeadingSlash(e).split("/"),l=we.buildRoute(t,`/${t.pathSegment}`),a=le.trimLeadingSlash(l).split("/");if(n.length<a.length)return;let r="";for(let o=0;o<a.length;o++){if(n[o]!==a[o]&&a[o].indexOf(":")!==0)return;r+="/"+n[o]}return r}isDynamicNode(e){return e.pathSegment&&e.pathSegment.length>0&&e.pathSegment[0]===":"}getDynamicNodeValue(e,t){return this.isDynamicNode(e)?t[e.pathSegment.substring(1)]:void 0}getI18nViewUrl(e){const t="{i18n.currentLocale}",n=St.getCurrentLocale();return e&&e.includes(t)?e.replace(t,n):e}substituteViewUrl(e,t){const n="context.",l="nodeParams.",a="routing.queryParams";if(e=le.replaceVars(e,t.pathParams,":",!1),e=le.replaceVars(e,t.context,n),e=le.replaceVars(e,t.nodeParams,l),e=this.getI18nViewUrl(e),e&&e.includes(a)){const r=e.split("?")[1];if(r){const o=r.split("=")[0];ul.getSearchParams()[o]?e=e.replace(`{${a}.${o}}`,ul.getSearchParams()[o]):e=e.replace(`?${o}={${a}.${o}}`,"")}}return e}sanitizeParamsMap(e){return Object.entries(e).reduce((t,n)=>(t[da.sanitizeParam(n[0])]=da.sanitizeParam(n[1]),t),{})}setFeatureToggles(e,t){let n;const l=this.sanitizeParamsMap(this.parseParams(t.split("?")[1]));if(l[e]&&(n=l[e]),!n)return;const a=n.split(",");a.length>0&&a[0]!==""&&a.forEach(r=>Uo.setFeatureToggle(r,!0))}getIntentObject(e){const t=e.split("?intent=")[1];if(t){const n=t.split("?"),l=n[0].split("-"),a=Object.fromEntries(new URLSearchParams(n[1]).entries());return{semanticObject:l[0],action:l[1],params:a}}}getIntentPath(e){const t=re.getConfigValue("navigation.intentMapping");if(t&&t.length>0){const n=e.replace(/\?intent=/i,"?intent="),l=this.getIntentObject(n);if(l){let a=t.find(o=>o.semanticObject===l.semanticObject&&o.action===l.action);if(!a)return!1;if(a.externalLink)return{...a.externalLink,external:!0};a=a.pathSegment;const r=Object.entries(l.params);if(r&&r.length>0){a=this.resolveDynamicIntentPath(a,l.params);let o=re.getConfigValue("routing.nodeParamPrefix");o=o||"~",a=a.concat(`?${o}`),r.forEach(([c,g],d)=>{a+=`${d>0?"&"+o:""}${c}=${g}`})}return a}else console.warn("Could not parse given intent link.")}else console.warn("No intent mappings are defined in Luigi configuration.");return!1}resolveDynamicIntentPath(e,t){if(!t)return e;let n=e;for(const[l,a]of Object.entries(t)){const r=new RegExp("/:"+l+"(/|$)","g");n=n.replace(r,`/${a}/`)}return n=n.replace(/\/$/,""),n}prepareSearchParamsForClient(e){const t={};return e&&e.clientPermissions&&e.clientPermissions.urlParameters&&Object.keys(e.clientPermissions.urlParameters).forEach(n=>{n in ul.getSearchParams()&&e.clientPermissions.urlParameters[n].read===!0&&(t[n]=ul.getSearchParams()[n])}),t}addSearchParamsFromClient(e,t,n){const l={...t};if(le.isObject(l)&&e&&e.clientPermissions&&e.clientPermissions.urlParameters){const a={};Object.keys(e.clientPermissions.urlParameters).forEach(r=>{r in l&&e.clientPermissions.urlParameters[r].write===!0&&(a[r]=l[r],delete l[r])});for(const r in l)console.warn(`No permission to add the search param "${r}" to the url`);Object.keys(a).length>0&&ul.addSearchParams(a,n)}}hasIntent(e){return!!e&&e.toLowerCase().includes("#?intent=")}getPageNotFoundRedirectResult(e,t=!1){const n=re.getConfigValue("routing.pageNotFoundHandler");if(typeof n=="function"){const l=n(e,t);if(l&&(l.redirectTo||l.ignoreNavigation))return{path:l.redirectTo,keepURL:l.keepURL,ignoreNavigation:l.ignoreNavigation}}return{}}async handlePageNotFoundAndRetrieveRedirectPath(e,t,n){if(n)return t;const l=this.getPageNotFoundRedirectResult(t).path;if(l!==void 0)return l;this.showRouteNotFoundAlert(e,t),console.warn(`Could not find the requested route: ${t}`)}showRouteNotFoundAlert(e,t,n=!1){const l={text:St.getTranslation(n?"luigi.notExactTargetNode":"luigi.requestedRouteNotFound",{route:t}),type:"error",ttl:1};e.showAlert(l,!1)}modifySearchParams(e,t,n){for(const[l,a]of Object.entries(e)){const r=n?`${n}${l}`:l;t.set(r,a),a===void 0&&t.delete(r)}}addParamsOnHashRouting(e,t,n){let l=t;const[a,r]=l.split("?"),o=new URLSearchParams(r);return this.modifySearchParams(e,o,n),l=a,o.toString()!==""&&(l+=`?${o.toString()}`),l}getURLWithoutModalData(e,t){let n=new URLSearchParams(e);return n.delete(t),n.delete(`${t}Params`),n.toString()}handleHistoryState(e,t){return e&&e.modalHistoryLength?e.modalHistoryLength+=1:e={modalHistoryLength:1,historygap:history.length,pathBeforeHistory:t},e}}const we=new $2;class x2{optimizeScope(e){let t="";const n=[];return[...e].sort().forEach(l=>{l&&!n.includes(l)&&(!t||l.indexOf(t)!==0)&&(n.push(l),t=l)}),n}expandScope(e){const t=[];return e.forEach(n=>{let l="";n.split(".").forEach(a=>{l=l+(l?".":"")+a,t.push(l)})}),[...new Set(t)]}doOnStoreChange(e,t,n=[]){e.subscribe(t),this.expandScope(n).forEach(l=>{e.subscribeToScope(t,l)})}}const dn=new x2;class ek{constructor(){this.listeners=[],this.hashChangeWithoutSync=!1}addEventListener(e,t){this.listeners.push({type:e,listenerFn:t}),window.addEventListener(e,t)}removeEventListener(e,t){this.listeners=this.listeners.filter(n=>!(n.type===e&&n.listenerFn===t)),window.removeEventListener(e,t)}removeAllEventListeners(){this.listeners.forEach(e=>{window.removeEventListener(e.type,e.listenerFn)}),this.listeners=[]}}const Mn=new ek;class tk{constructor(){this.init=!1,this.storage=void 0,this.browseSupported=void 0}checkInit(){this.init||(this.storage=window.localStorage,this.browseSupported=this.supportLocalStorage(),this.init=!0)}supportLocalStorage(){try{return"localStorage"in window&&window.localStorage!==null}catch{return!1}}checkStorageBrowserSupport(){if(!this.browseSupported)throw"Browser does not support local storage"}process(e,t,n,l,a){try{this.checkInit(),this.checkStorageBrowserSupport();const r=this[l];if(typeof r!="function")throw l+" is not a supported operation for the storage";const o=r.bind(this,this.cleanHostname(t),a)();this.sendBackOperation(e,n,"OK",o)}catch(r){console.log(r),this.sendBackOperation(e,n,"ERROR",r)}}cleanHostname(e){return e.replace("http://","").replace("https://","")}setItem(e,t){this.checkKey(t);const n=this.stringifyValue(t.value),l=this.buildKey(e,t.key);this.storage.setItem(l,n)}getItem(e,t){this.checkKey(t);const n=this.buildKey(e,t.key),l=this.storage.getItem(n);if(l)return this.parseJsonIfPossible(l)}buildKey(e,t){return this.buildPrefix(e)+t.trim()}buildPrefix(e){return"Luigi#"+e+"#"}removeItem(e,t){this.checkKey(t);const n=this.buildKey(e,t.key),l=this.storage.getItem(n);if(l)return this.storage.removeItem(n),l}clear(e,t){const n=this.buildPrefix(e);Object.keys(this.storage).filter(l=>l.startsWith(n)).forEach(l=>this.storage.removeItem(l))}has(e,t){this.checkKey(t);const n=this.buildKey(e,t.key);return!!this.storage.getItem(n)}getAllKeys(e,t){const n=this.buildPrefix(e);return Object.keys(this.storage).filter(l=>l.startsWith(n)).map(l=>l.substring(n.length))}checkKey(e){if(!e.key||e.key.trim().length===0)throw"Missing key, we cannot execute storage operation"}parseJsonIfPossible(e){try{return JSON.parse(e)}catch{return e}}stringifyValue(e){if(!e)throw"Value is empty";if(typeof e=="string"||e instanceof String)return e;try{return JSON.stringify(e)}catch(t){throw"Value cannot be stringify, error: "+t}}sendBackOperation(e,t,n,l){let a={msg:"storage",data:{id:t,status:n,result:l}};Ee.getMicrofrontendsInDom().filter(r=>r.id===e).map(r=>r.container).map(r=>Ee.sendMessageToIframe(r,a))}}const nk=new tk;class ik{constructor(){}processUserSettingGroups(){const e=[],t=re.getConfigValue("userSettings.userSettingGroups"),n=re.getConfigValue("settings.userSettings.userSettingGroups"),l=t||n;if(le.isObject(l)){for(const a in l){let r={};r[a]=l[a],e.push(r)}return e}return e}createIframe(e,t){const n=Ee.createIframe(e,void 0,void 0,"usersettings"),l=document.querySelector(".iframeUserSettingsCtn");return n.setAttribute("userSettingsGroup",t),n.userSettingsGroup=t,l.appendChild(n),n}getUserSettingsIframesInDom(){const e=document.querySelector(".iframeUserSettingsCtn");return e?[...e.children]:[]}hideUserSettingsIframe(){this.getUserSettingsIframesInDom().forEach(e=>{e.style.display="none"})}findActiveCustomUserSettingsIframe(e){let t=document.querySelectorAll("[userSettingsGroup]");for(let n=0;n<t.length;n++)if(t[n].contentWindow===e)return t[n];return null}}const oa=new ik;class lk{constructor(){}handleVisibilityGlobalSearch(){if(!document.querySelector(".lui-global-search"))return;const e=document.querySelector(".lui-global-search"),t=e.offsetWidth<=384;e.classList.toggle("lui-global-search-toggle",t)}}const Kf=new lk;function jf(i,e,t){const n=i.slice();return n[9]=e[t],n}function Jf(i){let e,t,n=(i[9].dataSanitized?i[9].settings.text:"")+"",l,a,r,o,c,g;function d(){return i[4](i[9])}return{c(){e=S("div"),t=S("p"),l=H(),a=S("button"),a.innerHTML='<i class="sap-icon sap-icon--decline"></i>',r=H(),f(t,"class","fd-message-strip__text svelte-dkyena"),f(a,"class","fd-button fd-button--transparent fd-button--compact fd-message-strip__close"),f(a,"aria-label","Close"),f(a,"aria-controls","j2ALl423"),f(a,"data-testid","luigi-alert-dismiss"),f(e,"class",o="fd-message-strip fd-message-strip--"+i[1][i[9].settings.type]+" fd-message-strip--dismissible svelte-dkyena"),f(e,"role","alert"),f(e,"id","j2ALl423"),f(e,"data-testid","luigi-alert")},m(h,p){A(h,e,p),w(e,t),t.innerHTML=n,w(e,l),w(e,a),w(e,r),c||(g=ne(a,"click",d),c=!0)},p(h,p){i=h,p&1&&n!==(n=(i[9].dataSanitized?i[9].settings.text:"")+"")&&(t.innerHTML=n),p&3&&o!==(o="fd-message-strip fd-message-strip--"+i[1][i[9].settings.type]+" fd-message-strip--dismissible svelte-dkyena")&&f(e,"class",o)},d(h){h&&L(e),c=!1,g()}}}function ak(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Jf(jf(i,t,l));return{c(){e=S("div");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-shell__overlay luigi-alert--overlay svelte-dkyena"),f(e,"aria-hidden","false")},m(l,a){A(l,e,a);for(let r=0;r<n.length;r+=1)n[r].m(e,null);i[5](e)},p(l,[a]){if(a&11){t=l[0];let r;for(r=0;r<t.length;r+=1){const o=jf(l,t,r);n[r]?n[r].p(o,a):(n[r]=Jf(o),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:He,o:He,d(l){l&&L(e),ct(n,l),i[5](null)}}}function rk(i,e,t){const n=Jt();let{alertQueue:l}=e,{alertTypeMap:a={info:"information",success:"success",warning:"warning",error:"error"}}=e,r;const o=vt("getUnsavedChangesModalPromise"),c=vt("handleNavigation");Gn(()=>{if(!l||!l.length){console.warn("There are no alerts to display");return}if(l.processed)return;const p=l.map(b=>{const{text:m,links:v,closeAfter:C}=b.settings,y=da.processTextAndLinks(m,v,b.settings.id);if(setTimeout(()=>{y.links.forEach(P=>{g(P,b.settings.id)})}),b.settings.afterInit){const P=r;b.settings.afterInit({dismiss:()=>{P&&P.isConnected?n("alertDismiss",{id:b.settings.id}):console.debug("Alert already dismissed: ",P)},element:P})}return{settings:{...b.settings,text:y.sanitizedText},dataSanitized:!0}});p.processed=!0,t(0,l=p)}),xt(()=>{});function g(p,b){try{const m=document.getElementById(p.elemId);m.dismissListener&&m.removeEventListener("click",m.dismissListener);const v=C=>{if(p.url){const y=!p.url.startsWith("/");C.stopPropagation(),o().then(()=>{const P={params:{link:p.url,relative:y}};c(P)},()=>{})}else p.dismissKey&&n("alertDismiss",{id:b,dismissKey:p.dismissKey})};m.addEventListener("click",v),m.dismissListener=v}catch(m){console.error("Error on Alert::addClickListener",m)}}const d=p=>n("alertDismiss",{id:p.settings.id});function h(p){Je[p?"unshift":"push"](()=>{r=p,t(2,r)})}return i.$$set=p=>{"alertQueue"in p&&t(0,l=p.alertQueue),"alertTypeMap"in p&&t(1,a=p.alertTypeMap)},[l,a,r,n,d,h]}class sk extends Vt{constructor(e){super(),Dt(this,e,rk,ak,At,{alertQueue:0,alertTypeMap:1})}}const Ml=38,Hi=40,vi=13,mi=27,Ka=32,ok=36,uk=35;function Yf(i){let e,t;return{c(){e=S("i"),f(e,"class",t=ei(i[3](i[0].icon))+" svelte-lzffuc")},m(n,l){A(n,e,l)},p(n,l){l&1&&t!==(t=ei(n[3](n[0].icon))+" svelte-lzffuc")&&f(e,"class",t)},d(n){n&&L(e)}}}function Qf(i){let e,t,n=i[0].buttonConfirm+"",l,a,r;return{c(){e=S("div"),t=S("button"),l=Le(n),f(t,"data-testid","luigi-modal-confirm"),f(t,"class","fd-button fd-button--emphasized fd-button--compact fd-message-box__decisive-button confirm-button"),f(e,"class","fd-bar__element")},m(o,c){A(o,e,c),w(e,t),w(t,l),a||(r=ne(t,"click",i[4]),a=!0)},p(o,c){c&1&&n!==(n=o[0].buttonConfirm+"")&&Ae(l,n)},d(o){o&&L(e),a=!1,r()}}}function fk(i){let e,t,n,l,a,r,o,c=i[0].header+"",g,d,h,p=i[0].body+"",b,m,v,C,y,P,T=i[0].buttonDismiss+"",E,V,I,B,M,D=i[0].type&&Yf(i),q=i[0].buttonConfirm!==!1&&Qf(i);return{c(){e=S("div"),t=S("section"),n=S("header"),l=S("div"),a=S("div"),D&&D.c(),r=H(),o=S("h2"),g=Le(c),d=H(),h=S("div"),b=H(),m=S("footer"),v=S("div"),q&&q.c(),C=H(),y=S("div"),P=S("button"),E=Le(T),f(o,"class","fd-title fd-title--h5"),f(a,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(n,"class","fd-bar fd-bar--header fd-message-box__header"),f(h,"class","fd-message-box__body svelte-lzffuc"),f(P,"data-testid","luigi-modal-dismiss"),f(P,"class",V="fd-button "+(i[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button"),f(y,"class","fd-bar__element"),f(v,"class","fd-bar__right"),f(m,"class","fd-bar fd-bar--footer fd-message-box__footer"),f(t,"class","fd-message-box__content svelte-lzffuc"),f(e,"class",I="fd-message-box-docs-static fd-message-box fd-message-box--"+i[0].type+" fd-message-box--active svelte-lzffuc"),f(e,"data-testid","luigi-confirmation-modal")},m(X,Q){A(X,e,Q),w(e,t),w(t,n),w(n,l),w(l,a),D&&D.m(a,null),w(a,r),w(a,o),w(o,g),w(t,d),w(t,h),h.innerHTML=p,w(t,b),w(t,m),w(m,v),q&&q.m(v,null),w(v,C),w(v,y),w(y,P),w(P,E),B||(M=[ne(window,"keydown",i[1]),ne(P,"click",i[5])],B=!0)},p(X,[Q]){X[0].type?D?D.p(X,Q):(D=Yf(X),D.c(),D.m(a,r)):D&&(D.d(1),D=null),Q&1&&c!==(c=X[0].header+"")&&Ae(g,c),Q&1&&p!==(p=X[0].body+"")&&(h.innerHTML=p),X[0].buttonConfirm!==!1?q?q.p(X,Q):(q=Qf(X),q.c(),q.m(v,C)):q&&(q.d(1),q=null),Q&1&&T!==(T=X[0].buttonDismiss+"")&&Ae(E,T),Q&1&&V!==(V="fd-button "+(X[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button")&&f(P,"class",V),Q&1&&I!==(I="fd-message-box-docs-static fd-message-box fd-message-box--"+X[0].type+" fd-message-box--active svelte-lzffuc")&&f(e,"class",I)},i:He,o:He,d(X){X&&L(e),D&&D.d(),q&&q.d(),B=!1,Ze(M)}}}function ck(i,e,t){const n=Jt();let{settings:l}=e;const a={confirmation:"question-mark",information:"message-information",warning:"message-warning",error:"message-error",success:"message-success"};Ja(()=>{Ee.enableA11YKeyboardBackdropExceptClassName(".fd-message-box-docs-static")}),xt(()=>{const d={icon:a[l.type],header:St.getTranslation("luigi.confirmationModal.header"),body:St.getTranslation("luigi.confirmationModal.body"),buttonDismiss:St.getTranslation("luigi.button.dismiss"),buttonConfirm:St.getTranslation("luigi.button.confirm")};t(0,l={...l,body:da.sanatizeHtmlExceptTextFormatting(l.body)}),t(0,l=Object.assign(d,l)),Ee.disableA11YKeyboardExceptClassName(".fd-message-box-docs-static");const h=l.buttonConfirm?"confirm-button":"dismiss-button";try{document.querySelector(`.${h}`).focus()}catch{console.warn(`Couldn't focus ${h} in modal`)}});function r(d){return oe.renderIconClassName(d)}function o(d){d.keyCode===mi&&n("modalDismiss")}const c=()=>n("modalConfirm"),g=()=>n("modalDismiss");return i.$$set=d=>{"settings"in d&&t(0,l=d.settings)},[l,o,n,r,c,g]}class dk extends Vt{constructor(e){super(),Dt(this,e,ck,fk,At,{settings:0,handleKeydown:1})}get handleKeydown(){return this.$$.ctx[1]}}function hk(i){let e,t,n;const l=i[5].default,a=U_(l,i,i[4],null);return{c(){e=S("div"),a&&a.c(),f(e,"class",t=i[0]+" "+(i[1]==="main"?"zIndexZero":"")+" svelte-az6f9h"),f(e,"aria-hidden","false")},m(r,o){A(r,e,o),a&&a.m(e,null),n=!0},p(r,[o]){a&&a.p&&(!n||o&16)&&H_(a,l,r,r[4],n?B_(l,r[4],o,null):W_(r[4]),null),(!n||o&3&&t!==(t=r[0]+" "+(r[1]==="main"?"zIndexZero":"")+" svelte-az6f9h"))&&f(e,"class",t)},i(r){n||(R(a,r),n=!0)},o(r){U(a,r),n=!1},d(r){r&&L(e),a&&a.d(r)}}}function gk(i,e,t){let{$$slots:n={},$$scope:l}=e;const a=Jt();let{backdropClass:r=""}=e,{backdropActive:o=!1}=e,c=!1,g={},{area:d}=e,{disable:h}=e;const p=()=>{const m="lui-backdrop ";o?g.data&&g.data.heightCssClass?t(0,r=m+g.data.heightCssClass):t(0,r=m+"height-auto"):t(0,r="")},b=m=>{if(!d)return!0;const C=[...Ee.getMicrofrontendsInDom(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(y=>y.container&&y.container.contentWindow===m.source);return!(C&&d===C.type)};return xt(()=>{re.getConfigValue("settings.backdropDisabled")||(p(),Mn.addEventListener("message",v=>{const C=Ee.getValidMessageSource(v);C&&h!==!0&&(v.data.msg==="luigi.add-backdrop"&&(t(2,o=b(v)),a("stateChanged",{backdropActive:!0}),Ee.disableA11yOfInactiveIframe(C)),v.data.msg==="luigi.remove-backdrop"&&(t(2,o=!1),a("stateChanged",{backdropActive:!1}),c&&Ee.enableA11yOfInactiveIframe()))}))}),Gn(()=>{o!==c&&(c=o,p())}),i.$$set=m=>{"backdropClass"in m&&t(0,r=m.backdropClass),"backdropActive"in m&&t(2,o=m.backdropActive),"area"in m&&t(1,d=m.area),"disable"in m&&t(3,h=m.disable),"$$scope"in m&&t(4,l=m.$$scope)},[r,d,o,h,l,n]}class Ol extends Vt{constructor(e){super(),Dt(this,e,gk,hk,At,{backdropClass:0,backdropActive:2,area:1,disable:3})}}function Zf(i){let e,t,n,l,a,r,o,c,g,d,h,p,b,m;t=new Ol({props:{disable:i[2]}});let v=i[0].title&&Xf(i);return{c(){e=S("div"),Ue(t.$$.fragment),n=H(),l=S("div"),a=S("div"),v&&v.c(),r=H(),o=S("div"),c=S("div"),g=S("button"),d=S("i"),f(a,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(d,"class","sap-icon sap-icon--decline"),f(g,"class","fd-button fd-button--transparent fd-button--compact"),f(g,"aria-label","close"),f(g,"data-testid",h=i[0].closebtn_data_testid&&i[5]?i[0].closebtn_data_testid:"lui-modal-index-"+i[1]),f(c,"class","fd-bar__element"),f(o,"class","fd-bar__right"),f(e,"class","lui-modal-header fd-dialog__header fd-bar fd-bar--header svelte-1rzu3xo")},m(C,y){A(C,e,y),Oe(t,e,null),w(e,n),w(e,l),w(l,a),v&&v.m(a,null),w(e,r),w(e,o),w(o,c),w(c,g),w(g,d),p=!0,b||(m=ne(g,"click",i[11]),b=!0)},p(C,y){const P={};y&4&&(P.disable=C[2]),t.$set(P),C[0].title?v?v.p(C,y):(v=Xf(C),v.c(),v.m(a,null)):v&&(v.d(1),v=null),(!p||y&35&&h!==(h=C[0].closebtn_data_testid&&C[5]?C[0].closebtn_data_testid:"lui-modal-index-"+C[1]))&&f(g,"data-testid",h)},i(C){p||(R(t.$$.fragment,C),p=!0)},o(C){U(t.$$.fragment,C),p=!1},d(C){C&&L(e),Fe(t),v&&v.d(),b=!1,m()}}}function Xf(i){let e,t=i[0].title+"",n;return{c(){e=S("h2"),n=Le(t),f(e,"class","fd-title fd-title--h5"),f(e,"id","dialog-title-1")},m(l,a){A(l,e,a),w(e,n)},p(l,a){a&1&&t!==(t=l[0].title+"")&&Ae(n,t)},d(l){l&&L(e)}}}function $f(i){let e;const t=i[10].default,n=U_(t,i,i[9],null);return{c(){n&&n.c()},m(l,a){n&&n.m(l,a),e=!0},p(l,a){n&&n.p&&(!e||a&512)&&H_(n,t,l,l[9],e?B_(t,l[9],a,null):W_(l[9]),null)},i(l){e||(R(n,l),e=!0)},o(l){U(n,l),e=!1},d(l){n&&n.d(l)}}}function xf(i){let e;return{c(){e=S("div"),e.innerHTML=`<div class="fd-busy-indicator fd-busy-indicator--m" aria-hidden="false" aria-label="Loading" data-testid="luigi-loading-spinner"><div class="fd-busy-indicator__circle"></div>
|
|
53
53
|
<div class="fd-busy-indicator__circle"></div>
|
|
54
54
|
<div class="fd-busy-indicator__circle"></div></div>`,f(e,"class","fd-page spinnerContainer fade-out svelte-1rzu3xo"),f(e,"aria-hidden","false"),f(e,"aria-label","Loading")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function _k(i){let e,t,n,l,a,r,o,c,g,d,h,p,b,m,v=(i[5]||i[4]&&i[0].header)&&Zf(i),C=i[4]&&$f(i),y=i[3]&&xf();return{c(){e=S("div"),t=S("div"),v&&v.c(),n=H(),l=S("div"),C&&C.c(),a=H(),r=S("div"),g=H(),y&&y.c(),f(r,"class",o="iframeModalCtn "+(i[4]?"_drawer":"_modal")+" svelte-1rzu3xo"),f(r,"modal-container-index",c=i[4]?void 0:i[1]),f(l,"class","fd-dialog__body svelte-1rzu3xo"),f(t,"class",d="fd-dialog__content "+(i[4]?i[0].backdrop?"drawer drawer-dialog__content drawer__backdrop":"drawer drawer-dialog__content":"lui-modal-mf lui-modal-index-"+i[1])+" svelte-1rzu3xo"),f(t,"data-testid",h=i[5]?"modal-mf":"drawer-mf"),f(t,"role","dialog"),f(t,"aria-modal","true"),f(t,"aria-labelledby","dialog-title-1"),f(e,"class",p=ei(i[5]||i[4]&&i[0].backdrop?"fd-dialog fd-dialog--active":"drawer-dialog")+" svelte-1rzu3xo"),f(e,"style",b=i[5]?"z-index:1001":"")},m(P,T){A(P,e,T),w(e,t),v&&v.m(t,null),w(t,n),w(t,l),C&&C.m(l,null),w(l,a),w(l,r),w(t,g),y&&y.m(t,null),m=!0},p(P,[T]){P[5]||P[4]&&P[0].header?v?(v.p(P,T),T&49&&R(v,1)):(v=Zf(P),v.c(),R(v,1),v.m(t,n)):v&&(ke(),U(v,1,1,()=>{v=null}),Se()),P[4]?C?(C.p(P,T),T&16&&R(C,1)):(C=$f(P),C.c(),R(C,1),C.m(l,a)):C&&(ke(),U(C,1,1,()=>{C=null}),Se()),(!m||T&16&&o!==(o="iframeModalCtn "+(P[4]?"_drawer":"_modal")+" svelte-1rzu3xo"))&&f(r,"class",o),(!m||T&18&&c!==(c=P[4]?void 0:P[1]))&&f(r,"modal-container-index",c),P[3]?y||(y=xf(),y.c(),y.m(t,null)):y&&(y.d(1),y=null),(!m||T&19&&d!==(d="fd-dialog__content "+(P[4]?P[0].backdrop?"drawer drawer-dialog__content drawer__backdrop":"drawer drawer-dialog__content":"lui-modal-mf lui-modal-index-"+P[1])+" svelte-1rzu3xo"))&&f(t,"class",d),(!m||T&32&&h!==(h=P[5]?"modal-mf":"drawer-mf"))&&f(t,"data-testid",h),(!m||T&49&&p!==(p=ei(P[5]||P[4]&&P[0].backdrop?"fd-dialog fd-dialog--active":"drawer-dialog")+" svelte-1rzu3xo"))&&f(e,"class",p),(!m||T&32&&b!==(b=P[5]?"z-index:1001":""))&&f(e,"style",b)},i(P){m||(R(v),R(C),m=!0)},o(P){U(v),U(C),m=!1},d(P){P&&L(e),v&&v.d(),C&&C.d(),y&&y.d()}}}function pk(i,e,t){let{$$slots:n={},$$scope:l}=e,{settings:a}=e,{isDataPrepared:r=!1}=e,{nodepath:o}=e,{modalIndex:c}=e,{disableBackdrop:g}=e;const d=Jt();let h,p,b,m=!1,v=!1,C=!1,y=!1,P=!1,T=!0,E,V=vt("store");const I=K=>oe.getNodeLabel(K),B=async K=>{const J=K&&K.length?le.getPathWithoutHash(K):"",j=we.parseParams(J.split("?")[1]);b=we.getNodeParams(j);const _e=await Ot.extractDataFromPath(K);h=_e.nodeObject,t(4,P=a.isDrawer||typeof h.drawer=="object"),E=P?"._drawer":`[modal-container-index="${c}"]`,t(0,a._liveLabel=!1,a),P?(t(5,T=!1),a.header===void 0?(t(0,a.header=!0,a),t(0,a.title=I(h),a),t(0,a._liveLabel=!0,a)):a.header&&a.header.title&&t(0,a.title=a.header.title,a),(a.backdrop===void 0||!a.backdrop)&&(t(0,a.backdrop=!1,a),d("drawerState",{activeDrawer:!0})),a.size||t(0,a.size="s",a),a.overlap===void 0&&t(0,a.overlap=!0,a)):a.title||(t(0,a.title=I(h),a),t(0,a._liveLabel=!0,a)),p=_e.pathData,t(7,r=!0)},M=async K=>{if(!(m||v))if(r)if(h.webcomponent)t(3,C=!1),P?await X():await D(),ua.renderWebComponent(h.viewUrl,document.querySelector(E),{context:p.context,clientPermissions:h.clientPermissions||{},pathParams:p.pathParams||{}},h,void 0,!0),d("wcCreated",{modalWC:document.querySelector(E),modalWCData:{...p,nodeParams:b}}),v=!0;else{const J=await q(h.viewUrl,{context:p.context,pathParams:p.pathParams,nodeParams:b});d("iframeCreated",{modalIframe:J,modalIframeData:{...p,nodeParams:b}}),m=!0}else await B(K)},D=async()=>{let K,J;const j=document.querySelector(".lui-modal-index-"+c),{size:_e,width:ie,height:se}=a,ve=/^.?[0-9]{1,3}(%|px|rem|em|vh|vw)$/;if(j.classList.remove("lui-modal-fullscreen"),ie&&ie.match(ve)&&se&&se.match(ve))K=se,J=ie;else switch(_e){case"fullscreen":K="100vh",J="100vw",j.classList.add("lui-modal-fullscreen");break;case"m":K="80%",J="60%";break;case"s":K="80%",J="40%";break;default:K="80%",J="80%"}j.setAttribute("style",`width:${J};height:${K};`)},q=async(K,J)=>{P?await X():await D(),K&&(K=we.substituteViewUrl(K,J));const j=await Ee.createIframe(K,void 0,h,"modal",J);return document.querySelector(E).appendChild(j),j};async function X(K){let J="";const j=document.getElementsByClassName("drawer"),_e=document.getElementsByClassName("drawer-dialog");a.size&&(a.size==="l"?J="width:75%;":a.size==="m"?J="width:50%;":a.size==="s"?J="width:25%;":a.size==="xs"&&(J="width:15.5%;")),a.backdrop?j[0].setAttribute("style",J):(_e[0].setAttribute("style",J),j[0].setAttribute("style","width:100%"))}ja(()=>{M(o)});const Q=async K=>{K.data.msg==="luigi.show-loading-indicator"&&t(3,C=!0),K.data.msg==="luigi.hide-loading-indicator"&&t(3,C=!1),K.data.msg==="luigi.get-context"&&(y=!0,(!h||!h.loadingIndicator||h.loadingIndicator.hideAutomatically!==!1)&&ce()),K.data.msg==="luigi.close-modal"&&d("close",{type:"modal"}),K.data.msg==="luigi.navigation.updateModalSettings"&&((K.data.updatedModalSettings.title||K.data.updatedModalSettings.title==="")&&t(0,a.title=K.data.updatedModalSettings.title,a),(K.data.updatedModalSettings.size||K.data.updatedModalSettings.width||K.data.updatedModalSettings.height)&&(t(0,a.size=K.data.updatedModalSettings.size,a),t(0,a.height=K.data.updatedModalSettings.height,a),t(0,a.width=K.data.updatedModalSettings.width,a),await D()),re.getConfigBooleanValue("routing.showModalPathInUrl")&<.updateModalDataInUrl(we.getModalPathFromPath(),{title:a.title,size:a.size,height:a.height,width:a.width},K.data.addHistoryEntry))};xt(()=>{dn.doOnStoreChange(V,()=>{a._liveLabel&&h&&t(0,a.title=I(h),a)},["navigation.viewgroupdata"]),Mn.addEventListener("message",Q),a.isDrawer&&!a.backdrop||Ee.disableA11YKeyboardExceptClassName(".lui-modal-index-"+c),window.focus(),setTimeout(()=>{var K;!y&&!h.webcomponent&&((K=h.loadingIndicator)==null?void 0:K.enabled)!==!1&&t(3,C=!0)},250)}),Ja(()=>{Mn.removeEventListener("message",Q),a.isDrawer&&!a.backdrop||Ee.enableA11YKeyboardBackdropExceptClassName(".lui-modal-index-"+c)});function ce(){let K;T?K=document.querySelector(`.lui-modal-mf.lui-modal-index-${c} .spinnerContainer`):K=document.querySelector(".drawer .spinnerContainer"),K&&K.classList.contains("fade-out")&&(K.classList.remove("fade-out"),setTimeout(()=>{t(3,C=!1)},250))}const x=()=>d("close",{activeDrawer:!1});return i.$$set=K=>{"settings"in K&&t(0,a=K.settings),"isDataPrepared"in K&&t(7,r=K.isDataPrepared),"nodepath"in K&&t(8,o=K.nodepath),"modalIndex"in K&&t(1,c=K.modalIndex),"disableBackdrop"in K&&t(2,g=K.disableBackdrop),"$$scope"in K&&t(9,l=K.$$scope)},[a,c,g,C,P,T,d,r,o,l,n,x]}class np extends Vt{constructor(e){super(),Dt(this,e,pk,_k,At,{settings:0,isDataPrepared:7,nodepath:8,modalIndex:1,disableBackdrop:2})}}function ec(i,e,t){const n=i.slice();return n[27]=e[t][0],n[28]=e[t][1],n[29]=e,n[30]=t,n}function tc(i,e,t){const n=i.slice();return n[31]=e[t],n[33]=t,n}function nc(i,e,t){const n=i.slice();return n[31]=e[t],n[33]=t,n}function ic(i){let e,t=i[1][1].settings&&lc(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,l){n[1][1].settings?t?t.p(n,l):(t=lc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&L(e)}}}function lc(i){let e,t,n=Object.entries(i[1][1].settings),l=[];for(let a=0;a<n.length;a+=1)l[a]=hc(ec(i,n,a));return{c(){e=S("div"),t=S("div");for(let a=0;a<l.length;a+=1)l[a].c();f(t,"class","fd-container fd-form-layout-grid-container"),f(e,"class","fd-page__content")},m(a,r){A(a,e,r),w(e,t);for(let o=0;o<l.length;o+=1)l[o].m(t,null)},p(a,r){if(r[0]&16191){n=Object.entries(a[1][1].settings);let o;for(o=0;o<n.length;o+=1){const c=ec(a,n,o);l[o]?l[o].p(c,r):(l[o]=hc(c),l[o].c(),l[o].m(t,null))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(a){a&&L(e),ct(l,a)}}}function ac(i){let e;function t(a,r){return a[28].isEditable||a[28].isEditable===void 0?bk:mk}let n=t(i),l=n(i);return{c(){l.c(),e=Ce()},m(a,r){l.m(a,r),A(a,e,r)},p(a,r){n===(n=t(a))&&l?l.p(a,r):(l.d(1),l=n(a),l&&(l.c(),l.m(e.parentNode,e)))},d(a){l.d(a),a&&L(e)}}}function mk(i){let e,t=i[0][i[1][0]][i[27]]+"",n,l;return{c(){e=S("div"),n=Le(t),f(e,"class","fd-text"),f(e,"data-testid","lui-us-input"+i[30]),f(e,"id","fd-form-input-"+i[30]),f(e,"disabled",l=!(i[28].isEditable===void 0||i[28].isEditable))},m(a,r){A(a,e,r),w(e,n)},p(a,r){r[0]&3&&t!==(t=a[0][a[1][0]][a[27]]+"")&&Ae(n,t),r[0]&2&&l!==(l=!(a[28].isEditable===void 0||a[28].isEditable))&&f(e,"disabled",l)},d(a){a&&L(e)}}}function bk(i){let e,t,n,l,a;function r(){i[17].call(e,i[27])}return{c(){e=S("input"),f(e,"class","fd-input fd-input--compact"),f(e,"type","text"),f(e,"aria-label","Image label"),f(e,"placeholder",t=i[5](i[28].placeholder)),f(e,"data-testid","lui-us-input"+i[30]),f(e,"id","fd-form-input-"+i[30]),e.disabled=n=!(i[28].isEditable===void 0||i[28].isEditable)},m(o,c){A(o,e,c),Wf(e,i[0][i[1][0]][i[27]]),l||(a=ne(e,"input",r),l=!0)},p(o,c){i=o,c[0]&34&&t!==(t=i[5](i[28].placeholder))&&f(e,"placeholder",t),c[0]&2&&n!==(n=!(i[28].isEditable===void 0||i[28].isEditable))&&(e.disabled=n),c[0]&3&&e.value!==i[0][i[1][0]][i[27]]&&Wf(e,i[0][i[1][0]][i[27]])},d(o){o&&L(e),l=!1,a()}}}function rc(i){let e,t,n,l,a,r,o=i[11](i[0][i[1][0]][i[27]],i[28].options)+"",c,g,d,h,p,b,m,v=Array.isArray(i[28].options),C,y;function P(...V){return i[18](i[27],i[30],i[28],...V)}function T(){return i[19](i[28])}let E=v&&sc(i);return{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),a=S("button"),r=S("span"),c=Le(o),d=H(),h=S("span"),h.innerHTML='<i class="sap-icon--slim-arrow-down"></i>',b=H(),m=S("div"),E&&E.c(),f(r,"class","fd-select__text-content"),f(r,"data-testid","lui-us-input"+i[30]),f(r,"disabled",g=!(i[28].isEditable===void 0||i[28].isEditable)),f(h,"class","fd-button fd-button--transparent fd-select__button lui-activate-dropdown"),f(a,"tabindex","0"),f(a,"aria-expanded","false"),f(a,"aria-haspopup","listbox"),f(a,"aria-label","Language"),f(a,"class","fd-select__control lui-anchor-node svelte-1q4f8ra"),f(a,"data-testid",p="lui-us-"+i[28].type+"-"+i[30]),f(a,"id","fd-form-input-"+i[30]),f(l,"class","fd-select fd-select--compact"),f(n,"class","fd-popover__control"),f(n,"aria-expanded","false"),f(n,"aria-haspopup","true"),f(m,"class","fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown fd-popover__body--dropdown-fill"),f(m,"aria-hidden","true"),f(t,"class","fd-popover"),f(e,"class","fd-form-item")},m(V,I){A(V,e,I),w(e,t),w(t,n),w(n,l),w(l,a),w(a,r),w(r,c),w(a,d),w(a,h),w(t,b),w(t,m),E&&E.m(m,null),C||(y=[ne(a,"keydown",P),ne(n,"click",Ut(T))],C=!0)},p(V,I){i=V,I[0]&3&&o!==(o=i[11](i[0][i[1][0]][i[27]],i[28].options)+"")&&Ae(c,o),I[0]&2&&g!==(g=!(i[28].isEditable===void 0||i[28].isEditable))&&f(r,"disabled",g),I[0]&2&&p!==(p="lui-us-"+i[28].type+"-"+i[30])&&f(a,"data-testid",p),I[0]&2&&(v=Array.isArray(i[28].options)),v?E?E.p(i,I):(E=sc(i),E.c(),E.m(m,null)):E&&(E.d(1),E=null)},d(V){V&&L(e),E&&E.d(),C=!1,Ze(y)}}}function sc(i){let e,t=i[28].options,n=[];for(let l=0;l<t.length;l+=1)n[l]=oc(nc(i,t,l));return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-list fd-list--compact fd-list--dropdown"),f(e,"id","fd-form-input-dropdown-"+i[30]),f(e,"role","listbox")},m(l,a){A(l,e,a);for(let r=0;r<n.length;r+=1)n[r].m(e,null)},p(l,a){if(a[0]&4634){t=l[28].options;let r;for(r=0;r<t.length;r+=1){const o=nc(l,t,r);n[r]?n[r].p(o,a):(n[r]=oc(o),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(l){l&&L(e),ct(n,l)}}}function oc(i){let e,t,n=i[12](i[31])+"",l,a,r,o,c;function g(){return i[20](i[27],i[31],i[33])}return{c(){e=S("li"),t=S("span"),l=Le(n),a=H(),f(t,"class","fd-list__title"),f(e,"role","option"),f(e,"class","fd-list__item"),f(e,"data-testid","lui-us-option"+i[30]+"_"+i[33]),f(e,"aria-selected",r=i[4]===i[33]),f(e,"tabindex","0"),jt(e,"is-selected",i[4]===i[33]),jt(e,"is-focus",i[4]===i[33])},m(d,h){A(d,e,h),w(e,t),w(t,l),w(e,a),o||(c=[ne(e,"click",g),ne(e,"keydown",i[21])],o=!0)},p(d,h){i=d,h[0]&2&&n!==(n=i[12](i[31])+"")&&Ae(l,n),h[0]&16&&r!==(r=i[4]===i[33])&&f(e,"aria-selected",r),h[0]&16&&jt(e,"is-selected",i[4]===i[33]),h[0]&16&&jt(e,"is-focus",i[4]===i[33])},d(d){d&&L(e),o=!1,Ze(c)}}}function uc(i){let e,t,n,l=i[28].options,a=[];for(let r=0;r<l.length;r+=1)a[r]=fc(tc(i,l,r));return{c(){e=S("div"),t=S("div");for(let r=0;r<a.length;r+=1)a[r].c();f(t,"class",n="fd-segmented-button enum-buttons-container-"+i[27]+" svelte-1q4f8ra"),f(t,"role","group"),f(t,"aria-label","Group label"),f(e,"class","fd-form-item")},m(r,o){A(r,e,o),w(e,t);for(let c=0;c<a.length;c+=1)a[c].m(t,null)},p(r,o){if(o[0]&13315){l=r[28].options;let c;for(c=0;c<l.length;c+=1){const g=tc(r,l,c);a[c]?a[c].p(g,o):(a[c]=fc(g),a[c].c(),a[c].m(t,null))}for(;c<a.length;c+=1)a[c].d(1);a.length=l.length}o[0]&2&&n!==(n="fd-segmented-button enum-buttons-container-"+r[27]+" svelte-1q4f8ra")&&f(t,"class",n)},d(r){r&&L(e),ct(a,r)}}}function fc(i){let e,t=i[12](i[31])+"",n,l,a,r,o,c,g,d;function h(){return i[22](i[27],i[31])}return{c(){e=S("button"),n=Le(t),l=H(),f(e,"class",a="lui-fd-enum-button fd-button fd-button--compact "+(i[0][i[1][0]][i[27]]===(i[31].value||i[31])?"is-selected":"")),f(e,"id",r=i[13]("lui-us-enum_button",i[27],i[31])),f(e,"data-testid",o=i[13]("lui-us-enum_button",i[27],i[31])),e.disabled=c=!(i[28].isEditable===void 0||i[28].isEditable)},m(p,b){A(p,e,b),w(e,n),w(e,l),g||(d=ne(e,"click",h),g=!0)},p(p,b){i=p,b[0]&2&&t!==(t=i[12](i[31])+"")&&Ae(n,t),b[0]&3&&a!==(a="lui-fd-enum-button fd-button fd-button--compact "+(i[0][i[1][0]][i[27]]===(i[31].value||i[31])?"is-selected":""))&&f(e,"class",a),b[0]&2&&r!==(r=i[13]("lui-us-enum_button",i[27],i[31]))&&f(e,"id",r),b[0]&2&&o!==(o=i[13]("lui-us-enum_button",i[27],i[31]))&&f(e,"data-testid",o),b[0]&2&&c!==(c=!(i[28].isEditable===void 0||i[28].isEditable))&&(e.disabled=c)},d(p){p&&L(e),g=!1,d()}}}function cc(i){let e,t,n,l,a,r,o,c,g,d;function h(){i[23].call(n,i[27])}return{c(){e=S("label"),t=S("span"),n=S("input"),r=H(),o=S("div"),o.innerHTML='<div class="fd-switch__track"><span class="fd-switch__handle" role="presentation"></span></div>',f(n,"class","fd-switch__input"),f(n,"type","checkbox"),f(n,"aria-labelledby","label1"),f(n,"data-testid",l="lui-us-checkbox-switch_"+i[27]),n.disabled=a=!(i[28].isEditable===void 0||i[28].isEditable),f(o,"class","fd-switch__slider"),f(t,"class","fd-switch__control"),f(e,"class","fd-switch fd-switch--compact"),f(e,"data-testid",c="lui-us-label-switch_"+i[27])},m(p,b){A(p,e,b),w(e,t),w(t,n),n.checked=i[0][i[1][0]][i[27]],w(t,r),w(t,o),g||(d=ne(n,"change",h),g=!0)},p(p,b){i=p,b[0]&2&&l!==(l="lui-us-checkbox-switch_"+i[27])&&f(n,"data-testid",l),b[0]&2&&a!==(a=!(i[28].isEditable===void 0||i[28].isEditable))&&(n.disabled=a),b[0]&3&&(n.checked=i[0][i[1][0]][i[27]]),b[0]&2&&c!==(c="lui-us-label-switch_"+i[27])&&f(e,"data-testid",c)},d(p){p&&L(e),g=!1,d()}}}function dc(i){let e,t,n,l;function a(){i[24].call(e,i[27])}return{c(){e=S("input"),f(e,"type","checkbox"),f(e,"class","fd-checkbox"),e.disabled=t=!(i[28].isEditable===void 0||i[28].isEditable)},m(r,o){A(r,e,o),e.checked=i[0][i[1][0]][i[27]],n||(l=ne(e,"change",a),n=!0)},p(r,o){i=r,o[0]&2&&t!==(t=!(i[28].isEditable===void 0||i[28].isEditable))&&(e.disabled=t),o[0]&3&&(e.checked=i[0][i[1][0]][i[27]])},d(r){r&&L(e),n=!1,l()}}}function hc(i){let e,t,n,l=i[5](i[28].label)+"",a,r,o,c,g,d,h=i[28].type==="enum"&&i[28].style==="button"&&Array.isArray(i[28].options),p,b,m,v=i[28].type==="string"&&ac(i),C=i[28].type==="enum"&&(i[28].style===void 0||i[28].style==="list")&&rc(i),y=h&&uc(i),P=i[28].type==="boolean"&&(!i[28].style||i[28].style==="switch")&&cc(i),T=i[28].type==="boolean"&&i[28].style==="checkbox"&&dc(i);return{c(){e=S("div"),t=S("div"),n=S("label"),a=Le(l),r=Le(":"),o=H(),c=S("div"),v&&v.c(),g=H(),C&&C.c(),d=H(),y&&y.c(),p=H(),P&&P.c(),b=H(),T&&T.c(),m=H(),f(n,"class","fd-form-label svelte-1q4f8ra"),f(n,"for","fd-form-input-"+i[30]),f(t,"class","fd-col fd-col--4 svelte-1q4f8ra"),f(c,"class","fd-col fd-col--8 svelte-1q4f8ra"),f(e,"class","fd-row svelte-1q4f8ra")},m(E,V){A(E,e,V),w(e,t),w(t,n),w(n,a),w(n,r),w(e,o),w(e,c),v&&v.m(c,null),w(c,g),C&&C.m(c,null),w(c,d),y&&y.m(c,null),w(c,p),P&&P.m(c,null),w(c,b),T&&T.m(c,null),w(e,m)},p(E,V){V[0]&34&&l!==(l=E[5](E[28].label)+"")&&Ae(a,l),E[28].type==="string"?v?v.p(E,V):(v=ac(E),v.c(),v.m(c,g)):v&&(v.d(1),v=null),E[28].type==="enum"&&(E[28].style===void 0||E[28].style==="list")?C?C.p(E,V):(C=rc(E),C.c(),C.m(c,d)):C&&(C.d(1),C=null),V[0]&2&&(h=E[28].type==="enum"&&E[28].style==="button"&&Array.isArray(E[28].options)),h?y?y.p(E,V):(y=uc(E),y.c(),y.m(c,p)):y&&(y.d(1),y=null),E[28].type==="boolean"&&(!E[28].style||E[28].style==="switch")?P?P.p(E,V):(P=cc(E),P.c(),P.m(c,b)):P&&(P.d(1),P=null),E[28].type==="boolean"&&E[28].style==="checkbox"?T?T.p(E,V):(T=dc(E),T.c(),T.m(c,null)):T&&(T.d(1),T=null)},d(E){E&&L(e),v&&v.d(),C&&C.d(),y&&y.d(),P&&P.d(),T&&T.d()}}}function vk(i){let e,t,n,l=i[1]&&i[1][0]&&i[1][1]&&ic(i);return{c(){e=S("div"),l&&l.c(),f(e,"class","lui-usersettings-content svelte-1q4f8ra")},m(a,r){A(a,e,r),l&&l.m(e,null),t||(n=[ne(window,"click",i[7]),ne(window,"blur",i[7])],t=!0)},p(a,r){a[1]&&a[1][0]&&a[1][1]?l?l.p(a,r):(l=ic(a),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:He,o:He,d(a){a&&L(e),l&&l.d(),t=!1,Ze(n)}}}function ns(i,e,t){if(i&&t>0)return i.matches(e)?i:ns(i.parentNode,e,t-1)}function wk(i,e,t){let n,{userSettingGroup:l}=e,{storedUserSettingData:a}=e;const r=Jt();let o=vt("getTranslation");wi(i,o,x=>t(5,n=x));let c,{isComboOpen:g}=e;function d(){r("updateSettingsObject",{storedUserSettingData:a})}const h=()=>{p()};function p(x){document.querySelectorAll(".lui-usersettings-content .fd-popover__control").forEach(K=>{m(K,!1)})}function b(x,K){let J=ns(x.target,".fd-popover__control",20),j=J.getAttribute("aria-expanded")==="true";(K||K===void 0)&&(p(),m(J,!j))}function m(x,K){const J=x.querySelector(".lui-activate-dropdown"),j=x.parentNode.querySelector(".fd-popover__body"),_e=x.parentNode.querySelector(".fd-select__control");x.setAttribute("aria-expanded",K),j.setAttribute("aria-hidden",!K),_e.setAttribute("aria-expanded",K),J.setAttribute("aria-expanded",K),t(14,g=K)}function v(x,K,J){t(4,c=J),t(0,a[l[0]][x]=K.value||K,a)}function C(x,K){document.querySelectorAll(".enum-buttons-container-"+x+" button").forEach(J=>{const j=J.getAttribute("id"),_e=`lui-us-enum_button_${x}_option`;j===_e?J.classList.add("fd-button--emphasized"):J.classList.remove("fd-button--emphasized")}),t(0,a[l[0]][x]=K.value||K,a)}function y(x,K){let J;if(Array.isArray(K)){for(let j=0;j<K.length;j++)if(le.isObject(K[j])){if(K[j].value&&K[j].value===x){J=K[j].label,t(4,c=j);break}}else{J=x,t(4,c=K.indexOf(x));break}return n(J)}}function P(x){return n(le.isObject(x)?x.label:x)}function T(x,K,J){return le.isObject(J)?`${x}_${K}_${J.value}`:`${x}_${K}_${J}`}function E(x,K,J,j){let _e=ns(x.target,".lui-anchor-node",20);const ie=document.getElementById(`fd-form-input-dropdown-${J}`).children;let se=-1;if([...ie].forEach((ve,ae)=>{ve.classList.contains("is-focus")&&(se=ae)}),g){if(x.keyCode===Ml&&x.altKey&&(_e.click(),_e.focus()),x.keyCode===Hi&&!x.altKey){if(se===-1){se=0,ie.item(se).classList.add("is-focus");return}se<j.options.length-1&&(ie.item(se).classList.remove("is-focus"),se+=1,ie.item(se).classList.add("is-focus"))}if(x.keyCode===Ml&&!x.altKey){if(se===-1){se=se.length-1,ie.item(se).classList.add("is-focus");return}se>0&&se<j.options.length&&(ie.item(se).classList.remove("is-focus"),se-=1,ie.item(se).classList.add("is-focus"))}(x.keyCode===vi||x.keyCode===Ka)&&v(K,j.options[se],se)}else _e.focus(),x.keyCode===Hi&&x.altKey&&_e.click(),x.keyCode===Hi&&!x.altKey&&se<j.options.length-1&&v(K,j.options[se+1],se+1),x.keyCode===Ml&&!x.altKey&&se>0&&se<j.options.length&&v(K,j.options[se-1],se-1)}function V(x){if(g){let K=ns(x.target,".fd-popover",20);K.blur(),(x.keyCode===Ka||x.keyCode===vi)&&(x.target.click(),p(),setTimeout(()=>{K.focus()},0))}}y();function I(x){a[l[0]][x]=this.value,t(0,a)}const B=(x,K,J,j)=>E(j,x,K,J),M=x=>b(event,x.isEditable),D=(x,K,J)=>v(x,K,J),q=x=>V(x),X=(x,K)=>C(x,K);function Q(x){a[l[0]][x]=this.checked,t(0,a)}function ce(x){a[l[0]][x]=this.checked,t(0,a)}return i.$$set=x=>{"userSettingGroup"in x&&t(1,l=x.userSettingGroup),"storedUserSettingData"in x&&t(0,a=x.storedUserSettingData),"isComboOpen"in x&&t(14,g=x.isComboOpen)},[a,l,E,V,c,n,o,p,b,v,C,y,P,T,g,d,h,I,B,M,D,q,X,Q,ce]}class kk extends Vt{constructor(e){super(),Dt(this,e,wk,vk,At,{userSettingGroup:1,storedUserSettingData:0,isComboOpen:14,updateSettingsObject:15,closeDropDown:16,handleKeyListDropdown:2,keyPressDropdownNode:3},null,[-1,-1])}get updateSettingsObject(){return this.$$.ctx[15]}get closeDropDown(){return this.$$.ctx[16]}get handleKeyListDropdown(){return this.$$.ctx[2]}get keyPressDropdownNode(){return this.$$.ctx[3]}}const{window:gc}=gl;function _c(i,e,t){const n=i.slice();return n[30]=e[t][0],n[11]=e[t][1],n[36]=t,n}function pc(i,e,t){const n=i.slice();return n[37]=e[t],n}function mc(i){let e,t,n;function l(o,c){return c[0]&2&&(e=null),e==null&&(e=!!o[19](o[37][1])),e?Ck:Sk}let a=l(i,[-1,-1]),r=a(i);return{c(){r.c(),t=H(),n=S("i"),f(n,"role","presentation"),f(n,"class","sap-icon")},m(o,c){r.m(o,c),A(o,t,c),A(o,n,c)},p(o,c){a===(a=l(o,c))&&r?r.p(o,c):(r.d(1),r=a(o),r&&(r.c(),r.m(t.parentNode,t)))},d(o){r.d(o),o&&L(t),o&&L(n)}}}function Sk(i){let e,t,n,l,a,r=i[37][1].initials&&bc(i);return{c(){e=S("span"),l=H(),r&&r.c(),a=Ce(),f(e,"class",t=ei(i[37][1].iconClassAttribute||"fd-image--s fd-list__thumbnail")+" svelte-d5kn3x"),f(e,"aria-label",n=i[37][1].altText?i[37][1].altText:""),Vn(e,"background-image","url('"+i[37][1].icon+"')"),Vn(e,"background-size","cover")},m(o,c){A(o,e,c),A(o,l,c),r&&r.m(o,c),A(o,a,c)},p(o,c){c[0]&2&&t!==(t=ei(o[37][1].iconClassAttribute||"fd-image--s fd-list__thumbnail")+" svelte-d5kn3x")&&f(e,"class",t),c[0]&2&&n!==(n=o[37][1].altText?o[37][1].altText:"")&&f(e,"aria-label",n),c[0]&2&&Vn(e,"background-image","url('"+o[37][1].icon+"')"),o[37][1].initials?r?r.p(o,c):(r=bc(o),r.c(),r.m(a.parentNode,a)):r&&(r.d(1),r=null)},d(o){o&&L(e),o&&L(l),r&&r.d(o),o&&L(a)}}}function Ck(i){let e,t,n;return{c(){e=S("span"),t=S("i"),f(t,"role","presentation"),f(t,"class",n=ei(i[18](i[37][1].icon))+" svelte-d5kn3x"),f(e,"class","fd-list__thumbnail")},m(l,a){A(l,e,a),w(e,t)},p(l,a){a[0]&2&&n!==(n=ei(l[18](l[37][1].icon))+" svelte-d5kn3x")&&f(t,"class",n)},d(l){l&&L(e)}}}function bc(i){let e,t=(i[37][1].initials?i[37][1].initials:"")+"",n,l,a;return{c(){e=S("span"),n=Le(t),f(e,"class",l=ei(i[37][1].iconClassAttribute+" lui-profile-initials"||"fd-image--s fd-list__thumbnail")+" svelte-d5kn3x"),f(e,"aria-label",a=i[37][1].altText?i[37][1].altText:"")},m(r,o){A(r,e,o),w(e,n)},p(r,o){o[0]&2&&t!==(t=(r[37][1].initials?r[37][1].initials:"")+"")&&Ae(n,t),o[0]&2&&l!==(l=ei(r[37][1].iconClassAttribute+" lui-profile-initials"||"fd-image--s fd-list__thumbnail")+" svelte-d5kn3x")&&f(e,"class",l),o[0]&2&&a!==(a=r[37][1].altText?r[37][1].altText:"")&&f(e,"aria-label",a)},d(r){r&&L(e)}}}function vc(i){let e,t,n,l,a,r=i[10](i[37][1].label?i[37][1].label:"")+"",o,c,g,d=i[10](i[37][1].sublabel?i[37][1].sublabel:"")+"",h,p,b,m,v=i[37][1].icon&&mc(i);function C(){return i[21](i[37])}function y(...P){return i[22](i[36],...P)}return{c(){e=S("li"),t=S("a"),v&&v.c(),n=H(),l=S("div"),a=S("div"),o=Le(r),c=H(),g=S("div"),h=Le(d),p=H(),f(a,"class","fd-list__title"),f(g,"class","fd-list__byline svelte-d5kn3x"),f(l,"class","fd-list__content"),f(t,"tabindex","-1"),f(t,"class","fd-list__link"),f(t,"href","#"),f(e,"class","fd-list__item fd-list__item--link lui-us-navlist__item"),f(e,"data-testid","us-navigation-item"),f(e,"tabindex","0")},m(P,T){A(P,e,T),w(e,t),v&&v.m(t,null),w(t,n),w(t,l),w(l,a),w(a,o),w(l,c),w(l,g),w(g,h),w(e,p),b||(m=[ne(e,"click",Pt(C)),ne(e,"keydown",y)],b=!0)},p(P,T){i=P,i[37][1].icon?v?v.p(i,T):(v=mc(i),v.c(),v.m(t,n)):v&&(v.d(1),v=null),T[0]&1026&&r!==(r=i[10](i[37][1].label?i[37][1].label:"")+"")&&Ae(o,r),T[0]&1026&&d!==(d=i[10](i[37][1].sublabel?i[37][1].sublabel:"")+"")&&Ae(h,d)},d(P){P&&L(e),v&&v.d(),b=!1,Ze(m)}}}function wc(i){let e,t=Object.entries(i[11]),n=[];for(let l=0;l<t.length;l+=1)n[l]=vc(pc(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=Ce()},m(l,a){for(let r=0;r<n.length;r+=1)n[r].m(l,a);A(l,e,a)},p(l,a){if(a[0]&803846){t=Object.entries(l[11]);let r;for(r=0;r<t.length;r+=1){const o=pc(l,t,r);n[r]?n[r].p(o,a):(n[r]=vc(o),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(l){ct(n,l),l&&L(e)}}}function kc(i){let e,t,n,l;function a(c){i[23](c)}function r(c){i[24](c)}let o={storedUserSettingData:i[0],userSettingGroup:i[11]};return i[9]!==void 0&&(o.closeDropDown=i[9]),i[8]!==void 0&&(o.isComboOpen=i[8]),e=new kk({props:o}),Je.push(()=>bt(e,"closeDropDown",a,i[9])),Je.push(()=>bt(e,"isComboOpen",r,i[8])),e.$on("updateSettingsObject",i[15]),{c(){Ue(e.$$.fragment)},m(c,g){Oe(e,c,g),l=!0},p(c,g){const d={};g[0]&1&&(d.storedUserSettingData=c[0]),g[0]&2048&&(d.userSettingGroup=c[11]),!t&&g[0]&512&&(t=!0,d.closeDropDown=c[9],mt(()=>t=!1)),!n&&g[0]&256&&(n=!0,d.isComboOpen=c[8],mt(()=>n=!1)),e.$set(d)},i(c){l||(R(e.$$.fragment,c),l=!0)},o(c){U(e.$$.fragment,c),l=!1},d(c){Fe(e,c)}}}function yk(i){let e,t,n,l,a,r,o,c=i[10](i[4])+"",g,d,h,p,b,m,v,C,y,P=i[10](i[7])+"",T,E,V,I,B,M,D,q,X,Q,ce,x=i[10](i[5])+"",K,J,j,_e,ie=i[10](i[6])+"",se,ve,ae,Re,We=Object.entries(i[1]),te=[];for(let Te=0;Te<We.length;Te+=1)te[Te]=wc(_c(i,We,Te));let de=i[11]&&kc(i);return{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),a=S("div"),r=S("div"),o=S("h2"),g=Le(c),d=H(),h=S("div"),p=S("ul");for(let Te=0;Te<te.length;Te+=1)te[Te].c();b=H(),m=S("div"),v=S("button"),v.innerHTML='<i class="sap-icon--navigation-left-arrow"></i>',C=H(),y=S("h2"),T=Le(P),E=H(),V=S("div"),I=S("div"),de&&de.c(),B=H(),M=S("div"),D=H(),q=S("footer"),X=S("div"),Q=S("div"),ce=S("button"),K=Le(x),J=H(),j=S("div"),_e=S("button"),se=Le(ie),f(o,"class","fd-title fd-title--h5 svelte-d5kn3x"),f(o,"id","dialog-title-2"),f(r,"class","fd-side-nav__group-header svelte-d5kn3x"),f(p,"class","fd-list fd-list--byline fd-list--navigation lui-us-list"),f(h,"class","fd-side-nav__main-navigation lui-fd-side-nav__main-navigation svelte-d5kn3x"),f(a,"class","fd-side-nav svelte-d5kn3x"),f(l,"class","lui-usersettings-left-nav svelte-d5kn3x"),f(v,"class","fd-button fd-button--transparent fd-button--compact lui-usersettings-content-header__back-btn svelte-d5kn3x"),f(y,"class","fd-title fd-title--h5 svelte-d5kn3x"),f(m,"class","fd-side-nav__group-header lui-usersettings-dialog-sub-header svelte-d5kn3x"),f(I,"class","usersettingseditor mf-wrapper svelte-d5kn3x"),f(M,"class","iframeUserSettingsCtn iframe-wrapper svelte-d5kn3x"),f(V,"class","lui-usersettings-content svelte-d5kn3x"),f(n,"class","fd-dialog__body lui-usersettings-body svelte-d5kn3x"),f(ce,"data-testid","lui-us-saveBtn"),f(ce,"class","fd-dialog__decisive-button fd-button fd-button--emphasized fd-button--compact confirm-button"),f(Q,"class","fd-bar__element"),f(_e,"data-testid","lui-us-dismissBtn"),f(_e,"class","fd-dialog__decisive-button fd-button fd-button--transparent fd-button--compact"),f(j,"class","fd-bar__element"),f(X,"class","fd-bar__right"),f(q,"class","fd-dialog__footer fd-bar fd-bar--footer"),f(t,"class","fd-dialog__content lui-usersettings-dialog-size svelte-d5kn3x"),f(t,"role","dialog"),f(t,"aria-modal","true"),f(t,"aria-labelledby","dialog-title-2"),f(e,"class","fd-dialog fd-dialog--active lui-usersettings-dialog svelte-d5kn3x"),f(e,"tabindex","0")},m(Te,tt){A(Te,e,tt),w(e,t),w(t,n),w(n,l),w(l,a),w(a,r),w(r,o),w(o,g),w(a,d),w(a,h),w(h,p);for(let ze=0;ze<te.length;ze+=1)te[ze].m(p,null);w(n,b),w(n,m),w(m,v),w(m,C),w(m,y),w(y,T),w(n,E),w(n,V),w(V,I),de&&de.m(I,null),w(V,B),w(V,M),w(t,D),w(t,q),w(q,X),w(X,Q),w(Q,ce),w(ce,K),w(X,J),w(X,j),w(j,_e),w(_e,se),ve=!0,ae||(Re=[ne(gc,"resize",i[20]),ne(gc,"keydown",i[3]),ne(v,"click",i[17]),ne(ce,"click",i[25]),ne(_e,"click",i[26])],ae=!0)},p(Te,tt){if((!ve||tt[0]&1040)&&c!==(c=Te[10](Te[4])+"")&&Ae(g,c),tt[0]&803846){We=Object.entries(Te[1]);let ze;for(ze=0;ze<We.length;ze+=1){const at=_c(Te,We,ze);te[ze]?te[ze].p(at,tt):(te[ze]=wc(at),te[ze].c(),te[ze].m(p,null))}for(;ze<te.length;ze+=1)te[ze].d(1);te.length=We.length}(!ve||tt[0]&1152)&&P!==(P=Te[10](Te[7])+"")&&Ae(T,P),Te[11]?de?(de.p(Te,tt),tt[0]&2048&&R(de,1)):(de=kc(Te),de.c(),R(de,1),de.m(I,null)):de&&(ke(),U(de,1,1,()=>{de=null}),Se()),(!ve||tt[0]&1056)&&x!==(x=Te[10](Te[5])+"")&&Ae(K,x),(!ve||tt[0]&1088)&&ie!==(ie=Te[10](Te[6])+"")&&Ae(se,ie)},i(Te){ve||(R(de),ve=!0)},o(Te){U(de),ve=!1},d(Te){Te&&L(e),ct(te,Te),de&&de.d(),ae=!1,Ze(Re)}}}function Sc(i,e){let t={};return i.forEach(n=>{for(let l in n){for(let a in n[l].settings)n[l].settings[a]="";t[l]={...n[l].settings,...e[l]}}}),t}function Pk(){document.querySelector(".iframeUserSettingsCtn").style.display="block",document.querySelector(".usersettingseditor").style.display="none"}function Nk(){document.querySelector(".iframeUserSettingsCtn").style.display="none",document.querySelector(".usersettingseditor").style.display="block"}function ip(i,e,t){if(i&&t>0)return i.matches(e)?i:ip(i.parentNode,e,t-1)}function Cc(){document.querySelector(".usersettings-leftNavVisible")?document.querySelector(".confirm-button").style.display="block":document.querySelector(".confirm-button").style.display="none"}function Tk(i,e,t){let n,{userSettingGroups:l}=e;const a=Jt();let r,{storedUserSettings:o={}}=e,c={},g=vt("getTranslation");wi(i,g,se=>t(10,n=se));let d=dl.userSettingsDialog.dialogHeader,h=dl.userSettingsDialog.saveBtn,p=dl.userSettingsDialog.dismissBtn,b={},m,v,C,y;Ja(()=>{Ee.enableA11YKeyboardBackdropExceptClassName(".lui-usersettings-dialog")}),xt(()=>{const se=re.getConfigValue("userSettings.userSettingsDialog"),ve=se||re.getConfigValue("settings.userSettings.userSettingsDialog");ve&&(t(4,d=ve.dialogHeader?ve.dialogHeader:d),t(5,h=ve.saveBtn?ve.saveBtn:h),t(6,p=ve.dismissBtn?ve.dismissBtn:p)),m=Object.keys(l[0]).length>0?Object.keys(l[0])[0]:void 0,Mn.addEventListener("message",ae=>{const Re=Ee.getValidMessageSource(ae);if(!Re||ae.data.msg!=="custom")return;Re._ready=!0;const We=as.convertCustomMessageInternalToUser(ae.data),te="luigi.updateUserSettings";if(We.id===te){const de=oa.findActiveCustomUserSettingsIframe(ae.source);if(de){let Te=de.getAttribute("userSettingsGroup");t(0,o[Te]=We.data,o)}}We.id==="luigi.navBackMobile"&&window.window.innerWidth!==0&&window.innerWidth<rn.desktopMinWidth&&B()}),re.readUserSettings().then(ae=>{c=JSON.parse(JSON.stringify(ae)),ae===null?t(0,o=Sc(JSON.parse(JSON.stringify(l)),{})):t(0,o=Sc(JSON.parse(JSON.stringify(l)),ae)),T([m,l[0][m]])}).catch(ae=>{ae&&ae.message&&console.error(ae.message),ae&&ae.closeDialog&&a("close")}),Ee.disableA11YKeyboardExceptClassName(".lui-usersettings-dialog")});function P(se){if(t(7,v=se.title?se.title:""),!!le.isObject(se.settings))for(let ve in se.settings){let ae=se.settings[ve];ae.type==="enum"?Array.isArray(ae.options)||console.error(`There is no options array for '${ve}' defined in the Luigi userSettings config.`):ae.type===void 0&&console.error(`There is no data type defined for '${ve}' in the Luigi userSettings config.`)}}function T(se,ve){t(11,r=se);let ae=se[0],Re=se[1];if(P(Re),ve?(document.querySelectorAll(".lui-us-list .lui-us-navlist__item").forEach(te=>{te.classList.remove("is-selected")}),ip(ve.target,".lui-us-navlist__item",20).classList.add("is-selected"),window.innerWidth<rn.desktopMinWidth&&I()):(document.querySelectorAll(".lui-us-list .lui-us-navlist__item")[0].classList.add("is-selected"),window.innerWidth!==0&&window.innerWidth<rn.desktopMinWidth&&Cc()),Re.viewUrl){if(oa.hideUserSettingsIframe(),b.hasOwnProperty(ae))oa.getUserSettingsIframesInDom().forEach(We=>{We.userSettingsGroup===ae&&(We.style.display="block")});else{const We=Ga.hasDecorators()?Ga.applyDecorators(Re.viewUrl):Re.viewUrl;let te=oa.createIframe(We,ae);b[ae]=te}Pk()}else Nk()}const E=se=>{t(0,o=se.detail.userSettings)};function V(){re.storeUserSettings(o,c).then(()=>{a("close")}).catch(se=>{se&&se.message&&console.error(se.message),se&&se.closeDialog&&a("close")})}function I(){B()}function B(){document.querySelector(".lui-usersettings-dialog").classList.toggle("usersettings-leftNavVisible"),window.innerWidth!==0&&window.innerWidth<rn.desktopMinWidth&&Cc()}function M(se){return oe.renderIconClassName(se)}function D(se){return oe.isOpenUIiconName(se.icon)}let q;const X=()=>{const se=window.innerWidth>=rn.desktopMinWidth&&q<rn.desktopMinWidth;if(window.innerWidth<rn.desktopMinWidth&&q>=rn.desktopMinWidth&&(document.querySelector(".lui-usersettings-dialog").classList.toggle("usersettings-leftNavVisible"),document.querySelector(".usersettings-leftNavVisible")?document.querySelector(".confirm-button").style.display="block":document.querySelector(".confirm-button").style.display="none"),se&&(document.querySelector(".confirm-button").style.display="block"),!q){let ae=document.querySelector(".confirm-button");window.innerWidth<rn.desktopMinWidth?ae.style.display="none":ae.style.display="block"}q=window.innerWidth};function Q(se,ve){let ae=document.querySelectorAll(".lui-us-list .lui-us-navlist__item");(se.keyCode===vi||se.keyCode===Ka)&&ae[ve].click(),se.keyCode===uk&&ae[Object.keys(l).length-1].focus(),se.keyCode===ok&&ae[0].focus()}function ce(se){se.keyCode===mi&&C?y():se.keyCode===mi&&!C&&a("close")}const x=se=>T(se,event),K=(se,ve)=>Q(ve,[se]);function J(se){y=se,t(9,y)}function j(se){C=se,t(8,C)}const _e=()=>V(),ie=()=>a("close");return i.$$set=se=>{"userSettingGroups"in se&&t(1,l=se.userSettingGroups),"storedUserSettings"in se&&t(0,o=se.storedUserSettings)},[o,l,Q,ce,d,h,p,v,C,y,n,r,a,g,T,E,V,B,M,D,X,x,K,J,j,_e,ie]}class Ik extends Vt{constructor(e){super(),Dt(this,e,Tk,yk,At,{userSettingGroups:1,storedUserSettings:0,handleKeyUp:2,handleKeyDown:3},null,[-1,-1])}get handleKeyUp(){return this.$$.ctx[2]}get handleKeyDown(){return this.$$.ctx[3]}}const{window:Lk}=gl;function Ak(i){let e;return{c(){e=S("div"),f(e,"class","iframeSplitViewCnt svelte-1q543h0")},m(t,n){A(t,e,n)},p:He,d(t){t&&L(e)}}}function Ek(i){let e,t,n,l,a=i[1].title+"",r,o,c;return{c(){e=S("div"),t=S("a"),t.innerHTML='<i class="sap-icon sap-icon--navigation-up-arrow"></i>',n=H(),l=S("h1"),r=Le(a),f(t,"class","lui-collapse-btn svelte-1q543h0"),f(e,"id","splitViewDraggerCollapsed"),f(e,"class","splitViewSeparator isCollapsed svelte-1q543h0"),f(l,"class","fd-splitView__title svelte-1q543h0")},m(g,d){A(g,e,d),w(e,t),A(g,n,d),A(g,l,d),w(l,r),o||(c=ne(t,"click",Ut(Pt(i[4]))),o=!0)},p(g,d){d&2&&a!==(a=g[1].title+"")&&Ae(r,a)},d(g){g&&L(e),g&&L(n),g&&L(l),o=!1,c()}}}function yc(i){let e,t,n,l,a,r,o,c;return{c(){e=S("div"),t=H(),n=S("div"),l=S("div"),a=H(),r=S("a"),r.innerHTML='<i class="sap-icon sap-icon--navigation-down-arrow"></i>',f(e,"id","splitViewDraggerBackdrop"),f(l,"class","splitViewSeparator"),f(r,"class","lui-collapse-btn svelte-1q543h0"),f(n,"id","splitViewDragger")},m(g,d){A(g,e,d),A(g,t,d),A(g,n,d),w(n,l),w(n,a),w(n,r),o||(c=[ne(r,"click",Ut(Pt(i[3]))),ne(n,"mousedown",Ut(i[6]))],o=!0)},p:He,d(g){g&&L(e),g&&L(t),g&&L(n),o=!1,Ze(c)}}}function Rk(i){let e,t,n,l,a,r,o,c,g,d;t=new Ol({props:{area:"split-view",disable:i[2]}}),t.$on("stateChanged",i[7]);function h(v,C){return v[0]?Ek:Ak}let p=h(i),b=p(i),m=!i[0]&&yc(i);return{c(){e=S("div"),Ue(t.$$.fragment),n=H(),l=S("div"),b.c(),r=H(),m&&m.c(),o=Ce(),f(l,"class","lui-split-view svelte-1q543h0"),f(e,"id","splitViewContainer"),f(e,"class",a="fd-page splitViewContainer "+(i[0]?"lui-collapsed":"")+" svelte-1q543h0")},m(v,C){A(v,e,C),Oe(t,e,null),w(e,n),w(e,l),b.m(l,null),A(v,r,C),m&&m.m(v,C),A(v,o,C),c=!0,g||(d=ne(Lk,"resize",i[5]),g=!0)},p(v,[C]){const y={};C&4&&(y.disable=v[2]),t.$set(y),p===(p=h(v))&&b?b.p(v,C):(b.d(1),b=p(v),b&&(b.c(),b.m(l,null))),(!c||C&1&&a!==(a="fd-page splitViewContainer "+(v[0]?"lui-collapsed":"")+" svelte-1q543h0"))&&f(e,"class",a),v[0]?m&&(m.d(1),m=null):m?m.p(v,C):(m=yc(v),m.c(),m.m(o.parentNode,o))},i(v){c||(R(t.$$.fragment,v),c=!0)},o(v){U(t.$$.fragment,v),c=!1},d(v){v&&L(e),Fe(t),b.d(),v&&L(r),m&&m.d(v),v&&L(o),g=!1,d()}}}function Dk(i,e,t){const n=Jt();let l={draggable:null,iframe:null,split:null},a,r,o,c,g,d,h,p,b,{nodepath:m}=e,{collapsed:v}=e,{splitViewSettings:C={}}=e,{isDataPrepared:y=!1}=e,{disableBackdrop:P}=e,T=!1,E=vt("getUnsavedChangesModalPromise");const V=()=>({get:()=>({collapsed:v,splitViewSettings:C,isDataPrepared:y,lastNode:a,pathData:r,nodeParams:o,currentNode:c,splitViewIframe:d,splitViewIframeData:h,splitViewWC:p,splitViewWCData:b}),set:J=>{J&&Object.getOwnPropertyNames(J).forEach(j=>{j==="splitViewSettings"?t(1,C=J.splitViewSettings):j==="lastNode"?a=J.lastNode:j==="pathData"?r=J.pathData:j==="nodeParams"?o=J.nodeParams:j==="collapsed"?t(0,v=J.collapsed):j==="isDataPrepared"?t(8,y=J.isDataPrepared):j==="currentNode"?c=J.currentNode:j==="splitViewIframe"?d=J.splitViewIframe:j==="splitViewIframeData"?h=J.splitViewIframeData:j==="splitViewWC"?p=J.splitViewWC:j==="splitViewWCData"&&(b=J.splitViewWCData)})},dispatch:n,getUnsavedChangesModalPromise:E}),I=async()=>{y?v||ft.createAndSetView(V()):await ft.prepareSplitViewData(V(),m)},B=()=>{l.split=ft.getContainer(),l.iframe=Ee.getIframeContainer(),l.draggable=ft.getDragger()},M=()=>{const J=ft.getDraggerBackdrop();J&&(J.style.display="none"),B(),l.draggable&&(l.draggable.style.top=`${ft.splitViewValues.top}px`),l.split.style.top=`${ft.splitViewValues.top}px`,l.iframe.style.marginBottom=`${l.split.clientHeight}px`};function D(J){if(Ee.getValidMessageSource(J)&&(J.data.msg==="luigi.navigation.splitview.close"&&ft.close(V()),J.data.msg==="luigi.navigation.splitview.collapse"&&q(),J.data.msg==="luigi.navigation.splitview.expand"&&X(),J.data.msg==="luigi.navigation.splitview.resize")){const j=parseInt(J.data.data);if(ft.calculateAndSetSplitViewValues(j,ft.internalValues),v)return;M(),ft.sendMessageToClients("resize.ok",ft.splitViewValues.percent)}}xt(()=>{Q(),g=D.bind(this),Mn.addEventListener("message",g)}),ja(()=>{I(),T!==y&&!v&&(T=y,M())}),Ja(()=>{window.removeEventListener("message",g)});function q(){ft.collapse(V())}async function X(){await ft.expand(V()),l.draggerBackdrop&&(l.draggerBackdrop.style.display="none")}function Q(){const J=le.getShellbarHeight();ft.internalValues.innerHeight=le.getInnerHeight(),ft.internalValues.rightContentHeight=ft.internalValues.innerHeight-J,ft.internalValues.thresholdBottom=30,ft.internalValues.thresholdTop=J+30,ft.calculateAndSetSplitViewValues(ft.splitViewValues.percent,ft.internalValues),v||M()}function ce(J){let j=J.y,_e={};const ie=function(We){const te=j-We.y,de=parseInt(getComputedStyle(l.draggable,"").top);if(isNaN(de)||te===0)return;const Te=de-te,tt=ft.internalValues.innerHeight-Te,ze=ft.enforceTresholds(Te,tt);Te<ze.top||tt<ze.bottom||(_e=ze,j=We.y,l.draggable.style.top=`${_e.top}px`)},se=function(){if(ve(),!_e.top||!_e.bottom||_e.top==ft.internalValues.m_pos_prev){ft.getDraggerBackdrop().style.display="none";return}ft.internalValues.m_pos_prev=_e.top,ft.splitViewValues=_e,M(),ft.sendMessageToClients("resize.ok",_e.percent)},ve=function(){document.removeEventListener("mouseup",se),document.removeEventListener("mousemove",ie)},ae=function(){document.addEventListener("mouseup",se),document.addEventListener("mousemove",ie)};B(),ve(),ae(),ft.getDraggerBackdrop().style.display="block"}const x=J=>{let j=ft.getDraggerButton();j&&(j.style.display=J?"block":"none"),j=ft.getCollapsedDraggerButton(),j&&(j.style.display=J?"block":"none")},K=J=>{x(!J.detail||J.detail.backdropActive!==!0)};return i.$$set=J=>{"nodepath"in J&&t(9,m=J.nodepath),"collapsed"in J&&t(0,v=J.collapsed),"splitViewSettings"in J&&t(1,C=J.splitViewSettings),"isDataPrepared"in J&&t(8,y=J.isDataPrepared),"disableBackdrop"in J&&t(2,P=J.disableBackdrop)},[v,C,P,q,X,Q,ce,K,y,m]}class lp extends Vt{constructor(e){super(),Dt(this,e,Dk,Rk,At,{nodepath:9,collapsed:0,splitViewSettings:1,isDataPrepared:8,disableBackdrop:2,collapse:3,expand:4,updateSizes:5,onDragStart:6})}get collapse(){return this.$$.ctx[3]}get expand(){return this.$$.ctx[4]}get updateSizes(){return this.$$.ctx[5]}get onDragStart(){return this.$$.ctx[6]}}function Pc(i){let e,t,n={ctx:i,current:null,token:null,hasCatch:!1,pending:Ok,then:Mk,catch:Vk,value:1};return is(t=i[0].badgeCounter.count(),n),{c(){e=Ce(),n.block.c()},m(l,a){A(l,e,a),n.block.m(l,n.anchor=a),n.mount=()=>e.parentNode,n.anchor=e},p(l,a){i=l,n.ctx=i,a&1&&t!==(t=i[0].badgeCounter.count())&&is(t,n)||G_(n,i,a)},d(l){l&&L(e),n.block.d(l),n.token=null,n=null}}}function Vk(i){return{c:He,m:He,p:He,d:He}}function Mk(i){let e,t=i[1]>0&&Nc(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,l){n[1]>0?t?t.p(n,l):(t=Nc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&L(e)}}}function Nc(i){let e,t=i[1]+"",n,l;return{c(){e=S("span"),n=Le(t),f(e,"class","fd-counter fd-counter--notification fd-shellbar__counter--notification svelte-1jwxev"),f(e,"aria-label",l=i[0].badgeCounter.label)},m(a,r){A(a,e,r),w(e,n)},p(a,r){r&1&&t!==(t=a[1]+"")&&Ae(n,t),r&1&&l!==(l=a[0].badgeCounter.label)&&f(e,"aria-label",l)},d(a){a&&L(e)}}}function Ok(i){return{c:He,m:He,p:He,d:He}}function Fk(i){let e,t=i[0]&&i[0].badgeCounter&&Pc(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,[l]){n[0]&&n[0].badgeCounter?t?t.p(n,l):(t=Pc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:He,o:He,d(n){t&&t.d(n),n&&L(e)}}}function Uk(i,e,t){let{node:n}=e;return i.$$set=l=>{"node"in l&&t(0,n=l.node)},[n]}class Pn extends Vt{constructor(e){super(),Dt(this,e,Uk,Fk,At,{node:0})}}function Tc(i){let e,t,n=i[0].statusBadge.label+"",l;return{c(){e=S("span"),t=S("span"),l=Le(n),f(t,"class","fd-object-status__text"),f(e,"class","fd-object-status fd-object-status--"+i[1]+" fd-object-status--inverted svelte-1ooarw2")},m(a,r){A(a,e,r),w(e,t),w(t,l)},p(a,r){r&1&&n!==(n=a[0].statusBadge.label+"")&&Ae(l,n)},d(a){a&&L(e)}}}function zk(i){let e,t=i[0].statusBadge&&i[0].statusBadge.label&&Tc(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,[l]){n[0].statusBadge&&n[0].statusBadge.label?t?t.p(n,l):(t=Tc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:He,o:He,d(n){t&&t.d(n),n&&L(e)}}}function Bk(i,e,t){let{node:n}=e;const l=["negative","positive","critical","informative"],a=n&&n.statusBadge&&n.statusBadge.type,r=l.includes(a)?a:"none";return i.$$set=o=>{"node"in o&&t(0,n=o.node)},[n,r]}class ti extends Vt{constructor(e){super(),Dt(this,e,Bk,zk,At,{node:0})}}const{window:xr}=gl;function Ic(i,e,t){const n=i.slice();return n[82]=e[t][0],n[83]=e[t][1],n[85]=t,n}function Lc(i,e,t){const n=i.slice();return n[86]=e[t],n}function Ac(i,e,t){const n=i.slice();return n[86]=e[t],n}function Ec(i,e,t){const n=i.slice();return n[86]=e[t],n}function Rc(i,e,t){const n=i.slice();return n[86]=e[t],n}function Dc(i,e,t){const n=i.slice();return n[82]=e[t][0],n[83]=e[t][1],n[85]=t,n}function Vc(i,e,t){const n=i.slice();return n[86]=e[t],n}function Mc(i,e,t){const n=i.slice();return n[86]=e[t],n}function Hk(i){let e,t,n,l,a,r,o,c,g,d,h=i[12]&&Oc(i),p=i[0]&&i[5].length>0&&(i[5][0].topNav===!1||i[5].length>1)&&zc(i),b=(i[2]||i[3])&&fd(i);return{c(){e=S("div"),h&&h.c(),t=H(),n=S("nav"),l=S("div"),p&&p.c(),a=H(),b&&b.c(),f(l,"class","fd-side-nav__main-navigation svelte-z9apvz"),f(n,"class",r="fd-side-nav "+(i[6]?"fd-side-nav--condensed":"")+" "+(i[12]?"lui-nav-header-visible":"")+" svelte-z9apvz"),f(n,"data-testid","semiCollapsibleLeftNav"),f(e,"class",o="fd-app__sidebar fd-navigation "+(i[1]?"hideNavComponent":"")+" "+(i[2]||i[3]?"hasFooter":"")+" "+(i[2]&&!i[3]?"hasOnlyFooterText":"")+" svelte-z9apvz")},m(m,v){A(m,e,v),h&&h.m(e,null),w(e,t),w(e,n),w(n,l),p&&p.m(l,null),w(n,a),b&&b.m(n,null),c=!0,g||(d=ne(n,"keyup",i[18]),g=!0)},p(m,v){m[12]?h?h.p(m,v):(h=Oc(m),h.c(),h.m(e,t)):h&&(h.d(1),h=null),m[0]&&m[5].length>0&&(m[5][0].topNav===!1||m[5].length>1)?p?(p.p(m,v),v[0]&33&&R(p,1)):(p=zc(m),p.c(),R(p,1),p.m(l,null)):p&&(ke(),U(p,1,1,()=>{p=null}),Se()),m[2]||m[3]?b?b.p(m,v):(b=fd(m),b.c(),b.m(n,null)):b&&(b.d(1),b=null),(!c||v[0]&4160&&r!==(r="fd-side-nav "+(m[6]?"fd-side-nav--condensed":"")+" "+(m[12]?"lui-nav-header-visible":"")+" svelte-z9apvz"))&&f(n,"class",r),(!c||v[0]&14&&o!==(o="fd-app__sidebar fd-navigation "+(m[1]?"hideNavComponent":"")+" "+(m[2]||m[3]?"hasFooter":"")+" "+(m[2]&&!m[3]?"hasOnlyFooterText":"")+" svelte-z9apvz"))&&f(e,"class",o)},i(m){c||(R(p),c=!0)},o(m){U(p),c=!1},d(m){m&&L(e),h&&h.d(),p&&p.d(),b&&b.d(),g=!1,d()}}}function Wk(i){let e,t,n,l,a=i[12]&&dd(i),r=i[0]&&i[5].length>1&&_d(i);return{c(){e=S("div"),a&&a.c(),t=H(),r&&r.c(),f(e,"class",n="fd-navigation fd-navigation--vertical "+(i[1]?"hideNavComponent":"")+" "+(i[2]||i[3]?"hasFooter":"")+" "+(i[2]&&!i[3]?"hasOnlyFooterText":"")+" "+(i[6]?"fd-navigation--snapped":"")+" svelte-z9apvz"),f(e,"role","navigation"),Vn(e,"width","var(--luigi__left-sidenav--width)"),Vn(e,"height","100%")},m(o,c){A(o,e,c),a&&a.m(e,null),w(e,t),r&&r.m(e,null),l=!0},p(o,c){o[12]?a?a.p(o,c):(a=dd(o),a.c(),a.m(e,t)):a&&(a.d(1),a=null),o[0]&&o[5].length>1?r?(r.p(o,c),c[0]&33&&R(r,1)):(r=_d(o),r.c(),R(r,1),r.m(e,null)):r&&(ke(),U(r,1,1,()=>{r=null}),Se()),(!l||c[0]&78&&n!==(n="fd-navigation fd-navigation--vertical "+(o[1]?"hideNavComponent":"")+" "+(o[2]||o[3]?"hasFooter":"")+" "+(o[2]&&!o[3]?"hasOnlyFooterText":"")+" "+(o[6]?"fd-navigation--snapped":"")+" svelte-z9apvz"))&&f(e,"class",n)},i(o){l||(R(r),l=!0)},o(o){U(r),l=!1},d(o){o&&L(e),a&&a.d(),r&&r.d()}}}function Oc(i){let e,t,n,l,a,r,o=i[25](i[12].label)+"",c,g,d,h=i[12].icon&&Fc(i),p=i[12].showUpLink&&Uc(i);return{c(){e=S("div"),t=S("ul"),n=S("li"),l=S("a"),h&&h.c(),a=H(),r=S("span"),c=Le(o),g=H(),p&&p.c(),f(r,"class","fd-nested-list__title svelte-z9apvz"),f(l,"class","fd-nested-list__link svelte-z9apvz"),f(l,"title",d=i[33](i[12],i[25](i[12].label))),f(n,"class","fd-nested-list__item svelte-z9apvz"),f(t,"class","fd-nested-list svelte-z9apvz"),f(e,"class","lui-nav-title svelte-z9apvz")},m(b,m){A(b,e,m),w(e,t),w(t,n),w(n,l),h&&h.m(l,null),w(l,a),w(l,r),w(r,c),w(l,g),p&&p.m(l,null)},p(b,m){b[12].icon?h?h.p(b,m):(h=Fc(b),h.c(),h.m(l,a)):h&&(h.d(1),h=null),m[0]&33558528&&o!==(o=b[25](b[12].label)+"")&&Ae(c,o),b[12].showUpLink?p?p.p(b,m):(p=Uc(b),p.c(),p.m(l,null)):p&&(p.d(1),p=null),m[0]&33558528&&d!==(d=b[33](b[12],b[25](b[12].label)))&&f(l,"title",d)},d(b){b&&L(e),h&&h.d(),p&&p.d()}}}function Fc(i){let e,t;function n(r,o){return o[0]&4096&&(e=null),e==null&&(e=!!r[30](r[12].icon)),e?Gk:qk}let l=n(i,[-1,-1,-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function qk(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[12].icon)||f(t,"src",n),f(t,"alt",l=i[12].altText?i[12].altText:""),f(t,"class","svelte-z9apvz"),f(e,"class","fd-nested-list__icon sap-icon svelte-z9apvz")},m(a,r){A(a,e,r),w(e,t)},p(a,r){r[0]&4096&&!Xe(t.src,n=a[12].icon)&&f(t,"src",n),r[0]&4096&&l!==(l=a[12].altText?a[12].altText:"")&&f(t,"alt",l)},d(a){a&&L(e)}}}function Gk(i){let e,t;return{c(){e=S("i"),f(e,"class",t="lui-header-icon fd-nested-list__icon sap-icon "+i[29](i[12].icon)+" svelte-z9apvz"),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&4096&&t!==(t="lui-header-icon fd-nested-list__icon sap-icon "+n[29](n[12].icon)+" svelte-z9apvz")&&f(e,"class",t)},d(n){n&&L(e)}}}function Uc(i){let e,t,n,l;return{c(){e=S("i"),f(e,"class","lui-nav-up fd-nested-list__icon sap-icon sap-icon--navigation-up-arrow svelte-z9apvz"),f(e,"role","presentation"),f(e,"title",t=i[25]("luigi.navigation.up"))},m(a,r){A(a,e,r),n||(l=ne(e,"click",Pt(i[19])),n=!0)},p(a,r){r[0]&33554432&&t!==(t=a[25]("luigi.navigation.up"))&&f(e,"title",t)},d(a){a&&L(e),n=!1,l()}}}function zc(i){let e,t,n,l,a=i[13],r=[];for(let c=0;c<a.length;c+=1)r[c]=ud(Ic(i,a,c));const o=c=>U(r[c],1,1,()=>{r[c]=null});return{c(){e=S("div"),t=S("ul");for(let c=0;c<r.length;c+=1)r[c].c();f(t,"class",n="fd-nested-list "+(i[22]?"fd-nested-list fd-nested-list--compact":"fd-nested-list")+" svelte-z9apvz"),f(e,"class","lui-fd-side-nav-wrapper svelte-z9apvz")},m(c,g){A(c,e,g),w(e,t);for(let d=0;d<r.length;d+=1)r[d].m(t,null);l=!0},p(c,g){if(g[0]&1922164672|g[1]&455){a=c[13];let d;for(d=0;d<a.length;d+=1){const h=Ic(c,a,d);r[d]?(r[d].p(h,g),R(r[d],1)):(r[d]=ud(h),r[d].c(),R(r[d],1),r[d].m(t,null))}for(ke(),d=a.length;d<r.length;d+=1)o(d);Se()}(!l||g[0]&4194304&&n!==(n="fd-nested-list "+(c[22]?"fd-nested-list fd-nested-list--compact":"fd-nested-list")+" svelte-z9apvz"))&&f(t,"class",n)},i(c){if(!l){for(let g=0;g<a.length;g+=1)R(r[g]);l=!0}},o(c){r=r.filter(Boolean);for(let g=0;g<r.length;g+=1)U(r[g]);l=!1},d(c){c&&L(e),ct(r,c)}}}function Kk(i){let e,t,n,l;const a=[Yk,Jk],r=[];function o(c,g){return c[83].metaInfo.collapsible?0:1}return e=o(i),t=r[e]=a[e](i),{c(){t.c(),n=Ce()},m(c,g){r[e].m(c,g),A(c,n,g),l=!0},p(c,g){let d=e;e=o(c),e===d?r[e].p(c,g):(ke(),U(r[d],1,1,()=>{r[d]=null}),Se(),t=r[e],t?t.p(c,g):(t=r[e]=a[e](c),t.c()),R(t,1),t.m(n.parentNode,n))},i(c){l||(R(t),l=!0)},o(c){U(t),l=!1},d(c){r[e].d(c),c&&L(n)}}}function jk(i){let e,t,n=i[83],l=[];for(let r=0;r<n.length;r+=1)l[r]=od(Rc(i,n,r));const a=r=>U(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;r<l.length;r+=1)l[r].c();e=Ce()},m(r,o){for(let c=0;c<l.length;c+=1)l[c].m(r,o);A(r,e,o),t=!0},p(r,o){if(o[0]&1887477952|o[1]&133){n=r[83];let c;for(c=0;c<n.length;c+=1){const g=Rc(r,n,c);l[c]?(l[c].p(g,o),R(l[c],1)):(l[c]=od(g),l[c].c(),R(l[c],1),l[c].m(e.parentNode,e))}for(ke(),c=n.length;c<l.length;c+=1)a(c);Se()}},i(r){if(!t){for(let o=0;o<n.length;o+=1)R(l[o]);t=!0}},o(r){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)U(l[o]);t=!1},d(r){ct(l,r),r&&L(e)}}}function Jk(i){let e,t,n=i[25](i[82])+"",l,a,r,o,c,g,d=i[10]&&i[83].metaInfo.icon&&Bc(i),h=i[83],p=[];for(let m=0;m<h.length;m+=1)p[m]=jc(Lc(i,h,m));const b=m=>U(p[m],1,1,()=>{p[m]=null});return{c(){e=S("li"),d&&d.c(),t=H(),l=Le(n),o=H();for(let m=0;m<p.length;m+=1)p[m].c();c=Ce(),f(e,"class","fd-nested-list__group-header lui-category svelte-z9apvz"),f(e,"title",a=i[33](i[83],i[25](i[82]))),f(e,"data-testid",r=i[32](i[83].metaInfo,i[82])),f(e,"id","category_list_level1_"+i[85])},m(m,v){A(m,e,v),d&&d.m(e,null),w(e,t),w(e,l),A(m,o,v);for(let C=0;C<p.length;C+=1)p[C].m(m,v);A(m,c,v),g=!0},p(m,v){if(m[10]&&m[83].metaInfo.icon?d?d.p(m,v):(d=Bc(m),d.c(),d.m(e,t)):d&&(d.d(1),d=null),(!g||v[0]&33562624)&&n!==(n=m[25](m[82])+"")&&Ae(l,n),(!g||v[0]&33562624&&a!==(a=m[33](m[83],m[25](m[82]))))&&f(e,"title",a),(!g||v[0]&8192&&r!==(r=m[32](m[83].metaInfo,m[82])))&&f(e,"data-testid",r),v[0]&1887477952|v[1]&133){h=m[83];let C;for(C=0;C<h.length;C+=1){const y=Lc(m,h,C);p[C]?(p[C].p(y,v),R(p[C],1)):(p[C]=jc(y),p[C].c(),R(p[C],1),p[C].m(c.parentNode,c))}for(ke(),C=h.length;C<p.length;C+=1)b(C);Se()}},i(m){if(!g){for(let v=0;v<h.length;v+=1)R(p[v]);g=!0}},o(m){p=p.filter(Boolean);for(let v=0;v<p.length;v+=1)U(p[v]);g=!1},d(m){m&&L(e),d&&d.d(),m&&L(o),ct(p,m),m&&L(c)}}}function Yk(i){let e,t,n,l,a,r,o=i[25](i[82])+"",c,g,d,h,p,b,m,v,C,y,P,T,E,V,I,B,M,D,q,X,Q,ce;function x(te,de){return de[0]&8192&&(l=null),l==null&&(l=!!te[30](te[83].metaInfo.icon)),l?nS:tS}let K=x(i,[-1,-1,-1,-1]),J=K(i);function j(){return i[58](i[83])}function _e(){return i[59](i[83])}function ie(...te){return i[60](i[83],...te)}let se=i[83],ve=[];for(let te=0;te<se.length;te+=1)ve[te]=Xc(Ec(i,se,te));const ae=te=>U(ve[te],1,1,()=>{ve[te]=null});let Re=i[83].metaInfo&&i[83].metaInfo.label===i[8]&&$c(i);function We(){return i[65](i[83])}return{c(){e=S("li"),t=S("div"),n=S("a"),J.c(),a=H(),r=S("span"),c=Le(o),m=H(),v=S("button"),C=S("i"),V=H(),I=S("ul");for(let te=0;te<ve.length;te+=1)ve[te].c();M=H(),Re&&Re.c(),D=H(),f(r,"class","fd-nested-list__title svelte-z9apvz"),f(n,"title",g=i[33](i[83],i[25](i[82]))),f(n,"class",d="fd-nested-list__link "+(un(i[83],i[9])?"is-expanded":"")+" svelte-z9apvz"),f(n,"tabindex",h=i[6]?"-1":"0"),f(n,"role",p=i[23]?void 0:"button"),f(n,"id","collapsible_listnode_"+i[85]),f(n,"aria-haspopup","true"),f(n,"aria-expanded",b=un(i[83],i[9])),f(C,"class",y=un(i[83],i[9])?"sap-icon--navigation-down-arrow":"sap-icon--navigation-right-arrow"),f(C,"role","presentation"),f(v,"class","fd-button fd-nested-list__button svelte-z9apvz"),f(v,"href","#"),f(v,"tabindex","0"),f(v,"aria-label","Expand categories"),f(v,"aria-haspopup","true"),f(v,"aria-expanded",P=un(i[83],i[9])),f(v,"title",T=i[39](i[83],i[9])),f(t,"class","fd-nested-list__content has-child svelte-z9apvz"),f(t,"tabindex",E=i[6]?"0":"-1"),f(I,"class","fd-nested-list fd-nested-list--text-only level-2 svelte-z9apvz"),f(I,"aria-hidden",B=!un(i[83],i[9])),f(e,"class","fd-nested-list__item lui-collapsible-item"),f(e,"data-testid",q=i[32](i[83].metaInfo,i[82])),jt(e,"lui-item-expanded",un(i[83],i[9]))},m(te,de){A(te,e,de),w(e,t),w(t,n),J.m(n,null),w(n,a),w(n,r),w(r,c),w(t,m),w(t,v),w(v,C),w(e,V),w(e,I);for(let Te=0;Te<ve.length;Te+=1)ve[Te].m(I,null);w(e,M),Re&&Re.m(e,null),w(e,D),X=!0,Q||(ce=[ne(n,"click",Pt(j)),ne(v,"click",Pt(_e)),ne(t,"keypress",ie),ne(e,"click",Ut(We))],Q=!0)},p(te,de){if(i=te,K===(K=x(i,de))&&J?J.p(i,de):(J.d(1),J=K(i),J&&(J.c(),J.m(n,a))),(!X||de[0]&33562624)&&o!==(o=i[25](i[82])+"")&&Ae(c,o),(!X||de[0]&33562624&&g!==(g=i[33](i[83],i[25](i[82]))))&&f(n,"title",g),(!X||de[0]&8704&&d!==(d="fd-nested-list__link "+(un(i[83],i[9])?"is-expanded":"")+" svelte-z9apvz"))&&f(n,"class",d),(!X||de[0]&64&&h!==(h=i[6]?"-1":"0"))&&f(n,"tabindex",h),(!X||de[0]&8388608&&p!==(p=i[23]?void 0:"button"))&&f(n,"role",p),(!X||de[0]&8704&&b!==(b=un(i[83],i[9])))&&f(n,"aria-expanded",b),(!X||de[0]&8704&&y!==(y=un(i[83],i[9])?"sap-icon--navigation-down-arrow":"sap-icon--navigation-right-arrow"))&&f(C,"class",y),(!X||de[0]&8704&&P!==(P=un(i[83],i[9])))&&f(v,"aria-expanded",P),(!X||de[0]&8704&&T!==(T=i[39](i[83],i[9])))&&f(v,"title",T),(!X||de[0]&64&&E!==(E=i[6]?"0":"-1"))&&f(t,"tabindex",E),de[0]&276865152|de[1]&133){se=i[83];let Te;for(Te=0;Te<se.length;Te+=1){const tt=Ec(i,se,Te);ve[Te]?(ve[Te].p(tt,de),R(ve[Te],1)):(ve[Te]=Xc(tt),ve[Te].c(),R(ve[Te],1),ve[Te].m(I,null))}for(ke(),Te=se.length;Te<ve.length;Te+=1)ae(Te);Se()}(!X||de[0]&8704&&B!==(B=!un(i[83],i[9])))&&f(I,"aria-hidden",B),i[83].metaInfo&&i[83].metaInfo.label===i[8]?Re?(Re.p(i,de),de[0]&8448&&R(Re,1)):(Re=$c(i),Re.c(),R(Re,1),Re.m(e,D)):Re&&(ke(),U(Re,1,1,()=>{Re=null}),Se()),(!X||de[0]&8192&&q!==(q=i[32](i[83].metaInfo,i[82])))&&f(e,"data-testid",q),(!X||de[0]&8704)&&jt(e,"lui-item-expanded",un(i[83],i[9]))},i(te){if(!X){for(let de=0;de<se.length;de+=1)R(ve[de]);R(Re),X=!0}},o(te){ve=ve.filter(Boolean);for(let de=0;de<ve.length;de+=1)U(ve[de]);U(Re),X=!1},d(te){te&&L(e),J.d(),ct(ve,te),Re&&Re.d(),Q=!1,Ze(ce)}}}function Bc(i){let e,t;function n(r,o){return o[0]&8192&&(e=null),e==null&&(e=!!r[30](r[83].metaInfo.icon)),e?Zk:Qk}let l=n(i,[-1,-1,-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function Qk(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[83].metaInfo.icon)||f(t,"src",n),f(t,"alt",l=i[83].metaInfo.altText?i[83].metaInfo.altText:""),f(t,"class","svelte-z9apvz"),f(e,"class","fd-nested-list__icon sap-icon svelte-z9apvz")},m(a,r){A(a,e,r),w(e,t)},p(a,r){r[0]&8192&&!Xe(t.src,n=a[83].metaInfo.icon)&&f(t,"src",n),r[0]&8192&&l!==(l=a[83].metaInfo.altText?a[83].metaInfo.altText:"")&&f(t,"alt",l)},d(a){a&&L(e)}}}function Zk(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+(i[83].metaInfo.icon?i[29](i[83].metaInfo.icon):"")+" svelte-z9apvz"),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-nested-list__icon sap-icon "+(n[83].metaInfo.icon?n[29](n[83].metaInfo.icon):"")+" svelte-z9apvz")&&f(e,"class",t)},d(n){n&&L(e)}}}function Hc(i){let e,t,n=i[86].label&&Wc(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].label?n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=Wc(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Wc(i){let e,t,n,l,a=i[28](i[86])+"",r,o,c,g,d,h,p,b,m,v,C,y,P,T;function E(Q,ce){return Q[86].icon?$k:Xk}let V=E(i),I=V(i),B=i[86].statusBadge&&qc(i),M=i[86].externalLink&&i[86].externalLink.url&&Gc(),D=i[86].badgeCounter&&Kc(i);function q(...Q){return i[66](i[86],...Q)}function X(...Q){return i[67](i[86],...Q)}return{c(){e=S("li"),t=S("a"),I.c(),n=H(),l=S("span"),r=Le(a),o=H(),B&&B.c(),g=H(),M&&M.c(),d=H(),D&&D.c(),v=H(),f(l,"class",c="fd-nested-list__title badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"),f(t,"href",h=i[31](i[86])),f(t,"tabindex","0"),f(t,"class",p="fd-nested-list__link "+(i[86]===i[7]?"is-selected":"")+" svelte-z9apvz"),f(t,"role",b=i[23]?void 0:"button"),f(t,"data-testid",m=oe.getTestId(i[86])),f(e,"class","fd-nested-list__item"),f(e,"title",C=i[33](i[86],i[28](i[86]))),f(e,"aria-labelledby","category_list_level1_"+i[85])},m(Q,ce){A(Q,e,ce),w(e,t),I.m(t,null),w(t,n),w(t,l),w(l,r),w(l,o),B&&B.m(l,null),w(t,g),M&&M.m(t,null),w(t,d),D&&D.m(t,null),w(e,v),y=!0,P||(T=[ne(t,"click",q),ne(t,"keyup",function(){bi(i[23]?void 0:X)&&(i[23]?void 0:X).apply(this,arguments)})],P=!0)},p(Q,ce){i=Q,V===(V=E(i))&&I?I.p(i,ce):(I.d(1),I=V(i),I&&(I.c(),I.m(t,n))),(!y||ce[0]&8192)&&a!==(a=i[28](i[86])+"")&&Ae(r,a),i[86].statusBadge?B?(B.p(i,ce),ce[0]&8192&&R(B,1)):(B=qc(i),B.c(),R(B,1),B.m(l,null)):B&&(ke(),U(B,1,1,()=>{B=null}),Se()),(!y||ce[0]&8192&&c!==(c="fd-nested-list__title badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"))&&f(l,"class",c),i[86].externalLink&&i[86].externalLink.url?M||(M=Gc(),M.c(),M.m(t,d)):M&&(M.d(1),M=null),i[86].badgeCounter?D?(D.p(i,ce),ce[0]&8192&&R(D,1)):(D=Kc(i),D.c(),R(D,1),D.m(t,null)):D&&(ke(),U(D,1,1,()=>{D=null}),Se()),(!y||ce[0]&8192&&h!==(h=i[31](i[86])))&&f(t,"href",h),(!y||ce[0]&8320&&p!==(p="fd-nested-list__link "+(i[86]===i[7]?"is-selected":"")+" svelte-z9apvz"))&&f(t,"class",p),(!y||ce[0]&8388608&&b!==(b=i[23]?void 0:"button"))&&f(t,"role",b),(!y||ce[0]&8192&&m!==(m=oe.getTestId(i[86])))&&f(t,"data-testid",m),(!y||ce[0]&8192&&C!==(C=i[33](i[86],i[28](i[86]))))&&f(e,"title",C)},i(Q){y||(R(B),R(D),y=!0)},o(Q){U(B),U(D),y=!1},d(Q){Q&&L(e),I.d(),B&&B.d(),M&&M.d(),D&&D.d(),P=!1,Ze(T)}}}function Xk(i){let e,t,n,l,a=i[6]?"sap-icon--rhombus-milestone-2":"",r;return{c(){e=S("i"),n=H(),l=S("span"),r=Le(a),f(e,"class",t="fd-nested-list__icon sap-icon "+(i[6]?"sap-icon--rhombus-milestone-2":""))},m(o,c){A(o,e,c),A(o,n,c),A(o,l,c),w(l,r)},p(o,c){c[0]&64&&t!==(t="fd-nested-list__icon sap-icon "+(o[6]?"sap-icon--rhombus-milestone-2":""))&&f(e,"class",t),c[0]&64&&a!==(a=o[6]?"sap-icon--rhombus-milestone-2":"")&&Ae(r,a)},d(o){o&&L(e),o&&L(n),o&&L(l)}}}function $k(i){let e,t;function n(r,o){return o[0]&8192&&(e=null),e==null&&(e=!!r[30](r[86].icon)),e?eS:xk}let l=n(i,[-1,-1,-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function xk(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[86].icon)||f(t,"src",n),f(t,"alt",l=i[86].altText?i[86].altText:""),f(t,"class","svelte-z9apvz"),f(e,"class","fd-nested-list__icon sap-icon svelte-z9apvz")},m(a,r){A(a,e,r),w(e,t)},p(a,r){r[0]&8192&&!Xe(t.src,n=a[86].icon)&&f(t,"src",n),r[0]&8192&&l!==(l=a[86].altText?a[86].altText:"")&&f(t,"alt",l)},d(a){a&&L(e)}}}function eS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+i[29](i[86].icon)+" svelte-z9apvz")},m(n,l){A(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-nested-list__icon sap-icon "+n[29](n[86].icon)+" svelte-z9apvz")&&f(e,"class",t)},d(n){n&&L(e)}}}function qc(i){let e,t;return e=new ti({props:{node:i[86]}}),{c(){Ue(e.$$.fragment)},m(n,l){Oe(e,n,l),t=!0},p(n,l){const a={};l[0]&8192&&(a.node=n[86]),e.$set(a)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function Gc(i){let e;return{c(){e=S("i"),f(e,"class","sap-icon--action")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function Kc(i){let e,t;return e=new Pn({props:{node:i[86]}}),{c(){Ue(e.$$.fragment)},m(n,l){Oe(e,n,l),t=!0},p(n,l){const a={};l[0]&8192&&(a.node=n[86]),e.$set(a)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function jc(i){let e,t,n=!i[86].hideFromNav&&Hc(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=Hc(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function tS(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[83].metaInfo.icon)||f(t,"src",n),f(t,"alt",l=i[83].metaInfo.altText?i[83].metaInfo.altText:""),f(t,"class","svelte-z9apvz"),f(e,"class","fd-nested-list__icon sap-icon svelte-z9apvz")},m(a,r){A(a,e,r),w(e,t)},p(a,r){r[0]&8192&&!Xe(t.src,n=a[83].metaInfo.icon)&&f(t,"src",n),r[0]&8192&&l!==(l=a[83].metaInfo.altText?a[83].metaInfo.altText:"")&&f(t,"alt",l)},d(a){a&&L(e)}}}function nS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+i[29](i[83].metaInfo.icon)+" "+(i[6]&&!i[83].metaInfo.icon?"sap-icon--rhombus-milestone-2":"")+" svelte-z9apvz"),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&8256&&t!==(t="fd-nested-list__icon sap-icon "+n[29](n[83].metaInfo.icon)+" "+(n[6]&&!n[83].metaInfo.icon?"sap-icon--rhombus-milestone-2":"")+" svelte-z9apvz")&&f(e,"class",t)},d(n){n&&L(e)}}}function Jc(i){let e,t,n=i[86].label&&Yc(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].label?n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=Yc(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Yc(i){let e,t,n,l=i[28](i[86])+"",a,r,o,c,g,d,h,p,b,m,v,C,y,P,T;o=new ti({props:{node:i[86]}});let E=i[86].externalLink&&i[86].externalLink.url&&Qc(),V=i[86].badgeCounter&&Zc(i);function I(...M){return i[61](i[86],...M)}function B(...M){return i[62](i[86],...M)}return{c(){e=S("li"),t=S("a"),n=S("span"),a=Le(l),r=H(),Ue(o.$$.fragment),g=H(),E&&E.c(),d=H(),V&&V.c(),C=H(),f(n,"class",c="fd-nested-list__title badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"),f(t,"href",h=i[31](i[86])),f(t,"class",p="fd-nested-list__link "+(i[86]===i[7]?"is-selected":"")+" svelte-z9apvz"),f(t,"role",b=i[23]?void 0:"button"),f(t,"tabindex","0"),f(t,"data-testid",m=oe.getTestId(i[86])),f(t,"title",v=i[33](i[86],i[28](i[86]))),f(e,"class","fd-nested-list__item"),f(e,"aria-labelledby","collapsible_listnode_"+i[85])},m(M,D){A(M,e,D),w(e,t),w(t,n),w(n,a),w(n,r),Oe(o,n,null),w(t,g),E&&E.m(t,null),w(t,d),V&&V.m(t,null),w(e,C),y=!0,P||(T=[ne(t,"click",I),ne(t,"keyup",function(){bi(i[23]?void 0:B)&&(i[23]?void 0:B).apply(this,arguments)})],P=!0)},p(M,D){i=M,(!y||D[0]&8192)&&l!==(l=i[28](i[86])+"")&&Ae(a,l);const q={};D[0]&8192&&(q.node=i[86]),o.$set(q),(!y||D[0]&8192&&c!==(c="fd-nested-list__title badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"))&&f(n,"class",c),i[86].externalLink&&i[86].externalLink.url?E||(E=Qc(),E.c(),E.m(t,d)):E&&(E.d(1),E=null),i[86].badgeCounter?V?(V.p(i,D),D[0]&8192&&R(V,1)):(V=Zc(i),V.c(),R(V,1),V.m(t,null)):V&&(ke(),U(V,1,1,()=>{V=null}),Se()),(!y||D[0]&8192&&h!==(h=i[31](i[86])))&&f(t,"href",h),(!y||D[0]&8320&&p!==(p="fd-nested-list__link "+(i[86]===i[7]?"is-selected":"")+" svelte-z9apvz"))&&f(t,"class",p),(!y||D[0]&8388608&&b!==(b=i[23]?void 0:"button"))&&f(t,"role",b),(!y||D[0]&8192&&m!==(m=oe.getTestId(i[86])))&&f(t,"data-testid",m),(!y||D[0]&8192&&v!==(v=i[33](i[86],i[28](i[86]))))&&f(t,"title",v)},i(M){y||(R(o.$$.fragment,M),R(V),y=!0)},o(M){U(o.$$.fragment,M),U(V),y=!1},d(M){M&&L(e),Fe(o),E&&E.d(),V&&V.d(),P=!1,Ze(T)}}}function Qc(i){let e;return{c(){e=S("i"),f(e,"class","sap-icon--action")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function Zc(i){let e,t;return e=new Pn({props:{node:i[86]}}),{c(){Ue(e.$$.fragment)},m(n,l){Oe(e,n,l),t=!0},p(n,l){const a={};l[0]&8192&&(a.node=n[86]),e.$set(a)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function Xc(i){let e,t,n=!i[86].hideFromNav&&Jc(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=Jc(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function $c(i){let e,t,n,l=i[25](i[82])+"",a,r,o,c,g=i[83],d=[];for(let p=0;p<g.length;p+=1)d[p]=id(Ac(i,g,p));const h=p=>U(d[p],1,1,()=>{d[p]=null});return{c(){e=S("div"),t=S("div"),n=S("h5"),a=Le(l),r=H(),o=S("ul");for(let p=0;p<d.length;p+=1)d[p].c();f(n,"class","lui-flyout-sublist__title fd-has-type-minus-1 fd-has-color-text-4 svelte-z9apvz"),f(o,"class","fd-nested-list fd-nested-list--text-only svelte-z9apvz"),f(t,"class","lui-flyout-sublist__wrapper svelte-z9apvz"),f(e,"class","lui-flyout-sublist svelte-z9apvz")},m(p,b){A(p,e,b),w(e,t),w(t,n),w(n,a),w(t,r),w(t,o);for(let m=0;m<d.length;m+=1)d[m].m(o,null);c=!0},p(p,b){if((!c||b[0]&33562624)&&l!==(l=p[25](p[82])+"")&&Ae(a,l),b[0]&276865152|b[1]&133){g=p[83];let m;for(m=0;m<g.length;m+=1){const v=Ac(p,g,m);d[m]?(d[m].p(v,b),R(d[m],1)):(d[m]=id(v),d[m].c(),R(d[m],1),d[m].m(o,null))}for(ke(),m=g.length;m<d.length;m+=1)h(m);Se()}},i(p){if(!c){for(let b=0;b<g.length;b+=1)R(d[b]);c=!0}},o(p){d=d.filter(Boolean);for(let b=0;b<d.length;b+=1)U(d[b]);c=!1},d(p){p&&L(e),ct(d,p)}}}function xc(i){let e,t,n=i[86].label&&ed(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].label?n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=ed(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function ed(i){let e,t,n,l=i[28](i[86])+"",a,r,o,c,g,d,h,p,b,m,v,C,y,P,T;o=new ti({props:{node:i[86]}});let E=i[86].externalLink&&i[86].externalLink.url&&td(),V=i[86].badgeCounter&&nd(i);function I(...M){return i[63](i[86],...M)}function B(...M){return i[64](i[86],...M)}return{c(){e=S("li"),t=S("a"),n=S("span"),a=Le(l),r=H(),Ue(o.$$.fragment),g=H(),E&&E.c(),d=H(),V&&V.c(),C=H(),f(n,"class",c="fd-nested-list__title badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"),f(t,"href",h=i[31](i[86])),f(t,"class",p="fd-nested-list__link "+(i[86]===i[7]?"is-selected":"")+" svelte-z9apvz"),f(t,"tabindex","0"),f(t,"role",b=i[23]?void 0:"button"),f(t,"data-testid",m=oe.getTestId(i[86])),f(t,"title",v=i[33](i[86],i[28](i[86]))),f(e,"class","fd-nested-list__item")},m(M,D){A(M,e,D),w(e,t),w(t,n),w(n,a),w(n,r),Oe(o,n,null),w(t,g),E&&E.m(t,null),w(t,d),V&&V.m(t,null),w(e,C),y=!0,P||(T=[ne(t,"click",I),ne(t,"keyup",function(){bi(i[23]?void 0:B)&&(i[23]?void 0:B).apply(this,arguments)})],P=!0)},p(M,D){i=M,(!y||D[0]&8192)&&l!==(l=i[28](i[86])+"")&&Ae(a,l);const q={};D[0]&8192&&(q.node=i[86]),o.$set(q),(!y||D[0]&8192&&c!==(c="fd-nested-list__title badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"))&&f(n,"class",c),i[86].externalLink&&i[86].externalLink.url?E||(E=td(),E.c(),E.m(t,d)):E&&(E.d(1),E=null),i[86].badgeCounter?V?(V.p(i,D),D[0]&8192&&R(V,1)):(V=nd(i),V.c(),R(V,1),V.m(t,null)):V&&(ke(),U(V,1,1,()=>{V=null}),Se()),(!y||D[0]&8192&&h!==(h=i[31](i[86])))&&f(t,"href",h),(!y||D[0]&8320&&p!==(p="fd-nested-list__link "+(i[86]===i[7]?"is-selected":"")+" svelte-z9apvz"))&&f(t,"class",p),(!y||D[0]&8388608&&b!==(b=i[23]?void 0:"button"))&&f(t,"role",b),(!y||D[0]&8192&&m!==(m=oe.getTestId(i[86])))&&f(t,"data-testid",m),(!y||D[0]&8192&&v!==(v=i[33](i[86],i[28](i[86]))))&&f(t,"title",v)},i(M){y||(R(o.$$.fragment,M),R(V),y=!0)},o(M){U(o.$$.fragment,M),U(V),y=!1},d(M){M&&L(e),Fe(o),E&&E.d(),V&&V.d(),P=!1,Ze(T)}}}function td(i){let e;return{c(){e=S("i"),f(e,"class","sap-icon--action")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function nd(i){let e,t;return e=new Pn({props:{node:i[86]}}),{c(){Ue(e.$$.fragment)},m(n,l){Oe(e,n,l),t=!0},p(n,l){const a={};l[0]&8192&&(a.node=n[86]),e.$set(a)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function id(i){let e,t,n=!i[86].hideFromNav&&xc(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=xc(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function ld(i){let e,t,n=i[86].label&&ad(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].label?n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=ad(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function ad(i){let e,t,n,l,a=i[28](i[86])+"",r,o,c,g,d,h,p,b,m,v,C,y,P,T,E;function V(Q,ce){return Q[86].icon?lS:iS}let I=V(i),B=I(i);c=new ti({props:{node:i[86]}});let M=i[86].externalLink&&i[86].externalLink.url&&rd(),D=i[86].badgeCounter&&sd(i);function q(...Q){return i[56](i[86],...Q)}function X(...Q){return i[57](i[86],...Q)}return{c(){e=S("li"),t=S("a"),B.c(),n=H(),l=S("span"),r=Le(a),o=H(),Ue(c.$$.fragment),d=H(),M&&M.c(),h=H(),D&&D.c(),y=H(),f(l,"class",g="fd-nested-list__title badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"),f(t,"href",p=i[31](i[86])),f(t,"title",b=i[33](i[86],i[28](i[86]))),f(t,"class",m="fd-nested-list__link "+(i[86]===i[7]?"is-selected":"")+" svelte-z9apvz"),f(t,"tabindex","0"),f(t,"role",v=i[23]?void 0:"button"),f(t,"data-testid",C=oe.getTestId(i[86])),f(e,"class","fd-nested-list__item")},m(Q,ce){A(Q,e,ce),w(e,t),B.m(t,null),w(t,n),w(t,l),w(l,r),w(l,o),Oe(c,l,null),w(t,d),M&&M.m(t,null),w(t,h),D&&D.m(t,null),w(e,y),P=!0,T||(E=[ne(t,"click",q),ne(t,"keyup",function(){bi(i[23]?void 0:X)&&(i[23]?void 0:X).apply(this,arguments)})],T=!0)},p(Q,ce){i=Q,I===(I=V(i))&&B?B.p(i,ce):(B.d(1),B=I(i),B&&(B.c(),B.m(t,n))),(!P||ce[0]&8192)&&a!==(a=i[28](i[86])+"")&&Ae(r,a);const x={};ce[0]&8192&&(x.node=i[86]),c.$set(x),(!P||ce[0]&8192&&g!==(g="fd-nested-list__title badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"))&&f(l,"class",g),i[86].externalLink&&i[86].externalLink.url?M||(M=rd(),M.c(),M.m(t,h)):M&&(M.d(1),M=null),i[86].badgeCounter?D?(D.p(i,ce),ce[0]&8192&&R(D,1)):(D=sd(i),D.c(),R(D,1),D.m(t,null)):D&&(ke(),U(D,1,1,()=>{D=null}),Se()),(!P||ce[0]&8192&&p!==(p=i[31](i[86])))&&f(t,"href",p),(!P||ce[0]&8192&&b!==(b=i[33](i[86],i[28](i[86]))))&&f(t,"title",b),(!P||ce[0]&8320&&m!==(m="fd-nested-list__link "+(i[86]===i[7]?"is-selected":"")+" svelte-z9apvz"))&&f(t,"class",m),(!P||ce[0]&8388608&&v!==(v=i[23]?void 0:"button"))&&f(t,"role",v),(!P||ce[0]&8192&&C!==(C=oe.getTestId(i[86])))&&f(t,"data-testid",C)},i(Q){P||(R(c.$$.fragment,Q),R(D),P=!0)},o(Q){U(c.$$.fragment,Q),U(D),P=!1},d(Q){Q&&L(e),B.d(),Fe(c),M&&M.d(),D&&D.d(),T=!1,Ze(E)}}}function iS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+(i[6]?"sap-icon--rhombus-milestone-2":"")),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&64&&t!==(t="fd-nested-list__icon sap-icon "+(n[6]?"sap-icon--rhombus-milestone-2":""))&&f(e,"class",t)},d(n){n&&L(e)}}}function lS(i){let e,t;function n(r,o){return o[0]&8192&&(e=null),e==null&&(e=!!r[30](r[86].icon)),e?rS:aS}let l=n(i,[-1,-1,-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function aS(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[86].icon)||f(t,"src",n),f(t,"alt",l=i[86].altText?i[86].altText:""),f(t,"class","svelte-z9apvz"),f(e,"class","fd-nested-list__icon sap-icon svelte-z9apvz")},m(a,r){A(a,e,r),w(e,t)},p(a,r){r[0]&8192&&!Xe(t.src,n=a[86].icon)&&f(t,"src",n),r[0]&8192&&l!==(l=a[86].altText?a[86].altText:"")&&f(t,"alt",l)},d(a){a&&L(e)}}}function rS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+i[29](i[86].icon)+" svelte-z9apvz"),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-nested-list__icon sap-icon "+n[29](n[86].icon)+" svelte-z9apvz")&&f(e,"class",t)},d(n){n&&L(e)}}}function rd(i){let e;return{c(){e=S("i"),f(e,"class","fd-nested-list__icon sap-icon sap-icon--action"),f(e,"role","presentation")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function sd(i){let e,t;return e=new Pn({props:{node:i[86]}}),{c(){Ue(e.$$.fragment)},m(n,l){Oe(e,n,l),t=!0},p(n,l){const a={};l[0]&8192&&(a.node=n[86]),e.$set(a)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function od(i){let e,t,n=!i[86].hideFromNav&&ld(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=ld(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function ud(i){let e,t,n,l,a,r;const o=[jk,Kk],c=[];function g(d,h){return h[0]&24576&&(e=null),h[0]&8192&&(t=null),e==null&&(e=!!(d[82]==="undefined"||d[82].startsWith(d[14]))),e?0:(t==null&&(t=d[83].filter(CS).length>0),t?1:-1)}return~(n=g(i,[-1,-1,-1,-1]))&&(l=c[n]=o[n](i)),{c(){l&&l.c(),a=Ce()},m(d,h){~n&&c[n].m(d,h),A(d,a,h),r=!0},p(d,h){let p=n;n=g(d,h),n===p?~n&&c[n].p(d,h):(l&&(ke(),U(c[p],1,1,()=>{c[p]=null}),Se()),~n?(l=c[n],l?l.p(d,h):(l=c[n]=o[n](d),l.c()),R(l,1),l.m(a.parentNode,a)):l=null)},i(d){r||(R(l),r=!0)},o(d){U(l),r=!1},d(d){~n&&c[n].d(d),d&&L(a)}}}function fd(i){let e,t,n,l=(i[2]?i[2]:"")+"",a,r,o=i[3]&&cd(i);return{c(){e=S("div"),t=S("span"),n=S("span"),a=Le(l),r=H(),o&&o.c(),f(n,"class","lui-side-nav__footer--text fd-has-type-minus-1 svelte-z9apvz"),f(n,"data-testid","lui-side-nav__footer--text"),f(t,"class","lui-side-nav__footer svelte-z9apvz"),f(t,"data-testid","lui-side-nav__footer"),f(e,"class","fd-side-nav__utility svelte-z9apvz")},m(c,g){A(c,e,g),w(e,t),w(t,n),w(n,a),w(t,r),o&&o.m(t,null)},p(c,g){g[0]&4&&l!==(l=(c[2]?c[2]:"")+"")&&Ae(a,l),c[3]?o?o.p(c,g):(o=cd(c),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(c){c&&L(e),o&&o.d()}}}function cd(i){let e;function t(a,r){return a[4]=="button"?oS:sS}let n=t(i),l=n(i);return{c(){l.c(),e=Ce()},m(a,r){l.m(a,r),A(a,e,r)},p(a,r){n===(n=t(a))&&l?l.p(a,r):(l.d(1),l=n(a),l&&(l.c(),l.m(e.parentNode,e)))},d(a){l.d(a),a&&L(e)}}}function sS(i){let e,t,n,l;return{c(){e=S("i"),f(e,"class",t="lui-side-nav__footer--icon "+(i[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-z9apvz"),f(e,"data-testid","semiCollapsibleButton"),f(e,"title",i[11]),f(e,"tabindex","0")},m(a,r){A(a,e,r),n||(l=[ne(e,"click",i[69]),ne(e,"keydown",i[70])],n=!0)},p(a,r){r[0]&64&&t!==(t="lui-side-nav__footer--icon "+(a[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-z9apvz")&&f(e,"class",t),r[0]&2048&&f(e,"title",a[11])},d(a){a&&L(e),n=!1,Ze(l)}}}function oS(i){let e,t,n,l,a;return{c(){e=S("button"),t=S("i"),f(t,"class",n="lui-side-nav__footer--icon "+(i[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-z9apvz"),f(e,"data-testid","semiCollapsibleButton"),f(e,"title",i[11]),f(e,"tabindex","0"),f(e,"class","fd-button fd-button--transparent fd-button--cozy lui-semi-btn svelte-z9apvz")},m(r,o){A(r,e,o),w(e,t),l||(a=ne(e,"click",i[68]),l=!0)},p(r,o){o[0]&64&&n!==(n="lui-side-nav__footer--icon "+(r[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-z9apvz")&&f(t,"class",n),o[0]&2048&&f(e,"title",r[11])},d(r){r&&L(e),l=!1,a()}}}function dd(i){let e,t,n,l,a,r,o=i[25](i[12].label)+"",c,g,d,h=i[12].icon&&hd(i),p=i[12].showUpLink&&gd(i);return{c(){e=S("div"),t=S("ul"),n=S("li"),l=S("a"),h&&h.c(),a=H(),r=S("span"),c=Le(o),g=H(),p&&p.c(),f(r,"class","fd-nested-list__title svelte-z9apvz"),f(l,"class","fd-nested-list__link svelte-z9apvz"),f(l,"title",d=i[33](i[12],i[25](i[12].label))),f(n,"class","fd-nested-list__item"),f(t,"class","fd-nested-list svelte-z9apvz"),f(e,"class","lui-nav-title svelte-z9apvz")},m(b,m){A(b,e,m),w(e,t),w(t,n),w(n,l),h&&h.m(l,null),w(l,a),w(l,r),w(r,c),w(l,g),p&&p.m(l,null)},p(b,m){b[12].icon?h?h.p(b,m):(h=hd(b),h.c(),h.m(l,a)):h&&(h.d(1),h=null),m[0]&33558528&&o!==(o=b[25](b[12].label)+"")&&Ae(c,o),b[12].showUpLink?p?p.p(b,m):(p=gd(b),p.c(),p.m(l,null)):p&&(p.d(1),p=null),m[0]&33558528&&d!==(d=b[33](b[12],b[25](b[12].label)))&&f(l,"title",d)},d(b){b&&L(e),h&&h.d(),p&&p.d()}}}function hd(i){let e,t;function n(r,o){return o[0]&4096&&(e=null),e==null&&(e=!!r[30](r[12].icon)),e?fS:uS}let l=n(i,[-1,-1,-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function uS(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[12].icon)||f(t,"src",n),f(t,"alt",l=i[12].altText?i[12].altText:""),f(t,"class","svelte-z9apvz"),f(e,"class","fd-nested-list__icon sap-icon svelte-z9apvz")},m(a,r){A(a,e,r),w(e,t)},p(a,r){r[0]&4096&&!Xe(t.src,n=a[12].icon)&&f(t,"src",n),r[0]&4096&&l!==(l=a[12].altText?a[12].altText:"")&&f(t,"alt",l)},d(a){a&&L(e)}}}function fS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="lui-header-icon fd-nested-list__icon sap-icon "+i[29](i[12].icon)+" svelte-z9apvz"),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&4096&&t!==(t="lui-header-icon fd-nested-list__icon sap-icon "+n[29](n[12].icon)+" svelte-z9apvz")&&f(e,"class",t)},d(n){n&&L(e)}}}function gd(i){let e,t,n,l;return{c(){e=S("i"),f(e,"class","lui-nav-up fd-nested-list__icon sap-icon sap-icon--navigation-up-arrow svelte-z9apvz"),f(e,"role","presentation"),f(e,"title",t=i[25]("luigi.navigation.up"))},m(a,r){A(a,e,r),n||(l=ne(e,"click",Pt(i[19])),n=!0)},p(a,r){r[0]&33554432&&t!==(t=a[25]("luigi.navigation.up"))&&f(e,"title",t)},d(a){a&&L(e),n=!1,l()}}}function _d(i){let e,t,n,l,a,r,o,c,g,d,h,p,b,m=i[13],v=[];for(let y=0;y<m.length;y+=1)v[y]=Ed(Dc(i,m,y));const C=y=>U(v[y],1,1,()=>{v[y]=null});return{c(){e=S("div"),t=S("ul");for(let y=0;y<v.length;y+=1)v[y].c();n=H(),l=S("li"),a=H(),r=S("li"),o=S("div"),c=S("a"),c.innerHTML=`<span class="fd-navigation__icon sap-icon--overflow" role="presentation" aria-hidden="true"></span>
|
|
55
55
|
<span class="fd-navigation__text">More Items</span>`,g=H(),d=S("div"),d.innerHTML='<div class="fd-navigation__list-wrapper"><ul class="lui-moreItems svelte-z9apvz"></ul></div>',f(l,"class","lui-spacer svelte-z9apvz"),f(l,"role","presentation"),f(l,"aria-hidden","true"),f(c,"class","fd-navigation__link svelte-z9apvz"),f(c,"role","button"),f(c,"tabindex","0"),f(o,"class","fd-navigation__item lui-nav-more"),f(o,"aria-haspopup","menu"),f(o,"role","menuitem"),f(o,"aria-expanded","false"),f(o,"tabindex","-1"),f(d,"class","fd-navigation__list-container fd-navigation__list-container--menu fd-menu svelte-z9apvz"),f(d,"aria-hidden","false"),f(r,"class","fd-navigation__list-item fd-navigation__list-item--overflow svelte-z9apvz"),f(r,"aria-hidden","true"),f(t,"class","fd-navigation__list"),f(t,"role","tree"),f(t,"tabindex","-1"),f(e,"class","fd-navigation__container fd-navigation__container--top")},m(y,P){A(y,e,P),w(e,t);for(let T=0;T<v.length;T+=1)v[T].m(t,null);w(t,n),w(t,l),w(t,a),w(t,r),w(r,o),w(o,c),w(r,g),w(r,d),i[55](e),h=!0,p||(b=ne(c,"click",i[54]),p=!0)},p(y,P){if(P[0]&1922164672|P[1]&135){m=y[13];let T;for(T=0;T<m.length;T+=1){const E=Dc(y,m,T);v[T]?(v[T].p(E,P),R(v[T],1)):(v[T]=Ed(E),v[T].c(),R(v[T],1),v[T].m(t,n))}for(ke(),T=m.length;T<v.length;T+=1)C(T);Se()}},i(y){if(!h){for(let P=0;P<m.length;P+=1)R(v[P]);h=!0}},o(y){v=v.filter(Boolean);for(let P=0;P<v.length;P+=1)U(v[P]);h=!1},d(y){y&&L(e),ct(v,y),i[55](null),p=!1,b()}}}function cS(i){let e,t,n,l,a,r,o=i[25](i[82])+"",c,g,d,h,p,b,m,v,C,y,P,T,E,V,I;function B(ce,x){return x[0]&8192&&(l=null),l==null&&(l=!!ce[30](ce[83].metaInfo.icon)),l?gS:hS}let M=B(i,[-1,-1,-1,-1]),D=M(i);function q(){return i[48](i[83])}function X(...ce){return i[49](i[83],...ce)}let Q=(!i[6]||i[83].metaInfo&&i[83].metaInfo.label===i[8])&&pd(i);return{c(){e=S("li"),t=S("div"),n=S("a"),D.c(),a=H(),r=S("span"),c=Le(o),g=H(),d=S("span"),h=H(),p=S("span"),y=H(),Q&&Q.c(),f(r,"class","fd-navigation__text"),f(d,"class","fd-navigation__selection-indicator"),f(d,"role","presentation"),f(d,"aria-hidden","true"),f(d,"aria-label","selection indicator"),f(p,"class","fd-navigation__has-children-indicator"),f(p,"role","presentation"),f(p,"aria-hidden","true"),f(p,"aria-label","has children indicator, expanded"),f(n,"class","fd-navigation__link svelte-z9apvz"),f(n,"role","button"),f(n,"tabindex","-1"),f(t,"class",b="fd-navigation__item "+(i[6]?"fd-popover__control":"")),f(t,"role","treeitem"),f(t,"title",m=i[33](i[83],i[25](i[82]))),f(t,"aria-expanded",v=i[6]?i[83].metaInfo&&i[83].metaInfo.label===i[8]:un(i[83],i[9])),f(t,"aria-selected",C=i[6]&&i[83].indexOf(i[7])>=0),f(e,"class",P="fd-navigation__list-item "+(i[6]?"fd-popover":"")+" lui-nav-entry svelte-z9apvz"),f(e,"aria-hidden","true"),f(e,"data-testid",T=i[32](i[83].metaInfo,i[82]))},m(ce,x){A(ce,e,x),w(e,t),w(t,n),D.m(n,null),w(n,a),w(n,r),w(r,c),w(n,g),w(n,d),w(n,h),w(n,p),w(e,y),Q&&Q.m(e,null),E=!0,V||(I=[ne(n,"click",Pt(q)),ne(t,"click",Ut(X))],V=!0)},p(ce,x){i=ce,M===(M=B(i,x))&&D?D.p(i,x):(D.d(1),D=M(i),D&&(D.c(),D.m(n,a))),(!E||x[0]&33562624)&&o!==(o=i[25](i[82])+"")&&Ae(c,o),(!E||x[0]&64&&b!==(b="fd-navigation__item "+(i[6]?"fd-popover__control":"")))&&f(t,"class",b),(!E||x[0]&33562624&&m!==(m=i[33](i[83],i[25](i[82]))))&&f(t,"title",m),(!E||x[0]&9024&&v!==(v=i[6]?i[83].metaInfo&&i[83].metaInfo.label===i[8]:un(i[83],i[9])))&&f(t,"aria-expanded",v),(!E||x[0]&8384&&C!==(C=i[6]&&i[83].indexOf(i[7])>=0))&&f(t,"aria-selected",C),!i[6]||i[83].metaInfo&&i[83].metaInfo.label===i[8]?Q?(Q.p(i,x),x[0]&8512&&R(Q,1)):(Q=pd(i),Q.c(),R(Q,1),Q.m(e,null)):Q&&(ke(),U(Q,1,1,()=>{Q=null}),Se()),(!E||x[0]&64&&P!==(P="fd-navigation__list-item "+(i[6]?"fd-popover":"")+" lui-nav-entry svelte-z9apvz"))&&f(e,"class",P),(!E||x[0]&8192&&T!==(T=i[32](i[83].metaInfo,i[82])))&&f(e,"data-testid",T)},i(ce){E||(R(Q),E=!0)},o(ce){U(Q),E=!1},d(ce){ce&&L(e),D.d(),Q&&Q.d(),V=!1,Ze(I)}}}function dS(i){let e,t,n=i[83],l=[];for(let r=0;r<n.length;r+=1)l[r]=Ad(Mc(i,n,r));const a=r=>U(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;r<l.length;r+=1)l[r].c();e=Ce()},m(r,o){for(let c=0;c<l.length;c+=1)l[c].m(r,o);A(r,e,o),t=!0},p(r,o){if(o[0]&1887477952|o[1]&133){n=r[83];let c;for(c=0;c<n.length;c+=1){const g=Mc(r,n,c);l[c]?(l[c].p(g,o),R(l[c],1)):(l[c]=Ad(g),l[c].c(),R(l[c],1),l[c].m(e.parentNode,e))}for(ke(),c=n.length;c<l.length;c+=1)a(c);Se()}},i(r){if(!t){for(let o=0;o<n.length;o+=1)R(l[o]);t=!0}},o(r){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)U(l[o]);t=!1},d(r){ct(l,r),r&&L(e)}}}function hS(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[83].metaInfo.icon)||f(t,"src",n),f(t,"alt",l=i[83].metaInfo.altText?i[83].metaInfo.altText:""),f(t,"class","svelte-z9apvz"),f(e,"class","fd-navigation__icon svelte-z9apvz"),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(a,r){A(a,e,r),w(e,t)},p(a,r){r[0]&8192&&!Xe(t.src,n=a[83].metaInfo.icon)&&f(t,"src",n),r[0]&8192&&l!==(l=a[83].metaInfo.altText?a[83].metaInfo.altText:"")&&f(t,"alt",l)},d(a){a&&L(e)}}}function gS(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-navigation__icon "+i[29](i[83].metaInfo.icon)+" "+(i[6]&&!i[83].metaInfo.icon?"sap-icon--rhombus-milestone-2":"")+" svelte-z9apvz"),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(n,l){A(n,e,l)},p(n,l){l[0]&8256&&t!==(t="fd-navigation__icon "+n[29](n[83].metaInfo.icon)+" "+(n[6]&&!n[83].metaInfo.icon?"sap-icon--rhombus-milestone-2":"")+" svelte-z9apvz")&&f(e,"class",t)},d(n){n&&L(e)}}}function pd(i){let e,t,n,l,a,r,o,c=i[6]&&md(i),g=i[83],d=[];for(let p=0;p<g.length;p+=1)d[p]=Pd(Vc(i,g,p));const h=p=>U(d[p],1,1,()=>{d[p]=null});return{c(){e=S("div"),t=S("div"),c&&c.c(),n=H(),l=S("ul");for(let p=0;p<d.length;p+=1)d[p].c();f(l,"class","fd-navigation__list fd-navigation__list--child-items"),f(l,"role","tree"),f(l,"tabindex","-1"),f(t,"class",a="fd-navigation__list-wrapper "+(i[6]?"fd-popover__wrapper":"")),f(t,"aria-hidden","true"),f(e,"class",r="fd-navigation__list-container "+(i[6]?"fd-popover__body fd-popover__body--after fd-popover__body--arrow-left":"")+" svelte-z9apvz")},m(p,b){A(p,e,b),w(e,t),c&&c.m(t,null),w(t,n),w(t,l);for(let m=0;m<d.length;m+=1)d[m].m(l,null);o=!0},p(p,b){if(p[6]?c?c.p(p,b):(c=md(p),c.c(),c.m(t,n)):c&&(c.d(1),c=null),b[0]&276865152|b[1]&133){g=p[83];let m;for(m=0;m<g.length;m+=1){const v=Vc(p,g,m);d[m]?(d[m].p(v,b),R(d[m],1)):(d[m]=Pd(v),d[m].c(),R(d[m],1),d[m].m(l,null))}for(ke(),m=g.length;m<d.length;m+=1)h(m);Se()}(!o||b[0]&64&&a!==(a="fd-navigation__list-wrapper "+(p[6]?"fd-popover__wrapper":"")))&&f(t,"class",a),(!o||b[0]&64&&r!==(r="fd-navigation__list-container "+(p[6]?"fd-popover__body fd-popover__body--after fd-popover__body--arrow-left":"")+" svelte-z9apvz"))&&f(e,"class",r)},i(p){if(!o){for(let b=0;b<g.length;b+=1)R(d[b]);o=!0}},o(p){d=d.filter(Boolean);for(let b=0;b<d.length;b+=1)U(d[b]);o=!1},d(p){p&&L(e),c&&c.d(),ct(d,p)}}}function md(i){let e,t,n,l,a=i[25](i[82])+"",r,o,c,g,d,h=i[10]&&i[83].metaInfo.icon&&bd(i);return{c(){e=S("div"),t=S("a"),h&&h.c(),n=H(),l=S("span"),r=Le(a),o=H(),c=S("span"),f(l,"class","fd-navigation__text"),f(c,"class","fd-navigation__selection-indicator"),f(t,"class","fd-navigation__link svelte-z9apvz"),f(t,"role","button"),f(t,"tabindex","0"),f(e,"class","fd-navigation__item fd-navigation__item--title svelte-z9apvz"),f(e,"aria-level","1"),f(e,"role","treeitem"),f(e,"aria-expanded","true"),f(e,"aria-selected","false"),f(e,"title",g=i[33](i[83],i[25](i[82]))),f(e,"data-testid",d=i[32](i[83].metaInfo,i[82]))},m(p,b){A(p,e,b),w(e,t),h&&h.m(t,null),w(t,n),w(t,l),w(l,r),w(t,o),w(t,c)},p(p,b){p[10]&&p[83].metaInfo.icon?h?h.p(p,b):(h=bd(p),h.c(),h.m(t,n)):h&&(h.d(1),h=null),b[0]&33562624&&a!==(a=p[25](p[82])+"")&&Ae(r,a),b[0]&33562624&&g!==(g=p[33](p[83],p[25](p[82])))&&f(e,"title",g),b[0]&8192&&d!==(d=p[32](p[83].metaInfo,p[82]))&&f(e,"data-testid",d)},d(p){p&&L(e),h&&h.d()}}}function bd(i){let e,t;function n(r,o){return o[0]&8192&&(e=null),e==null&&(e=!!r[30](r[83].metaInfo.icon)),e?pS:_S}let l=n(i,[-1,-1,-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function _S(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[83].metaInfo.icon)||f(t,"src",n),f(t,"alt",l=i[83].metaInfo.altText?i[83].metaInfo.altText:""),f(t,"class","svelte-z9apvz"),f(e,"class","fd-navigation__icon svelte-z9apvz"),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(a,r){A(a,e,r),w(e,t)},p(a,r){r[0]&8192&&!Xe(t.src,n=a[83].metaInfo.icon)&&f(t,"src",n),r[0]&8192&&l!==(l=a[83].metaInfo.altText?a[83].metaInfo.altText:"")&&f(t,"alt",l)},d(a){a&&L(e)}}}function pS(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-navigation__icon "+i[29](i[83].metaInfo.icon)+" svelte-z9apvz"),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(n,l){A(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-navigation__icon "+n[29](n[83].metaInfo.icon)+" svelte-z9apvz")&&f(e,"class",t)},d(n){n&&L(e)}}}function vd(i){let e,t,n=i[86].label&&wd(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].label?n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=wd(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function wd(i){let e,t,n,l,a=i[28](i[86])+"",r,o,c,g,d,h,p,b,m,v,C,y,P,T,E,V,I=i[28](i[86])+"",B,M,D,q,X,Q,ce,x,K,J,j,_e,ie,se;c=new ti({props:{node:i[86]}});let ve=i[86].externalLink&&i[86].externalLink.url&&kd(),ae=i[86].badgeCounter&&Sd(i);function Re(...ze){return i[50](i[86],...ze)}function We(...ze){return i[51](i[86],...ze)}D=new ti({props:{node:i[86]}});let te=i[86].externalLink&&i[86].externalLink.url&&Cd(),de=i[86].badgeCounter&&yd(i);function Te(...ze){return i[52](i[86],...ze)}function tt(...ze){return i[53](i[86],...ze)}return{c(){e=S("li"),t=S("div"),n=S("a"),l=S("span"),r=Le(a),o=H(),Ue(c.$$.fragment),d=H(),h=S("span"),p=H(),ve&&ve.c(),b=H(),ae&&ae.c(),P=H(),T=S("li"),E=S("a"),V=S("span"),B=Le(I),M=H(),Ue(D.$$.fragment),X=H(),te&&te.c(),Q=H(),de&&de.c(),f(l,"class",g="fd-navigation__text badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"),f(h,"class","fd-navigation__selection-indicator"),f(h,"role","presentation"),f(h,"aria-hidden","true"),f(h,"aria-label","selection indicator"),f(n,"class","fd-navigation__link svelte-z9apvz"),f(n,"tabindex","-1"),f(n,"href",m=i[31](i[86])),f(t,"class","fd-navigation__item fd-navigation__item--child"),f(t,"aria-level","3"),f(t,"role","treeitem"),f(t,"title",v=i[33](i[86],i[28](i[86]))),f(t,"aria-expanded","false"),f(t,"aria-selected",C=i[86]===i[7]),f(t,"data-testid",y=oe.getTestId(i[86])),f(e,"class","fd-navigation__list-item"),f(e,"aria-hidden","true"),f(V,"class",q="fd-nested-list__title badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"),f(E,"href",ce=i[31](i[86])),f(E,"class",x="fd-nested-list__link "+(i[86]===i[7]?"is-selected":"")+" svelte-z9apvz"),f(E,"role",K=i[23]?void 0:"button"),f(E,"tabindex","0"),f(E,"data-testid",J=oe.getTestId(i[86])),f(E,"title",j=i[33](i[86],i[28](i[86]))),Vn(T,"display","none"),f(T,"class","fd-nested-list__item"),f(T,"aria-labelledby","collapsible_listnode_"+i[85])},m(ze,at){A(ze,e,at),w(e,t),w(t,n),w(n,l),w(l,r),w(l,o),Oe(c,l,null),w(n,d),w(n,h),w(n,p),ve&&ve.m(n,null),w(n,b),ae&&ae.m(n,null),A(ze,P,at),A(ze,T,at),w(T,E),w(E,V),w(V,B),w(V,M),Oe(D,V,null),w(E,X),te&&te.m(E,null),w(E,Q),de&&de.m(E,null),_e=!0,ie||(se=[ne(n,"click",Re),ne(n,"keyup",function(){bi(i[23]?void 0:We)&&(i[23]?void 0:We).apply(this,arguments)}),ne(E,"click",Te),ne(E,"keyup",function(){bi(i[23]?void 0:tt)&&(i[23]?void 0:tt).apply(this,arguments)})],ie=!0)},p(ze,at){i=ze,(!_e||at[0]&8192)&&a!==(a=i[28](i[86])+"")&&Ae(r,a);const Ct={};at[0]&8192&&(Ct.node=i[86]),c.$set(Ct),(!_e||at[0]&8192&&g!==(g="fd-navigation__text badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"))&&f(l,"class",g),i[86].externalLink&&i[86].externalLink.url?ve||(ve=kd(),ve.c(),ve.m(n,b)):ve&&(ve.d(1),ve=null),i[86].badgeCounter?ae?(ae.p(i,at),at[0]&8192&&R(ae,1)):(ae=Sd(i),ae.c(),R(ae,1),ae.m(n,null)):ae&&(ke(),U(ae,1,1,()=>{ae=null}),Se()),(!_e||at[0]&8192&&m!==(m=i[31](i[86])))&&f(n,"href",m),(!_e||at[0]&8192&&v!==(v=i[33](i[86],i[28](i[86]))))&&f(t,"title",v),(!_e||at[0]&8320&&C!==(C=i[86]===i[7]))&&f(t,"aria-selected",C),(!_e||at[0]&8192&&y!==(y=oe.getTestId(i[86])))&&f(t,"data-testid",y),(!_e||at[0]&8192)&&I!==(I=i[28](i[86])+"")&&Ae(B,I);const pe={};at[0]&8192&&(pe.node=i[86]),D.$set(pe),(!_e||at[0]&8192&&q!==(q="fd-nested-list__title badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"))&&f(V,"class",q),i[86].externalLink&&i[86].externalLink.url?te||(te=Cd(),te.c(),te.m(E,Q)):te&&(te.d(1),te=null),i[86].badgeCounter?de?(de.p(i,at),at[0]&8192&&R(de,1)):(de=yd(i),de.c(),R(de,1),de.m(E,null)):de&&(ke(),U(de,1,1,()=>{de=null}),Se()),(!_e||at[0]&8192&&ce!==(ce=i[31](i[86])))&&f(E,"href",ce),(!_e||at[0]&8320&&x!==(x="fd-nested-list__link "+(i[86]===i[7]?"is-selected":"")+" svelte-z9apvz"))&&f(E,"class",x),(!_e||at[0]&8388608&&K!==(K=i[23]?void 0:"button"))&&f(E,"role",K),(!_e||at[0]&8192&&J!==(J=oe.getTestId(i[86])))&&f(E,"data-testid",J),(!_e||at[0]&8192&&j!==(j=i[33](i[86],i[28](i[86]))))&&f(E,"title",j)},i(ze){_e||(R(c.$$.fragment,ze),R(ae),R(D.$$.fragment,ze),R(de),_e=!0)},o(ze){U(c.$$.fragment,ze),U(ae),U(D.$$.fragment,ze),U(de),_e=!1},d(ze){ze&&L(e),Fe(c),ve&&ve.d(),ae&&ae.d(),ze&&L(P),ze&&L(T),Fe(D),te&&te.d(),de&&de.d(),ie=!1,Ze(se)}}}function kd(i){let e;return{c(){e=S("span"),f(e,"class","fd-navigation__external-link-indicator"),f(e,"role","presentation"),f(e,"aria-hidden","true"),f(e,"aria-label","external link indicator")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function Sd(i){let e,t;return e=new Pn({props:{node:i[86]}}),{c(){Ue(e.$$.fragment)},m(n,l){Oe(e,n,l),t=!0},p(n,l){const a={};l[0]&8192&&(a.node=n[86]),e.$set(a)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function Cd(i){let e;return{c(){e=S("i"),f(e,"class","sap-icon--action")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function yd(i){let e,t;return e=new Pn({props:{node:i[86]}}),{c(){Ue(e.$$.fragment)},m(n,l){Oe(e,n,l),t=!0},p(n,l){const a={};l[0]&8192&&(a.node=n[86]),e.$set(a)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function Pd(i){let e,t,n=!i[86].hideFromNav&&vd(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=vd(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Nd(i){let e,t,n=i[86].label&&Td(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].label?n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=Td(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Td(i){let e,t,n,l,a,r=i[28](i[86])+"",o,c,g,d,h,p,b,m,v,C,y,P,T,E,V,I,B;function M(K,J){return K[86].icon?bS:mS}let D=M(i),q=D(i);g=new ti({props:{node:i[86]}});let X=i[86].externalLink&&i[86].externalLink.url&&Id(),Q=i[86].badgeCounter&&Ld(i);function ce(...K){return i[46](i[86],...K)}function x(...K){return i[47](i[86],...K)}return{c(){e=S("li"),t=S("div"),n=S("a"),q.c(),l=H(),a=S("span"),o=Le(r),c=H(),Ue(g.$$.fragment),h=H(),X&&X.c(),p=H(),Q&&Q.c(),b=H(),m=S("span"),f(a,"class",d="fd-navigation__text lui-hideOnHover-show badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"),f(m,"class","fd-navigation__selection-indicator"),f(m,"role","presentation"),f(m,"aria-hidden","true"),f(m,"aria-label","selection indicator"),f(n,"class",v="fd-navigation__link "+(i[86]===i[7]?"is-selected":"")+" lui-hideOnHover svelte-z9apvz"),f(n,"tabindex","-1"),f(n,"href",C=i[31](i[86])),f(n,"title",y=i[33](i[86],i[28](i[86]))),f(n,"role",P=i[23]?void 0:"button"),f(n,"data-testid",T=oe.getTestId(i[86])),f(t,"class","fd-navigation__item"),f(t,"aria-level","2"),f(t,"role","treeitem"),f(t,"aria-selected",E=i[86]===i[7]),f(t,"aria-expanded","false"),f(e,"class","fd-navigation__list-item lui-nav-entry"),f(e,"aria-hidden","true")},m(K,J){A(K,e,J),w(e,t),w(t,n),q.m(n,null),w(n,l),w(n,a),w(a,o),w(a,c),Oe(g,a,null),w(n,h),X&&X.m(n,null),w(n,p),Q&&Q.m(n,null),w(n,b),w(n,m),V=!0,I||(B=[ne(n,"click",ce),ne(n,"keyup",function(){bi(i[23]?void 0:x)&&(i[23]?void 0:x).apply(this,arguments)})],I=!0)},p(K,J){i=K,D===(D=M(i))&&q?q.p(i,J):(q.d(1),q=D(i),q&&(q.c(),q.m(n,l))),(!V||J[0]&8192)&&r!==(r=i[28](i[86])+"")&&Ae(o,r);const j={};J[0]&8192&&(j.node=i[86]),g.$set(j),(!V||J[0]&8192&&d!==(d="fd-navigation__text lui-hideOnHover-show badge-align-"+(i[86].statusBadge&&i[86].statusBadge.align==="right"?"right":"left")+" svelte-z9apvz"))&&f(a,"class",d),i[86].externalLink&&i[86].externalLink.url?X||(X=Id(),X.c(),X.m(n,p)):X&&(X.d(1),X=null),i[86].badgeCounter?Q?(Q.p(i,J),J[0]&8192&&R(Q,1)):(Q=Ld(i),Q.c(),R(Q,1),Q.m(n,b)):Q&&(ke(),U(Q,1,1,()=>{Q=null}),Se()),(!V||J[0]&8320&&v!==(v="fd-navigation__link "+(i[86]===i[7]?"is-selected":"")+" lui-hideOnHover svelte-z9apvz"))&&f(n,"class",v),(!V||J[0]&8192&&C!==(C=i[31](i[86])))&&f(n,"href",C),(!V||J[0]&8192&&y!==(y=i[33](i[86],i[28](i[86]))))&&f(n,"title",y),(!V||J[0]&8388608&&P!==(P=i[23]?void 0:"button"))&&f(n,"role",P),(!V||J[0]&8192&&T!==(T=oe.getTestId(i[86])))&&f(n,"data-testid",T),(!V||J[0]&8320&&E!==(E=i[86]===i[7]))&&f(t,"aria-selected",E)},i(K){V||(R(g.$$.fragment,K),R(Q),V=!0)},o(K){U(g.$$.fragment,K),U(Q),V=!1},d(K){K&&L(e),q.d(),Fe(g),X&&X.d(),Q&&Q.d(),I=!1,Ze(B)}}}function mS(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-navigation__icon lui-hideOnHover-show "+(i[6]?"sap-icon--rhombus-milestone-2":"")),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(n,l){A(n,e,l)},p(n,l){l[0]&64&&t!==(t="fd-navigation__icon lui-hideOnHover-show "+(n[6]?"sap-icon--rhombus-milestone-2":""))&&f(e,"class",t)},d(n){n&&L(e)}}}function bS(i){let e,t;function n(r,o){return o[0]&8192&&(e=null),e==null&&(e=!!r[30](r[86].icon)),e?wS:vS}let l=n(i,[-1,-1,-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function vS(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[86].icon)||f(t,"src",n),f(t,"alt",l=i[86].altText?i[86].altText:""),f(t,"class","svelte-z9apvz"),f(e,"class","fd-navigation__icon lui-hideOnHover-show svelte-z9apvz")},m(a,r){A(a,e,r),w(e,t)},p(a,r){r[0]&8192&&!Xe(t.src,n=a[86].icon)&&f(t,"src",n),r[0]&8192&&l!==(l=a[86].altText?a[86].altText:"")&&f(t,"alt",l)},d(a){a&&L(e)}}}function wS(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-navigation__icon lui-hideOnHover-show "+i[29](i[86].icon)+" svelte-z9apvz"),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(n,l){A(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-navigation__icon lui-hideOnHover-show "+n[29](n[86].icon)+" svelte-z9apvz")&&f(e,"class",t)},d(n){n&&L(e)}}}function Id(i){let e;return{c(){e=S("span"),f(e,"class","fd-navigation__external-link-indicator"),f(e,"role","presentation"),f(e,"aria-hidden","true"),f(e,"aria-label","external link indicator")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function Ld(i){let e,t;return e=new Pn({props:{node:i[86]}}),{c(){Ue(e.$$.fragment)},m(n,l){Oe(e,n,l),t=!0},p(n,l){const a={};l[0]&8192&&(a.node=n[86]),e.$set(a)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function Ad(i){let e,t,n=!i[86].hideFromNav&&Nd(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[86].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,a),a[0]&8192&&R(n,1)):(n=Nd(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Ed(i){let e,t,n,l,a,r;const o=[dS,cS],c=[];function g(d,h){return h[0]&24576&&(e=null),h[0]&8192&&(t=null),e==null&&(e=!!(d[82]==="undefined"||d[82].startsWith(d[14]))),e?0:(t==null&&(t=d[83].filter(SS).length>0),t?1:-1)}return~(n=g(i,[-1,-1,-1,-1]))&&(l=c[n]=o[n](i)),{c(){l&&l.c(),a=Ce()},m(d,h){~n&&c[n].m(d,h),A(d,a,h),r=!0},p(d,h){let p=n;n=g(d,h),n===p?~n&&c[n].p(d,h):(l&&(ke(),U(c[p],1,1,()=>{c[p]=null}),Se()),~n?(l=c[n],l?l.p(d,h):(l=c[n]=o[n](d),l.c()),R(l,1),l.m(a.parentNode,a)):l=null)},i(d){r||(R(l),r=!0)},o(d){U(l),r=!1},d(d){~n&&c[n].d(d),d&&L(a)}}}function kS(i){let e,t,n,l,a,r;const o=[Wk,Hk],c=[];function g(d,h){return d[27]?0:1}return e=g(i),t=c[e]=o[e](i),{c(){t.c(),n=Ce()},m(d,h){c[e].m(d,h),A(d,n,h),l=!0,a||(r=[ne(xr,"resize",i[17]),ne(xr,"click",i[21]),ne(xr,"blur",i[21]),ne(xr,"keydown",i[34])],a=!0)},p(d,h){t.p(d,h)},i(d){l||(R(t),l=!0)},o(d){U(t),l=!1},d(d){c[e].d(d),d&&L(n),a=!1,Ze(r)}}}function un(i,e){return e&&e.indexOf(i.metaInfo.categoryUid)>=0}function Vo(i){const e=i.closest(".lui-nav-entry");e.style.setProperty("--lui_popover_offset","0px"),setTimeout(()=>{const n=e.querySelector(".fd-popover__body").getBoundingClientRect();n.top+n.height>window.innerHeight&&e.style.setProperty("--lui_popover_offset",n.top+n.height-window.innerHeight+"px")})}const SS=i=>!i.hideFromNav&&i.label,CS=i=>!i.hideFromNav&&i.label;function yS(i,e,t){let n;const l={get:()=>({children:r,hideNavComponent:o,footerText:c,semiCollapsible:g,pathData:p,virtualGroupPrefix:m,isSemiCollapsed:v,selectedNode:C,sideNavAccordionMode:E,selectedCategory:y,expandedCategories:P,hasCategoriesWithIcon:T,navParentNode:B}),set:async Z=>{Z&&(Object.getOwnPropertyNames(Z).forEach(async Ne=>{if(Ne==="pathData")t(5,p=Z.pathData);else if(Ne==="context")M=Z.context;else if(Ne==="children")t(0,r=Z.children);else if(Ne==="selectedNode")t(7,C=Z.selectedNode);else if(Ne==="hasCategoriesWithIcon")t(10,T=Z.hasCategoriesWithIcon);else if(Ne==="navParent"){t(12,I=void 0);let nt=Z.navParent;if(t(42,B=nt),nt&&nt.navHeader&&le.requestExperimentalFeature("navHeader",!0)){let ht=nt.navHeader,Tt=nt;if(ht==="inherit"){for(Tt=nt.parent;Tt&&Tt.navHeader==="inherit";)Tt=Tt.parent;ht=Tt?Tt.navHeader:void 0}if(ht instanceof Function){t(12,I={});let Zt=ht(oe.stripNode(nt),oe.stripNode(Tt),M);Zt instanceof Promise?Zt.then(gn=>{t(12,I=gn)}):t(12,I=Zt)}else if(ht==="auto")t(12,I={label:nt.label,icon:nt.icon});else if(ht&&ht.useTitleResolver&&Tt.titleResolver){Tt.titleResolver.prerenderFallback?t(12,I={...ht,label:Tt.titleResolver.fallbackTitle||"",icon:Tt.titleResolver.fallbackIcon}):t(12,I=ht);const Zt=we.mapPathToNode(lt.getCurrentPath(),Tt);Ot.extractDataFromPath(Zt).then(gn=>{const jn=we.substituteDynamicParamsInObject(Object.assign({},gn.pathData.context,Tt.context),gn.pathData.pathParams);oe.fetchNodeTitleData(Tt,jn).then(On=>{t(12,I={...ht,...On})}).catch(On=>{console.error("Error while retrieving title, fallback to node label"),t(12,I={...ht,label:nt.label,icon:nt.icon})})})}else t(12,I=await te(ht,Tt))}}}),t(41,E=oe.getSideNavAccordionMode(C)))}},a=Jt();let{children:r}=e,{hideNavComponent:o}=e,{footerText:c}=e,{semiCollapsible:g}=e,{semiCollapsibleButton:d}=e,{semiCollapsibleButtonStyle:h}=e,{pathData:p}=e,{pathParams:b}=e,{virtualGroupPrefix:m=oe.virtualGroupPrefix}=e,{isSemiCollapsed:v}=e,{selectedNode:C}=e,{selectedCategory:y=null}=e,{expandedCategories:P}=e,{hasCategoriesWithIcon:T}=e,{sideNavAccordionMode:E}=e,{burgerTooltip:V}=e,{navHeader:I}=e,{navParentNode:B}=e,M,D,q,X=vt("store"),Q=vt("getTranslation");wi(i,Q,Z=>t(25,n=Z));let ce=!1,x=re.getConfigBooleanValue("settings.btpToolLayout")&&le.requestExperimentalFeature("btpToolLayout",!1),K;const J=Z=>oe.getNodeLabel(Z),j=async()=>{const Z=l.get(),Ne=await Ot.getLeftNavData({...Z},Z);Ne&&(l.set(Ne),D=p,window.LEFTNAVDATA=Ne.children)};xt(()=>{t(3,d=re.getConfigValue("settings.responsiveNavigation")==="semiCollapsible"),t(4,h=re.getConfigValue("settings.semiCollapsibleButtonStyle")),t(23,ce=re.getConfigValue("navigation.addNavHrefs")),t(1,o=re.getConfigBooleanValue("settings.hideNavigation")),t(22,q=re.getConfigBooleanValue("settings.sideNavCompactMode")),t(9,P=oe.loadExpandedCategories()),dn.doOnStoreChange(X,()=>{t(2,c=re.getConfigValue("settings.sideNavFooterText"))},["settings.footer"]),dn.doOnStoreChange(X,()=>{j()},["navigation.viewgroupdata"]);let Z=_i.initial();t(6,v=Z.isSemiCollapsed),t(40,g=Z.semiCollapsible),_i.onValueChanged(Ne=>{t(6,v=Ne.isSemiCollapsed)}),Mn.addEventListener("message",Ne=>{Ne.data.msg==="luigi.navigation.update-badge-counters"&&j()})});const _e=()=>{if(K){const Z=K.querySelectorAll(".lui-moreItems > .lui-nav-entry"),Ne=K.querySelector(".fd-navigation__list"),nt=K.querySelector(".fd-navigation__list > .lui-spacer");Z==null||Z.forEach(ht=>{Ne.insertBefore(ht,nt)}),K.querySelector(".fd-navigation__list > .fd-navigation__list-item--overflow").style.display="none"}},ie=()=>{const Z=K.querySelector(".fd-navigation__list > .lui-spacer"),Ne=K.querySelector(".lui-moreItems"),nt=K.querySelectorAll(".fd-navigation__list > .lui-nav-entry");if(Z.clientHeight===0&&nt.length>1){K.querySelector(".fd-navigation__list > .fd-navigation__list-item--overflow").style.display="flex";for(let ht=nt.length-1;ht>0&&(lastNode=nt[ht-1],Ne.insertBefore(nt[ht],Ne.firstChild),!(Z.clientHeight>0));ht--);}};ja(()=>{if(!window.Luigi.__btpNavTopCntRszObs){let Z;window.Luigi.__btpNavTopCntRszObs=new ResizeObserver((Ne,nt)=>{Z&&clearTimeout(Z),v&&(Z=setTimeout(()=>{_e(),ie()},100))})}window.Luigi.__btpNavTopCntRszObs.disconnect(),K&&v?window.Luigi.__btpNavTopCntRszObs.observe(K):_e()}),Gn(()=>{(!D||D!=p)&&j(),t(22,q=re.getConfigBooleanValue("settings.sideNavCompactMode")),t(9,P=oe.loadExpandedCategories()),t(3,d=re.getConfigValue("settings.responsiveNavigation")==="semiCollapsible")});let{sortedChildrenEntries:se}=e;function ve(Z){return oe.renderIconClassName(Z)}function ae(Z){return oe.isOpenUIiconName(Z)}function Re(Z){return we.getNodeHref(Z,b)}function We(Z,Ne){return Z&&Z.testId?Z.testId:oe.prepareForTests(Ne||Z.label)}async function te(Z,Ne){const nt=we.mapPathToNode(lt.getCurrentPath(),Ne),Tt=(await Ot.extractDataFromPath(nt)).pathData.pathParams;return we.substituteDynamicParamsInObject(Z,Tt)}function de(Z,Ne){return oe.generateTooltipText(Z,Ne)}function Te(Z){a("handleClick",{node:Z})}function tt(Z,Ne){if(wt(),_i.getCollapsed()){let nt,ht=document.getElementsByClassName("fd-app__sidebar")[0];if(Z.metaInfo&&Z.metaInfo.label?nt=Z.metaInfo.label:nt=Z.category&&Z.category.label||Z.category,ht&&!ht.classList.contains("isBlocked")&&(ht.className+=" isBlocked"),nt===y){t(8,y=_i.closePopupMenu(y));return}t(8,y=nt),ht?ze(Ne):x&&Vo(Ne)}}function ze(Z){const Ne=Z.closest(".fd-nested-list__item"),nt=Ne.offsetTop,ht=Bi.getShellbar().offsetHeight;let Tt;Bi.isCustomLuigiContainer()?Tt=Bi.getCustomLuigiContainer().clientHeight:Tt=window.innerHeight,setTimeout(()=>{const Zt=Ne.getElementsByClassName("lui-flyout-sublist")[0],gn=Z.closest(".lui-fd-side-nav-wrapper").scrollTop,jn=nt+ht-gn,On=Tt-nt-Ne.offsetHeight+gn-ht;jn+Zt.offsetHeight>=Tt?(Zt.style.bottom=On+"px",Zt.className+=" has-bottom-position"):Zt.style.top=jn-ht+"px"})}function at(){if(g){let Z=_i.onResize(y);t(6,v=Z.isSemiCollapsed),t(8,y=Z.selectedCategory)}}function Ct(Z){if(Z.code==="ArrowRight"){const nt=Ee.getCurrentMicrofrontendIframe();nt&&nt.contentWindow&&nt.contentWindow.focus()}}function pe(Z){let Ne=B?B.parent:void 0;for(;Ne;){if(Ne.pathSegment&&Ne.pathSegment.trim().indexOf(":")!==0){a("handleClick",{node:Ne});return}Ne=Ne.parent}console.warn('Could not resolve "up"-node, redirecting to root'),ep.navigate("/")}function $e(Z,Ne){_i.getCollapsed()||t(9,P=oe.storeExpandedState(Z.metaInfo.categoryUid,Ne,E))}function wt(){K&&K.querySelector(".fd-navigation__item.lui-nav-more").setAttribute("aria-expanded",!1)}function qt(){t(8,y=_i.closePopupMenu(y)),wt()}function Nn(Z){Z&&Z.code==="Escape"&&qt()}function Ft(){t(6,v=_i.buttonClicked()),document.getElementsByClassName("luigi-tabsContainerHeader").length>0&&a("resizeTabNav",{}),Mt()}function Pe(Z){const Ne=Z.code;(Ne==="Enter"||Ne==="Space")&&Ft()}function dt(Z,Ne){(Z.code==="Enter"||Z==="Space")&&tt(Ne,Z.currentTarget)}function rt(Z,Ne){Z.keyCode===vi&&oe.handleNavAnchorClickedWithoutMetaKey(Z)&&Te(Ne)}function Mt(){if(!oe.getBurgerTooltipConfig())return;const[Z,Ne]=oe.getBurgerTooltipConfig(),nt=document.body.classList.contains("lui-semiCollapsible");Z&&Ne&&nt&&t(11,V=document.body.classList.contains("semiCollapsed")?Z:Ne)}function zt(Z,Ne){return un(Z,Ne)?Z.metaInfo.titleCollapseButton?n(Z.metaInfo.titleCollapseButton):void 0:Z.metaInfo.titleExpandButton?n(Z.metaInfo.titleExpandButton):void 0}const wn=(Z,Ne)=>{oe.handleNavAnchorClickedWithoutMetaKey(Ne)&&Te(Z)},ni=(Z,Ne)=>rt(Ne,Z),en=Z=>$e(Z,!un(Z,P)),kn=(Z,Ne)=>tt(Z,Ne.currentTarget),Kn=(Z,Ne)=>{oe.handleNavAnchorClickedWithoutMetaKey(Ne)&&Te(Z)},Yt=(Z,Ne)=>rt(Ne,Z),Tn=(Z,Ne)=>{oe.handleNavAnchorClickedWithoutMetaKey(Ne)&&Te(Z)},ki=(Z,Ne)=>rt(Ne,Z),Si=Z=>{const Ne=Z.target.parentElement;Ne.getAttribute("aria-expanded")==="true"?Ne.setAttribute("aria-expanded","false"):(qt(),Ne.setAttribute("aria-expanded","true")),Z.stopPropagation()};function hn(Z){Je[Z?"unshift":"push"](()=>{K=Z,t(24,K)})}const Ci=(Z,Ne)=>{oe.handleNavAnchorClickedWithoutMetaKey(Ne)&&Te(Z)},yi=(Z,Ne)=>rt(Ne,Z),Pi=Z=>$e(Z,!un(Z,P)),Ni=Z=>$e(Z,!un(Z,P)),Ti=(Z,Ne)=>dt(Ne,Z),_l=(Z,Ne)=>{oe.handleNavAnchorClickedWithoutMetaKey(Ne)&&Te(Z)},pl=(Z,Ne)=>rt(Ne,Z),ml=(Z,Ne)=>{oe.handleNavAnchorClickedWithoutMetaKey(Ne)&&Te(Z)},Ii=(Z,Ne)=>rt(Ne,Z),Wi=Z=>tt(Z,event.currentTarget),qi=(Z,Ne)=>{oe.handleNavAnchorClickedWithoutMetaKey(Ne)&&Te(Z)},fi=(Z,Ne)=>rt(Ne,Z),bl=Z=>Ft(),vl=Z=>Ft(),Gi=Z=>Pe(Z);return i.$$set=Z=>{"children"in Z&&t(0,r=Z.children),"hideNavComponent"in Z&&t(1,o=Z.hideNavComponent),"footerText"in Z&&t(2,c=Z.footerText),"semiCollapsible"in Z&&t(40,g=Z.semiCollapsible),"semiCollapsibleButton"in Z&&t(3,d=Z.semiCollapsibleButton),"semiCollapsibleButtonStyle"in Z&&t(4,h=Z.semiCollapsibleButtonStyle),"pathData"in Z&&t(5,p=Z.pathData),"pathParams"in Z&&t(43,b=Z.pathParams),"virtualGroupPrefix"in Z&&t(14,m=Z.virtualGroupPrefix),"isSemiCollapsed"in Z&&t(6,v=Z.isSemiCollapsed),"selectedNode"in Z&&t(7,C=Z.selectedNode),"selectedCategory"in Z&&t(8,y=Z.selectedCategory),"expandedCategories"in Z&&t(9,P=Z.expandedCategories),"hasCategoriesWithIcon"in Z&&t(10,T=Z.hasCategoriesWithIcon),"sideNavAccordionMode"in Z&&t(41,E=Z.sideNavAccordionMode),"burgerTooltip"in Z&&t(11,V=Z.burgerTooltip),"navHeader"in Z&&t(12,I=Z.navHeader),"navParentNode"in Z&&t(42,B=Z.navParentNode),"sortedChildrenEntries"in Z&&t(13,se=Z.sortedChildrenEntries)},i.$$.update=()=>{if(i.$$.dirty[0]&1&&r){const Z=Object.entries(r);Z.sort((Ne,nt)=>Ne[1].metaInfo.order-nt[1].metaInfo.order),t(13,se=Z)}},[r,o,c,d,h,p,v,C,y,P,T,V,I,se,m,Te,tt,at,Ct,pe,$e,qt,q,ce,K,n,Q,x,J,ve,ae,Re,We,de,Nn,Ft,Pe,dt,rt,zt,g,E,B,b,ze,Vo,wn,ni,en,kn,Kn,Yt,Tn,ki,Si,hn,Ci,yi,Pi,Ni,Ti,_l,pl,ml,Ii,Wi,qi,fi,bl,vl,Gi]}class ap extends Vt{constructor(e){super(),Dt(this,e,yS,kS,At,{children:0,hideNavComponent:1,footerText:2,semiCollapsible:40,semiCollapsibleButton:3,semiCollapsibleButtonStyle:4,pathData:5,pathParams:43,virtualGroupPrefix:14,isSemiCollapsed:6,selectedNode:7,selectedCategory:8,expandedCategories:9,hasCategoriesWithIcon:10,sideNavAccordionMode:41,burgerTooltip:11,navHeader:12,navParentNode:42,sortedChildrenEntries:13,handleClick:15,handleIconClick:16,calculateFlyoutPosition:44,calculateBTPNavFlyoutPosition:45,onResize:17,handleKey:18,handleUp:19,setExpandedState:20,closePopupMenu:21},null,[-1,-1,-1,-1])}get handleClick(){return this.$$.ctx[15]}get handleIconClick(){return this.$$.ctx[16]}get calculateFlyoutPosition(){return this.$$.ctx[44]}get calculateBTPNavFlyoutPosition(){return Vo}get onResize(){return this.$$.ctx[17]}get handleKey(){return this.$$.ctx[18]}get handleUp(){return this.$$.ctx[19]}get setExpandedState(){return this.$$.ctx[20]}get closePopupMenu(){return this.$$.ctx[21]}}const PS=i=>{dn.doOnStoreChange(i.store,()=>{const e=re.getConfigValue("navigation.appSwitcher");return e&&(i.set({appSwitcherItems:e.items}),i.set({showMainAppEntry:e.showMainAppEntry}),i.set({itemRenderer:e.itemRenderer}),le.requestExperimentalFeature("btpToolLayout")&&(i.set({keepMainTitle:e.keepMainTitle}),i.set({showSubTitle:e.showSubTitle!==!1}))),i.set({hasApps:i.get().showMainAppEntry||i.get().appSwitcherItems&&i.get().appSwitcherItems.length>0}),re.getConfigValueAsync("settings.header").then(t=>{if(t&&(i.set({defaultTitle:t.title||""}),i.set({defaultSubTitle:t.subTitle||""})),rp(i),!t)return;const n=!!t.logo;if(i.set({hasLogo:n}),setTimeout(()=>{n&&i.get().logo&&(i.get().logo.src=t.logo,t.altText&&(i.get().logo.alt=t.altText))}),t.favicon){!t.favicon.split("?")[0].endsWith(".ico")&&!t.favicon.startsWith("data:image")&&console.warn("Favicon is not an .ico filetype and might get displayed wrong.");const a=Object.assign(document.createElement("link"),{type:"image/x-icon",rel:"shortcut icon",href:t.favicon}),r=document.getElementsByTagName("head")[0];for(const o of r.childNodes)o.rel==="shortcut icon"&&o.remove();r.appendChild(a)}})},["settings.header"])},NS=(i,e,t)=>!!(i===e||e.startsWith(":")&&t&&t[e.substr(1)]===i),rp=i=>{const e=i.get().appSwitcherItems,t=i.get().pathData,n=i.get().pathParams;let l;e&&t&&[...e].sort((c,g)=>(g.link||"").localeCompare(c.link||"")).some(c=>{let g=!0;return le.trimTrailingSlash(le.trimLeadingSlash(c.link)).split("/").forEach((d,h)=>{g&&(h+1>=t.length||!t[h+1].pathSegment||!NS(d,t[h+1].pathSegment,n))&&(g=!1)}),g&&(l=c),g}),i.set({selectedItem:l});const a=l&&l.title?l.title:i.get().defaultTitle,r=Ya.getDocumentTitle()||a;i.set({title:a}),document.title=St.getTranslation(r);const o=l?l.subTitle||"":i.get().defaultSubTitle;i.set({subTitle:o})};function Rd(i,e,t){const n=i.slice();return n[45]=e[t],n[47]=t,n}function Dd(i,e,t){const n=i.slice();return n[45]=e[t],n}function TS(i){let e,t,n,l,a=i[1]&&Vd(i);return{c(){e=S("span"),a&&a.c(),f(e,"class",t="fd-shellbar__logo "+(i[1]?"":"fd-shellbar__logo--image-replaced")+" "+(i[1]?"lui-customlogo":"")+" svelte-bbvnsa"),f(e,"aria-label",i[2]),f(e,"role","button"),f(e,"tabindex","0")},m(r,o){A(r,e,o),a&&a.m(e,null),n||(l=ne(e,"click",i[31]),n=!0)},p(r,o){r[1]?a?a.p(r,o):(a=Vd(r),a.c(),a.m(e,null)):a&&(a.d(1),a=null),o[0]&2&&t!==(t="fd-shellbar__logo "+(r[1]?"":"fd-shellbar__logo--image-replaced")+" "+(r[1]?"lui-customlogo":"")+" svelte-bbvnsa")&&f(e,"class",t),o[0]&4&&f(e,"aria-label",r[2])},d(r){r&&L(e),a&&a.d(),n=!1,l()}}}function IS(i){let e,t,n,l,a=i[1]&&Md(i);return{c(){e=S("a"),a&&a.c(),f(e,"class",t="fd-shellbar__logo "+(i[1]?"":"fd-shellbar__logo--image-replaced")+" "+(i[1]?"lui-customlogo":"")+" svelte-bbvnsa"),f(e,"aria-label",i[2]),f(e,"href","/"),f(e,"role","button"),f(e,"tabindex","0")},m(r,o){A(r,e,o),a&&a.m(e,null),n||(l=ne(e,"click",i[29]),n=!0)},p(r,o){r[1]?a?a.p(r,o):(a=Md(r),a.c(),a.m(e,null)):a&&(a.d(1),a=null),o[0]&2&&t!==(t="fd-shellbar__logo "+(r[1]?"":"fd-shellbar__logo--image-replaced")+" "+(r[1]?"lui-customlogo":"")+" svelte-bbvnsa")&&f(e,"class",t),o[0]&4&&f(e,"aria-label",r[2])},d(r){r&&L(e),a&&a.d(),n=!1,l()}}}function Vd(i){let e;return{c(){e=S("img"),f(e,"data-testid","luigi-topnav-logo"),f(e,"alt",i[2]),f(e,"class","svelte-bbvnsa")},m(t,n){A(t,e,n),i[30](e)},p(t,n){n[0]&4&&f(e,"alt",t[2])},d(t){t&&L(e),i[30](null)}}}function Md(i){let e;return{c(){e=S("img"),f(e,"data-testid","luigi-topnav-logo"),f(e,"alt",i[2]),f(e,"class","svelte-bbvnsa")},m(t,n){A(t,e,n),i[28](e)},p(t,n){n[0]&4&&f(e,"alt",t[2])},d(t){t&&L(e),i[28](null)}}}function Od(i){let e,t,n,l=(!i[3]||i[4])&&Fd(i),a=i[3]&&Ud(i),r=i[12]&&i[5]&&Yd(i);return{c(){l&&l.c(),e=H(),a&&a.c(),t=H(),r&&r.c(),n=Ce()},m(o,c){l&&l.m(o,c),A(o,e,c),a&&a.m(o,c),A(o,t,c),r&&r.m(o,c),A(o,n,c)},p(o,c){!o[3]||o[4]?l?l.p(o,c):(l=Fd(o),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),o[3]?a?a.p(o,c):(a=Ud(o),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null),o[12]&&o[5]?r?r.p(o,c):(r=Yd(o),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(o){l&&l.d(o),o&&L(e),a&&a.d(o),o&&L(t),r&&r.d(o),o&&L(n)}}}function Fd(i){let e;function t(a,r){return a[14]?AS:LS}let n=t(i),l=n(i);return{c(){l.c(),e=Ce()},m(a,r){l.m(a,r),A(a,e,r)},p(a,r){n===(n=t(a))&&l?l.p(a,r):(l.d(1),l=n(a),l&&(l.c(),l.m(e.parentNode,e)))},d(a){l.d(a),a&&L(e)}}}function LS(i){let e,t,n=i[19](i[4]?i[8]:i[2])+"",l,a,r;return{c(){e=S("span"),t=S("span"),l=Le(n),f(e,"class","fd-shellbar__title lui-shellbar-single-app-title svelte-bbvnsa"),f(e,"data-testid","luigi-topnav-title")},m(o,c){A(o,e,c),w(e,t),w(t,l),a||(r=ne(e,"click",i[33]),a=!0)},p(o,c){c[0]&524564&&n!==(n=o[19](o[4]?o[8]:o[2])+"")&&Ae(l,n)},d(o){o&&L(e),a=!1,r()}}}function AS(i){let e,t,n=i[19](i[4]?i[8]:i[2])+"",l,a,r,o;return{c(){e=S("a"),t=S("span"),l=Le(n),f(e,"class",a="fd-shellbar__title lui-shellbar-single-app-title "+(i[3]&&"lui-has-apps")+" svelte-bbvnsa"),f(e,"data-testid","luigi-topnav-title"),f(e,"href","/")},m(c,g){A(c,e,g),w(e,t),w(t,l),r||(o=ne(e,"click",i[32]),r=!0)},p(c,g){g[0]&524564&&n!==(n=c[19](c[4]?c[8]:c[2])+"")&&Ae(l,n),g[0]&8&&a!==(a="fd-shellbar__title lui-shellbar-single-app-title "+(c[3]&&"lui-has-apps")+" svelte-bbvnsa")&&f(e,"class",a)},d(c){c&&L(e),r=!1,o()}}}function Ud(i){let e,t,n,l,a,r,o,c,g,d,h;function p(y,P){return y[14]?RS:ES}let b=p(i),m=b(i),v=i[6]&&i[7]&&Gd(i),C=i[9]&&i[9].length>0&&Kd(i);return{c(){e=S("div"),t=S("div"),m.c(),n=H(),l=S("div"),a=S("nav"),r=S("ul"),v&&v.c(),o=H(),C&&C.c(),f(t,"class","fd-popover__control"),f(r,"class","fd-menu__list fd-menu__list--no-shadow"),f(a,"class","fd-menu"),f(l,"class","fd-popover__body fd-popover__body--left"),f(l,"aria-hidden",c=!i[13].appSwitcherPopover),f(l,"id","appSwitcherPopover"),f(e,"class",g="fd-popover "+(i[4]&&"lui-keep-main")+" svelte-bbvnsa")},m(y,P){A(y,e,P),w(e,t),m.m(t,null),w(e,n),w(e,l),w(l,a),w(a,r),v&&v.m(r,null),w(r,o),C&&C.m(r,null),i[38](r),d||(h=ne(t,"click",Ut(OS)),d=!0)},p(y,P){b===(b=p(y))&&m?m.p(y,P):(m.d(1),m=b(y),m&&(m.c(),m.m(t,null))),y[6]&&y[7]?v?v.p(y,P):(v=Gd(y),v.c(),v.m(r,o)):v&&(v.d(1),v=null),y[9]&&y[9].length>0?C?C.p(y,P):(C=Kd(y),C.c(),C.m(r,null)):C&&(C.d(1),C=null),P[0]&8192&&c!==(c=!y[13].appSwitcherPopover)&&f(l,"aria-hidden",c),P[0]&16&&g!==(g="fd-popover "+(y[4]&&"lui-keep-main")+" svelte-bbvnsa")&&f(e,"class",g)},d(y){y&&L(e),m.d(),v&&v.d(),C&&C.d(),i[38](null),d=!1,h()}}}function ES(i){let e,t,n=i[19](i[2])+"",l,a,r,o,c,g;return{c(){e=S("button"),t=S("span"),l=Le(n),a=H(),r=S("i"),f(t,"class","fd-shellbar__title svelte-bbvnsa"),f(t,"data-testid","luigi-topnav-title"),f(r,"class","sap-icon sap-icon--megamenu fd-shellbar__button--icon"),f(e,"class","fd-button fd-button--transparent fd-button--menu fd-shellbar__button fd-shellbar__button--menu lui-app-switch"),f(e,"aria-haspopup","true"),f(e,"aria-expanded",o=i[13].appSwitcherPopover||!1),f(e,"data-testid","app-switcher")},m(d,h){A(d,e,h),w(e,t),w(t,l),w(e,a),w(e,r),c||(g=ne(e,"click",Ut(i[36])),c=!0)},p(d,h){h[0]&524292&&n!==(n=d[19](d[2])+"")&&Ae(l,n),h[0]&8192&&o!==(o=d[13].appSwitcherPopover||!1)&&f(e,"aria-expanded",o)},d(d){d&&L(e),c=!1,g()}}}function RS(i){let e,t,n,l=i[9]&&i[9].length===1&&zd(i),a=i[9]&&i[9].length>1&&Bd(i),r=i[9].length>1&&!i[7]&&qd(i);return{c(){l&&l.c(),e=H(),a&&a.c(),t=H(),r&&r.c(),n=Ce()},m(o,c){l&&l.m(o,c),A(o,e,c),a&&a.m(o,c),A(o,t,c),r&&r.m(o,c),A(o,n,c)},p(o,c){o[9]&&o[9].length===1?l?l.p(o,c):(l=zd(o),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),o[9]&&o[9].length>1?a?a.p(o,c):(a=Bd(o),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null),o[9].length>1&&!o[7]?r?r.p(o,c):(r=qd(o),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(o){l&&l.d(o),o&&L(e),a&&a.d(o),o&&L(t),r&&r.d(o),o&&L(n)}}}function zd(i){let e,t,n=i[19](i[9][0].title)+"",l,a;return{c(){e=S("a"),t=S("span"),l=Le(n),f(e,"href",a=i[24](i[9][0])),f(e,"class","fd-shellbar__title lui-shellbar-single-app-title svelte-bbvnsa")},m(r,o){A(r,e,o),w(e,t),w(t,l)},p(r,o){o[0]&524800&&n!==(n=r[19](r[9][0].title)+"")&&Ae(l,n),o[0]&512&&a!==(a=r[24](r[9][0]))&&f(e,"href",a)},d(r){r&&L(e)}}}function Bd(i){let e,t=i[9],n=[];for(let l=0;l<t.length;l+=1)n[l]=Wd(Dd(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=Ce()},m(l,a){for(let r=0;r<n.length;r+=1)n[r].m(l,a);A(l,e,a)},p(l,a){if(a[0]&25832068){t=l[9];let r;for(r=0;r<t.length;r+=1){const o=Dd(l,t,r);n[r]?n[r].p(o,a):(n[r]=Wd(o),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(l){ct(n,l),l&&L(e)}}}function Hd(i){let e,t,n=i[19](i[2])+"",l,a,r,o,c,g,d,h;return{c(){e=S("a"),t=S("span"),l=Le(n),a=H(),r=S("i"),o=H(),f(t,"class","fd-shellbar__title svelte-bbvnsa"),f(t,"data-testid","luigi-topnav-title"),f(r,"class","sap-icon sap-icon--megamenu fd-shellbar__button--icon"),f(e,"href",c=i[24](i[45])),f(e,"class","fd-button fd-button--transparent fd-button--menu fd-shellbar__button fd-shellbar__button--menu lui-app-switch"),f(e,"aria-haspopup","true"),f(e,"aria-expanded",g=i[13].appSwitcherPopover||!1),f(e,"data-testid","app-switcher")},m(p,b){A(p,e,b),w(e,t),w(t,l),w(e,a),w(e,r),w(e,o),d||(h=ne(e,"click",Pt(i[34])),d=!0)},p(p,b){b[0]&524292&&n!==(n=p[19](p[2])+"")&&Ae(l,n),b[0]&512&&c!==(c=p[24](p[45]))&&f(e,"href",c),b[0]&8192&&g!==(g=p[13].appSwitcherPopover||!1)&&f(e,"aria-expanded",g)},d(p){p&&L(e),d=!1,h()}}}function Wd(i){let e=i[45]===i[7]&&i[23](i[45],i[11]),t,n=e&&Hd(i);return{c(){n&&n.c(),t=Ce()},m(l,a){n&&n.m(l,a),A(l,t,a)},p(l,a){a[0]&2688&&(e=l[45]===l[7]&&l[23](l[45],l[11])),e?n?n.p(l,a):(n=Hd(l),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(l){n&&n.d(l),l&&L(t)}}}function qd(i){let e,t,n=i[19](i[2])+"",l,a,r,o,c,g;return{c(){e=S("a"),t=S("span"),l=Le(n),a=H(),r=S("i"),f(t,"class","fd-shellbar__title svelte-bbvnsa"),f(t,"data-testid","luigi-topnav-title"),f(r,"class","sap-icon sap-icon--megamenu fd-shellbar__button--icon"),f(e,"href","/"),f(e,"class","fd-button fd-button--transparent fd-button--menu fd-shellbar__button fd-shellbar__button--menu lui-app-switch"),f(e,"aria-haspopup","true"),f(e,"aria-expanded",o=i[13].appSwitcherPopover||!1),f(e,"data-testid","app-switcher")},m(d,h){A(d,e,h),w(e,t),w(t,l),w(e,a),w(e,r),c||(g=ne(e,"click",Pt(i[35])),c=!0)},p(d,h){h[0]&524292&&n!==(n=d[19](d[2])+"")&&Ae(l,n),h[0]&8192&&o!==(o=d[13].appSwitcherPopover||!1)&&f(e,"aria-expanded",o)},d(d){d&&L(e),c=!1,g()}}}function Gd(i){let e,t,n,l=i[19](i[8])+"",a,r,o,c;return{c(){e=S("li"),t=S("a"),n=S("span"),a=Le(l),f(n,"class","fd-menu__title"),f(t,"href","/"),f(t,"role","button"),f(t,"class","fd-menu__link"),f(t,"data-testid",r=i[22](i[8])),f(e,"class","fd-menu__item")},m(g,d){A(g,e,d),w(e,t),w(t,n),w(n,a),o||(c=ne(t,"click",Pt(i[16])),o=!0)},p(g,d){d[0]&524544&&l!==(l=g[19](g[8])+"")&&Ae(a,l),d[0]&256&&r!==(r=g[22](g[8]))&&f(t,"data-testid",r)},d(g){g&&L(e),o=!1,c()}}}function Kd(i){let e,t=i[9],n=[];for(let l=0;l<t.length;l+=1)n[l]=Jd(Rd(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=Ce()},m(l,a){for(let r=0;r<n.length;r+=1)n[r].m(l,a);A(l,e,a)},p(l,a){if(a[0]&32296576){t=l[9];let r;for(r=0;r<t.length;r+=1){const o=Rd(l,t,r);n[r]?n[r].p(o,a):(n[r]=Jd(o),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(l){ct(n,l),l&&L(e)}}}function DS(i){let e,t,n,l=i[19](i[45].title)+"",a,r,o,c,g,d;function h(...p){return i[37](i[45],...p)}return{c(){e=S("li"),t=S("a"),n=S("span"),a=Le(l),c=H(),f(n,"class","fd-menu__title"),f(t,"role","button"),f(t,"class","fd-menu__link"),f(t,"href",r=i[14]?i[24](i[45],i[11]):void 0),f(t,"data-testid",o=i[22](i[45])),f(e,"class","fd-menu__item")},m(p,b){A(p,e,b),w(e,t),w(t,n),w(n,a),w(e,c),g||(d=ne(t,"click",h),g=!0)},p(p,b){i=p,b[0]&524800&&l!==(l=i[19](i[45].title)+"")&&Ae(a,l),b[0]&18944&&r!==(r=i[14]?i[24](i[45],i[11]):void 0)&&f(t,"href",r),b[0]&512&&o!==(o=i[22](i[45]))&&f(t,"data-testid",o)},d(p){p&&L(e),g=!1,d()}}}function VS(i){let e,t=i[18]&&jd(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,l){n[18]?t?t.p(n,l):(t=jd(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&L(e)}}}function jd(i){let e,t,n=i[21](i[45],i[18],i[47])+"",l;return{c(){e=S("li"),t=new ha(!1),l=H(),t.a=l,f(e,"class","fd-menu__item"),f(e,"tabindex","0")},m(a,r){A(a,e,r),t.m(n,e),w(e,l)},p(a,r){r[0]&262656&&n!==(n=a[21](a[45],a[18],a[47])+"")&&t.p(n)},d(a){a&&L(e)}}}function Jd(i){let e,t,n;function l(o,c){if(c[0]&1024&&(e=null),c[0]&2688&&(t=null),e==null&&(e=!!le.isFunction(o[10])),e)return VS;if(t==null&&(t=!!(o[45]!==o[7]&&o[23](o[45],o[11]))),t)return DS}let a=l(i,[-1,-1]),r=a&&a(i);return{c(){r&&r.c(),n=Ce()},m(o,c){r&&r.m(o,c),A(o,n,c)},p(o,c){a===(a=l(o,c))&&r?r.p(o,c):(r&&r.d(1),r=a&&a(o),r&&(r.c(),r.m(n.parentNode,n)))},d(o){r&&r.d(o),o&&L(n)}}}function Yd(i){let e,t=i[19](i[12])+"",n;return{c(){e=S("div"),n=Le(t),f(e,"class","fd-shellbar__subtitle svelte-bbvnsa")},m(l,a){A(l,e,a),w(e,n)},p(l,a){a[0]&528384&&t!==(t=l[19](l[12])+"")&&Ae(n,t)},d(l){l&&L(e)}}}function MS(i){let e,t;function n(o,c){return o[14]?IS:TS}let l=n(i),a=l(i),r=i[2]&&Od(i);return{c(){a.c(),e=H(),r&&r.c(),t=Ce()},m(o,c){a.m(o,c),A(o,e,c),r&&r.m(o,c),A(o,t,c)},p(o,c){l===(l=n(o))&&a?a.p(o,c):(a.d(1),a=l(o),a&&(a.c(),a.m(e.parentNode,e))),o[2]?r?r.p(o,c):(r=Od(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:He,o:He,d(o){a.d(o),o&&L(e),r&&r.d(o),o&&L(t)}}}const OS=()=>{};function FS(i,e,t){let n;const l=Jt();let{logo:a}=e,{hasLogo:r}=e,{title:o}=e,{hasApps:c}=e,{keepMainTitle:g}=e,{showSubTitle:d=!0}=e,{dropDownStates:h={}}=e,{showMainAppEntry:p}=e,{selectedItem:b}=e,{defaultTitle:m}=e,{appSwitcherItems:v}=e,{itemRenderer:C}=e,{pathParams:y}=e,{subTitle:P}=e,{defaultSubTitle:T}=e,{pathData:E}=e,{addNavHrefForAnchor:V}=e,I,B,M=vt("getUnsavedChangesModalPromise"),D=vt("getTranslation");wi(i,D,pe=>t(19,n=pe));let q=vt("store");const X={closeDropDown:()=>{j("appSwitcherPopover")}},Q=()=>({get:()=>({pathData:E,pathParams:y,appSwitcherItems:v,itemRenderer:C,selectedItem:b,defaultTitle:m,title:o,subTitle:P,defaultSubTitle:T,showMainAppEntry:p,hasApps:c,keepMainTitle:g,showSubTitle:d,hasLogo:r,logo:a}),set:pe=>{pe&&Object.getOwnPropertyNames(pe).forEach($e=>{$e==="pathData"?t(26,E=pe.pathData):$e==="appSwitcherItems"?t(9,v=pe.appSwitcherItems):$e==="itemRenderer"?t(10,C=pe.itemRenderer):$e==="pathParams"?t(11,y=pe.pathParams):$e==="selectedItem"?t(7,b=pe.selectedItem):$e==="title"?t(2,o=pe.title):$e==="defaultSubTitle"?t(25,T=pe.defaultSubTitle):$e==="subTitle"?t(12,P=pe.subTitle):$e==="defaultTitle"?t(8,m=pe.defaultTitle):$e==="subTitle"?t(12,P=pe.subTitle):$e==="showMainAppEntry"?t(6,p=pe.showMainAppEntry):$e==="hasApps"?t(3,c=pe.hasApps):$e==="keepMainTitle"?t(4,g=pe.keepMainTitle):$e==="showSubTitle"?t(5,d=pe.showSubTitle):$e==="hasLogo"&&t(1,r=pe.hasLogo)})},store:q});xt(()=>{PS(Q())}),Gn(()=>{(!B||B!=E)&&(rp(Q()),B=E)});function ce(pe,$e,wt){return setTimeout(()=>{$e&&C(pe,$e.children[wt],X)}),""}function x(pe){M().then(()=>{lt.navigateTo(we.applyPathParams(pe,y))},()=>{})}function K(){M().then(()=>{lt.navigateTo("/")},()=>{})}function J(pe){l("handleClick",{node:pe}),j("appSwitcherPopover")}function j(pe){l("toggleDropdownState",{name:pe})}function _e(pe){return pe.testId?pe.testId:oe.prepareForTests(pe.title||pe)}function ie(pe,$e){if(pe.link){const wt=we.applyPathParams(pe.link,$e);if(wt.indexOf(":")!==0&&wt.indexOf("/:")===-1)return!0}return!1}function se(pe){return we.getNodeHref(pe)}function ve(pe){Je[pe?"unshift":"push"](()=>{a=pe,t(0,a)})}const ae=pe=>{oe.handleNavAnchorClickedWithoutMetaKey(pe)&&x("/")};function Re(pe){Je[pe?"unshift":"push"](()=>{a=pe,t(0,a)})}const We=()=>x("/"),te=pe=>{oe.handleNavAnchorClickedWithoutMetaKey(pe)&&x("/")},de=()=>x("/"),Te=()=>j("appSwitcherPopover"),tt=()=>j("appSwitcherPopover"),ze=()=>j("appSwitcherPopover"),at=(pe,$e)=>{oe.handleNavAnchorClickedWithoutMetaKey($e)&&x(pe.link)};function Ct(pe){Je[pe?"unshift":"push"](()=>{I=pe,t(18,I)})}return i.$$set=pe=>{"logo"in pe&&t(0,a=pe.logo),"hasLogo"in pe&&t(1,r=pe.hasLogo),"title"in pe&&t(2,o=pe.title),"hasApps"in pe&&t(3,c=pe.hasApps),"keepMainTitle"in pe&&t(4,g=pe.keepMainTitle),"showSubTitle"in pe&&t(5,d=pe.showSubTitle),"dropDownStates"in pe&&t(13,h=pe.dropDownStates),"showMainAppEntry"in pe&&t(6,p=pe.showMainAppEntry),"selectedItem"in pe&&t(7,b=pe.selectedItem),"defaultTitle"in pe&&t(8,m=pe.defaultTitle),"appSwitcherItems"in pe&&t(9,v=pe.appSwitcherItems),"itemRenderer"in pe&&t(10,C=pe.itemRenderer),"pathParams"in pe&&t(11,y=pe.pathParams),"subTitle"in pe&&t(12,P=pe.subTitle),"defaultSubTitle"in pe&&t(25,T=pe.defaultSubTitle),"pathData"in pe&&t(26,E=pe.pathData),"addNavHrefForAnchor"in pe&&t(14,V=pe.addNavHrefForAnchor)},[a,r,o,c,g,d,p,b,m,v,C,y,P,h,V,x,K,j,I,n,D,ce,_e,ie,se,T,E,J,ve,ae,Re,We,te,de,Te,tt,ze,at,Ct]}class US extends Vt{constructor(e){super(),Dt(this,e,FS,MS,At,{logo:0,hasLogo:1,title:2,hasApps:3,keepMainTitle:4,showSubTitle:5,dropDownStates:13,showMainAppEntry:6,selectedItem:7,defaultTitle:8,appSwitcherItems:9,itemRenderer:10,pathParams:11,subTitle:12,defaultSubTitle:25,pathData:26,addNavHrefForAnchor:14,goTo:15,goToRoot:16,handleClick:27,toggleDropdownState:17},null,[-1,-1])}get goTo(){return this.$$.ctx[15]}get goToRoot(){return this.$$.ctx[16]}get handleClick(){return this.$$.ctx[27]}get toggleDropdownState(){return this.$$.ctx[17]}}function Qd(i,e,t){const n=i.slice();return n[34]=e[t],n}function Zd(i){let e,t,n,l,a,r,o=i[0]&&Xd(i),c=(i[10]||i[11])&&lh(i);return{c(){e=S("div"),o&&o.c(),t=H(),n=S("div"),l=S("div"),a=S("div"),r=S("div"),c&&c.c(),f(e,"class","fd-user-menu__body lui-user-menu-fiori svelte-ydef8m"),f(r,"class","fd-bar__element"),f(a,"class","fd-bar__right"),f(l,"class","fd-bar fd-bar--footer"),f(n,"class","fd-popover__body-footer")},m(g,d){A(g,e,d),o&&o.m(e,null),A(g,t,d),A(g,n,d),w(n,l),w(l,a),w(a,r),c&&c.m(r,null)},p(g,d){g[0]?o?o.p(g,d):(o=Xd(g),o.c(),o.m(e,null)):o&&(o.d(1),o=null),g[10]||g[11]?c?c.p(g,d):(c=lh(g),c.c(),c.m(r,null)):c&&(c.d(1),c=null)},d(g){g&&L(e),o&&o.d(),g&&L(t),g&&L(n),c&&c.d()}}}function Xd(i){let e,t,n,l,a,r,o;function c(C,y){return C[7].picture?BS:zS}let g=c(i),d=g(i),h=i[7].name&&$d(i),p=i[7].description&&xd(i),b=i[9].items,m=[];for(let C=0;C<b.length;C+=1)m[C]=th(Qd(i,b,C));let v=i[12]&&nh(i);return{c(){e=S("div"),d.c(),t=H(),n=S("div"),h&&h.c(),l=H(),p&&p.c(),a=H(),r=S("ul");for(let C=0;C<m.length;C+=1)m[C].c();o=H(),v&&v.c(),f(e,"class","fd-user-menu__header"),f(n,"class","fd-user-menu__subheader"),f(r,"class","fd-list fd-list--compact fd-list--navigation fd-list--navigation-indication fd-list--no-border")},m(C,y){A(C,e,y),d.m(e,null),A(C,t,y),A(C,n,y),h&&h.m(n,null),w(n,l),p&&p.m(n,null),A(C,a,y),A(C,r,y);for(let P=0;P<m.length;P+=1)m[P].m(r,null);w(r,o),v&&v.m(r,null)},p(C,y){if(g===(g=c(C))&&d?d.p(C,y):(d.d(1),d=g(C),d&&(d.c(),d.m(e,null))),C[7].name?h?h.p(C,y):(h=$d(C),h.c(),h.m(n,l)):h&&(h.d(1),h=null),C[7].description?p?p.p(C,y):(p=xd(C),p.c(),p.m(n,null)):p&&(p.d(1),p=null),y[0]&991884){b=C[9].items;let P;for(P=0;P<b.length;P+=1){const T=Qd(C,b,P);m[P]?m[P].p(T,y):(m[P]=th(T),m[P].c(),m[P].m(r,o))}for(;P<m.length;P+=1)m[P].d(1);m.length=b.length}C[12]?v?v.p(C,y):(v=nh(C),v.c(),v.m(r,null)):v&&(v.d(1),v=null)},d(C){C&&L(e),d.d(),C&&L(t),C&&L(n),h&&h.d(),p&&p.d(),C&&L(a),C&&L(r),ct(m,C),v&&v.d()}}}function zS(i){let e,t=(i[7].initials?i[7].initials:"")+"",n;return{c(){e=S("span"),n=Le(t),f(e,"class","fd-avatar fd-avatar--xl fd-avatar--circle fd-avatar--thumbnail fd-user-menu__avatar"),f(e,"aria-label","Avatar")},m(l,a){A(l,e,a),w(e,n)},p(l,a){a[0]&128&&t!==(t=(l[7].initials?l[7].initials:"")+"")&&Ae(n,t)},d(l){l&&L(e)}}}function BS(i){let e;return{c(){e=S("span"),f(e,"class","fd-avatar fd-avatar--xl fd-avatar--circle fd-avatar--thumbnail fd-user-menu__avatar"),f(e,"aria-label","Avatar"),f(e,"data-testid","luigi-topnav-profile-avatar"),Vn(e,"background-image","url('"+i[7].picture+"')")},m(t,n){A(t,e,n)},p(t,n){n[0]&128&&Vn(e,"background-image","url('"+t[7].picture+"')")},d(t){t&&L(e)}}}function $d(i){let e,t=i[7].name+"",n;return{c(){e=S("div"),n=Le(t),f(e,"class","fd-user-menu__user-name svelte-ydef8m"),f(e,"id","username"),f(e,"data-testid","luigi-topnav-profile-username")},m(l,a){A(l,e,a),w(e,n)},p(l,a){a[0]&128&&t!==(t=l[7].name+"")&&Ae(n,t)},d(l){l&&L(e)}}}function xd(i){let e,t=i[7].description+"",n;return{c(){e=S("div"),n=Le(t),f(e,"class","fd-user-menu__user-role svelte-ydef8m"),f(e,"data-testid","luigi-topnav-profile-description")},m(l,a){A(l,e,a),w(e,n)},p(l,a){a[0]&128&&t!==(t=l[7].description+"")&&Ae(n,t)},d(l){l&&L(e)}}}function eh(i){let e,t;function n(r,o){return o[0]&512&&(e=null),e==null&&(e=!!r[17](r[34])),e?WS:HS}let l=n(i,[-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function HS(i){let e,t;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-ydef8m"),Vn(e,"background-image","url('"+i[7].icon+"')"),f(e,"alt",t=i[34].altText?i[34].altText:"")},m(n,l){A(n,e,l)},p(n,l){l[0]&128&&Vn(e,"background-image","url('"+n[7].icon+"')"),l[0]&512&&t!==(t=n[34].altText?n[34].altText:"")&&f(e,"alt",t)},d(n){n&&L(e)}}}function WS(i){let e,t;return{c(){e=S("i"),f(e,"role","presentation"),f(e,"class",t="fd-list__icon "+i[16](i[34].icon)+" svelte-ydef8m")},m(n,l){A(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-list__icon "+n[16](n[34].icon)+" svelte-ydef8m")&&f(e,"class",t)},d(n){n&&L(e)}}}function th(i){let e,t,n,l,a=i[13](i[34].label)+"",r,o,c,g,d,h=i[34].icon&&eh(i);function p(){return i[24](i[34])}return{c(){e=S("li"),t=S("a"),h&&h.c(),n=H(),l=S("span"),r=Le(a),f(l,"class","fd-list__title svelte-ydef8m"),f(t,"tabindex","0"),f(t,"class","fd-list__link"),f(t,"data-testid","luigi-topnav-profile-item"),f(t,"href",o=i[2]?i[19](i[34]):void 0),f(e,"tabindex","-1"),f(e,"class","fd-list__item fd-list__item--link"),f(e,"data-testid",c=i[18](i[34]))},m(b,m){A(b,e,m),w(e,t),h&&h.m(t,null),w(t,n),w(t,l),w(l,r),g||(d=[ne(t,"click",i[23]),ne(e,"click",p)],g=!0)},p(b,m){i=b,i[34].icon?h?h.p(i,m):(h=eh(i),h.c(),h.m(t,n)):h&&(h.d(1),h=null),m[0]&8704&&a!==(a=i[13](i[34].label)+"")&&Ae(r,a),m[0]&516&&o!==(o=i[2]?i[19](i[34]):void 0)&&f(t,"href",o),m[0]&512&&c!==(c=i[18](i[34]))&&f(e,"data-testid",c)},d(b){b&&L(e),h&&h.d(),g=!1,Ze(d)}}}function nh(i){let e,t,n,l,a=i[13](i[9].settings.label)+"",r,o,c,g=i[9].settings.icon&&ih(i);return{c(){e=S("li"),t=S("a"),g&&g.c(),n=H(),l=S("span"),r=Le(a),f(l,"class","fd-list__title svelte-ydef8m"),f(t,"tabindex","0"),f(t,"class","fd-list__link"),f(t,"title","User Settings"),f(t,"data-testid","settings-link"),f(e,"tabindex","-1"),f(e,"class","fd-list__item fd-list__item--link lui-anchor-node")},m(d,h){A(d,e,h),w(e,t),g&&g.m(t,null),w(t,n),w(t,l),w(l,r),o||(c=[ne(e,"click",Pt(i[5])),ne(e,"keyup",i[25])],o=!0)},p(d,h){d[9].settings.icon?g?g.p(d,h):(g=ih(d),g.c(),g.m(t,n)):g&&(g.d(1),g=null),h[0]&8704&&a!==(a=d[13](d[9].settings.label)+"")&&Ae(r,a)},d(d){d&&L(e),g&&g.d(),o=!1,Ze(c)}}}function ih(i){let e,t;function n(r,o){return o[0]&512&&(e=null),e==null&&(e=!!r[17](r[9].settings)),e?GS:qS}let l=n(i,[-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function qS(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-ydef8m"),Xe(e.src,t=i[9].settings.icon)||f(e,"src",t),f(e,"alt",n=i[9].settings.altText?i[9].settings.altText:"")},m(l,a){A(l,e,a)},p(l,a){a[0]&512&&!Xe(e.src,t=l[9].settings.icon)&&f(e,"src",t),a[0]&512&&n!==(n=l[9].settings.altText?l[9].settings.altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function GS(i){let e,t;return{c(){e=S("i"),f(e,"role","presentation"),f(e,"class",t="fd-list__icon "+i[16](i[9].settings.icon)+" svelte-ydef8m")},m(n,l){A(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-list__icon "+n[16](n[9].settings.icon)+" svelte-ydef8m")&&f(e,"class",t)},d(n){n&&L(e)}}}function lh(i){let e,t,n=(i[8]||!i[10]&&i[11])&&ah(i),l=i[10]&&!i[8]&&rh(i);return{c(){n&&n.c(),e=H(),l&&l.c(),t=Ce()},m(a,r){n&&n.m(a,r),A(a,e,r),l&&l.m(a,r),A(a,t,r)},p(a,r){a[8]||!a[10]&&a[11]?n?n.p(a,r):(n=ah(a),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),a[10]&&!a[8]?l?l.p(a,r):(l=rh(a),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},d(a){n&&n.d(a),a&&L(e),l&&l.d(a),a&&L(t)}}}function ah(i){let e,t,n=i[13](i[9].logout.label)+"",l,a,r,o;return{c(){e=S("div"),t=S("button"),l=Le(n),f(t,"class","fd-button fd-button--transparent fd-button--compact"),f(t,"tabindex","0"),f(t,"data-testid","logout-btn"),f(e,"class","fd-bar__element"),f(e,"data-testid",a=i[18](i[9].logout))},m(c,g){A(c,e,g),w(e,t),w(t,l),r||(o=ne(t,"click",i[4]),r=!0)},p(c,g){g[0]&8704&&n!==(n=c[13](c[9].logout.label)+"")&&Ae(l,n),g[0]&512&&a!==(a=c[18](c[9].logout))&&f(e,"data-testid",a)},d(c){c&&L(e),r=!1,o()}}}function rh(i){let e,t,n,l,a;return{c(){e=S("button"),e.textContent="Login",t=H(),n=S("button"),n.textContent="Login",f(e,"class","fd-button fd-button--transparent fd-button--compact"),f(e,"tabindex","0"),f(e,"data-testid","login-btn"),f(n,"class","fd-button fd-button--transparent fd-button--compact"),f(n,"tabindex","0"),f(n,"data-testid","login-btn")},m(r,o){A(r,e,o),A(r,t,o),A(r,n,o),l||(a=[ne(e,"click",i[15]),ne(n,"click",i[15])],l=!0)},p:He,d(r){r&&L(e),r&&L(t),r&&L(n),l=!1,Ze(a)}}}function KS(i){let e,t=!i[1]&&Zd(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,l){n[1]?t&&(t.d(1),t=null):t?t.p(n,l):(t=Zd(n),t.c(),t.m(e.parentNode,e))},i:He,o:He,d(n){t&&t.d(n),n&&L(e)}}}function jS(i,e,t){let n;const l=Jt();let{isHidden:a=!1}=e,{addNavHrefForAnchor:r}=e,o,c,g={logout:{},items:[],settings:{}},d,h,p,b,m,v=vt("store"),C=vt("getTranslation");wi(i,C,ie=>t(13,n=ie));let y=vt("getUnsavedChangesModalPromise"),P=vt("openViewInModal");xt(async()=>{pi.isAuthorizationEnabled()?t(10,d=!0):(t(10,d=!1),D()),M(),fn.getLoggedInStore().subscribe(ie=>{t(8,c=ie)}),fn.getUserInfoStore().subscribe(ie=>{t(7,o=ie),l("userInfoUpdated",o)})});function T(){fn.startAuthorization()}function E(ie){return oe.renderIconClassName(ie)}function V(ie){return oe.isOpenUIiconName(ie.icon)}function I(ie){return ie.testId?ie.testId:oe.prepareForTests(ie.label)}function B(ie){return we.getNodeHref(ie)}function M(){b||(dn.doOnStoreChange(v,async()=>{const ie=await re.getConfigValueAsync("navigation.profile.logout"),se=await re.getConfigValueAsync("userSettings"),ve=se||await re.getConfigValueAsync("settings.userSettings"),ae={items:await re.getConfigValueAsync("navigation.profile.items")||[]};if(ve){const Re=ve.userSettingsProfileMenuEntry;ae.settings={...dl.userSettingsProfileMenuEntry,...Re}}ae.logout={...dl.logout,...ie},t(11,h=!!ie),m=!1,fn.setProfileLogoutFn(null),ie&&le.isFunction(ie.customLogoutFn)&&(m=!0,fn.setProfileLogoutFn(ie.customLogoutFn)),t(9,g=ae),t(12,p=!!ve)},["navigation.profile"]),b=!0)}async function D(){const ie=await re.getConfigValueAsync("navigation.profile.staticUserInfoFn");ie&&(fn.setUserInfo(o),t(7,o=ie),l("userInfoUpdated",o))}function q(ie){y().then(()=>{if(ie.openNodeInModal){const se=we.buildRoute(ie,`${ie.link}`);P(se,ie.openNodeInModal===!0?{}:ie.openNodeInModal)}else lt.navigateToLink(ie)},()=>{}),l("toggleDropdownState")}function X(){y().then(()=>{d?ce():h&&m?g.logout.customLogoutFn():console.error("No IDP provider or profile.customLogoutFn is defined.")},()=>{})}function Q(){Ya.openUserSettings(),l("toggleDropdownState")}function ce(){fn.logout()}function x({keyCode:ie}){(ie===vi||ie===Ka)&&document.querySelector(".lui-anchor-node>.fd-list__link").click()}let{showUserInfo:K}=e;const J=ie=>{oe.handleNavAnchorClickedWithoutMetaKey(ie)},j=ie=>q(ie),_e=ie=>x(ie);return i.$$set=ie=>{"isHidden"in ie&&t(1,a=ie.isHidden),"addNavHrefForAnchor"in ie&&t(2,r=ie.addNavHrefForAnchor),"showUserInfo"in ie&&t(0,K=ie.showUserInfo)},i.$$.update=()=>{i.$$.dirty[0]&128&&t(0,K=!!(o&&(o.name||o.email)))},[K,a,r,q,X,Q,x,o,c,g,d,h,p,n,C,T,E,V,I,B,M,D,ce,J,j,_e]}class JS extends Vt{constructor(e){super(),Dt(this,e,jS,KS,At,{isHidden:1,addNavHrefForAnchor:2,setProfileNavData:20,setProfileUserData:21,onActionClick:3,onLogoutClick:4,onUserSettingsClick:5,logout:22,handleKeyUp:6,showUserInfo:0},null,[-1,-1])}get setProfileNavData(){return this.$$.ctx[20]}get setProfileUserData(){return this.$$.ctx[21]}get onActionClick(){return this.$$.ctx[3]}get onLogoutClick(){return this.$$.ctx[4]}get onUserSettingsClick(){return this.$$.ctx[5]}get logout(){return this.$$.ctx[22]}get handleKeyUp(){return this.$$.ctx[6]}}function sh(i,e,t){const n=i.slice();return n[34]=e[t],n}function oh(i){let e,t,n,l,a,r=i[0]&&uh(i),o=i[9].items,c=[];for(let h=0;h<o.length;h+=1)c[h]=ch(sh(i,o,h));let g=i[12]&&dh(i),d=(i[10]||i[11])&&gh(i);return{c(){e=S("nav"),t=S("ul"),r&&r.c(),n=H();for(let h=0;h<c.length;h+=1)c[h].c();l=H(),g&&g.c(),a=H(),d&&d.c(),f(t,"class","fd-menu__list fd-menu__list--no-shadow"),f(e,"class","fd-menu lui-profile-simple-menu svelte-1msqoo3")},m(h,p){A(h,e,p),w(e,t),r&&r.m(t,null),w(t,n);for(let b=0;b<c.length;b+=1)c[b].m(t,null);w(t,l),g&&g.m(t,null),w(t,a),d&&d.m(t,null)},p(h,p){if(h[0]?r?r.p(h,p):(r=uh(h),r.c(),r.m(t,n)):r&&(r.d(1),r=null),p[0]&991756){o=h[9].items;let b;for(b=0;b<o.length;b+=1){const m=sh(h,o,b);c[b]?c[b].p(m,p):(c[b]=ch(m),c[b].c(),c[b].m(t,l))}for(;b<c.length;b+=1)c[b].d(1);c.length=o.length}h[12]?g?g.p(h,p):(g=dh(h),g.c(),g.m(t,a)):g&&(g.d(1),g=null),h[10]||h[11]?d?d.p(h,p):(d=gh(h),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},d(h){h&&L(e),r&&r.d(),ct(c,h),g&&g.d(),d&&d.d()}}}function uh(i){let e,t,n=(i[7].name?i[7].name:i[7].email)+"",l;return{c(){e=S("li"),t=S("span"),l=Le(n),f(t,"aria-label","Username"),f(t,"id","username"),f(t,"class","lui-username fd-has-type-1 svelte-1msqoo3"),f(t,"data-testid","luigi-topnav-profile-username"),f(e,"class","fd-menu__item")},m(a,r){A(a,e,r),w(e,t),w(t,l)},p(a,r){r[0]&128&&n!==(n=(a[7].name?a[7].name:a[7].email)+"")&&Ae(l,n)},d(a){a&&L(e)}}}function fh(i){let e,t;function n(r,o){return o[0]&512&&(e=null),e==null&&(e=!!r[17](r[34])),e?QS:YS}let l=n(i,[-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function YS(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-1msqoo3"),Xe(e.src,t=i[34].icon)||f(e,"src",t),f(e,"alt",n=i[34].altText?i[34].altText:"")},m(l,a){A(l,e,a)},p(l,a){a[0]&512&&!Xe(e.src,t=l[34].icon)&&f(e,"src",t),a[0]&512&&n!==(n=l[34].altText?l[34].altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function QS(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-top-nav__icon "+i[16](i[34].icon)+" svelte-1msqoo3")},m(n,l){A(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-top-nav__icon "+n[16](n[34].icon)+" svelte-1msqoo3")&&f(e,"class",t)},d(n){n&&L(e)}}}function ch(i){let e,t,n,l,a=i[13](i[34].label)+"",r,o,c,g,d,h=i[34].icon&&fh(i);function p(){return i[24](i[34])}return{c(){e=S("li"),t=S("a"),h&&h.c(),n=H(),l=S("span"),r=Le(a),f(l,"class","fd-menu__title"),f(t,"class","fd-menu__link"),f(t,"data-testid","luigi-topnav-profile-item"),f(t,"href",o=i[2]?i[19](i[34]):void 0),f(e,"class","fd-menu__item"),f(e,"data-testid",c=i[18](i[34]))},m(b,m){A(b,e,m),w(e,t),h&&h.m(t,null),w(t,n),w(t,l),w(l,r),g||(d=[ne(t,"click",i[23]),ne(e,"click",p)],g=!0)},p(b,m){i=b,i[34].icon?h?h.p(i,m):(h=fh(i),h.c(),h.m(t,n)):h&&(h.d(1),h=null),m[0]&8704&&a!==(a=i[13](i[34].label)+"")&&Ae(r,a),m[0]&516&&o!==(o=i[2]?i[19](i[34]):void 0)&&f(t,"href",o),m[0]&512&&c!==(c=i[18](i[34]))&&f(e,"data-testid",c)},d(b){b&&L(e),h&&h.d(),g=!1,Ze(d)}}}function dh(i){let e,t,n,l,a=i[13](i[9].settings.label)+"",r,o,c,g,d=i[9].settings.icon&&hh(i);return{c(){e=S("li"),t=S("a"),d&&d.c(),n=H(),l=S("span"),r=Le(a),f(l,"class","fd-menu__title"),f(t,"tabindex","0"),f(t,"title","User Settings"),f(t,"class","fd-menu__link"),f(t,"data-testid","settings-link"),f(e,"tabindex","-1"),f(e,"class","fd-menu__item lui-anchor-node"),f(e,"data-testid",o=i[18](i[9].settings))},m(h,p){A(h,e,p),w(e,t),d&&d.m(t,null),w(t,n),w(t,l),w(l,r),c||(g=[ne(e,"click",Pt(i[5])),ne(e,"keyup",i[25])],c=!0)},p(h,p){h[9].settings.icon?d?d.p(h,p):(d=hh(h),d.c(),d.m(t,n)):d&&(d.d(1),d=null),p[0]&8704&&a!==(a=h[13](h[9].settings.label)+"")&&Ae(r,a),p[0]&512&&o!==(o=h[18](h[9].settings))&&f(e,"data-testid",o)},d(h){h&&L(e),d&&d.d(),c=!1,Ze(g)}}}function hh(i){let e,t;function n(r,o){return o[0]&512&&(e=null),e==null&&(e=!!r[17](r[9].settings)),e?XS:ZS}let l=n(i,[-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function ZS(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-1msqoo3"),Xe(e.src,t=i[9].settings.icon)||f(e,"src",t),f(e,"alt",n=i[9].settings.altText?i[9].settings.altText:"")},m(l,a){A(l,e,a)},p(l,a){a[0]&512&&!Xe(e.src,t=l[9].settings.icon)&&f(e,"src",t),a[0]&512&&n!==(n=l[9].settings.altText?l[9].settings.altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function XS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-top-nav__icon "+i[16](i[9].settings.icon)+" svelte-1msqoo3")},m(n,l){A(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-top-nav__icon "+n[16](n[9].settings.icon)+" svelte-1msqoo3")&&f(e,"class",t)},d(n){n&&L(e)}}}function gh(i){let e,t,n=(i[8]||!i[10]&&i[11])&&_h(i),l=i[10]&&!i[8]&&mh(i);return{c(){n&&n.c(),e=H(),l&&l.c(),t=Ce()},m(a,r){n&&n.m(a,r),A(a,e,r),l&&l.m(a,r),A(a,t,r)},p(a,r){a[8]||!a[10]&&a[11]?n?n.p(a,r):(n=_h(a),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),a[10]&&!a[8]?l?l.p(a,r):(l=mh(a),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},d(a){n&&n.d(a),a&&L(e),l&&l.d(a),a&&L(t)}}}function _h(i){let e,t,n,l,a=i[13](i[9].logout.label)+"",r,o,c,g,d=i[9].logout.icon&&ph(i);return{c(){e=S("li"),t=S("button"),d&&d.c(),n=H(),l=S("span"),r=Le(a),f(l,"class","fd-menu__title"),f(t,"title","Logout"),f(t,"class","fd-menu__link lui-logout-btn svelte-1msqoo3"),f(t,"data-testid","logout-btn"),f(e,"class","fd-menu__item svelte-1msqoo3"),f(e,"data-testid",o=i[18](i[9].logout))},m(h,p){A(h,e,p),w(e,t),d&&d.m(t,null),w(t,n),w(t,l),w(l,r),c||(g=ne(e,"click",i[4]),c=!0)},p(h,p){h[9].logout.icon?d?d.p(h,p):(d=ph(h),d.c(),d.m(t,n)):d&&(d.d(1),d=null),p[0]&8704&&a!==(a=h[13](h[9].logout.label)+"")&&Ae(r,a),p[0]&512&&o!==(o=h[18](h[9].logout))&&f(e,"data-testid",o)},d(h){h&&L(e),d&&d.d(),c=!1,g()}}}function ph(i){let e,t;function n(r,o){return o[0]&512&&(e=null),e==null&&(e=!!r[17](r[9].logout)),e?xS:$S}let l=n(i,[-1,-1]),a=l(i);return{c(){a.c(),t=Ce()},m(r,o){a.m(r,o),A(r,t,o)},p(r,o){l===(l=n(r,o))&&a?a.p(r,o):(a.d(1),a=l(r),a&&(a.c(),a.m(t.parentNode,t)))},d(r){a.d(r),r&&L(t)}}}function $S(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-1msqoo3"),Xe(e.src,t=i[9].logout.icon)||f(e,"src",t),f(e,"alt",n=i[9].logout.altText?i[9].logout.altText:"")},m(l,a){A(l,e,a)},p(l,a){a[0]&512&&!Xe(e.src,t=l[9].logout.icon)&&f(e,"src",t),a[0]&512&&n!==(n=l[9].logout.altText?l[9].logout.altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function xS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-top-nav__icon "+i[16](i[9].logout.icon)+" svelte-1msqoo3")},m(n,l){A(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-top-nav__icon "+n[16](n[9].logout.icon)+" svelte-1msqoo3")&&f(e,"class",t)},d(n){n&&L(e)}}}function mh(i){let e,t,n;return{c(){e=S("li"),e.innerHTML='<a aria-label="Login" class="fd-menu__link" data-testid="login-btn"><span class="fd-menu__title">Login</span></a>',f(e,"class","fd-menu__item")},m(l,a){A(l,e,a),t||(n=ne(e,"click",i[15]),t=!0)},p:He,d(l){l&&L(e),t=!1,n()}}}function eC(i){let e,t=!i[1]&&oh(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,l){n[1]?t&&(t.d(1),t=null):t?t.p(n,l):(t=oh(n),t.c(),t.m(e.parentNode,e))},i:He,o:He,d(n){t&&t.d(n),n&&L(e)}}}function tC(i,e,t){let n;const l=Jt();let{isHidden:a=!1}=e,{addNavHrefForAnchor:r}=e,o,c,g={logout:{},items:[],settings:{}},d,h,p,b,m,v=vt("store"),C=vt("getTranslation");wi(i,C,ie=>t(13,n=ie));let y=vt("getUnsavedChangesModalPromise"),P=vt("openViewInModal");xt(async()=>{pi.isAuthorizationEnabled()?t(10,d=!0):(t(10,d=!1),D()),M(),fn.getLoggedInStore().subscribe(ie=>{t(8,c=ie)}),fn.getUserInfoStore().subscribe(ie=>{t(7,o=ie),l("userInfoUpdated",o)})});function T(){fn.startAuthorization()}function E(ie){return oe.renderIconClassName(ie)}function V(ie){return oe.isOpenUIiconName(ie.icon)}function I(ie){return ie.testId?ie.testId:oe.prepareForTests(ie.label)}function B(ie){return we.getNodeHref(ie)}function M(){b||(dn.doOnStoreChange(v,async()=>{const ie=await re.getConfigValueAsync("navigation.profile.logout"),se=await re.getConfigValueAsync("userSettings"),ve=se||await re.getConfigValueAsync("settings.userSettings");t(12,p=!!ve);const ae={items:await re.getConfigValueAsync("navigation.profile.items")||[]};if(p){const Re=ve.userSettingsProfileMenuEntry;ae.settings={...dl.userSettingsProfileMenuEntry,...Re}}ae.logout={...dl.logout,...ie},t(11,h=!!ie),m=!1,fn.setProfileLogoutFn(null),ie&&le.isFunction(ie.customLogoutFn)&&(m=!0,fn.setProfileLogoutFn(ie.customLogoutFn)),t(9,g=ae)},["navigation.profile"]),b=!0)}async function D(){const ie=await re.getConfigValueAsync("navigation.profile.staticUserInfoFn");ie&&(fn.setUserInfo(o),t(7,o=ie),l("userInfoUpdated",o))}function q(ie){y().then(()=>{if(ie.openNodeInModal){const se=we.buildRoute(ie,`${ie.link}`);P(se,ie.openNodeInModal===!0?{}:ie.openNodeInModal)}else lt.navigateToLink(ie)},()=>{}),l("toggleDropdownState")}function X(){y().then(()=>{d?ce():h&&m?g.logout.customLogoutFn():console.error("No IDP provider or profile.customLogoutFn is defined.")},()=>{})}function Q(){Ya.openUserSettings(),l("toggleDropdownState")}function ce(){fn.logout()}function x({keyCode:ie}){(ie===vi||ie===Ka)&&document.querySelector(".lui-anchor-node>.fd-menu__link").click()}let{showUserInfo:K}=e;const J=ie=>{oe.handleNavAnchorClickedWithoutMetaKey(ie)},j=ie=>q(ie),_e=ie=>x(ie);return i.$$set=ie=>{"isHidden"in ie&&t(1,a=ie.isHidden),"addNavHrefForAnchor"in ie&&t(2,r=ie.addNavHrefForAnchor),"showUserInfo"in ie&&t(0,K=ie.showUserInfo)},i.$$.update=()=>{i.$$.dirty[0]&128&&t(0,K=!!(o&&(o.name||o.email)))},[K,a,r,q,X,Q,x,o,c,g,d,h,p,n,C,T,E,V,I,B,M,D,ce,J,j,_e]}class sp extends Vt{constructor(e){super(),Dt(this,e,tC,eC,At,{isHidden:1,addNavHrefForAnchor:2,setProfileNavData:20,setProfileUserData:21,onActionClick:3,onLogoutClick:4,onUserSettingsClick:5,logout:22,handleKeyUp:6,showUserInfo:0},null,[-1,-1])}get setProfileNavData(){return this.$$.ctx[20]}get setProfileUserData(){return this.$$.ctx[21]}get onActionClick(){return this.$$.ctx[3]}get onLogoutClick(){return this.$$.ctx[4]}get onUserSettingsClick(){return this.$$.ctx[5]}get logout(){return this.$$.ctx[22]}get handleKeyUp(){return this.$$.ctx[6]}}function bh(i,e,t){const n=i.slice();return n[11]=e[t],n}function vh(i){let e,t,n=i[1],l=[];for(let r=0;r<n.length;r+=1)l[r]=Sh(bh(i,n,r));const a=r=>U(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;r<l.length;r+=1)l[r].c();e=Ce()},m(r,o){for(let c=0;c<l.length;c+=1)l[c].m(r,o);A(r,e,o),t=!0},p(r,o){if(o&254){n=r[1];let c;for(c=0;c<n.length;c+=1){const g=bh(r,n,c);l[c]?(l[c].p(g,o),R(l[c],1)):(l[c]=Sh(g),l[c].c(),R(l[c],1),l[c].m(e.parentNode,e))}for(ke(),c=n.length;c<l.length;c+=1)a(c);Se()}},i(r){if(!t){for(let o=0;o<n.length;o+=1)R(l[o]);t=!0}},o(r){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)U(l[o]);t=!1},d(r){ct(l,r),r&&L(e)}}}function wh(i){let e,t,n,l,a,r,o,c,g=i[3](i[11])+"",d,h,p=i[4](i[11]),b,m,v,C,y,P;function T(M,D){return D&6&&(n=null),n==null&&(n=!!M[2](M[11])),n?iC:nC}let E=T(i,-1),V=E(i);a=new Pn({props:{node:i[11]}});let I=p&&kh(i);function B(){return i[9](i[11])}return{c(){e=S("li"),t=S("div"),V.c(),l=H(),Ue(a.$$.fragment),r=H(),o=S("div"),c=S("div"),d=Le(g),h=H(),I&&I.c(),b=H(),f(t,"class","lui-product-switch__icon svelte-t09cq9"),f(c,"class","fd-product-switch__title"),f(o,"class","fd-product-switch__text svelte-t09cq9"),f(e,"class",m="fd-product-switch__item "+(i[5]=="true"?"y-has-no-subtitle":"")+" "+(i[11].selected?"selected":"")+" svelte-t09cq9"),f(e,"data-e2e","mobile-topnav-item"),f(e,"data-testid",v=oe.getTestId(i[11]))},m(M,D){A(M,e,D),w(e,t),V.m(t,null),w(t,l),Oe(a,t,null),w(e,r),w(e,o),w(o,c),w(c,d),w(o,h),I&&I.m(o,null),w(e,b),C=!0,y||(P=ne(e,"click",B),y=!0)},p(M,D){i=M,E===(E=T(i,D))&&V?V.p(i,D):(V.d(1),V=E(i),V&&(V.c(),V.m(t,l)));const q={};D&2&&(q.node=i[11]),a.$set(q),(!C||D&10)&&g!==(g=i[3](i[11])+"")&&Ae(d,g),D&18&&(p=i[4](i[11])),p?I?I.p(i,D):(I=kh(i),I.c(),I.m(o,null)):I&&(I.d(1),I=null),(!C||D&34&&m!==(m="fd-product-switch__item "+(i[5]=="true"?"y-has-no-subtitle":"")+" "+(i[11].selected?"selected":"")+" svelte-t09cq9"))&&f(e,"class",m),(!C||D&2&&v!==(v=oe.getTestId(i[11])))&&f(e,"data-testid",v)},i(M){C||(R(a.$$.fragment,M),C=!0)},o(M){U(a.$$.fragment,M),C=!1},d(M){M&&L(e),V.d(),Fe(a),I&&I.d(),y=!1,P()}}}function nC(i){let e,t,n;return{c(){e=S("img"),Xe(e.src,t=i[11].icon)||f(e,"src",t),f(e,"alt",n=i[11].altText?i[11].altText:""),f(e,"class","svelte-t09cq9")},m(l,a){A(l,e,a)},p(l,a){a&2&&!Xe(e.src,t=l[11].icon)&&f(e,"src",t),a&2&&n!==(n=l[11].altText?l[11].altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function iC(i){let e,t;return{c(){e=S("i"),f(e,"class",t="sap-icon "+(i[11].icon&&i[2](i[11])?i[7](i[11].icon):"")+" svelte-t09cq9")},m(n,l){A(n,e,l)},p(n,l){l&6&&t!==(t="sap-icon "+(n[11].icon&&n[2](n[11])?n[7](n[11].icon):"")+" svelte-t09cq9")&&f(e,"class",t)},d(n){n&&L(e)}}}function kh(i){let e,t=i[4](i[11])+"",n;return{c(){e=S("div"),n=Le(t),f(e,"class","fd-product-switch__subtitle")},m(l,a){A(l,e,a),w(e,n)},p(l,a){a&18&&t!==(t=l[4](l[11])+"")&&Ae(n,t)},d(l){l&&L(e)}}}function Sh(i){let e,t,n=i[11].label&&wh(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[11].label?n?(n.p(l,a),a&2&&R(n,1)):(n=wh(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function lC(i){let e,t,n,l,a,r,o,c,g,d,h,p,b,m,v,C,y,P,T,E=i[1]&&vh(i);return{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),a=S("div"),r=S("h2"),o=Le(i[0]),c=H(),g=S("div"),d=S("div"),h=S("ul"),E&&E.c(),p=H(),b=S("footer"),m=S("div"),v=S("div"),C=S("button"),C.textContent="Cancel",f(r,"class","fd-title fd-title--h5"),f(r,"id","dialog-title-4"),f(a,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(n,"class","fd-dialog__header fd-bar fd-bar--header"),f(h,"class","fd-product-switch__list"),f(d,"class","fd-product-switch__body fd-product-switch__body--mobile svelte-t09cq9"),f(g,"class","fd-dialog__body fd-dialog__body--no-vertical-padding"),f(C,"class","fd-button fd-button--light fd-dialog__decisive-button"),f(C,"data-testid","mobile-topnav-close"),f(v,"class","fd-bar__element"),f(m,"class","fd-bar__right"),f(b,"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-4"),f(e,"class","fd-dialog fd-dialog--active")},m(V,I){A(V,e,I),w(e,t),w(t,n),w(n,l),w(l,a),w(a,r),w(r,o),w(t,c),w(t,g),w(g,d),w(d,h),E&&E.m(h,null),w(t,p),w(t,b),w(b,m),w(m,v),w(v,C),y=!0,P||(T=[ne(C,"click",i[8]),ne(e,"click",Ut(aC))],P=!0)},p(V,[I]){(!y||I&1)&&Ae(o,V[0]),V[1]?E?(E.p(V,I),I&2&&R(E,1)):(E=vh(V),E.c(),R(E,1),E.m(h,null)):E&&(ke(),U(E,1,1,()=>{E=null}),Se())},i(V){y||(R(E),y=!0)},o(V){U(E),y=!1},d(V){V&&L(e),E&&E.d(),P=!1,Ze(T)}}}const aC=()=>{};function rC(i,e,t){const n=Jt();let{label:l}=e,{nodes:a}=e,{hasOpenUIicon:r}=e,{getNodeLabel:o}=e,{getNodeSubtitle:c}=e,{noSubTitle:g}=e;function d(m){return oe.renderIconClassName(m)}function h(m){n("listClick",m)}function p(m){Dl.call(this,i,m)}const b=m=>h(m);return i.$$set=m=>{"label"in m&&t(0,l=m.label),"nodes"in m&&t(1,a=m.nodes),"hasOpenUIicon"in m&&t(2,r=m.hasOpenUIicon),"getNodeLabel"in m&&t(3,o=m.getNodeLabel),"getNodeSubtitle"in m&&t(4,c=m.getNodeSubtitle),"noSubTitle"in m&&t(5,g=m.noSubTitle)},[l,a,r,o,c,g,h,d,p,b]}class op extends Vt{constructor(e){super(),Dt(this,e,rC,lC,At,{label:0,nodes:1,hasOpenUIicon:2,getNodeLabel:3,getNodeSubtitle:4,noSubTitle:5,onActionClick:6})}get onActionClick(){return this.$$.ctx[6]}}const{window:sC}=gl;function Ch(i,e,t){const n=i.slice();return n[7]=e[t],n}function yh(i){let e,t,n,l=i[0]&&Ph(i);return{c(){e=S("nav"),t=S("ul"),l&&l.c(),f(t,"class","fd-menu__list fd-menu__list--top fd-menu__list--no-shadow"),f(e,"class","fd-menu")},m(a,r){A(a,e,r),w(e,t),l&&l.m(t,null),n=!0},p(a,r){a[0]?l?(l.p(a,r),r&1&&R(l,1)):(l=Ph(a),l.c(),R(l,1),l.m(t,null)):l&&(ke(),U(l,1,1,()=>{l=null}),Se())},i(a){n||(R(l),n=!0)},o(a){U(l),n=!1},d(a){a&&L(e),l&&l.d()}}}function Ph(i){let e,t,n=i[0],l=[];for(let r=0;r<n.length;r+=1)l[r]=Th(Ch(i,n,r));const a=r=>U(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;r<l.length;r+=1)l[r].c();e=Ce()},m(r,o){for(let c=0;c<l.length;c+=1)l[c].m(r,o);A(r,e,o),t=!0},p(r,o){if(o&7693){n=r[0];let c;for(c=0;c<n.length;c+=1){const g=Ch(r,n,c);l[c]?(l[c].p(g,o),R(l[c],1)):(l[c]=Th(g),l[c].c(),R(l[c],1),l[c].m(e.parentNode,e))}for(ke(),c=n.length;c<l.length;c+=1)a(c);Se()}},i(r){if(!t){for(let o=0;o<n.length;o+=1)R(l[o]);t=!0}},o(r){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)U(l[o]);t=!1},d(r){ct(l,r),r&&L(e)}}}function Nh(i){let e,t,n,l,a,r,o,c,g=i[11](i[7])+"",d,h,p,b,m,v,C;function y(V,I){return I&1&&(l=null),l==null&&(l=!!(V[7].icon&&V[9](V[7]))),l?uC:oC}let P=y(i,-1),T=P(i);r=new Pn({props:{node:i[7]}});function E(){return i[14](i[7])}return{c(){e=S("li"),t=S("a"),n=S("span"),T.c(),a=H(),Ue(r.$$.fragment),o=H(),c=S("span"),d=Le(g),p=H(),f(n,"class","fd-top-nav__icon svelte-1811tf3"),f(c,"class","fd-menu__title"),f(t,"href",h=i[2]?i[12](i[7]):void 0),f(t,"class","fd-menu__link"),f(e,"class","fd-menu__item"),f(e,"data-testid",b=oe.getTestId(i[7]))},m(V,I){A(V,e,I),w(e,t),w(t,n),T.m(n,null),w(n,a),Oe(r,n,null),w(t,o),w(t,c),w(c,d),w(e,p),m=!0,v||(C=[ne(t,"click",i[13]),ne(e,"click",E)],v=!0)},p(V,I){i=V,P===(P=y(i,I))&&T?T.p(i,I):(T.d(1),T=P(i),T&&(T.c(),T.m(n,a)));const B={};I&1&&(B.node=i[7]),r.$set(B),(!m||I&1)&&g!==(g=i[11](i[7])+"")&&Ae(d,g),(!m||I&5&&h!==(h=i[2]?i[12](i[7]):void 0))&&f(t,"href",h),(!m||I&1&&b!==(b=oe.getTestId(i[7])))&&f(e,"data-testid",b)},i(V){m||(R(r.$$.fragment,V),m=!0)},o(V){U(r.$$.fragment,V),m=!1},d(V){V&&L(e),T.d(),Fe(r),v=!1,Ze(C)}}}function oC(i){let e,t,n;return{c(){e=S("img"),f(e,"class","sap-icon svelte-1811tf3"),Xe(e.src,t=i[7].icon)||f(e,"src",t),f(e,"alt",n=i[7].altText?i[7].altText:"")},m(l,a){A(l,e,a)},p(l,a){a&1&&!Xe(e.src,t=l[7].icon)&&f(e,"src",t),a&1&&n!==(n=l[7].altText?l[7].altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function uC(i){let e,t;return{c(){e=S("i"),f(e,"class",t="sap-icon "+i[10](i[7].icon))},m(n,l){A(n,e,l)},p(n,l){l&1&&t!==(t="sap-icon "+n[10](n[7].icon))&&f(e,"class",t)},d(n){n&&L(e)}}}function Th(i){let e,t,n=i[7].label&&Nh(i);return{c(){n&&n.c(),e=Ce()},m(l,a){n&&n.m(l,a),A(l,e,a),t=!0},p(l,a){l[7].label?n?(n.p(l,a),a&1&&R(n,1)):(n=Nh(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Ih(i){let e,t;return e=new op({props:{nodes:i[7].children,label:i[11](i[7]),hasOpenUIicon:i[9],getNodeLabel:i[11],getNodeSubtitle:i[8],noSubTitle:"true"}}),e.$on("click",i[5]),e.$on("listClick",i[4]),{c(){Ue(e.$$.fragment)},m(n,l){Oe(e,n,l),t=!0},p(n,l){const a={};l&128&&(a.nodes=n[7].children),l&128&&(a.label=n[11](n[7])),e.$set(a)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function fC(i){let e,t,n,l,a,r=!i[1]&&yh(i),o=i[1]&&Ih(i);return{c(){r&&r.c(),e=H(),o&&o.c(),t=Ce()},m(c,g){r&&r.m(c,g),A(c,e,g),o&&o.m(c,g),A(c,t,g),n=!0,l||(a=ne(sC,"resize",os),l=!0)},p(c,[g]){c[1]?r&&(ke(),U(r,1,1,()=>{r=null}),Se()):r?(r.p(c,g),g&2&&R(r,1)):(r=yh(c),r.c(),R(r,1),r.m(e.parentNode,e)),c[1]?o?(o.p(c,g),g&2&&R(o,1)):(o=Ih(c),o.c(),R(o,1),o.m(t.parentNode,t)):o&&(ke(),U(o,1,1,()=>{o=null}),Se())},i(c){n||(R(r),R(o),n=!0)},o(c){U(r),U(o),n=!1},d(c){r&&r.d(c),c&&L(e),o&&o.d(c),c&&L(t),l=!1,a()}}}function os(){let i=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${i}px`)}function cC(i,e,t){const n=Jt();let{isMobile:l}=e,{children:a}=e,{node:r}=e,o,c=vt("getUnsavedChangesModalPromise"),g=vt("openViewInModal"),{addNavHrefForAnchor:d}=e;const h=()=>{},p=()=>({get:()=>({pathParams:o}),set:I=>{}});xt(async()=>{os()}),Gn(async()=>{a||t(0,a=await Ot.getChildren(r)),t(0,a)});function b(I){c().then(()=>{if(I.openNodeInModal){const B=we.buildRoute(I,`/${I.pathSegment}`);g(B,I.openNodeInModal===!0?{}:I.openNodeInModal)}else lt.handleRouteClick(I,p())},()=>{}),v()}function m(I){b(I.detail)}function v(){n("close")}function C(I){return oe.isOpenUIiconName(I.icon)}function y(I){return oe.renderIconClassName(I)}function P(I){return St.getTranslation(I.label)}function T(I){return we.getNodeHref(I,o)}const E=I=>{oe.handleNavAnchorClickedWithoutMetaKey(I)},V=I=>b(I);return i.$$set=I=>{"isMobile"in I&&t(1,l=I.isMobile),"children"in I&&t(0,a=I.children),"node"in I&&t(7,r=I.node),"addNavHrefForAnchor"in I&&t(2,d=I.addNavHrefForAnchor)},[a,l,d,b,m,v,os,r,h,C,y,P,T,E,V]}class up extends Vt{constructor(e){super(),Dt(this,e,cC,fC,At,{isMobile:1,children:0,node:7,addNavHrefForAnchor:2,onActionClick:3,onActionClickExternal:4,closeSubNav:5,setViewportHeightVariable:6})}get onActionClick(){return this.$$.ctx[3]}get onActionClickExternal(){return this.$$.ctx[4]}get closeSubNav(){return this.$$.ctx[5]}get setViewportHeightVariable(){return os}}const vn={_fallbackLabels:new Map,resetFallbackLabelCache(){this._fallbackLabels.clear()},getPreparedParentNodePath(i){return(!i.parentNodePath||!i.parentNodePath.startsWith("/"))&&console.error("Luigi Config Error: navigation.contextSwitcher.parentNodePath must be defined as an absolute path."),i.parentNodePath?le.addTrailingSlash(i.parentNodePath):i.parentNodePath},generateSwitcherNav(i,e){const t=this.getPreparedParentNodePath(i);return e.map(n=>({label:n.label,link:(t||"/")+n.pathValue,id:n.pathValue,testId:n.testId,customRendererCategory:n.customRendererCategory}))},getNodePathFromCurrentPath(i,e){const t=le.addLeadingSlash(lt.getCurrentPath()),n=le.addLeadingSlash(e.link);return t.startsWith(n)?i.link+le.addLeadingSlash(t.substring(n.length)):i.link},getOptionById(i,e){return i.find(t=>t.id===e)},getLabelFromOptions(i,e){const t=i.find(n=>n.id===e);return t&&t.label},isContextSwitcherDetailsView(i,e){const t=le.normalizePath(i),n=le.normalizePath(e);return!!(e&&t&&typeof t=="string"&&t.startsWith(n)&&t!==n)},async getFallbackLabel(i,e){if(!i)return e;const t=re.getConfigBooleanValue("navigation.contextSwitcher.useFallbackLabelCache"),n=vn._fallbackLabels;if(t&&n.has(e))return n.get(e);const l=await i(e);return t&&n.set(e,l),l},getSelectedId(i,e,t){if(i=le.normalizePath(i),t=le.normalizePath(t),!!vn.isContextSwitcherDetailsView(i,t))return i.replace(t,"").split("/")[0].split("?")[0]},async getSelectedOption(i,e,t){let n;const l=this.getSelectedId(i,e,t);return l&&e&&(n=vn.getOptionById(e,l)),n},async getSelectedLabel(i,e,t,n){const l=this.getSelectedId(i,e,t);if(!l)return;const a=await this.getSelectedOption(i,e,t);return(a?a.label:void 0)||await vn.getFallbackLabel(n,l)},async getSelectedNode(i,e,t){if(!this.getSelectedId(i,e,t))return;let l=await this.getSelectedOption(i,e,t);return l?l.link:void 0},async fetchOptions(i=[]){const e=re.getConfigValue("navigation.contextSwitcher");if(!e.lazyloadOptions&&i.length)return i;const t=await re.getConfigValueAsync("navigation.contextSwitcher.options");return await vn.generateSwitcherNav(e,t)}};function Lh(i,e,t){const n=i.slice();return n[20]=e[t],n}function Ah(i,e,t){const n=i.slice();return n[20]=e[t],n}function Eh(i,e,t){const n=i.slice();return n[20]=e[t],n}function Rh(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Vh(Eh(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 svelte-3pems2")},m(l,a){A(l,e,a);for(let r=0;r<n.length;r+=1)n[r].m(e,null)},p(l,a){if(a&10497){t=l[0];let r;for(r=0;r<t.length;r+=1){const o=Eh(l,t,r);n[r]?n[r].p(o,a):(n[r]=Vh(o),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(l){l&&L(e),ct(n,l)}}}function Dh(i){let e,t,n,l=i[13](i[20].label)+"",a,r,o,c,g,d;function h(){return i[14](i[20])}return{c(){e=S("li"),t=S("a"),n=S("span"),a=Le(l),o=H(),f(n,"class","fd-menu__title"),f(t,"href",r=i[8](i[20])),f(t,"class","fd-menu__link"),f(e,"class","fd-menu__item"),f(e,"data-testid",c=oe.getTestId(i[20]))},m(p,b){A(p,e,b),w(e,t),w(t,n),w(n,a),w(e,o),g||(d=[ne(t,"click",Pt(bC)),ne(e,"click",h)],g=!0)},p(p,b){i=p,b&8193&&l!==(l=i[13](i[20].label)+"")&&Ae(a,l),b&257&&r!==(r=i[8](i[20]))&&f(t,"href",r),b&1&&c!==(c=oe.getTestId(i[20]))&&f(e,"data-testid",c)},d(p){p&&L(e),g=!1,Ze(d)}}}function Vh(i){let e=i[20].position==="top"||!["top","bottom"].includes(i[20].position),t,n=e&&Dh(i);return{c(){n&&n.c(),t=Ce()},m(l,a){n&&n.m(l,a),A(l,t,a)},p(l,a){a&1&&(e=l[20].position==="top"||!["top","bottom"].includes(l[20].position)),e?n?n.p(l,a):(n=Dh(l),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(l){n&&n.d(l),l&&L(t)}}}function Mh(i){let e;return{c(){e=S("li"),e.innerHTML=`<div class="fd-busy-indicator fd-busy-indicator--m" aria-hidden="false" aria-label="Loading" data-testid="luigi-loading-spinner"><div class="fd-busy-indicator__circle"></div>
|