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

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,47 @@ 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
+ var ACTIVE = "ACTIVE";
6333
+ var EXPIRING_SOON = "EXPIRING_SOON";
6334
+ var EXPIRED = "EXPIRED";
6335
+
6336
+ switch (expirationStatus) {
6337
+ case ACTIVE:
6338
+ return /*#__PURE__*/React__default.createElement(Text$1, {
6339
+ as: as,
6340
+ variant: "pXS",
6341
+ color: ASH_GREY,
6342
+ extraStyles: "text-align: ".concat(textAlign, ";")
6343
+ }, "Exp Date ", expireDate);
6344
+
6345
+ case EXPIRING_SOON:
6346
+ return /*#__PURE__*/React__default.createElement(Text$1, {
6347
+ as: as,
6348
+ variant: "pXS",
6349
+ color: FIRE_YELLOW,
6350
+ extraStyles: "text-align: ".concat(textAlign, ";")
6351
+ }, "Expiring Soon ", expireDate);
6352
+
6353
+ case EXPIRED:
6354
+ return /*#__PURE__*/React__default.createElement(Text$1, {
6355
+ as: as,
6356
+ variant: "pXS",
6357
+ color: ASH_GREY,
6358
+ extraStyles: "text-align: ".concat(textAlign, ";")
6359
+ }, "Expired");
6360
+ }
6361
+ };
6321
6362
 
6322
6363
  var general = /*#__PURE__*/Object.freeze({
6323
6364
  __proto__: null,
@@ -6335,7 +6376,10 @@ var general = /*#__PURE__*/Object.freeze({
6335
6376
  inputPlaceholderTextStyle: inputPlaceholderTextStyle,
6336
6377
  inputDisabledStyle: inputDisabledStyle,
6337
6378
  MOBILE_WIDTH: MOBILE_WIDTH,
6338
- throttle: throttle
6379
+ throttle: throttle,
6380
+ titleCaseWord: titleCaseWord,
6381
+ titleCaseString: titleCaseString,
6382
+ renderCardStatus: renderCardStatus
6339
6383
  });
6340
6384
 
6341
6385
  var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children", "variant"];
@@ -13821,33 +13865,6 @@ var GenericCard = function GenericCard() {
13821
13865
  }));
13822
13866
  };
13823
13867
 
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
13868
  var IconAdd = function IconAdd() {
13852
13869
  return /*#__PURE__*/React__default.createElement("svg", {
13853
13870
  xmlns: "http://www.w3.org/2000/svg",
@@ -24285,9 +24302,50 @@ var fallbackValues$l = {
24285
24302
  autopayTextColor: autopayTextColor
24286
24303
  };
24287
24304
 
24288
- var ACTIVE = "ACTIVE";
24289
- var EXPIRING_SOON = "EXPIRING_SOON";
24290
- var EXPIRED = "EXPIRED";
24305
+ var BankItemWrapper = styled__default.div.withConfig({
24306
+ displayName: "FormattedBankAccount__BankItemWrapper",
24307
+ componentId: "sc-18hcgw4-0"
24308
+ })(["display:flex;justify-content:flex-start;align-items:center;"]);
24309
+ var BankAccountText = styled__default.h4.withConfig({
24310
+ displayName: "FormattedBankAccount__BankAccountText",
24311
+ componentId: "sc-18hcgw4-1"
24312
+ })(["color:", ";font-size:1rem;font-weight:400;line-height:1.5rem;text-align:left;margin-right:0.5rem;display:inline-block;"], function (_ref) {
24313
+ var color = _ref.color;
24314
+ return color;
24315
+ });
24316
+ var CHECKING = "CHECKING";
24317
+ var SAVINGS = "SAVINGS";
24318
+
24319
+ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
24320
+ var lastFour = _ref2.lastFour,
24321
+ accountType = _ref2.accountType,
24322
+ autoPay = _ref2.autoPay,
24323
+ themeValues = _ref2.themeValues;
24324
+ return /*#__PURE__*/React__default.createElement(BankItemWrapper, null, /*#__PURE__*/React__default.createElement(Box, {
24325
+ padding: "0.25rem 0 0 0",
24326
+ extraStyles: "margin-right: 1rem;"
24327
+ }, /*#__PURE__*/React__default.createElement(BankIcon, null)), /*#__PURE__*/React__default.createElement(Stack, {
24328
+ childGap: "0"
24329
+ }, accountType === CHECKING && /*#__PURE__*/React__default.createElement(BankAccountText, {
24330
+ color: themeValues.textColor
24331
+ }, "Checking Account ending in ", lastFour), accountType === SAVINGS && /*#__PURE__*/React__default.createElement(BankAccountText, {
24332
+ color: themeValues.textColor
24333
+ }, "Savings Account ending in ", lastFour), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
24334
+ variant: "p",
24335
+ color: themeValues.autopayTextColor,
24336
+ extraStyles: "font-style: italic;"
24337
+ }, "Autopay Enabled")));
24338
+ };
24339
+
24340
+ var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$l);
24341
+
24342
+ var textColor$2 = "".concat(CHARADE_GREY);
24343
+ var autopayTextColor$1 = "".concat(REGENT_GREY);
24344
+ var fallbackValues$m = {
24345
+ textColor: textColor$2,
24346
+ autopayTextColor: autopayTextColor$1
24347
+ };
24348
+
24291
24349
  var CreditCardWrapper = styled__default.div.withConfig({
24292
24350
  displayName: "FormattedCreditCard__CreditCardWrapper",
24293
24351
  componentId: "sc-s0ta5l-0"
@@ -24303,32 +24361,6 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
24303
24361
  expireDate = _ref.expireDate,
24304
24362
  expirationStatus = _ref.expirationStatus,
24305
24363
  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
24364
  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
24365
  childGap: "0"
24334
24366
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -24339,14 +24371,14 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
24339
24371
  color: themeValues.textColor,
24340
24372
  textAlign: "left",
24341
24373
  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, {
24374
+ }, "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
24375
  variant: "p",
24344
24376
  color: themeValues.autopayTextColor,
24345
24377
  extraStyles: "font-style: italic;"
24346
24378
  }, "Autopay Enabled")));
24347
24379
  };
24348
24380
 
24349
- var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$l);
24381
+ var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$m);
24350
24382
 
