@thecb/components 7.7.0-beta.0 → 7.7.0-beta.1

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
@@ -6318,6 +6318,44 @@ var throttle = function throttle(delay, fn) {
6318
6318
  return fn.apply(void 0, arguments);
6319
6319
  };
6320
6320
  };
6321
+ var titleCaseWord = function titleCaseWord(word) {
6322
+ return word.charAt(0).toUpperCase() + word.slice(1);
6323
+ };
6324
+ var titleCaseString = function titleCaseString(string) {
6325
+ return string.split(" ").map(function (word, index, string) {
6326
+ return index === 0 || index === string.length - 1 || word.length > 3 ? titleCaseWord(word.toLowerCase()) : word;
6327
+ }).join(" ");
6328
+ };
6329
+ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
6330
+ var textAlign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "right";
6331
+ var as = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "span";
6332
+
6333
+ switch (expirationStatus) {
6334
+ case ACTIVE:
6335
+ return /*#__PURE__*/React__default.createElement(Text$1, {
6336
+ as: as,
6337
+ variant: "pXS",
6338
+ color: ASH_GREY,
6339
+ extraStyles: "text-align: ".concat(textAlign, ";")
6340
+ }, "Exp Date ", expireDate);
6341
+
6342
+ case EXPIRING_SOON:
6343
+ return /*#__PURE__*/React__default.createElement(Text$1, {
6344
+ as: as,
6345
+ variant: "pXS",
6346
+ color: FIRE_YELLOW,
6347
+ extraStyles: "text-align: ".concat(textAlign, ";")
6348
+ }, "Expiring Soon ", expireDate);
6349
+
6350
+ case EXPIRED:
6351
+ return /*#__PURE__*/React__default.createElement(Text$1, {
6352
+ as: as,
6353
+ variant: "pXS",
6354
+ color: ASH_GREY,
6355
+ extraStyles: "text-align: ".concat(textAlign, ";")
6356
+ }, "Expired");
6357
+ }
6358
+ };
6321
6359
 
6322
6360
  var general = /*#__PURE__*/Object.freeze({
6323
6361
  __proto__: null,
@@ -6335,7 +6373,10 @@ var general = /*#__PURE__*/Object.freeze({
6335
6373
  inputPlaceholderTextStyle: inputPlaceholderTextStyle,
6336
6374
  inputDisabledStyle: inputDisabledStyle,
6337
6375
  MOBILE_WIDTH: MOBILE_WIDTH,
6338
- throttle: throttle
6376
+ throttle: throttle,
6377
+ titleCaseWord: titleCaseWord,
6378
+ titleCaseString: titleCaseString,
6379
+ renderCardStatus: renderCardStatus
6339
6380
  });
6340
6381
 
6341
6382
  var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children", "variant"];
@@ -13821,33 +13862,6 @@ var GenericCard = function GenericCard() {
13821
13862
  }));
13822
13863
  };
13823
13864
 
13824
- var BankItemWrapper = styled__default.div.withConfig({
13825
- displayName: "PaymentIcon__BankItemWrapper",
13826
- componentId: "sc-1k0jl35-0"
13827
- })(["display:flex;justify-content:flex-start;align-items:center;"]);
13828
- var BankAccountText = styled__default.h4.withConfig({
13829
- displayName: "PaymentIcon__BankAccountText",
13830
- componentId: "sc-1k0jl35-1"
13831
- })(["color:", ";font-size:1rem;font-weight:400;line-height:1.5rem;text-align:left;margin-right:0.5rem;display:inline-block;"], CHARADE_GREY);
13832
- var CHECKING = "CHECKING";
13833
- var SAVINGS = "SAVINGS";
13834
-
13835
- var PaymentIcon = function PaymentIcon(_ref) {
13836
- var lastFour = _ref.lastFour,
13837
- accountType = _ref.accountType,
13838
- autoPay = _ref.autoPay;
13839
- return /*#__PURE__*/React__default.createElement(BankItemWrapper, null, /*#__PURE__*/React__default.createElement(Box, {
13840
- padding: "0.25rem 0 0 0",
13841
- extraStyles: "margin-right: 1rem;"
13842
- }, /*#__PURE__*/React__default.createElement(BankIcon, null)), /*#__PURE__*/React__default.createElement(Stack, {
13843
- childGap: "0"
13844
- }, accountType === CHECKING && /*#__PURE__*/React__default.createElement(BankAccountText, null, "Checking Account ending in ", lastFour), accountType === SAVINGS && /*#__PURE__*/React__default.createElement(BankAccountText, null, "Savings Account ending in ", lastFour), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
13845
- variant: "p",
13846
- color: REGENT_GREY,
13847
- extraStyles: "font-style: italic;"
13848
- }, "Autopay Enabled")));
13849
- };
13850
-
13851
13865
  var IconAdd = function IconAdd() {
13852
13866
  return /*#__PURE__*/React__default.createElement("svg", {
13853
13867
  xmlns: "http://www.w3.org/2000/svg",
@@ -24285,9 +24299,50 @@ var fallbackValues$l = {
24285
24299
  autopayTextColor: autopayTextColor
24286
24300
  };
24287
24301
 
24288
- var ACTIVE = "ACTIVE";
24289
- var EXPIRING_SOON = "EXPIRING_SOON";
24290
- var EXPIRED = "EXPIRED";
24302
+ var BankItemWrapper = styled__default.div.withConfig({
24303
+ displayName: "FormattedBankAccount__BankItemWrapper",
24304
+ componentId: "sc-18hcgw4-0"
24305
+ })(["display:flex;justify-content:flex-start;align-items:center;"]);
24306
+ var BankAccountText = styled__default.h4.withConfig({
24307
+ displayName: "FormattedBankAccount__BankAccountText",
24308
+ componentId: "sc-18hcgw4-1"
24309
+ })(["color:", ";font-size:1rem;font-weight:400;line-height:1.5rem;text-align:left;margin-right:0.5rem;display:inline-block;"], function (_ref) {
24310
+ var color = _ref.color;
24311
+ return color;
24312
+ });
24313
+ var CHECKING = "CHECKING";
24314
+ var SAVINGS = "SAVINGS";
24315
+
24316
+ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
24317
+ var lastFour = _ref2.lastFour,
24318
+ accountType = _ref2.accountType,
24319
+ autoPay = _ref2.autoPay,
24320
+ themeValues = _ref2.themeValues;
24321
+ return /*#__PURE__*/React__default.createElement(BankItemWrapper, null, /*#__PURE__*/React__default.createElement(Box, {
24322
+ padding: "0.25rem 0 0 0",
24323
+ extraStyles: "margin-right: 1rem;"
24324
+ }, /*#__PURE__*/React__default.createElement(BankIcon, null)), /*#__PURE__*/React__default.createElement(Stack, {
24325
+ childGap: "0"
24326
+ }, accountType === CHECKING && /*#__PURE__*/React__default.createElement(BankAccountText, {
24327
+ color: themeValues.textColor
24328
+ }, "Checking Account ending in ", lastFour), accountType === SAVINGS && /*#__PURE__*/React__default.createElement(BankAccountText, {
24329
+ color: themeValues.textColor
24330
+ }, "Savings Account ending in ", lastFour), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
24331
+ variant: "p",
24332
+ color: themeValues.autopayTextColor,
24333
+ extraStyles: "font-style: italic;"
24334
+ }, "Autopay Enabled")));
24335
+ };
24336
+
24337
+ var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$l);
24338
+
24339
+ var textColor$2 = "".concat(CHARADE_GREY);
24340
+ var autopayTextColor$1 = "".concat(REGENT_GREY);
24341
+ var fallbackValues$m = {
24342
+ textColor: textColor$2,
24343
+ autopayTextColor: autopayTextColor$1
24344
+ };
24345
+
24291
24346
  var CreditCardWrapper = styled__default.div.withConfig({
24292
24347
  displayName: "FormattedCreditCard__CreditCardWrapper",
24293
24348
  componentId: "sc-s0ta5l-0"
@@ -24303,32 +24358,6 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
24303
24358
  expireDate = _ref.expireDate,
24304
24359
  expirationStatus = _ref.expirationStatus,
24305
24360
  themeValues = _ref.themeValues;
24306
-
24307
- var renderCardStatus = function renderCardStatus() {
24308
- switch (expirationStatus) {
24309
- case ACTIVE:
24310
- return /*#__PURE__*/React__default.createElement(Paragraph$1, {
24311
- variant: "pXS",
24312
- color: ASH_GREY,
24313
- textAlign: "left"
24314
- }, "Exp Date ", expireDate);
24315
-
24316
- case EXPIRING_SOON:
24317
- return /*#__PURE__*/React__default.createElement(Paragraph$1, {
24318
- variant: "pXS",
24319
- color: FIRE_YELLOW,
24320
- textAlign: "left"
24321
- }, "Expiring Soon ", expireDate);
24322
-
24323
- case EXPIRED:
24324
- return /*#__PURE__*/React__default.createElement(Paragraph$1, {
24325
- variant: "pXS",
24326
- color: ASH_GREY,
24327
- textAlign: "left"
24328
- }, "Expired");
24329
- }
24330
- };
24331
-
24332
24361
  return /*#__PURE__*/React__default.createElement(CreditCardWrapper, null, /*#__PURE__*/React__default.createElement(CCIconWrapper, null, /*#__PURE__*/React__default.createElement(GenericCard, null)), /*#__PURE__*/React__default.createElement(Stack, {
24333
24362
  childGap: "0"
24334
24363
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -24339,14 +24368,14 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
24339
24368
  color: themeValues.textColor,
24340
24369
  textAlign: "left",
24341
24370
  extraStyles: "display: inline-block;"
24342
- }, "Card ending in ".concat(lastFour)), expireDate && /*#__PURE__*/React__default.createElement(React.Fragment, null, renderCardStatus())), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
24371
+ }, "Card ending in ".concat(lastFour)), expireDate && /*#__PURE__*/React__default.createElement(React.Fragment, null, renderCardStatus(expirationStatus, expireDate, "left", "p"))), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
24343
24372
  variant: "p",
