1import{j as n,ad as m}from"./index-878ce38c.js";import{e as p,r as c}from"./react-0e2a0c96.js";const i=1500,d=1e3,l=({duration:e=i,children:o})=>{const[r,t]=c.useState(!0);return c.useEffect(()=>{const s=setTimeout(()=>t(!1),e);return()=>clearTimeout(s)},[e]),n(m,{className:"pointer-events-none fixed inset-0 z-50 flex items-center justify-center",show:r,appear:!0,enter:"transition-opacity",enterFrom:"opacity-0",leave:"transition-opacity",leaveTo:"opacity-0",children:n("div",{className:"rounded-md bg-bg-dark/75 px-4 py-3 text-center text-sm/[22px] text-white",children:o})})},x=(e,o)=>{var a;const r=document.getElementById("portal"),t=document.createElement("div");r.appendChild(t),p(t).render(n(l,{...e})),setTimeout(()=>{r.removeChild(t),o&&o()},((a=e.duration)!=null?a:i)+d)};export{x as c};
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.