const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/subItem.BHQjKUMn.js","assets/index.vue_vue_type_script_setup_true_name_svgIcon_lang.EO34UlUs.js","assets/vue.1RczIYhx.js","assets/index.K_MFulpu.js","assets/elementPlus.CSBdF9Zt.js","assets/index.Cir2Zm7u.css","assets/_plugin-vue_export-helper.DlAUqK2U.js","assets/subItem.BDt1Ol9r.css"])))=>i.map(i=>d[i]);
import{u as T,_ as W,o as B}from"./index.K_MFulpu.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_name_svgIcon_lang.EO34UlUs.js";import{d as P,aD as $,aC as O,Z as R,k as g,j as q,aL as E,w as M,ai as m,o as a,M as u,O as i,c as d,F as y,a8 as U,U as p,J as C,a as h,T as _,u as V,aa as j,a2 as F,aA as H}from"./vue.1RczIYhx.js";import{_ as N}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./elementPlus.CSBdF9Zt.js";const z={key:1,class:"menu-hover rounded-md"},J=["onClick"],Z=P({__name:"vertical",props:{menuList:{type:Array,default:()=>[]}},setup(k){const x=H(()=>W(()=>import("./subItem.BHQjKUMn.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),L=k,v=T(),{themeConfig:o}=$(v),l=O(),s=R({defaultActive:l.meta.isDynamic?l.meta.isDynamicPath:l.path,isCollapse:!1}),A=g(()=>L.menuList),b=g(()=>o.value),f=n=>{const{path:c,meta:t}=n,r=t!=null&&t.isDynamic?t.isDynamicPath.split("/"):c.split("/");return r.length>=4&&(t!=null&&t.isHide)?r.splice(0,3).join("/"):c},w=n=>{B.handleOpenLink(n)};return q(()=>{s.defaultActive=f(l)}),E(n=>{s.defaultActive=f(n),document.body.clientWidth<1e3&&(o.value.isCollapse=!1)}),M(o.value,()=>{document.body.clientWidth<=1e3?s.isCollapse=!1:s.isCollapse=o.value.isCollapse},{immediate:!0}),(n,c)=>{const t=I,r=m("el-sub-menu"),D=m("el-menu-item"),S=m("el-menu");return a(),u(S,{collapse:s.isCollapse,"collapse-transition":!1,"default-active":s.defaultActive,"unique-opened":b.value.isUniqueOpened,"background-color":"transparent",class:"font-medium",router:""},{default:i(()=>[(a(!0),d(y,null,U(A.value,e=>(a(),d(y,null,[e.children&&e.children.length>0?(a(),u(r,{key:e.path,index:e.path,class:"custom-menu"},{title:i(()=>[p(t,{name:e.meta.icon,style:C([e.meta.icon.startsWith("bi")?{"vertical-align":"middle","margin-right":"5px",width:"24px","text-align":"center"}:{}])},null,8,["name","style"]),h("span",null,_(n.$t(e.meta.title)),1)]),default:i(()=>[p(V(x),{chil:e.children},null,8,["chil"])]),_:2},1032,["index"])):(a(),d("div",z,[(a(),u(D,{key:e.path,index:e.path,class:""},j({default:i(()=>[p(t,{name:e.meta.icon,style:C([e.meta.icon.startsWith("bi")?{"vertical-align":"middle","margin-right":"5px",width:"24px","text-align":"center"}:{}])},null,8,["name","style"])]),_:2},[!e.meta.isLink||e.meta.isLink&&e.meta.isIframe?{name:"title",fn:i(()=>[h("span",null,_(n.$t(e.meta.title)),1)]),key:"0"}:{name:"title",fn:i(()=>[h("a",{class:"w100",onClick:F(G=>w(e),["prevent"])},_(n.$t(e.meta.title)),9,J)]),key:"1"}]),1032,["index"]))]))],64))),256))]),_:1},8,["collapse","default-active","unique-opened"])}}}),te=N(Z,[["__scopeId","data-v-64826c1d"]]);export{te as default};
