1import{r as d,j as r,i as m,l as u,a2 as x,bY as _}from"./icons-BXt-fXAl.js";import{e as g}from"./tailwind-DOMBj16Q.js";import{J as a}from"./JoJoIcon-DIuXTLGg.js";function v({display:o="raised",type:e,message:s,action:l,showIcon:i=!0,stacked:t=!1,...c}){const n=d.useMemo(()=>typeof s=="string",[s]);return r.jsxs("div",{className:g("alert",`alert__type--${e}`,{"alert__with-icon":i,"alert--flat":o==="flat","alert--raised":o==="raised","alert--stacked":t}),...c,children:[r.jsxs("div",{className:"alert__container",children:[i&&r.jsxs("span",{className:"alert__icon",children:[e==="success"&&r.jsx(a,{size:"medium",backgroundColor:"green-500",Icon:m}),e==="error"&&r.jsx(a,{size:"medium",backgroundColor:"red-500",Icon:u}),e==="warning"&&r.jsx(a,{size:"medium",backgroundColor:"yellow-500",Icon:x}),e==="info"&&r.jsx(a,{size:"medium",backgroundColor:"blue-500",Icon:_})]}),r.jsx("span",{className:"alert__message",dangerouslySetInnerHTML:n?{__html:s}:void 0,children:n?null:s})]}),l&&r.jsx("div",{className:"alert__action",children:l})]})}export{v as A};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.