import{A,i as B,k as d,n as r}from"./index.0d411246.js";import{d as D,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.3f733908.js";import{_ as w}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.0e5067e4.js";import"./echarts.72dc8373.js";const H={class:"layout-navbars-breadcrumb-index"},N=D({__name:"index",setup(U){const C=i(()=>r(()=>import("./breadcrumb.e627add6.js"),["assets/breadcrumb.e627add6.js","assets/index.vue_vue_type_script_setup_true_name_svgIcon_lang.bacf465d.js","assets/vue.3f733908.js","assets/index.0d411246.js","assets/elementPlus.0e5067e4.js","assets/echarts.72dc8373.js","assets/index.1be93128.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/breadcrumb.1f282eca.css"])),b=i(()=>r(()=>import("./user.2ec2d0e4.js"),["assets/user.2ec2d0e4.js","assets/index.0d411246.js","assets/vue.3f733908.js","assets/elementPlus.0e5067e4.js","assets/echarts.72dc8373.js","assets/index.1be93128.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/user.16b22109.css"])),R=i(()=>r(()=>import("./index.f32536c2.js"),["assets/index.f32536c2.js","assets/vue.3f733908.js","assets/index.0d411246.js","assets/elementPlus.0e5067e4.js","assets/echarts.72dc8373.js","assets/index.1be93128.css","assets/ansjer_image.bff06960.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.bf2f5ef6.css"])),g=i(()=>r(()=>import("./horizontal.028e640a.js"),["assets/horizontal.028e640a.js","assets/index.0d411246.js","assets/vue.3f733908.js","assets/elementPlus.0e5067e4.js","assets/echarts.72dc8373.js","assets/index.1be93128.css","assets/index.vue_vue_type_script_setup_true_name_svgIcon_lang.bacf465d.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/horizontal.f88b3ec2.css"])),x=A(),y=B(),{themeConfig:c}=p(y),{routesList:u}=p(x),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,P)=>{n.path===`/${e[1]}`&&(n.k=P,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)=>(_(),j("div",H,[S.value?(_(),h(a(R),{key:0})):v("",!0),L(a(C)),k.value?(_(),h(a(g),{key:1,menuList:l.menuList},null,8,["menuList"])):v("",!0),L(a(b))]))}});const G=w(N,[["__scopeId","data-v-4dbbf8de"]]);export{G as default};
