PageSourceSearch

https://cdn.hingehealth.com/onboarding-app/assets/PasswordEntry-3d2f1625.js

js hingehealth.com collected 2026-09-24 18:58:33 UTC 3,681 bytes, 1 lines download raw bytes

1import{n as F,u as k,cr as U,dI as c,$ as M,j as s,a6 as g,dF as d,Y as L,a9 as v}from"./index-a2f714b1.js";import{h as W,u as B,r as p,N as V}from"./vendor-react-deaa6ed9.js";import{b as K}from"./vendor-forms-3d4cb5b3.js";import{i as Y}from"./injectI18nErrorMessages-f4f846bb.js";import{P as z}from"./index-d63f4c29.js";import{u as G}from"./index-242778c0.js";import{u as H}from"./vendor-i18n-e0d2b2f8.js";import{l as q,i as A,A as O}from"./isInvalidCredentialsError-f6ca8582.js";import{S as X}from"./SignInButtons-157f3de6.js";import{c as $}from"./buildValidationSchema-5cf52a77.js";import{g as J,s as Q}from"./signInOrUpSession-4b247b6c.js";import{S as Z,P as ss}from"./SignUpSignInPage-d2d58e2f.js";import{M as a}from"./mixpanelEvents-537edfdb.js";import{b as rs}from"./vendor-sentry-a979067a.js";import"./vendor-analytics-85aa0bb5.js";import"./vendor-apollo-7579deb5.js";import"./vendor-auth-85cd8932.js";import"./vendor-ui-489ff94d.js";import"./vendor-utils-e285ae05.js";import"./eye-on-acd373ad.js";import"./index-2565d2d0.js";import"./styledComponents-ea9093fc.js";import"./is-military-zip-code.es-162d6926.js";import"./countryAddressData-b8e45df7.js";import"./joi-phone-number-0c0afffb.js";import"./logo-3d4bf15b.js";import"./index-df61956c.js";const es=["password"];function Cs(){const{t:n}=H(),i=W(),u=B(),l=u.state??J(),{email:t,screen:S}=l??{email:void 0,screen:void 0},r=(l==null?void 0:l.entryPoint)??"primary",o=r==="primary"?"password":"passwordFallback",E=p.useRef(null),[T,I]=p.useState(!1),{completeSilentAuth:x}=F(),e=k();p.useEffect(()=>{!t||!S||e.track(a.PASSWORD_SCREEN_VIEWED,{entryPoint:r})},[e,t,S,r]);const N=p.useCallback(()=>{if(!t)return;e.track(a.OTP_FALLBACK_SELECTED,{entryPoint:r,flowName:"login",flowType:o});const m={email:t,screen:U.SIGN_IN_EMAIL_OTP,entryPoint:"fallback"};Q(m),i(c.EMAIL_OTP,{state:m,replace:!0})},[t,e,i,r,o]),w=K({resolver:M($()),shouldFocusError:!1}),{registerAndReferenceInput:h}=G({questionKeys:es,register:w.register}),{handleSubmit:R,clearErrors:b,setError:C,formState:{errors:D}}=w,y=Y(D,n,{},"forms.signUpSignIn"),j=p.useCallback(()=>{e.track(a.RESET_PASSWORD_CLICKED,{entryPoint:r,flowName:"login",flowType:o}),i(c.RESET_PASSWORD_CONFIRMATION,{state:u.state})},[e,r,o,u.state,i]);if(!t||!S)return s.jsx(V,{to:c.SIGN_UP_OR_SIGN_IN,replace:!0});const P=R(m=>{b("password"),I(!0),e.track(a.PASSWORD_SUBMITTED,{entryPoint:r,flowName:"login",flowType:o}),q(t,m.password,x).catch(f=>{var _;if(A(f,O.ACCESS_DENIED_CODE)){C("password",{type:"invalidCredentials"}),e.track(a.PASSWORD_AUTH_FAILED,{entryPoint:r,flowName:"login",flowType:o,reason:"wrongCredentials"});return}else if(A(f,O.TOO_MANY_ATTEMPTS)){i(c.TOO_MANY_ATTEMPTS,{replace:!0,state:{entryPoint:r}});return}rs(f,{extra:{context:"Password sign-in"}}),e.track(a.PASSWORD_AUTH_FAILED,{entryPoint:r,flowName:"login",flowType:o,reason:"unknownError"}),(_=E.current)==null||_.showToast(n("forms.signUpSignIn.password.submitError"))}).finally(()=>{I(!1)})});return s.jsxs(Z,{ref:E,heading:n("forms.signUpSignIn.password.heading"),children:[s.jsx(g,{size:d.s24}),s.jsxs("form",{onSubmit:P,noValidate:!0,children:[s.jsx(L,{children:s.jsx("input",{type:"text",name:"username",autoComplete:"username",value:t,readOnly:!0})}),s.jsx(ss,{children:s.jsx(z,{name:"password",registerAndReferenceInput:h,fieldErrors:y,label:n("forms.signUpSignIn.password.passwordLabel"),autoComplete:"current-password"})}),s.jsx(g,{size:d.s24}),s.jsx(v,{type:"body1_med",onPress:j,style:{paddingVertical:d.s12},children:n("forms.signUpSignIn.password.resetPasswordLink")}),s.jsx(g,{size:d.s24}),s.jsx(X,{isPassword:!0,onSelectFallback:N,isSubmitting:T,onSignIn:P})]})]})}export{Cs 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.