@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.cjs.js
CHANGED
|
@@ -6211,7 +6211,7 @@ return numeral;
|
|
|
6211
6211
|
}));
|
|
6212
6212
|
});
|
|
6213
6213
|
|
|
6214
|
-
var noop
|
|
6214
|
+
var noop = function noop() {};
|
|
6215
6215
|
var formatMoneyString = function formatMoneyString(s) {
|
|
6216
6216
|
return numeral(s).format("$0,0.00");
|
|
6217
6217
|
};
|
|
@@ -6345,7 +6345,7 @@ var wrapIndex = function wrapIndex(index, length) {
|
|
|
6345
6345
|
|
|
6346
6346
|
var general = /*#__PURE__*/Object.freeze({
|
|
6347
6347
|
__proto__: null,
|
|
6348
|
-
noop: noop
|
|
6348
|
+
noop: noop,
|
|
6349
6349
|
displayCurrency: displayCurrency,
|
|
6350
6350
|
convertCentsToMoneyInt: convertCentsToMoneyInt,
|
|
6351
6351
|
formatPercent: formatPercent,
|
|
@@ -6509,7 +6509,7 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6509
6509
|
});
|
|
6510
6510
|
/* eslint-enable no-unused-vars */
|
|
6511
6511
|
|
|
6512
|
-
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", "
|
|
6512
|
+
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"];
|
|
6513
6513
|
|
|
6514
6514
|
/*
|
|
6515
6515
|
Box component to create generic boxes
|
|
@@ -6557,7 +6557,6 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
6557
6557
|
_ref$srOnly = _ref.srOnly,
|
|
6558
6558
|
srOnly = _ref$srOnly === void 0 ? false : _ref$srOnly,
|
|
6559
6559
|
dataQa = _ref.dataQa,
|
|
6560
|
-
_ref$disabled = _ref.disabled,
|
|
6561
6560
|
children = _ref.children,
|
|
6562
6561
|
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
6563
6562
|
return /*#__PURE__*/React__default.createElement(BoxWrapper, _extends({
|
|
@@ -10533,7 +10532,7 @@ var isRefObject = function (ref) {
|
|
|
10533
10532
|
return typeof ref === "object" && ref.hasOwnProperty("current");
|
|
10534
10533
|
};
|
|
10535
10534
|
|
|
10536
|
-
var noop$
|
|
10535
|
+
var noop$1 = function (v) { return v; };
|
|
10537
10536
|
var ComponentDragControls = /** @class */ (function () {
|
|
10538
10537
|
function ComponentDragControls(_a) {
|
|
10539
10538
|
var ref = _a.ref, values = _a.values, controls = _a.controls;
|
|
@@ -10561,7 +10560,7 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10561
10560
|
* @internal
|
|
10562
10561
|
*/
|
|
10563
10562
|
this.props = {
|
|
10564
|
-
transformPagePoint: noop$
|
|
10563
|
+
transformPagePoint: noop$1,
|
|
10565
10564
|
};
|
|
10566
10565
|
/**
|
|
10567
10566
|
* References to the MotionValues used for tracking the current dragged point.
|
|
@@ -12991,7 +12990,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
12991
12990
|
|
|
12992
12991
|
var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
12993
12992
|
var _ref2$action = _ref2.action,
|
|
12994
|
-
action = _ref2$action === void 0 ? noop
|
|
12993
|
+
action = _ref2$action === void 0 ? noop : _ref2$action,
|
|
12995
12994
|
_ref2$variant = _ref2.variant,
|
|
12996
12995
|
variant = _ref2$variant === void 0 ? "primary" : _ref2$variant,
|
|
12997
12996
|
text = _ref2.text,
|
|
@@ -13033,7 +13032,7 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
13033
13032
|
disabledStyles: disabledStyles,
|
|
13034
13033
|
"aria-disabled": disabled,
|
|
13035
13034
|
as: "button",
|
|
13036
|
-
onClick: isLoading || disabled ? noop
|
|
13035
|
+
onClick: isLoading || disabled ? noop : action,
|
|
13037
13036
|
borderRadius: "2px",
|
|
13038
13037
|
theme: themeContext,
|
|
13039
13038
|
extraStyles: "margin: 0.5rem; ".concat(extraStyles),
|
|
@@ -22815,7 +22814,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22815
22814
|
name = _ref4.name,
|
|
22816
22815
|
checked = _ref4.checked,
|
|
22817
22816
|
_ref4$onChange = _ref4.onChange,
|
|
22818
|
-
onChange = _ref4$onChange === void 0 ? noop
|
|
22817
|
+
onChange = _ref4$onChange === void 0 ? noop : _ref4$onChange,
|
|
22819
22818
|
_ref4$disabled = _ref4.disabled,
|
|
22820
22819
|
disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
|
|
22821
22820
|
themeValues = _ref4.themeValues,
|
|
@@ -23010,7 +23009,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
23010
23009
|
padding: "0.875rem",
|
|
23011
23010
|
borderRadius: "4px",
|
|
23012
23011
|
minWidth: "30%",
|
|
23013
|
-
onClick: disabled ? noop
|
|
23012
|
+
onClick: disabled ? noop : onSelect,
|
|
23014
23013
|
borderColor: borderColor,
|
|
23015
23014
|
borderSize: "1px",
|
|
23016
23015
|
color: color,
|
|
@@ -23025,8 +23024,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
23025
23024
|
name: name,
|
|
23026
23025
|
"aria-label": name,
|
|
23027
23026
|
htmlFor: "checkbox-".concat(name, "-").concat(index),
|
|
23028
|
-
onClick: disabled ? noop
|
|
23029
|
-
onKeyDown: disabled ? noop
|
|
23027
|
+
onClick: disabled ? noop : onSelect,
|
|
23028
|
+
onKeyDown: disabled ? noop : onSelect,
|
|
23030
23029
|
tabIndex: 0
|
|
23031
23030
|
}, /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
23032
23031
|
theme: {
|
|
@@ -24509,7 +24508,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24509
24508
|
_ref13$disabledValues = _ref13.disabledValues,
|
|
24510
24509
|
disabledValues = _ref13$disabledValues === void 0 ? [] : _ref13$disabledValues,
|
|
24511
24510
|
_ref13$onClick = _ref13.onClick,
|
|
24512
|
-
_onClick = _ref13$onClick === void 0 ? noop
|
|
24511
|
+
_onClick = _ref13$onClick === void 0 ? noop : _ref13$onClick,
|
|
24513
24512
|
themeValues = _ref13.themeValues,
|
|
24514
24513
|
maxHeight = _ref13.maxHeight,
|
|
24515
24514
|
_ref13$widthFitOption = _ref13.widthFitOptions,
|
|
@@ -26125,7 +26124,7 @@ var Popover = function Popover(_ref) {
|
|
|
26125
26124
|
extraStyles: "position: relative; ".concat(extraStyles)
|
|
26126
26125
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
26127
26126
|
action: function action() {
|
|
26128
|
-
return noop
|
|
26127
|
+
return noop;
|
|
26129
26128
|
},
|
|
26130
26129
|
onFocus: function onFocus() {
|
|
26131
26130
|
handleTogglePopover(true);
|
|
@@ -27091,7 +27090,7 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
27091
27090
|
inactiveColor = _ref4.inactiveColor,
|
|
27092
27091
|
isActive = _ref4.isActive,
|
|
27093
27092
|
_ref4$onClick = _ref4.onClick,
|
|
27094
|
-
onClick = _ref4$onClick === void 0 ? noop
|
|
27093
|
+
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick,
|
|
27095
27094
|
controls = _ref4.controls;
|
|
27096
27095
|
return /*#__PURE__*/React__default.createElement(Hamburger, {
|
|
27097
27096
|
className: isActive === true ? "active" : "",
|
|
@@ -27938,7 +27937,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
|
|
|
27938
27937
|
themeValues = _ref5.themeValues,
|
|
27939
27938
|
index = _ref5.index,
|
|
27940
27939
|
_ref5$handleChange = _ref5.handleChange,
|
|
27941
|
-
handleChange = _ref5$handleChange === void 0 ? noop
|
|
27940
|
+
handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange,
|
|
27942
27941
|
field = _ref5.field,
|
|
27943
27942
|
config = _ref5.config;
|
|
27944
27943
|
var getDefaultChecked = function getDefaultChecked(value, idx) {
|
|
@@ -38822,7 +38821,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38822
38821
|
var _ref6$isOn = _ref6.isOn,
|
|
38823
38822
|
isOn = _ref6$isOn === void 0 ? false : _ref6$isOn,
|
|
38824
38823
|
_ref6$onToggle = _ref6.onToggle,
|
|
38825
|
-
onToggle = _ref6$onToggle === void 0 ? noop
|
|
38824
|
+
onToggle = _ref6$onToggle === void 0 ? noop : _ref6$onToggle,
|
|
38826
38825
|
_ref6$disabled = _ref6.disabled,
|
|
38827
38826
|
disabled = _ref6$disabled === void 0 ? false : _ref6$disabled,
|
|
38828
38827
|
_ref6$name = _ref6.name,
|
|
@@ -38930,15 +38929,15 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38930
38929
|
}, /*#__PURE__*/React__default.createElement(HiddenToggleSwitchBox, {
|
|
38931
38930
|
"aria-label": name,
|
|
38932
38931
|
checked: isOn,
|
|
38933
|
-
onChange: disabled ? noop
|
|
38932
|
+
onChange: disabled ? noop : onToggle,
|
|
38934
38933
|
disabled: disabled,
|
|
38935
38934
|
id: "#toggle-".concat(name),
|
|
38936
38935
|
isMobile: isMobile
|
|
38937
38936
|
}), /*#__PURE__*/React__default.createElement(VisibleSwitch, {
|
|
38938
38937
|
name: name,
|
|
38939
38938
|
htmlFor: "#toggle-".concat(name),
|
|
38940
|
-
onClick: disabled ? noop
|
|
38941
|
-
onKeyDown: disabled ? noop
|
|
38939
|
+
onClick: disabled ? noop : onToggle,
|
|
38940
|
+
onKeyDown: disabled ? noop : handleKeyDown,
|
|
38942
38941
|
pose: disabled ? "disabled" : isOn ? "on" : "off",
|
|
38943
38942
|
tabIndex: disabled ? -1 : 0,
|
|
38944
38943
|
disabled: disabled,
|
|
@@ -40030,7 +40029,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40030
40029
|
clearOnDismount = _ref.clearOnDismount,
|
|
40031
40030
|
showErrors = _ref.showErrors,
|
|
40032
40031
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40033
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
40032
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40034
40033
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
40035
40034
|
saveToWallet = _ref.saveToWallet,
|
|
40036
40035
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -40230,7 +40229,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40230
40229
|
fields = _ref.fields,
|
|
40231
40230
|
actions = _ref.actions,
|
|
40232
40231
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40233
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
40232
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40234
40233
|
showErrors = _ref.showErrors,
|
|
40235
40234
|
isMobile = _ref.isMobile,
|
|
40236
40235
|
revenueManagement = _ref.revenueManagement,
|
|
@@ -40441,8 +40440,8 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40441
40440
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40442
40441
|
padding: customPadding ? customPadding : "0",
|
|
40443
40442
|
background: themeValues.headingBackgroundColor,
|
|
40444
|
-
onClick: isMobile && supportsTouch ? noop
|
|
40445
|
-
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop
|
|
40443
|
+
onClick: isMobile && supportsTouch ? noop : toggleSection,
|
|
40444
|
+
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop,
|
|
40446
40445
|
key: "header",
|
|
40447
40446
|
hoverStyles: "cursor: pointer;",
|
|
40448
40447
|
tabIndex: "0",
|
|
@@ -40660,7 +40659,7 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
40660
40659
|
clearOnDismount = _ref.clearOnDismount,
|
|
40661
40660
|
showErrors = _ref.showErrors,
|
|
40662
40661
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40663
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
40662
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
40664
40663
|
if (clearOnDismount) {
|
|
40665
40664
|
React.useEffect(function () {
|
|
40666
40665
|
return function () {
|
|
@@ -41000,7 +40999,7 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41000
40999
|
showErrors = _ref.showErrors,
|
|
41001
41000
|
guestCheckout = _ref.guestCheckout,
|
|
41002
41001
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
41003
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
41002
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
41004
41003
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
41005
41004
|
saveToWallet = _ref.saveToWallet,
|
|
41006
41005
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -41097,7 +41096,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41097
41096
|
clearOnDismount = _ref.clearOnDismount,
|
|
41098
41097
|
showErrors = _ref.showErrors,
|
|
41099
41098
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
41100
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
41099
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
41101
41100
|
if (clearOnDismount) {
|
|
41102
41101
|
React.useEffect(function () {
|
|
41103
41102
|
return function () {
|
|
@@ -42749,7 +42748,7 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42749
42748
|
extraStyles: extraStyles,
|
|
42750
42749
|
hoverStyles: extraHoverStyles,
|
|
42751
42750
|
activeStyles: extraActiveStyles,
|
|
42752
|
-
onClick: disabled ? noop
|
|
42751
|
+
onClick: disabled ? noop : onClick,
|
|
42753
42752
|
"aria-disabled": disabled,
|
|
42754
42753
|
isDisabled: disabled,
|
|
42755
42754
|
role: "group",
|
|
@@ -42798,7 +42797,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
42798
42797
|
actions = _ref.actions,
|
|
42799
42798
|
showErrors = _ref.showErrors,
|
|
42800
42799
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
42801
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
42800
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
42802
42801
|
if (clearOnDismount) {
|
|
42803
42802
|
React.useEffect(function () {
|
|
42804
42803
|
return function () {
|
|
@@ -46292,7 +46291,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46292
46291
|
_ref$dataQa = _ref.dataQa,
|
|
46293
46292
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
46294
46293
|
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
46295
|
-
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele
|
|
46294
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele,
|
|
46295
|
+
_ref$blurUnderlay = _ref.blurUnderlay,
|
|
46296
|
+
blurUnderlay = _ref$blurUnderlay === void 0 ? true : _ref$blurUnderlay;
|
|
46296
46297
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
46297
46298
|
isMobile = _useContext.isMobile;
|
|
46298
46299
|
var modalContainerRef = React.useRef(null);
|
|
@@ -46312,7 +46313,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46312
46313
|
display: "flex",
|
|
46313
46314
|
flexDirection: "column",
|
|
46314
46315
|
justifyContent: "center",
|
|
46315
|
-
alignItems: "center"
|
|
46316
|
+
alignItems: "center",
|
|
46317
|
+
background: "rgba(41, 42, 51, 0.45)",
|
|
46318
|
+
backdropFilter: blurUnderlay ? "blur(4px)" : "none",
|
|
46319
|
+
WebkitBackdropFilter: blurUnderlay ? "blur(4px)" : "none"
|
|
46316
46320
|
},
|
|
46317
46321
|
dialogStyle: {
|
|
46318
46322
|
width: customWidth || "615px",
|
|
@@ -46889,13 +46893,13 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
46889
46893
|
subDescription: subDescription,
|
|
46890
46894
|
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
46891
46895
|
disableActions: disableActions,
|
|
46892
|
-
action: disableActions ? noop
|
|
46896
|
+
action: disableActions ? noop : function () {
|
|
46893
46897
|
return toggleModal(true);
|
|
46894
46898
|
},
|
|
46895
|
-
onClick: disableActions ? noop
|
|
46899
|
+
onClick: disableActions ? noop : function () {
|
|
46896
46900
|
toggleModal(true);
|
|
46897
46901
|
},
|
|
46898
|
-
onKeyPress: disableActions ? noop
|
|
46902
|
+
onKeyPress: disableActions ? noop : function (e) {
|
|
46899
46903
|
e.key === "Enter" && toggleModal(true);
|
|
46900
46904
|
}
|
|
46901
46905
|
})));
|
|
@@ -47025,7 +47029,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
47025
47029
|
padding: "0"
|
|
47026
47030
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
47027
47031
|
isLoading: isLoading,
|
|
47028
|
-
action: disableActions ? noop
|
|
47032
|
+
action: disableActions ? noop : function () {
|
|
47029
47033
|
return handleClick(obligations);
|
|
47030
47034
|
},
|
|
47031
47035
|
text: "Pay Now",
|
|
@@ -47038,7 +47042,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
47038
47042
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
47039
47043
|
isLoading: isLoading,
|
|
47040
47044
|
action: function action() {
|
|
47041
|
-
return disableActions ? noop
|
|
47045
|
+
return disableActions ? noop : function () {
|
|
47042
47046
|
return handleClick(obligations);
|
|
47043
47047
|
};
|
|
47044
47048
|
},
|
|
@@ -47057,8 +47061,8 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
47057
47061
|
removeAccount = _ref.removeAccount,
|
|
47058
47062
|
accountType = _ref.accountType,
|
|
47059
47063
|
isMobile = _ref.isMobile,
|
|
47060
|
-
_ref$
|
|
47061
|
-
|
|
47064
|
+
_ref$disableActions = _ref.disableActions,
|
|
47065
|
+
disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
|
|
47062
47066
|
var _useState = React.useState(false),
|
|
47063
47067
|
_useState2 = _slicedToArray(_useState, 2),
|
|
47064
47068
|
modalIsOpen = _useState2[0],
|
|
@@ -47082,8 +47086,10 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
47082
47086
|
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."),
|
|
47083
47087
|
continueButtonText: "Remove",
|
|
47084
47088
|
continueAction: function continueAction() {
|
|
47085
|
-
|
|
47086
|
-
|
|
47089
|
+
if (!disableActions) {
|
|
47090
|
+
removeAccount();
|
|
47091
|
+
setModalIsOpen(false);
|
|
47092
|
+
}
|
|
47087
47093
|
},
|
|
47088
47094
|
useDangerButton: true
|
|
47089
47095
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -47092,12 +47098,12 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
47092
47098
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
47093
47099
|
text: "Remove",
|
|
47094
47100
|
variant: "secondary",
|
|
47095
|
-
action:
|
|
47101
|
+
action: disableActions ? noop : function () {
|
|
47096
47102
|
return setModalIsOpen(true);
|
|
47097
47103
|
},
|
|
47098
47104
|
dataQa: "Remove Account",
|
|
47099
47105
|
extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;",
|
|
47100
|
-
disabled:
|
|
47106
|
+
disabled: disableActions
|
|
47101
47107
|
})));
|
|
47102
47108
|
};
|
|
47103
47109
|
|
|
@@ -47164,10 +47170,10 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
47164
47170
|
extraStyles: "flex-grow: 1;"
|
|
47165
47171
|
}, /*#__PURE__*/React__default.createElement(RemoveAccountModalModule, {
|
|
47166
47172
|
agencyName: agencyName,
|
|
47167
|
-
removeAccount: disableActions ? noop
|
|
47173
|
+
removeAccount: disableActions ? noop : handleRemoveAccount,
|
|
47168
47174
|
accountType: configType === "ACCOUNT" ? "Account" : "Property",
|
|
47169
47175
|
isMobile: isMobile,
|
|
47170
|
-
|
|
47176
|
+
disableActions: disableActions
|
|
47171
47177
|
}))));
|
|
47172
47178
|
};
|
|
47173
47179
|
|
|
@@ -47693,7 +47699,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
47693
47699
|
return setCurrentPage({
|
|
47694
47700
|
pageNumber: item.index
|
|
47695
47701
|
});
|
|
47696
|
-
} : noop
|
|
47702
|
+
} : noop,
|
|
47697
47703
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
47698
47704
|
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
47699
47705
|
dataQa: index
|
|
@@ -48050,7 +48056,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48050
48056
|
_ref4$voidableTransac = _ref4.voidableTransactionDetails,
|
|
48051
48057
|
voidableTransactionDetails = _ref4$voidableTransac === void 0 ? [] : _ref4$voidableTransac,
|
|
48052
48058
|
_ref4$partialVoidActi = _ref4.partialVoidAction,
|
|
48053
|
-
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop
|
|
48059
|
+
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop : _ref4$partialVoidActi,
|
|
48054
48060
|
_ref4$voidableAmountP = _ref4.voidableAmountPaid,
|
|
48055
48061
|
voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP,
|
|
48056
48062
|
_ref4$remainingBalanc = _ref4.remainingBalance,
|
|
@@ -48509,7 +48515,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48509
48515
|
actions = _ref.actions,
|
|
48510
48516
|
showErrors = _ref.showErrors,
|
|
48511
48517
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48512
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
48518
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48513
48519
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48514
48520
|
saveToWallet = _ref.saveToWallet,
|
|
48515
48521
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -48711,7 +48717,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48711
48717
|
actions = _ref.actions,
|
|
48712
48718
|
showErrors = _ref.showErrors,
|
|
48713
48719
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48714
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
48720
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48715
48721
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48716
48722
|
saveToWallet = _ref.saveToWallet,
|
|
48717
48723
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -49015,7 +49021,7 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49015
49021
|
clearOnDismount = _ref.clearOnDismount,
|
|
49016
49022
|
showErrors = _ref.showErrors,
|
|
49017
49023
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49018
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49024
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49019
49025
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
49020
49026
|
saveToWallet = _ref.saveToWallet,
|
|
49021
49027
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -49091,7 +49097,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
49091
49097
|
config = _ref.config,
|
|
49092
49098
|
extraStyles = _ref.extraStyles,
|
|
49093
49099
|
_ref$handleChange = _ref.handleChange,
|
|
49094
|
-
handleChange = _ref$handleChange === void 0 ? noop
|
|
49100
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
49095
49101
|
field = _ref.field,
|
|
49096
49102
|
fieldActions = _ref.fieldActions;
|
|
49097
49103
|
var setValue = function setValue(value) {
|
|
@@ -49156,7 +49162,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49156
49162
|
ariaLabelledBy = _ref.ariaLabelledBy,
|
|
49157
49163
|
isLastGroupedItemInSection = _ref.isLastGroupedItemInSection,
|
|
49158
49164
|
_ref$onKeyDown = _ref.onKeyDown,
|
|
49159
|
-
onKeyDown = _ref$onKeyDown === void 0 ? noop
|
|
49165
|
+
onKeyDown = _ref$onKeyDown === void 0 ? noop : _ref$onKeyDown;
|
|
49160
49166
|
var wrapper = {
|
|
49161
49167
|
open: {
|
|
49162
49168
|
height: openHeight,
|
|
@@ -49213,12 +49219,12 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49213
49219
|
"aria-required": section.required,
|
|
49214
49220
|
"aria-labelledby": ariaLabelledBy,
|
|
49215
49221
|
"aria-describedby": ariaDescribedBy,
|
|
49216
|
-
onClick: isMobile && supportsTouch || section.disabled ? noop
|
|
49222
|
+
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
49217
49223
|
return toggleOpenSection(section.id);
|
|
49218
49224
|
},
|
|
49219
49225
|
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
49220
49226
|
return toggleOpenSection(section.id);
|
|
49221
|
-
} : noop
|
|
49227
|
+
} : noop,
|
|
49222
49228
|
id: "inner-radio-section-".concat(sectionIndex),
|
|
49223
49229
|
"data-qa": section.dataQa ? section.dataQa : section.id || "inner-radio-section-".concat(sectionIndex)
|
|
49224
49230
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
@@ -49248,7 +49254,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49248
49254
|
ariaDescribedBy: ariaDescribedBy,
|
|
49249
49255
|
radioOn: openSection === section.id,
|
|
49250
49256
|
radioFocused: focused === section.id,
|
|
49251
|
-
toggleRadio: section.disabled ? noop
|
|
49257
|
+
toggleRadio: section.disabled ? noop : function () {
|
|
49252
49258
|
return toggleOpenSection(section.id);
|
|
49253
49259
|
},
|
|
49254
49260
|
tabIndex: "-1",
|
|
@@ -49432,7 +49438,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49432
49438
|
fields = _ref.fields,
|
|
49433
49439
|
actions = _ref.actions,
|
|
49434
49440
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49435
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49441
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49436
49442
|
showErrors = _ref.showErrors,
|
|
49437
49443
|
isMobile = _ref.isMobile;
|
|
49438
49444
|
if (clearOnDismount) {
|
|
@@ -49592,7 +49598,7 @@ var ResetConfirmationForm$1 = withWindowSize(ResetConfirmationForm);
|
|
|
49592
49598
|
|
|
49593
49599
|
var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
49594
49600
|
var _ref$handleSubmit = _ref.handleSubmit,
|
|
49595
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49601
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49596
49602
|
clearOnDismount = _ref.clearOnDismount,
|
|
49597
49603
|
fields = _ref.fields,
|
|
49598
49604
|
actions = _ref.actions,
|