1import{r as s,j as t}from"./react-vendor.B75MsAI9.js";import{u as e,dT as i,cp as n,S as a,a1 as o,L as c,t as l,p as r,fE as m}from"./AuthModalContainer.D3JsQqnf.js";import{B as d}from"./Block.v-v90TCf.js";const p=({type:l="info",content:r,onDismiss:m,customDelay:d,isRtl:p})=>{var j;const u=e(),f="pb-slim-notification",_=[f,`${f}--${l}`];s.useEffect(()=>{const s=setTimeout(()=>{m&&m()},d||i.slimNotificationModal);return()=>{clearTimeout(s)}},[m,d]);const v="object"==typeof r&&(null==(j=r.props)?void 0:j.children)||r;return n(v)&&_.push(`${f}--rtl`),t.jsxs("div",{className:_.join(" "),children:[t.jsx("div",{className:`${f}__icon-wrapper`,children:t.jsx(a,{parentClassName:`${f}__icon`,name:l,title:u(`SvgTitle.${l}`),size:"m"})}),t.jsx("div",{className:`${f}__content-wrapper`,children:"object"==typeof r?t.jsx("p",{className:`${f}__content`,children:r}):t.jsx("p",{className:`${f}__content`,dangerouslySetInnerHTML:{__html:o(r)}})}),t.jsx("div",{className:`${f}__actions`,children:t.jsx(c,{parentClassName:`${f}__close`,onClick:m,children:t.jsx(a,{name:"close",title:u("SvgTitle.close")})})})]})},j=[],u=({isRtl:e})=>{const i=l(),n=r(s=>{var t;return null==(t=s.slimNotification)?void 0:t.notifications}),a=s.useMemo(()=>n||j,[n]);return t.jsx("div",{className:"pb-slim-notification-container",children:t.jsx(d,{noHorizontalPadding:!0,noVerticalPadding:!0,children:a.map((s,n)=>{const a={onDismiss:()=>i(m(n))};return t.jsx(p,{...a,...s,isRtl:e},n)})})})};export{u as default};
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.