PageSourceSearch

https://storagechain.io/assets/ForgotPassword-77Ts6vhc.js

js storagechain.io collected 2026-09-25 18:19:04 UTC 1,982 bytes, 1 lines download raw bytes

1import{jX as h,c4 as c,k1 as p,hu as s,h9 as u,aJ as f,bs as x,fi as b}from"./index-l0ni4m1o.js";import{B as j}from"./index.esm-csOWm-2e.js";import{I as _}from"./Input-htE-Sarg.js";import{f as w}from"./validationSchemas-BzRwYUQV.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]=c.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 i;try{o(!0),await n(b({emailAddress:e==null?void 0:e.email})),t()}catch(r){return o(!1),((i=r==null?void 0:r.response)==null?void 0:i.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 c.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:u.WhiteLogo,alt:"logo"}),s.jsx("div",{className:l.formWapper,children:s.jsx(f,{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.