@kong-ui-public/app-layout 0.13.2 → 0.13.3

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(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/kongponents")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/kongponents"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D["kong-ui-public-app-layout"]={},D.Vue,D.Kongponents))})(this,function(D,e,ae){"use strict";const Nt={class:"kong-ui-app-navbar"},Bt={class:"header-content"},It={class:"mobile-header-left"},xt={key:0,class:"app-navbar-logo"},Ot=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(s=>({"4069310e":e.unref(f).top,"3f846bd4":e.unref(f).zIndex,"199dbe63":e.unref(f).left,"524d632b":l.marginRight,"2e9601a3":l.width}));const a=e.useSlots(),o=e.computed(()=>!!a.logo),l=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var s,p;(p=(s=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:s.children)!=null&&p.length?(l.marginRight="32px",l.width="calc(240px - 32px)"):(l.marginRight="0",l.width="0")});const f=e.computed(()=>({top:n.topOffset?`${n.topOffset}px`:"0",left:n.leftOffset?`${n.leftOffset}px`:"0",zIndex:n.zIndex}));return(s,p)=>(e.openBlock(),e.createElementBlock("header",Nt,[e.createElementVNode("div",Bt,[e.createElementVNode("div",It,[e.renderSlot(s.$slots,"mobile-sidebar-toggle"),e.renderSlot(s.$slots,"mobile-logo")]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(s.$slots,"logo")])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default")])]))}}),$r="",Z=(r,n)=>{const a=r.__vccOpts||r;for(const[o,l]of n)a[o]=l;return a},Me=Z(Ot,[["__scopeId","data-v-a91d0002"]]),At=["title"],$t=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,f)=>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,At)):e.createCommentVNode("",!0)}}),Fr="",Ft=Z($t,[["__scopeId","data-v-9e48c714"]]),Dt=["data-testid"],Vt=["aria-controls","aria-expanded","href","target","onClick","onKeypress"],Mt={key:0,class:"sidebar-item-icon"},Lt={class:"sidebar-item-name-container"},Rt={class:"sidebar-item-name has-tooltip"},Zt={key:2,class:"sidebar-item-label truncate-text truncate-20"},Pt=["id"],jt=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("/"))),f=e.computed(()=>a.subnavItem&&a.item.badgeCount!==void 0),s=_=>{n("click",_)},p=(_,v,B)=>{s(v),typeof B=="function"&&(_.preventDefault(),B())};return(_,v)=>{var E;const 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(y=>{var w,x;return[e.createElementVNode("a",{"aria-controls":(w=r.item.items)!=null&&w.length&&r.item.expanded?`subnav-${r.item.key}`:void 0,"aria-expanded":(x=r.item.items)!=null&&x.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||"#"):y==null?void 0:y.href,target:e.unref(l)?"_blank":void 0,onClick:$=>p($,r.item,y==null?void 0:y.navigate),onKeypress:e.withKeys($=>p($,r.item,y==null?void 0:y.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!r.item.label&&r.item.expanded,"has-badge":e.unref(f)}])},[r.item.icon?(e.openBlock(),e.createElementBlock("div",Mt,[e.createVNode(e.unref(ae.KIcon),{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",Lt,[(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(e.unref(ae.KTooltip),{key:1,class:"sidebar-item-tooltip",label:r.item.name,placement:"right","position-fixed":""},{default:e.withCtx(()=>[e.createElementVNode("div",Rt,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[r.subnavItem?"truncate-20":"truncate-17",{"has-badge-max-width":e.unref(f)}]])},e.toDisplayString(r.item.name),3)])]),_:1},8,["label"])),r.item.label&&r.item.expanded?(e.openBlock(),e.createElementBlock("div",Zt,e.toDisplayString(r.item.label),1)):e.createCommentVNode("",!0)]),e.unref(f)?(e.openBlock(),e.createBlock(Ft,{key:1,count:r.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,Vt)]}),_:1},8,["custom","to"])),(E=r.item.items)!=null&&E.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,y=>(e.openBlock(),e.createBlock(B,{key:y.name,item:y,"subnav-item":!0,onClick:w=>s(y)},null,8,["item","onClick"]))),128))],8,Pt)):e.createCommentVNode("",!0)],10,Dt)}}}),Dr="",Vr="",Le=Z(jt,[["__scopeId","data-v-d416aef5"]]),Ht={},Kt={class:"profile-icon",fill:"none",height:"30",width:"30",xmlns:"http://www.w3.org/2000/svg"},zt=[e.createElementVNode("path",{d:"M0 15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15Z",fill:"#0A7FAE"},null,-1),e.createElementVNode("path",{d:"M12.613 15 8.5 18.115V23h13v-4.885L17.648 15h-5.035ZM15 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"#fff"},null,-1)];function Wt(r,n){return e.openBlock(),e.createElementBlock("svg",Kt,zt)}const Gt=Z(Ht,[["render",Wt]]),Ut={"aria-haspopup":"true","aria-label":"Profile Menu",class:"sidebar-footer"},qt={class:"sidebar-profile-link"},Yt={class:"sidebar-item-icon"},Xt={class:"sidebar-profile-item-container"},Jt={class:"sidebar-profile-dropdown-container"},Qt={key:0,class:"sidebar-profile-name"},en={class:"sidebar-profile-name"},tn=e.defineComponent({__name:"SidebarFooter",props:{name:{type:String,required:!0},itemCount:{type:Number,required:!0,default:0}},setup(r){const n=r,a=e.computed(()=>n.itemCount>0);return(o,l)=>(e.openBlock(),e.createElementBlock("nav",Ut,[e.createElementVNode("div",qt,[e.createElementVNode("div",Yt,[e.createVNode(Gt)]),e.createElementVNode("div",Xt,[e.createElementVNode("div",Jt,[e.unref(a)?(e.openBlock(),e.createBlock(e.unref(ae.KDropdownMenu),{key:1,"kpop-attributes":{placement:"right",popoverClasses:"ml-5 sidebar-profile-menu-popover",target:".sidebar-footer"},width:"240"},{items:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("a",{"aria-label":"Open Profile Menu",class:"profile-dropdown-trigger",role:"button",tabindex:"0",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("span",en,e.toDisplayString(r.name),1)])]),_:3},8,["kpop-attributes"])):(e.openBlock(),e.createElementBlock("div",Qt,e.toDisplayString(r.name),1))])])])]))}}),Rr="",nn=Z(tn,[["__scopeId","data-v-57607227"]]);/*!
1
+ (function(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/kongponents")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/kongponents"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D["kong-ui-public-app-layout"]={},D.Vue,D.Kongponents))})(this,function(D,e,ae){"use strict";const Nt={class:"kong-ui-app-navbar"},Bt={class:"header-content"},It={class:"mobile-header-left"},xt={key:0,class:"app-navbar-logo"},Ot={class:"navbar-content"},$t={class:"navbar-content-left"},At={class:"navbar-content-center"},Ft={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(s=>({"70cd97af":e.unref(f).top,"0d2cc7de":e.unref(f).zIndex,ae3cd626:e.unref(f).left,"103f0fb5":l.marginRight,"078344a6":l.width}));const a=e.useSlots(),o=e.computed(()=>!!a.logo),l=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var s,p;(p=(s=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:s.children)!=null&&p.length?(l.marginRight="32px",l.width="calc(240px - 32px)"):(l.marginRight="0",l.width="0")});const f=e.computed(()=>({top:n.topOffset?`${n.topOffset}px`:"0",left:n.leftOffset?`${n.leftOffset}px`:"0",zIndex:n.zIndex}));return(s,p)=>(e.openBlock(),e.createElementBlock("header",Nt,[e.createElementVNode("div",Bt,[e.createElementVNode("div",It,[e.renderSlot(s.$slots,"mobile-sidebar-toggle"),e.renderSlot(s.$slots,"mobile-logo")]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(s.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",Ot,[e.createElementVNode("div",$t,[e.renderSlot(s.$slots,"left")]),e.createElementVNode("div",At,[e.renderSlot(s.$slots,"center")]),e.createElementVNode("div",Ft,[e.renderSlot(s.$slots,"right")])])])]))}}),Mr="",Z=(r,n)=>{const a=r.__vccOpts||r;for(const[o,l]of n)a[o]=l;return a},Me=Z(Dt,[["__scopeId","data-v-f2e6c8f7"]]),Vt=["title"],Mt=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,f)=>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)}}),Lr="",Lt=Z(Mt,[["__scopeId","data-v-9e48c714"]]),Rt=["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"],Wt=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("/"))),f=e.computed(()=>a.subnavItem&&a.item.badgeCount!==void 0),s=v=>{n("click",v)},p=(v,_,B)=>{s(_),typeof B=="function"&&(v.preventDefault(),B())};return(v,_)=>{var E;const 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(y=>{var k,x;return[e.createElementVNode("a",{"aria-controls":(k=r.item.items)!=null&&k.length&&r.item.expanded?`subnav-${r.item.key}`:void 0,"aria-expanded":(x=r.item.items)!=null&&x.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||"#"):y==null?void 0:y.href,target:e.unref(l)?"_blank":void 0,onClick:A=>p(A,r.item,y==null?void 0:y.navigate),onKeypress:e.withKeys(A=>p(A,r.item,y==null?void 0:y.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!r.item.label&&r.item.expanded,"has-badge":e.unref(f)}])},[r.item.icon?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(e.unref(ae.KIcon),{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(e.unref(ae.KTooltip),{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(f)}]])},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(f)?(e.openBlock(),e.createBlock(Lt,{key:1,count:r.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,Zt)]}),_:1},8,["custom","to"])),(E=r.item.items)!=null&&E.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,y=>(e.openBlock(),e.createBlock(B,{key:y.name,item:y,"subnav-item":!0,onClick:k=>s(y)},null,8,["item","onClick"]))),128))],8,zt)):e.createCommentVNode("",!0)],10,Rt)}}}),Rr="",Zr="",Le=Z(Wt,[["__scopeId","data-v-d416aef5"]]),Gt={},Ut={class:"profile-icon",fill:"none",height:"30",width:"30",xmlns:"http://www.w3.org/2000/svg"},qt=[e.createElementVNode("path",{d:"M0 15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15Z",fill:"#0A7FAE"},null,-1),e.createElementVNode("path",{d:"M12.613 15 8.5 18.115V23h13v-4.885L17.648 15h-5.035ZM15 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"#fff"},null,-1)];function Yt(r,n){return e.openBlock(),e.createElementBlock("svg",Ut,qt)}const Xt=Z(Gt,[["render",Yt]]),Jt={"aria-haspopup":"true","aria-label":"Profile Menu",class:"sidebar-footer"},Qt={class:"sidebar-profile-link"},en={class:"sidebar-item-icon"},tn={class:"sidebar-profile-item-container"},nn={class:"sidebar-profile-dropdown-container"},an={key:0,class:"sidebar-profile-name"},rn={class:"sidebar-profile-name"},on=e.defineComponent({__name:"SidebarFooter",props:{name:{type:String,required:!0},itemCount:{type:Number,required:!0,default:0}},setup(r){const n=r,a=e.computed(()=>n.itemCount>0);return(o,l)=>(e.openBlock(),e.createElementBlock("nav",Jt,[e.createElementVNode("div",Qt,[e.createElementVNode("div",en,[e.createVNode(Xt)]),e.createElementVNode("div",tn,[e.createElementVNode("div",nn,[e.unref(a)?(e.openBlock(),e.createBlock(e.unref(ae.KDropdownMenu),{key:1,"kpop-attributes":{placement:"right",popoverClasses:"ml-5 sidebar-profile-menu-popover",target:".sidebar-footer"},width:"240"},{items:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("a",{"aria-label":"Open Profile Menu",class:"profile-dropdown-trigger",role:"button",tabindex:"0",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("span",rn,e.toDisplayString(r.name),1)])]),_:3},8,["kpop-attributes"])):(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(r.name),1))])])])]))}}),Hr="",cn=Z(on,[["__scopeId","data-v-57607227"]]);/*!
2
2
  * tabbable 6.0.1
3
3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
- */var Re=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],le=Re.join(","),Ze=typeof Element>"u",U=Ze?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,de=!Ze&&Element.prototype.getRootNode?function(r){return r.getRootNode()}:function(r){return r.ownerDocument},Pe=function(n,a,o){var l=Array.prototype.slice.apply(n.querySelectorAll(le));return a&&U.call(n,le)&&l.unshift(n),l=l.filter(o),l},je=function r(n,a,o){for(var l=[],f=Array.from(n);f.length;){var s=f.shift();if(s.tagName==="SLOT"){var p=s.assignedElements(),_=p.length?p:s.children,v=r(_,!0,o);o.flatten?l.push.apply(l,v):l.push({scopeParent:s,candidates:v})}else{var B=U.call(s,le);B&&o.filter(s)&&(a||!n.includes(s))&&l.push(s);var E=s.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(s),y=!o.shadowRootFilter||o.shadowRootFilter(s);if(E&&y){var w=r(E===!0?s.children:E.children,!0,o);o.flatten?l.push.apply(l,w):l.push({scopeParent:s,candidates:w})}else f.unshift.apply(f,s.children)}}return l},He=function(n,a){return n.tabIndex<0&&(a||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},an=function(n,a){return n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex},Ke=function(n){return n.tagName==="INPUT"},rn=function(n){return Ke(n)&&n.type==="hidden"},on=function(n){var a=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(o){return o.tagName==="SUMMARY"});return a},cn=function(n,a){for(var o=0;o<n.length;o++)if(n[o].checked&&n[o].form===a)return n[o]},sn=function(n){if(!n.name)return!0;var a=n.form||de(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(s){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",s.message),!1}var f=cn(l,n.form);return!f||f===n},ln=function(n){return Ke(n)&&n.type==="radio"},dn=function(n){return ln(n)&&!sn(n)},fn=function(n){for(var a,o=de(n).host,l=!!((a=o)!==null&&a!==void 0&&a.ownerDocument.contains(o)||n.ownerDocument.contains(n));!l&&o;){var f;o=de(o).host,l=!!((f=o)!==null&&f!==void 0&&f.ownerDocument.contains(o))}return l},ze=function(n){var a=n.getBoundingClientRect(),o=a.width,l=a.height;return o===0&&l===0},un=function(n,a){var o=a.displayCheck,l=a.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var f=U.call(n,"details>summary:first-of-type"),s=f?n.parentElement:n;if(U.call(s,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var p=n;n;){var _=n.parentElement,v=de(n);if(_&&!_.shadowRoot&&l(_)===!0)return ze(n);n.assignedSlot?n=n.assignedSlot:!_&&v!==n.ownerDocument?n=v.host:n=_}n=p}if(fn(n))return!n.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return ze(n);return!1},pn=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 U.call(a,"fieldset[disabled] *")?!0:!l.contains(n)}return!0}a=a.parentElement}return!1},fe=function(n,a){return!(a.disabled||rn(a)||un(a,n)||on(a)||pn(a))},ke=function(n,a){return!(dn(a)||He(a)<0||!fe(n,a))},mn=function(n){var a=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},bn=function r(n){var a=[],o=[];return n.forEach(function(l,f){var s=!!l.scopeParent,p=s?l.scopeParent:l,_=He(p,s),v=s?r(l.candidates):p;_===0?s?a.push.apply(a,v):a.push(p):o.push({documentOrder:f,tabIndex:_,item:l,isScope:s,content:v})}),o.sort(an).reduce(function(l,f){return f.isScope?l.push.apply(l,f.content):l.push(f.content),l},[]).concat(a)},hn=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:mn}):o=Pe(n,a.includeContainer,ke.bind(null,a)),bn(o)},gn=function(n,a){a=a||{};var o;return a.getShadowRoot?o=je([n],a.includeContainer,{filter:fe.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):o=Pe(n,a.includeContainer,fe.bind(null,a)),o},ue=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return U.call(n,le)===!1?!1:ke(a,n)},yn=Re.concat("iframe").join(","),Ce=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return U.call(n,yn)===!1?!1:fe(a,n)};/*!
4
+ */var Re=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],le=Re.join(","),Ze=typeof Element>"u",U=Ze?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,de=!Ze&&Element.prototype.getRootNode?function(r){return r.getRootNode()}:function(r){return r.ownerDocument},Pe=function(n,a,o){var l=Array.prototype.slice.apply(n.querySelectorAll(le));return a&&U.call(n,le)&&l.unshift(n),l=l.filter(o),l},je=function r(n,a,o){for(var l=[],f=Array.from(n);f.length;){var s=f.shift();if(s.tagName==="SLOT"){var p=s.assignedElements(),v=p.length?p:s.children,_=r(v,!0,o);o.flatten?l.push.apply(l,_):l.push({scopeParent:s,candidates:_})}else{var B=U.call(s,le);B&&o.filter(s)&&(a||!n.includes(s))&&l.push(s);var E=s.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(s),y=!o.shadowRootFilter||o.shadowRootFilter(s);if(E&&y){var k=r(E===!0?s.children:E.children,!0,o);o.flatten?l.push.apply(l,k):l.push({scopeParent:s,candidates:k})}else f.unshift.apply(f,s.children)}}return l},He=function(n,a){return n.tabIndex<0&&(a||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},sn=function(n,a){return n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex},Ke=function(n){return n.tagName==="INPUT"},ln=function(n){return Ke(n)&&n.type==="hidden"},dn=function(n){var a=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(o){return o.tagName==="SUMMARY"});return a},fn=function(n,a){for(var o=0;o<n.length;o++)if(n[o].checked&&n[o].form===a)return n[o]},un=function(n){if(!n.name)return!0;var a=n.form||de(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(s){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",s.message),!1}var f=fn(l,n.form);return!f||f===n},pn=function(n){return Ke(n)&&n.type==="radio"},mn=function(n){return pn(n)&&!un(n)},bn=function(n){for(var a,o=de(n).host,l=!!((a=o)!==null&&a!==void 0&&a.ownerDocument.contains(o)||n.ownerDocument.contains(n));!l&&o;){var f;o=de(o).host,l=!!((f=o)!==null&&f!==void 0&&f.ownerDocument.contains(o))}return l},ze=function(n){var a=n.getBoundingClientRect(),o=a.width,l=a.height;return o===0&&l===0},hn=function(n,a){var o=a.displayCheck,l=a.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var f=U.call(n,"details>summary:first-of-type"),s=f?n.parentElement:n;if(U.call(s,"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,_=de(n);if(v&&!v.shadowRoot&&l(v)===!0)return ze(n);n.assignedSlot?n=n.assignedSlot:!v&&_!==n.ownerDocument?n=_.host:n=v}n=p}if(bn(n))return!n.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return ze(n);return!1},gn=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 U.call(a,"fieldset[disabled] *")?!0:!l.contains(n)}return!0}a=a.parentElement}return!1},fe=function(n,a){return!(a.disabled||ln(a)||hn(a,n)||dn(a)||gn(a))},ke=function(n,a){return!(mn(a)||He(a)<0||!fe(n,a))},yn=function(n){var a=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},vn=function r(n){var a=[],o=[];return n.forEach(function(l,f){var s=!!l.scopeParent,p=s?l.scopeParent:l,v=He(p,s),_=s?r(l.candidates):p;v===0?s?a.push.apply(a,_):a.push(p):o.push({documentOrder:f,tabIndex:v,item:l,isScope:s,content:_})}),o.sort(sn).reduce(function(l,f){return f.isScope?l.push.apply(l,f.content):l.push(f.content),l},[]).concat(a)},_n=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:yn}):o=Pe(n,a.includeContainer,ke.bind(null,a)),vn(o)},wn=function(n,a){a=a||{};var o;return a.getShadowRoot?o=je([n],a.includeContainer,{filter:fe.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):o=Pe(n,a.includeContainer,fe.bind(null,a)),o},ue=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return U.call(n,le)===!1?!1:ke(a,n)},kn=Re.concat("iframe").join(","),Ce=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return U.call(n,kn)===!1?!1:fe(a,n)};/*!
5
5
  * focus-trap 7.2.0
6
6
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7
- */function We(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?We(Object(a),!0).forEach(function(o){_n(r,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):We(Object(a)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(a,o))})}return r}function _n(r,n,a){return n=wn(n),n in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}function vn(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 wn(r){var n=vn(r,"string");return typeof n=="symbol"?n:String(n)}var Ue={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()}},kn=function(n){return n.tagName&&n.tagName.toLowerCase()==="input"&&typeof n.select=="function"},Cn=function(n){return n.key==="Escape"||n.key==="Esc"||n.keyCode===27},re=function(n){return n.key==="Tab"||n.keyCode===9},Sn=function(n){return re(n)&&!n.shiftKey},Tn=function(n){return re(n)&&n.shiftKey},qe=function(n){return setTimeout(n,0)},Ye=function(n,a){var o=-1;return n.every(function(l,f){return a(l)?(o=f,!1):!0}),o},oe=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},En=[],Nn=function(n,a){var o=(a==null?void 0:a.document)||document,l=(a==null?void 0:a.trapStack)||En,f=Ge({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Sn,isKeyBackward:Tn},a),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},p,_=function(d,u,h){return d&&d[u]!==void 0?d[u]:f[h||u]},v=function(d){return s.containerGroups.findIndex(function(u){var h=u.container,T=u.tabbableNodes;return h.contains(d)||T.find(function(g){return g===d})})},B=function(d){var u=f[d];if(typeof u=="function"){for(var h=arguments.length,T=new Array(h>1?h-1:0),g=1;g<h;g++)T[g-1]=arguments[g];u=u.apply(void 0,T)}if(u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error("`".concat(d,"` was specified but was not a node, or did not return a node"))}var N=u;if(typeof u=="string"&&(N=o.querySelector(u),!N))throw new Error("`".concat(d,"` as selector refers to no known node"));return N},E=function(){var d=B("initialFocus");if(d===!1)return!1;if(d===void 0)if(v(o.activeElement)>=0)d=o.activeElement;else{var u=s.tabbableGroups[0],h=u&&u.firstTabbableNode;d=h||B("fallbackFocus")}if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},y=function(){if(s.containerGroups=s.containers.map(function(d){var u=hn(d,f.tabbableOptions),h=gn(d,f.tabbableOptions);return{container:d,tabbableNodes:u,focusableNodes:h,firstTabbableNode:u.length>0?u[0]:null,lastTabbableNode:u.length>0?u[u.length-1]:null,nextTabbableNode:function(g){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,m=h.findIndex(function(A){return A===g});if(!(m<0))return N?h.slice(m+1).find(function(A){return ue(A,f.tabbableOptions)}):h.slice(0,m).reverse().find(function(A){return ue(A,f.tabbableOptions)})}}}),s.tabbableGroups=s.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!B("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},w=function k(d){if(d!==!1&&d!==o.activeElement){if(!d||!d.focus){k(E());return}d.focus({preventScroll:!!f.preventScroll}),s.mostRecentlyFocusedNode=d,kn(d)&&d.select()}},x=function(d){var u=B("setReturnFocus",d);return u||(u===!1?!1:d)},$=function(d){var u=pe(d);if(!(v(u)>=0)){if(oe(f.clickOutsideDeactivates,d)){p.deactivate({returnFocus:f.returnFocusOnDeactivate&&!Ce(u,f.tabbableOptions)});return}oe(f.allowOutsideClick,d)||d.preventDefault()}},j=function(d){var u=pe(d),h=v(u)>=0;h||u instanceof Document?h&&(s.mostRecentlyFocusedNode=u):(d.stopImmediatePropagation(),w(s.mostRecentlyFocusedNode||E()))},L=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=pe(d);y();var T=null;if(s.tabbableGroups.length>0){var g=v(h),N=g>=0?s.containerGroups[g]:void 0;if(g<0)u?T=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:T=s.tabbableGroups[0].firstTabbableNode;else if(u){var m=Ye(s.tabbableGroups,function(ie){var C=ie.firstTabbableNode;return h===C});if(m<0&&(N.container===h||Ce(h,f.tabbableOptions)&&!ue(h,f.tabbableOptions)&&!N.nextTabbableNode(h,!1))&&(m=g),m>=0){var A=m===0?s.tabbableGroups.length-1:m-1,q=s.tabbableGroups[A];T=q.lastTabbableNode}else re(d)||(T=N.nextTabbableNode(h,!1))}else{var H=Ye(s.tabbableGroups,function(ie){var C=ie.lastTabbableNode;return h===C});if(H<0&&(N.container===h||Ce(h,f.tabbableOptions)&&!ue(h,f.tabbableOptions)&&!N.nextTabbableNode(h))&&(H=g),H>=0){var K=H===s.tabbableGroups.length-1?0:H+1,Te=s.tabbableGroups[K];T=Te.firstTabbableNode}else re(d)||(T=N.nextTabbableNode(h))}}else T=B("fallbackFocus");T&&(re(d)&&d.preventDefault(),w(T))},P=function(d){if(Cn(d)&&oe(f.escapeDeactivates,d)!==!1){d.preventDefault(),p.deactivate();return}(f.isKeyForward(d)||f.isKeyBackward(d))&&L(d,f.isKeyBackward(d))},M=function(d){var u=pe(d);v(u)>=0||oe(f.clickOutsideDeactivates,d)||oe(f.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},S=function(){if(s.active)return Ue.activateTrap(l,p),s.delayInitialFocusTimer=f.delayInitialFocus?qe(function(){w(E())}):w(E()),o.addEventListener("focusin",j,!0),o.addEventListener("mousedown",$,{capture:!0,passive:!1}),o.addEventListener("touchstart",$,{capture:!0,passive:!1}),o.addEventListener("click",M,{capture:!0,passive:!1}),o.addEventListener("keydown",P,{capture:!0,passive:!1}),p},O=function(){if(s.active)return o.removeEventListener("focusin",j,!0),o.removeEventListener("mousedown",$,!0),o.removeEventListener("touchstart",$,!0),o.removeEventListener("click",M,!0),o.removeEventListener("keydown",P,!0),p};return p={get active(){return s.active},get paused(){return s.paused},activate:function(d){if(s.active)return this;var u=_(d,"onActivate"),h=_(d,"onPostActivate"),T=_(d,"checkCanFocusTrap");T||y(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=o.activeElement,u&&u();var g=function(){T&&y(),S(),h&&h()};return T?(T(s.containers.concat()).then(g,g),this):(g(),this)},deactivate:function(d){if(!s.active)return this;var u=Ge({onDeactivate:f.onDeactivate,onPostDeactivate:f.onPostDeactivate,checkCanReturnFocus:f.checkCanReturnFocus},d);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,O(),s.active=!1,s.paused=!1,Ue.deactivateTrap(l,p);var h=_(u,"onDeactivate"),T=_(u,"onPostDeactivate"),g=_(u,"checkCanReturnFocus"),N=_(u,"returnFocus","returnFocusOnDeactivate");h&&h();var m=function(){qe(function(){N&&w(x(s.nodeFocusedBeforeActivation)),T&&T()})};return N&&g?(g(x(s.nodeFocusedBeforeActivation)).then(m,m),this):(m(),this)},pause:function(){return s.paused||!s.active?this:(s.paused=!0,O(),this)},unpause:function(){return!s.paused||!s.active?this:(s.paused=!1,y(),S(),this)},updateContainerElements:function(d){var u=[].concat(d).filter(Boolean);return s.containers=u.map(function(h){return typeof h=="string"?o.querySelector(h):h}),s.active&&y(),this}},p.updateContainerElements(n),p};/*!
7
+ */function We(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?We(Object(a),!0).forEach(function(o){Cn(r,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):We(Object(a)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(a,o))})}return r}function Cn(r,n,a){return n=Tn(n),n in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}function Sn(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 Tn(r){var n=Sn(r,"string");return typeof n=="symbol"?n:String(n)}var Ue={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()}},En=function(n){return n.tagName&&n.tagName.toLowerCase()==="input"&&typeof n.select=="function"},Nn=function(n){return n.key==="Escape"||n.key==="Esc"||n.keyCode===27},re=function(n){return n.key==="Tab"||n.keyCode===9},Bn=function(n){return re(n)&&!n.shiftKey},In=function(n){return re(n)&&n.shiftKey},qe=function(n){return setTimeout(n,0)},Ye=function(n,a){var o=-1;return n.every(function(l,f){return a(l)?(o=f,!1):!0}),o},oe=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},xn=[],On=function(n,a){var o=(a==null?void 0:a.document)||document,l=(a==null?void 0:a.trapStack)||xn,f=Ge({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Bn,isKeyBackward:In},a),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},p,v=function(d,u,h){return d&&d[u]!==void 0?d[u]:f[h||u]},_=function(d){return s.containerGroups.findIndex(function(u){var h=u.container,T=u.tabbableNodes;return h.contains(d)||T.find(function(g){return g===d})})},B=function(d){var u=f[d];if(typeof u=="function"){for(var h=arguments.length,T=new Array(h>1?h-1:0),g=1;g<h;g++)T[g-1]=arguments[g];u=u.apply(void 0,T)}if(u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error("`".concat(d,"` was specified but was not a node, or did not return a node"))}var N=u;if(typeof u=="string"&&(N=o.querySelector(u),!N))throw new Error("`".concat(d,"` as selector refers to no known node"));return N},E=function(){var d=B("initialFocus");if(d===!1)return!1;if(d===void 0)if(_(o.activeElement)>=0)d=o.activeElement;else{var u=s.tabbableGroups[0],h=u&&u.firstTabbableNode;d=h||B("fallbackFocus")}if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},y=function(){if(s.containerGroups=s.containers.map(function(d){var u=_n(d,f.tabbableOptions),h=wn(d,f.tabbableOptions);return{container:d,tabbableNodes:u,focusableNodes:h,firstTabbableNode:u.length>0?u[0]:null,lastTabbableNode:u.length>0?u[u.length-1]:null,nextTabbableNode:function(g){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,m=h.findIndex(function($){return $===g});if(!(m<0))return N?h.slice(m+1).find(function($){return ue($,f.tabbableOptions)}):h.slice(0,m).reverse().find(function($){return ue($,f.tabbableOptions)})}}}),s.tabbableGroups=s.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!B("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},k=function C(d){if(d!==!1&&d!==o.activeElement){if(!d||!d.focus){C(E());return}d.focus({preventScroll:!!f.preventScroll}),s.mostRecentlyFocusedNode=d,En(d)&&d.select()}},x=function(d){var u=B("setReturnFocus",d);return u||(u===!1?!1:d)},A=function(d){var u=pe(d);if(!(_(u)>=0)){if(oe(f.clickOutsideDeactivates,d)){p.deactivate({returnFocus:f.returnFocusOnDeactivate&&!Ce(u,f.tabbableOptions)});return}oe(f.allowOutsideClick,d)||d.preventDefault()}},j=function(d){var u=pe(d),h=_(u)>=0;h||u instanceof Document?h&&(s.mostRecentlyFocusedNode=u):(d.stopImmediatePropagation(),k(s.mostRecentlyFocusedNode||E()))},L=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=pe(d);y();var T=null;if(s.tabbableGroups.length>0){var g=_(h),N=g>=0?s.containerGroups[g]:void 0;if(g<0)u?T=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:T=s.tabbableGroups[0].firstTabbableNode;else if(u){var m=Ye(s.tabbableGroups,function(ie){var S=ie.firstTabbableNode;return h===S});if(m<0&&(N.container===h||Ce(h,f.tabbableOptions)&&!ue(h,f.tabbableOptions)&&!N.nextTabbableNode(h,!1))&&(m=g),m>=0){var $=m===0?s.tabbableGroups.length-1:m-1,q=s.tabbableGroups[$];T=q.lastTabbableNode}else re(d)||(T=N.nextTabbableNode(h,!1))}else{var H=Ye(s.tabbableGroups,function(ie){var S=ie.lastTabbableNode;return h===S});if(H<0&&(N.container===h||Ce(h,f.tabbableOptions)&&!ue(h,f.tabbableOptions)&&!N.nextTabbableNode(h))&&(H=g),H>=0){var K=H===s.tabbableGroups.length-1?0:H+1,Te=s.tabbableGroups[K];T=Te.firstTabbableNode}else re(d)||(T=N.nextTabbableNode(h))}}else T=B("fallbackFocus");T&&(re(d)&&d.preventDefault(),k(T))},P=function(d){if(Nn(d)&&oe(f.escapeDeactivates,d)!==!1){d.preventDefault(),p.deactivate();return}(f.isKeyForward(d)||f.isKeyBackward(d))&&L(d,f.isKeyBackward(d))},M=function(d){var u=pe(d);_(u)>=0||oe(f.clickOutsideDeactivates,d)||oe(f.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},w=function(){if(s.active)return Ue.activateTrap(l,p),s.delayInitialFocusTimer=f.delayInitialFocus?qe(function(){k(E())}):k(E()),o.addEventListener("focusin",j,!0),o.addEventListener("mousedown",A,{capture:!0,passive:!1}),o.addEventListener("touchstart",A,{capture:!0,passive:!1}),o.addEventListener("click",M,{capture:!0,passive:!1}),o.addEventListener("keydown",P,{capture:!0,passive:!1}),p},O=function(){if(s.active)return o.removeEventListener("focusin",j,!0),o.removeEventListener("mousedown",A,!0),o.removeEventListener("touchstart",A,!0),o.removeEventListener("click",M,!0),o.removeEventListener("keydown",P,!0),p};return p={get active(){return s.active},get paused(){return s.paused},activate:function(d){if(s.active)return this;var u=v(d,"onActivate"),h=v(d,"onPostActivate"),T=v(d,"checkCanFocusTrap");T||y(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=o.activeElement,u&&u();var g=function(){T&&y(),w(),h&&h()};return T?(T(s.containers.concat()).then(g,g),this):(g(),this)},deactivate:function(d){if(!s.active)return this;var u=Ge({onDeactivate:f.onDeactivate,onPostDeactivate:f.onPostDeactivate,checkCanReturnFocus:f.checkCanReturnFocus},d);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,O(),s.active=!1,s.paused=!1,Ue.deactivateTrap(l,p);var h=v(u,"onDeactivate"),T=v(u,"onPostDeactivate"),g=v(u,"checkCanReturnFocus"),N=v(u,"returnFocus","returnFocusOnDeactivate");h&&h();var m=function(){qe(function(){N&&k(x(s.nodeFocusedBeforeActivation)),T&&T()})};return N&&g?(g(x(s.nodeFocusedBeforeActivation)).then(m,m),this):(m(),this)},pause:function(){return s.paused||!s.active?this:(s.paused=!0,O(),this)},unpause:function(){return!s.paused||!s.active?this:(s.paused=!1,y(),w(),this)},updateContainerElements:function(d){var u=[].concat(d).filter(Boolean);return s.containers=u.map(function(h){return typeof h=="string"?o.querySelector(h):h}),s.active&&y(),this}},p.updateContainerElements(n),p};/*!
8
8
  * focus-trap-vue v4.0.0
9
9
  * (c) 2022 Eduardo San Martin Morote
10
10
  * @license MIT
11
- */function Zr(r){return r}const Bn={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},In=e.defineComponent({props:Object.assign({active:{type:Boolean,default:!0}},Bn),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(r,{slots:n,emit:a}){let o;const l=e.ref(null),f=e.computed(()=>{const p=l.value;return p&&(p instanceof HTMLElement?p:p.$el)}),s=()=>o||(o=Nn(f.value,{escapeDeactivates:r.escapeDeactivates,allowOutsideClick:r.allowOutsideClick,returnFocusOnDeactivate:r.returnFocusOnDeactivate,clickOutsideDeactivates:r.clickOutsideDeactivates,onActivate:()=>{a("update:active",!0),a("activate")},onDeactivate:()=>{a("update:active",!1),a("deactivate")},onPostActivate:()=>a("postActivate"),onPostDeactivate:()=>a("postDeactivate"),initialFocus:r.initialFocus,fallbackFocus:r.fallbackFocus,tabbableOptions:r.tabbableOptions}));return e.onMounted(()=>{e.watch(()=>r.active,p=>{p&&f.value?s().activate():o&&(o.deactivate(),(!f.value||f.value.nodeType===Node.COMMENT_NODE)&&(o=null))},{immediate:!0,flush:"post"})}),e.onUnmounted(()=>{o&&o.deactivate(),o=null}),{activate(){s(),o.activate()},deactivate(){o&&o.deactivate()},renderImpl(){if(!n.default)return null;const p=n.default().filter(v=>v.type!==e.Comment);return!p||!p.length||p.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),p):e.cloneVNode(p[0],{ref:l})}}}});function Xe(){return{debounce:(n,a)=>{let o;return(...l)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{n(...l)},a)}}}}var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},be={},xn={get exports(){return be},set exports(r){be=r}};(function(r,n){var a=200,o="__lodash_hash_undefined__",l=9007199254740991,f="[object Arguments]",s="[object Array]",p="[object Boolean]",_="[object Date]",v="[object Error]",B="[object Function]",E="[object GeneratorFunction]",y="[object Map]",w="[object Number]",x="[object Object]",$="[object Promise]",j="[object RegExp]",L="[object Set]",P="[object String]",M="[object Symbol]",S="[object WeakMap]",O="[object ArrayBuffer]",k="[object DataView]",d="[object Float32Array]",u="[object Float64Array]",h="[object Int8Array]",T="[object Int16Array]",g="[object Int32Array]",N="[object Uint8Array]",m="[object Uint8ClampedArray]",A="[object Uint16Array]",q="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,Te=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,C={};C[f]=C[s]=C[O]=C[k]=C[p]=C[_]=C[d]=C[u]=C[h]=C[T]=C[g]=C[y]=C[w]=C[x]=C[j]=C[L]=C[P]=C[M]=C[N]=C[m]=C[A]=C[q]=!0,C[v]=C[B]=C[S]=!1;var pa=typeof me=="object"&&me&&me.Object===Object&&me,ma=typeof self=="object"&&self&&self.Object===Object&&self,z=pa||ma||Function("return this")(),nt=n&&!n.nodeType&&n,at=nt&&!0&&r&&!r.nodeType&&r,ba=at&&at.exports===nt;function ha(t,i){return t.set(i[0],i[1]),t}function ga(t,i){return t.add(i),t}function ya(t,i){for(var c=-1,b=t?t.length:0;++c<b&&i(t[c],c,t)!==!1;);return t}function _a(t,i){for(var c=-1,b=i.length,I=t.length;++c<b;)t[I+c]=i[c];return t}function rt(t,i,c,b){var I=-1,F=t?t.length:0;for(b&&F&&(c=t[++I]);++I<F;)c=i(c,t[I],I,t);return c}function va(t,i){for(var c=-1,b=Array(t);++c<t;)b[c]=i(c);return b}function wa(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,c=Array(t.size);return t.forEach(function(b,I){c[++i]=[I,b]}),c}function Ee(t,i){return function(c){return t(i(c))}}function ct(t){var i=-1,c=Array(t.size);return t.forEach(function(b){c[++i]=b}),c}var ka=Array.prototype,Ca=Function.prototype,he=Object.prototype,Ne=z["__core-js_shared__"],st=function(){var t=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),lt=Ca.toString,G=he.hasOwnProperty,ge=he.toString,Sa=RegExp("^"+lt.call(G).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=ba?z.Buffer:void 0,ft=z.Symbol,ut=z.Uint8Array,Ta=Ee(Object.getPrototypeOf,Object),Ea=Object.create,Na=he.propertyIsEnumerable,Ba=ka.splice,pt=Object.getOwnPropertySymbols,Ia=dt?dt.isBuffer:void 0,xa=Ee(Object.keys,Object),Be=te(z,"DataView"),ce=te(z,"Map"),Ie=te(z,"Promise"),xe=te(z,"Set"),Oe=te(z,"WeakMap"),se=te(Object,"create"),Oa=J(Be),Aa=J(ce),$a=J(Ie),Fa=J(xe),Da=J(Oe),mt=ft?ft.prototype:void 0,bt=mt?mt.valueOf:void 0;function Y(t){var i=-1,c=t?t.length:0;for(this.clear();++i<c;){var b=t[i];this.set(b[0],b[1])}}function Va(){this.__data__=se?se(null):{}}function Ma(t){return this.has(t)&&delete this.__data__[t]}function La(t){var i=this.__data__;if(se){var c=i[t];return c===o?void 0:c}return G.call(i,t)?i[t]:void 0}function Ra(t){var i=this.__data__;return se?i[t]!==void 0:G.call(i,t)}function Za(t,i){var c=this.__data__;return c[t]=se&&i===void 0?o:i,this}Y.prototype.clear=Va,Y.prototype.delete=Ma,Y.prototype.get=La,Y.prototype.has=Ra,Y.prototype.set=Za;function W(t){var i=-1,c=t?t.length:0;for(this.clear();++i<c;){var b=t[i];this.set(b[0],b[1])}}function Pa(){this.__data__=[]}function ja(t){var i=this.__data__,c=ye(i,t);if(c<0)return!1;var b=i.length-1;return c==b?i.pop():Ba.call(i,c,1),!0}function Ha(t){var i=this.__data__,c=ye(i,t);return c<0?void 0:i[c][1]}function Ka(t){return ye(this.__data__,t)>-1}function za(t,i){var c=this.__data__,b=ye(c,t);return b<0?c.push([t,i]):c[b][1]=i,this}W.prototype.clear=Pa,W.prototype.delete=ja,W.prototype.get=Ha,W.prototype.has=Ka,W.prototype.set=za;function Q(t){var i=-1,c=t?t.length:0;for(this.clear();++i<c;){var b=t[i];this.set(b[0],b[1])}}function Wa(){this.__data__={hash:new Y,map:new(ce||W),string:new Y}}function Ga(t){return _e(this,t).delete(t)}function Ua(t){return _e(this,t).get(t)}function qa(t){return _e(this,t).has(t)}function Ya(t,i){return _e(this,t).set(t,i),this}Q.prototype.clear=Wa,Q.prototype.delete=Ga,Q.prototype.get=Ua,Q.prototype.has=qa,Q.prototype.set=Ya;function ee(t){this.__data__=new W(t)}function Xa(){this.__data__=new W}function Ja(t){return this.__data__.delete(t)}function Qa(t){return this.__data__.get(t)}function er(t){return this.__data__.has(t)}function tr(t,i){var c=this.__data__;if(c instanceof W){var b=c.__data__;if(!ce||b.length<a-1)return b.push([t,i]),this;c=this.__data__=new Q(b)}return c.set(t,i),this}ee.prototype.clear=Xa,ee.prototype.delete=Ja,ee.prototype.get=Qa,ee.prototype.has=er,ee.prototype.set=tr;function nr(t,i){var c=Fe(t)||Er(t)?va(t.length,String):[],b=c.length,I=!!b;for(var F in t)(i||G.call(t,F))&&!(I&&(F=="length"||kr(F,b)))&&c.push(F);return c}function ht(t,i,c){var b=t[i];(!(G.call(t,i)&&vt(b,c))||c===void 0&&!(i in t))&&(t[i]=c)}function ye(t,i){for(var c=t.length;c--;)if(vt(t[c][0],i))return c;return-1}function ar(t,i){return t&&gt(i,De(i),t)}function Ae(t,i,c,b,I,F,R){var V;if(b&&(V=F?b(t,I,F,R):b(t)),V!==void 0)return V;if(!ve(t))return t;var Ct=Fe(t);if(Ct){if(V=_r(t),!i)return hr(t,V)}else{var ne=X(t),St=ne==B||ne==E;if(Br(t))return lr(t,i);if(ne==x||ne==f||St&&!F){if(ot(t))return F?t:{};if(V=vr(St?{}:t),!i)return gr(t,ar(V,t))}else{if(!C[ne])return F?t:{};V=wr(t,ne,Ae,i)}}R||(R=new ee);var Tt=R.get(t);if(Tt)return Tt;if(R.set(t,V),!Ct)var Et=c?yr(t):De(t);return ya(Et||t,function(Ve,we){Et&&(we=Ve,Ve=t[we]),ht(V,we,Ae(Ve,i,c,b,we,t,R))}),V}function rr(t){return ve(t)?Ea(t):{}}function or(t,i,c){var b=i(t);return Fe(t)?b:_a(b,c(t))}function ir(t){return ge.call(t)}function cr(t){if(!ve(t)||Sr(t))return!1;var i=kt(t)||ot(t)?Sa:Te;return i.test(J(t))}function sr(t){if(!_t(t))return xa(t);var i=[];for(var c in Object(t))G.call(t,c)&&c!="constructor"&&i.push(c);return i}function lr(t,i){if(i)return t.slice();var c=new t.constructor(t.length);return t.copy(c),c}function $e(t){var i=new t.constructor(t.byteLength);return new ut(i).set(new ut(t)),i}function dr(t,i){var c=i?$e(t.buffer):t.buffer;return new t.constructor(c,t.byteOffset,t.byteLength)}function fr(t,i,c){var b=i?c(it(t),!0):it(t);return rt(b,ha,new t.constructor)}function ur(t){var i=new t.constructor(t.source,K.exec(t));return i.lastIndex=t.lastIndex,i}function pr(t,i,c){var b=i?c(ct(t),!0):ct(t);return rt(b,ga,new t.constructor)}function mr(t){return bt?Object(bt.call(t)):{}}function br(t,i){var c=i?$e(t.buffer):t.buffer;return new t.constructor(c,t.byteOffset,t.length)}function hr(t,i){var c=-1,b=t.length;for(i||(i=Array(b));++c<b;)i[c]=t[c];return i}function gt(t,i,c,b){c||(c={});for(var I=-1,F=i.length;++I<F;){var R=i[I],V=b?b(c[R],t[R],R,c,t):void 0;ht(c,R,V===void 0?t[R]:V)}return c}function gr(t,i){return gt(t,yt(t),i)}function yr(t){return or(t,De,yt)}function _e(t,i){var c=t.__data__;return Cr(i)?c[typeof i=="string"?"string":"hash"]:c.map}function te(t,i){var c=wa(t,i);return cr(c)?c:void 0}var yt=pt?Ee(pt,Object):Or,X=ir;(Be&&X(new Be(new ArrayBuffer(1)))!=k||ce&&X(new ce)!=y||Ie&&X(Ie.resolve())!=$||xe&&X(new xe)!=L||Oe&&X(new Oe)!=S)&&(X=function(t){var i=ge.call(t),c=i==x?t.constructor:void 0,b=c?J(c):void 0;if(b)switch(b){case Oa:return k;case Aa:return y;case $a:return $;case Fa:return L;case Da:return S}return i});function _r(t){var i=t.length,c=t.constructor(i);return i&&typeof t[0]=="string"&&G.call(t,"index")&&(c.index=t.index,c.input=t.input),c}function vr(t){return typeof t.constructor=="function"&&!_t(t)?rr(Ta(t)):{}}function wr(t,i,c,b){var I=t.constructor;switch(i){case O:return $e(t);case p:case _:return new I(+t);case k:return dr(t,b);case d:case u:case h:case T:case g:case N:case m:case A:case q:return br(t,b);case y:return fr(t,b,c);case w:case P:return new I(t);case j:return ur(t);case L:return pr(t,b,c);case M:return mr(t)}}function kr(t,i){return i=i??l,!!i&&(typeof t=="number"||ie.test(t))&&t>-1&&t%1==0&&t<i}function Cr(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function Sr(t){return!!st&&st in t}function _t(t){var i=t&&t.constructor,c=typeof i=="function"&&i.prototype||he;return t===c}function J(t){if(t!=null){try{return lt.call(t)}catch{}try{return t+""}catch{}}return""}function Tr(t){return Ae(t,!0,!0)}function vt(t,i){return t===i||t!==t&&i!==i}function Er(t){return Nr(t)&&G.call(t,"callee")&&(!Na.call(t,"callee")||ge.call(t)==f)}var Fe=Array.isArray;function wt(t){return t!=null&&Ir(t.length)&&!kt(t)}function Nr(t){return xr(t)&&wt(t)}var Br=Ia||Ar;function kt(t){var i=ve(t)?ge.call(t):"";return i==B||i==E}function Ir(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=l}function ve(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}function xr(t){return!!t&&typeof t=="object"}function De(t){return wt(t)?nr(t):sr(t)}function Or(){return[]}function Ar(){return!1}r.exports=Tr})(xn,be);const On=be,An={key:0,class:"sidebar-header"},$n={class:"sidebar-content-container"},Fn={key:0,class:"sidebar-top"},Dn={"aria-label":"Main menu"},Vn={key:0,class:"level-primary top-items"},Mn={key:1,class:"sidebar-level-divider",role:"separator"},Ln={key:2,class:"level-primary bottom-items"},Rn=["href","target"],Zn=e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,default:()=>[]},profileItems:{type:Array,default:()=>[]},profileName:{type:String,default:""},headerHeight:{type:Number,default:60},topOffset:{type:Number,default:0},zIndex:{type:Number,default:2},open:{type:Boolean,default:!1},mobileEnabled:{type:Boolean,default:!1},mobileTopOffset:{type:Number,default:0},mobileHeaderVisible:{type:Boolean,default:!1},mobileCloseDelay:{type:Number,default:350},mobileOverlay:{type:Boolean,default:!0},mobileOverlayZIndex:{type:Number,default:null},mobileOverlayCloseOnClick:{type:Boolean,default:!0}},emits:["click","toggle"],setup(r,{emit:n}){const a=r;e.useCssVars(g=>({"4c0e97d0":e.unref(s).mobileHeight,"708c634c":e.unref(s).mobileTop,"33e4b5d8":r.zIndex,ec781464:e.unref(s).height,"6dedf60e":e.unref(s).top,c4dd133c:e.unref(_).marginTop,"273dfbea":e.unref(p).display,"38f65741":e.unref(p).minHeight,"56df801d":e.unref(v).top,e9b83ea0:e.unref(v).zIndex}));const o=e.useSlots(),l=e.computed(()=>!!o.header),f=e.computed(()=>!!o.top),s=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`})),_=e.computed(()=>({marginTop:l.value?`${a.headerHeight}px`:"0"})),v=e.computed(()=>({top:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:"0",zIndex:a.mobileOverlayZIndex!==null?a.mobileOverlayZIndex:a.zIndex>1?a.zIndex-1:1})),B=g=>On(g).map(m=>{var A,q,H;if(m){(!m.key||!((A=m.key)!=null&&A.trim()))&&(m.key=String(m.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!m.testId||!((q=m.testId)!=null&&q.trim()))&&(m.testId=String(m.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const K of m.items||[])K.parentKey=m.key,(!K.testId||!((H=K.testId)!=null&&H.trim()))&&(K.testId=String(K.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return m}),E=e.computed(()=>a.topItems.length?B(a.topItems):[]),y=e.computed(()=>a.bottomItems.length?B(a.bottomItems):[]),w=e.ref(a.open),x=g=>{var N,m;w.value!==g&&(w.value=g,n("toggle",g)),g?(N=document==null?void 0:document.body)==null||N.classList.add("kong-ui-app-sidebar-open"):(m=document==null?void 0:document.body)==null||m.classList.remove("kong-ui-app-sidebar-open"),j.value=!1},$=()=>{a.mobileOverlayCloseOnClick&&x(!1)},j=e.ref(!1),L=g=>{j.value=!0,n("click",g),setTimeout(()=>{x(!1)},a.mobileCloseDelay)};e.watch(()=>a.open,g=>{x(g)});const{debounce:P}=Xe(),M=P(()=>{w.value&&S.value!==(window==null?void 0:window.innerWidth)&&(S.value=window==null?void 0:window.innerWidth,x(!1))},200),S=e.ref(),O=e.ref(!1),k=e.ref(),d=()=>{O.value||(O.value=!0,clearTimeout(k.value),k.value=setTimeout(()=>O.value=!1,1300))},u=e.ref(null),h=e.computed(()=>w.value&&a.mobileEnabled),T=async g=>{var N,m;g?(await e.nextTick(),await new Promise(A=>setTimeout(A,300)),(N=u.value)==null||N.activate()):(m=u.value)==null||m.deactivate()};return e.watch(h,async g=>{g?await T(!0):await T(!1)},{immediate:!0}),e.onMounted(()=>{S.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)}),(g,N)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[w.value&&r.mobileOverlay&&r.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:$})):e.createCommentVNode("",!0),e.createVNode(e.unref(In),{ref_key:"focusTrap",ref:u,active:!1,"allow-outside-click":"","fallback-focus":".kong-ui-app-sidebar"},{default:e.withCtx(()=>[e.createElementVNode("aside",{class:e.normalizeClass(["kong-ui-app-sidebar",{"sidebar-open":w.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",An,[e.renderSlot(g.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",$n,[e.unref(f)?(e.openBlock(),e.createElementBlock("div",Fn,[e.renderSlot(g.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Dn,[e.unref(E).length?(e.openBlock(),e.createElementBlock("ul",Vn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E),m=>(e.openBlock(),e.createBlock(Le,{key:m.name,item:m,onClick:L},null,8,["item"]))),128))])):e.createCommentVNode("",!0),e.unref(E).length&&e.unref(y).length?(e.openBlock(),e.createElementBlock("div",Mn)):e.createCommentVNode("",!0),e.unref(y).length?(e.openBlock(),e.createElementBlock("ul",Ln,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),m=>(e.openBlock(),e.createBlock(Le,{key:m.name,item:m,onClick:L},null,8,["item"]))),128))])):e.createCommentVNode("",!0)])]),r.profileName||r.profileItems.length?(e.openBlock(),e.createBlock(nn,{key:1,class:"sidebar-profile-menu","item-count":r.profileItems.length,name:r.profileName},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.profileItems,m=>(e.openBlock(),e.createBlock(e.unref(ae.KDropdownItem),{key:m.name,class:e.normalizeClass([{"has-divider":m.hasDivider},{"external-profile-dropdown-link":(m.external||m.newWindow)&&typeof m.to=="string"}]),"has-divider":m.hasDivider,item:(m.external||m.newWindow)&&typeof m.to=="string"?void 0:{label:m.name,to:m.to},onClick:A=>L(m)},{default:e.withCtx(()=>[(m.external||m.newWindow)&&typeof m.to=="string"?(e.openBlock(),e.createElementBlock("a",{key:0,class:"sidebar-item-external-link",href:m.to,target:m.newWindow?"_blank":void 0},[e.createTextVNode(e.toDisplayString(m.name)+" ",1),m.newWindow?(e.openBlock(),e.createBlock(e.unref(ae.KIcon),{key:0,color:"var(--black-70, rgba(0,0,0,0.7))",icon:"externalLink",size:"20",viewBox:"0 0 20 20"})):e.createCommentVNode("",!0)],8,Rn)):e.createCommentVNode("",!0)]),_:2},1032,["class","has-divider","item","onClick"]))),128))]),_:1},8,["item-count","name"])):e.createCommentVNode("",!0)],2)]),_:3},512)],64))}}),Pr="",jr="",Je=Z(Zn,[["__scopeId","data-v-c68b89f2"]]),Se=r=>(e.pushScopeId("data-v-33b3f7c3"),r=r(),e.popScopeId(),r),Pn=["aria-label","onClick"],jn=[Se(()=>e.createElementVNode("span",{class:"line"},null,-1)),Se(()=>e.createElementVNode("span",{class:"line"},null,-1)),Se(()=>e.createElementVNode("span",{class:"line"},null,-1))],Hn=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,f=>{o.value=f}),(f,s)=>(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"])},jn,10,Pn))}}),Wr="",Qe=Z(Hn,[["__scopeId","data-v-33b3f7c3"]]),Kn=r=>(e.pushScopeId("data-v-e4c3e9d9"),r=r(),e.popScopeId(),r),zn={id:"kong-ui-app-layout-notification"},Wn={class:"mobile-logo"},Gn={key:0,class:"navbar-logo"},Un={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},qn={class:"kong-ui-app-layout-content"},Yn=Kn(()=>e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),Xn=e.defineComponent({__name:"AppLayout",props:{hideDefaultSlot:{type:Boolean,default:!1},navbarHidden:{type:Boolean,default:!1},sidebarHidden:{type:Boolean,default:!1},sidebarOpen:{type:Boolean,default:!1},sidebarTopItems:{type:Array,default:()=>[]},sidebarBottomItems:{type:Array,default:()=>[]},sidebarProfileItems:{type:Array,default:()=>[]},sidebarProfileName:{type:String,default:""}},emits:["sidebar-click"],setup(r,{emit:n}){const a=r;e.useCssVars(S=>({c32327b4:e.unref($),"9f45c4ce":e.unref(j)}));const o=e.useSlots(),l=e.reactive({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"])}),f=e.computed(()=>a.hideDefaultSlot),s=e.reactive({hidden:e.computed(()=>a.navbarHidden)}),p=e.reactive({topItems:e.computed(()=>a.sidebarTopItems),bottomItems:e.computed(()=>a.sidebarBottomItems),profileItems:e.computed(()=>a.sidebarProfileItems),profileName:e.computed(()=>a.sidebarProfileName),open:e.computed(()=>a.sidebarOpen),hidden:e.computed(()=>a.sidebarHidden)}),_=S=>{n("sidebar-click",S)},v=e.ref(!1),B=S=>{v.value=S};e.watchEffect(()=>{v.value=e.toRef(p,"open").value||!1});const E=e.ref(0),y=e.ref(60),w=e.ref(0),x=e.computed(()=>s.hidden?w.value:y.value+w.value),$=e.computed(()=>`${x.value}px`),j=e.computed(()=>p.hidden||s.hidden?"0":"16px"),{debounce:L}=Xe(),P=L((S=!1)=>{if(S||E.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&&(w.value=O.offsetHeight)}},200),M=e.ref();return e.onMounted(()=>{var O,k;(O=document==null?void 0:document.body)==null||O.classList.add("kong-ui-app-layout-body"),(k=document==null?void 0:document.documentElement)==null||k.classList.add("kong-ui-app-layout-html"),E.value=window==null?void 0:window.innerWidth,P(!0);const S=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");S&&(M.value=new ResizeObserver(d=>{for(const u of d){const h=u.contentRect.height;w.value!==h&&(w.value=h)}}),M.value.observe(S)),window.addEventListener("resize",P)}),e.onBeforeUnmount(()=>{M.value&&M.value.disconnect(),window.removeEventListener("resize",P)}),(S,O)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":s.hidden},{"sidebar-hidden":p.hidden}]])},[e.createElementVNode("div",zn,[e.renderSlot(S.$slots,"notification",{},void 0,!0)]),s.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me,{key:String(p.hidden),"left-offset":p.hidden?0:void 0,"top-offset":w.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qe,{key:0,active:v.value,onToggle:B},null,8,["active"]))]),default:e.withCtx(()=>[e.renderSlot(S.$slots,"navbar",{},void 0,!0)]),_:2},[l.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",Wn,[e.renderSlot(S.$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",Gn,[e.renderSlot(S.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}: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":y.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":e.unref(x),open:v.value,"profile-items":p.profileItems,"profile-name":p.profileName,"top-items":p.topItems,"top-offset":w.value,onClick:_,onToggle:B},e.createSlots({_:2},[l.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,l.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(S.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0]),1032,["bottom-items","header-height","mobile-top-offset","open","profile-items","profile-name","top-items","top-offset"])),e.createElementVNode("main",Un,[e.createElementVNode("div",qn,[Yn,e.renderSlot(S.$slots,"app-error",{},void 0,!0),e.unref(f)?e.createCommentVNode("",!0):e.renderSlot(S.$slots,"default",{key:0},void 0,!0)])])],2))}}),Gr="",Ur="",et=Z(Xn,[["__scopeId","data-v-e4c3e9d9"]]),Jn=e.defineComponent({__name:"NavbarDropdownMenu",props:{options:{type:Array,default:()=>[]},tooltip:{type:String,default:""},width:{type:String,default:"175"},disabled:{type:Boolean,default:!1}},emits:["change"],setup(r,{emit:n}){var f;const a=r,o=e.ref(((f=a.options)==null?void 0:f.filter(s=>!!s.selected)[0])||a.options[0]),l=s=>{o.value=s,n("change",o.value)};return(s,p)=>{const _=e.resolveComponent("KDropdownItem"),v=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createBlock(v,{appearance:"selectionMenu",class:"top-bar-dropdown-menu",disabled:r.disabled,"disabled-tooltip":r.tooltip,"kpop-attributes":{placement:"bottomStart",disabled:r.disabled},label:o.value.label,width:r.width,onChange:p[0]||(p[0]=B=>l(B))},{items:e.withCtx(({handleSelection:B})=>[e.renderSlot(s.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,E=>(e.openBlock(),e.createBlock(_,{key:E.value,"data-testid":"select-"+E.value,selected:o.value.value===E.value,onClick:y=>B(E)},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{option:E},()=>[e.createTextVNode(e.toDisplayString(E.label),1)],!0)]),_:2},1032,["data-testid","selected","onClick"]))),128))],!0)]),_:3},8,["disabled","disabled-tooltip","kpop-attributes","label","width"])}}}),qr="",Qn=Z(Jn,[["__scopeId","data-v-b5a37136"]]),ea={},ta={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"},na=[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 aa(r,n){return e.openBlock(),e.createElementBlock("svg",ta,na)}const ra=Z(ea,[["render",aa]]),tt=r=>(e.pushScopeId("data-v-ff05f71e"),r=r(),e.popScopeId(),r),oa={class:"kong-ui-app-error"},ia={class:"banana-icon"},ca={class:"kong-ui-app-error-content"},sa=tt(()=>e.createElementVNode("h2",null,"An unexpected error has occurred",-1)),la=tt(()=>e.createElementVNode("p",null,[e.createTextVNode("Go back to the previous page or "),e.createElementVNode("a",{href:"/"},"return home"),e.createTextVNode(".")],-1)),da=e.defineComponent({__name:"AppError",setup(r){return(n,a)=>(e.openBlock(),e.createElementBlock("section",oa,[e.createElementVNode("div",ia,[e.createVNode(ra)]),e.createElementVNode("div",ca,[e.renderSlot(n.$slots,"default",{},()=>[sa,la],!0)])]))}}),Xr="",Jr="",fa=Z(da,[["__scopeId","data-v-ff05f71e"]]),ua={install:(r,n={})=>{r.component(n.name||"AppLayout",et)}};D.AppError=fa,D.AppLayout=et,D.AppNavbar=Me,D.AppSidebar=Je,D.NavbarDropdownMenu=Qn,D.SidebarToggle=Qe,D.default=ua,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
11
+ */function Kr(r){return r}const $n={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},An=e.defineComponent({props:Object.assign({active:{type:Boolean,default:!0}},$n),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(r,{slots:n,emit:a}){let o;const l=e.ref(null),f=e.computed(()=>{const p=l.value;return p&&(p instanceof HTMLElement?p:p.$el)}),s=()=>o||(o=On(f.value,{escapeDeactivates:r.escapeDeactivates,allowOutsideClick:r.allowOutsideClick,returnFocusOnDeactivate:r.returnFocusOnDeactivate,clickOutsideDeactivates:r.clickOutsideDeactivates,onActivate:()=>{a("update:active",!0),a("activate")},onDeactivate:()=>{a("update:active",!1),a("deactivate")},onPostActivate:()=>a("postActivate"),onPostDeactivate:()=>a("postDeactivate"),initialFocus:r.initialFocus,fallbackFocus:r.fallbackFocus,tabbableOptions:r.tabbableOptions}));return e.onMounted(()=>{e.watch(()=>r.active,p=>{p&&f.value?s().activate():o&&(o.deactivate(),(!f.value||f.value.nodeType===Node.COMMENT_NODE)&&(o=null))},{immediate:!0,flush:"post"})}),e.onUnmounted(()=>{o&&o.deactivate(),o=null}),{activate(){s(),o.activate()},deactivate(){o&&o.deactivate()},renderImpl(){if(!n.default)return null;const p=n.default().filter(_=>_.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 me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},be={},Fn={get exports(){return be},set exports(r){be=r}};(function(r,n){var a=200,o="__lodash_hash_undefined__",l=9007199254740991,f="[object Arguments]",s="[object Array]",p="[object Boolean]",v="[object Date]",_="[object Error]",B="[object Function]",E="[object GeneratorFunction]",y="[object Map]",k="[object Number]",x="[object Object]",A="[object Promise]",j="[object RegExp]",L="[object Set]",P="[object String]",M="[object Symbol]",w="[object WeakMap]",O="[object ArrayBuffer]",C="[object DataView]",d="[object Float32Array]",u="[object Float64Array]",h="[object Int8Array]",T="[object Int16Array]",g="[object Int32Array]",N="[object Uint8Array]",m="[object Uint8ClampedArray]",$="[object Uint16Array]",q="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,Te=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,S={};S[f]=S[s]=S[O]=S[C]=S[p]=S[v]=S[d]=S[u]=S[h]=S[T]=S[g]=S[y]=S[k]=S[x]=S[j]=S[L]=S[P]=S[M]=S[N]=S[m]=S[$]=S[q]=!0,S[_]=S[B]=S[w]=!1;var ga=typeof me=="object"&&me&&me.Object===Object&&me,ya=typeof self=="object"&&self&&self.Object===Object&&self,z=ga||ya||Function("return this")(),nt=n&&!n.nodeType&&n,at=nt&&!0&&r&&!r.nodeType&&r,va=at&&at.exports===nt;function _a(t,i){return t.set(i[0],i[1]),t}function wa(t,i){return t.add(i),t}function ka(t,i){for(var c=-1,b=t?t.length:0;++c<b&&i(t[c],c,t)!==!1;);return t}function Ca(t,i){for(var c=-1,b=i.length,I=t.length;++c<b;)t[I+c]=i[c];return t}function rt(t,i,c,b){var I=-1,F=t?t.length:0;for(b&&F&&(c=t[++I]);++I<F;)c=i(c,t[I],I,t);return c}function Sa(t,i){for(var c=-1,b=Array(t);++c<t;)b[c]=i(c);return b}function Ta(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,c=Array(t.size);return t.forEach(function(b,I){c[++i]=[I,b]}),c}function Ee(t,i){return function(c){return t(i(c))}}function ct(t){var i=-1,c=Array(t.size);return t.forEach(function(b){c[++i]=b}),c}var Ea=Array.prototype,Na=Function.prototype,he=Object.prototype,Ne=z["__core-js_shared__"],st=function(){var t=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),lt=Na.toString,G=he.hasOwnProperty,ge=he.toString,Ba=RegExp("^"+lt.call(G).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=va?z.Buffer:void 0,ft=z.Symbol,ut=z.Uint8Array,Ia=Ee(Object.getPrototypeOf,Object),xa=Object.create,Oa=he.propertyIsEnumerable,$a=Ea.splice,pt=Object.getOwnPropertySymbols,Aa=dt?dt.isBuffer:void 0,Fa=Ee(Object.keys,Object),Be=te(z,"DataView"),ce=te(z,"Map"),Ie=te(z,"Promise"),xe=te(z,"Set"),Oe=te(z,"WeakMap"),se=te(Object,"create"),Da=J(Be),Va=J(ce),Ma=J(Ie),La=J(xe),Ra=J(Oe),mt=ft?ft.prototype:void 0,bt=mt?mt.valueOf:void 0;function Y(t){var i=-1,c=t?t.length:0;for(this.clear();++i<c;){var b=t[i];this.set(b[0],b[1])}}function Za(){this.__data__=se?se(null):{}}function Pa(t){return this.has(t)&&delete this.__data__[t]}function ja(t){var i=this.__data__;if(se){var c=i[t];return c===o?void 0:c}return G.call(i,t)?i[t]:void 0}function Ha(t){var i=this.__data__;return se?i[t]!==void 0:G.call(i,t)}function Ka(t,i){var c=this.__data__;return c[t]=se&&i===void 0?o:i,this}Y.prototype.clear=Za,Y.prototype.delete=Pa,Y.prototype.get=ja,Y.prototype.has=Ha,Y.prototype.set=Ka;function W(t){var i=-1,c=t?t.length:0;for(this.clear();++i<c;){var b=t[i];this.set(b[0],b[1])}}function za(){this.__data__=[]}function Wa(t){var i=this.__data__,c=ye(i,t);if(c<0)return!1;var b=i.length-1;return c==b?i.pop():$a.call(i,c,1),!0}function Ga(t){var i=this.__data__,c=ye(i,t);return c<0?void 0:i[c][1]}function Ua(t){return ye(this.__data__,t)>-1}function qa(t,i){var c=this.__data__,b=ye(c,t);return b<0?c.push([t,i]):c[b][1]=i,this}W.prototype.clear=za,W.prototype.delete=Wa,W.prototype.get=Ga,W.prototype.has=Ua,W.prototype.set=qa;function Q(t){var i=-1,c=t?t.length:0;for(this.clear();++i<c;){var b=t[i];this.set(b[0],b[1])}}function Ya(){this.__data__={hash:new Y,map:new(ce||W),string:new Y}}function Xa(t){return ve(this,t).delete(t)}function Ja(t){return ve(this,t).get(t)}function Qa(t){return ve(this,t).has(t)}function er(t,i){return ve(this,t).set(t,i),this}Q.prototype.clear=Ya,Q.prototype.delete=Xa,Q.prototype.get=Ja,Q.prototype.has=Qa,Q.prototype.set=er;function ee(t){this.__data__=new W(t)}function tr(){this.__data__=new W}function nr(t){return this.__data__.delete(t)}function ar(t){return this.__data__.get(t)}function rr(t){return this.__data__.has(t)}function or(t,i){var c=this.__data__;if(c instanceof W){var b=c.__data__;if(!ce||b.length<a-1)return b.push([t,i]),this;c=this.__data__=new Q(b)}return c.set(t,i),this}ee.prototype.clear=tr,ee.prototype.delete=nr,ee.prototype.get=ar,ee.prototype.has=rr,ee.prototype.set=or;function ir(t,i){var c=Fe(t)||xr(t)?Sa(t.length,String):[],b=c.length,I=!!b;for(var F in t)(i||G.call(t,F))&&!(I&&(F=="length"||Er(F,b)))&&c.push(F);return c}function ht(t,i,c){var b=t[i];(!(G.call(t,i)&&_t(b,c))||c===void 0&&!(i in t))&&(t[i]=c)}function ye(t,i){for(var c=t.length;c--;)if(_t(t[c][0],i))return c;return-1}function cr(t,i){return t&&gt(i,De(i),t)}function $e(t,i,c,b,I,F,R){var V;if(b&&(V=F?b(t,I,F,R):b(t)),V!==void 0)return V;if(!_e(t))return t;var Ct=Fe(t);if(Ct){if(V=Cr(t),!i)return _r(t,V)}else{var ne=X(t),St=ne==B||ne==E;if($r(t))return pr(t,i);if(ne==x||ne==f||St&&!F){if(ot(t))return F?t:{};if(V=Sr(St?{}:t),!i)return wr(t,cr(V,t))}else{if(!S[ne])return F?t:{};V=Tr(t,ne,$e,i)}}R||(R=new ee);var Tt=R.get(t);if(Tt)return Tt;if(R.set(t,V),!Ct)var Et=c?kr(t):De(t);return ka(Et||t,function(Ve,we){Et&&(we=Ve,Ve=t[we]),ht(V,we,$e(Ve,i,c,b,we,t,R))}),V}function sr(t){return _e(t)?xa(t):{}}function lr(t,i,c){var b=i(t);return Fe(t)?b:Ca(b,c(t))}function dr(t){return ge.call(t)}function fr(t){if(!_e(t)||Br(t))return!1;var i=kt(t)||ot(t)?Ba:Te;return i.test(J(t))}function ur(t){if(!vt(t))return Fa(t);var i=[];for(var c in Object(t))G.call(t,c)&&c!="constructor"&&i.push(c);return i}function pr(t,i){if(i)return t.slice();var c=new t.constructor(t.length);return t.copy(c),c}function Ae(t){var i=new t.constructor(t.byteLength);return new ut(i).set(new ut(t)),i}function mr(t,i){var c=i?Ae(t.buffer):t.buffer;return new t.constructor(c,t.byteOffset,t.byteLength)}function br(t,i,c){var b=i?c(it(t),!0):it(t);return rt(b,_a,new t.constructor)}function hr(t){var i=new t.constructor(t.source,K.exec(t));return i.lastIndex=t.lastIndex,i}function gr(t,i,c){var b=i?c(ct(t),!0):ct(t);return rt(b,wa,new t.constructor)}function yr(t){return bt?Object(bt.call(t)):{}}function vr(t,i){var c=i?Ae(t.buffer):t.buffer;return new t.constructor(c,t.byteOffset,t.length)}function _r(t,i){var c=-1,b=t.length;for(i||(i=Array(b));++c<b;)i[c]=t[c];return i}function gt(t,i,c,b){c||(c={});for(var I=-1,F=i.length;++I<F;){var R=i[I],V=b?b(c[R],t[R],R,c,t):void 0;ht(c,R,V===void 0?t[R]:V)}return c}function wr(t,i){return gt(t,yt(t),i)}function kr(t){return lr(t,De,yt)}function ve(t,i){var c=t.__data__;return Nr(i)?c[typeof i=="string"?"string":"hash"]:c.map}function te(t,i){var c=Ta(t,i);return fr(c)?c:void 0}var yt=pt?Ee(pt,Object):Dr,X=dr;(Be&&X(new Be(new ArrayBuffer(1)))!=C||ce&&X(new ce)!=y||Ie&&X(Ie.resolve())!=A||xe&&X(new xe)!=L||Oe&&X(new Oe)!=w)&&(X=function(t){var i=ge.call(t),c=i==x?t.constructor:void 0,b=c?J(c):void 0;if(b)switch(b){case Da:return C;case Va:return y;case Ma:return A;case La:return L;case Ra:return w}return i});function Cr(t){var i=t.length,c=t.constructor(i);return i&&typeof t[0]=="string"&&G.call(t,"index")&&(c.index=t.index,c.input=t.input),c}function Sr(t){return typeof t.constructor=="function"&&!vt(t)?sr(Ia(t)):{}}function Tr(t,i,c,b){var I=t.constructor;switch(i){case O:return Ae(t);case p:case v:return new I(+t);case C:return mr(t,b);case d:case u:case h:case T:case g:case N:case m:case $:case q:return vr(t,b);case y:return br(t,b,c);case k:case P:return new I(t);case j:return hr(t);case L:return gr(t,b,c);case M:return yr(t)}}function Er(t,i){return i=i??l,!!i&&(typeof t=="number"||ie.test(t))&&t>-1&&t%1==0&&t<i}function Nr(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function Br(t){return!!st&&st in t}function vt(t){var i=t&&t.constructor,c=typeof i=="function"&&i.prototype||he;return t===c}function J(t){if(t!=null){try{return lt.call(t)}catch{}try{return t+""}catch{}}return""}function Ir(t){return $e(t,!0,!0)}function _t(t,i){return t===i||t!==t&&i!==i}function xr(t){return Or(t)&&G.call(t,"callee")&&(!Oa.call(t,"callee")||ge.call(t)==f)}var Fe=Array.isArray;function wt(t){return t!=null&&Ar(t.length)&&!kt(t)}function Or(t){return Fr(t)&&wt(t)}var $r=Aa||Vr;function kt(t){var i=_e(t)?ge.call(t):"";return i==B||i==E}function Ar(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 Fr(t){return!!t&&typeof t=="object"}function De(t){return wt(t)?ir(t):ur(t)}function Dr(){return[]}function Vr(){return!1}r.exports=Ir})(Fn,be);const Dn=be,Vn={key:0,class:"sidebar-header"},Mn={class:"sidebar-content-container"},Ln={key:0,class:"sidebar-top"},Rn={"aria-label":"Main menu"},Zn={key:0,class:"level-primary top-items"},Pn={key:1,class:"sidebar-level-divider",role:"separator"},jn={key:2,class:"level-primary bottom-items"},Hn=["href","target"],Kn=e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,default:()=>[]},profileItems:{type:Array,default:()=>[]},profileName:{type:String,default:""},headerHeight:{type:Number,default:60},topOffset:{type:Number,default:0},zIndex:{type:Number,default:2},open:{type:Boolean,default:!1},mobileEnabled:{type:Boolean,default:!1},mobileTopOffset:{type:Number,default:0},mobileHeaderVisible:{type:Boolean,default:!1},mobileCloseDelay:{type:Number,default:350},mobileOverlay:{type:Boolean,default:!0},mobileOverlayZIndex:{type:Number,default:null},mobileOverlayCloseOnClick:{type:Boolean,default:!0}},emits:["click","toggle"],setup(r,{emit:n}){const a=r;e.useCssVars(g=>({"0d88789a":e.unref(s).mobileHeight,"6ef946c2":e.unref(s).mobileTop,"6c5400ce":r.zIndex,"3d7e93d0":e.unref(s).height,"6ad02a04":e.unref(s).top,cb18ab50:e.unref(v).marginTop,"7ebabc34":e.unref(p).display,b777a5ea:e.unref(p).minHeight,"58eb8cda":e.unref(_).top,"2a882b7a":e.unref(_).zIndex}));const o=e.useSlots(),l=e.computed(()=>!!o.header),f=e.computed(()=>!!o.top),s=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"})),_=e.computed(()=>({top:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:"0",zIndex:a.mobileOverlayZIndex!==null?a.mobileOverlayZIndex:a.zIndex>1?a.zIndex-1:1})),B=g=>Dn(g).map(m=>{var $,q,H;if(m){(!m.key||!(($=m.key)!=null&&$.trim()))&&(m.key=String(m.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!m.testId||!((q=m.testId)!=null&&q.trim()))&&(m.testId=String(m.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const K of m.items||[])K.parentKey=m.key,(!K.testId||!((H=K.testId)!=null&&H.trim()))&&(K.testId=String(K.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return m}),E=e.computed(()=>a.topItems.length?B(a.topItems):[]),y=e.computed(()=>a.bottomItems.length?B(a.bottomItems):[]),k=e.ref(a.open),x=g=>{var N,m;k.value!==g&&(k.value=g,n("toggle",g)),g?(N=document==null?void 0:document.body)==null||N.classList.add("kong-ui-app-sidebar-open"):(m=document==null?void 0:document.body)==null||m.classList.remove("kong-ui-app-sidebar-open"),j.value=!1},A=()=>{a.mobileOverlayCloseOnClick&&x(!1)},j=e.ref(!1),L=g=>{j.value=!0,n("click",g),setTimeout(()=>{x(!1)},a.mobileCloseDelay)};e.watch(()=>a.open,g=>{x(g)});const{debounce:P}=Xe(),M=P(()=>{k.value&&w.value!==(window==null?void 0:window.innerWidth)&&(w.value=window==null?void 0:window.innerWidth,x(!1))},200),w=e.ref(),O=e.ref(!1),C=e.ref(),d=()=>{O.value||(O.value=!0,clearTimeout(C.value),C.value=setTimeout(()=>O.value=!1,1300))},u=e.ref(null),h=e.computed(()=>k.value&&a.mobileEnabled),T=async g=>{var N,m;g?(await e.nextTick(),await new Promise($=>setTimeout($,300)),(N=u.value)==null||N.activate()):(m=u.value)==null||m.deactivate()};return e.watch(h,async g=>{g?await T(!0):await T(!1)},{immediate:!0}),e.onMounted(()=>{w.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)}),(g,N)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[k.value&&r.mobileOverlay&&r.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:A})):e.createCommentVNode("",!0),e.createVNode(e.unref(An),{ref_key:"focusTrap",ref:u,active:!1,"allow-outside-click":"","fallback-focus":".kong-ui-app-sidebar"},{default:e.withCtx(()=>[e.createElementVNode("aside",{class:e.normalizeClass(["kong-ui-app-sidebar",{"sidebar-open":k.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",Vn,[e.renderSlot(g.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Mn,[e.unref(f)?(e.openBlock(),e.createElementBlock("div",Ln,[e.renderSlot(g.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Rn,[e.unref(E).length?(e.openBlock(),e.createElementBlock("ul",Zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E),m=>(e.openBlock(),e.createBlock(Le,{key:m.name,item:m,onClick:L},null,8,["item"]))),128))])):e.createCommentVNode("",!0),e.unref(E).length&&e.unref(y).length?(e.openBlock(),e.createElementBlock("div",Pn)):e.createCommentVNode("",!0),e.unref(y).length?(e.openBlock(),e.createElementBlock("ul",jn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),m=>(e.openBlock(),e.createBlock(Le,{key:m.name,item:m,onClick:L},null,8,["item"]))),128))])):e.createCommentVNode("",!0)])]),r.profileName||r.profileItems.length?(e.openBlock(),e.createBlock(cn,{key:1,class:"sidebar-profile-menu","item-count":r.profileItems.length,name:r.profileName},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.profileItems,m=>(e.openBlock(),e.createBlock(e.unref(ae.KDropdownItem),{key:m.name,class:e.normalizeClass([{"has-divider":m.hasDivider},{"external-profile-dropdown-link":(m.external||m.newWindow)&&typeof m.to=="string"}]),"has-divider":m.hasDivider,item:(m.external||m.newWindow)&&typeof m.to=="string"?void 0:{label:m.name,to:m.to},onClick:$=>L(m)},{default:e.withCtx(()=>[(m.external||m.newWindow)&&typeof m.to=="string"?(e.openBlock(),e.createElementBlock("a",{key:0,class:"sidebar-item-external-link",href:m.to,target:m.newWindow?"_blank":void 0},[e.createTextVNode(e.toDisplayString(m.name)+" ",1),m.newWindow?(e.openBlock(),e.createBlock(e.unref(ae.KIcon),{key:0,color:"var(--black-70, rgba(0,0,0,0.7))",icon:"externalLink",size:"20",viewBox:"0 0 20 20"})):e.createCommentVNode("",!0)],8,Hn)):e.createCommentVNode("",!0)]),_:2},1032,["class","has-divider","item","onClick"]))),128))]),_:1},8,["item-count","name"])):e.createCommentVNode("",!0)],2)]),_:3},512)],64))}}),zr="",Wr="",Je=Z(Kn,[["__scopeId","data-v-fe465cf7"]]),Se=r=>(e.pushScopeId("data-v-33b3f7c3"),r=r(),e.popScopeId(),r),zn=["aria-label","onClick"],Wn=[Se(()=>e.createElementVNode("span",{class:"line"},null,-1)),Se(()=>e.createElementVNode("span",{class:"line"},null,-1)),Se(()=>e.createElementVNode("span",{class:"line"},null,-1))],Gn=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,f=>{o.value=f}),(f,s)=>(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"])},Wn,10,zn))}}),Yr="",Qe=Z(Gn,[["__scopeId","data-v-33b3f7c3"]]),Un=r=>(e.pushScopeId("data-v-c8f90c1e"),r=r(),e.popScopeId(),r),qn={id:"kong-ui-app-layout-notification"},Yn={class:"mobile-logo"},Xn={key:0,class:"navbar-logo"},Jn={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},Qn={class:"kong-ui-app-layout-content"},ea=Un(()=>e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),ta=e.defineComponent({__name:"AppLayout",props:{hideDefaultSlot:{type:Boolean,default:!1},navbarHidden:{type:Boolean,default:!1},sidebarHidden:{type:Boolean,default:!1},sidebarOpen:{type:Boolean,default:!1},sidebarTopItems:{type:Array,default:()=>[]},sidebarBottomItems:{type:Array,default:()=>[]},sidebarProfileItems:{type:Array,default:()=>[]},sidebarProfileName:{type:String,default:""}},emits:["sidebar-click"],setup(r,{emit:n}){const a=r;e.useCssVars(w=>({aa60aac2:e.unref(A),"3ae158d2":e.unref(j)}));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"])}),f=e.computed(()=>a.hideDefaultSlot),s=e.reactive({hidden:e.computed(()=>a.navbarHidden)}),p=e.reactive({topItems:e.computed(()=>a.sidebarTopItems),bottomItems:e.computed(()=>a.sidebarBottomItems),profileItems:e.computed(()=>a.sidebarProfileItems),profileName:e.computed(()=>a.sidebarProfileName),open:e.computed(()=>a.sidebarOpen),hidden:e.computed(()=>a.sidebarHidden)}),v=w=>{n("sidebar-click",w)},_=e.ref(!1),B=w=>{_.value=w};e.watchEffect(()=>{_.value=e.toRef(p,"open").value||!1});const E=e.ref(0),y=e.ref(60),k=e.ref(0),x=e.computed(()=>s.hidden?k.value:y.value+k.value),A=e.computed(()=>`${x.value}px`),j=e.computed(()=>p.hidden||s.hidden?"0":"16px"),{debounce:L}=Xe(),P=L((w=!1)=>{if(w||E.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&&(k.value=O.offsetHeight)}},200),M=e.ref();return e.onMounted(()=>{var O,C;(O=document==null?void 0:document.body)==null||O.classList.add("kong-ui-app-layout-body"),(C=document==null?void 0:document.documentElement)==null||C.classList.add("kong-ui-app-layout-html"),E.value=window==null?void 0:window.innerWidth,P(!0);const w=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");w&&(M.value=new ResizeObserver(d=>{for(const u of d){const h=u.contentRect.height;k.value!==h&&(k.value=h)}}),M.value.observe(w)),window.addEventListener("resize",P)}),e.onBeforeUnmount(()=>{M.value&&M.value.disconnect(),window.removeEventListener("resize",P)}),(w,O)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":s.hidden},{"sidebar-hidden":p.hidden}]])},[e.createElementVNode("div",qn,[e.renderSlot(w.$slots,"notification",{},void 0,!0)]),s.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me,{key:String(p.hidden),"left-offset":p.hidden?0:void 0,"top-offset":k.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qe,{key:0,active:_.value,onToggle:B},null,8,["active"]))]),_:2},[l.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",Yn,[e.renderSlot(w.$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",Xn,[e.renderSlot(w.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,l.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(w.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,l.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(w.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,l.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(w.$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":y.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":e.unref(x),open:_.value,"profile-items":p.profileItems,"profile-name":p.profileName,"top-items":p.topItems,"top-offset":k.value,onClick:v,onToggle:B},e.createSlots({_:2},[l.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(w.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,l.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(w.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0]),1032,["bottom-items","header-height","mobile-top-offset","open","profile-items","profile-name","top-items","top-offset"])),e.createElementVNode("main",Jn,[e.createElementVNode("div",Qn,[ea,e.renderSlot(w.$slots,"app-error",{},void 0,!0),e.unref(f)?e.createCommentVNode("",!0):e.renderSlot(w.$slots,"default",{key:0},void 0,!0)])])],2))}}),Xr="",Jr="",et=Z(ta,[["__scopeId","data-v-c8f90c1e"]]),na=e.defineComponent({__name:"NavbarDropdownMenu",props:{options:{type:Array,default:()=>[]},tooltip:{type:String,default:""},width:{type:String,default:"175"},disabled:{type:Boolean,default:!1}},emits:["change"],setup(r,{emit:n}){var f;const a=r,o=e.ref(((f=a.options)==null?void 0:f.filter(s=>!!s.selected)[0])||a.options[0]),l=s=>{o.value=s,n("change",o.value)};return(s,p)=>{const v=e.resolveComponent("KDropdownItem"),_=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createBlock(_,{appearance:"selectionMenu",class:"top-bar-dropdown-menu",disabled:r.disabled,"disabled-tooltip":r.tooltip,"kpop-attributes":{placement:"bottomStart",disabled:r.disabled},label:o.value.label,width:r.width,onChange:p[0]||(p[0]=B=>l(B))},{items:e.withCtx(({handleSelection:B})=>[e.renderSlot(s.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,E=>(e.openBlock(),e.createBlock(v,{key:E.value,"data-testid":"select-"+E.value,selected:o.value.value===E.value,onClick:y=>B(E)},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{option:E},()=>[e.createTextVNode(e.toDisplayString(E.label),1)],!0)]),_:2},1032,["data-testid","selected","onClick"]))),128))],!0)]),_:3},8,["disabled","disabled-tooltip","kpop-attributes","label","width"])}}}),Qr="",aa=Z(na,[["__scopeId","data-v-b5a37136"]]),ra={},oa={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"},ia=[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 ca(r,n){return e.openBlock(),e.createElementBlock("svg",oa,ia)}const sa=Z(ra,[["render",ca]]),tt=r=>(e.pushScopeId("data-v-ff05f71e"),r=r(),e.popScopeId(),r),la={class:"kong-ui-app-error"},da={class:"banana-icon"},fa={class:"kong-ui-app-error-content"},ua=tt(()=>e.createElementVNode("h2",null,"An unexpected error has occurred",-1)),pa=tt(()=>e.createElementVNode("p",null,[e.createTextVNode("Go back to the previous page or "),e.createElementVNode("a",{href:"/"},"return home"),e.createTextVNode(".")],-1)),ma=e.defineComponent({__name:"AppError",setup(r){return(n,a)=>(e.openBlock(),e.createElementBlock("section",la,[e.createElementVNode("div",da,[e.createVNode(sa)]),e.createElementVNode("div",fa,[e.renderSlot(n.$slots,"default",{},()=>[ua,pa],!0)])]))}}),to="",no="",ba=Z(ma,[["__scopeId","data-v-ff05f71e"]]),ha={install:(r,n={})=>{r.component(n.name||"AppLayout",et)}};D.AppError=ba,D.AppLayout=et,D.AppNavbar=Me,D.AppSidebar=Je,D.NavbarDropdownMenu=aa,D.SidebarToggle=Qe,D.default=ha,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
12
12
  //# sourceMappingURL=app-layout.umd.js.map