{"version":3,"sources":["webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/BillingMethodConfiguration.vue?11a2","webpack:///./src/assets/images/trash.svg","webpack:///./src/assets/images/common-icon/search.svg","webpack:///./node_modules/core-js/modules/es.regexp.flags.js","webpack:///./src/Model/forms/types.ts","webpack:///./src/popupcomponents/StateModal.vue?aca3","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/assets/images/scholars/add-new-scholars/arrowDown.svg","webpack:///./src/ui-components/dropdownListBx/DropdownList.less?58ad","webpack:///./src/commoncomponents/progressButton/progressButton.ts","webpack:///./src/ui-components/dropdownListBx/DropdownList.vue?cd07","webpack:///./src/ui-components/dropdownListBx/DropdownList.ts","webpack:///./src/ui-components/dropdownListBx/DropdownList.vue?d481","webpack:///./src/ui-components/dropdownListBx/DropdownList.vue?a56d","webpack:///./src/ui-components/dropdownListBx/DropdownList.vue","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/BillingMethodConfiguration.vue?d718","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/BillingMethodConfiguration.vue?ba77","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/BillingMethodConfiguration.vue?8c89","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/BillingMethodConfiguration.vue"],"names":["module","exports","DESCRIPTORS","objectDefinePropertyModule","regExpFlags","UNSUPPORTED_Y","flags","f","RegExp","prototype","configurable","get","FormValidationError","VeeValidateProviderMode","render","_vm","this","_h","$createElement","_c","_self","attrs","isVisibleSync","on","$event","onCancel","staticClass","class","iconClass","_v","_s","config","title","description","cancelButtonLabel","btnClass","onConfirm","confirmButtonLabel","staticRenderFns","StateModal","$emit","type","StateModalType","WARNING","ERROR","Vue","tslib_1","PropSync","Prop","Component","components","BaseModal","component","ProgressButton","progressButtonWidth","buttonIndexReceived","buttonClick","obj","buttonIndex","from","isValidation","tempDisableButton","percent","progressButtonDelay","i","interval","setInterval","progressBar","clearInterval","apiResponseCode","completeButton","handleError","updateProgress","setProgressResposeDelay","emitMethod","setProgressBeforeRespose","newBttun","document","getElementById","style","APP_CONST","STYLE","COLOR","PRIMARY_700","NEUTRAL_100","background","reSetprogressBar","element","classList","remove","add","complateButtonProgress","val","showDelay","setTimeout","default","Boolean","Watch","deep","immediate","classes","openDropdown","dropdown","label","toLowerCase","split","join","_e","error","disable","publicUniqueId","dropdownList","autoSelectionAllowed","length","toggleDropdown","indexOf","_k","keyCode","key","checkKey","singleSelect","value","directives","name","rawName","expression","target","currentTarget","onDropdownOpen","select","id","firstSelectLabel","stopPropagation","changeFocusOnHover","modifiers","placeholder","domProps","composing","search","trim","evt","active","$forceUpdate","clearSearch","_l","filterList","index","showSelectLabel","isDropdownElementIdValid","errorText","DropdownList","hovering","hoverText","styleObject","dropdownElement","searchElementId","activeLetter","selectedIndex","selectableLableHover","Math","floor","random","e","close","FALSE","TRUE","MINUS_ONE","children","getElementsByClassName","inputElement","focus","activeEle","getElementsByName","scrollIntoView","block","behavior","findIndex","el","toFind","ZERO","inline","dropdownMenuItems","selected","addEventListener","preventDefault","selectFirstElement","old","newVal","ONE","dropDownValues","attribute","searchElement","activeElement","code","refocusDD","shiftKey","goToSearch","input","String","fromCharCode","test","loopStart","innerText","charAt","inp","currentElm","querySelector","forEach","drop","classlist","selection","list","dropList","filter","includes","btnElment","filters","isBillingMethodMenuOpenComputed","onClose","ref","scopedSlots","_u","fn","handleSubmit","beforeOnSave","screenText","getScreenText","paymentItem","paymentIndex","handleDeletePaymentPlan","selectedValue","isItDuplicated","numberOfPaymentsList","handlePaymentPlanOptionChange","frequencyList","isPaymentPlanUnselected","isAddPaymentPlanButtonVisible","handleAddPaymentPlan","validationMode","Eager","errors","invalid","validated","minimumOrderAmount","visibility","disablePaymentsCount","paymentPlanDeactivationDropdown","handlePaymentPlanDeactivationChange","model","callback","$$v","currentDeactivationPeriodSelected","isSaveDisabled","isModalVisible","modalConfig","toggleConfirmationModal","handleConfirm","BillingMethodConfiguration","ScreenText","MAX_NUMBER_OF_PAYMENTS","MAX_PAYMENT_PLANS","SELECT_TYPE_VALUE","numberOfPaymentOptions","Array","_","toString","paymentOptionList","frequencyOptionList","PaymentPlanFrequency","WEEKLY","BIWEELKY","MONTHLY","paymentPlanDeactivationOptions","PaymentPlanInterval","DAYS","WEEKS","MONTHS","discountRuleListDropdown","initializeDropdownListOptions","frequencyListDropdown","paymentPlanOptionList","numberOfPayments","frequency","optionList","disablePaymentsInterval","find","option","options","dropdownOptions","paymentPlanConfiguration","map","selectedPaymentList","paymentIntervalCount","selectedFrequencyList","paymentInterval","existingPaymentPlanId","isMenuOpen","paymentPlan","paymentsModule","paymentPlanDeactivationConfig","initPaymentPlanDeactivationConfig","initPaymentOptionListConfig","paymentPlanConfigurations","formObserverRef","reset","touched","paymentPlanPayload","accountId","getAccountId","paymentPlanItem","paymentPlanID","isActive","onSubmission","updatePaymentPlan","submit","console","APP_UTILITIES","showToastMessage","ToastType","Error","setIsBillingMethodMenuOpen","resetInputs","paymentPlanId","paymentPlanKey","selectedPaymentPlanIndex","plan","filteredPlanList","planItem","firstKeyMatch","some","otherKeyMatch","secondKeyMatch","paymentPlanItemToBeRemoved","accountIdCookie","getCookie","Number","parseInt","validate","isFormDiscountValid","isAnyPaymentPlanDuplicated","isAnyPaymentPlanEntryEmpty","isTheWholeFormValid","createPaymentPlan","isBillingMethodMenuOpen","setIsConfiguratioDiscountMenuOpen","Ref","OffCanvas","ValidationObserver","ValidationProvider"],"mappings":"wNAAA,W,gDCAAA,EAAOC,QAAU,IAA0B,0B,qECA3CD,EAAOC,QAAU,IAA0B,2B,qBCA3C,IAAIC,EAAc,EAAQ,QACtBC,EAA6B,EAAQ,QACrCC,EAAc,EAAQ,QACtBC,EAAgB,EAAQ,QAAsCA,cAI9DH,IAA8B,KAAd,KAAKI,OAAgBD,IACvCF,EAA2BI,EAAEC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K,SAACpB,GAAe,OAAKA,EAAgB/E,cAAcmD,mBAAqB,EAAKpB,mBAAqBgD,EAAgB/E,cAAcoD,YAAc,EAAKrB,qBAChNgF,EAAsBH,IAAwBE,IAA+BD,EACnFnU,KAAK2N,wBAA0ByG,EAE3BC,IACI5C,EAAcC,OAAeD,YAE/BA,GAA8B,MAAfA,EACjBzR,KAAK+O,2BAICmD,EAAqB,CACzBC,UAAWnS,KAAKoS,eAChBjE,mBAAoBnO,KAAKmO,mBACzBE,qBAAsBrO,KAAKqO,qBAC3BuC,wBAAyB5Q,KAAK2O,kCAAkCzH,GAChE4K,0BAA2B9R,KAAKwQ,sBAAsBU,KAAI,SAACmB,GAAe,MAAM,CAC9EnL,GAAI,KACJoL,cAAe,KACflB,qBAAsBiB,EAAgB/E,cAAcmD,iBACpDa,gBAAiBe,EAAgB/E,cAAcoD,eAGnD1Q,KAAKwS,aAAad,OAAe4C,kBAAkBpC,MAGtD,sGAnCH,IAmCG,sDA3KD,OAAOR,OAAe6C,yBAGxB,aAIoC9N,GAClCiL,OAAe8C,kCAAkC/N,KAGnD,oDAKE,OAAOzG,KAAKwQ,sBAAsBvK,OAASjG,KAAKoP,sBACjD,EAnO4C,CAASvN,QAMtDC,QADC2S,eAAI,oBAAkB,sCAwGvB3S,QADCmD,eAAM,kCAAmC,CAAEC,MAAM,KAAO,uCA5GtC+J,EAA0B,QAX9ChN,eAAU,CACTC,WAAY,CACVwS,uBACAC,0BACAC,0BACAtM,0BACAjG,sBACAd,4BAIiB0N,WC1Osb,I,wBCQvc7M,EAAY,eACd,EACAtC,EACAwB,GACA,EACA,KACA,WACA,MAIa,aAAAc,E","file":"js/chunk-0619af20.1277a2ed8e2cc1c0c2b6.1732066582532.min.js","sourcesContent":["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!./BillingMethodConfiguration.vue?vue&type=style&index=0&id=467ee5b9&lang=less&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/trash.b8516658.svg\";","module.exports = __webpack_public_path__ + \"img/search.83aca4f4.svg\";","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","export enum FormValidationError {\n REQUIRED,\n MIN,\n MAX,\n MAX_LENGTH,\n TYPE,\n DUPLICATE,\n FORMAT\n}\n\nexport interface FormValidation {\n changes: boolean;\n dirty: boolean;\n error: FormValidationError | null;\n errorMessage: string;\n valid: boolean;\n}\n\nexport type FormFieldValidation = {\n [Property in keyof T]: FormValidation\n};\n\nexport enum VeeValidateProviderMode {\n Aggressive = 'aggressive',\n Passive = 'passive',\n Lazy = 'lazy',\n Eager = 'eager'\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&\"","module.exports = __webpack_public_path__ + \"img/arrowDown.33c89f03.svg\";","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!./DropdownList.less?vue&type=style&index=0&id=7867c925&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 }\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 }\n else if (this.apiResponseCode == 400) {\n clearInterval(interval);\n this.handleError(interval);\n }\n else {\n this.progressButtonWidth = i;\n if (!this.updateProgress) {\n this.setProgressResposeDelay();\n }\n else {\n this.progressBar();\n }\n }\n }\n else {\n if (this.apiResponseCode == 200) {\n clearInterval(interval);\n this.completeButton();\n }\n else if (this.apiResponseCode == 400) {\n clearInterval(interval);\n this.handleError(interval);\n }\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 }\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 }\n else {\n if (this.apiResponseCode == 200) {\n this.completeButton();\n clearInterval(interval);\n this.progressButtonWidth = 100;\n }\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 }\n else if (this.apiResponseCode == 400) {\n clearInterval(interval);\n this.handleError(interval);\n }\n else {\n this.progressBar();\n }\n }\n else {\n if (this.apiResponseCode == 200) {\n clearInterval(interval);\n this.completeButton();\n }\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"dropdown-list relative\",class:[_vm.classes, _vm.openDropdown && 'dropdown-open-list']},[(_vm.dropdown.label)?_c('label',{attrs:{\"bx-attr\":(\"dropdown-label-\" + (_vm.dropdown.label.toLowerCase().split(' ').join('-')))}},[_vm._v(_vm._s(_vm.dropdown.label)),(_vm.dropdown.required)?_c('span',[_vm._v(\"*\")]):_vm._e()]):_vm._e(),_c('div',{staticClass:\"relative clear-both\"},[_c('button',{class:[_vm.dropdown.error && 'outline-red', _vm.dropdown.disable && 'disable'],attrs:{\"id\":(\"dropdown-label-\" + _vm.publicUniqueId),\"type\":\"button\",\"bx-attr\":(\"toggleDropdown-\" + (_vm.dropdown.value)),\"disabled\":(_vm.dropdown.disable || _vm.dropdown.dropdownList && ((_vm.autoSelectionAllowed && _vm.dropdown.dropdownList.length <= 1)||(!_vm.autoSelectionAllowed &&_vm.dropdown.dropdownList.length <= 0)))},on:{\"click\":function($event){return _vm.toggleDropdown($event)},\"keydown\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }return _vm.toggleDropdown($event,true)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"tab\",9,$event.key,\"Tab\")){ return null; }return _vm.toggleDropdown($event,true)},function($event){return _vm.checkKey($event)}]}},[_c('img',{attrs:{\"src\":require(\"../../assets/images/scholars/add-new-scholars/arrowDown.svg\"),\"alt\":\"down\"}}),_c('span',{class:[_vm.dropdown.singleSelect && 'singleSelect']},[_vm._v(_vm._s(_vm.dropdown.value))])]),(_vm.openDropdown)?_c('div',{directives:[{name:\"click-outside\",rawName:\"v-click-outside\",value:(function (){_vm.openDropdown=false}),expression:\"()=>{openDropdown=false}\"}],staticClass:\"dropdown-submenu\"},[_c('ul',{staticClass:\"dropdown-submenu-list scroll-drop\"},[(_vm.dropdown.showSelectLabel)?_c('li',{staticClass:\"select-label\",on:{\"keydown\":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.onDropdownOpen($event)},\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.select({id: 0, value: _vm.dropdown.firstSelectLabel || 'Select'});},\"click\":function($event){$event.stopPropagation();return _vm.select({id: 0, value: _vm.dropdown.firstSelectLabel || 'Select'})},\"mouseover\":function($event){return _vm.changeFocusOnHover(-1)}}},[_c('img',{attrs:{\"src\":require(\"../../assets/images/scholars/add-new-scholars/arrowDown.svg\"),\"alt\":\"down\"}}),_c('a',[_vm._v(_vm._s(_vm.dropdown.firstSelectLabel || 'Select'))])]):_vm._e(),(_vm.dropdown.search)?_c('li',{staticClass:\"input_rel\"},[(_vm.dropdown.search)?_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.search),expression:\"search\",modifiers:{\"trim\":true}}],attrs:{\"placeholder\":_vm.dropdown.placeholder || 'Search',\"type\":\"text\",\"id\":\"dropdownSearchInput\"},domProps:{\"value\":(_vm.search)},on:{\"keydown\":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.onDropdownOpen($event, 'fromSearchInput')},\"input\":[function($event){if($event.target.composing){ return; }_vm.search=$event.target.value.trim()},function (evt) {_vm.search=evt.target.value; _vm.active=-1}],\"mouseover\":function($event){return _vm.changeFocusOnHover(-1)},\"blur\":function($event){return _vm.$forceUpdate()}}}):_vm._e(),(_vm.search)?_c('span',{staticClass:\"cross\",on:{\"click\":function($event){return _vm.clearSearch()}}},[_c('img',{attrs:{\"src\":require(\"../../assets/images/closeIconBlack.svg\"),\"alt\":\"\"}})]):_c('span',{staticClass:\"search-icon\"},[_c('img',{attrs:{\"src\":require(\"../../assets/images/common-icon/search.svg\"),\"alt\":\"\"}})])]):_vm._e(),_vm._l((_vm.filterList(_vm.dropdown.dropdownList, _vm.search)),function(obj,index){return _c('li',{key:index,staticClass:\"dropdown-menu\",class:[ _vm.dropdown.id==obj.id && 'blue-hover' ,!_vm.dropdown.showSelectLabel && index == 0 && 'label-wt-select'],attrs:{\"id\":(\"drop-li-\" + index)},on:{\"click\":function($event){return _vm.select(obj)},\"mouseover\":function($event){return _vm.changeFocusOnHover(index)}}},[(_vm.isDropdownElementIdValid(obj.id))?_c('a',{attrs:{\"id\":(\"drop-a-\" + index),\"name\":(\"drop-a-\" + (obj.id)),\"tabindex\":index,\"bx-attr\":(\"dropdown-value-\" + (obj.value.toLowerCase().split(' ').join('-')))},on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.select(obj);},\"keydown\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }return _vm.toggleDropdown($event,true)},function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.onDropdownOpen($event,'fromLi')}]}},[(!_vm.dropdown.showSelectLabel && index == 0)?_c('img',{attrs:{\"src\":require(\"../../assets/images/scholars/add-new-scholars/arrowDown.svg\"),\"alt\":\"down\"}}):_vm._e(),_vm._v(\" \"+_vm._s(obj.value))]):_vm._e()])})],2)]):_vm._e()]),(_vm.dropdown.error)?_c('span',{staticClass:\"dropdown-error\"},[_vm._v(_vm._s(_vm.dropdown.errorText))]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Vue, Component, Prop, Watch } from 'vue-property-decorator';\nimport APP_CONST from '@/constants/AppConst';\nimport { DropdownListItem, DropdownListOptions } from './types';\n\n\n@Component({\n name: 'DropdownList',\n filters: {}\n})\nexport default class DropdownList extends Vue {\n search: string = '';\n openDropdown: boolean = false;\n hovering: boolean = false;\n hoverText: string = '';\n styleObject: any = {};\n dropdownElement: any = {};\n active: number = -1;\n searchElementId: number = -1;\n public activeLetter = '';\n public selectedIndex: number = -1;\n selectableLableHover: boolean = false;\n public publicUniqueId: number = Math.floor(Math.random() * 100000000000);\n\n @Prop()\n classes!: string[];\n\n @Prop({ default: true })\n autoSelectionAllowed!: boolean;\n\n @Prop({\n default: {\n singleSelect: false,\n showSelectLabel: true,\n firstSelectLabel: 'Select',\n id: 0,\n value: 'Select',\n label: '',\n error: false,\n errorText: '',\n search: false,\n disable: false,\n dropdownList: [{ id: 0, value: 'Select' }] as DropdownListItem[]\n } as DropdownListOptions\n })\n dropdown!: DropdownListOptions;\n\n @Prop()\n slotObj!: { slotLabel: string; slotType: string };\n\n toggleDropdown(e?: any, close?: boolean) {\n if (this.dropdown.disable) {\n return;\n }\n this.openDropdown = this.openDropdown\n ? APP_CONST.FALSE\n : (close\n ? APP_CONST.FALSE\n : APP_CONST.TRUE);\n this.clearSearch();\n this.hovering = !this.hovering;\n if (this.openDropdown) {\n this.active = APP_CONST.MINUS_ONE;\n setTimeout(() => {\n this.dropdownElement.children = [...document.getElementsByClassName('dropdown-menu')];\n if (this.dropdown.search) {\n const inputElement = document.getElementById('dropdownSearchInput');\n inputElement && inputElement.focus();\n if (this.dropdown.id) {\n const activeEle = document.getElementsByName(`drop-a-${this.dropdown.id}`)[0];\n if (activeEle) {\n activeEle.scrollIntoView({ block: 'center', behavior: 'smooth' });\n }\n }\n }\n else {\n const element = document.getElementById('drop-a-0');\n if (element) {\n element.focus();\n this.active = 0;\n this.dropdownElement.children[this.active].classList.add('dropbtn-selected');\n }\n if (this.dropdown.id) {\n const activeEle = document.getElementsByName(`drop-a-${this.dropdown.id}`)[0];\n if (activeEle) {\n activeEle.focus();\n const index = this.dropdownElement.children.findIndex((el: any, index: number) => {\n const toFind = `drop-a-${this.dropdown.id}`;\n if (el.children[0].name == toFind) {\n return index;\n }\n });\n if (index >= APP_CONST.ZERO) {\n this.dropdownElement.children[this.active].classList.remove('dropbtn-selected');\n this.active = index;\n this.dropdownElement.children[this.active].classList.add('dropbtn-selected');\n this.dropdownElement.children[this.active] && this.dropdownElement.children[this.active].scrollIntoView({ block: 'center', inline: 'center', behavior: 'smooth' });\n }\n }\n }\n }\n }, 10);\n }\n if (this.openDropdown && this.selectedIndex > -1) {\n const dropdownMenuItems = this.dropdownElement && this.dropdownElement.children;\n dropdownMenuItems[this.active] && dropdownMenuItems[this.active].scrollIntoView({ block: 'center', inline: 'center', behavior: 'smooth' });\n }\n if (this.active > -1 && e && e.keyCode == 13 && !this.openDropdown) {\n this.selectedIndex = this.active;\n const selected = this.dropdown.dropdownList[this.active];\n this.select(selected);\n }\n }\n\n /* istanbul ignore next */\n mounted() {\n document.addEventListener('keydown', (e) => {\n switch (e.key) {\n case 'ArrowUp':\n case 'ArrowDown':\n if (this.openDropdown) {\n e.preventDefault();\n }\n break;\n }\n });\n this.selectFirstElement();\n }\n\n @Watch('dropdown.dropdownList', { deep: true })\n onDropdownListChange(old: any, newVal: any) {\n if (old !== newVal) {\n this.selectFirstElement();\n }\n }\n\n selectFirstElement() {\n if (this.dropdown.dropdownList && this.dropdown.dropdownList.length <= APP_CONST.ONE && this.autoSelectionAllowed) {\n const dropDownValues: any = this.dropdown.dropdownList.length == APP_CONST.ZERO\n ? { id: this.dropdown.id\n ? this.dropdown.id\n : 0, value: this.dropdown.value }\n : this.dropdown.dropdownList[APP_CONST.ZERO];\n this.select(dropDownValues);\n const element: any = document.getElementById(`dropdown-label-${this.publicUniqueId}`);\n element && element.classList && element.classList.add('dropdown-active');\n }\n else {\n const element: any = document.getElementById(`dropdown-label-${this.publicUniqueId}`);\n element && element.classList && element.classList.remove('dropdown-active');\n }\n }\n\n onDropdownOpen(e: any, attribute?: string) {\n const searchElement = document.getElementById('dropdownSearchInput');\n if (document.activeElement !== searchElement) {\n if (e.code == 'Space') {\n e.preventDefault();\n return false;\n }\n }\n if (e.keyCode == 27) {\n this.toggleDropdown({}, true);\n this.refocusDD();\n }\n if (attribute == 'fromLi' && e.keyCode == 9 && !e.shiftKey) {\n this.toggleDropdown({}, false);\n this.active = -1;\n return;\n }\n else if (attribute == 'fromLi' && e.keyCode == 9 && e.shiftKey) {\n this.active = -1;\n setTimeout(() => {\n if (this.dropdown.search) {\n const inputElement = document.getElementById('dropdownSearchInput');\n inputElement && inputElement.scrollIntoView({ block: 'center', inline: 'center', behavior: 'smooth' });\n this.goToSearch();\n }\n }, 10);\n return;\n }\n else if (attribute == 'fromSearchInput' && (e.keyCode == 38 || e.keyCode == 40)) {\n e.preventDefault();\n return;\n }\n else if (attribute == 'fromSearchInput' && e.keyCode == 9 && !e.shiftKey) {\n this.active = 0;\n }\n const dropdownMenuItems = this.dropdownElement && this.dropdownElement.children;\n const inputElement = document.getElementById('dropdownSearchInput');\n\n if (this.openDropdown) {\n const input = String.fromCharCode(e.keyCode);\n if (e.keyCode == 40) {\n if (this.active < this.dropdownElement.children.length - 1) {\n this.active++;\n }\n }\n else if (e.keyCode == 38) {\n if (this.active == APP_CONST.ZERO) {\n this.active;\n }\n else {\n this.active--;\n }\n }\n else if (/[a-zA-Z0-9]/.test(input) && (document.activeElement !== inputElement)) {\n const loopStart = this.activeLetter == input.toLowerCase()\n ? this.active + 1\n : 0;\n for (let i = loopStart; i < this.dropdownElement.children.length; i++) {\n const val = dropdownMenuItems[i].innerText.charAt(0).toLowerCase();\n const inp = input.toLowerCase();\n if (val == inp) {\n this.active = i;\n this.activeLetter = inp;\n break;\n }\n }\n }\n setTimeout(() => {\n const currentElm: any = document.querySelector('.dropbtn-selected a') as HTMLElement;\n currentElm && currentElm.focus();\n });\n }\n this.dropdownElement.children.forEach((drop: any) => {\n drop && drop.classList && drop.classList.remove('dropbtn-selected');\n });\n this.dropdownElement && this.dropdownElement.children[this.active] && this.dropdownElement.children[this.active].classList.add('dropbtn-selected');\n if (this.active > -1) {\n this.dropdownElement.children[this.active].focus();\n this.dropdownElement.children[this.active].classlist && this.dropdownElement.children[this.active].classlist.add('dropbtn-selected');\n dropdownMenuItems[this.active] && dropdownMenuItems[this.active].scrollIntoView({ block: 'center', inline: 'center', behavior: 'smooth' });\n }\n }\n\n goToSearch() {\n const inputElement = document.getElementById('dropdownSearchInput');\n inputElement && inputElement.focus();\n }\n\n checkKey(e: any) {\n if (e.keyCode == 38 || e.keyCode == 40) {\n if (this.openDropdown) {\n this.onDropdownOpen(e, 'fromLi');\n }\n else {\n this.toggleDropdown(e);\n }\n }\n }\n\n select(selection: { id: number; value: string }) {\n if (selection && this.dropdown.id == selection.id) {\n this.openDropdown = false;\n this.refocusDD();\n this.hovering = false;\n return;\n }\n this.dropdown.id = selection && selection.id;\n this.dropdown.value = selection && selection.value;\n if (this.dropdown.id >= APP_CONST.ZERO || typeof (this.dropdown.id) == 'string') {\n this.$emit('onSelectionChange', { id: this.dropdown.id, value: this.dropdown.value } as DropdownListItem);\n }\n this.openDropdown = false;\n this.refocusDD();\n this.hovering = false;\n }\n\n filterList(list: [{ id: number; value: string }], search: string): any {\n search = search.trim();\n if (!search) {\n return list;\n }\n const dropList = list.filter((el) => el.value.toLowerCase().includes(search.toLowerCase()));\n return dropList;\n }\n\n clearSearch() {\n this.search = '';\n }\n\n refocusDD() {\n const btnElment = document.getElementById(`dropdown-label-${this.publicUniqueId}`);\n btnElment && btnElment.focus();\n }\n\n // Just to improve user Experience\n changeFocusOnHover(index: number) {\n this.dropdownElement && this.dropdownElement.children && this.dropdownElement.children.forEach((drop: any) => {\n drop && drop.classList && drop.classList.remove('dropbtn-selected');\n });\n if (index > -1) {\n this.active = index;\n // this check is needed to ensure the dropdown and elements inside the dropdown exist\n // due to the onDropdownOpen function having a 10ms timeout\n if (this.dropdownElement.children && this.dropdownElement.children.length && this.dropdownElement.children[this.active]) {\n this.dropdownElement.children[this.active].classList.add('dropbtn-selected');\n }\n }\n }\n\n /**\n * Checks if the provided dropdown element ID is valid.\n *\n * @param id - The dropdown element ID to validate.\n * @returns A boolean indicating whether the ID is valid or not.\n */\n isDropdownElementIdValid(id: number | string): boolean {\n if (typeof id === 'number') {\n return id > -1;\n }\n else if (typeof id === 'string') {\n return !!id;\n }\n return false;\n }\n}","\n\n\n\n\n\n\n\n\n\n\n\n\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 DropdownList from '@/ui-components/dropdownListBx/DropdownList';\nexport default DropdownList;\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!./DropdownList.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!./DropdownList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DropdownList.vue?vue&type=template&id=7867c925&scoped=true&\"\nimport script from \"./DropdownList.vue?vue&type=script&lang=ts&\"\nexport * from \"./DropdownList.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DropdownList.less?vue&type=style&index=0&id=7867c925&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 \"7867c925\",\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('OffCanvas',{attrs:{\"isVisible\":_vm.isBillingMethodMenuOpenComputed},on:{\"update:isVisible\":function($event){_vm.isBillingMethodMenuOpenComputed=$event},\"update:is-visible\":function($event){_vm.isBillingMethodMenuOpenComputed=$event},\"onClose\":_vm.onClose}},[_c('aside',{staticClass:\"add-new-sec\"},[_c('ValidationObserver',{ref:\"formObserverRef\",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:\"billing-method-container\"},[_c('div',{staticClass:\"billing-method-container__title uk-margin-small-bottom\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_PAYMENT_METHOD_TITLE'))+\" \")]),_c('div',{staticClass:\"billing-method-container__description uk-margin-small-bottom\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_PAYMENT_METHOD_DESCRIPTION'))+\" \")]),_vm._l((_vm.paymentPlanOptionList),function(paymentItem,paymentIndex){return _c('div',{key:paymentItem.id,staticClass:\"payment-plan-container\"},[_c('div',{staticClass:\"payment-plan-container__header\"},[_c('p',{staticClass:\"payment-plan-container__header-text\"},[_vm._v(\"Payment plan \"+_vm._s(paymentIndex + 1))]),(paymentIndex === 1)?_c('button',{staticClass:\"payment-plan-container__header-delete\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.handleDeletePaymentPlan(paymentItem.id)}}},[_c('img',{staticClass:\"payment-plan-container__header-img\",attrs:{\"src\":require(\"../../../../assets/images/trash.svg\")}})]):_vm._e()]),_c('div',{staticClass:\"payment-plan-container__inputs\"},[_c('div',{staticClass:\"payment-plan-container__inputs-field\"},[_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_NUMBER_OF_PAYMENTS\"))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])])]),_c('DropdownList',{class:{\n 'dropdown-list--error': paymentItem.selectedValue && paymentItem.selectedValue.isItDuplicated\n },attrs:{\"dropdown\":paymentItem.numberOfPaymentsList,\"autoSelectionAllowed\":false},on:{\"onSelectionChange\":function($event){return _vm.handlePaymentPlanOptionChange($event, paymentItem.id, 'numberOfPayments')}}})],1),_c('div',{staticClass:\"payment-plan-container__inputs-field\"},[_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_PAYMENT_FREQUENCY\"))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])])]),_c('DropdownList',{class:{\n 'dropdown-list--error': paymentItem.selectedValue && paymentItem.selectedValue.isItDuplicated\n },attrs:{\"dropdown\":paymentItem.frequencyList,\"autoSelectionAllowed\":false},on:{\"onSelectionChange\":function($event){return _vm.handlePaymentPlanOptionChange($event, paymentItem.id, 'frequency')}}})],1),(paymentItem.selectedValue.isItDuplicated || _vm.isPaymentPlanUnselected)?_c('div',{staticClass:\"form-field-error uk-width-1-1 uk-padding-remove\"},[_c('i',{staticClass:\"fa-solid fa-exclamation-circle\"}),_vm._v(\" \"+_vm._s(_vm.isPaymentPlanUnselected ? \"Please select a valid payment plan\" : _vm.screenText.getScreenText('LABEL_UNIQUE_PAYMENT_PLAN'))+\" \")]):_vm._e(),(!paymentIndex && _vm.isAddPaymentPlanButtonVisible)?_c('div',{staticClass:\"payment-plan-container__actions\"},[_c('a',{staticClass:\"payment-plan-container__add-payment-plan-btn\",attrs:{\"target\":\"_blank\"}},[_c('button',{on:{\"click\":_vm.handleAddPaymentPlan}},[_c('span',[_c('i',{staticClass:\"fa-solid fa-plus uk-margin-small-right\"}),_c('span',{staticClass:\"fee-button-text\"},[_vm._v(_vm._s(_vm.screenText.getScreenText('LABEL_PAYMENT_PLAN')))])])])])]):_vm._e()])])}),_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_PAYMENT_EXCEPTIONS'))+\" \")]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_PAYMENT_EXCEPTIONS_DESCRIPTION'))+\" \")])])],2),_c('div',{staticClass:\"form-group form-group--no-margin-bottom\"},[_c('label',{staticClass:\"uk-margin-small-bottom\",attrs:{\"for\":\"minimum-order-amount\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_MINIMUM_ORDER_AMOUNT\"))+\" \")])]),_c('div',{staticClass:\"uk-width-1-2 uk-margin-bottom payment-plan-container__minimun-amount-container\"},[_c('ValidationProvider',{attrs:{\"rules\":\"min_value:1\",\"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\",value:(_vm.minimumOrderAmount),expression:\"minimumOrderAmount\"}],staticClass:\"payment-plan-container__inputs-decorator-input payment-plan-container__inputs-decorator-input--currency\",attrs:{\"id\":\"minimum-order-amount\",\"type\":\"number\",\"min\":\"1\"},domProps:{\"value\":(_vm.minimumOrderAmount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.minimumOrderAmount=$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('span',{staticClass:\"payment-plan-container__inputs-decorator-content payment-plan-container__inputs-decorator-content--currency\"})],1),_c('div',{staticClass:\"payment-plan-deactivation-container uk-margin-medium-bottom\"},[_c('div',{staticClass:\"form-group form-group--no-margin-bottom\"},[_c('label',{staticClass:\"uk-margin-small-bottom\",attrs:{\"for\":\"payment-plan-value\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_TURN_OFF_PAYMENT_PLANS\"))+\" \")])]),_c('div',{staticClass:\"payment-plan-deactivation-container payment-plan-deactivation-container__counter\"},[_c('ValidationProvider',{attrs:{\"rules\":\"min_value:1\",\"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\",value:(_vm.disablePaymentsCount),expression:\"disablePaymentsCount\"}],staticClass:\"payment-plan-container__inputs-decorator-input\",attrs:{\"id\":\"payment-plan-value\",\"type\":\"number\",\"min\":\"1\"},domProps:{\"value\":(_vm.disablePaymentsCount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.disablePaymentsCount=$event.target.value}}}),_c('span',{staticClass:\"form-field-error\",style:({\n visibility: validated && invalid ? 'visible' : 'hidden'\n })},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}],null,true)})],1),_c('div',{staticClass:\"payment-plan-deactivation-container payment-plan-deactivation-container__time-units\"},[_c('DropdownList',{attrs:{\"id\":\"payment-plan-deactivation-period\",\"dropdown\":_vm.paymentPlanDeactivationDropdown,\"autoSelectionAllowed\":false},on:{\"onSelectionChange\":_vm.handlePaymentPlanDeactivationChange},model:{value:(_vm.currentDeactivationPeriodSelected),callback:function ($$v) {_vm.currentDeactivationPeriodSelected=$$v},expression:\"currentDeactivationPeriodSelected\"}})],1)]),_c('div',[_c('button',{staticClass:\"btn-secondary uk-margin-small-right\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.onClose}},[_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\nimport { Component, Ref, Vue, Watch } from 'vue-property-decorator';\nimport { ScreenText } from '@/lang/ScreenText';\nimport { ValidationObserver, ValidationProvider } from 'vee-validate';\nimport paymentsModule from '@/store/modules/Payments/module';\nimport OffCanvas from '@/commoncomponents/OffCanvas.vue';\nimport DropdownList from '@/ui-components/dropdownListBx/DropdownList.vue';\nimport { DropdownListItem, DropdownListOptions } from '@/ui-components/dropdownListBx/types';\nimport { PaymentPlanForm, PaymentPlan, PaymentPlanInterval, PaymentPlanFrequency, PaymentPlanConfiguration, StateModalType } from '@/Model/payments/types';\nimport { VeeValidateProviderMode } from '@/Model/forms/types';\nimport ProgressButton from '@/commoncomponents/progressButton/progressButton';\nimport APP_UTILITIES from '@/utilities/commonFunctions';\nimport StateModal from '@/popupcomponents/StateModal.vue';\nimport { ToastType } from '@/Model/toastType';\n\n@Component({\n components: {\n OffCanvas,\n ValidationObserver,\n ValidationProvider,\n DropdownList,\n ProgressButton,\n StateModal\n }\n})\n\nexport default class BillingMethodConfiguration extends Vue {\n readonly screenText = new ScreenText();\n readonly MAX_NUMBER_OF_PAYMENTS = 12;\n readonly MAX_PAYMENT_PLANS = 2;\n\n @Ref('formObserverRef')\n readonly formObserverRef?: InstanceType;\n\n isSaveDisabled = false;\n SELECT_TYPE_VALUE = -1;\n minimumOrderAmount:number | null = null;\n disablePaymentsCount:number | null = null;\n isPaymentPlanUnselected = false;\n isModalVisible = false;\n modalConfig = {\n title: 'Change your payment plans',\n description: 'Are you sure you want to change your payment plan settings? This may impact the application experience. Previously submitted applications will not be affected.',\n type: StateModalType.WARNING,\n cancelButtonLabel: this.screenText.getScreenText('BTN_GO_BACK_CAPS'),\n confirmButtonLabel: this.screenText.getScreenText('BTN_SAVE')\n };\n\n\n numberOfPaymentOptions: DropdownListItem[] = Array.from({ length: this.MAX_NUMBER_OF_PAYMENTS - 1 }, (_, index) => ({\n id: index + 2,\n value: (index + 2).toString()\n }));\n\n paymentOptionList = [{ id: this.SELECT_TYPE_VALUE, value: 'Select' }, ...this.numberOfPaymentOptions];\n\n frequencyOptionList: DropdownListItem[] = [\n { id: this.SELECT_TYPE_VALUE, value: 'Select' },\n { id: PaymentPlanFrequency.WEEKLY, value: 'Weekly'},\n { id: PaymentPlanFrequency.BIWEELKY, value: 'Bi-weekly'},\n { id: PaymentPlanFrequency.MONTHLY, 'value': 'Monthly'}\n ];\n\n paymentPlanDeactivationOptions: DropdownListItem[] = [\n { id: PaymentPlanInterval.DAYS, value: 'Days before session starts' },\n { id: PaymentPlanInterval.WEEKS, value: 'Weeks before session starts' },\n { id: PaymentPlanInterval.MONTHS, value: 'Months before session starts' }\n ];\n\n discountRuleListDropdown: DropdownListOptions = this.initializeDropdownListOptions(this.paymentOptionList);\n frequencyListDropdown: DropdownListOptions = this.initializeDropdownListOptions(this.frequencyOptionList);\n paymentPlanDeactivationDropdown: DropdownListOptions = this.initializeDropdownListOptions(this.paymentPlanDeactivationOptions);\n\n paymentPlanOptionList: PaymentPlanForm[] = [\n {\n id: 1,\n numberOfPaymentsList: {...this.discountRuleListDropdown},\n frequencyList: {...this.frequencyListDropdown},\n selectedValue: {\n numberOfPayments: this.paymentOptionList[0].id,\n frequency: this.frequencyOptionList[0].id,\n isItDuplicated: false\n }\n }\n ];\n currentDeactivationPeriodSelected: DropdownListItem = this.paymentPlanDeactivationOptions[0];\n validationMode = VeeValidateProviderMode;\n\n initializeDropdownListOptions(optionList: { id: number; value: string }[]): DropdownListOptions {\n return {\n id: optionList[0].id,\n value: optionList[0].value,\n singleSelect: true,\n showSelectLabel: false,\n dropdownList: optionList\n };\n }\n\n initPaymentPlanDeactivationConfig(optionList: DropdownListItem[], disablePaymentsInterval: number): {options: DropdownListOptions; selectedValue: DropdownListItem} {\n\n const selectedValue = optionList.find((option) => option.id === disablePaymentsInterval) as DropdownListItem;\n\n const options = {\n id: selectedValue.id,\n value: selectedValue.value,\n singleSelect: true,\n showSelectLabel: false,\n dropdownList: optionList\n };\n const dropdownOptions: {options: DropdownListOptions; selectedValue: DropdownListItem} = { options, selectedValue } ;\n\n return dropdownOptions;\n }\n\n initPaymentOptionListConfig(paymentPlanConfiguration: PaymentPlanConfiguration[]): PaymentPlanForm[]{\n return paymentPlanConfiguration.map((config:PaymentPlanConfiguration, index:number) =>{ \n const selectedPaymentList = this.paymentOptionList.find((option) => option.id === config.paymentIntervalCount) as DropdownListItem;\n const selectedFrequencyList = this.frequencyOptionList.find((option) => option.id === config.paymentInterval) as DropdownListItem;\n return ({\n id: index + 1,\n numberOfPaymentsList: {...this.discountRuleListDropdown, id: selectedPaymentList.id, value: selectedPaymentList.value},\n frequencyList: {...this.frequencyListDropdown, id: selectedFrequencyList.id, value: selectedFrequencyList.value},\n selectedValue: {\n numberOfPayments: selectedPaymentList.id,\n frequency: selectedFrequencyList.id,\n isItDuplicated: false,\n existingPaymentPlanId: config.id\n }\n });\n }) as PaymentPlanForm[];\n \n }\n \n \n @Watch('isBillingMethodMenuOpenComputed', { deep: true })\n isDiscountMenuOpen(isMenuOpen: boolean): void {\n const paymentPlan = paymentsModule.paymentPlan;\n if (isMenuOpen && paymentPlan !== null) {\n this.minimumOrderAmount = paymentPlan.minimumOrderAmount;\n this.disablePaymentsCount = paymentPlan.disablePaymentsCount;\n\n const paymentPlanDeactivationConfig = this.initPaymentPlanDeactivationConfig(this.paymentPlanDeactivationOptions, paymentPlan.disablePaymentsInterval);\n \n this.paymentPlanDeactivationDropdown = paymentPlanDeactivationConfig.options;\n this.currentDeactivationPeriodSelected = paymentPlanDeactivationConfig.selectedValue;\n this.paymentPlanOptionList = this.initPaymentOptionListConfig(paymentPlan.paymentPlanConfigurations);\n } \n \n }\n\n /**\n * Resets the input fields to their initial state.\n * It resets minimum order amount, disable payment count, and dropdown selections.\n * Also resets the form validation state.\n * @private\n */\n private resetInputs(): void {\n this.minimumOrderAmount = null;\n this.disablePaymentsCount = null;\n //TODO: in edition mode we should use the \"id\" coming from the endpoint where the payment plan is retrieved\n this.paymentPlanOptionList = [\n {\n id: 1,\n numberOfPaymentsList: {...this.discountRuleListDropdown},\n frequencyList: {...this.frequencyListDropdown},\n selectedValue: {\n numberOfPayments: this.paymentOptionList[0].id,\n frequency: this.frequencyOptionList[0].id,\n isItDuplicated: false\n }\n }\n ];\n\n // reset form logic to prevent unnecesary error messages\n if (this.formObserverRef) {\n this.formObserverRef.reset();\n this.formObserverRef.flags.touched = false;\n }\n }\n\n toggleConfirmationModal() {\n this.isModalVisible = !this.isModalVisible;\n }\n\n\n /**\n * Confirmation logic when editing a discount\n */\n handleConfirm(): void {\n\n const paymentPlan = paymentsModule.paymentPlan;\n\n if (paymentPlan && paymentPlan != null) {\n const paymentPlanPayload = {\n id: paymentPlan.id,\n accountId: this.getAccountId(),\n minimumOrderAmount: this.minimumOrderAmount,\n disablePaymentsCount: this.disablePaymentsCount,\n disablePaymentsInterval: this.currentDeactivationPeriodSelected.id,\n paymentPlanConfigurations: this.paymentPlanOptionList.map((paymentPlanItem) => ({\n id: paymentPlanItem.selectedValue.existingPaymentPlanId || null,\n paymentPlanID: paymentPlanItem.id,\n paymentIntervalCount: paymentPlanItem.selectedValue.numberOfPayments,\n paymentInterval: paymentPlanItem.selectedValue.frequency,\n })),\n isActive: paymentPlan.isActive\n };\n\n this.onSubmission(paymentsModule.updatePaymentPlan(paymentPlanPayload));\n this.toggleConfirmationModal();\n\n }\n }\n\n async onSubmission(submit: Promise) {\n try {\n this.isSaveDisabled = true;\n await submit;\n this.onClose();\n }\n catch (error) {\n console.error('Error on payment plan configuration submission:', error);\n APP_UTILITIES.showToastMessage('Unexpected Error!', ToastType.Error);\n }\n finally {\n this.isSaveDisabled = false;\n }\n\n }\n\n\n /**\n * Getter for whether the configuration discount menu is open.\n * @returns {boolean} Returns true if the billing method menu is open, false otherwise.\n */\n get isBillingMethodMenuOpenComputed(): boolean {\n return paymentsModule.isBillingMethodMenuOpen;\n }\n\n /**\n * Setter for whether the configuration discount menu is open.\n * @param {boolean} value - The new value indicating whether the billing method menu is open.\n */\n set isBillingMethodMenuOpenComputed(value: boolean) {\n paymentsModule.setIsConfiguratioDiscountMenuOpen(value);\n }\n\n /**\n * Getter for the visibility of the \"Add Payment Plan\" button.\n * @returns {boolean} Returns true if the payment plan list has fewer items than the maximum allowed.\n */\n get isAddPaymentPlanButtonVisible(): boolean {\n return this.paymentPlanOptionList.length < this.MAX_PAYMENT_PLANS;\n }\n\n /**\n * Handles the action to close the OffCanvas component.\n * Resets the input fields and updates the billing method menu state.\n */\n onClose(): void {\n paymentsModule.setIsBillingMethodMenuOpen(false);\n this.resetInputs();\n }\n\n /**\n * Handles changes in the selected payment plan options.\n * Updates the selected number of payments or frequency for a payment plan\n * and checks for duplicated payment plan configurations.\n * @param {DropdownListItem} selectedValue - The selected value from the dropdown list.\n * @param {number} paymentPlanId - The ID of the payment plan being updated.\n * @param {'numberOfPayments' | 'frequency'} paymentPlanKey - The key for the value being updated (either number of payments or frequency).\n */\n handlePaymentPlanOptionChange(selectedValue: DropdownListItem, paymentPlanId: number, paymentPlanKey: 'numberOfPayments' | 'frequency'): void {\n this.isPaymentPlanUnselected = false;\n const selectedPaymentPlanIndex = this.paymentPlanOptionList.findIndex(plan => plan.id === paymentPlanId);\n\n if (selectedPaymentPlanIndex !== -1) {\n this.paymentPlanOptionList[selectedPaymentPlanIndex].selectedValue[paymentPlanKey] = selectedValue.id;\n\n const filteredPlanList = this.paymentPlanOptionList.filter((planItem) => planItem.id !== paymentPlanId);\n\n if (filteredPlanList.length) {\n const firstKeyMatch = filteredPlanList.some((planItem) => planItem.selectedValue[paymentPlanKey] === selectedValue.id);\n const otherKeyMatch = paymentPlanKey === 'numberOfPayments'\n ? 'frequency'\n : 'numberOfPayments';\n const secondKeyMatch = filteredPlanList.some((planItem) => planItem.selectedValue[otherKeyMatch] === this.paymentPlanOptionList[selectedPaymentPlanIndex].selectedValue[otherKeyMatch]);\n this.paymentPlanOptionList[selectedPaymentPlanIndex].selectedValue.isItDuplicated = firstKeyMatch && secondKeyMatch;\n\n if (!this.paymentPlanOptionList[selectedPaymentPlanIndex].selectedValue.isItDuplicated) {\n this.paymentPlanOptionList = this.paymentPlanOptionList.map((planItem) => {\n if (planItem.selectedValue[paymentPlanKey] === this.paymentPlanOptionList[selectedPaymentPlanIndex].selectedValue[paymentPlanKey] || planItem.selectedValue[otherKeyMatch] === this.paymentPlanOptionList[selectedPaymentPlanIndex].selectedValue[otherKeyMatch]) {\n return {\n ...planItem,\n selectedValue: {\n ...planItem.selectedValue,\n isItDuplicated: false\n }\n };\n }\n\n return planItem;\n });\n }\n }\n }\n }\n\n /**\n * Handles changes in the payment plan deactivation dropdown.\n * @param {DropdownListItem} selectedValue - The selected value for the payment plan deactivation period.\n */\n handlePaymentPlanDeactivationChange(selectedValue: DropdownListItem) {\n this.currentDeactivationPeriodSelected = selectedValue;\n }\n\n /**\n * Adds a new payment plan to the payment plan list.\n * The new payment plan will be initialized with default values.\n */\n handleAddPaymentPlan() {\n this.paymentPlanOptionList = [...this.paymentPlanOptionList, {\n id: this.paymentPlanOptionList.length + 1,\n numberOfPaymentsList: {...this.discountRuleListDropdown},\n frequencyList: {...this.frequencyListDropdown},\n selectedValue: {\n numberOfPayments: this.discountRuleListDropdown.id as number,\n frequency: this.discountRuleListDropdown.id as number,\n isItDuplicated: false\n }\n }];\n }\n\n /**\n * Deletes a payment plan from the list based on its ID.\n * After deleting, it also checks and resets any duplicated flags for remaining plans.\n * @param {number} paymentPlanId - The ID of the payment plan to be deleted.\n */\n handleDeletePaymentPlan(paymentPlanId: number): void {\n const paymentPlanItemToBeRemoved = this.paymentPlanOptionList.find((paymentPlan) => paymentPlan.id === paymentPlanId);\n\n if (!paymentPlanItemToBeRemoved) {\n return;\n }\n\n this.paymentPlanOptionList = this.paymentPlanOptionList\n .filter(paymentPlan => paymentPlan.id !== paymentPlanId)\n .map(paymentPlan => ({\n ...paymentPlan,\n selectedValue: {\n ...paymentPlan.selectedValue,\n isItDuplicated:\n paymentPlan.selectedValue.numberOfPayments === paymentPlanItemToBeRemoved.selectedValue.numberOfPayments ||\n paymentPlan.selectedValue.frequency === paymentPlanItemToBeRemoved.selectedValue.frequency\n ? false\n : paymentPlan.selectedValue.isItDuplicated\n }\n }));\n }\n\n /**\n * Retrieves the account ID from the cookies.\n * @returns {number} The account ID, or 0 if no account ID is found.\n */\n getAccountId(): number {\n const accountIdCookie = APP_UTILITIES.getCookie('accountId');\n const accountId = accountIdCookie\n ? Number.parseInt(accountIdCookie)\n : 0;\n return accountId;\n }\n\n /**\n * Validates the form and payment plan configurations before saving.\n * If the form is valid and there are no duplicated or empty payment plans, it triggers the save action.\n * @returns {Promise} A promise that resolves once the validation and save process is complete.\n */\n async beforeOnSave(): Promise {\n const isFormDiscountValid = this.formObserverRef && (await this.formObserverRef.validate());\n const isAnyPaymentPlanDuplicated = this.paymentPlanOptionList.some((paymentPlanItem) => paymentPlanItem.selectedValue.isItDuplicated);\n const isAnyPaymentPlanEntryEmpty = this.paymentPlanOptionList.some((paymentPlanItem) => paymentPlanItem.selectedValue.numberOfPayments === this.SELECT_TYPE_VALUE || paymentPlanItem.selectedValue.frequency === this.SELECT_TYPE_VALUE);\n const isTheWholeFormValid = isFormDiscountValid && !isAnyPaymentPlanEntryEmpty && !isAnyPaymentPlanDuplicated;\n this.isPaymentPlanUnselected = isAnyPaymentPlanEntryEmpty;\n\n if (isTheWholeFormValid) {\n const paymentPlan = paymentsModule.paymentPlan;\n\n if (paymentPlan && paymentPlan != null) {\n this.toggleConfirmationModal();\n }\n else {\n\n const paymentPlanPayload = {\n accountId: this.getAccountId(),\n minimumOrderAmount: this.minimumOrderAmount,\n disablePaymentsCount: this.disablePaymentsCount,\n disablePaymentsInterval: this.currentDeactivationPeriodSelected.id,\n paymentPlanConfigurations: this.paymentPlanOptionList.map((paymentPlanItem) => ({\n id: null,\n paymentPlanID: null,\n paymentIntervalCount: paymentPlanItem.selectedValue.numberOfPayments,\n paymentInterval: paymentPlanItem.selectedValue.frequency\n }))\n };\n this.onSubmission(paymentsModule.createPaymentPlan(paymentPlanPayload));\n\n }\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!./BillingMethodConfiguration.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!./BillingMethodConfiguration.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BillingMethodConfiguration.vue?vue&type=template&id=467ee5b9&scoped=true&\"\nimport script from \"./BillingMethodConfiguration.vue?vue&type=script&lang=ts&\"\nexport * from \"./BillingMethodConfiguration.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./BillingMethodConfiguration.vue?vue&type=style&index=0&id=467ee5b9&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 \"467ee5b9\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}