(self.webpackChunk=self.webpackChunk||[]).push([[8368],{52602:(e,r,n)=>{"use strict";n.d(r,{K:()=>A});var t=n(82762),a=n(35104),o=n(96e3),i=n(16575),s=n(85782),l=n(3601),u=n(56753);const c=s._I.getDateISOString(s._I.getEligibleDateOfBirth(a.NZ.defaults.minimalAllowedAge)),d=s._I.determineLocalDateFormat(),m=l.z2.email(),p=({value:e,tkey:r})=>({value:e,text:(0,o.Ag)(r)}),g=()=>[{value:"Male",tkey:"FORM.MALE"},{value:"Female",tkey:"FORM.FEMALE"}].map(p),A=({name:e,form:r,disabled:n,isEditMode:a,isRequired:s=!1,emailAsyncValidator:A,hidePhonePrefix:O=!1,allowEmailAsyncValidation:h=!0,allowValidationOnInit:E=!1,onFocus:b,onClick:N,onBlur:R})=>{const{submitted:I,touched:y,errors:F,hasErrorsOnInit:T,changeValue:M,getPropError:f,setTouched:S,touchAndChangeProp:_}=r,C=r.values,P=y[e],k=f(e),v=I||P||a&&T,L=r=>({type:t.FBElementType.Input,name:e,label:(0,o.Ag)(r),labelProps:{required:s},props:{maxLength:40,error:v&&k,disabled:n,onClick:N,onFocus:b}}),D=(r,a)=>({type:t.FBElementType.Select,name:e,label:(0,o.Ag)(r),labelProps:{required:s},props:{options:a,placeholder:(0,o.Ag)("FORM.SELECT"),native:!0,arrow:!0,disabled:n,error:v&&k,onClick:N,onFocus:b}}),x=r=>({type:t.FBElementType.Password,name:e,label:(0,o.Ag)(r),labelProps:{required:s},props:{error:v&&k,onClick:N,onFocus:b,onBlur:R}});switch(e){case"firstName":return L("FORM.FIRST_NAME");case"lastName":return L("FORM.LAST_NAME");case"otherNames":return L("FORM.OTHER_NAMES");case"promoCode":return{type:t.FBElementType.Input,name:e,label:(0,o.Ag)("FORM.PROMO_CODE"),labelProps:{required:s},props:{maxLength:20,error:v&&k,disabled:n,onClick:N,onFocus:b}};case"dateOfBirth":return{type:t.FBElementType.Input,name:e,label:(0,o.Ag)("FORM.DOB"),labelProps:{required:s},props:{type:"date",min:l.RJ,maxLength:10,placeholder:d,max:c,error:v&&k,disabled:n,onClick:N,onFocus:b}};case"gender":return D("FORM.GENDER",g());case"identificationNumber":return{type:t.FBElementType.Input,name:e,label:(0,o.Ag)("FORM.ID_NUMBER"),labelProps:{required:s},props:{maxLength:20,error:v&&k,disabled:n,onClick:N,onFocus:b}};case"identificationType":return D("ID Type",[{value:"Voters ID",tkey:"FORM.VOTERS_ID"},{value:"Ghana Card",tkey:"FORM.GH_CARD"},{value:"SSNIT ID",tkey:"FORM.SSNIT_ID"},{value:"Biometric Passport",tkey:"FORM.PASSPORT"},{value:"Drivers Licence",tkey:"FORM.DRIVERS_LICENSE"}].map(p));case"nationality":return{name:e,type:t.FBElementType.Select,render:(0,u.tZ)(i.l4,{form:r,showActiveCountryFirst:!a,required:s,disabled:n,validateOnInit:E,onClick:N,onFocus:b})};case"email":return{type:t.FBElementType.Input,name:e,label:(0,o.Ag)("FORM.EMAIL"),labelProps:{required:s},props:{maxLength:60,disabled:n,onChange:(e,r)=>{a?_(e,r):M(e,r),h&&(A.clearError(),e&&!m(e)?A.validate(e):A.cancel())},error:v&&(k||(null==A?void 0:A.error)),onClick:N,onFocus:b}};case"phone":return{name:e,type:t.FBElementType.Input,render:(0,u.tZ)(i.yW,{name:e,value:C.phone,onChange:e=>{M(e,"phone")},onBlur:()=>{S("phone")},disabled:n,error:v&&F.phone,required:s,hidePrefix:O,onClick:N,onFocus:b})};case"address":return{type:t.FBElementType.Input,name:e,label:(0,o.Ag)("FORM.ADDRESS"),labelProps:{required:s},props:{disabled:n,maxLength:50,error:v&&k,onClick:N,onFocus:b}};case"city":return{type:t.FBElementType.Input,name:e,label:(0,o.Ag)("FORM.CITY"),labelProps:{required:s},props:{disabled:n,maxLength:50,error:v&&k,onClick:N,onFocus:b}};case"zip":return{type:t.FBElementType.Input,name:e,label:(0,o.Ag)("FORM.ZIP"),labelProps:{required:s},props:{disabled:n,maxLength:10,error:v&&k,isNumericInputMode:!0,onClick:N,onFocus:b}};case"country":return{type:t.FBElementType.Input,name:e,label:(0,o.Ag)("FORM.COUNTRY"),labelProps:{required:s},props:{disabled:n,onClick:N,onFocus:b}};case"language":return{type:t.FBElementType.Select,name:e,render:(0,u.tZ)(i.V1,{form:r,required:s,disabled:n,onClick:N,onFocus:b})};case"state":return{name:e,type:t.FBElementType.Select,render:(0,u.tZ)(i.nY,{form:r,required:s,disabled:n,validateOnInit:E,onClick:N,onFocus:b})};case"password":return x("FORM.PASSWORD");case"confirmPassword":return x("FORM.CONFIRM_PASSWORD");case"taxNumber":return{name:e,type:t.FBElementType.Input,render:(0,u.tZ)(i.zd,{value:C.taxNumber,onChange:e=>{a?_(e,"taxNumber"):M(e,"taxNumber")},onBlur:()=>{S("taxNumber")},disabled:n,error:v&&F.taxNumber,required:s,onClick:N,onFocus:b})};default:return console.warn(`Form element "${e}" not found`),null}};A.getGenderOptions=g},68689:(e,r,n)=>{"use strict";n.d(r,{Av:()=>d,G1:()=>m,QE:()=>p,b2:()=>g,n:()=>A,Ei:()=>O,fd:()=>b});var t=n(58059),a=n(82762),o=n(35104),i=n(91193),s=n(96e3),l=n(85782),u=n(3601);const c=o.NZ.defaults.phonePrefix,d=(0,l.Q5)({year:"numeric",month:"2-digit",day:"2-digit"},s.b$.current)(new Date(u.RJ),(e=>`${e.day}/${e.month}/${e.year}`)),m=e=>{const r={};return e.forEach((e=>{r[e]=!e.includes("terms.")&&("language"===e?s.b$.current:"")})),r};function p(e=[],r=[]){const n={phone:[u.z2.phoneNumber()],taxNumber:[u.z2.taxNumber()],state:[],password:[u.z2.password()],confirmPassword:[u.z2.matchWith("password",(0,s.Ag)("VALIDATION.SAME_PASS_AGAIN"))],promoCode:[u.z2.maxLength(20,(0,s.Ag)("FORM.PROMO_CODE"),(0,s.Ag)("VALIDATION.MAX_LENGTH"))],dateOfBirth:[u.A4.isDate(),u.A4.eligibleAge(),u.A4.minDate(u.RJ,(0,s.Ag)("SIGN_UP.DATE_VALIDATION",{date:d}))]};return E(n,r),(0,l.ei)(n,e)}function g(e=[],r=[]){const n={firstName:[u.z2.minLength(2,(0,s.Ag)("FORM.FIRST_NAME")),u.z2.userName()],lastName:[u.z2.minLength(2,(0,s.Ag)("FORM.LAST_NAME")),u.z2.userName()],otherNames:[u.z2.minLength(2,(0,s.Ag)("FORM.OTHER_NAMES")),u.z2.userName()],email:[u.z2.email()],phone:[u.z2.phoneNumber()],dateOfBirth:[u.A4.isDate(),u.A4.eligibleAge(),u.A4.minDate(u.RJ,(0,s.Ag)("SIGN_UP.DATE_VALIDATION",{date:d}))],promoCode:[u.z2.maxLength(20,(0,s.Ag)("FORM.PROMO_CODE"),(0,s.Ag)("VALIDATION.MAX_LENGTH"))],address:[u.z2.minLength(2,(0,s.Ag)("FORM.ADDRESS"))],identificationType:[],identificationNumber:[],nationality:[],state:[],taxNumber:[u.z2.taxNumber()],language:[],password:[u.z2.password()],confirmPassword:[u.z2.matchWith("password",(0,s.Ag)("VALIDATION.SAME_PASS_AGAIN"))]};return E(n,r),(0,l.ei)(n,e)}function A(e,r=[],n=!1){const t=(0,l.ei)(e.values,r),a=["phone","language",..."v2"===o.NZ.apiVersion?["promoCode"]:[]],i=Object.assign({},t);return n&&Object.keys(i).includes("email")&&!i.email&&i.phone&&(i.email=`${c}${i.phone}@${o.NZ.registration.dummyEmailHost}`,i.isDummyEmail=!0),r.includes("phone")&&(i.phoneNumber={number:t.phone,prefix:c}),Object.keys(i).forEach((e=>{(e.includes("terms.")||a.includes(e))&&delete i[e]})),i}function O(e,r){if(!r)return;const n=e.findIndex((e=>e===`${t.BG.errorsPrefix}.PLAYER_DUPLICATE_EMAIL`));-1!==n&&(e[n]=`${t.BG.errorsPrefix}.PLAYER_DUPLICATE_DUMMY_EMAIL`)}const h={dateOfBirth:u.z2.required((0,s.Ag)("VALIDATION.INVALID_DATE_VALUE")),firstName:u.z2.requiredString((0,s.Ag)("FORM.FIRST_NAME")),lastName:u.z2.requiredString((0,s.Ag)("FORM.LAST_NAME")),otherNames:u.z2.requiredString((0,s.Ag)("FORM.OTHER_NAMES")),address:u.z2.requiredString((0,s.Ag)("FORM.ADDRESS")),identificationNumber:u.z2.requiredString((0,s.Ag)("FORM.ID_NUMBER"))};function E(e,r){Object.keys(e).forEach((n=>{r.includes(n)||e[n].unshift(h[n]||u.z2.required())}))}const b=e=>()=>{const r=(0,s.Ag)("VALIDATION.SAME_PASS_AGAIN");e.errors.confirmPassword===r&&(0,l.PH)({event:a.GTMCustomEvents.REG_CONFIRMATION_PASSWORD_ERROR,eventID:a.GTMCustomEventsIds.REG_CONFIRMATION_PASSWORD_ERROR,country:o.NZ.defaults.countryCode,platform:i.Z})}},93314:(e,r,n)=>{"use strict";n.d(r,{J:()=>F});var t=n(82762),a=n(58061),o=n(85573),i=n(16575),s=n(85782),l=n(46062),u=n.n(l),c=n(44036),d=n.n(c),m=n(96793),p=n.n(m),g=n(17892),A=n.n(g),O=n(11173),h=n.n(O),E=n(42464),b=n.n(E),N=n(49541),R=n.n(N),I={};I.styleTagTransform=b(),I.setAttributes=A(),I.insert=p().bind(null,"head"),I.domAPI=d(),I.insertStyleElement=h(),u()(R(),I),R()&&R().locals&&R().locals;var y=n(56753);function F({allowUiInteractionTracking:e=!1}){const{homePageTargetUri:r}=(0,a.$Y)(),{redirectOnClose:n}=(0,a.K9)(r);return(0,y.BX)("div",{className:"registration-footer",children:[(0,y.tZ)(i.vN,{tkey:"LOGIN.ACCOUNT"})," ",(0,y.tZ)(i.vm,{onClick:function(){e&&(0,s.i7)("registration-footer-login-link"),(0,s.s3)("","",n),o.PT.open(t.ModalType.Login,{navigateToUrlOnClose:n})},children:(0,y.tZ)(i.vN,{tkey:"_LOG_IN"})})]})}},10485:(e,r,n)=>{"use strict";n.d(r,{Z:()=>C});var t=n(12139),a=n(56747),o=n(58059),i=n(82762),s=n(35104),l=n(58061),u=n(85573),c=n(16575),d=n(85782),m=n(46062),p=n.n(m),g=n(44036),A=n.n(g),O=n(96793),h=n.n(O),E=n(17892),b=n.n(E),N=n(11173),R=n.n(N),I=n(42464),y=n.n(I),F=n(16329),T=n.n(F),M={};M.styleTagTransform=y(),M.setAttributes=b(),M.insert=h().bind(null,"head"),M.domAPI=A(),M.insertStyleElement=R(),p()(T(),M),T()&&T().locals&&T().locals;var f=n(56753);const S="registration-header",_=(0,d.dG)(S);function C({isFull:e=!1,registrationConfig:r,isPromo:n=!1}){const m=(0,a.k6)(),{homePageTargetUri:p}=(0,l.$Y)(),{redirectOnClose:g}=(0,l.K9)(p,m.location.pathname.includes(`${i.CASINO_ROUTES.game}/`)),[A,O]=(0,t.eJ)(),[h,E]=(0,t.eJ)(),[b,N]=(0,t.eJ)(!1),R=!n&&r.showRegBanner;return(0,t.d4)((()=>{if(R){const e=o.JA.getBannerByKey("registration-banner",{disableErrorNotification:!0}).subscribe({next:O,error:()=>E(!0)});return()=>{e.unsubscribe()}}}),[R]),(0,f.BX)("div",{className:S,children:[R&&(0,f.tZ)(c.Od,{visible:!b&&!h,type:i.SkeletonType.Loader,fixedHeight:80,forceMountChildren:!0,children:A&&(0,f.tZ)("img",{className:_("banner"),onLoad:()=>N(!0),src:`${s.NZ.cmsApiEndpoint}${A.imageUri}`,alt:A.name})}),!n&&(null==r?void 0:r.isQuickRegistrationAllowed)&&(null==r?void 0:r.isFullRegistrationAllowed)&&(0,f.tZ)(c.vm,{onClick:()=>{const r=e?i.ModalType.QuickRegistration:i.ModalType.FullRegistration,n=e?i.APP_ROUTES.registrationQuick:i.APP_ROUTES.registration;u.PT.open(r,{navigateToUrlOnClose:g}),(0,d.s3)("","",n)},children:(0,f.tZ)(c.vN,{tkey:e?"SIGN_UP.FORM_QUICK":"SIGN_UP.FORM_FULL"})})]})}},38892:(e,r,n)=>{"use strict";n.d(r,{W:()=>y});var t=n(12139),a=n(58059),o=n(96e3),i=n(85782),s=n(46062),l=n.n(s),u=n(44036),c=n.n(u),d=n(96793),m=n.n(d),p=n(17892),g=n.n(p),A=n(11173),O=n.n(A),h=n(42464),E=n.n(h),b=n(35979),N=n.n(b),R={};R.styleTagTransform=E(),R.setAttributes=g(),R.insert=m().bind(null,"head"),R.domAPI=c(),R.insertStyleElement=O(),l()(N(),R),N()&&N().locals&&N().locals;var I=n(56753);function y({staticBlockKey:e,allowUiInteractionTracking:r=!1}){const[n,s]=(0,t.eJ)(),{userLanguage:l}=(0,t.qp)(o.AZ),u=(0,t.sO)(null),c=(0,t.sO)([]),d=(0,t.sO)([]),m=e=>{const r=`registration-${e.target.textContent.replaceAll(" ","-").toLowerCase()}-link`;d.current.includes(r)||(d.current.push(r),(0,i.i7)(r))};return(0,t.d4)((()=>{const r=a.JA.getStaticBlock(e,{disableErrorNotification:!0}).subscribe({next:s,error:()=>{s({})}});return()=>r.unsubscribe()}),[l]),(0,t.bt)((()=>(n&&r&&u.current&&(c.current=u.current.querySelectorAll("a"),c.current.forEach((e=>e.addEventListener("click",m)))),()=>{c.current.length>0&&c.current.forEach((e=>e.removeEventListener("click",m)))})),[n,r]),(0,I.tZ)("div",{ref:u,className:"registration-terms-link",dangerouslySetInnerHTML:(p=null==n?void 0:n.htmlMarkup,{__html:p})});var p}},49541:e=>{e.exports=[[e.id,".registration-footer{font-size:16px;margin-bottom:20px}","",""]]},16329:e=>{e.exports=[[e.id,".registration-header{display:flex;flex-direction:column;margin-bottom:20px}.registration-header__banner{width:100%}.registration-header .action-link{font-size:12px;margin-left:auto;margin-top:5px}","",""]]},35979:e=>{e.exports=[[e.id,".registration-terms-link{font-size:14px;margin-bottom:10px}.registration-terms-link a{color:var(--color-brand-background);font-weight:700;text-decoration:none}.registration-terms-link a:hover{text-decoration:underline}","",""]]}}]);