PageSourceSearch

https://careerplatform.io/assets/check-email-C9zN3z0K.js

js careerplatform.io collected 2026-09-24 15:04:51 UTC 3,125 bytes, 1 lines download raw bytes

1import{u,C as h,r as i,j as e,L as n,B as f,h as b,s as g,t as d}from"./index-DNidg_Qc.js";import{L as p}from"./Logo-DWRi6T6w.js";import{M as j}from"./mail-DIM7-Uur.js";import{S as N}from"./shield-check-DVO32LZ7.js";import{R as v}from"./refresh-cw-_l0dIfdp.js";function S(){const l=u(),{email:a}=h.useSearch(),[t,o]=i.useState(0),[r,c]=i.useState(!1);i.useEffect(()=>{a||l({to:"/login",search:{mode:"signup"}})},[a,l]),i.useEffect(()=>{if(t<=0)return;const s=setTimeout(()=>o(x=>x-1),1e3);return()=>clearTimeout(s)},[t]);async function m(){if(!(!a||t>0)){c(!0);try{const{error:s}=await g.auth.resend({type:"signup",email:a,options:{emailRedirectTo:`${window.location.origin}/dashboard`}});if(s)throw s;d.success("Confirmation email resent."),o(60)}catch(s){d.error(s instanceof Error?s.message:"Failed to resend email")}finally{c(!1)}}}return e.jsx("div",{className:"min-h-screen bg-slate-50 text-slate-900 flex items-center justify-center px-6",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsx(n,{to:"/",className:"flex justify-center mb-8",children:e.jsx(p,{size:"md"})}),e.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-8 shadow-xl shadow-slate-900/5",children:[e.jsx("div",{className:"size-12 rounded-2xl bg-blue-50 border border-blue-100 grid place-items-center text-blue-600 mb-5",children:e.jsx(j,{className:"size-6"})}),e.jsx("h1",{className:"text-2xl font-bold mb-2",style:{fontFamily:"'Space Grotesk', Inter, sans-serif",letterSpacing:"-0.02em"},children:"Confirm your email"}),e.jsxs("p",{className:"text-sm text-slate-600 mb-6",children:["We sent a confirmation link to"," ",e.jsx("span",{className:"font-semibold text-slate-900",children:a}),". Click the link to activate your account and you'll be taken straight to your dashboard."]}),e.jsx("div",{className:"rounded-lg border border-blue-100 bg-blue-50/60 p-4 mb-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(N,{className:"size-5 text-blue-600 shrink-0 mt-0.5"}),e.jsxs("div",{className:"text-sm",children:[e.jsx("p",{className:"font-semibold text-slate-900",children:"2FA is on by default"}),e.jsx("p",{className:"text-slate-600 mt-0.5",children:"Every future sign-in sends a 6-digit code to your email. You can trust this device after the first login to skip it."})]})]})}),e.jsxs(f,{onClick:m,disabled:r||t>0,variant:"outline",className:"w-full bg-white text-slate-900 border-slate-200 hover:bg-slate-50 hover:text-slate-900",children:[e.jsx(v,{className:`size-4 mr-2 ${r?"animate-spin":""}`}),t>0?`Resend in ${t}s`:r?"Resending…":"Resend confirmation email"]}),e.jsxs("p",{className:"text-xs text-slate-500 text-center mt-4",children:["Wrong address?"," ",e.jsx(n,{to:"/login",search:{mode:"signup"},className:"text-blue-600 font-medium hover:underline",children:"Sign up again"})]}),e.jsx("div",{className:"border-t border-slate-200 mt-6 pt-5",children:e.jsxs(n,{to:"/login",search:{mode:"signin"},className:"inline-flex items-center gap-2 text-sm text-slate-600 hover:text-slate-900",children:[e.jsx(b,{className:"size-4"})," Back to sign in"]})})]})]})})}export{S as component};

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.