"use strict";exports.id=7502,exports.ids=[7502],exports.modules={87502:(t,s,e)=>{e.d(s,{pm:()=>u});var o=e(9885);let a=0,r=new Map,i=t=>{if(r.has(t))return;let s=setTimeout(()=>{r.delete(t),d({type:"REMOVE_TOAST",toastId:t})},1e6);r.set(t,s)},n=(t,s)=>{switch(s.type){case"ADD_TOAST":return{...t,toasts:[s.toast,...t.toasts].slice(0,1)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(t=>t.id===s.toast.id?{...t,...s.toast}:t)};case"DISMISS_TOAST":{let{toastId:e}=s;return e?i(e):t.toasts.forEach(t=>{i(t.id)}),{...t,toasts:t.toasts.map(t=>t.id===e||void 0===e?{...t,open:!1}:t)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...t,toasts:[]};return{...t,toasts:t.toasts.filter(t=>t.id!==s.toastId)}}},T=[],S={toasts:[]};function d(t){S=n(S,t),T.forEach(t=>{t(S)})}function p({...t}){let s=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),e=()=>d({type:"DISMISS_TOAST",toastId:s});return d({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:t=>{t||e()}}}),{id:s,dismiss:e,update:t=>d({type:"UPDATE_TOAST",toast:{...t,id:s}})}}function u(){let[t,s]=o.useState(S);return o.useEffect(()=>(T.push(s),()=>{let t=T.indexOf(s);t>-1&&T.splice(t,1)}),[t]),{...t,toast:p,dismiss:t=>d({type:"DISMISS_TOAST",toastId:t})}}}};