(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95468,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",()=>t],95468)},63209,e=>{"use strict";let t=(0,e.i(75254).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",()=>t],63209)},88840,e=>{"use strict";var t=e.i(43476),r=e.i(80691),s=e.i(37727),i=e.i(95468),l=e.i(63209);let a=(0,e.i(75254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var d=e.i(75157),o=e.i(18566);function c(){let e=(0,r.useToasts)(),c=(0,o.useRouter)();return(0,t.jsx)("div",{className:"fixed top-20 right-6 z-100 flex flex-col gap-2 w-full max-w-sm pointer-events-none",children:(0,t.jsx)("div",{className:"flex flex-col-reverse gap-2",children:e.slice(-5).map(e=>(0,t.jsxs)("div",{onClick:()=>{e.metadata?.leadId&&(c.push(`/leads?leadId=${e.metadata.leadId}`),r.toast.dismiss(e.id))},className:(0,d.cn)("pointer-events-auto flex items-start gap-3 p-4 rounded-xl border shadow-lg backdrop-blur-md transition-all duration-300 animate-in fade-in slide-in-from-right-8 hover:scale-[1.02] cursor-pointer","bg-background/95 border-border","success"===e.type&&"border-l-4 border-l-emerald-500","error"===e.type&&"border-l-4 border-l-destructive","info"===e.type&&"border-l-4 border-l-primary"),children:[(0,t.jsxs)("div",{className:"mt-0.5 shrink-0",children:["success"===e.type&&(0,t.jsx)(i.CheckCircle2,{size:18,className:"text-emerald-500"}),"error"===e.type&&(0,t.jsx)(l.AlertCircle,{size:18,className:"text-destructive"}),"info"===e.type&&(0,t.jsx)(a,{size:18,className:"text-primary"})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[e.title&&(0,t.jsx)("h4",{className:"text-sm font-bold leading-none text-foreground mb-1.5",children:e.title}),(0,t.jsx)("p",{className:(0,d.cn)("text-sm leading-tight",e.title?"text-muted-foreground font-medium":"text-foreground font-semibold"),children:e.message}),e.metadata?.leadId&&(0,t.jsx)("p",{className:"text-[10px] uppercase font-bold text-primary mt-2",children:"View details →"})]}),(0,t.jsx)("button",{onClick:t=>{t.stopPropagation(),r.toast.dismiss(e.id)},className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors p-0.5 rounded-md hover:bg-muted",children:(0,t.jsx)(s.X,{size:16})})]},e.id))})})}e.s(["ToastContainer",()=>c],88840)}]);