PageSourceSearch

https://imagetourl.im/assets/forgot-password-BeHKCadT.js

js imagetourl.im collected 2026-10-07 23:22:53 UTC 3,134 bytes, 1 lines download raw bytes

1import{g as o,r as n,bq as g,br as w,bf as b,bg as k,j as r,bF as x,R as d,bh as j,bi as z,bj as F,bk as E,bl as P,bm as R,bp as S,bd as B,bH as y,B as L,a2 as q,a as v,bO as I,N,bJ as M,bI as A}from"./main-BBKsD6D_.js";const W=()=>"Back to login",C=()=>"返回登录",V=()=>"Back to login",Z=()=>"Voltar ao login",H=()=>"Zurück zum Login",U=((s={},t={})=>{const e=t.locale??o();return e==="en"?W():e==="zh"?C():e==="es"?V():e==="pt-BR"?Z():H()}),J=()=>"We've sent a password reset link to your email",O=()=>"我们已将重置密码链接发送到您的邮箱",T=()=>"We've sent a password reset link to your email",D=()=>"Enviamos um link de redefinição de senha para seu e-mail",G=()=>"Wir haben einen Link zum Zurücksetzen des Passworts an Ihre E-Mail-Adresse gesendet",K=((s={},t={})=>{const e=t.locale??o();return e==="en"?J():e==="zh"?O():e==="es"?T():e==="pt-BR"?D():G()}),Q=()=>"Email",X=()=>"邮箱",Y=()=>"Email",$=()=>"E-mail",ee=()=>"E-Mail",re=((s={},t={})=>{const e=t.locale??o();return e==="en"?Q():e==="zh"?X():e==="es"?Y():e==="pt-BR"?$():ee()}),te=()=>"Please enter your email",se=()=>"请输入邮箱",oe=()=>"Please enter your email",ae=()=>"Por favor insira seu e-mail",ne=()=>"Bitte geben Sie Ihre E-Mail-Adresse ein",_e=((s={},t={})=>{const e=t.locale??o();return e==="en"?te():e==="zh"?se():e==="es"?oe():e==="pt-BR"?ae():ne()}),ue=()=>"[email protected]",ie=()=>"[email protected]",le=()=>"[email protected]",ce=()=>"[email protected]",de=()=>"[email protected]",me=((s={},t={})=>{const e=t.locale??o();return e==="en"?ue():e==="zh"?ie():e==="es"?le():e==="pt-BR"?ce():de()}),he=()=>"Send reset link",pe=()=>"发送重置链接",fe=()=>"Send reset link",ge=()=>"Enviar link de redefinição",we=()=>"Link zum Zurücksetzen senden",be=((s={},t={})=>{const e=t.locale??o();return e==="en"?he():e==="zh"?pe():e==="es"?fe():e==="pt-BR"?ge():we()});function ke({className:s}){const[t,e]=n.useState(""),[m,l]=n.useState(""),[_,c]=n.useState(!1),h=g({email:w().email({message:_e()})}),a=b({resolver:k(h),defaultValues:{email:""}}),u=typeof window<"u"?new URLSearchParams(window.location.search).get("email"):null;n.useEffect(()=>{u&&a.setValue("email",u)},[u,a]);const p=async i=>{await N.requestPasswordReset({email:i.email,redirectTo:M(d.ResetPassword)},{onRequest:()=>{c(!0),e(""),l("")},onResponse:()=>c(!1),onSuccess:()=>l(K()),onError:f=>{e(A(f.error))}})};return r.jsx(x,{headerLabel:I(),bottomButtonLabel:U(),bottomButtonHref:d.Login,className:v("",s),children:r.jsx(j,{...a,children:r.jsxs("form",{onSubmit:a.handleSubmit(p),className:"space-y-6",children:[r.jsx("div",{className:"space-y-4",children:r.jsx(z,{control:a.control,name:"email",render:({field:i})=>r.jsxs(F,{children:[r.jsx(E,{children:re()}),r.jsx(P,{children:r.jsx(R,{...i,disabled:_,placeholder:me(),type:"email"})}),r.jsx(S,{})]})})}),r.jsx(B,{message:t}),r.jsx(y,{message:m}),r.jsxs(L,{disabled:_,size:"lg",type:"submit",className:"w-full flex items-center justify-center gap-2",children:[_&&r.jsx(q,{className:"mr-2 size-4 animate-spin"}),r.jsx("span",{children:be()})]})]})})})}function je(){return r.jsx(ke,{})}export{je 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.