@kong-ui-public/app-layout 0.18.5 → 0.18.6

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.
@@ -1,12 +1,12 @@
1
- (function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L["kong-ui-public-app-layout"]={},L.Vue))})(this,function(L,e){"use strict";const Nt={class:"kong-ui-app-navbar"},It={class:"header-content"},Bt={class:"mobile-header-left"},xt={key:0,class:"app-navbar-logo"},Ot={class:"navbar-content"},At={class:"navbar-content-left"},Ft={class:"navbar-content-center"},$t={class:"navbar-content-right"},Dt=e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(r){const n=r;e.useCssVars(c=>({e7993570:e.unref(u).top,"591d67a5":e.unref(u).zIndex,"0b950b18":e.unref(u).left,74170388:l.marginRight,"482efd74":l.width}));const a=e.useSlots(),o=e.computed(()=>!!a.logo),l=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var c,p;(p=(c=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:c.children)!=null&&p.length?(l.marginRight="32px",l.width="calc(240px - 32px)"):(l.marginRight="0",l.width="0")});const u=e.computed(()=>({top:n.topOffset?`${n.topOffset}px`:"0",left:n.leftOffset?`${n.leftOffset}px`:"0",zIndex:n.zIndex}));return(c,p)=>(e.openBlock(),e.createElementBlock("header",Nt,[e.createElementVNode("div",It,[e.createElementVNode("div",Bt,[e.renderSlot(c.$slots,"mobile-sidebar-toggle"),e.renderSlot(c.$slots,"mobile-logo")]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(c.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",Ot,[e.createElementVNode("div",At,[e.renderSlot(c.$slots,"left")]),e.createElementVNode("div",Ft,[e.renderSlot(c.$slots,"center")]),e.createElementVNode("div",$t,[e.renderSlot(c.$slots,"right")])])])]))}}),Cr="",H=(r,n)=>{const a=r.__vccOpts||r;for(const[o,l]of n)a[o]=l;return a},Ve=H(Dt,[["__scopeId","data-v-b7131fb2"]]),Vt=["title"],Lt=e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(r){const n=r,a=99,o=e.computed(()=>n.count?n.count>a?`${a}+`:n.count.toString():"");return(l,u)=>e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(r.count||0)>a?String(r.count):void 0},e.toDisplayString(e.unref(o)),9,Vt)):e.createCommentVNode("",!0)}}),Tr="",Rt=H(Lt,[["__scopeId","data-v-9e48c714"]]),Mt=["data-testid"],Zt=["aria-controls","aria-expanded","href","target","onClick","onKeypress"],Pt={key:0,class:"sidebar-item-icon"},jt={class:"sidebar-item-name-container"},Ht={class:"sidebar-item-name has-tooltip"},Kt={key:2,class:"sidebar-item-label truncate-text truncate-20"},zt=["id"],Ut=e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:n}){const a=r,o=e.computed(()=>typeof a.item.to!="string"?!1:!!a.item.newWindow||!!a.item.external||a.item.to.startsWith("http")),l=e.computed(()=>!a.item.to||typeof a.item.to!="string"||!a.item.newWindow?!1:a.item.newWindow&&(a.item.to.startsWith("http")||a.item.to.startsWith("/"))),u=e.computed(()=>a.subnavItem&&a.item.badgeCount!==void 0),c=v=>{n("click",v)},p=(v,y,N)=>{c(y),typeof N=="function"&&(v.preventDefault(),N())};return(v,y)=>{var C;const N=e.resolveComponent("KIcon"),I=e.resolveComponent("KTooltip"),B=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([r.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:r.item.expanded},{active:r.item.active}]),"data-testid":r.item.testId?`sidebar-item-${r.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)?"div":"router-link"),{custom:e.unref(o)?void 0:!0,to:!e.unref(o)&&!e.unref(l)?r.item.to:void 0},{default:e.withCtx(T=>{var F,R;return[e.createElementVNode("a",{"aria-controls":(F=r.item.items)!=null&&F.length&&r.item.expanded?`subnav-${r.item.key}`:void 0,"aria-expanded":(R=r.item.items)!=null&&R.length&&r.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":e.unref(l),"router-link":!e.unref(o)}]),href:e.unref(o)?String(r.item.to||"#"):T==null?void 0:T.href,target:e.unref(l)?"_blank":void 0,onClick:$=>p($,r.item,T==null?void 0:T.navigate),onKeypress:e.withKeys($=>p($,r.item,T==null?void 0:T.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!r.item.label&&r.item.expanded,"has-badge":e.unref(u)}])},[r.item.icon?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(N,{color:r.item.active||r.item.expanded?"var(--white, #fff)":"#B5BECD",icon:String(r.item.icon),size:"20"},null,8,["color","icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",jt,[(r.subnavItem?r.item.name.length<25:r.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[r.subnavItem?"has-badge-max-width truncate-24":"truncate-17"]])},e.toDisplayString(r.item.name),3)):(e.openBlock(),e.createBlock(I,{key:1,class:"sidebar-item-tooltip",label:r.item.name,placement:"right","position-fixed":""},{default:e.withCtx(()=>[e.createElementVNode("div",Ht,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[r.subnavItem?"truncate-20":"truncate-17",{"has-badge-max-width":e.unref(u)}]])},e.toDisplayString(r.item.name),3)])]),_:1},8,["label"])),r.item.label&&r.item.expanded?(e.openBlock(),e.createElementBlock("div",Kt,e.toDisplayString(r.item.label),1)):e.createCommentVNode("",!0)]),e.unref(u)?(e.openBlock(),e.createBlock(Rt,{key:1,count:r.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,Zt)]}),_:1},8,["custom","to"])),(C=r.item.items)!=null&&C.length&&r.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${r.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.item.items,T=>(e.openBlock(),e.createBlock(B,{key:T.name,item:T,"subnav-item":!0,onClick:F=>c(T)},null,8,["item","onClick"]))),128))],8,zt)):e.createCommentVNode("",!0)],10,Mt)}}}),Er="",Nr="",Le=H(Ut,[["__scopeId","data-v-a8253818"]]);/*!
1
+ (function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L["kong-ui-public-app-layout"]={},L.Vue))})(this,function(L,e){"use strict";const Nt={class:"kong-ui-app-navbar"},It={class:"header-content"},Bt={class:"mobile-header-left"},Ot={key:0,class:"app-navbar-logo"},xt={class:"navbar-content"},At={class:"navbar-content-left"},Ft={class:"navbar-content-center"},$t={class:"navbar-content-right"},Dt=e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(r){const n=r;e.useCssVars(c=>({e7993570:e.unref(u).top,"591d67a5":e.unref(u).zIndex,"0b950b18":e.unref(u).left,74170388:l.marginRight,"482efd74":l.width}));const a=e.useSlots(),o=e.computed(()=>!!a.logo),l=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var c,p;(p=(c=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:c.children)!=null&&p.length?(l.marginRight="32px",l.width="calc(240px - 32px)"):(l.marginRight="0",l.width="0")});const u=e.computed(()=>({top:n.topOffset?`${n.topOffset}px`:"0",left:n.leftOffset?`${n.leftOffset}px`:"0",zIndex:n.zIndex}));return(c,p)=>(e.openBlock(),e.createElementBlock("header",Nt,[e.createElementVNode("div",It,[e.createElementVNode("div",Bt,[e.renderSlot(c.$slots,"mobile-sidebar-toggle"),e.renderSlot(c.$slots,"mobile-logo")]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",Ot,[e.renderSlot(c.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",xt,[e.createElementVNode("div",At,[e.renderSlot(c.$slots,"left")]),e.createElementVNode("div",Ft,[e.renderSlot(c.$slots,"center")]),e.createElementVNode("div",$t,[e.renderSlot(c.$slots,"right")])])])]))}}),Tr="",H=(r,n)=>{const a=r.__vccOpts||r;for(const[o,l]of n)a[o]=l;return a},Ve=H(Dt,[["__scopeId","data-v-b7131fb2"]]),Vt=["title"],Lt=e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(r){const n=r,a=99,o=e.computed(()=>n.count?n.count>a?`${a}+`:n.count.toString():"");return(l,u)=>e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(r.count||0)>a?String(r.count):void 0},e.toDisplayString(e.unref(o)),9,Vt)):e.createCommentVNode("",!0)}}),Er="",Mt=H(Lt,[["__scopeId","data-v-9e48c714"]]),Rt=["data-testid"],Zt=["aria-controls","aria-expanded","href","target","onClick","onKeypress"],jt={key:0,class:"sidebar-item-icon"},Pt={class:"sidebar-item-name-container"},Ht={class:"sidebar-item-name has-tooltip"},Kt={key:2,class:"sidebar-item-label truncate-text truncate-20"},zt=["id"],Ut=e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:n}){const a=r,o=e.computed(()=>typeof a.item.to!="string"?!1:!!a.item.newWindow||!!a.item.external||a.item.to.startsWith("http")),l=e.computed(()=>!a.item.to||typeof a.item.to!="string"||!a.item.newWindow?!1:a.item.newWindow&&(a.item.to.startsWith("http")||a.item.to.startsWith("/"))),u=e.computed(()=>a.subnavItem&&a.item.badgeCount!==void 0),c=v=>{n("click",v)},p=(v,y,N)=>{c(y),typeof N=="function"&&(v.preventDefault(),N())};return(v,y)=>{var C;const N=e.resolveComponent("KIcon"),I=e.resolveComponent("KTooltip"),B=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([r.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:r.item.expanded},{active:r.item.active}]),"data-testid":r.item.testId?`sidebar-item-${r.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)?"div":"router-link"),{custom:e.unref(o)?void 0:!0,to:!e.unref(o)&&!e.unref(l)?r.item.to:void 0},{default:e.withCtx(T=>{var F,M;return[e.createElementVNode("a",{"aria-controls":(F=r.item.items)!=null&&F.length&&r.item.expanded?`subnav-${r.item.key}`:void 0,"aria-expanded":(M=r.item.items)!=null&&M.length&&r.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":e.unref(l),"router-link":!e.unref(o)}]),href:e.unref(o)?String(r.item.to||"#"):T==null?void 0:T.href,target:e.unref(l)?"_blank":void 0,onClick:$=>p($,r.item,T==null?void 0:T.navigate),onKeypress:e.withKeys($=>p($,r.item,T==null?void 0:T.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!r.item.label&&r.item.expanded,"has-badge":e.unref(u)}])},[r.item.icon?(e.openBlock(),e.createElementBlock("div",jt,[e.createVNode(N,{color:r.item.active||r.item.expanded?"var(--white, #fff)":"#B5BECD",icon:String(r.item.icon),size:"20"},null,8,["color","icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Pt,[(r.subnavItem?r.item.name.length<25:r.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[r.subnavItem?"has-badge-max-width truncate-24":"truncate-17"]])},e.toDisplayString(r.item.name),3)):(e.openBlock(),e.createBlock(I,{key:1,class:"sidebar-item-tooltip",label:r.item.name,placement:"right","position-fixed":""},{default:e.withCtx(()=>[e.createElementVNode("div",Ht,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[r.subnavItem?"truncate-20":"truncate-17",{"has-badge-max-width":e.unref(u)}]])},e.toDisplayString(r.item.name),3)])]),_:1},8,["label"])),r.item.label&&r.item.expanded?(e.openBlock(),e.createElementBlock("div",Kt,e.toDisplayString(r.item.label),1)):e.createCommentVNode("",!0)]),e.unref(u)?(e.openBlock(),e.createBlock(Mt,{key:1,count:r.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,Zt)]}),_:1},8,["custom","to"])),(C=r.item.items)!=null&&C.length&&r.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${r.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.item.items,T=>(e.openBlock(),e.createBlock(B,{key:T.name,item:T,"subnav-item":!0,onClick:F=>c(T)},null,8,["item","onClick"]))),128))],8,zt)):e.createCommentVNode("",!0)],10,Rt)}}}),Nr="",Ir="",Le=H(Ut,[["__scopeId","data-v-a8253818"]]);/*!
2
2
  * tabbable 6.1.1
3
3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
- */var Re=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],se=Re.join(","),Me=typeof Element>"u",W=Me?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,le=!Me&&Element.prototype.getRootNode?function(r){var n;return r==null||(n=r.getRootNode)===null||n===void 0?void 0:n.call(r)}:function(r){return r==null?void 0:r.ownerDocument},de=function r(n,a){var o;a===void 0&&(a=!0);var l=n==null||(o=n.getAttribute)===null||o===void 0?void 0:o.call(n,"inert"),u=l===""||l==="true",c=u||a&&n&&r(n.parentNode);return c},Gt=function(n){var a,o=n==null||(a=n.getAttribute)===null||a===void 0?void 0:a.call(n,"contenteditable");return o===""||o==="true"},Ze=function(n,a,o){if(de(n))return[];var l=Array.prototype.slice.apply(n.querySelectorAll(se));return a&&W.call(n,se)&&l.unshift(n),l=l.filter(o),l},Pe=function r(n,a,o){for(var l=[],u=Array.from(n);u.length;){var c=u.shift();if(!de(c,!1))if(c.tagName==="SLOT"){var p=c.assignedElements(),v=p.length?p:c.children,y=r(v,!0,o);o.flatten?l.push.apply(l,y):l.push({scopeParent:c,candidates:y})}else{var N=W.call(c,se);N&&o.filter(c)&&(a||!n.includes(c))&&l.push(c);var I=c.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(c),B=!de(I,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(I&&B){var C=r(I===!0?c.children:I.children,!0,o);o.flatten?l.push.apply(l,C):l.push({scopeParent:c,candidates:C})}else u.unshift.apply(u,c.children)}}return l},je=function(n,a){return n.tabIndex<0&&(a||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||Gt(n))&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},Wt=function(n,a){return n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex},He=function(n){return n.tagName==="INPUT"},qt=function(n){return He(n)&&n.type==="hidden"},Yt=function(n){var a=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(o){return o.tagName==="SUMMARY"});return a},Xt=function(n,a){for(var o=0;o<n.length;o++)if(n[o].checked&&n[o].form===a)return n[o]},Jt=function(n){if(!n.name)return!0;var a=n.form||le(n),o=function(p){return a.querySelectorAll('input[type="radio"][name="'+p+'"]')},l;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(n.name));else try{l=o(n.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var u=Xt(l,n.form);return!u||u===n},Qt=function(n){return He(n)&&n.type==="radio"},en=function(n){return Qt(n)&&!Jt(n)},tn=function(n){var a,o=n&&le(n),l=(a=o)===null||a===void 0?void 0:a.host,u=!1;if(o&&o!==n){var c,p,v;for(u=!!((c=l)!==null&&c!==void 0&&(p=c.ownerDocument)!==null&&p!==void 0&&p.contains(l)||n!=null&&(v=n.ownerDocument)!==null&&v!==void 0&&v.contains(n));!u&&l;){var y,N,I;o=le(l),l=(y=o)===null||y===void 0?void 0:y.host,u=!!((N=l)!==null&&N!==void 0&&(I=N.ownerDocument)!==null&&I!==void 0&&I.contains(l))}}return u},Ke=function(n){var a=n.getBoundingClientRect(),o=a.width,l=a.height;return o===0&&l===0},nn=function(n,a){var o=a.displayCheck,l=a.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var u=W.call(n,"details>summary:first-of-type"),c=u?n.parentElement:n;if(W.call(c,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var p=n;n;){var v=n.parentElement,y=le(n);if(v&&!v.shadowRoot&&l(v)===!0)return Ke(n);n.assignedSlot?n=n.assignedSlot:!v&&y!==n.ownerDocument?n=y.host:n=v}n=p}if(tn(n))return!n.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Ke(n);return!1},an=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var a=n.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var o=0;o<a.children.length;o++){var l=a.children.item(o);if(l.tagName==="LEGEND")return W.call(a,"fieldset[disabled] *")?!0:!l.contains(n)}return!0}a=a.parentElement}return!1},ue=function(n,a){return!(a.disabled||de(a)||qt(a)||nn(a,n)||Yt(a)||an(a))},ke=function(n,a){return!(en(a)||je(a)<0||!ue(n,a))},rn=function(n){var a=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},on=function r(n){var a=[],o=[];return n.forEach(function(l,u){var c=!!l.scopeParent,p=c?l.scopeParent:l,v=je(p,c),y=c?r(l.candidates):p;v===0?c?a.push.apply(a,y):a.push(p):o.push({documentOrder:u,tabIndex:v,item:l,isScope:c,content:y})}),o.sort(Wt).reduce(function(l,u){return u.isScope?l.push.apply(l,u.content):l.push(u.content),l},[]).concat(a)},cn=function(n,a){a=a||{};var o;return a.getShadowRoot?o=Pe([n],a.includeContainer,{filter:ke.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:rn}):o=Ze(n,a.includeContainer,ke.bind(null,a)),on(o)},sn=function(n,a){a=a||{};var o;return a.getShadowRoot?o=Pe([n],a.includeContainer,{filter:ue.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):o=Ze(n,a.includeContainer,ue.bind(null,a)),o},fe=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return W.call(n,se)===!1?!1:ke(a,n)},ln=Re.concat("iframe").join(","),ze=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return W.call(n,ln)===!1?!1:ue(a,n)};/*!
4
+ */var Me=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],se=Me.join(","),Re=typeof Element>"u",W=Re?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,le=!Re&&Element.prototype.getRootNode?function(r){var n;return r==null||(n=r.getRootNode)===null||n===void 0?void 0:n.call(r)}:function(r){return r==null?void 0:r.ownerDocument},de=function r(n,a){var o;a===void 0&&(a=!0);var l=n==null||(o=n.getAttribute)===null||o===void 0?void 0:o.call(n,"inert"),u=l===""||l==="true",c=u||a&&n&&r(n.parentNode);return c},Gt=function(n){var a,o=n==null||(a=n.getAttribute)===null||a===void 0?void 0:a.call(n,"contenteditable");return o===""||o==="true"},Ze=function(n,a,o){if(de(n))return[];var l=Array.prototype.slice.apply(n.querySelectorAll(se));return a&&W.call(n,se)&&l.unshift(n),l=l.filter(o),l},je=function r(n,a,o){for(var l=[],u=Array.from(n);u.length;){var c=u.shift();if(!de(c,!1))if(c.tagName==="SLOT"){var p=c.assignedElements(),v=p.length?p:c.children,y=r(v,!0,o);o.flatten?l.push.apply(l,y):l.push({scopeParent:c,candidates:y})}else{var N=W.call(c,se);N&&o.filter(c)&&(a||!n.includes(c))&&l.push(c);var I=c.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(c),B=!de(I,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(I&&B){var C=r(I===!0?c.children:I.children,!0,o);o.flatten?l.push.apply(l,C):l.push({scopeParent:c,candidates:C})}else u.unshift.apply(u,c.children)}}return l},Pe=function(n,a){return n.tabIndex<0&&(a||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||Gt(n))&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},Wt=function(n,a){return n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex},He=function(n){return n.tagName==="INPUT"},qt=function(n){return He(n)&&n.type==="hidden"},Yt=function(n){var a=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(o){return o.tagName==="SUMMARY"});return a},Xt=function(n,a){for(var o=0;o<n.length;o++)if(n[o].checked&&n[o].form===a)return n[o]},Jt=function(n){if(!n.name)return!0;var a=n.form||le(n),o=function(p){return a.querySelectorAll('input[type="radio"][name="'+p+'"]')},l;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(n.name));else try{l=o(n.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var u=Xt(l,n.form);return!u||u===n},Qt=function(n){return He(n)&&n.type==="radio"},en=function(n){return Qt(n)&&!Jt(n)},tn=function(n){var a,o=n&&le(n),l=(a=o)===null||a===void 0?void 0:a.host,u=!1;if(o&&o!==n){var c,p,v;for(u=!!((c=l)!==null&&c!==void 0&&(p=c.ownerDocument)!==null&&p!==void 0&&p.contains(l)||n!=null&&(v=n.ownerDocument)!==null&&v!==void 0&&v.contains(n));!u&&l;){var y,N,I;o=le(l),l=(y=o)===null||y===void 0?void 0:y.host,u=!!((N=l)!==null&&N!==void 0&&(I=N.ownerDocument)!==null&&I!==void 0&&I.contains(l))}}return u},Ke=function(n){var a=n.getBoundingClientRect(),o=a.width,l=a.height;return o===0&&l===0},nn=function(n,a){var o=a.displayCheck,l=a.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var u=W.call(n,"details>summary:first-of-type"),c=u?n.parentElement:n;if(W.call(c,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var p=n;n;){var v=n.parentElement,y=le(n);if(v&&!v.shadowRoot&&l(v)===!0)return Ke(n);n.assignedSlot?n=n.assignedSlot:!v&&y!==n.ownerDocument?n=y.host:n=v}n=p}if(tn(n))return!n.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Ke(n);return!1},an=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var a=n.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var o=0;o<a.children.length;o++){var l=a.children.item(o);if(l.tagName==="LEGEND")return W.call(a,"fieldset[disabled] *")?!0:!l.contains(n)}return!0}a=a.parentElement}return!1},ue=function(n,a){return!(a.disabled||de(a)||qt(a)||nn(a,n)||Yt(a)||an(a))},ke=function(n,a){return!(en(a)||Pe(a)<0||!ue(n,a))},rn=function(n){var a=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},on=function r(n){var a=[],o=[];return n.forEach(function(l,u){var c=!!l.scopeParent,p=c?l.scopeParent:l,v=Pe(p,c),y=c?r(l.candidates):p;v===0?c?a.push.apply(a,y):a.push(p):o.push({documentOrder:u,tabIndex:v,item:l,isScope:c,content:y})}),o.sort(Wt).reduce(function(l,u){return u.isScope?l.push.apply(l,u.content):l.push(u.content),l},[]).concat(a)},cn=function(n,a){a=a||{};var o;return a.getShadowRoot?o=je([n],a.includeContainer,{filter:ke.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:rn}):o=Ze(n,a.includeContainer,ke.bind(null,a)),on(o)},sn=function(n,a){a=a||{};var o;return a.getShadowRoot?o=je([n],a.includeContainer,{filter:ue.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):o=Ze(n,a.includeContainer,ue.bind(null,a)),o},fe=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return W.call(n,se)===!1?!1:ke(a,n)},ln=Me.concat("iframe").join(","),ze=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return W.call(n,ln)===!1?!1:ue(a,n)};/*!
5
5
  * focus-trap 7.4.0
6
6
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7
- */function Ue(r,n){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(r,l).enumerable})),a.push.apply(a,o)}return a}function Ge(r){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Ue(Object(a),!0).forEach(function(o){dn(r,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):Ue(Object(a)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(a,o))})}return r}function dn(r,n,a){return n=fn(n),n in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}function un(r,n){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,n||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(r)}function fn(r){var n=un(r,"string");return typeof n=="symbol"?n:String(n)}var We={activateTrap:function(n,a){if(n.length>0){var o=n[n.length-1];o!==a&&o.pause()}var l=n.indexOf(a);l===-1||n.splice(l,1),n.push(a)},deactivateTrap:function(n,a){var o=n.indexOf(a);o!==-1&&n.splice(o,1),n.length>0&&n[n.length-1].unpause()}},pn=function(n){return n.tagName&&n.tagName.toLowerCase()==="input"&&typeof n.select=="function"},bn=function(n){return n.key==="Escape"||n.key==="Esc"||n.keyCode===27},ae=function(n){return n.key==="Tab"||n.keyCode===9},mn=function(n){return ae(n)&&!n.shiftKey},hn=function(n){return ae(n)&&n.shiftKey},qe=function(n){return setTimeout(n,0)},Ye=function(n,a){var o=-1;return n.every(function(l,u){return a(l)?(o=u,!1):!0}),o},re=function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];return typeof n=="function"?n.apply(void 0,o):n},pe=function(n){return n.target.shadowRoot&&typeof n.composedPath=="function"?n.composedPath()[0]:n.target},gn=[],vn=function(n,a){var o=(a==null?void 0:a.document)||document,l=(a==null?void 0:a.trapStack)||gn,u=Ge({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:mn,isKeyBackward:hn},a),c={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},p,v=function(d,f,m){return d&&d[f]!==void 0?d[f]:u[m||f]},y=function(d){return c.containerGroups.findIndex(function(f){var m=f.container,k=f.tabbableNodes;return m.contains(d)||k.find(function(h){return h===d})})},N=function(d){var f=u[d];if(typeof f=="function"){for(var m=arguments.length,k=new Array(m>1?m-1:0),h=1;h<m;h++)k[h-1]=arguments[h];f=f.apply(void 0,k)}if(f===!0&&(f=void 0),!f){if(f===void 0||f===!1)return f;throw new Error("`".concat(d,"` was specified but was not a node, or did not return a node"))}var E=f;if(typeof f=="string"&&(E=o.querySelector(f),!E))throw new Error("`".concat(d,"` as selector refers to no known node"));return E},I=function(){var d=N("initialFocus");if(d===!1)return!1;if(d===void 0)if(y(o.activeElement)>=0)d=o.activeElement;else{var f=c.tabbableGroups[0],m=f&&f.firstTabbableNode;d=m||N("fallbackFocus")}if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},B=function(){if(c.containerGroups=c.containers.map(function(d){var f=cn(d,u.tabbableOptions),m=sn(d,u.tabbableOptions);return{container:d,tabbableNodes:f,focusableNodes:m,firstTabbableNode:f.length>0?f[0]:null,lastTabbableNode:f.length>0?f[f.length-1]:null,nextTabbableNode:function(h){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,g=m.findIndex(function(A){return A===h});if(!(g<0))return E?m.slice(g+1).find(function(A){return fe(A,u.tabbableOptions)}):m.slice(0,g).reverse().find(function(A){return fe(A,u.tabbableOptions)})}}}),c.tabbableGroups=c.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),c.tabbableGroups.length<=0&&!N("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},C=function w(d){if(d!==!1&&d!==o.activeElement){if(!d||!d.focus){w(I());return}d.focus({preventScroll:!!u.preventScroll}),c.mostRecentlyFocusedNode=d,pn(d)&&d.select()}},T=function(d){var f=N("setReturnFocus",d);return f||(f===!1?!1:d)},F=function(d){var f=pe(d);if(!(y(f)>=0)){if(re(u.clickOutsideDeactivates,d)){p.deactivate({returnFocus:u.returnFocusOnDeactivate});return}re(u.allowOutsideClick,d)||d.preventDefault()}},R=function(d){var f=pe(d),m=y(f)>=0;m||f instanceof Document?m&&(c.mostRecentlyFocusedNode=f):(d.stopImmediatePropagation(),C(c.mostRecentlyFocusedNode||I()))},$=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=pe(d);B();var k=null;if(c.tabbableGroups.length>0){var h=y(m),E=h>=0?c.containerGroups[h]:void 0;if(h<0)f?k=c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode:k=c.tabbableGroups[0].firstTabbableNode;else if(f){var g=Ye(c.tabbableGroups,function(oe){var S=oe.firstTabbableNode;return m===S});if(g<0&&(E.container===m||ze(m,u.tabbableOptions)&&!fe(m,u.tabbableOptions)&&!E.nextTabbableNode(m,!1))&&(g=h),g>=0){var A=g===0?c.tabbableGroups.length-1:g-1,q=c.tabbableGroups[A];k=q.lastTabbableNode}else ae(d)||(k=E.nextTabbableNode(m,!1))}else{var j=Ye(c.tabbableGroups,function(oe){var S=oe.lastTabbableNode;return m===S});if(j<0&&(E.container===m||ze(m,u.tabbableOptions)&&!fe(m,u.tabbableOptions)&&!E.nextTabbableNode(m))&&(j=h),j>=0){var K=j===c.tabbableGroups.length-1?0:j+1,Ce=c.tabbableGroups[K];k=Ce.firstTabbableNode}else ae(d)||(k=E.nextTabbableNode(m))}}else k=N("fallbackFocus");k&&(ae(d)&&d.preventDefault(),C(k))},P=function(d){if(bn(d)&&re(u.escapeDeactivates,d)!==!1){d.preventDefault(),p.deactivate();return}(u.isKeyForward(d)||u.isKeyBackward(d))&&$(d,u.isKeyBackward(d))},M=function(d){var f=pe(d);y(f)>=0||re(u.clickOutsideDeactivates,d)||re(u.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},_=function(){if(c.active)return We.activateTrap(l,p),c.delayInitialFocusTimer=u.delayInitialFocus?qe(function(){C(I())}):C(I()),o.addEventListener("focusin",R,!0),o.addEventListener("mousedown",F,{capture:!0,passive:!1}),o.addEventListener("touchstart",F,{capture:!0,passive:!1}),o.addEventListener("click",M,{capture:!0,passive:!1}),o.addEventListener("keydown",P,{capture:!0,passive:!1}),p},O=function(){if(c.active)return o.removeEventListener("focusin",R,!0),o.removeEventListener("mousedown",F,!0),o.removeEventListener("touchstart",F,!0),o.removeEventListener("click",M,!0),o.removeEventListener("keydown",P,!0),p};return p={get active(){return c.active},get paused(){return c.paused},activate:function(d){if(c.active)return this;var f=v(d,"onActivate"),m=v(d,"onPostActivate"),k=v(d,"checkCanFocusTrap");k||B(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=o.activeElement,f==null||f();var h=function(){k&&B(),_(),m==null||m()};return k?(k(c.containers.concat()).then(h,h),this):(h(),this)},deactivate:function(d){if(!c.active)return this;var f=Ge({onDeactivate:u.onDeactivate,onPostDeactivate:u.onPostDeactivate,checkCanReturnFocus:u.checkCanReturnFocus},d);clearTimeout(c.delayInitialFocusTimer),c.delayInitialFocusTimer=void 0,O(),c.active=!1,c.paused=!1,We.deactivateTrap(l,p);var m=v(f,"onDeactivate"),k=v(f,"onPostDeactivate"),h=v(f,"checkCanReturnFocus"),E=v(f,"returnFocus","returnFocusOnDeactivate");m==null||m();var g=function(){qe(function(){E&&C(T(c.nodeFocusedBeforeActivation)),k==null||k()})};return E&&h?(h(T(c.nodeFocusedBeforeActivation)).then(g,g),this):(g(),this)},pause:function(d){if(c.paused||!c.active)return this;var f=v(d,"onPause"),m=v(d,"onPostPause");return c.paused=!0,f==null||f(),O(),m==null||m(),this},unpause:function(d){if(!c.paused||!c.active)return this;var f=v(d,"onUnpause"),m=v(d,"onPostUnpause");return c.paused=!1,f==null||f(),B(),_(),m==null||m(),this},updateContainerElements:function(d){var f=[].concat(d).filter(Boolean);return c.containers=f.map(function(m){return typeof m=="string"?o.querySelector(m):m}),c.active&&B(),this}},p.updateContainerElements(n),p};/*!
7
+ */function Ue(r,n){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(r,l).enumerable})),a.push.apply(a,o)}return a}function Ge(r){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Ue(Object(a),!0).forEach(function(o){dn(r,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):Ue(Object(a)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(a,o))})}return r}function dn(r,n,a){return n=fn(n),n in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}function un(r,n){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,n||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(r)}function fn(r){var n=un(r,"string");return typeof n=="symbol"?n:String(n)}var We={activateTrap:function(n,a){if(n.length>0){var o=n[n.length-1];o!==a&&o.pause()}var l=n.indexOf(a);l===-1||n.splice(l,1),n.push(a)},deactivateTrap:function(n,a){var o=n.indexOf(a);o!==-1&&n.splice(o,1),n.length>0&&n[n.length-1].unpause()}},pn=function(n){return n.tagName&&n.tagName.toLowerCase()==="input"&&typeof n.select=="function"},bn=function(n){return n.key==="Escape"||n.key==="Esc"||n.keyCode===27},ae=function(n){return n.key==="Tab"||n.keyCode===9},mn=function(n){return ae(n)&&!n.shiftKey},hn=function(n){return ae(n)&&n.shiftKey},qe=function(n){return setTimeout(n,0)},Ye=function(n,a){var o=-1;return n.every(function(l,u){return a(l)?(o=u,!1):!0}),o},re=function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];return typeof n=="function"?n.apply(void 0,o):n},pe=function(n){return n.target.shadowRoot&&typeof n.composedPath=="function"?n.composedPath()[0]:n.target},gn=[],vn=function(n,a){var o=(a==null?void 0:a.document)||document,l=(a==null?void 0:a.trapStack)||gn,u=Ge({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:mn,isKeyBackward:hn},a),c={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},p,v=function(d,f,m){return d&&d[f]!==void 0?d[f]:u[m||f]},y=function(d){return c.containerGroups.findIndex(function(f){var m=f.container,k=f.tabbableNodes;return m.contains(d)||k.find(function(h){return h===d})})},N=function(d){var f=u[d];if(typeof f=="function"){for(var m=arguments.length,k=new Array(m>1?m-1:0),h=1;h<m;h++)k[h-1]=arguments[h];f=f.apply(void 0,k)}if(f===!0&&(f=void 0),!f){if(f===void 0||f===!1)return f;throw new Error("`".concat(d,"` was specified but was not a node, or did not return a node"))}var E=f;if(typeof f=="string"&&(E=o.querySelector(f),!E))throw new Error("`".concat(d,"` as selector refers to no known node"));return E},I=function(){var d=N("initialFocus");if(d===!1)return!1;if(d===void 0)if(y(o.activeElement)>=0)d=o.activeElement;else{var f=c.tabbableGroups[0],m=f&&f.firstTabbableNode;d=m||N("fallbackFocus")}if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},B=function(){if(c.containerGroups=c.containers.map(function(d){var f=cn(d,u.tabbableOptions),m=sn(d,u.tabbableOptions);return{container:d,tabbableNodes:f,focusableNodes:m,firstTabbableNode:f.length>0?f[0]:null,lastTabbableNode:f.length>0?f[f.length-1]:null,nextTabbableNode:function(h){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,g=m.findIndex(function(A){return A===h});if(!(g<0))return E?m.slice(g+1).find(function(A){return fe(A,u.tabbableOptions)}):m.slice(0,g).reverse().find(function(A){return fe(A,u.tabbableOptions)})}}}),c.tabbableGroups=c.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),c.tabbableGroups.length<=0&&!N("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},C=function w(d){if(d!==!1&&d!==o.activeElement){if(!d||!d.focus){w(I());return}d.focus({preventScroll:!!u.preventScroll}),c.mostRecentlyFocusedNode=d,pn(d)&&d.select()}},T=function(d){var f=N("setReturnFocus",d);return f||(f===!1?!1:d)},F=function(d){var f=pe(d);if(!(y(f)>=0)){if(re(u.clickOutsideDeactivates,d)){p.deactivate({returnFocus:u.returnFocusOnDeactivate});return}re(u.allowOutsideClick,d)||d.preventDefault()}},M=function(d){var f=pe(d),m=y(f)>=0;m||f instanceof Document?m&&(c.mostRecentlyFocusedNode=f):(d.stopImmediatePropagation(),C(c.mostRecentlyFocusedNode||I()))},$=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=pe(d);B();var k=null;if(c.tabbableGroups.length>0){var h=y(m),E=h>=0?c.containerGroups[h]:void 0;if(h<0)f?k=c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode:k=c.tabbableGroups[0].firstTabbableNode;else if(f){var g=Ye(c.tabbableGroups,function(oe){var S=oe.firstTabbableNode;return m===S});if(g<0&&(E.container===m||ze(m,u.tabbableOptions)&&!fe(m,u.tabbableOptions)&&!E.nextTabbableNode(m,!1))&&(g=h),g>=0){var A=g===0?c.tabbableGroups.length-1:g-1,q=c.tabbableGroups[A];k=q.lastTabbableNode}else ae(d)||(k=E.nextTabbableNode(m,!1))}else{var P=Ye(c.tabbableGroups,function(oe){var S=oe.lastTabbableNode;return m===S});if(P<0&&(E.container===m||ze(m,u.tabbableOptions)&&!fe(m,u.tabbableOptions)&&!E.nextTabbableNode(m))&&(P=h),P>=0){var K=P===c.tabbableGroups.length-1?0:P+1,Ce=c.tabbableGroups[K];k=Ce.firstTabbableNode}else ae(d)||(k=E.nextTabbableNode(m))}}else k=N("fallbackFocus");k&&(ae(d)&&d.preventDefault(),C(k))},j=function(d){if(bn(d)&&re(u.escapeDeactivates,d)!==!1){d.preventDefault(),p.deactivate();return}(u.isKeyForward(d)||u.isKeyBackward(d))&&$(d,u.isKeyBackward(d))},R=function(d){var f=pe(d);y(f)>=0||re(u.clickOutsideDeactivates,d)||re(u.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},_=function(){if(c.active)return We.activateTrap(l,p),c.delayInitialFocusTimer=u.delayInitialFocus?qe(function(){C(I())}):C(I()),o.addEventListener("focusin",M,!0),o.addEventListener("mousedown",F,{capture:!0,passive:!1}),o.addEventListener("touchstart",F,{capture:!0,passive:!1}),o.addEventListener("click",R,{capture:!0,passive:!1}),o.addEventListener("keydown",j,{capture:!0,passive:!1}),p},x=function(){if(c.active)return o.removeEventListener("focusin",M,!0),o.removeEventListener("mousedown",F,!0),o.removeEventListener("touchstart",F,!0),o.removeEventListener("click",R,!0),o.removeEventListener("keydown",j,!0),p};return p={get active(){return c.active},get paused(){return c.paused},activate:function(d){if(c.active)return this;var f=v(d,"onActivate"),m=v(d,"onPostActivate"),k=v(d,"checkCanFocusTrap");k||B(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=o.activeElement,f==null||f();var h=function(){k&&B(),_(),m==null||m()};return k?(k(c.containers.concat()).then(h,h),this):(h(),this)},deactivate:function(d){if(!c.active)return this;var f=Ge({onDeactivate:u.onDeactivate,onPostDeactivate:u.onPostDeactivate,checkCanReturnFocus:u.checkCanReturnFocus},d);clearTimeout(c.delayInitialFocusTimer),c.delayInitialFocusTimer=void 0,x(),c.active=!1,c.paused=!1,We.deactivateTrap(l,p);var m=v(f,"onDeactivate"),k=v(f,"onPostDeactivate"),h=v(f,"checkCanReturnFocus"),E=v(f,"returnFocus","returnFocusOnDeactivate");m==null||m();var g=function(){qe(function(){E&&C(T(c.nodeFocusedBeforeActivation)),k==null||k()})};return E&&h?(h(T(c.nodeFocusedBeforeActivation)).then(g,g),this):(g(),this)},pause:function(d){if(c.paused||!c.active)return this;var f=v(d,"onPause"),m=v(d,"onPostPause");return c.paused=!0,f==null||f(),x(),m==null||m(),this},unpause:function(d){if(!c.paused||!c.active)return this;var f=v(d,"onUnpause"),m=v(d,"onPostUnpause");return c.paused=!1,f==null||f(),B(),_(),m==null||m(),this},updateContainerElements:function(d){var f=[].concat(d).filter(Boolean);return c.containers=f.map(function(m){return typeof m=="string"?o.querySelector(m):m}),c.active&&B(),this}},p.updateContainerElements(n),p};/*!
8
8
  * focus-trap-vue v4.0.1
9
9
  * (c) 2023 Eduardo San Martin Morote
10
10
  * @license MIT
11
- */function Ir(r){return r}const yn={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},_n=e.defineComponent({props:Object.assign({active:{type:Boolean,default:!0}},yn),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(r,{slots:n,emit:a}){let o;const l=e.ref(null),u=e.computed(()=>{const p=l.value;return p&&(p instanceof HTMLElement?p:p.$el)});function c(){return o||(o=vn(u.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&&u.value?c().activate():o&&(o.deactivate(),(!u.value||u.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(y=>y.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:l})}}}});function Xe(){return{debounce:(n,a)=>{let o;return(...l)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{n(...l)},a)}}}}var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},me={},wn={get exports(){return me},set exports(r){me=r}};(function(r,n){var a=200,o="__lodash_hash_undefined__",l=9007199254740991,u="[object Arguments]",c="[object Array]",p="[object Boolean]",v="[object Date]",y="[object Error]",N="[object Function]",I="[object GeneratorFunction]",B="[object Map]",C="[object Number]",T="[object Object]",F="[object Promise]",R="[object RegExp]",$="[object Set]",P="[object String]",M="[object Symbol]",_="[object WeakMap]",O="[object ArrayBuffer]",w="[object DataView]",d="[object Float32Array]",f="[object Float64Array]",m="[object Int8Array]",k="[object Int16Array]",h="[object Int32Array]",E="[object Uint8Array]",g="[object Uint8ClampedArray]",A="[object Uint16Array]",q="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,Ce=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,S={};S[u]=S[c]=S[O]=S[w]=S[p]=S[v]=S[d]=S[f]=S[m]=S[k]=S[h]=S[B]=S[C]=S[T]=S[R]=S[$]=S[P]=S[M]=S[E]=S[g]=S[A]=S[q]=!0,S[y]=S[N]=S[_]=!1;var ra=typeof be=="object"&&be&&be.Object===Object&&be,oa=typeof self=="object"&&self&&self.Object===Object&&self,z=ra||oa||Function("return this")(),nt=n&&!n.nodeType&&n,at=nt&&!0&&r&&!r.nodeType&&r,ia=at&&at.exports===nt;function ca(t,i){return t.set(i[0],i[1]),t}function sa(t,i){return t.add(i),t}function la(t,i){for(var s=-1,b=t?t.length:0;++s<b&&i(t[s],s,t)!==!1;);return t}function da(t,i){for(var s=-1,b=i.length,x=t.length;++s<b;)t[x+s]=i[s];return t}function rt(t,i,s,b){var x=-1,D=t?t.length:0;for(b&&D&&(s=t[++x]);++x<D;)s=i(s,t[x],x,t);return s}function ua(t,i){for(var s=-1,b=Array(t);++s<t;)b[s]=i(s);return b}function fa(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,s=Array(t.size);return t.forEach(function(b,x){s[++i]=[x,b]}),s}function Te(t,i){return function(s){return t(i(s))}}function ct(t){var i=-1,s=Array(t.size);return t.forEach(function(b){s[++i]=b}),s}var pa=Array.prototype,ba=Function.prototype,he=Object.prototype,Ee=z["__core-js_shared__"],st=function(){var t=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),lt=ba.toString,G=he.hasOwnProperty,ge=he.toString,ma=RegExp("^"+lt.call(G).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=ia?z.Buffer:void 0,ut=z.Symbol,ft=z.Uint8Array,ha=Te(Object.getPrototypeOf,Object),ga=Object.create,va=he.propertyIsEnumerable,ya=pa.splice,pt=Object.getOwnPropertySymbols,_a=dt?dt.isBuffer:void 0,wa=Te(Object.keys,Object),Ne=te(z,"DataView"),ie=te(z,"Map"),Ie=te(z,"Promise"),Be=te(z,"Set"),xe=te(z,"WeakMap"),ce=te(Object,"create"),ka=J(Ne),Sa=J(ie),Ca=J(Ie),Ta=J(Be),Ea=J(xe),bt=ut?ut.prototype:void 0,mt=bt?bt.valueOf:void 0;function Y(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function Na(){this.__data__=ce?ce(null):{}}function Ia(t){return this.has(t)&&delete this.__data__[t]}function Ba(t){var i=this.__data__;if(ce){var s=i[t];return s===o?void 0:s}return G.call(i,t)?i[t]:void 0}function xa(t){var i=this.__data__;return ce?i[t]!==void 0:G.call(i,t)}function Oa(t,i){var s=this.__data__;return s[t]=ce&&i===void 0?o:i,this}Y.prototype.clear=Na,Y.prototype.delete=Ia,Y.prototype.get=Ba,Y.prototype.has=xa,Y.prototype.set=Oa;function U(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function Aa(){this.__data__=[]}function Fa(t){var i=this.__data__,s=ve(i,t);if(s<0)return!1;var b=i.length-1;return s==b?i.pop():ya.call(i,s,1),!0}function $a(t){var i=this.__data__,s=ve(i,t);return s<0?void 0:i[s][1]}function Da(t){return ve(this.__data__,t)>-1}function Va(t,i){var s=this.__data__,b=ve(s,t);return b<0?s.push([t,i]):s[b][1]=i,this}U.prototype.clear=Aa,U.prototype.delete=Fa,U.prototype.get=$a,U.prototype.has=Da,U.prototype.set=Va;function Q(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function La(){this.__data__={hash:new Y,map:new(ie||U),string:new Y}}function Ra(t){return ye(this,t).delete(t)}function Ma(t){return ye(this,t).get(t)}function Za(t){return ye(this,t).has(t)}function Pa(t,i){return ye(this,t).set(t,i),this}Q.prototype.clear=La,Q.prototype.delete=Ra,Q.prototype.get=Ma,Q.prototype.has=Za,Q.prototype.set=Pa;function ee(t){this.__data__=new U(t)}function ja(){this.__data__=new U}function Ha(t){return this.__data__.delete(t)}function Ka(t){return this.__data__.get(t)}function za(t){return this.__data__.has(t)}function Ua(t,i){var s=this.__data__;if(s instanceof U){var b=s.__data__;if(!ie||b.length<a-1)return b.push([t,i]),this;s=this.__data__=new Q(b)}return s.set(t,i),this}ee.prototype.clear=ja,ee.prototype.delete=Ha,ee.prototype.get=Ka,ee.prototype.has=za,ee.prototype.set=Ua;function Ga(t,i){var s=Fe(t)||gr(t)?ua(t.length,String):[],b=s.length,x=!!b;for(var D in t)(i||G.call(t,D))&&!(x&&(D=="length"||pr(D,b)))&&s.push(D);return s}function ht(t,i,s){var b=t[i];(!(G.call(t,i)&&_t(b,s))||s===void 0&&!(i in t))&&(t[i]=s)}function ve(t,i){for(var s=t.length;s--;)if(_t(t[s][0],i))return s;return-1}function Wa(t,i){return t&&gt(i,$e(i),t)}function Oe(t,i,s,b,x,D,Z){var V;if(b&&(V=D?b(t,x,D,Z):b(t)),V!==void 0)return V;if(!_e(t))return t;var St=Fe(t);if(St){if(V=dr(t),!i)return cr(t,V)}else{var ne=X(t),Ct=ne==N||ne==I;if(yr(t))return er(t,i);if(ne==T||ne==u||Ct&&!D){if(ot(t))return D?t:{};if(V=ur(Ct?{}:t),!i)return sr(t,Wa(V,t))}else{if(!S[ne])return D?t:{};V=fr(t,ne,Oe,i)}}Z||(Z=new ee);var Tt=Z.get(t);if(Tt)return Tt;if(Z.set(t,V),!St)var Et=s?lr(t):$e(t);return la(Et||t,function(De,we){Et&&(we=De,De=t[we]),ht(V,we,Oe(De,i,s,b,we,t,Z))}),V}function qa(t){return _e(t)?ga(t):{}}function Ya(t,i,s){var b=i(t);return Fe(t)?b:da(b,s(t))}function Xa(t){return ge.call(t)}function Ja(t){if(!_e(t)||mr(t))return!1;var i=kt(t)||ot(t)?ma:Ce;return i.test(J(t))}function Qa(t){if(!yt(t))return wa(t);var i=[];for(var s in Object(t))G.call(t,s)&&s!="constructor"&&i.push(s);return i}function er(t,i){if(i)return t.slice();var s=new t.constructor(t.length);return t.copy(s),s}function Ae(t){var i=new t.constructor(t.byteLength);return new ft(i).set(new ft(t)),i}function tr(t,i){var s=i?Ae(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function nr(t,i,s){var b=i?s(it(t),!0):it(t);return rt(b,ca,new t.constructor)}function ar(t){var i=new t.constructor(t.source,K.exec(t));return i.lastIndex=t.lastIndex,i}function rr(t,i,s){var b=i?s(ct(t),!0):ct(t);return rt(b,sa,new t.constructor)}function or(t){return mt?Object(mt.call(t)):{}}function ir(t,i){var s=i?Ae(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function cr(t,i){var s=-1,b=t.length;for(i||(i=Array(b));++s<b;)i[s]=t[s];return i}function gt(t,i,s,b){s||(s={});for(var x=-1,D=i.length;++x<D;){var Z=i[x],V=b?b(s[Z],t[Z],Z,s,t):void 0;ht(s,Z,V===void 0?t[Z]:V)}return s}function sr(t,i){return gt(t,vt(t),i)}function lr(t){return Ya(t,$e,vt)}function ye(t,i){var s=t.__data__;return br(i)?s[typeof i=="string"?"string":"hash"]:s.map}function te(t,i){var s=fa(t,i);return Ja(s)?s:void 0}var vt=pt?Te(pt,Object):kr,X=Xa;(Ne&&X(new Ne(new ArrayBuffer(1)))!=w||ie&&X(new ie)!=B||Ie&&X(Ie.resolve())!=F||Be&&X(new Be)!=$||xe&&X(new xe)!=_)&&(X=function(t){var i=ge.call(t),s=i==T?t.constructor:void 0,b=s?J(s):void 0;if(b)switch(b){case ka:return w;case Sa:return B;case Ca:return F;case Ta:return $;case Ea:return _}return i});function dr(t){var i=t.length,s=t.constructor(i);return i&&typeof t[0]=="string"&&G.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function ur(t){return typeof t.constructor=="function"&&!yt(t)?qa(ha(t)):{}}function fr(t,i,s,b){var x=t.constructor;switch(i){case O:return Ae(t);case p:case v:return new x(+t);case w:return tr(t,b);case d:case f:case m:case k:case h:case E:case g:case A:case q:return ir(t,b);case B:return nr(t,b,s);case C:case P:return new x(t);case R:return ar(t);case $:return rr(t,b,s);case M:return or(t)}}function pr(t,i){return i=i??l,!!i&&(typeof t=="number"||oe.test(t))&&t>-1&&t%1==0&&t<i}function br(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function mr(t){return!!st&&st in t}function yt(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||he;return t===s}function J(t){if(t!=null){try{return lt.call(t)}catch{}try{return t+""}catch{}}return""}function hr(t){return Oe(t,!0,!0)}function _t(t,i){return t===i||t!==t&&i!==i}function gr(t){return vr(t)&&G.call(t,"callee")&&(!va.call(t,"callee")||ge.call(t)==u)}var Fe=Array.isArray;function wt(t){return t!=null&&_r(t.length)&&!kt(t)}function vr(t){return wr(t)&&wt(t)}var yr=_a||Sr;function kt(t){var i=_e(t)?ge.call(t):"";return i==N||i==I}function _r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=l}function _e(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}function wr(t){return!!t&&typeof t=="object"}function $e(t){return wt(t)?Ga(t):Qa(t)}function kr(){return[]}function Sr(){return!1}r.exports=hr})(wn,me);const kn=me,Sn={key:0,class:"sidebar-header"},Cn={class:"sidebar-content-container"},Tn={key:0,class:"sidebar-top"},En={"aria-label":"Main menu"},Nn={key:0,class:"level-primary top-items"},In={key:1,class:"sidebar-level-divider",role:"separator"},Bn={key:2,class:"level-primary bottom-items"},xn={class:"sidebar-footer"},On=e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,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=>({"160797d0":e.unref(c).mobileHeight,"721527f8":e.unref(c).mobileTop,"054b3490":r.zIndex,"6b0e6816":e.unref(c).height,"31cc2e74":e.unref(c).top,"16bd691a":e.unref(v).marginTop,"08886e32":e.unref(p).display,"1d2550ee":e.unref(p).minHeight,ed4e7e56:e.unref(y).top,"377644f8":e.unref(y).zIndex}));const o=e.useSlots(),l=e.computed(()=>!!o.header),u=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`})),v=e.computed(()=>({marginTop:l.value?`${a.headerHeight}px`:"0"})),y=e.computed(()=>({top:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:"0",zIndex:a.mobileOverlayZIndex!==null?a.mobileOverlayZIndex:a.zIndex>1?a.zIndex-1:1})),N=h=>kn(h).map(g=>{var A,q,j;if(g){(!g.key||!((A=g.key)!=null&&A.trim()))&&(g.key=String(g.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!g.testId||!((q=g.testId)!=null&&q.trim()))&&(g.testId=String(g.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const K of g.items||[])K.parentKey=g.key,(!K.testId||!((j=K.testId)!=null&&j.trim()))&&(K.testId=String(K.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return g}),I=e.computed(()=>a.topItems.length?N(a.topItems):[]),B=e.computed(()=>a.bottomItems.length?N(a.bottomItems):[]),C=e.ref(a.open),T=h=>{var E,g;C.value!==h&&(C.value=h,n("toggle",h)),h?(E=document==null?void 0:document.body)==null||E.classList.add("kong-ui-app-sidebar-open"):(g=document==null?void 0:document.body)==null||g.classList.remove("kong-ui-app-sidebar-open"),R.value=!1},F=()=>{a.mobileOverlayCloseOnClick&&T(!1)},R=e.ref(!1),$=h=>{R.value=!0,n("click",h),setTimeout(()=>{T(!1)},a.mobileCloseDelay)};e.watch(()=>a.open,h=>{T(h)});const{debounce:P}=Xe(),M=P(()=>{C.value&&_.value!==(window==null?void 0:window.innerWidth)&&(_.value=window==null?void 0:window.innerWidth,T(!1))},200),_=e.ref(),O=e.ref(!1),w=e.ref(),d=()=>{O.value||(O.value=!0,clearTimeout(w.value),w.value=setTimeout(()=>O.value=!1,1300))},f=e.ref(null),m=e.computed(()=>C.value&&a.mobileEnabled),k=async h=>{var E,g;h?(await e.nextTick(),await new Promise(A=>setTimeout(A,300)),(E=f.value)==null||E.activate()):(g=f.value)==null||g.deactivate()};return e.watch(m,async h=>{h?await k(!0):await k(!1)},{immediate:!0}),e.onMounted(()=>{_.value=window==null?void 0:window.innerWidth,window.addEventListener("resize",M),window.addEventListener("resize",d)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",M),window.removeEventListener("resize",d)}),(h,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[C.value&&r.mobileOverlay&&r.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:F})):e.createCommentVNode("",!0),e.createVNode(e.unref(_n),{ref_key:"focusTrap",ref:f,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":C.value,"no-sidebar-header":!e.unref(l),"mobile-header-hidden":r.mobileEnabled&&(!e.unref(l)||!r.mobileHeaderVisible),"mobile-disabled":!r.mobileEnabled,"disable-transitions":O.value}]),tabindex:"-1"},[e.unref(l)?(e.openBlock(),e.createElementBlock("div",Sn,[e.renderSlot(h.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Cn,[e.unref(u)?(e.openBlock(),e.createElementBlock("div",Tn,[e.renderSlot(h.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",En,[e.unref(I).length?(e.openBlock(),e.createElementBlock("ul",Nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),g=>(e.openBlock(),e.createBlock(Le,{key:g.name,item:g,onClick:$},null,8,["item"]))),128))])):e.createCommentVNode("",!0),e.unref(I).length&&e.unref(B).length?(e.openBlock(),e.createElementBlock("div",In)):e.createCommentVNode("",!0),e.unref(B).length?(e.openBlock(),e.createElementBlock("ul",Bn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(B),g=>(e.openBlock(),e.createBlock(Le,{key:g.name,item:g,onClick:$},null,8,["item"]))),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",xn,[e.renderSlot(h.$slots,"footer",{},void 0,!0)])],2)]),_:3},512)],64))}}),Br="",xr="",Je=H(On,[["__scopeId","data-v-6daf9f02"]]),Se=r=>(e.pushScopeId("data-v-33b3f7c3"),r=r(),e.popScopeId(),r),An=["aria-label","onClick"],Fn=[Se(()=>e.createElementVNode("span",{class:"line"},null,-1)),Se(()=>e.createElementVNode("span",{class:"line"},null,-1)),Se(()=>e.createElementVNode("span",{class:"line"},null,-1))],$n=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),l=()=>{o.value=!o.value,n("toggle",o.value)};return e.watch(()=>a.active,u=>{o.value=u}),(u,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(l,["prevent"])},Fn,10,An))}}),$r="",Qe=H($n,[["__scopeId","data-v-33b3f7c3"]]),Dn=r=>(e.pushScopeId("data-v-94724415"),r=r(),e.popScopeId(),r),Vn={id:"kong-ui-app-layout-notification"},Ln={class:"mobile-logo"},Rn={key:0,class:"navbar-logo"},Mn={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},Zn={class:"kong-ui-app-layout-content"},Pn=Dn(()=>e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),jn=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:()=>[]}},emits:["sidebar-click"],setup(r,{emit:n}){const a=r;e.useCssVars(_=>({"1b158334":e.unref(F),"78d53b27":e.unref(R)}));const o=e.useSlots(),l=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"])}),u=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),open:e.computed(()=>a.sidebarOpen),hidden:e.computed(()=>a.sidebarHidden)}),v=_=>{n("sidebar-click",_)},y=e.ref(!1),N=_=>{y.value=_};e.watchEffect(()=>{y.value=e.toRef(p,"open").value||!1});const I=e.ref(0),B=e.ref(60),C=e.ref(0),T=e.computed(()=>c.hidden?C.value:B.value+C.value),F=e.computed(()=>`${T.value}px`),R=e.computed(()=>p.hidden||c.hidden?"0":"16px"),{debounce:$}=Xe(),P=$((_=!1)=>{if(_||I.value!==(window==null?void 0:window.innerWidth)){const O=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");O&&(C.value=O.offsetHeight)}},200),M=e.ref();return e.onMounted(()=>{var O,w;(O=document==null?void 0:document.body)==null||O.classList.add("kong-ui-app-layout-body"),(w=document==null?void 0:document.documentElement)==null||w.classList.add("kong-ui-app-layout-html"),I.value=window==null?void 0:window.innerWidth,P(!0);const _=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");_&&(M.value=new ResizeObserver(d=>{for(const f of d){const m=f.contentRect.height;C.value!==m&&(C.value=m)}}),M.value.observe(_)),window.addEventListener("resize",P)}),e.onBeforeUnmount(()=>{M.value&&M.value.disconnect(),window.removeEventListener("resize",P)}),(_,O)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":c.hidden},{"sidebar-hidden":p.hidden}]])},[e.createElementVNode("div",Vn,[e.renderSlot(_.$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":C.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qe,{key:0,active:y.value,onToggle:N},null,8,["active"]))]),_:2},[l.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",Ln,[e.renderSlot(_.$slots,"navbar-mobile-logo",{},void 0,!0)])]),key:"0"}:void 0,l.navbarLogo?{name:"logo",fn:e.withCtx(()=>[p.hidden?(e.openBlock(),e.createElementBlock("div",Rn,[e.renderSlot(_.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,l.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,l.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,l.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(_.$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":B.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":e.unref(T),open:y.value,"top-items":p.topItems,"top-offset":C.value,onClick:v,onToggle:N},e.createSlots({_:2},[l.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,l.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0,l.sidebarFooter?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-footer",{},void 0,!0)]),key:"2"}:void 0]),1032,["bottom-items","header-height","mobile-top-offset","open","top-items","top-offset"])),e.createElementVNode("main",Mn,[e.createElementVNode("div",Zn,[Pn,e.renderSlot(_.$slots,"app-error",{},void 0,!0),e.unref(u)?e.createCommentVNode("",!0):e.renderSlot(_.$slots,"default",{key:0},void 0,!0)])])],2))}}),Dr="",Vr="",et=H(jn,[["__scopeId","data-v-94724415"]]),Hn=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"),l=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createBlock(l,{class:"account-dropdown","kpop-attributes":{placement:"bottomStart"},label:r.userInitials,size:"small",width:r.width},{items:e.withCtx(({handleSelection:u})=>[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=>u(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"])}}}),Lr="",Kn=H(Hn,[["__scopeId","data-v-6e34d3da"]]),zn={},Un={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"},Gn=[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 Wn(r,n){return e.openBlock(),e.createElementBlock("svg",Un,Gn)}const qn=H(zn,[["render",Wn]]),tt=r=>(e.pushScopeId("data-v-ff05f71e"),r=r(),e.popScopeId(),r),Yn={class:"kong-ui-app-error"},Xn={class:"banana-icon"},Jn={class:"kong-ui-app-error-content"},Qn=tt(()=>e.createElementVNode("h2",null,"An unexpected error has occurred",-1)),ea=tt(()=>e.createElementVNode("p",null,[e.createTextVNode("Go back to the previous page or "),e.createElementVNode("a",{href:"/"},"return home"),e.createTextVNode(".")],-1)),ta=e.defineComponent({__name:"AppError",setup(r){return(n,a)=>(e.openBlock(),e.createElementBlock("section",Yn,[e.createElementVNode("div",Xn,[e.createVNode(qn)]),e.createElementVNode("div",Jn,[e.renderSlot(n.$slots,"default",{},()=>[Qn,ea],!0)])]))}}),Mr="",Zr="",na=H(ta,[["__scopeId","data-v-ff05f71e"]]),aa={install:(r,n={})=>{r.component(n.name||"AppLayout",et)}};L.AccountDropdown=Kn,L.AppError=na,L.AppLayout=et,L.AppNavbar=Ve,L.AppSidebar=Je,L.SidebarToggle=Qe,L.default=aa,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
11
+ */function Br(r){return r}const yn={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},_n=e.defineComponent({props:Object.assign({active:{type:Boolean,default:!0}},yn),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(r,{slots:n,emit:a}){let o;const l=e.ref(null),u=e.computed(()=>{const p=l.value;return p&&(p instanceof HTMLElement?p:p.$el)});function c(){return o||(o=vn(u.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&&u.value?c().activate():o&&(o.deactivate(),(!u.value||u.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(y=>y.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:l})}}}});function Xe(){return{debounce:(n,a)=>{let o;return(...l)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{n(...l)},a)}}}}var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var me={exports:{}};me.exports,function(r,n){var a=200,o="__lodash_hash_undefined__",l=9007199254740991,u="[object Arguments]",c="[object Array]",p="[object Boolean]",v="[object Date]",y="[object Error]",N="[object Function]",I="[object GeneratorFunction]",B="[object Map]",C="[object Number]",T="[object Object]",F="[object Promise]",M="[object RegExp]",$="[object Set]",j="[object String]",R="[object Symbol]",_="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",d="[object Float32Array]",f="[object Float64Array]",m="[object Int8Array]",k="[object Int16Array]",h="[object Int32Array]",E="[object Uint8Array]",g="[object Uint8ClampedArray]",A="[object Uint16Array]",q="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,Ce=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,S={};S[u]=S[c]=S[x]=S[w]=S[p]=S[v]=S[d]=S[f]=S[m]=S[k]=S[h]=S[B]=S[C]=S[T]=S[M]=S[$]=S[j]=S[R]=S[E]=S[g]=S[A]=S[q]=!0,S[y]=S[N]=S[_]=!1;var oa=typeof be=="object"&&be&&be.Object===Object&&be,ia=typeof self=="object"&&self&&self.Object===Object&&self,z=oa||ia||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 la(t,i){return t.add(i),t}function da(t,i){for(var s=-1,b=t?t.length:0;++s<b&&i(t[s],s,t)!==!1;);return t}function ua(t,i){for(var s=-1,b=i.length,O=t.length;++s<b;)t[O+s]=i[s];return t}function rt(t,i,s,b){var O=-1,D=t?t.length:0;for(b&&D&&(s=t[++O]);++O<D;)s=i(s,t[O],O,t);return s}function fa(t,i){for(var s=-1,b=Array(t);++s<t;)b[s]=i(s);return b}function pa(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,s=Array(t.size);return t.forEach(function(b,O){s[++i]=[O,b]}),s}function Te(t,i){return function(s){return t(i(s))}}function ct(t){var i=-1,s=Array(t.size);return t.forEach(function(b){s[++i]=b}),s}var ba=Array.prototype,ma=Function.prototype,he=Object.prototype,Ee=z["__core-js_shared__"],st=function(){var t=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),lt=ma.toString,G=he.hasOwnProperty,ge=he.toString,ha=RegExp("^"+lt.call(G).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=ca?z.Buffer:void 0,ut=z.Symbol,ft=z.Uint8Array,ga=Te(Object.getPrototypeOf,Object),va=Object.create,ya=he.propertyIsEnumerable,_a=ba.splice,pt=Object.getOwnPropertySymbols,wa=dt?dt.isBuffer:void 0,ka=Te(Object.keys,Object),Ne=te(z,"DataView"),ie=te(z,"Map"),Ie=te(z,"Promise"),Be=te(z,"Set"),Oe=te(z,"WeakMap"),ce=te(Object,"create"),Sa=J(Ne),Ca=J(ie),Ta=J(Ie),Ea=J(Be),Na=J(Oe),bt=ut?ut.prototype:void 0,mt=bt?bt.valueOf:void 0;function Y(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function Ia(){this.__data__=ce?ce(null):{}}function Ba(t){return this.has(t)&&delete this.__data__[t]}function Oa(t){var i=this.__data__;if(ce){var s=i[t];return s===o?void 0:s}return G.call(i,t)?i[t]:void 0}function xa(t){var i=this.__data__;return ce?i[t]!==void 0:G.call(i,t)}function Aa(t,i){var s=this.__data__;return s[t]=ce&&i===void 0?o:i,this}Y.prototype.clear=Ia,Y.prototype.delete=Ba,Y.prototype.get=Oa,Y.prototype.has=xa,Y.prototype.set=Aa;function U(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function Fa(){this.__data__=[]}function $a(t){var i=this.__data__,s=ve(i,t);if(s<0)return!1;var b=i.length-1;return s==b?i.pop():_a.call(i,s,1),!0}function Da(t){var i=this.__data__,s=ve(i,t);return s<0?void 0:i[s][1]}function Va(t){return ve(this.__data__,t)>-1}function La(t,i){var s=this.__data__,b=ve(s,t);return b<0?s.push([t,i]):s[b][1]=i,this}U.prototype.clear=Fa,U.prototype.delete=$a,U.prototype.get=Da,U.prototype.has=Va,U.prototype.set=La;function Q(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function Ma(){this.__data__={hash:new Y,map:new(ie||U),string:new Y}}function Ra(t){return ye(this,t).delete(t)}function Za(t){return ye(this,t).get(t)}function ja(t){return ye(this,t).has(t)}function Pa(t,i){return ye(this,t).set(t,i),this}Q.prototype.clear=Ma,Q.prototype.delete=Ra,Q.prototype.get=Za,Q.prototype.has=ja,Q.prototype.set=Pa;function ee(t){this.__data__=new U(t)}function Ha(){this.__data__=new U}function Ka(t){return this.__data__.delete(t)}function za(t){return this.__data__.get(t)}function Ua(t){return this.__data__.has(t)}function Ga(t,i){var s=this.__data__;if(s instanceof U){var b=s.__data__;if(!ie||b.length<a-1)return b.push([t,i]),this;s=this.__data__=new Q(b)}return s.set(t,i),this}ee.prototype.clear=Ha,ee.prototype.delete=Ka,ee.prototype.get=za,ee.prototype.has=Ua,ee.prototype.set=Ga;function Wa(t,i){var s=Fe(t)||vr(t)?fa(t.length,String):[],b=s.length,O=!!b;for(var D in t)(i||G.call(t,D))&&!(O&&(D=="length"||br(D,b)))&&s.push(D);return s}function ht(t,i,s){var b=t[i];(!(G.call(t,i)&&_t(b,s))||s===void 0&&!(i in t))&&(t[i]=s)}function ve(t,i){for(var s=t.length;s--;)if(_t(t[s][0],i))return s;return-1}function qa(t,i){return t&&gt(i,$e(i),t)}function xe(t,i,s,b,O,D,Z){var V;if(b&&(V=D?b(t,O,D,Z):b(t)),V!==void 0)return V;if(!_e(t))return t;var St=Fe(t);if(St){if(V=ur(t),!i)return sr(t,V)}else{var ne=X(t),Ct=ne==N||ne==I;if(_r(t))return tr(t,i);if(ne==T||ne==u||Ct&&!D){if(ot(t))return D?t:{};if(V=fr(Ct?{}:t),!i)return lr(t,qa(V,t))}else{if(!S[ne])return D?t:{};V=pr(t,ne,xe,i)}}Z||(Z=new ee);var Tt=Z.get(t);if(Tt)return Tt;if(Z.set(t,V),!St)var Et=s?dr(t):$e(t);return da(Et||t,function(De,we){Et&&(we=De,De=t[we]),ht(V,we,xe(De,i,s,b,we,t,Z))}),V}function Ya(t){return _e(t)?va(t):{}}function Xa(t,i,s){var b=i(t);return Fe(t)?b:ua(b,s(t))}function Ja(t){return ge.call(t)}function Qa(t){if(!_e(t)||hr(t))return!1;var i=kt(t)||ot(t)?ha:Ce;return i.test(J(t))}function er(t){if(!yt(t))return ka(t);var i=[];for(var s in Object(t))G.call(t,s)&&s!="constructor"&&i.push(s);return i}function tr(t,i){if(i)return t.slice();var s=new t.constructor(t.length);return t.copy(s),s}function Ae(t){var i=new t.constructor(t.byteLength);return new ft(i).set(new ft(t)),i}function nr(t,i){var s=i?Ae(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function ar(t,i,s){var b=i?s(it(t),!0):it(t);return rt(b,sa,new t.constructor)}function rr(t){var i=new t.constructor(t.source,K.exec(t));return i.lastIndex=t.lastIndex,i}function or(t,i,s){var b=i?s(ct(t),!0):ct(t);return rt(b,la,new t.constructor)}function ir(t){return mt?Object(mt.call(t)):{}}function cr(t,i){var s=i?Ae(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function sr(t,i){var s=-1,b=t.length;for(i||(i=Array(b));++s<b;)i[s]=t[s];return i}function gt(t,i,s,b){s||(s={});for(var O=-1,D=i.length;++O<D;){var Z=i[O],V=b?b(s[Z],t[Z],Z,s,t):void 0;ht(s,Z,V===void 0?t[Z]:V)}return s}function lr(t,i){return gt(t,vt(t),i)}function dr(t){return Xa(t,$e,vt)}function ye(t,i){var s=t.__data__;return mr(i)?s[typeof i=="string"?"string":"hash"]:s.map}function te(t,i){var s=pa(t,i);return Qa(s)?s:void 0}var vt=pt?Te(pt,Object):Sr,X=Ja;(Ne&&X(new Ne(new ArrayBuffer(1)))!=w||ie&&X(new ie)!=B||Ie&&X(Ie.resolve())!=F||Be&&X(new Be)!=$||Oe&&X(new Oe)!=_)&&(X=function(t){var i=ge.call(t),s=i==T?t.constructor:void 0,b=s?J(s):void 0;if(b)switch(b){case Sa:return w;case Ca:return B;case Ta:return F;case Ea:return $;case Na:return _}return i});function ur(t){var i=t.length,s=t.constructor(i);return i&&typeof t[0]=="string"&&G.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function fr(t){return typeof t.constructor=="function"&&!yt(t)?Ya(ga(t)):{}}function pr(t,i,s,b){var O=t.constructor;switch(i){case x:return Ae(t);case p:case v:return new O(+t);case w:return nr(t,b);case d:case f:case m:case k:case h:case E:case g:case A:case q:return cr(t,b);case B:return ar(t,b,s);case C:case j:return new O(t);case M:return rr(t);case $:return or(t,b,s);case R:return ir(t)}}function br(t,i){return i=i??l,!!i&&(typeof t=="number"||oe.test(t))&&t>-1&&t%1==0&&t<i}function mr(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function hr(t){return!!st&&st in t}function yt(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||he;return t===s}function J(t){if(t!=null){try{return lt.call(t)}catch{}try{return t+""}catch{}}return""}function gr(t){return xe(t,!0,!0)}function _t(t,i){return t===i||t!==t&&i!==i}function vr(t){return yr(t)&&G.call(t,"callee")&&(!ya.call(t,"callee")||ge.call(t)==u)}var Fe=Array.isArray;function wt(t){return t!=null&&wr(t.length)&&!kt(t)}function yr(t){return kr(t)&&wt(t)}var _r=wa||Cr;function kt(t){var i=_e(t)?ge.call(t):"";return i==N||i==I}function wr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=l}function _e(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}function kr(t){return!!t&&typeof t=="object"}function $e(t){return wt(t)?Wa(t):er(t)}function Sr(){return[]}function Cr(){return!1}r.exports=gr}(me,me.exports);var kn=me.exports;const Sn=wn(kn),Cn={key:0,class:"sidebar-header"},Tn={class:"sidebar-content-container"},En={key:0,class:"sidebar-top"},Nn={"aria-label":"Main menu"},In={key:0,class:"level-primary top-items"},Bn={key:1,class:"sidebar-level-divider",role:"separator"},On={key:2,class:"level-primary bottom-items"},xn={class:"sidebar-footer"},An=e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,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=>({"160797d0":e.unref(c).mobileHeight,"721527f8":e.unref(c).mobileTop,"054b3490":r.zIndex,"6b0e6816":e.unref(c).height,"31cc2e74":e.unref(c).top,"16bd691a":e.unref(v).marginTop,"08886e32":e.unref(p).display,"1d2550ee":e.unref(p).minHeight,ed4e7e56:e.unref(y).top,"377644f8":e.unref(y).zIndex}));const o=e.useSlots(),l=e.computed(()=>!!o.header),u=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`})),v=e.computed(()=>({marginTop:l.value?`${a.headerHeight}px`:"0"})),y=e.computed(()=>({top:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:"0",zIndex:a.mobileOverlayZIndex!==null?a.mobileOverlayZIndex:a.zIndex>1?a.zIndex-1:1})),N=h=>Sn(h).map(g=>{var A,q,P;if(g){(!g.key||!((A=g.key)!=null&&A.trim()))&&(g.key=String(g.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!g.testId||!((q=g.testId)!=null&&q.trim()))&&(g.testId=String(g.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const K of g.items||[])K.parentKey=g.key,(!K.testId||!((P=K.testId)!=null&&P.trim()))&&(K.testId=String(K.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return g}),I=e.computed(()=>a.topItems.length?N(a.topItems):[]),B=e.computed(()=>a.bottomItems.length?N(a.bottomItems):[]),C=e.ref(a.open),T=h=>{var E,g;C.value!==h&&(C.value=h,n("toggle",h)),h?(E=document==null?void 0:document.body)==null||E.classList.add("kong-ui-app-sidebar-open"):(g=document==null?void 0:document.body)==null||g.classList.remove("kong-ui-app-sidebar-open"),M.value=!1},F=()=>{a.mobileOverlayCloseOnClick&&T(!1)},M=e.ref(!1),$=h=>{M.value=!0,n("click",h),setTimeout(()=>{T(!1)},a.mobileCloseDelay)};e.watch(()=>a.open,h=>{T(h)});const{debounce:j}=Xe(),R=j(()=>{C.value&&_.value!==(window==null?void 0:window.innerWidth)&&(_.value=window==null?void 0:window.innerWidth,T(!1))},200),_=e.ref(),x=e.ref(!1),w=e.ref(),d=()=>{x.value||(x.value=!0,clearTimeout(w.value),w.value=setTimeout(()=>x.value=!1,1300))},f=e.ref(null),m=e.computed(()=>C.value&&a.mobileEnabled),k=async h=>{var E,g;h?(await e.nextTick(),await new Promise(A=>setTimeout(A,300)),(E=f.value)==null||E.activate()):(g=f.value)==null||g.deactivate()};return e.watch(m,async h=>{h?await k(!0):await k(!1)},{immediate:!0}),e.onMounted(()=>{_.value=window==null?void 0:window.innerWidth,window.addEventListener("resize",R),window.addEventListener("resize",d)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",R),window.removeEventListener("resize",d)}),(h,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[C.value&&r.mobileOverlay&&r.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:F})):e.createCommentVNode("",!0),e.createVNode(e.unref(_n),{ref_key:"focusTrap",ref:f,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":C.value,"no-sidebar-header":!e.unref(l),"mobile-header-hidden":r.mobileEnabled&&(!e.unref(l)||!r.mobileHeaderVisible),"mobile-disabled":!r.mobileEnabled,"disable-transitions":x.value}]),tabindex:"-1"},[e.unref(l)?(e.openBlock(),e.createElementBlock("div",Cn,[e.renderSlot(h.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Tn,[e.unref(u)?(e.openBlock(),e.createElementBlock("div",En,[e.renderSlot(h.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Nn,[e.unref(I).length?(e.openBlock(),e.createElementBlock("ul",In,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),g=>(e.openBlock(),e.createBlock(Le,{key:g.name,item:g,onClick:$},null,8,["item"]))),128))])):e.createCommentVNode("",!0),e.unref(I).length&&e.unref(B).length?(e.openBlock(),e.createElementBlock("div",Bn)):e.createCommentVNode("",!0),e.unref(B).length?(e.openBlock(),e.createElementBlock("ul",On,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(B),g=>(e.openBlock(),e.createBlock(Le,{key:g.name,item:g,onClick:$},null,8,["item"]))),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",xn,[e.renderSlot(h.$slots,"footer",{},void 0,!0)])],2)]),_:3},512)],64))}}),Or="",xr="",Je=H(An,[["__scopeId","data-v-6daf9f02"]]),Se=r=>(e.pushScopeId("data-v-33b3f7c3"),r=r(),e.popScopeId(),r),Fn=["aria-label","onClick"],$n=[Se(()=>e.createElementVNode("span",{class:"line"},null,-1)),Se(()=>e.createElementVNode("span",{class:"line"},null,-1)),Se(()=>e.createElementVNode("span",{class:"line"},null,-1))],Dn=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),l=()=>{o.value=!o.value,n("toggle",o.value)};return e.watch(()=>a.active,u=>{o.value=u}),(u,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(l,["prevent"])},$n,10,Fn))}}),Dr="",Qe=H(Dn,[["__scopeId","data-v-33b3f7c3"]]),Vn=r=>(e.pushScopeId("data-v-94724415"),r=r(),e.popScopeId(),r),Ln={id:"kong-ui-app-layout-notification"},Mn={class:"mobile-logo"},Rn={key:0,class:"navbar-logo"},Zn={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},jn={class:"kong-ui-app-layout-content"},Pn=Vn(()=>e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),Hn=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:()=>[]}},emits:["sidebar-click"],setup(r,{emit:n}){const a=r;e.useCssVars(_=>({"1b158334":e.unref(F),"78d53b27":e.unref(M)}));const o=e.useSlots(),l=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"])}),u=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),open:e.computed(()=>a.sidebarOpen),hidden:e.computed(()=>a.sidebarHidden)}),v=_=>{n("sidebar-click",_)},y=e.ref(!1),N=_=>{y.value=_};e.watchEffect(()=>{y.value=e.toRef(p,"open").value||!1});const I=e.ref(0),B=e.ref(60),C=e.ref(0),T=e.computed(()=>c.hidden?C.value:B.value+C.value),F=e.computed(()=>`${T.value}px`),M=e.computed(()=>p.hidden||c.hidden?"0":"16px"),{debounce:$}=Xe(),j=$((_=!1)=>{if(_||I.value!==(window==null?void 0:window.innerWidth)){const x=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");x&&(C.value=x.offsetHeight)}},200),R=e.ref();return e.onMounted(()=>{var x,w;(x=document==null?void 0:document.body)==null||x.classList.add("kong-ui-app-layout-body"),(w=document==null?void 0:document.documentElement)==null||w.classList.add("kong-ui-app-layout-html"),I.value=window==null?void 0:window.innerWidth,j(!0);const _=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");_&&(R.value=new ResizeObserver(d=>{for(const f of d){const m=f.contentRect.height;C.value!==m&&(C.value=m)}}),R.value.observe(_)),window.addEventListener("resize",j)}),e.onBeforeUnmount(()=>{R.value&&R.value.disconnect(),window.removeEventListener("resize",j)}),(_,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":c.hidden},{"sidebar-hidden":p.hidden}]])},[e.createElementVNode("div",Ln,[e.renderSlot(_.$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":C.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qe,{key:0,active:y.value,onToggle:N},null,8,["active"]))]),_:2},[l.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",Mn,[e.renderSlot(_.$slots,"navbar-mobile-logo",{},void 0,!0)])]),key:"0"}:void 0,l.navbarLogo?{name:"logo",fn:e.withCtx(()=>[p.hidden?(e.openBlock(),e.createElementBlock("div",Rn,[e.renderSlot(_.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,l.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,l.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,l.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(_.$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":B.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":e.unref(T),open:y.value,"top-items":p.topItems,"top-offset":C.value,onClick:v,onToggle:N},e.createSlots({_:2},[l.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,l.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0,l.sidebarFooter?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-footer",{},void 0,!0)]),key:"2"}:void 0]),1032,["bottom-items","header-height","mobile-top-offset","open","top-items","top-offset"])),e.createElementVNode("main",Zn,[e.createElementVNode("div",jn,[Pn,e.renderSlot(_.$slots,"app-error",{},void 0,!0),e.unref(u)?e.createCommentVNode("",!0):e.renderSlot(_.$slots,"default",{key:0},void 0,!0)])])],2))}}),Vr="",Lr="",et=H(Hn,[["__scopeId","data-v-94724415"]]),Kn=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"),l=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createBlock(l,{class:"account-dropdown","kpop-attributes":{placement:"bottomStart"},label:r.userInitials,size:"small",width:r.width},{items:e.withCtx(({handleSelection:u})=>[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=>u(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"])}}}),Mr="",zn=H(Kn,[["__scopeId","data-v-6e34d3da"]]),Un={},Gn={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"},Wn=[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 qn(r,n){return e.openBlock(),e.createElementBlock("svg",Gn,Wn)}const Yn=H(Un,[["render",qn]]),tt=r=>(e.pushScopeId("data-v-ff05f71e"),r=r(),e.popScopeId(),r),Xn={class:"kong-ui-app-error"},Jn={class:"banana-icon"},Qn={class:"kong-ui-app-error-content"},ea=tt(()=>e.createElementVNode("h2",null,"An unexpected error has occurred",-1)),ta=tt(()=>e.createElementVNode("p",null,[e.createTextVNode("Go back to the previous page or "),e.createElementVNode("a",{href:"/"},"return home"),e.createTextVNode(".")],-1)),na=e.defineComponent({__name:"AppError",setup(r){return(n,a)=>(e.openBlock(),e.createElementBlock("section",Xn,[e.createElementVNode("div",Jn,[e.createVNode(Yn)]),e.createElementVNode("div",Qn,[e.renderSlot(n.$slots,"default",{},()=>[ea,ta],!0)])]))}}),Zr="",jr="",aa=H(na,[["__scopeId","data-v-ff05f71e"]]),ra={install:(r,n={})=>{r.component(n.name||"AppLayout",et)}};L.AccountDropdown=zn,L.AppError=aa,L.AppLayout=et,L.AppNavbar=Ve,L.AppSidebar=Je,L.SidebarToggle=Qe,L.default=ra,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
12
12
  //# sourceMappingURL=app-layout.umd.js.map