1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5910],{8053:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,UB:()=>o,dU:()=>a,uB:()=>s});var i=n(37876);n(14232);let l=e=>{let{children:t,className:n,outChildren:l}=e;return l?(0,i.jsxs)("div",{className:"overflow-auto flex items-center w-full flex-col h-full",children:[(0,i.jsx)("div",{className:"w-full sm:w-[592px]",children:l}),(0,i.jsx)("div",{id:"ShadowContainer",className:"\n overflow-auto grow bg-bg1\n relative flex flex-col h-full sm:h-[calc(100%-40px)]\n px-5 max-h-[860px] border-line\n sm:rounded-[20px] my-0 sm:mt-4 sm:mb-10\n sm:border sm:px-0\n w-full sm:w-[592px] mx-auto text-primary-text !text-sm\n ".concat(n,"\n "),children:t})]}):(0,i.jsx)("div",{id:"ShadowContainer",className:"\n overflow-auto grow\n relative flex flex-col h-full sm:h-[calc(100%-40px)]\n px-5 max-h-[860px] border-line\n sm:rounded-[20px] my-0 sm:mt-4 sm:mb-10\n sm:border sm:px-0\n w-full sm:w-[592px] mx-auto text-primary-text !text-sm\n ".concat(n,"\n "),children:t})},o=e=>{let{children:t,className:n}=e;return(0,i.jsx)("div",{id:"ContainerWithoutShadow",className:"\n relative w-full mx-auto text-primary-text !text-sm my-0 h-full\n sm:my-5 sm:w-[486px]\n ".concat(n,"\n "),children:t})},a=e=>{let{children:t,className:n,outChildren:l}=e;return l?(0,i.jsxs)("div",{className:"relative m-auto sm:w-[592px] sm:h-[680px] ",children:[(0,i.jsx)("div",{className:" sm:w-[592px]",children:l}),(0,i.jsx)("div",{id:"FixedHeightContainer",className:"\n border rounded-[20px] border-transparent text-primary-text h-screen mt-8\n sm:w-[592px] sm:h-[680px] sm:border-line\n ".concat(n,"\n "),children:t})]}):(0,i.jsx)("div",{className:"relative m-auto sm:w-[592px] sm:h-[680px] ",children:(0,i.jsx)("div",{id:"FixedHeightContainer",className:"\n border rounded-[20px] border-transparent text-primary-text h-screen mt-8\n sm:w-[592px] sm:h-[680px] sm:border-line\n ".concat(n,"\n "),children:t})})},s=e=>{let{children:t,className:n}=e;return(0,i.jsx)("div",{className:"\n w-full sm:w-[486px] mx-auto relative\n flex flex-col flex-1 px-4 sm:px-0\n ".concat(n||"","\n "),children:t})}},62214:(e,t,n)=>{"use strict";let i,l;n.r(t),n.d(t,{default:()=>ee});var o=n(37876),a=n(61329),s=n(79829),d=n(84952),r=n(43422),c=n(18236),u=n(82565),m=n(90612),v=n(17745),x=n(16247),p=n(11593),f=n(81996),h=n(54587),_=n.n(h),g=n(14232),w=n(34846),E=n(91408);let A=()=>{let{t:e}=(0,w.Bd)(),{email:t,setEmail:n,emailError:i,setEmailError:l,setpwd:h,pwd:A,loginError:I,setLoginError:j,pwdError:N,setPwdError:y,setStep:L,step:C,emailNotChange:b,processToken:k,setProcessToken:S,individualUserLoginTfa:T,otpStatus:D,individualUserLoginTfaInOrder:R,setForgotPwd:U,forgotPwd:P,setExistsPassword:B,setHitPasswordAndOpt:G,setOtpStatus:O,setIndividualRegisterBindTfa:M,setIndividualUserLoginTfa:F}=(0,p.A)();console.log("[Login Debug] inactive fields:",{step:C,isLoginPreStep:C===p.L.loginPre,email:t,emailError:i,pwd:A,pwdError:N});let V=C===p.L.loginPre?!t||i:!t||!A||i||N,[W,Y]=(0,g.useState)(!1),{ga4log:q}=(0,v.A)(),{setEntity:H}=(0,m.A)();(0,g.useEffect)(()=>{(0,s.EW)({}).then(e=>{let{data:t}=e;H(t.currentSwitch?f.qq:f.Nd)})},[H]),(0,g.useEffect)(()=>{A||(y(""),j(""))},[A,j,y]),(0,g.useEffect)(()=>{t||(y(""),j(""))},[t,j,y]);let K=(0,g.useCallback)(()=>{Y(!0),(0,a.g4)({email:t,sit:"independent",scenarioList:["INDIVIDUAL_REGISTER_BIND_TFA","INDIVIDUAL_USER_LOGIN_TFA"]}).then(async n=>{var i,l,o,a,s,d,r,c,u,m;let{data:v}=n;if(B((null==v?void 0:v.accountInfo)&&(null==v?void 0:null===(i=v.accountInfo)||void 0===i?void 0:i.existsPassword)),G((null==v?void 0:v.accountInfo)&&(null==v?void 0:null===(l=v.accountInfo)||void 0===l?void 0:l.hitPasswordAndOpt)),O((null==v?void 0:v.accountInfo)&&(null==v?void 0:null===(o=v.accountInfo)||void 0===o?void 0:o.otpStatus)==="BINDED"),M(null==v?void 0:null===(a=v.scenarioMap)||void 0===a?void 0:a.INDIVIDUAL_REGISTER_BIND_TFA),F(null==v?void 0:null===(s=v.scenarioMap)||void 0===s?void 0:s.INDIVIDUAL_USER_LOGIN_TFA),!(null==v?void 0:v.accountInfo)){if(t&&t.indexOf("@privaterelay.appleid.com")>-1){j(e("privaterelayEmailTips")),Y(!1);return}L(p.L.signup),q({element_id:"paymonade3_independent_signup_v2_pageview"})}(null==v?void 0:v.accountInfo)&&(null==v?void 0:null===(d=v.accountInfo)||void 0===d?void 0:d.existsPassword)&&(null==v?void 0:null===(r=v.accountInfo)||void 0===r?void 0:r.hitPasswordAndOpt)&&(L(p.L.login),q({element_id:"paymonade3_independent_login_v2_pageView"})),null==v||!v.accountInfo||(null==v?void 0:null===(c=v.accountInfo)||void 0===c?void 0:c.hitPasswordAndOpt)||((null==v?void 0:null===(u=v.scenarioMap)||void 0===u?void 0:u.INDIVIDUAL_USER_LOGIN_TFA)||(null==v?void 0:null===(m=v.accountInfo)||void 0===m?void 0:m.otpStatus)!=="BINDED"?L(p.L.sendEmail):L(p.L.verificationCode)),Y(!1)}).catch(e=>{var t,n;j(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.msg),Y(!1)})},[t,q,B,G,M,F,j,O,L,e]),$=(0,g.useRef)(null);return(0,o.jsxs)("div",{className:"flex flex-col h-full pb-6",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(c.A,{onEnter:e=>{e.target.blur(),setTimeout(()=>{var e;null===(e=$.current)||void 0===e||e.click()},0)},autoFocus:!0,suffix:t&&(0,o.jsx)(_(),{onClick:()=>{n(""),y(""),j(""),h(""),L(p.L.loginPre)},src:x.A,alt:"closeSvg",className:"cursor-pointer"}),placeholder:e("Email"),value:t,error:i||I,setError:l,className:" ",rules:(0,E.Yj)().matches(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$|^$/i,e("InvalidEmailAddress")),onInput:e=>{var t,i,l,o;n(null===(i=e.target.value)||void 0===i?void 0:null===(t=i.trim)||void 0===t?void 0:t.call(i)),e.target.value=null===(o=e.target.value)||void 0===o?void 0:null===(l=o.trim)||void 0===l?void 0:l.call(o),y(""),j(""),h(""),L(p.L.loginPre)}}),C===p.L.login&&(0,o.jsx)(c.A,{id:"password",type:"password",autoFocus:!0,suffix:A&&(0,o.jsx)(_(),{onClick:()=>h(""),src:x.A,alt:"closeSvg",className:"cursor-pointer"}),placeholder:e("Password"),value:A,error:N||I,setError:y,className:"!mt-2",onEnter:e=>{e.target.blur(),setTimeout(()=>{var e;null===(e=$.current)||void 0===e||e.click()},0)},onInput:e=>h(e.target.value)}),t&&(0,o.jsx)("div",{className:"text-sm text-[#FF707E] mt-1 px-3",children:i||I||N})]}),(0,o.jsxs)("div",{className:"w-full flex justify-center items-center flex-col mt-6",children:[(0,o.jsx)(d.A,{btnRef:$,loading:W,className:"w-full max-w-[400px]",onClick:()=>
1{if(C===p.L.loginPre){K();return}Y(!0),(0,a.Gf)({email:t,password:A}).then(async n=>{let{data:i}=n;if(Y(!1),i)S(i);else{j(e("InvalidEmailOrPassword"));return}u.A.success({text:e("Loginto").replace("{{email}}",t)}),L(p.L.sendEmail),D&&!R?L(p.L.verificationCode):L(p.L.sendEmail)}).catch(t=>{var n,i;j((null==t?void 0:null===(i=t.response)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:n.msg)||e("InvalidEmailOrPassword")),Y(!1)})},inactive:!!V,showContinue:!0,showContinueBtnText:e("Next")}),(0,o.jsx)("div",{className:"text-center",children:C===p.L.login&&(0,o.jsx)("div",{onClick:()=>U(!0),className:" mt-2 font-medium text-link text-base cursor-pointer",children:e("ForgotPassword")})})]}),(0,o.jsx)(r.A,{open:P,setOpen:U,isIndependent:!0})]})};var I=n(45986),j=n(51259),N=n(95690),y=n(95256),L=n(78932),C=n(85083),b=n(5209),k=n(66523);let S=e=>{let{onConfirm:t,onReSend:n,email:l,onChange:a,hideChange:s,isShowGa:d}=e,{t:r}=(0,w.Bd)(),[c,u]=(0,g.useState)(""),[m,v]=(0,g.useState)(""),x=(0,g.useRef)(60),[f,h]=(0,g.useState)(60),{checked:_,setStep:E,otpStatus:A,individualUserLoginTfa:I,suggestedEmail:j,processToken:N}=(0,p.A)(),[y,L]=(0,g.useState)(!0);(0,g.useEffect)(()=>{x.current=f},[f]),(0,k.A)({handleCheck:async e=>{v("");let t=await n(e);(null==t?void 0:t.result)&&(i=setInterval(()=>{if(0===x.current){clearInterval(i),h(60);return}L(!1),h(e=>e-1)},1e3))}});let S=(0,g.useCallback)(async e=>{try{await t(e)}catch(e){var n,i,l,o;u(""),((null==e?void 0:null===(n=e.config)||void 0===n?void 0:n.url)||"").indexOf("verify-code")>-1?v((null==e?void 0:null===(l=e.response)||void 0===l?void 0:null===(i=l.data)||void 0===i?void 0:i.msg)||(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.msg)||r("InvalidCodePleasetryagain")):v(r("SomethingWentWrong"))}},[t,r]),T=(0,g.useCallback)(()=>{i&&clearInterval(i);try{window.grecaptcha.reset(),setTimeout(()=>{try{window.grecaptcha.execute()}catch(e){}},150)}catch(e){}},[]);return(0,g.useEffect)(()=>{T()},[T]),(0,g.useEffect)(()=>()=>{v("")},[]),(0,o.jsxs)("div",{className:"flex flex-col h-full justify-between pb-6",children:[(0,o.jsxs)("div",{className:"flex flex-col flex-1 pb-4",children:[(0,o.jsx)("div",{className:"text-center text-base",dangerouslySetInnerHTML:{__html:r("CodeSentToNew").replace("{{email}}",l)}}),!N&&(0,o.jsxs)("div",{className:"text-center my-3 text-secondary",children:[r("NotYouEmail")," ",(0,o.jsx)("span",{onClick:()=>{null==a||a()},className:"font-medium cursor-pointer text-link",children:r("Change")})]}),(0,o.jsx)("div",{className:"w-full flex justify-center",children:(0,o.jsxs)("div",{className:"w-[328px] mt-2",children:[(0,o.jsx)(C.A,{onComplete:e=>S(e),value:c,setValue:e=>u(e)}),m&&(0,o.jsx)("div",{className:"text-small-body text-center text-[#FF707E] mt-1",children:m}),(0,o.jsx)("div",{className:"flex mt-3 justify-center",children:(0,o.jsx)("div",{onClick:()=>{60===f&&(T(),u(""),v(""))},className:"text-small-body-sub ".concat(60!==f?"text-disabled":"text-link"," cursor-pointer"),children:60!==f?(0,o.jsxs)("div",{className:"text-disabled",children:[r("Resend")," ","(".concat(f,"s)")]}):(0,o.jsx)("span",{children:r("SendEmail")})})})]})}),(0,o.jsx)("div",{className:"mt-8",children:(0,o.jsx)(b.A,{children:(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Didn't receive the OTP email?"}),(0,o.jsx)("br",{}),' Please check your spam folder and mark it as "Not spam" to avoid missing it in the future.']})})})]}),(0,o.jsx)("div",{className:"w-full flex justify-center flex-col",children:d&&(0,o.jsx)("div",{onClick:()=>E(p.L.verificationCode),className:" font-medium text-link text-center mt-2 cursor-pointer",children:r("VerifyWithAuthenticator")})})]})};var T=n(9322),D=n(92196),R=n(7419),U=n(36327),P=n(66852);let B=()=>{let{email:e,setNoChangeEmail:t,suggestedEmail:n,selectAccount:i,setStep:l,checked:d,emailRefreshTag:r,setIsAccountExists:c,isAccountExists:x,otpStatus:h,individualUserLoginTfa:_}=(0,p.A)(),{oauthData:E}=(0,L.A)(),[A,C]=(0,g.useState)(!1),{doIndependentLogin:b}=(0,N.A)(),{goDashboard:k}=(0,j.A)(),{toFailedPage:B,toSuccessPage:G}=(0,I.A)(),O=(0,y.Ay)(),M=(0,y.uU)(),{t:F}=(0,w.Bd)(),{ga4log:V}=(0,v.A)(),{setEntity:W}=(0,m.A)();(0,g.useEffect)(()=>{(0,s.EW)({}).then(e=>{let{data:t}=e;W(t.currentSwitch?f.qq:f.Nd)})},[W]);let Y=async t=>{let{data:n}=await (0,a.q$)({recaptchaToken:t,email:e,verifyBusiness:"NORMAL_LOGIN",nonInductiveVerification:!0}
1);return n.result?u.A.success({text:F("VerificationCodeSent")}):u.A.success({text:n.failMessage}),n},{track:q}=(0,T.A)();(0,g.useEffect)(()=>{V({element_id:"paymonade3_independent_login_v2_otp_pageview"})},[V]),(0,g.useEffect)(()=>{q({elementId:"paymonade3_independent_otp_pageview",extraData:{email:e}})},[q]);let{checkUserMigrationAndJump:H}=(0,D.n)(),{trackAndGa:K}=(0,R.A)(),{migrateCashback:$}=(0,U.A)();return(0,o.jsx)(S,{hideChange:!!n,email:e||(null==i?void 0:i.email)||"",onConfirm:async t=>{q({elementId:"paymonade3_independent_otp_Confirm",extraData:{email:e}});try{let{data:n}=await (0,a.bJ)({email:e,emailVerifyCode:t,verifyBusiness:"NORMAL_LOGIN"});if(q({elementId:"login_signup_independent_successful"}),n.accountIsTerminated){O.push("/".concat(M,"/account-terminated"));return}(null==n?void 0:n.token.token)&&(await b(n.token.token,n.token.validTime),q({elementId:"login_signup_independent_successful_2",extraData:{email:e}}),console.log("promition_logElementID","independent_promition_".concat($||"nopromotion","_login_success"),{fromEmail:decodeURIComponent((0,P.UG)("fromEmail")||""),email:e}),K({elementId:"independent_promition_".concat($||"nopromotion","_login_success"),extraData:{fromEmail:decodeURIComponent((0,P.UG)("fromEmail")||""),email:e}}),await H({onAutoMove:()=>{console.log("promition_logElementID","independent_promition_".concat($||"nopromotion","_automove_success"),{fromEmail:decodeURIComponent((0,P.UG)("fromEmail")||""),email:e}),K({elementId:"independent_promition_".concat($||"nopromotion","_automove_success"),extraData:{fromEmail:decodeURIComponent((0,P.UG)("fromEmail")||""),email:e}})}})&&k({skipGoTo:!0}))}catch(e){var n,i,l,o;throw q({elementId:"paymonade3_independent_otp_Confirm_error",extraData:{error:(null==e?void 0:null===(i=e.response)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:n.code)||(null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(l=o.data)||void 0===l?void 0:l.msg)}}),e}},onReSend:Y,isShowGa:h&&!_,onChange:()=>{V({element_id:"login_v2_otp_clickChange",extraInfo:{isAccountExists:x}}),window.grecaptcha.reset(),setTimeout(()=>{t(""),l(p.L.loginPre)},500)}},r)};var G=n(48964),O=n(94021),M=n(33558),F=n.n(M),V=n(88050);let W=()=>{let{t:e}=(0,w.Bd)(),t=(0,y.Ay)(),[n,i]=(0,g.useState)(!1),d=(0,y.uU)(),{email:r,setEmail:c,emailError:x,setEmailError:h,setStep:_,step:E,code:A,setCode:I,individualRegisterBindTfa:L}=(0,p.A)(),[S,T]=(0,g.useState)(""),{goDashboard:D}=(0,j.A)(),{doIndependentLogin:R}=(0,N.A)(),[U,P]=(0,g.useState)(0),[B,G]=(0,g.useState)(!0),[M,W]=(0,g.useState)(!0),[Y,q]=(0,g.useState)(!0),H=(0,g.useRef)(60),[K,$]=(0,g.useState)(60),[Z,J]=(0,g.useState)(!0),{ga4log:X}=(0,v.A)();(0,g.useRef)(null),(0,g.useEffect)(()=>{T("")},[]),(0,g.useEffect)(()=>{X({element_id:"paymonade3_independent_signup_v2_otp_pageview"})},[X]);let z=async t=>{let{data:{entity:n}}=await (0,s.EW)({email:r}),{data:i}=await (0,a.q$)({recaptchaToken:t,email:r,verifyBusiness:"NORMAL_REGISTER",nonInductiveVerification:!0,entity:n});i.result?(u.A.success({text:e("VerificationCodeSent")}),l=setInterval(()=>{if(0===H.current){clearInterval(l),$(60);return}$(e=>e-1),J(!1)},1e3),P(1)):u.A.success({text:i.failMessage})};(0,k.A)({handleCheck:e=>{T(""),z(e)}}),(0,g.useEffect)(()=>{H.current=K},[K]);let Q=(0,g.useCallback)(()=>{var e,t;l&&clearInterval(l),null===(t=window)||void 0===t||null===(e=t.grecaptcha)||void 0===e||e.reset(),setTimeout(()=>{var e,t;null===(t=window)||void 0===t||null===(e=t.grecaptcha)||void 0===e||e.execute()},150)},[]);(0,g.useEffect)(()=>{I(""),u.A.success({text:e("Signupwith").replace("{{email}}",r)})},[r,I,e]);let ee=()=>{(0,a.bJ)({email:r,emailVerifyCode:F()(A),verifyBusiness:"NORMAL_REGISTER"}).then(async n=>{let{data:i}=n;if(i.accountIsTerminated){t.push("/".concat(d,"/account-terminated"));return}(null==i?void 0:i.token.token)&&(await R(i.token.token,i.token.validTime),u.A.success({text:e("SignUpSuccessful")}),X({element_id:"paymonade3_independent_signup_success_pageview"}),L?D({skipGoTo:!0}):_(p.L.TwoFaTip))}).catch(t=>{var n,l,o,a,s,d;i(!1),I(""),(null==t?void 0:null===(l=t.response)||void 0===l?void 0:null===(n=l.data)||void 0===n?void 0:n.code)==="USE000002003"?T(e("InvalidCodePleasetryagain")):(null==t?void 0:null===(a=t.response)||void 0===a?void 0:null===(o=a.data)||void 0===o?void 0:o.code)==="USE004002000"?T(e("tooManyTimes")):T(null==t?void 0:null===(d=t.response)||void 0===d?void 0:null===(s=d.data)||void 0===s?void 0:s.msg)})};(0,g.useEffect)(()=>{r&&u.A.success({text:e("Signupwith").replace("{{email}}",r)}),Q()},[r,Q,e]);let{AgreeDom:et,agreeLog:en,isAgreed:ei}=(0,O.A)({withDualCheckbox:!0}),{setEntity:el,entity:eo}=(0,m.A)();return(0,g.useEffect)(()=>{r&&(0,s.EW)({email:r}).then(e=>{let{data:{entity:t}}=e;el(t)})},[r,el]),(0,o.jsx)("div",{className:"flex flex-col h-full justify-between pb-6",children:(0,o.jsxs)("div",{className:"flex flex-col flex-1 pb-4",children:[(0,o.jsx)("div",{className:"text-center text-base",dangerouslySetInnerHTML:{__html:e("CodeSentToNew").replace("{{email}}","<b>".concat(r,"</b>"))}}),(0,o.jsxs)("div",{onClick:()=>{_(p.L.loginPre)},className:"text-center cursor-pointer my-3 text-small-body",children:[e("NotYouEmail")," ",(0,o.jsx)("span",{className:"text-small-body-sub text-link hover:text-primary active:text-primary",children:e("Change")})]}),(0,o.jsx)("div",{className:"w-full flex justify-center",children:(0,o.jsxs)("div",{className:"w-[328px] mt-2",children:[(0,o.jsx)(C.A,{value:A||"",disabled:n||!ei,setValue:e=>{I(e),T("")},onComplete:async()=>{i(!0);try{await en({email:r,entityTag:f.qq})}catch(e){i(!1);return}ee()}},String(n)),S&&(0,o.jsx)("div",{className:"text-small-body text-sell mt-1",children:S}),(0,o.jsx)("div",{className:"flex mt-4 justify-center",children:n?(0,o.jsx)(V.A,{size:8,color:"#A7EA33",speedMultiplier:.7}):(0,o.jsx)("div",{onClick:()=>{60===K&&(Q(),I(""),T(""))},className:"text-small-body-sub ".concat(60!==K?"text-disabled":"text-link hover:text-primary active:text-primary"," cursor-pointer"),children:60!==K?(0,o.jsxs)("div",{className:"text-disabled cursor-not-allowed",children:[e("Resend")," ","(".concat(K,"s)")]}):(0,o.jsx)("span",{children:e("SendEmail")})})})]})}),(0,o.jsx)("div",{className:"w-full flex justify-center mt-4",children:(0,o.jsx)(et,{})}),(0,o.jsx)("div",{className:"mt-8",children:(0,o.jsx)(b.A,{children:(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Didn't receive the OTP email?"}),(0,o.jsx)("br",{}),' Please check your spam folder and mark it as "Not spam" to avoid missing it in the future.']})})})]})})};var Y=n(48910),q=n(93642),H=n(38243);let K=()=>{let{goDashboard:e}=(0,j.A)(),{bindStatus:t,verifyOpen:n,gaVerificateInfo:i,fetchBindStatus:l,run2FaCheck:a,modal:s,otpStep:r}=(0,Y.A)("INDIVIDUAL_REGISTER_BIND_TFA",{onStatusChange:t=>{let{gaVerificateInfo:n,otpStep:i}=t;(null==n?void 0:n.status)&&i===H.Pv.GA_OTP&&e({skipGoTo:!0})}}),{ga4log:c}=(0,v.A)(),{setStep:u,setShowExtroContent:m}=(0,p.A)(),[x,f]=(0,g.useState)(0);(0,g.useEffect)(()=>{c({element_id:"paymonade3_independent_signup_2fa_bind_pageview"})},[c]);let{t:h}=(0,w.Bd)();return(0,o.jsxs)("div",{className:"flex flex-col h-full justify-between pb-6",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"flex flex-1 w-full justify-center",children:(0,o.jsx)(_(),{src:q.A,alt:"2fa"})}),(0,o.jsx)("div",{className:"mt-6 text-center text-base",dangerouslySetInnerHTML:{__html:h("2faDesc")}})]}),(0,o.jsx)("div",{className:"flex justify-center w-full",children:(0,o.jsx)(d.A,{className:"w-full max-w-[400px]",showContinue:!0,onClick:async()=>{await a()}})}),s]})},$=()=>{let{email:e,pwd:t,loginError:n,setLoginError:i,setStep:l,processToken:d,showExtroContent:r}=(0,p.A)(),{doIndependentLogin:c}=(0,N.A)(),{goDashboard:u}=(0,j.A)(),{ga4log:x}=(0,v.A)(),{track:h}=(0,T.A)(),{t:_}=(0,w.Bd)(),{checkUserMigrationAndJump:E}=(0,D.n)(),{setEntity:A}=(0,m.A)();(0,g.useEffect)(()=>{(0,s.EW)({}).then(e=>{let{data:t}=e;A(t.currentSwitch?f.qq:f.Nd)})},[A]);let{trackAndGa:I}=(0,R.A)(),{migrateCashback:y}=(0,U.A)(),{bindStatus:L,verifyOpen:C,gaVerificateInfo:b,fetchBindStatus:k,run2FaCheck:S,modal:B,otpStep:G}=(0,Y.A)("INDIVIDUAL_USER_LOGIN_TFA",{noNeedInit:!0,verficationType:"independent",onConfirmCallBack:(0,g.useCallback)(async t=>{h({elementId:"paymonade3_independent_otp_Confirm",extraData:{email:e}}),await (0,a.nN)({email:e,verifyCode:t,verifyBusiness:d?"PASSWORD_GA_LOGIN":"NORMAL_GA_LOGIN",processToken:d}).then(async t=>{let{data:n}=t;if(!1===n.passwordCheckResult&&!n.token){i(_("InvalidEmailOrPassword"));return}await c(n.token.token,n.token.validTime),h({elementId:"login_signup_independent_successful"}),h({elementId:"login_signup_independent_successful2",extraData:{email:e}}),console.log("promition_logElementID","independent_promition_".concat(y||"nopromotion","_login_success"),{fromEmail:decodeURIComponent((0,P.UG)("fromEmail")||""),email:e}),I({elementId:"independent_promition_".concat(y||"nopromotion","_login_success"),extraData:{fromEmail:decodeURIComponent((0,P.UG)("fromEmail")||""),email:e}}),await E({onAutoMove:()=>{console.log("promition_logElementID","independent_promition_".concat(y||"nopromotion","_automove_success"),{fromEmail:decodeURIComponent((0,P.UG)("fromEmail")||""),email:e}),I({elementId:"independent_promition_".concat(y||"nopromotion","_automove_success"),extraData:{fromEmail:decodeURIComponent((0,P.UG)("fromEmail")||""),email:e}})}})&&u({skipGoTo:!0})}).catch(e=>{var t,n;i(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.msg)})},[E,c,e,u,d,i,_,h]),error:n,extroContent:(0,g.useMemo)(()=>r&&(0,o.jsx)("div",{className:"mt-2 text-center",children:(0,o.jsxs)("span",{onClick:()=>l(p.L.sendEmail),className:"text-link font-medium text-base cursor-pointer",children:[" ",_("VerifyWithEmail")]})}),[l,r,_])});return(0,g.useEffect)(()=>{x({element_id:"paymonade3_independent_login_v2_ga_pageview",extraInfo:{email:e}})},[x]),(0,g.useEffect)(()=>
1{S({noNeedCheck:!0,otpStep:H.Pv.GA_OTP,bindStatus:H.wb.binded})},[G,S]),(0,g.useEffect)(()=>()=>{i("")},[]),(0,o.jsx)(o.Fragment,{children:B})};var Z=n(8053),J=n(92094),X=n(26020),z=n(52397),Q=n(13715);let ee=()=>{let{t:e}=(0,w.Bd)(),{step:t,setStep:n,setEmail:i,email:l,setEmailNotChange:s}=(0,p.A)(),{RecaptchaInvisibleComponent:d,initRecaptchaInvisible:r}=(0,k.A)({}),[c,u]=(0,g.useState)(!1),[m,x]=(0,g.useState)(!1),{ga4log:f}=(0,v.A)();(0,g.useEffect)(()=>{},[f]),(0,g.useEffect)(()=>{f({element_id:"paymonade3_independent_input_email_pageview"})},[f]),(0,g.useEffect)(()=>{(0,z._W)(J.Bm.email)&&(i((0,z._W)(J.Bm.email)||""),n(p.L.loginPre))},[i,n]);let h=decodeURIComponent((0,P.UG)("fromEmail")||"");(0,g.useEffect)(()=>{h?((0,z.KY)(J.ck.fromEmail,h),i(h),n(p.L.sendEmail)):(0,z.yT)(J.ck.fromEmail)},[h,i,n]),(0,g.useEffect)(()=>{(0,z._W)(J.Bm.isRoma)&&(0,z.yT)(J.Bm.isRoma),(0,z.KY)(J.Bm.loginv2,"independent"),(0,a.Fr)().then(e=>{var t,n;u((null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(t=n.status)||void 0===t?void 0:t.toLowerCase())!=="block")}).finally(()=>{x(!0)})},[]),(0,g.useEffect)(()=>{r()},[r]);let{promotionLoading:E,migrateCashback:I,setPromotionAccountCheck:j,promotionAccountCheck:N,setPormotionLoading:y,setMigrateCashback:L,setMigrateCashbackText:C,migrateCashbackText:b}=(0,U.A)(),{trackAndGa:S}=(0,R.A)();return(0,g.useEffect)(()=>{(l||h)&&(t===p.L.sendEmail||t===p.L.verificationCode)&&(y(!0),(0,a.LU)({email:l||h}).then(e=>{var t,n,i,l,o,a,s,d,r,c,u,m,v,x,p,f;y(!1),j((null===(t=e.data)||void 0===t?void 0:t.entityOfCurrentAccounts)||[]),L(null===(l=e.data)||void 0===l?void 0:null===(i=l.promotionList)||void 0===i?void 0:null===(n=i[0])||void 0===n?void 0:n.name),C(null===(s=e.data)||void 0===s?void 0:null===(a=s.promotionList)||void 0===a?void 0:null===(o=a[0])||void 0===o?void 0:o.welcomePageDescription),h?((0,z.KY)(J.Bm.fromEmail,h),(0,z.KY)(J.Bm.MigrateCashback,(null===(c=e.data)||void 0===c?void 0:null===(r=c.promotionList)||void 0===r?void 0:null===(d=r[0])||void 0===d?void 0:d.name)||""),(0,z.KY)(J.Bm.MigrateCashbackText,(null===(v=e.data)||void 0===v?void 0:null===(m=v.promotionList)||void 0===m?void 0:null===(u=m[0])||void 0===u?void 0:u.welcomePageDescription)||"")):((0,z.KY)(J.Bm.fromEmail,""),(0,z.KY)(J.Bm.MigrateCashback,(null===(f=e.data)||void 0===f?void 0:null===(p=f.promotionList)||void 0===p?void 0:null===(x=p[0])||void 0===x?void 0:x.name)||""))}).catch(e=>{y(!0)}))},[l,h,L,C,y,j,t]),(0,g.useEffect)(()=>{E||(console.log("promition_logElementID","independent_promition_".concat(I||"nopromotion","_pageview"),{fromEmail:h,email:l}),S({elementId:"independent_promition_".concat(I||"nopromotion","_pageview"),extraData:{fromEmail:h,email:l}}))},[l,h,I,E,S]),(0,o.jsx)("div",{className:"flex flex-col h-full relative",children:(0,o.jsxs)(Z.Ay,{children:[!E&&I&&(0,o.jsx)(Q.A,{childrenText:b}),(0,o.jsxs)("div",{className:"flex flex-col relative h-full",children:[(0,o.jsx)("div",{className:"flex justify-center",children:(0,o.jsx)(_(),{className:"mt-12",src:X.A,alt:"paymonadeLogoIcon"})}),(0,o.jsx)("div",{className:"text-h5 text-center mt-12",children:t===p.L.sendEmail||t===p.L.verificationCode?e("VerifyYourAccount"):t===p.L.signup?e("CreateAccount2"):t===p.L.TwoFaTip?e("2FABindTitle"):m?e(c&&(t===p.L.loginPre||t===p.L.loading)?"SignUpLoginWithYourEmail":"LoginWithYourEmail"):(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:" "}})}),(0,o.jsxs)("div",{className:"sm:px-5 mt-14 flex-1",children:[(t===p.L.login||t===p.L.loginPre||t===p.L.loading)&&(0,o.jsx)(A,{}),t===p.L.sendEmail&&(0,o.jsx)(B,{}),t===p.L.signup&&(0,o.jsx)(W,{}),t===p.L.setPWD&&(0,o.jsx)(G.A,{}),t===p.L.verificationCode&&(0,o.jsx)($,{}),t===p.L.TwoFaTip&&(0,o.jsx)(K,{})]})]}),!E&&(null==N?void 0:N.indexOf("LI"))===-1&&(0,o.jsx)("div",{className:"mb-4 text-center sm:px-5 px-0 text-third text-caption [&_a]:text-link [&_a]:hover:text-primary [&_a]:active:text-primary",dangerouslySetInnerHTML:{__html:e("autoMoveTips")}}),(0,o.jsx)(d,{})]})})}},98788:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lng]/login-independent",function(){return n(62214)}])}},e=>{var t=t=>e(e.s=t);e.O(0,[9120,7057,636,6593,8792],()=>t(98788)),_N_E=e.O()}]);
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.