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