PageSourceSearch

https://studio.firstory.me/assets/EmailVerification-BEC6_rK_.js

js firstory.me collected 2026-09-24 08:42:34 UTC 1,468 bytes, 1 lines download raw bytes

1import{a as n,j as e}from"./react-vendor-BGQ-fvu8.js";import{k as p,Y as v,a_ as y,a$ as b,R as g,C as w,M as a,B as x,m as k}from"./main-BjGN4ckN.js";import{A as c}from"./Layout-DamczIiy.js";import"./charts-vendor-fU6IkEZ_.js";import"./lodash-vendor-0cI-KiNp.js";import"./apollo-vendor-WdUFfbxi.js";import"./chevron-left-5-Gg-yzc.js";function V(){const m=p(),r=v(),i=new URLSearchParams(m.search),o=y(),[l,u]=n.useState({ready:!1,active:!1}),d=b(),f=n.useCallback(async()=>{await d(),r.push("/email-verify-sent")},[d,r]),t=i.get("email"),s=i.get("token"),h=i.get("next");return n.useEffect(()=>{!t||!s||o(t,s).then(j=>{u({ready:!0,active:!!j.data?.authUserActivate.active})})},[t,s,o]),!t||!s?e.jsx(g,{to:"/"}):l.ready?l.active?e.jsx(c,{children:e.jsxs("div",{className:"flex w-full flex-col items-center text-center",children:[e.jsx("h3",{className:"mb-8 text-center text-3xl font-bold",children:e.jsx(a,{id:"auth.emailVerify.success"})}),e.jsx(x,{variant:"secondary",onClick:()=>{if(h==="open"){window.location.href=k.urls.player;return}r.push("/dashboard")},children:e.jsx(a,{id:"dashboard.viewDashboard"})})]})}):e.jsx(c,{children:e.jsxs("div",{className:"flex w-full flex-col items-center text-center",children:[e.jsx("h3",{className:"mb-8 text-center text-3xl font-bold",children:e.jsx(a,{id:"auth.emailVerify.failed"})}),e.jsx(x,{size:"lg",onClick:f,children:e.jsx(a,{id:"auth.emailVerify.resend"})})]})}):e.jsx(c,{children:e.jsx(w,{})})}export{V 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.