@thecb/components 10.1.3-beta.2 → 10.1.3-beta.4
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,11 @@ 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 = "
|
|
46520
|
-
var activateText = "Set Up ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
|
|
46519
|
+
var deactivateText = "Stop ".concat(shortPlan.toLowerCase(), " for ").concat(titleCaseString(description), ": ").concat(titleCaseString(subDescription));
|
|
46520
|
+
var activateText = titleCaseString("Set Up ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription));
|
|
46521
46521
|
var nextDate = dueDate || nextAutopayDate;
|
|
46522
46522
|
var modalExtraProps = {
|
|
46523
|
-
modalHeaderText: autoPayActive ?
|
|
46523
|
+
modalHeaderText: autoPayActive ? deactivateText : activateText,
|
|
46524
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),
|
|
46525
46525
|
continueButtonText: autoPayActive ? "Stop ".concat(shortPlan) : "Add",
|
|
46526
46526
|
useDangerButton: autoPayActive,
|