PageSourceSearch

https://www.maxbit.com/static/js/5420.e4ecec83.chunk.js

js maxbit.com collected 2026-09-24 11:59:07 UTC 22,497 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfront_end_ui=self.webpackChunkfront_end_ui||[]).push([[5420],{93371(e,n,t){t.d(n,{A:()=>s});var o=t(97e3),r=t(50119),a=t(9950),i=t(44414);const s=e=>{let n=e.initialSeconds,t=e.onFinish,s=e.isStop,l=e.rerun,c=e.timeUnit,d=e.isForceReload,u=e.isRegister,p=void 0!==u&&u,m=e.justCount,h=void 0!==m&&m;const v=(0,r.a$)(),f=(0,a.useState)(n),g=(0,o.A)(f,2),b=g[0],A=g[1];return(0,a.useEffect)((()=>{(0===b||d)&&l&&A(n)}),[l,d]),(0,a.useEffect)((()=>{const e=setInterval((()=>{s||A((n=>n>0?n-1:(t&&t(),clearInterval(e),0)))}),1e3);return()=>clearInterval(e)}),[s,l]),h?(0,i.jsx)("span",{}):(0,i.jsx)("span",{children:p?(0,i.jsx)(a.Fragment,{children:v("timer.count-down-sec",{time:b})}):(0,i.jsx)(a.Fragment,{children:v("timer.unit.".concat(null!==c&&void 0!==c?c:"seconds"),{time:b})})})}},33319(e,n,t){t.d(n,{A:()=>l});var o=t(95443),r=t(83696),a=t(50119),i=t(20880),s=(t(9950),t(44414));const l=e=>{const n=e.name,t=(0,a.a$)(),l=(0,a.GV)(i.WA),c=null!==l&&void 0!==l&&l[n]?"error":"success",d=null!==l&&void 0!==l&&l[n]?t(l[n][0]):null;return(0,s.jsx)(r.A.Item,(0,o.A)((0,o.A)({},e),{},{validateStatus:c,help:d}))}},68765(e,n,t){t.d(n,{A:()=>A});var o=t(95443),r=t(97e3),a=t(52662),i=t(55428),s=t(50119),l=t(72004),c=t(82457),d=t(75851),u=t(85006),p=t(9950),m=t(1622),h=t(93371),v=t(33319),f=t(44414);const g=["onSendCode","handleFinishCount","placeholder","autoSend","disabled","type","onChangeOtpCode","isRegister","reSend","currentResend","maxResend"],b=async e=>{const n=(await i.A.getSettingConfig(e)).body;return n?Math.round(Number(n.value)/1e3):60},A=e=>{let n=e.onSendCode,t=e.handleFinishCount,i=(e.placeholder,e.autoSend),A=void 0===i||i,C=e.disabled,y=e.type,x=void 0===y?"email":y,j=e.onCh
1angeOtpCode,N=e.isRegister,w=void 0!==N&&N,O=e.reSend,S=void 0!==O&&O,P=e.currentResend,R=void 0===P?0:P,E=e.maxResend,_=void 0===E?0:E,k=(0,a.A)(e,g);const V=window.crypto||window.Crypto,F=(0,s.a$)(),I=(0,p.useRef)(null),L=(0,p.useState)(0),T=(0,r.A)(L,2),D=T[0],$=T[1],B=(0,p.useState)(0),G=(0,r.A)(B,2),q=G[0],M=G[1],H=(0,p.useState)(!1),U=(0,r.A)(H,2),Z=U[0],W=U[1],X="email"===x?u.bD.EMAIL_RESEND_OTP_EXPIRATION:u.bD.SMS_RESEND_OTP_EXPIRATION,z="email"===x?u.bD.EMAIL_OTP_EXPIRATION:u.bD.SMS_OTP_EXPIRATION,Y=(0,p.useCallback)((async()=>{const e=await b(X);$(e);const n=await b(z);M(n)}),[X,z]);return(0,p.useEffect)((()=>{A&&(b(X).then((e=>{$(e)})).catch((()=>{$(0)})),b(z).then((e=>{M(e)})).catch((()=>{M(0)})))}),[x,A,X,z]),(0,p.useEffect)((()=>{$(0),M(0)}),[x]),(0,p.useEffect)((()=>{Y()}),[Y]),(0,p.useEffect)((()=>{const e=setInterval((()=>{$((e=>e>0?e-1:(W(!1),0)))}),1e3);return()=>clearInterval(e)}),[D]),(0,f.jsx)(v.A,(0,o.A)((0,o.A)({},k),{},{children:(0,f.jsxs)("div",{className:"verify-input-code__container",children:[(0,f.jsx)(m.A,{containerClassName:"twofa-code__block",inputClassName:"twofa-code__input",onChange:j,allowedCharacters:"numeric",autoFocus:!1}),(0,f.jsxs)("div",{className:"timer-notice",children:[(0,f.jsx)("span",{className:(0,l.A)("counter-notice text-white-2",d.A.p3),children:q?(0,f.jsx)(h.A,{onFinish:()=>{M(0),t&&t()},initialSeconds:q,isRegister:w,rerun:Z,isForceReload:!0}):(0,f.jsx)("span",{children:F("common.code-expired")})}),(0,f.jsxs)("button",{className:(0,l.A)("send-code",{disabled:!!D}),onClick:async()=>{var e;if(C)return;const t=await b(X);$(t);const o=await b(z);M(o),W(!0);const r=new Uint32Array(1);V.getRandomValues(r),null===(e=I.current)||void 0===e||e.focus(),n&&n()},type:"button",disabled:!!D,children:[(0,f.jsx)(c.A,{allow:!D}),(0,f.jsx)("span",{children:F("common.resend-code")}),S?(0,f.jsxs)("span",{children:[R,"/",_]}):null]})]})]})}))}},15111(e,n,t){t.d(n,{A:()=>s});var o=t(95443),r=t(77645),a=(t(9950),t(33319)),i=t(44414);const s=e=>{const n=e.placeholder,t=e.value,s=e.defaultValue,l=e.onChange,c=e.disabled,d=e.maxLength;return(0,i.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{children:(0,i.jsx)(r.A.Password,{placeholder:n,value:t,defaultValue:s,onChange:l,disabled:c,maxLength:d})}))}},17118(e,n,t){t.d(n,{A:()=>h});var o=t(97e3),r=t(83696),a=t(77645),i=t(70171),s=t(50119),l=t(62601),c=t(72004),d=t(74364),u=t(75851),p=t(9950),m=t(44414);const h=e=>{let n=e.label,t=e.name,h=e.rules,v=e.placeholder,f=e.className,g=e.disabled,b=e.onChangePhone,A=e.getPhoneCode,C=e.phoneCodeNumber,y=e.value,x=e.help,j=e.validateStatus,N=e.countries,w=void 0===N?[]:N;const O=(0,s.a$)(),S=(0,p.useState)(!1),P=(0,o.A)(S,2),R=P[0],E=P[1],_=(0,p.useState)([]),k=(0,o.A)(_,2),V=k[0],F=k[1],I=(0,p.useRef)(null);(0,p.useEffect)((()=>{R||F([])}),[R]);const L=e=>{A&&A(e),(()=>{var e;E(!1),null===(e=I.current)||void 0===e||e.focus()})()};return(0,m.jsxs)("div",{className:"w-100-p",children:[(0,m.jsx)(r.A.Item,{id:y,name:t,rules:h,label:n,className:(0,c.A)("phone__field",f),help:x,validateStatus:j,children:(0,m.jsx)(a.A,{ref:I,onChange:b,prefix:(0,m.jsx)(i.A,{getPopupContainer:()=>document.getElementById("phone-popover-wrapper-".concat(t)),placement:"bottomLeft",autoAdjustOverflow:!1,trigger:"click",open:!g&&R,onOpenChange:e=>E(e),destroyTooltipOnHide:!0,content:(0,m.jsxs)("div",{className:"phone-popover",children:[(0,m.jsx)("div",{className:"input-primary",children:(0,m.jsx)(a.A,{onChange:e=>{if(""===e.target.value)F(w);else{const n=w.filter((n=>n.phoneCode&&("+".concat(n.phoneCode).includes(e.target.value)||n.niceName.toUpperCase().includes(e.target.value.toUpperCase()))));F(n)}},className:"input-primary",style:{height:"40px"},placeholder:O("common.search-input"),suffix:(0,m.jsx)(d.A,{className:"cursor-p",src:l.icons.searchIcon,alt:"search icon",size:{width:14,height:14}}),autoFocus:R})}),(0,m.jsx)("div",{className:"country_list","aria-disabled":g,children:(null!==V&&void 0!==V&&V.length?V:w).map((e=>(0,m.jsxs)("button",{className:"country-row",onClick:()=>L(e),type:"button",children:[(0,m.jsxs)("div",{className:"phone-code",children:[(0,m.jsx)("div",{style:{width:"24px"},children:(0,m.jsx)("div",{className:"ratio-1x1",children:(0,m.jsx)("div",{className:"img-container",children:(0,m.jsx)("img",{src:null===e||void 0===e?void 0:e.flagUrl,alt:"flag"})})})}
1),(0,m.jsxs)("div",{className:(0,c.A)("country_item__phone","text-greyish",u.A.p2),children:["+",e.phoneCode]})]}),(0,m.jsx)("div",{style:{width:"65%"},className:(0,c.A)("country_item__name","text-gray",u.A.p2),children:e.niceName})]},e.name)))})]}),children:(0,m.jsxs)("button",{className:"phone-code__wrapper",onClick:()=>E(!0),type:"button",children:[(0,m.jsx)("div",{style:{width:"24px"},children:(0,m.jsx)("div",{className:"ratio-1x1",children:(0,m.jsx)("div",{className:"img-container",children:(0,m.jsx)("img",{src:null===C||void 0===C?void 0:C.flagUrl,alt:"flag"})})})}),(0,m.jsxs)("span",{className:(0,c.A)("phone-code",u.A.p2),children:["+",null===C||void 0===C?void 0:C.phoneCode]}),(0,m.jsx)(d.A,{alt:"open phone no dropdown",src:l.icons.arrowDropDown,size:{width:l.iconSize.xs,height:l.iconSize.xs}})]})}),placeholder:v,disabled:g})}),(0,m.jsx)("div",{id:"phone-popover-wrapper-".concat(t)})]})}},3345(e,n,t){t.d(n,{A:()=>c});var o=t(95443),r=t(52662),a=t(77645),i=(t(9950),t(33319)),s=t(44414);const l=["placeholder","disabled","value","suffix","maxLength","readOnly","uppercase","inputProps"],c=e=>{const n=e.placeholder,t=e.disabled,c=e.value,d=e.suffix,u=e.maxLength,p=e.readOnly,m=e.uppercase,h=e.inputProps,v=(0,r.A)(e,l);return(0,s.jsx)(i.A,(0,o.A)((0,o.A)({},v),{},{children:(0,s.jsx)(a.A,(0,o.A)((0,o.A)({},h),{},{placeholder:n,disabled:t,value:c,suffix:d,maxLength:u,readOnly:p,style:m?{textTransform:"uppercase"}:void 0}))}))}},24378(e,n,t){t.d(n,{A:()=>p});var o=t(95443),r=t(48538),a=t(90650),i=t(73173),s=t(20880),l=t(9950),c=t(27081),d=t(44414);const u=l.forwardRef(((e,n)=>{let t=e.name,l=e.type,u=e.className,p=e.formFieldStyle,m=e.buttonStyle,h=e.isBlock,v=e.buttonClassName,f=e.disabled,g=e.onClick,b=e.formItemProps;const A=(0,c.d4)(s.$Z);return(0,d.jsx)(i.A,(0,o.A)((0,o.A)({shouldUpdate:!0,className:u,style:p},b),{},{children:(0,d.jsxs)(r.A,{type:l,htmlType:"submit",disabled:A||f,style:m,block:h,className:v,ref:n,onClick:g,children:[!A&&t,A&&(0,d.jsx)(a.A,{})]})}))}));u.displayName="SubmitButton";const p=u},35046(e,n,t){t.d(n,{A:()=>l});var o=t(95443),r=t(83696),a=(t(9950),t(50119)),i=t(20880),s=t(44414);const l=e=>{const n=(0,a.jL)(),t=e.children;return(0,s.jsx)(r.A,(0,o.A)((0,o.A)({},e),{},{children:t,layout:"vertical",autoComplete:"off",requiredMark:!1,scrollToFirstError:!0,onValuesChange:e=>{const t=Object.keys(e)[0];n((0,i.$m)(t))}}))}},82457(e,n,t){t.d(n,{A:()=>r});t(9950);var o=t(44414);const r=e=>{let n=e.allow;return(0,o.jsxs)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("g",{clipPath:"url(#clip0_2129_29302)",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.74875 1.77219C8.48425 0.192847 11.6791 0.129513 14.3579 1.31792C14.8627 1.54189 15.0904 2.1327 14.8664 2.63753C14.6424 3.14237 14.0516 3.37005 13.5468 3.14609C11.4273 2.20577 8.90722 2.25805 6.74875 3.50424C3.59264 5.32642 2.26194 9.09613 3.39825 12.419L3.49061 12.0743C3.63355 11.5408 4.18189 11.2242 4.71536 11.3672C5.24882 11.5101 5.5654 12.0584 5.42246 12.5919L4.69041 15.3239C4.62177 15.5801 4.45417 15.7985 4.22449 15.9312C3.9948 16.0638 3.72185 16.0997 3.46567 16.0311L0.733617 15.299C0.20015 15.1561 -0.116432 14.6077 0.0265099 14.0743C0.169452 13.5408 0.717789 13.2242 1.25125 13.3672L1.65622 13.4757C-0.0424273 9.17055 1.62012 4.15585 5.74875 1.77219ZM16.3078 4.67426C16.4507 4.14079 16.9991 3.82421 17.5325 3.96715L20.2646 4.6992C20.798 4.84215 21.1146 5.39048 20.9717 5.92395C20.8287 6.45742 20.2804 6.774 19.7469 6.63106L19.3415 6.52241C21.0406 10.8277 19.3781 15.8428 15.2492 18.2266C12.5137 19.8059 9.31885 19.8692 6.64011 18.6808C6.13527 18.4569 5.90759 17.866 6.13155 17.3612C6.35552 16.8564 6.94633 16.6287 7.45116 16.8527C9.5707 17.793 12.0907 17.7407 14.2492 16.4945C17.4053 14.6723 18.736 10.9027 17.5998 7.57992L17.5076 7.92395C17.3646 8.45742 16.8163 8.774 16.2828 8.63106C15.7494 8.48811 15.4328 7.93978 15.5757 7.40631L16.3078 4.67426Z",fill:n?"#03FFCB":"#939598"})}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_2129_29302",children:(0,o.jsx)("rect",{width:"20",height:"20",fill:"white",transform:"translate(0.5)"})})})]})}},35473(e,n,t){t.d(n,{A:()=>p});var o=t(48538),r=t(92394),a=t(50119),i=t(75851),s=t(79894),l=t(23637),c=(t(9950),t(41413)),d=t(47794),u=t(44414);const p=()=>{const e=(0,a.a$)(),n=((0,c.Zp)(),(0,l.A)().getUserDetail),t=(0,a.GV)(s.Nd);return(0,u.jsxs)("div",{className:"register--success",children:[(0,u.jsx)("p",{className:i.A.h1,children:e("register.step-5.title")}),(0,u.jsx)("p",{className:"sub-title",children:e("register.step-5.sub-title")}),(0,u.jsx)(o.A,{type:"primary",className:"btn-start",onClick:async()=>{(await r.A.login({email:(null===t||void 0===t?void 0:t.email)||"",password:(null===t||void 0===t?void 0:t.password)||"",twoFaCode:null,platform:"WEB"})).ok&&(n().catch((()=>{})),(0,d.q)())},children:e("register.step-5.btn-start")})]})}},31395(e,n,t){t.d(n,{A:()=>I});var o=t(95443),r=t(97e3),a=t(92394),i=t(68895),s=t(50119),l=t(69565),c=t(79894),d=t(20266),u=t(15803),p=t(46413),m=t(38981),h=t(9950),v=t(41413),f=t(83696),g=t(72004),b=t(17118),A=t
1(24378),C=t(35046),y=t(26308),x=t(75851),j=t(89468),N=t(55361),w=t(44414);const O=e=>{var n;let t=e.email,o=e.setSendPhoneNumber;const a=(0,s.jL)(),l=(0,s.a$)(),u=f.A.useForm(),p=(0,r.A)(u,1)[0],m=(0,d.A)(),v=(0,s.GV)(c.Nd),O=null!==(n=(0,s.GV)(j.OW))&&void 0!==n?n:[],S=(0,h.useState)(y.ig),P=(0,r.A)(S,2),R=P[0],E=P[1],_=(0,h.useState)(!1),k=(0,r.A)(_,2),V=k[0],F=k[1],I=(0,h.useState)(!1),L=(0,r.A)(I,2),T=L[0],D=L[1],$=(0,h.useState)(!0),B=(0,r.A)($,2),G=B[0],q=B[1];return(0,w.jsx)("div",{className:"register",children:(0,w.jsxs)(C.A,{className:"register__form",name:"verifyAccount",initialValues:{phoneNumber:"",phoneCode:""},onFinish:async e=>{let n=e.phoneNumber;D(!0);const r=await i.A.sendPhoneNumber({phoneNumber:"".concat(R.phoneCode).concat(n),email:t,countryId:R.id}),s=r.ok,l=r.error;var d;if(D(!1),l)return"user.validation.invalid"===(null===(d=l.fieldErrors)||void 0===d?void 0:d.phoneNumber[0])&&F(!0),void m(l);s&&(a((0,c.xg)({email:(null===v||void 0===v?void 0:v.email)||"",phoneNumber:"".concat(R.phoneCode).concat(n),phoneCode:R.phoneCode,type:"phone",password:(null===v||void 0===v?void 0:v.password)||""})),o(!0))},form:p,onFieldsChange:()=>{q(Boolean(p.getFieldError("phoneNumber").length))},children:[(0,w.jsx)(b.A,{className:"input-primary",label:l("input.mobilePhone.label2"),placeholder:l("input.mobilePhone.placeholder"),name:"phoneNumber",onChangePhone:()=>F(!1),getPhoneCode:e=>{E(e)},phoneCodeNumber:R,validateStatus:V?"error":"success",help:V?(0,w.jsx)("span",{style:{color:"#fc218a"},children:l("input.validation.mobilePhone.pattern")}):null,rules:[{required:!0,message:l("input.validation.mobilePhone.required")},{validator:(e,n)=>{const t=null===O||void 0===O?void 0:O.find((e=>R.phoneCode===e.phoneCode));return n&&!(0,N.g)(n||"",((null===t||void 0===t?void 0:t.iso)||"").trim())?Promise.reject(new Error(l("input.validation.mobilePhone.pattern"))):Promise.resolve()}}],countries:O}),(0,w.jsx)(A.A,{name:l("common.send-code"),type:"primary",formFieldStyle:{marginTop:"10px"},className:(0,g.A)("br-30",x.A.p3),buttonClassName:"br-30 bd-none w-100-p button-secondary ".concat(x.A.p1," ").concat(T||G?"btn--disabled":""),disabled:T||G})]})})};var S=t(68765),P=t(18386),R=t(59868);const E={email:"",phoneNumber:"",phoneCode:"",type:"email",password:""},_=e=>{let n=e.onSubmit,t=e.initialValues,o=e.typeCode,a=e.userRegister,i=void 0===a?E:a,l=e.onResendEmail,c=e.onResendPhone,d=e.handleFinishCount,u=e.onChangeOtpCode,p=e.otpCode,m=e.resend,v=void 0!==m&&m,b=e.currentResend,y=void 0===b?0:b,j=e.maxResend,N=void 0===j?0:j;const O=(0,s.a$)(),_=f.A.useForm(),k=(0,r.A)(_,1)[0];(0,P.A)(k,O);const V=(0,h.useState)({}),F=(0,r.A)(V,2)[1];(0,h.useEffect)((()=>{F({})}),[]);const I=(0,h.useMemo)((()=>6!==(null===p||void 0===p?void 0:p["email"===o?"emailVerifyCode":"phoneVerifyCode"].length)),[p,o]);return(0,w.jsxs)(C.A,{className:"verify-account__form",name:"verifyAccount",initialValues:t,onFinish:e=>{n(o,e)},form:k,children:[(0,w.jsx)(S.A,{name:"".concat(o,"VerifyCode"),className:"verification-code__field--lib",label:O("input.verificationCode.".concat(o,"Label2"),{0:(L=i,"email"===o?(0,R.nq)(L.email):(0,R.OV)(L.phoneNumber,L.phoneCode))}),placeholder:O("input.verificationCode.placeholder"),handleFinishCount:d,onSendCode:()=>{"email"===o?l():c()},type:o,autoSend:!1,onChangeOtpCode:e=>u("".concat(o,"VerifyCode"),e),isRegister:!0,reSend:v,currentResend:y,maxResend:N}),(0,w.jsx)(A.A,{name:O("button.submit"),type:"primary",buttonClassName:(0,g.A)("br-30","bd-none","w-100-p","h-42",x.A.p1,{"button-disable-secondary":I,"button-secondary":!I}),disabled:I})]});var L};var k=t(56861),V=t(47794);const F={emailVerifyCode:"",phoneVerifyCode:""},I=e=>{var n;let t=e.onNext;const f=(0,s.jL)(),g=(0,s.a$)();(0,m.A)(g("title.verifyAccountPage"));const b=(0,u.A)().i18n,A=((0,v.Zp)(),(0,s.GV)(c.Nd)),C=A||{email:"",phoneNumber:"",type:"email",phoneCode:"",password:""},y=C.email,x=C.phoneNumber,N=C.type,S=C.phoneCode,P=C.password,R=(0,d.A)(),E=(0,h.useState)("email"),I=(0,r.A)(E,2),L=I[0],T=I[1],D=(0,h.useState)(F),$=(0,r.A)(D,2),B=$[0],G=$[1],q=(0,h.useState)(!1),M=(0,r.A)(q,2),H=M[0],U=M[1],Z=(0,h.useState)(0),W=(0,r.A)(Z,2),X=W[0],z=W[1],Y=(0,h.useState)(0),J=(0,r.A)(Y,2),Q=J[0],K=J[1],ee=(0,h.useState)(!1),ne=(0,r.A)(ee,2),te=ne[0],oe=ne[1],re=null!==(n=(0,s.GV)(j.OW))&&void 0!==n?n:[],ae=(e,n)=>{G((0,o.A)((0,o.A)({},B),{},{[e]:n}))},ie=async()=>
1{if(A){const e=await a.A.sendEmailOtp({email:y}),n=e.ok,t=e.body,o=e.error;n&&t?(oe(!0),z(Number(null===t||void 0===t?void 0:t.maxResendCount)||0),K(Number(null===t||void 0===t?void 0:t.currentResendCount)||0)):(oe(!1),"user.error.max-resend-count-email-otp"===(null===o||void 0===o?void 0:o.message)?(0,l.Hm)({title:g("user.error.max-resend-count-email-otp"),message:g("user.error.max-resend-count-email-otp")}):R(o))}};(0,h.useEffect)((()=>{T(N)}),[N]);const se=async()=>{if(A){var e,n;const t=await a.A.sendPhoneOtp({email:y,phoneNumber:x,countryId:null!==A&&void 0!==A&&A.phoneCode&&null!==(e=null===re||void 0===re||null===(n=re.find((e=>(null===A||void 0===A?void 0:A.phoneCode)===e.phoneCode)))||void 0===n?void 0:n.id)&&void 0!==e?e:0}),o=t.ok,r=t.body,i=t.error;o?(oe(!0),z(Number(null===r||void 0===r?void 0:r.maxResendCount)||0),K(Number(null===r||void 0===r?void 0:r.currentResendCount)||0)):"user.error.max-resend-count-phone-otp"===(null===i||void 0===i?void 0:i.message)?(0,l.Hm)({message:g("user.error.max-resend-count-email-otp"),title:g("user.error.max-resend-count-email-otp")}):R(i)}},le=(e,n)=>{var t;if(null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.count){const t=Number(e.data.count);(0,l.Hm)({message:g("".concat(t>=5?"user.error.invalid-otp-five-times":"user.error.invalid-".concat(n,"-otp-less-than-five-times")),{countError:t,type:n}),title:g("user.error.invalid-otp-five-times-title"),onOk:()=>{t>=5&&(0,V.q)()}})}else{if("user.error.token-not-found"===(null===e||void 0===e?void 0:e.message))return void(0,l.Hm)({message:g("user.error.".concat(n,"-token-not-found")),title:g("user.error.token-not-found-title")});R(e)}},ce=(0,p.A)((async(e,n)=>{if("email"===e){const n=await i.A.verifyEmailOtp({emailVerifyCode:B.emailVerifyCode,email:y,languageCode:b.language}),t=n.ok,o=n.error;t&&(f((0,c.xg)({email:y,phoneNumber:x,phoneCode:S,type:"phone",password:P})),oe(!1),z(0),K(0)),o&&("user.error.registration"===(null===o||void 0===o?void 0:o.message)?(0,l.Hm)({message:o.detail}):le(o,e))}if("phone"===e){const n=await i.A.verifyPhoneOtp({phoneVerifyCode:B.phoneVerifyCode,phoneNumber:x,email:y,languageCode:b.language}),o=n.ok,r=n.error;o&&(oe(!1),z(0),K(0),(0,k.n)({event:"registrationSuccess"}),t(5)),r&&("user.error.registration"===(null===r||void 0===r?void 0:r.message)?(0,l.Hm)({message:r.detail}):le(r,e))}}));return(0,w.jsxs)(h.Fragment,{children:["email"===L&&(0,w.jsx)("div",{className:"verify-account",children:(0,w.jsx)(_,{typeCode:L,onSubmit:ce,initialValues:F,userRegister:A,onResendEmail:ie,onResendPhone:se,otpCode:B,onChangeOtpCode:ae,resend:te,currentResend:Q,maxResend:X})}),"phone"===L&&H&&(0,w.jsx)(_,{typeCode:L,onSubmit:ce,initialValues:F,userRegister:A,onResendEmail:ie,onResendPhone:se,otpCode:B,onChangeOtpCode:ae,resend:te,currentResend:Q,maxResend:X}),"phone"===L&&!H&&(0,w.jsx)(O,{email:y,setSendPhoneNumber:e=>U(e)})]})}},18386(e,n,t){t.d(n,{A:()=>s});var o=t(50119),r=t(20880),a=t(9950),i=t(15803);const s=(e,n)=>{const t=(0,o.jL)(),s=(0,i.A)().i18n;(0,a.useEffect)((()=>{const n=e.getFieldsError().filter((e=>e.errors.length)).map((e=>e.name));n.length&&n.forEach((n=>e.validateFields([n])));t((0,r.Xq)())}),[s.language])}},12756(e,n,t){t.d(n,{A:()=>c});var o=t(50119),r=t(79894),a=t(9950),i=t(41413),s=t(47794),l=t(15803);const c=()=>{const e=(0,i.Zp)(),n=(0,o.GV)(r.Ep),t=(0,o.GV)(r.xu);(0,a.useEffect)((()=>{n&&t&&(window.location.href=(0,s.g)("/",(0,l.q)(t.language)))}),[n,t,e])}},46413(e,n,t){t.d(n,{A:()=>i});var o=t(50119),r=t(20880),a=t(9950);const i=e=>{const n=(0,o.jL)();return(0,a.useCallback)((async function(){n((0,r.TG)(!0)),await e(...arguments),n((0,r.TG)(!1))}),[n,e])}},38981(e,n,t){t.d(n,{A:()=>r});var o=t(9950);const r=e=>{(0,o.useEffect)((()=>{const n=document.title;return document.title=e,()=>{document.title=n}}))}},59868(e,n,t){t.d(n,{OV:()=>i,Q0:()=>r,R_:()=>l,nq:()=>s});var o=t(19760);const r=e=>{var n,t;return"".concat(null===(n=e.originalString)||void 0===n?void 0:n.slice(0,e.start)).concat(e.replaceBy).concat(null===(t=e.originalString)||void 0===t?void 0:t.slice(-e.end))},a=e=>{var n,t;return"".concat(null===(n=e.originalString)||void 0===n?void 0:n.slice(0,e.start)).concat(e.replaceBy).concat(null===(t=e.originalString)||void 0===t?void 0:t.slice(e.end))},i=(e,n)=>e?a({start:6,end:e.length-2||0,originalString:n?"+".concat(n," ").concat((0,o.Y$)(e,n)):"+".concat(e.slice(0,2)," ").concat(e.slice(2)),replaceBy:"***"}):null,s=e=>e?"".concat(a({start:2,end:e.split("@")[0].length||0,originalString:e.split("@")[0],replaceBy:"***"}),"@").concat(e.split("@")[1]):null,l=e=>"".concat(e.slice(0,25),"...")},19760(e,n,t){t.d(n,{C1:()=>s,Oe:()=>a,Y$:()=>i});var o=t(46591),r=t(8332);const a=(e,n)=>null!==e&&void 0!==e&&e.startsWith(n)?e:"".concat(n).concat(e),i=(e,n)=>{const t=new RegExp("^(".concat(n,")"),"g");return t.test(e)?null===e||void 0===e?void 0:e.toString().replace(t,""):e},s=e=>{try{var n;
1const t=(0,o.L)("+".concat(e));return(0,r.G)(t.nationalNumber,null!==(n=null===t||void 0===t?void 0:t.country)&&void 0!==n?n:"TH","INTERNATIONAL")}catch(t){return e}}},55361(e,n,t){t.d(n,{g:()=>v});var o=t(97631),r=t(8032),a=t(45650),i=t(94074),s=t(23615);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){d(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){m(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function h(){var e=(0,r.A)(arguments),n=e.text,t=e.options,o=e.metadata,l=function(e,n,t){n&&n.defaultCountry&&!(0,s.J_)(n.defaultCountry,t)&&(n=c(c({},n),{},{defaultCountry:void 0}));try{return(0,a.A)(e,n,t)}catch(o){if(!(o instanceof i.A))throw o}}(n,t=p(p({},t),{},{extract:!1}),o);return l&&l.isValid()||!1}function v(){return(0,o.A)(h,arguments)}}}]);

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.