{"version":3,"sources":["webpack:///./src/project/auth/AuthenticationModuleOverlay.vue?f878","webpack:///./src/project/auth/LoginPanel.vue?4cf7","webpack:///./src/project/auth/LoginPanel.vue","webpack:///./src/project/auth/LoginPanel.vue?eee2","webpack:///./src/project/auth/LoginPanel.vue?f54b","webpack:///./src/project/auth/ForgotPasswordPanel.vue?6489","webpack:///./src/project/auth/ForgotPasswordPanel.vue","webpack:///./src/project/auth/ForgotPasswordPanel.vue?1e2d","webpack:///./src/project/auth/ForgotPasswordPanel.vue?86ec","webpack:///./src/project/auth/ResetPasswordPanel.vue?eb3d","webpack:///./src/project/auth/PasswordCondition.vue?a9be","webpack:///./src/project/auth/PasswordCondition.vue","webpack:///./src/project/auth/PasswordCondition.vue?bf9d","webpack:///./src/project/auth/PasswordCondition.vue?7b80","webpack:///./src/project/auth/ResetPasswordPanel.vue","webpack:///./src/project/auth/ResetPasswordPanel.vue?95e9","webpack:///./src/project/auth/ResetPasswordPanel.vue?efd1","webpack:///./src/project/auth/ChangePasswordPanel.vue?09e2","webpack:///./src/project/auth/ChangePasswordPanel.vue","webpack:///./src/project/auth/ChangePasswordPanel.vue?5cf9","webpack:///./src/project/auth/ChangePasswordPanel.vue?c68d","webpack:///./src/project/auth/AuthenticationModuleOverlay.vue","webpack:///./src/project/auth/AuthenticationModuleOverlay.vue?c95e","webpack:///./src/project/auth/AuthenticationModuleOverlay.vue?5b62","webpack:///./src/project/modals/Modal.vue","webpack:///./src/project/modals/Modal.vue?4482","webpack:///./src/project/modals/Modal.vue?1301","webpack:///./src/core/messages/WebApiMessage.vue?20d2","webpack:///./src/core/messages/WebApiMessage.vue","webpack:///./src/core/messages/WebApiMessage.vue?5af9","webpack:///./src/core/messages/WebApiMessage.vue?0b74"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","state","key","staticClass","redirect","on","$event","closeOverlay","_e","staticRenderFns","mode","_v","_s","$dictionary","get","scopedSlots","_u","fn","ref","handleSubmit","preventDefault","submit","model","value","callback","$$v","email","expression","password","busy","forgotPassword","registrationPage","nativeOn","close","apply","arguments","required","twoFactorCode","backToLogin","$emit","pushToDataLayer","event","buttonTarget","response","authentication","login","siteId","siteInfo","resendTwoFactorCode","parseInt","undefined","enableTwoFactorFlow","handleTwoFactorMode","handlePostLogin","err","clearTwoFactorCode","logIn","token","update","$router","push","catch","e","settings","accessRequestPage","type","String","components","WebApiMessage","component","emailSent","goBack","requestPasswordReset","resendToken","isValidToken","done","newUser","gotoLogin","hasUppercase","hasLowercase","hasNumeric","hasSpecialChar","hasLength","password2","class","condition","text","Boolean","guidPattern","submitFailed","tokenExpired","tokenQuery","decodeURI","location","search","match","toLowerCase","includes","length","validateTokenExpired","replace","query","resetPassword","cleanUpQuery","tokenExpirationResponse","validateResetPasswordToken","isTokenValid","PasswordCondition","newPassword","newPasswordConfirm","isImpersonating","changePassword","oldPassword","confirmNewPassword","Modal","newState","trackLoginStateChange","loginState","initialState","ResetPasswordPanel","ForgotPasswordPanel","LoginPanel","ChangePasswordPanel","data","ModalState","hideModal","modal","id","Object","messages","_t","_l","message","ix","getMessage","errorId","deleteMessageAtIndex","bus","onMessages","index","splice","validationErrorEvent","messagesId","handled","msgOrLabel","exists","off"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,aAAa,CAACE,MAAM,CAAC,KAAO,SAAS,IAAM,MAAM,qBAAqB,iCAAiC,qBAAqB,oCAAoC,CAAc,UAAZN,EAAIO,MAAiBH,EAAG,aAAa,CAACI,IAAI,QAAQC,YAAY,iBAAiBH,MAAM,CAAC,SAAWN,EAAIU,UAAUC,GAAG,CAAC,YAAY,SAASC,GAAQZ,EAAIO,MAAQ,aAAa,MAAQP,EAAIa,gBAA+B,cAAdb,EAAIO,MAAuBH,EAAG,sBAAsB,CAACI,IAAI,SAASC,YAAY,iBAAiBE,GAAG,CAAC,UAAU,SAASC,G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AAImI,EAAGlI,YAAY,SAAS,CAACT,EAAIiB,GAAG,IAAIjB,EAAIkB,GAAGlB,EAAI4I,WAAWF,EAAQA,UAAU,KAAM1I,EAAW,QAAE,CAACA,EAAIiB,GAAG,MAAMjB,EAAIkB,GAAGlB,EAAI6I,SAAS,OAAO7I,EAAIc,MAAM,MAAK,MAAK,CAAC,SAAWd,EAAIuI,SAAS,cAAgBvI,EAAI8I,wBAAwB,GAAG9I,EAAIc,MAC/gBC,EAAkB,G,oFCwBtB,IAAqB,EAArB,cAA2C,aAA3C,c,oBACI,KAAAwH,SAA4B,GAC5B,KAAAM,QAAkB,GAMlB,UACIE,EAAA,KAAIpI,GAAG,OAAyBV,KAAK+I,YAGzC,qBAAqBC,GACjBhJ,KAAKsI,SAASW,OAAOD,EAAO,GAGhC,WAAWE,GACHA,EAAqBC,aAAenJ,KAAKoI,KACzCpI,KAAKsI,SAAWY,EAAqBZ,SACrCtI,KAAK4I,QAAUM,EAAqBN,QACpCM,EAAqBE,WAI7B,WAAWC,GACP,OAAI,OAAkBC,OAAOD,GAClB,OAAkBlI,IAAIkI,GAE1BA,EAGX,YACIP,EAAA,KAAIS,IAAI,OAAyBvJ,KAAK+I,cA1B1C,gBAHC,eAAK,CACFtG,UAAU,K,yBAJG,EAAa,gBADjC,QACoB,WCzBqY,I,YCOtZiC,EAAY,eACd,EACA5E,EACAgB,GACA,EACA,KACA,KACA,MAIa,OAAA4D,E","file":"js/chunk-ffcb101e.f4fcd8e0.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"mode\":\"out-in\",\"tag\":\"div\",\"enter-active-class\":\"animated fadeIn u-anim-dur-350\",\"leave-active-class\":\"animated fadeOut u-anim-dur-250\"}},[(_vm.state==='login')?_c('LoginPanel',{key:\"login\",staticClass:\"w-300 md:w-400\",attrs:{\"redirect\":_vm.redirect},on:{\"forgot-pw\":function($event){_vm.state = 'forgot-pw'},\"close\":_vm.closeOverlay}}):(_vm.state === 'forgot-pw')?_c('ForgotPasswordPanel',{key:\"forgot\",staticClass:\"w-300 md:w-400\",on:{\"go-back\":function($event){_vm.state = 'login'},\"close\":_vm.closeOverlay}}):(_vm.state === 'reset-pw')?_c('ResetPasswordPanel',{key:\"reset-pw\",staticClass:\"w-300 md:w-400\",on:{\"goto-login\":function($event){_vm.state = 'login'},\"forgot-pw\":function($event){_vm.state = 'forgot-pw'},\"close\":_vm.closeOverlay}}):(_vm.state === 'change-pw')?_c('ChangePasswordPanel',{key:\"reset-pw\",staticClass:\"w-300 md:w-400\",on:{\"close\":_vm.closeOverlay}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.mode === 'login')?_c('article',{key:\"login\"},[_c('h1',{staticClass:\"sub-header\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.Login.WelcomeMsg'))+\" \")]),_c('h2',{staticClass:\"mt-10 mb-5 text-34\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.Login.Header'))+\" \")]),_c('ValidationObserver',{attrs:{\"tag\":\"div\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('form',{staticClass:\"bg-white\",on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.submit)}}},[_c('InputText',{staticClass:\"mt-20\",attrs:{\"name\":\"email\",\"autofocus\":true,\"label\":_vm.$dictionary.get('Authentication.Login.EmailFieldLabel'),\"rules\":\"email\"},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:\"email\"}}),_c('InputText',{staticClass:\"mt-10\",attrs:{\"type\":\"password\",\"name\":\"password\",\"label\":_vm.$dictionary.get('Authentication.Login.PasswordFieldLabel')},model:{value:(_vm.password),callback:function ($$v) {_vm.password=$$v},expression:\"password\"}}),_c('WebApiMessage',{attrs:{\"id\":\"login\"}}),_c('div',{staticClass:\"flex\"},[_c('CallToAction',{staticClass:\"mt-20 ml-auto px-10 md:px-20\",attrs:{\"disabled\":_vm.busy,\"text\":_vm.$dictionary.get('Authentication.Login.LoginBtn'),\"type\":\"submit\"}})],1)],1),_c('a',{staticClass:\"-small-gray mt-20\",on:{\"click\":function($event){return _vm.forgotPassword()}}},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.Login.ForgotPassword'))+\" \")]),(_vm.registrationPage)?_c('p',{staticClass:\"block mt-10 text-12 text-gray-800\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.CreateAccount'))+\" \"),_c('CultureAwareRouterLink',{staticClass:\"text-gray-800 underline hover:text-black\",attrs:{\"to\":_vm.registrationPage,\"data-tracking-name\":\"accessRequestPage\"},nativeOn:{\"click\":function($event){$event.preventDefault();return _vm.close.apply(null, arguments)}}},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.CreateAccount.Link'))+\" \")])],1):_vm._e()]}}],null,false,3077351146)})],1):(_vm.mode === 'twoFactorCode')?_c('article',{key:\"twofactor\"},[_c('h1',{staticClass:\"mt-10 mb-5 text-34\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.TwoFactorLogin.Heading'))+\" \")]),_c('p',{staticClass:\"block mt-10 text-12 text-gray-800\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.TwoFactorLogin.IntroText', [_vm.email]))+\" \")]),_c('ValidationObserver',{attrs:{\"tag\":\"div\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('form',{staticClass:\"bg-white\",on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.submit)}}},[_c('div',{staticClass:\"md:flex\"},[_c('div',{staticClass:\"md:flex-grow\"},[_c('InputText',{staticClass:\"mt-20\",attrs:{\"name\":\"twoFactorCode\",\"input-class\":\"h-40\",\"autofocus\":_vm.mode === 'twoFactorCode',\"label\":_vm.$dictionary.get('Authentication.TwoFactorLogin.TwoFactorCodeLabel'),\"rules\":{required: _vm.mode === 'twoFactorCode'}},model:{value:(_vm.twoFactorCode),callback:function ($$v) {_vm.twoFactorCode=$$v},expression:\"twoFactorCode\"}})],1),_c('CallToAction',{staticClass:\"mt-20 md:ml-20\",attrs:{\"disabled\":_vm.busy,\"text\":_vm.$dictionary.get('Authentication.TwoFactorLogin.TwoFactorCodeBtn'),\"type\":\"submit\"}})],1),_c('WebApiMessage',{attrs:{\"id\":\"login\"}})],1),_c('a',{staticClass:\"-small-gray mt-20\",on:{\"click\":function($event){return _vm.backToLogin()}}},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.TwoFactorLogin.BackToLoginBtn'))+\" \")])]}}])})],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\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\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, Prop, Vue } from 'vue-property-decorator';\r\nimport Api from '@/project/http/Api.service';\r\nimport authService from '@/core/auth/auth.service';\r\nimport WebApiMessage from '@/core/messages/WebApiMessage.vue';\r\nimport siteService from '@/project/site/site.service';\r\nimport serverContextService from '@/core/serverContext.service';\r\nimport GTMBasics from '@/project/tracking/gtm/GTM.basics';\r\n\r\n@Component({\r\n components: { WebApiMessage }\r\n})\r\nexport default class LoginPanel extends Vue {\r\n @Prop({ type: String })\r\n redirect!: string;\r\n\r\n email: string = '';\r\n password: string = '';\r\n twoFactorCode: string = '';\r\n busy = false;\r\n mode: 'login' | 'twoFactorCode' = 'login';\r\n\r\n forgotPassword() {\r\n this.$emit('forgot-pw');\r\n }\r\n\r\n async submit() {\r\n GTMBasics.pushToDataLayer({\r\n event: 'button.click',\r\n buttonTarget: 'login'\r\n });\r\n try {\r\n this.busy = true;\r\n const response = await Api.authentication.login(\r\n {\r\n email: this.email,\r\n password: this.password,\r\n siteId: serverContextService.siteInfo.siteId,\r\n resendTwoFactorCode: false,\r\n twoFactorCode: this.twoFactorCode && this.mode === 'twoFactorCode' ? parseInt(this.twoFactorCode, 10) : undefined\r\n }, 'login');\r\n if (response.enableTwoFactorFlow) {\r\n this.handleTwoFactorMode(response);\r\n } else {\r\n // Login success\r\n this.handlePostLogin(response);\r\n }\r\n } catch (err) {\r\n // Ok, validation-messages will be shown\r\n // Clear two-factor code in case anything is present\r\n this.clearTwoFactorCode();\r\n } finally {\r\n this.busy = false;\r\n }\r\n }\r\n\r\n handlePostLogin(response) {\r\n authService.logIn(response.token);\r\n siteService.update(response);\r\n this.$emit('close');\r\n\r\n if (this.redirect) {\r\n this.$router.push(this.redirect).catch(e => {});\r\n }\r\n }\r\n\r\n handleTwoFactorMode(response) {\r\n if (response.enableTwoFactorFlow) {\r\n this.clearTwoFactorCode();\r\n this.mode = 'twoFactorCode';\r\n }\r\n }\r\n\r\n clearTwoFactorCode() {\r\n this.twoFactorCode = '';\r\n }\r\n\r\n get registrationPage(): string | undefined {\r\n return serverContextService.settings?.accessRequestPage;\r\n }\r\n\r\n close() {\r\n this.$emit('close');\r\n }\r\n\r\n backToLogin() {\r\n this.clearTwoFactorCode();\r\n this.mode = 'login';\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginPanel.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginPanel.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LoginPanel.vue?vue&type=template&id=1ba15e68&\"\nimport script from \"./LoginPanel.vue?vue&type=script&lang=ts&\"\nexport * from \"./LoginPanel.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('transition',{attrs:{\"mode\":\"out-in\",\"enter-active-class\":\"animated fadeIn u-anim-dur-350\",\"leave-active-class\":\"animated fadeOut u-anim-dur-250\"}},[(!_vm.emailSent)?_c('article',{key:\"sendEmail\"},[_c('h1',[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ForgotPassword.Title'))+\" \")]),_c('h2',{staticClass:\"sub-header mt-15 mb-10\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ForgotPassword.SubTitle'))+\" \")]),_c('ValidationObserver',{attrs:{\"tag\":\"div\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('form',{staticClass:\"bg-white\",on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.submit)}}},[_c('InputText',{staticClass:\"mt-20\",attrs:{\"name\":\"email\",\"autofocus\":true,\"label\":_vm.$dictionary.get('Authentication.ForgotPassword.EmailFieldLabel'),\"rules\":\"email\"},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:\"email\"}}),_c('WebApiMessage',{attrs:{\"id\":\"requestpasswordreset\"}}),_c('CallToAction',{staticClass:\"mt-20\",attrs:{\"disabled\":_vm.busy,\"text\":_vm.$dictionary.get('Authentication.ForgotPassword.ForgotBtn'),\"type\":\"submit\"}})],1),_c('a',{staticClass:\"-small-gray mt-20\",on:{\"click\":function($event){return _vm.goBack()}}},[_vm._v(_vm._s(_vm.$dictionary.get('Authentication.ForgotPassword.BackToLogin')))])]}}],null,false,405451642)})],1):_c('article',{key:\"confirmation\"},[_c('h1',[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ForgotPassword.EmailConfirmationTitle'))+\" \")]),_c('h2',{staticClass:\"mt-10\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ForgotPassword.EmailConfirmationSubTitle'))+\" \")]),_c('p',{staticClass:\"text-15 mt-20\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ForgotPassword.EmailConfirmationText'))+\" \")]),_c('CallToAction',{staticClass:\"mt-30\",attrs:{\"text\":_vm.$dictionary.get('Authentication.ForgotPassword.EmailConfirmationClose')},on:{\"click\":function($event){return _vm.close()}}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from 'vue';\r\nimport Component from 'vue-class-component';\r\nimport WebApiMessage from '@/core/messages/WebApiMessage.vue';\r\nimport Api from '@/project/http/Api.service';\r\n\r\n@Component({\r\n components: { WebApiMessage }\r\n})\r\nexport default class ForgotPasswordPanel extends Vue {\r\n email: string = '';\r\n emailSent = false;\r\n busy = false;\r\n\r\n goBack() {\r\n this.$emit('go-back');\r\n }\r\n\r\n close() {\r\n this.$emit('close');\r\n }\r\n\r\n async submit() {\r\n try {\r\n this.busy = true;\r\n await Api.authentication.requestPasswordReset(this.email, 'requestpasswordreset');\r\n this.emailSent = true;\r\n } catch (err) {\r\n // Ok, validation-messages will be shown\r\n } finally {\r\n this.busy = false;\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ForgotPasswordPanel.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ForgotPasswordPanel.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ForgotPasswordPanel.vue?vue&type=template&id=825842f2&\"\nimport script from \"./ForgotPasswordPanel.vue?vue&type=script&lang=ts&\"\nexport * from \"./ForgotPasswordPanel.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('transition',{attrs:{\"mode\":\"out-in\",\"enter-active-class\":\"animated fadeIn u-anim-dur-350\",\"leave-active-class\":\"animated fadeOut u-anim-dur-250\"}},[(_vm.tokenExpired)?_c('article',[_c('h1',[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ResetPassword.ExpiredTokenTitle'))+\" \")]),_c('p',{staticClass:\"mt-20\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ResetPassword.ExpiredTokenText'))+\" \")]),_c('CallToAction',{staticClass:\"mt-30\",attrs:{\"text\":_vm.$dictionary.get('Authentication.ResetPassword.ResendTokenBtn')},on:{\"click\":function($event){return _vm.resendToken()}}})],1):(!_vm.isValidToken)?_c('article',{key:\"invalid-token\"},[_c('h1',[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ResetPassword.InvalidTokenTitle'))+\" \")]),_c('p',{staticClass:\"mt-20\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ResetPassword.InvalidTokenText'))+\" \")]),_c('CallToAction',{staticClass:\"mt-30\",attrs:{\"text\":_vm.$dictionary.get('Authentication.ResetPassword.InvalidTokenBtn')},on:{\"click\":function($event){return _vm.close()}}})],1):(!_vm.done)?_c('article',{key:\"change-password\"},[_c('h1',[_vm._v(\" \"+_vm._s(_vm.$dictionary.get(_vm.newUser ? 'Authentication.NewUser.Title' : 'Authentication.ResetPassword.Title'))+\" \")]),_c('h2',{staticClass:\"sub-header mt-10\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get(_vm.newUser ? 'Authentication.NewUser.SubTitle' : 'Authentication.ResetPassword.SubTitle'))+\" \")]),_c('section',{staticClass:\"bg-gray-300 mt-20 p-20\"},[_c('div',{staticClass:\"text-15 font-medium\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ResetPassword.SecurityTitle'))+\" \")]),_c('PasswordCondition',{staticClass:\"mt-20\",attrs:{\"condition\":_vm.hasUppercase,\"text\":_vm.$dictionary.get('Authentication.ResetPassword.UppercaseCondition')}}),_c('PasswordCondition',{staticClass:\"mt-20\",attrs:{\"condition\":_vm.hasLowercase,\"text\":_vm.$dictionary.get('Authentication.ResetPassword.LowercaseCondition')}}),_c('PasswordCondition',{staticClass:\"mt-20\",attrs:{\"condition\":_vm.hasNumeric,\"text\":_vm.$dictionary.get('Authentication.ResetPassword.NumericCondition')}}),_c('PasswordCondition',{staticClass:\"mt-20\",attrs:{\"condition\":_vm.hasSpecialChar,\"text\":_vm.$dictionary.get('Authentication.ResetPassword.SpecialCharCondition')}}),_c('PasswordCondition',{staticClass:\"mt-20\",attrs:{\"condition\":_vm.hasLength,\"text\":_vm.$dictionary.get('Authentication.ResetPassword.LengthCondition')}})],1),_c('ValidationObserver',{attrs:{\"tag\":\"div\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('form',{staticClass:\"bg-white\",on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.submit)}}},[_c('InputText',{staticClass:\"mt-20\",attrs:{\"name\":\"password1\",\"type\":\"password\",\"autofocus\":true,\"label\":_vm.$dictionary.get(_vm.newUser ? 'Authentication.NewUser.FirstPasswordFieldLabel' : 'Authentication.ResetPassword.FirstPasswordFieldLabel'),\"rules\":\"password|required\"},model:{value:(_vm.password),callback:function ($$v) {_vm.password=$$v},expression:\"password\"}}),_c('InputText',{staticClass:\"mt-20\",attrs:{\"name\":\"password2\",\"type\":\"password\",\"label\":_vm.$dictionary.get(_vm.newUser ? 'Authentication.NewUser.SecondPasswordFieldLabel' : 'Authentication.ResetPassword.SecondPasswordFieldLabel'),\"rules\":\"required|same-password:@password1\"},model:{value:(_vm.password2),callback:function ($$v) {_vm.password2=$$v},expression:\"password2\"}}),_c('WebApiMessage',{attrs:{\"id\":\"resetpassword\"}}),(_vm.submitFailed)?_c('CallToAction',{staticClass:\"mt-30\",attrs:{\"text\":_vm.$dictionary.get('Authentication.ResetPassword.GetNewResetLinkBtn')},on:{\"click\":function($event){return _vm.forgotPassword()}}}):_c('CallToAction',{staticClass:\"mt-20\",attrs:{\"disabled\":_vm.busy,\"text\":_vm.$dictionary.get(_vm.newUser ? 'Authentication.NewUser.CreatePasswordBtn' : 'Authentication.ResetPassword.ChangePasswordBtn'),\"type\":\"submit\"}})],1)]}}])})],1):_c('article',{key:\"confirmation\"},[_c('h1',[_vm._v(\" \"+_vm._s(_vm.$dictionary.get(_vm.newUser ? 'Authentication.NewUser.ChangeConfirmationTitle' : 'Authentication.ResetPassword.ChangeConfirmationTitle'))+\" \")]),_c('p',{staticClass:\"text-15 mt-20\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ChangeConfirmation.ChangeConfirmationText'))+\" \")]),_c('CallToAction',{staticClass:\"mt-30\",attrs:{\"text\":_vm.$dictionary.get('Authentication.ChangeConfirmation.GotoLoginBtn')},on:{\"click\":function($event){return _vm.gotoLogin()}}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"flex items-center\"},[_c('span',{staticClass:\"mr-10 o-password-checkmark\",class:_vm.condition ? 'checked' : ''},[_c('CIcon',{attrs:{\"name\":\"checkmark\"}})],1),_c('span',{staticClass:\"text-13 font-medium\"},[_vm._v(_vm._s(_vm.text))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\r\nimport Vue from 'vue';\r\nimport Component from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class PasswordCondition extends Vue {\r\n @Prop(Boolean) condition!: boolean;\r\n @Prop(String) text!: string;\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PasswordCondition.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PasswordCondition.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PasswordCondition.vue?vue&type=template&id=3fb6661b&\"\nimport script from \"./PasswordCondition.vue?vue&type=script&lang=ts&\"\nexport * from \"./PasswordCondition.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\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\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\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\n\n\n\n\r\nimport Vue from 'vue';\r\nimport Component from 'vue-class-component';\r\nimport WebApiMessage from '@/core/messages/WebApiMessage.vue';\r\nimport Api from '@/project/http/Api.service';\r\nimport passwordService from '@/project/form/custom-rules/password';\r\nimport PasswordCondition from '@/project/auth/PasswordCondition.vue';\r\n\r\nconst guidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\r\n\r\n@Component({\r\n components: { PasswordCondition, WebApiMessage }\r\n})\r\nexport default class LoginPanel extends Vue {\r\n password: string = '';\r\n password2: string = '';\r\n token = '';\r\n done = false;\r\n busy = false;\r\n newUser = false;\r\n submitFailed = false;\r\n tokenExpired = false;\r\n\r\n created() {\r\n // Just a way to get token=xyz from a query string that can contain token=xyz&foo=baa#boo\r\n const tokenQuery = decodeURI(location.search).match(/token=([^&#]*)/i);\r\n this.newUser = location.search.toLowerCase().includes('newuser');\r\n if (tokenQuery?.length !== 2) return;\r\n this.token = tokenQuery[1];\r\n this.validateTokenExpired();\r\n }\r\n\r\n get isValidToken() {\r\n return this.token.match(guidPattern);\r\n }\r\n\r\n get hasLength(): boolean {\r\n return passwordService.hasLength(this.password);\r\n }\r\n\r\n get hasNumeric() {\r\n return passwordService.hasNumeric(this.password);\r\n }\r\n\r\n get hasUppercase() {\r\n return passwordService.hasUppercase(this.password);\r\n }\r\n\r\n get hasLowercase() {\r\n return passwordService.hasLowercase(this.password);\r\n }\r\n\r\n get hasSpecialChar() {\r\n return passwordService.hasSpecialChar(this.password);\r\n }\r\n\r\n gotoLogin() {\r\n this.$emit('goto-login');\r\n }\r\n\r\n forgotPassword() {\r\n this.$emit('forgot-pw');\r\n }\r\n\r\n close() {\r\n this.$emit('close');\r\n }\r\n\r\n cleanUpQuery() {\r\n this.$router.replace({ query: undefined });\r\n }\r\n\r\n async submit() {\r\n try {\r\n this.busy = true;\r\n await Api.authentication.resetPassword(this.password, this.token, 'resetpassword');\r\n this.done = true;\r\n this.cleanUpQuery();\r\n } catch (err) {\r\n // Ok, validation-messages will be shown\r\n this.submitFailed = true;\r\n } finally {\r\n this.busy = false;\r\n }\r\n }\r\n\r\n async validateTokenExpired() {\r\n try {\r\n this.busy = true;\r\n const tokenExpirationResponse = await Api.authentication.validateResetPasswordToken(this.token);\r\n this.tokenExpired = !tokenExpirationResponse.isTokenValid;\r\n } catch (err) {\r\n } finally {\r\n this.busy = false;\r\n }\r\n }\r\n\r\n resendToken() {\r\n this.forgotPassword();\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResetPasswordPanel.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResetPasswordPanel.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ResetPasswordPanel.vue?vue&type=template&id=3c18539a&\"\nimport script from \"./ResetPasswordPanel.vue?vue&type=script&lang=ts&\"\nexport * from \"./ResetPasswordPanel.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('transition',{attrs:{\"mode\":\"out-in\",\"enter-active-class\":\"animated fadeIn u-anim-dur-350\",\"leave-active-class\":\"animated fadeOut u-anim-dur-250\"}},[(!_vm.done)?_c('article',{key:\"change-password\"},[_c('h1',[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ChangePassword.Title'))+\" \")]),_c('h2',{staticClass:\"sub-header mt-10\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ChangePassword.SubTitle'))+\" \")]),_c('section',{staticClass:\"bg-gray-300 mt-20 p-20\"},[_c('div',{staticClass:\"text-15 font-medium\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ResetPassword.SecurityTitle'))+\" \")]),_c('PasswordCondition',{staticClass:\"mt-20\",attrs:{\"condition\":_vm.hasUppercase,\"text\":_vm.$dictionary.get('Authentication.ResetPassword.UppercaseCondition')}}),_c('PasswordCondition',{staticClass:\"mt-20\",attrs:{\"condition\":_vm.hasLowercase,\"text\":_vm.$dictionary.get('Authentication.ResetPassword.LowercaseCondition')}}),_c('PasswordCondition',{staticClass:\"mt-20\",attrs:{\"condition\":_vm.hasNumeric,\"text\":_vm.$dictionary.get('Authentication.ResetPassword.NumericCondition')}}),_c('PasswordCondition',{staticClass:\"mt-20\",attrs:{\"condition\":_vm.hasSpecialChar,\"text\":_vm.$dictionary.get('Authentication.ResetPassword.SpecialCharCondition')}}),_c('PasswordCondition',{staticClass:\"mt-20\",attrs:{\"condition\":_vm.hasLength,\"text\":_vm.$dictionary.get('Authentication.ResetPassword.LengthCondition')}})],1),_c('ValidationObserver',{attrs:{\"tag\":\"div\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('form',{staticClass:\"bg-white\",on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.submit)}}},[(_vm.oldPasswordIsNeeded)?_c('InputText',{staticClass:\"mt-20\",attrs:{\"name\":\"password1\",\"type\":\"password\",\"autofocus\":true,\"label\":_vm.$dictionary.get('Authentication.ChangePassword.FirstPasswordFieldLabel'),\"rules\":\"required|password\"},model:{value:(_vm.password),callback:function ($$v) {_vm.password=$$v},expression:\"password\"}}):_vm._e(),_c('InputText',{staticClass:\"mt-20\",attrs:{\"name\":\"password2\",\"type\":\"password\",\"label\":_vm.$dictionary.get('Authentication.ChangePassword.SecondPasswordFieldLabel'),\"rules\":'required|password:@password3'},model:{value:(_vm.newPassword),callback:function ($$v) {_vm.newPassword=$$v},expression:\"newPassword\"}}),_c('InputText',{staticClass:\"mt-20\",attrs:{\"name\":\"password3\",\"type\":\"password\",\"label\":_vm.$dictionary.get('Authentication.ChangePassword.ThirdPasswordFieldLabel'),\"rules\":\"required|password\"},model:{value:(_vm.newPasswordConfirm),callback:function ($$v) {_vm.newPasswordConfirm=$$v},expression:\"newPasswordConfirm\"}}),_c('WebApiMessage',{attrs:{\"id\":\"changepassword\"}}),_c('CallToAction',{staticClass:\"mt-20\",attrs:{\"disabled\":_vm.busy,\"text\":_vm.$dictionary.get('Authentication.ChangePassword.ChangeBtn'),\"type\":\"submit\"}})],1)]}}],null,false,3380434437)})],1):_c('article',{key:\"confirmation\"},[_c('h1',{staticClass:\"text-18 font-bold\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ChangePassword.ChangeConfirmationTitle'))+\" \")]),_c('p',{staticClass:\"text-15 mt-20\"},[_vm._v(\" \"+_vm._s(_vm.$dictionary.get('Authentication.ChangePassword.ChangeConfirmationText'))+\" \")]),_c('CallToAction',{staticClass:\"mt-30\",attrs:{\"text\":_vm.$dictionary.get('Authentication.ChangePassword.Exit')},on:{\"click\":function($event){return _vm.close()}}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\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\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from 'vue-property-decorator';\r\nimport WebApiMessage from '@/core/messages/WebApiMessage.vue';\r\nimport Api from '@/project/http/Api.service';\r\nimport passwordService from '@/project/form/custom-rules/password';\r\nimport PasswordCondition from '@/project/auth/PasswordCondition.vue';\r\nimport { ChangePasswordRequest } from '@/types/apiServerContract';\r\nimport impersonationStore from '@/project/shared/impersonation/impersonation.service';\r\n\r\n@Component({\r\n components: { PasswordCondition, WebApiMessage }\r\n})\r\nexport default class ChangePasswordPanel extends Vue {\r\n password: string = '';\r\n newPassword: string = '';\r\n newPasswordConfirm: string = '';\r\n done = false;\r\n busy = false;\r\n\r\n get hasLength(): boolean {\r\n return passwordService.hasLength(this.newPassword);\r\n }\r\n\r\n get hasNumeric() {\r\n return passwordService.hasNumeric(this.newPassword);\r\n }\r\n\r\n get hasUppercase() {\r\n return passwordService.hasUppercase(this.newPassword);\r\n }\r\n\r\n get hasLowercase() {\r\n return passwordService.hasLowercase(this.newPassword);\r\n }\r\n\r\n get hasSpecialChar() {\r\n return passwordService.hasSpecialChar(this.newPassword);\r\n }\r\n\r\n get isImpersonating(): boolean {\r\n return impersonationStore.isImpersonating;\r\n }\r\n\r\n get oldPasswordIsNeeded(): boolean {\r\n return !this.isImpersonating;\r\n }\r\n\r\n close() {\r\n this.$emit('close');\r\n }\r\n\r\n async submit() {\r\n try {\r\n this.busy = true;\r\n await Api.authentication.changePassword({\r\n oldPassword: this.password,\r\n newPassword: this.newPassword,\r\n confirmNewPassword: this.newPasswordConfirm\r\n } as ChangePasswordRequest, 'changepassword');\r\n this.done = true;\r\n } catch (err) {\r\n // Ok, validation-messages will be shown\r\n } finally {\r\n this.busy = false;\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChangePasswordPanel.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChangePasswordPanel.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ChangePasswordPanel.vue?vue&type=template&id=0ba11725&\"\nimport script from \"./ChangePasswordPanel.vue?vue&type=script&lang=ts&\"\nexport * from \"./ChangePasswordPanel.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\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, Prop, Watch } from 'vue-property-decorator';\r\nimport Modal from '@/project/modals/Modal.vue';\r\nimport LoginPanel from './LoginPanel.vue';\r\nimport ForgotPasswordPanel from './ForgotPasswordPanel.vue';\r\nimport ResetPasswordPanel from './ResetPasswordPanel.vue';\r\nimport ChangePasswordPanel from './ChangePasswordPanel.vue';\r\nimport GTMBasics from '@/project/tracking/gtm/GTM.basics';\r\n\r\n@Component({\r\n components: { ResetPasswordPanel, ForgotPasswordPanel, LoginPanel, ChangePasswordPanel }\r\n})\r\nexport default class AuthenticationModuleOverlay extends Modal {\r\n @Prop({ required: true, type: String })\r\n initialState!: 'login' | 'forgot-pw' | 'reset-pw' | 'change-pw';\r\n\r\n @Prop({ required: false, type: String })\r\n redirect!: string;\r\n\r\n state: '' | 'login' | 'forgot-pw' | 'reset-pw' | 'change-pw' = '';\r\n\r\n @Watch('state')\r\n onStateChange(newState: string) {\r\n this.trackLoginStateChange(newState);\r\n }\r\n\r\n trackLoginStateChange(newState) {\r\n GTMBasics.pushToDataLayer({\r\n event: 'login.click',\r\n loginState: newState\r\n });\r\n }\r\n\r\n created() {\r\n this.state = this.initialState;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthenticationModuleOverlay.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthenticationModuleOverlay.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AuthenticationModuleOverlay.vue?vue&type=template&id=7ab9b999&\"\nimport script from \"./AuthenticationModuleOverlay.vue?vue&type=script&lang=ts&\"\nexport * from \"./AuthenticationModuleOverlay.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","\r\nimport { Vue, Component, Prop } from 'vue-property-decorator';\r\nimport { IModal, ModalState } from '@/core/modals/ModalState';\r\n\r\n@Component\r\nexport default class Modal extends Vue {\r\n @Prop({ type: Object, required: true })\r\n modal!: IModal;\r\n\r\n closeOverlay(data?: any) {\r\n ModalState.hideModal(this.modal.id, data);\r\n }\r\n}\r\n","var render, staticRenderFns\nimport script from \"./Modal.vue?vue&type=script&lang=ts&\"\nexport * from \"./Modal.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","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Modal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Modal.vue?vue&type=script&lang=ts&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.messages.length > 0)?_c('div',[_vm._t(\"default\",function(){return [_c('ul',{staticClass:\"text-red-500 text-12 font-medium list-reset\"},_vm._l((_vm.messages),function(message,ix){return _c('li',{key:ix,staticClass:\"mt-15\"},[_vm._v(\" \"+_vm._s(_vm.getMessage(message.message))+\" \"),(_vm.errorId)?[_vm._v(\" [ \"+_vm._s(_vm.errorId)+\"] \")]:_vm._e()],2)}),0)]},{\"messages\":_vm.messages,\"deleteMessage\":_vm.deleteMessageAtIndex})],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\n\r\nimport Vue from 'vue';\r\nimport Component from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport bus from '@/core/bus';\r\nimport { ClientMessage, ValidationErrorEvent, ValidationErrorEventKey } from '@/core/messages/types';\r\nimport dictionaryService from '@/core/translation/dictionary.service';\r\n\r\n@Component\r\nexport default class WebApiMessage extends Vue {\r\n messages: ClientMessage[] = [];\r\n errorId: string = '';\r\n @Prop({\r\n required: true\r\n })\r\n id!: string;\r\n\r\n created() {\r\n bus.on(ValidationErrorEventKey, this.onMessages);\r\n }\r\n\r\n deleteMessageAtIndex(index: number) {\r\n this.messages.splice(index, 1);\r\n }\r\n\r\n onMessages(validationErrorEvent: ValidationErrorEvent) {\r\n if (validationErrorEvent.messagesId === this.id) {\r\n this.messages = validationErrorEvent.messages;\r\n this.errorId = validationErrorEvent.errorId;\r\n validationErrorEvent.handled();\r\n }\r\n }\r\n\r\n getMessage(msgOrLabel: string): string {\r\n if (dictionaryService.exists(msgOrLabel)) {\r\n return dictionaryService.get(msgOrLabel);\r\n }\r\n return msgOrLabel;\r\n }\r\n\r\n destroyed() {\r\n bus.off(ValidationErrorEventKey, this.onMessages);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WebApiMessage.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WebApiMessage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WebApiMessage.vue?vue&type=template&id=b56bf54e&\"\nimport script from \"./WebApiMessage.vue?vue&type=script&lang=ts&\"\nexport * from \"./WebApiMessage.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"],"sourceRoot":""}