{"version":3,"sources":["webpack:///./src/pages/Vendor/registration/VendorRegistration.vue?bb9f","webpack:///src/pages/Vendor/registration/VendorRegistration.vue","webpack:///./src/pages/Vendor/registration/VendorRegistration.vue?4512","webpack:///./src/pages/Vendor/registration/VendorRegistration.vue","webpack:///./src/services/registration.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","attrs","activeStep","ref","scopedSlots","_u","key","fn","handleSubmit","status","STATUS_INIT","STATUS_LOADING","STATUS_SUBMITTED","_e","STATUS_CODE_VALID","_s","validVendor","vendorName","address","undefined","addressOne","city","state","postalCode","on","verify","STATUS_VERIFIED","$event","preventDefault","onFormSubmit","model","value","formData","callback","$$v","$set","expression","errors","STATUS_COMPLETE","STATUS_ERROR","errorMsg","staticRenderFns","email","firstName","lastName","password","agreeToTerms","components","ValidInput","ValidSelect","ValidationObserver","ValidationProvider","data","isDebug","formComplete","methods","error","msg","resetForm","$refs","form","reset","name","getFormPayload","payload","signupCode","code","component","registration","RegisterHOABoardMember","url","KMS_BACKEND","axios","post","catch","handleServiceErrors","resp","ConfirmEmail","userID","confirmEmailToken","scope","appId","token","refreshToken","expiration","auth","saveToken","initUser","GetBoardMemberQuestions","get","headers","authHeaders","SubmitBoardMemberAnswers","boardMemberAnswers","ValidateOwnerSignupCode","params","ValidateOwnerSignupCodeWithSuccess","ValidateVendorSignupCodeWithSuccess","ValidateVendorSignupCode","CheckUserExists","emailAddress","RegisterOwner","RegisterVendor"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,8BAA8B,CAACF,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,oCAAoC,CAACF,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,KAAK,CAACE,Y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AAe,WAAF,8CAAE,WAAMrC,GAAN,gGACPM,EADO,UACEC,OADF,gCAEMC,IAAMC,KAAKH,EAAKN,GAASU,MAAMC,QAFrC,cAEPC,EAFO,yBAGNA,EAAKxB,MAHC,2CAAF,sDAAE,GAOfkD,eAAgB,WAAF,8CAAE,WAAMtC,GAAN,gGACRM,EADQ,UACCC,OADD,iCAEKC,IAAMC,KAAKH,EAAKN,GAASU,MAAMC,QAFpC,cAERC,EAFQ,yBAGPA,EAAKxB,MAHE,2CAAF,sDAAE,IAOHgB","file":"js/chunk-323498ae.2c238199.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"section vendorregistration\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"columns is-centered is-vcentered\"},[_c('div',{staticClass:\"column is-three-fifths\"},[_c('div',{staticClass:\"form-box\"},[_c('h3',{staticClass:\"has-text-centered\"},[_vm._v(\"Vendor Registration\")]),_c('b-steps',{attrs:{\"has-navigation\":false,\"mobile-mode\":null,\"value\":_vm.activeStep}},[_c('b-step-item',{attrs:{\"label\":\"Validation\",\"icon\":\"account-key\",\"clickable\":false}}),_c('b-step-item',{attrs:{\"label\":\"Profile\",\"icon\":\"account\",\"clickable\":false}}),_c('b-step-item',{attrs:{\"label\":\"Confirmation\",\"icon\":\"account-plus\",\"clickable\":false}})],1),_c('ValidationObserver',{ref:\"form\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[(_vm.status === _vm.STATUS_INIT)?_c('div',{staticClass:\"has-responsive-type has-text-centered\"},[_c('h4',[_vm._v(\"Initializing...\")])]):(_vm.status === _vm.STATUS_LOADING)?_c('div',{staticClass:\"has-responsive-type has-text-centered\"},[_c('h4',[_vm._v(\"Loading...\")])]):(_vm.status === _vm.STATUS_SUBMITTED)?_c('div',{staticClass:\"has-responsive-type has-text-centered\"},[_c('h4',[_vm._v(\"Processing...\")])]):_vm._e(),(_vm.status === _vm.STATUS_CODE_VALID)?_c('div',{staticClass:\"has-responsive-type\"},[_c('h4',[_vm._v(\"Please start by verifying your Vendor Name.\")]),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-content has-text-centered\"},[_c('h5',[_vm._v(_vm._s(_vm.validVendor.vendorName || ''))]),(_vm.validVendor.address && _vm.validVendor.address != undefined)?_c('h6',[_vm._v(\" \"+_vm._s(_vm.validVendor.address.addressOne || '')+\" \"),_c('br'),_vm._v(\" \"+_vm._s(_vm.validVendor.address.city || '')+\", \"+_vm._s(_vm.validVendor.address.state || '')+\" \"+_vm._s(_vm.validVendor.address.postalCode || '')+\" \")]):_vm._e(),_c('button',{staticClass:\"button is-primary is-fullwidth is-medium\",on:{\"click\":_vm.verify}},[_vm._v(\" Yes. This is me. \")])])])]):(_vm.status === _vm.STATUS_VERIFIED)?_c('form',{staticClass:\"form\",on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.onFormSubmit)}}},[_c('h4',[_vm._v(\"Now, let's setup your account.\")]),_c('fieldset',[_c('div',{staticClass:\"form-grid\"},[_c('div',{staticClass:\"column is-12\"},[_c('h5',[_vm._v(\" Please confirm your name, email, and password. \")])]),_c('div',{staticClass:\"column is-6\"},[_c('valid-input',{attrs:{\"type\":\"text\",\"vid\":\"firstName\",\"placeholder\":\"First Name\",\"rules\":\"required\",\"autocomplete\":\"off\"},model:{value:(_vm.formData.firstName),callback:function ($$v) {_vm.$set(_vm.formData, \"firstName\", $$v)},expression:\"formData.firstName\"}})],1),_c('div',{staticClass:\"column is-6\"},[_c('valid-input',{attrs:{\"type\":\"text\",\"vid\":\"lastName\",\"placeholder\":\"Last Name\",\"rules\":\"required\",\"autocomplete\":\"off\"},model:{value:(_vm.formData.lastName),callback:function ($$v) {_vm.$set(_vm.formData, \"lastName\", $$v)},expression:\"formData.lastName\"}})],1),_c('div',{staticClass:\"column is-12\"},[_c('valid-input',{attrs:{\"type\":\"email\",\"vid\":\"email\",\"placeholder\":\"Email\",\"icon\":\"email\",\"rules\":\"required|email\"},model:{value:(_vm.formData.email),callback:function ($$v) {_vm.$set(_vm.formData, \"email\", $$v)},expression:\"formData.email\"}})],1)])]),_c('fieldset',[_c('div',{staticClass:\"form-grid\"},[_c('div',{staticClass:\"column\"},[_c('valid-input',{attrs:{\"name\":\"password\",\"vid\":\"password\",\"type\":\"password\",\"placeholder\":\"Password\",\"icon\":\"lock\",\"rules\":\"required|min:6\"},model:{value:(_vm.formData.password),callback:function ($$v) {_vm.$set(_vm.formData, \"password\", $$v)},expression:\"formData.password\"}})],1)])]),_c('fieldset',[_c('ValidationProvider',{attrs:{\"vid\":\"terms\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"field\"},[_c('b-checkbox',{attrs:{\"required\":\"\"},model:{value:(_vm.formData.agreeToTerms),callback:function ($$v) {_vm.$set(_vm.formData, \"agreeToTerms\", $$v)},expression:\"formData.agreeToTerms\"}},[_vm._v(\" I agree to the Terms & Conditions \")]),_c('span',[_vm._v(_vm._s(errors[0]))])],1)]}}],null,true)})],1),_c('button',{staticClass:\"button is-primary is-fullwidth\",attrs:{\"type\":\"submit\",\"disabled\":_vm.status === _vm.STATUS_SUBMITTED}},[_vm._v(\" Submit Registration \")])]):(_vm.status === _vm.STATUS_COMPLETE)?_c('div',{staticClass:\"has-responsive-type has-text-centered\"},[_c('h4',[_vm._v(\" Thank you for registering. \")]),_c('div',{staticClass:\"content\"},[_c('p',[_vm._v(\"Your information has been received.\")]),_c('p',[_vm._v(\" Please check your email for a confirmation link. \")])])]):(_vm.status === _vm.STATUS_ERROR)?_c('div',{staticClass:\"has-responsive-type has-text-centered\"},[_c('h4',[_vm._v(\"An error has occured.\")]),_c('p',[_vm._v(_vm._s(_vm.errorMsg))])]):_vm._e()])]}}])})],1)])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\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!./VendorRegistration.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!./VendorRegistration.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VendorRegistration.vue?vue&type=template&id=6cae74f4&\"\nimport script from \"./VendorRegistration.vue?vue&type=script&lang=js&\"\nexport * from \"./VendorRegistration.vue?vue&type=script&lang=js&\"\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 null,\n null\n \n)\n\nexport default component.exports","import axios from 'axios'\r\nimport auth from '@/services/_auth'\r\nimport { KMS_BACKEND, appId } from '@/config'\r\nimport { handleServiceErrors } from '@/services/errors'\r\n\r\n// KMS Backend Registration Service\r\nconst registration = {\r\n // Register management user\r\n RegisterHOABoardMember: async payload => {\r\n const url = `${KMS_BACKEND}/User/RegisterHOABoardMember`\r\n const resp = await axios.post(url, payload).catch(handleServiceErrors)\r\n return resp.data\r\n },\r\n\r\n ConfirmEmail: async (userID, confirmEmailToken) => {\r\n const url = `${KMS_BACKEND}/User/ConfirmEmail`\r\n const data = { userID, confirmEmailToken, scope: appId() }\r\n const resp = await axios.post(url, data).catch(handleServiceErrors)\r\n\r\n // Email confirmation gives back valid token\r\n // Use it to init authenticated user\r\n const { token, refreshToken, expiration } = resp.data\r\n auth.saveToken(token, refreshToken, expiration)\r\n return await auth.initUser()\r\n },\r\n\r\n GetBoardMemberQuestions: async () => {\r\n const url = `${KMS_BACKEND}/BoardMemberQuestion/List`\r\n const resp = await axios.get(url, { headers: auth.authHeaders() }).catch(handleServiceErrors)\r\n return resp.data\r\n },\r\n\r\n SubmitBoardMemberAnswers: async payload => {\r\n const url = `${KMS_BACKEND}/BoardMemberAnswer/SubmitAnswers`\r\n const resp = await axios\r\n .post(url, { boardMemberAnswers: payload }, { headers: auth.authHeaders() })\r\n .catch(handleServiceErrors)\r\n return resp.data\r\n },\r\n\r\n // Validates that a signup code exists, and if it does,\r\n // returns the unit/owner info to display to the user for verification.\r\n ValidateOwnerSignupCode: async signupCode => {\r\n const url = `${KMS_BACKEND}/User/ValidateOwnerSignupCode`\r\n const resp = await axios.get(url, { params: { signupCode } }).catch(handleServiceErrors)\r\n return resp.data\r\n },\r\n\r\n // Validates that a signup code exists, and if it does,\r\n // returns the unit/owner info to display to the user for verification.\r\n ValidateOwnerSignupCodeWithSuccess: async signupCode => {\r\n const url = `${KMS_BACKEND}/User/ValidateOwnerSignupCodeWithSuccess`\r\n const resp = await axios.get(url, { params: { signupCode } }).catch(handleServiceErrors)\r\n return resp.data\r\n },\r\n\r\n // Validates that a signup code exists, and if it does,\r\n // returns true for verification.\r\n ValidateVendorSignupCodeWithSuccess: async signupCode => {\r\n const url = `${KMS_BACKEND}/User/ValidateVendorSignupCodeWithSuccess`\r\n const resp = await axios.get(url, { params: { signupCode } }).catch(handleServiceErrors)\r\n return resp.data\r\n },\r\n\r\n // Validates that a signup code exists, and if it does,\r\n // returns the vendor info to display to the user for verification.\r\n ValidateVendorSignupCode: async signupCode => {\r\n const url = `${KMS_BACKEND}/User/ValidateVendorSignupCode`\r\n const resp = await axios.get(url, { params: { signupCode } }).catch(handleServiceErrors)\r\n return resp.data\r\n },\r\n\r\n // Checks whether an identity exists for a given email address in the database.\r\n // Valid signup code required to prevent possible brute force email address checks\r\n CheckUserExists: async (emailAddress, signupCode) => {\r\n const url = `${KMS_BACKEND}/User/CheckUserExists`\r\n const resp = await axios\r\n .get(url, { params: { emailAddress, signupCode } })\r\n .catch(handleServiceErrors)\r\n return resp.data\r\n },\r\n\r\n // Register homeowner\r\n RegisterOwner: async payload => {\r\n const url = `${KMS_BACKEND}/User/RegisterOwner`\r\n const resp = await axios.post(url, payload).catch(handleServiceErrors)\r\n return resp.data\r\n },\r\n\r\n // Register vendor\r\n RegisterVendor: async payload => {\r\n const url = `${KMS_BACKEND}/User/RegisterVendor`\r\n const resp = await axios.post(url, payload).catch(handleServiceErrors)\r\n return resp.data\r\n }\r\n}\r\n\r\nexport default registration\r\n"],"sourceRoot":""}