import{aJ as o,aK as d,ao as e,gl as L,aL as c,gm as b,gn as D,go as j,gp as R,gq as $,bN as S}from"./app-k0jcl5PQ.js";const v=L("h4");v.displayName="DivStyledAsH4";const N=o.forwardRef(({className:a,bsPrefix:s,as:r=v,...n},t)=>(s=d(s,"alert-heading"),e.jsx(r,{ref:t,className:c(a,s),...n})));N.displayName="AlertHeading";const A=o.forwardRef(({className:a,bsPrefix:s,as:r=b,...n},t)=>(s=d(s,"alert-link"),e.jsx(r,{ref:t,className:c(a,s),...n})));A.displayName="AlertLink";const C=o.forwardRef((a,s)=>{const{bsPrefix:r,show:n=!0,closeLabel:t="Close alert",closeVariant:k,className:w,children:y,variant:m="primary",onClose:u,dismissible:h,transition:x=j,...f}=D(a,{show:"onClose"}),l=d(r,"alert"),E=R(H=>{u&&u(!1,H)}),i=x===!0?j:x,g=e.jsxs("div",{role:"alert",...i?void 0:f,ref:s,className:c(w,l,m&&`${l}-${m}`,h&&`${l}-dismissible`),children:[h&&e.jsx($,{onClick:E,"aria-label":t,variant:k}),y]});return i?e.jsx(i,{unmountOnExit:!0,...f,ref:void 0,in:n,children:g}):n?g:null});C.displayName="Alert";const p=Object.assign(C,{Link:A,Heading:N});function F({error:a}){return S({title:"Dev Error"}),a?e.jsxs("div",{className:"px-3",children:[e.jsx("h1",{children:a.name}),e.jsx(p,{variant:"danger",children:e.jsx("h2",{children:a.message})}),e.jsxs(p,{variant:"warning",children:[e.jsx("h3",{children:"Call stack"}),e.jsx("code",{children:a.stack})]})]}):e.jsx(e.Fragment,{})}export{F as DevErrorView};
//# sourceMappingURL=DbuMI-dw.chunk.js.map
