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AOwE,EAAGvkB,IAAM0T,EAAS,CAAE1T,GAAIukB,EAAGvkB,GAAIH,KAAM0kB,EAAG1kB,KAAMkd,YAAawH,EAAGxH,aAAewH,EAAGxN,SAI3F1Q,EAASqN,EAASA,EAAS,CAAC,EAAGrN,GAASke,EAAGle,QAC3C0Z,EAASrM,EAASA,EAAS,CAAC,EAAGqM,GAASwE,EAAGxE,QAC/C,CAKA,OAJAwJ,GAAiBpR,SAAQ,SAAU3J,GAC/B,IAAI+Z,EAAO/Z,EAAG,GAAI6c,EAAS7c,EAAG,GAC9BuI,EAAMwR,GAAQ6C,EAAIC,IAAQ,SAAU9G,GAAM,OAAOA,EAAGxN,MAAMwR,EAAO,GACrE,IACO,CAAEliB,OAAQA,EAAQ0Q,MAAOA,EAAOgJ,OAAQA,EACnD,C","sources":["webpack://vero/./src/sites/tax_fi/js/vue/components/A11YAnnouncer.vue?5eb3","webpack://vero/src/sites/tax_fi/js/vue/components/A11YAnnouncer.vue","webpack://vero/./src/sites/tax_fi/js/vue/components/A11YAnnouncer.vue?dd87","webpack://vero/./src/sites/tax_fi/js/vue/components/A11YAnnouncer.vue","webpack://vero/./src/sites/tax_fi/js/vue/components/Tooltip.vue?51c3","webpack://vero/src/sites/tax_fi/js/vue/components/Tooltip.vue","webpack://vero/./src/sites/tax_fi/js/vue/components/Tooltip.vue?e35d","webpack://vero/./src/sites/tax_fi/js/vue/components/Tooltip.vue","webpack://vero/./src/sites/tax_fi/js/vue/components/calculators/AnnualInformationCalculator.vue?2623","webpack://vero/./src/sites/tax_fi/js/vue/components/calculators/utils/annualInformationCalculations.js","webpack://vero/src/sites/tax_fi/js/vue/components/calculators/AnnualInformationCalculator.vue","webpack://vero/./src/sites/tax_fi/js/vue/components/calculators/AnnualInformationCalculator.vue?efef","webpack://vero/./src/sites/tax_fi/js/vue/components/calculators/AnnualInformationCalculator.vue","webpack://vero/./src/sites/tax_fi/js/vue/components/calculators/partials/CalculatorField.vue?02f9","webpack://vero/src/sites/tax_fi/js/vue/components/calculators/partials/CalculatorField.vue","webpack://vero/./src/sites/tax_fi/js/vue/components/calculators/partials/CalculatorField.vue?2967","webpack://vero/./src/sites/tax_fi/js/vue/components/calculators/partials/CalculatorField.vue","webpack://vero/./node_modules/core-js/internals/define-built-in-accessor.js","webpack://vero/./node_modules/core-js/modules/es.regexp.flags.js","webpack://vero/./src/sites/tax_fi/js/vue/components/calculators/models/calculatorModels.js","webpack://vero/./src/sites/tax_fi/js/vue/components/calculators/utils/calculatorHelpers.js","webpack://vero/./node_modules/vee-validate3/dist/rules.js","webpack://vero/./src/utils/vee-validate.js","webpack://vero/./node_modules/vee-validate3/dist/vee-validate.esm.js"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"announcer sr-only\",attrs:{\"role\":\"status\",\"aria-live\":\"polite\"}},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <div class=\"announcer sr-only\" role=\"status\" aria-live=\"polite\">\r\n    <slot></slot>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n  name: 'A11YAnnouncer'\r\n};\r\n</script>\r\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./A11YAnnouncer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./A11YAnnouncer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./A11YAnnouncer.vue?vue&type=template&id=c84bc734\"\nimport script from \"./A11YAnnouncer.vue?vue&type=script&lang=js\"\nexport * from \"./A11YAnnouncer.vue?vue&type=script&lang=js\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tooltip\"},[_vm._t(\"default\"),(_vm.tooltipText)?_c('button',{staticClass:\"tooltip__button\",attrs:{\"type\":\"button\",\"aria-label\":_vm.ariaLabel,\"aria-describedby\":(\"tooltip_\" + _vm.id),\"aria-controls\":(\"tooltip_\" + _vm.id),\"aria-haspopup\":\"true\",\"aria-expanded\":_vm.isOpen ? 'true' : 'false'},on:{\"click\":function($event){$event.preventDefault();return _vm.toggle($event)}}},[_c('icon',{attrs:{\"glyph\":\"#icon-info\"}})],1):_vm._e(),(_vm.tooltipText)?_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isOpen && _vm.tooltipText),expression:\"isOpen && tooltipText\"}],staticClass:\"tooltip__text\",attrs:{\"role\":\"tooltip\",\"id\":(\"tooltip_\" + _vm.id)}},[_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.tooltipText)}}),_c('div',{staticClass:\"u-flex u-flex-right\"},[_c('span',{staticClass:\"btn-close\",attrs:{\"aria-label\":_vm.$trans('/common/close')},on:{\"click\":function($event){$event.preventDefault();return _vm.toggle($event)}}},[_vm._v(\" \"+_vm._s(_vm.$trans('/common/close'))+\" \")])])]):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <div class=\"tooltip\">\r\n    <slot></slot>\r\n    <button\r\n      type=\"button\"\r\n      class=\"tooltip__button\"\r\n      :aria-label=\"ariaLabel\"\r\n      :aria-describedby=\"`tooltip_${id}`\"\r\n      :aria-controls=\"`tooltip_${id}`\"\r\n      aria-haspopup=\"true\"\r\n      :aria-expanded=\"isOpen ? 'true' : 'false'\"\r\n      v-if=\"tooltipText\"\r\n      @click.prevent=\"toggle\"\r\n    >\r\n      <icon glyph=\"#icon-info\" />\r\n    </button>\r\n    <div\r\n      role=\"tooltip\"\r\n      class=\"tooltip__text\"\r\n      :id=\"`tooltip_${id}`\"\r\n      v-show=\"isOpen && tooltipText\"\r\n      v-if=\"tooltipText\"\r\n      v-cloak\r\n    >\r\n      <div v-html=\"tooltipText\"></div>\r\n      <div class=\"u-flex u-flex-right\">\r\n        <span class=\"btn-close\" :aria-label=\"$trans('/common/close')\" @click.prevent=\"toggle\">\r\n          {{ $trans('/common/close') }}\r\n        </span>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n  name: 'Tooltip',\r\n  props: {\r\n    tooltipText: { type: String, default: null },\r\n    tooltipAriaLabel: {\r\n      type: String,\r\n      default: ''\r\n    }\r\n  },\r\n  data() {\r\n    return {\r\n      id: null,\r\n      isOpen: false,\r\n      ariaLabel: ''\r\n    };\r\n  },\r\n  mounted() {\r\n    // eslint-disable-next-line no-underscore-dangle\r\n    this.id = this._uid;\r\n    this.ariaLabel = this.tooltipAriaLabel || this.$trans('/common/MoreInfo');\r\n  },\r\n  methods: {\r\n    toggle() {\r\n      this.isOpen = !this.isOpen;\r\n    }\r\n  }\r\n};\r\n</script>\r\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Tooltip.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Tooltip.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Tooltip.vue?vue&type=template&id=058c9445\"\nimport script from \"./Tooltip.vue?vue&type=script&lang=js\"\nexport * from \"./Tooltip.vue?vue&type=script&lang=js\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"calculator annual-information-calculator\"},[_c('ValidationObserver',{ref:\"observer\",attrs:{\"tag\":\"form\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit($event)}}},[_c('fieldset',{staticClass:\"annual-information-calculator__group\"},[_c('legend',[_vm._v(\" \"+_vm._s(_vm.$trans('/calculators/AnnualInformation/FilledInformation'))+\" \")]),_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.MostRecentFinancialYearStartDateInfo}},[_c('label',{attrs:{\"for\":\"mostRecentFinancialYearStartDate\"}},[_vm._v(_vm._s(_vm.$trans('/calculators/AnnualInformation/mostRecentFinancialYearStartDate')))])]),_c('calculator-field',{ref:\"mostRecentFinancialYearStartDate\",attrs:{\"name\":\"mostRecentFinancialYearStartDate\",\"rules\":\"date_format|required\"},model:{value:(_vm.calculatorModel.inputFields.mostRecentFinancialYearStartDate),callback:function ($$v) {_vm.$set(_vm.calculatorModel.inputFields, \"mostRecentFinancialYearStartDate\", $$v)},expression:\"calculatorModel.inputFields.mostRecentFinancialYearStartDate\"}}),_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.MostRecentFinancialYearEndDateInfo}},[_c('label',{attrs:{\"for\":\"mostRecentFinancialYearEndDate\"}},[_vm._v(_vm._s(_vm.$trans('/calculators/AnnualInformation/mostRecentFinancialYearEndDate')))])]),_c('calculator-field',{attrs:{\"name\":\"mostRecentFinancialYearEndDate\",\"rules\":\"date_format|not_same_date:mostRecentFinancialYearStartDate|valid_end_date:mostRecentFinancialYearStartDate|valid_financial_year_length:mostRecentFinancialYearStartDate|required\"},model:{value:(_vm.calculatorModel.inputFields.mostRecentFinancialYearEndDate),callback:function ($$v) {_vm.$set(_vm.calculatorModel.inputFields, \"mostRecentFinancialYearEndDate\", $$v)},expression:\"calculatorModel.inputFields.mostRecentFinancialYearEndDate\"}}),_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.DividendResolutionDayInfo}},[_c('label',{attrs:{\"for\":\"dividendResolutionDate\"}},[_vm._v(_vm._s(_vm.$trans('/calculators/AnnualInformation/dividendResolutionDate')))])]),_c('calculator-field',{attrs:{\"name\":\"dividendResolutionDate\",\"rules\":(\"date_format|dividend_resolution_date_not_in_financial_year:\" + (_vm.calculatorModel.inputFields.mostRecentFinancialYearStartDate) + \",\" + (_vm.calculatorModel.inputFields.mostRecentFinancialYearEndDate) + \"|valid_dividend_resolution_date:mostRecentFinancialYearEndDate|required\")},model:{value:(_vm.calculatorModel.inputFields.dividendResolutionDate),callback:function ($$v) {_vm.$set(_vm.calculatorModel.inputFields, \"dividendResolutionDate\", $$v)},expression:\"calculatorModel.inputFields.dividendResolutionDate\"}}),_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.DividendWithdrawalDateInfo}},[_c('label',{attrs:{\"for\":\"dividendWithdrawalDate\"}},[_vm._v(_vm._s(_vm.$trans('/calculators/AnnualInformation/dividendWithdrawalDate')))])]),_c('calculator-field',{attrs:{\"name\":\"dividendWithdrawalDate\",\"rules\":\"date_format|valid_dividend_withdrawal_date:dividendResolutionDate\"},model:{value:(_vm.calculatorModel.inputFields.dividendWithdrawalDate),callback:function ($$v) {_vm.$set(_vm.calculatorModel.inputFields, \"dividendWithdrawalDate\", $$v)},expression:\"calculatorModel.inputFields.dividendWithdrawalDate\"}})],1),_c('fieldset',{staticClass:\"calculator__group calculator__group--buttons\"},[_c('button',{staticClass:\"btn\",attrs:{\"type\":\"submit\",\"data-cy\":\"calculatorSubmit\",\"disabled\":_vm.isCalculating}},[_vm._v(\" \"+_vm._s(_vm.$trans('/calculators/Calculate'))+\" \")]),_c('button',{staticClass:\"calculator-reset\",attrs:{\"data-cy\":\"calculatorReset\"},on:{\"click\":function($event){$event.preventDefault();return _vm.resetCalculator($event)}}},[_vm._v(\" \"+_vm._s(_vm.$trans('/calculators/ResetForm'))+\" \")])])]),_c('A11YAnnouncer',[_vm._v(_vm._s(_vm.ariaMessage))]),(_vm.showResult)?_c('div',{staticClass:\"calculator-result\"},[_c('h2',{staticClass:\"calculator-breakdown__heading\",domProps:{\"textContent\":_vm._s(_vm.$trans('/calculators/AnnualInformation/ReportedInformation'))}}),_c('div',{staticClass:\"calculator-result__value-container calculator-result__value-container--white\"},[_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.MostRecentFinancialYearResultInfo}},[_c('h2',{staticClass:\"calculator-result__heading\",domProps:{\"textContent\":_vm._s(_vm.$trans('/calculators/AnnualInformation/mostRecentFinancialYear'))}})]),_c('span',{staticClass:\"calculator-result__value\",attrs:{\"data-cy\":\"mostRecentFinancialYearResult\"},domProps:{\"textContent\":_vm._s(_vm.calculatorModel.sumFields.mostRecentFinancialYear)}})],1),_c('div',{staticClass:\"calculator-result__value-container calculator-result__value-container--white\"},[_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.DividendResolutionDayResultInfo}},[_c('h2',{staticClass:\"calculator-result__heading\",domProps:{\"textContent\":_vm._s(_vm.$trans('/calculators/AnnualInformation/dividendResolutionDateResult'))}})]),_c('span',{staticClass:\"calculator-result__value\",attrs:{\"data-cy\":\"dividendResolutionDateResult\"},domProps:{\"textContent\":_vm._s(_vm.calculatorModel.sumFields.dividendResolutionDate)}})],1),_c('div',{staticClass:\"calculator-result__value-container calculator-result__value-container--white\"},[_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.DividendWithdrawalDateResultInfo}},[_c('h2',{staticClass:\"calculator-result__heading\",domProps:{\"textContent\":_vm._s(_vm.$trans('/calculators/AnnualInformation/dividendWithdrawalDateResult'))}})]),_c('span',{staticClass:\"calculator-result__value\",attrs:{\"data-cy\":\"dividendWithdrawalDateResult\"},domProps:{\"textContent\":_vm._s(_vm.calculatorModel.sumFields.dividendWithdrawalDate)}})],1),_c('div',{staticClass:\"calculator-result__value-container calculator-result__value-container--white\"},[_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.TaxYearResultInfo}},[_c('h2',{staticClass:\"calculator-result__heading\",domProps:{\"textContent\":_vm._s(_vm.$trans('/calculators/AnnualInformation/taxYear'))}})]),_c('span',{staticClass:\"calculator-result__value\",attrs:{\"data-cy\":\"taxYearResult\"},domProps:{\"textContent\":_vm._s(_vm.calculatorModel.sumFields.taxYear)}})],1),_c('div',{staticClass:\"calculator-result__value-container calculator-result__value-container--white\"},[_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.PaymentYearResultInfo}},[_c('h2',{staticClass:\"calculator-result__heading\",domProps:{\"textContent\":_vm._s(_vm.$trans('/calculators/AnnualInformation/paymentYear'))}})]),_c('span',{staticClass:\"calculator-result__value\",attrs:{\"data-cy\":\"paymentYearResult\"},domProps:{\"textContent\":_vm._s(_vm.calculatorModel.sumFields.paymentYear)}})],1),_c('h2',{staticClass:\"calculator-breakdown__heading\",domProps:{\"textContent\":_vm._s(_vm.$trans('/calculators/AnnualInformation/Deadlines'))}}),_c('div',{staticClass:\"calculator-result__value-container calculator-result__value-container--white\"},[_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.DeadlineForSelfAssessedTaxesInfo}},[_c('h2',{staticClass:\"calculator-result__heading\",domProps:{\"textContent\":_vm._s(_vm.$trans('/calculators/AnnualInformation/deadlineForSelfAssessedTaxes'))}})]),_c('span',{staticClass:\"calculator-result__value\",attrs:{\"data-cy\":\"deadlineForSelfAssessedTaxesResult\"},domProps:{\"textContent\":_vm._s(_vm.calculatorModel.sumFields.deadlineForSelfAssessedTaxes)}})],1),_c('div',{staticClass:\"calculator-result__value-container calculator-result__value-container--white\"},[_c('Tooltip',{attrs:{\"tooltip-text\":_vm.tooltips.DeadlineForAnnualInformationReportInfo}},[_c('h2',{staticClass:\"calculator-result__heading\",domProps:{\"textContent\":_vm._s(_vm.$trans('/calculators/AnnualInformation/deadlineForAnnualInformationReport'))}})]),_c('span',{staticClass:\"calculator-result__value\",attrs:{\"data-cy\":\"deadlineForAnnualInformationReportResult\"},domProps:{\"textContent\":_vm._s(_vm.calculatorModel.sumFields.deadlineForAnnualInformationReport)}})],1)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import _isNil from 'lodash/isNil';\r\nimport { convertDateToString, convertStringToDate } from './calculatorHelpers';\r\n\r\nexport const getMostRecentFinancialYear = (dateFrom, dateTo) => {\r\n  return `${dateFrom} - ${dateTo}`;\r\n};\r\n\r\nexport const getYear = date => {\r\n  if (_isNil(date)) {\r\n    return '';\r\n  }\r\n  date = convertStringToDate(date);\r\n  return date.getFullYear().toString();\r\n};\r\n\r\nexport const getDeadlineForSelfAssessedTaxes = date => {\r\n  if (_isNil(date)) {\r\n    return '';\r\n  }\r\n  date = convertStringToDate(date);\r\n  let deadlineDate = new Date(date.getFullYear(), date.getMonth() + 1, 12);\r\n  return convertDateToString(\r\n    deadlineDate.getDate(),\r\n    deadlineDate.getMonth() + 1,\r\n    deadlineDate.getFullYear()\r\n  );\r\n};\r\nexport const getDeadlineForAnnualInformationReport = date => {\r\n  if (_isNil(date)) {\r\n    return '';\r\n  }\r\n  date = convertStringToDate(date);\r\n  let deadlineDate = new Date(date.getFullYear() + 1, 0, 31); //e.g. 31.1.2021\r\n  return convertDateToString(\r\n    deadlineDate.getDate(),\r\n    deadlineDate.getMonth() + 1,\r\n    deadlineDate.getFullYear()\r\n  );\r\n};\r\n\r\nexport default {\r\n  getMostRecentFinancialYear,\r\n  getYear,\r\n  getDeadlineForSelfAssessedTaxes,\r\n  getDeadlineForAnnualInformationReport\r\n};\r\n","<template>\r\n  <div class=\"calculator annual-information-calculator\">\r\n    <ValidationObserver ref=\"observer\" tag=\"form\" @submit.prevent=\"onSubmit\">\r\n      <fieldset class=\"annual-information-calculator__group\">\r\n        <legend>\r\n          {{ $trans('/calculators/AnnualInformation/FilledInformation') }}\r\n        </legend>\r\n        <!-- Yrityksen viimeksi päättynyt tilikausi alkupäivämäärä --->\r\n        <Tooltip :tooltip-text=\"tooltips.MostRecentFinancialYearStartDateInfo\">\r\n          <label for=\"mostRecentFinancialYearStartDate\">{{\r\n            $trans('/calculators/AnnualInformation/mostRecentFinancialYearStartDate')\r\n          }}</label>\r\n        </Tooltip>\r\n        <calculator-field\r\n          name=\"mostRecentFinancialYearStartDate\"\r\n          rules=\"date_format|required\"\r\n          ref=\"mostRecentFinancialYearStartDate\"\r\n          v-model=\"calculatorModel.inputFields.mostRecentFinancialYearStartDate\"\r\n        />\r\n        <!-- Yrityksen viimeksi päättynyt tilikausi loppupäivämäärä --->\r\n        <Tooltip :tooltip-text=\"tooltips.MostRecentFinancialYearEndDateInfo\">\r\n          <label for=\"mostRecentFinancialYearEndDate\">{{\r\n            $trans('/calculators/AnnualInformation/mostRecentFinancialYearEndDate')\r\n          }}</label>\r\n        </Tooltip>\r\n        <calculator-field\r\n          name=\"mostRecentFinancialYearEndDate\"\r\n          rules=\"date_format|not_same_date:mostRecentFinancialYearStartDate|valid_end_date:mostRecentFinancialYearStartDate|valid_financial_year_length:mostRecentFinancialYearStartDate|required\"\r\n          v-model=\"calculatorModel.inputFields.mostRecentFinancialYearEndDate\"\r\n        />\r\n        <!-- Osingonjakopäätöspäivä--->\r\n        <Tooltip :tooltip-text=\"tooltips.DividendResolutionDayInfo\">\r\n          <label for=\"dividendResolutionDate\">{{\r\n            $trans('/calculators/AnnualInformation/dividendResolutionDate')\r\n          }}</label>\r\n        </Tooltip>\r\n        <calculator-field\r\n          name=\"dividendResolutionDate\"\r\n          :rules=\"`date_format|dividend_resolution_date_not_in_financial_year:${calculatorModel.inputFields.mostRecentFinancialYearStartDate},${calculatorModel.inputFields.mostRecentFinancialYearEndDate}|valid_dividend_resolution_date:mostRecentFinancialYearEndDate|required`\"\r\n          v-model=\"calculatorModel.inputFields.dividendResolutionDate\"\r\n        />\r\n        <!-- Päivä, josta lähtien osinko on nostettavissa--->\r\n        <Tooltip :tooltip-text=\"tooltips.DividendWithdrawalDateInfo\">\r\n          <label for=\"dividendWithdrawalDate\">{{\r\n            $trans('/calculators/AnnualInformation/dividendWithdrawalDate')\r\n          }}</label>\r\n        </Tooltip>\r\n        <calculator-field\r\n          name=\"dividendWithdrawalDate\"\r\n          rules=\"date_format|valid_dividend_withdrawal_date:dividendResolutionDate\"\r\n          v-model=\"calculatorModel.inputFields.dividendWithdrawalDate\"\r\n        />\r\n      </fieldset>\r\n      <!-- Buttons -->\r\n      <fieldset class=\"calculator__group calculator__group--buttons\">\r\n        <button class=\"btn\" type=\"submit\" data-cy=\"calculatorSubmit\" :disabled=\"isCalculating\">\r\n          {{ $trans('/calculators/Calculate') }}\r\n        </button>\r\n        <button class=\"calculator-reset\" data-cy=\"calculatorReset\" @click.prevent=\"resetCalculator\">\r\n          {{ $trans('/calculators/ResetForm') }}\r\n        </button>\r\n      </fieldset>\r\n    </ValidationObserver>\r\n    <!-- Announcer -->\r\n    <A11YAnnouncer>{{ ariaMessage }}</A11YAnnouncer>\r\n    <!-- Result -->\r\n    <div class=\"calculator-result\" v-if=\"showResult\">\r\n      <h2\r\n        v-text=\"$trans('/calculators/AnnualInformation/ReportedInformation')\"\r\n        class=\"calculator-breakdown__heading\"\r\n      ></h2>\r\n      <div class=\"calculator-result__value-container calculator-result__value-container--white\">\r\n        <Tooltip :tooltip-text=\"tooltips.MostRecentFinancialYearResultInfo\">\r\n          <h2\r\n            v-text=\"$trans('/calculators/AnnualInformation/mostRecentFinancialYear')\"\r\n            class=\"calculator-result__heading\"\r\n          ></h2>\r\n        </Tooltip>\r\n        <span\r\n          class=\"calculator-result__value\"\r\n          data-cy=\"mostRecentFinancialYearResult\"\r\n          v-text=\"calculatorModel.sumFields.mostRecentFinancialYear\"\r\n        />\r\n      </div>\r\n      <div class=\"calculator-result__value-container calculator-result__value-container--white\">\r\n        <Tooltip :tooltip-text=\"tooltips.DividendResolutionDayResultInfo\">\r\n          <h2\r\n            v-text=\"$trans('/calculators/AnnualInformation/dividendResolutionDateResult')\"\r\n            class=\"calculator-result__heading\"\r\n          ></h2>\r\n        </Tooltip>\r\n        <span\r\n          class=\"calculator-result__value\"\r\n          data-cy=\"dividendResolutionDateResult\"\r\n          v-text=\"calculatorModel.sumFields.dividendResolutionDate\"\r\n        />\r\n      </div>\r\n      <div class=\"calculator-result__value-container calculator-result__value-container--white\">\r\n        <Tooltip :tooltip-text=\"tooltips.DividendWithdrawalDateResultInfo\">\r\n          <h2\r\n            v-text=\"$trans('/calculators/AnnualInformation/dividendWithdrawalDateResult')\"\r\n            class=\"calculator-result__heading\"\r\n          ></h2>\r\n        </Tooltip>\r\n        <span\r\n          class=\"calculator-result__value\"\r\n          data-cy=\"dividendWithdrawalDateResult\"\r\n          v-text=\"calculatorModel.sumFields.dividendWithdrawalDate\"\r\n        />\r\n      </div>\r\n      <div class=\"calculator-result__value-container calculator-result__value-container--white\">\r\n        <Tooltip :tooltip-text=\"tooltips.TaxYearResultInfo\">\r\n          <h2\r\n            v-text=\"$trans('/calculators/AnnualInformation/taxYear')\"\r\n            class=\"calculator-result__heading\"\r\n          ></h2>\r\n        </Tooltip>\r\n        <span\r\n          class=\"calculator-result__value\"\r\n          data-cy=\"taxYearResult\"\r\n          v-text=\"calculatorModel.sumFields.taxYear\"\r\n        />\r\n      </div>\r\n      <div class=\"calculator-result__value-container calculator-result__value-container--white\">\r\n        <Tooltip :tooltip-text=\"tooltips.PaymentYearResultInfo\">\r\n          <h2\r\n            v-text=\"$trans('/calculators/AnnualInformation/paymentYear')\"\r\n            class=\"calculator-result__heading\"\r\n          ></h2>\r\n        </Tooltip>\r\n        <span\r\n          class=\"calculator-result__value\"\r\n          data-cy=\"paymentYearResult\"\r\n          v-text=\"calculatorModel.sumFields.paymentYear\"\r\n        />\r\n      </div>\r\n      <!-- Breakdown -->\r\n      <h2\r\n        v-text=\"$trans('/calculators/AnnualInformation/Deadlines')\"\r\n        class=\"calculator-breakdown__heading\"\r\n      ></h2>\r\n      <div class=\"calculator-result__value-container calculator-result__value-container--white\">\r\n        <Tooltip :tooltip-text=\"tooltips.DeadlineForSelfAssessedTaxesInfo\">\r\n          <h2\r\n            v-text=\"$trans('/calculators/AnnualInformation/deadlineForSelfAssessedTaxes')\"\r\n            class=\"calculator-result__heading\"\r\n          ></h2>\r\n        </Tooltip>\r\n        <span\r\n          class=\"calculator-result__value\"\r\n          data-cy=\"deadlineForSelfAssessedTaxesResult\"\r\n          v-text=\"calculatorModel.sumFields.deadlineForSelfAssessedTaxes\"\r\n        />\r\n      </div>\r\n      <div class=\"calculator-result__value-container calculator-result__value-container--white\">\r\n        <Tooltip :tooltip-text=\"tooltips.DeadlineForAnnualInformationReportInfo\">\r\n          <h2\r\n            v-text=\"$trans('/calculators/AnnualInformation/deadlineForAnnualInformationReport')\"\r\n            class=\"calculator-result__heading\"\r\n          ></h2>\r\n        </Tooltip>\r\n        <span\r\n          class=\"calculator-result__value\"\r\n          data-cy=\"deadlineForAnnualInformationReportResult\"\r\n          v-text=\"calculatorModel.sumFields.deadlineForAnnualInformationReport\"\r\n        />\r\n      </div>\r\n    </div>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport Tooltip from '../Tooltip';\r\nimport CalculatorField from './partials/CalculatorField';\r\nimport A11YAnnouncer from '../A11YAnnouncer';\r\n\r\nimport * as calculations from './utils/annualInformationCalculations';\r\nimport 'utils/vee-validate';\r\nimport {\r\n  validationMessages,\r\n  dateFormatValidator,\r\n  mustNotBeSameDateValidator,\r\n  dateMustBeGreaterOrEqualValidator,\r\n  financialYearRangeValidator,\r\n  dividendResolutionDateNotInFinancialYear,\r\n  dividendResolutionDateValidator\r\n} from 'utils/vee-validate';\r\nimport { localize, ValidationObserver, extend } from 'vee-validate3';\r\n\r\nimport { annualInformationCalculatorModel as calculatorModel } from './models/calculatorModels';\r\n\r\nexport default {\r\n  name: 'annualInformationCalculator',\r\n  components: {\r\n    CalculatorField,\r\n    Tooltip,\r\n    ValidationObserver,\r\n    A11YAnnouncer\r\n  },\r\n  props: {\r\n    tooltips: { type: Object, default: () => {} }\r\n  },\r\n  data() {\r\n    return {\r\n      calculatorModel,\r\n      calculations,\r\n      resultCalculated: false,\r\n      isCalculating: false,\r\n      calculatorError: false\r\n    };\r\n  },\r\n  created() {\r\n    extend('date_format', dateFormatValidator);\r\n    extend('not_same_date', mustNotBeSameDateValidator);\r\n    extend('valid_end_date', dateMustBeGreaterOrEqualValidator);\r\n    extend('valid_financial_year_length', financialYearRangeValidator);\r\n    extend(\r\n      'dividend_resolution_date_not_in_financial_year',\r\n      dividendResolutionDateNotInFinancialYear\r\n    );\r\n    extend('valid_dividend_resolution_date', dividendResolutionDateValidator);\r\n    extend('valid_dividend_withdrawal_date', dateMustBeGreaterOrEqualValidator);\r\n    localize(window.site_locale, validationMessages());\r\n  },\r\n  computed: {\r\n    showResult() {\r\n      return this.resultCalculated && !this.calculatorError;\r\n    },\r\n    ariaMessage() {\r\n      return this.resultCalculated && !this.isFormDirty\r\n        ? this.$trans('/accessibility/ResultCalculated')\r\n        : '';\r\n    },\r\n    isFormDirty() {\r\n      const _observer = this.$refs.observer;\r\n      return _observer.flags.dirty || false;\r\n    }\r\n  },\r\n  methods: {\r\n    async onSubmit() {\r\n      this.isCalculating = true;\r\n      this.resultCalculated = false;\r\n      const _observer = this.$refs.observer;\r\n      const isValid = await _observer.validate();\r\n      if (!isValid) {\r\n        const firstError = this.$el.querySelector('[aria-invalid=true]');\r\n        firstError.focus();\r\n        this.isCalculating = false;\r\n        return;\r\n      }\r\n      new Promise(resolve => {\r\n        this.calculateDates();\r\n        resolve();\r\n      })\r\n        .then(() => {\r\n          this.resultCalculated = true;\r\n          _observer.reset();\r\n          this.isCalculating = false;\r\n        })\r\n        .catch(() => {\r\n          this.isCalculating = false;\r\n          this.calculatorError = true;\r\n        });\r\n    },\r\n    calculateDates() {\r\n      this.calculatorModel.sumFields = this.clearFields(this.calculatorModel.sumFields);\r\n      this.calculatorModel.sumFields.dividendResolutionDate =\r\n        this.calculatorModel.inputFields.dividendResolutionDate;\r\n      this.calculatorModel.sumFields.dividendWithdrawalDate =\r\n        this.calculatorModel.inputFields.dividendWithdrawalDate ||\r\n        this.calculatorModel.inputFields.dividendResolutionDate;\r\n      this.calculatorModel.sumFields.mostRecentFinancialYear =\r\n        this.calculations.getMostRecentFinancialYear(\r\n          this.calculatorModel.inputFields.mostRecentFinancialYearStartDate,\r\n          this.calculatorModel.inputFields.mostRecentFinancialYearEndDate\r\n        );\r\n      this.calculatorModel.sumFields.taxYear = this.calculations.getYear(\r\n        this.calculatorModel.inputFields.mostRecentFinancialYearEndDate\r\n      );\r\n      this.calculatorModel.sumFields.paymentYear = this.calculations.getYear(\r\n        this.calculatorModel.sumFields.dividendWithdrawalDate\r\n      );\r\n      this.calculatorModel.sumFields.deadlineForSelfAssessedTaxes =\r\n        this.calculations.getDeadlineForSelfAssessedTaxes(\r\n          this.calculatorModel.sumFields.dividendWithdrawalDate\r\n        );\r\n      this.calculatorModel.sumFields.deadlineForAnnualInformationReport =\r\n        this.calculations.getDeadlineForAnnualInformationReport(\r\n          this.calculatorModel.sumFields.dividendWithdrawalDate\r\n        );\r\n    },\r\n    clearFields(obj) {\r\n      for (const prop of Object.keys(obj)) {\r\n        obj[prop] = '';\r\n      }\r\n      return obj;\r\n    },\r\n    resetCalculator() {\r\n      this.resultCalculated = false;\r\n      this.calculatorError = false;\r\n      this.calculatorModel.inputFields = this.clearFields(this.calculatorModel.inputFields);\r\n      this.calculatorModel.sumFields = this.clearFields(this.calculatorModel.sumFields);\r\n      const _observer = this.$refs.observer;\r\n      _observer.reset();\r\n      this.$refs.mostRecentFinancialYearStartDate.$el\r\n        .querySelector('#mostRecentFinancialYearStartDate')\r\n        .focus();\r\n    }\r\n  }\r\n};\r\n</script>\r\n","import mod from \"-!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./AnnualInformationCalculator.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./AnnualInformationCalculator.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./AnnualInformationCalculator.vue?vue&type=template&id=05844ecc\"\nimport script from \"./AnnualInformationCalculator.vue?vue&type=script&lang=js\"\nexport * from \"./AnnualInformationCalculator.vue?vue&type=script&lang=js\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ValidationProvider',{ref:\"provider\",attrs:{\"rules\":_vm.rules,\"mode\":_vm.mode,\"vid\":_vm.name},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nvar ariaInput = ref.ariaInput;\nvar invalid = ref.invalid;\nvar ariaMsg = ref.ariaMsg;\nreturn [_c('input',_vm._b({attrs:{\"type\":\"text\",\"id\":_vm.name,\"data-cy\":_vm.name,\"name\":_vm.name,\"aria-invalid\":errors.length > 0,\"disabled\":_vm.isDisabled},domProps:{\"value\":_vm.value},on:{\"input\":function($event){return _vm.$emit('input', $event.target.value)}}},'input',ariaInput,false)),_c('div',_vm._b({staticClass:\"calculator__inputerror\"},'div',ariaMsg,false),[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}])})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <ValidationProvider\r\n    :rules=\"rules\"\r\n    :mode=\"mode\"\r\n    :vid=\"name\"\r\n    ref=\"provider\"\r\n    v-slot=\"{ errors, ariaInput, invalid, ariaMsg }\"\r\n  >\r\n    <input\r\n      :value=\"value\"\r\n      @input=\"$emit('input', $event.target.value)\"\r\n      type=\"text\"\r\n      :id=\"name\"\r\n      :data-cy=\"name\"\r\n      :name=\"name\"\r\n      v-bind=\"ariaInput\"\r\n      :aria-invalid=\"errors.length > 0\"\r\n      :disabled=\"isDisabled\"\r\n    />\r\n    <div v-bind=\"ariaMsg\" class=\"calculator__inputerror\">\r\n      {{ errors[0] }}\r\n    </div>\r\n  </ValidationProvider>\r\n</template>\r\n\r\n<script>\r\nimport { ValidationProvider } from 'vee-validate3';\r\n\r\nexport default {\r\n  name: 'calculatorField',\r\n  components: {\r\n    ValidationProvider\r\n  },\r\n  props: {\r\n    name: { type: String, default: '' },\r\n    value: { type: String, default: '' },\r\n    mode: { type: String, default: 'aggressive' },\r\n    rules: { type: String, default: '' },\r\n    isCurrency: { type: Boolean, default: false },\r\n    isDisabled: { type: Boolean, default: false }\r\n  }\r\n};\r\n</script>\r\n","import mod from \"-!../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CalculatorField.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./CalculatorField.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CalculatorField.vue?vue&type=template&id=0c4b1f11\"\nimport script from \"./CalculatorField.vue?vue&type=script&lang=js\"\nexport * from \"./CalculatorField.vue?vue&type=script&lang=js\"\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","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n  if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n  if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n  return defineProperty.f(target, name, descriptor);\n};\n","var global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar regExpFlags = require('../internals/regexp-flags');\nvar fails = require('../internals/fails');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError\nvar RegExp = global.RegExp;\nvar RegExpPrototype = RegExp.prototype;\n\nvar FORCED = DESCRIPTORS && fails(function () {\n  var INDICES_SUPPORT = true;\n  try {\n    RegExp('.', 'd');\n  } catch (error) {\n    INDICES_SUPPORT = false;\n  }\n\n  var O = {};\n  // modern V8 bug\n  var calls = '';\n  var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';\n\n  var addGetter = function (key, chr) {\n    // eslint-disable-next-line es/no-object-defineproperty -- safe\n    Object.defineProperty(O, key, { get: function () {\n      calls += chr;\n      return true;\n    } });\n  };\n\n  var pairs = {\n    dotAll: 's',\n    global: 'g',\n    ignoreCase: 'i',\n    multiline: 'm',\n    sticky: 'y'\n  };\n\n  if (INDICES_SUPPORT) pairs.hasIndices = 'd';\n\n  for (var key in pairs) addGetter(key, pairs[key]);\n\n  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n  var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O);\n\n  return result !== expected || calls !== expected;\n});\n\n// `RegExp.prototype.flags` getter\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nif (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', {\n  configurable: true,\n  get: regExpFlags\n});\n","export const vatLowerLimitReliefCalculatorModel = {\r\n  limits: {\r\n    huojennukseenOikeuttavanLiikevaihdonAlaraja: 10000,\r\n    huojennukseenOikeuttavanLiikevaihdonYlaraja: 30000\r\n  },\r\n  liikevaihto: {\r\n    tilikaudenPituus: '',\r\n    verollinenLiikevaihto: '',\r\n    verotonLiikevaihto: '',\r\n    kayttoomaisuudenMyynti: '',\r\n    kiinteistonKayttooikeudenLuovutus: '',\r\n    metsataloudenMyynti: '',\r\n    eraatVerottomatMyynnit: ''\r\n  },\r\n  suoritettavaVero: {\r\n    arvonlisaveronOsuus: '',\r\n    suoritettavatArvonlisaverotYhteensa: '',\r\n    kayttoomaisuudenMyynninVero: '',\r\n    metsataloudenMyynninVero: '',\r\n    kiinteistonKayttooikeudenLuovutusSuoritettavaVero: '',\r\n    kaannettyVerovelvollisuus: '',\r\n    euTavaraJaPalveluostojenVero: '',\r\n    tavaranMaahantuonnistaSuoritettavaVero: ''\r\n  },\r\n  ostojenVero: {\r\n    vahennettavatArvonlisaverotYhteensa: '',\r\n    metsataloudenOstojenVero: '',\r\n    kiinteistonKayttooikeudenLuovutusOstojenVero: ''\r\n  },\r\n  sumFields: {\r\n    liikevaihtoYhteensa: '0',\r\n    liikevaihtoonEiLuetaYhteensa: '0',\r\n    huojennukseenOikeuttavaLiikevaihto: '0',\r\n    tilikaudeltaSuoritettavaVeroYhteensa: '0',\r\n    tilikaudenOstojenVeroYhteensa: '0',\r\n    huojennuksenMaara: '0'\r\n  }\r\n};\r\n\r\nexport const annualInformationCalculatorModel = {\r\n  inputFields: {\r\n    mostRecentFinancialYearStartDate: '',\r\n    mostRecentFinancialYearEndDate: '',\r\n    dividendResolutionDate: '',\r\n    dividendWithdrawalDate: ''\r\n  },\r\n  sumFields: {\r\n    mostRecentFinancialYear: '',\r\n    dividendResolutionDate: '',\r\n    dividendWithdrawalDate: '',\r\n    taxYear: '',\r\n    paymentYear: '',\r\n    deadlineForSelfAssessedTaxes: '',\r\n    deadlineForAnnualInformationReport: ''\r\n  }\r\n};\r\n\r\nexport const alcoholTaxCalculatorModel = {\r\n  inputFields: {\r\n    selectedCategory: null,\r\n    percentage: '',\r\n    amount: ''\r\n  }\r\n};\r\n\r\nexport const assetTransferTaxCalculatorModel = {\r\n  inputFields: {\r\n    sellingPrice: '',\r\n    taxPercent: '3'\r\n  }\r\n};\r\n\r\nexport const inheritanceTaxCalculatorModel = {\r\n  inputFields: {\r\n    inheritanceTaxValue: '',\r\n    selectedDeduction: null\r\n  }\r\n};\r\n\r\nexport const interestCalculatorModel = {\r\n  inputFields: {\r\n    dueDate: '',\r\n    paymentDate: '',\r\n    taxAmount: '',\r\n    isInheritanceTax: false\r\n  }\r\n};\r\n\r\nexport const householdExpenseCalculatorModel = {\r\n  inputFields: {\r\n    expense: ''\r\n  },\r\n  limitValues: {\r\n    percentage: 40,\r\n    treshold: 100,\r\n    limit: 2250\r\n  }\r\n};\r\n\r\nexport const householdExpenseCalculatorModel2022 = {\r\n  inputFields: {\r\n    expense: '',\r\n    selectedType: null\r\n  },\r\n  limitValues: {\r\n    percentage: 40,\r\n    treshold: 100,\r\n    limit: 2250\r\n  }\r\n};\r\n\r\nexport const vatCalculatorModel = {\r\n  inputFields: {\r\n    taxFreePrice: '',\r\n    taxablePrice: '',\r\n    taxAmount: '',\r\n    taxRate: ''\r\n  }\r\n};\r\n\r\nexport default {\r\n  vatLowerLimitReliefCalculatorModel,\r\n  annualInformationCalculatorModel,\r\n  alcoholTaxCalculatorModel,\r\n  assetTransferTaxCalculatorModel,\r\n  inheritanceTaxCalculatorModel,\r\n  interestCalculatorModel,\r\n  householdExpenseCalculatorModel2022,\r\n  householdExpenseCalculatorModel,\r\n  vatCalculatorModel\r\n};\r\n","import _isNil from 'lodash/isNil';\r\n\r\nexport const addThousandSeparators = param => {\r\n  if (_isNil(param)) {\r\n    return '';\r\n  }\r\n  return param.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, '$1 ');\r\n};\r\n\r\nexport const containsString = (input, searchString) => {\r\n  if (_isNil(input) || _isNil(searchString)) {\r\n    return false;\r\n  }\r\n  const position = input.toString().indexOf(searchString);\r\n  return position && position > 0;\r\n};\r\n\r\nexport const decimalToString = input => {\r\n  const str = `${input}`;\r\n  if (!containsString(str, '.')) {\r\n    return str;\r\n  }\r\n  return str.toString().replace('.', ',');\r\n};\r\n\r\nexport const formatDecimal = input => {\r\n  if (!containsString(input, '.')) {\r\n    return input;\r\n  }\r\n  return input.toString().replace('.', ',');\r\n};\r\n\r\nexport const convertStringToDate = dateStr => {\r\n  if (!dateStr) {\r\n    return null;\r\n  }\r\n  const [day, month, year] = dateStr.toString().split('.');\r\n  return new Date(year, month - 1, day);\r\n};\r\n\r\nexport const convertDateToString = (day, month, year) => {\r\n  return `${day.toString()}.${month.toString()}.${year.toString()}`;\r\n};\r\n\r\nexport const parseStringToFloat = value => {\r\n  if (!value) {\r\n    return value;\r\n  }\r\n  return parseFloat(value.toString().replace(',', '.')) || 0;\r\n};\r\n\r\nexport const convertDecimalSeparatorToDot = input => {\r\n  if (!input) {\r\n    return input;\r\n  }\r\n  return parseFloat(input.toString().replace(',', '.'));\r\n};\r\n\r\nexport const roundToTwo = input => {\r\n  return +(Math.round(input.toString() + 'e+2') + 'e-2');\r\n};\r\n\r\nexport default {\r\n  addThousandSeparators,\r\n  containsString,\r\n  decimalToString,\r\n  formatDecimal,\r\n  convertStringToDate,\r\n  convertDateToString,\r\n  parseStringToFloat,\r\n  convertDecimalSeparatorToDot,\r\n  roundToTwo\r\n};\r\n","/**\n  * vee-validate v3.3.0\n  * (c) 2020 Abdelrahman Awad\n  * @license MIT\n  */\n/**\r\n * Some Alpha Regex helpers.\r\n * https://github.com/chriso/validator.js/blob/master/src/lib/alpha.js\r\n */\r\n/* eslint-disable no-misleading-character-class */\r\nvar alpha = {\r\n    en: /^[A-Z]*$/i,\r\n    cs: /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,\r\n    da: /^[A-ZÆØÅ]*$/i,\r\n    de: /^[A-ZÄÖÜß]*$/i,\r\n    es: /^[A-ZÁÉÍÑÓÚÜ]*$/i,\r\n    fa: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی]*$/,\r\n    fr: /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,\r\n    it: /^[A-Z\\xC0-\\xFF]*$/i,\r\n    lt: /^[A-ZĄČĘĖĮŠŲŪŽ]*$/i,\r\n    nl: /^[A-ZÉËÏÓÖÜ]*$/i,\r\n    hu: /^[A-ZÁÉÍÓÖŐÚÜŰ]*$/i,\r\n    pl: /^[A-ZĄĆĘŚŁŃÓŻŹ]*$/i,\r\n    pt: /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,\r\n    ru: /^[А-ЯЁ]*$/i,\r\n    sk: /^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,\r\n    sr: /^[A-ZČĆŽŠĐ]*$/i,\r\n    sv: /^[A-ZÅÄÖ]*$/i,\r\n    tr: /^[A-ZÇĞİıÖŞÜ]*$/i,\r\n    uk: /^[А-ЩЬЮЯЄІЇҐ]*$/i,\r\n    ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,\r\n    az: /^[A-ZÇƏĞİıÖŞÜ]*$/i\r\n};\r\nvar alphaSpaces = {\r\n    en: /^[A-Z\\s]*$/i,\r\n    cs: /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ\\s]*$/i,\r\n    da: /^[A-ZÆØÅ\\s]*$/i,\r\n    de: /^[A-ZÄÖÜß\\s]*$/i,\r\n    es: /^[A-ZÁÉÍÑÓÚÜ\\s]*$/i,\r\n    fa: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی]*$/,\r\n    fr: /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ\\s]*$/i,\r\n    it: /^[A-Z\\xC0-\\xFF\\s]*$/i,\r\n    lt: /^[A-ZĄČĘĖĮŠŲŪŽ\\s]*$/i,\r\n    nl: /^[A-ZÉËÏÓÖÜ\\s]*$/i,\r\n    hu: /^[A-ZÁÉÍÓÖŐÚÜŰ\\s]*$/i,\r\n    pl: /^[A-ZĄĆĘŚŁŃÓŻŹ\\s]*$/i,\r\n    pt: /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ\\s]*$/i,\r\n    ru: /^[А-ЯЁ\\s]*$/i,\r\n    sk: /^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ\\s]*$/i,\r\n    sr: /^[A-ZČĆŽŠĐ\\s]*$/i,\r\n    sv: /^[A-ZÅÄÖ\\s]*$/i,\r\n    tr: /^[A-ZÇĞİıÖŞÜ\\s]*$/i,\r\n    uk: /^[А-ЩЬЮЯЄІЇҐ\\s]*$/i,\r\n    ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ\\s]*$/,\r\n    az: /^[A-ZÇƏĞİıÖŞÜ\\s]*$/i\r\n};\r\nvar alphanumeric = {\r\n    en: /^[0-9A-Z]*$/i,\r\n    cs: /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,\r\n    da: /^[0-9A-ZÆØÅ]$/i,\r\n    de: /^[0-9A-ZÄÖÜß]*$/i,\r\n    es: /^[0-9A-ZÁÉÍÑÓÚÜ]*$/i,\r\n    fa: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی]*$/,\r\n    fr: /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,\r\n    it: /^[0-9A-Z\\xC0-\\xFF]*$/i,\r\n    lt: /^[0-9A-ZĄČĘĖĮŠŲŪŽ]*$/i,\r\n    hu: /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]*$/i,\r\n    nl: /^[0-9A-ZÉËÏÓÖÜ]*$/i,\r\n    pl: /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]*$/i,\r\n    pt: /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,\r\n    ru: /^[0-9А-ЯЁ]*$/i,\r\n    sk: /^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,\r\n    sr: /^[0-9A-ZČĆŽŠĐ]*$/i,\r\n    sv: /^[0-9A-ZÅÄÖ]*$/i,\r\n    tr: /^[0-9A-ZÇĞİıÖŞÜ]*$/i,\r\n    uk: /^[0-9А-ЩЬЮЯЄІЇҐ]*$/i,\r\n    ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,\r\n    az: /^[0-9A-ZÇƏĞİıÖŞÜ]*$/i\r\n};\r\nvar alphaDash = {\r\n    en: /^[0-9A-Z_-]*$/i,\r\n    cs: /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ_-]*$/i,\r\n    da: /^[0-9A-ZÆØÅ_-]*$/i,\r\n    de: /^[0-9A-ZÄÖÜß_-]*$/i,\r\n    es: /^[0-9A-ZÁÉÍÑÓÚÜ_-]*$/i,\r\n    fa: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی]*$/,\r\n    fr: /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ_-]*$/i,\r\n    it: /^[0-9A-Z\\xC0-\\xFF_-]*$/i,\r\n    lt: /^[0-9A-ZĄČĘĖĮŠŲŪŽ_-]*$/i,\r\n    nl: /^[0-9A-ZÉËÏÓÖÜ_-]*$/i,\r\n    hu: /^[0-9A-ZÁÉÍÓÖŐÚÜŰ_-]*$/i,\r\n    pl: /^[0-9A-ZĄĆĘŚŁŃÓŻŹ_-]*$/i,\r\n    pt: /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ_-]*$/i,\r\n    ru: /^[0-9А-ЯЁ_-]*$/i,\r\n    sk: /^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ_-]*$/i,\r\n    sr: /^[0-9A-ZČĆŽŠĐ_-]*$/i,\r\n    sv: /^[0-9A-ZÅÄÖ_-]*$/i,\r\n    tr: /^[0-9A-ZÇĞİıÖŞÜ_-]*$/i,\r\n    uk: /^[0-9А-ЩЬЮЯЄІЇҐ_-]*$/i,\r\n    ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ_-]*$/,\r\n    az: /^[0-9A-ZÇƏĞİıÖŞÜ_-]*$/i\r\n};\n\nvar validate = function (value, _a) {\r\n    var _b = (_a === void 0 ? {} : _a).locale, locale = _b === void 0 ? '' : _b;\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return validate(val, { locale: locale }); });\r\n    }\r\n    // Match at least one locale.\r\n    if (!locale) {\r\n        return Object.keys(alpha).some(function (loc) { return alpha[loc].test(value); });\r\n    }\r\n    return (alpha[locale] || alpha.en).test(value);\r\n};\r\nvar params = [\r\n    {\r\n        name: 'locale'\r\n    }\r\n];\r\nvar alpha$1 = {\r\n    validate: validate,\r\n    params: params\r\n};\n\nvar validate$1 = function (value, _a) {\r\n    var _b = (_a === void 0 ? {} : _a).locale, locale = _b === void 0 ? '' : _b;\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return validate$1(val, { locale: locale }); });\r\n    }\r\n    // Match at least one locale.\r\n    if (!locale) {\r\n        return Object.keys(alphaDash).some(function (loc) { return alphaDash[loc].test(value); });\r\n    }\r\n    return (alphaDash[locale] || alphaDash.en).test(value);\r\n};\r\nvar params$1 = [\r\n    {\r\n        name: 'locale'\r\n    }\r\n];\r\nvar alpha_dash = {\r\n    validate: validate$1,\r\n    params: params$1\r\n};\n\nvar validate$2 = function (value, _a) {\r\n    var _b = (_a === void 0 ? {} : _a).locale, locale = _b === void 0 ? '' : _b;\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return validate$2(val, { locale: locale }); });\r\n    }\r\n    // Match at least one locale.\r\n    if (!locale) {\r\n        return Object.keys(alphanumeric).some(function (loc) { return alphanumeric[loc].test(value); });\r\n    }\r\n    return (alphanumeric[locale] || alphanumeric.en).test(value);\r\n};\r\nvar params$2 = [\r\n    {\r\n        name: 'locale'\r\n    }\r\n];\r\nvar alpha_num = {\r\n    validate: validate$2,\r\n    params: params$2\r\n};\n\nvar validate$3 = function (value, _a) {\r\n    var _b = (_a === void 0 ? {} : _a).locale, locale = _b === void 0 ? '' : _b;\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return validate$3(val, { locale: locale }); });\r\n    }\r\n    // Match at least one locale.\r\n    if (!locale) {\r\n        return Object.keys(alphaSpaces).some(function (loc) { return alphaSpaces[loc].test(value); });\r\n    }\r\n    return (alphaSpaces[locale] || alphaSpaces.en).test(value);\r\n};\r\nvar params$3 = [\r\n    {\r\n        name: 'locale'\r\n    }\r\n];\r\nvar alpha_spaces = {\r\n    validate: validate$3,\r\n    params: params$3\r\n};\n\nvar validate$4 = function (value, _a) {\r\n    var _b = _a === void 0 ? {} : _a, min = _b.min, max = _b.max;\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return !!validate$4(val, { min: min, max: max }); });\r\n    }\r\n    return Number(min) <= value && Number(max) >= value;\r\n};\r\nvar params$4 = [\r\n    {\r\n        name: 'min'\r\n    },\r\n    {\r\n        name: 'max'\r\n    }\r\n];\r\nvar between = {\r\n    validate: validate$4,\r\n    params: params$4\r\n};\n\nvar validate$5 = function (value, _a) {\r\n    var target = _a.target;\r\n    return String(value) === String(target);\r\n};\r\nvar params$5 = [\r\n    {\r\n        name: 'target',\r\n        isTarget: true\r\n    }\r\n];\r\nvar confirmed = {\r\n    validate: validate$5,\r\n    params: params$5\r\n};\n\nvar validate$6 = function (value, _a) {\r\n    var length = _a.length;\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return validate$6(val, { length: length }); });\r\n    }\r\n    var strVal = String(value);\r\n    return /^[0-9]*$/.test(strVal) && strVal.length === length;\r\n};\r\nvar params$6 = [\r\n    {\r\n        name: 'length',\r\n        cast: function (value) {\r\n            return Number(value);\r\n        }\r\n    }\r\n];\r\nvar digits = {\r\n    validate: validate$6,\r\n    params: params$6\r\n};\n\nvar validateImage = function (file, width, height) {\r\n    var URL = window.URL || window.webkitURL;\r\n    return new Promise(function (resolve) {\r\n        var image = new Image();\r\n        image.onerror = function () { return resolve(false); };\r\n        image.onload = function () { return resolve(image.width === width && image.height === height); };\r\n        image.src = URL.createObjectURL(file);\r\n    });\r\n};\r\nvar validate$7 = function (files, _a) {\r\n    var width = _a.width, height = _a.height;\r\n    var list = [];\r\n    files = Array.isArray(files) ? files : [files];\r\n    for (var i = 0; i < files.length; i++) {\r\n        // if file is not an image, reject.\r\n        if (!/\\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(files[i].name)) {\r\n            return Promise.resolve(false);\r\n        }\r\n        list.push(files[i]);\r\n    }\r\n    return Promise.all(list.map(function (file) { return validateImage(file, width, height); })).then(function (values) {\r\n        return values.every(function (v) { return v; });\r\n    });\r\n};\r\nvar params$7 = [\r\n    {\r\n        name: 'width',\r\n        cast: function (value) {\r\n            return Number(value);\r\n        }\r\n    },\r\n    {\r\n        name: 'height',\r\n        cast: function (value) {\r\n            return Number(value);\r\n        }\r\n    }\r\n];\r\nvar dimensions = {\r\n    validate: validate$7,\r\n    params: params$7\r\n};\n\nvar validate$8 = function (value, _a) {\r\n    var multiple = (_a === void 0 ? {} : _a).multiple;\r\n    // eslint-disable-next-line\r\n    var re = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n    if (multiple && !Array.isArray(value)) {\r\n        value = String(value)\r\n            .split(',')\r\n            .map(function (emailStr) { return emailStr.trim(); });\r\n    }\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return re.test(String(val)); });\r\n    }\r\n    return re.test(String(value));\r\n};\r\nvar params$8 = [\r\n    {\r\n        name: 'multiple',\r\n        default: false\r\n    }\r\n];\r\nvar email = {\r\n    validate: validate$8,\r\n    params: params$8\r\n};\n\nfunction isNullOrUndefined(value) {\r\n    return value === null || value === undefined;\r\n}\r\nfunction isEmptyArray(arr) {\r\n    return Array.isArray(arr) && arr.length === 0;\r\n}\r\nfunction isCallable(fn) {\r\n    return typeof fn === 'function';\r\n}\n\nfunction includes(collection, item) {\r\n    return collection.indexOf(item) !== -1;\r\n}\r\n/**\r\n * Converts an array-like object to array, provides a simple polyfill for Array.from\r\n */\r\nfunction toArray(arrayLike) {\r\n    if (isCallable(Array.from)) {\r\n        return Array.from(arrayLike);\r\n    }\r\n    /* istanbul ignore next */\r\n    return _copyArray(arrayLike);\r\n}\r\n/* istanbul ignore next */\r\nfunction _copyArray(arrayLike) {\r\n    var array = [];\r\n    var length = arrayLike.length;\r\n    for (var i = 0; i < length; i++) {\r\n        array.push(arrayLike[i]);\r\n    }\r\n    return array;\r\n}\n\nvar validate$9 = function (value, options) {\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return validate$9(val, options); });\r\n    }\r\n    return toArray(options).some(function (item) {\r\n        // eslint-disable-next-line\r\n        return item == value;\r\n    });\r\n};\r\nvar oneOf = {\r\n    validate: validate$9\r\n};\n\nvar validate$a = function (value, args) {\r\n    return !validate$9(value, args);\r\n};\r\nvar excluded = {\r\n    validate: validate$a\r\n};\n\nvar validate$b = function (files, extensions) {\r\n    var regex = new RegExp(\".(\" + extensions.join('|') + \")$\", 'i');\r\n    if (Array.isArray(files)) {\r\n        return files.every(function (file) { return regex.test(file.name); });\r\n    }\r\n    return regex.test(files.name);\r\n};\r\nvar ext = {\r\n    validate: validate$b\r\n};\n\nvar validate$c = function (files) {\r\n    var regex = /\\.(jpg|svg|jpeg|png|bmp|gif)$/i;\r\n    if (Array.isArray(files)) {\r\n        return files.every(function (file) { return regex.test(file.name); });\r\n    }\r\n    return regex.test(files.name);\r\n};\r\nvar image = {\r\n    validate: validate$c\r\n};\n\nvar validate$d = function (value) {\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return /^-?[0-9]+$/.test(String(val)); });\r\n    }\r\n    return /^-?[0-9]+$/.test(String(value));\r\n};\r\nvar integer = {\r\n    validate: validate$d\r\n};\n\nvar validate$e = function (value, _a) {\r\n    var other = _a.other;\r\n    return value === other;\r\n};\r\nvar params$9 = [\r\n    {\r\n        name: 'other'\r\n    }\r\n];\r\nvar is = {\r\n    validate: validate$e,\r\n    params: params$9\r\n};\n\nvar validate$f = function (value, _a) {\r\n    var other = _a.other;\r\n    return value !== other;\r\n};\r\nvar params$a = [\r\n    {\r\n        name: 'other'\r\n    }\r\n];\r\nvar is_not = {\r\n    validate: validate$f,\r\n    params: params$a\r\n};\n\nvar validate$g = function (value, _a) {\r\n    var length = _a.length;\r\n    if (isNullOrUndefined(value)) {\r\n        return false;\r\n    }\r\n    if (typeof value === 'number') {\r\n        value = String(value);\r\n    }\r\n    if (!value.length) {\r\n        value = toArray(value);\r\n    }\r\n    return value.length === length;\r\n};\r\nvar params$b = [\r\n    {\r\n        name: 'length',\r\n        cast: function (value) { return Number(value); }\r\n    }\r\n];\r\nvar length = {\r\n    validate: validate$g,\r\n    params: params$b\r\n};\n\nvar validate$h = function (value, _a) {\r\n    var length = _a.length;\r\n    if (isNullOrUndefined(value)) {\r\n        return length >= 0;\r\n    }\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return validate$h(val, { length: length }); });\r\n    }\r\n    return String(value).length <= length;\r\n};\r\nvar params$c = [\r\n    {\r\n        name: 'length',\r\n        cast: function (value) {\r\n            return Number(value);\r\n        }\r\n    }\r\n];\r\nvar max = {\r\n    validate: validate$h,\r\n    params: params$c\r\n};\n\nvar validate$i = function (value, _a) {\r\n    var max = _a.max;\r\n    if (isNullOrUndefined(value) || value === '') {\r\n        return false;\r\n    }\r\n    if (Array.isArray(value)) {\r\n        return value.length > 0 && value.every(function (val) { return validate$i(val, { max: max }); });\r\n    }\r\n    return Number(value) <= max;\r\n};\r\nvar params$d = [\r\n    {\r\n        name: 'max',\r\n        cast: function (value) {\r\n            return Number(value);\r\n        }\r\n    }\r\n];\r\nvar max_value = {\r\n    validate: validate$i,\r\n    params: params$d\r\n};\n\nvar validate$j = function (files, mimes) {\r\n    var regex = new RegExp(mimes.join('|').replace('*', '.+') + \"$\", 'i');\r\n    if (Array.isArray(files)) {\r\n        return files.every(function (file) { return regex.test(file.type); });\r\n    }\r\n    return regex.test(files.type);\r\n};\r\nvar mimes = {\r\n    validate: validate$j\r\n};\n\nvar validate$k = function (value, _a) {\r\n    var length = _a.length;\r\n    if (isNullOrUndefined(value)) {\r\n        return false;\r\n    }\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return validate$k(val, { length: length }); });\r\n    }\r\n    return String(value).length >= length;\r\n};\r\nvar params$e = [\r\n    {\r\n        name: 'length',\r\n        cast: function (value) {\r\n            return Number(value);\r\n        }\r\n    }\r\n];\r\nvar min = {\r\n    validate: validate$k,\r\n    params: params$e\r\n};\n\nvar validate$l = function (value, _a) {\r\n    var min = _a.min;\r\n    if (isNullOrUndefined(value) || value === '') {\r\n        return false;\r\n    }\r\n    if (Array.isArray(value)) {\r\n        return value.length > 0 && value.every(function (val) { return validate$l(val, { min: min }); });\r\n    }\r\n    return Number(value) >= min;\r\n};\r\nvar params$f = [\r\n    {\r\n        name: 'min',\r\n        cast: function (value) {\r\n            return Number(value);\r\n        }\r\n    }\r\n];\r\nvar min_value = {\r\n    validate: validate$l,\r\n    params: params$f\r\n};\n\nvar ar = /^[٠١٢٣٤٥٦٧٨٩]+$/;\r\nvar en = /^[0-9]+$/;\r\nvar validate$m = function (value) {\r\n    var testValue = function (val) {\r\n        var strValue = String(val);\r\n        return en.test(strValue) || ar.test(strValue);\r\n    };\r\n    if (Array.isArray(value)) {\r\n        return value.every(testValue);\r\n    }\r\n    return testValue(value);\r\n};\r\nvar numeric = {\r\n    validate: validate$m\r\n};\n\nvar validate$n = function (value, _a) {\r\n    var regex = _a.regex;\r\n    if (Array.isArray(value)) {\r\n        return value.every(function (val) { return validate$n(val, { regex: regex }); });\r\n    }\r\n    return regex.test(String(value));\r\n};\r\nvar params$g = [\r\n    {\r\n        name: 'regex',\r\n        cast: function (value) {\r\n            if (typeof value === 'string') {\r\n                return new RegExp(value);\r\n            }\r\n            return value;\r\n        }\r\n    }\r\n];\r\nvar regex = {\r\n    validate: validate$n,\r\n    params: params$g\r\n};\n\nvar validate$o = function (value, _a) {\r\n    var allowFalse = (_a === void 0 ? { allowFalse: true } : _a).allowFalse;\r\n    var result = {\r\n        valid: false,\r\n        required: true\r\n    };\r\n    if (isNullOrUndefined(value) || isEmptyArray(value)) {\r\n        return result;\r\n    }\r\n    // incase a field considers `false` as an empty value like checkboxes.\r\n    if (value === false && !allowFalse) {\r\n        return result;\r\n    }\r\n    result.valid = !!String(value).trim().length;\r\n    return result;\r\n};\r\nvar computesRequired = true;\r\nvar params$h = [\r\n    {\r\n        name: 'allowFalse',\r\n        default: true\r\n    }\r\n];\r\nvar required = {\r\n    validate: validate$o,\r\n    params: params$h,\r\n    computesRequired: computesRequired\r\n};\n\nvar testEmpty = function (value) {\r\n    return isEmptyArray(value) || includes([false, null, undefined], value) || !String(value).trim().length;\r\n};\r\nvar validate$p = function (value, _a) {\r\n    var target = _a.target, values = _a.values;\r\n    var required;\r\n    if (values && values.length) {\r\n        if (!Array.isArray(values) && typeof values === 'string') {\r\n            values = [values];\r\n        }\r\n        // eslint-disable-next-line\r\n        required = values.some(function (val) { return val == String(target).trim(); });\r\n    }\r\n    else {\r\n        required = !testEmpty(target);\r\n    }\r\n    if (!required) {\r\n        return {\r\n            valid: true,\r\n            required: required\r\n        };\r\n    }\r\n    return {\r\n        valid: !testEmpty(value),\r\n        required: required\r\n    };\r\n};\r\nvar params$i = [\r\n    {\r\n        name: 'target',\r\n        isTarget: true\r\n    },\r\n    {\r\n        name: 'values'\r\n    }\r\n];\r\nvar computesRequired$1 = true;\r\nvar required_if = {\r\n    validate: validate$p,\r\n    params: params$i,\r\n    computesRequired: computesRequired$1\r\n};\n\nvar validate$q = function (files, _a) {\r\n    var size = _a.size;\r\n    if (isNaN(size)) {\r\n        return false;\r\n    }\r\n    var nSize = size * 1024;\r\n    if (!Array.isArray(files)) {\r\n        return files.size <= nSize;\r\n    }\r\n    for (var i = 0; i < files.length; i++) {\r\n        if (files[i].size > nSize) {\r\n            return false;\r\n        }\r\n    }\r\n    return true;\r\n};\r\nvar params$j = [\r\n    {\r\n        name: 'size',\r\n        cast: function (value) {\r\n            return Number(value);\r\n        }\r\n    }\r\n];\r\nvar size = {\r\n    validate: validate$q,\r\n    params: params$j\r\n};\n\nexport { alpha$1 as alpha, alpha_dash, alpha_num, alpha_spaces, between, confirmed, digits, dimensions, email, excluded, ext, image, integer, is, is_not, length, max, max_value, mimes, min, min_value, numeric, oneOf, regex, required, required_if, size };\n","import Vue from 'vue';\r\nimport { ValidationProvider, extend } from 'vee-validate3';\r\nimport { required, email } from 'vee-validate3/dist/rules';\r\nimport _isNil from 'lodash/isNil';\r\nimport {\r\n  parseStringToFloat,\r\n  addThousandSeparators,\r\n  convertStringToDate,\r\n  convertDateToString\r\n} from 'src/sites/tax_fi/js/vue/components/calculators/utils/calculatorHelpers';\r\n\r\nVue.component('ValidationProvider', ValidationProvider);\r\n\r\nexport const currencyValidator = {\r\n  validate(value) {\r\n    if (_isNil(value)) {\r\n      return true;\r\n    }\r\n    const regex = /(^[0-9 ]+([,]\\d{1,2})?)$/;\r\n    return regex.test(value);\r\n  }\r\n};\r\n\r\nexport const dateFormatValidator = {\r\n  validate(value) {\r\n    if (_isNil(value)) {\r\n      return true;\r\n    }\r\n    // eslint-disable-next-line no-useless-escape\r\n    const regex = /^(0?[1-9]|[12][0-9]|3[01])[\\.](0?[1-9]|1[012])[\\.]\\d{4}$/;\r\n    return regex.test(value);\r\n  }\r\n};\r\n\r\nexport const mustNotBeSameDateValidator = {\r\n  validate: (value, { other }) => {\r\n    if (_isNil(value) || _isNil(other)) {\r\n      return true;\r\n    }\r\n    return value.getTime() !== other.getTime();\r\n  },\r\n  castValue: convertStringToDate,\r\n  params: [{ name: 'other', isTarget: true, cast: convertStringToDate }]\r\n};\r\n\r\nexport const dateMustBeGreaterValidator = {\r\n  validate: (value, { other }) => {\r\n    if (_isNil(value) || _isNil(other)) {\r\n      return true;\r\n    }\r\n    return value > other;\r\n  },\r\n  castValue: convertStringToDate,\r\n  params: [{ name: 'other', isTarget: true, cast: convertStringToDate }]\r\n};\r\n\r\nexport const taxFreePriceValidator = {\r\n  validate: (value, params) => {\r\n    if (value == '' || (params.taxable == 0 && params.taxAmount == 0)) {\r\n      return true;\r\n    }\r\n    if (params.taxable != 0) {\r\n      return value < params.taxable;\r\n    }\r\n    return params.taxAmount < value;\r\n  },\r\n  castValue: parseStringToFloat,\r\n  params: [\r\n    { name: 'taxable', isTarget: false, cast: parseStringToFloat },\r\n    { name: 'taxAmount', isTarget: false, cast: parseStringToFloat }\r\n  ]\r\n};\r\nexport const taxablePriceValidator = {\r\n  validate: (value, params) => {\r\n    if (value == '' || (params.taxFree == 0 && params.taxAmount == 0)) {\r\n      return true;\r\n    }\r\n    if (params.taxFree != 0) {\r\n      return value > params.taxFree;\r\n    }\r\n    return params.taxAmount < value;\r\n  },\r\n  castValue: parseStringToFloat,\r\n  params: [\r\n    { name: 'taxFree', isTarget: false, cast: parseStringToFloat },\r\n    { name: 'taxAmount', isTarget: false, cast: parseStringToFloat }\r\n  ]\r\n};\r\nexport const taxAmountValidator = {\r\n  validate: (value, params) => {\r\n    if (value == '' || (params.taxFree == 0 && params.taxable == 0)) {\r\n      return true;\r\n    }\r\n    if (params.taxFree != 0) {\r\n      return value < params.taxFree;\r\n    }\r\n    return value < params.taxable;\r\n  },\r\n  castValue: parseStringToFloat,\r\n  params: [\r\n    { name: 'taxFree', isTarget: false, cast: parseStringToFloat },\r\n    { name: 'taxable', isTarget: false, cast: parseStringToFloat }\r\n  ]\r\n};\r\n\r\nexport const dateBetweenValidator = {\r\n  validate: (value, params) => {\r\n    if (_isNil(value) || _isNil(params) || _isNil(params.minDate) || _isNil(params.maxDate)) {\r\n      return true;\r\n    }\r\n    return value >= params.minDate && value <= params.maxDate;\r\n  },\r\n  castValue: convertStringToDate,\r\n  params: [\r\n    {\r\n      name: 'minDate',\r\n      isTarget: false,\r\n      cast: convertStringToDate\r\n    },\r\n    {\r\n      name: 'maxDate',\r\n      isTarget: false,\r\n      cast: convertStringToDate\r\n    }\r\n  ],\r\n  message: (_value, params) => {\r\n    if (_isNil(params) || _isNil(params.minDate) || _isNil(params.maxDate)) {\r\n      return '';\r\n    }\r\n    return Vue.prototype.$trans(\r\n      '/calculators/ValidateDateBetween',\r\n      convertDateToString(\r\n        params.minDate.getDate(),\r\n        params.minDate.getMonth() + 1,\r\n        params.minDate.getFullYear()\r\n      ),\r\n      convertDateToString(\r\n        params.maxDate.getDate(),\r\n        params.maxDate.getMonth() + 1,\r\n        params.maxDate.getFullYear()\r\n      )\r\n    );\r\n  }\r\n};\r\n\r\nexport const dateMustBeGreaterOrEqualValidator = {\r\n  validate: (value, { other }) => {\r\n    if (_isNil(value) || _isNil(other)) {\r\n      return true;\r\n    }\r\n    return value >= other;\r\n  },\r\n  castValue: convertStringToDate,\r\n  params: [{ name: 'other', isTarget: true, cast: convertStringToDate }]\r\n};\r\n\r\nexport const financialYearRangeValidator = {\r\n  validate: (value, { startDate }) => {\r\n    if (_isNil(value) || _isNil(startDate)) {\r\n      return true;\r\n    }\r\n    const financialYearsMaxLenghtInMonths = 18;\r\n    var firstDateOutOfRange = new Date(\r\n      startDate.setMonth(startDate.getMonth() + financialYearsMaxLenghtInMonths)\r\n    );\r\n    return value < firstDateOutOfRange;\r\n  },\r\n  castValue: convertStringToDate,\r\n  params: [{ name: 'startDate', isTarget: true, cast: convertStringToDate }]\r\n};\r\n\r\nexport const financialYearInMonthsValidator = {\r\n  validate(value) {\r\n    if (_isNil(value)) {\r\n      return true;\r\n    }\r\n    const regex = /(^[1-9]$|^[1][0-8])$/;\r\n    return regex.test(value);\r\n  }\r\n};\r\n\r\nexport const financialYearGivenBeforeRevenue = {\r\n  validate(value, params) {\r\n    if (params.tilikaudenPituus == '') {\r\n      return false;\r\n    }\r\n    return true;\r\n  },\r\n  params: [{ name: 'tilikaudenPituus', isTarget: false, cast: parseStringToFloat }]\r\n};\r\n\r\nexport const totalTurnoverValidator = {\r\n  validate(value, params) {\r\n    if (\r\n      _isNil(params) ||\r\n      _isNil(params.huojennukseenOikeuttavaLiikevaihto) ||\r\n      _isNil(params.maxValue)\r\n    ) {\r\n      return true;\r\n    }\r\n    return params.huojennukseenOikeuttavaLiikevaihto <= params.maxValue;\r\n  },\r\n  params: [\r\n    {\r\n      name: 'huojennukseenOikeuttavaLiikevaihto',\r\n      isTarget: false,\r\n      cast: parseStringToFloat\r\n    },\r\n    { name: 'maxValue', isTarget: false, cast: parseStringToFloat }\r\n  ],\r\n  message: (_value, params) => {\r\n    if (_isNil(params) || _isNil(params.maxValue)) {\r\n      return '';\r\n    }\r\n    return Vue.prototype.$trans(\r\n      '/calculators/Liikevaihto_yhteensa_ylaraja',\r\n      addThousandSeparators(params.maxValue)\r\n    );\r\n  }\r\n};\r\n\r\nexport const decimalValidator = {\r\n  validate(value) {\r\n    if (_isNil(value)) {\r\n      return true;\r\n    }\r\n    const regex = /(^\\d+([,]\\d{1,2})?)$/;\r\n    return regex.test(value);\r\n  }\r\n};\r\n\r\nexport const percentageValidator = {\r\n  validate(value) {\r\n    if (_isNil(value)) {\r\n      return true;\r\n    }\r\n    const regex = /(^100([,]0{1,2})?)$|(^\\d{1,2}([,]\\d{1,2})?)$/;\r\n    return regex.test(value);\r\n  }\r\n};\r\n\r\nexport const dividendResolutionDateNotInFinancialYear = {\r\n  validate: (value, { mostRecentFinancialYearStartDate, mostRecentFinancialYearEndDate }) => {\r\n    if (\r\n      _isNil(value) ||\r\n      _isNil(mostRecentFinancialYearStartDate) ||\r\n      _isNil(mostRecentFinancialYearEndDate)\r\n    ) {\r\n      return true;\r\n    }\r\n    const dateInFinancialYear =\r\n      mostRecentFinancialYearStartDate <= value && value <= mostRecentFinancialYearEndDate;\r\n    return !dateInFinancialYear;\r\n  },\r\n  castValue: convertStringToDate,\r\n  params: [\r\n    { name: 'mostRecentFinancialYearStartDate', isTarget: false, cast: convertStringToDate },\r\n    { name: 'mostRecentFinancialYearEndDate', isTarget: false, cast: convertStringToDate }\r\n  ]\r\n};\r\n\r\nexport const dividendResolutionDateValidator = {\r\n  validate: (value, { other }) => {\r\n    if (_isNil(value) || _isNil(other)) {\r\n      return true;\r\n    }\r\n    const dateIsGreater = value > other;\r\n    const isSameOrFollowingYear =\r\n      value.getFullYear() === other.getFullYear() ||\r\n      value.getFullYear() === other.getFullYear() + 1;\r\n    return dateIsGreater && isSameOrFollowingYear;\r\n  },\r\n  castValue: convertStringToDate,\r\n  params: [{ name: 'other', isTarget: true, cast: convertStringToDate }]\r\n};\r\n\r\nexport const householdExpenseOwnShareValidator = {\r\n  validate: (value, { expense }) => {\r\n    if (_isNil(value) || _isNil(expense)) {\r\n      return true;\r\n    }\r\n    return expense > value;\r\n  },\r\n  castValue: parseStringToFloat,\r\n  params: [{ name: 'expense', isTarget: false, cast: parseStringToFloat }]\r\n};\r\n\r\nexport const validationMessages = () => {\r\n  const translation = Vue.prototype.$trans;\r\n  return {\r\n    messages: {\r\n      required: translation('/calculators/MissingValue'),\r\n      currency: translation('/calculators/ValidateDecimalNumber'),\r\n      date_format: translation('/calculators/ValidateDateFormat'),\r\n      not_same_date: translation('/calculators/ValidateSameDate'),\r\n      valid_end_date: translation('/calculators/ValidateEndDate'),\r\n      valid_financial_year_length: translation('/calculators/ValidateFinancialYear'),\r\n      dividend_resolution_date_not_in_financial_year: translation(\r\n        '/calculators/DividendResolutionDateInsideFinancialYear'\r\n      ),\r\n      valid_dividend_resolution_date: translation('/calculators/ValidateDividendResolution'),\r\n      valid_dividend_withdrawal_date: translation('/calculators/ValidateDividendWithdrawal'),\r\n      valid_decimal: translation('/calculators/ValidateDecimalNumber'),\r\n      percentage: translation('/calculators/ValidatePercent'),\r\n      payment_date_after: translation('/calculators/ValidateDueDate'),\r\n      valid_share_of_expense: translation('/calculators/ValidateShareOfExpense'),\r\n      valid_financial_year_in_months: translation('/calculators/financialYearInMonthsValidator'),\r\n      financial_year_given: translation('/calculators/financialYearGivenBeforeRevenue'),\r\n      tax_free_validator: translation('/calculators/ValidateTaxFreePrice'),\r\n      taxable_validator: translation('/calculators/ValidateTaxablePrice'),\r\n      tax_amount_validator: translation('/calculators/ValidateTaxAmount')\r\n    }\r\n  };\r\n};\r\n\r\n// OOTB and mostly used rules extended always\r\nextend('required', required);\r\nextend('email', email);\r\nextend('currency', currencyValidator);\r\n\r\n// Install validators\r\nexport default {\r\n  currencyValidator,\r\n  dateFormatValidator,\r\n  mustNotBeSameDateValidator,\r\n  dateMustBeGreaterValidator,\r\n  dateMustBeGreaterOrEqualValidator,\r\n  financialYearRangeValidator,\r\n  financialYearInMonthsValidator,\r\n  financialYearGivenBeforeRevenue,\r\n  totalTurnoverValidator,\r\n  decimalValidator,\r\n  dateBetweenValidator,\r\n  dividendResolutionDateNotInFinancialYear,\r\n  dividendResolutionDateValidator,\r\n  householdExpenseOwnShareValidator,\r\n  taxFreePriceValidator,\r\n  taxablePriceValidator,\r\n  taxAmountValidator\r\n};\r\n","/**\n  * vee-validate v3.3.0\n  * (c) 2020 Abdelrahman Awad\n  * @license MIT\n  */\nimport Vue from 'vue';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    };\r\n    return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nfunction __spreadArrays() {\r\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n            r[k] = a[j];\r\n    return r;\r\n}\n\nfunction isNaN(value) {\r\n    // NaN is the one value that does not equal itself.\r\n    // eslint-disable-next-line\r\n    return value !== value;\r\n}\r\nfunction isNullOrUndefined(value) {\r\n    return value === null || value === undefined;\r\n}\r\nfunction isEmptyArray(arr) {\r\n    return Array.isArray(arr) && arr.length === 0;\r\n}\r\nvar isObject = function (obj) {\r\n    return obj !== null && obj && typeof obj === 'object' && !Array.isArray(obj);\r\n};\r\n/**\r\n * Shallow object comparison.\r\n */\r\nfunction isEqual(lhs, rhs) {\r\n    if (lhs instanceof RegExp && rhs instanceof RegExp) {\r\n        return isEqual(lhs.source, rhs.source) && isEqual(lhs.flags, rhs.flags);\r\n    }\r\n    if (Array.isArray(lhs) && Array.isArray(rhs)) {\r\n        if (lhs.length !== rhs.length)\r\n            return false;\r\n        for (var i = 0; i < lhs.length; i++) {\r\n            if (!isEqual(lhs[i], rhs[i])) {\r\n                return false;\r\n            }\r\n        }\r\n        return true;\r\n    }\r\n    // if both are objects, compare each key recursively.\r\n    if (isObject(lhs) && isObject(rhs)) {\r\n        return (Object.keys(lhs).every(function (key) {\r\n            return isEqual(lhs[key], rhs[key]);\r\n        }) &&\r\n            Object.keys(rhs).every(function (key) {\r\n                return isEqual(lhs[key], rhs[key]);\r\n            }));\r\n    }\r\n    if (isNaN(lhs) && isNaN(rhs)) {\r\n        return true;\r\n    }\r\n    return lhs === rhs;\r\n}\r\n// Checks if a given value is not an empty string or null or undefined.\r\nfunction isSpecified(val) {\r\n    if (val === '') {\r\n        return false;\r\n    }\r\n    return !isNullOrUndefined(val);\r\n}\r\nfunction isCallable(fn) {\r\n    return typeof fn === 'function';\r\n}\r\nfunction isLocator(value) {\r\n    return isCallable(value) && !!value.__locatorRef;\r\n}\n\nfunction findIndex(arrayLike, predicate) {\r\n    var array = Array.isArray(arrayLike) ? arrayLike : toArray(arrayLike);\r\n    if (isCallable(array.findIndex)) {\r\n        return array.findIndex(predicate);\r\n    }\r\n    /* istanbul ignore next */\r\n    for (var i = 0; i < array.length; i++) {\r\n        if (predicate(array[i], i)) {\r\n            return i;\r\n        }\r\n    }\r\n    /* istanbul ignore next */\r\n    return -1;\r\n}\r\n/**\r\n * finds the first element that satisfies the predicate callback, polyfills array.find\r\n */\r\nfunction find(arrayLike, predicate) {\r\n    var array = Array.isArray(arrayLike) ? arrayLike : toArray(arrayLike);\r\n    var idx = findIndex(array, predicate);\r\n    return idx === -1 ? undefined : array[idx];\r\n}\r\nfunction includes(collection, item) {\r\n    return collection.indexOf(item) !== -1;\r\n}\r\n/**\r\n * Converts an array-like object to array, provides a simple polyfill for Array.from\r\n */\r\nfunction toArray(arrayLike) {\r\n    if (isCallable(Array.from)) {\r\n        return Array.from(arrayLike);\r\n    }\r\n    /* istanbul ignore next */\r\n    return _copyArray(arrayLike);\r\n}\r\n/* istanbul ignore next */\r\nfunction _copyArray(arrayLike) {\r\n    var array = [];\r\n    var length = arrayLike.length;\r\n    for (var i = 0; i < length; i++) {\r\n        array.push(arrayLike[i]);\r\n    }\r\n    return array;\r\n}\r\nfunction values(obj) {\r\n    if (isCallable(Object.values)) {\r\n        return Object.values(obj);\r\n    }\r\n    // fallback to keys()\r\n    /* istanbul ignore next */\r\n    return Object.keys(obj).map(function (k) { return obj[k]; });\r\n}\r\nfunction merge(target, source) {\r\n    Object.keys(source).forEach(function (key) {\r\n        if (isObject(source[key])) {\r\n            if (!target[key]) {\r\n                target[key] = {};\r\n            }\r\n            merge(target[key], source[key]);\r\n            return;\r\n        }\r\n        target[key] = source[key];\r\n    });\r\n    return target;\r\n}\n\nfunction createFlags() {\r\n    return {\r\n        untouched: true,\r\n        touched: false,\r\n        dirty: false,\r\n        pristine: true,\r\n        valid: false,\r\n        invalid: false,\r\n        validated: false,\r\n        pending: false,\r\n        required: false,\r\n        changed: false,\r\n        passed: false,\r\n        failed: false\r\n    };\r\n}\n\nfunction identity(x) {\r\n    return x;\r\n}\r\nfunction debounce(fn, wait, token) {\r\n    if (wait === void 0) { wait = 0; }\r\n    if (token === void 0) { token = { cancelled: false }; }\r\n    if (wait === 0) {\r\n        return fn;\r\n    }\r\n    var timeout;\r\n    return function () {\r\n        var args = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            args[_i] = arguments[_i];\r\n        }\r\n        var later = function () {\r\n            timeout = undefined;\r\n            // check if the fn call was cancelled.\r\n            if (!token.cancelled)\r\n                fn.apply(void 0, args);\r\n        };\r\n        // because we might want to use Node.js setTimout for SSR.\r\n        clearTimeout(timeout);\r\n        timeout = setTimeout(later, wait);\r\n    };\r\n}\n\n/**\r\n * Emits a warning to the console\r\n */\r\nfunction warn(message) {\r\n    console.warn(\"[vee-validate] \" + message);\r\n}\r\n/**\r\n * Replaces placeholder values in a string with their actual values\r\n */\r\nfunction interpolate(template, values) {\r\n    return template.replace(/{([^}]+)}/g, function (_, p) {\r\n        return p in values ? values[p] : \"{\" + p + \"}\";\r\n    });\r\n}\n\nvar RULES = {};\r\nfunction normalizeSchema(schema) {\r\n    var _a;\r\n    if ((_a = schema.params) === null || _a === void 0 ? void 0 : _a.length) {\r\n        schema.params = schema.params.map(function (param) {\r\n            if (typeof param === 'string') {\r\n                return { name: param };\r\n            }\r\n            return param;\r\n        });\r\n    }\r\n    return schema;\r\n}\r\nvar RuleContainer = /** @class */ (function () {\r\n    function RuleContainer() {\r\n    }\r\n    RuleContainer.extend = function (name, schema) {\r\n        // if rule already exists, overwrite it.\r\n        var rule = normalizeSchema(schema);\r\n        if (RULES[name]) {\r\n            RULES[name] = merge(RULES[name], schema);\r\n            return;\r\n        }\r\n        RULES[name] = __assign({ lazy: false, computesRequired: false }, rule);\r\n    };\r\n    RuleContainer.isLazy = function (name) {\r\n        var _a;\r\n        return !!((_a = RULES[name]) === null || _a === void 0 ? void 0 : _a.lazy);\r\n    };\r\n    RuleContainer.isRequireRule = function (name) {\r\n        var _a;\r\n        return !!((_a = RULES[name]) === null || _a === void 0 ? void 0 : _a.computesRequired);\r\n    };\r\n    RuleContainer.getRuleDefinition = function (ruleName) {\r\n        return RULES[ruleName];\r\n    };\r\n    return RuleContainer;\r\n}());\r\n/**\r\n * Adds a custom validator to the list of validation rules.\r\n */\r\nfunction extend(name, schema) {\r\n    // makes sure new rules are properly formatted.\r\n    guardExtend(name, schema);\r\n    // Full schema object.\r\n    if (typeof schema === 'object') {\r\n        RuleContainer.extend(name, schema);\r\n        return;\r\n    }\r\n    RuleContainer.extend(name, {\r\n        validate: schema\r\n    });\r\n}\r\n/**\r\n * Guards from extension violations.\r\n */\r\nfunction guardExtend(name, validator) {\r\n    if (isCallable(validator)) {\r\n        return;\r\n    }\r\n    if (isCallable(validator.validate)) {\r\n        return;\r\n    }\r\n    if (RuleContainer.getRuleDefinition(name)) {\r\n        return;\r\n    }\r\n    throw new Error(\"Extension Error: The validator '\" + name + \"' must be a function or have a 'validate' method.\");\r\n}\n\nvar DEFAULT_CONFIG = {\r\n    defaultMessage: \"{_field_} is not valid.\",\r\n    skipOptional: true,\r\n    classes: {\r\n        touched: 'touched',\r\n        untouched: 'untouched',\r\n        valid: 'valid',\r\n        invalid: 'invalid',\r\n        pristine: 'pristine',\r\n        dirty: 'dirty' // control has been interacted with\r\n    },\r\n    bails: true,\r\n    mode: 'aggressive',\r\n    useConstraintAttrs: true\r\n};\r\nvar currentConfig = __assign({}, DEFAULT_CONFIG);\r\nvar getConfig = function () { return currentConfig; };\r\nvar setConfig = function (newConf) {\r\n    currentConfig = __assign(__assign({}, currentConfig), newConf);\r\n};\r\nvar configure = function (cfg) {\r\n    setConfig(cfg);\r\n};\n\n/**\r\n * Normalizes the given rules expression.\r\n */\r\nfunction normalizeRules(rules) {\r\n    // if falsy value return an empty object.\r\n    var acc = {};\r\n    Object.defineProperty(acc, '_$$isNormalized', {\r\n        value: true,\r\n        writable: false,\r\n        enumerable: false,\r\n        configurable: false\r\n    });\r\n    if (!rules) {\r\n        return acc;\r\n    }\r\n    // Object is already normalized, skip.\r\n    if (isObject(rules) && rules._$$isNormalized) {\r\n        return rules;\r\n    }\r\n    if (isObject(rules)) {\r\n        return Object.keys(rules).reduce(function (prev, curr) {\r\n            var params = [];\r\n            var preserveArrayParams = false;\r\n            if (rules[curr] === true) {\r\n                params = [];\r\n            }\r\n            else if (Array.isArray(rules[curr])) {\r\n                params = rules[curr];\r\n                preserveArrayParams = true;\r\n            }\r\n            else if (isObject(rules[curr])) {\r\n                params = rules[curr];\r\n            }\r\n            else {\r\n                params = [rules[curr]];\r\n            }\r\n            if (rules[curr] !== false) {\r\n                prev[curr] = buildParams(curr, params, preserveArrayParams);\r\n            }\r\n            return prev;\r\n        }, acc);\r\n    }\r\n    /* istanbul ignore if */\r\n    if (typeof rules !== 'string') {\r\n        warn('rules must be either a string or an object.');\r\n        return acc;\r\n    }\r\n    return rules.split('|').reduce(function (prev, rule) {\r\n        var parsedRule = parseRule(rule);\r\n        if (!parsedRule.name) {\r\n            return prev;\r\n        }\r\n        prev[parsedRule.name] = buildParams(parsedRule.name, parsedRule.params);\r\n        return prev;\r\n    }, acc);\r\n}\r\nfunction buildParams(ruleName, provided, preserveArrayParams) {\r\n    if (preserveArrayParams === void 0) { preserveArrayParams = false; }\r\n    var ruleSchema = RuleContainer.getRuleDefinition(ruleName);\r\n    if (!ruleSchema) {\r\n        return provided;\r\n    }\r\n    var params = {};\r\n    if (!ruleSchema.params && !Array.isArray(provided)) {\r\n        throw new Error('You provided an object params to a rule that has no defined schema.');\r\n    }\r\n    // Rule probably uses an array for their args, keep it as is.\r\n    if (Array.isArray(provided) && !ruleSchema.params) {\r\n        return provided;\r\n    }\r\n    var definedParams;\r\n    // collect the params schema.\r\n    if (!ruleSchema.params || (ruleSchema.params.length < provided.length && Array.isArray(provided))) {\r\n        var lastDefinedParam_1;\r\n        // collect any additional parameters in the last item.\r\n        definedParams = provided.map(function (_, idx) {\r\n            var _a;\r\n            var param = (_a = ruleSchema.params) === null || _a === void 0 ? void 0 : _a[idx];\r\n            lastDefinedParam_1 = param || lastDefinedParam_1;\r\n            if (!param) {\r\n                param = lastDefinedParam_1;\r\n            }\r\n            return param;\r\n        });\r\n    }\r\n    else {\r\n        definedParams = ruleSchema.params;\r\n    }\r\n    // Match the provided array length with a temporary schema.\r\n    for (var i = 0; i < definedParams.length; i++) {\r\n        var options = definedParams[i];\r\n        var value = options.default;\r\n        // if the provided is an array, map element value.\r\n        if (Array.isArray(provided) && !preserveArrayParams) {\r\n            if (i in provided) {\r\n                value = provided[i];\r\n            }\r\n        }\r\n        else {\r\n            // If the param exists in the provided object.\r\n            if (options.name in provided) {\r\n                value = provided[options.name];\r\n                // if the provided is the first param value.\r\n            }\r\n            else if (definedParams.length === 1) {\r\n                value = provided;\r\n            }\r\n        }\r\n        // if the param is a target, resolve the target value.\r\n        if (options.isTarget) {\r\n            value = createLocator(value, options.cast);\r\n        }\r\n        // A target param using interpolation\r\n        if (typeof value === 'string' && value[0] === '@') {\r\n            value = createLocator(value.slice(1), options.cast);\r\n        }\r\n        // If there is a transformer defined.\r\n        if (!isLocator(value) && options.cast) {\r\n            value = options.cast(value);\r\n        }\r\n        // already been set, probably multiple values.\r\n        if (params[options.name]) {\r\n            params[options.name] = Array.isArray(params[options.name]) ? params[options.name] : [params[options.name]];\r\n            params[options.name].push(value);\r\n        }\r\n        else {\r\n            // set the value.\r\n            params[options.name] = value;\r\n        }\r\n    }\r\n    return params;\r\n}\r\n/**\r\n * Parses a rule string expression.\r\n */\r\nvar parseRule = function (rule) {\r\n    var params = [];\r\n    var name = rule.split(':')[0];\r\n    if (includes(rule, ':')) {\r\n        params = rule\r\n            .split(':')\r\n            .slice(1)\r\n            .join(':')\r\n            .split(',');\r\n    }\r\n    return { name: name, params: params };\r\n};\r\nfunction createLocator(value, castFn) {\r\n    var locator = function (crossTable) {\r\n        var val = crossTable[value];\r\n        return castFn ? castFn(val) : val;\r\n    };\r\n    locator.__locatorRef = value;\r\n    return locator;\r\n}\r\nfunction extractLocators(params) {\r\n    if (Array.isArray(params)) {\r\n        return params.filter(isLocator);\r\n    }\r\n    return Object.keys(params)\r\n        .filter(function (key) { return isLocator(params[key]); })\r\n        .map(function (key) { return params[key]; });\r\n}\n\n/**\r\n * Validates a value against the rules.\r\n */\r\nfunction validate(value, rules, options) {\r\n    if (options === void 0) { options = {}; }\r\n    return __awaiter(this, void 0, void 0, function () {\r\n        var shouldBail, skipIfEmpty, field, result, errors, failedRules, regenerateMap;\r\n        return __generator(this, function (_a) {\r\n            switch (_a.label) {\r\n                case 0:\r\n                    shouldBail = options === null || options === void 0 ? void 0 : options.bails;\r\n                    skipIfEmpty = options === null || options === void 0 ? void 0 : options.skipIfEmpty;\r\n                    field = {\r\n                        name: (options === null || options === void 0 ? void 0 : options.name) || '{field}',\r\n                        rules: normalizeRules(rules),\r\n                        bails: shouldBail !== null && shouldBail !== void 0 ? shouldBail : true,\r\n                        skipIfEmpty: skipIfEmpty !== null && skipIfEmpty !== void 0 ? skipIfEmpty : true,\r\n                        forceRequired: false,\r\n                        crossTable: (options === null || options === void 0 ? void 0 : options.values) || {},\r\n                        names: (options === null || options === void 0 ? void 0 : options.names) || {},\r\n                        customMessages: (options === null || options === void 0 ? void 0 : options.customMessages) || {}\r\n                    };\r\n                    return [4 /*yield*/, _validate(field, value, options)];\r\n                case 1:\r\n                    result = _a.sent();\r\n                    errors = [];\r\n                    failedRules = {};\r\n                    regenerateMap = {};\r\n                    result.errors.forEach(function (e) {\r\n                        var msg = e.msg();\r\n                        errors.push(msg);\r\n                        failedRules[e.rule] = msg;\r\n                        regenerateMap[e.rule] = e.msg;\r\n                    });\r\n                    return [2 /*return*/, {\r\n                            valid: result.valid,\r\n                            errors: errors,\r\n                            failedRules: failedRules,\r\n                            regenerateMap: regenerateMap\r\n                        }];\r\n            }\r\n        });\r\n    });\r\n}\r\n/**\r\n * Starts the validation process.\r\n */\r\nfunction _validate(field, value, _a) {\r\n    var _b = (_a === void 0 ? {} : _a).isInitial, isInitial = _b === void 0 ? false : _b;\r\n    return __awaiter(this, void 0, void 0, function () {\r\n        var _c, shouldSkip, errors, rules, length, i, rule, result;\r\n        return __generator(this, function (_d) {\r\n            switch (_d.label) {\r\n                case 0: return [4 /*yield*/, _shouldSkip(field, value)];\r\n                case 1:\r\n                    _c = _d.sent(), shouldSkip = _c.shouldSkip, errors = _c.errors;\r\n                    if (shouldSkip) {\r\n                        return [2 /*return*/, {\r\n                                valid: !errors.length,\r\n                                errors: errors\r\n                            }];\r\n                    }\r\n                    rules = Object.keys(field.rules).filter(function (rule) { return !RuleContainer.isRequireRule(rule); });\r\n                    length = rules.length;\r\n                    i = 0;\r\n                    _d.label = 2;\r\n                case 2:\r\n                    if (!(i < length)) return [3 /*break*/, 5];\r\n                    if (isInitial && RuleContainer.isLazy(rules[i])) {\r\n                        return [3 /*break*/, 4];\r\n                    }\r\n                    rule = rules[i];\r\n                    return [4 /*yield*/, _test(field, value, {\r\n                            name: rule,\r\n                            params: field.rules[rule]\r\n                        })];\r\n                case 3:\r\n                    result = _d.sent();\r\n                    if (!result.valid && result.error) {\r\n                        errors.push(result.error);\r\n                        if (field.bails) {\r\n                            return [2 /*return*/, {\r\n                                    valid: false,\r\n                                    errors: errors\r\n                                }];\r\n                        }\r\n                    }\r\n                    _d.label = 4;\r\n                case 4:\r\n                    i++;\r\n                    return [3 /*break*/, 2];\r\n                case 5: return [2 /*return*/, {\r\n                        valid: !errors.length,\r\n                        errors: errors\r\n                    }];\r\n            }\r\n        });\r\n    });\r\n}\r\nfunction _shouldSkip(field, value) {\r\n    return __awaiter(this, void 0, void 0, function () {\r\n        var requireRules, length, errors, isEmpty, isEmptyAndOptional, isRequired, i, rule, result;\r\n        return __generator(this, function (_a) {\r\n            switch (_a.label) {\r\n                case 0:\r\n                    requireRules = Object.keys(field.rules).filter(RuleContainer.isRequireRule);\r\n                    length = requireRules.length;\r\n                    errors = [];\r\n                    isEmpty = isNullOrUndefined(value) || value === '' || isEmptyArray(value);\r\n                    isEmptyAndOptional = isEmpty && field.skipIfEmpty;\r\n                    isRequired = false;\r\n                    i = 0;\r\n                    _a.label = 1;\r\n                case 1:\r\n                    if (!(i < length)) return [3 /*break*/, 4];\r\n                    rule = requireRules[i];\r\n                    return [4 /*yield*/, _test(field, value, {\r\n                            name: rule,\r\n                            params: field.rules[rule]\r\n                        })];\r\n                case 2:\r\n                    result = _a.sent();\r\n                    if (!isObject(result)) {\r\n                        throw new Error('Require rules has to return an object (see docs)');\r\n                    }\r\n                    if (result.required) {\r\n                        isRequired = true;\r\n                    }\r\n                    if (!result.valid && result.error) {\r\n                        errors.push(result.error);\r\n                        // Exit early as the field is required and failed validation.\r\n                        if (field.bails) {\r\n                            return [2 /*return*/, {\r\n                                    shouldSkip: true,\r\n                                    errors: errors\r\n                                }];\r\n                        }\r\n                    }\r\n                    _a.label = 3;\r\n                case 3:\r\n                    i++;\r\n                    return [3 /*break*/, 1];\r\n                case 4:\r\n                    if (isEmpty && !isRequired && !field.skipIfEmpty) {\r\n                        return [2 /*return*/, {\r\n                                shouldSkip: false,\r\n                                errors: errors\r\n                            }];\r\n                    }\r\n                    // field is configured to run through the pipeline regardless\r\n                    if (!field.bails && !isEmptyAndOptional) {\r\n                        return [2 /*return*/, {\r\n                                shouldSkip: false,\r\n                                errors: errors\r\n                            }];\r\n                    }\r\n                    // skip if the field is not required and has an empty value.\r\n                    return [2 /*return*/, {\r\n                            shouldSkip: !isRequired && isEmpty,\r\n                            errors: errors\r\n                        }];\r\n            }\r\n        });\r\n    });\r\n}\r\n/**\r\n * Tests a single input value against a rule.\r\n */\r\nfunction _test(field, value, rule) {\r\n    return __awaiter(this, void 0, void 0, function () {\r\n        var ruleSchema, normalizedValue, params, result, values_1;\r\n        return __generator(this, function (_a) {\r\n            switch (_a.label) {\r\n                case 0:\r\n                    ruleSchema = RuleContainer.getRuleDefinition(rule.name);\r\n                    if (!ruleSchema || !ruleSchema.validate) {\r\n                        throw new Error(\"No such validator '\" + rule.name + \"' exists.\");\r\n                    }\r\n                    normalizedValue = ruleSchema.castValue ? ruleSchema.castValue(value) : value;\r\n                    params = fillTargetValues(rule.params, field.crossTable);\r\n                    return [4 /*yield*/, ruleSchema.validate(normalizedValue, params)];\r\n                case 1:\r\n                    result = _a.sent();\r\n                    if (typeof result === 'string') {\r\n                        values_1 = __assign(__assign({}, (params || {})), { _field_: field.name, _value_: value, _rule_: rule.name });\r\n                        return [2 /*return*/, {\r\n                                valid: false,\r\n                                error: { rule: rule.name, msg: function () { return interpolate(result, values_1); } }\r\n                            }];\r\n                    }\r\n                    if (!isObject(result)) {\r\n                        result = { valid: result };\r\n                    }\r\n                    return [2 /*return*/, {\r\n                            valid: result.valid,\r\n                            required: result.required,\r\n                            error: result.valid ? undefined : _generateFieldError(field, value, ruleSchema, rule.name, params)\r\n                        }];\r\n            }\r\n        });\r\n    });\r\n}\r\n/**\r\n * Generates error messages.\r\n */\r\nfunction _generateFieldError(field, value, ruleSchema, ruleName, params) {\r\n    var _a;\r\n    var message = (_a = field.customMessages[ruleName]) !== null && _a !== void 0 ? _a : ruleSchema.message;\r\n    var ruleTargets = _getRuleTargets(field, ruleSchema, ruleName);\r\n    var _b = _getUserTargets(field, ruleSchema, ruleName, message), userTargets = _b.userTargets, userMessage = _b.userMessage;\r\n    var values = __assign(__assign(__assign(__assign({}, (params || {})), { _field_: field.name, _value_: value, _rule_: ruleName }), ruleTargets), userTargets);\r\n    return {\r\n        msg: function () { return _normalizeMessage(userMessage || getConfig().defaultMessage, field.name, values); },\r\n        rule: ruleName\r\n    };\r\n}\r\nfunction _getRuleTargets(field, ruleSchema, ruleName) {\r\n    var params = ruleSchema.params;\r\n    if (!params) {\r\n        return {};\r\n    }\r\n    var numTargets = params.filter(function (param) { return param.isTarget; }).length;\r\n    if (numTargets <= 0) {\r\n        return {};\r\n    }\r\n    var names = {};\r\n    var ruleConfig = field.rules[ruleName];\r\n    if (!Array.isArray(ruleConfig) && isObject(ruleConfig)) {\r\n        ruleConfig = params.map(function (param) {\r\n            return ruleConfig[param.name];\r\n        });\r\n    }\r\n    for (var index = 0; index < params.length; index++) {\r\n        var param = params[index];\r\n        var key = ruleConfig[index];\r\n        if (!isLocator(key)) {\r\n            continue;\r\n        }\r\n        key = key.__locatorRef;\r\n        var name_1 = field.names[key] || key;\r\n        names[param.name] = name_1;\r\n        names[\"_\" + param.name + \"_\"] = field.crossTable[key];\r\n    }\r\n    return names;\r\n}\r\nfunction _getUserTargets(field, ruleSchema, ruleName, userMessage) {\r\n    var userTargets = {};\r\n    var rules = field.rules[ruleName];\r\n    var params = ruleSchema.params || [];\r\n    // early return if no rules\r\n    if (!rules) {\r\n        return {};\r\n    }\r\n    // check all rules to convert targets\r\n    Object.keys(rules).forEach(function (key, index) {\r\n        // get the rule\r\n        var rule = rules[key];\r\n        if (!isLocator(rule)) {\r\n            return {};\r\n        }\r\n        // get associated parameter\r\n        var param = params[index];\r\n        if (!param) {\r\n            return {};\r\n        }\r\n        // grab the name of the target\r\n        var name = rule.__locatorRef;\r\n        userTargets[param.name] = field.names[name] || name;\r\n        userTargets[\"_\" + param.name + \"_\"] = field.crossTable[name];\r\n    });\r\n    return {\r\n        userTargets: userTargets,\r\n        userMessage: userMessage\r\n    };\r\n}\r\nfunction _normalizeMessage(template, field, values) {\r\n    if (typeof template === 'function') {\r\n        return template(field, values);\r\n    }\r\n    return interpolate(template, __assign(__assign({}, values), { _field_: field }));\r\n}\r\nfunction fillTargetValues(params, crossTable) {\r\n    if (Array.isArray(params)) {\r\n        return params;\r\n    }\r\n    var values = {};\r\n    var normalize = function (value) {\r\n        if (isLocator(value)) {\r\n            return value(crossTable);\r\n        }\r\n        return value;\r\n    };\r\n    Object.keys(params).forEach(function (param) {\r\n        values[param] = normalize(params[param]);\r\n    });\r\n    return values;\r\n}\n\nvar aggressive = function () { return ({\r\n    on: ['input', 'blur']\r\n}); };\r\nvar lazy = function () { return ({\r\n    on: ['change']\r\n}); };\r\nvar eager = function (_a) {\r\n    var errors = _a.errors;\r\n    if (errors.length) {\r\n        return {\r\n            on: ['input', 'change']\r\n        };\r\n    }\r\n    return {\r\n        on: ['change', 'blur']\r\n    };\r\n};\r\nvar passive = function () { return ({\r\n    on: []\r\n}); };\r\nvar modes = {\r\n    aggressive: aggressive,\r\n    eager: eager,\r\n    passive: passive,\r\n    lazy: lazy\r\n};\r\nvar setInteractionMode = function (mode, implementation) {\r\n    setConfig({ mode: mode });\r\n    if (!implementation) {\r\n        return;\r\n    }\r\n    if (!isCallable(implementation)) {\r\n        throw new Error('A mode implementation must be a function');\r\n    }\r\n    modes[mode] = implementation;\r\n};\n\nvar EVENT_BUS = new Vue();\r\nfunction localeChanged() {\r\n    EVENT_BUS.$emit('change:locale');\r\n}\n\nvar Dictionary = /** @class */ (function () {\r\n    function Dictionary(locale, dictionary) {\r\n        this.container = {};\r\n        this.locale = locale;\r\n        this.merge(dictionary);\r\n    }\r\n    Dictionary.prototype.resolve = function (field, rule, values) {\r\n        return this.format(this.locale, field, rule, values);\r\n    };\r\n    Dictionary.prototype.format = function (locale, field, rule, values) {\r\n        var _a, _b, _c, _d, _e, _f, _g, _h;\r\n        var message;\r\n        // find if specific message for that field was specified.\r\n        message = ((_c = (_b = (_a = this.container[locale]) === null || _a === void 0 ? void 0 : _a.fields) === null || _b === void 0 ? void 0 : _b[field]) === null || _c === void 0 ? void 0 : _c[rule]) || ((_e = (_d = this.container[locale]) === null || _d === void 0 ? void 0 : _d.messages) === null || _e === void 0 ? void 0 : _e[rule]);\r\n        if (!message) {\r\n            message = '{_field_} is not valid';\r\n        }\r\n        field = (_h = (_g = (_f = this.container[locale]) === null || _f === void 0 ? void 0 : _f.names) === null || _g === void 0 ? void 0 : _g[field]) !== null && _h !== void 0 ? _h : field;\r\n        return isCallable(message) ? message(field, values) : interpolate(message, __assign(__assign({}, values), { _field_: field }));\r\n    };\r\n    Dictionary.prototype.merge = function (dictionary) {\r\n        merge(this.container, dictionary);\r\n    };\r\n    Dictionary.prototype.hasRule = function (name) {\r\n        var _a, _b;\r\n        return !!((_b = (_a = this.container[this.locale]) === null || _a === void 0 ? void 0 : _a.messages) === null || _b === void 0 ? void 0 : _b[name]);\r\n    };\r\n    return Dictionary;\r\n}());\r\nvar DICTIONARY;\r\nfunction localize(locale, dictionary) {\r\n    var _a;\r\n    if (!DICTIONARY) {\r\n        DICTIONARY = new Dictionary('en', {});\r\n        setConfig({\r\n            defaultMessage: function (field, values) {\r\n                return DICTIONARY.resolve(field, values === null || values === void 0 ? void 0 : values._rule_, values || {});\r\n            }\r\n        });\r\n    }\r\n    if (typeof locale === 'string') {\r\n        DICTIONARY.locale = locale;\r\n        if (dictionary) {\r\n            DICTIONARY.merge((_a = {}, _a[locale] = dictionary, _a));\r\n        }\r\n        localeChanged();\r\n        return;\r\n    }\r\n    DICTIONARY.merge(locale);\r\n}\n\nvar isEvent = function (evt) {\r\n    if (!evt) {\r\n        return false;\r\n    }\r\n    if (typeof Event !== 'undefined' && isCallable(Event) && evt instanceof Event) {\r\n        return true;\r\n    }\r\n    // this is for IE\r\n    /* istanbul ignore next */\r\n    if (evt && evt.srcElement) {\r\n        return true;\r\n    }\r\n    return false;\r\n};\r\nfunction normalizeEventValue(value) {\r\n    var _a, _b;\r\n    if (!isEvent(value)) {\r\n        return value;\r\n    }\r\n    var input = value.target;\r\n    if (input.type === 'file' && input.files) {\r\n        return toArray(input.files);\r\n    }\r\n    // If the input has a `v-model.number` modifier applied.\r\n    if ((_a = input._vModifiers) === null || _a === void 0 ? void 0 : _a.number) {\r\n        // as per the spec the v-model.number uses parseFloat\r\n        var valueAsNumber = parseFloat(input.value);\r\n        if (isNaN(valueAsNumber)) {\r\n            return input.value;\r\n        }\r\n        return valueAsNumber;\r\n    }\r\n    if ((_b = input._vModifiers) === null || _b === void 0 ? void 0 : _b.trim) {\r\n        var trimmedValue = typeof input.value === 'string' ? input.value.trim() : input.value;\r\n        return trimmedValue;\r\n    }\r\n    return input.value;\r\n}\n\nvar isTextInput = function (vnode) {\r\n    var _a;\r\n    var attrs = ((_a = vnode.data) === null || _a === void 0 ? void 0 : _a.attrs) || vnode.elm;\r\n    // it will fallback to being a text input per browsers spec.\r\n    if (vnode.tag === 'input' && (!attrs || !attrs.type)) {\r\n        return true;\r\n    }\r\n    if (vnode.tag === 'textarea') {\r\n        return true;\r\n    }\r\n    return includes(['text', 'password', 'search', 'email', 'tel', 'url', 'number'], attrs === null || attrs === void 0 ? void 0 : attrs.type);\r\n};\r\n// export const isCheckboxOrRadioInput = (vnode: VNode): boolean => {\r\n//   const attrs = (vnode.data && vnode.data.attrs) || vnode.elm;\r\n//   return includes(['radio', 'checkbox'], attrs && attrs.type);\r\n// };\r\n// Gets the model object on the vnode.\r\nfunction findModel(vnode) {\r\n    if (!vnode.data) {\r\n        return undefined;\r\n    }\r\n    // Component Model\r\n    // THIS IS NOT TYPED IN OFFICIAL VUE TYPINGS\r\n    // eslint-disable-next-line\r\n    var nonStandardVNodeData = vnode.data;\r\n    if ('model' in nonStandardVNodeData) {\r\n        return nonStandardVNodeData.model;\r\n    }\r\n    if (!vnode.data.directives) {\r\n        return undefined;\r\n    }\r\n    return find(vnode.data.directives, function (d) { return d.name === 'model'; });\r\n}\r\nfunction findValue(vnode) {\r\n    var _a, _b;\r\n    var model = findModel(vnode);\r\n    if (model) {\r\n        return { value: model.value };\r\n    }\r\n    var config = findModelConfig(vnode);\r\n    var prop = (config === null || config === void 0 ? void 0 : config.prop) || 'value';\r\n    if (((_a = vnode.componentOptions) === null || _a === void 0 ? void 0 : _a.propsData) && prop in vnode.componentOptions.propsData) {\r\n        var propsDataWithValue = vnode.componentOptions.propsData;\r\n        return { value: propsDataWithValue[prop] };\r\n    }\r\n    if (((_b = vnode.data) === null || _b === void 0 ? void 0 : _b.domProps) && 'value' in vnode.data.domProps) {\r\n        return { value: vnode.data.domProps.value };\r\n    }\r\n    return undefined;\r\n}\r\nfunction extractChildren(vnode) {\r\n    if (Array.isArray(vnode)) {\r\n        return vnode;\r\n    }\r\n    if (Array.isArray(vnode.children)) {\r\n        return vnode.children;\r\n    }\r\n    /* istanbul ignore next */\r\n    if (vnode.componentOptions && Array.isArray(vnode.componentOptions.children)) {\r\n        return vnode.componentOptions.children;\r\n    }\r\n    return [];\r\n}\r\nfunction findInputNode(vnode) {\r\n    if (!Array.isArray(vnode) && findValue(vnode) !== undefined) {\r\n        return vnode;\r\n    }\r\n    var children = extractChildren(vnode);\r\n    return children.reduce(function (candidate, node) {\r\n        if (candidate) {\r\n            return candidate;\r\n        }\r\n        return findInputNode(node);\r\n    }, null);\r\n}\r\n// Resolves v-model config if exists.\r\nfunction findModelConfig(vnode) {\r\n    /* istanbul ignore next */\r\n    if (!vnode.componentOptions)\r\n        return null;\r\n    // This is also not typed in the standard Vue TS.\r\n    return vnode.componentOptions.Ctor.options.model;\r\n}\r\n// Adds a listener to vnode listener object.\r\nfunction mergeVNodeListeners(obj, eventName, handler) {\r\n    // no listener at all.\r\n    if (isNullOrUndefined(obj[eventName])) {\r\n        obj[eventName] = [handler];\r\n        return;\r\n    }\r\n    // Is an invoker.\r\n    if (isCallable(obj[eventName]) && obj[eventName].fns) {\r\n        var invoker = obj[eventName];\r\n        invoker.fns = Array.isArray(invoker.fns) ? invoker.fns : [invoker.fns];\r\n        if (!includes(invoker.fns, handler)) {\r\n            invoker.fns.push(handler);\r\n        }\r\n        return;\r\n    }\r\n    if (isCallable(obj[eventName])) {\r\n        var prev = obj[eventName];\r\n        obj[eventName] = [prev];\r\n    }\r\n    if (Array.isArray(obj[eventName]) && !includes(obj[eventName], handler)) {\r\n        obj[eventName].push(handler);\r\n    }\r\n}\r\n// Adds a listener to a native HTML vnode.\r\nfunction addNativeNodeListener(node, eventName, handler) {\r\n    /* istanbul ignore next */\r\n    if (!node.data) {\r\n        node.data = {};\r\n    }\r\n    if (isNullOrUndefined(node.data.on)) {\r\n        node.data.on = {};\r\n    }\r\n    mergeVNodeListeners(node.data.on, eventName, handler);\r\n}\r\n// Adds a listener to a Vue component vnode.\r\nfunction addComponentNodeListener(node, eventName, handler) {\r\n    /* istanbul ignore next */\r\n    if (!node.componentOptions) {\r\n        return;\r\n    }\r\n    /* istanbul ignore next */\r\n    if (!node.componentOptions.listeners) {\r\n        node.componentOptions.listeners = {};\r\n    }\r\n    mergeVNodeListeners(node.componentOptions.listeners, eventName, handler);\r\n}\r\nfunction addVNodeListener(vnode, eventName, handler) {\r\n    if (vnode.componentOptions) {\r\n        addComponentNodeListener(vnode, eventName, handler);\r\n        return;\r\n    }\r\n    addNativeNodeListener(vnode, eventName, handler);\r\n}\r\n// Determines if `change` should be used over `input` for listeners.\r\nfunction getInputEventName(vnode, model) {\r\n    var _a;\r\n    // Is a component.\r\n    if (vnode.componentOptions) {\r\n        var event_1 = (findModelConfig(vnode) || { event: 'input' }).event;\r\n        return event_1;\r\n    }\r\n    // Lazy Models typically use change event\r\n    if ((_a = model === null || model === void 0 ? void 0 : model.modifiers) === null || _a === void 0 ? void 0 : _a.lazy) {\r\n        return 'change';\r\n    }\r\n    // is a textual-type input.\r\n    if (isTextInput(vnode)) {\r\n        return 'input';\r\n    }\r\n    return 'change';\r\n}\r\nfunction isHTMLNode(node) {\r\n    return includes(['input', 'select', 'textarea'], node.tag);\r\n}\r\n// TODO: Type this one properly.\r\nfunction normalizeSlots(slots, ctx) {\r\n    var acc = [];\r\n    return Object.keys(slots).reduce(function (arr, key) {\r\n        slots[key].forEach(function (vnode) {\r\n            if (!vnode.context) {\r\n                slots[key].context = ctx;\r\n                if (!vnode.data) {\r\n                    vnode.data = {};\r\n                }\r\n                vnode.data.slot = key;\r\n            }\r\n        });\r\n        return arr.concat(slots[key]);\r\n    }, acc);\r\n}\r\nfunction resolveTextualRules(vnode) {\r\n    var _a;\r\n    var attrs = (_a = vnode.data) === null || _a === void 0 ? void 0 : _a.attrs;\r\n    var rules = {};\r\n    if (!attrs)\r\n        return rules;\r\n    if (attrs.type === 'email' && RuleContainer.getRuleDefinition('email')) {\r\n        rules.email = ['multiple' in attrs];\r\n    }\r\n    if (attrs.pattern && RuleContainer.getRuleDefinition('regex')) {\r\n        rules.regex = attrs.pattern;\r\n    }\r\n    if (attrs.maxlength >= 0 && RuleContainer.getRuleDefinition('max')) {\r\n        rules.max = attrs.maxlength;\r\n    }\r\n    if (attrs.minlength >= 0 && RuleContainer.getRuleDefinition('min')) {\r\n        rules.min = attrs.minlength;\r\n    }\r\n    if (attrs.type === 'number') {\r\n        if (isSpecified(attrs.min) && RuleContainer.getRuleDefinition('min_value')) {\r\n            rules.min_value = Number(attrs.min);\r\n        }\r\n        if (isSpecified(attrs.max) && RuleContainer.getRuleDefinition('max_value')) {\r\n            rules.max_value = Number(attrs.max);\r\n        }\r\n    }\r\n    return rules;\r\n}\r\nfunction resolveRules(vnode) {\r\n    var _a;\r\n    var htmlTags = ['input', 'select', 'textarea'];\r\n    var attrs = (_a = vnode.data) === null || _a === void 0 ? void 0 : _a.attrs;\r\n    if (!includes(htmlTags, vnode.tag) || !attrs) {\r\n        return {};\r\n    }\r\n    var rules = {};\r\n    if ('required' in attrs && attrs.required !== false && RuleContainer.getRuleDefinition('required')) {\r\n        rules.required = attrs.type === 'checkbox' ? [true] : true;\r\n    }\r\n    if (isTextInput(vnode)) {\r\n        return normalizeRules(__assign(__assign({}, rules), resolveTextualRules(vnode)));\r\n    }\r\n    return normalizeRules(rules);\r\n}\r\nfunction normalizeChildren(context, slotProps) {\r\n    if (context.$scopedSlots.default) {\r\n        return context.$scopedSlots.default(slotProps) || [];\r\n    }\r\n    return context.$slots.default || [];\r\n}\n\n/**\r\n * Determines if a provider needs to run validation.\r\n */\r\nfunction shouldValidate(ctx, value) {\r\n    // when an immediate/initial validation is needed and wasn't done before.\r\n    if (!ctx._ignoreImmediate && ctx.immediate) {\r\n        return true;\r\n    }\r\n    // when the value changes for whatever reason.\r\n    if (ctx.value !== value && ctx.normalizedEvents.length) {\r\n        return true;\r\n    }\r\n    // when it needs validation due to props/cross-fields changes.\r\n    if (ctx._needsValidation) {\r\n        return true;\r\n    }\r\n    // when the initial value is undefined and the field wasn't rendered yet.\r\n    if (!ctx.initialized && value === undefined) {\r\n        return true;\r\n    }\r\n    return false;\r\n}\r\nfunction createValidationCtx(ctx) {\r\n    return __assign(__assign({}, ctx.flags), { errors: ctx.errors, classes: ctx.classes, failedRules: ctx.failedRules, reset: function () { return ctx.reset(); }, validate: function () {\r\n            var args = [];\r\n            for (var _i = 0; _i < arguments.length; _i++) {\r\n                args[_i] = arguments[_i];\r\n            }\r\n            return ctx.validate.apply(ctx, args);\r\n        }, ariaInput: {\r\n            'aria-invalid': ctx.flags.invalid ? 'true' : 'false',\r\n            'aria-required': ctx.isRequired ? 'true' : 'false',\r\n            'aria-errormessage': \"vee_\" + ctx.id\r\n        }, ariaMsg: {\r\n            id: \"vee_\" + ctx.id,\r\n            'aria-live': ctx.errors.length ? 'assertive' : 'off'\r\n        } });\r\n}\r\nfunction onRenderUpdate(vm, value) {\r\n    if (!vm.initialized) {\r\n        vm.initialValue = value;\r\n    }\r\n    var validateNow = shouldValidate(vm, value);\r\n    vm._needsValidation = false;\r\n    vm.value = value;\r\n    vm._ignoreImmediate = true;\r\n    if (!validateNow) {\r\n        return;\r\n    }\r\n    var validate = function () {\r\n        if (vm.immediate || vm.flags.validated) {\r\n            return triggerThreadSafeValidation(vm);\r\n        }\r\n        vm.validateSilent();\r\n    };\r\n    if (vm.initialized) {\r\n        validate();\r\n        return;\r\n    }\r\n    vm.$once('hook:mounted', function () { return validate(); });\r\n}\r\nfunction computeModeSetting(ctx) {\r\n    var compute = (isCallable(ctx.mode) ? ctx.mode : modes[ctx.mode]);\r\n    return compute(ctx);\r\n}\r\nfunction triggerThreadSafeValidation(vm) {\r\n    var pendingPromise = vm.validateSilent();\r\n    // avoids race conditions between successive validations.\r\n    vm._pendingValidation = pendingPromise;\r\n    return pendingPromise.then(function (result) {\r\n        if (pendingPromise === vm._pendingValidation) {\r\n            vm.applyResult(result);\r\n            vm._pendingValidation = undefined;\r\n        }\r\n        return result;\r\n    });\r\n}\r\n// Creates the common handlers for a validatable context.\r\nfunction createCommonHandlers(vm) {\r\n    if (!vm.$veeOnInput) {\r\n        vm.$veeOnInput = function (e) {\r\n            vm.syncValue(e); // track and keep the value updated.\r\n            vm.setFlags({ dirty: true, pristine: false });\r\n        };\r\n    }\r\n    var onInput = vm.$veeOnInput;\r\n    if (!vm.$veeOnBlur) {\r\n        vm.$veeOnBlur = function () {\r\n            vm.setFlags({ touched: true, untouched: false });\r\n        };\r\n    }\r\n    // Blur event listener.\r\n    var onBlur = vm.$veeOnBlur;\r\n    var onValidate = vm.$veeHandler;\r\n    var mode = computeModeSetting(vm);\r\n    // Handle debounce changes.\r\n    if (!onValidate || vm.$veeDebounce !== vm.debounce) {\r\n        onValidate = debounce(function () {\r\n            vm.$nextTick(function () {\r\n                if (!vm._pendingReset) {\r\n                    triggerThreadSafeValidation(vm);\r\n                }\r\n                vm._pendingReset = false;\r\n            });\r\n        }, mode.debounce || vm.debounce);\r\n        // Cache the handler so we don't create it each time.\r\n        vm.$veeHandler = onValidate;\r\n        // cache the debounce value so we detect if it was changed.\r\n        vm.$veeDebounce = vm.debounce;\r\n    }\r\n    return { onInput: onInput, onBlur: onBlur, onValidate: onValidate };\r\n}\r\n// Adds all plugin listeners to the vnode.\r\nfunction addListeners(vm, node) {\r\n    var value = findValue(node);\r\n    // cache the input eventName.\r\n    vm._inputEventName = vm._inputEventName || getInputEventName(node, findModel(node));\r\n    onRenderUpdate(vm, value === null || value === void 0 ? void 0 : value.value);\r\n    var _a = createCommonHandlers(vm), onInput = _a.onInput, onBlur = _a.onBlur, onValidate = _a.onValidate;\r\n    addVNodeListener(node, vm._inputEventName, onInput);\r\n    addVNodeListener(node, 'blur', onBlur);\r\n    // add the validation listeners.\r\n    vm.normalizedEvents.forEach(function (evt) {\r\n        addVNodeListener(node, evt, onValidate);\r\n    });\r\n    vm.initialized = true;\r\n}\n\nvar PROVIDER_COUNTER = 0;\r\nfunction data() {\r\n    var errors = [];\r\n    var fieldName = '';\r\n    var defaultValues = {\r\n        errors: errors,\r\n        value: undefined,\r\n        initialized: false,\r\n        initialValue: undefined,\r\n        flags: createFlags(),\r\n        failedRules: {},\r\n        isActive: true,\r\n        fieldName: fieldName,\r\n        id: ''\r\n    };\r\n    return defaultValues;\r\n}\r\nvar ValidationProvider = Vue.extend({\r\n    inject: {\r\n        $_veeObserver: {\r\n            from: '$_veeObserver',\r\n            default: function () {\r\n                if (!this.$vnode.context.$_veeObserver) {\r\n                    this.$vnode.context.$_veeObserver = createObserver();\r\n                }\r\n                return this.$vnode.context.$_veeObserver;\r\n            }\r\n        }\r\n    },\r\n    props: {\r\n        vid: {\r\n            type: String,\r\n            default: ''\r\n        },\r\n        name: {\r\n            type: String,\r\n            default: null\r\n        },\r\n        mode: {\r\n            type: [String, Function],\r\n            default: function () {\r\n                return getConfig().mode;\r\n            }\r\n        },\r\n        rules: {\r\n            type: [Object, String],\r\n            default: null\r\n        },\r\n        immediate: {\r\n            type: Boolean,\r\n            default: false\r\n        },\r\n        bails: {\r\n            type: Boolean,\r\n            default: function () { return getConfig().bails; }\r\n        },\r\n        skipIfEmpty: {\r\n            type: Boolean,\r\n            default: function () { return getConfig().skipOptional; }\r\n        },\r\n        debounce: {\r\n            type: Number,\r\n            default: 0\r\n        },\r\n        tag: {\r\n            type: String,\r\n            default: 'span'\r\n        },\r\n        slim: {\r\n            type: Boolean,\r\n            default: false\r\n        },\r\n        disabled: {\r\n            type: Boolean,\r\n            default: false\r\n        },\r\n        customMessages: {\r\n            type: Object,\r\n            default: function () {\r\n                return {};\r\n            }\r\n        }\r\n    },\r\n    watch: {\r\n        rules: {\r\n            deep: true,\r\n            handler: function (val, oldVal) {\r\n                this._needsValidation = !isEqual(val, oldVal);\r\n            }\r\n        }\r\n    },\r\n    data: data,\r\n    computed: {\r\n        fieldDeps: function () {\r\n            var _this = this;\r\n            return Object.keys(this.normalizedRules).reduce(function (acc, rule) {\r\n                var deps = extractLocators(_this.normalizedRules[rule]).map(function (dep) { return dep.__locatorRef; });\r\n                acc.push.apply(acc, deps);\r\n                deps.forEach(function (depName) {\r\n                    watchCrossFieldDep(_this, depName);\r\n                });\r\n                return acc;\r\n            }, []);\r\n        },\r\n        normalizedEvents: function () {\r\n            var _this = this;\r\n            var on = computeModeSetting(this).on;\r\n            return (on || []).map(function (e) {\r\n                if (e === 'input') {\r\n                    return _this._inputEventName;\r\n                }\r\n                return e;\r\n            });\r\n        },\r\n        isRequired: function () {\r\n            var rules = __assign(__assign({}, this._resolvedRules), this.normalizedRules);\r\n            var isRequired = Object.keys(rules).some(RuleContainer.isRequireRule);\r\n            this.flags.required = !!isRequired;\r\n            return isRequired;\r\n        },\r\n        classes: function () {\r\n            var names = getConfig().classes;\r\n            return computeClassObj(names, this.flags);\r\n        },\r\n        normalizedRules: function () {\r\n            return normalizeRules(this.rules);\r\n        }\r\n    },\r\n    mounted: function () {\r\n        var _this = this;\r\n        var onLocaleChanged = function () {\r\n            if (!_this.flags.validated) {\r\n                return;\r\n            }\r\n            var regenerateMap = _this._regenerateMap;\r\n            if (regenerateMap) {\r\n                var errors_1 = [];\r\n                var failedRules_1 = {};\r\n                Object.keys(regenerateMap).forEach(function (rule) {\r\n                    var msg = regenerateMap[rule]();\r\n                    errors_1.push(msg);\r\n                    failedRules_1[rule] = msg;\r\n                });\r\n                _this.applyResult({ errors: errors_1, failedRules: failedRules_1, regenerateMap: regenerateMap });\r\n                return;\r\n            }\r\n            _this.validate();\r\n        };\r\n        EVENT_BUS.$on('change:locale', onLocaleChanged);\r\n        this.$on('hook:beforeDestroy', function () {\r\n            EVENT_BUS.$off('change:locale', onLocaleChanged);\r\n        });\r\n    },\r\n    render: function (h) {\r\n        var _a, _b, _c, _d;\r\n        this.registerField();\r\n        var ctx = createValidationCtx(this);\r\n        var children = normalizeChildren(this, ctx);\r\n        var input = findInputNode(children);\r\n        if (!input) {\r\n            // Silent exit if no input was found.\r\n            return this.slim && children.length <= 1 ? children[0] : h(this.tag, children);\r\n        }\r\n        var resolved = getConfig().useConstraintAttrs ? resolveRules(input) : {};\r\n        if (!isEqual(this._resolvedRules, resolved)) {\r\n            this._needsValidation = true;\r\n        }\r\n        if (isHTMLNode(input)) {\r\n            this.fieldName = ((_b = (_a = input.data) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b.name) || ((_d = (_c = input.data) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d.id);\r\n        }\r\n        this._resolvedRules = resolved;\r\n        addListeners(this, input);\r\n        return this.slim && children.length <= 1 ? children[0] : h(this.tag, children);\r\n    },\r\n    beforeDestroy: function () {\r\n        // cleanup reference.\r\n        this.$_veeObserver.unobserve(this.id);\r\n    },\r\n    activated: function () {\r\n        this.isActive = true;\r\n    },\r\n    deactivated: function () {\r\n        this.isActive = false;\r\n    },\r\n    methods: {\r\n        setFlags: function (flags) {\r\n            var _this = this;\r\n            Object.keys(flags).forEach(function (flag) {\r\n                _this.flags[flag] = flags[flag];\r\n            });\r\n        },\r\n        syncValue: function (v) {\r\n            var value = normalizeEventValue(v);\r\n            this.value = value;\r\n            this.flags.changed = this.initialValue !== value;\r\n        },\r\n        reset: function () {\r\n            var _this = this;\r\n            this.errors = [];\r\n            this.initialValue = this.value;\r\n            var flags = createFlags();\r\n            flags.required = this.isRequired;\r\n            this.setFlags(flags);\r\n            this.failedRules = {};\r\n            this.validateSilent();\r\n            this._pendingValidation = undefined;\r\n            this._pendingReset = true;\r\n            setTimeout(function () {\r\n                _this._pendingReset = false;\r\n            }, this.debounce);\r\n        },\r\n        validate: function () {\r\n            var args = [];\r\n            for (var _i = 0; _i < arguments.length; _i++) {\r\n                args[_i] = arguments[_i];\r\n            }\r\n            return __awaiter(this, void 0, void 0, function () {\r\n                return __generator(this, function (_a) {\r\n                    if (args.length > 0) {\r\n                        this.syncValue(args[0]);\r\n                    }\r\n                    return [2 /*return*/, triggerThreadSafeValidation(this)];\r\n                });\r\n            });\r\n        },\r\n        validateSilent: function () {\r\n            return __awaiter(this, void 0, void 0, function () {\r\n                var rules, result;\r\n                return __generator(this, function (_a) {\r\n                    switch (_a.label) {\r\n                        case 0:\r\n                            this.setFlags({ pending: true });\r\n                            rules = __assign(__assign({}, this._resolvedRules), this.normalizedRules);\r\n                            Object.defineProperty(rules, '_$$isNormalized', {\r\n                                value: true,\r\n                                writable: false,\r\n                                enumerable: false,\r\n                                configurable: false\r\n                            });\r\n                            return [4 /*yield*/, validate(this.value, rules, __assign(__assign({ name: this.name || this.fieldName }, createLookup(this)), { bails: this.bails, skipIfEmpty: this.skipIfEmpty, isInitial: !this.initialized, customMessages: this.customMessages }))];\r\n                        case 1:\r\n                            result = _a.sent();\r\n                            this.setFlags({\r\n                                pending: false,\r\n                                valid: result.valid,\r\n                                invalid: !result.valid\r\n                            });\r\n                            return [2 /*return*/, result];\r\n                    }\r\n                });\r\n            });\r\n        },\r\n        setErrors: function (errors) {\r\n            this.applyResult({ errors: errors, failedRules: {} });\r\n        },\r\n        applyResult: function (_a) {\r\n            var errors = _a.errors, failedRules = _a.failedRules, regenerateMap = _a.regenerateMap;\r\n            this.errors = errors;\r\n            this._regenerateMap = regenerateMap;\r\n            this.failedRules = __assign({}, (failedRules || {}));\r\n            this.setFlags({\r\n                valid: !errors.length,\r\n                passed: !errors.length,\r\n                invalid: !!errors.length,\r\n                failed: !!errors.length,\r\n                validated: true,\r\n                changed: this.value !== this.initialValue\r\n            });\r\n        },\r\n        registerField: function () {\r\n            updateRenderingContextRefs(this);\r\n        }\r\n    }\r\n});\r\nfunction computeClassObj(names, flags) {\r\n    var acc = {};\r\n    var keys = Object.keys(flags);\r\n    var length = keys.length;\r\n    var _loop_1 = function (i) {\r\n        var flag = keys[i];\r\n        var className = (names && names[flag]) || flag;\r\n        var value = flags[flag];\r\n        if (isNullOrUndefined(value)) {\r\n            return \"continue\";\r\n        }\r\n        if ((flag === 'valid' || flag === 'invalid') && !flags.validated) {\r\n            return \"continue\";\r\n        }\r\n        if (typeof className === 'string') {\r\n            acc[className] = value;\r\n        }\r\n        else if (Array.isArray(className)) {\r\n            className.forEach(function (cls) {\r\n                acc[cls] = value;\r\n            });\r\n        }\r\n    };\r\n    for (var i = 0; i < length; i++) {\r\n        _loop_1(i);\r\n    }\r\n    return acc;\r\n}\r\nfunction createLookup(vm) {\r\n    var providers = vm.$_veeObserver.refs;\r\n    var reduced = {\r\n        names: {},\r\n        values: {}\r\n    };\r\n    return vm.fieldDeps.reduce(function (acc, depName) {\r\n        if (!providers[depName]) {\r\n            return acc;\r\n        }\r\n        acc.values[depName] = providers[depName].value;\r\n        acc.names[depName] = providers[depName].name;\r\n        return acc;\r\n    }, reduced);\r\n}\r\nfunction extractId(vm) {\r\n    if (vm.vid) {\r\n        return vm.vid;\r\n    }\r\n    if (vm.name) {\r\n        return vm.name;\r\n    }\r\n    if (vm.id) {\r\n        return vm.id;\r\n    }\r\n    if (vm.fieldName) {\r\n        return vm.fieldName;\r\n    }\r\n    PROVIDER_COUNTER++;\r\n    return \"_vee_\" + PROVIDER_COUNTER;\r\n}\r\nfunction updateRenderingContextRefs(vm) {\r\n    var providedId = extractId(vm);\r\n    var id = vm.id;\r\n    // Nothing has changed.\r\n    if (!vm.isActive || (id === providedId && vm.$_veeObserver.refs[id])) {\r\n        return;\r\n    }\r\n    // vid was changed.\r\n    if (id !== providedId && vm.$_veeObserver.refs[id] === vm) {\r\n        vm.$_veeObserver.unobserve(id);\r\n    }\r\n    vm.id = providedId;\r\n    vm.$_veeObserver.observe(vm);\r\n}\r\nfunction createObserver() {\r\n    return {\r\n        refs: {},\r\n        observe: function (vm) {\r\n            this.refs[vm.id] = vm;\r\n        },\r\n        unobserve: function (id) {\r\n            delete this.refs[id];\r\n        }\r\n    };\r\n}\r\nfunction watchCrossFieldDep(ctx, depName, withHooks) {\r\n    if (withHooks === void 0) { withHooks = true; }\r\n    var providers = ctx.$_veeObserver.refs;\r\n    if (!ctx._veeWatchers) {\r\n        ctx._veeWatchers = {};\r\n    }\r\n    if (!providers[depName] && withHooks) {\r\n        return ctx.$once('hook:mounted', function () {\r\n            watchCrossFieldDep(ctx, depName, false);\r\n        });\r\n    }\r\n    if (!isCallable(ctx._veeWatchers[depName]) && providers[depName]) {\r\n        ctx._veeWatchers[depName] = providers[depName].$watch('value', function () {\r\n            if (ctx.flags.validated) {\r\n                ctx._needsValidation = true;\r\n                ctx.validate();\r\n            }\r\n        });\r\n    }\r\n}\n\nvar FLAGS_STRATEGIES = [\r\n    ['pristine', 'every'],\r\n    ['dirty', 'some'],\r\n    ['touched', 'some'],\r\n    ['untouched', 'every'],\r\n    ['valid', 'every'],\r\n    ['invalid', 'some'],\r\n    ['pending', 'some'],\r\n    ['validated', 'every'],\r\n    ['changed', 'some'],\r\n    ['passed', 'every'],\r\n    ['failed', 'some']\r\n];\r\nvar OBSERVER_COUNTER = 0;\r\nfunction data$1() {\r\n    var refs = {};\r\n    var errors = {};\r\n    var flags = createObserverFlags();\r\n    var fields = {};\r\n    // FIXME: Not sure of this one can be typed, circular type reference.\r\n    var observers = [];\r\n    return {\r\n        id: '',\r\n        refs: refs,\r\n        observers: observers,\r\n        errors: errors,\r\n        flags: flags,\r\n        fields: fields\r\n    };\r\n}\r\nfunction provideSelf() {\r\n    return {\r\n        $_veeObserver: this\r\n    };\r\n}\r\nvar ValidationObserver = Vue.extend({\r\n    name: 'ValidationObserver',\r\n    provide: provideSelf,\r\n    inject: {\r\n        $_veeObserver: {\r\n            from: '$_veeObserver',\r\n            default: function () {\r\n                if (!this.$vnode.context.$_veeObserver) {\r\n                    return null;\r\n                }\r\n                return this.$vnode.context.$_veeObserver;\r\n            }\r\n        }\r\n    },\r\n    props: {\r\n        tag: {\r\n            type: String,\r\n            default: 'span'\r\n        },\r\n        vid: {\r\n            type: String,\r\n            default: function () {\r\n                return \"obs_\" + OBSERVER_COUNTER++;\r\n            }\r\n        },\r\n        slim: {\r\n            type: Boolean,\r\n            default: false\r\n        },\r\n        disabled: {\r\n            type: Boolean,\r\n            default: false\r\n        }\r\n    },\r\n    data: data$1,\r\n    created: function () {\r\n        var _this = this;\r\n        this.id = this.vid;\r\n        register(this);\r\n        var onChange = debounce(function (_a) {\r\n            var errors = _a.errors, flags = _a.flags, fields = _a.fields;\r\n            _this.errors = errors;\r\n            _this.flags = flags;\r\n            _this.fields = fields;\r\n        }, 16);\r\n        this.$watch(computeObserverState, onChange);\r\n    },\r\n    activated: function () {\r\n        register(this);\r\n    },\r\n    deactivated: function () {\r\n        unregister(this);\r\n    },\r\n    beforeDestroy: function () {\r\n        unregister(this);\r\n    },\r\n    render: function (h) {\r\n        var children = normalizeChildren(this, prepareSlotProps(this));\r\n        return this.slim && children.length <= 1 ? children[0] : h(this.tag, { on: this.$listeners }, children);\r\n    },\r\n    methods: {\r\n        observe: function (subscriber, kind) {\r\n            var _a;\r\n            if (kind === void 0) { kind = 'provider'; }\r\n            if (kind === 'observer') {\r\n                this.observers.push(subscriber);\r\n                return;\r\n            }\r\n            this.refs = __assign(__assign({}, this.refs), (_a = {}, _a[subscriber.id] = subscriber, _a));\r\n        },\r\n        unobserve: function (id, kind) {\r\n            if (kind === void 0) { kind = 'provider'; }\r\n            if (kind === 'provider') {\r\n                var provider = this.refs[id];\r\n                if (!provider) {\r\n                    return;\r\n                }\r\n                this.$delete(this.refs, id);\r\n                return;\r\n            }\r\n            var idx = findIndex(this.observers, function (o) { return o.id === id; });\r\n            if (idx !== -1) {\r\n                this.observers.splice(idx, 1);\r\n            }\r\n        },\r\n        validate: function (_a) {\r\n            var _b = (_a === void 0 ? {} : _a).silent, silent = _b === void 0 ? false : _b;\r\n            return __awaiter(this, void 0, void 0, function () {\r\n                var results;\r\n                return __generator(this, function (_c) {\r\n                    switch (_c.label) {\r\n                        case 0: return [4 /*yield*/, Promise.all(__spreadArrays(values(this.refs)\r\n                                .filter(function (r) { return !r.disabled; })\r\n                                .map(function (ref) { return ref[silent ? 'validateSilent' : 'validate']().then(function (r) { return r.valid; }); }), this.observers.filter(function (o) { return !o.disabled; }).map(function (obs) { return obs.validate({ silent: silent }); })))];\r\n                        case 1:\r\n                            results = _c.sent();\r\n                            return [2 /*return*/, results.every(function (r) { return r; })];\r\n                    }\r\n                });\r\n            });\r\n        },\r\n        handleSubmit: function (cb) {\r\n            return __awaiter(this, void 0, void 0, function () {\r\n                var isValid;\r\n                return __generator(this, function (_a) {\r\n                    switch (_a.label) {\r\n                        case 0: return [4 /*yield*/, this.validate()];\r\n                        case 1:\r\n                            isValid = _a.sent();\r\n                            if (!isValid || !cb) {\r\n                                return [2 /*return*/];\r\n                            }\r\n                            return [2 /*return*/, cb()];\r\n                    }\r\n                });\r\n            });\r\n        },\r\n        reset: function () {\r\n            return __spreadArrays(values(this.refs), this.observers).forEach(function (ref) { return ref.reset(); });\r\n        },\r\n        setErrors: function (errors) {\r\n            var _this = this;\r\n            Object.keys(errors).forEach(function (key) {\r\n                var provider = _this.refs[key];\r\n                if (!provider)\r\n                    return;\r\n                var errorArr = errors[key] || [];\r\n                errorArr = typeof errorArr === 'string' ? [errorArr] : errorArr;\r\n                provider.setErrors(errorArr);\r\n            });\r\n            this.observers.forEach(function (observer) {\r\n                observer.setErrors(errors);\r\n            });\r\n        }\r\n    }\r\n});\r\nfunction unregister(vm) {\r\n    if (vm.$_veeObserver) {\r\n        vm.$_veeObserver.unobserve(vm.id, 'observer');\r\n    }\r\n}\r\nfunction register(vm) {\r\n    if (vm.$_veeObserver) {\r\n        vm.$_veeObserver.observe(vm, 'observer');\r\n    }\r\n}\r\nfunction prepareSlotProps(vm) {\r\n    return __assign(__assign({}, vm.flags), { errors: vm.errors, fields: vm.fields, validate: vm.validate, passes: vm.handleSubmit, handleSubmit: vm.handleSubmit, reset: vm.reset });\r\n}\r\n// Creates a modified version of validation flags\r\nfunction createObserverFlags() {\r\n    return __assign(__assign({}, createFlags()), { valid: true, invalid: false });\r\n}\r\nfunction computeObserverState() {\r\n    var vms = __spreadArrays(values(this.refs), this.observers);\r\n    var errors = {};\r\n    var flags = createObserverFlags();\r\n    var fields = {};\r\n    var length = vms.length;\r\n    for (var i = 0; i < length; i++) {\r\n        var vm = vms[i];\r\n        // validation provider\r\n        if (Array.isArray(vm.errors)) {\r\n            errors[vm.id] = vm.errors;\r\n            fields[vm.id] = __assign({ id: vm.id, name: vm.name, failedRules: vm.failedRules }, vm.flags);\r\n            continue;\r\n        }\r\n        // Nested observer, merge errors and fields\r\n        errors = __assign(__assign({}, errors), vm.errors);\r\n        fields = __assign(__assign({}, fields), vm.fields);\r\n    }\r\n    FLAGS_STRATEGIES.forEach(function (_a) {\r\n        var flag = _a[0], method = _a[1];\r\n        flags[flag] = vms[method](function (vm) { return vm.flags[flag]; });\r\n    });\r\n    return { errors: errors, flags: flags, fields: fields };\r\n}\n\nfunction withValidation(component, mapProps) {\r\n    if (mapProps === void 0) { mapProps = identity; }\r\n    var _a;\r\n    var options = 'options' in component ? component.options : component;\r\n    var providerOpts = ValidationProvider.options;\r\n    var hoc = {\r\n        name: (options.name || 'AnonymousHoc') + \"WithValidation\",\r\n        props: __assign({}, providerOpts.props),\r\n        data: providerOpts.data,\r\n        computed: __assign({}, providerOpts.computed),\r\n        methods: __assign({}, providerOpts.methods),\r\n        beforeDestroy: providerOpts.beforeDestroy,\r\n        inject: providerOpts.inject\r\n    };\r\n    var eventName = ((_a = options === null || options === void 0 ? void 0 : options.model) === null || _a === void 0 ? void 0 : _a.event) || 'input';\r\n    hoc.render = function (h) {\r\n        var _a;\r\n        this.registerField();\r\n        var vctx = createValidationCtx(this);\r\n        var listeners = __assign({}, this.$listeners);\r\n        var model = findModel(this.$vnode);\r\n        this._inputEventName = this._inputEventName || getInputEventName(this.$vnode, model);\r\n        var value = findValue(this.$vnode);\r\n        onRenderUpdate(this, value === null || value === void 0 ? void 0 : value.value);\r\n        var _b = createCommonHandlers(this), onInput = _b.onInput, onBlur = _b.onBlur, onValidate = _b.onValidate;\r\n        mergeVNodeListeners(listeners, eventName, onInput);\r\n        mergeVNodeListeners(listeners, 'blur', onBlur);\r\n        this.normalizedEvents.forEach(function (evt) {\r\n            mergeVNodeListeners(listeners, evt, onValidate);\r\n        });\r\n        // Props are any attrs not associated with ValidationProvider Plus the model prop.\r\n        // WARNING: Accidental prop overwrite will probably happen.\r\n        var prop = (findModelConfig(this.$vnode) || { prop: 'value' }).prop;\r\n        var props = __assign(__assign(__assign({}, this.$attrs), (_a = {}, _a[prop] = model === null || model === void 0 ? void 0 : model.value, _a)), mapProps(vctx));\r\n        return h(options, {\r\n            attrs: this.$attrs,\r\n            props: props,\r\n            on: listeners\r\n        }, normalizeSlots(this.$slots, this.$vnode.context));\r\n    };\r\n    return hoc;\r\n}\n\nvar version = '3.3.0';\n\nexport { ValidationObserver, ValidationProvider, configure, extend, localeChanged, localize, normalizeRules, setInteractionMode, validate, version, withValidation };\n"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_t","staticRenderFns","name","component","ariaLabel","id","isOpen","on","$event","preventDefault","toggle","_e","directives","rawName","value","tooltipText","expression","domProps","_s","$trans","_v","props","type","default","tooltipAriaLabel","data","mounted","methods","ref","onSubmit","tooltips","MostRecentFinancialYearStartDateInfo","model","calculatorModel","inputFields","callback","$$v","$set","MostRecentFinancialYearEndDateInfo","DividendResolutionDayInfo","DividendWithdrawalDateInfo","isCalculating","resetCalculator","ariaMessage","MostRecentFinancialYearResultInfo","sumFields","mostRecentFinancialYear","DividendResolutionDayResultInfo","dividendResolutionDate","DividendWithdrawalDateResultInfo","dividendWithdrawalDate","TaxYearResultInfo","taxYear","PaymentYearResultInfo","paymentYear","DeadlineForSelfAssessedTaxesInfo","deadlineForSelfAssessedTaxes","DeadlineForAnnualInformationReportInfo","deadlineForAnnualInformationReport","getMostRecentFinancialYear","dateFrom","dateTo","getYear","date","_isNil","convertStringToDate","getFullYear","toString","getDeadlineForSelfAssessedTaxes","deadlineDate","Date","getMonth","convertDateToString","getDate","getDeadlineForAnnualInformationReport","components","CalculatorField","Tooltip","ValidationObserver","A11YAnnouncer","calculations","resultCalculated","calculatorError","created","extend","dividendResolutionDateNotInFinancialYear","localize","computed","showResult","isFormDirty","firstError","resolve","then","_observer","catch","calculateDates","clearFields","obj","querySelector","focus","rules","mode","scopedSlots","_u","key","fn","errors","ariaInput","ariaMsg","invalid","_b","length","isDisabled","$emit","target","ValidationProvider","isCurrency","makeBuiltIn","defineProperty","module","exports","descriptor","get","getter","set","setter","f","global","DESCRIPTORS","defineBuiltInAccessor","regExpFlags","fails","RegExp","RegExpPrototype","prototype","FORCED","INDICES_SUPPORT","error","O","calls","expected","addGetter","chr","Object","pairs","dotAll","ignoreCase","multiline","sticky","hasIndices","result","getOwnPropertyDescriptor","call","configurable","vatLowerLimitReliefCalculatorModel","limits","huojennukseenOikeuttavanLiikevaihdonAlaraja","huojennukseenOikeuttavanLiikevaihdonYlaraja","liikevaihto","tilikaudenPituus","verollinenLiikevaihto","verotonLiikevaihto","kayttoomaisuudenMyynti","kiinteistonKayttooikeudenLuovutus","metsataloudenMyynti","eraatVerottomatMyynnit","suoritettavaVero","arvonlisaveronOsuus","suoritettavatArvonlisaverotYhteensa","kayttoomaisuudenMyynninVero","metsataloudenMyynninVero","kiinteistonKayttooikeudenLuovutusSuoritettavaVero","kaannettyVerovelvollisuus","euTavaraJaPalveluostojenVero","tavaranMaahantuonnistaSuoritettavaVero","ostojenVero","vahennettavatArvonlisaverotYhteensa","metsataloudenOstojenVero","kiinteistonKayttooikeudenLuovutusOstojenVero","liikevaihtoYhteensa","liikevaihtoonEiLuetaYhteensa","huojennukseenOikeuttavaLiikevaihto","tilikaudeltaSuoritettavaVeroYhteensa","tilikaudenOstojenVeroYhteensa","huojennuksenMaara","annualInformationCalculatorModel","mostRecentFinancialYearStartDate","mostRecentFinancialYearEndDate","alcoholTaxCalculatorModel","selectedCategory","percentage","amount","assetTransferTaxCalculatorModel","sellingPrice","taxPercent","inheritanceTaxCalculatorModel","inheritanceTaxValue","selectedDeduction","interestCalculatorModel","dueDate","paymentDate","taxAmount","isInheritanceTax","householdExpenseCalculatorModel","expense","limitValues","treshold","limit","householdExpenseCalculatorModel2022","selectedType","vatCalculatorModel","taxFreePrice","taxablePrice","taxRate","addThousandSeparators","param","replace","containsString","input","searchString","position","indexOf","decimalToString","str","formatDecimal","dateStr","day","month","year","split","parseStringToFloat","parseFloat","convertDecimalSeparatorToDot","roundToTwo","Math","round","validate$8","_a","multiple","re","Array","isArray","String","map","emailStr","trim","every","val","test","params$8","email","validate","params","isNullOrUndefined","undefined","isEmptyArray","arr","validate$o","allowFalse","valid","required","computesRequired","params$h","Vue","currencyValidator","regex","dateFormatValidator","mustNotBeSameDateValidator","other","getTime","castValue","isTarget","cast","dateMustBeGreaterValidator","taxFreePriceValidator","taxable","taxablePriceValidator","taxFree","taxAmountValidator","dateBetweenValidator","minDate","maxDate","message","_value","dateMustBeGreaterOrEqualValidator","financialYearRangeValidator","startDate","financialYearsMaxLenghtInMonths","firstDateOutOfRange","setMonth","financialYearInMonthsValidator","financialYearGivenBeforeRevenue","totalTurnoverValidator","maxValue","decimalValidator","percentageValidator","dateInFinancialYear","dividendResolutionDateValidator","dateIsGreater","isSameOrFollowingYear","validationMessages","translation","messages","currency","date_format","not_same_date","valid_end_date","valid_financial_year_length","dividend_resolution_date_not_in_financial_year","valid_dividend_resolution_date","valid_dividend_withdrawal_date","valid_decimal","payment_date_after","valid_share_of_expense","valid_financial_year_in_months","financial_year_given","tax_free_validator","taxable_validator","tax_amount_validator","__assign","assign","t","s","i","n","arguments","p","hasOwnProperty","apply","__awaiter","thisArg","_arguments","P","generator","Promise","reject","fulfilled","step","next","e","rejected","done","__generator","body","y","g","_","label","sent","trys","ops","verb","Symbol","iterator","v","op","TypeError","pop","push","__spreadArrays","il","r","k","a","j","jl","isNaN","isObject","isEqual","lhs","rhs","source","flags","keys","isSpecified","isCallable","isLocator","__locatorRef","findIndex","arrayLike","predicate","array","toArray","find","idx","includes","collection","item","from","_copyArray","values","merge","forEach","createFlags","untouched","touched","dirty","pristine","validated","pending","changed","passed","failed","debounce","wait","token","cancelled","args","_i","later","timeout","clearTimeout","setTimeout","warn","console","interpolate","template","RULES","normalizeSchema","schema","RuleContainer","rule","lazy","isLazy","isRequireRule","getRuleDefinition","ruleName","guardExtend","validator","Error","DEFAULT_CONFIG","defaultMessage","skipOptional","classes","bails","useConstraintAttrs","currentConfig","getConfig","setConfig","newConf","normalizeRules","acc","writable","enumerable","_$$isNormalized","reduce","prev","curr","preserveArrayParams","buildParams","parsedRule","parseRule","provided","ruleSchema","definedParams","lastDefinedParam_1","options","createLocator","slice","join","castFn","locator","crossTable","extractLocators","filter","shouldBail","skipIfEmpty","field","failedRules","regenerateMap","forceRequired","names","customMessages","_validate","msg","isInitial","shouldSkip","_d","_shouldSkip","_test","requireRules","isEmpty","isEmptyAndOptional","isRequired","normalizedValue","values_1","fillTargetValues","_field_","_value_","_rule_","_generateFieldError","ruleTargets","_getRuleTargets","_getUserTargets","userTargets","userMessage","_normalizeMessage","numTargets","ruleConfig","index","name_1","normalize","aggressive","eager","passive","modes","EVENT_BUS","localeChanged","DICTIONARY","Dictionary","locale","dictionary","container","format","_f","_g","fields","hasRule","isEvent","evt","Event","srcElement","normalizeEventValue","files","_vModifiers","number","valueAsNumber","trimmedValue","isTextInput","vnode","elm","tag","findModel","nonStandardVNodeData","d","findValue","config","findModelConfig","prop","componentOptions","propsData","propsDataWithValue","extractChildren","children","findInputNode","candidate","node","Ctor","mergeVNodeListeners","eventName","handler","fns","invoker","addNativeNodeListener","addComponentNodeListener","listeners","addVNodeListener","getInputEventName","event_1","event","modifiers","isHTMLNode","resolveTextualRules","pattern","maxlength","max","minlength","min","min_value","Number","max_value","resolveRules","htmlTags","normalizeChildren","context","slotProps","$scopedSlots","$slots","shouldValidate","ctx","_ignoreImmediate","immediate","normalizedEvents","_needsValidation","initialized","createValidationCtx","reset","onRenderUpdate","vm","initialValue","validateNow","triggerThreadSafeValidation","validateSilent","$once","computeModeSetting","compute","pendingPromise","_pendingValidation","applyResult","createCommonHandlers","$veeOnInput","syncValue","setFlags","onInput","$veeOnBlur","onBlur","onValidate","$veeHandler","$veeDebounce","$nextTick","_pendingReset","addListeners","_inputEventName","PROVIDER_COUNTER","fieldName","defaultValues","isActive","inject","$_veeObserver","$vnode","createObserver","vid","Function","Boolean","slim","disabled","watch","deep","oldVal","fieldDeps","_this","normalizedRules","deps","dep","depName","watchCrossFieldDep","_resolvedRules","some","computeClassObj","onLocaleChanged","_regenerateMap","errors_1","failedRules_1","$on","$off","h","registerField","resolved","beforeDestroy","unobserve","activated","deactivated","flag","createLookup","setErrors","updateRenderingContextRefs","_loop_1","className","cls","providers","refs","reduced","extractId","providedId","observe","withHooks","_veeWatchers","$watch","FLAGS_STRATEGIES","OBSERVER_COUNTER","data$1","createObserverFlags","observers","provideSelf","provide","register","onChange","computeObserverState","unregister","prepareSlotProps","$listeners","subscriber","kind","o","splice","provider","$delete","silent","results","all","obs","handleSubmit","cb","isValid","errorArr","observer","passes","vms","method"],"sourceRoot":""}