PageSourceSearch

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

js happy-or-not.com collected 2026-09-24 17:47:44 UTC 2,031 bytes, 15 lines download raw bytes

1import{ac as i,r,j as e,ad as C,K as v}from"./main-DyjxXpTK.js";import{cE as I,bV as L,b1 as N,aw as d,aD as t,cP as s,kG as V,gU as u,j1 as A,nF as W,eg as _,nY as B,cY as D,gk as H}from"./App-V_-BsQ0z.js";import{W as M,E as U,S as G}from"./Notification-BcQDZ-Ka.js";import{u as O,A as Y,R as q}from"./AuthFooter-BDaWk_F0.js";import{M as z}from"./MachineTestUsers-C646xh4-.js";function K(g){const h=L(a=>a),{authenticatedUser:m,intl:x}=h,p=N(),[o,P]=r.useState(X()),{reCaptchaReady:f,executeReCaptcha:j}=O(),[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(q.PasswordReset);if(!l){c(!0);return}const y=z[o]||l;p(B(o,y)),c(!1),S(!0)}},k=()=>_.isFetching(m.request);return e.jsx(C,{className:"ForgotPasswordPage",footer:e.jsx(Y,{shouldShowReset:!1,activeLanguage:x.locale}),children:k()?e.jsx(v,{}):e.jsx(d,{sx:{maxWidth:"308px"},children:e.jsxs("form",{onSubmit:b,children:[e.jsx($,{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(Q,{children:e.jsx(t,{id:s.ForgotPasswordPage.emailSent})}),F===!0&&e.jsx(U,{children:e.jsx(t,{id:s.UserVerification.error})})]}),e.jsx(V,{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(J,{to:`${A.LOGIN}`,updateParam:"email",updatedValue:o,children:e.jsx(u,{color:"primary",fullWidth:!0,children:e.jsx(t,{id:s.ForgotPasswordPage.back})})})]})})})}const Q=i(G)`
2  &&& {
3    max-width: 100%;
4  }
5`,$=i(D)`
6  &&& {
7    margin: 16px 0;
8  }
9`,J=i(H)`
10  &&& {
11    display: inline-block;
12    margin-top: 16px;
13    text-decoration: none;
14  }
15`,X=()=>W("email"),oe=I(K);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.