PageSourceSearch

https://www.fintavapay.com/assets/ForgotPassword-481bf765.js

js fintavapay.com collected 2026-10-02 01:30:41 UTC 2,040 bytes, 1 lines download raw bytes

1import{r as i,c as F,aj as R,j as e,L as y,R as d,N as c,Y as I,B as N,ab as v,cM as w,aq as b,a1 as O}from"./index-e5aa8977.js";import{e as k}from"./email__outline-a8b1f47f.js";import{F as C}from"./FormInput-8d02a43c.js";import{F as u}from"./formValidator-80cd2b1a.js";import{A as L}from"./AuthCard-434f2afe.js";/* empty css              */import"./eye__on-b59c37a7.js";import"./brand-logo-e0ebdc78.js";const P="admin_forgot_password_email",D=()=>{const[p,n]=i.useState(!1),[f,s]=i.useState([]),[h,l]=i.useState(!1),[x,m]=i.useState(!1),r=i.useRef({email:""}),g=F(),E=R(),_=a=>{const t=a.target.value.trim(),o=v(t,"Email");if(!o.isValid){r.current.email="",m(!1),s([o.message]);return}s([]),r.current.email=t,m(u.isEmail(t).isValid)},j=a=>()=>{s(t=>t.filter((o,S)=>S!==a))},A=async()=>{if(!navigator.onLine){s(["No internet connection."]);return}if(!u.isEmail(r.current.email).isValid){s(["Enter a valid email address."]);return}n(!0),s([]);const a=await E(w.endpoints.forgotPassword.initiate(r.current.email));if(!a){s(["Unexpected error"]),n(!1);return}if(Object.hasOwn(a,"error")){b(a,s),n(!1);return}O(P,r.current.email),l(!0),setTimeout(()=>{g(d.ADMIN_VERIFY_PIN),n(!1)},1e3)};return e.jsxs(L,{title:"Forgot password",subtitle:"Enter your admin email address and we'll send you a reset link.",footer:e.jsxs(e.Fragment,{children:["Remember your password?"," ",e.jsx(y,{className:"admin-auth-card__link",to:d.ADMIN_LOGIN,children:"Back to login"})]}),children:[f.map((a,t)=>e.jsx(c,{text:a,type:"danger",dismiss:j(t)},I())),h&&e.jsx(c,{text:"Request succeeded",type:"success",dismiss:()=>l(!1)}),e.jsx("section",{className:"admin-login__form",children:e.jsx(C,{label:"Email address",type:"email",name:"email",placeholder:"Enter your admin email address",onChange:_,autoComplete:"email",inputMode:"email",spellCheck:!1,prefixIcon:e.jsx("img",{src:k,alt:""})})}),e.jsx(N,{className:"admin-auth-card__button",disabled:!x,loading:p,onClick:A,children:e.jsx("span",{children:"Send reset link"})})]})},K=()=>e.jsx(D,{});export{K 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.