{"version":3,"file":"CQEgkHBx.js","sources":["../../../../node_modules/quasar/src/components/page/QPage.js","../../../../node_modules/quasar/src/components/page/QPageContainer.js"],"sourcesContent":["import { h, computed, inject, getCurrentInstance } from 'vue'\n\nimport { createComponent } from '../../utils/private.create/create.js'\nimport { hSlot } from '../../utils/private.render/render.js'\nimport { pageContainerKey, layoutKey, emptyRenderFn } from '../../utils/private.symbols/symbols.js'\n\nexport default createComponent({\n name: 'QPage',\n\n props: {\n padding: Boolean,\n styleFn: Function\n },\n\n setup (props, { slots }) {\n const { proxy: { $q } } = getCurrentInstance()\n\n const $layout = inject(layoutKey, emptyRenderFn)\n if ($layout === emptyRenderFn) {\n console.error('QPage needs to be a deep child of QLayout')\n return emptyRenderFn\n }\n\n const $pageContainer = inject(pageContainerKey, emptyRenderFn)\n if ($pageContainer === emptyRenderFn) {\n console.error('QPage needs to be child of QPageContainer')\n return emptyRenderFn\n }\n\n const style = computed(() => {\n const offset\n = ($layout.header.space === true ? $layout.header.size : 0)\n + ($layout.footer.space === true ? $layout.footer.size : 0)\n\n if (typeof props.styleFn === 'function') {\n const height = $layout.isContainer.value === true\n ? $layout.containerHeight.value\n : $q.screen.height\n\n return props.styleFn(offset, height)\n }\n\n return {\n minHeight: $layout.isContainer.value === true\n ? ($layout.containerHeight.value - offset) + 'px'\n : (\n $q.screen.height === 0\n ? (offset !== 0 ? `calc(100vh - ${ offset }px)` : '100vh')\n : ($q.screen.height - offset) + 'px'\n )\n }\n })\n\n const classes = computed(() =>\n `q-page${ props.padding === true ? ' q-layout-padding' : '' }`\n )\n\n return () => h('main', {\n class: classes.value,\n style: style.value\n }, hSlot(slots.default))\n }\n})\n","import { h, computed, provide, inject, getCurrentInstance } from 'vue'\n\nimport { createComponent } from '../../utils/private.create/create.js'\nimport { hSlot } from '../../utils/private.render/render.js'\nimport { pageContainerKey, layoutKey, emptyRenderFn } from '../../utils/private.symbols/symbols.js'\n\nexport default createComponent({\n name: 'QPageContainer',\n\n setup (_, { slots }) {\n const { proxy: { $q } } = getCurrentInstance()\n\n const $layout = inject(layoutKey, emptyRenderFn)\n if ($layout === emptyRenderFn) {\n console.error('QPageContainer needs to be child of QLayout')\n return emptyRenderFn\n }\n\n provide(pageContainerKey, true)\n\n const style = computed(() => {\n const css = {}\n\n if ($layout.header.space === true) {\n css.paddingTop = `${ $layout.header.size }px`\n }\n if ($layout.right.space === true) {\n css[ `padding${ $q.lang.rtl === true ? 'Left' : 'Right' }` ] = `${ $layout.right.size }px`\n }\n if ($layout.footer.space === true) {\n css.paddingBottom = `${ $layout.footer.size }px`\n }\n if ($layout.left.space === true) {\n css[ `padding${ $q.lang.rtl === true ? 'Right' : 'Left' }` ] = `${ $layout.left.size }px`\n }\n\n return css\n })\n\n return () => h('div', {\n class: 'q-page-container',\n style: style.value\n }, hSlot(slots.default))\n }\n})\n"],"names":["__nuxt_component_10","createComponent","props","slots","$q","getCurrentInstance","$layout","inject","layoutKey","emptyRenderFn","pageContainerKey","style","computed","offset","height","classes","h","hSlot","__nuxt_component_11","_","provide","css"],"mappings":"uGAMA,MAAAA,EAAeC,EAAgB,CAC7B,KAAM,QAEN,MAAO,CACL,QAAS,QACT,QAAS,QACV,EAED,MAAOC,EAAO,CAAE,MAAAC,GAAS,CACvB,KAAM,CAAE,MAAO,CAAE,GAAAC,CAAI,CAAA,EAAKC,EAAoB,EAExCC,EAAUC,EAAOC,EAAWC,CAAa,EAC/C,GAAIH,IAAYG,EACd,eAAQ,MAAM,2CAA2C,EAClDA,EAIT,GADuBF,EAAOG,EAAkBD,CAAa,IACtCA,EACrB,eAAQ,MAAM,2CAA2C,EAClDA,EAGT,MAAME,EAAQC,EAAS,IAAM,CAC3B,MAAMC,GACDP,EAAQ,OAAO,QAAU,GAAOA,EAAQ,OAAO,KAAO,IACtDA,EAAQ,OAAO,QAAU,GAAOA,EAAQ,OAAO,KAAO,GAE3D,GAAI,OAAOJ,EAAM,SAAY,WAAY,CACvC,MAAMY,EAASR,EAAQ,YAAY,QAAU,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