@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.cjs.js
CHANGED
|
@@ -18286,22 +18286,25 @@ var KebabMenuIcon = function KebabMenuIcon() {
|
|
|
18286
18286
|
}));
|
|
18287
18287
|
};
|
|
18288
18288
|
|
|
18289
|
+
var _excluded$i = ["iconFill", "iconWidth", "iconHeight"];
|
|
18289
18290
|
var MultiCartIcon = function MultiCartIcon(_ref) {
|
|
18290
18291
|
var _ref$iconFill = _ref.iconFill,
|
|
18291
18292
|
iconFill = _ref$iconFill === void 0 ? "#3B5BDB" : _ref$iconFill,
|
|
18292
|
-
_ref$
|
|
18293
|
-
|
|
18294
|
-
|
|
18295
|
-
|
|
18296
|
-
|
|
18293
|
+
_ref$iconWidth = _ref.iconWidth,
|
|
18294
|
+
iconWidth = _ref$iconWidth === void 0 ? "20" : _ref$iconWidth,
|
|
18295
|
+
_ref$iconHeight = _ref.iconHeight,
|
|
18296
|
+
iconHeight = _ref$iconHeight === void 0 ? "17" : _ref$iconHeight,
|
|
18297
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
18298
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18297
18299
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18298
18300
|
width: iconWidth,
|
|
18299
18301
|
height: iconHeight,
|
|
18300
|
-
viewBox: "0 0
|
|
18301
|
-
|
|
18302
|
-
|
|
18303
|
-
|
|
18304
|
-
fill: iconFill
|
|
18302
|
+
viewBox: "0 0 24.81 22.06"
|
|
18303
|
+
}, rest), /*#__PURE__*/React__default.createElement("title", null, "Icon - Cart-Empty"), /*#__PURE__*/React__default.createElement("path", {
|
|
18304
|
+
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",
|
|
18305
|
+
id: "cart-badge-shopping-cart",
|
|
18306
|
+
fill: iconFill,
|
|
18307
|
+
fillRule: "nonzero"
|
|
18305
18308
|
}));
|
|
18306
18309
|
};
|
|
18307
18310
|
|
|
@@ -18951,7 +18954,7 @@ var mobileFallbackValues = {
|
|
|
18951
18954
|
};
|
|
18952
18955
|
var MOBILE_BREAKPOINT = 768;
|
|
18953
18956
|
|
|
18954
|
-
var _excluded$
|
|
18957
|
+
var _excluded$j = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
18955
18958
|
|
|
18956
18959
|
/*
|
|
18957
18960
|
New responsive text component for Title elements
|
|
@@ -18998,7 +19001,7 @@ var Title = function Title(_ref) {
|
|
|
18998
19001
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
18999
19002
|
dataQa = _ref.dataQa,
|
|
19000
19003
|
children = _ref.children,
|
|
19001
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19004
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
19002
19005
|
return /*#__PURE__*/React__default.createElement(TitleText, _extends({
|
|
19003
19006
|
variant: variant,
|
|
19004
19007
|
as: as,
|
|
@@ -20422,12 +20425,12 @@ var fallbackValues$8 = {
|
|
|
20422
20425
|
linkColor: linkColor
|
|
20423
20426
|
};
|
|
20424
20427
|
|
|
20425
|
-
var _excluded$
|
|
20428
|
+
var _excluded$k = ["variant", "themeValues", "children"];
|
|
20426
20429
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
20427
20430
|
var variant = _ref.variant,
|
|
20428
20431
|
themeValues = _ref.themeValues,
|
|
20429
20432
|
children = _ref.children,
|
|
20430
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20433
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
20431
20434
|
var shadowRegistry = {
|
|
20432
20435
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
20433
20436
|
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), ";"),
|
|
@@ -20487,7 +20490,7 @@ var fallbackValues$a = {
|
|
|
20487
20490
|
externalLinkColor: externalLinkColor
|
|
20488
20491
|
};
|
|
20489
20492
|
|
|
20490
|
-
var _excluded$
|
|
20493
|
+
var _excluded$l = ["hoverColor", "activeColor", "extrastyles"];
|
|
20491
20494
|
var ROYAL_BLUE$1 = ROYAL_BLUE;
|
|
20492
20495
|
var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
|
|
20493
20496
|
|
|
@@ -20501,7 +20504,7 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
20501
20504
|
var hoverColor = _ref.hoverColor,
|
|
20502
20505
|
activeColor = _ref.activeColor,
|
|
20503
20506
|
extrastyles = _ref.extrastyles,
|
|
20504
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20507
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
20505
20508
|
return /*#__PURE__*/React__default.createElement("a", _extends({}, props, {
|
|
20506
20509
|
ref: ref
|
|
20507
20510
|
}));
|
|
@@ -20576,7 +20579,7 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
20576
20579
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
20577
20580
|
});
|
|
20578
20581
|
|
|
20579
|
-
var _excluded$
|
|
20582
|
+
var _excluded$m = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
20580
20583
|
var ROYAL_BLUE$2 = ROYAL_BLUE;
|
|
20581
20584
|
var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
|
|
20582
20585
|
|
|
@@ -20592,7 +20595,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
20592
20595
|
active = _ref.active,
|
|
20593
20596
|
color = _ref.color,
|
|
20594
20597
|
extrastyles = _ref.extrastyles,
|
|
20595
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20598
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
20596
20599
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
|
|
20597
20600
|
ref: ref
|
|
20598
20601
|
}));
|
|
@@ -22275,7 +22278,7 @@ _curry2(function test(pattern, str) {
|
|
|
22275
22278
|
return _cloneRegExp(pattern).test(str);
|
|
22276
22279
|
});
|
|
22277
22280
|
|
|
22278
|
-
var _excluded$
|
|
22281
|
+
var _excluded$n = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22279
22282
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
22280
22283
|
var _ref$url = _ref.url,
|
|
22281
22284
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -22290,7 +22293,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22290
22293
|
_ref$newTab = _ref.newTab,
|
|
22291
22294
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
22292
22295
|
dataQa = _ref.dataQa,
|
|
22293
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22296
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
22294
22297
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
22295
22298
|
var children = _ref2.children,
|
|
22296
22299
|
url = _ref2.url,
|
|
@@ -22378,7 +22381,7 @@ var ParagraphText = styled__default.p.withConfig({
|
|
|
22378
22381
|
return extraStyles;
|
|
22379
22382
|
});
|
|
22380
22383
|
|
|
22381
|
-
var _excluded$
|
|
22384
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
22382
22385
|
var Paragraph = function Paragraph(_ref) {
|
|
22383
22386
|
var themeValues = _ref.themeValues,
|
|
22384
22387
|
_ref$weight = _ref.weight,
|
|
@@ -22392,7 +22395,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
22392
22395
|
dataQa = _ref.dataQa,
|
|
22393
22396
|
children = _ref.children,
|
|
22394
22397
|
as = _ref.as,
|
|
22395
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22398
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
22396
22399
|
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
22397
22400
|
weight: weight,
|
|
22398
22401
|
color: color,
|
|
@@ -25701,7 +25704,7 @@ var mobileFallbackValues$1 = {
|
|
|
25701
25704
|
};
|
|
25702
25705
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25703
25706
|
|
|
25704
|
-
var _excluded$
|
|
25707
|
+
var _excluded$p = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25705
25708
|
|
|
25706
25709
|
/*
|
|
25707
25710
|
New responsive text component for Detail elements
|
|
@@ -25751,7 +25754,7 @@ var Detail = function Detail(_ref) {
|
|
|
25751
25754
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25752
25755
|
dataQa = _ref.dataQa,
|
|
25753
25756
|
children = _ref.children,
|
|
25754
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25757
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
25755
25758
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
25756
25759
|
variant: variant,
|
|
25757
25760
|
as: as,
|
|
@@ -26461,7 +26464,7 @@ var fallbackValues$k = {
|
|
|
26461
26464
|
formFooterPanel: formFooterPanel
|
|
26462
26465
|
};
|
|
26463
26466
|
|
|
26464
|
-
var _excluded$
|
|
26467
|
+
var _excluded$q = ["showErrors", "themeValues"],
|
|
26465
26468
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
|
|
26466
26469
|
var InputField = styled__default.input.withConfig({
|
|
26467
26470
|
displayName: "FormInput__InputField",
|
|
@@ -26496,7 +26499,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
26496
26499
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
26497
26500
|
var showErrors = _ref8.showErrors,
|
|
26498
26501
|
themeValues = _ref8.themeValues,
|
|
26499
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
26502
|
+
props = _objectWithoutProperties(_ref8, _excluded$q);
|
|
26500
26503
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
26501
26504
|
}).withConfig({
|
|
26502
26505
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -26668,7 +26671,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26668
26671
|
};
|
|
26669
26672
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26670
26673
|
|
|
26671
|
-
var _excluded$
|
|
26674
|
+
var _excluded$r = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26672
26675
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26673
26676
|
var _ref$breakpoint = _ref.breakpoint,
|
|
26674
26677
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -26677,7 +26680,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26677
26680
|
largeChild = _ref.largeChild,
|
|
26678
26681
|
largeChildSize = _ref.largeChildSize,
|
|
26679
26682
|
children = _ref.children,
|
|
26680
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26683
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
26681
26684
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26682
26685
|
padding: "0"
|
|
26683
26686
|
}, rest), /*#__PURE__*/React__default.createElement(Switcher, {
|
|
@@ -26688,24 +26691,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26688
26691
|
}, children));
|
|
26689
26692
|
};
|
|
26690
26693
|
|
|
26691
|
-
var _excluded$
|
|
26694
|
+
var _excluded$s = ["childGap", "bottomItem", "children"];
|
|
26692
26695
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26693
26696
|
var _ref$childGap = _ref.childGap,
|
|
26694
26697
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26695
26698
|
bottomItem = _ref.bottomItem,
|
|
26696
26699
|
children = _ref.children,
|
|
26697
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26700
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26698
26701
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
26699
26702
|
childGap: childGap,
|
|
26700
26703
|
bottomItem: bottomItem
|
|
26701
26704
|
}, rest), children);
|
|
26702
26705
|
};
|
|
26703
26706
|
|
|
26704
|
-
var _excluded$
|
|
26707
|
+
var _excluded$t = ["themeValues", "children"];
|
|
26705
26708
|
var FormContainer = function FormContainer(_ref) {
|
|
26706
26709
|
var themeValues = _ref.themeValues,
|
|
26707
26710
|
children = _ref.children,
|
|
26708
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26711
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26709
26712
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26710
26713
|
isMobile = _useContext.isMobile;
|
|
26711
26714
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
@@ -27015,7 +27018,7 @@ var fallbackValues$o = {
|
|
|
27015
27018
|
fontSize: fontSize$8
|
|
27016
27019
|
};
|
|
27017
27020
|
|
|
27018
|
-
var _excluded$
|
|
27021
|
+
var _excluded$u = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
27019
27022
|
var Heading = function Heading(_ref) {
|
|
27020
27023
|
var themeValues = _ref.themeValues,
|
|
27021
27024
|
_ref$weight = _ref.weight,
|
|
@@ -27034,7 +27037,7 @@ var Heading = function Heading(_ref) {
|
|
|
27034
27037
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
27035
27038
|
dataQa = _ref.dataQa,
|
|
27036
27039
|
children = _ref.children,
|
|
27037
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27040
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
27038
27041
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
27039
27042
|
variant: variant,
|
|
27040
27043
|
as: as,
|
|
@@ -27121,9 +27124,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
27121
27124
|
_ref$showCartStatus = _ref.showCartStatus,
|
|
27122
27125
|
showCartStatus = _ref$showCartStatus === void 0 ? false : _ref$showCartStatus,
|
|
27123
27126
|
openCartSlider = _ref.openCartSlider,
|
|
27124
|
-
extraStyles = _ref.extraStyles
|
|
27125
|
-
cartStatusExtraStyles = _ref.cartStatusExtraStyles,
|
|
27126
|
-
cartStatusThemeValues = _ref.cartStatusThemeValues;
|
|
27127
|
+
extraStyles = _ref.extraStyles;
|
|
27127
27128
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
27128
27129
|
isMobile = _useContext.isMobile;
|
|
27129
27130
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -27146,8 +27147,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
27146
27147
|
minHeight: "100%",
|
|
27147
27148
|
justify: isMobile && !showCartStatus ? "center" : showButton || showCartStatus ? "space-between" : "left",
|
|
27148
27149
|
align: "center",
|
|
27149
|
-
nowrap: showCartStatus
|
|
27150
|
-
extraStyles: cartStatusExtraStyles
|
|
27150
|
+
nowrap: showCartStatus
|
|
27151
27151
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
27152
27152
|
variant: isMobile ? "small" : "large",
|
|
27153
27153
|
as: "h1",
|
|
@@ -27164,7 +27164,6 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
27164
27164
|
variant: "primary",
|
|
27165
27165
|
extraStyles: "margin: 0 0 65px 0; min-width: 320px;"
|
|
27166
27166
|
}), showCartStatus && /*#__PURE__*/React__default.createElement(CartStatus, {
|
|
27167
|
-
themeValues: cartStatusThemeValues,
|
|
27168
27167
|
total: total,
|
|
27169
27168
|
itemsCount: itemsCount,
|
|
27170
27169
|
openCart: openCartSlider
|
|
@@ -27239,11 +27238,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
27239
27238
|
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
27240
27239
|
};
|
|
27241
27240
|
|
|
27242
|
-
var _excluded$
|
|
27241
|
+
var _excluded$v = ["version"];
|
|
27243
27242
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
27244
27243
|
var _ref$version = _ref.version,
|
|
27245
27244
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
27246
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27245
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
27247
27246
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
27248
27247
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
27249
27248
|
};
|
|
@@ -27380,7 +27379,7 @@ var Loading = function Loading() {
|
|
|
27380
27379
|
})))));
|
|
27381
27380
|
};
|
|
27382
27381
|
|
|
27383
|
-
var _excluded$
|
|
27382
|
+
var _excluded$w = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
27384
27383
|
var NavFooter = function NavFooter(_ref) {
|
|
27385
27384
|
var leftContent = _ref.leftContent,
|
|
27386
27385
|
rightContent = _ref.rightContent,
|
|
@@ -27395,7 +27394,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27395
27394
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
27396
27395
|
isMobile = _ref.isMobile,
|
|
27397
27396
|
footerWidth = _ref.footerWidth,
|
|
27398
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27397
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
27399
27398
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27400
27399
|
padding: footerPadding,
|
|
27401
27400
|
background: backgroundColor,
|
|
@@ -27426,7 +27425,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27426
27425
|
}, rightContent)))))));
|
|
27427
27426
|
};
|
|
27428
27427
|
|
|
27429
|
-
var _excluded$
|
|
27428
|
+
var _excluded$x = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
27430
27429
|
var NavHeader = function NavHeader(_ref) {
|
|
27431
27430
|
var leftContent = _ref.leftContent,
|
|
27432
27431
|
rightContent = _ref.rightContent,
|
|
@@ -27435,7 +27434,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
27435
27434
|
isMobile = _ref.isMobile,
|
|
27436
27435
|
backgroundColor = _ref.backgroundColor,
|
|
27437
27436
|
headerWidth = _ref.headerWidth,
|
|
27438
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27437
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
27439
27438
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27440
27439
|
padding: "0 16px 4px",
|
|
27441
27440
|
background: backgroundColor,
|
|
@@ -39181,7 +39180,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
39181
39180
|
return extraStyles;
|
|
39182
39181
|
});
|
|
39183
39182
|
|
|
39184
|
-
var _excluded$
|
|
39183
|
+
var _excluded$y = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
39185
39184
|
var TableRow = function TableRow(_ref) {
|
|
39186
39185
|
var children = _ref.children,
|
|
39187
39186
|
extraStyles = _ref.extraStyles,
|
|
@@ -39190,7 +39189,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
39190
39189
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
39191
39190
|
onClick = _ref.onClick,
|
|
39192
39191
|
themeValues = _ref.themeValues,
|
|
39193
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
39192
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
39194
39193
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
39195
39194
|
onClick: onClick,
|
|
39196
39195
|
hoverEffect: hoverEffect,
|
|
@@ -46583,17 +46582,17 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46583
46582
|
var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
|
|
46584
46583
|
var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
|
|
46585
46584
|
var methodRequired = allowsCard && !allowsACH ? "debit or credit card payment method" : !allowsCard && allowsACH ? "checking account payment method" : "payment method";
|
|
46586
|
-
return "To
|
|
46585
|
+
return "To set up ".concat(planText, " you must have a saved ").concat(methodRequired, " and address. Do you want to save these now?");
|
|
46587
46586
|
};
|
|
46588
46587
|
var plan = isPaymentPlan ? "your payment plan" : "autopay";
|
|
46589
46588
|
var shortPlan = isPaymentPlan ? "Payment Plan" : "Autopay";
|
|
46590
|
-
var deactivateText = "
|
|
46591
|
-
var activateText = "Set
|
|
46589
|
+
var deactivateText = "Stop ".concat(shortPlan.toLowerCase(), " for ").concat(titleCaseString(description), ": ").concat(titleCaseString(subDescription));
|
|
46590
|
+
var activateText = "Set up ".concat(shortPlan.toLowerCase(), " for ").concat(titleCaseString(description), ": ").concat(titleCaseString(subDescription));
|
|
46592
46591
|
var nextDate = dueDate || nextAutopayDate;
|
|
46593
46592
|
var modalExtraProps = {
|
|
46594
|
-
modalHeaderText: autoPayActive ?
|
|
46595
|
-
modalBodyText: autoPayActive ? "Are you sure you want to
|
|
46596
|
-
continueButtonText: autoPayActive ? "
|
|
46593
|
+
modalHeaderText: autoPayActive ? deactivateText : activateText,
|
|
46594
|
+
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),
|
|
46595
|
+
continueButtonText: autoPayActive ? "Stop ".concat(shortPlan) : "Add",
|
|
46597
46596
|
useDangerButton: autoPayActive,
|
|
46598
46597
|
continueAction: autoPayActive ? function () {
|
|
46599
46598
|
deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
|
|
@@ -47542,7 +47541,11 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47542
47541
|
_ref$hideForwardButto = _ref.hideForwardButton,
|
|
47543
47542
|
hideForwardButton = _ref$hideForwardButto === void 0 ? false : _ref$hideForwardButto,
|
|
47544
47543
|
_ref$hideBackButton = _ref.hideBackButton,
|
|
47545
|
-
hideBackButton = _ref$hideBackButton === void 0 ? false : _ref$hideBackButton
|
|
47544
|
+
hideBackButton = _ref$hideBackButton === void 0 ? false : _ref$hideBackButton,
|
|
47545
|
+
buttonGroupStyles = _ref.buttonGroupStyles,
|
|
47546
|
+
_ref$hideAdditionalBu = _ref.hideAdditionalButton,
|
|
47547
|
+
hideAdditionalButton = _ref$hideAdditionalBu === void 0 ? false : _ref$hideAdditionalBu,
|
|
47548
|
+
additionalButton = _ref.additionalButton;
|
|
47546
47549
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47547
47550
|
isMobile = _useContext.isMobile;
|
|
47548
47551
|
var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
@@ -47588,8 +47591,9 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47588
47591
|
padding: "2.5rem 0 3.125rem 0"
|
|
47589
47592
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47590
47593
|
justify: buttonFlexOverride ? buttonFlexOverride : !!backButton ? "space-between" : "flex-end",
|
|
47591
|
-
align: "center"
|
|
47592
|
-
|
|
47594
|
+
align: "center",
|
|
47595
|
+
extraStyles: buttonGroupStyles
|
|
47596
|
+
}, !hideBackButton && /*#__PURE__*/React__default.createElement(React.Fragment, null, backButton), !hideForwardButton && /*#__PURE__*/React__default.createElement(React.Fragment, null, forwardButton), !hideAdditionalButton && /*#__PURE__*/React__default.createElement(React.Fragment, null, additionalButton))));
|
|
47593
47597
|
};
|
|
47594
47598
|
|
|
47595
47599
|
var backgroundColor$c = {
|
|
@@ -47615,7 +47619,7 @@ var fallbackValues$N = {
|
|
|
47615
47619
|
labeledAmountTotal: labeledAmountTotal
|
|
47616
47620
|
};
|
|
47617
47621
|
|
|
47618
|
-
var _excluded$
|
|
47622
|
+
var _excluded$z = ["amount"],
|
|
47619
47623
|
_excluded2$1 = ["amount"];
|
|
47620
47624
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47621
47625
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -47855,7 +47859,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47855
47859
|
return fee.amount > 0;
|
|
47856
47860
|
}).map(function (_ref5) {
|
|
47857
47861
|
var amount = _ref5.amount,
|
|
47858
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47862
|
+
rest = _objectWithoutProperties(_ref5, _excluded$z);
|
|
47859
47863
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47860
47864
|
amount: displayCurrency(amount)
|
|
47861
47865
|
});
|
|
@@ -48067,6 +48071,10 @@ var modalLinkHoverFocus$2 = {
|
|
|
48067
48071
|
"default": standardInteractionStyles,
|
|
48068
48072
|
footer: standardInteractionStyles
|
|
48069
48073
|
};
|
|
48074
|
+
var modalLinkTextDecoration = {
|
|
48075
|
+
"default": LINK_TEXT_DECORATION,
|
|
48076
|
+
footer: "none"
|
|
48077
|
+
};
|
|
48070
48078
|
var fallbackValues$P = {
|
|
48071
48079
|
backgroundColor: backgroundColor$d,
|
|
48072
48080
|
linkColor: linkColor$6,
|
|
@@ -48074,7 +48082,8 @@ var fallbackValues$P = {
|
|
|
48074
48082
|
fontSize: fontSize$b,
|
|
48075
48083
|
lineHeight: lineHeight$5,
|
|
48076
48084
|
fontWeight: fontWeight$8,
|
|
48077
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
48085
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2,
|
|
48086
|
+
modalLinkTextDecoration: modalLinkTextDecoration
|
|
48078
48087
|
};
|
|
48079
48088
|
|
|
48080
48089
|
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
@@ -48131,6 +48140,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
48131
48140
|
color: themeValues.linkColor,
|
|
48132
48141
|
weight: themeValues.fontWeight,
|
|
48133
48142
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48143
|
+
textDecoration: themeValues.modalLinkTextDecoration,
|
|
48134
48144
|
extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
|
|
48135
48145
|
role: "button" // This should always be a "button" since it opens a modal
|
|
48136
48146
|
,
|
|
@@ -48264,11 +48274,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48264
48274
|
}, errorMessage))))));
|
|
48265
48275
|
};
|
|
48266
48276
|
|
|
48267
|
-
var _excluded$
|
|
48277
|
+
var _excluded$A = ["version"];
|
|
48268
48278
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48269
48279
|
var _ref$version = _ref.version,
|
|
48270
48280
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48271
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48281
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
48272
48282
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48273
48283
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
48274
48284
|
};
|
|
@@ -49067,7 +49077,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49067
49077
|
}, section.content))));
|
|
49068
49078
|
};
|
|
49069
49079
|
|
|
49070
|
-
var _excluded$
|
|
49080
|
+
var _excluded$B = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
49071
49081
|
|
|
49072
49082
|
/**
|
|
49073
49083
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49115,7 +49125,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49115
49125
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
49116
49126
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49117
49127
|
groupedSections = _ref.groupedSections,
|
|
49118
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49128
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
49119
49129
|
var _useState = React.useState(null),
|
|
49120
49130
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49121
49131
|
focused = _useState2[0],
|