1import{jW as h,c3 as i,k0 as p,ht as s,h8 as f,aI as u,br as x,fh as b}from"./index-DID4Juaa.js";import{B as j}from"./index.esm-Do51sxSz.js";import{I as _}from"./Input-CxEj0iYO.js";import{f as w}from"./validationSchemas-M9EAheI6.js";const N="_authPage_1cseg_1",P="_backdrop_1cseg_4",S="_logo_1cseg_18",y="_formWapper_1cseg_32",l={authPage:N,backdrop:P,logo:S,formWapper:y},k=()=>{const n=h(),[d,o]=i.useState(!1),a=p(e=>{var t;return(t=e==null?void 0:e.forgotPasswordReducer)==null?void 0:t.response}),m=async(e,t)=>{var c;try{o(!0),await n(b({emailAddress:e==null?void 0:e.email})),t()}catch(r){return o(!1),((c=r==null?void 0:r.response)==null?void 0:c.data)||r.message}},g=()=>{a!=null&&a.success&&o(!1),a!=null&&a.success||(o(!1),console.error(a==null?void 0:a.message))};return i.useEffect(()=>{g()},[a]),s.jsx("div",{className:l.authPage,children:s.jsxs("div",{className:l.backdrop,children:[s.jsx("img",{loading:"lazy",className:`${l.logo} mb-40`,src:f.WhiteLogo,alt:"logo"}),s.jsx("div",{className:l.formWapper,children:s.jsx(u,{initialValues:{email:""},validationSchema:w,onSubmit:(e,{resetForm:t})=>{m(e,t)},children:e=>s.jsxs("form",{onSubmit:e.handleSubmit,className:"p-30",children:[s.jsx("div",{className:"d-flex align-items-center mb-5",children:s.jsx("h2",{className:"text-light fw-bold",children:"Forgot Password"})}),s.jsx(_,{name:"email",label:"Email",type:"email",required:!0,placeholder:"Enter your email address",handleChange:t=>{e.setFieldValue("email",t.target.value)},value:e.values.email??"",error:e.errors.email}),s.jsx("button",{className:"mt-3 btn btn-secondary rounded-pill w-100 text-light fw-bold",type:"submit",children:d?"Sending email link":"Reset Password"}),s.jsxs("div",{className:"mt-30 d-flex justify-content-center",children:[s.jsx("p",{className:"ff-poppins text-light me-2",children:s.jsx(j,{})}),s.jsx(x,{to:"/sign-in",className:"ff-poppins text-light",children:"Back to Sign in"})]})]})})})]})})},B=()=>s.jsx(k,{});export{B 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.