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