@kong-ui-public/app-layout 4.11.11 → 4.11.13
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 +1528 -1356
- package/dist/app-layout.umd.js +7 -7
- package/package.json +5 -5
package/dist/app-layout.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(R,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):(R=typeof globalThis<"u"?globalThis:R||self,e(R["kong-ui-public-app-layout"]={},R.Vue,R.KongIcons,R.Kongponents))})(this,function(R,e,Fe,Je){"use strict";const Zt=e.defineComponent({__name:"AccountDropdown",props:{options:{type:Array,required:!0},width:{type:String,default:"240"},userInitials:{type:String,required:!0,default:" "}},setup(n){return(t,r)=>{const o=e.resolveComponent("KDropdownItem"),c=e.resolveComponent("KDropdown");return e.openBlock(),e.createBlock(c,{class:"account-dropdown","kpop-attributes":{placement:"bottom-end"},"trigger-text":n.userInitials,width:n.width},{items:e.withCtx(({handleSelection:s})=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,i=>(e.openBlock(),e.createBlock(o,{key:i.value,class:e.normalizeClass({"has-divider":i.hasDivider}),"data-testid":"select-"+i.value,"has-divider":i.hasDivider,onClick:m=>s(i)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{option:i},()=>[e.createTextVNode(e.toDisplayString(i.label),1)],!0)]),_:2},1032,["class","data-testid","has-divider","onClick"]))),128))],!0)]),_:3},8,["trigger-text","width"])}}}),q=(n,t)=>{const r=n.__vccOpts||n;for(const[o,c]of t)r[o]=c;return r},zt=q(Zt,[["__scopeId","data-v-740b4c70"]]),Ht={class:"about-section-title","data-testid":"about-section-title"},Wt={class:"about-section-header-end"},Gt={key:0,class:"about-section-timestamps-created","data-testid":"about-section-timestamps-created"},Ut={key:1,class:"about-section-timestamps-arrow"},qt={key:2,class:"about-section-timestamps-modified","data-testid":"about-section-timestamps-modified"},Xt={key:1,class:"about-section-actions","data-testid":"about-section-actions"},Yt={key:0,"data-testid":"about-section-loading-skeleton"},Qt={key:1},Jt={key:0,class:"about-section-description","data-testid":"about-section-description"},ea={key:1,class:"about-section-content","data-testid":"about-section-content"},ta={key:2,"data-testid":"about-divider-section-separator"},aa={key:3,class:"about-divider-section","data-testid":"about-divider-section"},na=q(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(n){const t=n,r=e.computed(()=>!!t.modified&&t.modified!==t.created);return(o,c)=>{const s=e.resolveComponent("KSkeletonBox"),i=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(i,{class:"kong-ui-app-about-section","title-tag":"h2"},e.createSlots({default:e.withCtx(()=>[n.isLoading?(e.openBlock(),e.createElementBlock("div",Yt,[e.createVNode(s,{height:"2",width:"100"}),e.createVNode(s,{height:"2",width:"100"})])):(e.openBlock(),e.createElementBlock("div",Qt,[n.description?(e.openBlock(),e.createElementBlock("p",Jt,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),o.$slots.default?(e.openBlock(),e.createElementBlock("div",ea,[e.renderSlot(o.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),o.$slots["divider-section"]?(e.openBlock(),e.createElementBlock("hr",ta)):e.createCommentVNode("",!0),o.$slots["divider-section"]?(e.openBlock(),e.createElementBlock("div",aa,[e.renderSlot(o.$slots,"divider-section",{},void 0,!0)])):e.createCommentVNode("",!0)]))]),_:2},[o.$slots.title||n.title?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("span",Ht,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)],!0)])]),key:"0"}:void 0,o.$slots.actions||n.created||n.modified?{name:"actions",fn:e.withCtx(()=>[e.createElementVNode("div",Wt,[n.created||n.modified?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["about-section-timestamps",{"has-actions":o.$slots.actions}])},[n.created?(e.openBlock(),e.createElementBlock("span",Gt,e.toDisplayString(n.createdLabel)+": "+e.toDisplayString(n.created),1)):e.createCommentVNode("",!0),n.created&&r.value?(e.openBlock(),e.createElementBlock("span",Ut,"->")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("span",qt,e.toDisplayString(n.modifiedLabel)+": "+e.toDisplayString(n.modified),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.$slots.actions?(e.openBlock(),e.createElementBlock("div",Xt,[e.renderSlot(o.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)])]),key:"1"}:void 0]),1024)}}}),[["__scopeId","data-v-90b5a21c"]]),oa={},ra={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"};function ia(n,t){return e.openBlock(),e.createElementBlock("svg",ra,[...t[0]||(t[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 la=q(oa,[["render",ia]]),ca={class:"kong-ui-app-error"},sa={class:"banana-icon"},da={class:"kong-ui-app-error-content"},ua=q(e.defineComponent({__name:"AppError",setup(n){return(t,r)=>(e.openBlock(),e.createElementBlock("section",ca,[e.createElementVNode("div",sa,[e.createVNode(la)]),e.createElementVNode("div",da,[e.renderSlot(t.$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-6ce28ec8"]]),fa={class:"kong-ui-app-navbar"},ma={class:"header-content"},pa={class:"mobile-header-left"},ba={key:0,class:"app-navbar-logo"},ha={class:"navbar-content"},ga={class:"navbar-content-left"},ya={class:"navbar-content-center"},va={class:"navbar-content-right"},et=q(e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(n){e.useCssVars(i=>({v4b7bbbb4:s.value.top,v1c1e69b9:s.value.zIndex,v23f7f188:s.value.left,v72a8a150:c.marginRight,v0b2fff88:c.width}));const t=n,r=e.useSlots(),o=e.computed(()=>!!r.logo),c=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var i,m;(m=(i=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:i.children)!=null&&m.length?(c.marginRight="32px",c.width="calc(240px - 32px)"):(c.marginRight="0",c.width="0")});const s=e.computed(()=>({top:t.topOffset?`${t.topOffset}px`:"0",left:t.leftOffset?`${t.leftOffset}px`:"0",zIndex:t.zIndex}));return(i,m)=>(e.openBlock(),e.createElementBlock("header",fa,[e.createElementVNode("div",ma,[e.createElementVNode("div",pa,[e.renderSlot(i.$slots,"mobile-sidebar-toggle"),e.renderSlot(i.$slots,"mobile-logo")]),o.value?(e.openBlock(),e.createElementBlock("div",ba,[e.renderSlot(i.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",ha,[e.createElementVNode("div",ga,[e.renderSlot(i.$slots,"left")]),e.createElementVNode("div",ya,[e.renderSlot(i.$slots,"center")]),e.createElementVNode("div",va,[e.renderSlot(i.$slots,"right")])])])]))}}),[["__scopeId","data-v-537ba5e0"]]);function ka(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}const Ve=new WeakMap,wa=(...n)=>{var t;const r=n[0],o=(t=e.getCurrentInstance())==null?void 0:t.proxy;if(o==null&&!e.hasInjectionContext())throw new Error("injectLocal must be called in setup");return o&&Ve.has(o)&&r in Ve.get(o)?Ve.get(o)[r]:e.inject(...n)},Ca=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Sa=Object.prototype.toString,Ea=n=>Sa.call(n)==="[object Object]";function tt(n){return n.endsWith("rem")?Number.parseFloat(n)*16:Number.parseFloat(n)}function Re(n){return Array.isArray(n)?n:[n]}function Ta(n,t,r){return e.watch(n,t,{...r,immediate:!0})}const at=Ca?window:void 0;function Ba(n){var t;const r=e.toValue(n);return(t=r==null?void 0:r.$el)!=null?t:r}function Na(...n){const t=[],r=()=>{t.forEach(m=>m()),t.length=0},o=(m,b,C,S)=>(m.addEventListener(b,C,S),()=>m.removeEventListener(b,C,S)),c=e.computed(()=>{const m=Re(e.toValue(n[0])).filter(b=>b!=null);return m.every(b=>typeof b!="string")?m:void 0}),s=Ta(()=>{var m,b;return[(b=(m=c.value)==null?void 0:m.map(C=>Ba(C)))!=null?b:[at].filter(C=>C!=null),Re(e.toValue(c.value?n[1]:n[0])),Re(e.unref(c.value?n[2]:n[1])),e.toValue(c.value?n[3]:n[2])]},([m,b,C,S])=>{if(r(),!(m!=null&&m.length)||!(b!=null&&b.length)||!(C!=null&&C.length))return;const $=Ea(S)?{...S}:S;t.push(...m.flatMap(O=>b.flatMap(x=>C.map(N=>o(O,x,N,$)))))},{flush:"post"}),i=()=>{s(),r()};return ka(r),i}function Ia(){const n=e.shallowRef(!1),t=e.getCurrentInstance();return t&&e.onMounted(()=>{n.value=!0},t),n}function _a(n){const t=Ia();return e.computed(()=>(t.value,!!n()))}const $a=Symbol("vueuse-ssr-width");function Oa(){const n=e.hasInjectionContext()?wa($a,null):null;return typeof n=="number"?n:void 0}function Aa(n,t={}){const{window:r=at,ssrWidth:o=Oa()}=t,c=_a(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),s=e.shallowRef(typeof o=="number"),i=e.shallowRef(),m=e.shallowRef(!1),b=C=>{m.value=C.matches};return e.watchEffect(()=>{if(s.value){s.value=!c.value;const C=e.toValue(n).split(",");m.value=C.some(S=>{const $=S.includes("not all"),O=S.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),x=S.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let N=!!(O||x);return O&&N&&(N=o>=tt(O[1])),x&&N&&(N=o<=tt(x[1])),$?!N:N});return}c.value&&(i.value=r.matchMedia(e.toValue(n)),m.value=i.value.matches)}),Na(i,"change",b,{passive:!0}),e.computed(()=>m.value)}const xa="#ffffff",Da="#000933",Fa="#000933",Va="#ffffff",Ra="0px",La="4px",Ma="640px",ja="16px",Pa="#bee2ff",Ka=["title"],Le=99,Za=q(e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(n){const t=n,r=e.computed(()=>t.count?t.count>Le?`${Le}+`:t.count.toString():"");return(o,c)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(n.count||0)>Le?String(n.count):void 0},e.toDisplayString(r.value),9,Ka)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-a0c9b043"]]),za=["data-testid"],Ha=["aria-controls","aria-current","aria-expanded","href","target","onClick","onKeypress"],Wa={key:0,class:"sidebar-item-icon"},Ga={class:"sidebar-item-name-container"},Ua={class:"sidebar-item-name has-tooltip"},qa={key:2,class:"sidebar-item-label truncate-text truncate-18"},Xa={key:1,class:"sidebar-item-after"},Ya=["id"],nt=q(e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:t}){const r=t,o=n,c=e.useSlots(),s=e.computed(()=>typeof o.item.to!="string"?!1:!!o.item.newWindow||!!o.item.external||o.item.to.startsWith("http")),i=e.computed(()=>!o.item.to||typeof o.item.to!="string"||!o.item.newWindow?!1:o.item.newWindow&&(o.item.to.startsWith("http")||o.item.to.startsWith("/"))),m=e.computed(()=>o.subnavItem&&o.item.badgeCount!==void 0&&o.item.badgeCount!==0||!!c[`sidebar-after-${o.item.key}`]),b=S=>{r("click",S)},C=(S,$,O)=>{b($),typeof O=="function"&&(S.preventDefault(),O())};return(S,$)=>{var N;const O=e.resolveComponent("KTooltip"),x=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([n.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:n.item.expanded},{active:n.item.active}]),"data-testid":n.item.testId?`sidebar-item-${n.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value?"div":"router-link"),{custom:s.value?void 0:!0,to:!s.value&&!i.value?n.item.to:void 0},{default:e.withCtx(A=>{var X,L;return[e.createElementVNode("a",{"aria-controls":(X=n.item.items)!=null&&X.length&&n.item.expanded?`subnav-${n.item.key}`:void 0,"aria-current":n.item.active?"page":void 0,"aria-expanded":(L=n.item.items)!=null&&L.length&&n.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":i.value,"router-link":!s.value}]),href:s.value?String(n.item.to||"#"):A==null?void 0:A.href,target:i.value?"_blank":void 0,onClick:j=>C(j,n.item,A==null?void 0:A.navigate),onKeypress:e.withKeys(j=>C(j,n.item,A==null?void 0:A.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!n.item.label&&n.item.expanded,"has-after-content":m.value}])},[S.$slots[`sidebar-icon-${n.item.key}`]?(e.openBlock(),e.createElementBlock("div",Wa,[n.subnavItem?e.createCommentVNode("",!0):e.renderSlot(S.$slots,`sidebar-icon-${n.item.key}`,{key:0},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ga,[(n.subnavItem&&!m.value?n.item.name.length<25:n.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[n.subnavItem?"has-after-content-max-width truncate-24":"truncate-17"]])},e.toDisplayString(n.item.name),3)):(e.openBlock(),e.createBlock(O,{key:1,class:"sidebar-item-tooltip",placement:"right","position-fixed":"",text:n.item.name},{default:e.withCtx(()=>[e.createElementVNode("div",Ua,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[n.subnavItem?"truncate-18":"truncate-17",{"has-after-content-max-width":m.value}]])},e.toDisplayString(n.item.name),3)])]),_:1},8,["text"])),n.item.label&&n.item.expanded?(e.openBlock(),e.createElementBlock("div",qa,e.toDisplayString(n.item.label),1)):e.createCommentVNode("",!0)]),m.value?(e.openBlock(),e.createElementBlock("div",Xa,[n.item.badgeCount?(e.openBlock(),e.createBlock(Za,{key:0,count:n.item.badgeCount},null,8,["count"])):e.renderSlot(S.$slots,`sidebar-after-${n.item.key}`,{key:1},void 0,!0)])):e.createCommentVNode("",!0)],2)],42,Ha)]}),_:3},8,["custom","to"])),(N=n.item.items)!=null&&N.length&&n.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${n.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.item.items,A=>(e.openBlock(),e.createBlock(x,{key:A.name,item:A,"subnav-item":!0,onClick:X=>b(A)},null,8,["item","onClick"]))),128))],8,Ya)):e.createCommentVNode("",!0)],10,za)}}}),[["__scopeId","data-v-a8ca71d3"]]);/*!
|
|
1
|
+
(function(G,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):(G=typeof globalThis<"u"?globalThis:G||self,e(G["kong-ui-public-app-layout"]={},G.Vue,G.KongIcons,G.Kongponents))})(this,function(G,e,Re,tt){"use strict";const Wt=e.defineComponent({__name:"AccountDropdown",props:{options:{type:Array,required:!0},width:{type:String,default:"240"},userInitials:{type:String,required:!0,default:" "}},setup(n){return(t,r)=>{const o=e.resolveComponent("KDropdownItem"),l=e.resolveComponent("KDropdown");return e.openBlock(),e.createBlock(l,{class:"account-dropdown","kpop-attributes":{placement:"bottom-end"},"trigger-text":n.userInitials,width:n.width},{items:e.withCtx(({handleSelection:s})=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,i=>(e.openBlock(),e.createBlock(o,{key:i.value,class:e.normalizeClass({"has-divider":i.hasDivider}),"data-testid":"select-"+i.value,"has-divider":i.hasDivider,onClick:f=>s(i)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{option:i},()=>[e.createTextVNode(e.toDisplayString(i.label),1)],!0)]),_:2},1032,["class","data-testid","has-divider","onClick"]))),128))],!0)]),_:3},8,["trigger-text","width"])}}}),Y=(n,t)=>{const r=n.__vccOpts||n;for(const[o,l]of t)r[o]=l;return r},Ut=Y(Wt,[["__scopeId","data-v-740b4c70"]]),qt={class:"about-section-title","data-testid":"about-section-title"},Xt={class:"about-section-header-end"},Yt={key:0,class:"about-section-timestamps-created","data-testid":"about-section-timestamps-created"},Qt={key:1,class:"about-section-timestamps-arrow"},Jt={key:2,class:"about-section-timestamps-modified","data-testid":"about-section-timestamps-modified"},en={key:1,class:"about-section-actions","data-testid":"about-section-actions"},tn={key:0,"data-testid":"about-section-loading-skeleton"},nn={key:1},an={key:0,class:"about-section-description","data-testid":"about-section-description"},on={key:1,class:"about-section-content","data-testid":"about-section-content"},rn={key:2,"data-testid":"about-divider-section-separator"},cn={key:3,class:"about-divider-section","data-testid":"about-divider-section"},ln=Y(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(n){const t=n,r=e.computed(()=>!!t.modified&&t.modified!==t.created);return(o,l)=>{const s=e.resolveComponent("KSkeletonBox"),i=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(i,{class:"kong-ui-app-about-section","title-tag":"h2"},e.createSlots({default:e.withCtx(()=>[n.isLoading?(e.openBlock(),e.createElementBlock("div",tn,[e.createVNode(s,{height:"2",width:"100"}),e.createVNode(s,{height:"2",width:"100"})])):(e.openBlock(),e.createElementBlock("div",nn,[n.description?(e.openBlock(),e.createElementBlock("p",an,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),o.$slots.default?(e.openBlock(),e.createElementBlock("div",on,[e.renderSlot(o.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),o.$slots["divider-section"]?(e.openBlock(),e.createElementBlock("hr",rn)):e.createCommentVNode("",!0),o.$slots["divider-section"]?(e.openBlock(),e.createElementBlock("div",cn,[e.renderSlot(o.$slots,"divider-section",{},void 0,!0)])):e.createCommentVNode("",!0)]))]),_:2},[o.$slots.title||n.title?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("span",qt,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)],!0)])]),key:"0"}:void 0,o.$slots.actions||n.created||n.modified?{name:"actions",fn:e.withCtx(()=>[e.createElementVNode("div",Xt,[n.created||n.modified?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["about-section-timestamps",{"has-actions":o.$slots.actions}])},[n.created?(e.openBlock(),e.createElementBlock("span",Yt,e.toDisplayString(n.createdLabel)+": "+e.toDisplayString(n.created),1)):e.createCommentVNode("",!0),n.created&&r.value?(e.openBlock(),e.createElementBlock("span",Qt,"->")):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),o.$slots.actions?(e.openBlock(),e.createElementBlock("div",en,[e.renderSlot(o.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)])]),key:"1"}:void 0]),1024)}}}),[["__scopeId","data-v-90b5a21c"]]),sn={},dn={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"};function un(n,t){return e.openBlock(),e.createElementBlock("svg",dn,[...t[0]||(t[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 fn=Y(sn,[["render",un]]),pn={class:"kong-ui-app-error"},mn={class:"banana-icon"},bn={class:"kong-ui-app-error-content"},hn=Y(e.defineComponent({__name:"AppError",setup(n){return(t,r)=>(e.openBlock(),e.createElementBlock("section",pn,[e.createElementVNode("div",mn,[e.createVNode(fn)]),e.createElementVNode("div",bn,[e.renderSlot(t.$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-6ce28ec8"]]),gn={class:"kong-ui-app-navbar"},yn={class:"header-content"},vn={class:"mobile-header-left"},kn={key:0,class:"app-navbar-logo"},wn={class:"navbar-content"},Sn={class:"navbar-content-left"},Cn={class:"navbar-content-center"},En={class:"navbar-content-right"},nt=Y(e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(n){e.useCssVars(i=>({v4b7bbbb4:s.value.top,v1c1e69b9:s.value.zIndex,v23f7f188:s.value.left,v72a8a150:l.marginRight,v0b2fff88:l.width}));const t=n,r=e.useSlots(),o=e.computed(()=>!!r.logo),l=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var i,f;(f=(i=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:i.children)!=null&&f.length?(l.marginRight="32px",l.width="calc(240px - 32px)"):(l.marginRight="0",l.width="0")});const s=e.computed(()=>({top:t.topOffset?`${t.topOffset}px`:"0",left:t.leftOffset?`${t.leftOffset}px`:"0",zIndex:t.zIndex}));return(i,f)=>(e.openBlock(),e.createElementBlock("header",gn,[e.createElementVNode("div",yn,[e.createElementVNode("div",vn,[e.renderSlot(i.$slots,"mobile-sidebar-toggle"),e.renderSlot(i.$slots,"mobile-logo")]),o.value?(e.openBlock(),e.createElementBlock("div",kn,[e.renderSlot(i.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",wn,[e.createElementVNode("div",Sn,[e.renderSlot(i.$slots,"left")]),e.createElementVNode("div",Cn,[e.renderSlot(i.$slots,"center")]),e.createElementVNode("div",En,[e.renderSlot(i.$slots,"right")])])])]))}}),[["__scopeId","data-v-537ba5e0"]]);function Tn(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}const je=new WeakMap,Bn=(...n)=>{var t;const r=n[0],o=(t=e.getCurrentInstance())==null?void 0:t.proxy;if(o==null&&!e.hasInjectionContext())throw new Error("injectLocal must be called in setup");return o&&je.has(o)&&r in je.get(o)?je.get(o)[r]:e.inject(...n)},Nn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _n=Object.prototype.toString,In=n=>_n.call(n)==="[object Object]";function at(n){return n.endsWith("rem")?Number.parseFloat(n)*16:Number.parseFloat(n)}function Le(n){return Array.isArray(n)?n:[n]}function On(n,t,r){return e.watch(n,t,{...r,immediate:!0})}const ot=Nn?window:void 0;function $n(n){var t;const r=e.toValue(n);return(t=r==null?void 0:r.$el)!=null?t:r}function An(...n){const t=[],r=()=>{t.forEach(f=>f()),t.length=0},o=(f,m,k,E)=>(f.addEventListener(m,k,E),()=>f.removeEventListener(m,k,E)),l=e.computed(()=>{const f=Le(e.toValue(n[0])).filter(m=>m!=null);return f.every(m=>typeof m!="string")?f:void 0}),s=On(()=>{var f,m;return[(m=(f=l.value)==null?void 0:f.map(k=>$n(k)))!=null?m:[ot].filter(k=>k!=null),Le(e.toValue(l.value?n[1]:n[0])),Le(e.unref(l.value?n[2]:n[1])),e.toValue(l.value?n[3]:n[2])]},([f,m,k,E])=>{if(r(),!(f!=null&&f.length)||!(m!=null&&m.length)||!(k!=null&&k.length))return;const O=In(E)?{...E}:E;t.push(...f.flatMap($=>m.flatMap(A=>k.map(_=>o($,A,_,O)))))},{flush:"post"}),i=()=>{s(),r()};return Tn(r),i}function Fn(){const n=e.shallowRef(!1),t=e.getCurrentInstance();return t&&e.onMounted(()=>{n.value=!0},t),n}function xn(n){const t=Fn();return e.computed(()=>(t.value,!!n()))}const Dn=Symbol("vueuse-ssr-width");function Vn(){const n=e.hasInjectionContext()?Bn(Dn,null):null;return typeof n=="number"?n:void 0}function Rn(n,t={}){const{window:r=ot,ssrWidth:o=Vn()}=t,l=xn(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),s=e.shallowRef(typeof o=="number"),i=e.shallowRef(),f=e.shallowRef(!1),m=k=>{f.value=k.matches};return e.watchEffect(()=>{if(s.value){s.value=!l.value;const k=e.toValue(n).split(",");f.value=k.some(E=>{const O=E.includes("not all"),$=E.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),A=E.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let _=!!($||A);return $&&_&&(_=o>=at($[1])),A&&_&&(_=o<=at(A[1])),O?!_:_});return}l.value&&(i.value=r.matchMedia(e.toValue(n)),f.value=i.value.matches)}),An(i,"change",m,{passive:!0}),e.computed(()=>f.value)}const jn="#ffffff",Ln="#000933",Mn="#000933",Pn="#ffffff",Kn="0px",Zn="4px",zn="640px",Gn="16px",Hn="#bee2ff",Wn=["title"],Me=99,Un=Y(e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(n){const t=n,r=e.computed(()=>t.count?t.count>Me?`${Me}+`:t.count.toString():"");return(o,l)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(n.count||0)>Me?String(n.count):void 0},e.toDisplayString(r.value),9,Wn)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-a0c9b043"]]),qn=["data-testid"],Xn=["aria-controls","aria-current","aria-expanded","href","target","onClick","onKeypress"],Yn={key:0,class:"sidebar-item-icon"},Qn={class:"sidebar-item-name-container"},Jn={class:"sidebar-item-name has-tooltip"},ea={key:2,class:"sidebar-item-label truncate-text truncate-18"},ta={key:1,class:"sidebar-item-after"},na=["id"],rt=Y(e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:t}){const r=t,o=n,l=e.useSlots(),s=e.computed(()=>typeof o.item.to!="string"?!1:!!o.item.newWindow||!!o.item.external||o.item.to.startsWith("http")),i=e.computed(()=>!o.item.to||typeof o.item.to!="string"||!o.item.newWindow?!1:o.item.newWindow&&(o.item.to.startsWith("http")||o.item.to.startsWith("/"))),f=e.computed(()=>o.subnavItem&&o.item.badgeCount!==void 0&&o.item.badgeCount!==0||!!l[`sidebar-after-${o.item.key}`]),m=E=>{r("click",E)},k=(E,O,$)=>{m(O),typeof $=="function"&&(E.preventDefault(),$())};return(E,O)=>{var _;const $=e.resolveComponent("KTooltip"),A=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([n.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:n.item.expanded},{active:n.item.active}]),"data-testid":n.item.testId?`sidebar-item-${n.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value?"div":"router-link"),{custom:s.value?void 0:!0,to:!s.value&&!i.value?n.item.to:void 0},{default:e.withCtx(x=>{var U,P;return[e.createElementVNode("a",{"aria-controls":(U=n.item.items)!=null&&U.length&&n.item.expanded?`subnav-${n.item.key}`:void 0,"aria-current":n.item.active?"page":void 0,"aria-expanded":(P=n.item.items)!=null&&P.length&&n.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":i.value,"router-link":!s.value}]),href:s.value?String(n.item.to||"#"):x==null?void 0:x.href,target:i.value?"_blank":void 0,onClick:K=>k(K,n.item,x==null?void 0:x.navigate),onKeypress:e.withKeys(K=>k(K,n.item,x==null?void 0:x.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!n.item.label&&n.item.expanded,"has-after-content":f.value}])},[E.$slots[`sidebar-icon-${n.item.key}`]?(e.openBlock(),e.createElementBlock("div",Yn,[n.subnavItem?e.createCommentVNode("",!0):e.renderSlot(E.$slots,`sidebar-icon-${n.item.key}`,{key:0},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Qn,[(n.subnavItem&&!f.value?n.item.name.length<25:n.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[n.subnavItem?"has-after-content-max-width truncate-24":"truncate-17"]])},e.toDisplayString(n.item.name),3)):(e.openBlock(),e.createBlock($,{key:1,class:"sidebar-item-tooltip",placement:"right","position-fixed":"",text:n.item.name},{default:e.withCtx(()=>[e.createElementVNode("div",Jn,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[n.subnavItem?"truncate-18":"truncate-17",{"has-after-content-max-width":f.value}]])},e.toDisplayString(n.item.name),3)])]),_:1},8,["text"])),n.item.label&&n.item.expanded?(e.openBlock(),e.createElementBlock("div",ea,e.toDisplayString(n.item.label),1)):e.createCommentVNode("",!0)]),f.value?(e.openBlock(),e.createElementBlock("div",ta,[n.item.badgeCount?(e.openBlock(),e.createBlock(Un,{key:0,count:n.item.badgeCount},null,8,["count"])):e.renderSlot(E.$slots,`sidebar-after-${n.item.key}`,{key:1},void 0,!0)])):e.createCommentVNode("",!0)],2)],42,Xn)]}),_:3},8,["custom","to"])),(_=n.item.items)!=null&&_.length&&n.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${n.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.item.items,x=>(e.openBlock(),e.createBlock(A,{key:x.name,item:x,"subnav-item":!0,onClick:U=>m(x)},null,8,["item","onClick"]))),128))],8,na)):e.createCommentVNode("",!0)],10,qn)}}}),[["__scopeId","data-v-a8ca71d3"]]);/*!
|
|
2
2
|
* tabbable 6.4.0
|
|
3
3
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/var
|
|
5
|
-
* focus-trap
|
|
4
|
+
*/var it=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Ce=it.join(","),ct=typeof Element>"u",ie=ct?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ee=!ct&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n==null?void 0:n.ownerDocument},Te=function(t,r){var o;r===void 0&&(r=!0);var l=t==null||(o=t.getAttribute)===null||o===void 0?void 0:o.call(t,"inert"),s=l===""||l==="true",i=s||r&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Te(t.parentNode));return i},aa=function(t){var r,o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return o===""||o==="true"},lt=function(t,r,o){if(Te(t))return[];var l=Array.prototype.slice.apply(t.querySelectorAll(Ce));return r&&ie.call(t,Ce)&&l.unshift(t),l=l.filter(o),l},Be=function(t,r,o){for(var l=[],s=Array.from(t);s.length;){var i=s.shift();if(!Te(i,!1))if(i.tagName==="SLOT"){var f=i.assignedElements(),m=f.length?f:i.children,k=Be(m,!0,o);o.flatten?l.push.apply(l,k):l.push({scopeParent:i,candidates:k})}else{var E=ie.call(i,Ce);E&&o.filter(i)&&(r||!t.includes(i))&&l.push(i);var O=i.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(i),$=!Te(O,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(i));if(O&&$){var A=Be(O===!0?i.children:O.children,!0,o);o.flatten?l.push.apply(l,A):l.push({scopeParent:i,candidates:A})}else s.unshift.apply(s,i.children)}}return l},st=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ce=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||aa(t))&&!st(t)?0:t.tabIndex},oa=function(t,r){var o=ce(t);return o<0&&r&&!st(t)?0:o},ra=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},dt=function(t){return t.tagName==="INPUT"},ia=function(t){return dt(t)&&t.type==="hidden"},ca=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(o){return o.tagName==="SUMMARY"});return r},la=function(t,r){for(var o=0;o<t.length;o++)if(t[o].checked&&t[o].form===r)return t[o]},sa=function(t){if(!t.name)return!0;var r=t.form||Ee(t),o=function(f){return r.querySelectorAll('input[type="radio"][name="'+f+'"]')},l;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(t.name));else try{l=o(t.name)}catch(i){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",i.message),!1}var s=la(l,t.form);return!s||s===t},da=function(t){return dt(t)&&t.type==="radio"},ua=function(t){return da(t)&&!sa(t)},fa=function(t){var r,o=t&&Ee(t),l=(r=o)===null||r===void 0?void 0:r.host,s=!1;if(o&&o!==t){var i,f,m;for(s=!!((i=l)!==null&&i!==void 0&&(f=i.ownerDocument)!==null&&f!==void 0&&f.contains(l)||t!=null&&(m=t.ownerDocument)!==null&&m!==void 0&&m.contains(t));!s&&l;){var k,E,O;o=Ee(l),l=(k=o)===null||k===void 0?void 0:k.host,s=!!((E=l)!==null&&E!==void 0&&(O=E.ownerDocument)!==null&&O!==void 0&&O.contains(l))}}return s},ut=function(t){var r=t.getBoundingClientRect(),o=r.width,l=r.height;return o===0&&l===0},pa=function(t,r){var o=r.displayCheck,l=r.getShadowRoot;if(o==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var i=ie.call(t,"details>summary:first-of-type"),f=i?t.parentElement:t;if(ie.call(f,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof l=="function"){for(var m=t;t;){var k=t.parentElement,E=Ee(t);if(k&&!k.shadowRoot&&l(k)===!0)return ut(t);t.assignedSlot?t=t.assignedSlot:!k&&E!==t.ownerDocument?t=E.host:t=k}t=m}if(fa(t))return!t.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return ut(t);return!1},ma=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var o=0;o<r.children.length;o++){var l=r.children.item(o);if(l.tagName==="LEGEND")return ie.call(r,"fieldset[disabled] *")?!0:!l.contains(t)}return!0}r=r.parentElement}return!1},Ne=function(t,r){return!(r.disabled||ia(r)||pa(r,t)||ca(r)||ma(r))},Pe=function(t,r){return!(ua(r)||ce(r)<0||!Ne(t,r))},ba=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},ft=function(t){var r=[],o=[];return t.forEach(function(l,s){var i=!!l.scopeParent,f=i?l.scopeParent:l,m=oa(f,i),k=i?ft(l.candidates):f;m===0?i?r.push.apply(r,k):r.push(f):o.push({documentOrder:s,tabIndex:m,item:l,isScope:i,content:k})}),o.sort(ra).reduce(function(l,s){return s.isScope?l.push.apply(l,s.content):l.push(s.content),l},[]).concat(r)},ha=function(t,r){r=r||{};var o;return r.getShadowRoot?o=Be([t],r.includeContainer,{filter:Pe.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:ba}):o=lt(t,r.includeContainer,Pe.bind(null,r)),ft(o)},ga=function(t,r){r=r||{};var o;return r.getShadowRoot?o=Be([t],r.includeContainer,{filter:Ne.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):o=lt(t,r.includeContainer,Ne.bind(null,r)),o},fe=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return ie.call(t,Ce)===!1?!1:Pe(r,t)},ya=it.concat("iframe:not([inert]):not([inert] *)").join(","),Ke=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return ie.call(t,ya)===!1?!1:Ne(r,t)};/*!
|
|
5
|
+
* focus-trap 8.1.0
|
|
6
6
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
7
|
-
*/function
|
|
8
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,i=!0,
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ft(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),r.push.apply(r,o)}return r}function mt(n){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ft(Object(r),!0).forEach(function(o){hn(n,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):ft(Object(r)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(r,o))})}return n}function vn(n){return bn(n)||gn(n)||pt(n)||yn()}function kn(n,t){if(typeof n!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var o=r.call(n,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}function wn(n){var t=kn(n,"string");return typeof t=="symbol"?t:t+""}function pt(n,t){if(n){if(typeof n=="string")return Pe(n,t);var r={}.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pe(n,t):void 0}}var J={getActiveTrap:function(t){return(t==null?void 0:t.length)>0?t[t.length-1]:null},activateTrap:function(t,r){var o=J.getActiveTrap(t);r!==o&&J.pauseTrap(t);var c=t.indexOf(r);c===-1||t.splice(c,1),t.push(r)},deactivateTrap:function(t,r){var o=t.indexOf(r);o!==-1&&t.splice(o,1),J.unpauseTrap(t)},pauseTrap:function(t){var r=J.getActiveTrap(t);r==null||r._setPausedState(!0)},unpauseTrap:function(t){var r=J.getActiveTrap(t);r&&!r._isManuallyPaused()&&r._setPausedState(!1)}},Cn=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Sn=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},he=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},En=function(t){return he(t)&&!t.shiftKey},Tn=function(t){return he(t)&&t.shiftKey},bt=function(t){return setTimeout(t,0)},ge=function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),c=1;c<r;c++)o[c-1]=arguments[c];return typeof t=="function"?t.apply(void 0,o):t},Be=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Bn=[],Nn=function(t,r){var o=(r==null?void 0:r.document)||document,c=(r==null?void 0:r.trapStack)||Bn,s=mt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:En,isKeyBackward:Tn},r),i={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},m,b=function(u,f,y){return u&&u[f]!==void 0?u[f]:s[y||f]},C=function(u,f){var y=typeof(f==null?void 0:f.composedPath)=="function"?f.composedPath():void 0;return i.containerGroups.findIndex(function(T){var E=T.container,I=T.tabbableNodes;return E.contains(u)||(y==null?void 0:y.includes(E))||I.find(function(h){return h===u})})},S=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=f.hasFallback,T=y===void 0?!1:y,E=f.params,I=E===void 0?[]:E,h=s[u];if(typeof h=="function"&&(h=h.apply(void 0,vn(I))),h===!0&&(h=void 0),!h){if(h===void 0||h===!1)return h;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var p=h;if(typeof h=="string"){try{p=o.querySelector(h)}catch(g){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(g.message,'"'))}if(!p&&!T)throw new Error("`".concat(u,"` as selector refers to no known node"))}return p},$=function(){var u=S("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!je(u,s.tabbableOptions))if(C(o.activeElement)>=0)u=o.activeElement;else{var f=i.tabbableGroups[0],y=f&&f.firstTabbableNode;u=y||S("fallbackFocus")}else u===null&&(u=S("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},O=function(){if(i.containerGroups=i.containers.map(function(u){var f=fn(u,s.tabbableOptions),y=mn(u,s.tabbableOptions),T=f.length>0?f[0]:void 0,E=f.length>0?f[f.length-1]:void 0,I=y.find(function(g){return ue(g)}),h=y.slice().reverse().find(function(g){return ue(g)}),p=!!f.find(function(g){return ie(g)>0});return{container:u,tabbableNodes:f,focusableNodes:y,posTabIndexesFound:p,firstTabbableNode:T,lastTabbableNode:E,firstDomTabbableNode:I,lastDomTabbableNode:h,nextTabbableNode:function(v){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,F=f.indexOf(v);return F<0?w?y.slice(y.indexOf(v)+1).find(function(D){return ue(D)}):y.slice(0,y.indexOf(v)).reverse().find(function(D){return ue(D)}):f[F+(w?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!S("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(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},x=function(u){var f=u.activeElement;if(f)return f.shadowRoot&&f.shadowRoot.activeElement!==null?x(f.shadowRoot):f},N=function(u){if(u!==!1&&u!==x(document)){if(!u||!u.focus){N($());return}u.focus({preventScroll:!!s.preventScroll}),i.mostRecentlyFocusedNode=u,Cn(u)&&u.select()}},A=function(u){var f=S("setReturnFocus",{params:[u]});return f||(f===!1?!1:u)},X=function(u){var f=u.target,y=u.event,T=u.isBackward,E=T===void 0?!1:T;f=f||Be(y),O();var I=null;if(i.tabbableGroups.length>0){var h=C(f,y),p=h>=0?i.containerGroups[h]:void 0;if(h<0)E?I=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:I=i.tabbableGroups[0].firstTabbableNode;else if(E){var g=i.tabbableGroups.findIndex(function(ee){var ye=ee.firstTabbableNode;return f===ye});if(g<0&&(p.container===f||je(f,s.tabbableOptions)&&!ue(f,s.tabbableOptions)&&!p.nextTabbableNode(f,!1))&&(g=h),g>=0){var v=g===0?i.tabbableGroups.length-1:g-1,w=i.tabbableGroups[v];I=ie(f)>=0?w.lastTabbableNode:w.lastDomTabbableNode}else he(y)||(I=p.nextTabbableNode(f,!1))}else{var F=i.tabbableGroups.findIndex(function(ee){var ye=ee.lastTabbableNode;return f===ye});if(F<0&&(p.container===f||je(f,s.tabbableOptions)&&!ue(f,s.tabbableOptions)&&!p.nextTabbableNode(f))&&(F=h),F>=0){var D=F===i.tabbableGroups.length-1?0:F+1,V=i.tabbableGroups[D];I=ie(f)>=0?V.firstTabbableNode:V.firstDomTabbableNode}else he(y)||(I=p.nextTabbableNode(f))}}else I=S("fallbackFocus");return I},L=function(u){var f=Be(u);if(!(C(f,u)>=0)){if(ge(s.clickOutsideDeactivates,u)){m.deactivate({returnFocus:s.returnFocusOnDeactivate});return}ge(s.allowOutsideClick,u)||u.preventDefault()}},j=function(u){var f=Be(u),y=C(f,u)>=0;if(y||f instanceof Document)y&&(i.mostRecentlyFocusedNode=f);else{u.stopImmediatePropagation();var T,E=!0;if(i.mostRecentlyFocusedNode)if(ie(i.mostRecentlyFocusedNode)>0){var I=C(i.mostRecentlyFocusedNode),h=i.containerGroups[I].tabbableNodes;if(h.length>0){var p=h.findIndex(function(g){return g===i.mostRecentlyFocusedNode});p>=0&&(s.isKeyForward(i.recentNavEvent)?p+1<h.length&&(T=h[p+1],E=!1):p-1>=0&&(T=h[p-1],E=!1))}}else i.containerGroups.some(function(g){return g.tabbableNodes.some(function(v){return ie(v)>0})})||(E=!1);else E=!1;E&&(T=X({target:i.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(i.recentNavEvent)})),N(T||i.mostRecentlyFocusedNode||$())}i.recentNavEvent=void 0},ne=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var y=X({event:u,isBackward:f});y&&(he(u)&&u.preventDefault(),N(y))},Q=function(u){(s.isKeyForward(u)||s.isKeyBackward(u))&&ne(u,s.isKeyBackward(u))},H=function(u){Sn(u)&&ge(s.escapeDeactivates,u)!==!1&&(u.preventDefault(),m.deactivate())},Z=function(u){var f=Be(u);C(f,u)>=0||ge(s.clickOutsideDeactivates,u)||ge(s.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},Y=function(){if(i.active)return J.activateTrap(c,m),i.delayInitialFocusTimer=s.delayInitialFocus?bt(function(){N($())}):N($()),o.addEventListener("focusin",j,!0),o.addEventListener("mousedown",L,{capture:!0,passive:!1}),o.addEventListener("touchstart",L,{capture:!0,passive:!1}),o.addEventListener("click",Z,{capture:!0,passive:!1}),o.addEventListener("keydown",Q,{capture:!0,passive:!1}),o.addEventListener("keydown",H),m},_=function(u){i.active&&!i.paused&&m._setSubtreeIsolation(!1),i.adjacentElements.clear(),i.alreadySilent.clear();var f=new Set,y=new Set,T=ut(u),E;try{for(T.s();!(E=T.n()).done;){var I=E.value;f.add(I);for(var h=typeof ShadowRoot<"u"&&I.getRootNode()instanceof ShadowRoot,p=I;p;){f.add(p);var g=p.parentElement,v=[];g?v=g.children:!g&&h&&(v=p.getRootNode().children,g=p.getRootNode().host,h=typeof ShadowRoot<"u"&&g.getRootNode()instanceof ShadowRoot);var w=ut(v),F;try{for(w.s();!(F=w.n()).done;){var D=F.value;y.add(D)}}catch(V){w.e(V)}finally{w.f()}p=g}}}catch(V){T.e(V)}finally{T.f()}f.forEach(function(V){y.delete(V)}),i.adjacentElements=y},M=function(){if(i.active)return o.removeEventListener("focusin",j,!0),o.removeEventListener("mousedown",L,!0),o.removeEventListener("touchstart",L,!0),o.removeEventListener("click",Z,!0),o.removeEventListener("keydown",Q,!0),o.removeEventListener("keydown",H),m},P=function(u){var f=u.some(function(y){var T=Array.from(y.removedNodes);return T.some(function(E){return E===i.mostRecentlyFocusedNode})});f&&N($())},z=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(P):void 0,W=function(){z&&(z.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){z.observe(u,{subtree:!0,childList:!0})}))};return m={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var f=b(u,"onActivate"),y=b(u,"onPostActivate"),T=b(u,"checkCanFocusTrap"),E=J.getActiveTrap(c),I=!1;if(E&&!E.paused){var h;(h=E._setSubtreeIsolation)===null||h===void 0||h.call(E,!1),I=!0}try{T||O(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=x(o),f==null||f();var p=function(){T&&O(),Y(),W(),s.isolateSubtrees&&m._setSubtreeIsolation(!0),y==null||y()};if(T)return T(i.containers.concat()).then(p,p),this;p()}catch(v){if(E===J.getActiveTrap(c)&&I){var g;(g=E._setSubtreeIsolation)===null||g===void 0||g.call(E,!0)}throw v}return this},deactivate:function(u){if(!i.active)return this;var f=mt({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,i.paused||m._setSubtreeIsolation(!1),i.alreadySilent.clear(),M(),i.active=!1,i.paused=!1,W(),J.deactivateTrap(c,m);var y=b(f,"onDeactivate"),T=b(f,"onPostDeactivate"),E=b(f,"checkCanReturnFocus"),I=b(f,"returnFocus","returnFocusOnDeactivate");y==null||y();var h=function(){bt(function(){I&&N(A(i.nodeFocusedBeforeActivation)),T==null||T()})};return I&&E?(E(A(i.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(u){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return i.active?(i.manuallyPaused=!1,c[c.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var f=[].concat(u).filter(Boolean);return i.containers=f.map(function(y){return typeof y=="string"?o.querySelector(y):y}),s.isolateSubtrees&&_(i.containers),i.active&&(O(),s.isolateSubtrees&&!i.paused&&m._setSubtreeIsolation(!0)),W(),this}},Object.defineProperties(m,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(u,f){if(i.paused===u)return this;if(i.paused=u,u){var y=b(f,"onPause"),T=b(f,"onPostPause");y==null||y(),M(),W(),m._setSubtreeIsolation(!1),T==null||T()}else{var E=b(f,"onUnpause"),I=b(f,"onPostUnpause");E==null||E(),m._setSubtreeIsolation(!0),O(),Y(),W(),I==null||I()}return this}},_setSubtreeIsolation:{value:function(u){s.isolateSubtrees&&i.adjacentElements.forEach(function(f){var y;if(u)switch(s.isolateSubtrees){case"aria-hidden":(f.ariaHidden==="true"||((y=f.getAttribute("aria-hidden"))===null||y===void 0?void 0:y.toLowerCase())==="true")&&i.alreadySilent.add(f),f.setAttribute("aria-hidden","true");break;default:(f.inert||f.hasAttribute("inert"))&&i.alreadySilent.add(f),f.setAttribute("inert",!0);break}else if(!i.alreadySilent.has(f))switch(s.isolateSubtrees){case"aria-hidden":f.removeAttribute("aria-hidden");break;default:f.removeAttribute("inert");break}})}}}),m.updateContainerElements(t),m};/*!
|
|
7
|
+
*/function Ze(n,t){(t==null||t>n.length)&&(t=n.length);for(var r=0,o=Array(t);r<t;r++)o[r]=n[r];return o}function va(n){if(Array.isArray(n))return Ze(n)}function pt(n,t,r,o,l,s,i){try{var f=n[s](i),m=f.value}catch(k){return void r(k)}f.done?t(m):Promise.resolve(m).then(o,l)}function mt(n){return function(){var t=this,r=arguments;return new Promise(function(o,l){var s=n.apply(t,r);function i(m){pt(s,o,l,i,f,"next",m)}function f(m){pt(s,o,l,i,f,"throw",m)}i(void 0)})}}function bt(n,t){var r=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=yt(n))||t){r&&(n=r);var o=0,l=function(){};return{s:l,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(m){throw m},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,i=!0,f=!1;return{s:function(){r=r.call(n)},n:function(){var m=r.next();return i=m.done,m},e:function(m){f=!0,s=m},f:function(){try{i||r.return==null||r.return()}finally{if(f)throw s}}}}function ka(n,t,r){return(t=Ta(t))in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}function wa(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Sa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ht(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),r.push.apply(r,o)}return r}function gt(n){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ht(Object(r),!0).forEach(function(o){ka(n,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):ht(Object(r)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(r,o))})}return n}function ge(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,t,r=typeof Symbol=="function"?Symbol:{},o=r.iterator||"@@iterator",l=r.toStringTag||"@@toStringTag";function s(A,_,x,U){var P=_&&_.prototype instanceof f?_:f,K=Object.create(P.prototype);return Q(K,"_invoke",function(ee,J,W){var D,F,T,j=0,z=W||[],M=!1,V={p:0,n:0,v:n,a:N,f:N.bind(n,4),d:function(d,u){return D=d,F=0,T=n,V.n=u,i}};function N(d,u){for(F=d,T=u,t=0;!M&&j&&!h&&t<z.length;t++){var h,C=z[t],B=V.p,I=C[2];d>3?(h=I===u)&&(T=C[(F=C[4])?5:(F=3,3)],C[4]=C[5]=n):C[0]<=B&&((h=d<2&&B<C[1])?(F=0,V.v=u,V.n=C[1]):B<I&&(h=d<3||C[0]>u||u>I)&&(C[4]=d,C[5]=u,V.n=I,F=0))}if(h||d>1)return i;throw M=!0,u}return function(d,u,h){if(j>1)throw TypeError("Generator is already running");for(M&&u===1&&N(u,h),F=u,T=h;(t=F<2?n:T)||!M;){D||(F?F<3?(F>1&&(V.n=-1),N(F,T)):V.n=T:V.v=T);try{if(j=2,D){if(F||(d="next"),t=D[d]){if(!(t=t.call(D,T)))throw TypeError("iterator result is not an object");if(!t.done)return t;T=t.value,F<2&&(F=0)}else F===1&&(t=D.return)&&t.call(D),F<2&&(T=TypeError("The iterator does not provide a '"+d+"' method"),F=1);D=n}else if((t=(M=V.n<0)?T:ee.call(J,V))!==i)break}catch(C){D=n,F=1,T=C}finally{j=1}}return{value:t,done:M}}}(A,x,U),!0),K}var i={};function f(){}function m(){}function k(){}t=Object.getPrototypeOf;var E=[][o]?t(t([][o]())):(Q(t={},o,function(){return this}),t),O=k.prototype=f.prototype=Object.create(E);function $(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,k):(A.__proto__=k,Q(A,l,"GeneratorFunction")),A.prototype=Object.create(O),A}return m.prototype=k,Q(O,"constructor",k),Q(k,"constructor",m),m.displayName="GeneratorFunction",Q(k,l,"GeneratorFunction"),Q(O),Q(O,l,"Generator"),Q(O,o,function(){return this}),Q(O,"toString",function(){return"[object Generator]"}),(ge=function(){return{w:s,m:$}})()}function Q(n,t,r,o){var l=Object.defineProperty;try{l({},"",{})}catch{l=0}Q=function(s,i,f,m){function k(E,O){Q(s,E,function($){return this._invoke(E,O,$)})}i?l?l(s,i,{value:f,enumerable:!m,configurable:!m,writable:!m}):s[i]=f:(k("next",0),k("throw",1),k("return",2))},Q(n,t,r,o)}function Ca(n){return va(n)||wa(n)||yt(n)||Sa()}function Ea(n,t){if(typeof n!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var o=r.call(n,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}function Ta(n){var t=Ea(n,"string");return typeof t=="symbol"?t:t+""}function yt(n,t){if(n){if(typeof n=="string")return Ze(n,t);var r={}.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ze(n,t):void 0}}var te={getActiveTrap:function(t){return(t==null?void 0:t.length)>0?t[t.length-1]:null},activateTrap:function(t,r){var o=te.getActiveTrap(t);r!==o&&te.pauseTrap(t);var l=t.indexOf(r);l===-1||t.splice(l,1),t.push(r)},deactivateTrap:function(t,r){var o=t.indexOf(r);o!==-1&&t.splice(o,1),te.unpauseTrap(t)},pauseTrap:function(t){var r=te.getActiveTrap(t);r==null||r._setPausedState(!0)},unpauseTrap:function(t){var r=te.getActiveTrap(t);r&&!r._isManuallyPaused()&&r._setPausedState(!1)}},Ba=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Na=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},ye=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},_a=function(t){return ye(t)&&!t.shiftKey},Ia=function(t){return ye(t)&&t.shiftKey},vt=function(t){return setTimeout(t,0)},ve=function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];return typeof t=="function"?t.apply(void 0,o):t},_e=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Oa=[],$a=function(t,r){var o=(r==null?void 0:r.document)||document,l=(r==null?void 0:r.trapStack)||Oa,s=gt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:_a,isKeyBackward:Ia},r),i={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},f,m=function(d,u,h){return d&&d[u]!==void 0?d[u]:s[h||u]},k=function(d,u){var h=typeof(u==null?void 0:u.composedPath)=="function"?u.composedPath():void 0;return i.containerGroups.findIndex(function(C){var B=C.container,I=C.tabbableNodes;return B.contains(d)||(h==null?void 0:h.includes(B))||I.find(function(g){return g===d})})},E=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=u.hasFallback,C=h===void 0?!1:h,B=u.params,I=B===void 0?[]:B,g=s[d];if(typeof g=="function"&&(g=g.apply(void 0,Ca(I))),g===!0&&(g=void 0),!g){if(g===void 0||g===!1)return g;throw new Error("`".concat(d,"` was specified but was not a node, or did not return a node"))}var b=g;if(typeof g=="string"){try{b=o.querySelector(g)}catch(y){throw new Error("`".concat(d,'` appears to be an invalid selector; error="').concat(y.message,'"'))}if(!b&&!C)throw new Error("`".concat(d,"` as selector refers to no known node"))}return b},O=function(){var d=E("initialFocus",{hasFallback:!0});if(d===!1)return!1;if(d===void 0||d&&!Ke(d,s.tabbableOptions))if(k(o.activeElement)>=0)d=o.activeElement;else{var u=i.tabbableGroups[0],h=u&&u.firstTabbableNode;d=h||E("fallbackFocus")}else d===null&&(d=E("fallbackFocus"));if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},$=function(){if(i.containerGroups=i.containers.map(function(d){var u=ha(d,s.tabbableOptions),h=ga(d,s.tabbableOptions),C=u.length>0?u[0]:void 0,B=u.length>0?u[u.length-1]:void 0,I=h.find(function(y){return fe(y)}),g=h.slice().reverse().find(function(y){return fe(y)}),b=!!u.find(function(y){return ce(y)>0});return{container:d,tabbableNodes:u,focusableNodes:h,posTabIndexesFound:b,firstTabbableNode:C,lastTabbableNode:B,firstDomTabbableNode:I,lastDomTabbableNode:g,nextTabbableNode:function(v){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=u.indexOf(v);return R<0?w?h.slice(h.indexOf(v)+1).find(function(L){return fe(L)}):h.slice(0,h.indexOf(v)).reverse().find(function(L){return fe(L)}):u[R+(w?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!E("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(i.containerGroups.find(function(d){return d.posTabIndexesFound})&&i.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(d){var u=d.activeElement;if(u)return u.shadowRoot&&u.shadowRoot.activeElement!==null?A(u.shadowRoot):u},_=function(d){if(d!==!1&&d!==A(document)){if(!d||!d.focus){_(O());return}d.focus({preventScroll:!!s.preventScroll}),i.mostRecentlyFocusedNode=d,Ba(d)&&d.select()}},x=function(d){var u=E("setReturnFocus",{params:[d]});return u||(u===!1?!1:d)},U=function(d){var u=d.target,h=d.event,C=d.isBackward,B=C===void 0?!1:C;u=u||_e(h),$();var I=null;if(i.tabbableGroups.length>0){var g=k(u,h),b=g>=0?i.containerGroups[g]:void 0;if(g<0)B?I=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:I=i.tabbableGroups[0].firstTabbableNode;else if(B){var y=i.tabbableGroups.findIndex(function(ne){var ke=ne.firstTabbableNode;return u===ke});if(y<0&&(b.container===u||Ke(u,s.tabbableOptions)&&!fe(u,s.tabbableOptions)&&!b.nextTabbableNode(u,!1))&&(y=g),y>=0){var v=y===0?i.tabbableGroups.length-1:y-1,w=i.tabbableGroups[v];I=ce(u)>=0?w.lastTabbableNode:w.lastDomTabbableNode}else ye(h)||(I=b.nextTabbableNode(u,!1))}else{var R=i.tabbableGroups.findIndex(function(ne){var ke=ne.lastTabbableNode;return u===ke});if(R<0&&(b.container===u||Ke(u,s.tabbableOptions)&&!fe(u,s.tabbableOptions)&&!b.nextTabbableNode(u))&&(R=g),R>=0){var L=R===i.tabbableGroups.length-1?0:R+1,Z=i.tabbableGroups[L];I=ce(u)>=0?Z.firstTabbableNode:Z.firstDomTabbableNode}else ye(h)||(I=b.nextTabbableNode(u))}}else I=E("fallbackFocus");return I},P=function(d){var u=_e(d);if(!(k(u,d)>=0)){if(ve(s.clickOutsideDeactivates,d)){f.deactivate({returnFocus:s.returnFocusOnDeactivate});return}ve(s.allowOutsideClick,d)||d.preventDefault()}},K=function(d){var u=_e(d),h=k(u,d)>=0;if(h||u instanceof Document)h&&(i.mostRecentlyFocusedNode=u);else{d.stopImmediatePropagation();var C,B=!0;if(i.mostRecentlyFocusedNode)if(ce(i.mostRecentlyFocusedNode)>0){var I=k(i.mostRecentlyFocusedNode),g=i.containerGroups[I].tabbableNodes;if(g.length>0){var b=g.findIndex(function(y){return y===i.mostRecentlyFocusedNode});b>=0&&(s.isKeyForward(i.recentNavEvent)?b+1<g.length&&(C=g[b+1],B=!1):b-1>=0&&(C=g[b-1],B=!1))}}else i.containerGroups.some(function(y){return y.tabbableNodes.some(function(v){return ce(v)>0})})||(B=!1);else B=!1;B&&(C=U({target:i.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(i.recentNavEvent)})),_(C||i.mostRecentlyFocusedNode||O())}i.recentNavEvent=void 0},ee=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=d;var h=U({event:d,isBackward:u});h&&(ye(d)&&d.preventDefault(),_(h))},J=function(d){(s.isKeyForward(d)||s.isKeyBackward(d))&&ee(d,s.isKeyBackward(d))},W=function(d){Na(d)&&ve(s.escapeDeactivates,d)!==!1&&(d.preventDefault(),f.deactivate())},D=function(d){var u=_e(d);k(u,d)>=0||ve(s.clickOutsideDeactivates,d)||ve(s.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},F=function(){if(!i.active)return Promise.resolve();te.activateTrap(l,f);var d;return s.delayInitialFocus?d=new Promise(function(u){i.delayInitialFocusTimer=vt(function(){_(O()),u()})}):(d=Promise.resolve(),_(O())),o.addEventListener("focusin",K,!0),o.addEventListener("mousedown",P,{capture:!0,passive:!1}),o.addEventListener("touchstart",P,{capture:!0,passive:!1}),o.addEventListener("click",D,{capture:!0,passive:!1}),o.addEventListener("keydown",J,{capture:!0,passive:!1}),o.addEventListener("keydown",W),d},T=function(d){i.active&&!i.paused&&f._setSubtreeIsolation(!1),i.adjacentElements.clear(),i.alreadySilent.clear();var u=new Set,h=new Set,C=bt(d),B;try{for(C.s();!(B=C.n()).done;){var I=B.value;u.add(I);for(var g=typeof ShadowRoot<"u"&&I.getRootNode()instanceof ShadowRoot,b=I;b;){u.add(b);var y=b.parentElement,v=[];y?v=y.children:!y&&g&&(v=b.getRootNode().children,y=b.getRootNode().host,g=typeof ShadowRoot<"u"&&y.getRootNode()instanceof ShadowRoot);var w=bt(v),R;try{for(w.s();!(R=w.n()).done;){var L=R.value;h.add(L)}}catch(Z){w.e(Z)}finally{w.f()}b=y}}}catch(Z){C.e(Z)}finally{C.f()}u.forEach(function(Z){h.delete(Z)}),i.adjacentElements=h},j=function(){if(i.active)return o.removeEventListener("focusin",K,!0),o.removeEventListener("mousedown",P,!0),o.removeEventListener("touchstart",P,!0),o.removeEventListener("click",D,!0),o.removeEventListener("keydown",J,!0),o.removeEventListener("keydown",W),f},z=function(d){var u=d.some(function(h){var C=Array.from(h.removedNodes);return C.some(function(B){return B===i.mostRecentlyFocusedNode})});u&&_(O())},M=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(z):void 0,V=function(){M&&(M.disconnect(),i.active&&!i.paused&&i.containers.map(function(d){M.observe(d,{subtree:!0,childList:!0})}))};return f={get active(){return i.active},get paused(){return i.paused},activate:function(d){if(i.active)return this;var u=m(d,"onActivate"),h=m(d,"onPostActivate"),C=m(d,"checkCanFocusTrap"),B=te.getActiveTrap(l),I=!1;if(B&&!B.paused){var g;(g=B._setSubtreeIsolation)===null||g===void 0||g.call(B,!1),I=!0}try{C||$(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=A(o),u==null||u({trap:f});var b=function(){var v=mt(ge().m(function w(){return ge().w(function(R){for(;;)switch(R.n){case 0:return C&&$(),R.n=1,F();case 1:f._setSubtreeIsolation(!0),V(),h==null||h({trap:f});case 2:return R.a(2)}},w)}));return function(){return v.apply(this,arguments)}}();if(C)return C(i.containers.concat()).then(b,b),this;b()}catch(v){if(B===te.getActiveTrap(l)&&I){var y;(y=B._setSubtreeIsolation)===null||y===void 0||y.call(B,!0)}throw v}return this},deactivate:function(d){if(!i.active)return this;var u=gt({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},d);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,i.paused||f._setSubtreeIsolation(!1),i.alreadySilent.clear(),j(),i.active=!1,i.paused=!1,V(),te.deactivateTrap(l,f);var h=m(u,"onDeactivate"),C=m(u,"onPostDeactivate"),B=m(u,"checkCanReturnFocus"),I=m(u,"returnFocus","returnFocusOnDeactivate");h==null||h({trap:f});var g=function(){vt(function(){I&&_(x(i.nodeFocusedBeforeActivation)),C==null||C({trap:f})})};return I&&B?(B(x(i.nodeFocusedBeforeActivation)).then(g,g),this):(g(),this)},pause:function(d){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,d)):this},unpause:function(d){return i.active?(i.manuallyPaused=!1,l[l.length-1]!==this?this:this._setPausedState(!1,d)):this},updateContainerElements:function(d){var u=[].concat(d).filter(Boolean);return i.containers=u.map(function(h){return typeof h=="string"?o.querySelector(h):h}),s.isolateSubtrees&&T(i.containers),i.active&&($(),i.paused||f._setSubtreeIsolation(!0)),V(),this}},Object.defineProperties(f,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(d,u){if(i.paused===d)return this;if(i.paused=d,d){var h=m(u,"onPause"),C=m(u,"onPostPause");h==null||h({trap:f}),j(),f._setSubtreeIsolation(!1),V(),C==null||C({trap:f})}else{var B=m(u,"onUnpause"),I=m(u,"onPostUnpause");B==null||B({trap:f});var g=function(){var b=mt(ge().m(function y(){return ge().w(function(v){for(;;)switch(v.n){case 0:return $(),v.n=1,F();case 1:f._setSubtreeIsolation(!0),V(),I==null||I({trap:f});case 2:return v.a(2)}},y)}));return function(){return b.apply(this,arguments)}}();g()}return this}},_setSubtreeIsolation:{value:function(d){s.isolateSubtrees&&i.adjacentElements.forEach(function(u){var h;if(d)switch(s.isolateSubtrees){case"aria-hidden":(u.ariaHidden==="true"||((h=u.getAttribute("aria-hidden"))===null||h===void 0?void 0:h.toLowerCase())==="true")&&i.alreadySilent.add(u),u.setAttribute("aria-hidden","true");break;default:(u.inert||u.hasAttribute("inert"))&&i.alreadySilent.add(u),u.setAttribute("inert",!0);break}else if(!i.alreadySilent.has(u))switch(s.isolateSubtrees){case"aria-hidden":u.removeAttribute("aria-hidden");break;default:u.removeAttribute("inert");break}})}}}),f.updateContainerElements(t),f};/*!
|
|
10
10
|
* focus-trap-vue v4.0.3
|
|
11
11
|
* (c) 2025 Eduardo San Martin Morote
|
|
12
12
|
* @license MIT
|
|
13
|
-
*/function Ir(n){return n}const In={escapeDeactivates:{type:Boolean,default:!0},returnFocusOnDeactivate:{type:Boolean,default:!0},allowOutsideClick:{type:[Boolean,Function],default:!0},clickOutsideDeactivates:[Boolean,Function],initialFocus:[String,Function,Boolean],fallbackFocus:[String,Function],checkCanFocusTrap:Function,checkCanReturnFocus:Function,delayInitialFocus:{type:Boolean,default:!0},document:Object,preventScroll:Boolean,setReturnFocus:[Object,String,Boolean,Function],tabbableOptions:Object},_n=e.defineComponent({name:"FocusTrap",props:Object.assign({active:{type:Boolean,default:!0}},In),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(n,{slots:t,emit:r}){let o;const c=e.ref(null),s=e.computed(()=>{const m=c.value;return m&&(m instanceof HTMLElement?m:m.$el)});function i(){return o||(o=Nn(s.value,{escapeDeactivates:n.escapeDeactivates,allowOutsideClick:n.allowOutsideClick,returnFocusOnDeactivate:n.returnFocusOnDeactivate,clickOutsideDeactivates:n.clickOutsideDeactivates,onActivate:()=>{r("update:active",!0),r("activate")},onDeactivate:()=>{r("update:active",!1),r("deactivate")},onPostActivate:()=>r("postActivate"),onPostDeactivate:()=>r("postDeactivate"),initialFocus:n.initialFocus,fallbackFocus:n.fallbackFocus,tabbableOptions:n.tabbableOptions,delayInitialFocus:n.delayInitialFocus,preventScroll:n.preventScroll}))}return e.onMounted(()=>{e.watch(()=>n.active,m=>{m&&s.value?i().activate():o&&(o.deactivate(),(!s.value||s.value.nodeType===Node.COMMENT_NODE)&&(o=null))},{immediate:!0,flush:"post"})}),e.onUnmounted(()=>{o&&o.deactivate(),o=null}),{activate(){i().activate()},deactivate(){o&&o.deactivate()},renderImpl(){if(!t.default)return null;const m=t.default().filter(C=>C.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:c})}}}});function ht(){return{debounce:(t,r)=>{let o;return(...c)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{t(...c)},r)}}}}var Ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $n(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ie={exports:{}};Ie.exports,function(n,t){var r=200,o="__lodash_hash_undefined__",c=9007199254740991,s="[object Arguments]",i="[object Array]",m="[object Boolean]",b="[object Date]",C="[object Error]",S="[object Function]",$="[object GeneratorFunction]",O="[object Map]",x="[object Number]",N="[object Object]",A="[object Promise]",X="[object RegExp]",L="[object Set]",j="[object String]",ne="[object Symbol]",Q="[object WeakMap]",H="[object ArrayBuffer]",Z="[object DataView]",Y="[object Float32Array]",_="[object Float64Array]",M="[object Int8Array]",P="[object Int16Array]",z="[object Int32Array]",W="[object Uint8Array]",B="[object Uint8ClampedArray]",u="[object Uint16Array]",f="[object Uint32Array]",y=/[\\^$.*+?()[\]{}|]/g,T=/\w*$/,E=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,h={};h[s]=h[i]=h[H]=h[Z]=h[m]=h[b]=h[Y]=h[_]=h[M]=h[P]=h[z]=h[O]=h[x]=h[N]=h[X]=h[L]=h[j]=h[ne]=h[W]=h[B]=h[u]=h[f]=!0,h[C]=h[S]=h[Q]=!1;var p=typeof Ne=="object"&&Ne&&Ne.Object===Object&&Ne,g=typeof self=="object"&&self&&self.Object===Object&&self,v=p||g||Function("return this")(),w=t&&!t.nodeType&&t,F=w&&!0&&n&&!n.nodeType&&n,D=F&&F.exports===w;function V(a,l){return a.set(l[0],l[1]),a}function ee(a,l){return a.add(l),a}function ye(a,l){for(var d=-1,k=a?a.length:0;++d<k&&l(a[d],d,a)!==!1;);return a}function co(a,l){for(var d=-1,k=l.length,K=a.length;++d<k;)a[K+d]=l[d];return a}function kt(a,l,d,k){for(var K=-1,G=a?a.length:0;++K<G;)d=l(d,a[K],K,a);return d}function so(a,l){for(var d=-1,k=Array(a);++d<a;)k[d]=l(d);return k}function uo(a,l){return a==null?void 0:a[l]}function wt(a){var l=!1;if(a!=null&&typeof a.toString!="function")try{l=!!(a+"")}catch{}return l}function Ct(a){var l=-1,d=Array(a.size);return a.forEach(function(k,K){d[++l]=[K,k]}),d}function Ke(a,l){return function(d){return a(l(d))}}function St(a){var l=-1,d=Array(a.size);return a.forEach(function(k){d[++l]=k}),d}var fo=Array.prototype,mo=Function.prototype,_e=Object.prototype,Ze=v["__core-js_shared__"],Et=function(){var a=/[^.]+$/.exec(Ze&&Ze.keys&&Ze.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Tt=mo.toString,oe=_e.hasOwnProperty,$e=_e.toString,po=RegExp("^"+Tt.call(oe).replace(y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=D?v.Buffer:void 0,Nt=v.Symbol,It=v.Uint8Array,bo=Ke(Object.getPrototypeOf,Object),ho=Object.create,go=_e.propertyIsEnumerable,yo=fo.splice,_t=Object.getOwnPropertySymbols,vo=Bt?Bt.isBuffer:void 0,ko=Ke(Object.keys,Object),ze=pe(v,"DataView"),ve=pe(v,"Map"),He=pe(v,"Promise"),We=pe(v,"Set"),Ge=pe(v,"WeakMap"),ke=pe(Object,"create"),wo=de(ze),Co=de(ve),So=de(He),Eo=de(We),To=de(Ge),$t=Nt?Nt.prototype:void 0,Ot=$t?$t.valueOf:void 0;function ce(a){var l=-1,d=a?a.length:0;for(this.clear();++l<d;){var k=a[l];this.set(k[0],k[1])}}function Bo(){this.__data__=ke?ke(null):{}}function No(a){return this.has(a)&&delete this.__data__[a]}function Io(a){var l=this.__data__;if(ke){var d=l[a];return d===o?void 0:d}return oe.call(l,a)?l[a]:void 0}function _o(a){var l=this.__data__;return ke?l[a]!==void 0:oe.call(l,a)}function $o(a,l){var d=this.__data__;return d[a]=ke&&l===void 0?o:l,this}ce.prototype.clear=Bo,ce.prototype.delete=No,ce.prototype.get=Io,ce.prototype.has=_o,ce.prototype.set=$o;function te(a){var l=-1,d=a?a.length:0;for(this.clear();++l<d;){var k=a[l];this.set(k[0],k[1])}}function Oo(){this.__data__=[]}function Ao(a){var l=this.__data__,d=Oe(l,a);if(d<0)return!1;var k=l.length-1;return d==k?l.pop():yo.call(l,d,1),!0}function xo(a){var l=this.__data__,d=Oe(l,a);return d<0?void 0:l[d][1]}function Do(a){return Oe(this.__data__,a)>-1}function Fo(a,l){var d=this.__data__,k=Oe(d,a);return k<0?d.push([a,l]):d[k][1]=l,this}te.prototype.clear=Oo,te.prototype.delete=Ao,te.prototype.get=xo,te.prototype.has=Do,te.prototype.set=Fo;function fe(a){var l=-1,d=a?a.length:0;for(this.clear();++l<d;){var k=a[l];this.set(k[0],k[1])}}function Vo(){this.__data__={hash:new ce,map:new(ve||te),string:new ce}}function Ro(a){return Ae(this,a).delete(a)}function Lo(a){return Ae(this,a).get(a)}function Mo(a){return Ae(this,a).has(a)}function jo(a,l){return Ae(this,a).set(a,l),this}fe.prototype.clear=Vo,fe.prototype.delete=Ro,fe.prototype.get=Lo,fe.prototype.has=Mo,fe.prototype.set=jo;function me(a){this.__data__=new te(a)}function Po(){this.__data__=new te}function Ko(a){return this.__data__.delete(a)}function Zo(a){return this.__data__.get(a)}function zo(a){return this.__data__.has(a)}function Ho(a,l){var d=this.__data__;if(d instanceof te){var k=d.__data__;if(!ve||k.length<r-1)return k.push([a,l]),this;d=this.__data__=new fe(k)}return d.set(a,l),this}me.prototype.clear=Po,me.prototype.delete=Ko,me.prototype.get=Zo,me.prototype.has=zo,me.prototype.set=Ho;function Wo(a,l){var d=Xe(a)||hr(a)?so(a.length,String):[],k=d.length,K=!!k;for(var G in a)oe.call(a,G)&&!(K&&(G=="length"||fr(G,k)))&&d.push(G);return d}function At(a,l,d){var k=a[l];(!(oe.call(a,l)&&Vt(k,d))||d===void 0&&!(l in a))&&(a[l]=d)}function Oe(a,l){for(var d=a.length;d--;)if(Vt(a[d][0],l))return d;return-1}function Go(a,l){return a&&xt(l,Ye(l),a)}function Ue(a,l,d,k,K,G,ae){var U;if(k&&(U=G?k(a,K,G,ae):k(a)),U!==void 0)return U;if(!xe(a))return a;var Mt=Xe(a);if(Mt){if(U=sr(a),!l)return ir(a,U)}else{var be=se(a),jt=be==S||be==$;if(yr(a))return Jo(a,l);if(be==N||be==s||jt&&!G){if(wt(a))return G?a:{};if(U=dr(jt?{}:a),!l)return lr(a,Go(U,a))}else{if(!h[be])return G?a:{};U=ur(a,be,Ue,l)}}ae||(ae=new me);var Pt=ae.get(a);if(Pt)return Pt;if(ae.set(a,U),!Mt)var Kt=d?cr(a):Ye(a);return ye(Kt||a,function(Qe,De){Kt&&(De=Qe,Qe=a[De]),At(U,De,Ue(Qe,l,d,k,De,a,ae))}),U}function Uo(a){return xe(a)?ho(a):{}}function qo(a,l,d){var k=l(a);return Xe(a)?k:co(k,d(a))}function Xo(a){return $e.call(a)}function Yo(a){if(!xe(a)||pr(a))return!1;var l=Lt(a)||wt(a)?po:E;return l.test(de(a))}function Qo(a){if(!Ft(a))return ko(a);var l=[];for(var d in Object(a))oe.call(a,d)&&d!="constructor"&&l.push(d);return l}function Jo(a,l){if(l)return a.slice();var d=new a.constructor(a.length);return a.copy(d),d}function qe(a){var l=new a.constructor(a.byteLength);return new It(l).set(new It(a)),l}function er(a,l){var d=l?qe(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.byteLength)}function tr(a,l,d){var k=l?d(Ct(a),!0):Ct(a);return kt(k,V,new a.constructor)}function ar(a){var l=new a.constructor(a.source,T.exec(a));return l.lastIndex=a.lastIndex,l}function nr(a,l,d){var k=l?d(St(a),!0):St(a);return kt(k,ee,new a.constructor)}function or(a){return Ot?Object(Ot.call(a)):{}}function rr(a,l){var d=l?qe(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.length)}function ir(a,l){var d=-1,k=a.length;for(l||(l=Array(k));++d<k;)l[d]=a[d];return l}function xt(a,l,d,k){d||(d={});for(var K=-1,G=l.length;++K<G;){var ae=l[K],U=void 0;At(d,ae,U===void 0?a[ae]:U)}return d}function lr(a,l){return xt(a,Dt(a),l)}function cr(a){return qo(a,Ye,Dt)}function Ae(a,l){var d=a.__data__;return mr(l)?d[typeof l=="string"?"string":"hash"]:d.map}function pe(a,l){var d=uo(a,l);return Yo(d)?d:void 0}var Dt=_t?Ke(_t,Object):wr,se=Xo;(ze&&se(new ze(new ArrayBuffer(1)))!=Z||ve&&se(new ve)!=O||He&&se(He.resolve())!=A||We&&se(new We)!=L||Ge&&se(new Ge)!=Q)&&(se=function(a){var l=$e.call(a),d=l==N?a.constructor:void 0,k=d?de(d):void 0;if(k)switch(k){case wo:return Z;case Co:return O;case So:return A;case Eo:return L;case To:return Q}return l});function sr(a){var l=a.length,d=a.constructor(l);return l&&typeof a[0]=="string"&&oe.call(a,"index")&&(d.index=a.index,d.input=a.input),d}function dr(a){return typeof a.constructor=="function"&&!Ft(a)?Uo(bo(a)):{}}function ur(a,l,d,k){var K=a.constructor;switch(l){case H:return qe(a);case m:case b:return new K(+a);case Z:return er(a,k);case Y:case _:case M:case P:case z:case W:case B:case u:case f:return rr(a,k);case O:return tr(a,k,d);case x:case j:return new K(a);case X:return ar(a);case L:return nr(a,k,d);case ne:return or(a)}}function fr(a,l){return l=l??c,!!l&&(typeof a=="number"||I.test(a))&&a>-1&&a%1==0&&a<l}function mr(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}function pr(a){return!!Et&&Et in a}function Ft(a){var l=a&&a.constructor,d=typeof l=="function"&&l.prototype||_e;return a===d}function de(a){if(a!=null){try{return Tt.call(a)}catch{}try{return a+""}catch{}}return""}function br(a){return Ue(a,!0,!0)}function Vt(a,l){return a===l||a!==a&&l!==l}function hr(a){return gr(a)&&oe.call(a,"callee")&&(!go.call(a,"callee")||$e.call(a)==s)}var Xe=Array.isArray;function Rt(a){return a!=null&&vr(a.length)&&!Lt(a)}function gr(a){return kr(a)&&Rt(a)}var yr=vo||Cr;function Lt(a){var l=xe(a)?$e.call(a):"";return l==S||l==$}function vr(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=c}function xe(a){var l=typeof a;return!!a&&(l=="object"||l=="function")}function kr(a){return!!a&&typeof a=="object"}function Ye(a){return Rt(a)?Wo(a):Qo(a)}function wr(){return[]}function Cr(){return!1}n.exports=br}(Ie,Ie.exports);var On=Ie.exports;const An=$n(On),xn={key:0,class:"sidebar-header"},Dn={class:"sidebar-content-container"},Fn={key:0,class:"sidebar-top"},Vn={"aria-label":"Main menu"},Rn=["id"],Ln=["aria-labelledby"],Mn={key:1,class:"sidebar-level-divider",role:"separator"},jn={key:2,class:"level-primary bottom-items"},Pn={class:"sidebar-footer"},le="_ungrouped",gt=q(e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,default:()=>[]},groupConfig:{type:Object,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","toggle-collapse"],setup(n,{emit:t}){e.useCssVars(p=>({v53c8e6c8:m.value.mobileHeight,v6f959158:m.value.mobileTop,v6c6af840:n.zIndex,v4342dec6:m.value.height,ccaf1fd4:m.value.top,v6d681f2c:C.value.marginTop,v065dda82:I.value,v3e86363c:b.value.display,e3423b8e:b.value.minHeight,b4fe47b6:S.value.top,v528eb0b0:S.value.zIndex}));const r=t,o=n,c=e.useSlots(),s=e.computed(()=>!!c.header),i=e.computed(()=>!!c.top),m=e.computed(()=>({mobileTop:o.mobileTopOffset&&o.mobileEnabled?`${o.mobileTopOffset}px`:o.topOffset?`${o.topOffset}px`:"0",top:o.topOffset?`${o.topOffset}px`:"0",mobileHeight:o.mobileTopOffset&&o.mobileEnabled?`calc(100% - ${o.mobileTopOffset}px)`:"100%",height:o.topOffset?`calc(100% - ${o.topOffset}px)`:"100%"})),b=e.computed(()=>({display:!o.mobileHeaderVisible&&o.mobileEnabled?"none":"flex",minHeight:`${o.headerHeight}px`})),C=e.computed(()=>({marginTop:s.value?`${o.headerHeight}px`:"0"})),S=e.computed(()=>({top:o.mobileTopOffset&&o.mobileEnabled?`${o.mobileTopOffset}px`:"0",zIndex:o.mobileOverlayZIndex!==null?o.mobileOverlayZIndex:o.zIndex>1?o.zIndex-1:1})),$=p=>An(p).map(v=>{var w,F,D;if(v){(!v.key||!((w=v.key)!=null&&w.trim()))&&(v.key=String(v.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!v.testId||!((F=v.testId)!=null&&F.trim()))&&(v.testId=String(v.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const V of v.items||[])V.parentKey=v.key,(!V.testId||!((D=V.testId)!=null&&D.trim()))&&(V.testId=String(V.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return v}),O=e.computed(()=>o.topItems.length?$(o.topItems):[]),x=e.computed(()=>o.bottomItems.length?$(o.bottomItems):[]),N=(p="")=>p.trim().replace(" ","").replace(/[^a-z0-9]+/gi,"-").toLowerCase(),A=e.computed(()=>{var g;const p=new Map;p.set(le,[]);for(const v of O.value){const w=v.group||le;p.has(w)||p.set(w,[]),(g=p.get(w))==null||g.push(v)}return p}),X=Aa(`max-width: ${Ma}`),L=(p="")=>{if(p===le||!p.trim())return null;const g={label:p,collapsible:!1,collapsed:!1};let v=p.trim().replace(" ","");return v=v.charAt(0).toLowerCase()+v.slice(1),p&&o.groupConfig&&(o.groupConfig[p]||o.groupConfig[v])?o.groupConfig[p]||o.groupConfig[v]:g},j=p=>{var g;return!!((g=L(p))!=null&&g.collapsible)},ne=p=>{var g;return!!((g=L(p))!=null&&g.collapsed)},Q=(p,g,v)=>{const w=L(p);w&&(w.collapsed=!g),v(),r("toggle-collapse",p,w)},H=e.ref(o.open),Z=p=>{var g,v;H.value!==p&&(H.value=p,r("toggle",p)),p?(g=document==null?void 0:document.body)==null||g.classList.add("kong-ui-app-sidebar-open"):(v=document==null?void 0:document.body)==null||v.classList.remove("kong-ui-app-sidebar-open"),_.value=!1},Y=()=>{o.mobileOverlayCloseOnClick&&Z(!1)},_=e.ref(!1),M=p=>{_.value=!0,r("click",p),setTimeout(()=>{Z(!1)},o.mobileCloseDelay)};e.watch(()=>o.open,p=>{Z(p)});const{debounce:P}=ht(),z=P(()=>{H.value&&W.value!==(window==null?void 0:window.innerWidth)&&(W.value=window==null?void 0:window.innerWidth,Z(!1))},200),W=e.ref(),B=e.ref(!1),u=e.ref(),f=()=>{B.value||(B.value=!0,clearTimeout(u.value),u.value=setTimeout(()=>B.value=!1,1300))},y=e.ref(null),T=e.computed(()=>H.value&&o.mobileEnabled),E=async p=>{var g,v;p?(await e.nextTick(),await new Promise(w=>setTimeout(w,300)),(g=y.value)==null||g.activate()):(v=y.value)==null||v.deactivate()};e.watch(T,async p=>{p?await E(!0):await E(!1)},{immediate:!0});const I=e.ref("0px"),h=()=>{var V;if(!(/Mac|iPhone|iPod|iPad/i.test(navigator==null?void 0:navigator.platform)||/macOS|Mac|iPhone|iPod|iPad/i.test((V=navigator==null?void 0:navigator.userAgentData)==null?void 0:V.platform)))return;const g=document.createElement("div");g.style.visibility="hidden",g.style.width="100px",document.body.appendChild(g);const v=g.offsetWidth;g.style.overflow="scroll";const w=document.createElement("div");w.style.width="100%",g.appendChild(w);const F=w.offsetWidth;g.parentNode&&g.parentNode.removeChild(g),v-F===0&&(I.value="8px")};return e.onMounted(async()=>{if(W.value=window==null?void 0:window.innerWidth,window.addEventListener("resize",z),window.addEventListener("resize",f),o.groupConfig&&X.value)for(const p in o.groupConfig){const g=o.groupConfig[p];g.collapsed=!1}await e.nextTick(),h()}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",z),window.removeEventListener("resize",f)}),(p,g)=>{const v=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock(e.Fragment,null,[H.value&&n.mobileOverlay&&n.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:Y})):e.createCommentVNode("",!0),e.createVNode(e.unref(_n),{ref_key:"focusTrap",ref:y,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":H.value,"no-sidebar-header":!s.value,"mobile-header-hidden":n.mobileEnabled&&(!s.value||!n.mobileHeaderVisible),"mobile-disabled":!n.mobileEnabled,"disable-transitions":B.value}]),tabindex:"-1"},[s.value?(e.openBlock(),e.createElementBlock("div",xn,[e.renderSlot(p.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Dn,[i.value?(e.openBlock(),e.createElementBlock("div",Fn,[e.renderSlot(p.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Vn,[A.value.size>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(A.value,([w,F])=>(e.openBlock(),e.createBlock(v,{key:w,class:e.normalizeClass(["level-primary-group-collapse",{"not-collapsible":!j(w),ungrouped:w===le}]),"data-testid":w===le?"level-primary-group-collapse-ungrouped":`level-primary-group-collapse-${w}`,"model-value":j(w)&&ne(w)||!1},{trigger:e.withCtx(({isCollapsed:D,toggle:V})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(w)?e.unref(Je.KButton):"div"),{appearance:j(w)?"none":void 0,class:"level-primary-group-collapse-trigger",onClick:ee=>j(w)?Q(w,D,V):void 0},{default:e.withCtx(()=>{var ee;return[w!==le?(e.openBlock(),e.createElementBlock("div",{key:0,id:`level-primary-group-${N(w)}`,class:"level-primary-group-name","data-testid":"level-primary-group-name",role:"presentation"},e.toDisplayString(((ee=L(w))==null?void 0:ee.label)||w),9,Rn)):e.createCommentVNode("",!0),j(w)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(D?e.unref(Fe.ChevronRightIcon):e.unref(Fe.ChevronDownIcon)),{key:1,class:"level-primary-group-collapse-icon",color:e.unref(Pa),"data-testid":"level-primary-group-collapse-icon",size:e.unref(ja)},null,8,["color","size"])):e.createCommentVNode("",!0)]}),_:2},1032,["appearance","onClick"]))]),default:e.withCtx(()=>[e.createElementVNode("ul",{"aria-labelledby":w!==le?`level-primary-group-${N(w)}`:void 0,class:"level-primary top-items"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F,D=>(e.openBlock(),e.createBlock(nt,{key:D.name,item:D,onClick:M},e.createSlots({[`sidebar-icon-${D.key}`]:e.withCtx(()=>[e.renderSlot(p.$slots,`sidebar-icon-${D.key}`,{},void 0,!0)]),_:2},[p.$slots[`sidebar-after-${D.key}`]?{name:`sidebar-after-${D.key}`,fn:e.withCtx(()=>[e.renderSlot(p.$slots,`sidebar-after-${D.key}`,{},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))),128))],8,Ln)]),_:2},1032,["class","data-testid","model-value"]))),128)):e.createCommentVNode("",!0),A.value.size>0&&x.value.length?(e.openBlock(),e.createElementBlock("div",Mn)):e.createCommentVNode("",!0),x.value.length?(e.openBlock(),e.createElementBlock("ul",jn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,w=>(e.openBlock(),e.createBlock(nt,{key:w.name,item:w,onClick:M},{[`sidebar-icon-${w.key}`]:e.withCtx(()=>[e.renderSlot(p.$slots,`sidebar-icon-${w.key}`,{},void 0,!0)]),_:2},1032,["item"]))),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Pn,[e.renderSlot(p.$slots,"footer",{},void 0,!0)])],2)]),_:3},512)],64)}}}),[["__scopeId","data-v-e8512478"]]),Kn=["aria-label"],yt=q(e.defineComponent({__name:"SidebarToggle",props:{active:{type:Boolean,default:!1}},emits:["toggle"],setup(n,{emit:t}){const r=t,o=n,c=e.ref(o.active||!1),s=i=>{i.preventDefault(),c.value=!c.value,r("toggle",c.value)};return e.watch(()=>o.active,i=>{c.value=i}),(i,m)=>(e.openBlock(),e.createElementBlock("a",{"aria-haspopup":"true","aria-label":c.value?"Close Main Menu":"Open Main Menu",class:e.normalizeClass(["sidebar-menu-toggle",{active:c.value}]),href:"#",role:"button",onClick:e.withModifiers(s,["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,Kn))}}),[["__scopeId","data-v-2238b0de"]]),Zn={id:"kong-ui-app-layout-notification"},zn={class:"mobile-logo"},Hn={key:0,class:"navbar-logo"},Wn={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},Gn={class:"kong-ui-app-layout-content"},vt=q(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:()=>[]},groupConfig:{type:Object,default:()=>({})},theme:{type:String,default:"light",validator:n=>["light","dark"].includes(n)},removeContentInnerPadding:{type:Boolean,default:!1}},emits:["sidebar-click","update:topOffset","toggle-collapse"],setup(n,{emit:t}){e.useCssVars(_=>({v5526a015:L.value,v3240b80b:j.value,v71472eba:X.value,v709f53f2:ne.value,v0010e23a:Q.value}));const r=n,o=t,c=e.useSlots(),s=e.reactive({navbarLeft:e.computed(()=>!!c["navbar-left"]),navbarCenter:e.computed(()=>!!c["navbar-center"]),navbarRight:e.computed(()=>!!c["navbar-right"]),navbarLogo:e.computed(()=>!!c["navbar-logo"]),navbarMobileLogo:e.computed(()=>!!c["navbar-mobile-logo"]),sidebarHeader:e.computed(()=>!!c["sidebar-header"]),sidebarTop:e.computed(()=>!!c["sidebar-top"]),sidebarFooter:e.computed(()=>!!c["sidebar-footer"])}),i=e.computed(()=>r.hideDefaultSlot),m=e.reactive({hidden:e.computed(()=>r.navbarHidden)}),b=e.reactive({topItems:e.computed(()=>r.sidebarTopItems),bottomItems:e.computed(()=>r.sidebarBottomItems),open:e.computed(()=>r.sidebarOpen),hidden:e.computed(()=>r.sidebarHidden)}),C=_=>{o("sidebar-click",_)},S=e.ref(!1),$=_=>{S.value=_};e.watchEffect(()=>{S.value=e.toRef(b,"open").value||!1});const O=e.ref(0),x=e.ref(60),N=e.ref(0),A=e.computed(()=>m.hidden?N.value:x.value+N.value),X=e.computed(()=>r.theme==="light"?Fa:Va),L=e.computed(()=>r.theme==="light"?xa:Da),j=e.computed(()=>r.theme==="light"?"var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)":"none"),ne=e.computed(()=>`${A.value}px`),Q=e.computed(()=>b.hidden||m.hidden?Ra:La),{debounce:H}=ht(),Z=H((_=!1)=>{if(_||O.value!==(window==null?void 0:window.innerWidth)){O.value=window==null?void 0:window.innerWidth;const M=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");M&&(N.value=M.offsetHeight)}},200),Y=e.ref();return e.watch(N,_=>{o("update:topOffset",_||0)},{immediate:!0}),e.onMounted(()=>{var M,P;(M=document==null?void 0:document.body)==null||M.classList.add("kong-ui-app-layout-body"),(P=document==null?void 0:document.documentElement)==null||P.classList.add("kong-ui-app-layout-html"),O.value=window==null?void 0:window.innerWidth,Z(!0);const _=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");_&&(Y.value=new ResizeObserver(z=>{window.requestAnimationFrame(()=>{if(!(!Array.isArray(z)||!z.length))for(const W of z){const B=W.contentRect.height;N.value!==B&&(N.value=B)}})}),Y.value.observe(_)),window.addEventListener("resize",Z)}),e.onBeforeUnmount(()=>{Y.value&&Y.value.disconnect(),window.removeEventListener("resize",Z)}),(_,M)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":m.hidden},{"sidebar-hidden":b.hidden}]])},[e.createElementVNode("div",Zn,[e.renderSlot(_.$slots,"notification",{},void 0,!0)]),m.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(et,{key:String(b.hidden),"left-offset":b.hidden?0:void 0,"top-offset":N.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[b.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(yt,{key:0,active:S.value,onToggle:$},null,8,["active"]))]),_:2},[s.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",zn,[e.renderSlot(_.$slots,"navbar-mobile-logo",{},void 0,!0)])]),key:"0"}:void 0,s.navbarLogo?{name:"logo",fn:e.withCtx(()=>[b.hidden?(e.openBlock(),e.createElementBlock("div",Hn,[e.renderSlot(_.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,s.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,s.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,s.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-right",{},void 0,!0)]),key:"4"}:void 0]),1032,["left-offset","top-offset"])),b.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(gt,{key:1,"bottom-items":b.bottomItems,"group-config":n.groupConfig,"header-height":x.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":A.value,open:S.value,"top-items":b.topItems,"top-offset":N.value,onClick:C,onToggle:$,onToggleCollapse:M[0]||(M[0]=(P,z)=>o("toggle-collapse",P,z))},e.createSlots({_:2},[s.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,s.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0,s.sidebarFooter?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-footer",{},void 0,!0)]),key:"2"}:void 0,e.renderList([...b.topItems||[],...b.bottomItems||[]],P=>({name:`sidebar-icon-${P.key}`,fn:e.withCtx(()=>[e.renderSlot(_.$slots,`sidebar-icon-${P.key}`,{},void 0,!0)])})),e.renderList([...b.topItems||[],...b.bottomItems||[]],P=>({name:`sidebar-after-${P.key}`,fn:e.withCtx(()=>[e.renderSlot(_.$slots,`sidebar-after-${P.key}`,{},void 0,!0)])}))]),1032,["bottom-items","group-config","header-height","mobile-top-offset","open","top-items","top-offset"])),e.createElementVNode("main",Wn,[e.createElementVNode("div",Gn,[e.createElementVNode("div",{class:e.normalizeClass(["kong-ui-app-layout-content-inner",{"remove-inner-padding":n.removeContentInnerPadding}])},[M[1]||(M[1]=e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),e.renderSlot(_.$slots,"app-error",{},void 0,!0),i.value?e.createCommentVNode("",!0):e.renderSlot(_.$slots,"default",{key:0},void 0,!0)],2)])])],2))}}),[["__scopeId","data-v-b9242b31"]]),Un={key:0,class:"page-header-breadcrumbs","data-testid":"page-header-breadcrumbs"},qn={class:"page-header-title-section"},Xn={class:"page-header-title-wrapper"},Yn={key:0,class:"page-header-title-before","data-testid":"page-header-title-before"},Qn={key:1,class:"page-header-title-after","data-testid":"page-header-title-after"},Jn={key:0,class:"page-header-actions","data-testid":"page-header-actions"},eo={key:1,class:"page-header-section-below","data-testid":"page-header-section-below"},to=q(e.defineComponent({__name:"AppPageHeader",props:{title:{type:String,default:""},breadcrumbs:{type:Array,default:()=>[]},konnectNavigationNext:{type:Boolean,default:!1}},setup(n){const t=n,r=e.useSlots(),o=e.computed(()=>{var s;return!!((s=t.breadcrumbs)!=null&&s.length)}),c=e.computed(()=>Object.keys(r).filter(s=>s.startsWith("icon-")));return(s,i)=>{const m=e.resolveComponent("KBreadcrumbs");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-page-header",{"konnect-navigation-next":n.konnectNavigationNext}])},[o.value&&!n.konnectNavigationNext?(e.openBlock(),e.createElementBlock("div",Un,[e.createVNode(m,{"item-max-width":"150",items:n.breadcrumbs},e.createSlots({_:2},[e.renderList(c.value,b=>({name:b,fn:e.withCtx(()=>[e.renderSlot(s.$slots,b,{},void 0,!0)])}))]),1032,["items"])])):e.createCommentVNode("",!0),e.createElementVNode("div",qn,[e.createElementVNode("div",Xn,[s.$slots["title-before"]&&!n.konnectNavigationNext?(e.openBlock(),e.createElementBlock("div",Yn,[e.renderSlot(s.$slots,"title-before",{},void 0,!0)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.konnectNavigationNext?"h2":"h1"),{class:"page-header-title","data-testid":"page-header-title",title:n.title},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1},8,["title"])),s.$slots["title-after"]?(e.openBlock(),e.createElementBlock("div",Qn,[e.renderSlot(s.$slots,"title-after",{},void 0,!0)])):e.createCommentVNode("",!0)]),s.$slots.actions?(e.openBlock(),e.createElementBlock("div",Jn,[e.renderSlot(s.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)]),s.$slots.below?(e.openBlock(),e.createElementBlock("div",eo,[e.renderSlot(s.$slots,"below",{},void 0,!0)])):e.createCommentVNode("",!0)],2)}}}),[["__scopeId","data-v-e1c2e3c4"]]),ao={class:"app-page-info-section-default-header"},no={key:1,class:"app-page-info-section-description","data-testid":"app-page-info-section-description"},oo={key:0,class:"app-page-info-section-content","data-testid":"app-page-info-section-content"},ro=q(e.defineComponent({__name:"AppPageInfoSection",props:{collapsible:{type:Boolean,default:!0},title:{type:String,default:""},description:{type:String,default:""},titleTag:{type:String,default:"div",validator:n=>Je.HeaderTags.includes(n)}},setup(n){return(t,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.collapsible?"details":"div"),{class:"app-page-info-section","data-testid":"app-page-info-section"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.collapsible?"summary":"div"),{class:"app-page-info-section-header","data-testid":"app-page-info-section-header"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"header",{},()=>[e.createElementVNode("div",ao,[n.title?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.titleTag),{key:0,class:"app-page-info-section-title","data-testid":"app-page-info-section-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1})):e.createCommentVNode("",!0),n.description?(e.openBlock(),e.createElementBlock("div",no,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)])]),n.collapsible?(e.openBlock(),e.createBlock(e.unref(Fe.ChevronRightIcon),{key:0,class:"app-page-info-section-chevron-icon",decorative:""})):t.$slots.actions?e.renderSlot(t.$slots,"actions",{key:1}):e.createCommentVNode("",!0)]),_:3})),t.$slots.default?(e.openBlock(),e.createElementBlock("div",oo,[e.renderSlot(t.$slots,"default")])):e.createCommentVNode("",!0)]),_:3}))}}),[["__scopeId","data-v-8e512722"]]),io=q(e.defineComponent({__name:"GradientBadge",props:{large:{type:Boolean,default:!1},inverse:{type:Boolean,default:!1}},setup(n){return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gradient-badge",{inverse:n.inverse}])},[e.createElementVNode("div",{class:e.normalizeClass(["gradient-badge-content",{large:n.large}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2))}}),[["__scopeId","data-v-b331e738"]]),lo={install:(n,t={})=>{n.component(t.name||"AppLayout",vt)}};R.AccountDropdown=zt,R.AppAboutSection=na,R.AppError=ua,R.AppLayout=vt,R.AppNavbar=et,R.AppPageHeader=to,R.AppPageInfoSection=ro,R.AppSidebar=gt,R.GradientBadge=io,R.SidebarToggle=yt,R.default=lo,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
13
|
+
*/function Ar(n){return n}const Aa={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},Fa=e.defineComponent({name:"FocusTrap",props:Object.assign({active:{type:Boolean,default:!0}},Aa),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(n,{slots:t,emit:r}){let o;const l=e.ref(null),s=e.computed(()=>{const f=l.value;return f&&(f instanceof HTMLElement?f:f.$el)});function i(){return o||(o=$a(s.value,{escapeDeactivates:n.escapeDeactivates,allowOutsideClick:n.allowOutsideClick,returnFocusOnDeactivate:n.returnFocusOnDeactivate,clickOutsideDeactivates:n.clickOutsideDeactivates,onActivate:()=>{r("update:active",!0),r("activate")},onDeactivate:()=>{r("update:active",!1),r("deactivate")},onPostActivate:()=>r("postActivate"),onPostDeactivate:()=>r("postDeactivate"),initialFocus:n.initialFocus,fallbackFocus:n.fallbackFocus,tabbableOptions:n.tabbableOptions,delayInitialFocus:n.delayInitialFocus,preventScroll:n.preventScroll}))}return e.onMounted(()=>{e.watch(()=>n.active,f=>{f&&s.value?i().activate():o&&(o.deactivate(),(!s.value||s.value.nodeType===Node.COMMENT_NODE)&&(o=null))},{immediate:!0,flush:"post"})}),e.onUnmounted(()=>{o&&o.deactivate(),o=null}),{activate(){i().activate()},deactivate(){o&&o.deactivate()},renderImpl(){if(!t.default)return null;const f=t.default().filter(k=>k.type!==e.Comment);return!f||!f.length||f.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),f):e.cloneVNode(f[0],{ref:l})}}}});function kt(){return{debounce:(t,r)=>{let o;return(...l)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{t(...l)},r)}}}}var Ie=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xa(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Oe={exports:{}};Oe.exports,function(n,t){var r=200,o="__lodash_hash_undefined__",l=9007199254740991,s="[object Arguments]",i="[object Array]",f="[object Boolean]",m="[object Date]",k="[object Error]",E="[object Function]",O="[object GeneratorFunction]",$="[object Map]",A="[object Number]",_="[object Object]",x="[object Promise]",U="[object RegExp]",P="[object Set]",K="[object String]",ee="[object Symbol]",J="[object WeakMap]",W="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",T="[object Float64Array]",j="[object Int8Array]",z="[object Int16Array]",M="[object Int32Array]",V="[object Uint8Array]",N="[object Uint8ClampedArray]",d="[object Uint16Array]",u="[object Uint32Array]",h=/[\\^$.*+?()[\]{}|]/g,C=/\w*$/,B=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,g={};g[s]=g[i]=g[W]=g[D]=g[f]=g[m]=g[F]=g[T]=g[j]=g[z]=g[M]=g[$]=g[A]=g[_]=g[U]=g[P]=g[K]=g[ee]=g[V]=g[N]=g[d]=g[u]=!0,g[k]=g[E]=g[J]=!1;var b=typeof Ie=="object"&&Ie&&Ie.Object===Object&&Ie,y=typeof self=="object"&&self&&self.Object===Object&&self,v=b||y||Function("return this")(),w=t&&!t.nodeType&&t,R=w&&!0&&n&&!n.nodeType&&n,L=R&&R.exports===w;function Z(a,c){return a.set(c[0],c[1]),a}function ne(a,c){return a.add(c),a}function ke(a,c){for(var p=-1,S=a?a.length:0;++p<S&&c(a[p],p,a)!==!1;);return a}function po(a,c){for(var p=-1,S=c.length,H=a.length;++p<S;)a[H+p]=c[p];return a}function Et(a,c,p,S){for(var H=-1,q=a?a.length:0;++H<q;)p=c(p,a[H],H,a);return p}function mo(a,c){for(var p=-1,S=Array(a);++p<a;)S[p]=c(p);return S}function bo(a,c){return a==null?void 0:a[c]}function Tt(a){var c=!1;if(a!=null&&typeof a.toString!="function")try{c=!!(a+"")}catch{}return c}function Bt(a){var c=-1,p=Array(a.size);return a.forEach(function(S,H){p[++c]=[H,S]}),p}function ze(a,c){return function(p){return a(c(p))}}function Nt(a){var c=-1,p=Array(a.size);return a.forEach(function(S){p[++c]=S}),p}var ho=Array.prototype,go=Function.prototype,$e=Object.prototype,Ge=v["__core-js_shared__"],_t=function(){var a=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),It=go.toString,re=$e.hasOwnProperty,Ae=$e.toString,yo=RegExp("^"+It.call(re).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=L?v.Buffer:void 0,$t=v.Symbol,At=v.Uint8Array,vo=ze(Object.getPrototypeOf,Object),ko=Object.create,wo=$e.propertyIsEnumerable,So=ho.splice,Ft=Object.getOwnPropertySymbols,Co=Ot?Ot.isBuffer:void 0,Eo=ze(Object.keys,Object),He=be(v,"DataView"),we=be(v,"Map"),We=be(v,"Promise"),Ue=be(v,"Set"),qe=be(v,"WeakMap"),Se=be(Object,"create"),To=ue(He),Bo=ue(we),No=ue(We),_o=ue(Ue),Io=ue(qe),xt=$t?$t.prototype:void 0,Dt=xt?xt.valueOf:void 0;function se(a){var c=-1,p=a?a.length:0;for(this.clear();++c<p;){var S=a[c];this.set(S[0],S[1])}}function Oo(){this.__data__=Se?Se(null):{}}function $o(a){return this.has(a)&&delete this.__data__[a]}function Ao(a){var c=this.__data__;if(Se){var p=c[a];return p===o?void 0:p}return re.call(c,a)?c[a]:void 0}function Fo(a){var c=this.__data__;return Se?c[a]!==void 0:re.call(c,a)}function xo(a,c){var p=this.__data__;return p[a]=Se&&c===void 0?o:c,this}se.prototype.clear=Oo,se.prototype.delete=$o,se.prototype.get=Ao,se.prototype.has=Fo,se.prototype.set=xo;function ae(a){var c=-1,p=a?a.length:0;for(this.clear();++c<p;){var S=a[c];this.set(S[0],S[1])}}function Do(){this.__data__=[]}function Vo(a){var c=this.__data__,p=Fe(c,a);if(p<0)return!1;var S=c.length-1;return p==S?c.pop():So.call(c,p,1),!0}function Ro(a){var c=this.__data__,p=Fe(c,a);return p<0?void 0:c[p][1]}function jo(a){return Fe(this.__data__,a)>-1}function Lo(a,c){var p=this.__data__,S=Fe(p,a);return S<0?p.push([a,c]):p[S][1]=c,this}ae.prototype.clear=Do,ae.prototype.delete=Vo,ae.prototype.get=Ro,ae.prototype.has=jo,ae.prototype.set=Lo;function pe(a){var c=-1,p=a?a.length:0;for(this.clear();++c<p;){var S=a[c];this.set(S[0],S[1])}}function Mo(){this.__data__={hash:new se,map:new(we||ae),string:new se}}function Po(a){return xe(this,a).delete(a)}function Ko(a){return xe(this,a).get(a)}function Zo(a){return xe(this,a).has(a)}function zo(a,c){return xe(this,a).set(a,c),this}pe.prototype.clear=Mo,pe.prototype.delete=Po,pe.prototype.get=Ko,pe.prototype.has=Zo,pe.prototype.set=zo;function me(a){this.__data__=new ae(a)}function Go(){this.__data__=new ae}function Ho(a){return this.__data__.delete(a)}function Wo(a){return this.__data__.get(a)}function Uo(a){return this.__data__.has(a)}function qo(a,c){var p=this.__data__;if(p instanceof ae){var S=p.__data__;if(!we||S.length<r-1)return S.push([a,c]),this;p=this.__data__=new pe(S)}return p.set(a,c),this}me.prototype.clear=Go,me.prototype.delete=Ho,me.prototype.get=Wo,me.prototype.has=Uo,me.prototype.set=qo;function Xo(a,c){var p=Qe(a)||kr(a)?mo(a.length,String):[],S=p.length,H=!!S;for(var q in a)re.call(a,q)&&!(H&&(q=="length"||hr(q,S)))&&p.push(q);return p}function Vt(a,c,p){var S=a[c];(!(re.call(a,c)&&Mt(S,p))||p===void 0&&!(c in a))&&(a[c]=p)}function Fe(a,c){for(var p=a.length;p--;)if(Mt(a[p][0],c))return p;return-1}function Yo(a,c){return a&&Rt(c,Je(c),a)}function Xe(a,c,p,S,H,q,oe){var X;if(S&&(X=q?S(a,H,q,oe):S(a)),X!==void 0)return X;if(!De(a))return a;var Zt=Qe(a);if(Zt){if(X=pr(a),!c)return dr(a,X)}else{var he=de(a),zt=he==E||he==O;if(Sr(a))return ar(a,c);if(he==_||he==s||zt&&!q){if(Tt(a))return q?a:{};if(X=mr(zt?{}:a),!c)return ur(a,Yo(X,a))}else{if(!g[he])return q?a:{};X=br(a,he,Xe,c)}}oe||(oe=new me);var Gt=oe.get(a);if(Gt)return Gt;if(oe.set(a,X),!Zt)var Ht=p?fr(a):Je(a);return ke(Ht||a,function(et,Ve){Ht&&(Ve=et,et=a[Ve]),Vt(X,Ve,Xe(et,c,p,S,Ve,a,oe))}),X}function Qo(a){return De(a)?ko(a):{}}function Jo(a,c,p){var S=c(a);return Qe(a)?S:po(S,p(a))}function er(a){return Ae.call(a)}function tr(a){if(!De(a)||yr(a))return!1;var c=Kt(a)||Tt(a)?yo:B;return c.test(ue(a))}function nr(a){if(!Lt(a))return Eo(a);var c=[];for(var p in Object(a))re.call(a,p)&&p!="constructor"&&c.push(p);return c}function ar(a,c){if(c)return a.slice();var p=new a.constructor(a.length);return a.copy(p),p}function Ye(a){var c=new a.constructor(a.byteLength);return new At(c).set(new At(a)),c}function or(a,c){var p=c?Ye(a.buffer):a.buffer;return new a.constructor(p,a.byteOffset,a.byteLength)}function rr(a,c,p){var S=c?p(Bt(a),!0):Bt(a);return Et(S,Z,new a.constructor)}function ir(a){var c=new a.constructor(a.source,C.exec(a));return c.lastIndex=a.lastIndex,c}function cr(a,c,p){var S=c?p(Nt(a),!0):Nt(a);return Et(S,ne,new a.constructor)}function lr(a){return Dt?Object(Dt.call(a)):{}}function sr(a,c){var p=c?Ye(a.buffer):a.buffer;return new a.constructor(p,a.byteOffset,a.length)}function dr(a,c){var p=-1,S=a.length;for(c||(c=Array(S));++p<S;)c[p]=a[p];return c}function Rt(a,c,p,S){p||(p={});for(var H=-1,q=c.length;++H<q;){var oe=c[H],X=void 0;Vt(p,oe,X===void 0?a[oe]:X)}return p}function ur(a,c){return Rt(a,jt(a),c)}function fr(a){return Jo(a,Je,jt)}function xe(a,c){var p=a.__data__;return gr(c)?p[typeof c=="string"?"string":"hash"]:p.map}function be(a,c){var p=bo(a,c);return tr(p)?p:void 0}var jt=Ft?ze(Ft,Object):Tr,de=er;(He&&de(new He(new ArrayBuffer(1)))!=D||we&&de(new we)!=$||We&&de(We.resolve())!=x||Ue&&de(new Ue)!=P||qe&&de(new qe)!=J)&&(de=function(a){var c=Ae.call(a),p=c==_?a.constructor:void 0,S=p?ue(p):void 0;if(S)switch(S){case To:return D;case Bo:return $;case No:return x;case _o:return P;case Io:return J}return c});function pr(a){var c=a.length,p=a.constructor(c);return c&&typeof a[0]=="string"&&re.call(a,"index")&&(p.index=a.index,p.input=a.input),p}function mr(a){return typeof a.constructor=="function"&&!Lt(a)?Qo(vo(a)):{}}function br(a,c,p,S){var H=a.constructor;switch(c){case W:return Ye(a);case f:case m:return new H(+a);case D:return or(a,S);case F:case T:case j:case z:case M:case V:case N:case d:case u:return sr(a,S);case $:return rr(a,S,p);case A:case K:return new H(a);case U:return ir(a);case P:return cr(a,S,p);case ee:return lr(a)}}function hr(a,c){return c=c??l,!!c&&(typeof a=="number"||I.test(a))&&a>-1&&a%1==0&&a<c}function gr(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}function yr(a){return!!_t&&_t in a}function Lt(a){var c=a&&a.constructor,p=typeof c=="function"&&c.prototype||$e;return a===p}function ue(a){if(a!=null){try{return It.call(a)}catch{}try{return a+""}catch{}}return""}function vr(a){return Xe(a,!0,!0)}function Mt(a,c){return a===c||a!==a&&c!==c}function kr(a){return wr(a)&&re.call(a,"callee")&&(!wo.call(a,"callee")||Ae.call(a)==s)}var Qe=Array.isArray;function Pt(a){return a!=null&&Cr(a.length)&&!Kt(a)}function wr(a){return Er(a)&&Pt(a)}var Sr=Co||Br;function Kt(a){var c=De(a)?Ae.call(a):"";return c==E||c==O}function Cr(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=l}function De(a){var c=typeof a;return!!a&&(c=="object"||c=="function")}function Er(a){return!!a&&typeof a=="object"}function Je(a){return Pt(a)?Xo(a):nr(a)}function Tr(){return[]}function Br(){return!1}n.exports=vr}(Oe,Oe.exports);var Da=Oe.exports;const Va=xa(Da),Ra={key:0,class:"sidebar-header"},ja={class:"sidebar-content-container"},La={key:0,class:"sidebar-top"},Ma={"aria-label":"Main menu"},Pa=["id"],Ka=["aria-labelledby"],Za={key:1,class:"sidebar-level-divider",role:"separator"},za={key:2,class:"level-primary bottom-items"},Ga={class:"sidebar-footer"},le="_ungrouped",wt=Y(e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,default:()=>[]},groupConfig:{type:Object,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","toggle-collapse"],setup(n,{emit:t}){e.useCssVars(b=>({v53c8e6c8:f.value.mobileHeight,v6f959158:f.value.mobileTop,v6c6af840:n.zIndex,v4342dec6:f.value.height,ccaf1fd4:f.value.top,v6d681f2c:k.value.marginTop,v065dda82:I.value,v3e86363c:m.value.display,e3423b8e:m.value.minHeight,b4fe47b6:E.value.top,v528eb0b0:E.value.zIndex}));const r=t,o=n,l=e.useSlots(),s=e.computed(()=>!!l.header),i=e.computed(()=>!!l.top),f=e.computed(()=>({mobileTop:o.mobileTopOffset&&o.mobileEnabled?`${o.mobileTopOffset}px`:o.topOffset?`${o.topOffset}px`:"0",top:o.topOffset?`${o.topOffset}px`:"0",mobileHeight:o.mobileTopOffset&&o.mobileEnabled?`calc(100% - ${o.mobileTopOffset}px)`:"100%",height:o.topOffset?`calc(100% - ${o.topOffset}px)`:"100%"})),m=e.computed(()=>({display:!o.mobileHeaderVisible&&o.mobileEnabled?"none":"flex",minHeight:`${o.headerHeight}px`})),k=e.computed(()=>({marginTop:s.value?`${o.headerHeight}px`:"0"})),E=e.computed(()=>({top:o.mobileTopOffset&&o.mobileEnabled?`${o.mobileTopOffset}px`:"0",zIndex:o.mobileOverlayZIndex!==null?o.mobileOverlayZIndex:o.zIndex>1?o.zIndex-1:1})),O=b=>Va(b).map(v=>{var w,R,L;if(v){(!v.key||!((w=v.key)!=null&&w.trim()))&&(v.key=String(v.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!v.testId||!((R=v.testId)!=null&&R.trim()))&&(v.testId=String(v.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const Z of v.items||[])Z.parentKey=v.key,(!Z.testId||!((L=Z.testId)!=null&&L.trim()))&&(Z.testId=String(Z.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return v}),$=e.computed(()=>o.topItems.length?O(o.topItems):[]),A=e.computed(()=>o.bottomItems.length?O(o.bottomItems):[]),_=(b="")=>b.trim().replace(" ","").replace(/[^a-z0-9]+/gi,"-").toLowerCase(),x=e.computed(()=>{var y;const b=new Map;b.set(le,[]);for(const v of $.value){const w=v.group||le;b.has(w)||b.set(w,[]),(y=b.get(w))==null||y.push(v)}return b}),U=Rn(`max-width: ${zn}`),P=(b="")=>{if(b===le||!b.trim())return null;const y={label:b,collapsible:!1,collapsed:!1};let v=b.trim().replace(" ","");return v=v.charAt(0).toLowerCase()+v.slice(1),b&&o.groupConfig&&(o.groupConfig[b]||o.groupConfig[v])?o.groupConfig[b]||o.groupConfig[v]:y},K=b=>{var y;return!!((y=P(b))!=null&&y.collapsible)},ee=b=>{var y;return!!((y=P(b))!=null&&y.collapsed)},J=(b,y,v)=>{const w=P(b);w&&(w.collapsed=!y),v(),r("toggle-collapse",b,w)},W=e.ref(o.open),D=b=>{var y,v;W.value!==b&&(W.value=b,r("toggle",b)),b?(y=document==null?void 0:document.body)==null||y.classList.add("kong-ui-app-sidebar-open"):(v=document==null?void 0:document.body)==null||v.classList.remove("kong-ui-app-sidebar-open"),T.value=!1},F=()=>{o.mobileOverlayCloseOnClick&&D(!1)},T=e.ref(!1),j=b=>{T.value=!0,r("click",b),setTimeout(()=>{D(!1)},o.mobileCloseDelay)};e.watch(()=>o.open,b=>{D(b)});const{debounce:z}=kt(),M=z(()=>{W.value&&V.value!==(window==null?void 0:window.innerWidth)&&(V.value=window==null?void 0:window.innerWidth,D(!1))},200),V=e.ref(),N=e.ref(!1),d=e.ref(),u=()=>{N.value||(N.value=!0,clearTimeout(d.value),d.value=setTimeout(()=>N.value=!1,1300))},h=e.ref(null),C=e.computed(()=>W.value&&o.mobileEnabled),B=async b=>{var y,v;b?(await e.nextTick(),await new Promise(w=>setTimeout(w,300)),(y=h.value)==null||y.activate()):(v=h.value)==null||v.deactivate()};e.watch(C,async b=>{b?await B(!0):await B(!1)},{immediate:!0});const I=e.ref("0px"),g=()=>{var Z;if(!(/Mac|iPhone|iPod|iPad/i.test(navigator==null?void 0:navigator.platform)||/macOS|Mac|iPhone|iPod|iPad/i.test((Z=navigator==null?void 0:navigator.userAgentData)==null?void 0:Z.platform)))return;const y=document.createElement("div");y.style.visibility="hidden",y.style.width="100px",document.body.appendChild(y);const v=y.offsetWidth;y.style.overflow="scroll";const w=document.createElement("div");w.style.width="100%",y.appendChild(w);const R=w.offsetWidth;y.parentNode&&y.parentNode.removeChild(y),v-R===0&&(I.value="8px")};return e.onMounted(async()=>{if(V.value=window==null?void 0:window.innerWidth,window.addEventListener("resize",M),window.addEventListener("resize",u),o.groupConfig&&U.value)for(const b in o.groupConfig){const y=o.groupConfig[b];y.collapsed=!1}await e.nextTick(),g()}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",M),window.removeEventListener("resize",u)}),(b,y)=>{const v=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock(e.Fragment,null,[W.value&&n.mobileOverlay&&n.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:F})):e.createCommentVNode("",!0),e.createVNode(e.unref(Fa),{ref_key:"focusTrap",ref:h,active:!1,"allow-outside-click":"","fallback-focus":".kong-ui-app-sidebar"},{default:e.withCtx(()=>[e.createElementVNode("aside",{class:e.normalizeClass(["kong-ui-app-sidebar",{"sidebar-open":W.value,"no-sidebar-header":!s.value,"mobile-header-hidden":n.mobileEnabled&&(!s.value||!n.mobileHeaderVisible),"mobile-disabled":!n.mobileEnabled,"disable-transitions":N.value}]),tabindex:"-1"},[s.value?(e.openBlock(),e.createElementBlock("div",Ra,[e.renderSlot(b.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ja,[i.value?(e.openBlock(),e.createElementBlock("div",La,[e.renderSlot(b.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Ma,[x.value.size>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(x.value,([w,R])=>(e.openBlock(),e.createBlock(v,{key:w,class:e.normalizeClass(["level-primary-group-collapse",{"not-collapsible":!K(w),ungrouped:w===le}]),"data-testid":w===le?"level-primary-group-collapse-ungrouped":`level-primary-group-collapse-${w}`,"model-value":K(w)&&ee(w)||!1},{trigger:e.withCtx(({isCollapsed:L,toggle:Z})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(K(w)?e.unref(tt.KButton):"div"),{appearance:K(w)?"none":void 0,class:"level-primary-group-collapse-trigger",onClick:ne=>K(w)?J(w,L,Z):void 0},{default:e.withCtx(()=>{var ne;return[w!==le?(e.openBlock(),e.createElementBlock("div",{key:0,id:`level-primary-group-${_(w)}`,class:"level-primary-group-name","data-testid":"level-primary-group-name",role:"presentation"},e.toDisplayString(((ne=P(w))==null?void 0:ne.label)||w),9,Pa)):e.createCommentVNode("",!0),K(w)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(L?e.unref(Re.ChevronRightIcon):e.unref(Re.ChevronDownIcon)),{key:1,class:"level-primary-group-collapse-icon",color:e.unref(Hn),"data-testid":"level-primary-group-collapse-icon",size:e.unref(Gn)},null,8,["color","size"])):e.createCommentVNode("",!0)]}),_:2},1032,["appearance","onClick"]))]),default:e.withCtx(()=>[e.createElementVNode("ul",{"aria-labelledby":w!==le?`level-primary-group-${_(w)}`:void 0,class:"level-primary top-items"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R,L=>(e.openBlock(),e.createBlock(rt,{key:L.name,item:L,onClick:j},e.createSlots({[`sidebar-icon-${L.key}`]:e.withCtx(()=>[e.renderSlot(b.$slots,`sidebar-icon-${L.key}`,{},void 0,!0)]),_:2},[b.$slots[`sidebar-after-${L.key}`]?{name:`sidebar-after-${L.key}`,fn:e.withCtx(()=>[e.renderSlot(b.$slots,`sidebar-after-${L.key}`,{},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))),128))],8,Ka)]),_:2},1032,["class","data-testid","model-value"]))),128)):e.createCommentVNode("",!0),x.value.size>0&&A.value.length?(e.openBlock(),e.createElementBlock("div",Za)):e.createCommentVNode("",!0),A.value.length?(e.openBlock(),e.createElementBlock("ul",za,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,w=>(e.openBlock(),e.createBlock(rt,{key:w.name,item:w,onClick:j},{[`sidebar-icon-${w.key}`]:e.withCtx(()=>[e.renderSlot(b.$slots,`sidebar-icon-${w.key}`,{},void 0,!0)]),_:2},1032,["item"]))),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Ga,[e.renderSlot(b.$slots,"footer",{},void 0,!0)])],2)]),_:3},512)],64)}}}),[["__scopeId","data-v-e8512478"]]),Ha=["aria-label"],St=Y(e.defineComponent({__name:"SidebarToggle",props:{active:{type:Boolean,default:!1}},emits:["toggle"],setup(n,{emit:t}){const r=t,o=n,l=e.ref(o.active||!1),s=i=>{i.preventDefault(),l.value=!l.value,r("toggle",l.value)};return e.watch(()=>o.active,i=>{l.value=i}),(i,f)=>(e.openBlock(),e.createElementBlock("a",{"aria-haspopup":"true","aria-label":l.value?"Close Main Menu":"Open Main Menu",class:e.normalizeClass(["sidebar-menu-toggle",{active:l.value}]),href:"#",role:"button",onClick:e.withModifiers(s,["prevent"])},[...f[0]||(f[0]=[e.createElementVNode("span",{class:"line"},null,-1),e.createElementVNode("span",{class:"line"},null,-1),e.createElementVNode("span",{class:"line"},null,-1)])],10,Ha))}}),[["__scopeId","data-v-2238b0de"]]),Wa={id:"kong-ui-app-layout-notification"},Ua={class:"mobile-logo"},qa={key:0,class:"navbar-logo"},Xa={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},Ya={class:"kong-ui-app-layout-content"},Ct=Y(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:()=>[]},groupConfig:{type:Object,default:()=>({})},theme:{type:String,default:"light",validator:n=>["light","dark"].includes(n)},removeContentInnerPadding:{type:Boolean,default:!1}},emits:["sidebar-click","update:topOffset","toggle-collapse"],setup(n,{emit:t}){e.useCssVars(T=>({v5526a015:P.value,v3240b80b:K.value,v71472eba:U.value,v709f53f2:ee.value,v0010e23a:J.value}));const r=n,o=t,l=e.useSlots(),s=e.reactive({navbarLeft:e.computed(()=>!!l["navbar-left"]),navbarCenter:e.computed(()=>!!l["navbar-center"]),navbarRight:e.computed(()=>!!l["navbar-right"]),navbarLogo:e.computed(()=>!!l["navbar-logo"]),navbarMobileLogo:e.computed(()=>!!l["navbar-mobile-logo"]),sidebarHeader:e.computed(()=>!!l["sidebar-header"]),sidebarTop:e.computed(()=>!!l["sidebar-top"]),sidebarFooter:e.computed(()=>!!l["sidebar-footer"])}),i=e.computed(()=>r.hideDefaultSlot),f=e.reactive({hidden:e.computed(()=>r.navbarHidden)}),m=e.reactive({topItems:e.computed(()=>r.sidebarTopItems),bottomItems:e.computed(()=>r.sidebarBottomItems),open:e.computed(()=>r.sidebarOpen),hidden:e.computed(()=>r.sidebarHidden)}),k=T=>{o("sidebar-click",T)},E=e.ref(!1),O=T=>{E.value=T};e.watchEffect(()=>{E.value=e.toRef(m,"open").value||!1});const $=e.ref(0),A=e.ref(60),_=e.ref(0),x=e.computed(()=>f.hidden?_.value:A.value+_.value),U=e.computed(()=>r.theme==="light"?Mn:Pn),P=e.computed(()=>r.theme==="light"?jn:Ln),K=e.computed(()=>r.theme==="light"?"var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)":"none"),ee=e.computed(()=>`${x.value}px`),J=e.computed(()=>m.hidden||f.hidden?Kn:Zn),{debounce:W}=kt(),D=W((T=!1)=>{if(T||$.value!==(window==null?void 0:window.innerWidth)){$.value=window==null?void 0:window.innerWidth;const j=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");j&&(_.value=j.offsetHeight)}},200),F=e.ref();return e.watch(_,T=>{o("update:topOffset",T||0)},{immediate:!0}),e.onMounted(()=>{var j,z;(j=document==null?void 0:document.body)==null||j.classList.add("kong-ui-app-layout-body"),(z=document==null?void 0:document.documentElement)==null||z.classList.add("kong-ui-app-layout-html"),$.value=window==null?void 0:window.innerWidth,D(!0);const T=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");T&&(F.value=new ResizeObserver(M=>{window.requestAnimationFrame(()=>{if(!(!Array.isArray(M)||!M.length))for(const V of M){const N=V.contentRect.height;_.value!==N&&(_.value=N)}})}),F.value.observe(T)),window.addEventListener("resize",D)}),e.onBeforeUnmount(()=>{F.value&&F.value.disconnect(),window.removeEventListener("resize",D)}),(T,j)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":f.hidden},{"sidebar-hidden":m.hidden}]])},[e.createElementVNode("div",Wa,[e.renderSlot(T.$slots,"notification",{},void 0,!0)]),f.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(nt,{key:String(m.hidden),"left-offset":m.hidden?0:void 0,"top-offset":_.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[m.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(St,{key:0,active:E.value,onToggle:O},null,8,["active"]))]),_:2},[s.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",Ua,[e.renderSlot(T.$slots,"navbar-mobile-logo",{},void 0,!0)])]),key:"0"}:void 0,s.navbarLogo?{name:"logo",fn:e.withCtx(()=>[m.hidden?(e.openBlock(),e.createElementBlock("div",qa,[e.renderSlot(T.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,s.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,s.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,s.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"navbar-right",{},void 0,!0)]),key:"4"}:void 0]),1032,["left-offset","top-offset"])),m.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(wt,{key:1,"bottom-items":m.bottomItems,"group-config":n.groupConfig,"header-height":A.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":x.value,open:E.value,"top-items":m.topItems,"top-offset":_.value,onClick:k,onToggle:O,onToggleCollapse:j[0]||(j[0]=(z,M)=>o("toggle-collapse",z,M))},e.createSlots({_:2},[s.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,s.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0,s.sidebarFooter?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(T.$slots,"sidebar-footer",{},void 0,!0)]),key:"2"}:void 0,e.renderList([...m.topItems||[],...m.bottomItems||[]],z=>({name:`sidebar-icon-${z.key}`,fn:e.withCtx(()=>[e.renderSlot(T.$slots,`sidebar-icon-${z.key}`,{},void 0,!0)])})),e.renderList([...m.topItems||[],...m.bottomItems||[]],z=>({name:`sidebar-after-${z.key}`,fn:e.withCtx(()=>[e.renderSlot(T.$slots,`sidebar-after-${z.key}`,{},void 0,!0)])}))]),1032,["bottom-items","group-config","header-height","mobile-top-offset","open","top-items","top-offset"])),e.createElementVNode("main",Xa,[e.createElementVNode("div",Ya,[e.createElementVNode("div",{class:e.normalizeClass(["kong-ui-app-layout-content-inner",{"remove-inner-padding":n.removeContentInnerPadding}])},[j[1]||(j[1]=e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),e.renderSlot(T.$slots,"app-error",{},void 0,!0),i.value?e.createCommentVNode("",!0):e.renderSlot(T.$slots,"default",{key:0},void 0,!0)],2)])])],2))}}),[["__scopeId","data-v-b9242b31"]]),Qa={key:0,class:"page-header-breadcrumbs","data-testid":"page-header-breadcrumbs"},Ja={class:"page-header-title-section"},eo={class:"page-header-title-wrapper"},to={key:0,class:"page-header-title-before","data-testid":"page-header-title-before"},no={key:1,class:"page-header-title-after","data-testid":"page-header-title-after"},ao={key:0,class:"page-header-actions","data-testid":"page-header-actions"},oo={key:1,class:"page-header-section-below","data-testid":"page-header-section-below"},ro=Y(e.defineComponent({__name:"AppPageHeader",props:{title:{type:String,default:""},breadcrumbs:{type:Array,default:()=>[]},konnectNavigationNext:{type:Boolean,default:!1}},setup(n){const t=n,r=e.useSlots(),o=e.computed(()=>{var s;return!!((s=t.breadcrumbs)!=null&&s.length)}),l=e.computed(()=>Object.keys(r).filter(s=>s.startsWith("icon-")));return(s,i)=>{const f=e.resolveComponent("KBreadcrumbs");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-page-header",{"konnect-navigation-next":n.konnectNavigationNext}])},[o.value&&!n.konnectNavigationNext?(e.openBlock(),e.createElementBlock("div",Qa,[e.createVNode(f,{"item-max-width":"150",items:n.breadcrumbs},e.createSlots({_:2},[e.renderList(l.value,m=>({name:m,fn:e.withCtx(()=>[e.renderSlot(s.$slots,m,{},void 0,!0)])}))]),1032,["items"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Ja,[e.createElementVNode("div",eo,[s.$slots["title-before"]&&!n.konnectNavigationNext?(e.openBlock(),e.createElementBlock("div",to,[e.renderSlot(s.$slots,"title-before",{},void 0,!0)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.konnectNavigationNext?"h2":"h1"),{class:"page-header-title","data-testid":"page-header-title",title:n.title},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1},8,["title"])),s.$slots["title-after"]?(e.openBlock(),e.createElementBlock("div",no,[e.renderSlot(s.$slots,"title-after",{},void 0,!0)])):e.createCommentVNode("",!0)]),s.$slots.actions?(e.openBlock(),e.createElementBlock("div",ao,[e.renderSlot(s.$slots,"actions",{},void 0,!0)])):e.createCommentVNode("",!0)]),s.$slots.below?(e.openBlock(),e.createElementBlock("div",oo,[e.renderSlot(s.$slots,"below",{},void 0,!0)])):e.createCommentVNode("",!0)],2)}}}),[["__scopeId","data-v-e1c2e3c4"]]),io={class:"app-page-info-section-default-header"},co={key:1,class:"app-page-info-section-description","data-testid":"app-page-info-section-description"},lo={key:0,class:"app-page-info-section-content","data-testid":"app-page-info-section-content"},so=Y(e.defineComponent({__name:"AppPageInfoSection",props:{collapsible:{type:Boolean,default:!0},title:{type:String,default:""},description:{type:String,default:""},titleTag:{type:String,default:"div",validator:n=>tt.HeaderTags.includes(n)}},setup(n){return(t,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.collapsible?"details":"div"),{class:"app-page-info-section","data-testid":"app-page-info-section"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.collapsible?"summary":"div"),{class:"app-page-info-section-header","data-testid":"app-page-info-section-header"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"header",{},()=>[e.createElementVNode("div",io,[n.title?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.titleTag),{key:0,class:"app-page-info-section-title","data-testid":"app-page-info-section-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1})):e.createCommentVNode("",!0),n.description?(e.openBlock(),e.createElementBlock("div",co,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0)])]),n.collapsible?(e.openBlock(),e.createBlock(e.unref(Re.ChevronRightIcon),{key:0,class:"app-page-info-section-chevron-icon",decorative:""})):t.$slots.actions?e.renderSlot(t.$slots,"actions",{key:1}):e.createCommentVNode("",!0)]),_:3})),t.$slots.default?(e.openBlock(),e.createElementBlock("div",lo,[e.renderSlot(t.$slots,"default")])):e.createCommentVNode("",!0)]),_:3}))}}),[["__scopeId","data-v-8e512722"]]),uo=Y(e.defineComponent({__name:"GradientBadge",props:{large:{type:Boolean,default:!1},inverse:{type:Boolean,default:!1}},setup(n){return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gradient-badge",{inverse:n.inverse}])},[e.createElementVNode("div",{class:e.normalizeClass(["gradient-badge-content",{large:n.large}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2))}}),[["__scopeId","data-v-b331e738"]]),fo={install:(n,t={})=>{n.component(t.name||"AppLayout",Ct)}};G.AccountDropdown=Ut,G.AppAboutSection=ln,G.AppError=hn,G.AppLayout=Ct,G.AppNavbar=nt,G.AppPageHeader=ro,G.AppPageInfoSection=so,G.AppSidebar=wt,G.GradientBadge=uo,G.SidebarToggle=St,G.default=fo,Object.defineProperties(G,{__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.11.
|
|
3
|
+
"version": "4.11.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/app-layout.umd.js",
|
|
6
6
|
"module": "./dist/app-layout.es.js",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@kong/kongponents": "^9.52.11",
|
|
25
25
|
"vue": ">= 3.3.13 < 4",
|
|
26
|
-
"vue-router": "^5.0.
|
|
26
|
+
"vue-router": "^5.0.6"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@kong/icons": "^1.52.0",
|
|
30
30
|
"@vueuse/core": "^13.9.0",
|
|
31
|
-
"focus-trap": "^
|
|
31
|
+
"focus-trap": "^8.0.1",
|
|
32
32
|
"focus-trap-vue": "^4.1.0",
|
|
33
33
|
"lodash.clonedeep": "^4.5.0"
|
|
34
34
|
},
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@kong/design-tokens": "1.20.1",
|
|
37
37
|
"@kong/kongponents": "9.52.11",
|
|
38
38
|
"@types/lodash.clonedeep": "^4.5.9",
|
|
39
|
-
"vue": "^3.5.
|
|
40
|
-
"vue-router": "^5.0.
|
|
39
|
+
"vue": "^3.5.33",
|
|
40
|
+
"vue-router": "^5.0.6"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|