@kong-ui-public/app-layout 0.19.4 → 0.19.5
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 +701 -685
- package/dist/app-layout.es.js.map +1 -1
- package/dist/app-layout.umd.js +5 -5
- package/dist/app-layout.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/app-layout.umd.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(R,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(R=typeof globalThis<"u"?globalThis:R||self,e(R["kong-ui-public-app-layout"]={},R.Vue))})(this,function(R,e){"use strict";const Bt={class:"kong-ui-app-navbar"},Ot={class:"header-content"},xt={class:"mobile-header-left"},At={key:0,class:"app-navbar-logo"},Ft={class:"navbar-content"},$t={class:"navbar-content-left"},Dt={class:"navbar-content-center"},Vt={class:"navbar-content-right"},Lt=e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(r){const n=r;e.useCssVars(c=>({e7993570:e.unref(f).top,"591d67a5":e.unref(f).zIndex,"0b950b18":e.unref(f).left,74170388:l.marginRight,"482efd74":l.width}));const a=e.useSlots(),o=e.computed(()=>!!a.logo),l=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var c,b;(b=(c=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:c.children)!=null&&b.length?(l.marginRight="32px",l.width="calc(240px - 32px)"):(l.marginRight="0",l.width="0")});const f=e.computed(()=>({top:n.topOffset?`${n.topOffset}px`:"0",left:n.leftOffset?`${n.leftOffset}px`:"0",zIndex:n.zIndex}));return(c,b)=>(e.openBlock(),e.createElementBlock("header",Bt,[e.createElementVNode("div",Ot,[e.createElementVNode("div",xt,[e.renderSlot(c.$slots,"mobile-sidebar-toggle"),e.renderSlot(c.$slots,"mobile-logo")]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",At,[e.renderSlot(c.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",Ft,[e.createElementVNode("div",$t,[e.renderSlot(c.$slots,"left")]),e.createElementVNode("div",Dt,[e.renderSlot(c.$slots,"center")]),e.createElementVNode("div",Vt,[e.renderSlot(c.$slots,"right")])])])]))}}),Er="",U=(r,n)=>{const a=r.__vccOpts||r;for(const[o,l]of n)a[o]=l;return a},Me=U(Lt,[["__scopeId","data-v-b7131fb2"]]),Rt=["title"],Mt=e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(r){const n=r,a=99,o=e.computed(()=>n.count?n.count>a?`${a}+`:n.count.toString():"");return(l,f)=>e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(r.count||0)>a?String(r.count):void 0},e.toDisplayString(e.unref(o)),9,Rt)):e.createCommentVNode("",!0)}}),Nr="",Pt=U(Mt,[["__scopeId","data-v-9e48c714"]]),Zt=["data-testid"],jt=["aria-controls","aria-expanded","href","target","onClick","onKeypress"],Ht={key:0,class:"sidebar-item-icon"},Kt={class:"sidebar-item-name-container"},zt={class:"sidebar-item-name has-tooltip"},Ut={key:2,class:"sidebar-item-label truncate-text truncate-20"},Wt=["id"],Gt=e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:n}){const a=r,o=e.computed(()=>typeof a.item.to!="string"?!1:!!a.item.newWindow||!!a.item.external||a.item.to.startsWith("http")),l=e.computed(()=>!a.item.to||typeof a.item.to!="string"||!a.item.newWindow?!1:a.item.newWindow&&(a.item.to.startsWith("http")||a.item.to.startsWith("/"))),f=e.computed(()=>a.subnavItem&&a.item.badgeCount!==void 0),c=g=>{n("click",g)},b=(g,v,E)=>{c(v),typeof E=="function"&&(g.preventDefault(),E())};return(g,v)=>{var w;const E=e.resolveComponent("KIcon"),T=e.resolveComponent("KTooltip"),I=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([r.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:r.item.expanded},{active:r.item.active}]),"data-testid":r.item.testId?`sidebar-item-${r.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)?"div":"router-link"),{custom:e.unref(o)?void 0:!0,to:!e.unref(o)&&!e.unref(l)?r.item.to:void 0},{default:e.withCtx(S=>{var F,M;return[e.createElementVNode("a",{"aria-controls":(F=r.item.items)!=null&&F.length&&r.item.expanded?`subnav-${r.item.key}`:void 0,"aria-expanded":(M=r.item.items)!=null&&M.length&&r.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":e.unref(l),"router-link":!e.unref(o)}]),href:e.unref(o)?String(r.item.to||"#"):S==null?void 0:S.href,target:e.unref(l)?"_blank":void 0,onClick:$=>b($,r.item,S==null?void 0:S.navigate),onKeypress:e.withKeys($=>b($,r.item,S==null?void 0:S.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!r.item.label&&r.item.expanded,"has-badge":e.unref(f)}])},[r.item.icon?(e.openBlock(),e.createElementBlock("div",Ht,[e.createVNode(E,{color:r.item.active||r.item.expanded?"var(--white, #fff)":"#B5BECD",icon:String(r.item.icon),size:"20"},null,8,["color","icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Kt,[(r.subnavItem?r.item.name.length<25:r.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[r.subnavItem?"has-badge-max-width truncate-24":"truncate-17"]])},e.toDisplayString(r.item.name),3)):(e.openBlock(),e.createBlock(T,{key:1,class:"sidebar-item-tooltip",label:r.item.name,placement:"right","position-fixed":""},{default:e.withCtx(()=>[e.createElementVNode("div",zt,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[r.subnavItem?"truncate-20":"truncate-17",{"has-badge-max-width":e.unref(f)}]])},e.toDisplayString(r.item.name),3)])]),_:1},8,["label"])),r.item.label&&r.item.expanded?(e.openBlock(),e.createElementBlock("div",Ut,e.toDisplayString(r.item.label),1)):e.createCommentVNode("",!0)]),e.unref(f)?(e.openBlock(),e.createBlock(Pt,{key:1,count:r.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,jt)]}),_:1},8,["custom","to"])),(w=r.item.items)!=null&&w.length&&r.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${r.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.item.items,S=>(e.openBlock(),e.createBlock(I,{key:S.name,item:S,"subnav-item":!0,onClick:F=>c(S)},null,8,["item","onClick"]))),128))],8,Wt)):e.createCommentVNode("",!0)],10,Zt)}}}),Ir="",Br="",Pe=U(Gt,[["__scopeId","data-v-a8253818"]]);/*!
|
|
2
2
|
* tabbable 6.1.2
|
|
3
3
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/var
|
|
5
|
-
* focus-trap 7.4.
|
|
4
|
+
*/var Ze=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],le=Ze.join(","),je=typeof Element>"u",q=je?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,de=!je&&Element.prototype.getRootNode?function(r){var n;return r==null||(n=r.getRootNode)===null||n===void 0?void 0:n.call(r)}:function(r){return r==null?void 0:r.ownerDocument},ue=function r(n,a){var o;a===void 0&&(a=!0);var l=n==null||(o=n.getAttribute)===null||o===void 0?void 0:o.call(n,"inert"),f=l===""||l==="true",c=f||a&&n&&r(n.parentNode);return c},qt=function(n){var a,o=n==null||(a=n.getAttribute)===null||a===void 0?void 0:a.call(n,"contenteditable");return o===""||o==="true"},He=function(n,a,o){if(ue(n))return[];var l=Array.prototype.slice.apply(n.querySelectorAll(le));return a&&q.call(n,le)&&l.unshift(n),l=l.filter(o),l},Ke=function r(n,a,o){for(var l=[],f=Array.from(n);f.length;){var c=f.shift();if(!ue(c,!1))if(c.tagName==="SLOT"){var b=c.assignedElements(),g=b.length?b:c.children,v=r(g,!0,o);o.flatten?l.push.apply(l,v):l.push({scopeParent:c,candidates:v})}else{var E=q.call(c,le);E&&o.filter(c)&&(a||!n.includes(c))&&l.push(c);var T=c.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(c),I=!ue(T,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(T&&I){var w=r(T===!0?c.children:T.children,!0,o);o.flatten?l.push.apply(l,w):l.push({scopeParent:c,candidates:w})}else f.unshift.apply(f,c.children)}}return l},ze=function(n,a){return n.tabIndex<0&&(a||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||qt(n))&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},Yt=function(n,a){return n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex},Ue=function(n){return n.tagName==="INPUT"},Xt=function(n){return Ue(n)&&n.type==="hidden"},Jt=function(n){var a=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(o){return o.tagName==="SUMMARY"});return a},Qt=function(n,a){for(var o=0;o<n.length;o++)if(n[o].checked&&n[o].form===a)return n[o]},en=function(n){if(!n.name)return!0;var a=n.form||de(n),o=function(b){return a.querySelectorAll('input[type="radio"][name="'+b+'"]')},l;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(n.name));else try{l=o(n.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var f=Qt(l,n.form);return!f||f===n},tn=function(n){return Ue(n)&&n.type==="radio"},nn=function(n){return tn(n)&&!en(n)},an=function(n){var a,o=n&&de(n),l=(a=o)===null||a===void 0?void 0:a.host,f=!1;if(o&&o!==n){var c,b,g;for(f=!!((c=l)!==null&&c!==void 0&&(b=c.ownerDocument)!==null&&b!==void 0&&b.contains(l)||n!=null&&(g=n.ownerDocument)!==null&&g!==void 0&&g.contains(n));!f&&l;){var v,E,T;o=de(l),l=(v=o)===null||v===void 0?void 0:v.host,f=!!((E=l)!==null&&E!==void 0&&(T=E.ownerDocument)!==null&&T!==void 0&&T.contains(l))}}return f},We=function(n){var a=n.getBoundingClientRect(),o=a.width,l=a.height;return o===0&&l===0},rn=function(n,a){var o=a.displayCheck,l=a.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var f=q.call(n,"details>summary:first-of-type"),c=f?n.parentElement:n;if(q.call(c,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var b=n;n;){var g=n.parentElement,v=de(n);if(g&&!g.shadowRoot&&l(g)===!0)return We(n);n.assignedSlot?n=n.assignedSlot:!g&&v!==n.ownerDocument?n=v.host:n=g}n=b}if(an(n))return!n.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return We(n);return!1},on=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var a=n.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var o=0;o<a.children.length;o++){var l=a.children.item(o);if(l.tagName==="LEGEND")return q.call(a,"fieldset[disabled] *")?!0:!l.contains(n)}return!0}a=a.parentElement}return!1},fe=function(n,a){return!(a.disabled||ue(a)||Xt(a)||rn(a,n)||Jt(a)||on(a))},Se=function(n,a){return!(nn(a)||ze(a)<0||!fe(n,a))},cn=function(n){var a=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},sn=function r(n){var a=[],o=[];return n.forEach(function(l,f){var c=!!l.scopeParent,b=c?l.scopeParent:l,g=ze(b,c),v=c?r(l.candidates):b;g===0?c?a.push.apply(a,v):a.push(b):o.push({documentOrder:f,tabIndex:g,item:l,isScope:c,content:v})}),o.sort(Yt).reduce(function(l,f){return f.isScope?l.push.apply(l,f.content):l.push(f.content),l},[]).concat(a)},ln=function(n,a){a=a||{};var o;return a.getShadowRoot?o=Ke([n],a.includeContainer,{filter:Se.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:cn}):o=He(n,a.includeContainer,Se.bind(null,a)),sn(o)},dn=function(n,a){a=a||{};var o;return a.getShadowRoot?o=Ke([n],a.includeContainer,{filter:fe.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):o=He(n,a.includeContainer,fe.bind(null,a)),o},pe=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return q.call(n,le)===!1?!1:Se(a,n)},un=Ze.concat("iframe").join(","),Ce=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return q.call(n,un)===!1?!1:fe(a,n)};/*!
|
|
5
|
+
* focus-trap 7.4.3
|
|
6
6
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
7
|
-
*/function
|
|
7
|
+
*/function Ge(r,n){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(r,l).enumerable})),a.push.apply(a,o)}return a}function qe(r){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Ge(Object(a),!0).forEach(function(o){fn(r,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):Ge(Object(a)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(a,o))})}return r}function fn(r,n,a){return n=bn(n),n in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}function pn(r,n){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,n||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(r)}function bn(r){var n=pn(r,"string");return typeof n=="symbol"?n:String(n)}var Ye={activateTrap:function(n,a){if(n.length>0){var o=n[n.length-1];o!==a&&o.pause()}var l=n.indexOf(a);l===-1||n.splice(l,1),n.push(a)},deactivateTrap:function(n,a){var o=n.indexOf(a);o!==-1&&n.splice(o,1),n.length>0&&n[n.length-1].unpause()}},mn=function(n){return n.tagName&&n.tagName.toLowerCase()==="input"&&typeof n.select=="function"},hn=function(n){return n.key==="Escape"||n.key==="Esc"||n.keyCode===27},re=function(n){return n.key==="Tab"||n.keyCode===9},gn=function(n){return re(n)&&!n.shiftKey},vn=function(n){return re(n)&&n.shiftKey},Xe=function(n){return setTimeout(n,0)},Je=function(n,a){var o=-1;return n.every(function(l,f){return a(l)?(o=f,!1):!0}),o},oe=function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];return typeof n=="function"?n.apply(void 0,o):n},be=function(n){return n.target.shadowRoot&&typeof n.composedPath=="function"?n.composedPath()[0]:n.target},yn=[],_n=function(n,a){var o=(a==null?void 0:a.document)||document,l=(a==null?void 0:a.trapStack)||yn,f=qe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:gn,isKeyBackward:vn},a),c={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},b,g=function(d,u,p){return d&&d[u]!==void 0?d[u]:f[p||u]},v=function(d,u){var p=typeof(u==null?void 0:u.composedPath)=="function"?u.composedPath():void 0;return c.containerGroups.findIndex(function(h){var _=h.container,N=h.tabbableNodes;return _.contains(d)||(p==null?void 0:p.includes(_))||N.find(function(B){return B===d})})},E=function(d){var u=f[d];if(typeof u=="function"){for(var p=arguments.length,h=new Array(p>1?p-1:0),_=1;_<p;_++)h[_-1]=arguments[_];u=u.apply(void 0,h)}if(u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error("`".concat(d,"` was specified but was not a node, or did not return a node"))}var N=u;if(typeof u=="string"&&(N=o.querySelector(u),!N))throw new Error("`".concat(d,"` as selector refers to no known node"));return N},T=function(){var d=E("initialFocus");if(d===!1)return!1;if(d===void 0||!Ce(d,f.tabbableOptions))if(v(o.activeElement)>=0)d=o.activeElement;else{var u=c.tabbableGroups[0],p=u&&u.firstTabbableNode;d=p||E("fallbackFocus")}if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},I=function(){if(c.containerGroups=c.containers.map(function(d){var u=ln(d,f.tabbableOptions),p=dn(d,f.tabbableOptions);return{container:d,tabbableNodes:u,focusableNodes:p,firstTabbableNode:u.length>0?u[0]:null,lastTabbableNode:u.length>0?u[u.length-1]:null,nextTabbableNode:function(_){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,B=p.findIndex(function(A){return A===_});if(!(B<0))return N?p.slice(B+1).find(function(A){return pe(A,f.tabbableOptions)}):p.slice(0,B).reverse().find(function(A){return pe(A,f.tabbableOptions)})}}}),c.tabbableGroups=c.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),c.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")},w=function k(d){if(d!==!1&&d!==o.activeElement){if(!d||!d.focus){k(T());return}d.focus({preventScroll:!!f.preventScroll}),c.mostRecentlyFocusedNode=d,mn(d)&&d.select()}},S=function(d){var u=E("setReturnFocus",d);return u||(u===!1?!1:d)},F=function(d){var u=be(d);if(!(v(u,d)>=0)){if(oe(f.clickOutsideDeactivates,d)){b.deactivate({returnFocus:f.returnFocusOnDeactivate});return}oe(f.allowOutsideClick,d)||d.preventDefault()}},M=function(d){var u=be(d),p=v(u,d)>=0;p||u instanceof Document?p&&(c.mostRecentlyFocusedNode=u):(d.stopImmediatePropagation(),w(c.mostRecentlyFocusedNode||T()))},$=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=be(d);I();var h=null;if(c.tabbableGroups.length>0){var _=v(p,d),N=_>=0?c.containerGroups[_]:void 0;if(_<0)u?h=c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode:h=c.tabbableGroups[0].firstTabbableNode;else if(u){var B=Je(c.tabbableGroups,function(ie){var Z=ie.firstTabbableNode;return p===Z});if(B<0&&(N.container===p||Ce(p,f.tabbableOptions)&&!pe(p,f.tabbableOptions)&&!N.nextTabbableNode(p,!1))&&(B=_),B>=0){var A=B===0?c.tabbableGroups.length-1:B-1,Ee=c.tabbableGroups[A];h=Ee.lastTabbableNode}else re(d)||(h=N.nextTabbableNode(p,!1))}else{var Y=Je(c.tabbableGroups,function(ie){var Z=ie.lastTabbableNode;return p===Z});if(Y<0&&(N.container===p||Ce(p,f.tabbableOptions)&&!pe(p,f.tabbableOptions)&&!N.nextTabbableNode(p))&&(Y=_),Y>=0){var C=Y===c.tabbableGroups.length-1?0:Y+1,Ne=c.tabbableGroups[C];h=Ne.firstTabbableNode}else re(d)||(h=N.nextTabbableNode(p))}}else h=E("fallbackFocus");h&&(re(d)&&d.preventDefault(),w(h))},K=function(d){if(hn(d)&&oe(f.escapeDeactivates,d)!==!1){d.preventDefault(),b.deactivate();return}(f.isKeyForward(d)||f.isKeyBackward(d))&&$(d,f.isKeyBackward(d))},P=function(d){var u=be(d);v(u,d)>=0||oe(f.clickOutsideDeactivates,d)||oe(f.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},y=function(){if(c.active)return Ye.activateTrap(l,b),c.delayInitialFocusTimer=f.delayInitialFocus?Xe(function(){w(T())}):w(T()),o.addEventListener("focusin",M,!0),o.addEventListener("mousedown",F,{capture:!0,passive:!1}),o.addEventListener("touchstart",F,{capture:!0,passive:!1}),o.addEventListener("click",P,{capture:!0,passive:!1}),o.addEventListener("keydown",K,{capture:!0,passive:!1}),b},x=function(){if(c.active)return o.removeEventListener("focusin",M,!0),o.removeEventListener("mousedown",F,!0),o.removeEventListener("touchstart",F,!0),o.removeEventListener("click",P,!0),o.removeEventListener("keydown",K,!0),b},j=function(d){var u=d.some(function(p){var h=Array.from(p.removedNodes);return h.some(function(_){return _===c.mostRecentlyFocusedNode})});u&&w(T())},z=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(j):void 0,V=function(){z&&(z.disconnect(),c.active&&!c.paused&&c.containers.map(function(d){z.observe(d,{subtree:!0,childList:!0})}))};return b={get active(){return c.active},get paused(){return c.paused},activate:function(d){if(c.active)return this;var u=g(d,"onActivate"),p=g(d,"onPostActivate"),h=g(d,"checkCanFocusTrap");h||I(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=o.activeElement,u==null||u();var _=function(){h&&I(),y(),V(),p==null||p()};return h?(h(c.containers.concat()).then(_,_),this):(_(),this)},deactivate:function(d){if(!c.active)return this;var u=qe({onDeactivate:f.onDeactivate,onPostDeactivate:f.onPostDeactivate,checkCanReturnFocus:f.checkCanReturnFocus},d);clearTimeout(c.delayInitialFocusTimer),c.delayInitialFocusTimer=void 0,x(),c.active=!1,c.paused=!1,V(),Ye.deactivateTrap(l,b);var p=g(u,"onDeactivate"),h=g(u,"onPostDeactivate"),_=g(u,"checkCanReturnFocus"),N=g(u,"returnFocus","returnFocusOnDeactivate");p==null||p();var B=function(){Xe(function(){N&&w(S(c.nodeFocusedBeforeActivation)),h==null||h()})};return N&&_?(_(S(c.nodeFocusedBeforeActivation)).then(B,B),this):(B(),this)},pause:function(d){if(c.paused||!c.active)return this;var u=g(d,"onPause"),p=g(d,"onPostPause");return c.paused=!0,u==null||u(),x(),V(),p==null||p(),this},unpause:function(d){if(!c.paused||!c.active)return this;var u=g(d,"onUnpause"),p=g(d,"onPostUnpause");return c.paused=!1,u==null||u(),I(),y(),V(),p==null||p(),this},updateContainerElements:function(d){var u=[].concat(d).filter(Boolean);return c.containers=u.map(function(p){return typeof p=="string"?o.querySelector(p):p}),c.active&&I(),V(),this}},b.updateContainerElements(n),b};/*!
|
|
8
8
|
* focus-trap-vue v4.0.1
|
|
9
9
|
* (c) 2023 Eduardo San Martin Morote
|
|
10
10
|
* @license MIT
|
|
11
|
-
*/function Or(r){return r}const yn={escapeDeactivates:{type:Boolean,default:!0},returnFocusOnDeactivate:{type:Boolean,default:!0},allowOutsideClick:{type:[Boolean,Function],default:!0},clickOutsideDeactivates:[Boolean,Function],initialFocus:[String,Function,Boolean],fallbackFocus:[String,Function],checkCanFocusTrap:Function,checkCanReturnFocus:Function,delayInitialFocus:{type:Boolean,default:!0},document:Object,preventScroll:Boolean,setReturnFocus:[Object,String,Boolean,Function],tabbableOptions:Object},_n=e.defineComponent({props:Object.assign({active:{type:Boolean,default:!0}},yn),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(r,{slots:n,emit:a}){let o;const l=e.ref(null),u=e.computed(()=>{const p=l.value;return p&&(p instanceof HTMLElement?p:p.$el)});function c(){return o||(o=vn(u.value,{escapeDeactivates:r.escapeDeactivates,allowOutsideClick:r.allowOutsideClick,returnFocusOnDeactivate:r.returnFocusOnDeactivate,clickOutsideDeactivates:r.clickOutsideDeactivates,onActivate:()=>{a("update:active",!0),a("activate")},onDeactivate:()=>{a("update:active",!1),a("deactivate")},onPostActivate:()=>a("postActivate"),onPostDeactivate:()=>a("postDeactivate"),initialFocus:r.initialFocus,fallbackFocus:r.fallbackFocus,tabbableOptions:r.tabbableOptions,delayInitialFocus:r.delayInitialFocus}))}return e.onMounted(()=>{e.watch(()=>r.active,p=>{p&&u.value?c().activate():o&&(o.deactivate(),(!u.value||u.value.nodeType===Node.COMMENT_NODE)&&(o=null))},{immediate:!0,flush:"post"})}),e.onUnmounted(()=>{o&&o.deactivate(),o=null}),{activate(){c().activate()},deactivate(){o&&o.deactivate()},renderImpl(){if(!n.default)return null;const p=n.default().filter(y=>y.type!==e.Comment);return!p||!p.length||p.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),p):e.cloneVNode(p[0],{ref:l})}}}});function Xe(){return{debounce:(n,a)=>{let o;return(...l)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{n(...l)},a)}}}}var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var me={exports:{}};me.exports,function(r,n){var a=200,o="__lodash_hash_undefined__",l=9007199254740991,u="[object Arguments]",c="[object Array]",p="[object Boolean]",v="[object Date]",y="[object Error]",N="[object Function]",I="[object GeneratorFunction]",B="[object Map]",C="[object Number]",T="[object Object]",F="[object Promise]",M="[object RegExp]",$="[object Set]",j="[object String]",R="[object Symbol]",_="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",d="[object Float32Array]",f="[object Float64Array]",m="[object Int8Array]",k="[object Int16Array]",h="[object Int32Array]",E="[object Uint8Array]",g="[object Uint8ClampedArray]",A="[object Uint16Array]",q="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,Ce=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,S={};S[u]=S[c]=S[x]=S[w]=S[p]=S[v]=S[d]=S[f]=S[m]=S[k]=S[h]=S[B]=S[C]=S[T]=S[M]=S[$]=S[j]=S[R]=S[E]=S[g]=S[A]=S[q]=!0,S[y]=S[N]=S[_]=!1;var ia=typeof be=="object"&&be&&be.Object===Object&&be,ca=typeof self=="object"&&self&&self.Object===Object&&self,z=ia||ca||Function("return this")(),nt=n&&!n.nodeType&&n,at=nt&&!0&&r&&!r.nodeType&&r,sa=at&&at.exports===nt;function la(t,i){return t.set(i[0],i[1]),t}function da(t,i){return t.add(i),t}function ua(t,i){for(var s=-1,b=t?t.length:0;++s<b&&i(t[s],s,t)!==!1;);return t}function fa(t,i){for(var s=-1,b=i.length,O=t.length;++s<b;)t[O+s]=i[s];return t}function rt(t,i,s,b){var O=-1,D=t?t.length:0;for(b&&D&&(s=t[++O]);++O<D;)s=i(s,t[O],O,t);return s}function pa(t,i){for(var s=-1,b=Array(t);++s<t;)b[s]=i(s);return b}function ba(t,i){return t==null?void 0:t[i]}function ot(t){var i=!1;if(t!=null&&typeof t.toString!="function")try{i=!!(t+"")}catch{}return i}function it(t){var i=-1,s=Array(t.size);return t.forEach(function(b,O){s[++i]=[O,b]}),s}function Te(t,i){return function(s){return t(i(s))}}function ct(t){var i=-1,s=Array(t.size);return t.forEach(function(b){s[++i]=b}),s}var ma=Array.prototype,ha=Function.prototype,he=Object.prototype,Ee=z["__core-js_shared__"],st=function(){var t=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),lt=ha.toString,W=he.hasOwnProperty,ge=he.toString,ga=RegExp("^"+lt.call(W).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=sa?z.Buffer:void 0,ut=z.Symbol,ft=z.Uint8Array,va=Te(Object.getPrototypeOf,Object),ya=Object.create,_a=he.propertyIsEnumerable,wa=ma.splice,pt=Object.getOwnPropertySymbols,ka=dt?dt.isBuffer:void 0,Sa=Te(Object.keys,Object),Ne=te(z,"DataView"),ie=te(z,"Map"),Ie=te(z,"Promise"),Be=te(z,"Set"),Oe=te(z,"WeakMap"),ce=te(Object,"create"),Ca=J(Ne),Ta=J(ie),Ea=J(Ie),Na=J(Be),Ia=J(Oe),bt=ut?ut.prototype:void 0,mt=bt?bt.valueOf:void 0;function Y(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function Ba(){this.__data__=ce?ce(null):{}}function Oa(t){return this.has(t)&&delete this.__data__[t]}function xa(t){var i=this.__data__;if(ce){var s=i[t];return s===o?void 0:s}return W.call(i,t)?i[t]:void 0}function Aa(t){var i=this.__data__;return ce?i[t]!==void 0:W.call(i,t)}function Fa(t,i){var s=this.__data__;return s[t]=ce&&i===void 0?o:i,this}Y.prototype.clear=Ba,Y.prototype.delete=Oa,Y.prototype.get=xa,Y.prototype.has=Aa,Y.prototype.set=Fa;function U(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function $a(){this.__data__=[]}function Da(t){var i=this.__data__,s=ve(i,t);if(s<0)return!1;var b=i.length-1;return s==b?i.pop():wa.call(i,s,1),!0}function Va(t){var i=this.__data__,s=ve(i,t);return s<0?void 0:i[s][1]}function La(t){return ve(this.__data__,t)>-1}function Ma(t,i){var s=this.__data__,b=ve(s,t);return b<0?s.push([t,i]):s[b][1]=i,this}U.prototype.clear=$a,U.prototype.delete=Da,U.prototype.get=Va,U.prototype.has=La,U.prototype.set=Ma;function Q(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var b=t[i];this.set(b[0],b[1])}}function Ra(){this.__data__={hash:new Y,map:new(ie||U),string:new Y}}function Za(t){return ye(this,t).delete(t)}function ja(t){return ye(this,t).get(t)}function Pa(t){return ye(this,t).has(t)}function Ha(t,i){return ye(this,t).set(t,i),this}Q.prototype.clear=Ra,Q.prototype.delete=Za,Q.prototype.get=ja,Q.prototype.has=Pa,Q.prototype.set=Ha;function ee(t){this.__data__=new U(t)}function Ka(){this.__data__=new U}function za(t){return this.__data__.delete(t)}function Ua(t){return this.__data__.get(t)}function Wa(t){return this.__data__.has(t)}function Ga(t,i){var s=this.__data__;if(s instanceof U){var b=s.__data__;if(!ie||b.length<a-1)return b.push([t,i]),this;s=this.__data__=new Q(b)}return s.set(t,i),this}ee.prototype.clear=Ka,ee.prototype.delete=za,ee.prototype.get=Ua,ee.prototype.has=Wa,ee.prototype.set=Ga;function qa(t,i){var s=Fe(t)||yr(t)?pa(t.length,String):[],b=s.length,O=!!b;for(var D in t)(i||W.call(t,D))&&!(O&&(D=="length"||mr(D,b)))&&s.push(D);return s}function ht(t,i,s){var b=t[i];(!(W.call(t,i)&&_t(b,s))||s===void 0&&!(i in t))&&(t[i]=s)}function ve(t,i){for(var s=t.length;s--;)if(_t(t[s][0],i))return s;return-1}function Ya(t,i){return t&>(i,$e(i),t)}function xe(t,i,s,b,O,D,Z){var V;if(b&&(V=D?b(t,O,D,Z):b(t)),V!==void 0)return V;if(!_e(t))return t;var St=Fe(t);if(St){if(V=fr(t),!i)return lr(t,V)}else{var ne=X(t),Ct=ne==N||ne==I;if(wr(t))return nr(t,i);if(ne==T||ne==u||Ct&&!D){if(ot(t))return D?t:{};if(V=pr(Ct?{}:t),!i)return dr(t,Ya(V,t))}else{if(!S[ne])return D?t:{};V=br(t,ne,xe,i)}}Z||(Z=new ee);var Tt=Z.get(t);if(Tt)return Tt;if(Z.set(t,V),!St)var Et=s?ur(t):$e(t);return ua(Et||t,function(De,we){Et&&(we=De,De=t[we]),ht(V,we,xe(De,i,s,b,we,t,Z))}),V}function Xa(t){return _e(t)?ya(t):{}}function Ja(t,i,s){var b=i(t);return Fe(t)?b:fa(b,s(t))}function Qa(t){return ge.call(t)}function er(t){if(!_e(t)||gr(t))return!1;var i=kt(t)||ot(t)?ga:Ce;return i.test(J(t))}function tr(t){if(!yt(t))return Sa(t);var i=[];for(var s in Object(t))W.call(t,s)&&s!="constructor"&&i.push(s);return i}function nr(t,i){if(i)return t.slice();var s=new t.constructor(t.length);return t.copy(s),s}function Ae(t){var i=new t.constructor(t.byteLength);return new ft(i).set(new ft(t)),i}function ar(t,i){var s=i?Ae(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function rr(t,i,s){var b=i?s(it(t),!0):it(t);return rt(b,la,new t.constructor)}function or(t){var i=new t.constructor(t.source,K.exec(t));return i.lastIndex=t.lastIndex,i}function ir(t,i,s){var b=i?s(ct(t),!0):ct(t);return rt(b,da,new t.constructor)}function cr(t){return mt?Object(mt.call(t)):{}}function sr(t,i){var s=i?Ae(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function lr(t,i){var s=-1,b=t.length;for(i||(i=Array(b));++s<b;)i[s]=t[s];return i}function gt(t,i,s,b){s||(s={});for(var O=-1,D=i.length;++O<D;){var Z=i[O],V=b?b(s[Z],t[Z],Z,s,t):void 0;ht(s,Z,V===void 0?t[Z]:V)}return s}function dr(t,i){return gt(t,vt(t),i)}function ur(t){return Ja(t,$e,vt)}function ye(t,i){var s=t.__data__;return hr(i)?s[typeof i=="string"?"string":"hash"]:s.map}function te(t,i){var s=ba(t,i);return er(s)?s:void 0}var vt=pt?Te(pt,Object):Cr,X=Qa;(Ne&&X(new Ne(new ArrayBuffer(1)))!=w||ie&&X(new ie)!=B||Ie&&X(Ie.resolve())!=F||Be&&X(new Be)!=$||Oe&&X(new Oe)!=_)&&(X=function(t){var i=ge.call(t),s=i==T?t.constructor:void 0,b=s?J(s):void 0;if(b)switch(b){case Ca:return w;case Ta:return B;case Ea:return F;case Na:return $;case Ia:return _}return i});function fr(t){var i=t.length,s=t.constructor(i);return i&&typeof t[0]=="string"&&W.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function pr(t){return typeof t.constructor=="function"&&!yt(t)?Xa(va(t)):{}}function br(t,i,s,b){var O=t.constructor;switch(i){case x:return Ae(t);case p:case v:return new O(+t);case w:return ar(t,b);case d:case f:case m:case k:case h:case E:case g:case A:case q:return sr(t,b);case B:return rr(t,b,s);case C:case j:return new O(t);case M:return or(t);case $:return ir(t,b,s);case R:return cr(t)}}function mr(t,i){return i=i??l,!!i&&(typeof t=="number"||oe.test(t))&&t>-1&&t%1==0&&t<i}function hr(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function gr(t){return!!st&&st in t}function yt(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||he;return t===s}function J(t){if(t!=null){try{return lt.call(t)}catch{}try{return t+""}catch{}}return""}function vr(t){return xe(t,!0,!0)}function _t(t,i){return t===i||t!==t&&i!==i}function yr(t){return _r(t)&&W.call(t,"callee")&&(!_a.call(t,"callee")||ge.call(t)==u)}var Fe=Array.isArray;function wt(t){return t!=null&&kr(t.length)&&!kt(t)}function _r(t){return Sr(t)&&wt(t)}var wr=ka||Tr;function kt(t){var i=_e(t)?ge.call(t):"";return i==N||i==I}function kr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=l}function _e(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}function Sr(t){return!!t&&typeof t=="object"}function $e(t){return wt(t)?qa(t):tr(t)}function Cr(){return[]}function Tr(){return!1}r.exports=vr}(me,me.exports);var kn=me.exports;const Sn=wn(kn),Cn={key:0,class:"sidebar-header"},Tn={class:"sidebar-content-container"},En={key:0,class:"sidebar-top"},Nn={"aria-label":"Main menu"},In={key:0,class:"level-primary top-items"},Bn={key:1,class:"sidebar-level-divider",role:"separator"},On={key:2,class:"level-primary bottom-items"},xn={class:"sidebar-footer"},An=e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,default:()=>[]},headerHeight:{type:Number,default:60},topOffset:{type:Number,default:0},zIndex:{type:Number,default:2},open:{type:Boolean,default:!1},mobileEnabled:{type:Boolean,default:!1},mobileTopOffset:{type:Number,default:0},mobileHeaderVisible:{type:Boolean,default:!1},mobileCloseDelay:{type:Number,default:350},mobileOverlay:{type:Boolean,default:!0},mobileOverlayZIndex:{type:Number,default:null},mobileOverlayCloseOnClick:{type:Boolean,default:!0}},emits:["click","toggle"],setup(r,{emit:n}){const a=r;e.useCssVars(h=>({"160797d0":e.unref(c).mobileHeight,"721527f8":e.unref(c).mobileTop,"054b3490":r.zIndex,"6b0e6816":e.unref(c).height,"31cc2e74":e.unref(c).top,"16bd691a":e.unref(v).marginTop,"08886e32":e.unref(p).display,"1d2550ee":e.unref(p).minHeight,ed4e7e56:e.unref(y).top,"377644f8":e.unref(y).zIndex}));const o=e.useSlots(),l=e.computed(()=>!!o.header),u=e.computed(()=>!!o.top),c=e.computed(()=>({mobileTop:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:a.topOffset?`${a.topOffset}px`:"0",top:a.topOffset?`${a.topOffset}px`:"0",mobileHeight:a.mobileTopOffset&&a.mobileEnabled?`calc(100% - ${a.mobileTopOffset}px)`:"100%",height:a.topOffset?`calc(100% - ${a.topOffset}px)`:"100%"})),p=e.computed(()=>({display:!a.mobileHeaderVisible&&a.mobileEnabled?"none":"flex",minHeight:`${a.headerHeight}px`})),v=e.computed(()=>({marginTop:l.value?`${a.headerHeight}px`:"0"})),y=e.computed(()=>({top:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:"0",zIndex:a.mobileOverlayZIndex!==null?a.mobileOverlayZIndex:a.zIndex>1?a.zIndex-1:1})),N=h=>Sn(h).map(g=>{var A,q,P;if(g){(!g.key||!((A=g.key)!=null&&A.trim()))&&(g.key=String(g.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!g.testId||!((q=g.testId)!=null&&q.trim()))&&(g.testId=String(g.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const K of g.items||[])K.parentKey=g.key,(!K.testId||!((P=K.testId)!=null&&P.trim()))&&(K.testId=String(K.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return g}),I=e.computed(()=>a.topItems.length?N(a.topItems):[]),B=e.computed(()=>a.bottomItems.length?N(a.bottomItems):[]),C=e.ref(a.open),T=h=>{var E,g;C.value!==h&&(C.value=h,n("toggle",h)),h?(E=document==null?void 0:document.body)==null||E.classList.add("kong-ui-app-sidebar-open"):(g=document==null?void 0:document.body)==null||g.classList.remove("kong-ui-app-sidebar-open"),M.value=!1},F=()=>{a.mobileOverlayCloseOnClick&&T(!1)},M=e.ref(!1),$=h=>{M.value=!0,n("click",h),setTimeout(()=>{T(!1)},a.mobileCloseDelay)};e.watch(()=>a.open,h=>{T(h)});const{debounce:j}=Xe(),R=j(()=>{C.value&&_.value!==(window==null?void 0:window.innerWidth)&&(_.value=window==null?void 0:window.innerWidth,T(!1))},200),_=e.ref(),x=e.ref(!1),w=e.ref(),d=()=>{x.value||(x.value=!0,clearTimeout(w.value),w.value=setTimeout(()=>x.value=!1,1300))},f=e.ref(null),m=e.computed(()=>C.value&&a.mobileEnabled),k=async h=>{var E,g;h?(await e.nextTick(),await new Promise(A=>setTimeout(A,300)),(E=f.value)==null||E.activate()):(g=f.value)==null||g.deactivate()};return e.watch(m,async h=>{h?await k(!0):await k(!1)},{immediate:!0}),e.onMounted(()=>{_.value=window==null?void 0:window.innerWidth,window.addEventListener("resize",R),window.addEventListener("resize",d)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",R),window.removeEventListener("resize",d)}),(h,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[C.value&&r.mobileOverlay&&r.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:F})):e.createCommentVNode("",!0),e.createVNode(e.unref(_n),{ref_key:"focusTrap",ref:f,active:!1,"allow-outside-click":"","fallback-focus":".kong-ui-app-sidebar"},{default:e.withCtx(()=>[e.createElementVNode("aside",{class:e.normalizeClass(["kong-ui-app-sidebar",{"sidebar-open":C.value,"no-sidebar-header":!e.unref(l),"mobile-header-hidden":r.mobileEnabled&&(!e.unref(l)||!r.mobileHeaderVisible),"mobile-disabled":!r.mobileEnabled,"disable-transitions":x.value}]),tabindex:"-1"},[e.unref(l)?(e.openBlock(),e.createElementBlock("div",Cn,[e.renderSlot(h.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Tn,[e.unref(u)?(e.openBlock(),e.createElementBlock("div",En,[e.renderSlot(h.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Nn,[e.unref(I).length?(e.openBlock(),e.createElementBlock("ul",In,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),g=>(e.openBlock(),e.createBlock(Le,{key:g.name,item:g,onClick:$},null,8,["item"]))),128))])):e.createCommentVNode("",!0),e.unref(I).length&&e.unref(B).length?(e.openBlock(),e.createElementBlock("div",Bn)):e.createCommentVNode("",!0),e.unref(B).length?(e.openBlock(),e.createElementBlock("ul",On,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(B),g=>(e.openBlock(),e.createBlock(Le,{key:g.name,item:g,onClick:$},null,8,["item"]))),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",xn,[e.renderSlot(h.$slots,"footer",{},void 0,!0)])],2)]),_:3},512)],64))}}),xr="",Ar="",Je=H(An,[["__scopeId","data-v-6daf9f02"]]),Se=r=>(e.pushScopeId("data-v-33b3f7c3"),r=r(),e.popScopeId(),r),Fn=["aria-label","onClick"],$n=[Se(()=>e.createElementVNode("span",{class:"line"},null,-1)),Se(()=>e.createElementVNode("span",{class:"line"},null,-1)),Se(()=>e.createElementVNode("span",{class:"line"},null,-1))],Dn=e.defineComponent({__name:"SidebarToggle",props:{active:{type:Boolean,default:!1}},emits:["toggle"],setup(r,{emit:n}){const a=r,o=e.ref(a.active||!1),l=()=>{o.value=!o.value,n("toggle",o.value)};return e.watch(()=>a.active,u=>{o.value=u}),(u,c)=>(e.openBlock(),e.createElementBlock("a",{"aria-haspopup":"true","aria-label":o.value?"Close Main Menu":"Open Main Menu",class:e.normalizeClass(["sidebar-menu-toggle",{active:o.value}]),href:"#",role:"button",onClick:e.withModifiers(l,["prevent"])},$n,10,Fn))}}),Vr="",Qe=H(Dn,[["__scopeId","data-v-33b3f7c3"]]),Vn=r=>(e.pushScopeId("data-v-37316186"),r=r(),e.popScopeId(),r),Ln={id:"kong-ui-app-layout-notification"},Mn={class:"mobile-logo"},Rn={key:0,class:"navbar-logo"},Zn={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},jn={class:"kong-ui-app-layout-content"},Pn={class:"kong-ui-app-layout-content-inner"},Hn=Vn(()=>e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),Kn=e.defineComponent({__name:"AppLayout",props:{hideDefaultSlot:{type:Boolean,default:!1},navbarHidden:{type:Boolean,default:!1},sidebarHidden:{type:Boolean,default:!1},sidebarOpen:{type:Boolean,default:!1},sidebarTopItems:{type:Array,default:()=>[]},sidebarBottomItems:{type:Array,default:()=>[]}},emits:["sidebar-click"],setup(r,{emit:n}){const a=r;e.useCssVars(_=>({"06ca369a":e.unref(F),"7d4a09e6":e.unref(M)}));const o=e.useSlots(),l=e.reactive({navbarLeft:e.computed(()=>!!o["navbar-left"]),navbarCenter:e.computed(()=>!!o["navbar-center"]),navbarRight:e.computed(()=>!!o["navbar-right"]),navbarLogo:e.computed(()=>!!o["navbar-logo"]),navbarMobileLogo:e.computed(()=>!!o["navbar-mobile-logo"]),sidebarHeader:e.computed(()=>!!o["sidebar-header"]),sidebarTop:e.computed(()=>!!o["sidebar-top"]),sidebarFooter:e.computed(()=>!!o["sidebar-footer"])}),u=e.computed(()=>a.hideDefaultSlot),c=e.reactive({hidden:e.computed(()=>a.navbarHidden)}),p=e.reactive({topItems:e.computed(()=>a.sidebarTopItems),bottomItems:e.computed(()=>a.sidebarBottomItems),open:e.computed(()=>a.sidebarOpen),hidden:e.computed(()=>a.sidebarHidden)}),v=_=>{n("sidebar-click",_)},y=e.ref(!1),N=_=>{y.value=_};e.watchEffect(()=>{y.value=e.toRef(p,"open").value||!1});const I=e.ref(0),B=e.ref(60),C=e.ref(0),T=e.computed(()=>c.hidden?C.value:B.value+C.value),F=e.computed(()=>`${T.value}px`),M=e.computed(()=>p.hidden||c.hidden?"0":"16px"),{debounce:$}=Xe(),j=$((_=!1)=>{if(_||I.value!==(window==null?void 0:window.innerWidth)){I.value=window==null?void 0:window.innerWidth;const x=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");x&&(C.value=x.offsetHeight)}},200),R=e.ref();return e.onMounted(()=>{var x,w;(x=document==null?void 0:document.body)==null||x.classList.add("kong-ui-app-layout-body"),(w=document==null?void 0:document.documentElement)==null||w.classList.add("kong-ui-app-layout-html"),I.value=window==null?void 0:window.innerWidth,j(!0);const _=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");_&&(R.value=new ResizeObserver(d=>{for(const f of d){const m=f.contentRect.height;C.value!==m&&(C.value=m)}}),R.value.observe(_)),window.addEventListener("resize",j)}),e.onBeforeUnmount(()=>{R.value&&R.value.disconnect(),window.removeEventListener("resize",j)}),(_,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":c.hidden},{"sidebar-hidden":p.hidden}]])},[e.createElementVNode("div",Ln,[e.renderSlot(_.$slots,"notification",{},void 0,!0)]),c.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ve,{key:String(p.hidden),"left-offset":p.hidden?0:void 0,"top-offset":C.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Qe,{key:0,active:y.value,onToggle:N},null,8,["active"]))]),_:2},[l.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",Mn,[e.renderSlot(_.$slots,"navbar-mobile-logo",{},void 0,!0)])]),key:"0"}:void 0,l.navbarLogo?{name:"logo",fn:e.withCtx(()=>[p.hidden?(e.openBlock(),e.createElementBlock("div",Rn,[e.renderSlot(_.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,l.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,l.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,l.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"navbar-right",{},void 0,!0)]),key:"4"}:void 0]),1032,["left-offset","top-offset"])),p.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Je,{key:1,"bottom-items":p.bottomItems,"header-height":B.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":e.unref(T),open:y.value,"top-items":p.topItems,"top-offset":C.value,onClick:v,onToggle:N},e.createSlots({_:2},[l.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,l.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0,l.sidebarFooter?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"sidebar-footer",{},void 0,!0)]),key:"2"}:void 0]),1032,["bottom-items","header-height","mobile-top-offset","open","top-items","top-offset"])),e.createElementVNode("main",Zn,[e.createElementVNode("div",jn,[e.createElementVNode("div",Pn,[Hn,e.renderSlot(_.$slots,"app-error",{},void 0,!0),e.unref(u)?e.createCommentVNode("",!0):e.renderSlot(_.$slots,"default",{key:0},void 0,!0)])])])],2))}}),Lr="",Mr="",et=H(Kn,[["__scopeId","data-v-37316186"]]),zn=e.defineComponent({__name:"AccountDropdown",props:{options:{type:Array,required:!0},width:{type:String,default:"240"},userInitials:{type:String,required:!0,default:" "}},setup(r){return(n,a)=>{const o=e.resolveComponent("KDropdownItem"),l=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createBlock(l,{class:"account-dropdown","kpop-attributes":{placement:"bottomStart"},label:r.userInitials,size:"small",width:r.width},{items:e.withCtx(({handleSelection:u})=>[e.renderSlot(n.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,c=>(e.openBlock(),e.createBlock(o,{key:c.value,class:e.normalizeClass({"has-divider":c.hasDivider}),"data-testid":"select-"+c.value,"has-divider":c.hasDivider,onClick:p=>u(c)},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{option:c},()=>[e.createTextVNode(e.toDisplayString(c.label),1)],!0)]),_:2},1032,["class","data-testid","has-divider","onClick"]))),128))],!0)]),_:3},8,["label","width"])}}}),Rr="",Un=H(zn,[["__scopeId","data-v-6e34d3da"]]),Wn={},Gn={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"},qn=[e.createStaticVNode('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>',5)];function Yn(r,n){return e.openBlock(),e.createElementBlock("svg",Gn,qn)}const Xn=H(Wn,[["render",Yn]]),tt=r=>(e.pushScopeId("data-v-ff05f71e"),r=r(),e.popScopeId(),r),Jn={class:"kong-ui-app-error"},Qn={class:"banana-icon"},ea={class:"kong-ui-app-error-content"},ta=tt(()=>e.createElementVNode("h2",null,"An unexpected error has occurred",-1)),na=tt(()=>e.createElementVNode("p",null,[e.createTextVNode("Go back to the previous page or "),e.createElementVNode("a",{href:"/"},"return home"),e.createTextVNode(".")],-1)),aa=e.defineComponent({__name:"AppError",setup(r){return(n,a)=>(e.openBlock(),e.createElementBlock("section",Jn,[e.createElementVNode("div",Qn,[e.createVNode(Xn)]),e.createElementVNode("div",ea,[e.renderSlot(n.$slots,"default",{},()=>[ta,na],!0)])]))}}),jr="",Pr="",ra=H(aa,[["__scopeId","data-v-ff05f71e"]]),oa={install:(r,n={})=>{r.component(n.name||"AppLayout",et)}};L.AccountDropdown=Un,L.AppError=ra,L.AppLayout=et,L.AppNavbar=Ve,L.AppSidebar=Je,L.SidebarToggle=Qe,L.default=oa,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
11
|
+
*/function Or(r){return r}const wn={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},kn=e.defineComponent({props:Object.assign({active:{type:Boolean,default:!0}},wn),emits:["update:active","activate","postActivate","deactivate","postDeactivate"],render(){return this.renderImpl()},setup(r,{slots:n,emit:a}){let o;const l=e.ref(null),f=e.computed(()=>{const b=l.value;return b&&(b instanceof HTMLElement?b:b.$el)});function c(){return o||(o=_n(f.value,{escapeDeactivates:r.escapeDeactivates,allowOutsideClick:r.allowOutsideClick,returnFocusOnDeactivate:r.returnFocusOnDeactivate,clickOutsideDeactivates:r.clickOutsideDeactivates,onActivate:()=>{a("update:active",!0),a("activate")},onDeactivate:()=>{a("update:active",!1),a("deactivate")},onPostActivate:()=>a("postActivate"),onPostDeactivate:()=>a("postDeactivate"),initialFocus:r.initialFocus,fallbackFocus:r.fallbackFocus,tabbableOptions:r.tabbableOptions,delayInitialFocus:r.delayInitialFocus}))}return e.onMounted(()=>{e.watch(()=>r.active,b=>{b&&f.value?c().activate():o&&(o.deactivate(),(!f.value||f.value.nodeType===Node.COMMENT_NODE)&&(o=null))},{immediate:!0,flush:"post"})}),e.onUnmounted(()=>{o&&o.deactivate(),o=null}),{activate(){c().activate()},deactivate(){o&&o.deactivate()},renderImpl(){if(!n.default)return null;const b=n.default().filter(v=>v.type!==e.Comment);return!b||!b.length||b.length>1?(console.error("[focus-trap-vue]: FocusTrap requires exactly one child."),b):e.cloneVNode(b[0],{ref:l})}}}});function Qe(){return{debounce:(n,a)=>{let o;return(...l)=>{clearTimeout(o),o=window==null?void 0:window.setTimeout(()=>{n(...l)},a)}}}}var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var he={exports:{}};he.exports,function(r,n){var a=200,o="__lodash_hash_undefined__",l=9007199254740991,f="[object Arguments]",c="[object Array]",b="[object Boolean]",g="[object Date]",v="[object Error]",E="[object Function]",T="[object GeneratorFunction]",I="[object Map]",w="[object Number]",S="[object Object]",F="[object Promise]",M="[object RegExp]",$="[object Set]",K="[object String]",P="[object Symbol]",y="[object WeakMap]",x="[object ArrayBuffer]",j="[object DataView]",z="[object Float32Array]",V="[object Float64Array]",k="[object Int8Array]",d="[object Int16Array]",u="[object Int32Array]",p="[object Uint8Array]",h="[object Uint8ClampedArray]",_="[object Uint16Array]",N="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,A=/\w*$/,Ee=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,C={};C[f]=C[c]=C[x]=C[j]=C[b]=C[g]=C[z]=C[V]=C[k]=C[d]=C[u]=C[I]=C[w]=C[S]=C[M]=C[$]=C[K]=C[P]=C[p]=C[h]=C[_]=C[N]=!0,C[v]=C[E]=C[y]=!1;var Ne=typeof me=="object"&&me&&me.Object===Object&&me,ie=typeof self=="object"&&self&&self.Object===Object&&self,Z=Ne||ie||Function("return this")(),rt=n&&!n.nodeType&&n,ot=rt&&!0&&r&&!r.nodeType&&r,sa=ot&&ot.exports===rt;function la(t,i){return t.set(i[0],i[1]),t}function da(t,i){return t.add(i),t}function ua(t,i){for(var s=-1,m=t?t.length:0;++s<m&&i(t[s],s,t)!==!1;);return t}function fa(t,i){for(var s=-1,m=i.length,O=t.length;++s<m;)t[O+s]=i[s];return t}function it(t,i,s,m){var O=-1,D=t?t.length:0;for(m&&D&&(s=t[++O]);++O<D;)s=i(s,t[O],O,t);return s}function pa(t,i){for(var s=-1,m=Array(t);++s<t;)m[s]=i(s);return m}function ba(t,i){return t==null?void 0:t[i]}function ct(t){var i=!1;if(t!=null&&typeof t.toString!="function")try{i=!!(t+"")}catch{}return i}function st(t){var i=-1,s=Array(t.size);return t.forEach(function(m,O){s[++i]=[O,m]}),s}function Ie(t,i){return function(s){return t(i(s))}}function lt(t){var i=-1,s=Array(t.size);return t.forEach(function(m){s[++i]=m}),s}var ma=Array.prototype,ha=Function.prototype,ge=Object.prototype,Be=Z["__core-js_shared__"],dt=function(){var t=/[^.]+$/.exec(Be&&Be.keys&&Be.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ut=ha.toString,G=ge.hasOwnProperty,ve=ge.toString,ga=RegExp("^"+ut.call(G).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=sa?Z.Buffer:void 0,pt=Z.Symbol,bt=Z.Uint8Array,va=Ie(Object.getPrototypeOf,Object),ya=Object.create,_a=ge.propertyIsEnumerable,wa=ma.splice,mt=Object.getOwnPropertySymbols,ka=ft?ft.isBuffer:void 0,Sa=Ie(Object.keys,Object),Oe=ne(Z,"DataView"),ce=ne(Z,"Map"),xe=ne(Z,"Promise"),Ae=ne(Z,"Set"),Fe=ne(Z,"WeakMap"),se=ne(Object,"create"),Ca=Q(Oe),Ta=Q(ce),Ea=Q(xe),Na=Q(Ae),Ia=Q(Fe),ht=pt?pt.prototype:void 0,gt=ht?ht.valueOf:void 0;function X(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var m=t[i];this.set(m[0],m[1])}}function Ba(){this.__data__=se?se(null):{}}function Oa(t){return this.has(t)&&delete this.__data__[t]}function xa(t){var i=this.__data__;if(se){var s=i[t];return s===o?void 0:s}return G.call(i,t)?i[t]:void 0}function Aa(t){var i=this.__data__;return se?i[t]!==void 0:G.call(i,t)}function Fa(t,i){var s=this.__data__;return s[t]=se&&i===void 0?o:i,this}X.prototype.clear=Ba,X.prototype.delete=Oa,X.prototype.get=xa,X.prototype.has=Aa,X.prototype.set=Fa;function W(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var m=t[i];this.set(m[0],m[1])}}function $a(){this.__data__=[]}function Da(t){var i=this.__data__,s=ye(i,t);if(s<0)return!1;var m=i.length-1;return s==m?i.pop():wa.call(i,s,1),!0}function Va(t){var i=this.__data__,s=ye(i,t);return s<0?void 0:i[s][1]}function La(t){return ye(this.__data__,t)>-1}function Ra(t,i){var s=this.__data__,m=ye(s,t);return m<0?s.push([t,i]):s[m][1]=i,this}W.prototype.clear=$a,W.prototype.delete=Da,W.prototype.get=Va,W.prototype.has=La,W.prototype.set=Ra;function ee(t){var i=-1,s=t?t.length:0;for(this.clear();++i<s;){var m=t[i];this.set(m[0],m[1])}}function Ma(){this.__data__={hash:new X,map:new(ce||W),string:new X}}function Pa(t){return _e(this,t).delete(t)}function Za(t){return _e(this,t).get(t)}function ja(t){return _e(this,t).has(t)}function Ha(t,i){return _e(this,t).set(t,i),this}ee.prototype.clear=Ma,ee.prototype.delete=Pa,ee.prototype.get=Za,ee.prototype.has=ja,ee.prototype.set=Ha;function te(t){this.__data__=new W(t)}function Ka(){this.__data__=new W}function za(t){return this.__data__.delete(t)}function Ua(t){return this.__data__.get(t)}function Wa(t){return this.__data__.has(t)}function Ga(t,i){var s=this.__data__;if(s instanceof W){var m=s.__data__;if(!ce||m.length<a-1)return m.push([t,i]),this;s=this.__data__=new ee(m)}return s.set(t,i),this}te.prototype.clear=Ka,te.prototype.delete=za,te.prototype.get=Ua,te.prototype.has=Wa,te.prototype.set=Ga;function qa(t,i){var s=Ve(t)||yr(t)?pa(t.length,String):[],m=s.length,O=!!m;for(var D in t)(i||G.call(t,D))&&!(O&&(D=="length"||mr(D,m)))&&s.push(D);return s}function vt(t,i,s){var m=t[i];(!(G.call(t,i)&&kt(m,s))||s===void 0&&!(i in t))&&(t[i]=s)}function ye(t,i){for(var s=t.length;s--;)if(kt(t[s][0],i))return s;return-1}function Ya(t,i){return t&&yt(i,Le(i),t)}function $e(t,i,s,m,O,D,H){var L;if(m&&(L=D?m(t,O,D,H):m(t)),L!==void 0)return L;if(!we(t))return t;var Tt=Ve(t);if(Tt){if(L=fr(t),!i)return lr(t,L)}else{var ae=J(t),Et=ae==E||ae==T;if(wr(t))return nr(t,i);if(ae==S||ae==f||Et&&!D){if(ct(t))return D?t:{};if(L=pr(Et?{}:t),!i)return dr(t,Ya(L,t))}else{if(!C[ae])return D?t:{};L=br(t,ae,$e,i)}}H||(H=new te);var Nt=H.get(t);if(Nt)return Nt;if(H.set(t,L),!Tt)var It=s?ur(t):Le(t);return ua(It||t,function(Re,ke){It&&(ke=Re,Re=t[ke]),vt(L,ke,$e(Re,i,s,m,ke,t,H))}),L}function Xa(t){return we(t)?ya(t):{}}function Ja(t,i,s){var m=i(t);return Ve(t)?m:fa(m,s(t))}function Qa(t){return ve.call(t)}function er(t){if(!we(t)||gr(t))return!1;var i=Ct(t)||ct(t)?ga:Ee;return i.test(Q(t))}function tr(t){if(!wt(t))return Sa(t);var i=[];for(var s in Object(t))G.call(t,s)&&s!="constructor"&&i.push(s);return i}function nr(t,i){if(i)return t.slice();var s=new t.constructor(t.length);return t.copy(s),s}function De(t){var i=new t.constructor(t.byteLength);return new bt(i).set(new bt(t)),i}function ar(t,i){var s=i?De(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function rr(t,i,s){var m=i?s(st(t),!0):st(t);return it(m,la,new t.constructor)}function or(t){var i=new t.constructor(t.source,A.exec(t));return i.lastIndex=t.lastIndex,i}function ir(t,i,s){var m=i?s(lt(t),!0):lt(t);return it(m,da,new t.constructor)}function cr(t){return gt?Object(gt.call(t)):{}}function sr(t,i){var s=i?De(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function lr(t,i){var s=-1,m=t.length;for(i||(i=Array(m));++s<m;)i[s]=t[s];return i}function yt(t,i,s,m){s||(s={});for(var O=-1,D=i.length;++O<D;){var H=i[O],L=m?m(s[H],t[H],H,s,t):void 0;vt(s,H,L===void 0?t[H]:L)}return s}function dr(t,i){return yt(t,_t(t),i)}function ur(t){return Ja(t,Le,_t)}function _e(t,i){var s=t.__data__;return hr(i)?s[typeof i=="string"?"string":"hash"]:s.map}function ne(t,i){var s=ba(t,i);return er(s)?s:void 0}var _t=mt?Ie(mt,Object):Cr,J=Qa;(Oe&&J(new Oe(new ArrayBuffer(1)))!=j||ce&&J(new ce)!=I||xe&&J(xe.resolve())!=F||Ae&&J(new Ae)!=$||Fe&&J(new Fe)!=y)&&(J=function(t){var i=ve.call(t),s=i==S?t.constructor:void 0,m=s?Q(s):void 0;if(m)switch(m){case Ca:return j;case Ta:return I;case Ea:return F;case Na:return $;case Ia:return y}return i});function fr(t){var i=t.length,s=t.constructor(i);return i&&typeof t[0]=="string"&&G.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function pr(t){return typeof t.constructor=="function"&&!wt(t)?Xa(va(t)):{}}function br(t,i,s,m){var O=t.constructor;switch(i){case x:return De(t);case b:case g:return new O(+t);case j:return ar(t,m);case z:case V:case k:case d:case u:case p:case h:case _:case N:return sr(t,m);case I:return rr(t,m,s);case w:case K:return new O(t);case M:return or(t);case $:return ir(t,m,s);case P:return cr(t)}}function mr(t,i){return i=i??l,!!i&&(typeof t=="number"||Y.test(t))&&t>-1&&t%1==0&&t<i}function hr(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function gr(t){return!!dt&&dt in t}function wt(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||ge;return t===s}function Q(t){if(t!=null){try{return ut.call(t)}catch{}try{return t+""}catch{}}return""}function vr(t){return $e(t,!0,!0)}function kt(t,i){return t===i||t!==t&&i!==i}function yr(t){return _r(t)&&G.call(t,"callee")&&(!_a.call(t,"callee")||ve.call(t)==f)}var Ve=Array.isArray;function St(t){return t!=null&&kr(t.length)&&!Ct(t)}function _r(t){return Sr(t)&&St(t)}var wr=ka||Tr;function Ct(t){var i=we(t)?ve.call(t):"";return i==E||i==T}function kr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=l}function we(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}function Sr(t){return!!t&&typeof t=="object"}function Le(t){return St(t)?qa(t):tr(t)}function Cr(){return[]}function Tr(){return!1}r.exports=vr}(he,he.exports);var Cn=he.exports;const Tn=Sn(Cn),En={key:0,class:"sidebar-header"},Nn={class:"sidebar-content-container"},In={key:0,class:"sidebar-top"},Bn={"aria-label":"Main menu"},On={key:0,class:"level-primary top-items"},xn={key:1,class:"sidebar-level-divider",role:"separator"},An={key:2,class:"level-primary bottom-items"},Fn={class:"sidebar-footer"},$n=e.defineComponent({__name:"AppSidebar",props:{topItems:{type:Array,default:()=>[]},bottomItems:{type:Array,default:()=>[]},headerHeight:{type:Number,default:60},topOffset:{type:Number,default:0},zIndex:{type:Number,default:2},open:{type:Boolean,default:!1},mobileEnabled:{type:Boolean,default:!1},mobileTopOffset:{type:Number,default:0},mobileHeaderVisible:{type:Boolean,default:!1},mobileCloseDelay:{type:Number,default:350},mobileOverlay:{type:Boolean,default:!0},mobileOverlayZIndex:{type:Number,default:null},mobileOverlayCloseOnClick:{type:Boolean,default:!0}},emits:["click","toggle"],setup(r,{emit:n}){const a=r;e.useCssVars(u=>({"160797d0":e.unref(c).mobileHeight,"721527f8":e.unref(c).mobileTop,"054b3490":r.zIndex,"6b0e6816":e.unref(c).height,"31cc2e74":e.unref(c).top,"16bd691a":e.unref(g).marginTop,"08886e32":e.unref(b).display,"1d2550ee":e.unref(b).minHeight,ed4e7e56:e.unref(v).top,"377644f8":e.unref(v).zIndex}));const o=e.useSlots(),l=e.computed(()=>!!o.header),f=e.computed(()=>!!o.top),c=e.computed(()=>({mobileTop:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:a.topOffset?`${a.topOffset}px`:"0",top:a.topOffset?`${a.topOffset}px`:"0",mobileHeight:a.mobileTopOffset&&a.mobileEnabled?`calc(100% - ${a.mobileTopOffset}px)`:"100%",height:a.topOffset?`calc(100% - ${a.topOffset}px)`:"100%"})),b=e.computed(()=>({display:!a.mobileHeaderVisible&&a.mobileEnabled?"none":"flex",minHeight:`${a.headerHeight}px`})),g=e.computed(()=>({marginTop:l.value?`${a.headerHeight}px`:"0"})),v=e.computed(()=>({top:a.mobileTopOffset&&a.mobileEnabled?`${a.mobileTopOffset}px`:"0",zIndex:a.mobileOverlayZIndex!==null?a.mobileOverlayZIndex:a.zIndex>1?a.zIndex-1:1})),E=u=>Tn(u).map(h=>{var _,N,B;if(h){(!h.key||!((_=h.key)!=null&&_.trim()))&&(h.key=String(h.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-")),(!h.testId||!((N=h.testId)!=null&&N.trim()))&&(h.testId=String(h.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"));for(const A of h.items||[])A.parentKey=h.key,(!A.testId||!((B=A.testId)!=null&&B.trim()))&&(A.testId=String(A.name||"").trim().toLowerCase().replace(/[^[a-z]/gi,"-"))}return h}),T=e.computed(()=>a.topItems.length?E(a.topItems):[]),I=e.computed(()=>a.bottomItems.length?E(a.bottomItems):[]),w=e.ref(a.open),S=u=>{var p,h;w.value!==u&&(w.value=u,n("toggle",u)),u?(p=document==null?void 0:document.body)==null||p.classList.add("kong-ui-app-sidebar-open"):(h=document==null?void 0:document.body)==null||h.classList.remove("kong-ui-app-sidebar-open"),M.value=!1},F=()=>{a.mobileOverlayCloseOnClick&&S(!1)},M=e.ref(!1),$=u=>{M.value=!0,n("click",u),setTimeout(()=>{S(!1)},a.mobileCloseDelay)};e.watch(()=>a.open,u=>{S(u)});const{debounce:K}=Qe(),P=K(()=>{w.value&&y.value!==(window==null?void 0:window.innerWidth)&&(y.value=window==null?void 0:window.innerWidth,S(!1))},200),y=e.ref(),x=e.ref(!1),j=e.ref(),z=()=>{x.value||(x.value=!0,clearTimeout(j.value),j.value=setTimeout(()=>x.value=!1,1300))},V=e.ref(null),k=e.computed(()=>w.value&&a.mobileEnabled),d=async u=>{var p,h;u?(await e.nextTick(),await new Promise(_=>setTimeout(_,300)),(p=V.value)==null||p.activate()):(h=V.value)==null||h.deactivate()};return e.watch(k,async u=>{u?await d(!0):await d(!1)},{immediate:!0}),e.onMounted(()=>{y.value=window==null?void 0:window.innerWidth,window.addEventListener("resize",P),window.addEventListener("resize",z)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",P),window.removeEventListener("resize",z)}),(u,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[w.value&&r.mobileOverlay&&r.mobileEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,class:"kong-ui-app-sidebar-overlay",onClick:F})):e.createCommentVNode("",!0),e.createVNode(e.unref(kn),{ref_key:"focusTrap",ref:V,active:!1,"allow-outside-click":"","fallback-focus":".kong-ui-app-sidebar"},{default:e.withCtx(()=>[e.createElementVNode("aside",{class:e.normalizeClass(["kong-ui-app-sidebar",{"sidebar-open":w.value,"no-sidebar-header":!e.unref(l),"mobile-header-hidden":r.mobileEnabled&&(!e.unref(l)||!r.mobileHeaderVisible),"mobile-disabled":!r.mobileEnabled,"disable-transitions":x.value}]),tabindex:"-1"},[e.unref(l)?(e.openBlock(),e.createElementBlock("div",En,[e.renderSlot(u.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Nn,[e.unref(f)?(e.openBlock(),e.createElementBlock("div",In,[e.renderSlot(u.$slots,"top",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Bn,[e.unref(T).length?(e.openBlock(),e.createElementBlock("ul",On,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(T),h=>(e.openBlock(),e.createBlock(Pe,{key:h.name,item:h,onClick:$},null,8,["item"]))),128))])):e.createCommentVNode("",!0),e.unref(T).length&&e.unref(I).length?(e.openBlock(),e.createElementBlock("div",xn)):e.createCommentVNode("",!0),e.unref(I).length?(e.openBlock(),e.createElementBlock("ul",An,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),h=>(e.openBlock(),e.createBlock(Pe,{key:h.name,item:h,onClick:$},null,8,["item"]))),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Fn,[e.renderSlot(u.$slots,"footer",{},void 0,!0)])],2)]),_:3},512)],64))}}),xr="",Ar="",et=U($n,[["__scopeId","data-v-6daf9f02"]]),Te=r=>(e.pushScopeId("data-v-33b3f7c3"),r=r(),e.popScopeId(),r),Dn=["aria-label","onClick"],Vn=[Te(()=>e.createElementVNode("span",{class:"line"},null,-1)),Te(()=>e.createElementVNode("span",{class:"line"},null,-1)),Te(()=>e.createElementVNode("span",{class:"line"},null,-1))],Ln=e.defineComponent({__name:"SidebarToggle",props:{active:{type:Boolean,default:!1}},emits:["toggle"],setup(r,{emit:n}){const a=r,o=e.ref(a.active||!1),l=()=>{o.value=!o.value,n("toggle",o.value)};return e.watch(()=>a.active,f=>{o.value=f}),(f,c)=>(e.openBlock(),e.createElementBlock("a",{"aria-haspopup":"true","aria-label":o.value?"Close Main Menu":"Open Main Menu",class:e.normalizeClass(["sidebar-menu-toggle",{active:o.value}]),href:"#",role:"button",onClick:e.withModifiers(l,["prevent"])},Vn,10,Dn))}}),Vr="",tt=U(Ln,[["__scopeId","data-v-33b3f7c3"]]),Rn=r=>(e.pushScopeId("data-v-37316186"),r=r(),e.popScopeId(),r),Mn={id:"kong-ui-app-layout-notification"},Pn={class:"mobile-logo"},Zn={key:0,class:"navbar-logo"},jn={class:"kong-ui-app-layout-main","data-testid":"kong-ui-app-layout-main"},Hn={class:"kong-ui-app-layout-content"},Kn={class:"kong-ui-app-layout-content-inner"},zn=Rn(()=>e.createElementVNode("div",{id:"kong-ui-app-layout-teleport-default-slot"},null,-1)),Un=e.defineComponent({__name:"AppLayout",props:{hideDefaultSlot:{type:Boolean,default:!1},navbarHidden:{type:Boolean,default:!1},sidebarHidden:{type:Boolean,default:!1},sidebarOpen:{type:Boolean,default:!1},sidebarTopItems:{type:Array,default:()=>[]},sidebarBottomItems:{type:Array,default:()=>[]}},emits:["sidebar-click"],setup(r,{emit:n}){const a=r;e.useCssVars(y=>({"06ca369a":e.unref(F),"7d4a09e6":e.unref(M)}));const o=e.useSlots(),l=e.reactive({navbarLeft:e.computed(()=>!!o["navbar-left"]),navbarCenter:e.computed(()=>!!o["navbar-center"]),navbarRight:e.computed(()=>!!o["navbar-right"]),navbarLogo:e.computed(()=>!!o["navbar-logo"]),navbarMobileLogo:e.computed(()=>!!o["navbar-mobile-logo"]),sidebarHeader:e.computed(()=>!!o["sidebar-header"]),sidebarTop:e.computed(()=>!!o["sidebar-top"]),sidebarFooter:e.computed(()=>!!o["sidebar-footer"])}),f=e.computed(()=>a.hideDefaultSlot),c=e.reactive({hidden:e.computed(()=>a.navbarHidden)}),b=e.reactive({topItems:e.computed(()=>a.sidebarTopItems),bottomItems:e.computed(()=>a.sidebarBottomItems),open:e.computed(()=>a.sidebarOpen),hidden:e.computed(()=>a.sidebarHidden)}),g=y=>{n("sidebar-click",y)},v=e.ref(!1),E=y=>{v.value=y};e.watchEffect(()=>{v.value=e.toRef(b,"open").value||!1});const T=e.ref(0),I=e.ref(60),w=e.ref(0),S=e.computed(()=>c.hidden?w.value:I.value+w.value),F=e.computed(()=>`${S.value}px`),M=e.computed(()=>b.hidden||c.hidden?"0":"16px"),{debounce:$}=Qe(),K=$((y=!1)=>{if(y||T.value!==(window==null?void 0:window.innerWidth)){T.value=window==null?void 0:window.innerWidth;const x=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");x&&(w.value=x.offsetHeight)}},200),P=e.ref();return e.onMounted(()=>{var x,j;(x=document==null?void 0:document.body)==null||x.classList.add("kong-ui-app-layout-body"),(j=document==null?void 0:document.documentElement)==null||j.classList.add("kong-ui-app-layout-html"),T.value=window==null?void 0:window.innerWidth,K(!0);const y=document==null?void 0:document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");y&&(P.value=new ResizeObserver(z=>{for(const V of z){const k=V.contentRect.height;w.value!==k&&(w.value=k)}}),P.value.observe(y)),window.addEventListener("resize",K)}),e.onBeforeUnmount(()=>{P.value&&P.value.disconnect(),window.removeEventListener("resize",K)}),(y,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-app-layout",[{"navbar-hidden":c.hidden},{"sidebar-hidden":b.hidden}]])},[e.createElementVNode("div",Mn,[e.renderSlot(y.$slots,"notification",{},void 0,!0)]),c.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me,{key:String(b.hidden),"left-offset":b.hidden?0:void 0,"top-offset":w.value},e.createSlots({"mobile-sidebar-toggle":e.withCtx(()=>[b.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(tt,{key:0,active:v.value,onToggle:E},null,8,["active"]))]),_:2},[l.navbarMobileLogo?{name:"mobile-logo",fn:e.withCtx(()=>[e.createElementVNode("div",Pn,[e.renderSlot(y.$slots,"navbar-mobile-logo",{},void 0,!0)])]),key:"0"}:void 0,l.navbarLogo?{name:"logo",fn:e.withCtx(()=>[b.hidden?(e.openBlock(),e.createElementBlock("div",Zn,[e.renderSlot(y.$slots,"navbar-logo",{},void 0,!0)])):e.createCommentVNode("",!0)]),key:"1"}:void 0,l.navbarLeft?{name:"left",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"navbar-left",{},void 0,!0)]),key:"2"}:void 0,l.navbarCenter?{name:"center",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"navbar-center",{},void 0,!0)]),key:"3"}:void 0,l.navbarRight?{name:"right",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"navbar-right",{},void 0,!0)]),key:"4"}:void 0]),1032,["left-offset","top-offset"])),b.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(et,{key:1,"bottom-items":b.bottomItems,"header-height":I.value,"mobile-enabled":"","mobile-header-visible":!1,"mobile-top-offset":e.unref(S),open:v.value,"top-items":b.topItems,"top-offset":w.value,onClick:g,onToggle:E},e.createSlots({_:2},[l.sidebarHeader?{name:"header",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"sidebar-header",{},void 0,!0)]),key:"0"}:void 0,l.sidebarTop?{name:"top",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"sidebar-top",{},void 0,!0)]),key:"1"}:void 0,l.sidebarFooter?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"sidebar-footer",{},void 0,!0)]),key:"2"}:void 0]),1032,["bottom-items","header-height","mobile-top-offset","open","top-items","top-offset"])),e.createElementVNode("main",jn,[e.createElementVNode("div",Hn,[e.createElementVNode("div",Kn,[zn,e.renderSlot(y.$slots,"app-error",{},void 0,!0),e.unref(f)?e.createCommentVNode("",!0):e.renderSlot(y.$slots,"default",{key:0},void 0,!0)])])])],2))}}),Lr="",Rr="",nt=U(Un,[["__scopeId","data-v-37316186"]]),Wn=e.defineComponent({__name:"AccountDropdown",props:{options:{type:Array,required:!0},width:{type:String,default:"240"},userInitials:{type:String,required:!0,default:" "}},setup(r){return(n,a)=>{const o=e.resolveComponent("KDropdownItem"),l=e.resolveComponent("KDropdownMenu");return e.openBlock(),e.createBlock(l,{class:"account-dropdown","kpop-attributes":{placement:"bottomStart"},label:r.userInitials,size:"small",width:r.width},{items:e.withCtx(({handleSelection:f})=>[e.renderSlot(n.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,c=>(e.openBlock(),e.createBlock(o,{key:c.value,class:e.normalizeClass({"has-divider":c.hasDivider}),"data-testid":"select-"+c.value,"has-divider":c.hasDivider,onClick:b=>f(c)},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{option:c},()=>[e.createTextVNode(e.toDisplayString(c.label),1)],!0)]),_:2},1032,["class","data-testid","has-divider","onClick"]))),128))],!0)]),_:3},8,["label","width"])}}}),Mr="",Gn=U(Wn,[["__scopeId","data-v-6e34d3da"]]),qn={},Yn={fill:"none",height:"130",width:"130",xmlns:"http://www.w3.org/2000/svg"},Xn=[e.createStaticVNode('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>',5)];function Jn(r,n){return e.openBlock(),e.createElementBlock("svg",Yn,Xn)}const Qn=U(qn,[["render",Jn]]),at=r=>(e.pushScopeId("data-v-ff05f71e"),r=r(),e.popScopeId(),r),ea={class:"kong-ui-app-error"},ta={class:"banana-icon"},na={class:"kong-ui-app-error-content"},aa=at(()=>e.createElementVNode("h2",null,"An unexpected error has occurred",-1)),ra=at(()=>e.createElementVNode("p",null,[e.createTextVNode("Go back to the previous page or "),e.createElementVNode("a",{href:"/"},"return home"),e.createTextVNode(".")],-1)),oa=e.defineComponent({__name:"AppError",setup(r){return(n,a)=>(e.openBlock(),e.createElementBlock("section",ea,[e.createElementVNode("div",ta,[e.createVNode(Qn)]),e.createElementVNode("div",na,[e.renderSlot(n.$slots,"default",{},()=>[aa,ra],!0)])]))}}),Zr="",jr="",ia=U(oa,[["__scopeId","data-v-ff05f71e"]]),ca={install:(r,n={})=>{r.component(n.name||"AppLayout",nt)}};R.AccountDropdown=Gn,R.AppError=ia,R.AppLayout=nt,R.AppNavbar=Me,R.AppSidebar=et,R.SidebarToggle=tt,R.default=ca,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
12
12
|
//# sourceMappingURL=app-layout.umd.js.map
|