import{A,i as B,k as d,n as r}from"./index.ad3efb29.js";import{d as P,ay as p,aD as V,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 v,U as L,aC as i}from"./vue.adf17aba.js";import{_ as j}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";const w={class:"layout-navbars-breadcrumb-index"},H=P({__name:"index",setup(N){const C=i(()=>r(()=>import("./breadcrumb.c07b7094.js"),["assets/breadcrumb.c07b7094.js","assets/index.vue_vue_type_script_setup_true_name_svgIcon_lang.e9645613.js","assets/vue.adf17aba.js","assets/index.ad3efb29.js","assets/elementPlus.4833989a.js","assets/echarts.72dc8373.js","assets/index.7d841112.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/breadcrumb.1f282eca.css"])),R=i(()=>r(()=>import("./user.da5f6e1b.js"),["assets/user.da5f6e1b.js","assets/index.ad3efb29.js","assets/vue.adf17aba.js","assets/elementPlus.4833989a.js","assets/echarts.72dc8373.js","assets/index.7d841112.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/user.16b22109.css"])),b=i(()=>r(()=>import("./index.b01587dc.js"),["assets/index.b01587dc.js","assets/vue.adf17aba.js","assets/index.ad3efb29.js","assets/elementPlus.4833989a.js","assets/echarts.72dc8373.js","assets/index.7d841112.css","assets/ansjer_image.bff06960.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.bf2f5ef6.css"])),y=i(()=>r(()=>import("./horizontal.f3ea9c3f.js"),["assets/horizontal.f3ea9c3f.js","assets/index.ad3efb29.js","assets/vue.adf17aba.js","assets/elementPlus.4833989a.js","assets/echarts.72dc8373.js","assets/index.7d841112.css","assets/index.vue_vue_type_script_setup_true_name_svgIcon_lang.e9645613.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/horizontal.f88b3ec2.css"])),g=A(),x=B(),{themeConfig:c}=p(x),{routesList:u}=p(g),E=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=I(o(u.value));const s=T(E.path);d.emit("setSendClassicChildren",s)}else l.menuList=o(u.value)},I=t=>(t.map(e=>{e.children&&delete e.children}),t),o=t=>t.filter(e=>{var s;return!((s=e.meta)!=null&&s.isHide)}).map(e=>(e=Object.assign({},e),e.children&&(e.children=o(e.children)),e)),T=t=>{const e=t.split("/");let s={children:[]};return o(u.value).map((n,D)=>{n.path===`/${e[1]}`&&(n.k=D,s.item={...n},s.children=[{...n}],n.children&&(s.children=n.children))}),s};return F(()=>{m(),d.on("getBreadcrumbIndexSetFilterRoutes",()=>{m()})}),M(()=>{d.off("getBreadcrumbIndexSetFilterRoutes",()=>{})}),(t,e)=>(_(),U("div",w,[S.value?(_(),h(a(b),{key:0})):v("",!0),L(a(C)),k.value?(_(),h(a(y),{key:1,menuList:l.menuList},null,8,["menuList"])):v("",!0),L(a(R))]))}});const G=j(H,[["__scopeId","data-v-4dbbf8de"]]);export{G as default};
