text: (window.webpackJsonp=window.webpackJsonp||[]).push([[10],{247:function(r,t,o){var content=o(256);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[r.i,content,""]]),content.locals&&(r.exports=content.locals);(0,o(25).default)("01a13bf0",content,!0,{sourceMap:!1})},255:function(r,t,o){"use strict";o(247)},256:function(r,t,o){var e=o(24)(!1);e.push([r.i,"._sign_all_r8_all_top li a[data-v-7dbb584a],._sign_all_r8_all_top li a[data-v-7dbb584a]:hover{color:#fff}",""]),r.exports=e},284:function(r,t,o){"use strict";o.r(t);var e=o(0),n=o(8),l=(o(101),o(4),{middleware:"guest",data:function(){var r;return r={isLoading:!1,form:{email:"",password:""},error:{email:"",password:""},errorMsg:"",showPassword:!1},Object(n.a)(r,"errorMsg",""),Object(n.a)(r,"idd",""),Object(n.a)(r,"fromMarketing",""),Object(n.a)(r,"fromhome",""),Object(n.a)(r,"cookieForm",{_fprom_tid:"",ref_id:""}),r},created:function(){this.$route.query&&this.$route.query.idd&&(this.idd=this.$route.query.idd,this.$store.commit("setQueryUrl",this.idd)),this.$route.query&&this.$route.query.fromhome&&(this.fromhome=this.$route.query.fromhome),this.$route.query&&this.$route.query.fromMarketing&&(this.fromMarketing="".concat(this.$route.query.fromMarketing,"&isPattern=").concat(this.$route.query.isPattern,"&product_id=").concat(this.$route.query.product_id,"&modalOpen=").concat(this.$route.query.modalOpen),this.$store.commit("setQueryUrl",this.fromMarketing)),this.getCookie()},methods:{eyeClick:function(){this.showPassword=!this.showPassword},login:function(){var r=this;return Object(e.a)(regeneratorRuntime.mark((function t(){var o,e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.clearData(),o=1,r.form.email&&""!=r.form.email.trim()&&null!=r.form.email||(r.error.email="Email is required!",o=0),r.form.password&&""!=r.form.password.trim()&&null!=r.form.password||(r.error.password="Password is required!",o=0),0!=o){t.next=6;break}return t.abrupt("return");case 6:return r.isLoading=!0,t.next=9,r.callApi("post","/login",r.form);case 9:200==(e=t.sent).status?(r.s("You're successfully logged in"),r.$store.commit("setQueryUrl",!1),r.clearData2(),r.idd&&(window.location="/"+r.idd),"home"==r.fromhome?(location.reload(),window.location="/?tohome=plan?#subs"):r.fromMarketing?window.location=r.fromMarketing:window.location="/market"):401==e.status?r.errorMsg="Invalid login credentials.":r.swr(),r.isLoading=!1;case 12:case"end":return t.stop()}}),t)})))()},clearData:function(){this.error={email:"",password:""}},clearData2:function(){this.error={email:"",password:""},this.form={email:"",password:""}},getCookie:function(){var r=this;return Object(e.a)(regeneratorRuntime.mark((function t(){var o,i,e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o=document.cookie.split(";"),i=0;i<o.length;i++)"_fprom_ref"==(e=o[i].split("="))[0].trim()&&(r.cookieForm.ref_id=decodeURIComponent(e[1])),"_fprom_tid"==e[0].trim()&&(r.cookieForm._fprom_tid=decodeURIComponent(e[1]));return t.abrupt("return",0);case 3:case"end":return t.stop()}}),t)})))()}}}),c=(o(255),o(3)),component=Object(c.a)(l,(function(){var r=this,t=r.$createElement,o=r._self._c||t;return o("div",[o("div",{staticClass:"_sign_all"},[o("div",{staticClass:"row"},[o("div",{staticClass:"col-12 col-md-5 col-lg-5 _pad_r_0"},[o("div",{staticClass:"_sign_all_lft"},[o("div",{staticClass:"_sign_all_lft_logo"},[o("nuxt-link",{attrs:{to:"/"}},[o("img",{attrs:{src:"/../img/Logo.svg",alt:"image"}})])],1),r._v(" "),r._m(0)])]),r._v(" "),o("div",{staticClass:"col-12 col-md-7 col-lg-7 _pad_l_0"},[o("div",{staticClass:"_sign_all_r8"},[o("div",{staticClass:"_sign_all_r8_top_crnr"},[o("nuxt-link",{attrs:{to:"/register"}},[r._v("Sign Up")])],1),r._v(" "),o("div",{staticClass:"_sign_all_r8_all"},[o("div",{staticClass:"_sign_all_r8_all_top"},[o("h1",[r._v("Welcome to Uihut")]),r._v(" "),o("p",{staticClass:"_sign_p1"},[r._v("Let’s sign up first for enter into Uihut website. Uh She Up!")]),r._v(" "),o("ul",[o("li",{staticClass:"_sign_gogl"},[o("a",{attrs:{href:r.BASE_URL+"googleLogin?reqParams="+this.fromhome+"&ref_id="+this.cookieForm.ref_id+"&_fprom_tid="+this.cookieForm._fprom_tid}},[o("img",{attrs:{src:"/../img/google.png",alt:"image"}}),r._v("\n                                    Continue with Google\n                                    ")])]),r._v(" "),o("li",{staticClass:"_sign_fb"},[o("a",{attrs:{href:r.BASE_URL+"login/facebook?reqParams="+this.fromhome+"&ref_id="+this.cookieForm.ref_id+"&_fprom_tid="+this.cookieForm._fprom_tid}},[r._m(1)])])])]),r._v(" "),o("div",{staticClass:"_sign_all_r8_all_info"},[o("div",{staticClass:"row"},[o("div",{staticClass:"col-12 col-md-12 col-lg-12"},[""!=r.errorMsg?o("div",{staticClass:"_invalid_login _dis_flex",staticStyle:{"margin-bottom":"15px"}},[r._m(2),r._v(" "),o("p",[r._v(r._s(r.errorMsg))])]):r._e()]),r._v(" "),o("div",{staticClass:"col-12 col-md-12 col-lg-12"},[o("div",{staticClass:"_sign_inpt _inpt1",class:""!=r.error.email?"_inpt1_eror _prfl_modal_inpt2":""},[o("p",{staticClass:"_inpt1_text"},[r._v("Please put your mail")]),r._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:r.form.email,expression:"form.email"}],attrs:{type:"email",placeholder:"Enter your email",autocomplete:"new-password"},domProps:{value:r.form.email},on:{input:function(t){t.target.composing||r.$set(r.form,"email",t.target.value)}}}),r._v(" "),""!=r.error.email?o("p",{staticClass:"_inpt1_eror_p"},[r._v(r._s(r.error.email))]):r._e()])]),r._v(" "),o("div",{staticClass:"col-12 col-md-12 col-lg-12"},[o("div",{staticClass:"_sign_inpt _inpt1",class:""!=r.error.password?"_inpt1_eror _prfl_modal_inpt2":""},[o("p",{staticClass:"_inpt1_text"},[r._v("Password")]),r._v(" "),"checkbox"==(r.showPassword?"text":"password")?o("input",{directives:[{name:"model",rawName:"v-model",value:r.form.password,expression:"form.password"}],attrs:{placeholder:"Enter your password",autocomplete:"new-password",type:"checkbox"},domProps:{checked:Array.isArray(r.form.password)?r._i(r.form.password,null)>-1:r.form.password},on:{change:function(t){var o=r.form.password,e=t.target,n=!!e.checked;if(Array.isArray(o)){var l=r._i(o,null);e.checked?l<0&&r.$set(r.form,"password",o.concat([null])):l>-1&&r.$set(r.form,"password",o.slice(0,l).concat(o.slice(l+1)))}else r.$set(r.form,"password",n)}}}):"radio"==(r.showPassword?"text":"password")?o("input",{directives:[{name:"model",rawName:"v-model",value:r.form.password,expression:"form.password"}],attrs:{placeholder:"Enter your password",autocomplete:"new-password",type:"radio"},domProps:{checked:r._q(r.form.password,null)},on:{change:function(t){return r.$set(r.form,"password",null)}}}):o("input",{directives:[{name:"model",rawName:"v-model",value:r.form.password,expression:"form.password"}],attrs:{placeholder:"Enter your password",autocomplete:"new-password",type:r.showPassword?"text":"password"},domProps:{value:r.form.password},on:{input:function(t){t.target.composing||r.$set(r.form,"password",t.target.value)}}}),r._v(" "),o("span",{on:{click:function(t){return r.eyeClick()}}},[o("i",{staticClass:"fas",class:0==r.showPassword?"fa-eye":"fa-eye-slash"})]),r._v(" "),""!=r.error.password?o("p",{staticClass:"_inpt1_eror_p"},[r._v(r._s(r.error.password))]):r._e()])])]),r._v(" "),o("div",{staticClass:"_sign_btm _dis_flex"},[o("div",{staticClass:"_sign_btm_lft _dis_flex"}),r._v(" "),o("div",{staticClass:"_sign_btm_r8"},[o("nuxt-link",{attrs:{to:"/forgot-password"}},[r._v("\n                                        Forgot Password?\n                                    ")])],1)]),r._v(" "),o("div",{staticClass:"_sign_btm_btn _mar_t30"},[o("Button",{attrs:{loading:r.isLoading,disabled:r.isLoading},on:{click:function(t){return r.login()}}},[r._v("Sign In")])],1)])])])])])])])}),[function(){var r=this.$createElement,t=this._self._c||r;return t("div",{staticClass:"_sign_all_img"},[t("img",{attrs:{src:"/../img/sign2.png"}})])},function(){var r=this.$createElement,t=this._self._c||r;return t("span",[t("i",{staticClass:"fab fa-facebook-square"})])},function(){var r=this.$createElement,t=this._self._c||r;return t("span",[t("i",{staticClass:"fas fa-exclamation"})])}],!1,null,"7dbb584a",null);t.default=component.exports}}]);