@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.cjs.js CHANGED
@@ -46524,11 +46524,12 @@ var AutopayModal = function AutopayModal(_ref) {
46524
46524
  };
46525
46525
  var plan = isPaymentPlan ? "your payment plan" : "autopay";
46526
46526
  var shortPlan = isPaymentPlan ? "Payment Plan" : "Autopay";
46527
- var deactivateText = "stop ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
46527
+ var deactivateText = "stop ".concat(shortPlan.toLowerCase(), " for ").concat(description, ": ").concat(subDescription);
46528
46528
  var activateText = "Set Up ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
46529
+ var nextDate = dueDate || nextAutopayDate;
46529
46530
  var modalExtraProps = {
46530
46531
  modalHeaderText: autoPayActive ? titleCaseString(deactivateText) : titleCaseString(activateText),
46531
- modalBodyText: autoPayActive ? "Are you sure you want to stop ".concat(plan, "?") : generateMethodNeededText(plan, allowedPaymentInstruments),
46532
+ 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),
46532
46533
  continueButtonText: autoPayActive ? "Stop ".concat(shortPlan) : "Add",
46533
46534
  useDangerButton: autoPayActive,
46534
46535
  continueAction: autoPayActive ? function () {