@thecb/components 11.1.10-beta.0 → 11.1.11-beta.0

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
@@ -46842,8 +46842,8 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
46842
46842
  onClick = _ref.onClick,
46843
46843
  onKeyPress = _ref.onKeyPress;
46844
46844
  var generateMethodNeededText = function generateMethodNeededText(planText, allowedPaymentInstruments) {
46845
- var allowsCard = allowedPaymentInstruments === null || allowedPaymentInstruments === void 0 ? void 0 : allowedPaymentInstruments.includes(CC_METHOD);
46846
- var allowsACH = allowedPaymentInstruments === null || allowedPaymentInstruments === void 0 ? void 0 : allowedPaymentInstruments.includes(ACH_METHOD);
46845
+ var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
46846
+ var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
46847
46847
  var methodRequired = allowsCard && !allowsACH ? "debit or credit card payment method" : !allowsCard && allowsACH ? "checking account payment method" : "payment method";
46848
46848
  return "To set up ".concat(planText, " you must have a saved ").concat(methodRequired, " and address. Do you want to save these now?");
46849
46849
  };
@@ -46854,7 +46854,7 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
46854
46854
  var nextDate = dueDate || nextAutopayDate;
46855
46855
  var modalExtraProps = {
46856
46856
  modalHeaderText: autoPayActive ? deactivateText : activateText,
46857
- 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),
46857
+ modalBodyText: autoPayActive ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Paragraph$1, null, "Are you sure you want to stop ", plan, "?", !inactive && nextDate && nextDate !== "On" ? "Your next payment will be due on " + nextDate + "." : ""), !isPaymentPlan && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Paragraph$1, null, "If your next autopayment is scheduled to run today, you may be billed today and autopay will then stop for the next billing cycle."))) : generateMethodNeededText(plan, allowedPaymentInstruments),
46858
46858
  continueButtonText: autoPayActive ? "Stop ".concat(shortPlan) : "Add",
46859
46859
  useDangerButton: autoPayActive,
46860
46860
  continueAction: autoPayActive ? function () {
@@ -47351,8 +47351,7 @@ var fallbackValues$N = {
47351
47351
  var Obligation = function Obligation(_ref) {
47352
47352
  var _obligations$, _firstObligation$cust;
47353
47353
  var config = _ref.config,
47354
- _ref$obligations = _ref.obligations,
47355
- obligations = _ref$obligations === void 0 ? [] : _ref$obligations,
47354
+ obligations = _ref.obligations,
47356
47355
  actions = _ref.actions,
47357
47356
  autoPayEnabled = _ref.autoPayEnabled,
47358
47357
  autoPayAvailable = _ref.autoPayAvailable,
@@ -47452,7 +47451,6 @@ var Obligation = function Obligation(_ref) {
47452
47451
  isLoading: true
47453
47452
  }))), !isMobile && /*#__PURE__*/React.createElement(PaymentDetailsActions, {
47454
47453
  obligations: obligations,
47455
- obligationAssocID: obligationAssocID,
47456
47454
  autoPayEnabled: autoPayEnabled,
47457
47455
  autoPayAvailable: autoPayAvailable,
47458
47456
  handleAutopayAction: handleAutopayAction,
@@ -47473,7 +47471,6 @@ var Obligation = function Obligation(_ref) {
47473
47471
  isContentLoading: true
47474
47472
  }))), isMobile && /*#__PURE__*/React.createElement(PaymentDetailsActions, {
47475
47473
  obligations: obligations,
47476
- obligationAssocID: obligationAssocID,
47477
47474
  autoPayEnabled: autoPayEnabled,
47478
47475
  autoPayAvailable: autoPayAvailable,
47479
47476
  handleAutopayAction: handleAutopayAction,