@kong-ui-public/app-layout 4.2.28 → 4.2.29-pr.1622.48c240f8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-layout.es.js +432 -433
- package/dist/app-layout.umd.js +4 -4
- package/package.json +2 -2
package/dist/app-layout.umd.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L["kong-ui-public-app-layout"]={},L.Vue))})(this,function(L,e){"use strict";const xt=e.defineComponent({__name:"AccountDropdown",props:{options:{type:Array,required:!0},width:{type:String,default:"240"},userInitials:{type:String,required:!0,default:" "}},setup(n){return(a,r)=>{const o=e.resolveComponent("KDropdownItem"),l=e.resolveComponent("KDropdown");return e.openBlock(),e.createBlock(l,{class:"account-dropdown","kpop-attributes":{placement:"bottom-end"},"trigger-text":n.userInitials,width:n.width},{items:e.withCtx(({handleSelection:d})=>[e.renderSlot(a.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,c=>(e.openBlock(),e.createBlock(o,{key:c.value,class:e.normalizeClass({"has-divider":c.hasDivider}),"data-testid":"select-"+c.value,"has-divider":c.hasDivider,onClick:p=>d(c)},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{option:c},()=>[e.createTextVNode(e.toDisplayString(c.label),1)],!0)]),_:2},1032,["class","data-testid","has-divider","onClick"]))),128))],!0)]),_:3},8,["trigger-text","width"])}}}),H=(n,a)=>{const r=n.__vccOpts||n;for(const[o,l]of a)r[o]=l;return r},Ft=H(xt,[["__scopeId","data-v-b33191a2"]]),Dt={class:"about-section-title","data-testid":"about-section-title"},Vt={class:"about-section-header-end"},Rt={key:0,class:"about-section-timestamps-created","data-testid":"about-section-timestamps-created"},Lt={key:1,class:"about-section-timestamps-arrow"},Mt={key:2,class:"about-section-timestamps-modified","data-testid":"about-section-timestamps-modified"},Pt={key:1,class:"about-section-actions","data-testid":"about-section-actions"},jt={key:0,"data-testid":"about-section-loading-skeleton"},Zt={key:1},Kt={key:0,class:"about-section-description","data-testid":"about-section-description"},Ht={key:1,class:"about-section-content","data-testid":"about-section-content"},zt={key:2,"data-testid":"about-divider-section-separator"},Ut={key:3,class:"about-divider-section","data-testid":"about-divider-section"},Wt=H(e.defineComponent({__name:"AppAboutSection",props:{title:{type:String,default:""},description:{type:String,default:""},created:{type:String,default:""},createdLabel:{type:String,default:"Created"},modified:{type:String,default:""},modifiedLabel:{type:String,default:"Modified"},isLoading:{type:Boolean,default:!1}},setup(n){const a=n,r=e.computed(()=>!!a.modified&&a.modified!==a.created);return(o,l)=>{const d=e.resolveComponent("KSkeletonBox"),c=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(c,{class:"kong-ui-app-about-section","title-tag":"h2"},e.createSlots({default:e.withCtx(()=>[n.isLoading?(e.openBlock(),e.createElementBlock("div",jt,[e.createVNode(d,{height:"2",width:"100"}),e.createVNode(d,{height:"2",width:"100"})])):(e.openBlock(),e.createElementBlock("div",Zt,[n.description?(e.openBlock(),e.createElementBlock("p",Kt,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),o.$slots.default?(e.openBlock(),e.createElementBlock("div",Ht,[e.renderSlot(o.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),o.$slots["divider-section"]?(e.openBlock(),e.createElementBlock("hr",zt)):e.createCommentVNode("",!0),o.$slots["divider-section"]?(e.openBlock(),e.createElementBlock("div",Ut,[e.renderSlot(o.$slots,"divider-section",{},void 0,!0)])):e.createCommentVNode("",!0)]))]),_:2},[n.title?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("span",Dt,e.toDisplayString(n.title),1)]),key:"0"}:void 0,o.$slots.actions||n.created||n.modified?{name:"actions",fn:e.withCtx(()=>[e.createElementVNode("div",Vt,[n.created||n.modified?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["about-section-timestamps",{"has-actions":o.$slots.actions}])},[n.created?(e.openBlock(),e.createElementBlock("span",Rt,e.toDisplayString(n.createdLabel)+": "+e.toDisplayString(n.created),1)):e.createCommentVNode("",!0),n.created&&r.value?(e.openBlock(),e.createElementBlock("span",Lt,"->")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("span",Mt,e.toDisplayString(n.modifiedLabel)+": "+e.toDisplayString(n.modified),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.$slots.actions?(e.openBlock(),e.createElementBlock("div",Pt,[e.renderSlot(o.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)])]),key:"1"}:void 0]),1024)}}}),[["__scopeId","data-v-521dcc27"]]),Gt={},qt={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"},Xt=[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 Yt(n,a){return e.openBlock(),e.createElementBlock("svg",qt,Xt)}const Jt=H(Gt,[["render",Yt]]),ze=n=>(e.pushScopeId("data-v-5cbccc66"),n=n(),e.popScopeId(),n),Qt={class:"kong-ui-app-error"},ea={class:"banana-icon"},ta={class:"kong-ui-app-error-content"},aa=ze(()=>e.createElementVNode("h2",null,"An unexpected error has occurred",-1)),na=ze(()=>e.createElementVNode("p",null,[e.createTextVNode("Go back to the previous page or "),e.createElementVNode("a",{href:"/"},"return home"),e.createTextVNode(".")],-1)),oa=H(e.defineComponent({__name:"AppError",setup(n){return(a,r)=>(e.openBlock(),e.createElementBlock("section",Qt,[e.createElementVNode("div",ea,[e.createVNode(Jt)]),e.createElementVNode("div",ta,[e.renderSlot(a.$slots,"default",{},()=>[aa,na],!0)])]))}}),[["__scopeId","data-v-5cbccc66"]]),ra={class:"kong-ui-app-navbar"},ia={class:"header-content"},ca={class:"mobile-header-left"},sa={key:0,class:"app-navbar-logo"},la={class:"navbar-content"},da={class:"navbar-content-left"},ua={class:"navbar-content-center"},fa={class:"navbar-content-right"},Ue=H(e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(n){e.useCssVars(c=>({d96d0598:d.value.top,"05b18f8e":d.value.zIndex,"543b3ff0":d.value.left,"247c8fd0":l.marginRight,"278e63f0":l.width}));const a=n,r=e.useSlots(),o=e.computed(()=>!!r.logo),l=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var c,p;(p=(c=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:c.children)!=null&&p.length?(l.marginRight="32px",l.width="calc(240px - 32px)"):(l.marginRight="0",l.width="0")});const d=e.computed(()=>({top:a.topOffset?`${a.topOffset}px`:"0",left:a.leftOffset?`${a.leftOffset}px`:"0",zIndex:a.zIndex}));return(c,p)=>(e.openBlock(),e.createElementBlock("header",ra,[e.createElementVNode("div",ia,[e.createElementVNode("div",ca,[e.renderSlot(c.$slots,"mobile-sidebar-toggle"),e.renderSlot(c.$slots,"mobile-logo")]),o.value?(e.openBlock(),e.createElementBlock("div",sa,[e.renderSlot(c.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",la,[e.createElementVNode("div",da,[e.renderSlot(c.$slots,"left")]),e.createElementVNode("div",ua,[e.renderSlot(c.$slots,"center")]),e.createElementVNode("div",fa,[e.renderSlot(c.$slots,"right")])])])]))}}),[["__scopeId","data-v-beca6ea9"]]),ma=["title"],$e=99,pa=H(e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(n){const a=n,r=e.computed(()=>a.count?a.count>$e?`${$e}+`:a.count.toString():"");return(o,l)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(n.count||0)>$e?String(n.count):void 0},e.toDisplayString(r.value),9,ma)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-afb0d903"]]),ba=["data-testid"],ha=["aria-controls","aria-current","aria-expanded","href","target","onClick","onKeypress"],ga={key:0,class:"sidebar-item-icon"},va={class:"sidebar-item-name-container"},ya={class:"sidebar-item-name has-tooltip"},ka={key:2,class:"sidebar-item-label truncate-text truncate-18"},wa=["id"],We=H(e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:a}){const r=a,o=n,l=e.computed(()=>typeof o.item.to!="string"?!1:!!o.item.newWindow||!!o.item.external||o.item.to.startsWith("http")),d=e.computed(()=>!o.item.to||typeof o.item.to!="string"||!o.item.newWindow?!1:o.item.newWindow&&(o.item.to.startsWith("http")||o.item.to.startsWith("/"))),c=e.computed(()=>o.subnavItem&&o.item.badgeCount!==void 0),p=w=>{r("click",w)},g=(w,N,E)=>{p(N),typeof E=="function"&&(w.preventDefault(),E())};return(w,N)=>{var x;const E=e.resolveComponent("KTooltip"),B=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([n.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:n.item.expanded},{active:n.item.active}]),"data-testid":n.item.testId?`sidebar-item-${n.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value?"div":"router-link"),{custom:l.value?void 0:!0,to:!l.value&&!d.value?n.item.to:void 0},{default:e.withCtx(k=>{var F,Z;return[e.createElementVNode("a",{"aria-controls":(F=n.item.items)!=null&&F.length&&n.item.expanded?`subnav-${n.item.key}`:void 0,"aria-current":n.item.active?"page":void 0,"aria-expanded":(Z=n.item.items)!=null&&Z.length&&n.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":d.value,"router-link":!l.value}]),href:l.value?String(n.item.to||"#"):k==null?void 0:k.href,target:d.value?"_blank":void 0,onClick:$=>g($,n.item,k==null?void 0:k.navigate),onKeypress:e.withKeys($=>g($,n.item,k==null?void 0:k.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!n.item.label&&n.item.expanded,"has-badge":c.value}])},[w.$slots[`sidebar-icon-${n.item.key}`]?(e.openBlock(),e.createElementBlock("div",ga,[n.subnavItem?e.createCommentVNode("",!0):e.renderSlot(w.$slots,`sidebar-icon-${n.item.key}`,{key:0},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",va,[(n.subnavItem?n.item.name.length<25:n.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[n.subnavItem?"has-badge-max-width truncate-24":"truncate-17"]])},e.toDisplayString(n.item.name),3)):(e.openBlock(),e.createBlock(E,{key:1,class:"sidebar-item-tooltip",placement:"right","position-fixed":"",text:n.item.name},{default:e.withCtx(()=>[e.createElementVNode("div",ya,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[n.subnavItem?"truncate-18":"truncate-17",{"has-badge-max-width":c.value}]])},e.toDisplayString(n.item.name),3)])]),_:1},8,["text"])),n.item.label&&n.item.expanded?(e.openBlock(),e.createElementBlock("div",ka,e.toDisplayString(n.item.label),1)):e.createCommentVNode("",!0)]),c.value?(e.openBlock(),e.createBlock(pa,{key:1,count:n.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,ha)]}),_:3},8,["custom","to"])),(x=n.item.items)!=null&&x.length&&n.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${n.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.item.items,k=>(e.openBlock(),e.createBlock(B,{key:k.name,item:k,"subnav-item":!0,onClick:F=>p(k)},null,8,["item","onClick"]))),128))],8,wa)):e.createCommentVNode("",!0)],10,ba)}}}),[["__scopeId","data-v-90892c1e"]]);/*!
|
|
1
|
+
(function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L["kong-ui-public-app-layout"]={},L.Vue))})(this,function(L,e){"use strict";const xt=e.defineComponent({__name:"AccountDropdown",props:{options:{type:Array,required:!0},width:{type:String,default:"240"},userInitials:{type:String,required:!0,default:" "}},setup(n){return(a,r)=>{const o=e.resolveComponent("KDropdownItem"),s=e.resolveComponent("KDropdown");return e.openBlock(),e.createBlock(s,{class:"account-dropdown","kpop-attributes":{placement:"bottom-end"},"trigger-text":n.userInitials,width:n.width},{items:e.withCtx(({handleSelection:d})=>[e.renderSlot(a.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,c=>(e.openBlock(),e.createBlock(o,{key:c.value,class:e.normalizeClass({"has-divider":c.hasDivider}),"data-testid":"select-"+c.value,"has-divider":c.hasDivider,onClick:p=>d(c)},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{option:c},()=>[e.createTextVNode(e.toDisplayString(c.label),1)],!0)]),_:2},1032,["class","data-testid","has-divider","onClick"]))),128))],!0)]),_:3},8,["trigger-text","width"])}}}),K=(n,a)=>{const r=n.__vccOpts||n;for(const[o,s]of a)r[o]=s;return r},Ft=K(xt,[["__scopeId","data-v-b33191a2"]]),Dt={class:"about-section-title","data-testid":"about-section-title"},Vt={class:"about-section-header-end"},Rt={key:0,class:"about-section-timestamps-created","data-testid":"about-section-timestamps-created"},Lt={key:1,class:"about-section-timestamps-arrow"},Mt={key:2,class:"about-section-timestamps-modified","data-testid":"about-section-timestamps-modified"},Pt={key:1,class:"about-section-actions","data-testid":"about-section-actions"},jt={key:0,"data-testid":"about-section-loading-skeleton"},Zt={key:1},Kt={key:0,class:"about-section-description","data-testid":"about-section-description"},Ht={key:1,class:"about-section-content","data-testid":"about-section-content"},zt={key:2,"data-testid":"about-divider-section-separator"},Ut={key:3,class:"about-divider-section","data-testid":"about-divider-section"},Wt=K(e.defineComponent({__name:"AppAboutSection",props:{title:{type:String,default:""},description:{type:String,default:""},created:{type:String,default:""},createdLabel:{type:String,default:"Created"},modified:{type:String,default:""},modifiedLabel:{type:String,default:"Modified"},isLoading:{type:Boolean,default:!1}},setup(n){const a=n,r=e.computed(()=>!!a.modified&&a.modified!==a.created);return(o,s)=>{const d=e.resolveComponent("KSkeletonBox"),c=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(c,{class:"kong-ui-app-about-section","title-tag":"h2"},e.createSlots({default:e.withCtx(()=>[n.isLoading?(e.openBlock(),e.createElementBlock("div",jt,[e.createVNode(d,{height:"2",width:"100"}),e.createVNode(d,{height:"2",width:"100"})])):(e.openBlock(),e.createElementBlock("div",Zt,[n.description?(e.openBlock(),e.createElementBlock("p",Kt,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),o.$slots.default?(e.openBlock(),e.createElementBlock("div",Ht,[e.renderSlot(o.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),o.$slots["divider-section"]?(e.openBlock(),e.createElementBlock("hr",zt)):e.createCommentVNode("",!0),o.$slots["divider-section"]?(e.openBlock(),e.createElementBlock("div",Ut,[e.renderSlot(o.$slots,"divider-section",{},void 0,!0)])):e.createCommentVNode("",!0)]))]),_:2},[n.title?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("span",Dt,e.toDisplayString(n.title),1)]),key:"0"}:void 0,o.$slots.actions||n.created||n.modified?{name:"actions",fn:e.withCtx(()=>[e.createElementVNode("div",Vt,[n.created||n.modified?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["about-section-timestamps",{"has-actions":o.$slots.actions}])},[n.created?(e.openBlock(),e.createElementBlock("span",Rt,e.toDisplayString(n.createdLabel)+": "+e.toDisplayString(n.created),1)):e.createCommentVNode("",!0),n.created&&r.value?(e.openBlock(),e.createElementBlock("span",Lt,"->")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("span",Mt,e.toDisplayString(n.modifiedLabel)+": "+e.toDisplayString(n.modified),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.$slots.actions?(e.openBlock(),e.createElementBlock("div",Pt,[e.renderSlot(o.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)])]),key:"1"}:void 0]),1024)}}}),[["__scopeId","data-v-521dcc27"]]),Gt={},qt={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"},Xt=[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 Yt(n,a){return e.openBlock(),e.createElementBlock("svg",qt,Xt)}const Jt=K(Gt,[["render",Yt]]),ze=n=>(e.pushScopeId("data-v-5cbccc66"),n=n(),e.popScopeId(),n),Qt={class:"kong-ui-app-error"},ea={class:"banana-icon"},ta={class:"kong-ui-app-error-content"},aa=ze(()=>e.createElementVNode("h2",null,"An unexpected error has occurred",-1)),na=ze(()=>e.createElementVNode("p",null,[e.createTextVNode("Go back to the previous page or "),e.createElementVNode("a",{href:"/"},"return home"),e.createTextVNode(".")],-1)),oa=K(e.defineComponent({__name:"AppError",setup(n){return(a,r)=>(e.openBlock(),e.createElementBlock("section",Qt,[e.createElementVNode("div",ea,[e.createVNode(Jt)]),e.createElementVNode("div",ta,[e.renderSlot(a.$slots,"default",{},()=>[aa,na],!0)])]))}}),[["__scopeId","data-v-5cbccc66"]]),ra={class:"kong-ui-app-navbar"},ia={class:"header-content"},ca={class:"mobile-header-left"},sa={key:0,class:"app-navbar-logo"},la={class:"navbar-content"},da={class:"navbar-content-left"},ua={class:"navbar-content-center"},fa={class:"navbar-content-right"},Ue=K(e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(n){e.useCssVars(c=>({d96d0598:d.value.top,"05b18f8e":d.value.zIndex,"543b3ff0":d.value.left,"247c8fd0":s.marginRight,"278e63f0":s.width}));const a=n,r=e.useSlots(),o=e.computed(()=>!!r.logo),s=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var c,p;(p=(c=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:c.children)!=null&&p.length?(s.marginRight="32px",s.width="calc(240px - 32px)"):(s.marginRight="0",s.width="0")});const d=e.computed(()=>({top:a.topOffset?`${a.topOffset}px`:"0",left:a.leftOffset?`${a.leftOffset}px`:"0",zIndex:a.zIndex}));return(c,p)=>(e.openBlock(),e.createElementBlock("header",ra,[e.createElementVNode("div",ia,[e.createElementVNode("div",ca,[e.renderSlot(c.$slots,"mobile-sidebar-toggle"),e.renderSlot(c.$slots,"mobile-logo")]),o.value?(e.openBlock(),e.createElementBlock("div",sa,[e.renderSlot(c.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",la,[e.createElementVNode("div",da,[e.renderSlot(c.$slots,"left")]),e.createElementVNode("div",ua,[e.renderSlot(c.$slots,"center")]),e.createElementVNode("div",fa,[e.renderSlot(c.$slots,"right")])])])]))}}),[["__scopeId","data-v-beca6ea9"]]),ma=["title"],$e=99,pa=K(e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(n){const a=n,r=e.computed(()=>a.count?a.count>$e?`${$e}+`:a.count.toString():"");return(o,s)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(n.count||0)>$e?String(n.count):void 0},e.toDisplayString(r.value),9,ma)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-afb0d903"]]),ba=["data-testid"],ha=["aria-controls","aria-current","aria-expanded","href","target","onClick","onKeypress"],ga={key:0,class:"sidebar-item-icon"},va={class:"sidebar-item-name-container"},ya={class:"sidebar-item-name has-tooltip"},ka={key:2,class:"sidebar-item-label truncate-text truncate-18"},wa=["id"],We=K(e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:a}){const r=a,o=n,s=e.computed(()=>typeof o.item.to!="string"?!1:!!o.item.newWindow||!!o.item.external||o.item.to.startsWith("http")),d=e.computed(()=>!o.item.to||typeof o.item.to!="string"||!o.item.newWindow?!1:o.item.newWindow&&(o.item.to.startsWith("http")||o.item.to.startsWith("/"))),c=e.computed(()=>o.subnavItem&&o.item.badgeCount!==void 0),p=w=>{r("click",w)},g=(w,N,E)=>{p(N),typeof E=="function"&&(w.preventDefault(),E())};return(w,N)=>{var A;const E=e.resolveComponent("KTooltip"),B=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([n.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:n.item.expanded},{active:n.item.active}]),"data-testid":n.item.testId?`sidebar-item-${n.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value?"div":"router-link"),{custom:s.value?void 0:!0,to:!s.value&&!d.value?n.item.to:void 0},{default:e.withCtx(k=>{var x,Z;return[e.createElementVNode("a",{"aria-controls":(x=n.item.items)!=null&&x.length&&n.item.expanded?`subnav-${n.item.key}`:void 0,"aria-current":n.item.active?"page":void 0,"aria-expanded":(Z=n.item.items)!=null&&Z.length&&n.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":d.value,"router-link":!s.value}]),href:s.value?String(n.item.to||"#"):k==null?void 0:k.href,target:d.value?"_blank":void 0,onClick:$=>g($,n.item,k==null?void 0:k.navigate),onKeypress:e.withKeys($=>g($,n.item,k==null?void 0:k.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!n.item.label&&n.item.expanded,"has-badge":c.value}])},[w.$slots[`sidebar-icon-${n.item.key}`]?(e.openBlock(),e.createElementBlock("div",ga,[n.subnavItem?e.createCommentVNode("",!0):e.renderSlot(w.$slots,`sidebar-icon-${n.item.key}`,{key:0},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",va,[(n.subnavItem?n.item.name.length<25:n.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[n.subnavItem?"has-badge-max-width truncate-24":"truncate-17"]])},e.toDisplayString(n.item.name),3)):(e.openBlock(),e.createBlock(E,{key:1,class:"sidebar-item-tooltip",placement:"right","position-fixed":"",text:n.item.name},{default:e.withCtx(()=>[e.createElementVNode("div",ya,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[n.subnavItem?"truncate-18":"truncate-17",{"has-badge-max-width":c.value}]])},e.toDisplayString(n.item.name),3)])]),_:1},8,["text"])),n.item.label&&n.item.expanded?(e.openBlock(),e.createElementBlock("div",ka,e.toDisplayString(n.item.label),1)):e.createCommentVNode("",!0)]),c.value?(e.openBlock(),e.createBlock(pa,{key:1,count:n.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,ha)]}),_:3},8,["custom","to"])),(A=n.item.items)!=null&&A.length&&n.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${n.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.item.items,k=>(e.openBlock(),e.createBlock(B,{key:k.name,item:k,"subnav-item":!0,onClick:x=>p(k)},null,8,["item","onClick"]))),128))],8,wa)):e.createCommentVNode("",!0)],10,ba)}}}),[["__scopeId","data-v-90892c1e"]]);/*!
|
|
2
2
|
* tabbable 6.2.0
|
|
3
3
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/var Ge=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ge=Ge.join(","),qe=typeof Element>"u",Q=qe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ve=!qe&&Element.prototype.getRootNode?function(n){var a;return n==null||(a=n.getRootNode)===null||a===void 0?void 0:a.call(n)}:function(n){return n==null?void 0:n.ownerDocument},ye=function n(a,r){var o;r===void 0&&(r=!0);var
|
|
4
|
+
*/var Ge=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ge=Ge.join(","),qe=typeof Element>"u",Q=qe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ve=!qe&&Element.prototype.getRootNode?function(n){var a;return n==null||(a=n.getRootNode)===null||a===void 0?void 0:a.call(n)}:function(n){return n==null?void 0:n.ownerDocument},ye=function n(a,r){var o;r===void 0&&(r=!0);var s=a==null||(o=a.getAttribute)===null||o===void 0?void 0:o.call(a,"inert"),d=s===""||s==="true",c=d||r&&a&&n(a.parentNode);return c},Sa=function(a){var r,o=a==null||(r=a.getAttribute)===null||r===void 0?void 0:r.call(a,"contenteditable");return o===""||o==="true"},Xe=function(a,r,o){if(ye(a))return[];var s=Array.prototype.slice.apply(a.querySelectorAll(ge));return r&&Q.call(a,ge)&&s.unshift(a),s=s.filter(o),s},Ye=function n(a,r,o){for(var s=[],d=Array.from(a);d.length;){var c=d.shift();if(!ye(c,!1))if(c.tagName==="SLOT"){var p=c.assignedElements(),g=p.length?p:c.children,w=n(g,!0,o);o.flatten?s.push.apply(s,w):s.push({scopeParent:c,candidates:w})}else{var N=Q.call(c,ge);N&&o.filter(c)&&(r||!a.includes(c))&&s.push(c);var E=c.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(c),B=!ye(E,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(E&&B){var A=n(E===!0?c.children:E.children,!0,o);o.flatten?s.push.apply(s,A):s.push({scopeParent:c,candidates:A})}else d.unshift.apply(d,c.children)}}return s},Je=function(a){return!isNaN(parseInt(a.getAttribute("tabindex"),10))},ee=function(a){if(!a)throw new Error("No node provided");return a.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(a.tagName)||Sa(a))&&!Je(a)?0:a.tabIndex},Ca=function(a,r){var o=ee(a);return o<0&&r&&!Je(a)?0:o},_a=function(a,r){return a.tabIndex===r.tabIndex?a.documentOrder-r.documentOrder:a.tabIndex-r.tabIndex},Qe=function(a){return a.tagName==="INPUT"},Ea=function(a){return Qe(a)&&a.type==="hidden"},Na=function(a){var r=a.tagName==="DETAILS"&&Array.prototype.slice.apply(a.children).some(function(o){return o.tagName==="SUMMARY"});return r},Ta=function(a,r){for(var o=0;o<a.length;o++)if(a[o].checked&&a[o].form===r)return a[o]},Ba=function(a){if(!a.name)return!0;var r=a.form||ve(a),o=function(p){return r.querySelectorAll('input[type="radio"][name="'+p+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=o(window.CSS.escape(a.name));else try{s=o(a.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var d=Ta(s,a.form);return!d||d===a},Ia=function(a){return Qe(a)&&a.type==="radio"},$a=function(a){return Ia(a)&&!Ba(a)},Oa=function(a){var r,o=a&&ve(a),s=(r=o)===null||r===void 0?void 0:r.host,d=!1;if(o&&o!==a){var c,p,g;for(d=!!((c=s)!==null&&c!==void 0&&(p=c.ownerDocument)!==null&&p!==void 0&&p.contains(s)||a!=null&&(g=a.ownerDocument)!==null&&g!==void 0&&g.contains(a));!d&&s;){var w,N,E;o=ve(s),s=(w=o)===null||w===void 0?void 0:w.host,d=!!((N=s)!==null&&N!==void 0&&(E=N.ownerDocument)!==null&&E!==void 0&&E.contains(s))}}return d},et=function(a){var r=a.getBoundingClientRect(),o=r.width,s=r.height;return o===0&&s===0},Aa=function(a,r){var o=r.displayCheck,s=r.getShadowRoot;if(getComputedStyle(a).visibility==="hidden")return!0;var d=Q.call(a,"details>summary:first-of-type"),c=d?a.parentElement:a;if(Q.call(c,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof s=="function"){for(var p=a;a;){var g=a.parentElement,w=ve(a);if(g&&!g.shadowRoot&&s(g)===!0)return et(a);a.assignedSlot?a=a.assignedSlot:!g&&w!==a.ownerDocument?a=w.host:a=g}a=p}if(Oa(a))return!a.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return et(a);return!1},xa=function(a){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(a.tagName))for(var r=a.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var o=0;o<r.children.length;o++){var s=r.children.item(o);if(s.tagName==="LEGEND")return Q.call(r,"fieldset[disabled] *")?!0:!s.contains(a)}return!0}r=r.parentElement}return!1},ke=function(a,r){return!(r.disabled||ye(r)||Ea(r)||Aa(r,a)||Na(r)||xa(r))},Oe=function(a,r){return!($a(r)||ee(r)<0||!ke(a,r))},Fa=function(a){var r=parseInt(a.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},Da=function n(a){var r=[],o=[];return a.forEach(function(s,d){var c=!!s.scopeParent,p=c?s.scopeParent:s,g=Ca(p,c),w=c?n(s.candidates):p;g===0?c?r.push.apply(r,w):r.push(p):o.push({documentOrder:d,tabIndex:g,item:s,isScope:c,content:w})}),o.sort(_a).reduce(function(s,d){return d.isScope?s.push.apply(s,d.content):s.push(d.content),s},[]).concat(r)},Va=function(a,r){r=r||{};var o;return r.getShadowRoot?o=Ye([a],r.includeContainer,{filter:Oe.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:Fa}):o=Xe(a,r.includeContainer,Oe.bind(null,r)),Da(o)},Ra=function(a,r){r=r||{};var o;return r.getShadowRoot?o=Ye([a],r.includeContainer,{filter:ke.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):o=Xe(a,r.includeContainer,ke.bind(null,r)),o},re=function(a,r){if(r=r||{},!a)throw new Error("No node provided");return Q.call(a,ge)===!1?!1:Oe(r,a)},La=Ge.concat("iframe").join(","),Ae=function(a,r){if(r=r||{},!a)throw new Error("No node provided");return Q.call(a,La)===!1?!1:ke(r,a)};/*!
|
|
5
5
|
* focus-trap 7.5.4
|
|
6
6
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
7
|
-
*/function tt(n,a){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);a&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),r.push.apply(r,o)}return r}function at(n){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?arguments[a]:{};a%2?tt(Object(r),!0).forEach(function(o){Ma(n,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(r,o))})}return n}function Ma(n,a,r){return a=ja(a),a in n?Object.defineProperty(n,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[a]=r,n}function Pa(n,a){if(typeof n!="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var o=r.call(n,a||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}function ja(n){var a=Pa(n,"string");return typeof a=="symbol"?a:String(a)}var nt={activateTrap:function(a,r){if(a.length>0){var o=a[a.length-1];o!==r&&o.pause()}var l=a.indexOf(r);l===-1||a.splice(l,1),a.push(r)},deactivateTrap:function(a,r){var o=a.indexOf(r);o!==-1&&a.splice(o,1),a.length>0&&a[a.length-1].unpause()}},Za=function(a){return a.tagName&&a.tagName.toLowerCase()==="input"&&typeof a.select=="function"},Ka=function(a){return(a==null?void 0:a.key)==="Escape"||(a==null?void 0:a.key)==="Esc"||(a==null?void 0:a.keyCode)===27},de=function(a){return(a==null?void 0:a.key)==="Tab"||(a==null?void 0:a.keyCode)===9},Ha=function(a){return de(a)&&!a.shiftKey},za=function(a){return de(a)&&a.shiftKey},ot=function(a){return setTimeout(a,0)},rt=function(a,r){var o=-1;return a.every(function(l,d){return r(l)?(o=d,!1):!0}),o},ue=function(a){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];return typeof a=="function"?a.apply(void 0,o):a},we=function(a){return a.target.shadowRoot&&typeof a.composedPath=="function"?a.composedPath()[0]:a.target},Ua=[],Wa=function(a,r){var o=(r==null?void 0:r.document)||document,l=(r==null?void 0:r.trapStack)||Ua,d=at({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ha,isKeyBackward:za},r),c={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},p,g=function(f,u,m){return f&&f[u]!==void 0?f[u]:d[m||u]},w=function(f,u){var m=typeof(u==null?void 0:u.composedPath)=="function"?u.composedPath():void 0;return c.containerGroups.findIndex(function(y){var h=y.container,C=y.tabbableNodes;return h.contains(f)||(m==null?void 0:m.includes(h))||C.find(function(T){return T===f})})},N=function(f){var u=d[f];if(typeof u=="function"){for(var m=arguments.length,y=new Array(m>1?m-1:0),h=1;h<m;h++)y[h-1]=arguments[h];u=u.apply(void 0,y)}if(u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error("`".concat(f,"` was specified but was not a node, or did not return a node"))}var C=u;if(typeof u=="string"&&(C=o.querySelector(u),!C))throw new Error("`".concat(f,"` as selector refers to no known node"));return C},E=function(){var f=N("initialFocus");if(f===!1)return!1;if(f===void 0||!Ae(f,d.tabbableOptions))if(w(o.activeElement)>=0)f=o.activeElement;else{var u=c.tabbableGroups[0],m=u&&u.firstTabbableNode;f=m||N("fallbackFocus")}if(!f)throw new Error("Your focus-trap needs to have at least one focusable element");return f},B=function(){if(c.containerGroups=c.containers.map(function(f){var u=Va(f,d.tabbableOptions),m=Ra(f,d.tabbableOptions),y=u.length>0?u[0]:void 0,h=u.length>0?u[u.length-1]:void 0,C=m.find(function(v){return re(v)}),T=m.slice().reverse().find(function(v){return re(v)}),I=!!u.find(function(v){return ee(v)>0});return{container:f,tabbableNodes:u,focusableNodes:m,posTabIndexesFound:I,firstTabbableNode:y,lastTabbableNode:h,firstDomTabbableNode:C,lastDomTabbableNode:T,nextTabbableNode:function(G){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=u.indexOf(G);return O<0?te?m.slice(m.indexOf(G)+1).find(function(Y){return re(Y)}):m.slice(0,m.indexOf(G)).reverse().find(function(Y){return re(Y)}):u[O+(te?1:-1)]}}}),c.tabbableGroups=c.containerGroups.filter(function(f){return f.tabbableNodes.length>0}),c.tabbableGroups.length<=0&&!N("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(c.containerGroups.find(function(f){return f.posTabIndexesFound})&&c.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},x=function S(f){var u=f.activeElement;if(u)return u.shadowRoot&&u.shadowRoot.activeElement!==null?S(u.shadowRoot):u},k=function S(f){if(f!==!1&&f!==x(document)){if(!f||!f.focus){S(E());return}f.focus({preventScroll:!!d.preventScroll}),c.mostRecentlyFocusedNode=f,Za(f)&&f.select()}},F=function(f){var u=N("setReturnFocus",f);return u||(u===!1?!1:f)},Z=function(f){var u=f.target,m=f.event,y=f.isBackward,h=y===void 0?!1:y;u=u||we(m),B();var C=null;if(c.tabbableGroups.length>0){var T=w(u,m),I=T>=0?c.containerGroups[T]:void 0;if(T<0)h?C=c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode:C=c.tabbableGroups[0].firstTabbableNode;else if(h){var v=rt(c.tabbableGroups,function(me){var pe=me.firstTabbableNode;return u===pe});if(v<0&&(I.container===u||Ae(u,d.tabbableOptions)&&!re(u,d.tabbableOptions)&&!I.nextTabbableNode(u,!1))&&(v=T),v>=0){var G=v===0?c.tabbableGroups.length-1:v-1,te=c.tabbableGroups[G];C=ee(u)>=0?te.lastTabbableNode:te.lastDomTabbableNode}else de(m)||(C=I.nextTabbableNode(u,!1))}else{var O=rt(c.tabbableGroups,function(me){var pe=me.lastTabbableNode;return u===pe});if(O<0&&(I.container===u||Ae(u,d.tabbableOptions)&&!re(u,d.tabbableOptions)&&!I.nextTabbableNode(u))&&(O=T),O>=0){var Y=O===c.tabbableGroups.length-1?0:O+1,fe=c.tabbableGroups[Y];C=ee(u)>=0?fe.firstTabbableNode:fe.firstDomTabbableNode}else de(m)||(C=I.nextTabbableNode(u))}}else C=N("fallbackFocus");return C},$=function(f){var u=we(f);if(!(w(u,f)>=0)){if(ue(d.clickOutsideDeactivates,f)){p.deactivate({returnFocus:d.returnFocusOnDeactivate});return}ue(d.allowOutsideClick,f)||f.preventDefault()}},W=function(f){var u=we(f),m=w(u,f)>=0;if(m||u instanceof Document)m&&(c.mostRecentlyFocusedNode=u);else{f.stopImmediatePropagation();var y,h=!0;if(c.mostRecentlyFocusedNode)if(ee(c.mostRecentlyFocusedNode)>0){var C=w(c.mostRecentlyFocusedNode),T=c.containerGroups[C].tabbableNodes;if(T.length>0){var I=T.findIndex(function(v){return v===c.mostRecentlyFocusedNode});I>=0&&(d.isKeyForward(c.recentNavEvent)?I+1<T.length&&(y=T[I+1],h=!1):I-1>=0&&(y=T[I-1],h=!1))}}else c.containerGroups.some(function(v){return v.tabbableNodes.some(function(G){return ee(G)>0})})||(h=!1);else h=!1;h&&(y=Z({target:c.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(c.recentNavEvent)})),k(y||c.mostRecentlyFocusedNode||E())}c.recentNavEvent=void 0},X=function(f){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;c.recentNavEvent=f;var m=Z({event:f,isBackward:u});m&&(de(f)&&f.preventDefault(),k(m))},z=function(f){if(Ka(f)&&ue(d.escapeDeactivates,f)!==!1){f.preventDefault(),p.deactivate();return}(d.isKeyForward(f)||d.isKeyBackward(f))&&X(f,d.isKeyBackward(f))},U=function(f){var u=we(f);w(u,f)>=0||ue(d.clickOutsideDeactivates,f)||ue(d.allowOutsideClick,f)||(f.preventDefault(),f.stopImmediatePropagation())},V=function(){if(c.active)return nt.activateTrap(l,p),c.delayInitialFocusTimer=d.delayInitialFocus?ot(function(){k(E())}):k(E()),o.addEventListener("focusin",W,!0),o.addEventListener("mousedown",$,{capture:!0,passive:!1}),o.addEventListener("touchstart",$,{capture:!0,passive:!1}),o.addEventListener("click",U,{capture:!0,passive:!1}),o.addEventListener("keydown",z,{capture:!0,passive:!1}),p},j=function(){if(c.active)return o.removeEventListener("focusin",W,!0),o.removeEventListener("mousedown",$,!0),o.removeEventListener("touchstart",$,!0),o.removeEventListener("click",U,!0),o.removeEventListener("keydown",z,!0),p},_=function(f){var u=f.some(function(m){var y=Array.from(m.removedNodes);return y.some(function(h){return h===c.mostRecentlyFocusedNode})});u&&k(E())},D=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(_):void 0,R=function(){D&&(D.disconnect(),c.active&&!c.paused&&c.containers.map(function(f){D.observe(f,{subtree:!0,childList:!0})}))};return p={get active(){return c.active},get paused(){return c.paused},activate:function(f){if(c.active)return this;var u=g(f,"onActivate"),m=g(f,"onPostActivate"),y=g(f,"checkCanFocusTrap");y||B(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=o.activeElement,u==null||u();var h=function(){y&&B(),V(),R(),m==null||m()};return y?(y(c.containers.concat()).then(h,h),this):(h(),this)},deactivate:function(f){if(!c.active)return this;var u=at({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},f);clearTimeout(c.delayInitialFocusTimer),c.delayInitialFocusTimer=void 0,j(),c.active=!1,c.paused=!1,R(),nt.deactivateTrap(l,p);var m=g(u,"onDeactivate"),y=g(u,"onPostDeactivate"),h=g(u,"checkCanReturnFocus"),C=g(u,"returnFocus","returnFocusOnDeactivate");m==null||m();var T=function(){ot(function(){C&&k(F(c.nodeFocusedBeforeActivation)),y==null||y()})};return C&&h?(h(F(c.nodeFocusedBeforeActivation)).then(T,T),this):(T(),this)},pause:function(f){if(c.paused||!c.active)return this;var u=g(f,"onPause"),m=g(f,"onPostPause");return c.paused=!0,u==null||u(),j(),R(),m==null||m(),this},unpause:function(f){if(!c.paused||!c.active)return this;var u=g(f,"onUnpause"),m=g(f,"onPostUnpause");return c.paused=!1,u==null||u(),B(),V(),R(),m==null||m(),this},updateContainerElements:function(f){var u=[].concat(f).filter(Boolean);return c.containers=u.map(function(m){return typeof m=="string"?o.querySelector(m):m}),c.active&&B(),R(),this}},p.updateContainerElements(a),p};/*!
|
|
7
|
+
*/function tt(n,a){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);a&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),r.push.apply(r,o)}return r}function at(n){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?arguments[a]:{};a%2?tt(Object(r),!0).forEach(function(o){Ma(n,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(r,o))})}return n}function Ma(n,a,r){return a=ja(a),a in n?Object.defineProperty(n,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[a]=r,n}function Pa(n,a){if(typeof n!="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var o=r.call(n,a||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}function ja(n){var a=Pa(n,"string");return typeof a=="symbol"?a:String(a)}var nt={activateTrap:function(a,r){if(a.length>0){var o=a[a.length-1];o!==r&&o.pause()}var s=a.indexOf(r);s===-1||a.splice(s,1),a.push(r)},deactivateTrap:function(a,r){var o=a.indexOf(r);o!==-1&&a.splice(o,1),a.length>0&&a[a.length-1].unpause()}},Za=function(a){return a.tagName&&a.tagName.toLowerCase()==="input"&&typeof a.select=="function"},Ka=function(a){return(a==null?void 0:a.key)==="Escape"||(a==null?void 0:a.key)==="Esc"||(a==null?void 0:a.keyCode)===27},de=function(a){return(a==null?void 0:a.key)==="Tab"||(a==null?void 0:a.keyCode)===9},Ha=function(a){return de(a)&&!a.shiftKey},za=function(a){return de(a)&&a.shiftKey},ot=function(a){return setTimeout(a,0)},rt=function(a,r){var o=-1;return a.every(function(s,d){return r(s)?(o=d,!1):!0}),o},ue=function(a){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return typeof a=="function"?a.apply(void 0,o):a},we=function(a){return a.target.shadowRoot&&typeof a.composedPath=="function"?a.composedPath()[0]:a.target},Ua=[],Wa=function(a,r){var o=(r==null?void 0:r.document)||document,s=(r==null?void 0:r.trapStack)||Ua,d=at({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ha,isKeyBackward:za},r),c={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},p,g=function(f,u,m){return f&&f[u]!==void 0?f[u]:d[m||u]},w=function(f,u){var m=typeof(u==null?void 0:u.composedPath)=="function"?u.composedPath():void 0;return c.containerGroups.findIndex(function(y){var b=y.container,C=y.tabbableNodes;return b.contains(f)||(m==null?void 0:m.includes(b))||C.find(function(T){return T===f})})},N=function(f){var u=d[f];if(typeof u=="function"){for(var m=arguments.length,y=new Array(m>1?m-1:0),b=1;b<m;b++)y[b-1]=arguments[b];u=u.apply(void 0,y)}if(u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error("`".concat(f,"` was specified but was not a node, or did not return a node"))}var C=u;if(typeof u=="string"&&(C=o.querySelector(u),!C))throw new Error("`".concat(f,"` as selector refers to no known node"));return C},E=function(){var f=N("initialFocus");if(f===!1)return!1;if(f===void 0||!Ae(f,d.tabbableOptions))if(w(o.activeElement)>=0)f=o.activeElement;else{var u=c.tabbableGroups[0],m=u&&u.firstTabbableNode;f=m||N("fallbackFocus")}if(!f)throw new Error("Your focus-trap needs to have at least one focusable element");return f},B=function(){if(c.containerGroups=c.containers.map(function(f){var u=Va(f,d.tabbableOptions),m=Ra(f,d.tabbableOptions),y=u.length>0?u[0]:void 0,b=u.length>0?u[u.length-1]:void 0,C=m.find(function(v){return re(v)}),T=m.slice().reverse().find(function(v){return re(v)}),I=!!u.find(function(v){return ee(v)>0});return{container:f,tabbableNodes:u,focusableNodes:m,posTabIndexesFound:I,firstTabbableNode:y,lastTabbableNode:b,firstDomTabbableNode:C,lastDomTabbableNode:T,nextTabbableNode:function(W){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=u.indexOf(W);return O<0?te?m.slice(m.indexOf(W)+1).find(function(Y){return re(Y)}):m.slice(0,m.indexOf(W)).reverse().find(function(Y){return re(Y)}):u[O+(te?1:-1)]}}}),c.tabbableGroups=c.containerGroups.filter(function(f){return f.tabbableNodes.length>0}),c.tabbableGroups.length<=0&&!N("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(c.containerGroups.find(function(f){return f.posTabIndexesFound})&&c.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},A=function S(f){var u=f.activeElement;if(u)return u.shadowRoot&&u.shadowRoot.activeElement!==null?S(u.shadowRoot):u},k=function S(f){if(f!==!1&&f!==A(document)){if(!f||!f.focus){S(E());return}f.focus({preventScroll:!!d.preventScroll}),c.mostRecentlyFocusedNode=f,Za(f)&&f.select()}},x=function(f){var u=N("setReturnFocus",f);return u||(u===!1?!1:f)},Z=function(f){var u=f.target,m=f.event,y=f.isBackward,b=y===void 0?!1:y;u=u||we(m),B();var C=null;if(c.tabbableGroups.length>0){var T=w(u,m),I=T>=0?c.containerGroups[T]:void 0;if(T<0)b?C=c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode:C=c.tabbableGroups[0].firstTabbableNode;else if(b){var v=rt(c.tabbableGroups,function(me){var pe=me.firstTabbableNode;return u===pe});if(v<0&&(I.container===u||Ae(u,d.tabbableOptions)&&!re(u,d.tabbableOptions)&&!I.nextTabbableNode(u,!1))&&(v=T),v>=0){var W=v===0?c.tabbableGroups.length-1:v-1,te=c.tabbableGroups[W];C=ee(u)>=0?te.lastTabbableNode:te.lastDomTabbableNode}else de(m)||(C=I.nextTabbableNode(u,!1))}else{var O=rt(c.tabbableGroups,function(me){var pe=me.lastTabbableNode;return u===pe});if(O<0&&(I.container===u||Ae(u,d.tabbableOptions)&&!re(u,d.tabbableOptions)&&!I.nextTabbableNode(u))&&(O=T),O>=0){var Y=O===c.tabbableGroups.length-1?0:O+1,fe=c.tabbableGroups[Y];C=ee(u)>=0?fe.firstTabbableNode:fe.firstDomTabbableNode}else de(m)||(C=I.nextTabbableNode(u))}}else C=N("fallbackFocus");return C},$=function(f){var u=we(f);if(!(w(u,f)>=0)){if(ue(d.clickOutsideDeactivates,f)){p.deactivate({returnFocus:d.returnFocusOnDeactivate});return}ue(d.allowOutsideClick,f)||f.preventDefault()}},U=function(f){var u=we(f),m=w(u,f)>=0;if(m||u instanceof Document)m&&(c.mostRecentlyFocusedNode=u);else{f.stopImmediatePropagation();var y,b=!0;if(c.mostRecentlyFocusedNode)if(ee(c.mostRecentlyFocusedNode)>0){var C=w(c.mostRecentlyFocusedNode),T=c.containerGroups[C].tabbableNodes;if(T.length>0){var I=T.findIndex(function(v){return v===c.mostRecentlyFocusedNode});I>=0&&(d.isKeyForward(c.recentNavEvent)?I+1<T.length&&(y=T[I+1],b=!1):I-1>=0&&(y=T[I-1],b=!1))}}else c.containerGroups.some(function(v){return v.tabbableNodes.some(function(W){return ee(W)>0})})||(b=!1);else b=!1;b&&(y=Z({target:c.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(c.recentNavEvent)})),k(y||c.mostRecentlyFocusedNode||E())}c.recentNavEvent=void 0},X=function(f){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;c.recentNavEvent=f;var m=Z({event:f,isBackward:u});m&&(de(f)&&f.preventDefault(),k(m))},H=function(f){if(Ka(f)&&ue(d.escapeDeactivates,f)!==!1){f.preventDefault(),p.deactivate();return}(d.isKeyForward(f)||d.isKeyBackward(f))&&X(f,d.isKeyBackward(f))},z=function(f){var u=we(f);w(u,f)>=0||ue(d.clickOutsideDeactivates,f)||ue(d.allowOutsideClick,f)||(f.preventDefault(),f.stopImmediatePropagation())},V=function(){if(c.active)return nt.activateTrap(s,p),c.delayInitialFocusTimer=d.delayInitialFocus?ot(function(){k(E())}):k(E()),o.addEventListener("focusin",U,!0),o.addEventListener("mousedown",$,{capture:!0,passive:!1}),o.addEventListener("touchstart",$,{capture:!0,passive:!1}),o.addEventListener("click",z,{capture:!0,passive:!1}),o.addEventListener("keydown",H,{capture:!0,passive:!1}),p},j=function(){if(c.active)return o.removeEventListener("focusin",U,!0),o.removeEventListener("mousedown",$,!0),o.removeEventListener("touchstart",$,!0),o.removeEventListener("click",z,!0),o.removeEventListener("keydown",H,!0),p},_=function(f){var u=f.some(function(m){var y=Array.from(m.removedNodes);return y.some(function(b){return b===c.mostRecentlyFocusedNode})});u&&k(E())},F=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(_):void 0,R=function(){F&&(F.disconnect(),c.active&&!c.paused&&c.containers.map(function(f){F.observe(f,{subtree:!0,childList:!0})}))};return p={get active(){return c.active},get paused(){return c.paused},activate:function(f){if(c.active)return this;var u=g(f,"onActivate"),m=g(f,"onPostActivate"),y=g(f,"checkCanFocusTrap");y||B(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=o.activeElement,u==null||u();var b=function(){y&&B(),V(),R(),m==null||m()};return y?(y(c.containers.concat()).then(b,b),this):(b(),this)},deactivate:function(f){if(!c.active)return this;var u=at({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},f);clearTimeout(c.delayInitialFocusTimer),c.delayInitialFocusTimer=void 0,j(),c.active=!1,c.paused=!1,R(),nt.deactivateTrap(s,p);var m=g(u,"onDeactivate"),y=g(u,"onPostDeactivate"),b=g(u,"checkCanReturnFocus"),C=g(u,"returnFocus","returnFocusOnDeactivate");m==null||m();var T=function(){ot(function(){C&&k(x(c.nodeFocusedBeforeActivation)),y==null||y()})};return C&&b?(b(x(c.nodeFocusedBeforeActivation)).then(T,T),this):(T(),this)},pause:function(f){if(c.paused||!c.active)return this;var u=g(f,"onPause"),m=g(f,"onPostPause");return c.paused=!0,u==null||u(),j(),R(),m==null||m(),this},unpause:function(f){if(!c.paused||!c.active)return this;var u=g(f,"onUnpause"),m=g(f,"onPostUnpause");return c.paused=!1,u==null||u(),B(),V(),R(),m==null||m(),this},updateContainerElements:function(f){var u=[].concat(f).filter(Boolean);return c.containers=u.map(function(m){return typeof m=="string"?o.querySelector(m):m}),c.active&&B(),R(),this}},p.updateContainerElements(a),p};/*!
|
|
8
8
|
* focus-trap-vue v4.0.2
|
|
9
9
|
* (c) 2023 Eduardo San Martin Morote
|
|
10
10
|
* @license MIT
|
|
11
|
-
*/function or(n){return n}const Ga={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},qa=e.defineComponent({props:Object.assign({active:{type:Boolean,default:!0}},Ga),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(n,{slots:a,emit:r}){let o;const l=e.ref(null),d=e.computed(()=>{const p=l.value;return p&&(p instanceof HTMLElement?p:p.$el)});function c(){return o||(o=Wa(d.value,{escapeDeactivates:n.escapeDeactivates,allowOutsideClick:n.allowOutsideClick,returnFocusOnDeactivate:n.returnFocusOnDeactivate,clickOutsideDeactivates:n.clickOutsideDeactivates,onActivate:()=>{r("update:active",!0),r("activate")},onDeactivate:()=>{r("update:active",!1),r("deactivate")},onPostActivate:()=>r("postActivate"),onPostDeactivate:()=>r("postDeactivate"),initialFocus:n.initialFocus,fallbackFocus:n.fallbackFocus,tabbableOptions:n.tabbableOptions,delayInitialFocus:n.delayInitialFocus,preventScroll:n.preventScroll}))}return e.onMounted(()=>{e.watch(()=>n.active,p=>{p&&d.value?c().activate():o&&(o.deactivate(),(!d.value||d.value.nodeType===Node.COMMENT_NODE)&&(o=null))},{immediate:!0,flush:"post"})}),e.onUnmounted(()=>{o&&o.deactivate(),o=null}),{activate(){c().activate()},deactivate(){o&&o.deactivate()},renderImpl(){if(!a.default)return null;const p=a.default().filter(w=>w.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 it(){return{debounce:(a,r)=>{let o;return(...l)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{a(...l)},r)}}}}var Se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xa(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ce={exports:{}};Ce.exports,function(n,a){var r=200,o="__lodash_hash_undefined__",l=9007199254740991,d="[object Arguments]",c="[object Array]",p="[object Boolean]",g="[object Date]",w="[object Error]",N="[object Function]",E="[object GeneratorFunction]",B="[object Map]",x="[object Number]",k="[object Object]",F="[object Promise]",Z="[object RegExp]",$="[object Set]",W="[object String]",X="[object Symbol]",z="[object WeakMap]",U="[object ArrayBuffer]",V="[object DataView]",j="[object Float32Array]",_="[object Float64Array]",D="[object Int8Array]",R="[object Int16Array]",S="[object Int32Array]",f="[object Uint8Array]",u="[object Uint8ClampedArray]",m="[object Uint16Array]",y="[object Uint32Array]",h=/[\\^$.*+?()[\]{}|]/g,C=/\w*$/,T=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,v={};v[d]=v[c]=v[U]=v[V]=v[p]=v[g]=v[j]=v[_]=v[D]=v[R]=v[S]=v[B]=v[x]=v[k]=v[Z]=v[$]=v[W]=v[X]=v[f]=v[u]=v[m]=v[y]=!0,v[w]=v[N]=v[z]=!1;var G=typeof Se=="object"&&Se&&Se.Object===Object&&Se,te=typeof self=="object"&&self&&self.Object===Object&&self,O=G||te||Function("return this")(),Y=a&&!a.nodeType&&a,fe=Y&&!0&&n&&!n.nodeType&&n,me=fe&&fe.exports===Y;function pe(t,i){return t.set(i[0],i[1]),t}function Dn(t,i){return t.add(i),t}function Vn(t,i){for(var s=-1,b=t?t.length:0;++s<b&&i(t[s],s,t)!==!1;);return t}function Rn(t,i){for(var s=-1,b=i.length,A=t.length;++s<b;)t[A+s]=i[s];return t}function dt(t,i,s,b){var A=-1,M=t?t.length:0;for(b&&M&&(s=t[++A]);++A<M;)s=i(s,t[A],A,t);return s}function Ln(t,i){for(var s=-1,b=Array(t);++s<t;)b[s]=i(s);return b}function Mn(t,i){return t==null?void 0:t[i]}function ut(t){var i=!1;if(t!=null&&typeof t.toString!="function")try{i=!!(t+"")}catch{}return i}function ft(t){var i=-1,s=Array(t.size);return t.forEach(function(b,A){s[++i]=[A,b]}),s}function Fe(t,i){return function(s){return t(i(s))}}function mt(t){var i=-1,s=Array(t.size);return t.forEach(function(b){s[++i]=b}),s}var Pn=Array.prototype,jn=Function.prototype,_e=Object.prototype,De=O["__core-js_shared__"],pt=function(){var t=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),bt=jn.toString,J=_e.hasOwnProperty,Ee=_e.toString,Zn=RegExp("^"+bt.call(J).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ht=me?O.Buffer:void 0,gt=O.Symbol,vt=O.Uint8Array,Kn=Fe(Object.getPrototypeOf,Object),Hn=Object.create,zn=_e.propertyIsEnumerable,Un=Pn.splice,yt=Object.getOwnPropertySymbols,Wn=ht?ht.isBuffer:void 0,Gn=Fe(Object.keys,Object),Ve=se(O,"DataView"),be=se(O,"Map"),Re=se(O,"Promise"),Le=se(O,"Set"),Me=se(O,"WeakMap"),he=se(Object,"create"),qn=oe(Ve),Xn=oe(be),Yn=oe(Re),Jn=oe(Le),Qn=oe(Me),kt=gt?gt.prototype:void 0,wt=kt?kt.valueOf:void 0;function ae(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function eo(){this.__data__=he?he(null):{}}function to(t){return this.has(t)&&delete this.__data__[t]}function ao(t){var i=this.__data__;if(he){var s=i[t];return s===o?void 0:s}return J.call(i,t)?i[t]:void 0}function no(t){var i=this.__data__;return he?i[t]!==void 0:J.call(i,t)}function oo(t,i){var s=this.__data__;return s[t]=he&&i===void 0?o:i,this}ae.prototype.clear=eo,ae.prototype.delete=to,ae.prototype.get=ao,ae.prototype.has=no,ae.prototype.set=oo;function q(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function ro(){this.__data__=[]}function io(t){var i=this.__data__,s=Ne(i,t);if(s<0)return!1;var b=i.length-1;return s==b?i.pop():Un.call(i,s,1),!0}function co(t){var i=this.__data__,s=Ne(i,t);return s<0?void 0:i[s][1]}function so(t){return Ne(this.__data__,t)>-1}function lo(t,i){var s=this.__data__,b=Ne(s,t);return b<0?s.push([t,i]):s[b][1]=i,this}q.prototype.clear=ro,q.prototype.delete=io,q.prototype.get=co,q.prototype.has=so,q.prototype.set=lo;function ie(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function uo(){this.__data__={hash:new ae,map:new(be||q),string:new ae}}function fo(t){return Te(this,t).delete(t)}function mo(t){return Te(this,t).get(t)}function po(t){return Te(this,t).has(t)}function bo(t,i){return Te(this,t).set(t,i),this}ie.prototype.clear=uo,ie.prototype.delete=fo,ie.prototype.get=mo,ie.prototype.has=po,ie.prototype.set=bo;function ce(t){this.__data__=new q(t)}function ho(){this.__data__=new q}function go(t){return this.__data__.delete(t)}function vo(t){return this.__data__.get(t)}function yo(t){return this.__data__.has(t)}function ko(t,i){var s=this.__data__;if(s instanceof q){var b=s.__data__;if(!be||b.length<r-1)return b.push([t,i]),this;s=this.__data__=new ie(b)}return s.set(t,i),this}ce.prototype.clear=ho,ce.prototype.delete=go,ce.prototype.get=vo,ce.prototype.has=yo,ce.prototype.set=ko;function wo(t,i){var s=Ze(t)||zo(t)?Ln(t.length,String):[],b=s.length,A=!!b;for(var M in t)(i||J.call(t,M))&&!(A&&(M=="length"||jo(M,b)))&&s.push(M);return s}function St(t,i,s){var b=t[i];(!(J.call(t,i)&&Nt(b,s))||s===void 0&&!(i in t))&&(t[i]=s)}function Ne(t,i){for(var s=t.length;s--;)if(Nt(t[s][0],i))return s;return-1}function So(t,i){return t&&Ct(i,Ke(i),t)}function Pe(t,i,s,b,A,M,K){var P;if(b&&(P=M?b(t,A,M,K):b(t)),P!==void 0)return P;if(!Be(t))return t;var It=Ze(t);if(It){if(P=Lo(t),!i)return Do(t,P)}else{var le=ne(t),$t=le==N||le==E;if(Wo(t))return Bo(t,i);if(le==k||le==d||$t&&!M){if(ut(t))return M?t:{};if(P=Mo($t?{}:t),!i)return Vo(t,So(P,t))}else{if(!v[le])return M?t:{};P=Po(t,le,Pe,i)}}K||(K=new ce);var Ot=K.get(t);if(Ot)return Ot;if(K.set(t,P),!It)var At=s?Ro(t):Ke(t);return Vn(At||t,function(He,Ie){At&&(Ie=He,He=t[Ie]),St(P,Ie,Pe(He,i,s,b,Ie,t,K))}),P}function Co(t){return Be(t)?Hn(t):{}}function _o(t,i,s){var b=i(t);return Ze(t)?b:Rn(b,s(t))}function Eo(t){return Ee.call(t)}function No(t){if(!Be(t)||Ko(t))return!1;var i=Bt(t)||ut(t)?Zn:T;return i.test(oe(t))}function To(t){if(!Et(t))return Gn(t);var i=[];for(var s in Object(t))J.call(t,s)&&s!="constructor"&&i.push(s);return i}function Bo(t,i){if(i)return t.slice();var s=new t.constructor(t.length);return t.copy(s),s}function je(t){var i=new t.constructor(t.byteLength);return new vt(i).set(new vt(t)),i}function Io(t,i){var s=i?je(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function $o(t,i,s){var b=i?s(ft(t),!0):ft(t);return dt(b,pe,new t.constructor)}function Oo(t){var i=new t.constructor(t.source,C.exec(t));return i.lastIndex=t.lastIndex,i}function Ao(t,i,s){var b=i?s(mt(t),!0):mt(t);return dt(b,Dn,new t.constructor)}function xo(t){return wt?Object(wt.call(t)):{}}function Fo(t,i){var s=i?je(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Do(t,i){var s=-1,b=t.length;for(i||(i=Array(b));++s<b;)i[s]=t[s];return i}function Ct(t,i,s,b){s||(s={});for(var A=-1,M=i.length;++A<M;){var K=i[A],P=b?b(s[K],t[K],K,s,t):void 0;St(s,K,P===void 0?t[K]:P)}return s}function Vo(t,i){return Ct(t,_t(t),i)}function Ro(t){return _o(t,Ke,_t)}function Te(t,i){var s=t.__data__;return Zo(i)?s[typeof i=="string"?"string":"hash"]:s.map}function se(t,i){var s=Mn(t,i);return No(s)?s:void 0}var _t=yt?Fe(yt,Object):Xo,ne=Eo;(Ve&&ne(new Ve(new ArrayBuffer(1)))!=V||be&&ne(new be)!=B||Re&&ne(Re.resolve())!=F||Le&&ne(new Le)!=$||Me&&ne(new Me)!=z)&&(ne=function(t){var i=Ee.call(t),s=i==k?t.constructor:void 0,b=s?oe(s):void 0;if(b)switch(b){case qn:return V;case Xn:return B;case Yn:return F;case Jn:return $;case Qn:return z}return i});function Lo(t){var i=t.length,s=t.constructor(i);return i&&typeof t[0]=="string"&&J.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Mo(t){return typeof t.constructor=="function"&&!Et(t)?Co(Kn(t)):{}}function Po(t,i,s,b){var A=t.constructor;switch(i){case U:return je(t);case p:case g:return new A(+t);case V:return Io(t,b);case j:case _:case D:case R:case S:case f:case u:case m:case y:return Fo(t,b);case B:return $o(t,b,s);case x:case W:return new A(t);case Z:return Oo(t);case $:return Ao(t,b,s);case X:return xo(t)}}function jo(t,i){return i=i??l,!!i&&(typeof t=="number"||I.test(t))&&t>-1&&t%1==0&&t<i}function Zo(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function Ko(t){return!!pt&&pt in t}function Et(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||_e;return t===s}function oe(t){if(t!=null){try{return bt.call(t)}catch{}try{return t+""}catch{}}return""}function Ho(t){return Pe(t,!0,!0)}function Nt(t,i){return t===i||t!==t&&i!==i}function zo(t){return Uo(t)&&J.call(t,"callee")&&(!zn.call(t,"callee")||Ee.call(t)==d)}var Ze=Array.isArray;function Tt(t){return t!=null&&Go(t.length)&&!Bt(t)}function Uo(t){return qo(t)&&Tt(t)}var Wo=Wn||Yo;function Bt(t){var i=Be(t)?Ee.call(t):"";return i==N||i==E}function Go(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=l}function Be(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}function qo(t){return!!t&&typeof t=="object"}function Ke(t){return Tt(t)?wo(t):To(t)}function Xo(){return[]}function Yo(){return!1}n.exports=Ho}(Ce,Ce.exports);var Ya=Ce.exports;const Ja=Xa(Ya),Qa={key:0,class:"sidebar-header"},en={class:"sidebar-content-container"},tn={key:0,class:"sidebar-top"},an={"aria-label":"Main menu"},nn={key:0,class:"level-primary top-items"},on={key:1,class:"sidebar-level-divider",role:"separator"},rn={key:2,class:"level-primary bottom-items"},cn={class:"sidebar-footer"},ct=H(e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,default:()=>[]},headerHeight:{type:Number,default:60},topOffset:{type:Number,default:0},zIndex:{type:Number,default:3},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(n,{emit:a}){e.useCssVars(m=>({"5decedf8":p.value.mobileHeight,"621c03b8":p.value.mobileTop,"1a4a2eb0":n.zIndex,c3efec14:p.value.height,f812da34:p.value.top,"98cbd98c":w.value.marginTop,"3b672422":f.value,"3b821012":g.value.display,"4c860169":g.value.minHeight,"98cd1a16":N.value.top,"362eded8":N.value.zIndex}));const r=a,o=n,l=e.useSlots(),d=e.computed(()=>!!l.header),c=e.computed(()=>!!l.top),p=e.computed(()=>({mobileTop:o.mobileTopOffset&&o.mobileEnabled?`${o.mobileTopOffset}px`:o.topOffset?`${o.topOffset}px`:"0",top:o.topOffset?`${o.topOffset}px`:"0",mobileHeight:o.mobileTopOffset&&o.mobileEnabled?`calc(100% - ${o.mobileTopOffset}px)`:"100%",height:o.topOffset?`calc(100% - ${o.topOffset}px)`:"100%"})),g=e.computed(()=>({display:!o.mobileHeaderVisible&&o.mobileEnabled?"none":"flex",minHeight:`${o.headerHeight}px`})),w=e.computed(()=>({marginTop:d.value?`${o.headerHeight}px`:"0"})),N=e.computed(()=>({top:o.mobileTopOffset&&o.mobileEnabled?`${o.mobileTopOffset}px`:"0",zIndex:o.mobileOverlayZIndex!==null?o.mobileOverlayZIndex:o.zIndex>1?o.zIndex-1:1})),E=m=>Ja(m).map(h=>{var C,T,I;if(h){(!h.key||!((C=h.key)!=null&&C.trim()))&&(h.key=String(h.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!h.testId||!((T=h.testId)!=null&&T.trim()))&&(h.testId=String(h.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const v of h.items||[])v.parentKey=h.key,(!v.testId||!((I=v.testId)!=null&&I.trim()))&&(v.testId=String(v.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return h}),B=e.computed(()=>o.topItems.length?E(o.topItems):[]),x=e.computed(()=>o.bottomItems.length?E(o.bottomItems):[]),k=e.ref(o.open),F=m=>{var y,h;k.value!==m&&(k.value=m,r("toggle",m)),m?(y=document==null?void 0:document.body)==null||y.classList.add("kong-ui-app-sidebar-open"):(h=document==null?void 0:document.body)==null||h.classList.remove("kong-ui-app-sidebar-open"),$.value=!1},Z=()=>{o.mobileOverlayCloseOnClick&&F(!1)},$=e.ref(!1),W=m=>{$.value=!0,r("click",m),setTimeout(()=>{F(!1)},o.mobileCloseDelay)};e.watch(()=>o.open,m=>{F(m)});const{debounce:X}=it(),z=X(()=>{k.value&&U.value!==(window==null?void 0:window.innerWidth)&&(U.value=window==null?void 0:window.innerWidth,F(!1))},200),U=e.ref(),V=e.ref(!1),j=e.ref(),_=()=>{V.value||(V.value=!0,clearTimeout(j.value),j.value=setTimeout(()=>V.value=!1,1300))},D=e.ref(null),R=e.computed(()=>k.value&&o.mobileEnabled),S=async m=>{var y,h;m?(await e.nextTick(),await new Promise(C=>setTimeout(C,300)),(y=D.value)==null||y.activate()):(h=D.value)==null||h.deactivate()};e.watch(R,async m=>{m?await S(!0):await S(!1)},{immediate:!0});const f=e.ref("0px"),u=()=>{var v;if(!(/Mac|iPhone|iPod|iPad/i.test(navigator==null?void 0:navigator.platform)||/macOS|Mac|iPhone|iPod|iPad/i.test((v=navigator==null?void 0:navigator.userAgentData)==null?void 0:v.platform)))return;const y=document.createElement("div");y.style.visibility="hidden",y.style.width="100px",document.body.appendChild(y);const h=y.offsetWidth;y.style.overflow="scroll";const C=document.createElement("div");C.style.width="100%",y.appendChild(C);const T=C.offsetWidth;y.parentNode&&y.parentNode.removeChild(y),h-T===0&&(f.value="8px")};return e.onMounted(async()=>{U.value=window==null?void 0:window.innerWidth,window.addEventListener("resize",z),window.addEventListener("resize",_),await e.nextTick(),u()}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",z),window.removeEventListener("resize",_)}),(m,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[k.value&&n.mobileOverlay&&n.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:Z})):e.createCommentVNode("",!0),e.createVNode(e.unref(qa),{ref_key:"focusTrap",ref:D,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":!d.value,"mobile-header-hidden":n.mobileEnabled&&(!d.value||!n.mobileHeaderVisible),"mobile-disabled":!n.mobileEnabled,"disable-transitions":V.value}]),tabindex:"-1"},[d.value?(e.openBlock(),e.createElementBlock("div",Qa,[e.renderSlot(m.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",en,[c.value?(e.openBlock(),e.createElementBlock("div",tn,[e.renderSlot(m.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",an,[B.value.length?(e.openBlock(),e.createElementBlock("ul",nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,h=>(e.openBlock(),e.createBlock(We,{key:h.name,item:h,onClick:W},{[`sidebar-icon-${h.key}`]:e.withCtx(()=>[e.renderSlot(m.$slots,`sidebar-icon-${h.key}`,{},void 0,!0)]),_:2},1032,["item"]))),128))])):e.createCommentVNode("",!0),B.value.length&&x.value.length?(e.openBlock(),e.createElementBlock("div",on)):e.createCommentVNode("",!0),x.value.length?(e.openBlock(),e.createElementBlock("ul",rn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,h=>(e.openBlock(),e.createBlock(We,{key:h.name,item:h,onClick:W},{[`sidebar-icon-${h.key}`]:e.withCtx(()=>[e.renderSlot(m.$slots,`sidebar-icon-${h.key}`,{},void 0,!0)]),_:2},1032,["item"]))),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",cn,[e.renderSlot(m.$slots,"footer",{},void 0,!0)])],2)]),_:3},512)],64))}}),[["__scopeId","data-v-843a05a4"]]),xe=n=>(e.pushScopeId("data-v-b411bcf5"),n=n(),e.popScopeId(),n),sn=["aria-label"],ln=[xe(()=>e.createElementVNode("span",{class:"line"},null,-1)),xe(()=>e.createElementVNode("span",{class:"line"},null,-1)),xe(()=>e.createElementVNode("span",{class:"line"},null,-1))],st=H(e.defineComponent({__name:"SidebarToggle",props:{active:{type:Boolean,default:!1}},emits:["toggle"],setup(n,{emit:a}){const r=a,o=n,l=e.ref(o.active||!1),d=c=>{c.preventDefault(),l.value=!l.value,r("toggle",l.value)};return e.watch(()=>o.active,c=>{l.value=c}),(c,p)=>(e.openBlock(),e.createElementBlock("a",{"aria-haspopup":"true","aria-label":l.value?"Close Main Menu":"Open Main Menu",class:e.normalizeClass(["sidebar-menu-toggle",{active:l.value}]),href:"#",role:"button",onClick:e.withModifiers(d,["prevent"])},ln,10,sn))}}),[["__scopeId","data-v-b411bcf5"]]),dn="#ffffff",un="#000933",fn="#000933",mn="#ffffff",pn="0px",bn="4px",hn=n=>(e.pushScopeId("data-v-47c01124"),n=n(),e.popScopeId(),n),gn={id:"kong-ui-app-layout-notification"},vn={class:"mobile-logo"},yn={key:0,class:"navbar-logo"},kn={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},wn={class:"kong-ui-app-layout-content"},Sn={class:"kong-ui-app-layout-content-inner"},Cn=hn(()=>e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),lt=H(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:()=>[]},theme:{type:String,default:"light",validator:n=>["light","dark"].includes(n)}},emits:["sidebar-click"],setup(n,{emit:a}){e.useCssVars(_=>({"30c6990a":$.value,40906680:W.value,"169c1fd8":Z.value,"75276abc":X.value,af1d4ea2:z.value}));const r=n,o=a,l=e.useSlots(),d=e.reactive({navbarLeft:e.computed(()=>!!l["navbar-left"]),navbarCenter:e.computed(()=>!!l["navbar-center"]),navbarRight:e.computed(()=>!!l["navbar-right"]),navbarLogo:e.computed(()=>!!l["navbar-logo"]),navbarMobileLogo:e.computed(()=>!!l["navbar-mobile-logo"]),sidebarHeader:e.computed(()=>!!l["sidebar-header"]),sidebarTop:e.computed(()=>!!l["sidebar-top"]),sidebarFooter:e.computed(()=>!!l["sidebar-footer"])}),c=e.computed(()=>r.hideDefaultSlot),p=e.reactive({hidden:e.computed(()=>r.navbarHidden)}),g=e.reactive({topItems:e.computed(()=>r.sidebarTopItems),bottomItems:e.computed(()=>r.sidebarBottomItems),open:e.computed(()=>r.sidebarOpen),hidden:e.computed(()=>r.sidebarHidden)}),w=_=>{o("sidebar-click",_)},N=e.ref(!1),E=_=>{N.value=_};e.watchEffect(()=>{N.value=e.toRef(g,"open").value||!1});const B=e.ref(0),x=e.ref(60),k=e.ref(0),F=e.computed(()=>p.hidden?k.value:x.value+k.value),Z=e.computed(()=>r.theme==="light"?fn:mn),$=e.computed(()=>r.theme==="light"?dn:un),W=e.computed(()=>r.theme==="light"?"var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)":"none"),X=e.computed(()=>`${F.value}px`),z=e.computed(()=>g.hidden||p.hidden?pn:bn),{debounce:U}=it(),V=U((_=!1)=>{if(_||B.value!==(window==null?void 0:window.innerWidth)){B.value=window==null?void 0:window.innerWidth;const D=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");D&&(k.value=D.offsetHeight)}},200),j=e.ref();return e.onMounted(()=>{var D,R;(D=document==null?void 0:document.body)==null||D.classList.add("kong-ui-app-layout-body"),(R=document==null?void 0:document.documentElement)==null||R.classList.add("kong-ui-app-layout-html"),B.value=window==null?void 0:window.innerWidth,V(!0);const _=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");_&&(j.value=new ResizeObserver(S=>{window.requestAnimationFrame(()=>{if(!(!Array.isArray(S)||!S.length))for(const f of S){const u=f.contentRect.height;k.value!==u&&(k.value=u)}})}),j.value.observe(_)),window.addEventListener("resize",V)}),e.onBeforeUnmount(()=>{j.value&&j.value.disconnect(),window.removeEventListener("resize",V)}),(_,D)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":p.hidden},{"sidebar-hidden":g.hidden}]])},[e.createElementVNode("div",gn,[e.renderSlot(_.$slots,"notification",{},void 0,!0)]),p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ue,{key:String(g.hidden),"left-offset":g.hidden?0:void 0,"top-offset":k.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[g.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(st,{key:0,active:N.value,onToggle:E},null,8,["active"]))]),_:2},[d.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",vn,[e.renderSlot(_.$slots,"navbar-mobile-logo",{},void 0,!0)])]),key:"0"}:void 0,d.navbarLogo?{name:"logo",fn:e.withCtx(()=>[g.hidden?(e.openBlock(),e.createElementBlock("div",yn,[e.renderSlot(_.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,d.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,d.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,d.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-right",{},void 0,!0)]),key:"4"}:void 0]),1032,["left-offset","top-offset"])),g.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ct,{key:1,"bottom-items":g.bottomItems,"header-height":x.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":F.value,open:N.value,"top-items":g.topItems,"top-offset":k.value,onClick:w,onToggle:E},e.createSlots({_:2},[d.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,d.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0,d.sidebarFooter?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-footer",{},void 0,!0)]),key:"2"}:void 0,e.renderList([...g.topItems||[],...g.bottomItems||[]],R=>({name:`sidebar-icon-${R.key}`,fn:e.withCtx(()=>[e.renderSlot(_.$slots,`sidebar-icon-${R.key}`,{},void 0,!0)])}))]),1032,["bottom-items","header-height","mobile-top-offset","open","top-items","top-offset"])),e.createElementVNode("main",kn,[e.createElementVNode("div",wn,[e.createElementVNode("div",Sn,[Cn,e.renderSlot(_.$slots,"app-error",{},void 0,!0),c.value?e.createCommentVNode("",!0):e.renderSlot(_.$slots,"default",{key:0},void 0,!0)])])])],2))}}),[["__scopeId","data-v-47c01124"]]),_n={class:"kong-ui-app-page-header"},En={key:0,class:"page-header-breadcrumbs","data-testid":"page-header-breadcrumbs"},Nn={class:"page-header-title-section"},Tn={class:"page-header-title-wrapper"},Bn={key:0,class:"page-header-title-before","data-testid":"page-header-title-before"},In=["title"],$n={key:1,class:"page-header-title-after","data-testid":"page-header-title-after"},On={key:0,class:"page-header-actions","data-testid":"page-header-actions"},An={key:1,class:"page-header-section-below","data-testid":"page-header-section-below"},xn=H(e.defineComponent({__name:"AppPageHeader",props:{title:{type:String,default:""},breadcrumbs:{type:Array,default:()=>[]}},setup(n){const a=n,r=e.useSlots(),o=e.computed(()=>{var d;return!!((d=a.breadcrumbs)!=null&&d.length)}),l=e.computed(()=>Object.keys(r).filter(d=>d.startsWith("icon-")));return(d,c)=>{const p=e.resolveComponent("KBreadcrumbs");return e.openBlock(),e.createElementBlock("div",_n,[o.value?(e.openBlock(),e.createElementBlock("div",En,[e.createVNode(p,{"item-max-width":"150",items:n.breadcrumbs},e.createSlots({_:2},[e.renderList(l.value,g=>({name:g,fn:e.withCtx(()=>[e.renderSlot(d.$slots,g,{},void 0,!0)])}))]),1032,["items"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Nn,[e.createElementVNode("div",Tn,[d.$slots["title-before"]?(e.openBlock(),e.createElementBlock("div",Bn,[e.renderSlot(d.$slots,"title-before",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("h1",{class:"page-header-title","data-testid":"page-header-title",title:n.title},e.toDisplayString(n.title),9,In),d.$slots["title-after"]?(e.openBlock(),e.createElementBlock("div",$n,[e.renderSlot(d.$slots,"title-after",{},void 0,!0)])):e.createCommentVNode("",!0)]),d.$slots.actions?(e.openBlock(),e.createElementBlock("div",On,[e.renderSlot(d.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)]),d.$slots.below?(e.openBlock(),e.createElementBlock("div",An,[e.renderSlot(d.$slots,"below",{},void 0,!0)])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-204b7f98"]]),Fn={install:(n,a={})=>{n.component(a.name||"AppLayout",lt)}};L.AccountDropdown=Ft,L.AppAboutSection=Wt,L.AppError=oa,L.AppLayout=lt,L.AppNavbar=Ue,L.AppPageHeader=xn,L.AppSidebar=ct,L.SidebarToggle=st,L.default=Fn,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
11
|
+
*/function or(n){return n}const Ga={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},qa=e.defineComponent({props:Object.assign({active:{type:Boolean,default:!0}},Ga),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(n,{slots:a,emit:r}){let o;const s=e.ref(null),d=e.computed(()=>{const p=s.value;return p&&(p instanceof HTMLElement?p:p.$el)});function c(){return o||(o=Wa(d.value,{escapeDeactivates:n.escapeDeactivates,allowOutsideClick:n.allowOutsideClick,returnFocusOnDeactivate:n.returnFocusOnDeactivate,clickOutsideDeactivates:n.clickOutsideDeactivates,onActivate:()=>{r("update:active",!0),r("activate")},onDeactivate:()=>{r("update:active",!1),r("deactivate")},onPostActivate:()=>r("postActivate"),onPostDeactivate:()=>r("postDeactivate"),initialFocus:n.initialFocus,fallbackFocus:n.fallbackFocus,tabbableOptions:n.tabbableOptions,delayInitialFocus:n.delayInitialFocus,preventScroll:n.preventScroll}))}return e.onMounted(()=>{e.watch(()=>n.active,p=>{p&&d.value?c().activate():o&&(o.deactivate(),(!d.value||d.value.nodeType===Node.COMMENT_NODE)&&(o=null))},{immediate:!0,flush:"post"})}),e.onUnmounted(()=>{o&&o.deactivate(),o=null}),{activate(){c().activate()},deactivate(){o&&o.deactivate()},renderImpl(){if(!a.default)return null;const p=a.default().filter(w=>w.type!==e.Comment);return!p||!p.length||p.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),p):e.cloneVNode(p[0],{ref:s})}}}});function it(){return{debounce:(a,r)=>{let o;return(...s)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{a(...s)},r)}}}}var Se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xa(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ce={exports:{}};Ce.exports,function(n,a){var r=200,o="__lodash_hash_undefined__",s=9007199254740991,d="[object Arguments]",c="[object Array]",p="[object Boolean]",g="[object Date]",w="[object Error]",N="[object Function]",E="[object GeneratorFunction]",B="[object Map]",A="[object Number]",k="[object Object]",x="[object Promise]",Z="[object RegExp]",$="[object Set]",U="[object String]",X="[object Symbol]",H="[object WeakMap]",z="[object ArrayBuffer]",V="[object DataView]",j="[object Float32Array]",_="[object Float64Array]",F="[object Int8Array]",R="[object Int16Array]",S="[object Int32Array]",f="[object Uint8Array]",u="[object Uint8ClampedArray]",m="[object Uint16Array]",y="[object Uint32Array]",b=/[\\^$.*+?()[\]{}|]/g,C=/\w*$/,T=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,v={};v[d]=v[c]=v[z]=v[V]=v[p]=v[g]=v[j]=v[_]=v[F]=v[R]=v[S]=v[B]=v[A]=v[k]=v[Z]=v[$]=v[U]=v[X]=v[f]=v[u]=v[m]=v[y]=!0,v[w]=v[N]=v[H]=!1;var W=typeof Se=="object"&&Se&&Se.Object===Object&&Se,te=typeof self=="object"&&self&&self.Object===Object&&self,O=W||te||Function("return this")(),Y=a&&!a.nodeType&&a,fe=Y&&!0&&n&&!n.nodeType&&n,me=fe&&fe.exports===Y;function pe(t,i){return t.set(i[0],i[1]),t}function Dn(t,i){return t.add(i),t}function Vn(t,i){for(var l=-1,h=t?t.length:0;++l<h&&i(t[l],l,t)!==!1;);return t}function Rn(t,i){for(var l=-1,h=i.length,D=t.length;++l<h;)t[D+l]=i[l];return t}function dt(t,i,l,h){for(var D=-1,M=t?t.length:0;++D<M;)l=i(l,t[D],D,t);return l}function Ln(t,i){for(var l=-1,h=Array(t);++l<t;)h[l]=i(l);return h}function Mn(t,i){return t==null?void 0:t[i]}function ut(t){var i=!1;if(t!=null&&typeof t.toString!="function")try{i=!!(t+"")}catch{}return i}function ft(t){var i=-1,l=Array(t.size);return t.forEach(function(h,D){l[++i]=[D,h]}),l}function Fe(t,i){return function(l){return t(i(l))}}function mt(t){var i=-1,l=Array(t.size);return t.forEach(function(h){l[++i]=h}),l}var Pn=Array.prototype,jn=Function.prototype,_e=Object.prototype,De=O["__core-js_shared__"],pt=function(){var t=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),bt=jn.toString,J=_e.hasOwnProperty,Ee=_e.toString,Zn=RegExp("^"+bt.call(J).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ht=me?O.Buffer:void 0,gt=O.Symbol,vt=O.Uint8Array,Kn=Fe(Object.getPrototypeOf,Object),Hn=Object.create,zn=_e.propertyIsEnumerable,Un=Pn.splice,yt=Object.getOwnPropertySymbols,Wn=ht?ht.isBuffer:void 0,Gn=Fe(Object.keys,Object),Ve=se(O,"DataView"),be=se(O,"Map"),Re=se(O,"Promise"),Le=se(O,"Set"),Me=se(O,"WeakMap"),he=se(Object,"create"),qn=oe(Ve),Xn=oe(be),Yn=oe(Re),Jn=oe(Le),Qn=oe(Me),kt=gt?gt.prototype:void 0,wt=kt?kt.valueOf:void 0;function ae(t){var i=-1,l=t?t.length:0;for(this.clear();++i<l;){var h=t[i];this.set(h[0],h[1])}}function eo(){this.__data__=he?he(null):{}}function to(t){return this.has(t)&&delete this.__data__[t]}function ao(t){var i=this.__data__;if(he){var l=i[t];return l===o?void 0:l}return J.call(i,t)?i[t]:void 0}function no(t){var i=this.__data__;return he?i[t]!==void 0:J.call(i,t)}function oo(t,i){var l=this.__data__;return l[t]=he&&i===void 0?o:i,this}ae.prototype.clear=eo,ae.prototype.delete=to,ae.prototype.get=ao,ae.prototype.has=no,ae.prototype.set=oo;function G(t){var i=-1,l=t?t.length:0;for(this.clear();++i<l;){var h=t[i];this.set(h[0],h[1])}}function ro(){this.__data__=[]}function io(t){var i=this.__data__,l=Ne(i,t);if(l<0)return!1;var h=i.length-1;return l==h?i.pop():Un.call(i,l,1),!0}function co(t){var i=this.__data__,l=Ne(i,t);return l<0?void 0:i[l][1]}function so(t){return Ne(this.__data__,t)>-1}function lo(t,i){var l=this.__data__,h=Ne(l,t);return h<0?l.push([t,i]):l[h][1]=i,this}G.prototype.clear=ro,G.prototype.delete=io,G.prototype.get=co,G.prototype.has=so,G.prototype.set=lo;function ie(t){var i=-1,l=t?t.length:0;for(this.clear();++i<l;){var h=t[i];this.set(h[0],h[1])}}function uo(){this.__data__={hash:new ae,map:new(be||G),string:new ae}}function fo(t){return Te(this,t).delete(t)}function mo(t){return Te(this,t).get(t)}function po(t){return Te(this,t).has(t)}function bo(t,i){return Te(this,t).set(t,i),this}ie.prototype.clear=uo,ie.prototype.delete=fo,ie.prototype.get=mo,ie.prototype.has=po,ie.prototype.set=bo;function ce(t){this.__data__=new G(t)}function ho(){this.__data__=new G}function go(t){return this.__data__.delete(t)}function vo(t){return this.__data__.get(t)}function yo(t){return this.__data__.has(t)}function ko(t,i){var l=this.__data__;if(l instanceof G){var h=l.__data__;if(!be||h.length<r-1)return h.push([t,i]),this;l=this.__data__=new ie(h)}return l.set(t,i),this}ce.prototype.clear=ho,ce.prototype.delete=go,ce.prototype.get=vo,ce.prototype.has=yo,ce.prototype.set=ko;function wo(t,i){var l=Ze(t)||zo(t)?Ln(t.length,String):[],h=l.length,D=!!h;for(var M in t)J.call(t,M)&&!(D&&(M=="length"||jo(M,h)))&&l.push(M);return l}function St(t,i,l){var h=t[i];(!(J.call(t,i)&&Nt(h,l))||l===void 0&&!(i in t))&&(t[i]=l)}function Ne(t,i){for(var l=t.length;l--;)if(Nt(t[l][0],i))return l;return-1}function So(t,i){return t&&Ct(i,Ke(i),t)}function Pe(t,i,l,h,D,M,q){var P;if(h&&(P=M?h(t,D,M,q):h(t)),P!==void 0)return P;if(!Be(t))return t;var It=Ze(t);if(It){if(P=Lo(t),!i)return Do(t,P)}else{var le=ne(t),$t=le==N||le==E;if(Wo(t))return Bo(t,i);if(le==k||le==d||$t&&!M){if(ut(t))return M?t:{};if(P=Mo($t?{}:t),!i)return Vo(t,So(P,t))}else{if(!v[le])return M?t:{};P=Po(t,le,Pe,i)}}q||(q=new ce);var Ot=q.get(t);if(Ot)return Ot;if(q.set(t,P),!It)var At=l?Ro(t):Ke(t);return Vn(At||t,function(He,Ie){At&&(Ie=He,He=t[Ie]),St(P,Ie,Pe(He,i,l,h,Ie,t,q))}),P}function Co(t){return Be(t)?Hn(t):{}}function _o(t,i,l){var h=i(t);return Ze(t)?h:Rn(h,l(t))}function Eo(t){return Ee.call(t)}function No(t){if(!Be(t)||Ko(t))return!1;var i=Bt(t)||ut(t)?Zn:T;return i.test(oe(t))}function To(t){if(!Et(t))return Gn(t);var i=[];for(var l in Object(t))J.call(t,l)&&l!="constructor"&&i.push(l);return i}function Bo(t,i){if(i)return t.slice();var l=new t.constructor(t.length);return t.copy(l),l}function je(t){var i=new t.constructor(t.byteLength);return new vt(i).set(new vt(t)),i}function Io(t,i){var l=i?je(t.buffer):t.buffer;return new t.constructor(l,t.byteOffset,t.byteLength)}function $o(t,i,l){var h=i?l(ft(t),!0):ft(t);return dt(h,pe,new t.constructor)}function Oo(t){var i=new t.constructor(t.source,C.exec(t));return i.lastIndex=t.lastIndex,i}function Ao(t,i,l){var h=i?l(mt(t),!0):mt(t);return dt(h,Dn,new t.constructor)}function xo(t){return wt?Object(wt.call(t)):{}}function Fo(t,i){var l=i?je(t.buffer):t.buffer;return new t.constructor(l,t.byteOffset,t.length)}function Do(t,i){var l=-1,h=t.length;for(i||(i=Array(h));++l<h;)i[l]=t[l];return i}function Ct(t,i,l,h){l||(l={});for(var D=-1,M=i.length;++D<M;){var q=i[D],P=void 0;St(l,q,P===void 0?t[q]:P)}return l}function Vo(t,i){return Ct(t,_t(t),i)}function Ro(t){return _o(t,Ke,_t)}function Te(t,i){var l=t.__data__;return Zo(i)?l[typeof i=="string"?"string":"hash"]:l.map}function se(t,i){var l=Mn(t,i);return No(l)?l:void 0}var _t=yt?Fe(yt,Object):Xo,ne=Eo;(Ve&&ne(new Ve(new ArrayBuffer(1)))!=V||be&&ne(new be)!=B||Re&&ne(Re.resolve())!=x||Le&&ne(new Le)!=$||Me&&ne(new Me)!=H)&&(ne=function(t){var i=Ee.call(t),l=i==k?t.constructor:void 0,h=l?oe(l):void 0;if(h)switch(h){case qn:return V;case Xn:return B;case Yn:return x;case Jn:return $;case Qn:return H}return i});function Lo(t){var i=t.length,l=t.constructor(i);return i&&typeof t[0]=="string"&&J.call(t,"index")&&(l.index=t.index,l.input=t.input),l}function Mo(t){return typeof t.constructor=="function"&&!Et(t)?Co(Kn(t)):{}}function Po(t,i,l,h){var D=t.constructor;switch(i){case z:return je(t);case p:case g:return new D(+t);case V:return Io(t,h);case j:case _:case F:case R:case S:case f:case u:case m:case y:return Fo(t,h);case B:return $o(t,h,l);case A:case U:return new D(t);case Z:return Oo(t);case $:return Ao(t,h,l);case X:return xo(t)}}function jo(t,i){return i=i??s,!!i&&(typeof t=="number"||I.test(t))&&t>-1&&t%1==0&&t<i}function Zo(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function Ko(t){return!!pt&&pt in t}function Et(t){var i=t&&t.constructor,l=typeof i=="function"&&i.prototype||_e;return t===l}function oe(t){if(t!=null){try{return bt.call(t)}catch{}try{return t+""}catch{}}return""}function Ho(t){return Pe(t,!0,!0)}function Nt(t,i){return t===i||t!==t&&i!==i}function zo(t){return Uo(t)&&J.call(t,"callee")&&(!zn.call(t,"callee")||Ee.call(t)==d)}var Ze=Array.isArray;function Tt(t){return t!=null&&Go(t.length)&&!Bt(t)}function Uo(t){return qo(t)&&Tt(t)}var Wo=Wn||Yo;function Bt(t){var i=Be(t)?Ee.call(t):"";return i==N||i==E}function Go(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=s}function Be(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}function qo(t){return!!t&&typeof t=="object"}function Ke(t){return Tt(t)?wo(t):To(t)}function Xo(){return[]}function Yo(){return!1}n.exports=Ho}(Ce,Ce.exports);var Ya=Ce.exports;const Ja=Xa(Ya),Qa={key:0,class:"sidebar-header"},en={class:"sidebar-content-container"},tn={key:0,class:"sidebar-top"},an={"aria-label":"Main menu"},nn={key:0,class:"level-primary top-items"},on={key:1,class:"sidebar-level-divider",role:"separator"},rn={key:2,class:"level-primary bottom-items"},cn={class:"sidebar-footer"},ct=K(e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,default:()=>[]},headerHeight:{type:Number,default:60},topOffset:{type:Number,default:0},zIndex:{type:Number,default:3},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(n,{emit:a}){e.useCssVars(m=>({"5decedf8":p.value.mobileHeight,"621c03b8":p.value.mobileTop,"1a4a2eb0":n.zIndex,c3efec14:p.value.height,f812da34:p.value.top,"98cbd98c":w.value.marginTop,"3b672422":f.value,"3b821012":g.value.display,"4c860169":g.value.minHeight,"98cd1a16":N.value.top,"362eded8":N.value.zIndex}));const r=a,o=n,s=e.useSlots(),d=e.computed(()=>!!s.header),c=e.computed(()=>!!s.top),p=e.computed(()=>({mobileTop:o.mobileTopOffset&&o.mobileEnabled?`${o.mobileTopOffset}px`:o.topOffset?`${o.topOffset}px`:"0",top:o.topOffset?`${o.topOffset}px`:"0",mobileHeight:o.mobileTopOffset&&o.mobileEnabled?`calc(100% - ${o.mobileTopOffset}px)`:"100%",height:o.topOffset?`calc(100% - ${o.topOffset}px)`:"100%"})),g=e.computed(()=>({display:!o.mobileHeaderVisible&&o.mobileEnabled?"none":"flex",minHeight:`${o.headerHeight}px`})),w=e.computed(()=>({marginTop:d.value?`${o.headerHeight}px`:"0"})),N=e.computed(()=>({top:o.mobileTopOffset&&o.mobileEnabled?`${o.mobileTopOffset}px`:"0",zIndex:o.mobileOverlayZIndex!==null?o.mobileOverlayZIndex:o.zIndex>1?o.zIndex-1:1})),E=m=>Ja(m).map(b=>{var C,T,I;if(b){(!b.key||!((C=b.key)!=null&&C.trim()))&&(b.key=String(b.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!b.testId||!((T=b.testId)!=null&&T.trim()))&&(b.testId=String(b.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const v of b.items||[])v.parentKey=b.key,(!v.testId||!((I=v.testId)!=null&&I.trim()))&&(v.testId=String(v.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return b}),B=e.computed(()=>o.topItems.length?E(o.topItems):[]),A=e.computed(()=>o.bottomItems.length?E(o.bottomItems):[]),k=e.ref(o.open),x=m=>{var y,b;k.value!==m&&(k.value=m,r("toggle",m)),m?(y=document==null?void 0:document.body)==null||y.classList.add("kong-ui-app-sidebar-open"):(b=document==null?void 0:document.body)==null||b.classList.remove("kong-ui-app-sidebar-open"),$.value=!1},Z=()=>{o.mobileOverlayCloseOnClick&&x(!1)},$=e.ref(!1),U=m=>{$.value=!0,r("click",m),setTimeout(()=>{x(!1)},o.mobileCloseDelay)};e.watch(()=>o.open,m=>{x(m)});const{debounce:X}=it(),H=X(()=>{k.value&&z.value!==(window==null?void 0:window.innerWidth)&&(z.value=window==null?void 0:window.innerWidth,x(!1))},200),z=e.ref(),V=e.ref(!1),j=e.ref(),_=()=>{V.value||(V.value=!0,clearTimeout(j.value),j.value=setTimeout(()=>V.value=!1,1300))},F=e.ref(null),R=e.computed(()=>k.value&&o.mobileEnabled),S=async m=>{var y,b;m?(await e.nextTick(),await new Promise(C=>setTimeout(C,300)),(y=F.value)==null||y.activate()):(b=F.value)==null||b.deactivate()};e.watch(R,async m=>{m?await S(!0):await S(!1)},{immediate:!0});const f=e.ref("0px"),u=()=>{var v;if(!(/Mac|iPhone|iPod|iPad/i.test(navigator==null?void 0:navigator.platform)||/macOS|Mac|iPhone|iPod|iPad/i.test((v=navigator==null?void 0:navigator.userAgentData)==null?void 0:v.platform)))return;const y=document.createElement("div");y.style.visibility="hidden",y.style.width="100px",document.body.appendChild(y);const b=y.offsetWidth;y.style.overflow="scroll";const C=document.createElement("div");C.style.width="100%",y.appendChild(C);const T=C.offsetWidth;y.parentNode&&y.parentNode.removeChild(y),b-T===0&&(f.value="8px")};return e.onMounted(async()=>{z.value=window==null?void 0:window.innerWidth,window.addEventListener("resize",H),window.addEventListener("resize",_),await e.nextTick(),u()}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",H),window.removeEventListener("resize",_)}),(m,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[k.value&&n.mobileOverlay&&n.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:Z})):e.createCommentVNode("",!0),e.createVNode(e.unref(qa),{ref_key:"focusTrap",ref:F,active:!1,"allow-outside-click":"","fallback-focus":".kong-ui-app-sidebar"},{default:e.withCtx(()=>[e.createElementVNode("aside",{class:e.normalizeClass(["kong-ui-app-sidebar",{"sidebar-open":k.value,"no-sidebar-header":!d.value,"mobile-header-hidden":n.mobileEnabled&&(!d.value||!n.mobileHeaderVisible),"mobile-disabled":!n.mobileEnabled,"disable-transitions":V.value}]),tabindex:"-1"},[d.value?(e.openBlock(),e.createElementBlock("div",Qa,[e.renderSlot(m.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",en,[c.value?(e.openBlock(),e.createElementBlock("div",tn,[e.renderSlot(m.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",an,[B.value.length?(e.openBlock(),e.createElementBlock("ul",nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,b=>(e.openBlock(),e.createBlock(We,{key:b.name,item:b,onClick:U},{[`sidebar-icon-${b.key}`]:e.withCtx(()=>[e.renderSlot(m.$slots,`sidebar-icon-${b.key}`,{},void 0,!0)]),_:2},1032,["item"]))),128))])):e.createCommentVNode("",!0),B.value.length&&A.value.length?(e.openBlock(),e.createElementBlock("div",on)):e.createCommentVNode("",!0),A.value.length?(e.openBlock(),e.createElementBlock("ul",rn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,b=>(e.openBlock(),e.createBlock(We,{key:b.name,item:b,onClick:U},{[`sidebar-icon-${b.key}`]:e.withCtx(()=>[e.renderSlot(m.$slots,`sidebar-icon-${b.key}`,{},void 0,!0)]),_:2},1032,["item"]))),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",cn,[e.renderSlot(m.$slots,"footer",{},void 0,!0)])],2)]),_:3},512)],64))}}),[["__scopeId","data-v-843a05a4"]]),xe=n=>(e.pushScopeId("data-v-b411bcf5"),n=n(),e.popScopeId(),n),sn=["aria-label"],ln=[xe(()=>e.createElementVNode("span",{class:"line"},null,-1)),xe(()=>e.createElementVNode("span",{class:"line"},null,-1)),xe(()=>e.createElementVNode("span",{class:"line"},null,-1))],st=K(e.defineComponent({__name:"SidebarToggle",props:{active:{type:Boolean,default:!1}},emits:["toggle"],setup(n,{emit:a}){const r=a,o=n,s=e.ref(o.active||!1),d=c=>{c.preventDefault(),s.value=!s.value,r("toggle",s.value)};return e.watch(()=>o.active,c=>{s.value=c}),(c,p)=>(e.openBlock(),e.createElementBlock("a",{"aria-haspopup":"true","aria-label":s.value?"Close Main Menu":"Open Main Menu",class:e.normalizeClass(["sidebar-menu-toggle",{active:s.value}]),href:"#",role:"button",onClick:e.withModifiers(d,["prevent"])},ln,10,sn))}}),[["__scopeId","data-v-b411bcf5"]]),dn="#ffffff",un="#000933",fn="#000933",mn="#ffffff",pn="0px",bn="4px",hn=n=>(e.pushScopeId("data-v-47c01124"),n=n(),e.popScopeId(),n),gn={id:"kong-ui-app-layout-notification"},vn={class:"mobile-logo"},yn={key:0,class:"navbar-logo"},kn={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},wn={class:"kong-ui-app-layout-content"},Sn={class:"kong-ui-app-layout-content-inner"},Cn=hn(()=>e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),lt=K(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:()=>[]},theme:{type:String,default:"light",validator:n=>["light","dark"].includes(n)}},emits:["sidebar-click"],setup(n,{emit:a}){e.useCssVars(_=>({"30c6990a":$.value,40906680:U.value,"169c1fd8":Z.value,"75276abc":X.value,af1d4ea2:H.value}));const r=n,o=a,s=e.useSlots(),d=e.reactive({navbarLeft:e.computed(()=>!!s["navbar-left"]),navbarCenter:e.computed(()=>!!s["navbar-center"]),navbarRight:e.computed(()=>!!s["navbar-right"]),navbarLogo:e.computed(()=>!!s["navbar-logo"]),navbarMobileLogo:e.computed(()=>!!s["navbar-mobile-logo"]),sidebarHeader:e.computed(()=>!!s["sidebar-header"]),sidebarTop:e.computed(()=>!!s["sidebar-top"]),sidebarFooter:e.computed(()=>!!s["sidebar-footer"])}),c=e.computed(()=>r.hideDefaultSlot),p=e.reactive({hidden:e.computed(()=>r.navbarHidden)}),g=e.reactive({topItems:e.computed(()=>r.sidebarTopItems),bottomItems:e.computed(()=>r.sidebarBottomItems),open:e.computed(()=>r.sidebarOpen),hidden:e.computed(()=>r.sidebarHidden)}),w=_=>{o("sidebar-click",_)},N=e.ref(!1),E=_=>{N.value=_};e.watchEffect(()=>{N.value=e.toRef(g,"open").value||!1});const B=e.ref(0),A=e.ref(60),k=e.ref(0),x=e.computed(()=>p.hidden?k.value:A.value+k.value),Z=e.computed(()=>r.theme==="light"?fn:mn),$=e.computed(()=>r.theme==="light"?dn:un),U=e.computed(()=>r.theme==="light"?"var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)":"none"),X=e.computed(()=>`${x.value}px`),H=e.computed(()=>g.hidden||p.hidden?pn:bn),{debounce:z}=it(),V=z((_=!1)=>{if(_||B.value!==(window==null?void 0:window.innerWidth)){B.value=window==null?void 0:window.innerWidth;const F=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");F&&(k.value=F.offsetHeight)}},200),j=e.ref();return e.onMounted(()=>{var F,R;(F=document==null?void 0:document.body)==null||F.classList.add("kong-ui-app-layout-body"),(R=document==null?void 0:document.documentElement)==null||R.classList.add("kong-ui-app-layout-html"),B.value=window==null?void 0:window.innerWidth,V(!0);const _=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");_&&(j.value=new ResizeObserver(S=>{window.requestAnimationFrame(()=>{if(!(!Array.isArray(S)||!S.length))for(const f of S){const u=f.contentRect.height;k.value!==u&&(k.value=u)}})}),j.value.observe(_)),window.addEventListener("resize",V)}),e.onBeforeUnmount(()=>{j.value&&j.value.disconnect(),window.removeEventListener("resize",V)}),(_,F)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":p.hidden},{"sidebar-hidden":g.hidden}]])},[e.createElementVNode("div",gn,[e.renderSlot(_.$slots,"notification",{},void 0,!0)]),p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ue,{key:String(g.hidden),"left-offset":g.hidden?0:void 0,"top-offset":k.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[g.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(st,{key:0,active:N.value,onToggle:E},null,8,["active"]))]),_:2},[d.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",vn,[e.renderSlot(_.$slots,"navbar-mobile-logo",{},void 0,!0)])]),key:"0"}:void 0,d.navbarLogo?{name:"logo",fn:e.withCtx(()=>[g.hidden?(e.openBlock(),e.createElementBlock("div",yn,[e.renderSlot(_.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,d.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,d.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,d.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-right",{},void 0,!0)]),key:"4"}:void 0]),1032,["left-offset","top-offset"])),g.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ct,{key:1,"bottom-items":g.bottomItems,"header-height":A.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":x.value,open:N.value,"top-items":g.topItems,"top-offset":k.value,onClick:w,onToggle:E},e.createSlots({_:2},[d.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,d.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0,d.sidebarFooter?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-footer",{},void 0,!0)]),key:"2"}:void 0,e.renderList([...g.topItems||[],...g.bottomItems||[]],R=>({name:`sidebar-icon-${R.key}`,fn:e.withCtx(()=>[e.renderSlot(_.$slots,`sidebar-icon-${R.key}`,{},void 0,!0)])}))]),1032,["bottom-items","header-height","mobile-top-offset","open","top-items","top-offset"])),e.createElementVNode("main",kn,[e.createElementVNode("div",wn,[e.createElementVNode("div",Sn,[Cn,e.renderSlot(_.$slots,"app-error",{},void 0,!0),c.value?e.createCommentVNode("",!0):e.renderSlot(_.$slots,"default",{key:0},void 0,!0)])])])],2))}}),[["__scopeId","data-v-47c01124"]]),_n={class:"kong-ui-app-page-header"},En={key:0,class:"page-header-breadcrumbs","data-testid":"page-header-breadcrumbs"},Nn={class:"page-header-title-section"},Tn={class:"page-header-title-wrapper"},Bn={key:0,class:"page-header-title-before","data-testid":"page-header-title-before"},In=["title"],$n={key:1,class:"page-header-title-after","data-testid":"page-header-title-after"},On={key:0,class:"page-header-actions","data-testid":"page-header-actions"},An={key:1,class:"page-header-section-below","data-testid":"page-header-section-below"},xn=K(e.defineComponent({__name:"AppPageHeader",props:{title:{type:String,default:""},breadcrumbs:{type:Array,default:()=>[]}},setup(n){const a=n,r=e.useSlots(),o=e.computed(()=>{var d;return!!((d=a.breadcrumbs)!=null&&d.length)}),s=e.computed(()=>Object.keys(r).filter(d=>d.startsWith("icon-")));return(d,c)=>{const p=e.resolveComponent("KBreadcrumbs");return e.openBlock(),e.createElementBlock("div",_n,[o.value?(e.openBlock(),e.createElementBlock("div",En,[e.createVNode(p,{"item-max-width":"150",items:n.breadcrumbs},e.createSlots({_:2},[e.renderList(s.value,g=>({name:g,fn:e.withCtx(()=>[e.renderSlot(d.$slots,g,{},void 0,!0)])}))]),1032,["items"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Nn,[e.createElementVNode("div",Tn,[d.$slots["title-before"]?(e.openBlock(),e.createElementBlock("div",Bn,[e.renderSlot(d.$slots,"title-before",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("h1",{class:"page-header-title","data-testid":"page-header-title",title:n.title},e.toDisplayString(n.title),9,In),d.$slots["title-after"]?(e.openBlock(),e.createElementBlock("div",$n,[e.renderSlot(d.$slots,"title-after",{},void 0,!0)])):e.createCommentVNode("",!0)]),d.$slots.actions?(e.openBlock(),e.createElementBlock("div",On,[e.renderSlot(d.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)]),d.$slots.below?(e.openBlock(),e.createElementBlock("div",An,[e.renderSlot(d.$slots,"below",{},void 0,!0)])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-204b7f98"]]),Fn={install:(n,a={})=>{n.component(a.name||"AppLayout",lt)}};L.AccountDropdown=Ft,L.AppAboutSection=Wt,L.AppError=oa,L.AppLayout=lt,L.AppNavbar=Ue,L.AppPageHeader=xn,L.AppSidebar=ct,L.SidebarToggle=st,L.default=Fn,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/app-layout",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.29-pr.1622.48c240f8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/app-layout.umd.js",
|
|
6
6
|
"module": "./dist/app-layout.es.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@kong/design-tokens": "1.17.2",
|
|
36
36
|
"@kong/kongponents": "9.5.5",
|
|
37
37
|
"@types/lodash.clonedeep": "^4.5.9",
|
|
38
|
-
"vue": "^3.4.
|
|
38
|
+
"vue": "^3.4.38",
|
|
39
39
|
"vue-router": "^4.4.3"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|