@thecb/components 10.1.1-beta.2 → 10.1.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +178 -150
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +178 -150
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/atoms/button-with-action/ButtonWithAction.js +5 -7
- package/src/components/atoms/button-with-action/ButtonWithAction.stories.js +1 -4
- package/src/components/atoms/button-with-link/ButtonWithLink.js +1 -5
- package/src/components/atoms/icons/MultiCartIcon.js +6 -12
- package/src/components/atoms/jumbo/Jumbo.js +1 -5
- package/src/components/atoms/layouts/Box.styled.js +0 -15
package/dist/index.cjs.js
CHANGED
|
@@ -6482,7 +6482,7 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6482
6482
|
}).withConfig({
|
|
6483
6483
|
displayName: "Boxstyled__BoxWrapper",
|
|
6484
6484
|
componentId: "sc-1f9ij0d-0"
|
|
6485
|
-
})(["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{", "}&
|
|
6485
|
+
})(["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) {
|
|
6486
6486
|
var padding = _ref2.padding;
|
|
6487
6487
|
return padding;
|
|
6488
6488
|
}, function (_ref3) {
|
|
@@ -6537,17 +6537,13 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6537
6537
|
as = _ref17.as;
|
|
6538
6538
|
return styled.css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6539
6539
|
}, function (_ref18) {
|
|
6540
|
-
var
|
|
6541
|
-
as = _ref18.as;
|
|
6542
|
-
return styled.css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6543
|
-
}, function (_ref19) {
|
|
6544
|
-
var color = _ref19.color;
|
|
6540
|
+
var color = _ref18.color;
|
|
6545
6541
|
return color;
|
|
6546
|
-
}, function (
|
|
6547
|
-
var hiddenStyles =
|
|
6542
|
+
}, function (_ref19) {
|
|
6543
|
+
var hiddenStyles = _ref19.hiddenStyles;
|
|
6548
6544
|
return hiddenStyles && styled.css(["display:none;"]);
|
|
6549
|
-
}, function (
|
|
6550
|
-
var extraStyles =
|
|
6545
|
+
}, function (_ref20) {
|
|
6546
|
+
var extraStyles = _ref20.extraStyles;
|
|
6551
6547
|
return styled.css(["", ""], extraStyles);
|
|
6552
6548
|
});
|
|
6553
6549
|
/* eslint-enable no-unused-vars */
|
|
@@ -12888,7 +12884,7 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
|
|
|
12888
12884
|
}))))));
|
|
12889
12885
|
};
|
|
12890
12886
|
|
|
12891
|
-
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "
|
|
12887
|
+
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "loadingColor", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children", "extraDisabledStyles"];
|
|
12892
12888
|
var rotate$1 = posed.div({
|
|
12893
12889
|
fixed: {
|
|
12894
12890
|
rotate: "0deg"
|
|
@@ -12951,8 +12947,6 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12951
12947
|
textWrap = _ref2$textWrap === void 0 ? false : _ref2$textWrap,
|
|
12952
12948
|
_ref2$isLoading = _ref2.isLoading,
|
|
12953
12949
|
isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
|
|
12954
|
-
_ref2$disabled = _ref2.disabled,
|
|
12955
|
-
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
12956
12950
|
_ref2$loadingColor = _ref2.loadingColor,
|
|
12957
12951
|
loadingColor = _ref2$loadingColor === void 0 ? "white" : _ref2$loadingColor,
|
|
12958
12952
|
_ref2$dataQa = _ref2.dataQa,
|
|
@@ -12972,7 +12966,7 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12972
12966
|
var isMobile = themeContext.isMobile;
|
|
12973
12967
|
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 ");
|
|
12974
12968
|
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 ");
|
|
12975
|
-
var disabledStyles = "\n background-color: #6D717E;\n border-color: #6D717E;\n color: #FFFFFF;\n cursor: default;\n &:focus {\n
|
|
12969
|
+
var disabledStyles = "\n background-color: #6D717E;\n border-color: #6D717E;\n color: #FFFFFF;\n cursor: default;\n &:focus {\n box-shadow: 0 0 10px #6D717E;\n outline: none;\n }\n ".concat(extraDisabledStyles, "\n ");
|
|
12976
12970
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
12977
12971
|
ref: ref,
|
|
12978
12972
|
variant: variant,
|
|
@@ -12981,12 +12975,11 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12981
12975
|
minWidth: themeValues.minWidth,
|
|
12982
12976
|
background: themeValues.backgroundColor,
|
|
12983
12977
|
border: themeValues.border,
|
|
12984
|
-
hoverStyles:
|
|
12985
|
-
activeStyles:
|
|
12978
|
+
hoverStyles: hoverStyles,
|
|
12979
|
+
activeStyles: activeStyles,
|
|
12986
12980
|
disabledStyles: disabledStyles,
|
|
12987
|
-
"aria-disabled": disabled,
|
|
12988
12981
|
as: "button",
|
|
12989
|
-
onClick: isLoading
|
|
12982
|
+
onClick: isLoading ? undefined : action,
|
|
12990
12983
|
borderRadius: "2px",
|
|
12991
12984
|
theme: themeContext,
|
|
12992
12985
|
extraStyles: "margin: 0.5rem; ".concat(extraStyles),
|
|
@@ -18311,18 +18304,15 @@ var KebabMenuIcon = function KebabMenuIcon() {
|
|
|
18311
18304
|
var MultiCartIcon = function MultiCartIcon(_ref) {
|
|
18312
18305
|
var _ref$iconFill = _ref.iconFill,
|
|
18313
18306
|
iconFill = _ref$iconFill === void 0 ? "#3B5BDB" : _ref$iconFill,
|
|
18314
|
-
|
|
18315
|
-
isMobile = _ref$isMobile === void 0 ? true : _ref$isMobile;
|
|
18316
|
-
var iconWidth = isMobile ? "20" : "25";
|
|
18317
|
-
var iconHeight = isMobile ? "17" : "23";
|
|
18307
|
+
iconStyle = _ref.iconStyle;
|
|
18318
18308
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
18319
18309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18320
|
-
width:
|
|
18321
|
-
height:
|
|
18322
|
-
viewBox: "0 0
|
|
18323
|
-
|
|
18310
|
+
width: "20",
|
|
18311
|
+
height: "17",
|
|
18312
|
+
viewBox: "0 0 20 17",
|
|
18313
|
+
style: iconStyle
|
|
18324
18314
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18325
|
-
d:
|
|
18315
|
+
d: "M22.6875 13.4336C22.6016 13.6914 22.4727 13.9062 22.3008 14.0352C22.1289 14.207 21.9141 14.25 21.6992 14.25H9.10938L9.36719 15.625H20.9258C21.2266 15.625 21.4844 15.7539 21.6992 16.0117C21.8711 16.2695 21.957 16.5703 21.9141 16.8711L21.6562 17.9453C22.0859 18.1602 22.3867 18.4609 22.6445 18.8477C22.9023 19.2344 23.0312 19.6641 23.0312 20.0938C23.0312 20.7812 22.7734 21.3398 22.3008 21.8125C21.8281 22.2852 21.2695 22.5 20.625 22.5C19.9375 22.5 19.3789 22.2852 18.9062 21.8125C18.4336 21.3398 18.2188 20.7812 18.2188 20.0938C18.2188 19.4062 18.4336 18.8477 18.9492 18.375H9.92578C10.3984 18.8477 10.6562 19.4062 10.6562 20.0938C10.6562 20.7812 10.3984 21.3398 9.92578 21.8125C9.45312 22.2852 8.89453 22.5 8.25 22.5C7.5625 22.5 7.00391 22.2852 6.53125 21.8125C6.05859 21.3398 5.84375 20.7812 5.84375 20.0938C5.84375 19.6641 5.92969 19.2773 6.14453 18.8906C6.35938 18.5469 6.66016 18.2461 7.04688 17.9883L4.03906 3.25H1.03125C0.730469 3.25 0.472656 3.16406 0.300781 2.94922C0.0859375 2.77734 0 2.51953 0 2.21875V1.53125C0 1.27344 0.0859375 1.01562 0.300781 0.800781C0.472656 0.628906 0.730469 0.5 1.03125 0.5H5.45703C5.67188 0.5 5.88672 0.585938 6.05859 0.757812C6.23047 0.929688 6.35938 1.10156 6.44531 1.31641L6.83203 3.25H23.7188C24.0625 3.25 24.3203 3.37891 24.5352 3.63672C24.707 3.89453 24.793 4.19531 24.707 4.49609L22.6875 13.4336Z",
|
|
18326
18316
|
fill: iconFill
|
|
18327
18317
|
}));
|
|
18328
18318
|
};
|
|
@@ -21835,7 +21825,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21835
21825
|
extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
|
|
21836
21826
|
dataQa: dataQa
|
|
21837
21827
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, _extends({}, otherProps, {
|
|
21838
|
-
disabled: disabled,
|
|
21839
21828
|
extraStyles: extraStyles
|
|
21840
21829
|
})));
|
|
21841
21830
|
};
|
|
@@ -22522,17 +22511,18 @@ var DropdownIcon = function DropdownIcon() {
|
|
|
22522
22511
|
};
|
|
22523
22512
|
|
|
22524
22513
|
var check = function (it) {
|
|
22525
|
-
return it && it.Math
|
|
22514
|
+
return it && it.Math === Math && it;
|
|
22526
22515
|
};
|
|
22527
22516
|
|
|
22528
22517
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22529
22518
|
var global_1 =
|
|
22530
|
-
// eslint-disable-next-line es
|
|
22519
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
22531
22520
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22532
22521
|
check(typeof window == 'object' && window) ||
|
|
22533
22522
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
22534
22523
|
check(typeof self == 'object' && self) ||
|
|
22535
22524
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22525
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22536
22526
|
// eslint-disable-next-line no-new-func -- fallback
|
|
22537
22527
|
(function () { return this; })() || Function('return this')();
|
|
22538
22528
|
|
|
@@ -22546,12 +22536,12 @@ var fails = function (exec) {
|
|
|
22546
22536
|
|
|
22547
22537
|
// Detect IE8's incomplete defineProperty implementation
|
|
22548
22538
|
var descriptors = !fails(function () {
|
|
22549
|
-
// eslint-disable-next-line es
|
|
22550
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1]
|
|
22539
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22540
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
22551
22541
|
});
|
|
22552
22542
|
|
|
22553
22543
|
var functionBindNative = !fails(function () {
|
|
22554
|
-
// eslint-disable-next-line es
|
|
22544
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
22555
22545
|
var test = (function () { /* empty */ }).bind();
|
|
22556
22546
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22557
22547
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -22564,7 +22554,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
22564
22554
|
};
|
|
22565
22555
|
|
|
22566
22556
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
22567
|
-
// eslint-disable-next-line es
|
|
22557
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22568
22558
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22569
22559
|
|
|
22570
22560
|
// Nashorn ~ JDK8 bug
|
|
@@ -22591,14 +22581,11 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
22591
22581
|
};
|
|
22592
22582
|
|
|
22593
22583
|
var FunctionPrototype = Function.prototype;
|
|
22594
|
-
var bind$1 = FunctionPrototype.bind;
|
|
22595
22584
|
var call$1 = FunctionPrototype.call;
|
|
22596
|
-
var
|
|
22585
|
+
var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
|
|
22597
22586
|
|
|
22598
|
-
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
22599
|
-
return
|
|
22600
|
-
} : function (fn) {
|
|
22601
|
-
return fn && function () {
|
|
22587
|
+
var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
|
|
22588
|
+
return function () {
|
|
22602
22589
|
return call$1.apply(fn, arguments);
|
|
22603
22590
|
};
|
|
22604
22591
|
};
|
|
@@ -22619,15 +22606,21 @@ var indexedObject = fails(function () {
|
|
|
22619
22606
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22620
22607
|
return !$Object('z').propertyIsEnumerable(0);
|
|
22621
22608
|
}) ? function (it) {
|
|
22622
|
-
return classofRaw(it)
|
|
22609
|
+
return classofRaw(it) === 'String' ? split(it, '') : $Object(it);
|
|
22623
22610
|
} : $Object;
|
|
22624
22611
|
|
|
22612
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
22613
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
22614
|
+
var isNullOrUndefined = function (it) {
|
|
22615
|
+
return it === null || it === undefined;
|
|
22616
|
+
};
|
|
22617
|
+
|
|
22625
22618
|
var $TypeError = TypeError;
|
|
22626
22619
|
|
|
22627
22620
|
// `RequireObjectCoercible` abstract operation
|
|
22628
22621
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
22629
22622
|
var requireObjectCoercible = function (it) {
|
|
22630
|
-
if (it
|
|
22623
|
+
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
|
|
22631
22624
|
return it;
|
|
22632
22625
|
};
|
|
22633
22626
|
|
|
@@ -22639,13 +22632,32 @@ var toIndexedObject = function (it) {
|
|
|
22639
22632
|
return indexedObject(requireObjectCoercible(it));
|
|
22640
22633
|
};
|
|
22641
22634
|
|
|
22635
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
22636
|
+
|
|
22637
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
22638
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
22639
|
+
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
22640
|
+
|
|
22641
|
+
var documentAll_1 = {
|
|
22642
|
+
all: documentAll,
|
|
22643
|
+
IS_HTMLDDA: IS_HTMLDDA
|
|
22644
|
+
};
|
|
22645
|
+
|
|
22646
|
+
var documentAll$1 = documentAll_1.all;
|
|
22647
|
+
|
|
22642
22648
|
// `IsCallable` abstract operation
|
|
22643
22649
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
22644
|
-
var isCallable = function (argument) {
|
|
22650
|
+
var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
|
|
22651
|
+
return typeof argument == 'function' || argument === documentAll$1;
|
|
22652
|
+
} : function (argument) {
|
|
22645
22653
|
return typeof argument == 'function';
|
|
22646
22654
|
};
|
|
22647
22655
|
|
|
22648
|
-
var
|
|
22656
|
+
var documentAll$2 = documentAll_1.all;
|
|
22657
|
+
|
|
22658
|
+
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
22659
|
+
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
22660
|
+
} : function (it) {
|
|
22649
22661
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
22650
22662
|
};
|
|
22651
22663
|
|
|
@@ -22659,7 +22671,7 @@ var getBuiltIn = function (namespace, method) {
|
|
|
22659
22671
|
|
|
22660
22672
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
22661
22673
|
|
|
22662
|
-
var engineUserAgent =
|
|
22674
|
+
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
22663
22675
|
|
|
22664
22676
|
var process$1 = global_1.process;
|
|
22665
22677
|
var Deno = global_1.Deno;
|
|
@@ -22686,24 +22698,29 @@ if (!version && engineUserAgent) {
|
|
|
22686
22698
|
|
|
22687
22699
|
var engineV8Version = version;
|
|
22688
22700
|
|
|
22689
|
-
/* eslint-disable es
|
|
22701
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
22690
22702
|
|
|
22691
22703
|
|
|
22692
22704
|
|
|
22693
|
-
|
|
22694
|
-
var
|
|
22695
|
-
|
|
22705
|
+
|
|
22706
|
+
var $String = global_1.String;
|
|
22707
|
+
|
|
22708
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
22709
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22710
|
+
var symbol = Symbol('symbol detection');
|
|
22696
22711
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
22697
22712
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
22698
|
-
|
|
22713
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
22714
|
+
// of course, fail.
|
|
22715
|
+
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22699
22716
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
22700
22717
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
22701
22718
|
});
|
|
22702
22719
|
|
|
22703
|
-
/* eslint-disable es
|
|
22720
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
22704
22721
|
|
|
22705
22722
|
|
|
22706
|
-
var useSymbolAsUid =
|
|
22723
|
+
var useSymbolAsUid = symbolConstructorDetection
|
|
22707
22724
|
&& !Symbol.sham
|
|
22708
22725
|
&& typeof Symbol.iterator == 'symbol';
|
|
22709
22726
|
|
|
@@ -22716,11 +22733,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
|
|
|
22716
22733
|
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
22717
22734
|
};
|
|
22718
22735
|
|
|
22719
|
-
var $String = String;
|
|
22736
|
+
var $String$1 = String;
|
|
22720
22737
|
|
|
22721
22738
|
var tryToString = function (argument) {
|
|
22722
22739
|
try {
|
|
22723
|
-
return $String(argument);
|
|
22740
|
+
return $String$1(argument);
|
|
22724
22741
|
} catch (error) {
|
|
22725
22742
|
return 'Object';
|
|
22726
22743
|
}
|
|
@@ -22731,14 +22748,14 @@ var $TypeError$1 = TypeError;
|
|
|
22731
22748
|
// `Assert: IsCallable(argument) is true`
|
|
22732
22749
|
var aCallable = function (argument) {
|
|
22733
22750
|
if (isCallable(argument)) return argument;
|
|
22734
|
-
throw $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22751
|
+
throw new $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22735
22752
|
};
|
|
22736
22753
|
|
|
22737
22754
|
// `GetMethod` abstract operation
|
|
22738
22755
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
22739
22756
|
var getMethod = function (V, P) {
|
|
22740
22757
|
var func = V[P];
|
|
22741
|
-
return func
|
|
22758
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
22742
22759
|
};
|
|
22743
22760
|
|
|
22744
22761
|
var $TypeError$2 = TypeError;
|
|
@@ -22750,10 +22767,10 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
22750
22767
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22751
22768
|
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
|
22752
22769
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22753
|
-
throw $TypeError$2("Can't convert object to primitive value");
|
|
22770
|
+
throw new $TypeError$2("Can't convert object to primitive value");
|
|
22754
22771
|
};
|
|
22755
22772
|
|
|
22756
|
-
// eslint-disable-next-line es
|
|
22773
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22757
22774
|
var defineProperty = Object.defineProperty;
|
|
22758
22775
|
|
|
22759
22776
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -22770,13 +22787,16 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
|
|
|
22770
22787
|
var sharedStore = store;
|
|
22771
22788
|
|
|
22772
22789
|
var shared = createCommonjsModule(function (module) {
|
|
22790
|
+
|
|
22791
|
+
|
|
22792
|
+
|
|
22773
22793
|
(module.exports = function (key, value) {
|
|
22774
22794
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
22775
22795
|
})('versions', []).push({
|
|
22776
|
-
version: '3.
|
|
22796
|
+
version: '3.33.3',
|
|
22777
22797
|
mode: 'global',
|
|
22778
|
-
copyright: '© 2014-
|
|
22779
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
22798
|
+
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
22799
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
|
|
22780
22800
|
source: 'https://github.com/zloirock/core-js'
|
|
22781
22801
|
});
|
|
22782
22802
|
});
|
|
@@ -22793,7 +22813,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
22793
22813
|
|
|
22794
22814
|
// `HasOwnProperty` abstract operation
|
|
22795
22815
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
22796
|
-
// eslint-disable-next-line es
|
|
22816
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
22797
22817
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
22798
22818
|
return hasOwnProperty(toObject(it), key);
|
|
22799
22819
|
};
|
|
@@ -22806,21 +22826,15 @@ var uid = function (key) {
|
|
|
22806
22826
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
22807
22827
|
};
|
|
22808
22828
|
|
|
22809
|
-
var WellKnownSymbolsStore = shared('wks');
|
|
22810
22829
|
var Symbol$1 = global_1.Symbol;
|
|
22811
|
-
var
|
|
22812
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
22830
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
22831
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
22813
22832
|
|
|
22814
22833
|
var wellKnownSymbol = function (name) {
|
|
22815
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)
|
|
22816
|
-
|
|
22817
|
-
|
|
22818
|
-
|
|
22819
|
-
} else if (useSymbolAsUid && symbolFor) {
|
|
22820
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
22821
|
-
} else {
|
|
22822
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
22823
|
-
}
|
|
22834
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
|
|
22835
|
+
WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
|
|
22836
|
+
? Symbol$1[name]
|
|
22837
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
22824
22838
|
} return WellKnownSymbolsStore[name];
|
|
22825
22839
|
};
|
|
22826
22840
|
|
|
@@ -22837,7 +22851,7 @@ var toPrimitive = function (input, pref) {
|
|
|
22837
22851
|
if (pref === undefined) pref = 'default';
|
|
22838
22852
|
result = functionCall(exoticToPrim, input, pref);
|
|
22839
22853
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
22840
|
-
throw $TypeError$3("Can't convert object to primitive value");
|
|
22854
|
+
throw new $TypeError$3("Can't convert object to primitive value");
|
|
22841
22855
|
}
|
|
22842
22856
|
if (pref === undefined) pref = 'number';
|
|
22843
22857
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -22860,13 +22874,13 @@ var documentCreateElement = function (it) {
|
|
|
22860
22874
|
|
|
22861
22875
|
// Thanks to IE8 for its funny defineProperty
|
|
22862
22876
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
22863
|
-
// eslint-disable-next-line es
|
|
22877
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22864
22878
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
22865
22879
|
get: function () { return 7; }
|
|
22866
|
-
}).a
|
|
22880
|
+
}).a !== 7;
|
|
22867
22881
|
});
|
|
22868
22882
|
|
|
22869
|
-
// eslint-disable-next-line es
|
|
22883
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22870
22884
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22871
22885
|
|
|
22872
22886
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -22887,26 +22901,26 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
22887
22901
|
// V8 ~ Chrome 36-
|
|
22888
22902
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
22889
22903
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
22890
|
-
// eslint-disable-next-line es
|
|
22904
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22891
22905
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
22892
22906
|
value: 42,
|
|
22893
22907
|
writable: false
|
|
22894
|
-
}).prototype
|
|
22908
|
+
}).prototype !== 42;
|
|
22895
22909
|
});
|
|
22896
22910
|
|
|
22897
|
-
var $String$
|
|
22911
|
+
var $String$2 = String;
|
|
22898
22912
|
var $TypeError$4 = TypeError;
|
|
22899
22913
|
|
|
22900
22914
|
// `Assert: Type(argument) is Object`
|
|
22901
22915
|
var anObject = function (argument) {
|
|
22902
22916
|
if (isObject(argument)) return argument;
|
|
22903
|
-
throw $TypeError$4($String$
|
|
22917
|
+
throw new $TypeError$4($String$2(argument) + ' is not an object');
|
|
22904
22918
|
};
|
|
22905
22919
|
|
|
22906
22920
|
var $TypeError$5 = TypeError;
|
|
22907
|
-
// eslint-disable-next-line es
|
|
22921
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22908
22922
|
var $defineProperty = Object.defineProperty;
|
|
22909
|
-
// eslint-disable-next-line es
|
|
22923
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22910
22924
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
22911
22925
|
var ENUMERABLE = 'enumerable';
|
|
22912
22926
|
var CONFIGURABLE = 'configurable';
|
|
@@ -22936,7 +22950,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
|
|
|
22936
22950
|
if (ie8DomDefine) try {
|
|
22937
22951
|
return $defineProperty(O, P, Attributes);
|
|
22938
22952
|
} catch (error) { /* empty */ }
|
|
22939
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
|
|
22953
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
|
|
22940
22954
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
22941
22955
|
return O;
|
|
22942
22956
|
};
|
|
@@ -22953,7 +22967,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
22953
22967
|
};
|
|
22954
22968
|
|
|
22955
22969
|
var FunctionPrototype$1 = Function.prototype;
|
|
22956
|
-
// eslint-disable-next-line es
|
|
22970
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22957
22971
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
22958
22972
|
|
|
22959
22973
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -22980,7 +22994,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
22980
22994
|
|
|
22981
22995
|
var WeakMap$1 = global_1.WeakMap;
|
|
22982
22996
|
|
|
22983
|
-
var
|
|
22997
|
+
var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
22984
22998
|
|
|
22985
22999
|
var keys$1 = shared('keys');
|
|
22986
23000
|
|
|
@@ -23003,27 +23017,29 @@ var getterFor = function (TYPE) {
|
|
|
23003
23017
|
return function (it) {
|
|
23004
23018
|
var state;
|
|
23005
23019
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
23006
|
-
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
23020
|
+
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
23007
23021
|
} return state;
|
|
23008
23022
|
};
|
|
23009
23023
|
};
|
|
23010
23024
|
|
|
23011
|
-
if (
|
|
23025
|
+
if (weakMapBasicDetection || sharedStore.state) {
|
|
23012
23026
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
23013
|
-
|
|
23014
|
-
|
|
23015
|
-
|
|
23027
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
23028
|
+
store$1.get = store$1.get;
|
|
23029
|
+
store$1.has = store$1.has;
|
|
23030
|
+
store$1.set = store$1.set;
|
|
23031
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
23016
23032
|
set = function (it, metadata) {
|
|
23017
|
-
if (
|
|
23033
|
+
if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
23018
23034
|
metadata.facade = it;
|
|
23019
|
-
|
|
23035
|
+
store$1.set(it, metadata);
|
|
23020
23036
|
return metadata;
|
|
23021
23037
|
};
|
|
23022
23038
|
get = function (it) {
|
|
23023
|
-
return
|
|
23039
|
+
return store$1.get(it) || {};
|
|
23024
23040
|
};
|
|
23025
23041
|
has = function (it) {
|
|
23026
|
-
return
|
|
23042
|
+
return store$1.has(it);
|
|
23027
23043
|
};
|
|
23028
23044
|
} else {
|
|
23029
23045
|
var STATE = sharedKey('state');
|
|
@@ -23051,14 +23067,23 @@ var internalState = {
|
|
|
23051
23067
|
};
|
|
23052
23068
|
|
|
23053
23069
|
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
|
23070
|
+
|
|
23071
|
+
|
|
23072
|
+
|
|
23073
|
+
|
|
23074
|
+
|
|
23054
23075
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
23055
23076
|
|
|
23056
23077
|
|
|
23057
23078
|
|
|
23058
23079
|
var enforceInternalState = internalState.enforce;
|
|
23059
23080
|
var getInternalState = internalState.get;
|
|
23060
|
-
|
|
23081
|
+
var $String = String;
|
|
23082
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
23061
23083
|
var defineProperty = Object.defineProperty;
|
|
23084
|
+
var stringSlice = functionUncurryThis(''.slice);
|
|
23085
|
+
var replace = functionUncurryThis(''.replace);
|
|
23086
|
+
var join = functionUncurryThis([].join);
|
|
23062
23087
|
|
|
23063
23088
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
23064
23089
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -23067,8 +23092,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
|
23067
23092
|
var TEMPLATE = String(String).split('String');
|
|
23068
23093
|
|
|
23069
23094
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
23070
|
-
if (String(name)
|
|
23071
|
-
name = '[' + String(name)
|
|
23095
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
23096
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
23072
23097
|
}
|
|
23073
23098
|
if (options && options.getter) name = 'get ' + name;
|
|
23074
23099
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -23087,7 +23112,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
23087
23112
|
} catch (error) { /* empty */ }
|
|
23088
23113
|
var state = enforceInternalState(value);
|
|
23089
23114
|
if (!hasOwnProperty_1(state, 'source')) {
|
|
23090
|
-
state.source =
|
|
23115
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
23091
23116
|
} return value;
|
|
23092
23117
|
};
|
|
23093
23118
|
|
|
@@ -23126,7 +23151,7 @@ var floor = Math.floor;
|
|
|
23126
23151
|
|
|
23127
23152
|
// `Math.trunc` method
|
|
23128
23153
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
23129
|
-
// eslint-disable-next-line es
|
|
23154
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
23130
23155
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
23131
23156
|
var n = +x;
|
|
23132
23157
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -23174,10 +23199,10 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
23174
23199
|
var value;
|
|
23175
23200
|
// Array#includes uses SameValueZero equality algorithm
|
|
23176
23201
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23177
|
-
if (IS_INCLUDES && el
|
|
23202
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
23178
23203
|
value = O[index++];
|
|
23179
23204
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23180
|
-
if (value
|
|
23205
|
+
if (value !== value) return true;
|
|
23181
23206
|
// Array#indexOf ignores holes, Array#includes - not
|
|
23182
23207
|
} else for (;length > index; index++) {
|
|
23183
23208
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -23227,7 +23252,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
23227
23252
|
|
|
23228
23253
|
// `Object.getOwnPropertyNames` method
|
|
23229
23254
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
23230
|
-
// eslint-disable-next-line es
|
|
23255
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
23231
23256
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
23232
23257
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
23233
23258
|
};
|
|
@@ -23236,7 +23261,7 @@ var objectGetOwnPropertyNames = {
|
|
|
23236
23261
|
f: f$3
|
|
23237
23262
|
};
|
|
23238
23263
|
|
|
23239
|
-
// eslint-disable-next-line es
|
|
23264
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
23240
23265
|
var f$4 = Object.getOwnPropertySymbols;
|
|
23241
23266
|
|
|
23242
23267
|
var objectGetOwnPropertySymbols = {
|
|
@@ -23268,8 +23293,8 @@ var replacement = /#|\.prototype\./;
|
|
|
23268
23293
|
|
|
23269
23294
|
var isForced = function (feature, detection) {
|
|
23270
23295
|
var value = data[normalize(feature)];
|
|
23271
|
-
return value
|
|
23272
|
-
: value
|
|
23296
|
+
return value === POLYFILL ? true
|
|
23297
|
+
: value === NATIVE ? false
|
|
23273
23298
|
: isCallable(detection) ? fails(detection)
|
|
23274
23299
|
: !!detection;
|
|
23275
23300
|
};
|
|
@@ -23349,7 +23374,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
|
23349
23374
|
var $Object$3 = Object;
|
|
23350
23375
|
|
|
23351
23376
|
// ES3 wrong here
|
|
23352
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }())
|
|
23377
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
23353
23378
|
|
|
23354
23379
|
// fallback for IE11 Script Access Denied error
|
|
23355
23380
|
var tryGet = function (it, key) {
|
|
@@ -23367,25 +23392,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
|
23367
23392
|
// builtinTag case
|
|
23368
23393
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
23369
23394
|
// ES3 arguments fallback
|
|
23370
|
-
: (result = classofRaw(O))
|
|
23395
|
+
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
23371
23396
|
};
|
|
23372
23397
|
|
|
23373
|
-
var $String$
|
|
23398
|
+
var $String$3 = String;
|
|
23374
23399
|
|
|
23375
23400
|
var toString_1 = function (argument) {
|
|
23376
|
-
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
23377
|
-
return $String$
|
|
23401
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
23402
|
+
return $String$3(argument);
|
|
23378
23403
|
};
|
|
23379
23404
|
|
|
23380
23405
|
var charAt = functionUncurryThis(''.charAt);
|
|
23381
23406
|
|
|
23382
23407
|
var FORCED = fails(function () {
|
|
23383
|
-
// eslint-disable-next-line es
|
|
23408
|
+
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
23384
23409
|
return '𠮷'.at(-2) !== '\uD842';
|
|
23385
23410
|
});
|
|
23386
23411
|
|
|
23387
23412
|
// `String.prototype.at` method
|
|
23388
|
-
// https://
|
|
23413
|
+
// https://tc39.es/ecma262/#sec-string.prototype.at
|
|
23389
23414
|
_export({ target: 'String', proto: true, forced: FORCED }, {
|
|
23390
23415
|
at: function at(index) {
|
|
23391
23416
|
var S = toString_1(requireObjectCoercible(this));
|
|
@@ -23398,14 +23423,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
23398
23423
|
|
|
23399
23424
|
// `Object.keys` method
|
|
23400
23425
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
23401
|
-
// eslint-disable-next-line es
|
|
23426
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
23402
23427
|
var objectKeys = Object.keys || function keys(O) {
|
|
23403
23428
|
return objectKeysInternal(O, enumBugKeys);
|
|
23404
23429
|
};
|
|
23405
23430
|
|
|
23406
23431
|
// `Object.defineProperties` method
|
|
23407
23432
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
23408
|
-
// eslint-disable-next-line es
|
|
23433
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
23409
23434
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
23410
23435
|
anObject(O);
|
|
23411
23436
|
var props = toIndexedObject(Properties);
|
|
@@ -23494,7 +23519,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
23494
23519
|
|
|
23495
23520
|
// `Object.create` method
|
|
23496
23521
|
// https://tc39.es/ecma262/#sec-object.create
|
|
23497
|
-
// eslint-disable-next-line es
|
|
23522
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
23498
23523
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
23499
23524
|
var result;
|
|
23500
23525
|
if (O !== null) {
|
|
@@ -23514,7 +23539,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
23514
23539
|
|
|
23515
23540
|
// Array.prototype[@@unscopables]
|
|
23516
23541
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
23517
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
23542
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
23518
23543
|
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
23519
23544
|
configurable: true,
|
|
23520
23545
|
value: objectCreate(null)
|
|
@@ -23527,7 +23552,7 @@ var addToUnscopables = function (key) {
|
|
|
23527
23552
|
};
|
|
23528
23553
|
|
|
23529
23554
|
// `Array.prototype.at` method
|
|
23530
|
-
// https://
|
|
23555
|
+
// https://tc39.es/ecma262/#sec-array.prototype.at
|
|
23531
23556
|
_export({ target: 'Array', proto: true }, {
|
|
23532
23557
|
at: function at(index) {
|
|
23533
23558
|
var O = toObject(this);
|
|
@@ -23540,13 +23565,19 @@ _export({ target: 'Array', proto: true }, {
|
|
|
23540
23565
|
|
|
23541
23566
|
addToUnscopables('at');
|
|
23542
23567
|
|
|
23543
|
-
// eslint-disable-next-line es
|
|
23544
|
-
var
|
|
23568
|
+
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
23569
|
+
var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
23570
|
+
|
|
23571
|
+
var defineBuiltInAccessor = function (target, name, descriptor) {
|
|
23572
|
+
if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
|
|
23573
|
+
if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
|
|
23574
|
+
return objectDefineProperty.f(target, name, descriptor);
|
|
23575
|
+
};
|
|
23545
23576
|
|
|
23546
23577
|
var correctPrototypeGetter = !fails(function () {
|
|
23547
23578
|
function F() { /* empty */ }
|
|
23548
23579
|
F.prototype.constructor = null;
|
|
23549
|
-
// eslint-disable-next-line es
|
|
23580
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
23550
23581
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
23551
23582
|
});
|
|
23552
23583
|
|
|
@@ -23556,7 +23587,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
23556
23587
|
|
|
23557
23588
|
// `Object.getPrototypeOf` method
|
|
23558
23589
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
23559
|
-
// eslint-disable-next-line es
|
|
23590
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
23560
23591
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
23561
23592
|
var object = toObject(O);
|
|
23562
23593
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -23566,12 +23597,19 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
|
|
|
23566
23597
|
} return object instanceof $Object$4 ? ObjectPrototype : null;
|
|
23567
23598
|
};
|
|
23568
23599
|
|
|
23569
|
-
var
|
|
23600
|
+
var functionUncurryThisAccessor = function (object, key, method) {
|
|
23601
|
+
try {
|
|
23602
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
23603
|
+
return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
23604
|
+
} catch (error) { /* empty */ }
|
|
23605
|
+
};
|
|
23606
|
+
|
|
23607
|
+
var $String$4 = String;
|
|
23570
23608
|
var $TypeError$6 = TypeError;
|
|
23571
23609
|
|
|
23572
23610
|
var aPossiblePrototype = function (argument) {
|
|
23573
23611
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
23574
|
-
throw $TypeError$6("Can't set " + $String$
|
|
23612
|
+
throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
|
|
23575
23613
|
};
|
|
23576
23614
|
|
|
23577
23615
|
/* eslint-disable no-proto -- safe */
|
|
@@ -23582,14 +23620,13 @@ var aPossiblePrototype = function (argument) {
|
|
|
23582
23620
|
// `Object.setPrototypeOf` method
|
|
23583
23621
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
23584
23622
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
23585
|
-
// eslint-disable-next-line es
|
|
23623
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
23586
23624
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
23587
23625
|
var CORRECT_SETTER = false;
|
|
23588
23626
|
var test = {};
|
|
23589
23627
|
var setter;
|
|
23590
23628
|
try {
|
|
23591
|
-
|
|
23592
|
-
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
23629
|
+
setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
23593
23630
|
setter(test, []);
|
|
23594
23631
|
CORRECT_SETTER = test instanceof Array;
|
|
23595
23632
|
} catch (error) { /* empty */ }
|
|
@@ -23602,14 +23639,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
23602
23639
|
};
|
|
23603
23640
|
}() : undefined);
|
|
23604
23641
|
|
|
23605
|
-
var defineProperty$2 = objectDefineProperty.f;
|
|
23606
|
-
|
|
23607
|
-
|
|
23608
|
-
|
|
23609
|
-
|
|
23610
|
-
|
|
23611
|
-
|
|
23612
|
-
|
|
23613
23642
|
var enforceInternalState = internalState.enforce;
|
|
23614
23643
|
var getInternalState = internalState.get;
|
|
23615
23644
|
var Int8Array = global_1.Int8Array;
|
|
@@ -23625,7 +23654,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
23625
23654
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
23626
23655
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
23627
23656
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
23628
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
23657
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
23629
23658
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
23630
23659
|
var NAME, Constructor, Prototype;
|
|
23631
23660
|
|
|
@@ -23670,12 +23699,12 @@ var isTypedArray = function (it) {
|
|
|
23670
23699
|
|
|
23671
23700
|
var aTypedArray = function (it) {
|
|
23672
23701
|
if (isTypedArray(it)) return it;
|
|
23673
|
-
throw TypeError$2('Target is not a typed array');
|
|
23702
|
+
throw new TypeError$2('Target is not a typed array');
|
|
23674
23703
|
};
|
|
23675
23704
|
|
|
23676
23705
|
var aTypedArrayConstructor = function (C) {
|
|
23677
23706
|
if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
|
|
23678
|
-
throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23707
|
+
throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23679
23708
|
};
|
|
23680
23709
|
|
|
23681
23710
|
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
@@ -23739,7 +23768,7 @@ for (NAME in BigIntArrayConstructorsList) {
|
|
|
23739
23768
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
23740
23769
|
// eslint-disable-next-line no-shadow -- safe
|
|
23741
23770
|
TypedArray = function TypedArray() {
|
|
23742
|
-
throw TypeError$2('Incorrect invocation');
|
|
23771
|
+
throw new TypeError$2('Incorrect invocation');
|
|
23743
23772
|
};
|
|
23744
23773
|
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
23745
23774
|
if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
|
|
@@ -23760,9 +23789,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
|
|
|
23760
23789
|
|
|
23761
23790
|
if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
|
|
23762
23791
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
23763
|
-
|
|
23764
|
-
|
|
23765
|
-
|
|
23792
|
+
defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
|
|
23793
|
+
configurable: true,
|
|
23794
|
+
get: function () {
|
|
23795
|
+
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23796
|
+
}
|
|
23797
|
+
});
|
|
23766
23798
|
for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
|
|
23767
23799
|
createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
|
|
23768
23800
|
}
|
|
@@ -23786,7 +23818,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
|
|
|
23786
23818
|
var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
|
|
23787
23819
|
|
|
23788
23820
|
// `%TypedArray%.prototype.at` method
|
|
23789
|
-
// https://
|
|
23821
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
|
|
23790
23822
|
exportTypedArrayMethod$1('at', function at(index) {
|
|
23791
23823
|
var O = aTypedArray$1(this);
|
|
23792
23824
|
var len = lengthOfArrayLike(O);
|
|
@@ -26722,9 +26754,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26722
26754
|
_ref$showCartStatus = _ref.showCartStatus,
|
|
26723
26755
|
showCartStatus = _ref$showCartStatus === void 0 ? false : _ref$showCartStatus,
|
|
26724
26756
|
openCartSlider = _ref.openCartSlider,
|
|
26725
|
-
extraStyles = _ref.extraStyles
|
|
26726
|
-
cartStatusExtraStyles = _ref.cartStatusExtraStyles,
|
|
26727
|
-
cartStatusThemeValues = _ref.cartStatusThemeValues;
|
|
26757
|
+
extraStyles = _ref.extraStyles;
|
|
26728
26758
|
|
|
26729
26759
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26730
26760
|
isMobile = _useContext.isMobile;
|
|
@@ -26749,8 +26779,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26749
26779
|
minHeight: "100%",
|
|
26750
26780
|
justify: isMobile && !showCartStatus ? "center" : showButton || showCartStatus ? "space-between" : "left",
|
|
26751
26781
|
align: "center",
|
|
26752
|
-
nowrap: showCartStatus
|
|
26753
|
-
extraStyles: cartStatusExtraStyles
|
|
26782
|
+
nowrap: showCartStatus
|
|
26754
26783
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
26755
26784
|
variant: isMobile ? "small" : "large",
|
|
26756
26785
|
as: "h1",
|
|
@@ -26767,7 +26796,6 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26767
26796
|
variant: "primary",
|
|
26768
26797
|
extraStyles: "margin: 0 0 65px 0; min-width: 320px;"
|
|
26769
26798
|
}), showCartStatus && /*#__PURE__*/React__default.createElement(CartStatus, {
|
|
26770
|
-
themeValues: cartStatusThemeValues,
|
|
26771
26799
|
total: total,
|
|
26772
26800
|
itemsCount: itemsCount,
|
|
26773
26801
|
openCart: openCartSlider
|