1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="61fb7f1c-7f8e-5eb3-9f3d-4e2a154a8f29")}catch(e){}}(); 3import{bU as e,aC as s,c7 as a,bL as t,c3 as i,bO as r,bS as o,cj as l,ck as n}from"./index-CL10LGZK.js";import{u as m,C as d,F as c,T as x,s as h}from"./zod-CropDHhg.js";import{A as f}from"./index-BVnmJ18m.js";const g=l({email:n().email({message:"Please enter a valid email"})}),u=o("\n mutation ForgotPassword_Mutation($email: String!) {\n forgotPassword(email: $email)\n }\n"),j=()=>{const{toastError:o}=e(),[l,n]=s.useState(!1),{control:j,handleSubmit:p,getValues:b}=m({resolver:h(g)}),[w,{loading:y}]=a(u);return l?t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx("div",{className:"text-2xl font-semibold text-comet-900",children:"Check your email inbox!"}),t.jsxs("div",{className:"font-medium text-hoki-800",children:["If an account exists for"," ",t.jsx("b",{children:b("email")}),", you will get an email with instructions on resetting your password. If it doesn't arrive, be sure to check your spam folder."]}),t.jsx(i,{to:r.SignIn,className:"text-sm text-primary mt-2 underline",children:"Back to login"})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"text-2xl font-semibold text-comet-900",children:"Enter your email to reset password"}),t.jsxs("form",{id:"forgot-password-form",className:"flex flex-col gap-y-5 mt-6",onSubmit:p(async e=>{try{await w({variables:{email:e.email}}),n(!0)}catch(s){s instanceof Error?o(s.message):o("Something went wrong")}}),noValidate:!0,children:[t.jsx(d,{control:j,name:"email",render:({field:e,fieldState:{invalid:s,error:a}})=>t.jsxs(c,{isInvalid:s,isRequired:!0,children:[t.jsx(c.Label,{htmlFor:e.name,children:"Email address"}),t.jsx(x,{id:e.name,placeholder:"Enter email address",type:"email",className:"h-14",...e}),t.jsx(c.ErrorMessage,{children:a?.message}),t.jsx(i,{to:r.SignIn,className:"text-sm text-primary mt-2 underline",children:"Back to login"})]})}),t.jsx(f,{isLoading:y,children:"Reset Password"})]})]})};export{j as default}; 4//# sourceMappingURL=index-DWCsQxrF.js.map 5 6//# debugId=61fb7f1c-7f8e-5eb3-9f3d-4e2a154a8f29
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.