@thecb/components 7.7.6 → 7.7.7
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 +109 -60
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +109 -60
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.js +4 -3
- package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +14 -0
package/dist/index.cjs.js
CHANGED
|
@@ -12557,6 +12557,7 @@ var padding = {
|
|
|
12557
12557
|
tertiary: "0.75rem 1.5rem",
|
|
12558
12558
|
ghost: "0.65rem 0",
|
|
12559
12559
|
danger: "0.75rem 1.5rem",
|
|
12560
|
+
dangerSecondary: "0.75rem 1.5rem",
|
|
12560
12561
|
whiteSecondary: "0.75rem 2rem",
|
|
12561
12562
|
whitePrimary: "1.125rem 0.75rem"
|
|
12562
12563
|
};
|
|
@@ -12570,6 +12571,7 @@ var color$1 = {
|
|
|
12570
12571
|
ghost: "#15749D",
|
|
12571
12572
|
tertiary: "#15749D",
|
|
12572
12573
|
danger: "#FFFFFF",
|
|
12574
|
+
dangerSecondary: "#D11053",
|
|
12573
12575
|
whiteSecondary: "#FFFFFF",
|
|
12574
12576
|
whitePrimary: "#FFFFFF"
|
|
12575
12577
|
};
|
|
@@ -12583,6 +12585,7 @@ var fontSizeVariant = {
|
|
|
12583
12585
|
ghost: "pL",
|
|
12584
12586
|
tertiary: "pS",
|
|
12585
12587
|
danger: "pS",
|
|
12588
|
+
dangerSecondary: "pS",
|
|
12586
12589
|
whiteSecondary: "pS",
|
|
12587
12590
|
whitePrimary: "pS"
|
|
12588
12591
|
};
|
|
@@ -12596,6 +12599,7 @@ var fontWeight = {
|
|
|
12596
12599
|
ghost: "600",
|
|
12597
12600
|
tertiary: "600",
|
|
12598
12601
|
danger: "600",
|
|
12602
|
+
dangerSecondary: "600",
|
|
12599
12603
|
whiteSecondary: "600",
|
|
12600
12604
|
whitePrimary: "600"
|
|
12601
12605
|
};
|
|
@@ -12609,6 +12613,7 @@ var height = {
|
|
|
12609
12613
|
ghost: "3rem",
|
|
12610
12614
|
tertiary: "3rem",
|
|
12611
12615
|
danger: "3rem",
|
|
12616
|
+
dangerSecondary: "3rem",
|
|
12612
12617
|
whiteSecondary: "3rem",
|
|
12613
12618
|
whitePrimary: "auto"
|
|
12614
12619
|
};
|
|
@@ -12622,6 +12627,7 @@ var minWidth = {
|
|
|
12622
12627
|
ghost: "130px",
|
|
12623
12628
|
tertiary: "130px",
|
|
12624
12629
|
danger: "130px",
|
|
12630
|
+
dangerSecondary: "157px",
|
|
12625
12631
|
whiteSecondary: "160px",
|
|
12626
12632
|
whitePrimary: "130px"
|
|
12627
12633
|
};
|
|
@@ -12635,6 +12641,7 @@ var backgroundColor = {
|
|
|
12635
12641
|
ghost: "transparent",
|
|
12636
12642
|
tertiary: "transparent",
|
|
12637
12643
|
danger: "#ED125F",
|
|
12644
|
+
dangerSecondary: "transparent",
|
|
12638
12645
|
whiteSecondary: "transparent",
|
|
12639
12646
|
whitePrimary: "transparent"
|
|
12640
12647
|
};
|
|
@@ -12648,6 +12655,7 @@ var border = {
|
|
|
12648
12655
|
ghost: "none",
|
|
12649
12656
|
tertiary: "none",
|
|
12650
12657
|
danger: "2px solid #ED125F",
|
|
12658
|
+
dangerSecondary: "2px solid #D11053",
|
|
12651
12659
|
whiteSecondary: "2px solid white",
|
|
12652
12660
|
whitePrimary: "2px solid transparent"
|
|
12653
12661
|
};
|
|
@@ -12661,6 +12669,7 @@ var hoverBackgroundColor = {
|
|
|
12661
12669
|
ghost: "transparent",
|
|
12662
12670
|
tertiary: "transparent",
|
|
12663
12671
|
danger: "#BA002C",
|
|
12672
|
+
dangerSecondary: "transparent",
|
|
12664
12673
|
whiteSecondary: "transparent",
|
|
12665
12674
|
whitePrimary: "transparent"
|
|
12666
12675
|
};
|
|
@@ -12674,6 +12683,7 @@ var hoverBorderColor = {
|
|
|
12674
12683
|
ghost: "transparent",
|
|
12675
12684
|
tertiary: "transparent",
|
|
12676
12685
|
danger: "#BA002C",
|
|
12686
|
+
dangerSecondary: "#B10541",
|
|
12677
12687
|
whiteSecondary: "2px solid transparent",
|
|
12678
12688
|
whitePrimary: "2px solid transparent"
|
|
12679
12689
|
};
|
|
@@ -12687,6 +12697,7 @@ var hoverColor = {
|
|
|
12687
12697
|
ghost: "#116285",
|
|
12688
12698
|
tertiary: "#116285",
|
|
12689
12699
|
danger: "#FFFFFF",
|
|
12700
|
+
dangerSecondary: "#B10541",
|
|
12690
12701
|
whiteSecondary: "#FFFFFF",
|
|
12691
12702
|
whitePrimary: "#FFFFFF"
|
|
12692
12703
|
};
|
|
@@ -12700,6 +12711,7 @@ var activeBackgroundColor = {
|
|
|
12700
12711
|
ghost: "transparent",
|
|
12701
12712
|
tertiary: "transparent",
|
|
12702
12713
|
danger: "#870000",
|
|
12714
|
+
dangerSecondary: "transparent",
|
|
12703
12715
|
whiteSecondary: "transparent",
|
|
12704
12716
|
whitePrimary: "transparent"
|
|
12705
12717
|
};
|
|
@@ -12713,6 +12725,7 @@ var activeBorderColor = {
|
|
|
12713
12725
|
ghost: "transparent",
|
|
12714
12726
|
tertiary: "transparent",
|
|
12715
12727
|
danger: "#870000",
|
|
12728
|
+
dangerSecondary: "#910029",
|
|
12716
12729
|
whiteSecondary: "2px solid transparent",
|
|
12717
12730
|
whitePrimary: "2px solid transparent"
|
|
12718
12731
|
};
|
|
@@ -12726,6 +12739,7 @@ var activeColor = {
|
|
|
12726
12739
|
ghost: "#0E506D",
|
|
12727
12740
|
tertiary: "#0E506D",
|
|
12728
12741
|
danger: "#FFFFFF",
|
|
12742
|
+
dangerSecondary: "#910029",
|
|
12729
12743
|
whiteSecondary: "#FFFFFF",
|
|
12730
12744
|
whitePrimary: "#FFFFFF"
|
|
12731
12745
|
};
|
|
@@ -12811,7 +12825,7 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
|
|
|
12811
12825
|
}))))));
|
|
12812
12826
|
};
|
|
12813
12827
|
|
|
12814
|
-
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children", "extraDisabledStyles"];
|
|
12828
|
+
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "loadingColor", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children", "extraDisabledStyles"];
|
|
12815
12829
|
var rotate$1 = posed.div({
|
|
12816
12830
|
fixed: {
|
|
12817
12831
|
rotate: "0deg"
|
|
@@ -12837,11 +12851,13 @@ var SpinnerIconWrapper$1 = styled__default(rotate$1).withConfig({
|
|
|
12837
12851
|
})([""]);
|
|
12838
12852
|
|
|
12839
12853
|
var Spinner = function Spinner(_ref) {
|
|
12840
|
-
var
|
|
12854
|
+
var color = _ref.color,
|
|
12855
|
+
isMobile = _ref.isMobile;
|
|
12841
12856
|
return /*#__PURE__*/React__default.createElement(SpinnerContainer$1, null, /*#__PURE__*/React__default.createElement(SpinnerIconWrapper$1, {
|
|
12842
12857
|
initialPose: "fixed",
|
|
12843
12858
|
pose: "rotate"
|
|
12844
12859
|
}, /*#__PURE__*/React__default.createElement(SpinnerIcon, {
|
|
12860
|
+
color: color,
|
|
12845
12861
|
isMobile: isMobile
|
|
12846
12862
|
})));
|
|
12847
12863
|
};
|
|
@@ -12872,6 +12888,8 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12872
12888
|
textWrap = _ref2$textWrap === void 0 ? false : _ref2$textWrap,
|
|
12873
12889
|
_ref2$isLoading = _ref2.isLoading,
|
|
12874
12890
|
isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
|
|
12891
|
+
_ref2$loadingColor = _ref2.loadingColor,
|
|
12892
|
+
loadingColor = _ref2$loadingColor === void 0 ? "white" : _ref2$loadingColor,
|
|
12875
12893
|
_ref2$dataQa = _ref2.dataQa,
|
|
12876
12894
|
dataQa = _ref2$dataQa === void 0 ? null : _ref2$dataQa,
|
|
12877
12895
|
textExtraStyles = _ref2.textExtraStyles,
|
|
@@ -12910,6 +12928,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12910
12928
|
}, rest), contentOverride ? children : /*#__PURE__*/React__default.createElement(Center, {
|
|
12911
12929
|
intrinsic: true
|
|
12912
12930
|
}, isLoading ? /*#__PURE__*/React__default.createElement(Spinner, {
|
|
12931
|
+
color: loadingColor,
|
|
12913
12932
|
isMobile: isMobile
|
|
12914
12933
|
}) : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
12915
12934
|
weight: themeValues.fontWeight,
|
|
@@ -21308,7 +21327,7 @@ var check = function (it) {
|
|
|
21308
21327
|
|
|
21309
21328
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
21310
21329
|
var global_1 =
|
|
21311
|
-
// eslint-disable-next-line es
|
|
21330
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
21312
21331
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
21313
21332
|
check(typeof window == 'object' && window) ||
|
|
21314
21333
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
@@ -21327,12 +21346,12 @@ var fails = function (exec) {
|
|
|
21327
21346
|
|
|
21328
21347
|
// Detect IE8's incomplete defineProperty implementation
|
|
21329
21348
|
var descriptors = !fails(function () {
|
|
21330
|
-
// eslint-disable-next-line es
|
|
21349
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21331
21350
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
21332
21351
|
});
|
|
21333
21352
|
|
|
21334
21353
|
var functionBindNative = !fails(function () {
|
|
21335
|
-
// eslint-disable-next-line es
|
|
21354
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
21336
21355
|
var test = (function () { /* empty */ }).bind();
|
|
21337
21356
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
21338
21357
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -21345,7 +21364,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
21345
21364
|
};
|
|
21346
21365
|
|
|
21347
21366
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
21348
|
-
// eslint-disable-next-line es
|
|
21367
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21349
21368
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21350
21369
|
|
|
21351
21370
|
// Nashorn ~ JDK8 bug
|
|
@@ -21372,25 +21391,29 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
21372
21391
|
};
|
|
21373
21392
|
|
|
21374
21393
|
var FunctionPrototype = Function.prototype;
|
|
21375
|
-
var bind$1 = FunctionPrototype.bind;
|
|
21376
21394
|
var call$1 = FunctionPrototype.call;
|
|
21377
|
-
var
|
|
21395
|
+
var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
|
|
21378
21396
|
|
|
21379
|
-
var
|
|
21380
|
-
return
|
|
21381
|
-
} : function (fn) {
|
|
21382
|
-
return fn && function () {
|
|
21397
|
+
var functionUncurryThisRaw = function (fn) {
|
|
21398
|
+
return functionBindNative ? uncurryThisWithBind(fn) : function () {
|
|
21383
21399
|
return call$1.apply(fn, arguments);
|
|
21384
21400
|
};
|
|
21385
21401
|
};
|
|
21386
21402
|
|
|
21387
|
-
var toString$2 =
|
|
21388
|
-
var stringSlice =
|
|
21403
|
+
var toString$2 = functionUncurryThisRaw({}.toString);
|
|
21404
|
+
var stringSlice = functionUncurryThisRaw(''.slice);
|
|
21389
21405
|
|
|
21390
21406
|
var classofRaw = function (it) {
|
|
21391
21407
|
return stringSlice(toString$2(it), 8, -1);
|
|
21392
21408
|
};
|
|
21393
21409
|
|
|
21410
|
+
var functionUncurryThis = function (fn) {
|
|
21411
|
+
// Nashorn bug:
|
|
21412
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
21413
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
21414
|
+
if (classofRaw(fn) === 'Function') return functionUncurryThisRaw(fn);
|
|
21415
|
+
};
|
|
21416
|
+
|
|
21394
21417
|
var $Object = Object;
|
|
21395
21418
|
var split = functionUncurryThis(''.split);
|
|
21396
21419
|
|
|
@@ -21403,12 +21426,18 @@ var indexedObject = fails(function () {
|
|
|
21403
21426
|
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
21404
21427
|
} : $Object;
|
|
21405
21428
|
|
|
21429
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
21430
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
21431
|
+
var isNullOrUndefined = function (it) {
|
|
21432
|
+
return it === null || it === undefined;
|
|
21433
|
+
};
|
|
21434
|
+
|
|
21406
21435
|
var $TypeError = TypeError;
|
|
21407
21436
|
|
|
21408
21437
|
// `RequireObjectCoercible` abstract operation
|
|
21409
21438
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
21410
21439
|
var requireObjectCoercible = function (it) {
|
|
21411
|
-
if (it
|
|
21440
|
+
if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
|
|
21412
21441
|
return it;
|
|
21413
21442
|
};
|
|
21414
21443
|
|
|
@@ -21420,13 +21449,31 @@ var toIndexedObject = function (it) {
|
|
|
21420
21449
|
return indexedObject(requireObjectCoercible(it));
|
|
21421
21450
|
};
|
|
21422
21451
|
|
|
21452
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
21453
|
+
|
|
21454
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
21455
|
+
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
21456
|
+
|
|
21457
|
+
var documentAll_1 = {
|
|
21458
|
+
all: documentAll,
|
|
21459
|
+
IS_HTMLDDA: IS_HTMLDDA
|
|
21460
|
+
};
|
|
21461
|
+
|
|
21462
|
+
var documentAll$1 = documentAll_1.all;
|
|
21463
|
+
|
|
21423
21464
|
// `IsCallable` abstract operation
|
|
21424
21465
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
21425
|
-
var isCallable = function (argument) {
|
|
21466
|
+
var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
|
|
21467
|
+
return typeof argument == 'function' || argument === documentAll$1;
|
|
21468
|
+
} : function (argument) {
|
|
21426
21469
|
return typeof argument == 'function';
|
|
21427
21470
|
};
|
|
21428
21471
|
|
|
21429
|
-
var
|
|
21472
|
+
var documentAll$2 = documentAll_1.all;
|
|
21473
|
+
|
|
21474
|
+
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
21475
|
+
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
21476
|
+
} : function (it) {
|
|
21430
21477
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
21431
21478
|
};
|
|
21432
21479
|
|
|
@@ -21467,12 +21514,12 @@ if (!version && engineUserAgent) {
|
|
|
21467
21514
|
|
|
21468
21515
|
var engineV8Version = version;
|
|
21469
21516
|
|
|
21470
|
-
/* eslint-disable es
|
|
21517
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
21471
21518
|
|
|
21472
21519
|
|
|
21473
21520
|
|
|
21474
|
-
// eslint-disable-next-line es
|
|
21475
|
-
var
|
|
21521
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
21522
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
21476
21523
|
var symbol = Symbol();
|
|
21477
21524
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
21478
21525
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -21481,10 +21528,10 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
|
21481
21528
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
21482
21529
|
});
|
|
21483
21530
|
|
|
21484
|
-
/* eslint-disable es
|
|
21531
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
21485
21532
|
|
|
21486
21533
|
|
|
21487
|
-
var useSymbolAsUid =
|
|
21534
|
+
var useSymbolAsUid = symbolConstructorDetection
|
|
21488
21535
|
&& !Symbol.sham
|
|
21489
21536
|
&& typeof Symbol.iterator == 'symbol';
|
|
21490
21537
|
|
|
@@ -21519,7 +21566,7 @@ var aCallable = function (argument) {
|
|
|
21519
21566
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
21520
21567
|
var getMethod = function (V, P) {
|
|
21521
21568
|
var func = V[P];
|
|
21522
|
-
return func
|
|
21569
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
21523
21570
|
};
|
|
21524
21571
|
|
|
21525
21572
|
var $TypeError$2 = TypeError;
|
|
@@ -21534,7 +21581,7 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
21534
21581
|
throw $TypeError$2("Can't convert object to primitive value");
|
|
21535
21582
|
};
|
|
21536
21583
|
|
|
21537
|
-
// eslint-disable-next-line es
|
|
21584
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21538
21585
|
var defineProperty = Object.defineProperty;
|
|
21539
21586
|
|
|
21540
21587
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -21554,10 +21601,10 @@ var shared = createCommonjsModule(function (module) {
|
|
|
21554
21601
|
(module.exports = function (key, value) {
|
|
21555
21602
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
21556
21603
|
})('versions', []).push({
|
|
21557
|
-
version: '3.
|
|
21604
|
+
version: '3.25.5',
|
|
21558
21605
|
mode: 'global',
|
|
21559
21606
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
21560
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
21607
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
|
|
21561
21608
|
source: 'https://github.com/zloirock/core-js'
|
|
21562
21609
|
});
|
|
21563
21610
|
});
|
|
@@ -21574,7 +21621,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
21574
21621
|
|
|
21575
21622
|
// `HasOwnProperty` abstract operation
|
|
21576
21623
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
21577
|
-
// eslint-disable-next-line es
|
|
21624
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
21578
21625
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
21579
21626
|
return hasOwnProperty(toObject(it), key);
|
|
21580
21627
|
};
|
|
@@ -21593,9 +21640,9 @@ var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
|
21593
21640
|
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
21594
21641
|
|
|
21595
21642
|
var wellKnownSymbol = function (name) {
|
|
21596
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(
|
|
21643
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(symbolConstructorDetection || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
21597
21644
|
var description = 'Symbol.' + name;
|
|
21598
|
-
if (
|
|
21645
|
+
if (symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)) {
|
|
21599
21646
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
21600
21647
|
} else if (useSymbolAsUid && symbolFor) {
|
|
21601
21648
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -21641,13 +21688,13 @@ var documentCreateElement = function (it) {
|
|
|
21641
21688
|
|
|
21642
21689
|
// Thanks to IE8 for its funny defineProperty
|
|
21643
21690
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
21644
|
-
// eslint-disable-next-line es
|
|
21691
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21645
21692
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
21646
21693
|
get: function () { return 7; }
|
|
21647
21694
|
}).a != 7;
|
|
21648
21695
|
});
|
|
21649
21696
|
|
|
21650
|
-
// eslint-disable-next-line es
|
|
21697
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21651
21698
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21652
21699
|
|
|
21653
21700
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -21668,7 +21715,7 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
21668
21715
|
// V8 ~ Chrome 36-
|
|
21669
21716
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
21670
21717
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
21671
|
-
// eslint-disable-next-line es
|
|
21718
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21672
21719
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
21673
21720
|
value: 42,
|
|
21674
21721
|
writable: false
|
|
@@ -21685,9 +21732,9 @@ var anObject = function (argument) {
|
|
|
21685
21732
|
};
|
|
21686
21733
|
|
|
21687
21734
|
var $TypeError$5 = TypeError;
|
|
21688
|
-
// eslint-disable-next-line es
|
|
21735
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21689
21736
|
var $defineProperty = Object.defineProperty;
|
|
21690
|
-
// eslint-disable-next-line es
|
|
21737
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21691
21738
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
21692
21739
|
var ENUMERABLE = 'enumerable';
|
|
21693
21740
|
var CONFIGURABLE = 'configurable';
|
|
@@ -21734,7 +21781,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
21734
21781
|
};
|
|
21735
21782
|
|
|
21736
21783
|
var FunctionPrototype$1 = Function.prototype;
|
|
21737
|
-
// eslint-disable-next-line es
|
|
21784
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21738
21785
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
21739
21786
|
|
|
21740
21787
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -21761,7 +21808,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
21761
21808
|
|
|
21762
21809
|
var WeakMap$1 = global_1.WeakMap;
|
|
21763
21810
|
|
|
21764
|
-
var
|
|
21811
|
+
var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
21765
21812
|
|
|
21766
21813
|
var keys$1 = shared('keys');
|
|
21767
21814
|
|
|
@@ -21789,28 +21836,30 @@ var getterFor = function (TYPE) {
|
|
|
21789
21836
|
};
|
|
21790
21837
|
};
|
|
21791
21838
|
|
|
21792
|
-
if (
|
|
21839
|
+
if (weakMapBasicDetection || sharedStore.state) {
|
|
21793
21840
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
21794
|
-
|
|
21795
|
-
|
|
21796
|
-
|
|
21841
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
21842
|
+
store$1.get = store$1.get;
|
|
21843
|
+
store$1.has = store$1.has;
|
|
21844
|
+
store$1.set = store$1.set;
|
|
21845
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
21797
21846
|
set = function (it, metadata) {
|
|
21798
|
-
if (
|
|
21847
|
+
if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21799
21848
|
metadata.facade = it;
|
|
21800
|
-
|
|
21849
|
+
store$1.set(it, metadata);
|
|
21801
21850
|
return metadata;
|
|
21802
21851
|
};
|
|
21803
21852
|
get = function (it) {
|
|
21804
|
-
return
|
|
21853
|
+
return store$1.get(it) || {};
|
|
21805
21854
|
};
|
|
21806
21855
|
has = function (it) {
|
|
21807
|
-
return
|
|
21856
|
+
return store$1.has(it);
|
|
21808
21857
|
};
|
|
21809
21858
|
} else {
|
|
21810
21859
|
var STATE = sharedKey('state');
|
|
21811
21860
|
hiddenKeys[STATE] = true;
|
|
21812
21861
|
set = function (it, metadata) {
|
|
21813
|
-
if (hasOwnProperty_1(it, STATE)) throw
|
|
21862
|
+
if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21814
21863
|
metadata.facade = it;
|
|
21815
21864
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
21816
21865
|
return metadata;
|
|
@@ -21838,7 +21887,7 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
|
21838
21887
|
|
|
21839
21888
|
var enforceInternalState = internalState.enforce;
|
|
21840
21889
|
var getInternalState = internalState.get;
|
|
21841
|
-
// eslint-disable-next-line es
|
|
21890
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21842
21891
|
var defineProperty = Object.defineProperty;
|
|
21843
21892
|
|
|
21844
21893
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
@@ -21907,7 +21956,7 @@ var floor = Math.floor;
|
|
|
21907
21956
|
|
|
21908
21957
|
// `Math.trunc` method
|
|
21909
21958
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
21910
|
-
// eslint-disable-next-line es
|
|
21959
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
21911
21960
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
21912
21961
|
var n = +x;
|
|
21913
21962
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -22008,7 +22057,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
22008
22057
|
|
|
22009
22058
|
// `Object.getOwnPropertyNames` method
|
|
22010
22059
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
22011
|
-
// eslint-disable-next-line es
|
|
22060
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
22012
22061
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
22013
22062
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
22014
22063
|
};
|
|
@@ -22017,7 +22066,7 @@ var objectGetOwnPropertyNames = {
|
|
|
22017
22066
|
f: f$3
|
|
22018
22067
|
};
|
|
22019
22068
|
|
|
22020
|
-
// eslint-disable-next-line es
|
|
22069
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
22021
22070
|
var f$4 = Object.getOwnPropertySymbols;
|
|
22022
22071
|
|
|
22023
22072
|
var objectGetOwnPropertySymbols = {
|
|
@@ -22161,7 +22210,7 @@ var toString_1 = function (argument) {
|
|
|
22161
22210
|
var charAt = functionUncurryThis(''.charAt);
|
|
22162
22211
|
|
|
22163
22212
|
var FORCED = fails(function () {
|
|
22164
|
-
// eslint-disable-next-line es
|
|
22213
|
+
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
22165
22214
|
return '𠮷'.at(-2) !== '\uD842';
|
|
22166
22215
|
});
|
|
22167
22216
|
|
|
@@ -22179,14 +22228,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
22179
22228
|
|
|
22180
22229
|
// `Object.keys` method
|
|
22181
22230
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
22182
|
-
// eslint-disable-next-line es
|
|
22231
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
22183
22232
|
var objectKeys = Object.keys || function keys(O) {
|
|
22184
22233
|
return objectKeysInternal(O, enumBugKeys);
|
|
22185
22234
|
};
|
|
22186
22235
|
|
|
22187
22236
|
// `Object.defineProperties` method
|
|
22188
22237
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
22189
|
-
// eslint-disable-next-line es
|
|
22238
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
22190
22239
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
22191
22240
|
anObject(O);
|
|
22192
22241
|
var props = toIndexedObject(Properties);
|
|
@@ -22275,7 +22324,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
22275
22324
|
|
|
22276
22325
|
// `Object.create` method
|
|
22277
22326
|
// https://tc39.es/ecma262/#sec-object.create
|
|
22278
|
-
// eslint-disable-next-line es
|
|
22327
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
22279
22328
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
22280
22329
|
var result;
|
|
22281
22330
|
if (O !== null) {
|
|
@@ -22321,13 +22370,13 @@ _export({ target: 'Array', proto: true }, {
|
|
|
22321
22370
|
|
|
22322
22371
|
addToUnscopables('at');
|
|
22323
22372
|
|
|
22324
|
-
// eslint-disable-next-line es
|
|
22325
|
-
var
|
|
22373
|
+
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
22374
|
+
var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
22326
22375
|
|
|
22327
22376
|
var correctPrototypeGetter = !fails(function () {
|
|
22328
22377
|
function F() { /* empty */ }
|
|
22329
22378
|
F.prototype.constructor = null;
|
|
22330
|
-
// eslint-disable-next-line es
|
|
22379
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
22331
22380
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
22332
22381
|
});
|
|
22333
22382
|
|
|
@@ -22337,7 +22386,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
22337
22386
|
|
|
22338
22387
|
// `Object.getPrototypeOf` method
|
|
22339
22388
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
22340
|
-
// eslint-disable-next-line es
|
|
22389
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
22341
22390
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
22342
22391
|
var object = toObject(O);
|
|
22343
22392
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -22363,13 +22412,13 @@ var aPossiblePrototype = function (argument) {
|
|
|
22363
22412
|
// `Object.setPrototypeOf` method
|
|
22364
22413
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
22365
22414
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
22366
|
-
// eslint-disable-next-line es
|
|
22415
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
22367
22416
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
22368
22417
|
var CORRECT_SETTER = false;
|
|
22369
22418
|
var test = {};
|
|
22370
22419
|
var setter;
|
|
22371
22420
|
try {
|
|
22372
|
-
// eslint-disable-next-line es
|
|
22421
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22373
22422
|
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
22374
22423
|
setter(test, []);
|
|
22375
22424
|
CORRECT_SETTER = test instanceof Array;
|
|
@@ -22406,7 +22455,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
22406
22455
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
22407
22456
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
22408
22457
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
22409
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
22458
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
22410
22459
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
22411
22460
|
var NAME, Constructor, Prototype;
|
|
22412
22461
|
|