@thecb/components 10.1.3-beta.1 → 10.1.3-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -46516,11 +46516,12 @@ var AutopayModal = function AutopayModal(_ref) {
46516
46516
  };
46517
46517
  var plan = isPaymentPlan ? "your payment plan" : "autopay";
46518
46518
  var shortPlan = isPaymentPlan ? "Payment Plan" : "Autopay";
46519
- var deactivateText = "stop ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
46519
+ var deactivateText = "stop ".concat(shortPlan.toLowerCase(), " for ").concat(description, ": ").concat(subDescription);
46520
46520
  var activateText = "Set Up ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
46521
+ var nextDate = dueDate || nextAutopayDate;
46521
46522
  var modalExtraProps = {
46522
46523
  modalHeaderText: autoPayActive ? titleCaseString(deactivateText) : titleCaseString(activateText),
46523
- modalBodyText: autoPayActive ? "Are you sure you want to stop ".concat(plan, "?") : generateMethodNeededText(plan, allowedPaymentInstruments),
46524
+ modalBodyText: autoPayActive ? "Are you sure you want to stop ".concat(plan, "? ").concat(!inactive && nextDate && nextDate !== "On" ? "Your next payment will be due on " + nextDate + "." : "") : generateMethodNeededText(plan, allowedPaymentInstruments),
46524
46525
  continueButtonText: autoPayActive ? "Stop ".concat(shortPlan) : "Add",
46525
46526
  useDangerButton: autoPayActive,
46526
46527
  continueAction: autoPayActive ? function () {