{"version":3,"sources":["webpack:///./src/views/public/JoinVerify.vue?eb8d","webpack:///./src/models/unverifiedmembers/VerifyRequestModel.ts","webpack:///./src/views/public/JoinVerify.vue","webpack:///./src/views/public/JoinVerify.vue?6e48","webpack:///./src/views/public/JoinVerify.vue?f668","webpack:///./src/apis/UnverifiedMembersApi.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","ref","tokenRules","model","value","callback","$$v","token","expression","name","processing","on","verifyClick","_l","e","index","key","_s","_e","staticRenderFns","verificationToken","trim","length","isFormValid","resetProcessingValues","request","api","UnverifiedMembersApi","verifyAsync","$router","push","handleProcessingErrorAsync","form","$refs","verifyForm","validate","ViewBase","component","VAlert","VBtn","VCard","VCardText","VCardTitle","VCol","VContainer","VForm","VRow","VTextField","httpClient","postAsync","handleApiError"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,QAAU,WAAW,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,KAAK,GAAK,KAAK,GAAK,MAAM,CAACF,EAAG,SAAS,CAACA,EAAG,eAAe,CAACG,YAAY,2BAA2B,CAACP,EAAIQ,GAAG,kBAAkBJ,EAAG,cAAc,CAACG,YAAY,oBAAoB,CAACH,EAAG,SAAS,CAACK,IAAI,aAAaF,YAAY,QAAQ,CAACH,EAAG,eAAe,CAACG,YAAY,OAAOD,MAAM,CAAC,MAAQ,oBAAoB,eAAe,UAAU,MAAQ,CAACN,EAAIU,YAAY,kBAAkB,GAAG,KAAO,wEAAwEC,MAAM,CAACC,MAAOZ,EAAS,MAAEa,SAAS,SAAUC,GAAMd,EAAIe,MAAMD,GAAKE,WAAW,WAAWZ,EAAG,MAAM,CAACG,YAAY,yBAAyB,CAACP,EAAIQ,GAAG,UAAUJ,EAAG,cAAc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KACA,KACA,MAIa,aAAAkB,EAAiB,QAchC,IAAkBA,EAAW,CAACC,SAAA,KAAOC,OAAA,KAAKC,QAAA,KAAMC,UAAA,OAAUC,WAAA,OAAWC,OAAA,KAAKC,aAAA,KAAWC,QAAA,KAAMC,OAAA,KAAKC,aAAA,Q,sKC1B3EpB,E,iPACQF,G,uGAGXuB,EAAa,IAAI,O,SAEIA,EAAWC,UAAU,oBAAqBxB,G,0FAG9DhC,KAAKyD,eAAL,O,kOAI4BzB,G,uGAG7BuB,EAAa,IAAI,O,SAEIA,EAAWC,UAAU,6CAA8CxB,G,0FAGvFhC,KAAKyD,eAAL,O,gNAIUzB,G,uGAGXuB,EAAa,IAAI,O,SAEIA,EAAWC,UAAU,2BAA4BxB,G,0FAGrEhC,KAAKyD,eAAL,O,wHAjC+B","file":"js/chunk-7abdb85c.82d54d00.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('v-row',{attrs:{\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"xs\":\"12\",\"md\":\"6\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline justify-center\"},[_vm._v(\"VERIFICATION\")]),_c('v-card-text',{staticClass:\"mt-4 black--text\"},[_c('v-form',{ref:\"verifyForm\",staticClass:\"px-3\"},[_c('v-text-field',{staticClass:\"mb-3\",attrs:{\"label\":\"Verification Code\",\"prepend-icon\":\"mdi-key\",\"rules\":[_vm.tokenRules],\"persistent-hint\":\"\",\"hint\":\"Enter the verification code from the email you should have received.\"},model:{value:(_vm.token),callback:function ($$v) {_vm.token=$$v},expression:\"token\"}}),_c('div',{staticClass:\"text-center mt-8 mb-8\"},[_vm._v(\"Click \"),_c('router-link',{attrs:{\"to\":{name: 'joinreissue'}}},[_vm._v(\"here\")]),_vm._v(\" if you need to re-issue a verification code.\")],1),_c('div',{staticClass:\"text-center\"},[_c('v-btn',{staticClass:\"primary\",attrs:{\"loading\":_vm.processing},on:{\"click\":_vm.verifyClick}},[_vm._v(\"VERIFY\")])],1),(_vm.processingError)?_c('div',{staticClass:\"text-center mt-4\"},_vm._l((_vm.processingErrors),function(e,index){return _c('div',{key:index},[_c('v-alert',{attrs:{\"value\":true,\"type\":\"error\",\"outlined\":\"\"}},[_vm._v(_vm._s(e))])],1)}),0):_vm._e()],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nexport default class VerifyRequestModel {\r\n public verificationToken: string = '';\r\n}\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport {Component, Vue} from 'vue-property-decorator';\r\nimport ViewBase from '@/views/ViewBase';\r\nimport UnverifiedMembersApi from '@/apis/UnverifiedMembersApi';\r\nimport VerifyRequestModel from '@/models/unverifiedmembers/VerifyRequestModel';\r\n\r\n@Component({\r\n name: 'JoinVerify',\r\n },\r\n)\r\nexport default class JoinVerify extends ViewBase {\r\n public token: string = '';\r\n\r\n public tokenRules(value: string): any {\r\n if ( value.trim().length === 0) {\r\n return 'A verification code is required.';\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public async verifyClick() {\r\n\r\n if ( this.isFormValid() ) {\r\n try {\r\n this.resetProcessingValues();\r\n\r\n const request = new VerifyRequestModel();\r\n request.verificationToken = this.token;\r\n\r\n const api = new UnverifiedMembersApi();\r\n const response = await api.verifyAsync(request);\r\n\r\n await this.$router.push({name: 'signin'});\r\n }\r\n catch ( err ) {\r\n await this.handleProcessingErrorAsync(err);\r\n }\r\n finally {\r\n this.processing = false;\r\n }\r\n }\r\n }\r\n\r\n private isFormValid(): boolean {\r\n const form: any = this.$refs.verifyForm;\r\n\r\n return form.validate();\r\n }\r\n\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JoinVerify.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./JoinVerify.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./JoinVerify.vue?vue&type=template&id=07f9d7dd&\"\nimport script from \"./JoinVerify.vue?vue&type=script&lang=ts&\"\nexport * from \"./JoinVerify.vue?vue&type=script&lang=ts&\"\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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VAlert,VBtn,VCard,VCardText,VCardTitle,VCol,VContainer,VForm,VRow,VTextField})\n","import CashTamerHttpClient from './CashTamerHttpClient';\r\nimport CashTamerApiBase from './CashTamerApiBase';\r\nimport CreateUnverifiedMemberModel from '@/models/unverifiedmembers/CreateUnverifiedMemberRequestModel';\r\nimport ReissueVerificationTokenRequestModel from '@/models/unverifiedmembers/ReissueVerificationTokenRequestModel';\r\nimport VerifyRequestModel from '@/models/unverifiedmembers/VerifyRequestModel';\r\n\r\nexport default class UnverifiedMembersApi extends CashTamerApiBase {\r\n public async createAsync(request: CreateUnverifiedMemberModel): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const httpResponse = await httpClient.postAsync('unverifiedmembers', request);\r\n }\r\n catch (err) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n\r\n public async reissueVerificationTokenAsync(request: ReissueVerificationTokenRequestModel): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const httpResponse = await httpClient.postAsync('unverifiedmembers/reissueverificationtoken', request);\r\n }\r\n catch (err) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n\r\n public async verifyAsync(request: VerifyRequestModel): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const httpResponse = await httpClient.postAsync('unverifiedmembers/verify', request);\r\n }\r\n catch (err) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n}\r\n"],"sourceRoot":""}