import{S as e,_ as t,b as n,s as r}from"./runtime-core.esm-bundler-Babufkcf.js";import{t as i}from"./create-CGAkPJkS.js";import{r as a,t as o}from"./symbols-0I_wUpZS.js";import{a as s}from"./QIcon-cTVL6ikA.js";var c=i({name:`QPage`,props:{padding:Boolean,styleFn:Function},setup(i,{slots:c}){let{proxy:{$q:l}}=t(),u=e(a,o);if(u===o)return console.error(`QPage needs to be a deep child of QLayout`),o;if(e(`_q_pc_`,o)===o)return console.error(`QPage needs to be child of QPageContainer`),o;let d=r(()=>{let e=(u.header.space?u.header.size:0)+(u.footer.space?u.footer.size:0);if(typeof i.styleFn==`function`){let t=u.isContainer.value?u.containerHeight.value:l.screen.height;return i.styleFn(e,t)}return{minHeight:u.isContainer.value?u.containerHeight.value-e+`px`:l.screen.height===0?e===0?`100vh`:`calc(100vh - ${e}px)`:l.screen.height-e+`px`}}),f=r(()=>`q-page${i.padding?` q-layout-padding`:``}`);return()=>n(`main`,{class:f.value,style:d.value},s(c.default))}});export{c as t};