1import{j as t}from"./vendor-query-B-OkVY6w.js";import{i as y,j as S,r as n,L as g}from"./vendor-react-UNf91VA9.js";import{aj as w,a7 as k,ah as r,ak as j,s as u}from"./index-CVKOWYxn.js";import{A}from"./AuthLayout-B8ex7XfP.js";import"./vendor-ui-BtDEnNjh.js";import"./vendor-supabase-BtubEpct.js";import"./legal-hero-logo-UnbBCHoV.js";import"./Beams-BYShCkgp.js";import"./AmbientGround-F_bHUwgJ.js";import"./ApplyBackground-sePAptAG.js";const d=45;function p(i){const[s,e]=i.split("@");return!s||!e?i:`${s.slice(0,Math.min(2,s.length))}${"â¢".repeat(Math.max(1,s.length-2))}@${e}`}const P=()=>{const[i]=y(),s=S(),e=i.get("email")??"",o=i.get("purpose")??"reset",[a,l]=n.useState(d),[c,m]=n.useState(!1);n.useEffect(()=>{if(a<=0)return;const x=window.setTimeout(()=>l(E=>E-1),1e3);return()=>window.clearTimeout(x)},[a]);const h=async()=>{if(!(a>0||!e)){m(!0);try{o==="reset"?await u.auth.resetPasswordForEmail(e,{redirectTo:`${window.location.origin}/reset-password`}):await u.auth.resend({type:"signup",email:e}),l(d)}finally{m(!1)}}},f=o==="verify"?`A verification link is on its way to ${p(e)}.`:`A reset link is on its way to ${p(e)}.`;return t.jsxs(A,{title:"Check Your Email",cardTitle:"Check Your Email",cardSubtitle:f,children:[t.jsx(w,{}),t.jsx(k,{onClick:h,disabled:a>0||c,children:a>0?`Resend Email In ${a}s`:c?"Sendingâ¦":"Resend Email"}),t.jsx("p",{className:"font-body text-center mt-5",style:{fontSize:"13.5px",color:r.MUTED},children:t.jsx(j,{onClick:()=>s(o==="verify"?"/auth":"/forgot-password"),children:"Change email address"})}),t.jsx("p",{className:"font-body text-center mt-2",style:{fontSize:"13px",color:r.MUTED},children:t.jsx(g,{to:"/auth",style:{color:r.NAVY,textDecoration:"underline"},children:"Back to sign-in"})})]})};export{P 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.