import{_ as I,u as T,o as V}from"./index-a6ee13d3.js";import{H as g,aP as w,_ as x,j as _,i as O,f as R,ah as l,o as s,O as c,P as n,c as C,F as k,a8 as W,V as u,a as d,U as f,u as $,aa as q,a3 as E}from"./@vue-6dabbe94.js";import{u as H,o as M}from"./vue-router-c1461dfc.js";import{s as U}from"./pinia-b6f74250.js";import"./vue-i18n-b3581196.js";import"./@intlify-ea47d1db.js";import"./source-map-7d7e1c08.js";import"./vue-b1ba6f14.js";import"./js-cookie-edb2da2a.js";import"./@element-plus-64e6e14a.js";import"./nprogress-08a53ce8.js";import"./axios-4a70c6fc.js";import"./qs-c5b6dbf2.js";import"./side-channel-394f276c.js";import"./get-intrinsic-bd2830fd.js";import"./has-symbols-e8f3ca0e.js";import"./has-proto-f7d0b240.js";import"./function-bind-22e7ee79.js";import"./has-26d28e02.js";import"./call-bind-e5c1c8b0.js";import"./object-inspect-8fd4bade.js";import"./element-plus-91d6d961.js";import"./lodash-es-9851428c.js";import"./@vueuse-e129c873.js";import"./@popperjs-c75af06c.js";import"./@ctrl-f8748455.js";import"./dayjs-f6fdf7b4.js";import"./async-validator-dee29e8b.js";import"./memoize-one-297ddbcb.js";import"./escape-html-b8998962.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-880a26aa.js";import"./mitt-f7ef348c.js";import"./vue-grid-layout-ec2a62c3.js";const j=g({name:"navMenuVertical"}),De=g({...j,props:{menuList:{type:Array,default:()=>[]}},setup(y){const L=y,A=w(()=>I(()=>import("./subItem-cdf0467d.js"),["assets/js/subItem-cdf0467d.js","assets/js/@vue-6dabbe94.js","assets/js/index-a6ee13d3.js","assets/js/pinia-b6f74250.js","assets/js/vue-router-c1461dfc.js","assets/js/vue-i18n-b3581196.js","assets/js/@intlify-ea47d1db.js","assets/js/source-map-7d7e1c08.js","assets/js/vue-b1ba6f14.js","assets/js/js-cookie-edb2da2a.js","assets/js/@element-plus-64e6e14a.js","assets/js/nprogress-08a53ce8.js","assets/css/nprogress-8b89e2e0.css","assets/js/axios-4a70c6fc.js","assets/js/qs-c5b6dbf2.js","assets/js/side-channel-394f276c.js","assets/js/get-intrinsic-bd2830fd.js","assets/js/has-symbols-e8f3ca0e.js","assets/js/has-proto-f7d0b240.js","assets/js/function-bind-22e7ee79.js","assets/js/has-26d28e02.js","assets/js/call-bind-e5c1c8b0.js","assets/js/object-inspect-8fd4bade.js","assets/js/element-plus-91d6d961.js","assets/js/lodash-es-9851428c.js","assets/js/@vueuse-e129c873.js","assets/js/@popperjs-c75af06c.js","assets/js/@ctrl-f8748455.js","assets/js/dayjs-f6fdf7b4.js","assets/js/async-validator-dee29e8b.js","assets/js/memoize-one-297ddbcb.js","assets/js/escape-html-b8998962.js","assets/js/normalize-wheel-es-ed76fb12.js","assets/js/@floating-ui-880a26aa.js","assets/js/mitt-f7ef348c.js","assets/js/vue-grid-layout-ec2a62c3.js","assets/css/fastcms-01cf5f8f.css"])),P=T(),{themeConfig:p}=U(P),a=H(),i=x({defaultActive:a.meta.isDynamic?a.meta.isDynamicPath:a.path,isCollapse:!1}),b=_(()=>L.menuList),D=_(()=>p.value),h=t=>{const{path:r,meta:o}=t,m=o!=null&&o.isDynamic?o.isDynamicPath.split("/"):r.split("/");return m.length>=4&&(o!=null&&o.isHide)?m.splice(0,3).join("/"):r},S=t=>{V.handleOpenLink(t)};return O(()=>{i.defaultActive=h(a)}),M(t=>{i.defaultActive=h(t),document.body.clientWidth<1e3&&(p.value.isCollapse=!1)}),R(()=>p.value.isCollapse,t=>{document.body.clientWidth<=1e3?i.isCollapse=!1:i.isCollapse=t},{immediate:!0}),(t,r)=>{const o=l("SvgIcon"),m=l("el-sub-menu"),v=l("el-menu-item"),B=l("el-menu");return s(),c(B,{router:"","default-active":i.defaultActive,"background-color":"transparent",collapse:i.isCollapse,"unique-opened":D.value.isUniqueOpened,"collapse-transition":!1},{default:n(()=>[(s(!0),C(k,null,W(b.value,e=>(s(),C(k,null,[e.children&&e.children.length>0?(s(),c(m,{index:e.path,key:e.path},{title:n(()=>[u(o,{name:e.meta.icon},null,8,["name"]),d("span",null,f(t.$t(e.meta.title)),1)]),default:n(()=>[u($(A),{chil:e.children},null,8,["chil"])]),_:2},1032,["index"])):(s(),c(v,{index:e.path,key:e.path},q({default:n(()=>[u(o,{name:e.meta.icon},null,8,["name"])]),_:2},[!e.meta.isLink||e.meta.isLink&&e.meta.isIframe?{name:"title",fn:n(()=>[d("span",null,f(t.$t(e.meta.title)),1)]),key:"0"}:{name:"title",fn:n(()=>[d("a",{class:"w100",onClick:E(F=>S(e),["prevent"])},f(t.$t(e.meta.title)),9,["onClick"])]),key:"1"}]),1032,["index"]))],64))),256))]),_:1},8,["default-active","collapse","unique-opened"])}}});export{De as default};
