1import{j as e}from"./vendor-dotlottie-CKWLB76h.js";import{a,L as g,j}from"./vendor-react-CCzXVbVA.js";import{L as y,b as S,Y as E,_ as L,A as b,c as A,j as k,d as v,$ as _,l as w}from"./app-ZGxtfi_0.js";import{F as i,a0 as F,T as l,g as I}from"./vendor-chakra-z2eW50qa.js";import"./vendor-analytics-kxESroPO.js";import"./vendor-victory-2uYGyQN6.js";import"./vendor-query-Cq2FYR_1.js";import"./vendor-monaco-CiJro7ev.js";const m=F(i);function M(){return new URLSearchParams(j().search)}const C=()=>{const[u,s]=a.useState(!1),[n,r]=a.useState(null),[d,f]=a.useState(""),o=M();let x=o.get("email")?.toString();const p=o.get("token")?.toString(),h=k("SignUp");return a.useEffect(()=>{(async()=>{s(!0);try{const{data:t}=await b.post(A.API_VERIFY_EMAIL,{email:x,token:p});if(t&&t.status==="success"){r("success"),s(!1),h("email-signup-success","email-signup-success"),v.authenticateUser();const c=_();c&&w({...c,new_user:!0})}else s(!1)}catch(t){s(!1),r("failed"),f(t.response.data.message)}})()},[]),e.jsxs(e.Fragment,{children:[e.jsx(i,{as:"header",justifyContent:"space-between",maxW:"80vw",mx:"auto",py:8,children:e.jsx(y,{})}),u&&e.jsx(i,{align:"center",direction:"column",my:36,children:e.jsx(S,{})}),n==="success"&&e.jsxs(m,{align:"center",direction:"column",my:36,initial:{opacity:0}
1,animate:{opacity:1},children:[e.jsx(E,{size:130}),e.jsx(l,{fontSize:"2xl",fontWeight:600,mb:4,mt:8,children:"Email has been verified"}),e.jsx(g,{id:"ss-dashboard",to:"/home",children:e.jsx(I,{id:"ss-go-dashboard",variant:"brand",width:"350px",my:2,children:"Go to dashboard"})})]}),n==="failed"&&e.jsxs(m,{align:"center",direction:"column",my:36,initial:{opacity:0},animate:{opacity:1},children:[e.jsx(L,{size:130}),e.jsx(l,{fontSize:"2xl",fontWeight:600,mb:4,mt:8,color:"red",children:d})]})]})};export{C as default};
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.