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