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z,aAAeA,EAElB1Z,EAAG/E,KAAO,EAEd,EACAuL,OAAQ,SAAUxG,EAAIW,EAASC,GAC3BZ,EAAG0G,oBAAoB,QAAS1G,EAAG0Z,aACvC,G","sources":["webpack:///./Onlia/Scripts/onlia/forms/components/Slider.js","webpack:///./Onlia/Scripts/onlia/forms/components/captcha-check.js","webpack:///./Onlia/Scripts/onlia/forms/components/customer-feedback-form.js","webpack:///./Onlia/Scripts/onlia/forms/components/datepicker.js","webpack:///./Onlia/Scripts/onlia/forms/components/email-subscription.js","webpack:///./Onlia/Scripts/onlia/forms/components/field-error-message.js","webpack:///./Onlia/Scripts/onlia/forms/components/file-input.js","webpack:///./Onlia/Scripts/onlia/forms/components/generic-form.js","webpack:///./Onlia/Scripts/onlia/forms/components/month-year-input.js","webpack:///./Onlia/Scripts/onlia/forms/components/report-fraud.js","webpack:///./Onlia/Scripts/onlia/forms/components/savings-calculator.js","webpack:///./Onlia/Scripts/onlia/forms/components/slider-config.js","webpack:///./Onlia/Scripts/onlia/forms/components/time-input.js","webpack:///./Onlia/Scripts/onlia/forms/directives/add-aria-label.js","webpack:///./Onlia/Scripts/onlia/forms/directives/datalist-form-field-add-aria-label.js","webpack:///./Onlia/Scripts/onlia/forms/directives/decode-input.js","webpack:///./Onlia/Scripts/onlia/forms/directives/default-value.js","webpack:///./Onlia/Scripts/onlia/forms/directives/dropdown-init.js","webpack:///./Onlia/Scripts/onlia/forms/directives/dynamic-list.js","webpack:///./Onlia/Scripts/onlia/forms/directives/field-validation-reorder.js","webpack:///./Onlia/Scripts/onlia/forms/directives/format-currency.js","webpack:///./Onlia/Scripts/onlia/forms/directives/format-date.js","webpack:///./Onlia/Scripts/onlia/forms/directives/group-form-add-aria-label.js","webpack:///./Onlia/Scripts/onlia/forms/directives/init.js","webpack:///./Onlia/Scripts/onlia/forms/directives/input-mask.js","webpack:///./Onlia/Scripts/onlia/forms/directives/radio-button-outline-toggle.js","webpack:///./Onlia/Scripts/onlia/forms/directives/switch-outline.js","webpack:///./Onlia/Scripts/onlia/forms/directives/toggle-password.js","webpack:///./Onlia/Scripts/onlia/forms/directives/track-input-focus.js","webpack:///./Onlia/Scripts/onlia/forms/index.js","webpack:///./Onlia/Scripts/onlia/forms/mixins/api.js","webpack:///./Onlia/Scripts/onlia/forms/utils/RadioOutlineController.js","webpack:///./Onlia/Scripts/onlia/forms/utils/SwitchOutlineController.js","webpack:///./Onlia/Scripts/onlia/forms/utils/async-parallel-tasks.js","webpack:///./Onlia/Scripts/onlia/forms/utils/form-utils.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/displayif-container.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/displayif.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/val-agedependentdate.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/val-compulsory.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/val-compulsoryif.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/val-daterangeiso.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/val-fieldoffsetdate.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/val-number.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/val-range.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/val-regex.js","webpack:///./Onlia/Scripts/onlia/forms/validation/directives/val-zipcode.js","webpack:///./Onlia/Scripts/onlia/forms/validation/plugins/conditionalif.js","webpack:///./Onlia/Scripts/onlia/login/mixins/api.js","webpack:///./Onlia/Scripts/onlia/login/components/login.js","webpack:///./Onlia/Scripts/onlia/login/components/assistance.js","webpack:///./Onlia/Scripts/onlia/login/components/new-login-email.js","webpack:///./Onlia/Scripts/onlia/login/components/change-password.js","webpack:///./Onlia/Scripts/onlia/login/components/changed-password.js","webpack:///./Onlia/Scripts/onlia/login/components/new-login-email-recovery-email.js","webpack:///./Onlia/Scripts/onlia/login/components/new-login-email-requested.js","webpack:///./Onlia/Scripts/onlia/login/components/new-password.js","webpack:///./Onlia/Scripts/onlia/login/components/new-password-via-email.js","webpack:///./Onlia/Scripts/onlia/login/components/new-password-unblocked-account.js","webpack:///./Onlia/Scripts/onlia/login/components/deblock-account.js","webpack:///./Onlia/Scripts/onlia/login/components/login-manager.js","webpack:///./Onlia/Scripts/onlia/login/directives/data-ui-sref.js"],"sourcesContent":["import Vue from \"vue\";\r\n\r\nVue.component(\"slider\", {\r\n props: {\r\n sliderMin: String,\r\n sliderMax: String,\r\n sliderInterval: String,\r\n storeName: String, \r\n sliderFrontendModel: String,\r\n sliderTooltipLabel: String,\r\n sliderChoices: String,\r\n disabled: String,\r\n api: Object,\r\n repeatableScope: Object,\r\n repeatableIndex: Number\r\n },\r\n\r\n computed: {\r\n Model() {\r\n return this.$store.state[this.storeName].model;\r\n }\r\n },\r\n\r\n data() {\r\n return {\r\n slider: {\r\n tooltip: \"always\",\r\n tooltip_placement: \"top\", \r\n dotSize: 24,\r\n width: 300,\r\n height: 9,\r\n silent: true,\r\n disabled: this.disabled ? JSON.parse(this.disabled) : false\r\n },\r\n tooltips: {}\r\n };\r\n },\r\n\r\n mounted() {\r\n const vm = this;\r\n\r\n if (vm.sliderChoices) {\r\n vm.initializeChoiceSlider(JSON.parse(vm.sliderChoices));\r\n } else {\r\n vm.initializeRangeSlider();\r\n }\r\n\r\n vm.$root.$on(\"DynamicListOptionsAvailable\", function (e) {\r\n vm.initializeChoiceSlider(e.detail);\r\n });\r\n\r\n vm.$root.$on(`refreshSlider-${vm.sliderFrontendModel}`, function (e) {\r\n vm.initializeRangeSlider(e.detail);\r\n });\r\n },\r\n\r\n methods: {\r\n initializeRangeSlider(options) {\r\n const vm = this;\r\n const min = options && options.min ? options.min.toString() : vm.sliderMin.toString();\r\n const max = options && options.max ? options.max.toString() : vm.sliderMax.toString();\r\n const interval = options && options.interval ? options.interval.toString() : vm.sliderInterval.toString();\r\n\r\n let sliderConfig = {\r\n min: +min,\r\n max: +max,\r\n marks: {},\r\n interval: +interval, \r\n tooltipFormatter: function (val) {\r\n return val !== null ? vm.Model.CurrentCurrency + val.toLocaleString(\"en-US\", { minimumFractionDigits: 2 }) : \"\";\r\n }\r\n };\r\n sliderConfig.marks[min] = vm.Model.CurrentCurrency + min.toLocaleString(\"en-US\", { minimumFractionDigits: 2 });\r\n sliderConfig.marks[max] = vm.Model.CurrentCurrency + max.toLocaleString(\"en-US\", { minimumFractionDigits: 2 });\r\n sliderConfig = Object.assign({}, sliderConfig, options);\r\n\r\n vm.slider = Object.assign({}, vm.slider, sliderConfig);\r\n },\r\n\r\n initializeChoiceSlider(choices) {\r\n const vm = this;\r\n let data = [];\r\n let labels = {};\r\n\r\n for (var idx = 0; idx < choices.length; idx++) {\r\n const choice = choices[idx];\r\n\r\n data.push(choice.v);\r\n labels[choice.v] = idx === 0 || idx === choices.length - 1 ? choice.t : \"\";\r\n Vue.set(vm.tooltips, choice.v, choice.t);\r\n }\r\n\r\n const config = {\r\n data: data,\r\n tooltipFormatter: function (val) {\r\n return val !== null ? vm.Model.CurrentCurrency + val.toLocaleString(\"en-US\", { minimumFractionDigits: 0 }) : \"\";\r\n },\r\n marks: val => {\r\n return { label: labels[val] };\r\n }\r\n };\r\n\r\n vm.slider = Object.assign({}, vm.slider, config);\r\n }\r\n },\r\n\r\n destroyed() {\r\n this.$root.$off(\"DynamicListOptionsAvailable\");\r\n this.$root.$off(`refreshSlider-${this.sliderFrontendModel}`);\r\n }\r\n});\r\n","import Vue from 'vue';\r\nimport axios from 'axios';\r\nimport api from '../mixins/api';\r\n\r\nVue.component('captcha-check', {\r\n mixins: [ api ],\r\n\r\n inject: [ '$validator' ],\r\n\r\n props: {\r\n model: Object,\r\n siteKey: String,\r\n captchaElement: String,\r\n selfValidate: Boolean\r\n },\r\n\r\n data() {\r\n return {\r\n Model: this.model,\r\n isCaptchaLoaded: false,\r\n size: 'normal'\r\n };\r\n },\r\n\r\n created() {\r\n this.$eventBus.$on('set-captcha-size', this.setCaptchaSize);\r\n },\r\n mounted() {\r\n this.initCaptcha();\r\n },\r\n beforeDestroy() {\r\n this.$eventBus.$off('set-captcha-size', this.setCaptchaSize);\r\n },\r\n\r\n methods: {\r\n initCaptcha() {\r\n const vm = this;\r\n const intervalTimeout = 500;\r\n const intervalId = setInterval(() => {\r\n if (window.grecaptcha && window.grecaptcha.render) {\r\n clearInterval(intervalId);\r\n\r\n window.grecaptcha.render(vm.captchaElement, {\r\n sitekey: vm.siteKey\r\n });\r\n\r\n vm.isCaptchaLoaded = true;\r\n\r\n vm.setCallbacks();\r\n }\r\n }, intervalTimeout);\r\n },\r\n\r\n setCallbacks() {\r\n const vm = this;\r\n if (vm.selfValidate) {\r\n window.recaptchaCallback = function (captchaValue) {\r\n axios.request({\r\n url: vm.api.validateCaptcha,\r\n method: 'POST',\r\n data: '\"' + captchaValue + '\"',\r\n headers: { 'Content-Type': 'application/json', skipLoading: 'true' }\r\n })\r\n .then((response) => {\r\n if (response.data) {\r\n vm.Model.IsCaptchaValid = response.data;\r\n //vm.Model.CaptchaValue = captchaValue;\r\n }\r\n else {\r\n window.grecaptcha.reset();\r\n }\r\n });\r\n };\r\n }\r\n\r\n window.recaptchaExpiredCallback = function () {\r\n vm.Model.IsCaptchaValid = false;\r\n };\r\n },\r\n \r\n setCaptchaSize(size) {\r\n this.size = size;\r\n }\r\n }\r\n});\r\n","import Vue from 'vue';\r\nimport axios from 'axios';\r\nimport api from '../mixins/api';\r\n\r\nVue.component('customer-feedback-form', {\r\n mixins: [api],\r\n inject: ['$validator'],\r\n\r\n props: {\r\n model: Object,\r\n formId: String\r\n },\r\n\r\n data() {\r\n return {\r\n stylesReady: false,\r\n sendingInProgress: false,\r\n Model: this.model\r\n };\r\n },\r\n\r\n mounted() {\r\n this.setCallbacks();\r\n },\r\n\r\n beforeCreate() {\r\n import(/* webpackChunkName: 'styles.forms' */ '@Styles/forms')\r\n .then(() => {\r\n this.stylesReady = true;\r\n });\r\n },\r\n\r\n methods: {\r\n setCallbacks() {\r\n const vm = this;\r\n window.recaptchaCallback = function (captchaValue) {\r\n vm.Model.CaptchaValue = captchaValue;\r\n vm.Model.IsCaptchaValid = true;\r\n };\r\n },\r\n\r\n submitForm() {\r\n const vm = this;\r\n vm.$validator.validate().then((isFormValid) => {\r\n\r\n if (isFormValid) {\r\n vm.sendingInProgress = true;\r\n\r\n const formParams = vm.Model;\r\n formParams.FormID = vm.formId;\r\n\r\n axios.post(vm.api.sendComplimentsComplaintsForm, formParams)\r\n .then(({ data }) => {\r\n if (data.IsCaptchaValid !== undefined && !data.IsCaptchaValid) {\r\n vm.Model.IsCaptchaValid = data.IsCaptchaValid;\r\n vm.resetCaptcha();\r\n }\r\n\r\n if (data.ConfirmationPage) {\r\n window.location = data.ConfirmationPage;\r\n }\r\n\r\n vm.sendingInProgress = false;\r\n })\r\n .catch(() => {\r\n vm.sendingInProgress = false;\r\n vm.resetCaptcha();\r\n });\r\n }\r\n else {\r\n Vue.prototype.handleInvalidForm(vm);\r\n }\r\n });\r\n },\r\n\r\n resetCaptcha() {\r\n (window.grecaptcha && window.grecaptcha.reset());\r\n\r\n this.Model.CaptchaValue = null;\r\n this.Model.IsCaptchaValid = null;\r\n\r\n this.$validator.reset();\r\n }\r\n }\r\n});\r\n","import Vue from 'vue';\r\nimport startOfDay from 'date-fns/startOfDay';\r\nimport endOfDay from 'date-fns/endOfDay';\r\nimport parseISO from 'date-fns/parseISO';\r\nimport callVueInstanceMethod from '@Shared/utils/call-vue-instance-method';\r\n\r\nVue.component('datepicker', {\r\n inject: ['$validator'],\r\n\r\n components: {\r\n flatPickr: () => import('vue-flatpickr-component')\r\n },\r\n\r\n props: {\r\n dateFormat: String,\r\n defaultDate: String,\r\n dependentDateField: String,\r\n dependentDateOffsetDays: String,\r\n bindingName: String,\r\n minDate: String,\r\n maxDate: String,\r\n storeName: String,\r\n showDatePicker: Boolean,\r\n repeatableScope: Object,\r\n repeatableIndex: Number,\r\n inputMask: String\r\n },\r\n\r\n data() {\r\n const vm = this;\r\n // const isFinishedLoading = false; //when deafault-value darective is present it triggers onChange() when updated model and eval('vm.$parent.'... executes if present. This flag flixes that initial callback\r\n\r\n return {\r\n isFinishedLoading: false,\r\n stylesReady: false,\r\n datepickerIsOpen: false,\r\n config: {\r\n dateFormat: 'Y-m-dTH:i:S',\r\n altInput: true,\r\n allowInput: !this.$attrs['open-on-click'],\r\n altFormat: 'm-d-Y',\r\n allowInvalidPreload: true,\r\n defaultDate: this.defaultDate,\r\n clickOpens: !!this.$attrs['open-on-click'],\r\n wrap: true,\r\n disableMobile: true,\r\n\r\n onReady() {\r\n const datepicker = this;\r\n datepicker._input.addEventListener('blur', (event) => {\r\n vm.trySetDate(this);\r\n }, true);\r\n datepicker._input.addEventListener('keydown', (event) => {\r\n if (event.keyCode === 13) {\r\n event.preventDefault();\r\n const value = this._input.value;\r\n vm.trySetDate(this, value);\r\n }\r\n }, false);\r\n setTimeout(() => {\r\n vm.isFinishedLoading = true;\r\n });\r\n datepicker._input.addEventListener('focus', (event) => {\r\n datepicker.open();\r\n datepicker.monthNav.tabindex = \"1\";\r\n datepicker.monthNav.focus();\r\n })\r\n //DEV-4490 - calendar is dismissed when loading modal appears, after hit enter\r\n var dateInputSelector = document.querySelector(\".date-time-field .flatpickr-input + .form-control.input\");\r\n var calendarDiv = document.querySelector(\".flatpickr-calendar\");\r\n var loadingModalSelector = document.querySelector(\".loader-style\");\r\n dateInputSelector.addEventListener(\"keydown\", function(event) {\r\n if(event.key === \"Enter\"){\r\n setTimeout(function() {\r\n if (loadingModalSelector.style.display != 'none') {\r\n calendarDiv.classList.remove(\"open\");\r\n }\r\n }, 100);\r\n }\r\n });\r\n\r\n },\r\n onOpen() {\r\n //set enabled date range ONLY when datepicker popup has opened\r\n if (vm.minDate && vm.maxDate) {\r\n this.set('enable', [{\r\n from: startOfDay(parseISO(vm.minDate)),\r\n to: endOfDay(parseISO(vm.maxDate))\r\n }]);\r\n vm.datepickerIsOpen = true;\r\n }\r\n },\r\n\r\n onClose() {\r\n //remove enabled date range when datepicker popup has closed\r\n if (vm.minDate && vm.maxDate) {\r\n const value = this._input.value;\r\n this.set('enable', []);\r\n //vm.datepickerIsOpen = false;\r\n this._input.value = value;\r\n }\r\n vm.trySetDate(this);\r\n },\r\n onChange: this.onChange\r\n // onChange(selectedDates, dateStr, instance) {\r\n // const Model = vm.Model;\r\n // if (!vm.$attrs.onchangecallback) return;\r\n // if (isFinishedLoading && dateStr !== Model[vm.bindingName]) {\r\n // isFinishedLoading = false;\r\n //\r\n // setTimeout(() => {\r\n // vm.callParentMethod();\r\n // isFinishedLoading = true;\r\n // });\r\n // }\r\n // }\r\n //onValueUpdate() {\r\n // setTimeout(function () {\r\n // vm.$validator.validate(vm.bindingName).then(res => {\r\n // let field = vm.$validator.fields.find({\r\n // name: vm.bindingName\r\n // });\r\n // $(field.el).siblings().first().attr(\"aria-invalid\", !field.flags.valid && field.flags.validated);\r\n // });\r\n // });\r\n //},\r\n }\r\n };\r\n },\r\n\r\n computed: {\r\n Model() {\r\n return this.$store.state[this.storeName].model;\r\n }\r\n },\r\n\r\n beforeCreate() {\r\n import(/* webpackChunkName: 'styles.datepicker' */ '@Styles/scss/components/general/datepicker/index')\r\n .then(() => {\r\n this.stylesReady = true;\r\n });\r\n },\r\n\r\n mounted() {\r\n const format = this.processFormat(this.dateFormat);\r\n Vue.set(this.config, 'altFormat', format);\r\n const inputElements = this.$el.getElementsByTagName('input');\r\n if (inputElements.length > 0) {\r\n inputElements[1].type = 'tel';\r\n }\r\n },\r\n\r\n methods: {\r\n processFormat(format) {\r\n return format.replace(/[^\\[a-zA-Z]\\s]|(.)(?=\\1)/gi, '').replace('j', 'Y');\r\n },\r\n\r\n isDateFormatted(datepicker, date, format) {\r\n const parsedDate = datepicker.parseDate(date, format);\r\n const formattedDate = datepicker.formatDate(parsedDate, format);\r\n return date === formattedDate;\r\n },\r\n\r\n trySetDate(datepicker, valueOverride) {\r\n const vm = this;\r\n let value = datepicker._input.value;\r\n\r\n if (!valueOverride) {\r\n if (value.length > 3) {//when user enter year (for ex. 1987), input mask auto-fill the date to 1987-01-01\r\n if (value.length === this.inputMask.replace(/[']+/g, '').length) {\r\n value = value + 'T12:00:00';\r\n datepicker.setDate(value, true);\r\n }\r\n else {\r\n datepicker.setDate(datepicker._input.value, true);\r\n }\r\n }\r\n else {\r\n datepicker.setDate(null, true);\r\n }\r\n }\r\n else {\r\n datepicker.setDate(valueOverride, true);\r\n }\r\n\r\n if (vm.datepickerIsOpen) {\r\n datepicker._input.value = value;\r\n vm.datepickerIsOpen = false;\r\n }\r\n\r\n const fieldErrors = vm.$validator.errors.items.find(item => item.field === vm.bindingName);\r\n if (fieldErrors) { // in case of errors\r\n vm.$nextTick(() => {\r\n vm.$validator.validate(vm.bindingName);\r\n });\r\n }\r\n },\r\n\r\n callParentMethod() {\r\n callVueInstanceMethod(`this.$parent.${this.$attrs.onchangecallback}`, this, this.Model);\r\n this.isFinishedLoading = true;\r\n },\r\n onChange(selectedDates, dateStr) {\r\n if (!this.$attrs.onchangecallback) return;\r\n\r\n if (this.isFinishedLoading && dateStr && dateStr !== this.Model[this.bindingName]) {\r\n this.isFinishedLoading = false;\r\n setTimeout(this.callParentMethod);\r\n }\r\n }\r\n }\r\n});\r\n","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport api from \"../mixins/api\";\r\n\r\nVue.component('email-subscription', {\r\n mixins: [api],\r\n inject: [\"$validator\"],\r\n\r\n props: {\r\n model: Object\r\n },\r\n\r\n data() {\r\n return {\r\n Model: {},\r\n emailStatusLoading: false,\r\n emailStatusSuccess: false,\r\n emailStatusError: false,\r\n showSuccessPopup: false,\r\n selectedItems: []\r\n };\r\n },\r\n \r\n created() {\r\n this.Model = this.model;\r\n },\r\n\r\n mounted() {\r\n this.setCallbacks();\r\n const vm = this;\r\n \r\n let checkboxes = document.querySelectorAll('.m-emailMeForm__checkbox-items label');\r\n checkboxes.forEach(function(checkboxLabel) {\r\n const checkboxInput = checkboxLabel.querySelector('input[type=\"checkbox\"]');\r\n checkboxLabel.addEventListener('click', function(event) {\r\n event.preventDefault();\r\n checkboxInput.checked = !checkboxInput.checked; \r\n });\r\n });\r\n\r\n const ulElement = document.querySelector('.checkbox-list');\r\n \r\n ulElement.addEventListener('click', function () {\r\n var checkboxes = ulElement.querySelectorAll(\"input\");\r\n vm.selectedItems = [];\r\n checkboxes.forEach(function(checkbox) {\r\n if (checkbox.checked) {\r\n vm.selectedItems.push(checkbox.getAttribute(\"value\"));\r\n }\r\n });\r\n });\r\n },\r\n\r\n methods: {\r\n subscribeEmail() {\r\n const vm = this;\r\n\r\n vm.$validator.validate().then(function (isFormValid) {\r\n vm.emailStatusSuccess = false;\r\n vm.emailStatusError = false;\r\n vm.emailStatusLoading = true;\r\n\r\n if (isFormValid) {\r\n vm.Model.InsuranceTypeList = vm.selectedItems.join(',');\r\n axios.post(vm.api.emailSubscribe, vm.Model)\r\n .then(result => {\r\n if (result.data) {\r\n vm.emailStatusSuccess = result.data;\r\n vm.emailStatusError = !result.data;\r\n vm.emailStatusLoading = false;\r\n vm.showSuccessPopup = true;\r\n\r\n }\r\n\r\n vm.resetCaptcha();\r\n })\r\n .catch(result => {\r\n vm.emailStatusSuccess = false;\r\n vm.emailStatusError = true;\r\n vm.emailStatusLoading = false;\r\n vm.showSuccessPopup = false;\r\n\r\n vm.resetCaptcha();\r\n });\r\n } else {\r\n Vue.prototype.handleInvalidForm(vm);\r\n\r\n vm.emailStatusLoading = false;\r\n }\r\n });\r\n },\r\n\r\n setCallbacks() {\r\n const vm = this;\r\n window.recaptchaCallback = function (captchaValue) {\r\n vm.Model.CaptchaValue = captchaValue;\r\n vm.Model.IsCaptchaValid = true;\r\n };\r\n },\r\n\r\n resetCaptcha() {\r\n window.grecaptcha && window.grecaptcha.reset();\r\n\r\n this.Model.CaptchaValue = null;\r\n this.Model.IsCaptchaValid = null;\r\n\r\n this.$validator.reset();\r\n },\r\n \r\n dismissPopup() {\r\n this.showSuccessPopup = false;\r\n this.resetForm();\r\n },\r\n\r\n resetForm() {\r\n this.emailStatusSuccess = false;\r\n this.emailStatusError = false;\r\n },\r\n }\r\n})","import Vue from \"vue\";\r\nimport sharedUtils from \"../../shared/mixins/shared-utils\";\r\n\r\nVue.component('field-error-message', {\r\n inject: [\"$validator\"],\r\n\r\n props: {\r\n fieldName: String,\r\n fieldLabel: String\r\n },\r\n\r\n computed: {\r\n errorMessage: function () {\r\n return this.errors && this.errors.first(this.fieldName) || \"\";\r\n }\r\n },\r\n\r\n render(h) {\r\n if (this.errorMessage) {\r\n return h('span', {\r\n class: \"field-validation-error\",\r\n domProps: { innerHTML: this.errorMessage }\r\n });\r\n }\r\n },\r\n\r\n watch: {\r\n errorMessage: function (value) {\r\n if (value && window.ir.vpUrl) {\r\n const errorMsgDecoded = sharedUtils.methods.decodeHTML(this.errorMessage);\r\n if (errorMsgDecoded) {\r\n const logMessage = (this.fieldLabel || this.fieldName) + \" - \" + errorMsgDecoded.replace(/(<([^>]+)>)/gi, \"\");\r\n //console.log(logMessage);\r\n\r\n let dataLayer = window.dataLayer || [];\r\n dataLayer.push({\r\n \"event\": \"Error\",\r\n \"category\": \"Validation Error\",\r\n \"action\": window.ir.vpUrl,\r\n \"label\": logMessage\r\n });\r\n }\r\n }\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\n\r\nVue.component(\"file-input\", {\r\n props: {\r\n storeName: String,\r\n bindingName: String,\r\n allowedFiletypes: {\r\n type: String,\r\n required: false\r\n },\r\n filetypeErrorMesage: {\r\n type: String,\r\n required: false\r\n },\r\n filesizeErrorMesage: {\r\n type: String,\r\n required: false\r\n },\r\n fileUploadErrorMessage: {\r\n type: String,\r\n required: false\r\n },\r\n beforeSubmitQueue: {\r\n type: Function,\r\n required: false\r\n },\r\n formApi: {\r\n type: Object,\r\n required: false\r\n }\r\n },\r\n\r\n inject: [\"$validator\"],\r\n\r\n created() {\r\n this.$validator.extend('size', {\r\n getMessage: field => this.filesizeErrorMesage,\r\n validate: function (files, ref) {\r\n var size = ref[0];\r\n\r\n if (isNaN(size)) {\r\n return false;\r\n }\r\n var nSize = Number(size) * 1024;\r\n return files.every(function (file) { return file.size <= nSize; });\r\n }\r\n });\r\n\r\n this.$validator.extend('ext', {\r\n getMessage: field => this.filetypeErrorMesage,\r\n validate: function (files, extensions) {\r\n var regex = new RegExp((\".(\" + (extensions.join('|')) + \")$\"), 'i');\r\n return files.every(function (file) { return regex.test(file.name); });\r\n }\r\n });\r\n\r\n },\r\n\r\n computed: {\r\n Model() {\r\n return this.$store.state[this.storeName].model;\r\n }\r\n },\r\n\r\n data() {\r\n const vm = this;\r\n\r\n return {\r\n files: [],\r\n img: {\r\n binary: \"\"\r\n }\r\n };\r\n },\r\n\r\n methods: {\r\n b64EncodeUnicode: function (str) {\r\n // first we use encodeURIComponent to get percent-encoded UTF-8,\r\n // then we convert the percent encodings into raw bytes which\r\n // can be fed into btoa.\r\n return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,\r\n function toSolidBytes(match, p1) {\r\n return String.fromCharCode('0x' + p1);\r\n }));\r\n },\r\n handleFileUpload: function () {\r\n this.files = this.$refs.file.files;\r\n if (this.isImage(this.files[0]))\r\n this.getImage(this.files[0]);\r\n this.uploadReady();\r\n },\r\n uploadReady: function () {\r\n if (this.$validator.validate(this.bindingName))\r\n for (let i = 0; i < this.files.length; i++) {\r\n let file = this.files[i];\r\n let attachment = new File([file], file.name, { type: file.type });\r\n Vue.set(this.Model.Data, \"Attachment\", attachment);\r\n this.beforeSubmitQueue((callback) => {\r\n this.$validator.validate(this.bindingName);\r\n this.uploadFile(file, done => done, callback);\r\n });\r\n }\r\n },\r\n forceFocus: function () {\r\n console.log(\"force focus\");\r\n setTimeout( () =>{\r\n this.$validator.errors.remove(this.bindingName);},100);\r\n },\r\n getImage: function (file) {\r\n var reader = new FileReader();\r\n var imageRes = null;\r\n var readFile = (event)=> {\r\n imageRes = event.target.result;\r\n this.img = imageRes;\r\n };\r\n reader.addEventListener('load', readFile);\r\n reader.readAsDataURL(file);\r\n return imageRes;\r\n },\r\n isImage: function (file) {\r\n var extensions = ['png', 'jpg', 'jpeg', 'gif', 'tiff'];\r\n var regex = new RegExp((\".(\" + (extensions.join('|')) + \")$\"), 'i');\r\n return regex.test(file.name);\r\n },\r\n deleteFile: function (files, index) {\r\n const dt = new DataTransfer();\r\n var fileArray = Array.isArray(files) ? files : Array.from(files);\r\n fileArray.splice(index, 1);\r\n this.files = fileArray;\r\n this.files.forEach(itm => dt.items.add(itm));\r\n this.$refs.file.files = dt.files;\r\n this.uploadReady();\r\n },\r\n uploadFile: function (file, done, callback) {\r\n const vm = this;\r\n if (vm.Model.Data.Attachment === null) return;\r\n\r\n let formData = new FormData();\r\n formData.append('file', vm.Model.Data.Attachment);\r\n\r\n axios.post(vm.formApi.uploadFile, formData, {\r\n headers: {\r\n 'Content-Type': 'multipart/form-data'\r\n }\r\n }).then(function (response) {\r\n Vue.set(vm.Model.Data, \"Attachment\", response.data[0]);\r\n\r\n if (done) done();\r\n if (callback) callback();\r\n\r\n }).catch(function (error) {\r\n if (done) done(error);\r\n if (callback) callback(error);\r\n this.addError(this.fileUploadErrorMessage);\r\n });\r\n },\r\n\r\n validateInput: function () {\r\n return this.$validator.validate(this.bindingName);\r\n }\r\n\r\n }\r\n});\r\n","import Vue from 'vue';\r\nimport axios from 'axios';\r\nimport { asyncParallelTasks } from '../utils/async-parallel-tasks';\r\nimport { IS_DEV } from '@Shared/settings';\r\n\r\nVue.component('generic-form', {\r\n props: {\r\n model: Object\r\n },\r\n\r\n data() {\r\n return {\r\n Model: {},\r\n onBeforeSubmitQueue: [],\r\n onAfterSubmitQueue: []\r\n };\r\n },\r\n\r\n created() {\r\n this.storeName = this.$options._componentTag;\r\n\r\n this.$store.registerModule(this.storeName, {\r\n namespaced: true,\r\n\r\n state: {\r\n model: this.model\r\n },\r\n\r\n mutations: {\r\n mutate(state, payload) {\r\n state.model = payload;\r\n }\r\n }\r\n });\r\n\r\n this.Model = this.$store.state[this.storeName].model;\r\n },\r\n methods: {\r\n pushOnBeforeSubmitQueue: function (callback) {\r\n this.onBeforeSubmitQueue.push(callback);\r\n },\r\n\r\n pushOnAfterSubmitQueue: function (callback) {\r\n this.onAfterSubmitQueue.push(callback);\r\n },\r\n\r\n async submit(event) {\r\n try {\r\n const { fileInput } = this.$refs;\r\n\r\n const isFormValid = await this.$validator.validate();\r\n\r\n const isValidFile = fileInput ? fileInput.validateInput() : true;\r\n\r\n if (isFormValid && isValidFile) {\r\n const hasBeforeQueueSucceeded = await asyncParallelTasks(this.onBeforeSubmitQueue);\r\n\r\n if (hasBeforeQueueSucceeded) {\r\n const data = Array.isArray(this.Model.Data) ? [ ...this.Model.Data] : { ...this.Model.Data };\r\n\r\n // for form page only file name is sent\r\n for (const prop in data) {\r\n if (data[prop] && typeof data[prop] === 'object' && data[prop].hasOwnProperty('LocationPath')) {\r\n data[prop] = data[prop].Name;\r\n }\r\n }\r\n\r\n await axios.post('/api/ir/insurancerightform/submit/', data);\r\n\r\n const navigationUrl = event.target.attributes['data-navigation'].value;\r\n\r\n if (navigationUrl) {\r\n window.location.href = navigationUrl;\r\n }\r\n }\r\n }\r\n }\r\n catch (error) {\r\n (IS_DEV && console.error('submit error:', error));\r\n }\r\n }\r\n }\r\n});\r\n","import Vue from 'vue';\r\nimport endOfToday from 'date-fns/endOfToday';\r\nimport getYear from 'date-fns/getYear';\r\nimport getMonth from 'date-fns/getMonth';\r\nimport getDate from 'date-fns/getDate';\r\nimport parseISO from 'date-fns/parseISO';\r\nimport isValid from 'date-fns/isValid';\r\nimport enCA from 'date-fns/locale/en-CA';\r\nimport formatDate from 'date-fns/format';\r\n\r\nVue.component('month-year-input', {\r\n props: {\r\n value: String,\r\n yearsCount:\r\n {\r\n type: Number,\r\n default: 10\r\n },\r\n yearIncrement: {\r\n type: Number,\r\n default: -1\r\n },\r\n isExclusiveDateCheck: Boolean,\r\n monthYearSeparator: String,\r\n disabled: Boolean\r\n },\r\n\r\n data() {\r\n let currentYear = getYear(endOfToday());\r\n let currentMonth = 0;\r\n\r\n const years = Array.from(Array(this.yearsCount + 1)).map(() => {\r\n const year = {\r\n v: this.pad(currentYear, 2),\r\n t: this.pad(currentYear, 2)\r\n };\r\n\r\n currentYear = parseInt(currentYear) + this.yearIncrement;\r\n\r\n return year;\r\n });\r\n\r\n const months = Array.from(Array(12)).map(() => {\r\n const month = {\r\n v: currentMonth,\r\n t: enCA.localize.month(currentMonth)\r\n };\r\n\r\n currentMonth++;\r\n\r\n return month;\r\n });\r\n\r\n return {\r\n months: months,\r\n years: years,\r\n monthYearInput: {\r\n month: '',\r\n year: ''\r\n },\r\n inputName: this.$attrs['data-vv-name'] || this.$attrs.name || 'monthYearInput',\r\n };\r\n },\r\n\r\n computed: {\r\n modelValue: {\r\n // getter\r\n get: function () {\r\n if (this.monthYearInput.month !== '' && this.monthYearInput.year !== '') {\r\n const daysInSelectedMonth = this.daysInMonth(this.monthYearInput.month, this.monthYearInput.year);\r\n const todayDay = getDate(new Date());\r\n let genDate = null;\r\n if (this.isExclusiveDateCheck) {\r\n genDate = new Date(this.monthYearInput.year, this.monthYearInput.month, '01');\r\n }\r\n else if (daysInSelectedMonth < todayDay) {\r\n genDate = new Date(this.monthYearInput.year, this.monthYearInput.month, daysInSelectedMonth);\r\n }\r\n else {\r\n genDate = new Date(this.monthYearInput.year, this.monthYearInput.month, todayDay);\r\n }\r\n genDate = formatDate(genDate, 'yyyy-MM-dd')\r\n this.emitValue(genDate);\r\n return genDate;\r\n } \r\n this.emitValue('');\r\n return '';\r\n },\r\n // setter\r\n set: function (newValue) {\r\n let newDate = parseISO(newValue);\r\n this.monthYearInput.month = getMonth(newDate);\r\n this.monthYearInput.year = getYear(newDate); \r\n newDate = formatDate(newDate, 'yyyy-MM-dd')\r\n this.emitValue(newDate);\r\n return newDate;\r\n }\r\n }\r\n },\r\n\r\n watch: {\r\n \"value\": function (newVal, oldVal) {\r\n if (newVal && this.modelValue !== newVal) {\r\n this.modelValue = newVal;\r\n }\r\n }\r\n },\r\n\r\n mounted() {\r\n const vm = this;\r\n if (vm.value) {\r\n vm.modelValue = vm.value;\r\n }\r\n vm.$root.$on('validate-all', () => {\r\n vm.$validator.validateAll();\r\n vm.$root.$emit('child-validated', vm.$validator.errors);\r\n });\r\n },\r\n\r\n methods: {\r\n daysInMonth(month, year) {\r\n // Here January is 0 based\r\n // Day 0 is the last day in the previous month\r\n return new Date(year, month + 1, 0).getDate();\r\n },\r\n emitValue(value) {\r\n this.$emit('input', value);\r\n }\r\n }\r\n});\r\n","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport api from \"../mixins/api\";\r\n\r\nVue.component('report-fraud', {\r\n mixins: [api],\r\n inject: [\"$validator\"],\r\n\r\n props: {\r\n model: Object,\r\n formId: String\r\n },\r\n\r\n mounted() {\r\n this.setCallbacks();\r\n },\r\n\r\n data() {\r\n return {\r\n stylesReady: false,\r\n reportInProgress: false,\r\n Model: this.model\r\n };\r\n },\r\n\r\n beforeCreate() {\r\n import(/* webpackChunkName: 'styles.forms' */ \"@Styles/forms\")\r\n .then(() => {\r\n this.stylesReady = true;\r\n });\r\n },\r\n \r\n methods: {\r\n setCallbacks() {\r\n const vm = this;\r\n window.recaptchaCallback = function (captchaValue) {\r\n vm.Model.CaptchaValue = captchaValue;\r\n vm.Model.IsCaptchaValid = true;\r\n };\r\n },\r\n\r\n submitReport() {\r\n const vm = this;\r\n vm.$validator.validate().then(function (isFormValid) {\r\n\r\n if (isFormValid) {\r\n vm.reportInProgress = true;\r\n vm.Model.FormID = vm.formId;\r\n\r\n axios.post(vm.api.sendFraudReportMail, vm.Model)\r\n .then(result => {\r\n if (result.data) {\r\n if (result.data.IsCaptchaValid != undefined && !result.data.IsCaptchaValid) {\r\n vm.Model.IsCaptchaValid = result.data.IsCaptchaValid;\r\n window.grecaptcha && window.grecaptcha.reset();\r\n }\r\n\r\n if (result.data.ConfirmationPage) {\r\n window.location = result.data.ConfirmationPage;\r\n }\r\n }\r\n\r\n vm.reportInProgress = false;\r\n })\r\n .catch(result => {\r\n vm.reportInProgress = false;\r\n });\r\n } else {\r\n Vue.prototype.handleInvalidForm(vm);\r\n }\r\n });\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport api from \"../mixins/api\";\r\n\r\nVue.component('savings-calculator', {\r\n mixins: [api],\r\n inject: [\"$validator\"],\r\n\r\n props: {\r\n model: Object,\r\n discountsTableModalId: String,\r\n discountsTableModalUrl: String\r\n },\r\n\r\n data() {\r\n return {\r\n stylesReady: false,\r\n Model: this.model,\r\n IsEmpty: true,\r\n NoDiscount: false,\r\n NoClaimsMade: '',\r\n OneClaim: '',\r\n TwoClaim: '',\r\n OnliaClaimsFreeYears: '',\r\n showDiscountsTableModal: false,\r\n displayOptions: {}\r\n }\r\n },\r\n\r\n beforeCreate() {\r\n import(/* webpackChunkName: 'styles.forms' */ \"@Styles/forms\")\r\n .then(() => {\r\n this.stylesReady = true;\r\n });\r\n },\r\n\r\n computed: {\r\n isFormValid: function () {\r\n const allFieldsValidated = Object.keys(this.fields).every(key => (!this.fields[key].pristine && this.fields[key].valid));\r\n if (allFieldsValidated) {\r\n const accidentsCount = this.Model.AccidentsCount;\r\n for (let i = 1; i <= accidentsCount; i++) {\r\n if (!this.Model[\"DateOfClaim\" + i]) { //this is needed because month-year-input component is not maintaining correct state\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n },\r\n\r\n mounted() {\r\n Vue.set(this.Model, \"EligibleForAccidentProtection\", false);\r\n },\r\n\r\n methods: {\r\n calculate() {\r\n const vm = this;\r\n vm.$validator.validate().then(function (isFormValid) {\r\n if (isFormValid) {\r\n axios.post(vm.api.calculateSavings, vm.Model)\r\n .then(result => {\r\n if (result.data) {\r\n vm.IsEmpty = false;\r\n vm.NoDiscount = result.data.NoDiscount;\r\n vm.OnliaClaimsFreeYears = result.data.OnliaClaimsFreeYears;\r\n vm.Model.EligibleForAccidentProtection = result.data.EligibleForAccidentProtection;\r\n vm.NoClaimsMade = result.data.NoClaimsMade;\r\n vm.OneClaim = result.data.OneClaim;\r\n vm.TwoClaim = result.data.TwoClaim;\r\n }\r\n });\r\n } else {\r\n Vue.prototype.handleInvalidForm(vm);\r\n }\r\n });\r\n },\r\n\r\n showDiscountsTable() {\r\n this.$root.$emit('dynamic::modal::show', this.discountsTableModalId);\r\n }\r\n }\r\n})","import Vue from 'vue';\r\n\r\nVue.component('slider-config', {\r\n components: {\r\n vueSlider: () => import('vue-slider-component')\r\n },\r\n\r\n props: {\r\n sliderMin: String,\r\n sliderMax: String,\r\n sliderLabelMin: String,\r\n sliderLabelMax: String,\r\n sliderInterval: String,\r\n storeName: String,\r\n sliderFrontendModel: String,\r\n sliderTooltipLabel: String,\r\n sliderChoices: String,\r\n disabled: String,\r\n api: Object,\r\n repeatableScope: Object,\r\n repeatableIndex: Number\r\n },\r\n\r\n data() {\r\n return {\r\n stylesReady: false,\r\n slider: {\r\n tooltip: 'active',\r\n tooltip_placement: 'top',\r\n dotSize: 20,\r\n width: '100%',\r\n height: 4,\r\n silent: true,\r\n disabled: this.disabled ? JSON.parse(this.disabled) : false\r\n },\r\n tooltips: {}\r\n };\r\n },\r\n\r\n computed: {\r\n Model() {\r\n return this.$store.state[this.storeName].model;\r\n }\r\n },\r\n\r\n beforeCreate() {\r\n import(/* webpackChunkName: 'styles.vue-slider' */ '@Styles/scss/components/general/vue-slider/index')\r\n .then(() => {\r\n this.stylesReady = true;\r\n });\r\n },\r\n\r\n mounted() {\r\n const vm = this;\r\n\r\n if (vm.sliderChoices) {\r\n vm.initializeChoiceSlider(JSON.parse(vm.sliderChoices));\r\n }\r\n else {\r\n vm.initializeRangeSlider();\r\n }\r\n\r\n vm.$root.$on('DynamicListOptionsAvailable', (newVal) => {\r\n //vm.initializeChoiceSlider(e.detail);\r\n vm.slider.setValue(newVal);\r\n });\r\n\r\n vm.$root.$on(`refreshSlider-${vm.sliderFrontendModel}`, (e) => {\r\n vm.initializeRangeSlider(e.detail);\r\n });\r\n\r\n this.setDotHandleTabIndex();\r\n this.setSliderDotLabel();\r\n },\r\n\r\n destroyed() {\r\n this.$root.$off('DynamicListOptionsAvailable');\r\n this.$root.$off(`refreshSlider-${this.sliderFrontendModel}`);\r\n },\r\n\r\n methods: {\r\n initializeRangeSlider(options) {\r\n const vm = this;\r\n const min = options && options.min ? options.min.toString() : vm.sliderMin.toString();\r\n const max = options && options.max ? options.max.toString() : vm.sliderMax.toString();\r\n const interval = options && options.interval ? options.interval.toString() : vm.sliderInterval.toString();\r\n\r\n let sliderConfig = {\r\n min: +min,\r\n max: +max,\r\n marks: {},\r\n interval: +interval,\r\n tooltipFormatter: (val) => {\r\n if (val == vm.sliderMin) {\r\n return vm.sliderLabelMin;\r\n }\r\n if (val == vm.sliderMax) {\r\n return vm.sliderLabelMax;\r\n }\r\n return (vm.sliderTooltipLabel !== null && vm.sliderTooltipLabel !== '') ? vm.sliderTooltipLabel + val : val;\r\n }\r\n };\r\n sliderConfig.marks[min] = vm.sliderLabelMin;\r\n sliderConfig.marks[max] = vm.sliderLabelMax;\r\n sliderConfig = Object.assign({}, sliderConfig, options);\r\n\r\n vm.slider = Object.assign({}, vm.slider, sliderConfig);\r\n },\r\n\r\n initializeChoiceSlider(choices) {\r\n const vm = this;\r\n const data = [];\r\n const labels = {};\r\n\r\n for (let idx = 0; idx < choices.length; idx++) {\r\n const choice = choices[idx];\r\n\r\n data.push(choice.v);\r\n labels[choice.v] = idx === 0 || idx === choices.length - 1 ? choice.t : '';\r\n Vue.set(vm.tooltips, choice.v, choice.t);\r\n }\r\n\r\n const config = {\r\n data: data,\r\n tooltipFormatter: val => (vm.sliderTooltipLabel !== null && vm.sliderTooltipLabel !== '') ?\r\n vm.sliderTooltipLabel + val :\r\n vm.tooltips[val],\r\n marks: val => ({ label: labels[val] })\r\n };\r\n\r\n vm.slider = Object.assign({}, vm.slider, config);\r\n },\r\n\r\n async setDotHandleTabIndex() {\r\n await this.$nextTick();\r\n\r\n if (this.$el.getElementsByClassName) {\r\n const dotHandle = this.$el.getElementsByClassName('vue-slider-dot-handle');\r\n\r\n if (dotHandle && dotHandle.length) {\r\n dotHandle[0].setAttribute('tabindex', '-1');\r\n }\r\n }\r\n },\r\n\r\n setSliderDotLabel() {\r\n const sliderDots = document.querySelectorAll('.vue-slider-dot');\r\n if (sliderDots.length == 0) {\r\n setTimeout(() => this.setSliderDotLabel(), 100);\r\n } else {\r\n sliderDots.forEach((sliderDot) => {\r\n sliderDot.setAttribute('aria-label', 'range-slider');\r\n });\r\n }\r\n },\r\n }\r\n});\r\n","import Vue from 'vue';\r\nimport callVueInstanceMethod from '@Shared/utils/call-vue-instance-method';\r\n\r\nVue.component('time-input', {\r\n inject: [ '$validator' ],\r\n\r\n props: {\r\n field: String,\r\n storeName: String,\r\n bindingName: String\r\n },\r\n\r\n data() {\r\n return {\r\n hour: '',\r\n minute: '',\r\n hours: [],\r\n minutes: []\r\n };\r\n },\r\n\r\n computed: {\r\n Model() {\r\n return this.$store.state[this.storeName].model;\r\n }\r\n },\r\n mounted() {\r\n for (let i = 23; i >= 0; i--) {\r\n this.hours.push({\r\n v: this.pad(i, 2),\r\n t: this.pad(i, 2)\r\n });\r\n }\r\n\r\n for (let i = 59; i >= 0; i--) {\r\n this.minutes.push({\r\n v: this.pad(i, 2),\r\n t: this.pad(i, 2)\r\n });\r\n }\r\n\r\n if (this.Model[this.bindingName]) {\r\n [ this.hour, this.minute ] = this.Model[this.bindingName].split(':');\r\n }\r\n },\r\n methods: {\r\n onSelect() {\r\n const val = [ this.hour, this.minute ].join(':');\r\n this.updateModel(this, this.field, val);\r\n if (this.$attrs.onchangecallback && this.hour && this.minute) {\r\n callVueInstanceMethod(`this.$parent.${this.$attrs.onchangecallback}`, this, this.Model);\r\n }\r\n }\r\n }\r\n});\r\n","import Vue from 'vue';\r\n\r\n/**\r\n * This directive will add an aria-label attribute and value, to the element the directive is bound to.\r\n * It will traverse up the DOM and find the closest `a-formGroup__label`, and use the text value as the value for\r\n * 'aria-label'.\r\n */\r\nVue.directive('add-aria-label', (el) => {\r\n if (el.hasAttribute('aria-label')) return;\r\n \r\n const formGroupEl = el.closest('.a-formGroup');\r\n \r\n if (!formGroupEl) return;\r\n\r\n const labelEl = formGroupEl.getElementsByClassName('a-formGroup__label')[0];\r\n\r\n if (!labelEl) return;\r\n\r\n el.setAttribute('aria-label', labelEl.textContent);\r\n});\r\n","import Vue from 'vue';\r\n\r\n/**\r\n * This directive will add an aria-label attribute and value, to the first descendant that is either input, select, or textarea.\r\n * It will use the text value of closest dt descendant.\r\n */\r\n\r\nconst addAriaLabel = (el) => {\r\n const formField = el.querySelectorAll('input, select, textarea')[0];\r\n\r\n if (!formField || formField.hasAttribute('aria-label')) return;\r\n\r\n const labelEl = el.getElementsByTagName('dt')[0];\r\n\r\n if (!labelEl) return;\r\n\r\n formField.setAttribute('aria-label', labelEl.textContent.trim());\r\n};\r\n\r\nVue.directive('datalist-form-field-add-aria-label', {\r\n bind: addAriaLabel,\r\n inserted: addAriaLabel\r\n});\r\n","import Vue from \"vue\";\r\nimport sharedUtils from \"@Shared/mixins/shared-utils\";\r\n\r\nVue.directive(\"decode-input\", {\r\n bind: function (el, binding, vnode) {\r\n let val = el.value;\r\n if (!val) return;\r\n let vm = vnode.context;\r\n let bindingName = vnode.data.directives.find(function (o) { //Search the vModelName attached to the element\r\n return o.name === 'model';\r\n }).expression;\r\n \r\n val = sharedUtils.methods.decodeHTML(val); \r\n \r\n if (vm && val) {\r\n const modelDrilldown = (bindingName).split('.');\r\n\r\n modelDrilldown.forEach((level, index) => {\r\n if (index < modelDrilldown.length - 1) {\r\n vm = vm[level];\r\n }\r\n });\r\n\r\n Vue.set(vm, modelDrilldown[modelDrilldown.length - 1], val);\r\n }\r\n },\r\n componentUpdated: function (el, binding, vnode) {\r\n //in case dropdown options should be decoded\r\n if (el.options && el.options.length > 0) {\r\n let vm = vnode.context;\r\n let bindingName = vnode.data.directives.find(function (o) { //Search the vModelName attached to the element\r\n return o.name === 'model';\r\n }).expression;\r\n\r\n if (vm.dropdownOptions && vm.dropdownOptions[bindingName]) {\r\n vm.dropdownOptions[bindingName].forEach((option, index) => {\r\n option.t = sharedUtils.methods.decodeHTML(option.t);\r\n })\r\n }\r\n }\r\n }\r\n});\r\n","import Vue from \"vue\";\r\nimport _get from \"lodash/get\";\r\n\r\nVue.directive(\"default-value\", {\r\n bind: function (el, binding, vnode) {\r\n let fullPropertyName = binding.value.property;\r\n let defaultPropertyValue = binding.value.value;\r\n\r\n let lastIndexOfproperty = fullPropertyName.lastIndexOf(\".\");\r\n let propertyObjName = fullPropertyName.substr(0, lastIndexOfproperty);\r\n let propertyName = fullPropertyName.substr(lastIndexOfproperty + 1, fullPropertyName.length);\r\n let propertyValue = _get(vnode.context, fullPropertyName);\r\n let fieldName = fullPropertyName.replace(\"Model.\", \"\");\r\n\r\n if (vnode.context.isJson(defaultPropertyValue)) {\r\n defaultPropertyValue = JSON.parse(defaultPropertyValue).v;\r\n }\r\n\r\n const model = _get(vnode.context, propertyObjName);\r\n\r\n if (typeof propertyValue !== \"boolean\" && !propertyValue) {\r\n Vue.set(model, propertyName, defaultPropertyValue);\r\n const currentField = vnode.context.$validator.fields.items.find(field => {\r\n return field.name === fieldName;\r\n });\r\n if (!currentField) {\r\n return;\r\n }\r\n setTimeout(() => {\r\n currentField.reset();\r\n currentField.setFlags({ valid: true, invalid: false });\r\n vnode.context.$validator.errors.remove(fieldName);\r\n });\r\n }\r\n }\r\n});\r\n","import Vue from \"vue\";\r\n\r\nVue.mixin({\r\n data() {\r\n return {\r\n dropdownOptions: {}\r\n };\r\n }\r\n});\r\n\r\nVue.directive(\"dropdown-init\", {\r\n bind: function (el, binding, vnode) {\r\n\r\n const optionKey = binding.value.key;\r\n const optionValue = binding.value.value;\r\n const dropdownOptions = vnode.context.dropdownOptions;\r\n\r\n if (!dropdownOptions[optionKey]) Vue.set(dropdownOptions, optionKey, {});\r\n\r\n dropdownOptions[optionKey] = JSON.parse(optionValue.replace(/\\'/g, '\"'));\r\n }\r\n});\r\n","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport _get from \"lodash/get\";\r\n\r\nVue.directive(\"dynamic-list\", {\r\n bind: function (el, binding, vnode) {\r\n const vm = vnode.context;\r\n let dynamicListApi = Vue.prototype.getValueFromAttribute(el, \"data-dynamic-list-api\");\r\n let dynamicListText = Vue.prototype.getValueFromAttribute(el, \"data-dynamic-list-text\");\r\n let dynamicListValue = Vue.prototype.getValueFromAttribute(el, \"data-dynamic-list-value\");\r\n let dynamicListRequestModel = Vue.prototype.getValueFromAttribute(el, \"data-dynamic-list-request-model\");\r\n let dynamicListResponseModel = Vue.prototype.getValueFromAttribute(el, \"data-dynamic-list-response-model\");\r\n let dynamicListResponseModelKey = Vue.prototype.getValueFromAttribute(el, \"data-dynamic-list-response-model-key\");\r\n\r\n if (!dynamicListApi) {\r\n return;\r\n }\r\n\r\n let getRequestModel = function () {\r\n let requestModel = {};\r\n if (dynamicListRequestModel) {\r\n dynamicListRequestModel.split(\",\").forEach(function (prop) {\r\n prop = prop.trim();\r\n requestModel[prop] = _get(vm, \"Model.\" + prop);\r\n }); \r\n }\r\n return Object.keys(requestModel).length ? requestModel : vm.Model;\r\n };\r\n\r\n axios.post(dynamicListApi, getRequestModel())\r\n .then(function (response) {\r\n updateResponse(formatResponse(response.data));\r\n });\r\n\r\n let extractPropertyValue = function (obj, props) {\r\n let value = \"\";\r\n\r\n for (let idx = 0; idx < props.length; idx++) {\r\n let prop = props[idx];\r\n\r\n if (obj.hasOwnProperty(prop) && idx === props.length - 1) {\r\n value = obj[prop];\r\n break;\r\n } else {\r\n obj = obj[prop];\r\n }\r\n }\r\n return value;\r\n };\r\n\r\n let formatResponse = function (response) {\r\n let options = [];\r\n response.forEach(function (obj) {\r\n let item = Object.assign({}, obj);\r\n if (dynamicListValue) {\r\n item.v = extractPropertyValue(obj, dynamicListValue.split(\".\"));\r\n }\r\n if (dynamicListText) {\r\n item.t = extractPropertyValue(obj, dynamicListText.split(\".\"));\r\n }\r\n options.push(item);\r\n });\r\n return options;\r\n };\r\n\r\n let updateResponse = function (response) {\r\n if (dynamicListResponseModel && dynamicListResponseModelKey) {\r\n Vue.set(vm[dynamicListResponseModel], dynamicListResponseModelKey, response);\r\n } else if (dynamicListResponseModel && !dynamicListResponseModelKey) {\r\n Vue.prototype.updateModel(vm, dynamicListResponseModel, response);\r\n } else {\r\n vm.$root.$emit(\"DynamicListOptionsAvailable\", response);\r\n }\r\n };\r\n }\r\n});\r\n","import Vue from \"vue\";\r\n\r\nVue.directive(\"field-validation-reorder\", {\r\n bind: function (el, binding, vnode) {\r\n el.dataset.reordered = false;\r\n },\r\n componentUpdated: function (el, binding, vnode, oldVnode) {\r\n if (el.dataset.reordered === \"true\") {\r\n return;\r\n }\r\n const vm = vnode.context;\r\n const currentFieldName = el.getAttribute(\"name\");\r\n const currentField = vm.$validator.fields.items.find(({ name }) => name === currentFieldName);\r\n if (currentField && currentField.rules && currentField.rules.val_compulsory) {\r\n currentField.update({\r\n rules: {\r\n val_compulsory: currentField.rules.val_compulsory,\r\n ...currentField.rules,\r\n },\r\n });\r\n el.dataset.reordered = true;\r\n }\r\n },\r\n});\r\n","import Vue from \"vue\";\r\nimport sharedUtils from \"@Shared/mixins/shared-utils\";\r\n\r\nVue.directive(\"format-currency\", function (el, binding) {\r\n let currencyValue = binding.value; //el.innerText; //binding.value;\r\n const currencyArg = binding.arg;\r\n const currencyStyle = (currencyArg && currencyArg == \"no-symbol\") ? \"decimal\" : \"currency\";\r\n\r\n el.innerHTML = sharedUtils.methods.formatCurrency(currencyValue, currencyStyle); \r\n});\r\n\r\nVue.filter('currency', function (currencyValue, symbol) { \r\n const currencyStyle = (symbol == \"\") ? \"decimal\" : \"currency\";\r\n return sharedUtils.methods.formatCurrency(currencyValue, currencyStyle);\r\n})\r\n\r\nVue.directive(\"format-payment-settling\", function (el, binding) {\r\n let currencyValue = binding.value;\r\n const currencyArg = binding.arg;\r\n const currencyStyle = (currencyArg && currencyArg == \"no-symbol\") ? \"decimal\" : \"currency\";\r\n\r\n el.innerHTML = ((currencyValue > 0) ? \"+\" : \"\") + sharedUtils.methods.formatCurrency(currencyValue, currencyStyle);\r\n});","import Vue from 'vue';\r\nimport isValid from 'date-fns/isValid';\r\nimport format from 'date-fns/format';\r\n\r\nVue.directive('format-date', (el, binding) => {\r\n const dateFormat = binding.value.replace(/m/g, 'M').replace(/D/g, 'd').replace(/Y/g, 'y');\r\n let dateString = el.innerHTML.trim();\r\n if (dateString.length === 10) {//in case there is no time zone set\r\n dateString += 'T12:00:00';\r\n }\r\n const date = new Date(dateString);\r\n\r\n if (isValid(date)) {\r\n const result = format(date, dateFormat, {\r\n locale: window.__dateFnsLocale__\r\n });\r\n el.innerHTML = result;\r\n }\r\n});","import Vue from 'vue';\r\n\r\n/**\r\n * This directive will add an aria-label attribute and value, to the first child element that matches the tag specified.\r\n * It will find the first label child element, and use the text value as the value for 'aria-label'.\r\n */\r\nVue.directive('group-form-add-aria-label', (el, binding) => {\r\n const hasSetLabel = el.dataset.ariaLabel;\r\n \r\n if (hasSetLabel) return;\r\n \r\n const labelEl = el.getElementsByTagName('label')[0];\r\n\r\n if (!labelEl) return;\r\n \r\n const { value: { tagName, removeColon } } = binding;\r\n\r\n const targetEl = el.getElementsByTagName(tagName)[0];\r\n \r\n if (!targetEl) return;\r\n \r\n const ariaLabel = removeColon ?\r\n labelEl.textContent.trim().replace(/[:]$/, '') :\r\n labelEl.textContent.trim();\r\n\r\n targetEl.setAttribute('aria-label', ariaLabel);\r\n \r\n el.dataset.ariaLabel = 'true';\r\n});\r\n","import Vue from \"vue\";\r\n\r\n// Placeholder directive for running an expression.\r\n\r\nVue.directive(\"init\", {});\r\n","import Vue from 'vue';\r\nimport { IS_DEV } from '@Shared/settings';\r\nimport { loadScript } from '@Shared/utils/load-script';\r\n\r\nconst INPUT_MASK_SCRIPT_URL = '/onlia/vendor/inputmask/inputmask.min.js';\r\nconst INPUT_MASK_SCRIPT_ID = 'inputMaskScript';\r\n\r\nVue.directive('input-mask', {\r\n async bind(el, binding, vnode) {\r\n const isDateField = el.hasAttribute('data-date-input');\r\n\r\n if (!el.attributes['placeholder']) {\r\n el.setAttribute('placeholder', binding.value);\r\n }\r\n\r\n const applyInputMask = () => {\r\n const inputMaskConfig = {\r\n autoUnmask: !isDateField,\r\n showMaskOnHover: false,\r\n showMaskOnFocus: false,\r\n jitMasking: true,\r\n definitions: {\r\n '*': {\r\n cardinality: 1,\r\n casing: 'upper'\r\n },\r\n y: {\r\n validator: '([012])\\\\d{2}',\r\n cardinality: 4,\r\n prevalidator: [\r\n { validator: '[012]', cardinality: 1 },\r\n { validator: '([012]|[012])', cardinality: 2 },\r\n { validator: '([012]|[012])\\\\d', cardinality: 3 }\r\n ]\r\n }\r\n }\r\n };\r\n\r\n if (isDateField) {\r\n inputMaskConfig.alias = 'datetime';\r\n inputMaskConfig.inputFormat = binding.value;\r\n\r\n // We can get direct sibling with element.previousElementSibling or element.nextElementSibling, but this would\r\n // only work as long as the structure doesn't change\r\n const inputFields = [ ...el.parentNode.getElementsByTagName('input') ];\r\n inputFields.map((inputField) => {\r\n if (inputField !== el) {\r\n vnode.context.$nextTick(() => {\r\n new Inputmask(inputMaskConfig).mask(inputField);\r\n });\r\n }\r\n });\r\n }\r\n else {\r\n inputMaskConfig.mask = binding.value;\r\n inputMaskConfig.onUnMask = function (maskedValue, unmaskedValue) {\r\n return maskedValue ? maskedValue.replace(/\\W/g, '') : maskedValue;\r\n };\r\n new Inputmask(inputMaskConfig).mask(el);\r\n }\r\n };\r\n\r\n try {\r\n await loadScript({\r\n id: INPUT_MASK_SCRIPT_ID,\r\n url: INPUT_MASK_SCRIPT_URL,\r\n scriptAttributes: { async: '' }\r\n });\r\n\r\n applyInputMask();\r\n\r\n //Fix for DEV-3298 \"Change input mask implementation _ for auto-prefill is working\"\r\n if (!isDateField) {\r\n const expression = vnode.data.directives.find(o => o.name === 'model').expression;\r\n let handler = function (e) {\r\n let vm = vnode.context;\r\n const modelDrilldown = (expression).split('.');\r\n\r\n modelDrilldown.forEach((level, index) => {\r\n if (index < modelDrilldown.length - 1) {\r\n vm = vm[level];\r\n }\r\n });\r\n\r\n Vue.set(vm, modelDrilldown[modelDrilldown.length - 1], e.target.inputmask.unmaskedvalue());\r\n }\r\n\r\n el.addEventListener('input', handler);\r\n }\r\n }\r\n catch (error) {\r\n (IS_DEV && console.error('input-mask directive error:', error));\r\n }\r\n }\r\n});\r\n","import Vue from 'vue';\r\nimport radioOutlineController from '../utils/RadioOutlineController';\r\n\r\nconst events = [\r\n {\r\n name : 'mousedown',\r\n handler : (event) => {\r\n event.preventDefault();\r\n radioOutlineController.toggleOutline(event);\r\n }\r\n },\r\n {\r\n name : 'mouseup',\r\n handler : radioOutlineController.toggleOutline\r\n },\r\n {\r\n name : 'blur',\r\n handler : radioOutlineController.toggleOutline\r\n },\r\n {\r\n name : 'focus',\r\n handler : (event) => {\r\n radioOutlineController.toggleOutline(event, 1);\r\n }\r\n }\r\n];\r\n\r\nVue.directive('radio-button-outline-toggle', {\r\n bind(el) {\r\n events.map(({ name, handler }) => el.addEventListener(name, handler));\r\n },\r\n unbind(el) {\r\n events.map(({ name, handler }) => el.removeEventListener(name, handler));\r\n radioOutlineController.clear();\r\n }\r\n});\r\n","import Vue from 'vue';\r\nimport SwitchOutlineController from '../utils/SwitchOutlineController';\r\n\r\n/**\r\n * @description Vue directive to control outline visibility for switch elements like: b-form-checkbox switch component,\r\n * and toggle switch.\r\n *\r\n * @author Andrew Kim\r\n */\r\n\r\nVue.directive('switch-outline', {\r\n bind(el) {\r\n const outlineController = new SwitchOutlineController();\r\n outlineController.init(el);\r\n }\r\n});\r\n","import Vue from 'vue';\r\n\r\nVue.directive('toggle-password', (el, binding, vNode) => {\r\n const showPassword = binding.value;\r\n vNode.elm.setAttribute('type', showPassword ? 'text' : 'password');\r\n});\r\n","import Vue from \"vue\";\r\n\r\nVue.directive(\"track-input-focus\", {\r\n bind: function (el, binding, vnode) {\r\n const inputLabel = binding.value;\r\n\r\n if (inputLabel) {\r\n const trackedEvent = el.type ? 'focus' : 'click';\r\n const elementUniqueName = ((el.name) ? el.name : '') + ' - ' + inputLabel;\r\n\r\n el.addEventListener(trackedEvent, () => {\r\n if (window.ir.vpUrl && window.ir.vpLastInputTrack != elementUniqueName) {\r\n let dataLayer = window.dataLayer || [];\r\n dataLayer.push({\r\n \"event\": \"Form\",\r\n \"category\": \"Form\",\r\n \"action\": window.ir.vpUrl,\r\n \"label\": \"OnFocus: \" + inputLabel\r\n });\r\n\r\n //console.log('[' + window.ir.vpUrl + '] ' + inputLabel);\r\n window.ir.vpLastInputTrack = elementUniqueName;\r\n }\r\n });\r\n }\r\n }\r\n});","import requireAll from '@Shared/utils/require-all';\r\n\r\nrequireAll(require.context('./components/', true, /\\.js$/));\r\nrequireAll(require.context('./directives/', true, /\\.js$/));\r\nrequireAll(require.context('./validation/', true, /\\.js$/));\r\nrequireAll(require.context('./utils/', true, /\\.js$/));\r\n\r\nimport(/* webpackChunkName: 'styles.forms' */ \"@Styles/forms\");","import { shared } from '@Apis';\r\n\r\nexport default {\r\n computed: {\r\n api() {\r\n return shared;\r\n }\r\n }\r\n};\r\n","import { loadGSAP } from '@Shared/utils/gsap-utils';\r\n// import { gsap } from 'gsap';\r\n\r\nclass RadioOutlineController {\r\n constructor() {\r\n this.clear = this.clear.bind(this);\r\n this.toggleOutline = this.toggleOutline.bind(this);\r\n }\r\n\r\n set activeOutline(val) {\r\n this._activeOutline = val;\r\n }\r\n get activeOutline() {\r\n return this._activeOutline;\r\n }\r\n\r\n async toggleOutline(event, alpha = 0) {\r\n const outline = event.target.parentElement.getElementsByClassName('outline')[0];\r\n\r\n if (!outline) return;\r\n\r\n if (outline !== this.activeOutline) await this.clear();\r\n\r\n (!window.gsap && await loadGSAP());\r\n\r\n gsap.set(outline, { autoAlpha: alpha });\r\n\r\n this.activeOutline = outline;\r\n }\r\n\r\n async clear() {\r\n if (this.activeOutline) {\r\n (!window.gsap && await loadGSAP());\r\n\r\n gsap.set(this.activeOutline, { autoAlpha: 0 });\r\n\r\n this.activeOutline = null;\r\n }\r\n }\r\n}\r\n\r\nexport default new RadioOutlineController();\r\n","import { IS_DEV } from '@Shared/settings';\r\n\r\nconst FOCUS_IN_TIMEOUT = 100;\r\n\r\nexport default class SwitchOutlineController {\r\n constructor() {\r\n this._focusInTimeout = null;\r\n this._isMouseDown = false;\r\n\r\n this.handleFocusIn = this.handleFocusIn.bind(this);\r\n this.handleFocusOut = this.handleFocusOut.bind(this);\r\n this.handleMouseDown = this.handleMouseDown.bind(this);\r\n this.handleMouseUp = this.handleMouseUp.bind(this);\r\n this.handleClick = this.handleClick.bind(this);\r\n\r\n this._events = [\r\n {\r\n name: 'focusin',\r\n handler: this.handleFocusIn\r\n },\r\n {\r\n name: 'focusout',\r\n handler: this.handleFocusOut\r\n },\r\n {\r\n name: 'click',\r\n handler: this.handleClick\r\n },\r\n {\r\n name: 'mousedown',\r\n handler: this.handleMouseDown\r\n },\r\n {\r\n name: 'mouseup',\r\n handler: this.handleMouseUp\r\n }\r\n ];\r\n }\r\n\r\n init(element) {\r\n this._events.map(({ name, handler }) => {\r\n element.addEventListener(name, handler);\r\n });\r\n }\r\n\r\n clearFocusInTimeout() {\r\n if (this._focusInTimeout) {\r\n clearTimeout(this._focusInTimeout);\r\n this._focusInTimeout = null;\r\n }\r\n }\r\n\r\n setFocusInTimeout(callback) {\r\n this._focusInTimeout = setTimeout(callback, FOCUS_IN_TIMEOUT);\r\n }\r\n\r\n handleFocusIn({ currentTarget }) {\r\n this.clearFocusInTimeout();\r\n this.setFocusInTimeout(() => {\r\n if (!this._isMouseDown) {\r\n this.toggleOutline(currentTarget, 1);\r\n }\r\n });\r\n }\r\n\r\n handleFocusOut({ currentTarget }) {\r\n this.clearFocusInTimeout();\r\n this.toggleOutline(currentTarget, 0);\r\n }\r\n\r\n handleClick({ currentTarget }) {\r\n this.clearFocusInTimeout();\r\n this.toggleOutline(currentTarget, 0);\r\n }\r\n\r\n handleMouseDown() {\r\n this._isMouseDown = true;\r\n }\r\n\r\n handleMouseUp() {\r\n this._isMouseDown = false;\r\n }\r\n\r\n toggleOutline(element, opacity) {\r\n const outline = element.getElementsByClassName('outline')[0];\r\n\r\n if (outline) {\r\n outline.setAttribute('style', `opacity: ${opacity}`);\r\n }\r\n else if (IS_DEV) {\r\n console.error('SwitchOutlineController: toggleOutline could not find outline element.');\r\n }\r\n }\r\n\r\n destroy(element) {\r\n this.clearFocusInTimeout();\r\n\r\n this._events.map(({ name, handler }) => {\r\n element.removeEventListener(name, handler);\r\n });\r\n }\r\n}\r\n","import { IS_DEV } from '@Shared/settings';\r\n\r\n/**\r\n * How long to wait before a task is rejected (in milliseconds).\r\n */\r\nconst TASK_TIMEOUT = 1000 * 180;\r\n\r\n/**\r\n * @export\r\n * @function asyncParallelTasks.\r\n * @description Runs n number of functions in parallel. If a promise does not resolve after x milliseconds, it will\r\n * automatically reject.\r\n * @param {Function[]} tasks - Array of tasks (functions). Each task will be passed resolve function from a new Promise\r\n * @return {Promise} success - true if every task succeeded.\r\n *\r\n * @author Andrew Kim \r\n */\r\nexport const asyncParallelTasks = async (tasks) => {\r\n const result = await Promise.allSettled(tasks.map(task => new Promise((resolve, reject) => {\r\n const taskTimeout = setTimeout(reject, TASK_TIMEOUT);\r\n\r\n const clearTimeout = () => {\r\n // console.log('CLEAR_TIMEOUT');\r\n window.clearTimeout(taskTimeout);\r\n };\r\n\r\n /**\r\n * @function callback\r\n * @param {Error} [callbackError] - If the callback is called without passing an argument, it will resolve. Otherwise it will be rejected.\r\n */\r\n const callback = (callbackError) => {\r\n try {\r\n if (!callbackError) {\r\n return resolve();\r\n }\r\n reject(callbackError);\r\n }\r\n catch (error) {\r\n (IS_DEV && console.error('callback error:', error));\r\n reject(error);\r\n }\r\n finally {\r\n clearTimeout();\r\n }\r\n };\r\n\r\n task(callback);\r\n })));\r\n\r\n return result.every(response => response.status === 'fulfilled');\r\n};\r\n","import Vue from 'vue';\r\nimport { scrollPage } from '@Shared/utils/scroll-page';\r\nimport { HEADER_NAV, STEP_BAR_HEIGHT } from '@Shared/settings';\r\nimport { getElementTop } from '@Shared/utils/get-element-top';\r\nimport { getVisibleParent } from '@Shared/utils/dom-utils';\r\n\r\nconst { bottomNavHeightMobile, bottomNavHeight, topNavHeight } = HEADER_NAV;\r\n\r\nVue.prototype.generateGuid = function () {\r\n let d = new Date().getTime();\r\n if (window.performance && typeof window.performance.now === 'function') {\r\n d += window.performance.now();\r\n }\r\n const uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\r\n const r = (d + Math.random() * 16) % 16 | 0;\r\n d = Math.floor(d / 16);\r\n return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);\r\n });\r\n return uuid;\r\n};\r\n\r\nVue.prototype.getValueFromAttribute = function (element, attributeName) {\r\n return element.attributes[attributeName] !== undefined ? element.attributes[attributeName].value : undefined;\r\n};\r\n\r\nVue.prototype.updateModel = function (vm, property, value) {\r\n let obj = vm;\r\n const path = property.split('.');\r\n\r\n while (path.length > 1) {\r\n obj = obj[path.shift()];\r\n }\r\n\r\n Vue.set(obj, path.shift(), value);\r\n if (this.storeName) {\r\n this.$store.commit(`${this.storeName}/mutate`, this.Model);\r\n }\r\n};\r\n\r\nVue.prototype.getComponent = function (componentName) {\r\n let component = null;\r\n\r\n let parent = this;\r\n\r\n while (parent && !component) {\r\n if (parent.$options._componentTag === componentName) {\r\n component = parent;\r\n }\r\n\r\n parent = parent.$parent;\r\n }\r\n\r\n return component;\r\n};\r\n\r\nVue.prototype.isJson = function (jsonString) {\r\n if (typeof jsonString !== 'string') {\r\n return false;\r\n }\r\n\r\n let jsonValue = null;\r\n try {\r\n jsonValue = JSON.parse(jsonString);\r\n }\r\n catch (e) {\r\n return false;\r\n }\r\n\r\n return jsonValue !== null && typeof jsonValue === 'object';\r\n};\r\n\r\nVue.prototype.pad = function (num, size) {\r\n let s = num + '';\r\n while (s.length < size) s = '0' + s;\r\n return s;\r\n};\r\n\r\nVue.prototype.handleInvalidForm = function (vm) {\r\n setTimeout(() => {\r\n vm.$validator.fields.items.forEach((f) => {\r\n\r\n if (typeof f.el.dataset.dateInput !== 'undefined') {\r\n const firstSibling = [ ...f.el.parentNode.children ].find(childEl => childEl !== f.el);\r\n\r\n (firstSibling && firstSibling.setAttribute('aria-invalid', !f.flags.valid));\r\n }\r\n\r\n vm.$validator.flag(f.name, {\r\n touched: true,\r\n dirty: true\r\n });\r\n });\r\n\r\n let elementWithError = document.querySelector('[aria-invalid=true]');\r\n\r\n // NOTE 2021-09-29 AndrewKim: Elements like Google captcha, have parents or ancestors with display none set on them.\r\n // This will result in the element always having a top value of 0.\r\n if (elementWithError && !elementWithError.offsetParent) {\r\n const visibleParent = getVisibleParent(elementWithError.parentElement);\r\n\r\n if (visibleParent) {\r\n elementWithError = visibleParent;\r\n }\r\n }\r\n\r\n if (elementWithError) {\r\n const headerHeight = vm.$store.getters.breakpointMobile ?\r\n bottomNavHeightMobile :\r\n bottomNavHeight + topNavHeight;\r\n\r\n const stepBar = document.getElementsByClassName('step-indicator')[0];\r\n const stepBarHeight = stepBar ? STEP_BAR_HEIGHT : 0;\r\n\r\n // Extra offset to give the top of the element some room.\r\n const topOffset = 30;\r\n\r\n const scrollTop = getElementTop(elementWithError) - headerHeight - stepBarHeight - topOffset;\r\n\r\n scrollPage(scrollTop);\r\n }\r\n }, 100);\r\n};\r\n","import Vue from 'vue';\r\nimport ConditionalIf from '../plugins/conditionalif';\r\n\r\nVue.directive('displayif-container', {\r\n inserted: function (el, binding, vnode) {\r\n\r\n const vm = vnode.context;\r\n const displayifs = [];\r\n\r\n const containerId = Vue.prototype.getValueFromAttribute(el, 'data-displayif-container-id');\r\n\r\n const toggleContainer = function () {\r\n const displayedFields = displayifs.filter(displayif => displayif.display).length;\r\n\r\n ConditionalIf.toggleElement(el, !!displayedFields);\r\n };\r\n\r\n const removeDisplayif = function (timestamp) {\r\n let index = -1;\r\n\r\n displayifs.forEach((item, i) => {\r\n if (item.timestamp === timestamp) {\r\n index = i;\r\n }\r\n });\r\n\r\n if (index >= 0) {\r\n displayifs.splice(index, 1);\r\n }\r\n };\r\n\r\n const registerDisplayif = function (timestamp) {\r\n removeDisplayif(timestamp);\r\n\r\n displayifs.push({\r\n timestamp: timestamp,\r\n display: false\r\n });\r\n\r\n toggleContainer();\r\n };\r\n\r\n vm.$root.$on('registerDisplayIf' + containerId, (options) => {\r\n registerDisplayif(options.timestamp);\r\n });\r\n\r\n vm.$root.$on('toggleDisplayIfContainer' + containerId, (options) => {\r\n const timestamp = options.timestamp;\r\n const show = options.show;\r\n\r\n removeDisplayif(timestamp);\r\n\r\n displayifs.push({\r\n timestamp: timestamp,\r\n display: show\r\n });\r\n\r\n toggleContainer();\r\n });\r\n }\r\n});\r\n","import Vue from 'vue';\r\nimport _get from 'lodash/get';\r\nimport ConditionalIf from '../plugins/conditionalif';\r\n\r\nVue.directive('val-displayif', {\r\n inserted: function (el, binding, vnode) {\r\n\r\n Vue.use(ConditionalIf);\r\n\r\n const vm = vnode.context;\r\n const propertyValues = [];\r\n let compareValues = [];\r\n let conditions = [];\r\n let logicalnots = [];\r\n\r\n let validate = false;\r\n const operator = el.dataset.valDisplayifOperator;\r\n\r\n let toggleDisplayifContainer;\r\n\r\n const containerAttr = 'data-displayif-container-id';\r\n const selector = `[${containerAttr}]`;\r\n\r\n const containerElement = el.closest(selector);\r\n\r\n const containerId = containerElement ? containerElement.dataset.displayifContainerId : '';\r\n\r\n toggleDisplayifContainer = ConditionalIf.registerDisplayif(containerId, vm);\r\n\r\n const validateConditions = function () {\r\n validate = ConditionalIf.validateConditions(conditions, propertyValues, compareValues, logicalnots, operator);\r\n ConditionalIf.toggleContainer(el, validate);\r\n toggleDisplayifContainer(validate);\r\n\r\n return validate;\r\n };\r\n\r\n ConditionalIf.getPropertiesMatrix(el.dataset.valDisplayifProperty).forEach((property, index) => {\r\n setTimeout(() => {\r\n const propValue = _get(vm, property);\r\n propertyValues[index] = typeof propValue !== 'undefined' ? propValue : setModelValue(property, '');\r\n validateConditions();\r\n });\r\n\r\n vm.$watch(property, (newValue) => {\r\n propertyValues[index] = newValue;\r\n validateConditions();\r\n });\r\n });\r\n\r\n if (typeof el.dataset.valDisplayifValue !== 'undefined') {\r\n compareValues = ConditionalIf.getValuesMatrix(el.dataset.valDisplayifValue);\r\n }\r\n\r\n if (typeof el.dataset.valDisplayifCondition !== 'undefined') {\r\n conditions = ConditionalIf.getConditionsMatrix(el.dataset.valDisplayifCondition);\r\n }\r\n\r\n if (typeof el.dataset.valDisplayifLogicalnot !== 'undefined') {\r\n logicalnots = ConditionalIf.getLogicalnotsMatrix(el.dataset.valDisplayifLogicalnot);\r\n }\r\n\r\n function setModelValue(fullPropertyName, value) {\r\n const lastIndexOfproperty = fullPropertyName.lastIndexOf('.');\r\n const propertyName = fullPropertyName.substr(lastIndexOfproperty + 1, fullPropertyName.length);\r\n const parentProperty = fullPropertyName.substr(0, lastIndexOfproperty + 1);\r\n if (parentProperty !== 'Model.') {\r\n const rootProperty = parentProperty.substr(parentProperty.lastIndexOf('.') + 1, parentProperty.length);\r\n if (rootProperty) {\r\n Vue.set(vm.Model[rootProperty], propertyName, value);\r\n }\r\n }\r\n else {\r\n Vue.set(vm.Model, propertyName, value);\r\n }\r\n return value;\r\n }\r\n }\r\n});\r\n","import differenceInCalendarYears from \"date-fns/differenceInCalendarYears\";\r\nimport { Validator } from \"@vee-validate-package\";\r\n\r\nValidator.extend(\"val_agedependentdate\", {\r\n getMessage(field, args) {\r\n return args[0];\r\n },\r\n validate(value, [errorMessage, dependentDateValue]) {\r\n let valid = false;\r\n\r\n if (!value)\r\n valid = true;\r\n\r\n if (+dependentDateValue > 0 && differenceInCalendarYears(new Date(), new Date(value)) >= +dependentDateValue) {\r\n valid = true;\r\n }\r\n\r\n if (+dependentDateValue < 0 && differenceInCalendarYears(new Date(), new Date(value)) < Math.abs(+dependentDateValue)) {\r\n valid = true;\r\n }\r\n\r\n return valid;\r\n }\r\n});\r\n","import { Validator } from \"@vee-validate-package\";\r\n\r\nValidator.extend(\"val_compulsory\", {\r\n getMessage(field, args) {\r\n return args[0];\r\n },\r\n validate(value, args) {\r\n\r\n function checkValid() {\r\n var invalidateFalse = args.length > 1 ? args[1] : false;\r\n\r\n if (Array.isArray(value) && value.length === 0) {\r\n return false;\r\n }\r\n\r\n if (value === false && invalidateFalse) {\r\n return false;\r\n }\r\n\r\n if (value === undefined || value === null) {\r\n return false;\r\n }\r\n\r\n return !!String(value).trim().length;\r\n }\r\n \r\n return {\r\n valid: checkValid(), \r\n data: {\r\n required: true\r\n }\r\n };\r\n }\r\n}, { computesRequired: true });\r\n","import Vue from 'vue';\r\nimport _get from 'lodash/get';\r\nimport ConditionalIf from '../plugins/conditionalif';\r\nimport { IS_DEV } from '@Shared/settings';\r\n\r\nVue.use(ConditionalIf);\r\n\r\nconst isFunction = func => (typeof func === 'function');\r\n\r\nVue.directive('val-compulsoryif', {\r\n inserted: function (el, binding, vnode) {\r\n const propertyValues = [];\r\n let compareValues = [];\r\n let conditions = [];\r\n let logicalnots = [];\r\n const name = typeof el.dataset['vvName'] != 'undefined' ? el.dataset['vvName'] : el.name;\r\n let validate = false;\r\n const operator = el.dataset.valRequiredifOperator;\r\n const toggleDisplay = el.dataset.valRequiredifDisplayif === 'true';\r\n\r\n const vm = vnode.context;\r\n if (!vm['compulsoryifWatchers']) {\r\n vm['compulsoryifWatchers'] = {};\r\n }\r\n\r\n const validateConditions = function () {\r\n validate = ConditionalIf.validateConditions(conditions, propertyValues, compareValues, logicalnots, operator);\r\n\r\n if (toggleDisplay) {\r\n ConditionalIf.toggleContainer(el, validate);\r\n }\r\n\r\n toggleRequiredValidator();\r\n };\r\n\r\n const toggleRequiredValidator = function () {\r\n if (name) {\r\n const field = vnode.context.$validator.fields.find({ name: name });\r\n\r\n if (!field) {\r\n (IS_DEV &&\r\n console.error('Vue directive val-compulsoryif. Function toggleRequiredValidator was not able to find a field')\r\n );\r\n return;\r\n }\r\n\r\n const fieldRules = Object.assign({}, field.rules);\r\n\r\n fieldRules.val_compulsory = validate ? [binding.value] : false;\r\n field.update({ rules: fieldRules });\r\n }\r\n };\r\n\r\n ConditionalIf.getPropertiesMatrix(el.dataset.valRequiredifProperty).forEach((property, index) => {\r\n propertyValues[index] = _get(vnode.context, property);\r\n validateConditions();\r\n const propertyUnwatch = vnode.context.$watch(property, (newValue, oldValue) => {\r\n if (typeof newValue !== 'undefined' && newValue !== oldValue) {\r\n propertyValues[index] = newValue;\r\n validateConditions();\r\n }\r\n });\r\n const propertyKey = name + '_' + property;\r\n if (!vm.compulsoryifWatchers[propertyKey]) {\r\n vm.compulsoryifWatchers[propertyKey] = propertyUnwatch;\r\n }\r\n });\r\n\r\n if (typeof el.dataset.valRequiredifValue !== 'undefined') {\r\n compareValues = ConditionalIf.getValuesMatrix(el.dataset.valRequiredifValue);\r\n }\r\n\r\n if (typeof el.dataset.valRequiredifCondition !== 'undefined') {\r\n conditions = ConditionalIf.getConditionsMatrix(el.dataset.valRequiredifCondition);\r\n }\r\n\r\n if (typeof el.dataset.valRequiredifLogicalnot !== 'undefined') {\r\n logicalnots = ConditionalIf.getLogicalnotsMatrix(el.dataset.valRequiredifLogicalnot);\r\n }\r\n\r\n validateConditions();\r\n },\r\n unbind: function (el, binding, vnode) {\r\n const vm = vnode.context;\r\n const name = typeof el.dataset['vvName'] != 'undefined' ? el.dataset['vvName'] : el.name;\r\n ConditionalIf.getPropertiesMatrix(el.dataset.valRequiredifProperty).forEach((property, index) => {\r\n const propertyKey = name + '_' + property;\r\n if (vm.compulsoryifWatchers.hasOwnProperty(propertyKey) && isFunction(vm.compulsoryifWatchers[propertyKey])) {\r\n vm.compulsoryifWatchers[propertyKey]();\r\n delete vm.compulsoryifWatchers[propertyKey];\r\n }\r\n });\r\n }\r\n});\r\n","import { Validator } from '@vee-validate-package';\r\nimport parse from 'date-fns/parse';\r\nimport isWithinInterval from 'date-fns/isWithinInterval';\r\nimport startOfDay from 'date-fns/startOfDay';\r\nimport endOfDay from 'date-fns/endOfDay';\r\nimport parseISO from 'date-fns/parseISO';\r\nimport isValid from 'date-fns/isValid';\r\n\r\nValidator.extend('val_daterangeiso', {\r\n getMessage(field, args) {\r\n return args[0];\r\n },\r\n validate(value, args) {\r\n if (value && value.length < args[3].length) {\r\n return false;\r\n }\r\n\r\n if (value == '') { //no date\r\n return true;\r\n }\r\n\r\n const dateFormat = args[3].replace(/m/g, 'M').replace(/D/g, 'd').replace(/Y/g, 'y');\r\n const date = isValid(parse(value, dateFormat, new Date())) ? parse(value, dateFormat, new Date()) : new Date(value);\r\n\r\n return isWithinInterval(date, { start: startOfDay(parseISO(args[1])), end: endOfDay(parseISO(args[2])) });\r\n }\r\n});\r\n","import differenceInDays from \"date-fns/differenceInDays\";\r\nimport isAfter from \"date-fns/isAfter\";\r\nimport parse from \"date-fns/parse\";\r\nimport parseISO from \"date-fns/parseISO\";\r\nimport isValid from \"date-fns/isValid\";\r\nimport { Validator } from \"@vee-validate-package\";\r\n\r\nValidator.extend(\"val_fieldoffsetdate\", {\r\n getMessage(field, args) {\r\n return args[0];\r\n },\r\n validate(value, [errorMessage, dependentDateValue, offsetDateDays, format]) {\r\n let valid = false;\r\n\r\n if (!value)\r\n valid = true;\r\n\r\n let dateFormat = format.replace(/m/g, \"M\").replace(/D/g, \"d\").replace(/Y/g, \"y\");\r\n let parsedDate = isValid(parse(value, dateFormat, new Date())) ? parse(value, dateFormat, new Date()) : parseISO(value, dateFormat);\r\n let parsedDependentDate = parseISO(dependentDateValue);\r\n\r\n if (parsedDate && parsedDependentDate && isAfter(parsedDate, parsedDependentDate)\r\n && differenceInDays(parsedDate, parsedDependentDate) >= offsetDateDays) {\r\n valid = true;\r\n }\r\n\r\n return valid;\r\n }\r\n});\r\n","import { Validator } from \"@vee-validate-package\";\r\n\r\nValidator.extend(\"val_number\", {\r\n getMessage(field, args) {\r\n return args[0];\r\n },\r\n validate(value) {\r\n const en = /^[0-9]+$/;\r\n const testValue = val => {\r\n const strValue = String(val);\r\n\r\n return en.test(strValue);\r\n };\r\n\r\n if (Array.isArray(value)) {\r\n return value.every(testValue);\r\n }\r\n\r\n return testValue(value);\r\n }\r\n});\r\n","import { Validator } from \"@vee-validate-package\";\r\n\r\nValidator.extend(\"val_range\", {\r\n getMessage(field, [msg]) {\r\n return msg;\r\n },\r\n validate(value, [msg,min,max]) {\r\n const val = Number(value);\r\n return val >= Number(min) && val <= Number(max);\r\n }\r\n});\r\n","import { Validator } from \"@vee-validate-package\";\r\n\r\nValidator.extend(\"val_regex\", {\r\n getMessage(field, args) {\r\n return args[0];\r\n },\r\n validate(value, args) {\r\n const regex = new RegExp(args[1]);\r\n\r\n return !!value && !!value.match(regex);\r\n }\r\n});\r\n","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport { Validator } from \"@vee-validate-package\";\r\n\r\nVue.directive(\"zipcode\", {\r\n inserted: function (el, binding, vnode) {\r\n\r\n const errorMessage = el.dataset.valApiMessage;\r\n const apiUrl = el.dataset.valApiUrl;\r\n const vvName = Vue.prototype.getValueFromAttribute(el, \"data-vv-name\");\r\n const field = vnode.context.$validator.fields.find({ name: vvName ? vvName : el.name });\r\n const fieldRules = Object.assign({}, field.rules);\r\n\r\n fieldRules.val_zipcode = [errorMessage, apiUrl];\r\n field.update({ rules: fieldRules });\r\n }\r\n});\r\n\r\nValidator.extend(\"val_zipcode\", {\r\n getMessage(field, args) {\r\n return args[0];\r\n },\r\n validate(value, args) {\r\n return new Promise(function (resolve) {\r\n axios.post(args[1], {\r\n Id: value\r\n }).then(function (response) {\r\n resolve({ valid: response.data.IsValid === true });\r\n });\r\n });\r\n }\r\n});\r\n","import { getParents, hideElement, showElement } from '@Shared/utils/dom-utils';\r\n\r\nexport default {\r\n install: function () {\r\n const conditionMethods = {\r\n isnull: function (propertyValue, compareValue) {\r\n return propertyValue === null || typeof propertyValue === 'undefined' || propertyValue === '';\r\n },\r\n '=': function (propertyValue, compareValue) {\r\n return String(propertyValue).toLowerCase() === String(compareValue).toLowerCase();\r\n },\r\n in: function (propertyValue, compareValue) {\r\n if (typeof compareValue !== 'undefined') {\r\n const lowerCasedPropertyValue = String(propertyValue).toLowerCase();\r\n const res = compareValue.find(item => lowerCasedPropertyValue === String(item).toLowerCase());\r\n\r\n return typeof res !== 'undefined';\r\n }\r\n return false;\r\n },\r\n contain: function (propertyValue, compareValue) {\r\n if (typeof propertyValue !== 'undefined') {\r\n const valueItems = (propertyValue instanceof Array) ? propertyValue : String(propertyValue).split(/[\\s,;]+/);\r\n\r\n if (typeof compareValue !== 'undefined') {\r\n const lowerCasedCompareValue = String(compareValue).toLowerCase();\r\n const res = valueItems.find(item => lowerCasedCompareValue === String(item).toLowerCase());\r\n\r\n return typeof res !== 'undefined';\r\n }\r\n }\r\n return false;\r\n }\r\n };\r\n\r\n const operatorMethods = {\r\n and: function (validA, validB) {\r\n validA = typeof validA === 'undefined' ? true : validA;\r\n\r\n return validA && validB;\r\n },\r\n or: function (validA, validB) {\r\n return validA || validB;\r\n }\r\n };\r\n\r\n this.getValuesMatrix = function (values) {\r\n return JSON.parse(values);\r\n },\r\n this.getConditionsMatrix = function (conditions) {\r\n return conditions.split(',');\r\n },\r\n this.getPropertiesMatrix = function (properties) {\r\n return properties.split(',');\r\n },\r\n this.getLogicalnotsMatrix = function (logicalnots) {\r\n return logicalnots.split(',').map(logicalnot => logicalnot === 'true');\r\n },\r\n this.validateConditions = function (conditions, propertyValues, compareValues, logicalnots, operator) {\r\n let valid;\r\n const conditionalif = this;\r\n\r\n //force operator to have a default, currently 'and'\r\n operator = operator || 'and';\r\n\r\n //propertyValues can be not defined, so only check on conditions.length here\r\n if (conditions.length) {\r\n conditions.forEach((condition, index) => {\r\n const currentValid = conditionalif.validateCondition(\r\n condition,\r\n propertyValues[index],\r\n compareValues[index],\r\n logicalnots[index]\r\n );\r\n valid = operatorMethods[operator](valid, currentValid);\r\n });\r\n }\r\n else {\r\n valid = false;\r\n }\r\n\r\n return !!valid;\r\n },\r\n this.validateCondition = function (condition, propertyValue, compareValue, logicalnot) {\r\n let validateCondition = !!conditionMethods[condition](propertyValue, compareValue);\r\n\r\n if (logicalnot) {\r\n validateCondition = !validateCondition;\r\n }\r\n\r\n return validateCondition;\r\n },\r\n this.registerDisplayif = function (containerId, vm) {\r\n let timestamp;\r\n\r\n // NOTE 2021-09-27 AndrewKim: Why is this condition hardcoded to true?\r\n if (true) {\r\n timestamp = (new Date()).getTime();\r\n\r\n vm.$root.$emit('registerDisplayIf' + containerId, {\r\n timestamp: timestamp\r\n });\r\n\r\n return function (show) {\r\n vm.$root.$emit('toggleDisplayIfContainer' + containerId, {\r\n timestamp: timestamp,\r\n show: show\r\n });\r\n };\r\n }\r\n },\r\n this.toggleContainer = function (element, show) {\r\n const formGroupElements = getParents(element, '.a-formGroup');\r\n\r\n if (formGroupElements.length) {\r\n this.toggleElement(formGroupElements[0], show);\r\n }\r\n else {\r\n this.toggleElement(getParents(element, '.form-group')[0], show);\r\n }\r\n },\r\n this.toggleElement = function (element, show) {\r\n if (show) {\r\n showElement(element);\r\n }\r\n else {\r\n hideElement(element);\r\n }\r\n };\r\n }\r\n};\r\n","import { login } from '@Apis';\r\n\r\nexport default {\r\n computed: {\r\n api() {\r\n return login;\r\n }\r\n }\r\n};\r\n","import Vue from 'vue';\r\nimport axios from 'axios';\r\nimport api from '../mixins/api';\r\n\r\nconst showPasswordButtonRef = 'showPassword';\r\n\r\nVue.component('login', {\r\n inject: ['$validator'],\r\n mixins: [api],\r\n data() {\r\n return {\r\n loginErrorMessage: '',\r\n isPasswordVisible: false,\r\n Model: {\r\n GoalId: null,\r\n Email: null,\r\n IsEmailRemebered: null,\r\n Password: null\r\n }\r\n };\r\n },\r\n computed: {\r\n email() {\r\n return this.Model.Email;\r\n },\r\n showPasswordButtonAttributes() {\r\n return {\r\n variant: 'none',\r\n tag: 'button',\r\n type: 'button',\r\n ref: showPasswordButtonRef,\r\n 'aria-controls': 'Password',\r\n 'aria-expanded': this.isPasswordVisible.toString(),\r\n 'aria-label': this.isPasswordVisible ? 'Hide password' : 'Show password as plain text.',\r\n title: `${this.isPasswordVisible ? 'Hide' : 'Show'} password`\r\n };\r\n }\r\n },\r\n created() {\r\n if (this.$attrs['redirect-aha-link'] != \"\") {\r\n window.location.href = this.$attrs['redirect-aha-link'];\r\n } \r\n let url = window.location.href;\r\n const returnUrlParam = \"returnUrl=\";\r\n let start = url.indexOf(returnUrlParam);\r\n let end = url.indexOf(\"&\", start);\r\n if (start < 0) {\r\n return;\r\n }\r\n let redirectUrl = url.substr(start + returnUrlParam.length);\r\n\r\n if (end > start) {\r\n redirectUrl = url.substring(start + returnUrlParam.length, end);\r\n }\r\n\r\n this.Model.ReturnUrl = decodeURIComponent(redirectUrl);\r\n },\r\n watch: {\r\n email(newVal) {\r\n // cache email value for prefiling in deblock account view\r\n this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model.email = newVal;\r\n }\r\n },\r\n mounted() {\r\n this.Model.GoalId = this.$attrs['goal-id'];\r\n this.addShowPasswordButton();\r\n },\r\n beforeDestroy() {\r\n this.removeShowPasswordButton();\r\n },\r\n methods: {\r\n changeState(state) {\r\n // template-parser creates mid-layer parent and passing data through binding becomes impossible?\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n togglePassword() {\r\n this.isPasswordVisible = !this.isPasswordVisible;\r\n },\r\n performLogin() {\r\n this.loginErrorMessage = '';\r\n this.$validator.validate()\r\n .then((isFormValid) => {\r\n if (!isFormValid) return;\r\n axios.post(this.api.login, {\r\n ...this.Model\r\n })\r\n .then((res) => {\r\n const result = res.data;\r\n\r\n if (result.RedirectUrl) {\r\n window.location.href = result.RedirectUrl;\r\n }\r\n if (result.RedirectState) {\r\n this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model[result.RedirectState] = {\r\n email: this.Model.Email\r\n };\r\n this.changeState(result.RedirectState);\r\n }\r\n\r\n if (result.LoginErrorMessage) {\r\n this.handleErrorMessage(result.LoginErrorMessage);\r\n }\r\n }, (err) => {\r\n this.handleErrorMessage(err.Message);\r\n });\r\n });\r\n },\r\n handleErrorMessage(message) {\r\n this.loginErrorMessage = message;\r\n\r\n if (message && window.ir.vpUrl) {\r\n const logMessage = message.replace(/(<([^>]+)>)/gi, '');\r\n\r\n const dataLayer = window.dataLayer || [];\r\n dataLayer.push({\r\n event: 'Error',\r\n category: 'Functional Error',\r\n action: window.ir.vpUrl,\r\n label: logMessage\r\n });\r\n }\r\n },\r\n\r\n addShowPasswordButton() {\r\n const passwordInput = document.getElementById('Password');\r\n if (passwordInput) {\r\n const button = this.$refs[showPasswordButtonRef];\r\n\r\n passwordInput.parentElement.appendChild(button);\r\n }\r\n },\r\n removeShowPasswordButton() {\r\n const passwordInput = document.getElementById('Password');\r\n if (passwordInput) {\r\n const button = this.$refs[showPasswordButtonRef];\r\n\r\n passwordInput.parentElement.removeChild(button);\r\n }\r\n },\r\n secondBtnHandler() {\r\n console.log('SECOND_BTN_CLICKED');\r\n }\r\n }\r\n});\r\n","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport api from \"../mixins/api\";\r\n\r\nVue.component('assistance', {\r\n inject: [\"$validator\"],\r\n mixins: [api],\r\n data() {\r\n return {\r\n storeName: this.$options._componentTag,\r\n ErrorMessage: null\r\n }\r\n },\r\n props: {\r\n MessageSendBy: String\r\n },\r\n created() {\r\n this.$store.registerModule(this.storeName, {\r\n namespaced: true,\r\n\r\n state: {\r\n model: {\r\n PhoneNumber: null,\r\n Email: null,\r\n BirthDate: null,\r\n MessageSendBy: this.MessageSendBy\r\n }\r\n },\r\n\r\n mutations: {\r\n mutate(state, payload) {\r\n state.model = payload;\r\n }\r\n }\r\n });\r\n },\r\n computed: {\r\n Model: function () {\r\n return this.$store.state[this.storeName].model;\r\n }\r\n },\r\n methods: {\r\n getNewPassword($event, sendBy) {\r\n $event.preventDefault();\r\n\r\n this.$validator.validate()\r\n .then(isFormValid => {\r\n if (!isFormValid) return\r\n\r\n const transitionTo = sendBy == 1 ? \"newpasswordviasmsrequested\" : \"newpasswordviaemailrequested\";\r\n axios.post(this.api.getNewPassword, {\r\n ...this.Model\r\n }).then(response => {\r\n this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model[transitionTo] = {\r\n ...this.Model,\r\n responseMessage: response.data.Message\r\n };\r\n this.$parent.$parent.changeStateHandler(transitionTo);\r\n }, (err => {\r\n this.ErrorMessage = err.Message;\r\n }));\r\n })\r\n },\r\n goBack() {\r\n this.$parent.$parent.onBackHandler();\r\n },\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n startOver() {\r\n this.changeState(ir.uiRouter.initialState);\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\n\r\nVue.component('new-login-email', {\r\n methods: {\r\n goBack() {\r\n this.$parent.$parent.onBackHandler();\r\n },\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n startOver() {\r\n this.changeState(ir.uiRouter.initialState);\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport api from \"../mixins/api\";\r\n\r\nVue.component('change-password', {\r\n inject: [\"$validator\"],\r\n mixins: [api],\r\n data() {\r\n return {\r\n storeName: this.$options._componentTag,\r\n ErrorMessage: null\r\n }\r\n },\r\n created() {\r\n this.$store.registerModule(this.storeName, {\r\n namespaced: true,\r\n\r\n state: {\r\n model: {\r\n Email: null,\r\n BirthDate: null,\r\n }\r\n },\r\n\r\n mutations: {\r\n mutate(state, payload) {\r\n state.model = payload;\r\n }\r\n }\r\n });\r\n },\r\n computed: {\r\n Model: function () {\r\n return this.$store.state[this.storeName].model;\r\n }\r\n },\r\n methods: {\r\n goBack() {\r\n this.$parent.$parent.onBackHandler();\r\n },\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n startOver() {\r\n this.changeState(ir.uiRouter.initialState);\r\n },\r\n changePassword($event) {\r\n $event.preventDefault();\r\n\r\n this.$validator.validate()\r\n .then(isFormValid => {\r\n if (!isFormValid) return\r\n this.ErrorMessage = null;\r\n axios.post(this.api.changePassword, {\r\n ...this.Model\r\n }).then(response => {\r\n this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model['changePassword'] = {\r\n ResponseMessage: response.data.Message\r\n };\r\n this.$parent.$parent.changeStateHandler('newpasswordchanged');\r\n }, (err => {\r\n if (err == \"UserEmail\") {\r\n this.$parent.$parent.changeStateHandler('newpassword');\r\n }\r\n this.ErrorMessage = err.response.data.Message;\r\n }));\r\n })\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\n\r\nVue.component('changed-password', {\r\n data() {\r\n return {\r\n responseMessage: ''\r\n }\r\n },\r\n mounted() {\r\n const passwordChanged = this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model.changePassword;\r\n if (passwordChanged.ResponseMessage) {\r\n this.responseMessage = passwordChanged.ResponseMessage;\r\n }\r\n },\r\n methods: {\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport api from \"../mixins/api\";\r\n\r\nVue.component('new-login-email-recovery-email', {\r\n inject: [\"$validator\"],\r\n mixins: [api],\r\n data() {\r\n return {\r\n storeName: this.$options._componentTag,\r\n ErrorMessage: null\r\n }\r\n },\r\n props: {\r\n MessageSendBy: String\r\n },\r\n created() {\r\n this.$store.registerModule(this.storeName, {\r\n namespaced: true,\r\n\r\n state: {\r\n model: {\r\n BirthDate: null,\r\n PhoneNumber: null,\r\n RecoveryEmail: null,\r\n MessageSendBy: this.MessageSendBy,\r\n ConfirmationMessage: null //where is it set????\r\n }\r\n },\r\n\r\n mutations: {\r\n mutate(state, payload) {\r\n state.model = payload;\r\n }\r\n }\r\n });\r\n },\r\n computed: {\r\n Model: function () {\r\n return this.$store.state[this.storeName].model;\r\n }\r\n },\r\n methods: {\r\n goBack() {\r\n this.$parent.$parent.onBackHandler();\r\n },\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n startOver() {\r\n this.changeState(ir.uiRouter.initialState);\r\n },\r\n submitGetNewLoginForm($event, sendBy) {\r\n $event.preventDefault();\r\n\r\n this.$validator.validate()\r\n .then(isFormValid => {\r\n if (!isFormValid) return\r\n\r\n this.getNewLoginEmail(sendBy);\r\n })\r\n\r\n },\r\n clickGetNewLoginEmail($event) {\r\n $event.preventDefault();\r\n\r\n this.getNewLoginEmail();\r\n },\r\n getNewLoginEmail(sendBy) {\r\n if (!!this.Model.MessageSendBy && !!this.Model.BirthDate && (!!this.Model.PhoneNumber || !!this.Model.RecoveryEmail)) {\r\n const transitionTo = sendBy == 1 ? \"getnewloginemailviasmsrequested\" : \"getnewloginemailviaemailrequested\";\r\n\r\n axios.post(this.api.getNewLoginEmail, {\r\n ...this.Model\r\n })\r\n .then(response => {\r\n this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model['newLoginEmailRecoveryEmail'] = {\r\n ...this.Model,\r\n MessageSendBy: sendBy,\r\n ResponseMessage: response.data.Message\r\n };\r\n this.$parent.$parent.changeStateHandler(transitionTo);\r\n }, (err => {\r\n this.ErrorMessage = err.Message;\r\n }));\r\n }\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport api from \"../mixins/api\";\r\n\r\nVue.component('new-login-email-requested', {\r\n mixins: [api],\r\n computed: {\r\n Model: function () {\r\n return this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model;\r\n }\r\n },\r\n created() {\r\n if (this.Model.newLoginEmailRecoveryEmail.MessageSendBy === {} ||\r\n this.Model.newLoginEmailRecoveryEmail.BirthDate === {} ||\r\n (this.Model.newLoginEmailRecoveryEmail.MessageSendBy == 3 && this.Model.newLoginEmailRecoveryEmail.RecoveryEmail === {}) ||\r\n (this.Model.newLoginEmailRecoveryEmail.MessageSendBy == 1 && this.Model.newLoginEmailRecoveryEmail.PhoneNumber === {})) {\r\n this.changeState('login');\r\n }\r\n },\r\n methods: {\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n getLoginEmailAgain() {\r\n axios.post(this.api.getNewLoginEmail, {\r\n RecoveryEmail: this.Model.newLoginEmailRecoveryEmail.RecoveryEmail,\r\n BirthDate: this.Model.newLoginEmailRecoveryEmail.BirthDate,\r\n PhoneNumber: this.Model.newLoginEmailRecoveryEmail.PhoneNumber,\r\n MessageSendBy: this.Model.newLoginEmailRecoveryEmail.MessageSendBy\r\n }).then(response => {\r\n this.responseMessage = response.data.Message;\r\n }, (err => {\r\n this.responseMessage = err.Message;\r\n }));\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\n\r\nVue.component('new-password', {\r\n methods: {\r\n goBack() {\r\n this.$parent.$parent.onBackHandler();\r\n },\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n startOver() {\r\n this.changeState(ir.uiRouter.initialState);\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport api from \"../mixins/api\";\r\n\r\nVue.component('new-password-via-email', {\r\n mixins: [api],\r\n computed: {\r\n Model: function () {\r\n return this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model;\r\n }\r\n },\r\n methods: {\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n getNewPasswordAgain() {\r\n axios.post(this.api.getNewPassword, {\r\n ...this.Model.newpasswordviaemailrequested\r\n }).then(response => {\r\n this.Model.newpasswordviaemailrequested.responseMessage = response.data.Message;\r\n }, (err => {\r\n this.Model.newpasswordviaemailrequested.responseMessage = err.Message;\r\n }));\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport api from \"../mixins/api\";\r\n\r\nVue.component('new-password-unblocked-account', {\r\n mixins: [api],\r\n props: {\r\n SendBySelection:String\r\n },\r\n data() {\r\n return {\r\n passwordRequested: false,\r\n responseMessage: null,\r\n ErrorMessage: null\r\n }\r\n },\r\n mounted() {\r\n this.sendBy(this.SendBySelection);\r\n },\r\n computed: {\r\n Model: function () {\r\n return this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model.deblockAccount;\r\n }\r\n },\r\n methods: {\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n goBack() {\r\n this.$parent.$parent.onBackHandler();\r\n },\r\n startOver() {\r\n this.changeState(ir.uiRouter.initialState);\r\n },\r\n sendBy(sendBy) {\r\n if (!!this.Model.BirthDate && !!sendBy) {\r\n let phoneNumber, email;\r\n if (sendBy == 1 && !!this.Model.Options.SMS) {\r\n phoneNumber = this.Model.Options.SMS;\r\n }\r\n if (sendBy == 2 && !!this.Model.Options.Email) {\r\n email = this.Model.Options.Email;\r\n }\r\n if (sendBy == 3 && !!this.Model.Options.RecoveryEmail) {\r\n email = this.Model.Options.RecoveryEmail;\r\n }\r\n if (!!phoneNumber || !!email) {\r\n axios.post(this.api.getNewPassword, {\r\n Email: email,\r\n BirthDate: this.Model.BirthDate,\r\n PhoneNumber: phoneNumber,\r\n MessageSendBy: sendBy\r\n }).then(response => {\r\n this.passwordRequested = true;\r\n this.responseMessage = response.data.Message;\r\n }, (err => {\r\n this.ErrorMessage = err.Message;\r\n }));\r\n }\r\n }\r\n }\r\n }\r\n})","import Vue from \"vue\";\r\nimport axios from \"axios\";\r\nimport api from \"../mixins/api\";\r\n\r\nVue.component('deblock-account', {\r\n inject: [\"$validator\"],\r\n mixins: [api],\r\n data() {\r\n return {\r\n storeName: this.$options._componentTag,\r\n ErrorMessage: null\r\n }\r\n },\r\n created() {\r\n this.$store.registerModule(this.storeName, {\r\n namespaced: true,\r\n\r\n state: {\r\n model: {\r\n Email: null,\r\n BirthDate: null,\r\n }\r\n },\r\n\r\n mutations: {\r\n mutate(state, payload) {\r\n state.model = payload;\r\n }\r\n }\r\n });\r\n },\r\n computed: {\r\n Model: function () {\r\n return this.$store.state[this.storeName].model;\r\n }\r\n },\r\n mounted() {\r\n const cachedEmail = this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model.email;\r\n if (cachedEmail) {\r\n this.Model.Email = cachedEmail;\r\n }\r\n },\r\n methods: {\r\n goBack() {\r\n this.$parent.$parent.onBackHandler();\r\n },\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n startOver() {\r\n this.changeState(ir.uiRouter.initialState);\r\n },\r\n deblockAccount($event) {\r\n $event.preventDefault();\r\n\r\n this.$validator.validate()\r\n .then(isFormValid => {\r\n if (!isFormValid) return\r\n\r\n axios.post(this.api.deblockAccount, {\r\n ...this.Model\r\n }).then(response => {\r\n this.$store.state[this.$parent.$parent.$parent.$options._componentTag].model['deblockAccount'] = {\r\n ...this.Model,\r\n Options: response.data.Options\r\n };\r\n this.$parent.$parent.changeStateHandler('newpasswordselectorunblockedaccount');\r\n }, (err => {\r\n this.ErrorMessage = err.Message;\r\n }));\r\n })\r\n }\r\n }\r\n})","import Vue from 'vue';\r\nimport axios from 'axios';\r\n// import gsap from 'gsap';\r\nimport { IS_DEV } from '@Shared/settings';\r\nimport { loadGSAP } from '@Shared/utils/gsap-utils';\r\n\r\nVue.component('login-manager', {\r\n data() {\r\n return {\r\n rawTemplate: ''\r\n };\r\n },\r\n computed: {\r\n // TODO 2021-06-01 AndrewKim: This doesn't look like it's being used anywhere. I think we can delete this.\r\n Model: function () {\r\n return this.$store.state[ this._storeName ].model;\r\n }\r\n },\r\n async created() {\r\n this._storeName = this.$options._componentTag;\r\n this._currentStateName = '';\r\n this._currentState = {\r\n name: '',\r\n options: {},\r\n rawTemplate: ''\r\n };\r\n this._statesHistory = [];\r\n this._states = [ ...ir.uiRouter.states ];\r\n this._initialStateName = '';\r\n\r\n this.setInitialState();\r\n\r\n this.$store.registerModule(this._storeName, {\r\n namespaced: true,\r\n state: {\r\n model: {}\r\n },\r\n mutations: {\r\n mutate(state, payload) {\r\n state.model = payload;\r\n }\r\n }\r\n });\r\n\r\n this.$eventBus.$emit('loginManager:IsLoadingStatus', true);\r\n\r\n // Moving this logic into created results in a slightly faster load time\r\n this._currentState = this.findState(this._currentStateName);\r\n await this.requestStateTemplate(this._currentState, (this._currentStateName !== this._initialStateName));\r\n },\r\n methods: {\r\n pushHistory(stateName) {\r\n this._statesHistory.push(stateName);\r\n },\r\n updateStateRawTemplate(name, rawTemplate) {\r\n this._states = this._states.map((state) => {\r\n if (state.name === name) {\r\n state.rawTemplate = rawTemplate;\r\n }\r\n return state;\r\n });\r\n },\r\n async scrollPageUp() {\r\n const { scrollingElement } = document;\r\n\r\n (!window.gsap && await loadGSAP());\r\n\r\n if (scrollingElement.scrollTop) {\r\n gsap.to(scrollingElement, { scrollTop: 0, ease: 'quad.out', duration: 0.3 });\r\n }\r\n },\r\n async requestStateTemplate(state, omitStatePush = false) {\r\n try {\r\n\r\n const { data } = await axios.get(state.options.views.myzone.templateUrl);\r\n\r\n this.updateStateRawTemplate(state.name, data);\r\n\r\n this.rawTemplate = data;\r\n\r\n (!omitStatePush && this.pushHistory(this._currentStateName));\r\n\r\n this._currentStateName = state.name;\r\n\r\n // await this.$nextTick();\r\n }\r\n catch (error) {\r\n (IS_DEV && console.error('requestStateTemplate error:', error));\r\n }\r\n finally {\r\n this.$eventBus.$emit('loginManager:IsLoadingStatus', false);\r\n }\r\n },\r\n findState(stateName) {\r\n return this._states.find(state => state.name === stateName);\r\n },\r\n async onStateChange(newStateName, omitStatePush = false) {\r\n this._currentState = this.findState(newStateName);\r\n\r\n if (!this._currentState.rawTemplate) {\r\n await this.requestStateTemplate(this._currentState, omitStatePush);\r\n }\r\n else {\r\n this.rawTemplate = this._currentState.rawTemplate;\r\n\r\n if (!omitStatePush) {\r\n this.pushHistory(this._currentStateName);\r\n }\r\n\r\n this._currentStateName = newStateName;\r\n this.$eventBus.$emit('loginManager:IsLoadingStatus', false);\r\n }\r\n\r\n await this.$nextTick();\r\n await this.scrollPageUp();\r\n },\r\n\r\n goBack() {\r\n this.onStateChange(this._statesHistory.pop(), true);\r\n },\r\n changeState(state) {\r\n this.$parent.$parent.changeStateHandler(state);\r\n },\r\n startOver() {\r\n this.changeState(this._initialStateName);\r\n },\r\n\r\n /**\r\n * @function getSubRoute.\r\n * @description This method will get the has value from the url. Valid hash values are state object names.\r\n * @return {string}\r\n *\r\n * @author Andrew Kim \r\n */\r\n getSubRoute() {\r\n return window.location.hash.replace('#', '');\r\n },\r\n validateSubRoute(subRoute) {\r\n const isValid = this._states.some(({ name }) => name === subRoute);\r\n\r\n if (!isValid && IS_DEV) {\r\n console.error(`Subroute: ${subRoute}, is not a valid value.`);\r\n }\r\n\r\n return isValid;\r\n },\r\n setInitialState() {\r\n const { uiRouter: { initialState } } = ir;\r\n const subRoute = this.getSubRoute();\r\n\r\n this._initialStateName = initialState;\r\n\r\n if (subRoute && this.validateSubRoute(subRoute)) {\r\n this._statesHistory.push(this._initialStateName);\r\n this._currentStateName = subRoute;\r\n }\r\n else {\r\n this._currentStateName = this._initialStateName;\r\n }\r\n }\r\n }\r\n});\r\n","import Vue from \"vue\";\r\n\r\nVue.directive(\"data-ui-sref\", {\r\n inserted: function (el, binding, vnode) {\r\n const clickHandler = (e) => {\r\n e.preventDefault();\r\n vnode.context.changeState(binding.value);\r\n }\r\n el.addEventListener('click', clickHandler);\r\n el.clickHandler = clickHandler;\r\n // add href attr for styles to be applied\r\n el.href = \"\";\r\n\r\n },\r\n unbind: function (el, binding, vnode) {\r\n el.removeEventListener('click', el.clickHandler);\r\n }\r\n});\r\n"],"names":["Vue","props","sliderMin","String","sliderMax","sliderInterval","storeName","sliderFrontendModel","sliderTooltipLabel","sliderChoices","disabled","api","Object","repeatableScope","repeatableIndex","Number","computed","Model","this","$store","state","model","data","slider","tooltip","tooltip_placement","dotSize","width","height","silent","JSON","parse","tooltips","mounted","vm","initializeChoiceSlider","initializeRangeSlider","$root","$on","e","detail","concat","methods","options","min","toString","max","sliderConfig","marks","interval","tooltipFormatter","val","CurrentCurrency","toLocaleString","minimumFractionDigits","assign","choices","labels","idx","length","choice","push","v","t","config","label","destroyed","$off","mixins","inject","siteKey","captchaElement","selfValidate","Boolean","isCaptchaLoaded","size","created","$eventBus","setCaptchaSize","initCaptcha","beforeDestroy","intervalId","setInterval","window","grecaptcha","render","clearInterval","sitekey","setCallbacks","recaptchaCallback","captchaValue","axios","request","url","validateCaptcha","method","headers","skipLoading","then","response","IsCaptchaValid","reset","recaptchaExpiredCallback","formId","stylesReady","sendingInProgress","beforeCreate","CaptchaValue","submitForm","$validator","validate","isFormValid","formParams","FormID","post","sendComplimentsComplaintsForm","_ref","undefined","resetCaptcha","ConfirmationPage","location","catch","handleInvalidForm","components","flatPickr","dateFormat","defaultDate","dependentDateField","dependentDateOffsetDays","bindingName","minDate","maxDate","showDatePicker","inputMask","isFinishedLoading","datepickerIsOpen","altInput","allowInput","$attrs","altFormat","allowInvalidPreload","clickOpens","wrap","disableMobile","onReady","datepicker","_input","addEventListener","event","trySetDate","keyCode","preventDefault","value","setTimeout","open","monthNav","tabindex","focus","dateInputSelector","document","querySelector","calendarDiv","loadingModalSelector","key","style","display","classList","remove","onOpen","set","from","startOfDay","parseISO","to","endOfDay","onClose","onChange","format","processFormat","inputElements","$el","getElementsByTagName","type","replace","isDateFormatted","date","parsedDate","parseDate","formatDate","valueOverride","setDate","errors","items","find","item","field","$nextTick","callParentMethod","callVueInstanceMethod","onchangecallback","selectedDates","dateStr","emailStatusLoading","emailStatusSuccess","emailStatusError","showSuccessPopup","selectedItems","querySelectorAll","forEach","checkboxLabel","checkboxInput","checked","ulElement","checkboxes","checkbox","getAttribute","subscribeEmail","InsuranceTypeList","join","emailSubscribe","result","dismissPopup","resetForm","fieldName","fieldLabel","errorMessage","first","h","class","domProps","innerHTML","watch","ir","vpUrl","errorMsgDecoded","sharedUtils","decodeHTML","logMessage","dataLayer","allowedFiletypes","required","filetypeErrorMesage","filesizeErrorMesage","fileUploadErrorMessage","beforeSubmitQueue","Function","formApi","extend","getMessage","files","ref","isNaN","nSize","every","file","extensions","regex","RegExp","test","name","img","binary","b64EncodeUnicode","str","btoa","encodeURIComponent","match","p1","fromCharCode","handleFileUpload","$refs","isImage","getImage","uploadReady","i","attachment","File","Data","callback","uploadFile","done","forceFocus","reader","FileReader","imageRes","target","readAsDataURL","deleteFile","index","dt","DataTransfer","fileArray","Array","isArray","splice","itm","add","Attachment","formData","FormData","append","error","addError","validateInput","onBeforeSubmitQueue","onAfterSubmitQueue","$options","_componentTag","registerModule","namespaced","mutations","mutate","payload","pushOnBeforeSubmitQueue","pushOnAfterSubmitQueue","submit","fileInput","isValidFile","asyncParallelTasks","_objectSpread","prop","hasOwnProperty","Name","navigationUrl","attributes","href","IS_DEV","yearsCount","default","yearIncrement","isExclusiveDateCheck","monthYearSeparator","currentYear","getYear","endOfToday","currentMonth","years","map","year","pad","parseInt","months","month","enCA","localize","monthYearInput","inputName","modelValue","get","daysInSelectedMonth","daysInMonth","todayDay","getDate","Date","genDate","emitValue","newValue","newDate","getMonth","newVal","oldVal","validateAll","$emit","reportInProgress","submitReport","sendFraudReportMail","discountsTableModalId","discountsTableModalUrl","IsEmpty","NoDiscount","NoClaimsMade","OneClaim","TwoClaim","OnliaClaimsFreeYears","showDiscountsTableModal","displayOptions","keys","fields","pristine","valid","accidentsCount","AccidentsCount","calculate","calculateSavings","EligibleForAccidentProtection","showDiscountsTable","vueSlider","sliderLabelMin","sliderLabelMax","setValue","setDotHandleTabIndex","setSliderDotLabel","getElementsByClassName","dotHandle","setAttribute","sliderDots","sliderDot","hour","minute","hours","minutes","split","onSelect","updateModel","el","hasAttribute","formGroupEl","closest","labelEl","textContent","addAriaLabel","formField","trim","bind","inserted","binding","vnode","context","directives","o","expression","modelDrilldown","level","componentUpdated","dropdownOptions","option","fullPropertyName","property","defaultPropertyValue","lastIndexOfproperty","lastIndexOf","propertyObjName","substr","propertyName","propertyValue","_get","isJson","currentField","setFlags","invalid","optionKey","optionValue","dynamicListApi","getValueFromAttribute","dynamicListText","dynamicListValue","dynamicListRequestModel","dynamicListResponseModel","dynamicListResponseModelKey","requestModel","getRequestModel","updateResponse","formatResponse","extractPropertyValue","obj","dataset","reordered","oldVnode","currentFieldName","rules","val_compulsory","update","currencyValue","currencyArg","arg","currencyStyle","formatCurrency","symbol","dateString","isValid","locale","__dateFnsLocale__","ariaLabel","tagName","removeColon","targetEl","isDateField","loadScript","id","scriptAttributes","async","applyInputMask","inputMaskConfig","autoUnmask","showMaskOnHover","showMaskOnFocus","jitMasking","definitions","cardinality","casing","y","validator","prevalidator","alias","inputFormat","parentNode","inputField","Inputmask","mask","onUnMask","maskedValue","unmaskedValue","handler","inputmask","unmaskedvalue","events","radioOutlineController","toggleOutline","unbind","_ref2","removeEventListener","clear","SwitchOutlineController","init","vNode","showPassword","elm","inputLabel","trackedEvent","elementUniqueName","vpLastInputTrack","requireAll","require","shared","constructor","activeOutline","_activeOutline","alpha","arguments","outline","parentElement","gsap","loadGSAP","autoAlpha","_focusInTimeout","_isMouseDown","handleFocusIn","handleFocusOut","handleMouseDown","handleMouseUp","handleClick","_events","element","clearFocusInTimeout","clearTimeout","setFocusInTimeout","currentTarget","_ref3","_ref4","opacity","destroy","_ref5","Promise","allSettled","tasks","task","resolve","reject","taskTimeout","callbackError","status","bottomNavHeightMobile","bottomNavHeight","topNavHeight","HEADER_NAV","generateGuid","d","getTime","performance","now","c","r","Math","random","floor","attributeName","path","shift","commit","getComponent","componentName","component","parent","$parent","jsonString","jsonValue","num","s","f","dateInput","firstSibling","children","childEl","flags","flag","touched","dirty","elementWithError","offsetParent","visibleParent","getVisibleParent","headerHeight","getters","breakpointMobile","stepBarHeight","STEP_BAR_HEIGHT","topOffset","scrollTop","getElementTop","scrollPage","displayifs","containerId","toggleContainer","displayedFields","filter","displayif","ConditionalIf","toggleElement","removeDisplayif","timestamp","show","propertyValues","compareValues","conditions","logicalnots","operator","valDisplayifOperator","toggleDisplayifContainer","selector","containerElement","displayifContainerId","registerDisplayif","validateConditions","getPropertiesMatrix","valDisplayifProperty","propValue","parentProperty","rootProperty","setModelValue","$watch","valDisplayifValue","getValuesMatrix","valDisplayifCondition","getConditionsMatrix","valDisplayifLogicalnot","getLogicalnotsMatrix","Validator","args","dependentDateValue","differenceInCalendarYears","abs","invalidateFalse","computesRequired","valRequiredifOperator","toggleDisplay","valRequiredifDisplayif","toggleRequiredValidator","fieldRules","valRequiredifProperty","propertyUnwatch","oldValue","propertyKey","compulsoryifWatchers","valRequiredifValue","valRequiredifCondition","valRequiredifLogicalnot","isWithinInterval","start","end","offsetDateDays","parsedDependentDate","isAfter","differenceInDays","en","testValue","strValue","msg","valApiMessage","apiUrl","valApiUrl","vvName","val_zipcode","Id","IsValid","install","conditionMethods","isnull","compareValue","toLowerCase","in","lowerCasedPropertyValue","contain","valueItems","lowerCasedCompareValue","operatorMethods","and","validA","validB","or","values","properties","logicalnot","conditionalif","condition","currentValid","validateCondition","formGroupElements","getParents","showElement","hideElement","login","showPasswordButtonRef","loginErrorMessage","isPasswordVisible","GoalId","Email","IsEmailRemebered","Password","email","showPasswordButtonAttributes","variant","tag","title","returnUrlParam","indexOf","redirectUrl","substring","ReturnUrl","decodeURIComponent","addShowPasswordButton","removeShowPasswordButton","changeState","changeStateHandler","togglePassword","performLogin","res","RedirectUrl","RedirectState","LoginErrorMessage","handleErrorMessage","err","Message","message","category","action","passwordInput","getElementById","button","appendChild","removeChild","secondBtnHandler","ErrorMessage","MessageSendBy","PhoneNumber","BirthDate","getNewPassword","$event","sendBy","transitionTo","responseMessage","goBack","onBackHandler","startOver","uiRouter","initialState","changePassword","ResponseMessage","passwordChanged","RecoveryEmail","ConfirmationMessage","submitGetNewLoginForm","getNewLoginEmail","clickGetNewLoginEmail","newLoginEmailRecoveryEmail","getLoginEmailAgain","getNewPasswordAgain","newpasswordviaemailrequested","SendBySelection","passwordRequested","deblockAccount","phoneNumber","Options","SMS","cachedEmail","rawTemplate","_storeName","_currentStateName","_currentState","_statesHistory","_states","states","_initialStateName","setInitialState","findState","requestStateTemplate","pushHistory","stateName","updateStateRawTemplate","scrollPageUp","scrollingElement","ease","duration","omitStatePush","views","myzone","templateUrl","onStateChange","newStateName","pop","getSubRoute","hash","validateSubRoute","subRoute","some","clickHandler"],"sourceRoot":""}