const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/breadcrumb.-EoVrs8N.js","assets/vue.D1BjjNmv.js","assets/index.CL7yl-Wb.js","assets/index.DgHxlRHa.css","assets/_plugin-vue_export-helper.DlAUqK2U.js","assets/breadcrumb.BJHFkKjg.css","assets/user.CqNHoTbN.js","assets/user.CGbR7jsZ.css","assets/index.C2URzwjc.js","assets/LOGO1.CAkriOh-.js","assets/logo-mini.D57drHvk.js","assets/index.dNToJVUT.css","assets/horizontal.CUSm3Hzb.js","assets/horizontal.C49BHnTi.css"])))=>i.map(i=>d[i]);
import{aK as D,u as P,e as d,_ as r}from"./index.CL7yl-Wb.js";import{a as v,aC as p,aB as V,_ as O,f,q as F,W as M,c as w,o as _,J as h,M as L,S as C,u as a,aA as i}from"./vue.D1BjjNmv.js";import{_ as H}from"./_plugin-vue_export-helper.DlAUqK2U.js";const N={class:"layout-navbars-breadcrumb-index"},U=v({name:"layoutBreadcrumbIndex"}),j=v({...U,setup(q){const R=i(()=>r(()=>import("./breadcrumb.-EoVrs8N.js"),__vite__mapDeps([0,1,2,3,4,5]))),S=i(()=>r(()=>import("./user.CqNHoTbN.js"),__vite__mapDeps([6,2,1,3,4,7]))),g=i(()=>r(()=>import("./index.C2URzwjc.js"),__vite__mapDeps([8,9,1,2,3,10,4,11]))),y=i(()=>r(()=>import("./horizontal.CUSm3Hzb.js"),__vite__mapDeps([12,2,1,3,4,13]))),E=D(),I=P(),{themeConfig:c}=p(I),{routesList:u}=p(E),b=V(),l=O({menuList:[]}),x=f(()=>{let{isShowLogo:t,layout:e}=c.value;return t&&e==="classic"||t&&e==="transverse"}),B=f(()=>{let{layout:t,isClassicSplitMenu:e}=c.value;return t==="transverse"||e&&t==="classic"}),m=()=>{let{layout:t,isClassicSplitMenu:e}=c.value;if(t==="classic"&&e){l.menuList=T(n(u.value));const s=k(b.path);d.emit("setSendClassicChildren",s)}else l.menuList=n(u.value)},T=t=>(t.map(e=>{e.children&&delete e.children}),t),n=t=>t.filter(e=>{var s;return!((s=e.meta)!=null&&s.isHide)}).map(e=>(e=Object.assign({},e),e.children&&(e.children=n(e.children)),e)),k=t=>{const e=t.split("/");let s={children:[]};return n(u.value).map((o,A)=>{o.path===`/${e[1]}`&&(o.k=A,s.item={...o},s.children=[{...o}],o.children&&(s.children=o.children))}),s};return F(()=>{m(),d.on("getBreadcrumbIndexSetFilterRoutes",()=>{m()})}),M(()=>{d.off("getBreadcrumbIndexSetFilterRoutes",()=>{})}),(t,e)=>(_(),w("div",N,[x.value?(_(),h(a(g),{key:0})):L("",!0),C(a(R)),B.value?(_(),h(a(y),{key:1,menuList:l.menuList},null,8,["menuList"])):L("",!0),C(a(S))]))}}),W=H(j,[["__scopeId","data-v-c4f9509c"]]);export{W as default};
