{"version":3,"sources":["webpack:///./src/views/Auth/Register.vue?ec0e","webpack:///./src/views/Auth/Register.vue","webpack:///./src/Services/AuthService.js","webpack:///src/views/Auth/Register.vue","webpack:///./src/views/Auth/Register.vue?7157","webpack:///./src/views/Auth/Register.vue?c40e"],"names":["render","_vm","this","_c","_self","staticClass","_v","attrs","click","ssoAuth","_m","toggleEmailSignUpModal","openEmailSignUpModal","close","on","$event","preventDefault","handleEmailSignUp","apply","arguments","directives","name","rawName","value","signUpForm","expression","domProps","target","composing","$set","email","password","passwordError","_s","_e","confirmPassword","confirmPasswordError","openEmailModal","openEmailWarningModal","staticStyle","slot","staticRenderFns","input","res","api","external","path","method","components","LinkButton","Modal","props","data","computed","mapGetters","methods","mapActions","ssoLogin","provider","auth","$auth","stayAfter","$router","push","status","validatePassword","passwordPattern","test","submitSignUp","response","AuthService","register","success","$store","dispatch","ADD_TOAST_MESSAGE","text","type","root","error","component"],"mappings":"0GAAA,W,0CCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,iCAAiC,CAACF,EAAG,KAAK,CAACE,YAAY,sBAAsB,CAACJ,EAAIK,GAAG,aAAaH,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,cAAc,CAACE,YAAY,oDAAoDE,MAAM,CAAC,MAAQC,IAAMP,EAAIQ,QAAQ,cAAc,CAACN,EAAG,IAAI,CAACE,YAAY,yBAAyBE,MAAM,CAAC,cAAc,UAAUN,EAAIK,GAAG,6CAA6CH,EAAG,cAAc,CAACE,YAAY,sDAAsDE,MAAM,CAAC,MAAQC,IAAMP,EAAIQ,QAAQ,YAAY,CAACN,EAAG,IAAI,CAACE,YAAY,4BAA4BE,MAAM,CAAC,cAAc,UAAUN,EAAIK,GAAG,2CAA2CL,EAAIS,GAAG,GAAGP,EAAG,cAAc,CAACE,YAA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YC,OAAIC,SAAS,CAC7BC,KAAO,iBACPC,OAAQ,OACRL,UAEF,OAAOC,I,YCyHI,GACftB,KAAA,WACA2B,WAAA,CACAC,kBACAC,cAEAC,MAAA,cACAC,OACA,OACAxC,sBAAA,EACAY,WAAA,CACAH,KAAA,GACAS,MAAA,GACAC,SAAA,GACAI,gBAAA,IAEAH,cAAA,GACAI,qBAAA,KAGAiB,SAAA,IACAC,eAAA,CACAjB,eAAA,yBAGAkB,QAAA,IACAC,eAAA,CACAC,SAAA,gBACAnB,sBAAA,+BAEA,cAAAoB,GACA,MAAAC,EAAA,KAAAC,YACA,KAAAH,SAAA,CAAAE,OAAAD,aACA,KAAAG,WACA,KAAAC,QAAAC,KAAA,CAAA1C,KAAA,WAGAV,uBAAAqD,GACA,KAAApD,qBAAAoD,GAKAC,iBAAAlC,GACA,MAAAmC,EAAA,mDACA,OAAAA,EAAAC,KAAApC,IAEAd,oBACA,KAAAe,cAAA,GACA,KAAAI,qBAAA,GAEA,KAAA6B,iBAAA,KAAAzC,WAAAO,UAKA,KAAAP,WAAAO,WAAA,KAAAP,WAAAW,gBAKA,KAAAiC,eAJA,KAAAhC,qBAAA,0BALA,KAAAJ,cAAA,iIAWA,qBACA,IACA,MAAAqC,QAAAC,EAAAC,SAAA,KAAA/C,YACA6C,EAAAG,QACA,KAAAC,OAAAC,SACAC,uBACA,CACAC,KAAA,2BACAC,KAAA,WAEA,CACAC,MAAA,IAGA,KAAAL,OAAAC,SACAC,uBACA,CACAC,KAAA,yCACAC,KAAA,UAEA,CACAC,MAAA,IAGA,KAAAhB,QAAAC,KAAA,CAAA1C,KAAA,UACA,MAAA0D,GACA,KAAAN,OAAAC,SACAC,uBACA,CACAC,KAAA,yCACAC,KAAA,UAEA,CACAC,MAAA,QClOgW,I,wBCQ5VE,EAAY,eACd,EACAhF,EACAyC,GACA,EACA,KACA,WACA,MAIa,aAAAuC,E","file":"js/register.25b085fc.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Register.vue?vue&type=style&index=0&id=5d600663&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"form-horizontal form-material\"},[_c('h3',{staticClass:\"text-center m-b-20\"},[_vm._v(\"Sign Up\")]),_c('div',{staticClass:\"social text-center\"},[_c('div',{staticClass:\"button-group\"},[_c('link-button',{staticClass:\"waves-effect waves-light btn-rounded btn-facebook\",attrs:{\"click\":() => _vm.ssoAuth('facebook')}},[_c('i',{staticClass:\"fab fa-facebook-f mr-2\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"\\n Sign up with FACEBOOK\\n \")]),_c('link-button',{staticClass:\"waves-effect waves-light btn-rounded btn-googleplus\",attrs:{\"click\":() => _vm.ssoAuth('google')}},[_c('i',{staticClass:\"fab fa-google-plus-g mr-2\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"\\n Sign up with GOOGLE\\n \")]),_vm._m(0),_c('link-button',{staticClass:\"waves-effect waves-light btn-rounded btn-secondary\",attrs:{\"click\":() => _vm.toggleEmailSignUpModal(true)}},[_vm._v(\"\\n Sign up with EMAIL\\n \")]),_c('modal',{attrs:{\"show\":_vm.openEmailSignUpModal,\"close\":() => _vm.toggleEmailSignUpModal(false),\"title\":\"Sign Up with Email\"}},[_c('div',{staticClass:\"modal-body\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.handleEmailSignUp.apply(null, arguments)}}},[_c('div',{staticClass:\"form-group mb-0 pb-4 d-flex align-items-center text-left\"},[_c('label',{staticClass:\"form-label col-md-4\",attrs:{\"for\":\"name\"}},[_vm._v(\"Name\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.signUpForm.name),expression:\"signUpForm.name\"}],staticClass:\"form-control custom-input col-md-8\",attrs:{\"type\":\"text\",\"id\":\"name\",\"placeholder\":\"Enter your name\",\"required\":\"\"},domProps:{\"value\":(_vm.signUpForm.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.signUpForm, \"name\", $event.target.value)}}})]),_c('div',{staticClass:\"form-group mb-0 pb-4 d-flex align-items-center text-left\"},[_c('label',{staticClass:\"form-label col-md-4\",attrs:{\"for\":\"email\"}},[_vm._v(\"Email\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.signUpForm.email),expression:\"signUpForm.email\"}],staticClass:\"form-control custom-input col-md-8\",attrs:{\"type\":\"email\",\"id\":\"email\",\"placeholder\":\"Enter your email\",\"required\":\"\"},domProps:{\"value\":(_vm.signUpForm.email)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.signUpForm, \"email\", $event.target.value)}}})]),_c('div',{staticClass:\"form-group mb-0 pb-4 d-flex align-items-center text-left\"},[_c('label',{staticClass:\"form-label col-md-4\",attrs:{\"for\":\"password\"}},[_vm._v(\"Password\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.signUpForm.password),expression:\"signUpForm.password\"}],staticClass:\"form-control custom-input col-md-8\",attrs:{\"type\":\"password\",\"id\":\"password\",\"placeholder\":\"Enter your password\",\"required\":\"\"},domProps:{\"value\":(_vm.signUpForm.password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.signUpForm, \"password\", $event.target.value)}}}),(_vm.passwordError)?_c('small',{staticClass:\"text-danger error-small\"},[_vm._v(_vm._s(_vm.passwordError))]):_vm._e()]),_c('div',{staticClass:\"form-group mb-0 pb-4 d-flex align-items-center text-left\"},[_c('label',{staticClass:\"form-label col-md-4\",attrs:{\"for\":\"confirmPassword\"}},[_vm._v(\"Confirm Password\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.signUpForm.confirmPassword),expression:\"signUpForm.confirmPassword\"}],staticClass:\"form-control custom-input col-md-8\",attrs:{\"type\":\"password\",\"id\":\"confirmPassword\",\"placeholder\":\"Confirm your password\",\"required\":\"\"},domProps:{\"value\":(_vm.signUpForm.confirmPassword)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.signUpForm, \"confirmPassword\", $event.target.value)}}})]),(_vm.confirmPasswordError)?_c('small',{staticClass:\"text-danger error-small\"},[_vm._v(_vm._s(_vm.confirmPasswordError))]):_vm._e(),_c('div',{staticClass:\"text-right mt-4\"},[_c('button',{staticClass:\"btn btn-primary btn-custom\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Sign Up\")]),_c('button',{staticClass:\"btn btn-secondary ml-2\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.toggleEmailSignUpModal(false)}}},[_vm._v(\"\\n Cancel\\n \")])])])])])],1)]),_c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"col-sm-12 text-center\"},[_vm._v(\"\\n Already have an account?\\n \"),_c('router-link',{staticClass:\"text-info m-l-5\",attrs:{\"to\":{ name: 'login' },\"aria-expanded\":\"false\"}},[_vm._v(\"\\n Login\\n \")])],1)]),_c('modal',{attrs:{\"show\":_vm.openEmailModal,\"close\":() => _vm.openEmailWarningModal(false),\"title\":\"Notice\"}},[_c('h3',{staticClass:\"swal2-title\",staticStyle:{\"display\":\"flex\"},attrs:{\"id\":\"swal2-title\"}},[_vm._v(\"We don't support sign up with email currently. please use the method above.\")]),_c('div',{attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('div',{staticClass:\"flex-group\"},[_c('button',{staticClass:\"btn btn-secondary flex-item\",attrs:{\"type\":\"button\"},on:{\"click\":() => _vm.openEmailWarningModal(false)}},[_vm._v(\"\\n Close\\n \")])])])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"line-center text-center my-3\"},[_c('span',[_vm._v(\"or\")])])\n}]\n\nexport { render, staticRenderFns }","import api from \"@/Services/ApiService\";\r\n\r\nexport default {\r\n async register(input) {\r\n const res = await api.external({\r\n path: `/auth/register`,\r\n method: \"post\",\r\n input,\r\n });\r\n return res;\r\n }\r\n};","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Register.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Register.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Register.vue?vue&type=template&id=5d600663&scoped=true\"\nimport script from \"./Register.vue?vue&type=script&lang=js\"\nexport * from \"./Register.vue?vue&type=script&lang=js\"\nimport style0 from \"./Register.vue?vue&type=style&index=0&id=5d600663&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5d600663\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}