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