PageSourceSearch

https://seedreamproai.com/assets/forgot-password-BqKVE_pa.js

js seedreamproai.com collected 2026-10-04 05:29:45 UTC 2,580 bytes, 1 lines download raw bytes

1import{g as r,r as d,j8 as k,j9 as S,jo as P,jp as y,j as o,l1 as q,R as w,jt as E,jv as L,jw as R,jx as I,jy as N,jz as v,a3 as B,a4 as z,e as C,l4 as A,aK as M,l5 as U,l3 as V}from"./main-f8RG9nco.js";import{F as W}from"./form-error-C22fqIHc.js";import{F as H}from"./form-success-BWGauGBl.js";import{I as K}from"./input-CpJR-s5O.js";import"./useRegisterFieldControl-ChOGplFv.js";const n=()=>"Back to login",T=n,D=n,G=n,J=n,O=((t={},s={})=>{const e=s.locale??r();return e==="en"?n():e==="pt"?T():e==="es"?D():e==="de"?G():J()}),_=()=>"We've sent a password reset link to your email",Q=_,X=_,Y=_,Z=_,$=((t={},s={})=>{const e=s.locale??r();return e==="en"?_():e==="pt"?Q():e==="es"?X():e==="de"?Y():Z()}),c=()=>"Email",ee=c,oe=c,se=c,te=c,re=((t={},s={})=>{const e=s.locale??r();return e==="en"?c():e==="pt"?ee():e==="es"?oe():e==="de"?se():te()}),l=()=>"Please enter your email",ae=l,ne=l,_e=l,ce=l,le=((t={},s={})=>{const e=s.locale??r();return e==="en"?l():e==="pt"?ae():e==="es"?ne():e==="de"?_e():ce()}),i=()=>"[email protected]",ie=i,ue=i,de=i,me=i,pe=((t={},s={})=>{const e=s.locale??r();return e==="en"?i():e==="pt"?ie():e==="es"?ue():e==="de"?de():me()}),u=()=>"Send reset link",fe=u,he=u,ge=u,we=u,je=((t={},s={})=>{const e=s.locale??r();return e==="en"?u():e==="pt"?fe():e==="es"?he():e==="de"?ge():we()});function xe({className:t}){const[s,e]=d.useState(""),[j,h]=d.useState(""),[m,g]=d.useState(!1),x=k({email:S().email({message:le()})}),a=P({resolver:y(x),defaultValues:{email:""}}),p=typeof window<"u"?new URLSearchParams(window.location.search).get("email"):null;d.useEffect(()=>{p&&a.setValue("email",p)},[p,a]);const b=async f=>{await M.requestPasswordReset({email:f.email,redirectTo:U(w.ResetPassword)},{onRequest:()=>{g(!0),e(""),h("")},onResponse:()=>g(!1),onSuccess:()=>h($()),onError:F=>{e(V(F.error))}})};return o.jsx(q,{headerLabel:A(),bottomButtonLabel:O(),bottomButtonHref:w.Login,className:C("",t),children:o.jsx(E,{...a,children:o.jsxs("form",{onSubmit:a.handleSubmit(b),className:"space-y-6",children:[o.jsx("div",{className:"space-y-4",children:o.jsx(L,{control:a.control,name:"email",render:({field:f})=>o.jsxs(R,{children:[o.jsx(I,{children:re()}),o.jsx(N,{children:o.jsx(K,{...f,disabled:m,placeholder:pe(),type:"email"})}),o.jsx(v,{})]})})}),o.jsx(W,{message:s}),o.jsx(H,{message:j}),o.jsxs(B,{disabled:m,size:"lg",type:"submit",className:"w-full flex items-center justify-center gap-2",children:[m&&o.jsx(z,{className:"mr-2 size-4 animate-spin"}),o.jsx("span",{children:je()})]})]})})})}function ye(){return o.jsx(xe,{})}export{ye 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.