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,EACA,KACA,KACA,MAIF,QAAeA,EAAiB,Q,eCHhC,IAAqBC,EAArB,cAAmC3B,EAAAA,GAAGC,eAAAC,GAAA,SAAAA,IAAAC,EAAAA,EAAAA,GAAA,iBACG,OAAIA,EAAAA,EAAAA,GAAA,6BACD,EAAK,CAEzCyB,iBACA,OAAOX,EAAAA,EAAWY,YACtB,CAEQC,UACJ/E,KAAK2D,UAAY,IAAIC,IAAJ,CAAoBC,OAAOC,SAASC,QACjD/D,KAAK2D,UAAUK,IAAI,SACnBhE,KAAKK,sBAAuB,EAEpC,GAbiBuE,GAAKN,EAAAA,EAAAA,IAAA,EARzBC,EAAAA,EAAAA,IAAU,CACPzC,KAAM,QACN0C,WAAY,CACRQ,UAAS,IACTN,uBAAsB,IACtB1B,qBAAoBA,MAGP4B,G,UChBmc,I,aCQpd,GAAY,OACd,EACA9E,EACAW,GACA,EACA,KACA,KACA,MAIF,QAAe,EAAiB,O,kBChBhC,IAAIwE,EAAU,EAAQ,OACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACrF,EAAOC,GAAIoF,EAAS,MAC7DA,EAAQG,SAAQxF,EAAOyF,QAAUJ,EAAQG,QAE5C,IAAIE,EAAM,WACGA,EAAI,WAAYL,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G,kBCN5E,IAAIA,EAAU,EAAQ,OACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACrF,EAAOC,GAAIoF,EAAS,MAC7DA,EAAQG,SAAQxF,EAAOyF,QAAUJ,EAAQG,QAE5C,IAAIE,EAAM,WACGA,EAAI,WAAYL,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://website-js/./src/components/login/Login.vue?24ab","webpack://website-js/./src/components/login/LoginNewPasswordForm.vue?a674","webpack://website-js/./src/components/login/Login.vue","webpack://website-js/./src/components/login/LoginNewPasswordForm.vue","webpack://website-js/./src/components/login/LoginNewPasswordForm.vue?b359","webpack://website-js/./src/components/login/LoginNewPasswordForm.vue?e6ed","webpack://website-js/./src/components/login/LoginNewPasswordForm.vue?f8a9","webpack://website-js/./src/components/login/Login.vue?6abe","webpack://website-js/./src/components/login/Login.vue?57ad","webpack://website-js/./src/components/login/Login.vue?1cbb","webpack://website-js/./src/components/login/Login.vue?22e6","webpack://website-js/./src/components/login/LoginNewPasswordForm.vue?a5e2"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.login{margin:0 auto}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ``, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"login\"},[(!_vm.displayResetPassword)?_c('LoginForm'):_c('LoginNewPasswordForm',{on:{\"toggle-login\":function($event){return _vm.passwordResetted()}}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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.invalidkey)?_c('div',[_c('Alert',{attrs:{\"icon\":\"warning\",\"type\":\"danger\",\"display\":_vm.alerts.invalidkey,\"message\":_vm.$t('login.invalid-key-error', ['Invalid key! Please note: The reset password link is only valid for 24 hours after the request is submitted. Click the link below to send a new request.'])}},[_c('a',{on:{\"click\":function($event){return _vm.modalShow('resetPassword')}}},[_vm._v(\" \"+_vm._s(_vm.$t('login.password-request-again', ['Re-send request']))+\" \")])])],1):_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()])])]),_c('Modal',{attrs:{\"width\":\"600px\",\"height\":\"240px\"},on:{\"close-modal\":function($event){return _vm.modalHide('resetPassword')}},model:{value:(_vm.modals.resetPassword),callback:function ($$v) {_vm.$set(_vm.modals, \"resetPassword\", $$v)},expression:\"modals.resetPassword\"}},[_c('ModalHeader',{attrs:{\"title\":_vm.$t('login.reset-password', ['Reset password']),\"icon\":\"lock\"},on:{\"close-modal\":function($event){return _vm.modalHide('resetPassword')}}}),_c('LoginResetPasswordForm',{on:{\"close-modal\":function($event){return _vm.modalHide('resetPassword')}}})],1)],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 }","\r\nimport { Component, Vue } from 'vue-property-decorator';\r\nimport URLSearchParams from 'url-search-params';\r\nimport Alert from '../utils/Alert.vue';\r\nimport { ChangePasswordRequest } from '@/models/SignIn';\r\nimport LoginResetPasswordForm from './LoginResetPasswordForm.vue';\r\nimport UserModule from '@/store/modules/UserModule';\r\n\r\n@Component({\r\n name: 'LoginNewPasswordForm',\r\n components: {\r\n Alert,\r\n LoginResetPasswordForm,\r\n },\r\n})\r\nexport default class LoginNewPasswordForm extends Vue {\r\n private urlParams: URLSearchParams = null;\r\n private loading: boolean = false;\r\n private actionUrl: string = '';\r\n private modals: any = {\r\n resetPassword: false,\r\n };\r\n private alerts: any = {\r\n invalidkey: false,\r\n passwordmismatch: false,\r\n passwordtooshort: false,\r\n passwordchangedfailed: false,\r\n passwordchanged: false,\r\n };\r\n private model: ChangePasswordRequest = {\r\n newpassword: '',\r\n confirmnewpassword: '',\r\n key: '',\r\n }\r\n\r\n get translationsReady(): boolean {\r\n return this.$root.$data.translationsLoaded === true;\r\n }\r\n\r\n get isValid(): boolean {\r\n return this.model.newpassword.length >= 8 && this.model.newpassword === this.model.confirmnewpassword;\r\n }\r\n\r\n private validate() {\r\n this.alerts.passwordtooshort = this.model.newpassword.length < 8 && this.model.confirmnewpassword.length > 0;\r\n this.alerts.passwordmismatch = this.model.newpassword.length >= 8 && this.model.confirmnewpassword.length >= 8 && this.model.newpassword != this.model.confirmnewpassword;\r\n }\r\n\r\n private async created() {\r\n this.urlParams = new URLSearchParams(window.location.search);\r\n this.model.key = this.urlParams.get('key');\r\n if (this.urlParams.get('invalidkey') === 'true') {\r\n this.alerts.invalidkey = true;\r\n }\r\n if (this.urlParams.get('passwordmismatch') === 'true') {\r\n this.alerts.passwordmismatch = true;\r\n }\r\n if (this.urlParams.get('passwordchanged') === 'false') {\r\n this.alerts.passwordchangedfailed = true;\r\n }\r\n }\r\n\r\n private async submit() {\r\n if (this.loading) return;\r\n this.alerts = {\r\n invalidkey: false,\r\n passwordmismatch: false,\r\n passwordtooshort: false,\r\n passwordchangedfailed: false,\r\n passwordchanged: false,\r\n }\r\n this.loading = true;\r\n const redirect: string = await UserModule.CHANGE_PASSWORD(this.model);\r\n window.location.href = redirect;\r\n this.loading = false;\r\n }\r\n\r\n private modalShow(section: string) {\r\n this.modals[section] = true;\r\n }\r\n\r\n private modalHide(section: string) {\r\n this.modals[section] = false;\r\n }\r\n}\r\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!./LoginNewPasswordForm.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!./LoginNewPasswordForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LoginNewPasswordForm.vue?vue&type=template&id=4e48c33b&\"\nimport script from \"./LoginNewPasswordForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./LoginNewPasswordForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./LoginNewPasswordForm.vue?vue&type=style&index=0&id=4e48c33b&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/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","\r\nimport UserModule from '@/store/modules/UserModule';\r\nimport { Component, Vue } from 'vue-property-decorator';\r\nimport LoginResetPasswordForm from './LoginResetPasswordForm.vue';\r\nimport URLSearchParams from 'url-search-params';\r\nimport LoginNewPasswordForm from './LoginNewPasswordForm.vue';\r\nimport LoginForm from './LoginForm.vue';\r\n\r\n@Component({\r\n name: 'Login',\r\n components: {\r\n LoginForm,\r\n LoginResetPasswordForm,\r\n LoginNewPasswordForm,\r\n },\r\n})\r\nexport default class Login extends Vue {\r\n private urlParams: URLSearchParams = null;\r\n private displayResetPassword: boolean = false;\r\n \r\n get isSignedIn(): boolean {\r\n return UserModule.IS_SIGNED_IN;\r\n }\r\n\r\n private created() {\r\n this.urlParams = new URLSearchParams(window.location.search);\r\n if (this.urlParams.get('key')) {\r\n this.displayResetPassword = true;\r\n }\r\n }\r\n\r\n}\r\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!./Login.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!./Login.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=7d68891a&\"\nimport script from \"./Login.vue?vue&type=script&lang=ts&\"\nexport * from \"./Login.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Login.vue?vue&type=style&index=0&id=7d68891a&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/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 <style> tag\n\n// load the styles\nvar content = require(\"!!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!../../../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!./Login.vue?vue&type=style&index=0&id=7d68891a&prod&lang=scss&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"6459bd66\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!../../../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!./LoginNewPasswordForm.vue?vue&type=style&index=0&id=4e48c33b&prod&lang=scss&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"708d531a\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["___CSS_LOADER_EXPORT___","push","module","id","render","_vm","this","_c","_self","_setupProxy","staticClass","displayResetPassword","on","$event","passwordResetted","staticRenderFns","translationsReady","loading","_e","alerts","invalidkey","attrs","$t","modalShow","_v","_s","passwordmismatch","passwordtooshort","passwordchangedfailed","passwordchanged","_m","preventDefault","submit","apply","arguments","directives","name","rawName","value","model","newpassword","expression","domProps","validate","target","composing","$set","confirmnewpassword","isValid","modalHide","modals","resetPassword","callback","$$v","LoginNewPasswordForm","Vue","constructor","args","_defineProperty","key","$root","$data","translationsLoaded","length","async","urlParams","URLSearchParams","window","location","search","get","redirect","UserModule","CHANGE_PASSWORD","href","section","__decorate","Component","components","Alert","LoginResetPasswordForm","component","Login","isSignedIn","IS_SIGNED_IN","created","LoginForm","content","__esModule","default","locals","exports","add"],"sourceRoot":""}