{"version":3,"sources":["webpack:///./src/popupcomponents/payments/ChangeCustomPaymentModal.vue?bcf6","webpack:///./src/popupcomponents/payments/ChangeCustomPaymentModal.vue?9c22","webpack:///./src/popupcomponents/payments/ChangeCustomPaymentModal.vue?6e1c","webpack:///./src/popupcomponents/payments/ChangeCustomPaymentModal.vue","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountTable.vue?05d1","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountTable.vue?9c7f","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountTable.vue?8e31","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountTable.vue","webpack:///./src/assets/images/payments/merchant-account-setup.svg","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/Payments.vue?925e","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountTable.vue?1307","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckoutDetail.vue?4982","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckoutDetail.vue?fe06","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckoutDetail.vue?0c2c","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckoutDetail.vue","webpack:///./src/commoncomponents/bouncingpreloadercomponent/BouncingPreloaderComponent.less?0b02","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/FeeDetails.vue?d5d7","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/FeeDetails.vue?c9c8","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/FeeDetails.vue?14c7","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/FeeDetails.vue","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckoutDetail.vue?36db","webpack:///./src/Model/notificationBox/types.ts","webpack:///./src/commoncomponents/CardComponent.vue?736e","webpack:///./src/assets/images/trash.svg","webpack:///./src/commoncomponents/bouncingpreloadercomponent/BouncingPreloaderComponent.vue?cf84","webpack:///./src/commoncomponents/bouncingpreloadercomponent/BouncingPreloaderComponent.ts","webpack:///./src/commoncomponents/bouncingpreloadercomponent/BouncingPreloaderComponent.vue?0f28","webpack:///./src/commoncomponents/bouncingpreloadercomponent/BouncingPreloaderComponent.vue?47c6","webpack:///./src/commoncomponents/bouncingpreloadercomponent/BouncingPreloaderComponent.vue","webpack:///./src/commoncomponents/EmptyStateContainer.vue?fb40","webpack:///./src/popupcomponents/payments/ChangeFeeModal.vue?d93b","webpack:///./src/popupcomponents/payments/ChangeFeeModal.vue?981e","webpack:///./src/popupcomponents/payments/ChangeFeeModal.vue?4223","webpack:///./src/popupcomponents/payments/ChangeFeeModal.vue","webpack:///./src/services/common/formatters.ts","webpack:///./src/assets/font-awesomes/external-link-alt.svg","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckout.vue?8b82","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckout.vue?1d8c","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckout.vue?cd4b","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckout.vue","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:///./src/components/accountDetailsComponent/accountDataTabs/payments/StorePolicyControls.vue?c3ce","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/StorePolicyControls.vue?4cc7","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/StorePolicyControls.vue?b912","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/StorePolicyControls.vue","webpack:///./src/assets/images/common-icon/search.svg","webpack:///./node_modules/core-js/modules/es.regexp.flags.js","webpack:///./src/assets/font-awesomes/context_menu_icon.svg","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountTableRow.vue?c43f","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountTableRow.vue?3b2a","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountTableRow.vue?2cd7","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountTableRow.vue","webpack:///./src/Model/forms/types.ts","webpack:///./src/services/payments/helpers.ts","webpack:///./src/validators/payments/validators.ts","webpack:///./src/popupcomponents/StateModal.vue?3607","webpack:///./src/popupcomponents/StateModal.vue?1bb3","webpack:///./src/popupcomponents/StateModal.vue?8199","webpack:///./src/popupcomponents/StateModal.vue","webpack:///./src/popupcomponents/StateModal.vue?a0cc","webpack:///./src/validators/sessions/validators.ts","webpack:///./src/commoncomponents/ToggleSwitch.vue?b54d","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomizeFee.vue?bc02","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomizeFee.vue?ac37","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomizeFee.vue?7658","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomizeFee.vue","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomizeFee.vue?da91","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/assets/images/scholars/add-new-scholars/arrowDown.svg","webpack:///./src/commoncomponents/CardComponent.vue?a3d5","webpack:///./src/commoncomponents/CardComponent.vue?f6d9","webpack:///./src/commoncomponents/CardComponent.vue?0c4f","webpack:///./src/commoncomponents/CardComponent.vue","webpack:///./src/commoncomponents/ToggleSwitch.vue?5d1b","webpack:///./src/commoncomponents/ToggleSwitch.vue?22d6","webpack:///./src/commoncomponents/ToggleSwitch.vue?9759","webpack:///./src/commoncomponents/ToggleSwitch.vue","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/FeeDetails.vue?e09d","webpack:///./src/popupcomponents/payments/ChangeCustomPaymentModal.vue?6652","webpack:///./src/ui-components/dropdownListBx/DropdownList.less?58ad","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/StorePolicyControls.vue?eb5e","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckout.vue?4512","webpack:///./src/assets/images/cms/facet-chevron-down.svg","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/Payments.vue?f024","webpack:///./src/constants/StripeConst.ts","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/Payments.vue?4869","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/Payments.vue?4951","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/Payments.vue","webpack:///./src/commoncomponents/NotificationBox.vue?eee8","webpack:///./src/commoncomponents/NotificationBox.vue?c7af","webpack:///./src/commoncomponents/NotificationBox.vue?fa43","webpack:///./src/commoncomponents/NotificationBox.vue","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/MultiParticipantRules.vue?0d7c","webpack:///./src/commoncomponents/NotificationBox.vue?4039","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.less?0c01","webpack:///./node_modules/vue-currency-input/dist/vue-currency-input.esm.js","webpack:///./public/images/Vector.svg","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.vue?6613","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.vue?5429","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.vue?1122","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.vue","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/EarlyRegistration.vue?6d46","webpack:///./src/commoncomponents/EmptyStateContainer.vue?9a82","webpack:///./src/commoncomponents/EmptyStateContainer.vue?55d4","webpack:///./src/commoncomponents/EmptyStateContainer.vue?5931","webpack:///./src/commoncomponents/EmptyStateContainer.vue","webpack:///./src/components/accountDetailsComponent/accountDataTabs/payments/DiscountTableRow.vue?da18","webpack:///./src/ui-components/dropdownListBx/DropdownList.vue?e467","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/popupcomponents/payments/ChangeFeeModal.vue?b417"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","isVisibleSync","on","$event","onCancel","staticClass","_v","_s","screenText","getScreenText","onSave","staticRenderFns","ChangeCustomPaymentModal","ScreenText","$emit","Vue","tslib_1","PropSync","Component","components","BaseModal","component","_l","discount","index","key","generateRandomIds","IDS_LENGTH","id","onDelete","isModalVisible","modalConfig","onClose","onConfirm","DiscountTable","discountType","DiscountType","discountUnitType","AmountUnitType","timeRangeType","TimeRangeType","APP_UTILITIES","generateRandomAlphanumericId","currentDiscount","title","description","type","StateModalType","ERROR","cancelButtonLabel","confirmButtonLabel","paymentsModule","deleteAutomaticDiscount","console","error","UIkit","accordion","toggle","discountList","sort","a","b","discountTypeId","CardComponent","ToggleSwitch","DiscountTableRow","StateModal","module","exports","scopedSlots","_u","fn","class","checkoutInstruction","checkoutName","_e","toggleEditCustomCheckout","enabled","disableSwitch","proxy","CustomCheckoutDetail","_firstRender","name","data","checkoutOption","isEnabled","updateCustomOptionStatus","customCheckoutId","onStatusUpdated","showToastMessage","ToastType","Success","Error","instructions","Prop","required","Watch","feeName","feeAmount","isActive","taxRateDisplay","toggleEditCustomFee","FeeDetails","changeCustomFeeStatus","updateCustomFee","customFee","status","Status","Active","feeAmountString","getFormattedFeeDisplayValue","taxRate","displayName","percentage","isLoadingCustomFee","isSavingCustomFee","NotificationBoxType","style","STYLE","COLOR","PRIMARY_700","BouncingPreloaderComponent","APP_CONST","ChangeFeeModal","formatCurrency","amount","currencyOptions","CURRENCY_OPTIONS","currencyFormatter","Intl","NumberFormat","locale","currency","format","isCustomizeCheckoutVisibleSync","isChangeCustomPaymentModalVisible","confirmChangeCustomPayment","closeChangeCustomPaymentModal","ref","handleSubmit","preventDefault","beforeOnSave","validationMode","Eager","errors","invalid","validated","directives","rawName","value","expression","modifiers","domProps","target","composing","trim","$forceUpdate","visibility","autoEnrollOptions","Enroll","_q","checkoutType","Waitlist","Pending","isValidationForProgress","saveButtonText","CustomCheckout","nameText","toLowerCase","CustomCheckoutAutoEnrollOptions","VeeValidateProviderMode","isSavingCustomPayment","onCreated","autoEnrollStatusId","registerValidators","resetInputs","formObserverRef","validate","flags","valid","reset","canSave","updateCustomCheckout","createCustomCheckout","accountID","getAccountId","OnSaveCustomPayment","changed","checkoutNameRequiredValidator","replace","Boolean","Ref","OffCanvas","DropdownList","CurrencyInput","ValidationObserver","ValidationProvider","ProgressButton","rule","idx","rules","length","refInFor","discountUnitAmountSync","PERCENT_RATE","onAmountUpdated","$set","staticStyle","MultiParticipantRules","formRef","message","getErrorMsgLabel","discountAmount","percentInputRequiredValidator","Number","String","deep","showLoadingSpinner","Danger","fetchFailedErrorMessage","saveStorePolicy","policySwitchLabel","enabledProviderVid","policyUrlLabel","urlRules","getUrlValidationMode","url","saveFailed","saveFailedErrorMessage","translatedLoadingToProgressButtonState","isValidForProgressButton","buttonPolicySave","Payments","accountId","getCookie","urlMaxLength","required_if","values","regex","urlRegex","max","extend","fetchStorePolicy","resetUrlInput","then","resetEnabledInput","initialValue","enabledProviderRef","validateSilent","urlProviderRef","Passive","isSavingStorePolicy","payload","didSaveStorePolicyFail","policySavedSuccess","onSaveFailed","buttonState","isFetchingStorePolicy","storePolicy","didFetchStorePolicyFail","NotificationBox","DESCRIPTORS","objectDefinePropertyModule","regExpFlags","UNSUPPORTED_Y","f","RegExp","prototype","configurable","get","toggleAccordion","isToggleOpen","MULTI_PARTICIPANT","appliesTo","discountTableLabel","_m","handleEdit","participants","commonUtils","addSymbol","amountUnitType","FIXED_AMOUNT","earlyRegistrationSessionLabel","discountListComputed","targetDiscount","JSON","parse","stringify","targetDiscountIndex","setIsConfiguratioDiscountMenuOpen","EARLY_REGISTRATION","earlyRegistration","multipleParticipants","timeRangeUnit","earlyRegistrationDateLabel","FormValidationError","percentToNumber","fee","result","feeValue","toLocaleString","feeType","ConvenienceFeeType","FixedAmount","Percentage","percentTwoDecimalRegexPattern","percentInputDecimalLengthValidator","percentInputBetweenValueValidator","args","numValue","between","fixedAmountFeeMinValueValidator","min_value","fixedAmountFeeRequiredValidator","percentInputBetweenValidator","params","feeNameRequiredValidator","customFeeSelectionRequiredValidator","percentInputTwoDecimalPlacesValidator","discountDescriptionRequiredValidator","iconClass","config","btnClass","WARNING","priceGreaterThanZeroWithTaxRateValidator","price","registerPriceRequiredValidator","requiredField","registerPriceMinValueValidator","registerPriceGreaterThanZeroWithTaxRateValidator","isCustomizeFeeVisibleSync","percentInputVid","convenienceFeeType","displayPercentRate","percentBasedInputRules","addPercentSignToPercentInput","onPercentInputFocus","forceNumberInput","percentInput","isPercentRateDisplayed","fixedAmountInputVid","displayFixedAmount","fixedAmountInputRules","allowNegative","onFixedAmountBlur","model","callback","$$v","fixedAmountInput","_n","displayRadioInputError","taxDropdownOptions","onSelectTax","saveProgressButtonState","isChangeFeeModalVisible","confirmChangeFee","closeChangeFeeModal","CustomizeFee","initialCustomFeeTemplate","payments","isFixedAmountDisplayed","selectATaxRateDropdownItem","getTaxRates","selection","oneBasedDropdownIndex","convertedZeroBasedTaxRateIndex","taxRates","percentRadioError","fixedAmountRadioError","radioError","fetchAllTaxRates","event","targetElement","updatedInput","visible","setCustomFee","asKeyOf","resetFeeInputs","setCustomFeeValues","updatedFee","fixed_amount_min_value","fixed_amount_required","percent_input_between","min","percent_input_required","percent_input_decimal_length","didSavingCustomFeeFail","dropdownList","selectedTaxRate","concat","map","zeroBasedIndex","convertedOneBasedIndexForDropdown","taxRateDropdownItemForIndex","singleSelect","showSelectLabel","earlyDiscountEndsSync","discountRuleListDropdown","onSelectSessionStart","earlyAmountValueSync","EarlyRegistration","disableMarginTop","_t","shouldExpandFullWidth","default","inputId","indexOf","_k","keyCode","toggleValue","disabled","Array","isArray","valueSync","_i","$$a","$$el","$$c","checked","$$i","slice","uuid","v4","isCurrentlyLoading","isLoadingCustomCheckouts","isCustomizeFeeVisible","selectedCustomCheckoutOption","isCustomCheckoutVisible","refreshOnSaveCustomPayment","isAutomaticDiscountVisible","hasOnBoardingCompleted","manageOnlinePaymentSettingsTitle","manageSettingsDesc","STRIPE_CONST","URLS","settings","buttonDisplaySettings","merchantAccountErrorText","payoutTitle","payoutDesc","payouts","buttonPayout","policyTitle","optional","policyDesc","taxTitle","taxDesc","tax_rate","buttonTax","couponTitle","couponDesc","couponInfoBoxText","coupons","buttonCoupon","isCustomPaymentEnabled","label","payment_methods","payment","refreshCustomPayment","showCustomCheckout","showCustomCheckoutSpinner","feeCardTitle","feeCardDesc","shouldDisplayCustomFeeSpinner","showCustomFeeForm","addFeeButtonText","onEditDiscount","onDeleteDiscount","automaticDiscount","showAutomaticDiscount","reportingTitle","reportingDesc","reportingExample","reports_link","buttonDisplayReports","merchantAccountSetupTitle","merchantAccountSetupSubtitle","translateLoadingToProgressButtonState","retrieveOnboardingLink","shouldShowMerchantAccountError","merchantAccountRetryButtonText","merchantAccountSetupButtonText","STRIPE_CONSTANTS","isAutomaticDiscountEnabled","log","isFetchingOnboardingLink","didOnboardingLinkFetchFail","getFeatureFlag","FEATURE_KEYS","customPayments","customPaymentFlag","automaticDiscounts","automaticDiscountFlag","getCustomCheckoutMethods","resetOnboardingState","retrieveOnboardingStatusAndFee","getCustomCheckoutOptionList","getOnboardingStatus","retrieveCustomFee","getOnboardingLink","onboardingUrl","window","location","href","link","route","assign","isConfigurationDiscountMenuOpen","MOCKED_DISCOUNTS","stripeAccountResponse","onboardingStatus","OnboardingStatus","InProgress","isFetchingOnboardingStatus","didOnboardingStatusFetchFail","Completed","accountIdCookie","parseInt","BouncingPreloader","EmptyStateContainer","StorePolicyControls","DiscountConfiguration","typeStyleClass","toLocaleLowerCase","Info","escapeRegExp","str","removeLeadingZeros","count","search","match","startsWith","substring","substringBefore","DECIMAL_SYMBOLS","INTEGER_PATTERN","options","precision","autoDecimalMode","valueAsInteger","numberFormat","minimumFractionDigits","ps","digits","i","decimalSymbol","substr","undefined","groupingSymbol","minusSymbol","maximumFractionDigits","resolvedOptions","prefix","negativePrefix","suffix","lastIndexOf","negative","isNegative","normalizeDigits","stripCurrencySymbol","stripMinusSymbol","fraction","stripGroupingSymbol","isValidIntegerFormat","split","number","toFixed","join","integerNumber","Object","useGrouping","includes","insertCurrencySymbol","Math","abs","toFraction","onlyLocaleDigits","isFractionIncomplete","normalizeDecimalSymbol","from","this$1","forEach","s","digit","onlyDigits","DEFAULT_OPTIONS","distractionFree","valueRange","formattedValue","mergedOptions","getValue","$el","$ci","setValue","equal","keys","every","hasOwnProperty","bind","DefaultNumberMask","conformToMask","previousConformedValue","checkIncompleteValue","incompleteValue","integer","integerDigits","fractionDigits","invalidFraction","invalidNegativeValue","numberValue","AutoDecimalModeNumberMask","pow","getCaretPositionAfterFormat","newValue","inputtedValue","caretPosition","decimalSymbolPosition","caretPositionFromLeft","hideCurrencySymbol","getDistractionFreeCaretPosition","hideGroupingSymbol","MAX_SAFE_INTEGER","NumberInput","el","callbackFns","addEventListener","init","currencyFormat","newOptions","hideNegligibleDecimalDigits","setAttribute","numberMask","setOptions","applyFixedFractionFormat","forcedChange","validateValueRange","onChange","updateInputValue","decimalSymbolInsertedAt","conformedValue","focus","onInput","selectionStart","setCaretPosition","capture","setTimeout","selectionEnd","e","start","end","setSelectionRange","directive","vnode","optionsFromBinding","inputElement","tagName","querySelector","context","globalOptions","listeners","componentOptions","emit","componentUpdated","oldValue","h","$listeners","change","input","props","mounted","computed","watch","methods","plugin","install","componentName","directiveName","use","isConfigurationDiscountMenuOpenComputed","typeListDropdown","onSelectType","currentTypeSelection","isSelectInvalid","discountUnitAmount","SELECT_TYPE_VALUE","rulesVal","formDiscountObserverRef","onAddMultiParticipantRule","onRemoveMultiParticipantRule","onPercentageUpdate","earlyDiscountEnds","earlyAmountValue","onChangeSessionStart","isSaveDisabled","toggleConfirmationModal","handleConfirm","MULTI_PARTICIPANT_INITIAL_SEQUENCE_NUMBER","MULTI_PARTICIPANT_MAX_SEQUENCE_NUMBER","DISCOUNT_APPLICATION_SCOPE","$refs","discountForm","isUnitResetNeeded","earlyDiscountListOptions","MONTHS","DAYS","WEEKS","typeListOptions","initMultiParticipantRuleList","isTypeValid","touched","cleanMultiParticipantAmounts","onResetEarlyRegistrationDiscount","onResetMultiParticipantRules","sequenceStartNumber","discountRules","participantCounterList","_","rawRuleStructure","errorText","targetDiscountRules","item","ruleAmount","disable","ruleItem","find","val","lastRuleItem","pop","filteredDropdownItems","filter","ruleItemValue","newRule","push","updatedRules","sessionStartItemReference","isFormDiscountValid","currentActiveRules","requestDiscountObj","createAutomaticDiscount","apiErrorResponse","errorToApiErrorResponse","formatErrorMessage","p1","l","toUpperCase","newRules","classes","openDropdown","dropdown","publicUniqueId","autoSelectionAllowed","toggleDropdown","checkKey","currentTarget","onDropdownOpen","select","firstSelectLabel","stopPropagation","changeFocusOnHover","placeholder","evt","active","clearSearch","filterList","obj","isDropdownElementIdValid","hovering","hoverText","styleObject","dropdownElement","searchElementId","activeLetter","selectedIndex","selectableLableHover","floor","random","close","FALSE","TRUE","MINUS_ONE","children","document","getElementsByClassName","getElementById","activeEle","getElementsByName","scrollIntoView","block","behavior","element","classList","add","findIndex","toFind","ZERO","remove","inline","dropdownMenuItems","selected","selectFirstElement","old","newVal","ONE","dropDownValues","attribute","searchElement","activeElement","code","refocusDD","shiftKey","goToSearch","fromCharCode","test","loopStart","innerText","charAt","inp","current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js","sourcesContent":["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',{staticClass:\"fa-solid fa-triangle-exclamation fa-7x warning-icon\"})]),_c('div',{staticClass:\"change-custom-payment-title uk-margin-auto uk-margin-bottom\"},[_vm._v(\" Change your custom checkout. \")]),_c('div',{staticClass:\"change-custom-payment-text uk-margin-medium-bottom\"},[_vm._v(\" Are you sure you want to change your custom checkout settings? This will impact the application experience. \")]),_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.screenText.getScreenText(\"BTN_GO_BACK_CAPS\"))+\" \")]),_c('button',{staticClass:\"btn-primary uk-margin-remove-bottom\",on:{\"click\":_vm.onSave}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"BTN_SAVE_CAPS\"))+\" \")])])])}\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\nimport { Vue, Component, PropSync } from \"vue-property-decorator\";\nimport BaseModal from \"@/popupcomponents/BaseModal.vue\";\nimport { ScreenText } from \"@/lang/ScreenText\";\n\n@Component({\n components: {\n BaseModal\n }\n})\nexport default class ChangeCustomPaymentModal extends Vue {\n screenText = new ScreenText();\n\n @PropSync(\"isVisible\") isVisibleSync!: boolean;\n\n onCancel() {\n this.$emit(\"closepopup\");\n }\n\n onSave() {\n this.$emit(\"confirmChangeCustomPayment\");\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!./ChangeCustomPaymentModal.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!./ChangeCustomPaymentModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ChangeCustomPaymentModal.vue?vue&type=template&id=baf522fe&scoped=true&\"\nimport script from \"./ChangeCustomPaymentModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./ChangeCustomPaymentModal.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ChangeCustomPaymentModal.vue?vue&type=style&index=0&id=baf522fe&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 \"baf522fe\",\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',[_c('div',{staticClass:\"table-wrapper\"},[_c('table',{staticClass:\"table\"},[_c('tr',[_c('th',{staticClass:\"table-header-width-6\"}),_c('th',{staticClass:\"card-header table-header-width-20\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_NAME\"))+\" \")]),_c('th',{staticClass:\"card-header table-header-width-15\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_TYPE\"))+\" \")]),_c('th',{staticClass:\"card-header table-header-width-15\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT_APPLY_TO\"))+\" \")]),_c('th',{staticClass:\"card-header table-header-width-35\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"LABEL_DISCOUNT\"))+\" \")]),_c('th',{staticClass:\"table-header-width-5\"}),_c('th',{staticClass:\"table-header-width-5\"})]),_vm._l((_vm.discountListComputed),function(discount,index){return [_c('tr',{key:((discount.id) + \"-\" + (_vm.generateRandomIds(_vm.IDS_LENGTH))),staticClass:\"spacer\"},[_c('td')]),_c('DiscountTableRow',{key:discount.id,attrs:{\"discount\":discount,\"index\":index},on:{\"onDelete\":_vm.onDelete}}),_c('tr',{key:((discount.id) + \"-\" + (_vm.generateRandomIds(_vm.IDS_LENGTH))),staticClass:\"spacer\"},[_c('td')])]})],2)]),_c('StateModal',{attrs:{\"isVisible\":_vm.isModalVisible,\"config\":_vm.modalConfig},on:{\"update:isVisible\":function($event){_vm.isModalVisible=$event},\"update:is-visible\":function($event){_vm.isModalVisible=$event},\"onClose\":_vm.onClose,\"onConfirm\":_vm.onConfirm}})],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\nimport { Component, Vue } from 'vue-property-decorator';\nimport CardComponent from '@/commoncomponents/CardComponent.vue';\nimport { ScreenText } from '@/lang/ScreenText';\nimport paymentsModule from '@/store/modules/Payments/module';\nimport ToggleSwitch from '@/commoncomponents/ToggleSwitch.vue';\nimport APP_UTILITIES from '@/utilities/commonFunctions';\n\nimport {\n Discount,\n DiscountType,\n AmountUnitType,\n StateModalType,\n TimeRangeType\n} from '@/Model/payments/types';\nimport UIkit from 'uikit';\nimport DiscountTableRow from './DiscountTableRow.vue';\nimport StateModal from '@/popupcomponents/StateModal.vue';\n\n@Component({\n components: {\n CardComponent,\n ToggleSwitch,\n DiscountTableRow,\n StateModal\n }\n})\nexport default class DiscountTable extends Vue {\n screenText = new ScreenText();\n discountType = DiscountType;\n discountUnitType = AmountUnitType;\n timeRangeType = TimeRangeType;\n isModalVisible = false;\n generateRandomIds = APP_UTILITIES.generateRandomAlphanumericId;\n IDS_LENGTH = 5;\n currentDiscount: Discount | null = null;\n\n modalConfig = {\n title: 'Delete discount?',\n description:\n 'You will permanently delete the selected discount rules and amount. You cannot undo this action.',\n type: StateModalType.ERROR,\n cancelButtonLabel: 'cancel',\n confirmButtonLabel: 'Delete discount'\n };\n\n onClose() {\n this.isModalVisible = false;\n }\n async onConfirm() {\n if (this.currentDiscount) {\n try {\n this.isModalVisible = false;\n await paymentsModule.deleteAutomaticDiscount(this.currentDiscount.id);\n }\n catch (error) {\n console.error('An error occurred while deleting the discount:', error);\n }\n }\n }\n\n onDelete(discount: any) {\n this.isModalVisible = true;\n this.currentDiscount = discount;\n }\n\n toggleAccordion(index: number) {\n UIkit.accordion(`#accordion-toggle-${index}`).toggle();\n }\n\n /**\n * Sorts an array of discounts by the discount type.\n * @param {Discount[]} discounts - The array of discounts to be sorted.\n * @returns {Discount[]} The sorted array of discounts.\n */\n get discountListComputed(): Discount[] {\n return paymentsModule.discountList.sort((a, b) => a.discountTypeId - b.discountTypeId);\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!./DiscountTable.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!./DiscountTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DiscountTable.vue?vue&type=template&id=be6a1144&scoped=true&\"\nimport script from \"./DiscountTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./DiscountTable.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DiscountTable.vue?vue&type=style&index=0&id=be6a1144&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 \"be6a1144\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/merchant-account-setup.b8abeb7d.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!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Payments.vue?vue&type=style&index=0&id=61b257fe&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!./DiscountTable.vue?vue&type=style&index=0&id=be6a1144&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CardComponent',{staticClass:\"card-component\",attrs:{\"disableMarginTop\":true},scopedSlots:_vm._u([{key:\"subtitle\",fn:function(){return [_c('div',{staticClass:\"uk-flex uk-flex-between uk-width-1-1\"},[_c('div',{staticClass:\"uk-flex uk-flex-middle \"},[_c('span',{staticClass:\"custom-payment-title\",class:{ 'full-width': !_vm.checkoutInstruction }},[_vm._v(_vm._s(_vm.checkoutName))]),(_vm.checkoutInstruction)?_c('span',{staticClass:\"custom-payment-detailed-info\"},[_c('span',{staticClass:\"custom-payment-title margin-title\"},[_vm._v(\"Instructions: \")]),_c('div',{staticClass:\"custom-payment-tax-formatted\"},[_vm._v(\" \"+_vm._s(_vm.checkoutInstruction)+\" \")])]):_vm._e()]),_c('div',{staticClass:\"uk-margin-remove-bottom uk-flex uk-flex-middle actions-container\"},[_c('a',{on:{\"click\":_vm.toggleEditCustomCheckout}},[_c('img',{staticClass:\"pencil-icon\",attrs:{\"src\":require(\"../../../../../public/images/Vector.svg\")}})]),_c('ToggleSwitch',{staticClass:\"toggle\",attrs:{\"id\":\"customCheckoutSwitch\",\"value\":_vm.enabled,\"disabled\":_vm.disableSwitch},on:{\"update:value\":function($event){_vm.enabled=$event}}})],1)])]},proxy:true}])})}\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\nimport { Component, Prop, Vue, Watch } from \"vue-property-decorator\";\nimport CardComponent from \"@/commoncomponents/CardComponent.vue\";\nimport { ScreenText } from \"@/lang/ScreenText\";\nimport paymentsModule from \"@/store/modules/Payments/module\";\nimport ToggleSwitch from \"@/commoncomponents/ToggleSwitch.vue\";\nimport APP_UTILITIES from \"@/utilities/commonFunctions\";\nimport { ToastType } from \"@/Model/toastType\";\nimport { CustomCheckoutOption } from \"@/Model/payments/types\";\nimport { updateCustomOptionStatus } from \"@/services/payments/api\";\n\n@Component({\n components: {\n CardComponent,\n ToggleSwitch\n }\n})\nexport default class CustomCheckoutDetail extends Vue {\n enabled = false;\n // Initial flag to indicate first render state\n private _firstRender = true;\n disableSwitch = false;\n\n name = \"\";\n\n @Prop({ required: true }) checkoutOption: CustomCheckoutOption | undefined;\n\n get checkoutName() {\n return this.checkoutOption ? this.checkoutOption.name : \"\";\n }\n\n get checkoutInstruction() {\n return this.checkoutOption ? this.checkoutOption.instructions : \"\";\n }\n\n mounted() {\n this._firstRender = false;\n const data = this.checkoutOption\n ? { ...this.checkoutOption }.isEnabled\n : false;\n this.enabled = data;\n }\n\n readonly screenText = new ScreenText();\n\n toggleEditCustomCheckout() {\n this.$emit(\"EditCustomCheckout\");\n }\n\n onStatusUpdated() {\n this.$emit(\"OnStatusUpdated\");\n }\n\n @Watch(\"enabled\")\n async onEnabledChanged() {\n if (\n !this._firstRender &&\n this.checkoutOption &&\n this.checkoutOption.isEnabled !== this.enabled\n ) {\n try {\n this.disableSwitch = true;\n await updateCustomOptionStatus({\n isEnabled: this.enabled,\n customCheckoutId: this.checkoutOption.id\n });\n this.onStatusUpdated();\n APP_UTILITIES.showToastMessage(\n `Custom checkout is ${!this.enabled ? \"inactive\" : \"active\"}`,\n ToastType.Success\n );\n } catch {\n APP_UTILITIES.showToastMessage(\"Unexpected Error!\", ToastType.Error);\n this.enabled = !this.enabled;\n } finally {\n this.disableSwitch = false;\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!./CustomCheckoutDetail.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!./CustomCheckoutDetail.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CustomCheckoutDetail.vue?vue&type=template&id=6b03f7cc&scoped=true&\"\nimport script from \"./CustomCheckoutDetail.vue?vue&type=script&lang=ts&\"\nexport * from \"./CustomCheckoutDetail.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CustomCheckoutDetail.vue?vue&type=style&index=0&id=6b03f7cc&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 \"6b03f7cc\",\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!./BouncingPreloaderComponent.less?vue&type=style&index=0&id=4eff2a66&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CardComponent',{staticClass:\"card-component\",scopedSlots:_vm._u([{key:\"subtitle\",fn:function(){return [_c('div',{staticClass:\"uk-flex uk-flex-between uk-width-1-1\"},[_c('div',{staticClass:\"uk-flex uk-flex-middle uk-flex-between\"},[_c('span',{staticClass:\"custom-fee-title\"},[_vm._v(_vm._s(_vm.feeName)),(_vm.isActive)?_c('span',[_vm._v(\": \"+_vm._s(_vm.feeAmount))]):_vm._e()]),(_vm.isActive && _vm.taxRateDisplay)?_c('span',{staticClass:\"custom-fee-detailed-info\"},[_vm._v(\"| \"),_c('span',{staticClass:\"custom-fee-title\"},[_vm._v(_vm._s(_vm.screenText.getScreenText('LABEL_TAX_RATE_CAPS')))]),_c('span',{staticClass:\"custom-fee-tax-formatted\"},[_vm._v(_vm._s(_vm.taxRateDisplay))])]):_vm._e(),_c('a',{on:{\"click\":_vm.toggleEditCustomFee}},[_c('img',{staticClass:\"pencil-icon\",attrs:{\"src\":require(\"../../../../../public/images/Vector.svg\")}})])]),_c('div',{staticClass:\"uk-margin-remove-bottom uk-flex uk-flex-middle\"},[_c('ToggleSwitch',{attrs:{\"id\":\"customFeeSwitch\",\"value\":_vm.enabled,\"disabled\":_vm.disableSwitch},on:{\"update:value\":function($event){_vm.enabled=$event}}})],1)])]},proxy:true}])})}\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\nimport { Component, Vue, Watch } from 'vue-property-decorator';\nimport CardComponent from '@/commoncomponents/CardComponent.vue';\nimport { ScreenText } from '@/lang/ScreenText';\nimport paymentsModule from '@/store/modules/Payments/module';\nimport ToggleSwitch from '@/commoncomponents/ToggleSwitch.vue';\nimport APP_UTILITIES from '@/utilities/commonFunctions';\nimport { Status } from '@/Model/shared/types';\nimport { getFormattedFeeDisplayValue } from '@/services/payments/helpers';\nimport { ToastType } from '@/Model/toastType';\n\n\n\n@Component({\n components: {\n CardComponent,\n ToggleSwitch\n },\n})\n\n\nexport default class FeeDetails extends Vue {\n\n readonly screenText = new ScreenText();\n enabled = this.isActive;\n\n get isActive(): boolean {\n return !!paymentsModule.customFee && paymentsModule.customFee.status == Status.Active;\n }\n\n get feeAmount(): string {\n let feeAmountString = '0';\n if (paymentsModule.customFee) {\n feeAmountString = getFormattedFeeDisplayValue(paymentsModule.customFee);\n }\n return feeAmountString;\n }\n\n get feeName(): string {\n return paymentsModule.customFee\n ? paymentsModule.customFee.name\n : '';\n }\n\n get taxRateDisplay(): string | null {\n return paymentsModule.customFee && paymentsModule.customFee.taxRate\n ? `${paymentsModule.customFee.taxRate.displayName} ${this.screenText.getScreenText('LABEL_TAX_RATE_JOINING_TEXT')} ${paymentsModule.customFee.taxRate.percentage}%`\n : null;\n }\n\n get disableSwitch(): boolean {\n return paymentsModule.isLoadingCustomFee || paymentsModule.isSavingCustomFee;\n }\n\n toggleEditCustomFee() {\n this.$emit('editCustomFee');\n }\n\n @Watch('enabled')\n async onEnabledChanged() {\n paymentsModule.changeCustomFeeStatus();\n await paymentsModule.updateCustomFee(paymentsModule.customFee!); //We can assert !null because the component wouldn't render in Payments.vue without\n\n if (this.isActive) {\n APP_UTILITIES.showToastMessage(this.screenText.getScreenText('ACTIVE_FEE_TOAST'), ToastType.Success);\n }\n else {\n APP_UTILITIES.showToastMessage(this.screenText.getScreenText('INACTIVE_FEE_TOAST'), ToastType.Success);\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!./FeeDetails.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!./FeeDetails.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FeeDetails.vue?vue&type=template&id=418f1c0b&scoped=true&\"\nimport script from \"./FeeDetails.vue?vue&type=script&lang=ts&\"\nexport * from \"./FeeDetails.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FeeDetails.vue?vue&type=style&index=0&id=418f1c0b&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 \"418f1c0b\",\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!./CustomCheckoutDetail.vue?vue&type=style&index=0&id=6b03f7cc&lang=less&scoped=true&\"","export enum NotificationBoxType {\n Info = 'Info',\n Danger = 'Danger',\n Warning = 'Warning',\n Success = 'Success'\n}","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!./CardComponent.vue?vue&type=style&index=0&id=029a7eae&lang=less&scoped=true&\"","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:\"bouncing-preloader\"},[_c('div',{key:\"spinner_loading\",style:({ 'color': _vm.STYLE.COLOR.PRIMARY_700 }),attrs:{\"uk-spinner\":\"ratio: 3.2667\"}}),_c('span',[_vm._v(_vm._s(_vm.getScreenText(\"BOUNCING_PRELOADER_LOADING\")))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Vue, Component, Prop } from 'vue-property-decorator';\nimport { ScreenText } from '@/lang/ScreenText';\nimport APP_CONST from '@/constants/AppConst';\n\n@Component\nexport class BouncingPreloaderComponent extends Vue {\n @Prop() viewClass!: string;\n\n private screenText: ScreenText = new ScreenText();\n\n readonly STYLE = APP_CONST.STYLE;\n\n public getScreenText(key: string): string {\n return this.screenText.getScreenText(key);\n }\n}","\n\n\n\n\n\n\n\n\n\n\n\nimport { BouncingPreloaderComponent } from '@/commoncomponents/bouncingpreloadercomponent/BouncingPreloaderComponent';\nexport default BouncingPreloaderComponent;\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!./BouncingPreloaderComponent.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!./BouncingPreloaderComponent.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BouncingPreloaderComponent.vue?vue&type=template&id=4eff2a66&scoped=true&\"\nimport script from \"./BouncingPreloaderComponent.vue?vue&type=script&lang=ts&\"\nexport * from \"./BouncingPreloaderComponent.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./BouncingPreloaderComponent.less?vue&type=style&index=0&id=4eff2a66&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 \"4eff2a66\",\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!./EmptyStateContainer.vue?vue&type=style&index=0&id=301b7076&lang=less&scoped=true&\"","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',{staticClass:\"fa-solid fa-triangle-exclamation fa-7x warning-icon\"})]),_c('div',{staticClass:\"change-fee-title uk-margin-auto uk-margin-bottom\"},[_vm._v(_vm._s(_vm.screenText.getScreenText('CHANGE_FEE_MODAL_TITLE'))+\" \")]),_c('div',{staticClass:\"change-fee-text uk-margin-medium-bottom\"},[_vm._v(_vm._s(_vm.screenText.getScreenText('CHANGE_FEE_MODAL_TEXT')))]),_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.screenText.getScreenText('BTN_GO_BACK_CAPS'))+\" \")]),_c('button',{staticClass:\"btn-primary uk-margin-remove-bottom\",on:{\"click\":_vm.onSave}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('BTN_SAVE_CAPS'))+\" \")])])])}\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\nimport { Vue, Component, PropSync } from 'vue-property-decorator';\nimport BaseModal from '@/popupcomponents/BaseModal.vue';\nimport { ScreenText } from '@/lang/ScreenText';\n\n@Component({\n components: {\n BaseModal\n },\n})\nexport default class ChangeFeeModal extends Vue {\n screenText = new ScreenText();\n\n @PropSync('isVisible') isVisibleSync!: boolean;\n\n onCancel() {\n this.$emit('closepopup');\n }\n\n onSave() {\n this.$emit('confirmChangeFee');\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!./ChangeFeeModal.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!./ChangeFeeModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ChangeFeeModal.vue?vue&type=template&id=3deca15a&scoped=true&\"\nimport script from \"./ChangeFeeModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./ChangeFeeModal.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ChangeFeeModal.vue?vue&type=style&index=0&id=3deca15a&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 \"3deca15a\",\n null\n \n)\n\nexport default component.exports","import APP_CONST from '@/constants/AppConst';\nimport { CurrencyInputOptions } from 'vue-currency-input';\n\n\nexport function formatCurrency(amount: number) {\n const currencyOptions: CurrencyInputOptions = APP_CONST.CURRENCY_OPTIONS;\n const currencyFormatter = new Intl.NumberFormat(\n currencyOptions.locale,\n {\n style: 'currency',\n currency: (typeof currencyOptions.currency === 'string') ? currencyOptions.currency : 'USD'\n }\n );\n return currencyFormatter.format(amount);\n}","module.exports = __webpack_public_path__ + \"img/external-link-alt.1abd4ac9.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('OffCanvas',{attrs:{\"isVisible\":_vm.isCustomizeCheckoutVisibleSync},on:{\"update:isVisible\":function($event){_vm.isCustomizeCheckoutVisibleSync=$event},\"update:is-visible\":function($event){_vm.isCustomizeCheckoutVisibleSync=$event},\"onClose\":_vm.onClose}},[_c('ChangeCustomPaymentModal',{attrs:{\"isVisible\":_vm.isChangeCustomPaymentModalVisible},on:{\"confirmChangeCustomPayment\":_vm.confirmChangeCustomPayment,\"closepopup\":_vm.closeChangeCustomPaymentModal}}),_c('aside',{staticClass:\"add-new-sec\"},[_c('div',[_c('div',{staticClass:\"customize-checkout-title uk-margin-small-bottom\"},[_vm._v(\" Configure custom checkout \")]),_c('div',{staticClass:\"subtitle uk-margin-small-bottom\"},[_vm._v(\" Add a custom checkout option at checkout and personalize its name, instructions and default enrollment behavior. \")]),_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:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"name\",\"data-testid\":\"checkout-name\"}},[_vm._v(\" Name\"),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" Create a name for your custom checkout that'll display at checkout (e.g., Pay with Cash). \")]),_c('ValidationProvider',{ref:\"nameObserverRef\",attrs:{\"rules\":\"name_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.trim\",value:(_vm.name),expression:\"name\",modifiers:{\"trim\":true}}],attrs:{\"id\":\"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\":\"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\":\"checkout-description\"}},[_vm._v(\" Instructions \")]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" Include instructions of your custom checkout that'll display on the checkout screen (e.g., Pay onsite during first day check-in.). \")]),_c('ValidationProvider',[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.description),expression:\"description\",modifiers:{\"trim\":true}}],attrs:{\"id\":\"checkout-description-text\",\"maxlength\":\"500\"},domProps:{\"value\":(_vm.description)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.description=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}})])],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(\" Manage auto-enroll submissions \")])]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" If this session is set up for auto-enrollment, how would you like to treat custom checkout submissions? \")]),_c('div',{staticClass:\"uk-margin-remove\"},[_c('div',{staticClass:\"radio-input-wrapper\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.checkoutType),expression:\"checkoutType\"}],attrs:{\"id\":\"enrolled-option\",\"type\":\"radio\",\"name\":\"checkout-type\",\"data-testid\":\"enrolled-option-input\"},domProps:{\"value\":_vm.autoEnrollOptions.Enroll,\"checked\":_vm._q(_vm.checkoutType,_vm.autoEnrollOptions.Enroll)},on:{\"change\":function($event){_vm.checkoutType=_vm.autoEnrollOptions.Enroll}}}),_c('label',{staticClass:\"subtitle\",attrs:{\"for\":\"enrolled-option\"}},[_vm._v(\"Enrolled\")])]),_c('div',{staticClass:\"radio-input-wrapper\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.checkoutType),expression:\"checkoutType\"}],attrs:{\"id\":\"waitlist-option\",\"type\":\"radio\",\"name\":\"checkout-type\",\"data-testid\":\"waitlist-option-input\"},domProps:{\"value\":_vm.autoEnrollOptions.Waitlist,\"checked\":_vm._q(_vm.checkoutType,_vm.autoEnrollOptions.Waitlist)},on:{\"change\":function($event){_vm.checkoutType=_vm.autoEnrollOptions.Waitlist}}}),_c('label',{staticClass:\"subtitle\",attrs:{\"for\":\"waitlist-option\"}},[_vm._v(\"Waitlist\")])]),_c('div',{staticClass:\"radio-input-wrapper\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.checkoutType),expression:\"checkoutType\"}],attrs:{\"id\":\"pending-option\",\"type\":\"radio\",\"name\":\"checkout-type\",\"data-testid\":\"pending-option-input\"},domProps:{\"value\":_vm.autoEnrollOptions.Pending,\"checked\":_vm._q(_vm.checkoutType,_vm.autoEnrollOptions.Pending)},on:{\"change\":function($event){_vm.checkoutType=_vm.autoEnrollOptions.Pending}}}),_c('label',{staticClass:\"subtitle\",attrs:{\"for\":\"pending-option\"}},[_vm._v(\"Pending\")])])])]),_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\",\"isValidation\":_vm.isValidationForProgress,\"buttonIndex\":_vm.saveButtonText,\"buttonText\":_vm.saveButtonText,\"updateProgress\":true}})],1)])]}}])})],1)])],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\nimport {\n Component,\n Prop,\n PropSync,\n Ref,\n Vue,\n Watch\n} from \"vue-property-decorator\";\nimport { ScreenText } from \"@/lang/ScreenText\";\nimport OffCanvas from \"@/commoncomponents/OffCanvas.vue\";\nimport DropdownList from \"@/ui-components/dropdownListBx/DropdownList.vue\";\nimport { CurrencyInput, CurrencyInputOptions } from \"vue-currency-input\";\nimport APP_CONST from \"@/constants/AppConst\";\nimport APP_UTILITIES from \"@/utilities/commonFunctions\";\n\nimport { ValidationObserver, ValidationProvider, extend } from \"vee-validate\";\nimport { VeeValidateProviderMode } from \"@/Model/forms/types\";\nimport {\n CustomCheckoutAutoEnrollOptions,\n CustomCheckoutOption\n} from \"@/Model/payments/types\";\nimport { ProviderInstance } from \"vee-validate/dist/types/types\";\nimport ProgressButton from \"@/commoncomponents/progressButton/progressButton\";\nimport ChangeCustomPaymentModal from \"@/popupcomponents/payments/ChangeCustomPaymentModal.vue\";\nimport { checkoutNameRequiredValidator } from \"@/validators/payments/validators\";\nimport {\n createCustomCheckout,\n updateCustomCheckout\n} from \"@/services/payments/api\";\nimport { ToastType } from \"@/Model/toastType\";\n\n@Component({\n components: {\n OffCanvas,\n DropdownList,\n CurrencyInput,\n ValidationObserver,\n ValidationProvider,\n ProgressButton,\n ChangeCustomPaymentModal\n }\n})\nexport default class CustomCheckout extends Vue {\n @Prop({ required: true }) checkoutOption: CustomCheckoutOption | undefined; // Type annotation for clarity\n\n @PropSync(\"isCustomizeCheckoutVisible\", { type: Boolean, required: true })\n isCustomizeCheckoutVisibleSync!: boolean;\n @Ref(\"formObserverRef\") readonly formObserverRef?: InstanceType<\n typeof ValidationObserver\n >;\n @Ref(\"nameObserverRef\") readonly nameObserverRef?: ProviderInstance;\n\n readonly screenText = new ScreenText();\n readonly currencyOptions: CurrencyInputOptions = APP_CONST.CURRENCY_OPTIONS;\n readonly nameText = this.screenText.getScreenText(\"LABEL_NAME\").toLowerCase();\n\n isValidationForProgress = false;\n autoEnrollOptions = CustomCheckoutAutoEnrollOptions;\n validationMode = VeeValidateProviderMode;\n isChangeCustomPaymentModalVisible = false;\n isSavingCustomPayment = false;\n\n name: string = \"\";\n description: string = \"\";\n checkoutType: CustomCheckoutAutoEnrollOptions =\n CustomCheckoutAutoEnrollOptions.Enroll;\n\n get saveButtonText(): string {\n return this.screenText.getScreenText(\"BTN_SAVE\");\n }\n\n created() {\n this.onCreated();\n if (this.checkoutOption) {\n this.name = this.checkoutOption.name;\n this.description = this.checkoutOption.instructions;\n this.checkoutType = this.checkoutOption.autoEnrollStatusId;\n }\n }\n\n onCreated() {\n this.registerValidators();\n }\n\n onCancel() {\n this.onClose();\n this.isCustomizeCheckoutVisibleSync = false;\n }\n\n onClose() {\n if (!this.checkoutOption) {\n this.name = \"\";\n this.description = \"\";\n this.resetInputs();\n } else {\n this.name = this.checkoutOption.name;\n this.description = this.checkoutOption.instructions;\n }\n }\n\n @Watch(\"checkoutOption\")\n onCheckoutOptionChange() {\n if (this.checkoutOption) {\n this.name = this.checkoutOption.name;\n this.description = this.checkoutOption.instructions;\n this.checkoutType = this.checkoutOption.autoEnrollStatusId;\n }\n }\n\n private async canSave(): Promise {\n if (this.formObserverRef) {\n await this.formObserverRef.validate();\n }\n\n return !!this.formObserverRef && this.formObserverRef.flags.valid;\n }\n\n private resetInputs() {\n if (this.formObserverRef) {\n this.formObserverRef.reset();\n }\n }\n\n async onSave() {\n if (!(await this.canSave())) {\n return;\n }\n\n this.isValidationForProgress = false;\n\n try {\n this.isSavingCustomPayment = true;\n if (this.checkoutOption) {\n // Edit entry\n await updateCustomCheckout({\n name: this.name,\n instructions: this.description,\n autoEnrollStatusId: this.checkoutType,\n id: this.checkoutOption.id\n });\n } else {\n // Create entry\n await createCustomCheckout({\n name: this.name,\n instructions: this.description,\n autoEnrollStatusId: this.checkoutType,\n accountID: APP_UTILITIES.getAccountId(),\n isEnabled: true\n });\n }\n APP_UTILITIES.showToastMessage(\n \"Custom checkout saved\",\n ToastType.Success\n );\n } catch {\n APP_UTILITIES.showToastMessage(\"Unexpected Error!\", ToastType.Error);\n } finally {\n this.OnSaveCustomPayment();\n this.isSavingCustomPayment = false;\n }\n\n this.isValidationForProgress = false;\n this.isCustomizeCheckoutVisibleSync = false;\n }\n\n closeChangeCustomPaymentModal(): void {\n this.isChangeCustomPaymentModalVisible = false;\n }\n\n confirmChangeCustomPayment(): void {\n this.closeChangeCustomPaymentModal();\n this.onSave();\n }\n\n OnSaveCustomPayment() {\n this.$emit(\"OnSaveCustomPayment\");\n }\n\n beforeOnSave() {\n if (this.checkoutOption) {\n if (\n (this.formObserverRef && this.formObserverRef.flags.changed) ||\n this.checkoutOption.autoEnrollStatusId !== this.checkoutType\n ) {\n this.isChangeCustomPaymentModalVisible = true;\n } else {\n this.onCancel();\n }\n } else {\n this.onSave();\n }\n }\n\n private registerValidators() {\n checkoutNameRequiredValidator(\n this.screenText\n .getScreenText(\"REQUIRED_INPUT_FIELD_ERROR\")\n .replace(\"{field}\", this.nameText)\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!./CustomCheckout.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!./CustomCheckout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CustomCheckout.vue?vue&type=template&id=05b90be4&scoped=true&\"\nimport script from \"./CustomCheckout.vue?vue&type=script&lang=ts&\"\nexport * from \"./CustomCheckout.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CustomCheckout.vue?vue&type=style&index=0&id=05b90be4&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 \"05b90be4\",\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:\"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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"store-policy-controls\"},[_c('div',{staticClass:\"loading-spinner\",style:({ 'visibility': _vm.showLoadingSpinner ? 'visible' : 'hidden' }),attrs:{\"uk-spinner\":\"\",\"data-testid\":\"loading-spinner\"}}),_c('div',{style:({ 'visibility': _vm.showLoadingSpinner ? 'hidden' : 'visible' }),attrs:{\"data-testid\":\"policy-form-wrapper\"}},[(_vm.fetchFailed)?[_c('div',{staticClass:\"uk-margin-bottom\",attrs:{\"data-testid\":\"fetch-failed-notification-box-wrapper\"}},[_c('NotificationBox',{attrs:{\"type\":_vm.NotificationBoxType.Danger},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('i',{staticClass:\"fas fa-exclamation-circle\"})]},proxy:true},{key:\"message\",fn:function(){return [_c('span',[_vm._v(_vm._s(_vm.fetchFailedErrorMessage))])]},proxy:true}],null,false,375450187)})],1)]:[_c('ValidationObserver',{ref:\"formObserverRef\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('form',{on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.saveStorePolicy)}}},[_c('div',{staticClass:\"uk-flex uk-flex-middle uk-flex-between uk-margin-bottom switch-container\"},[_c('label',{attrs:{\"for\":\"enabledSwitch\",\"data-testid\":\"policy-switch-label\"}},[_vm._v(\" \"+_vm._s(_vm.policySwitchLabel)+\" \")]),_c('ValidationProvider',{ref:\"enabledProviderRef\",attrs:{\"vid\":_vm.enabledProviderVid}},[_c('ToggleSwitch',{attrs:{\"id\":\"enabledSwitch\",\"value\":_vm.enabled,\"disabled\":_vm.disableSwitch},on:{\"update:value\":function($event){_vm.enabled=$event}}})],1)],1),_c('div',{style:({ 'visibility': !_vm.showLoadingSpinner && _vm.enabled ? 'visible' : 'hidden' }),attrs:{\"data-testid\":\"policy-url-controls\"}},[_c('div',{staticClass:\"form-group uk-margin-bottom\"},[_c('label',{attrs:{\"for\":\"url\",\"data-testid\":\"policy-url-label\"}},[_vm._v(\" \"+_vm._s(_vm.policyUrlLabel)),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])]),_c('ValidationProvider',{ref:\"urlProviderRef\",attrs:{\"rules\":_vm.urlRules,\"mode\":_vm.getUrlValidationMode()},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.url),expression:\"url\"}],staticClass:\"uk-width-1\",class:{ 'outline-red': validated && invalid },attrs:{\"id\":\"url\",\"placeholder\":\"https://example.com/return-policy\",\"data-testid\":\"policy-url-input\"},domProps:{\"value\":(_vm.url)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.url=$event.target.value}}}),_c('span',{staticClass:\"form-field-error\",style:({ 'visibility': validated && invalid ? 'visible' : 'hidden' }),attrs:{\"data-testid\":\"policy-url-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}],null,true)})],1),(_vm.enabled && _vm.saveFailed)?_c('div',{staticClass:\"uk-margin-bottom\",attrs:{\"data-testid\":\"save-failed-notification-box-wrapper\"}},[_c('NotificationBox',{attrs:{\"type\":_vm.NotificationBoxType.Danger},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('i',{staticClass:\"fas fa-exclamation-circle\"})]},proxy:true},{key:\"message\",fn:function(){return [_c('span',[_vm._v(_vm._s(_vm.saveFailedErrorMessage))])]},proxy:true}],null,true)})],1):_vm._e(),_c('ProgressButton',{attrs:{\"apiResponseCode\":_vm.translatedLoadingToProgressButtonState,\"isValidation\":_vm.isValidForProgressButton,\"disableTransition\":!_vm.enabled,\"buttonIndex\":\"policy-url-save-button\",\"buttonText\":_vm.buttonPolicySave,\"updateProgress\":true,\"data-testid\":\"policy-save-btn\"}})],1)])]}}])})]],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\nimport { ScreenText } from '@/lang/ScreenText';\nimport { Component, Ref, Vue, Watch } from 'vue-property-decorator';\nimport ToggleSwitch from '@/commoncomponents/ToggleSwitch.vue';\nimport { ValidationObserver, ValidationProvider, extend } from 'vee-validate';\nimport { urlRegex } from '@/validators/sessions/validators';\nimport { max, regex, required_if } from 'vee-validate/dist/rules';\nimport { VeeValidateProviderMode } from '@/Model/forms/types';\nimport { ProviderInstance } from 'vee-validate/dist/types/types';\nimport ProgressButton from '@/commoncomponents/progressButton/progressButton.vue';\nimport paymentsModule from '@/store/modules/Payments/module';\nimport { AddUpdateStorePolicyPayload, StorePolicy } from '@/Model/payments/types';\nimport APP_UTILITIES from '@/utilities/commonFunctions';\nimport NotificationBox from '@/commoncomponents/NotificationBox.vue';\nimport { NotificationBoxType } from '@/Model/notificationBox/types';\nimport { ToastType } from '@/Model/toastType';\n\n@Component({\n components: {\n NotificationBox,\n ProgressButton,\n ToggleSwitch,\n ValidationObserver,\n ValidationProvider\n }\n})\n\nexport default class Payments extends Vue {\n @Ref('enabledProviderRef') readonly enabledProviderRef?: ProviderInstance;\n @Ref('urlProviderRef') readonly urlProviderRef?: ProviderInstance;\n @Ref('formObserverRef') readonly formObserverRef?: InstanceType;\n\n private readonly accountId = Number(APP_UTILITIES.getCookie('accountId')) || 0;\n private readonly screenText = new ScreenText();\n readonly enabledProviderVid = 'enabledProvider';\n readonly urlMaxLength = 2083;\n readonly urlRules: Record = {\n required_if: { target: this.enabledProviderVid, values: ['true'] },\n regex: urlRegex,\n max: { length: this.urlMaxLength }\n };\n readonly NotificationBoxType = NotificationBoxType;\n\n isValidForProgressButton = true;\n\n enabled = false;\n url = '';\n\n get policySwitchLabel(): string {\n return this.screenText.getScreenText('POLICY_SWITCH_LABEL');\n }\n\n get policyUrlLabel(): string {\n return this.screenText.getScreenText('POLICY_URL_LABEL');\n }\n\n get buttonPolicySave(): string {\n return this.screenText.getScreenText('BTN_POLICY_SAVE');\n }\n\n get policySavedSuccess(): string {\n return this.screenText.getScreenText('POLICY_SAVED_SUCCESS');\n }\n\n get translatedLoadingToProgressButtonState(): number {\n let buttonState = 0;\n\n if (!paymentsModule.isSavingStorePolicy && !paymentsModule.didSaveStorePolicyFail) {\n buttonState = 200;\n }\n else if (!paymentsModule.isSavingStorePolicy && paymentsModule.didSaveStorePolicyFail) {\n buttonState = 400;\n }\n\n return buttonState;\n }\n\n get showLoadingSpinner(): boolean {\n return paymentsModule.isFetchingStorePolicy;\n }\n\n get disableSwitch(): boolean {\n return paymentsModule.isFetchingStorePolicy || paymentsModule.isSavingStorePolicy;\n }\n\n get initialValue(): StorePolicy {\n return paymentsModule.storePolicy;\n }\n\n get fetchFailed(): boolean {\n return paymentsModule.didFetchStorePolicyFail;\n }\n\n get fetchFailedErrorMessage(): string {\n return this.screenText.getScreenText('POLICY_FETCH_FAILED');\n }\n\n get saveFailed(): boolean {\n return paymentsModule.didSaveStorePolicyFail;\n }\n\n get saveFailedErrorMessage(): string {\n return this.screenText.getScreenText('POLICY_SAVED_FAILED');\n }\n\n private registerValidators() {\n extend('required_if', {\n ...required_if,\n message: this.screenText.getScreenText('POLICY_URL_ERROR')\n });\n extend('regex', {\n ...regex,\n message: this.screenText.getScreenText('POLICY_URL_ERROR')\n });\n extend('max', {\n ...max,\n message: this.screenText.getScreenText('CHAR_LIMIT_MAXIMUM').replace('{length}', `${this.urlMaxLength}`)\n });\n }\n\n created() {\n this.registerValidators();\n paymentsModule.fetchStorePolicy(this.accountId);\n }\n\n @Watch('enabled')\n onEnabledChanged(enabled: boolean) {\n if (!enabled && !this.saveFailed) {\n this.resetUrlInput().then(() => {\n this.formObserverRef && this.formObserverRef.handleSubmit(this.saveStorePolicy);\n });\n }\n }\n\n @Watch('initialValue')\n onInitialValueChanged() {\n this.resetEnabledInput();\n this.resetUrlInput();\n }\n\n private async resetEnabledInput() {\n this.enabled = this.initialValue.enabled;\n if (this.enabledProviderRef) {\n await this.enabledProviderRef.validateSilent();\n this.enabledProviderRef.reset();\n }\n }\n\n private async resetUrlInput() {\n this.url = this.initialValue.url;\n if (this.urlProviderRef) {\n await this.urlProviderRef.validateSilent();\n this.urlProviderRef.reset();\n }\n }\n\n getUrlValidationMode(): VeeValidateProviderMode {\n return this.urlProviderRef && this.urlProviderRef.flags.validated ? VeeValidateProviderMode.Eager : VeeValidateProviderMode.Passive;\n }\n\n private async canSave(): Promise {\n if (this.formObserverRef) {\n await this.formObserverRef.validate();\n }\n\n return !paymentsModule.isSavingStorePolicy\n && !!this.formObserverRef\n && this.formObserverRef.flags.valid\n && this.formObserverRef.flags.changed;\n }\n\n private async onSaveFailed() {\n // Reset enabled state if user tried to disable it (since disabling automatically saves and save button/error get hidden)\n if (!this.enabled && this.initialValue.enabled) {\n await this.resetEnabledInput();\n }\n }\n\n async saveStorePolicy() {\n if (!await this.canSave()) {\n return;\n }\n\n // We only need to update this state if the button is visible (policy = enabled)\n if (this.enabled) {\n this.isValidForProgressButton = false;\n }\n\n const payload: AddUpdateStorePolicyPayload = {\n accountId: this.accountId,\n enabled: this.enabled,\n url: this.url\n };\n\n await paymentsModule.saveStorePolicy(payload);\n\n // We only need to update this state if the button is visible (policy = enabled)\n if (this.enabled) {\n this.isValidForProgressButton = true;\n }\n\n if (!paymentsModule.didSaveStorePolicyFail) {\n APP_UTILITIES.showToastMessage(this.policySavedSuccess, ToastType.Success);\n } else {\n await this.onSaveFailed();\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!./StorePolicyControls.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!./StorePolicyControls.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./StorePolicyControls.vue?vue&type=template&id=36b9d7e2&scoped=true&\"\nimport script from \"./StorePolicyControls.vue?vue&type=script&lang=ts&\"\nexport * from \"./StorePolicyControls.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./StorePolicyControls.vue?vue&type=style&index=0&id=36b9d7e2&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 \"36b9d7e2\",\n null\n \n)\n\nexport default component.exports","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","module.exports = __webpack_public_path__ + \"img/context_menu_icon.de80e7c5.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.discount)?_c('tbody',{staticClass:\"table-body\"},[_c('tr',{staticClass:\"table-row\"},[_c('td',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-content-wrapper padding-left\"},[_c('button',{on:{\"click\":function($event){return _vm.toggleAccordion(_vm.discount.id)}}},[_c('img',{class:{ 'caret-close': _vm.isToggleOpen },attrs:{\"src\":require(\"../../../../assets/images/cms/facet-chevron-down.svg\"),\"alt\":\"\"}})])])]),_c('td',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-content-wrapper-bold\"},[_vm._v(\" \"+_vm._s(_vm.discount.name)+\" \")])]),_c('td',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-content-wrapper\"},[_vm._v(\" \"+_vm._s(_vm.discount.discountTypeId === _vm.discountType.MULTI_PARTICIPANT ? \"Multi-participant\" : \"Early registration\")+\" \")])]),_c('td',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-content-wrapper\"},[_vm._v(\" \"+_vm._s(_vm.discount.appliesTo)+\" \")])]),_c('td',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-content-wrapper\"},[_vm._v(\" \"+_vm._s(_vm.discountTableLabel)+\" \")])]),_c('td',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-content-wrapper\"},[_c('ToggleSwitch',{attrs:{\"id\":(\"toggle-switch-\" + (_vm.discount.id)),\"value\":_vm.enabled,\"disabled\":_vm.disableSwitch},on:{\"update:value\":function($event){_vm.enabled=$event}}})],1)]),_c('td',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-content-wrapper\"},[_c('div',{staticClass:\"uk-inline menu-icon-wrapper\"},[_vm._m(0),_c('div',{staticClass:\"uk-width-1-1\",attrs:{\"uk-dropdown\":\"mode: click; target: !.menu-icon\"}},[_c('ul',{staticClass:\"menu-option\"},[_c('li',{staticClass:\"menu-option-item\"},[_c('button',{staticClass:\"menu-option-button\",on:{\"click\":function($event){return _vm.handleEdit(_vm.index)}}},[_vm._v(\" Edit \")])]),_c('li',{staticClass:\"menu-option-item\"},[_c('button',{staticClass:\"menu-option-button\",on:{\"click\":function($event){return _vm.$emit('onDelete', _vm.discount)}}},[_vm._v(\" Delete \")])])])])])])])]),_c('tr',{staticClass:\"table-accordion\"},[_c('td',{attrs:{\"colspan\":\"12\"}},[_c('ul',{attrs:{\"id\":(\"accordion-toggle-\" + (_vm.discount.id)),\"uk-accordion\":\"\"}},[_c('li',[_c('div',{staticClass:\"uk-accordion-content\"},[_c('table',{staticClass:\"table\"},[_vm._m(1),_c('tr',[_c('td'),_c('td',{staticClass:\"card-content\"},[_c('div',{staticClass:\"card-content-wrapper\"},[_c('div',{staticClass:\"description-container table-header-width-55\"},[_c('span',{staticClass:\"bold-text\"},[_vm._v(\"Description: \")]),_c('span',[_vm._v(\" \"+_vm._s(_vm.discount.description)+\" \")])]),_c('div',{staticClass:\"description-container\"},[_c('span',{staticClass:\"bold-text\"},[_vm._v(_vm._s(_vm.discount.discountTypeId === _vm.discountType.MULTI_PARTICIPANT ? \"Rules:\" : \"Rule:\")+\" \")]),(\n _vm.discount.discountTypeId === _vm.discountType.MULTI_PARTICIPANT\n )?_vm._l((_vm.multipleParticipantsRules),function(rule,index){return _c('div',{key:index,staticClass:\"uk-flex text-container\"},[_c('div',{staticClass:\"bold-text\"},[_vm._v(_vm._s(index + 1)+\":\")]),_c('div',[_vm._v(\" \"+_vm._s(rule.participants)+\" minimum participants \")]),_c('div',{staticClass:\"margin-left-15\"},[_vm._v(\" \"+_vm._s(_vm.commonUtils.addSymbol( rule.amount, _vm.discount.amountUnitType === _vm.amountUnitType.FIXED_AMOUNT ))+\" \")])])}):[_vm._v(\" \"+_vm._s(_vm.earlyRegistrationSessionLabel)+\" \")]],2)])])])])])])])])])]):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"menu-icon-wrapper\"},[_c('img',{staticClass:\"menu-icon\",attrs:{\"src\":require(\"../../../../assets/font-awesomes/context_menu_icon.svg\"),\"alt\":\"\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',{staticClass:\"table-header-width-6\"}),_c('th',{staticClass:\"table-header-width-90\"})])}]\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\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport CardComponent from '@/commoncomponents/CardComponent.vue';\n\nimport paymentsModule from '@/store/modules/Payments/module';\nimport ToggleSwitch from '@/commoncomponents/ToggleSwitch.vue';\nimport APP_UTILITIES from '@/utilities/commonFunctions';\nimport { ToastType } from '@/Model/toastType';\nimport {\n Discount,\n DiscountType,\n AmountUnitType,\n TimeRangeType,\n EarlyRegistrationRule,\n MultiParticipantRule\n} from '@/Model/payments/types';\nimport UIkit from 'uikit';\n\n@Component({\n components: {\n CardComponent,\n ToggleSwitch\n }\n})\nexport default class DiscountTableRow extends Vue {\n @Prop({ required: true }) discount!: Discount;\n @Prop({ required: true }) index!: number;\n\n discountType = DiscountType;\n amountUnitType = AmountUnitType;\n timeRangeType = TimeRangeType;\n isToggleOpen = false;\n enabled = true;\n commonUtils = APP_UTILITIES;\n\n // Initial flag to indicate first render state\n private _firstRender = true;\n disableSwitch = false;\n\n get discountListComputed() {\n return paymentsModule.discountList;\n }\n\n beforeMount() {\n this.enabled = this.discountListComputed[this.index].isActive;\n }\n\n mounted() {\n this._firstRender = false;\n this.enabled = this.discount.isActive;\n }\n\n toggleAccordion(index: number) {\n UIkit.accordion(`#accordion-toggle-${index}`).toggle();\n this.isToggleOpen = !this.isToggleOpen;\n }\n\n\n\n get discountTableLabel(): string {\n if (this.discount.discountTypeId === DiscountType.EARLY_REGISTRATION) {\n const earlyRegistration = this.discount.rules as [EarlyRegistrationRule];\n return APP_UTILITIES.addSymbol(\n earlyRegistration[0].amount,\n this.discount.amountUnitType === AmountUnitType.FIXED_AMOUNT\n );\n }\n else {\n return 'Tiered';\n }\n }\n\n get multipleParticipantsRules(): MultiParticipantRule[] | null {\n if (this.discount.discountTypeId === DiscountType.MULTI_PARTICIPANT) {\n const multipleParticipants = this.discount.rules as MultiParticipantRule[];\n return multipleParticipants;\n }\n return null;\n }\n\n get earlyRegistrationSessionLabel(): string {\n const earlyRegistration = (this.discount.rules as [EarlyRegistrationRule])[0];\n return `If registering ${earlyRegistration.timeRangeUnit} ${APP_UTILITIES.earlyRegistrationDateLabel(earlyRegistration)} before session start date`;\n }\n\n @Watch('enabled')\n async onEnabledChanged() {\n if (\n !this._firstRender &&\n this.discount &&\n this.discount.isActive !== this.enabled\n ) {\n try {\n this.disableSwitch = true;\n // TODO: add request\n // await request\n // this.onStatusUpdated();\n APP_UTILITIES.showToastMessage(\n `Discount is ${!this.enabled\n ? 'inactive'\n : 'active'}`,\n ToastType.Success\n );\n }\n catch {\n APP_UTILITIES.showToastMessage('Unexpected Error!', ToastType.Error);\n this.enabled = !this.enabled;\n }\n finally {\n this.disableSwitch = false;\n const targetDiscount = JSON.parse(\n JSON.stringify(this.discountListComputed[this.index])\n );\n targetDiscount.isActive = this.enabled;\n // TODO: add logic to properly set the discount\n // paymentsModule.updateDiscountList(targetDiscount);\n }\n }\n }\n\n handleEdit(targetDiscountIndex: number) {\n // TODO: add logic to properly set the discount\n // paymentsModule.setCurrentDiscountIndex(targetDiscountIndex);\n paymentsModule.setIsConfiguratioDiscountMenuOpen(true);\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!./DiscountTableRow.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!./DiscountTableRow.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DiscountTableRow.vue?vue&type=template&id=40a6db95&scoped=true&\"\nimport script from \"./DiscountTableRow.vue?vue&type=script&lang=ts&\"\nexport * from \"./DiscountTableRow.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DiscountTableRow.vue?vue&type=style&index=0&id=40a6db95&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 \"40a6db95\",\n null\n \n)\n\nexport default component.exports","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}","import { ConvenienceFeeGetResponse, ConvenienceFeeType, CustomFeeResponse } from '@/Model/payments/types';\nimport { formatCurrency } from '../common/formatters';\n\nexport function percentToNumber(value: string) {\n return Number(`${value}`.replace('%', ''));\n}\n\nexport function getFormattedFeeDisplayValue(fee: ConvenienceFeeGetResponse | CustomFeeResponse): string {\n let result = fee.feeValue.toLocaleString(); // Default catch-all in case the fee.feeType value is somehow not one of the ConvenienceFeeType enum members\n if (fee.feeType === ConvenienceFeeType.FixedAmount) {\n result = formatCurrency(fee.feeValue);\n }\n else if (fee.feeType === ConvenienceFeeType.Percentage) {\n result = `${fee.feeValue}%`;\n }\n return result;\n}","import { extend } from 'vee-validate';\nimport { required, min_value, between, regex } from 'vee-validate/dist/rules';\nimport { ValidationRuleFunction } from 'vee-validate/dist/types/types';\nimport { percentToNumber } from '@/services/payments/helpers';\n\nconst percentTwoDecimalRegexPattern = /^([0-9]{1,3}|[0-9]{1,3}\\.[0-9]?[0-9]?|\\.[0-9]?[0-9])?%?$/;\n\nexport const percentInputDecimalLengthValidator: ValidationRuleFunction = (value: string) => regex.validate(value, { regex: percentTwoDecimalRegexPattern });\n\n\nexport const percentInputBetweenValueValidator: ValidationRuleFunction = (value: string, { args }: Record) => {\n const numValue = percentToNumber(value);\n return between.validate(numValue, args);\n};\n\nexport function fixedAmountFeeMinValueValidator(message: string) {\n extend('fixed_amount_min_value', {\n ...min_value,\n message\n });\n}\n\nexport function fixedAmountFeeRequiredValidator(message: string) {\n extend('fixed_amount_required', {\n ...required,\n message\n });\n}\n\nexport function percentInputBetweenValidator(message: string) {\n extend('percent_input_between', {\n ...between,\n params: ['args'],\n message,\n validate: percentInputBetweenValueValidator\n });\n}\n\nexport function feeNameRequiredValidator(message: string) {\n extend('name_required', {\n ...required,\n message\n });\n}\n\nexport function customFeeSelectionRequiredValidator(message: string) {\n extend('fee_type_required', {\n ...required,\n message\n });\n}\n\nexport function percentInputRequiredValidator(message: string) {\n extend('percent_input_required', {\n ...required,\n message\n });\n}\n\nexport function percentInputTwoDecimalPlacesValidator(message: string) {\n extend('percent_input_decimal_length', {\n ...regex,\n message,\n validate: percentInputDecimalLengthValidator\n });\n}\n\nexport function checkoutNameRequiredValidator(message: string) {\n extend('name_required', {\n ...required,\n message\n });\n}\n\nexport function discountDescriptionRequiredValidator(message: string) {\n extend('description_required', {\n ...required,\n message\n });\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('BaseModal',{attrs:{\"isVisible\":_vm.isVisibleSync},on:{\"update:isVisible\":function($event){_vm.isVisibleSync=$event},\"update:is-visible\":function($event){_vm.isVisibleSync=$event},\"closepopup\":_vm.onCancel}},[_c('div',{staticClass:\"uk-margin-bottom\"},[_c('i',{class:_vm.iconClass})]),_c('div',{staticClass:\"change-custom-payment-title uk-margin-auto uk-margin-bottom\"},[_vm._v(\" \"+_vm._s(_vm.config.title)+\" \")]),_c('div',{staticClass:\"change-custom-payment-text uk-margin-medium-bottom\"},[_vm._v(\" \"+_vm._s(_vm.config.description)+\" \")]),_c('div',{staticClass:\"uk-flex uk-flex-right uk-margin-remove-bottom uk-padding-remove-bottom arly-button-container\"},[_c('button',{staticClass:\"btn-secondary uk-margin-small-right uk-margin-remove-bottom\",on:{\"click\":_vm.onCancel}},[_vm._v(\" \"+_vm._s(_vm.config.cancelButtonLabel)+\" \")]),_c('button',{staticClass:\"uk-margin-remove-bottom\",class:_vm.btnClass,on:{\"click\":_vm.onConfirm}},[_vm._v(\" \"+_vm._s(_vm.config.confirmButtonLabel)+\" \")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Vue, Component, PropSync, Prop } from 'vue-property-decorator';\nimport BaseModal from '@/popupcomponents/BaseModal.vue';\nimport { StateModalType } from '@/Model/payments/types';\n\n@Component({\n components: {\n BaseModal\n }\n})\nexport default class StateModal extends Vue {\n @PropSync('isVisible') isVisibleSync!: boolean;\n\n @Prop() config!: {\n title: string;\n description: string;\n type: StateModalType;\n cancelButtonLabel: string;\n confirmButtonLabel: string;\n };\n\n onCancel() {\n this.$emit('onClose');\n }\n\n onConfirm() {\n this.$emit('onConfirm');\n }\n\n get iconClass() {\n switch (this.config.type) {\n case StateModalType.WARNING:\n return 'fa-solid fa-triangle-exclamation fa-7x warning-icon';\n\n case StateModalType.ERROR:\n return 'fa-solid fa-trash fa-7x error-icon';\n\n default:\n return '';\n }\n }\n\n get btnClass() {\n switch (this.config.type) {\n case StateModalType.WARNING:\n return 'btn-primary';\n\n case StateModalType.ERROR:\n return 'btn-danger';\n\n default:\n return 'btn-primary';\n }\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StateModal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StateModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./StateModal.vue?vue&type=template&id=2126c934&scoped=true&\"\nimport script from \"./StateModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./StateModal.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./StateModal.vue?vue&type=style&index=0&id=2126c934&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2126c934\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StateModal.vue?vue&type=style&index=0&id=2126c934&lang=less&scoped=true&\"","import { extend } from 'vee-validate';\nimport { required, min_value } from 'vee-validate/dist/rules';\nimport { ValidationRuleFunction } from 'vee-validate/dist/types/types';\n\nexport const urlRegex: RegExp = /^(https?:\\/\\/)?(w{3})?[-a-z0-9@:%._+~#=]{1,256}\\.[a-z0-9()]{1,6}\\b([-a-z0-9()@:%_+.~#?&/=]*)$/i;\n\nexport const priceGreaterThanZeroWithTaxRateValidator: ValidationRuleFunction = (price: number, { taxRate }: Record) => {\n if (price === 0 && !!taxRate) {\n return false;\n }\n return true;\n};\n\nexport function registerPriceRequiredValidator(message: string) {\n extend('price_required', {\n ...required,\n message\n });\n}\n\nexport function requiredField(message: string) {\n extend('field_required', {\n ...required,\n message\n });\n}\n\n\nexport function registerPriceMinValueValidator(message: string) {\n extend('price_min_value', {\n ...min_value,\n message\n });\n}\n\nexport function registerPriceGreaterThanZeroWithTaxRateValidator(message: string) {\n extend('price_greater_than_zero_with_tax_rate', {\n params: ['taxRate'],\n validate: priceGreaterThanZeroWithTaxRateValidator,\n message\n });\n}","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!./ToggleSwitch.vue?vue&type=style&index=0&id=87a5289e&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.isCustomizeFeeVisibleSync},on:{\"update:isVisible\":function($event){_vm.isCustomizeFeeVisibleSync=$event},\"update:is-visible\":function($event){_vm.isCustomizeFeeVisibleSync=$event},\"onClose\":_vm.onClose}},[_c('aside',{staticClass:\"add-new-sec\"},[_c('div',[_c('div',{staticClass:\"customize-fee-title uk-margin-small-bottom\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('CUSTOMIZE_FEE_TITLE'))+\" \")]),_c('div',{staticClass:\"subtitle uk-margin-small-bottom\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('CUSTOMIZE_FEE_SUBTITLE'))+\" \")]),_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:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"name\",\"data-testid\":\"fee-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.screenText.getScreenText('FEE_NAME_SUBHEADER'))+\" \")]),_c('ValidationProvider',{ref:\"nameObserverRef\",attrs:{\"rules\":\"name_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.trim\",value:(_vm.customFee.name),expression:\"customFee.name\",modifiers:{\"trim\":true}}],attrs:{\"id\":\"name\",\"type\":\"text\",\"maxlength\":\"50\"},domProps:{\"value\":(_vm.customFee.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.customFee, \"name\", $event.target.value.trim())},\"blur\":function($event){return _vm.$forceUpdate()}}}),_c('span',{staticClass:\"form-field-error\",style:({ 'visibility': validated && invalid ? 'visible' : 'hidden' }),attrs:{\"data-testid\":\"name-required-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}],null,true)})],1),_c('div',{staticClass:\"form-group uk-margin-small-top\"},[_c('div',[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"percent-rate\",\"data-testid\":\"setup-header\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_SETUP'))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])])]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('FEE_SETUP_SUBHEADER'))+\" \")]),_c('div',{staticClass:\"uk-margin-remove\"},[_c('div',{staticClass:\"radio-input-wrapper\"},[_c('ValidationProvider',{attrs:{\"vid\":_vm.percentInputVid,\"rules\":\"fee_type_required\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.customFee.feeType),expression:\"customFee.feeType\"}],attrs:{\"id\":\"percent-rate\",\"type\":\"radio\",\"name\":\"fee-type\",\"data-testid\":\"percent-rate-input\"},domProps:{\"value\":_vm.convenienceFeeType.Percentage,\"checked\":_vm._q(_vm.customFee.feeType,_vm.convenienceFeeType.Percentage)},on:{\"click\":function($event){return _vm.displayPercentRate()},\"change\":function($event){return _vm.$set(_vm.customFee, \"feeType\", _vm.convenienceFeeType.Percentage)}}})]),_c('label',{staticClass:\"subtitle\",attrs:{\"for\":\"percent-rate\"}},[_vm._v(_vm._s(_vm.screenText.getScreenText('FEE_PERCENTAGE_RATE')))])],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.customFee.feeType == _vm.convenienceFeeType.Percentage),expression:\"customFee.feeType == convenienceFeeType.Percentage\"}],staticClass:\"uk-margin-small-left uk-padding-small uk-padding-remove-vertical\"},[_c('span',{staticClass:\"subheader\"},[_vm._v(_vm._s(_vm.screenText.getScreenText('FEE_PERCENT_RATE_HELPER_TEXT')))]),_c('ValidationProvider',{ref:\"percentInputObserverRef\",attrs:{\"rules\":_vm.percentBasedInputRules,\"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.percentInput),expression:\"percentInput\"}],attrs:{\"id\":\"percent-input\"},domProps:{\"value\":(_vm.percentInput)},on:{\"blur\":_vm.addPercentSignToPercentInput,\"focus\":_vm.onPercentInputFocus,\"keypress\":function($event){return _vm.forceNumberInput($event, true)},\"input\":function($event){if($event.target.composing){ return; }_vm.percentInput=$event.target.value}}}),_c('span',{staticClass:\"form-field-error\",style:({ 'visibility': validated && invalid ? 'visible' : 'hidden' }),attrs:{\"data-testid\":\"percent-input-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}],null,true)})],1),_c('div',{staticClass:\"radio-input-wrapper\",style:({ 'float': _vm.isPercentRateDisplayed ? 'left' : 'none' })},[_c('ValidationProvider',{attrs:{\"rules\":\"fee_type_required\",\"vid\":_vm.fixedAmountInputVid}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.customFee.feeType),expression:\"customFee.feeType\"}],attrs:{\"id\":\"fixed-amount\",\"type\":\"radio\",\"name\":\"fee-type\",\"data-testid\":\"fixed-amount-input\"},domProps:{\"value\":_vm.convenienceFeeType.FixedAmount,\"checked\":_vm._q(_vm.customFee.feeType,_vm.convenienceFeeType.FixedAmount)},on:{\"click\":function($event){return _vm.displayFixedAmount()},\"change\":function($event){return _vm.$set(_vm.customFee, \"feeType\", _vm.convenienceFeeType.FixedAmount)}}})]),_c('label',{staticClass:\"subtitle\",attrs:{\"for\":\"fixed-amount\"}},[_vm._v(_vm._s(_vm.screenText.getScreenText('FEE_FIXED_AMOUNT')))])],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.customFee.feeType == _vm.convenienceFeeType.FixedAmount),expression:\"customFee.feeType == convenienceFeeType.FixedAmount\"}],staticClass:\"uk-margin-small-left uk-padding-small uk-padding-remove-vertical\"},[_c('span',{staticClass:\"subheader\"},[_vm._v(_vm._s(_vm.screenText.getScreenText('FEE_FIXED_AMOUNT_HELPER_TEXT')))]),_c('ValidationProvider',{ref:\"fixedAmountObserverRef\",attrs:{\"rules\":_vm.fixedAmountInputRules,\"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('CurrencyInput',{attrs:{\"id\":\"fixed-amount\",\"name\":\"fixed-amount-price\",\"currency\":_vm.currencyOptions.currency,\"locale\":_vm.currencyOptions.locale,\"allowNegative\":_vm.currencyOptions.allowNegative},on:{\"blur\":_vm.onFixedAmountBlur},model:{value:(_vm.fixedAmountInput),callback:function ($$v) {_vm.fixedAmountInput=_vm._n($$v)},expression:\"fixedAmountInput\"}}),_c('span',{staticClass:\"form-field-error\",style:({ 'visibility': validated && invalid ? 'visible' : 'hidden' }),attrs:{\"data-testid\":\"fixed-amount-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}],null,true)})],1),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!!_vm.displayRadioInputError()),expression:\"!!displayRadioInputError()\"}],staticClass:\"form-field-error\"},[_vm._v(\" \"+_vm._s(_vm.displayRadioInputError())+\" \")])])]),_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"tax-rate-select\",\"data-testid\":\"tax-rate\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_TAX_RATE'))+\" \")]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('TAX_RATE_FEE_DESCRIPTION'))+\" \")]),_c('ValidationProvider',[_c('DropdownList',{attrs:{\"dropdown\":_vm.taxDropdownOptions,\"autoSelectionAllowed\":true},on:{\"onSelectionChange\":_vm.onSelectTax},model:{value:(_vm.customFee.taxRate),callback:function ($$v) {_vm.$set(_vm.customFee, \"taxRate\", $$v)},expression:\"customFee.taxRate\"}})],1)],1),_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"description\",\"data-testid\":\"fee-description\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_DESCRIPTION'))+\" \")]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('CUSTOMIZE_FEE_DESCRIPTION'))+\" \")]),_c('ValidationProvider',[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.customFee.description),expression:\"customFee.description\",modifiers:{\"trim\":true}}],attrs:{\"id\":\"fee-description-text\",\"maxlength\":\"100\"},domProps:{\"value\":(_vm.customFee.description)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.customFee, \"description\", $event.target.value.trim())},\"blur\":function($event){return _vm.$forceUpdate()}}})])],1),_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\",\"apiResponseCode\":_vm.saveProgressButtonState,\"isValidation\":_vm.isValidationForProgress,\"buttonIndex\":_vm.saveButtonText,\"buttonText\":_vm.saveButtonText,\"updateProgress\":true}})],1)]),_c('ChangeFeeModal',{attrs:{\"isVisible\":_vm.isChangeFeeModalVisible},on:{\"confirmChangeFee\":_vm.confirmChangeFee,\"closepopup\":_vm.closeChangeFeeModal}})]}}])})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, PropSync, Ref, Vue, Watch } from 'vue-property-decorator';\nimport { ScreenText } from '@/lang/ScreenText';\nimport OffCanvas from '@/commoncomponents/OffCanvas.vue';\nimport DropdownList from '@/ui-components/dropdownListBx/DropdownList.vue';\nimport { CurrencyInput, CurrencyInputOptions } from 'vue-currency-input';\nimport APP_CONST from '@/constants/AppConst';\nimport APP_UTILITIES from '@/utilities/commonFunctions';\nimport { DropdownListItem, DropdownListOptions } from '@/ui-components/dropdownListBx/types';\nimport { ValidationObserver, ValidationProvider, extend } from 'vee-validate';\nimport { VeeValidateProviderMode } from '@/Model/forms/types';\nimport { ConvenienceFeeGetResponse, ConvenienceFeeType } from '@/Model/payments/types';\nimport paymentsModule from '@/store/modules/Payments/module';\nimport { Status } from '@/Model/shared/types';\nimport { ProviderInstance } from 'vee-validate/dist/types/types';\nimport ProgressButton from '@/commoncomponents/progressButton/progressButton';\nimport ChangeFeeModal from '@/popupcomponents/payments/ChangeFeeModal.vue';\nimport { fixedAmountFeeMinValueValidator, fixedAmountFeeRequiredValidator, feeNameRequiredValidator, customFeeSelectionRequiredValidator, percentInputRequiredValidator, percentInputBetweenValidator, percentInputTwoDecimalPlacesValidator } from '@/validators/payments/validators';\nimport { percentToNumber } from '@/services/payments/helpers';\n\n@Component({\n components: {\n OffCanvas,\n DropdownList,\n CurrencyInput,\n ValidationObserver,\n ValidationProvider,\n ProgressButton,\n ChangeFeeModal\n }\n})\n\n\nexport default class CustomizeFee extends Vue {\n @PropSync('isCustomizeFeeVisible', { type: Boolean, required: true }) isCustomizeFeeVisibleSync!: boolean;\n @Ref('formObserverRef') readonly formObserverRef?: InstanceType;\n @Ref('nameObserverRef') readonly nameObserverRef?: ProviderInstance;\n @Ref('percentInputObserverRef') readonly percentInputObserverRef?: ProviderInstance;\n @Ref('fixedAmountObserverRef') readonly fixedAmountObserverRef?: ProviderInstance;\n\n private readonly accountId = APP_UTILITIES.getAccountId();\n readonly percentInputVid = 'percentInput';\n readonly fixedAmountInputVid = 'fixedAmountInput';\n\n readonly screenText = new ScreenText();\n readonly currencyOptions: CurrencyInputOptions = APP_CONST.CURRENCY_OPTIONS;\n readonly nameText = this.screenText.getScreenText('LABEL_NAME').toLowerCase();\n readonly initialCustomFeeTemplate = {\n id: 0,\n name: '',\n description: '',\n status: Status.Active,\n feeType: null,\n feeValue: 0\n } as Omit & { feeType: ConvenienceFeeType | null };\n payments = paymentsModule;\n isPercentRateDisplayed = false;\n isFixedAmountDisplayed = false;\n isValidationForProgress = false;\n convenienceFeeType = ConvenienceFeeType;\n validationMode = VeeValidateProviderMode;\n percentInput: number | string = 0;\n fixedAmountInput: number | null = 0; //Must be nullable for the CurrencyInput, which can null the field momentarily\n customFee = { ...this.initialCustomFeeTemplate };\n isChangeFeeModalVisible = false;\n\n get fixedAmountInputRules(): Record {\n return {\n fixed_amount_min_value: this.customFee.feeType == ConvenienceFeeType.FixedAmount\n ? 0.01\n : false,\n fixed_amount_required: this.customFee.feeType == ConvenienceFeeType.FixedAmount,\n };\n }\n\n get percentBasedInputRules(): Record {\n return {\n percent_input_between: this.customFee.feeType == ConvenienceFeeType.Percentage\n ? { min: 0.01, max: 100 }\n : false,\n percent_input_required: this.customFee.feeType == ConvenienceFeeType.Percentage,\n percent_input_decimal_length: true,\n };\n }\n\n get saveProgressButtonState(): number {\n if (!this.payments.isSavingCustomFee && !this.payments.didSavingCustomFeeFail) {\n return 200;\n }\n\n else if (!this.payments.isSavingCustomFee && this.payments.didSavingCustomFeeFail) {\n return 400;\n }\n else {\n return 0;\n }\n }\n\n get saveButtonText(): string {\n return this.screenText.getScreenText('BTN_SAVE');\n }\n\n private selectATaxRateDropdownItem: DropdownListItem = {\n id: 0,\n value: this.screenText.getScreenText('SESSION_ADD_EDIT_TAX_DEFAULT')\n };\n\n async fetchAllTaxRates() {\n if (this.accountId) {\n await this.payments.getTaxRates(this.accountId);\n }\n }\n\n async onSelectTax(selection: DropdownListItem) {\n if (selection.id == 0) {\n this.customFee.taxRate = null;\n }\n else {\n const oneBasedDropdownIndex = selection.id;\n const convertedZeroBasedTaxRateIndex = oneBasedDropdownIndex - 1;\n this.customFee.taxRate = this.payments.taxRates[convertedZeroBasedTaxRateIndex];\n }\n }\n\n get taxDropdownOptions(): DropdownListOptions {\n let dropdownList: Array = [this.selectATaxRateDropdownItem];\n let selectedTaxRate = this.selectATaxRateDropdownItem;\n\n dropdownList = dropdownList.concat(this.payments.taxRates.map((taxRate, index) => {\n const zeroBasedIndex = index;\n const convertedOneBasedIndexForDropdown = zeroBasedIndex + 1; // Need to have an Number id for the bx dropdown\n const taxRateDropdownItemForIndex: DropdownListItem = {\n id: convertedOneBasedIndexForDropdown,\n value: `${taxRate.displayName} ${this.screenText.getScreenText('LABEL_TAX_RATE_JOINING_TEXT')} ${taxRate.percentage}%`\n };\n\n if (this.customFee.taxRate && this.customFee.taxRate.id === taxRate.id) {\n selectedTaxRate = taxRateDropdownItemForIndex;\n }\n return taxRateDropdownItemForIndex;\n }));\n\n return {\n id: selectedTaxRate.id,\n singleSelect: true,\n showSelectLabel: false,\n value: selectedTaxRate.value,\n dropdownList\n };\n }\n\n forceNumberInput = APP_UTILITIES.forceNumberInput;\n\n onFixedAmountBlur() {\n if (!this.fixedAmountInput) {\n this.fixedAmountInput = 0;\n }\n }\n\n displayRadioInputError(): string | null {\n let error: string | null = null;\n if (this.formObserverRef) {\n const percentRadioError = this.formObserverRef.errors[this.percentInputVid] && this.formObserverRef.errors[this.percentInputVid][0];\n const fixedAmountRadioError = this.formObserverRef.errors[this.fixedAmountInputVid] && this.formObserverRef.errors[this.fixedAmountInputVid][0];\n const radioError = percentRadioError || fixedAmountRadioError;\n if (radioError) {\n error = radioError;\n }\n }\n return error;\n }\n\n created() {\n this.onCreated();\n }\n\n onCreated() {\n this.registerValidators();\n this.fetchAllTaxRates();\n }\n\n onPercentInputFocus(event: FocusEvent) {\n const targetElement = event.target as HTMLInputElement;\n this.percentInput = percentToNumber(targetElement.value);\n }\n\n addPercentSignToPercentInput() {\n const updatedInput = percentToNumber(`${this.percentInput}`);\n this.percentInput = `${Number(updatedInput)}%`;\n }\n\n onCancel() {\n this.onClose();\n this.isCustomizeFeeVisibleSync = false;\n }\n\n onClose() {\n this.resetInputs();\n }\n\n @Watch('isCustomizeFeeVisible')\n onVisibleChange(visible: boolean) {\n if (visible) {\n this.setCustomFee();\n this.addPercentSignToPercentInput();\n }\n }\n\n setCustomFeeValues() {\n if (this.isFixedAmountDisplayed) {\n this.customFee.feeValue =\n this.fixedAmountInput !== null\n ? this.fixedAmountInput\n : 0;\n this.customFee.feeType = ConvenienceFeeType.FixedAmount;\n }\n else {\n this.customFee.feeValue = percentToNumber(`${this.percentInput}`);\n this.customFee.feeType = ConvenienceFeeType.Percentage;\n }\n\n //Sibling component FeeDetails changes the paymentsModule.customFee.status when toggled\n if (paymentsModule.customFee) {\n this.customFee.status = paymentsModule.customFee.status;\n }\n }\n\n setCustomFee() {\n this.customFee = paymentsModule.customFee\n ? { ...paymentsModule.customFee }\n : { ...this.initialCustomFeeTemplate };\n\n if (this.customFee.feeType == ConvenienceFeeType.FixedAmount) {\n this.fixedAmountInput = this.customFee.feeValue;\n this.percentInput = this.initialCustomFeeTemplate.feeValue;\n this.isFixedAmountDisplayed = true;\n this.isPercentRateDisplayed = false;\n }\n else if (this.customFee.feeType == ConvenienceFeeType.Percentage) {\n this.percentInput = this.customFee.feeValue;\n this.fixedAmountInput = this.initialCustomFeeTemplate.feeValue;\n this.isFixedAmountDisplayed = false;\n this.isPercentRateDisplayed = true;\n }\n }\n\n private async canSave(): Promise {\n if (this.formObserverRef) {\n await this.formObserverRef.validate();\n }\n\n return !(paymentsModule.isSavingCustomFee || paymentsModule.isLoadingCustomFee)\n && !!this.formObserverRef\n && this.formObserverRef.flags.valid;\n }\n\n private resetInputs() {\n for (const key in this.customFee) {\n const asKeyOf = key as keyof ConvenienceFeeGetResponse;\n this.customFee = {\n ...this.customFee,\n [asKeyOf]: paymentsModule.customFee\n ? paymentsModule.customFee[asKeyOf]\n : this.initialCustomFeeTemplate[asKeyOf]\n };\n }\n\n if (this.formObserverRef) {\n this.formObserverRef.reset();\n }\n\n this.resetFeeInputs();\n }\n\n private resetFeeInputs() {\n this.percentInput = this.customFee.feeType == ConvenienceFeeType.Percentage\n ? this.customFee.feeValue\n : 0;\n this.fixedAmountInput = this.customFee.feeType == ConvenienceFeeType.FixedAmount\n ? this.customFee.feeValue\n : 0;\n }\n\n async onSave() {\n\n if (!await this.canSave()) {\n return;\n }\n\n this.isValidationForProgress = false;\n\n this.setCustomFeeValues();\n\n const updatedFee = {\n ...this.customFee,\n feeType: this.customFee.feeType! //We can assert that feeType != null due to the canSave method\n } as ConvenienceFeeGetResponse;\n\n await paymentsModule.updateCustomFee(updatedFee);\n\n this.setCustomFee();\n this.isValidationForProgress = false;\n this.isCustomizeFeeVisibleSync = false;\n }\n\n closeChangeFeeModal() {\n this.isChangeFeeModalVisible = false;\n }\n\n confirmChangeFee() {\n this.closeChangeFeeModal();\n this.onSave();\n }\n\n beforeOnSave() {\n if (paymentsModule.customFee) {\n if (this.formObserverRef && this.formObserverRef.flags.changed) {\n this.isChangeFeeModalVisible = true;\n }\n else {\n this.onCancel();\n }\n }\n else {\n this.onSave();\n }\n }\n\n displayPercentRate() {\n this.isPercentRateDisplayed = true;\n this.isFixedAmountDisplayed = false;\n }\n\n displayFixedAmount() {\n this.isFixedAmountDisplayed = true;\n this.isPercentRateDisplayed = false;\n }\n\n private registerValidators() {\n fixedAmountFeeMinValueValidator(this.screenText.getScreenText('CUSTOM_FEE_FIXED_AMOUNT_ERROR'));\n fixedAmountFeeRequiredValidator(this.screenText.getScreenText('CUSTOM_FEE_FIXED_AMOUNT_ERROR'));\n percentInputBetweenValidator(this.screenText.getScreenText('CUSTOM_FEE_PERCENT_ERROR'));\n feeNameRequiredValidator(this.screenText.getScreenText('REQUIRED_INPUT_FIELD_ERROR').replace('{field}', this.nameText));\n customFeeSelectionRequiredValidator(this.screenText.getScreenText('CUSTOM_FEE_SELECTION_REQUIRED_ERROR'));\n percentInputRequiredValidator(this.screenText.getScreenText('CUSTOM_FEE_PERCENT_ERROR'));\n percentInputTwoDecimalPlacesValidator(this.screenText.getScreenText('CUSTOM_FEE_PERCENT_ERROR'));\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!./CustomizeFee.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!./CustomizeFee.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CustomizeFee.vue?vue&type=template&id=706c9b36&scoped=true&\"\nimport script from \"./CustomizeFee.vue?vue&type=script&lang=ts&\"\nexport * from \"./CustomizeFee.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CustomizeFee.vue?vue&type=style&index=0&id=706c9b36&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 \"706c9b36\",\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!./CustomizeFee.vue?vue&type=style&index=0&id=706c9b36&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","module.exports = __webpack_public_path__ + \"img/arrowDown.33c89f03.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-component uk-flex uk-flex-column uk-flex-wrap uk-flex-left uk-flex-top uk-margin-bottom\",class:{'uk-margin-top': !_vm.disableMarginTop }},[_c('div',{staticClass:\"card-component-title\"},[_vm._t(\"title\")],2),_c('div',{staticClass:\"card-component-subtitle\"},[_vm._t(\"subtitle\")],2),_c('div',{staticClass:\"uk-margin-auto-top\",class:{ 'uk-width-1-1': _vm.shouldExpandFullWidth }},[_vm._t(\"button\")],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\n\n@Component({})\nexport default class CardComponent extends Vue {\n @Prop({ default: false }) shouldExpandFullWidth !: boolean;\n @Prop({ default: false }) disableMarginTop !: boolean;\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!./CardComponent.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!./CardComponent.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CardComponent.vue?vue&type=template&id=029a7eae&scoped=true&\"\nimport script from \"./CardComponent.vue?vue&type=script&lang=ts&\"\nexport * from \"./CardComponent.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CardComponent.vue?vue&type=style&index=0&id=029a7eae&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 \"029a7eae\",\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:\"toggle-switch\",attrs:{\"tabindex\":\"0\",\"data-testid\":(\"toggle-switch-\" + _vm.inputId)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.toggleValue($event)}}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.valueSync),expression:\"valueSync\"}],staticClass:\"switch\",class:{ 'disabled': _vm.disabled },attrs:{\"id\":_vm.inputId,\"type\":\"checkbox\",\"disabled\":_vm.disabled,\"data-testid\":\"toggle-switch-input\"},domProps:{\"checked\":Array.isArray(_vm.valueSync)?_vm._i(_vm.valueSync,null)>-1:(_vm.valueSync)},on:{\"change\":function($event){var $$a=_vm.valueSync,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.valueSync=$$a.concat([$$v]))}else{$$i>-1&&(_vm.valueSync=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.valueSync=$$c}}}}),_c('label',{attrs:{\"for\":_vm.inputId,\"data-testid\":\"toggle-switch-label\"}})])}\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\nimport { Component, Prop, PropSync, Vue } from 'vue-property-decorator';\nimport { uuid } from 'vue-uuid';\n\n@Component({})\nexport default class ToggleSwitch extends Vue {\n @Prop({ type: String, default: '' }) id!: string;\n @Prop({ type: Boolean, default: false }) disabled!: boolean;\n @PropSync('value', { type: Boolean, required: true }) valueSync!: boolean;\n\n inputId: string = this.id;\n\n beforeMount() {\n if (!this.inputId) {\n this.inputId = `toggle-switch-${uuid.v4().slice(0, 8)}`;\n }\n }\n\n toggleValue() {\n this.valueSync = !this.valueSync;\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!./ToggleSwitch.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!./ToggleSwitch.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ToggleSwitch.vue?vue&type=template&id=87a5289e&scoped=true&\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=ts&\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ToggleSwitch.vue?vue&type=style&index=0&id=87a5289e&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 \"87a5289e\",\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!./FeeDetails.vue?vue&type=style&index=0&id=418f1c0b&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!./ChangeCustomPaymentModal.vue?vue&type=style&index=0&id=baf522fe&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!./DropdownList.less?vue&type=style&index=0&id=7867c925&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!./StorePolicyControls.vue?vue&type=style&index=0&id=36b9d7e2&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!./CustomCheckout.vue?vue&type=style&index=0&id=05b90be4&lang=less&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/facet-chevron-down.236e0eeb.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isCurrentlyLoading || _vm.isLoadingCustomCheckouts)?_c('div',[_c('BouncingPreloader')],1):_c('div',{attrs:{\"id\":\"payments\"}},[_c('CustomizeFee',{attrs:{\"isCustomizeFeeVisible\":_vm.isCustomizeFeeVisible},on:{\"update:isCustomizeFeeVisible\":function($event){_vm.isCustomizeFeeVisible=$event},\"update:is-customize-fee-visible\":function($event){_vm.isCustomizeFeeVisible=$event}}}),_c('CustomCheckout',{attrs:{\"checkoutOption\":_vm.selectedCustomCheckoutOption,\"isCustomizeCheckoutVisible\":_vm.isCustomCheckoutVisible},on:{\"OnSaveCustomPayment\":_vm.refreshOnSaveCustomPayment,\"update:isCustomizeCheckoutVisible\":function($event){_vm.isCustomCheckoutVisible=$event},\"update:is-customize-checkout-visible\":function($event){_vm.isCustomCheckoutVisible=$event}}}),(_vm.isAutomaticDiscountEnabled)?_c('DiscountConfiguration',{attrs:{\"isConfigurationDiscountMenuVisible\":_vm.isAutomaticDiscountVisible},on:{\"update:isConfigurationDiscountMenuVisible\":function($event){_vm.isAutomaticDiscountVisible=$event},\"update:is-configuration-discount-menu-visible\":function($event){_vm.isAutomaticDiscountVisible=$event}}}):_vm._e(),(!_vm.hasOnBoardingCompleted)?_c('EmptyStateContainer',{scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('img',{attrs:{\"src\":require(\"@/assets/images/payments/merchant-account-setup.svg\")}})]},proxy:true},{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.merchantAccountSetupTitle)+\" \")]},proxy:true},{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.merchantAccountSetupSubtitle)+\" \")]},proxy:true},{key:\"button\",fn:function(){return [_c('ProgressButton',{attrs:{\"bx-attr\":\"save-btn\",\"isValidation\":_vm.isValidForProgressButton,\"apiResponseCode\":_vm.translateLoadingToProgressButtonState(),\"buttonIndex\":\"payments-onboarding-link\",\"updateProgress\":true},on:{\"submitData\":function($event){return _vm.retrieveOnboardingLink()}}},[_vm._v(\" \"+_vm._s(_vm.shouldShowMerchantAccountError ? _vm.merchantAccountRetryButtonText : _vm.merchantAccountSetupButtonText)+\" \"),(_vm.shouldShowMerchantAccountError === false)?_c('i',[_c('span',{attrs:{\"uk-icon\":\"arrow-right\"}})]):_vm._e()])]},proxy:true},{key:\"error-message\",fn:function(){return [(_vm.shouldShowMerchantAccountError)?_c('div',{staticClass:\"merchantAccountError uk-text-center\"},[_c('div',[_vm._v(_vm._s(_vm.merchantAccountErrorText))])]):_vm._e()]},proxy:true}],null,false,3461389558)}):[_c('CardComponent',{scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.manageOnlinePaymentSettingsTitle)+\" \")]},proxy:true},{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.manageSettingsDesc)+\" \")]},proxy:true},{key:\"button\",fn:function(){return [_c('a',{staticClass:\"btn-primary\",attrs:{\"href\":_vm.STRIPE_CONST.URLS.settings,\"target\":\"_blank\"}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.buttonDisplaySettings)+\" \"),_c('i',[_c('img',{staticClass:\"smallerExernalLinkIcon\",attrs:{\"src\":require(\"@/assets/font-awesomes/external-link-alt.svg\"),\"alt\":\"\"}})])])])]},proxy:true},{key:\"error-message\",fn:function(){return [(_vm.shouldShowMerchantAccountError)?_c('div',{staticClass:\"merchantAccountError\"},[_c('p',[_vm._v(_vm._s(_vm.merchantAccountErrorText))])]):_vm._e()]},proxy:true}])}),_c('div',{staticClass:\"uk-grid\",attrs:{\"uk-height-match\":\"target: > div > .card-component\"}},[_c('div',{staticClass:\"uk-width-1-4\"},[_c('CardComponent',{staticClass:\"card-component\",scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.payoutTitle)+\" \")]},proxy:true},{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.payoutDesc)+\" \")]},proxy:true},{key:\"button\",fn:function(){return [_c('a',{staticClass:\"btn-primary\",attrs:{\"href\":_vm.STRIPE_CONST.URLS.payouts,\"target\":\"_blank\"}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.buttonPayout)+\" \"),_c('i',[_c('img',{staticClass:\"smallerExernalLinkIcon\",attrs:{\"src\":require(\"@/assets/font-awesomes/external-link-alt.svg\"),\"alt\":\"\"}})])])])]},proxy:true},{key:\"error-message\",fn:function(){return [(_vm.shouldShowMerchantAccountError)?_c('div',{staticClass:\"merchantAccountError\"},[_c('p',[_vm._v(_vm._s(_vm.merchantAccountErrorText))])]):_vm._e()]},proxy:true}])})],1),_c('div',{staticClass:\"uk-width-1-4\"},[_c('CardComponent',{staticClass:\"card-component\",scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.policyTitle + \" \" + \"(\" + _vm.optional + \")\")+\" \")]},proxy:true},{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.policyDesc)+\" \")]},proxy:true},{key:\"button\",fn:function(){return [_c('StorePolicyControls')]},proxy:true},{key:\"error-message\",fn:function(){return [(_vm.shouldShowMerchantAccountError)?_c('div',{staticClass:\"merchantAccountError\"},[_c('p',[_vm._v(_vm._s(_vm.merchantAccountErrorText))])]):_vm._e()]},proxy:true}])})],1),_c('div',{staticClass:\"uk-width-1-4\"},[_c('CardComponent',{staticClass:\"card-component\",scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.taxTitle + \" \" + \"(\" + _vm.optional + \")\")+\" \")]},proxy:true},{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.taxDesc)+\" \")]},proxy:true},{key:\"button\",fn:function(){return [_c('a',{staticClass:\"btn-primary\",attrs:{\"href\":_vm.STRIPE_CONST.URLS.tax_rate,\"target\":\"_blank\"}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.buttonTax)+\" \"),_c('i',[_c('img',{staticClass:\"smallerExernalLinkIcon\",attrs:{\"src\":require(\"@/assets/font-awesomes/external-link-alt.svg\"),\"alt\":\"\"}})])])])]},proxy:true},{key:\"error-message\",fn:function(){return [(_vm.shouldShowMerchantAccountError)?_c('div',{staticClass:\"merchantAccountError\"},[_c('p',[_vm._v(_vm._s(_vm.merchantAccountErrorText))])]):_vm._e()]},proxy:true}])})],1),_c('div',{staticClass:\"uk-width-1-4\"},[_c('CardComponent',{staticClass:\"card-component\",scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.couponTitle + \" \" + \"(\" + _vm.optional + \")\")+\" \")]},proxy:true},{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.couponDesc)+\" \"),_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.couponInfoBoxText))])]},proxy:true}])})]},proxy:true},{key:\"button\",fn:function(){return [_c('a',{staticClass:\"btn-primary\",attrs:{\"href\":_vm.STRIPE_CONST.URLS.coupons,\"target\":\"_blank\"}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.buttonCoupon)+\" \"),_c('i',[_c('img',{staticClass:\"smallerExernalLinkIcon\",attrs:{\"src\":require(\"@/assets/font-awesomes/external-link-alt.svg\"),\"alt\":\"\"}})])])])]},proxy:true},{key:\"error-message\",fn:function(){return [(_vm.shouldShowMerchantAccountError)?_c('div',{staticClass:\"merchantAccountError\"},[_c('p',[_vm._v(_vm._s(_vm.merchantAccountErrorText))])]):_vm._e()]},proxy:true}])})],1)]),_c('div',{class:_vm.isCustomPaymentEnabled ? 'uk-grid' : '',attrs:{\"uk-height-match\":\"target: > div > .card-component\"}},[(_vm.isCustomPaymentEnabled)?_c('div',{staticClass:\"uk-width-1-2\"},[_c('CardComponent',{staticClass:\"card-component\",attrs:{\"shouldExpandFullWidth\":true},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" Payment methods \")]},proxy:true},{key:\"subtitle\",fn:function(){return [_vm._v(\" Add a custom checkout option and customize its name and instructions and enrollment. \"),_c('ul',{staticStyle:{\"padding\":\"16px 0\"}},[_vm._l(([{label:'Card'}, {label:'eCheck (optional)', url: _vm.STRIPE_CONST.URLS.payment_methods}]),function(payment,index){return _c('li',{key:payment.label,staticStyle:{\"box-shadow\":\"0px 2px 8px 0px #00000040\",\"height\":\"56px\",\"width\":\"100%\",\"border-radius\":\"8px\",\"display\":\"flex\",\"justify-content\":\"space-between\",\"justify-self\":\"center\",\"align-items\":\"center\",\"padding\":\"0 24px\",\"margin\":\"8px 0\"}},[_c('span',{staticClass:\"payment-label\"},[_vm._v(_vm._s(payment.label))]),(payment.url)?_c('a',{staticClass:\"external-link\",attrs:{\"href\":payment.url,\"target\":\"_blank\"}},[_c('span',{staticClass:\"external-link-text\",staticStyle:{\"text-decoration\":\"underline\",\"margin-right\":\"8px\"}},[_vm._v(\"Configure\")]),_c('i',{staticClass:\"fas fa-external-link-alt\"})]):_vm._e()])}),(_vm.selectedCustomCheckoutOption)?_c('div',[_c('CustomCheckoutDetail',{key:_vm.selectedCustomCheckoutOption.name,attrs:{\"checkoutOption\":_vm.selectedCustomCheckoutOption},on:{\"OnStatusUpdated\":_vm.refreshCustomPayment,\"EditCustomCheckout\":_vm.showCustomCheckout}})],1):_vm._e()],2)]},proxy:true},(!_vm.selectedCustomCheckoutOption)?{key:\"button\",fn:function(){return [_c('div',{staticClass:\"uk-margin-large-bottom uk-width-1-1\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showCustomCheckoutSpinner),expression:\"showCustomCheckoutSpinner\"}],staticClass:\"uk-flex uk-flex-center uk-margin-top\",attrs:{\"uk-spinner\":\"ratio:2\"}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showCustomCheckoutSpinner),expression:\"!showCustomCheckoutSpinner\"}]},[(!_vm.selectedCustomCheckoutOption)?_c('div',[_c('a',{staticClass:\"add-fee-link\",attrs:{\"target\":\"_blank\"}},[_c('button',{on:{\"click\":_vm.showCustomCheckout}},[_c('span',[_c('i',{staticClass:\"fa-solid fa-plus uk-margin-small-right\"}),_c('span',{staticClass:\"fee-button-text\"},[_vm._v(\"Add custom checkout\")])])])])]):_vm._e()])])]},proxy:true}:null],null,true)})],1):_vm._e(),_c('div',{class:_vm.isCustomPaymentEnabled ? 'uk-width-1-2' : ''},[_c('CardComponent',{staticClass:\"card-component\",attrs:{\"shouldExpandFullWidth\":true},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.feeCardTitle)+\" \")]},proxy:true},{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.feeCardDesc)+\" \")]},proxy:true},{key:\"button\",fn:function(){return [_c('div',{staticClass:\"uk-margin-large-bottom uk-width-1-1\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.shouldDisplayCustomFeeSpinner),expression:\"shouldDisplayCustomFeeSpinner\"}],staticClass:\"uk-flex uk-flex-center uk-margin-top\",attrs:{\"uk-spinner\":\"ratio:2\"}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.shouldDisplayCustomFeeSpinner),expression:\"!shouldDisplayCustomFeeSpinner\"}]},[(!_vm.customFee)?_c('div',[_c('a',{staticClass:\"add-fee-link\",attrs:{\"target\":\"_blank\"}},[_c('button',{on:{\"click\":_vm.showCustomFeeForm}},[_c('span',[_c('i',{staticClass:\"fa-solid fa-plus uk-margin-small-right\"}),_c('span',{staticClass:\"fee-button-text\"},[_vm._v(_vm._s(_vm.addFeeButtonText))])])])])]):_c('div',[_c('FeeDetails',{on:{\"editCustomFee\":_vm.showCustomFeeForm}})],1)])])]},proxy:true}])})],1)]),(_vm.isAutomaticDiscountEnabled)?_c('div',[_c('CardComponent',{staticClass:\"card-component\",attrs:{\"shouldExpandFullWidth\":true},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_DISCOUNT_TITLE_OPTIONAL'))+\" \")]},proxy:true},{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_ADD_DISCOUNT_DESCRIPTION'))+\" \")]},proxy:true},{key:\"button\",fn:function(){return [(_vm.discountListComputed.length)?_c('DiscountTable',{on:{\"onEdit\":_vm.onEditDiscount,\"onDelete\":_vm.onDeleteDiscount}}):_vm._e(),_c('div',{staticClass:\"uk-width-1-1\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.shouldDisplayCustomFeeSpinner),expression:\"shouldDisplayCustomFeeSpinner\"}],staticClass:\"uk-flex uk-flex-center uk-margin-top\",attrs:{\"uk-spinner\":\"ratio:2\"}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.shouldDisplayCustomFeeSpinner),expression:\"!shouldDisplayCustomFeeSpinner\"}]},[(!_vm.automaticDiscount)?_c('div',[_c('a',{staticClass:\"add-fee-link\",attrs:{\"target\":\"_blank\"}},[(_vm.discountListComputed.length < 2)?_c('button',{on:{\"click\":_vm.showAutomaticDiscount}},[_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_ADD_DISCOUNT')))])])]):_vm._e()])]):_vm._e()])])]},proxy:true}],null,false,1779930876)})],1):_vm._e(),_c('CardComponent',{scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.reportingTitle)+\" \")]},proxy:true},{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.reportingDesc)),_c('br'),_c('br'),_vm._v(\" \"+_vm._s(_vm.reportingExample)+\" \")]},proxy:true},{key:\"button\",fn:function(){return [_c('a',{staticClass:\"btn-primary\",attrs:{\"href\":_vm.STRIPE_CONST.URLS.reports_link,\"target\":\"_blank\"}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.buttonDisplayReports)+\" \"),_c('i',[_c('img',{staticClass:\"smallerExernalLinkIcon\",attrs:{\"src\":require(\"@/assets/font-awesomes/external-link-alt.svg\"),\"alt\":\"\"}})])])])]},proxy:true},{key:\"error-message\",fn:function(){return [(_vm.shouldShowMerchantAccountError)?_c('div',{staticClass:\"merchantAccountError\"},[_c('p',[_vm._v(_vm._s(_vm.merchantAccountErrorText))])]):_vm._e()]},proxy:true}])})]],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default class STRIPE_CONSTANTS {\n public static readonly URLS = {\n 'settings': 'https://dashboard.stripe.com/',\n 'reports_link': 'https://dashboard.stripe.com/reports/hub',\n 'payouts': 'https://dashboard.stripe.com/settings/payouts',\n 'tax_rate': 'https://dashboard.stripe.com/tax-rates',\n 'coupons': 'https://dashboard.stripe.com/coupons',\n 'payment_methods': 'https://dashboard.stripe.com/settings/payment_methods'\n };\n}","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 EmptyStateContainer from '@/commoncomponents/EmptyStateContainer.vue';\nimport { ScreenText } from '@/lang/ScreenText';\nimport { Component, Vue } from 'vue-property-decorator';\nimport payments from '@/store/modules/Payments/module';\nimport APP_UTILITIES from '@/utilities/commonFunctions';\nimport BouncingPreloader from '@/commoncomponents/bouncingpreloadercomponent/BouncingPreloaderComponent.vue';\nimport { ConvenienceFeeGetResponse, CustomCheckoutOption, Discount, OnboardingStatus } from '@/Model/payments/types';\nimport CardComponent from '@/commoncomponents/CardComponent.vue';\nimport ProgressButton from '@/commoncomponents/progressButton/progressButton.vue';\nimport STRIPE_CONSTANTS from '@/constants/StripeConst';\nimport StorePolicyControls from '@/components/accountDetailsComponent/accountDataTabs/payments/StorePolicyControls.vue';\nimport NotificationBox from '@/commoncomponents/NotificationBox.vue';\nimport CustomizeFee from '@/components/accountDetailsComponent/accountDataTabs/payments/CustomizeFee.vue';\nimport FeeDetails from '@/components/accountDetailsComponent/accountDataTabs/payments/FeeDetails.vue';\nimport CustomCheckoutDetail from '@/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckoutDetail.vue';\nimport DiscountConfiguration from '@/components/accountDetailsComponent/accountDataTabs/payments/DiscountConfiguration.vue';\nimport CustomCheckout from '@/components/accountDetailsComponent/accountDataTabs/payments/CustomCheckout.vue';\nimport { getCustomCheckoutOptionList } from '@/services/payments/api';\nimport { ToastType } from '@/Model/toastType';\nimport APP_CONST from '@/constants/AppConst';\nimport DiscountTable from '@/components/accountDetailsComponent/accountDataTabs/payments/DiscountTable.vue';\nimport paymentsModule from '@/store/modules/Payments/module';\n\n@Component({\n components: {\n BouncingPreloader,\n CardComponent,\n EmptyStateContainer,\n NotificationBox,\n ProgressButton,\n StorePolicyControls,\n CustomizeFee,\n FeeDetails,\n CustomCheckout,\n CustomCheckoutDetail,\n DiscountConfiguration,\n DiscountTable\n }\n})\n\nexport default class Payments extends Vue {\n\n isValidForProgressButton = true;\n private readonly screenText = new ScreenText();\n public STRIPE_CONST = STRIPE_CONSTANTS;\n isCustomizeFeeVisible = false;\n isCustomCheckoutVisible = false;\n isLoadingCustomCheckouts = false;\n selectedCustomCheckoutOption: CustomCheckoutOption | null = null;\n showCustomCheckoutSpinner = false;\n isCustomPaymentEnabled = false;\n isAutomaticDiscountEnabled = false;\n isAutomaticDiscountVisible = false;\n\n showCustomFeeForm() {\n this.isCustomizeFeeVisible = true;\n }\n\n showCustomCheckout() {\n this.isCustomCheckoutVisible = true;\n }\n\n showAutomaticDiscount() {\n this.isAutomaticDiscountVisible = true;\n paymentsModule.setIsConfiguratioDiscountMenuOpen(true);\n }\n\n get discountListComputed() {\n return paymentsModule.discountList;\n }\n\n get isConfigurationDiscountMenuOpenComputed() {\n return paymentsModule.isConfigurationDiscountMenuOpen;\n }\n\n get discounts():Discount[] {\n return APP_CONST.MOCKED_DISCOUNTS;\n }\n\n get merchantAccountSetupTitle(): string {\n return payments.stripeAccountResponse && payments.stripeAccountResponse.onboardingStatus === OnboardingStatus.InProgress\n ? this.screenText.getScreenText('PAYMENTS_MERCHANT_ACCOUNT_SETUP_CONTINUE_TITLE')\n : this.screenText.getScreenText('PAYMENTS_MERCHANT_ACCOUNT_SETUP_START_TITLE');\n }\n\n get merchantAccountSetupSubtitle(): string {\n return payments.stripeAccountResponse && payments.stripeAccountResponse.onboardingStatus === OnboardingStatus.InProgress\n ? this.screenText.getScreenText('PAYMENTS_MERCHANT_ACCOUNT_SETUP_CONTINUE_SUBTITLE')\n : this.screenText.getScreenText('PAYMENTS_MERCHANT_ACCOUNT_SETUP_START_SUBTITLE');\n }\n\n get merchantAccountSetupButtonText(): string {\n return payments.stripeAccountResponse && payments.stripeAccountResponse.onboardingStatus === OnboardingStatus.InProgress\n ? this.screenText.getScreenText('PAYMENTS_MERCHANT_ACCOUNT_SETUP_CONTINUE_BUTTON_TEXT')\n : this.screenText.getScreenText('PAYMENTS_MERCHANT_ACCOUNT_SETUP_START_BUTTON_TEXT');\n }\n\n get customFee(): ConvenienceFeeGetResponse | null {\n return payments.customFee;\n }\n\n // TODO: replace with proper data from automatic discount\n get automaticDiscount(): any {\n return false;\n }\n\n onEditDiscount() {\n console.log('edit');\n }\n\n onDeleteDiscount() {\n console.log('delete');\n }\n\n get merchantAccountRetryButtonText(): string {\n return this.screenText.getScreenText('PAYMENTS_MERCHANT_ACCOUNT_SETUP_RETRY_BUTTON_TEXT');\n }\n\n get merchantAccountErrorText(): string {\n return this.screenText.getScreenText('PAYMENTS_MERCHANT_ACCOUNT_UNAVAILABLE');\n }\n\n get continueMerchantSetupTitle(): string {\n return this.screenText.getScreenText('CONTINUE_MERCHANT_ACCOUNT_SETUP');\n }\n\n get finishEcommerceAccountSetupSub(): string {\n return this.screenText.getScreenText('FINISH_YOUR_ECOMMERCE_ACCOUNT_SETUP');\n }\n\n get manageOnlinePaymentSettingsTitle(): string {\n return this.screenText.getScreenText('MANAGE_ONLINE_PAYMENT_SETTINGS');\n }\n\n get manageSettingsDesc(): string {\n return this.screenText.getScreenText('MANAGE_SETTINGS_DESC');\n }\n\n get buttonDisplaySettings(): string {\n return this.screenText.getScreenText('BTN_SETTINGS');\n }\n\n get payoutTitle(): string {\n return this.screenText.getScreenText('PAYOUT');\n }\n\n get payoutDesc(): string {\n return this.screenText.getScreenText('PAYOUT_DESC');\n }\n\n get buttonPayout(): string {\n return this.screenText.getScreenText('BTN_PAYOUT');\n }\n\n get policyTitle(): string {\n return this.screenText.getScreenText('POLICY');\n }\n\n get policyDesc(): string {\n return this.screenText.getScreenText('POLICY_DESC');\n }\n\n get taxTitle(): string {\n return this.screenText.getScreenText('TAX');\n }\n\n get optional(): string {\n return this.screenText.getScreenText('OPTIONAL');\n }\n\n get taxDesc(): string {\n return this.screenText.getScreenText('TAX_DESC');\n }\n\n get buttonTax(): string {\n return this.screenText.getScreenText('BTN_TAX');\n }\n\n get couponTitle(): string {\n return this.screenText.getScreenText('COUPON');\n }\n\n get couponDesc(): string {\n return this.screenText.getScreenText('COUPON_DESC');\n }\n\n get couponInfoBoxText(): string {\n return this.screenText.getScreenText('COUPON_INFO');\n }\n\n get buttonCoupon(): string {\n return this.screenText.getScreenText('BTN_COUPON');\n }\n\n get feeCardTitle(): string {\n return this.screenText.getScreenText('FEE_CARD_TITLE');\n }\n\n get feeCardDesc(): string {\n return this.screenText.getScreenText('FEE_CARD_DESC');\n }\n\n get addFeeButtonText(): string {\n return this.screenText.getScreenText('BTN_ADD_FEE');\n }\n\n get reportingTitle(): string {\n return this.screenText.getScreenText('REPORTING_TITLE');\n }\n\n get reportingDesc(): string {\n return this.screenText.getScreenText('REPORTING_DESC');\n }\n\n get reportingExample(): string {\n return this.screenText.getScreenText('REPORTING_EXAMPLE');\n }\n\n get buttonDisplayReports(): string {\n return this.screenText.getScreenText('BTN_REPORTS');\n }\n\n get isCurrentlyLoading(): boolean {\n return payments.isFetchingOnboardingStatus;\n }\n\n get shouldShowMerchantAccountError(): boolean {\n return payments.didOnboardingLinkFetchFail || payments.didOnboardingStatusFetchFail;\n }\n\n get hasOnBoardingCompleted(): boolean {\n if (payments.stripeAccountResponse) {\n return payments.stripeAccountResponse.onboardingStatus === OnboardingStatus.Completed;\n }\n return false;\n }\n\n get shouldDisplayCustomFeeSpinner(): boolean {\n return payments.isLoadingCustomFee || payments.isSavingCustomFee;\n }\n\n // TODO: return proper data related to the automatic discount loading progress\n get shouldDisplayAutomaticDiscountSpinner(): boolean {\n return false;\n }\n\n get accountId(): number {\n const accountIdCookie = APP_UTILITIES.getCookie('accountId');\n const accountId = accountIdCookie\n ? Number.parseInt(accountIdCookie)\n : 0;\n return accountId;\n }\n\n translateLoadingToProgressButtonState(): number {\n let buttonState = 0;\n\n if (payments.isFetchingOnboardingLink === false && payments.didOnboardingLinkFetchFail === false) {\n buttonState = 200;\n }\n else if (payments.isFetchingOnboardingLink === false && payments.didOnboardingLinkFetchFail) {\n buttonState = 400;\n }\n return buttonState;\n }\n\n async created() {\n const customPaymentFlag = await APP_UTILITIES.getFeatureFlag(APP_CONST.FEATURE_KEYS.customPayments);\n const automaticDiscountFlag = await APP_UTILITIES.getFeatureFlag(APP_CONST.FEATURE_KEYS.automaticDiscounts);\n this.isCustomPaymentEnabled = customPaymentFlag;\n this.isAutomaticDiscountEnabled = automaticDiscountFlag;\n if(this.isCustomPaymentEnabled){\n this.getCustomCheckoutMethods();\n }\n payments.resetOnboardingState();\n this.retrieveOnboardingStatusAndFee();\n this.STRIPE_CONST = STRIPE_CONSTANTS;\n\n }\n\n async refreshOnSaveCustomPayment() {\n const result = await getCustomCheckoutOptionList(this.accountId);\n this.selectedCustomCheckoutOption = result.data[0];\n // because of the current setup on the app the reactivity on the child components is not behaving as expected so we need to trigger the rerender manually\n this.$forceUpdate();\n this.isCustomCheckoutVisible = false;\n }\n\n async refreshCustomPayment() {\n const result = await getCustomCheckoutOptionList(this.accountId);\n this.selectedCustomCheckoutOption = result.data[0];\n // because of the current setup on the app the reactivity on the child components is not behaving as expected so we need to trigger the rerender manually\n this.$forceUpdate();\n }\n\n\n async getCustomCheckoutMethods() {\n try {\n this.isLoadingCustomCheckouts = true;\n const result = await getCustomCheckoutOptionList(this.accountId);\n this.selectedCustomCheckoutOption = result.data[0];\n }\n catch {\n APP_UTILITIES.showToastMessage('Unexpected Error!', ToastType.Error);\n }\n finally {\n this.isLoadingCustomCheckouts = false;\n }\n }\n\n async retrieveOnboardingStatusAndFee() {\n await payments.getOnboardingStatus(this.accountId);\n if (this.hasOnBoardingCompleted) {\n payments.retrieveCustomFee();\n }\n }\n\n async retrieveOnboardingLink() {\n\n this.isValidForProgressButton = false;\n\n const onboardingUrl = await payments.getOnboardingLink(this.accountId);\n if (onboardingUrl) {\n window.location.href = onboardingUrl;\n }\n\n this.isValidForProgressButton = true;\n }\n\n navigateTo(link: string) {\n const route = STRIPE_CONSTANTS.URLS[link as keyof STRIPE_CONSTANTS];\n window.location.assign(route);\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!./Payments.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!./Payments.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Payments.vue?vue&type=template&id=61b257fe&scoped=true&\"\nimport script from \"./Payments.vue?vue&type=script&lang=ts&\"\nexport * from \"./Payments.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Payments.vue?vue&type=style&index=0&id=61b257fe&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 \"61b257fe\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"uk-flex uk-padding-small notification-box\",class:_vm.typeStyleClass,attrs:{\"data-testid\":\"notification-box\"}},[_vm._t(\"icon\"),_vm._t(\"message\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\nimport { NotificationBoxType } from '@/Model/notificationBox/types';\nimport { Component, Prop, Vue } from 'vue-property-decorator';\n\n@Component({})\nexport default class ToggleSwitch extends Vue {\n @Prop({ type: String, default: NotificationBoxType.Info }) type!: NotificationBoxType;\n\n get typeStyleClass(): string {\n return `notification-box-${this.type.toLocaleLowerCase()}`;\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationBox.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationBox.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NotificationBox.vue?vue&type=template&id=3ed18dc4&scoped=true&\"\nimport script from \"./NotificationBox.vue?vue&type=script&lang=ts&\"\nexport * from \"./NotificationBox.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./NotificationBox.vue?vue&type=style&index=0&id=3ed18dc4&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3ed18dc4\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiParticipantRules.vue?vue&type=style&index=0&id=1fce4717&lang=less&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationBox.vue?vue&type=style&index=0&id=3ed18dc4&lang=less&scoped=true&\"","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=60a4124e&lang=less&scoped=true&\"","/**\n * Vue Currency Input 1.22.6\n * (c) 2018-2021 Matthias Stiller\n * @license MIT\n */\nvar escapeRegExp = function (str) { return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'); };\nvar removeLeadingZeros = function (str) { return str.replace(/^0+(0$|[^0])/, '$1'); };\nvar count = function (str, search) { return (str.match(new RegExp(escapeRegExp(search), 'g')) || []).length; };\nvar startsWith = function (str, search) { return str.substring(0, search.length) === search; };\nvar substringBefore = function (str, search) { return str.substring(0, str.indexOf(search)); };\n\nvar DECIMAL_SYMBOLS = [',', '.', 'Ù«'];\nvar INTEGER_PATTERN = '(0|[1-9]\\\\d*)';\nvar NumberFormat = function NumberFormat (options) {\n var currency = options.currency;\n var locale = options.locale;\n var precision = options.precision;\n var autoDecimalMode = options.autoDecimalMode;\n var valueAsInteger = options.valueAsInteger;\n var numberFormat = new Intl.NumberFormat(locale, typeof currency === 'string' ? { currency: currency, style: 'currency' } : { minimumFractionDigits: 1 });\n var ps = numberFormat.format(123456);\n this.locale = locale;\n this.currency = currency;\n this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map(function (i) { return i.toLocaleString(locale); });\n this.decimalSymbol = count(ps, this.digits[0]) ? ps.substr(ps.indexOf(this.digits[6]) + 1, 1) : undefined;\n this.groupingSymbol = ps.substr(ps.indexOf(this.digits[3]) + 1, 1);\n this.minusSymbol = substringBefore(Number(-1).toLocaleString(locale), this.digits[1]);\n if (this.decimalSymbol === undefined) {\n this.minimumFractionDigits = this.maximumFractionDigits = 0;\n } else if (typeof precision === 'number') {\n this.minimumFractionDigits = this.maximumFractionDigits = precision;\n } else if (typeof precision === 'object' && !autoDecimalMode && !valueAsInteger) {\n this.minimumFractionDigits = precision.min || 0;\n this.maximumFractionDigits = precision.max !== undefined ? precision.max : 20;\n } else if (typeof currency === 'string') {\n this.minimumFractionDigits = numberFormat.resolvedOptions().minimumFractionDigits;\n this.maximumFractionDigits = numberFormat.resolvedOptions().maximumFractionDigits;\n } else {\n this.minimumFractionDigits = this.maximumFractionDigits = 2;\n }\n if (typeof currency === 'string') {\n this.prefix = substringBefore(ps, this.digits[1]);\n this.negativePrefix = substringBefore(numberFormat.format(-1), this.digits[1]);\n this.suffix = ps.substring(ps.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[6]) + 1);\n } else {\n this.prefix = (currency || {}).prefix || '';\n this.negativePrefix = \"\" + (this.minusSymbol) + (this.prefix);\n this.suffix = (currency || {}).suffix || '';\n }\n};\nNumberFormat.prototype.parse = function parse (str, valueAsInteger) {\n if ( valueAsInteger === void 0 ) valueAsInteger = false;\n if (str) {\n var negative = this.isNegative(str);\n str = this.normalizeDigits(str);\n str = this.stripCurrencySymbol(str);\n str = this.stripMinusSymbol(str);\n var fraction = this.decimalSymbol ? (\"(?:\" + (escapeRegExp(this.decimalSymbol)) + \"(\\\\d*))?\") : '';\n var match = this.stripGroupingSymbol(str).match(new RegExp((\"^\" + INTEGER_PATTERN + fraction + \"$\")));\n if (match && this.isValidIntegerFormat(str.split(this.decimalSymbol)[0], Number(match[1]))) {\n var number = Number((\"\" + (negative ? '-' : '') + (match[1]) + \".\" + ((match[2] || ''))));\n return valueAsInteger ? Number(number.toFixed(this.maximumFractionDigits).split('.').join('')) : number\n }\n }\n return null\n};\nNumberFormat.prototype.isValidIntegerFormat = function isValidIntegerFormat (str, integerNumber) {\n var options = typeof this.currency === 'string'\n ? { style: 'currency', currency: this.currency, minimumFractionDigits: 0 }\n : {};\n return [\n this.stripCurrencySymbol(this.normalizeDigits(integerNumber.toLocaleString(this.locale, Object.assign({}, options, {useGrouping: true})))),\n this.stripCurrencySymbol(this.normalizeDigits(integerNumber.toLocaleString(this.locale, Object.assign({}, options, {useGrouping: false}))))\n ].includes(str)\n};\nNumberFormat.prototype.format = function format (number, options) {\n if ( options === void 0 ) options = {\n minimumFractionDigits: this.minimumFractionDigits,\n maximumFractionDigits: this.maximumFractionDigits\n};\n if (typeof this.currency === 'string') {\n return number.toLocaleString(this.locale, Object.assign({}, {style: 'currency',\n currency: this.currency},\n options))\n } else {\n return this.insertCurrencySymbol(Math.abs(number).toLocaleString(this.locale, options), number < 0 || (number === 0 && (1 / number < 0)))\n }\n};\nNumberFormat.prototype.toFraction = function toFraction (str) {\n return (\"\" + (this.digits[0]) + (this.decimalSymbol) + ((this.onlyLocaleDigits(str.substr(1)).substr(0, this.maximumFractionDigits))))\n};\nNumberFormat.prototype.isFractionIncomplete = function isFractionIncomplete (str) {\n return !!this.normalizeDigits(this.stripGroupingSymbol(str)).match(new RegExp((\"^\" + INTEGER_PATTERN + (escapeRegExp(this.decimalSymbol)) + \"$\")))\n};\nNumberFormat.prototype.isNegative = function isNegative (str) {\n return startsWith(str, this.negativePrefix) || startsWith(str.replace('-', this.minusSymbol), this.minusSymbol)\n};\nNumberFormat.prototype.insertCurrencySymbol = function insertCurrencySymbol (str, negative) {\n return (\"\" + (negative ? this.negativePrefix : this.prefix) + str + (this.suffix))\n};\nNumberFormat.prototype.stripGroupingSymbol = function stripGroupingSymbol (str) {\n return str.replace(new RegExp(escapeRegExp(this.groupingSymbol), 'g'), '')\n};\nNumberFormat.prototype.stripMinusSymbol = function stripMinusSymbol (str) {\n return str.replace('-', this.minusSymbol).replace(this.minusSymbol, '')\n};\nNumberFormat.prototype.stripCurrencySymbol = function stripCurrencySymbol (str) {\n return str.replace(this.negativePrefix, '').replace(this.prefix, '').replace(this.suffix, '')\n};\nNumberFormat.prototype.normalizeDecimalSymbol = function normalizeDecimalSymbol (str, from) {\n var this$1 = this;\n DECIMAL_SYMBOLS.forEach(function (s) {\n str = str.substr(0, from) + str.substr(from).replace(s, this$1.decimalSymbol);\n });\n return str\n};\nNumberFormat.prototype.normalizeDigits = function normalizeDigits (str) {\n if (this.digits[0] !== '0') {\n this.digits.forEach(function (digit, index) {\n str = str.replace(new RegExp(digit, 'g'), index);\n });\n }\n return str\n};\nNumberFormat.prototype.onlyDigits = function onlyDigits (str) {\n return this.normalizeDigits(str).replace(/\\D+/g, '')\n};\nNumberFormat.prototype.onlyLocaleDigits = function onlyLocaleDigits (str) {\n return str.replace(new RegExp((\"[^\" + (this.digits.join('')) + \"]*\"), 'g'), '')\n};\n\nvar DEFAULT_OPTIONS = {\n locale: undefined,\n currency: 'EUR',\n valueAsInteger: false,\n distractionFree: true,\n precision: undefined,\n autoDecimalMode: false,\n valueRange: undefined,\n allowNegative: true\n};\nvar parse = function (formattedValue, options) {\n var mergedOptions = Object.assign({}, DEFAULT_OPTIONS, options);\n return new NumberFormat(mergedOptions).parse(formattedValue, mergedOptions.valueAsInteger)\n};\nvar getValue = function (ref) { return (ref.$el || ref).$ci.getValue(); };\nvar setValue = function (ref, value) {\n (ref.$el || ref).$ci.setValue(value);\n};\n\nvar equal = function (a, b) {\n if (a === b) {\n return true\n }\n if (!a || !b || typeof a !== 'object' || typeof b !== 'object') {\n return false\n }\n var keys = Object.keys(a);\n if (keys.length !== Object.keys(b).length) {\n return false\n }\n if (!keys.every(Object.prototype.hasOwnProperty.bind(b))) {\n return false\n }\n return keys.every(function (key) { return equal(a[key], b[key]); })\n};\n\nvar DefaultNumberMask = function DefaultNumberMask (numberFormat) {\n this.numberFormat = numberFormat;\n};\nDefaultNumberMask.prototype.conformToMask = function conformToMask (str, previousConformedValue) {\n var this$1 = this;\n if ( previousConformedValue === void 0 ) previousConformedValue = '';\n var negative = this.numberFormat.isNegative(str);\n var checkIncompleteValue = function (str) {\n if (str === '' && negative && previousConformedValue !== this$1.numberFormat.negativePrefix) {\n return ''\n } else if (this$1.numberFormat.maximumFractionDigits > 0) {\n if (this$1.numberFormat.isFractionIncomplete(str)) {\n return str\n } else if (startsWith(str, this$1.numberFormat.decimalSymbol)) {\n return this$1.numberFormat.toFraction(str)\n }\n }\n return null\n };\n var value = str;\n value = this.numberFormat.stripCurrencySymbol(value);\n value = this.numberFormat.stripMinusSymbol(value);\n var incompleteValue = checkIncompleteValue(value);\n if (incompleteValue != null) {\n return this.numberFormat.insertCurrencySymbol(incompleteValue, negative)\n }\n var ref = value.split(this.numberFormat.decimalSymbol);\n var integer = ref[0];\n var fraction = ref.slice(1);\n var integerDigits = removeLeadingZeros(this.numberFormat.onlyDigits(integer));\n var fractionDigits = this.numberFormat.onlyDigits(fraction.join('')).substr(0, this.numberFormat.maximumFractionDigits);\n var invalidFraction = fraction.length > 0 && fractionDigits.length === 0;\n var invalidNegativeValue = integerDigits === '' && negative && (previousConformedValue === str.slice(0, -1) || previousConformedValue !== this.numberFormat.negativePrefix);\n if (invalidFraction || invalidNegativeValue) {\n return previousConformedValue\n } else if (integerDigits.match(/\\d+/)) {\n return {\n numberValue: Number((\"\" + (negative ? '-' : '') + integerDigits + \".\" + fractionDigits)),\n fractionDigits: fractionDigits\n }\n } else {\n return ''\n }\n};\nvar AutoDecimalModeNumberMask = function AutoDecimalModeNumberMask (numberFormat) {\n this.numberFormat = numberFormat;\n};\nAutoDecimalModeNumberMask.prototype.conformToMask = function conformToMask (str) {\n if (str === '') {\n return ''\n }\n var negative = this.numberFormat.isNegative(str);\n var numberValue = this.numberFormat.stripMinusSymbol(str) === ''\n ? -0\n : Number((\"\" + (negative ? '-' : '') + (removeLeadingZeros(this.numberFormat.onlyDigits(str))))) / Math.pow(10, this.numberFormat.minimumFractionDigits);\n return {\n numberValue: numberValue,\n fractionDigits: numberValue.toFixed(this.numberFormat.minimumFractionDigits).slice(-this.numberFormat.minimumFractionDigits)\n }\n};\n\nvar getCaretPositionAfterFormat = function (newValue, inputtedValue, caretPosition, numberFormat, options) {\n var prefix = numberFormat.prefix;\n var suffix = numberFormat.suffix;\n var decimalSymbol = numberFormat.decimalSymbol;\n var maximumFractionDigits = numberFormat.maximumFractionDigits;\n var groupingSymbol = numberFormat.groupingSymbol;\n var decimalSymbolPosition = inputtedValue.indexOf(decimalSymbol) + 1;\n var caretPositionFromLeft = inputtedValue.length - caretPosition;\n if (Math.abs(newValue.length - inputtedValue.length) > 1 && caretPosition <= decimalSymbolPosition) {\n return newValue.indexOf(decimalSymbol) + 1\n } else if (newValue.substr(caretPosition, 1) === groupingSymbol && count(newValue, groupingSymbol) === count(inputtedValue, groupingSymbol) + 1) {\n return newValue.length - caretPositionFromLeft - 1\n } else {\n if (!options.autoDecimalMode && decimalSymbolPosition !== 0 && caretPosition > decimalSymbolPosition) {\n if (numberFormat.onlyDigits(inputtedValue.substr(decimalSymbolPosition)).length - 1 === maximumFractionDigits) {\n caretPositionFromLeft -= 1;\n }\n }\n return options.distractionFree.hideCurrencySymbol\n ? newValue.length - caretPositionFromLeft\n : Math.max(newValue.length - Math.max(caretPositionFromLeft, suffix.length), prefix.length === 0 ? 0 : prefix.length + 1)\n }\n};\nvar getDistractionFreeCaretPosition = function (numberFormat, options, value, caretPosition) {\n var result = caretPosition;\n if (options.distractionFree.hideCurrencySymbol) {\n result -= numberFormat.prefix.length;\n }\n if (options.distractionFree.hideGroupingSymbol) {\n result -= count(value.substring(0, caretPosition), numberFormat.groupingSymbol);\n }\n return Math.max(0, result)\n};\n\nvar MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;\nvar NumberInput = function NumberInput (el, options, callbackFns) {\n this.el = el;\n this.callbackFns = callbackFns;\n this.numberValue = null;\n this.addEventListener();\n this.init(options);\n this.setValue(this.currencyFormat.parse(this.el.value));\n};\nNumberInput.prototype.init = function init (newOptions) {\n var options = Object.assign({}, newOptions);\n var distractionFree = options.distractionFree;\n var autoDecimalMode = options.autoDecimalMode;\n var valueRange = options.valueRange;\n if (typeof distractionFree === 'boolean') {\n options.distractionFree = {\n hideCurrencySymbol: distractionFree,\n hideNegligibleDecimalDigits: distractionFree,\n hideGroupingSymbol: distractionFree\n };\n }\n if (valueRange) {\n options.valueRange = {\n min: valueRange.min !== undefined ? Math.max(valueRange.min, -MAX_SAFE_INTEGER) : -MAX_SAFE_INTEGER,\n max: valueRange.max !== undefined ? Math.min(valueRange.max, MAX_SAFE_INTEGER) : MAX_SAFE_INTEGER\n };\n } else {\n options.valueRange = {\n min: -MAX_SAFE_INTEGER,\n max: MAX_SAFE_INTEGER\n };\n }\n if (autoDecimalMode) {\n options.distractionFree.hideNegligibleDecimalDigits = false;\n this.el.setAttribute('inputmode', 'numeric');\n } else {\n this.el.setAttribute('inputmode', 'decimal');\n }\n this.options = options;\n this.currencyFormat = new NumberFormat(this.options);\n this.numberMask = options.autoDecimalMode ? new AutoDecimalModeNumberMask(this.currencyFormat) : new DefaultNumberMask(this.currencyFormat);\n};\nNumberInput.prototype.setOptions = function setOptions (options) {\n this.init(options);\n this.applyFixedFractionFormat(this.numberValue, true);\n};\nNumberInput.prototype.applyFixedFractionFormat = function applyFixedFractionFormat (number, forcedChange) {\n this.format(number != null ? this.currencyFormat.format(this.validateValueRange(number)) : null);\n if (number !== this.numberValue || forcedChange) {\n this.callbackFns.onChange(this.getValue());\n }\n};\nNumberInput.prototype.getValue = function getValue () {\n return this.currencyFormat.parse(this.formattedValue, this.options.valueAsInteger)\n};\nNumberInput.prototype.setValue = function setValue (value) {\n var newValue = this.options.valueAsInteger && value != null ? value / Math.pow(10, this.currencyFormat.maximumFractionDigits) : value;\n if (newValue !== this.numberValue) {\n this.applyFixedFractionFormat(newValue);\n }\n};\nNumberInput.prototype.validateValueRange = function validateValueRange (value) {\n var ref = this.options.valueRange;\n var min = ref.min;\n var max = ref.max;\n return Math.min(Math.max(value, min), max)\n};\nNumberInput.prototype.updateInputValue = function updateInputValue (value, hideNegligibleDecimalDigits) {\n if ( hideNegligibleDecimalDigits === void 0 ) hideNegligibleDecimalDigits = false;\n if (value != null) {\n if (this.decimalSymbolInsertedAt !== undefined) {\n value = this.currencyFormat.normalizeDecimalSymbol(value, this.decimalSymbolInsertedAt);\n this.decimalSymbolInsertedAt = undefined;\n }\n var conformedValue = this.numberMask.conformToMask(value, this.formattedValue);\n var formattedValue;\n if (typeof conformedValue === 'object') {\n var numberValue = conformedValue.numberValue;\n var fractionDigits = conformedValue.fractionDigits;\n var ref = this.currencyFormat;\n var maximumFractionDigits = ref.maximumFractionDigits;\n var minimumFractionDigits = ref.minimumFractionDigits;\n if (this.focus) {\n minimumFractionDigits = maximumFractionDigits;\n }\n minimumFractionDigits = hideNegligibleDecimalDigits\n ? fractionDigits.replace(/0+$/, '').length\n : Math.min(minimumFractionDigits, fractionDigits.length);\n formattedValue = numberValue > MAX_SAFE_INTEGER\n ? this.formattedValue\n : this.currencyFormat.format(numberValue, {\n useGrouping: !(this.focus && this.options.distractionFree.hideGroupingSymbol),\n minimumFractionDigits: minimumFractionDigits,\n maximumFractionDigits: maximumFractionDigits\n });\n } else {\n formattedValue = conformedValue;\n }\n if (!this.options.allowNegative) {\n formattedValue = formattedValue.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix);\n }\n if (this.focus && this.options.distractionFree.hideCurrencySymbol) {\n formattedValue = formattedValue\n .replace(this.currencyFormat.negativePrefix, this.currencyFormat.minusSymbol)\n .replace(this.currencyFormat.prefix, '')\n .replace(this.currencyFormat.suffix, '');\n }\n this.el.value = formattedValue;\n this.numberValue = this.currencyFormat.parse(formattedValue);\n } else {\n this.el.value = this.numberValue = null;\n }\n this.formattedValue = this.el.value;\n};\nNumberInput.prototype.format = function format (value) {\n this.updateInputValue(value);\n this.callbackFns.onInput(this.getValue());\n};\nNumberInput.prototype.addEventListener = function addEventListener () {\n var this$1 = this;\n this.el.addEventListener('input', function () {\n var ref = this$1.el;\n var value = ref.value;\n var selectionStart = ref.selectionStart;\n this$1.format(value);\n if (this$1.focus) {\n this$1.setCaretPosition(getCaretPositionAfterFormat(this$1.formattedValue, value, selectionStart, this$1.currencyFormat, this$1.options));\n }\n }, { capture: true });\n this.el.addEventListener('focus', function () {\n this$1.focus = true;\n var ref = this$1.options.distractionFree;\n var hideCurrencySymbol = ref.hideCurrencySymbol;\n var hideGroupingSymbol = ref.hideGroupingSymbol;\n var hideNegligibleDecimalDigits = ref.hideNegligibleDecimalDigits;\n if (hideCurrencySymbol || hideGroupingSymbol || hideNegligibleDecimalDigits) {\n setTimeout(function () {\n var ref = this$1.el;\n var value = ref.value;\n var selectionStart = ref.selectionStart;\n var selectionEnd = ref.selectionEnd;\n if (value) {\n this$1.updateInputValue(this$1.el.value, hideNegligibleDecimalDigits);\n }\n if (Math.abs(selectionStart - selectionEnd) > 0) {\n this$1.setCaretPosition(0, this$1.el.value.length);\n } else {\n this$1.setCaretPosition(getDistractionFreeCaretPosition(this$1.currencyFormat, this$1.options, value, selectionStart));\n }\n });\n }\n });\n this.el.addEventListener('keypress', function (e) {\n if (DECIMAL_SYMBOLS.includes(e.key)) {\n this$1.decimalSymbolInsertedAt = this$1.el.selectionStart;\n }\n });\n this.el.addEventListener('blur', function () {\n this$1.focus = false;\n if (this$1.numberValue != null) {\n this$1.applyFixedFractionFormat(this$1.numberValue);\n }\n });\n this.el.addEventListener('change', function () {\n this$1.callbackFns.onChange(this$1.getValue());\n });\n};\nNumberInput.prototype.setCaretPosition = function setCaretPosition (start, end) {\n if ( end === void 0 ) end = start;\n this.el.setSelectionRange(start, end); };\n\nvar directive = {\n bind: function bind (el, ref, vnode) {\n var optionsFromBinding = ref.value;\n var inputElement = el.tagName.toLowerCase() === 'input' ? el : el.querySelector('input');\n if (!inputElement) {\n throw new Error('No input element found')\n }\n var options = Object.assign({}, DEFAULT_OPTIONS,\n (vnode.context.$ci || {}).globalOptions,\n optionsFromBinding);\n var listeners = (vnode.data && vnode.data.on) || (vnode.componentOptions && vnode.componentOptions.listeners) || {};\n var emit = function (event, data) {\n if (listeners[event]) {\n listeners[event](vnode.componentOptions ? data : { target: { value: data } });\n }\n };\n el.$ci = new NumberInput(inputElement, options, {\n onChange: function () { emit('change', inputElement.value); },\n onInput: function () { emit('input', inputElement.value); }\n });\n },\n componentUpdated: function componentUpdated (el, ref) {\n var value = ref.value;\n var oldValue = ref.oldValue;\n if (!equal(value, oldValue)) {\n el.$ci.setOptions(value);\n }\n }\n};\n\nvar component = {\n render: function render (h) {\n var this$1 = this;\n return h('input', {\n directives: [{\n name: 'currency',\n value: this.options\n }],\n on: Object.assign({}, this.$listeners,\n {change: function () {\n this$1.$emit('change', getValue(this$1.$el));\n },\n input: function () {\n var numberValue = getValue(this$1.$el);\n if (this$1.value !== numberValue) {\n this$1.$emit('input', numberValue);\n }\n }})\n })\n },\n directives: {\n currency: directive\n },\n name: 'CurrencyInput',\n props: {\n value: {\n type: Number,\n default: null\n },\n locale: {\n type: String,\n default: undefined\n },\n currency: {\n type: [String, Object],\n default: undefined\n },\n distractionFree: {\n type: [Boolean, Object],\n default: undefined\n },\n precision: {\n type: [Number, Object],\n default: undefined\n },\n autoDecimalMode: {\n type: Boolean,\n default: undefined\n },\n valueAsInteger: {\n type: Boolean,\n default: undefined\n },\n valueRange: {\n type: Object,\n default: undefined\n },\n allowNegative: {\n type: Boolean,\n default: undefined\n }\n },\n mounted: function mounted () {\n this.setValue(this.value);\n },\n computed: {\n options: function options () {\n var this$1 = this;\n var options = Object.assign({}, DEFAULT_OPTIONS,\n (this.$ci || {}).globalOptions);\n Object.keys(DEFAULT_OPTIONS).forEach(function (key) {\n if (this$1[key] !== undefined) {\n options[key] = this$1[key];\n }\n });\n return options\n }\n },\n watch: {\n value: 'setValue'\n },\n methods: {\n setValue: function setValue$1 (value) {\n setValue(this.$el, value);\n }\n }\n};\n\nvar plugin = {\n install: function install (Vue, ref) {\n if ( ref === void 0 ) ref = {};\n var componentName = ref.componentName; if ( componentName === void 0 ) componentName = component.name;\n var directiveName = ref.directiveName; if ( directiveName === void 0 ) directiveName = 'currency';\n var globalOptions = ref.globalOptions; if ( globalOptions === void 0 ) globalOptions = {};\n Vue.component(componentName, component);\n Vue.directive(directiveName, directive);\n Vue.prototype.$ci = {\n parse: function (formattedValue, options) { return parse(formattedValue, Object.assign({}, globalOptions, options)); },\n getValue: getValue,\n setValue: setValue,\n globalOptions: globalOptions\n };\n }\n};\n\nif (typeof window !== 'undefined' && window.Vue) {\n window.Vue.use(plugin);\n}\n\nexport default plugin;\nexport { directive as CurrencyDirective, component as CurrencyInput, getValue, parse, setValue };\n","module.exports = __webpack_public_path__ + \"img/Vector.db5fdc20.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('OffCanvas',{attrs:{\"isVisible\":_vm.isConfigurationDiscountMenuOpenComputed},on:{\"update:isVisible\":function($event){_vm.isConfigurationDiscountMenuOpenComputed=$event},\"update:is-visible\":function($event){_vm.isConfigurationDiscountMenuOpenComputed=$event},\"onClose\":_vm.onClose}},[_c('aside',{staticClass:\"add-new-sec\"},[_c('div',[_c('div',{staticClass:\"customize-checkout-title uk-margin-small-bottom\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_DISCOUNT_TITLE'))+\" \")]),_c('div',{staticClass:\"subtitle uk-margin-small-bottom\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_DISCOUNT_SUBHEADER'))+\" \")]),_c('ValidationObserver',{ref:\"formDiscountObserverRef\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('form',{attrs:{\"autocomplete\":\"off\"},on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.beforeOnSave)}}},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"uk-margin-small-bottom\",attrs:{\"for\":\"tax-rate-select\",\"data-testid\":\"tax-rate\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_DISCOUNT_TYPE'))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])]),_c('DropdownList',{attrs:{\"dropdown\":_vm.typeListDropdown,\"autoSelectionAllowed\":false,\"id\":\"discount-type\"},on:{\"onSelectionChange\":_vm.onSelectType},model:{value:(_vm.currentTypeSelection),callback:function ($$v) {_vm.currentTypeSelection=$$v},expression:\"currentTypeSelection\"}}),_c('span',{staticClass:\"form-field-error\",style:({\n visibility: _vm.isSelectInvalid ? 'visible' : 'hidden'\n }),attrs:{\"data-testid\":\"discount-type-required-error\"}},[_vm._v(\" Please select a type \")])],1),_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"name\",\"data-testid\":\"discount-name\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_NAME'))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.typeListDropdown.id === _vm.discountType.MULTI_PARTICIPANT ? _vm.screenText.getScreenText('LABEL_DISCOUNT_NAME_PERCENT_RATE_SUBHEADER') : _vm.screenText.getScreenText('LABEL_DISCOUNT_NAME_EARLY_REGISTRATION_SUBHEADER'))+\" \")]),_c('ValidationProvider',{ref:\"nameObserverRef\",attrs:{\"rules\":\"name_required\",\"mode\":_vm.validationMode.Eager},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var errors = ref.errors;\n var invalid = ref.invalid;\n var validated = ref.validated;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.name),expression:\"name\",modifiers:{\"trim\":true}}],attrs:{\"id\":\"discount-name\",\"type\":\"text\",\"maxlength\":\"30\"},domProps:{\"value\":(_vm.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.name=$event.target.value.trim()},\"blur\":function($event){return _vm.$forceUpdate()}}}),_c('span',{staticClass:\"form-field-error\",style:({\n visibility: validated && invalid ? 'visible' : 'hidden'\n }),attrs:{\"data-testid\":\"discount-name-required-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}],null,true)})],1),_c('div',{staticClass:\"form-group uk-margin-small-bottom\"},[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"description\",\"data-testid\":\"discount-description\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_DESCRIPTION'))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.typeListDropdown.id === _vm.discountType.MULTI_PARTICIPANT ? _vm.screenText.getScreenText('LABEL_DISCOUNT_DESCRIPTION_PERCENT_RATE_SUBHEADER') : _vm.screenText.getScreenText('LABEL_DISCOUNT_DESCRIPTION_EARLY_REGISTRATION_SUBHEADER'))+\" \")]),_c('ValidationProvider',{ref:\"descriptionObserverRef\",attrs:{\"rules\":\"description_required\",\"mode\":_vm.validationMode.Eager},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var errors = ref.errors;\n var invalid = ref.invalid;\n var validated = ref.validated;\nreturn [_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.description),expression:\"description\"}],attrs:{\"id\":\"discount-description\",\"maxlength\":\"500\"},domProps:{\"value\":(_vm.description)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.description=$event.target.value}}}),_c('span',{staticClass:\"form-field-error\",style:({\n visibility: validated && invalid ? 'visible' : 'hidden'\n }),attrs:{\"data-testid\":\"discount-description-required-error\"}},[_vm._v(\" \"+_vm._s(errors[0])+\" \")])]}}],null,true)})],1),_c('div',{staticClass:\"form-group uk-margin-small-top\"},[_c('div',[_c('label',{staticClass:\"uk-margin-remove\",attrs:{\"for\":\"percent-rate\",\"data-testid\":\"setup-header\"}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_SETUP'))),_c('span',{staticClass:\"asterisk\"},[_vm._v(\"*\")])])]),_c('div',{staticClass:\"subheader\"},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText('LABEL_DISCOUNT_SETUP_SUBHEADER'))+\" \")]),_c('div',{staticClass:\"uk-margin-remove\"},[_c('div',{staticClass:\"radio-input-wrapper\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.discountUnitAmount),expression:\"discountUnitAmount\"}],attrs:{\"id\":\"percent-option\",\"type\":\"radio\",\"name\":\"setup-option\",\"data-testid\":\"percent-option-input\"},domProps:{\"value\":_vm.discountUnitType.PERCENT_RATE,\"checked\":_vm._q(_vm.discountUnitAmount,_vm.discountUnitType.PERCENT_RATE)},on:{\"change\":function($event){_vm.discountUnitAmount=_vm.discountUnitType.PERCENT_RATE}}}),_c('label',{staticClass:\"subtitle\",attrs:{\"for\":\"percent-option\"}},[_vm._v(_vm._s(_vm.screenText.getScreenText('LABEL_PERCENT_RATE')))])]),_c('div',{staticClass:\"radio-input-wrapper\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.discountUnitAmount),expression:\"discountUnitAmount\"}],attrs:{\"id\":\"amount-option\",\"type\":\"radio\",\"name\":\"setup-option\",\"data-testid\":\"amount-option-input\"},domProps:{\"value\":_vm.discountUnitType.FIXED_AMOUNT,\"checked\":_vm._q(_vm.discountUnitAmount,_vm.discountUnitType.FIXED_AMOUNT)},on:{\"change\":function($event){_vm.discountUnitAmount=_vm.discountUnitType.FIXED_AMOUNT}}}),_c('label',{staticClass:\"subtitle\",attrs:{\"for\":\"amount-option\"}},[_vm._v(_vm._s(_vm.screenText.getScreenText('FEE_FIXED_AMOUNT')))])])])]),(_vm.typeListDropdown.id !== _vm.SELECT_TYPE_VALUE)?_c('div',[(_vm.typeListDropdown.id === _vm.discountType.MULTI_PARTICIPANT)?_c('MultiParticipantRules',{attrs:{\"rules\":_vm.rulesVal,\"discountUnitAmount\":_vm.discountUnitAmount,\"formRef\":_vm.formDiscountObserverRef},on:{\"update:discountUnitAmount\":function($event){_vm.discountUnitAmount=$event},\"update:discount-unit-amount\":function($event){_vm.discountUnitAmount=$event},\"onAddRule\":_vm.onAddMultiParticipantRule,\"onRemoveRule\":_vm.onRemoveMultiParticipantRule,\"onPercentageUpdate\":_vm.onPercentageUpdate}}):_c('EarlyRegistration',{attrs:{\"discountUnitAmount\":_vm.discountUnitAmount,\"earlyDiscountEnds\":_vm.earlyDiscountEnds,\"earlyAmountValue\":_vm.earlyAmountValue,\"discountRuleListDropdown\":_vm.discountRuleListDropdown,\"formRef\":_vm.formDiscountObserverRef},on:{\"update:discountUnitAmount\":function($event){_vm.discountUnitAmount=$event},\"update:discount-unit-amount\":function($event){_vm.discountUnitAmount=$event},\"update:earlyDiscountEnds\":function($event){_vm.earlyDiscountEnds=$event},\"update:early-discount-ends\":function($event){_vm.earlyDiscountEnds=$event},\"update:earlyAmountValue\":function($event){_vm.earlyAmountValue=$event},\"update:early-amount-value\":function($event){_vm.earlyAmountValue=$event},\"onChangeSessionStart\":_vm.onChangeSessionStart}})],1):_vm._e(),_c('div',[_c('button',{staticClass:\"btn-secondary uk-margin-small-right\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.onCancel}},[_vm._v(\" \"+_vm._s(_vm.screenText.getScreenText(\"BTN_CANCEL\"))+\" \")]),_c('ProgressButton',{attrs:{\"bx-attr\":\"save-btn\",\"buttonIndex\":_vm.screenText.getScreenText('BTN_SAVE'),\"buttonText\":_vm.screenText.getScreenText('BTN_SAVE'),\"disableButton\":!_vm.isSaveDisabled}})],1)])]}}])})],1)]),_c('StateModal',{attrs:{\"isVisible\":_vm.isModalVisible,\"config\":_vm.modalConfig},on:{\"onClose\":_vm.toggleConfirmationModal,\"onConfirm\":_vm.handleConfirm}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 { Discount, MultiParticipantRule, EarlyRegistrationRule, DiscountType, AmountUnitType, TimeRangeType, StateModalType, DiscountRule } from '@/Model/payments/types';\nimport { discountDescriptionRequiredValidator } from '@/validators/payments/validators';\nimport StateModal from '@/popupcomponents/StateModal.vue';\nimport { createAutomaticDiscount } from '@/services/payments/api';\nimport APP_UTILITIES from '@/utilities/commonFunctions';\nimport { ApiErrorResponse } from '@/Model/errors/api/types';\nimport { ToastType } from '@/Model/toastType';\n\ntype CustomDropdownOptions = DropdownListOptions & { ruleAmount: string };\n\n@Component({\n components: {\n OffCanvas,\n ValidationObserver,\n ValidationProvider,\n DropdownList,\n ProgressButton,\n MultiParticipantRules,\n EarlyRegistration,\n StateModal\n }\n})\n\nexport default class DiscountConfiguration extends Vue {\n @Ref('formDiscountObserverRef') readonly formDiscountObserverRef?: InstanceType<\n typeof ValidationObserver\n >;\n @Ref('nameObserverRef') readonly nameObserverRef?: ProviderInstance;\n @Ref('descriptionObserverRef') readonly descriptionObserverRef?: ProviderInstance;\n\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 // TODO: This should be mapped according to the backend needs\n earlyDiscountListOptions: DropdownListItem[] = [\n { id: TimeRangeType.MONTHS, value: 'Months before sessions starts' },\n { id: TimeRangeType.DAYS, value: 'Days before session starts' },\n { id: TimeRangeType.WEEKS, value: 'Weeks before session starts' }\n ];\n\n discountRuleListDropdown: DropdownListOptions = {\n id: this.earlyDiscountListOptions[0].id,\n value: this.earlyDiscountListOptions[0].value,\n singleSelect: true,\n showSelectLabel: false,\n dropdownList: this.earlyDiscountListOptions\n };\n\n // TODO: shouldn't these values come from the BE?\n typeListOptions: DropdownListItem[] = [\n { id: this.SELECT_TYPE_VALUE, value: 'Select' },\n { id: DiscountType.MULTI_PARTICIPANT, value: 'Multi-participant' },\n { id: DiscountType.EARLY_REGISTRATION, value: 'Early Registration' }\n ];\n\n currentTypeSelection: DropdownListItem = this.typeListOptions[0];\n\n typeListDropdown: DropdownListOptions = {\n id: this.typeListOptions[0].id,\n value: this.typeListOptions[0].value,\n singleSelect: true,\n showSelectLabel: true,\n dropdownList: this.typeListOptions\n };\n\n /**\n * Called when the component is created.\n */\n created(): void {\n discountDescriptionRequiredValidator(this.screenText.getScreenText('LABEL_DISCOUNT_DESCRIPTION_REQUIRED'));\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(this.formDiscountObserverRef && this.formDiscountObserverRef.flags.touched) {\n if (!isTypeValid) {\n this.isSelectInvalid = true;\n }\n else{\n this.isSelectInvalid = false;\n }\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 (this.currentTypeSelection.id === DiscountType.MULTI_PARTICIPANT && (this.isUnitResetNeeded || !this.discountListComputed.length)) {\n this.cleanMultiParticipantAmounts();\n }\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 // TODO: verify logic for this function once other endpoints are available, logic here may not be neccessary due to changes on logic and sources\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 // if (isMenuOpen && this.currentDiscountIndexComputed !== null) {\n // this.setExistingDiscountValues();\n // }\n // else if (isMenuOpen && this.currentDiscountIndexComputed === null && this.discountListComputed.length) {\n // if (this.discountListComputed[0].type === DiscountType.MULTI_PARTICIPANT) {\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 // else {\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 // }\n // Vue.set(this.typeListDropdown, 'disable', true);\n // }\n // }\n\n // /**\n // * Sets the existing discount values.\n // */\n // setExistingDiscountValues(): void {\n // const currentDiscountIndex = (this.currentDiscountIndexComputed !== null && this.currentDiscountIndexComputed) || 0;\n // const currentDiscountItem = this.discountListComputed[currentDiscountIndex];\n\n // this.name = currentDiscountItem.name;\n // this.description = currentDiscountItem.description;\n // this.currentTypeSelection.id = currentDiscountItem.type;\n // this.currentTypeSelection.value = this.typeListOptions[currentDiscountItem.type].value;\n // this.typeListDropdown.id = this.currentTypeSelection.id;\n // this.typeListDropdown.value = this.currentTypeSelection.value;\n // this.isUnitResetNeeded = false;\n // this.discountUnitAmount = AmountUnitType.NOT_SET; // force watcher execution\n // this.discountUnitAmount = currentDiscountItem.discountUnitType;\n\n // if (currentDiscountItem.type === DiscountType.MULTI_PARTICIPANT) {\n // this.rules = this.initMultiParticipantRuleList(\n // (currentDiscountItem.rule as MultiParticipantRule[])[0].participants,\n // currentDiscountItem.rule\n // );\n // }\n // else {\n // this.earlyDiscountEnds = (currentDiscountItem.rule as EarlyRegistrationRule).unit;\n // this.earlyAmountValue = (currentDiscountItem.rule as EarlyRegistrationRule).amount;\n // this.discountRuleListDropdown.id = (currentDiscountItem.rule as EarlyRegistrationRule).timeRangeType;\n // this.discountRuleListDropdown.value = `${this.earlyDiscountListOptions[(currentDiscountItem.rule as EarlyRegistrationRule).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 * 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 }\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(sequenceStartNumber: number = this.MULTI_PARTICIPANT_INITIAL_SEQUENCE_NUMBER, discountRules?: MultiParticipantRule[] | EarlyRegistrationRule): CustomDropdownOptions[] {\n const participantCounterList: DropdownListItem[] = Array.from(\n { length: this.MULTI_PARTICIPANT_MAX_SEQUENCE_NUMBER - 1 },\n (_, index) => ({ id: index + sequenceStartNumber, value: `${index + sequenceStartNumber}` })\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((item: MultiParticipantRule): CustomDropdownOptions => {\n return {\n ...rawRuleStructure,\n id: item.participants,\n value: `${item.participants}`,\n ruleAmount: `${item.amount}`,\n disable: true\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 // TODO: verify logic for this function once other endpoints are available, logic here may not be neccessary due to changes on logic and sources\n // /**\n // * Getter for the computed current discount index.\n // * @returns {number | null} The current discount index.\n // */\n // get currentDiscountIndexComputed(): number | null {\n // return paymentsModule.currentDiscountIndex;\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\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 }\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 = 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 if (!isTypeValid) {\n this.isSelectInvalid = true;\n }\n else{\n this.isSelectInvalid = false;\n }\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 // TODO: add proper selected value from state once edit in enabled\n if(false) {\n this.toggleConfirmationModal();\n }\n else {\n this.onSave();\n }\n }\n }\n\n /**\n * Confirmation logic when editing a discount\n */\n handleConfirm() {\n this.toggleConfirmationModal();\n this.onSave();\n }\n\n /**\n * Saves the discount.\n */\n async onSave(): Promise {\n let currentActiveRules: DiscountRule;\n\n if (this.currentTypeSelection.id === DiscountType.MULTI_PARTICIPANT) {\n currentActiveRules = this.rules.map((item: CustomDropdownOptions): MultiParticipantRule => {\n return {\n participants: parseInt(item.value),\n amount: parseInt(item.ruleAmount),\n };\n });\n }\n else {\n currentActiveRules = [{\n timeRangeUnit: this.earlyDiscountEnds || 1,\n timeRangeType: parseInt(String(this.discountRuleListDropdown.id)),\n amount: this.earlyAmountValue || 1,\n }];\n }\n\n const accountIdCookie = APP_UTILITIES.getCookie('accountId');\n const accountId = accountIdCookie\n ? Number.parseInt(accountIdCookie)\n : 0;\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 \n\n\n await createAutomaticDiscount(requestDiscountObj);\n\n paymentsModule.setIsConfiguratioDiscountMenuOpen(false);\n\n }\n catch (error) {\n const apiErrorResponse: ApiErrorResponse = APP_UTILITIES.errorToApiErrorResponse(\n error\n );\n // we verify that the error is due to a duplicate discount,if not we trow a generic error\n if(apiErrorResponse.value.includes('already has')) {\n const message = this.formatErrorMessage(apiErrorResponse.value);\n APP_UTILITIES.showToastMessage(message, ToastType.Error);\n }\n else {\n APP_UTILITIES.showToastMessage('Unexpected Error!', ToastType.Error);\n }\n\n }\n finally {\n this.isSaveDisabled = false;\n }\n \n }\n\n /**\n * \n * Function to farmat error message from automatic discounts to be more user friendly\n */\n formatErrorMessage(error: string) {\n return error.replace(\n /The account already has a Discount Type: \\[([^\\]]+)\\] for Account Id: \\[\\d+\\]/, \n (_, p1) => {\n let discountType = p1.replace(/([a-z])([A-Z])/g, '$1-$2');\n discountType = discountType.replace(/(^|\\s)\\S/g, (l: string) => l.toUpperCase());\n return `The account already has a Discount Type for ${discountType}`;\n }\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!./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=60a4124e&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=60a4124e&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 \"60a4124e\",\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&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"empty-state-container-component uk-margin-top uk-margin-bottom\"},[_c('div',{staticClass:\"empty-state-container-component-restricted-width uk-margin-auto\"},[_c('div',{staticClass:\"empty-state-container-component-inner-wrapper uk-flex uk-flex-column uk-flex-center uk-flex-middle uk-padding-small\"},[_vm._t(\"icon\"),_c('div',[_c('div',{staticClass:\"empty-state-container-component-title\"},[_vm._t(\"title\")],2),_c('div',{staticClass:\"empty-state-container-component-subtitle uk-margin-small-top\"},[_vm._t(\"subtitle\")],2)]),_vm._t(\"button\"),_vm._t(\"error-message\")],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\nimport { Component, Vue } from 'vue-property-decorator';\n\n@Component({})\nexport default class EmptyStateContainer extends Vue { }\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!./EmptyStateContainer.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!./EmptyStateContainer.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./EmptyStateContainer.vue?vue&type=template&id=301b7076&scoped=true&\"\nimport script from \"./EmptyStateContainer.vue?vue&type=script&lang=ts&\"\nexport * from \"./EmptyStateContainer.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./EmptyStateContainer.vue?vue&type=style&index=0&id=301b7076&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 \"301b7076\",\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!./DiscountTableRow.vue?vue&type=style&index=0&id=40a6db95&lang=less&scoped=true&\"","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 ? APP_CONST.FALSE : (close ? APP_CONST.FALSE : 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 let inputElement = document.getElementById('dropdownSearchInput');\n inputElement && inputElement.focus()\n if (this.dropdown.id) {\n let 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 let 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 let 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 let 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 let 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 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 selectFirstElement() {\n if (this.dropdown.dropdownList && this.dropdown.dropdownList.length <= APP_CONST.ONE && this.autoSelectionAllowed) {\n let dropDownValues: any = this.dropdown.dropdownList.length == APP_CONST.ZERO ? { id: this.dropdown.id ? this.dropdown.id : 0, value: this.dropdown.value } : this.dropdown.dropdownList[APP_CONST.ZERO]\n this.select(dropDownValues)\n let element: any = document.getElementById(`dropdown-label-${this.publicUniqueId}`)\n element && element.classList && element.classList.add(\"dropdown-active\");\n }\n else {\n let 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 let 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 } else if (attribute == \"fromLi\" && e.keyCode == 9 && e.shiftKey) {\n this.active = -1;\n setTimeout(() => {\n if (this.dropdown.search) {\n let 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 let dropdownMenuItems = this.dropdownElement && this.dropdownElement.children\n let 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 else if (e.keyCode == 38) {\n if (this.active == APP_CONST.ZERO) {\n this.active;\n }\n else\n this.active--;\n }\n else if (/[a-zA-Z0-9]/.test(input) && (document.activeElement !== inputElement)) {\n let loopStart = this.activeLetter == input.toLowerCase() ? this.active + 1 : 0;\n for (let i = loopStart; i < this.dropdownElement.children.length; i++) {\n let val = dropdownMenuItems[i].innerText.charAt(0).toLowerCase()\n let inp = input.toLowerCase()\n if (val == inp) {\n this.active = i;\n this.activeLetter = inp;\n break\n }\n }\n }\n setTimeout(() => {\n let 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 let 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 } 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 let 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 } 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","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!./ChangeFeeModal.vue?vue&type=style&index=0&id=3deca15a&lang=less&scoped=true&\""],"sourceRoot":""}