24351
24383
  var Hamburger = styled__default.button.withConfig({
24352
24384
  displayName: "HamburgerButton__Hamburger",
@@ -24428,7 +24460,7 @@ var fontSize$8 = {
24428
24460
  h5: "1.375rem",
24429
24461
  h6: "1.25rem"
24430
24462
  };
24431
- var fallbackValues$m = {
24463
+ var fallbackValues$n = {
24432
24464
  fontFamily: fontFamily$5,
24433
24465
  fontSize: fontSize$8
24434
24466
  };
@@ -24470,7 +24502,7 @@ var Heading = function Heading(_ref) {
24470
24502
  }, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
24471
24503
  };
24472
24504
 
24473
- var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$m, "h1");
24505
+ var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$n, "h1");
24474
24506
 
24475
24507
  var Jumbo = function Jumbo(_ref) {
24476
24508
  var showButton = _ref.showButton,
@@ -24544,7 +24576,7 @@ var fontWeight$4 = {
24544
24576
  pL: "600",
24545
24577
  h6: "700"
24546
24578
  };
24547
- var fallbackValues$n = {
24579
+ var fallbackValues$o = {
24548
24580
  fontWeight: fontWeight$4
24549
24581
  };
24550
24582
 
@@ -24572,7 +24604,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
24572
24604
  }, amount));
24573
24605
  };
24574
24606
 
24575
- var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$n, "default");
24607
+ var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$o, "default");
24576
24608
 
24577
24609
  var weightTitle = {
24578
24610
  "default": "600",
@@ -24582,7 +24614,7 @@ var paragraphVariant = {
24582
24614
  "default": "pL",
24583
24615
  small: "pS"
24584
24616
  };
24585
- var fallbackValues$o = {
24617
+ var fallbackValues$p = {
24586
24618
  weightTitle: weightTitle,
24587
24619
  paragraphVariant: paragraphVariant
24588
24620
  };
@@ -24611,10 +24643,10 @@ var LineItem = function LineItem(_ref) {
24611
24643
  }, amount));
24612
24644
  };
24613
24645
 
24614
- var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$o, "default");
24646
+ var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$p, "default");
24615
24647
 
24616
24648
  var color$8 = "#15749D";
24617
- var fallbackValues$p = {
24649
+ var fallbackValues$q = {
24618
24650
  color: color$8
24619
24651
  };
24620
24652
 
@@ -24653,7 +24685,7 @@ var Spinner$1 = function Spinner(_ref4) {
24653
24685
  })));
24654
24686
  };
24655
24687
 
24656
- var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$p);
24688
+ var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$q);
24657
24689
 
24658
24690
  var Loading = function Loading() {
24659
24691
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -24919,7 +24951,7 @@ var height$1 = {
24919
24951
  "default": "3rem",
24920
24952
  large: "192px"
24921
24953
  };
24922
- var fallbackValues$q = {
24954
+ var fallbackValues$r = {
24923
24955
  color: color$9,
24924
24956
  height: height$1
24925
24957
  };
@@ -25028,12 +25060,12 @@ var Placeholder = function Placeholder(_ref2) {
25028
25060
  }, text)))))))))));
25029
25061
  };
25030
25062
 
25031
- var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$q, "default");
25063
+ var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$r, "default");
25032
25064
 
25033
25065
  var backgroundColor$4 = {
25034
25066
  "default": "".concat(WHITE)
25035
25067
  };
25036
- var fallbackValues$r = {
25068
+ var fallbackValues$s = {
25037
25069
  backgroundColor: backgroundColor$4
25038
25070
  };
25039
25071
 
@@ -25061,7 +25093,7 @@ var ProcessingFee = function ProcessingFee(_ref) {
25061
25093
  }));
25062
25094
  };
25063
25095
 
25064
- var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$r, "default");
25096
+ var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$s, "default");
25065
25097
 
25066
25098
 
25067
25099
 
@@ -25123,7 +25155,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref) {
25123
25155
 
25124
25156
  var activeColor$5 = "".concat(MATISSE_BLUE);
25125
25157
  var inactiveColor = "".concat(GREY_CHATEAU);
25126
- var fallbackValues$s = {
25158
+ var fallbackValues$t = {
25127
25159
  activeColor: activeColor$5,
25128
25160
  inactiveColor: inactiveColor
25129
25161
  };
@@ -25213,12 +25245,12 @@ var RadioButton$1 = function RadioButton(_ref2) {
25213
25245
  })));
25214
25246
  };
25215
25247
 
25216
- var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$s);
25248
+ var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$t);
25217
25249
 
25218
25250
  var border$2 = {
25219
25251
  "default": "1px solid #caced8"
25220
25252
  };
25221
- var fallbackValues$t = {
25253
+ var fallbackValues$u = {
25222
25254
  border: border$2
25223
25255
  };
25224
25256
 
@@ -25293,7 +25325,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
25293
25325
  })))));
25294
25326
  };
25295
25327
 
25296
- var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$t, "default");
25328
+ var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$u, "default");
25297
25329
 
25298
25330
  var borderColor$2 = {
25299
25331
  "default": "".concat(GREY_CHATEAU)
@@ -25301,7 +25333,7 @@ var borderColor$2 = {
25301
25333
  var borderSize = {
25302
25334
  "default": "1px"
25303
25335
  };
25304
- var fallbackValues$u = {
25336
+ var fallbackValues$v = {
25305
25337
  borderColor: borderColor$2,
25306
25338
  borderSize: borderSize
25307
25339
  };
@@ -25318,7 +25350,7 @@ var SolidDivider = function SolidDivider(_ref) {
25318
25350
  });
25319
25351
  };
25320
25352
 
25321
- var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$u, "default");
25353
+ var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$v, "default");
25322
25354
 
25323
25355
  var placeHolderOptionUS = {
25324
25356
  text: "Please select state",
@@ -35902,7 +35934,7 @@ var offBackground = "".concat(REGENT_GREY);
35902
35934
  var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
35903
35935
  var rightLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row;\n");
35904
35936
  var leftLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row-reverse;\n");
35905
- var fallbackValues$v = {
35937
+ var fallbackValues$w = {
35906
35938
  onBackground: onBackground,
35907
35939
  disabledBackground: disabledBackground,
35908
35940
  white: white,
@@ -36078,7 +36110,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
36078
36110
  }, label))));
