import{C as k,i as w,x as C,n as T}from"./index.8a64ecdf.js";import{d as u,r as R,an as M,ak as c,k as a,j as V,a8 as t,o as F,E as H,G as i,M as o,u as A,A as B,am as E}from"./vue.95e072e2.js";import"./elementPlus.58179425.js";import"./echarts.72dc8373.js";const L=u({name:"layoutMain"}),j=u({...L,setup(P,{expose:_}){const m=E(()=>T(()=>import("./parent.ad4481fc.js"),["assets/parent.ad4481fc.js","assets/index.8a64ecdf.js","assets/vue.95e072e2.js","assets/elementPlus.58179425.js","assets/echarts.72dc8373.js","assets/index.c1001ae2.css"])),s=R(),p=M(),f=k(),d=w(),{themeConfig:e}=c(d),{isTagsViewCurrenFull:y}=c(f);a(()=>e.value.isFooter&&!p.meta.isIframe);const v=a(()=>e.value.isFixedHeader),x=a(()=>e.value.isFixedHeader?".layout-backtop-header-fixed .el-scrollbar__wrap":".layout-backtop .el-scrollbar__wrap"),l=a(()=>{if(y.value)return"0px";const{isTagsview:r,layout:n}=e.value;return r&&n!=="classic"?"85px":"51px"});return V(()=>{C.done(600)}),_({layoutMainScrollbarRef:s}),(r,n)=>{const g=t("el-scrollbar"),b=t("el-backtop"),h=t("el-main");return F(),H(h,{class:"layout-main",style:B(v.value?`height: calc(100% - ${l.value})`:`minHeight: calc(100% - ${l.value})`)},{default:i(()=>[o(g,{ref_key:"layoutMainScrollbarRef",ref:s,class:"layout-main-scroll layout-backtop-header-fixed","wrap-class":"layout-main-scroll","view-class":"layout-main-scroll"},{default:i(()=>[o(A(m))]),_:1},512),o(b,{target:x.value},null,8,["target"])]),_:1},8,["style"])}}});export{j as default};
