@thecb/components 10.4.0-beta.15 → 10.4.0-beta.17
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.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,
|
|
@@ -10524,7 +10524,7 @@ var isRefObject = function (ref) {
|
|
|
10524
10524
|
return typeof ref === "object" && ref.hasOwnProperty("current");
|
|
10525
10525
|
};
|
|
10526
10526
|
|
|
10527
|
-
var noop$
|
|
10527
|
+
var noop$1 = function (v) { return v; };
|
|
10528
10528
|
var ComponentDragControls = /** @class */ (function () {
|
|
10529
10529
|
function ComponentDragControls(_a) {
|
|
10530
10530
|
var ref = _a.ref, values = _a.values, controls = _a.controls;
|
|
@@ -10552,7 +10552,7 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10552
10552
|
* @internal
|
|
10553
10553
|
*/
|
|
10554
10554
|
this.props = {
|
|
10555
|
-
transformPagePoint: noop$
|
|
10555
|
+
transformPagePoint: noop$1,
|
|
10556
10556
|
};
|
|
10557
10557
|
/**
|
|
10558
10558
|
* References to the MotionValues used for tracking the current dragged point.
|
|
@@ -12982,7 +12982,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
12982
12982
|
|
|
12983
12983
|
var ButtonWithAction = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
12984
12984
|
var _ref2$action = _ref2.action,
|
|
12985
|
-
action = _ref2$action === void 0 ? noop
|
|
12985
|
+
action = _ref2$action === void 0 ? noop : _ref2$action,
|
|
12986
12986
|
_ref2$variant = _ref2.variant,
|
|
12987
12987
|
variant = _ref2$variant === void 0 ? "primary" : _ref2$variant,
|
|
12988
12988
|
text = _ref2.text,
|
|
@@ -13024,7 +13024,7 @@ var ButtonWithAction = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
13024
13024
|
disabledStyles: disabledStyles,
|
|
13025
13025
|
"aria-disabled": disabled,
|
|
13026
13026
|
as: "button",
|
|
13027
|
-
onClick: isLoading || disabled ? noop
|
|
13027
|
+
onClick: isLoading || disabled ? noop : action,
|
|
13028
13028
|
borderRadius: "2px",
|
|
13029
13029
|
theme: themeContext,
|
|
13030
13030
|
extraStyles: "margin: 0.5rem; ".concat(extraStyles),
|
|
@@ -22806,7 +22806,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22806
22806
|
name = _ref4.name,
|
|
22807
22807
|
checked = _ref4.checked,
|
|
22808
22808
|
_ref4$onChange = _ref4.onChange,
|
|
22809
|
-
onChange = _ref4$onChange === void 0 ? noop
|
|
22809
|
+
onChange = _ref4$onChange === void 0 ? noop : _ref4$onChange,
|
|
22810
22810
|
_ref4$disabled = _ref4.disabled,
|
|
22811
22811
|
disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
|
|
22812
22812
|
themeValues = _ref4.themeValues,
|
|
@@ -23001,7 +23001,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
23001
23001
|
padding: "0.875rem",
|
|
23002
23002
|
borderRadius: "4px",
|
|
23003
23003
|
minWidth: "30%",
|
|
23004
|
-
onClick: disabled ? noop
|
|
23004
|
+
onClick: disabled ? noop : onSelect,
|
|
23005
23005
|
borderColor: borderColor,
|
|
23006
23006
|
borderSize: "1px",
|
|
23007
23007
|
color: color,
|
|
@@ -23016,8 +23016,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
23016
23016
|
name: name,
|
|
23017
23017
|
"aria-label": name,
|
|
23018
23018
|
htmlFor: "checkbox-".concat(name, "-").concat(index),
|
|
23019
|
-
onClick: disabled ? noop
|
|
23020
|
-
onKeyDown: disabled ? noop
|
|
23019
|
+
onClick: disabled ? noop : onSelect,
|
|
23020
|
+
onKeyDown: disabled ? noop : onSelect,
|
|
23021
23021
|
tabIndex: 0
|
|
23022
23022
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
23023
23023
|
theme: {
|
|
@@ -24500,7 +24500,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24500
24500
|
_ref13$disabledValues = _ref13.disabledValues,
|
|
24501
24501
|
disabledValues = _ref13$disabledValues === void 0 ? [] : _ref13$disabledValues,
|
|
24502
24502
|
_ref13$onClick = _ref13.onClick,
|
|
24503
|
-
_onClick = _ref13$onClick === void 0 ? noop
|
|
24503
|
+
_onClick = _ref13$onClick === void 0 ? noop : _ref13$onClick,
|
|
24504
24504
|
themeValues = _ref13.themeValues,
|
|
24505
24505
|
maxHeight = _ref13.maxHeight,
|
|
24506
24506
|
_ref13$widthFitOption = _ref13.widthFitOptions,
|
|
@@ -26116,7 +26116,7 @@ var Popover = function Popover(_ref) {
|
|
|
26116
26116
|
extraStyles: "position: relative; ".concat(extraStyles)
|
|
26117
26117
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
26118
26118
|
action: function action() {
|
|
26119
|
-
return noop
|
|
26119
|
+
return noop;
|
|
26120
26120
|
},
|
|
26121
26121
|
onFocus: function onFocus() {
|
|
26122
26122
|
handleTogglePopover(true);
|
|
@@ -27082,7 +27082,7 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
27082
27082
|
inactiveColor = _ref4.inactiveColor,
|
|
27083
27083
|
isActive = _ref4.isActive,
|
|
27084
27084
|
_ref4$onClick = _ref4.onClick,
|
|
27085
|
-
onClick = _ref4$onClick === void 0 ? noop
|
|
27085
|
+
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick,
|
|
27086
27086
|
controls = _ref4.controls;
|
|
27087
27087
|
return /*#__PURE__*/React.createElement(Hamburger, {
|
|
27088
27088
|
className: isActive === true ? "active" : "",
|
|
@@ -27929,7 +27929,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
|
|
|
27929
27929
|
themeValues = _ref5.themeValues,
|
|
27930
27930
|
index = _ref5.index,
|
|
27931
27931
|
_ref5$handleChange = _ref5.handleChange,
|
|
27932
|
-
handleChange = _ref5$handleChange === void 0 ? noop
|
|
27932
|
+
handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange,
|
|
27933
27933
|
field = _ref5.field,
|
|
27934
27934
|
config = _ref5.config;
|
|
27935
27935
|
var getDefaultChecked = function getDefaultChecked(value, idx) {
|
|
@@ -38813,7 +38813,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38813
38813
|
var _ref6$isOn = _ref6.isOn,
|
|
38814
38814
|
isOn = _ref6$isOn === void 0 ? false : _ref6$isOn,
|
|
38815
38815
|
_ref6$onToggle = _ref6.onToggle,
|
|
38816
|
-
onToggle = _ref6$onToggle === void 0 ? noop
|
|
38816
|
+
onToggle = _ref6$onToggle === void 0 ? noop : _ref6$onToggle,
|
|
38817
38817
|
_ref6$disabled = _ref6.disabled,
|
|
38818
38818
|
disabled = _ref6$disabled === void 0 ? false : _ref6$disabled,
|
|
38819
38819
|
_ref6$name = _ref6.name,
|
|
@@ -38921,15 +38921,15 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38921
38921
|
}, /*#__PURE__*/React.createElement(HiddenToggleSwitchBox, {
|
|
38922
38922
|
"aria-label": name,
|
|
38923
38923
|
checked: isOn,
|
|
38924
|
-
onChange: disabled ? noop
|
|
38924
|
+
onChange: disabled ? noop : onToggle,
|
|
38925
38925
|
disabled: disabled,
|
|
38926
38926
|
id: "#toggle-".concat(name),
|
|
38927
38927
|
isMobile: isMobile
|
|
38928
38928
|
}), /*#__PURE__*/React.createElement(VisibleSwitch, {
|
|
38929
38929
|
name: name,
|
|
38930
38930
|
htmlFor: "#toggle-".concat(name),
|
|
38931
|
-
onClick: disabled ? noop
|
|
38932
|
-
onKeyDown: disabled ? noop
|
|
38931
|
+
onClick: disabled ? noop : onToggle,
|
|
38932
|
+
onKeyDown: disabled ? noop : handleKeyDown,
|
|
38933
38933
|
pose: disabled ? "disabled" : isOn ? "on" : "off",
|
|
38934
38934
|
tabIndex: disabled ? -1 : 0,
|
|
38935
38935
|
disabled: disabled,
|
|
@@ -40021,7 +40021,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40021
40021
|
clearOnDismount = _ref.clearOnDismount,
|
|
40022
40022
|
showErrors = _ref.showErrors,
|
|
40023
40023
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40024
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
40024
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40025
40025
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
40026
40026
|
saveToWallet = _ref.saveToWallet,
|
|
40027
40027
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -40221,7 +40221,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40221
40221
|
fields = _ref.fields,
|
|
40222
40222
|
actions = _ref.actions,
|
|
40223
40223
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40224
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
40224
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40225
40225
|
showErrors = _ref.showErrors,
|
|
40226
40226
|
isMobile = _ref.isMobile,
|
|
40227
40227
|
revenueManagement = _ref.revenueManagement,
|
|
@@ -40432,8 +40432,8 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40432
40432
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
40433
40433
|
padding: customPadding ? customPadding : "0",
|
|
40434
40434
|
background: themeValues.headingBackgroundColor,
|
|
40435
|
-
onClick: isMobile && supportsTouch ? noop
|
|
40436
|
-
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop
|
|
40435
|
+
onClick: isMobile && supportsTouch ? noop : toggleSection,
|
|
40436
|
+
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop,
|
|
40437
40437
|
key: "header",
|
|
40438
40438
|
hoverStyles: "cursor: pointer;",
|
|
40439
40439
|
tabIndex: "0",
|
|
@@ -40651,7 +40651,7 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
40651
40651
|
clearOnDismount = _ref.clearOnDismount,
|
|
40652
40652
|
showErrors = _ref.showErrors,
|
|
40653
40653
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40654
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
40654
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
40655
40655
|
if (clearOnDismount) {
|
|
40656
40656
|
useEffect$1(function () {
|
|
40657
40657
|
return function () {
|
|
@@ -40991,7 +40991,7 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
40991
40991
|
showErrors = _ref.showErrors,
|
|
40992
40992
|
guestCheckout = _ref.guestCheckout,
|
|
40993
40993
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40994
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
40994
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40995
40995
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
40996
40996
|
saveToWallet = _ref.saveToWallet,
|
|
40997
40997
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -41088,7 +41088,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41088
41088
|
clearOnDismount = _ref.clearOnDismount,
|
|
41089
41089
|
showErrors = _ref.showErrors,
|
|
41090
41090
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
41091
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
41091
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
41092
41092
|
if (clearOnDismount) {
|
|
41093
41093
|
useEffect$1(function () {
|
|
41094
41094
|
return function () {
|
|
@@ -42740,7 +42740,7 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42740
42740
|
extraStyles: extraStyles,
|
|
42741
42741
|
hoverStyles: extraHoverStyles,
|
|
42742
42742
|
activeStyles: extraActiveStyles,
|
|
42743
|
-
onClick: disabled ? noop
|
|
42743
|
+
onClick: disabled ? noop : onClick,
|
|
42744
42744
|
"aria-disabled": disabled,
|
|
42745
42745
|
isDisabled: disabled,
|
|
42746
42746
|
role: "group",
|
|
@@ -42789,7 +42789,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
42789
42789
|
actions = _ref.actions,
|
|
42790
42790
|
showErrors = _ref.showErrors,
|
|
42791
42791
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
42792
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
42792
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
42793
42793
|
if (clearOnDismount) {
|
|
42794
42794
|
useEffect$1(function () {
|
|
42795
42795
|
return function () {
|
|
@@ -46283,7 +46283,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46283
46283
|
_ref$dataQa = _ref.dataQa,
|
|
46284
46284
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
46285
46285
|
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
46286
|
-
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;
|
|
46287
46289
|
var _useContext = useContext(ThemeContext),
|
|
46288
46290
|
isMobile = _useContext.isMobile;
|
|
46289
46291
|
var modalContainerRef = useRef(null);
|
|
@@ -46303,7 +46305,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46303
46305
|
display: "flex",
|
|
46304
46306
|
flexDirection: "column",
|
|
46305
46307
|
justifyContent: "center",
|
|
46306
|
-
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"
|
|
46307
46312
|
},
|
|
46308
46313
|
dialogStyle: {
|
|
46309
46314
|
width: customWidth || "615px",
|
|
@@ -46880,13 +46885,13 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
46880
46885
|
subDescription: subDescription,
|
|
46881
46886
|
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
46882
46887
|
disableActions: disableActions,
|
|
46883
|
-
action: disableActions ? noop
|
|
46888
|
+
action: disableActions ? noop : function () {
|
|
46884
46889
|
return toggleModal(true);
|
|
46885
46890
|
},
|
|
46886
|
-
onClick: disableActions ? noop
|
|
46891
|
+
onClick: disableActions ? noop : function () {
|
|
46887
46892
|
toggleModal(true);
|
|
46888
46893
|
},
|
|
46889
|
-
onKeyPress: disableActions ? noop
|
|
46894
|
+
onKeyPress: disableActions ? noop : function (e) {
|
|
46890
46895
|
e.key === "Enter" && toggleModal(true);
|
|
46891
46896
|
}
|
|
46892
46897
|
})));
|
|
@@ -47016,7 +47021,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
47016
47021
|
padding: "0"
|
|
47017
47022
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
47018
47023
|
isLoading: isLoading,
|
|
47019
|
-
action: disableActions ? noop
|
|
47024
|
+
action: disableActions ? noop : function () {
|
|
47020
47025
|
return handleClick(obligations);
|
|
47021
47026
|
},
|
|
47022
47027
|
text: "Pay Now",
|
|
@@ -47029,7 +47034,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
47029
47034
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
47030
47035
|
isLoading: isLoading,
|
|
47031
47036
|
action: function action() {
|
|
47032
|
-
return disableActions ? noop
|
|
47037
|
+
return disableActions ? noop : function () {
|
|
47033
47038
|
return handleClick(obligations);
|
|
47034
47039
|
};
|
|
47035
47040
|
},
|
|
@@ -47048,8 +47053,8 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
47048
47053
|
removeAccount = _ref.removeAccount,
|
|
47049
47054
|
accountType = _ref.accountType,
|
|
47050
47055
|
isMobile = _ref.isMobile,
|
|
47051
|
-
_ref$
|
|
47052
|
-
|
|
47056
|
+
_ref$disableActions = _ref.disableActions,
|
|
47057
|
+
disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
|
|
47053
47058
|
var _useState = useState(false),
|
|
47054
47059
|
_useState2 = _slicedToArray(_useState, 2),
|
|
47055
47060
|
modalIsOpen = _useState2[0],
|
|
@@ -47073,8 +47078,10 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
47073
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."),
|
|
47074
47079
|
continueButtonText: "Remove",
|
|
47075
47080
|
continueAction: function continueAction() {
|
|
47076
|
-
|
|
47077
|
-
|
|
47081
|
+
if (!disableActions) {
|
|
47082
|
+
removeAccount();
|
|
47083
|
+
setModalIsOpen(false);
|
|
47084
|
+
}
|
|
47078
47085
|
},
|
|
47079
47086
|
useDangerButton: true
|
|
47080
47087
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -47083,12 +47090,12 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
47083
47090
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
47084
47091
|
text: "Remove",
|
|
47085
47092
|
variant: "secondary",
|
|
47086
|
-
action:
|
|
47093
|
+
action: disableActions ? noop : function () {
|
|
47087
47094
|
return setModalIsOpen(true);
|
|
47088
47095
|
},
|
|
47089
47096
|
dataQa: "Remove Account",
|
|
47090
47097
|
extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;",
|
|
47091
|
-
disabled:
|
|
47098
|
+
disabled: disableActions
|
|
47092
47099
|
})));
|
|
47093
47100
|
};
|
|
47094
47101
|
|
|
@@ -47155,10 +47162,10 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
47155
47162
|
extraStyles: "flex-grow: 1;"
|
|
47156
47163
|
}, /*#__PURE__*/React.createElement(RemoveAccountModalModule, {
|
|
47157
47164
|
agencyName: agencyName,
|
|
47158
|
-
removeAccount: disableActions ? noop
|
|
47165
|
+
removeAccount: disableActions ? noop : handleRemoveAccount,
|
|
47159
47166
|
accountType: configType === "ACCOUNT" ? "Account" : "Property",
|
|
47160
47167
|
isMobile: isMobile,
|
|
47161
|
-
|
|
47168
|
+
disableActions: disableActions
|
|
47162
47169
|
}))));
|
|
47163
47170
|
};
|
|
47164
47171
|
|
|
@@ -47684,7 +47691,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
47684
47691
|
return setCurrentPage({
|
|
47685
47692
|
pageNumber: item.index
|
|
47686
47693
|
});
|
|
47687
|
-
} : noop
|
|
47694
|
+
} : noop,
|
|
47688
47695
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
47689
47696
|
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
47690
47697
|
dataQa: index
|
|
@@ -48041,7 +48048,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48041
48048
|
_ref4$voidableTransac = _ref4.voidableTransactionDetails,
|
|
48042
48049
|
voidableTransactionDetails = _ref4$voidableTransac === void 0 ? [] : _ref4$voidableTransac,
|
|
48043
48050
|
_ref4$partialVoidActi = _ref4.partialVoidAction,
|
|
48044
|
-
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop
|
|
48051
|
+
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop : _ref4$partialVoidActi,
|
|
48045
48052
|
_ref4$voidableAmountP = _ref4.voidableAmountPaid,
|
|
48046
48053
|
voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP,
|
|
48047
48054
|
_ref4$remainingBalanc = _ref4.remainingBalance,
|
|
@@ -48500,7 +48507,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48500
48507
|
actions = _ref.actions,
|
|
48501
48508
|
showErrors = _ref.showErrors,
|
|
48502
48509
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48503
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
48510
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48504
48511
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48505
48512
|
saveToWallet = _ref.saveToWallet,
|
|
48506
48513
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -48702,7 +48709,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48702
48709
|
actions = _ref.actions,
|
|
48703
48710
|
showErrors = _ref.showErrors,
|
|
48704
48711
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48705
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
48712
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48706
48713
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48707
48714
|
saveToWallet = _ref.saveToWallet,
|
|
48708
48715
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -49006,7 +49013,7 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
49006
49013
|
clearOnDismount = _ref.clearOnDismount,
|
|
49007
49014
|
showErrors = _ref.showErrors,
|
|
49008
49015
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49009
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49016
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49010
49017
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
49011
49018
|
saveToWallet = _ref.saveToWallet,
|
|
49012
49019
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -49082,7 +49089,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
49082
49089
|
config = _ref.config,
|
|
49083
49090
|
extraStyles = _ref.extraStyles,
|
|
49084
49091
|
_ref$handleChange = _ref.handleChange,
|
|
49085
|
-
handleChange = _ref$handleChange === void 0 ? noop
|
|
49092
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
49086
49093
|
field = _ref.field,
|
|
49087
49094
|
fieldActions = _ref.fieldActions;
|
|
49088
49095
|
var setValue = function setValue(value) {
|
|
@@ -49147,7 +49154,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49147
49154
|
ariaLabelledBy = _ref.ariaLabelledBy,
|
|
49148
49155
|
isLastGroupedItemInSection = _ref.isLastGroupedItemInSection,
|
|
49149
49156
|
_ref$onKeyDown = _ref.onKeyDown,
|
|
49150
|
-
onKeyDown = _ref$onKeyDown === void 0 ? noop
|
|
49157
|
+
onKeyDown = _ref$onKeyDown === void 0 ? noop : _ref$onKeyDown;
|
|
49151
49158
|
var wrapper = {
|
|
49152
49159
|
open: {
|
|
49153
49160
|
height: openHeight,
|
|
@@ -49204,12 +49211,12 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49204
49211
|
"aria-required": section.required,
|
|
49205
49212
|
"aria-labelledby": ariaLabelledBy,
|
|
49206
49213
|
"aria-describedby": ariaDescribedBy,
|
|
49207
|
-
onClick: isMobile && supportsTouch || section.disabled ? noop
|
|
49214
|
+
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
49208
49215
|
return toggleOpenSection(section.id);
|
|
49209
49216
|
},
|
|
49210
49217
|
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
49211
49218
|
return toggleOpenSection(section.id);
|
|
49212
|
-
} : noop
|
|
49219
|
+
} : noop,
|
|
49213
49220
|
id: "inner-radio-section-".concat(sectionIndex),
|
|
49214
49221
|
"data-qa": section.dataQa ? section.dataQa : section.id || "inner-radio-section-".concat(sectionIndex)
|
|
49215
49222
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -49239,7 +49246,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49239
49246
|
ariaDescribedBy: ariaDescribedBy,
|
|
49240
49247
|
radioOn: openSection === section.id,
|
|
49241
49248
|
radioFocused: focused === section.id,
|
|
49242
|
-
toggleRadio: section.disabled ? noop
|
|
49249
|
+
toggleRadio: section.disabled ? noop : function () {
|
|
49243
49250
|
return toggleOpenSection(section.id);
|
|
49244
49251
|
},
|
|
49245
49252
|
tabIndex: "-1",
|
|
@@ -49423,7 +49430,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49423
49430
|
fields = _ref.fields,
|
|
49424
49431
|
actions = _ref.actions,
|
|
49425
49432
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49426
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49433
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49427
49434
|
showErrors = _ref.showErrors,
|
|
49428
49435
|
isMobile = _ref.isMobile;
|
|
49429
49436
|
if (clearOnDismount) {
|
|
@@ -49583,7 +49590,7 @@ var ResetConfirmationForm$1 = withWindowSize(ResetConfirmationForm);
|
|
|
49583
49590
|
|
|
49584
49591
|
var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
49585
49592
|
var _ref$handleSubmit = _ref.handleSubmit,
|
|
49586
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop
|
|
49593
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49587
49594
|
clearOnDismount = _ref.clearOnDismount,
|
|
49588
49595
|
fields = _ref.fields,
|
|
49589
49596
|
actions = _ref.actions,
|