36079
36111
  };
36080
36112
 
36081
- var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$v);
36113
+ var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$w);
36082
36114
 
36083
36115
  var background$1 = "".concat(ATHENS_GREY);
36084
36116
  var white$1 = "".concat(WHITE);
@@ -36127,7 +36159,7 @@ var backgroundColor$5 = WHITE;
36127
36159
  var imageBackgroundColor = INFO_BLUE;
36128
36160
  var headerBackgroundColor = STORM_GREY;
36129
36161
  var headerColor = WHITE;
36130
- var fallbackValues$w = {
36162
+ var fallbackValues$x = {
36131
36163
  backgroundColor: backgroundColor$5,
36132
36164
  imageBackgroundColor: imageBackgroundColor,
36133
36165
  headerBackgroundColor: headerBackgroundColor,
@@ -36150,11 +36182,11 @@ var CardImage = styled__default.img.withConfig({
36150
36182
 
36151
36183
  var titleColor = BRIGHT_GREY;
36152
36184
  var titleWeight = FONT_WEIGHT_BOLD;
36153
- var textColor$2 = BRIGHT_GREY;
36154
- var fallbackValues$x = {
36185
+ var textColor$3 = BRIGHT_GREY;
36186
+ var fallbackValues$y = {
36155
36187
  titleColor: titleColor,
36156
36188
  titleWeight: titleWeight,
36157
- textColor: textColor$2
36189
+ textColor: textColor$3
36158
36190
  };
36159
36191
 
36160
36192
  var CardText = function CardText(_ref) {
@@ -36175,7 +36207,7 @@ var CardText = function CardText(_ref) {
36175
36207
  color: themeValues.textColor
36176
36208
  }, text))));
36177
36209
  };
36178
- var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$x);
36210
+ var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$y);
36179
36211
 
36180
36212
  var CardHeader = function CardHeader(_ref) {
36181
36213
  var backgroundColor = _ref.backgroundColor,
@@ -36272,12 +36304,12 @@ var Card = function Card(_ref) {
36272
36304
  }), children)));
36273
36305
  };
36274
36306
 
36275
- var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$w);
36307
+ var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$x);
36276
36308
 
36277
36309
  var fontFamily$6 = "Public Sans, sans-serif";
36278
36310
  var activeColor$6 = MATISSE_BLUE;
36279
36311
  var linkColor$3 = CHARADE_GREY;
36280
- var fallbackValues$y = {
36312
+ var fallbackValues$z = {
36281
36313
  fontFamily: fontFamily$6,
36282
36314
  activeColor: activeColor$6,
36283
36315
  linkColor: linkColor$3
@@ -36310,7 +36342,7 @@ var NavTab = function NavTab(_ref) {
36310
36342
  }, label));
36311
36343
  };
36312
36344
 
36313
- var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$y);
36345
+ var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$z);
36314
36346
 
36315
36347
  var NavTabs = function NavTabs(_ref) {
36316
36348
  var tabsConfig = _ref.tabsConfig,
@@ -38268,7 +38300,7 @@ AddressForm.mapStateToProps = mapStateToProps$1;
38268
38300
  AddressForm.mapDispatchToProps = mapDispatchToProps;
38269
38301
 
38270
38302
  var backgroundColor$6 = "#ebeffb";
38271
- var fallbackValues$z = {
38303
+ var fallbackValues$A = {
38272
38304
  backgroundColor: backgroundColor$6
38273
38305
  };
38274
38306
 
@@ -38320,7 +38352,7 @@ var Banner = function Banner(_ref) {
38320
38352
  }, /*#__PURE__*/React__default.createElement(Image, null))));
38321
38353
  };
38322
38354
 
38323
- var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$z);
38355
+ var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$A);
38324
38356
 
38325
38357
  var ChangePasswordForm = function ChangePasswordForm(_ref) {
38326
38358
  var _newPasswordErrorMess;
@@ -38462,7 +38494,7 @@ ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
38462
38494
  var titleColor$1 = "#292A33";
38463
38495
  var headingBackgroundColor = "transparent";
38464
38496
  var bodyBackgroundColor = "transparent";
38465
- var fallbackValues$A = {
38497
+ var fallbackValues$B = {
38466
38498
  titleColor: titleColor$1,
38467
38499
  headingBackgroundColor: headingBackgroundColor,
38468
38500
  bodyBackgroundColor: bodyBackgroundColor
@@ -38589,7 +38621,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
38589
38621
  }, children))));
38590
38622
  };
38591
38623
 
38592
- var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$A);
38624
+ var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$B);
38593
38625
 
