{"version":3,"sources":["webpack:///./src/Model/notificationBox/types.ts","webpack:///./src/assets/images/trash.svg","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/MultiParticipantRules.vue?13fe","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/MultiParticipantRules.vue?095b","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/MultiParticipantRules.vue?8aa2","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/MultiParticipantRules.vue","webpack:///./node_modules/core-js/modules/es.regexp.flags.js","webpack:///./src/popupcomponents/StateModal.vue?3607","webpack:///./src/popupcomponents/StateModal.vue?1bb3","webpack:///./src/popupcomponents/StateModal.vue?8199","webpack:///./src/popupcomponents/StateModal.vue","webpack:///./src/popupcomponents/StateModal.vue?a0cc","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/EarlyRegistration.vue?f764","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/EarlyRegistration.vue?00ac","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/EarlyRegistration.vue?467c","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/EarlyRegistration.vue","webpack:///./src/commoncomponents/NotificationBox.vue?eee8","webpack:///./src/commoncomponents/NotificationBox.vue?c7af","webpack:///./src/commoncomponents/NotificationBox.vue?fa43","webpack:///./src/commoncomponents/NotificationBox.vue","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/MultiParticipantRules.vue?0d7c","webpack:///./src/commoncomponents/NotificationBox.vue?4039","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.vue?0162","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.vue?5429","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.vue?1122","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.vue","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.less?12aa","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/EarlyRegistration.vue?6d46","webpack:///./src/commoncomponents/progressButton/progressButton.ts"],"names":["NotificationBoxType","module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","screenText","getScreenText","_l","rule","idx","key","rules","length","on","$event","$emit","_e","ref","refInFor","validationMode","Eager","scopedSlots","_u","fn","errors","invalid","validated","directives","name","rawName","value","expression","class","discountUnitAmountSync","discountType","PERCENT_RATE","domProps","onAmountUpdated","target","composing","$set","style","visibility","staticStyle","staticRenderFns","MultiParticipantRules","ScreenText","AmountUnitType","VeeValidateProviderMode","formRef","reset","message","getErrorMsgLabel","registerValidators","discountAmount","percentInputRequiredValidator","Number","Vue","tslib_1","Ref","Prop","required","PropSync","type","String","Watch","deep","Component","components","ValidationProvider","DropdownList","component","DESCRIPTORS","objectDefinePropertyModule","regExpFlags","UNSUPPORTED_Y","flags","f","RegExp","prototype","configurable","get","isVisibleSync","onCancel","iconClass","config","title","description","cancelButtonLabel","btnClass","onConfirm","confirmButtonLabel","StateModal","StateModalType","WARNING","ERROR","BaseModal","earlyDiscountEndsSync","discountRuleListDropdown","onSelectSessionStart","earlyAmountValueSync","proxy","replace","EarlyRegistration","ValidationObserver","NotificationBox","typeStyleClass","_t","ToggleSwitch","toLocaleLowerCase","default","Info","isConfigurationDiscountMenuOpenComputed","onClose","handleSubmit","preventDefault","beforeOnSave","typeListDropdown","onSelectType","model","callback","$$v","currentTypeSelection","isSelectInvalid","id","MULTI_PARTICIPANT","modifiers","trim","$forceUpdate","discountUnitType","_q","discountUnitAmount","FIXED_AMOUNT","SELECT_TYPE_VALUE","rulesVal","formDiscountObserverRef","onAddMultiParticipantRule","onRemoveMultiParticipantRule","onPercentageUpdate","earlyDiscountEnds","earlyAmountValue","onChangeSessionStart","isSaveDisabled","isModalVisible","modalConfig","toggleConfirmationModal","handleConfirm","DiscountConfiguration","MULTI_PARTICIPANT_INITIAL_SEQUENCE_NUMBER","MULTI_PARTICIPANT_MAX_SEQUENCE_NUMBER","DiscountType","DISCOUNT_APPLICATION_SCOPE","$refs","discountForm","isUnitResetNeeded","earlyDiscountListOptions","TimeRangeType","MONTHS","DAYS","WEEKS","singleSelect","showSelectLabel","dropdownList","typeListOptions","EARLY_REGISTRATION","discountDescriptionRequiredValidator","initMultiParticipantRuleList","isTypeValid","touched","discountListComputed","cleanMultiParticipantAmounts","paymentsModule","setIsConfiguratioDiscountMenuOpen","isMenuOpen","currentDiscountItem","getSelectedDiscount","setExistingDiscountValues","discountTypeId","set","targetDiscountTypeSelection","find","discountItem","amountUnitType","participants","earlyRegistrationEntry","timeRangeUnit","amount","timeRangeType","resetInputs","selection","onResetEarlyRegistrationDiscount","onResetMultiParticipantRules","sequenceStartNumber","discountRules","participantCounterList","Array","from","_","index","rawRuleStructure","error","errorText","targetDiscountRules","map","item","isDiscountRulesDisabled","ruleAmount","disable","ruleItem","val","lastRuleItem","pop","filteredDropdownItems","filter","ruleItemValue","newRule","push","updatedRules","sessionStartItemReference","SET_SELECTED_AUTOMATIC_DISCOUNT","validate","isFormDiscountValid","onSave","onUpdate","currentActiveRules","getActiveRules","accountId","getAccountId","requestDiscountObj","appliesTo","createAutomaticDiscount","fetchAutomaticDiscountsByAccount","APP_UTILITIES","showToastMessage","ToastType","Error","selectedDiscount","isActive","updateAutomaticDiscount","parseInt","accountIdCookie","getCookie","newRules","discountList","isConfigurationDiscountMenuOpen","OffCanvas","ProgressButton","progressButtonWidth","buttonIndexReceived","buttonClick","obj","buttonIndex","isValidation","tempDisableButton","percent","progressButtonDelay","i","interval","setInterval","progressBar","clearInterval","apiResponseCode","completeButton","handleError","updateProgress","setProgressResposeDelay","emitMethod","setProgressBeforeRespose","newBttun","document","getElementById","APP_CONST","STYLE","COLOR","PRIMARY_700","NEUTRAL_100","background","reSetprogressBar","element","classList","remove","add","complateButtonProgress","showDelay","setTimeout","Boolean","immediate"],"mappings":"kRAAO,IAAKA,EAAZ,2CAAYA,GACVA,iBACAA,qBACAA,uBACAA,uBAJF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,MAAMC,MAAME,aAAW,OAAG,MAAa,KAC9IG,EAAQ7O,QACV6O,EAAQ7O,MAAM2O,WAAa3O,QAGhC,EA3IgC,CAASgB,QAK1CC,QADCE,eAAK,CAAEkD,QAAS,YAAW,iCAI5BpD,QADCE,eAAK,CAAEkD,QAAS,OAAM,0CAIvBpD,QADCE,eAAK,CAAEkD,QAAS,KAAI,sCAIrBpD,QADCE,eAAK,CAAEkD,QAAS,MAAK,8BAItBpD,QADCE,eAAK,CAAEkD,SAAS,KAAO,mCAIxBpD,QADCE,eAAK,CAAEkD,SAAS,KAAQ,gCAIzBpD,QADCE,eAAK,CAAEkD,QAAS,MAAK,kCAItBpD,QADCE,eAAK,CAAEkD,SAAS,KAAQ,qCAIzBpD,QADCE,eAAK,CAAEkD,SAAS,KAAO,oCAGiBpD,QAAxCE,eAAK,CAAEG,KAAM8N,QAAS/K,SAAS,KAAQ,wCAGxCpD,QADCO,eAAM,kBAAmB,CAAEC,MAAM,EAAM4N,WAAW,KAAO,gCAW1DpO,QADCO,eAAM,eAAgB,CAAEC,MAAM,EAAM4N,WAAW,KAAO,qCA3CpCxC,EAAc,QAFlCnL,eAAU,KAEUmL","file":"js/chunk-09135847.191c1ab716ee1757e7a7.1725496708077.min.js","sourcesContent":["export enum NotificationBoxType {\n Info = 'Info',\n Danger = 'Danger',\n Warning = 'Warning',\n Success = 'Success'\n}","module.exports = __webpack_public_path__ + \"img/trash.b8516658.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"discount-configuration-wrapper\"},[_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"description\",\"data-testid\":\"checkout-description\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_PERCENT_RATE\"))+\" \")]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_PERCENT_RATE_SUBHEADER\"))+\" \")])]),_vm._l((_vm.rules),function(rule,idx){return _c('div',{key:idx,staticClass:\"rules-container\"},[_c('div',{staticClass:\"rules-container__header\"},[_c('p',{staticClass:\"rules-container__header-text\"},[_vm._v(\"Rule \"+_vm._s(idx + 1))]),(_vm.rules.length === idx + 1 && idx !== 0)?_c('a',{staticClass:\"rules-container__header-delete\",on:{\"click\":function($event){return _vm.$emit('onRemoveRule')}}},[_c('img',{staticClass:\"rules-container__header-img\",attrs:{\"src\":require(\"../../../../assets/images/trash.svg\")}})]):_vm._e()]),_c('div',{staticClass:\"rules-container__inputs\"},[_c('div',{staticClass:\"rules-container__inputs-field\"},[_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"minimum-participants\",\"data-testid\":\"checkout-name\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_MINIMUM_PARTICIPANTS\"))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])])]),_c('DropdownList',{attrs:{\"id\":\"minimum-participants\",\"dropdown\":rule,\"autoSelectionAllowed\":true}})],1),_c('div',{staticClass:\"rules-container__inputs-field\"},[_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":(\"amount-\" + idx)}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_AMOUNT\"))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])])]),_c('div',{staticClass:\"rules-container__inputs-decorator-container\"},[_c('ValidationProvider',{ref:\"nameObserverRef\",refInFor:true,attrs:{\"rules\":\"percent_input_required\",\"mode\":_vm.validationMode.Eager},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nvar invalid = ref.invalid;\nvar validated = ref.validated;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(rule.ruleAmount),expression:\"rule.ruleAmount\"}],staticClass:\"rules-container__inputs-decorator-input\",class:{\n 'rules-container__inputs-decorator-input--currency':\n _vm.discountUnitAmountSync === _vm.discountType.PERCENT_RATE\n },attrs:{\"id\":(\"amount-\" + idx),\"type\":\"number\",\"min\":\"1\",\"max\":_vm.discountUnitAmountSync === _vm.discountType.PERCENT_RATE\n ? 100\n : 9999999},domProps:{\"value\":(rule.ruleAmount)},on:{\"change\":function($event){return _vm.onAmountUpdated(rule)},\"input\":function($event){if($event.target.composing){ return; }_vm.$set(rule, \"ruleAmount\", $event.target.value)}}}),_c('span',{staticClass:\"form-field-error\",style:({\n visibility: validated && invalid ? 'visible' : 'hidden'\n }),attrs:{\"data-testid\":\"name-required-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}],null,true)}),_c('div',{staticClass:\"rules-container__inputs-decorator-content\",class:_vm.discountUnitAmountSync === _vm.discountType.PERCENT_RATE\n ? 'rules-container__inputs-decorator-content--percent'\n : 'rules-container__inputs-decorator-content--currency'})],1)])])])}),(_vm.isAddRuleVisible)?_c('div',{staticStyle:{\"margin-bottom\":\"1rem\"}},[_c('a',{staticClass:\"add-fee-link\",attrs:{\"target\":\"_blank\"},on:{\"click\":function($event){return _vm.$emit('onAddRule')}}},[_c('span',{staticClass:\"fee-button-text\"},[_c('i',{staticClass:\"fa-solid fa-plus uk-margin-small-right\"}),_c('span',[_vm._v(_vm._s(_vm.screenText.getScreenText(\"LABEL_RULE\")))])])])]):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport {\n Vue,\n Component,\n Ref,\n PropSync,\n Watch,\n Prop\n} from 'vue-property-decorator';\nimport { ScreenText } from '@/lang/ScreenText';\nimport { ValidationObserver, ValidationProvider } from 'vee-validate';\nimport DropdownList from '@/ui-components/dropdownListBx/DropdownList.vue';\nimport { DropdownListOptions } from '@/ui-components/dropdownListBx/types';\nimport { VeeValidateProviderMode } from '@/Model/forms/types';\nimport { ProviderInstance } from 'vee-validate/dist/types/types';\nimport { percentInputRequiredValidator } from '@/validators/payments/validators';\nimport { AmountUnitType } from '@/Model/payments/types';\n\ntype CustomDropdownOptions = DropdownListOptions & { ruleAmount: string };\n\n@Component({\n components: {\n ValidationProvider,\n DropdownList\n }\n})\nexport default class MultiParticipantRules extends Vue {\n @Ref('nameObserverRef') readonly nameObserverRef?: ProviderInstance;\n @Prop({ required: true }) rules!: CustomDropdownOptions[];\n @PropSync('discountUnitAmount', { type: String, required: true })\n discountUnitAmountSync!: string;\n\n @Prop()\n formRef!: InstanceType;\n\n @Watch('discountUnitAmountSync', { deep: true })\n discountUnitAmountReference(): void {\n this.formRef.reset();\n const message = this.getErrorMsgLabel(this.discountUnitAmountSync);\n this.registerValidators(message);\n }\n\n readonly screenText = new ScreenText();\n readonly discountType = AmountUnitType;\n validationMode = VeeValidateProviderMode;\n\n get isAddRuleVisible() {\n return this.rules.length <= 10 - Number(this.rules[0].value);\n }\n\n getErrorMsgLabel(discountAmount: string): string {\n return discountAmount === AmountUnitType.PERCENT_RATE\n ? this.screenText.getScreenText('RULES_PERCENT_ERROR')\n : this.screenText.getScreenText('AUTOMATIC_PAYMENTS_AMOUNT_ERROR');\n }\n\n created() {\n const message = this.getErrorMsgLabel(this.discountUnitAmountSync);\n this.registerValidators(message);\n }\n\n private registerValidators(message: string = ''): void {\n percentInputRequiredValidator(message);\n }\n\n onAmountUpdated(rule: CustomDropdownOptions): void {\n // Validate that percentage amount doesn't goes over 100%\n if (this.discountUnitAmountSync === AmountUnitType.PERCENT_RATE) {\n this.$emit('onPercentageUpdate', rule);\n }\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiParticipantRules.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiParticipantRules.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MultiParticipantRules.vue?vue&type=template&id=1fce4717&scoped=true&\"\nimport script from \"./MultiParticipantRules.vue?vue&type=script&lang=ts&\"\nexport * from \"./MultiParticipantRules.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MultiParticipantRules.vue?vue&type=style&index=0&id=1fce4717&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1fce4717\",\n null\n \n)\n\nexport default component.exports","var DESCRIPTORS = require('../internals/descriptors');\nvar objectDefinePropertyModule = require('../internals/object-define-property');\nvar regExpFlags = require('../internals/regexp-flags');\nvar UNSUPPORTED_Y = require('../internals/regexp-sticky-helpers').UNSUPPORTED_Y;\n\n// `RegExp.prototype.flags` getter\n// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags\nif (DESCRIPTORS && (/./g.flags != 'g' || UNSUPPORTED_Y)) {\n objectDefinePropertyModule.f(RegExp.prototype, 'flags', {\n configurable: true,\n get: regExpFlags\n });\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('BaseModal',{attrs:{\"isVisible\":_vm.isVisibleSync},on:{\"update:isVisible\":function($event){_vm.isVisibleSync=$event},\"update:is-visible\":function($event){_vm.isVisibleSync=$event},\"closepopup\":_vm.onCancel}},[_c('div',{staticClass:\"uk-margin-bottom\"},[_c('i',{class:_vm.iconClass})]),_c('div',{staticClass:\"change-custom-payment-title uk-margin-auto uk-margin-bottom\"},[_vm._v(\" \"+_vm._s(_vm.config.title)+\" \")]),_c('div',{staticClass:\"change-custom-payment-text uk-margin-medium-bottom\"},[_vm._v(\" \"+_vm._s(_vm.config.description)+\" \")]),_c('div',{staticClass:\"uk-flex uk-flex-right uk-margin-remove-bottom uk-padding-remove-bottom arly-button-container\"},[_c('button',{staticClass:\"btn-secondary uk-margin-small-right uk-margin-remove-bottom\",on:{\"click\":_vm.onCancel}},[_vm._v(\" \"+_vm._s(_vm.config.cancelButtonLabel)+\" \")]),_c('button',{staticClass:\"uk-margin-remove-bottom\",class:_vm.btnClass,on:{\"click\":_vm.onConfirm}},[_vm._v(\" \"+_vm._s(_vm.config.confirmButtonLabel)+\" \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Vue, Component, PropSync, Prop } from 'vue-property-decorator';\nimport BaseModal from '@/popupcomponents/BaseModal.vue';\nimport { StateModalType } from '@/Model/payments/types';\n\n@Component({\n components: {\n BaseModal\n }\n})\nexport default class StateModal extends Vue {\n @PropSync('isVisible') isVisibleSync!: boolean;\n\n @Prop() config!: {\n title: string;\n description: string;\n type: StateModalType;\n cancelButtonLabel: string;\n confirmButtonLabel: string;\n };\n\n onCancel() {\n this.$emit('onClose');\n }\n\n onConfirm() {\n this.$emit('onConfirm');\n }\n\n get iconClass() {\n switch (this.config.type) {\n case StateModalType.WARNING:\n return 'fa-solid fa-triangle-exclamation fa-7x warning-icon';\n\n case StateModalType.ERROR:\n return 'fa-solid fa-trash fa-7x error-icon';\n\n default:\n return '';\n }\n }\n\n get btnClass() {\n switch (this.config.type) {\n case StateModalType.WARNING:\n return 'btn-primary';\n\n case StateModalType.ERROR:\n return 'btn-danger';\n\n default:\n return 'btn-primary';\n }\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StateModal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StateModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./StateModal.vue?vue&type=template&id=2126c934&scoped=true&\"\nimport script from \"./StateModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./StateModal.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./StateModal.vue?vue&type=style&index=0&id=2126c934&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2126c934\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StateModal.vue?vue&type=style&index=0&id=2126c934&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"discount-configuration-wrapper\"},[_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"description\",\"data-testid\":\"checkout-description\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_EARLY_REGISTRATION\"))+\" \")]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText( \"LABEL_DISCOUNT_EARLY_REGISTRATION_SUBHEADER\" ))+\" \")])]),_c('div',{staticClass:\"discount-configuration-input-container\"},[_c('div',{staticClass:\"form-group w-18\"},[_c('label',{staticClass:\"uk-margin-small-bottom\",attrs:{\"for\":\"tax-rate-select\",\"data-testid\":\"tax-rate\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_EARLY_DISCOUNT_ENDS\"))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])]),_c('ValidationProvider',{ref:\"percentInputObserverRef\",attrs:{\"rules\":\"required\",\"mode\":_vm.validationMode.Eager},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nvar invalid = ref.invalid;\nvar validated = ref.validated;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.earlyDiscountEndsSync),expression:\"earlyDiscountEndsSync\"}],attrs:{\"id\":\"discount-ends\",\"type\":\"number\",\"min\":\"1\"},domProps:{\"value\":(_vm.earlyDiscountEndsSync)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.earlyDiscountEndsSync=$event.target.value}}}),_c('span',{staticClass:\"form-field-error\",style:({ visibility: validated && invalid ? 'visible' : 'hidden' }),attrs:{\"data-testid\":\"discount-ends-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}])})],1),_c('div',{staticClass:\"form-group w-60\"},[_c('ValidationProvider',[_c('DropdownList',{attrs:{\"dropdown\":_vm.discountRuleListDropdown,\"autoSelectionAllowed\":false},on:{\"onSelectionChange\":_vm.onSelectSessionStart}})],1)],1),_c('div',{staticClass:\"form-group w-18\"},[_c('label',{staticClass:\"uk-margin-small-bottom\",attrs:{\"for\":\"tax-rate-select\",\"data-testid\":\"tax-rate\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_AMOUNT\"))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])]),_c('ValidationProvider',{ref:\"percentInputObserverRef\",attrs:{\"rules\":\"percent_input_required\",\"mode\":_vm.validationMode.Eager},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nvar invalid = ref.invalid;\nvar validated = ref.validated;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.earlyAmountValueSync),expression:\"earlyAmountValueSync\"}],staticClass:\"input-with-symbol\",class:{\n 'input-with-symbol--percent':\n _vm.discountUnitAmountSync === _vm.discountType.PERCENT_RATE\n },attrs:{\"id\":\"amount\",\"type\":\"number\",\"min\":\"1\",\"max\":_vm.discountUnitAmountSync === _vm.discountType.PERCENT_RATE\n ? 100\n : 9999999},domProps:{\"value\":(_vm.earlyAmountValueSync)},on:{\"change\":_vm.onAmountUpdated,\"input\":function($event){if($event.target.composing){ return; }_vm.earlyAmountValueSync=$event.target.value}}}),_c('span',{staticClass:\"form-field-error\",style:({ visibility: validated && invalid ? 'visible' : 'hidden' }),attrs:{\"data-testid\":\"amount-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}])}),_c('span',{staticClass:\"rules-container__inputs-decorator-content\",class:_vm.discountUnitAmountSync === _vm.discountType.PERCENT_RATE\n ? 'rules-container__inputs-decorator-content--percent'\n : 'rules-container__inputs-decorator-content--currency'})],1)]),(_vm.earlyAmountValueSync)?_c('NotificationBox',{scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('i',{staticClass:\"fa-solid fa-circle-info info-circle-icon\"})]},proxy:true},{key:\"message\",fn:function(){return [_c('span',[_vm._v(_vm._s(_vm.screenText .getScreenText(\"LABEL_DISCOUNT_EARLY_INFO_MESSAGE\") .replace( \"{amount}\", _vm.discountUnitAmountSync === _vm.discountType.PERCENT_RATE ? (_vm.earlyAmountValueSync + \"%\") : (\"$\" + _vm.earlyAmountValueSync) )))])]},proxy:true}],null,false,789220507)}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Vue, Component, Prop, PropSync, Watch } from 'vue-property-decorator';\nimport { ScreenText } from '@/lang/ScreenText';\nimport { VeeValidateProviderMode } from '@/Model/forms/types';\nimport { ValidationObserver, ValidationProvider } from 'vee-validate';\nimport DropdownList from '@/ui-components/dropdownListBx/DropdownList.vue';\nimport { DropdownListItem } from '@/ui-components/dropdownListBx/types';\nimport { AmountUnitType } from '@/Model/payments/types';\nimport NotificationBox from '@/commoncomponents/NotificationBox.vue';\nimport { percentInputRequiredValidator } from '@/validators/payments/validators';\n\n@Component({\n components: {\n ValidationObserver,\n ValidationProvider,\n DropdownList,\n EarlyRegistration,\n NotificationBox\n }\n})\nexport default class EarlyRegistration extends Vue {\n @PropSync('discountUnitAmount', { type: String, required: true })\n discountUnitAmountSync!: string;\n @PropSync('earlyDiscountEnds', { required: true }) earlyDiscountEndsSync!:\n | number\n | null;\n @PropSync('earlyAmountValue', { required: true }) earlyAmountValueSync!:\n | number\n | null;\n @Prop({ required: true }) discountRuleListDropdown!: DropdownListItem[];\n\n @Prop()\n formRef!: InstanceType;\n\n readonly screenText = new ScreenText();\n readonly discountType = AmountUnitType;\n validationMode = VeeValidateProviderMode;\n\n created() {\n const message = this.getErrorMsgLabel(this.discountUnitAmountSync);\n this.registerValidators(message);\n }\n\n @Watch('discountUnitAmountSync', { deep: true })\n discountUnitAmountReference(): void {\n this.formRef.reset();\n const message = this.getErrorMsgLabel(this.discountUnitAmountSync);\n this.registerValidators(message);\n }\n\n private registerValidators(message: string = ''): void {\n percentInputRequiredValidator(message);\n }\n\n getErrorMsgLabel(discountAmount: string): string {\n return discountAmount === AmountUnitType.PERCENT_RATE\n ? this.screenText.getScreenText('RULES_PERCENT_ERROR')\n : this.screenText.getScreenText('AUTOMATIC_PAYMENTS_AMOUNT_ERROR');\n }\n\n onSelectSessionStart(value: DropdownListItem) {\n this.$emit('onChangeSessionStart', value);\n }\n\n onAmountUpdated() {\n // Validate that percentage amount doesn't go over 100%\n if (\n this.discountUnitAmountSync === AmountUnitType.PERCENT_RATE &&\n this.earlyAmountValueSync !== null &&\n this.earlyAmountValueSync > 100\n ) {\n this.earlyAmountValueSync = 100;\n }\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EarlyRegistration.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EarlyRegistration.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./EarlyRegistration.vue?vue&type=template&id=4744d2fe&scoped=true&\"\nimport script from \"./EarlyRegistration.vue?vue&type=script&lang=ts&\"\nexport * from \"./EarlyRegistration.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./EarlyRegistration.vue?vue&type=style&index=0&id=4744d2fe&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4744d2fe\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"uk-flex uk-padding-small notification-box\",class:_vm.typeStyleClass,attrs:{\"data-testid\":\"notification-box\"}},[_vm._t(\"icon\"),_vm._t(\"message\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\nimport { NotificationBoxType } from '@/Model/notificationBox/types';\nimport { Component, Prop, Vue } from 'vue-property-decorator';\n\n@Component({})\nexport default class ToggleSwitch extends Vue {\n @Prop({ type: String, default: NotificationBoxType.Info }) type!: NotificationBoxType;\n\n get typeStyleClass(): string {\n return `notification-box-${this.type.toLocaleLowerCase()}`;\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationBox.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationBox.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NotificationBox.vue?vue&type=template&id=3ed18dc4&scoped=true&\"\nimport script from \"./NotificationBox.vue?vue&type=script&lang=ts&\"\nexport * from \"./NotificationBox.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./NotificationBox.vue?vue&type=style&index=0&id=3ed18dc4&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3ed18dc4\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiParticipantRules.vue?vue&type=style&index=0&id=1fce4717&lang=less&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationBox.vue?vue&type=style&index=0&id=3ed18dc4&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('OffCanvas',{attrs:{\"isVisible\":_vm.isConfigurationDiscountMenuOpenComputed},on:{\"update:isVisible\":function($event){_vm.isConfigurationDiscountMenuOpenComputed=$event},\"update:is-visible\":function($event){_vm.isConfigurationDiscountMenuOpenComputed=$event},\"onClose\":_vm.onClose}},[_c('aside',{staticClass:\"add-new-sec\"},[_c('div',[_c('div',{staticClass:\"customize-checkout-title uk-margin-small-bottom\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_TITLE\"))+\" \")]),_c('div',{staticClass:\"subtitle uk-margin-small-bottom\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_SUBHEADER\"))+\" \")]),_c('ValidationObserver',{ref:\"formDiscountObserverRef\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('form',{attrs:{\"autocomplete\":\"off\"},on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.beforeOnSave)}}},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"uk-margin-small-bottom\",attrs:{\"for\":\"tax-rate-select\",\"data-testid\":\"tax-rate\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_TYPE\"))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])]),_c('DropdownList',{attrs:{\"dropdown\":_vm.typeListDropdown,\"autoSelectionAllowed\":false,\"id\":\"discount-type\"},on:{\"onSelectionChange\":_vm.onSelectType},model:{value:(_vm.currentTypeSelection),callback:function ($$v) {_vm.currentTypeSelection=$$v},expression:\"currentTypeSelection\"}}),_c('span',{staticClass:\"form-field-error\",style:({\n visibility: _vm.isSelectInvalid ? 'visible' : 'hidden',\n }),attrs:{\"data-testid\":\"discount-type-required-error\"}},[_vm._v(\" Please select a type \")])],1),_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"name\",\"data-testid\":\"discount-name\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_NAME\"))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.typeListDropdown.id === _vm.discountType.MULTI_PARTICIPANT ? _vm.screenText.getScreenText( \"LABEL_DISCOUNT_NAME_PERCENT_RATE_SUBHEADER\" ) : _vm.screenText.getScreenText( \"LABEL_DISCOUNT_NAME_EARLY_REGISTRATION_SUBHEADER\" ))+\" \")]),_c('ValidationProvider',{ref:\"nameObserverRef\",attrs:{\"rules\":\"name_required\",\"mode\":_vm.validationMode.Eager},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var errors = ref.errors;\n var invalid = ref.invalid;\n var validated = ref.validated;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.name),expression:\"name\",modifiers:{\"trim\":true}}],attrs:{\"id\":\"discount-name\",\"type\":\"text\",\"maxlength\":\"30\"},domProps:{\"value\":(_vm.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.name=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}}),_c('span',{staticClass:\"form-field-error\",style:({\n visibility: validated && invalid ? 'visible' : 'hidden',\n }),attrs:{\"data-testid\":\"discount-name-required-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}],null,true)})],1),_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"description\",\"data-testid\":\"discount-description\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DESCRIPTION\"))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.typeListDropdown.id === _vm.discountType.MULTI_PARTICIPANT ? _vm.screenText.getScreenText( \"LABEL_DISCOUNT_DESCRIPTION_PERCENT_RATE_SUBHEADER\" ) : _vm.screenText.getScreenText( \"LABEL_DISCOUNT_DESCRIPTION_EARLY_REGISTRATION_SUBHEADER\" ))+\" \")]),_c('ValidationProvider',{ref:\"descriptionObserverRef\",attrs:{\"rules\":\"description_required\",\"mode\":_vm.validationMode.Eager},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var errors = ref.errors;\n var invalid = ref.invalid;\n var validated = ref.validated;\nreturn [_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.description),expression:\"description\"}],attrs:{\"id\":\"discount-description\",\"maxlength\":\"500\"},domProps:{\"value\":(_vm.description)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.description=$event.target.value}}}),_c('span',{staticClass:\"form-field-error\",style:({\n visibility: validated && invalid ? 'visible' : 'hidden',\n }),attrs:{\"data-testid\":\"discount-description-required-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}],null,true)})],1),_c('div',{staticClass:\"form-group uk-margin-small-top\"},[_c('div',[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"percent-rate\",\"data-testid\":\"setup-header\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_SETUP\"))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])])]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_SETUP_SUBHEADER\"))+\" \")]),_c('div',{staticClass:\"uk-margin-remove\"},[_c('div',{staticClass:\"radio-input-wrapper\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.discountUnitAmount),expression:\"discountUnitAmount\"}],attrs:{\"id\":\"percent-option\",\"type\":\"radio\",\"name\":\"setup-option\",\"data-testid\":\"percent-option-input\"},domProps:{\"value\":_vm.discountUnitType.PERCENT_RATE,\"checked\":_vm._q(_vm.discountUnitAmount,_vm.discountUnitType.PERCENT_RATE)},on:{\"change\":function($event){_vm.discountUnitAmount=_vm.discountUnitType.PERCENT_RATE}}}),_c('label',{staticClass:\"subtitle\",attrs:{\"for\":\"percent-option\"}},[_vm._v(_vm._s(_vm.screenText.getScreenText(\"LABEL_PERCENT_RATE\")))])]),_c('div',{staticClass:\"radio-input-wrapper\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.discountUnitAmount),expression:\"discountUnitAmount\"}],attrs:{\"id\":\"amount-option\",\"type\":\"radio\",\"name\":\"setup-option\",\"data-testid\":\"amount-option-input\"},domProps:{\"value\":_vm.discountUnitType.FIXED_AMOUNT,\"checked\":_vm._q(_vm.discountUnitAmount,_vm.discountUnitType.FIXED_AMOUNT)},on:{\"change\":function($event){_vm.discountUnitAmount=_vm.discountUnitType.FIXED_AMOUNT}}}),_c('label',{staticClass:\"subtitle\",attrs:{\"for\":\"amount-option\"}},[_vm._v(_vm._s(_vm.screenText.getScreenText(\"FEE_FIXED_AMOUNT\")))])])])]),(_vm.typeListDropdown.id !== _vm.SELECT_TYPE_VALUE)?_c('div',[(_vm.typeListDropdown.id === _vm.discountType.MULTI_PARTICIPANT)?_c('MultiParticipantRules',{attrs:{\"rules\":_vm.rulesVal,\"discountUnitAmount\":_vm.discountUnitAmount,\"formRef\":_vm.formDiscountObserverRef},on:{\"update:discountUnitAmount\":function($event){_vm.discountUnitAmount=$event},\"update:discount-unit-amount\":function($event){_vm.discountUnitAmount=$event},\"onAddRule\":_vm.onAddMultiParticipantRule,\"onRemoveRule\":_vm.onRemoveMultiParticipantRule,\"onPercentageUpdate\":_vm.onPercentageUpdate}}):_c('EarlyRegistration',{attrs:{\"discountUnitAmount\":_vm.discountUnitAmount,\"earlyDiscountEnds\":_vm.earlyDiscountEnds,\"earlyAmountValue\":_vm.earlyAmountValue,\"discountRuleListDropdown\":_vm.discountRuleListDropdown,\"formRef\":_vm.formDiscountObserverRef},on:{\"update:discountUnitAmount\":function($event){_vm.discountUnitAmount=$event},\"update:discount-unit-amount\":function($event){_vm.discountUnitAmount=$event},\"update:earlyDiscountEnds\":function($event){_vm.earlyDiscountEnds=$event},\"update:early-discount-ends\":function($event){_vm.earlyDiscountEnds=$event},\"update:earlyAmountValue\":function($event){_vm.earlyAmountValue=$event},\"update:early-amount-value\":function($event){_vm.earlyAmountValue=$event},\"onChangeSessionStart\":_vm.onChangeSessionStart}})],1):_vm._e(),_c('div',[_c('button',{staticClass:\"btn-secondary uk-margin-small-right\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.onCancel}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"BTN_CANCEL\"))+\" \")]),_c('ProgressButton',{attrs:{\"bx-attr\":\"save-btn\",\"buttonIndex\":_vm.screenText.getScreenText('BTN_SAVE'),\"buttonText\":_vm.screenText.getScreenText('BTN_SAVE'),\"disableButton\":!_vm.isSaveDisabled}})],1)])]}}])})],1)]),_c('StateModal',{attrs:{\"isVisible\":_vm.isModalVisible,\"config\":_vm.modalConfig},on:{\"onClose\":_vm.toggleConfirmationModal,\"onConfirm\":_vm.handleConfirm}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Ref, Vue, Watch } from \"vue-property-decorator\";\nimport paymentsModule from \"@/store/modules/Payments/module\";\nimport OffCanvas from \"@/commoncomponents/OffCanvas.vue\";\nimport { ScreenText } from \"@/lang/ScreenText\";\nimport { ValidationObserver, ValidationProvider } from \"vee-validate\";\nimport { ProviderInstance } from \"vee-validate/dist/types/types\";\nimport { VeeValidateProviderMode } from \"@/Model/forms/types\";\nimport DropdownList from \"@/ui-components/dropdownListBx/DropdownList.vue\";\nimport {\n DropdownListItem,\n DropdownListOptions,\n} from \"@/ui-components/dropdownListBx/types\";\nimport ProgressButton from \"@/commoncomponents/progressButton/progressButton\";\nimport MultiParticipantRules from \"./MultiParticipantRules.vue\";\nimport EarlyRegistration from \"./EarlyRegistration.vue\";\nimport {\n Discount,\n MultiParticipantRule,\n EarlyRegistrationRule,\n DiscountType,\n AmountUnitType,\n TimeRangeType,\n StateModalType,\n DiscountRule,\n} from \"@/Model/payments/types\";\nimport { discountDescriptionRequiredValidator } from \"@/validators/payments/validators\";\nimport StateModal from \"@/popupcomponents/StateModal.vue\";\nimport { createAutomaticDiscount } from \"@/services/payments/api\";\nimport APP_UTILITIES from \"@/utilities/commonFunctions\";\nimport { ToastType } from \"@/Model/toastType\";\n\ntype CustomDropdownOptions = DropdownListOptions & { ruleAmount: string };\n\n@Component({\n components: {\n OffCanvas,\n ValidationObserver,\n ValidationProvider,\n DropdownList,\n ProgressButton,\n MultiParticipantRules,\n EarlyRegistration,\n StateModal,\n },\n})\nexport default class DiscountConfiguration extends Vue {\n @Ref(\"formDiscountObserverRef\")\n readonly formDiscountObserverRef?: InstanceType;\n @Ref(\"nameObserverRef\") readonly nameObserverRef?: ProviderInstance;\n @Ref(\"descriptionObserverRef\")\n readonly descriptionObserverRef?: ProviderInstance;\n\n readonly screenText = new ScreenText();\n readonly MULTI_PARTICIPANT_INITIAL_SEQUENCE_NUMBER = 2;\n readonly MULTI_PARTICIPANT_MAX_SEQUENCE_NUMBER = 10;\n readonly discountUnitType = AmountUnitType;\n readonly discountType = DiscountType;\n\n validationMode = VeeValidateProviderMode;\n name: string = \"\";\n description: string = \"\";\n discountUnitAmount: AmountUnitType = AmountUnitType.PERCENT_RATE;\n isSaveDisabled = false;\n DISCOUNT_APPLICATION_SCOPE = \"Account\";\n formRef = this.$refs.discountForm as HTMLFormElement;\n isUnitResetNeeded = false;\n SELECT_TYPE_VALUE = -1;\n isModalVisible = false;\n modalConfig = {\n title: this.screenText.getScreenText(\"LABEL_CHANGE_DISCOUNT_TITLE\"),\n description: this.screenText.getScreenText(\n \"LABEL_CHANGE_DISCOUNT_DESCRIPTION\"\n ),\n type: StateModalType.WARNING,\n cancelButtonLabel: this.screenText.getScreenText(\"BTN_GO_BACK_CAPS\"),\n confirmButtonLabel: this.screenText.getScreenText(\"BTN_SAVE\"),\n };\n isSelectInvalid = false;\n\n // This is the model that contains the rule list when the discount type is \"Multi-participant\"\n rules: CustomDropdownOptions[] = [];\n\n /**\n * Early Registration type models\n * The following are the models for:\n * - early discount ends input\n * - session start (hold by earlyDiscountListOptions) dropdown list\n * - early amount value input\n */\n earlyDiscountEnds: number | null = null;\n earlyAmountValue: number | null = null;\n\n earlyDiscountListOptions: DropdownListItem[] = [\n { id: TimeRangeType.MONTHS, value: \"Months before sessions starts\" },\n { id: TimeRangeType.DAYS, value: \"Days before session starts\" },\n { id: TimeRangeType.WEEKS, value: \"Weeks before session starts\" },\n ];\n\n discountRuleListDropdown: DropdownListOptions = {\n id: this.earlyDiscountListOptions[0].id,\n value: this.earlyDiscountListOptions[0].value,\n singleSelect: true,\n showSelectLabel: false,\n dropdownList: this.earlyDiscountListOptions,\n };\n\n typeListOptions: DropdownListItem[] = [\n { id: this.SELECT_TYPE_VALUE, value: \"Select\" },\n { id: DiscountType.EARLY_REGISTRATION, value: \"Early Registration\" },\n { id: DiscountType.MULTI_PARTICIPANT, value: \"Multi-participant\" },\n ];\n\n currentTypeSelection: DropdownListItem = this.typeListOptions[0];\n\n typeListDropdown: DropdownListOptions = {\n id: this.typeListOptions[0].id,\n value: this.typeListOptions[0].value,\n singleSelect: true,\n showSelectLabel: true,\n dropdownList: this.typeListOptions,\n };\n\n /**\n * Called when the component is created.\n */\n created(): void {\n discountDescriptionRequiredValidator(\n this.screenText.getScreenText(\"LABEL_DISCOUNT_DESCRIPTION_REQUIRED\")\n );\n }\n\n /**\n * Called before the component is mounted.\n */\n beforeMount(): void {\n this.rules = this.initMultiParticipantRuleList();\n }\n\n // Watch change on type selection to keep track of validation for selected type\n @Watch(\"currentTypeSelection\", { deep: true })\n currentTypeValid(): void {\n const isTypeValid = this.currentTypeSelection.id !== this.SELECT_TYPE_VALUE;\n\n if (\n this.formDiscountObserverRef &&\n this.formDiscountObserverRef.flags &&\n this.formDiscountObserverRef.flags.touched\n ) {\n this.isSelectInvalid = !isTypeValid;\n }\n }\n\n /**\n * Watches changes to the discount unit amount.\n * @param {AmountUnitType} newValue - The new discount unit amount.\n */\n @Watch(\"discountUnitAmount\", { deep: true })\n discountUnitAmountReference(): void {\n if (\n this.currentTypeSelection.id === DiscountType.MULTI_PARTICIPANT &&\n (this.isUnitResetNeeded || !this.discountListComputed.length)\n ) {\n this.cleanMultiParticipantAmounts();\n } else if (this.isUnitResetNeeded) {\n this.earlyAmountValue = null;\n }\n\n this.isUnitResetNeeded = true;\n }\n\n toggleConfirmationModal() {\n this.isModalVisible = !this.isModalVisible;\n if (!this.isModalVisible) {\n paymentsModule.setIsConfiguratioDiscountMenuOpen(true);\n }\n }\n\n /**\n * Watches changes to the discount menu open state.\n * @param {boolean} isMenuOpen - Whether the discount menu is open.\n */\n @Watch(\"isConfigurationDiscountMenuOpenComputed\", { deep: true })\n isDiscountMenuOpen(isMenuOpen: boolean): void {\n const currentDiscountItem = paymentsModule.getSelectedDiscount;\n\n if (isMenuOpen && currentDiscountItem !== null) {\n this.setExistingDiscountValues();\n } else if (\n isMenuOpen &&\n currentDiscountItem === null &&\n this.discountListComputed.length\n ) {\n if (\n this.discountListComputed[0].discountTypeId ===\n DiscountType.MULTI_PARTICIPANT\n ) {\n this.typeListDropdown.id =\n this.typeListOptions[DiscountType.MULTI_PARTICIPANT].id;\n this.typeListDropdown.value =\n this.typeListOptions[DiscountType.MULTI_PARTICIPANT].value;\n this.currentTypeSelection =\n this.typeListOptions[DiscountType.MULTI_PARTICIPANT];\n } else {\n this.typeListDropdown.id =\n this.typeListOptions[DiscountType.EARLY_REGISTRATION].id;\n this.typeListDropdown.value =\n this.typeListOptions[DiscountType.EARLY_REGISTRATION].value;\n this.currentTypeSelection =\n this.typeListOptions[DiscountType.EARLY_REGISTRATION];\n }\n Vue.set(this.typeListDropdown, \"disable\", true);\n } else {\n Vue.set(this.typeListDropdown, \"disable\", false);\n\n this.typeListDropdown = {\n id: this.typeListOptions[0].id,\n value: this.typeListOptions[0].value,\n singleSelect: true,\n showSelectLabel: true,\n dropdownList: this.typeListOptions,\n };\n }\n }\n\n /**\n * Sets the existing discount values.\n */\n setExistingDiscountValues(): void {\n const currentDiscountItem = paymentsModule.getSelectedDiscount;\n if (currentDiscountItem) {\n const targetDiscountTypeSelection = this.typeListOptions.find(\n (discountItem) => discountItem.id === currentDiscountItem.discountTypeId\n );\n\n if (currentDiscountItem != null && targetDiscountTypeSelection) {\n this.name = currentDiscountItem.name;\n this.description = currentDiscountItem.description;\n this.currentTypeSelection.id = targetDiscountTypeSelection.id;\n this.currentTypeSelection.value = targetDiscountTypeSelection.value;\n this.typeListDropdown.id = this.currentTypeSelection.id;\n this.typeListDropdown.value = this.currentTypeSelection.value;\n this.isUnitResetNeeded = false;\n this.discountUnitAmount = String(\n currentDiscountItem.amountUnitType\n ) as AmountUnitType;\n\n if (\n currentDiscountItem.discountTypeId === DiscountType.MULTI_PARTICIPANT\n ) {\n this.rules = this.initMultiParticipantRuleList(\n (currentDiscountItem.rules as MultiParticipantRule[])[0]\n .participants,\n currentDiscountItem.rules\n );\n } else {\n const earlyRegistrationEntry = (\n currentDiscountItem.rules as [EarlyRegistrationRule]\n )[0];\n this.earlyDiscountEnds = earlyRegistrationEntry.timeRangeUnit;\n this.earlyAmountValue = earlyRegistrationEntry.amount;\n this.discountRuleListDropdown.id =\n earlyRegistrationEntry.timeRangeType;\n this.discountRuleListDropdown.value = `${\n this.earlyDiscountListOptions[\n earlyRegistrationEntry.timeRangeType - 1\n ].value\n }`;\n }\n // disable dropdown menu since type is not editable\n Vue.set(this.typeListDropdown, \"disable\", true);\n }\n }\n }\n\n /**\n * Handles cancel action.\n */\n onCancel(): void {\n this.onClose();\n paymentsModule.setIsConfiguratioDiscountMenuOpen(false);\n }\n\n /**\n * Handles close action.\n */\n onClose(): void {\n this.resetInputs();\n }\n\n /**\n * Handles selection of discount type.\n * @param {DropdownListItem} selection - The selected discount type.\n */\n onSelectType(selection: DropdownListItem): void {\n if (selection.id === DiscountType.MULTI_PARTICIPANT) {\n this.onResetEarlyRegistrationDiscount();\n } else {\n this.onResetMultiParticipantRules();\n }\n this.currentTypeSelection = selection;\n }\n\n /**\n * Initializes the multi-participant rule list.\n * @param {number} [sequenceStartNumber=this.MULTI_PARTICIPANT_INITIAL_SEQUENCE_NUMBER] - The starting sequence number.\n * @param {MultiParticipantRule[] | EarlyRegistrationRule} [discountRules] - The discount rules.\n * @returns {CustomDropdownOptions[]} The initialized rule list.\n */\n initMultiParticipantRuleList(\n sequenceStartNumber: number = this\n .MULTI_PARTICIPANT_INITIAL_SEQUENCE_NUMBER,\n discountRules?: MultiParticipantRule[] | [EarlyRegistrationRule]\n ): CustomDropdownOptions[] {\n const participantCounterList: DropdownListItem[] = Array.from(\n { length: this.MULTI_PARTICIPANT_MAX_SEQUENCE_NUMBER - 1 },\n (_, index) => ({\n id: index + sequenceStartNumber,\n value: `${index + sequenceStartNumber}`,\n })\n );\n\n const rawRuleStructure = {\n singleSelect: true,\n showSelectLabel: true,\n dropdownList: participantCounterList,\n error: false,\n errorText: \"\",\n };\n\n if (discountRules) {\n const targetDiscountRules = (discountRules as MultiParticipantRule[]).map(\n (item: MultiParticipantRule): CustomDropdownOptions => {\n // Disable the dropdown list if there are more than one discount rule\n // if only one rule is present, the dropdown list should be enabled since is the start of the sequence\n const isDiscountRulesDisabled = discountRules.length > 1;\n\n return {\n ...rawRuleStructure,\n id: item.participants,\n value: `${item.participants}`,\n ruleAmount: `${item.amount}`,\n disable: isDiscountRulesDisabled,\n };\n }\n );\n return targetDiscountRules;\n }\n\n return [\n {\n ...rawRuleStructure,\n id: sequenceStartNumber,\n value: `${sequenceStartNumber}`,\n ruleAmount: \"\",\n disable: false,\n },\n ];\n }\n\n /**\n * Getter for rules.\n * @returns {CustomDropdownOptions[]} The rules.\n */\n get rulesVal(): CustomDropdownOptions[] {\n return this.rules;\n }\n\n /**\n * Setter for rules.\n * @param {CustomDropdownOptions[]} newRules - The new rules.\n */\n set rulesVal(newRules: CustomDropdownOptions[]) {\n this.rules = newRules;\n }\n\n /**\n * Getter for the computed discount list.\n * @returns {Discount[]} The discount list.\n */\n get discountListComputed(): Discount[] {\n return paymentsModule.discountList;\n }\n\n /**\n * Getter for whether the configuration discount menu is open.\n * @returns {boolean} Whether the configuration discount menu is open.\n */\n get isConfigurationDiscountMenuOpenComputed(): boolean {\n return paymentsModule.isConfigurationDiscountMenuOpen;\n }\n\n /**\n * Setter for whether the configuration discount menu is open.\n * @param {boolean} value - The new value.\n */\n set isConfigurationDiscountMenuOpenComputed(value: boolean) {\n paymentsModule.setIsConfiguratioDiscountMenuOpen(value);\n }\n\n /**\n * Handles percentage update for a rule.\n * @param {CustomDropdownOptions} rule - The rule being updated.\n */\n onPercentageUpdate(rule: CustomDropdownOptions): void {\n // Validate that percentage amount doesn't go over 100%\n if (Number(rule.ruleAmount) > 100) {\n const ruleItem = this.rules.find((val) => val.id === rule.id);\n if (ruleItem) {\n ruleItem.ruleAmount = \"100\";\n }\n }\n }\n\n /**\n * Adds a multi-participant rule.\n */\n onAddMultiParticipantRule(): void {\n const lastRuleItem = [...this.rules].pop() as CustomDropdownOptions;\n const filteredDropdownItems = lastRuleItem.dropdownList.filter(\n (rule) => Number(rule.value) > Number(lastRuleItem.value)\n );\n\n // We create the new rule item following the sequence of the first selected item and adding one new entry\n const ruleItemValue = Number(lastRuleItem.value) + 1;\n const newRule = {\n id: ruleItemValue,\n singleSelect: true,\n showSelectLabel: true,\n value: `${ruleItemValue}`,\n dropdownList: filteredDropdownItems,\n error: false,\n errorText: \"\",\n ruleAmount: \"\",\n disable: true,\n };\n\n // After a new rule has been added ,the initial rule needs to be disabled to ensure that we will follow the sequence\n this.rules[0].disable = true;\n\n this.rules.push(newRule);\n }\n\n /**\n * Cleans the multi-participant amounts.\n */\n cleanMultiParticipantAmounts(): void {\n this.rules = this.rules.map((value) => {\n return { ...value, ruleAmount: \"\" };\n });\n }\n\n /**\n * Removes a multi-participant rule.\n */\n onRemoveMultiParticipantRule(): void {\n const updatedRules = [...this.rules];\n updatedRules.pop();\n this.rules = updatedRules;\n\n // If we remove all the rules we enable the first rule so we can select again the starting point from the sequence\n if (this.rules.length === 1) {\n this.rules[0].disable = false;\n }\n }\n\n /**\n * Handles change in discount end value.\n * @param {number} value - The new discount end value.\n */\n onChangeDiscountEnd(value: number): void {\n this.earlyDiscountEnds = value;\n }\n\n /**\n * Handles change in session start.\n * @param {DropdownListItem} sessionStartItemReference - The session start item.\n */\n onChangeSessionStart(sessionStartItemReference: DropdownListItem): void {\n this.discountRuleListDropdown.id = sessionStartItemReference.id;\n this.discountRuleListDropdown.value = `${sessionStartItemReference.value}`;\n }\n\n /**\n * Resets the multi-participant rules.\n */\n onResetMultiParticipantRules(): void {\n this.rules = this.initMultiParticipantRuleList();\n }\n\n /**\n * Resets the early registration discount.\n */\n onResetEarlyRegistrationDiscount(): void {\n this.discountRuleListDropdown.id = this.earlyDiscountListOptions[0].id;\n this.discountRuleListDropdown.value =\n this.earlyDiscountListOptions[0].value;\n this.earlyDiscountEnds = null;\n this.earlyAmountValue = null;\n }\n\n /**\n * Resets the input fields.\n * @private\n */\n private resetInputs(): void {\n this.typeListDropdown.id = this.typeListOptions[0].id;\n this.typeListDropdown.value = this.typeListOptions[0].value;\n this.name = \"\";\n this.description = \"\";\n this.isUnitResetNeeded = false;\n this.discountUnitAmount = AmountUnitType.PERCENT_RATE;\n this.currentTypeSelection = this.typeListOptions[0];\n this.rules = this.initMultiParticipantRuleList();\n if (paymentsModule.getSelectedDiscount) {\n paymentsModule.SET_SELECTED_AUTOMATIC_DISCOUNT(null);\n }\n\n // reset form rules and associated form logic to prevent unnecesary error messages\n if (this.formDiscountObserverRef) {\n this.formDiscountObserverRef.reset();\n this.formDiscountObserverRef.flags.touched = false;\n this.isSelectInvalid = false;\n }\n\n this.onResetEarlyRegistrationDiscount();\n }\n\n async beforeOnSave(): Promise {\n /*\n this is the way the VeeValidate package triggers the form validation\n reference taken from: https://vee-validate.logaretm.com/v2/guide/components/validation-observer.html#validate-before-submit\n */\n\n const isFormDiscountValid =\n this.formDiscountObserverRef &&\n (await this.formDiscountObserverRef.validate());\n\n // only submit save if type selected is valid\n const isTypeValid = this.currentTypeSelection.id !== this.SELECT_TYPE_VALUE;\n\n this.isSelectInvalid = !isTypeValid;\n\n if (isFormDiscountValid && isTypeValid) {\n /**\n * this verifies that we are currently updating an existing discount, if it is true, a confirmation modal is shown\n * otherwise it saves the form directly\n */\n\n const currentDiscountItem = paymentsModule.getSelectedDiscount;\n\n if (currentDiscountItem) {\n this.toggleConfirmationModal();\n } else {\n this.onSave();\n }\n }\n }\n\n /**\n * Confirmation logic when editing a discount\n */\n handleConfirm(): void {\n this.toggleConfirmationModal();\n const currentDiscountItem = paymentsModule.getSelectedDiscount;\n\n if (currentDiscountItem) {\n this.onUpdate(currentDiscountItem);\n }\n }\n\n /**\n * Saves the discount.\n */\n async onSave(): Promise {\n const currentActiveRules = this.getActiveRules();\n const accountId = this.getAccountId();\n\n const requestDiscountObj: Omit = {\n name: this.name,\n discountTypeId: this.currentTypeSelection.id,\n amountUnitType: this.discountUnitAmount,\n appliesTo: this.DISCOUNT_APPLICATION_SCOPE,\n description: this.description,\n rules: currentActiveRules,\n accountId: accountId,\n };\n\n try {\n this.isSaveDisabled = true;\n await createAutomaticDiscount(requestDiscountObj);\n paymentsModule.setIsConfiguratioDiscountMenuOpen(false);\n await paymentsModule.fetchAutomaticDiscountsByAccount();\n } catch (error) {\n APP_UTILITIES.showToastMessage(\"Unexpected Error!\", ToastType.Error);\n } finally {\n this.isSaveDisabled = false;\n }\n }\n\n /**\n * Updates the discount.\n */\n async onUpdate(selectedDiscount: Discount): Promise {\n const currentActiveRules = this.getActiveRules();\n\n const accountId = this.getAccountId();\n\n const requestDiscountObj: Discount = {\n name: this.name,\n discountTypeId: this.currentTypeSelection.id,\n amountUnitType: this.discountUnitAmount,\n appliesTo: this.DISCOUNT_APPLICATION_SCOPE,\n description: this.description,\n rules: currentActiveRules,\n accountId: accountId,\n id: selectedDiscount.id,\n isActive: selectedDiscount.isActive,\n };\n\n try {\n this.isSaveDisabled = true;\n paymentsModule.updateAutomaticDiscount(requestDiscountObj);\n } catch (error) {\n APP_UTILITIES.showToastMessage(\"Unexpected Error!\", ToastType.Error);\n } finally {\n this.isSaveDisabled = false;\n }\n }\n\n getActiveRules(): DiscountRule {\n let currentActiveRules: DiscountRule;\n if (this.currentTypeSelection.id === DiscountType.MULTI_PARTICIPANT) {\n currentActiveRules = this.rules.map(\n (item: CustomDropdownOptions): MultiParticipantRule => {\n return {\n participants: parseInt(item.value),\n amount: parseInt(item.ruleAmount),\n };\n }\n );\n } else {\n currentActiveRules = [\n {\n timeRangeUnit: this.earlyDiscountEnds || 1,\n timeRangeType: parseInt(String(this.discountRuleListDropdown.id)),\n amount: this.earlyAmountValue || 1,\n },\n ];\n }\n return currentActiveRules;\n }\n\n getAccountId(): number {\n const accountIdCookie = APP_UTILITIES.getCookie(\"accountId\");\n const accountId = accountIdCookie ? Number.parseInt(accountIdCookie) : 0;\n return accountId;\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DiscountConfiguration.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DiscountConfiguration.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DiscountConfiguration.vue?vue&type=template&id=406cf7fc&scoped=true&\"\nimport script from \"./DiscountConfiguration.vue?vue&type=script&lang=ts&\"\nexport * from \"./DiscountConfiguration.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DiscountConfiguration.less?vue&type=style&index=0&id=406cf7fc&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"406cf7fc\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!./DiscountConfiguration.less?vue&type=style&index=0&id=406cf7fc&lang=less&scoped=true&\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EarlyRegistration.vue?vue&type=style&index=0&id=4744d2fe&lang=less&scoped=true&\"","import APP_CONST from '@/constants/AppConst';\nimport { Vue, Component, Prop, Watch } from 'vue-property-decorator';\n@Component({\n})\nexport default class ProgressButton extends Vue {\n public progressButtonWidth: number = 0;\n public buttonIndexReceived = '';\n\n @Prop({ default: 'Submit' })\n buttonText!: string;\n\n @Prop({ default: 600 })\n progressButtonDelay!: number;\n\n @Prop({ default: 0 })\n apiResponseCode!: number;\n\n @Prop({ default: '' })\n itemObj: any;\n\n @Prop({ default: true })\n isValidation!: boolean;\n\n @Prop({ default: false })\n showDelay!: boolean;\n\n @Prop({ default: '' })\n buttonIndex!: any;\n\n @Prop({ default: false })\n updateProgress!: boolean;\n\n @Prop({ default: true })\n disableButton!: boolean;\n\n @Prop({ type: Boolean, default: false }) disableTransition!: boolean;\n\n @Watch('apiResponseCode', { deep: true, immediate: true })\n apiResponse(val: any) {\n if (val == 200) {\n this.apiResponseCode = val;\n this.completeButton();\n } else if (val == 400) {\n this.reSetprogressBar();\n }\n }\n\n @Watch('isValidation', { deep: true, immediate: true })\n checkValidations() {\n this.buttonClick('', this.buttonIndex, 'fromWatcher');\n }\n\n buttonClick = (obj: any, buttonIndex: any, from: string) => {\n if (!this.isValidation) {\n this.progressButtonWidth = 0;\n this.tempDisableButton();\n this.buttonIndexReceived = buttonIndex;\n\n const percent = this.progressButtonDelay / 50;\n let i = 0;\n\n const interval = setInterval(() => {\n i++;\n if (i >= 80) {\n this.progressBar();\n clearInterval(interval);\n if (this.apiResponseCode == 200) {\n this.completeButton();\n } else if (this.apiResponseCode == 400) {\n clearInterval(interval);\n this.handleError(interval);\n } else {\n this.progressButtonWidth = i;\n if (!this.updateProgress) {\n this.setProgressResposeDelay();\n } else {\n this.progressBar();\n }\n }\n } else {\n if (this.apiResponseCode == 200) {\n clearInterval(interval);\n this.completeButton();\n } else if (this.apiResponseCode == 400) {\n clearInterval(interval);\n this.handleError(interval);\n } else {\n this.progressButtonWidth = i;\n this.progressBar();\n }\n }\n }, percent);\n }\n if (from != 'fromWatcher') {\n this.emitMethod(obj);\n }\n };\n\n handleError(interval: any) {\n clearInterval(interval);\n this.reSetprogressBar();\n }\n\n emitMethod(obj: any) {\n this.$emit('submitData', obj);\n }\n\n completeButton = () => {\n this.setProgressBeforeRespose();\n };\n\n complateButtonProgress() {\n const element: any = document.getElementById('progressBar' + this.buttonIndex);\n const style = `linear-gradient(to right, ${APP_CONST.STYLE.COLOR.PRIMARY_700}${' ' + 100 + '%'}, ${APP_CONST.STYLE.COLOR.NEUTRAL_100}${' ' + 100 + '%'})`;\n if (element) {\n element.style.background = style;\n element.classList.remove('disabled');\n element.classList.add('finished');\n }\n this.progressButtonWidth = 100;\n if (this.showDelay) {\n setTimeout(() => {\n this.reSetprogressBar();\n this.$emit('close');\n }, 100);\n } else {\n this.reSetprogressBar();\n this.$emit('close');\n }\n }\n\n tempDisableButton() {\n const element: any = document.getElementById('progressBar' + this.buttonIndex);\n if (element) {\n element.classList.add('disabled');\n element.classList.add('btn-secondary');\n element.classList.remove('btn-primary');\n element.classList.remove('finished');\n const style = `linear-gradient(to right, ${APP_CONST.STYLE.COLOR.PRIMARY_700}${' ' + 0 + '%'}, ${APP_CONST.STYLE.COLOR.NEUTRAL_100}${' ' + 0 + '%'})`;\n if (element.style) {\n element.style.background = style;\n }\n }\n }\n\n progressBar = () => {\n const newBttun: any = document.getElementById('progressBar' + this.buttonIndex);\n const style = `linear-gradient(to right, ${APP_CONST.STYLE.COLOR.PRIMARY_700}${' ' + this.progressButtonWidth + '%'}, ${APP_CONST.STYLE.COLOR.NEUTRAL_100}${' ' + this.progressButtonWidth + '%'})`;\n if (newBttun && newBttun.style) {\n newBttun.style.background = style;\n }\n };\n\n reSetprogressBar = () => {\n const element: any = document.getElementById('progressBar' + this.buttonIndex);\n if (element) {\n element.classList.remove('disabled');\n element.classList.remove('finished');\n element.classList.add('btn-primary');\n element.classList.remove('btn-secondary');\n const style = `linear-gradient(to right, ${APP_CONST.STYLE.COLOR.NEUTRAL_100}${' ' + 0 + '%'}, ${APP_CONST.STYLE.COLOR.PRIMARY_700}${' ' + 0 + '%'})`;\n element.style.background = style;\n }\n this.progressButtonWidth = 100;\n };\n\n setProgressBeforeRespose = () => {\n const interval = setInterval(() => {\n if (this.progressButtonWidth >= 100) {\n clearInterval(interval);\n this.complateButtonProgress();\n } else {\n if (this.apiResponseCode == 200) {\n this.completeButton();\n clearInterval(interval);\n this.progressButtonWidth = 100;\n } else\n if (this.apiResponseCode == 400) {\n clearInterval(interval);\n this.handleError(interval);\n this.progressButtonWidth = 100;\n }\n else {\n this.progressButtonWidth = this.progressButtonWidth + 5;\n this.progressBar();\n }\n }\n }, 200);\n };\n\n setProgressResposeDelay = () => {\n const interval = setInterval(() => {\n if (this.progressButtonWidth >= 96) {\n if (this.apiResponseCode == 200) {\n clearInterval(interval);\n this.completeButton();\n } else if (this.apiResponseCode == 400) {\n clearInterval(interval);\n this.handleError(interval);\n }\n else {\n this.progressBar();\n }\n } else {\n if (this.apiResponseCode == 200) {\n clearInterval(interval);\n this.completeButton();\n } else if (this.apiResponseCode == 400) {\n clearInterval(interval);\n this.handleError(interval);\n }\n else {\n this.progressButtonWidth = this.progressButtonWidth + 0.50;\n this.progressBar();\n }\n }\n }, 1000);\n };\n}\n"],"sourceRoot":""}