const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/breadcrumb.CP_8ETnw.js","assets/vue.BxlDVA1H.js","assets/index.lP_uh0LI.js","assets/index.TG7KVPIy.css","assets/_plugin-vue_export-helper.DlAUqK2U.js","assets/breadcrumb.PVms9BqT.css","assets/user.Dg03rZHp.js","assets/user.CwiXwYvZ.css","assets/index.Cm2mk542.js","assets/logo-mini.D83j9Aw9.js","assets/index.DPIELCQg.css","assets/horizontal.Dca8-Wvu.js","assets/horizontal.CBhQXGpU.css"])))=>i.map(i=>d[i]);
import{W as D,u as V,t as d,_ as r}from"./index.lP_uh0LI.js";import{d as C,N as f,R as A,r as O,c as p,o as F,P as M,e as N,f as _,h,j as L,g as v,u as a,Q as i}from"./vue.BxlDVA1H.js";import{_ as j}from"./_plugin-vue_export-helper.DlAUqK2U.js";const w={class:"layout-navbars-breadcrumb-index"},H=C({name:"layoutBreadcrumbIndex"}),U=C({...H,setup(z){const R=i(()=>r(()=>import("./breadcrumb.CP_8ETnw.js"),__vite__mapDeps([0,1,2,3,4,5]))),g=i(()=>r(()=>import("./user.Dg03rZHp.js"),__vite__mapDeps([6,2,1,3,4,7]))),y=i(()=>r(()=>import("./index.Cm2mk542.js"),__vite__mapDeps([8,1,2,3,9,4,10]))),E=i(()=>r(()=>import("./horizontal.Dca8-Wvu.js"),__vite__mapDeps([11,2,1,3,4,12]))),I=D(),S=V(),{themeConfig:c}=f(S),{routesList:u}=f(I),b=A(),l=O({menuList:[]}),x=p(()=>{let{isShowLogo:t,layout:e}=c.value;return t&&e==="classic"||t&&e==="transverse"}),B=p(()=>{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=P(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)),P=t=>{const e=t.split("/");let s={children:[]};return n(u.value).map((o,k)=>{o.path===`/${e[1]}`&&(o.k=k,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)=>(_(),N("div",w,[x.value?(_(),h(a(y),{key:0})):L("",!0),v(a(R)),B.value?(_(),h(a(E),{key:1,menuList:l.menuList},null,8,["menuList"])):L("",!0),v(a(g))]))}}),q=j(U,[["__scopeId","data-v-8cf6f88f"]]);export{q as default};
