import{a7 as e,a8 as a,a as n,Q as s,a9 as t,i,aa as r,ab as o,g as c}from"./index.3938ccd1.js";var l=e({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:l}){const{proxy:{$q:p}}=c(),u=i(r,a);if(u===a)return a;if(i(o,a)===a)return a;const h=n((()=>{const a=(!0===u.header.space?u.header.size:0)+(!0===u.footer.space?u.footer.size:0);if("function"==typeof e.styleFn){const n=!0===u.isContainer.value?u.containerHeight.value:p.screen.height;return e.styleFn(a,n)}return{minHeight:!0===u.isContainer.value?u.containerHeight.value-a+"px":0===p.screen.height?0!==a?`calc(100vh - ${a}px)`:"100vh":p.screen.height-a+"px"}})),g=n((()=>"q-page"+(!0===e.padding?" q-layout-padding":"")));return()=>s("main",{class:g.value,style:h.value},t(l.default))}});export{l as Q};
