PageSourceSearch

https://cloud.resilis.io/assets/email-verification-pending-B7aAK3oq.js

js resilis.io collected 2026-09-24 19:38:37 UTC 2,666 bytes, 1 lines download raw bytes

1import{j as e}from"./ui-vendor-DSsww-Kv.js";import{a0 as u,a1 as f,B as x,a2 as h,a3 as o,w as g,a4 as p}from"./index-DAt3PBr5.js";import{u as v,g as j,a as b,L as l}from"./react-vendor-NvA41F0Y.js";import{V as y}from"./verification-state-Diah91eq.js";import{M as w}from"./mail-DO1nO3j0.js";import{R as N}from"./refresh-cw-BSg9mvOJ.js";function C(){const c=v(),[d]=j(),i=c.state?.email||"",s=u(d.get("returnTo")),[r,n]=b.useState(!1),{toast:t}=f(),m=async()=>{if(!i){t({title:"Error",description:"No email address available. Please sign up again.",variant:"destructive"});return}n(!0);try{const{error:a}=await g.sendVerificationEmail({email:i,callbackURL:p(s)});if(a){if(a.status===429){t({title:"Please wait before trying again",description:"Verification emails are limited to three per minute. Try again shortly.",variant:"destructive"});return}t({title:"Error",description:a.message||"Failed to resend verification email",variant:"destructive"});return}t({title:"Request received",description:"If this address still needs verification, a new link has been sent."})}catch{t({title:"Error",description:"An unexpected error occurred",variant:"destructive"})}finally{n(!1)}};return e.jsx(y,{eyebrow:"Verification required",title:"Confirm your email",description:"We need to verify that this address belongs to you before you can continue in Resilis.",icon:w,tone:"attention",actions:e.jsxs(e.Fragment,{children:[e.jsx(x,{className:"w-full",variant:"outline",onClick:m,disabled:r||!i,children:r?e.jsxs(e.Fragment,{children:[e.jsx(h,{className:"mr-2 h-4 w-4"}),"Sending..."]}):e.jsxs(e.Fragment,{children:[e.jsx(N,{className:"mr-2 h-4 w-4"}),"Resend verification email"]})}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Already verified?"," ",e.jsx(l,{to:o("/sign-in",{returnTo:s}),className:"font-medium text-resilis-core hover:underline",children:"Sign in"})]}),!i&&e.jsx(l,{to:o("/resend-verification",{returnTo:s}),className:"block text-sm font-medium text-resilis-core hover:underline",children:"Enter your email to request a new link"})]}),children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground",children:"Verification sent to"}),i?e.jsx("p",{className:"break-all text-sm font-semibold text-foreground",children:i}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Your signup email address"}),e.jsx("p",{className:"text-sm leading-6 text-muted-foreground",children:"Open the message and follow the verification link. If it is not in your inbox, check spam before requesting another."})]})})}export{C as EmailVerificationPendingPage};

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.