const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.CG3ZGFG_.js","assets/vue.D1BjjNmv.js","assets/index.Df8UJ10K.js","assets/index.B3U2FkM1.css","assets/logo-mini.DjPeV5ul.js","assets/_plugin-vue_export-helper.DlAUqK2U.js","assets/index.BvP9MTMN.css","assets/vertical.D-oldosP.js"])))=>i.map(i=>d[i]);
import{ay as x,u as D,b as z,e as l,az as I,_ as v}from"./index.Df8UJ10K.js";import{a as w,r as N,aC as d,_ as P,f as C,a5 as q,w as b,aj as L,L as O,T as $,u as m,c as j,o as g,S as f,K as S,J as G,M as H,aA as F,G as J}from"./vue.D1BjjNmv.js";import{f as K}from"./routeFilter._N12e_OU.js";const Q={class:"h100"},U=w({name:"layoutAside"}),te=w({...U,setup(X){const A=F(()=>v(()=>import("./index.CG3ZGFG_.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),R=F(()=>v(()=>import("./vertical.D-oldosP.js"),__vite__mapDeps([7,2,1,3]))),n=N(),p=x(),T=D(),M=z(),{routesList:B}=d(p),{themeConfig:i}=d(T),{isTagsViewCurrenFull:E}=d(M),a=P({menuList:[],clientWidth:0}),V=C(()=>{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=C(()=>{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=()=>{a.menuList=K(B.value)},y=e=>{a.clientWidth=e},_=e=>{let{layout:t}=i.value;if(t!=="columns")return!1;e||l.emit("restoreDefault"),p.setColumnsMenuHover(e)};return q(()=>{y(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=>{y(e.clientWidth),u()})}),b(i.value,e=>{e.isShowLogoChange!==e.isShowLogo&&n.value&&n.value.update()}),b(I.state,e=>{let{layout:t,isClassicSplitMenu:s}=e.themeConfig.themeConfig;if(t==="classic"&&s)return!1;r()},{deep:!0}),(e,t)=>{const s=L("el-scrollbar"),h=L("el-aside");return O((g(),j("div",Q,[f(h,{class:J(["layout-aside",V.value])},{default:S(()=>[W.value?(g(),G(m(A),{key:0})):H("",!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:S(()=>[f(m(R),{menuList:a.menuList},null,8,["menuList"])]),_:1},512)]),_:1},8,["class"])],512)),[[$,!m(E)]])}}});export{te as default};
