1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b09af959-b257-5c82-99f6-61a5ab35bee2")}catch(e){}}(); 3(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`1a3ffb16aed9f6caf99eb9f1a0620217e6f615c9`}}catch{}})();import{a as e}from"./Ss3RermcrJcCyWKt.js";import{j as t,r as n}from"./D8FKODuVeEkPft8o.js";import{Q as r}from"./C9VzbK_t5AXcIHPz.js";import{x as i}from"./CORLqnMhGJJ8sQ5E.js";import{G as a,Jr as o,W as s,Y as c}from"./BpAXEdPGl_wXBewH.js";import{Y as l}from"./BxyuILidGcvpHACy.js";import{n as u,t as d}from"./BZ2yjvY1LBXdmAVm.js";var f=e(t(),1),p=n(),m=(0,f.createContext)({});function h(){return(0,f.use)(m)}var g=({type:e,icon:t,children:n,remove:r})=>(0,p.jsxs)(`button`,{className:l(`pointer-events-auto flex w-full max-w-xl items-center gap-4 roun
3ded-lg px-6 py-4 text-left shadow-brand-1`,{success:`bg-brand-gradient text-white-20`,error:`bg-white-10 dark:bg-black-80 border-2 border-red-500 text-black-80 dark:text-white-20 motion-preset-slide-left`,warning:`bg-black-80 text-white-20 border-2 border-yellow-500`}[e]),type:`button`,onClick:()=>r(),children:[(0,p.jsx)(t,{className:`size-5 shrink-0`,strokeWidth:2}),(0,p.jsx)(`span`,{"data-mask":!0,className:`font-montserrat font-semibold`,children:n})]}),_=({children:e})=>{let{t}=i(),[n,l]=(0,f.useState)([]),h=(0,f.useCallback)(e=>{l(t=>t.filter(({id:t})=>t!==e.id))},[]),_=(0,f.useCallback)(async e=>{typeof e==`string`&&(e={value:e});let{type:t=`success`,icon:n,duration:i=`short`,value:a}=e;if(o.native)return r.show({duration:i,text:t===`success`?a:t===`warning`?`â ï¸ ${a}`:`ð« ${a}`,position:`bottom`});let s=i===`short`?2e3:3500,c={id:String(performance.now()),type:t,icon:n||(t===`success`?u:d),ttl:s,children:a,remove:()=>{h(c)}};c.ttl&&setTimeout(()=>c.remove(),c.ttl),l(e=>[c,...e])},[h]),v=(0,f.useCallback)(async(e,{expected:n=!1}={})=>{if(a(e))return;let r=typeof e==`object`&&!!e&&`message`in e&&typeof e.message==`string`&&e.message||typeof e==`string`&&e||t(`errors.internal_server_error`);return!n&&!s(e)&&c(e),_({type:`error`,value:r})},[t,_]);return(0,p.jsxs)(m,{value:(0,f.useMemo)(()=>({toasts:n,add:_,remove:h,addError:v}),[n,_,h,v]),children:[e,n.length>0&&(0,p.jsx)(`div`,{className:`pointer-events-none fixed bottom-16 right-0 z-[999] flex flex-col-reverse gap-2 p-8 px-4 desktop:bottom-[unset] desktop:top-16 desktop:px-8`,children:n.map(e=>(0,f.createElement)(g,{...e,key:e.id}))})]})};export{h as n,_ as t}; 4//# sourceMappingURL=DLZRjqBCwWkcZdsd.js.map 5//# debugId=b09af959-b257-5c82-99f6-61a5ab35bee2
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.