24344
24373
  color: themeValues.autopayTextColor,
24345
24374
  extraStyles: "font-style: italic;"
24346
24375
  }, "Autopay Enabled")));
24347
24376
  };
24348
24377
 
24349
- var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$l);
24378
+ var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$m);
24350
24379
 
24351
24380
  var Hamburger = styled__default.button.withConfig({
24352
24381
  displayName: "HamburgerButton__Hamburger",
@@ -24428,7 +24457,7 @@ var fontSize$8 = {
24428
24457
  h5: "1.375rem",
24429
24458
  h6: "1.25rem"
24430
24459
  };
24431
- var fallbackValues$m = {
24460
+ var fallbackValues$n = {
24432
24461
  fontFamily: fontFamily$5,
24433
24462
  fontSize: fontSize$8
24434
24463
  };
@@ -24470,7 +24499,7 @@ var Heading = function Heading(_ref) {
24470
24499
  }, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
24471
24500
  };
24472
24501
 
24473
- var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$m, "h1");
24502
+ var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$n, "h1");
24474
24503
 
24475
24504
  var Jumbo = function Jumbo(_ref) {
24476
24505
  var showButton = _ref.showButton,
@@ -24544,7 +24573,7 @@ var fontWeight$4 = {
24544
24573
  pL: "600",
24545
24574
  h6: "700"
24546
24575
  };
24547
- var fallbackValues$n = {
24576
+ var fallbackValues$o = {
24548
24577
  fontWeight: fontWeight$4
24549
24578
  };
24550
24579
 
@@ -24572,7 +24601,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
24572
24601
  }, amount));
24573
24602
  };
24574
24603
 
24575
- var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$n, "default");
24604
+ var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$o, "default");
24576
24605
 
24577
24606
  var weightTitle = {
24578
24607
  "default": "600",
@@ -24582,7 +24611,7 @@ var paragraphVariant = {
24582
24611
  "default": "pL",
24583
24612
  small: "pS"
24584
24613
  };
24585
- var fallbackValues$o = {
24614
+ var fallbackValues$p = {
24586
24615
  weightTitle: weightTitle,
24587
24616
  paragraphVariant: paragraphVariant
24588
24617
  };
@@ -24611,10 +24640,10 @@ var LineItem = function LineItem(_ref) {
24611
24640
  }, amount));
24612
24641
  };
24613
24642
 
24614
- var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$o, "default");
24643
+ var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$p, "default");
24615
24644
 
24616
24645
  var color$8 = "#15749D";
24617
- var fallbackValues$p = {
24646
+ var fallbackValues$q = {
24618
24647
  color: color$8
24619
24648
  };
24620
24649
 
@@ -24653,7 +24682,7 @@ var Spinner$1 = function Spinner(_ref4) {
24653
24682
  })));
24654
24683
  };
24655
24684
 
24656
- var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$p);
24685
+ var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$q);
24657
24686
 
24658
24687
  var Loading = function Loading() {
24659
24688
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -24919,7 +24948,7 @@ var height$1 = {
24919
24948
  "default": "3rem",
24920
24949
  large: "192px"
24921
24950
  };
24922
- var fallbackValues$q = {
24951
+ var fallbackValues$r = {
24923
24952
  color: color$9,
24924
24953
  height: height$1
24925
24954
  };
@@ -25028,12 +25057,12 @@ var Placeholder = function Placeholder(_ref2) {
25028
25057
  }, text)))))))))));
25029
25058
  };
25030
25059
 
25031
- var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$q, "default");
25060
+ var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$r, "default");
25032
25061
 
