import{A as x,i as D,C as I,k as a,D as O,n as _}from"./index.ad3efb29.js";import{d as P,r as N,ay as d,Z as q,k as b,E as z,w as L,ai as g,P as H,V as $,u as m,o as S,c as j,U as f,O as F,M as U,R as Z,I as G,aC as w}from"./vue.adf17aba.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";const J={class:"h100"},te=P({__name:"aside",setup(K){const R=w(()=>_(()=>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"])),A=w(()=>_(()=>import("./vertical.aa23a81a.js"),["assets/vertical.aa23a81a.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"])),l=N(),p=x(),M=D(),T=I(),{routesList:E}=d(p),{themeConfig:i}=d(M),{isTagsViewCurrenFull:B}=d(T),n=q({menuList:[],clientWidth:0}),V=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"]}),k=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||a.emit("restoreDefault"),p.setColumnsMenuHover(e)};return z(()=>{h(document.body.clientWidth),r(),a.on("setSendColumnsChildren",e=>{n.menuList=e.children}),a.on("setSendClassicChildren",e=>{let{layout:t,isClassicSplitMenu:s}=i.value;t==="classic"&&s&&(n.menuList=[],n.menuList=e.children)}),a.on("getBreadcrumbIndexSetFilterRoutes",()=>{r()}),a.on("layoutMobileResize",e=>{h(e.clientWidth),u()})}),L(i.value,e=>{e.isShowLogoChange!==e.isShowLogo&&l.value&&l.value.update()}),L(O.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 H((S(),j("div",J,[f(C,{class:G(["layout-aside",V.value])},{default:F(()=>[k.value?(S(),U(m(R),{key:0})):Z("",!0),f(s,{class:"flex-auto",ref_key:"layoutAsideScrollbarRef",ref:l,onMouseenter:t[0]||(t[0]=o=>v(!0)),onMouseleave:t[1]||(t[1]=o=>v(!1))},{default:F(()=>[f(m(A),{menuList:n.menuList},null,8,["menuList"])]),_:1},512)]),_:1},8,["class"])],512)),[[$,!m(B)]])}}});export{te as default};
