import{A as e,D as t,F as n,G as r,K as i,M as a,St as o,T as s,Tt as c,W as l,Y as u,_ as d,a as f,et as p,f as m,m as h,nt as g,pt as _,q as v,tt as y,v as b,vt as x,wt as S,x as C,xt as w,y as T}from"./vue.runtime.esm-bundler-gHHLlCcd.js";import{F as E,M as D,N as O,V as k,a as A,c as j,d as M,f as N,h as P,i as ee,l as F,m as I,n as L,o as R,p as te,r as z,s as ne,u as re,x as ie}from"./router-DQn-Rzfv.js";import{C as B,S as V,W as H,x as U}from"./backend-BIDAMQu4.js";import{Ct as W,S as ae,Tt as oe,an as G,en as K,in as q,it as se,pt as J,rn as Y,rt as ce,t as le,tn as X,v as ue,w as de,yt as fe}from"./_plugin-vue_export-helper-BgFcNt9i.js";import{d as pe,p as me}from"./Select-i-D3cQiB.js";import{p as he}from"./Input-CzZwXnLY.js";import{t as ge}from"./use-compitable-1-huPEAU.js";import{t as _e}from"./Tooltip-AUgbrayK.js";import{a as ve}from"./vue-router-CiIU20Mf.js";import{o as ye,r as be}from"./index-BBxzgjes.js";var xe=t({name:`ChevronDownFilled`,render(){return e(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z`,fill:`currentColor`}))}}),Se=W(`n-layout-sider`),Z=W(`n-menu`),Ce=W(`n-submenu`),we=W(`n-menu-item-group`),Te=[K(`&::before`,`background-color: var(--n-item-color-hover);`),Y(`arrow`,`
 color: var(--n-arrow-color-hover);
 `),Y(`icon`,`
 color: var(--n-item-icon-color-hover);
 `),X(`menu-item-content-header`,`
 color: var(--n-item-text-color-hover);
 `,[K(`a`,`
 color: var(--n-item-text-color-hover);
 `),Y(`extra`,`
 color: var(--n-item-text-color-hover);
 `)])],Ee=[Y(`icon`,`
 color: var(--n-item-icon-color-hover-horizontal);
 `),X(`menu-item-content-header`,`
 color: var(--n-item-text-color-hover-horizontal);
 `,[K(`a`,`
 color: var(--n-item-text-color-hover-horizontal);
 `),Y(`extra`,`
 color: var(--n-item-text-color-hover-horizontal);
 `)])],De=K([X(`menu`,`
 background-color: var(--n-color);
 color: var(--n-item-text-color);
 overflow: hidden;
 transition: background-color .3s var(--n-bezier);
 box-sizing: border-box;
 font-size: var(--n-font-size);
 padding-bottom: 6px;
 `,[q(`horizontal`,`
 max-width: 100%;
 width: 100%;
 display: flex;
 overflow: hidden;
 padding-bottom: 0;
 `,[X(`submenu`,`margin: 0;`),X(`menu-item`,`margin: 0;`),X(`menu-item-content`,`
 padding: 0 20px;
 border-bottom: 2px solid #0000;
 `,[K(`&::before`,`display: none;`),q(`selected`,`border-bottom: 2px solid var(--n-border-color-horizontal)`)]),X(`menu-item-content`,[q(`selected`,[Y(`icon`,`color: var(--n-item-icon-color-active-horizontal);`),X(`menu-item-content-header`,`
 color: var(--n-item-text-color-active-horizontal);
 `,[K(`a`,`color: var(--n-item-text-color-active-horizontal);`),Y(`extra`,`color: var(--n-item-text-color-active-horizontal);`)])]),q(`child-active`,`
 border-bottom: 2px solid var(--n-border-color-horizontal);
 `,[X(`menu-item-content-header`,`
 color: var(--n-item-text-color-child-active-horizontal);
 `,[K(`a`,`
 color: var(--n-item-text-color-child-active-horizontal);
 `),Y(`extra`,`
 color: var(--n-item-text-color-child-active-horizontal);
 `)]),Y(`icon`,`
 color: var(--n-item-icon-color-child-active-horizontal);
 `)]),G(`disabled`,[G(`selected, child-active`,[K(`&:focus-within`,Ee)]),q(`selected`,[Q(null,[Y(`icon`,`color: var(--n-item-icon-color-active-hover-horizontal);`),X(`menu-item-content-header`,`
 color: var(--n-item-text-color-active-hover-horizontal);
 `,[K(`a`,`color: var(--n-item-text-color-active-hover-horizontal);`),Y(`extra`,`color: var(--n-item-text-color-active-hover-horizontal);`)])])]),q(`child-active`,[Q(null,[Y(`icon`,`color: var(--n-item-icon-color-child-active-hover-horizontal);`),X(`menu-item-content-header`,`
 color: var(--n-item-text-color-child-active-hover-horizontal);
 `,[K(`a`,`color: var(--n-item-text-color-child-active-hover-horizontal);`),Y(`extra`,`color: var(--n-item-text-color-child-active-hover-horizontal);`)])])]),Q(`border-bottom: 2px solid var(--n-border-color-horizontal);`,Ee)]),X(`menu-item-content-header`,[K(`a`,`color: var(--n-item-text-color-horizontal);`)])])]),G(`responsive`,[X(`menu-item-content-header`,`
 overflow: hidden;
 text-overflow: ellipsis;
 `)]),q(`collapsed`,[X(`menu-item-content`,[q(`selected`,[K(`&::before`,`
 background-color: var(--n-item-color-active-collapsed) !important;
 `)]),X(`menu-item-content-header`,`opacity: 0;`),Y(`arrow`,`opacity: 0;`),Y(`icon`,`color: var(--n-item-icon-color-collapsed);`)])]),X(`menu-item`,`
 height: var(--n-item-height);
 margin-top: 6px;
 position: relative;
 `),X(`menu-item-content`,`
 box-sizing: border-box;
 line-height: 1.75;
 height: 100%;
 display: grid;
 grid-template-areas: "icon content arrow";
 grid-template-columns: auto 1fr auto;
 align-items: center;
 cursor: pointer;
 position: relative;
 padding-right: 18px;
 transition:
 background-color .3s var(--n-bezier),
 padding-left .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 `,[K(`> *`,`z-index: 1;`),K(`&::before`,`
 z-index: auto;
 content: "";
 background-color: #0000;
 position: absolute;
 left: 8px;
 right: 8px;
 top: 0;
 bottom: 0;
 pointer-events: none;
 border-radius: var(--n-border-radius);
 transition: background-color .3s var(--n-bezier);
 `),q(`disabled`,`
 opacity: .45;
 cursor: not-allowed;
 `),q(`collapsed`,[Y(`arrow`,`transform: rotate(0);`)]),q(`selected`,[K(`&::before`,`background-color: var(--n-item-color-active);`),Y(`arrow`,`color: var(--n-arrow-color-active);`),Y(`icon`,`color: var(--n-item-icon-color-active);`),X(`menu-item-content-header`,`
 color: var(--n-item-text-color-active);
 `,[K(`a`,`color: var(--n-item-text-color-active);`),Y(`extra`,`color: var(--n-item-text-color-active);`)])]),q(`child-active`,[X(`menu-item-content-header`,`
 color: var(--n-item-text-color-child-active);
 `,[K(`a`,`
 color: var(--n-item-text-color-child-active);
 `),Y(`extra`,`
 color: var(--n-item-text-color-child-active);
 `)]),Y(`arrow`,`
 color: var(--n-arrow-color-child-active);
 `),Y(`icon`,`
 color: var(--n-item-icon-color-child-active);
 `)]),G(`disabled`,[G(`selected, child-active`,[K(`&:focus-within`,Te)]),q(`selected`,[Q(null,[Y(`arrow`,`color: var(--n-arrow-color-active-hover);`),Y(`icon`,`color: var(--n-item-icon-color-active-hover);`),X(`menu-item-content-header`,`
 color: var(--n-item-text-color-active-hover);
 `,[K(`a`,`color: var(--n-item-text-color-active-hover);`),Y(`extra`,`color: var(--n-item-text-color-active-hover);`)])])]),q(`child-active`,[Q(null,[Y(`arrow`,`color: var(--n-arrow-color-child-active-hover);`),Y(`icon`,`color: var(--n-item-icon-color-child-active-hover);`),X(`menu-item-content-header`,`
 color: var(--n-item-text-color-child-active-hover);
 `,[K(`a`,`color: var(--n-item-text-color-child-active-hover);`),Y(`extra`,`color: var(--n-item-text-color-child-active-hover);`)])])]),q(`selected`,[Q(null,[K(`&::before`,`background-color: var(--n-item-color-active-hover);`)])]),Q(null,Te)]),Y(`icon`,`
 grid-area: icon;
 color: var(--n-item-icon-color);
 transition:
 color .3s var(--n-bezier),
 font-size .3s var(--n-bezier),
 margin-right .3s var(--n-bezier);
 box-sizing: content-box;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 `),Y(`arrow`,`
 grid-area: arrow;
 font-size: 16px;
 color: var(--n-arrow-color);
 transform: rotate(180deg);
 opacity: 1;
 transition:
 color .3s var(--n-bezier),
 transform 0.2s var(--n-bezier),
 opacity 0.2s var(--n-bezier);
 `),X(`menu-item-content-header`,`
 grid-area: content;
 transition:
 color .3s var(--n-bezier),
 opacity .3s var(--n-bezier);
 opacity: 1;
 white-space: nowrap;
 color: var(--n-item-text-color);
 `,[K(`a`,`
 outline: none;
 text-decoration: none;
 transition: color .3s var(--n-bezier);
 color: var(--n-item-text-color);
 `,[K(`&::before`,`
 content: "";
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 `)]),Y(`extra`,`
 font-size: .93em;
 color: var(--n-group-text-color);
 transition: color .3s var(--n-bezier);
 `)])]),X(`submenu`,`
 cursor: pointer;
 position: relative;
 margin-top: 6px;
 `,[X(`menu-item-content`,`
 height: var(--n-item-height);
 `),X(`submenu-children`,`
 overflow: hidden;
 padding: 0;
 `,[ye({duration:`.2s`})])]),X(`menu-item-group`,[X(`menu-item-group-title`,`
 margin-top: 6px;
 color: var(--n-group-text-color);
 cursor: default;
 font-size: .93em;
 height: 36px;
 display: flex;
 align-items: center;
 transition:
 padding-left .3s var(--n-bezier),
 color .3s var(--n-bezier);
 `)])]),X(`menu-tooltip`,[K(`a`,`
 color: inherit;
 text-decoration: none;
 `)]),X(`menu-divider`,`
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-divider-color);
 height: 1px;
 margin: 6px 18px;
 `)]);function Q(e,t){return[q(`hover`,e,t),K(`&:hover`,e,t)]}var Oe=t({name:`MenuOptionContent`,props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){let{props:t}=a(Z);return{menuProps:t,style:d(()=>{let{paddingLeft:t}=e;return{paddingLeft:t&&`${t}px`}}),iconStyle:d(()=>{let{maxIconSize:t,activeIconSize:n,iconMarginRight:r}=e;return{width:`${t}px`,height:`${t}px`,fontSize:`${n}px`,marginRight:`${r}px`}})}},render(){let{clsPrefix:t,tmNode:n,menuProps:{renderIcon:r,renderLabel:i,renderExtra:a,expandIcon:o}}=this,s=r?r(n.rawNode):U(this.icon);return e(`div`,{onClick:e=>{var t;(t=this.onClick)==null||t.call(this,e)},role:`none`,class:[`${t}-menu-item-content`,{[`${t}-menu-item-content--selected`]:this.selected,[`${t}-menu-item-content--collapsed`]:this.collapsed,[`${t}-menu-item-content--child-active`]:this.childActive,[`${t}-menu-item-content--disabled`]:this.disabled,[`${t}-menu-item-content--hover`]:this.hover}],style:this.style},s&&e(`div`,{class:`${t}-menu-item-content__icon`,style:this.iconStyle,role:`none`},[s]),e(`div`,{class:`${t}-menu-item-content-header`,role:`none`},this.isEllipsisPlaceholder?this.title:i?i(n.rawNode):U(this.title),this.extra||a?e(`span`,{class:`${t}-menu-item-content-header__extra`},` `,a?a(n.rawNode):U(this.extra)):null),this.showArrow?e(ae,{ariaHidden:!0,class:`${t}-menu-item-content__arrow`,clsPrefix:t},{default:()=>o?o(n.rawNode):e(xe,null)}):null)}}),ke=8;function Ae(e){let t=a(Z),{props:n,mergedCollapsedRef:r}=t,i=a(Ce,null),o=a(we,null),s=d(()=>n.mode===`horizontal`),c=d(()=>s.value?n.dropdownPlacement:`tmNodes`in e?`right-start`:`right`),l=d(()=>Math.max(n.collapsedIconSize??n.iconSize,n.iconSize));return{dropdownPlacement:c,activeIconSize:d(()=>!s.value&&e.root&&r.value?n.collapsedIconSize??n.iconSize:n.iconSize),maxIconSize:l,paddingLeft:d(()=>{if(s.value)return;let{collapsedWidth:t,indent:a,rootIndent:c}=n,{root:u,isGroup:d}=e,f=c===void 0?a:c;return u?r.value?t/2-l.value/2:f:o&&typeof o.paddingLeftRef.value==`number`?a/2+o.paddingLeftRef.value:i&&typeof i.paddingLeftRef.value==`number`?(d?a/2:a)+i.paddingLeftRef.value:0}),iconMarginRight:d(()=>{let{collapsedWidth:t,indent:i,rootIndent:a}=n,{value:o}=l,{root:c}=e;return s.value||!c||!r.value?ke:(a===void 0?i:a)+o+ke-(t+o)/2}),NMenu:t,NSubmenu:i,NMenuOptionGroup:o}}var je={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Me=t({name:`MenuDivider`,setup(){let{mergedClsPrefixRef:t,isHorizontalRef:n}=a(Z);return()=>n.value?null:e(`div`,{class:`${t.value}-menu-divider`})}}),Ne=Object.assign(Object.assign({},je),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),Pe=V(Ne),Fe=t({name:`MenuOption`,props:Ne,setup(e){let t=Ae(e),{NSubmenu:n,NMenu:r,NMenuOptionGroup:i}=t,{props:a,mergedClsPrefixRef:o,mergedCollapsedRef:s}=r,c=n?n.mergedDisabledRef:i?i.mergedDisabledRef:{value:!1},l=d(()=>c.value||e.disabled);function u(t){let{onClick:n}=e;n&&n(t)}function f(t){l.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),u(t))}return{mergedClsPrefix:o,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:a,dropdownEnabled:oe(()=>e.root&&s.value&&a.mode!==`horizontal`&&!l.value),selected:oe(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:f}},render(){let{mergedClsPrefix:t,mergedTheme:n,tmNode:r,menuProps:{renderLabel:i,nodeProps:a}}=this,o=a?.(r.rawNode);return e(`div`,Object.assign({},o,{role:`menuitem`,class:[`${t}-menu-item`,o?.class]}),e(_e,{theme:n.peers.Tooltip,themeOverrides:n.peerOverrides.Tooltip,trigger:`hover`,placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:[`menu-tooltip`]},{default:()=>i?i(r.rawNode):U(this.title),trigger:()=>e(Oe,{tmNode:r,clsPrefix:t,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),Ie=Object.assign(Object.assign({},je),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),Le=V(Ie),Re=t({name:`MenuOptionGroup`,props:Ie,setup(t){let n=Ae(t),{NSubmenu:i}=n,o=d(()=>i?.mergedDisabledRef.value?!0:t.tmNode.disabled);r(we,{paddingLeftRef:n.paddingLeft,mergedDisabledRef:o});let{mergedClsPrefixRef:s,props:c}=a(Z);return function(){let{value:r}=s,i=n.paddingLeft.value,{nodeProps:a}=c,o=a?.(t.tmNode.rawNode);return e(`div`,{class:`${r}-menu-item-group`,role:`group`},e(`div`,Object.assign({},o,{class:[`${r}-menu-item-group-title`,o?.class],style:[o?.style||``,i===void 0?``:`padding-left: ${i}px;`]}),U(t.title),t.extra?e(m,null,` `,U(t.extra)):null),e(`div`,null,t.tmNodes.map(e=>Ve(e,c))))}}});function ze(e){return e.type===`divider`||e.type===`render`}function Be(e){return e.type===`divider`}function Ve(t,n){let{rawNode:r}=t,{show:i}=r;if(i===!1)return null;if(ze(r))return Be(r)?e(Me,Object.assign({key:t.key},r.props)):null;let{labelField:a}=n,{key:o,level:s,isGroup:c}=t,l=Object.assign(Object.assign({},r),{title:r.title||r[a],extra:r.titleExtra||r.extra,key:o,internalKey:o,level:s,root:s===0,isGroup:c});return t.children?t.isGroup?e(Re,B(l,Le,{tmNode:t,tmNodes:t.children,key:o})):e(We,B(l,Ue,{key:o,rawNodes:r[n.childrenField],tmNodes:t.children,tmNode:t})):e(Fe,B(l,Pe,{key:o,tmNode:t}))}var He=Object.assign(Object.assign({},je),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),Ue=V(He),We=t({name:`Submenu`,props:He,setup(e){let t=Ae(e),{NMenu:n,NSubmenu:i}=t,{props:a,mergedCollapsedRef:o,mergedThemeRef:s}=n,c=d(()=>{let{disabled:t}=e;return i?.mergedDisabledRef.value||a.disabled?!0:t}),l=_(!1);r(Ce,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:c}),r(we,null);function u(){let{onClick:t}=e;t&&t()}function f(){c.value||(o.value||n.toggleExpand(e.internalKey),u())}function p(e){l.value=e}return{menuProps:a,mergedTheme:s,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:c,mergedValue:n.mergedValueRef,childActive:oe(()=>e.virtualChildActive??n.activePathRef.value.includes(e.internalKey)),collapsed:d(()=>a.mode===`horizontal`?!1:o.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:d(()=>!c.value&&(a.mode===`horizontal`||o.value)),handlePopoverShowChange:p,handleClick:f}},render(){let{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,i=()=>{let{isHorizontal:t,paddingLeft:n,collapsed:r,mergedDisabled:i,maxIconSize:a,activeIconSize:o,title:s,childActive:c,icon:l,handleClick:u,menuProps:{nodeProps:d},dropdownShow:f,iconMarginRight:p,tmNode:m,mergedClsPrefix:h,isEllipsisPlaceholder:g,extra:_}=this,v=d?.(m.rawNode);return e(`div`,Object.assign({},v,{class:[`${h}-menu-item`,v?.class],role:`menuitem`}),e(Oe,{tmNode:m,paddingLeft:n,collapsed:r,disabled:i,iconMarginRight:p,maxIconSize:a,activeIconSize:o,title:s,extra:_,showArrow:!t,childActive:c,clsPrefix:h,icon:l,hover:f,onClick:u,isEllipsisPlaceholder:g}))},a=()=>e(ue,null,{default:()=>{let{tmNodes:n,collapsed:r}=this;return r?null:e(`div`,{class:`${t}-submenu-children`,role:`menu`},n.map(e=>Ve(e,this.menuProps)))}});return this.root?e(ie,Object.assign({size:`large`,trigger:`hover`},this.menuProps?.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:`14px`,optionIconSizeLarge:`18px`},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>e(`div`,{class:`${t}-submenu`,role:`menu`,"aria-expanded":!this.collapsed,id:this.domId},i(),this.isHorizontal?null:a())}):e(`div`,{class:`${t}-submenu`,role:`menu`,"aria-expanded":!this.collapsed,id:this.domId},i(),a())}}),$=t({name:`Menu`,inheritAttrs:!1,props:Object.assign(Object.assign({},de.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:`label`},keyField:{type:String,default:`key`},childrenField:{type:String,default:`children`},disabledField:{type:String,default:`disabled`},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:`vertical`},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:`bottom`},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),setup(t){let{mergedClsPrefixRef:n,inlineThemeDisabled:i}=se(t),o=de(`Menu`,`-menu`,De,be,t,n),s=a(Se,null),c=d(()=>{let{collapsed:e}=t;if(e!==void 0)return e;if(s){let{collapseModeRef:e,collapsedRef:t}=s;if(e.value===`width`)return t.value??!1}return!1}),l=d(()=>{let{keyField:e,childrenField:n,disabledField:r}=t;return pe(t.items||t.options,{getIgnored(e){return ze(e)},getChildren(e){return e[n]},getDisabled(e){return e[r]},getKey(t){return t[e]??t.name}})}),u=d(()=>new Set(l.value.treeNodes.map(e=>e.key))),{watchProps:f}=t,p=_(null);f?.includes(`defaultValue`)?y(()=>{p.value=t.defaultValue}):p.value=t.defaultValue;let m=he(x(t,`value`),p),h=_([]),g=()=>{h.value=t.defaultExpandAll?l.value.getNonLeafKeys():t.defaultExpandedNames||t.defaultExpandedKeys||l.value.getPath(m.value,{includeSelf:!1}).keyPath};f?.includes(`defaultExpandedKeys`)?y(g):g();let v=ge(t,[`expandedNames`,`expandedKeys`]),b=he(v,h),S=d(()=>l.value.treeNodes),C=d(()=>l.value.getPath(m.value).keyPath);r(Z,{props:t,mergedCollapsedRef:c,mergedThemeRef:o,mergedValueRef:m,mergedExpandedKeysRef:b,activePathRef:C,mergedClsPrefixRef:n,isHorizontalRef:d(()=>t.mode===`horizontal`),invertedRef:x(t,`inverted`),doSelect:w,toggleExpand:E});function w(e,n){let{"onUpdate:value":r,onUpdateValue:i,onSelect:a}=t;i&&J(i,e,n),r&&J(r,e,n),a&&J(a,e,n),p.value=e}function T(e){let{"onUpdate:expandedKeys":n,onUpdateExpandedKeys:r,onExpandedNamesChange:i,onOpenNamesChange:a}=t;n&&J(n,e),r&&J(r,e),i&&J(i,e),a&&J(a,e),h.value=e}function E(e){let n=Array.from(b.value),r=n.findIndex(t=>t===e);if(~r)n.splice(r,1);else{if(t.accordion&&u.value.has(e)){let e=n.findIndex(e=>u.value.has(e));e>-1&&n.splice(e,1)}n.push(e)}T(n)}let D=e=>{let n=l.value.getPath(e??m.value,{includeSelf:!1}).keyPath;if(!n.length)return;let r=Array.from(b.value),i=new Set([...r,...n]);t.accordion&&u.value.forEach(e=>{i.has(e)&&!n.includes(e)&&i.delete(e)}),T(Array.from(i))},O=d(()=>{let{inverted:e}=t,{common:{cubicBezierEaseInOut:n},self:r}=o.value,{borderRadius:i,borderColorHorizontal:a,fontSize:s,itemHeight:c,dividerColor:l}=r,u={"--n-divider-color":l,"--n-bezier":n,"--n-font-size":s,"--n-border-color-horizontal":a,"--n-border-radius":i,"--n-item-height":c};return e?(u[`--n-group-text-color`]=r.groupTextColorInverted,u[`--n-color`]=r.colorInverted,u[`--n-item-text-color`]=r.itemTextColorInverted,u[`--n-item-text-color-hover`]=r.itemTextColorHoverInverted,u[`--n-item-text-color-active`]=r.itemTextColorActiveInverted,u[`--n-item-text-color-child-active`]=r.itemTextColorChildActiveInverted,u[`--n-item-text-color-child-active-hover`]=r.itemTextColorChildActiveInverted,u[`--n-item-text-color-active-hover`]=r.itemTextColorActiveHoverInverted,u[`--n-item-icon-color`]=r.itemIconColorInverted,u[`--n-item-icon-color-hover`]=r.itemIconColorHoverInverted,u[`--n-item-icon-color-active`]=r.itemIconColorActiveInverted,u[`--n-item-icon-color-active-hover`]=r.itemIconColorActiveHoverInverted,u[`--n-item-icon-color-child-active`]=r.itemIconColorChildActiveInverted,u[`--n-item-icon-color-child-active-hover`]=r.itemIconColorChildActiveHoverInverted,u[`--n-item-icon-color-collapsed`]=r.itemIconColorCollapsedInverted,u[`--n-item-text-color-horizontal`]=r.itemTextColorHorizontalInverted,u[`--n-item-text-color-hover-horizontal`]=r.itemTextColorHoverHorizontalInverted,u[`--n-item-text-color-active-horizontal`]=r.itemTextColorActiveHorizontalInverted,u[`--n-item-text-color-child-active-horizontal`]=r.itemTextColorChildActiveHorizontalInverted,u[`--n-item-text-color-child-active-hover-horizontal`]=r.itemTextColorChildActiveHoverHorizontalInverted,u[`--n-item-text-color-active-hover-horizontal`]=r.itemTextColorActiveHoverHorizontalInverted,u[`--n-item-icon-color-horizontal`]=r.itemIconColorHorizontalInverted,u[`--n-item-icon-color-hover-horizontal`]=r.itemIconColorHoverHorizontalInverted,u[`--n-item-icon-color-active-horizontal`]=r.itemIconColorActiveHorizontalInverted,u[`--n-item-icon-color-active-hover-horizontal`]=r.itemIconColorActiveHoverHorizontalInverted,u[`--n-item-icon-color-child-active-horizontal`]=r.itemIconColorChildActiveHorizontalInverted,u[`--n-item-icon-color-child-active-hover-horizontal`]=r.itemIconColorChildActiveHoverHorizontalInverted,u[`--n-arrow-color`]=r.arrowColorInverted,u[`--n-arrow-color-hover`]=r.arrowColorHoverInverted,u[`--n-arrow-color-active`]=r.arrowColorActiveInverted,u[`--n-arrow-color-active-hover`]=r.arrowColorActiveHoverInverted,u[`--n-arrow-color-child-active`]=r.arrowColorChildActiveInverted,u[`--n-arrow-color-child-active-hover`]=r.arrowColorChildActiveHoverInverted,u[`--n-item-color-hover`]=r.itemColorHoverInverted,u[`--n-item-color-active`]=r.itemColorActiveInverted,u[`--n-item-color-active-hover`]=r.itemColorActiveHoverInverted,u[`--n-item-color-active-collapsed`]=r.itemColorActiveCollapsedInverted):(u[`--n-group-text-color`]=r.groupTextColor,u[`--n-color`]=r.color,u[`--n-item-text-color`]=r.itemTextColor,u[`--n-item-text-color-hover`]=r.itemTextColorHover,u[`--n-item-text-color-active`]=r.itemTextColorActive,u[`--n-item-text-color-child-active`]=r.itemTextColorChildActive,u[`--n-item-text-color-child-active-hover`]=r.itemTextColorChildActiveHover,u[`--n-item-text-color-active-hover`]=r.itemTextColorActiveHover,u[`--n-item-icon-color`]=r.itemIconColor,u[`--n-item-icon-color-hover`]=r.itemIconColorHover,u[`--n-item-icon-color-active`]=r.itemIconColorActive,u[`--n-item-icon-color-active-hover`]=r.itemIconColorActiveHover,u[`--n-item-icon-color-child-active`]=r.itemIconColorChildActive,u[`--n-item-icon-color-child-active-hover`]=r.itemIconColorChildActiveHover,u[`--n-item-icon-color-collapsed`]=r.itemIconColorCollapsed,u[`--n-item-text-color-horizontal`]=r.itemTextColorHorizontal,u[`--n-item-text-color-hover-horizontal`]=r.itemTextColorHoverHorizontal,u[`--n-item-text-color-active-horizontal`]=r.itemTextColorActiveHorizontal,u[`--n-item-text-color-child-active-horizontal`]=r.itemTextColorChildActiveHorizontal,u[`--n-item-text-color-child-active-hover-horizontal`]=r.itemTextColorChildActiveHoverHorizontal,u[`--n-item-text-color-active-hover-horizontal`]=r.itemTextColorActiveHoverHorizontal,u[`--n-item-icon-color-horizontal`]=r.itemIconColorHorizontal,u[`--n-item-icon-color-hover-horizontal`]=r.itemIconColorHoverHorizontal,u[`--n-item-icon-color-active-horizontal`]=r.itemIconColorActiveHorizontal,u[`--n-item-icon-color-active-hover-horizontal`]=r.itemIconColorActiveHoverHorizontal,u[`--n-item-icon-color-child-active-horizontal`]=r.itemIconColorChildActiveHorizontal,u[`--n-item-icon-color-child-active-hover-horizontal`]=r.itemIconColorChildActiveHoverHorizontal,u[`--n-arrow-color`]=r.arrowColor,u[`--n-arrow-color-hover`]=r.arrowColorHover,u[`--n-arrow-color-active`]=r.arrowColorActive,u[`--n-arrow-color-active-hover`]=r.arrowColorActiveHover,u[`--n-arrow-color-child-active`]=r.arrowColorChildActive,u[`--n-arrow-color-child-active-hover`]=r.arrowColorChildActiveHover,u[`--n-item-color-hover`]=r.itemColorHover,u[`--n-item-color-active`]=r.itemColorActive,u[`--n-item-color-active-hover`]=r.itemColorActiveHover,u[`--n-item-color-active-collapsed`]=r.itemColorActiveCollapsed),u}),k=i?ce(`menu`,d(()=>t.inverted?`a`:`b`),O,t):void 0,A=H(),j=_(null),M=_(null),N=!0,P=()=>{var e;N?N=!1:(e=j.value)==null||e.sync({showAllItemsBeforeCalculate:!0})};function ee(){return document.getElementById(A)}let F=_(-1);function I(e){F.value=t.options.length-e}function L(e){e||(F.value=-1)}let R=d(()=>{let e=F.value;return{children:e===-1?[]:t.options.slice(e)}}),te=d(()=>{let{childrenField:e,disabledField:n,keyField:r}=t;return pe([R.value],{getIgnored(e){return ze(e)},getChildren(t){return t[e]},getDisabled(e){return e[n]},getKey(e){return e[r]??e.name}})}),z=d(()=>pe([{}]).treeNodes[0]);function ne(){if(F.value===-1)return e(We,{root:!0,level:0,key:`__ellpisisGroupPlaceholder__`,internalKey:`__ellpisisGroupPlaceholder__`,title:`···`,tmNode:z.value,domId:A,isEllipsisPlaceholder:!0});let t=te.value.treeNodes[0],n=C.value;return e(We,{level:0,root:!0,key:`__ellpisisGroup__`,internalKey:`__ellpisisGroup__`,title:`···`,virtualChildActive:!!t.children?.some(e=>n.includes(e.key)),tmNode:t,domId:A,rawNodes:t.rawNode.children||[],tmNodes:t.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:n,controlledExpandedKeys:v,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:p,mergedValue:m,activePath:C,tmNodes:S,mergedTheme:o,mergedCollapsed:c,cssVars:i?void 0:O,themeClass:k?.themeClass,overflowRef:j,counterRef:M,updateCounter:()=>{},onResize:P,onUpdateOverflow:L,onUpdateCount:I,renderCounter:ne,getCounter:ee,onRender:k?.onRender,showOption:D,deriveResponsiveState:P}},render(){let{mergedClsPrefix:t,mode:r,themeClass:i,onRender:a}=this;a?.();let o=()=>this.tmNodes.map(e=>Ve(e,this.$props)),s=r===`horizontal`&&this.responsive,c=()=>e(`div`,n(this.$attrs,{role:r===`horizontal`?`menubar`:`menu`,class:[`${t}-menu`,i,`${t}-menu--${r}`,s&&`${t}-menu--responsive`,this.mergedCollapsed&&`${t}-menu--collapsed`],style:this.cssVars}),s?e(me,{ref:`overflowRef`,onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:`100%`,display:`flex`,overflow:`hidden`}},{default:o,counter:this.renderCounter}):o());return s?e(fe,{onResize:this.onResize},{default:c}):c()}}),Ge=le(t({name:`VerticalMenu`,__name:`vertical-menu`,setup(e){let t=ve(),n=j(),r=M(),i=F(),{routerPushByKeyWithMetaQuery:a}=N(),{selectedKey:o}=L(),c=d(()=>!r.darkMode&&r.sider.inverted),u=_([]);function f(){if(n.siderCollapse||!o.value){u.value=[];return}u.value=i.getSelectedMenuKeyPath(o.value)}return p(()=>t.name,()=>{f()},{immediate:!0}),(e,t)=>{let d=$;return l(),T(h,{to:`#${w(O)}`},[s(w(P),null,{default:g(()=>[s(d,{"expanded-keys":u.value,"onUpdate:expandedKeys":t[0]||=e=>u.value=e,mode:`vertical`,value:w(o),collapsed:w(n).siderCollapse,"collapsed-width":w(r).sider.collapsedWidth,"collapsed-icon-size":22,options:w(i).menus,inverted:c.value,indent:18,"onUpdate:value":w(a)},null,8,[`expanded-keys`,`value`,`collapsed`,`collapsed-width`,`options`,`inverted`,`onUpdate:value`])]),_:1})],8,[`to`])}}}),[[`__scopeId`,`data-v-bd2cec4a`]]),Ke=t({name:`PinToggler`,__name:`pin-toggler`,props:{pin:{type:Boolean}},setup(e){let t=e,n=d(()=>t.pin?`mdi-pin-off`:`mdi-pin`);return(t,r)=>{let i=re,a=R;return l(),T(a,{"tooltip-content":e.pin?w(E)(`icon.unpin`):w(E)(`icon.pin`),"tooltip-placement":`bottom-start`,"z-index":100},{default:g(()=>[s(i,{icon:n.value},null,8,[`icon`])]),_:1},8,[`tooltip-content`])}}}),qe={class:`h-full flex-col-stretch flex-1-hidden`},Je=le(t({name:`FirstLevelMenu`,__name:`first-level-menu`,props:{menus:{},activeMenuKey:{},inverted:{type:Boolean},siderCollapse:{type:Boolean},darkMode:{type:Boolean},themeColor:{}},emits:[`select`,`toggleSiderCollapse`],setup(e,{emit:t}){f(e=>({v2d6bb3e4:h.value}));let n=e,r=t,[a,p]=I(),h=d(()=>{let{darkMode:e,themeColor:t}=n,r=k(t,.1,`#ffffff`),i=k(t,.3,`#000000`);return e?i:r});function _(e){r(`select`,e)}function y(){r(`toggleSiderCollapse`)}return(t,n)=>{let r=A;return l(),C(m,null,[s(w(a),null,{default:g(({label:t,icon:n,active:r,isMini:i})=>[b(`div`,{class:o([`mx-4px mb-6px flex-col-center cursor-pointer rounded-8px bg-transparent px-4px py-8px transition-300 hover:bg-[rgb(0,0,0,0.08)]`,{"text-primary selected-mix-menu":r,"text-white:65 hover:text-white":e.inverted,"!text-white !bg-primary":r&&e.inverted}])},[(l(),T(u(n),{class:o([i?`text-icon-small`:`text-icon-large`])},null,8,[`class`])),b(`p`,{class:o([`w-full ellipsis-text text-center text-12px transition-height-300`,[i?`h-0 pt-0`:`h-20px pt-4px`]])},c(t),3)],2)]),_:1}),b(`div`,qe,[v(t.$slots,`default`,{},void 0,!0),s(w(P),null,{default:g(()=>[(l(!0),C(m,null,i(e.menus,t=>(l(),T(w(p),{key:t.key,label:t.label,icon:t.icon,active:t.key===e.activeMenuKey,"is-mini":e.siderCollapse,onClick:e=>_(t.routeKey)},null,8,[`label`,`icon`,`active`,`is-mini`,`onClick`]))),128))]),_:1}),s(r,{"arrow-icon":``,collapsed:e.siderCollapse,"z-index":99,class:o({"text-white:88 !hover:text-white":e.inverted}),onClick:y},null,8,[`collapsed`,`class`])])],64)}}}),[[`__scopeId`,`data-v-a8a0bb81`]]),Ye={class:`text-16px text-primary font-bold`},Xe=t({name:`VerticalMixMenu`,__name:`vertical-mix-menu`,setup(e){let t=ve(),n=j(),r=M(),i=F(),{routerPushByKeyWithMetaQuery:a}=N(),{bool:u,setBool:f}=te(),{firstLevelMenus:m,secondLevelMenus:v,activeFirstLevelMenuKey:y,isActiveFirstLevelMenuHasChildren:x,getActiveFirstLevelMenuKey:C,handleSelectFirstLevelMenu:D}=z(`VerticalMixMenu`),{selectedKey:k}=L(),A=d(()=>!r.darkMode&&r.sider.inverted),I=d(()=>v.value.length>0),R=d(()=>I.value&&(u.value||n.mixSiderFixed));function re(e){D(e),x.value&&f(!0)}function ie(){f(!1),n.mixSiderFixed||C()}let B=_([]);function V(){if(n.siderCollapse||!k.value){B.value=[];return}B.value=i.getSelectedMenuKeyPath(k.value)}return p(()=>t.name,()=>{V()},{immediate:!0}),(e,t)=>{let i=Ke,u=$,d=ne;return l(),T(h,{to:`#${w(O)}`},[b(`div`,{class:`h-full flex`,onMouseleave:ie},[s(Je,{menus:w(m),"active-menu-key":w(y),inverted:A.value,"sider-collapse":w(n).siderCollapse,"dark-mode":w(r).darkMode,"theme-color":w(r).themeColor,onSelect:re,onToggleSiderCollapse:w(n).toggleSiderCollapse},{default:g(()=>[s(ee,{"show-title":!1,style:S({height:w(r).header.height+`px`})},null,8,[`style`])]),_:1},8,[`menus`,`active-menu-key`,`inverted`,`sider-collapse`,`dark-mode`,`theme-color`,`onToggleSiderCollapse`]),b(`div`,{class:`relative h-full transition-width-300`,style:S({width:w(n).mixSiderFixed&&I.value?w(r).sider.mixChildMenuWidth+`px`:`0px`})},[s(d,{class:`absolute-lt h-full flex-col-stretch nowrap-hidden shadow-sm transition-all-300`,inverted:A.value,style:S({width:R.value?w(r).sider.mixChildMenuWidth+`px`:`0px`})},{default:g(()=>[b(`header`,{class:`flex-y-center justify-between px-12px`,style:S({height:w(r).header.height+`px`})},[b(`h2`,Ye,c(w(E)(`system.title`)),1),s(i,{pin:w(n).mixSiderFixed,class:o({"text-white:88 !hover:text-white":A.value}),onClick:w(n).toggleMixSiderFixed},null,8,[`pin`,`class`,`onClick`])],4),s(w(P),null,{default:g(()=>[s(u,{"expanded-keys":B.value,"onUpdate:expandedKeys":t[0]||=e=>B.value=e,mode:`vertical`,value:w(k),options:w(v),inverted:A.value,indent:18,"onUpdate:value":w(a)},null,8,[`expanded-keys`,`value`,`options`,`inverted`,`onUpdate:value`])]),_:1})]),_:1},8,[`inverted`,`style`])],4)],32)],8,[`to`])}}}),Ze={class:`text-16px text-primary font-bold`},Qe=t({name:`VerticalHybridHeaderFirst`,__name:`vertical-hybrid-header-first`,setup(e){let t=ve(),n=j(),r=M(),i=F(),{routerPushByKeyWithMetaQuery:a}=N(),{bool:u,setBool:f}=te(),{firstLevelMenus:v,activeFirstLevelMenuKey:y,handleSelectFirstLevelMenu:x,getActiveFirstLevelMenuKey:E,secondLevelMenus:k,activeSecondLevelMenuKey:A,isActiveSecondLevelMenuHasChildren:I,handleSelectSecondLevelMenu:R,getActiveSecondLevelMenuKey:re,childLevelMenus:ie,hasChildLevelMenus:B,activeDeepestLevelMenuKey:V}=z(`VerticalHybridHeaderFirst`),{selectedKey:H}=L(),U=d(()=>!r.darkMode&&r.sider.inverted),W=d(()=>B.value&&(u.value||n.mixSiderFixed));function ae(e){R(e),I.value&&f(!0)}function oe(e){if(x(e),k.value.length===0)return;let t=k.value[0].routeKey;if(!r.sider.autoSelectFirstMenu){k.value.find(e=>e.key===t)?.children?.length&&ae(t);return}V(),f(!1)}function G(){f(!1),n.mixSiderFixed||(E(),re())}let K=_([]);function q(){if(n.siderCollapse||!H.value){K.value=[];return}K.value=i.getSelectedMenuKeyPath(H.value)}return p(()=>t.name,()=>{q()},{immediate:!0}),(e,t)=>{let i=$,u=Ke,d=ne;return l(),C(m,null,[(l(),T(h,{to:`#${w(D)}`},[s(i,{mode:`horizontal`,value:w(y),options:w(v),indent:18,responsive:``,"onUpdate:value":oe},null,8,[`value`,`options`])],8,[`to`])),(l(),T(h,{to:`#${w(O)}`},[b(`div`,{class:`h-full flex`,onMouseleave:G},[s(Je,{menus:w(k),"active-menu-key":w(A),inverted:U.value,"sider-collapse":w(n).siderCollapse,"dark-mode":w(r).darkMode,"theme-color":w(r).themeColor,onSelect:ae,onToggleSiderCollapse:w(n).toggleSiderCollapse},{default:g(()=>[s(ee,{"show-title":!1,style:S({height:w(r).header.height+`px`})},null,8,[`style`])]),_:1},8,[`menus`,`active-menu-key`,`inverted`,`sider-collapse`,`dark-mode`,`theme-color`,`onToggleSiderCollapse`]),b(`div`,{class:`relative h-full transition-width-300`,style:S({width:w(n).mixSiderFixed&&w(B)?w(r).sider.mixChildMenuWidth+`px`:`0px`})},[s(d,{class:`absolute-lt h-full flex-col-stretch nowrap-hidden shadow-sm transition-all-300`,inverted:U.value,style:S({width:W.value?w(r).sider.mixChildMenuWidth+`px`:`0px`})},{default:g(()=>[b(`header`,{class:`flex-y-center justify-between px-12px`,style:S({height:w(r).header.height+`px`})},[b(`h2`,Ze,c(e.$t(`system.title`)),1),s(u,{pin:w(n).mixSiderFixed,class:o({"text-white:88 !hover:text-white":U.value}),onClick:w(n).toggleMixSiderFixed},null,8,[`pin`,`class`,`onClick`])],4),s(w(P),null,{default:g(()=>[s(i,{"expanded-keys":K.value,"onUpdate:expandedKeys":t[0]||=e=>K.value=e,mode:`vertical`,value:w(H),options:w(ie),inverted:U.value,indent:18,"onUpdate:value":w(a)},null,8,[`expanded-keys`,`value`,`options`,`inverted`,`onUpdate:value`])]),_:1})]),_:1},8,[`inverted`,`style`])],4)],32)],8,[`to`]))],64)}}}),$e=t({name:`HorizontalMenu`,__name:`horizontal-menu`,setup(e){let t=F(),{routerPushByKeyWithMetaQuery:n}=N(),{selectedKey:r}=L();return(e,i)=>{let a=$;return l(),T(h,{to:`#${w(D)}`},[s(a,{mode:`horizontal`,value:w(r),options:w(t).menus,indent:18,responsive:``,"onUpdate:value":w(n)},null,8,[`value`,`options`,`onUpdate:value`])],8,[`to`])}}}),et={class:`h-full pt-2`},tt=t({name:`TopHybridSidebarFirst`,__name:`top-hybrid-sidebar-first`,setup(e){let t=j(),n=M(),{routerPushByKeyWithMetaQuery:r}=N(),{firstLevelMenus:i,secondLevelMenus:a,activeFirstLevelMenuKey:o,handleSelectFirstLevelMenu:c,activeDeepestLevelMenuKey:u}=z(`TopHybridSidebarFirst`),{selectedKey:d}=L();function f(e){c(e),u()}return(e,c)=>{let u=$;return l(),C(m,null,[(l(),T(h,{to:`#${w(D)}`},[s(u,{mode:`horizontal`,value:w(d),options:w(a),indent:18,responsive:``,"onUpdate:value":w(r)},null,8,[`value`,`options`,`onUpdate:value`])],8,[`to`])),(l(),T(h,{to:`#${w(O)}`},[b(`div`,et,[s(Je,{menus:w(i),"active-menu-key":w(o),"sider-collapse":w(t).siderCollapse,"dark-mode":w(n).darkMode,"theme-color":w(n).themeColor,onSelect:f,onToggleSiderCollapse:w(t).toggleSiderCollapse},null,8,[`menus`,`active-menu-key`,`sider-collapse`,`dark-mode`,`theme-color`,`onToggleSiderCollapse`])])],8,[`to`]))],64)}}}),nt=t({name:`TopHybridHeaderFirst`,__name:`top-hybrid-header-first`,setup(e){let t=ve(),n=j(),r=M(),i=F(),{routerPushByKeyWithMetaQuery:a}=N(),{firstLevelMenus:o,secondLevelMenus:c,activeFirstLevelMenuKey:u,handleSelectFirstLevelMenu:d,activeDeepestLevelMenuKey:f}=z(`TopHybridHeaderFirst`),{selectedKey:v}=L(),y=_([]);function b(e){d(e),f()}function x(){if(n.siderCollapse||!v.value){y.value=[];return}y.value=i.getSelectedMenuKeyPath(v.value)}return p(()=>t.name,()=>{x()},{immediate:!0}),(e,t)=>{let i=$;return l(),C(m,null,[(l(),T(h,{to:`#${w(D)}`},[s(i,{mode:`horizontal`,value:w(u),options:w(o),indent:18,responsive:``,"onUpdate:value":b},null,8,[`value`,`options`])],8,[`to`])),(l(),T(h,{to:`#${w(O)}`},[s(w(P),null,{default:g(()=>[s(i,{"expanded-keys":y.value,"onUpdate:expandedKeys":t[0]||=e=>y.value=e,mode:`vertical`,value:w(v),collapsed:w(n).siderCollapse,"collapsed-width":w(r).sider.collapsedWidth,"collapsed-icon-size":22,options:w(c),indent:18,"onUpdate:value":w(a)},null,8,[`expanded-keys`,`value`,`collapsed`,`collapsed-width`,`options`,`onUpdate:value`])]),_:1})],8,[`to`]))],64)}}}),rt=t({name:`GlobalMenu`,__name:`index`,setup(e){let t=j(),n=M(),r=d(()=>({vertical:Ge,"vertical-mix":Xe,"vertical-hybrid-header-first":Qe,horizontal:$e,"top-hybrid-sidebar-first":tt,"top-hybrid-header-first":nt})[n.layout.mode]),i=d(()=>n.layout.mode===`vertical`&&t.isMobile);return(e,t)=>(l(),T(u(r.value),{key:i.value}))}});export{rt as default};