import{a as p,f as C,aj as o,c as s,o as n,a9 as g,R as c,J as l,K as m,S as a,b as u,Q as r,Y as x,P as L}from"./vue.D1BjjNmv.js";import{o as S}from"./index.CL7yl-Wb.js";const B=["onClick"],I=p({name:"navMenuSubItem"}),A=p({...I,props:{chil:{type:Array,default:()=>[]}},setup(_){const d=_,h=C(()=>d.chil),k=t=>{S.handleOpenLink(t)};return(t,$)=>{const i=o("SvgIcon"),f=o("sub-item",!0),y=o("el-sub-menu"),b=o("el-menu-item");return n(!0),s(c,null,g(h.value,e=>(n(),s(c,null,[e.children&&e.children.length>0?(n(),l(y,{index:e.path,key:e.path},{title:m(()=>[a(i,{name:e.meta.icon},null,8,["name"]),u("span",null,r(t.$t(e.meta.title)),1)]),default:m(()=>[a(f,{chil:e.children},null,8,["chil"])]),_:2},1032,["index"])):(n(),l(b,{index:e.path,key:e.path},{default:m(()=>[!e.meta.isLink||e.meta.isLink&&e.meta.isIframe?(n(),s(c,{key:0},[a(i,{name:e.meta.icon},null,8,["name"]),u("span",null,r(t.$t(e.meta.title)),1)],64)):(n(),s("a",{key:1,class:"w100",onClick:x(w=>k(e),["prevent"])},[a(i,{name:e.meta.icon},null,8,["name"]),L(" "+r(t.$t(e.meta.title)),1)],8,B))]),_:2},1032,["index"]))],64))),256)}}});export{A as default};
