"use strict";var e=require("react/jsx-runtime");require("@styled/tokens");var f=require("../icons/ico-code.js"),n=require("./page.js"),a=require("../primitives/text.js"),d=require("@styled/css"),o=require("@styled/jsx"),l=require("create-slots"),i=require("react");const u=l.createSlot(({children:s,...r})=>e.jsx(o.Center,{children:i.Children.map(s,t=>i.cloneElement(t,r))})),x=l.createSlot(({children:s,...r})=>e.jsx(o.Center,{children:i.Children.map(s,t=>i.cloneElement(t,r))})),h=({children:s,detailTitle:r,detailMessage:t,title:j,message:g,...m})=>l.createHost(s,c=>{const v=c.get(u),q=c.get(x);return e.jsxs(n.Page,{...m,children:[e.jsx(n.Page.Icon,{children:v||e.jsx(f.default,{})}),e.jsxs(n.Page.Content,{children:[e.jsx(a.default.H3,{styles:{textAlign:"center"},children:j}),e.jsx(a.default,{size:"md",styles:{textAlign:"center"},children:g}),t&&e.jsxs("div",{className:d.css({background:"negative.lightest",borderRadius:"0.5rem",my:4,p:4,width:"full"}),children:[r&&e.jsx(a.default,{variant:"error",children:e.jsx("b",{className:d.css({textTransform:"uppercase"}),children:r})}),e.jsx(a.default,{variant:"error",children:t})]}),q]}),e.jsx(n.Page.Footer,{})]})}),p=Object.assign(h,{Icon:u,Button:x});exports.Component=h,exports.Error=p;
//# sourceMappingURL=error.js.map
