PageSourceSearch

https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_n…/pages/[lng]/login-v2-2dd79bcab1ab309c.js

js paymonade.tech collected 2026-10-04 05:40:33 UTC 61,146 bytes, 20 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[356],{11928:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,L:()=>l});var i=n(10252),o=n(14232),l=function(e){return e.login="login",e.signup="signup",e.setPWD="setPWD",e.verificationCode="verificationCode",e.TwoFaTip="TwoFaTip",e}({});let a=(0,i.kQ)(()=>{let[e,t]=(0,o.useState)(""),[n,i]=(0,o.useState)(),[l,a]=(0,o.useState)(""),[r,s]=(0,o.useState)(),[d,c]=(0,o.useState)(),[u,v]=(0,o.useState)(),[m,p]=(0,o.useState)(!1),[g,f]=(0,o.useState)(),[_,h]=(0,o.useState)("login");return{codeError:g,setCodeError:f,emailNotChange:m,setEmailNotChange:p,code:u,setCode:v,step:_,setStep:h,pwdError:r,setPwdError:s,email:e,setEmail:t,emailError:n,setEmailError:i,pwd:l,setpwd:a,loginError:d,setLoginError:c}})},23837:(e,t,n)=>{"use strict";n.d(t,{wE:()=>g});var i=n(14232),o=Object.defineProperty,l=Object.defineProperties,a=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>
vendor: 6,253 bytes, line 1
1{for(var n in t||(t={}))s.call(t,n)&&c(e,n,t[n]);if(r)for(var n of r(t))d.call(t,n)&&c(e,n,t[n]);return e},v=(e,t)=>l(e,a(t)),m=(e,t)=>{var n={};for(var i in e)s.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&r)for(var i of r(e))0>t.indexOf(i)&&d.call(e,i)&&(n[i]=e[i]);return n},p=i.createContext({}),g=i.forwardRef((e,t)=>{var n,o,l,a,r,{value:s,onChange:d,maxLength:c,textAlign:g="left",pattern:h,placeholder:x,inputMode:A="numeric",onComplete:y,pushPasswordManagerStrategy:E="increase-width",pasteTransformer:k,containerClassName:C,noScriptCSSFallback:I=_,render:w,children:N}=e,T=m(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[S,O]=i.useState("string"==typeof T.defaultValue?T.defaultValue:""),R=null!=s?s:S,L=function(e){let t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}(R),b=i.useCallback(e=>{null==d||d(e),O(e)},[d]),M=i.useMemo(()=>h?"string"==typeof h?new RegExp(h):h:null,[h]),j=i.useRef(null),P=i.useRef(null),D=i.useRef({value:R,onChange:b,isIOS:"undefined"!=typeof window&&(null==(o=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:o.call(n,"-webkit-touch-callout","none"))}),B=i.useRef({prev:[null==(l=j.current)?void 0:l.selectionStart,null==(a=j.current)?void 0:a.selectionEnd,null==(r=j.current)?void 0:r.selectionDirection]});i.useImperativeHandle(t,()=>j.current,[]),i.useEffect(()=>{let e=j.current,t=P.current;if(!e||!t)return;function n(){if(document.activeElement!==e){F(null),K(null);return}let t=e.selectionStart,n=e.selectionEnd,i=e.selectionDirection,o=e.maxLength,l=e.value,a=B.current.prev,r=-1,s=-1,d;if(0!==l.length&&null!==t&&null!==n){let e=t===n,i=t===l.length&&l.length<o;if(e&&!i){if(0===t)r=0,s=1,d="forward";else if(t===o)r=t-1,s=t,d="backward";else if(o>1&&l.length>1){let e=0;if(null!==a[0]&&null!==a[1]){d=t<a[1]?"backward":"forward";let n=a[0]===a[1]&&a[0]<o;"backward"!==d||n||(e=-1)}r=e+t,s=e+t+1}}-1!==r&&-1!==s&&r!==s&&j.current.setSelectionRange(r,s,d)}let c=-1!==r?r:t,u=-1!==s?s:n,v=null!=d?d:i;F(c),K(u),B.current.prev=[c,u,v]}if(D.current.value!==e.value&&D.current.onChange(e.value),B.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&G(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";f(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),f(e.sheet,`[data-input-otp]:autofill { ${t} }`),f(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),f(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),f(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let i=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};i();let o=new ResizeObserver(i);return o.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),o.disconnect()}},[]);let[U,V]=i.useState(!1),[W,G]=i.useState(!1),[Y,F]=i.useState(null),[H,K]=i.useState(null);i.useEffect(()=>{(function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)})(()=>{var e,t,n,i;null==(e=j.current)||e.dispatchEvent(new Event("input"));let o=null==(t=j.current)?void 0:t.selectionStart,l=null==(n=j.current)?void 0:n.selectionEnd,a=null==(i=j.current)?void 0:i.selectionDirection;null!==o&&null!==l&&(F(o),K(l),B.current.prev=[o,l,a])})},[R,W]),i.useEffect(()=>{void 0!==L&&R!==L&&L.length<c&&R.length===c&&(null==y||y(R))},[c,y,L,R]);let J=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:o}){let[l,a]=i.useState(!1),[r,s]=i.useState(!1),[d,c]=i.useState(!1),u=i.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&l&&r,[l,r,n]),v=i.useCallback(()=>{let i=e.current,o=t.current;if(!i||!o||d||"none"===n)return;let l=i.getBoundingClientRect().left+i.offsetWidth,r=i.getBoundingClientRect().top+i.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(l-18,r)===i||(a(!0),c(!0))},[e,t,d,n]);return i.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function i(){s(window.innerWidth-t.getBoundingClientRect().right>=40)}i();let o=setInterval(i,1e3);return()=>{clearInterval(o)}},[e,n]),i.useEffect(()=>{let e=o||document.activeElement===t.current;if("none"===n||!e)return;let i=setTimeout(v,0),l=setTimeout(v,2e3),a=setTimeout(v,5e3),r=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(l),clearTimeout(a),clearTimeout(r)}},[t,o,n,v]),{hasPWMBadge:l,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:P,inputRef:j,pushPasswordManagerStrategy:E,isFocused:W}),$=i.useCallback(e=>{let t=e.currentTarget.value.slice(0,c);if(t.length>0&&M&&!M.test(t)){e.preventDefault();return}"string"==typeof L&&t.length<L.length&&document.dispatchEvent(new Event("selectionchange")),b(t)},[c,b,L,M]),q=i.useCallback(()=>{var e;if(j.current){let t=Math.min(j.current.value.length,c-1),n=j.current.value.length;null==(e=j.current)||e.setSelectionRange(t,n),F(t),K(n)}G(!0)},[c]),Z=i.useCallback(e=>{var t,n;let i=j.current;if(!k&&(!D.current.isIOS||!e.clipboardData||!i))return;let o=e.clipboardData.getData("text/plain"),l=k?k(o):o;e.preventDefault();let a=null==(t=j.current)?void 0:t.selectionStart,r=null==(n=j.current)?void 0:n.selectionEnd,s=(a!==r?R.slice(0,a)+l+R.slice(r):R.slice(0,a)+l+R.slice(a)).slice(0,c);if(s.length>0&&M&&!M.test(s))return;i.value=s,b(s);let d=Math.min(s.length,c-1),u=s.length;i.setSelectionRange(d,u),F(d),K(u)},[c,b,M,R]),z=i.useMemo(()=>
1({position:"relative",cursor:T.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[T.disabled]),Q=i.useMemo(()=>({position:"absolute",inset:0,width:J.willPushPWMBadge?`calc(100% + ${J.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:J.willPushPWMBadge?`inset(0 ${J.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:g,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[J.PWM_BADGE_SPACE_WIDTH,J.willPushPWMBadge,g]),X=i.useMemo(()=>i.createElement("input",v(u({autoComplete:T.autoComplete||"one-time-code"},T),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===R.length||void 0,"data-input-otp-mss":Y,"data-input-otp-mse":H,inputMode:A,pattern:null==M?void 0:M.source,"aria-placeholder":x,style:Q,maxLength:c,value:R,ref:j,onPaste:e=>{var t;Z(e),null==(t=T.onPaste)||t.call(T,e)},onChange:$,onMouseOver:e=>{var t;V(!0),null==(t=T.onMouseOver)||t.call(T,e)},onMouseLeave:e=>{var t;V(!1),null==(t=T.onMouseLeave)||t.call(T,e)},onFocus:e=>{var t;q(),null==(t=T.onFocus)||t.call(T,e)},onBlur:e=>{var t;G(!1),null==(t=T.onBlur)||t.call(T,e)}})),[$,q,Z,A,Q,c,H,Y,T,null==M?void 0:M.source,R]),ee=i.useMemo(()=>({slots:Array.from({length:c}).map((e,t)=>{var n;let i=W&&null!==Y&&null!==H&&(Y===H&&t===Y||t>=Y&&t<H),o=void 0!==R[t]?R[t]:null;return{char:o,placeholderChar:void 0!==R[0]?null:null!=(n=null==x?void 0:x[t])?n:null,isActive:i,hasFakeCaret:i&&null===o}}),isFocused:W,isHovering:!T.disabled&&U}),[W,U,c,H,Y,T.disabled,R]),et=i.useMemo(()=>w?w(ee):i.createElement(p.Provider,{value:ee},N),[N,ee,w]);return i.createElement(i.Fragment,null,null!==I&&i.createElement("noscript",null,i.createElement("style",null,I)),i.createElement("div",{ref:P,"data-input-otp-container":!0,style:z,className:C},et,i.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},X)))});function f(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}g.displayName="Input";var _=`
2[data-input-otp] {
3  --nojs-bg: white !important;
4  --nojs-fg: black !important;
5
6  background-color: var(--nojs-bg) !important;
7  color: var(--nojs-fg) !important;
8  caret-color: var(--nojs-fg) !important;
9  letter-spacing: .25em !important;
10  text-align: center !important;
11  border: 1px solid var(--nojs-fg) !important;
12  border-radius: 4px !important;
13  width: 100% !important;
14}
15@media (prefers-color-scheme: dark) {
16  [data-input-otp] {
17    --nojs-bg: black !important;
18    --nojs-fg: white !important;
19  }
20}`},70028:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lng]/login-v2",function(){return n(82497)}])},79123:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(37876),o=n(54587),l=n.n(o);let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/paymonade-logo-icon.2364f979.svg",height:16,width:17,blurWidth:0,blurHeight:0};var r=n(34846),s=n(44975);let d=e=>{let{className:t}=e,{t:n}=(0,r.Bd)(),{showBinance:o}=(0,s.A)();return!1===o?(0,i.jsxs)("div",{className:"sm:hidden flex flex-1 items-center justify-center text-disabled text-xs py-2 ".concat(t),children:[(0,i.jsx)(l(),{src:a,alt:"paymonadeLogoIcon",className:"mr-2"}),(0,i.jsx)(r.x6,{t:n,i18nKey:"PoweredBy",components:{s:(0,i.jsx)("span",{className:"text-secondary text-xs ml-1"})}})]}):(0,i.jsx)(i.Fragment,{})}},82497:(e,t,n)=>{"use strict";let i,o;n.r(t),n.d(t,{default:()=>em});var l=n(37876),a=n(54587),r=n.n(a),s=n(8053),d=n(34846),c=n(14232),u=n(38243),v=n(78932),m=n(14461),p=n(84952),g=n(56709),f=n(79123),_=n(99190),h=n(17745),x=n(11593),A=n(9322);let y=e=>{var t;let{open:n,setOpen:i,onConfirm:o}=e,{t:a}=(0,d.Bd)(),{selectAccount:s,setSelectAccount:y,setShowExistingAccount:E,setStep:k}=(0,x.A)(),{oauthData:C,setOAuthData:I}=(0,v.A)(),w=(null==C?void 0:null===(t=C.nextValidation)||void 0===t?void 0:t.kycLoginStatus)===u.Y0.WAIT_SELECT_ACCOUNT,N=(0,c.useMemo)(()=>{var e,t;return w?null==C?void 0:null===(e=C.nextValidation)||void 0===e?void 0:e.usersToSelect:[null==C?void 0:null===(t=C.nextValidation)||void 0===t?void 0:t.userToBind]},[w,C]),T=w&&!s,{ga4log:S}=(0,h.A)(),{track:O}=(0,A.A)(),R=e=>{y(e)};return(0,c.useEffect)(()=>{n&&S({element_id:"login_v2_Existing_pageview"})},[n,S]),(0,c.useEffect)(()=>{n&&O({elementId:"login_v2_Existing_pageview"})},[n,O]),(0,c.useEffect)(()=>{N&&1===N.length&&y(N[0])},[N,y]),(0,l.jsx)(_.Ay,{open:n,showMask:!0,setOpen:i,title:a("ExistingAccountFound"),footer:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.A,{inactive:T,onClick:()=>{S({element_id:"login_v2_Existing_confirm"}),O({elementId:"login_v2_Existing_confirm"}),E(!1),o()},className:"mb-0!",children:(0,l.jsxs)("div",{className:"flex flex-1 justify-center",children:[(0,l.jsx)("span",{children:a("Continue")}),(0,l.jsx)(r(),{className:"ml-1",src:g.A,alt:"ICGoBtn"})]})}),(0,l.jsxs)("div",{onClick:()=>{S({element_id:"login_v2_Existing_NotYourAccount"}),O({elementId:"login_v2_Existing_NotYourAccount"}),i(!1),k(x.L.loginPre)},className:"text-secondary flex justify-center items-center mt-2",children:[(0,l.jsx)("span",{children:a("NotYourAccount")}
20),(0,l.jsx)("span",{className:"text-link ml-1 cursor-pointer",onClick:()=>{},children:a("LogInSignUp")})]}),(0,l.jsx)(f.A,{})]}),children:(0,l.jsxs)("div",{className:"grow py-3",children:[(0,l.jsx)("div",{className:"text-small-body text-primary-text",children:a("selectAccount")}),(0,l.jsx)("div",{className:"mt-2 mb-6 text-small-body text-primary-text",children:a("selectAccountDesc").replace("{{merchant}}","todo")}),(0,l.jsx)("div",{className:"bg-bg2 rounded-xl py-4 px-3",children:null==N?void 0:N.map((e,t)=>(0,l.jsxs)("div",{onClick:()=>R(e),className:"cursor-pointer",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(null==N?void 0:N.length)>1&&(0,l.jsx)(m.A,{className:"mr-3",selected:(null==s?void 0:s.userTempRef)===e.userTempRef}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"font-medium",children:null==e?void 0:e.email})})]}),t!==(null==N?void 0:N.length)-1&&(null==N?void 0:N.length)>1&&(0,l.jsx)("div",{className:"border-dashed border-t border-line my-3"}),(0,l.jsx)("div",{})]},t))})]})})};var E=n(61329),k=n(92094),C=n(52397),I=n(66852),w=n(51259),N=n(95256),T=n(79829),S=n(95690),O=n(82565),R=n(92196),L=n(29815),b=n(7419);let M=()=>{let{doIndependentLoginInBind:e}=(0,S.A)(),{checkUserMigrationAndJump:t}=(0,R.n)(),{CheckKycModal:n}=(0,L.A)(),{trackAndGa:i}=(0,b.A)();return{doSkipLogin:async o=>{let l,{vToken:a,initUserParams:r}=o;i({elementId:"paymonade3_skip_login_pageView",extraData:{...r?{initUserParams:JSON.stringify(r)}:{}}});let s=Math.floor(1e6*Math.random()).toString().padStart(6,"0"),{email:d,verifyBusiness:c,kycLoginProcessId:u}=r||{},v=a?{headers:{"p-v-token":a}}:{},m={};d&&c&&(m={email:d,verifyBusiness:c,kycLoginProcessId:u},await (0,E.q$)({email:d,verifyBusiness:c,kycLoginProcessId:u},v));try{l=(await (0,E.bJ)({email:(0,C._W)(k.Bm.suggestedEmail)||"",emailVerifyCode:s,verifyBusiness:"NORMAL_LOGIN_IN_BIND",nonInductiveVerification:!0,orderToken:(0,C._W)(k.Bm.orderToken),...m},v)).data}catch(e){l=void 0}(null==l?void 0:l.token.token)&&(await e(l.token.token,l.token.validTime),await t()&&n({noModal:!0}))}}},j=()=>{let{step:e,setSuggestedEmail:t,setNoChangeEmail:n,setEmailRefreshTag:i,setEmail:o,setLoginWithMerchantSharedKyc:l,setEnableBinanceOauth:a,setShowExistingAccount:r,setRecaptchaToken:s,setStep:m,setAutoCheckAccount:p}=(0,x.A)(),{goSkipLogin:g,goAcctStatusPage:f,goRomaAcctStatusPage:_,goRomaUnsupportPage:y,goAccountTerminatedPaged:j}=(0,w.A)(),{setOAuthData:P}=(0,v.A)(),{doIndependentLoginInBind:D}=(0,S.A)(),{t:B}=(0,d.Bd)(),[U,V]=(0,c.useState)("true"===(0,C._W)(k.Bm.isRoma)),[W,G]=(0,c.useState)("true"===(0,C._W)(k.Bm.isRomaCorp)),Y=(0,N.uU)();(0,c.useEffect)(()=>{let e=(0,I.UG)("paymentMethod")||"";"PAYMONADE_ROMA"!==e&&"PAYMONADE_ROMA_CORPORATE"!==e&&(0,E.YO)().then(e=>{let{data:t}=e;"BLOCK"===t.status&&(H({elementId:"IP_Block_Pageview"}),window.location.replace("/".concat(Y,"/services-unavailable")))})},[Y]),(0,c.useEffect)(()=>{(0,E.nR)({tranId:(0,I.UG)("tranId")}).then(e=>{let{data:t}=e;t.fiatCurrency&&(0,C.KY)(k.ck.fiatCurrency,t.fiatCurrency),(0,C.KY)(k.ck.merchantCode,t.merchantName||B("ReferralPartner"))}).catch(()=>{(0,C.KY)(k.ck.merchantCode,B("ReferralPartner"))})},[B]);let{ga4log:F}=(0,h.A)(),{track:H}=(0,A.A)(),{checkUserMigrationAndJump:K}=(0,R.n)(),{CheckKycModal:J}=(0,L.A)(),{trackAndGa:$}=(0,b.A)(),{doSkipLogin:q}=M();return{check:(0,c.useCallback)(async()=>{var e,i,s,d,c,v,g,f,h;let A=(0,I.UG)("tranId"),w=(0,I.UG)("orderToken")||"",N=(0,I.UG)("tranType")||"",S=(0,I.UG)("fiatCurrency")||"",R=(0,I.UG)("paymentMethod")||"",L=(0,I.UG)("redirectUrl")||"",b=(0,I.UG)("cTag")||"",M="PAYMONADE_ROMA"===R||"PAYMONADE_ROMA_CORPORATE"===R;"PAYMONADE_ROMA"===R||"PAYMONADE_ROMA_CORPORATE"===R?(V(!0),M=!0):(V(!1),M=!1);"PAYMONADE_ROMA_CORPORATE"===R?(console.log("is roma corp"),G(!0),(0,C.KY)(k.Bm.isRomaCorp,"true")):(G(!1),(0,C.yT)(k.Bm.isRomaCorp));let{success:U,errorItems:W}=await (0,C.QA)([{key:k.ck.paymentMethod,value:R},{key:k.ck.tranId,value:A||""},{key:k.ck.orderToken,value:w},{key:k.ck.tranType,value:null==N?void 0:null===(e=N.toLowerCase)||void 0===e?void 0:e.call(N)},{key:k.Bm.loginv2,value:"true"},{key:k.ck.redirectUrl,value:L},{key:k.ck.cTag,value:b},{key:k.Bm.fromEmail,value:""},...S?[{key:k.ck.fiatCurrency,value:S}]:[],...R===k.YJ.ROMA||R===k.YJ.PAYMONADE_ROMA_CORPORATE?[{key:k.Bm.isRoma,value:"true"}]:[{key:k.Bm.isRoma,value:"2"}]]);try{U||$({elementId:"fail_set_cookie",extraData:{errorItems:JSON.stringify(W),paymentMethod:R,url:window.location.href,cookies:window.document.cookie,userAgent:navigator.userAgent,language:navigator.language,screen:JSON.stringify({width:screen.width,height:screen.height}),viewport:JSON.stringify({width:window.innerWidth,height:window.innerHeight}),visibilityState:document.visibilityState,cookieEnabled:navigator.cookieEnabled,deviceMemory:null===(s=window)||void 0===s?void 0:null===(i=s.navigator)||void 0===i?void 0:i.deviceMemory}})}catch(e){}try{(0,T.JJ)({elementId:"login_pageview_after_setcookie",url:window.location.href,cookie:document.cookie,cookieToken_V2CookieFields:(0,C._W)(k.ck.orderToken),cookieToken_V3CookieFields:(0,C._W)(k.Bm.orderToken),urlOrderToken:w}
20)}catch(e){}try{(0,C._W)(k.Bm.orderToken)||(0,C._W)(k.Bm.loginv2)||$({elementId:"fail_get_resultPage_cookie",extraData:{url:window.location.href,cookies:window.document.cookie,userAgent:navigator.userAgent,language:navigator.language,screen:JSON.stringify({width:screen.width,height:screen.height}),viewport:JSON.stringify({width:window.innerWidth,height:window.innerHeight}),visibilityState:document.visibilityState,cookieEnabled:navigator.cookieEnabled,deviceMemory:null===(c=window)||void 0===c?void 0:null===(d=c.navigator)||void 0===d?void 0:d.deviceMemory}})}catch(e){}try{let{data:e}=await (0,E.gc)({orderToken:w});if("BLOCK"===e.status){j();return}if(e.loginConfig&&(a(e.loginConfig.enableBinanceOauth),o(e.loginConfig.suggestedEmail||""),l(e.loginConfig.loginWithMerchantSharedKyc),(0,C.KY)(k.Bm.suggestedEmail,e.loginConfig.suggestedEmail||"")),(0,C.KY)(k.Bm.loginStatus,e.status),(0,C.KY)(k.Bm.vToken,e.vToken),"SKIP_OTP"===e.status?((0,C.KY)(k.Bm.SKIP_OTP,"true"),F({element_id:"paymonade3_skip_login_entry"})):((0,C.KY)(k.Bm.SKIP_OTP,"false"),F({element_id:"paymonade3_noskip_login_pagview"})),"SKIP_OTP"===e.status)H({elementId:"login_signup_successful"}),q({vToken:e.vToken});else if("N"===e.status){if(console.log("loginConfig",e.loginConfig),e.loginConfig.loginWithMerchantSharedKyc&&!e.loginConfig.suggestedEmail){let e=()=>(0,E.Ke)({orderToken:w}).then(e=>{var t,n,i,l,a,s,d,c,v,g,f;let{data:_}=e;if(console.log(_),P(_),(null==_?void 0:_.vToken)&&(null==_?void 0:null===(t=_.nextValidation)||void 0===t?void 0:t.emailToCreate)){(0,C.KY)(k.Bm.vToken,_.vToken),(0,E.g4)({orderToken:(0,I.UG)("orderToken"),paymentMethod:(0,I.UG)("paymentMethod"),businessType:(0,I.UG)("tranType"),fiatCurrency:(0,I.UG)("fiatCurrency"),email:null==_?void 0:null===(a=_.nextValidation)||void 0===a?void 0:a.emailToCreate,kycLoginProcessId:(null==_?void 0:null===(s=_.nextValidation)||void 0===s?void 0:s.kycLoginProcessId)||"",channel:M?"ROMA":""}).then(e=>{var t,n;q({vToken:_.vToken||"",initUserParams:{email:(null==_?void 0:null===(t=_.nextValidation)||void 0===t?void 0:t.emailToCreate)||"",verifyBusiness:"LOGIN_OR_REGISTER_IN_BIND_V2",kycLoginProcessId:(null==_?void 0:null===(n=_.nextValidation)||void 0===n?void 0:n.kycLoginProcessId)||""}})});return}if((null===(n=_.nextValidation)||void 0===n?void 0:n.kycLoginStatus)===u.Y0.WAIT_NEW_EMAIL)M&&(o((null===(d=_.nextValidation)||void 0===d?void 0:d.emailToCreate)||""),(0,C.KY)(k.Bm.emailToCreate,(null===(c=_.nextValidation)||void 0===c?void 0:c.emailToCreate)||"")),m(x.L.loginPre);else if((null===(i=_.nextValidation)||void 0===i?void 0:i.kycLoginStatus)===u.Y0.WAIT_SELECT_ACCOUNT)r(!0);else if((null===(l=_.nextValidation)||void 0===l?void 0:l.kycLoginStatus)===u.Y0.WAIT_EMAIL_VERIFY_CODE){if((null==_?void 0:null===(v=_.nextValidation)||void 0===v?void 0:v.emailToCreate)&&_.nextValidation.emailToCreate.indexOf("@privaterelay.appleid.com")>-1){m(x.L.loginPre),o("");return}o((null===(g=_.nextValidation)||void 0===g?void 0:g.emailToCreate)||""),(0,C.KY)(k.Bm.emailToCreate,(null===(f=_.nextValidation)||void 0===f?void 0:f.emailToCreate)||""),p(!0)}});e().catch(t=>{var n,i,o,l;let a=null==t?void 0:null===(i=t.response)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:n.code,r=null==t?void 0:null===(l=t.response)||void 0===l?void 0:null===(o=l.data)||void 0===o?void 0:o.msg;if("USE001000014"===a&&M){y();return}if("USE001000014"===a||"USE001000015"===a||"USE001000016"===a||"USE001000017"===a||"USE0010020001"===a){O.A.info({text:r||B("SomethingWentWrongContactCustomer")});return}e()});return}p(!0),t(e.loginConfig.suggestedEmail),o(e.loginConfig.suggestedEmail),n(e.loginConfig.suggestedEmail),m(x.L.loginPre),(0,C.KY)(k.Bm.suggestedEmail,e.loginConfig.suggestedEmail)}else if("Y"===e.status){if(F({element_id:"login_v2_hasLogin"}),H({elementId:"login_signup_successful"}),H({elementId:"logged_account_pageview"}),!(null==e?void 0:null===(v=e.token)||void 0===v?void 0:v.token)){console.error("tou_sign_skip_empty_token",{source:"checkLoginStatus_Y"});return}await D(e.token.token,e.token.validTime),R===k.YJ.ROMA||R===k.YJ.PAYMONADE_ROMA_CORPORATE?_():await K()&&J({noModal:!0})}}catch(e){(null==e?void 0:null===(g=e.data)||void 0===g?void 0:g.code)==="USE001000007"?O.A.info({text:(null==e?void 0:null===(h=e.data)||void 0===h?void 0:h.msg)||B("OrderExpired").replace("{{Merchant}}",(0,C._W)(k.ck.merchantCode))}):(null==e?void 0:null===(f=e.data)||void 0===f?void 0:f.code)==="USE001000100"&&y()}},[a,o,l,F,H,g,P,m,r,p,B,t,n,D,_,K,J,y])}};var P=n(26020),D=n(43422),B=n(16247),U=n(91408),V=n(44405),W=n(18236),G=n(90612),Y=n(81996);let F=()=>{var e,t;let{t:n}=(0,d.Bd)(),{setEntity:i}=(0,G.A)();(0,c.useEffect)(()=>{(0,T.EW)({formOrder:!0,orderToken:(0,I.UG)("orderToken")}).then(e=>{let{data:t}=e;i(t.currentSwitch?Y.qq:Y.Nd)})},[i]);let{email:o,setEmail:a,emailError:s,setEmailError:m,setpwd:g,pwd:f,loginError:_,setLoginError:y,pwdError:w,setPwdError:N,setStep:S,step:R,emailN
20otChange:L,setNoChangeEmail:b,setProcessToken:M,noChangeEmail:j,otpStatus:P,individualUserLoginTfa:F,forgotPwd:H,setForgotPwd:K,setExistsPassword:J,setHitPasswordAndOpt:$,setOtpStatus:q,setIndividualUserLoginTfaInOrder:Z,setIndividualRegisterBindTfaInOrder:z,selectAccount:Q,suggestedEmail:X,autoCheckAccount:ee,setAutoCheckAccount:et}=(0,x.A)(),{oauthData:en}=(0,v.A)(),{ga4log:ei}=(0,h.A)(),{track:eo}=(0,A.A)(),el=(0,I.UG)("paymentMethod")||"",ea="true"===(0,C._W)(k.Bm.isRoma)||"PAYMONADE_ROMA"===el||"PAYMONADE_ROMA_CORPORATE"===el,er=R===x.L.login?!((j||o)&&f&&!s&&!w):!o||s,[es,ed]=(0,c.useState)(!1);(0,c.useEffect)(()=>{f||(N(""),y(""))},[f,y,N]),(0,c.useEffect)(()=>{o||(N(""),y(""))},[o,y,N]),(0,c.useEffect)(()=>{ee||R===x.L.loading||eo({elementId:"input_account_pageview"})},[eo,ee,R]);let ec=(0,c.useCallback)(()=>{var e,t;ed(!0),(0,E.g4)({orderToken:(0,I.UG)("orderToken"),paymentMethod:(0,I.UG)("paymentMethod"),businessType:(0,I.UG)("tranType"),fiatCurrency:(0,I.UG)("fiatCurrency"),email:o||j,channel:ea?"ROMA":"",scenarioList:["INDIVIDUAL_USER_LOGIN_TFA_IN_ORDER","INDIVIDUAL_REGISTER_BIND_TFA_IN_ORDER"],...(null==en?void 0:null===(e=en.nextValidation)||void 0===e?void 0:e.kycLoginStatus)!==u.Y0.WAIT_SELECT_ACCOUNT||o?"":{userTempRef:null==Q?void 0:Q.userTempRef},...X?{}:{kycLoginProcessId:null==en?void 0:null===(t=en.nextValidation)||void 0===t?void 0:t.kycLoginProcessId}}).then(async e=>{var t,i,l,r,s,d,c,u,v,m,p,g,f;let{data:_}=e;J((null==_?void 0:_.accountInfo)&&(null==_?void 0:null===(t=_.accountInfo)||void 0===t?void 0:t.existsPassword)),$((null==_?void 0:_.accountInfo)&&(null==_?void 0:null===(i=_.accountInfo)||void 0===i?void 0:i.hitPasswordAndOpt)),q((null==_?void 0:_.accountInfo)&&(null==_?void 0:null===(l=_.accountInfo)||void 0===l?void 0:l.otpStatus)==="BINDED"),z(null==_?void 0:null===(r=_.scenarioMap)||void 0===r?void 0:r.INDIVIDUAL_REGISTER_BIND_TFA_IN_ORDER),Z(null==_?void 0:null===(s=_.scenarioMap)||void 0===s?void 0:s.INDIVIDUAL_USER_LOGIN_TFA_IN_ORDER),(null==_?void 0:_.accountInfo)?eo({elementId:"paymonade3_needverify_login_pageView"}):o&&o.indexOf("@privaterelay.appleid.com")>-1?(y(n("privaterelayEmailTips")),S(x.L.loginPre),eo({elementId:"signup_flow_failwith_apple"})):(S(x.L.signup),eo({elementId:o||j?"signup_flow_withemail":"signup_flow_withoutemail"})),(null==_?void 0:null===(d=_.accountInfo)||void 0===d?void 0:d.email)&&a(null==_?void 0:null===(m=_.accountInfo)||void 0===m?void 0:m.email),(null==_?void 0:_.accountInfo)&&(null==_?void 0:null===(c=_.accountInfo)||void 0===c?void 0:c.existsPassword)&&(null==_?void 0:null===(u=_.accountInfo)||void 0===u?void 0:u.hitPasswordAndOpt)&&(a(null==_?void 0:null===(p=_.accountInfo)||void 0===p?void 0:p.email),S(x.L.login),ei({element_id:"paymonade3_login_v2_pageView"})),null==_||!_.accountInfo||(null==_?void 0:null===(v=_.accountInfo)||void 0===v?void 0:v.hitPasswordAndOpt)||((null==_?void 0:null===(g=_.scenarioMap)||void 0===g?void 0:g.INDIVIDUAL_USER_LOGIN_TFA_IN_ORDER)||(null==_?void 0:null===(f=_.accountInfo)||void 0===f?void 0:f.otpStatus)!=="BINDED"?S(x.L.sendEmail):S(x.L.verificationCode)),ed(!1),et(!1)}).catch(e=>{var t,n;y(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.msg),ed(!1)})},[o,ei,ea,j,null==en?void 0:null===(e=en.nextValidation)||void 0===e?void 0:e.kycLoginProcessId,null==en?void 0:null===(t=en.nextValidation)||void 0===t?void 0:t.kycLoginStatus,null==Q?void 0:Q.userTempRef,et,a,J,$,z,Z,y,q,S,X,n,eo]);(0,c.useEffect)(()=>{ee&&ec()},[ee,ec]);let eu=(0,c.useRef)(null);return ee||R===x.L.loading?(0,l.jsx)(V.A,{desc:ea?"":(0,l.jsx)("div",{className:"text-regular-body text-secondary",children:n("VerifyingDetailsAhead")})}):(0,l.jsxs)("div",{className:"flex flex-col h-full pb-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(W.A,{onEnter:e=>{e.target.blur(),setTimeout(()=>{var e;null===(e=eu.current)||void 0===e||e.click()},0)},suffix:o&&(0,l.jsx)(r(),{onClick:()=>{a(""),N(""),y(""),g(""),b(""),S(x.L.loginPre)},src:B.A,alt:"closeSvg",className:"cursor-pointer"}),placeholder:n("Email"),value:j||o,error:s||_,setError:m,className:" ",rules:(0,U.Yj)().matches(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$|^$/i,n("InvalidEmailAddress")),onInput:e=>{var t,n,i,o;a(null===(n=e.target.value)||void 0===n?void 0:null===(t=n.trim)||void 0===t?void 0:t.call(n)),e.target.value=null===(o=e.target.value)||void 0===o?void 0:null===(i=o.trim)||void 0===i?void 0:i.call(o),S(x.L.loginPre),N(""),y(""),g("")}}),R===x.L.login&&(0,l.jsx)(W.A,{id:"password",type:"password",suffix:f&&(0,l.jsx)(r(),{onClick:()=>g(""),src:B.A,alt:"closeSvg",className:"cursor-pointer"}),placeholder:n("Password"),value:f,error:w||_,setError:N,className:"!mt-2",onEnter:e=>{e.target.blur(),setTimeout(()=>{var e;null===(e=eu.current)||void 0===e||e.click()},0)},autoFocus:!0,onInput:e=>g(e.target.value)}),o&&(0,l.jsx)("div",{className:"text-sm text-[#FF707E] mt-1 px-3",children:s||_||w})]}),(0,l.jsxs)("div",{className:"w-full flex justify-center items-center flex-col mt-6",children:[(0,l.jsx)(p.A,{btnRef:eu,loading:es,onClick:()=>
20{if(eo({elementId:"Input_Account_Nextbtn_Click"}),R===x.L.loginPre){ec();return}ed(!0),(0,E.Gf)({email:o,password:f}).then(async e=>{let{data:t}=e;if(ed(!1),t)M(t),y("");else{y(n("InvalidEmailOrPassword"));return}O.A.success({text:n("Loginto").replace("{{email}}",o)}),P&&!F?S(x.L.verificationCode):S(x.L.sendEmail)}).catch(e=>{var t,i,o,l,a,r;eo({elementId:"Input_Account_Nextbtn_Click_Error",extraData:{error:(null==e?void 0:null===(i=e.response)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.code)||(null==e?void 0:null===(l=e.response)||void 0===l?void 0:null===(o=l.data)||void 0===o?void 0:o.msg)}}),y((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(a=r.data)||void 0===a?void 0:a.msg)||n("InvalidEmailOrPassword")),ed(!1)})},inactive:!!er,className:"sm:!w-[400px]",showContinue:!0,showContinueBtnText:n("Next")}),(0,l.jsx)("div",{className:"mt-2 text-center",children:R===x.L.login&&(0,l.jsx)("div",{onClick:()=>K(!0),className:" font-medium  text-link text-base mt-2 cursor-pointer",children:n("ForgotPassword")})})]}),R===x.L.login&&(0,l.jsx)(D.A,{open:H,setOpen:K,isIndependent:!1})]})};var H=n(45986),K=n(85083),J=n(88050),$=n(5209);let q=e=>{let{onConfirm:t,onReSend:n,email:o,onChange:a,hideChange:r,isShowGa:s}=e,{t:u}=(0,d.Bd)(),[v,m]=(0,c.useState)(""),[p,g]=(0,c.useState)(""),f=(0,c.useRef)(60),[_,h]=(0,c.useState)(60),[A,y]=(0,c.useState)(!1),{checked:E,setStep:k,otpStatus:C,showExistingAccount:I,suggestedEmail:w,processToken:N}=(0,x.A)(),[T,S]=(0,c.useState)(!0);(0,c.useEffect)(()=>{f.current=_},[_]);let[O,R]=(0,c.useState)(!1),L=(0,c.useRef)(null),b=(0,c.useCallback)(async e=>{var n,i,o,l,a,r;try{R(!0),null===(i=L.current)||void 0===i||null===(n=i.blur)||void 0===n||n.call(i),await t(e)}catch(e){m(""),((null==e?void 0:null===(o=e.config)||void 0===o?void 0:o.url)||"").indexOf("verify-code")>-1?g((null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:l.msg)||(null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.msg)||u("InvalidCodePleasetryagain")):g(u("SomethingWentWrong"))}finally{R(!1)}},[t,u]);(0,c.useEffect)(()=>{g("")},[b]);let M=(0,c.useCallback)(async()=>{i&&clearInterval(i),g("");let e=await n();(null==e?void 0:e.result)&&(i=setInterval(()=>{if(0===f.current){clearInterval(i),h(60);return}S(!1),h(e=>e-1)},1e3))},[]);return(0,c.useEffect)(()=>{M()},[M]),(0,c.useEffect)(()=>()=>{g("")},[]),(0,l.jsxs)("div",{className:"flex flex-col h-full pb-4",children:[(0,l.jsxs)("div",{className:"w-full grow",children:[(0,l.jsx)("div",{className:"text-center text-regular-body mb-3",dangerouslySetInnerHTML:{__html:u("CodeSentToNew").replace("{{email}}",o)}}),!(w||N||I)&&(0,l.jsxs)("div",{className:"text-center mb-3 text-secondary",children:[u("NotYouEmail")," ",(0,l.jsx)("span",{onClick:()=>{null==a||a()},className:"font-medium cursor-pointer text-link",children:u("Change")})]}),(0,l.jsx)("div",{className:"w-full flex justify-center flex-1",children:(0,l.jsxs)("div",{className:"w-[328px] mt-2",children:[(0,l.jsx)(K.A,{value:v||"",setValue:m,onComplete:e=>b(e),disabled:O},String(O)),p&&(0,l.jsx)("div",{className:"text-small-body text-center text-sell mt-2",children:p}),(0,l.jsx)("div",{className:"flex mt-3 justify-center",children:O?(0,l.jsx)(J.A,{size:8,color:"#A7EA33",speedMultiplier:.7}):(0,l.jsx)("div",{onClick:()=>{60===_&&(y(!0),M(),m(""),g(""))},className:"text-small-body-sub ".concat(60!==_?"text-disabled":"text-link hover:text-primary active:text-primary"," cursor-pointer"),children:60!==_?(0,l.jsxs)("div",{className:"text-disabled",children:[u("Resend")," ","(".concat(_,"s)")]}):(0,l.jsx)("span",{children:u("SendEmail")})})})]})}),(0,l.jsx)("div",{className:"mt-8",children:(0,l.jsx)($.A,{children:(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:"Didn't receive the OTP email?"}),(0,l.jsx)("br",{}),' Please check your spam folder and mark it as "Not spam" to avoid missing it in the future.']})})})]}),(0,l.jsx)("div",{className:"flex justify-center",children:s&&(0,l.jsx)("div",{onClick:()=>k(x.L.verificationCode),className:"text-link hover:text-primary active:text-primary text-regular-body-sub cursor-pointer",children:u("VerifyWithAuthenticator")}
20)})]})};var Z=n(36327);let z=()=>{var e;let{email:t,setNoChangeEmail:n,suggestedEmail:i,selectAccount:o,setStep:a,checked:r,emailRefreshTag:s,setIsAccountExists:m,isAccountExists:p,processToken:g,otpStatus:f,individualUserLoginTfaInOrder:_}=(0,x.A)(),{doIndependentLoginInBind:y}=(0,S.A)(),{goAcctStatusPage:M,goRomaAcctStatusPage:j}=(0,w.A)(),{oauthData:P}=(0,v.A)(),[D,B]=(0,c.useState)(!1),{toFailedPage:U,toSuccessPage:V}=(0,H.A)(),W=(0,N.Ay)(),F=(0,N.uU)(),{t:K}=(0,d.Bd)(),[J,$]=(0,c.useState)("true"===(0,C._W)(k.Bm.isRoma)),{ga4log:z}=(0,h.A)(),{setEntity:Q}=(0,G.A)();(0,c.useEffect)(()=>{(0,T.EW)({formOrder:!0,orderToken:(0,I.UG)("orderToken")}).then(e=>{let{data:t}=e;Q(t.currentSwitch?Y.qq:Y.Nd)})},[Q]);let X=(0,c.useCallback)(async()=>{var e,n,l,a,r;try{let n="";n=i?J?"ROMA_BIND":g?"PASSWORD_EMAIL_LOGIN_IN_ORDER":"NORMAL_LOGIN_IN_BIND":J?"ROMA_BIND":g?"PASSWORD_EMAIL_LOGIN_IN_BIND":"LOGIN_OR_REGISTER_IN_BIND_V2";let{data:l}=await (0,E.q$)({email:t||(null==o?void 0:o.email)||"",verifyBusiness:n,nonInductiveVerification:!0,userTempRef:null==o?void 0:o.userTempRef,kycLoginProcessId:null==P?void 0:null===(e=P.nextValidation)||void 0===e?void 0:e.kycLoginProcessId});return l.result?O.A.success({text:K("VerificationCodeSent")}):O.A.success({text:l.failMessage}),B(!0),l}catch(e){return(null==e?void 0:null===(l=e.response)||void 0===l?void 0:null===(n=l.data)||void 0===n?void 0:n.code)==="USE001000009"&&O.A.info({text:(null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(a=r.data)||void 0===a?void 0:a.msg)||K("OrderExpired").replace("{{Merchant}}",(0,C._W)(k.ck.merchantCode))}),null}},[t,J,null==P?void 0:null===(e=P.nextValidation)||void 0===e?void 0:e.kycLoginProcessId,g,null==o?void 0:o.email,null==o?void 0:o.userTempRef,i,K]),{track:ee}=(0,A.A)();(0,c.useEffect)(()=>{z({element_id:"paymonade3_login_v2_otp_pageview"})},[z]),(0,c.useEffect)(()=>{(0,I.UG)("fiatCurrency");let e=(0,I.UG)("paymentMethod")||"";"PAYMONADE_ROMA"===e||"PAYMONADE_ROMA_CORPORATE"===e?((0,C.KY)(k.Bm.isRoma,"true"),$(!0)):((0,C.yT)(k.Bm.isRoma),$(!1))},[z]),(0,c.useEffect)(()=>{ee({elementId:"paymonade3_login_otp_pageview"})},[ee]);let{checkUserMigrationAndJump:et}=(0,R.n)(),{CheckKycModal:en}=(0,L.A)(),{trackAndGa:ei}=(0,b.A)(),{migrateCashback:eo}=(0,Z.A)();return(0,l.jsx)(q,{hideChange:!!i,email:t||(null==o?void 0:o.email)||"",onConfirm:async e=>{var n,l,a,r,s,d,c,v,m,p,f,_,h,x,A;z({element_id:"paymonade3_login_v2_success"}),ee({elementId:"paymonade3_login_otp_Confirm"});let w=(0,I.UG)("orderToken")||"";try{(0,T.JJ)({elementId:"login_pageview_before_VerifyCode",url:window.location.href,cookie:document.cookie,cookieToken_V2CookieFields:(0,C._W)(k.ck.orderToken),cookieToken_V3CookieFields:(0,C._W)(k.Bm.orderToken),urlOrderToken:w})}catch(e){}try{let r="";r=!i&&(null==P?void 0:null===(n=P.nextValidation)||void 0===n?void 0:n.kycLoginProcessId)?J?"ROMA_BIND":g?"PASSWORD_EMAIL_LOGIN_IN_BIND":"LOGIN_OR_REGISTER_IN_BIND_V2":J?"ROMA_BIND":g?"PASSWORD_EMAIL_LOGIN_IN_ORDER":"NORMAL_LOGIN_IN_BIND";let s=await (0,E.bJ)({email:t||(null==o?void 0:o.email)||"",emailVerifyCode:e,verifyBusiness:r,processToken:g,nonInductiveVerification:!0,orderToken:w||(0,C._W)(k.Bm.orderToken),...(null==P?void 0:null===(l=P.nextValidation)||void 0===l?void 0:l.kycLoginStatus)!==u.Y0.WAIT_SELECT_ACCOUNT||t?"":{userTempRef:null==o?void 0:o.userTempRef},...i?{}:{kycLoginProcessId:null==P?void 0:null===(a=P.nextValidation)||void 0===a?void 0:a.kycLoginProcessId}}),{data:d}=s||{};if(ee({elementId:"login_signup_successful"}),!d)throw s;if(null==d?void 0:d.accountIsTerminated){W.push("/".concat(F,"/account-terminated"));return}if(null==d?void 0:d.kycLoginFail){let{kycLoginStatus:e,merchantName:t}=null==d?void 0:d.kycLoginFail;if(e===k.$u.ALREADY_LINKED_ANOTHER_ACCOUNT||e===k.$u.SHARE_KYC_NOT_MATCH_USER_KYC){U(e,t);return}if(e===k.$u.ACCOUNT_SUCCESS_SHARE_KYC_NOT_MATCH_USER_KYC){V(e,t);return}}(null==d?void 0:d.token.token)&&(await y(null==d?void 0:d.token.token,null==d?void 0:d.token.validTime),console.log("promition_logElementID","promition_".concat(eo||"nopromotion","_login_success"),{fromEmail:decodeURIComponent((0,I.UG)("fromEmail")||""),email:t}),ei({elementId:"promition_".concat(eo||"nopromotion","_login_success"),extraData:{fromEmail:decodeURIComponent((0,I.UG)("fromEmail")||""),email:t}}),J?j():await et({onAutoMove:()=>{console.log("promition_logElementID","promition_".concat(eo||"nopromotion","_automove_success"),{fromEmail:decodeURIComponent((0,I.UG)("fromEmail")||""),email:t}),ei({elementId:"promition_".concat(eo||"nopromotion","_automove_success"),extraData:{fromEmail:decodeURIComponent((0,I.UG)("fromEmail")||""),email:t}})}})&&en())}catch(e){if(ee({elementId:"paymonade3_login_otp_Confirm_error",extraData:{error:(null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(r=s.data)||void 0===r?void 0:r.code)||(null==e?void 0:null===(c=e.response)||void 0===c?void 0:null===(d=c.data)||void 0===d?void 0:d.msg)}}),((null==e?void 0:null===(m=e.response)||void 0===m?void 0:null===(v=m.data)||void 0===v?void 0:v.code)==="USE001000007"||(null==e?void 0:null===(f=e.response)||void 0===f?void 0:null===(p=f.data)||void 0===p?void 0:p.code)==="USE001000009")&&O.A.info({text:(null==e?void 0:null===(A=e.response)||void 0===A?void 0:null===(x=A.data)||void 0===x?void 0:x.msg)||K("OrderExpired").replace("{{Merchant}}",(0,C._W)(k.ck.merchantCode))}),(null==e?void 0:null===(h=e.response)||void 0===h?void 0:null===(_=h.data)||void 0===_?void 0:_.code)==="10000041")return;return Promise.reject(e)}},onReSend:X,isShowGa:f&&!_,onChange:()=>{z({element_id:"login_v2_otp_clickChange",extraInfo:{isAccountExists:p}}),setTimeout(()=>{n(""),a(x.L.loginPre)},500)}},s)};var Q=n(94021);let X=()=>{var e,t;let{email:n,setNoChangeEmail:i,recaptchaToken:a,suggestedEmail:r,selectAccount:s,setStep:m,checked:p,emailRefreshTag:g,setIsAccountExists:f,isAccountExists:_,individualRegisterBindTfaInOrder:y}=(0,x.A)(),{doIndependentLoginInBind:M}=(0,S.A)(),{goAcctStatusPage:j,goRomaAcctStatusPage:P}=(0,w.A)(),{oauthData:D}=(0,v.A)(),[B,U]=(0,c.useState)(!1),{toFailedPage:V,toSuccessPage:W}=(0,H.A)(),Y=(0,N.Ay)(),F=(0,N.uU)(),{t:q}=(0,d.Bd)(),[Z,z]=(0,c.useState)(!1),[X,ee]=(0,c.useState)(!0),[et,en]=(0,c.useState)(!0),[ei,eo]=(0,c.useState)(!0),[el,ea]=(0,c.useState)(""),[er,es]=(0,c.useState)(""),[ed,ec]=(0,c.useState)(!0),eu=(0,c.useRef)(60),[ev,em]=(0,c.useState)(60),{ga4log:ep}=(0,h.A)(),eg=(0,I.UG)("paymentMethod")||"",ef="true"===(0,C._W)(k.Bm.isRoma)||"PAYMONADE_ROMA"
20===eg||"PAYMONADE_ROMA_CORPORATE"===eg,e_=(0,c.useRef)(null);(0,c.useEffect)(()=>{ep({element_id:"paymonade3_signup_v2_otp_pageview"})},[ep]),(0,c.useEffect)(()=>{es("")},[]),(0,c.useEffect)(()=>{eu.current=ev},[ev]);let{track:eh}=(0,A.A)();(0,c.useEffect)(()=>{eh({elementId:"signup_v3_pageview"})},[eh]);let ex=(0,c.useCallback)(async()=>{var e,t,i,l,a,d;o&&clearInterval(o),es(""),ea("");let{data:{entity:c}}=await (0,T.EW)({email:n,orderToken:(0,I.UG)("orderToken")||"",formOrder:!0});try{let{data:i}=await (0,E.q$)({email:n||(null==s?void 0:s.email)||"",verifyBusiness:ef?"ROMA_BIND":r?"NORMAL_LOGIN_IN_BIND":"LOGIN_OR_REGISTER_IN_BIND_V2",nonInductiveVerification:!0,entity:c,...(null==D?void 0:null===(e=D.nextValidation)||void 0===e?void 0:e.kycLoginStatus)!==u.Y0.WAIT_SELECT_ACCOUNT||n?"":{userTempRef:null==s?void 0:s.userTempRef},...r?{}:{kycLoginProcessId:null==D?void 0:null===(t=D.nextValidation)||void 0===t?void 0:t.kycLoginProcessId}});i.result?(O.A.success({text:q("VerificationCodeSent")}),o=setInterval(()=>{if(0===eu.current){clearInterval(o),em(60);return}em(e=>e-1),ec(!1)},1e3)):O.A.success({text:i.failMessage}),U(!0)}catch(e){(null==e?void 0:null===(l=e.response)||void 0===l?void 0:null===(i=l.data)||void 0===i?void 0:i.code)==="USE001000009"&&O.A.info({text:(null==e?void 0:null===(d=e.response)||void 0===d?void 0:null===(a=d.data)||void 0===a?void 0:a.msg)||q("OrderExpired").replace("{{Merchant}}",(0,C._W)(k.ck.merchantCode))})}},[n,ef,null==D?void 0:null===(e=D.nextValidation)||void 0===e?void 0:e.kycLoginProcessId,null==D?void 0:null===(t=D.nextValidation)||void 0===t?void 0:t.kycLoginStatus,null==s?void 0:s.email,null==s?void 0:s.userTempRef,r,q]),{checkUserMigrationAndJump:eA}=(0,R.n)(),{CheckKycModal:ey}=(0,L.A)(),eE=async e=>{var t,i,o,l,a,d,c,v,p,g,f,h,A,w;eh({elementId:"Signup_Click"}),ep({element_id:"login_v2_click",extraInfo:{email:n,isAccountExists:_}});let N=(0,I.UG)("orderToken")||"";try{(0,T.JJ)({elementId:"login_pageview_before_VerifyCode",url:window.location.href,cookie:document.cookie,cookieToken_V2CookieFields:(0,C._W)(k.ck.orderToken),cookieToken_V3CookieFields:(0,C._W)(k.Bm.orderToken),urlOrderToken:N})}catch(e){}try{let l=await (0,E.bJ)({email:n||(null==s?void 0:s.email)||"",emailVerifyCode:e,verifyBusiness:ef?"ROMA_BIND":!r&&(null==D?void 0:null===(t=D.nextValidation)||void 0===t?void 0:t.kycLoginProcessId)?"LOGIN_OR_REGISTER_IN_BIND_V2":"NORMAL_LOGIN_IN_BIND",nonInductiveVerification:!0,orderToken:N||(0,C._W)(k.Bm.orderToken),...(null==D?void 0:null===(i=D.nextValidation)||void 0===i?void 0:i.kycLoginStatus)!==u.Y0.WAIT_SELECT_ACCOUNT||n?"":{userTempRef:null==s?void 0:s.userTempRef},...r?{}:{kycLoginProcessId:null==D?void 0:null===(o=D.nextValidation)||void 0===o?void 0:o.kycLoginProcessId}}),{data:a}=l||{};if(!a)throw l;if(null==a?void 0:a.accountIsTerminated){Y.push("/".concat(F,"/account-terminated"));return}if(null==a?void 0:a.kycLoginFail){let{kycLoginStatus:e,merchantName:t}=null==a?void 0:a.kycLoginFail;if(e===k.$u.ALREADY_LINKED_ANOTHER_ACCOUNT||e===k.$u.SHARE_KYC_NOT_MATCH_USER_KYC){V(e,t);return}if(e===k.$u.ACCOUNT_SUCCESS_SHARE_KYC_NOT_MATCH_USER_KYC){W(e,t);return}}(null==a?void 0:a.token.token)&&(ep({element_id:"paymonade3_signup_success_pageview",extraInfo:{email:n}}),await M(null==a?void 0:a.token.token,null==a?void 0:a.token.validTime),O.A.success({text:q("SignUpSuccessful")}),y?ef?P():await eA()&&ey():m(x.L.TwoFaTip))}catch(e){ea(""),z(!1),eh({elementId:"Signup_Click_error",extraData:{error:null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:l.msg}}),es((null==e?void 0:null===(c=e.response)||void 0===c?void 0:null===(d=c.data)||void 0===d?void 0:d.msg)||(null==e?void 0:null===(v=e.data)||void 0===v?void 0:v.msg)||q("InvalidCodePleasetryagain")),((null==e?void 0:null===(g=e.response)||void 0===g?void 0:null===(p=g.data)||void 0===p?void 0:p.code)==="USE001000007"||(null==e?void 0:null===(h=e.response)||void 0===h?void 0:null===(f=h.data)||void 0===f?void 0:f.code)==="USE001000009")&&O.A.info({text:(null==e?void 0:null===(w=e.response)||void 0===w?void 0:null===(A=w.data)||void 0===A?void 0:A.msg)||q("OrderExpired").replace("{{Merchant}}",(0,C._W)(k.ck.merchantCode))})}};(0,c.useEffect)(()=>{n&&O.A.success({text:q("Signupwith").replace("{{email}}",n)}),ex()},[n,ex,q]);let{trackAndGa:ek}=(0,b.A)(),{AgreeDom:eC,agreeLog:eI}=(0,Q.A)(),{setEntity:ew,entity:eN}=(0,G.A)();return(0,c.useEffect)(()=>{n&&(0,T.EW)({email:n,orderToken:(0,I.UG)("orderToken")||"",formOrder:!0}).then(e=>{let{data:{entity:t}}=e;ew(t)})},[n,ew]),(0,l.jsxs)("div",{className:"flex flex-col h-full justify-between pb-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-center text-base mb-3",dangerouslySetInnerHTML:{__html:q("CodeSentToNew").replace("{{email}}","<b>".concat(n,"</b>"))}}),(0,l.jsxs)("div",{onClick:()=>{eh({elementId:"signup_v3_back"}),m(x.L.loginPre)},className:"text-center cursor-pointer mb-3 text-small-body",children:[q("NotYouEmail")," ",(0,l.jsx)("span",{className:"text-small-body-sub text-link hover:text-primary active:text-primary",children:q("Change")})]}),(0,l.jsx)("div",{className:"w-full flex justify-center",children:(0,l.jsxs)("div",{className:"w-[328px] mt-2",children:[(0,l.jsx)(K.A,{value:el||"",disabled:Z,setValue:e=>{ea(e),es("")},onComplete:async e=>{z(!0),ek({elementId:"abtest_signup_".concat(eN)});try{var t,i;if(null===(i=e_.current)||void 0===i||null===(t=i.blur)||void 0===t||t.call(i),!eN)return;await eI({email:n,entityTag:eN})}catch(e){z(!1);return}eE(e)}},String(Z)),er&&(0,l.jsx)("div",{className:"text-small-body text-sell mt-1",children:er}),(0,l.jsx)("div",{className:"flex mt-3 justify-center",children:Z?(0,l.jsx)(J.A,{size:8,color:"#A7EA33",speedMultiplier:.7}):(0,l.jsx)("div",{onClick:()=>{60===ev&&(ex(),ea(""),es(""))},className:"text-small-body-sub ".concat(60!==ev?"text-disabled":"text-link hover:text-primary active:text-primary","  cursor-pointer"),children:60!==ev?(0,l.jsxs)("div",{className:"text-disabled",children:[q("Resend")," ","(".concat(ev,"s)")]}):(0,l.jsx)("span",{children:q("SendEmail")})})})]})}),(0,l.jsx)("div",{className:"mt-8",children:(0,l.jsx)($.A,{children:(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:"Didn't receive the OTP email?"}),(0,l.jsx)("br",{}),' Please check your spam folder and mark it as "Not spam" to avoid missing it in the future.']})})})]}),(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(eC,{})})]})};var ee=n(58725),et=n(11928),en=n(30520);let ei=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*])[A-Za-z\d@#$%^&*]{12,}$/,eo=e=>{let{isReset:t}=e,{t:n}=(0,d.Bd)(),{setpwd:i,pwd:o,pwdError:a,setPwdError:s,setStep:u,step:v}=(0,x.A)(),[m,g]=(0,c.useState)(!1),f=!o||a||m,[_,h]=(0,c.useState)(),[A,y]=(0,c.useState)(),{process_token:k}=(0,en.A)(),C=!!A;(0,c.useEffect)(()=>{o&&(ei.test(o)?s(""):s(n("pwdtips")))},[o,s,n]),(0,c.useEffect)(()=>{o&&_&&(o!==_?y(n("PasswordMismatch")):y(""))},[o,_,n]),(0,c.useEffect)(()=>{i(""),h("")},[i]);let{afterLoginKyb:I,goBusinessLogin:N}=(0,w.A)(),[T,S]=(0,c.useState)(!1),R=()=>{window.location.pathname.includes("independent"),S(!0),t?(0,E.RH)({processToken:k,password:o}).then(e=>{let{data:t}=e;t&&(g(!0),O.A.success({text:n("ResetPasswordSuccessful")}),setTimeout(()=>{N()},1500))}).catch(e=>{var t,n;S(!1),O.A.info({text:null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.msg})}):(0,E.rx)({password:o}).then(async e=>{let{data:t}=e;t?u(et.L.TwoFaTip):S(!1)})};return(0,l.jsxs)("div",{children:[(0,l.jsx)(ee.A,{type:"password",suffix:o&&(0,l.jsx)(r(),{onClick:()=>i(""),src:B.A,alt:"closeSvg",className:"cursor-pointer"}),placeholder:n("Password"),value:o,error:A,className:"!mt-2",onInput:e=>i(e.target.value)}),(0,l.jsx)(ee.A,{type:"password",suffix:_&&(0,l.jsx)(r(),{onClick:()=>h(""),src:B.A,alt:"closeSvg",className:"cursor-pointer"}),placeholder:n("RepeatPassword"),value:_,error:A,className:"!mt-2",rules:(0,U.Yj)().required(n("FieldIsRequired")),onInput:e=>h(e.target.value)}),A&&(0,l.jsx)("div",{className:"text-sm text-[#FF707E] mt-1 px-3",children:A}),a&&(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:a},className:" rounded-xl text-secondary font-medium p-3 mt-2 bg-alertbg"}),(0,l.jsxs)("div",{className:"absolute bottom-6 w-[calc(100%-40px)] flex",children:[(0,l.jsx)(p.A,{outline:!0,onClick:()=>{u(et.L.signup)},children:n("Back")}),(0,l.jsx)(p.A,{loading:T,disabled:C,onClick:()=>{R()},inactive:!!f,className:"ml-2 ",showContinue:!0,showContinueBtnText:n("Next")})]})]})};var el=n(48910);let ea=()=>{var e,t;let{email:n,pwd:i,loginError:o,setLoginError:a,setStep:r,processToken:s,suggestedEmail:m,selectAccount:p,showExtroContent:g}=(0,x.A)(),{t:f}=(0,d.Bd)(),_=(0,N.Ay)(),y=(0,N.uU)(),{toFailedPage:O,toSuccessPage:M}=(0,H.A)(),{ga4log:j}=(0,h.A)(),{oauthData:P}=(0,v.A)(),{doIndependentLoginInBind:D}=(0,S.A)(),{goAcctStatusPage:B,goRomaAcctStatusPage:U}=(0,w.A)(),{track:V}=(0,A.A)(),W=(0,I.UG)("paymentMethod")||"",F="true"===(0,C._W)(k.Bm.isRoma)||"PAYMONADE_ROMA"
20===W||"PAYMONADE_ROMA_CORPORATE"===W;(0,c.useEffect)(()=>{j({element_id:"paymonade3_login_v2_ga_pageview"})},[j]);let{setEntity:K}=(0,G.A)();(0,c.useEffect)(()=>{(0,T.EW)({formOrder:!0,orderToken:(0,I.UG)("orderToken")}).then(e=>{let{data:t}=e;K(t.currentSwitch?Y.qq:Y.Nd)})},[K]),(0,c.useEffect)(()=>()=>{a("")},[a]);let{checkUserMigrationAndJump:J}=(0,R.n)(),{CheckKycModal:$}=(0,L.A)(),{trackAndGa:q}=(0,b.A)(),{migrateCashback:z}=(0,Z.A)(),{bindStatus:Q,verifyOpen:X,gaVerificateInfo:ee,fetchBindStatus:et,run2FaCheck:en,modal:ei,otpStep:eo}=(0,el.A)("INDIVIDUAL_USER_LOGIN_TFA_IN_ORDER",{noNeedInit:!0,verficationType:"independent",onConfirmCallBack:(0,c.useCallback)(async e=>{var t,i;j({element_id:"paymonade3_login_v2_success"});let o=(0,I.UG)("orderToken")||"",l="";l=m?F?"ROMA_BIND":s?"PASSWORD_GA_LOGIN":"NORMAL_GA_LOGIN":F?"ROMA_BIND":s?"PASSWORD_GA_LOGIN_IN_BIND":"LOGIN_OR_REGISTER_IN_BIND_V2",await (0,E.nN)({email:n,verifyCode:e,verifyBusiness:l,processToken:s,orderToken:o||(0,C._W)(k.Bm.orderToken),...(null==P?void 0:null===(t=P.nextValidation)||void 0===t?void 0:t.kycLoginStatus)!==u.Y0.WAIT_SELECT_ACCOUNT||n?"":{userTempRef:null==p?void 0:p.userTempRef},...m?{}:{kycLoginProcessId:null==P?void 0:null===(i=P.nextValidation)||void 0===i?void 0:i.kycLoginProcessId}}).then(async e=>{let{data:t}=e;if(!1===t.passwordCheckResult&&!t.token){a(f("InvalidEmailOrPassword"));return}if(V({elementId:"login_signup_successful"}),!t)throw t;if(null==t?void 0:t.accountIsTerminated){_.push("/".concat(y,"/account-terminated"));return}if(null==t?void 0:t.kycLoginFail){let{kycLoginStatus:e,merchantName:n}=null==t?void 0:t.kycLoginFail;if(e===k.$u.ALREADY_LINKED_ANOTHER_ACCOUNT||e===k.$u.SHARE_KYC_NOT_MATCH_USER_KYC){O(e,n);return}if(e===k.$u.ACCOUNT_SUCCESS_SHARE_KYC_NOT_MATCH_USER_KYC){M(e,n);return}}(null==t?void 0:t.token.token)&&(await D(null==t?void 0:t.token.token,null==t?void 0:t.token.validTime),console.log("promition_logElementID","promition_".concat(z||"nopromotion","_login_success"),{fromEmail:decodeURIComponent((0,I.UG)("fromEmail")||""),email:n}),q({elementId:"promition_".concat(z||"nopromotion","_login_success"),extraData:{fromEmail:decodeURIComponent((0,I.UG)("fromEmail")||""),email:n}}),F?U():await J({onAutoMove:()=>{console.log("promition_logElementID","promition_".concat(z||"nopromotion","_automove_success"),{fromEmail:decodeURIComponent((0,I.UG)("fromEmail")||""),email:n}),q({elementId:"promition_".concat(z||"nopromotion","_automove_success"),extraData:{fromEmail:decodeURIComponent((0,I.UG)("fromEmail")||""),email:n}})}})&&$())}).catch(e=>{var t,n,i,o;V({elementId:"2fa_ga_click_error",extraData:{error:null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.msg}}),a(null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(i=o.data)||void 0===i?void 0:i.msg)})},[$,J,D,n,j,U,F,y,null==P?void 0:null===(e=P.nextValidation)||void 0===e?void 0:e.kycLoginProcessId,null==P?void 0:null===(t=P.nextValidation)||void 0===t?void 0:t.kycLoginStatus,s,_,null==p?void 0:p.userTempRef,a,m,f,O,M,V]),error:o,extroContent:(0,c.useMemo)(()=>g&&(0,l.jsx)("div",{className:"mt-2 text-center",children:(0,l.jsxs)("span",{onClick:()=>r(x.L.sendEmail),className:"text-link font-medium text-base cursor-pointer",children:[" ",f("VerifyWithEmail")]})}),[r,g,f]),logScenario:"paymonade3_login_v2_bind"});return(0,c.useEffect)(()=>{en({noNeedCheck:!0,otpStep:u.Pv.GA_OTP,bindStatus:u.wb.binded})},[eo,en]),(0,l.jsx)(l.Fragment,{children:ei})};var er=n(93642),es=n(34636);let ed=()=>{let{goAcctStatusPage:e,goAcctStatusPageByEntity:t}=(0,w.A)(),{ga4log:n}=(0,h.A)(),{accountInfo:i}=(0,es.A)(),{bindStatus:o,verifyOpen:a,gaVerificateInfo:s,fetchBindStatus:v,run2FaCheck:m,modal:g,otpStep:f}=(0,el.A)("INDIVIDUAL_REGISTER_BIND_TFA_IN_ORDER",{onStatusChange:n=>{let{gaVerificateInfo:o,otpStep:l}=n;(null==o?void 0:o.status)&&l===u.Pv.GA_OTP&&((null==i?void 0:i.entityTag)===Y.qq?t():e())},logScenario:"paymonade3_signup_2fa_bind"}),{setStep:_,setShowExtroContent:A}=(0,x.A)(),{t:y}=(0,d.Bd)();return(0,c.useEffect)(()=>{n({element_id:"paymonade3_signup_2fa_bind_pageview"})},[n]),(0,l.jsxs)("div",{className:"flex flex-col h-full justify-between pb-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"flex flex-1 w-full justify-center",children:(0,l.jsx)(r(),{src:er.A,alt:"2fa"})}),(0,l.jsx)("div",{className:"mt-6 text-center text-base",dangerouslySetInnerHTML:{__html:y("2faDesc")}})]}),(0,l.jsx)("div",{className:"flex justify-center w-full",children:(0,l.jsx)(p.A,{className:"w-full max-w-[400px]",showContinue:!0,onClick:async()=>{await m()}})}),g]})};var ec=n(66523);let eu=e=>{let{...t}=e;return(0,l.jsx)("svg",{className:"fill-current text-primary-text mt-12",width:"117",height:"28",viewBox:"0 0 117 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.2581 21.6975H23.0321C21.1438 21.6975 19.6781 21.0195 18.6353 19.6634L17.1133 17.6691C19.1426 17.1108 20.7773 16.
200737 22.0175 14.558C23.2576 13.0159 23.8777 11.2343 23.8777 9.21347C23.8777 6.58105 22.9053 4.38736 20.9605 2.63242C19.0439 0.877473 16.6341 0 13.7311 0H0.751953V27.5207H7.30494V18.1079H9.58791L12.3782 22.4155C14.3794 25.819 17.6911 27.5207 22.3134 27.5207H24.2581V21.6975ZM7.30494 12.7234V5.82322H13.6042C14.6189 5.82322 15.4645 6.1556 16.1409 6.82035C16.8173 7.4851 17.1556 8.3094 17.1556 9.29323C17.1556 10.2771 16.8173 11.1014 16.1409 11.7661C15.4645 12.4043 14.6189 12.7234 13.6042 12.7234H7.30494ZM37.7319 28.0013C41.0576 28.0013 43.8197 26.9909 46.0182 24.97C48.2448 22.9226 49.3581 20.3833 49.3581 17.352C49.3581 14.3207 48.2448 11.7947 46.0182 9.77379C43.8197 7.72635 41.0576 6.70264 37.7319 6.70264C34.406 6.70264 31.6297 7.72635 29.4032 9.77379C27.2048 11.7947 26.1056 14.3207 26.1056 17.352C26.1056 20.3833 27.2048 22.9226 29.4032 24.97C31.6297 26.9909 34.406 28.0013 37.7319 28.0013ZM37.7319 22.3775C36.2099 22.3775 34.9415 21.8988 33.9269 20.9416C32.9403 19.9844 32.4472 18.7879 32.4472 17.352C32.4472 15.9161 32.9403 14.7196 33.9269 13.7623C34.9415 12.8051 36.2099 12.3264 37.7319 12.3264C39.2539 12.3264 40.508 12.8051 41.4945 13.7623C42.5091 14.7196 43.0165 15.9161 43.0165 17.352C43.0165 18.7879 42.5091 19.9844 41.4945 20.9416C40.508 21.8988 39.2539 22.3775 37.7319 22.3775ZM88.8217 21.8988H89.2445V27.5226H87.5111C83.1142 27.5226 80.9158 25.5284 80.9158 21.5399V15.9959C80.9158 14.9056 80.5776 14.0282 79.9011 13.3635C79.2246 12.6721 78.3227 12.3264 77.1954 12.3264C75.9834 12.3264 74.997 12.6721 74.236 13.3635C73.5031 14.0548 73.1368 14.9588 73.1368 16.0757V27.5226H66.9642V15.9959C66.9642 14.9056 66.626 14.0282 65.9496 13.3635C65.2731 12.6721 64.3712 12.3264 63.2439 12.3264C62.0319 12.3264 61.0454 12.6721 60.2845 13.3635C59.5516 14.0548 59.1853 14.9588 59.1853 16.0757V27.5226H53.0127V7.18126H59.1853V9.33505C60.7917 7.58011 62.8351 6.70264 65.3154 6.70264C68.444 6.70264 70.7128 7.8726 72.122 10.2125C73.785 7.8726 76.1666 6.70264 79.267 6.70264C81.6063 6.70264 83.4947 7.39398 84.9321 8.77667C86.3695 10.1593 87.0883 11.9808 87.0883 14.2409V20.2636C87.0883 21.3538 87.6661 21.8988 88.8217 21.8988ZM116.249 21.8988H115.826C114.671 21.8988 114.093 21.3538 114.093 20.2636V7.18126H107.92V9.41483C106.173 7.6067 104.003 6.70264 101.41 6.70264C98.4502 6.70264 95.9699 7.72635 93.9688 9.77379C91.9959 11.7947 91.0094 14.3207 91.0094 17.352C91.0094 20.3833 91.9959 22.9226 93.9688 24.97C95.9699 26.9909 98.4502 28.0013 101.41 28.0013C104.369 28.0013 106.737 26.8579 108.512 24.5711C109.442 26.5388 111.443 27.5226 114.516 27.5226H116.249V21.8988ZM106.398 20.9416C105.412 21.8988 104.158 22.3775 102.636 22.3775C101.142 22.3775 99.8876 21.8988 98.873 20.9416C97.8865 19.9844 97.3933 18.7879 97.3933 17.352C97.3933 15.9161 97.8865 14.7196 98.873 13.7623C99.8876 12.8051 101.142 12.3264 102.636 12.3264C104.158 12.3264 105.412 12.8051 106.398 13.7623C107.413 14.7196 107.92 15.9161 107.92 17.352C107.92 18.7879 107.413 19.9844 106.398 20.9416Z"})})};var ev=n(13715);let em=()=>{let{t:e}=(0,d.Bd)(),{step:t,setNoChangeEmail:n,email:i,selectAccount:o,showExistingAccount:a,setShowExistingAccount:u,setAutoCheckAccount:v,autoCheckAccount:m}=(0,x.A)(),{ga4log:p}=(0,h.A)(),{check:g}=j(),{RecaptchaInvisibleComponent:f,initRecaptchaInvisible:_}=(0,ec.A)({}),{track:w}=(0,A.A)(),[N,T]=(0,c.useState)(!0);(0,I.UG)("fiatCurrency");let S=(0,I.UG)("paymentMethod")||"",[O,R]=(0,c.useState)("true"===(0,C._W)(k.Bm.isRoma)),{trackAndGa:L}=(0,b.A)(),{promotionLoading:M,migrateCashback:D,setPromotionAccountCheck:B,promotionAccountCheck:U,setPormotionLoading:V,setMigrateCashback:W,setMigrateCashbackText:G,migrateCashbackText:Y}=(0,Z.A)();return(0,c.useEffect)(()=>{i&&(t===x.L.sendEmail||t===x.L.verificationCode)&&(V(!0),(0,E.LU)({email:i}).then(e=>{var t,n,i,o,l,a,r;V(!1),B((null===(t=e.data)||void 0===t?void 0:t.entityOfCurrentAccounts)||[]),W(null===(o=e.data)||void 0===o?void 0:null===(i=o.promotionList)||void 0===i?void 0:null===(n=i[0])||void 0===n?void 0:n.name),G(null===(r=e.data)||void 0===r?void 0:null===(a=r.promotionList)||void 0===a?void 0:null===(l=a[0])||void 0===l?void 0:l.welcomePageDescription)}).catch(e=>{V(!0)}))},[i,W,G,V,B,t]),(0,c.useEffect)(()=>{let e=()=>{var e,t;L({elementId:(0,C._W)(k.ck.tranType)||(0,C._W)(k.ck.orderToken)?"visibilitychange_backto_"+document.visibilityState:"nocookie_visibilitychange_backto_"+document.visibilityState,extraData:{paymentMethod:S,url:window.location.href,cookies:window.document.cookie,userAgent:navigator.userAgent,language:navigator.language,screen:JSON.stringify({width:screen.width,height:screen.height}),viewport:JSON.stringify({width:window.innerWidth,height:window.innerHeight}),visibilityState:document.visibilityState,cookieEnabled:navigator.cookieEnabled,deviceMemory:null===(t=window)||void 0===t?void 0:null===(e=t.navigator)||void 0===e?void 0:e.deviceMemory}})};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[L,S]),(0,c.useEffect)(()=>{let e;return S&&(e=setInterval(()=>{try{var t,n,i,o;S!==k.YJ.ROMA&&S!==k.YJ.PAYMONADE_ROMA_CORPORATE||(0,C._W)(k.Bm.isRoma)?(0,C._W)(k.ck.tranType)||(0,C._W)(k.ck.orderToken)||(clearInterval(e),L({elementId:"fail_get_paymentMethod_cookie",extraData:{paymentMethod:S,url:window.location.href,cookies:window.document.cookie,userAgent:navigator.userAgent,language:navigator.language,screen:JSON.stringify({width:screen.width,height:screen.height}),viewport:JSON.stringify({width:window.innerWidth,height:window.innerHeight}),visibilityState:document.visibilityState,cookieEnabled:navigator.cookieEnabled,deviceMemory:null===(o=window)||void 0===o?void 0:null===(i=o.navigator)||void 0===i?void 0:i.deviceMemory}})):(clearInterval(e),L({elementId:"fail_get_roma_cookie",extraData:{url:window.location.href,cookies:window.document.cookie,userAgent:navigator.userAgent,language:navigator.language,screen:JSON.stringify({width:screen.width,height:screen.height}),viewport:JSON.stringify({width:window.innerWidth,height:window.innerHeight}),visibilityState:document.visibilityState,cookieEnabled:navigator.cookieEnabled,deviceMemory:null===(n=window)||void 0===n?void 0:null===(t=n.navigator)||void 0===t?void 0:t.deviceMemory}}))}catch(e){}},3e3)),()=>{clearInterval(e)}},[L,S]),(0,c.useEffect)(()=>
20{"PAYMONADE_ROMA"===S||"PAYMONADE_ROMA_CORPORATE"===S?((0,C.KY)(k.Bm.isRoma,"true"),R(!0)):((0,C.KY)(k.Bm.isRoma,"1"),R(!1))},[S]),(0,c.useEffect)(()=>{p({element_id:"paymonade3_login_v2_input_email_pageview"})},[p]),(0,c.useEffect)(()=>{g()},[g]),(0,c.useEffect)(()=>{_()},[_]),(0,c.useEffect)(()=>{w({elementId:"user_entry"})},[w]),(0,c.useEffect)(()=>{M||(console.log("promition_logElementID","promition_".concat(D||"nopromotion","_pageview"),{email:i}),L({elementId:"promition_".concat(D||"nopromotion","_pageview"),extraData:{email:i}}))},[i,D,M,L]),(0,l.jsx)("div",{className:"flex flex-col h-full  relative",children:(0,l.jsxs)(s.Ay,{children:[!M&&D&&(0,l.jsx)(ev.A,{childrenText:e("migrationTipsByCash").replace("{{cashbackNum}}",(0,Z.l)(D))}),(0,l.jsxs)("div",{className:"flex flex-col relative h-full",children:[t!==x.L.loading&&!m&&(O?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(eu,{})}),(0,l.jsx)("div",{className:"text-h5 text-center mt-12",children:e("SignUpLoginWithYourEmailRoma")})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(r(),{className:"mt-12",src:P.A,alt:"paymonadeLogoIcon"})}),(0,l.jsx)("div",{className:"text-h5 text-center mt-12",children:e(t===x.L.sendEmail||t===x.L.verificationCode?"VerifyYourAccount":t===x.L.signup?"CreateAccount2":t===x.L.TwoFaTip?"2FABindTitle":"SignUpLoginWithYourEmail")})]})),(0,l.jsxs)("div",{className:"sm:px-5 mt-14 flex-1",children:[(t===x.L.login||t===x.L.loginPre||t===x.L.loading)&&(0,l.jsx)(F,{}),t===x.L.sendEmail&&(0,l.jsx)(z,{}),t===x.L.signup&&(0,l.jsx)(X,{}),t===x.L.setPWD&&(0,l.jsx)(eo,{}),t===x.L.verificationCode&&(0,l.jsx)(ea,{}),t===x.L.TwoFaTip&&(0,l.jsx)(ed,{})]})]}),(0,l.jsx)(y,{open:a,setOpen:u,onConfirm:()=>{n(null==o?void 0:o.email),v(!0)}}),!M&&!O&&(null==U?void 0:U.indexOf("LI"))===-1&&(0,l.jsx)("div",{className:"mb-4 text-center text-third text-caption [&_a]:text-link [&_a]:hover:text-primary [&_a]:active:text-primary",dangerouslySetInnerHTML:{__html:e("MigrationTips_LI")}}),(0,l.jsx)(f,{})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[8319,4405,9815,7057,636,6593,8792],()=>t(70028)),_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.