{"version":3,"sources":["webpack:///./src/components/AccountControls/SetPassword.vue","webpack:///src/components/AccountControls/SetPassword.vue","webpack:///./src/components/AccountControls/SetPassword.vue?5af7","webpack:///./src/components/AccountControls/SetPassword.vue?3df5","webpack:///./src/components/AccountControls/SetPasswordConfirmation.vue","webpack:///src/components/AccountControls/SetPasswordConfirmation.vue","webpack:///./src/components/AccountControls/SetPasswordConfirmation.vue?3ca7","webpack:///./src/components/AccountControls/SetPasswordConfirmation.vue?b511","webpack:///./src/components/UI/Message.vue","webpack:///src/components/UI/Message.vue","webpack:///./src/components/UI/Message.vue?5d20","webpack:///./src/components/UI/Message.vue?fb09"],"names":["render","_vm","this","_c","_self","staticClass","domProps","_s","$t","localeOverride","errorMessage","attrs","_e","passwordErrors","on","$event","$v","form","password","$touch","model","value","callback","$$v","$set","expression","confirmPasswordErrors","confirmPassword","scopedSlots","_u","key","fn","ref","class","failCode","checkCodePart1","type","indexOf","_k","keyCode","handleSubmit","apply","arguments","checkCodePart2","checkCodePart3","errorCodeMessage","_v","proxy","Boolean","$error","isProcessing","staticRenderFns","WeakMap","name","components","Message","mixins","encryptString","inject","String","default","$i18n","locale","data","code","passwordsNotEqual","computed","_objectSpread","mapState","errors","$dirty","required","push","fieldLabel","minLength","test","sameAsPassword","validations","sameAs","methods","mapMutations","onCodeValidated","_this","_asyncToGenerator","_regenerator","m","_callee","self","encryptedPassword","w","_context","n","$invalid","submitStatus","encryptPassword","loginProvider","changePassword","confirmationToken","then","response","$emit","setConfirmationToken","catch","e","status","finally","a","target","trim","length","$refs","codePart2","focus","updateCode","codePart3","output","codePart1","component","handlerBackFunc","props","backFunc","Function","$router","combindedClass","message","_t","size","c"],"mappings":"qLAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,aAAaC,SAAS,CAAC,UAAYL,EAAIM,GAAGN,EAAIO,GAAG,oDAA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AmEP,EAAIQ,uBAAuB,IAEtiC0C,EAAkB,G,wBCgCP,GACfE,KAAA,gCAEAC,WAAA,CACAC,sBAGAG,OAAA,CACAjD,eAAA,CACA2B,KAAAuB,OACAC,QAAA,WACA,YAAAC,MAAAC,UAKAyD,MAAA,CACAC,SAAA,CACApF,KAAA,CAAAqF,SAAAzE,SACAY,SAAA,IAIAG,KAAA,WACA,UAGAgB,QAAA,CACAuC,gBAAA,YACA,KAAAE,UAAA,KAAAE,QAAAlD,KAAA,CAAAnB,KAAA,qBAEA,KAAAmE,cCjE+W,I,YCO3WH,EAAY,eACd,EACArH,EACAmD,GACA,EACA,KACA,KACA,MAIa,aAAAkE,E,kDClBf,IAAIrH,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACE,YAAY,UAAU4B,MAAMhC,EAAI0H,gBAAgB,CAACxH,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAAEJ,EAAI2H,QAAS,CAAC3H,EAAI6C,GAAG,IAAI7C,EAAIM,GAAGN,EAAI2H,SAAS,MAAM3H,EAAIW,KAAKX,EAAI4H,GAAG,YAAY,MAErP1E,EAAkB,GCaP,GACfoE,MAAA,CAIAK,QAAA,CACAxF,KAAAuB,OACAC,QAAA,IAGAkE,KAAA,CACA1F,KAAAuB,OACAC,QAAA,IAOAxB,KAAA,CACAA,KAAAuB,OACAC,QAAA,YAGAG,KAAA,WACA,UAGAG,SAAA,CACAyD,eAAA,WACA,IAAAI,EAAA,KAAA3F,KAMA,OAJA,KAAA0F,KAAAjB,OAAA,IACAkB,IAAA,SAAAD,MAGAC,KCnD+V,I,YCO3VV,EAAY,eACd,EACArH,EACAmD,GACA,EACA,KACA,WACA,MAIa,aAAAkE,E","file":"js/my-account-setpassword.js?id=6e6bfdc0815204edd067","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"title is-4\",domProps:{\"innerHTML\":_vm._s(_vm.$t('Components.AccountControls.SetPassword.Mail_Title', _vm.localeOverride))}}),(_vm.errorMessage)?_c('Message',{staticClass:\"is-danger\",attrs:{\"message\":_vm.errorMessage}}):_vm._e(),_c('div',{staticClass:\"content\"},[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.$t('Components.AccountControls.SetPassword.Text_Notification', _vm.localeOverride))}})]),_c('div',[_c('ui-base-input-field',{attrs:{\"labelForInput\":false,\"error\":_vm.passwordErrors,\"label\":_vm.$t('Components.AccountControls.SetPassword.Label_Password', _vm.localeOverride),\"fieldType\":\"password\",\"required\":\"\"},on:{\"input\":function($event){return _vm.$v.form.password.$touch()},\"blur\":function($event){return _vm.$v.form.password.$touch()}},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}}),_c('ui-base-input-field',{attrs:{\"labelForInput\":false,\"error\":_vm.confirmPasswordErrors,\"fieldType\":\"password\",\"label\":_vm.$t('Components.AccountControls.SetPassword.Label_RepeatPassword', _vm.localeOverride),\"required\":\"\"},on:{\"input\":function($event){return _vm.$v.form.confirmPassword.$touch()},\"blur\":function($event){return _vm.$v.form.confirmPassword.$touch()}},model:{value:(_vm.form.confirmPassword),callback:function ($$v) {_vm.$set(_vm.form, \"confirmPassword\", $$v)},expression:\"form.confirmPassword\"}}),_c('ui-base-field-template',{attrs:{\"labelForInput\":false,\"label\":_vm.$t('Components.AccountControls.SetPassword.Label_ConfirmationCode', _vm.localeOverride),\"required\":true},scopedSlots:_vm._u([{key:\"fields\",fn:function(){return [_c('div',{staticClass:\"level is-inline-flex input-codes is-mobile\"},[_c('div',{staticClass:\"level-item\"},[_c('input',{ref:\"codePart1\",staticClass:\"input has-text-centered\",class:[{ 'is-danger': _vm.failCode === -1 || _vm.failCode === 400 }],attrs:{\"type\":\"text\",\"size\":\"2\",\"max\":\"2\",\"maxlength\":\"2\",\"name\":\"codePart1\"},on:{\"keyup\":[_vm.checkCodePart1,function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleSubmit.apply(null, arguments)}]}})]),_c('div',{staticClass:\"level-item\"},[_c('font-awesome-icon',{attrs:{\"icon\":['far', 'minus']}})],1),_c('div',{staticClass:\"level-item\"},[_c('input',{ref:\"codePart2\",staticClass:\"input has-text-centered\",class:[{ 'is-danger': _vm.failCode === -1 || _vm.failCode === 400 }],attrs:{\"type\":\"text\",\"size\":\"2\",\"max\":\"2\",\"maxlength\":\"2\",\"name\":\"codePart2\"},on:{\"keyup\":[_vm.checkCodePart2,function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleSubmit.apply(null, arguments)}]}})]),_c('div',{staticClass:\"level-item\"},[_c('font-awesome-icon',{attrs:{\"icon\":['far', 'minus']}})],1),_c('div',{staticClass:\"level-item\"},[_c('input',{ref:\"codePart3\",staticClass:\"input has-text-centered\",class:[{ 'is-danger': _vm.failCode === -1 || _vm.failCode === 400 }],attrs:{\"type\":\"text\",\"size\":\"2\",\"max\":\"2\",\"maxlength\":\"2\",\"name\":\"codePart3\"},on:{\"keyup\":[_vm.checkCodePart3,function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleSubmit.apply(null, arguments)}]}})])]),(_vm.errorCodeMessage)?_c('p',[_c('span',{staticClass:\"help is-danger\"},[_vm._v(\" \"+_vm._s(_vm.errorCodeMessage)+\" \")])]):_vm._e()]},proxy:true}])}),_c('div',{staticClass:\"has-text-right has-padding-top\"},[_c('button',{staticClass:\"button is-primary\",class:[\n          {\n            'is-disabled': Boolean(_vm.$v.$error) || _vm.isProcessing,\n            'is-loading': _vm.isProcessing,\n          },\n        ],attrs:{\"disabled\":Boolean(_vm.$v.$error) || _vm.isProcessing},on:{\"click\":_vm.handleSubmit}},[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.$t('Components.AccountControls.SetPassword.Button_Save', _vm.localeOverride))}})])])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div>\n    <div\n      class=\"title is-4\"\n      v-html=\"$t('Components.AccountControls.SetPassword.Mail_Title', localeOverride)\"\n    ></div>\n    <Message\n      class=\"is-danger\"\n      v-if=\"errorMessage\"\n      :message=\"errorMessage\"\n    >\n    </Message>\n    <div class=\"content\">\n      <p v-html=\"$t('Components.AccountControls.SetPassword.Text_Notification', localeOverride)\"></p>\n    </div>\n    <div>\n      <ui-base-input-field\n        v-model=\"form.password\"\n        :labelForInput=\"false\"\n        :error=\"passwordErrors\"\n        :label=\"$t('Components.AccountControls.SetPassword.Label_Password', localeOverride)\"\n        fieldType=\"password\"\n        @input=\"$v.form.password.$touch()\"\n        @blur=\"$v.form.password.$touch()\"\n        required\n      />\n      <ui-base-input-field\n        v-model=\"form.confirmPassword\"\n        :labelForInput=\"false\"\n        :error=\"confirmPasswordErrors\"\n        fieldType=\"password\"\n        :label=\"\n          $t('Components.AccountControls.SetPassword.Label_RepeatPassword', localeOverride)\n        \"\n        @input=\"$v.form.confirmPassword.$touch()\"\n        @blur=\"$v.form.confirmPassword.$touch()\"\n        required\n      />\n      <ui-base-field-template\n        :labelForInput=\"false\"\n        :label=\"\n          $t('Components.AccountControls.SetPassword.Label_ConfirmationCode', localeOverride)\n        \"\n        :required=\"true\"\n      >\n        <template v-slot:fields>\n          <div class=\"level is-inline-flex input-codes is-mobile\">\n            <div class=\"level-item\">\n              <input\n                type=\"text\"\n                ref=\"codePart1\"\n                @keyup=\"checkCodePart1\"\n                size=\"2\"\n                max=\"2\"\n                maxlength=\"2\"\n                name=\"codePart1\"\n                class=\"input has-text-centered\"\n                :class=\"[{ 'is-danger': failCode === -1 || failCode === 400 }]\"\n                @keyup.enter=\"handleSubmit\"\n              />\n            </div>\n            <div class=\"level-item\">\n              <font-awesome-icon :icon=\"['far', 'minus']\" />\n            </div>\n            <div class=\"level-item\">\n              <input\n                type=\"text\"\n                ref=\"codePart2\"\n                @keyup=\"checkCodePart2\"\n                size=\"2\"\n                max=\"2\"\n                maxlength=\"2\"\n                name=\"codePart2\"\n                class=\"input has-text-centered\"\n                :class=\"[{ 'is-danger': failCode === -1 || failCode === 400 }]\"\n                @keyup.enter=\"handleSubmit\"\n              />\n            </div>\n            <div class=\"level-item\">\n              <font-awesome-icon :icon=\"['far', 'minus']\" />\n            </div>\n            <div class=\"level-item\">\n              <input\n                type=\"text\"\n                ref=\"codePart3\"\n                @keyup=\"checkCodePart3\"\n                size=\"2\"\n                max=\"2\"\n                maxlength=\"2\"\n                name=\"codePart3\"\n                class=\"input has-text-centered\"\n                :class=\"[{ 'is-danger': failCode === -1 || failCode === 400 }]\"\n                @keyup.enter=\"handleSubmit\"\n              />\n            </div>\n          </div>\n          <p v-if=\"errorCodeMessage\">\n            <span class=\"help is-danger\">\n              {{ errorCodeMessage }}\n            </span>\n          </p>\n        </template>\n      </ui-base-field-template>\n\n      <div class=\"has-text-right has-padding-top\">\n        <button\n          @click=\"handleSubmit\"\n          :disabled=\"Boolean($v.$error) || isProcessing\"\n          class=\"button is-primary\"\n          :class=\"[\n            {\n              'is-disabled': Boolean($v.$error) || isProcessing,\n              'is-loading': isProcessing,\n            },\n          ]\"\n        >\n          <span v-html=\"$t('Components.AccountControls.SetPassword.Button_Save', localeOverride)\"></span>\n        </button>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapState, mapMutations } from 'vuex'\nimport loginProvider from '@/providers/login'\nimport { required, minLength, sameAs } from 'vuelidate/lib/validators'\nimport encryptString from '@/mixins/encryptString'\n\nconst touchMap = new WeakMap()\n\nexport default {\n  name: 'components-set-password',\n\n  components: {\n    Message: () =>\n      import(\n        /* webpackChunkName: \"component-account-controls-setpassword\" */ '@/components/UI/Message'\n      ),\n  },\n\n  mixins: [encryptString],\n\n  inject: {\n    localeOverride: {\n      type: String,\n      default: function() {\n        return this.$i18n.locale\n      }\n    }\n  },\n\n  data() {\n    return {\n      form: {\n        password: '',\n        confirmPassword: '',\n        code: '',\n      },\n      failCode: 0,\n      passwordsNotEqual: false,\n      isProcessing: false,\n      errorCodeMessage: '',\n    }\n  },\n\n  computed: {\n    ...mapState('accountStore', ['confirmationToken']),\n\n    errorMessage() {\n      if (\n        this.failCode === -1 ||\n        this.failCode === -3 ||\n        this.failCode === -4\n      ) {\n        return this.$t(\n          'Components.AccountControls.SetPassword.Message_ErrorCode-1'\n        )\n      } else if (this.failCode === -2) {\n        return this.$t(\n          'Components.AccountControls.SetPassword.Message_ErrorCode-2'\n        )\n      } else if (this.failCode === 400) {\n        return this.$t(\n          'Components.AccountControls.SetPassword.Message_ErrorCode400'\n        )\n      } else if (this.failCode === 429) {\n        return this.$t(\n          'Components.AccountControls.SetPassword.Message_ErrorCode429'\n        )\n      } else if (this.failCode === 500) {\n        return this.$t(\n          'Components.AccountControls.SetPassword.Message_ErrorCode500'\n        )\n      } else if (this.failCode === 501) {\n        return this.$t(\n          'Components.AccountControls.SetPassword.Message_ErrorCode501'\n        )\n      }\n      return ''\n    },\n\n    passwordErrors() {\n      const errors = []\n      if (!this.$v.form.password.$dirty) return errors\n      if (!this.$v.form.password.required) {\n        errors.push(\n          this.$t('Form.InputErrors.RequiredField', {\n            fieldLabel: this.$t(\n              'Components.AccountControls.SetPassword.Label_Password'\n            ),\n          })\n        )\n      }\n      if (!this.$v.form.password.minLength) {\n        errors.push(this.$t('Form.InputErrors.minLength', { minLength: 6 }))\n      }\n      if (!/(?=.*[a-z])/.test(this.form.password)) {\n        errors.push(this.$t('Form.InputErrors.lowercaseCharacter', this.localeOverride))\n      }\n      if (!/(?=.*[A-Z])/.test(this.form.password)) {\n        errors.push(this.$t('Form.InputErrors.uppercaseCharacter', this.localeOverride))\n      }\n      if (!/(?=.*\\d)/.test(this.form.password)) {\n        errors.push(this.$t('Form.InputErrors.numberCharacter', this.localeOverride))\n      }\n      return errors\n    },\n\n    confirmPasswordErrors() {\n      const errors = []\n      if (!this.$v.form.confirmPassword.$dirty) {\n        return errors\n      }\n      if (!this.$v.form.confirmPassword.required) {\n        errors.push(\n          this.$t('Form.InputErrors.Required', this.localeOverride)\n        )\n      } else if (!this.$v.form.confirmPassword.sameAsPassword) {\n        errors.push(this.$t('Form.InputErrors.NotSamePasswords', this.localeOverride))\n      }\n      return errors\n    },\n  },\n\n  /**\n   * Form validation rules\n   */\n  validations: {\n    form: {\n      password: {\n        required,\n        minLength: minLength(8),\n      },\n      confirmPassword: {\n        required,\n        sameAsPassword: sameAs('password'),\n      },\n    },\n  },\n\n  methods: {\n    ...mapMutations('accountStore', ['setConfirmationToken']),\n\n    onCodeValidated() {\n      this.errorCodeMessage = ''\n      if (this.form.code === '') {\n        this.errorCodeMessage = this.$t('Form.InputErrors.RequiredField', {\n          fieldLabel: this.$t(\n            'Components.AccountControls.SetPassword.Label_ConfirmationCode', this.localeOverride\n          ),\n        })\n      } else if (this.failCode === -1) {\n        this.errorCodeMessage = this.$t(\n          'Components.AccountControls.SetPassword.Message_ErrorConfirmationCode', this.localeOverride\n        )\n      }\n    },\n\n    async handleSubmit() {\n      let self = this\n      if (!this.isProcessing) {\n        this.failCode = 0\n        this.isProcessing = true\n        this.$v.$touch()\n        if (this.$v.$invalid) {\n          this.submitStatus = 'ERROR'\n          // console.info(e)\n          this.isProcessing = false\n        } else {\n          // do your submit logic here\n          this.submitStatus = 'PENDING'\n        }\n\n        let encryptedPassword = self.encryptPassword(this.form.confirmPassword)\n\n        // Send request e-mail\n        await loginProvider.methods\n          .changePassword(this.confirmationToken, this.form.code, encryptedPassword)\n          .then((response) => {\n            this.failCode = response.data\n            if (this.failCode > 0) {\n              self.$emit('nextAction')\n\n              this.setConfirmationToken('')\n            } else {\n              this.isProcessing = false\n            }\n          })\n          .catch((e) => {\n            this.failCode = e.response.status\n            this.isProcessing = false\n          })\n          .finally(() => {\n            self = null\n          })\n      }\n    },\n\n    checkCodePart1(e) {\n      if (e.target.value.trim() !== '' && e.target.value.length === 2) {\n        this.$refs.codePart2.focus()\n      }\n      this.updateCode()\n    },\n\n    checkCodePart2(e) {\n      if (e.target.value.trim() !== '' && e.target.value.length === 2) {\n        this.$refs.codePart3.focus()\n      }\n      this.updateCode()\n    },\n\n    checkCodePart3() {\n      this.updateCode()\n    },\n    updateCode() {\n      let output = ''\n      output += this.$refs.codePart1 ? this.$refs.codePart1.value.trim() : ''\n      output += this.$refs.codePart2 ? this.$refs.codePart2.value.trim() : ''\n      output += this.$refs.codePart3 ? this.$refs.codePart3.value.trim() : ''\n      this.form.code = output\n      this.onCodeValidated()\n    },\n  },\n}\n</script>\n\n<style lang=\"scss\" scoped></style>\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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetPassword.vue?vue&type=script&lang=js\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetPassword.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SetPassword.vue?vue&type=template&id=75738a98&scoped=true\"\nimport script from \"./SetPassword.vue?vue&type=script&lang=js\"\nexport * from \"./SetPassword.vue?vue&type=script&lang=js\"\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  \"75738a98\",\n  null\n  \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"login-fields-component\"},[_c('div',{staticClass:\"title is-4\",domProps:{\"innerHTML\":_vm._s(_vm.$t('Components.AccountControls.SetPasswordConfirmation.Main_Title', _vm.localeOverride))}}),_c('Message',{staticClass:\"is-success\",scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('font-awesome-icon',{staticClass:\"has-margin-right\",attrs:{\"icon\":['fa', 'check']}}),_vm._v(\" \"+_vm._s(_vm.$t('Components.AccountControls.SetPasswordConfirmation.Message_Success', _vm.localeOverride))+\" \")]},proxy:true}])}),_c('div',{staticClass:\"has-margin-bottom\",domProps:{\"innerHTML\":_vm._s(_vm.$t('Components.AccountControls.SetPasswordConfirmation.Text_Notification', _vm.localeOverride))}}),_c('div',{staticClass:\"has-text-right has-padding\"},[_c('a',{staticClass:\"button is-primary\",attrs:{\"tag\":\"button\"},on:{\"click\":function($event){return _vm.handlerBackFunc()}}},[_vm._v(_vm._s(_vm.$t('Components.AccountControls.SetPasswordConfirmation.Button_Login', _vm.localeOverride)))])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"login-fields-component\">\n    <div\n      class=\"title is-4 \"\n      v-html=\"$t('Components.AccountControls.SetPasswordConfirmation.Main_Title', localeOverride)\"\n    >\n    </div>\n    <Message class=\"is-success\">\n      <template v-slot:content>\n        <font-awesome-icon\n          :icon=\"['fa', 'check']\"\n          class=\"has-margin-right\"\n        />\n        {{$t('Components.AccountControls.SetPasswordConfirmation.Message_Success', localeOverride)}}\n      </template>\n    </Message>\n    <div\n      class=\"has-margin-bottom\"\n      v-html=\"$t('Components.AccountControls.SetPasswordConfirmation.Text_Notification', localeOverride)\"\n    >\n    </div>\n    <div class=\"has-text-right has-padding\">\n      <a\n        tag=\"button\"\n        @click=\"handlerBackFunc()\"\n        class=\"button is-primary\"\n      >{{ $t('Components.AccountControls.SetPasswordConfirmation.Button_Login', localeOverride) }}</a>\n    </div>\n  </div>\n</template>\n\n<script>\nimport Message from '@/components/UI/Message'\n\nexport default {\n  name: 'set-new-password-confirmation',\n\n  components: {\n    Message\n  },\n\n  inject: {\n    localeOverride: {\n      type: String,\n      default: function() {\n        return this.$i18n.locale\n      }\n    }\n  },\n\n  props: {\n    backFunc: {\n      type: [Function, Boolean],\n      default: false,\n    },\n  },\n\n  data() {\n    return {}\n  },\n\n  methods: {\n    handlerBackFunc() {\n      !this.backFunc && this.$router.push({ name: 'my-account-login' })\n\n      this.backFunc()\n    }\n  }\n}\n</script>\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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetPasswordConfirmation.vue?vue&type=script&lang=js\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetPasswordConfirmation.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SetPasswordConfirmation.vue?vue&type=template&id=699ad5bf\"\nimport script from \"./SetPasswordConfirmation.vue?vue&type=script&lang=js\"\nexport * from \"./SetPasswordConfirmation.vue?vue&type=script&lang=js\"\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 render(){var _vm=this,_c=_vm._self._c;return _c('article',{staticClass:\"message\",class:_vm.combindedClass},[_c('div',{staticClass:\"message-body\"},[(_vm.message)?[_vm._v(\" \"+_vm._s(_vm.message)+\" \")]:_vm._e(),_vm._t(\"content\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <article\n    class=\"message\"\n    :class=\"combindedClass\"\n  >\n    <div class=\"message-body\">\n      <template v-if=\"message\">\n        {{ message }}\n      </template>\n      <slot name=\"content\"></slot>\n    </div>\n  </article>\n</template>\n\n<script>\nexport default {\n  props: {\n    /**\n     * For what'll be shown inside of the message box.\n     */\n    message: {\n      type: String,\n      default: ''\n    },\n\n    size: {\n      type: String,\n      default: ''\n    },\n\n    /**\n     * type bepaalt het type weergave\n     * eq. is-info = for information style. It defines the style of the message\n     */\n    type: {\n      type: String,\n      default: 'is-info'\n    }\n  },\n  data() {\n    return {};\n  },\n\n  computed: {\n    combindedClass() {\n      let c = this.type;\n\n      if (this.size.length > 0) {\n        c = c + ' ' + this.size;\n      }\n\n      return c;\n    }\n  }\n};\n</script>\n\n<style lang=\"scss\" scoped></style>\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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Message.vue?vue&type=script&lang=js\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Message.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Message.vue?vue&type=template&id=509443f1&scoped=true\"\nimport script from \"./Message.vue?vue&type=script&lang=js\"\nexport * from \"./Message.vue?vue&type=script&lang=js\"\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  \"509443f1\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}