PageSourceSearch

https://sitemapwatch.com/assets/forgot-password-BppDzS8B.js

js sitemapwatch.com collected 2026-10-02 00:33:51 UTC 1,867 bytes, 1 lines download raw bytes

1import{r,al as b,am as w,m as i,j as e,R as f,B as S,c as P,f as R}from"./main-BImpsluT.js";import{A as y}from"./auth-card-Dk-OWQ_3.js";import{u as E,a as L,F as I,b as N,c as B,d as q,e as C,f as k,g as v}from"./zod-ceAGWNzh.js";import{F as z}from"./form-success-ft_w9di5.js";import{I as A}from"./input-ClxBbEig.js";import{I as M}from"./IconLoader2--3VUUmxB.js";import"./card-DGNb_koZ.js";import"./label-C_UjThVr.js";import"./useField-BY30g3lG.js";const s=i.auth.forgotPassword;function T({className:p}){const[h,c]=r.useState(""),[g,l]=r.useState(""),[a,d]=r.useState(!1),j=b({email:w().email({message:s.emailRequired})}),o=E({resolver:L(j),defaultValues:{email:""}}),t=typeof window<"u"?new URLSearchParams(window.location.search).get("email"):null;r.useEffect(()=>{t&&o.setValue("email",t)},[t,o]);const x=async m=>{await R.requestPasswordReset({email:m.email,redirectTo:f.ResetPassword},{onRequest:()=>{d(!0),c(""),l("")},onResponse:()=>d(!1),onSuccess:()=>l(s.checkEmail),onError:u=>{const n=u.error.code,F=n&&i.auth.error.codes[n]?i.auth.error.codes[n]:u.error.message;c(F)}})};return e.jsx(y,{headerLabel:s.title,bottomButtonLabel:s.backToLogin,bottomButtonHref:f.Login,className:P("",p),children:e.jsx(I,{...o,children:e.jsxs("form",{onSubmit:o.handleSubmit(x),className:"space-y-6",children:[e.jsx("div",{className:"space-y-4",children:e.jsx(N,{control:o.control,name:"email",render:({field:m})=>e.jsxs(B,{children:[e.jsx(q,{children:s.email}),e.jsx(C,{children:e.jsx(A,{...m,disabled:a,placeholder:s.placeholderEmail,type:"email"})}),e.jsx(k,{})]})})}),e.jsx(v,{message:h}),e.jsx(z,{message:g}),e.jsxs(S,{disabled:a,size:"lg",type:"submit",className:"w-full flex items-center justify-center gap-2",children:[a&&e.jsx(M,{className:"mr-2 size-4 animate-spin"}),e.jsx("span",{children:s.send})]})]})})})}function W(){return e.jsx(T,{})}export{W as component};

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.