1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[365],{26539:(e,n,t)=>{t.d(n,{A:()=>C});var r=t(65437),i=t(88568),l=t(3182),a=t(14518),o=t(86739),c=t(48933),s=t(53239),u=t(48863),d=t(81626),h=t(36240);function f(){let e=(0,o._)(["\n 10%, 90% {\n transform: translate(-3px, 0);\n }\n\n 20%, 80% {\n transform: translate(4px, 0);\n }\n\n 30%, 50%, 70% {\n transform: translate(-6px, 0);\n }\n\n 40%, 60% {\n transform: translate(6px, 0);\n }\n"]);return f=function(){return e},e}function m(){let e=(0,o._)(["\n 0% {\n border-color: ",";\n color: ",";\n }\n\n 100% {\n border-color: ",";\n color: ",";\n }\n"]);return m=function(){return e},e}let g=(0,c.keyframes)(f()),p=(0,c.keyframes)(m(),u.Ay.colors.red3,u.Ay.colors.red3,u.Ay.colors.red3,u.Ay.colors.red3),v={single:(e,n)=>{let{colors:t,breakpoints:r}=e;return{paddingLeft:13,width:44,height:68,fontSize:28,marginRight:12,borderRadius:n,border:"1px solid ".concat(t.grey3),caretColor:"transparent","&:last-child":{marginRight:0},[r.small]:{paddingLeft:0,fontSize:"24px",textAlign:"center",height:"60px"}}},singlePlain:e=>{let{colors:n}=e;return{color:n.brand.primary,"&:hover":{borderColor:n.grey8,cursor:"pointer"},"&:focus":{background:"white",borderColor:n.brand.focus}}},singleDisabled:e=>{let{colors:n}=e;return{cursor:"not-allowed",background:n.grey4}},singleSuccess:e=>{let{colors:n}=e;return{borderColor:n.green3,color:n.green3,background:"white"}},wholeError:{animation:"".concat(g," 0.8s cubic-bezier(.36,.07,.19,.97) both")},singleError:{animation:"".concat(p," 0.8s ease-out both")}},b=e=>{let{value:n="",result:t,onChange:i,onKeyDown:l,isDisabled:a,handleAnimationEnd:o,label:c,index:s,enableNewDesigns:u}=e;return(0,r.Y)("input",{css:e=>[v.single(e,u?(0,d.N)(e.borderShape):4),a?v.singleDisabled(e):null,t||a?null:v.singlePlain(e),"SUCCESS"===t?v.singleSuccess(e):null,"ERROR"===t?v.singleError:null],type:"text",value:n,onChange:a?void 0:i,onKeyDown:a?void 0:l,"data-setstaticid":!0,"aria-disabled":a,"aria-label":"".concat(c," Value ").concat(s+1),disabled:a,inputMode:"numeric",onAnimationEnd:o})},w=e=>{let{onComplete:n,characters:t=6,label:i}=e,l=()=>[...Array(t)],[a,o]=(0,s.useState)(l),[c,u]=(0,s.useState)(!1),[d,f]=(0,s.useState)(null),m=(0,s.useRef)(null),g=(0,h.FF)("PART-1058-enable-new-self-serve-component-designs"),p=()=>{f(null)};return(0,s.useEffect)(()=>{if(!c){var e;let n=null==(e=m.current)?void 0:e.childNodes[0];n&&(null==n||n.focus())}},[c]),(0,s.useEffect)(()=>{let e=!0;if(!a.some(e=>"string"!=typeof e))return(async()=>{e&&u(!0);let t=a.join("");await Promise.resolve(n(t)),e&&f("SUCCESS")})().catch(()=>{e&&(o(l()),u(!1),f("ERROR"))}),()=>{e=!1}},[a]),(0,s.useEffect)(()=>{if(m.current){let e=e=>{var n,r;let i=null==e||null==(n=e.clipboardData)?void 0:n.getData("text");if(i){let e=i.split("").filter(e=>/\d/.test(e)).slice(0,t);o(e.length<t?l().map((n,t)=>e[t]?e[t]:void 0):e);let n=null==(r=m.current)?void 0:r.childNodes[e.length-1];n&&(null==n||n.focus())}};return m.current.addEventListener("paste",e),()=>{var n;return null==(n=m.current)?void 0:n.removeEventListener("paste",e)}}},[m.current]),(0,r.Y)("div",{ref:m,css:"ERROR"===d&&v.wholeError,children:a.map((e,n)=>(0,r.Y)(b,{value:e,label:i,index:n,onChange:(e=>n=>{let{value:t}=n.target;if(t.length>=6)return;let r=t[t.length-1];if(!(/\d/.test(r)||void 0===r))return;let i=[...a];if(i.splice(e,1,r),o(i),m.current&&void 0!==r){var l;let n=void 0===r?e-1:e+1,t=null==(l=m.current)?void 0:l.childNodes[n];t&&(null==t||t.focus())}})(n),onKeyDown:(e=>n=>{if("backspace"===n.key.toLowerCase()&&void 0===a[e]){var t;let n=null==(t=m.current)?void 0:t.childNodes[e-1];n&&(null==n||n.focus())}})(n),isDisabled:c,result:d,handleAnimationEnd:0===n?p:void 0,enableNewDesigns:g},n))})};var y=t(54047),A=t(66552),E=t(77347);let C=e=>{let{emailAddressFromBasicInfo:n,onResendClick:t,onGoBackToLogin:o,onSubmit:c,showSpinnerInsteadOfResendButton:s}=e,{clientDetails:u}=(0,y.t)(),d=u.customerServiceNumber&&u.clientName?(0,r.FD)(r.FK,{children:[" ","If you haven't received a code, contact ",u.clientName," at"," ",(0,r.Y)(a.yN,{css:{whiteSpace:"nowrap"},children:u.customerServiceNumber}),"."]}):null,h=n?(0,r.FD)(r.FK,{children:["A confirmation code was sent to ",(0,r.Y)(a.yN,{children:n}),". Check your email and enter the code below."]}):(0,r.FD)(r.FK,{children:["A confirmation code was sent to the email address associated with your account. Check your email and enter the code below.",d]});return(0,r.Y)(r.FK,{children:(0,r.FD)(E.A,{children:[(0,r.Y)(l.A,{heading:"Confirm your email address",subheading:h,isCentered:!0}),(0,r.Y)(A.A,{centerContent:!0,theme:"small",children:(0,r.Y)(w,{label:"Confirmation Code",onComplete:c})}),(0,r.Y)(A.A,{centerContent:!0,theme:"small",children:(0,r.Y)(i.A,{theme:"link",onClick:t,isLoading:s,children:"Didn't Receive a Code?"})}),(0,r.Y)(A.A,{centerContent:!0,theme:"small",children:(0,r.Y)(i.A,{theme:"link",onClick:o,children:"Go Back to Login"})})]})})}},72155:(e,n,t)=>{t.d(n,{Cy:()=>R,ZM:()=>N,WZ:()=>F,Zw:()=>P});var r=t(2434),i=t(39102),l=t(71760),a=t(69768),o=t(54951),c=t(24675),s=t(81501),u=t(44722),d=t(86739),h=t(38595),f=t(25577);function m(){let e=(0,d._)(["\n mutation ResendEmailOtp {\n resendEmailOtp {\n state\n }\n }\n"]);return m=function(){return e},e}let g=(0,h.J1)(m());function p(){let e=(0,d._)(["\n mutation SubmitOtp($otp: String!) {\n updateAuthenticationFlow(otp: $otp) {\n state\n prefillToken\n prefillTokenExpiration\n }\n }\n"]);return p=function(){return e},e}let v=(0,h.J1)(p());var b=t(45300),w=t(94966),y=t(55674),A=t(76734),E=t(75357),C=t(53239);
1class S extends Error{}let k=["succeeded","expectingTin","expectingDoB","expectingAccountNumber","expectingPrefillSuccessToken"],x=["locked","rejected"],D=["expectingOtp",...x],R=()=>{let{currentView:e}=(0,a.At)(),n=null==e?void 0:e.data;return null==n?void 0:n.loginProfilePii},N=()=>{let{setCurrentView:e}=(0,a.At)();return()=>{e(c.sH)}},F=()=>{let{triggerCustomerServiceError:e}=(0,A.A)(),[n,{loading:t}]=(()=>{let[e,...n]=(0,f.n)(g);return[async function(){for(var n,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return null==(n=(await e(...r)).data)?void 0:n.resendEmailOtp.state},...n]})(),{currentView:r}=(0,a.At)();(0,l.Z1)(r,"Current view must be defined");let{data:i}=r;return(0,l.Z1)(i,"Data must be defined"),{onResendClick:async()=>{try{let e={email:i.email,source:"resend"};await n({variables:e})}catch(n){e(o.zP)}},isLoading:t}},P=e=>{var n;let{onSucceeded:t,basicInfoFlow:d,product:h,accountVariant:m,personFields:g,prefillToken:p,prefillTokenExpiration:R}=e,{checkIsLayerAvailable:N}=(0,E.A)({product:h,accountVariant:m,autoOpen:!1,person:g,prefillToken:p,prefillTokenExpiration:R}),[F,{loading:P}]=(()=>{let[e,...n]=(0,f.n)(v);return[async function(){for(var n,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return null==(n=(await e(...r)).data)?void 0:n.updateAuthenticationFlow},...n]})(),{setCurrentView:Y}=(0,a.At)(),{handleMFAUpdate:L}=null!=(n=(0,u.J)())?n:{},[O,_]=(0,C.useState)(0),{handlePostSubmitNavigation:T,isSuccessful:Z}=(e=>{let{onSucceeded:n,basicInfoFlow:t}=e,[i,l]=(0,C.useState)(!1),{setCurrentView:u,resetCurrentView:d,currentView:h}=(0,a.At)(),f=(0,r.m)(),{refetchCurrentUser:m}=(0,y.Ay)(),{triggerCustomerServiceError:g}=(0,A.A)(),p=(e=>{let{setIsSuccessful:n,basicInfoFlow:t}=e,[r]=(0,b.y)(),{setCurrentView:i,resetCurrentView:l,currentView:c}=(0,a.At)(),{triggerCustomerServiceError:u}=(0,A.A)();return async e=>{var a,d;let{prefillToken:h,prefillTokenExpiration:f,personFields:m,onSucceeded:g,checkIsLayerAvailable:p,state:v}=e;if(n(!0),null!=(d=await (null==p?void 0:p()))&&d)return void i({...(0,s.c)(v),data:{...null==c?void 0:c.data,basicInfoFlow:t,prefillToken:h,prefillTokenExpiration:f,person:m,onSucceeded:g}});let b=null==(a=await r())?void 0:a.state;b&&("succeeded"===b?g():"coreSyncMemberEmailMissing"===b?(u(o.ww),l()):i((0,s.c)(b)))}})({setIsSuccessful:l});return{handlePostSubmitNavigation:async(e,r,i,a,v)=>{let b={...null==h?void 0:h.data,basicInfoFlow:t};if("succeeded"===e){if(l(!0),t||(0,w.P)(),t)return void await n();await m(),await f.refetchQueries({include:"active"}),await n()}else if("expectingOtp"===e)throw new S;else"rejected"===e?u({...c.dZ,data:b}):"expectingTin"===e||"expectingDoB"===e?(l(!0),u({...(0,s.c)(e),data:b})):"expectingPrefillSuccessToken"===e?p({prefillToken:r,prefillTokenExpiration:i,personFields:a,onSucceeded:n,checkIsLayerAvailable:v,state:e}):"coreSyncMemberEmailMissing"===e?(g(o.ww),d()):u((0,s.c)(e))},isSuccessful:i}})({onSucceeded:t,basicInfoFlow:d});return{onSubmitFunc:async e=>{try{let n=await F({variables:{otp:e}}),{state:t}=null!=n?n:{};(0,l.Z1)(t,"submitOtp did not return state"),(e=>{if(k.includes(e)){null==L||L({authenticationResult:"PASSED",isLocked:!1,numOfFailedAuth:O}),_(0);return}if(!D.includes(e))return;let n=O+1;_(n),null==L||L({authenticationResult:"FAILED",isLocked:x.includes(e),numOfFailedAuth:n})})(t),await T(t,p,R,g,N)}catch(e){if(i.L.addError(Error("Authentication Error: PII Verification"),{errors:e}),e instanceof S)throw e;Y({...c.sH,data:{authenticationError:!0}})}},isLoading:P||Z}}}}]);
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.