@thecb/components 10.4.0-beta.14 → 10.4.0-beta.16
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 +62 -56
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +62 -56
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/layouts/Box.js +0 -1
- package/src/components/molecules/modal/Modal.js +6 -2
- package/src/components/molecules/modal/Modal.stories.js +2 -0
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +1 -1
- package/src/components/molecules/obligation/modules/RemoveAccountModalModule.js +8 -5
package/dist/index.esm.js
CHANGED
|
@@ -6203,7 +6203,7 @@ return numeral;
|
|
|
6203
6203
|
}));
|
|
6204
6204
|
});
|
|
6205
6205
|
|
|
6206
|
-
var 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
|
|
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", "
|
|
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$
|
|
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$
|
|
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
|
|
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 ? noop
|
|
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
|
|
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
|
|
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
|
|
23021
|
-
onKeyDown: disabled ? noop
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
38933
|
-
onKeyDown: disabled ? noop
|
|
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
|
|
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
|
|
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
|
|
40437
|
-
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop
|
|
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
|
|
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
|
|
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
|
|
41091
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
41093
41092
|
if (clearOnDismount) {
|
|
41094
41093
|
useEffect$1(function () {
|
|
41095
41094
|
return function () {
|
|
@@ -42741,7 +42740,7 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42741
42740
|
extraStyles: extraStyles,
|
|
42742
42741
|
hoverStyles: extraHoverStyles,
|
|
42743
42742
|
activeStyles: extraActiveStyles,
|
|
42744
|
-
onClick: disabled ? noop
|
|
42743
|
+
onClick: disabled ? noop : onClick,
|
|
42745
42744
|
"aria-disabled": disabled,
|
|
42746
42745
|
isDisabled: disabled,
|
|
42747
42746
|
role: "group",
|
|
@@ -42790,7 +42789,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
42790
42789
|
actions = _ref.actions,
|
|
42791
42790
|
showErrors = _ref.showErrors,
|
|
42792
42791
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
42793
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
42792
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
42794
42793
|
if (clearOnDismount) {
|
|
42795
42794
|
useEffect$1(function () {
|
|
42796
42795
|
return function () {
|
|
@@ -46284,7 +46283,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46284
46283
|
_ref$dataQa = _ref.dataQa,
|
|
46285
46284
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
46286
46285
|
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
46287
|
-
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;
|
|
46288
46289
|
var _useContext = useContext(ThemeContext),
|
|
46289
46290
|
isMobile = _useContext.isMobile;
|
|
46290
46291
|
var modalContainerRef = useRef(null);
|
|
@@ -46304,7 +46305,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46304
46305
|
display: "flex",
|
|
46305
46306
|
flexDirection: "column",
|
|
46306
46307
|
justifyContent: "center",
|
|
46307
|
-
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"
|
|
46308
46312
|
},
|
|
46309
46313
|
dialogStyle: {
|
|
46310
46314
|
width: customWidth || "615px",
|
|
@@ -46881,13 +46885,13 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
46881
46885
|
subDescription: subDescription,
|
|
46882
46886
|
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
46883
46887
|
disableActions: disableActions,
|
|
46884
|
-
action: disableActions ? noop
|
|
46888
|
+
action: disableActions ? noop : function () {
|
|
46885
46889
|
return toggleModal(true);
|
|
46886
46890
|
},
|
|
46887
|
-
onClick: disableActions ? noop
|
|
46891
|
+
onClick: disableActions ? noop : function () {
|
|
46888
46892
|
toggleModal(true);
|
|
46889
46893
|
},
|
|
46890
|
-
onKeyPress: disableActions ? noop
|
|
46894
|
+
onKeyPress: disableActions ? noop : function (e) {
|
|
46891
46895
|
e.key === "Enter" && toggleModal(true);
|
|
46892
46896
|
}
|
|
46893
46897
|
})));
|
|
@@ -47017,7 +47021,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
47017
47021
|
padding: "0"
|
|
47018
47022
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
47019
47023
|
isLoading: isLoading,
|
|
47020
|
-
action: disableActions ? noop
|
|
47024
|
+
action: disableActions ? noop : function () {
|
|
47021
47025
|
return handleClick(obligations);
|
|
47022
47026
|
},
|
|
47023
47027
|
text: "Pay Now",
|
|
@@ -47030,7 +47034,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
47030
47034
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
47031
47035
|
isLoading: isLoading,
|
|
47032
47036
|
action: function action() {
|
|
47033
|
-
return disableActions ? noop
|
|
47037
|
+
return disableActions ? noop : function () {
|
|
47034
47038
|
return handleClick(obligations);
|
|
47035
47039
|
};
|
|
47036
47040
|
},
|
|
@@ -47049,8 +47053,8 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
47049
47053
|
removeAccount = _ref.removeAccount,
|
|
47050
47054
|
accountType = _ref.accountType,
|
|
47051
47055
|
isMobile = _ref.isMobile,
|
|
47052
|
-
_ref$
|
|
47053
|
-
|
|
47056
|
+
_ref$disableActions = _ref.disableActions,
|
|
47057
|
+
disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
|
|
47054
47058
|
var _useState = useState(false),
|
|
47055
47059
|
_useState2 = _slicedToArray(_useState, 2),
|
|
47056
47060
|
modalIsOpen = _useState2[0],
|
|
@@ -47074,8 +47078,10 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
47074
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."),
|
|
47075
47079
|
continueButtonText: "Remove",
|
|
47076
47080
|
continueAction: function continueAction() {
|
|
47077
|
-
|
|
47078
|
-
|
|
47081
|
+
if (!disableActions) {
|
|
47082
|
+
removeAccount();
|
|
47083
|
+
setModalIsOpen(false);
|
|
47084
|
+
}
|
|
47079
47085
|
},
|
|
47080
47086
|
useDangerButton: true
|
|
47081
47087
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -47084,12 +47090,12 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
47084
47090
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
47085
47091
|
text: "Remove",
|
|
47086
47092
|
variant: "secondary",
|
|
47087
|
-
action:
|
|
47093
|
+
action: disableActions ? noop : function () {
|
|
47088
47094
|
return setModalIsOpen(true);
|
|
47089
47095
|
},
|
|
47090
47096
|
dataQa: "Remove Account",
|
|
47091
47097
|
extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;",
|
|
47092
|
-
disabled:
|
|
47098
|
+
disabled: disableActions
|
|
47093
47099
|
})));
|
|
47094
47100
|
};
|
|
47095
47101
|
|
|
@@ -47156,10 +47162,10 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
47156
47162
|
extraStyles: "flex-grow: 1;"
|
|
47157
47163
|
}, /*#__PURE__*/React.createElement(RemoveAccountModalModule, {
|
|
47158
47164
|
agencyName: agencyName,
|
|
47159
|
-
removeAccount: disableActions ? noop
|
|
47165
|
+
removeAccount: disableActions ? noop : handleRemoveAccount,
|
|
47160
47166
|
accountType: configType === "ACCOUNT" ? "Account" : "Property",
|
|
47161
47167
|
isMobile: isMobile,
|
|
47162
|
-
|
|
47168
|
+
disableActions: disableActions
|
|
47163
47169
|
}))));
|
|
47164
47170
|
};
|
|
47165
47171
|
|
|
@@ -47685,7 +47691,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
47685
47691
|
return setCurrentPage({
|
|
47686
47692
|
pageNumber: item.index
|
|
47687
47693
|
});
|
|
47688
|
-
} : noop
|
|
47694
|
+
} : noop,
|
|
47689
47695
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
47690
47696
|
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
47691
47697
|
dataQa: index
|
|
@@ -48042,7 +48048,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48042
48048
|
_ref4$voidableTransac = _ref4.voidableTransactionDetails,
|
|
48043
48049
|
voidableTransactionDetails = _ref4$voidableTransac === void 0 ? [] : _ref4$voidableTransac,
|
|
48044
48050
|
_ref4$partialVoidActi = _ref4.partialVoidAction,
|
|
48045
|
-
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop
|
|
48051
|
+
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop : _ref4$partialVoidActi,
|
|
48046
48052
|
_ref4$voidableAmountP = _ref4.voidableAmountPaid,
|
|
48047
48053
|
voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP,
|
|
48048
48054
|
_ref4$remainingBalanc = _ref4.remainingBalance,
|
|
@@ -48501,7 +48507,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48501
48507
|
actions = _ref.actions,
|
|
48502
48508
|
showErrors = _ref.showErrors,
|
|
48503
48509
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48504
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
48510
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48505
48511
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48506
48512
|
saveToWallet = _ref.saveToWallet,
|
|
48507
48513
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -48703,7 +48709,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48703
48709
|
actions = _ref.actions,
|
|
48704
48710
|
showErrors = _ref.showErrors,
|
|
48705
48711
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48706
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
48712
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48707
48713
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48708
48714
|
saveToWallet = _ref.saveToWallet,
|
|
48709
48715
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -49007,7 +49013,7 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49007
49013
|
clearOnDismount = _ref.clearOnDismount,
|
|
49008
49014
|
showErrors = _ref.showErrors,
|
|
49009
49015
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49010
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49016
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49011
49017
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
49012
49018
|
saveToWallet = _ref.saveToWallet,
|
|
49013
49019
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -49083,7 +49089,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
49083
49089
|
config = _ref.config,
|
|
49084
49090
|
extraStyles = _ref.extraStyles,
|
|
49085
49091
|
_ref$handleChange = _ref.handleChange,
|
|
49086
|
-
handleChange = _ref$handleChange === void 0 ? noop
|
|
49092
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
49087
49093
|
field = _ref.field,
|
|
49088
49094
|
fieldActions = _ref.fieldActions;
|
|
49089
49095
|
var setValue = function setValue(value) {
|
|
@@ -49148,7 +49154,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49148
49154
|
ariaLabelledBy = _ref.ariaLabelledBy,
|
|
49149
49155
|
isLastGroupedItemInSection = _ref.isLastGroupedItemInSection,
|
|
49150
49156
|
_ref$onKeyDown = _ref.onKeyDown,
|
|
49151
|
-
onKeyDown = _ref$onKeyDown === void 0 ? noop
|
|
49157
|
+
onKeyDown = _ref$onKeyDown === void 0 ? noop : _ref$onKeyDown;
|
|
49152
49158
|
var wrapper = {
|
|
49153
49159
|
open: {
|
|
49154
49160
|
height: openHeight,
|
|
@@ -49205,12 +49211,12 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49205
49211
|
"aria-required": section.required,
|
|
49206
49212
|
"aria-labelledby": ariaLabelledBy,
|
|
49207
49213
|
"aria-describedby": ariaDescribedBy,
|
|
49208
|
-
onClick: isMobile && supportsTouch || section.disabled ? noop
|
|
49214
|
+
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
49209
49215
|
return toggleOpenSection(section.id);
|
|
49210
49216
|
},
|
|
49211
49217
|
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
49212
49218
|
return toggleOpenSection(section.id);
|
|
49213
|
-
} : noop
|
|
49219
|
+
} : noop,
|
|
49214
49220
|
id: "inner-radio-section-".concat(sectionIndex),
|
|
49215
49221
|
"data-qa": section.dataQa ? section.dataQa : section.id || "inner-radio-section-".concat(sectionIndex)
|
|
49216
49222
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -49240,7 +49246,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49240
49246
|
ariaDescribedBy: ariaDescribedBy,
|
|
49241
49247
|
radioOn: openSection === section.id,
|
|
49242
49248
|
radioFocused: focused === section.id,
|
|
49243
|
-
toggleRadio: section.disabled ? noop
|
|
49249
|
+
toggleRadio: section.disabled ? noop : function () {
|
|
49244
49250
|
return toggleOpenSection(section.id);
|
|
49245
49251
|
},
|
|
49246
49252
|
tabIndex: "-1",
|
|
@@ -49424,7 +49430,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49424
49430
|
fields = _ref.fields,
|
|
49425
49431
|
actions = _ref.actions,
|
|
49426
49432
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49427
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49433
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49428
49434
|
showErrors = _ref.showErrors,
|
|
49429
49435
|
isMobile = _ref.isMobile;
|
|
49430
49436
|
if (clearOnDismount) {
|
|
@@ -49584,7 +49590,7 @@ var ResetConfirmationForm$1 = withWindowSize(ResetConfirmationForm);
|
|
|
49584
49590
|
|
|
49585
49591
|
var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
49586
49592
|
var _ref$handleSubmit = _ref.handleSubmit,
|
|
49587
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49593
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49588
49594
|
clearOnDismount = _ref.clearOnDismount,
|
|
49589
49595
|
fields = _ref.fields,
|
|
49590
49596
|
actions = _ref.actions,
|