import{A as x,i as D,C as N,k as l,D as z,n as _}from"./index.373e4c1e.js";import{d as H,r as I,al as d,Q as O,k as b,v as P,w as L,a9 as g,H as q,N as $,u as m,o as S,c as j,M as f,G as F,E as G,J,z as Q,an as w}from"./vue.65d9dadc.js";import"./elementPlus.c5b0e04f.js";import"./echarts.72dc8373.js";const K={class:"h100"},te=H({__name:"aside",setup(U){const A=w(()=>_(()=>import("./index.abb7edb4.js"),["assets/index.abb7edb4.js","assets/vue.65d9dadc.js","assets/index.373e4c1e.js","assets/elementPlus.c5b0e04f.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"])),R=w(()=>_(()=>import("./vertical.1998e324.js"),["assets/vertical.1998e324.js","assets/index.373e4c1e.js","assets/vue.65d9dadc.js","assets/elementPlus.c5b0e04f.js","assets/echarts.72dc8373.js","assets/index.1be93128.css","assets/index.vue_vue_type_script_setup_true_name_svgIcon_lang.278ff746.js"])),a=I(),p=x(),M=D(),T=N(),{routesList:E}=d(p),{themeConfig:i}=d(M),{isTagsViewCurrenFull:B}=d(T),n=O({menuList:[],clientWidth:0}),k=b(()=>{const{layout:e,isCollapse:t,menuBar:s}=i.value,o=["#FFFFFF","#FFF","#fff","#ffffff"].includes(s)?"layout-el-aside-br-color":"";if(n.clientWidth<=1e3)if(t){document.body.setAttribute("class","el-popup-parent--hidden");const W=document.querySelector(".layout-container"),c=document.createElement("div");return c.setAttribute("class","layout-aside-mobile-mode"),W.appendChild(c),c.addEventListener("click",u),[o,"layout-aside-mobile","layout-aside-mobile-open"]}else return u(),[o,"layout-aside-mobile","layout-aside-mobile-close"];else return e==="columns"?t?[o,"layout-aside-pc-1"]:[o,"layout-aside-pc-220"]:t?[o,"layout-aside-pc-64"]:[o,"layout-aside-pc-220"]}),V=b(()=>{let{layout:e,isShowLogo:t}=i.value;return t&&e==="defaults"||t&&e==="columns"}),u=()=>{const e=document.querySelector(".layout-aside-mobile-mode");e==null||e.setAttribute("style","animation: error-img-two 0.3s"),setTimeout(()=>{var s;(s=e==null?void 0:e.parentNode)==null||s.removeChild(e)},300),document.body.clientWidth<1e3&&(i.value.isCollapse=!1),document.body.setAttribute("class","")},r=()=>{if(i.value.layout==="columns")return!1;n.menuList=y(E.value)},y=e=>e.filter(t=>{var s;return!((s=t.meta)!=null&&s.isHide)}).map(t=>(t=Object.assign({},t),t.children&&(t.children=y(t.children)),t)),h=e=>{n.clientWidth=e},v=e=>{let{layout:t}=i.value;if(t!=="columns")return!1;e||l.emit("restoreDefault"),p.setColumnsMenuHover(e)};return P(()=>{h(document.body.clientWidth),r(),l.on("setSendColumnsChildren",e=>{n.menuList=e.children}),l.on("setSendClassicChildren",e=>{let{layout:t,isClassicSplitMenu:s}=i.value;t==="classic"&&s&&(n.menuList=[],n.menuList=e.children)}),l.on("getBreadcrumbIndexSetFilterRoutes",()=>{r()}),l.on("layoutMobileResize",e=>{h(e.clientWidth),u()})}),L(i.value,e=>{e.isShowLogoChange!==e.isShowLogo&&a.value&&a.value.update()}),L(z.state,e=>{let{layout:t,isClassicSplitMenu:s}=e.themeConfig.themeConfig;if(t==="classic"&&s)return!1;r()},{deep:!0}),(e,t)=>{const s=g("el-scrollbar"),C=g("el-aside");return q((S(),j("div",K,[f(C,{class:Q(["layout-aside",k.value])},{default:F(()=>[V.value?(S(),G(m(A),{key:0})):J("",!0),f(s,{class:"flex-auto",ref_key:"layoutAsideScrollbarRef",ref:a,onMouseenter:t[0]||(t[0]=o=>v(!0)),onMouseleave:t[1]||(t[1]=o=>v(!1))},{default:F(()=>[f(m(R),{menuList:n.menuList},null,8,["menuList"])]),_:1},512)]),_:1},8,["class"])],512)),[[$,!m(B)]])}}});export{te as default};
