const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.C2URzwjc.js","assets/LOGO1.CAkriOh-.js","assets/vue.D1BjjNmv.js","assets/index.CL7yl-Wb.js","assets/index.DgHxlRHa.css","assets/logo-mini.D57drHvk.js","assets/_plugin-vue_export-helper.DlAUqK2U.js","assets/index.dNToJVUT.css","assets/vertical.BkK7qvi8.js"])))=>i.map(i=>d[i]);
import{aK as D,u as I,b as P,e as l,aL as N,_ as C,S as O}from"./index.CL7yl-Wb.js";import{a as w,r as j,aC as m,_ as q,f as b,a5 as z,w as L,aj as g,L as H,T as K,u as f,c as $,o as S,S as p,K as A,J as G,M as J,aA as F,G as Q}from"./vue.D1BjjNmv.js";const U={class:"h100"},X=w({name:"layoutAside"}),te=w({...X,setup(Y){const R=F(()=>C(()=>import("./index.C2URzwjc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),T=F(()=>C(()=>import("./vertical.BkK7qvi8.js"),__vite__mapDeps([8,3,2,4]))),u=j(),h=D(),M=I(),B=P(),{routesList:E}=m(h),{themeConfig:n}=m(M),{isTagsViewCurrenFull:V}=m(B),i=q({menuList:[],clientWidth:0}),W=b(()=>{const{layout:e,isCollapse:t,menuBar:s}=n.value,a=["#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"),d=document.createElement("div");return d.setAttribute("class","layout-aside-mobile-mode"),x.appendChild(d),d.addEventListener("click",r),[a,"layout-aside-mobile","layout-aside-mobile-open"]}else return r(),[a,"layout-aside-mobile","layout-aside-mobile-close"];else return e==="columns"?t?[a,"layout-aside-pc-1"]:[a,"layout-aside-pc-220"]:t?[a,"layout-aside-pc-64"]:[a,"layout-aside-pc-220"]}),k=b(()=>{let{layout:e,isShowLogo:t}=n.value;return t&&e==="defaults"||t&&e==="columns"}),r=()=>{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&&(n.value.isCollapse=!1),document.body.setAttribute("class","")},c=()=>{if(n.value.layout==="columns")return!1;i.menuList=y(E.value)},y=e=>{const t=O.get("userInfo"),s=t&&t.username==="管理员";return e.filter(o=>{var a;return s&&o.path==="/home"?!1:!((a=o.meta)!=null&&a.isHide)}).map(o=>(o=Object.assign({},o),o.children&&(o.children=y(o.children)),o))},_=e=>{i.clientWidth=e},v=e=>{let{layout:t}=n.value;if(t!=="columns")return!1;e||l.emit("restoreDefault"),h.setColumnsMenuHover(e)};return z(()=>{_(document.body.clientWidth),c(),l.on("setSendColumnsChildren",e=>{i.menuList=e.children}),l.on("setSendClassicChildren",e=>{let{layout:t,isClassicSplitMenu:s}=n.value;t==="classic"&&s&&(i.menuList=[],i.menuList=e.children)}),l.on("getBreadcrumbIndexSetFilterRoutes",()=>{c()}),l.on("layoutMobileResize",e=>{_(e.clientWidth),r()})}),L(n.value,e=>{e.isShowLogoChange!==e.isShowLogo&&u.value&&u.value.update()}),L(N.state,e=>{let{layout:t,isClassicSplitMenu:s}=e.themeConfig.themeConfig;if(t==="classic"&&s)return!1;c()},{deep:!0}),(e,t)=>{const s=g("el-scrollbar"),o=g("el-aside");return H((S(),$("div",U,[p(o,{class:Q(["layout-aside",W.value])},{default:A(()=>[k.value?(S(),G(f(R),{key:0})):J("",!0),p(s,{class:"flex-auto",ref_key:"layoutAsideScrollbarRef",ref:u,onMouseenter:t[0]||(t[0]=a=>v(!0)),onMouseleave:t[1]||(t[1]=a=>v(!1))},{default:A(()=>[p(f(T),{menuList:i.menuList},null,8,["menuList"])]),_:1},512)]),_:1},8,["class"])],512)),[[K,!f(V)]])}}});export{te as default};