25033
25062
  var backgroundColor$4 = {
25034
25063
  "default": "".concat(WHITE)
25035
25064
  };
25036
- var fallbackValues$r = {
25065
+ var fallbackValues$s = {
25037
25066
  backgroundColor: backgroundColor$4
25038
25067
  };
25039
25068
 
@@ -25061,7 +25090,7 @@ var ProcessingFee = function ProcessingFee(_ref) {
25061
25090
  }));
25062
25091
  };
25063
25092
 
25064
- var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$r, "default");
25093
+ var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$s, "default");
25065
25094
 
25066
25095
 
25067
25096
 
@@ -25123,7 +25152,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref) {
25123
25152
 
25124
25153
  var activeColor$5 = "".concat(MATISSE_BLUE);
25125
25154
  var inactiveColor = "".concat(GREY_CHATEAU);
25126
- var fallbackValues$s = {
25155
+ var fallbackValues$t = {
25127
25156
  activeColor: activeColor$5,
25128
25157
  inactiveColor: inactiveColor
25129
25158
  };
@@ -25213,12 +25242,12 @@ var RadioButton$1 = function RadioButton(_ref2) {
25213
25242
  })));
25214
25243
  };
25215
25244
 
25216
- var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$s);
25245
+ var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$t);
25217
25246
 
25218
25247
  var border$2 = {
25219
25248
  "default": "1px solid #caced8"
25220
25249
  };
25221
- var fallbackValues$t = {
25250
+ var fallbackValues$u = {
25222
25251
  border: border$2
25223
25252
  };
25224
25253
 
@@ -25293,7 +25322,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
25293
25322
  })))));
25294
25323
  };
25295
25324
 
25296
- var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$t, "default");
25325
+ var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$u, "default");
25297
25326
 
25298
25327
  var borderColor$2 = {
25299
25328
  "default": "".concat(GREY_CHATEAU)
@@ -25301,7 +25330,7 @@ var borderColor$2 = {
25301
25330
  var borderSize = {
25302
25331
  "default": "1px"
25303
25332
  };
25304
- var fallbackValues$u = {
25333
+ var fallbackValues$v = {
25305
25334
  borderColor: borderColor$2,
25306
25335
  borderSize: borderSize
25307
25336
  };
@@ -25318,7 +25347,7 @@ var SolidDivider = function SolidDivider(_ref) {
25318
25347
  });
25319
25348
  };
25320
25349
 
25321
- var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$u, "default");
25350
+ var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$v, "default");
25322
25351
 
25323
25352
  var placeHolderOptionUS = {
25324
25353
  text: "Please select state",
@@ -35902,7 +35931,7 @@ var offBackground = "".concat(REGENT_GREY);
35902
35931
  var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
35903
35932
  var rightLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row;\n");
35904
35933
  var leftLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row-reverse;\n");
35905
- var fallbackValues$v = {
35934
+ var fallbackValues$w = {
35906
35935
  onBackground: onBackground,
35907
35936
  disabledBackground: disabledBackground,
35908
35937
  white: white,
@@ -36078,7 +36107,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
36078
36107
  }, label))));
36079
36108
  };
36080
36109
 
36081
- var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$v);
36110
+ var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$w);
36082
36111
 
36083
36112
  var background$1 = "".concat(ATHENS_GREY);
36084
36113
  var white$1 = "".concat(WHITE);
@@ -36127,7 +36156,7 @@ var backgroundColor$5 = WHITE;
36127
36156
  var imageBackgroundColor = INFO_BLUE;
36128
36157
  var headerBackgroundColor = STORM_GREY;
36129
36158
  var headerColor = WHITE;
36130
- var fallbackValues$w = {
36159
+ var fallbackValues$x = {
36131
36160
  backgroundColor: backgroundColor$5,
36132
36161
  imageBackgroundColor: imageBackgroundColor,
36133
36162
  headerBackgroundColor: headerBackgroundColor,
@@ -36150,11 +36179,11 @@ var CardImage = styled__default.img.withConfig({
36150
36179
 
36151
36180
  var titleColor = BRIGHT_GREY;
36152
36181
  var titleWeight = FONT_WEIGHT_BOLD;
36153
- var textColor$2 = BRIGHT_GREY;
36154
- var fallbackValues$x = {
36182
+ var textColor$3 = BRIGHT_GREY;
36183
+ var fallbackValues$y = {
36155
36184
  titleColor: titleColor,
36156
36185
  titleWeight: titleWeight,
36157
- textColor: textColor$2
36186
+ textColor: textColor$3
36158
36187
  };
36159
36188
 
36160
36189
  var CardText = function CardText(_ref) {
@@ -36175,7 +36204,7 @@ var CardText = function CardText(_ref) {
36175
36204
  color: themeValues.textColor
36176
36205
  }, text))));
36177
36206
  };
36178
- var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$x);
36207
+ var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$y);
36179
36208
 
36180
36209
  var CardHeader = function CardHeader(_ref) {
36181
36210
  var backgroundColor = _ref.backgroundColor,
@@ -36272,12 +36301,12 @@ var Card = function Card(_ref) {
36272
36301
  }), children)));
36273
36302
  };
36274
36303
 
36275
- var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$w);
36304
+ var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
36276
36305
 
36277
36306
  var fontFamily$6 = "Public Sans, sans-serif";
36278
36307
  var activeColor$6 = MATISSE_BLUE;
36279
36308
  var linkColor$3 = CHARADE_GREY;
36280
- var fallbackValues$y = {
36309
+ var fallbackValues$z = {
36281
36310
  fontFamily: fontFamily$6,
36282
36311
  activeColor: activeColor$6,
36283
36312
  linkColor: linkColor$3
@@ -36310,7 +36339,7 @@ var NavTab = function NavTab(_ref) {
36310
36339
  }, label));
36311
36340
  };
36312
36341
 
36313
- var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$y);
36342
+ var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$z);
36314
36343
 
36315
36344
  var NavTabs = function NavTabs(_ref) {
36316
36345
  var tabsConfig = _ref.tabsConfig,
@@ -38268,7 +38297,7 @@ AddressForm.mapStateToProps = mapStateToProps$1;
38268
38297
  AddressForm.mapDispatchToProps = mapDispatchToProps;
38269
38298
 
38270
38299
  var backgroundColor$6 = "#ebeffb";
38271
- var fallbackValues$z = {
38300
+ var fallbackValues$A = {
38272
38301
  backgroundColor: backgroundColor$6
38273
38302
  };
38274
38303
 
@@ -38320,7 +38349,7 @@ var Banner = function Banner(_ref) {
38320
38349
  }, /*#__PURE__*/React__default.createElement(Image, null))));
38321
38350
  };
38322
38351
 
38323
- var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$z);
38352
+ var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$A);
38324
38353
 
