{"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?821d","webpack:///./src/popupcomponents/StateModal.vue?1bb3","webpack:///./src/popupcomponents/StateModal.vue?8199","webpack:///./src/popupcomponents/StateModal.vue","webpack:///./src/popupcomponents/StateModal.vue?f9a5","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/ui-components/inputWithCharacterCounter/inputWithCharacterCounter.vue?df1e","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.less?4608","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?2717","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/ui-components/inputWithCharacterCounter/inputWithCharacterCounter.vue?6ff3","webpack:///./src/ui-components/inputWithCharacterCounter/inputWithCharacterCounter.vue?3ebf","webpack:///./src/ui-components/inputWithCharacterCounter/inputWithCharacterCounter.vue?8c6e","webpack:///./src/ui-components/inputWithCharacterCounter/inputWithCharacterCounter.vue","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","MAX_DESCRIPTION_LENGTH","handleDescriptionChange","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","maxCharsInputValidator","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","InputWithCharacterCounter","inputType","isOverLimit","localInputModel","counterMessage","newValue","maxLength","currentCharacterCount","Math","abs","computedCounter","validator","includes","prop","event","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":"0QAAO,IAAKA,EAAZ,2CAAYA,GACVA,iBACAA,qBACAA,uBACAA,uBAJF,CAAYA,MAAmB,M,uBCA/BC,EAAOC,QAAU,IAA0B,0B,2FCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,kCAAkC,CAACF,EAAG,MAAM,CAACE,YAAY,qCAAqC,CAACF,EAAG,QAAQ,CAACE,YAAY,mBAAmBC,MAAM,CAAC,IAAM,cAAc,cAAc,yBAAyB,CAACP,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIU,WAAWC,cAAc,gCAAgC,OAAOP,EAAG,MAAM,CAACE,YAAY,aAAa,CAACN,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIU,WAAWC,cAAc,0CAA0C,SAASX,EAAIY,GAAIZ,EAAS,OAAE,SAASa,EAAKC,GAAK,OAAOV,EAAG,MAAM,CAACW,IAAID,EAAIR,YAAY,mBAAmB,CAACF,EAAG,MAAM,CAACE,YAAY,2BAA2B,CAACF,EAAG,IAAI,CAACE,YAAY,gCAAgC,CAACN,EAAIQ,GAAG,QAAQR,EAAIS,GAAGK,EAAM,MAAOd,EAAIgB,MAAMC,SAAWH,EAAM,GAAa,IAARA,EAAWV,EAAG,IAAI,CAACE,YAAY,iCAAiCY,GAAG,CAAC,MA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ME,aAAW,OAAG,MAAa,KAC9IG,EAAQ/P,QACV+P,EAAQ/P,MAAM6P,WAAa7P,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,KAAMgP,QAASjM,SAAS,KAAQ,wCAGxCpD,QADCO,eAAM,kBAAmB,CAAEC,MAAM,EAAM8O,WAAW,KAAO,gCAW1DtP,QADCO,eAAM,eAAgB,CAAEC,MAAM,EAAM8O,WAAW,KAAO,qCA3CpCvD,EAAc,QAFlCtL,eAAU,KAEUsL","file":"js/chunk-f5b0d57e.557dd048a737d566f460.1730771797376.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-offline-payments-title uk-margin-auto uk-margin-bottom\"},[_vm._v(\" \"+_vm._s(_vm.config.title)+\" \")]),_c('div',{staticClass:\"change-offline-payments-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=58c5bd40&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=58c5bd40&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 \"58c5bd40\",\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=58c5bd40&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","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!./inputWithCharacterCounter.vue?vue&type=style&index=0&id=139c356d&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!./DiscountConfiguration.less?vue&type=style&index=0&id=4489b20d&lang=less&scoped=true&\"","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-offline-payments-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',{attrs:{\"rules\":(\"description_required|max_chars:\" + _vm.MAX_DESCRIPTION_LENGTH),\"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('InputWithCharacterCounter',{attrs:{\"input-type\":'textarea',\"max-length\":_vm.MAX_DESCRIPTION_LENGTH,\"error\":errors[0]},on:{\"input\":_vm.handleDescriptionChange},model:{value:(_vm.description),callback:function ($$v) {_vm.description=$$v},expression:\"description\"}})]}}],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\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 { DropdownListItem, DropdownListOptions } 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 {\n discountDescriptionRequiredValidator,\n maxCharsInputValidator\n} 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'\nimport InputWithCharacterCounter from '@/ui-components/inputWithCharacterCounter/inputWithCharacterCounter.vue'\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 InputWithCharacterCounter\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('LABEL_CHANGE_DISCOUNT_DESCRIPTION'),\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 session 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 MAX_DESCRIPTION_LENGTH = 500\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 maxCharsInputValidator()\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 (isMenuOpen && currentDiscountItem === null && this.discountListComputed.length) {\n if (this.discountListComputed[0].discountTypeId === DiscountType.MULTI_PARTICIPANT) {\n this.typeListDropdown.id = this.typeListOptions[DiscountType.MULTI_PARTICIPANT].id\n this.typeListDropdown.value = this.typeListOptions[DiscountType.MULTI_PARTICIPANT].value\n this.currentTypeSelection = this.typeListOptions[DiscountType.MULTI_PARTICIPANT]\n } else {\n this.typeListDropdown.id = this.typeListOptions[DiscountType.EARLY_REGISTRATION].id\n this.typeListDropdown.value = this.typeListOptions[DiscountType.EARLY_REGISTRATION].value\n this.currentTypeSelection = 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(currentDiscountItem.amountUnitType) as AmountUnitType\n\n if (currentDiscountItem.discountTypeId === DiscountType.MULTI_PARTICIPANT) {\n this.rules = this.initMultiParticipantRuleList(\n (currentDiscountItem.rules as MultiParticipantRule[])[0].participants,\n currentDiscountItem.rules\n )\n } else {\n const earlyRegistrationEntry = (currentDiscountItem.rules as [EarlyRegistrationRule])[0]\n this.earlyDiscountEnds = earlyRegistrationEntry.timeRangeUnit\n this.earlyAmountValue = earlyRegistrationEntry.amount\n this.discountRuleListDropdown.id = earlyRegistrationEntry.timeRangeType\n this.discountRuleListDropdown.value = `${\n this.earlyDiscountListOptions[earlyRegistrationEntry.timeRangeType - 1].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.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 = 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 && (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 handleDescriptionChange(value: string): void {\n this.description = value\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=4489b20d&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=4489b20d&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 \"4489b20d\",\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:\"form-group\"},[(_vm.inputType === 'textarea')?_c('textarea',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.localInputModel),expression:\"localInputModel\",modifiers:{\"trim\":true}}],class:{\n 'form-group__input-with-counter--error': _vm.isOverLimit\n },domProps:{\"value\":(_vm.localInputModel)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.localInputModel=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.localInputModel),expression:\"localInputModel\",modifiers:{\"trim\":true}}],class:{\n 'form-group__input-with-counter--error': _vm.isOverLimit\n },attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.localInputModel)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.localInputModel=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}}),_c('label',{class:{ 'form-group__character-counter--error': _vm.isOverLimit || _vm.error }},[(_vm.error && !_vm.isOverLimit)?[_vm._v(\" \"+_vm._s(_vm.error)+\" \")]:[(_vm.isOverLimit)?_c('i',{staticClass:\"fas fa-exclamation-circle\"}):_vm._e(),_vm._v(\" \"+_vm._s(_vm.counterMessage)+\" \")]],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\nimport { Vue, Prop, Component } from 'vue-property-decorator'\n\n/**\n * A Vue component that renders an input field with a character counter.\n * The input can be either a textarea or a text input, depending on the `inputType` prop.\n * It displays a character counter and shows an error message if the input exceeds the maximum allowed characters.\n * If an external validation error message is provided via the `error` prop, it will be displayed instead of the character counter.\n */\n@Component({\n model: {\n prop: 'value', // The prop that v-model will bind to\n event: 'input' // The event that v-model will emit\n }\n})\nexport default class InputWithCharacterCounter extends Vue {\n /**\n * The value for the input field, which will be bound to v-model.\n * @type {string}\n */\n @Prop({ required: true }) readonly value!: string\n\n /**\n * The type of input to render, either 'text' or 'textarea'.\n * @type {string}\n */\n @Prop({\n required: true,\n validator: (value: string) => ['text', 'textarea'].includes(value)\n })\n readonly inputType!: string\n\n /**\n * The maximum number of characters allowed in the input field.\n * @type {number}\n */\n @Prop({ required: true }) readonly maxLength!: number\n\n /**\n * An external validation error message to display.\n * If provided, this message will be shown instead of the character counter.\n * @type {string | undefined}\n */\n @Prop({ required: false }) readonly error!: string\n\n /**\n * A local copy of the input model, used for two-way binding.\n * @type {string}\n */\n get localInputModel(): string {\n return this.value\n }\n\n set localInputModel(newValue: string) {\n this.$emit('input', newValue)\n }\n\n /**\n * Calculates the current number of characters in the input field.\n * @returns {number} The current character count.\n */\n get currentCharacterCount(): number {\n return this.localInputModel.length\n }\n\n /**\n * Calculates the number of characters remaining or over the limit.\n * @returns {number} The computed counter value.\n */\n get computedCounter(): number {\n return this.maxLength - this.currentCharacterCount\n }\n\n /**\n * Determines if the input has exceeded the maximum character limit.\n * @returns {boolean} True if the input is over the limit, false otherwise.\n */\n get isOverLimit(): boolean {\n return this.currentCharacterCount > this.maxLength\n }\n\n /**\n * Generates the message to display in the character counter label.\n * The message varies depending on whether the input is empty, within the limit, or over the limit.\n * @returns {string} The character counter message.\n */\n get counterMessage(): string {\n if (this.currentCharacterCount === 0) {\n return `${this.maxLength} characters allowed`\n } else if (this.isOverLimit) {\n return `${Math.abs(this.computedCounter)} characters over limit`\n } else {\n return `${this.computedCounter} characters left`\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!./inputWithCharacterCounter.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!./inputWithCharacterCounter.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./inputWithCharacterCounter.vue?vue&type=template&id=139c356d&scoped=true&\"\nimport script from \"./inputWithCharacterCounter.vue?vue&type=script&lang=ts&\"\nexport * from \"./inputWithCharacterCounter.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./inputWithCharacterCounter.vue?vue&type=style&index=0&id=139c356d&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 \"139c356d\",\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!./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":""}