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