(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-55ec135e"],{"094e":function(e,t,s){},"0add":function(e,t,s){"use strict";s("daab")},"130a":function(e,t,s){e.exports=s.p+"img/bg_m.b0b2b242.png"},"1c92":function(e,t,s){"use strict";s.r(t);s("277d"),s("99af"),s("fb6a");var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"login"},[t("div",{staticClass:"main"},[t("div",{staticClass:"head-bg"},[t("img",{attrs:{src:s("130a"),alt:""}}),t("div",{staticClass:"title"},[t("h2",[e._v(e._s(e.$language.welcomeKaya))])]),t("span",{staticClass:"close",on:{click:function(t){return e.playClose()}}},[t("i",{staticClass:"iconfont icon-close"})])]),t("div",{staticClass:"login-warp"},[t("div",{staticClass:"login-box"},[t("div",{staticClass:"head-title"},[t("h2",[e._v(e._s(e.$language.login))])]),t("div",{staticClass:"phoneInput"},[t("span",{staticClass:"after"},[e._v("+"+e._s(e.countryData.areaCode))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.user.phone,expression:"user.phone"}],attrs:{type:"text",placeholder:e.$language.mobile},domProps:{value:e.user.phone},on:{input:function(t){t.target.composing||e.$set(e.user,"phone",t.target.value)}}})]),e.phoneError?t("div",{staticClass:"tips"},[e._v(" Please enter the correct phone number ")]):e._e(),t("div",{staticClass:"passwordInput"},["checkbox"===e.passwordType?t("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],attrs:{placeholder:e.$language.password,type:"checkbox"},domProps:{checked:Array.isArray(e.user.password)?e._i(e.user.password,null)>-1:e.user.password},on:{change:function(t){var s=e.user.password,r=t.target,o=!!r.checked;if(Array.isArray(s)){var a=null,i=e._i(s,a);r.checked?i<0&&e.$set(e.user,"password",s.concat([a])):i>-1&&e.$set(e.user,"password",s.slice(0,i).concat(s.slice(i+1)))}else e.$set(e.user,"password",o)}}}):"radio"===e.passwordType?t("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],attrs:{placeholder:e.$language.password,type:"radio"},domProps:{checked:e._q(e.user.password,null)},on:{change:function(t){return e.$set(e.user,"password",null)}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],attrs:{placeholder:e.$language.password,type:e.passwordType},domProps:{value:e.user.password},on:{input:function(t){t.target.composing||e.$set(e.user,"password",t.target.value)}}}),t("span",{class:["iconfont","text"===e.passwordType?"icon-eyes":"icon-noeyes"],on:{click:e.passwordTypeToggle}})]),t("router-link",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],staticClass:"forgotText",attrs:{tag:"span",to:{name:"ResetPhone"}}},[e._v(e._s(e.$language.forgotPassword)+"?")]),e.passwordError?t("div",{staticClass:"tips"},[e._v(" Please enter the correct password ")]):e._e(),t("div",{staticClass:"btnContent"},[e.serverError?t("div",{staticClass:"tips"},[e._v(" "+e._s(e.serverErrorText||"error")+" ")]):e._e(),t("button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],class:["button",{active:e.verify}],on:{click:e.login}},[e._v(" "+e._s(e.$language.login)+" ")])]),t("div",{staticClass:"link"},[t("span",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],staticClass:"registerText",on:{click:e.toRegister}},[e._v("Novo no 3L.com? "),t("span",{staticClass:"goto"},[e._v(e._s(e.$language.createNewAccount))])])]),t("other-login",{attrs:{type:"login"}})],1)])])])},o=[],a=(s("ac1f"),s("00b4"),s("e25e"),s("a9e3"),s("14d9"),s("5319"),s("4795"),s("5530")),i=s("a669"),n=s("772d"),c=s("831d"),u=s("cf45"),l={name:"login",components:{"other-login":i["a"]},data:function(){return{user:{phone:"",password:""},passwordType:"password",submited:!1,serverError:!1,serverErrorText:"",phone:"",submitting:!1}},computed:Object(a["a"])(Object(a["a"])({},Vuex.mapGetters(["countryData","country"])),{},{verify:function(){return!(!c["e"][this.country].test(this.user.phone)||!c["b"].test(this.user.password)||this.submitting)},phoneError:function(){return!(!this.submited||c["e"][this.country].test(this.user.phone))},passwordError:function(){return!(!this.submited||c["b"].test(this.user.password))}}),watch:{"user.phone":function(e){isNaN(parseInt(e))?this.user.phone=null:isNaN(Number(e))&&(this.user.phone=parseInt(e))}},beforeDestroy:function(){clearTimeout(this.submitTimer)},created:function(){var e=localStorage.getItem("kkphone");this.user.phone=e},methods:{playClose:function(){var e=window.sessionStorage,t=e.getItem("count");1==t?this.$router.push({name:"Home"}):this.$router.go(-1)},toRegister:function(){location.href="/register"},passwordTypeToggle:function(){"text"===this.passwordType?this.passwordType="password":this.passwordType="text"},login:function(){var e=this;if(this.submited=!0,this.verify){Object(u["h"])({eventName:"login_click"});var t=Object.assign({},this.user);t.password=Object(n["a"])(t.password),this.phone=t.phone,t.phone=this.countryData.areaCode+t.phone.replace(c["d"],""),t.platform=Object(u["p"])(),this.$store.dispatch("clearToken"),this.submitting=!0,this.$post({uri:"centerLogin",data:t,noPrompt:!0}).then((function(t){if(t.result){clearTimeout(e.submitTimer),e.submitTimer=setTimeout((function(){e.submitting=!1}),1e4);var s=t.data.sid.slice(0,32),r=t.data.sid.slice(32,t.data.sid.length);e.$store.commit("SET_USER",t.data),e.$store.commit("SET_TOKEN",s),localStorage.setItem("token",s),localStorage.setItem("kkphone",e.phone),localStorage.setItem("secretKey",r),e.$store.dispatch("GetUserInfo",{router:{name:e.$route.query.redirect||"Home"}}),Object(u["h"])({eventName:"login_success"})}else e.submitting=!1}))["catch"]((function(t){e.submitting=!1,e.serverErrorText=t.info,e.serverError=!0}))}}}},d=l,p=(s("0add"),s("2877")),g=Object(p["a"])(d,r,o,!1,null,"71724d34",null);t["default"]=g.exports},"3e6d":function(e,t,s){e.exports=s.p+"img/gg.ef7c3bc6.svg"},"831d":function(e,t,s){"use strict";s.d(t,"e",(function(){return r})),s.d(t,"d",(function(){return o})),s.d(t,"b",(function(){return a})),s.d(t,"c",(function(){return i})),s.d(t,"a",(function(){return n}));var r={ke:/^0?[1237]\d{8}$/,ng:/(^0?[789]\d{9}$)|(^00\d{8}$)/,br:/^\d{2}[9][1-9]\d{7}$/},o=/^0?/,a=/^.{5,}$/,i=/^\d{4,6}$/,n=/.+@.+/},a669:function(e,t,s){"use strict";var r=function(){var e=this,t=e._self._c;return e.isShowOther?t("div",{staticClass:"otherAccount"},[t("div",{staticClass:"or"},[t("div",{staticClass:"line-text"},[t("div",{staticClass:"l"}),t("span",[e._v(e._s(e.$language.or))]),t("div",{staticClass:"l"})])]),t("div",{staticClass:"ggAfb"},[e.isShowLogin("gg")?t("span",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:1e3,expression:"1000"}],staticClass:"gg",on:{click:function(t){return e.getAuth("googleLogin")}}},[t("img",{attrs:{src:s("3e6d"),alt:""}}),e._v(" "+e._s(e.typeText.google)+" ")]):e._e()])]):e._e()},o=[],a=(s("caad"),s("2532"),s("b64b"),s("5530")),i=s("8bbf"),n=s.n(i),c=s("4360"),u=s("cf45"),l={name:"OtherAccount",props:{type:{type:String,default:""},freeBet:{type:Boolean,default:!1},bet:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:Object(a["a"])(Object(a["a"])({},Vuex.mapGetters(["thirdLogins"])),{},{typeText:function(){var e={facebook:"",google:""};switch(this.type){case"login":e={facebook:this.$language.facebookLogin,google:this.$language.googleLogin};break;case"register":e={facebook:this.$language.facebookRegister,google:this.$language.googleRegister}}return e},isShowOther:function(){var e=window.location.hostname,t=window.otherLoginConfig;return(!t||!t.includes(e))&&!(!this.thirdLogins.fb&&!this.thirdLogins.gg)}}),created:function(){n.a.prototype.$bridge.getDeviceInfo("getThirdLogins").then((function(e){try{var t=JSON.parse(e);t&&c["a"].commit("SET_THIRD_LOGINS",t)}catch(s){}}))},methods:{isShowLogin:function(e){if(Object(u["y"])())return this.thirdLogins[e];var t=window.location.hostname,s=window.thirdLoginConfig;return!s||!s[t]||!!s[t].includes(e)},getAuth:function(e){!this.freeBet||this.bet.bet?this.$bridge[e]({router:{name:this.$route.query.redirect||"Home"}}):this.$toast.fail("Please place your bet")}}},d=l,p=(s("c01b"),s("2877")),g=Object(p["a"])(d,r,o,!1,null,"7edcee6e",null);t["a"]=g.exports},c01b:function(e,t,s){"use strict";s("094e")},daab:function(e,t,s){}}]);