38325
38354
  var ChangePasswordForm = function ChangePasswordForm(_ref) {
38326
38355
  var _newPasswordErrorMess;
@@ -38462,7 +38491,7 @@ ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
38462
38491
  var titleColor$1 = "#292A33";
38463
38492
  var headingBackgroundColor = "transparent";
38464
38493
  var bodyBackgroundColor = "transparent";
38465
- var fallbackValues$A = {
38494
+ var fallbackValues$B = {
38466
38495
  titleColor: titleColor$1,
38467
38496
  headingBackgroundColor: headingBackgroundColor,
38468
38497
  bodyBackgroundColor: bodyBackgroundColor
@@ -38589,7 +38618,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
38589
38618
  }, children))));
38590
38619
  };
38591
38620
 
38592
- var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$A);
38621
+ var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$B);
38593
38622
 
38594
38623
  var ClipboardIcon = function ClipboardIcon(_ref) {
38595
38624
  var themeValues = _ref.themeValues;
@@ -39175,7 +39204,7 @@ EmailForm.mapDispatchToProps = mapDispatchToProps$3;
39175
39204
 
39176
39205
  var footerBackgroundColor = BRIGHT_GREY;
39177
39206
  var subfooterBackgroundColor = STORM_GREY;
39178
- var fallbackValues$B = {
39207
+ var fallbackValues$C = {
39179
39208
  footerBackgroundColor: footerBackgroundColor,
39180
39209
  subfooterBackgroundColor: subfooterBackgroundColor
39181
39210
  };
@@ -39207,7 +39236,7 @@ var FooterWithSubfooter = function FooterWithSubfooter(_ref) {
39207
39236
  }));
39208
39237
  };
39209
39238
 
39210
- var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$B);
39239
+ var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$C);
39211
39240
 
39212
39241
  var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
39213
39242
  var _EmailErrorMessages;
@@ -39257,10 +39286,10 @@ ForgotPasswordForm.reducer = reducer$4;
39257
39286
  ForgotPasswordForm.mapStateToProps = mapStateToProps$5;
39258
39287
  ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
39259
39288
 
39260
- var textColor$3 = "#ffffff";
39289
+ var textColor$4 = "#ffffff";
39261
39290
  var backgroundColor$7 = "#182848";
39262
- var fallbackValues$C = {
39263
- textColor: textColor$3,
39291
+ var fallbackValues$D = {
39292
+ textColor: textColor$4,
39264
39293
  backgroundColor: backgroundColor$7
39265
39294
  };
39266
39295
 
@@ -39316,7 +39345,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
39316
39345
  }), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
39317
39346
  };
39318
39347
 
39319
- var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$C));
39348
+ var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$D));
39320
39349
 
39321
39350
  var AccountBillIcon = function AccountBillIcon() {
39322
39351
  return /*#__PURE__*/React__default.createElement("svg", {
@@ -44468,7 +44497,7 @@ var backgroundColor$8 = {
44468
44497
  largeTitle: WHITE,
44469
44498
  small: WHITE
44470
44499
  };
44471
- var fallbackValues$D = {
44500
+ var fallbackValues$E = {
44472
44501
  fontSize: fontSize$9,
44473
44502
  fontWeight: fontWeight$5,
44474
44503
  fontColor: fontColor,
@@ -44527,7 +44556,7 @@ var Module = function Module(_ref) {
44527
44556
  }, children)));
44528
44557
  };
44529
44558
 
44530
- var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$D, "default"));
44559
+ var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$E, "default"));
44531
44560
 
44532
44561
  var backgroundColor$9 = {
44533
44562
  profile: "#3b414d",
@@ -44537,7 +44566,7 @@ var shadowColor = {
44537
44566
  profile: "#292A33",
44538
44567
  cms: "#292A33"
44539
44568
  };
44540
- var fallbackValues$E = {
44569
+ var fallbackValues$F = {
44541
44570
  backgroundColor: backgroundColor$9,
44542
44571
  shadowColor: shadowColor
44543
44572
  };
@@ -44578,7 +44607,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
44578
44607
  }, menuContent));
44579
44608
  };
44580
44609
 
44581
- var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$E, "profile");
44610
+ var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$F, "profile");
44582
44611
 
44583
44612
  var menu = posed.div({
44584
44613
  invisible: {
@@ -44634,7 +44663,11 @@ var NavMenuMobile = function NavMenuMobile(_ref) {
44634
44663
  }, menuContent));
44635
44664
  };
44636
44665
 
44637
- var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$E, "profile");
44666
+ var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$F, "profile");
44667
+
44668
+ var ACH_METHOD = "BANK_ACCOUNT";
44669
+ var CC_METHOD = "CREDIT_CARD";
44670
+ var CASH_METHOD = "CASH";
44638
44671
 
