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