import{d,O as i,_ as u,r as F,Y as M,J as H,s as _,u as L,D as t,o as E,a7 as P,c as a,f as m,M as p,m as f,l as s,e,K as A,H as D}from"./index.2c7321ca.js";const I=d({name:"layoutMain"}),S=d({...I,setup(N,{expose:y}){const g=i(()=>u(()=>import("./parent.0961c2e4.js"),["assets/parent.0961c2e4.js","assets/index.2c7321ca.js","assets/index.319ce9dc.css"])),v=i(()=>u(()=>import("./index.b1b5e2b5.js"),["assets/index.b1b5e2b5.js","assets/index.2c7321ca.js","assets/index.319ce9dc.css"])),n=F(),h=M(),w=H(),{isTagsViewCurrenFull:x}=_(w),C=L(),{themeConfig:o}=_(C),T=t(()=>o.value.isFixedHeader),b=t(()=>o.value.isFooter&&!h.meta.isIframe),r=t(()=>{if(x.value)return"0px";const{isTagsview:l,layout:c}=o.value;return l&&c!=="classic","0px"});return E(()=>{P.done(600)}),y({layoutMainScrollbarRef:n}),(l,c)=>{const R=a("el-scrollbar"),V=a("el-backtop"),k=a("el-main");return m(),p(k,{class:"layout-main",style:D(e(T)?`height: calc(100% - ${e(r)})`:`minHeight: calc(100% - ${e(r)})`)},{default:f(()=>[s(R,{ref_key:"layoutMainScrollbarRef",ref:n,class:"layout-main-scroll","wrap-class":"layout-main-scroll","view-class":"layout-main-scroll"},{default:f(()=>[s(e(g)),e(b)?(m(),p(e(v),{key:0})):A("",!0)]),_:1},512),s(V,{target:".layout-backtop .el-scrollbar__wrap"})]),_:1},8,["style"])}}});export{S as default};