const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.C5kYFgoD.js","assets/vue.1RczIYhx.js","assets/index.DoJnwA7v.js","assets/elementPlus.CqHltQSO.js","assets/index.CKLN95vU.css","assets/_plugin-vue_export-helper.DlAUqK2U.js","assets/index.Cl8Z70SY.css","assets/vertical.WFpfODpC.js","assets/index.vue_vue_type_script_setup_true_name_svgIcon_lang.EO34UlUs.js","assets/vertical.B4lgqatO.css"])))=>i.map(i=>d[i]);
import{V as x,u as D,b as I,e as l,p as O,_ as C}from"./index.DoJnwA7v.js";import{d as P,r as N,aD 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,aA as w}from"./vue.1RczIYhx.js";import"./elementPlus.CqHltQSO.js";const J={class:"h100"},ee=P({__name:"aside",setup(K){const R=w(()=>C(()=>import("./index.C5kYFgoD.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),A=w(()=>C(()=>import("./vertical.WFpfODpC.js"),__vite__mapDeps([7,2,1,3,4,8,5,9]))),n=N(),p=x(),M=D(),T=I(),{routesList:E}=d(p),{themeConfig:i}=d(M),{isTagsViewCurrenFull:V}=d(T),a=q({menuList:[],clientWidth:0}),B=b(()=>{const{layout:e,isCollapse:t,menuBar:s}=i.value,o=["#FFFFFF","#FFF","#fff","#ffffff"].includes(s)?"layout-el-aside-br-color":"";if(a.clientWidth<=1e3)if(t){document.body.setAttribute("class","el-popup-parent--hidden");const k=document.querySelector(".layout-container"),c=document.createElement("div");return c.setAttribute("class","layout-aside-mobile-mode"),k.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"]}),W=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;a.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=>{a.clientWidth=e},v=e=>{let{layout:t}=i.value;if(t!=="columns")return!1;e||l.emit("restoreDefault"),p.setColumnsMenuHover(e)};return z(()=>{h(document.body.clientWidth),r(),l.on("setSendColumnsChildren",e=>{a.menuList=e.children}),l.on("setSendClassicChildren",e=>{let{layout:t,isClassicSplitMenu:s}=i.value;t==="classic"&&s&&(a.menuList=[],a.menuList=e.children)}),l.on("getBreadcrumbIndexSetFilterRoutes",()=>{r()}),l.on("layoutMobileResize",e=>{h(e.clientWidth),u()})}),L(i.value,e=>{e.isShowLogoChange!==e.isShowLogo&&n.value&&n.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"),_=g("el-aside");return H((S(),j("div",J,[f(_,{class:G(["layout-aside",B.value])},{default:F(()=>[W.value?(S(),U(m(R),{key:0})):Z("",!0),f(s,{class:"flex-auto",ref_key:"layoutAsideScrollbarRef",ref:n,onMouseenter:t[0]||(t[0]=o=>v(!0)),onMouseleave:t[1]||(t[1]=o=>v(!1))},{default:F(()=>[f(m(A),{menuList:a.menuList},null,8,["menuList"])]),_:1},512)]),_:1},8,["class"])],512)),[[$,!m(V)]])}}});export{ee as default};