38594
38626
  var ClipboardIcon = function ClipboardIcon(_ref) {
38595
38627
  var themeValues = _ref.themeValues;
@@ -38850,8 +38882,8 @@ var EditableListItemControls = styled__default.div.withConfig({
38850
38882
  componentId: "sc-10ehkz7-1"
38851
38883
  })(["display:flex;justify-content:space-evenly;align-items:center;"]);
38852
38884
 
38853
- var ACTIVE$1 = "ACTIVE";
38854
- var EXPIRED$1 = "EXPIRED";
38885
+ var ACTIVE = "ACTIVE";
38886
+ var EXPIRED = "EXPIRED";
38855
38887
 
38856
38888
  var EditableList = function EditableList(_ref) {
38857
38889
  var _ref$title = _ref.title,
@@ -38908,13 +38940,13 @@ var EditableList = function EditableList(_ref) {
38908
38940
  modalOpen = _useState2[0],
38909
38941
  toggleModal = _useState2[1];
38910
38942
 
38911
- var expiredItem = (_item$expirationStatu = item === null || item === void 0 ? void 0 : item.expirationStatus) !== null && _item$expirationStatu !== void 0 ? _item$expirationStatu : ACTIVE$1;
38943
+ var expiredItem = (_item$expirationStatu = item === null || item === void 0 ? void 0 : item.expirationStatus) !== null && _item$expirationStatu !== void 0 ? _item$expirationStatu : ACTIVE;
38912
38944
  return /*#__PURE__*/React__default.createElement(EditableListItem, {
38913
38945
  listItemSize: !!item.id && autoPayMethods !== null && autoPayMethods !== void 0 && autoPayMethods.some(function (methodID) {
38914
38946
  return methodID === item.id;
38915
38947
  }) ? "big" : listItemSize,
38916
38948
  key: item.id || item,
38917
- disabled: expiredItem === EXPIRED$1
38949
+ disabled: expiredItem === EXPIRED
38918
38950
  }, /*#__PURE__*/React__default.createElement(Text$1, {
38919
38951
  variant: "p",
38920
38952
  color: CHARADE_GREY
@@ -39175,7 +39207,7 @@ EmailForm.mapDispatchToProps = mapDispatchToProps$3;
39175
39207
 
39176
39208
  var footerBackgroundColor = BRIGHT_GREY;
39177
39209
  var subfooterBackgroundColor = STORM_GREY;
39178
- var fallbackValues$B = {
39210
+ var fallbackValues$C = {
39179
39211
  footerBackgroundColor: footerBackgroundColor,
39180
39212
  subfooterBackgroundColor: subfooterBackgroundColor
39181
39213
  };
@@ -39207,7 +39239,7 @@ var FooterWithSubfooter = function FooterWithSubfooter(_ref) {
39207
39239
  }));
39208
39240
  };
39209
39241
 
39210
- var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$B);
39242
+ var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$C);
39211
39243
 
39212
39244
  var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
39213
39245
  var _EmailErrorMessages;
@@ -39257,10 +39289,10 @@ ForgotPasswordForm.reducer = reducer$4;
39257
39289
  ForgotPasswordForm.mapStateToProps = mapStateToProps$5;
39258
39290
  ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
39259
39291
 
39260
- var textColor$3 = "#ffffff";
39292
+ var textColor$4 = "#ffffff";
39261
39293
  var backgroundColor$7 = "#182848";
39262
- var fallbackValues$C = {
39263
- textColor: textColor$3,
39294
+ var fallbackValues$D = {
39295
+ textColor: textColor$4,
39264
39296
  backgroundColor: backgroundColor$7
39265
39297
  };
39266
39298
 
@@ -39316,7 +39348,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
39316
39348
  }), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
39317
39349
  };
39318
39350
 
39319
- var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$C));
39351
+ var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$D));
39320
39352
 
39321
39353
  var AccountBillIcon = function AccountBillIcon() {
39322
39354
  return /*#__PURE__*/React__default.createElement("svg", {
@@ -44468,7 +44500,7 @@ var backgroundColor$8 = {
44468
44500
  largeTitle: WHITE,
44469
44501
  small: WHITE
44470
44502
  };
44471
- var fallbackValues$D = {
44503
+ var fallbackValues$E = {
44472
44504
  fontSize: fontSize$9,
44473
44505
  fontWeight: fontWeight$5,
44474
44506
  fontColor: fontColor,
@@ -44527,7 +44559,7 @@ var Module = function Module(_ref) {
44527
44559
  }, children)));
44528
44560
  };
44529
44561
 
44530
- var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$D, "default"));
44562
+ var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$E, "default"));
44531
44563
 
44532
44564
  var backgroundColor$9 = {
44533
44565
  profile: "#3b414d",
@@ -44537,7 +44569,7 @@ var shadowColor = {
44537
44569
  profile: "#292A33",
44538
44570
  cms: "#292A33"
44539
44571
  };
44540
- var fallbackValues$E = {
44572
+ var fallbackValues$F = {
44541
44573
  backgroundColor: backgroundColor$9,
44542
44574
  shadowColor: shadowColor
44543
44575
  };
@@ -44578,7 +44610,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
44578
44610
  }, menuContent));
44579
44611
  };
44580
44612
 
44581
- var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$E, "profile");
44613
+ var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$F, "profile");
44582
44614
 
44583
44615
  var menu = posed.div({
44584
44616
  invisible: {
@@ -44634,7 +44666,11 @@ var NavMenuMobile = function NavMenuMobile(_ref) {
44634
44666
  }, menuContent));
44635
44667
  };
44636
44668
 
44637
- var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$E, "profile");
44669
+ var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$F, "profile");
44670
+
44671
+ var ACH_METHOD = "BANK_ACCOUNT";
44672
+ var CC_METHOD = "CREDIT_CARD";
44673
+ var CASH_METHOD = "CASH";
44638
44674
 
