PageSourceSearch

https://app.idrivesafely.com/assets/index-CWVOkCzm.js

js idrivesafely.com collected 2026-09-24 18:02:23 UTC 20,775 bytes, 28 lines download raw bytes

1import{D as c,cg as S,G as s,hG as Z,U as V,z,bz as ve,cc as ye,E as Se,hH as we,cS as K,Y as be,x as xe,a2 as Ae,ad as X,b3 as Ee,eZ as Ie,fM as Ce,eh as Y,hI as ee,$ as Pe,T as J,a9 as je,H as te,c9 as _e,aa as ne,ab as re,ej as Re,fp as Oe,J as oe,em as Ne,dK as Te,hJ as ke,bo as Fe,fr as De,c5 as Le,as as Ge,hK as Be,R as ae}from"./index-LrH-sEEU.js";import{R as Ue}from"./recaptcha-UTZWVy-Y.js";import{a as Me,b as Ve,c as $e}from"./user-ByHcGn4D.js";import{A as He,a as We,b as qe}from"./Alert-DF3tTdMr.js";import{u as ze,E as Ke}from"./useEmailTypoSuggestion-Dt5gUHX7.js";import{P as Ye}from"./PasswordInput-DzgK2JQi.js";import{u as Je}from"./useComponentLog-Cgv22-r1.js";import{A as Ze}from"./index-B5uXPmBr.js";import"./email-typo-validator-Bjup1qK0.js";import"./arrow-backward-DPnLrF24.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9f80587a-a71a-4762-a30c-f4620b5f118a",e._sentryDebugIdIdentifier="sentry-dbid-9f80587a-a71a-4762-a30c-f4620b5f118a")}catch{}})();const Qe=e=>typeof e=="object"&&e!==null&&"user"in e,se=({username:e,password:t,reCaptchaToken:n})=>({username:e,password:t,reCaptchaToken:n}),ie=({credential:e,brandId:t})=>({credential:e,brandId:t}),le=({idToken:e,brandId:t})=>({idToken:e,brandId:t,platform:"WEB"}),_=e=>{const t=e.data;return Qe(t)?{...t.user,sessionToken:t.sessionToken??t.user.sessionToken}:t},F=(e,t)=>{if(t)return{onSuccess:(n,a,o,r)=>{t.onSuccess?.(_(n),e,o,r)},onError:(n,a,o,r)=>{t.onError?.(n,e,o,r)},onSettled:(n,a,o,r,i)=>{t.onSettled?.(n?_(n):void 0,a,e,r,i)}}},Xe=()=>{const e=Me(),t=c.useRef(void 0),n=(o,r)=>{t.current=o,e.mutate({data:se(o)},F(o,r))},a=async(o,r)=>{t.current=o;const i=await e.mutateAsync({data:se(o)},F(o,r));return _(i)};return{...e,data:e.data?_(e.data):void 0,variables:e.variables?t.current:void 0,mutate:n,mutateAsync:a}},et=()=>{const e=Ve(),t=c.useRef(void 0),n=(o,r)=>{t.current=o,e.mutate({data:ie(o)},F(o,r))},a=async(o,r)=>{t.current=o;const i=await e.mutateAsync({data:ie(o)},F(o,r));return _(i)};return{...e,data:e.data?_(e.data):void 0,variables:e.variables?t.current:void 0,mutate:n,mutateAsync:a}},tt=()=>{const e=$e(),t=c.useRef(void 0),n=(o,r)=>{t.current=o,e.mutate({data:le(o)},F(o,r))},a=async(o,r)=>{t.current=o;const i=await e.mutateAsync({data:le(o)},F(o,r));return _(i)};return{...e,data:e.data?_(e.data):void 0,variables:e.variables?t.current:void 0,mutate:n,mutateAsync:a}};function nt(e={}){const{nonce:t,locale:n,onScriptLoadSuccess:a,onScriptLoadError:o}=e,[r,i]=c.useState(!1),p=c.useRef(a);p.current=a;const g=c.useRef(o);return g.current=o,c.useEffect(()=>{const d=document.createElement("script");return d.src="https://accounts.google.com/gsi/client",n&&(d.src+=`?hl=${n}`),d.async=!0,d.defer=!0,d.nonce=t,d.onload=()=>{var u;i(!0),(u=p.current)===null||u===void 0||u.call(p)},d.onerror=()=>{var u;i(!1),(u=g.current)===null||u===void 0||u.call(g)},document.body.appendChild(d),()=>{document.body.removeChild(d)}},[t]),r}const pe=c.createContext(null);function rt({clientId:e,nonce:t,locale:n,onScriptLoadSuccess:a,onScriptLoadError:o,children:r}){const i=nt({nonce:t,onScriptLoadSuccess:a,onScriptLoadError:o,locale:n}),p=c.useMemo(()=>({locale:n,clientId:e,scriptLoadedSuccessfully:i}),[e,i]);return S.createElement(pe.Provider,{value:p},r)}function ot(){const e=c.useContext(pe);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function at(e){var t;return(t=e?.clientId)!==null&&t!==void 0?t:e?.client_id}const st={large:40,medium:32,small:20};function it({onSuccess:e,onError:t,useOneTap:n,promptMomentNotification:a,type:o="standard",theme:r="outline",size:i="large",text:p,shape:g,logo_alignment:d,width:u,click_listener:w,state:f,containerProps:h,login_hint:m,...y}){const P=c.useRef(null),{clientId:E,locale:I,scriptLoadedSuccessfully:D}=ot(),C=c.useRef(e);C.current=e;const N=c.useRef(t);N.current=t;const L=c.useRef(a);return L.current=a,c.useEffect(()=>{var R,T,j,G,B,U,k,v,M;if(D)return(j=(T=(R=window?.google)===null||R===void 0?void 0:R.accounts)===null||T===void 0?void 0:T.id)===null||j===void 0||j.initialize({client_id:E,callback:b=>{var x;if(!b?.credential)return(x=N.current)===null||x===void 0?void 0:x.call(N);const{credential:O,select_by:$}=b;C.current({credential:O,clientId:at(b),select_by:$})},login_hint:m,...y}),(U=(B=(G=window?.google)===null||G===void 0?void 0:G.accounts)===null||B===void 0?void 0:B.id)===null||U===void 0||U.renderButton(P.current,{type:o,theme:r,size:i,text:p,shape:g,logo_alignment:d,width:u,locale:I,click_listener:w,state:f}),n&&((M=(v=(k=window?.google)===null||k===void 0?void 0:k.accounts)===null||v===void 0?void 0:v.id)===null||M===void 0||M.prompt(L.current)),()=>{var b,x,O;n&&((O=(x=(b=window?.google)===null||b===void 0?void 0:b.accounts)===null||x===void 0?void 0:x.id)===null||O===void 0||O.cancel())}},[E,D,n,o,r,i,p,g,d,u,I,m]),S.createElement("div",{...h,ref:P,style:{height:st[i],...h?.style}})}function lt(e){c.useEffect(function(){if(e){var t=document.querySelectorAll('script[src="'.concat(e,'"]'))[0];t||(t=document.createElement("script"),t.src=e,t.async=!0,document.body.appendChild(t))}},[e])}var ct=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{pollFrequency:1e3,retries:100,parent:window},a=n.pollFrequency,o=a===void 0?1e3:a,r=n.retries,i=r===void 0?100:r,p=n.parent,g=p===void 0?window:p;if(g&&g.hasOwnProperty(t))return Promise.resolve(g[t]);if(!i)return Promise.resolve(void 0);var d=i-1;return new Promise(function(u){return setTimeout(u,typeof o=="function"?o({retries:d}):o)}).then(function(){return e(t,{pollFrequency:o,parent:g,retries:d})})},ut="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",dt=function(t){var n=t.authOptions,a=t.onSuccess,o=t.onError;return ct("AppleID").then(function(){window.AppleID||console.error(new Error("Error loading apple script")),window.AppleID.auth.init(n);var r=window.AppleID.auth.signIn();return n.usePopup?r.then(function(i){return a&&a(i),i}).catch(function(i){return o?o(i):console.error(i),null}):(r&&typeof r.catch=="function"&&r.catch(function(){}),null)}
1).catch(function(r){return o?o(r):console.error(r),null})};const ce={APPLE_SCRIPT_SRC:ut,signIn:dt};var pt=["onSuccess","onError","skipScript","authOptions","iconProps","render","uiType","className","noDefaultStyle","buttonExtraChildren"];function W(){return W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},W.apply(this,arguments)}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ue(Object(n),!0).forEach(function(a){ft(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ht(e,t){if(e==null)return{};var n=mt(e,t),a,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function mt(e,t){if(e==null)return{};var n={},a=Object.keys(e),o,r;for(r=0;r<a.length;r++)o=a[r],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var vt=`
2.react-apple-signin-auth-btn {
3  background-color: transparent;
4  border: none;
5  padding: 0;
6  cursor: pointer;
7  border-radius: 4px;
8  padding: 0 8px 0 2px;
9  font-size: 14px;
10  font-size: 1em;
11  line-height: 1;
12  border: 1px solid #000;
13  overflow: hidden;
14  display: inline-flex;
15  justify-content: center;
16  align-items: center;
17}
18.react-apple-signin-auth-btn-light {
19  background-color: #FFF;
20  color: #000;
21  border-color: #000;
22}
23.react-apple-signin-auth-btn-dark {
24  background-color: #000;
25  color: #FFF;
26  border-color: #FFF;
27}`.replace(/ {2}|\n/g,""),yt=function(t){var n=t.onSuccess,a=t.onError,o=t.skipScript,r=o===void 0?!1:o,i=t.authOptions,p=t.iconProps,g=t.render,d=t.uiType,u=d===void 0?"dark":d,w=t.className,f=t.noDefaultStyle,h=f===void 0?!1:f,m=t.buttonExtraChildren,y=m===void 0?"Continue with Apple":m,P=ht(t,pt);lt(r?null:ce.APPLE_SCRIPT_SRC);var E=function(C){C&&(C.preventDefault(),C.stopPropagation()),ce.signIn({authOptions:i,onSuccess:n,onError:a})},I=gt({children:S.createElement(S.Fragment,null,S.createElement("svg",W({width:"24px",height:"44px",viewBox:"0 0 24 44"},p),S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:u==="light"?"#FFF":"#000",x:"0",y:"0",width:"24",height:"44"}),S.createElement("path",{d:"M12.2337427,16.9879688 C12.8896607,16.9879688 13.7118677,16.5445313 14.2014966,15.9532812 C14.6449341,15.4174609 14.968274,14.6691602 14.968274,13.9208594 C14.968274,13.8192383 14.9590357,13.7176172 14.9405591,13.6344727 C14.2107349,13.6621875 13.3330982,14.1241016 12.8065162,14.7430664 C12.3907935,15.2142188 12.012024,15.9532812 12.012024,16.7108203 C12.012024,16.8216797 12.0305005,16.9325391 12.0397388,16.9694922 C12.0859302,16.9787305 12.1598365,16.9879688 12.2337427,16.9879688 Z M9.92417241,28.1662891 C10.8202857,28.1662891 11.2175318,27.5658008 12.3353638,27.5658008 C13.4716724,27.5658008 13.721106,28.1478125 14.7188404,28.1478125 C15.6980982,28.1478125 16.3540162,27.2424609 16.972981,26.3555859 C17.6658521,25.339375 17.9522388,24.3416406 17.9707154,24.2954492 C17.9060474,24.2769727 16.0306763,23.5101953 16.0306763,21.3576758 C16.0306763,19.491543 17.5088013,18.6508594 17.5919459,18.5861914 C16.612688,17.1819727 15.1253248,17.1450195 14.7188404,17.1450195 C13.6194849,17.1450195 12.7233716,17.8101758 12.1598365,17.8101758 C11.5501099,17.8101758 10.7463794,17.1819727 9.79483648,17.1819727 C7.98413335,17.1819727 6.14571538,18.6785742 6.14571538,21.5054883 C6.14571538,23.2607617 6.8293482,25.1176563 7.67003179,26.3186328 C8.39061773,27.3348438 9.01882085,28.1662891 9.92417241,28.1662891 Z",fill:u==="light"?"#000":"#FFF",fillRule:"nonzero"}))),y),onClick:E},P);return g?g(I):S.createElement(S.Fragment,null,S.createElement("button",W({className:"".concat(h?"":"react-apple-signin-auth-btn react-apple-signin-auth-btn-".concat(u)).concat(w?" ".concat(w):""),type:"button","aria-label":"Signin with apple ID"},I)),h?null:S.createElement("style",null,vt))};const St=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z",fill:"
27currentColor"})),wt="name email",bt=({clientId:e,onSuccess:t,onError:n,brandId:a,redirectURI:o,disabled:r})=>{const i=tt(),[p,g]=c.useState(!1),d=o??(typeof window<"u"?window.location.origin:""),u=async f=>{const h=f.authorization?.id_token;if(!h){n("Apple sign-in failed: no id_token received.");return}try{g(!0);const m=await i.mutateAsync({idToken:h,brandId:a});await Z({user:m}),await t(m)}catch(m){const{errorCode:y}=m;n(y==="40401"?"No account found. Make sure your Apple ID matches the email you signed up with.":y==="40901"?"This Apple sign-in is no longer valid. Please contact support.":y==="40100"||y==="50302"?"We could not sign you in. Please try again.":"Something went wrong. Please try again in a moment.")}finally{g(!1)}},w=()=>{n("Apple sign-in was cancelled or failed. Please try again.")};return s.jsx("div",{"data-test":"appleSignInButton",className:`w-full max-w-[400px] ${r||p?"pointer-events-none opacity-50":""}`,children:s.jsx(yt,{authOptions:{clientId:e,scope:wt,redirectURI:d,usePopup:!0},uiType:"light",render:({onClick:f})=>s.jsxs("button",{type:"button",onClick:f,disabled:r||p,"aria-label":"Sign in with Apple",className:"border-divider-line-light flex h-11 w-full cursor-pointer items-center justify-center gap-2 rounded border border-solid bg-white text-sm font-medium text-black hover:bg-gray-50",children:[s.jsx(St,{width:18,height:18}),s.jsx("span",{children:"Sign in with Apple"})]}),onSuccess:f=>void u(f),onError:w})})},de=400,xt=200,At=({onSuccess:e,onError:t,brandId:n,disabled:a})=>{const o=et(),[r,i]=c.useState(!1),p=c.useRef(null),[g,d]=c.useState(de);c.useEffect(()=>{if(!p.current)return;const f=new ResizeObserver(([h])=>{const m=Math.floor(h.contentRect.width);d(Math.max(xt,Math.min(m,de)))});return f.observe(p.current),()=>{f.disconnect()}},[]);const u=async f=>{if(!f.credential){t("Google sign-in failed: no credential received.");return}try{i(!0);const h=await o.mutateAsync({credential:f.credential,brandId:n});await Z({user:h}),await e(h)}catch(h){const{errorCode:m}=h;t(m==="40401"?"No account found. Make sure your Google email matches the email you signed up with.":"Unable to sign in with Google. Please try again.")}finally{i(!1)}},w=()=>{t("Google sign-in was cancelled or failed. Please try again.")};return s.jsx("div",{ref:p,"data-test":"googleSignInButton",className:`w-full max-w-[400px] ${a||r?"pointer-events-none opacity-50":""}`,children:s.jsx(it,{onSuccess:f=>void u(f),onError:w,useOneTap:!0,width:String(g),text:"signin_with",shape:"rectangular",size:"large",logo_alignment:"center"})})},Et=({onSuccess:e,onError:t,brandId:n,disabled:a,showGoogle:o=!0,showApple:r=!1})=>{const i=window.aceConstants.TOKENS.google??"",p=window.aceConstants.TOKENS.apple??"",g=o&&!!i,d=r&&!!p;return!g&&!d?null:s.jsxs("div",{className:"flex flex-col items-center gap-4","data-test":"socialAuthSection",children:[g&&s.jsx(rt,{clientId:i,children:s.jsx(At,{onSuccess:e,onError:t,brandId:n,disabled:a})}),d&&s.jsx(bt,{clientId:p,onSuccess:e,onError:t,brandId:n,disabled:a}),s.jsxs("div",{className:"flex w-full items-center gap-3",children:[s.jsx("hr",{className:"border-divider-line-light my-0.5 flex-1 border-t"}),s.jsx(V,{as:"span",variant:"metadata-regular",weight:"semibold",className:"text-muted-foreground uppercase",children:"or"}),s.jsx("hr",{className:"border-divider-line-light my-0.5 flex-1 border-t"})]})]})},It=["ACE","DEC","IDS","AARP"],Ct=["ACE","DEC","IDS","AARP"],Lt=()=>{Je("SigninScreen");const e=Xe(),t=z(ve),n=new Ue("signin"),a=ye.getQueryParams(),o=!!parseInt(a.isnew,10),r=z(Se),i=a.v==="RE"&&r.brandId==="ACE",{backLink:p,noAccountText:g}=we({brandId:r.brandId,isRE:i}),d=z(l=>l.ui.urlParams.username)||void 0,[u,w]=c.useState(d??""),[f,h]=c.useState(""),[m,y]=c.useState(!1),[P,E]=c.useState(!1),[I,D]=c.useState(!1),[C,N]=c.useState(!1),[L,R]=c.useState(null),[T]=K("rdng-2486-email-typo-validator-show"),{suggestion:j,handleBlur:G,clearSuggestion:B,applySuggestion:U}=ze({enableHardBlock:!1}),k=be(),v=xe(),M=Ae(),[b]=K("rdng-2483-auth-google-signin-show"),x=!!b&&It.includes(r.brandId),[O]=K("rdng-2648-auth-apple-signin-show"),$=!!O&&Ct.includes(r.brandId),ge=(l,A)=>{v({type:Fe,payload:{linkObj:A}})},q=async l=>{if(l.defCourseId)await Le({dispatch:v,queryClient:M,user:l,loadVerification:!0,isLoginPath:!0});else throw Y(),new Error("NoDefaultCourse");if(v(Ge("Signed In",{})),v({type:Be,payload:{user:l}}),a.rename){v({type:ae,payload:{url:a.rename,params:a.reparams?JSON.parse(a.reparams):void 0}});return}v({type:ae,payload:{url:"courseswitch.view"}})},fe=async l=>{try{R(null),await q(l)}catch(A){A.message==="NoDefaultCourse"?(m&&y(!1),E(!0)):(P&&E(!1),y(!0))}}
27,he=async l=>{l.preventDefault();try{N(!0),R(null);const A=await n.getToken(),H=await e.mutateAsync({username:u,password:f,reCaptchaToken:A});await Z({user:H}),await q(H)}catch(A){A.message==="NoDefaultCourse"?(m&&y(!1),E(!0)):(P&&E(!1),y(!0)),console.error("An error occurred during sign-in")}finally{N(!1)}},Q=()=>{Te().then(l=>q(l)).catch(l=>{console.error("Failed to sync user",l),v({type:ke.type})}).finally(()=>{let l=location.hostname;ee.isLocalTestServer(l)||(l=r.documentDomain??location.hostname),X.remove("xgritsession",{path:"/",domain:l})})},me=()=>{D(u.length>0&&!De(u)),T&&G(u)};return c.useEffect(()=>{const l=X.get("xgritsession"),A=!Ee(t.sessionToken),H=location.hostname;v({type:Ie,payload:{screenName:"Sign In"}}),l?(v(Ce({sessionToken:l})),A&&Y(),Q()):A&&(r.brandId==="FLVS"&&!ee.isLocalTestServer(H)?Y():(v({type:Pe,payload:{currentState:"dash.index"}}),k("/dash/index")))},[]),s.jsxs(Ze,{children:[r.brandId==="FLVS"&&s.jsxs(s.Fragment,{children:[s.jsx(J,{as:"h2",size:"xlarge",children:"We see you are ready to hit the road and your course is almost ready!"}),s.jsx("br",{}),s.jsx(V,{children:"It takes a few hours to build your course content, set up your gradebook, and get your connection to the FLHSMV ready."}),s.jsx("br",{}),s.jsx(V,{children:"Come back soon to start learning!"})]}),r.brandId==="AARP"&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx(J,{as:"h1",size:"xxlarge","data-test":"pageTitle",children:"Sign in to Your Smart Driver Online Course Account"}),s.jsx(V,{variant:"metadata-regular",weight:"semibold","data-test":"pageSubtitle",children:"Sign in to access course content and completion certificate. Note: Your Smart Driver account is separate from your AARP.org online account."})]}),r.brandId!=="FLVS"&&r.brandId!=="AARP"&&s.jsx(J,{as:"h1",size:"xxlarge","data-test":"pageTitle",children:"Sign In"}),P?s.jsxs(He,{variant:"warning",className:"mt-4",children:[s.jsx(We,{children:r.brandId==="AARP"?"No account yet?":"A course is required before logging in. "}),s.jsx(qe,{children:s.jsx(je,{variant:"text-primary",className:" text-left!",onClick:l=>{ge(l,{key:"purchase",title:r.brandId==="AARP"?"Register for the Smart Driver online course here.":g??"Find an Aceable course",link:r.brandId==="AARP"?"https://payments.aarpdriversafety.org/aarp-course-selection":p?.href??"https://aceable.com",type:"URL"})},children:s.jsx(V,{as:"span",variant:"button-text-small",weight:"extrabold",className:"text-control-secondary!",children:r.brandId==="AARP"?"Register for the Smart Driver online course here.":g??"Find an Aceable course"})})})]}):s.jsx("div",{}),m||L?s.jsx(te,{extraClassName:"mt-4",title:r.brandId==="AARP"?"Unable to sign in to your Smart Driver online course account.":`Unable to Sign in to your ${r.TitleShort} account.`,description:L??"Please check that the information you provided is correct, and try again.",variant:"error"}):s.jsx("div",{}),a.resetSuccess?s.jsx(te,{extraClassName:"mt-4",title:`Password ${o?"created":"reset"}`,description:`Password successfully ${o?"created":"reset"}. You can now sign in with your new password.`,variant:"success"}):s.jsx("div",{}),!_e()&&r.brandId==="FLVS"?s.jsx("div",{}):s.jsxs(s.Fragment,{children:[s.jsxs("form",{className:"auth-form flex flex-col gap-2",name:"loginForm","data-test":"loginForm",onSubmit:he,children:[(x||$)&&s.jsx(Et,{onSuccess:fe,onError:l=>{R(l)},brandId:r.brandId,disabled:e.isPending||C,showGoogle:x,showApple:$}),s.jsxs(ne,{children:[s.jsx(re,{htmlFor:"email",children:"Email Address"}),s.jsx(Re,{required:!0,id:"email",name:"email","data-test":"email",type:"email",value:u,onBlur:me,onChange:l=>{w(l.target.value),j.shouldShow&&B()},autoComplete:"email","aria-invalid":I}),I&&s.jsx(Oe,{children:"This doesn't appear to be a valid email address."}),T&&s.jsx(Ke,{suggestion:j.suggestion,shouldShow:j.shouldShow,isHardBlock:j.isHardBlock,onApply:l=>{w(U(l))}})]}),s.jsxs(ne,{children:[s.jsx(re,{htmlFor:"password",children:"Password"}),s.jsx(Ye,{required:!0,id:"password",name:"password","data-test":"password",value:f,onChange:l=>{h(l.target.value)},autoComplete:"current-password"})]}),s.jsx("div",{className:"buttons-wrapper",children:s.jsx(oe,{disabled:!u||I||!f||e.isPending||C,stretch:!0,type:"submit","data-test":"submit",children:e.isPending?"Signing In...":"Sign In"})})]}),s.jsxs("form",{onSubmit:l=>{l.preventDefault(),v({type:Ne,payload:{params:{username:u}}}),k("/user/password")},children:[s.jsx("input",{type:"hidden",name:"username",value:u}),s.jsx(oe,{type:"submit",stretch:!0,variant:"text","data-test":"resetPasswordConfirm",children:"Forgot Password?"})]})]})]})};export{Lt as default};
28//# sourceMappingURL=index-CWVOkCzm.js.map

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.