const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/breadcrumb.D5afUMBZ.js","assets/index.vue_vue_type_script_setup_true_name_svgIcon_lang.EO34UlUs.js","assets/vue.1RczIYhx.js","assets/index.DoJnwA7v.js","assets/elementPlus.CqHltQSO.js","assets/index.CKLN95vU.css","assets/_plugin-vue_export-helper.DlAUqK2U.js","assets/breadcrumb.C1MxJ3sD.css","assets/user.BNqA47vv.js","assets/user.B9ExR55R.css","assets/index.C5kYFgoD.js","assets/index.Cl8Z70SY.css","assets/horizontal.DGUtVZ1Q.js","assets/horizontal.D1lYPabU.css"])))=>i.map(i=>d[i]);
import{V,u as A,e as d,_ as r}from"./index.DoJnwA7v.js";import{d as B,aD as p,aC as P,Z as O,k as f,j as F,Y as M,o as _,c as U,M as h,u as a,R as L,U as C,aA as i}from"./vue.1RczIYhx.js";import{_ as j}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./elementPlus.CqHltQSO.js";const w={class:"layout-navbars-breadcrumb-index"},H=B({__name:"index",setup(N){const v=i(()=>r(()=>import("./breadcrumb.D5afUMBZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),R=i(()=>r(()=>import("./user.BNqA47vv.js"),__vite__mapDeps([8,3,2,4,5,6,9]))),b=i(()=>r(()=>import("./index.C5kYFgoD.js"),__vite__mapDeps([10,2,3,4,5,6,11]))),g=i(()=>r(()=>import("./horizontal.DGUtVZ1Q.js"),__vite__mapDeps([12,3,2,4,5,1,6,13]))),E=V(),S=A(),{themeConfig:c}=p(S),{routesList:u}=p(E),x=P(),l=O({menuList:[]}),y=f(()=>{let{isShowLogo:t,layout:e}=c.value;return t&&e==="classic"||t&&e==="transverse"}),I=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(x.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,D)=>{o.path===`/${e[1]}`&&(o.k=D,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)=>(_(),U("div",w,[y.value?(_(),h(a(b),{key:0})):L("",!0),C(a(v)),I.value?(_(),h(a(g),{key:1,menuList:l.menuList},null,8,["menuList"])):L("",!0),C(a(R))]))}}),q=j(H,[["__scopeId","data-v-4dbbf8de"]]);export{q as default};