44639
44675
  var IconsModule = function IconsModule(_ref) {
44640
44676
  var icon = _ref.icon,
@@ -44691,7 +44727,7 @@ var activeColor$7 = "#0E506D";
44691
44727
  var linkColor$4 = "#3176AA";
44692
44728
  var fontWeight$6 = FONT_WEIGHT_REGULAR;
44693
44729
  var modalLinkHoverFocus = "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;";
44694
- var fallbackValues$F = {
44730
+ var fallbackValues$G = {
44695
44731
  color: color$a,
44696
44732
  hoverColor: hoverColor$5,
44697
44733
  activeColor: activeColor$7,
@@ -44715,13 +44751,27 @@ var AutopayModal = function AutopayModal(_ref) {
44715
44751
  isPaymentPlan = _ref.isPaymentPlan,
44716
44752
  nextAutopayDate = _ref.nextAutopayDate,
44717
44753
  dueDate = _ref.dueDate,
44718
- inactive = _ref.inactive;
44719
- var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
44754
+ inactive = _ref.inactive,
44755
+ description = _ref.description,
44756
+ subDescription = _ref.subDescription,
44757
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments;
44758
+
44759
+ var generateMethodNeededText = function generateMethodNeededText(planText, allowedPaymentInstruments) {
44760
+ var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
44761
+ var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
44762
+ var methodRequired = allowsCard && !allowsACH ? "debit or credit card payment method" : !allowsCard && allowsACH ? "checking account payment method" : "payment method";
44763
+ return "To setup ".concat(planText, " you must have a saved ").concat(methodRequired, " and address in your profile. Do you want to save these now?");
44764
+ };
44765
+
44766
+ var plan = isPaymentPlan ? "your payment plan" : "autopay";
44767
+ var shortPlan = isPaymentPlan ? "Payment Plan" : "Autopay";
44768
+ var deactivateText = "deactivate ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
44769
+ var activateText = "Set Up ".concat(shortPlan, " for ").concat(description, ": ").concat(subDescription);
44720
44770
  var nextDate = dueDate || nextAutopayDate;
44721
44771
  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",
44772
+ modalHeaderText: autoPayActive ? titleCaseString(deactivateText) : titleCaseString(activateText),
44773
+ 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),
44774
+ continueButtonText: autoPayActive ? "Disable ".concat(shortPlan) : "Add to Profile",
44725
44775
  useDangerButton: autoPayActive,
44726
44776
  continueAction: autoPayActive ? function () {
44727
44777
  deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
@@ -44737,7 +44787,7 @@ var AutopayModal = function AutopayModal(_ref) {
44737
44787
  case "secondary":
44738
44788
  {
44739
44789
  return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
44740
- text: autoPayActive ? "Turn off ".concat(planType) : "Set Up ".concat(planType),
44790
+ text: autoPayActive ? "Turn off ".concat(shortPlan) : "Set Up ".concat(shortPlan),
44741
44791
  variant: "secondary",
44742
44792
  action: function action() {
44743
44793
  toggleModal(true);
@@ -44750,7 +44800,7 @@ var AutopayModal = function AutopayModal(_ref) {
44750
44800
  case "tertiary":
44751
44801
  {
44752
44802
  return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
44753
- text: autoPayActive ? "Manage ".concat(planType) : "Set Up ".concat(planType),
44803
+ text: autoPayActive ? "Manage ".concat(shortPlan) : "Set Up ".concat(shortPlan),
44754
44804
  variant: "tertiary",
44755
44805
  action: function action() {
44756
44806
  toggleModal(true);
@@ -44782,12 +44832,12 @@ var AutopayModal = function AutopayModal(_ref) {
44782
44832
  e.key === "Enter" && toggleModal(true);
44783
44833
  },
44784
44834
  tabIndex: "0",
44785
- dataQa: "".concat(planType, " On"),
44835
+ dataQa: "".concat(shortPlan, " On"),
44786
44836
  color: SEA_GREEN,
44787
44837
  weight: themeValues.fontWeight,
44788
44838
  hoverStyles: themeValues.modalLinkHoverFocus,
44789
44839
  extraStyles: "padding-left: 0.25rem;"
44790
- }, "".concat(planType, " ").concat(nextAutopayDate))));
44840
+ }, "".concat(shortPlan, " ").concat(nextAutopayDate))));
44791
44841
  }
44792
44842
  }
44793
44843
  };
@@ -44803,7 +44853,7 @@ var AutopayModal = function AutopayModal(_ref) {
44803
44853
  }, modalExtraProps), renderAutoPayControl());
44804
44854
  };
44805
44855
 
44806
- var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$F);
44856
+ var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$G);
44807
44857
 
44808
44858
  var AmountModule = function AmountModule(_ref) {
44809
44859
  var totalAmountDue = _ref.totalAmountDue,
@@ -44814,7 +44864,10 @@ var AmountModule = function AmountModule(_ref) {
44814
44864
  autoPaySchedule = _ref.autoPaySchedule,
44815
44865
  paymentPlanSchedule = _ref.paymentPlanSchedule,
44816
44866
  isPaymentPlan = _ref.isPaymentPlan,
44817
- nextAutopayDate = _ref.nextAutopayDate;
44867
+ nextAutopayDate = _ref.nextAutopayDate,
44868
+ description = _ref.description,
44869
+ subDescription = _ref.subDescription,
44870
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments;
44818
44871
 
44819
44872
  var _useState = React.useState(false),
44820
44873
  _useState2 = _slicedToArray(_useState, 2),
@@ -44843,7 +44896,10 @@ var AmountModule = function AmountModule(_ref) {
44843
44896
  paymentPlanSchedule: paymentPlanSchedule,
44844
44897
  isPaymentPlan: isPaymentPlan,
44845
44898
  nextAutopayDate: nextAutopayDate,
44846
- controlType: "link"
44899
+ controlType: "link",
44900
+ description: description,
44901
+ subDescription: subDescription,
44902
+ allowedPaymentInstruments: allowedPaymentInstruments
44847
44903
  })));
44848
44904
  };
44849
44905
 
@@ -44862,7 +44918,10 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
44862
44918
  isPaymentPlan = _ref.isPaymentPlan,
44863
44919
  nextAutopayDate = _ref.nextAutopayDate,
44864
44920
  obligationAssocID = _ref.obligationAssocID,
44865
- dueDate = _ref.dueDate;
44921
+ dueDate = _ref.dueDate,
44922
+ description = _ref.description,
44923
+ subDescription = _ref.subDescription,
44924
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments;
44866
44925
  var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
44867
44926
 
44868
44927
  var _useState = React.useState(false),
@@ -44918,7 +44977,10 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
44918
44977
  autoPaySchedule: autoPaySchedule,
44919
44978
  paymentPlanSchedule: paymentPlanSchedule,
44920
44979
  isPaymentPlan: isPaymentPlan,
44921
- nextAutopayDate: nextAutopayDate
44980
+ nextAutopayDate: nextAutopayDate,
44981
+ description: description,
44982
+ subDescription: subDescription,
44983
+ allowedPaymentInstruments: allowedPaymentInstruments
44922
44984
  }))), /*#__PURE__*/React__default.createElement(Box, {
44923
44985
  padding: isMobile ? "16px" : "0"
44924
44986
  }, /*#__PURE__*/React__default.createElement(Cluster, {
@@ -44958,7 +45020,10 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
44958
45020
  paymentPlanSchedule: paymentPlanSchedule,
44959
45021
  isPaymentPlan: isPaymentPlan,
44960
45022
  nextAutopayDate: nextAutopayDate,
44961
- dueDate: dueDate
45023
+ dueDate: dueDate,
45024
+ description: description,
45025
+ subDescription: subDescription,
45026
+ allowedPaymentInstruments: allowedPaymentInstruments
44962
45027
  })), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
44963
45028
  padding: "0"
44964
45029
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
@@ -45048,7 +45113,10 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
45048
45113
  dueDate = _ref.dueDate,
45049
45114
  agencyName = _ref.agencyName,
45050
45115
  configType = _ref.configType,
45051
- actions = _ref.actions;
45116
+ actions = _ref.actions,
45117
+ description = _ref.description,
45118
+ subDescription = _ref.subDescription,
45119
+ allowedPaymentInstruments = _ref.allowedPaymentInstruments;
45052
45120
 
