@thecb/components 10.4.0-beta.0 → 10.4.0-beta.10
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/README.md +2 -2
- package/dist/index.cjs.js +847 -331
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +64 -1
- package/dist/index.esm.js +843 -330
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/badge/Badge.js +6 -2
- package/src/components/atoms/badge/Badge.stories.js +2 -1
- package/src/components/atoms/badge/Badge.theme.js +6 -2
- package/src/components/atoms/breadcrumb/Breadcrumb.js +4 -3
- package/src/components/atoms/breadcrumb/Breadcrumb.theme.js +5 -2
- package/src/components/atoms/button-with-action/ButtonWithAction.js +34 -31
- package/src/components/atoms/button-with-action/ButtonWithAction.stories.js +29 -7
- package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +72 -3
- package/src/components/atoms/button-with-link/ButtonWithLink.js +7 -3
- package/src/components/atoms/form-layouts/FormInput.js +1 -1
- package/src/components/atoms/icons/AutopayIcon.js +2 -2
- package/src/components/atoms/icons/CloseIcon.d.ts +1 -0
- package/src/components/atoms/icons/CloseIcon.js +48 -0
- package/src/components/atoms/icons/MultiCartIcon.js +12 -10
- package/src/components/atoms/icons/TrashIconV2.d.ts +1 -0
- package/src/components/atoms/icons/TrashIconV2.js +41 -0
- package/src/components/atoms/icons/icons.stories.js +5 -1
- package/src/components/atoms/icons/index.d.ts +2 -0
- package/src/components/atoms/icons/index.js +5 -1
- package/src/components/atoms/jumbo/Jumbo.js +1 -5
- package/src/components/atoms/layouts/Box.js +1 -0
- package/src/components/atoms/layouts/Box.styled.js +15 -0
- package/src/components/atoms/layouts/examples/box-example/BoxExample.stories.js +2 -1
- package/src/components/atoms/link/ExternalLink.styled.js +6 -3
- package/src/components/atoms/link/InternalLink.styled.js +6 -3
- package/src/components/atoms/placeholder/Placeholder.js +1 -1
- package/src/components/atoms/placeholder/Placeholder.stories.js +2 -2
- package/src/components/atoms/text/Text.styled.js +1 -0
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +1 -0
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.stories.js +41 -0
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.theme.js +10 -2
- package/src/components/molecules/index.d.ts +1 -0
- package/src/components/molecules/index.js +1 -0
- package/src/components/molecules/link-card/LinkCard.js +26 -8
- package/src/components/molecules/link-card/LinkCard.stories.js +68 -34
- package/src/components/molecules/link-card/LinkCard.styled.js +41 -25
- package/src/components/molecules/link-card/LinkCard.theme.js +28 -5
- package/src/components/molecules/obligation/Obligation.js +5 -2
- package/src/components/molecules/obligation/modules/AmountModule.js +13 -1
- package/src/components/molecules/obligation/modules/AmountModule.stories.js +3 -0
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +33 -21
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +15 -3
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +32 -9
- package/src/components/molecules/obligation/modules/RemoveAccountModalModule.js +10 -6
- package/src/components/molecules/pagination/Pagination.js +1 -7
- package/src/components/molecules/pagination/Pagination.stories.js +32 -0
- package/src/components/molecules/pagination/Pagination.theme.js +1 -2
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +6 -1
- package/src/components/molecules/tab-sidebar/TabSidebar.js +2 -2
- 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/src/components/templates/default-page-template/DefaultPageTemplate.js +3 -2
- package/src/constants/index.d.ts +2 -1
- package/src/constants/index.js +12 -3
- package/src/constants/style_constants.d.ts +11 -0
- package/src/constants/style_constants.js +3 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4916,6 +4916,7 @@ var COMPACT_JUMBO_HEIGHT = "65px";
|
|
|
4916
4916
|
var FONT_WEIGHT_REGULAR = "400";
|
|
4917
4917
|
var FONT_WEIGHT_BOLD = "700";
|
|
4918
4918
|
var FONT_WEIGHT_SEMIBOLD = "600";
|
|
4919
|
+
var LINK_TEXT_DECORATION = "underline solid 1px";
|
|
4919
4920
|
|
|
4920
4921
|
var style_constants = /*#__PURE__*/Object.freeze({
|
|
4921
4922
|
__proto__: null,
|
|
@@ -4926,7 +4927,8 @@ var style_constants = /*#__PURE__*/Object.freeze({
|
|
|
4926
4927
|
COMPACT_JUMBO_HEIGHT: COMPACT_JUMBO_HEIGHT,
|
|
4927
4928
|
FONT_WEIGHT_REGULAR: FONT_WEIGHT_REGULAR,
|
|
4928
4929
|
FONT_WEIGHT_BOLD: FONT_WEIGHT_BOLD,
|
|
4929
|
-
FONT_WEIGHT_SEMIBOLD: FONT_WEIGHT_SEMIBOLD
|
|
4930
|
+
FONT_WEIGHT_SEMIBOLD: FONT_WEIGHT_SEMIBOLD,
|
|
4931
|
+
LINK_TEXT_DECORATION: LINK_TEXT_DECORATION
|
|
4930
4932
|
});
|
|
4931
4933
|
|
|
4932
4934
|
/*
|
|
@@ -5163,7 +5165,7 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
5163
5165
|
var TextSpan = styled__default.span.withConfig({
|
|
5164
5166
|
displayName: "Textstyled__TextSpan",
|
|
5165
5167
|
componentId: "sc-1oy97we-0"
|
|
5166
|
-
})(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";white-space:", ";&:hover{", "}&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
|
|
5168
|
+
})(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";text-decoration:", ";white-space:", ";&:hover{", "}&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
|
|
5167
5169
|
var fontSize = _ref.fontSize;
|
|
5168
5170
|
return fontSize;
|
|
5169
5171
|
}, function (_ref2) {
|
|
@@ -5176,17 +5178,20 @@ var TextSpan = styled__default.span.withConfig({
|
|
|
5176
5178
|
var color = _ref4.color;
|
|
5177
5179
|
return color;
|
|
5178
5180
|
}, function (_ref5) {
|
|
5179
|
-
var
|
|
5180
|
-
return
|
|
5181
|
+
var textDecoration = _ref5.textDecoration;
|
|
5182
|
+
return textDecoration;
|
|
5181
5183
|
}, function (_ref6) {
|
|
5182
|
-
var
|
|
5184
|
+
var $textWrap = _ref6.$textWrap;
|
|
5185
|
+
return $textWrap ? "initial" : "nowrap";
|
|
5186
|
+
}, function (_ref7) {
|
|
5187
|
+
var hoverStyles = _ref7.hoverStyles;
|
|
5183
5188
|
return styled.css(["", ""], hoverStyles);
|
|
5184
|
-
}, ROYAL_BLUE, function (
|
|
5185
|
-
var disabled =
|
|
5186
|
-
disabledStyles =
|
|
5189
|
+
}, ROYAL_BLUE, function (_ref8) {
|
|
5190
|
+
var disabled = _ref8.disabled,
|
|
5191
|
+
disabledStyles = _ref8.disabledStyles;
|
|
5187
5192
|
return disabled && styled.css(["", ""], disabledStyles);
|
|
5188
|
-
}, function (
|
|
5189
|
-
var extraStyles =
|
|
5193
|
+
}, function (_ref9) {
|
|
5194
|
+
var extraStyles = _ref9.extraStyles;
|
|
5190
5195
|
return extraStyles;
|
|
5191
5196
|
});
|
|
5192
5197
|
|
|
@@ -6206,7 +6211,7 @@ return numeral;
|
|
|
6206
6211
|
}));
|
|
6207
6212
|
});
|
|
6208
6213
|
|
|
6209
|
-
var noop = function noop() {};
|
|
6214
|
+
var noop$1 = function noop() {};
|
|
6210
6215
|
var formatMoneyString = function formatMoneyString(s) {
|
|
6211
6216
|
return numeral(s).format("$0,0.00");
|
|
6212
6217
|
};
|
|
@@ -6340,7 +6345,7 @@ var wrapIndex = function wrapIndex(index, length) {
|
|
|
6340
6345
|
|
|
6341
6346
|
var general = /*#__PURE__*/Object.freeze({
|
|
6342
6347
|
__proto__: null,
|
|
6343
|
-
noop: noop,
|
|
6348
|
+
noop: noop$1,
|
|
6344
6349
|
displayCurrency: displayCurrency,
|
|
6345
6350
|
convertCentsToMoneyInt: convertCentsToMoneyInt,
|
|
6346
6351
|
formatPercent: formatPercent,
|
|
@@ -6434,7 +6439,7 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6434
6439
|
}).withConfig({
|
|
6435
6440
|
displayName: "Boxstyled__BoxWrapper",
|
|
6436
6441
|
componentId: "sc-1f9ij0d-0"
|
|
6437
|
-
})(["position:relative;box-sizing:border-box;padding:", ";border:", ";box-shadow:", ";background-color:", ";min-height:", ";", " min-width:", ";max-width:", ";color:", ";border-radius:", ";border-width:", ";text-align:", ";&:hover{", "}&:focus{", "}&:active{", "}&:disabled{", "}& *{color:", ";}", " ", ""], function (_ref2) {
|
|
6442
|
+
})(["position:relative;box-sizing:border-box;padding:", ";border:", ";box-shadow:", ";background-color:", ";min-height:", ";", " min-width:", ";max-width:", ";color:", ";border-radius:", ";border-width:", ";text-align:", ";&:hover{", "}&:focus{", "}&:active{", "}&:disabled{", "}&[aria-disabled=\"true\"]{", "}& *{color:", ";}", " ", ""], function (_ref2) {
|
|
6438
6443
|
var padding = _ref2.padding;
|
|
6439
6444
|
return padding;
|
|
6440
6445
|
}, function (_ref3) {
|
|
@@ -6489,18 +6494,22 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6489
6494
|
as = _ref17.as;
|
|
6490
6495
|
return styled.css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6491
6496
|
}, function (_ref18) {
|
|
6492
|
-
var
|
|
6493
|
-
|
|
6497
|
+
var disabledStyles = _ref18.disabledStyles,
|
|
6498
|
+
as = _ref18.as;
|
|
6499
|
+
return styled.css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6494
6500
|
}, function (_ref19) {
|
|
6495
|
-
var
|
|
6496
|
-
return
|
|
6501
|
+
var color = _ref19.color;
|
|
6502
|
+
return color;
|
|
6497
6503
|
}, function (_ref20) {
|
|
6498
|
-
var
|
|
6504
|
+
var hiddenStyles = _ref20.hiddenStyles;
|
|
6505
|
+
return hiddenStyles && styled.css(["display:none;"]);
|
|
6506
|
+
}, function (_ref21) {
|
|
6507
|
+
var extraStyles = _ref21.extraStyles;
|
|
6499
6508
|
return styled.css(["", ""], extraStyles);
|
|
6500
6509
|
});
|
|
6501
6510
|
/* eslint-enable no-unused-vars */
|
|
6502
6511
|
|
|
6503
|
-
var _excluded$3 = ["autocompleteValue", "padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "children"];
|
|
6512
|
+
var _excluded$3 = ["autocompleteValue", "padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "disabled", "children"];
|
|
6504
6513
|
|
|
6505
6514
|
/*
|
|
6506
6515
|
Box component to create generic boxes
|
|
@@ -6548,6 +6557,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
6548
6557
|
_ref$srOnly = _ref.srOnly,
|
|
6549
6558
|
srOnly = _ref$srOnly === void 0 ? false : _ref$srOnly,
|
|
6550
6559
|
dataQa = _ref.dataQa,
|
|
6560
|
+
_ref$disabled = _ref.disabled,
|
|
6551
6561
|
children = _ref.children,
|
|
6552
6562
|
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
6553
6563
|
return /*#__PURE__*/React__default.createElement(BoxWrapper, _extends({
|
|
@@ -10523,7 +10533,7 @@ var isRefObject = function (ref) {
|
|
|
10523
10533
|
return typeof ref === "object" && ref.hasOwnProperty("current");
|
|
10524
10534
|
};
|
|
10525
10535
|
|
|
10526
|
-
var noop$
|
|
10536
|
+
var noop$2 = function (v) { return v; };
|
|
10527
10537
|
var ComponentDragControls = /** @class */ (function () {
|
|
10528
10538
|
function ComponentDragControls(_a) {
|
|
10529
10539
|
var ref = _a.ref, values = _a.values, controls = _a.controls;
|
|
@@ -10551,7 +10561,7 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10551
10561
|
* @internal
|
|
10552
10562
|
*/
|
|
10553
10563
|
this.props = {
|
|
10554
|
-
transformPagePoint: noop$
|
|
10564
|
+
transformPagePoint: noop$2,
|
|
10555
10565
|
};
|
|
10556
10566
|
/**
|
|
10557
10567
|
* References to the MotionValues used for tracking the current dragged point.
|
|
@@ -12552,6 +12562,86 @@ var Reel = function Reel(_ref) {
|
|
|
12552
12562
|
}), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
12553
12563
|
};
|
|
12554
12564
|
|
|
12565
|
+
var ACH_METHOD = "BANK_ACCOUNT";
|
|
12566
|
+
var CC_METHOD = "CREDIT_CARD";
|
|
12567
|
+
var CASH_METHOD = "CASH";
|
|
12568
|
+
|
|
12569
|
+
var general$1 = /*#__PURE__*/Object.freeze({
|
|
12570
|
+
__proto__: null,
|
|
12571
|
+
ACH_METHOD: ACH_METHOD,
|
|
12572
|
+
CC_METHOD: CC_METHOD,
|
|
12573
|
+
CASH_METHOD: CASH_METHOD
|
|
12574
|
+
});
|
|
12575
|
+
|
|
12576
|
+
var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
|
|
12577
|
+
|
|
12578
|
+
var regex_constants = /*#__PURE__*/Object.freeze({
|
|
12579
|
+
__proto__: null,
|
|
12580
|
+
URL_TEST: URL_TEST
|
|
12581
|
+
});
|
|
12582
|
+
|
|
12583
|
+
|
|
12584
|
+
|
|
12585
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
12586
|
+
__proto__: null,
|
|
12587
|
+
colors: colors,
|
|
12588
|
+
general: general$1,
|
|
12589
|
+
regexConstants: regex_constants,
|
|
12590
|
+
styleConstants: style_constants,
|
|
12591
|
+
fontWeights: style_constants
|
|
12592
|
+
});
|
|
12593
|
+
|
|
12594
|
+
var WHITE$1 = WHITE,
|
|
12595
|
+
TRANSPARENT$1 = TRANSPARENT,
|
|
12596
|
+
SAPPHIRE_BLUE$1 = SAPPHIRE_BLUE,
|
|
12597
|
+
PEACOCK_BLUE$1 = PEACOCK_BLUE,
|
|
12598
|
+
MANATEE_GREY$1 = MANATEE_GREY,
|
|
12599
|
+
MATISSE_BLUE$1 = MATISSE_BLUE,
|
|
12600
|
+
RASPBERRY$1 = RASPBERRY,
|
|
12601
|
+
ERROR_COLOR$1 = ERROR_COLOR;
|
|
12602
|
+
var LINK_TEXT_DECORATION$1 = LINK_TEXT_DECORATION;
|
|
12603
|
+
var disabledBorderColor = {
|
|
12604
|
+
primary: MANATEE_GREY$1,
|
|
12605
|
+
secondary: MANATEE_GREY$1,
|
|
12606
|
+
back: TRANSPARENT$1,
|
|
12607
|
+
smallPrimary: MANATEE_GREY$1,
|
|
12608
|
+
smallSecondary: MANATEE_GREY$1,
|
|
12609
|
+
smallGhost: TRANSPARENT$1,
|
|
12610
|
+
ghost: TRANSPARENT$1,
|
|
12611
|
+
tertiary: TRANSPARENT$1,
|
|
12612
|
+
danger: MANATEE_GREY$1,
|
|
12613
|
+
dangerSecondary: MANATEE_GREY$1,
|
|
12614
|
+
whiteSecondary: MANATEE_GREY$1,
|
|
12615
|
+
whitePrimary: MANATEE_GREY$1
|
|
12616
|
+
};
|
|
12617
|
+
var disabledColor = {
|
|
12618
|
+
primary: WHITE$1,
|
|
12619
|
+
secondary: MANATEE_GREY$1,
|
|
12620
|
+
back: MANATEE_GREY$1,
|
|
12621
|
+
smallPrimary: WHITE$1,
|
|
12622
|
+
smallSecondary: MANATEE_GREY$1,
|
|
12623
|
+
smallGhost: MANATEE_GREY$1,
|
|
12624
|
+
ghost: MANATEE_GREY$1,
|
|
12625
|
+
tertiary: MANATEE_GREY$1,
|
|
12626
|
+
danger: WHITE$1,
|
|
12627
|
+
dangerSecondary: MANATEE_GREY$1,
|
|
12628
|
+
whiteSecondary: MANATEE_GREY$1,
|
|
12629
|
+
whitePrimary: MANATEE_GREY$1
|
|
12630
|
+
};
|
|
12631
|
+
var disabledBackgroundColor = {
|
|
12632
|
+
primary: MANATEE_GREY$1,
|
|
12633
|
+
secondary: TRANSPARENT$1,
|
|
12634
|
+
back: TRANSPARENT$1,
|
|
12635
|
+
smallPrimary: MANATEE_GREY$1,
|
|
12636
|
+
smallSecondary: TRANSPARENT$1,
|
|
12637
|
+
smallGhost: TRANSPARENT$1,
|
|
12638
|
+
ghost: TRANSPARENT$1,
|
|
12639
|
+
tertiary: TRANSPARENT$1,
|
|
12640
|
+
danger: MANATEE_GREY$1,
|
|
12641
|
+
dangerSecondary: TRANSPARENT$1,
|
|
12642
|
+
whiteSecondary: TRANSPARENT$1,
|
|
12643
|
+
whitePrimary: TRANSPARENT$1
|
|
12644
|
+
};
|
|
12555
12645
|
var padding = {
|
|
12556
12646
|
primary: "0.75rem 1.5rem",
|
|
12557
12647
|
secondary: "0.75rem 1.5rem",
|
|
@@ -12567,18 +12657,18 @@ var padding = {
|
|
|
12567
12657
|
whitePrimary: "1.125rem 0.75rem"
|
|
12568
12658
|
};
|
|
12569
12659
|
var color$1 = {
|
|
12570
|
-
primary: WHITE,
|
|
12571
|
-
secondary: MATISSE_BLUE,
|
|
12572
|
-
back: MATISSE_BLUE,
|
|
12573
|
-
smallPrimary: WHITE,
|
|
12574
|
-
smallSecondary: MATISSE_BLUE,
|
|
12575
|
-
smallGhost: MATISSE_BLUE,
|
|
12576
|
-
ghost: MATISSE_BLUE,
|
|
12577
|
-
tertiary: MATISSE_BLUE,
|
|
12578
|
-
danger: WHITE,
|
|
12579
|
-
dangerSecondary: ERROR_COLOR,
|
|
12580
|
-
whiteSecondary: WHITE,
|
|
12581
|
-
whitePrimary: WHITE
|
|
12660
|
+
primary: WHITE$1,
|
|
12661
|
+
secondary: MATISSE_BLUE$1,
|
|
12662
|
+
back: MATISSE_BLUE$1,
|
|
12663
|
+
smallPrimary: WHITE$1,
|
|
12664
|
+
smallSecondary: MATISSE_BLUE$1,
|
|
12665
|
+
smallGhost: MATISSE_BLUE$1,
|
|
12666
|
+
ghost: MATISSE_BLUE$1,
|
|
12667
|
+
tertiary: MATISSE_BLUE$1,
|
|
12668
|
+
danger: WHITE$1,
|
|
12669
|
+
dangerSecondary: ERROR_COLOR$1,
|
|
12670
|
+
whiteSecondary: WHITE$1,
|
|
12671
|
+
whitePrimary: WHITE$1
|
|
12582
12672
|
};
|
|
12583
12673
|
var fontSizeVariant = {
|
|
12584
12674
|
primary: "pS",
|
|
@@ -12636,117 +12726,131 @@ var minWidth = {
|
|
|
12636
12726
|
whiteSecondary: "160px",
|
|
12637
12727
|
whitePrimary: "130px"
|
|
12638
12728
|
};
|
|
12729
|
+
var textDecoration = {
|
|
12730
|
+
primary: "none",
|
|
12731
|
+
secondary: "none",
|
|
12732
|
+
back: "none",
|
|
12733
|
+
smallPrimary: "none",
|
|
12734
|
+
smallSecondary: "none",
|
|
12735
|
+
smallGhost: LINK_TEXT_DECORATION$1,
|
|
12736
|
+
ghost: LINK_TEXT_DECORATION$1,
|
|
12737
|
+
tertiary: "none",
|
|
12738
|
+
danger: "none",
|
|
12739
|
+
dangerSecondary: "none",
|
|
12740
|
+
whiteSecondary: "none",
|
|
12741
|
+
whitePrimary: "none"
|
|
12742
|
+
};
|
|
12639
12743
|
var backgroundColor = {
|
|
12640
|
-
primary: MATISSE_BLUE,
|
|
12641
|
-
secondary: TRANSPARENT,
|
|
12642
|
-
back: TRANSPARENT,
|
|
12643
|
-
smallPrimary: MATISSE_BLUE,
|
|
12644
|
-
smallSecondary: TRANSPARENT,
|
|
12645
|
-
smallGhost: TRANSPARENT,
|
|
12646
|
-
ghost: TRANSPARENT,
|
|
12647
|
-
tertiary: TRANSPARENT,
|
|
12648
|
-
danger: RASPBERRY,
|
|
12649
|
-
dangerSecondary: TRANSPARENT,
|
|
12650
|
-
whiteSecondary: TRANSPARENT,
|
|
12651
|
-
whitePrimary: TRANSPARENT
|
|
12744
|
+
primary: MATISSE_BLUE$1,
|
|
12745
|
+
secondary: TRANSPARENT$1,
|
|
12746
|
+
back: TRANSPARENT$1,
|
|
12747
|
+
smallPrimary: MATISSE_BLUE$1,
|
|
12748
|
+
smallSecondary: TRANSPARENT$1,
|
|
12749
|
+
smallGhost: TRANSPARENT$1,
|
|
12750
|
+
ghost: TRANSPARENT$1,
|
|
12751
|
+
tertiary: TRANSPARENT$1,
|
|
12752
|
+
danger: RASPBERRY$1,
|
|
12753
|
+
dangerSecondary: TRANSPARENT$1,
|
|
12754
|
+
whiteSecondary: TRANSPARENT$1,
|
|
12755
|
+
whitePrimary: TRANSPARENT$1
|
|
12652
12756
|
};
|
|
12653
12757
|
var border = {
|
|
12654
|
-
primary: "2px solid " + MATISSE_BLUE,
|
|
12655
|
-
secondary: "2px solid " + MATISSE_BLUE,
|
|
12656
|
-
back: "2px solid " + MATISSE_BLUE,
|
|
12657
|
-
smallPrimary: "2px solid " + MATISSE_BLUE,
|
|
12658
|
-
smallSecondary: "2px solid " + MATISSE_BLUE,
|
|
12758
|
+
primary: "2px solid " + MATISSE_BLUE$1,
|
|
12759
|
+
secondary: "2px solid " + MATISSE_BLUE$1,
|
|
12760
|
+
back: "2px solid " + MATISSE_BLUE$1,
|
|
12761
|
+
smallPrimary: "2px solid " + MATISSE_BLUE$1,
|
|
12762
|
+
smallSecondary: "2px solid " + MATISSE_BLUE$1,
|
|
12659
12763
|
smallGhost: "none",
|
|
12660
12764
|
ghost: "none",
|
|
12661
12765
|
tertiary: "none",
|
|
12662
|
-
danger: "2px solid " + RASPBERRY,
|
|
12663
|
-
dangerSecondary: "2px solid " + ERROR_COLOR,
|
|
12664
|
-
whiteSecondary: "2px solid " + WHITE,
|
|
12665
|
-
whitePrimary: "2px solid " + TRANSPARENT
|
|
12766
|
+
danger: "2px solid " + RASPBERRY$1,
|
|
12767
|
+
dangerSecondary: "2px solid " + ERROR_COLOR$1,
|
|
12768
|
+
whiteSecondary: "2px solid " + WHITE$1,
|
|
12769
|
+
whitePrimary: "2px solid " + TRANSPARENT$1
|
|
12666
12770
|
};
|
|
12667
12771
|
var hoverBackgroundColor = {
|
|
12668
|
-
primary: SAPPHIRE_BLUE,
|
|
12772
|
+
primary: SAPPHIRE_BLUE$1,
|
|
12669
12773
|
secondary: "#DBEAF0",
|
|
12670
|
-
back: TRANSPARENT,
|
|
12671
|
-
smallPrimary: SAPPHIRE_BLUE,
|
|
12774
|
+
back: TRANSPARENT$1,
|
|
12775
|
+
smallPrimary: SAPPHIRE_BLUE$1,
|
|
12672
12776
|
smallSecondary: "#DBEAF0",
|
|
12673
|
-
smallGhost: TRANSPARENT,
|
|
12674
|
-
ghost: TRANSPARENT,
|
|
12675
|
-
tertiary: TRANSPARENT,
|
|
12777
|
+
smallGhost: TRANSPARENT$1,
|
|
12778
|
+
ghost: TRANSPARENT$1,
|
|
12779
|
+
tertiary: TRANSPARENT$1,
|
|
12676
12780
|
danger: "#BA002C",
|
|
12677
12781
|
dangerSecondary: "#FAE7EE",
|
|
12678
|
-
whiteSecondary: TRANSPARENT,
|
|
12679
|
-
whitePrimary: TRANSPARENT
|
|
12782
|
+
whiteSecondary: TRANSPARENT$1,
|
|
12783
|
+
whitePrimary: TRANSPARENT$1
|
|
12680
12784
|
};
|
|
12681
12785
|
var hoverBorderColor = {
|
|
12682
|
-
primary: SAPPHIRE_BLUE,
|
|
12683
|
-
secondary: MATISSE_BLUE,
|
|
12786
|
+
primary: SAPPHIRE_BLUE$1,
|
|
12787
|
+
secondary: MATISSE_BLUE$1,
|
|
12684
12788
|
back: "#DCEAF1",
|
|
12685
|
-
smallPrimary: SAPPHIRE_BLUE,
|
|
12686
|
-
smallSecondary: MATISSE_BLUE,
|
|
12687
|
-
smallGhost: TRANSPARENT,
|
|
12688
|
-
ghost: TRANSPARENT,
|
|
12689
|
-
tertiary: TRANSPARENT,
|
|
12789
|
+
smallPrimary: SAPPHIRE_BLUE$1,
|
|
12790
|
+
smallSecondary: MATISSE_BLUE$1,
|
|
12791
|
+
smallGhost: TRANSPARENT$1,
|
|
12792
|
+
ghost: TRANSPARENT$1,
|
|
12793
|
+
tertiary: TRANSPARENT$1,
|
|
12690
12794
|
danger: "#BA002C",
|
|
12691
12795
|
dangerSecondary: "#B10541",
|
|
12692
|
-
whiteSecondary: "2px solid " + TRANSPARENT,
|
|
12693
|
-
whitePrimary: "2px solid " + TRANSPARENT
|
|
12796
|
+
whiteSecondary: "2px solid " + TRANSPARENT$1,
|
|
12797
|
+
whitePrimary: "2px solid " + TRANSPARENT$1
|
|
12694
12798
|
};
|
|
12695
12799
|
var hoverColor = {
|
|
12696
|
-
primary: WHITE,
|
|
12697
|
-
secondary: SAPPHIRE_BLUE,
|
|
12698
|
-
back: SAPPHIRE_BLUE,
|
|
12699
|
-
smallPrimary: WHITE,
|
|
12700
|
-
smallSecondary: SAPPHIRE_BLUE,
|
|
12701
|
-
smallGhost: SAPPHIRE_BLUE,
|
|
12702
|
-
ghost: SAPPHIRE_BLUE,
|
|
12703
|
-
tertiary: SAPPHIRE_BLUE,
|
|
12704
|
-
danger: WHITE,
|
|
12800
|
+
primary: WHITE$1,
|
|
12801
|
+
secondary: SAPPHIRE_BLUE$1,
|
|
12802
|
+
back: SAPPHIRE_BLUE$1,
|
|
12803
|
+
smallPrimary: WHITE$1,
|
|
12804
|
+
smallSecondary: SAPPHIRE_BLUE$1,
|
|
12805
|
+
smallGhost: SAPPHIRE_BLUE$1,
|
|
12806
|
+
ghost: SAPPHIRE_BLUE$1,
|
|
12807
|
+
tertiary: SAPPHIRE_BLUE$1,
|
|
12808
|
+
danger: WHITE$1,
|
|
12705
12809
|
dangerSecondary: "#B10541",
|
|
12706
|
-
whiteSecondary: WHITE,
|
|
12707
|
-
whitePrimary: WHITE
|
|
12810
|
+
whiteSecondary: WHITE$1,
|
|
12811
|
+
whitePrimary: WHITE$1
|
|
12708
12812
|
};
|
|
12709
12813
|
var activeBackgroundColor = {
|
|
12710
|
-
primary: PEACOCK_BLUE,
|
|
12814
|
+
primary: PEACOCK_BLUE$1,
|
|
12711
12815
|
secondary: "#B8D5E1",
|
|
12712
|
-
back: TRANSPARENT,
|
|
12713
|
-
smallPrimary: PEACOCK_BLUE,
|
|
12816
|
+
back: TRANSPARENT$1,
|
|
12817
|
+
smallPrimary: PEACOCK_BLUE$1,
|
|
12714
12818
|
smallSecondary: "#B8D5E1",
|
|
12715
|
-
smallGhost: TRANSPARENT,
|
|
12716
|
-
ghost: TRANSPARENT,
|
|
12717
|
-
tertiary: TRANSPARENT,
|
|
12819
|
+
smallGhost: TRANSPARENT$1,
|
|
12820
|
+
ghost: TRANSPARENT$1,
|
|
12821
|
+
tertiary: TRANSPARENT$1,
|
|
12718
12822
|
danger: "#870000",
|
|
12719
12823
|
dangerSecondary: "#FAE7EE",
|
|
12720
|
-
whiteSecondary: TRANSPARENT,
|
|
12721
|
-
whitePrimary: TRANSPARENT
|
|
12824
|
+
whiteSecondary: TRANSPARENT$1,
|
|
12825
|
+
whitePrimary: TRANSPARENT$1
|
|
12722
12826
|
};
|
|
12723
12827
|
var activeBorderColor = {
|
|
12724
|
-
primary: PEACOCK_BLUE,
|
|
12725
|
-
secondary: MATISSE_BLUE,
|
|
12726
|
-
back: PEACOCK_BLUE,
|
|
12727
|
-
smallPrimary: PEACOCK_BLUE,
|
|
12728
|
-
smallSecondary: MATISSE_BLUE,
|
|
12729
|
-
smallGhost: TRANSPARENT,
|
|
12730
|
-
ghost: TRANSPARENT,
|
|
12731
|
-
tertiary: TRANSPARENT,
|
|
12828
|
+
primary: PEACOCK_BLUE$1,
|
|
12829
|
+
secondary: MATISSE_BLUE$1,
|
|
12830
|
+
back: PEACOCK_BLUE$1,
|
|
12831
|
+
smallPrimary: PEACOCK_BLUE$1,
|
|
12832
|
+
smallSecondary: MATISSE_BLUE$1,
|
|
12833
|
+
smallGhost: TRANSPARENT$1,
|
|
12834
|
+
ghost: TRANSPARENT$1,
|
|
12835
|
+
tertiary: TRANSPARENT$1,
|
|
12732
12836
|
danger: "#870000",
|
|
12733
12837
|
dangerSecondary: "#910029",
|
|
12734
|
-
whiteSecondary: "2px solid " + TRANSPARENT,
|
|
12735
|
-
whitePrimary: "2px solid " + TRANSPARENT
|
|
12838
|
+
whiteSecondary: "2px solid " + TRANSPARENT$1,
|
|
12839
|
+
whitePrimary: "2px solid " + TRANSPARENT$1
|
|
12736
12840
|
};
|
|
12737
12841
|
var activeColor = {
|
|
12738
|
-
primary: WHITE,
|
|
12739
|
-
secondary: MATISSE_BLUE,
|
|
12740
|
-
back: PEACOCK_BLUE,
|
|
12741
|
-
smallPrimary: WHITE,
|
|
12742
|
-
smallSecondary: PEACOCK_BLUE,
|
|
12743
|
-
smallGhost: PEACOCK_BLUE,
|
|
12744
|
-
ghost: PEACOCK_BLUE,
|
|
12745
|
-
tertiary: PEACOCK_BLUE,
|
|
12746
|
-
danger: WHITE,
|
|
12842
|
+
primary: WHITE$1,
|
|
12843
|
+
secondary: MATISSE_BLUE$1,
|
|
12844
|
+
back: PEACOCK_BLUE$1,
|
|
12845
|
+
smallPrimary: WHITE$1,
|
|
12846
|
+
smallSecondary: PEACOCK_BLUE$1,
|
|
12847
|
+
smallGhost: PEACOCK_BLUE$1,
|
|
12848
|
+
ghost: PEACOCK_BLUE$1,
|
|
12849
|
+
tertiary: PEACOCK_BLUE$1,
|
|
12850
|
+
danger: WHITE$1,
|
|
12747
12851
|
dangerSecondary: "#910029",
|
|
12748
|
-
whiteSecondary: WHITE,
|
|
12749
|
-
whitePrimary: WHITE
|
|
12852
|
+
whiteSecondary: WHITE$1,
|
|
12853
|
+
whitePrimary: WHITE$1
|
|
12750
12854
|
};
|
|
12751
12855
|
var fallbackValues$1 = {
|
|
12752
12856
|
padding: padding,
|
|
@@ -12755,6 +12859,7 @@ var fallbackValues$1 = {
|
|
|
12755
12859
|
fontWeight: fontWeight,
|
|
12756
12860
|
height: height,
|
|
12757
12861
|
minWidth: minWidth,
|
|
12862
|
+
textDecoration: textDecoration,
|
|
12758
12863
|
backgroundColor: backgroundColor,
|
|
12759
12864
|
border: border,
|
|
12760
12865
|
hoverBackgroundColor: hoverBackgroundColor,
|
|
@@ -12762,7 +12867,10 @@ var fallbackValues$1 = {
|
|
|
12762
12867
|
hoverColor: hoverColor,
|
|
12763
12868
|
activeBackgroundColor: activeBackgroundColor,
|
|
12764
12869
|
activeBorderColor: activeBorderColor,
|
|
12765
|
-
activeColor: activeColor
|
|
12870
|
+
activeColor: activeColor,
|
|
12871
|
+
disabledColor: disabledColor,
|
|
12872
|
+
disabledBackgroundColor: disabledBackgroundColor,
|
|
12873
|
+
disabledBorderColor: disabledBorderColor
|
|
12766
12874
|
};
|
|
12767
12875
|
|
|
12768
12876
|
var rotate = posed.div({
|
|
@@ -12829,7 +12937,7 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
|
|
|
12829
12937
|
}))))));
|
|
12830
12938
|
};
|
|
12831
12939
|
|
|
12832
|
-
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "loadingColor", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children", "extraDisabledStyles"];
|
|
12940
|
+
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "disabled", "loadingColor", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children", "extraDisabledStyles"];
|
|
12833
12941
|
var rotate$1 = posed.div({
|
|
12834
12942
|
fixed: {
|
|
12835
12943
|
rotate: "0deg"
|
|
@@ -12878,12 +12986,12 @@ var Spinner = function Spinner(_ref) {
|
|
|
12878
12986
|
|
|
12879
12987
|
Note: the children prop is only used if contentOverride is set to true, in which case
|
|
12880
12988
|
the text prop is ignored.
|
|
12881
|
-
|
|
12989
|
+
|
|
12882
12990
|
*/
|
|
12883
12991
|
|
|
12884
12992
|
var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
12885
12993
|
var _ref2$action = _ref2.action,
|
|
12886
|
-
action = _ref2$action === void 0 ? noop : _ref2$action,
|
|
12994
|
+
action = _ref2$action === void 0 ? noop$1 : _ref2$action,
|
|
12887
12995
|
_ref2$variant = _ref2.variant,
|
|
12888
12996
|
variant = _ref2$variant === void 0 ? "primary" : _ref2$variant,
|
|
12889
12997
|
text = _ref2.text,
|
|
@@ -12891,6 +12999,8 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12891
12999
|
textWrap = _ref2$textWrap === void 0 ? false : _ref2$textWrap,
|
|
12892
13000
|
_ref2$isLoading = _ref2.isLoading,
|
|
12893
13001
|
isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
|
|
13002
|
+
_ref2$disabled = _ref2.disabled,
|
|
13003
|
+
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
12894
13004
|
_ref2$loadingColor = _ref2.loadingColor,
|
|
12895
13005
|
loadingColor = _ref2$loadingColor === void 0 ? "white" : _ref2$loadingColor,
|
|
12896
13006
|
_ref2$dataQa = _ref2.dataQa,
|
|
@@ -12907,9 +13017,9 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12907
13017
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
12908
13018
|
var themeValues = createThemeValues(themeContext, fallbackValues$1, "Button", variant);
|
|
12909
13019
|
var isMobile = themeContext.isMobile;
|
|
12910
|
-
var hoverStyles = "\n
|
|
12911
|
-
var activeStyles = "\n
|
|
12912
|
-
var disabledStyles = "\n
|
|
13020
|
+
var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n cursor: pointer;\n ");
|
|
13021
|
+
var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
|
|
13022
|
+
var disabledStyles = "\n background-color: ".concat(themeValues.disabledBackgroundColor, ";\n border-color: ").concat(themeValues.disabledBorderColor, ";\n color: ").concat(themeValues.disabledColor, ";\n cursor: default;\n &:focus {\n outline: 3px solid ").concat(themeValues.disabledBorderColor, ";\n outline-offset: 2px;\n }\n ").concat(extraDisabledStyles, "\n ");
|
|
12913
13023
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
12914
13024
|
ref: ref,
|
|
12915
13025
|
variant: variant,
|
|
@@ -12918,11 +13028,12 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12918
13028
|
minWidth: themeValues.minWidth,
|
|
12919
13029
|
background: themeValues.backgroundColor,
|
|
12920
13030
|
border: themeValues.border,
|
|
12921
|
-
hoverStyles: hoverStyles,
|
|
12922
|
-
activeStyles: activeStyles,
|
|
13031
|
+
hoverStyles: disabled ? disabledStyles : hoverStyles,
|
|
13032
|
+
activeStyles: disabled ? disabledStyles : activeStyles,
|
|
12923
13033
|
disabledStyles: disabledStyles,
|
|
13034
|
+
"aria-disabled": disabled,
|
|
12924
13035
|
as: "button",
|
|
12925
|
-
onClick: isLoading ?
|
|
13036
|
+
onClick: isLoading || disabled ? noop$1 : action,
|
|
12926
13037
|
borderRadius: "2px",
|
|
12927
13038
|
theme: themeContext,
|
|
12928
13039
|
extraStyles: "margin: 0.5rem; ".concat(extraStyles),
|
|
@@ -12937,7 +13048,8 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12937
13048
|
}) : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
12938
13049
|
weight: themeValues.fontWeight,
|
|
12939
13050
|
variant: themeValues.fontSizeVariant,
|
|
12940
|
-
color: themeValues.color,
|
|
13051
|
+
color: disabled ? themeValues.disabledColor : themeValues.color,
|
|
13052
|
+
textDecoration: themeValues.textDecoration,
|
|
12941
13053
|
textWrap: textWrap,
|
|
12942
13054
|
extraStyles: textExtraStyles
|
|
12943
13055
|
}, text)));
|
|
@@ -13007,7 +13119,9 @@ var AccountsIcon$1 = themeComponent(AccountsIcon, "Icons", fallbackValues$2, "in
|
|
|
13007
13119
|
// Fill color based on default "success" variant color
|
|
13008
13120
|
var AutopayIcon = function AutopayIcon(_ref) {
|
|
13009
13121
|
var _ref$fill = _ref.fill,
|
|
13010
|
-
fill = _ref$fill === void 0 ? "#317D4F" : _ref$fill
|
|
13122
|
+
fill = _ref$fill === void 0 ? "#317D4F" : _ref$fill,
|
|
13123
|
+
_ref$color = _ref.color,
|
|
13124
|
+
color = _ref$color === void 0 ? "#317D4F" : _ref$color;
|
|
13011
13125
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13012
13126
|
width: "16",
|
|
13013
13127
|
height: "16",
|
|
@@ -13031,7 +13145,7 @@ var AutopayIcon = function AutopayIcon(_ref) {
|
|
|
13031
13145
|
mask: "url(#mask0_5560_39870)"
|
|
13032
13146
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
13033
13147
|
d: "M0 0H16V16H0V0Z",
|
|
13034
|
-
fill: fill
|
|
13148
|
+
fill: fill || color
|
|
13035
13149
|
})));
|
|
13036
13150
|
};
|
|
13037
13151
|
|
|
@@ -18221,24 +18335,105 @@ var KebabMenuIcon = function KebabMenuIcon() {
|
|
|
18221
18335
|
}));
|
|
18222
18336
|
};
|
|
18223
18337
|
|
|
18338
|
+
var _excluded$i = ["iconFill", "iconWidth", "iconHeight"];
|
|
18224
18339
|
var MultiCartIcon = function MultiCartIcon(_ref) {
|
|
18225
18340
|
var _ref$iconFill = _ref.iconFill,
|
|
18226
18341
|
iconFill = _ref$iconFill === void 0 ? "#3B5BDB" : _ref$iconFill,
|
|
18227
|
-
_ref$
|
|
18228
|
-
|
|
18229
|
-
|
|
18230
|
-
|
|
18231
|
-
|
|
18342
|
+
_ref$iconWidth = _ref.iconWidth,
|
|
18343
|
+
iconWidth = _ref$iconWidth === void 0 ? "20" : _ref$iconWidth,
|
|
18344
|
+
_ref$iconHeight = _ref.iconHeight,
|
|
18345
|
+
iconHeight = _ref$iconHeight === void 0 ? "17" : _ref$iconHeight,
|
|
18346
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
18347
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18232
18348
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18233
18349
|
width: iconWidth,
|
|
18234
18350
|
height: iconHeight,
|
|
18235
|
-
viewBox: "0 0
|
|
18351
|
+
viewBox: "0 0 24.81 22.06"
|
|
18352
|
+
}, rest), /*#__PURE__*/React__default.createElement("title", null, "Icon - Cart-Empty"), /*#__PURE__*/React__default.createElement("path", {
|
|
18353
|
+
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",
|
|
18354
|
+
id: "cart-badge-shopping-cart",
|
|
18355
|
+
fill: iconFill,
|
|
18356
|
+
fillRule: "nonzero"
|
|
18357
|
+
}));
|
|
18358
|
+
};
|
|
18359
|
+
|
|
18360
|
+
var _excluded$j = ["iconFill", "iconWidth", "iconHeight"];
|
|
18361
|
+
var CloseIcon = function CloseIcon(_ref) {
|
|
18362
|
+
var _ref$iconFill = _ref.iconFill,
|
|
18363
|
+
iconFill = _ref$iconFill === void 0 ? "#3B414D" : _ref$iconFill,
|
|
18364
|
+
_ref$iconWidth = _ref.iconWidth,
|
|
18365
|
+
iconWidth = _ref$iconWidth === void 0 ? "24" : _ref$iconWidth,
|
|
18366
|
+
_ref$iconHeight = _ref.iconHeight,
|
|
18367
|
+
iconHeight = _ref$iconHeight === void 0 ? "24" : _ref$iconHeight,
|
|
18368
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
18369
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18370
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18371
|
+
width: iconWidth,
|
|
18372
|
+
height: iconHeight,
|
|
18373
|
+
viewBox: "0 0 24 24",
|
|
18236
18374
|
fill: "none"
|
|
18375
|
+
}, rest), /*#__PURE__*/React__default.createElement("title", null, "Close Icon"), /*#__PURE__*/React__default.createElement("path", {
|
|
18376
|
+
fillRule: "evenodd",
|
|
18377
|
+
clipRule: "evenodd",
|
|
18378
|
+
d: "M17.3033 5.98982C17.108 5.79456 16.7915 5.79456 16.5962 5.98982L12 10.586L7.40381 5.98982C7.20854 5.79456 6.89196 5.79456 6.6967 5.98982L5.98959 6.69693C5.79433 6.89219 5.79433 7.20878 5.98959 7.40404L10.5858 12.0002L5.98959 16.5964C5.79433 16.7917 5.79433 17.1083 5.98959 17.3035L6.6967 18.0106C6.89196 18.2059 7.20854 18.2059 7.40381 18.0106L12 13.4144L16.5962 18.0106C16.7915 18.2059 17.108 18.2059 17.3033 18.0106L18.0104 17.3035C18.2057 17.1083 18.2057 16.7917 18.0104 16.5964L13.4142 12.0002L18.0104 7.40404C18.2057 7.20878 18.2057 6.89219 18.0104 6.69693L17.3033 5.98982Z",
|
|
18379
|
+
fill: iconFill
|
|
18380
|
+
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
18381
|
+
id: "mask0_3727_16765",
|
|
18382
|
+
style: {
|
|
18383
|
+
maskType: "luminance"
|
|
18384
|
+
},
|
|
18385
|
+
maskUnits: "userSpaceOnUse",
|
|
18386
|
+
x: "5",
|
|
18387
|
+
y: "5",
|
|
18388
|
+
width: "14",
|
|
18389
|
+
height: "14"
|
|
18237
18390
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18238
|
-
|
|
18391
|
+
fillRule: "evenodd",
|
|
18392
|
+
clipRule: "evenodd",
|
|
18393
|
+
d: "M17.3033 5.98982C17.108 5.79456 16.7915 5.79456 16.5962 5.98982L12 10.586L7.40381 5.98982C7.20854 5.79456 6.89196 5.79456 6.6967 5.98982L5.98959 6.69693C5.79433 6.89219 5.79433 7.20878 5.98959 7.40404L10.5858 12.0002L5.98959 16.5964C5.79433 16.7917 5.79433 17.1083 5.98959 17.3035L6.6967 18.0106C6.89196 18.2059 7.20854 18.2059 7.40381 18.0106L12 13.4144L16.5962 18.0106C16.7915 18.2059 17.108 18.2059 17.3033 18.0106L18.0104 17.3035C18.2057 17.1083 18.2057 16.7917 18.0104 16.5964L13.4142 12.0002L18.0104 7.40404C18.2057 7.20878 18.2057 6.89219 18.0104 6.69693L17.3033 5.98982Z",
|
|
18394
|
+
fill: "none"
|
|
18395
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
18396
|
+
mask: "url(#mask0_3727_16765)"
|
|
18397
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18398
|
+
d: "M0 0H24V24H0V0Z",
|
|
18239
18399
|
fill: iconFill
|
|
18400
|
+
})));
|
|
18401
|
+
};
|
|
18402
|
+
|
|
18403
|
+
var TrashIconV2 = function TrashIconV2(_ref) {
|
|
18404
|
+
var themeValues = _ref.themeValues,
|
|
18405
|
+
iconFill = _ref.iconFill;
|
|
18406
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
18407
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18408
|
+
width: "18",
|
|
18409
|
+
height: "18",
|
|
18410
|
+
viewBox: "0 0 18 18",
|
|
18411
|
+
fill: "none"
|
|
18412
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18413
|
+
fillRule: "evenodd",
|
|
18414
|
+
clipRule: "evenodd",
|
|
18415
|
+
d: "M11.5 4H14V6H4V4H6.5L7.21429 3H10.7857L11.5 4ZM6.99048 15C6.25714 15 5.65714 14.4857 5.65714 13.8571L4.85714 7H12.8571L12.0571 13.8571C12.0571 14.4857 11.4571 15 10.7238 15H6.99048Z",
|
|
18416
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor
|
|
18417
|
+
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
18418
|
+
id: "mask0_4292_11876",
|
|
18419
|
+
style: {
|
|
18420
|
+
maskType: "luminance"
|
|
18421
|
+
},
|
|
18422
|
+
maskUnits: "userSpaceOnUse",
|
|
18423
|
+
x: "4",
|
|
18424
|
+
y: "3",
|
|
18425
|
+
width: "10",
|
|
18426
|
+
height: "12"
|
|
18427
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18428
|
+
fillRule: "evenodd",
|
|
18429
|
+
clipRule: "evenodd",
|
|
18430
|
+
d: "M11.5 4H14V6H4V4H6.5L7.21429 3H10.7857L11.5 4ZM6.99048 15C6.25714 15 5.65714 14.4857 5.65714 13.8571L4.85714 7H12.8571L12.0571 13.8571C12.0571 14.4857 11.4571 15 10.7238 15H6.99048Z",
|
|
18431
|
+
fill: "white"
|
|
18432
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
18433
|
+
mask: "url(#mask0_4292_11876)"
|
|
18240
18434
|
}));
|
|
18241
18435
|
};
|
|
18436
|
+
var TrashIconV2$1 = themeComponent(TrashIconV2, "Icons", fallbackValues$2, "primary");
|
|
18242
18437
|
|
|
18243
18438
|
var color$2 = "#15749D";
|
|
18244
18439
|
var hoverColor$1 = "#116285";
|
|
@@ -18886,7 +19081,7 @@ var mobileFallbackValues = {
|
|
|
18886
19081
|
};
|
|
18887
19082
|
var MOBILE_BREAKPOINT = 768;
|
|
18888
19083
|
|
|
18889
|
-
var _excluded$
|
|
19084
|
+
var _excluded$k = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
18890
19085
|
|
|
18891
19086
|
/*
|
|
18892
19087
|
New responsive text component for Title elements
|
|
@@ -18933,7 +19128,7 @@ var Title = function Title(_ref) {
|
|
|
18933
19128
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
18934
19129
|
dataQa = _ref.dataQa,
|
|
18935
19130
|
children = _ref.children,
|
|
18936
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19131
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
18937
19132
|
return /*#__PURE__*/React__default.createElement(TitleText, _extends({
|
|
18938
19133
|
variant: variant,
|
|
18939
19134
|
as: as,
|
|
@@ -18975,13 +19170,15 @@ var background$1 = {
|
|
|
18975
19170
|
info: "".concat(INFO_BLUE),
|
|
18976
19171
|
warn: "".concat(HALF_COLONIAL_WHITE),
|
|
18977
19172
|
primary: "".concat(CORNFLOWER_BLUE),
|
|
18978
|
-
success: "".concat(HINT_GREEN)
|
|
19173
|
+
success: "".concat(HINT_GREEN),
|
|
19174
|
+
disabled: "".concat(GRECIAN_GREY)
|
|
18979
19175
|
};
|
|
18980
19176
|
var color$4 = {
|
|
18981
19177
|
info: "".concat(MATISSE_BLUE),
|
|
18982
19178
|
warn: "".concat(ZEST_ORANGE),
|
|
18983
19179
|
primary: "".concat(ROYAL_BLUE_VIVID),
|
|
18984
|
-
success: "".concat(SEA_GREEN)
|
|
19180
|
+
success: "".concat(SEA_GREEN),
|
|
19181
|
+
disabled: "".concat(MANATEE_GREY)
|
|
18985
19182
|
};
|
|
18986
19183
|
var fallbackValues$7 = {
|
|
18987
19184
|
background: background$1,
|
|
@@ -19005,10 +19202,12 @@ var Badge = function Badge(_ref) {
|
|
|
19005
19202
|
return /*#__PURE__*/React__default.createElement(StyledBadgeContainer, {
|
|
19006
19203
|
background: themeValues.background
|
|
19007
19204
|
}, iconOnLeft && Icon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
19205
|
+
color: themeValues.color,
|
|
19008
19206
|
fill: themeValues.color
|
|
19009
19207
|
}), /*#__PURE__*/React__default.createElement(StyledBadge, {
|
|
19010
19208
|
color: themeValues.color
|
|
19011
19209
|
}, label), !iconOnLeft && Icon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
19210
|
+
color: themeValues.color,
|
|
19012
19211
|
fill: themeValues.color
|
|
19013
19212
|
}));
|
|
19014
19213
|
};
|
|
@@ -20357,12 +20556,12 @@ var fallbackValues$8 = {
|
|
|
20357
20556
|
linkColor: linkColor
|
|
20358
20557
|
};
|
|
20359
20558
|
|
|
20360
|
-
var _excluded$
|
|
20559
|
+
var _excluded$l = ["variant", "themeValues", "children"];
|
|
20361
20560
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
20362
20561
|
var variant = _ref.variant,
|
|
20363
20562
|
themeValues = _ref.themeValues,
|
|
20364
20563
|
children = _ref.children,
|
|
20365
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20564
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
20366
20565
|
var shadowRegistry = {
|
|
20367
20566
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
20368
20567
|
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), ";"),
|
|
@@ -20380,20 +20579,23 @@ var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
|
20380
20579
|
var BoxWithShadow$1 = themeComponent(BoxWithShadow, "BoxWithShadow", fallbackValues$8);
|
|
20381
20580
|
|
|
20382
20581
|
// import theme from "styled-theming";
|
|
20582
|
+
var MATISSE_BLUE$2 = MATISSE_BLUE,
|
|
20583
|
+
STORM_GREY$1 = STORM_GREY;
|
|
20584
|
+
var LINK_TEXT_DECORATION$2 = LINK_TEXT_DECORATION;
|
|
20383
20585
|
|
|
20384
20586
|
/*
|
|
20385
20587
|
For now I'm using string values, eventually shared components library will have its own constants file
|
|
20386
20588
|
for colors/values that should be used here instead
|
|
20387
20589
|
*/
|
|
20388
20590
|
|
|
20389
|
-
var color$5 = "".concat(MATISSE_BLUE);
|
|
20390
|
-
var activeColor$2 = "".concat(STORM_GREY);
|
|
20391
|
-
var activeBreadcrumbColor = "".concat(STORM_GREY);
|
|
20591
|
+
var color$5 = "".concat(MATISSE_BLUE$2);
|
|
20592
|
+
var activeColor$2 = "".concat(STORM_GREY$1);
|
|
20593
|
+
var activeBreadcrumbColor = "".concat(STORM_GREY$1);
|
|
20392
20594
|
var fontSize$2 = "0.875rem";
|
|
20393
20595
|
var lineHeight = "1.25rem";
|
|
20394
20596
|
var fontWeight$1 = "400";
|
|
20395
20597
|
var margin = "0.5rem";
|
|
20396
|
-
var hover = "text-decoration:
|
|
20598
|
+
var hover = "text-decoration: ".concat(LINK_TEXT_DECORATION$2, ";");
|
|
20397
20599
|
var fallbackValues$9 = {
|
|
20398
20600
|
color: color$5,
|
|
20399
20601
|
activeColor: activeColor$2,
|
|
@@ -20419,7 +20621,10 @@ var fallbackValues$a = {
|
|
|
20419
20621
|
externalLinkColor: externalLinkColor
|
|
20420
20622
|
};
|
|
20421
20623
|
|
|
20422
|
-
var _excluded$
|
|
20624
|
+
var _excluded$m = ["hoverColor", "activeColor", "extrastyles"];
|
|
20625
|
+
var ROYAL_BLUE$1 = ROYAL_BLUE;
|
|
20626
|
+
var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
|
|
20627
|
+
|
|
20423
20628
|
/*
|
|
20424
20629
|
The extracting of props and the disabling of the eslint rule is to stop React from complaining about
|
|
20425
20630
|
unrecognized DOM attributes.
|
|
@@ -20430,14 +20635,14 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
20430
20635
|
var hoverColor = _ref.hoverColor,
|
|
20431
20636
|
activeColor = _ref.activeColor,
|
|
20432
20637
|
extrastyles = _ref.extrastyles,
|
|
20433
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20638
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
20434
20639
|
return /*#__PURE__*/React__default.createElement("a", _extends({}, props, {
|
|
20435
20640
|
ref: ref
|
|
20436
20641
|
}));
|
|
20437
20642
|
})).withConfig({
|
|
20438
20643
|
displayName: "ExternalLinkstyled__StyledExternalLink",
|
|
20439
20644
|
componentId: "sc-m1q2m2-0"
|
|
20440
|
-
})(["display:flex;font-size:", ";color:", ";font-weight:", ";font-family:", ";line-height:", ";&:hover{color:", ";
|
|
20645
|
+
})(["display:flex;font-size:", ";color:", ";font-weight:", ";font-family:", ";line-height:", ";text-decoration:", ";&:hover{color:", ";}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{color:", ";}", ""], function (_ref2) {
|
|
20441
20646
|
var size = _ref2.size;
|
|
20442
20647
|
return size;
|
|
20443
20648
|
}, function (_ref3) {
|
|
@@ -20452,10 +20657,10 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
20452
20657
|
}, function (_ref6) {
|
|
20453
20658
|
var lineheight = _ref6.lineheight;
|
|
20454
20659
|
return lineheight;
|
|
20455
|
-
}, function (_ref7) {
|
|
20660
|
+
}, LINK_TEXT_DECORATION$3, function (_ref7) {
|
|
20456
20661
|
var hoverColor = _ref7.hoverColor;
|
|
20457
20662
|
return hoverColor;
|
|
20458
|
-
}, ROYAL_BLUE, function (_ref8) {
|
|
20663
|
+
}, ROYAL_BLUE$1, function (_ref8) {
|
|
20459
20664
|
var activeColor = _ref8.activeColor;
|
|
20460
20665
|
return activeColor;
|
|
20461
20666
|
}, function (_ref9) {
|
|
@@ -20505,7 +20710,10 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
20505
20710
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
20506
20711
|
});
|
|
20507
20712
|
|
|
20508
|
-
var _excluded$
|
|
20713
|
+
var _excluded$n = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
20714
|
+
var ROYAL_BLUE$2 = ROYAL_BLUE;
|
|
20715
|
+
var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
|
|
20716
|
+
|
|
20509
20717
|
/*
|
|
20510
20718
|
The extracting of props and the disabling of the eslint rule is to stop React from complaining about
|
|
20511
20719
|
unrecognized DOM attributes.
|
|
@@ -20518,14 +20726,14 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
20518
20726
|
active = _ref.active,
|
|
20519
20727
|
color = _ref.color,
|
|
20520
20728
|
extrastyles = _ref.extrastyles,
|
|
20521
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20729
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
20522
20730
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
|
|
20523
20731
|
ref: ref
|
|
20524
20732
|
}));
|
|
20525
20733
|
})).withConfig({
|
|
20526
20734
|
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
20527
20735
|
componentId: "sc-cuqxud-0"
|
|
20528
|
-
})(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";&:hover{color:", ";
|
|
20736
|
+
})(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";text-decoration:", ";&:hover{color:", ";}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{color:", ";}", ""], function (_ref2) {
|
|
20529
20737
|
var color = _ref2.color,
|
|
20530
20738
|
active = _ref2.active,
|
|
20531
20739
|
activeColor = _ref2.activeColor;
|
|
@@ -20545,10 +20753,10 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
20545
20753
|
}, function (_ref7) {
|
|
20546
20754
|
var margin = _ref7.margin;
|
|
20547
20755
|
return margin;
|
|
20548
|
-
}, function (_ref8) {
|
|
20756
|
+
}, LINK_TEXT_DECORATION$4, function (_ref8) {
|
|
20549
20757
|
var hoverColor = _ref8.hoverColor;
|
|
20550
20758
|
return hoverColor;
|
|
20551
|
-
}, ROYAL_BLUE, function (_ref9) {
|
|
20759
|
+
}, ROYAL_BLUE$2, function (_ref9) {
|
|
20552
20760
|
var activeColor = _ref9.activeColor;
|
|
20553
20761
|
return activeColor;
|
|
20554
20762
|
}, function (_ref10) {
|
|
@@ -20621,7 +20829,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
20621
20829
|
lineheight: themeValues.lineHeight,
|
|
20622
20830
|
fontWeight: themeValues.fontWeight,
|
|
20623
20831
|
margin: themeValues.margin,
|
|
20624
|
-
extraStyles: "\n text-transform: uppercase;\n ".concat(isActive.toString() === "true" && "
|
|
20832
|
+
extraStyles: "\n text-transform: uppercase;\n text-decoration: none;\n ".concat(isActive.toString() === "true" && "color: ".concat(themeValues.activeBreadcrumbColor, ";\n pointer-events: none;\n "), "\n &:first-child {\n margin-left: 0;\n }\n &:active {\n color: ").concat(themeValues.activeColor, ";\n }")
|
|
20625
20833
|
}, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React__default.createElement(IconChevron, null) : /*#__PURE__*/React__default.createElement(React.Fragment, null));
|
|
20626
20834
|
})));
|
|
20627
20835
|
};
|
|
@@ -22201,9 +22409,7 @@ _curry2(function test(pattern, str) {
|
|
|
22201
22409
|
return _cloneRegExp(pattern).test(str);
|
|
22202
22410
|
});
|
|
22203
22411
|
|
|
22204
|
-
var
|
|
22205
|
-
|
|
22206
|
-
var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22412
|
+
var _excluded$o = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22207
22413
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
22208
22414
|
var _ref$url = _ref.url,
|
|
22209
22415
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -22211,12 +22417,14 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22211
22417
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
22212
22418
|
_ref$fileLink = _ref.fileLink,
|
|
22213
22419
|
fileLink = _ref$fileLink === void 0 ? false : _ref$fileLink,
|
|
22214
|
-
extraStyles = _ref.extraStyles,
|
|
22215
|
-
|
|
22420
|
+
_ref$extraStyles = _ref.extraStyles,
|
|
22421
|
+
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
22422
|
+
_ref$linkExtraStyles = _ref.linkExtraStyles,
|
|
22423
|
+
linkExtraStyles = _ref$linkExtraStyles === void 0 ? "" : _ref$linkExtraStyles,
|
|
22216
22424
|
_ref$newTab = _ref.newTab,
|
|
22217
22425
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
22218
22426
|
dataQa = _ref.dataQa,
|
|
22219
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22427
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
22220
22428
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
22221
22429
|
var children = _ref2.children,
|
|
22222
22430
|
url = _ref2.url,
|
|
@@ -22247,6 +22455,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22247
22455
|
extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
|
|
22248
22456
|
dataQa: dataQa
|
|
22249
22457
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, _extends({}, otherProps, {
|
|
22458
|
+
disabled: disabled,
|
|
22250
22459
|
extraStyles: extraStyles
|
|
22251
22460
|
})));
|
|
22252
22461
|
};
|
|
@@ -22303,7 +22512,7 @@ var ParagraphText = styled__default.p.withConfig({
|
|
|
22303
22512
|
return extraStyles;
|
|
22304
22513
|
});
|
|
22305
22514
|
|
|
22306
|
-
var _excluded$
|
|
22515
|
+
var _excluded$p = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
22307
22516
|
var Paragraph = function Paragraph(_ref) {
|
|
22308
22517
|
var themeValues = _ref.themeValues,
|
|
22309
22518
|
_ref$weight = _ref.weight,
|
|
@@ -22317,7 +22526,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
22317
22526
|
dataQa = _ref.dataQa,
|
|
22318
22527
|
children = _ref.children,
|
|
22319
22528
|
as = _ref.as,
|
|
22320
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22529
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
22321
22530
|
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
22322
22531
|
weight: weight,
|
|
22323
22532
|
color: color,
|
|
@@ -22606,7 +22815,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22606
22815
|
name = _ref4.name,
|
|
22607
22816
|
checked = _ref4.checked,
|
|
22608
22817
|
_ref4$onChange = _ref4.onChange,
|
|
22609
|
-
onChange = _ref4$onChange === void 0 ? noop : _ref4$onChange,
|
|
22818
|
+
onChange = _ref4$onChange === void 0 ? noop$1 : _ref4$onChange,
|
|
22610
22819
|
_ref4$disabled = _ref4.disabled,
|
|
22611
22820
|
disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
|
|
22612
22821
|
themeValues = _ref4.themeValues,
|
|
@@ -22801,7 +23010,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
22801
23010
|
padding: "0.875rem",
|
|
22802
23011
|
borderRadius: "4px",
|
|
22803
23012
|
minWidth: "30%",
|
|
22804
|
-
onClick: disabled ? noop : onSelect,
|
|
23013
|
+
onClick: disabled ? noop$1 : onSelect,
|
|
22805
23014
|
borderColor: borderColor,
|
|
22806
23015
|
borderSize: "1px",
|
|
22807
23016
|
color: color,
|
|
@@ -22816,8 +23025,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
22816
23025
|
name: name,
|
|
22817
23026
|
"aria-label": name,
|
|
22818
23027
|
htmlFor: "checkbox-".concat(name, "-").concat(index),
|
|
22819
|
-
onClick: disabled ? noop : onSelect,
|
|
22820
|
-
onKeyDown: disabled ? noop : onSelect,
|
|
23028
|
+
onClick: disabled ? noop$1 : onSelect,
|
|
23029
|
+
onKeyDown: disabled ? noop$1 : onSelect,
|
|
22821
23030
|
tabIndex: 0
|
|
22822
23031
|
}, /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
22823
23032
|
theme: {
|
|
@@ -24300,7 +24509,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24300
24509
|
_ref13$disabledValues = _ref13.disabledValues,
|
|
24301
24510
|
disabledValues = _ref13$disabledValues === void 0 ? [] : _ref13$disabledValues,
|
|
24302
24511
|
_ref13$onClick = _ref13.onClick,
|
|
24303
|
-
_onClick = _ref13$onClick === void 0 ? noop : _ref13$onClick,
|
|
24512
|
+
_onClick = _ref13$onClick === void 0 ? noop$1 : _ref13$onClick,
|
|
24304
24513
|
themeValues = _ref13.themeValues,
|
|
24305
24514
|
maxHeight = _ref13.maxHeight,
|
|
24306
24515
|
_ref13$widthFitOption = _ref13.widthFitOptions,
|
|
@@ -25626,7 +25835,7 @@ var mobileFallbackValues$1 = {
|
|
|
25626
25835
|
};
|
|
25627
25836
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25628
25837
|
|
|
25629
|
-
var _excluded$
|
|
25838
|
+
var _excluded$q = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25630
25839
|
|
|
25631
25840
|
/*
|
|
25632
25841
|
New responsive text component for Detail elements
|
|
@@ -25676,7 +25885,7 @@ var Detail = function Detail(_ref) {
|
|
|
25676
25885
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25677
25886
|
dataQa = _ref.dataQa,
|
|
25678
25887
|
children = _ref.children,
|
|
25679
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25888
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
25680
25889
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
25681
25890
|
variant: variant,
|
|
25682
25891
|
as: as,
|
|
@@ -25815,7 +26024,7 @@ var useToastNotification = function useToastNotification() {
|
|
|
25815
26024
|
|
|
25816
26025
|
|
|
25817
26026
|
|
|
25818
|
-
var index$
|
|
26027
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
25819
26028
|
__proto__: null,
|
|
25820
26029
|
useOutsideClick: useOutsideClickHook,
|
|
25821
26030
|
useScrollTo: useScrollTo,
|
|
@@ -25916,7 +26125,7 @@ var Popover = function Popover(_ref) {
|
|
|
25916
26125
|
extraStyles: "position: relative; ".concat(extraStyles)
|
|
25917
26126
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
25918
26127
|
action: function action() {
|
|
25919
|
-
return noop;
|
|
26128
|
+
return noop$1;
|
|
25920
26129
|
},
|
|
25921
26130
|
onFocus: function onFocus() {
|
|
25922
26131
|
handleTogglePopover(true);
|
|
@@ -26386,7 +26595,7 @@ var fallbackValues$k = {
|
|
|
26386
26595
|
formFooterPanel: formFooterPanel
|
|
26387
26596
|
};
|
|
26388
26597
|
|
|
26389
|
-
var _excluded$
|
|
26598
|
+
var _excluded$r = ["showErrors", "themeValues"],
|
|
26390
26599
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
|
|
26391
26600
|
var InputField = styled__default.input.withConfig({
|
|
26392
26601
|
displayName: "FormInput__InputField",
|
|
@@ -26421,7 +26630,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
26421
26630
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
26422
26631
|
var showErrors = _ref8.showErrors,
|
|
26423
26632
|
themeValues = _ref8.themeValues,
|
|
26424
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
26633
|
+
props = _objectWithoutProperties(_ref8, _excluded$r);
|
|
26425
26634
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
26426
26635
|
}).withConfig({
|
|
26427
26636
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -26520,7 +26729,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26520
26729
|
color: themeValues.linkColor,
|
|
26521
26730
|
weight: themeValues.fontWeight,
|
|
26522
26731
|
hoverStyles: themeValues.hoverFocusStyles,
|
|
26523
|
-
extraStyles: "cursor: pointer; &:focus { outline-offset: -2px; }",
|
|
26732
|
+
extraStyles: "text-decoration: underline; cursor: pointer; &:focus { outline-offset: -2px; }",
|
|
26524
26733
|
onClick: function onClick() {
|
|
26525
26734
|
return setShowPassword(!showPassword);
|
|
26526
26735
|
},
|
|
@@ -26593,7 +26802,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26593
26802
|
};
|
|
26594
26803
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26595
26804
|
|
|
26596
|
-
var _excluded$
|
|
26805
|
+
var _excluded$s = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26597
26806
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26598
26807
|
var _ref$breakpoint = _ref.breakpoint,
|
|
26599
26808
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -26602,7 +26811,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26602
26811
|
largeChild = _ref.largeChild,
|
|
26603
26812
|
largeChildSize = _ref.largeChildSize,
|
|
26604
26813
|
children = _ref.children,
|
|
26605
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26814
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26606
26815
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26607
26816
|
padding: "0"
|
|
26608
26817
|
}, rest), /*#__PURE__*/React__default.createElement(Switcher, {
|
|
@@ -26613,24 +26822,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26613
26822
|
}, children));
|
|
26614
26823
|
};
|
|
26615
26824
|
|
|
26616
|
-
var _excluded$
|
|
26825
|
+
var _excluded$t = ["childGap", "bottomItem", "children"];
|
|
26617
26826
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26618
26827
|
var _ref$childGap = _ref.childGap,
|
|
26619
26828
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26620
26829
|
bottomItem = _ref.bottomItem,
|
|
26621
26830
|
children = _ref.children,
|
|
26622
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26831
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26623
26832
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
26624
26833
|
childGap: childGap,
|
|
26625
26834
|
bottomItem: bottomItem
|
|
26626
26835
|
}, rest), children);
|
|
26627
26836
|
};
|
|
26628
26837
|
|
|
26629
|
-
var _excluded$
|
|
26838
|
+
var _excluded$u = ["themeValues", "children"];
|
|
26630
26839
|
var FormContainer = function FormContainer(_ref) {
|
|
26631
26840
|
var themeValues = _ref.themeValues,
|
|
26632
26841
|
children = _ref.children,
|
|
26633
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26842
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26634
26843
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26635
26844
|
isMobile = _useContext.isMobile;
|
|
26636
26845
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
@@ -26882,7 +27091,7 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
26882
27091
|
inactiveColor = _ref4.inactiveColor,
|
|
26883
27092
|
isActive = _ref4.isActive,
|
|
26884
27093
|
_ref4$onClick = _ref4.onClick,
|
|
26885
|
-
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick,
|
|
27094
|
+
onClick = _ref4$onClick === void 0 ? noop$1 : _ref4$onClick,
|
|
26886
27095
|
controls = _ref4.controls;
|
|
26887
27096
|
return /*#__PURE__*/React__default.createElement(Hamburger, {
|
|
26888
27097
|
className: isActive === true ? "active" : "",
|
|
@@ -26940,7 +27149,7 @@ var fallbackValues$o = {
|
|
|
26940
27149
|
fontSize: fontSize$8
|
|
26941
27150
|
};
|
|
26942
27151
|
|
|
26943
|
-
var _excluded$
|
|
27152
|
+
var _excluded$v = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26944
27153
|
var Heading = function Heading(_ref) {
|
|
26945
27154
|
var themeValues = _ref.themeValues,
|
|
26946
27155
|
_ref$weight = _ref.weight,
|
|
@@ -26959,7 +27168,7 @@ var Heading = function Heading(_ref) {
|
|
|
26959
27168
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
26960
27169
|
dataQa = _ref.dataQa,
|
|
26961
27170
|
children = _ref.children,
|
|
26962
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27171
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
26963
27172
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
26964
27173
|
variant: variant,
|
|
26965
27174
|
as: as,
|
|
@@ -27046,9 +27255,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
27046
27255
|
_ref$showCartStatus = _ref.showCartStatus,
|
|
27047
27256
|
showCartStatus = _ref$showCartStatus === void 0 ? false : _ref$showCartStatus,
|
|
27048
27257
|
openCartSlider = _ref.openCartSlider,
|
|
27049
|
-
extraStyles = _ref.extraStyles
|
|
27050
|
-
cartStatusExtraStyles = _ref.cartStatusExtraStyles,
|
|
27051
|
-
cartStatusThemeValues = _ref.cartStatusThemeValues;
|
|
27258
|
+
extraStyles = _ref.extraStyles;
|
|
27052
27259
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
27053
27260
|
isMobile = _useContext.isMobile;
|
|
27054
27261
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -27071,8 +27278,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
27071
27278
|
minHeight: "100%",
|
|
27072
27279
|
justify: isMobile && !showCartStatus ? "center" : showButton || showCartStatus ? "space-between" : "left",
|
|
27073
27280
|
align: "center",
|
|
27074
|
-
nowrap: showCartStatus
|
|
27075
|
-
extraStyles: cartStatusExtraStyles
|
|
27281
|
+
nowrap: showCartStatus
|
|
27076
27282
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
27077
27283
|
variant: isMobile ? "small" : "large",
|
|
27078
27284
|
as: "h1",
|
|
@@ -27089,7 +27295,6 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
27089
27295
|
variant: "primary",
|
|
27090
27296
|
extraStyles: "margin: 0 0 65px 0; min-width: 320px;"
|
|
27091
27297
|
}), showCartStatus && /*#__PURE__*/React__default.createElement(CartStatus, {
|
|
27092
|
-
themeValues: cartStatusThemeValues,
|
|
27093
27298
|
total: total,
|
|
27094
27299
|
itemsCount: itemsCount,
|
|
27095
27300
|
openCart: openCartSlider
|
|
@@ -27164,11 +27369,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
27164
27369
|
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
27165
27370
|
};
|
|
27166
27371
|
|
|
27167
|
-
var _excluded$
|
|
27372
|
+
var _excluded$w = ["version"];
|
|
27168
27373
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
27169
27374
|
var _ref$version = _ref.version,
|
|
27170
27375
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
27171
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27376
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
27172
27377
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
27173
27378
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
27174
27379
|
};
|
|
@@ -27305,7 +27510,7 @@ var Loading = function Loading() {
|
|
|
27305
27510
|
})))));
|
|
27306
27511
|
};
|
|
27307
27512
|
|
|
27308
|
-
var _excluded$
|
|
27513
|
+
var _excluded$x = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
27309
27514
|
var NavFooter = function NavFooter(_ref) {
|
|
27310
27515
|
var leftContent = _ref.leftContent,
|
|
27311
27516
|
rightContent = _ref.rightContent,
|
|
@@ -27320,7 +27525,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27320
27525
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
27321
27526
|
isMobile = _ref.isMobile,
|
|
27322
27527
|
footerWidth = _ref.footerWidth,
|
|
27323
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27528
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
27324
27529
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27325
27530
|
padding: footerPadding,
|
|
27326
27531
|
background: backgroundColor,
|
|
@@ -27351,7 +27556,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27351
27556
|
}, rightContent)))))));
|
|
27352
27557
|
};
|
|
27353
27558
|
|
|
27354
|
-
var _excluded$
|
|
27559
|
+
var _excluded$y = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
27355
27560
|
var NavHeader = function NavHeader(_ref) {
|
|
27356
27561
|
var leftContent = _ref.leftContent,
|
|
27357
27562
|
rightContent = _ref.rightContent,
|
|
@@ -27360,7 +27565,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
27360
27565
|
isMobile = _ref.isMobile,
|
|
27361
27566
|
backgroundColor = _ref.backgroundColor,
|
|
27362
27567
|
headerWidth = _ref.headerWidth,
|
|
27363
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27568
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
27364
27569
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27365
27570
|
padding: "0 16px 4px",
|
|
27366
27571
|
background: backgroundColor,
|
|
@@ -27574,7 +27779,10 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
|
|
|
27574
27779
|
dataQa = _ref.dataQa;
|
|
27575
27780
|
return isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
27576
27781
|
to: destination,
|
|
27577
|
-
"data-qa": dataQa
|
|
27782
|
+
"data-qa": dataQa,
|
|
27783
|
+
style: {
|
|
27784
|
+
textDecoration: "none"
|
|
27785
|
+
}
|
|
27578
27786
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
27579
27787
|
padding: "0",
|
|
27580
27788
|
minHeight: "100%",
|
|
@@ -27730,7 +27938,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
|
|
|
27730
27938
|
themeValues = _ref5.themeValues,
|
|
27731
27939
|
index = _ref5.index,
|
|
27732
27940
|
_ref5$handleChange = _ref5.handleChange,
|
|
27733
|
-
handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange,
|
|
27941
|
+
handleChange = _ref5$handleChange === void 0 ? noop$1 : _ref5$handleChange,
|
|
27734
27942
|
field = _ref5.field,
|
|
27735
27943
|
config = _ref5.config;
|
|
27736
27944
|
var getDefaultChecked = function getDefaultChecked(value, idx) {
|
|
@@ -38614,7 +38822,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38614
38822
|
var _ref6$isOn = _ref6.isOn,
|
|
38615
38823
|
isOn = _ref6$isOn === void 0 ? false : _ref6$isOn,
|
|
38616
38824
|
_ref6$onToggle = _ref6.onToggle,
|
|
38617
|
-
onToggle = _ref6$onToggle === void 0 ? noop : _ref6$onToggle,
|
|
38825
|
+
onToggle = _ref6$onToggle === void 0 ? noop$1 : _ref6$onToggle,
|
|
38618
38826
|
_ref6$disabled = _ref6.disabled,
|
|
38619
38827
|
disabled = _ref6$disabled === void 0 ? false : _ref6$disabled,
|
|
38620
38828
|
_ref6$name = _ref6.name,
|
|
@@ -38722,15 +38930,15 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38722
38930
|
}, /*#__PURE__*/React__default.createElement(HiddenToggleSwitchBox, {
|
|
38723
38931
|
"aria-label": name,
|
|
38724
38932
|
checked: isOn,
|
|
38725
|
-
onChange: disabled ? noop : onToggle,
|
|
38933
|
+
onChange: disabled ? noop$1 : onToggle,
|
|
38726
38934
|
disabled: disabled,
|
|
38727
38935
|
id: "#toggle-".concat(name),
|
|
38728
38936
|
isMobile: isMobile
|
|
38729
38937
|
}), /*#__PURE__*/React__default.createElement(VisibleSwitch, {
|
|
38730
38938
|
name: name,
|
|
38731
38939
|
htmlFor: "#toggle-".concat(name),
|
|
38732
|
-
onClick: disabled ? noop : onToggle,
|
|
38733
|
-
onKeyDown: disabled ? noop : handleKeyDown,
|
|
38940
|
+
onClick: disabled ? noop$1 : onToggle,
|
|
38941
|
+
onKeyDown: disabled ? noop$1 : handleKeyDown,
|
|
38734
38942
|
pose: disabled ? "disabled" : isOn ? "on" : "off",
|
|
38735
38943
|
tabIndex: disabled ? -1 : 0,
|
|
38736
38944
|
disabled: disabled,
|
|
@@ -38994,14 +39202,6 @@ var NavTabs = function NavTabs(_ref) {
|
|
|
38994
39202
|
}, tabs)));
|
|
38995
39203
|
};
|
|
38996
39204
|
|
|
38997
|
-
|
|
38998
|
-
|
|
38999
|
-
var index$5 = /*#__PURE__*/Object.freeze({
|
|
39000
|
-
__proto__: null,
|
|
39001
|
-
colors: colors,
|
|
39002
|
-
fontWeights: style_constants
|
|
39003
|
-
});
|
|
39004
|
-
|
|
39005
39205
|
var shineFrames = styled.keyframes(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
|
|
39006
39206
|
var LoadingPill = styled__default.div.withConfig({
|
|
39007
39207
|
displayName: "LoadingPillstyled__LoadingPill",
|
|
@@ -39114,7 +39314,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
39114
39314
|
return extraStyles;
|
|
39115
39315
|
});
|
|
39116
39316
|
|
|
39117
|
-
var _excluded$
|
|
39317
|
+
var _excluded$z = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
39118
39318
|
var TableRow = function TableRow(_ref) {
|
|
39119
39319
|
var children = _ref.children,
|
|
39120
39320
|
extraStyles = _ref.extraStyles,
|
|
@@ -39123,7 +39323,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
39123
39323
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
39124
39324
|
onClick = _ref.onClick,
|
|
39125
39325
|
themeValues = _ref.themeValues,
|
|
39126
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
39326
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
39127
39327
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
39128
39328
|
onClick: onClick,
|
|
39129
39329
|
hoverEffect: hoverEffect,
|
|
@@ -39830,7 +40030,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39830
40030
|
clearOnDismount = _ref.clearOnDismount,
|
|
39831
40031
|
showErrors = _ref.showErrors,
|
|
39832
40032
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
39833
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40033
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
39834
40034
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
39835
40035
|
saveToWallet = _ref.saveToWallet,
|
|
39836
40036
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -40030,7 +40230,7 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
40030
40230
|
fields = _ref.fields,
|
|
40031
40231
|
actions = _ref.actions,
|
|
40032
40232
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40033
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40233
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
40034
40234
|
showErrors = _ref.showErrors,
|
|
40035
40235
|
isMobile = _ref.isMobile,
|
|
40036
40236
|
revenueManagement = _ref.revenueManagement,
|
|
@@ -40241,8 +40441,8 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40241
40441
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40242
40442
|
padding: customPadding ? customPadding : "0",
|
|
40243
40443
|
background: themeValues.headingBackgroundColor,
|
|
40244
|
-
onClick: isMobile && supportsTouch ? noop : toggleSection,
|
|
40245
|
-
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop,
|
|
40444
|
+
onClick: isMobile && supportsTouch ? noop$1 : toggleSection,
|
|
40445
|
+
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop$1,
|
|
40246
40446
|
key: "header",
|
|
40247
40447
|
hoverStyles: "cursor: pointer;",
|
|
40248
40448
|
tabIndex: "0",
|
|
@@ -40460,7 +40660,7 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
40460
40660
|
clearOnDismount = _ref.clearOnDismount,
|
|
40461
40661
|
showErrors = _ref.showErrors,
|
|
40462
40662
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40463
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
40663
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
|
|
40464
40664
|
if (clearOnDismount) {
|
|
40465
40665
|
React.useEffect(function () {
|
|
40466
40666
|
return function () {
|
|
@@ -40800,7 +41000,7 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
40800
41000
|
showErrors = _ref.showErrors,
|
|
40801
41001
|
guestCheckout = _ref.guestCheckout,
|
|
40802
41002
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40803
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
41003
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
40804
41004
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
40805
41005
|
saveToWallet = _ref.saveToWallet,
|
|
40806
41006
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -40897,7 +41097,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
40897
41097
|
clearOnDismount = _ref.clearOnDismount,
|
|
40898
41098
|
showErrors = _ref.showErrors,
|
|
40899
41099
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
40900
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
41100
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
|
|
40901
41101
|
if (clearOnDismount) {
|
|
40902
41102
|
React.useEffect(function () {
|
|
40903
41103
|
return function () {
|
|
@@ -42448,11 +42648,31 @@ var PROPERTIES_COMMERCIAL_AUTO_ICON = "PROPERTIES_COMMERCIAL_AUTO";
|
|
|
42448
42648
|
var MISC_BILL_ICON = "MISC_SINGLE_BILL";
|
|
42449
42649
|
var iconsMap = (_iconsMap = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_iconsMap, ACCOUNTS_GENERIC_ICON, AccountGenericIcon), ACCOUNTS_CONSTRUCTION_ICON, AccountConstructionIcon), ACCOUNTS_HEALTH_ICON, AccountMedicalIcon), ACCOUNTS_DENTAL_ICON, AccountDentalIcon), ACCOUNTS_UTILITY_ELECTRIC_ICON, AccountElectricIcon), ACCOUNTS_UTILITY_GARBAGE_ICON, AccountGarbageIcon), ACCOUNTS_UTILITY_GAS_ICON, AccountGasIcon), ACCOUNTS_UTILITY_WATER_ICON, AccountWaterIcon), PROPERTIES_PERSONAL_ICON, PropertyPersonalIcon), PROPERTIES_GARAGE_ICON, PropertyGarageIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_iconsMap, PROPERTIES_BUSINESS_ICON, PropertyBusinessIcon), PROPERTIES_STOREFRONT_ICON, PropertyStorefrontIcon), PROPERTIES_APARTMENT_ICON, PropertyApartmentIcon), PROPERTIES_LAND_ICON, PropertyLandIcon), PROPERTIES_CAR_ICON, PropertyCarIcon), PROPERTIES_MOTORCYCLE_ICON, PropertyMotorcycleIcon), PROPERTIES_COMMERCIAL_AUTO_ICON, PropertyCommercialVehicleIcon), MISC_BILL_ICON, AccountBillIcon));
|
|
42450
42650
|
|
|
42451
|
-
var
|
|
42452
|
-
|
|
42453
|
-
|
|
42454
|
-
var
|
|
42651
|
+
var disabledBackgroundColor$1 = {
|
|
42652
|
+
primary: TRANSPARENT
|
|
42653
|
+
};
|
|
42654
|
+
var disabledBorderColor$1 = {
|
|
42655
|
+
primary: GHOST_GREY
|
|
42656
|
+
};
|
|
42657
|
+
var disabledColor$1 = {
|
|
42658
|
+
primary: MANATEE_GREY
|
|
42659
|
+
};
|
|
42660
|
+
var activeBackgroundColor$1 = {
|
|
42661
|
+
primary: CORNFLOWER_BLUE
|
|
42662
|
+
};
|
|
42663
|
+
var backgroundColor$9 = {
|
|
42664
|
+
primary: LINK_WATER
|
|
42665
|
+
};
|
|
42666
|
+
var borderColor$5 = {
|
|
42667
|
+
primary: MOON_RAKER
|
|
42668
|
+
};
|
|
42669
|
+
var color$b = {
|
|
42670
|
+
primary: ROYAL_BLUE_VIVID
|
|
42671
|
+
};
|
|
42455
42672
|
var fallbackValues$I = {
|
|
42673
|
+
disabledBackgroundColor: disabledBackgroundColor$1,
|
|
42674
|
+
disabledBorderColor: disabledBorderColor$1,
|
|
42675
|
+
disabledColor: disabledColor$1,
|
|
42456
42676
|
activeBackgroundColor: activeBackgroundColor$1,
|
|
42457
42677
|
backgroundColor: backgroundColor$9,
|
|
42458
42678
|
borderColor: borderColor$5,
|
|
@@ -42462,29 +42682,30 @@ var fallbackValues$I = {
|
|
|
42462
42682
|
var Container = styled__default(Box).withConfig({
|
|
42463
42683
|
displayName: "LinkCardstyled__Container",
|
|
42464
42684
|
componentId: "sc-l5q1h2-0"
|
|
42465
|
-
})(["display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:40px;flex-shrink:0;align-self:stretch;border-radius:8px;", " transition:all .2s ease-in-out
|
|
42466
|
-
var
|
|
42467
|
-
|
|
42685
|
+
})(["display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:40px;flex-shrink:0;align-self:stretch;border-radius:8px;", " transition:all .2s ease-in-out;", ""], function (_ref) {
|
|
42686
|
+
var isDisabled = _ref.isDisabled,
|
|
42687
|
+
theme = _ref.theme;
|
|
42688
|
+
return "\n background-color: ".concat(isDisabled ? theme.disabledBackgroundColor : theme.backgroundColor, ";\n border: 1px solid ").concat(isDisabled ? theme.disabledBorderColor : theme.borderColor, ";\n ");
|
|
42468
42689
|
}, function (_ref2) {
|
|
42469
|
-
var
|
|
42470
|
-
|
|
42471
|
-
},
|
|
42472
|
-
var theme = _ref3.theme;
|
|
42473
|
-
return "\n background-color: ".concat(theme.activeBackgroundColor, ";\n border: 1px solid ").concat(theme.color, ";\n ;");
|
|
42690
|
+
var isDisabled = _ref2.isDisabled,
|
|
42691
|
+
theme = _ref2.theme;
|
|
42692
|
+
return isDisabled ? "\n &:hover,\n &:active {\n cursor: default;\n box-shadow: none;\n border: 1px solid ".concat(theme.disabledBorderColor, ";\n }\n ") : "\n &:hover,\n &:active {\n cursor: pointer;\n box-shadow: 0px 0px 0px 0px rgba(41, 42, 51, 0.1),\n 0px 5px 11px 0px rgba(41, 42, 51, 0.1),\n 0px 4px 19px 0px rgba(41, 42, 51, 0.09),\n 0px 27px 26px 0px rgba(41, 42, 51, 0.05),\n 0px 56px 31px 0px rgba(41, 42, 51, 0.01),\n 0px 80px 33px 0px rgba(41, 42, 51, 0);\n }\n\n &:hover:not(:active) {\n border: 1px solid ".concat(theme.borderColor, ";\n }\n\n &:active {\n background-color: ").concat(theme.activeBackgroundColor, ";\n border: 1px solid ").concat(theme.borderColor, ";\n }\n ");
|
|
42474
42693
|
});
|
|
42475
42694
|
var Title$2 = styled__default(Heading$1).withConfig({
|
|
42476
42695
|
displayName: "LinkCardstyled__Title",
|
|
42477
42696
|
componentId: "sc-l5q1h2-1"
|
|
42478
|
-
})(["display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:150%;background-color:transparent;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (
|
|
42479
|
-
var
|
|
42480
|
-
|
|
42697
|
+
})(["display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:150%;background-color:transparent;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (_ref3) {
|
|
42698
|
+
var isDisabled = _ref3.isDisabled,
|
|
42699
|
+
theme = _ref3.theme;
|
|
42700
|
+
return "color: ".concat(isDisabled ? theme.disabledColor : theme.color, ";");
|
|
42481
42701
|
});
|
|
42482
42702
|
var Subtitle = styled__default(Paragraph$1).withConfig({
|
|
42483
42703
|
displayName: "LinkCardstyled__Subtitle",
|
|
42484
42704
|
componentId: "sc-l5q1h2-2"
|
|
42485
|
-
})(["overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;font-size:14px;line-height:150
|
|
42486
|
-
var
|
|
42487
|
-
|
|
42705
|
+
})(["overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;font-size:14px;line-height:150%;letter-spacing:0.14px;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (_ref4) {
|
|
42706
|
+
var isDisabled = _ref4.isDisabled,
|
|
42707
|
+
theme = _ref4.theme;
|
|
42708
|
+
return "color: ".concat(isDisabled ? theme.disabledColor : theme.color, ";");
|
|
42488
42709
|
});
|
|
42489
42710
|
var Footer = styled__default(Stack).withConfig({
|
|
42490
42711
|
displayName: "LinkCardstyled__Footer",
|
|
@@ -42509,7 +42730,9 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42509
42730
|
extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle,
|
|
42510
42731
|
themeValues = _ref.themeValues,
|
|
42511
42732
|
_ref$titleVariant = _ref.titleVariant,
|
|
42512
|
-
titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant
|
|
42733
|
+
titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant,
|
|
42734
|
+
_ref$disabled = _ref.disabled,
|
|
42735
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
42513
42736
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
42514
42737
|
isMobile = _useContext.isMobile;
|
|
42515
42738
|
var regex = /\W/g;
|
|
@@ -42526,7 +42749,11 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42526
42749
|
extraStyles: extraStyles,
|
|
42527
42750
|
hoverStyles: extraHoverStyles,
|
|
42528
42751
|
activeStyles: extraActiveStyles,
|
|
42529
|
-
onClick: onClick
|
|
42752
|
+
onClick: disabled ? noop$1 : onClick,
|
|
42753
|
+
"aria-disabled": disabled,
|
|
42754
|
+
isDisabled: disabled,
|
|
42755
|
+
role: "group",
|
|
42756
|
+
"aria-label": "".concat(title, ", ").concat(subtitle)
|
|
42530
42757
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
42531
42758
|
childGap: 0,
|
|
42532
42759
|
bottomItem: 3,
|
|
@@ -42541,13 +42768,15 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42541
42768
|
}, /*#__PURE__*/React__default.createElement(Title$2, {
|
|
42542
42769
|
variant: titleVariant,
|
|
42543
42770
|
theme: themeValues,
|
|
42544
|
-
margin: 0
|
|
42771
|
+
margin: 0,
|
|
42772
|
+
isDisabled: disabled
|
|
42545
42773
|
}, title)), /*#__PURE__*/React__default.createElement(Box, {
|
|
42546
42774
|
padding: "0 0 40px",
|
|
42547
42775
|
width: "100%"
|
|
42548
42776
|
}, /*#__PURE__*/React__default.createElement(Subtitle, {
|
|
42549
42777
|
variant: "pS",
|
|
42550
|
-
theme: themeValues
|
|
42778
|
+
theme: themeValues,
|
|
42779
|
+
isDisabled: disabled
|
|
42551
42780
|
}, subtitle)), /*#__PURE__*/React__default.createElement(Box, {
|
|
42552
42781
|
background: "transparent",
|
|
42553
42782
|
borderWidthOverride: "0 0 0 0",
|
|
@@ -42557,9 +42786,11 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42557
42786
|
direction: "row",
|
|
42558
42787
|
childGap: "6px",
|
|
42559
42788
|
justify: "space-between"
|
|
42560
|
-
}, showLeft &&
|
|
42789
|
+
}, showLeft && !!leftContent ? leftContent : /*#__PURE__*/React__default.createElement(Box, {
|
|
42790
|
+
extraStyles: "margin-right: auto;"
|
|
42791
|
+
}), showRight && !!rightContent && rightContent))));
|
|
42561
42792
|
};
|
|
42562
|
-
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I);
|
|
42793
|
+
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "primary");
|
|
42563
42794
|
|
|
42564
42795
|
var LoginForm = function LoginForm(_ref) {
|
|
42565
42796
|
var clearOnDismount = _ref.clearOnDismount,
|
|
@@ -42567,7 +42798,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
42567
42798
|
actions = _ref.actions,
|
|
42568
42799
|
showErrors = _ref.showErrors,
|
|
42569
42800
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
42570
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
|
|
42801
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit;
|
|
42571
42802
|
if (clearOnDismount) {
|
|
42572
42803
|
React.useEffect(function () {
|
|
42573
42804
|
return function () {
|
|
@@ -46432,10 +46663,6 @@ var NavMenuMobile = function NavMenuMobile(_ref2) {
|
|
|
46432
46663
|
};
|
|
46433
46664
|
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$K, "profile");
|
|
46434
46665
|
|
|
46435
|
-
var ACH_METHOD = "BANK_ACCOUNT";
|
|
46436
|
-
var CC_METHOD = "CREDIT_CARD";
|
|
46437
|
-
var CASH_METHOD = "CASH";
|
|
46438
|
-
|
|
46439
46666
|
var IconsModule = function IconsModule(_ref) {
|
|
46440
46667
|
var icon = _ref.icon,
|
|
46441
46668
|
iconDefault = _ref.iconDefault,
|
|
@@ -46515,22 +46742,27 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46515
46742
|
inactive = _ref.inactive,
|
|
46516
46743
|
description = _ref.description,
|
|
46517
46744
|
subDescription = _ref.subDescription,
|
|
46518
|
-
allowedPaymentInstruments = _ref.allowedPaymentInstruments
|
|
46745
|
+
allowedPaymentInstruments = _ref.allowedPaymentInstruments,
|
|
46746
|
+
_ref$disableActions = _ref.disableActions,
|
|
46747
|
+
disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions,
|
|
46748
|
+
_action = _ref.action,
|
|
46749
|
+
_onClick = _ref.onClick,
|
|
46750
|
+
onKeyPress = _ref.onKeyPress;
|
|
46519
46751
|
var generateMethodNeededText = function generateMethodNeededText(planText, allowedPaymentInstruments) {
|
|
46520
46752
|
var allowsCard = allowedPaymentInstruments.includes(CC_METHOD);
|
|
46521
46753
|
var allowsACH = allowedPaymentInstruments.includes(ACH_METHOD);
|
|
46522
46754
|
var methodRequired = allowsCard && !allowsACH ? "debit or credit card payment method" : !allowsCard && allowsACH ? "checking account payment method" : "payment method";
|
|
46523
|
-
return "To
|
|
46755
|
+
return "To set up ".concat(planText, " you must have a saved ").concat(methodRequired, " and address. Do you want to save these now?");
|
|
46524
46756
|
};
|
|
46525
46757
|
var plan = isPaymentPlan ? "your payment plan" : "autopay";
|
|
46526
46758
|
var shortPlan = isPaymentPlan ? "Payment Plan" : "Autopay";
|
|
46527
|
-
var deactivateText = "
|
|
46528
|
-
var activateText = "Set
|
|
46759
|
+
var deactivateText = "Stop ".concat(shortPlan.toLowerCase(), " for ").concat(titleCaseString(description), ": ").concat(titleCaseString(subDescription));
|
|
46760
|
+
var activateText = "Set up ".concat(shortPlan.toLowerCase(), " for ").concat(titleCaseString(description), ": ").concat(titleCaseString(subDescription));
|
|
46529
46761
|
var nextDate = dueDate || nextAutopayDate;
|
|
46530
46762
|
var modalExtraProps = {
|
|
46531
|
-
modalHeaderText: autoPayActive ?
|
|
46532
|
-
modalBodyText: autoPayActive ? "Are you sure you want to
|
|
46533
|
-
continueButtonText: autoPayActive ? "
|
|
46763
|
+
modalHeaderText: autoPayActive ? deactivateText : activateText,
|
|
46764
|
+
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),
|
|
46765
|
+
continueButtonText: autoPayActive ? "Stop ".concat(shortPlan) : "Add",
|
|
46534
46766
|
useDangerButton: autoPayActive,
|
|
46535
46767
|
continueAction: autoPayActive ? function () {
|
|
46536
46768
|
deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
|
|
@@ -46547,10 +46779,11 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46547
46779
|
text: autoPayActive ? "Turn off ".concat(shortPlan) : "Set Up ".concat(shortPlan),
|
|
46548
46780
|
variant: "secondary",
|
|
46549
46781
|
action: function action() {
|
|
46550
|
-
toggleModal(true);
|
|
46782
|
+
_action || toggleModal(true);
|
|
46551
46783
|
},
|
|
46552
46784
|
dataQa: "Turn off Autopay",
|
|
46553
|
-
extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1; min-width: 165px;"
|
|
46785
|
+
extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1; min-width: 165px;",
|
|
46786
|
+
disabled: disableActions
|
|
46554
46787
|
});
|
|
46555
46788
|
}
|
|
46556
46789
|
case "tertiary":
|
|
@@ -46559,10 +46792,11 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46559
46792
|
text: autoPayActive ? "Manage ".concat(shortPlan) : "Set Up ".concat(shortPlan),
|
|
46560
46793
|
variant: "tertiary",
|
|
46561
46794
|
action: function action() {
|
|
46562
|
-
toggleModal(true);
|
|
46795
|
+
_action || toggleModal(true);
|
|
46563
46796
|
},
|
|
46564
46797
|
dataQa: "Manage Autopay",
|
|
46565
|
-
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
46798
|
+
extraStyles: isMobile && "flex-grow: 1; width: 100%;",
|
|
46799
|
+
disabled: disableActions
|
|
46566
46800
|
});
|
|
46567
46801
|
}
|
|
46568
46802
|
case "link":
|
|
@@ -46570,7 +46804,7 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46570
46804
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
46571
46805
|
padding: "0",
|
|
46572
46806
|
onClick: function onClick() {
|
|
46573
|
-
toggleModal(true);
|
|
46807
|
+
_onClick || toggleModal(true);
|
|
46574
46808
|
},
|
|
46575
46809
|
hoverStyles: hoverStyles,
|
|
46576
46810
|
activeStyles: activeStyles,
|
|
@@ -46581,9 +46815,9 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46581
46815
|
}, /*#__PURE__*/React__default.createElement(AutopayOnIcon, null), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
46582
46816
|
variant: "pS",
|
|
46583
46817
|
onClick: function onClick() {
|
|
46584
|
-
return toggleModal(true);
|
|
46818
|
+
return _onClick || toggleModal(true);
|
|
46585
46819
|
},
|
|
46586
|
-
onKeyPress: function
|
|
46820
|
+
onKeyPress: onKeyPress || function (e) {
|
|
46587
46821
|
e.key === "Enter" && toggleModal(true);
|
|
46588
46822
|
},
|
|
46589
46823
|
tabIndex: "0",
|
|
@@ -46591,16 +46825,17 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46591
46825
|
color: SEA_GREEN,
|
|
46592
46826
|
weight: themeValues.fontWeight,
|
|
46593
46827
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
46594
|
-
extraStyles: "padding-left: 0.25rem;"
|
|
46828
|
+
extraStyles: "padding-left: 0.25rem;",
|
|
46829
|
+
disabled: disableActions
|
|
46595
46830
|
}, "".concat(shortPlan, " ").concat(nextAutopayDate))));
|
|
46596
46831
|
}
|
|
46597
46832
|
}
|
|
46598
46833
|
};
|
|
46599
46834
|
return /*#__PURE__*/React__default.createElement(Modal$1, _extends({
|
|
46600
|
-
showModal: function
|
|
46835
|
+
showModal: disableActions ? noop$1 : function () {
|
|
46601
46836
|
return toggleModal(true);
|
|
46602
46837
|
},
|
|
46603
|
-
hideModal: function
|
|
46838
|
+
hideModal: disableActions ? noop$1 : function () {
|
|
46604
46839
|
return toggleModal(false);
|
|
46605
46840
|
},
|
|
46606
46841
|
modalOpen: modalOpen
|
|
@@ -46620,7 +46855,9 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
46620
46855
|
nextAutopayDate = _ref.nextAutopayDate,
|
|
46621
46856
|
description = _ref.description,
|
|
46622
46857
|
subDescription = _ref.subDescription,
|
|
46623
|
-
allowedPaymentInstruments = _ref.allowedPaymentInstruments
|
|
46858
|
+
allowedPaymentInstruments = _ref.allowedPaymentInstruments,
|
|
46859
|
+
_ref$disableActions = _ref.disableActions,
|
|
46860
|
+
disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
|
|
46624
46861
|
var _useState = React.useState(false),
|
|
46625
46862
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46626
46863
|
modalOpen = _useState2[0],
|
|
@@ -46650,7 +46887,17 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
46650
46887
|
controlType: "link",
|
|
46651
46888
|
description: description,
|
|
46652
46889
|
subDescription: subDescription,
|
|
46653
|
-
allowedPaymentInstruments: allowedPaymentInstruments
|
|
46890
|
+
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
46891
|
+
disableActions: disableActions,
|
|
46892
|
+
action: function action() {
|
|
46893
|
+
return disableActions ? noop$1 : toggleModal(true);
|
|
46894
|
+
},
|
|
46895
|
+
onClick: function onClick() {
|
|
46896
|
+
return disableActions ? noop$1 : toggleModal(true);
|
|
46897
|
+
},
|
|
46898
|
+
onKeyPress: disableActions ? noop$1 : function (e) {
|
|
46899
|
+
e.key === "Enter" && toggleModal(true);
|
|
46900
|
+
}
|
|
46654
46901
|
})));
|
|
46655
46902
|
};
|
|
46656
46903
|
|
|
@@ -46673,8 +46920,8 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46673
46920
|
description = _ref.description,
|
|
46674
46921
|
subDescription = _ref.subDescription,
|
|
46675
46922
|
allowedPaymentInstruments = _ref.allowedPaymentInstruments,
|
|
46676
|
-
_ref$
|
|
46677
|
-
|
|
46923
|
+
_ref$disableActions = _ref.disableActions,
|
|
46924
|
+
disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
|
|
46678
46925
|
var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
|
|
46679
46926
|
var _useState = React.useState(false),
|
|
46680
46927
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -46727,7 +46974,8 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46727
46974
|
nextAutopayDate: nextAutopayDate,
|
|
46728
46975
|
description: description,
|
|
46729
46976
|
subDescription: subDescription,
|
|
46730
|
-
allowedPaymentInstruments: allowedPaymentInstruments
|
|
46977
|
+
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
46978
|
+
disableActions: disableActions
|
|
46731
46979
|
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
46732
46980
|
padding: isMobile ? "16px" : "0"
|
|
46733
46981
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -46740,21 +46988,24 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46740
46988
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46741
46989
|
variant: "tertiary",
|
|
46742
46990
|
text: config.type === "ACCOUNT" ? "Account Details" : "Property Details",
|
|
46743
|
-
action: handleDetailsClick,
|
|
46991
|
+
action: disableActions ? noop$1 : handleDetailsClick,
|
|
46744
46992
|
dataQa: "Account Details",
|
|
46745
46993
|
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
46746
46994
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
46747
46995
|
padding: isMobile ? "0 8px 0 0" : "0",
|
|
46748
46996
|
extraStyles: isMobile && "flex-grow: 1;"
|
|
46749
|
-
}, autoPayAvailable && !autoPayEnabled
|
|
46997
|
+
}, autoPayAvailable && !autoPayEnabled ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46750
46998
|
variant: "tertiary",
|
|
46751
46999
|
text: "Set Up ".concat(planType),
|
|
46752
47000
|
action: function action() {
|
|
46753
|
-
|
|
46754
|
-
|
|
47001
|
+
if (!disableActions) {
|
|
47002
|
+
setDetailedObligation(obligations, config, obligationAssocID);
|
|
47003
|
+
handleAutopayAction();
|
|
47004
|
+
}
|
|
46755
47005
|
},
|
|
46756
47006
|
dataQa: "Set Up Autopay",
|
|
46757
|
-
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
47007
|
+
extraStyles: isMobile && "flex-grow: 1; width: 100%;",
|
|
47008
|
+
disabled: disableActions
|
|
46758
47009
|
}) : /*#__PURE__*/React__default.createElement(AutopayModalModule, {
|
|
46759
47010
|
autoPayActive: autoPayEnabled,
|
|
46760
47011
|
autoPaySchedule: autoPaySchedule,
|
|
@@ -46770,29 +47021,39 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46770
47021
|
dueDate: dueDate,
|
|
46771
47022
|
description: description,
|
|
46772
47023
|
subDescription: subDescription,
|
|
46773
|
-
allowedPaymentInstruments: allowedPaymentInstruments
|
|
46774
|
-
|
|
47024
|
+
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47025
|
+
disableActions: disableActions,
|
|
47026
|
+
action: disableActions ? noop$1 : toggleModal(true),
|
|
47027
|
+
onClick: disableActions ? noop$1 : toggleModal(true),
|
|
47028
|
+
onKeyPress: disableActions ? noop$1 : function (e) {
|
|
47029
|
+
e.key === "Enter" && toggleModal(true);
|
|
47030
|
+
}
|
|
47031
|
+
})), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
|
|
46775
47032
|
padding: "0"
|
|
46776
47033
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46777
47034
|
isLoading: isLoading,
|
|
46778
|
-
action: function
|
|
47035
|
+
action: disableActions ? noop$1 : function () {
|
|
46779
47036
|
return handleClick(obligations);
|
|
46780
47037
|
},
|
|
46781
47038
|
text: "Pay Now",
|
|
46782
47039
|
variant: isMobile ? "smallSecondary" : "secondary",
|
|
46783
|
-
dataQa: "Pay Now"
|
|
46784
|
-
|
|
47040
|
+
dataQa: "Pay Now",
|
|
47041
|
+
disabled: disableActions
|
|
47042
|
+
}))), isMobile && /*#__PURE__*/React__default.createElement(Box, {
|
|
46785
47043
|
padding: "8px 0 0",
|
|
46786
47044
|
width: "100%"
|
|
46787
47045
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46788
47046
|
isLoading: isLoading,
|
|
46789
47047
|
action: function action() {
|
|
46790
|
-
return
|
|
47048
|
+
return disableActions ? noop$1 : function () {
|
|
47049
|
+
return handleClick(obligations);
|
|
47050
|
+
};
|
|
46791
47051
|
},
|
|
46792
47052
|
text: "Pay Now",
|
|
46793
47053
|
variant: isMobile ? "smallSecondary" : "secondary",
|
|
46794
47054
|
dataQa: "Pay Now",
|
|
46795
|
-
extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;"
|
|
47055
|
+
extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;",
|
|
47056
|
+
disabled: disableActions
|
|
46796
47057
|
}))));
|
|
46797
47058
|
};
|
|
46798
47059
|
|
|
@@ -46802,7 +47063,9 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
46802
47063
|
obligations = _ref$obligations === void 0 ? [] : _ref$obligations,
|
|
46803
47064
|
removeAccount = _ref.removeAccount,
|
|
46804
47065
|
accountType = _ref.accountType,
|
|
46805
|
-
isMobile = _ref.isMobile
|
|
47066
|
+
isMobile = _ref.isMobile,
|
|
47067
|
+
_ref$disableActions = _ref.disableActions,
|
|
47068
|
+
disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
|
|
46806
47069
|
var _useState = React.useState(false),
|
|
46807
47070
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46808
47071
|
modalIsOpen = _useState2[0],
|
|
@@ -46815,10 +47078,10 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
46815
47078
|
}, "".concat(agencyName, " - ")) : "";
|
|
46816
47079
|
var identifier = accountType === "Account" && obligations.length > 1 ? "accounts" : accountType === "Property" && obligations.length > 1 ? "properties" : accountType.toLowerCase();
|
|
46817
47080
|
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
46818
|
-
showModal: function
|
|
47081
|
+
showModal: disableActions ? noop : function () {
|
|
46819
47082
|
return setModalIsOpen(true);
|
|
46820
47083
|
},
|
|
46821
|
-
hideModal: function
|
|
47084
|
+
hideModal: disableActions ? noop : function () {
|
|
46822
47085
|
return setModalIsOpen(false);
|
|
46823
47086
|
},
|
|
46824
47087
|
modalOpen: modalIsOpen,
|
|
@@ -46826,8 +47089,10 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
46826
47089
|
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."),
|
|
46827
47090
|
continueButtonText: "Remove",
|
|
46828
47091
|
continueAction: function continueAction() {
|
|
46829
|
-
|
|
46830
|
-
|
|
47092
|
+
if (!disableActions) {
|
|
47093
|
+
removeAccount();
|
|
47094
|
+
setModalIsOpen(false);
|
|
47095
|
+
}
|
|
46831
47096
|
},
|
|
46832
47097
|
useDangerButton: true
|
|
46833
47098
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -46836,11 +47101,12 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
46836
47101
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46837
47102
|
text: "Remove",
|
|
46838
47103
|
variant: "secondary",
|
|
46839
|
-
action: function
|
|
47104
|
+
action: disableActions ? noop : function () {
|
|
46840
47105
|
return setModalIsOpen(true);
|
|
46841
47106
|
},
|
|
46842
47107
|
dataQa: "Remove Account",
|
|
46843
|
-
extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;"
|
|
47108
|
+
extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;",
|
|
47109
|
+
disabled: disableActions
|
|
46844
47110
|
})));
|
|
46845
47111
|
};
|
|
46846
47112
|
|
|
@@ -46860,7 +47126,9 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
46860
47126
|
actions = _ref.actions,
|
|
46861
47127
|
description = _ref.description,
|
|
46862
47128
|
subDescription = _ref.subDescription,
|
|
46863
|
-
allowedPaymentInstruments = _ref.allowedPaymentInstruments
|
|
47129
|
+
allowedPaymentInstruments = _ref.allowedPaymentInstruments,
|
|
47130
|
+
_ref$disableActions = _ref.disableActions,
|
|
47131
|
+
disableActions = _ref$disableActions === void 0 ? false : _ref$disableActions;
|
|
46864
47132
|
var _useState = React.useState(false),
|
|
46865
47133
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46866
47134
|
modalOpen = _useState2[0],
|
|
@@ -46898,15 +47166,22 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
46898
47166
|
inactive: true,
|
|
46899
47167
|
description: description,
|
|
46900
47168
|
subDescription: subDescription,
|
|
46901
|
-
allowedPaymentInstruments: allowedPaymentInstruments
|
|
47169
|
+
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47170
|
+
disableActions: disableActions,
|
|
47171
|
+
action: disableActions ? noop$1 : toggleModal(true),
|
|
47172
|
+
onClick: disableActions ? noop$1 : toggleModal(true),
|
|
47173
|
+
onKeyPress: disableActions ? noop$1 : function (e) {
|
|
47174
|
+
e.key === "Enter" && toggleModal(true);
|
|
47175
|
+
}
|
|
46902
47176
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
46903
47177
|
padding: "0",
|
|
46904
47178
|
extraStyles: "flex-grow: 1;"
|
|
46905
47179
|
}, /*#__PURE__*/React__default.createElement(RemoveAccountModalModule, {
|
|
46906
47180
|
agencyName: agencyName,
|
|
46907
|
-
removeAccount: handleRemoveAccount,
|
|
47181
|
+
removeAccount: disableActions ? noop$1 : handleRemoveAccount,
|
|
46908
47182
|
accountType: configType === "ACCOUNT" ? "Account" : "Property",
|
|
46909
|
-
isMobile: isMobile
|
|
47183
|
+
isMobile: isMobile,
|
|
47184
|
+
disableActions: disableActions
|
|
46910
47185
|
}))));
|
|
46911
47186
|
};
|
|
46912
47187
|
|
|
@@ -47036,7 +47311,8 @@ var Obligation = function Obligation(_ref) {
|
|
|
47036
47311
|
nextAutopayDate: nextAutopayDate,
|
|
47037
47312
|
description: description,
|
|
47038
47313
|
subDescription: subDescription,
|
|
47039
|
-
allowedPaymentInstruments: allowedPaymentInstruments
|
|
47314
|
+
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47315
|
+
disableActions: isInCustomerManagement
|
|
47040
47316
|
}))), !isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
|
|
47041
47317
|
obligations: obligations,
|
|
47042
47318
|
autoPayEnabled: autoPayEnabled,
|
|
@@ -47055,7 +47331,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
47055
47331
|
description: description,
|
|
47056
47332
|
subDescription: subDescription,
|
|
47057
47333
|
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47058
|
-
|
|
47334
|
+
disableActions: isInCustomerManagement
|
|
47059
47335
|
}))), isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
|
|
47060
47336
|
obligations: obligations,
|
|
47061
47337
|
autoPayEnabled: autoPayEnabled,
|
|
@@ -47074,7 +47350,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
47074
47350
|
description: description,
|
|
47075
47351
|
subDescription: subDescription,
|
|
47076
47352
|
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47077
|
-
|
|
47353
|
+
disableActions: isInCustomerManagement
|
|
47078
47354
|
}));
|
|
47079
47355
|
var inactiveObligation = /*#__PURE__*/React__default.createElement(Box, {
|
|
47080
47356
|
padding: "0",
|
|
@@ -47130,7 +47406,8 @@ var Obligation = function Obligation(_ref) {
|
|
|
47130
47406
|
configType: config.type,
|
|
47131
47407
|
description: description,
|
|
47132
47408
|
subDescription: subDescription,
|
|
47133
|
-
allowedPaymentInstruments: allowedPaymentInstruments
|
|
47409
|
+
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47410
|
+
disableActions: isInCustomerManagement
|
|
47134
47411
|
}))), isMobile && /*#__PURE__*/React__default.createElement(InactiveControlsModule, {
|
|
47135
47412
|
obligations: obligations,
|
|
47136
47413
|
autoPayEnabled: autoPayEnabled,
|
|
@@ -47147,7 +47424,8 @@ var Obligation = function Obligation(_ref) {
|
|
|
47147
47424
|
configType: config.type,
|
|
47148
47425
|
description: description,
|
|
47149
47426
|
subDescription: subDescription,
|
|
47150
|
-
allowedPaymentInstruments: allowedPaymentInstruments
|
|
47427
|
+
allowedPaymentInstruments: allowedPaymentInstruments,
|
|
47428
|
+
disableActions: isInCustomerManagement
|
|
47151
47429
|
}))));
|
|
47152
47430
|
return inactive ? inactiveObligation : activeObligation;
|
|
47153
47431
|
};
|
|
@@ -47359,6 +47637,7 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
|
|
|
47359
47637
|
var Pagination = function Pagination(_ref3) {
|
|
47360
47638
|
var _ref3$activeBorderWid = _ref3.activeBorderWidth,
|
|
47361
47639
|
activeBorderWidth = _ref3$activeBorderWid === void 0 ? "3px" : _ref3$activeBorderWid,
|
|
47640
|
+
ariaLabel = _ref3.ariaLabel,
|
|
47362
47641
|
arrowColor = _ref3.arrowColor,
|
|
47363
47642
|
_ref3$borderRadius = _ref3.borderRadius,
|
|
47364
47643
|
borderRadius = _ref3$borderRadius === void 0 ? "3px" : _ref3$borderRadius,
|
|
@@ -47378,11 +47657,10 @@ var Pagination = function Pagination(_ref3) {
|
|
|
47378
47657
|
pageNext = _ref3.pageNext,
|
|
47379
47658
|
pagePrevious = _ref3.pagePrevious,
|
|
47380
47659
|
setCurrentPage = _ref3.setCurrentPage,
|
|
47381
|
-
ariaLabel = _ref3.ariaLabel,
|
|
47382
47660
|
themeValues = _ref3.themeValues;
|
|
47383
47661
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47384
47662
|
isMobile = _useContext.isMobile;
|
|
47385
|
-
var extraStyles = "\n min-width: ".concat(buttonWidth, "; min-height: 100%; padding: 0;\n border-radius: ").concat(borderRadius, ";\n
|
|
47663
|
+
var extraStyles = "\n min-width: ".concat(buttonWidth, "; min-height: 100%; padding: 0;\n border-radius: ").concat(borderRadius, ";\n > * > span {\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, "\n }\n margin: 0;\n &:hover {\n background-color: ").concat(themeValues.hoverBackgroundColor, "\n }\n ");
|
|
47386
47664
|
var currentPageStyles = "\n border: ".concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.activeColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n &:focus {\n box-shadow: none;\n }\n &:hover {\n background-color: initial;\n border: ").concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n }\n ");
|
|
47387
47665
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47388
47666
|
justify: "center",
|
|
@@ -47429,7 +47707,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
47429
47707
|
return setCurrentPage({
|
|
47430
47708
|
pageNumber: item.index
|
|
47431
47709
|
});
|
|
47432
|
-
} : noop,
|
|
47710
|
+
} : noop$1,
|
|
47433
47711
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
47434
47712
|
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
47435
47713
|
dataQa: index
|
|
@@ -47485,7 +47763,11 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47485
47763
|
_ref$hideForwardButto = _ref.hideForwardButton,
|
|
47486
47764
|
hideForwardButton = _ref$hideForwardButto === void 0 ? false : _ref$hideForwardButto,
|
|
47487
47765
|
_ref$hideBackButton = _ref.hideBackButton,
|
|
47488
|
-
hideBackButton = _ref$hideBackButton === void 0 ? false : _ref$hideBackButton
|
|
47766
|
+
hideBackButton = _ref$hideBackButton === void 0 ? false : _ref$hideBackButton,
|
|
47767
|
+
buttonGroupStyles = _ref.buttonGroupStyles,
|
|
47768
|
+
_ref$hideAdditionalBu = _ref.hideAdditionalButton,
|
|
47769
|
+
hideAdditionalButton = _ref$hideAdditionalBu === void 0 ? false : _ref$hideAdditionalBu,
|
|
47770
|
+
additionalButton = _ref.additionalButton;
|
|
47489
47771
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47490
47772
|
isMobile = _useContext.isMobile;
|
|
47491
47773
|
var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
@@ -47531,8 +47813,9 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47531
47813
|
padding: "2.5rem 0 3.125rem 0"
|
|
47532
47814
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47533
47815
|
justify: buttonFlexOverride ? buttonFlexOverride : !!backButton ? "space-between" : "flex-end",
|
|
47534
|
-
align: "center"
|
|
47535
|
-
|
|
47816
|
+
align: "center",
|
|
47817
|
+
extraStyles: buttonGroupStyles
|
|
47818
|
+
}, !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))));
|
|
47536
47819
|
};
|
|
47537
47820
|
|
|
47538
47821
|
var backgroundColor$c = {
|
|
@@ -47558,7 +47841,7 @@ var fallbackValues$N = {
|
|
|
47558
47841
|
labeledAmountTotal: labeledAmountTotal
|
|
47559
47842
|
};
|
|
47560
47843
|
|
|
47561
|
-
var _excluded$
|
|
47844
|
+
var _excluded$A = ["amount"],
|
|
47562
47845
|
_excluded2$1 = ["amount"];
|
|
47563
47846
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47564
47847
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -47781,7 +48064,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47781
48064
|
_ref4$voidableTransac = _ref4.voidableTransactionDetails,
|
|
47782
48065
|
voidableTransactionDetails = _ref4$voidableTransac === void 0 ? [] : _ref4$voidableTransac,
|
|
47783
48066
|
_ref4$partialVoidActi = _ref4.partialVoidAction,
|
|
47784
|
-
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop : _ref4$partialVoidActi,
|
|
48067
|
+
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop$1 : _ref4$partialVoidActi,
|
|
47785
48068
|
_ref4$voidableAmountP = _ref4.voidableAmountPaid,
|
|
47786
48069
|
voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP,
|
|
47787
48070
|
_ref4$remainingBalanc = _ref4.remainingBalance,
|
|
@@ -47798,7 +48081,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47798
48081
|
return fee.amount > 0;
|
|
47799
48082
|
}).map(function (_ref5) {
|
|
47800
48083
|
var amount = _ref5.amount,
|
|
47801
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48084
|
+
rest = _objectWithoutProperties(_ref5, _excluded$A);
|
|
47802
48085
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47803
48086
|
amount: displayCurrency(amount)
|
|
47804
48087
|
});
|
|
@@ -47915,12 +48198,16 @@ var fontWeight$7 = {
|
|
|
47915
48198
|
var modalLinkHoverFocus$1 = {
|
|
47916
48199
|
"default": "outline: none; text-decoration: underline;"
|
|
47917
48200
|
};
|
|
48201
|
+
var linkTextDecoration = {
|
|
48202
|
+
"default": LINK_TEXT_DECORATION
|
|
48203
|
+
};
|
|
47918
48204
|
var fallbackValues$O = {
|
|
47919
48205
|
linkColor: linkColor$5,
|
|
47920
48206
|
fontSize: fontSize$a,
|
|
47921
48207
|
lineHeight: lineHeight$4,
|
|
47922
48208
|
fontWeight: fontWeight$7,
|
|
47923
|
-
modalLinkHoverFocus: modalLinkHoverFocus$1
|
|
48209
|
+
modalLinkHoverFocus: modalLinkHoverFocus$1,
|
|
48210
|
+
linkTextDecoration: linkTextDecoration
|
|
47924
48211
|
};
|
|
47925
48212
|
|
|
47926
48213
|
var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
@@ -47974,6 +48261,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47974
48261
|
color: themeValues.linkColor,
|
|
47975
48262
|
weight: themeValues.fontWeight,
|
|
47976
48263
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48264
|
+
textDecoration: themeValues.linkTextDecoration,
|
|
47977
48265
|
extraStyles: "cursor: pointer;",
|
|
47978
48266
|
role: "button",
|
|
47979
48267
|
className: "modal-trigger"
|
|
@@ -48010,6 +48298,10 @@ var modalLinkHoverFocus$2 = {
|
|
|
48010
48298
|
"default": standardInteractionStyles,
|
|
48011
48299
|
footer: standardInteractionStyles
|
|
48012
48300
|
};
|
|
48301
|
+
var modalLinkTextDecoration = {
|
|
48302
|
+
"default": LINK_TEXT_DECORATION,
|
|
48303
|
+
footer: "none"
|
|
48304
|
+
};
|
|
48013
48305
|
var fallbackValues$P = {
|
|
48014
48306
|
backgroundColor: backgroundColor$d,
|
|
48015
48307
|
linkColor: linkColor$6,
|
|
@@ -48017,7 +48309,8 @@ var fallbackValues$P = {
|
|
|
48017
48309
|
fontSize: fontSize$b,
|
|
48018
48310
|
lineHeight: lineHeight$5,
|
|
48019
48311
|
fontWeight: fontWeight$8,
|
|
48020
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
48312
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2,
|
|
48313
|
+
modalLinkTextDecoration: modalLinkTextDecoration
|
|
48021
48314
|
};
|
|
48022
48315
|
|
|
48023
48316
|
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
@@ -48074,6 +48367,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
48074
48367
|
color: themeValues.linkColor,
|
|
48075
48368
|
weight: themeValues.fontWeight,
|
|
48076
48369
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48370
|
+
textDecoration: themeValues.modalLinkTextDecoration,
|
|
48077
48371
|
extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
|
|
48078
48372
|
role: "button" // This should always be a "button" since it opens a modal
|
|
48079
48373
|
,
|
|
@@ -48207,11 +48501,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48207
48501
|
}, errorMessage))))));
|
|
48208
48502
|
};
|
|
48209
48503
|
|
|
48210
|
-
var _excluded$
|
|
48504
|
+
var _excluded$B = ["version"];
|
|
48211
48505
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48212
48506
|
var _ref$version = _ref.version,
|
|
48213
48507
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48214
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48508
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
48215
48509
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48216
48510
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
48217
48511
|
};
|
|
@@ -48229,7 +48523,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48229
48523
|
actions = _ref.actions,
|
|
48230
48524
|
showErrors = _ref.showErrors,
|
|
48231
48525
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48232
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48526
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
48233
48527
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48234
48528
|
saveToWallet = _ref.saveToWallet,
|
|
48235
48529
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -48431,7 +48725,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48431
48725
|
actions = _ref.actions,
|
|
48432
48726
|
showErrors = _ref.showErrors,
|
|
48433
48727
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48434
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48728
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
48435
48729
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48436
48730
|
saveToWallet = _ref.saveToWallet,
|
|
48437
48731
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -48735,7 +49029,7 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
48735
49029
|
clearOnDismount = _ref.clearOnDismount,
|
|
48736
49030
|
showErrors = _ref.showErrors,
|
|
48737
49031
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
48738
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49032
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
48739
49033
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48740
49034
|
saveToWallet = _ref.saveToWallet,
|
|
48741
49035
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
@@ -48811,7 +49105,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
48811
49105
|
config = _ref.config,
|
|
48812
49106
|
extraStyles = _ref.extraStyles,
|
|
48813
49107
|
_ref$handleChange = _ref.handleChange,
|
|
48814
|
-
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
49108
|
+
handleChange = _ref$handleChange === void 0 ? noop$1 : _ref$handleChange,
|
|
48815
49109
|
field = _ref.field,
|
|
48816
49110
|
fieldActions = _ref.fieldActions;
|
|
48817
49111
|
var setValue = function setValue(value) {
|
|
@@ -48876,7 +49170,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
48876
49170
|
ariaLabelledBy = _ref.ariaLabelledBy,
|
|
48877
49171
|
isLastGroupedItemInSection = _ref.isLastGroupedItemInSection,
|
|
48878
49172
|
_ref$onKeyDown = _ref.onKeyDown,
|
|
48879
|
-
onKeyDown = _ref$onKeyDown === void 0 ? noop : _ref$onKeyDown;
|
|
49173
|
+
onKeyDown = _ref$onKeyDown === void 0 ? noop$1 : _ref$onKeyDown;
|
|
48880
49174
|
var wrapper = {
|
|
48881
49175
|
open: {
|
|
48882
49176
|
height: openHeight,
|
|
@@ -48933,12 +49227,12 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
48933
49227
|
"aria-required": section.required,
|
|
48934
49228
|
"aria-labelledby": ariaLabelledBy,
|
|
48935
49229
|
"aria-describedby": ariaDescribedBy,
|
|
48936
|
-
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
49230
|
+
onClick: isMobile && supportsTouch || section.disabled ? noop$1 : function () {
|
|
48937
49231
|
return toggleOpenSection(section.id);
|
|
48938
49232
|
},
|
|
48939
49233
|
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
48940
49234
|
return toggleOpenSection(section.id);
|
|
48941
|
-
} : noop,
|
|
49235
|
+
} : noop$1,
|
|
48942
49236
|
id: "inner-radio-section-".concat(sectionIndex),
|
|
48943
49237
|
"data-qa": section.dataQa ? section.dataQa : section.id || "inner-radio-section-".concat(sectionIndex)
|
|
48944
49238
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
@@ -48968,7 +49262,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
48968
49262
|
ariaDescribedBy: ariaDescribedBy,
|
|
48969
49263
|
radioOn: openSection === section.id,
|
|
48970
49264
|
radioFocused: focused === section.id,
|
|
48971
|
-
toggleRadio: section.disabled ? noop : function () {
|
|
49265
|
+
toggleRadio: section.disabled ? noop$1 : function () {
|
|
48972
49266
|
return toggleOpenSection(section.id);
|
|
48973
49267
|
},
|
|
48974
49268
|
tabIndex: "-1",
|
|
@@ -49010,7 +49304,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49010
49304
|
}, section.content))));
|
|
49011
49305
|
};
|
|
49012
49306
|
|
|
49013
|
-
var _excluded$
|
|
49307
|
+
var _excluded$C = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
49014
49308
|
|
|
49015
49309
|
/**
|
|
49016
49310
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49058,7 +49352,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49058
49352
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
49059
49353
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49060
49354
|
groupedSections = _ref.groupedSections,
|
|
49061
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49355
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
49062
49356
|
var _useState = React.useState(null),
|
|
49063
49357
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49064
49358
|
focused = _useState2[0],
|
|
@@ -49152,7 +49446,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49152
49446
|
fields = _ref.fields,
|
|
49153
49447
|
actions = _ref.actions,
|
|
49154
49448
|
_ref$handleSubmit = _ref.handleSubmit,
|
|
49155
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49449
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
49156
49450
|
showErrors = _ref.showErrors,
|
|
49157
49451
|
isMobile = _ref.isMobile;
|
|
49158
49452
|
if (clearOnDismount) {
|
|
@@ -49312,7 +49606,7 @@ var ResetConfirmationForm$1 = withWindowSize(ResetConfirmationForm);
|
|
|
49312
49606
|
|
|
49313
49607
|
var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
49314
49608
|
var _ref$handleSubmit = _ref.handleSubmit,
|
|
49315
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
49609
|
+
handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
|
|
49316
49610
|
clearOnDismount = _ref.clearOnDismount,
|
|
49317
49611
|
fields = _ref.fields,
|
|
49318
49612
|
actions = _ref.actions,
|
|
@@ -49530,7 +49824,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
49530
49824
|
return /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
49531
49825
|
to: route,
|
|
49532
49826
|
key: "".concat(route, "-").concat(index),
|
|
49533
|
-
extraStyles: "
|
|
49827
|
+
extraStyles: "text-decoration: none;\n &:hover {\n ".concat(active ? "> * {\n background-color: ".concat(themeValues.activeTabHover, ";\n }") : "> * { \n background-color: rgba(8, 27, 43, 0.05);\n }", "}")
|
|
49534
49828
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
49535
49829
|
padding: isMobile ? "6px 4px" : "18px 16px",
|
|
49536
49830
|
background: active ? themeValues.activeTabBackground : "transparent",
|
|
@@ -49739,8 +50033,225 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
49739
50033
|
}))));
|
|
49740
50034
|
};
|
|
49741
50035
|
|
|
49742
|
-
var
|
|
50036
|
+
var menuItemBackgroundColor = WHITE;
|
|
50037
|
+
var menuItemColor = ROYAL_BLUE_VIVID;
|
|
50038
|
+
var menuItemColorDelete = RAZZMATAZZ_RED;
|
|
50039
|
+
var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
|
|
50040
|
+
var menuItemHoverBackgroundColorDelete = BLUSH_RED;
|
|
50041
|
+
var menuItemHoverColor = ROYAL_BLUE_VIVID;
|
|
49743
50042
|
var fallbackValues$U = {
|
|
50043
|
+
menuItemBackgroundColor: menuItemBackgroundColor,
|
|
50044
|
+
menuItemColor: menuItemColor,
|
|
50045
|
+
menuItemColorDelete: menuItemColorDelete,
|
|
50046
|
+
menuItemHoverBackgroundColor: menuItemHoverBackgroundColor,
|
|
50047
|
+
menuItemHoverBackgroundColorDelete: menuItemHoverBackgroundColorDelete,
|
|
50048
|
+
menuItemHoverColor: menuItemHoverColor
|
|
50049
|
+
};
|
|
50050
|
+
|
|
50051
|
+
var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
|
|
50052
|
+
displayName: "PopupMenuItemstyled__PopupMenuItemContainer",
|
|
50053
|
+
componentId: "sc-urj1su-0"
|
|
50054
|
+
})(["width:100%;margin:0;padding:17px 11px;margin-bottom:5px;border:0;cursor:pointer;text-decoration:none;", " &:hover,&:active{text-decoration:none;", "}"], function (_ref) {
|
|
50055
|
+
var theme = _ref.theme,
|
|
50056
|
+
isDeleteAction = _ref.isDeleteAction;
|
|
50057
|
+
return "\n background-color: ".concat(theme.menuItemBackgroundColor, ";\n color: ").concat(isDeleteAction ? theme.menuItemColorDelete : theme.menuItemColor, ";\n ");
|
|
50058
|
+
}, function (_ref2) {
|
|
50059
|
+
var theme = _ref2.theme,
|
|
50060
|
+
isDeleteAction = _ref2.isDeleteAction;
|
|
50061
|
+
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
50062
|
+
});
|
|
50063
|
+
|
|
50064
|
+
var _excluded$D = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
50065
|
+
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
50066
|
+
var id = _ref.id,
|
|
50067
|
+
closeMenuCallback = _ref.closeMenuCallback,
|
|
50068
|
+
_action = _ref.action,
|
|
50069
|
+
themeValues = _ref.themeValues,
|
|
50070
|
+
text = _ref.text,
|
|
50071
|
+
_ref$hasIcon = _ref.hasIcon,
|
|
50072
|
+
hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
|
|
50073
|
+
_ref$isDeleteAction = _ref.isDeleteAction,
|
|
50074
|
+
isDeleteAction = _ref$isDeleteAction === void 0 ? false : _ref$isDeleteAction,
|
|
50075
|
+
Icon = _ref.icon,
|
|
50076
|
+
textExtraStyles = _ref.textExtraStyles,
|
|
50077
|
+
hoverStyles = _ref.hoverStyles,
|
|
50078
|
+
activeStyles = _ref.activeStyles,
|
|
50079
|
+
extraStyles = _ref.extraStyles,
|
|
50080
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
50081
|
+
return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
|
|
50082
|
+
id: id,
|
|
50083
|
+
role: "menuItem",
|
|
50084
|
+
text: text,
|
|
50085
|
+
action: function action() {
|
|
50086
|
+
_action();
|
|
50087
|
+
closeMenuCallback();
|
|
50088
|
+
},
|
|
50089
|
+
variant: "smallGhost",
|
|
50090
|
+
isDeleteAction: isDeleteAction,
|
|
50091
|
+
theme: themeValues,
|
|
50092
|
+
contentOverride: true,
|
|
50093
|
+
textExtraStyles: textExtraStyles,
|
|
50094
|
+
hoverStyles: hoverStyles,
|
|
50095
|
+
extraStyles: extraStyles,
|
|
50096
|
+
activeStyles: "outline: none; ".concat(activeStyles)
|
|
50097
|
+
}, rest), /*#__PURE__*/React__default.createElement(Box, {
|
|
50098
|
+
extraStyles: "\n display: flex;\n gap: 8px;\n justify-content: center;\n padding: 0;\n "
|
|
50099
|
+
}, hasIcon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
50100
|
+
iconFill: isDeleteAction ? themeValues.menuItemColorDelete : themeValues.menuItemColor
|
|
50101
|
+
}), text && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50102
|
+
variant: "pS",
|
|
50103
|
+
weight: FONT_WEIGHT_SEMIBOLD,
|
|
50104
|
+
fontFamily: "Public Sans, sans-serif",
|
|
50105
|
+
color: isDeleteAction ? themeValues.menuItemColorDelete : themeValues.menuItemColor,
|
|
50106
|
+
extraStyles: textExtraStyles
|
|
50107
|
+
}, text)));
|
|
50108
|
+
};
|
|
50109
|
+
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$U);
|
|
50110
|
+
|
|
50111
|
+
var hoverColor$6 = "#116285";
|
|
50112
|
+
var activeColor$a = "#0E506D";
|
|
50113
|
+
var menuTriggerColor = "#15749D";
|
|
50114
|
+
var backgroundColor$e = "white";
|
|
50115
|
+
var fallbackValues$V = {
|
|
50116
|
+
hoverColor: hoverColor$6,
|
|
50117
|
+
activeColor: activeColor$a,
|
|
50118
|
+
menuTriggerColor: menuTriggerColor,
|
|
50119
|
+
backgroundColor: backgroundColor$e
|
|
50120
|
+
};
|
|
50121
|
+
|
|
50122
|
+
var PopupMenuContainer = styled__default(Box).withConfig({
|
|
50123
|
+
displayName: "PopupMenustyled__PopupMenuContainer",
|
|
50124
|
+
componentId: "sc-1ge13q9-0"
|
|
50125
|
+
})(["display:flex;position:relative;padding:0;"]);
|
|
50126
|
+
var PopupMenuTriggerButton = styled__default(ButtonWithAction).withConfig({
|
|
50127
|
+
displayName: "PopupMenustyled__PopupMenuTriggerButton",
|
|
50128
|
+
componentId: "sc-1ge13q9-1"
|
|
50129
|
+
})(["padding:10px 15px;min-width:auto;&:active,&:focus{outline:none;border:1px solid rgba(196,206,244,1);background-color:rgba(235,239,251,1);}"]);
|
|
50130
|
+
|
|
50131
|
+
var PopupMenu = function PopupMenu(_ref) {
|
|
50132
|
+
var _ref$menuId = _ref.menuId,
|
|
50133
|
+
menuId = _ref$menuId === void 0 ? "popup-menu" : _ref$menuId,
|
|
50134
|
+
_ref$menuItems = _ref.menuItems,
|
|
50135
|
+
menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems,
|
|
50136
|
+
themeValues = _ref.themeValues,
|
|
50137
|
+
_ref$triggerText = _ref.triggerText,
|
|
50138
|
+
triggerText = _ref$triggerText === void 0 ? "trigger text" : _ref$triggerText,
|
|
50139
|
+
_ref$hasIcon = _ref.hasIcon,
|
|
50140
|
+
hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
|
|
50141
|
+
Icon = _ref.icon,
|
|
50142
|
+
_ref$iconHelpText = _ref.iconHelpText,
|
|
50143
|
+
iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
|
|
50144
|
+
menuFocus = _ref.menuFocus,
|
|
50145
|
+
containerExtraStyles = _ref.containerExtraStyles,
|
|
50146
|
+
textExtraStyles = _ref.textExtraStyles,
|
|
50147
|
+
_ref$minWidth = _ref.minWidth,
|
|
50148
|
+
minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
|
|
50149
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
50150
|
+
maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
|
|
50151
|
+
_ref$height = _ref.height,
|
|
50152
|
+
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
50153
|
+
position = _ref.position,
|
|
50154
|
+
_ref$transform = _ref.transform,
|
|
50155
|
+
transform = _ref$transform === void 0 ? "none" : _ref$transform,
|
|
50156
|
+
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
50157
|
+
popupExtraStyles = _ref.popupExtraStyles;
|
|
50158
|
+
var hoverColor = themeValues.hoverColor,
|
|
50159
|
+
activeColor = themeValues.activeColor,
|
|
50160
|
+
menuTriggerColor = themeValues.menuTriggerColor,
|
|
50161
|
+
backgroundColor = themeValues.backgroundColor;
|
|
50162
|
+
var _ref2 = position !== null && position !== void 0 ? position : {},
|
|
50163
|
+
_ref2$top = _ref2.top,
|
|
50164
|
+
top = _ref2$top === void 0 ? "".concat(height, "px") : _ref2$top,
|
|
50165
|
+
_ref2$right = _ref2.right,
|
|
50166
|
+
right = _ref2$right === void 0 ? "auto" : _ref2$right,
|
|
50167
|
+
_ref2$bottom = _ref2.bottom,
|
|
50168
|
+
bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
|
|
50169
|
+
_ref2$left = _ref2.left,
|
|
50170
|
+
left = _ref2$left === void 0 ? "0" : _ref2$left;
|
|
50171
|
+
var _useState = React.useState(false),
|
|
50172
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
50173
|
+
isMenuOpen = _useState2[0],
|
|
50174
|
+
setIsMenuOpen = _useState2[1];
|
|
50175
|
+
var menuRef = React.useRef();
|
|
50176
|
+
var triggerRef = React.useRef();
|
|
50177
|
+
var toggleMenu = function toggleMenu(menuState) {
|
|
50178
|
+
return setIsMenuOpen(menuState);
|
|
50179
|
+
};
|
|
50180
|
+
React.useEffect(function () {
|
|
50181
|
+
var checkIfClickedOutside = function checkIfClickedOutside(e) {
|
|
50182
|
+
// If the menu is open and the clicked target is not within the menu or the trigger
|
|
50183
|
+
if (isMenuOpen && menuRef.current && !menuRef.current.contains(e.target) && triggerRef.current && !triggerRef.current.contains(e.target)) {
|
|
50184
|
+
toggleMenu(false);
|
|
50185
|
+
}
|
|
50186
|
+
};
|
|
50187
|
+
document.addEventListener("click", checkIfClickedOutside);
|
|
50188
|
+
return function () {
|
|
50189
|
+
document.removeEventListener("click", checkIfClickedOutside);
|
|
50190
|
+
};
|
|
50191
|
+
}, [isMenuOpen]);
|
|
50192
|
+
return /*#__PURE__*/React__default.createElement(PopupMenuContainer, {
|
|
50193
|
+
extraStyles: containerExtraStyles
|
|
50194
|
+
}, /*#__PURE__*/React__default.createElement(PopupMenuTriggerButton, {
|
|
50195
|
+
ref: triggerRef,
|
|
50196
|
+
action: function action() {
|
|
50197
|
+
toggleMenu(!isMenuOpen);
|
|
50198
|
+
},
|
|
50199
|
+
onKeyDown: function onKeyDown(e) {
|
|
50200
|
+
if (e.key === "Escape") {
|
|
50201
|
+
toggleMenu(false);
|
|
50202
|
+
}
|
|
50203
|
+
},
|
|
50204
|
+
contentOverride: true,
|
|
50205
|
+
variant: "smallGhost",
|
|
50206
|
+
tabIndex: "0",
|
|
50207
|
+
id: menuId,
|
|
50208
|
+
borderRadius: "8px",
|
|
50209
|
+
"aria-haspopup": "true",
|
|
50210
|
+
"aria-expanded": isMenuOpen,
|
|
50211
|
+
"aria-controls": "".concat(menuId, "-container"),
|
|
50212
|
+
extraStyles: buttonExtraStyles
|
|
50213
|
+
}, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
|
|
50214
|
+
padding: "0",
|
|
50215
|
+
srOnly: true
|
|
50216
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50217
|
+
id: "btn".concat(menuId, "_info")
|
|
50218
|
+
}, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50219
|
+
color: menuTriggerColor,
|
|
50220
|
+
extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
|
|
50221
|
+
}, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
|
|
50222
|
+
as: "div",
|
|
50223
|
+
id: "".concat(menuId, "-container"),
|
|
50224
|
+
ref: menuRef,
|
|
50225
|
+
onKeyDown: function onKeyDown(e) {
|
|
50226
|
+
if (e.key === "Escape") {
|
|
50227
|
+
toggleMenu(false);
|
|
50228
|
+
}
|
|
50229
|
+
},
|
|
50230
|
+
background: backgroundColor,
|
|
50231
|
+
borderRadius: "8px",
|
|
50232
|
+
boxShadow: "\n 0px 7px 32px 0px rgba(41, 42, 51, 0.2),\n 0px 1px 4px 0px rgba(41, 42, 51, 0.2),\n 0px 1px 8px -1px rgba(41, 42, 51, 0.3);\n ",
|
|
50233
|
+
role: "menu",
|
|
50234
|
+
"aria-labelledby": menuId,
|
|
50235
|
+
tabIndex: menuFocus && isMenuOpen ? "0" : "-1",
|
|
50236
|
+
minWidth: minWidth,
|
|
50237
|
+
maxWidth: maxWidth,
|
|
50238
|
+
extraStyles: "\n display: ".concat(isMenuOpen ? "block" : "none", ";\n position: absolute;\n padding: 8px 8px 3px 8px;\n top: ").concat(top, "; \n left: ").concat(left, ";\n right: ").concat(right, ";\n bottom: ").concat(bottom, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ").concat(popupExtraStyles, ";\n ")
|
|
50239
|
+
}, menuItems.map(function (item, index) {
|
|
50240
|
+
return /*#__PURE__*/React__default.createElement(PopupMenuItem$1, _extends({
|
|
50241
|
+
key: index,
|
|
50242
|
+
id: "".concat(menuId, "-item-").concat(index),
|
|
50243
|
+
closeMenuCallback: function closeMenuCallback() {
|
|
50244
|
+
toggleMenu(false);
|
|
50245
|
+
// focus back to trigger button when menu closes
|
|
50246
|
+
triggerRef.current.focus();
|
|
50247
|
+
}
|
|
50248
|
+
}, item));
|
|
50249
|
+
})));
|
|
50250
|
+
};
|
|
50251
|
+
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$V);
|
|
50252
|
+
|
|
50253
|
+
var pageBackground = "#FBFCFD";
|
|
50254
|
+
var fallbackValues$W = {
|
|
49744
50255
|
pageBackground: pageBackground
|
|
49745
50256
|
};
|
|
49746
50257
|
|
|
@@ -49788,7 +50299,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
49788
50299
|
padding: "0"
|
|
49789
50300
|
})));
|
|
49790
50301
|
};
|
|
49791
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
50302
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$W));
|
|
49792
50303
|
|
|
49793
50304
|
var CenterStack = function CenterStack(_ref) {
|
|
49794
50305
|
var header = _ref.header,
|
|
@@ -49831,7 +50342,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
49831
50342
|
padding: "0"
|
|
49832
50343
|
})));
|
|
49833
50344
|
};
|
|
49834
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
50345
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$W));
|
|
49835
50346
|
|
|
49836
50347
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
49837
50348
|
var header = _ref.header,
|
|
@@ -49846,13 +50357,15 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
49846
50357
|
_ref$gutters = _ref.gutters,
|
|
49847
50358
|
gutters = _ref$gutters === void 0 ? "2rem" : _ref$gutters,
|
|
49848
50359
|
_ref$fillPageVertical = _ref.fillPageVertical,
|
|
49849
|
-
fillPageVertical = _ref$fillPageVertical === void 0 ? false : _ref$fillPageVertical
|
|
50360
|
+
fillPageVertical = _ref$fillPageVertical === void 0 ? false : _ref$fillPageVertical,
|
|
50361
|
+
_ref$background = _ref.background,
|
|
50362
|
+
background = _ref$background === void 0 ? COOL_GREY_05 : _ref$background;
|
|
49850
50363
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
49851
50364
|
var isMobile = themeContext.isMobile;
|
|
49852
50365
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
49853
50366
|
padding: "0",
|
|
49854
50367
|
minWidth: "100%",
|
|
49855
|
-
background:
|
|
50368
|
+
background: background,
|
|
49856
50369
|
extraStyles: "flex-grow: 1;"
|
|
49857
50370
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
49858
50371
|
childGap: "0",
|
|
@@ -49875,7 +50388,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
49875
50388
|
padding: "0"
|
|
49876
50389
|
})));
|
|
49877
50390
|
};
|
|
49878
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
50391
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$W));
|
|
49879
50392
|
|
|
49880
50393
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
49881
50394
|
var header = _ref.header,
|
|
@@ -49928,7 +50441,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
49928
50441
|
padding: "0"
|
|
49929
50442
|
})));
|
|
49930
50443
|
};
|
|
49931
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
50444
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$W));
|
|
49932
50445
|
|
|
49933
50446
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
49934
50447
|
var header = _ref.header,
|
|
@@ -49998,7 +50511,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
49998
50511
|
key: "footer-box"
|
|
49999
50512
|
})));
|
|
50000
50513
|
};
|
|
50001
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
50514
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$W));
|
|
50002
50515
|
|
|
50003
50516
|
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
50004
50517
|
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
@@ -50076,6 +50589,7 @@ exports.Checkbox = Checkbox$1;
|
|
|
50076
50589
|
exports.CheckboxList = CheckboxList$1;
|
|
50077
50590
|
exports.CheckmarkIcon = CheckmarkIcon;
|
|
50078
50591
|
exports.ChevronIcon = ChevronIcon$1;
|
|
50592
|
+
exports.CloseIcon = CloseIcon;
|
|
50079
50593
|
exports.Cluster = Cluster;
|
|
50080
50594
|
exports.CollapsibleSection = CollapsibleSection$1;
|
|
50081
50595
|
exports.Copyable = Copyable;
|
|
@@ -50170,6 +50684,7 @@ exports.Placeholder = Placeholder$1;
|
|
|
50170
50684
|
exports.PlusCircleIcon = PlusCircleIcon;
|
|
50171
50685
|
exports.PointOfSaleImage = PointOfSaleImage;
|
|
50172
50686
|
exports.Popover = Popover$1;
|
|
50687
|
+
exports.PopupMenu = PopupMenu$1;
|
|
50173
50688
|
exports.ProcessingFee = ProcessingFee$1;
|
|
50174
50689
|
exports.ProfileIcon = ProfileIcon$1;
|
|
50175
50690
|
exports.ProfileIconSmall = ProfileIconSmall$1;
|
|
@@ -50228,6 +50743,7 @@ exports.Title = Title$1;
|
|
|
50228
50743
|
exports.ToastNotification = ToastNotification;
|
|
50229
50744
|
exports.ToggleSwitch = ToggleSwitch$1;
|
|
50230
50745
|
exports.TrashIcon = TrashIcon$1;
|
|
50746
|
+
exports.TrashIconV2 = TrashIconV2$1;
|
|
50231
50747
|
exports.TypeaheadInput = TypeaheadInput;
|
|
50232
50748
|
exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
|
|
50233
50749
|
exports.VoidedIcon = VoidedIcon;
|
|
@@ -50240,10 +50756,10 @@ exports.WorkflowTile = WorkflowTile;
|
|
|
50240
50756
|
exports.XCircleIconMedium = XCircleIconMedium;
|
|
50241
50757
|
exports.XCircleIconSmall = XCircleIconSmall;
|
|
50242
50758
|
exports.cardRegistry = cardRegistry;
|
|
50243
|
-
exports.constants = index$
|
|
50759
|
+
exports.constants = index$4;
|
|
50244
50760
|
exports.createPartialAmountFormState = createPartialAmountFormState;
|
|
50245
50761
|
exports.createPartialAmountFormValidators = createPartialAmountFormValidators;
|
|
50246
|
-
exports.hooks = index$
|
|
50762
|
+
exports.hooks = index$5;
|
|
50247
50763
|
exports.util = index$6;
|
|
50248
50764
|
exports.withWindowSize = withWindowSize;
|
|
50249
50765
|
//# sourceMappingURL=index.cjs.js.map
|