import{d,O as i,_ as u,r as F,Q as M,J as H,s as _,u as L,D as t,o as E,a4 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.3a30a18d.js";const I=d({name:"layoutMain"}),S=d({...I,setup(N,{expose:y}){const g=i(()=>u(()=>import("./parent.136b098c.js"),["parent.136b098c.js","index.3a30a18d.js","index.dbc27bcc.css"],import.meta.url)),v=i(()=>u(()=>import("./index.f4870233.js"),["index.f4870233.js","index.3a30a18d.js","index.dbc27bcc.css"],import.meta.url)),r=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),n=t(()=>{if(x.value)return"0px";const{isTagsview:l,layout:c}=o.value;return l&&c!=="classic"?"85px":"51px"});return E(()=>{P.done(600)}),y({layoutMainScrollbarRef:r}),(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(n)})`:`minHeight: calc(100% - ${e(n)})`)},{default:f(()=>[s(R,{ref_key:"layoutMainScrollbarRef",ref:r,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};