45053
45121
  var _useState = React.useState(false),
45054
45122
  _useState2 = _slicedToArray(_useState, 2),
@@ -45087,7 +45155,10 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
45087
45155
  obligationAssocID: obligationAssocID,
45088
45156
  dueDate: dueDate,
45089
45157
  controlType: "secondary",
45090
- inactive: true
45158
+ inactive: true,
45159
+ description: description,
45160
+ subDescription: subDescription,
45161
+ allowedPaymentInstruments: allowedPaymentInstruments
45091
45162
  })), /*#__PURE__*/React__default.createElement(Box, {
45092
45163
  padding: "0",
45093
45164
  extraStyles: "flex-grow: 1;"
@@ -45129,7 +45200,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
45129
45200
  };
45130
45201
 
45131
45202
  var Obligation = function Obligation(_ref) {
45132
- var _firstObligation$cust, _firstObligation$desc, _firstObligation$subD;
45203
+ var _obligations$, _firstObligation$cust;
45133
45204
 
45134
45205
  var config = _ref.config,
45135
45206
  obligations = _ref.obligations,
@@ -45164,7 +45235,13 @@ var Obligation = function Obligation(_ref) {
45164
45235
  The top level desc/subdesc for all obligations in a collection is the same
45165
45236
  (Collection accounts look different in the Account Details page)
45166
45237
  */
45167
- var firstObligation = obligations[0];
45238
+ var firstObligation = (_obligations$ = obligations === null || obligations === void 0 ? void 0 : obligations[0]) !== null && _obligations$ !== void 0 ? _obligations$ : {};
45239
+ var _firstObligation$allo = firstObligation.allowedPaymentInstruments,
45240
+ allowedPaymentInstruments = _firstObligation$allo === void 0 ? [CASH_METHOD, CC_METHOD, ACH_METHOD] : _firstObligation$allo,
45241
+ _firstObligation$desc = firstObligation.description,
45242
+ description = _firstObligation$desc === void 0 ? "Account" : _firstObligation$desc,
45243
+ _firstObligation$subD = firstObligation.subDescription,
45244
+ subDescription = _firstObligation$subD === void 0 ? obligationAssocID : _firstObligation$subD;
45168
45245
  var customAttributes = (_firstObligation$cust = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.customAttributes) !== null && _firstObligation$cust !== void 0 ? _firstObligation$cust : {};
45169
45246
  var boxShadowValue = "0px 2px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
45170
45247
  var activeObligation = /*#__PURE__*/React__default.createElement(Box, {
@@ -45172,7 +45249,7 @@ var Obligation = function Obligation(_ref) {
45172
45249
  borderRadius: "4px",
45173
45250
  boxShadow: boxShadowValue,
45174
45251
  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),
45252
+ "aria-label": "".concat(description, " - ").concat(subDescription),
45176
45253
  border: "1px solid ".concat(GRECIAN_GREY),
45177
45254
  borderWidthOverride: "1px 0 0 0"
45178
45255
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -45201,8 +45278,8 @@ var Obligation = function Obligation(_ref) {
45201
45278
  iconValue: config.iconValue,
45202
45279
  customAttributes: customAttributes
45203
45280
  }), /*#__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,
45281
+ title: description,
45282
+ subtitle: subDescription,
45206
45283
  titleColor: BRIGHT_GREY,
45207
45284
  isMobile: isMobile
45208
45285
  }))), !isMobile && /*#__PURE__*/React__default.createElement(AmountModule, {
@@ -45216,7 +45293,10 @@ var Obligation = function Obligation(_ref) {
45216
45293
  autoPaySchedule: autoPaySchedule,
45217
45294
  paymentPlanSchedule: paymentPlanSchedule,
45218
45295
  isPaymentPlan: isPaymentPlan,
45219
- nextAutopayDate: nextAutopayDate
45296
+ nextAutopayDate: nextAutopayDate,
45297
+ description: description,
45298
+ subDescription: subDescription,
45299
+ allowedPaymentInstruments: allowedPaymentInstruments
45220
45300
  }))), !isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
45221
45301
  obligations: obligations,
45222
45302
  autoPayEnabled: autoPayEnabled,
@@ -45231,7 +45311,10 @@ var Obligation = function Obligation(_ref) {
45231
45311
  isMobile: isMobile,
45232
45312
  isPaymentPlan: isPaymentPlan,
45233
45313
  nextAutopayDate: nextAutopayDate,
45234
- obligationAssocID: obligationAssocID
45314
+ obligationAssocID: obligationAssocID,
45315
+ description: description,
45316
+ subDescription: subDescription,
45317
+ allowedPaymentInstruments: allowedPaymentInstruments
45235
45318
  }))), isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
45236
45319
  obligations: obligations,
45237
45320
  autoPayEnabled: autoPayEnabled,
@@ -45246,7 +45329,10 @@ var Obligation = function Obligation(_ref) {
45246
45329
  isMobile: isMobile,
45247
45330
  isPaymentPlan: isPaymentPlan,
45248
45331
  nextAutopayDate: nextAutopayDate,
45249
- obligationAssocID: obligationAssocID
45332
+ obligationAssocID: obligationAssocID,
45333
+ description: description,
45334
+ subDescription: subDescription,
45335
+ allowedPaymentInstruments: allowedPaymentInstruments
45250
45336
  }));
45251
45337
  var inactiveObligation = /*#__PURE__*/React__default.createElement(Box, {
45252
45338
  padding: "0",
@@ -45299,7 +45385,10 @@ var Obligation = function Obligation(_ref) {
45299
45385
  obligationAssocID: obligationAssocID,
45300
45386
  dueDate: dueDate,
45301
45387
  agencyName: agencyName,
45302
- configType: config.type
45388
+ configType: config.type,
45389
+ description: description,
45390
+ subDescription: subDescription,
45391
+ allowedPaymentInstruments: allowedPaymentInstruments
45303
45392
  }))), isMobile && /*#__PURE__*/React__default.createElement(InactiveControlsModule, {
45304
45393
  obligations: obligations,
45305
45394
  autoPayEnabled: autoPayEnabled,
@@ -45313,7 +45402,10 @@ var Obligation = function Obligation(_ref) {
45313
45402
  obligationAssocID: obligationAssocID,
45314
45403
  dueDate: dueDate,
45315
45404
  agencyName: agencyName,
45316
- configType: config.type
45405
+ configType: config.type,
45406
+ description: description,
45407
+ subDescription: subDescription,
45408
+ allowedPaymentInstruments: allowedPaymentInstruments
45317
45409
  }))));
