{"version":3,"sources":["webpack:///./src/pages/Homeowner/registration/HomeownerSignUp2.vue?1be0","webpack:///./src/services/registration.js","webpack:///./src/assets/images/onboarding-couch.png","webpack:///./src/pages/Homeowner/registration/HomeownerSignUp2.vue?4dee","webpack:///src/pages/Homeowner/registration/HomeownerSignUp2.vue","webpack:///./src/pages/Homeowner/registration/HomeownerSignUp2.vue?0176","webpack:///./src/pages/Homeowner/registration/HomeownerSignUp2.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","module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","ref","attrs","on","$event","preventDefault","onFormSubmit","apply","arguments","model","value","formData","callback","$$v","$set","expression","scopedSlots","_u","key","fn","errors","_s","staticStyle","staticRenderFns","notifyError","e","duration","message","position","type","ownerSetupCode","components","PageContent","ValidInput","ValidationObserver","ValidationProvider","isDebug","formComplete","watch","hoaId","resetForm","computed","methods","$refs","form","reset","component"],"mappings":"gHAAA,yBAAulB,EAAG,G,qHCMplBA,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,M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a,SAASpB,MAAM,CAAC,OAAS,OAAO,MAAQ,OAAO,IAAM,EAAQ,cAA8C,MACrbqB,EAAkB,G,wHCqEtB,SAASC,EAAYC,GACnB,EAAF,WACIC,SAAU,IACVC,QAASF,EAAEE,SAAWF,EACtBG,SAAU,YACVC,KAAM,cAIV,OACEC,eAAgB,IAGlB,GACEC,WAAY,CACVC,YAAJ,OACIC,WAAJ,OACIC,mBAAJ,OACIC,mBAAJ,QAGEzE,KAAM,WACJ,MAAO,CACL0E,SAAS,EACTC,cAAc,EACd1B,SAAU,OAAhB,OAAgB,CAAhB,GACA,KAKE,QAlBF,WAkBA,wJACA,cADA,8CAIE2B,MAAO,CACLC,MADJ,WAEM7C,KAAK8C,cAITC,SAAU,OAAZ,OAAY,CAAZ,GACA,gBACI,MAAJ,YAAM,OAAN,yBAIEC,QAAS,CACPF,UADJ,WAEM9C,KAAKiB,SAAW,OAAtB,OAAsB,CAAtB,MACUjB,KAAKiD,MAAMC,MACblD,KAAKiD,MAAMC,KAAKC,SAIpB,aARJ,WAQA,0KAGA,iBACA,eACA,gCACA,6BANA,uBAQA,+DARA,mDAaA,0CACA,2BAdA,UAaA,EAbA,QAiBA,aAjBA,oBAkBA,4DAEA,KApBA,wBAqBA,oCArBA,0DAyBA,oCAzBA,uFA6BA,oCA7BA,2BAkCA,kBACA,gBACA,yBACA,0CArCA,qDAyCA,wBACA,oCAEA,QA5CA,QA8CA,aA9CA,sEC/HwX,I,wBCQpXC,EAAY,eACd,EACAtD,EACA+B,GACA,EACA,KACA,WACA,MAIa,aAAAuB,E","file":"js/chunk-f82ea2ba.e103e18f.js","sourcesContent":["import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HomeownerSignUp2.vue?vue&type=style&index=0&id=5558ce74&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HomeownerSignUp2.vue?vue&type=style&index=0&id=5558ce74&lang=scss&scoped=true&\"","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","module.exports = __webpack_public_path__ + \"img/onboarding-couch.a2fce9a1.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContent',[_c('div',{staticClass:\"box is-12 gradient-bg\"},[_c('div',{staticClass:\"welcome-to-homeowner pb-4\"},[_c('div',{staticClass:\"text-style-1\"},[_vm._v(\"Welcome to\")]),_c('div',[_vm._v(\"Homeowner Setup\")])]),_c('ValidationObserver',{ref:\"form\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[_c('div',{staticClass:\"items-center\"},[_c('form',{staticClass:\"form box white-box text-left\",on:{\"submit\":function($event){$event.preventDefault();return _vm.onFormSubmit.apply(null, arguments)}}},[_c('div',{staticClass:\"step-1-find-your-cod\"},[_c('span',{staticClass:\"text-style-1\"},[_vm._v(\"Step 2\")]),_c('div',[_vm._v(\"Enter your code\")])]),_c('div',{staticClass:\"if-you-cannot-find-y force-left\"},[_vm._v(\" If you cannot find your setup code or didn’t receive your billing statement, please email \"),_c('span',{staticClass:\"text-style-1\"},[_vm._v(\"support@hoamyway.com\")]),_vm._v(\" for help. \")]),_c('fieldset',[_c('div',{staticClass:\"form-grid force-left\"},[_c('div',{staticClass:\"column is-6\"},[_c('valid-input',{attrs:{\"label\":\"Enter Your Code Below\",\"type\":\"text\",\"vid\":\"setupcode\",\"placeholder\":\"Setup Code\",\"rules\":\"required|max:20\"},model:{value:(_vm.formData.ownerSetupCode),callback:function ($$v) {_vm.$set(_vm.formData, \"ownerSetupCode\", $$v)},expression:\"formData.ownerSetupCode\"}})],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('fieldset',[_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"type\":\"submit\"}},[_vm._v(\" Submit Code Now > \")])])])])])],1),_c('div',{staticClass:\"image-padding\"},[_c('img',{staticClass:\"hero-image\",staticStyle:{\"min-height\":\"200px\"},attrs:{\"height\":\"100%\",\"width\":\"100%\",\"src\":require('@/assets/images/onboarding-couch.png')}})])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./HomeownerSignUp2.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!./HomeownerSignUp2.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./HomeownerSignUp2.vue?vue&type=template&id=5558ce74&scoped=true&\"\nimport script from \"./HomeownerSignUp2.vue?vue&type=script&lang=js&\"\nexport * from \"./HomeownerSignUp2.vue?vue&type=script&lang=js&\"\nimport style0 from \"./HomeownerSignUp2.vue?vue&type=style&index=0&id=5558ce74&lang=scss&scoped=true&\"\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 \"5558ce74\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}