import{i as E,n as I,E as P}from"./index.8a64ecdf.js";import{d as y,ak as T,an as W,Q as $,k as _,j as x,ar as M,w as R,a8 as r,o as i,E as m,G as s,c as k,F as C,$ as V,M as p,a as d,L as f,u as q,a1 as O,W as j,am as F}from"./vue.95e072e2.js";import"./elementPlus.58179425.js";import"./echarts.72dc8373.js";const H=y({name:"navMenuVertical"}),J=y({...H,props:{menuList:{type:Array,default:()=>[]}},setup(g){const L=F(()=>I(()=>import("./subItem.9c6b7c0e.js"),["assets/subItem.9c6b7c0e.js","assets/vue.95e072e2.js","assets/index.8a64ecdf.js","assets/elementPlus.58179425.js","assets/echarts.72dc8373.js","assets/index.c1001ae2.css"])),A=g,b=E(),{themeConfig:o}=T(b),l=W(),a=$({defaultActive:l.meta.isDynamic?l.meta.isDynamicPath:l.path,isCollapse:!1}),v=_(()=>A.menuList),D=_(()=>o.value),h=n=>{const{path:c,meta:t}=n,u=t!=null&&t.isDynamic?t.isDynamicPath.split("/"):c.split("/");return u.length>=4&&(t!=null&&t.isHide)?u.splice(0,3).join("/"):c},S=n=>{P.handleOpenLink(n)};return x(()=>{a.defaultActive=h(l)}),M(n=>{a.defaultActive=h(n),document.body.clientWidth<1e3&&(o.value.isCollapse=!1)}),R(o.value,()=>{document.body.clientWidth<=1e3?a.isCollapse=!1:a.isCollapse=o.value.isCollapse},{immediate:!0}),(n,c)=>{const t=r("SvgIcon"),u=r("el-sub-menu"),w=r("el-menu-item"),B=r("el-menu");return i(),m(B,{router:"","default-active":a.defaultActive,"background-color":"transparent",collapse:a.isCollapse,"unique-opened":D.value.isUniqueOpened,"collapse-transition":!1,class:"font-medium"},{default:s(()=>[(i(!0),k(C,null,V(v.value,e=>(i(),k(C,null,[e.children&&e.children.length>0?(i(),m(u,{index:e.path,key:e.path},{title:s(()=>[p(t,{name:e.meta.icon},null,8,["name"]),d("span",null,f(n.$t(e.meta.title)),1)]),default:s(()=>[p(q(L),{chil:e.children},null,8,["chil"])]),_:2},1032,["index"])):(i(),m(w,{style:{color:"#eaeaea"},index:e.path,key:e.path},O({default:s(()=>[p(t,{name:e.meta.icon},null,8,["name"])]),_:2},[!e.meta.isLink||e.meta.isLink&&e.meta.isIframe?{name:"title",fn:s(()=>[d("span",null,f(n.$t(e.meta.title)),1)]),key:"0"}:{name:"title",fn:s(()=>[d("a",{class:"w100",onClick:j(N=>S(e),["prevent"])},f(n.$t(e.meta.title)),9,["onClick"])]),key:"1"}]),1032,["index"]))],64))),256))]),_:1},8,["default-active","collapse","unique-opened"])}}});export{J as default};
