{"version":3,"sources":["webpack:///./src/services/registration.js","webpack:///./src/pages/Vendor/registration/VendorSignUp.vue?9ca4","webpack:///src/pages/Vendor/registration/VendorSignUp.vue","webpack:///./src/pages/Vendor/registration/VendorSignUp.vue?2c35","webpack:///./src/pages/Vendor/registration/VendorSignUp.vue"],"names":["registration","RegisterHOABoardMember","payload","url","KMS_BACKEND","axios","post","catch","handleServiceErrors","resp","data","ConfirmEmail","userID","confirmEmailToken","scope","appId","token","refreshToken","expiration","auth","saveToken","initUser","GetBoardMemberQuestions","get","headers","authHeaders","SubmitBoardMemberAnswers","boardMemberAnswers","ValidateOwnerSignupCode","signupCode","params","ValidateOwnerSignupCodeWithSuccess","ValidateVendorSignupCodeWithSuccess","ValidateVendorSignupCode","CheckUserExists","emailAddress","RegisterOwner","RegisterVendor","render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","ref","on","$event","preventDefault","onFormSubmit","apply","arguments","model","value","formData","callback","$$v","$set","expression","scopedSlots","_u","key","fn","errors","_v","_s","staticRenderFns","notifyError","e","duration","message","position","type","vendorSetupCode","components","PageContent","ValidInput","ValidationObserver","ValidationProvider","isDebug","formComplete","watch","hoaId","resetForm","computed","methods","$refs","form","reset","component"],"mappings":"mMAMMA,EAAe,CAEnBC,uBAAwB,WAAF,8CAAE,WAAMC,GAAN,gGAChBC,EADgB,UACPC,OADO,yCAEHC,IAAMC,KAAKH,EAAKD,GAASK,MAAMC,QAF5B,cAEhBC,EAFgB,yBAGfA,EAAKC,MAHU,2CAAF,sDAAE,GAMxBC,aAAc,WAAF,8CAAE,WAAOC,EAAQC,GAAf,0GACNV,EADM,UACGC,OADH,sBAENM,EAAO,CAAEE,SAAQC,oBAAmBC,MAAOC,kBAFrC,SAGOV,IAAMC,KAAKH,EAAKO,GAAMH,MAAMC,QAHnC,cAGNC,EAHM,SAOgCA,EAAKC,KAAzCM,EAPI,EAOJA,MAAOC,EAPH,EAOGA,aAAcC,EAPjB,EAOiBA,WAC7BC,OAAKC,UAAUJ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,KArBA,wBAsBA,2CAtBA,0DA0BA,2CA1BA,uFA8BA,2CA9BA,2BAmCA,kBACA,gBACA,sBACA,2CAtCA,qDA0CA,wBACA,oCAEA,QA7CA,QA+CA,aA/CA,sECtGoX,I,YCOhXC,EAAY,eACd,EACArD,EACA8B,GACA,EACA,KACA,KACA,MAIa,aAAAuB,E","file":"js/chunk-6db8959a.7bacef77.js","sourcesContent":["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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContent',{attrs:{\"title\":\"Vendor Sign-Up\"}},[_c('div',{staticClass:\"box is-8\"},[_c('ValidationObserver',{ref:\"form\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[_c('form',{staticClass:\"form\",on:{\"submit\":function($event){$event.preventDefault();return _vm.onFormSubmit.apply(null, arguments)}}},[_c('fieldset',[_c('div',{staticClass:\"form-grid\"},[_c('div',{staticClass:\"column is-6\"},[_c('valid-input',{attrs:{\"label\":\"Vendor Setup Code\",\"type\":\"text\",\"vid\":\"setupcode\",\"placeholder\":\"Setup Code\",\"rules\":\"required|max:20\"},model:{value:(_vm.formData.vendorSetupCode),callback:function ($$v) {_vm.$set(_vm.formData, \"vendorSetupCode\", $$v)},expression:\"formData.vendorSetupCode\"}})],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('span',[_vm._v(_vm._s(errors[0]))])])]}}])})],1),_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"type\":\"submit\"}},[_vm._v(\" Submit \")])])])],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n \r\n\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!./VendorSignUp.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!./VendorSignUp.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VendorSignUp.vue?vue&type=template&id=65a7d122&\"\nimport script from \"./VendorSignUp.vue?vue&type=script&lang=js&\"\nexport * from \"./VendorSignUp.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"],"sourceRoot":""}