PageSourceSearch

https://38-0.run/assets/forgot-password-BTBH3K91.js

js 38-0.run collected 2026-10-08 07:25:34 UTC 2,128 bytes, 1 lines download raw bytes

1import{g as r,r as n,ac as f,ad as w,aY as x,aZ as b,j as e,dD as j,R as d,a_ as F,a$ as S,b0 as P,b1 as k,b2 as y,b3 as z,b4 as E,b5 as L,dF as R,d as q,aM as N,e as B,dM as I,_ as M,dH as v,dG as C}from"./main-D81PwhSK.js";const A=()=>"Back to login",H=()=>"返回登录",U=((a={},s={})=>(s.locale??r())==="en"?A():H()),V=()=>"We've sent a password reset link to your email",W=()=>"我们已将重置密码链接发送到您的邮箱",D=((a={},s={})=>(s.locale??r())==="en"?V():W()),G=()=>"Email",T=()=>"邮箱",Y=((a={},s={})=>(s.locale??r())==="en"?G():T()),Z=()=>"Please enter your email",$=()=>"请输入邮箱",J=((a={},s={})=>(s.locale??r())==="en"?Z():$()),K=()=>"[email protected]",O=()=>"[email protected]",Q=((a={},s={})=>(s.locale??r())==="en"?K():O()),X=()=>"Send reset link",ee=()=>"发送重置链接",se=((a={},s={})=>(s.locale??r())==="en"?X():ee());function oe({className:a}){const[s,o]=n.useState(""),[m,i]=n.useState(""),[l,_]=n.useState(!1),h=f({email:w().email({message:J()})}),t=x({resolver:b(h),defaultValues:{email:""}}),c=typeof window<"u"?new URLSearchParams(window.location.search).get("email"):null;n.useEffect(()=>{c&&t.setValue("email",c)},[c,t]);const p=async u=>{await M.requestPasswordReset({email:u.email,redirectTo:v(d.ResetPassword)},{onRequest:()=>{_(!0),o(""),i("")},onResponse:()=>_(!1),onSuccess:()=>i(D()),onError:g=>{o(C(g.error))}})};return e.jsx(j,{headerLabel:I(),bottomButtonLabel:U(),bottomButtonHref:d.Login,className:B("",a),children:e.jsx(F,{...t,children:e.jsxs("form",{onSubmit:t.handleSubmit(p),className:"space-y-6",children:[e.jsx("div",{className:"space-y-4",children:e.jsx(S,{control:t.control,name:"email",render:({field:u})=>e.jsxs(P,{children:[e.jsx(k,{children:Y()}),e.jsx(y,{children:e.jsx(z,{...u,disabled:l,placeholder:Q(),type:"email"})}),e.jsx(E,{})]})})}),e.jsx(L,{message:s}),e.jsx(R,{message:m}),e.jsxs(q,{disabled:l,size:"lg",type:"submit",className:"w-full flex items-center justify-center gap-2",children:[l&&e.jsx(N,{className:"mr-2 size-4 animate-spin"}),e.jsx("span",{children:se()})]})]})})})}function re(){return e.jsx(oe,{})}export{re 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.