44639
44672
  var IconsModule = function IconsModule(_ref) {
44640
44673
  var icon = _ref.icon,
@@ -44691,7 +44724,7 @@ var activeColor$7 = "#0E506D";
44691
44724
  var linkColor$4 = "#3176AA";
44692
44725
  var fontWeight$6 = FONT_WEIGHT_REGULAR;
44693
44726
  var modalLinkHoverFocus = "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;";
44694
- var fallbackValues$F = {
44727
+ var fallbackValues$G = {
44695
44728
  color: color$a,
44696
44729
  hoverColor: hoverColor$5,
44697
44730
  activeColor: activeColor$7,
@@ -44715,13 +44748,27 @@ var AutopayModal = function AutopayModal(_ref) {
44715
44748
  isPaymentPlan = _ref.isPaymentPlan,
44716
44749
  nextAutopayDate = _ref.nextAutopayDate,
44717
44750
  dueDate = _ref.dueDate,
44718
- inactive = _ref.inactive;
44719
- var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
44751
+ inactive = _ref.inactive,
44752
+ description = _ref.description,
44753
+ subDescription = _ref.subDescription,
44754
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments;
44755
+
44756
+ var generateMethodNeededText = function generateMethodNeededText(planText, allowedPaymentInstruments) {
44757
+ var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
44758
+ var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
44759
+ var methodRequired = allowsCard && !allowsACH ? "debit or credit card payment method" : !allowsCard && allowsACH ? "checking account payment method" : "payment method";
44760
+ return "To setup ".concat(planText, " you must have a saved ").concat(methodRequired, " and address in your profile. Do you want to save these now?");
44761
+ };
44762
+
44763
+ var plan = isPaymentPlan ? "your payment plan" : "autopay";
44764
+ var shortPlan = isPaymentPlan ? "Payment Plan" : "Autopay";
44765
+ var deactivateText = "deactivate ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
44766
+ var activateText = "Set Up ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
44720
44767
  var nextDate = dueDate || nextAutopayDate;
44721
44768
  var modalExtraProps = {
44722
- modalHeaderText: autoPayActive ? "Deactivate ".concat(planType) : "Set Up ".concat(planType),
44723
- modalBodyText: autoPayActive ? "Are you sure you want to deactivate ".concat(isPaymentPlan ? "your payment plan" : "autopay", "? ").concat(!inactive && nextDate ? "Your next payment will be due on ".concat(nextDate, ".") : "") : "To set up ".concat(isPaymentPlan ? "a payment plan" : "autopay", " you must save a payment method and address in your profile. Do you want to save these now?"),
44724
- continueButtonText: autoPayActive ? "Disable ".concat(planType) : "Add to Profile",
44769
+ modalHeaderText: autoPayActive ? titleCaseString(deactivateText) : titleCaseString(activateText),
44770
+ modalBodyText: autoPayActive ? "Are you sure you want to deactivate ".concat(plan, "? ").concat(!inactive && nextDate ? "Your next payment will be due on ".concat(nextDate, ".") : "") : generateMethodNeededText(plan, allowedPaymentInstruments),
44771
+ continueButtonText: autoPayActive ? "Disable ".concat(shortPlan) : "Add to Profile",
44725
44772
  useDangerButton: autoPayActive,
44726
44773
  continueAction: autoPayActive ? function () {
44727
44774
  deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
@@ -44737,7 +44784,7 @@ var AutopayModal = function AutopayModal(_ref) {
44737
44784
  case "secondary":
44738
44785
  {
44739
44786
  return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
44740
- text: autoPayActive ? "Turn off ".concat(planType) : "Set Up ".concat(planType),
44787
+ text: autoPayActive ? "Turn off ".concat(shortPlan) : "Set Up ".concat(shortPlan),
44741
44788
  variant: "secondary",
44742
44789
  action: function action() {
44743
44790
  toggleModal(true);
@@ -44750,7 +44797,7 @@ var AutopayModal = function AutopayModal(_ref) {
44750
44797
  case "tertiary":
44751
44798
  {
44752
44799
  return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
44753
- text: autoPayActive ? "Manage ".concat(planType) : "Set Up ".concat(planType),
44800
+ text: autoPayActive ? "Manage ".concat(shortPlan) : "Set Up ".concat(shortPlan),
44754
44801
  variant: "tertiary",
44755
44802
  action: function action() {
44756
44803
  toggleModal(true);
@@ -44782,12 +44829,12 @@ var AutopayModal = function AutopayModal(_ref) {
44782
44829
  e.key === "Enter" && toggleModal(true);
44783
44830
  },
44784
44831
  tabIndex: "0",
44785
- dataQa: "".concat(planType, " On"),
44832
+ dataQa: "".concat(shortPlan, " On"),
44786
44833
  color: SEA_GREEN,
44787
44834
  weight: themeValues.fontWeight,
44788
44835
  hoverStyles: themeValues.modalLinkHoverFocus,
44789
44836
  extraStyles: "padding-left: 0.25rem;"
44790
- }, "".concat(planType, " ").concat(nextAutopayDate))));
44837
+ }, "".concat(shortPlan, " ").concat(nextAutopayDate))));
44791
44838
  }
44792
44839
  }
44793
44840
  };
@@ -44803,7 +44850,7 @@ var AutopayModal = function AutopayModal(_ref) {
44803
44850
  }, modalExtraProps), renderAutoPayControl());
44804
44851
  };
44805
44852
 
44806
- var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$F);
44853
+ var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$G);
44807
44854
 
44808
44855
  var AmountModule = function AmountModule(_ref) {
44809
44856
  var totalAmountDue = _ref.totalAmountDue,
@@ -44814,7 +44861,10 @@ var AmountModule = function AmountModule(_ref) {
44814
44861
  autoPaySchedule = _ref.autoPaySchedule,
44815
44862
  paymentPlanSchedule = _ref.paymentPlanSchedule,
44816
44863
  isPaymentPlan = _ref.isPaymentPlan,
44817
- nextAutopayDate = _ref.nextAutopayDate;
44864
+ nextAutopayDate = _ref.nextAutopayDate,
44865
+ description = _ref.description,
44866
+ subDescription = _ref.subDescription,
44867
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments;
44818
44868
 
44819
44869
  var _useState = React.useState(false),
44820
44870
  _useState2 = _slicedToArray(_useState, 2),
@@ -44843,7 +44893,10 @@ var AmountModule = function AmountModule(_ref) {
44843
44893
  paymentPlanSchedule: paymentPlanSchedule,
44844
44894
  isPaymentPlan: isPaymentPlan,
44845
44895
  nextAutopayDate: nextAutopayDate,
44846
- controlType: "link"
44896
+ controlType: "link",
44897
+ description: description,
44898
+ subDescription: subDescription,
44899
+ allowedPaymentInstruments: allowedPaymentInstruments
44847
44900
  })));
44848
44901
  };
44849
44902
 
@@ -44862,7 +44915,10 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
44862
44915
  isPaymentPlan = _ref.isPaymentPlan,
44863
44916
  nextAutopayDate = _ref.nextAutopayDate,
44864
44917
  obligationAssocID = _ref.obligationAssocID,
44865
- dueDate = _ref.dueDate;
44918
+ dueDate = _ref.dueDate,
44919
+ description = _ref.description,
44920
+ subDescription = _ref.subDescription,
44921
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments;
44866
44922
  var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
44867
44923
 
44868
44924
  var _useState = React.useState(false),
@@ -44918,7 +44974,10 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
44918
44974
  autoPaySchedule: autoPaySchedule,
44919
44975
  paymentPlanSchedule: paymentPlanSchedule,
44920
44976
  isPaymentPlan: isPaymentPlan,
44921
- nextAutopayDate: nextAutopayDate
44977
+ nextAutopayDate: nextAutopayDate,
44978
+ description: description,
44979
+ subDescription: subDescription,
44980
+ allowedPaymentInstruments: allowedPaymentInstruments
44922
44981
  }))), /*#__PURE__*/React__default.createElement(Box, {
44923
44982
  padding: isMobile ? "16px" : "0"
44924
44983
  }, /*#__PURE__*/React__default.createElement(Cluster, {
@@ -44958,7 +45017,10 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
44958
45017
  paymentPlanSchedule: paymentPlanSchedule,
44959
45018
  isPaymentPlan: isPaymentPlan,
44960
45019
  nextAutopayDate: nextAutopayDate,
44961
- dueDate: dueDate
45020
+ dueDate: dueDate,
45021
+ description: description,
45022
+ subDescription: subDescription,
45023
+ allowedPaymentInstruments: allowedPaymentInstruments
44962
45024
  })), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
44963
45025
  padding: "0"
44964
45026
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
@@ -45048,7 +45110,10 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
45048
45110
  dueDate = _ref.dueDate,
45049
45111
  agencyName = _ref.agencyName,
45050
45112
  configType = _ref.configType,
45051
- actions = _ref.actions;
45113
+ actions = _ref.actions,
45114
+ description = _ref.description,
45115
+ subDescription = _ref.subDescription,
45116
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments;
45052
45117
 
