@thecb/components 10.2.1-beta.3 → 10.2.1-beta.5
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 +74 -64
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +74 -64
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/MultiCartIcon.js +12 -10
- package/src/components/atoms/jumbo/Jumbo.js +1 -5
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +12 -10
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +6 -1
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +1 -0
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js +10 -2
package/dist/index.esm.js
CHANGED
|
@@ -18278,22 +18278,25 @@ var KebabMenuIcon = function KebabMenuIcon() {
|
|
|
18278
18278
|
}));
|
|
18279
18279
|
};
|
|
18280
18280
|
|
|
18281
|
+
var _excluded$i = ["iconFill", "iconWidth", "iconHeight"];
|
|
18281
18282
|
var MultiCartIcon = function MultiCartIcon(_ref) {
|
|
18282
18283
|
var _ref$iconFill = _ref.iconFill,
|
|
18283
18284
|
iconFill = _ref$iconFill === void 0 ? "#3B5BDB" : _ref$iconFill,
|
|
18284
|
-
_ref$
|
|
18285
|
-
|
|
18286
|
-
|
|
18287
|
-
|
|
18288
|
-
|
|
18285
|
+
_ref$iconWidth = _ref.iconWidth,
|
|
18286
|
+
iconWidth = _ref$iconWidth === void 0 ? "20" : _ref$iconWidth,
|
|
18287
|
+
_ref$iconHeight = _ref.iconHeight,
|
|
18288
|
+
iconHeight = _ref$iconHeight === void 0 ? "17" : _ref$iconHeight,
|
|
18289
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
18290
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18289
18291
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18290
18292
|
width: iconWidth,
|
|
18291
18293
|
height: iconHeight,
|
|
18292
|
-
viewBox: "0 0
|
|
18293
|
-
|
|
18294
|
-
|
|
18295
|
-
|
|
18296
|
-
fill: iconFill
|
|
18294
|
+
viewBox: "0 0 24.81 22.06"
|
|
18295
|
+
}, rest), /*#__PURE__*/React.createElement("title", null, "Icon - Cart-Empty"), /*#__PURE__*/React.createElement("path", {
|
|
18296
|
+
d: "M18.7499553,20.499994 C19.348912,20.499994 19.8632339,20.2851508 20.2929204,19.8554643 C20.7226068,19.4257779 20.9374501,18.911456 20.9374501,18.3124993 C20.9374501,17.8958334 20.8267735,17.5117199 20.6054196,17.1601583 C20.3840658,16.8085966 20.0780771,16.5416703 19.6874531,16.3593789 L19.6874531,16.3593789 L19.9218275,15.3828187 C19.9739105,15.0963613 19.9088069,14.835945 19.7265155,14.6015706 C19.544224,14.3671962 19.3098496,14.2500089 19.0233921,14.2500089 L19.0233921,14.2500089 L8.5156047,14.2500089 L8.28123026,13.0000119 L19.7265155,13.0000119 C19.9348481,13.0000119 20.1236501,12.9349077 20.2929204,12.8046999 C20.4621906,12.6744921 20.5728678,12.4922006 20.6249508,12.2578262 L20.6249508,12.2578262 L22.4608839,4.13284556 C22.5390088,3.84638811 22.4869258,3.58597187 22.3046343,3.35159742 C22.1223429,3.11722298 21.8749478,3.00004172 21.5624486,3.00004172 L21.5624486,3.00004172 L6.21092269,3.00004172 L5.85936103,1.24222745 C5.80727802,1.03389482 5.6966008,0.858113985 5.52733057,0.714884961 C5.35806034,0.571655937 5.16925831,0.500041723 4.96092567,0.500041723 L4.96092567,0.500041723 L0.937497765,0.500041723 C0.67708152,0.500041723 0.455728279,0.591187141 0.273436848,0.773478571 C0.0911454173,0.955770002 0,1.17712324 0,1.43753949 L0,1.43753949 L0,2.062538 C0,2.32295424 0.0911454173,2.54430748 0.273436848,2.72659891 C0.455728279,2.90889035 0.67708152,3.00004172 0.937497765,3.00004172 L0.937497765,3.00004172 L3.67186625,3.00004172 L6.40623473,16.3984413 C6.06769367,16.606774 5.80076742,16.8802108 5.60545539,17.2187519 C5.41014335,17.5572929 5.31248733,17.9218752 5.31248733,18.3124993 C5.31248733,18.911456 5.52733057,19.4257779 5.95701705,19.8554643 C6.38670352,20.2851508 6.90102541,20.499994 7.49998212,20.499994 C8.09893883,20.499994 8.61326071,20.2851508 9.04294719,19.8554643 C9.47263367,19.4257779 9.6874769,18.904946 9.6874769,18.2929681 C9.6874769,17.6809901 9.46612307,17.1666689 9.02341599,16.750003 L9.02341599,16.750003 L17.2265214,16.750003 C16.7838143,17.1666689 16.5624605,17.6809901 16.5624605,18.2929681 C16.5624605,18.904946 16.7773037,19.4257779 17.2069902,19.8554643 C17.6366767,20.2851508 18.1509986,20.499994 18.7499553,20.499994 Z",
|
|
18297
|
+
id: "cart-badge-shopping-cart",
|
|
18298
|
+
fill: iconFill,
|
|
18299
|
+
fillRule: "nonzero"
|
|
18297
18300
|
}));
|
|
18298
18301
|
};
|
|
18299
18302
|
|
|
@@ -18943,7 +18946,7 @@ var mobileFallbackValues = {
|
|
|
18943
18946
|
};
|
|
18944
18947
|
var MOBILE_BREAKPOINT = 768;
|
|
18945
18948
|
|
|
18946
|
-
var _excluded$
|
|
18949
|
+
var _excluded$j = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
18947
18950
|
|
|
18948
18951
|
/*
|
|
18949
18952
|
New responsive text component for Title elements
|
|
@@ -18990,7 +18993,7 @@ var Title = function Title(_ref) {
|
|
|
18990
18993
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
18991
18994
|
dataQa = _ref.dataQa,
|
|
18992
18995
|
children = _ref.children,
|
|
18993
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
18996
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
18994
18997
|
return /*#__PURE__*/React.createElement(TitleText, _extends({
|
|
18995
18998
|
variant: variant,
|
|
18996
18999
|
as: as,
|
|
@@ -20414,12 +20417,12 @@ var fallbackValues$8 = {
|
|
|
20414
20417
|
linkColor: linkColor
|
|
20415
20418
|
};
|
|
20416
20419
|
|
|
20417
|
-
var _excluded$
|
|
20420
|
+
var _excluded$k = ["variant", "themeValues", "children"];
|
|
20418
20421
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
20419
20422
|
var variant = _ref.variant,
|
|
20420
20423
|
themeValues = _ref.themeValues,
|
|
20421
20424
|
children = _ref.children,
|
|
20422
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20425
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
20423
20426
|
var shadowRegistry = {
|
|
20424
20427
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
20425
20428
|
baseHover: "0px 1px 7px 0px ".concat(rgba$1(BLACK, 0.3), ", 0px 1px 4px 0px ").concat(rgba$1(BLACK, 0.2), ", 0px 7px 12px 0px ").concat(rgba$1(BLACK, 0.2), ";"),
|
|
@@ -20479,7 +20482,7 @@ var fallbackValues$a = {
|
|
|
20479
20482
|
externalLinkColor: externalLinkColor
|
|
20480
20483
|
};
|
|
20481
20484
|
|
|
20482
|
-
var _excluded$
|
|
20485
|
+
var _excluded$l = ["hoverColor", "activeColor", "extrastyles"];
|
|
20483
20486
|
var ROYAL_BLUE$1 = ROYAL_BLUE;
|
|
20484
20487
|
var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
|
|
20485
20488
|
|
|
@@ -20493,7 +20496,7 @@ var StyledExternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20493
20496
|
var hoverColor = _ref.hoverColor,
|
|
20494
20497
|
activeColor = _ref.activeColor,
|
|
20495
20498
|
extrastyles = _ref.extrastyles,
|
|
20496
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20499
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
20497
20500
|
return /*#__PURE__*/React.createElement("a", _extends({}, props, {
|
|
20498
20501
|
ref: ref
|
|
20499
20502
|
}));
|
|
@@ -20568,7 +20571,7 @@ var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20568
20571
|
}, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
20569
20572
|
});
|
|
20570
20573
|
|
|
20571
|
-
var _excluded$
|
|
20574
|
+
var _excluded$m = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
20572
20575
|
var ROYAL_BLUE$2 = ROYAL_BLUE;
|
|
20573
20576
|
var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
|
|
20574
20577
|
|
|
@@ -20584,7 +20587,7 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20584
20587
|
active = _ref.active,
|
|
20585
20588
|
color = _ref.color,
|
|
20586
20589
|
extrastyles = _ref.extrastyles,
|
|
20587
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20590
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
20588
20591
|
return /*#__PURE__*/React.createElement(Link, _extends({}, props, {
|
|
20589
20592
|
ref: ref
|
|
20590
20593
|
}));
|
|
@@ -22267,7 +22270,7 @@ _curry2(function test(pattern, str) {
|
|
|
22267
22270
|
return _cloneRegExp(pattern).test(str);
|
|
22268
22271
|
});
|
|
22269
22272
|
|
|
22270
|
-
var _excluded$
|
|
22273
|
+
var _excluded$n = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22271
22274
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
22272
22275
|
var _ref$url = _ref.url,
|
|
22273
22276
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -22282,7 +22285,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22282
22285
|
_ref$newTab = _ref.newTab,
|
|
22283
22286
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
22284
22287
|
dataQa = _ref.dataQa,
|
|
22285
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22288
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
22286
22289
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
22287
22290
|
var children = _ref2.children,
|
|
22288
22291
|
url = _ref2.url,
|
|
@@ -22370,7 +22373,7 @@ var ParagraphText = styled.p.withConfig({
|
|
|
22370
22373
|
return extraStyles;
|
|
22371
22374
|
});
|
|
22372
22375
|
|
|
22373
|
-
var _excluded$
|
|
22376
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
22374
22377
|
var Paragraph = function Paragraph(_ref) {
|
|
22375
22378
|
var themeValues = _ref.themeValues,
|
|
22376
22379
|
_ref$weight = _ref.weight,
|
|
@@ -22384,7 +22387,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
22384
22387
|
dataQa = _ref.dataQa,
|
|
22385
22388
|
children = _ref.children,
|
|
22386
22389
|
as = _ref.as,
|
|
22387
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22390
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
22388
22391
|
return /*#__PURE__*/React.createElement(ParagraphText, _extends({
|
|
22389
22392
|
weight: weight,
|
|
22390
22393
|
color: color,
|
|
@@ -25693,7 +25696,7 @@ var mobileFallbackValues$1 = {
|
|
|
25693
25696
|
};
|
|
25694
25697
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25695
25698
|
|
|
25696
|
-
var _excluded$
|
|
25699
|
+
var _excluded$p = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25697
25700
|
|
|
25698
25701
|
/*
|
|
25699
25702
|
New responsive text component for Detail elements
|
|
@@ -25743,7 +25746,7 @@ var Detail = function Detail(_ref) {
|
|
|
25743
25746
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25744
25747
|
dataQa = _ref.dataQa,
|
|
25745
25748
|
children = _ref.children,
|
|
25746
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25749
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
25747
25750
|
return /*#__PURE__*/React.createElement(DetailText, _extends({
|
|
25748
25751
|
variant: variant,
|
|
25749
25752
|
as: as,
|
|
@@ -26453,7 +26456,7 @@ var fallbackValues$k = {
|
|
|
26453
26456
|
formFooterPanel: formFooterPanel
|
|
26454
26457
|
};
|
|
26455
26458
|
|
|
26456
|
-
var _excluded$
|
|
26459
|
+
var _excluded$q = ["showErrors", "themeValues"],
|
|
26457
26460
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
|
|
26458
26461
|
var InputField = styled.input.withConfig({
|
|
26459
26462
|
displayName: "FormInput__InputField",
|
|
@@ -26488,7 +26491,7 @@ var InputField = styled.input.withConfig({
|
|
|
26488
26491
|
var FormattedInputField = styled(function (_ref8) {
|
|
26489
26492
|
var showErrors = _ref8.showErrors,
|
|
26490
26493
|
themeValues = _ref8.themeValues,
|
|
26491
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
26494
|
+
props = _objectWithoutProperties(_ref8, _excluded$q);
|
|
26492
26495
|
return /*#__PURE__*/React.createElement(FormattedInput, props);
|
|
26493
26496
|
}).withConfig({
|
|
26494
26497
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -26660,7 +26663,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26660
26663
|
};
|
|
26661
26664
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26662
26665
|
|
|
26663
|
-
var _excluded$
|
|
26666
|
+
var _excluded$r = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26664
26667
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26665
26668
|
var _ref$breakpoint = _ref.breakpoint,
|
|
26666
26669
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -26669,7 +26672,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26669
26672
|
largeChild = _ref.largeChild,
|
|
26670
26673
|
largeChildSize = _ref.largeChildSize,
|
|
26671
26674
|
children = _ref.children,
|
|
26672
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26675
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
26673
26676
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
26674
26677
|
padding: "0"
|
|
26675
26678
|
}, rest), /*#__PURE__*/React.createElement(Switcher, {
|
|
@@ -26680,24 +26683,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26680
26683
|
}, children));
|
|
26681
26684
|
};
|
|
26682
26685
|
|
|
26683
|
-
var _excluded$
|
|
26686
|
+
var _excluded$s = ["childGap", "bottomItem", "children"];
|
|
26684
26687
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26685
26688
|
var _ref$childGap = _ref.childGap,
|
|
26686
26689
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26687
26690
|
bottomItem = _ref.bottomItem,
|
|
26688
26691
|
children = _ref.children,
|
|
26689
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26692
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26690
26693
|
return /*#__PURE__*/React.createElement(Stack, _extends({
|
|
26691
26694
|
childGap: childGap,
|
|
26692
26695
|
bottomItem: bottomItem
|
|
26693
26696
|
}, rest), children);
|
|
26694
26697
|
};
|
|
26695
26698
|
|
|
26696
|
-
var _excluded$
|
|
26699
|
+
var _excluded$t = ["themeValues", "children"];
|
|
26697
26700
|
var FormContainer = function FormContainer(_ref) {
|
|
26698
26701
|
var themeValues = _ref.themeValues,
|
|
26699
26702
|
children = _ref.children,
|
|
26700
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26703
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26701
26704
|
var _useContext = useContext(ThemeContext),
|
|
26702
26705
|
isMobile = _useContext.isMobile;
|
|
26703
26706
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
@@ -27007,7 +27010,7 @@ var fallbackValues$o = {
|
|
|
27007
27010
|
fontSize: fontSize$8
|
|
27008
27011
|
};
|
|
27009
27012
|
|
|
27010
|
-
var _excluded$
|
|
27013
|
+
var _excluded$u = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
27011
27014
|
var Heading = function Heading(_ref) {
|
|
27012
27015
|
var themeValues = _ref.themeValues,
|
|
27013
27016
|
_ref$weight = _ref.weight,
|
|
@@ -27026,7 +27029,7 @@ var Heading = function Heading(_ref) {
|
|
|
27026
27029
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
27027
27030
|
dataQa = _ref.dataQa,
|
|
27028
27031
|
children = _ref.children,
|
|
27029
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27032
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
27030
27033
|
return /*#__PURE__*/React.createElement(HeadingText, _extends({
|
|
27031
27034
|
variant: variant,
|
|
27032
27035
|
as: as,
|
|
@@ -27113,9 +27116,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
27113
27116
|
_ref$showCartStatus = _ref.showCartStatus,
|
|
27114
27117
|
showCartStatus = _ref$showCartStatus === void 0 ? false : _ref$showCartStatus,
|
|
27115
27118
|
openCartSlider = _ref.openCartSlider,
|
|
27116
|
-
extraStyles = _ref.extraStyles
|
|
27117
|
-
cartStatusExtraStyles = _ref.cartStatusExtraStyles,
|
|
27118
|
-
cartStatusThemeValues = _ref.cartStatusThemeValues;
|
|
27119
|
+
extraStyles = _ref.extraStyles;
|
|
27119
27120
|
var _useContext = useContext(ThemeContext),
|
|
27120
27121
|
isMobile = _useContext.isMobile;
|
|
27121
27122
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -27138,8 +27139,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
27138
27139
|
minHeight: "100%",
|
|
27139
27140
|
justify: isMobile && !showCartStatus ? "center" : showButton || showCartStatus ? "space-between" : "left",
|
|
27140
27141
|
align: "center",
|
|
27141
|
-
nowrap: showCartStatus
|
|
27142
|
-
extraStyles: cartStatusExtraStyles
|
|
27142
|
+
nowrap: showCartStatus
|
|
27143
27143
|
}, /*#__PURE__*/React.createElement(Title$1, {
|
|
27144
27144
|
variant: isMobile ? "small" : "large",
|
|
27145
27145
|
as: "h1",
|
|
@@ -27156,7 +27156,6 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
27156
27156
|
variant: "primary",
|
|
27157
27157
|
extraStyles: "margin: 0 0 65px 0; min-width: 320px;"
|
|
27158
27158
|
}), showCartStatus && /*#__PURE__*/React.createElement(CartStatus, {
|
|
27159
|
-
themeValues: cartStatusThemeValues,
|
|
27160
27159
|
total: total,
|
|
27161
27160
|
itemsCount: itemsCount,
|
|
27162
27161
|
openCart: openCartSlider
|
|
@@ -27231,11 +27230,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
27231
27230
|
}, /*#__PURE__*/React.createElement("span", null, label), /*#__PURE__*/React.createElement("span", null, amount));
|
|
27232
27231
|
};
|
|
27233
27232
|
|
|
27234
|
-
var _excluded$
|
|
27233
|
+
var _excluded$v = ["version"];
|
|
27235
27234
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
27236
27235
|
var _ref$version = _ref.version,
|
|
27237
27236
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
27238
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27237
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
27239
27238
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
27240
27239
|
return /*#__PURE__*/React.createElement(LabeledAmountComponent, rest);
|
|
27241
27240
|
};
|
|
@@ -27372,7 +27371,7 @@ var Loading = function Loading() {
|
|
|
27372
27371
|
})))));
|
|
27373
27372
|
};
|
|
27374
27373
|
|
|
27375
|
-
var _excluded$
|
|
27374
|
+
var _excluded$w = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
27376
27375
|
var NavFooter = function NavFooter(_ref) {
|
|
27377
27376
|
var leftContent = _ref.leftContent,
|
|
27378
27377
|
rightContent = _ref.rightContent,
|
|
@@ -27387,7 +27386,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27387
27386
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
27388
27387
|
isMobile = _ref.isMobile,
|
|
27389
27388
|
footerWidth = _ref.footerWidth,
|
|
27390
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27389
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
27391
27390
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
27392
27391
|
padding: footerPadding,
|
|
27393
27392
|
background: backgroundColor,
|
|
@@ -27418,7 +27417,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27418
27417
|
}, rightContent)))))));
|
|
27419
27418
|
};
|
|
27420
27419
|
|
|
27421
|
-
var _excluded$
|
|
27420
|
+
var _excluded$x = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
27422
27421
|
var NavHeader = function NavHeader(_ref) {
|
|
27423
27422
|
var leftContent = _ref.leftContent,
|
|
27424
27423
|
rightContent = _ref.rightContent,
|
|
@@ -27427,7 +27426,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
27427
27426
|
isMobile = _ref.isMobile,
|
|
27428
27427
|
backgroundColor = _ref.backgroundColor,
|
|
27429
27428
|
headerWidth = _ref.headerWidth,
|
|
27430
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27429
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
27431
27430
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
27432
27431
|
padding: "0 16px 4px",
|
|
27433
27432
|
background: backgroundColor,
|
|
@@ -39173,7 +39172,7 @@ var TableRowWrapper = styled.tr.withConfig({
|
|
|
39173
39172
|
return extraStyles;
|
|
39174
39173
|
});
|
|
39175
39174
|
|
|
39176
|
-
var _excluded$
|
|
39175
|
+
var _excluded$y = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
39177
39176
|
var TableRow = function TableRow(_ref) {
|
|
39178
39177
|
var children = _ref.children,
|
|
39179
39178
|
extraStyles = _ref.extraStyles,
|
|
@@ -39182,7 +39181,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
39182
39181
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
39183
39182
|
onClick = _ref.onClick,
|
|
39184
39183
|
themeValues = _ref.themeValues,
|
|
39185
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
39184
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
39186
39185
|
return /*#__PURE__*/React.createElement(TableRowWrapper, _extends({
|
|
39187
39186
|
onClick: onClick,
|
|
39188
39187
|
hoverEffect: hoverEffect,
|
|
@@ -46575,17 +46574,17 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46575
46574
|
var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
|
|
46576
46575
|
var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
|
|
46577
46576
|
var methodRequired = allowsCard && !allowsACH ? "debit or credit card payment method" : !allowsCard && allowsACH ? "checking account payment method" : "payment method";
|
|
46578
|
-
return "To
|
|
46577
|
+
return "To set up ".concat(planText, " you must have a saved ").concat(methodRequired, " and address. Do you want to save these now?");
|
|
46579
46578
|
};
|
|
46580
46579
|
var plan = isPaymentPlan ? "your payment plan" : "autopay";
|
|
46581
46580
|
var shortPlan = isPaymentPlan ? "Payment Plan" : "Autopay";
|
|
46582
|
-
var deactivateText = "
|
|
46583
|
-
var activateText = "Set
|
|
46581
|
+
var deactivateText = "Stop ".concat(shortPlan.toLowerCase(), " for ").concat(titleCaseString(description), ": ").concat(titleCaseString(subDescription));
|
|
46582
|
+
var activateText = "Set up ".concat(shortPlan.toLowerCase(), " for ").concat(titleCaseString(description), ": ").concat(titleCaseString(subDescription));
|
|
46584
46583
|
var nextDate = dueDate || nextAutopayDate;
|
|
46585
46584
|
var modalExtraProps = {
|
|
46586
|
-
modalHeaderText: autoPayActive ?
|
|
46587
|
-
modalBodyText: autoPayActive ? "Are you sure you want to
|
|
46588
|
-
continueButtonText: autoPayActive ? "
|
|
46585
|
+
modalHeaderText: autoPayActive ? deactivateText : activateText,
|
|
46586
|
+
modalBodyText: autoPayActive ? "Are you sure you want to stop ".concat(plan, "? ").concat(!inactive && nextDate && nextDate !== "On" ? "Your next payment will be due on " + nextDate + "." : "") : generateMethodNeededText(plan, allowedPaymentInstruments),
|
|
46587
|
+
continueButtonText: autoPayActive ? "Stop ".concat(shortPlan) : "Add",
|
|
46589
46588
|
useDangerButton: autoPayActive,
|
|
46590
46589
|
continueAction: autoPayActive ? function () {
|
|
46591
46590
|
deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
|
|
@@ -47534,7 +47533,11 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47534
47533
|
_ref$hideForwardButto = _ref.hideForwardButton,
|
|
47535
47534
|
hideForwardButton = _ref$hideForwardButto === void 0 ? false : _ref$hideForwardButto,
|
|
47536
47535
|
_ref$hideBackButton = _ref.hideBackButton,
|
|
47537
|
-
hideBackButton = _ref$hideBackButton === void 0 ? false : _ref$hideBackButton
|
|
47536
|
+
hideBackButton = _ref$hideBackButton === void 0 ? false : _ref$hideBackButton,
|
|
47537
|
+
buttonGroupStyles = _ref.buttonGroupStyles,
|
|
47538
|
+
_ref$hideAdditionalBu = _ref.hideAdditionalButton,
|
|
47539
|
+
hideAdditionalButton = _ref$hideAdditionalBu === void 0 ? false : _ref$hideAdditionalBu,
|
|
47540
|
+
additionalButton = _ref.additionalButton;
|
|
47538
47541
|
var _useContext = useContext(ThemeContext),
|
|
47539
47542
|
isMobile = _useContext.isMobile;
|
|
47540
47543
|
var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React.createElement(ButtonWithLink, {
|
|
@@ -47580,8 +47583,9 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47580
47583
|
padding: "2.5rem 0 3.125rem 0"
|
|
47581
47584
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
47582
47585
|
justify: buttonFlexOverride ? buttonFlexOverride : !!backButton ? "space-between" : "flex-end",
|
|
47583
|
-
align: "center"
|
|
47584
|
-
|
|
47586
|
+
align: "center",
|
|
47587
|
+
extraStyles: buttonGroupStyles
|
|
47588
|
+
}, !hideBackButton && /*#__PURE__*/React.createElement(Fragment$1, null, backButton), !hideForwardButton && /*#__PURE__*/React.createElement(Fragment$1, null, forwardButton), !hideAdditionalButton && /*#__PURE__*/React.createElement(Fragment$1, null, additionalButton))));
|
|
47585
47589
|
};
|
|
47586
47590
|
|
|
47587
47591
|
var backgroundColor$c = {
|
|
@@ -47607,7 +47611,7 @@ var fallbackValues$N = {
|
|
|
47607
47611
|
labeledAmountTotal: labeledAmountTotal
|
|
47608
47612
|
};
|
|
47609
47613
|
|
|
47610
|
-
var _excluded$
|
|
47614
|
+
var _excluded$z = ["amount"],
|
|
47611
47615
|
_excluded2$1 = ["amount"];
|
|
47612
47616
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47613
47617
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -47847,7 +47851,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47847
47851
|
return fee.amount > 0;
|
|
47848
47852
|
}).map(function (_ref5) {
|
|
47849
47853
|
var amount = _ref5.amount,
|
|
47850
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47854
|
+
rest = _objectWithoutProperties(_ref5, _excluded$z);
|
|
47851
47855
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47852
47856
|
amount: displayCurrency(amount)
|
|
47853
47857
|
});
|
|
@@ -48059,6 +48063,10 @@ var modalLinkHoverFocus$2 = {
|
|
|
48059
48063
|
"default": standardInteractionStyles,
|
|
48060
48064
|
footer: standardInteractionStyles
|
|
48061
48065
|
};
|
|
48066
|
+
var modalLinkTextDecoration = {
|
|
48067
|
+
"default": LINK_TEXT_DECORATION,
|
|
48068
|
+
footer: "none"
|
|
48069
|
+
};
|
|
48062
48070
|
var fallbackValues$P = {
|
|
48063
48071
|
backgroundColor: backgroundColor$d,
|
|
48064
48072
|
linkColor: linkColor$6,
|
|
@@ -48066,7 +48074,8 @@ var fallbackValues$P = {
|
|
|
48066
48074
|
fontSize: fontSize$b,
|
|
48067
48075
|
lineHeight: lineHeight$5,
|
|
48068
48076
|
fontWeight: fontWeight$8,
|
|
48069
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
48077
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2,
|
|
48078
|
+
modalLinkTextDecoration: modalLinkTextDecoration
|
|
48070
48079
|
};
|
|
48071
48080
|
|
|
48072
48081
|
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
@@ -48123,6 +48132,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
48123
48132
|
color: themeValues.linkColor,
|
|
48124
48133
|
weight: themeValues.fontWeight,
|
|
48125
48134
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48135
|
+
textDecoration: themeValues.modalLinkTextDecoration,
|
|
48126
48136
|
extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
|
|
48127
48137
|
role: "button" // This should always be a "button" since it opens a modal
|
|
48128
48138
|
,
|
|
@@ -48256,11 +48266,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48256
48266
|
}, errorMessage))))));
|
|
48257
48267
|
};
|
|
48258
48268
|
|
|
48259
|
-
var _excluded$
|
|
48269
|
+
var _excluded$A = ["version"];
|
|
48260
48270
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48261
48271
|
var _ref$version = _ref.version,
|
|
48262
48272
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48263
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48273
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
48264
48274
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48265
48275
|
return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
|
|
48266
48276
|
};
|
|
@@ -49059,7 +49069,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49059
49069
|
}, section.content))));
|
|
49060
49070
|
};
|
|
49061
49071
|
|
|
49062
|
-
var _excluded$
|
|
49072
|
+
var _excluded$B = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
49063
49073
|
|
|
49064
49074
|
/**
|
|
49065
49075
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49107,7 +49117,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49107
49117
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
49108
49118
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49109
49119
|
groupedSections = _ref.groupedSections,
|
|
49110
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49120
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
49111
49121
|
var _useState = useState(null),
|
|
49112
49122
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49113
49123
|
focused = _useState2[0],
|