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