1import{a as p,c as m,g as y,e as x,y as v,z as A,a3 as w,h as S,b2 as k,aZ as R,cX as _,ab as j,a4 as b,ac as g,cY as D,p as I,j as o,aC as P}from"./index-ZWP6Dbbj.js";import{r as h}from"./vendor-DKtCm5W2.js";import{w as T}from"./app-BUG-_G7c.js";import"./dayjs-timezone-iana-plugin-CmU3ItL3.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b46bca25-429e-48cb-a0b3-fcbd2575483b",e._sentryDebugIdIdentifier="sentry-dbid-b46bca25-429e-48cb-a0b3-fcbd2575483b")}catch{}const V={en:"Account already verified!",nl:"Account al geverifieerd!"},q={en:"Account verified!",nl:"Account geverifieerd!"},E={en:"Verifying Account...",nl:"Account verifiëren...."},F={accountAlreadyVerified:V,successMessage:q,title:E},M=()=>{const e=p(F),t=m(),n=y(),r=x(),u=v(),l=A(),[i]=w(),d=S(s=>!!(s.auth.user&&s.auth.user.account_verified)),c=h.useRef(!1);return h.useEffect(()=>{if(c.current)return;if(d){t(k(n.whitelabel)?"/":"/volunteer"),R.success({message:e("accountAlreadyVerified"),description:""}),c.current=!0;return}const s=i.get("token")||"";if(!s){t("/"),c.current=!0;return}c.current=!0,r(_({token:s})).then(u({message:e("successMessage")})).then(a=>{if(j(a)){const f=i.get(b.next);return t(g("twoFactorAuth",{ticket:a.ticket,next:f||void 0,email:a.email||void 0,backRedirect:a.email?g("login",{email:a.email,next:f||"/"}):void 0})),Promise.resolve()}return r(D({whitelabel:n.whitelabel})).then(()=>t(i.get(b.next)||"/"))}).catch(l())},[r,d,t,i,n.whitelabel,n.whitelabel.organization_id,e,u,l]),I(e("title")),o.jsx("div",{className:P("container-fluid",T.textCenter),children:o.jsx("h1",{className:"section-heading",style:{padding:"200px 0px"},children:o.jsx("span",{children:e("title")})})})};export{M as default}; 2//# sourceMappingURL=VerifyingAccount-Dj15a-Sd.js.map
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.