45053
45118
  var _useState = React.useState(false),
45054
45119
  _useState2 = _slicedToArray(_useState, 2),
@@ -45087,7 +45152,10 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
45087
45152
  obligationAssocID: obligationAssocID,
45088
45153
  dueDate: dueDate,
45089
45154
  controlType: "secondary",
45090
- inactive: true
45155
+ inactive: true,
45156
+ description: description,
45157
+ subDescription: subDescription,
45158
+ allowedPaymentInstruments: allowedPaymentInstruments
45091
45159
  })), /*#__PURE__*/React__default.createElement(Box, {
45092
45160
  padding: "0",
45093
45161
  extraStyles: "flex-grow: 1;"
@@ -45129,7 +45197,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
45129
45197
  };
45130
45198
 
45131
45199
  var Obligation = function Obligation(_ref) {
45132
- var _firstObligation$cust, _firstObligation$desc, _firstObligation$subD;
45200
+ var _obligations$, _firstObligation$cust;
45133
45201
 
45134
45202
  var config = _ref.config,
45135
45203
  obligations = _ref.obligations,
@@ -45164,7 +45232,13 @@ var Obligation = function Obligation(_ref) {
45164
45232
  The top level desc/subdesc for all obligations in a collection is the same
45165
45233
  (Collection accounts look different in the Account Details page)
45166
45234
  */
45167
- var firstObligation = obligations[0];
45235
+ var firstObligation = (_obligations$ = obligations === null || obligations === void 0 ? void 0 : obligations[0]) !== null && _obligations$ !== void 0 ? _obligations$ : {};
45236
+ var _firstObligation$allo = firstObligation.allowedPaymentInstruments,
45237
+ allowedPaymentInstruments = _firstObligation$allo === void 0 ? [CASH_METHOD, CC_METHOD, ACH_METHOD] : _firstObligation$allo,
45238
+ _firstObligation$desc = firstObligation.description,
45239
+ description = _firstObligation$desc === void 0 ? "Account" : _firstObligation$desc,
45240
+ _firstObligation$subD = firstObligation.subDescription,
45241
+ subDescription = _firstObligation$subD === void 0 ? obligationAssocID : _firstObligation$subD;
45168
45242
  var customAttributes = (_firstObligation$cust = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.customAttributes) !== null && _firstObligation$cust !== void 0 ? _firstObligation$cust : {};
45169
45243
  var boxShadowValue = "0px 2px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
45170
45244
  var activeObligation = /*#__PURE__*/React__default.createElement(Box, {
@@ -45172,7 +45246,7 @@ var Obligation = function Obligation(_ref) {
45172
45246
  borderRadius: "4px",
45173
45247
  boxShadow: boxShadowValue,
45174
45248
  as: "section",
45175
- "aria-label": "".concat((_firstObligation$desc = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.description) !== null && _firstObligation$desc !== void 0 ? _firstObligation$desc : "account", " ").concat((_firstObligation$subD = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.subDescription) !== null && _firstObligation$subD !== void 0 ? _firstObligation$subD : obligationAssocID),
45249
+ "aria-label": "".concat(description, " - ").concat(subDescription),
45176
45250
  border: "1px solid ".concat(GRECIAN_GREY),
45177
45251
  borderWidthOverride: "1px 0 0 0"
45178
45252
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -45201,8 +45275,8 @@ var Obligation = function Obligation(_ref) {
45201
45275
  iconValue: config.iconValue,
45202
45276
  customAttributes: customAttributes
45203
45277
  }), /*#__PURE__*/React__default.createElement(TitleModule, {
45204
- title: firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.description,
45205
- subtitle: firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.subDescription,
45278
+ title: description,
45279
+ subtitle: subDescription,
45206
45280
  titleColor: BRIGHT_GREY,
45207
45281
  isMobile: isMobile
45208
45282
  }))), !isMobile && /*#__PURE__*/React__default.createElement(AmountModule, {
@@ -45216,7 +45290,10 @@ var Obligation = function Obligation(_ref) {
45216
45290
  autoPaySchedule: autoPaySchedule,
45217
45291
  paymentPlanSchedule: paymentPlanSchedule,
45218
45292
  isPaymentPlan: isPaymentPlan,
45219
- nextAutopayDate: nextAutopayDate
45293
+ nextAutopayDate: nextAutopayDate,
45294
+ description: description,
45295
+ subDescription: subDescription,
45296
+ allowedPaymentInstruments: allowedPaymentInstruments
45220
45297
  }))), !isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
45221
45298
  obligations: obligations,
45222
45299
  autoPayEnabled: autoPayEnabled,
@@ -45231,7 +45308,10 @@ var Obligation = function Obligation(_ref) {
45231
45308
  isMobile: isMobile,
45232
45309
  isPaymentPlan: isPaymentPlan,
45233
45310
  nextAutopayDate: nextAutopayDate,
45234
- obligationAssocID: obligationAssocID
45311
+ obligationAssocID: obligationAssocID,
45312
+ description: description,
45313
+ subDescription: subDescription,
45314
+ allowedPaymentInstruments: allowedPaymentInstruments
45235
45315
  }))), isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
45236
45316
  obligations: obligations,
45237
45317
  autoPayEnabled: autoPayEnabled,
@@ -45246,7 +45326,10 @@ var Obligation = function Obligation(_ref) {
45246
45326
  isMobile: isMobile,
45247
45327
  isPaymentPlan: isPaymentPlan,
45248
45328
  nextAutopayDate: nextAutopayDate,
45249
- obligationAssocID: obligationAssocID
45329
+ obligationAssocID: obligationAssocID,
45330
+ description: description,
45331
+ subDescription: subDescription,
45332
+ allowedPaymentInstruments: allowedPaymentInstruments
45250
45333
  }));
45251
45334
  var inactiveObligation = /*#__PURE__*/React__default.createElement(Box, {
45252
45335
  padding: "0",
@@ -45299,7 +45382,10 @@ var Obligation = function Obligation(_ref) {
45299
45382
  obligationAssocID: obligationAssocID,
45300
45383
  dueDate: dueDate,
45301
45384
  agencyName: agencyName,
45302
- configType: config.type
45385
+ configType: config.type,
45386
+ description: description,
45387
+ subDescription: subDescription,
45388
+ allowedPaymentInstruments: allowedPaymentInstruments
45303
45389
  }))), isMobile && /*#__PURE__*/React__default.createElement(InactiveControlsModule, {
45304
45390
  obligations: obligations,
45305
45391
  autoPayEnabled: autoPayEnabled,
@@ -45313,7 +45399,10 @@ var Obligation = function Obligation(_ref) {
45313
45399
  obligationAssocID: obligationAssocID,
45314
45400
  dueDate: dueDate,
45315
45401
  agencyName: agencyName,
45316
- configType: config.type
45402
+ configType: config.type,
45403
+ description: description,
45404
+ subDescription: subDescription,
45405
+ allowedPaymentInstruments: allowedPaymentInstruments
45317
45406
  }))));
