const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/parent.y9jY00a2.js","assets/index.lP_uh0LI.js","assets/vue.BxlDVA1H.js","assets/index.TG7KVPIy.css","assets/index.BWjGLmBB.js","assets/_plugin-vue_export-helper.DlAUqK2U.js","assets/index.DzxwES79.css"])))=>i.map(i=>d[i]);
import{y as L,u as M,S as l,N,_ as i}from"./index.lP_uh0LI.js";import{d as f,a as E,R as P,N as c,c as o,o as A,b as a,h as u,f as _,w as d,g as s,j as B,u as p,Q as m,p as H}from"./vue.BxlDVA1H.js";const I=f({name:"layoutMain"}),z=f({...I,setup(D,{expose:y}){const h=m(()=>i(()=>import("./parent.y9jY00a2.js"),__vite__mapDeps([0,1,2,3]))),g=m(()=>i(()=>import("./index.BWjGLmBB.js"),__vite__mapDeps([4,2,5,6]))),r=E(),v=P(),b=L(),w=M(),{themeConfig:t}=c(w),{isTagsViewCurrenFull:x}=c(b),S=o(()=>{const e=l.get("hideSide");return t.value.isFooter&&!v.meta.isIframe&&!e});o(()=>t.value.isFixedHeader);const k=o(()=>t.value.isFixedHeader?".layout-backtop-header-fixed .el-scrollbar__wrap":".layout-backtop .el-scrollbar__wrap"),C=o(()=>!!l.get("hideSide")),R=o(()=>{if(x.value||C.value)return"0px";const{isTagsview:e,layout:n}=t.value;return e&&n!=="classic"?"85px":"51px"});return A(()=>{N.done(600)}),y({layoutMainScrollbarRef:r}),(e,n)=>{const T=a("el-scrollbar"),V=a("el-backtop"),F=a("el-main");return _(),u(F,{class:"layout-main",style:H(`height: calc(100% - ${R.value})`)},{default:d(()=>[s(T,{ref_key:"layoutMainScrollbarRef",ref:r,class:"layout-main-scroll layout-backtop-header-fixed","wrap-class":"layout-main-scroll","view-class":"layout-main-scroll"},{default:d(()=>[s(p(h)),S.value?(_(),u(p(g),{key:0})):B("",!0)]),_:1},512),s(V,{target:k.value},null,8,["target"])]),_:1},8,["style"])}}});export{z as default};
