1import{aN as g,R as i,j as e,a as j}from"./react-DZIhD4CV.js";import{h_ as p,k as s,cW as S,q as a,at as o,b8 as y,b9 as f,ba as v,bb as F,bO as R,bc as k,aq as w,cP as I}from"./index-DYHSnDuC.js";import{S as P}from"./SubmitButton-BGcpyo_X.js";import{r as L}from"./user-KLscAqGY.js";import{g as q}from"./redacted-Bf0D5Xnx.js";import"./d3-q0zOtUjj.js";const H=()=>{const{register:n,handleSubmit:l,formState:{errors:t,isSubmitting:c}}=g(),[d,r]=i.useState(!1),[m,u]=i.useState(!1),h=async({email:b})=>{try{await L(b),r(!0)}catch{u(!0)}},x=()=>{r(!1)};return e.jsx(p,{children:e.jsxs(s,{gap:7,children:[e.jsx(S,{$bold:!0,children:"Reset your password"}),m&&e.jsx(B,{type:"error",children:"We were unable to send you a password reset link. Please try again."}),d?e.jsxs(e.Fragment,{children:[e.jsx(a,{children:"If that email address exists, the reset link is on the way! If you do not receive an email within a few minutes, check your spam folder."}),e.jsxs(a,{children:["Still haven't received it? ",e.jsx(o,{as:"button",onClick:x,variant:"secondary",children:"Request another reset email"})]})]}):e.jsx(y,{onSubmit:l(h),children:e.jsxs(s,{gap:6,children:[e.jsxs(f,{error:t?.email,children:[e.jsx(v,{children:"Email"}),e.jsx(F,{...n("email",{validate:R}),placeholder:"[email protected]",autoFocus:!0,...q()}),e.jsx(k,{children:t?.email?.message})]}),e.jsxs(s,{xAlign:"center",gap:2,children:[e.jsx(P,{loading:c,children:"Continue"}),e.jsxs(a,{children:["Don't have an account?"," ",e.jsx(o,{as:w,to:"/signup",variant:"secondary",children:"Sign up"})]})]})]})})]})})};var B=j(I)(["text-align:center;"]);export{H as ForgotPassword}; 2//# sourceMappingURL=ForgotPassword-DuYLgjfA.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.