45318
45410
  return inactive ? inactiveObligation : activeObligation;
45319
45411
  };
@@ -45615,7 +45707,7 @@ var labeledAmountTotal = {
45615
45707
  "default": "h6",
45616
45708
  small: "p"
45617
45709
  };
45618
- var fallbackValues$G = {
45710
+ var fallbackValues$H = {
45619
45711
  backgroundColor: backgroundColor$a,
45620
45712
  lineItem: lineItem,
45621
45713
  labeledAmountSubtotal: labeledAmountSubtotal,
@@ -45866,7 +45958,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
45866
45958
  });
45867
45959
  };
45868
45960
 
45869
- var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$G, "default");
45961
+ var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$H, "default");
45870
45962
 
45871
45963
  var linkColor$5 = {
45872
45964
  "default": "#3176AA"
@@ -45883,7 +45975,7 @@ var fontWeight$7 = {
45883
45975
  var modalLinkHoverFocus$1 = {
45884
45976
  "default": "outline: none; text-decoration: underline;"
45885
45977
  };
45886
- var fallbackValues$H = {
45978
+ var fallbackValues$I = {
45887
45979
  linkColor: linkColor$5,
45888
45980
  fontSize: fontSize$a,
45889
45981
  lineHeight: lineHeight$4,
@@ -45942,7 +46034,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
45942
46034
  }, link));
45943
46035
  };
45944
46036
 
45945
- var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$H, "default");
46037
+ var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$I, "default");
45946
46038
 
45947
46039
  var PaymentFormACH = function PaymentFormACH(_ref) {
45948
46040
  var _routingNumberErrors, _accountNumberErrors;
@@ -46538,7 +46630,7 @@ var RadioGroup = function RadioGroup(_ref) {
46538
46630
  groupName: groupName,
46539
46631
  setValue: setValue,
46540
46632
  handleChange: handleChange,
46541
- "aria-invalid": field.dirty && field.hasErrors || field.hasErrors
46633
+ "aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors
46542
46634
  }));
46543
46635
  })));
46544
46636
  };
@@ -46548,7 +46640,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
46548
46640
  var bodyBackgroundColor$1 = "#eeeeee";
46549
46641
  var borderColor$3 = "".concat(GREY_CHATEAU);
46550
46642
  var focusStyles = "outline: none;";
46551
- var fallbackValues$I = {
46643
+ var fallbackValues$J = {
46552
46644
  headingBackgroundColor: headingBackgroundColor$1,
46553
46645
  headingDisabledColor: headingDisabledColor,
46554
46646
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -46565,7 +46657,8 @@ var fallbackValues$I = {
46565
46657
  hideRadioButton: boolean, (keeps section displayed but hides radio and disables open/close function),
46566
46658
  hidden: boolean, (hides section entirely)
46567
46659
  dataQa: string,
46568
- content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work)
46660
+ content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work),
46661
+ 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
46662
  }
46570
46663
 
46571
46664
  Also takes an "openSection" which should equal the id of the section that should be open
@@ -46578,10 +46671,6 @@ var fallbackValues$I = {
46578
46671
 
46579
46672
  */
46580
46673
 
46581
- var ACTIVE$2 = "ACTIVE";
46582
- var EXPIRING_SOON$1 = "EXPIRING_SOON";
46583
- var EXPIRED$2 = "EXPIRED";
46584
-
46585
46674
  var RadioSection = function RadioSection(_ref) {
46586
46675
  var themeValues = _ref.themeValues,
46587
46676
  isMobile = _ref.isMobile,
@@ -46604,34 +46693,6 @@ var RadioSection = function RadioSection(_ref) {
46604
46693
  }
46605
46694
  };
46606
46695
 
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
46696
  var wrapper = {
46636
46697
  open: {
46637
46698
  height: openHeight,
@@ -46685,13 +46746,13 @@ var RadioSection = function RadioSection(_ref) {
46685
46746
  return /*#__PURE__*/React__default.createElement(Motion, {
46686
46747
  tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
46687
46748
  onKeyDown: function onKeyDown(e) {
46688
- return handleKeyDown(section.id, e);
46749
+ return !section.disabled && handleKeyDown(section.id, e);
46689
46750
  },
46690
46751
  onFocus: function onFocus() {
46691
- return setFocused(section.id);
46752
+ return !section.disabled && setFocused(section.id);
46692
46753
  },
46693
46754
  onBlur: function onBlur() {
46694
- return setFocused(null);
46755
+ return !section.disabled && setFocused(null);
46695
46756
  },
46696
46757
  hoverStyles: themeValues.focusStyles,
46697
46758
  animate: openSection === section.id ? "open" : "closed",
@@ -46706,7 +46767,7 @@ var RadioSection = function RadioSection(_ref) {
46706
46767
  onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
46707
46768
  return toggleOpenSection(section.id);
46708
46769
  },
46709
- onTouchEnd: isMobile && supportsTouch || !section.disabled ? function () {
46770
+ onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
46710
46771
  return toggleOpenSection(section.id);
46711
46772
  } : noop,
46712
46773
  key: "header-".concat(section.id),
@@ -46751,7 +46812,7 @@ var RadioSection = function RadioSection(_ref) {
46751
46812
  isMobile: isMobile,
46752
46813
  alt: icon.altText
46753
46814
  });
46754
- })), section.shouldDisplayCardExpiration && /*#__PURE__*/React__default.createElement(React.Fragment, null, renderCardStatus(section)))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
46815
+ })), section.rightTitleContent && /*#__PURE__*/React__default.createElement(React.Fragment, null, rightTitleContent))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
46755
46816
  initial: false
46756
46817
  }, openSection === section.id && /*#__PURE__*/React__default.createElement(Motion, {
46757
46818
  key: "content-".concat(section.id),
@@ -46767,7 +46828,7 @@ var RadioSection = function RadioSection(_ref) {
46767
46828
  })));
46768
46829
  };
46769
46830
 
46770
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$I);
46831
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$J);
46771
46832
 
