import{A,i as D,k as d,n as r}from"./index.ae7ce77b.js";import{d as C,al as p,ao as V,Q as O,k as f,j as F,P as M,o as _,c as j,E as h,u as a,J as v,M as L,an as i}from"./vue.6daa721c.js";import{_ as w}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.346c766a.js";import"./echarts.72dc8373.js";const H={class:"layout-navbars-breadcrumb-index"},N=C({name:"layoutBreadcrumbIndex"}),U=C({...N,setup(z){const y=i(()=>r(()=>import("./breadcrumb.eab06d98.js"),["assets/breadcrumb.eab06d98.js","assets/vue.6daa721c.js","assets/index.ae7ce77b.js","assets/elementPlus.346c766a.js","assets/echarts.72dc8373.js","assets/index.a2a4e7ac.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/breadcrumb.5deafc24.css"])),R=i(()=>r(()=>import("./user.1472b2c1.js"),["assets/user.1472b2c1.js","assets/index.ae7ce77b.js","assets/vue.6daa721c.js","assets/elementPlus.346c766a.js","assets/echarts.72dc8373.js","assets/index.a2a4e7ac.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/user.8c32f151.css"])),b=i(()=>r(()=>import("./index.7b62a297.js"),["assets/index.7b62a297.js","assets/vue.6daa721c.js","assets/index.ae7ce77b.js","assets/elementPlus.346c766a.js","assets/echarts.72dc8373.js","assets/index.a2a4e7ac.css","assets/ansjer_image.bff06960.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.8f0cc000.css"])),g=i(()=>r(()=>import("./horizontal.1a98623b.js"),["assets/horizontal.1a98623b.js","assets/index.ae7ce77b.js","assets/vue.6daa721c.js","assets/elementPlus.346c766a.js","assets/echarts.72dc8373.js","assets/index.a2a4e7ac.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/horizontal.f075ceb8.css"])),x=A(),E=D(),{themeConfig:c}=p(E),{routesList:u}=p(x),I=V(),l=O({menuList:[]}),S=f(()=>{let{isShowLogo:t,layout:e}=c.value;return t&&e==="classic"||t&&e==="transverse"}),k=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=B(I.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)),B=t=>{const e=t.split("/");let s={children:[]};return n(u.value).map((o,P)=>{o.path===`/${e[1]}`&&(o.k=P,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)=>(_(),j("div",H,[S.value?(_(),h(a(b),{key:0})):v("",!0),L(a(y)),k.value?(_(),h(a(g),{key:1,menuList:l.menuList},null,8,["menuList"])):v("",!0),L(a(R))]))}});const K=w(U,[["__scopeId","data-v-3b707f43"]]);export{K as default};
