PageSourceSearch

https://www.orangex.com/_next/static/chunks/6905-284c704452bb1a36.js

js orangex.com collected 2026-10-02 15:05:32 UTC 16,914 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6905],{9479:(e,t,n)=>{"use strict";n.d(t,{_:()=>A});var o=n(37876),r=n(51890),i=n(81947),l=n(77258),a=n(97777),s=n(20079),c=n(10928),d=n(14232),u=n(37626),m=n(67485),h=n(69440);function p(e){let{onSubmit:t,email:n,emailTicket:r,ticket:i,step:l,shadow:a,mobileCode:s,mobileNo:c}=e,{t:d}=(0,u.B)();return(0,o.jsx)(m.$,{title:d("Login.VerifyCode"),shadow:a,dense:e.dense,children:(0,o.jsx)(h.q,{step:l,emailTicket:r,userEmail:n,mobileCode:s,mobileNo:c,ticket:i,onSubmit:t})})}var f=n(50121);function x(e){let{t}=(0,u.B)();return(0,o.jsx)(m.$,{title:t("Public.PhoneVerification"),shadow:e.shadow,dense:e.dense,children:(0,o.jsx)(f.J,{code:e.code,ticket:e.ticket,onSubmit:e.onSubmit,marginTop:!1})})}var g=n(34645),b=n(67811),v=n(28396),_=n(68483),y=n(84137),j=n(19342),C=n(32324),E=n.n(C),S=n(19485),N=n(88992),w=n(539);function I(e){let{t}=(0,u.B)(),n=(0,N.mN)({defaultValues:{country:""}}),[r,i,l]=(0,g.p)({onResult:e=>{n.setValue("country",e.code)}}),a=r||e.loading;return(0,o.jsxs)(m.$,{title:t("Register.WhereLive"),shadow:e.shadow,dense:e.dense,children:[(0,o.jsx)("div",{className:(0,S.AH)({lineHeight:"19px"}),children:t("LoginGoogle.Desc1")}),(0,o.jsxs)(v.gv,{sx:{mt:2,mb:1.1},form:n,onSubmit:()=>{let t=l.current;t&&e.onSubmit(t)},children:[(0,o.jsx)(v.R9,{name:"country",label:(0,o.jsxs)(y.K,{direction:"row",alignItems:"center",spacing:8,children:[(0,o.jsx)("span",{children:t("Public.Residential.Country")}),(0,o.jsx)(j.v,{underline:!1,arrow:!0,title:(0,o.jsx)("div",{className:E().tooltipTitle,children:(0,o.jsx)(w.x,{i18nKey:"Register.Area.TipExplain",components:{h:(0,o.jsx)("span",{style:{color:"#CC3732"}})}})}),componentsProps:{popper:{className:E().popper,modifiers:[{name:"offset",enabled:!0,options:{offset:[8,-4]}}]},tooltip:{className:E().tooltip}},children:(0,o.jsx)(_.t,{code:"icon-warning-outline",className:E().tooltipIcon})})]}),children:e=>{let{field:t,fieldState:n}=e;return(0,o.jsx)(g.k,{loading:a,data:i,value:t.value,error:!!n.error,onChange:e=>{l.current=e,t.onChange((null==e?void 0:e.code)??"")}})}}),(0,o.jsx)("div",{className:(0,S.AH)({fontSize:"12px",lineHeight:"16px",color:"fn-brand-normal",mb:"24px"}),children:t("LoginGoogle.Desc2")}),(0,o.jsx)(b.I,{type:"submit",fullWidth:!0,size:"large",loading:a,children:t("Public.Confirm")})]})]})}function A(e){let{step:t,email:n,emailTicket:u,ticket:m,grant_type:h,action:f,country:g,shadow:b,dense:v}=e,[_,y]=(0,d.useState)(!1),j=["STEP_NEW_DEVICE","STEP_TFA_NEW_DEVICE","TFA"].includes(t)?"TFA":t;return(0,o.jsxs)(i.ZH,{value:j,children:[(0,o.jsx)(i.OK,{value:"COUNTRY",children:(0,o.jsx)(I,{shadow:b,dense:v,loading:_,onSubmit:e=>{let{code:t,name:n}=e;y(!0),c.I.Register.onSelectCountry(n,"gsi"),l.Di.saveCountry({country:t,ticket:m}).then(r.D7).then(e=>{a.Z.auth({grant_type:h,ticket:e.ticket,action:"signup"})}).catch(e=>{(0,s.Vf)({error:e})})}})}),(0,o.jsx)(i.OK,{value:"TFA",children:(0,o.jsx)(p,{dense:v,shadow:b,email:n,emailTicket:u,ticket:m,step:t,onSubmit:async(e,t)=>await a.Z.verifyLogin({ticket:t,grant_type:h,action:f})})}),(0,o.jsx)(i.OK,{value:"PHONE",children:(0,o.jsx)(x,{shadow:b,dense:v,loading:_,code:g??"",ticket:m,onSubmit:async e=>{y(!0);try{let t=await l.Di.savePhone({vcode:e,ticket:m}).then(r.D7);a.Z.auth({grant_type:h,ticket:t.ticket,action:f})}catch(e){(0,s.Vf)({error:e})}finally{y(!1)}}})})]})}},17508:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=n(44471).A},23368:(e,t,n)=>{"use strict";n.d(t,{i:()=>i,q:()=>l});var o=n(1352),r=n(51890);async function i(e){let t=await o.E.post("/public/get_country_register_config",{data:e});return(0,r.D7)(t)}function l(e){let{validate:t,...n}=e;return o.E.post("/public/phone_code_send",{data:{...n,type:"PHONE_REGISTER_ACTIVATION_CODE"}})}},32324:e=>{e.exports={form:"form_I5KUpXM7",input:"input_zh79mMcq",countryLabel:"country-label_lVGolAmW",tooltipIcon:"tooltip-icon_cZgz2nfv",tooltipTitle:"tooltip-title_vdvmZ1Hg",popper:"popper_NwFNsZDa",tooltip:"tooltip_xZTIDGvB",inviteCodeLabelRoot:"invite-code-label-root_Lw2FQ96D",active:"active_W_IkEAn0",inviteCodeLabel:"invite-code-label_IFAOijPE",invite
1CodeLabelIcon:"invite-code-label-icon_bo7O5Pgx"}},34645:(e,t,n)=>{"use strict";n.d(t,{k:()=>_,p:()=>v});var o=n(37876),r=n(20079),i=n(36162),l=n(33116),a=n(77258),s=n(23368),c=n(19485),d=n(14232);let u=(0,c.AH)({display:"flex",alignItems:"center",position:"relative",zIndex:1,pl:"16px"}),m=(0,c.AH)({width:"30px",height:"20px",display:"flex",alignItems:"center",bg:"line-short"}),h=(0,c.AH)({height:"20px",width:"1px",bg:"line-short",ml:"16px"}),p=(0,c.AH)({fontSize:"14px"}),f=(0,c.AH)({display:"flex",alignItems:"center",gap:"16px",overflow:"hidden"}),x=(0,c.AH)({width:"30px",height:"20px",flexShrink:0}),g=(0,c.AH)({width:"1px",alignSelf:"stretch",bg:"line-short",flexShrink:0}),b=(0,c.AH)({flex:1,minWidth:0,fontSize:{xs:"12px",sm:"14px"},overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),v=e=>{let[t,n]=(0,d.useState)(!1),[o,l]=(0,d.useState)(),[c,u]=(0,d.useState)([]),m=(0,d.useRef)(null),h=(0,i.g)(null==e?void 0:e.onResult);return(0,d.useEffect)(()=>{n(!0),Promise.all([a.Di.getIpArea().then(e=>{let{country:t}=e;return l(t),{country:t}}),(0,s.i)().then(e=>(u(e),e)).catch(e=>{(0,r.Vf)(e)})]).then(e=>{let[{country:t},n]=e;if(!n)return;let o=n.find(e=>e.code===t);o?(m.current=o,h(o)):(m.current=n[0],h(n[0]))}).finally(()=>{n(!1)})},[h]),[t,c,m,o]},_=e=>{let{value:t,onChange:n,data:r,loading:i,error:a}=e,s=(0,d.useRef)(null);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:s}),(0,o.jsx)(l.I,{getPopperContainer:()=>s.current,variant:"filled",fullWidth:!0,followRootWidth:!0,ellipsis:!0,size:48,contentBoxProps:{sx:{ml:1.6}},loading:i,state:a?"error":"default",classes:{content:(0,c.AH)({bgColor:"bg-modal"})},prefixIcon:e=>{let{option:t}=e??{};return(0,o.jsxs)("div",{className:u,children:[(0,o.jsx)("div",{className:m,style:(null==t?void 0:t.country_image_url)!==void 0?{backgroundImage:`url(${t.country_image_url})`,backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"100% 100%"}:void 0}),(0,o.jsx)("div",{className:h})]})},renderLabelView:e=>{let{option:t}=e;return(0,o.jsx)("span",{className:p,children:t.name})},filterOption:(e,t)=>{let{option:n}=t;return n.name.toLowerCase().includes(e.toLowerCase())},value:t,onChange:(e,t)=>
1{n(t)},children:r.map(e=>(0,o.jsx)(l.x,{value:e.code,option:e,children:(0,o.jsxs)("div",{className:f,children:[(0,o.jsx)("div",{className:x,style:{backgroundImage:`url(${e.country_image_url})`,backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"100% 100%"}}),(0,o.jsx)("div",{className:g}),(0,o.jsx)("span",{className:b,children:e.name})]})},e.code))})]})}},44480:(e,t,n)=>{"use strict";n.d(t,{D:()=>d});var o=n(37876),r=n(61629),i=n(49995),l=n(14232),a=n(70592),s=n.n(a),c=function(e){return e[e.small=55]="small",e[e.medium=112]="medium",e[e.large=122]="large",e}(c||{});let d=(0,l.forwardRef)(function(e,t){let{component:n="div",children:a,className:d,classes:u,label:m,transparent:h=!0,style:p,size:f="small",minHeight:x,imgWidth:g,imgHeight:b,radius:v=2,img:_,isEmpty:y,padding:j=16,...C}=e,E={"--mui-empty-height":"number"==typeof x?`${x}px`:x||"auto","--mui-empty-padding":"number"==typeof j?`${j}px`:j,"--mui-empty-img-width":(0,l.useMemo)(()=>{let e;return"number"==typeof(e=g||(b||"number"==typeof f?"auto":c[f]))?`${e}px`:e},[b,g,f]),"--mui-empty-img-height":(0,l.useMemo)(()=>{let e;return"number"==typeof(e=b||("number"==typeof f?f:"auto"))?`${e}px`:e},[b,f]),"--mui-empty-radius":"number"==typeof v?`${v}px`:v},S=l.Children.count(a);return y??S<=0?(0,l.createElement)(n,{ref:t,style:{...p,...E},className:(0,i.default)("mui-empty-root",s().root,null==u?void 0:u.root,d,{[s().bgColor]:!h}),...C},(0,o.jsxs)(l.Fragment,{children:[_||(0,o.jsx)(r.l,{src:"/static-lib/img/icon-multi/2fjYoZ8Ti1uSPB4G.svg",className:(0,i.default)("mui-empty-img",s().img,null==u?void 0:u.img),alt:"Empty"}),"string"==typeof m?(0,o.jsx)("div",{className:(0,i.default)("mui-empty-label",s().label,null==u?void 0:u.label),children:m}):m]})):(0,o.jsx)(l.Fragment,{children:a})})},50121:(e,t,n)=>{"use strict";n.d(t,{G:()=>x,J:()=>g});var o=n(37876),r=n(86190),i=n(13191),l=n(67811),a=n(28396),s=n(80968),c=n(33116),d=n(42993),u=n(84446),m=n(23368),h=n(14232),p=n(88992),f=n(37626);function x(e){let{countryCode:t,name:n,hideIcon:r,variant:i="filled",readOnly:l,onlySupportMobileCode:a,selectClasses:s}=e,{setValue:f,control:x,getValues:g}=(0,p.xW)(),[b,v]=(0,h.useState)([]);(0,h.useEffect)(()=>{(0,m.i)().then(e=>{e&&v(e)}
1).catch(()=>{})},[t,f,n]);let _=(0,h.useMemo)(()=>a?b.filter(e=>e.isPointCountry):b,[a,b]);return(0,h.useEffect)(()=>{!g(n)&&_.length&&f(n,_[0].mobile_code)},[n,f,_,g]),(0,o.jsx)(p.xI,{name:n,control:x,render:e=>{let{field:{value:t,onChange:n,...a},fieldState:{error:m}}=e;return(0,o.jsx)(c.I,{sx:{minWidth:90},value:t??"",size:48,variant:i,placeholder:null,state:m?"error":"default",...a,classes:s,onChange:e=>{n(e)},readOnly:l,children:_.map(e=>(0,o.jsx)(c.x,{value:e.mobile_code,option:e,children:(0,o.jsxs)(d.A,{direction:"row",spacing:.8,alignItems:"center",children:[!r&&(0,o.jsx)(u.A,{sx:{width:30,height:20,background:`url(${e.country_image_url}) no-repeat center center`}}),(0,o.jsxs)(u.A,{translate:"no",className:"notranslate",children:["+",e.mobile_code]})]})},`${e.code}_${e.mobile_code}`))})}})}function g(e){let{t}=(0,f.B)(),{code:n,ticket:x,onSubmit:g,beforeSubmit:b}=e,[v,_]=(0,h.useState)([]),[y,j]=(0,h.useState)(!1),C=(0,h.useRef)(),E=(0,p.mN)({defaultValues:{phoneInfo:{phoneCode:"",phoneNumber:""}}}),S=(0,p.FH)({control:E.control,name:"phoneInfo"}),{sendCode:N,countdown:w,loading:I}=(0,i.z)({sendType:"phone",service:async()=>{if(!x||!S.phoneCode||!S.phoneNumber)return!1;let e=await r.r.execute({action:"phoneCodeSend"});return(0,m.q)({ticket:x,code:S.phoneCode,phone:S.phoneNumber,validate:e}).then(e=>null==e?void 0:e.result)}});return(0,h.useEffect)(()=>{if(!n)return void(0,m.i)().then(e=>{e&&(_(e),E.setValue("phoneInfo.phoneCode",e[0].mobile_code))}).catch(()=>{});(0,m.i)({country:n}).then(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t]=e;t&&(E.setValue("phoneInfo.phoneCode",t.mobile_code),t.require_consistent_with_live?_(e):(0,m.
1i)().then(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_(e)}).catch(()=>{}))}).catch(()=>{})},[n,E]),(0,o.jsxs)(a.gv,{form:E,onSubmit:e=>{let{phoneNumber:t,code:n}=e;b&&b(t),g&&(j(!0),g(n,t).finally(()=>{j(!1)}))},children:[(0,o.jsx)(a.R9,{name:"phoneInfo",label:t("Public.PhoneNumber"),defaultValue:{phoneCode:"",phoneNumber:""},registerOptions:{validate:e=>{var n;let{phoneCode:o,phoneNumber:r}=e;return o?r?(null==(n=C.current)?void 0:n.mobile_regular)&&!new RegExp(C.current.mobile_regular).test(`${o}${r}`)?t("Register.PleaseInputPhoneCorrect"):void 0:t("Register.PleaseInputPhoneNumber"):t("Public.SelectPhoneCode")}},children:e=>{let{id:n,field:{onBlur:r,onChange:i,value:l},fieldState:{error:a}}=e;return(0,o.jsxs)(d.A,{direction:"row",spacing:.8,children:[(0,o.jsx)(c.I,{sx:{minWidth:150},value:l.phoneCode,state:a?"error":"default",onBlur:r,onChange:(e,t)=>{C.current=t,i({...l,phoneCode:e})},children:v.map(e=>(0,o.jsx)(c.x,{value:e.mobile_code,option:e,children:(0,o.jsxs)(d.A,{direction:"row",spacing:.8,children:[(0,o.jsx)(u.A,{sx:{width:20,height:20,background:`url(${e.country_image_url}) no-repeat center center`}}),(0,o.jsxs)(u.A,{translate:"no",className:"notranslate",children:["+",e.mobile_code]})]})},e.code))}),(0,o.jsx)(s.I,{id:n,placeholder:t("Public.PhoneNumber"),value:l.phoneNumber,error:!!a,onBlur:r,onChange:e=>{let t=e.target.value;/^\d*$/.test(t)&&i({...l,phoneNumber:t})}})]})}}),(0,o.jsx)(a.R9,{name:"code",label:t("Register.VerificationCode"),registerOptions:{validate:e=>{if(!e)return t("Public.CodeFail")}},filterValue:e=>/^\d*$/.test(e.target.value),children:e=>{let{field:{value:n,onBlur:r,onChange:i},fieldState:{error:a}}=e;return(0,o.jsx)(s.I,{inputProps:{maxLength:6},placeholder:t("Register.VerificationCode"),endAdornment:(0,o.jsx)(l.I,{loading:I,disabled:!S.phoneCode||!S.phoneNumber,variant:"text",onClick:N,children:w||t("Register.Send")}),error:!!a,value:n,onBlur:r,onChange:i})}}),(0,o.jsx)(l.I,{type:"submit",loading:y,fullWidth:!0,size:"large",children:t("Public.Confirm")})]})}},67485:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var o=n(37876),r=n(49995),i=n(68359),l=n.n(i);function a(e){let{shadow:t=!0,dense:n,...i}=e;return(0,o.jsxs)("div",{className:(0,r.default)(l().root,{[l().dense]:n}),children:[(0,o.jsxs)("div",{className:(0,r.default)(l().content,i.extract?l()["content-radius-extract"]:l()["content-radius"],{[l()["content-shadow"]]:t}),children:[i.title&&(0,o.jsx)("h3",{className:l().title,children:i.title}),i.children]}),i.extract]})}},68163:(e,t,n)=>{"use strict";n.d(t,{H:()=>l});var o=n(37876),r=n(61629),i=n(19485);function l(e){let{className:t,css:n}=e;return(0,o.jsx)(r.l,{className:(0,i.cx)((0,i.AH)({width:"1em",height:"1em",color:"text-secondary",fontSize:"8px"},n),t),src:"/static-lib/img/icon-mono/7Xj67tf0dMyN672a.svg"})}},68359:e=>{e.exports={root:"root_njh0JdRG",dense:"dense_mDohdFNt",content:"content_mHcY3PHw","content-radius":"content-radius_TasUovDN","content-shadow":"content-shadow_N_Am__UY","content-radius-extract":"content-radius-extract__7pqNVjwM",title:"title__6HmjkcMW"}},69440:(e,t,n)=>{"use strict";n.d(t,{b:()=>c,q:()=>d});var o=n(37876),r=n(81632),i=n(77258),l=n(20079),a=n(14232),s=n(39094);function c(e){let t=!1,n=["TFA","EMAIL","MOBILE","PASSKEY"].reduce((n,o)=>{var r;let i=(null==(r=e.match(RegExp(o,"g")))?void 0:r.length)??0;return i&&(i>1&&(t=!0),Reflect.set(n,o.toLowerCase(),{public:!0,require:i>1})),n},{});return t||Object.entries(n).filter(e=>
1e[1].public).forEach(t=>{let[n,o]=t;o.require=!e.match(RegExp(`_${n.toUpperCase()}_|_${n.toUpperCase()}$`,"g"))}),n}function d(e){let{title:t,step:n,emailTicket:d,ticket:u,onSubmit:m,userEmail:h,mobileCode:p,mobileNo:f}=e,x="function"==typeof t?t():t,g=(0,a.useMemo)(()=>{let e=(e,t)=>async n=>n.error?((0,l.Vf)({error:n.error}),t({message:await (0,l.sV)(n.error.code)}),!1):n.result?(Reflect.set(n.result,e,!0),n.result):void 0,t={validate:(t,n,o)=>i.Di.checkTfaOrVcode({vtype:"tfa",tfa:t,ticket:n}).then(e("googleCodePassed",o))};return n.endsWith("NEW_DEVICE")||n.endsWith("4_NEWDEVICE")?{phone:{sendCode:"MOBILE_AUTH_NEW_DEVICE_CODE",validate:(t,n,o)=>i.Di.checkDeviceByMobile({mobileCode:t,ticket:n}).then(e("phoneCodePassed",o))},email:{sendCode:"AUTH_NEW_DEVICE_CODE",validate:(t,n,o)=>i.Di.checkDevice({vcode:t,ticket:n}).then(e("vcodePassed",o))},tfa:t}:{phone:{sendCode:"MOBILE_AUTH_MOBILE_CODE",validate:(t,n,o)=>i.Di.checkTfaOrVcode({vtype:"mobile_code",mobileVcode:t,ticket:n}).then(e("phoneCodePassed",o))},email:{sendCode:"ACCOUNT_LOGIN_EMAIL_CODE",validate:(t,n,o)=>i.Di.checkTfaOrVcode({vtype:"email_code",vcode:t,ticket:n}).then(e("vcodePassed",o))},tfa:t}},[n]),b=(0,a.useMemo)(()=>n.indexOf("MOBILE")>0?c(n):"STEP_TFA_NEW_DEVICE"===n?{email:{require:!0,public:!0},tfa:{require:!0,public:!0}}:"TFA"===n?{email:{public:!0},tfa:{public:!0}}:{email:{require:!0,public:!0}},[n]),v=`+${p}${f}`;return(0,o.jsxs)(o.Fragment,{children:[x,(0,o.jsx)(s.x,{showSwitchDialog:{always:!1},validators:{phone:b.mobile&&{by:v,codeGenerator:d&&(0,o.jsx)(r.td,{type:g.phone.sendCode,ticket:d,size:"medium"}),validate:(e,t,n,o,r)=>(t=t||u,g.phone.validate(e,t,r)),...b.mobile},tfa:b.tfa&&{validate:(e,t,n,o,r)=>(t=t||u,g.tfa.validate(e,t,r)),...b.tfa},email:b.email&&{by:h,codeGenerator:d&&(0,o.jsx)(r.HB,{ticket:d,codeType:g.email.sendCode}),validate:(e,t,n,o,r)=>(t=t||u,g.email.validate(e,t,r)),...b.email}},onSubmit:m})]})}},70592:e=>{e.exports={root:"root_smE20SEG",bgColor:"bg-color_MbJ_ECSV",img:"img_GTOroJ2h",label:"label_GkL8NRbv"}},70789:(e,t)=>{"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case r:case l:case i:case u:case m:return e;default:switch(e=e&&e.$$typeof){case c:case s:case d:case p:case h:case a:return e;default:return t}}case o:return t}}}(e)===h}},81947:(e,t,n)=>{"use strict";n.d(t,{OK:()=>s,ZH:()=>a});var o=n(37876),r=n(84446),i=n(14232);let l=i.createContext(""),a=l.Provider,s=(0,i.memo)(e=>{let{value:t,keepAlive:n,children:a,...s}=e,c=t!==i.useContext(l);return(0,o.jsx)(r.A,{hidden:c,...s,children:(!c||n)&&a})})},97225:(e,t,n)=>{"use strict";e.exports=n(70789)}}]);

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.