1import{l as F,r as h,_ as I,n as O,ap as _,m as n,o as C,q as g,A as e,O as x,bq as k,L as t,S as u,J as w}from"./index.534c4205.1790690530181.js";import{r as E}from"./agentation.fa054783.1790690530181.js";import{M as N}from"./index.feed32c7.1790690530181.js";import{m as M}from"./selector.4b536653.1790690530181.js";import B from"./text.0f2973d2.1790690530181.js";import{R as q}from"./partner-text-flicker.22d01ffb.1790690530181.js";import{U as W,T as d,L as U}from"./login-register-footer.420efe14.1790690530181.js";import{c as r,R as V}from"./register.controller.8bc829bb.1790690530181.js";import D from"./transaction-button.selector.c21a576e.1790690530181.js";import{S as G}from"./sliderRecaptcha-popup.selector.032f71a7.1790690530181.js";import{w as H}from"./withTranslation.b2d252d8.1790690530181.js";import{T as j}from"./Translation.a9e92b81.1790690530181.js";import"./warning.883c7a3c.1790690530181.js";import"./index.50f8ee62.1790690530181.js";import"./index.c8eb6167.1790690530181.js";import"./libphonenumber.9fd0febb.1790690530181.js";import"./LoadingTopBar.ea97e958.1790690530181.js";import"./store.cfe4e03b.1790690530181.js";import"./floatingNotification.constant.27687fe7.1790690530181.js";import"./dayjs.min.59f5b2ae.1790690530181.js";import"./matchPredictionModules.cb4752d8.1790690530181.js";import"./oddsFeedModules.512216a5.1790690530181.js";import"./promotionModules.b5b4a32a.1790690530181.js";import"./index.5c6fdf47.1790690530181.js";import"./react-datepicker.min.cedd102f.1790690530181.js";import"./index.9459aaa0.1790690530181.js";import"./password-strength.de87b88e.1790690530181.js";import"./bank-icon.cc916dbc.1790690530181.js";import"./image-helper.4edc76d2.1790690530181.js";import"./date-time-picker.180cb5c0.1790690530181.js";import"./date-util.d9d3d4d7.1790690530181.js";import"./translation-helper.ea90f9c1.1790690530181.js";import"./Turnstile.a63ed8e2.1790690530181.js";import"./index.c96434b3.1790690530181.js";import"./phone-otp-util.e6a485cc.1790690530181.js";import"./index.0582cbb2.1790690530181.js";import"./register-util.1b8d6852.1790690530181.js";import"./telegram-util.eb79b7f8.1790690530181.js";import"./text.c15d73d7.1790690530181.js";import"./transaction-util.4ca9b7ff.1790690530181.js";import"./deposit.action.ce0b8eda.1790690530181.js";import"./side-contact-util.3b146572.1790690530181.js";import"./miniLazyComponent.3254cd56.1790690530181.js";const z=h.lazy(()=>I(()=>import("./Turnstile.a63ed8e2.1790690530181.js"),["assets/10.9.30/Turnstile.a63ed8e2.1790690530181.js","assets/10.9.30/index.534c4205.1790690530181.js","assets/10.9.30/index.c96434b3.1790690530181.js","assets/10.9.30/agentation.fa054783.1790690530181.js","assets/10.9.30/agentation.06ce37f5.1790690530181.css","assets/10.9.30/Turnstile.7c23de4c.1790690530181.css"])),p=window.isAffiliate?w.AFF_REGISTRATION:w.REGISTRATION;class K extends h.Component{constructor(s){super(s),r.init(this)}async componentDidMount(){O.loadCustomTranslation("register",{props:this.props,setState:({customTranslationObj:s})=>{this.setState({customTranslationObj:{...s}})}}),await r.initCompSettings(),r.initPortalSettings(),r.getCountryInfo()}componentWillUnmount(){this.setState=()=>{},this.props.dispatch(_({token:"",moduleType:p}))}componentDidUpdate(s){!s.visible&&this.props.visible&&(r.getCountryInfo(),r.clearAll())}customRegisterLayout=()=>n(n(this.props?.portal?.settings?.registerConfiguration?.customRegisterLayout));hideAmbassador=()=>{let s=!1;const i=this.customRegisterLayout();return typeof i?.hideAmbassador=="boolean"&&(s=i.hideAmbassador),s};ambassadorSectionPosition=()=>{let s="bottom";const i=this.customRegisterLayout();
1return typeof i?.ambassadorSectionPosition=="string"&&(s=i.ambassadorSectionPosition),s};onCloseModal=()=>{const s=this.customRegisterLayout();this.props.dispatch(C.showCustomRegisterModal(!1)),s?.hybridRegister===!0&&this.props.history.replace("/home")};render(){const{customTranslationObj:s,passwordReveal:i,fields:m}=this.state,{visible:b,portal:c,user:f}=this.props,l=this.customRegisterLayout(),y=this.hideAmbassador(),v=this.ambassadorSectionPosition(),P=n(g(this.props.portal,"settings.registerConfiguration.bypassOnBlur"))||!1,R=n(g(this.props.portal,"settings.registerConfiguration.hideEmail"))||!1,{hideConfirmPassword:S}=this.state.compSettings||{},{settings:{passwordMinLimit:T=6}={}}=c||{},L=this.props?.authSettingsReducer?.moduleData?.[p]?.turnstileEnabled&&!this.props?.turnstileReducer?.turnstileToken?.[p];if(b==="success")return e.jsx(j,{children:()=>e.jsxs(N,{onRequestClose:this.onCloseModal,overlayClassName:"custom-user-login-modal-overlay",className:"custom-user-login-modal custom-register-success-modal",isOpen:b,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,ariaHideApp:!1,children:[e.jsx("div",{className:"custom-user-login-modal-title",children:e.jsx("div",{className:"right",children:e.jsx(x,{className:"custom-user-login-modal-close-btn",src:"/public/html/images/home_img/close-btn.svg",onClick:this.onCloseModal})})}),e.jsx("p",{children:s?.registrationSuccessful??"Registration Successful."}),e.jsx("div",{className:"transaction-button-section",children:e.jsx(D,{containerClassName:"reg-btn-container",fundProps:{className:"reg-success-deposit-btn",buttonText:s&&s.successBtn?s.successBtn:k(this.props.t("global:global.menu.account.deposit","")),onClickFunction:()=>{r.redirectToDepositPage()},disabled:f&&(!f.isLogin||!f.account)}})})]})});const A={showSliderCaptcha:this.state.showSliderCaptcha,triggerV3token:this.state.triggerV3token};return e.jsx(j,{children:o=>e.jsxs(N,{onRequestClose:this.onCloseModal,overlayClassName:"custom-user-login-modal-overlay",className:"custom-user-login-modal",isOpen:b,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,ariaHideApp:!1,children:[e.jsx("div",{className:"custom-user-login-modal-title",children:e.jsx("div",{className:"right",children:e.jsx(x,{className:"custom-user-login-modal-close-btn",src:"/public/html/images/home_img/close-btn.svg",onClick:this.onCloseModal})})}),e.jsxs("div",{className:"user-login-form",children:[e.jsxs("div",{className:"user-login-label-container user-login-form-merchant",children:[e.jsx(t,{className:"user-login-form-merchant-logo",src:n(g(l,"merchantLogo"))}),window.isAffiliate&&e.jsx("div",{className:"affiliate-title",children:e.jsx(B,{textKey:"global:footer.affiliate",children:o("global:footer.affiliate","Affiliate")})})]}),!y&&v==="top"&&e.jsx(W,{className:"user-login-ambassador-section-top",customTranslationObj:s,customLoginLayout:l}),l?.showBenefitsBanner&&e.jsx(q,{customTranslationObj:s}),e.jsx("div",{className:`user-login-container-bottom-section ${g(l,"ambassador.banner")?"half-width":""}`,children:e.jsxs("div",{className:"user-login-input-section",children:[e.jsx(d,{debounce:!0,containerClassName:"user-login-label-container",labelClassName:"user-login-label",requiredClassName:"user-login-label-compulsory",inputClassName:"form-control-login",icon:e.jsx(t,{src:"/public/html/images/home_img/username-icon.png",className:"user-login-label-icon"}),label:o("global:global.form.username","Username"),id:"username",required:!0,name:"username",value:m.username,placeholder:c.settings&&c.settings.features&&c.settings.features.allowPhoneLogin?o("global:global.form.usernamePhone-placeholder","Username / Phone no.").toUpperCase():o("global:global.form.username-placeholder","Username"),onChange:a=>{r.handleFieldChanged(a,"username")},onBlurCapture:a=>{r.handleFieldChanged(a,"username")},"data-name":"username"}),e.jsx("p",{className:"standard-error-validation text-danger",children:e.jsx("span",{children:o(this.state.errors?.username)})}),e.jsx(d,{debounced:!0,containerClassName:"user-login-label-container",labelClassName:"user-login-label",requiredClassName:"user-login-label-compulsory",inputClassName:"form-control-login",icon:e.jsx(t,{src:"/public/html/images/home_img/password-icon.png",className:"user-login-label-icon"}),label:o("global:global.form.newpassword-placeholder","Password"),required:!0,name:"password",id:"password",value:m.password,type:i.password?"text":"password",placeholder:o("global:global.form.newpassword-placeholder","Password"),onChange:a=>{r.handleFieldChanged(a,"password")},onBlur:a=>{r.handleFieldChanged(a,"password")},"data-name":"password",endAdornment:e.jsx(h.Fragment,{children:i?.password?e.jsx(u,{category:"SVGReactIcons",width:"1em",height:"1em",name:l?.icons?.showPassword||"AiOutlineEye",className:"standard-password-eye reveal",onClick:a=>{a.stopPropagation(),r.togglePasswordReveal("password")}}):e.jsx(u,{category:"SVGReactIcons",width:"1em",height:"1em",name:l?.icons?.hidePassword||"AiOutlineEyeInvisible",className:"standard-password-eye",onClick:a=>{a.stopPropagation(),r.togglePasswordReveal("password")}})})}),e.jsx("p",{className:"standard-error-validation text-danger",children:e.jsx("span",{children:o(this.state.errors?.password,{min:T})})}),!S&&e.jsxs(e.Fragment,{children:[e.jsx(d,{debounced:!0,containerClassName:"user-login-label-container",labelClassName:"user-login-label",requiredClassName:"user-login-label-compulsory",inputClassName:"form-control-login",icon:e.jsx(t,{src:"/public/html/images/home_img/password-icon.png",className:"user-login-label-icon"}),label:o("global:global.form.confirmpassword-placeholder","Confirm Password"),required:!0,id:"confirmPassword",name:"confirmPassword",value:m.confirmPassword,type:i.confirmPassword?"text":"password",placeholder:o("global:global.form.confirmpassword-placeholder","Confirm Password"),onChange:a=>{r.handleFieldChanged(a,"confirmPassword")},onBlur:a=>{r.handleFieldChanged(a,"confirmPassword")},"data-name":"confirmPassword",endAdornment:e.jsx(h.Fragment,{children:i?.confirmPassword?e.jsx(u,{category:"SVGReactIcons",width:"1em",height:"1em",name:l?.icons?.showPassword||"AiOutlineEye",className:"standard-password-eye reveal",onClick:a=>{a.stopPropagation(),r.togglePasswordReveal("confirmPassword")}}):e.jsx(u,{category:"SVGReactIcons",width:"1em",height:"1em",name:l?.icons?.hidePassword||"AiOutlineEyeInvisible",className:"standard-password-eye",onClick:a=>{a.stopPropagation(),r.togglePasswordReveal("confirmPassword")}})})}),e.jsx("p",{className:"standard-error-validation text-danger",children:e.jsx("span",{children:o(this.state.errors?.confirmPassword)})})]}),e.jsx(d,{debounced:!0,containerClassName:"user-login-label-container",labelClassName:"user-login-label",requiredClassName:"user-login-label-compulsory",inputClassName:"form-control-login",icon:e.jsx(t,{src:"/public/html/images/home_img/fullName-icon.png",className:"user-login-label-icon"}),label:o("global:global.form.fullname","Full Name"),required:!0,id:"fullname",name:"fullname",value:m.fullname,placeholder:o(s?.fullNamePlaceholder,s?.fullNamePlaceholder)||o(s?.fullName,s?.fullName)||o("global:global.form.fullname","Full Name"),onChange:a=>{r.handleFieldChanged(a,"fullname")},onBlur:a=>{r.handleFieldChanged(a,"fullname")},"data-name":"fullname"}),e.jsx("p",{className:"standard-error-validation text-danger",children:e.jsx("span",{children:o(this.state.errors?.fullname)})}),!R&&e.jsxs(e.Fragment,{children:[e.jsx(d,{debounced:!0,containerClassName:"user-login-label-container",labelClassName:"user-login-label",requiredClassName:"user-login-label-compulsory",inputClassName:"form-control-login",icon:e.jsx(t,{src:"/public/html/images/home_img/email-icon.png",className:"user-login-label-icon"}),label:o("global:global.form.email","Email"),name:"email",id:"email",value:m.email,placeholder:o("global:global.form.email-placeholder","Email"),onChange:a=>{r.handleFieldChanged(a,"email")},onBlurCapture:a=>{r.handleFieldChanged(a,"email",!1,!0)},"data-name":"email"}),e.jsx("p",{className:"standard-error-validation text-danger",children:e.jsx("span",{children:o(this.state.errors?.email)})})]}),e.jsx(V,{standardInputCol:"standard-form-col-100",handleFieldChanged:r.handleFieldChanged.bind(r),fields:m,labelName:o("global:global.form.phone","Telephone Number"),fieldName:"phone",customPlaceholderTrans:"phonePlaceholder",placeholderName:o("global:global.form.phone-placeholder","Mobile Number"),isMandatory:!0,inputType:"phone",id:"phone",customSelectClassName:"standard-form-col-30",disableTelcodeDropdown:!0,hideSearchTelCode:!0,bypassOnBlur:P}),e.jsx("p",{className:"standard-error-validation text-danger",children:e.jsx("span",{children:o(this.state.errors?.phone)})}),e.jsx(z,{moduleType:p,onVerifyCallback:a=>{this.handleFieldChanged(a,"captchaToken")}}
1),typeof n(l?.customRegisterWarningImage)=="string"&&e.jsx("div",{className:"user-register-warning-img",children:e.jsx(t,{src:n(l.customRegisterWarningImage)})}),(s?.registerWarning||s?.registerWarningWithIcon)&&e.jsx("div",{className:"user-register-warning-msg",children:s?.registerWarningWithIcon?e.jsxs(e.Fragment,{children:[e.jsx(t,{src:"/public/html/images/icon/alert.png",className:"user-register-warning-icon",alt:"alert"}),e.jsx("span",{dangerouslySetInnerHTML:{__html:o(s?.registerWarningWithIcon,{url:o(s?.registerWarningUrl)||""})}})]}):e.jsx(e.Fragment,{children:o(s?.registerWarning)||""})}),e.jsx("div",{className:"user-login-btn-group-upper",children:e.jsx("div",{className:"user-login-btn-container",children:e.jsx("button",{"aria-label":"login",className:"user-register-btn header-btn",onClick:()=>{r.handleSubmit()},disabled:!this.state.isFormValid||this.state.disabledButton||L,children:s?.registerButton||o("global:global.menu.account.register","Register")})})})]})})]}),l?.showPromptLogin&&e.jsxs("div",{className:"standard-form-field prompt-login-msg",children:[o("register:register.form.adyHaveAcc","Already have an account?"),e.jsx("div",{className:"prompt-login-link",onClick:()=>{this.props.dispatch(C.showCustomRegisterModal(!1)),this.props.history.location.pathname!=="/login"&&this.props.history.push("/login")},children:o("login:login.title","Login")})]}),l?.footer?.image&&e.jsx(U,{footer:l.footer}),this.state.showSliderCaptcha&&e.jsx(G,{...A})]})})}}const Be=F.connect(M)(H(["register","inputHelpBlock","login","password"])(E.withRouter(K)));export{Be as default};
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.