45318
45407
  return inactive ? inactiveObligation : activeObligation;
45319
45408
  };
@@ -45615,7 +45704,7 @@ var labeledAmountTotal = {
45615
45704
  "default": "h6",
45616
45705
  small: "p"
45617
45706
  };
45618
- var fallbackValues$G = {
45707
+ var fallbackValues$H = {
45619
45708
  backgroundColor: backgroundColor$a,
45620
45709
  lineItem: lineItem,
45621
45710
  labeledAmountSubtotal: labeledAmountSubtotal,
@@ -45866,7 +45955,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
45866
45955
  });
45867
45956
  };
45868
45957
 
45869
- var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$G, "default");
45958
+ var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$H, "default");
45870
45959
 
45871
45960
  var linkColor$5 = {
45872
45961
  "default": "#3176AA"
@@ -45883,7 +45972,7 @@ var fontWeight$7 = {
45883
45972
  var modalLinkHoverFocus$1 = {
45884
45973
  "default": "outline: none; text-decoration: underline;"
45885
45974
  };
45886
- var fallbackValues$H = {
45975
+ var fallbackValues$I = {
45887
45976
  linkColor: linkColor$5,
45888
45977
  fontSize: fontSize$a,
45889
45978
  lineHeight: lineHeight$4,
@@ -45942,7 +46031,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
45942
46031
  }, link));
45943
46032
  };
45944
46033
 
45945
- var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$H, "default");
46034
+ var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$I, "default");
45946
46035
 
45947
46036
  var PaymentFormACH = function PaymentFormACH(_ref) {
45948
46037
  var _routingNumberErrors, _accountNumberErrors;
@@ -46538,7 +46627,7 @@ var RadioGroup = function RadioGroup(_ref) {
46538
46627
  groupName: groupName,
46539
46628
  setValue: setValue,
46540
46629
  handleChange: handleChange,
46541
- "aria-invalid": field.dirty && field.hasErrors || field.hasErrors
46630
+ "aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors
46542
46631
  }));
46543
46632
  })));
46544
46633
  };
@@ -46548,7 +46637,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
46548
46637
  var bodyBackgroundColor$1 = "#eeeeee";
46549
46638
  var borderColor$3 = "".concat(GREY_CHATEAU);
46550
46639
  var focusStyles = "outline: none;";
46551
- var fallbackValues$I = {
46640
+ var fallbackValues$J = {
46552
46641
  headingBackgroundColor: headingBackgroundColor$1,
46553
46642
  headingDisabledColor: headingDisabledColor,
46554
46643
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -46565,7 +46654,8 @@ var fallbackValues$I = {
46565
46654
  hideRadioButton: boolean, (keeps section displayed but hides radio and disables open/close function),
46566
46655
  hidden: boolean, (hides section entirely)
46567
46656
  dataQa: string,
46568
- content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work)
46657
+ content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work),
46658
+ rightTitleContent: <React Component(s)> (rendered on the very right of the title section, use to supplement "rightIcons" with text, as in expired CC status, or render other custom content)
46569
46659
  }
46570
46660
 
46571
46661
  Also takes an "openSection" which should equal the id of the section that should be open
@@ -46578,10 +46668,6 @@ var fallbackValues$I = {
46578
46668
 
46579
46669
  */
46580
46670
 
46581
- var ACTIVE$2 = "ACTIVE";
46582
- var EXPIRING_SOON$1 = "EXPIRING_SOON";
46583
- var EXPIRED$2 = "EXPIRED";
46584
-
46585
46671
  var RadioSection = function RadioSection(_ref) {
46586
46672
  var themeValues = _ref.themeValues,
46587
46673
  isMobile = _ref.isMobile,
@@ -46604,34 +46690,6 @@ var RadioSection = function RadioSection(_ref) {
46604
46690
  }
46605
46691
  };
46606
46692
 
46607
- var renderCardStatus = function renderCardStatus(item) {
46608
- var expirationStatus = item.expirationStatus,
46609
- expireDate = item.expireDate;
46610
-
46611
- switch (expirationStatus) {
46612
- case ACTIVE$2:
46613
- return /*#__PURE__*/React__default.createElement(Text$1, {
46614
- variant: "pXS",
46615
- color: ASH_GREY,
46616
- extraStyles: "text-align: right;"
46617
- }, "Exp Date ", expireDate);
46618
-
46619
- case EXPIRING_SOON$1:
46620
- return /*#__PURE__*/React__default.createElement(Text$1, {
46621
- variant: "pXS",
46622
- color: FIRE_YELLOW,
46623
- extraStyles: "text-align: right;"
46624
- }, "Expiring Soon ", expireDate);
46625
-
46626
- case EXPIRED$2:
46627
- return /*#__PURE__*/React__default.createElement(Text$1, {
46628
- variant: "pXS",
46629
- color: ASH_GREY,
46630
- extraStyles: "text-align: right;"
46631
- }, "Expired");
46632
- }
46633
- };
46634
-
46635
46693
  var wrapper = {
46636
46694
  open: {
46637
46695
  height: openHeight,
@@ -46685,13 +46743,13 @@ var RadioSection = function RadioSection(_ref) {
46685
46743
  return /*#__PURE__*/React__default.createElement(Motion, {
46686
46744
  tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
46687
46745
  onKeyDown: function onKeyDown(e) {
46688
- return handleKeyDown(section.id, e);
46746
+ return !section.disabled && handleKeyDown(section.id, e);
46689
46747
  },
46690
46748
  onFocus: function onFocus() {
46691
- return setFocused(section.id);
46749
+ return !section.disabled && setFocused(section.id);
46692
46750
  },
46693
46751
  onBlur: function onBlur() {
46694
- return setFocused(null);
46752
+ return !section.disabled && setFocused(null);
46695
46753
  },
46696
46754
  hoverStyles: themeValues.focusStyles,
46697
46755
  animate: openSection === section.id ? "open" : "closed",
@@ -46706,7 +46764,7 @@ var RadioSection = function RadioSection(_ref) {
46706
46764
  onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
46707
46765
  return toggleOpenSection(section.id);
46708
46766
  },
46709
- onTouchEnd: isMobile && supportsTouch || !section.disabled ? function () {
46767
+ onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
46710
46768
  return toggleOpenSection(section.id);
46711
46769
  } : noop,
46712
46770
  key: "header-".concat(section.id),
@@ -46751,7 +46809,7 @@ var RadioSection = function RadioSection(_ref) {
46751
46809
  isMobile: isMobile,
46752
46810
  alt: icon.altText
46753
46811
  });
46754
- })), section.shouldDisplayCardExpiration && /*#__PURE__*/React__default.createElement(React.Fragment, null, renderCardStatus(section)))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
46812
+ })), section.rightTitleContent && /*#__PURE__*/React__default.createElement(React.Fragment, null, rightTitleContent))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
46755
46813
  initial: false
