import{jsx as i,jsxs as y,Fragment as b}from"react/jsx-runtime";import{Content as w}from"../containers/content.js";import{Drawer as a}from"../containers/drawer.js";import{Footer as p}from"../containers/footer.js";import{Header as x}from"../containers/header.js";import{Modal as H}from"../containers/modal.js";import{Overlay as P}from"../containers/overlay.js";import{cn as j}from"../../lib/cn.js";import{createSlot as l,createHost as C}from"create-slots";import{Children as D,cloneElement as F}from"react";const s="2.625rem",c=l(({children:e})=>i(x,{children:e})),h=l(({children:e})=>D.map(e,o=>{var n,r,t;return F(o,{color:(n=o.props.color)!==null&&n!==void 0?n:"var(--color-brand-base)",width:(r=o.props.width)!==null&&r!==void 0?r:s,height:(t=o.props.height)!==null&&t!==void 0?t:s})})),f=l(w),g=l(p),u=l(a),O=({children:e,overlay:o,...n})=>{if(o){const{animate:r,backgroundType:t,isOpen:m=!0,onHidden:d,fullscreen:v=!1}=n;return i(P,{animate:r,backgroundType:t,hide:!m,onHidden:d,fullscreen:v,children:e})}return i(b,{children:e})},T=({children:e,overlay:o=!0,...n})=>C(e,r=>{const t=r.get(c)?8:4,m=r.getProps(g),d=r.getProps(u);return i(O,{overlay:o,...n,children:i(H,{paddingType:"md",...n,children:y("div",{className:j("flex flex-col items-center gap-0 w-full",t===8?"mt-8":"mt-4"),children:[r.get(c),r.get(h),r.get(f),m&&i(p,{...m}),d&&i(a,{...d})]})})})}),k=Object.assign(T,{Header:c,Icon:h,Content:f,Footer:g,Drawer:u});export{k as Page};
//# sourceMappingURL=page.js.map
