PageSourceSearch

https://app.tradersage.ai/assets/verification-DIYx51dw.js

js tradersage.ai collected 2026-10-05 17:08:08 UTC 3,655 bytes, 7 lines download raw bytes

1import{l as j,r as i,j as e,d as k,a as b}from"./index-B_4BzK30.js";import"./index-CIG1VE-2.js";import{o as N,B as x,s as w}from"./dialog-CkKzn3v-.js";import{L as E}from"./loader-circle-T1bpeFWk.js";import"./index.esm-DHDyYGTX.js";import"./index-UWbfGETR.js";import"./index-6OLonfqe.js";import"./index-C6xRL10N.js";import"./index-CG6HB-sk.js";import"./index-BaX5Fzk6.js";import"./x-Zkl9hQjf.js";import"./index-JpZqXZwa.js";import"./index-B7UvbHh4.js";import"./index-Lsr33yXO.js";import"./index-an6I7imj.js";import"./index-BdQq_4o_.js";import"./isSameDay-BVkBy132.js";/**
2 * @license lucide-react v0.397.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const S=j("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);function I({auth:t,onVerified:n,onSignInClick:a}){var m;const[c,o]=i.useState(!1),[p,f]=i.useState(!1),[l,d]=i.useState(null),h=((m=t.currentUser)==null?void 0:m.email)||"";i.useEffect(()=>{const r=setInterval(()=>{var s,u;(s=t.currentUser)==null||s.reload(),(u=t.currentUser)==null||u.getIdToken(!0)},1e4),y=N(t,s=>{s!=null&&s.emailVerified&&(clearInterval(r),setTimeout(()=>{n()},100))});return()=>{clearInterval(r),y()}},[t,n]);const g=async()=>{if(!t.currentUser){a();return}o(!0),d(null);try{await w(t.currentUser),f(!0)}catch(r){d("Failed to send verification email. Please try again later."),console.error("Error sending verification email:",r)}finally{o(!1)}},v=async()=>{try{await t.signOut(),a()}catch(r){console.error("Error signing out:",r)}};return e.jsxs("div",{className:"flex flex-col items-center justify-center gap-6 p-6 text-center",children:[e.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-yellow-100 text-yellow-600 dark:bg-yellow-900 dark:text-yellow-300",children:e.jsx(S,{className:"h-8 w-8",strokeWidth:2})}),e.jsx("h1",{className:"text-2xl font-semibold",children:"Email Verification Required"}),e.jsxs("div",{className:"max-w-md space-y-4",children:[e.jsxs("p",{className:"text-muted-foreground",children:["Your email address ",e.jsx("strong",{children:h})," needs to be verified before you can access the app."]}),e.jsx("p",{className:"text-muted-foreground",children:"Please check your inbox for a verification email and click the link to verify your account."}),p&&e.jsx("div",{className:"rounded-md bg-success/10 p-4 dark:bg-success/20",children:e.jsx("p",{className:"text-success dark:text-success",children:"Verification email has been resent. Please check your inbox."})}),l&&e.jsx("div",{className:"rounded-md bg-destructive/10 p-4 dark:bg-destructive/20",children:e.jsx("p",{className:"text-destructive dark:text-destructive",children:l})}),e.jsxs("div",{className:"flex flex-col gap-3 pt-4 sm:flex-row sm:justify-center",children:[e.jsx(x,{variant:"outline",onClick:v,children:"Sign Out"}),e.jsx(x,{onClick:g,disabled:c,className:"purple-gradient hover:purple-gradient-hover text-white dark:text-black",children:c?e.jsxs(e.Fragment,{children:[e.jsx(E,{className:"mr-2 h-4 w-4 animate-spin"}),"Sending..."]}):"Resend Verification Email"})]}),e.jsx("div",{className:"mt-8 text-sm text-muted-foreground",children:e.jsxs("p",{children:["Already verified your email?"," ",e.jsx("button",{type:"button",onClick:a,className:"text-primary hover:text-primary/80",children:"Sign in again"})]})})]})]})}function G(){const t=k();return e.jsx(I,{auth:b,onVerified:()=>t({to:"/dashboard"}),onSignInClick:()=>t({to:"/signin"})})}export{G as component};
7//# sourceMappingURL=verification-DIYx51dw.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.