46756
46814
  }, openSection === section.id && /*#__PURE__*/React__default.createElement(Motion, {
46757
46815
  key: "content-".concat(section.id),
@@ -46767,7 +46825,7 @@ var RadioSection = function RadioSection(_ref) {
46767
46825
  })));
46768
46826
  };
46769
46827
 
46770
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$I);
46828
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$J);
46771
46829
 
46772
46830
  var RegistrationForm = function RegistrationForm(_ref) {
46773
46831
  var _emailErrorMessages, _passwordErrorMessage;
@@ -47064,7 +47122,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
47064
47122
  var activeTabBackground = "#FFFFFF";
47065
47123
  var activeTabAccent = "#15749D";
47066
47124
  var activeTabHover = "#B8D5E1";
47067
- var fallbackValues$J = {
47125
+ var fallbackValues$K = {
47068
47126
  activeTabBackground: activeTabBackground,
47069
47127
  activeTabAccent: activeTabAccent,
47070
47128
  activeTabHover: activeTabHover
@@ -47143,12 +47201,12 @@ var Tabs = function Tabs(_ref) {
47143
47201
  }))));
47144
47202
  };
47145
47203
 
47146
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$J);
47204
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$K);
47147
47205
 
47148
47206
  var activeTabBackground$1 = "#FFFFFF";
47149
47207
  var activeTabAccent$1 = "#15749D";
47150
47208
  var activeTabHover$1 = "#B8D5E1";
47151
- var fallbackValues$K = {
47209
+ var fallbackValues$L = {
47152
47210
  activeTabBackground: activeTabBackground$1,
47153
47211
  activeTabAccent: activeTabAccent$1,
47154
47212
  activeTabHover: activeTabHover$1
@@ -47204,7 +47262,7 @@ var TabSidebar = function TabSidebar(_ref) {
47204
47262
  })));
47205
47263
  };
47206
47264
 
47207
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$K);
47265
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$L);
47208
47266
 
47209
47267
  var backgroundColor$b = {
47210
47268
  "default": "#ffffff",
@@ -47235,7 +47293,7 @@ var modalLinkHoverFocus$2 = {
47235
47293
  "default": standardInteractionStyles,
47236
47294
  footer: standardInteractionStyles
47237
47295
  };
47238
- var fallbackValues$L = {
47296
+ var fallbackValues$M = {
47239
47297
  backgroundColor: backgroundColor$b,
47240
47298
  linkColor: linkColor$6,
47241
47299
  border: border$3,
@@ -47297,7 +47355,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47297
47355
  }, link));
47298
47356
  };
47299
47357
 
47300
- var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$L, "default");
47358
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
47301
47359
 
47302
47360
  var TermsAndConditions = function TermsAndConditions(_ref) {
47303
47361
  var onCheck = _ref.onCheck,
@@ -47372,7 +47430,7 @@ var fontColor$1 = WHITE;
47372
47430
  var textAlign$1 = "left";
47373
47431
  var headerBackgroundColor$1 = BRIGHT_GREY;
47374
47432
  var imageBackgroundColor$1 = MATISSE_BLUE;
47375
- var fallbackValues$M = {
47433
+ var fallbackValues$N = {
47376
47434
  fontWeight: fontWeight$9,
47377
47435
  fontColor: fontColor$1,
47378
47436
  textAlign: textAlign$1,
@@ -47419,7 +47477,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
47419
47477
  })))));
47420
47478
  };
47421
47479
 
47422
- var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$M));
47480
+ var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$N));
47423
47481
 
47424
47482
  var WorkflowTile = function WorkflowTile(_ref) {
47425
47483
  var _ref$workflowName = _ref.workflowName,
@@ -47474,7 +47532,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
47474
47532
  };
47475
47533
 
47476
47534
  var pageBackground = "#FBFCFD";
47477
- var fallbackValues$N = {
47535
+ var fallbackValues$O = {
47478
47536
  pageBackground: pageBackground
47479
47537
  };
47480
47538
 
@@ -47521,7 +47579,7 @@ var CenterSingle = function CenterSingle(_ref) {
47521
47579
  })));
47522
47580
  };
47523
47581
 
47524
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$N));
47582
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$O));
47525
47583
 
47526
47584
  var CenterStack = function CenterStack(_ref) {
47527
47585
  var header = _ref.header,
@@ -47563,7 +47621,7 @@ var CenterStack = function CenterStack(_ref) {
47563
47621
  })));
47564
47622
  };
47565
47623
 
47566
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$N));
47624
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$O));
47567
47625
 
47568
47626
  var CenterSingle$2 = function CenterSingle(_ref) {
47569
47627
  var header = _ref.header,
@@ -47608,7 +47666,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
47608
47666
  })));
47609
47667
  };
47610
47668
 
47611
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$N));
47669
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$O));
47612
47670
 
47613
47671
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
47614
47672
  var header = _ref.header,
@@ -47662,7 +47720,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
47662
47720
  })));
47663
47721
  };
47664
47722
 
47665
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$N));
47723
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$O));
47666
47724
 
47667
47725
  var SidebarStackContent = function SidebarStackContent(_ref) {
47668
47726
  var header = _ref.header,
@@ -47733,7 +47791,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
47733
47791
  })));
47734
47792
  };
47735
47793
 
47736
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$N));
47794
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$O));
47737
47795
 
47738
47796
  exports.AccountNumberImage = AccountNumberImage;
47739
47797
  exports.AccountsAddIcon = AccountsAddIcon$1;
@@ -47800,6 +47858,7 @@ exports.FormInputColumn = FormInputColumn;
47800
47858
  exports.FormInputRow = FormInputRow;
47801
47859
  exports.FormSelect = FormSelect$1;
47802
47860
  exports.FormattedAddress = FormattedAddress$1;
47861
+ exports.FormattedBankAccount = FormattedBankAccount$1;
47803
47862
  exports.FormattedCreditCard = FormattedCreditCard$1;
47804
47863
  exports.Frame = Frame;
47805
47864
  exports.GenericCard = GenericCard;
@@ -47841,7 +47900,6 @@ exports.PaymentButtonBar = PaymentButtonBar;
47841
47900
  exports.PaymentDetails = PaymentDetails$1;
47842
47901
  exports.PaymentFormACH = PaymentFormACH;
47843
47902
  exports.PaymentFormCard = PaymentFormCard$1;
47844
- exports.PaymentIcon = PaymentIcon;
47845
47903
  exports.PaymentMethodAddIcon = PaymentMethodAddIcon$1;
47846
47904
  exports.PaymentMethodIcon = PaymentMethodIcon$1;
47847
47905
  exports.PaymentSearchIcon = PaymentSearchIcon;