46772
46833
  var RegistrationForm = function RegistrationForm(_ref) {
46773
46834
  var _emailErrorMessages, _passwordErrorMessage;
@@ -47064,7 +47125,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
47064
47125
  var activeTabBackground = "#FFFFFF";
47065
47126
  var activeTabAccent = "#15749D";
47066
47127
  var activeTabHover = "#B8D5E1";
47067
- var fallbackValues$J = {
47128
+ var fallbackValues$K = {
47068
47129
  activeTabBackground: activeTabBackground,
47069
47130
  activeTabAccent: activeTabAccent,
47070
47131
  activeTabHover: activeTabHover
@@ -47143,12 +47204,12 @@ var Tabs = function Tabs(_ref) {
47143
47204
  }))));
47144
47205
  };
47145
47206
 
47146
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$J);
47207
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$K);
47147
47208
 
47148
47209
  var activeTabBackground$1 = "#FFFFFF";
47149
47210
  var activeTabAccent$1 = "#15749D";
47150
47211
  var activeTabHover$1 = "#B8D5E1";
47151
- var fallbackValues$K = {
47212
+ var fallbackValues$L = {
47152
47213
  activeTabBackground: activeTabBackground$1,
47153
47214
  activeTabAccent: activeTabAccent$1,
47154
47215
  activeTabHover: activeTabHover$1
@@ -47204,7 +47265,7 @@ var TabSidebar = function TabSidebar(_ref) {
47204
47265
  })));
47205
47266
  };
47206
47267
 
47207
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$K);
47268
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$L);
47208
47269
 
47209
47270
  var backgroundColor$b = {
47210
47271
  "default": "#ffffff",
@@ -47235,7 +47296,7 @@ var modalLinkHoverFocus$2 = {
47235
47296
  "default": standardInteractionStyles,
47236
47297
  footer: standardInteractionStyles
47237
47298
  };
47238
- var fallbackValues$L = {
47299
+ var fallbackValues$M = {
47239
47300
  backgroundColor: backgroundColor$b,
47240
47301
  linkColor: linkColor$6,
47241
47302
  border: border$3,
@@ -47297,7 +47358,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47297
47358
  }, link));
47298
47359
  };
47299
47360
 
47300
- var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$L, "default");
47361
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
47301
47362
 
47302
47363
  var TermsAndConditions = function TermsAndConditions(_ref) {
47303
47364
  var onCheck = _ref.onCheck,
@@ -47372,7 +47433,7 @@ var fontColor$1 = WHITE;
47372
47433
  var textAlign$1 = "left";
47373
47434
  var headerBackgroundColor$1 = BRIGHT_GREY;
47374
47435
  var imageBackgroundColor$1 = MATISSE_BLUE;
47375
- var fallbackValues$M = {
47436
+ var fallbackValues$N = {
47376
47437
  fontWeight: fontWeight$9,
47377
47438
  fontColor: fontColor$1,
47378
47439
  textAlign: textAlign$1,
@@ -47419,7 +47480,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
47419
47480
  })))));
47420
47481
  };
47421
47482
 
47422
- var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$M));
47483
+ var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$N));
47423
47484
 
47424
47485
  var WorkflowTile = function WorkflowTile(_ref) {
47425
47486
  var _ref$workflowName = _ref.workflowName,
@@ -47474,7 +47535,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
47474
47535
  };
47475
47536
 
47476
47537
  var pageBackground = "#FBFCFD";
47477
- var fallbackValues$N = {
47538
+ var fallbackValues$O = {
47478
47539
  pageBackground: pageBackground
47479
47540
  };
47480
47541
 
@@ -47521,7 +47582,7 @@ var CenterSingle = function CenterSingle(_ref) {
47521
47582
  })));
47522
47583
  };
47523
47584
 
47524
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$N));
47585
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$O));
47525
47586
 
47526
47587
  var CenterStack = function CenterStack(_ref) {
47527
47588
  var header = _ref.header,
@@ -47563,7 +47624,7 @@ var CenterStack = function CenterStack(_ref) {
47563
47624
  })));
47564
47625
  };
47565
47626
 
47566
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$N));
47627
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$O));
47567
47628
 
47568
47629
  var CenterSingle$2 = function CenterSingle(_ref) {
47569
47630
  var header = _ref.header,
@@ -47608,7 +47669,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
47608
47669
  })));
47609
47670
  };
47610
47671
 
47611
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$N));
47672
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$O));
47612
47673
 
47613
47674
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
47614
47675
  var header = _ref.header,
@@ -47662,7 +47723,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
47662
47723
  })));
47663
47724
  };
47664
47725
 
47665
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$N));
47726
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$O));
47666
47727
 
47667
47728
  var SidebarStackContent = function SidebarStackContent(_ref) {
47668
47729
  var header = _ref.header,
@@ -47733,7 +47794,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
47733
47794
  })));
47734
47795
  };
47735
47796
 
47736
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$N));
47797
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$O));
47737
47798
 
47738
47799
  exports.AccountNumberImage = AccountNumberImage;
47739
47800
  exports.AccountsAddIcon = AccountsAddIcon$1;
@@ -47800,6 +47861,7 @@ exports.FormInputColumn = FormInputColumn;
47800
47861
  exports.FormInputRow = FormInputRow;
47801
47862
  exports.FormSelect = FormSelect$1;
47802
47863
  exports.FormattedAddress = FormattedAddress$1;
47864
+ exports.FormattedBankAccount = FormattedBankAccount$1;
47803
47865
  exports.FormattedCreditCard = FormattedCreditCard$1;
47804
47866
  exports.Frame = Frame;
47805
47867
  exports.GenericCard = GenericCard;
@@ -47841,7 +47903,6 @@ exports.PaymentButtonBar = PaymentButtonBar;
47841
47903
  exports.PaymentDetails = PaymentDetails$1;
47842
47904
  exports.PaymentFormACH = PaymentFormACH;
47843
47905
  exports.PaymentFormCard = PaymentFormCard$1;
47844
- exports.PaymentIcon = PaymentIcon;
47845
47906
  exports.PaymentMethodAddIcon = PaymentMethodAddIcon$1;
47846
47907
  exports.PaymentMethodIcon = PaymentMethodIcon$1;
47847
47908
  exports.PaymentSearchIcon = PaymentSearchIcon;