PageSourceSearch

https://reporting.happy-or-not.com/assets/ForgotPasswordPage-Dt7DOjpV.js

js happy-or-not.com collected 2026-10-02 03:14:56 UTC 2,031 bytes, 15 lines download raw bytes

1import{ac as i,r,j as e,ad as k,K as v}from"./main-CX5PqK3X.js";import{cF as I,bV as L,b1 as V,aw as d,aD as t,cQ as s,kE as N,gV as u,j0 as A,nD as W,eh as D,nW as _,cZ as B,gl as H}from"./App-DIz0IRcC.js";import{W as M,E as O,S as U}from"./Notification-DubCY1r3.js";import{u as q,A as z,R as G}from"./AuthFooter-BpL6vkSi.js";import{M as K}from"./MachineTestUsers-C646xh4-.js";function Q(g){const h=L(a=>a),{authenticatedUser:m,intl:x}=h,p=V(),[o,P]=r.useState(J()),{reCaptchaReady:f,executeReCaptcha:j}=q(),[n,S]=r.useState(!1),[w,R]=r.useState(!0),[F,c]=r.useState(!1),E=a=>P(a.target.value),T=()=>{const a=o!=="";return R(a),a},b=async a=>{if(a.preventDefault(),T()){const l=await j(G.PasswordReset);if(!l){c(!0);return}const C=K[o]||l;p(_(o,C)),c(!1),S(!0)}},y=()=>D.isFetching(m.request);return e.jsx(k,{className:"ForgotPasswordPage",footer:e.jsx(z,{shouldShowReset:!1,activeLanguage:x.locale}),children:y()?e.jsx(v,{}):e.jsx(d,{sx:{maxWidth:"308px"},children:e.jsxs("form",{onSubmit:b,children:[e.jsx(Z,{variant:"h5",className:"forgotPasswordTitle",children:e.jsx(t,{id:s.ForgotPasswordPage.title})}),e.jsxs(d,{sx:{mb:2},children:[w===!1&&e.jsx(M,{children:e.jsx(t,{id:s.ForgotPasswordPage.provideEmail})}),n&&e.jsx(Y,{children:e.jsx(t,{id:s.ForgotPasswordPage.emailSent})}),F===!0&&e.jsx(O,{children:e.jsx(t,{id:s.UserVerification.error})})]}),e.jsx(N,{label:g.honIntl.formatLocalizedText({id:s.LoginPage.emailHint}),type:"email",value:o,onChange:E,autoFocus:!0}),e.jsx(u,{variant:"contained",type:"submit",disabled:n||!f,color:"secondary",fullWidth:!0,children:e.jsx(t,{id:s.ResetPasswordPage.resetPasswordButton})}),e.jsx($,{to:`${A.LOGIN}`,updateParam:"email",updatedValue:o,children:e.jsx(u,{color:"primary",fullWidth:!0,children:e.jsx(t,{id:s.ForgotPasswordPage.back})})})]})})})}const Y=i(U)`
2  &&& {
3    max-width: 100%;
4  }
5`,Z=i(B)`
6  &&& {
7    margin: 16px 0;
8  }
9`,$=i(H)`
10  &&& {
11    display: inline-block;
12    margin-top: 16px;
13    text-decoration: none;
14  }
15`,J=()=>W("email"),oe=I(Q);export{oe 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.