PageSourceSearch

https://zahit-pro-v2.pages.dev/assets/Toaster-CvnO9gEM.js

js zahit-pro-v2.pages.dev collected 2026-10-03 06:01:54 UTC 2,022 bytes, 6 lines download raw bytes

1import{j as a}from"./jsx-runtime-0DLF9kdB.js";import{R as c}from"./index-DM-Ysix_.js";import{A as g}from"./index-Dc83_iFP.js";import{m as y}from"./proxy-TcOPxGtH.js";const m=e=>{let s;const t=new Set,n=(r,d)=>{const i=typeof r=="function"?r(s):r;if(!Object.is(i,s)){const f=s;s=d??(typeof i!="object"||i===null)?i:Object.assign({},s,i),t.forEach(b=>b(s,f))}},o=()=>s,u={setState:n,getState:o,getInitialState:()=>x,subscribe:r=>(t.add(r),()=>t.delete(r))},x=s=e(n,o,u);return u},S=(e=>e?m(e):m),j=e=>e;function h(e,s=j){const t=c.useSyncExternalStore(e.subscribe,c.useCallback(()=>s(e.getState()),[e,s]),c.useCallback(()=>s(e.getInitialState()),[e,s]));return c.useDebugValue(t),t}const p=e=>{const s=S(e),t=n=>h(s,n);return Object.assign(t,s),t},v=(e=>e?p(e):p),w=v(e=>({toasts:[],addToast:(s,t="info")=>{const n=crypto.randomUUID();e(o=>({toasts:[...o.toasts,{id:n,message:s,type:t}]})),setTimeout(()=>{e(o=>({toasts:o.toasts.filter(l=>l.id!==n)}))},4e3)},removeToast:s=>e(t=>({toasts:t.toasts.filter(n=>n.id!==s)}))}));function O(){const{toasts:e,removeToast:s}=w();return a.jsx("div",{className:"fixed top-4 left-0 right-0 z-[100] pointer-events-none flex flex-col items-center gap-2 px-4",children:a.jsx(g,{children:e.map(t=>a.jsxs(y.div,{initial:{opacity:0,y:-20,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-20,scale:.9},layout:!0,className:`
2              pointer-events-auto px-6 py-3 rounded-full backdrop-blur-xl border shadow-2xl flex items-center gap-3 min-w-[200px] justify-center
3              ${t.type==="success"?"bg-green-500/10 border-green-500/20 text-green-400":""}
4              ${t.type==="error"?"bg-red-500/10 border-red-500/20 text-red-400":""}
5              ${t.type==="info"?"bg-white/10 border-white/10 text-white":""}
6            `,children:[a.jsxs("span",{className:"text-lg",children:[t.type==="success"&&"✓",t.type==="error"&&"✕",t.type==="info"&&"ℹ"]}),a.jsx("span",{className:"text-sm font-bold tracking-wide",children:t.message})]},t.id))})})}export{O as T,w as u};

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.