1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7dfc67b4"],{"1af9":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg-black"},[e("img",{staticClass:"fixed z-0 object-cover",attrs:{alt:"Background city",src:a("7ebf")}}),e("div",{staticClass:"relative"},[e("ProgressBarHeader",{attrs:{totalSteps:0}}),t.showVerificationEmail?e("div",[e("ConfirmEmailStep",{attrs:{email:t.email}})],1):e("div",{staticClass:"main-block flex flex-col items-center justify-center"},[e("div",{staticClass:"uppercase text-4xl left-0 text-center font-bold text-white mb-4"},[t._v(" Your account for GCTV ")]),e("div",{staticClass:"from_body h-64 my-5 p-4"},[e("div",[e("form",{staticClass:"flex flex-col"},[e("div",{staticClass:"flex flex-col items-start"},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.email,expression:"email",modifiers:{trim:!0}}],staticClass:"rounded w-full p-3 mb-2",class:{invalid:t.$v.email.$dirty&&!t.$v.email.required||t.$v.email.$dirty&&!t.$v.email.email},attrs:{placeholder:"Email",type:"email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t.$v.email.$dirty&&!t.$v.email.required?e("small",{staticClass:"text-red-600 mb-2 px-1"},[t._v(" Email field should not be empty ")]):t._e(),t.$v.email.$dirty&&!t.$v.email.email?e("small",{staticClass:"text-red-600 mb-2 px-1"},[t._v(" Enter correct email ")]):t._e()]),e("div",{staticClass:"flex flex-col items-start relative mb-2"},["checkbox"===t.type?e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"rounded w-full p-3 mb-2",class:{invalid:t.$v.password.$dirty&&!t.$v.password.required||t.$v.password.$dirty&&!t.$v.password.minLength},attrs:{id:"password-input",placeholder:"Password",type:"checkbox"},domProps:{checked:Array.isArray(t.password)?t._i(t.password,null)>-1:t.password},on:{change:function(e){var a=t.password,s=e.target,r=!!s.checked;if(Array.isArray(a)){var i=null,o=t._i(a,i);s.checked?o<0&&(t.password=a.concat([i])):o>-1&&(t.password=a.slice(0,o).concat(a.slice(o+1)))}else t.password=r}}}):"radio"===t.type?e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"rounded w-full p-3 mb-2",class:{invalid:t.$v.password.$dirty&&!t.$v.password.required||t.$v.password.$dirty&&!t.$v.password.minLength},attrs:{id:"password-input",placeholder:"Password",type:"radio"},domProps:{checked:t._q(t.password,null)},on:{change:function(e){t.password=null}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"rounded w-full p-3 mb-2",class:{invalid:t.$v.password.$dirty&&!t.$v.password.required||t.$v.password.$dirty&&!t.$v.password.minLength},attrs:{id:"password-input",placeholder:"Password",type:t.type},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),e("a",{staticClass:"password-control cursor-pointer",on:{click:function(e){e.preventDefault(),"password"===t.type?t.type="text":t.type="password"}}}),t.$v.password.$dirty&&!t.$v.password.required?e("small",{staticClass:"text-red-600 mb-2 px-1"},[t._v(" Password field should not be empty ")]):t.$v.password.$dirty&&!t.$v.password.minLength?e("small",{staticClass:"text-red-600 mb-2 px-1"},[t._v(" Min length is 8 characters ")]):t._e()]),e("div",{staticClass:"flex justify-end"},[e("router-link",{staticClass:"cursor-pointer",attrs:{to:"/reset-password"}},[t._v(" Forgotten your password? ")])],1),t._m(0),e("div",{staticClass:"mt-16 text-center"},[e("button",{staticClass:"submit_btn uppercase font-bold text-white rounded mb-2",attrs:{type:"submit"},on:{click:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[t._v(" login ")]),e("router-link",{staticClass:"cancel_btn uppercase font-bold text-white",attrs:{to:"/registration"}},[t._v(" Join now ")])],1)])])])])],1)])},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"mt-8 text-left"},[e("span",[t._v(" By logging in, you signify that you have read and accept Global Champions ")]),e("a",{attrs:{href:"https://www.gcglobalchampions.com/en-us
1/terms-and-conditions"}},[t._v(" Terms and Conditions ")]),e("span",[t._v("and ")]),e("a",{attrs:{href:"https://www.gcglobalchampions.com/privacy-statement"}},[t._v(" Privacy Policy.")])])}],i=(a("d9e2"),a("14d9"),a("b5ae")),o=a("2f62"),n=a("bf82"),d=a("d369"),c=a("4360"),l=a("1f57"),p=a("bd08"),m=a("ab68"),u={name:"LoginPage",components:{ConfirmEmailStep:m["a"],ProgressBarHeader:p["a"]},computed:{...Object(o["c"])({jwtToken:"auth/getJwtToken"})},data(){return{email:"",password:"",type:"password",showVerificationEmail:!1,checkAccountConfirmedInterval:null}},validations:{email:{email:i["email"],required:i["required"]},password:{required:i["required"],minLength:Object(i["minLength"])(8)}},beforeDestroy(){clearInterval(this.checkAccountConfirmedInterval)},methods:{...Object(o["b"])({updateAuthState:"auth/updateAuthState"}),async login(){if(this.$v.$invalid)this.$v.$touch();else try{await n["a"].signIn({username:this.email,password:this.password}).then(t=>{this.updateAuthState(t)}).catch(async t=>{throw"UserNotConfirmedException"===t.code&&(this.showVerificationEmail=!0,await this.resendEmailVerification()),new Error(t.message)}),await d["a"].startSSO(this.jwtToken).catch(t=>{throw new Error("StreamAMG SSO error: "+t.response.data.message)}),await l["a"].registerProfile_GCTVBackend(this.jwtToken).catch(t=>{throw new Error("CMS gctv error: "+t.response.data.message)});const{redirectTo:t="/"}=this.$route.query,e=decodeURI(t);return this.$router.push(e)}catch(t){return await n["a"].signOut(),await c["a"].dispatch("ui/setErrorMessage",t)}},async resendEmailVerification(){await n["a"].resendSignUp(this.email,{isWeb:"true"}).catch(async t=>{await c["a"].dispatch("ui/setErrorMessage","Error while resending confirmation code: "+t.message)}),this.checkAccountConfirmedInterval=setInterval(async()=>{n["a"].signIn(this.email,this.password).then(async t=>{await this.updateAuthState(t)}).catch(t=>{throw"UserNotConfirmedException"!==t.code&&this.showError("AWS_AMPLIFY",t),new Error(t)}).then(async()=>await d["a"].startSSO(this.jwtToken).catch(t=>{this.showError("StreamAMG",t)})).then(async()=>{await l["a"].registerProfile_GCTVBackend(this.jwtToken).catch(t=>{this.showError("GCTV_BE",t)})}).then(()=>{this.$router.push({path:"/registration",query:{pageStep:"3"}})})},15e3)},async showError(t,e){throw await n["a"].signOut(),await c["a"].dispatch("ui/setErrorMessage",`Something went wrong. Please try again. ${t}:${e.response.data.message}`),new Error(e)}}},w=u,h=(a("cb52"),a("2877")),v=Object(h["a"])(w,s,r,!1,null,"5cf9fa73",null);e["default"]=v.exports},b314:function(t,e,a){},cb52:function(t,e,a){"use strict";a("b314")}}]);
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.