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