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