text: (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{223:function(t,e,o){var content=o(225);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(70).default)("46d67fa2",content,!0,{sourceMap:!1})},224:function(t,e,o){"use strict";var r=o(223);o.n(r).a},225:function(t,e,o){(e=o(69)(!1)).push([t.i,".social-login[data-v-3733fc05]{display:flex;justify-content:center;margin-top:10px}.social-login-btn[data-v-3733fc05]{color:#fff;border-radius:5px;background:#333;border:none;margin-bottom:10px;margin-left:5px;margin-right:5px;width:50px;height:50px;font-size:23px;cursor:pointer}.google[data-v-3733fc05]{background:#dd4b39}.github[data-v-3733fc05]{background:#24292e}.facebook[data-v-3733fc05]{background:#3b5998}",""]),t.exports=e},227:function(t,e,o){"use strict";var r={methods:{socialLogin:function(t){window.location.href="".concat("http://localhost:5000/api","/auth/login/").concat(t)}}},n=(o(224),o(35)),component=Object(n.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"social-login"},[o("button",{staticClass:"social-login-btn google",on:{click:function(e){return t.socialLogin("google")}}},[o("i",{staticClass:"fab fa-google"})]),t._v(" "),o("button",{staticClass:"social-login-btn github",on:{click:function(e){return t.socialLogin("github")}}},[o("i",{staticClass:"fab fa-github"})]),t._v(" "),o("button",{staticClass:"social-login-btn facebook",on:{click:function(e){return t.socialLogin("facebook")}}},[o("i",{staticClass:"fab fa-facebook"})])])}),[],!1,null,"3733fc05",null);e.a=component.exports},234:function(t,e,o){"use strict";o.r(e);o(36);var r=o(11),n={components:{SocialLogin:o(227).a},middleware:"guest",data:function(){return{form:{name:"",email:"",password:""}}},methods:{register:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$axios.post("auth/register",t.form);case 2:t.$auth.login({data:t.form}),t.$router.push({name:"index"});case 4:case"end":return e.stop()}}),e)})))()}}},l=o(35),component=Object(l.a)(n,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"container"},[o("div",{staticClass:"col-md-6 offset-md-3"},[o("div",{staticClass:"card mt-4"},[o("social-login"),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"card-body"},[o("form",{on:{submit:function(e){return e.preventDefault(),t.register(e)}}},[o("div",{staticClass:"form-group"},[o("label",[t._v("Name")]),t._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",class:{"is-invalid":t.errors.name},attrs:{type:"text",placeholder:"Name"},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}}),t._v(" "),t.errors.name?o("div",{staticClass:"invalid-feedback"},[t._v("\n              "+t._s(t.errors.name[0])+"\n            ")]):t._e()]),t._v(" "),o("div",{staticClass:"form-group"},[o("label",[t._v("Email")]),t._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",class:{"is-invalid":t.errors.email},attrs:{type:"email",placeholder:"Email"},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}}),t._v(" "),t.errors.email?o("div",{staticClass:"invalid-feedback"},[t._v("\n              "+t._s(t.errors.email[0])+"\n            ")]):t._e()]),t._v(" "),o("div",{staticClass:"form-group"},[o("label",[t._v("Password")]),t._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",class:{"is-invalid":t.errors.password},attrs:{type:"password",placeholder:"Password"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}}),t._v(" "),t.errors.password?o("div",{staticClass:"invalid-feedback"},[t._v("\n              "+t._s(t.errors.password[0])+"\n            ")]):t._e()]),t._v(" "),t._m(1)])])],1)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("p",{staticClass:"mb-0"},[this._v("\n          Register\n        ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-primary w-100",attrs:{type:"submit",value:"Register"}})])}],!1,null,null,null);e.default=component.exports}}]);