import{d,O as i,P as u,g as F,R as L,N as M,s as _,i as P,c as t,j as E,a7 as H,l as a,o as m,b as p,y as f,x as s,u as e,K as N,n as A,_ as B}from"./index.4042ed24.js";const I=d({name:"layoutMain"}),O=d({...I,setup(S,{expose:y}){const g=i(()=>u(()=>import("./parent.8b8a6290.js"),["parent.8b8a6290.js","index.4042ed24.js","index.dbc27bcc.css"],import.meta.url)),x=i(()=>u(()=>import("./index.75fb6e0e.js"),["index.75fb6e0e.js","index.4042ed24.js","index.dbc27bcc.css"],import.meta.url)),n=F(),b=L(),v=M(),{isTagsViewCurrenFull:w}=_(v),h=P(),{themeConfig:o}=_(h),k=t(()=>o.value.isFixedHeader),C=t(()=>o.value.isFooter&&!b.meta.isIframe),r=t(()=>{if(w.value)return"0px";const{isTagsview:l,layout:c}=o.value;return l&&c!=="classic"?"85px":"51px"});return E(()=>{H.done(600)}),y({layoutMainScrollbarRef:n}),(l,c)=>{const R=a("el-scrollbar"),T=a("el-backtop"),V=a("el-main");return m(),p(V,{class:"layout-main",style:A(e(k)?`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(C)?(m(),p(e(x),{key:0})):N("v-if",!0)]),_:1},512),s(T,{target:".layout-backtop .el-scrollbar__wrap"})]),_:1},8,["style"])}}}),D=B(O,[["__file","/data/jenkins/workspace/badp-bcxin-web-5.x-dispatchBusiness/src/layout/component/main.vue"]]);export{D as default};
