@thecb/components 10.1.1-beta.1 → 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 +180 -156
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +180 -156
- 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 +3 -5
- 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/checkbox/Checkbox.js +2 -2
- package/src/components/atoms/form-layouts/FormInput.js +1 -7
- 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.esm.js
CHANGED
|
@@ -6474,7 +6474,7 @@ var BoxWrapper = styled(function (_ref) {
|
|
|
6474
6474
|
}).withConfig({
|
|
6475
6475
|
displayName: "Boxstyled__BoxWrapper",
|
|
6476
6476
|
componentId: "sc-1f9ij0d-0"
|
|
6477
|
-
})(["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{", "}&
|
|
6477
|
+
})(["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) {
|
|
6478
6478
|
var padding = _ref2.padding;
|
|
6479
6479
|
return padding;
|
|
6480
6480
|
}, function (_ref3) {
|
|
@@ -6529,17 +6529,13 @@ var BoxWrapper = styled(function (_ref) {
|
|
|
6529
6529
|
as = _ref17.as;
|
|
6530
6530
|
return css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6531
6531
|
}, function (_ref18) {
|
|
6532
|
-
var
|
|
6533
|
-
as = _ref18.as;
|
|
6534
|
-
return css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6535
|
-
}, function (_ref19) {
|
|
6536
|
-
var color = _ref19.color;
|
|
6532
|
+
var color = _ref18.color;
|
|
6537
6533
|
return color;
|
|
6538
|
-
}, function (
|
|
6539
|
-
var hiddenStyles =
|
|
6534
|
+
}, function (_ref19) {
|
|
6535
|
+
var hiddenStyles = _ref19.hiddenStyles;
|
|
6540
6536
|
return hiddenStyles && css(["display:none;"]);
|
|
6541
|
-
}, function (
|
|
6542
|
-
var extraStyles =
|
|
6537
|
+
}, function (_ref20) {
|
|
6538
|
+
var extraStyles = _ref20.extraStyles;
|
|
6543
6539
|
return css(["", ""], extraStyles);
|
|
6544
6540
|
});
|
|
6545
6541
|
/* eslint-enable no-unused-vars */
|
|
@@ -12880,7 +12876,7 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
|
|
|
12880
12876
|
}))))));
|
|
12881
12877
|
};
|
|
12882
12878
|
|
|
12883
|
-
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "
|
|
12879
|
+
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "loadingColor", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children", "extraDisabledStyles"];
|
|
12884
12880
|
var rotate$1 = posed.div({
|
|
12885
12881
|
fixed: {
|
|
12886
12882
|
rotate: "0deg"
|
|
@@ -12943,8 +12939,6 @@ var ButtonWithAction = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12943
12939
|
textWrap = _ref2$textWrap === void 0 ? false : _ref2$textWrap,
|
|
12944
12940
|
_ref2$isLoading = _ref2.isLoading,
|
|
12945
12941
|
isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
|
|
12946
|
-
_ref2$disabled = _ref2.disabled,
|
|
12947
|
-
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
12948
12942
|
_ref2$loadingColor = _ref2.loadingColor,
|
|
12949
12943
|
loadingColor = _ref2$loadingColor === void 0 ? "white" : _ref2$loadingColor,
|
|
12950
12944
|
_ref2$dataQa = _ref2.dataQa,
|
|
@@ -12973,12 +12967,11 @@ var ButtonWithAction = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12973
12967
|
minWidth: themeValues.minWidth,
|
|
12974
12968
|
background: themeValues.backgroundColor,
|
|
12975
12969
|
border: themeValues.border,
|
|
12976
|
-
hoverStyles:
|
|
12977
|
-
activeStyles:
|
|
12970
|
+
hoverStyles: hoverStyles,
|
|
12971
|
+
activeStyles: activeStyles,
|
|
12978
12972
|
disabledStyles: disabledStyles,
|
|
12979
|
-
"aria-disabled": disabled,
|
|
12980
12973
|
as: "button",
|
|
12981
|
-
onClick: isLoading
|
|
12974
|
+
onClick: isLoading ? undefined : action,
|
|
12982
12975
|
borderRadius: "2px",
|
|
12983
12976
|
theme: themeContext,
|
|
12984
12977
|
extraStyles: "margin: 0.5rem; ".concat(extraStyles),
|
|
@@ -18303,18 +18296,15 @@ var KebabMenuIcon = function KebabMenuIcon() {
|
|
|
18303
18296
|
var MultiCartIcon = function MultiCartIcon(_ref) {
|
|
18304
18297
|
var _ref$iconFill = _ref.iconFill,
|
|
18305
18298
|
iconFill = _ref$iconFill === void 0 ? "#3B5BDB" : _ref$iconFill,
|
|
18306
|
-
|
|
18307
|
-
isMobile = _ref$isMobile === void 0 ? true : _ref$isMobile;
|
|
18308
|
-
var iconWidth = isMobile ? "20" : "25";
|
|
18309
|
-
var iconHeight = isMobile ? "17" : "23";
|
|
18299
|
+
iconStyle = _ref.iconStyle;
|
|
18310
18300
|
return /*#__PURE__*/React.createElement("svg", {
|
|
18311
18301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18312
|
-
width:
|
|
18313
|
-
height:
|
|
18314
|
-
viewBox: "0 0
|
|
18315
|
-
|
|
18302
|
+
width: "20",
|
|
18303
|
+
height: "17",
|
|
18304
|
+
viewBox: "0 0 20 17",
|
|
18305
|
+
style: iconStyle
|
|
18316
18306
|
}, /*#__PURE__*/React.createElement("path", {
|
|
18317
|
-
d:
|
|
18307
|
+
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",
|
|
18318
18308
|
fill: iconFill
|
|
18319
18309
|
}));
|
|
18320
18310
|
};
|
|
@@ -21827,7 +21817,6 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21827
21817
|
extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
|
|
21828
21818
|
dataQa: dataQa
|
|
21829
21819
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, _extends({}, otherProps, {
|
|
21830
|
-
disabled: disabled,
|
|
21831
21820
|
extraStyles: extraStyles
|
|
21832
21821
|
})));
|
|
21833
21822
|
};
|
|
@@ -22154,7 +22143,7 @@ var ENTER = 13;
|
|
|
22154
22143
|
var ESCAPE = 27;
|
|
22155
22144
|
var SPACEBAR = 32;
|
|
22156
22145
|
|
|
22157
|
-
var CheckboxContainer = styled.
|
|
22146
|
+
var CheckboxContainer = styled.span.withConfig({
|
|
22158
22147
|
displayName: "Checkbox__CheckboxContainer",
|
|
22159
22148
|
componentId: "sc-36kqbv-0"
|
|
22160
22149
|
})(["display:inline-block;vertical-align:middle;"]);
|
|
@@ -22177,7 +22166,7 @@ var HiddenCheckbox = styled.input.attrs({
|
|
|
22177
22166
|
displayName: "Checkbox__HiddenCheckbox",
|
|
22178
22167
|
componentId: "sc-36kqbv-3"
|
|
22179
22168
|
})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]);
|
|
22180
|
-
var StyledCheckbox = styled.
|
|
22169
|
+
var StyledCheckbox = styled.span.withConfig({
|
|
22181
22170
|
displayName: "Checkbox__StyledCheckbox",
|
|
22182
22171
|
componentId: "sc-36kqbv-4"
|
|
22183
22172
|
})(["display:inline-block;width:24px;height:24px;border-radius:2px;transition:all 150ms;", "{visibility:", ";}", ";"], CheckboxIcon, function (_ref2) {
|
|
@@ -22514,17 +22503,18 @@ var DropdownIcon = function DropdownIcon() {
|
|
|
22514
22503
|
};
|
|
22515
22504
|
|
|
22516
22505
|
var check = function (it) {
|
|
22517
|
-
return it && it.Math
|
|
22506
|
+
return it && it.Math === Math && it;
|
|
22518
22507
|
};
|
|
22519
22508
|
|
|
22520
22509
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22521
22510
|
var global_1 =
|
|
22522
|
-
// eslint-disable-next-line es
|
|
22511
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
22523
22512
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22524
22513
|
check(typeof window == 'object' && window) ||
|
|
22525
22514
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
22526
22515
|
check(typeof self == 'object' && self) ||
|
|
22527
22516
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22517
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22528
22518
|
// eslint-disable-next-line no-new-func -- fallback
|
|
22529
22519
|
(function () { return this; })() || Function('return this')();
|
|
22530
22520
|
|
|
@@ -22538,12 +22528,12 @@ var fails = function (exec) {
|
|
|
22538
22528
|
|
|
22539
22529
|
// Detect IE8's incomplete defineProperty implementation
|
|
22540
22530
|
var descriptors = !fails(function () {
|
|
22541
|
-
// eslint-disable-next-line es
|
|
22542
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1]
|
|
22531
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22532
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
22543
22533
|
});
|
|
22544
22534
|
|
|
22545
22535
|
var functionBindNative = !fails(function () {
|
|
22546
|
-
// eslint-disable-next-line es
|
|
22536
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
22547
22537
|
var test = (function () { /* empty */ }).bind();
|
|
22548
22538
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22549
22539
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -22556,7 +22546,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
22556
22546
|
};
|
|
22557
22547
|
|
|
22558
22548
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
22559
|
-
// eslint-disable-next-line es
|
|
22549
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22560
22550
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22561
22551
|
|
|
22562
22552
|
// Nashorn ~ JDK8 bug
|
|
@@ -22583,14 +22573,11 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
22583
22573
|
};
|
|
22584
22574
|
|
|
22585
22575
|
var FunctionPrototype = Function.prototype;
|
|
22586
|
-
var bind$1 = FunctionPrototype.bind;
|
|
22587
22576
|
var call$1 = FunctionPrototype.call;
|
|
22588
|
-
var
|
|
22577
|
+
var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
|
|
22589
22578
|
|
|
22590
|
-
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
22591
|
-
return
|
|
22592
|
-
} : function (fn) {
|
|
22593
|
-
return fn && function () {
|
|
22579
|
+
var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
|
|
22580
|
+
return function () {
|
|
22594
22581
|
return call$1.apply(fn, arguments);
|
|
22595
22582
|
};
|
|
22596
22583
|
};
|
|
@@ -22611,15 +22598,21 @@ var indexedObject = fails(function () {
|
|
|
22611
22598
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22612
22599
|
return !$Object('z').propertyIsEnumerable(0);
|
|
22613
22600
|
}) ? function (it) {
|
|
22614
|
-
return classofRaw(it)
|
|
22601
|
+
return classofRaw(it) === 'String' ? split(it, '') : $Object(it);
|
|
22615
22602
|
} : $Object;
|
|
22616
22603
|
|
|
22604
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
22605
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
22606
|
+
var isNullOrUndefined = function (it) {
|
|
22607
|
+
return it === null || it === undefined;
|
|
22608
|
+
};
|
|
22609
|
+
|
|
22617
22610
|
var $TypeError = TypeError;
|
|
22618
22611
|
|
|
22619
22612
|
// `RequireObjectCoercible` abstract operation
|
|
22620
22613
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
22621
22614
|
var requireObjectCoercible = function (it) {
|
|
22622
|
-
if (it
|
|
22615
|
+
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
|
|
22623
22616
|
return it;
|
|
22624
22617
|
};
|
|
22625
22618
|
|
|
@@ -22631,13 +22624,32 @@ var toIndexedObject = function (it) {
|
|
|
22631
22624
|
return indexedObject(requireObjectCoercible(it));
|
|
22632
22625
|
};
|
|
22633
22626
|
|
|
22627
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
22628
|
+
|
|
22629
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
22630
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
22631
|
+
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
22632
|
+
|
|
22633
|
+
var documentAll_1 = {
|
|
22634
|
+
all: documentAll,
|
|
22635
|
+
IS_HTMLDDA: IS_HTMLDDA
|
|
22636
|
+
};
|
|
22637
|
+
|
|
22638
|
+
var documentAll$1 = documentAll_1.all;
|
|
22639
|
+
|
|
22634
22640
|
// `IsCallable` abstract operation
|
|
22635
22641
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
22636
|
-
var isCallable = function (argument) {
|
|
22642
|
+
var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
|
|
22643
|
+
return typeof argument == 'function' || argument === documentAll$1;
|
|
22644
|
+
} : function (argument) {
|
|
22637
22645
|
return typeof argument == 'function';
|
|
22638
22646
|
};
|
|
22639
22647
|
|
|
22640
|
-
var
|
|
22648
|
+
var documentAll$2 = documentAll_1.all;
|
|
22649
|
+
|
|
22650
|
+
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
22651
|
+
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
22652
|
+
} : function (it) {
|
|
22641
22653
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
22642
22654
|
};
|
|
22643
22655
|
|
|
@@ -22651,7 +22663,7 @@ var getBuiltIn = function (namespace, method) {
|
|
|
22651
22663
|
|
|
22652
22664
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
22653
22665
|
|
|
22654
|
-
var engineUserAgent =
|
|
22666
|
+
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
22655
22667
|
|
|
22656
22668
|
var process$1 = global_1.process;
|
|
22657
22669
|
var Deno = global_1.Deno;
|
|
@@ -22678,24 +22690,29 @@ if (!version && engineUserAgent) {
|
|
|
22678
22690
|
|
|
22679
22691
|
var engineV8Version = version;
|
|
22680
22692
|
|
|
22681
|
-
/* eslint-disable es
|
|
22693
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
22694
|
+
|
|
22682
22695
|
|
|
22683
22696
|
|
|
22684
22697
|
|
|
22685
|
-
|
|
22686
|
-
|
|
22687
|
-
|
|
22698
|
+
var $String = global_1.String;
|
|
22699
|
+
|
|
22700
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
22701
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22702
|
+
var symbol = Symbol('symbol detection');
|
|
22688
22703
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
22689
22704
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
22690
|
-
|
|
22705
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
22706
|
+
// of course, fail.
|
|
22707
|
+
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22691
22708
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
22692
22709
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
22693
22710
|
});
|
|
22694
22711
|
|
|
22695
|
-
/* eslint-disable es
|
|
22712
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
22696
22713
|
|
|
22697
22714
|
|
|
22698
|
-
var useSymbolAsUid =
|
|
22715
|
+
var useSymbolAsUid = symbolConstructorDetection
|
|
22699
22716
|
&& !Symbol.sham
|
|
22700
22717
|
&& typeof Symbol.iterator == 'symbol';
|
|
22701
22718
|
|
|
@@ -22708,11 +22725,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
|
|
|
22708
22725
|
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
22709
22726
|
};
|
|
22710
22727
|
|
|
22711
|
-
var $String = String;
|
|
22728
|
+
var $String$1 = String;
|
|
22712
22729
|
|
|
22713
22730
|
var tryToString = function (argument) {
|
|
22714
22731
|
try {
|
|
22715
|
-
return $String(argument);
|
|
22732
|
+
return $String$1(argument);
|
|
22716
22733
|
} catch (error) {
|
|
22717
22734
|
return 'Object';
|
|
22718
22735
|
}
|
|
@@ -22723,14 +22740,14 @@ var $TypeError$1 = TypeError;
|
|
|
22723
22740
|
// `Assert: IsCallable(argument) is true`
|
|
22724
22741
|
var aCallable = function (argument) {
|
|
22725
22742
|
if (isCallable(argument)) return argument;
|
|
22726
|
-
throw $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22743
|
+
throw new $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22727
22744
|
};
|
|
22728
22745
|
|
|
22729
22746
|
// `GetMethod` abstract operation
|
|
22730
22747
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
22731
22748
|
var getMethod = function (V, P) {
|
|
22732
22749
|
var func = V[P];
|
|
22733
|
-
return func
|
|
22750
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
22734
22751
|
};
|
|
22735
22752
|
|
|
22736
22753
|
var $TypeError$2 = TypeError;
|
|
@@ -22742,10 +22759,10 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
22742
22759
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22743
22760
|
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
|
22744
22761
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22745
|
-
throw $TypeError$2("Can't convert object to primitive value");
|
|
22762
|
+
throw new $TypeError$2("Can't convert object to primitive value");
|
|
22746
22763
|
};
|
|
22747
22764
|
|
|
22748
|
-
// eslint-disable-next-line es
|
|
22765
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22749
22766
|
var defineProperty = Object.defineProperty;
|
|
22750
22767
|
|
|
22751
22768
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -22762,13 +22779,16 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
|
|
|
22762
22779
|
var sharedStore = store;
|
|
22763
22780
|
|
|
22764
22781
|
var shared = createCommonjsModule(function (module) {
|
|
22782
|
+
|
|
22783
|
+
|
|
22784
|
+
|
|
22765
22785
|
(module.exports = function (key, value) {
|
|
22766
22786
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
22767
22787
|
})('versions', []).push({
|
|
22768
|
-
version: '3.
|
|
22788
|
+
version: '3.33.3',
|
|
22769
22789
|
mode: 'global',
|
|
22770
|
-
copyright: '© 2014-
|
|
22771
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
22790
|
+
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
22791
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
|
|
22772
22792
|
source: 'https://github.com/zloirock/core-js'
|
|
22773
22793
|
});
|
|
22774
22794
|
});
|
|
@@ -22785,7 +22805,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
22785
22805
|
|
|
22786
22806
|
// `HasOwnProperty` abstract operation
|
|
22787
22807
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
22788
|
-
// eslint-disable-next-line es
|
|
22808
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
22789
22809
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
22790
22810
|
return hasOwnProperty(toObject(it), key);
|
|
22791
22811
|
};
|
|
@@ -22798,21 +22818,15 @@ var uid = function (key) {
|
|
|
22798
22818
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
22799
22819
|
};
|
|
22800
22820
|
|
|
22801
|
-
var WellKnownSymbolsStore = shared('wks');
|
|
22802
22821
|
var Symbol$1 = global_1.Symbol;
|
|
22803
|
-
var
|
|
22804
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
22822
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
22823
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
22805
22824
|
|
|
22806
22825
|
var wellKnownSymbol = function (name) {
|
|
22807
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)
|
|
22808
|
-
|
|
22809
|
-
|
|
22810
|
-
|
|
22811
|
-
} else if (useSymbolAsUid && symbolFor) {
|
|
22812
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
22813
|
-
} else {
|
|
22814
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
22815
|
-
}
|
|
22826
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
|
|
22827
|
+
WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
|
|
22828
|
+
? Symbol$1[name]
|
|
22829
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
22816
22830
|
} return WellKnownSymbolsStore[name];
|
|
22817
22831
|
};
|
|
22818
22832
|
|
|
@@ -22829,7 +22843,7 @@ var toPrimitive = function (input, pref) {
|
|
|
22829
22843
|
if (pref === undefined) pref = 'default';
|
|
22830
22844
|
result = functionCall(exoticToPrim, input, pref);
|
|
22831
22845
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
22832
|
-
throw $TypeError$3("Can't convert object to primitive value");
|
|
22846
|
+
throw new $TypeError$3("Can't convert object to primitive value");
|
|
22833
22847
|
}
|
|
22834
22848
|
if (pref === undefined) pref = 'number';
|
|
22835
22849
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -22852,13 +22866,13 @@ var documentCreateElement = function (it) {
|
|
|
22852
22866
|
|
|
22853
22867
|
// Thanks to IE8 for its funny defineProperty
|
|
22854
22868
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
22855
|
-
// eslint-disable-next-line es
|
|
22869
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22856
22870
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
22857
22871
|
get: function () { return 7; }
|
|
22858
|
-
}).a
|
|
22872
|
+
}).a !== 7;
|
|
22859
22873
|
});
|
|
22860
22874
|
|
|
22861
|
-
// eslint-disable-next-line es
|
|
22875
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22862
22876
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22863
22877
|
|
|
22864
22878
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -22879,26 +22893,26 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
22879
22893
|
// V8 ~ Chrome 36-
|
|
22880
22894
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
22881
22895
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
22882
|
-
// eslint-disable-next-line es
|
|
22896
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22883
22897
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
22884
22898
|
value: 42,
|
|
22885
22899
|
writable: false
|
|
22886
|
-
}).prototype
|
|
22900
|
+
}).prototype !== 42;
|
|
22887
22901
|
});
|
|
22888
22902
|
|
|
22889
|
-
var $String$
|
|
22903
|
+
var $String$2 = String;
|
|
22890
22904
|
var $TypeError$4 = TypeError;
|
|
22891
22905
|
|
|
22892
22906
|
// `Assert: Type(argument) is Object`
|
|
22893
22907
|
var anObject = function (argument) {
|
|
22894
22908
|
if (isObject(argument)) return argument;
|
|
22895
|
-
throw $TypeError$4($String$
|
|
22909
|
+
throw new $TypeError$4($String$2(argument) + ' is not an object');
|
|
22896
22910
|
};
|
|
22897
22911
|
|
|
22898
22912
|
var $TypeError$5 = TypeError;
|
|
22899
|
-
// eslint-disable-next-line es
|
|
22913
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22900
22914
|
var $defineProperty = Object.defineProperty;
|
|
22901
|
-
// eslint-disable-next-line es
|
|
22915
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22902
22916
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
22903
22917
|
var ENUMERABLE = 'enumerable';
|
|
22904
22918
|
var CONFIGURABLE = 'configurable';
|
|
@@ -22928,7 +22942,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
|
|
|
22928
22942
|
if (ie8DomDefine) try {
|
|
22929
22943
|
return $defineProperty(O, P, Attributes);
|
|
22930
22944
|
} catch (error) { /* empty */ }
|
|
22931
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
|
|
22945
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
|
|
22932
22946
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
22933
22947
|
return O;
|
|
22934
22948
|
};
|
|
@@ -22945,7 +22959,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
22945
22959
|
};
|
|
22946
22960
|
|
|
22947
22961
|
var FunctionPrototype$1 = Function.prototype;
|
|
22948
|
-
// eslint-disable-next-line es
|
|
22962
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22949
22963
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
22950
22964
|
|
|
22951
22965
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -22972,7 +22986,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
22972
22986
|
|
|
22973
22987
|
var WeakMap$1 = global_1.WeakMap;
|
|
22974
22988
|
|
|
22975
|
-
var
|
|
22989
|
+
var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
22976
22990
|
|
|
22977
22991
|
var keys$1 = shared('keys');
|
|
22978
22992
|
|
|
@@ -22995,27 +23009,29 @@ var getterFor = function (TYPE) {
|
|
|
22995
23009
|
return function (it) {
|
|
22996
23010
|
var state;
|
|
22997
23011
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
22998
|
-
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
23012
|
+
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
22999
23013
|
} return state;
|
|
23000
23014
|
};
|
|
23001
23015
|
};
|
|
23002
23016
|
|
|
23003
|
-
if (
|
|
23017
|
+
if (weakMapBasicDetection || sharedStore.state) {
|
|
23004
23018
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
23005
|
-
|
|
23006
|
-
|
|
23007
|
-
|
|
23019
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
23020
|
+
store$1.get = store$1.get;
|
|
23021
|
+
store$1.has = store$1.has;
|
|
23022
|
+
store$1.set = store$1.set;
|
|
23023
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
23008
23024
|
set = function (it, metadata) {
|
|
23009
|
-
if (
|
|
23025
|
+
if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
23010
23026
|
metadata.facade = it;
|
|
23011
|
-
|
|
23027
|
+
store$1.set(it, metadata);
|
|
23012
23028
|
return metadata;
|
|
23013
23029
|
};
|
|
23014
23030
|
get = function (it) {
|
|
23015
|
-
return
|
|
23031
|
+
return store$1.get(it) || {};
|
|
23016
23032
|
};
|
|
23017
23033
|
has = function (it) {
|
|
23018
|
-
return
|
|
23034
|
+
return store$1.has(it);
|
|
23019
23035
|
};
|
|
23020
23036
|
} else {
|
|
23021
23037
|
var STATE = sharedKey('state');
|
|
@@ -23043,14 +23059,23 @@ var internalState = {
|
|
|
23043
23059
|
};
|
|
23044
23060
|
|
|
23045
23061
|
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
|
23062
|
+
|
|
23063
|
+
|
|
23064
|
+
|
|
23065
|
+
|
|
23066
|
+
|
|
23046
23067
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
23047
23068
|
|
|
23048
23069
|
|
|
23049
23070
|
|
|
23050
23071
|
var enforceInternalState = internalState.enforce;
|
|
23051
23072
|
var getInternalState = internalState.get;
|
|
23052
|
-
|
|
23073
|
+
var $String = String;
|
|
23074
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
23053
23075
|
var defineProperty = Object.defineProperty;
|
|
23076
|
+
var stringSlice = functionUncurryThis(''.slice);
|
|
23077
|
+
var replace = functionUncurryThis(''.replace);
|
|
23078
|
+
var join = functionUncurryThis([].join);
|
|
23054
23079
|
|
|
23055
23080
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
23056
23081
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -23059,8 +23084,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
|
23059
23084
|
var TEMPLATE = String(String).split('String');
|
|
23060
23085
|
|
|
23061
23086
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
23062
|
-
if (String(name)
|
|
23063
|
-
name = '[' + String(name)
|
|
23087
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
23088
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
23064
23089
|
}
|
|
23065
23090
|
if (options && options.getter) name = 'get ' + name;
|
|
23066
23091
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -23079,7 +23104,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
23079
23104
|
} catch (error) { /* empty */ }
|
|
23080
23105
|
var state = enforceInternalState(value);
|
|
23081
23106
|
if (!hasOwnProperty_1(state, 'source')) {
|
|
23082
|
-
state.source =
|
|
23107
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
23083
23108
|
} return value;
|
|
23084
23109
|
};
|
|
23085
23110
|
|
|
@@ -23118,7 +23143,7 @@ var floor = Math.floor;
|
|
|
23118
23143
|
|
|
23119
23144
|
// `Math.trunc` method
|
|
23120
23145
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
23121
|
-
// eslint-disable-next-line es
|
|
23146
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
23122
23147
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
23123
23148
|
var n = +x;
|
|
23124
23149
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -23166,10 +23191,10 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
23166
23191
|
var value;
|
|
23167
23192
|
// Array#includes uses SameValueZero equality algorithm
|
|
23168
23193
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23169
|
-
if (IS_INCLUDES && el
|
|
23194
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
23170
23195
|
value = O[index++];
|
|
23171
23196
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23172
|
-
if (value
|
|
23197
|
+
if (value !== value) return true;
|
|
23173
23198
|
// Array#indexOf ignores holes, Array#includes - not
|
|
23174
23199
|
} else for (;length > index; index++) {
|
|
23175
23200
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -23219,7 +23244,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
23219
23244
|
|
|
23220
23245
|
// `Object.getOwnPropertyNames` method
|
|
23221
23246
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
23222
|
-
// eslint-disable-next-line es
|
|
23247
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
23223
23248
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
23224
23249
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
23225
23250
|
};
|
|
@@ -23228,7 +23253,7 @@ var objectGetOwnPropertyNames = {
|
|
|
23228
23253
|
f: f$3
|
|
23229
23254
|
};
|
|
23230
23255
|
|
|
23231
|
-
// eslint-disable-next-line es
|
|
23256
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
23232
23257
|
var f$4 = Object.getOwnPropertySymbols;
|
|
23233
23258
|
|
|
23234
23259
|
var objectGetOwnPropertySymbols = {
|
|
@@ -23260,8 +23285,8 @@ var replacement = /#|\.prototype\./;
|
|
|
23260
23285
|
|
|
23261
23286
|
var isForced = function (feature, detection) {
|
|
23262
23287
|
var value = data[normalize(feature)];
|
|
23263
|
-
return value
|
|
23264
|
-
: value
|
|
23288
|
+
return value === POLYFILL ? true
|
|
23289
|
+
: value === NATIVE ? false
|
|
23265
23290
|
: isCallable(detection) ? fails(detection)
|
|
23266
23291
|
: !!detection;
|
|
23267
23292
|
};
|
|
@@ -23341,7 +23366,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
|
23341
23366
|
var $Object$3 = Object;
|
|
23342
23367
|
|
|
23343
23368
|
// ES3 wrong here
|
|
23344
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }())
|
|
23369
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
23345
23370
|
|
|
23346
23371
|
// fallback for IE11 Script Access Denied error
|
|
23347
23372
|
var tryGet = function (it, key) {
|
|
@@ -23359,25 +23384,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
|
23359
23384
|
// builtinTag case
|
|
23360
23385
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
23361
23386
|
// ES3 arguments fallback
|
|
23362
|
-
: (result = classofRaw(O))
|
|
23387
|
+
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
23363
23388
|
};
|
|
23364
23389
|
|
|
23365
|
-
var $String$
|
|
23390
|
+
var $String$3 = String;
|
|
23366
23391
|
|
|
23367
23392
|
var toString_1 = function (argument) {
|
|
23368
|
-
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
23369
|
-
return $String$
|
|
23393
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
23394
|
+
return $String$3(argument);
|
|
23370
23395
|
};
|
|
23371
23396
|
|
|
23372
23397
|
var charAt = functionUncurryThis(''.charAt);
|
|
23373
23398
|
|
|
23374
23399
|
var FORCED = fails(function () {
|
|
23375
|
-
// eslint-disable-next-line es
|
|
23400
|
+
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
23376
23401
|
return '𠮷'.at(-2) !== '\uD842';
|
|
23377
23402
|
});
|
|
23378
23403
|
|
|
23379
23404
|
// `String.prototype.at` method
|
|
23380
|
-
// https://
|
|
23405
|
+
// https://tc39.es/ecma262/#sec-string.prototype.at
|
|
23381
23406
|
_export({ target: 'String', proto: true, forced: FORCED }, {
|
|
23382
23407
|
at: function at(index) {
|
|
23383
23408
|
var S = toString_1(requireObjectCoercible(this));
|
|
@@ -23390,14 +23415,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
23390
23415
|
|
|
23391
23416
|
// `Object.keys` method
|
|
23392
23417
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
23393
|
-
// eslint-disable-next-line es
|
|
23418
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
23394
23419
|
var objectKeys = Object.keys || function keys(O) {
|
|
23395
23420
|
return objectKeysInternal(O, enumBugKeys);
|
|
23396
23421
|
};
|
|
23397
23422
|
|
|
23398
23423
|
// `Object.defineProperties` method
|
|
23399
23424
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
23400
|
-
// eslint-disable-next-line es
|
|
23425
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
23401
23426
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
23402
23427
|
anObject(O);
|
|
23403
23428
|
var props = toIndexedObject(Properties);
|
|
@@ -23486,7 +23511,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
23486
23511
|
|
|
23487
23512
|
// `Object.create` method
|
|
23488
23513
|
// https://tc39.es/ecma262/#sec-object.create
|
|
23489
|
-
// eslint-disable-next-line es
|
|
23514
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
23490
23515
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
23491
23516
|
var result;
|
|
23492
23517
|
if (O !== null) {
|
|
@@ -23506,7 +23531,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
23506
23531
|
|
|
23507
23532
|
// Array.prototype[@@unscopables]
|
|
23508
23533
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
23509
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
23534
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
23510
23535
|
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
23511
23536
|
configurable: true,
|
|
23512
23537
|
value: objectCreate(null)
|
|
@@ -23519,7 +23544,7 @@ var addToUnscopables = function (key) {
|
|
|
23519
23544
|
};
|
|
23520
23545
|
|
|
23521
23546
|
// `Array.prototype.at` method
|
|
23522
|
-
// https://
|
|
23547
|
+
// https://tc39.es/ecma262/#sec-array.prototype.at
|
|
23523
23548
|
_export({ target: 'Array', proto: true }, {
|
|
23524
23549
|
at: function at(index) {
|
|
23525
23550
|
var O = toObject(this);
|
|
@@ -23532,13 +23557,19 @@ _export({ target: 'Array', proto: true }, {
|
|
|
23532
23557
|
|
|
23533
23558
|
addToUnscopables('at');
|
|
23534
23559
|
|
|
23535
|
-
// eslint-disable-next-line es
|
|
23536
|
-
var
|
|
23560
|
+
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
23561
|
+
var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
23562
|
+
|
|
23563
|
+
var defineBuiltInAccessor = function (target, name, descriptor) {
|
|
23564
|
+
if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
|
|
23565
|
+
if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
|
|
23566
|
+
return objectDefineProperty.f(target, name, descriptor);
|
|
23567
|
+
};
|
|
23537
23568
|
|
|
23538
23569
|
var correctPrototypeGetter = !fails(function () {
|
|
23539
23570
|
function F() { /* empty */ }
|
|
23540
23571
|
F.prototype.constructor = null;
|
|
23541
|
-
// eslint-disable-next-line es
|
|
23572
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
23542
23573
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
23543
23574
|
});
|
|
23544
23575
|
|
|
@@ -23548,7 +23579,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
23548
23579
|
|
|
23549
23580
|
// `Object.getPrototypeOf` method
|
|
23550
23581
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
23551
|
-
// eslint-disable-next-line es
|
|
23582
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
23552
23583
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
23553
23584
|
var object = toObject(O);
|
|
23554
23585
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -23558,12 +23589,19 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
|
|
|
23558
23589
|
} return object instanceof $Object$4 ? ObjectPrototype : null;
|
|
23559
23590
|
};
|
|
23560
23591
|
|
|
23561
|
-
var
|
|
23592
|
+
var functionUncurryThisAccessor = function (object, key, method) {
|
|
23593
|
+
try {
|
|
23594
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
23595
|
+
return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
23596
|
+
} catch (error) { /* empty */ }
|
|
23597
|
+
};
|
|
23598
|
+
|
|
23599
|
+
var $String$4 = String;
|
|
23562
23600
|
var $TypeError$6 = TypeError;
|
|
23563
23601
|
|
|
23564
23602
|
var aPossiblePrototype = function (argument) {
|
|
23565
23603
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
23566
|
-
throw $TypeError$6("Can't set " + $String$
|
|
23604
|
+
throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
|
|
23567
23605
|
};
|
|
23568
23606
|
|
|
23569
23607
|
/* eslint-disable no-proto -- safe */
|
|
@@ -23574,14 +23612,13 @@ var aPossiblePrototype = function (argument) {
|
|
|
23574
23612
|
// `Object.setPrototypeOf` method
|
|
23575
23613
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
23576
23614
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
23577
|
-
// eslint-disable-next-line es
|
|
23615
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
23578
23616
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
23579
23617
|
var CORRECT_SETTER = false;
|
|
23580
23618
|
var test = {};
|
|
23581
23619
|
var setter;
|
|
23582
23620
|
try {
|
|
23583
|
-
|
|
23584
|
-
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
23621
|
+
setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
23585
23622
|
setter(test, []);
|
|
23586
23623
|
CORRECT_SETTER = test instanceof Array;
|
|
23587
23624
|
} catch (error) { /* empty */ }
|
|
@@ -23594,14 +23631,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
23594
23631
|
};
|
|
23595
23632
|
}() : undefined);
|
|
23596
23633
|
|
|
23597
|
-
var defineProperty$2 = objectDefineProperty.f;
|
|
23598
|
-
|
|
23599
|
-
|
|
23600
|
-
|
|
23601
|
-
|
|
23602
|
-
|
|
23603
|
-
|
|
23604
|
-
|
|
23605
23634
|
var enforceInternalState = internalState.enforce;
|
|
23606
23635
|
var getInternalState = internalState.get;
|
|
23607
23636
|
var Int8Array = global_1.Int8Array;
|
|
@@ -23617,7 +23646,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
23617
23646
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
23618
23647
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
23619
23648
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
23620
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
23649
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
23621
23650
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
23622
23651
|
var NAME, Constructor, Prototype;
|
|
23623
23652
|
|
|
@@ -23662,12 +23691,12 @@ var isTypedArray = function (it) {
|
|
|
23662
23691
|
|
|
23663
23692
|
var aTypedArray = function (it) {
|
|
23664
23693
|
if (isTypedArray(it)) return it;
|
|
23665
|
-
throw TypeError$2('Target is not a typed array');
|
|
23694
|
+
throw new TypeError$2('Target is not a typed array');
|
|
23666
23695
|
};
|
|
23667
23696
|
|
|
23668
23697
|
var aTypedArrayConstructor = function (C) {
|
|
23669
23698
|
if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
|
|
23670
|
-
throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23699
|
+
throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23671
23700
|
};
|
|
23672
23701
|
|
|
23673
23702
|
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
@@ -23731,7 +23760,7 @@ for (NAME in BigIntArrayConstructorsList) {
|
|
|
23731
23760
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
23732
23761
|
// eslint-disable-next-line no-shadow -- safe
|
|
23733
23762
|
TypedArray = function TypedArray() {
|
|
23734
|
-
throw TypeError$2('Incorrect invocation');
|
|
23763
|
+
throw new TypeError$2('Incorrect invocation');
|
|
23735
23764
|
};
|
|
23736
23765
|
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
23737
23766
|
if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
|
|
@@ -23752,9 +23781,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
|
|
|
23752
23781
|
|
|
23753
23782
|
if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
|
|
23754
23783
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
23755
|
-
|
|
23756
|
-
|
|
23757
|
-
|
|
23784
|
+
defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
|
|
23785
|
+
configurable: true,
|
|
23786
|
+
get: function () {
|
|
23787
|
+
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23788
|
+
}
|
|
23789
|
+
});
|
|
23758
23790
|
for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
|
|
23759
23791
|
createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
|
|
23760
23792
|
}
|
|
@@ -23778,7 +23810,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
|
|
|
23778
23810
|
var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
|
|
23779
23811
|
|
|
23780
23812
|
// `%TypedArray%.prototype.at` method
|
|
23781
|
-
// https://
|
|
23813
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
|
|
23782
23814
|
exportTypedArrayMethod$1('at', function at(index) {
|
|
23783
23815
|
var O = aTypedArray$1(this);
|
|
23784
23816
|
var len = lengthOfArrayLike(O);
|
|
@@ -26146,11 +26178,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26146
26178
|
weight: themeValues.fontWeight,
|
|
26147
26179
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
26148
26180
|
id: createIdFromString(labelTextWhenNoError)
|
|
26149
|
-
}, labelTextWhenNoError), /*#__PURE__*/React.createElement(
|
|
26150
|
-
color: themeValues.linkColor,
|
|
26151
|
-
variant: "pS",
|
|
26152
|
-
weight: themeValues.fontWeight
|
|
26153
|
-
}, helperModal())) : /*#__PURE__*/React.createElement(Box, {
|
|
26181
|
+
}, labelTextWhenNoError), helperModal()) : /*#__PURE__*/React.createElement(Box, {
|
|
26154
26182
|
padding: "0",
|
|
26155
26183
|
minWidth: "100%"
|
|
26156
26184
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
@@ -26718,9 +26746,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26718
26746
|
_ref$showCartStatus = _ref.showCartStatus,
|
|
26719
26747
|
showCartStatus = _ref$showCartStatus === void 0 ? false : _ref$showCartStatus,
|
|
26720
26748
|
openCartSlider = _ref.openCartSlider,
|
|
26721
|
-
extraStyles = _ref.extraStyles
|
|
26722
|
-
cartStatusExtraStyles = _ref.cartStatusExtraStyles,
|
|
26723
|
-
cartStatusThemeValues = _ref.cartStatusThemeValues;
|
|
26749
|
+
extraStyles = _ref.extraStyles;
|
|
26724
26750
|
|
|
26725
26751
|
var _useContext = useContext(ThemeContext),
|
|
26726
26752
|
isMobile = _useContext.isMobile;
|
|
@@ -26745,8 +26771,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26745
26771
|
minHeight: "100%",
|
|
26746
26772
|
justify: isMobile && !showCartStatus ? "center" : showButton || showCartStatus ? "space-between" : "left",
|
|
26747
26773
|
align: "center",
|
|
26748
|
-
nowrap: showCartStatus
|
|
26749
|
-
extraStyles: cartStatusExtraStyles
|
|
26774
|
+
nowrap: showCartStatus
|
|
26750
26775
|
}, /*#__PURE__*/React.createElement(Title$1, {
|
|
26751
26776
|
variant: isMobile ? "small" : "large",
|
|
26752
26777
|
as: "h1",
|
|
@@ -26763,7 +26788,6 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26763
26788
|
variant: "primary",
|
|
26764
26789
|
extraStyles: "margin: 0 0 65px 0; min-width: 320px;"
|
|
26765
26790
|
}), showCartStatus && /*#__PURE__*/React.createElement(CartStatus, {
|
|
26766
|
-
themeValues: cartStatusThemeValues,
|
|
26767
26791
|
total: total,
|
|
26768
26792
|
itemsCount: itemsCount,
|
|
26769
26793
|
openCart: openCartSlider
|