1import{_ as fe}from"./CshHwpQA.js";import{E as J}from"./BRWwJqKy.js";import{E as $,a as he}from"./BqK22eZm.js";import{E as ge}from"./DP0-JWAl.js";import{d as K,u as D,q as d,i as F,o as n,m as ee,h as o,w as p,g as m,l as u,B as ve,a8 as Ae,a as ye,b as we,c as Ce,D as Q,e as I,s as Re,z as be,v as x,x as _e,f as g,k as c,C as w,t as U,U as Ie,F as W,r as Ne,a7 as Se,ae as ke,K as Y,aa as Pe,N as Te,ai as Ve,M as G,ab as Fe,y as Le,_ as oe}from"./Y4ICXCuc.js";import{v as ze}from"./BPzcK7w0.js";import{u as Ee,i as Z,a as Be}from"./BB1Ts1KE.js";import{_ as Me,P as xe,a as Ue,i as Ge}from"./NyPsB9My.js";import{f as Oe}from"./JffoND0l.js";import{u as qe,E as Ke,P as De,i as j}from"./DSm22o4x.js";import{L as Qe,T as H}from"./Bfqhub8T.js";import{e as X}from"./Uin5Uwxh.js";import{u as We}from"./dJZm3NNg.js";import{i as Ye}from"./B3bufau0.js";import"./BH9nULxh.js";import"./BE20p1dL.js";import"./NVAjB_Yf.js";import"./vMIVouA4.js";import"./anKvzuH2.js";import"./Ca1OSTWz.js";import"./i2mWmNS0.js";import"./dJqsckk1.js";import"./DVzYJwT5.js";import"./DbDwZyaJ.js";const Ze={class:"prefix"},je=["src"],He=K({__name:"FullName",props:{modelValue:{},required:{type:Boolean},icon:{},isShowLabel:{type:Boolean}},emits:["update:modelValue"],setup(L,{emit:N}){const{t:l}=D(),C=L,S=N,f=d("");let z;const v=r=>{const i=Oe(r);i!==r&&(f.value=i),clearTimeout(z),z=setTimeout(()=>{S("update:modelValue",i)},300)};return(r,i)=>{const R=J,b=$;return n(),F(b,{label:C.isShowLabel===!1?void 0:o(l)("common.fullName"),prop:"fullName",class:ee({"required-right":C.required})},{default:p(()=>[m(R,{modelValue:o(f),"onUpdate:modelValue":i[0]||(i[0]=k=>ve(f)?f.value=k:null),placeholder:o(l)("common.fullName"),onInput:v},{prefix:p(()=>[u("div",Ze,[u("img",{src:C.icon,alt:"user icon",class:"w-18px"},null,8,je)])]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","class"])}}}),Xe={class:"mobile-show mb-12px mobile-banner"},Je=["src"],$e={key:0,class:"auth-content-title mobile-none"},eo={class:"auth-content-panel"},oo={class:"auth-panel-left"},ao={key:1,class:"mobile-none"},so={key:2,class:"loading"},to={class:"prefix"},ro=["src"],lo={class:"msg-checkbox"},no={class:"msg"},io={key:0,class:"mobile-show"},uo={class:"mobile-show mx-0px mt-14px"},co=K({__name:"RegisterPage",props:{banner:{},pageClass:{},isShowAuthTitle:{type:Boolean,default:!0},isShowThirdParty:{type:Boolean,default:!0},successGoHome:{type:Boolean,default:!1},isShowSuccess:{type:Boolean,default:!1},verifyIcons:{},icons:{},registerText:{},themeStyle:{default:"ez4win"},loginText:{},phonePlaceholder:{},isShowFormLabel:{type:Boolean,default:!0},helpCenterLink:{},passwordColors:{}},setup(L){We("register");const{$fbTrack:N}=Ae(),l=L,{getCookie:C}=Le(),{device:S,domain:f,fingerprint:z}=Ee(),v=d(),{t:r}=D(),i=ye(),R=we(),b=Ce(),k=d(!1),E=d(!1),P=d(!1),O=d(!1),ae=d(!1),T=d(!1),V=d(!1);Q(T,e=>{e&&x(()=>{var a;return(a=v.value)==null?void 0:a.validateField("phone")})}),Q(V,e=>{e&&x(()=>{var a;return(a=v.value)==null?void 0:a.validateField("email")})});const B=I(()=>{try{return i.registerInfo}catch(e){return console.error("è§£æ registerInfo 失败",e),[]}}),se=Re(),te=I(()=>se.currentRegionLang),M=I(()=>B.value.length===0),s=d({userName:"",password:"",confirmPassword:"",fullName:"",email:"",phone:"",ph
1oneAuthCode:"",emailAuthCode:"",reference:""}),re={userName:Ue,password:xe,confirmPassword:Me,fullName:He,phone:De,email:Ke};I(()=>i.registerType);const le=I(()=>qe({t:r,fieldConfig:B.value,form:s.value,canValidateCode:ne.value})),ne=I(()=>s.value.email?V.value:s.value.phone?T.value:!1),ie=e=>{var h,_;const a={required:e.isRequired,icon:(h=l.icons)==null?void 0:h[e.fieldName],colors:l.passwordColors,verifyIcon:(_=l.verifyIcons)==null?void 0:_[e.fieldName],isShowLabel:l.isShowFormLabel};return e.fieldName==="phone"?{...a,modelValue:s.value.phone,verifyCode:s.value.phoneAuthCode,"onUpdate:verifyCode":A=>s.value.phoneAuthCode=A,placeholder:l.phonePlaceholder}:e.fieldName==="email"?{...a,modelValue:s.value.email,verifyCode:s.value.emailAuthCode,"onUpdate:verifyCode":A=>s.value.emailAuthCode=A}:a},ue=async()=>{P.value||v.value&&await v.value.validate(async e=>{if(!e)return;if(!O.value){G.warning(r("common.agreeTermsRequired"));return}const a=s.value.password||"";if(!/^.{6,12}$/.test(a)){G.error(r("common.passwordRule1"));return}if(!/^(?=.*[A-Z]).{6,12}$/.test(a)){G.error(r("common.passwordRule2"));return}if(!/^\S*$/.test(a)){G.error(r("common.passwordRule3"));return}if(!(T.value||V.value)){P.value=!0;try{const{merchantId:h,merchantRegionId:_}=i.merchantInfo,A={...s.value,merchantId:h,merchantRegionId:_,device:S,domain:f,fingerprint:z,phone:s.value.phone,areaNo:te.value.phoneNumber,password:X(s.value.password),confirmPassword:X(s.value.confirmPassword),campaignId:i.aftCampId,viaLink:k.value},q=await Fe("/player/auth/register",A);i.setUserInfo(q),l.successGoHome?R.push(b({path:"/"})):R.push(b({path:"/register-success"}))}catch(h){console.error("注å失败:",h)}finally{P.value=!1}}})};function de(){l.helpCenterLink?typeof l.helpCenterLink=="function"?l.helpCenterLink():R.push(b({path:l.helpCenterLink.path,query:l.helpCenterLink.query})):R.push(b({path:"/help",query:{tab:1}}))}const ce=async()=>{await x();const e=C("affiliateOrReferral");k.value=!!e,s.value.reference=String(e)||""};return be(async()=>{await x(),B.value.forEach(e=>s.value[e.fieldName]=""),await ce(),s.value.reference&&await _e(`/player/referral/clickRecords?login=${s.value.reference}`)}),(e,a)=>{const h=J,_=$,A=ge,q=Te,me=he,pe=ze;return n(),g("div",{class:ee(["page-container",e.pageClass])},[u("div",Xe,[w(e.$slots,"banner",{},()=>[e.banner?(n(),g("img",{key:0,src:e.banner},null,8,Je)):c("",!0)],!0)]),e.isShowAuthTitle?(n(),g("h3",$e,U(e.registerText||o(r)("common.register")),1)):c("",!0),m(Qe,{active:"register",loginText:e.loginText,registerText:e.registerText},null,8,["loginText","registerText"]),u("div",eo,[w(e.$slots,"left-panel",{},void 0,!0),u("div",oo,[E.value?c("",!0):w(e.$slots,"auth-title",{key:0},void 0,!0),!E.value&&e.isShowThirdParty?(n(),g("div",ao,[m(H,{title:o(r)("common.registerWith")},null,8,["title"])])):c("",!0),o(M)?Ie((n(),g("div",so,null,512)),[[pe,o(M)]]):c("",!0),!E.value&&!o(M)?(n(),F(me,{key:3,ref_key:"registerFormRef",ref:v,model:s.value,autocomplete:"off","label-position":"top",rules:o(le),"validate-on-rule-change":!1,size:"large",class:"customized-form"},{default:p(()=>[(n(!0),g(W,null,Ne(o(B),t=>(n(),g(W,{key:t.fieldName},[t.isShow?(n(),F(Se(re[t.fieldName]),ke({key:t.fieldName,modelValue:s.value[t.fieldName],"onUpdate:modelValue":y=>s.value[t.fieldName]=y,required:t.isRequired,otpVerify:["phone","email"].includes(t.fieldName)?t.isRequired&&t.otpVerify:t.otpVerify,type:"1",icon:e.icons[t.fieldName],verifyIcon:e.verifyIcons[t.fieldName],isPhoneRegistered:T.value,"onUpdate:isPhoneRegistered":a[0]||(a[0]=y=>T.value=y),isEmailRegistered:V.value,"onUpdate:isEmailRegistered":a[1]||(a[1]=y=>V.value=y),ref_for:!0},ie(t),{onValidChange:a[2]||(a[2]=y=>ae.value=y)}),null,16,["modelValue","onUpdate:modelValue","required","otpVerify","icon","verifyIcon","isPhoneRegistered","isEmailRegistered"])):c("",!0)],64))),128)),m(_,{label:e.isShowFormLabel?o(r)("common.affiliateOrReferralID"):void 0,class:"affiliate-referral-id"},{default:p(()=>[m(h,{modelValue:s.value.reference,"onUpdate:modelValue":a[3]||(a[3]=t=>
1s.value.reference=t),disabled:k.value,placeholder:o(r)("common.affiliateOrReferralIDDesc")},{prefix:p(()=>[u("div",to,[u("img",{src:e.icons.referral,alt:"icon",class:"w-18px"},null,8,ro)])]),_:1},8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),u("div",lo,[m(A,{modelValue:O.value,"onUpdate:modelValue":a[4]||(a[4]=t=>O.value=t)},{default:p(()=>[u("span",no,[Y(U(o(r)("common.registerMsg1"))+" ",1),u("a",{onClick:Pe(de,["prevent"]),class:"link",style:{"white-space":"nowrap",display:"inline-block"}},U(o(r)("common.registerMsg2")),1)])]),_:1},8,["modelValue"])]),m(q,{class:"custom-button",onClick:ue,loading:P.value,disabled:P.value},{default:p(()=>[Y(U(e.registerText||o(r)("common.signUp")),1)]),_:1},8,["loading","disabled"]),e.isShowThirdParty?(n(),g("div",io,[m(H)])):c("",!0),w(e.$slots,"third-party-panel",{},void 0,!0)]),_:3},8,["model","rules"])):c("",!0),E.value&&!o(M)?(n(),F(Ve,{key:4,name:"fade"},{default:p(()=>[w(e.$slots,"success-panel",{},void 0,!0)]),_:3})):c("",!0)]),w(e.$slots,"right-panel",{},void 0,!0)]),u("div",uo,[w(e.$slots,"bottom-banner",{},void 0,!0)])],2)}}}),mo=oe(co,[["__scopeId","data-v-3fe9bb05"]]),po="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABPFJREFUeAGtVk1oY1UUPve9l+Sl7bSvwiz8gb7gIPgDzSxGGZCZdDbjuNAUwR8Qm25cCJJ0NxQxGUFxN+lOEGziz0JBGhfS2WhTNwPOIqkMVEYxKY52ozRKk5d3fz33pklrYNw8DzxeXu6953zn5zvnEvgfRLUKHpVuXjKW4fgIRpVgbIeGdO3+C59UhvsIRJRgt+Db7uSGkjKNRkAb4pQ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hJWpp4oN2ef/LBJpLg21ACag/Hp/KgRTz9SruCrsn/r1QyOg3msBuyj0Hzsxe/rJ3Mzd/mGJnP1j5uvIcmhDCZsgxiRwYgx+7GYvONTSnuQiXQt6DReP4i5kx62LhwvCq8E7ICF4TtSshlBaUFQ5uGdBAQPzVUh2ojRLVgPfmV67RpO6pptw4GkMMuktY3uZdCrojKtUKlIxiy8c2CeMvp3LDl1Pf7wW+MjphkHVjyqw51I1wLLtmomV0SPmNAfXz8eMei6bZcjX+W6P6404gl3HlO2pyirMdbvcEp1E8fRwrKYO58PRwxEFEupRX2dQ/B6vOR1n8CWb5I0mKzY/aVa0HsjezYUPWIkZ3l85tEzgtVXlyKs9+jhWmqhZtrcPz5YwGRlgMZTAAAAAElFTkSuQmCC",fo=K({__name:"index",setup(L){const{t:N}=D();return(l,C)=>{const S=fe,f=mo;return n(),F(f,{pageClass:"mtown-auth-container",isShowThirdParty:!1,themeStyle:"mtown",loginText:o(N)("common.login").toUpperCase(),registerText:o(N)("common.register"),icons:{userName:o(Be),password:o(Z),fullName:o(Ge),email:o(Ye),confirmPassword:o(Z),referral:o(po)},"password-colors":{weak:"#FF0000",medium:"#FF8800",strong:"#009D00",default:"#434343"},verifyIcons:{phone:o(j),email:o(j)},helpCenterLink:{path:"/help",query:{tab:2}}},{"right-panel":p(()=>[m(S)]),_:1},8,["loginText","registerText","icons","verifyIcons"])}}}),Uo=oe(fo,[["__scopeId","data-v-dc1b7b9d"]]);export{Uo 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.