@luigi-project/core 2.2.2-dev.202307191909 → 2.2.2-dev.202307191937
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
|
@@ -8,7 +8,7 @@ Static and dynamic nodes cannot be used together on the same level. Static node
|
|
|
8
8
|
Remove the static node from the configuration to resolve this warning.
|
|
9
9
|
Affected pathSegment:`,e,"Children:",t),t=t.filter(s=>s.pathSegment&&s.pathSegment.startsWith(":"))),r>1)?(console.error(`Invalid node setup detected.
|
|
10
10
|
Multiple dynamic nodes are not allowed on the same level. Stopped navigation.
|
|
11
|
-
Invalid Children:`,t),null):(t.some(s=>{if(s.pathSegment===e||s.pathSegment&&s.pathSegment.startsWith(":"))return n=s,!0}),n)}onNodeChange(e,t){const n=ie.getConfigValue("navigation.nodeChangeHook");typeof n=="function"?n(e,t):n!==void 0&&console.warn("nodeChangeHook is not a function!")}getNodesToDisplay(e,t){if(e&&e.length>0)return{children:e};if(t.length>2){const n=t[t.length-2];if(Vn.hasChildren(n))return{children:this.getChildrenFromCache(n),parent:n}}return{children:[]}}getGroupedChildren(e,t){const n=this.getNodesToDisplay(e,t.pathData);return Array.isArray(n)?ke.groupNodesBy(n,"category",!0):{children:ke.groupNodesBy(n.children,"category",!0),parent:n.parent}}getTruncatedChildren(e){let t=!1,n=[];return e.slice().reverse().forEach(l=>{(!t||l.tabNav)&&(l.keepSelectedForChildren===!1?t=!0:(l.keepSelectedForChildren||l.tabNav&&!be.isDynamicNode(l))&&(t=!0,n=[])),n.push(l)}),n.reverse()}async getLeftNavData(e,t){const n={};if(e.pathData&&1<e.pathData.length){const l=this.getTruncatedChildren(t.pathData);let r=[...l].pop(),s;(r.keepSelectedForChildren||r.tabNav)&&(s=r,l.pop(),r=[...l].pop());const o=await this.getChildren(r,t.context),c=this.getGroupedChildren(o,e);n.navParent=c.parent||r,n.context=e.pathData._context,n.hasCategoriesWithIcon=!1;const g=c.children;Object.values(g).forEach(_=>{!n.hasCategoriesWithIcon&&_&&_.metaInfo&&_.metaInfo.icon&&(n.hasCategoriesWithIcon=!0)}),n.selectedNode=s||r,n.children=g,ie.getConfigValue("settings.expandCategoryByNavigation")&&this.expandCategoriesByNavigationFn(n.children,n.selectedNode,ke.getSideNavAccordionMode(n.selectedNode))}return n}expandCategoriesByNavigationFn(e,t,n){if(e)for(const[l,r]of Object.entries(e))r.forEach(s=>{s===t&&r.metaInfo&&r.metaInfo.collapsible&&ke.storeExpandedState(r.metaInfo.categoryUid,!0,n)})}getTruncatedChildrenForTabNav(e){const t=[];for(let n=0;n<e.length;n++)if(t.push(e[n]),e[n].tabNav){n<e.length-1&&t.push(e[n+1]);break}return t}async getTabNavData(e,t){const n={};if(e.pathData&&1<e.pathData.length){let
|
|
11
|
+
Invalid Children:`,t),null):(t.some(s=>{if(s.pathSegment===e||s.pathSegment&&s.pathSegment.startsWith(":"))return n=s,!0}),n)}onNodeChange(e,t){const n=ie.getConfigValue("navigation.nodeChangeHook");typeof n=="function"?n(e,t):n!==void 0&&console.warn("nodeChangeHook is not a function!")}getNodesToDisplay(e,t){if(e&&e.length>0)return{children:e};if(t.length>2){const n=t[t.length-2];if(Vn.hasChildren(n))return{children:this.getChildrenFromCache(n),parent:n}}return{children:[]}}getGroupedChildren(e,t){const n=this.getNodesToDisplay(e,t.pathData);return Array.isArray(n)?ke.groupNodesBy(n,"category",!0):{children:ke.groupNodesBy(n.children,"category",!0),parent:n.parent}}getTruncatedChildren(e){let t=!1,n=[];return e.slice().reverse().forEach(l=>{(!t||l.tabNav)&&(l.keepSelectedForChildren===!1?t=!0:(l.keepSelectedForChildren||l.tabNav&&!be.isDynamicNode(l))&&(t=!0,n=[])),n.push(l)}),n.reverse()}async getLeftNavData(e,t){const n={};if(e.pathData&&1<e.pathData.length){const l=this.getTruncatedChildren(t.pathData);let r=[...l].pop(),s;(r.keepSelectedForChildren||r.tabNav)&&(s=r,l.pop(),r=[...l].pop());const o=await this.getChildren(r,t.context),c=this.getGroupedChildren(o,e);n.navParent=c.parent||r,n.context=e.pathData._context,n.hasCategoriesWithIcon=!1;const g=c.children;Object.values(g).forEach(_=>{!n.hasCategoriesWithIcon&&_&&_.metaInfo&&_.metaInfo.icon&&(n.hasCategoriesWithIcon=!0)}),n.selectedNode=s||r,n.children=g,ie.getConfigValue("settings.expandCategoryByNavigation")&&this.expandCategoriesByNavigationFn(n.children,n.selectedNode,ke.getSideNavAccordionMode(n.selectedNode))}return n}expandCategoriesByNavigationFn(e,t,n){if(e)for(const[l,r]of Object.entries(e))r.forEach(s=>{s===t&&r.metaInfo&&r.metaInfo.collapsible&&ke.storeExpandedState(r.metaInfo.categoryUid,!0,n)})}getTruncatedChildrenForTabNav(e){const t=[];for(let n=0;n<e.length;n++)if(t.push(e[n]),e[n].tabNav){n<e.length-1&&t.push(e[n+1]);break}return t}async getTabNavData(e,t){var l;const n={};if(e.pathData&&1<e.pathData.length){let s=[...this.getTruncatedChildrenForTabNav(t.pathData)].pop();const o=await this.getChildren(s.tabNav?s:s.parent,(l=e.pathData)==null?void 0:l._context),c=this.getGroupedChildren(o,e).children;n.selectedNode=s,n.selectedNodeForTabNav=s,n.children=c}return n}async extractDataFromPath(e){const t=await this.getNavigationPath(ie.getConfigValueAsync("navigation.nodes"),e);return{nodeObject:be.getLastNodeObject(t),pathData:t}}async shouldPreventNavigation(e){return!!(e&&ne.isFunction(e.onNodeActivation)&&await e.onNodeActivation(e)===!1)}}const Vt=new u2,ol={logout:{label:"Sign Out",icon:"log"},userSettingsProfileMenuEntry:{label:"Settings",icon:"settings"},userSettingsDialog:{dialogHeader:"User Settings",saveBtn:"Save",dismissBtn:"Cancel"},globalSearchCenteredCancelButton:"Cancel"},f2={externalLink:{sameWindow:!1}};class _r{constructor(e){e?(this.rendererObject=e,this.config=e.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(){return document.createElement("div")}attachCompoundItem(e,t){e.appendChild(t)}}class c2 extends _r{constructor(e){super(e||{use:{}}),e&&e.use&&e.use.extends&&(this.superRenderer=E_({use:e.use.extends,config:e.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(e){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(e,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(e):super.createCompoundItemContainer(e)}attachCompoundItem(e,t){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(e,t,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(e,t):super.attachCompoundItem(e,t)}}class d2 extends _r{createCompoundContainer(){const e="__lui_compound_"+new Date().getTime(),t=document.createElement("div");t.classList.add(e);let n="";return this.config.layouts&&this.config.layouts.forEach(l=>{if(l.minWidth||l.maxWidth){let r="@media only screen ";l.minWidth!=null&&(r+=`and (min-width: ${l.minWidth}px) `),l.maxWidth!=null&&(r+=`and (max-width: ${l.maxWidth}px) `),r+=`{
|
|
12
12
|
.${e} {
|
|
13
13
|
grid-template-columns: ${l.columns||"auto"};
|
|
14
14
|
grid-template-rows: ${l.rows||"auto"};
|
|
@@ -52,7 +52,7 @@ __p += '`),ut&&(ve+=`' +
|
|
|
52
52
|
function print() { __p += __j.call(arguments, '') }
|
|
53
53
|
`:`;
|
|
54
54
|
`)+ve+`return __p
|
|
55
|
-
}`;var nt=Hf(function(){return gt(M,We+"return "+ve).apply(t,W)});if(nt.source=ve,_o(nt))throw nt;return nt}function I0(a){return bt(a).toLowerCase()}function T0(a){return bt(a).toUpperCase()}function L0(a,u,d){if(a=bt(a),a&&(d||u===t))return Yo(a);if(!a||!(u=An(u)))return a;var b=Xn(a),P=Xn(u),M=Qo(b,P),W=Zo(b,P)+1;return nl(b,M,W).join("")}function A0(a,u,d){if(a=bt(a),a&&(d||u===t))return a.slice(0,$o(a)+1);if(!a||!(u=An(u)))return a;var b=Xn(a),P=Zo(b,Xn(u))+1;return nl(b,0,P).join("")}function E0(a,u,d){if(a=bt(a),a&&(d||u===t))return a.replace(ri,"");if(!a||!(u=An(u)))return a;var b=Xn(a),P=Qo(b,Xn(u));return nl(b,P).join("")}function R0(a,u){var d=z,b=ae;if(Ut(u)){var P="separator"in u?u.separator:P;d="length"in u?tt(u.length):d,b="omission"in u?An(u.omission):b}a=bt(a);var M=a.length;if(jl(a)){var W=Xn(a);M=W.length}if(d>=M)return a;var q=d-Yl(b);if(q<1)return b;var Q=W?nl(W,0,q).join(""):a.slice(0,q);if(P===t)return Q+b;if(W&&(q+=Q.length-q),po(P)){if(a.slice(q).search(P)){var ge,_e=Q;for(P.global||(P=Ea(P.source,bt(zi.exec(P))+"g")),P.lastIndex=0;ge=P.exec(_e);)var ve=ge.index;Q=Q.slice(0,ve===t?q:ve)}}else if(a.indexOf(An(P),q)!=q){var Re=Q.lastIndexOf(P);Re>-1&&(Q=Q.slice(0,Re))}return Q+b}function D0(a){return a=bt(a),a&&Hi.test(a)?a.replace(Zn,op):a}var V0=tr(function(a,u,d){return a+(d?" ":"")+u.toUpperCase()}),vo=Hu("toUpperCase");function Bf(a,u,d){return a=bt(a),u=d?t:u,u===t?ip(a)?cp(a):Y_(a):a.match(u)||[]}var Hf=lt(function(a,u){try{return Tn(a,t,u)}catch(d){return _o(d)?d:new Xe(d)}}),M0=Li(function(a,u){return Bn(u,function(d){d=fi(d),Ii(a,d,ho(a[d],a))}),a});function O0(a){var u=a==null?0:a.length,d=Ke();return a=u?Ot(a,function(b){if(typeof b[1]!="function")throw new Hn(s);return[d(b[0]),b[1]]}):[],lt(function(b){for(var P=-1;++P<u;){var M=a[P];if(Tn(M[0],this,b))return Tn(M[1],this,b)}})}function F0(a){return om(zn(a,_))}function wo(a){return function(){return a}}function U0(a,u){return a==null||a!==a?u:a}var B0=zu(),H0=zu(!0);function yn(a){return a}function So(a){return bu(typeof a=="function"?a:zn(a,_))}function W0(a){return wu(zn(a,_))}function z0(a,u){return Su(a,zn(u,_))}var G0=lt(function(a,u){return function(d){return Wr(d,a,u)}}),q0=lt(function(a,u){return function(d){return Wr(a,d,u)}});function ko(a,u,d){var b=tn(u),P=Ms(u,b);d==null&&!(Ut(u)&&(P.length||!b.length))&&(d=u,u=a,a=this,P=Ms(u,tn(u)));var M=!(Ut(d)&&"chain"in d)||!!d.chain,W=Ei(a);return Bn(P,function(q){var Q=u[q];a[q]=Q,W&&(a.prototype[q]=function(){var ge=this.__chain__;if(M||ge){var _e=a(this.__wrapped__),ve=_e.__actions__=Sn(this.__actions__);return ve.push({func:Q,args:arguments,thisArg:a}),_e.__chain__=ge,_e}return Q.apply(a,Zi([this.value()],arguments))})}),a}function K0(){return en._===this&&(en._=mp),this}function Co(){}function J0(a){return a=tt(a),lt(function(u){return ku(u,a)})}var j0=xa(Ot),Y0=xa(Go),Q0=xa(ya);function Wf(a){return so(a)?Pa(fi(a)):Pm(a)}function Z0(a){return function(u){return a==null?t:Ll(a,u)}}var X0=qu(),$0=qu(!0);function yo(){return[]}function Po(){return!1}function x0(){return{}}function ew(){return""}function tw(){return!0}function nw(a,u){if(a=tt(a),a<1||a>$)return[];var d=te,b=fn(a,te);u=Ke(u),a-=te;for(var P=Ta(b,u);++d<a;)u(d);return P}function iw(a){return xe(a)?Ot(a,fi):En(a)?[a]:Sn(af(bt(a)))}function lw(a){var u=++_p;return bt(a)+u}var rw=Ws(function(a,u){return a+u},0),sw=eo("ceil"),aw=Ws(function(a,u){return a/u},1),ow=eo("floor");function uw(a){return a&&a.length?Vs(a,yn,Ba):t}function fw(a,u){return a&&a.length?Vs(a,Ke(u,2),Ba):t}function cw(a){return Jo(a,yn)}function dw(a,u){return Jo(a,Ke(u,2))}function hw(a){return a&&a.length?Vs(a,yn,Ga):t}function gw(a,u){return a&&a.length?Vs(a,Ke(u,2),Ga):t}var _w=Ws(function(a,u){return a*u},1),pw=eo("round"),mw=Ws(function(a,u){return a-u},0);function bw(a){return a&&a.length?Ia(a,yn):0}function vw(a,u){return a&&a.length?Ia(a,Ke(u,2)):0}return R.after=Wb,R.ary=bf,R.assign=Tv,R.assignIn=Rf,R.assignInWith=ea,R.assignWith=Lv,R.at=Av,R.before=vf,R.bind=ho,R.bindAll=M0,R.bindKey=wf,R.castArray=xb,R.chain=_f,R.chunk=o1,R.compact=u1,R.concat=f1,R.cond=O0,R.conforms=F0,R.constant=wo,R.countBy=bb,R.create=Ev,R.curry=Sf,R.curryRight=kf,R.debounce=Cf,R.defaults=Rv,R.defaultsDeep=Dv,R.defer=zb,R.delay=Gb,R.difference=c1,R.differenceBy=d1,R.differenceWith=h1,R.drop=g1,R.dropRight=_1,R.dropRightWhile=p1,R.dropWhile=m1,R.fill=b1,R.filter=wb,R.flatMap=Cb,R.flatMapDeep=yb,R.flatMapDepth=Pb,R.flatten=cf,R.flattenDeep=v1,R.flattenDepth=w1,R.flip=qb,R.flow=B0,R.flowRight=H0,R.fromPairs=S1,R.functions=Hv,R.functionsIn=Wv,R.groupBy=Nb,R.initial=C1,R.intersection=y1,R.intersectionBy=P1,R.intersectionWith=N1,R.invert=Gv,R.invertBy=qv,R.invokeMap=Tb,R.iteratee=So,R.keyBy=Lb,R.keys=tn,R.keysIn=Cn,R.map=Ys,R.mapKeys=Jv,R.mapValues=jv,R.matches=W0,R.matchesProperty=z0,R.memoize=Zs,R.merge=Yv,R.mergeWith=Df,R.method=G0,R.methodOf=q0,R.mixin=ko,R.negate=Xs,R.nthArg=J0,R.omit=Qv,R.omitBy=Zv,R.once=Kb,R.orderBy=Ab,R.over=j0,R.overArgs=Jb,R.overEvery=Y0,R.overSome=Q0,R.partial=go,R.partialRight=yf,R.partition=Eb,R.pick=Xv,R.pickBy=Vf,R.property=Wf,R.propertyOf=Z0,R.pull=A1,R.pullAll=hf,R.pullAllBy=E1,R.pullAllWith=R1,R.pullAt=D1,R.range=X0,R.rangeRight=$0,R.rearg=jb,R.reject=Vb,R.remove=V1,R.rest=Yb,R.reverse=fo,R.sampleSize=Ob,R.set=xv,R.setWith=e0,R.shuffle=Fb,R.slice=M1,R.sortBy=Hb,R.sortedUniq=z1,R.sortedUniqBy=G1,R.split=C0,R.spread=Qb,R.tail=q1,R.take=K1,R.takeRight=J1,R.takeRightWhile=j1,R.takeWhile=Y1,R.tap=ub,R.throttle=Zb,R.thru=js,R.toArray=Lf,R.toPairs=Mf,R.toPairsIn=Of,R.toPath=iw,R.toPlainObject=Ef,R.transform=t0,R.unary=Xb,R.union=Q1,R.unionBy=Z1,R.unionWith=X1,R.uniq=$1,R.uniqBy=x1,R.uniqWith=eb,R.unset=n0,R.unzip=co,R.unzipWith=gf,R.update=i0,R.updateWith=l0,R.values=lr,R.valuesIn=r0,R.without=tb,R.words=Bf,R.wrap=$b,R.xor=nb,R.xorBy=ib,R.xorWith=lb,R.zip=rb,R.zipObject=sb,R.zipObjectDeep=ab,R.zipWith=ob,R.entries=Mf,R.entriesIn=Of,R.extend=Rf,R.extendWith=ea,ko(R,R),R.add=rw,R.attempt=Hf,R.camelCase=u0,R.capitalize=Ff,R.ceil=sw,R.clamp=s0,R.clone=ev,R.cloneDeep=nv,R.cloneDeepWith=iv,R.cloneWith=tv,R.conformsTo=lv,R.deburr=Uf,R.defaultTo=U0,R.divide=aw,R.endsWith=f0,R.eq=xn,R.escape=c0,R.escapeRegExp=d0,R.every=vb,R.find=Sb,R.findIndex=uf,R.findKey=Vv,R.findLast=kb,R.findLastIndex=ff,R.findLastKey=Mv,R.floor=ow,R.forEach=pf,R.forEachRight=mf,R.forIn=Ov,R.forInRight=Fv,R.forOwn=Uv,R.forOwnRight=Bv,R.get=mo,R.gt=rv,R.gte=sv,R.has=zv,R.hasIn=bo,R.head=df,R.identity=yn,R.includes=Ib,R.indexOf=k1,R.inRange=a0,R.invoke=Kv,R.isArguments=Rl,R.isArray=xe,R.isArrayBuffer=av,R.isArrayLike=kn,R.isArrayLikeObject=Kt,R.isBoolean=ov,R.isBuffer=il,R.isDate=uv,R.isElement=fv,R.isEmpty=cv,R.isEqual=dv,R.isEqualWith=hv,R.isError=_o,R.isFinite=gv,R.isFunction=Ei,R.isInteger=Pf,R.isLength=$s,R.isMap=Nf,R.isMatch=_v,R.isMatchWith=pv,R.isNaN=mv,R.isNative=bv,R.isNil=wv,R.isNull=vv,R.isNumber=If,R.isObject=Ut,R.isObjectLike=Wt,R.isPlainObject=jr,R.isRegExp=po,R.isSafeInteger=Sv,R.isSet=Tf,R.isString=xs,R.isSymbol=En,R.isTypedArray=ir,R.isUndefined=kv,R.isWeakMap=Cv,R.isWeakSet=yv,R.join=I1,R.kebabCase=h0,R.last=qn,R.lastIndexOf=T1,R.lowerCase=g0,R.lowerFirst=_0,R.lt=Pv,R.lte=Nv,R.max=uw,R.maxBy=fw,R.mean=cw,R.meanBy=dw,R.min=hw,R.minBy=gw,R.stubArray=yo,R.stubFalse=Po,R.stubObject=x0,R.stubString=ew,R.stubTrue=tw,R.multiply=_w,R.nth=L1,R.noConflict=K0,R.noop=Co,R.now=Qs,R.pad=p0,R.padEnd=m0,R.padStart=b0,R.parseInt=v0,R.random=o0,R.reduce=Rb,R.reduceRight=Db,R.repeat=w0,R.replace=S0,R.result=$v,R.round=pw,R.runInContext=Y,R.sample=Mb,R.size=Ub,R.snakeCase=k0,R.some=Bb,R.sortedIndex=O1,R.sortedIndexBy=F1,R.sortedIndexOf=U1,R.sortedLastIndex=B1,R.sortedLastIndexBy=H1,R.sortedLastIndexOf=W1,R.startCase=y0,R.startsWith=P0,R.subtract=mw,R.sum=bw,R.sumBy=vw,R.template=N0,R.times=nw,R.toFinite=Ri,R.toInteger=tt,R.toLength=Af,R.toLower=I0,R.toNumber=Kn,R.toSafeInteger=Iv,R.toString=bt,R.toUpper=T0,R.trim=L0,R.trimEnd=A0,R.trimStart=E0,R.truncate=R0,R.unescape=D0,R.uniqueId=lw,R.upperCase=V0,R.upperFirst=vo,R.each=pf,R.eachRight=mf,R.first=df,ko(R,function(){var a={};return oi(R,function(u,d){Ct.call(R.prototype,d)||(a[d]=u)}),a}(),{chain:!1}),R.VERSION=n,Bn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){R[a].placeholder=R}),Bn(["drop","take"],function(a,u){ot.prototype[a]=function(d){d=d===t?1:Xt(tt(d),0);var b=this.__filtered__&&!u?new ot(this):this.clone();return b.__filtered__?b.__takeCount__=fn(d,b.__takeCount__):b.__views__.push({size:fn(d,te),type:a+(b.__dir__<0?"Right":"")}),b},ot.prototype[a+"Right"]=function(d){return this.reverse()[a](d).reverse()}}),Bn(["filter","map","takeWhile"],function(a,u){var d=u+1,b=d==pe||d==H;ot.prototype[a]=function(P){var M=this.clone();return M.__iteratees__.push({iteratee:Ke(P,3),type:d}),M.__filtered__=M.__filtered__||b,M}}),Bn(["head","last"],function(a,u){var d="take"+(u?"Right":"");ot.prototype[a]=function(){return this[d](1).value()[0]}}),Bn(["initial","tail"],function(a,u){var d="drop"+(u?"":"Right");ot.prototype[a]=function(){return this.__filtered__?new ot(this):this[d](1)}}),ot.prototype.compact=function(){return this.filter(yn)},ot.prototype.find=function(a){return this.filter(a).head()},ot.prototype.findLast=function(a){return this.reverse().find(a)},ot.prototype.invokeMap=lt(function(a,u){return typeof a=="function"?new ot(this):this.map(function(d){return Wr(d,a,u)})}),ot.prototype.reject=function(a){return this.filter(Xs(Ke(a)))},ot.prototype.slice=function(a,u){a=tt(a);var d=this;return d.__filtered__&&(a>0||u<0)?new ot(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),u!==t&&(u=tt(u),d=u<0?d.dropRight(-u):d.take(u-a)),d)},ot.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},ot.prototype.toArray=function(){return this.take(te)},oi(ot.prototype,function(a,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),P=R[b?"take"+(u=="last"?"Right":""):u],M=b||/^find/.test(u);!P||(R.prototype[u]=function(){var W=this.__wrapped__,q=b?[1]:arguments,Q=W instanceof ot,ge=q[0],_e=Q||xe(W),ve=function(at){var ut=P.apply(R,Zi([at],q));return b&&Re?ut[0]:ut};_e&&d&&typeof ge=="function"&&ge.length!=1&&(Q=_e=!1);var Re=this.__chain__,We=!!this.__actions__.length,je=M&&!Re,nt=Q&&!We;if(!M&&_e){W=nt?W:new ot(this);var Ye=a.apply(W,q);return Ye.__actions__.push({func:js,args:[ve],thisArg:t}),new Wn(Ye,Re)}return je&&nt?a.apply(this,q):(Ye=this.thru(ve),je?b?Ye.value()[0]:Ye.value():Ye)})}),Bn(["pop","push","shift","sort","splice","unshift"],function(a){var u=vs[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",b=/^(?:pop|shift)$/.test(a);R.prototype[a]=function(){var P=arguments;if(b&&!this.__chain__){var M=this.value();return u.apply(xe(M)?M:[],P)}return this[d](function(W){return u.apply(xe(W)?W:[],P)})}}),oi(ot.prototype,function(a,u){var d=R[u];if(d){var b=d.name+"";Ct.call($l,b)||($l[b]=[]),$l[b].push({name:u,func:d})}}),$l[Hs(t,C).name]=[{name:"wrapper",func:t}],ot.prototype.clone=Dp,ot.prototype.reverse=Vp,ot.prototype.value=Mp,R.prototype.at=fb,R.prototype.chain=cb,R.prototype.commit=db,R.prototype.next=hb,R.prototype.plant=_b,R.prototype.reverse=pb,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=mb,R.prototype.first=R.prototype.head,Vr&&(R.prototype[Vr]=gb),R},Ql=dp();Ci?((Ci.exports=Ql)._=Ql,Cl._=Ql):en._=Ql}).call(Zr)})(Ml,Ml.exports);class g2{getNodePath(e,t){return e?be.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=ne.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 Vt.extractDataFromPath(e),{keepBrowserHistory:l=!0,navSync:r=!0,preventContextUpdate:s=!1}=t;if(await Vt.shouldPreventNavigation(n)||ne.trimLeadingSlash(this.getWindowPath())===ne.trimLeadingSlash(e))return;const c=ie.getConfigValue("routing.useHashRouting"),g=ie.getConfigValue("routing.preserveQueryParams");let h=new URL(location.href);e=g?be.composeSearchParamsToRoute(e):e,c&&(h.hash=e);const _=l?"pushState":"replaceState",p=ie.getConfigValue("routing.disableBrowserHistory")?"replaceState":_;window.history[p]({path:c?h.hash:e},"",c?h.hash:e);const m={detail:{preventContextUpdate:s,withoutSync:!r}},v=new CustomEvent("popstate",m);window.dispatchEvent(v)}getWindowPath(){return ie.getConfigValue("routing.useHashRouting")?ne.getPathWithoutHash(window.location.hash):window.location.pathname.concat(window.location.search)}buildFromRelativePath(e){let t=this.getWindowPath();if(e.parent&&e.parent.pathSegment){const n=ne.trimLeadingSlash(this.getNodePath(e.parent)).split("/"),l=ne.trimLeadingSlash(t).split("/");l.length>n.length&&(t=l.slice(0,n.length).join("/"))}return this.normalizePath(ne.addLeadingSlash(this.concatenatePath(t,e.link)))}getHashPath(e=window.location.hash){if(e&&/\?intent=/i.test(e)){const t=e.replace("#/#","#"),n=be.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=be.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=be.getIntentPath(e);if(t)return Luigi.getConfigValue("routing.replaceIntentRoute")&&history.replaceState(window.state,"",t),t}return ie.getConfigValue("routing.useHashRouting")?window.location.hash.replace("#",""):window.location.search?ne.trimLeadingSlash(window.location.pathname)+window.location.search:ne.trimLeadingSlash(window.location.pathname)}setFeatureToggle(e){const t=ie.getConfigValue("settings.featureToggles.queryStringParam");t&&typeof e=="string"&&be.setFeatureToggles(t,e)}shouldSkipRoutingForUrlPatterns(){const e=[/access_token=/,/id_token=/];return(ie.getConfigValue("routing.skipRoutingForUrlPatterns")||e).filter(n=>location.href.match(n)).length!==0}handleUnsavedChangesModal(e,t,n,l){const r=window.location.href,s=t.get().unsavedChanges.persistUrl;return s&&history.pushState(window.state,"",s),t.getUnsavedChangesModalPromise().then(()=>{this.resolveUnsavedChanges(e,t,n,l,r)},()=>{})}resolveUnsavedChanges(e,t,n,l,r){e&&(this.handleRouteChange(e,t,n,l),history.replaceState(window.state,"",r))}async shouldShowModalPathInUrl(){ie.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath()}async handleViewUrlMisconfigured(e,t,n,l,r){const{children:s,intendToHaveEmptyViewUrl:o,compound:c}=e,g=s&&Array.isArray(s)&&s.length>0||s||!1;if(!c&&t.trim()===""&&!g&&!o){if(console.warn("The intended target route can't be accessed since it has neither a viewUrl nor children. This is most likely a misconfiguration."),!(n&&(n.viewUrl||n.currentNode&&n.currentNode.compound))){const h=await Vt.getNavigationPath(ie.getConfigValueAsync("navigation.nodes"),"/"),_=await be.getDefaultChildNode(h);this.showPageNotFoundError(r,_,l),this.navigateTo(_)}return!0}return!1}async handlePageNotFound(e,t,n,l,r,s,o){if(!t&&!e.compound||e.tabNav&&e.tabNav.showAsTabHeader){const c=await be.getDefaultChildNode(n,async(g,h)=>await Vt.getChildren(g,h));if(n.isExistingRoute){const g=ne.getTrimmedUrl(l);this.navigateTo(`${g?`/${g}`:""}/${c}`,{keepBrowserHistory:!1}),r.set({navigationPath:[]})}else{if(c&&n.navigationPath.length>1)return this.showPageNotFoundError(r,ne.trimTrailingSlash(n.matchedPath)+"/"+c,s,!0),!0;const g=await Vt.getNavigationPath(ie.getConfigValueAsync("navigation.nodes"),"/"),h=await be.getDefaultChildNode(g);this.showPageNotFoundError(r,h,s,!1,o)}return!0}return n.isExistingRoute?!1:(this.showPageNotFoundError(r,n.matchedPath,s,!0),!0)}async handleRouteChange(e,t,n,l,r,s=!1){if(e.external){this.navigateToExternalLink({url:e.url,sameWindow:!e.openInNewTab});return}if(this.setFeatureToggle(e),!this.shouldSkipRoutingForUrlPatterns()){if(window.Luigi.preventLoadingModalData){window.Luigi.preventLoadingModalData=!1;return}try{if(t.shouldShowUnsavedChangesModal()){await this.handleUnsavedChangesModal(e,t,n,l);return}await this.shouldShowModalPathInUrl();const o=t.get();this.checkInvalidateCache(o,e);const c=e&&e.length?ne.getPathWithoutHash(e):"",{nodeObject:g,pathData:h}=await Vt.extractDataFromPath(e),_=g.viewUrl||"";if(await this.handleViewUrlMisconfigured(g,_,o,c,t)||await this.handlePageNotFound(g,_,h,e,t,c,l))return;const p=ie.getConfigBooleanValue("settings.hideNavigation"),m=be.parseParams(c.split("?")[1]),v=be.getNodeParams(m),S=be.findViewGroup(g),y=decodeURIComponent(c.split("?")[1]||""),C=h.navigationPath&&h.navigationPath.length>0?h.navigationPath[h.navigationPath.length-1]:null;let N=!1,I=C;for(;I;){if(I.tabNav===!0){N=!0;break}else if(I.tabNav===!1){N=!1;break}else if(ne.isObject(I.tabNav)){if(I.tabNav.showAsTabHeader){N=!0;break}if("hideTabNavAutomatically"in I.tabNav&&I.children)if(I.tabNav.hideTabNavAutomatically===!0&&I.children.length===1){N=!1;break}else{N=!0;break}else console.warn("tabNav:{hideTabNavAutomatically:true|false} is not configured correctly.")}I=I.parent}let D=C,L=g.hideSideNav;if(L===void 0)for(;D;){if(D.tabNav&&D.hideSideNav===!0){L=!0;break}if(D.hideSideNav===!1){L=!1;break}D=D.parent}const T=be.substituteDynamicParamsInObject(Object.assign({},h.context,C.context),h.pathParams);h.navigationPath._context=T;const V={hideNav:p,viewUrl:_,nodeParams:v,viewGroup:S,urlParamsRaw:y,currentNode:C,navigationPath:h.navigationPath,context:T,pathParams:h.pathParams,hideSideNav:L||!1,isolateView:g.isolateView||!1,tabNav:N};t.set(Object.assign({},V,{previousNodeValues:o?{viewUrl:o.viewUrl,isolateView:o.isolateView,viewGroup:o.viewGroup}:{}}));let O=document.getElementsByClassName("iframeContainer")[0];if(O&&(N?O.classList.add("iframeContainerTabNav"):O.classList.contains("iframeContainerTabNav")&&O.classList.remove("iframeContainerTabNav")),g.compound)Pn.switchActiveIframe(n,void 0,!1),O&&O.classList.add("lui-webComponent"),this.navigateWebComponentCompound(t,g);else if(g.webcomponent)Pn.switchActiveIframe(n,void 0,!1),O&&O.classList.add("lui-webComponent"),this.navigateWebComponent(t,g);else if(O&&O.classList.remove("lui-webComponent"),!s)if(!r)await Pn.navigateIframe(l,t,n);else{const U=t.get(),z=await t.prepareInternalData(l);Ie.sendMessageToIframe(l.iframe,{msg:"luigi.navigate",viewUrl:_,context:JSON.stringify(U.context),nodeParams:JSON.stringify(U.nodeParams),pathParams:JSON.stringify(U.pathParams),searchParams:JSON.stringify(be.prepareSearchParamsForClient(l.iframe.luigi.currentNode)),internal:JSON.stringify(z),withoutSync:!0})}Vt.onNodeChange(o.currentNode,C)}catch(o){console.info("Could not handle route change",o)}}}async handleBookmarkableModalPath(){const e=be.getModalPathFromPath();if(e){const t=be.getModalParamsFromPath(),{nodeObject:n}=await Vt.extractDataFromPath(e);A_.openAsModal(e,n.openNodeInModal||t)}}checkInvalidateCache(e,t){let n=t.split("/");if(e.navigationPath&&e.navigationPath.length>0){let l=e.navigationPath.slice(1),r=!0;for(let s=0;s<l.length;s++){let o=n.length>s?n[s]:void 0,c=l[s];if(o!==c.pathSegment||!r)if(be.isDynamicNode(c)){if(!r||o!==be.getDynamicNodeValue(c,e.pathParams)){Vn.deleteNodesRecursively(c);break}}else r=!1}}else Vn.deleteCache()}handleRouteClick(e,t){const n=be.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(ne.trimLeadingSlash(this.getWindowPath())===ne.trimLeadingSlash(n)){const r=Ie.getIframeContainer(),s=Pn.getActiveIframe(r);s&&s.vg&&Pn.canCache(s.vg)?(Pn.switchActiveIframe(Ie.getIframeContainer(),void 0,!1),setTimeout(()=>{Pn.switchActiveIframe(Ie.getIframeContainer(),s,!1),window.postMessage({msg:"refreshRoute"},"*")})):(s&&r.removeChild(s),window.postMessage({msg:"refreshRoute"},"*"))}else this.navigateTo(n)}async showPageNotFoundError(e,t,n,l=!1,r={}){const s=be.getPageNotFoundRedirectResult(n,l),o=s.path;if(o){s.keepURL?this.handleRouteChange(o,e,Ie.getIframeContainer(),r):this.navigateTo(o);return}be.showRouteNotFoundAlert(e,n,l),this.navigateTo(ne.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={...f2.externalLink,...(t==null?void 0:t.externalLink)||{}};l.url=be.calculateNodeHref(t,n),window.open(l.url,l.sameWindow?"_self":"_blank").focus()}else ne.isObject(e)&&window.open(e.url,e.sameWindow?"_self":"_blank").focus()}getGeneratedWCId(e){const{viewUrl:t,context:n}=e;if(t){const l=be.substituteViewUrl(t,{context:n});return e.webcomponent&&e.webcomponent.tagName?e.webcomponent.tagName:dr.generateWCId(l)}}navigateWebComponent(e,t){let n=document.querySelector(".wcContainer")._luigi_node;const l=this.getGeneratedWCId(t);if(t===n){const o=document.querySelector(l);o.context=t.context;return}const r=this.removeLastChildFromWCContainer();if(!r)return;const s=e.get();dr.renderWebComponent(s.viewUrl,r,s.context,t)}navigateWebComponentCompound(e,t){const n=document.querySelector(".wcContainer");if(!n)return;const l=e.get();if(n._luigi_node===t&&Ml.exports.isEqual(n._luigi_pathParams,l.pathParams))return;const{compound:r}=t;this.removeLastChildFromWCContainer(),r&&r.children&&(r.children=r.children.filter(s=>ke.checkVisibleForFeatureToggles(s))),dr.renderWebComponentCompound(t,n,l.context),n._luigi_pathParams=l.pathParams}removeLastChildFromWCContainer(){const e=document.querySelector(".wcContainer");if(!!e){for(;e.lastChild;)e.lastChild.remove();return e}}updateModalDataInUrl(e,t,n){let l=be.getHashQueryParamSeparator();const r=be.getQueryParams(),s=be.getModalViewParamName();r[s]=e,t&&Object.keys(t).length&&(r[`${s}Params`]=JSON.stringify(t));const o=new URL(location.href);if(ie.getConfigBooleanValue("routing.useHashRouting")){const g=location.hash.indexOf(l);g!==-1&&(o.hash=o.hash.slice(0,g)),o.hash=`${o.hash}${l}${be.encodeParams(r)}`}else o.search=`?${be.encodeParams(r)}`;n?history.pushState(window.state,"",o.href):history.replaceState(window.state,"",o.href)}appendModalDataToUrl(e,t){let n=be.getHashQueryParamSeparator();const l=be.getQueryParams(),r=be.getModalViewParamName(),s=l[r],o=new URL(location.href),c=ie.getConfigBooleanValue("routing.useHashRouting");let g=history.state,h,_;if(c){let[p,m]=o.hash.split("?");h=p,_=be.getURLWithoutModalData(m,r),_&&(h+="?"+_)}else h=o.pathname,_=be.getURLWithoutModalData(o.search,r),_&&(h+="?"+be.getURLWithoutModalData(o.search,r));if(g=be.handleHistoryState(g,h),s!==e){if(l[r]=e,t&&Object.keys(t).length&&(l[`${r}Params`]=JSON.stringify(t)),c){const p=location.hash.indexOf(n);p!==-1&&(o.hash=o.hash.slice(0,p)),o.hash=`${o.hash}${n}${be.encodeParams(l)}`}else o.search=`?${be.encodeParams(l)}`;history.pushState(g,"",o.href)}else{const p=new URL(o);if(c){let m=p.hash.split("?")[0];p.hash=m,_&&(p.hash+="?"+_)}else p.search=_;history.replaceState({},"",p.href),history.pushState(g,"",o.href)}}removeModalDataFromUrl(e){const t=be.getQueryParams(),n=be.getModalViewParamName();let l=new URL(location.href);if(ie.getConfigBooleanValue("routing.useHashRouting")){let s={};t[n]&&(s[n]=t[n]),t[`${n}Params`]&&(s[`${n}Params`]=t[`${n}Params`]);let o=be.encodeParams(s);l.hash.includes(`?${o}`)?l.hash=l.hash.replace(`?${o}`,""):l.hash.includes(`&${o}`)&&(l.hash=l.hash.replace(`&${o}`,""))}else{let s=new URLSearchParams(l.search.slice(1));s.delete(n),s.delete(`${n}Params`);let o="";Array.from(s.keys()).forEach(c=>{o+=(o===""?"?":"&")+c+"="+s.get(c)}),l.search=o}if(history.state&&history.state.modalHistoryLength>=0&&e){history.state.modalHistoryLength;const s=history.state.pathBeforeHistory;let o=!1;if(window.addEventListener("popstate",c=>{o?(history.replaceState({},"",s),history.pushState({},"",s),history.back()):(history.pushState({},"",s),history.back())},{once:!0}),history.state.historygap===history.length-history.state.modalHistoryLength)history.go(-history.state.modalHistoryLength);else if(history.state.modalHistoryLength>history.length){const c=history.length-1;o=!0,history.go(-c),window.Luigi.preventLoadingModalData=!0}else{const c=history.state.modalHistoryLength;history.go(-c)}}else history.pushState({},"",l.href)}}const et=new g2;class _2{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=be.substituteViewUrl(e,t));const l=Ie.createIframe(e,void 0,n.get().lastNode,"split-view",t);return document.querySelector(".iframeSplitViewCnt").appendChild(l),l}async prepareSplitViewData(e,t){const n=t&&t.length?ne.getPathWithoutHash(t):"",l=await Vt.getNavigationPath(ie.getConfigValueAsync("navigation.nodes"),t),r=be.parseParams(n.split("?")[1]),s=be.getNodeParams(r),o=be.getLastNodeObject(l),c=e.get().splitViewSettings;c.title||(c.title=o.label);const g=c.collapsed||!1;e.set({splitViewSettings:c,lastNode:o,pathData:l,nodeParams:s,collapsed:g,isDataPrepared:!0})}createAndSetView(e){const{nodeParams:t,lastNode:n,pathData:l}=e.get();if(n.webcomponent){dr.renderWebComponent(n.viewUrl,document.querySelector(".iframeSplitViewCnt"),l.context,n);const r={splitViewWC:document.querySelector(".iframeSplitViewCnt"),splitViewWCData:{...l,nodeParams:t}};e.set(r),e.dispatch("wcCreated",{...r,collapsed:!1});const s=document.querySelector(".wcContainer");if(s&&s.childElementCount){const o=document.getElementsByClassName("iframeContainer")[0];o&&o.classList.add("lui-webComponent")}}else{const s={splitViewIframe:this.setIframe(n.viewUrl,{context:l.context,pathParams:l.pathParams,nodeParams:t},e),splitViewIframeData:{...l,nodeParams:t}};e.set(s),e.dispatch("iframeCreated",{...s,collapsed:!1})}this.fixIOSscroll()}fixIOSscroll(){if(!(!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)))return;const t=document.querySelector(".iframeSplitViewCnt iframe");t&&t.addEventListener("load",()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="hidden",setTimeout(()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="auto"})})}calculateInitialValues(e,t){if(t){const n=e||40,l=parseInt(ne.computePxFromPercent(t,n)),r=e?100-e:60,s=parseInt(ne.computePxFromPercent(t,r));return{percent:n,bottom:l,top:s}}}calculateAndSetSplitViewValues(e,t){const n=parseInt(ne.computePxFromPercent(t.rightContentHeight,100-e))+ne.getShellbarHeight();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:ne.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,ne.getContentAreaHeight()),this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:l.collapsed}),e.set({mfSplitView:l,splitViewValues:this.splitViewValues})}close(e){e.get().splitViewIframe||e.get().splitViewWC?e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{e.get().mfSplitView&&(e.get().mfSplitView.displayed=!1,e.get().mfSplitView.collapsed=!1,e.set({mfSplitView:e.get().mfSplitView})),e.dispatch("statusChanged",{displayed:!1}),Ie.getIframeContainer().style.marginBottom="",rt.sendMessageToClients("close.ok")},()=>{}):e.get().mfSplitView.displayed&&(e.get().mfSplitView.displayed=!1,e.set({mfSplitView:e.get().mfSplitView}))}async expand(e){this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!1}),this.sendMessageToClients("expand.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!1}),this.getContainer().style.top=`${this.splitViewValues.top}px`,Ie.getIframeContainer().style.marginBottom=`${this.splitViewValues.bottom}px`,setTimeout(()=>{this.getDragger().style.top=`${this.splitViewValues.top}px`})}collapse(e){(e.get().splitViewIframe||e.get().splitViewWC)&&e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!0}),this.sendMessageToClients("collapse.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!0}),this.getContainer().style.top="",Ie.getIframeContainer().style.marginBottom=""},()=>{})}sendMessageToClients(e,t){Ie.sendMessageToVisibleIframes({msg:`luigi.navigation.splitview.${e}`,data:t})}}const rt=new _2;class p2{luigiAfterInit(){ie.getConfigBooleanValue("settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{es.hideAppLoadingIndicator()},0)}}const m2=new p2;class b2{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=ie.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 ti=new b2;class v2{constructor(){return this._userInfoStore=gr({}),this._loggedInStore=gr(!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=ie.getConfigValue("auth.use");if(!e)return Promise.resolve(!0);const t=ie.getConfigValue(`auth.${e}`),n=sl.parseUrlAuthErrors()||{};if(!!await sl.handleUrlAuthErrors(t,n.error,n.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(e,t),ne.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(r=>(this.idpProviderInstance=r,this.checkAuth(t))).catch(r=>{const s=`Error: ${r.message||r}`;console.error(s,r.message&&r),ie.setErrorMessage(s)}):this.checkAuth(t)}async checkAuth(e){const t=sl.getStoredAuthData();if(!t||!sl.isLoggedIn()){if(ie.getConfigValue("auth.disableAutoLogin"))return;let l=!0;return t&&(l=await hi.handleAuthEvent("onAuthExpired",e)),l?this.startAuthorization():void 0}this.idpProviderInstance.settings&&ne.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,t).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):ne.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(e).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(ll(this._userInfoStore))),ne.isFunction(ie.getConfigValue("auth.events.onAuthSuccessful"))&&ti.isNewlyAuthorized()&&await hi.handleAuthEvent("onAuthSuccessful",e,t),ti.removeNewlyAuthorized(),ne.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),ne.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(e=>{ti.setNewlyAuthorized(),e&&console.error(e)})}logout(){const e=sl.getStoredAuthData(),t=async l=>{await hi.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),ti.removeAuthData()},n=ie.getConfigValue(`auth.${ie.getConfigValue("auth.use")}.logoutFn`);ne.isFunction(n)?n(this.idpProviderInstance.settings,e,t):ne.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=ne.getConfigValueFromObject(t,"idpProvider");if(n){const r=await new n(t);return["login"].forEach(s=>{if(!ne.isFunction(r[s]))throw this.IdpProviderException(`${s} function does not exist in custom IDP Provider ${e}`)}),r}if(ne.isFunction(ie.getConfigValue("auth.events.onAuthConfigError")))await hi.handleAuthEvent("onAuthConfigError",{idpProviderName:e,type:"IdpProviderException"});else throw this.IdpProviderException(`IDP Provider ${e} does not exist.`)}unload(){this.idpProviderInstance&&ne.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}}const nn=new v2;class w2{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(ne.prependOrigin(e)),l=this.decorators.filter(r=>r.type==="queryString");for(let r=0;r<l.length;r++){const s=l[r];n.searchParams.has(s.key)&&n.searchParams.delete(s.key);const o=s.valueFn();n.searchParams.append(s.key,o)}return t&&(n.search=decodeURIComponent(n.search)),n.href}}const $r=new w2;class S2{getStoredAuthData(){return ti.getAuthData()}isLoggedIn(){const e=this.getStoredAuthData();return e&&(()=>e.accessTokenExpirationDate>Number(new Date))()}parseUrlAuthErrors(){const e=ne.getUrlParameter("error"),t=ne.getUrlParameter("errorDescription");if(e)return{error:e,errorDescription:t}}async handleUrlAuthErrors(e,t,n){return t?await hi.handleAuthEvent("onAuthError",e,{error:t,errorDescription:n},e.logoutUrl+"?post_logout_redirect_uri="+e.post_logout_redirect_uri+"&error="+t+"&errorDescription="+n):!0}}const sl=new S2;class k2{sanitizeHtml(e=""){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/javascript:/g,"")}restoreSanitizedBrs(e=""){return e.replace(/<br\/>/g,"<br>").replace(/<br \/>/g,"<br>").replace(/<br>/g,"<br>").replace(/<br >/g,"<br>")}restoreSanitizedElements(e=""){let t=e;const n=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let l=0;l<n.length;l++){const r=new RegExp(`<${n[l]}/>`,"g"),s=new RegExp(`<${n[l]} />`,"g"),o=new RegExp(`<${n[l]}>`,"g"),c=new RegExp(`<${n[l]} >`,"g"),g=new RegExp(`</${n[l]}[/]>`,"g"),h=new RegExp(`</${n[l]} [/]>`,"g"),_=new RegExp(`<[/]${n[l]}>`,"g"),p=new RegExp(`<[/]${n[l]} >`,"g");t=t.replace(r,`<${n[l]}>`).replace(s,`<${n[l]}>`).replace(o,`<${n[l]}>`).replace(c,`<${n[l]}>`).replace(g,`</${n[l]}>`).replace(h,`</${n[l]}>`).replace(_,`</${n[l]}>`).replace(p,`</${n[l]}>`)}return t}sanatizeHtmlExceptTextFormatting(e=""){return this.restoreSanitizedElements(this.sanitizeHtml(e))}sanitizeParam(e=""){return String(e).replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}escapeKeyForRegexp(e=""){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}processTextAndLinks(e="",t,n){let r={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(e)),links:[]};return t?Object.entries(t).reduce((s,[o,c])=>{const g=`_luigi_alert_${n}_link_${this.sanitizeParam(o)}`,h=this.restoreSanitizedBrs(this.sanitizeHtml(c.text)),_=`<a id="${g}">${h}</a>`,p=this.escapeKeyForRegexp(o),m=new RegExp(`({${p}})`,"g");return{sanitizedText:s.sanitizedText.replace(m,_),links:s.links.concat({elemId:g,url:c.url?encodeURI(this.sanitizeHtml(c.url)):void 0,dismissKey:c.dismissKey?encodeURI(this.sanitizeHtml(c.dismissKey)):void 0})}},r):r}}const pr=new k2;class C2{getRandomId(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]}isFunction(e){return e&&{}.toString.call(e)==="[object Function]"}isPromise(e){return e&&this.isFunction(e.then)}isString(e){return typeof e=="string"||e instanceof String}isIE(){const e=navigator.userAgent;return Boolean(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 r=t.split(".");for(;l&&n<r.length;)l=l[r[n++]];return l}canComponentHandleModal(e){return e&&typeof e.get=="function"}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}replaceVars(e,t,n,l=!0){let r=e;return t&&(l?r=Ml.exports.replace(r,/{([\s\S]+?)}/g,s=>{let o=s.slice(1,-1).trim();return o.indexOf(n)===0&&(o=o.substring(n.length)),Ml.exports.get(t,o,s)}):Object.entries(t).forEach(s=>{r=r.replace(new RegExp(this.escapeRegExp(n+s[0]),"g"),encodeURIComponent(s[1]))})),l&&(r=r.replace(new RegExp("\\{"+this.escapeRegExp(n)+"[^\\}]+\\}","g"),"")),r}getInnerHeight(){return ii.isCustomLuigiContainer()?ii.getLuigiContainer().clientHeight:window.innerHeight}getContentAreaHeight(){return this.getInnerHeight()-this.getShellbarHeight()}getShellbarHeight(){return(ii.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 r=t.filter(o=>l.includes(o)).length===0,s=t.filter(o=>o.endsWith("*")).map(o=>o.slice(0,-1)).filter(o=>l.startsWith(o)).length===0;r&&s&&(n[l]=e[l])}return n}semverCompare(e,t){const n=e.split("-")[0].split("."),l=t.split("-")[0].split(".");for(let r=0;r<3;r++){const s=Number(n[r]),o=Number(l[r]);if(s>o)return 1;if(o>s)return-1;if(!isNaN(s)&&isNaN(o))return 1;if(isNaN(s)&&!isNaN(o))return-1}return 0}requestExperimentalFeature(e,t){const n=Boolean(ie.getConfigValue("settings.experimental."+e));return t&&!n&&console.warn("Experimental feature not enabled: ",e),n}createRemotePromise(){let e,t;const n=new Promise(r=>{e=s=>{r(s||!0)},t=()=>{r(!1)}});let l=ie._remotePromises;return l||(l={counter:0,promises:[]},ie._remotePromises=l),n.id=l.counter++,l.promises[n.id]=n,n.doResolve=r=>{delete l.promises[n.id],e(r)},n.doReject=()=>{delete l.promises[n.id],t()},n}getRemotePromise(e){return ie._remotePromises?ie._remotePromises.promises[e]:void 0}isString(e){return typeof e=="string"||e instanceof String}}const ne=new C2;class y2{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=ne.getUrlWithoutHash(n.previousNodeValues.viewUrl),r=ne.getUrlWithoutHash(n.viewUrl),s=n.previousNodeValues.viewGroup,o=n.viewGroup;if(l===r&&!s&&!o)return!0}return!1}isSameViewGroup(e,t){if(e.iframe){const n=t.get(),l=ne.getUrlWithoutHash(n.previousNodeValues.viewUrl),r=ne.getUrlWithoutHash(n.viewUrl),s=this.getLocation(l),o=this.getLocation(r);if(s===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");return t.href=e,t.origin?t.origin:t.protocol&&t.host?`${t.protocol}//${t.host}`:window.location.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 zw.map(({type:e,selector:t})=>Array.from(document.querySelectorAll(t)).map(n=>({id:n.luigi.id,container:n,active:ne.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(ne.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){Ie.getMicrofrontendIframes().forEach(t=>this.sendMessageToIframe(t,e))}createIframe(e,t,n,l,r){const s=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],o=ie.getConfigValue("settings.customSandboxRules"),c=ie.getConfigValue("settings.allowRules"),g=o?[...new Set([...s,...o])]:s,h=document.createElement("iframe");h.src=$r.hasDecorators()?$r.applyDecorators(e,n?n.decodeViewUrl:void 0):e,c&&(c.forEach((p,m)=>{c[m]=p+(p.indexOf(";")!=-1?"":";")}),h.allow=c.join(" ")),h.sandbox=g.join(" "),h.luigi={viewUrl:e,currentNode:n,createdAt:new Date().getTime(),id:ne.getRandomId(),pathParams:r?r.pathParams:void 0},t&&(h.vg=t),n&&n.clientPermissions&&(h.luigi.clientPermissions=n.clientPermissions);const _=ie.getConfigValue("settings.iframeCreationInterceptor");if(ne.isFunction(_))try{_(h,t,n,l)}catch(p){console.error("Error applying iframe creation interceptor: ",p)}return h}isMessageSource(e,t){return t&&t.contentWindow===e.source}getValidMessageSource(e){const n=[...Ie.getMicrofrontendIframes(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(s=>this.isMessageSource(e,s));if(!n||!n.luigi||!n.luigi.viewUrl)return;const l=e.data.msg==="luigi.navigate.ok";if(l&&!n.luigi.nextViewUrl)return;const r=l?n.luigi.nextViewUrl:n.luigi.viewUrl;if(!!this.iframeIsSameDomain(r,e.origin))return n}getSpecialIframeMessageSource(e,t){return Ie.specialIframeTypes.filter(n=>Ie.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),r=n.getAttribute("tabindex");(r||r===0)&&l&&!n.hasAttribute("oldtab")&&n.setAttribute("oldtab",r),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:Fo.getActiveFeatureToggleList(),currentLocale:ht.getCurrentLocale(),currentTheme:Eo.getCurrentTheme()}}}const Ie=new y2;class P2{constructor(){this.EXP_CAT_KEY="luigi.preferences.navigation.expandedCategories",this.COL_NAV_KEY="luigi.preferences.navigation.collapsedNavigation",this.virtualGroupPrefix="___"}getProductSwitcherConfig(){const e=ie.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 ne.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=Fo.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(hi.isAuthorizationEnabled()){const r=sl.isLoggedIn(),s=e.anonymousAccess;if(r&&s==="exclusive"||!r&&s!=="exclusive"&&s!==!0)return!1}if(!this.checkVisibleForFeatureToggles(e))return!1;const l=ie.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=ie.getConfigValue("navigation.defaults.category");let r={},s=0,o=0;const c=g=>{g.sort((h,_)=>{const p=h.order||0,m=_.order||0;return p-m})};return e.forEach(g=>{let h,_;const p=g[t];ne.isObject(p)?(h=p.id?p.id:p.label,_=Object.assign({},p)):(h=p,n&&!p&&(h=this.virtualGroupPrefix+o),_={label:h,_fromString:!0});let m=r[h];m||(n&&p&&o++,(_.order===void 0||_.order===null||_.order==="")&&(_.order=h?s++:-1),m=[],r[h]=m),m.metaInfo||(m.metaInfo=_),ne.isObject(p)&&m.metaInfo._fromString&&(delete m.metaInfo._fromString,m.metaInfo={...m.metaInfo,...p}),ne.isObject(p)&&l&&(p.titleExpandButton?m.metaInfo.titleExpandButton=p.titleExpandButton:m.metaInfo.titleExpandButton=l.titleExpandButton,p.titleCollapseButton?m.metaInfo.titleCollapseButton=p.titleCollapseButton:m.metaInfo.titleCollapseButton=l.titleCollapseButton),!m.metaInfo.categoryUid&&h&&m.metaInfo.collapsible&&(m.metaInfo.categoryUid=g.parent?this.getNodePath(g.parent)+":"+h:h),g.hideFromNav||m.push(g)}),Object.keys(r).forEach(g=>{const h=r[g].metaInfo;h&&h.id&&(r[h.label]=r[h.id],delete r[h.id])}),Object.keys(r).forEach(g=>{c(r[g]),r[g].length===0&&delete r[g]}),r}generateTooltipText(e,t){let n=e.tooltipText;return n===void 0&&(n=ie.getConfigValue("navigation.defaults.tooltipText")),n===void 0?t:n===!1?"":ht.getTranslation(n)}async generateTopNavNodes(e){const t=await Vt.getFilteredChildren(e[0]);let n=null,l=0,r=0,s={};const o=[];let c=[];for(const h of t){e.forEach(m=>{!n&&m===h&&(n=h)}),h.hideFromNav||(l++,h.globalNav&&r++);let _;const p=!!h.badgeCounter;if(p&&(_=await h.badgeCounter.count()),h.category){const m=h.category.label||h.category;if(s[m]){if(s[m].icon||(s[m].icon=h.category.icon,s[m].altText=h.category.altText),p&&!s[m].badgeCounter)s[m].badgeCounter={label:"",count:()=>_};else if(p){const v=s[m].badgeCounter.count()+_;s[m].badgeCounter.count=()=>v}}else s[m]={isCat:!0,label:m,icon:h.category.icon,altText:h.category.altText,children:[],badgeCounter:p&&{label:"",count:()=>_}},o.push(s[m]);s[m].children.push(h)}else o.push(h);_&&c.push(_)}for(let h=0;h<o.length;h++)o[h].isCat&&(o[h].visibleChildren=await Vt.getChildren(o[h])||[]);const g={children:o,selectedNode:n,visibleNodeCount:l,globalNavNodeCount:r};if(c.length){const h=c.reduce((_,p)=>_+p);g.totalBadgeNode={badgeCounter:{count:()=>h,label:""}}}return g}getSideNavAccordionMode(e){let t=e&&e.sideNavAccordionMode||e&&e.parent&&e.parent.sideNavAccordionMode;return typeof t<"u"?t:ie.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(),r=e.split(":")[0];if(t)n&&(l=l.filter(s=>s.indexOf(r+":")===-1)),l.indexOf(e)<0&&l.push(e);else{let s=l.indexOf(e);s>=0&&l.splice(s,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||"/";et.navigateTo(t)}}getBurgerTooltipConfig(){const e=ie.getConfigValue("settings.burgerTooltip");if(ne.isObject(e)||e===!0){const t=e.navExpanded?ht.getTranslation(e.navExpanded):"Collapse navigation";return[e.navCollapsed?ht.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 Vt.extractDataFromPath(e);return!!await Vt.shouldPreventNavigation(t)}getPropertyChainValue(e,t,n){return!t||!e?n:Ml.exports.get(e,t,n)}substituteVars(e,t){const l=JSON.stringify(e).replace(/\$\{[a-zA-Z0-9$_.]+\}/g,r=>{const s=r.substr(2,r.length-3);return this.getPropertyChainValue(t,s)||r});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 r={...e.titleResolver};delete r._cache;const s=this.substituteVars(r,t),o=JSON.stringify(s);if(e.titleResolver._cache&&e.titleResolver._cache.key===o){n(e.titleResolver._cache.value);return}const c=s.request;this._fetch(c.url,{method:c.method,headers:c.headers,body:JSON.stringify(c.body)}).then(g=>{g.json().then(h=>{try{const _=this.processTitleData(h,s,e);e.titleResolver._cache={key:o,value:_},n(_)}catch(_){l(_)}})}).catch(g=>{l(g)})}).catch(n=>{Ml.exports.reject(n)})}handleNavAnchorClickedWithoutMetaKey(e){return e.ctrlKey||e.metaKey||e.shiftKey?(e.stopPropagation(),!1):(e.preventDefault(),!0)}getNodeLabel(e){let t=ht.getTranslation(e.label);const n=be.findViewGroup(e);if(n){const l=Pn.getViewGroupSettings(n)||{};let r={...l.customData||{},...l._liveCustomData||{}};t=ne.replaceVars(t,r,"viewGroupData.")}return t}}const ke=new P2;class N2{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 fa.getConfigValueFromObjectAsync(n,"children",e.context),r=l.find(s=>s.pathSegment===n.defaultChildNode);if(n.defaultChildNode&&r)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(r=>{const s=r.split("=");s&&s.length>0&&(t[decodeURIComponent(s[0])]=decodeURIComponent(s[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 r=l[0].substr(n.length);t[r]=l[1]}}),this.sanitizeParamsMap(t)}applyPathParams(e,t){let n=e;return t&&Object.entries(t).forEach(([l,r])=>{n=n.replace(new RegExp(":"+l,"g"),r)}),n}findViewGroup(e,t){if(e.viewGroup)return t&&t!==e?e.viewUrl&&t.viewUrl&&Ie.getLocation(e.viewUrl)===Ie.getLocation(t.viewUrl)?e.viewGroup:void 0:e.viewGroup;if(e.parent)return this.findViewGroup(e.parent,t||e)}getContentViewParamPrefix(){let e=ie.getConfigValue("routing.nodeParamPrefix");return e===!1?e="":e||(e=this.defaultContentViewParamPrefix),e}getModalViewParamName(){let e=ie.getConfigValue("routing.modalPathParam");return e||(e=this.defaultModalViewParamName),e}getHashQueryParamSeparator(){return this.defaultQueryParamSeparator}getQueryParam(e){return this.getQueryParams()[e]}getQueryParams(){return ie.getConfigBooleanValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()}getLocation(){return location}getLocationHashQueryParams(){const e=be.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return e!==-1?be.parseParams(be.getLocation().hash.slice(e+1)):{}}getLocationSearchQueryParams(){return be.getLocation().search?be.parseParams(be.getLocation().search.slice(1)):{}}composeSearchParamsToRoute(e){if(ie.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=ie.getConfigValue("routing.useHashRouting");Nn.addEventListener("message",n=>{if(n.data.msg==="refreshRoute"&&n.origin===window.origin){const l=t?et.getHashPath():et.getModifiedPathname();e(l)}}),Nn.addEventListener("popstate",n=>{const l=t?et.getHashPath(location.href):et.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 s=e.externalLink.url,o={context:be.substituteDynamicParamsInObject(this.getContext(e),t),pathParams:t,nodeParams:{}};return this.substituteViewUrl(s,o)}else if(e.link){const s=e.link.startsWith("/")?e.link:et.buildFromRelativePath(e);return l+s}const r=be.buildRoute(e,`/${e.pathSegment}`);return l+ne.replaceVars(r,t,":",!1)}calculateNodeHref(e,t){const n=be.getRouteLink(e,t,ie.getConfigValue("routing.useHashRouting")?"#":"");return this.getI18nViewUrl(n.url)||n}getNodeHref(e,t){if(ie.getConfigBooleanValue("navigation.addNavHrefs"))return this.calculateNodeHref(e,t)}substituteDynamicParamsInObject(e,t,n=":",l=!1){return Object.entries(e).map(([r,s])=>{const o=l?Object.keys(t).find(c=>s&&s.indexOf(n+c)>=0):Object.keys(t).find(c=>s===n+c);return[r,o?l?s.replace(n+o,t[o]):t[o]:s]}).reduce((r,[s,o])=>Object.assign(r,{[s]:o}),{})}mapPathToNode(e,t){if(!e||!t)return;const n=ne.trimLeadingSlash(e).split("/"),l=be.buildRoute(t,`/${t.pathSegment}`),r=ne.trimLeadingSlash(l).split("/");if(n.length<r.length)return;let s="";for(let o=0;o<r.length;o++){if(n[o]!==r[o]&&r[o].indexOf(":")!==0)return;s+="/"+n[o]}return s}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=ht.getCurrentLocale();return e&&e.includes(t)?e.replace(t,n):e}substituteViewUrl(e,t){const n="context.",l="nodeParams.",r="routing.queryParams";if(e=ne.replaceVars(e,t.pathParams,":",!1),e=ne.replaceVars(e,t.context,n),e=ne.replaceVars(e,t.nodeParams,l),e=this.getI18nViewUrl(e),e&&e.includes(r)){const s=e.split("?")[1];if(s){const o=s.split("=")[0];rl.getSearchParams()[o]?e=e.replace(`{${r}.${o}}`,rl.getSearchParams()[o]):e=e.replace(`?${o}={${r}.${o}}`,"")}}return e}sanitizeParamsMap(e){return Object.entries(e).reduce((t,n)=>(t[pr.sanitizeParam(n[0])]=pr.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 r=n.split(",");r.length>0&&r[0]!==""&&r.forEach(s=>Fo.setFeatureToggle(s,!0))}getIntentObject(e){const t=e.split("?intent=")[1];if(t){const n=t.split("?"),l=n[0].split("-"),r=Object.fromEntries(new URLSearchParams(n[1]).entries());return{semanticObject:l[0],action:l[1],params:r}}}getIntentPath(e){const t=ie.getConfigValue("navigation.intentMapping");if(t&&t.length>0){const n=e.replace(/\?intent=/i,"?intent="),l=this.getIntentObject(n);if(l){let r=t.find(o=>o.semanticObject===l.semanticObject&&o.action===l.action);if(!r)return!1;if(r.externalLink)return{...r.externalLink,external:!0};r=r.pathSegment;const s=Object.entries(l.params);if(s&&s.length>0){r=this.resolveDynamicIntentPath(r,l.params);let o=ie.getConfigValue("routing.nodeParamPrefix");o=o||"~",r=r.concat(`?${o}`),s.forEach(([c,g],h)=>{r+=`${h>0?"&"+o:""}${c}=${g}`})}return r}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,r]of Object.entries(t)){const s=new RegExp("/:"+l+"(/|$)","g");n=n.replace(s,`/${r}/`)}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 rl.getSearchParams()&&e.clientPermissions.urlParameters[n].read===!0&&(t[n]=rl.getSearchParams()[n])}),t}addSearchParamsFromClient(e,t,n){const l={...t};if(!!ne.isObject(l)&&e&&e.clientPermissions&&e.clientPermissions.urlParameters){const r={};Object.keys(e.clientPermissions.urlParameters).forEach(s=>{s in l&&e.clientPermissions.urlParameters[s].write===!0&&(r[s]=l[s],delete l[s])});for(const s in l)console.warn(`No permission to add the search param "${s}" to the url`);Object.keys(r).length>0&&rl.addSearchParams(r,n)}}hasIntent(e){return!!e&&e.toLowerCase().includes("#?intent=")}getPageNotFoundRedirectResult(e,t=!1){const n=ie.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:ht.getTranslation(n?"luigi.notExactTargetNode":"luigi.requestedRouteNotFound",{route:t}),type:"error",ttl:1};e.showAlert(l,!1)}modifySearchParams(e,t,n){for(const[l,r]of Object.entries(e)){const s=n?`${n}${l}`:l;t.set(s,r),r===void 0&&t.delete(s)}}addParamsOnHashRouting(e,t,n){let l=t;const[r,s]=l.split("?"),o=new URLSearchParams(s);return this.modifySearchParams(e,o,n),l=r,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 be=new N2;class I2{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(r=>{l=l+(l?".":"")+r,t.push(l)})}),[...new Set(t)]}doOnStoreChange(e,t,n=[]){e.subscribe(t),this.expandScope(n).forEach(l=>{e.subscribeToScope(t,l)})}}const on=new I2;class T2{constructor(){this.listeners=[],this.hashChangeWithoutSync=!1,window.onunload=()=>this.removeAllEventListeners()}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 Nn=new T2;class L2{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,r){try{this.checkInit(),this.checkStorageBrowserSupport();const s=this[l];if(typeof s!="function")throw l+" is not a supported operation for the storage";const o=s.bind(this,this.cleanHostname(t),r)();this.sendBackOperation(e,n,"OK",o)}catch(s){console.log(s),this.sendBackOperation(e,n,"ERROR",s)}}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 r={msg:"storage",data:{id:t,status:n,result:l}};Ie.getMicrofrontendsInDom().filter(s=>s.id===e).map(s=>s.container).map(s=>Ie.sendMessageToIframe(s,r))}}const A2=new L2;class E2{constructor(){}processUserSettingGroups(){const e=[],t=ie.getConfigValue("userSettings.userSettingGroups"),n=ie.getConfigValue("settings.userSettings.userSettingGroups"),l=t||n;if(ne.isObject(l)){for(const r in l){let s={};s[r]=l[r],e.push(s)}return e}return e}createIframe(e,t){const n=Ie.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 ur=new E2;class R2{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 Jf=new R2;function jf(i,e,t){const n=i.slice();return n[9]=e[t],n}function Yf(i){let e,t,n=(i[9].dataSanitized?i[9].settings.text:"")+"",l,r,s,o,c,g;function h(){return i[4](i[9])}return{c(){e=k("div"),t=k("p"),l=K(),r=k("button"),r.innerHTML='<i class="sap-icon sap-icon--decline"></i>',s=K(),f(t,"class","fd-message-strip__text svelte-1jc9s1u"),f(r,"class","fd-button fd-button--transparent fd-button--compact fd-message-strip__close"),f(r,"aria-label","Close"),f(r,"aria-controls","j2ALl423"),f(r,"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-1jc9s1u"),f(e,"role","alert"),f(e,"id","j2ALl423"),f(e,"data-testid","luigi-alert")},m(_,p){E(_,e,p),w(e,t),t.innerHTML=n,w(e,l),w(e,r),w(e,s),c||(g=le(r,"click",h),c=!0)},p(_,p){i=_,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-1jc9s1u")&&f(e,"class",o)},d(_){_&&A(e),c=!1,g()}}}function D2(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Yf(jf(i,t,l));return{c(){e=k("div");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-shell__overlay luigi-alert--overlay svelte-1jc9s1u"),f(e,"aria-hidden","false")},m(l,r){E(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null);i[5](e)},p(l,[r]){if(r&11){t=l[0];let s;for(s=0;s<t.length;s+=1){const o=jf(l,t,s);n[s]?n[s].p(o,r):(n[s]=Yf(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},i:Fe,o:Fe,d(l){l&&A(e),ct(n,l),i[5](null)}}}function V2(i,e,t){const n=Bt();let{alertQueue:l}=e,{alertTypeMap:r={info:"information",success:"success",warning:"warning",error:"error"}}=e,s;const o=dt("getUnsavedChangesModalPromise"),c=dt("handleNavigation");Mn(()=>{if(!l||!l.length){console.warn("There are no alerts to display");return}if(l.processed)return;const p=l.map(m=>{const{text:v,links:S,closeAfter:y}=m.settings,C=pr.processTextAndLinks(v,S,m.settings.id);if(setTimeout(()=>{C.links.forEach(N=>{g(N,m.settings.id)})}),m.settings.afterInit){const N=s;m.settings.afterInit({dismiss:()=>{N&&N.isConnected?n("alertDismiss",{id:m.settings.id}):console.debug("Alert already dismissed: ",N)},element:N})}return{settings:{...m.settings,text:C.sanitizedText},dataSanitized:!0}});p.processed=!0,t(0,l=p)}),jt(()=>{});function g(p,m){try{const v=document.getElementById(p.elemId);v.dismissListener&&v.removeEventListener("click",v.dismissListener);const S=y=>{if(p.url){const C=!p.url.startsWith("/");y.stopPropagation(),o().then(()=>{const N={params:{link:p.url,relative:C}};c(N)},()=>{})}else p.dismissKey&&n("alertDismiss",{id:m,dismissKey:p.dismissKey})};v.addEventListener("click",S),v.dismissListener=S}catch(v){console.error("Error on Alert::addClickListener",v)}}const h=p=>n("alertDismiss",{id:p.settings.id});function _(p){$e[p?"unshift":"push"](()=>{s=p,t(2,s)})}return i.$$set=p=>{"alertQueue"in p&&t(0,l=p.alertQueue),"alertTypeMap"in p&&t(1,r=p.alertTypeMap)},[l,r,s,n,h,_]}class M2 extends At{constructor(e){super(),Lt(this,e,V2,D2,Nt,{alertQueue:0,alertTypeMap:1})}}const Vl=38,Mi=40,_i=13,gi=27,ma=32,O2=36,F2=35;function Qf(i){let e,t;return{c(){e=k("i"),f(e,"class",t=jn(i[3](i[0].icon))+" svelte-1d21c96")},m(n,l){E(n,e,l)},p(n,l){l&1&&t!==(t=jn(n[3](n[0].icon))+" svelte-1d21c96")&&f(e,"class",t)},d(n){n&&A(e)}}}function Zf(i){let e,t,n=i[0].buttonConfirm+"",l,r,s;return{c(){e=k("div"),t=k("button"),l=ye(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){E(o,e,c),w(e,t),w(t,l),r||(s=le(t,"click",i[4]),r=!0)},p(o,c){c&1&&n!==(n=o[0].buttonConfirm+"")&&Ne(l,n)},d(o){o&&A(e),r=!1,s()}}}function U2(i){let e,t,n,l,r,s,o,c=i[0].header+"",g,h,_,p=i[0].body+"",m,v,S,y,C,N,I=i[0].buttonDismiss+"",D,L,T,V,O,U=i[0].type&&Qf(i),z=i[0].buttonConfirm!==!1&&Zf(i);return{c(){e=k("div"),t=k("section"),n=k("header"),l=k("div"),r=k("div"),U&&U.c(),s=K(),o=k("h2"),g=ye(c),h=K(),_=k("div"),m=K(),v=k("footer"),S=k("div"),z&&z.c(),y=K(),C=k("div"),N=k("button"),D=ye(I),f(o,"class","fd-title fd-title--h5"),f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(n,"class","fd-bar fd-bar--header fd-message-box__header"),f(_,"class","fd-message-box__body svelte-1d21c96"),f(N,"data-testid","luigi-modal-dismiss"),f(N,"class",L="fd-button "+(i[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button"),f(C,"class","fd-bar__element"),f(S,"class","fd-bar__right"),f(v,"class","fd-bar fd-bar--footer fd-message-box__footer"),f(t,"class","fd-message-box__content svelte-1d21c96"),f(e,"class",T="fd-message-box-docs-static fd-message-box fd-message-box--"+i[0].type+" fd-message-box--active svelte-1d21c96"),f(e,"data-testid","luigi-confirmation-modal")},m(ae,fe){E(ae,e,fe),w(e,t),w(t,n),w(n,l),w(l,r),U&&U.m(r,null),w(r,s),w(r,o),w(o,g),w(t,h),w(t,_),_.innerHTML=p,w(t,m),w(t,v),w(v,S),z&&z.m(S,null),w(S,y),w(S,C),w(C,N),w(N,D),V||(O=[le(window,"keydown",i[1]),le(N,"click",i[5])],V=!0)},p(ae,[fe]){ae[0].type?U?U.p(ae,fe):(U=Qf(ae),U.c(),U.m(r,s)):U&&(U.d(1),U=null),fe&1&&c!==(c=ae[0].header+"")&&Ne(g,c),fe&1&&p!==(p=ae[0].body+"")&&(_.innerHTML=p),ae[0].buttonConfirm!==!1?z?z.p(ae,fe):(z=Zf(ae),z.c(),z.m(S,y)):z&&(z.d(1),z=null),fe&1&&I!==(I=ae[0].buttonDismiss+"")&&Ne(D,I),fe&1&&L!==(L="fd-button "+(ae[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button")&&f(N,"class",L),fe&1&&T!==(T="fd-message-box-docs-static fd-message-box fd-message-box--"+ae[0].type+" fd-message-box--active svelte-1d21c96")&&f(e,"class",T)},i:Fe,o:Fe,d(ae){ae&&A(e),U&&U.d(),z&&z.d(),V=!1,Qe(O)}}}function B2(i,e,t){const n=Bt();let{settings:l}=e;const r={confirmation:"question-mark",information:"message-information",warning:"message-warning",error:"message-error",success:"message-success"};xr(()=>{Ie.enableA11YKeyboardBackdropExceptClassName(".fd-message-box-docs-static")}),jt(()=>{const h={icon:r[l.type],header:ht.getTranslation("luigi.confirmationModal.header"),body:ht.getTranslation("luigi.confirmationModal.body"),buttonDismiss:ht.getTranslation("luigi.button.dismiss"),buttonConfirm:ht.getTranslation("luigi.button.confirm")};t(0,l={...l,body:pr.sanatizeHtmlExceptTextFormatting(l.body)}),t(0,l=Object.assign(h,l)),Ie.disableA11YKeyboardExceptClassName(".fd-message-box-docs-static");const _=l.buttonConfirm?"confirm-button":"dismiss-button";try{document.querySelector(`.${_}`).focus()}catch{console.warn(`Couldn't focus ${_} in modal`)}});function s(h){return ke.renderIconClassName(h)}function o(h){h.keyCode===gi&&n("modalDismiss")}const c=()=>n("modalConfirm"),g=()=>n("modalDismiss");return i.$$set=h=>{"settings"in h&&t(0,l=h.settings)},[l,o,n,s,c,g]}class H2 extends At{constructor(e){super(),Lt(this,e,B2,U2,Nt,{settings:0,handleKeydown:1})}get handleKeydown(){return this.$$.ctx[1]}}function W2(i){let e,t,n;const l=i[5].default,r=s_(l,i,i[4],null);return{c(){e=k("div"),r&&r.c(),f(e,"class",t=i[0]+" "+(i[1]==="main"?"zIndexZero":"")+" svelte-f5j52v"),f(e,"aria-hidden","false")},m(s,o){E(s,e,o),r&&r.m(e,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&16)&&u_(r,l,s,s[4],n?o_(l,s[4],o,null):f_(s[4]),null),(!n||o&3&&t!==(t=s[0]+" "+(s[1]==="main"?"zIndexZero":"")+" svelte-f5j52v"))&&f(e,"class",t)},i(s){n||(F(r,s),n=!0)},o(s){G(r,s),n=!1},d(s){s&&A(e),r&&r.d(s)}}}function z2(i,e,t){let{$$slots:n={},$$scope:l}=e;const r=Bt();let{backdropClass:s=""}=e,{backdropActive:o=!1}=e,c=!1,g={},{area:h}=e,{disable:_}=e;const p=()=>{const v="lui-backdrop ";o?g.data&&g.data.heightCssClass?t(0,s=v+g.data.heightCssClass):t(0,s=v+"height-auto"):t(0,s="")},m=v=>{if(!h)return!0;const y=[...Ie.getMicrofrontendsInDom(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(C=>C.container&&C.container.contentWindow===v.source);return!(y&&h===y.type)};return jt(()=>{ie.getConfigValue("settings.backdropDisabled")||(p(),Nn.addEventListener("message",S=>{const y=Ie.getValidMessageSource(S);!y||_!==!0&&(S.data.msg==="luigi.add-backdrop"&&(t(2,o=m(S)),r("stateChanged",{backdropActive:!0}),Ie.disableA11yOfInactiveIframe(y)),S.data.msg==="luigi.remove-backdrop"&&(t(2,o=!1),r("stateChanged",{backdropActive:!1}),c&&Ie.enableA11yOfInactiveIframe()))}))}),Mn(()=>{o!==c&&(c=o,p())}),i.$$set=v=>{"backdropClass"in v&&t(0,s=v.backdropClass),"backdropActive"in v&&t(2,o=v.backdropActive),"area"in v&&t(1,h=v.area),"disable"in v&&t(3,_=v.disable),"$$scope"in v&&t(4,l=v.$$scope)},[s,h,o,_,l,n]}class ts extends At{constructor(e){super(),Lt(this,e,z2,W2,Nt,{backdropClass:0,backdropActive:2,area:1,disable:3})}}const{window:G2}=Fi;function Xf(i){let e,t,n,l,r,s,o,c,g,h,_,p;t=new ts({props:{disable:i[2]}});let m=i[0].title&&$f(i);return{c(){e=k("div"),qe(t.$$.fragment),n=K(),l=k("div"),r=k("div"),m&&m.c(),s=K(),o=k("div"),c=k("div"),g=k("button"),g.innerHTML='<i class="sap-icon sap-icon--decline"></i>',f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(g,"class","fd-button fd-button--transparent fd-button--compact"),f(g,"aria-label","close"),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-1n363mo")},m(v,S){E(v,e,S),ze(t,e,null),w(e,n),w(e,l),w(l,r),m&&m.m(r,null),w(e,s),w(e,o),w(o,c),w(c,g),h=!0,_||(p=le(g,"click",i[12]),_=!0)},p(v,S){const y={};S&4&&(y.disable=v[2]),t.$set(y),v[0].title?m?m.p(v,S):(m=$f(v),m.c(),m.m(r,null)):m&&(m.d(1),m=null)},i(v){h||(F(t.$$.fragment,v),h=!0)},o(v){G(t.$$.fragment,v),h=!1},d(v){v&&A(e),Ge(t),m&&m.d(),_=!1,p()}}}function $f(i){let e,t=i[0].title+"",n;return{c(){e=k("h2"),n=ye(t),f(e,"class","fd-title fd-title--h5"),f(e,"id","dialog-title-1")},m(l,r){E(l,e,r),w(e,n)},p(l,r){r&1&&t!==(t=l[0].title+"")&&Ne(n,t)},d(l){l&&A(e)}}}function xf(i){let e;const t=i[11].default,n=s_(t,i,i[10],null);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),e=!0},p(l,r){n&&n.p&&(!e||r&1024)&&u_(n,t,l,l[10],e?o_(t,l[10],r,null):f_(l[10]),null)},i(l){e||(F(n,l),e=!0)},o(l){G(n,l),e=!1},d(l){n&&n.d(l)}}}function ec(i){let e;return{c(){e=k("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>
|
|
55
|
+
}`;var nt=Hf(function(){return gt(M,We+"return "+ve).apply(t,W)});if(nt.source=ve,_o(nt))throw nt;return nt}function I0(a){return bt(a).toLowerCase()}function T0(a){return bt(a).toUpperCase()}function L0(a,u,d){if(a=bt(a),a&&(d||u===t))return Yo(a);if(!a||!(u=An(u)))return a;var b=Xn(a),P=Xn(u),M=Qo(b,P),W=Zo(b,P)+1;return nl(b,M,W).join("")}function A0(a,u,d){if(a=bt(a),a&&(d||u===t))return a.slice(0,$o(a)+1);if(!a||!(u=An(u)))return a;var b=Xn(a),P=Zo(b,Xn(u))+1;return nl(b,0,P).join("")}function E0(a,u,d){if(a=bt(a),a&&(d||u===t))return a.replace(ri,"");if(!a||!(u=An(u)))return a;var b=Xn(a),P=Qo(b,Xn(u));return nl(b,P).join("")}function R0(a,u){var d=z,b=ae;if(Ut(u)){var P="separator"in u?u.separator:P;d="length"in u?tt(u.length):d,b="omission"in u?An(u.omission):b}a=bt(a);var M=a.length;if(jl(a)){var W=Xn(a);M=W.length}if(d>=M)return a;var q=d-Yl(b);if(q<1)return b;var Q=W?nl(W,0,q).join(""):a.slice(0,q);if(P===t)return Q+b;if(W&&(q+=Q.length-q),po(P)){if(a.slice(q).search(P)){var ge,_e=Q;for(P.global||(P=Ea(P.source,bt(zi.exec(P))+"g")),P.lastIndex=0;ge=P.exec(_e);)var ve=ge.index;Q=Q.slice(0,ve===t?q:ve)}}else if(a.indexOf(An(P),q)!=q){var Re=Q.lastIndexOf(P);Re>-1&&(Q=Q.slice(0,Re))}return Q+b}function D0(a){return a=bt(a),a&&Hi.test(a)?a.replace(Zn,op):a}var V0=tr(function(a,u,d){return a+(d?" ":"")+u.toUpperCase()}),vo=Hu("toUpperCase");function Bf(a,u,d){return a=bt(a),u=d?t:u,u===t?ip(a)?cp(a):Y_(a):a.match(u)||[]}var Hf=lt(function(a,u){try{return Tn(a,t,u)}catch(d){return _o(d)?d:new Xe(d)}}),M0=Li(function(a,u){return Bn(u,function(d){d=fi(d),Ii(a,d,ho(a[d],a))}),a});function O0(a){var u=a==null?0:a.length,d=Ke();return a=u?Ot(a,function(b){if(typeof b[1]!="function")throw new Hn(s);return[d(b[0]),b[1]]}):[],lt(function(b){for(var P=-1;++P<u;){var M=a[P];if(Tn(M[0],this,b))return Tn(M[1],this,b)}})}function F0(a){return om(zn(a,_))}function wo(a){return function(){return a}}function U0(a,u){return a==null||a!==a?u:a}var B0=zu(),H0=zu(!0);function yn(a){return a}function So(a){return bu(typeof a=="function"?a:zn(a,_))}function W0(a){return wu(zn(a,_))}function z0(a,u){return Su(a,zn(u,_))}var G0=lt(function(a,u){return function(d){return Wr(d,a,u)}}),q0=lt(function(a,u){return function(d){return Wr(a,d,u)}});function ko(a,u,d){var b=tn(u),P=Ms(u,b);d==null&&!(Ut(u)&&(P.length||!b.length))&&(d=u,u=a,a=this,P=Ms(u,tn(u)));var M=!(Ut(d)&&"chain"in d)||!!d.chain,W=Ei(a);return Bn(P,function(q){var Q=u[q];a[q]=Q,W&&(a.prototype[q]=function(){var ge=this.__chain__;if(M||ge){var _e=a(this.__wrapped__),ve=_e.__actions__=Sn(this.__actions__);return ve.push({func:Q,args:arguments,thisArg:a}),_e.__chain__=ge,_e}return Q.apply(a,Zi([this.value()],arguments))})}),a}function K0(){return en._===this&&(en._=mp),this}function Co(){}function J0(a){return a=tt(a),lt(function(u){return ku(u,a)})}var j0=xa(Ot),Y0=xa(Go),Q0=xa(ya);function Wf(a){return so(a)?Pa(fi(a)):Pm(a)}function Z0(a){return function(u){return a==null?t:Ll(a,u)}}var X0=qu(),$0=qu(!0);function yo(){return[]}function Po(){return!1}function x0(){return{}}function ew(){return""}function tw(){return!0}function nw(a,u){if(a=tt(a),a<1||a>$)return[];var d=te,b=fn(a,te);u=Ke(u),a-=te;for(var P=Ta(b,u);++d<a;)u(d);return P}function iw(a){return xe(a)?Ot(a,fi):En(a)?[a]:Sn(af(bt(a)))}function lw(a){var u=++_p;return bt(a)+u}var rw=Ws(function(a,u){return a+u},0),sw=eo("ceil"),aw=Ws(function(a,u){return a/u},1),ow=eo("floor");function uw(a){return a&&a.length?Vs(a,yn,Ba):t}function fw(a,u){return a&&a.length?Vs(a,Ke(u,2),Ba):t}function cw(a){return Jo(a,yn)}function dw(a,u){return Jo(a,Ke(u,2))}function hw(a){return a&&a.length?Vs(a,yn,Ga):t}function gw(a,u){return a&&a.length?Vs(a,Ke(u,2),Ga):t}var _w=Ws(function(a,u){return a*u},1),pw=eo("round"),mw=Ws(function(a,u){return a-u},0);function bw(a){return a&&a.length?Ia(a,yn):0}function vw(a,u){return a&&a.length?Ia(a,Ke(u,2)):0}return R.after=Wb,R.ary=bf,R.assign=Tv,R.assignIn=Rf,R.assignInWith=ea,R.assignWith=Lv,R.at=Av,R.before=vf,R.bind=ho,R.bindAll=M0,R.bindKey=wf,R.castArray=xb,R.chain=_f,R.chunk=o1,R.compact=u1,R.concat=f1,R.cond=O0,R.conforms=F0,R.constant=wo,R.countBy=bb,R.create=Ev,R.curry=Sf,R.curryRight=kf,R.debounce=Cf,R.defaults=Rv,R.defaultsDeep=Dv,R.defer=zb,R.delay=Gb,R.difference=c1,R.differenceBy=d1,R.differenceWith=h1,R.drop=g1,R.dropRight=_1,R.dropRightWhile=p1,R.dropWhile=m1,R.fill=b1,R.filter=wb,R.flatMap=Cb,R.flatMapDeep=yb,R.flatMapDepth=Pb,R.flatten=cf,R.flattenDeep=v1,R.flattenDepth=w1,R.flip=qb,R.flow=B0,R.flowRight=H0,R.fromPairs=S1,R.functions=Hv,R.functionsIn=Wv,R.groupBy=Nb,R.initial=C1,R.intersection=y1,R.intersectionBy=P1,R.intersectionWith=N1,R.invert=Gv,R.invertBy=qv,R.invokeMap=Tb,R.iteratee=So,R.keyBy=Lb,R.keys=tn,R.keysIn=Cn,R.map=Ys,R.mapKeys=Jv,R.mapValues=jv,R.matches=W0,R.matchesProperty=z0,R.memoize=Zs,R.merge=Yv,R.mergeWith=Df,R.method=G0,R.methodOf=q0,R.mixin=ko,R.negate=Xs,R.nthArg=J0,R.omit=Qv,R.omitBy=Zv,R.once=Kb,R.orderBy=Ab,R.over=j0,R.overArgs=Jb,R.overEvery=Y0,R.overSome=Q0,R.partial=go,R.partialRight=yf,R.partition=Eb,R.pick=Xv,R.pickBy=Vf,R.property=Wf,R.propertyOf=Z0,R.pull=A1,R.pullAll=hf,R.pullAllBy=E1,R.pullAllWith=R1,R.pullAt=D1,R.range=X0,R.rangeRight=$0,R.rearg=jb,R.reject=Vb,R.remove=V1,R.rest=Yb,R.reverse=fo,R.sampleSize=Ob,R.set=xv,R.setWith=e0,R.shuffle=Fb,R.slice=M1,R.sortBy=Hb,R.sortedUniq=z1,R.sortedUniqBy=G1,R.split=C0,R.spread=Qb,R.tail=q1,R.take=K1,R.takeRight=J1,R.takeRightWhile=j1,R.takeWhile=Y1,R.tap=ub,R.throttle=Zb,R.thru=js,R.toArray=Lf,R.toPairs=Mf,R.toPairsIn=Of,R.toPath=iw,R.toPlainObject=Ef,R.transform=t0,R.unary=Xb,R.union=Q1,R.unionBy=Z1,R.unionWith=X1,R.uniq=$1,R.uniqBy=x1,R.uniqWith=eb,R.unset=n0,R.unzip=co,R.unzipWith=gf,R.update=i0,R.updateWith=l0,R.values=lr,R.valuesIn=r0,R.without=tb,R.words=Bf,R.wrap=$b,R.xor=nb,R.xorBy=ib,R.xorWith=lb,R.zip=rb,R.zipObject=sb,R.zipObjectDeep=ab,R.zipWith=ob,R.entries=Mf,R.entriesIn=Of,R.extend=Rf,R.extendWith=ea,ko(R,R),R.add=rw,R.attempt=Hf,R.camelCase=u0,R.capitalize=Ff,R.ceil=sw,R.clamp=s0,R.clone=ev,R.cloneDeep=nv,R.cloneDeepWith=iv,R.cloneWith=tv,R.conformsTo=lv,R.deburr=Uf,R.defaultTo=U0,R.divide=aw,R.endsWith=f0,R.eq=xn,R.escape=c0,R.escapeRegExp=d0,R.every=vb,R.find=Sb,R.findIndex=uf,R.findKey=Vv,R.findLast=kb,R.findLastIndex=ff,R.findLastKey=Mv,R.floor=ow,R.forEach=pf,R.forEachRight=mf,R.forIn=Ov,R.forInRight=Fv,R.forOwn=Uv,R.forOwnRight=Bv,R.get=mo,R.gt=rv,R.gte=sv,R.has=zv,R.hasIn=bo,R.head=df,R.identity=yn,R.includes=Ib,R.indexOf=k1,R.inRange=a0,R.invoke=Kv,R.isArguments=Rl,R.isArray=xe,R.isArrayBuffer=av,R.isArrayLike=kn,R.isArrayLikeObject=Kt,R.isBoolean=ov,R.isBuffer=il,R.isDate=uv,R.isElement=fv,R.isEmpty=cv,R.isEqual=dv,R.isEqualWith=hv,R.isError=_o,R.isFinite=gv,R.isFunction=Ei,R.isInteger=Pf,R.isLength=$s,R.isMap=Nf,R.isMatch=_v,R.isMatchWith=pv,R.isNaN=mv,R.isNative=bv,R.isNil=wv,R.isNull=vv,R.isNumber=If,R.isObject=Ut,R.isObjectLike=Wt,R.isPlainObject=jr,R.isRegExp=po,R.isSafeInteger=Sv,R.isSet=Tf,R.isString=xs,R.isSymbol=En,R.isTypedArray=ir,R.isUndefined=kv,R.isWeakMap=Cv,R.isWeakSet=yv,R.join=I1,R.kebabCase=h0,R.last=qn,R.lastIndexOf=T1,R.lowerCase=g0,R.lowerFirst=_0,R.lt=Pv,R.lte=Nv,R.max=uw,R.maxBy=fw,R.mean=cw,R.meanBy=dw,R.min=hw,R.minBy=gw,R.stubArray=yo,R.stubFalse=Po,R.stubObject=x0,R.stubString=ew,R.stubTrue=tw,R.multiply=_w,R.nth=L1,R.noConflict=K0,R.noop=Co,R.now=Qs,R.pad=p0,R.padEnd=m0,R.padStart=b0,R.parseInt=v0,R.random=o0,R.reduce=Rb,R.reduceRight=Db,R.repeat=w0,R.replace=S0,R.result=$v,R.round=pw,R.runInContext=Y,R.sample=Mb,R.size=Ub,R.snakeCase=k0,R.some=Bb,R.sortedIndex=O1,R.sortedIndexBy=F1,R.sortedIndexOf=U1,R.sortedLastIndex=B1,R.sortedLastIndexBy=H1,R.sortedLastIndexOf=W1,R.startCase=y0,R.startsWith=P0,R.subtract=mw,R.sum=bw,R.sumBy=vw,R.template=N0,R.times=nw,R.toFinite=Ri,R.toInteger=tt,R.toLength=Af,R.toLower=I0,R.toNumber=Kn,R.toSafeInteger=Iv,R.toString=bt,R.toUpper=T0,R.trim=L0,R.trimEnd=A0,R.trimStart=E0,R.truncate=R0,R.unescape=D0,R.uniqueId=lw,R.upperCase=V0,R.upperFirst=vo,R.each=pf,R.eachRight=mf,R.first=df,ko(R,function(){var a={};return oi(R,function(u,d){Ct.call(R.prototype,d)||(a[d]=u)}),a}(),{chain:!1}),R.VERSION=n,Bn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){R[a].placeholder=R}),Bn(["drop","take"],function(a,u){ot.prototype[a]=function(d){d=d===t?1:Xt(tt(d),0);var b=this.__filtered__&&!u?new ot(this):this.clone();return b.__filtered__?b.__takeCount__=fn(d,b.__takeCount__):b.__views__.push({size:fn(d,te),type:a+(b.__dir__<0?"Right":"")}),b},ot.prototype[a+"Right"]=function(d){return this.reverse()[a](d).reverse()}}),Bn(["filter","map","takeWhile"],function(a,u){var d=u+1,b=d==pe||d==H;ot.prototype[a]=function(P){var M=this.clone();return M.__iteratees__.push({iteratee:Ke(P,3),type:d}),M.__filtered__=M.__filtered__||b,M}}),Bn(["head","last"],function(a,u){var d="take"+(u?"Right":"");ot.prototype[a]=function(){return this[d](1).value()[0]}}),Bn(["initial","tail"],function(a,u){var d="drop"+(u?"":"Right");ot.prototype[a]=function(){return this.__filtered__?new ot(this):this[d](1)}}),ot.prototype.compact=function(){return this.filter(yn)},ot.prototype.find=function(a){return this.filter(a).head()},ot.prototype.findLast=function(a){return this.reverse().find(a)},ot.prototype.invokeMap=lt(function(a,u){return typeof a=="function"?new ot(this):this.map(function(d){return Wr(d,a,u)})}),ot.prototype.reject=function(a){return this.filter(Xs(Ke(a)))},ot.prototype.slice=function(a,u){a=tt(a);var d=this;return d.__filtered__&&(a>0||u<0)?new ot(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),u!==t&&(u=tt(u),d=u<0?d.dropRight(-u):d.take(u-a)),d)},ot.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},ot.prototype.toArray=function(){return this.take(te)},oi(ot.prototype,function(a,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),P=R[b?"take"+(u=="last"?"Right":""):u],M=b||/^find/.test(u);!P||(R.prototype[u]=function(){var W=this.__wrapped__,q=b?[1]:arguments,Q=W instanceof ot,ge=q[0],_e=Q||xe(W),ve=function(at){var ut=P.apply(R,Zi([at],q));return b&&Re?ut[0]:ut};_e&&d&&typeof ge=="function"&&ge.length!=1&&(Q=_e=!1);var Re=this.__chain__,We=!!this.__actions__.length,je=M&&!Re,nt=Q&&!We;if(!M&&_e){W=nt?W:new ot(this);var Ye=a.apply(W,q);return Ye.__actions__.push({func:js,args:[ve],thisArg:t}),new Wn(Ye,Re)}return je&&nt?a.apply(this,q):(Ye=this.thru(ve),je?b?Ye.value()[0]:Ye.value():Ye)})}),Bn(["pop","push","shift","sort","splice","unshift"],function(a){var u=vs[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",b=/^(?:pop|shift)$/.test(a);R.prototype[a]=function(){var P=arguments;if(b&&!this.__chain__){var M=this.value();return u.apply(xe(M)?M:[],P)}return this[d](function(W){return u.apply(xe(W)?W:[],P)})}}),oi(ot.prototype,function(a,u){var d=R[u];if(d){var b=d.name+"";Ct.call($l,b)||($l[b]=[]),$l[b].push({name:u,func:d})}}),$l[Hs(t,C).name]=[{name:"wrapper",func:t}],ot.prototype.clone=Dp,ot.prototype.reverse=Vp,ot.prototype.value=Mp,R.prototype.at=fb,R.prototype.chain=cb,R.prototype.commit=db,R.prototype.next=hb,R.prototype.plant=_b,R.prototype.reverse=pb,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=mb,R.prototype.first=R.prototype.head,Vr&&(R.prototype[Vr]=gb),R},Ql=dp();Ci?((Ci.exports=Ql)._=Ql,Cl._=Ql):en._=Ql}).call(Zr)})(Ml,Ml.exports);class g2{getNodePath(e,t){return e?be.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=ne.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 Vt.extractDataFromPath(e),{keepBrowserHistory:l=!0,navSync:r=!0,preventContextUpdate:s=!1}=t;if(await Vt.shouldPreventNavigation(n)||ne.trimLeadingSlash(this.getWindowPath())===ne.trimLeadingSlash(e))return;const c=ie.getConfigValue("routing.useHashRouting"),g=ie.getConfigValue("routing.preserveQueryParams");let h=new URL(location.href);e=g?be.composeSearchParamsToRoute(e):e,c&&(h.hash=e);const _=l?"pushState":"replaceState",p=ie.getConfigValue("routing.disableBrowserHistory")?"replaceState":_;window.history[p]({path:c?h.hash:e},"",c?h.hash:e);const m={detail:{preventContextUpdate:s,withoutSync:!r}},v=new CustomEvent("popstate",m);window.dispatchEvent(v)}getWindowPath(){return ie.getConfigValue("routing.useHashRouting")?ne.getPathWithoutHash(window.location.hash):window.location.pathname.concat(window.location.search)}buildFromRelativePath(e){let t=this.getWindowPath();if(e.parent&&e.parent.pathSegment){const n=ne.trimLeadingSlash(this.getNodePath(e.parent)).split("/"),l=ne.trimLeadingSlash(t).split("/");l.length>n.length&&(t=l.slice(0,n.length).join("/"))}return this.normalizePath(ne.addLeadingSlash(this.concatenatePath(t,e.link)))}getHashPath(e=window.location.hash){if(e&&/\?intent=/i.test(e)){const t=e.replace("#/#","#"),n=be.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=be.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=be.getIntentPath(e);if(t)return Luigi.getConfigValue("routing.replaceIntentRoute")&&history.replaceState(window.state,"",t),t}return ie.getConfigValue("routing.useHashRouting")?window.location.hash.replace("#",""):window.location.search?ne.trimLeadingSlash(window.location.pathname)+window.location.search:ne.trimLeadingSlash(window.location.pathname)}setFeatureToggle(e){const t=ie.getConfigValue("settings.featureToggles.queryStringParam");t&&typeof e=="string"&&be.setFeatureToggles(t,e)}shouldSkipRoutingForUrlPatterns(){const e=[/access_token=/,/id_token=/];return(ie.getConfigValue("routing.skipRoutingForUrlPatterns")||e).filter(n=>location.href.match(n)).length!==0}handleUnsavedChangesModal(e,t,n,l){const r=window.location.href,s=t.get().unsavedChanges.persistUrl;return s&&history.pushState(window.state,"",s),t.getUnsavedChangesModalPromise().then(()=>{this.resolveUnsavedChanges(e,t,n,l,r)},()=>{})}resolveUnsavedChanges(e,t,n,l,r){e&&(this.handleRouteChange(e,t,n,l),history.replaceState(window.state,"",r))}async shouldShowModalPathInUrl(){ie.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath()}async handleViewUrlMisconfigured(e,t,n,l,r){const{children:s,intendToHaveEmptyViewUrl:o,compound:c}=e,g=s&&Array.isArray(s)&&s.length>0||s||!1;if(!c&&t.trim()===""&&!g&&!o){if(console.warn("The intended target route can't be accessed since it has neither a viewUrl nor children. This is most likely a misconfiguration."),!(n&&(n.viewUrl||n.currentNode&&n.currentNode.compound))){const h=await Vt.getNavigationPath(ie.getConfigValueAsync("navigation.nodes"),"/"),_=await be.getDefaultChildNode(h);this.showPageNotFoundError(r,_,l),this.navigateTo(_)}return!0}return!1}async handlePageNotFound(e,t,n,l,r,s,o){if(!t&&!e.compound||e.tabNav&&e.tabNav.showAsTabHeader){const c=await be.getDefaultChildNode(n,async(g,h)=>await Vt.getChildren(g,h));if(n.isExistingRoute){const g=ne.getTrimmedUrl(l);this.navigateTo(`${g?`/${g}`:""}/${c}`,{keepBrowserHistory:!1}),r.set({navigationPath:[]})}else{if(c&&n.navigationPath.length>1)return this.showPageNotFoundError(r,ne.trimTrailingSlash(n.matchedPath)+"/"+c,s,!0),!0;const g=await Vt.getNavigationPath(ie.getConfigValueAsync("navigation.nodes"),"/"),h=await be.getDefaultChildNode(g);this.showPageNotFoundError(r,h,s,!1,o)}return!0}return n.isExistingRoute?!1:(this.showPageNotFoundError(r,n.matchedPath,s,!0),!0)}async handleRouteChange(e,t,n,l,r,s=!1){if(e.external){this.navigateToExternalLink({url:e.url,sameWindow:!e.openInNewTab});return}if(this.setFeatureToggle(e),!this.shouldSkipRoutingForUrlPatterns()){if(window.Luigi.preventLoadingModalData){window.Luigi.preventLoadingModalData=!1;return}try{if(t.shouldShowUnsavedChangesModal()){await this.handleUnsavedChangesModal(e,t,n,l);return}await this.shouldShowModalPathInUrl();const o=t.get();this.checkInvalidateCache(o,e);const c=e&&e.length?ne.getPathWithoutHash(e):"",{nodeObject:g,pathData:h}=await Vt.extractDataFromPath(e),_=g.viewUrl||"";if(await this.handleViewUrlMisconfigured(g,_,o,c,t)||await this.handlePageNotFound(g,_,h,e,t,c,l))return;const p=ie.getConfigBooleanValue("settings.hideNavigation"),m=be.parseParams(c.split("?")[1]),v=be.getNodeParams(m),S=be.findViewGroup(g),y=decodeURIComponent(c.split("?")[1]||""),C=h.navigationPath&&h.navigationPath.length>0?h.navigationPath[h.navigationPath.length-1]:null;let N=!1,I=C;for(;I;){if(I.tabNav===!0){N=!0;break}else if(I.tabNav===!1){N=!1;break}else if(ne.isObject(I.tabNav)){if(I.tabNav.showAsTabHeader){N=!0;break}if("hideTabNavAutomatically"in I.tabNav&&I.children)if(I.tabNav.hideTabNavAutomatically===!0&&I.children.length===1){N=!1;break}else{N=!0;break}else console.warn("tabNav:{hideTabNavAutomatically:true|false} is not configured correctly.")}I=I.parent}let D=C,L=g.hideSideNav;if(L===void 0)for(;D;){if(D.tabNav&&D.hideSideNav===!0){L=!0;break}if(D.hideSideNav===!1){L=!1;break}D=D.parent}const T=be.substituteDynamicParamsInObject(Object.assign({},h.context,C.context),h.pathParams);h.navigationPath._context=T;const V={hideNav:p,viewUrl:_,nodeParams:v,viewGroup:S,urlParamsRaw:y,currentNode:C,navigationPath:h.navigationPath,context:T,pathParams:h.pathParams,hideSideNav:L||!1,isolateView:g.isolateView||!1,tabNav:N};t.set(Object.assign({},V,{previousNodeValues:o?{viewUrl:o.viewUrl,isolateView:o.isolateView,viewGroup:o.viewGroup}:{}}));let O=document.getElementsByClassName("iframeContainer")[0];if(O&&(N?O.classList.add("iframeContainerTabNav"):O.classList.contains("iframeContainerTabNav")&&O.classList.remove("iframeContainerTabNav")),g.compound)Pn.switchActiveIframe(n,void 0,!1),O&&O.classList.add("lui-webComponent"),this.navigateWebComponentCompound(t,g);else if(g.webcomponent)Pn.switchActiveIframe(n,void 0,!1),O&&O.classList.add("lui-webComponent"),this.navigateWebComponent(t,g);else if(O&&(O.classList.remove("lui-webComponent"),this.removeLastChildFromWCContainer()),!s)if(!r)await Pn.navigateIframe(l,t,n);else{const U=t.get(),z=await t.prepareInternalData(l);Ie.sendMessageToIframe(l.iframe,{msg:"luigi.navigate",viewUrl:_,context:JSON.stringify(U.context),nodeParams:JSON.stringify(U.nodeParams),pathParams:JSON.stringify(U.pathParams),searchParams:JSON.stringify(be.prepareSearchParamsForClient(l.iframe.luigi.currentNode)),internal:JSON.stringify(z),withoutSync:!0})}Vt.onNodeChange(o.currentNode,C)}catch(o){console.info("Could not handle route change",o)}}}async handleBookmarkableModalPath(){const e=be.getModalPathFromPath();if(e){const t=be.getModalParamsFromPath(),{nodeObject:n}=await Vt.extractDataFromPath(e);A_.openAsModal(e,n.openNodeInModal||t)}}checkInvalidateCache(e,t){let n=t.split("/");if(e.navigationPath&&e.navigationPath.length>0){let l=e.navigationPath.slice(1),r=!0;for(let s=0;s<l.length;s++){let o=n.length>s?n[s]:void 0,c=l[s];if(o!==c.pathSegment||!r)if(be.isDynamicNode(c)){if(!r||o!==be.getDynamicNodeValue(c,e.pathParams)){Vn.deleteNodesRecursively(c);break}}else r=!1}}else Vn.deleteCache()}handleRouteClick(e,t){const n=be.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(ne.trimLeadingSlash(this.getWindowPath())===ne.trimLeadingSlash(n)){const r=Ie.getIframeContainer(),s=Pn.getActiveIframe(r);s&&s.vg&&Pn.canCache(s.vg)?(Pn.switchActiveIframe(Ie.getIframeContainer(),void 0,!1),setTimeout(()=>{Pn.switchActiveIframe(Ie.getIframeContainer(),s,!1),window.postMessage({msg:"refreshRoute"},"*")})):(s&&r.removeChild(s),window.postMessage({msg:"refreshRoute"},"*"))}else this.navigateTo(n)}async showPageNotFoundError(e,t,n,l=!1,r={}){const s=be.getPageNotFoundRedirectResult(n,l),o=s.path;if(o){s.keepURL?this.handleRouteChange(o,e,Ie.getIframeContainer(),r):this.navigateTo(o);return}be.showRouteNotFoundAlert(e,n,l),this.navigateTo(ne.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={...f2.externalLink,...(t==null?void 0:t.externalLink)||{}};l.url=be.calculateNodeHref(t,n),window.open(l.url,l.sameWindow?"_self":"_blank").focus()}else ne.isObject(e)&&window.open(e.url,e.sameWindow?"_self":"_blank").focus()}getGeneratedWCId(e){const{viewUrl:t,context:n}=e;if(t){const l=be.substituteViewUrl(t,{context:n});return e.webcomponent&&e.webcomponent.tagName?e.webcomponent.tagName:dr.generateWCId(l)}}navigateWebComponent(e,t){let n=document.querySelector(".wcContainer")._luigi_node;const l=this.getGeneratedWCId(t);if(t===n){const o=document.querySelector(l);o.context=t.context;return}const r=this.removeLastChildFromWCContainer();if(!r)return;const s=e.get();dr.renderWebComponent(s.viewUrl,r,s.context,t)}navigateWebComponentCompound(e,t){const n=document.querySelector(".wcContainer");if(!n)return;const l=e.get();if(n._luigi_node===t&&Ml.exports.isEqual(n._luigi_pathParams,l.pathParams))return;const{compound:r}=t;this.removeLastChildFromWCContainer(),r&&r.children&&(r.children=r.children.filter(s=>ke.checkVisibleForFeatureToggles(s))),dr.renderWebComponentCompound(t,n,l.context),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=be.getHashQueryParamSeparator();const r=be.getQueryParams(),s=be.getModalViewParamName();r[s]=e,t&&Object.keys(t).length&&(r[`${s}Params`]=JSON.stringify(t));const o=new URL(location.href);if(ie.getConfigBooleanValue("routing.useHashRouting")){const g=location.hash.indexOf(l);g!==-1&&(o.hash=o.hash.slice(0,g)),o.hash=`${o.hash}${l}${be.encodeParams(r)}`}else o.search=`?${be.encodeParams(r)}`;n?history.pushState(window.state,"",o.href):history.replaceState(window.state,"",o.href)}appendModalDataToUrl(e,t){let n=be.getHashQueryParamSeparator();const l=be.getQueryParams(),r=be.getModalViewParamName(),s=l[r],o=new URL(location.href),c=ie.getConfigBooleanValue("routing.useHashRouting");let g=history.state,h,_;if(c){let[p,m]=o.hash.split("?");h=p,_=be.getURLWithoutModalData(m,r),_&&(h+="?"+_)}else h=o.pathname,_=be.getURLWithoutModalData(o.search,r),_&&(h+="?"+be.getURLWithoutModalData(o.search,r));if(g=be.handleHistoryState(g,h),s!==e){if(l[r]=e,t&&Object.keys(t).length&&(l[`${r}Params`]=JSON.stringify(t)),c){const p=location.hash.indexOf(n);p!==-1&&(o.hash=o.hash.slice(0,p)),o.hash=`${o.hash}${n}${be.encodeParams(l)}`}else o.search=`?${be.encodeParams(l)}`;history.pushState(g,"",o.href)}else{const p=new URL(o);if(c){let m=p.hash.split("?")[0];p.hash=m,_&&(p.hash+="?"+_)}else p.search=_;history.replaceState({},"",p.href),history.pushState(g,"",o.href)}}removeModalDataFromUrl(e){const t=be.getQueryParams(),n=be.getModalViewParamName();let l=new URL(location.href);if(ie.getConfigBooleanValue("routing.useHashRouting")){let s={};t[n]&&(s[n]=t[n]),t[`${n}Params`]&&(s[`${n}Params`]=t[`${n}Params`]);let o=be.encodeParams(s);l.hash.includes(`?${o}`)?l.hash=l.hash.replace(`?${o}`,""):l.hash.includes(`&${o}`)&&(l.hash=l.hash.replace(`&${o}`,""))}else{let s=new URLSearchParams(l.search.slice(1));s.delete(n),s.delete(`${n}Params`);let o="";Array.from(s.keys()).forEach(c=>{o+=(o===""?"?":"&")+c+"="+s.get(c)}),l.search=o}if(history.state&&history.state.modalHistoryLength>=0&&e){history.state.modalHistoryLength;const s=history.state.pathBeforeHistory;let o=!1;if(window.addEventListener("popstate",c=>{o?(history.replaceState({},"",s),history.pushState({},"",s),history.back()):(history.pushState({},"",s),history.back())},{once:!0}),history.state.historygap===history.length-history.state.modalHistoryLength)history.go(-history.state.modalHistoryLength);else if(history.state.modalHistoryLength>history.length){const c=history.length-1;o=!0,history.go(-c),window.Luigi.preventLoadingModalData=!0}else{const c=history.state.modalHistoryLength;history.go(-c)}}else history.pushState({},"",l.href)}}const et=new g2;class _2{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=be.substituteViewUrl(e,t));const l=Ie.createIframe(e,void 0,n.get().lastNode,"split-view",t);return document.querySelector(".iframeSplitViewCnt").appendChild(l),l}async prepareSplitViewData(e,t){const n=t&&t.length?ne.getPathWithoutHash(t):"",l=await Vt.getNavigationPath(ie.getConfigValueAsync("navigation.nodes"),t),r=be.parseParams(n.split("?")[1]),s=be.getNodeParams(r),o=be.getLastNodeObject(l),c=e.get().splitViewSettings;c.title||(c.title=o.label);const g=c.collapsed||!1;e.set({splitViewSettings:c,lastNode:o,pathData:l,nodeParams:s,collapsed:g,isDataPrepared:!0})}createAndSetView(e){const{nodeParams:t,lastNode:n,pathData:l}=e.get();if(n.webcomponent){dr.renderWebComponent(n.viewUrl,document.querySelector(".iframeSplitViewCnt"),l.context,n);const r={splitViewWC:document.querySelector(".iframeSplitViewCnt"),splitViewWCData:{...l,nodeParams:t}};e.set(r),e.dispatch("wcCreated",{...r,collapsed:!1});const s=document.querySelector(".wcContainer");if(s&&s.childElementCount){const o=document.getElementsByClassName("iframeContainer")[0];o&&o.classList.add("lui-webComponent")}}else{const s={splitViewIframe:this.setIframe(n.viewUrl,{context:l.context,pathParams:l.pathParams,nodeParams:t},e),splitViewIframeData:{...l,nodeParams:t}};e.set(s),e.dispatch("iframeCreated",{...s,collapsed:!1})}this.fixIOSscroll()}fixIOSscroll(){if(!(!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)))return;const t=document.querySelector(".iframeSplitViewCnt iframe");t&&t.addEventListener("load",()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="hidden",setTimeout(()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="auto"})})}calculateInitialValues(e,t){if(t){const n=e||40,l=parseInt(ne.computePxFromPercent(t,n)),r=e?100-e:60,s=parseInt(ne.computePxFromPercent(t,r));return{percent:n,bottom:l,top:s}}}calculateAndSetSplitViewValues(e,t){const n=parseInt(ne.computePxFromPercent(t.rightContentHeight,100-e))+ne.getShellbarHeight();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:ne.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,ne.getContentAreaHeight()),this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:l.collapsed}),e.set({mfSplitView:l,splitViewValues:this.splitViewValues})}close(e){e.get().splitViewIframe||e.get().splitViewWC?e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{e.get().mfSplitView&&(e.get().mfSplitView.displayed=!1,e.get().mfSplitView.collapsed=!1,e.set({mfSplitView:e.get().mfSplitView})),e.dispatch("statusChanged",{displayed:!1}),Ie.getIframeContainer().style.marginBottom="",rt.sendMessageToClients("close.ok")},()=>{}):e.get().mfSplitView.displayed&&(e.get().mfSplitView.displayed=!1,e.set({mfSplitView:e.get().mfSplitView}))}async expand(e){this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!1}),this.sendMessageToClients("expand.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!1}),this.getContainer().style.top=`${this.splitViewValues.top}px`,Ie.getIframeContainer().style.marginBottom=`${this.splitViewValues.bottom}px`,setTimeout(()=>{this.getDragger().style.top=`${this.splitViewValues.top}px`})}collapse(e){(e.get().splitViewIframe||e.get().splitViewWC)&&e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!0}),this.sendMessageToClients("collapse.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!0}),this.getContainer().style.top="",Ie.getIframeContainer().style.marginBottom=""},()=>{})}sendMessageToClients(e,t){Ie.sendMessageToVisibleIframes({msg:`luigi.navigation.splitview.${e}`,data:t})}}const rt=new _2;class p2{luigiAfterInit(){ie.getConfigBooleanValue("settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{es.hideAppLoadingIndicator()},0)}}const m2=new p2;class b2{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=ie.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 ti=new b2;class v2{constructor(){return this._userInfoStore=gr({}),this._loggedInStore=gr(!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=ie.getConfigValue("auth.use");if(!e)return Promise.resolve(!0);const t=ie.getConfigValue(`auth.${e}`),n=sl.parseUrlAuthErrors()||{};if(!!await sl.handleUrlAuthErrors(t,n.error,n.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(e,t),ne.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(r=>(this.idpProviderInstance=r,this.checkAuth(t))).catch(r=>{const s=`Error: ${r.message||r}`;console.error(s,r.message&&r),ie.setErrorMessage(s)}):this.checkAuth(t)}async checkAuth(e){const t=sl.getStoredAuthData();if(!t||!sl.isLoggedIn()){if(ie.getConfigValue("auth.disableAutoLogin"))return;let l=!0;return t&&(l=await hi.handleAuthEvent("onAuthExpired",e)),l?this.startAuthorization():void 0}this.idpProviderInstance.settings&&ne.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,t).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):ne.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(e).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(ll(this._userInfoStore))),ne.isFunction(ie.getConfigValue("auth.events.onAuthSuccessful"))&&ti.isNewlyAuthorized()&&await hi.handleAuthEvent("onAuthSuccessful",e,t),ti.removeNewlyAuthorized(),ne.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),ne.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(e=>{ti.setNewlyAuthorized(),e&&console.error(e)})}logout(){const e=sl.getStoredAuthData(),t=async l=>{await hi.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),ti.removeAuthData()},n=ie.getConfigValue(`auth.${ie.getConfigValue("auth.use")}.logoutFn`);ne.isFunction(n)?n(this.idpProviderInstance.settings,e,t):ne.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=ne.getConfigValueFromObject(t,"idpProvider");if(n){const r=await new n(t);return["login"].forEach(s=>{if(!ne.isFunction(r[s]))throw this.IdpProviderException(`${s} function does not exist in custom IDP Provider ${e}`)}),r}if(ne.isFunction(ie.getConfigValue("auth.events.onAuthConfigError")))await hi.handleAuthEvent("onAuthConfigError",{idpProviderName:e,type:"IdpProviderException"});else throw this.IdpProviderException(`IDP Provider ${e} does not exist.`)}unload(){this.idpProviderInstance&&ne.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}}const nn=new v2;class w2{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(ne.prependOrigin(e)),l=this.decorators.filter(r=>r.type==="queryString");for(let r=0;r<l.length;r++){const s=l[r];n.searchParams.has(s.key)&&n.searchParams.delete(s.key);const o=s.valueFn();n.searchParams.append(s.key,o)}return t&&(n.search=decodeURIComponent(n.search)),n.href}}const $r=new w2;class S2{getStoredAuthData(){return ti.getAuthData()}isLoggedIn(){const e=this.getStoredAuthData();return e&&(()=>e.accessTokenExpirationDate>Number(new Date))()}parseUrlAuthErrors(){const e=ne.getUrlParameter("error"),t=ne.getUrlParameter("errorDescription");if(e)return{error:e,errorDescription:t}}async handleUrlAuthErrors(e,t,n){return t?await hi.handleAuthEvent("onAuthError",e,{error:t,errorDescription:n},e.logoutUrl+"?post_logout_redirect_uri="+e.post_logout_redirect_uri+"&error="+t+"&errorDescription="+n):!0}}const sl=new S2;class k2{sanitizeHtml(e=""){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/javascript:/g,"")}restoreSanitizedBrs(e=""){return e.replace(/<br\/>/g,"<br>").replace(/<br \/>/g,"<br>").replace(/<br>/g,"<br>").replace(/<br >/g,"<br>")}restoreSanitizedElements(e=""){let t=e;const n=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let l=0;l<n.length;l++){const r=new RegExp(`<${n[l]}/>`,"g"),s=new RegExp(`<${n[l]} />`,"g"),o=new RegExp(`<${n[l]}>`,"g"),c=new RegExp(`<${n[l]} >`,"g"),g=new RegExp(`</${n[l]}[/]>`,"g"),h=new RegExp(`</${n[l]} [/]>`,"g"),_=new RegExp(`<[/]${n[l]}>`,"g"),p=new RegExp(`<[/]${n[l]} >`,"g");t=t.replace(r,`<${n[l]}>`).replace(s,`<${n[l]}>`).replace(o,`<${n[l]}>`).replace(c,`<${n[l]}>`).replace(g,`</${n[l]}>`).replace(h,`</${n[l]}>`).replace(_,`</${n[l]}>`).replace(p,`</${n[l]}>`)}return t}sanatizeHtmlExceptTextFormatting(e=""){return this.restoreSanitizedElements(this.sanitizeHtml(e))}sanitizeParam(e=""){return String(e).replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}escapeKeyForRegexp(e=""){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}processTextAndLinks(e="",t,n){let r={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(e)),links:[]};return t?Object.entries(t).reduce((s,[o,c])=>{const g=`_luigi_alert_${n}_link_${this.sanitizeParam(o)}`,h=this.restoreSanitizedBrs(this.sanitizeHtml(c.text)),_=`<a id="${g}">${h}</a>`,p=this.escapeKeyForRegexp(o),m=new RegExp(`({${p}})`,"g");return{sanitizedText:s.sanitizedText.replace(m,_),links:s.links.concat({elemId:g,url:c.url?encodeURI(this.sanitizeHtml(c.url)):void 0,dismissKey:c.dismissKey?encodeURI(this.sanitizeHtml(c.dismissKey)):void 0})}},r):r}}const pr=new k2;class C2{getRandomId(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]}isFunction(e){return e&&{}.toString.call(e)==="[object Function]"}isPromise(e){return e&&this.isFunction(e.then)}isString(e){return typeof e=="string"||e instanceof String}isIE(){const e=navigator.userAgent;return Boolean(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 r=t.split(".");for(;l&&n<r.length;)l=l[r[n++]];return l}canComponentHandleModal(e){return e&&typeof e.get=="function"}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}replaceVars(e,t,n,l=!0){let r=e;return t&&(l?r=Ml.exports.replace(r,/{([\s\S]+?)}/g,s=>{let o=s.slice(1,-1).trim();return o.indexOf(n)===0&&(o=o.substring(n.length)),Ml.exports.get(t,o,s)}):Object.entries(t).forEach(s=>{r=r.replace(new RegExp(this.escapeRegExp(n+s[0]),"g"),encodeURIComponent(s[1]))})),l&&(r=r.replace(new RegExp("\\{"+this.escapeRegExp(n)+"[^\\}]+\\}","g"),"")),r}getInnerHeight(){return ii.isCustomLuigiContainer()?ii.getLuigiContainer().clientHeight:window.innerHeight}getContentAreaHeight(){return this.getInnerHeight()-this.getShellbarHeight()}getShellbarHeight(){return(ii.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 r=t.filter(o=>l.includes(o)).length===0,s=t.filter(o=>o.endsWith("*")).map(o=>o.slice(0,-1)).filter(o=>l.startsWith(o)).length===0;r&&s&&(n[l]=e[l])}return n}semverCompare(e,t){const n=e.split("-")[0].split("."),l=t.split("-")[0].split(".");for(let r=0;r<3;r++){const s=Number(n[r]),o=Number(l[r]);if(s>o)return 1;if(o>s)return-1;if(!isNaN(s)&&isNaN(o))return 1;if(isNaN(s)&&!isNaN(o))return-1}return 0}requestExperimentalFeature(e,t){const n=Boolean(ie.getConfigValue("settings.experimental."+e));return t&&!n&&console.warn("Experimental feature not enabled: ",e),n}createRemotePromise(){let e,t;const n=new Promise(r=>{e=s=>{r(s||!0)},t=()=>{r(!1)}});let l=ie._remotePromises;return l||(l={counter:0,promises:[]},ie._remotePromises=l),n.id=l.counter++,l.promises[n.id]=n,n.doResolve=r=>{delete l.promises[n.id],e(r)},n.doReject=()=>{delete l.promises[n.id],t()},n}getRemotePromise(e){return ie._remotePromises?ie._remotePromises.promises[e]:void 0}isString(e){return typeof e=="string"||e instanceof String}}const ne=new C2;class y2{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=ne.getUrlWithoutHash(n.previousNodeValues.viewUrl),r=ne.getUrlWithoutHash(n.viewUrl),s=n.previousNodeValues.viewGroup,o=n.viewGroup;if(l===r&&!s&&!o)return!0}return!1}isSameViewGroup(e,t){if(e.iframe){const n=t.get(),l=ne.getUrlWithoutHash(n.previousNodeValues.viewUrl),r=ne.getUrlWithoutHash(n.viewUrl),s=this.getLocation(l),o=this.getLocation(r);if(s===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");return t.href=e,t.origin?t.origin:t.protocol&&t.host?`${t.protocol}//${t.host}`:window.location.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 zw.map(({type:e,selector:t})=>Array.from(document.querySelectorAll(t)).map(n=>({id:n.luigi.id,container:n,active:ne.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(ne.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){Ie.getMicrofrontendIframes().forEach(t=>this.sendMessageToIframe(t,e))}createIframe(e,t,n,l,r){const s=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],o=ie.getConfigValue("settings.customSandboxRules"),c=ie.getConfigValue("settings.allowRules"),g=o?[...new Set([...s,...o])]:s,h=document.createElement("iframe");h.src=$r.hasDecorators()?$r.applyDecorators(e,n?n.decodeViewUrl:void 0):e,c&&(c.forEach((p,m)=>{c[m]=p+(p.indexOf(";")!=-1?"":";")}),h.allow=c.join(" ")),h.sandbox=g.join(" "),h.luigi={viewUrl:e,currentNode:n,createdAt:new Date().getTime(),id:ne.getRandomId(),pathParams:r?r.pathParams:void 0},t&&(h.vg=t),n&&n.clientPermissions&&(h.luigi.clientPermissions=n.clientPermissions);const _=ie.getConfigValue("settings.iframeCreationInterceptor");if(ne.isFunction(_))try{_(h,t,n,l)}catch(p){console.error("Error applying iframe creation interceptor: ",p)}return h}isMessageSource(e,t){return t&&t.contentWindow===e.source}getValidMessageSource(e){const n=[...Ie.getMicrofrontendIframes(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(s=>this.isMessageSource(e,s));if(!n||!n.luigi||!n.luigi.viewUrl)return;const l=e.data.msg==="luigi.navigate.ok";if(l&&!n.luigi.nextViewUrl)return;const r=l?n.luigi.nextViewUrl:n.luigi.viewUrl;if(!!this.iframeIsSameDomain(r,e.origin))return n}getSpecialIframeMessageSource(e,t){return Ie.specialIframeTypes.filter(n=>Ie.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),r=n.getAttribute("tabindex");(r||r===0)&&l&&!n.hasAttribute("oldtab")&&n.setAttribute("oldtab",r),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:Fo.getActiveFeatureToggleList(),currentLocale:ht.getCurrentLocale(),currentTheme:Eo.getCurrentTheme()}}}const Ie=new y2;class P2{constructor(){this.EXP_CAT_KEY="luigi.preferences.navigation.expandedCategories",this.COL_NAV_KEY="luigi.preferences.navigation.collapsedNavigation",this.virtualGroupPrefix="___"}getProductSwitcherConfig(){const e=ie.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 ne.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=Fo.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(hi.isAuthorizationEnabled()){const r=sl.isLoggedIn(),s=e.anonymousAccess;if(r&&s==="exclusive"||!r&&s!=="exclusive"&&s!==!0)return!1}if(!this.checkVisibleForFeatureToggles(e))return!1;const l=ie.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=ie.getConfigValue("navigation.defaults.category");let r={},s=0,o=0;const c=g=>{g.sort((h,_)=>{const p=h.order||0,m=_.order||0;return p-m})};return e.forEach(g=>{let h,_;const p=g[t];ne.isObject(p)?(h=p.id?p.id:p.label,_=Object.assign({},p)):(h=p,n&&!p&&(h=this.virtualGroupPrefix+o),_={label:h,_fromString:!0});let m=r[h];m||(n&&p&&o++,(_.order===void 0||_.order===null||_.order==="")&&(_.order=h?s++:-1),m=[],r[h]=m),m.metaInfo||(m.metaInfo=_),ne.isObject(p)&&m.metaInfo._fromString&&(delete m.metaInfo._fromString,m.metaInfo={...m.metaInfo,...p}),ne.isObject(p)&&l&&(p.titleExpandButton?m.metaInfo.titleExpandButton=p.titleExpandButton:m.metaInfo.titleExpandButton=l.titleExpandButton,p.titleCollapseButton?m.metaInfo.titleCollapseButton=p.titleCollapseButton:m.metaInfo.titleCollapseButton=l.titleCollapseButton),!m.metaInfo.categoryUid&&h&&m.metaInfo.collapsible&&(m.metaInfo.categoryUid=g.parent?this.getNodePath(g.parent)+":"+h:h),g.hideFromNav||m.push(g)}),Object.keys(r).forEach(g=>{const h=r[g].metaInfo;h&&h.id&&(r[h.label]=r[h.id],delete r[h.id])}),Object.keys(r).forEach(g=>{c(r[g]),r[g].length===0&&delete r[g]}),r}generateTooltipText(e,t){let n=e.tooltipText;return n===void 0&&(n=ie.getConfigValue("navigation.defaults.tooltipText")),n===void 0?t:n===!1?"":ht.getTranslation(n)}async generateTopNavNodes(e){const t=await Vt.getFilteredChildren(e[0]);let n=null,l=0,r=0,s={};const o=[];let c=[];for(const h of t){e.forEach(m=>{!n&&m===h&&(n=h)}),h.hideFromNav||(l++,h.globalNav&&r++);let _;const p=!!h.badgeCounter;if(p&&(_=await h.badgeCounter.count()),h.category){const m=h.category.label||h.category;if(s[m]){if(s[m].icon||(s[m].icon=h.category.icon,s[m].altText=h.category.altText),p&&!s[m].badgeCounter)s[m].badgeCounter={label:"",count:()=>_};else if(p){const v=s[m].badgeCounter.count()+_;s[m].badgeCounter.count=()=>v}}else s[m]={isCat:!0,label:m,icon:h.category.icon,altText:h.category.altText,children:[],badgeCounter:p&&{label:"",count:()=>_}},o.push(s[m]);s[m].children.push(h)}else o.push(h);_&&c.push(_)}for(let h=0;h<o.length;h++)o[h].isCat&&(o[h].visibleChildren=await Vt.getChildren(o[h])||[]);const g={children:o,selectedNode:n,visibleNodeCount:l,globalNavNodeCount:r};if(c.length){const h=c.reduce((_,p)=>_+p);g.totalBadgeNode={badgeCounter:{count:()=>h,label:""}}}return g}getSideNavAccordionMode(e){let t=e&&e.sideNavAccordionMode||e&&e.parent&&e.parent.sideNavAccordionMode;return typeof t<"u"?t:ie.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(),r=e.split(":")[0];if(t)n&&(l=l.filter(s=>s.indexOf(r+":")===-1)),l.indexOf(e)<0&&l.push(e);else{let s=l.indexOf(e);s>=0&&l.splice(s,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||"/";et.navigateTo(t)}}getBurgerTooltipConfig(){const e=ie.getConfigValue("settings.burgerTooltip");if(ne.isObject(e)||e===!0){const t=e.navExpanded?ht.getTranslation(e.navExpanded):"Collapse navigation";return[e.navCollapsed?ht.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 Vt.extractDataFromPath(e);return!!await Vt.shouldPreventNavigation(t)}getPropertyChainValue(e,t,n){return!t||!e?n:Ml.exports.get(e,t,n)}substituteVars(e,t){const l=JSON.stringify(e).replace(/\$\{[a-zA-Z0-9$_.]+\}/g,r=>{const s=r.substr(2,r.length-3);return this.getPropertyChainValue(t,s)||r});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 r={...e.titleResolver};delete r._cache;const s=this.substituteVars(r,t),o=JSON.stringify(s);if(e.titleResolver._cache&&e.titleResolver._cache.key===o){n(e.titleResolver._cache.value);return}const c=s.request;this._fetch(c.url,{method:c.method,headers:c.headers,body:JSON.stringify(c.body)}).then(g=>{g.json().then(h=>{try{const _=this.processTitleData(h,s,e);e.titleResolver._cache={key:o,value:_},n(_)}catch(_){l(_)}})}).catch(g=>{l(g)})}).catch(n=>{Ml.exports.reject(n)})}handleNavAnchorClickedWithoutMetaKey(e){return e.ctrlKey||e.metaKey||e.shiftKey?(e.stopPropagation(),!1):(e.preventDefault(),!0)}getNodeLabel(e){let t=ht.getTranslation(e.label);const n=be.findViewGroup(e);if(n){const l=Pn.getViewGroupSettings(n)||{};let r={...l.customData||{},...l._liveCustomData||{}};t=ne.replaceVars(t,r,"viewGroupData.")}return t}}const ke=new P2;class N2{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 fa.getConfigValueFromObjectAsync(n,"children",e.context),r=l.find(s=>s.pathSegment===n.defaultChildNode);if(n.defaultChildNode&&r)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(r=>{const s=r.split("=");s&&s.length>0&&(t[decodeURIComponent(s[0])]=decodeURIComponent(s[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 r=l[0].substr(n.length);t[r]=l[1]}}),this.sanitizeParamsMap(t)}applyPathParams(e,t){let n=e;return t&&Object.entries(t).forEach(([l,r])=>{n=n.replace(new RegExp(":"+l,"g"),r)}),n}findViewGroup(e,t){if(e.viewGroup)return t&&t!==e?e.viewUrl&&t.viewUrl&&Ie.getLocation(e.viewUrl)===Ie.getLocation(t.viewUrl)?e.viewGroup:void 0:e.viewGroup;if(e.parent)return this.findViewGroup(e.parent,t||e)}getContentViewParamPrefix(){let e=ie.getConfigValue("routing.nodeParamPrefix");return e===!1?e="":e||(e=this.defaultContentViewParamPrefix),e}getModalViewParamName(){let e=ie.getConfigValue("routing.modalPathParam");return e||(e=this.defaultModalViewParamName),e}getHashQueryParamSeparator(){return this.defaultQueryParamSeparator}getQueryParam(e){return this.getQueryParams()[e]}getQueryParams(){return ie.getConfigBooleanValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()}getLocation(){return location}getLocationHashQueryParams(){const e=be.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return e!==-1?be.parseParams(be.getLocation().hash.slice(e+1)):{}}getLocationSearchQueryParams(){return be.getLocation().search?be.parseParams(be.getLocation().search.slice(1)):{}}composeSearchParamsToRoute(e){if(ie.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=ie.getConfigValue("routing.useHashRouting");Nn.addEventListener("message",n=>{if(n.data.msg==="refreshRoute"&&n.origin===window.origin){const l=t?et.getHashPath():et.getModifiedPathname();e(l)}}),Nn.addEventListener("popstate",n=>{const l=t?et.getHashPath(location.href):et.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 s=e.externalLink.url,o={context:be.substituteDynamicParamsInObject(this.getContext(e),t),pathParams:t,nodeParams:{}};return this.substituteViewUrl(s,o)}else if(e.link){const s=e.link.startsWith("/")?e.link:et.buildFromRelativePath(e);return l+s}const r=be.buildRoute(e,`/${e.pathSegment}`);return l+ne.replaceVars(r,t,":",!1)}calculateNodeHref(e,t){const n=be.getRouteLink(e,t,ie.getConfigValue("routing.useHashRouting")?"#":"");return this.getI18nViewUrl(n.url)||n}getNodeHref(e,t){if(ie.getConfigBooleanValue("navigation.addNavHrefs"))return this.calculateNodeHref(e,t)}substituteDynamicParamsInObject(e,t,n=":",l=!1){return Object.entries(e).map(([r,s])=>{const o=l?Object.keys(t).find(c=>s&&s.indexOf(n+c)>=0):Object.keys(t).find(c=>s===n+c);return[r,o?l?s.replace(n+o,t[o]):t[o]:s]}).reduce((r,[s,o])=>Object.assign(r,{[s]:o}),{})}mapPathToNode(e,t){if(!e||!t)return;const n=ne.trimLeadingSlash(e).split("/"),l=be.buildRoute(t,`/${t.pathSegment}`),r=ne.trimLeadingSlash(l).split("/");if(n.length<r.length)return;let s="";for(let o=0;o<r.length;o++){if(n[o]!==r[o]&&r[o].indexOf(":")!==0)return;s+="/"+n[o]}return s}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=ht.getCurrentLocale();return e&&e.includes(t)?e.replace(t,n):e}substituteViewUrl(e,t){const n="context.",l="nodeParams.",r="routing.queryParams";if(e=ne.replaceVars(e,t.pathParams,":",!1),e=ne.replaceVars(e,t.context,n),e=ne.replaceVars(e,t.nodeParams,l),e=this.getI18nViewUrl(e),e&&e.includes(r)){const s=e.split("?")[1];if(s){const o=s.split("=")[0];rl.getSearchParams()[o]?e=e.replace(`{${r}.${o}}`,rl.getSearchParams()[o]):e=e.replace(`?${o}={${r}.${o}}`,"")}}return e}sanitizeParamsMap(e){return Object.entries(e).reduce((t,n)=>(t[pr.sanitizeParam(n[0])]=pr.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 r=n.split(",");r.length>0&&r[0]!==""&&r.forEach(s=>Fo.setFeatureToggle(s,!0))}getIntentObject(e){const t=e.split("?intent=")[1];if(t){const n=t.split("?"),l=n[0].split("-"),r=Object.fromEntries(new URLSearchParams(n[1]).entries());return{semanticObject:l[0],action:l[1],params:r}}}getIntentPath(e){const t=ie.getConfigValue("navigation.intentMapping");if(t&&t.length>0){const n=e.replace(/\?intent=/i,"?intent="),l=this.getIntentObject(n);if(l){let r=t.find(o=>o.semanticObject===l.semanticObject&&o.action===l.action);if(!r)return!1;if(r.externalLink)return{...r.externalLink,external:!0};r=r.pathSegment;const s=Object.entries(l.params);if(s&&s.length>0){r=this.resolveDynamicIntentPath(r,l.params);let o=ie.getConfigValue("routing.nodeParamPrefix");o=o||"~",r=r.concat(`?${o}`),s.forEach(([c,g],h)=>{r+=`${h>0?"&"+o:""}${c}=${g}`})}return r}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,r]of Object.entries(t)){const s=new RegExp("/:"+l+"(/|$)","g");n=n.replace(s,`/${r}/`)}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 rl.getSearchParams()&&e.clientPermissions.urlParameters[n].read===!0&&(t[n]=rl.getSearchParams()[n])}),t}addSearchParamsFromClient(e,t,n){const l={...t};if(!!ne.isObject(l)&&e&&e.clientPermissions&&e.clientPermissions.urlParameters){const r={};Object.keys(e.clientPermissions.urlParameters).forEach(s=>{s in l&&e.clientPermissions.urlParameters[s].write===!0&&(r[s]=l[s],delete l[s])});for(const s in l)console.warn(`No permission to add the search param "${s}" to the url`);Object.keys(r).length>0&&rl.addSearchParams(r,n)}}hasIntent(e){return!!e&&e.toLowerCase().includes("#?intent=")}getPageNotFoundRedirectResult(e,t=!1){const n=ie.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:ht.getTranslation(n?"luigi.notExactTargetNode":"luigi.requestedRouteNotFound",{route:t}),type:"error",ttl:1};e.showAlert(l,!1)}modifySearchParams(e,t,n){for(const[l,r]of Object.entries(e)){const s=n?`${n}${l}`:l;t.set(s,r),r===void 0&&t.delete(s)}}addParamsOnHashRouting(e,t,n){let l=t;const[r,s]=l.split("?"),o=new URLSearchParams(s);return this.modifySearchParams(e,o,n),l=r,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 be=new N2;class I2{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(r=>{l=l+(l?".":"")+r,t.push(l)})}),[...new Set(t)]}doOnStoreChange(e,t,n=[]){e.subscribe(t),this.expandScope(n).forEach(l=>{e.subscribeToScope(t,l)})}}const on=new I2;class T2{constructor(){this.listeners=[],this.hashChangeWithoutSync=!1,window.onunload=()=>this.removeAllEventListeners()}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 Nn=new T2;class L2{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,r){try{this.checkInit(),this.checkStorageBrowserSupport();const s=this[l];if(typeof s!="function")throw l+" is not a supported operation for the storage";const o=s.bind(this,this.cleanHostname(t),r)();this.sendBackOperation(e,n,"OK",o)}catch(s){console.log(s),this.sendBackOperation(e,n,"ERROR",s)}}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 r={msg:"storage",data:{id:t,status:n,result:l}};Ie.getMicrofrontendsInDom().filter(s=>s.id===e).map(s=>s.container).map(s=>Ie.sendMessageToIframe(s,r))}}const A2=new L2;class E2{constructor(){}processUserSettingGroups(){const e=[],t=ie.getConfigValue("userSettings.userSettingGroups"),n=ie.getConfigValue("settings.userSettings.userSettingGroups"),l=t||n;if(ne.isObject(l)){for(const r in l){let s={};s[r]=l[r],e.push(s)}return e}return e}createIframe(e,t){const n=Ie.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 ur=new E2;class R2{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 Jf=new R2;function jf(i,e,t){const n=i.slice();return n[9]=e[t],n}function Yf(i){let e,t,n=(i[9].dataSanitized?i[9].settings.text:"")+"",l,r,s,o,c,g;function h(){return i[4](i[9])}return{c(){e=k("div"),t=k("p"),l=K(),r=k("button"),r.innerHTML='<i class="sap-icon sap-icon--decline"></i>',s=K(),f(t,"class","fd-message-strip__text svelte-1jc9s1u"),f(r,"class","fd-button fd-button--transparent fd-button--compact fd-message-strip__close"),f(r,"aria-label","Close"),f(r,"aria-controls","j2ALl423"),f(r,"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-1jc9s1u"),f(e,"role","alert"),f(e,"id","j2ALl423"),f(e,"data-testid","luigi-alert")},m(_,p){E(_,e,p),w(e,t),t.innerHTML=n,w(e,l),w(e,r),w(e,s),c||(g=le(r,"click",h),c=!0)},p(_,p){i=_,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-1jc9s1u")&&f(e,"class",o)},d(_){_&&A(e),c=!1,g()}}}function D2(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Yf(jf(i,t,l));return{c(){e=k("div");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-shell__overlay luigi-alert--overlay svelte-1jc9s1u"),f(e,"aria-hidden","false")},m(l,r){E(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null);i[5](e)},p(l,[r]){if(r&11){t=l[0];let s;for(s=0;s<t.length;s+=1){const o=jf(l,t,s);n[s]?n[s].p(o,r):(n[s]=Yf(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},i:Fe,o:Fe,d(l){l&&A(e),ct(n,l),i[5](null)}}}function V2(i,e,t){const n=Bt();let{alertQueue:l}=e,{alertTypeMap:r={info:"information",success:"success",warning:"warning",error:"error"}}=e,s;const o=dt("getUnsavedChangesModalPromise"),c=dt("handleNavigation");Mn(()=>{if(!l||!l.length){console.warn("There are no alerts to display");return}if(l.processed)return;const p=l.map(m=>{const{text:v,links:S,closeAfter:y}=m.settings,C=pr.processTextAndLinks(v,S,m.settings.id);if(setTimeout(()=>{C.links.forEach(N=>{g(N,m.settings.id)})}),m.settings.afterInit){const N=s;m.settings.afterInit({dismiss:()=>{N&&N.isConnected?n("alertDismiss",{id:m.settings.id}):console.debug("Alert already dismissed: ",N)},element:N})}return{settings:{...m.settings,text:C.sanitizedText},dataSanitized:!0}});p.processed=!0,t(0,l=p)}),jt(()=>{});function g(p,m){try{const v=document.getElementById(p.elemId);v.dismissListener&&v.removeEventListener("click",v.dismissListener);const S=y=>{if(p.url){const C=!p.url.startsWith("/");y.stopPropagation(),o().then(()=>{const N={params:{link:p.url,relative:C}};c(N)},()=>{})}else p.dismissKey&&n("alertDismiss",{id:m,dismissKey:p.dismissKey})};v.addEventListener("click",S),v.dismissListener=S}catch(v){console.error("Error on Alert::addClickListener",v)}}const h=p=>n("alertDismiss",{id:p.settings.id});function _(p){$e[p?"unshift":"push"](()=>{s=p,t(2,s)})}return i.$$set=p=>{"alertQueue"in p&&t(0,l=p.alertQueue),"alertTypeMap"in p&&t(1,r=p.alertTypeMap)},[l,r,s,n,h,_]}class M2 extends At{constructor(e){super(),Lt(this,e,V2,D2,Nt,{alertQueue:0,alertTypeMap:1})}}const Vl=38,Mi=40,_i=13,gi=27,ma=32,O2=36,F2=35;function Qf(i){let e,t;return{c(){e=k("i"),f(e,"class",t=jn(i[3](i[0].icon))+" svelte-1d21c96")},m(n,l){E(n,e,l)},p(n,l){l&1&&t!==(t=jn(n[3](n[0].icon))+" svelte-1d21c96")&&f(e,"class",t)},d(n){n&&A(e)}}}function Zf(i){let e,t,n=i[0].buttonConfirm+"",l,r,s;return{c(){e=k("div"),t=k("button"),l=ye(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){E(o,e,c),w(e,t),w(t,l),r||(s=le(t,"click",i[4]),r=!0)},p(o,c){c&1&&n!==(n=o[0].buttonConfirm+"")&&Ne(l,n)},d(o){o&&A(e),r=!1,s()}}}function U2(i){let e,t,n,l,r,s,o,c=i[0].header+"",g,h,_,p=i[0].body+"",m,v,S,y,C,N,I=i[0].buttonDismiss+"",D,L,T,V,O,U=i[0].type&&Qf(i),z=i[0].buttonConfirm!==!1&&Zf(i);return{c(){e=k("div"),t=k("section"),n=k("header"),l=k("div"),r=k("div"),U&&U.c(),s=K(),o=k("h2"),g=ye(c),h=K(),_=k("div"),m=K(),v=k("footer"),S=k("div"),z&&z.c(),y=K(),C=k("div"),N=k("button"),D=ye(I),f(o,"class","fd-title fd-title--h5"),f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(n,"class","fd-bar fd-bar--header fd-message-box__header"),f(_,"class","fd-message-box__body svelte-1d21c96"),f(N,"data-testid","luigi-modal-dismiss"),f(N,"class",L="fd-button "+(i[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button"),f(C,"class","fd-bar__element"),f(S,"class","fd-bar__right"),f(v,"class","fd-bar fd-bar--footer fd-message-box__footer"),f(t,"class","fd-message-box__content svelte-1d21c96"),f(e,"class",T="fd-message-box-docs-static fd-message-box fd-message-box--"+i[0].type+" fd-message-box--active svelte-1d21c96"),f(e,"data-testid","luigi-confirmation-modal")},m(ae,fe){E(ae,e,fe),w(e,t),w(t,n),w(n,l),w(l,r),U&&U.m(r,null),w(r,s),w(r,o),w(o,g),w(t,h),w(t,_),_.innerHTML=p,w(t,m),w(t,v),w(v,S),z&&z.m(S,null),w(S,y),w(S,C),w(C,N),w(N,D),V||(O=[le(window,"keydown",i[1]),le(N,"click",i[5])],V=!0)},p(ae,[fe]){ae[0].type?U?U.p(ae,fe):(U=Qf(ae),U.c(),U.m(r,s)):U&&(U.d(1),U=null),fe&1&&c!==(c=ae[0].header+"")&&Ne(g,c),fe&1&&p!==(p=ae[0].body+"")&&(_.innerHTML=p),ae[0].buttonConfirm!==!1?z?z.p(ae,fe):(z=Zf(ae),z.c(),z.m(S,y)):z&&(z.d(1),z=null),fe&1&&I!==(I=ae[0].buttonDismiss+"")&&Ne(D,I),fe&1&&L!==(L="fd-button "+(ae[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button")&&f(N,"class",L),fe&1&&T!==(T="fd-message-box-docs-static fd-message-box fd-message-box--"+ae[0].type+" fd-message-box--active svelte-1d21c96")&&f(e,"class",T)},i:Fe,o:Fe,d(ae){ae&&A(e),U&&U.d(),z&&z.d(),V=!1,Qe(O)}}}function B2(i,e,t){const n=Bt();let{settings:l}=e;const r={confirmation:"question-mark",information:"message-information",warning:"message-warning",error:"message-error",success:"message-success"};xr(()=>{Ie.enableA11YKeyboardBackdropExceptClassName(".fd-message-box-docs-static")}),jt(()=>{const h={icon:r[l.type],header:ht.getTranslation("luigi.confirmationModal.header"),body:ht.getTranslation("luigi.confirmationModal.body"),buttonDismiss:ht.getTranslation("luigi.button.dismiss"),buttonConfirm:ht.getTranslation("luigi.button.confirm")};t(0,l={...l,body:pr.sanatizeHtmlExceptTextFormatting(l.body)}),t(0,l=Object.assign(h,l)),Ie.disableA11YKeyboardExceptClassName(".fd-message-box-docs-static");const _=l.buttonConfirm?"confirm-button":"dismiss-button";try{document.querySelector(`.${_}`).focus()}catch{console.warn(`Couldn't focus ${_} in modal`)}});function s(h){return ke.renderIconClassName(h)}function o(h){h.keyCode===gi&&n("modalDismiss")}const c=()=>n("modalConfirm"),g=()=>n("modalDismiss");return i.$$set=h=>{"settings"in h&&t(0,l=h.settings)},[l,o,n,s,c,g]}class H2 extends At{constructor(e){super(),Lt(this,e,B2,U2,Nt,{settings:0,handleKeydown:1})}get handleKeydown(){return this.$$.ctx[1]}}function W2(i){let e,t,n;const l=i[5].default,r=s_(l,i,i[4],null);return{c(){e=k("div"),r&&r.c(),f(e,"class",t=i[0]+" "+(i[1]==="main"?"zIndexZero":"")+" svelte-f5j52v"),f(e,"aria-hidden","false")},m(s,o){E(s,e,o),r&&r.m(e,null),n=!0},p(s,[o]){r&&r.p&&(!n||o&16)&&u_(r,l,s,s[4],n?o_(l,s[4],o,null):f_(s[4]),null),(!n||o&3&&t!==(t=s[0]+" "+(s[1]==="main"?"zIndexZero":"")+" svelte-f5j52v"))&&f(e,"class",t)},i(s){n||(F(r,s),n=!0)},o(s){G(r,s),n=!1},d(s){s&&A(e),r&&r.d(s)}}}function z2(i,e,t){let{$$slots:n={},$$scope:l}=e;const r=Bt();let{backdropClass:s=""}=e,{backdropActive:o=!1}=e,c=!1,g={},{area:h}=e,{disable:_}=e;const p=()=>{const v="lui-backdrop ";o?g.data&&g.data.heightCssClass?t(0,s=v+g.data.heightCssClass):t(0,s=v+"height-auto"):t(0,s="")},m=v=>{if(!h)return!0;const y=[...Ie.getMicrofrontendsInDom(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(C=>C.container&&C.container.contentWindow===v.source);return!(y&&h===y.type)};return jt(()=>{ie.getConfigValue("settings.backdropDisabled")||(p(),Nn.addEventListener("message",S=>{const y=Ie.getValidMessageSource(S);!y||_!==!0&&(S.data.msg==="luigi.add-backdrop"&&(t(2,o=m(S)),r("stateChanged",{backdropActive:!0}),Ie.disableA11yOfInactiveIframe(y)),S.data.msg==="luigi.remove-backdrop"&&(t(2,o=!1),r("stateChanged",{backdropActive:!1}),c&&Ie.enableA11yOfInactiveIframe()))}))}),Mn(()=>{o!==c&&(c=o,p())}),i.$$set=v=>{"backdropClass"in v&&t(0,s=v.backdropClass),"backdropActive"in v&&t(2,o=v.backdropActive),"area"in v&&t(1,h=v.area),"disable"in v&&t(3,_=v.disable),"$$scope"in v&&t(4,l=v.$$scope)},[s,h,o,_,l,n]}class ts extends At{constructor(e){super(),Lt(this,e,z2,W2,Nt,{backdropClass:0,backdropActive:2,area:1,disable:3})}}const{window:G2}=Fi;function Xf(i){let e,t,n,l,r,s,o,c,g,h,_,p;t=new ts({props:{disable:i[2]}});let m=i[0].title&&$f(i);return{c(){e=k("div"),qe(t.$$.fragment),n=K(),l=k("div"),r=k("div"),m&&m.c(),s=K(),o=k("div"),c=k("div"),g=k("button"),g.innerHTML='<i class="sap-icon sap-icon--decline"></i>',f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(g,"class","fd-button fd-button--transparent fd-button--compact"),f(g,"aria-label","close"),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-1n363mo")},m(v,S){E(v,e,S),ze(t,e,null),w(e,n),w(e,l),w(l,r),m&&m.m(r,null),w(e,s),w(e,o),w(o,c),w(c,g),h=!0,_||(p=le(g,"click",i[12]),_=!0)},p(v,S){const y={};S&4&&(y.disable=v[2]),t.$set(y),v[0].title?m?m.p(v,S):(m=$f(v),m.c(),m.m(r,null)):m&&(m.d(1),m=null)},i(v){h||(F(t.$$.fragment,v),h=!0)},o(v){G(t.$$.fragment,v),h=!1},d(v){v&&A(e),Ge(t),m&&m.d(),_=!1,p()}}}function $f(i){let e,t=i[0].title+"",n;return{c(){e=k("h2"),n=ye(t),f(e,"class","fd-title fd-title--h5"),f(e,"id","dialog-title-1")},m(l,r){E(l,e,r),w(e,n)},p(l,r){r&1&&t!==(t=l[0].title+"")&&Ne(n,t)},d(l){l&&A(e)}}}function xf(i){let e;const t=i[11].default,n=s_(t,i,i[10],null);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),e=!0},p(l,r){n&&n.p&&(!e||r&1024)&&u_(n,t,l,l[10],e?o_(t,l[10],r,null):f_(l[10]),null)},i(l){e||(F(n,l),e=!0)},o(l){G(n,l),e=!1},d(l){n&&n.d(l)}}}function ec(i){let e;return{c(){e=k("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>
|
|
56
56
|
<div class="fd-busy-indicator__circle"></div>
|
|
57
57
|
<div class="fd-busy-indicator__circle"></div></div>`,f(e,"class","fd-page spinnerContainer fade-in-out svelte-1n363mo"),f(e,"aria-hidden","false"),f(e,"aria-label","Loading")},m(t,n){E(t,e,n)},d(t){t&&A(e)}}}function q2(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,S,y,C=(i[6]||i[5]&&i[0].header)&&Xf(i),N=i[5]&&xf(i),I=i[4]&&ec();return{c(){e=k("div"),t=k("div"),C&&C.c(),n=K(),l=k("div"),N&&N.c(),r=K(),s=k("div"),g=K(),I&&I.c(),f(s,"class",o="iframeModalCtn "+(i[5]?"_drawer":"_modal")+" svelte-1n363mo"),f(s,"modal-container-index",c=i[5]?void 0:i[1]),f(l,"class","fd-dialog__body svelte-1n363mo"),f(t,"class",h="fd-dialog__content "+(i[5]?i[0].backdrop?"drawer drawer-dialog__content drawer__backdrop":"drawer drawer-dialog__content":"lui-modal-mf lui-modal-index-"+i[1])+" svelte-1n363mo"),f(t,"data-testid",_=i[6]?"modal-mf":"drawer-mf"),f(t,"role","dialog"),f(t,"aria-modal","true"),f(t,"aria-labelledby","dialog-title-1"),f(e,"class",p=jn(i[6]||i[5]&&i[0].backdrop?"fd-dialog fd-dialog--active":"drawer-dialog")+" svelte-1n363mo"),f(e,"style",m=i[6]?"z-index:1001":"")},m(D,L){E(D,e,L),w(e,t),C&&C.m(t,null),w(t,n),w(t,l),N&&N.m(l,null),w(l,r),w(l,s),w(t,g),I&&I.m(t,null),v=!0,S||(y=le(G2,"keydown",i[3]),S=!0)},p(D,[L]){D[6]||D[5]&&D[0].header?C?(C.p(D,L),L&97&&F(C,1)):(C=Xf(D),C.c(),F(C,1),C.m(t,n)):C&&(Le(),G(C,1,1,()=>{C=null}),Ae()),D[5]?N?(N.p(D,L),L&32&&F(N,1)):(N=xf(D),N.c(),F(N,1),N.m(l,r)):N&&(Le(),G(N,1,1,()=>{N=null}),Ae()),(!v||L&32&&o!==(o="iframeModalCtn "+(D[5]?"_drawer":"_modal")+" svelte-1n363mo"))&&f(s,"class",o),(!v||L&34&&c!==(c=D[5]?void 0:D[1]))&&f(s,"modal-container-index",c),D[4]?I||(I=ec(),I.c(),I.m(t,null)):I&&(I.d(1),I=null),(!v||L&35&&h!==(h="fd-dialog__content "+(D[5]?D[0].backdrop?"drawer drawer-dialog__content drawer__backdrop":"drawer drawer-dialog__content":"lui-modal-mf lui-modal-index-"+D[1])+" svelte-1n363mo"))&&f(t,"class",h),(!v||L&64&&_!==(_=D[6]?"modal-mf":"drawer-mf"))&&f(t,"data-testid",_),(!v||L&97&&p!==(p=jn(D[6]||D[5]&&D[0].backdrop?"fd-dialog fd-dialog--active":"drawer-dialog")+" svelte-1n363mo"))&&f(e,"class",p),(!v||L&64&&m!==(m=D[6]?"z-index:1001":""))&&f(e,"style",m)},i(D){v||(F(C),F(N),v=!0)},o(D){G(C),G(N),v=!1},d(D){D&&A(e),C&&C.d(),N&&N.d(),I&&I.d(),S=!1,y()}}}function K2(i,e,t){let{$$slots:n={},$$scope:l}=e,{settings:r}=e,{isDataPrepared:s=!1}=e,{nodepath:o}=e,{modalIndex:c}=e,{disableBackdrop:g}=e;const h=Bt();let _,p,m,v=!1,S=!1,y=!1,C=!1,N=!1,I=!0,D,L=dt("store");const T=H=>ke.getNodeLabel(H),V=async H=>{const oe=H&&H.length?ne.getPathWithoutHash(H):"",$=be.parseParams(oe.split("?")[1]);m=be.getNodeParams($);const j=await Vt.extractDataFromPath(H);_=j.nodeObject,t(5,N=r.isDrawer||typeof _.drawer=="object"),D=N?"._drawer":`[modal-container-index="${c}"]`,t(0,r._liveLabel=!1,r),N?(t(6,I=!1),r.header===void 0?(t(0,r.header=!0,r),t(0,r.title=T(_),r),t(0,r._liveLabel=!0,r)):r.header&&r.header.title&&t(0,r.title=r.header.title,r),(r.backdrop===void 0||!r.backdrop)&&(t(0,r.backdrop=!1,r),h("drawerState",{activeDrawer:!0})),r.size||t(0,r.size="s",r),r.overlap===void 0&&t(0,r.overlap=!0,r)):r.title||(t(0,r.title=T(_),r),t(0,r._liveLabel=!0,r)),p=j.pathData,t(8,s=!0)},O=async H=>{if(!(v||S))if(s)if(_.webcomponent)t(4,y=!1),N?await ae():await U(),dr.renderWebComponent(_.viewUrl,document.querySelector(D),p.context,_),h("wcCreated",{modalWC:document.querySelector(D),modalWCData:{...p,nodeParams:m}}),S=!0;else{t(4,y=_.loadingIndicator?_.loadingIndicator.enabled:!0);const oe=await z(_.viewUrl,{context:p.context,pathParams:p.pathParams,nodeParams:m});h("iframeCreated",{modalIframe:oe,modalIframeData:{...p,nodeParams:m}}),v=!0}else await V(H)},U=async()=>{let H,oe;const $=document.querySelector(".lui-modal-index-"+c),{size:j,width:Ce,height:te}=r,He=/^.?[0-9]{1,3}(%|px|rem|em|vh|vw)$/;if($.classList.remove("lui-modal-fullscreen"),Ce&&Ce.match(He)&&te&&te.match(He))H=te,oe=Ce;else switch(j){case"fullscreen":H="100vh",oe="100vw",$.classList.add("lui-modal-fullscreen");break;case"m":H="80%",oe="60%";break;case"s":H="80%",oe="40%";break;default:H="80%",oe="80%"}$.setAttribute("style",`width:${oe};height:${H};`)},z=async(H,oe)=>{N?await ae():await U(),H&&(H=be.substituteViewUrl(H,oe));const $=await Ie.createIframe(H,void 0,_,"modal",oe);return document.querySelector(D).appendChild($),$};async function ae(H){let oe="";const $=document.getElementsByClassName("drawer"),j=document.getElementsByClassName("drawer-dialog");r.size&&(r.size==="l"?oe="width:75%;":r.size==="m"?oe="width:50%;":r.size==="s"?oe="width:25%;":r.size==="xs"&&(oe="width:15.5%;")),r.backdrop?$[0].setAttribute("style",oe):(j[0].setAttribute("style",oe),$[0].setAttribute("style","width:100%"))}pa(()=>{O(o)});const fe=async H=>{H.data.msg==="luigi.show-loading-indicator"&&t(4,y=!0),H.data.msg==="luigi.hide-loading-indicator"&&t(4,y=!1),H.data.msg==="luigi.get-context"&&(C=!0,(!_||!_.loadingIndicator||_.loadingIndicator.hideAutomatically!==!1)&&pe()),H.data.msg==="luigi.close-modal"&&h("close",{type:"modal"}),H.data.msg==="luigi.navigation.updateModalSettings"&&((H.data.updatedModalSettings.title||H.data.updatedModalSettings.title==="")&&t(0,r.title=H.data.updatedModalSettings.title,r),H.data.updatedModalSettings.size&&(t(0,r.size=H.data.updatedModalSettings.size,r),await U()),ie.getConfigBooleanValue("routing.showModalPathInUrl")&&et.updateModalDataInUrl(o,{title:r.title,size:r.size},H.data.addHistoryEntry))};jt(()=>{on.doOnStoreChange(L,()=>{r._liveLabel&&_&&t(0,r.title=T(_),r)},["navigation.viewgroupdata"]),Nn.addEventListener("message",fe),r.isDrawer&&!r.backdrop||Ie.disableA11YKeyboardExceptClassName(".lui-modal-index-"+c),window.focus(),setTimeout(()=>{C||t(4,y=!0)},250)}),xr(()=>{Nn.removeEventListener("message",fe),r.isDrawer&&!r.backdrop||Ie.enableA11YKeyboardBackdropExceptClassName(".lui-modal-index-"+c)});function X(H){H.keyCode===gi&&h("close")}function pe(){const H=document.querySelector(".spinnerContainer");H&&H.classList.contains("fade-in-out")&&(H.classList.remove("fade-in-out"),setTimeout(()=>{t(4,y=!1)},250))}const ee=()=>h("close",{activeDrawer:!1});return i.$$set=H=>{"settings"in H&&t(0,r=H.settings),"isDataPrepared"in H&&t(8,s=H.isDataPrepared),"nodepath"in H&&t(9,o=H.nodepath),"modalIndex"in H&&t(1,c=H.modalIndex),"disableBackdrop"in H&&t(2,g=H.disableBackdrop),"$$scope"in H&&t(10,l=H.$$scope)},[r,c,g,X,y,N,I,h,s,o,l,n,ee]}class R_ extends At{constructor(e){super(),Lt(this,e,K2,q2,Nt,{settings:0,isDataPrepared:8,nodepath:9,modalIndex:1,disableBackdrop:2,handleKeydown:3})}get handleKeydown(){return this.$$.ctx[3]}}function tc(i,e,t){const n=i.slice();return n[28]=e[t][0],n[29]=e[t][1],n[30]=e,n[31]=t,n}function nc(i,e,t){const n=i.slice();return n[32]=e[t],n[34]=t,n}function ic(i,e,t){const n=i.slice();return n[32]=e[t],n[34]=t,n}function lc(i){let e,t=i[1][1].settings&&rc(i);return{c(){t&&t.c(),e=Se()},m(n,l){t&&t.m(n,l),E(n,e,l)},p(n,l){n[1][1].settings?t?t.p(n,l):(t=rc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function rc(i){let e,t,n=Object.entries(i[1][1].settings),l=[];for(let r=0;r<n.length;r+=1)l[r]=gc(tc(i,n,r));return{c(){e=k("div"),t=k("div");for(let r=0;r<l.length;r+=1)l[r].c();f(t,"class","fd-container fd-form-layout-grid-container"),f(e,"class","fd-page__content")},m(r,s){E(r,e,s),w(e,t);for(let o=0;o<l.length;o+=1)l[o].m(t,null)},p(r,s){if(s[0]&16191){n=Object.entries(r[1][1].settings);let o;for(o=0;o<n.length;o+=1){const c=tc(r,n,o);l[o]?l[o].p(c,s):(l[o]=gc(c),l[o].c(),l[o].m(t,null))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(r){r&&A(e),ct(l,r)}}}function sc(i){let e;function t(r,s){return r[29].isEditable||r[29].isEditable===void 0?j2:J2}let n=t(i),l=n(i);return{c(){l.c(),e=Se()},m(r,s){l.m(r,s),E(r,e,s)},p(r,s){n===(n=t(r))&&l?l.p(r,s):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},d(r){l.d(r),r&&A(e)}}}function J2(i){let e,t=i[0][i[1][0]][i[28]]+"",n,l;return{c(){e=k("div"),n=ye(t),f(e,"class","fd-text"),f(e,"data-testid","lui-us-input"+i[31]),f(e,"id","fd-form-input-"+i[31]),f(e,"disabled",l=!(i[29].isEditable===void 0||i[29].isEditable))},m(r,s){E(r,e,s),w(e,n)},p(r,s){s[0]&3&&t!==(t=r[0][r[1][0]][r[28]]+"")&&Ne(n,t),s[0]&2&&l!==(l=!(r[29].isEditable===void 0||r[29].isEditable))&&f(e,"disabled",l)},d(r){r&&A(e)}}}function j2(i){let e,t,n,l,r;function s(){i[18].call(e,i[28])}return{c(){e=k("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[29].placeholder)),f(e,"data-testid","lui-us-input"+i[31]),f(e,"id","fd-form-input-"+i[31]),e.disabled=n=!(i[29].isEditable===void 0||i[29].isEditable)},m(o,c){E(o,e,c),qf(e,i[0][i[1][0]][i[28]]),l||(r=le(e,"input",s),l=!0)},p(o,c){i=o,c[0]&34&&t!==(t=i[5](i[29].placeholder))&&f(e,"placeholder",t),c[0]&2&&n!==(n=!(i[29].isEditable===void 0||i[29].isEditable))&&(e.disabled=n),c[0]&3&&e.value!==i[0][i[1][0]][i[28]]&&qf(e,i[0][i[1][0]][i[28]])},d(o){o&&A(e),l=!1,r()}}}function ac(i){let e,t,n,l,r,s,o=i[11](i[0][i[1][0]][i[28]],i[29].options)+"",c,g,h,_,p,m,v=Array.isArray(i[29].options),S,y;function C(...D){return i[19](i[28],i[31],i[29],...D)}function N(){return i[20](i[29])}let I=v&&oc(i);return{c(){e=k("div"),t=k("div"),n=k("div"),l=k("div"),r=k("button"),s=k("span"),c=ye(o),h=K(),_=k("span"),_.innerHTML='<i class="sap-icon--slim-arrow-down"></i>',p=K(),m=k("div"),I&&I.c(),f(s,"class","fd-select__text-content"),f(s,"data-testid","lui-us-input"+i[31]),f(s,"disabled",g=!(i[29].isEditable===void 0||i[29].isEditable)),f(_,"class","fd-button fd-button--transparent fd-select__button lui-activate-language-dropdown"),f(r,"tabindex","0"),f(r,"aria-expanded","false"),f(r,"aria-haspopup","listbox"),f(r,"aria-label","Language"),f(r,"class","fd-select__control lui-anchor-node svelte-1tiapr5"),f(r,"data-testid","lui-us-language-dropdown"),f(r,"id","fd-form-input-"+i[31]),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(D,L){E(D,e,L),w(e,t),w(t,n),w(n,l),w(l,r),w(r,s),w(s,c),w(r,h),w(r,_),w(t,p),w(t,m),I&&I.m(m,null),S||(y=[le(r,"keydown",C),le(n,"click",Ft(N))],S=!0)},p(D,L){i=D,L[0]&3&&o!==(o=i[11](i[0][i[1][0]][i[28]],i[29].options)+"")&&Ne(c,o),L[0]&2&&g!==(g=!(i[29].isEditable===void 0||i[29].isEditable))&&f(s,"disabled",g),L[0]&2&&(v=Array.isArray(i[29].options)),v?I?I.p(i,L):(I=oc(i),I.c(),I.m(m,null)):I&&(I.d(1),I=null)},d(D){D&&A(e),I&&I.d(),S=!1,Qe(y)}}}function oc(i){let e,t=i[29].options,n=[];for(let l=0;l<t.length;l+=1)n[l]=uc(ic(i,t,l));return{c(){e=k("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[31]),f(e,"role","listbox")},m(l,r){E(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null)},p(l,r){if(r[0]&4634){t=l[29].options;let s;for(s=0;s<t.length;s+=1){const o=ic(l,t,s);n[s]?n[s].p(o,r):(n[s]=uc(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){l&&A(e),ct(n,l)}}}function uc(i){let e,t,n=i[12](i[32])+"",l,r,s,o;function c(){return i[21](i[28],i[32],i[34])}return{c(){e=k("li"),t=k("span"),l=ye(n),r=K(),f(t,"class","fd-list__title"),f(e,"role","option"),f(e,"class","fd-list__item"),f(e,"data-testid","lui-us-option"+i[31]+"_"+i[34]),f(e,"tabindex","0"),di(e,"is-selected",i[4]===i[34]),di(e,"is-focus",i[4]===i[34])},m(g,h){E(g,e,h),w(e,t),w(t,l),w(e,r),s||(o=[le(e,"click",c),le(e,"keydown",i[22])],s=!0)},p(g,h){i=g,h[0]&2&&n!==(n=i[12](i[32])+"")&&Ne(l,n),h[0]&16&&di(e,"is-selected",i[4]===i[34]),h[0]&16&&di(e,"is-focus",i[4]===i[34])},d(g){g&&A(e),s=!1,Qe(o)}}}function fc(i){let e,t,n,l=i[29].options,r=[];for(let s=0;s<l.length;s+=1)r[s]=cc(nc(i,l,s));return{c(){e=k("div"),t=k("div");for(let s=0;s<r.length;s+=1)r[s].c();f(t,"class",n="fd-segmented-button enum-buttons-container-"+i[28]+" svelte-1tiapr5"),f(t,"role","group"),f(t,"aria-label","Group label"),f(e,"class","fd-form-item")},m(s,o){E(s,e,o),w(e,t);for(let c=0;c<r.length;c+=1)r[c].m(t,null)},p(s,o){if(o[0]&13315){l=s[29].options;let c;for(c=0;c<l.length;c+=1){const g=nc(s,l,c);r[c]?r[c].p(g,o):(r[c]=cc(g),r[c].c(),r[c].m(t,null))}for(;c<r.length;c+=1)r[c].d(1);r.length=l.length}o[0]&2&&n!==(n="fd-segmented-button enum-buttons-container-"+s[28]+" svelte-1tiapr5")&&f(t,"class",n)},d(s){s&&A(e),ct(r,s)}}}function cc(i){let e,t=i[12](i[32])+"",n,l,r,s,o,c,g,h;function _(){return i[23](i[28],i[32])}return{c(){e=k("button"),n=ye(t),l=K(),f(e,"class",r="lui-fd-enum-button fd-button fd-button--compact "+(i[0][i[1][0]][i[28]]===(i[32].value||i[32])?"is-selected":"")),f(e,"id",s=i[13]("lui-us-enum_button",i[28],i[32])),f(e,"data-testid",o=i[13]("lui-us-enum_button",i[28],i[32])),e.disabled=c=!(i[29].isEditable===void 0||i[29].isEditable)},m(p,m){E(p,e,m),w(e,n),w(e,l),g||(h=le(e,"click",_),g=!0)},p(p,m){i=p,m[0]&2&&t!==(t=i[12](i[32])+"")&&Ne(n,t),m[0]&3&&r!==(r="lui-fd-enum-button fd-button fd-button--compact "+(i[0][i[1][0]][i[28]]===(i[32].value||i[32])?"is-selected":""))&&f(e,"class",r),m[0]&2&&s!==(s=i[13]("lui-us-enum_button",i[28],i[32]))&&f(e,"id",s),m[0]&2&&o!==(o=i[13]("lui-us-enum_button",i[28],i[32]))&&f(e,"data-testid",o),m[0]&2&&c!==(c=!(i[29].isEditable===void 0||i[29].isEditable))&&(e.disabled=c)},d(p){p&&A(e),g=!1,h()}}}function dc(i){let e,t,n,l,r,s,o,c,g,h;function _(){i[24].call(n,i[28])}return{c(){e=k("label"),t=k("span"),n=k("input"),s=K(),o=k("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[28]),n.disabled=r=!(i[29].isEditable===void 0||i[29].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[28])},m(p,m){E(p,e,m),w(e,t),w(t,n),n.checked=i[0][i[1][0]][i[28]],w(t,s),w(t,o),g||(h=le(n,"change",_),g=!0)},p(p,m){i=p,m[0]&2&&l!==(l="lui-us-checkbox-switch_"+i[28])&&f(n,"data-testid",l),m[0]&2&&r!==(r=!(i[29].isEditable===void 0||i[29].isEditable))&&(n.disabled=r),m[0]&3&&(n.checked=i[0][i[1][0]][i[28]]),m[0]&2&&c!==(c="lui-us-label-switch_"+i[28])&&f(e,"data-testid",c)},d(p){p&&A(e),g=!1,h()}}}function hc(i){let e,t,n,l;function r(){i[25].call(e,i[28])}return{c(){e=k("input"),f(e,"type","checkbox"),f(e,"class","fd-checkbox"),e.disabled=t=!(i[29].isEditable===void 0||i[29].isEditable)},m(s,o){E(s,e,o),e.checked=i[0][i[1][0]][i[28]],n||(l=le(e,"change",r),n=!0)},p(s,o){i=s,o[0]&2&&t!==(t=!(i[29].isEditable===void 0||i[29].isEditable))&&(e.disabled=t),o[0]&3&&(e.checked=i[0][i[1][0]][i[28]])},d(s){s&&A(e),n=!1,l()}}}function gc(i){let e,t,n,l=i[5](i[29].label)+"",r,s,o,c,g,h,_=i[29].type==="enum"&&i[29].style==="button"&&Array.isArray(i[29].options),p,m,v,S=i[29].type==="string"&&sc(i),y=i[29].type==="enum"&&(i[29].style===void 0||i[29].style==="list")&&ac(i),C=_&&fc(i),N=i[29].type==="boolean"&&(!i[29].style||i[29].style==="switch")&&dc(i),I=i[29].type==="boolean"&&i[29].style==="checkbox"&&hc(i);return{c(){e=k("div"),t=k("div"),n=k("label"),r=ye(l),s=ye(":"),o=K(),c=k("div"),S&&S.c(),g=K(),y&&y.c(),h=K(),C&&C.c(),p=K(),N&&N.c(),m=K(),I&&I.c(),v=K(),f(n,"class","fd-form-label svelte-1tiapr5"),f(n,"for","fd-form-input-"+i[31]),f(t,"class","fd-col fd-col--4 svelte-1tiapr5"),f(c,"class","fd-col fd-col--8 svelte-1tiapr5"),f(e,"class","fd-row svelte-1tiapr5")},m(D,L){E(D,e,L),w(e,t),w(t,n),w(n,r),w(n,s),w(e,o),w(e,c),S&&S.m(c,null),w(c,g),y&&y.m(c,null),w(c,h),C&&C.m(c,null),w(c,p),N&&N.m(c,null),w(c,m),I&&I.m(c,null),w(e,v)},p(D,L){L[0]&34&&l!==(l=D[5](D[29].label)+"")&&Ne(r,l),D[29].type==="string"?S?S.p(D,L):(S=sc(D),S.c(),S.m(c,g)):S&&(S.d(1),S=null),D[29].type==="enum"&&(D[29].style===void 0||D[29].style==="list")?y?y.p(D,L):(y=ac(D),y.c(),y.m(c,h)):y&&(y.d(1),y=null),L[0]&2&&(_=D[29].type==="enum"&&D[29].style==="button"&&Array.isArray(D[29].options)),_?C?C.p(D,L):(C=fc(D),C.c(),C.m(c,p)):C&&(C.d(1),C=null),D[29].type==="boolean"&&(!D[29].style||D[29].style==="switch")?N?N.p(D,L):(N=dc(D),N.c(),N.m(c,m)):N&&(N.d(1),N=null),D[29].type==="boolean"&&D[29].style==="checkbox"?I?I.p(D,L):(I=hc(D),I.c(),I.m(c,null)):I&&(I.d(1),I=null)},d(D){D&&A(e),S&&S.d(),y&&y.d(),C&&C.d(),N&&N.d(),I&&I.d()}}}function Y2(i){let e,t,n,l=i[1]&&i[1][0]&&i[1][1]&&lc(i);return{c(){e=k("div"),l&&l.c(),f(e,"class","lui-usersettings-content svelte-1tiapr5")},m(r,s){E(r,e,s),l&&l.m(e,null),t||(n=[le(window,"click",i[7]),le(window,"blur",i[7])],t=!0)},p(r,s){r[1]&&r[1][0]&&r[1][1]?l?l.p(r,s):(l=lc(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:Fe,o:Fe,d(r){r&&A(e),l&&l.d(),t=!1,Qe(n)}}}function ra(i,e,t){if(i&&t>0)return i.matches(e)?i:ra(i.parentNode,e,t-1)}function Q2(i,e,t){let n,{userSettingGroup:l}=e,{userSettingsGroupKey:r}=e,{storedUserSettingData:s}=e;const o=Bt();let c=dt("getTranslation");pi(i,c,ee=>t(5,n=ee));let g,{isComboOpen:h}=e;function _(){o("updateSettingsObject",{storedUserSettingData:s})}const p=()=>{m()};function m(ee){document.querySelectorAll(".lui-usersettings-content .fd-popover__control").forEach(H=>{S(H,!1)})}function v(ee,H){let oe=ra(ee.target,".fd-popover__control",20),$=oe.getAttribute("aria-expanded")==="true";(H||H===void 0)&&(m(),S(oe,!$))}function S(ee,H){const oe=ee.querySelector(".lui-activate-language-dropdown"),$=ee.parentNode.querySelector(".fd-popover__body"),j=ee.parentNode.querySelector(".fd-select__control");ee.setAttribute("aria-expanded",H),$.setAttribute("aria-hidden",!H),j.setAttribute("aria-expanded",H),oe.setAttribute("aria-expanded",H),t(14,h=H)}function y(ee,H,oe){t(4,g=oe),t(0,s[l[0]][ee]=H.value||H,s)}function C(ee,H){document.querySelectorAll(".enum-buttons-container-"+ee+" button").forEach(oe=>{const $=oe.getAttribute("id"),j=`lui-us-enum_button_${ee}_option`;$===j?oe.classList.add("fd-button--emphasized"):oe.classList.remove("fd-button--emphasized")}),t(0,s[l[0]][ee]=H.value||H,s)}function N(ee,H){let oe;if(Array.isArray(H)){for(let $=0;$<H.length;$++)if(ne.isObject(H[$])){if(H[$].value&&H[$].value===ee){oe=H[$].label,t(4,g=$);break}}else{oe=ee,t(4,g=H.indexOf(ee));break}return n(oe)}}function I(ee){return n(ne.isObject(ee)?ee.label:ee)}function D(ee,H,oe){return ne.isObject(oe)?`${ee}_${H}_${oe.value}`:`${ee}_${H}_${oe}`}function L(ee,H,oe,$){let j=ra(ee.target,".lui-anchor-node",20);const Ce=document.getElementById(`fd-form-input-dropdown-${oe}`).children;let te=-1;if([...Ce].forEach((He,Pe)=>{He.classList.contains("is-focus")&&(te=Pe)}),h){if(ee.keyCode===Vl&&ee.altKey&&(j.click(),j.focus()),ee.keyCode===Mi&&!ee.altKey){if(te===-1){te=0,Ce.item(te).classList.add("is-focus");return}te<$.options.length-1&&(Ce.item(te).classList.remove("is-focus"),te+=1,Ce.item(te).classList.add("is-focus"))}if(ee.keyCode===Vl&&!ee.altKey){if(te===-1){te=te.length-1,Ce.item(te).classList.add("is-focus");return}te>0&&te<$.options.length&&(Ce.item(te).classList.remove("is-focus"),te-=1,Ce.item(te).classList.add("is-focus"))}ee.keyCode===_i&&y(H,$.options[te],te)}else j.focus(),ee.keyCode===Mi&&ee.altKey&&j.click(),ee.keyCode===Mi&&!ee.altKey&&te<$.options.length-1&&y(H,$.options[te+1],te+1),ee.keyCode===Vl&&!ee.altKey&&te>0&&te<$.options.length&&y(H,$.options[te-1],te-1)}function T(ee){if(h){let H=ra(ee.target,".fd-popover",20);H.blur(),(ee.keyCode===ma||ee.keyCode===_i)&&(ee.target.click(),m(),setTimeout(()=>{H.focus()},0))}}N();function V(ee){s[l[0]][ee]=this.value,t(0,s)}const O=(ee,H,oe,$)=>L($,ee,H,oe),U=ee=>v(event,ee.isEditable),z=(ee,H,oe)=>y(ee,H,oe),ae=ee=>T(ee),fe=(ee,H)=>C(ee,H);function X(ee){s[l[0]][ee]=this.checked,t(0,s)}function pe(ee){s[l[0]][ee]=this.checked,t(0,s)}return i.$$set=ee=>{"userSettingGroup"in ee&&t(1,l=ee.userSettingGroup),"userSettingsGroupKey"in ee&&t(15,r=ee.userSettingsGroupKey),"storedUserSettingData"in ee&&t(0,s=ee.storedUserSettingData),"isComboOpen"in ee&&t(14,h=ee.isComboOpen)},[s,l,L,T,g,n,c,m,v,y,C,N,I,D,h,r,_,p,V,O,U,z,ae,fe,X,pe]}class Z2 extends At{constructor(e){super(),Lt(this,e,Q2,Y2,Nt,{userSettingGroup:1,userSettingsGroupKey:15,storedUserSettingData:0,isComboOpen:14,updateSettingsObject:16,closeDropDown:17,handleKeyListDropdown:2,keyPressDropdownNode:3},null,[-1,-1])}get updateSettingsObject(){return this.$$.ctx[16]}get closeDropDown(){return this.$$.ctx[17]}get handleKeyListDropdown(){return this.$$.ctx[2]}get keyPressDropdownNode(){return this.$$.ctx[3]}}const{window:_c}=Fi;function pc(i,e,t){const n=i.slice();return n[31]=e[t][0],n[11]=e[t][1],n[37]=t,n}function mc(i,e,t){const n=i.slice();return n[38]=e[t],n}function bc(i){let e,t,n;function l(o,c){return c[0]&2&&(e=null),e==null&&(e=!!o[19](o[38][1])),e?$2:X2}let r=l(i,[-1,-1]),s=r(i);return{c(){s.c(),t=K(),n=k("i"),f(n,"role","presentation"),f(n,"class","sap-icon")},m(o,c){s.m(o,c),E(o,t,c),E(o,n,c)},p(o,c){r===(r=l(o,c))&&s?s.p(o,c):(s.d(1),s=r(o),s&&(s.c(),s.m(t.parentNode,t)))},d(o){s.d(o),o&&A(t),o&&A(n)}}}function X2(i){let e,t,n,l,r,s=i[38][1].initials&&vc(i);return{c(){e=k("span"),l=K(),s&&s.c(),r=Se(),f(e,"class",t=jn(i[38][1].iconClassAttribute||"fd-image--s fd-list__thumbnail")+" svelte-yylqtk"),f(e,"aria-label",n=i[38][1].altText?i[38][1].altText:""),ni(e,"background-image","url('"+i[38][1].icon+"')"),ni(e,"background-size","cover")},m(o,c){E(o,e,c),E(o,l,c),s&&s.m(o,c),E(o,r,c)},p(o,c){c[0]&2&&t!==(t=jn(o[38][1].iconClassAttribute||"fd-image--s fd-list__thumbnail")+" svelte-yylqtk")&&f(e,"class",t),c[0]&2&&n!==(n=o[38][1].altText?o[38][1].altText:"")&&f(e,"aria-label",n),c[0]&2&&ni(e,"background-image","url('"+o[38][1].icon+"')"),o[38][1].initials?s?s.p(o,c):(s=vc(o),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(o){o&&A(e),o&&A(l),s&&s.d(o),o&&A(r)}}}function $2(i){let e,t,n;return{c(){e=k("span"),t=k("i"),f(t,"role","presentation"),f(t,"class",n=jn(i[18](i[38][1].icon))+" svelte-yylqtk"),f(e,"class","fd-list__thumbnail")},m(l,r){E(l,e,r),w(e,t)},p(l,r){r[0]&2&&n!==(n=jn(l[18](l[38][1].icon))+" svelte-yylqtk")&&f(t,"class",n)},d(l){l&&A(e)}}}function vc(i){let e,t=(i[38][1].initials?i[38][1].initials:"")+"",n,l,r;return{c(){e=k("span"),n=ye(t),f(e,"class",l=jn(i[38][1].iconClassAttribute+" lui-profile-initials"||"fd-image--s fd-list__thumbnail")+" svelte-yylqtk"),f(e,"aria-label",r=i[38][1].altText?i[38][1].altText:"")},m(s,o){E(s,e,o),w(e,n)},p(s,o){o[0]&2&&t!==(t=(s[38][1].initials?s[38][1].initials:"")+"")&&Ne(n,t),o[0]&2&&l!==(l=jn(s[38][1].iconClassAttribute+" lui-profile-initials"||"fd-image--s fd-list__thumbnail")+" svelte-yylqtk")&&f(e,"class",l),o[0]&2&&r!==(r=s[38][1].altText?s[38][1].altText:"")&&f(e,"aria-label",r)},d(s){s&&A(e)}}}function wc(i){let e,t,n,l,r,s=i[10](i[38][1].label?i[38][1].label:"")+"",o,c,g,h=i[10](i[38][1].sublabel?i[38][1].sublabel:"")+"",_,p,m,v,S=i[38][1].icon&&bc(i);function y(){return i[22](i[38])}function C(...N){return i[23](i[37],...N)}return{c(){e=k("li"),t=k("a"),S&&S.c(),n=K(),l=k("div"),r=k("div"),o=ye(s),c=K(),g=k("div"),_=ye(h),p=K(),f(r,"class","fd-list__title"),f(g,"class","fd-list__byline svelte-yylqtk"),f(l,"class","fd-list__content"),f(t,"tabindex","-1"),f(t,"class","fd-list__link"),f(t,"href","#"),f(e,"role","listitem"),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(N,I){E(N,e,I),w(e,t),S&&S.m(t,null),w(t,n),w(t,l),w(l,r),w(r,o),w(l,c),w(l,g),w(g,_),w(e,p),m||(v=[le(e,"click",Rt(y)),le(e,"keydown",C)],m=!0)},p(N,I){i=N,i[38][1].icon?S?S.p(i,I):(S=bc(i),S.c(),S.m(t,n)):S&&(S.d(1),S=null),I[0]&1026&&s!==(s=i[10](i[38][1].label?i[38][1].label:"")+"")&&Ne(o,s),I[0]&1026&&h!==(h=i[10](i[38][1].sublabel?i[38][1].sublabel:"")+"")&&Ne(_,h)},d(N){N&&A(e),S&&S.d(),m=!1,Qe(v)}}}function Sc(i){let e,t=Object.entries(i[11]),n=[];for(let l=0;l<t.length;l+=1)n[l]=wc(mc(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=Se()},m(l,r){for(let s=0;s<n.length;s+=1)n[s].m(l,r);E(l,e,r)},p(l,r){if(r[0]&803846){t=Object.entries(l[11]);let s;for(s=0;s<t.length;s+=1){const o=mc(l,t,s);n[s]?n[s].p(o,r):(n[s]=wc(o),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){ct(n,l),l&&A(e)}}}function kc(i){let e,t,n,l;function r(c){i[24](c)}function s(c){i[25](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 Z2({props:o}),$e.push(()=>pt(e,"closeDropDown",r)),$e.push(()=>pt(e,"isComboOpen",s)),e.$on("updateSettingsObject",i[15]),{c(){qe(e.$$.fragment)},m(c,g){ze(e,c,g),l=!0},p(c,g){const h={};g[0]&1&&(h.storedUserSettingData=c[0]),g[0]&2048&&(h.userSettingGroup=c[11]),!t&&g[0]&512&&(t=!0,h.closeDropDown=c[9],_t(()=>t=!1)),!n&&g[0]&256&&(n=!0,h.isComboOpen=c[8],_t(()=>n=!1)),e.$set(h)},i(c){l||(F(e.$$.fragment,c),l=!0)},o(c){G(e.$$.fragment,c),l=!1},d(c){Ge(e,c)}}}function x2(i){let e,t,n,l,r,s,o,c=i[10](i[4])+"",g,h,_,p,m,v,S,y,C,N=i[10](i[7])+"",I,D,L,T,V,O,U,z,ae,fe,X,pe=i[10](i[5])+"",ee,H,oe,$,j=i[10](i[6])+"",Ce,te,He,Pe,ce=Object.entries(i[1]),Z=[];for(let re=0;re<ce.length;re+=1)Z[re]=Sc(pc(i,ce,re));let he=i[11]&&kc(i);return{c(){e=k("div"),t=k("div"),n=k("div"),l=k("div"),r=k("div"),s=k("div"),o=k("h2"),g=ye(c),h=K(),_=k("div"),p=k("ul");for(let re=0;re<Z.length;re+=1)Z[re].c();m=K(),v=k("div"),S=k("button"),S.innerHTML='<i class="sap-icon--navigation-left-arrow"></i>',y=K(),C=k("h2"),I=ye(N),D=K(),L=k("div"),T=k("div"),he&&he.c(),V=K(),O=k("div"),U=K(),z=k("footer"),ae=k("div"),fe=k("div"),X=k("button"),ee=ye(pe),H=K(),oe=k("div"),$=k("button"),Ce=ye(j),f(o,"class","fd-title fd-title--h5 svelte-yylqtk"),f(o,"id","dialog-title-2"),f(s,"class","fd-side-nav__group-header svelte-yylqtk"),f(p,"class","fd-list fd-list--byline fd-list--navigation lui-us-list"),f(p,"role","list"),f(_,"class","fd-side-nav__main-navigation lui-fd-side-nav__main-navigation svelte-yylqtk"),f(r,"class","fd-side-nav svelte-yylqtk"),f(l,"class","lui-usersettings-left-nav svelte-yylqtk"),f(S,"class","fd-button fd-button--transparent fd-button--compact lui-usersettings-content-header__back-btn svelte-yylqtk"),f(C,"class","fd-title fd-title--h5 svelte-yylqtk"),f(v,"class","fd-side-nav__group-header lui-usersettings-dialog-sub-header svelte-yylqtk"),f(T,"class","usersettingseditor mf-wrapper svelte-yylqtk"),f(O,"class","iframeUserSettingsCtn iframe-wrapper svelte-yylqtk"),f(L,"class","lui-usersettings-content svelte-yylqtk"),f(n,"class","fd-dialog__body lui-usersettings-body svelte-yylqtk"),f(X,"data-testid","lui-us-saveBtn"),f(X,"class","fd-dialog__decisive-button fd-button fd-button--emphasized fd-button--compact confirm-button"),f(fe,"class","fd-bar__element"),f($,"data-testid","lui-us-dismissBtn"),f($,"class","fd-dialog__decisive-button fd-button fd-button--transparent fd-button--compact"),f(oe,"class","fd-bar__element"),f(ae,"class","fd-bar__right"),f(z,"class","fd-dialog__footer fd-bar fd-bar--footer"),f(t,"class","fd-dialog__content lui-usersettings-dialog-size svelte-yylqtk"),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-yylqtk"),f(e,"tabindex","0")},m(re,De){E(re,e,De),w(e,t),w(t,n),w(n,l),w(l,r),w(r,s),w(s,o),w(o,g),w(r,h),w(r,_),w(_,p);for(let Me=0;Me<Z.length;Me+=1)Z[Me].m(p,null);w(n,m),w(n,v),w(v,S),w(v,y),w(v,C),w(C,I),w(n,D),w(n,L),w(L,T),he&&he.m(T,null),w(L,V),w(L,O),w(t,U),w(t,z),w(z,ae),w(ae,fe),w(fe,X),w(X,ee),w(ae,H),w(ae,oe),w(oe,$),w($,Ce),te=!0,He||(Pe=[le(_c,"resize",i[20]),le(_c,"keydown",i[3]),le(S,"click",i[17]),le(X,"click",i[26]),le($,"click",i[27])],He=!0)},p(re,De){if((!te||De[0]&1040)&&c!==(c=re[10](re[4])+"")&&Ne(g,c),De[0]&803846){ce=Object.entries(re[1]);let Me;for(Me=0;Me<ce.length;Me+=1){const me=pc(re,ce,Me);Z[Me]?Z[Me].p(me,De):(Z[Me]=Sc(me),Z[Me].c(),Z[Me].m(p,null))}for(;Me<Z.length;Me+=1)Z[Me].d(1);Z.length=ce.length}(!te||De[0]&1152)&&N!==(N=re[10](re[7])+"")&&Ne(I,N),re[11]?he?(he.p(re,De),De[0]&2048&&F(he,1)):(he=kc(re),he.c(),F(he,1),he.m(T,null)):he&&(Le(),G(he,1,1,()=>{he=null}),Ae()),(!te||De[0]&1056)&&pe!==(pe=re[10](re[5])+"")&&Ne(ee,pe),(!te||De[0]&1088)&&j!==(j=re[10](re[6])+"")&&Ne(Ce,j)},i(re){te||(F(he),te=!0)},o(re){G(he),te=!1},d(re){re&&A(e),ct(Z,re),he&&he.d(),He=!1,Qe(Pe)}}}function Cc(i,e){let t={};return i.forEach(n=>{for(let l in n){for(let r in n[l].settings)n[l].settings[r]="";t[l]={...n[l].settings,...e[l]}}}),t}function eS(){document.querySelector(".iframeUserSettingsCtn").style.display="block",document.querySelector(".usersettingseditor").style.display="none"}function tS(){document.querySelector(".iframeUserSettingsCtn").style.display="none",document.querySelector(".usersettingseditor").style.display="block"}function D_(i,e,t){if(i&&t>0)return i.matches(e)?i:D_(i.parentNode,e,t-1)}function yc(){document.querySelector(".usersettings-leftNavVisible")?document.querySelector(".confirm-button").style.display="block":document.querySelector(".confirm-button").style.display="none"}function nS(i,e,t){let n,{schemaObj:l}=e,{userSettingGroups:r}=e;const s=Bt();let o,{storedUserSettings:c={}}=e,g={},h=dt("getTranslation");pi(i,h,te=>t(10,n=te));let _=ol.userSettingsDialog.dialogHeader,p=ol.userSettingsDialog.saveBtn,m=ol.userSettingsDialog.dismissBtn,v={},S,y,C,N;xr(()=>{Ie.enableA11YKeyboardBackdropExceptClassName(".lui-usersettings-dialog")}),jt(()=>{const te=ie.getConfigValue("userSettings.userSettingsDialog"),He=te||ie.getConfigValue("settings.userSettings.userSettingsDialog");He&&(t(4,_=He.dialogHeader?He.dialogHeader:_),t(5,p=He.saveBtn?He.saveBtn:p),t(6,m=He.dismissBtn?He.dismissBtn:m)),S=Object.keys(r[0]).length>0?Object.keys(r[0])[0]:void 0,Nn.addEventListener("message",Pe=>{const ce=Ie.getValidMessageSource(Pe);if(!ce||Pe.data.msg!=="custom")return;ce._ready=!0;const Z=ca.convertCustomMessageInternalToUser(Pe.data),he="luigi.updateUserSettings";if(Z.id===he){const re=ur.findActiveCustomUserSettingsIframe(Pe.source);if(re){let De=re.getAttribute("userSettingsGroup");t(0,c[De]=Z.data,c)}}Z.id==="luigi.navBackMobile"&&window.window.innerWidth!==0&&window.innerWidth<$t.desktopMinWidth&&O()}),ie.readUserSettings().then(Pe=>{g=JSON.parse(JSON.stringify(Pe)),Pe===null?t(0,c=Cc(JSON.parse(JSON.stringify(r)),{})):t(0,c=Cc(JSON.parse(JSON.stringify(r)),Pe)),D([S,r[0][S]])}).catch(Pe=>{Pe&&Pe.message&&console.error(Pe.message),Pe&&Pe.closeDialog&&s("close")}),Ie.disableA11YKeyboardExceptClassName(".lui-usersettings-dialog")});function I(te){if(t(7,y=te.title?te.title:""),!!ne.isObject(te.settings))for(let He in te.settings){let Pe=te.settings[He];Pe.type==="enum"?Array.isArray(Pe.options)||console.error(`There is no options array for '${He}' defined in the Luigi userSettings config.`):Pe.type===void 0&&console.error(`There is no data type defined for '${He}' in the Luigi userSettings config.`)}}function D(te,He){t(11,o=te);let Pe=te[0],ce=te[1];if(I(ce),He?(document.querySelectorAll(".lui-us-list .lui-us-navlist__item").forEach(he=>{he.classList.remove("is-selected")}),D_(He.target,".lui-us-navlist__item",20).classList.add("is-selected"),window.innerWidth<$t.desktopMinWidth&&V()):(document.querySelectorAll(".lui-us-list .lui-us-navlist__item")[0].classList.add("is-selected"),window.innerWidth!==0&&window.innerWidth<$t.desktopMinWidth&&yc()),ce.viewUrl){if(ur.hideUserSettingsIframe(),v.hasOwnProperty(Pe))ur.getUserSettingsIframesInDom().forEach(Z=>{Z.userSettingsGroup===Pe&&(Z.style.display="block")});else{const Z=$r.hasDecorators()?$r.applyDecorators(ce.viewUrl):ce.viewUrl;let he=ur.createIframe(Z,Pe);v[Pe]=he}eS()}else tS()}const L=te=>{t(0,c=te.detail.userSettings)};function T(){ie.storeUserSettings(c,g).then(()=>{s("close")}).catch(te=>{te&&te.message&&console.error(te.message),te&&te.closeDialog&&s("close")})}function V(){O()}function O(){document.querySelector(".lui-usersettings-dialog").classList.toggle("usersettings-leftNavVisible"),window.innerWidth!==0&&window.innerWidth<$t.desktopMinWidth&&yc()}function U(te){return ke.renderIconClassName(te)}function z(te){return ke.isOpenUIiconName(te.icon)}let ae;const fe=()=>{const te=window.innerWidth>=$t.desktopMinWidth&&ae<$t.desktopMinWidth;if(window.innerWidth<$t.desktopMinWidth&&ae>=$t.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"),te&&(document.querySelector(".confirm-button").style.display="block"),!ae){let Pe=document.querySelector(".confirm-button");window.innerWidth<$t.desktopMinWidth?Pe.style.display="none":Pe.style.display="block"}ae=window.innerWidth};function X(te,He){let Pe=document.querySelectorAll(".lui-us-list .lui-us-navlist__item");(te.keyCode===_i||te.keyCode===ma)&&Pe[He].click(),te.keyCode===F2&&Pe[Object.keys(r).length-1].focus(),te.keyCode===O2&&Pe[0].focus()}function pe(te){te.keyCode===gi&&C?N():te.keyCode===gi&&!C&&s("close")}const ee=te=>D(te,event),H=(te,He)=>X(He,[te]);function oe(te){N=te,t(9,N)}function $(te){C=te,t(8,C)}const j=()=>T(),Ce=()=>s("close");return i.$$set=te=>{"schemaObj"in te&&t(21,l=te.schemaObj),"userSettingGroups"in te&&t(1,r=te.userSettingGroups),"storedUserSettings"in te&&t(0,c=te.storedUserSettings)},[c,r,X,pe,_,p,m,y,C,N,n,o,s,h,D,L,T,O,U,z,fe,l,ee,H,oe,$,j,Ce]}class iS extends At{constructor(e){super(),Lt(this,e,nS,x2,Nt,{schemaObj:21,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:lS}=Fi;function rS(i){let e;return{c(){e=k("div"),f(e,"class","iframeSplitViewCnt svelte-je1rr")},m(t,n){E(t,e,n)},p:Fe,d(t){t&&A(e)}}}function sS(i){let e,t,n,l,r=i[1].title+"",s,o,c;return{c(){e=k("div"),t=k("a"),t.innerHTML='<i class="sap-icon sap-icon--navigation-up-arrow"></i>',n=K(),l=k("h1"),s=ye(r),f(t,"class","lui-collapse-btn svelte-je1rr"),f(e,"id","splitViewDraggerCollapsed"),f(e,"class","splitViewSeparator isCollapsed svelte-je1rr"),f(l,"class","fd-splitView__title svelte-je1rr")},m(g,h){E(g,e,h),w(e,t),E(g,n,h),E(g,l,h),w(l,s),o||(c=le(t,"click",Ft(Rt(i[4]))),o=!0)},p(g,h){h&2&&r!==(r=g[1].title+"")&&Ne(s,r)},d(g){g&&A(e),g&&A(n),g&&A(l),o=!1,c()}}}function Pc(i){let e,t,n,l,r,s,o,c;return{c(){e=k("div"),t=K(),n=k("div"),l=k("div"),r=K(),s=k("a"),s.innerHTML='<i class="sap-icon sap-icon--navigation-down-arrow"></i>',f(e,"id","splitViewDraggerBackdrop"),f(l,"class","splitViewSeparator"),f(s,"class","lui-collapse-btn svelte-je1rr"),f(n,"id","splitViewDragger")},m(g,h){E(g,e,h),E(g,t,h),E(g,n,h),w(n,l),w(n,r),w(n,s),o||(c=[le(s,"click",Ft(Rt(i[3]))),le(n,"mousedown",Ft(i[6]))],o=!0)},p:Fe,d(g){g&&A(e),g&&A(t),g&&A(n),o=!1,Qe(c)}}}function aS(i){let e,t,n,l,r,s,o,c,g,h;t=new ts({props:{area:"split-view",disable:i[2]}}),t.$on("stateChanged",i[7]);function _(S,y){return S[0]?sS:rS}let p=_(i),m=p(i),v=!i[0]&&Pc(i);return{c(){e=k("div"),qe(t.$$.fragment),n=K(),l=k("div"),m.c(),s=K(),v&&v.c(),o=Se(),f(l,"class","lui-split-view svelte-je1rr"),f(e,"id","splitViewContainer"),f(e,"class",r="fd-page splitViewContainer "+(i[0]?"lui-collapsed":""))},m(S,y){E(S,e,y),ze(t,e,null),w(e,n),w(e,l),m.m(l,null),E(S,s,y),v&&v.m(S,y),E(S,o,y),c=!0,g||(h=le(lS,"resize",i[5]),g=!0)},p(S,[y]){const C={};y&4&&(C.disable=S[2]),t.$set(C),p===(p=_(S))&&m?m.p(S,y):(m.d(1),m=p(S),m&&(m.c(),m.m(l,null))),(!c||y&1&&r!==(r="fd-page splitViewContainer "+(S[0]?"lui-collapsed":"")))&&f(e,"class",r),S[0]?v&&(v.d(1),v=null):v?v.p(S,y):(v=Pc(S),v.c(),v.m(o.parentNode,o))},i(S){c||(F(t.$$.fragment,S),c=!0)},o(S){G(t.$$.fragment,S),c=!1},d(S){S&&A(e),Ge(t),m.d(),S&&A(s),v&&v.d(S),S&&A(o),g=!1,h()}}}function oS(i,e,t){const n=Bt();let l={draggable:null,iframe:null,split:null},r,s,o,c,g,h,_,p,m,{nodepath:v}=e,{collapsed:S}=e,{splitViewSettings:y={}}=e,{isDataPrepared:C=!1}=e,{disableBackdrop:N}=e,I=!1,D=dt("getUnsavedChangesModalPromise");const L=()=>({get:()=>({collapsed:S,splitViewSettings:y,isDataPrepared:C,lastNode:r,pathData:s,nodeParams:o,currentNode:c,splitViewIframe:h,splitViewIframeData:_,splitViewWC:p,splitViewWCData:m}),set:H=>{H&&Object.getOwnPropertyNames(H).forEach(oe=>{oe==="splitViewSettings"?t(1,y=H.splitViewSettings):oe==="lastNode"?r=H.lastNode:oe==="pathData"?s=H.pathData:oe==="nodeParams"?o=H.nodeParams:oe==="collapsed"?t(0,S=H.collapsed):oe==="isDataPrepared"?t(8,C=H.isDataPrepared):oe==="currentNode"?c=H.currentNode:oe==="splitViewIframe"?h=H.splitViewIframe:oe==="splitViewIframeData"?_=H.splitViewIframeData:oe==="splitViewWC"?p=H.splitViewWC:oe==="splitViewWCData"&&(m=H.splitViewWCData)})},dispatch:n,getUnsavedChangesModalPromise:D}),T=async()=>{C?S||rt.createAndSetView(L()):await rt.prepareSplitViewData(L(),v)},V=()=>{l.split=rt.getContainer(),l.iframe=Ie.getIframeContainer(),l.draggable=rt.getDragger()},O=()=>{const H=rt.getDraggerBackdrop();H&&(H.style.display="none"),V(),l.draggable&&(l.draggable.style.top=`${rt.splitViewValues.top}px`),l.split.style.top=`${rt.splitViewValues.top}px`,l.iframe.style.marginBottom=`${rt.splitViewValues.bottom}px`};function U(H){if(!!Ie.getValidMessageSource(H)&&(H.data.msg==="luigi.navigation.splitview.close"&&rt.close(L()),H.data.msg==="luigi.navigation.splitview.collapse"&&z(),H.data.msg==="luigi.navigation.splitview.expand"&&ae(),H.data.msg==="luigi.navigation.splitview.resize")){const oe=parseInt(H.data.data);if(rt.calculateAndSetSplitViewValues(oe,rt.internalValues),S)return;O(),rt.sendMessageToClients("resize.ok",rt.splitViewValues.percent)}}jt(()=>{fe(),g=U.bind(this),Nn.addEventListener("message",g)}),pa(()=>{T(),I!==C&&!S&&(I=C,O())}),xr(()=>{window.removeEventListener("message",g)});function z(){rt.collapse(L())}async function ae(){await rt.expand(L()),l.draggerBackdrop&&(l.draggerBackdrop.style.display="none")}function fe(){const H=ne.getShellbarHeight();rt.internalValues.innerHeight=ne.getInnerHeight(),rt.internalValues.rightContentHeight=rt.internalValues.innerHeight-H,rt.internalValues.thresholdBottom=30,rt.internalValues.thresholdTop=H+30,rt.calculateAndSetSplitViewValues(rt.splitViewValues.percent,rt.internalValues),S||O()}function X(H){let oe=H.y,$={};const j=function(ce){const Z=oe-ce.y,he=parseInt(getComputedStyle(l.draggable,"").top);if(isNaN(he)||Z===0)return;const re=he-Z,De=rt.internalValues.innerHeight-re,Me=rt.enforceTresholds(re,De);re<Me.top||De<Me.bottom||($=Me,oe=ce.y,l.draggable.style.top=`${$.top}px`)},Ce=function(){if(te(),!$.top||!$.bottom||$.top==rt.internalValues.m_pos_prev){rt.getDraggerBackdrop().style.display="none";return}rt.internalValues.m_pos_prev=$.top,rt.splitViewValues=$,O(),rt.sendMessageToClients("resize.ok",$.percent)},te=function(){document.removeEventListener("mouseup",Ce),document.removeEventListener("mousemove",j)},He=function(){document.addEventListener("mouseup",Ce),document.addEventListener("mousemove",j)};V(),te(),He(),rt.getDraggerBackdrop().style.display="block"}const pe=H=>{let oe=rt.getDraggerButton();oe&&(oe.style.display=H?"block":"none"),oe=rt.getCollapsedDraggerButton(),oe&&(oe.style.display=H?"block":"none")},ee=H=>{pe(!H.detail||H.detail.backdropActive!==!0)};return i.$$set=H=>{"nodepath"in H&&t(9,v=H.nodepath),"collapsed"in H&&t(0,S=H.collapsed),"splitViewSettings"in H&&t(1,y=H.splitViewSettings),"isDataPrepared"in H&&t(8,C=H.isDataPrepared),"disableBackdrop"in H&&t(2,N=H.disableBackdrop)},[S,y,N,z,ae,fe,X,ee,C,v]}class uS extends At{constructor(e){super(),Lt(this,e,oS,aS,Nt,{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 Nc(i){let e,t,n={ctx:i,current:null,token:null,hasCatch:!1,pending:dS,then:cS,catch:fS,value:1};return ua(t=i[0].badgeCounter.count(),n),{c(){e=Se(),n.block.c()},m(l,r){E(l,e,r),n.block.m(l,n.anchor=r),n.mount=()=>e.parentNode,n.anchor=e},p(l,r){i=l,n.ctx=i,r&1&&t!==(t=i[0].badgeCounter.count())&&ua(t,n)||w_(n,i,r)},d(l){l&&A(e),n.block.d(l),n.token=null,n=null}}}function fS(i){return{c:Fe,m:Fe,p:Fe,d:Fe}}function cS(i){let e,t=i[1]>0&&Ic(i);return{c(){t&&t.c(),e=Se()},m(n,l){t&&t.m(n,l),E(n,e,l)},p(n,l){n[1]>0?t?t.p(n,l):(t=Ic(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function Ic(i){let e,t=i[1]+"",n,l;return{c(){e=k("span"),n=ye(t),f(e,"class","fd-counter fd-counter--notification fd-shellbar__counter--notification svelte-1jffokm"),f(e,"aria-label",l=i[0].badgeCounter.label)},m(r,s){E(r,e,s),w(e,n)},p(r,s){s&1&&t!==(t=r[1]+"")&&Ne(n,t),s&1&&l!==(l=r[0].badgeCounter.label)&&f(e,"aria-label",l)},d(r){r&&A(e)}}}function dS(i){return{c:Fe,m:Fe,p:Fe,d:Fe}}function hS(i){let e,t=i[0]&&i[0].badgeCounter&&Nc(i);return{c(){t&&t.c(),e=Se()},m(n,l){t&&t.m(n,l),E(n,e,l)},p(n,[l]){n[0]&&n[0].badgeCounter?t?t.p(n,l):(t=Nc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Fe,o:Fe,d(n){t&&t.d(n),n&&A(e)}}}function gS(i,e,t){let{node:n}=e;return i.$$set=l=>{"node"in l&&t(0,n=l.node)},[n]}class Yn extends At{constructor(e){super(),Lt(this,e,gS,hS,Nt,{node:0})}}function Tc(i){let e,t,n=i[0].statusBadge.label+"",l;return{c(){e=k("span"),t=k("span"),l=ye(n),f(t,"class","fd-object-status__text"),f(e,"class","fd-object-status fd-object-status--"+i[1]+" fd-object-status--inverted svelte-1c6n42g")},m(r,s){E(r,e,s),w(e,t),w(t,l)},p(r,s){s&1&&n!==(n=r[0].statusBadge.label+"")&&Ne(l,n)},d(r){r&&A(e)}}}function _S(i){let e,t=i[0].statusBadge&&i[0].statusBadge.label&&Tc(i);return{c(){t&&t.c(),e=Se()},m(n,l){t&&t.m(n,l),E(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:Fe,o:Fe,d(n){t&&t.d(n),n&&A(e)}}}function pS(i,e,t){let{node:n}=e;const l=["negative","positive","critical","informative"],r=n&&n.statusBadge&&n.statusBadge.type,s=l.includes(r)?r:"neutral";return i.$$set=o=>{"node"in o&&t(0,n=o.node)},[n,s]}class ns extends At{constructor(e){super(),Lt(this,e,pS,_S,Nt,{node:0})}}const{window:na}=Fi;function Lc(i,e,t){const n=i.slice();return n[67]=e[t][0],n[68]=e[t][1],n[70]=t,n}function Ac(i,e,t){const n=i.slice();return n[71]=e[t],n}function Ec(i,e,t){const n=i.slice();return n[71]=e[t],n}function Rc(i,e,t){const n=i.slice();return n[71]=e[t],n}function Dc(i,e,t){const n=i.slice();return n[71]=e[t],n}function Vc(i){let e,t,n,l,r,s,o=i[24](i[12].label)+"",c,g,h,_=i[12].icon&&Mc(i),p=i[12].showUpLink&&Oc(i);return{c(){e=k("div"),t=k("ul"),n=k("li"),l=k("a"),_&&_.c(),r=K(),s=k("span"),c=ye(o),g=K(),p&&p.c(),f(s,"class","fd-nested-list__title svelte-1f9ma6n"),f(l,"class","fd-nested-list__link svelte-1f9ma6n"),f(l,"title",h=i[32](i[12],i[24](i[12].label))),f(n,"class","fd-nested-list__item svelte-1f9ma6n"),f(t,"class","fd-nested-list svelte-1f9ma6n"),f(e,"class","lui-nav-title svelte-1f9ma6n")},m(m,v){E(m,e,v),w(e,t),w(t,n),w(n,l),_&&_.m(l,null),w(l,r),w(l,s),w(s,c),w(l,g),p&&p.m(l,null)},p(m,v){m[12].icon?_?_.p(m,v):(_=Mc(m),_.c(),_.m(l,r)):_&&(_.d(1),_=null),v[0]&16781312&&o!==(o=m[24](m[12].label)+"")&&Ne(c,o),m[12].showUpLink?p?p.p(m,v):(p=Oc(m),p.c(),p.m(l,null)):p&&(p.d(1),p=null),v[0]&16781312&&h!==(h=m[32](m[12],m[24](m[12].label)))&&f(l,"title",h)},d(m){m&&A(e),_&&_.d(),p&&p.d()}}}function Mc(i){let e,t;function n(s,o){return o[0]&4096&&(e=null),e==null&&(e=!!s[28](s[12].icon)),e?bS:mS}let l=n(i,[-1,-1,-1]),r=l(i);return{c(){r.c(),t=Se()},m(s,o){r.m(s,o),E(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function mS(i){let e,t,n,l;return{c(){e=k("span"),t=k("img"),it(t.src,n=i[12].icon)||f(t,"src",n),f(t,"alt",l=i[12].altText?i[12].altText:""),f(t,"class","svelte-1f9ma6n"),f(e,"class","fd-nested-list__icon sap-icon svelte-1f9ma6n")},m(r,s){E(r,e,s),w(e,t)},p(r,s){s[0]&4096&&!it(t.src,n=r[12].icon)&&f(t,"src",n),s[0]&4096&&l!==(l=r[12].altText?r[12].altText:"")&&f(t,"alt",l)},d(r){r&&A(e)}}}function bS(i){let e,t;return{c(){e=k("i"),f(e,"class",t="lui-header-icon fd-nested-list__icon sap-icon "+i[27](i[12].icon)+" svelte-1f9ma6n"),f(e,"role","presentation")},m(n,l){E(n,e,l)},p(n,l){l[0]&4096&&t!==(t="lui-header-icon fd-nested-list__icon sap-icon "+n[27](n[12].icon)+" svelte-1f9ma6n")&&f(e,"class",t)},d(n){n&&A(e)}}}function Oc(i){let e,t,n,l;return{c(){e=k("i"),f(e,"class","lui-nav-up fd-nested-list__icon sap-icon sap-icon--navigation-up-arrow svelte-1f9ma6n"),f(e,"role","presentation"),f(e,"title",t=i[24]("luigi.navigation.up"))},m(r,s){E(r,e,s),n||(l=le(e,"click",Rt(i[19])),n=!0)},p(r,s){s[0]&16777216&&t!==(t=r[24]("luigi.navigation.up"))&&f(e,"title",t)},d(r){r&&A(e),n=!1,l()}}}function Fc(i){let e,t,n,l,r=i[13],s=[];for(let c=0;c<r.length;c+=1)s[c]=ad(Lc(i,r,c));const o=c=>G(s[c],1,1,()=>{s[c]=null});return{c(){e=k("div"),t=k("ul");for(let c=0;c<s.length;c+=1)s[c].c();f(t,"class",n="fd-nested-list "+(i[22]?"fd-nested-list fd-nested-list--compact":"fd-nested-list")+" svelte-1f9ma6n"),f(e,"class","lui-fd-side-nav-wrapper svelte-1f9ma6n")},m(c,g){E(c,e,g),w(e,t);for(let h=0;h<s.length;h+=1)s[h].m(t,null);l=!0},p(c,g){if(g[0]&2106714048|g[1]&227){r=c[13];let h;for(h=0;h<r.length;h+=1){const _=Lc(c,r,h);s[h]?(s[h].p(_,g),F(s[h],1)):(s[h]=ad(_),s[h].c(),F(s[h],1),s[h].m(t,null))}for(Le(),h=r.length;h<s.length;h+=1)o(h);Ae()}(!l||g[0]&4194304&&n!==(n="fd-nested-list "+(c[22]?"fd-nested-list fd-nested-list--compact":"fd-nested-list")+" svelte-1f9ma6n"))&&f(t,"class",n)},i(c){if(!l){for(let g=0;g<r.length;g+=1)F(s[g]);l=!0}},o(c){s=s.filter(Boolean);for(let g=0;g<s.length;g+=1)G(s[g]);l=!1},d(c){c&&A(e),ct(s,c)}}}function vS(i){let e,t,n,l;const r=[kS,SS],s=[];function o(c,g){return c[68].metaInfo.collapsible?0:1}return e=o(i),t=s[e]=r[e](i),{c(){t.c(),n=Se()},m(c,g){s[e].m(c,g),E(c,n,g),l=!0},p(c,g){let h=e;e=o(c),e===h?s[e].p(c,g):(Le(),G(s[h],1,1,()=>{s[h]=null}),Ae(),t=s[e],t?t.p(c,g):(t=s[e]=r[e](c),t.c()),F(t,1),t.m(n.parentNode,n))},i(c){l||(F(t),l=!0)},o(c){G(t),l=!1},d(c){s[e].d(c),c&&A(n)}}}function wS(i){let e,t,n=i[68],l=[];for(let s=0;s<n.length;s+=1)l[s]=sd(Dc(i,n,s));const r=s=>G(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s<l.length;s+=1)l[s].c();e=Se()},m(s,o){for(let c=0;c<l.length;c+=1)l[c].m(s,o);E(s,e,o),t=!0},p(s,o){if(o[0]&2088804544|o[1]&66){n=s[68];let c;for(c=0;c<n.length;c+=1){const g=Dc(s,n,c);l[c]?(l[c].p(g,o),F(l[c],1)):(l[c]=sd(g),l[c].c(),F(l[c],1),l[c].m(e.parentNode,e))}for(Le(),c=n.length;c<l.length;c+=1)r(c);Ae()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)F(l[o]);t=!0}},o(s){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)G(l[o]);t=!1},d(s){ct(l,s),s&&A(e)}}}function SS(i){let e,t,n=i[24](i[67])+"",l,r,s,o,c,g,h=i[10]&&i[68].metaInfo.icon&&Uc(i),_=i[68],p=[];for(let v=0;v<_.length;v+=1)p[v]=qc(Ac(i,_,v));const m=v=>G(p[v],1,1,()=>{p[v]=null});return{c(){e=k("li"),h&&h.c(),t=K(),l=ye(n),o=K();for(let v=0;v<p.length;v+=1)p[v].c();c=Se(),f(e,"class","fd-nested-list__group-header lui-category svelte-1f9ma6n"),f(e,"title",r=i[32](i[68],i[24](i[67]))),f(e,"data-testid",s=i[31](i[68].metaInfo,i[67])),f(e,"id","category_list_level1_"+i[70])},m(v,S){E(v,e,S),h&&h.m(e,null),w(e,t),w(e,l),E(v,o,S);for(let y=0;y<p.length;y+=1)p[y].m(v,S);E(v,c,S),g=!0},p(v,S){if(v[10]&&v[68].metaInfo.icon?h?h.p(v,S):(h=Uc(v),h.c(),h.m(e,t)):h&&(h.d(1),h=null),(!g||S[0]&16785408)&&n!==(n=v[24](v[67])+"")&&Ne(l,n),(!g||S[0]&16785408&&r!==(r=v[32](v[68],v[24](v[67]))))&&f(e,"title",r),(!g||S[0]&8192&&s!==(s=v[31](v[68].metaInfo,v[67])))&&f(e,"data-testid",s),S[0]&2088804544|S[1]&66){_=v[68];let y;for(y=0;y<_.length;y+=1){const C=Ac(v,_,y);p[y]?(p[y].p(C,S),F(p[y],1)):(p[y]=qc(C),p[y].c(),F(p[y],1),p[y].m(c.parentNode,c))}for(Le(),y=_.length;y<p.length;y+=1)m(y);Ae()}},i(v){if(!g){for(let S=0;S<_.length;S+=1)F(p[S]);g=!0}},o(v){p=p.filter(Boolean);for(let S=0;S<p.length;S+=1)G(p[S]);g=!1},d(v){v&&A(e),h&&h.d(),v&&A(o),ct(p,v),v&&A(c)}}}function kS(i){let e,t,n,l,r,s,o=i[24](i[67])+"",c,g,h,_,p,m,v,S,y,C,N,I,D,L,T,V,O,U,z,ae,fe,X;function pe(Z,he){return he[0]&8192&&(l=null),l==null&&(l=!!Z[28](Z[68].metaInfo.icon)),l?AS:LS}let ee=pe(i,[-1,-1,-1]),H=ee(i);function oe(){return i[46](i[68])}function $(){return i[47](i[68])}function j(...Z){return i[48](i[68],...Z)}let Ce=i[68],te=[];for(let Z=0;Z<Ce.length;Z+=1)te[Z]=Qc(Rc(i,Ce,Z));const He=Z=>G(te[Z],1,1,()=>{te[Z]=null});let Pe=i[68].metaInfo&&i[68].metaInfo.label===i[8]&&Zc(i);function ce(){return i[53](i[68])}return{c(){e=k("li"),t=k("div"),n=k("a"),H.c(),r=K(),s=k("span"),c=ye(o),v=K(),S=k("button"),y=k("i"),L=K(),T=k("ul");for(let Z=0;Z<te.length;Z+=1)te[Z].c();O=K(),Pe&&Pe.c(),U=K(),f(s,"class","fd-nested-list__title svelte-1f9ma6n"),f(n,"title",g=i[32](i[68],i[24](i[67]))),f(n,"class",h="fd-nested-list__link "+(pn(i[68],i[9])?"is-expanded":"")+" svelte-1f9ma6n"),f(n,"tabindex",_=i[6]?"-1":"0"),f(n,"role",p=i[23]?void 0:"button"),f(n,"id","collapsible_listnode_"+i[70]),f(n,"aria-haspopup","true"),f(n,"aria-expanded",m=pn(i[68],i[9])),f(y,"class",C=pn(i[68],i[9])?"sap-icon--navigation-down-arrow":"sap-icon--navigation-right-arrow"),f(y,"role","presentation"),f(S,"class","fd-button fd-nested-list__button svelte-1f9ma6n"),f(S,"href","#"),f(S,"tabindex","0"),f(S,"aria-label","Expand categories"),f(S,"aria-haspopup","true"),f(S,"aria-expanded",N=pn(i[68],i[9])),f(S,"title",I=i[38](i[68],i[9])),f(t,"class","fd-nested-list__content has-child svelte-1f9ma6n"),f(t,"tabindex",D=i[6]?"0":"-1"),f(T,"class","fd-nested-list fd-nested-list--text-only level-2 svelte-1f9ma6n"),f(T,"aria-hidden",V=!pn(i[68],i[9])),f(e,"class","fd-nested-list__item lui-collapsible-item"),f(e,"data-testid",z=i[31](i[68].metaInfo,i[67])),di(e,"lui-item-expanded",pn(i[68],i[9]))},m(Z,he){E(Z,e,he),w(e,t),w(t,n),H.m(n,null),w(n,r),w(n,s),w(s,c),w(t,v),w(t,S),w(S,y),w(e,L),w(e,T);for(let re=0;re<te.length;re+=1)te[re].m(T,null);w(e,O),Pe&&Pe.m(e,null),w(e,U),ae=!0,fe||(X=[le(n,"click",Rt(oe)),le(S,"click",Rt($)),le(t,"keypress",j),le(e,"click",Ft(ce))],fe=!0)},p(Z,he){if(i=Z,ee===(ee=pe(i,he))&&H?H.p(i,he):(H.d(1),H=ee(i),H&&(H.c(),H.m(n,r))),(!ae||he[0]&16785408)&&o!==(o=i[24](i[67])+"")&&Ne(c,o),(!ae||he[0]&16785408&&g!==(g=i[32](i[68],i[24](i[67]))))&&f(n,"title",g),(!ae||he[0]&8704&&h!==(h="fd-nested-list__link "+(pn(i[68],i[9])?"is-expanded":"")+" svelte-1f9ma6n"))&&f(n,"class",h),(!ae||he[0]&64&&_!==(_=i[6]?"-1":"0"))&&f(n,"tabindex",_),(!ae||he[0]&8388608&&p!==(p=i[23]?void 0:"button"))&&f(n,"role",p),(!ae||he[0]&8704&&m!==(m=pn(i[68],i[9])))&&f(n,"aria-expanded",m),(!ae||he[0]&8704&&C!==(C=pn(i[68],i[9])?"sap-icon--navigation-down-arrow":"sap-icon--navigation-right-arrow"))&&f(y,"class",C),(!ae||he[0]&8704&&N!==(N=pn(i[68],i[9])))&&f(S,"aria-expanded",N),(!ae||he[0]&8704&&I!==(I=i[38](i[68],i[9])))&&f(S,"title",I),(!ae||he[0]&64&&D!==(D=i[6]?"0":"-1"))&&f(t,"tabindex",D),he[0]&1686151296|he[1]&66){Ce=i[68];let re;for(re=0;re<Ce.length;re+=1){const De=Rc(i,Ce,re);te[re]?(te[re].p(De,he),F(te[re],1)):(te[re]=Qc(De),te[re].c(),F(te[re],1),te[re].m(T,null))}for(Le(),re=Ce.length;re<te.length;re+=1)He(re);Ae()}(!ae||he[0]&8704&&V!==(V=!pn(i[68],i[9])))&&f(T,"aria-hidden",V),i[68].metaInfo&&i[68].metaInfo.label===i[8]?Pe?(Pe.p(i,he),he[0]&8448&&F(Pe,1)):(Pe=Zc(i),Pe.c(),F(Pe,1),Pe.m(e,U)):Pe&&(Le(),G(Pe,1,1,()=>{Pe=null}),Ae()),(!ae||he[0]&8192&&z!==(z=i[31](i[68].metaInfo,i[67])))&&f(e,"data-testid",z),(!ae||he[0]&8704)&&di(e,"lui-item-expanded",pn(i[68],i[9]))},i(Z){if(!ae){for(let he=0;he<Ce.length;he+=1)F(te[he]);F(Pe),ae=!0}},o(Z){te=te.filter(Boolean);for(let he=0;he<te.length;he+=1)G(te[he]);G(Pe),ae=!1},d(Z){Z&&A(e),H.d(),ct(te,Z),Pe&&Pe.d(),fe=!1,Qe(X)}}}function Uc(i){let e,t;function n(s,o){return o[0]&8192&&(e=null),e==null&&(e=!!s[28](s[68].metaInfo.icon)),e?yS:CS}let l=n(i,[-1,-1,-1]),r=l(i);return{c(){r.c(),t=Se()},m(s,o){r.m(s,o),E(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function CS(i){let e,t,n,l;return{c(){e=k("span"),t=k("img"),it(t.src,n=i[68].metaInfo.icon)||f(t,"src",n),f(t,"alt",l=i[68].metaInfo.altText?i[68].metaInfo.altText:""),f(t,"class","svelte-1f9ma6n"),f(e,"class","fd-nested-list__icon sap-icon svelte-1f9ma6n")},m(r,s){E(r,e,s),w(e,t)},p(r,s){s[0]&8192&&!it(t.src,n=r[68].metaInfo.icon)&&f(t,"src",n),s[0]&8192&&l!==(l=r[68].metaInfo.altText?r[68].metaInfo.altText:"")&&f(t,"alt",l)},d(r){r&&A(e)}}}function yS(i){let e,t;return{c(){e=k("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+(i[68].metaInfo.icon?i[27](i[68].metaInfo.icon):"")+" svelte-1f9ma6n"),f(e,"role","presentation")},m(n,l){E(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-nested-list__icon sap-icon "+(n[68].metaInfo.icon?n[27](n[68].metaInfo.icon):"")+" svelte-1f9ma6n")&&f(e,"class",t)},d(n){n&&A(e)}}}function Bc(i){let e,t,n=i[71].label&&Hc(i);return{c(){n&&n.c(),e=Se()},m(l,r){n&&n.m(l,r),E(l,e,r),t=!0},p(l,r){l[71].label?n?(n.p(l,r),r[0]&8192&&F(n,1)):(n=Hc(l),n.c(),F(n,1),n.m(e.parentNode,e)):n&&(Le(),G(n,1,1,()=>{n=null}),Ae())},i(l){t||(F(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function Hc(i){let e,t,n,l,r=i[26](i[71])+"",s,o,c,g,h,_,p,m,v,S,y,C,N,I;function D(fe,X){return fe[71].icon?NS:PS}let L=D(i),T=L(i),V=i[71].statusBadge&&Wc(i),O=i[71].externalLink&&i[71].externalLink.url&&zc(),U=i[71].badgeCounter&&Gc(i);function z(...fe){return i[54](i[71],...fe)}function ae(...fe){return i[55](i[71],...fe)}return{c(){e=k("li"),t=k("a"),T.c(),n=K(),l=k("span"),s=ye(r),o=K(),V&&V.c(),g=K(),O&&O.c(),h=K(),U&&U.c(),S=K(),f(l,"class",c="fd-nested-list__title badge-align-"+(i[71].statusBadge&&i[71].statusBadge.align==="right"?"right":"left")+" svelte-1f9ma6n"),f(t,"href",_=i[30](i[71])),f(t,"tabindex","0"),f(t,"class",p="fd-nested-list__link "+(i[71]===i[7]?"is-selected":"")+" svelte-1f9ma6n"),f(t,"role",m=i[23]?void 0:"button"),f(t,"data-testid",v=i[29](i[71])),f(e,"class","fd-nested-list__item"),f(e,"title",y=i[32](i[71],i[26](i[71]))),f(e,"aria-labelledby","category_list_level1_"+i[70])},m(fe,X){E(fe,e,X),w(e,t),T.m(t,null),w(t,n),w(t,l),w(l,s),w(l,o),V&&V.m(l,null),w(t,g),O&&O.m(t,null),w(t,h),U&&U.m(t,null),w(e,S),C=!0,N||(I=[le(t,"click",z),le(t,"keyup",function(){Oi(i[23]?void 0:ae)&&(i[23]?void 0:ae).apply(this,arguments)})],N=!0)},p(fe,X){i=fe,L===(L=D(i))&&T?T.p(i,X):(T.d(1),T=L(i),T&&(T.c(),T.m(t,n))),(!C||X[0]&8192)&&r!==(r=i[26](i[71])+"")&&Ne(s,r),i[71].statusBadge?V?(V.p(i,X),X[0]&8192&&F(V,1)):(V=Wc(i),V.c(),F(V,1),V.m(l,null)):V&&(Le(),G(V,1,1,()=>{V=null}),Ae()),(!C||X[0]&8192&&c!==(c="fd-nested-list__title badge-align-"+(i[71].statusBadge&&i[71].statusBadge.align==="right"?"right":"left")+" svelte-1f9ma6n"))&&f(l,"class",c),i[71].externalLink&&i[71].externalLink.url?O||(O=zc(),O.c(),O.m(t,h)):O&&(O.d(1),O=null),i[71].badgeCounter?U?(U.p(i,X),X[0]&8192&&F(U,1)):(U=Gc(i),U.c(),F(U,1),U.m(t,null)):U&&(Le(),G(U,1,1,()=>{U=null}),Ae()),(!C||X[0]&8192&&_!==(_=i[30](i[71])))&&f(t,"href",_),(!C||X[0]&8320&&p!==(p="fd-nested-list__link "+(i[71]===i[7]?"is-selected":"")+" svelte-1f9ma6n"))&&f(t,"class",p),(!C||X[0]&8388608&&m!==(m=i[23]?void 0:"button"))&&f(t,"role",m),(!C||X[0]&8192&&v!==(v=i[29](i[71])))&&f(t,"data-testid",v),(!C||X[0]&8192&&y!==(y=i[32](i[71],i[26](i[71]))))&&f(e,"title",y)},i(fe){C||(F(V),F(U),C=!0)},o(fe){G(V),G(U),C=!1},d(fe){fe&&A(e),T.d(),V&&V.d(),O&&O.d(),U&&U.d(),N=!1,Qe(I)}}}function PS(i){let e,t,n,l,r=i[6]?"sap-icon--rhombus-milestone-2":"",s;return{c(){e=k("i"),n=K(),l=k("span"),s=ye(r),f(e,"class",t="fd-nested-list__icon sap-icon "+(i[6]?"sap-icon--rhombus-milestone-2":""))},m(o,c){E(o,e,c),E(o,n,c),E(o,l,c),w(l,s)},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&&r!==(r=o[6]?"sap-icon--rhombus-milestone-2":"")&&Ne(s,r)},d(o){o&&A(e),o&&A(n),o&&A(l)}}}function NS(i){let e,t;function n(s,o){return o[0]&8192&&(e=null),e==null&&(e=!!s[28](s[71].icon)),e?TS:IS}let l=n(i,[-1,-1,-1]),r=l(i);return{c(){r.c(),t=Se()},m(s,o){r.m(s,o),E(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function IS(i){let e,t,n,l;return{c(){e=k("span"),t=k("img"),it(t.src,n=i[71].icon)||f(t,"src",n),f(t,"alt",l=i[71].altText?i[71].altText:""),f(t,"class","svelte-1f9ma6n"),f(e,"class","fd-nested-list__icon sap-icon svelte-1f9ma6n")},m(r,s){E(r,e,s),w(e,t)},p(r,s){s[0]&8192&&!it(t.src,n=r[71].icon)&&f(t,"src",n),s[0]&8192&&l!==(l=r[71].altText?r[71].altText:"")&&f(t,"alt",l)},d(r){r&&A(e)}}}function TS(i){let e,t;return{c(){e=k("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+i[27](i[71].icon)+" svelte-1f9ma6n")},m(n,l){E(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-nested-list__icon sap-icon "+n[27](n[71].icon)+" svelte-1f9ma6n")&&f(e,"class",t)},d(n){n&&A(e)}}}function Wc(i){let e,t;return e=new ns({props:{node:i[71]}}),{c(){qe(e.$$.fragment)},m(n,l){ze(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[71]),e.$set(r)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){Ge(e,n)}}}function zc(i){let e;return{c(){e=k("i"),f(e,"class","sap-icon--action")},m(t,n){E(t,e,n)},d(t){t&&A(e)}}}function Gc(i){let e,t;return e=new Yn({props:{node:i[71]}}),{c(){qe(e.$$.fragment)},m(n,l){ze(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[71]),e.$set(r)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){Ge(e,n)}}}function qc(i){let e,t,n=!i[71].hideFromNav&&Bc(i);return{c(){n&&n.c(),e=Se()},m(l,r){n&&n.m(l,r),E(l,e,r),t=!0},p(l,r){l[71].hideFromNav?n&&(Le(),G(n,1,1,()=>{n=null}),Ae()):n?(n.p(l,r),r[0]&8192&&F(n,1)):(n=Bc(l),n.c(),F(n,1),n.m(e.parentNode,e))},i(l){t||(F(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function LS(i){let e,t,n,l;return{c(){e=k("span"),t=k("img"),it(t.src,n=i[68].metaInfo.icon)||f(t,"src",n),f(t,"alt",l=i[68].metaInfo.altText?i[68].metaInfo.altText:""),f(t,"class","svelte-1f9ma6n"),f(e,"class","fd-nested-list__icon sap-icon svelte-1f9ma6n")},m(r,s){E(r,e,s),w(e,t)},p(r,s){s[0]&8192&&!it(t.src,n=r[68].metaInfo.icon)&&f(t,"src",n),s[0]&8192&&l!==(l=r[68].metaInfo.altText?r[68].metaInfo.altText:"")&&f(t,"alt",l)},d(r){r&&A(e)}}}function AS(i){let e,t;return{c(){e=k("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+i[27](i[68].metaInfo.icon)+" "+(i[6]&&!i[68].metaInfo.icon?"sap-icon--rhombus-milestone-2":"")+" svelte-1f9ma6n"),f(e,"role","presentation")},m(n,l){E(n,e,l)},p(n,l){l[0]&8256&&t!==(t="fd-nested-list__icon sap-icon "+n[27](n[68].metaInfo.icon)+" "+(n[6]&&!n[68].metaInfo.icon?"sap-icon--rhombus-milestone-2":"")+" svelte-1f9ma6n")&&f(e,"class",t)},d(n){n&&A(e)}}}function Kc(i){let e,t,n=i[71].label&&Jc(i);return{c(){n&&n.c(),e=Se()},m(l,r){n&&n.m(l,r),E(l,e,r),t=!0},p(l,r){l[71].label?n?(n.p(l,r),r[0]&8192&&F(n,1)):(n=Jc(l),n.c(),F(n,1),n.m(e.parentNode,e)):n&&(Le(),G(n,1,1,()=>{n=null}),Ae())},i(l){t||(F(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function Jc(i){let e,t,n,l=i[26](i[71])+"",r,s,o,c,g,h,_,p,m,v,S,y,C,N,I;o=new ns({props:{node:i[71]}});let D=i[71].externalLink&&i[71].externalLink.url&&jc(),L=i[71].badgeCounter&&Yc(i);function T(...O){return i[49](i[71],...O)}function V(...O){return i[50](i[71],...O)}return{c(){e=k("li"),t=k("a"),n=k("span"),r=ye(l),s=K(),qe(o.$$.fragment),g=K(),D&&D.c(),h=K(),L&&L.c(),y=K(),f(n,"class",c="fd-nested-list__title badge-align-"+(i[71].statusBadge&&i[71].statusBadge.align==="right"?"right":"left")+" svelte-1f9ma6n"),f(t,"href",_=i[30](i[71])),f(t,"class",p="fd-nested-list__link "+(i[71]===i[7]?"is-selected":"")+" svelte-1f9ma6n"),f(t,"role",m=i[23]?void 0:"button"),f(t,"tabindex","0"),f(t,"data-testid",v=i[29](i[71])),f(t,"title",S=i[32](i[71],i[26](i[71]))),f(e,"class","fd-nested-list__item"),f(e,"aria-labelledby","collapsible_listnode_"+i[70])},m(O,U){E(O,e,U),w(e,t),w(t,n),w(n,r),w(n,s),ze(o,n,null),w(t,g),D&&D.m(t,null),w(t,h),L&&L.m(t,null),w(e,y),C=!0,N||(I=[le(t,"click",T),le(t,"keyup",function(){Oi(i[23]?void 0:V)&&(i[23]?void 0:V).apply(this,arguments)})],N=!0)},p(O,U){i=O,(!C||U[0]&8192)&&l!==(l=i[26](i[71])+"")&&Ne(r,l);const z={};U[0]&8192&&(z.node=i[71]),o.$set(z),(!C||U[0]&8192&&c!==(c="fd-nested-list__title badge-align-"+(i[71].statusBadge&&i[71].statusBadge.align==="right"?"right":"left")+" svelte-1f9ma6n"))&&f(n,"class",c),i[71].externalLink&&i[71].externalLink.url?D||(D=jc(),D.c(),D.m(t,h)):D&&(D.d(1),D=null),i[71].badgeCounter?L?(L.p(i,U),U[0]&8192&&F(L,1)):(L=Yc(i),L.c(),F(L,1),L.m(t,null)):L&&(Le(),G(L,1,1,()=>{L=null}),Ae()),(!C||U[0]&8192&&_!==(_=i[30](i[71])))&&f(t,"href",_),(!C||U[0]&8320&&p!==(p="fd-nested-list__link "+(i[71]===i[7]?"is-selected":"")+" svelte-1f9ma6n"))&&f(t,"class",p),(!C||U[0]&8388608&&m!==(m=i[23]?void 0:"button"))&&f(t,"role",m),(!C||U[0]&8192&&v!==(v=i[29](i[71])))&&f(t,"data-testid",v),(!C||U[0]&8192&&S!==(S=i[32](i[71],i[26](i[71]))))&&f(t,"title",S)},i(O){C||(F(o.$$.fragment,O),F(L),C=!0)},o(O){G(o.$$.fragment,O),G(L),C=!1},d(O){O&&A(e),Ge(o),D&&D.d(),L&&L.d(),N=!1,Qe(I)}}}function jc(i){let e;return{c(){e=k("i"),f(e,"class","sap-icon--action")},m(t,n){E(t,e,n)},d(t){t&&A(e)}}}function Yc(i){let e,t;return e=new Yn({props:{node:i[71]}}),{c(){qe(e.$$.fragment)},m(n,l){ze(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[71]),e.$set(r)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){Ge(e,n)}}}function Qc(i){let e,t,n=!i[71].hideFromNav&&Kc(i);return{c(){n&&n.c(),e=Se()},m(l,r){n&&n.m(l,r),E(l,e,r),t=!0},p(l,r){l[71].hideFromNav?n&&(Le(),G(n,1,1,()=>{n=null}),Ae()):n?(n.p(l,r),r[0]&8192&&F(n,1)):(n=Kc(l),n.c(),F(n,1),n.m(e.parentNode,e))},i(l){t||(F(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function Zc(i){let e,t,n,l=i[24](i[67])+"",r,s,o,c,g=i[68],h=[];for(let p=0;p<g.length;p+=1)h[p]=td(Ec(i,g,p));const _=p=>G(h[p],1,1,()=>{h[p]=null});return{c(){e=k("div"),t=k("div"),n=k("h5"),r=ye(l),s=K(),o=k("ul");for(let p=0;p<h.length;p+=1)h[p].c();f(n,"class","lui-flyout-sublist__title fd-has-type-minus-1 fd-has-color-text-4 svelte-1f9ma6n"),f(o,"class","fd-nested-list fd-nested-list--text-only svelte-1f9ma6n"),f(t,"class","lui-flyout-sublist__wrapper svelte-1f9ma6n"),f(e,"class","lui-flyout-sublist svelte-1f9ma6n")},m(p,m){E(p,e,m),w(e,t),w(t,n),w(n,r),w(t,s),w(t,o);for(let v=0;v<h.length;v+=1)h[v].m(o,null);c=!0},p(p,m){if((!c||m[0]&16785408)&&l!==(l=p[24](p[67])+"")&&Ne(r,l),m[0]&1686151296|m[1]&66){g=p[68];let v;for(v=0;v<g.length;v+=1){const S=Ec(p,g,v);h[v]?(h[v].p(S,m),F(h[v],1)):(h[v]=td(S),h[v].c(),F(h[v],1),h[v].m(o,null))}for(Le(),v=g.length;v<h.length;v+=1)_(v);Ae()}},i(p){if(!c){for(let m=0;m<g.length;m+=1)F(h[m]);c=!0}},o(p){h=h.filter(Boolean);for(let m=0;m<h.length;m+=1)G(h[m]);c=!1},d(p){p&&A(e),ct(h,p)}}}function Xc(i){let e,t,n=i[71].label&&$c(i);return{c(){n&&n.c(),e=Se()},m(l,r){n&&n.m(l,r),E(l,e,r),t=!0},p(l,r){l[71].label?n?(n.p(l,r),r[0]&8192&&F(n,1)):(n=$c(l),n.c(),F(n,1),n.m(e.parentNode,e)):n&&(Le(),G(n,1,1,()=>{n=null}),Ae())},i(l){t||(F(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function $c(i){let e,t,n,l=i[26](i[71])+"",r,s,o,c,g,h,_,p,m,v,S,y,C,N,I;o=new ns({props:{node:i[71]}});let D=i[71].externalLink&&i[71].externalLink.url&&xc(),L=i[71].badgeCounter&&ed(i);function T(...O){return i[51](i[71],...O)}function V(...O){return i[52](i[71],...O)}return{c(){e=k("li"),t=k("a"),n=k("span"),r=ye(l),s=K(),qe(o.$$.fragment),g=K(),D&&D.c(),h=K(),L&&L.c(),y=K(),f(n,"class",c="fd-nested-list__title badge-align-"+(i[71].statusBadge&&i[71].statusBadge.align==="right"?"right":"left")+" svelte-1f9ma6n"),f(t,"href",_=i[30](i[71])),f(t,"class",p="fd-nested-list__link "+(i[71]===i[7]?"is-selected":"")+" svelte-1f9ma6n"),f(t,"tabindex","0"),f(t,"role",m=i[23]?void 0:"button"),f(t,"data-testid",v=i[29](i[71])),f(t,"title",S=i[32](i[71],i[26](i[71]))),f(e,"class","fd-nested-list__item")},m(O,U){E(O,e,U),w(e,t),w(t,n),w(n,r),w(n,s),ze(o,n,null),w(t,g),D&&D.m(t,null),w(t,h),L&&L.m(t,null),w(e,y),C=!0,N||(I=[le(t,"click",T),le(t,"keyup",function(){Oi(i[23]?void 0:V)&&(i[23]?void 0:V).apply(this,arguments)})],N=!0)},p(O,U){i=O,(!C||U[0]&8192)&&l!==(l=i[26](i[71])+"")&&Ne(r,l);const z={};U[0]&8192&&(z.node=i[71]),o.$set(z),(!C||U[0]&8192&&c!==(c="fd-nested-list__title badge-align-"+(i[71].statusBadge&&i[71].statusBadge.align==="right"?"right":"left")+" svelte-1f9ma6n"))&&f(n,"class",c),i[71].externalLink&&i[71].externalLink.url?D||(D=xc(),D.c(),D.m(t,h)):D&&(D.d(1),D=null),i[71].badgeCounter?L?(L.p(i,U),U[0]&8192&&F(L,1)):(L=ed(i),L.c(),F(L,1),L.m(t,null)):L&&(Le(),G(L,1,1,()=>{L=null}),Ae()),(!C||U[0]&8192&&_!==(_=i[30](i[71])))&&f(t,"href",_),(!C||U[0]&8320&&p!==(p="fd-nested-list__link "+(i[71]===i[7]?"is-selected":"")+" svelte-1f9ma6n"))&&f(t,"class",p),(!C||U[0]&8388608&&m!==(m=i[23]?void 0:"button"))&&f(t,"role",m),(!C||U[0]&8192&&v!==(v=i[29](i[71])))&&f(t,"data-testid",v),(!C||U[0]&8192&&S!==(S=i[32](i[71],i[26](i[71]))))&&f(t,"title",S)},i(O){C||(F(o.$$.fragment,O),F(L),C=!0)},o(O){G(o.$$.fragment,O),G(L),C=!1},d(O){O&&A(e),Ge(o),D&&D.d(),L&&L.d(),N=!1,Qe(I)}}}function xc(i){let e;return{c(){e=k("i"),f(e,"class","sap-icon--action")},m(t,n){E(t,e,n)},d(t){t&&A(e)}}}function ed(i){let e,t;return e=new Yn({props:{node:i[71]}}),{c(){qe(e.$$.fragment)},m(n,l){ze(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[71]),e.$set(r)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){Ge(e,n)}}}function td(i){let e,t,n=!i[71].hideFromNav&&Xc(i);return{c(){n&&n.c(),e=Se()},m(l,r){n&&n.m(l,r),E(l,e,r),t=!0},p(l,r){l[71].hideFromNav?n&&(Le(),G(n,1,1,()=>{n=null}),Ae()):n?(n.p(l,r),r[0]&8192&&F(n,1)):(n=Xc(l),n.c(),F(n,1),n.m(e.parentNode,e))},i(l){t||(F(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function nd(i){let e,t,n=i[71].label&&id(i);return{c(){n&&n.c(),e=Se()},m(l,r){n&&n.m(l,r),E(l,e,r),t=!0},p(l,r){l[71].label?n?(n.p(l,r),r[0]&8192&&F(n,1)):(n=id(l),n.c(),F(n,1),n.m(e.parentNode,e)):n&&(Le(),G(n,1,1,()=>{n=null}),Ae())},i(l){t||(F(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function id(i){let e,t,n,l,r=i[26](i[71])+"",s,o,c,g,h,_,p,m,v,S,y,C,N,I,D;function L(fe,X){return fe[71].icon?RS:ES}let T=L(i),V=T(i);c=new ns({props:{node:i[71]}});let O=i[71].externalLink&&i[71].externalLink.url&&ld(),U=i[71].badgeCounter&&rd(i);function z(...fe){return i[44](i[71],...fe)}function ae(...fe){return i[45](i[71],...fe)}return{c(){e=k("li"),t=k("a"),V.c(),n=K(),l=k("span"),s=ye(r),o=K(),qe(c.$$.fragment),h=K(),O&&O.c(),_=K(),U&&U.c(),C=K(),f(l,"class",g="fd-nested-list__title badge-align-"+(i[71].statusBadge&&i[71].statusBadge.align==="right"?"right":"left")+" svelte-1f9ma6n"),f(t,"href",p=i[30](i[71])),f(t,"title",m=i[32](i[71],i[26](i[71]))),f(t,"class",v="fd-nested-list__link "+(i[71]===i[7]?"is-selected":"")+" svelte-1f9ma6n"),f(t,"tabindex","0"),f(t,"role",S=i[23]?void 0:"button"),f(t,"data-testid",y=i[29](i[71])),f(e,"class","fd-nested-list__item")},m(fe,X){E(fe,e,X),w(e,t),V.m(t,null),w(t,n),w(t,l),w(l,s),w(l,o),ze(c,l,null),w(t,h),O&&O.m(t,null),w(t,_),U&&U.m(t,null),w(e,C),N=!0,I||(D=[le(t,"click",z),le(t,"keyup",function(){Oi(i[23]?void 0:ae)&&(i[23]?void 0:ae).apply(this,arguments)})],I=!0)},p(fe,X){i=fe,T===(T=L(i))&&V?V.p(i,X):(V.d(1),V=T(i),V&&(V.c(),V.m(t,n))),(!N||X[0]&8192)&&r!==(r=i[26](i[71])+"")&&Ne(s,r);const pe={};X[0]&8192&&(pe.node=i[71]),c.$set(pe),(!N||X[0]&8192&&g!==(g="fd-nested-list__title badge-align-"+(i[71].statusBadge&&i[71].statusBadge.align==="right"?"right":"left")+" svelte-1f9ma6n"))&&f(l,"class",g),i[71].externalLink&&i[71].externalLink.url?O||(O=ld(),O.c(),O.m(t,_)):O&&(O.d(1),O=null),i[71].badgeCounter?U?(U.p(i,X),X[0]&8192&&F(U,1)):(U=rd(i),U.c(),F(U,1),U.m(t,null)):U&&(Le(),G(U,1,1,()=>{U=null}),Ae()),(!N||X[0]&8192&&p!==(p=i[30](i[71])))&&f(t,"href",p),(!N||X[0]&8192&&m!==(m=i[32](i[71],i[26](i[71]))))&&f(t,"title",m),(!N||X[0]&8320&&v!==(v="fd-nested-list__link "+(i[71]===i[7]?"is-selected":"")+" svelte-1f9ma6n"))&&f(t,"class",v),(!N||X[0]&8388608&&S!==(S=i[23]?void 0:"button"))&&f(t,"role",S),(!N||X[0]&8192&&y!==(y=i[29](i[71])))&&f(t,"data-testid",y)},i(fe){N||(F(c.$$.fragment,fe),F(U),N=!0)},o(fe){G(c.$$.fragment,fe),G(U),N=!1},d(fe){fe&&A(e),V.d(),Ge(c),O&&O.d(),U&&U.d(),I=!1,Qe(D)}}}function ES(i){let e,t;return{c(){e=k("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){E(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&&A(e)}}}function RS(i){let e,t;function n(s,o){return o[0]&8192&&(e=null),e==null&&(e=!!s[28](s[71].icon)),e?VS:DS}let l=n(i,[-1,-1,-1]),r=l(i);return{c(){r.c(),t=Se()},m(s,o){r.m(s,o),E(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function DS(i){let e,t,n,l;return{c(){e=k("span"),t=k("img"),it(t.src,n=i[71].icon)||f(t,"src",n),f(t,"alt",l=i[71].altText?i[71].altText:""),f(t,"class","svelte-1f9ma6n"),f(e,"class","fd-nested-list__icon sap-icon svelte-1f9ma6n")},m(r,s){E(r,e,s),w(e,t)},p(r,s){s[0]&8192&&!it(t.src,n=r[71].icon)&&f(t,"src",n),s[0]&8192&&l!==(l=r[71].altText?r[71].altText:"")&&f(t,"alt",l)},d(r){r&&A(e)}}}function VS(i){let e,t;return{c(){e=k("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+i[27](i[71].icon)+" svelte-1f9ma6n"),f(e,"role","presentation")},m(n,l){E(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-nested-list__icon sap-icon "+n[27](n[71].icon)+" svelte-1f9ma6n")&&f(e,"class",t)},d(n){n&&A(e)}}}function ld(i){let e;return{c(){e=k("i"),f(e,"class","fd-nested-list__icon sap-icon sap-icon--action"),f(e,"role","presentation")},m(t,n){E(t,e,n)},d(t){t&&A(e)}}}function rd(i){let e,t;return e=new Yn({props:{node:i[71]}}),{c(){qe(e.$$.fragment)},m(n,l){ze(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[71]),e.$set(r)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){Ge(e,n)}}}function sd(i){let e,t,n=!i[71].hideFromNav&&nd(i);return{c(){n&&n.c(),e=Se()},m(l,r){n&&n.m(l,r),E(l,e,r),t=!0},p(l,r){l[71].hideFromNav?n&&(Le(),G(n,1,1,()=>{n=null}),Ae()):n?(n.p(l,r),r[0]&8192&&F(n,1)):(n=nd(l),n.c(),F(n,1),n.m(e.parentNode,e))},i(l){t||(F(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function ad(i){let e,t,n,l,r,s;const o=[wS,vS],c=[];function g(h,_){return _[0]&24576&&(e=null),_[0]&8192&&(t=null),e==null&&(e=!!(h[67]==="undefined"||h[67].startsWith(h[14]))),e?0:(t==null&&(t=h[68].filter(US).length>0),t?1:-1)}return~(n=g(i,[-1,-1,-1]))&&(l=c[n]=o[n](i)),{c(){l&&l.c(),r=Se()},m(h,_){~n&&c[n].m(h,_),E(h,r,_),s=!0},p(h,_){let p=n;n=g(h,_),n===p?~n&&c[n].p(h,_):(l&&(Le(),G(c[p],1,1,()=>{c[p]=null}),Ae()),~n?(l=c[n],l?l.p(h,_):(l=c[n]=o[n](h),l.c()),F(l,1),l.m(r.parentNode,r)):l=null)},i(h){s||(F(l),s=!0)},o(h){G(l),s=!1},d(h){~n&&c[n].d(h),h&&A(r)}}}function od(i){let e,t,n,l=(i[2]?i[2]:"")+"",r,s,o=i[3]&&ud(i);return{c(){e=k("div"),t=k("span"),n=k("span"),r=ye(l),s=K(),o&&o.c(),f(n,"class","lui-side-nav__footer--text fd-has-type-minus-1 svelte-1f9ma6n"),f(n,"data-testid","lui-side-nav__footer--text"),f(t,"class","lui-side-nav__footer svelte-1f9ma6n"),f(t,"data-testid","lui-side-nav__footer"),f(e,"class","fd-side-nav__utility svelte-1f9ma6n")},m(c,g){E(c,e,g),w(e,t),w(t,n),w(n,r),w(t,s),o&&o.m(t,null)},p(c,g){g[0]&4&&l!==(l=(c[2]?c[2]:"")+"")&&Ne(r,l),c[3]?o?o.p(c,g):(o=ud(c),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(c){c&&A(e),o&&o.d()}}}function ud(i){let e;function t(r,s){return r[4]=="button"?OS:MS}let n=t(i),l=n(i);return{c(){l.c(),e=Se()},m(r,s){l.m(r,s),E(r,e,s)},p(r,s){n===(n=t(r))&&l?l.p(r,s):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},d(r){l.d(r),r&&A(e)}}}function MS(i){let e,t,n,l;return{c(){e=k("i"),f(e,"class",t="lui-side-nav__footer--icon "+(i[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-1f9ma6n"),f(e,"data-testid","semiCollapsibleButton"),f(e,"title",i[11]),f(e,"tabindex","0")},m(r,s){E(r,e,s),n||(l=[le(e,"click",i[57]),le(e,"keydown",i[58])],n=!0)},p(r,s){s[0]&64&&t!==(t="lui-side-nav__footer--icon "+(r[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-1f9ma6n")&&f(e,"class",t),s[0]&2048&&f(e,"title",r[11])},d(r){r&&A(e),n=!1,Qe(l)}}}function OS(i){let e,t,n,l,r;return{c(){e=k("button"),t=k("i"),f(t,"class",n="lui-side-nav__footer--icon "+(i[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-1f9ma6n"),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-1f9ma6n")},m(s,o){E(s,e,o),w(e,t),l||(r=le(e,"click",i[56]),l=!0)},p(s,o){o[0]&64&&n!==(n="lui-side-nav__footer--icon "+(s[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-1f9ma6n")&&f(t,"class",n),o[0]&2048&&f(e,"title",s[11])},d(s){s&&A(e),l=!1,r()}}}function FS(i){let e,t,n,l,r,s,o,c,g,h,_=i[12]&&Vc(i),p=i[0]&&i[5].length>1&&Fc(i),m=(i[2]||i[3])&&od(i);return{c(){e=k("div"),_&&_.c(),t=K(),n=k("nav"),l=k("div"),p&&p.c(),r=K(),m&&m.c(),f(l,"class","fd-side-nav__main-navigation svelte-1f9ma6n"),f(n,"class",s="fd-side-nav "+(i[6]?"fd-side-nav--condensed":"")+" "+(i[12]?"lui-nav-header-visible":"")+" svelte-1f9ma6n"),f(n,"data-testid","semiCollapsibleLeftNav"),f(e,"class",o="fd-app__sidebar "+(i[1]?"hideNavComponent":"")+" "+(i[2]||i[3]?"hasFooter":"")+" "+(i[2]&&!i[3]?"hasOnlyFooterText":"")+" svelte-1f9ma6n")},m(v,S){E(v,e,S),_&&_.m(e,null),w(e,t),w(e,n),w(n,l),p&&p.m(l,null),w(n,r),m&&m.m(n,null),c=!0,g||(h=[le(na,"resize",i[17]),le(na,"click",i[21]),le(na,"blur",i[21]),le(na,"keydown",i[33]),le(n,"keyup",i[18])],g=!0)},p(v,S){v[12]?_?_.p(v,S):(_=Vc(v),_.c(),_.m(e,t)):_&&(_.d(1),_=null),v[0]&&v[5].length>1?p?(p.p(v,S),S[0]&33&&F(p,1)):(p=Fc(v),p.c(),F(p,1),p.m(l,null)):p&&(Le(),G(p,1,1,()=>{p=null}),Ae()),v[2]||v[3]?m?m.p(v,S):(m=od(v),m.c(),m.m(n,null)):m&&(m.d(1),m=null),(!c||S[0]&4160&&s!==(s="fd-side-nav "+(v[6]?"fd-side-nav--condensed":"")+" "+(v[12]?"lui-nav-header-visible":"")+" svelte-1f9ma6n"))&&f(n,"class",s),(!c||S[0]&14&&o!==(o="fd-app__sidebar "+(v[1]?"hideNavComponent":"")+" "+(v[2]||v[3]?"hasFooter":"")+" "+(v[2]&&!v[3]?"hasOnlyFooterText":"")+" svelte-1f9ma6n"))&&f(e,"class",o)},i(v){c||(F(p),c=!0)},o(v){G(p),c=!1},d(v){v&&A(e),_&&_.d(),p&&p.d(),m&&m.d(),g=!1,Qe(h)}}}function pn(i,e){return e&&e.indexOf(i.metaInfo.categoryUid)>=0}const US=i=>!i.hideFromNav&&i.label;function BS(i,e,t){let n;const l={get:()=>({children:s,hideNavComponent:o,footerText:c,semiCollapsible:g,pathData:p,virtualGroupPrefix:v,isSemiCollapsed:S,selectedNode:y,sideNavAccordionMode:D,selectedCategory:C,expandedCategories:N,hasCategoriesWithIcon:I,navParentNode:V}),set:async x=>{x&&(Object.getOwnPropertyNames(x).forEach(async Ee=>{if(Ee==="pathData")t(5,p=x.pathData);else if(Ee==="context")O=x.context;else if(Ee==="children")t(0,s=x.children);else if(Ee==="selectedNode")t(7,y=x.selectedNode);else if(Ee==="hasCategoriesWithIcon")t(10,I=x.hasCategoriesWithIcon);else if(Ee==="navParent"){t(12,T=void 0);let st=x.navParent;if(t(41,V=st),st&&st.navHeader&&ne.requestExperimentalFeature("navHeader",!0)){let yt=st.navHeader,wt=st;if(yt==="inherit"){for(wt=st.parent;wt&&wt.navHeader==="inherit";)wt=wt.parent;yt=wt?wt.navHeader:void 0}if(yt instanceof Function){t(12,T={});let sn=yt(ke.stripNode(st),ke.stripNode(wt),O);sn instanceof Promise?sn.then(bn=>{t(12,T=bn)}):t(12,T=sn)}else if(yt==="auto")t(12,T={label:st.label,icon:st.icon});else if(yt&&yt.useTitleResolver&&wt.titleResolver){wt.titleResolver.prerenderFallback?t(12,T={...yt,label:wt.titleResolver.fallbackTitle||"",icon:wt.titleResolver.fallbackIcon}):t(12,T=yt);const sn=be.mapPathToNode(et.getCurrentPath(),wt);Vt.extractDataFromPath(sn).then(bn=>{const Zn=be.substituteDynamicParamsInObject(Object.assign({},bn.pathData.context,wt.context),bn.pathData.pathParams);ke.fetchNodeTitleData(wt,Zn).then(Fn=>{t(12,T={...yt,...Fn})}).catch(Fn=>{console.error("Error while retrieving title, fallback to node label"),t(12,T={...yt,label:st.label,icon:st.icon})})})}else t(12,T=await He(yt,wt))}}}),t(40,D=ke.getSideNavAccordionMode(y)))}},r=Bt();let{children:s}=e,{hideNavComponent:o}=e,{footerText:c}=e,{semiCollapsible:g}=e,{semiCollapsibleButton:h}=e,{semiCollapsibleButtonStyle:_}=e,{pathData:p}=e,{pathParams:m}=e,{virtualGroupPrefix:v=ke.virtualGroupPrefix}=e,{isSemiCollapsed:S}=e,{selectedNode:y}=e,{selectedCategory:C=null}=e,{expandedCategories:N}=e,{hasCategoriesWithIcon:I}=e,{sideNavAccordionMode:D}=e,{burgerTooltip:L}=e,{navHeader:T}=e,{navParentNode:V}=e,O,U,z,ae=dt("store"),fe=dt("getTranslation");pi(i,fe,x=>t(24,n=x));let X=!1;const pe=x=>ke.getNodeLabel(x),ee=async()=>{const x=l.get(),Ee=await Vt.getLeftNavData({...x},x);!Ee||(l.set(Ee),U=p,window.LEFTNAVDATA=Ee.children)};jt(()=>{t(3,h=ie.getConfigValue("settings.responsiveNavigation")==="semiCollapsible"),t(4,_=ie.getConfigValue("settings.semiCollapsibleButtonStyle")),t(23,X=ie.getConfigValue("navigation.addNavHrefs")),t(1,o=ie.getConfigBooleanValue("settings.hideNavigation")),t(22,z=ie.getConfigBooleanValue("settings.sideNavCompactMode")),t(9,N=ke.loadExpandedCategories()),on.doOnStoreChange(ae,()=>{t(2,c=ie.getConfigValue("settings.sideNavFooterText"))},["settings.footer"]),on.doOnStoreChange(ae,()=>{ee()},["navigation.viewgroupdata"]);let x=ci.initial();t(6,S=x.isSemiCollapsed),t(39,g=x.semiCollapsible),ci.onValueChanged(Ee=>{t(6,S=Ee.isSemiCollapsed)}),Nn.addEventListener("message",Ee=>{Ee.data.msg==="luigi.navigation.update-badge-counters"&&ee()})}),Mn(()=>{(!U||U!=p)&&ee(),t(22,z=ie.getConfigBooleanValue("settings.sideNavCompactMode")),t(9,N=ke.loadExpandedCategories()),t(3,h=ie.getConfigValue("settings.responsiveNavigation")==="semiCollapsible")});let{sortedChildrenEntries:H}=e;function oe(x){return ke.renderIconClassName(x)}function $(x){return ke.isOpenUIiconName(x)}function j(x){return x.testId?x.testId:ke.prepareForTests(x.pathSegment,x.label)}function Ce(x){return be.getNodeHref(x,m)}function te(x,Ee){return x&&x.testId?x.testId:ke.prepareForTests(Ee||x.label)}async function He(x,Ee){const st=be.mapPathToNode(et.getCurrentPath(),Ee),wt=(await Vt.extractDataFromPath(st)).pathData.pathParams;return be.substituteDynamicParamsInObject(x,wt)}function Pe(x,Ee){return ke.generateTooltipText(x,Ee)}function ce(x){r("handleClick",{node:x})}function Z(x,Ee){if(ci.getCollapsed()){let st,yt=document.getElementsByClassName("fd-app__sidebar")[0];if(x.metaInfo&&x.metaInfo.label?st=x.metaInfo.label:st=x.category&&x.category.label||x.category,yt.classList.contains("isBlocked")||(yt.className+=" isBlocked"),st===C){t(8,C=ci.closePopupMenu(C));return}t(8,C=st),he(Ee)}}function he(x){const Ee=x.closest(".fd-nested-list__item"),st=Ee.offsetTop,yt=ii.getShellbar().offsetHeight;let wt;ii.isCustomLuigiContainer()?wt=ii.getCustomLuigiContainer().clientHeight:wt=window.innerHeight,setTimeout(()=>{const sn=Ee.getElementsByClassName("lui-flyout-sublist")[0],bn=x.closest(".lui-fd-side-nav-wrapper").scrollTop,Zn=st+yt-bn,Fn=wt-st-Ee.offsetHeight+bn-yt;Zn+sn.offsetHeight>=wt?(sn.style.bottom=Fn+"px",sn.className+=" has-bottom-position"):sn.style.top=Zn-yt+"px"})}function re(){if(g){let x=ci.onResize(C);t(6,S=x.isSemiCollapsed),t(8,C=x.selectedCategory)}}function De(x){if(x.code==="ArrowRight"){const st=Ie.getCurrentMicrofrontendIframe();st&&st.contentWindow&&st.contentWindow.focus()}}function Me(x){let Ee=V?V.parent:void 0;for(;Ee;){if(Ee.pathSegment&&Ee.pathSegment.trim().indexOf(":")!==0){r("handleClick",{node:Ee});return}Ee=Ee.parent}console.warn('Could not resolve "up"-node, redirecting to root'),A_.navigate("/")}function me(x,Ee){ci.getCollapsed()||t(9,N=ke.storeExpandedState(x.metaInfo.categoryUid,Ee,D))}function Ze(){t(8,C=ci.closePopupMenu(C))}function Dt(x){x&&x.code==="Escape"&&Ze()}function Ht(){t(6,S=ci.buttonClicked()),document.getElementsByClassName("fd-tabs").length>0&&r("resizeTabNav",{}),zt()}function vt(x){const Ee=x.code;(Ee==="Enter"||Ee==="Space")&&Ht()}function un(x,Ee){(x.code==="Enter"||x==="Space")&&Z(Ee,x.currentTarget)}function On(x,Ee){x.keyCode===_i&&ke.handleNavAnchorClickedWithoutMetaKey(x)&&ce(Ee)}function zt(){if(!ke.getBurgerTooltipConfig())return;const[x,Ee]=ke.getBurgerTooltipConfig(),st=document.body.classList.contains("lui-semiCollapsible");x&&Ee&&st&&t(11,L=document.body.classList.contains("semiCollapsed")?x:Ee)}function mi(x,Ee){return pn(x,Ee)?x.metaInfo.titleCollapseButton?n(x.metaInfo.titleCollapseButton):void 0:x.metaInfo.titleExpandButton?n(x.metaInfo.titleExpandButton):void 0}const Ui=(x,Ee)=>{ke.handleNavAnchorClickedWithoutMetaKey(Ee)&&ce(x)},xt=(x,Ee)=>On(Ee,x),Yt=x=>me(x,!pn(x,N)),Qn=x=>me(x,!pn(x,N)),Et=(x,Ee)=>un(Ee,x),mn=(x,Ee)=>{ke.handleNavAnchorClickedWithoutMetaKey(Ee)&&ce(x)},Qt=(x,Ee)=>On(Ee,x),Bi=(x,Ee)=>{ke.handleNavAnchorClickedWithoutMetaKey(Ee)&&ce(x)},Gt=(x,Ee)=>On(Ee,x),ln=x=>Z(x,event.currentTarget),bi=(x,Ee)=>{ke.handleNavAnchorClickedWithoutMetaKey(Ee)&&ce(x)},li=(x,Ee)=>On(Ee,x),rn=x=>Ht(),vi=x=>Ht(),wi=x=>vt(x);return i.$$set=x=>{"children"in x&&t(0,s=x.children),"hideNavComponent"in x&&t(1,o=x.hideNavComponent),"footerText"in x&&t(2,c=x.footerText),"semiCollapsible"in x&&t(39,g=x.semiCollapsible),"semiCollapsibleButton"in x&&t(3,h=x.semiCollapsibleButton),"semiCollapsibleButtonStyle"in x&&t(4,_=x.semiCollapsibleButtonStyle),"pathData"in x&&t(5,p=x.pathData),"pathParams"in x&&t(42,m=x.pathParams),"virtualGroupPrefix"in x&&t(14,v=x.virtualGroupPrefix),"isSemiCollapsed"in x&&t(6,S=x.isSemiCollapsed),"selectedNode"in x&&t(7,y=x.selectedNode),"selectedCategory"in x&&t(8,C=x.selectedCategory),"expandedCategories"in x&&t(9,N=x.expandedCategories),"hasCategoriesWithIcon"in x&&t(10,I=x.hasCategoriesWithIcon),"sideNavAccordionMode"in x&&t(40,D=x.sideNavAccordionMode),"burgerTooltip"in x&&t(11,L=x.burgerTooltip),"navHeader"in x&&t(12,T=x.navHeader),"navParentNode"in x&&t(41,V=x.navParentNode),"sortedChildrenEntries"in x&&t(13,H=x.sortedChildrenEntries)},i.$$.update=()=>{if(i.$$.dirty[0]&1&&s){const x=Object.entries(s);x.sort((Ee,st)=>Ee[1].metaInfo.order-st[1].metaInfo.order),t(13,H=x)}},[s,o,c,h,_,p,S,y,C,N,I,L,T,H,v,ce,Z,re,De,Me,me,Ze,z,X,n,fe,pe,oe,$,j,Ce,te,Pe,Dt,Ht,vt,un,On,mi,g,D,V,m,he,Ui,xt,Yt,Qn,Et,mn,Qt,Bi,Gt,ln,bi,li,rn,vi,wi]}class HS extends At{constructor(e){super(),Lt(this,e,BS,FS,Nt,{children:0,hideNavComponent:1,footerText:2,semiCollapsible:39,semiCollapsibleButton:3,semiCollapsibleButtonStyle:4,pathData:5,pathParams:42,virtualGroupPrefix:14,isSemiCollapsed:6,selectedNode:7,selectedCategory:8,expandedCategories:9,hasCategoriesWithIcon:10,sideNavAccordionMode:40,burgerTooltip:11,navHeader:12,navParentNode:41,sortedChildrenEntries:13,handleClick:15,handleIconClick:16,calculateFlyoutPosition:43,onResize:17,handleKey:18,handleUp:19,setExpandedState:20,closePopupMenu:21},null,[-1,-1,-1])}get handleClick(){return this.$$.ctx[15]}get handleIconClick(){return this.$$.ctx[16]}get calculateFlyoutPosition(){return this.$$.ctx[43]}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 WS=i=>{on.doOnStoreChange(i.store,()=>{const e=ie.getConfigValue("navigation.appSwitcher");return e&&(i.set({appSwitcherItems:e.items}),i.set({showMainAppEntry:e.showMainAppEntry}),i.set({itemRenderer:e.itemRenderer})),i.set({hasApps:i.get().showMainAppEntry||i.get().appSwitcherItems&&i.get().appSwitcherItems.length>0}),ie.getConfigValueAsync("settings.header").then(t=>{if(t&&(i.set({defaultTitle:t.title||""}),i.set({defaultSubTitle:t.subTitle||""})),V_(i),!t)return;const n=Boolean(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 r=Object.assign(document.createElement("link"),{type:"image/x-icon",rel:"shortcut icon",href:t.favicon}),s=document.getElementsByTagName("head")[0];for(const o of s.childNodes)o.rel==="shortcut icon"&&o.remove();s.appendChild(r)}})},["settings.header"])},zS=(i,e,t)=>!!(i===e||e.startsWith(":")&&t&&t[e.substr(1)]===i),V_=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 ne.trimTrailingSlash(ne.trimLeadingSlash(c.link)).split("/").forEach((h,_)=>{g&&(_+1>=t.length||!t[_+1].pathSegment||!zS(h,t[_+1].pathSegment,n))&&(g=!1)}),g&&(l=c),g}),i.set({selectedItem:l});const r=l&&l.title?l.title:i.get().defaultTitle,s=es.getDocumentTitle()||r;i.set({title:r}),document.title=ht.getTranslation(s);const o=l?l.subTitle||"":i.get().defaultSubTitle;i.set({subTitle:o})};function fd(i,e,t){const n=i.slice();return n[43]=e[t],n[45]=t,n}function cd(i,e,t){const n=i.slice();return n[43]=e[t],n}function GS(i){let e,t,n,l,r=i[1]&&dd(i);return{c(){e=k("span"),r&&r.c(),f(e,"class",t="fd-shellbar__logo "+(i[1]?"":"fd-shellbar__logo--image-replaced")+" "+(i[1]?"lui-customlogo":"")+" svelte-sikqr4"),f(e,"aria-label",i[2]),f(e,"role","button"),f(e,"tabindex","0")},m(s,o){E(s,e,o),r&&r.m(e,null),n||(l=le(e,"click",i[29]),n=!0)},p(s,o){s[1]?r?r.p(s,o):(r=dd(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),o[0]&2&&t!==(t="fd-shellbar__logo "+(s[1]?"":"fd-shellbar__logo--image-replaced")+" "+(s[1]?"lui-customlogo":"")+" svelte-sikqr4")&&f(e,"class",t),o[0]&4&&f(e,"aria-label",s[2])},d(s){s&&A(e),r&&r.d(),n=!1,l()}}}function qS(i){let e,t,n,l,r=i[1]&&hd(i);return{c(){e=k("a"),r&&r.c(),f(e,"class",t="fd-shellbar__logo "+(i[1]?"":"fd-shellbar__logo--image-replaced")+" "+(i[1]?"lui-customlogo":"")+" svelte-sikqr4"),f(e,"aria-label",i[2]),f(e,"href","/"),f(e,"role","button"),f(e,"tabindex","0")},m(s,o){E(s,e,o),r&&r.m(e,null),n||(l=le(e,"click",i[27]),n=!0)},p(s,o){s[1]?r?r.p(s,o):(r=hd(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),o[0]&2&&t!==(t="fd-shellbar__logo "+(s[1]?"":"fd-shellbar__logo--image-replaced")+" "+(s[1]?"lui-customlogo":"")+" svelte-sikqr4")&&f(e,"class",t),o[0]&4&&f(e,"aria-label",s[2])},d(s){s&&A(e),r&&r.d(),n=!1,l()}}}function dd(i){let e;return{c(){e=k("img"),f(e,"data-testid","luigi-topnav-logo"),f(e,"alt",i[2]),f(e,"class","svelte-sikqr4")},m(t,n){E(t,e,n),i[28](e)},p(t,n){n[0]&4&&f(e,"alt",t[2])},d(t){t&&A(e),i[28](null)}}}function hd(i){let e;return{c(){e=k("img"),f(e,"data-testid","luigi-topnav-logo"),f(e,"alt",i[2]),f(e,"class","svelte-sikqr4")},m(t,n){E(t,e,n),i[26](e)},p(t,n){n[0]&4&&f(e,"alt",t[2])},d(t){t&&A(e),i[26](null)}}}function gd(i){let e,t;function n(o,c){return o[3]?KS:JS}let l=n(i),r=l(i),s=i[10]&&yd(i);return{c(){r.c(),e=K(),s&&s.c(),t=Se()},m(o,c){r.m(o,c),E(o,e,c),s&&s.m(o,c),E(o,t,c)},p(o,c){l===(l=n(o))&&r?r.p(o,c):(r.d(1),r=l(o),r&&(r.c(),r.m(e.parentNode,e))),o[10]?s?s.p(o,c):(s=yd(o),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(o){r.d(o),o&&A(e),s&&s.d(o),o&&A(t)}}}function KS(i){let e,t,n,l,r,s,o,c,g,h;function _(y,C){return y[12]?YS:jS}let p=_(i),m=p(i),v=i[4]&&i[5]&&wd(i),S=i[7]&&i[7].length>0&&Sd(i);return{c(){e=k("div"),t=k("div"),m.c(),n=K(),l=k("div"),r=k("nav"),s=k("ul"),v&&v.c(),o=K(),S&&S.c(),f(t,"class","fd-popover__control"),f(s,"class","fd-menu__list fd-menu__list--no-shadow"),f(r,"class","fd-menu"),f(l,"class","fd-popover__body fd-popover__body--left"),f(l,"aria-hidden",c=!i[11].appSwitcherPopover),f(l,"id","appSwitcherPopover"),f(e,"class","fd-popover")},m(y,C){E(y,e,C),w(e,t),m.m(t,null),w(e,n),w(e,l),w(l,r),w(r,s),v&&v.m(s,null),w(s,o),S&&S.m(s,null),i[36](s),g||(h=le(t,"click",Ft(ek)),g=!0)},p(y,C){p===(p=_(y))&&m?m.p(y,C):(m.d(1),m=p(y),m&&(m.c(),m.m(t,null))),y[4]&&y[5]?v?v.p(y,C):(v=wd(y),v.c(),v.m(s,o)):v&&(v.d(1),v=null),y[7]&&y[7].length>0?S?S.p(y,C):(S=Sd(y),S.c(),S.m(s,null)):S&&(S.d(1),S=null),C[0]&2048&&c!==(c=!y[11].appSwitcherPopover)&&f(l,"aria-hidden",c)},d(y){y&&A(e),m.d(),v&&v.d(),S&&S.d(),i[36](null),g=!1,h()}}}function JS(i){let e;function t(r,s){return r[12]?$S:XS}let n=t(i),l=n(i);return{c(){l.c(),e=Se()},m(r,s){l.m(r,s),E(r,e,s)},p(r,s){n===(n=t(r))&&l?l.p(r,s):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},d(r){l.d(r),r&&A(e)}}}function jS(i){let e,t,n=i[17](i[2])+"",l,r,s,o,c,g;return{c(){e=k("button"),t=k("span"),l=ye(n),r=K(),s=k("i"),f(t,"class","fd-shellbar__title svelte-sikqr4"),f(t,"data-testid","luigi-topnav-title"),f(s,"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[11].appSwitcherPopover||!1),f(e,"data-testid","app-switcher")},m(h,_){E(h,e,_),w(e,t),w(t,l),w(e,r),w(e,s),c||(g=le(e,"click",Ft(i[34])),c=!0)},p(h,_){_[0]&131076&&n!==(n=h[17](h[2])+"")&&Ne(l,n),_[0]&2048&&o!==(o=h[11].appSwitcherPopover||!1)&&f(e,"aria-expanded",o)},d(h){h&&A(e),c=!1,g()}}}function YS(i){let e,t,n,l=i[7]&&i[7].length===1&&_d(i),r=i[7]&&i[7].length>1&&pd(i),s=i[7].length>1&&!i[5]&&vd(i);return{c(){l&&l.c(),e=K(),r&&r.c(),t=K(),s&&s.c(),n=Se()},m(o,c){l&&l.m(o,c),E(o,e,c),r&&r.m(o,c),E(o,t,c),s&&s.m(o,c),E(o,n,c)},p(o,c){o[7]&&o[7].length===1?l?l.p(o,c):(l=_d(o),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),o[7]&&o[7].length>1?r?r.p(o,c):(r=pd(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o[7].length>1&&!o[5]?s?s.p(o,c):(s=vd(o),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(o){l&&l.d(o),o&&A(e),r&&r.d(o),o&&A(t),s&&s.d(o),o&&A(n)}}}function _d(i){let e,t,n=i[17](i[7][0].title)+"",l,r;return{c(){e=k("a"),t=k("span"),l=ye(n),f(e,"href",r=i[22](i[7][0])),f(e,"class","fd-shellbar__title lui-shellbar-single-app-title svelte-sikqr4")},m(s,o){E(s,e,o),w(e,t),w(t,l)},p(s,o){o[0]&131200&&n!==(n=s[17](s[7][0].title)+"")&&Ne(l,n),o[0]&128&&r!==(r=s[22](s[7][0]))&&f(e,"href",r)},d(s){s&&A(e)}}}function pd(i){let e,t=i[7],n=[];for(let l=0;l<t.length;l+=1)n[l]=bd(cd(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=Se()},m(l,r){for(let s=0;s<n.length;s+=1)n[s].m(l,r);E(l,e,r)},p(l,r){if(r[0]&6458020){t=l[7];let s;for(s=0;s<t.length;s+=1){const o=cd(l,t,s);n[s]?n[s].p(o,r):(n[s]=bd(o),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){ct(n,l),l&&A(e)}}}function md(i){let e,t,n=i[17](i[2])+"",l,r,s,o,c,g,h,_;return{c(){e=k("a"),t=k("span"),l=ye(n),r=K(),s=k("i"),o=K(),f(t,"class","fd-shellbar__title svelte-sikqr4"),f(t,"data-testid","luigi-topnav-title"),f(s,"class","sap-icon sap-icon--megamenu fd-shellbar__button--icon"),f(e,"href",c=i[22](i[43])),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[11].appSwitcherPopover||!1),f(e,"data-testid","app-switcher")},m(p,m){E(p,e,m),w(e,t),w(t,l),w(e,r),w(e,s),w(e,o),h||(_=le(e,"click",Rt(i[32])),h=!0)},p(p,m){m[0]&131076&&n!==(n=p[17](p[2])+"")&&Ne(l,n),m[0]&128&&c!==(c=p[22](p[43]))&&f(e,"href",c),m[0]&2048&&g!==(g=p[11].appSwitcherPopover||!1)&&f(e,"aria-expanded",g)},d(p){p&&A(e),h=!1,_()}}}function bd(i){let e=i[43]===i[5]&&i[21](i[43],i[9]),t,n=e&&md(i);return{c(){n&&n.c(),t=Se()},m(l,r){n&&n.m(l,r),E(l,t,r)},p(l,r){r[0]&672&&(e=l[43]===l[5]&&l[21](l[43],l[9])),e?n?n.p(l,r):(n=md(l),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(l){n&&n.d(l),l&&A(t)}}}function vd(i){let e,t,n=i[17](i[2])+"",l,r,s,o,c,g;return{c(){e=k("a"),t=k("span"),l=ye(n),r=K(),s=k("i"),f(t,"class","fd-shellbar__title svelte-sikqr4"),f(t,"data-testid","luigi-topnav-title"),f(s,"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[11].appSwitcherPopover||!1),f(e,"data-testid","app-switcher")},m(h,_){E(h,e,_),w(e,t),w(t,l),w(e,r),w(e,s),c||(g=le(e,"click",Rt(i[33])),c=!0)},p(h,_){_[0]&131076&&n!==(n=h[17](h[2])+"")&&Ne(l,n),_[0]&2048&&o!==(o=h[11].appSwitcherPopover||!1)&&f(e,"aria-expanded",o)},d(h){h&&A(e),c=!1,g()}}}function wd(i){let e,t,n,l=i[17](i[6])+"",r,s,o,c;return{c(){e=k("li"),t=k("a"),n=k("span"),r=ye(l),f(n,"class","fd-menu__title"),f(t,"href","/"),f(t,"role","button"),f(t,"class","fd-menu__link"),f(t,"data-testid",s=i[20](i[6])),f(e,"class","fd-menu__item")},m(g,h){E(g,e,h),w(e,t),w(t,n),w(n,r),o||(c=le(t,"click",Rt(i[14])),o=!0)},p(g,h){h[0]&131136&&l!==(l=g[17](g[6])+"")&&Ne(r,l),h[0]&64&&s!==(s=g[20](g[6]))&&f(t,"data-testid",s)},d(g){g&&A(e),o=!1,c()}}}function Sd(i){let e,t=i[7],n=[];for(let l=0;l<t.length;l+=1)n[l]=Cd(fd(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=Se()},m(l,r){for(let s=0;s<n.length;s+=1)n[s].m(l,r);E(l,e,r)},p(l,r){if(r[0]&8074144){t=l[7];let s;for(s=0;s<t.length;s+=1){const o=fd(l,t,s);n[s]?n[s].p(o,r):(n[s]=Cd(o),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){ct(n,l),l&&A(e)}}}function QS(i){let e,t,n,l=i[17](i[43].title)+"",r,s,o,c,g,h;function _(...p){return i[35](i[43],...p)}return{c(){e=k("li"),t=k("a"),n=k("span"),r=ye(l),c=K(),f(n,"class","fd-menu__title"),f(t,"role","button"),f(t,"class","fd-menu__link"),f(t,"href",s=i[12]?i[22](i[43],i[9]):void 0),f(t,"data-testid",o=i[20](i[43])),f(e,"class","fd-menu__item")},m(p,m){E(p,e,m),w(e,t),w(t,n),w(n,r),w(e,c),g||(h=le(t,"click",_),g=!0)},p(p,m){i=p,m[0]&131200&&l!==(l=i[17](i[43].title)+"")&&Ne(r,l),m[0]&4736&&s!==(s=i[12]?i[22](i[43],i[9]):void 0)&&f(t,"href",s),m[0]&128&&o!==(o=i[20](i[43]))&&f(t,"data-testid",o)},d(p){p&&A(e),g=!1,h()}}}function ZS(i){let e,t=i[16]&&kd(i);return{c(){t&&t.c(),e=Se()},m(n,l){t&&t.m(n,l),E(n,e,l)},p(n,l){n[16]?t?t.p(n,l):(t=kd(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&A(e)}}}function kd(i){let e,t,n=i[19](i[43],i[16],i[45])+"",l;return{c(){e=k("li"),t=new mr(!1),l=K(),t.a=l,f(e,"class","fd-menu__item"),f(e,"tabindex","0")},m(r,s){E(r,e,s),t.m(n,e),w(e,l)},p(r,s){s[0]&65664&&n!==(n=r[19](r[43],r[16],r[45])+"")&&t.p(n)},d(r){r&&A(e)}}}function Cd(i){let e,t,n;function l(o,c){if(c[0]&256&&(e=null),c[0]&672&&(t=null),e==null&&(e=!!ne.isFunction(o[8])),e)return ZS;if(t==null&&(t=!!(o[43]!==o[5]&&o[21](o[43],o[9]))),t)return QS}let r=l(i,[-1,-1]),s=r&&r(i);return{c(){s&&s.c(),n=Se()},m(o,c){s&&s.m(o,c),E(o,n,c)},p(o,c){r===(r=l(o,c))&&s?s.p(o,c):(s&&s.d(1),s=r&&r(o),s&&(s.c(),s.m(n.parentNode,n)))},d(o){s&&s.d(o),o&&A(n)}}}function XS(i){let e,t,n=i[17](i[2])+"",l,r,s;return{c(){e=k("span"),t=k("span"),l=ye(n),f(e,"class","fd-shellbar__title lui-shellbar-single-app-title svelte-sikqr4"),f(e,"data-testid","luigi-topnav-title")},m(o,c){E(o,e,c),w(e,t),w(t,l),r||(s=le(e,"click",i[31]),r=!0)},p(o,c){c[0]&131076&&n!==(n=o[17](o[2])+"")&&Ne(l,n)},d(o){o&&A(e),r=!1,s()}}}function $S(i){let e,t,n=i[17](i[2])+"",l,r,s;return{c(){e=k("a"),t=k("span"),l=ye(n),f(e,"class","fd-shellbar__title lui-shellbar-single-app-title svelte-sikqr4"),f(e,"data-testid","luigi-topnav-title"),f(e,"href","/")},m(o,c){E(o,e,c),w(e,t),w(t,l),r||(s=le(e,"click",i[30]),r=!0)},p(o,c){c[0]&131076&&n!==(n=o[17](o[2])+"")&&Ne(l,n)},d(o){o&&A(e),r=!1,s()}}}function yd(i){let e,t=i[17](i[10])+"",n;return{c(){e=k("div"),n=ye(t),f(e,"class","fd-shellbar__subtitle svelte-sikqr4")},m(l,r){E(l,e,r),w(e,n)},p(l,r){r[0]&132096&&t!==(t=l[17](l[10])+"")&&Ne(n,t)},d(l){l&&A(e)}}}function xS(i){let e,t;function n(o,c){return o[12]?qS:GS}let l=n(i),r=l(i),s=i[2]&&gd(i);return{c(){r.c(),e=K(),s&&s.c(),t=Se()},m(o,c){r.m(o,c),E(o,e,c),s&&s.m(o,c),E(o,t,c)},p(o,c){l===(l=n(o))&&r?r.p(o,c):(r.d(1),r=l(o),r&&(r.c(),r.m(e.parentNode,e))),o[2]?s?s.p(o,c):(s=gd(o),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},i:Fe,o:Fe,d(o){r.d(o),o&&A(e),s&&s.d(o),o&&A(t)}}}const ek=()=>{};function tk(i,e,t){let n;const l=Bt();let{logo:r}=e,{hasLogo:s}=e,{title:o}=e,{hasApps:c}=e,{dropDownStates:g={}}=e,{showMainAppEntry:h}=e,{selectedItem:_}=e,{defaultTitle:p}=e,{appSwitcherItems:m}=e,{itemRenderer:v}=e,{pathParams:S}=e,{subTitle:y}=e,{defaultSubTitle:C}=e,{pathData:N}=e,{addNavHrefForAnchor:I}=e,D,L,T=dt("getUnsavedChangesModalPromise"),V=dt("getTranslation");pi(i,V,me=>t(17,n=me));let O=dt("store");const U={closeDropDown:()=>{ee("appSwitcherPopover")}},z=()=>({get:()=>({pathData:N,pathParams:S,appSwitcherItems:m,itemRenderer:v,selectedItem:_,defaultTitle:p,title:o,subTitle:y,defaultSubTitle:C,showMainAppEntry:h,hasApps:c,hasLogo:s,logo:r}),set:me=>{me&&Object.getOwnPropertyNames(me).forEach(Ze=>{Ze==="pathData"?t(24,N=me.pathData):Ze==="appSwitcherItems"?t(7,m=me.appSwitcherItems):Ze==="itemRenderer"?t(8,v=me.itemRenderer):Ze==="pathParams"?t(9,S=me.pathParams):Ze==="selectedItem"?t(5,_=me.selectedItem):Ze==="title"?t(2,o=me.title):Ze==="defaultSubTitle"?t(23,C=me.defaultSubTitle):Ze==="subTitle"?t(10,y=me.subTitle):Ze==="defaultTitle"?t(6,p=me.defaultTitle):Ze==="subTitle"?t(10,y=me.subTitle):Ze==="showMainAppEntry"?t(4,h=me.showMainAppEntry):Ze==="hasApps"?t(3,c=me.hasApps):Ze==="hasLogo"&&t(1,s=me.hasLogo)})},store:O});jt(()=>{WS(z())}),Mn(()=>{(!L||L!=N)&&(V_(z()),L=N)});function ae(me,Ze,Dt){return setTimeout(()=>{Ze&&v(me,Ze.children[Dt],U)}),""}function fe(me){T().then(()=>{et.navigateTo(be.applyPathParams(me,S))},()=>{})}function X(){T().then(()=>{et.navigateTo("/")},()=>{})}function pe(me){l("handleClick",{node:me}),ee("appSwitcherPopover")}function ee(me){l("toggleDropdownState",{name:me})}function H(me){return me.testId?me.testId:ke.prepareForTests(me.title||me)}function oe(me,Ze){if(me.link){const Dt=be.applyPathParams(me.link,Ze);if(Dt.indexOf(":")!==0&&Dt.indexOf("/:")===-1)return!0}return!1}function $(me){return be.getNodeHref(me)}function j(me){$e[me?"unshift":"push"](()=>{r=me,t(0,r)})}const Ce=me=>{ke.handleNavAnchorClickedWithoutMetaKey(me)&&fe("/")};function te(me){$e[me?"unshift":"push"](()=>{r=me,t(0,r)})}const He=()=>fe("/"),Pe=me=>{ke.handleNavAnchorClickedWithoutMetaKey(me)&&fe("/")},ce=()=>fe("/"),Z=()=>ee("appSwitcherPopover"),he=()=>ee("appSwitcherPopover"),re=()=>ee("appSwitcherPopover"),De=(me,Ze)=>{ke.handleNavAnchorClickedWithoutMetaKey(Ze)&&fe(me.link)};function Me(me){$e[me?"unshift":"push"](()=>{D=me,t(16,D)})}return i.$$set=me=>{"logo"in me&&t(0,r=me.logo),"hasLogo"in me&&t(1,s=me.hasLogo),"title"in me&&t(2,o=me.title),"hasApps"in me&&t(3,c=me.hasApps),"dropDownStates"in me&&t(11,g=me.dropDownStates),"showMainAppEntry"in me&&t(4,h=me.showMainAppEntry),"selectedItem"in me&&t(5,_=me.selectedItem),"defaultTitle"in me&&t(6,p=me.defaultTitle),"appSwitcherItems"in me&&t(7,m=me.appSwitcherItems),"itemRenderer"in me&&t(8,v=me.itemRenderer),"pathParams"in me&&t(9,S=me.pathParams),"subTitle"in me&&t(10,y=me.subTitle),"defaultSubTitle"in me&&t(23,C=me.defaultSubTitle),"pathData"in me&&t(24,N=me.pathData),"addNavHrefForAnchor"in me&&t(12,I=me.addNavHrefForAnchor)},[r,s,o,c,h,_,p,m,v,S,y,g,I,fe,X,ee,D,n,V,ae,H,oe,$,C,N,pe,j,Ce,te,He,Pe,ce,Z,he,re,De,Me]}class nk extends At{constructor(e){super(),Lt(this,e,tk,xS,Nt,{logo:0,hasLogo:1,title:2,hasApps:3,dropDownStates:11,showMainAppEntry:4,selectedItem:5,defaultTitle:6,appSwitcherItems:7,itemRenderer:8,pathParams:9,subTitle:10,defaultSubTitle:23,pathData:24,addNavHrefForAnchor:12,goTo:13,goToRoot:14,handleClick:25,toggleDropdownState:15},null,[-1,-1])}get goTo(){return this.$$.ctx[13]}get goToRoot(){return this.$$.ctx[14]}get handleClick(){return this.$$.ctx[25]}get toggleDropdownState(){return this.$$.ctx[15]}}function Pd(i,e,t){const n=i.slice();return n[34]=e[t],n}function Nd(i){let e,t,n,l,r,s,o=i[0]&&Id(i),c=(i[10]||i[11])&&Vd(i);return{c(){e=k("div"),o&&o.c(),t=K(),n=k("div"),l=k("div"),r=k("div"),s=k("div"),c&&c.c(),f(e,"class","fd-user-menu__body lui-user-menu-fiori svelte-x3xwcc"),f(s,"class","fd-bar__element"),f(r,"class","fd-bar__right"),f(l,"class","fd-bar fd-bar--footer"),f(n,"class","fd-popover__body-footer")},m(g,h){E(g,e,h),o&&o.m(e,null),E(g,t,h),E(g,n,h),w(n,l),w(l,r),w(r,s),c&&c.m(s,null)},p(g,h){g[0]?o?o.p(g,h):(o=Id(g),o.c(),o.m(e,null)):o&&(o.d(1),o=null),g[10]||g[11]?c?c.p(g,h):(c=Vd(g),c.c(),c.m(s,null)):c&&(c.d(1),c=null)},d(g){g&&A(e),o&&o.d(),g&&A(t),g&&A(n),c&&c.d()}}}function Id(i){let e,t,n,l,r,s,o;function c(y,C){return y[7].picture?lk:ik}let g=c(i),h=g(i),_=i[7].name&&Td(i),p=i[7].description&&Ld(i),m=i[9].items,v=[];for(let y=0;y<m.length;y+=1)v[y]=Ed(Pd(i,m,y));let S=i[12]&&Rd(i);return{c(){e=k("div"),h.c(),t=K(),n=k("div"),_&&_.c(),l=K(),p&&p.c(),r=K(),s=k("ul");for(let y=0;y<v.length;y+=1)v[y].c();o=K(),S&&S.c(),f(e,"class","fd-user-menu__header"),f(n,"class","fd-user-menu__subheader"),f(s,"class","fd-list fd-list--compact fd-list--navigation fd-list--navigation-indication fd-list--no-border"),f(s,"role","list")},m(y,C){E(y,e,C),h.m(e,null),E(y,t,C),E(y,n,C),_&&_.m(n,null),w(n,l),p&&p.m(n,null),E(y,r,C),E(y,s,C);for(let N=0;N<v.length;N+=1)v[N].m(s,null);w(s,o),S&&S.m(s,null)},p(y,C){if(g===(g=c(y))&&h?h.p(y,C):(h.d(1),h=g(y),h&&(h.c(),h.m(e,null))),y[7].name?_?_.p(y,C):(_=Td(y),_.c(),_.m(n,l)):_&&(_.d(1),_=null),y[7].description?p?p.p(y,C):(p=Ld(y),p.c(),p.m(n,null)):p&&(p.d(1),p=null),C[0]&991884){m=y[9].items;let N;for(N=0;N<m.length;N+=1){const I=Pd(y,m,N);v[N]?v[N].p(I,C):(v[N]=Ed(I),v[N].c(),v[N].m(s,o))}for(;N<v.length;N+=1)v[N].d(1);v.length=m.length}y[12]?S?S.p(y,C):(S=Rd(y),S.c(),S.m(s,null)):S&&(S.d(1),S=null)},d(y){y&&A(e),h.d(),y&&A(t),y&&A(n),_&&_.d(),p&&p.d(),y&&A(r),y&&A(s),ct(v,y),S&&S.d()}}}function ik(i){let e,t=(i[7].initials?i[7].initials:"")+"",n;return{c(){e=k("span"),n=ye(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,r){E(l,e,r),w(e,n)},p(l,r){r[0]&128&&t!==(t=(l[7].initials?l[7].initials:"")+"")&&Ne(n,t)},d(l){l&&A(e)}}}function lk(i){let e;return{c(){e=k("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"),ni(e,"background-image","url('"+i[7].picture+"')")},m(t,n){E(t,e,n)},p(t,n){n[0]&128&&ni(e,"background-image","url('"+t[7].picture+"')")},d(t){t&&A(e)}}}function Td(i){let e,t=i[7].name+"",n;return{c(){e=k("div"),n=ye(t),f(e,"class","fd-user-menu__user-name svelte-x3xwcc"),f(e,"id","username"),f(e,"data-testid","luigi-topnav-profile-username")},m(l,r){E(l,e,r),w(e,n)},p(l,r){r[0]&128&&t!==(t=l[7].name+"")&&Ne(n,t)},d(l){l&&A(e)}}}function Ld(i){let e,t=i[7].description+"",n;return{c(){e=k("div"),n=ye(t),f(e,"class","fd-user-menu__user-role svelte-x3xwcc"),f(e,"data-testid","luigi-topnav-profile-description")},m(l,r){E(l,e,r),w(e,n)},p(l,r){r[0]&128&&t!==(t=l[7].description+"")&&Ne(n,t)},d(l){l&&A(e)}}}function Ad(i){let e,t;function n(s,o){return o[0]&512&&(e=null),e==null&&(e=!!s[17](s[34])),e?sk:rk}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=Se()},m(s,o){r.m(s,o),E(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function rk(i){let e,t;return{c(){e=k("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-x3xwcc"),ni(e,"background-image","url('"+i[7].icon+"')"),f(e,"alt",t=i[34].altText?i[34].altText:"")},m(n,l){E(n,e,l)},p(n,l){l[0]&128&&ni(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&&A(e)}}}function sk(i){let e,t;return{c(){e=k("i"),f(e,"role","presentation"),f(e,"class",t="fd-list__icon "+i[16](i[34].icon)+" svelte-x3xwcc")},m(n,l){E(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-list__icon "+n[16](n[34].icon)+" svelte-x3xwcc")&&f(e,"class",t)},d(n){n&&A(e)}}}function Ed(i){let e,t,n,l,r=i[13](i[34].label)+"",s,o,c,g,h,_=i[34].icon&&Ad(i);function p(){return i[24](i[34])}return{c(){e=k("li"),t=k("a"),_&&_.c(),n=K(),l=k("span"),s=ye(r),f(l,"class","fd-list__title svelte-x3xwcc"),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,"role","listitem"),f(e,"class","fd-list__item fd-list__item--link"),f(e,"data-testid",c=i[18](i[34]))},m(m,v){E(m,e,v),w(e,t),_&&_.m(t,null),w(t,n),w(t,l),w(l,s),g||(h=[le(t,"click",i[23]),le(e,"click",p)],g=!0)},p(m,v){i=m,i[34].icon?_?_.p(i,v):(_=Ad(i),_.c(),_.m(t,n)):_&&(_.d(1),_=null),v[0]&8704&&r!==(r=i[13](i[34].label)+"")&&Ne(s,r),v[0]&516&&o!==(o=i[2]?i[19](i[34]):void 0)&&f(t,"href",o),v[0]&512&&c!==(c=i[18](i[34]))&&f(e,"data-testid",c)},d(m){m&&A(e),_&&_.d(),g=!1,Qe(h)}}}function Rd(i){let e,t,n,l,r=i[13](i[9].settings.label)+"",s,o,c,g=i[9].settings.icon&&Dd(i);return{c(){e=k("li"),t=k("a"),g&&g.c(),n=K(),l=k("span"),s=ye(r),f(l,"class","fd-list__title svelte-x3xwcc"),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,"role","listitem"),f(e,"class","fd-list__item fd-list__item--link lui-anchor-node")},m(h,_){E(h,e,_),w(e,t),g&&g.m(t,null),w(t,n),w(t,l),w(l,s),o||(c=[le(e,"click",Rt(i[5])),le(e,"keyup",i[25])],o=!0)},p(h,_){h[9].settings.icon?g?g.p(h,_):(g=Dd(h),g.c(),g.m(t,n)):g&&(g.d(1),g=null),_[0]&8704&&r!==(r=h[13](h[9].settings.label)+"")&&Ne(s,r)},d(h){h&&A(e),g&&g.d(),o=!1,Qe(c)}}}function Dd(i){let e,t;function n(s,o){return o[0]&512&&(e=null),e==null&&(e=!!s[17](s[9].settings)),e?ok:ak}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=Se()},m(s,o){r.m(s,o),E(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function ak(i){let e,t,n;return{c(){e=k("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-x3xwcc"),it(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,r){E(l,e,r)},p(l,r){r[0]&512&&!it(e.src,t=l[9].settings.icon)&&f(e,"src",t),r[0]&512&&n!==(n=l[9].settings.altText?l[9].settings.altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function ok(i){let e,t;return{c(){e=k("i"),f(e,"role","presentation"),f(e,"class",t="fd-list__icon "+i[16](i[9].settings.icon)+" svelte-x3xwcc")},m(n,l){E(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-list__icon "+n[16](n[9].settings.icon)+" svelte-x3xwcc")&&f(e,"class",t)},d(n){n&&A(e)}}}function Vd(i){let e,t,n=(i[8]||!i[10]&&i[11])&&Md(i),l=i[10]&&!i[8]&&Od(i);return{c(){n&&n.c(),e=K(),l&&l.c(),t=Se()},m(r,s){n&&n.m(r,s),E(r,e,s),l&&l.m(r,s),E(r,t,s)},p(r,s){r[8]||!r[10]&&r[11]?n?n.p(r,s):(n=Md(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),r[10]&&!r[8]?l?l.p(r,s):(l=Od(r),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},d(r){n&&n.d(r),r&&A(e),l&&l.d(r),r&&A(t)}}}function Md(i){let e,t,n=i[13](i[9].logout.label)+"",l,r,s,o;return{c(){e=k("div"),t=k("button"),l=ye(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",r=i[18](i[9].logout))},m(c,g){E(c,e,g),w(e,t),w(t,l),s||(o=le(t,"click",i[4]),s=!0)},p(c,g){g[0]&8704&&n!==(n=c[13](c[9].logout.label)+"")&&Ne(l,n),g[0]&512&&r!==(r=c[18](c[9].logout))&&f(e,"data-testid",r)},d(c){c&&A(e),s=!1,o()}}}function Od(i){let e,t,n,l,r;return{c(){e=k("button"),e.textContent="Login",t=K(),n=k("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(s,o){E(s,e,o),E(s,t,o),E(s,n,o),l||(r=[le(e,"click",i[15]),le(n,"click",i[15])],l=!0)},p:Fe,d(s){s&&A(e),s&&A(t),s&&A(n),l=!1,Qe(r)}}}function uk(i){let e,t=!i[1]&&Nd(i);return{c(){t&&t.c(),e=Se()},m(n,l){t&&t.m(n,l),E(n,e,l)},p(n,l){n[1]?t&&(t.d(1),t=null):t?t.p(n,l):(t=Nd(n),t.c(),t.m(e.parentNode,e))},i:Fe,o:Fe,d(n){t&&t.d(n),n&&A(e)}}}function fk(i,e,t){let n;const l=Bt();let{isHidden:r=!1}=e,{addNavHrefForAnchor:s}=e,o,c,g={logout:{},items:[],settings:{}},h,_,p,m,v,S=dt("store"),y=dt("getTranslation");pi(i,y,j=>t(13,n=j));let C=dt("getUnsavedChangesModalPromise"),N=dt("openViewInModal");jt(async()=>{hi.isAuthorizationEnabled()?t(10,h=!0):(t(10,h=!1),U()),O(),nn.getLoggedInStore().subscribe(j=>{t(8,c=j)}),nn.getUserInfoStore().subscribe(j=>{t(7,o=j),l("userInfoUpdated",o)})});function I(){nn.startAuthorization()}function D(j){return ke.renderIconClassName(j)}function L(j){return ke.isOpenUIiconName(j.icon)}function T(j){return j.testId?j.testId:ke.prepareForTests(j.label)}function V(j){return be.getNodeHref(j)}function O(){m||(on.doOnStoreChange(S,async()=>{const j=await ie.getConfigValueAsync("navigation.profile.logout"),Ce=await ie.getConfigValueAsync("userSettings"),te=Ce||await ie.getConfigValueAsync("settings.userSettings"),He={items:await ie.getConfigValueAsync("navigation.profile.items")||[]};if(Boolean(te)){const Pe=te.userSettingsProfileMenuEntry;He.settings={...ol.userSettingsProfileMenuEntry,...Pe}}He.logout={...ol.logout,...j},t(11,_=Boolean(j)),v=!1,nn.setProfileLogoutFn(null),j&&ne.isFunction(j.customLogoutFn)&&(v=!0,nn.setProfileLogoutFn(j.customLogoutFn)),t(9,g=He),t(12,p=Boolean(te))},["navigation.profile"]),m=!0)}async function U(){const j=await ie.getConfigValueAsync("navigation.profile.staticUserInfoFn");j&&(nn.setUserInfo(o),t(7,o=j),l("userInfoUpdated",o))}function z(j){C().then(()=>{if(j.openNodeInModal){const Ce=be.buildRoute(j,`${j.link}`);N(Ce,j.openNodeInModal===!0?{}:j.openNodeInModal)}else et.navigateToLink(j)},()=>{}),l("toggleDropdownState")}function ae(){C().then(()=>{h?X():_&&v?g.logout.customLogoutFn():console.error("No IDP provider or profile.customLogoutFn is defined.")},()=>{})}function fe(){es.openUserSettings(),l("toggleDropdownState")}function X(){nn.logout()}function pe({keyCode:j}){(j===_i||j===ma)&&document.querySelector(".lui-anchor-node>.fd-list__link").click()}let{showUserInfo:ee}=e;const H=j=>{ke.handleNavAnchorClickedWithoutMetaKey(j)},oe=j=>z(j),$=j=>pe(j);return i.$$set=j=>{"isHidden"in j&&t(1,r=j.isHidden),"addNavHrefForAnchor"in j&&t(2,s=j.addNavHrefForAnchor),"showUserInfo"in j&&t(0,ee=j.showUserInfo)},i.$$.update=()=>{i.$$.dirty[0]&128&&t(0,ee=Boolean(o&&(o.name||o.email)))},[ee,r,s,z,ae,fe,pe,o,c,g,h,_,p,n,y,I,D,L,T,V,O,U,X,H,oe,$]}class ck extends At{constructor(e){super(),Lt(this,e,fk,uk,Nt,{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 Fd(i,e,t){const n=i.slice();return n[34]=e[t],n}function Ud(i){let e,t,n,l,r,s=i[0]&&Bd(i),o=i[9].items,c=[];for(let _=0;_<o.length;_+=1)c[_]=Wd(Fd(i,o,_));let g=i[12]&&zd(i),h=(i[10]||i[11])&&qd(i);return{c(){e=k("nav"),t=k("ul"),s&&s.c(),n=K();for(let _=0;_<c.length;_+=1)c[_].c();l=K(),g&&g.c(),r=K(),h&&h.c(),f(t,"class","fd-menu__list fd-menu__list--no-shadow"),f(e,"class","fd-menu lui-profile-simple-menu svelte-1lwfozx")},m(_,p){E(_,e,p),w(e,t),s&&s.m(t,null),w(t,n);for(let m=0;m<c.length;m+=1)c[m].m(t,null);w(t,l),g&&g.m(t,null),w(t,r),h&&h.m(t,null)},p(_,p){if(_[0]?s?s.p(_,p):(s=Bd(_),s.c(),s.m(t,n)):s&&(s.d(1),s=null),p[0]&991756){o=_[9].items;let m;for(m=0;m<o.length;m+=1){const v=Fd(_,o,m);c[m]?c[m].p(v,p):(c[m]=Wd(v),c[m].c(),c[m].m(t,l))}for(;m<c.length;m+=1)c[m].d(1);c.length=o.length}_[12]?g?g.p(_,p):(g=zd(_),g.c(),g.m(t,r)):g&&(g.d(1),g=null),_[10]||_[11]?h?h.p(_,p):(h=qd(_),h.c(),h.m(t,null)):h&&(h.d(1),h=null)},d(_){_&&A(e),s&&s.d(),ct(c,_),g&&g.d(),h&&h.d()}}}function Bd(i){let e,t,n=(i[7].name?i[7].name:i[7].email)+"",l;return{c(){e=k("li"),t=k("span"),l=ye(n),f(t,"aria-label","Username"),f(t,"id","username"),f(t,"class","lui-username fd-has-type-1 svelte-1lwfozx"),f(t,"data-testid","luigi-topnav-profile-username"),f(e,"class","fd-menu__item")},m(r,s){E(r,e,s),w(e,t),w(t,l)},p(r,s){s[0]&128&&n!==(n=(r[7].name?r[7].name:r[7].email)+"")&&Ne(l,n)},d(r){r&&A(e)}}}function Hd(i){let e,t;function n(s,o){return o[0]&512&&(e=null),e==null&&(e=!!s[17](s[34])),e?hk:dk}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=Se()},m(s,o){r.m(s,o),E(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function dk(i){let e,t,n;return{c(){e=k("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-1lwfozx"),it(e.src,t=i[34].icon)||f(e,"src",t),f(e,"alt",n=i[34].altText?i[34].altText:"")},m(l,r){E(l,e,r)},p(l,r){r[0]&512&&!it(e.src,t=l[34].icon)&&f(e,"src",t),r[0]&512&&n!==(n=l[34].altText?l[34].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function hk(i){let e,t;return{c(){e=k("span"),f(e,"class",t="fd-top-nav__icon "+i[16](i[34].icon)+" svelte-1lwfozx")},m(n,l){E(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-top-nav__icon "+n[16](n[34].icon)+" svelte-1lwfozx")&&f(e,"class",t)},d(n){n&&A(e)}}}function Wd(i){let e,t,n,l,r=i[13](i[34].label)+"",s,o,c,g,h,_=i[34].icon&&Hd(i);function p(){return i[24](i[34])}return{c(){e=k("li"),t=k("a"),_&&_.c(),n=K(),l=k("span"),s=ye(r),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(m,v){E(m,e,v),w(e,t),_&&_.m(t,null),w(t,n),w(t,l),w(l,s),g||(h=[le(t,"click",i[23]),le(e,"click",p)],g=!0)},p(m,v){i=m,i[34].icon?_?_.p(i,v):(_=Hd(i),_.c(),_.m(t,n)):_&&(_.d(1),_=null),v[0]&8704&&r!==(r=i[13](i[34].label)+"")&&Ne(s,r),v[0]&516&&o!==(o=i[2]?i[19](i[34]):void 0)&&f(t,"href",o),v[0]&512&&c!==(c=i[18](i[34]))&&f(e,"data-testid",c)},d(m){m&&A(e),_&&_.d(),g=!1,Qe(h)}}}function zd(i){let e,t,n,l,r=i[13](i[9].settings.label)+"",s,o,c,g,h=i[9].settings.icon&&Gd(i);return{c(){e=k("li"),t=k("a"),h&&h.c(),n=K(),l=k("span"),s=ye(r),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(_,p){E(_,e,p),w(e,t),h&&h.m(t,null),w(t,n),w(t,l),w(l,s),c||(g=[le(e,"click",Rt(i[5])),le(e,"keyup",i[25])],c=!0)},p(_,p){_[9].settings.icon?h?h.p(_,p):(h=Gd(_),h.c(),h.m(t,n)):h&&(h.d(1),h=null),p[0]&8704&&r!==(r=_[13](_[9].settings.label)+"")&&Ne(s,r),p[0]&512&&o!==(o=_[18](_[9].settings))&&f(e,"data-testid",o)},d(_){_&&A(e),h&&h.d(),c=!1,Qe(g)}}}function Gd(i){let e,t;function n(s,o){return o[0]&512&&(e=null),e==null&&(e=!!s[17](s[9].settings)),e?_k:gk}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=Se()},m(s,o){r.m(s,o),E(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function gk(i){let e,t,n;return{c(){e=k("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-1lwfozx"),it(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,r){E(l,e,r)},p(l,r){r[0]&512&&!it(e.src,t=l[9].settings.icon)&&f(e,"src",t),r[0]&512&&n!==(n=l[9].settings.altText?l[9].settings.altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function _k(i){let e,t;return{c(){e=k("i"),f(e,"class",t="fd-top-nav__icon "+i[16](i[9].settings.icon)+" svelte-1lwfozx")},m(n,l){E(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-top-nav__icon "+n[16](n[9].settings.icon)+" svelte-1lwfozx")&&f(e,"class",t)},d(n){n&&A(e)}}}function qd(i){let e,t,n=(i[8]||!i[10]&&i[11])&&Kd(i),l=i[10]&&!i[8]&&jd(i);return{c(){n&&n.c(),e=K(),l&&l.c(),t=Se()},m(r,s){n&&n.m(r,s),E(r,e,s),l&&l.m(r,s),E(r,t,s)},p(r,s){r[8]||!r[10]&&r[11]?n?n.p(r,s):(n=Kd(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),r[10]&&!r[8]?l?l.p(r,s):(l=jd(r),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},d(r){n&&n.d(r),r&&A(e),l&&l.d(r),r&&A(t)}}}function Kd(i){let e,t,n,l,r=i[13](i[9].logout.label)+"",s,o,c,g,h=i[9].logout.icon&&Jd(i);return{c(){e=k("li"),t=k("button"),h&&h.c(),n=K(),l=k("span"),s=ye(r),f(l,"class","fd-menu__title"),f(t,"title","Logout"),f(t,"class","fd-menu__link lui-logout-btn svelte-1lwfozx"),f(t,"data-testid","logout-btn"),f(e,"class","fd-menu__item svelte-1lwfozx"),f(e,"data-testid",o=i[18](i[9].logout))},m(_,p){E(_,e,p),w(e,t),h&&h.m(t,null),w(t,n),w(t,l),w(l,s),c||(g=le(e,"click",i[4]),c=!0)},p(_,p){_[9].logout.icon?h?h.p(_,p):(h=Jd(_),h.c(),h.m(t,n)):h&&(h.d(1),h=null),p[0]&8704&&r!==(r=_[13](_[9].logout.label)+"")&&Ne(s,r),p[0]&512&&o!==(o=_[18](_[9].logout))&&f(e,"data-testid",o)},d(_){_&&A(e),h&&h.d(),c=!1,g()}}}function Jd(i){let e,t;function n(s,o){return o[0]&512&&(e=null),e==null&&(e=!!s[17](s[9].logout)),e?mk:pk}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=Se()},m(s,o){r.m(s,o),E(s,t,o)},p(s,o){l===(l=n(s,o))&&r?r.p(s,o):(r.d(1),r=l(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){r.d(s),s&&A(t)}}}function pk(i){let e,t,n;return{c(){e=k("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-1lwfozx"),it(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,r){E(l,e,r)},p(l,r){r[0]&512&&!it(e.src,t=l[9].logout.icon)&&f(e,"src",t),r[0]&512&&n!==(n=l[9].logout.altText?l[9].logout.altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function mk(i){let e,t;return{c(){e=k("i"),f(e,"class",t="fd-top-nav__icon "+i[16](i[9].logout.icon)+" svelte-1lwfozx")},m(n,l){E(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-top-nav__icon "+n[16](n[9].logout.icon)+" svelte-1lwfozx")&&f(e,"class",t)},d(n){n&&A(e)}}}function jd(i){let e,t,n;return{c(){e=k("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,r){E(l,e,r),t||(n=le(e,"click",i[15]),t=!0)},p:Fe,d(l){l&&A(e),t=!1,n()}}}function bk(i){let e,t=!i[1]&&Ud(i);return{c(){t&&t.c(),e=Se()},m(n,l){t&&t.m(n,l),E(n,e,l)},p(n,l){n[1]?t&&(t.d(1),t=null):t?t.p(n,l):(t=Ud(n),t.c(),t.m(e.parentNode,e))},i:Fe,o:Fe,d(n){t&&t.d(n),n&&A(e)}}}function vk(i,e,t){let n;const l=Bt();let{isHidden:r=!1}=e,{addNavHrefForAnchor:s}=e,o,c,g={logout:{},items:[],settings:{}},h,_,p,m,v,S=dt("store"),y=dt("getTranslation");pi(i,y,j=>t(13,n=j));let C=dt("getUnsavedChangesModalPromise"),N=dt("openViewInModal");jt(async()=>{hi.isAuthorizationEnabled()?t(10,h=!0):(t(10,h=!1),U()),O(),nn.getLoggedInStore().subscribe(j=>{t(8,c=j)}),nn.getUserInfoStore().subscribe(j=>{t(7,o=j),l("userInfoUpdated",o)})});function I(){nn.startAuthorization()}function D(j){return ke.renderIconClassName(j)}function L(j){return ke.isOpenUIiconName(j.icon)}function T(j){return j.testId?j.testId:ke.prepareForTests(j.label)}function V(j){return be.getNodeHref(j)}function O(){m||(on.doOnStoreChange(S,async()=>{const j=await ie.getConfigValueAsync("navigation.profile.logout"),Ce=await ie.getConfigValueAsync("userSettings"),te=Ce||await ie.getConfigValueAsync("settings.userSettings");t(12,p=Boolean(te));const He={items:await ie.getConfigValueAsync("navigation.profile.items")||[]};if(p){const Pe=te.userSettingsProfileMenuEntry;He.settings={...ol.userSettingsProfileMenuEntry,...Pe}}He.logout={...ol.logout,...j},t(11,_=Boolean(j)),v=!1,nn.setProfileLogoutFn(null),j&&ne.isFunction(j.customLogoutFn)&&(v=!0,nn.setProfileLogoutFn(j.customLogoutFn)),t(9,g=He)},["navigation.profile"]),m=!0)}async function U(){const j=await ie.getConfigValueAsync("navigation.profile.staticUserInfoFn");j&&(nn.setUserInfo(o),t(7,o=j),l("userInfoUpdated",o))}function z(j){C().then(()=>{if(j.openNodeInModal){const Ce=be.buildRoute(j,`${j.link}`);N(Ce,j.openNodeInModal===!0?{}:j.openNodeInModal)}else et.navigateToLink(j)},()=>{}),l("toggleDropdownState")}function ae(){C().then(()=>{h?X():_&&v?g.logout.customLogoutFn():console.error("No IDP provider or profile.customLogoutFn is defined.")},()=>{})}function fe(){es.openUserSettings(),l("toggleDropdownState")}function X(){nn.logout()}function pe({keyCode:j}){(j===_i||j===ma)&&document.querySelector(".lui-anchor-node>.fd-menu__link").click()}let{showUserInfo:ee}=e;const H=j=>{ke.handleNavAnchorClickedWithoutMetaKey(j)},oe=j=>z(j),$=j=>pe(j);return i.$$set=j=>{"isHidden"in j&&t(1,r=j.isHidden),"addNavHrefForAnchor"in j&&t(2,s=j.addNavHrefForAnchor),"showUserInfo"in j&&t(0,ee=j.showUserInfo)},i.$$.update=()=>{i.$$.dirty[0]&128&&t(0,ee=Boolean(o&&(o.name||o.email)))},[ee,r,s,z,ae,fe,pe,o,c,g,h,_,p,n,y,I,D,L,T,V,O,U,X,H,oe,$]}class M_ extends At{constructor(e){super(),Lt(this,e,vk,bk,Nt,{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 Yd(i,e,t){const n=i.slice();return n[12]=e[t],n}function Qd(i){let e,t,n=i[1],l=[];for(let s=0;s<n.length;s+=1)l[s]=$d(Yd(i,n,s));const r=s=>G(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s<l.length;s+=1)l[s].c();e=Se()},m(s,o){for(let c=0;c<l.length;c+=1)l[c].m(s,o);E(s,e,o),t=!0},p(s,o){if(o&510){n=s[1];let c;for(c=0;c<n.length;c+=1){const g=Yd(s,n,c);l[c]?(l[c].p(g,o),F(l[c],1)):(l[c]=$d(g),l[c].c(),F(l[c],1),l[c].m(e.parentNode,e))}for(Le(),c=n.length;c<l.length;c+=1)r(c);Ae()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)F(l[o]);t=!0}},o(s){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)G(l[o]);t=!1},d(s){ct(l,s),s&&A(e)}}}function Zd(i){let e,t,n,l,r,s,o,c,g=i[4](i[12])+"",h,_,p=i[5](i[12]),m,v,S,y,C,N;function I(O,U){return U&10&&(n=null),n==null&&(n=!!O[3](O[12])),n?Sk:wk}let D=I(i,-1),L=D(i);r=new Yn({props:{node:i[12]}});let T=p&&Xd(i);function V(){return i[10](i[12])}return{c(){e=k("li"),t=k("div"),L.c(),l=K(),qe(r.$$.fragment),s=K(),o=k("div"),c=k("div"),h=ye(g),_=K(),T&&T.c(),m=K(),f(t,"class","lui-product-switch__icon svelte-503htr"),f(c,"class","fd-product-switch__title svelte-503htr"),f(o,"class","fd-product-switch__text svelte-503htr"),f(e,"class",v="fd-product-switch__item "+(i[6]=="true"?"y-has-no-subtitle":"")+" "+(i[12].selected?"selected":"")+" svelte-503htr"),f(e,"data-e2e","mobile-topnav-item"),f(e,"data-testid",S=i[2](i[12]))},m(O,U){E(O,e,U),w(e,t),L.m(t,null),w(t,l),ze(r,t,null),w(e,s),w(e,o),w(o,c),w(c,h),w(o,_),T&&T.m(o,null),w(e,m),y=!0,C||(N=le(e,"click",V),C=!0)},p(O,U){i=O,D===(D=I(i,U))&&L?L.p(i,U):(L.d(1),L=D(i),L&&(L.c(),L.m(t,l)));const z={};U&2&&(z.node=i[12]),r.$set(z),(!y||U&18)&&g!==(g=i[4](i[12])+"")&&Ne(h,g),U&34&&(p=i[5](i[12])),p?T?T.p(i,U):(T=Xd(i),T.c(),T.m(o,null)):T&&(T.d(1),T=null),(!y||U&66&&v!==(v="fd-product-switch__item "+(i[6]=="true"?"y-has-no-subtitle":"")+" "+(i[12].selected?"selected":"")+" svelte-503htr"))&&f(e,"class",v),(!y||U&6&&S!==(S=i[2](i[12])))&&f(e,"data-testid",S)},i(O){y||(F(r.$$.fragment,O),y=!0)},o(O){G(r.$$.fragment,O),y=!1},d(O){O&&A(e),L.d(),Ge(r),T&&T.d(),C=!1,N()}}}function wk(i){let e,t,n;return{c(){e=k("img"),it(e.src,t=i[12].icon)||f(e,"src",t),f(e,"alt",n=i[12].altText?i[12].altText:""),f(e,"class","svelte-503htr")},m(l,r){E(l,e,r)},p(l,r){r&2&&!it(e.src,t=l[12].icon)&&f(e,"src",t),r&2&&n!==(n=l[12].altText?l[12].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function Sk(i){let e,t;return{c(){e=k("i"),f(e,"class",t="sap-icon "+(i[12].icon&&i[3](i[12])?i[8](i[12].icon):"")+" svelte-503htr")},m(n,l){E(n,e,l)},p(n,l){l&10&&t!==(t="sap-icon "+(n[12].icon&&n[3](n[12])?n[8](n[12].icon):"")+" svelte-503htr")&&f(e,"class",t)},d(n){n&&A(e)}}}function Xd(i){let e,t=i[5](i[12])+"",n;return{c(){e=k("div"),n=ye(t),f(e,"class","fd-product-switch__subtitle")},m(l,r){E(l,e,r),w(e,n)},p(l,r){r&34&&t!==(t=l[5](l[12])+"")&&Ne(n,t)},d(l){l&&A(e)}}}function $d(i){let e,t,n=i[12].label&&Zd(i);return{c(){n&&n.c(),e=Se()},m(l,r){n&&n.m(l,r),E(l,e,r),t=!0},p(l,r){l[12].label?n?(n.p(l,r),r&2&&F(n,1)):(n=Zd(l),n.c(),F(n,1),n.m(e.parentNode,e)):n&&(Le(),G(n,1,1,()=>{n=null}),Ae())},i(l){t||(F(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function kk(i){let e,t,n,l,r,s,o,c,g,h,_,p,m,v,S,y,C,N,I,D=i[1]&&Qd(i);return{c(){e=k("div"),t=k("div"),n=k("div"),l=k("div"),r=k("div"),s=k("h2"),o=ye(i[0]),c=K(),g=k("div"),h=k("div"),_=k("ul"),D&&D.c(),p=K(),m=k("footer"),v=k("div"),S=k("div"),y=k("button"),y.textContent="Cancel",f(s,"class","fd-title fd-title--h5"),f(s,"id","dialog-title-4"),f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(n,"class","fd-dialog__header fd-bar fd-bar--header"),f(_,"class","fd-product-switch__list"),f(h,"class","fd-product-switch__body fd-product-switch__body--mobile svelte-503htr"),f(g,"class","fd-dialog__body fd-dialog__body--no-vertical-padding"),f(y,"class","fd-button fd-button--light fd-dialog__decisive-button"),f(y,"data-testid","mobile-topnav-close"),f(S,"class","fd-bar__element"),f(v,"class","fd-bar__right"),f(m,"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(L,T){E(L,e,T),w(e,t),w(t,n),w(n,l),w(l,r),w(r,s),w(s,o),w(t,c),w(t,g),w(g,h),w(h,_),D&&D.m(_,null),w(t,p),w(t,m),w(m,v),w(v,S),w(S,y),C=!0,N||(I=[le(y,"click",i[9]),le(e,"click",Ft(Ck))],N=!0)},p(L,[T]){(!C||T&1)&&Ne(o,L[0]),L[1]?D?(D.p(L,T),T&2&&F(D,1)):(D=Qd(L),D.c(),F(D,1),D.m(_,null)):D&&(Le(),G(D,1,1,()=>{D=null}),Ae())},i(L){C||(F(D),C=!0)},o(L){G(D),C=!1},d(L){L&&A(e),D&&D.d(),N=!1,Qe(I)}}}const Ck=()=>{};function yk(i,e,t){const n=Bt();let{label:l}=e,{nodes:r}=e,{getTestId:s}=e,{hasOpenUIicon:o}=e,{getNodeLabel:c}=e,{getNodeSubtitle:g}=e,{noSubTitle:h}=e;function _(S){return ke.renderIconClassName(S)}function p(S){n("listClick",S)}function m(S){Dl.call(this,i,S)}const v=S=>p(S);return i.$$set=S=>{"label"in S&&t(0,l=S.label),"nodes"in S&&t(1,r=S.nodes),"getTestId"in S&&t(2,s=S.getTestId),"hasOpenUIicon"in S&&t(3,o=S.hasOpenUIicon),"getNodeLabel"in S&&t(4,c=S.getNodeLabel),"getNodeSubtitle"in S&&t(5,g=S.getNodeSubtitle),"noSubTitle"in S&&t(6,h=S.noSubTitle)},[l,r,s,o,c,g,h,p,_,m,v]}class O_ extends At{constructor(e){super(),Lt(this,e,yk,kk,Nt,{label:0,nodes:1,getTestId:2,hasOpenUIicon:3,getNodeLabel:4,getNodeSubtitle:5,noSubTitle:6,onActionClick:7})}get onActionClick(){return this.$$.ctx[7]}}const{window:Pk}=Fi;function xd(i,e,t){const n=i.slice();return n[6]=e[t],n}function eh(i){let e,t,n,l=i[0]&&th(i);return{c(){e=k("nav"),t=k("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(r,s){E(r,e,s),w(e,t),l&&l.m(t,null),n=!0},p(r,s){r[0]?l?(l.p(r,s),s&1&&F(l,1)):(l=th(r),l.c(),F(l,1),l.m(t,null)):l&&(Le(),G(l,1,1,()=>{l=null}),Ae())},i(r){n||(F(l),n=!0)},o(r){G(l),n=!1},d(r){r&&A(e),l&&l.d()}}}function th(i){let e,t,n=i[0],l=[];for(let s=0;s<n.length;s+=1)l[s]=ih(xd(i,n,s));const r=s=>G(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s<l.length;s+=1)l[s].c();e=Se()},m(s,o){for(let c=0;c<l.length;c+=1)l[c].m(s,o);E(s,e,o),t=!0},p(s,o){if(o&16005){n=s[0];let c;for(c=0;c<n.length;c+=1){const g=xd(s,n,c);l[c]?(l[c].p(g,o),F(l[c],1)):(l[c]=ih(g),l[c].c(),F(l[c],1),l[c].m(e.parentNode,e))}for(Le(),c=n.length;c<l.length;c+=1)r(c);Ae()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)F(l[o]);t=!0}},o(s){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)G(l[o]);t=!1},d(s){ct(l,s),s&&A(e)}}}function nh(i){let e,t,n,l,r,s,o,c,g=i[11](i[6])+"",h,_,p,m,v,S,y;function C(L,T){return T&1&&(l=null),l==null&&(l=!!(L[6].icon&&L[9](L[6]))),l?Ik:Nk}let N=C(i,-1),I=N(i);s=new Yn({props:{node:i[6]}});function D(){return i[15](i[6])}return{c(){e=k("li"),t=k("a"),n=k("span"),I.c(),r=K(),qe(s.$$.fragment),o=K(),c=k("span"),h=ye(g),p=K(),f(n,"class","fd-top-nav__icon svelte-1gqx0dl"),f(c,"class","fd-menu__title"),f(t,"href",_=i[7]?i[13](i[6]):void 0),f(t,"class","fd-menu__link"),f(e,"class","fd-menu__item"),f(e,"data-testid",m=i[12](i[6]))},m(L,T){E(L,e,T),w(e,t),w(t,n),I.m(n,null),w(n,r),ze(s,n,null),w(t,o),w(t,c),w(c,h),w(e,p),v=!0,S||(y=[le(t,"click",i[14]),le(e,"click",D)],S=!0)},p(L,T){i=L,N===(N=C(i,T))&&I?I.p(i,T):(I.d(1),I=N(i),I&&(I.c(),I.m(n,r)));const V={};T&1&&(V.node=i[6]),s.$set(V),(!v||T&1)&&g!==(g=i[11](i[6])+"")&&Ne(h,g),(!v||T&1&&_!==(_=i[7]?i[13](i[6]):void 0))&&f(t,"href",_),(!v||T&1&&m!==(m=i[12](i[6])))&&f(e,"data-testid",m)},i(L){v||(F(s.$$.fragment,L),v=!0)},o(L){G(s.$$.fragment,L),v=!1},d(L){L&&A(e),I.d(),Ge(s),S=!1,Qe(y)}}}function Nk(i){let e,t,n;return{c(){e=k("img"),f(e,"class","sap-icon svelte-1gqx0dl"),it(e.src,t=i[6].icon)||f(e,"src",t),f(e,"alt",n=i[6].altText?i[6].altText:"")},m(l,r){E(l,e,r)},p(l,r){r&1&&!it(e.src,t=l[6].icon)&&f(e,"src",t),r&1&&n!==(n=l[6].altText?l[6].altText:"")&&f(e,"alt",n)},d(l){l&&A(e)}}}function Ik(i){let e,t;return{c(){e=k("i"),f(e,"class",t="sap-icon "+i[10](i[6].icon))},m(n,l){E(n,e,l)},p(n,l){l&1&&t!==(t="sap-icon "+n[10](n[6].icon))&&f(e,"class",t)},d(n){n&&A(e)}}}function ih(i){let e,t,n=i[6].label&&nh(i);return{c(){n&&n.c(),e=Se()},m(l,r){n&&n.m(l,r),E(l,e,r),t=!0},p(l,r){l[6].label?n?(n.p(l,r),r&1&&F(n,1)):(n=nh(l),n.c(),F(n,1),n.m(e.parentNode,e)):n&&(Le(),G(n,1,1,()=>{n=null}),Ae())},i(l){t||(F(n),t=!0)},o(l){G(n),t=!1},d(l){n&&n.d(l),l&&A(e)}}}function lh(i){let e,t;return e=new O_({props:{nodes:i[6].children,label:i[11](i[6]),hasOpenUIicon:i[9],getNodeLabel:i[11],getNodeSubtitle:i[8],getTestId:i[12],noSubTitle:"true"}}),e.$on("click",i[4]),e.$on("listClick",i[3]),{c(){qe(e.$$.fragment)},m(n,l){ze(e,n,l),t=!0},p(n,l){const r={};l&64&&(r.nodes=n[6].children),l&64&&(r.label=n[11](n[6])),e.$set(r)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){G(e.$$.fragment,n),t=!1},d(n){Ge(e,n)}}}function Tk(i){let e,t,n,l,r,s=!i[1]&&eh(i),o=i[1]&&lh(i);return{c(){s&&s.c(),e=K(),o&&o.c(),t=Se()},m(c,g){s&&s.m(c,g),E(c,e,g),o&&o.m(c,g),E(c,t,g),n=!0,l||(r=le(Pk,"resize",ha),l=!0)},p(c,[g]){c[1]?s&&(Le(),G(s,1,1,()=>{s=null}),Ae()):s?(s.p(c,g),g&2&&F(s,1)):(s=eh(c),s.c(),F(s,1),s.m(e.parentNode,e)),c[1]?o?(o.p(c,g),g&2&&F(o,1)):(o=lh(c),o.c(),F(o,1),o.m(t.parentNode,t)):o&&(Le(),G(o,1,1,()=>{o=null}),Ae())},i(c){n||(F(s),F(o),n=!0)},o(c){G(s),G(o),n=!1},d(c){s&&s.d(c),c&&A(e),o&&o.d(c),c&&A(t),l=!1,r()}}}function ha(){let i=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${i}px`)}function Lk(i,e,t){const n=Bt();let{isMobile:l}=e,{children:r}=e,{node:s}=e,o,c=dt("getUnsavedChangesModalPromise"),g=dt("openViewInModal"),h;const _=()=>{},p=()=>({get:()=>({pathParams:o}),set:V=>{}});jt(async()=>{ha()}),Mn(async()=>{r||t(0,r=await Vt.getChildren(s)),t(0,r)});function m(V){c().then(()=>{if(V.openNodeInModal){const O=be.buildRoute(V,`/${V.pathSegment}`);g(O,V.openNodeInModal===!0?{}:V.openNodeInModal)}else et.handleRouteClick(V,p())},()=>{}),S()}function v(V){m(V.detail)}function S(){n("close")}function y(V){return ke.isOpenUIiconName(V.icon)}function C(V){return ke.renderIconClassName(V)}function N(V){return ht.getTranslation(V.label)}function I(V){return V.testId?V.testId:ke.prepareForTests(V.pathSegment,V.label)}function D(V){return be.getNodeHref(V,o)}const L=V=>{ke.handleNavAnchorClickedWithoutMetaKey(V)},T=V=>m(V);return i.$$set=V=>{"isMobile"in V&&t(1,l=V.isMobile),"children"in V&&t(0,r=V.children),"node"in V&&t(6,s=V.node)},[r,l,m,v,S,ha,s,h,_,y,C,N,I,D,L,T]}class F_ extends At{constructor(e){super(),Lt(this,e,Lk,Tk,Nt,{isMobile:1,children:0,node:6,onActionClick:2,onActionClickExternal:3,closeSubNav:4,setViewportHeightVariable:5})}get onActionClick(){return this.$$.ctx[2]}get onActionClickExternal(){return this.$$.ctx[3]}get closeSubNav(){return this.$$.ctx[4]}get setViewportHeightVariable(){return ha}}const dn={_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?ne.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=ne.addLeadingSlash(et.getCurrentPath()),n=ne.addLeadingSlash(e.link);return t.startsWith(n)?i.link+ne.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=ne.normalizePath(i),n=ne.normalizePath(e);return Boolean(e&&t&&typeof t=="string"&&t.startsWith(n)&&t!==n)},async getFallbackLabel(i,e){if(!i)return e;const t=ie.getConfigBooleanValue("navigation.contextSwitcher.useFallbackLabelCache"),n=dn._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=ne.normalizePath(i),t=ne.normalizePath(t),!!dn.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=dn.getOptionById(e,l)),n},async getSelectedLabel(i,e,t,n){const l=this.getSelectedId(i,e,t);if(!l)return;const r=await this.getSelectedOption(i,e,t);return(r?r.label:void 0)||await dn.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=ie.getConfigValue("navigation.contextSwitcher");if(!e.lazyloadOptions&&i.length)return i;const t=await ie.getConfigValueAsync("navigation.contextSwitcher.options");return await dn.generateSwitcherNav(e,t)}};function rh(i,e,t){const n=i.slice();return n[21]=e[t],n}function sh(i,e,t){const n=i.slice();return n[21]=e[t],n}function ah(i,e,t){const n=i.slice();return n[21]=e[t],n}function oh(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=fh(ah(i,t,l));return{c(){e=k("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-menu__list fd-menu__list--top svelte-qht2wo")},m(l,r){E(l,e,r);for(let s=0;s<n.length;s+=1)n[s].m(e,null)},p(l,r){if(r&21249){t=l[0];let s;for(s=0;s<t.length;s+=1){const o=ah(l,t,s);n[s]?n[s].p(o,r):(n[s]=fh(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){l&&A(e),ct(n,l)}}}function uh(i){let e,t,n,l=i[14](i[21].label)+"",r,s,o,c,g,h;function _(){return i[15](i[21])}return{c(){e=k("li"),t=k("a"),n=k("span"),r=ye(l),o=K(),f(n,"class","fd-menu__title"),f(t,"href",s=i[8](i[21])),f(t,"class","fd-menu__link"),f(e,"class","fd-menu__item"),f(e,"data-testid",c=i[9](i[21]))},m(p,m){E(p,e,m),w(e,t),w(t,n),w(n,r),w(e,o),g||(h=[le(t,"click",Rt(Ok)),le(e,"click",_)],g=!0)},p(p,m){i=p,m&16385&&l!==(l=i[14](i[21].label)+"")&&Ne(r,l),m&257&&s!==(s=i[8](i[21]))&&f(t,"href",s),m&513&&c!==(c=i[9](i[21]))&&f(e,"data-testid",c)},d(p){p&&A(e),g=!1,Qe(h)}}}function fh(i){let e=i[21].position==="top"||!["top","bottom"].includes(i[21].position),t,n=e&&uh(i);return{c(){n&&n.c(),t=Se()},m(l,r){n&&n.m(l,r),E(l,t,r)},p(l,r){r&1&&(e=l[21].position==="top"||!["top","bottom"].includes(l[21].position)),e?n?n.p(l,r):(n=uh(l),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(l){n&&n.d(l),l&&A(t)}}}function ch(i){let e;return{c(){e=k("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>
|
|
58
58
|
<div class="fd-busy-indicator__circle"></div>
|