PageSourceSearch

https://cwallet.com/_next/static/chunks/7006-058e6741b8bc92d0.js

js cwallet.com collected 2026-10-03 19:04:49 UTC 40,692 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7006,381],{14057:function(e,t,n){"use strict";var o=n(85893),i=n(67294),r=n(76030);t.Z=e=>{let{show:t,children:n,duration:c=.3}=e,a=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(!a.current)return;let e=a.current.scrollHeight;(0,r.Z)({targets:a.current,height:t?e:0,opacity:t?1:0,duration:1e3*c,easing:"easeInOutQuad"})},[t,c]),(0,o.jsx)("div",{ref:a,style:{overflow:"hidden",height:0},children:n})}},57765:function(e,t,n){"use strict";n.d(t,{PR:function(){return v}});var o=n(85893),i=n(45262),r=n(41686),c=n(25222),a=n(61232),s=n(67294),l=n(32976),h=n(46577),d=n(5506),u=n(73380),g=n(63996),f=n(32754),p=n(55494);let m=[{type:l.rk.whatsapp,title:"WhatsApp",icon:"whatsApp",dataKey:"whatsapp"},{type:l.rk.telegram,title:"Telegram",icon:"telegram",dataKey:"telegram"}],b={type:l.rk.sms,title:"SMS",icon:"phone",tag:!0},x=(0,r.ZP)(c.Layout.Row).withConfig({componentId:"sc-bf41c033-0"})(["gap:",";& > span{border-radius:",";background:rgba(0,0,0,0.04);color:#b9bbc6;font-weight:500;padding:0 ",";}"],(0,i.hO)(4),(0,i.hO)(4),(0,i.hO)(4)),y=(0,r.ZP)(c.Layout.Col).withConfig({componentId:"sc-bf41c033-1"})(["gap:",";font-size:",";line-height:",";.phone-options{gap:",";& > .title{font-size:",";line-height:",";font-weight:",";padding:"," 0;}.options-btn{color:#7e808a;align-self:flex-start;&:hover{opacity:0.7;}}.sms{margin-top:",";}}.submit-action{gap:",";color:#b9bbc6;font-weight:500;.login-btn{background-color:#000;color:#d4ff70;height:",";border-radius:",";}}"],(0,i.hO)(40),(0,i.hO)(14),(0,i.hO)(20),(0,i.hO)(8),(0,i.hO)(16),(0,i.hO)(20),e=>e.theme.Semi,(0,i.hO)(4),(0,i.hO)(12),(0,i.hO)(12),(0,i.hO)(48),(0,i.hO)(8)),w=e=>{let{icon:t,title:n,phone:i,onClick:r,tag:a,className:s}=e;return(0,o.jsxs)(k,{className:s,onClick:r,children:[(0,o.jsxs)(c.Layout.RowMiddle,{className:"phone-info",children:[t,(0,o.jsxs)(c.Layout.Col,{className:"desc",children:[(0,o.jsx)("span",{children:n}),(0,o.jsx)("span",{children:i})]})]}),a]})},k=(0,r.ZP)(c.Layout.RowBetween).withConfig({componentId:"sc-bf41c033-2"})(["border-radius:",";border:"," solid #ebebef;display:flex;padding:",";gap:",";cursor:pointer;&:hover{opacity:0.7;}&.active{border:"," solid #7a0;}.www-icon{width:",";height:",";}.phone-info{gap:",";.desc{gap:",";& > span:last-child{color:#b9bbc6;font-weight:",";}& > span{font-weight:",";}}}"],(0,i.hO)(12),(0,i.hO)(1),(0,i.hO)(16),(0,i.hO)(12),(0,i.hO)(1),(0,i.hO)(20),(0,i.hO)(20),(0,i.hO)(12),(0,i.hO)(4),e=>e.theme.Regular,e=>e.theme.Semi),v=e=>{let t={[l.rk.sms]:"SMS",[l.rk.whatsapp]:"WhatsApp",[l.rk.telegram]:"Telegram"};return void 0!==e&&e in t?t[e]:"SMS"};t.ZP=e=>{let{mobile:t,handleSubmit:n,activeProvider:i,hasPhoneOptions:r,className:k}=e,{t:O}=(0,a.$G)(),[j,C]=(0,s.useState)(r),[_,A]=(0,s.useState)(!1),[P,N]=(0,s.useState)(i),{data:L}=(0,p.ZP)(f.F2.appSendProviderCheck,null,{dedupingInterval:3e4});(0,s.useEffect)(()=>{if(L){if(i)return;let e=m.find(e=>L[e.dataKey]);N((null==e?void 0:e.type)||l.rk.sms)}},[L]);let E=function(e,n,i){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,o.jsx)(w,{title:n,phone:t,className:(0,d.classList)(e===l.rk.sms&&"sms",P===e&&"active"),icon:(0,o.jsx)(c.Icon,{name:i}),tag:r?(0,o.jsxs)(x,{children:[(0,o.jsx)("span",{children:O("login.phone.verify.tag.slow")}),(0,o.jsx)("span",{children:O("login.phone.verify.tag.unstable")})]}):void 0,onClick:()=>N(e)},e)};if(!L)return(0,o.jsx)(y,{className:k,children:(0,o.jsx)(c.Loading,{})});let S=[...m.filter(e=>L[e.dataKey]),b],I=S[0],z=S.slice(1);return(0,o.jsxs)(y,{className:k,children:[(0,o.jsxs)(c.Layout.Col,{className:"phone-options",children:[(0,o.jsx)("div",{className:"title",children:O("login.phone.verify.title")}),E(I.type,I.title,I.icon,I.type===l.rk.sms),z.length>0&&(0,o.jsxs)(c.Layout.Col,{children:[(0,o.jsx)(h.Av,{className:"options-btn",onClick:()=>C(!0),children:O("login.phone.verify.otheroptions")}),(0,o.jsx)(u.fw,{show:j,children:z.map(e=>E(e.type,e.title,e.icon,e.type===l.rk.sms))})]})]}),(0,o.jsxs)(c.Layout.Col,{className:"submit-action",children:[O("login.phone.verify.submit.tips",[v(P)]),(0,o.jsx)(g.zx,{className:"login-btn",disabled:void 0===P,onClick:async()=>{A(!0);try{await n(P,j)}catch(e){(0,c.Notify)(e)}finally{A(!1)}},loading:_,children:O("login.phone.verify.submit.sendcode")})]})]})}},32064:function(e,t,n){"use strict";var o=n(85893),i=n(45262),r=n(41686),c=n(46577),a=n(67294),s=n(25675),l=n.n(s);let h=(0,r.ZP)(c.u).withConfig({componentId:"sc-1f866a9c-0"})([".text-button{height:",";width:",";img{width:100%;height:100%;}}"],(0,i.hO)(24),(0,i.hO)(24));t.Z=(0,a.memo)(e=>{let{onClick:t,name:n,src:i,desc:r}=e;return(0,o.jsx)(h,{title:r,children:(0,o.jsx)(c.Av,{onClick:t,children:(0,o.jsx)(l(),{alt:n,src:i,width:24,height:24})})})})},63996:function(e,t,n){"use strict";n.d(t,{mD:function(){return d},tY:function(){return l},zx:function(){return s}});
1var o=n(85893),i=n(45262),r=n(46577),c=n(73380),a=n(41686);let s=(0,a.ZP)(r.xk).withConfig({componentId:"sc-ef209879-0"})(["&.button{height:",";border-radius:",";background-color:#1c2024;color:#d4ff70;&:disabled{color:#b9bbc6;background-color:#ebebef;}}"],(0,i.hO)(48),(0,i.hO)(8)),l=e=>(0,o.jsx)(h,{children:(0,o.jsx)(c.Wc,{...e})}),h=a.ZP.div.withConfig({componentId:"sc-ef209879-1"})(["margin-bottom:",";"],(0,i.hO)(28)),d=(0,a.ZP)(r.b0).withConfig({componentId:"sc-ef209879-2"})(["&.input{.input-control{border-color:#ebebef;&.is-focus{border-color:#7a0;box-shadow:none;}}}"])},22442:function(e,t,n){"use strict";n.r(t),n.d(t,{WalletConnectLogin:function(){return v},WalletConnectProvider:function(){return k}});var o=n(85893),i=n(67294),r=n(25222),c=n(32754),a=n(55548),s=n(50555),l=n(30438),h=n(57421),d=n(66403),u=n(52961),g=n(24543),f=n(73935),p=n(92095),m=n(13118),b=n(32064),x=n(95169);let y=[d.R,u.y,g.e],w="6f74f58b14158d4a3fc7f30df77d62ab",k=e=>{let{children:t}=e,{publicClient:n}=(0,l.QB)(y,[(0,a.X)({projectId:w})]),i=(0,h._g)({autoConnect:!0,connectors:(0,a.gu)({projectId:w,chains:y}),publicClient:n}),r=new a.J0(i,y);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.eM,{config:i,children:t}),f.createPortal((0,o.jsx)(s.Eg,{projectId:w,ethereumClient:r,themeVariables:{"--w3m-z-index":"2000"}}),document.body)]})};function v(){let{gotoApp:e,afterLogin:t}=(0,m.hq)(),n=(0,i.useRef)(""),{open:a,setDefaultChain:l,close:u}=(0,s.k_)();l(d.R);let{address:g,isConnected:f,connector:y}=(0,h.mA)(),{data:w,signMessage:k,error:v,reset:O}=(0,h.QW)(),{disconnect:j}=(0,h.qL)();async function C(n){let{signature:o,publicAddress:i,message:a}=n;try{O(),j(),u();let n=await c.nA.basicLogin("wallet_connect",{hash:o,address:i,message:a});t(n,()=>{e()})}catch(e){(0,r.Notify)(e)}}return(0,i.useEffect)(()=>{f&&y&&c.nA.randomMessage().then(e=>{n.current=e,k({message:e})}).catch(e=>{(0,r.Notify)(e),O(),j(),u()})},[f,k,y]),(0,i.useEffect)(()=>{w&&g&&C({signature:w,publicAddress:g,message:n.current})},[w,g]),(0,i.useEffect)(()=>{v&&(O(),j(),(0,r.Notify)(Error(v.message)))},[v,j,O]),(0,o.jsx)(b.Z,{onClick:function(){(0,x.trackAmplitudeEvent)("login_social_walletConnect_click"),f&&(O(),j()),a({route:"ConnectWallet"})},name:"walletConnect",src:p.Gs.aF,desc:"Continue with Wallet Connect"})}},73380:function(e,t,n){"use strict";n.d(t,{gz:function(){return el},fw:function(){return eg.Z},xE:function(){return q},zx:function(){return J.zx},$D:function(){return ed},pL:function(){return A},Kb:function(){return ei},TR:function(){return h},WU:function(){return V},j7:function(){return ep.ZP},GC:function(){return ea},ay:function(){return ee},tn:function(){return ef},B5:function(){return K},Wc:function(){return B},uR:function(){return M}});var o=n(85893),i=n(67294),r=n(45262),c=n(41686),a=n(25675),s=n.n(a),l=n(92095),h=()=>(0,o.jsx)(d,{children:(0,o.jsx)(s(),{src:l.Gs.Ih,alt:"cwallet",width:160,height:32})});let d=c.ZP.div.withConfig({componentId:"sc-b9780170-0"})(["padding:"," 0;height:",";","{height:",";padding:"," 0;}"],(0,r.hO)(64),(0,r.hO)(160),r.Uh.mobile,(0,r.hO)(128),(0,r.hO)(48));var u=n(25222),g=n(32754),f=n(29323),p=n(61232),m=n(74103),b=n(46577),x=n(32064),y=n(5152),w=n.n(y),k=n(8857),v=n(67932),O=n(95169);let j=w()(()=>Promise.resolve().then(n.bind(n,22442)).then(e=>e.WalletConnectLogin),{loadableGenerated:{webpack:()=>[22442]},ssr:!1}),C=w()(()=>Promise.resolve().then(n.bind(n,22442)).then(e=>e.WalletConnectProvider),{loadableGenerated:{webpack:()=>[22442]},ssr:!1}),_={wallet_link:r.P6.getWalletLink,metamask:r.P6.getMetamask,tron_link:r.P6.getTronLink,phantom:r.P6.getPhantom};var A=(0,f.Pi)(e=>{let{haveMoreLogin:t}=e,{afterLogin:n,interceptNewDeviceLogin:i,gotoApp:c}=(0,m.hq)(),{t:a}=(0,p.$G)("common"),s=async e=>{try{let t=await r.P6.getDeviceId(),o=await g.nA.getAuthData(e);if(!g.nA.checkAuthLoginParams(e,o))return;let a=await g.nA.platformLoginApi({device:"web",platform:e,param:JSON.stringify(o),timestamp:String(Date.now()),device_id:t});if(!await i(a,"platform"))return;n(a,()=>{c()})}catch(e){console.error(e)}};async function h(e){let t;try{let o=_[e];
1if("function"==typeof o){let[a,s]=await Promise.all([g.nA.randomMessage(),o()]);t=s;let{signature:l,publicAddress:h}=await s.signPersonalMessage(a),d=await r.P6.getDeviceId(),u=await g.dJ.postJson(v.Jt,{data:{data:JSON.stringify({platform:e,param:JSON.stringify({hash:l,address:h,message:a}),device:"web",device_name:navigator.userAgent.slice(0,250),device_id:d,timestamp:String(Date.now())})}});if(!await i(u,"platform"))return;n(u,()=>{var e;null===(e=s.disconnectWallet)||void 0===e||e.call(s),c()})}}catch(e){var o;(0,u.Notify)(e),null==t||null===(o=t.disconnectWallet)||void 0===o||o.call(t)}}let d=async()=>{(0,O.trackAmplitudeEvent)("login_passkey_click");try{let e=await (0,r.eB)();if(e){let t=await g.nA.basicLogin("passkey",{passkey_request_id:e});n(t,()=>{c()})}}catch(e){if(10025==e.code){(0,u.Notify)(a("login.the.passkey.unavailable"));return}(0,u.Notify)(a("login.authentication.failed"))}};return(0,o.jsx)(P,{children:t&&(0,o.jsxs)("div",{className:"method-box",children:[(0,o.jsxs)(u.Layout.RowMiddle,{className:"or-box",children:[(0,o.jsx)("div",{}),(0,o.jsx)("span",{children:a("login.more")}),(0,o.jsx)("div",{})]}),(0,o.jsxs)("div",{className:"main-method",children:[(0,o.jsxs)(b.xk,{className:"passkey",onClick:d,children:[(0,o.jsx)(u.Layout.Center,{className:"icon-box",children:(0,o.jsx)(u.Icon,{name:"passkey",size:16})}),(0,o.jsxs)("span",{children:[a("login.continue.text")," ",a("login.passkey")]})]}),(0,o.jsxs)(b.xk,{className:"google",onClick:()=>((0,O.trackAmplitudeEvent)("login_social_google_click"),s("google")),children:[(0,o.jsx)(u.Layout.Center,{className:"icon-box",children:(0,o.jsx)(u.Icon,{name:"google",size:16})}),(0,o.jsx)("span",{children:a("login.continue.google")})]}),(0,o.jsxs)(b.xk,{className:"telegram",onClick:()=>((0,O.trackAmplitudeEvent)("login_social_tg_click"),s("telegram")),children:[(0,o.jsx)(u.Layout.Center,{className:"icon-box",children:(0,o.jsx)(u.Icon,{className:"telegram-icon",name:"telegram",size:16})}),(0,o.jsx)("span",{children:a("login.continue.telegram")})]}),(0,o.jsxs)(b.xk,{className:"twitter",onClick:()=>((0,O.trackAmplitudeEvent)("login_social_X_click"),s("twitter")),children:[(0,o.jsx)(u.Layout.Center,{className:"icon-box",children:(0,o.jsx)(u.Icon,{name:"x",size:16})}),(0,o.jsx)("span",{children:a("login.continue.xtwitter")})]}),(0,o.jsxs)(b.xk,{className:"discord",onClick:()=>((0,O.trackAmplitudeEvent)("login_social_Discord_click"),s("discord")),children:[(0,o.jsx)(u.Layout.Center,{className:"icon-box",children:(0,o.jsx)(u.Icon,{className:"discord-icon",name:"discord",size:16})}),(0,o.jsx)("span",{children:a("login.continue.discord")})]})]}),(0,o.jsxs)(u.Layout.RowMiddle,{className:"more-method",children:[(0,o.jsx)(x.Z,{onClick:()=>((0,O.trackAmplitudeEvent)("login_social_reddit_click"),s("reddit")),name:"reddit",src:l.Gs.Od,desc:"Continue with Reddit"}),(0,o.jsx)(C,{children:(0,o.jsx)(j,{})}),!k.B.isMobile&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x.Z,{onClick:()=>((0,O.trackAmplitudeEvent)("login_social_coinbase_click"),h("wallet_link")),name:"walletLink",src:l.Gs.lj,desc:"Continue with Coinbase"}),(0,o.jsx)(x.Z,{onClick:()=>((0,O.trackAmplitudeEvent)("login_social_Metamask_click"),h("metamask")),name:"metamask",src:l.Gs.QF,desc:"Continue with Metamask"}),(0,o.jsx)(x.Z,{onClick:()=>((0,O.trackAmplitudeEvent)("login_social_Tronlink_click"),h("tron_link")),name:"tronlink",src:l.Gs.Po,desc:"Continue with Tronlink"}),(0,o.jsx)(x.Z,{onClick:()=>((0,O.trackAmplitudeEvent)("login_social_Phantom_click"),h("phantom")),name:"phantom",src:l.Gs.ez,desc:"Continue with Phantom"})]})]})]})})});let P=c.ZP.div.withConfig({componentId:"sc-5fd54299-0"})(["position:relative;z-index:3;width:100%;.method-box{.or-box{height:",";margin:"," 0;span{color:#b9bbc6;font-size:",";line-height:",";margin:0 ",";text-transform:lowercase;}> div{background-color:#dddde3;height:",";width:100%;}}.main-method{display:grid;grid-template-areas:'a a' 'b c' 'd e';grid-gap:",";.button{height:",";width:100%;border-radius:",";background-color:#f2f2f5;&:not(:disabled):hover{background-color:#b9bbc6;box-shadow:none;.button-inner{& > span{color:#fcfcfd;}}}.icon-box{height:",";width:",";border-radius:50%;background-color:#fff;margin-right:",";.www-icon{&.telegram-icon{fill:#2aabee;}&.discord-icon{fill:#5865f2;}}}span{font-size:",";line-height:",";font-weight:",";color:#7e808a;}}.passkey{grid-area:a;}.google{grid-area:b;}.telegram{grid-area:c;}.twitter{grid-area:d;}.discord{grid-area:e;}}.more-method{grid-gap:",";margin-top:",";justify-content:center;.text-button{height:",";width:",";img{width:100%;height:100%;}}}}"],(0,r.hO)(20),(0,r.hO)(40),(0,r.hO)(16),(0,r.hO)(20),(0,r.hO)(12),(0,r.hO)(1),(0,r.hO)(12),(0,r.hO)(48),(0,r.hO)(8),(0,r.hO)(24),(0,r.hO)(24),(0,r.hO)(8),(0,r.hO)(16),(0,r.hO)(24),e=>e.theme.Regular,(0,r.hO)(12),(0,r.hO)(40),(0,r.hO)(24),(0,r.hO)(24));n(22442),n(46702);var N=n(97358),L=n(23940);let E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mO8evNiPQAICgMAGt1KtwAAAABJRU5ErkJggg==";function S(){return{type:"click",captcha_id:"",image_base64:E,thumb_base64:E,thumb_x:0,thumb_y:0,thumb_width:0,thumb_height:0}}function I(e,t){return"number"==typeof e&&Number.isFinite(e)?e:t}function z(e,t,n){return Math.min(n,Math.max(t,e))}var R=e=>{let{identity:t}=e,[n,r]=(0,i.useState)(S),[c,a]=(0,i.useState)(""),s=(0,i.useRef)(null);function l(){u.pop.back()}async function h(){try{a(""),r(e=>({...S(),type:e.type}));let e=await g.nA.sendCaptchaV2(t),n=function(e){let t=String((null==e?void 0:e.type)||"click").toLowerCase();return{type:t.includes("drag")||t.includes("rotate")?"drag":t.includes("slide")?"slide":"click",captcha_id:String((null==e?void 0:e.captcha_id)||""),image_base64:String((null==e?void 0:e.image_base64)||E),thumb_base64:String((null==e?void 0:e.thumb_base64)||E),thumb_y:I(Number(null==e?void 0:e.thumb_y),0),thumb_width:50,thumb_height:50}}(e);r(n)}catch(e){(0,u.Notify)(e)}}async function d(e,t){try{let t=e.map(e=>p(e)).map(e=>"".concat(e.x,",").concat(e.y)).join(",");await g.nA.verifyCaptcha(n.captcha_id,t),u.pop.back({captcha_id:n.captcha_id,code:t})}catch(e){a("Please click on the letters in order."),t()}}async function f(e,t,o){try{let t=p(e),o="".concat(t.x,",").concat(t.y
1);await g.nA.verifyCaptcha(n.captcha_id,o),u.pop.back({captcha_id:n.captcha_id,code:o})}catch(e){a("drag"===o?"Please drag to the correct position.":"Please slide to the correct position."),t()}}function p(e){var t;let n=null===(t=s.current)||void 0===t?void 0:t.querySelector('[class*="gocaptcha-module_bodyInner"]'),o=(null==n?void 0:n.clientWidth)||350,i=(null==n?void 0:n.clientHeight)||250;return{x:z(Math.round(e.x*(o>0?350/o:1)),0,350),y:z(Math.round(e.y*(i>0?250/i:1)),0,250)}}return(0,i.useEffect)(()=>{h()},[]),(0,o.jsx)(Z,{ref:s,className:"captcha",$hasError:!!c,children:function(){let e={width:350,height:250,showTheme:!1},t=e=>n.captcha_id?c||e:"";return"slide"===n.type?(0,o.jsx)(L.Z.Slide,{data:{image:n.image_base64,thumb:n.thumb_base64,thumbX:I(n.thumb_x,0),thumbY:I(n.thumb_y,0),thumbWidth:n.thumb_width,thumbHeight:n.thumb_height},config:{...e,title:t("Please slide to complete verification")},events:{refresh:h,close:l,confirm:(e,t)=>{f({x:e.x,y:e.y},t,"slide")}}}):"drag"===n.type?(0,o.jsx)(L.Z.SlideRegion,{data:{image:n.image_base64,thumb:n.thumb_base64,thumbX:0,thumbY:0,thumbWidth:n.thumb_width,thumbHeight:n.thumb_height},config:{...e,title:t("Please drag to complete verification")},events:{refresh:h,close:l,confirm:(e,t)=>{f({x:e.x,y:e.y},t,"drag")}}}):(0,o.jsx)(L.Z.Click,{data:{image:n.image_base64,thumb:n.thumb_base64},config:{...e,thumbWidth:150,thumbHeight:40,title:t("Please click in order"),buttonText:"Confirm"},events:{refresh:h,close:l,confirm:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;d(e.map(e=>({x:e.x,y:e.y})),t)}}})}()})};let Z=c.ZP.div.withConfig({componentId:"sc-f3a05c89-0"})(["--go-captcha-theme-text-color:",";--go-captcha-theme-btn-color:#000000;--go-captcha-theme-btn-bg-color:rgb(189,238,99);--go-captcha-theme-btn-disabled-color:#9fb8ff;--go-captcha-theme-btn-border-color:rgb(189,238,99);--go-captcha-theme-active-color:rgb(189,238,99);--go-captcha-theme-error-color:#e23d31;--go-captcha-theme-error-bg-color:#fff1f0;--go-captcha-theme-error-border-color:#ff7a45;--go-captcha-theme-drag-bg-color:rgb(189,238,99);--go-captcha-theme-drag-icon-color:#000000;width:",";background-color:#fff;border-radius:",";display:flex;flex-direction:column;align-items:center;justify-content:center;[class*='gocaptcha-module_header'] span{color:var(--go-captcha-theme-text-color);}[class*='gocaptcha-module_buttonBlock'] button{border-radius:20px;font-weight:600;letter-spacing:0;}[class*='gocaptcha-module_buttonBlock'] button:not(.disabled):hover{opacity:0.92;}","{width:100vw;}"],e=>{let{$hasError:t}=e;return t?"#e23d31":"#333333"},(0,r.hO)(400),(0,r.hO)(10),r.Uh.mobile);async function M(e){let{identity:t}=e;return u.pop.push((0,o.jsx)(R,{identity:t}),{closeable:!1})}(0,c.ZP)(u.Pop).withConfig({componentId:"sc-42699c79-0"})(["&.pop{display:flex;justify-content:center;align-items:center;}"]),c.ZP.div.withConfig({componentId:"sc-42699c79-1"})(["background-color:#fff;padding:15px;border-radius:10px;padding-right:10px;.captcha__header{.title-box{.title{font-size:",";line-height:",";}.thumb{flex-shrink:0;margin-left:",";}}.refresh-btn{.www-icon path{fill:#5c7c2f;}}}> h5{color:",";margin-top:6px;}.captcha__body{margin:10px auto 0;border-radius:5px;overflow:hidden;position:relative;width:350px;display:flex;justify-content:center;.source{width:350px;height:250px;vertical-align:middle;border-radius:8px;}.point{position:absolute;background:#3e7cff;border:2px solid #fff;border-radius:50%;width:26px;height:26px;font-size:14px;font-weight:",";color:#fff;display:flex;align-items:center;justify-content:center;transform:translate(-50%,-50%);user-select:none;}}.captcha__footer{margin-top:",";grid-gap:",";.button{flex:1;height:",";border-radius:",";font-size:",";}.close{background-color:#f0f0f3;}.confirm{background-color:#bdee63;}}"],(0,r.hO)(14),(0,r.hO)(20),(0,r.hO)(12),N.rS.errorColor,e=>e.theme.Medium,(0,r.hO)(36),(0,r.hO)(12),(0,r.hO)(48),(0,r.hO)(8),(0,r.hO)(16));var D=n(54428),W=n(5506),B=(0,i.memo)(e=>{let{len:t=6,callBack:n,verify:r,onError:c,loading:a,autoFocus:s=!0,className:l}=e,{t:h}=(0,p.$G)("common"),d=(0,i.useRef)(null),[g,f]=(0,i.useState)(s),[m,b]=(0,i.useState)("");(0,i.useEffect)(()=>{r&&"success"!==r.type&&b("")},[r]),(0,i.useEffect)(()=>{(null==r?void 0:r.type)==="error"&&""!==m&&c&&c()},[m]);let x=()=>{var e;null===(e=d.current)||void 0===e||e.focus()};return(0,i.useEffect)(()=>{(0,D.Z)(()=>{s&&x()},100)},[s]),(0,o.jsxs)(F,{className:l,children:[(0,o.jsxs)("div",{className:"input-box",children:[(0,o.jsx)("input",{disabled:a,value:m,onBlur:()=>f(!1),onFocus:()=>f(!0),onChange:e=>{let o=e.target.value;(!o||/^[0-9]{1,6}$/.test(o))&&(b(o),o.length===t&&setTimeout(()=>{n&&n(o)},100))},ref:d,maxLength:t}),Array(t).fill("").map((e,t)=>{let n=m[t]||"0"==m[t],i=!m[t]&&"0"!=m[t]&&m.length===t&&g;return(0,o.jsx)(u.Layout.Center,{className:(0,W.classList)("code-item",r&&"error"===r.type&&"error",r&&"success"===r.type&&"success",n&&"current",i&&"current-empty",a&&"disabled"),onClick:x,children:n||""},t.toString())})]}),(0,o.jsxs)(u.Layout.Col,{className:"footer",children:[a&&(0,o.jsx)(u.Icon,{name:"loader",className:"loader-icon",size:16}),r&&"error"===r.type&&(0,o.jsx)("span",{children:r.msg}),r&&"success"===r.type&&(0,o.jsxs)(u.Layout.RowBetween,{className:"success-box",children:[(0,o.jsx)("span",{children:h("login.logging.in")}),(0,o.jsx)(u.Icon,{name:"success",className:"success-icon",size:16})]})]})]})});let G=(0,c.F4)(["0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}"]),U=(0,c.F4)(["0%,100%{opacity:1};50%{opacity:0}
1"]),F=c.ZP.div.withConfig({componentId:"sc-2590498c-0"})([".input-box{display:flex;justify-content:space-between;& > input{opacity:0.05;border:none;color:transparent;outline:none;caret-color:transparent;background-color:transparent;width:",";height:",";position:relative;top:",";left:0;}.code-item{flex:1;height:",";border-radius:",";outline:solid "," #ebebef;background-color:#fff;font-size:",";line-height:",";cursor:pointer;margin-left:",";&:first-of-type{margin-left:0;}&.current-empty{outline:solid "," #7a0;&::after{content:'|';animation:"," 1s infinite;}}&.success{outline-color:#527D00;}&.current{outline-color:#d3d4db;}&.error{outline-color:#e5484d;}&.disabled{outline:"," solid #d3d4db;background:#f0f0f3;cursor:not-allowed;}}}.footer{margin-top:",";font-size:",";line-height:",";.loader-icon{animation:"," 2s linear infinite;align-self:flex-end;}> span{color:#e5484d;}.success-box{span{color:#30a46c;}}}"],(0,r.hO)(1),(0,r.hO)(64),(0,r.hO)(40),(0,r.hO)(64),(0,r.hO)(12),(0,r.hO)(1),(0,r.hO)(28),(0,r.hO)(36),(0,r.hO)(8),(0,r.hO)(1),U,(0,r.hO)(1),(0,r.hO)(12),(0,r.hO)(12),(0,r.hO)(16),G);var T=n(72107),q=()=>{let{pop:e}=(0,T.useLoginContext)();return(0,o.jsx)($,{onClick:e,children:(0,o.jsx)(u.Icon,{name:"leftArrow",size:24})})};let $=(0,c.ZP)(b.Av).withConfig({componentId:"sc-accb4525-0"})(["&.text-button{height:",";width:",";}"],(0,r.hO)(24),(0,r.hO)(24));var J=n(63996),V=(0,i.memo)(e=>{let{visible:t=!1,value:n,placeholder:r="",isError:c,errorMsg:a,id:s,maxLength:l,disabled:h,onChange:d,onBlur:g,onFocus:f,onEnter:p}=e,[m,x]=(0,i.useState)(t),[y,w]=(0,i.useState)(!1);return(0,o.jsxs)(H,{children:[(0,o.jsx)(J.mD,{onKeyDown:e=>{"Enter"===e.code&&(e.preventDefault(),p&&p())},id:s,isError:c,className:"password-input ".concat(y?"focus":""," ").concat(c?"error":""),value:n,maxLength:l,onChange:e=>d&&d(e),onFocus:()=>{w(!0),f&&f()},placeholder:r,onBlur:()=>{w(!1),g&&g()},disabled:h,type:m?"text":"password",after:(0,o.jsx)(b.Av,{onClick:()=>x(e=>!e),children:(0,o.jsx)(u.Icon,{size:24,name:m?"invisible":"visible"})})}),!!c&&(0,o.jsx)("p",{children:a})]})});let H=c.ZP.div.withConfig({componentId:"sc-9454794e-0"})([".password-input{border-radius:",";border:"," solid #EBEBEF;display:flex;background-color:#fff;&.error{border-color:#f25145;}&:not(.error).focus{border-color:#7A0;}.input-control{width:100%;border:none;&:hover,&.is-focus{box-shadow:none;}}.input-after{padding:0 ",";display:flex;align-items:center;margin:0;.text-button{line-height:0;}}}> p{margin-top:",";font-size:",";line-height:",";color:#e5484d;}"],(0,r.hO)(8),(0,r.hO)(1),(0,r.hO)(16),(0,r.hO)(8),(0,r.hO)(12),(0,r.hO)(16));var Y=n(13118),K=e=>{let{type:t="text",codeType:n,autoSendOnce:r,resendTrigger:c}=e,{t:a}=(0,p.$G)("common"),{identity:s,method:l,email:h,area:d,mobile:g,request_code:f}=(0,Y.hq)(),[m,b]=(0,i.useState)(60),[x,y]=(0,i.useState)("text"===t&&!r),w=(0,i.useRef)(null),k=async()=>{try{let e=await M({identity:h});if(!e)return;await (0,Y.ij)({captchaCode:{captcha_id:e.captcha_id,captcha_code:e.code},identity:s,method:l,...f?{request_code:f}:{email:h,area:d,mobile:g},type:n}),y(!0)}catch(e){(0,u.Notify)(e)}},v=()=>{O(),w.current=setInterval(()=>{b(e=>e>0?e-1:(y(!1),60))},1e3)};(0,i.useEffect)(()=>(x?v():O(),()=>{O()}),[x]),(0,i.useEffect)(()=>{r&&k()},[]),(0,i.useEffect)(()=>{c&&(b(60),y(!0))},[c]);let O=()=>{w.current&&clearInterval(w.current)};return"button"===t?(0,o.jsx)(X,{onClick:k,className:"resend-btn",disabled:x,children:(0,o.jsx)("span",{children:x?a("login.code.sent",["(".concat(m,"s)")]):a("login.send.code")})}):(0,o.jsx)(Q,{onClick:k,className:"resend-btn",disabled:x,children:(0,o.jsx)("span",{children:x?(0,o.jsxs)(o.Fragment,{children:[a("login.resend.slot",[""])," ",(0,o.jsxs)("span",{children:["(",m,"s)"]})," "]}):a("common.key.resend")})})};let Q=(0,c.ZP)(b.Av).withConfig({componentId:"sc-39e42133-0"})(["color:#7a0;font-weight:",";font-size:",";font-variant-numeric:tabular-nums;& > span > span{color:#7e808a;font-weight:500;}"],e=>e.theme.DemiBold,(0,r.hO)(14)),X=(0,c.ZP)(b.xk).withConfig({componentId:"sc-39e42133-1"})(["height:",";border-radius:",";background-color:#1c2024;color:#d4ff70;&:disabled{color:#b9bbc6;background-color:#ebebef;}"],(0,r.hO)(48),(0,r.hO)(8));var ee=e=>{let{type:t="text",onClick:n,autoClick:r,resendTrigger:c}=e,{t:a}=(0,p.$G)("common"),[s,l]=(0,i.useState)(60),[h,d]=(0,i.useState)(!1),u=(0,i.useRef)(null),g=()=>{f(),u.current=setInterval(()=>{l(e=>e>0?e-1:(d(!1),60))},1e3)};(0,i.useEffect)(()=>(h?g():f(),()=>{f()}),[h]);let f=()=>{u.current&&clearInterval(u.current)};(0,i.useEffect)(()=>
1{r&&m()},[r]),(0,i.useEffect)(()=>{c&&(l(60),d(!0))},[c]);let m=async()=>{n&&(await n(),d(!0))};return"button"===t?(0,o.jsx)(en,{onClick:m,className:"resend-btn",disabled:h,children:(0,o.jsx)("span",{children:h?a("login.code.sent",["(".concat(s,"s)")]):a("login.send.code")})}):(0,o.jsx)(et,{onClick:m,className:"resend-btn",disabled:h,children:(0,o.jsx)("span",{children:h?a("login.resend.slot",["(".concat(s,"s)")]):a("common.key.resend")})})};let et=(0,c.ZP)(b.Av).withConfig({componentId:"sc-9ea3bf50-0"})(["color:#5c7c2f;font-weight:",";font-size:",";font-variant-numeric:tabular-nums;"],e=>e.theme.Medium,(0,r.hO)(14)),en=(0,c.ZP)(b.xk).withConfig({componentId:"sc-9ea3bf50-1"})(["height:",";background-color:#bdee63;padding:0 ",";"],(0,r.hO)(48),(0,r.hO)(12));var eo=n(55494),ei=()=>{let{gotoApp:e,afterLogin:t}=(0,T.useLoginContext)(),[n,c]=(0,i.useState)(!0),[a,s]=(0,i.useState)(""),[l,h]=(0,i.useState)(1),d=(0,i.useMemo)(()=>a&&[1,2].includes(l)?g.F2.getCardBinSupportMerchantListApi(a):null,[l,a]),{data:f}=(0,eo.ZP)(d,null,{refreshInterval:4e3});async function p(){c(!0);try{let e=r.P6.getBrowser(),t=await g.nA.getQrCodeIdApi("".concat(e.type,"-").concat(e.versions));s(t),h(1)}catch(e){(0,u.Notify)(e)}finally{c(!1)}}async function m(n,o){try{let i=await g.nA.basicLogin("qrcode",{scan_id:n,auth_code:o});t(i,()=>{e()})}catch(e){(0,u.Notify)(e)}}(0,i.useEffect)(()=>{p()},[]),(0,i.useEffect)(()=>{f&&(h(f.status),3===f.status&&f.auth_code&&m(a,f.auth_code),null==f||f.auth_code)},[f]);let x=(0,i.useMemo)(()=>[2,3,-1].includes(l),[l]),y=(0,i.useMemo)(()=>n||!a?(0,o.jsx)(u.Loading,{}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.Qrcode,{text:"https://".concat(r.OB.host,"/?loginCode=").concat(a)}),(()=>{switch(l){case 2:return(0,o.jsxs)(u.Layout.ColMiddle,{className:"mask",children:[(0,o.jsx)("h4",{children:"Scanned"}),(0,o.jsx)(u.Layout.Center,{className:"icon-box",children:(0,o.jsx)(u.Icon,{className:"loader-icon",name:"loader",size:24})}),(0,o.jsx)("span",{children:"Please confirm on Phone"}),(0,o.jsx)(b.Av,{onClick:p,children:"Refresh"})]});case 3:return(0,o.jsxs)(u.Layout.ColMiddle,{className:"mask success",children:[(0,o.jsx)("h4",{children:"Scanned"}),(0,o.jsx)(u.Layout.Center,{className:"icon-box",children:(0,o.jsx)(u.Icon,{name:"success",size:24})}),(0,o.jsx)("span",{children:"Logging in"})]});case -1:return(0,o.jsxs)(u.Layout.ColMiddle,{className:"mask expired",children:[(0,o.jsx)("h4",{children:"Expired"}),(0,o.jsx)(J.zx,{className:"refresh-btn",onClick:p,children:(0,o.jsx)(u.Icon,{name:"refreshV2",size:24})}),(0,o.jsx)("span",{children:"Click to refresh"})]});default:return null}})()]}),[a,l,n]);return(0,o.jsxs)(ec,{children:[(0,o.jsx)("div",{className:"qr-code ".concat(x?"blur":""),children:y}),(0,o.jsxs)("p",{children:["Scan with ",(0,o.jsx)(u.LinkButton,{href:"/download",children:"Cwallet App"})," to Log in"]})]})};let er=(0,c.F4)(["0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}"]),ec=(0,c.ZP)(u.Layout.ColMiddle).withConfig({componentId:"sc-f925e6e3-0"})(["width:100%;height:100%;.qr-code{width:",";height:",";border-radius:",";padding:",";background-color:#fff;box-shadow:"," "," "," "," rgba(134,172,208,0.04);position:relative;overflow:hidden;&.blur{img{filter:blur(",");opacity:0.3;}}img{width:100%;height:100%;}}.mask{position:absolute;left:0;top:0;height:100%;width:100%;justify-content:center;h4{margin-bottom:",";font-size:",";line-height:",";}.icon-box{background-color:#fff;height:",";width:",";border-radius:",";.loader-icon{animation:"," 2s linear infinite;}}> span{font-size:",";line-height:",";color:#7E808A;margin-top:",";}.text-button{color:#5c7c2f;font-size:",";line-height:",";margin-top:",";}.refresh-btn{background-color:#1c2024;height:",";width:",";border-radius:",";}}> p{font-size:",";line-height:",";color:#1c2024;margin-top:",";a{color:#5c7c2f;font-weight:",";}}"],(0,r.hO)(256),(0,r.hO)(256),(0,r.hO)(20),(0,r.hO)(24),(0,r.hO)(0),(0,r.hO)(14),(0,r.hO)(32),(0,r.hO)(0),(0,r.hO)(10),(0,r.hO)(16),(0,r.hO)(16),(0,r.hO)(24),(0,r.hO)(48),(0,r.hO)(48),(0,r.hO)(12),er,(0,r.hO)(12),(0,r.hO)(16),(0,r.hO)(16),(0,r.hO)(12),(0,r.hO)(16),(0,r.hO)(8),(0,r.hO)(48),(0,r.hO)(48),(0,r.hO)(12),(0,r.hO)(14),(0,r.hO)(20),(0,r.hO)(32),e=>e.theme.DemiBold);var ea=()=>{let{t:e}=(0,p.$G)();return(0,o.jsxs)(es,{children:[e("login.by.continuing")," ",(0,o.jsxs)("a",{href:r.OB.webUrl.termsOfUse,target:"_blank",children:[e("login.zero.policy.text2")," "]})," ",e("text.and")," ",(0,o.jsx)("a",{href:r.OB.webUrl.privacyPolicy,target:"_blank",children:e("login.zero.policy.text4")})]})};let es=c.ZP.p.withConfig({componentId:"sc-66fe819e-0"})(["margin-top:",";color:#8b8d98;font-size:",";line-height:",";letter-spacing:",";text-align:center;a{color:#1c2024;}"],(0,r.hO)(40),(0,r.hO)(12),(0,r.hO)(16),(0,r.hO)(.4));var el=e=>{let{retryCount:t,desc:n}=e,{t:i}=(0,p.$G)("common");
1return(0,o.jsx)(eh,{closeable:!1,children:(0,o.jsxs)(u.Layout.ColMiddle,{children:[(0,o.jsx)(u.Layout.Center,{className:"img-box",children:(0,o.jsx)(s(),{className:"error-img",src:l.Gs.XT,alt:"error",width:80,height:80})}),(0,o.jsx)("h4",{children:i("login.account.limited")}),(0,o.jsx)("p",{children:n||"Account has limited with the continually wrong password. Please kindly try again ".concat(t," hours later.")}),(0,o.jsx)(b.xk,{onClick:u.pop.back,children:i("login.got.it")})]})})};let eh=(0,c.ZP)(u.Pop).withConfig({componentId:"sc-a5886012-0"})([".img-box{background-color:#feebec;width:",";height:",";border-radius:50%;}h4{font-size:",";line-height:",";color:#1c2024;font-weight:",";margin-top:",";}p{font-size:",";line-height:",";color:#1c2024;margin-top:",";text-align:center;}.button{height:",";background-color:#bdee63;margin-top:",";}"],(0,r.hO)(88),(0,r.hO)(88),(0,r.hO)(24),(0,r.hO)(32),e=>e.theme.DemiBold,(0,r.hO)(32),(0,r.hO)(16),(0,r.hO)(24),(0,r.hO)(12),(0,r.hO)(48),(0,r.hO)(36));var ed=e=>{let{desc:t,onResend:n}=e,{t:r}=(0,p.$G)("common"),[c,a]=(0,i.useState)(!1),h=async()=>{if(!n){u.pop.back();return}a(!0);try{let e=await n();!1!==e&&u.pop.back()}finally{a(!1)}};return(0,o.jsx)(eu,{closeable:!0,children:(0,o.jsxs)(u.Layout.ColMiddle,{children:[(0,o.jsx)(u.Layout.Center,{className:"img-box",children:(0,o.jsx)(s(),{className:"error-img",src:l.Gs.XT,alt:"error",width:80,height:80})}),(0,o.jsx)("h4",{children:r("login.account.limit.reached")}),(0,o.jsx)("p",{children:t||"Maximum attempts reached. Please resend a new code."}),(0,o.jsx)(b.xk,{onClick:h,loading:c,children:r("common.key.resend")})]})})};let eu=(0,c.ZP)(u.Pop).withConfig({componentId:"sc-fb8370b-0"})([".img-box{background-color:#feebec;width:",";height:",";border-radius:50%;}h4{font-size:",";line-height:",";color:#1c2024;font-weight:",";margin-top:",";}p{font-size:",";line-height:",";color:#1c2024;margin-top:",";text-align:center;}.button{height:",";background-color:#bdee63;margin-top:",";}"],(0,r.hO)(88),(0,r.hO)(88),(0,r.hO)(24),(0,r.hO)(32),e=>e.theme.DemiBold,(0,r.hO)(32),(0,r.hO)(16),(0,r.hO)(24),(0,r.hO)(12),(0,r.hO)(48),(0,r.hO)(36));var eg=n(14057),ef=e=>{let{type:t="text",codeType:n,resendTrigger:r}=e,{t:c}=(0,p.$G)("common"),{identity:a,method:s,email:l,area:h,mobile:d,request_code:g}=(0,Y.hq)(),[f,m]=(0,i.useState)(60),[b,x]=(0,i.useState)("text"===t),y=(0,i.useRef)(null),w=async()=>{try{let e=await M({identity:a});if(!e)return;await (0,Y.ij)({captchaCode:{captcha_id:e.captcha_id,captcha_code:e.code},identity:a,method:s,...g?{request_code:g}:{email:l,area:h,mobile:d},type:n}),x(!0)}catch(e){(0,u.Notify)(e)}},k=()=>{v(),y.current=setInterval(()=>{m(e=>e>0?e-1:(x(!1),60))},1e3)};(0,i.useEffect)(()=>(b?k():v(),()=>{v()}),[b]),(0,i.useEffect)(()=>{r&&(m(60),x(!0))},[r]);let v=()=>{y.current&&clearInterval(y.current)};return(0,o.jsx)(J.zx,{disabled:b,onClick:w,children:(0,o.jsx)("span",{children:b?c("login.code.sent",["(".concat(f,"s)")]):c("login.send.code")})})},ep=n(57765)},13118:function(e,t,n){"use strict";n.d(t,{hq:function(){return o.useLoginContext},ij:function(){return o.getVerifyCode}});var o=n(72107)},50381:function(e,t,n){"use strict";n.r(t),n.d(t,{getUrlAttributionProperties:function(){return c},loginSuccessEvent:function(){return a}});var o=n(45262);let i=e=>{if(!e)return null;try{return new URL(decodeURIComponent(e),window.location.origin)}catch(e){return null}},r=(e,t)=>{let n={};return(null==t?void 0:t.length)?t.forEach(t=>{let o=e.get(t);o&&(n[t]=o)}):e.forEach((e,t)=>{e&&(n[t]=e)}),n},c=e=>{let t=new URL(window.location.href),n=i(t.searchParams.get("backurl")),o=(null==n?void 0:n.searchParams)||t.searchParams,c={};return n&&(c.referrer_url=n.href),Object.assign(c,r(o,e)),c},a=e=>{let t=new URL(window.location.href).searchParams.get("backurl")||"";(0,o.L9)(e.is_new?"user_register":"user_login",{user_id:e.user_id,referrer_url:t}),window.ttq&&window.ttq.track(e.is_new?"CompleteRegistration":"CompleteLogin")}},74103:function(e,t,n){"use strict";n.d(t,{Oj:function(){return r},hq:function(){return c},m8:function(){return i}});var o=n(67294);
1let i={password:"",method:"email",maskEmail:"",email:"",maskArea:"+1",area:"+1",maskMobile:"",mobile:"",isLogin:!0,phoneReciveMode:void 0,phoneOptions:!1,request_code:"",isBack:!1,stage:n(32976).wY.EnterEmailOrMobile,identity:"",registered:0,hasBindPasskey:!1,isNewDevice:!1,isNewUser:!1,verifyCode:"",captchaCode:{captcha_id:"",captcha_code:""},needAuthMap:{device_auth:!1,code_auth:!1},interceptNewDeviceLogin:async()=>!0,afterLogin:()=>{},gotoApp:()=>{},finishWithAuthCode:()=>{},preferFinalizeJump:!1,authCode:"",finalizeAuthCodeWithCode:async()=>{},setState:()=>{},push:()=>{},pop:()=>{},replace:()=>{},close:()=>{}},r=o.createContext(i);function c(){let e=(0,o.useContext)(r);if(void 0===e)throw Error("useLoginStateContext must be used within a LoginContext");return e}},72107:function(e,t,n){"use strict";n.r(t),n.d(t,{DEFAULT_LOGIN_STATE:function(){return o.m8},LoginContext:function(){return o.Oj},checkActivityReport:function(){return i.checkActivityReport},getVerifyCode:function(){return i.getVerifyCode},identifyPhoneNumber:function(){return i.identifyPhoneNumber},loginAnalyticsEvent:function(){return r},parseErrorData:function(){return i.parseErrorData},resetPasswordVerify:function(){return i.resetPasswordVerify},safeJumpToApp:function(){return i.safeJumpToApp},sendCwalletCaptcha:function(){return i.sendCwalletCaptcha},useLoginContext:function(){return o.hq}});var o=n(74103),i=n(93144),r=n(50381)},93144:function(e,t,n){"use strict";n.r(t),n.d(t,{checkActivityReport:function(){return f},getVerifyCode:function(){return h},identifyPhoneNumber:function(){return p},parseErrorData:function(){return g},resetPasswordVerify:function(){return u},safeJumpToApp:function(){return m},sendCwalletCaptcha:function(){return d}});var o=n(32754),i=n(32976),r=n(73380),c=n(61232),a=n(25222),s=n(45262),l=n(80479);let h=async e=>{let{captchaCode:t,identity:n,method:i,type:r,email:c="",mobile:a="",area:s="",request_code:l="",receive_mode:h}=e,{captcha_id:d,captcha_code:u}=t;"email"===i?await o.nA.sendEmailCode({request_code:l,email:c,code_type:r,opt:{captcha_id:d,captcha_code:u,identity:n}}):await o.nA.getSmsCode({request_code:l,area:s,mobile:a,code_type:r,opt:{captcha_id:d,captcha_code:u,identity:n},receive_mode:h})},d=async e=>{let{identity:t,method:n,type:o,email:i="",area:c="",mobile:s="",request_code:l="",receive_mode:d}=e;try{let e=await (0,r.uR)({identity:t});if(!e)throw Error("");return await h({captchaCode:{captcha_id:e.captcha_id,captcha_code:e.code},identity:t,method:n,type:o,mobile:l?"":s,area:l?"":c,email:l?"":i,request_code:l,receive_mode:d}),{captcha_id:e.captcha_id,captcha_code:e.code}}catch(e){(0,a.Notify)(e);return}},u=(e,t)=>{let n=e.trim(),o=t.trim(),i=n.length,r=o.length;return i!==r||n!==o?(null===c.ag||void 0===c.ag?void 0:c.ag.t("login.notMatch"))||"":(i<8||r<8||i>20||r>20)&&(null===c.ag||void 0===c.ag?void 0:c.ag.t("login.digits"))||""},g=e=>{try{if(e.response.data){let t=e.response.data,{left_retry_num:n=0,retry_type:o,total_retry_num:r=0,block_hours:c=2}=t;switch(o){case i.y3.MAIL_CODE:case i.y3.PHONE_CODE:if(n>1)return{code:e.response.code,msg:"You have failed ".concat(r-n," times, ").concat(n," chances left"),data:t,type:"error"};if(1===n)return{code:e.response.code,msg:"Wrong code, ".concat(n," chance left."),data:t,type:"error"};return{code:e.response.code,msg:"Account has limited with the continually wrong code. Please kindly\n                try again ".concat(c," hours later."),type:"warn",data:t};case i.y3.PHONE_PASSWD:case i.y3.EMAIL_PASSWD:if(n>1)return{code:e.response.code,msg:"Wrong password, ".concat(n," chances left"),data:t,type:"error"};if(1===n)return{code:e.response.code,msg:"Wrong password, ".concat(n," chance left before your account is locked for ").concat(c," hours."),data:t,type:"error"};return{code:e.response.code,msg:"Account has limited with the continually wrong password. Please kindly\n                try again ".concat(c," hours later."),type:"warn",data:t};case i.y3.PAY_PASS:if(n>1)return{code:e.response.code,msg:"Wrong password, ".concat(n," chances left"),data:t,type:"error"};if(1===n)return{code:e.response.code,msg:"Wrong password, ".concat(n," chance left before account are restricted for ").concat(c," hours."),data:t,type:"error"};return{code:e.response.code,msg:"Account has limited with the continually wrong password. Please kindly\n                try again ".concat(c," hours later."),type:"warn",data:t};case i.y3.MODIFY_PASSWD:return{code:e.response.code,msg:"You have recently changed your payment password. account are disabled for ".concat(c," hours."),type:"warn",data:t};case i.y3.GOOGLE_CODE:case i.y3.CAPTCHA_CODE:case i.y3.NONE:default:return{code:e.response.code,msg:"",type:"error"}}}else{if(100114===e.response.code)return{msg:"",type:"error",code:e.response.code};return{code:e.response.code,msg:"",type:"error"}}}catch(e){return{msg:"",type:"error"}}},f=async()=>{let e=window.location.pathname;if(!(e.includes("deep_linking")||e.includes("native_webauthn")))try{let e=s.P6.getURLSearchParams("startapp");if(!e)return;let t=e.split("__CPN__")[1];await o.nA.sendLuckyBoxActivityReportApi(t)}catch(e){console.error(e)}};function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[...t.length>0?t:["1"]].sort((e,t)=>
1t.length-e.length),o=e.match(/^\s*([+]?\d+)\s+(.*)$/);return o?function(e,t,n,o){let i=e.startsWith("+")?e.slice(1):e;if(n.includes(i)){let e=t.replace(/\s/g,"");if(""===e||/^\d+$/.test(e))return{area_code:i,number:e}}return{email:o}}(o[1],o[2],n,e):function(e,t){let n;let o=e.replace(/\s/g,"");for(let e of(n=o.startsWith("+")?o.slice(1):o,t))if(n.startsWith(e)){let t=n.slice(e.length);if(""===t||/^\d+$/.test(t))return{area_code:e,number:t}}return{email:e}}(e,n)}function m(e){let{backUrl:t,AUTH_CODE:n,isDomainChanged:o}=e,i=(0,l.X)(),r=t||"https://".concat(i.appDomain);try{let e=new URL(decodeURIComponent(r));if(i.safeDomains.some(t=>{if(!e.host.endsWith(t))return!1;let n=e.host.split(t),o=n[n.length-2];return!!(""===o||o.length>1&&o.endsWith("."))})){let t=r;if(!i.isAu&&(o||e.host.endsWith("cwallet.in"))&&n){let e=new URL(r);e.searchParams.append("AUTH_CODE",n),t=e.toString()}window.location.href=s.P6.sanitizeHref(decodeURIComponent(t))}else window.location.href="https://".concat(i.appDomain)}catch(e){window.location.href="https://".concat(i.appDomain)}}},35883:function(){}}]);

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.