@kong-ui-public/app-layout 0.15.7 → 0.15.8

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.
@@ -8,5 +8,5 @@
8
8
  * focus-trap-vue v4.0.1
9
9
  * (c) 2023 Eduardo San Martin Morote
10
10
  * @license MIT
11
- */function Gr(r){return r}const An={escapeDeactivates:{type:Boolean,default:!0},returnFocusOnDeactivate:{type:Boolean,default:!0},allowOutsideClick:{type:[Boolean,Function],default:!0},clickOutsideDeactivates:[Boolean,Function],initialFocus:[String,Function,Boolean],fallbackFocus:[String,Function],checkCanFocusTrap:Function,checkCanReturnFocus:Function,delayInitialFocus:{type:Boolean,default:!0},document:Object,preventScroll:Boolean,setReturnFocus:[Object,String,Boolean,Function],tabbableOptions:Object},Fn=e.defineComponent({props:Object.assign({active:{type:Boolean,default:!0}},An),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(r,{slots:n,emit:a}){let o;const s=e.ref(null),f=e.computed(()=>{const p=s.value;return p&&(p instanceof HTMLElement?p:p.$el)});function c(){return o||(o=$n(f.value,{escapeDeactivates:r.escapeDeactivates,allowOutsideClick:r.allowOutsideClick,returnFocusOnDeactivate:r.returnFocusOnDeactivate,clickOutsideDeactivates:r.clickOutsideDeactivates,onActivate:()=>{a("update:active",!0),a("activate")},onDeactivate:()=>{a("update:active",!1),a("deactivate")},onPostActivate:()=>a("postActivate"),onPostDeactivate:()=>a("postDeactivate"),initialFocus:r.initialFocus,fallbackFocus:r.fallbackFocus,tabbableOptions:r.tabbableOptions,delayInitialFocus:r.delayInitialFocus}))}return e.onMounted(()=>{e.watch(()=>r.active,p=>{p&&f.value?c().activate():o&&(o.deactivate(),(!f.value||f.value.nodeType===Node.COMMENT_NODE)&&(o=null))},{immediate:!0,flush:"post"})}),e.onUnmounted(()=>{o&&o.deactivate(),o=null}),{activate(){c().activate()},deactivate(){o&&o.deactivate()},renderImpl(){if(!n.default)return null;const p=n.default().filter(v=>v.type!==e.Comment);return!p||!p.length||p.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),p):e.cloneVNode(p[0],{ref:s})}}}});function Xe(){return{debounce:(n,a)=>{let o;return(...s)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{n(...s)},a)}}}}var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},be={},Dn={get exports(){return be},set exports(r){be=r}};(function(r,n){var a=200,o="__lodash_hash_undefined__",s=9007199254740991,f="[object Arguments]",c="[object Array]",p="[object Boolean]",g="[object Date]",v="[object Error]",C="[object Function]",w="[object GeneratorFunction]",x="[object Map]",N="[object Number]",I="[object Object]",D="[object Promise]",R="[object RegExp]",F="[object Set]",K="[object String]",P="[object Symbol]",k="[object WeakMap]",A="[object ArrayBuffer]",S="[object DataView]",d="[object Float32Array]",u="[object Float64Array]",b="[object Int8Array]",T="[object Int16Array]",h="[object Int32Array]",B="[object Uint8Array]",y="[object Uint8ClampedArray]",O="[object Uint16Array]",_="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,Se=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,E={};E[f]=E[c]=E[A]=E[S]=E[p]=E[g]=E[d]=E[u]=E[b]=E[T]=E[h]=E[x]=E[N]=E[I]=E[R]=E[F]=E[K]=E[P]=E[B]=E[y]=E[O]=E[_]=!0,E[v]=E[C]=E[k]=!1;var wa=typeof me=="object"&&me&&me.Object===Object&&me,ka=typeof self=="object"&&self&&self.Object===Object&&self,W=wa||ka||Function("return this")(),nt=n&&!n.nodeType&&n,at=nt&&!0&&r&&!r.nodeType&&r,Ca=at&&at.exports===nt;function Sa(t,i){return t.set(i[0],i[1]),t}function Ta(t,i){return t.add(i),t}function Ea(t,i){for(var l=-1,m=t?t.length:0;++l<m&&i(t[l],l,t)!==!1;);return t}function Na(t,i){for(var l=-1,m=i.length,$=t.length;++l<m;)t[$+l]=i[l];return t}function rt(t,i,l,m){var $=-1,V=t?t.length:0;for(m&&V&&(l=t[++$]);++$<V;)l=i(l,t[$],$,t);return l}function Ia(t,i){for(var l=-1,m=Array(t);++l<t;)m[l]=i(l);return m}function Ba(t,i){return t==null?void 0:t[i]}function ot(t){var i=!1;if(t!=null&&typeof t.toString!="function")try{i=!!(t+"")}catch{}return i}function it(t){var i=-1,l=Array(t.size);return t.forEach(function(m,$){l[++i]=[$,m]}),l}function Te(t,i){return function(l){return t(i(l))}}function ct(t){var i=-1,l=Array(t.size);return t.forEach(function(m){l[++i]=m}),l}var xa=Array.prototype,Oa=Function.prototype,he=Object.prototype,Ee=W["__core-js_shared__"],lt=function(){var t=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),st=Oa.toString,G=he.hasOwnProperty,ge=he.toString,$a=RegExp("^"+st.call(G).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=Ca?W.Buffer:void 0,ft=W.Symbol,ut=W.Uint8Array,Aa=Te(Object.getPrototypeOf,Object),Fa=Object.create,Da=he.propertyIsEnumerable,Va=xa.splice,pt=Object.getOwnPropertySymbols,Ma=dt?dt.isBuffer:void 0,La=Te(Object.keys,Object),Ne=te(W,"DataView"),ie=te(W,"Map"),Ie=te(W,"Promise"),Be=te(W,"Set"),xe=te(W,"WeakMap"),ce=te(Object,"create"),Ra=J(Ne),Pa=J(ie),Za=J(Ie),ja=J(Be),Ka=J(xe),mt=ft?ft.prototype:void 0,bt=mt?mt.valueOf:void 0;function Y(t){var i=-1,l=t?t.length:0;for(this.clear();++i<l;){var m=t[i];this.set(m[0],m[1])}}function Ha(){this.__data__=ce?ce(null):{}}function za(t){return this.has(t)&&delete this.__data__[t]}function Wa(t){var i=this.__data__;if(ce){var l=i[t];return l===o?void 0:l}return G.call(i,t)?i[t]:void 0}function Ua(t){var i=this.__data__;return ce?i[t]!==void 0:G.call(i,t)}function Ga(t,i){var l=this.__data__;return l[t]=ce&&i===void 0?o:i,this}Y.prototype.clear=Ha,Y.prototype.delete=za,Y.prototype.get=Wa,Y.prototype.has=Ua,Y.prototype.set=Ga;function U(t){var i=-1,l=t?t.length:0;for(this.clear();++i<l;){var m=t[i];this.set(m[0],m[1])}}function qa(){this.__data__=[]}function Ya(t){var i=this.__data__,l=ye(i,t);if(l<0)return!1;var m=i.length-1;return l==m?i.pop():Va.call(i,l,1),!0}function Xa(t){var i=this.__data__,l=ye(i,t);return l<0?void 0:i[l][1]}function Ja(t){return ye(this.__data__,t)>-1}function Qa(t,i){var l=this.__data__,m=ye(l,t);return m<0?l.push([t,i]):l[m][1]=i,this}U.prototype.clear=qa,U.prototype.delete=Ya,U.prototype.get=Xa,U.prototype.has=Ja,U.prototype.set=Qa;function Q(t){var i=-1,l=t?t.length:0;for(this.clear();++i<l;){var m=t[i];this.set(m[0],m[1])}}function er(){this.__data__={hash:new Y,map:new(ie||U),string:new Y}}function tr(t){return ve(this,t).delete(t)}function nr(t){return ve(this,t).get(t)}function ar(t){return ve(this,t).has(t)}function rr(t,i){return ve(this,t).set(t,i),this}Q.prototype.clear=er,Q.prototype.delete=tr,Q.prototype.get=nr,Q.prototype.has=ar,Q.prototype.set=rr;function ee(t){this.__data__=new U(t)}function or(){this.__data__=new U}function ir(t){return this.__data__.delete(t)}function cr(t){return this.__data__.get(t)}function lr(t){return this.__data__.has(t)}function sr(t,i){var l=this.__data__;if(l instanceof U){var m=l.__data__;if(!ie||m.length<a-1)return m.push([t,i]),this;l=this.__data__=new Q(m)}return l.set(t,i),this}ee.prototype.clear=or,ee.prototype.delete=ir,ee.prototype.get=cr,ee.prototype.has=lr,ee.prototype.set=sr;function dr(t,i){var l=Ae(t)||Fr(t)?Ia(t.length,String):[],m=l.length,$=!!m;for(var V in t)(i||G.call(t,V))&&!($&&(V=="length"||xr(V,m)))&&l.push(V);return l}function ht(t,i,l){var m=t[i];(!(G.call(t,i)&&_t(m,l))||l===void 0&&!(i in t))&&(t[i]=l)}function ye(t,i){for(var l=t.length;l--;)if(_t(t[l][0],i))return l;return-1}function fr(t,i){return t&&gt(i,Fe(i),t)}function Oe(t,i,l,m,$,V,j){var L;if(m&&(L=V?m(t,$,V,j):m(t)),L!==void 0)return L;if(!_e(t))return t;var Ct=Ae(t);if(Ct){if(L=Nr(t),!i)return Sr(t,L)}else{var ne=X(t),St=ne==C||ne==w;if(Vr(t))return gr(t,i);if(ne==I||ne==f||St&&!V){if(ot(t))return V?t:{};if(L=Ir(St?{}:t),!i)return Tr(t,fr(L,t))}else{if(!E[ne])return V?t:{};L=Br(t,ne,Oe,i)}}j||(j=new ee);var Tt=j.get(t);if(Tt)return Tt;if(j.set(t,L),!Ct)var Et=l?Er(t):Fe(t);return Ea(Et||t,function(De,we){Et&&(we=De,De=t[we]),ht(L,we,Oe(De,i,l,m,we,t,j))}),L}function ur(t){return _e(t)?Fa(t):{}}function pr(t,i,l){var m=i(t);return Ae(t)?m:Na(m,l(t))}function mr(t){return ge.call(t)}function br(t){if(!_e(t)||$r(t))return!1;var i=kt(t)||ot(t)?$a:Se;return i.test(J(t))}function hr(t){if(!vt(t))return La(t);var i=[];for(var l in Object(t))G.call(t,l)&&l!="constructor"&&i.push(l);return i}function gr(t,i){if(i)return t.slice();var l=new t.constructor(t.length);return t.copy(l),l}function $e(t){var i=new t.constructor(t.byteLength);return new ut(i).set(new ut(t)),i}function yr(t,i){var l=i?$e(t.buffer):t.buffer;return new t.constructor(l,t.byteOffset,t.byteLength)}function vr(t,i,l){var m=i?l(it(t),!0):it(t);return rt(m,Sa,new t.constructor)}function _r(t){var i=new t.constructor(t.source,z.exec(t));return i.lastIndex=t.lastIndex,i}function wr(t,i,l){var m=i?l(ct(t),!0):ct(t);return rt(m,Ta,new t.constructor)}function kr(t){return bt?Object(bt.call(t)):{}}function Cr(t,i){var l=i?$e(t.buffer):t.buffer;return new t.constructor(l,t.byteOffset,t.length)}function Sr(t,i){var l=-1,m=t.length;for(i||(i=Array(m));++l<m;)i[l]=t[l];return i}function gt(t,i,l,m){l||(l={});for(var $=-1,V=i.length;++$<V;){var j=i[$],L=m?m(l[j],t[j],j,l,t):void 0;ht(l,j,L===void 0?t[j]:L)}return l}function Tr(t,i){return gt(t,yt(t),i)}function Er(t){return pr(t,Fe,yt)}function ve(t,i){var l=t.__data__;return Or(i)?l[typeof i=="string"?"string":"hash"]:l.map}function te(t,i){var l=Ba(t,i);return br(l)?l:void 0}var yt=pt?Te(pt,Object):Rr,X=mr;(Ne&&X(new Ne(new ArrayBuffer(1)))!=S||ie&&X(new ie)!=x||Ie&&X(Ie.resolve())!=D||Be&&X(new Be)!=F||xe&&X(new xe)!=k)&&(X=function(t){var i=ge.call(t),l=i==I?t.constructor:void 0,m=l?J(l):void 0;if(m)switch(m){case Ra:return S;case Pa:return x;case Za:return D;case ja:return F;case Ka:return k}return i});function Nr(t){var i=t.length,l=t.constructor(i);return i&&typeof t[0]=="string"&&G.call(t,"index")&&(l.index=t.index,l.input=t.input),l}function Ir(t){return typeof t.constructor=="function"&&!vt(t)?ur(Aa(t)):{}}function Br(t,i,l,m){var $=t.constructor;switch(i){case A:return $e(t);case p:case g:return new $(+t);case S:return yr(t,m);case d:case u:case b:case T:case h:case B:case y:case O:case _:return Cr(t,m);case x:return vr(t,m,l);case N:case K:return new $(t);case R:return _r(t);case F:return wr(t,m,l);case P:return kr(t)}}function xr(t,i){return i=i??s,!!i&&(typeof t=="number"||oe.test(t))&&t>-1&&t%1==0&&t<i}function Or(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function $r(t){return!!lt&&lt in t}function vt(t){var i=t&&t.constructor,l=typeof i=="function"&&i.prototype||he;return t===l}function J(t){if(t!=null){try{return st.call(t)}catch{}try{return t+""}catch{}}return""}function Ar(t){return Oe(t,!0,!0)}function _t(t,i){return t===i||t!==t&&i!==i}function Fr(t){return Dr(t)&&G.call(t,"callee")&&(!Da.call(t,"callee")||ge.call(t)==f)}var Ae=Array.isArray;function wt(t){return t!=null&&Mr(t.length)&&!kt(t)}function Dr(t){return Lr(t)&&wt(t)}var Vr=Ma||Pr;function kt(t){var i=_e(t)?ge.call(t):"";return i==C||i==w}function Mr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=s}function _e(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}function Lr(t){return!!t&&typeof t=="object"}function Fe(t){return wt(t)?dr(t):hr(t)}function Rr(){return[]}function Pr(){return!1}r.exports=Ar})(Dn,be);const Vn=be,Mn={key:0,class:"sidebar-header"},Ln={class:"sidebar-content-container"},Rn={key:0,class:"sidebar-top"},Pn={"aria-label":"Main menu"},Zn={key:0,class:"level-primary top-items"},jn={key:1,class:"sidebar-level-divider",role:"separator"},Kn={key:2,class:"level-primary bottom-items"},Hn={class:"sidebar-footer"},zn=["href","target"],Wn=e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,default:()=>[]},profileItems:{type:Array,default:()=>[]},profileName:{type:String,default:""},headerHeight:{type:Number,default:60},topOffset:{type:Number,default:0},zIndex:{type:Number,default:2},open:{type:Boolean,default:!1},mobileEnabled:{type:Boolean,default:!1},mobileTopOffset:{type:Number,default:0},mobileHeaderVisible:{type:Boolean,default:!1},mobileCloseDelay:{type:Number,default:350},mobileOverlay:{type:Boolean,default:!0},mobileOverlayZIndex:{type:Number,default:null},mobileOverlayCloseOnClick:{type:Boolean,default:!0}},emits:["click","toggle"],setup(r,{emit:n}){const a=r;e.useCssVars(h=>({"95fdfa38":e.unref(c).mobileHeight,"3083f0b8":e.unref(c).mobileTop,"77679b78":r.zIndex,f14d803c:e.unref(c).height,"2c47047a":e.unref(c).top,"5bea84ce":e.unref(g).marginTop,"24d345fe":e.unref(p).display,"26616c55":e.unref(p).minHeight,f27d8cee:e.unref(v).top,d026c078:e.unref(v).zIndex}));const o=e.useSlots(),s=e.computed(()=>!!o.header),f=e.computed(()=>!!o.top),c=e.computed(()=>({mobileTop:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:a.topOffset?`${a.topOffset}px`:"0",top:a.topOffset?`${a.topOffset}px`:"0",mobileHeight:a.mobileTopOffset&&a.mobileEnabled?`calc(100% - ${a.mobileTopOffset}px)`:"100%",height:a.topOffset?`calc(100% - ${a.topOffset}px)`:"100%"})),p=e.computed(()=>({display:!a.mobileHeaderVisible&&a.mobileEnabled?"none":"flex",minHeight:`${a.headerHeight}px`})),g=e.computed(()=>({marginTop:s.value?`${a.headerHeight}px`:"0"})),v=e.computed(()=>({top:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:"0",zIndex:a.mobileOverlayZIndex!==null?a.mobileOverlayZIndex:a.zIndex>1?a.zIndex-1:1})),C=h=>Vn(h).map(y=>{var O,_,H;if(y){(!y.key||!((O=y.key)!=null&&O.trim()))&&(y.key=String(y.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!y.testId||!((_=y.testId)!=null&&_.trim()))&&(y.testId=String(y.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const z of y.items||[])z.parentKey=y.key,(!z.testId||!((H=z.testId)!=null&&H.trim()))&&(z.testId=String(z.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return y}),w=e.computed(()=>a.topItems.length?C(a.topItems):[]),x=e.computed(()=>a.bottomItems.length?C(a.bottomItems):[]),N=e.ref(a.open),I=h=>{var B,y;N.value!==h&&(N.value=h,n("toggle",h)),h?(B=document==null?void 0:document.body)==null||B.classList.add("kong-ui-app-sidebar-open"):(y=document==null?void 0:document.body)==null||y.classList.remove("kong-ui-app-sidebar-open"),R.value=!1},D=()=>{a.mobileOverlayCloseOnClick&&I(!1)},R=e.ref(!1),F=h=>{R.value=!0,n("click",h),setTimeout(()=>{I(!1)},a.mobileCloseDelay)};e.watch(()=>a.open,h=>{I(h)});const{debounce:K}=Xe(),P=K(()=>{N.value&&k.value!==(window==null?void 0:window.innerWidth)&&(k.value=window==null?void 0:window.innerWidth,I(!1))},200),k=e.ref(),A=e.ref(!1),S=e.ref(),d=()=>{A.value||(A.value=!0,clearTimeout(S.value),S.value=setTimeout(()=>A.value=!1,1300))},u=e.ref(null),b=e.computed(()=>N.value&&a.mobileEnabled),T=async h=>{var B,y;h?(await e.nextTick(),await new Promise(O=>setTimeout(O,300)),(B=u.value)==null||B.activate()):(y=u.value)==null||y.deactivate()};return e.watch(b,async h=>{h?await T(!0):await T(!1)},{immediate:!0}),e.onMounted(()=>{k.value=window==null?void 0:window.innerWidth,window.addEventListener("resize",P),window.addEventListener("resize",d)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",P),window.removeEventListener("resize",d)}),(h,B)=>{const y=e.resolveComponent("KIcon"),O=e.resolveComponent("KDropdownItem");return e.openBlock(),e.createElementBlock(e.Fragment,null,[N.value&&r.mobileOverlay&&r.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:D})):e.createCommentVNode("",!0),e.createVNode(e.unref(Fn),{ref_key:"focusTrap",ref:u,active:!1,"allow-outside-click":"","fallback-focus":".kong-ui-app-sidebar"},{default:e.withCtx(()=>[e.createElementVNode("aside",{class:e.normalizeClass(["kong-ui-app-sidebar",{"sidebar-open":N.value,"no-sidebar-header":!e.unref(s),"mobile-header-hidden":r.mobileEnabled&&(!e.unref(s)||!r.mobileHeaderVisible),"mobile-disabled":!r.mobileEnabled,"disable-transitions":A.value}]),tabindex:"-1"},[e.unref(s)?(e.openBlock(),e.createElementBlock("div",Mn,[e.renderSlot(h.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ln,[e.unref(f)?(e.openBlock(),e.createElementBlock("div",Rn,[e.renderSlot(h.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Pn,[e.unref(w).length?(e.openBlock(),e.createElementBlock("ul",Zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),_=>(e.openBlock(),e.createBlock(Me,{key:_.name,item:_,onClick:F},null,8,["item"]))),128))])):e.createCommentVNode("",!0),e.unref(w).length&&e.unref(x).length?(e.openBlock(),e.createElementBlock("div",jn)):e.createCommentVNode("",!0),e.unref(x).length?(e.openBlock(),e.createElementBlock("ul",Kn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(x),_=>(e.openBlock(),e.createBlock(Me,{key:_.name,item:_,onClick:F},null,8,["item"]))),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Hn,[e.renderSlot(h.$slots,"footer",{},()=>[r.profileName||r.profileItems.length?(e.openBlock(),e.createBlock(cn,{key:0,class:"sidebar-profile-menu","item-count":r.profileItems.length,name:r.profileName},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.profileItems,_=>(e.openBlock(),e.createBlock(O,{key:_.name,class:e.normalizeClass([{"has-divider":_.hasDivider},{"external-profile-dropdown-link":(_.external||_.newWindow)&&typeof _.to=="string"}]),"has-divider":_.hasDivider,item:(_.external||_.newWindow)&&typeof _.to=="string"?void 0:{label:_.name,to:_.to},onClick:H=>F(_)},{default:e.withCtx(()=>[(_.external||_.newWindow)&&typeof _.to=="string"?(e.openBlock(),e.createElementBlock("a",{key:0,class:"sidebar-item-external-link",href:_.to,target:_.newWindow?"_blank":void 0},[e.createTextVNode(e.toDisplayString(_.name)+" ",1),_.newWindow?(e.openBlock(),e.createBlock(y,{key:0,color:"var(--black-70, rgba(0,0,0,0.7))",icon:"externalLink",size:"20",viewBox:"0 0 20 20"})):e.createCommentVNode("",!0)],8,zn)):e.createCommentVNode("",!0)]),_:2},1032,["class","has-divider","item","onClick"]))),128))]),_:1},8,["item-count","name"])):e.createCommentVNode("",!0)],!0)])],2)]),_:3},512)],64)}}}),qr="",Yr="",Je=Z(Wn,[["__scopeId","data-v-46293c41"]]),Ce=r=>(e.pushScopeId("data-v-33b3f7c3"),r=r(),e.popScopeId(),r),Un=["aria-label","onClick"],Gn=[Ce(()=>e.createElementVNode("span",{class:"line"},null,-1)),Ce(()=>e.createElementVNode("span",{class:"line"},null,-1)),Ce(()=>e.createElementVNode("span",{class:"line"},null,-1))],qn=e.defineComponent({__name:"SidebarToggle",props:{active:{type:Boolean,default:!1}},emits:["toggle"],setup(r,{emit:n}){const a=r,o=e.ref(a.active||!1),s=()=>{o.value=!o.value,n("toggle",o.value)};return e.watch(()=>a.active,f=>{o.value=f}),(f,c)=>(e.openBlock(),e.createElementBlock("a",{"aria-haspopup":"true","aria-label":o.value?"Close Main Menu":"Open Main Menu",class:e.normalizeClass(["sidebar-menu-toggle",{active:o.value}]),href:"#",role:"button",onClick:e.withModifiers(s,["prevent"])},Gn,10,Un))}}),eo="",Qe=Z(qn,[["__scopeId","data-v-33b3f7c3"]]),Yn=r=>(e.pushScopeId("data-v-421b8aac"),r=r(),e.popScopeId(),r),Xn={id:"kong-ui-app-layout-notification"},Jn={class:"mobile-logo"},Qn={key:0,class:"navbar-logo"},ea={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},ta={class:"kong-ui-app-layout-content"},na=Yn(()=>e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),aa=e.defineComponent({__name:"AppLayout",props:{hideDefaultSlot:{type:Boolean,default:!1},navbarHidden:{type:Boolean,default:!1},sidebarHidden:{type:Boolean,default:!1},sidebarOpen:{type:Boolean,default:!1},sidebarTopItems:{type:Array,default:()=>[]},sidebarBottomItems:{type:Array,default:()=>[]},sidebarProfileItems:{type:Array,default:()=>[]},sidebarProfileName:{type:String,default:""}},emits:["sidebar-click"],setup(r,{emit:n}){const a=r;e.useCssVars(k=>({"2bfd7598":e.unref(D),"2d767d27":e.unref(R)}));const o=e.useSlots(),s=e.reactive({navbarLeft:e.computed(()=>!!o["navbar-left"]),navbarCenter:e.computed(()=>!!o["navbar-center"]),navbarRight:e.computed(()=>!!o["navbar-right"]),navbarLogo:e.computed(()=>!!o["navbar-logo"]),navbarMobileLogo:e.computed(()=>!!o["navbar-mobile-logo"]),sidebarHeader:e.computed(()=>!!o["sidebar-header"]),sidebarTop:e.computed(()=>!!o["sidebar-top"]),sidebarFooter:e.computed(()=>!!o["sidebar-footer"])}),f=e.computed(()=>a.hideDefaultSlot),c=e.reactive({hidden:e.computed(()=>a.navbarHidden)}),p=e.reactive({topItems:e.computed(()=>a.sidebarTopItems),bottomItems:e.computed(()=>a.sidebarBottomItems),profileItems:e.computed(()=>a.sidebarProfileItems),profileName:e.computed(()=>a.sidebarProfileName),open:e.computed(()=>a.sidebarOpen),hidden:e.computed(()=>a.sidebarHidden)}),g=k=>{n("sidebar-click",k)},v=e.ref(!1),C=k=>{v.value=k};e.watchEffect(()=>{v.value=e.toRef(p,"open").value||!1});const w=e.ref(0),x=e.ref(60),N=e.ref(0),I=e.computed(()=>c.hidden?N.value:x.value+N.value),D=e.computed(()=>`${I.value}px`),R=e.computed(()=>p.hidden||c.hidden?"0":"16px"),{debounce:F}=Xe(),K=F((k=!1)=>{if(k||w.value!==(window==null?void 0:window.innerWidth)){const A=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");A&&(N.value=A.offsetHeight)}},200),P=e.ref();return e.onMounted(()=>{var A,S;(A=document==null?void 0:document.body)==null||A.classList.add("kong-ui-app-layout-body"),(S=document==null?void 0:document.documentElement)==null||S.classList.add("kong-ui-app-layout-html"),w.value=window==null?void 0:window.innerWidth,K(!0);const k=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");k&&(P.value=new ResizeObserver(d=>{for(const u of d){const b=u.contentRect.height;N.value!==b&&(N.value=b)}}),P.value.observe(k)),window.addEventListener("resize",K)}),e.onBeforeUnmount(()=>{P.value&&P.value.disconnect(),window.removeEventListener("resize",K)}),(k,A)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":c.hidden},{"sidebar-hidden":p.hidden}]])},[e.createElementVNode("div",Xn,[e.renderSlot(k.$slots,"notification",{},void 0,!0)]),c.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ve,{key:String(p.hidden),"left-offset":p.hidden?0:void 0,"top-offset":N.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qe,{key:0,active:v.value,onToggle:C},null,8,["active"]))]),_:2},[s.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",Jn,[e.renderSlot(k.$slots,"navbar-mobile-logo",{},void 0,!0)])]),key:"0"}:void 0,s.navbarLogo?{name:"logo",fn:e.withCtx(()=>[p.hidden?(e.openBlock(),e.createElementBlock("div",Qn,[e.renderSlot(k.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,s.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,s.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,s.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"navbar-right",{},void 0,!0)]),key:"4"}:void 0]),1032,["left-offset","top-offset"])),p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Je,{key:1,"bottom-items":p.bottomItems,"header-height":x.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":e.unref(I),open:v.value,"profile-items":p.profileItems,"profile-name":p.profileName,"top-items":p.topItems,"top-offset":N.value,onClick:g,onToggle:C},e.createSlots({_:2},[s.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,s.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0,s.sidebarFooter?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"sidebar-footer",{},void 0,!0)]),key:"2"}:void 0]),1032,["bottom-items","header-height","mobile-top-offset","open","profile-items","profile-name","top-items","top-offset"])),e.createElementVNode("main",ea,[e.createElementVNode("div",ta,[na,e.renderSlot(k.$slots,"app-error",{},void 0,!0),e.unref(f)?e.createCommentVNode("",!0):e.renderSlot(k.$slots,"default",{key:0},void 0,!0)])])],2))}}),to="",no="",et=Z(aa,[["__scopeId","data-v-421b8aac"]]),ra=e.defineComponent({__name:"NavbarDropdownMenu",props:{options:{type:Array,default:()=>[]},tooltip:{type:String,default:""},width:{type:String,default:"175"},disabled:{type:Boolean,default:!1}},emits:["change"],setup(r,{emit:n}){var f;const a=r,o=e.ref(((f=a.options)==null?void 0:f.filter(c=>!!c.selected)[0])||a.options[0]),s=c=>{o.value=c,n("change",o.value)};return(c,p)=>{const g=e.resolveComponent("KDropdownItem"),v=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createBlock(v,{appearance:"selectionMenu",class:"top-bar-dropdown-menu",disabled:r.disabled,"disabled-tooltip":r.tooltip,"kpop-attributes":{placement:"bottomStart",disabled:r.disabled},label:o.value.label,width:r.width,onChange:p[0]||(p[0]=C=>s(C))},{items:e.withCtx(({handleSelection:C})=>[e.renderSlot(c.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,w=>(e.openBlock(),e.createBlock(g,{key:w.value,"data-testid":"select-"+w.value,selected:o.value.value===w.value,onClick:x=>C(w)},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{option:w},()=>[e.createTextVNode(e.toDisplayString(w.label),1)],!0)]),_:2},1032,["data-testid","selected","onClick"]))),128))],!0)]),_:3},8,["disabled","disabled-tooltip","kpop-attributes","label","width"])}}}),ao="",oa=Z(ra,[["__scopeId","data-v-760cb07f"]]),ia=e.defineComponent({__name:"AccountDropdown",props:{options:{type:Array,required:!0},width:{type:String,default:"240"},userInitials:{type:String,required:!0,default:" "}},setup(r){return(n,a)=>{const o=e.resolveComponent("KDropdownItem"),s=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createBlock(s,{class:"account-dropdown","kpop-attributes":{placement:"bottomStart"},label:r.userInitials,size:"small",width:r.width},{items:e.withCtx(({handleSelection:f})=>[e.renderSlot(n.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,c=>(e.openBlock(),e.createBlock(o,{key:c.value,class:e.normalizeClass({"has-divider":c.hasDivider}),"data-testid":"select-"+c.value,"has-divider":c.hasDivider,onClick:p=>f(c)},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{option:c},()=>[e.createTextVNode(e.toDisplayString(c.label),1)],!0)]),_:2},1032,["class","data-testid","has-divider","onClick"]))),128))],!0)]),_:3},8,["label","width"])}}}),ro="",ca=Z(ia,[["__scopeId","data-v-6e34d3da"]]),la={},sa={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"},da=[e.createStaticVNode('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>',5)];function fa(r,n){return e.openBlock(),e.createElementBlock("svg",sa,da)}const ua=Z(la,[["render",fa]]),tt=r=>(e.pushScopeId("data-v-ff05f71e"),r=r(),e.popScopeId(),r),pa={class:"kong-ui-app-error"},ma={class:"banana-icon"},ba={class:"kong-ui-app-error-content"},ha=tt(()=>e.createElementVNode("h2",null,"An unexpected error has occurred",-1)),ga=tt(()=>e.createElementVNode("p",null,[e.createTextVNode("Go back to the previous page or "),e.createElementVNode("a",{href:"/"},"return home"),e.createTextVNode(".")],-1)),ya=e.defineComponent({__name:"AppError",setup(r){return(n,a)=>(e.openBlock(),e.createElementBlock("section",pa,[e.createElementVNode("div",ma,[e.createVNode(ua)]),e.createElementVNode("div",ba,[e.renderSlot(n.$slots,"default",{},()=>[ha,ga],!0)])]))}}),io="",co="",va=Z(ya,[["__scopeId","data-v-ff05f71e"]]),_a={install:(r,n={})=>{r.component(n.name||"AppLayout",et)}};M.AccountDropdown=ca,M.AppError=va,M.AppLayout=et,M.AppNavbar=Ve,M.AppSidebar=Je,M.NavbarDropdownMenu=oa,M.SidebarToggle=Qe,M.default=_a,Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
11
+ */function Gr(r){return r}const An={escapeDeactivates:{type:Boolean,default:!0},returnFocusOnDeactivate:{type:Boolean,default:!0},allowOutsideClick:{type:[Boolean,Function],default:!0},clickOutsideDeactivates:[Boolean,Function],initialFocus:[String,Function,Boolean],fallbackFocus:[String,Function],checkCanFocusTrap:Function,checkCanReturnFocus:Function,delayInitialFocus:{type:Boolean,default:!0},document:Object,preventScroll:Boolean,setReturnFocus:[Object,String,Boolean,Function],tabbableOptions:Object},Fn=e.defineComponent({props:Object.assign({active:{type:Boolean,default:!0}},An),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(r,{slots:n,emit:a}){let o;const s=e.ref(null),f=e.computed(()=>{const p=s.value;return p&&(p instanceof HTMLElement?p:p.$el)});function c(){return o||(o=$n(f.value,{escapeDeactivates:r.escapeDeactivates,allowOutsideClick:r.allowOutsideClick,returnFocusOnDeactivate:r.returnFocusOnDeactivate,clickOutsideDeactivates:r.clickOutsideDeactivates,onActivate:()=>{a("update:active",!0),a("activate")},onDeactivate:()=>{a("update:active",!1),a("deactivate")},onPostActivate:()=>a("postActivate"),onPostDeactivate:()=>a("postDeactivate"),initialFocus:r.initialFocus,fallbackFocus:r.fallbackFocus,tabbableOptions:r.tabbableOptions,delayInitialFocus:r.delayInitialFocus}))}return e.onMounted(()=>{e.watch(()=>r.active,p=>{p&&f.value?c().activate():o&&(o.deactivate(),(!f.value||f.value.nodeType===Node.COMMENT_NODE)&&(o=null))},{immediate:!0,flush:"post"})}),e.onUnmounted(()=>{o&&o.deactivate(),o=null}),{activate(){c().activate()},deactivate(){o&&o.deactivate()},renderImpl(){if(!n.default)return null;const p=n.default().filter(v=>v.type!==e.Comment);return!p||!p.length||p.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),p):e.cloneVNode(p[0],{ref:s})}}}});function Xe(){return{debounce:(n,a)=>{let o;return(...s)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{n(...s)},a)}}}}var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},be={},Dn={get exports(){return be},set exports(r){be=r}};(function(r,n){var a=200,o="__lodash_hash_undefined__",s=9007199254740991,f="[object Arguments]",c="[object Array]",p="[object Boolean]",g="[object Date]",v="[object Error]",C="[object Function]",w="[object GeneratorFunction]",x="[object Map]",N="[object Number]",I="[object Object]",D="[object Promise]",R="[object RegExp]",F="[object Set]",K="[object String]",P="[object Symbol]",k="[object WeakMap]",A="[object ArrayBuffer]",S="[object DataView]",d="[object Float32Array]",u="[object Float64Array]",b="[object Int8Array]",T="[object Int16Array]",h="[object Int32Array]",B="[object Uint8Array]",y="[object Uint8ClampedArray]",O="[object Uint16Array]",_="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,Se=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,E={};E[f]=E[c]=E[A]=E[S]=E[p]=E[g]=E[d]=E[u]=E[b]=E[T]=E[h]=E[x]=E[N]=E[I]=E[R]=E[F]=E[K]=E[P]=E[B]=E[y]=E[O]=E[_]=!0,E[v]=E[C]=E[k]=!1;var wa=typeof me=="object"&&me&&me.Object===Object&&me,ka=typeof self=="object"&&self&&self.Object===Object&&self,W=wa||ka||Function("return this")(),nt=n&&!n.nodeType&&n,at=nt&&!0&&r&&!r.nodeType&&r,Ca=at&&at.exports===nt;function Sa(t,i){return t.set(i[0],i[1]),t}function Ta(t,i){return t.add(i),t}function Ea(t,i){for(var l=-1,m=t?t.length:0;++l<m&&i(t[l],l,t)!==!1;);return t}function Na(t,i){for(var l=-1,m=i.length,$=t.length;++l<m;)t[$+l]=i[l];return t}function rt(t,i,l,m){var $=-1,V=t?t.length:0;for(m&&V&&(l=t[++$]);++$<V;)l=i(l,t[$],$,t);return l}function Ia(t,i){for(var l=-1,m=Array(t);++l<t;)m[l]=i(l);return m}function Ba(t,i){return t==null?void 0:t[i]}function ot(t){var i=!1;if(t!=null&&typeof t.toString!="function")try{i=!!(t+"")}catch{}return i}function it(t){var i=-1,l=Array(t.size);return t.forEach(function(m,$){l[++i]=[$,m]}),l}function Te(t,i){return function(l){return t(i(l))}}function ct(t){var i=-1,l=Array(t.size);return t.forEach(function(m){l[++i]=m}),l}var xa=Array.prototype,Oa=Function.prototype,he=Object.prototype,Ee=W["__core-js_shared__"],lt=function(){var t=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),st=Oa.toString,G=he.hasOwnProperty,ge=he.toString,$a=RegExp("^"+st.call(G).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=Ca?W.Buffer:void 0,ft=W.Symbol,ut=W.Uint8Array,Aa=Te(Object.getPrototypeOf,Object),Fa=Object.create,Da=he.propertyIsEnumerable,Va=xa.splice,pt=Object.getOwnPropertySymbols,Ma=dt?dt.isBuffer:void 0,La=Te(Object.keys,Object),Ne=te(W,"DataView"),ie=te(W,"Map"),Ie=te(W,"Promise"),Be=te(W,"Set"),xe=te(W,"WeakMap"),ce=te(Object,"create"),Ra=J(Ne),Pa=J(ie),Za=J(Ie),ja=J(Be),Ka=J(xe),mt=ft?ft.prototype:void 0,bt=mt?mt.valueOf:void 0;function Y(t){var i=-1,l=t?t.length:0;for(this.clear();++i<l;){var m=t[i];this.set(m[0],m[1])}}function Ha(){this.__data__=ce?ce(null):{}}function za(t){return this.has(t)&&delete this.__data__[t]}function Wa(t){var i=this.__data__;if(ce){var l=i[t];return l===o?void 0:l}return G.call(i,t)?i[t]:void 0}function Ua(t){var i=this.__data__;return ce?i[t]!==void 0:G.call(i,t)}function Ga(t,i){var l=this.__data__;return l[t]=ce&&i===void 0?o:i,this}Y.prototype.clear=Ha,Y.prototype.delete=za,Y.prototype.get=Wa,Y.prototype.has=Ua,Y.prototype.set=Ga;function U(t){var i=-1,l=t?t.length:0;for(this.clear();++i<l;){var m=t[i];this.set(m[0],m[1])}}function qa(){this.__data__=[]}function Ya(t){var i=this.__data__,l=ye(i,t);if(l<0)return!1;var m=i.length-1;return l==m?i.pop():Va.call(i,l,1),!0}function Xa(t){var i=this.__data__,l=ye(i,t);return l<0?void 0:i[l][1]}function Ja(t){return ye(this.__data__,t)>-1}function Qa(t,i){var l=this.__data__,m=ye(l,t);return m<0?l.push([t,i]):l[m][1]=i,this}U.prototype.clear=qa,U.prototype.delete=Ya,U.prototype.get=Xa,U.prototype.has=Ja,U.prototype.set=Qa;function Q(t){var i=-1,l=t?t.length:0;for(this.clear();++i<l;){var m=t[i];this.set(m[0],m[1])}}function er(){this.__data__={hash:new Y,map:new(ie||U),string:new Y}}function tr(t){return ve(this,t).delete(t)}function nr(t){return ve(this,t).get(t)}function ar(t){return ve(this,t).has(t)}function rr(t,i){return ve(this,t).set(t,i),this}Q.prototype.clear=er,Q.prototype.delete=tr,Q.prototype.get=nr,Q.prototype.has=ar,Q.prototype.set=rr;function ee(t){this.__data__=new U(t)}function or(){this.__data__=new U}function ir(t){return this.__data__.delete(t)}function cr(t){return this.__data__.get(t)}function lr(t){return this.__data__.has(t)}function sr(t,i){var l=this.__data__;if(l instanceof U){var m=l.__data__;if(!ie||m.length<a-1)return m.push([t,i]),this;l=this.__data__=new Q(m)}return l.set(t,i),this}ee.prototype.clear=or,ee.prototype.delete=ir,ee.prototype.get=cr,ee.prototype.has=lr,ee.prototype.set=sr;function dr(t,i){var l=Ae(t)||Fr(t)?Ia(t.length,String):[],m=l.length,$=!!m;for(var V in t)(i||G.call(t,V))&&!($&&(V=="length"||xr(V,m)))&&l.push(V);return l}function ht(t,i,l){var m=t[i];(!(G.call(t,i)&&_t(m,l))||l===void 0&&!(i in t))&&(t[i]=l)}function ye(t,i){for(var l=t.length;l--;)if(_t(t[l][0],i))return l;return-1}function fr(t,i){return t&&gt(i,Fe(i),t)}function Oe(t,i,l,m,$,V,j){var L;if(m&&(L=V?m(t,$,V,j):m(t)),L!==void 0)return L;if(!_e(t))return t;var Ct=Ae(t);if(Ct){if(L=Nr(t),!i)return Sr(t,L)}else{var ne=X(t),St=ne==C||ne==w;if(Vr(t))return gr(t,i);if(ne==I||ne==f||St&&!V){if(ot(t))return V?t:{};if(L=Ir(St?{}:t),!i)return Tr(t,fr(L,t))}else{if(!E[ne])return V?t:{};L=Br(t,ne,Oe,i)}}j||(j=new ee);var Tt=j.get(t);if(Tt)return Tt;if(j.set(t,L),!Ct)var Et=l?Er(t):Fe(t);return Ea(Et||t,function(De,we){Et&&(we=De,De=t[we]),ht(L,we,Oe(De,i,l,m,we,t,j))}),L}function ur(t){return _e(t)?Fa(t):{}}function pr(t,i,l){var m=i(t);return Ae(t)?m:Na(m,l(t))}function mr(t){return ge.call(t)}function br(t){if(!_e(t)||$r(t))return!1;var i=kt(t)||ot(t)?$a:Se;return i.test(J(t))}function hr(t){if(!vt(t))return La(t);var i=[];for(var l in Object(t))G.call(t,l)&&l!="constructor"&&i.push(l);return i}function gr(t,i){if(i)return t.slice();var l=new t.constructor(t.length);return t.copy(l),l}function $e(t){var i=new t.constructor(t.byteLength);return new ut(i).set(new ut(t)),i}function yr(t,i){var l=i?$e(t.buffer):t.buffer;return new t.constructor(l,t.byteOffset,t.byteLength)}function vr(t,i,l){var m=i?l(it(t),!0):it(t);return rt(m,Sa,new t.constructor)}function _r(t){var i=new t.constructor(t.source,z.exec(t));return i.lastIndex=t.lastIndex,i}function wr(t,i,l){var m=i?l(ct(t),!0):ct(t);return rt(m,Ta,new t.constructor)}function kr(t){return bt?Object(bt.call(t)):{}}function Cr(t,i){var l=i?$e(t.buffer):t.buffer;return new t.constructor(l,t.byteOffset,t.length)}function Sr(t,i){var l=-1,m=t.length;for(i||(i=Array(m));++l<m;)i[l]=t[l];return i}function gt(t,i,l,m){l||(l={});for(var $=-1,V=i.length;++$<V;){var j=i[$],L=m?m(l[j],t[j],j,l,t):void 0;ht(l,j,L===void 0?t[j]:L)}return l}function Tr(t,i){return gt(t,yt(t),i)}function Er(t){return pr(t,Fe,yt)}function ve(t,i){var l=t.__data__;return Or(i)?l[typeof i=="string"?"string":"hash"]:l.map}function te(t,i){var l=Ba(t,i);return br(l)?l:void 0}var yt=pt?Te(pt,Object):Rr,X=mr;(Ne&&X(new Ne(new ArrayBuffer(1)))!=S||ie&&X(new ie)!=x||Ie&&X(Ie.resolve())!=D||Be&&X(new Be)!=F||xe&&X(new xe)!=k)&&(X=function(t){var i=ge.call(t),l=i==I?t.constructor:void 0,m=l?J(l):void 0;if(m)switch(m){case Ra:return S;case Pa:return x;case Za:return D;case ja:return F;case Ka:return k}return i});function Nr(t){var i=t.length,l=t.constructor(i);return i&&typeof t[0]=="string"&&G.call(t,"index")&&(l.index=t.index,l.input=t.input),l}function Ir(t){return typeof t.constructor=="function"&&!vt(t)?ur(Aa(t)):{}}function Br(t,i,l,m){var $=t.constructor;switch(i){case A:return $e(t);case p:case g:return new $(+t);case S:return yr(t,m);case d:case u:case b:case T:case h:case B:case y:case O:case _:return Cr(t,m);case x:return vr(t,m,l);case N:case K:return new $(t);case R:return _r(t);case F:return wr(t,m,l);case P:return kr(t)}}function xr(t,i){return i=i??s,!!i&&(typeof t=="number"||oe.test(t))&&t>-1&&t%1==0&&t<i}function Or(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function $r(t){return!!lt&&lt in t}function vt(t){var i=t&&t.constructor,l=typeof i=="function"&&i.prototype||he;return t===l}function J(t){if(t!=null){try{return st.call(t)}catch{}try{return t+""}catch{}}return""}function Ar(t){return Oe(t,!0,!0)}function _t(t,i){return t===i||t!==t&&i!==i}function Fr(t){return Dr(t)&&G.call(t,"callee")&&(!Da.call(t,"callee")||ge.call(t)==f)}var Ae=Array.isArray;function wt(t){return t!=null&&Mr(t.length)&&!kt(t)}function Dr(t){return Lr(t)&&wt(t)}var Vr=Ma||Pr;function kt(t){var i=_e(t)?ge.call(t):"";return i==C||i==w}function Mr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=s}function _e(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}function Lr(t){return!!t&&typeof t=="object"}function Fe(t){return wt(t)?dr(t):hr(t)}function Rr(){return[]}function Pr(){return!1}r.exports=Ar})(Dn,be);const Vn=be,Mn={key:0,class:"sidebar-header"},Ln={class:"sidebar-content-container"},Rn={key:0,class:"sidebar-top"},Pn={"aria-label":"Main menu"},Zn={key:0,class:"level-primary top-items"},jn={key:1,class:"sidebar-level-divider",role:"separator"},Kn={key:2,class:"level-primary bottom-items"},Hn={class:"sidebar-footer"},zn=["href","target"],Wn=e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,default:()=>[]},profileItems:{type:Array,default:()=>[]},profileName:{type:String,default:""},headerHeight:{type:Number,default:60},topOffset:{type:Number,default:0},zIndex:{type:Number,default:2},open:{type:Boolean,default:!1},mobileEnabled:{type:Boolean,default:!1},mobileTopOffset:{type:Number,default:0},mobileHeaderVisible:{type:Boolean,default:!1},mobileCloseDelay:{type:Number,default:350},mobileOverlay:{type:Boolean,default:!0},mobileOverlayZIndex:{type:Number,default:null},mobileOverlayCloseOnClick:{type:Boolean,default:!0}},emits:["click","toggle"],setup(r,{emit:n}){const a=r;e.useCssVars(h=>({"95fdfa38":e.unref(c).mobileHeight,"3083f0b8":e.unref(c).mobileTop,"77679b78":r.zIndex,f14d803c:e.unref(c).height,"2c47047a":e.unref(c).top,"5bea84ce":e.unref(g).marginTop,"24d345fe":e.unref(p).display,"26616c55":e.unref(p).minHeight,f27d8cee:e.unref(v).top,d026c078:e.unref(v).zIndex}));const o=e.useSlots(),s=e.computed(()=>!!o.header),f=e.computed(()=>!!o.top),c=e.computed(()=>({mobileTop:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:a.topOffset?`${a.topOffset}px`:"0",top:a.topOffset?`${a.topOffset}px`:"0",mobileHeight:a.mobileTopOffset&&a.mobileEnabled?`calc(100% - ${a.mobileTopOffset}px)`:"100%",height:a.topOffset?`calc(100% - ${a.topOffset}px)`:"100%"})),p=e.computed(()=>({display:!a.mobileHeaderVisible&&a.mobileEnabled?"none":"flex",minHeight:`${a.headerHeight}px`})),g=e.computed(()=>({marginTop:s.value?`${a.headerHeight}px`:"0"})),v=e.computed(()=>({top:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:"0",zIndex:a.mobileOverlayZIndex!==null?a.mobileOverlayZIndex:a.zIndex>1?a.zIndex-1:1})),C=h=>Vn(h).map(y=>{var O,_,H;if(y){(!y.key||!((O=y.key)!=null&&O.trim()))&&(y.key=String(y.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!y.testId||!((_=y.testId)!=null&&_.trim()))&&(y.testId=String(y.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const z of y.items||[])z.parentKey=y.key,(!z.testId||!((H=z.testId)!=null&&H.trim()))&&(z.testId=String(z.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return y}),w=e.computed(()=>a.topItems.length?C(a.topItems):[]),x=e.computed(()=>a.bottomItems.length?C(a.bottomItems):[]),N=e.ref(a.open),I=h=>{var B,y;N.value!==h&&(N.value=h,n("toggle",h)),h?(B=document==null?void 0:document.body)==null||B.classList.add("kong-ui-app-sidebar-open"):(y=document==null?void 0:document.body)==null||y.classList.remove("kong-ui-app-sidebar-open"),R.value=!1},D=()=>{a.mobileOverlayCloseOnClick&&I(!1)},R=e.ref(!1),F=h=>{R.value=!0,n("click",h),setTimeout(()=>{I(!1)},a.mobileCloseDelay)};e.watch(()=>a.open,h=>{I(h)});const{debounce:K}=Xe(),P=K(()=>{N.value&&k.value!==(window==null?void 0:window.innerWidth)&&(k.value=window==null?void 0:window.innerWidth,I(!1))},200),k=e.ref(),A=e.ref(!1),S=e.ref(),d=()=>{A.value||(A.value=!0,clearTimeout(S.value),S.value=setTimeout(()=>A.value=!1,1300))},u=e.ref(null),b=e.computed(()=>N.value&&a.mobileEnabled),T=async h=>{var B,y;h?(await e.nextTick(),await new Promise(O=>setTimeout(O,300)),(B=u.value)==null||B.activate()):(y=u.value)==null||y.deactivate()};return e.watch(b,async h=>{h?await T(!0):await T(!1)},{immediate:!0}),e.onMounted(()=>{k.value=window==null?void 0:window.innerWidth,window.addEventListener("resize",P),window.addEventListener("resize",d)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",P),window.removeEventListener("resize",d)}),(h,B)=>{const y=e.resolveComponent("KIcon"),O=e.resolveComponent("KDropdownItem");return e.openBlock(),e.createElementBlock(e.Fragment,null,[N.value&&r.mobileOverlay&&r.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:D})):e.createCommentVNode("",!0),e.createVNode(e.unref(Fn),{ref_key:"focusTrap",ref:u,active:!1,"allow-outside-click":"","fallback-focus":".kong-ui-app-sidebar"},{default:e.withCtx(()=>[e.createElementVNode("aside",{class:e.normalizeClass(["kong-ui-app-sidebar",{"sidebar-open":N.value,"no-sidebar-header":!e.unref(s),"mobile-header-hidden":r.mobileEnabled&&(!e.unref(s)||!r.mobileHeaderVisible),"mobile-disabled":!r.mobileEnabled,"disable-transitions":A.value}]),tabindex:"-1"},[e.unref(s)?(e.openBlock(),e.createElementBlock("div",Mn,[e.renderSlot(h.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ln,[e.unref(f)?(e.openBlock(),e.createElementBlock("div",Rn,[e.renderSlot(h.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Pn,[e.unref(w).length?(e.openBlock(),e.createElementBlock("ul",Zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),_=>(e.openBlock(),e.createBlock(Me,{key:_.name,item:_,onClick:F},null,8,["item"]))),128))])):e.createCommentVNode("",!0),e.unref(w).length&&e.unref(x).length?(e.openBlock(),e.createElementBlock("div",jn)):e.createCommentVNode("",!0),e.unref(x).length?(e.openBlock(),e.createElementBlock("ul",Kn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(x),_=>(e.openBlock(),e.createBlock(Me,{key:_.name,item:_,onClick:F},null,8,["item"]))),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Hn,[e.renderSlot(h.$slots,"footer",{},()=>[r.profileName||r.profileItems.length?(e.openBlock(),e.createBlock(cn,{key:0,class:"sidebar-profile-menu","item-count":r.profileItems.length,name:r.profileName},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.profileItems,_=>(e.openBlock(),e.createBlock(O,{key:_.name,class:e.normalizeClass([{"has-divider":_.hasDivider},{"external-profile-dropdown-link":(_.external||_.newWindow)&&typeof _.to=="string"}]),"has-divider":_.hasDivider,item:(_.external||_.newWindow)&&typeof _.to=="string"?void 0:{label:_.name,to:_.to},onClick:H=>F(_)},{default:e.withCtx(()=>[(_.external||_.newWindow)&&typeof _.to=="string"?(e.openBlock(),e.createElementBlock("a",{key:0,class:"sidebar-item-external-link",href:_.to,target:_.newWindow?"_blank":void 0},[e.createTextVNode(e.toDisplayString(_.name)+" ",1),_.newWindow?(e.openBlock(),e.createBlock(y,{key:0,color:"var(--black-70, rgba(0,0,0,0.7))",icon:"externalLink",size:"20",viewBox:"0 0 20 20"})):e.createCommentVNode("",!0)],8,zn)):e.createCommentVNode("",!0)]),_:2},1032,["class","has-divider","item","onClick"]))),128))]),_:1},8,["item-count","name"])):e.createCommentVNode("",!0)],!0)])],2)]),_:3},512)],64)}}}),qr="",Yr="",Je=Z(Wn,[["__scopeId","data-v-46293c41"]]),Ce=r=>(e.pushScopeId("data-v-33b3f7c3"),r=r(),e.popScopeId(),r),Un=["aria-label","onClick"],Gn=[Ce(()=>e.createElementVNode("span",{class:"line"},null,-1)),Ce(()=>e.createElementVNode("span",{class:"line"},null,-1)),Ce(()=>e.createElementVNode("span",{class:"line"},null,-1))],qn=e.defineComponent({__name:"SidebarToggle",props:{active:{type:Boolean,default:!1}},emits:["toggle"],setup(r,{emit:n}){const a=r,o=e.ref(a.active||!1),s=()=>{o.value=!o.value,n("toggle",o.value)};return e.watch(()=>a.active,f=>{o.value=f}),(f,c)=>(e.openBlock(),e.createElementBlock("a",{"aria-haspopup":"true","aria-label":o.value?"Close Main Menu":"Open Main Menu",class:e.normalizeClass(["sidebar-menu-toggle",{active:o.value}]),href:"#",role:"button",onClick:e.withModifiers(s,["prevent"])},Gn,10,Un))}}),eo="",Qe=Z(qn,[["__scopeId","data-v-33b3f7c3"]]),Yn=r=>(e.pushScopeId("data-v-b58d040f"),r=r(),e.popScopeId(),r),Xn={id:"kong-ui-app-layout-notification"},Jn={class:"mobile-logo"},Qn={key:0,class:"navbar-logo"},ea={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},ta={class:"kong-ui-app-layout-content"},na=Yn(()=>e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),aa=e.defineComponent({__name:"AppLayout",props:{hideDefaultSlot:{type:Boolean,default:!1},navbarHidden:{type:Boolean,default:!1},sidebarHidden:{type:Boolean,default:!1},sidebarOpen:{type:Boolean,default:!1},sidebarTopItems:{type:Array,default:()=>[]},sidebarBottomItems:{type:Array,default:()=>[]},sidebarProfileItems:{type:Array,default:()=>[]},sidebarProfileName:{type:String,default:""}},emits:["sidebar-click"],setup(r,{emit:n}){const a=r;e.useCssVars(k=>({28036775:e.unref(D),"7ec78228":e.unref(R)}));const o=e.useSlots(),s=e.reactive({navbarLeft:e.computed(()=>!!o["navbar-left"]),navbarCenter:e.computed(()=>!!o["navbar-center"]),navbarRight:e.computed(()=>!!o["navbar-right"]),navbarLogo:e.computed(()=>!!o["navbar-logo"]),navbarMobileLogo:e.computed(()=>!!o["navbar-mobile-logo"]),sidebarHeader:e.computed(()=>!!o["sidebar-header"]),sidebarTop:e.computed(()=>!!o["sidebar-top"]),sidebarFooter:e.computed(()=>!!o["sidebar-footer"])}),f=e.computed(()=>a.hideDefaultSlot),c=e.reactive({hidden:e.computed(()=>a.navbarHidden)}),p=e.reactive({topItems:e.computed(()=>a.sidebarTopItems),bottomItems:e.computed(()=>a.sidebarBottomItems),profileItems:e.computed(()=>a.sidebarProfileItems),profileName:e.computed(()=>a.sidebarProfileName),open:e.computed(()=>a.sidebarOpen),hidden:e.computed(()=>a.sidebarHidden)}),g=k=>{n("sidebar-click",k)},v=e.ref(!1),C=k=>{v.value=k};e.watchEffect(()=>{v.value=e.toRef(p,"open").value||!1});const w=e.ref(0),x=e.ref(60),N=e.ref(0),I=e.computed(()=>c.hidden?N.value:x.value+N.value),D=e.computed(()=>`${I.value}px`),R=e.computed(()=>p.hidden||c.hidden?"0":"16px"),{debounce:F}=Xe(),K=F((k=!1)=>{if(k||w.value!==(window==null?void 0:window.innerWidth)){const A=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");A&&(N.value=A.offsetHeight)}},200),P=e.ref();return e.onMounted(()=>{var A,S;(A=document==null?void 0:document.body)==null||A.classList.add("kong-ui-app-layout-body"),(S=document==null?void 0:document.documentElement)==null||S.classList.add("kong-ui-app-layout-html"),w.value=window==null?void 0:window.innerWidth,K(!0);const k=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");k&&(P.value=new ResizeObserver(d=>{for(const u of d){const b=u.contentRect.height;N.value!==b&&(N.value=b)}}),P.value.observe(k)),window.addEventListener("resize",K)}),e.onBeforeUnmount(()=>{P.value&&P.value.disconnect(),window.removeEventListener("resize",K)}),(k,A)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":c.hidden},{"sidebar-hidden":p.hidden}]])},[e.createElementVNode("div",Xn,[e.renderSlot(k.$slots,"notification",{},void 0,!0)]),c.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ve,{key:String(p.hidden),"left-offset":p.hidden?0:void 0,"top-offset":N.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qe,{key:0,active:v.value,onToggle:C},null,8,["active"]))]),_:2},[s.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",Jn,[e.renderSlot(k.$slots,"navbar-mobile-logo",{},void 0,!0)])]),key:"0"}:void 0,s.navbarLogo?{name:"logo",fn:e.withCtx(()=>[p.hidden?(e.openBlock(),e.createElementBlock("div",Qn,[e.renderSlot(k.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,s.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,s.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,s.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"navbar-right",{},void 0,!0)]),key:"4"}:void 0]),1032,["left-offset","top-offset"])),p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Je,{key:1,"bottom-items":p.bottomItems,"header-height":x.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":e.unref(I),open:v.value,"profile-items":p.profileItems,"profile-name":p.profileName,"top-items":p.topItems,"top-offset":N.value,onClick:g,onToggle:C},e.createSlots({_:2},[s.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,s.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0,s.sidebarFooter?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"sidebar-footer",{},void 0,!0)]),key:"2"}:void 0]),1032,["bottom-items","header-height","mobile-top-offset","open","profile-items","profile-name","top-items","top-offset"])),e.createElementVNode("main",ea,[e.createElementVNode("div",ta,[na,e.renderSlot(k.$slots,"app-error",{},void 0,!0),e.unref(f)?e.createCommentVNode("",!0):e.renderSlot(k.$slots,"default",{key:0},void 0,!0)])])],2))}}),to="",no="",et=Z(aa,[["__scopeId","data-v-b58d040f"]]),ra=e.defineComponent({__name:"NavbarDropdownMenu",props:{options:{type:Array,default:()=>[]},tooltip:{type:String,default:""},width:{type:String,default:"175"},disabled:{type:Boolean,default:!1}},emits:["change"],setup(r,{emit:n}){var f;const a=r,o=e.ref(((f=a.options)==null?void 0:f.filter(c=>!!c.selected)[0])||a.options[0]),s=c=>{o.value=c,n("change",o.value)};return(c,p)=>{const g=e.resolveComponent("KDropdownItem"),v=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createBlock(v,{appearance:"selectionMenu",class:"top-bar-dropdown-menu",disabled:r.disabled,"disabled-tooltip":r.tooltip,"kpop-attributes":{placement:"bottomStart",disabled:r.disabled},label:o.value.label,width:r.width,onChange:p[0]||(p[0]=C=>s(C))},{items:e.withCtx(({handleSelection:C})=>[e.renderSlot(c.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,w=>(e.openBlock(),e.createBlock(g,{key:w.value,"data-testid":"select-"+w.value,selected:o.value.value===w.value,onClick:x=>C(w)},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{option:w},()=>[e.createTextVNode(e.toDisplayString(w.label),1)],!0)]),_:2},1032,["data-testid","selected","onClick"]))),128))],!0)]),_:3},8,["disabled","disabled-tooltip","kpop-attributes","label","width"])}}}),ao="",oa=Z(ra,[["__scopeId","data-v-760cb07f"]]),ia=e.defineComponent({__name:"AccountDropdown",props:{options:{type:Array,required:!0},width:{type:String,default:"240"},userInitials:{type:String,required:!0,default:" "}},setup(r){return(n,a)=>{const o=e.resolveComponent("KDropdownItem"),s=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createBlock(s,{class:"account-dropdown","kpop-attributes":{placement:"bottomStart"},label:r.userInitials,size:"small",width:r.width},{items:e.withCtx(({handleSelection:f})=>[e.renderSlot(n.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,c=>(e.openBlock(),e.createBlock(o,{key:c.value,class:e.normalizeClass({"has-divider":c.hasDivider}),"data-testid":"select-"+c.value,"has-divider":c.hasDivider,onClick:p=>f(c)},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{option:c},()=>[e.createTextVNode(e.toDisplayString(c.label),1)],!0)]),_:2},1032,["class","data-testid","has-divider","onClick"]))),128))],!0)]),_:3},8,["label","width"])}}}),ro="",ca=Z(ia,[["__scopeId","data-v-6e34d3da"]]),la={},sa={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"},da=[e.createStaticVNode('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>',5)];function fa(r,n){return e.openBlock(),e.createElementBlock("svg",sa,da)}const ua=Z(la,[["render",fa]]),tt=r=>(e.pushScopeId("data-v-ff05f71e"),r=r(),e.popScopeId(),r),pa={class:"kong-ui-app-error"},ma={class:"banana-icon"},ba={class:"kong-ui-app-error-content"},ha=tt(()=>e.createElementVNode("h2",null,"An unexpected error has occurred",-1)),ga=tt(()=>e.createElementVNode("p",null,[e.createTextVNode("Go back to the previous page or "),e.createElementVNode("a",{href:"/"},"return home"),e.createTextVNode(".")],-1)),ya=e.defineComponent({__name:"AppError",setup(r){return(n,a)=>(e.openBlock(),e.createElementBlock("section",pa,[e.createElementVNode("div",ma,[e.createVNode(ua)]),e.createElementVNode("div",ba,[e.renderSlot(n.$slots,"default",{},()=>[ha,ga],!0)])]))}}),io="",co="",va=Z(ya,[["__scopeId","data-v-ff05f71e"]]),_a={install:(r,n={})=>{r.component(n.name||"AppLayout",et)}};M.AccountDropdown=ca,M.AppError=va,M.AppLayout=et,M.AppNavbar=Ve,M.AppSidebar=Je,M.NavbarDropdownMenu=oa,M.SidebarToggle=Qe,M.default=_a,Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
12
12
  //# sourceMappingURL=app-layout.umd.js.map