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