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AMC,YAAYwB,QAAU,GAAKnD,KAAK0B,MAAMQ,mBAAmBiB,QAAU,GAAKnD,KAAK0B,MAAMC,aAAe3B,KAAK0B,MAAMQ,kBAC3J,CAEQ,aAAMkB,GACVpD,KAAK4C,UAAY,IAAIS,gBAAgBC,OAAOC,SAASC,QACrDxD,KAAK0B,MAAMqB,MAAQ/C,KAAK4C,UAAUa,IAAI,eACG,SAArCzD,KAAK4C,UAAUa,IAAI,gBACnBzD,KAAKQ,OAAOsC,aAAc,EAElC,CAEQ,YAAM3B,GACV,GAAInB,KAAKM,QAAS,OAClBN,KAAKQ,OAAS,CACVC,kBAAkB,EAClBG,kBAAkB,EAClBkC,aAAa,GAEjB9C,KAAKM,SAAU,EAEf,MAAMoD,QAAiBnB,EAAQoB,cAAc3D,KAAK0B,OAC9CgC,EAASE,WACT5D,KAAKQ,OAAOsC,YAAcY,EAASE,WAEnCL,SAASM,KAAOC,EAAAA,EAAmBC,UAAUC,SAGjDhE,KAAKM,SAAU,CACnB,GArDiBmC,GAASwB,EAAAA,EAAAA,IAAA,EAN7BC,EAAAA,EAAAA,IAAU,CACP3C,KAAM,YACN4C,WAAY,CACRC,MAAKA,EAAAA,MAGQ3B,G,UCfsc,I,wBCQvd4B,GAAY,OACd,EACAvE,EACAwC,GACA,EACA,KACA,KACA,MAIF,QAAe+B,E,sBChBf,IAAIC,EAAU,EAAQ,OACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACG,EAAOC,GAAIJ,EAAS,MAC7DA,EAAQK,SAAQF,EAAOG,QAAUN,EAAQK,QAE5C,IAAIE,EAAM,WACGA,EAAI,WAAYP,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G,sGCNxEQ,EAA0B,IAA4B,KAE1DA,EAAwBC,KAAK,CAACN,EAAOC,GAAI,GAAI,KAE7C,S","sources":["webpack://website-js/./src/components/new-customer/OptInForm.vue","webpack://website-js/./src/components/new-customer/OptInForm.vue?6b9b","webpack://website-js/./src/components/new-customer/OptInForm.vue?8730","webpack://website-js/./src/components/new-customer/OptInForm.vue?6109","webpack://website-js/./src/components/new-customer/OptInForm.vue?77e1","webpack://website-js/./src/components/new-customer/OptInForm.vue?f910"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.translationsReady)?_c('div',{staticClass:\"login-new-password-form\"},[(_vm.loading)?_c('ProgressBar'):_vm._e(),(_vm.alerts.passwordmismatch)?_c('div',[_c('Alert',{attrs:{\"icon\":\"warning\",\"type\":\"danger\",\"display\":_vm.alerts.passwordmismatch,\"message\":_vm.$t('login.invalid-password-error', ['The passwords don\\'t match.'])}})],1):_vm._e(),(_vm.alerts.passwordtooshort)?_c('div',[_c('Alert',{attrs:{\"icon\":\"warning\",\"type\":\"danger\",\"display\":_vm.alerts.passwordtooshort,\"message\":_vm.$t('login.password-too-short', ['The password needs to be at least 8 characters.'])}})],1):_vm._e(),(_vm.alerts.passwordchangedfailed)?_c('div',[_c('Alert',{attrs:{\"icon\":\"warning\",\"type\":\"danger\",\"display\":_vm.alerts.passwordchangedfailed,\"message\":_vm.$t('login.passwordchanged-error', ['The system encountered a problem when changing your password.'])}})],1):_vm._e(),(_vm.alerts.passwordchanged)?_c('div',[_c('Alert',{attrs:{\"icon\":\"warning\",\"type\":\"danger\",\"display\":_vm.alerts.passwordchanged,\"message\":_vm.$t('login.password-changed', ['Password changed! You can now log in with your new credentials.'])}}),_vm._m(0)],1):_vm._e(),_c('form',{attrs:{\"uk-grid\":\"\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"actionid\",\"value\":\"resetpassword\"}}),_c('div',{staticClass:\"uk-width-1-2\"},[_c('div',{staticClass:\"uk-inline uk-width-1\"},[_c('span',{staticClass:\"uk-form-icon uk-form-icon-flip\",attrs:{\"uk-icon\":\"icon: lock\"}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.model.newpassword),expression:\"model.newpassword\"}],staticClass:\"uk-input\",attrs:{\"type\":\"password\",\"name\":\"newpassword\",\"minlength\":\"8\",\"placeholder\":_vm.$t('login.new-password', ['New password']),\"required\":\"\"},domProps:{\"value\":(_vm.model.newpassword)},on:{\"keyup\":_vm.validate,\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.model, \"newpassword\", $event.target.value)}}})])]),_c('div',{staticClass:\"uk-width-1-2\"},[_c('div',{staticClass:\"uk-inline uk-width-1\"},[_c('span',{staticClass:\"uk-form-icon uk-form-icon-flip\",attrs:{\"uk-icon\":\"icon: lock\"}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.model.confirmnewpassword),expression:\"model.confirmnewpassword\"}],staticClass:\"uk-input\",attrs:{\"type\":\"password\",\"name\":\"confirmnewpassword\",\"minlength\":\"8\",\"placeholder\":_vm.$t('login.repeat-new-password', ['Repeat new password']),\"required\":\"\"},domProps:{\"value\":(_vm.model.confirmnewpassword)},on:{\"keyup\":_vm.validate,\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.model, \"confirmnewpassword\", $event.target.value)}}})])]),_c('div',{staticClass:\"uk-width-1-2\"}),_c('div',{staticClass:\"uk-width-1-2 uk-text-right\"},[_c('button',{staticClass:\"uk-button-primary uk-button\",attrs:{\"type\":\"submit\",\"disabled\":!_vm.isValid || _vm.loading}},[_vm._v(\" \"+_vm._s(_vm.$t('actions.confirm', ['Confirm']))+\" \"),(!_vm.loading)?_c('span',{attrs:{\"uk-icon\":\"arrow-right\"}}):_vm._e(),(_vm.loading)?_c('div',{attrs:{\"uk-spinner\":\"ratio: 0.4\"}}):_vm._e()])])])],1):_vm._e()\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"uk-alert-success uk-animation-fade\",attrs:{\"uk-alert\":\"\"}},[_c('span',{attrs:{\"uk-icon\":\"check\"}})])\n}]\n\nexport { render, staticRenderFns }","\nimport { Component, Vue } from 'vue-property-decorator';\nimport Alert from '../utils/Alert.vue';\nimport { OptInRequest } from '@/models/SignUp';\nimport { CbxVariablesModule } from '../../store/modules/CbxVariablesModule';\nimport CustomerService from '@/services/CustomerService';\n\nconst service: CustomerService = new CustomerService();\n\n@Component({\n name: 'OptInForm',\n components: {\n Alert,\n },\n})\nexport default class OptInForm extends Vue {\n private urlParams: URLSearchParams = null;\n private loading: boolean = false;\n private alerts: any = {\n invalidtoken: false,\n passwordmismatch: false,\n passwordtooshort: false,\n optinfailed: false,\n };\n private model: OptInRequest = {\n newpassword: '',\n confirmnewpassword: '',\n token: '',\n }\n\n get translationsReady(): boolean {\n return this.$root.$data.translationsLoaded === true;\n }\n\n get isValid(): boolean {\n return this.model.newpassword.length >= 8 && this.model.newpassword === this.model.confirmnewpassword;\n }\n\n private validate() {\n this.alerts.passwordtooshort = this.model.newpassword.length < 8 && this.model.confirmnewpassword.length > 0;\n this.alerts.passwordmismatch = this.model.newpassword.length >= 8 && this.model.confirmnewpassword.length >= 8 && this.model.newpassword != this.model.confirmnewpassword;\n }\n\n private async created() {\n this.urlParams = new URLSearchParams(window.location.search);\n this.model.token = this.urlParams.get('verifytoken');\n if (this.urlParams.get('optinerror') === 'true') {\n this.alerts.optinfailed = true;\n }\n }\n\n private async submit() {\n if (this.loading) return;\n this.alerts = {\n passwordmismatch: false,\n passwordtooshort: false,\n optinfailed: false,\n }\n this.loading = true;\n \n const response = await service.finalizeOptIn(this.model);\n if (response.optinerror)\n this.alerts.optinfailed = response.optinerror;\n else {\n location.href = CbxVariablesModule.VARIABLES.homepage;\n }\n\n this.loading = false;\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./OptInForm.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./OptInForm.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./OptInForm.vue?vue&type=template&id=ca7e8374\"\nimport script from \"./OptInForm.vue?vue&type=script&lang=ts\"\nexport * from \"./OptInForm.vue?vue&type=script&lang=ts\"\nimport style0 from \"./OptInForm.vue?vue&type=style&index=0&id=ca7e8374&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/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","// style-loader: Adds some css to the DOM by adding a