@thecb/components 10.4.0-beta.8 → 10.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -6203,7 +6203,7 @@ return numeral;
6203
6203
  }));
6204
6204
  });
6205
6205
 
6206
- var noop$1 = function noop() {};
6206
+ var noop = function noop() {};
6207
6207
  var formatMoneyString = function formatMoneyString(s) {
6208
6208
  return numeral(s).format("$0,0.00");
6209
6209
  };
@@ -6337,7 +6337,7 @@ var wrapIndex = function wrapIndex(index, length) {
6337
6337
 
6338
6338
  var general = /*#__PURE__*/Object.freeze({
6339
6339
  __proto__: null,
6340
- noop: noop$1,
6340
+ noop: noop,
6341
6341
  displayCurrency: displayCurrency,
6342
6342
  convertCentsToMoneyInt: convertCentsToMoneyInt,
6343
6343
  formatPercent: formatPercent,
@@ -6501,7 +6501,7 @@ var BoxWrapper = styled(function (_ref) {
6501
6501
  });
6502
6502
  /* eslint-enable no-unused-vars */
6503
6503
 
6504
- var _excluded$3 = ["autocompleteValue", "padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "disabled", "children"];
6504
+ var _excluded$3 = ["autocompleteValue", "padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "children"];
6505
6505
 
6506
6506
  /*
6507
6507
  Box component to create generic boxes
@@ -6549,7 +6549,6 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
6549
6549
  _ref$srOnly = _ref.srOnly,
6550
6550
  srOnly = _ref$srOnly === void 0 ? false : _ref$srOnly,
6551
6551
  dataQa = _ref.dataQa,
6552
- _ref$disabled = _ref.disabled,
6553
6552
  children = _ref.children,
6554
6553
  rest = _objectWithoutProperties(_ref, _excluded$3);
6555
6554
  return /*#__PURE__*/React.createElement(BoxWrapper, _extends({
@@ -10525,7 +10524,7 @@ var isRefObject = function (ref) {
10525
10524
  return typeof ref === "object" && ref.hasOwnProperty("current");
10526
10525
  };
10527
10526
 
10528
- var noop$2 = function (v) { return v; };
10527
+ var noop$1 = function (v) { return v; };
10529
10528
  var ComponentDragControls = /** @class */ (function () {
10530
10529
  function ComponentDragControls(_a) {
10531
10530
  var ref = _a.ref, values = _a.values, controls = _a.controls;
@@ -10553,7 +10552,7 @@ var ComponentDragControls = /** @class */ (function () {
10553
10552
  * @internal
10554
10553
  */
10555
10554
  this.props = {
10556
- transformPagePoint: noop$2,
10555
+ transformPagePoint: noop$1,
10557
10556
  };
10558
10557
  /**
10559
10558
  * References to the MotionValues used for tracking the current dragged point.
@@ -12983,7 +12982,7 @@ var Spinner = function Spinner(_ref) {
12983
12982
 
12984
12983
  var ButtonWithAction = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12985
12984
  var _ref2$action = _ref2.action,
12986
- action = _ref2$action === void 0 ? noop$1 : _ref2$action,
12985
+ action = _ref2$action === void 0 ? noop : _ref2$action,
12987
12986
  _ref2$variant = _ref2.variant,
12988
12987
  variant = _ref2$variant === void 0 ? "primary" : _ref2$variant,
12989
12988
  text = _ref2.text,
@@ -13025,7 +13024,7 @@ var ButtonWithAction = /*#__PURE__*/forwardRef(function (_ref2, ref) {
13025
13024
  disabledStyles: disabledStyles,
13026
13025
  "aria-disabled": disabled,
13027
13026
  as: "button",
13028
- onClick: isLoading || disabled ? undefined : action,
13027
+ onClick: isLoading || disabled ? noop : action,
13029
13028
  borderRadius: "2px",
13030
13029
  theme: themeContext,
13031
13030
  extraStyles: "margin: 0.5rem; ".concat(extraStyles),
@@ -22807,7 +22806,7 @@ var Checkbox = function Checkbox(_ref4) {
22807
22806
  name = _ref4.name,
22808
22807
  checked = _ref4.checked,
22809
22808
  _ref4$onChange = _ref4.onChange,
22810
- onChange = _ref4$onChange === void 0 ? noop$1 : _ref4$onChange,
22809
+ onChange = _ref4$onChange === void 0 ? noop : _ref4$onChange,
22811
22810
  _ref4$disabled = _ref4.disabled,
22812
22811
  disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
22813
22812
  themeValues = _ref4.themeValues,
@@ -23002,7 +23001,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
23002
23001
  padding: "0.875rem",
23003
23002
  borderRadius: "4px",
23004
23003
  minWidth: "30%",
23005
- onClick: disabled ? noop$1 : onSelect,
23004
+ onClick: disabled ? noop : onSelect,
23006
23005
  borderColor: borderColor,
23007
23006
  borderSize: "1px",
23008
23007
  color: color,
@@ -23017,8 +23016,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
23017
23016
  name: name,
23018
23017
  "aria-label": name,
23019
23018
  htmlFor: "checkbox-".concat(name, "-").concat(index),
23020
- onClick: disabled ? noop$1 : onSelect,
23021
- onKeyDown: disabled ? noop$1 : onSelect,
23019
+ onClick: disabled ? noop : onSelect,
23020
+ onKeyDown: disabled ? noop : onSelect,
23022
23021
  tabIndex: 0
23023
23022
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
23024
23023
  theme: {
@@ -24501,7 +24500,7 @@ var Dropdown = function Dropdown(_ref13) {
24501
24500
  _ref13$disabledValues = _ref13.disabledValues,
24502
24501
  disabledValues = _ref13$disabledValues === void 0 ? [] : _ref13$disabledValues,
24503
24502
  _ref13$onClick = _ref13.onClick,
24504
- _onClick = _ref13$onClick === void 0 ? noop$1 : _ref13$onClick,
24503
+ _onClick = _ref13$onClick === void 0 ? noop : _ref13$onClick,
24505
24504
  themeValues = _ref13.themeValues,
24506
24505
  maxHeight = _ref13.maxHeight,
24507
24506
  _ref13$widthFitOption = _ref13.widthFitOptions,
@@ -26117,7 +26116,7 @@ var Popover = function Popover(_ref) {
26117
26116
  extraStyles: "position: relative; ".concat(extraStyles)
26118
26117
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
26119
26118
  action: function action() {
26120
- return noop$1;
26119
+ return noop;
26121
26120
  },
26122
26121
  onFocus: function onFocus() {
26123
26122
  handleTogglePopover(true);
@@ -27083,7 +27082,7 @@ var HamburgerButton = function HamburgerButton(_ref4) {
27083
27082
  inactiveColor = _ref4.inactiveColor,
27084
27083
  isActive = _ref4.isActive,
27085
27084
  _ref4$onClick = _ref4.onClick,
27086
- onClick = _ref4$onClick === void 0 ? noop$1 : _ref4$onClick,
27085
+ onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick,
27087
27086
  controls = _ref4.controls;
27088
27087
  return /*#__PURE__*/React.createElement(Hamburger, {
27089
27088
  className: isActive === true ? "active" : "",
@@ -27930,7 +27929,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27930
27929
  themeValues = _ref5.themeValues,
27931
27930
  index = _ref5.index,
27932
27931
  _ref5$handleChange = _ref5.handleChange,
27933
- handleChange = _ref5$handleChange === void 0 ? noop$1 : _ref5$handleChange,
27932
+ handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange,
27934
27933
  field = _ref5.field,
27935
27934
  config = _ref5.config;
27936
27935
  var getDefaultChecked = function getDefaultChecked(value, idx) {
@@ -38814,7 +38813,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
38814
38813
  var _ref6$isOn = _ref6.isOn,
38815
38814
  isOn = _ref6$isOn === void 0 ? false : _ref6$isOn,
38816
38815
  _ref6$onToggle = _ref6.onToggle,
38817
- onToggle = _ref6$onToggle === void 0 ? noop$1 : _ref6$onToggle,
38816
+ onToggle = _ref6$onToggle === void 0 ? noop : _ref6$onToggle,
38818
38817
  _ref6$disabled = _ref6.disabled,
38819
38818
  disabled = _ref6$disabled === void 0 ? false : _ref6$disabled,
38820
38819
  _ref6$name = _ref6.name,
@@ -38922,15 +38921,15 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
38922
38921
  }, /*#__PURE__*/React.createElement(HiddenToggleSwitchBox, {
38923
38922
  "aria-label": name,
38924
38923
  checked: isOn,
38925
- onChange: disabled ? noop$1 : onToggle,
38924
+ onChange: disabled ? noop : onToggle,
38926
38925
  disabled: disabled,
38927
38926
  id: "#toggle-".concat(name),
38928
38927
  isMobile: isMobile
38929
38928
  }), /*#__PURE__*/React.createElement(VisibleSwitch, {
38930
38929
  name: name,
38931
38930
  htmlFor: "#toggle-".concat(name),
38932
- onClick: disabled ? noop$1 : onToggle,
38933
- onKeyDown: disabled ? noop$1 : handleKeyDown,
38931
+ onClick: disabled ? noop : onToggle,
38932
+ onKeyDown: disabled ? noop : handleKeyDown,
38934
38933
  pose: disabled ? "disabled" : isOn ? "on" : "off",
38935
38934
  tabIndex: disabled ? -1 : 0,
38936
38935
  disabled: disabled,
@@ -40022,7 +40021,7 @@ var AddressForm = function AddressForm(_ref) {
40022
40021
  clearOnDismount = _ref.clearOnDismount,
40023
40022
  showErrors = _ref.showErrors,
40024
40023
  _ref$handleSubmit = _ref.handleSubmit,
40025
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
40024
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40026
40025
  showWalletCheckbox = _ref.showWalletCheckbox,
40027
40026
  saveToWallet = _ref.saveToWallet,
40028
40027
  walletCheckboxMarked = _ref.walletCheckboxMarked,
@@ -40222,7 +40221,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
40222
40221
  fields = _ref.fields,
40223
40222
  actions = _ref.actions,
40224
40223
  _ref$handleSubmit = _ref.handleSubmit,
40225
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
40224
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40226
40225
  showErrors = _ref.showErrors,
40227
40226
  isMobile = _ref.isMobile,
40228
40227
  revenueManagement = _ref.revenueManagement,
@@ -40433,8 +40432,8 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
40433
40432
  }, /*#__PURE__*/React.createElement(Box, {
40434
40433
  padding: customPadding ? customPadding : "0",
40435
40434
  background: themeValues.headingBackgroundColor,
40436
- onClick: isMobile && supportsTouch ? noop$1 : toggleSection,
40437
- onTouchEnd: isMobile && supportsTouch ? toggleSection : noop$1,
40435
+ onClick: isMobile && supportsTouch ? noop : toggleSection,
40436
+ onTouchEnd: isMobile && supportsTouch ? toggleSection : noop,
40438
40437
  key: "header",
40439
40438
  hoverStyles: "cursor: pointer;",
40440
40439
  tabIndex: "0",
@@ -40652,7 +40651,7 @@ var EditNameForm = function EditNameForm(_ref) {
40652
40651
  clearOnDismount = _ref.clearOnDismount,
40653
40652
  showErrors = _ref.showErrors,
40654
40653
  _ref$handleSubmit = _ref.handleSubmit,
40655
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
40654
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
40656
40655
  if (clearOnDismount) {
40657
40656
  useEffect$1(function () {
40658
40657
  return function () {
@@ -40992,7 +40991,7 @@ var EmailForm = function EmailForm(_ref) {
40992
40991
  showErrors = _ref.showErrors,
40993
40992
  guestCheckout = _ref.guestCheckout,
40994
40993
  _ref$handleSubmit = _ref.handleSubmit,
40995
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
40994
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40996
40995
  showWalletCheckbox = _ref.showWalletCheckbox,
40997
40996
  saveToWallet = _ref.saveToWallet,
40998
40997
  walletCheckboxMarked = _ref.walletCheckboxMarked,
@@ -41089,7 +41088,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
41089
41088
  clearOnDismount = _ref.clearOnDismount,
41090
41089
  showErrors = _ref.showErrors,
41091
41090
  _ref$handleSubmit = _ref.handleSubmit,
41092
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
41091
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
41093
41092
  if (clearOnDismount) {
41094
41093
  useEffect$1(function () {
41095
41094
  return function () {
@@ -42741,9 +42740,11 @@ var LinkCard = function LinkCard(_ref) {
42741
42740
  extraStyles: extraStyles,
42742
42741
  hoverStyles: extraHoverStyles,
42743
42742
  activeStyles: extraActiveStyles,
42744
- onClick: disabled ? noop$1 : onClick,
42743
+ onClick: disabled ? noop : onClick,
42745
42744
  "aria-disabled": disabled,
42746
- isDisabled: disabled
42745
+ isDisabled: disabled,
42746
+ role: "group",
42747
+ "aria-label": "".concat(title, ", ").concat(subtitle)
42747
42748
  }, /*#__PURE__*/React.createElement(Stack, {
42748
42749
  childGap: 0,
42749
42750
  bottomItem: 3,
@@ -42788,7 +42789,7 @@ var LoginForm = function LoginForm(_ref) {
42788
42789
  actions = _ref.actions,
42789
42790
  showErrors = _ref.showErrors,
42790
42791
  _ref$handleSubmit = _ref.handleSubmit,
42791
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
42792
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
42792
42793
  if (clearOnDismount) {
42793
42794
  useEffect$1(function () {
42794
42795
  return function () {
@@ -46282,7 +46283,9 @@ var Modal$1 = function Modal(_ref) {
46282
46283
  _ref$dataQa = _ref.dataQa,
46283
46284
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
46284
46285
  _ref$initialFocusSele = _ref.initialFocusSelector,
46285
- initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
46286
+ initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele,
46287
+ _ref$blurUnderlay = _ref.blurUnderlay,
46288
+ blurUnderlay = _ref$blurUnderlay === void 0 ? true : _ref$blurUnderlay;
46286
46289
  var _useContext = useContext(ThemeContext),
46287
46290
  isMobile = _useContext.isMobile;
46288
46291
  var modalContainerRef = useRef(null);
@@ -46302,7 +46305,10 @@ var Modal$1 = function Modal(_ref) {
46302
46305
  display: "flex",
46303
46306
  flexDirection: "column",
46304
46307
  justifyContent: "center",
46305
- alignItems: "center"
46308
+ alignItems: "center",
46309
+ background: "rgba(41, 42, 51, 0.45)",
46310
+ backdropFilter: blurUnderlay ? "blur(4px)" : "none",
46311
+ WebkitBackdropFilter: blurUnderlay ? "blur(4px)" : "none"
46306
46312
  },
46307
46313
  dialogStyle: {
46308
46314
  width: customWidth || "615px",
@@ -46733,8 +46739,11 @@ var AutopayModal = function AutopayModal(_ref) {
46733
46739
  description = _ref.description,
46734
46740
  subDescription = _ref.subDescription,
46735
46741
  allowedPaymentInstruments = _ref.allowedPaymentInstruments,
46736
- _ref$isInCustomerMana = _ref.isInCustomerManagement,
46737
- isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
46742
+ _ref$disableActions = _ref.disableActions,
46743
+ disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions,
46744
+ action = _ref.action,
46745
+ onClick = _ref.onClick,
46746
+ onKeyPress = _ref.onKeyPress;
46738
46747
  var generateMethodNeededText = function generateMethodNeededText(planText, allowedPaymentInstruments) {
46739
46748
  var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
46740
46749
  var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
@@ -46765,12 +46774,12 @@ var AutopayModal = function AutopayModal(_ref) {
46765
46774
  return /*#__PURE__*/React.createElement(ButtonWithAction, {
46766
46775
  text: autoPayActive ? "Turn off ".concat(shortPlan) : "Set Up ".concat(shortPlan),
46767
46776
  variant: "secondary",
46768
- action: function action() {
46769
- isInCustomerManagement ? noop$1 : toggleModal(true);
46777
+ action: action || function () {
46778
+ return toggleModal(true);
46770
46779
  },
46771
46780
  dataQa: "Turn off Autopay",
46772
46781
  extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1; min-width: 165px;",
46773
- disabled: isInCustomerManagement
46782
+ disabled: disableActions
46774
46783
  });
46775
46784
  }
46776
46785
  case "tertiary":
@@ -46778,20 +46787,20 @@ var AutopayModal = function AutopayModal(_ref) {
46778
46787
  return /*#__PURE__*/React.createElement(ButtonWithAction, {
46779
46788
  text: autoPayActive ? "Manage ".concat(shortPlan) : "Set Up ".concat(shortPlan),
46780
46789
  variant: "tertiary",
46781
- action: function action() {
46782
- isInCustomerManagement ? noop$1 : toggleModal(true);
46790
+ action: action || function () {
46791
+ return toggleModal(true);
46783
46792
  },
46784
46793
  dataQa: "Manage Autopay",
46785
46794
  extraStyles: isMobile && "flex-grow: 1; width: 100%;",
46786
- disabled: isInCustomerManagement
46795
+ disabled: disableActions
46787
46796
  });
46788
46797
  }
46789
46798
  case "link":
46790
46799
  {
46791
46800
  return /*#__PURE__*/React.createElement(Box, {
46792
46801
  padding: "0",
46793
- onClick: function onClick() {
46794
- isInCustomerManagement ? noop$1 : toggleModal(true);
46802
+ onClick: onClick || function () {
46803
+ toggleModal(true);
46795
46804
  },
46796
46805
  hoverStyles: hoverStyles,
46797
46806
  activeStyles: activeStyles,
@@ -46801,10 +46810,10 @@ var AutopayModal = function AutopayModal(_ref) {
46801
46810
  align: "center"
46802
46811
  }, /*#__PURE__*/React.createElement(AutopayOnIcon, null), /*#__PURE__*/React.createElement(Text$1, {
46803
46812
  variant: "pS",
46804
- onClick: function onClick() {
46805
- return isInCustomerManagement ? noop$1 : toggleModal(true);
46813
+ onClick: onClick || function () {
46814
+ return toggleModal(true);
46806
46815
  },
46807
- onKeyPress: isInCustomerManagement ? noop$1 : function (e) {
46816
+ onKeyPress: onKeyPress || function (e) {
46808
46817
  e.key === "Enter" && toggleModal(true);
46809
46818
  },
46810
46819
  tabIndex: "0",
@@ -46813,16 +46822,16 @@ var AutopayModal = function AutopayModal(_ref) {
46813
46822
  weight: themeValues.fontWeight,
46814
46823
  hoverStyles: themeValues.modalLinkHoverFocus,
46815
46824
  extraStyles: "padding-left: 0.25rem;",
46816
- disabled: isInCustomerManagement
46825
+ disabled: disableActions
46817
46826
  }, "".concat(shortPlan, " ").concat(nextAutopayDate))));
46818
46827
  }
46819
46828
  }
46820
46829
  };
46821
46830
  return /*#__PURE__*/React.createElement(Modal$1, _extends({
46822
- showModal: isInCustomerManagement ? noop$1 : function () {
46831
+ showModal: function showModal() {
46823
46832
  return toggleModal(true);
46824
46833
  },
46825
- hideModal: isInCustomerManagement ? noop$1 : function () {
46834
+ hideModal: function hideModal() {
46826
46835
  return toggleModal(false);
46827
46836
  },
46828
46837
  modalOpen: modalOpen
@@ -46843,8 +46852,8 @@ var AmountModule = function AmountModule(_ref) {
46843
46852
  description = _ref.description,
46844
46853
  subDescription = _ref.subDescription,
46845
46854
  allowedPaymentInstruments = _ref.allowedPaymentInstruments,
46846
- _ref$isInCustomerMana = _ref.isInCustomerManagement,
46847
- isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
46855
+ _ref$disableActions = _ref.disableActions,
46856
+ disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
46848
46857
  var _useState = useState(false),
46849
46858
  _useState2 = _slicedToArray(_useState, 2),
46850
46859
  modalOpen = _useState2[0],
@@ -46875,7 +46884,16 @@ var AmountModule = function AmountModule(_ref) {
46875
46884
  description: description,
46876
46885
  subDescription: subDescription,
46877
46886
  allowedPaymentInstruments: allowedPaymentInstruments,
46878
- isInCustomerManagement: isInCustomerManagement
46887
+ disableActions: disableActions,
46888
+ action: disableActions ? noop : function () {
46889
+ return toggleModal(true);
46890
+ },
46891
+ onClick: disableActions ? noop : function () {
46892
+ toggleModal(true);
46893
+ },
46894
+ onKeyPress: disableActions ? noop : function (e) {
46895
+ e.key === "Enter" && toggleModal(true);
46896
+ }
46879
46897
  })));
46880
46898
  };
46881
46899
 
@@ -46898,8 +46916,8 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46898
46916
  description = _ref.description,
46899
46917
  subDescription = _ref.subDescription,
46900
46918
  allowedPaymentInstruments = _ref.allowedPaymentInstruments,
46901
- _ref$isInCustomerMana = _ref.isInCustomerManagement,
46902
- isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
46919
+ _ref$disableActions = _ref.disableActions,
46920
+ disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
46903
46921
  var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
46904
46922
  var _useState = useState(false),
46905
46923
  _useState2 = _slicedToArray(_useState, 2),
@@ -46953,7 +46971,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46953
46971
  description: description,
46954
46972
  subDescription: subDescription,
46955
46973
  allowedPaymentInstruments: allowedPaymentInstruments,
46956
- isInCustomerManagement: isInCustomerManagement
46974
+ isInCustomerManagement: disableActions
46957
46975
  }))), /*#__PURE__*/React.createElement(Box, {
46958
46976
  padding: isMobile ? "16px" : "0"
46959
46977
  }, /*#__PURE__*/React.createElement(Cluster, {
@@ -46981,7 +46999,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46981
46999
  },
46982
47000
  dataQa: "Set Up Autopay",
46983
47001
  extraStyles: isMobile && "flex-grow: 1; width: 100%;",
46984
- disabled: isInCustomerManagement
47002
+ disabled: disableActions
46985
47003
  }) : /*#__PURE__*/React.createElement(AutopayModalModule, {
46986
47004
  autoPayActive: autoPayEnabled,
46987
47005
  autoPaySchedule: autoPaySchedule,
@@ -46998,25 +47016,25 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46998
47016
  description: description,
46999
47017
  subDescription: subDescription,
47000
47018
  allowedPaymentInstruments: allowedPaymentInstruments,
47001
- isInCustomerManagement: isInCustomerManagement
47019
+ disableActions: disableActions
47002
47020
  })), !isMobile && /*#__PURE__*/React.createElement(Box, {
47003
47021
  padding: "0"
47004
47022
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
47005
47023
  isLoading: isLoading,
47006
- action: isInCustomerManagement ? noop$1 : function () {
47024
+ action: disableActions ? noop : function () {
47007
47025
  return handleClick(obligations);
47008
47026
  },
47009
47027
  text: "Pay Now",
47010
47028
  variant: isMobile ? "smallSecondary" : "secondary",
47011
47029
  dataQa: "Pay Now",
47012
- disabled: isInCustomerManagement
47030
+ disabled: disableActions
47013
47031
  }))), isMobile && /*#__PURE__*/React.createElement(Box, {
47014
47032
  padding: "8px 0 0",
47015
47033
  width: "100%"
47016
47034
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
47017
47035
  isLoading: isLoading,
47018
47036
  action: function action() {
47019
- return isInCustomerManagement ? noop$1 : function () {
47037
+ return disableActions ? noop : function () {
47020
47038
  return handleClick(obligations);
47021
47039
  };
47022
47040
  },
@@ -47024,7 +47042,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
47024
47042
  variant: isMobile ? "smallSecondary" : "secondary",
47025
47043
  dataQa: "Pay Now",
47026
47044
  extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;",
47027
- disabled: isInCustomerManagement
47045
+ disabled: disableActions
47028
47046
  }))));
47029
47047
  };
47030
47048
 
@@ -47035,8 +47053,8 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
47035
47053
  removeAccount = _ref.removeAccount,
47036
47054
  accountType = _ref.accountType,
47037
47055
  isMobile = _ref.isMobile,
47038
- _ref$isInCustomerMana = _ref.isInCustomerManagement,
47039
- isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
47056
+ _ref$disableActions = _ref.disableActions,
47057
+ disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
47040
47058
  var _useState = useState(false),
47041
47059
  _useState2 = _slicedToArray(_useState, 2),
47042
47060
  modalIsOpen = _useState2[0],
@@ -47060,8 +47078,10 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
47060
47078
  modalBodyText: "Are you sure you want to remove the ".concat(identifier, " ").concat(accounts, "? Any autopay scheduled against ").concat(obligations.length > 1 ? "them" : "it", " will be deactivated."),
47061
47079
  continueButtonText: "Remove",
47062
47080
  continueAction: function continueAction() {
47063
- removeAccount();
47064
- setModalIsOpen(false);
47081
+ if (!disableActions) {
47082
+ removeAccount();
47083
+ setModalIsOpen(false);
47084
+ }
47065
47085
  },
47066
47086
  useDangerButton: true
47067
47087
  }, /*#__PURE__*/React.createElement(Box, {
@@ -47070,12 +47090,12 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
47070
47090
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
47071
47091
  text: "Remove",
47072
47092
  variant: "secondary",
47073
- action: isInCustomerManagement ? noop : function () {
47093
+ action: disableActions ? noop : function () {
47074
47094
  return setModalIsOpen(true);
47075
47095
  },
47076
47096
  dataQa: "Remove Account",
47077
47097
  extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;",
47078
- disabled: isInCustomerManagement
47098
+ disabled: disableActions
47079
47099
  })));
47080
47100
  };
47081
47101
 
@@ -47096,8 +47116,8 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
47096
47116
  description = _ref.description,
47097
47117
  subDescription = _ref.subDescription,
47098
47118
  allowedPaymentInstruments = _ref.allowedPaymentInstruments,
47099
- _ref$isInCustomerMana = _ref.isInCustomerManagement,
47100
- isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
47119
+ _ref$disableActions = _ref.disableActions,
47120
+ disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
47101
47121
  var _useState = useState(false),
47102
47122
  _useState2 = _slicedToArray(_useState, 2),
47103
47123
  modalOpen = _useState2[0],
@@ -47136,16 +47156,16 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
47136
47156
  description: description,
47137
47157
  subDescription: subDescription,
47138
47158
  allowedPaymentInstruments: allowedPaymentInstruments,
47139
- isInCustomerManagement: isInCustomerManagement
47159
+ disableActions: disableActions
47140
47160
  })), /*#__PURE__*/React.createElement(Box, {
47141
47161
  padding: "0",
47142
47162
  extraStyles: "flex-grow: 1;"
47143
47163
  }, /*#__PURE__*/React.createElement(RemoveAccountModalModule, {
47144
47164
  agencyName: agencyName,
47145
- removeAccount: isInCustomerManagement ? noop$1 : handleRemoveAccount,
47165
+ removeAccount: disableActions ? noop : handleRemoveAccount,
47146
47166
  accountType: configType === "ACCOUNT" ? "Account" : "Property",
47147
47167
  isMobile: isMobile,
47148
- isInCustomerManagement: isInCustomerManagement
47168
+ disableActions: disableActions
47149
47169
  }))));
47150
47170
  };
47151
47171
 
@@ -47276,7 +47296,7 @@ var Obligation = function Obligation(_ref) {
47276
47296
  description: description,
47277
47297
  subDescription: subDescription,
47278
47298
  allowedPaymentInstruments: allowedPaymentInstruments,
47279
- isInCustomerManagement: isInCustomerManagement
47299
+ disableActions: isInCustomerManagement
47280
47300
  }))), !isMobile && /*#__PURE__*/React.createElement(PaymentDetailsActions, {
47281
47301
  obligations: obligations,
47282
47302
  autoPayEnabled: autoPayEnabled,
@@ -47295,7 +47315,7 @@ var Obligation = function Obligation(_ref) {
47295
47315
  description: description,
47296
47316
  subDescription: subDescription,
47297
47317
  allowedPaymentInstruments: allowedPaymentInstruments,
47298
- isInCustomerManagement: isInCustomerManagement
47318
+ disableActions: isInCustomerManagement
47299
47319
  }))), isMobile && /*#__PURE__*/React.createElement(PaymentDetailsActions, {
47300
47320
  obligations: obligations,
47301
47321
  autoPayEnabled: autoPayEnabled,
@@ -47314,7 +47334,7 @@ var Obligation = function Obligation(_ref) {
47314
47334
  description: description,
47315
47335
  subDescription: subDescription,
47316
47336
  allowedPaymentInstruments: allowedPaymentInstruments,
47317
- isInCustomerManagement: isInCustomerManagement
47337
+ disableActions: isInCustomerManagement
47318
47338
  }));
47319
47339
  var inactiveObligation = /*#__PURE__*/React.createElement(Box, {
47320
47340
  padding: "0",
@@ -47371,7 +47391,7 @@ var Obligation = function Obligation(_ref) {
47371
47391
  description: description,
47372
47392
  subDescription: subDescription,
47373
47393
  allowedPaymentInstruments: allowedPaymentInstruments,
47374
- isInCustomerManagement: isInCustomerManagement
47394
+ disableActions: isInCustomerManagement
47375
47395
  }))), isMobile && /*#__PURE__*/React.createElement(InactiveControlsModule, {
47376
47396
  obligations: obligations,
47377
47397
  autoPayEnabled: autoPayEnabled,
@@ -47389,7 +47409,7 @@ var Obligation = function Obligation(_ref) {
47389
47409
  description: description,
47390
47410
  subDescription: subDescription,
47391
47411
  allowedPaymentInstruments: allowedPaymentInstruments,
47392
- isInCustomerManagement: isInCustomerManagement
47412
+ disableActions: isInCustomerManagement
47393
47413
  }))));
47394
47414
  return inactive ? inactiveObligation : activeObligation;
47395
47415
  };
@@ -47671,7 +47691,7 @@ var Pagination = function Pagination(_ref3) {
47671
47691
  return setCurrentPage({
47672
47692
  pageNumber: item.index
47673
47693
  });
47674
- } : noop$1,
47694
+ } : noop,
47675
47695
  textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
47676
47696
  extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
47677
47697
  dataQa: index
@@ -48028,7 +48048,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
48028
48048
  _ref4$voidableTransac = _ref4.voidableTransactionDetails,
48029
48049
  voidableTransactionDetails = _ref4$voidableTransac === void 0 ? [] : _ref4$voidableTransac,
48030
48050
  _ref4$partialVoidActi = _ref4.partialVoidAction,
48031
- partialVoidAction = _ref4$partialVoidActi === void 0 ? noop$1 : _ref4$partialVoidActi,
48051
+ partialVoidAction = _ref4$partialVoidActi === void 0 ? noop : _ref4$partialVoidActi,
48032
48052
  _ref4$voidableAmountP = _ref4.voidableAmountPaid,
48033
48053
  voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP,
48034
48054
  _ref4$remainingBalanc = _ref4.remainingBalance,
@@ -48487,7 +48507,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48487
48507
  actions = _ref.actions,
48488
48508
  showErrors = _ref.showErrors,
48489
48509
  _ref$handleSubmit = _ref.handleSubmit,
48490
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
48510
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
48491
48511
  showWalletCheckbox = _ref.showWalletCheckbox,
48492
48512
  saveToWallet = _ref.saveToWallet,
48493
48513
  walletCheckboxMarked = _ref.walletCheckboxMarked,
@@ -48689,7 +48709,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48689
48709
  actions = _ref.actions,
48690
48710
  showErrors = _ref.showErrors,
48691
48711
  _ref$handleSubmit = _ref.handleSubmit,
48692
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
48712
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
48693
48713
  showWalletCheckbox = _ref.showWalletCheckbox,
48694
48714
  saveToWallet = _ref.saveToWallet,
48695
48715
  walletCheckboxMarked = _ref.walletCheckboxMarked,
@@ -48993,7 +49013,7 @@ var PhoneForm = function PhoneForm(_ref) {
48993
49013
  clearOnDismount = _ref.clearOnDismount,
48994
49014
  showErrors = _ref.showErrors,
48995
49015
  _ref$handleSubmit = _ref.handleSubmit,
48996
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
49016
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
48997
49017
  showWalletCheckbox = _ref.showWalletCheckbox,
48998
49018
  saveToWallet = _ref.saveToWallet,
48999
49019
  walletCheckboxMarked = _ref.walletCheckboxMarked,
@@ -49069,7 +49089,7 @@ var RadioGroup = function RadioGroup(_ref) {
49069
49089
  config = _ref.config,
49070
49090
  extraStyles = _ref.extraStyles,
49071
49091
  _ref$handleChange = _ref.handleChange,
49072
- handleChange = _ref$handleChange === void 0 ? noop$1 : _ref$handleChange,
49092
+ handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
49073
49093
  field = _ref.field,
49074
49094
  fieldActions = _ref.fieldActions;
49075
49095
  var setValue = function setValue(value) {
@@ -49134,7 +49154,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
49134
49154
  ariaLabelledBy = _ref.ariaLabelledBy,
49135
49155
  isLastGroupedItemInSection = _ref.isLastGroupedItemInSection,
49136
49156
  _ref$onKeyDown = _ref.onKeyDown,
49137
- onKeyDown = _ref$onKeyDown === void 0 ? noop$1 : _ref$onKeyDown;
49157
+ onKeyDown = _ref$onKeyDown === void 0 ? noop : _ref$onKeyDown;
49138
49158
  var wrapper = {
49139
49159
  open: {
49140
49160
  height: openHeight,
@@ -49191,12 +49211,12 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
49191
49211
  "aria-required": section.required,
49192
49212
  "aria-labelledby": ariaLabelledBy,
49193
49213
  "aria-describedby": ariaDescribedBy,
49194
- onClick: isMobile && supportsTouch || section.disabled ? noop$1 : function () {
49214
+ onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
49195
49215
  return toggleOpenSection(section.id);
49196
49216
  },
49197
49217
  onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
49198
49218
  return toggleOpenSection(section.id);
49199
- } : noop$1,
49219
+ } : noop,
49200
49220
  id: "inner-radio-section-".concat(sectionIndex),
49201
49221
  "data-qa": section.dataQa ? section.dataQa : section.id || "inner-radio-section-".concat(sectionIndex)
49202
49222
  }, /*#__PURE__*/React.createElement(Stack, {
@@ -49226,7 +49246,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
49226
49246
  ariaDescribedBy: ariaDescribedBy,
49227
49247
  radioOn: openSection === section.id,
49228
49248
  radioFocused: focused === section.id,
49229
- toggleRadio: section.disabled ? noop$1 : function () {
49249
+ toggleRadio: section.disabled ? noop : function () {
49230
49250
  return toggleOpenSection(section.id);
49231
49251
  },
49232
49252
  tabIndex: "-1",
@@ -49410,7 +49430,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
49410
49430
  fields = _ref.fields,
49411
49431
  actions = _ref.actions,
49412
49432
  _ref$handleSubmit = _ref.handleSubmit,
49413
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
49433
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
49414
49434
  showErrors = _ref.showErrors,
49415
49435
  isMobile = _ref.isMobile;
49416
49436
  if (clearOnDismount) {
@@ -49570,7 +49590,7 @@ var ResetConfirmationForm$1 = withWindowSize(ResetConfirmationForm);
49570
49590
 
49571
49591
  var ResetPasswordForm = function ResetPasswordForm(_ref) {
49572
49592
  var _ref$handleSubmit = _ref.handleSubmit,
49573
- handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
49593
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
49574
49594
  clearOnDismount = _ref.clearOnDismount,
49575
49595
  fields = _ref.fields,
49576
49596
  actions = _ref.actions,