@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.cjs.js CHANGED
@@ -46850,8 +46850,8 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
46850
46850
  onClick = _ref.onClick,
46851
46851
  onKeyPress = _ref.onKeyPress;
46852
46852
  var generateMethodNeededText = function generateMethodNeededText(planText, allowedPaymentInstruments) {
46853
- var allowsCard = allowedPaymentInstruments === null || allowedPaymentInstruments === void 0 ? void 0 : allowedPaymentInstruments.includes(CC_METHOD);
46854
- var allowsACH = allowedPaymentInstruments === null || allowedPaymentInstruments === void 0 ? void 0 : allowedPaymentInstruments.includes(ACH_METHOD);
46853
+ var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
46854
+ var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
46855
46855
  var methodRequired = allowsCard && !allowsACH ? "debit or credit card payment method" : !allowsCard && allowsACH ? "checking account payment method" : "payment method";
46856
46856
  return "To set up ".concat(planText, " you must have a saved ").concat(methodRequired, " and address. Do you want to save these now?");
46857
46857
  };
@@ -46862,7 +46862,7 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
46862
46862
  var nextDate = dueDate || nextAutopayDate;
46863
46863
  var modalExtraProps = {
46864
46864
  modalHeaderText: autoPayActive ? deactivateText : activateText,
46865
- 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),
46865
+ modalBodyText: autoPayActive ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.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__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.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),
46866
46866
  continueButtonText: autoPayActive ? "Stop ".concat(shortPlan) : "Add",
46867
46867
  useDangerButton: autoPayActive,
46868
46868
  continueAction: autoPayActive ? function () {
@@ -47359,8 +47359,7 @@ var fallbackValues$N = {
47359
47359
  var Obligation = function Obligation(_ref) {
47360
47360
  var _obligations$, _firstObligation$cust;
47361
47361
  var config = _ref.config,
47362
- _ref$obligations = _ref.obligations,
47363
- obligations = _ref$obligations === void 0 ? [] : _ref$obligations,
47362
+ obligations = _ref.obligations,
47364
47363
  actions = _ref.actions,
47365
47364
  autoPayEnabled = _ref.autoPayEnabled,
47366
47365
  autoPayAvailable = _ref.autoPayAvailable,
@@ -47460,7 +47459,6 @@ var Obligation = function Obligation(_ref) {
47460
47459
  isLoading: true
47461
47460
  }))), !isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
47462
47461
  obligations: obligations,
47463
- obligationAssocID: obligationAssocID,
47464
47462
  autoPayEnabled: autoPayEnabled,
47465
47463
  autoPayAvailable: autoPayAvailable,
47466
47464
  handleAutopayAction: handleAutopayAction,
@@ -47481,7 +47479,6 @@ var Obligation = function Obligation(_ref) {
47481
47479
  isContentLoading: true
47482
47480
  }))), isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
47483
47481
  obligations: obligations,
47484
- obligationAssocID: obligationAssocID,
47485
47482
  autoPayEnabled: autoPayEnabled,
47486
47483
  autoPayAvailable: autoPayAvailable,
47487
47484
  handleAutopayAction: handleAutopayAction,