@thecb/components 9.3.5-beta.1 → 9.3.6-beta.1
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 +223 -226
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +223 -226
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/atoms/icons/ShoppingCartIcon.js +3 -13
- package/src/components/atoms/jumbo/Jumbo.js +7 -1
- package/src/components/atoms/labeled-amount/LabeledAmount.js +32 -7
- package/src/components/atoms/labeled-amount/LabeledAmount.stories.js +0 -13
- package/src/components/atoms/labeled-amount/LabeledAmount.theme.js +1 -7
- package/src/components/atoms/line-item/LineItem.js +35 -21
- package/src/components/atoms/line-item/LineItem.theme.js +2 -2
- package/src/components/molecules/modal/Modal.js +3 -3
- package/src/components/molecules/payment-details/PaymentDetails.js +13 -14
- package/src/components/molecules/payment-details/PaymentDetails.stories.js +0 -36
- package/src/components/molecules/payment-details/PaymentDetails.theme.js +2 -2
- package/src/components/atoms/labeled-amount/LabeledAmountV1.js +0 -37
- package/src/components/atoms/labeled-amount/LabeledAmountV2.js +0 -34
package/dist/index.cjs.js
CHANGED
|
@@ -15277,7 +15277,8 @@ var EmptyCartIcon = function EmptyCartIcon(_ref) {
|
|
|
15277
15277
|
|
|
15278
15278
|
var EmptyCartIcon$1 = themeComponent(EmptyCartIcon, "Icons", fallbackValues$2, "info");
|
|
15279
15279
|
|
|
15280
|
-
var ShoppingCartIcon = function ShoppingCartIcon() {
|
|
15280
|
+
var ShoppingCartIcon = function ShoppingCartIcon(_ref) {
|
|
15281
|
+
var iconFill = _ref.iconFill;
|
|
15281
15282
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
15282
15283
|
width: "32px",
|
|
15283
15284
|
height: "32px",
|
|
@@ -15285,28 +15286,20 @@ var ShoppingCartIcon = function ShoppingCartIcon() {
|
|
|
15285
15286
|
version: "1.1",
|
|
15286
15287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15287
15288
|
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
15288
|
-
}, /*#__PURE__*/React__default.createElement("title", null, "Icon - Cart-Empty"), /*#__PURE__*/React__default.createElement("
|
|
15289
|
-
id: "cart-badge-filter-1"
|
|
15290
|
-
}, /*#__PURE__*/React__default.createElement("feColorMatrix", {
|
|
15291
|
-
"in": "SourceGraphic",
|
|
15292
|
-
type: "matrix",
|
|
15293
|
-
values: "0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"
|
|
15294
|
-
}))), /*#__PURE__*/React__default.createElement("g", {
|
|
15289
|
+
}, /*#__PURE__*/React__default.createElement("title", null, "Icon - Cart-Empty"), /*#__PURE__*/React__default.createElement("g", {
|
|
15295
15290
|
id: "cart-badge-Icon---Cart-Empty",
|
|
15296
15291
|
stroke: "none",
|
|
15297
15292
|
strokeWidth: "1",
|
|
15298
15293
|
fill: "none",
|
|
15299
15294
|
fillRule: "evenodd"
|
|
15300
15295
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15301
|
-
filter: "url(#cart-badge-filter-1)",
|
|
15302
15296
|
id: "cart-badge-Group"
|
|
15303
15297
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15304
15298
|
transform: "translate(3.000000, 7.000000)"
|
|
15305
15299
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
15306
15300
|
d: "M18.7499553,20.499994 C19.348912,20.499994 19.8632339,20.2851508 20.2929204,19.8554643 C20.7226068,19.4257779 20.9374501,18.911456 20.9374501,18.3124993 C20.9374501,17.8958334 20.8267735,17.5117199 20.6054196,17.1601583 C20.3840658,16.8085966 20.0780771,16.5416703 19.6874531,16.3593789 L19.6874531,16.3593789 L19.9218275,15.3828187 C19.9739105,15.0963613 19.9088069,14.835945 19.7265155,14.6015706 C19.544224,14.3671962 19.3098496,14.2500089 19.0233921,14.2500089 L19.0233921,14.2500089 L8.5156047,14.2500089 L8.28123026,13.0000119 L19.7265155,13.0000119 C19.9348481,13.0000119 20.1236501,12.9349077 20.2929204,12.8046999 C20.4621906,12.6744921 20.5728678,12.4922006 20.6249508,12.2578262 L20.6249508,12.2578262 L22.4608839,4.13284556 C22.5390088,3.84638811 22.4869258,3.58597187 22.3046343,3.35159742 C22.1223429,3.11722298 21.8749478,3.00004172 21.5624486,3.00004172 L21.5624486,3.00004172 L6.21092269,3.00004172 L5.85936103,1.24222745 C5.80727802,1.03389482 5.6966008,0.858113985 5.52733057,0.714884961 C5.35806034,0.571655937 5.16925831,0.500041723 4.96092567,0.500041723 L4.96092567,0.500041723 L0.937497765,0.500041723 C0.67708152,0.500041723 0.455728279,0.591187141 0.273436848,0.773478571 C0.0911454173,0.955770002 0,1.17712324 0,1.43753949 L0,1.43753949 L0,2.062538 C0,2.32295424 0.0911454173,2.54430748 0.273436848,2.72659891 C0.455728279,2.90889035 0.67708152,3.00004172 0.937497765,3.00004172 L0.937497765,3.00004172 L3.67186625,3.00004172 L6.40623473,16.3984413 C6.06769367,16.606774 5.80076742,16.8802108 5.60545539,17.2187519 C5.41014335,17.5572929 5.31248733,17.9218752 5.31248733,18.3124993 C5.31248733,18.911456 5.52733057,19.4257779 5.95701705,19.8554643 C6.38670352,20.2851508 6.90102541,20.499994 7.49998212,20.499994 C8.09893883,20.499994 8.61326071,20.2851508 9.04294719,19.8554643 C9.47263367,19.4257779 9.6874769,18.904946 9.6874769,18.2929681 C9.6874769,17.6809901 9.46612307,17.1666689 9.02341599,16.750003 L9.02341599,16.750003 L17.2265214,16.750003 C16.7838143,17.1666689 16.5624605,17.6809901 16.5624605,18.2929681 C16.5624605,18.904946 16.7773037,19.4257779 17.2069902,19.8554643 C17.6366767,20.2851508 18.1509986,20.499994 18.7499553,20.499994 Z",
|
|
15307
15301
|
id: "cart-badge-shopping-cart",
|
|
15308
|
-
fill: "#FFFFFF"
|
|
15309
|
-
fillRule: "nonzero"
|
|
15302
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : "#FFFFFF"
|
|
15310
15303
|
})))));
|
|
15311
15304
|
};
|
|
15312
15305
|
|
|
@@ -22494,17 +22487,18 @@ var DropdownIcon = function DropdownIcon() {
|
|
|
22494
22487
|
};
|
|
22495
22488
|
|
|
22496
22489
|
var check = function (it) {
|
|
22497
|
-
return it && it.Math
|
|
22490
|
+
return it && it.Math === Math && it;
|
|
22498
22491
|
};
|
|
22499
22492
|
|
|
22500
22493
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22501
22494
|
var global_1 =
|
|
22502
|
-
// eslint-disable-next-line es
|
|
22495
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
22503
22496
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22504
22497
|
check(typeof window == 'object' && window) ||
|
|
22505
22498
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
22506
22499
|
check(typeof self == 'object' && self) ||
|
|
22507
22500
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22501
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22508
22502
|
// eslint-disable-next-line no-new-func -- fallback
|
|
22509
22503
|
(function () { return this; })() || Function('return this')();
|
|
22510
22504
|
|
|
@@ -22518,12 +22512,12 @@ var fails = function (exec) {
|
|
|
22518
22512
|
|
|
22519
22513
|
// Detect IE8's incomplete defineProperty implementation
|
|
22520
22514
|
var descriptors = !fails(function () {
|
|
22521
|
-
// eslint-disable-next-line es
|
|
22522
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1]
|
|
22515
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22516
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
22523
22517
|
});
|
|
22524
22518
|
|
|
22525
22519
|
var functionBindNative = !fails(function () {
|
|
22526
|
-
// eslint-disable-next-line es
|
|
22520
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
22527
22521
|
var test = (function () { /* empty */ }).bind();
|
|
22528
22522
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22529
22523
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -22536,7 +22530,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
22536
22530
|
};
|
|
22537
22531
|
|
|
22538
22532
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
22539
|
-
// eslint-disable-next-line es
|
|
22533
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22540
22534
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22541
22535
|
|
|
22542
22536
|
// Nashorn ~ JDK8 bug
|
|
@@ -22563,14 +22557,11 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
22563
22557
|
};
|
|
22564
22558
|
|
|
22565
22559
|
var FunctionPrototype = Function.prototype;
|
|
22566
|
-
var bind$1 = FunctionPrototype.bind;
|
|
22567
22560
|
var call$1 = FunctionPrototype.call;
|
|
22568
|
-
var
|
|
22561
|
+
var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
|
|
22569
22562
|
|
|
22570
|
-
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
22571
|
-
return
|
|
22572
|
-
} : function (fn) {
|
|
22573
|
-
return fn && function () {
|
|
22563
|
+
var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
|
|
22564
|
+
return function () {
|
|
22574
22565
|
return call$1.apply(fn, arguments);
|
|
22575
22566
|
};
|
|
22576
22567
|
};
|
|
@@ -22591,15 +22582,21 @@ var indexedObject = fails(function () {
|
|
|
22591
22582
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22592
22583
|
return !$Object('z').propertyIsEnumerable(0);
|
|
22593
22584
|
}) ? function (it) {
|
|
22594
|
-
return classofRaw(it)
|
|
22585
|
+
return classofRaw(it) === 'String' ? split(it, '') : $Object(it);
|
|
22595
22586
|
} : $Object;
|
|
22596
22587
|
|
|
22588
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
22589
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
22590
|
+
var isNullOrUndefined = function (it) {
|
|
22591
|
+
return it === null || it === undefined;
|
|
22592
|
+
};
|
|
22593
|
+
|
|
22597
22594
|
var $TypeError = TypeError;
|
|
22598
22595
|
|
|
22599
22596
|
// `RequireObjectCoercible` abstract operation
|
|
22600
22597
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
22601
22598
|
var requireObjectCoercible = function (it) {
|
|
22602
|
-
if (it
|
|
22599
|
+
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
|
|
22603
22600
|
return it;
|
|
22604
22601
|
};
|
|
22605
22602
|
|
|
@@ -22611,13 +22608,32 @@ var toIndexedObject = function (it) {
|
|
|
22611
22608
|
return indexedObject(requireObjectCoercible(it));
|
|
22612
22609
|
};
|
|
22613
22610
|
|
|
22611
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
22612
|
+
|
|
22613
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
22614
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
22615
|
+
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
22616
|
+
|
|
22617
|
+
var documentAll_1 = {
|
|
22618
|
+
all: documentAll,
|
|
22619
|
+
IS_HTMLDDA: IS_HTMLDDA
|
|
22620
|
+
};
|
|
22621
|
+
|
|
22622
|
+
var documentAll$1 = documentAll_1.all;
|
|
22623
|
+
|
|
22614
22624
|
// `IsCallable` abstract operation
|
|
22615
22625
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
22616
|
-
var isCallable = function (argument) {
|
|
22626
|
+
var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
|
|
22627
|
+
return typeof argument == 'function' || argument === documentAll$1;
|
|
22628
|
+
} : function (argument) {
|
|
22617
22629
|
return typeof argument == 'function';
|
|
22618
22630
|
};
|
|
22619
22631
|
|
|
22620
|
-
var
|
|
22632
|
+
var documentAll$2 = documentAll_1.all;
|
|
22633
|
+
|
|
22634
|
+
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
22635
|
+
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
22636
|
+
} : function (it) {
|
|
22621
22637
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
22622
22638
|
};
|
|
22623
22639
|
|
|
@@ -22631,7 +22647,7 @@ var getBuiltIn = function (namespace, method) {
|
|
|
22631
22647
|
|
|
22632
22648
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
22633
22649
|
|
|
22634
|
-
var engineUserAgent =
|
|
22650
|
+
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
22635
22651
|
|
|
22636
22652
|
var process$1 = global_1.process;
|
|
22637
22653
|
var Deno = global_1.Deno;
|
|
@@ -22658,24 +22674,29 @@ if (!version && engineUserAgent) {
|
|
|
22658
22674
|
|
|
22659
22675
|
var engineV8Version = version;
|
|
22660
22676
|
|
|
22661
|
-
/* eslint-disable es
|
|
22677
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
22678
|
+
|
|
22662
22679
|
|
|
22663
22680
|
|
|
22664
22681
|
|
|
22665
|
-
|
|
22666
|
-
|
|
22667
|
-
|
|
22682
|
+
var $String = global_1.String;
|
|
22683
|
+
|
|
22684
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
22685
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22686
|
+
var symbol = Symbol('symbol detection');
|
|
22668
22687
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
22669
22688
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
22670
|
-
|
|
22689
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
22690
|
+
// of course, fail.
|
|
22691
|
+
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22671
22692
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
22672
22693
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
22673
22694
|
});
|
|
22674
22695
|
|
|
22675
|
-
/* eslint-disable es
|
|
22696
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
22676
22697
|
|
|
22677
22698
|
|
|
22678
|
-
var useSymbolAsUid =
|
|
22699
|
+
var useSymbolAsUid = symbolConstructorDetection
|
|
22679
22700
|
&& !Symbol.sham
|
|
22680
22701
|
&& typeof Symbol.iterator == 'symbol';
|
|
22681
22702
|
|
|
@@ -22688,11 +22709,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
|
|
|
22688
22709
|
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
22689
22710
|
};
|
|
22690
22711
|
|
|
22691
|
-
var $String = String;
|
|
22712
|
+
var $String$1 = String;
|
|
22692
22713
|
|
|
22693
22714
|
var tryToString = function (argument) {
|
|
22694
22715
|
try {
|
|
22695
|
-
return $String(argument);
|
|
22716
|
+
return $String$1(argument);
|
|
22696
22717
|
} catch (error) {
|
|
22697
22718
|
return 'Object';
|
|
22698
22719
|
}
|
|
@@ -22703,14 +22724,14 @@ var $TypeError$1 = TypeError;
|
|
|
22703
22724
|
// `Assert: IsCallable(argument) is true`
|
|
22704
22725
|
var aCallable = function (argument) {
|
|
22705
22726
|
if (isCallable(argument)) return argument;
|
|
22706
|
-
throw $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22727
|
+
throw new $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22707
22728
|
};
|
|
22708
22729
|
|
|
22709
22730
|
// `GetMethod` abstract operation
|
|
22710
22731
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
22711
22732
|
var getMethod = function (V, P) {
|
|
22712
22733
|
var func = V[P];
|
|
22713
|
-
return func
|
|
22734
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
22714
22735
|
};
|
|
22715
22736
|
|
|
22716
22737
|
var $TypeError$2 = TypeError;
|
|
@@ -22722,10 +22743,10 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
22722
22743
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22723
22744
|
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
|
22724
22745
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22725
|
-
throw $TypeError$2("Can't convert object to primitive value");
|
|
22746
|
+
throw new $TypeError$2("Can't convert object to primitive value");
|
|
22726
22747
|
};
|
|
22727
22748
|
|
|
22728
|
-
// eslint-disable-next-line es
|
|
22749
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22729
22750
|
var defineProperty = Object.defineProperty;
|
|
22730
22751
|
|
|
22731
22752
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -22742,13 +22763,16 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
|
|
|
22742
22763
|
var sharedStore = store;
|
|
22743
22764
|
|
|
22744
22765
|
var shared = createCommonjsModule(function (module) {
|
|
22766
|
+
|
|
22767
|
+
|
|
22768
|
+
|
|
22745
22769
|
(module.exports = function (key, value) {
|
|
22746
22770
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
22747
22771
|
})('versions', []).push({
|
|
22748
|
-
version: '3.
|
|
22772
|
+
version: '3.33.3',
|
|
22749
22773
|
mode: 'global',
|
|
22750
|
-
copyright: '© 2014-
|
|
22751
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
22774
|
+
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
22775
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
|
|
22752
22776
|
source: 'https://github.com/zloirock/core-js'
|
|
22753
22777
|
});
|
|
22754
22778
|
});
|
|
@@ -22765,7 +22789,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
22765
22789
|
|
|
22766
22790
|
// `HasOwnProperty` abstract operation
|
|
22767
22791
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
22768
|
-
// eslint-disable-next-line es
|
|
22792
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
22769
22793
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
22770
22794
|
return hasOwnProperty(toObject(it), key);
|
|
22771
22795
|
};
|
|
@@ -22778,21 +22802,15 @@ var uid = function (key) {
|
|
|
22778
22802
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
22779
22803
|
};
|
|
22780
22804
|
|
|
22781
|
-
var WellKnownSymbolsStore = shared('wks');
|
|
22782
22805
|
var Symbol$1 = global_1.Symbol;
|
|
22783
|
-
var
|
|
22784
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
22806
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
22807
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
22785
22808
|
|
|
22786
22809
|
var wellKnownSymbol = function (name) {
|
|
22787
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)
|
|
22788
|
-
|
|
22789
|
-
|
|
22790
|
-
|
|
22791
|
-
} else if (useSymbolAsUid && symbolFor) {
|
|
22792
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
22793
|
-
} else {
|
|
22794
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
22795
|
-
}
|
|
22810
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
|
|
22811
|
+
WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
|
|
22812
|
+
? Symbol$1[name]
|
|
22813
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
22796
22814
|
} return WellKnownSymbolsStore[name];
|
|
22797
22815
|
};
|
|
22798
22816
|
|
|
@@ -22809,7 +22827,7 @@ var toPrimitive = function (input, pref) {
|
|
|
22809
22827
|
if (pref === undefined) pref = 'default';
|
|
22810
22828
|
result = functionCall(exoticToPrim, input, pref);
|
|
22811
22829
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
22812
|
-
throw $TypeError$3("Can't convert object to primitive value");
|
|
22830
|
+
throw new $TypeError$3("Can't convert object to primitive value");
|
|
22813
22831
|
}
|
|
22814
22832
|
if (pref === undefined) pref = 'number';
|
|
22815
22833
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -22832,13 +22850,13 @@ var documentCreateElement = function (it) {
|
|
|
22832
22850
|
|
|
22833
22851
|
// Thanks to IE8 for its funny defineProperty
|
|
22834
22852
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
22835
|
-
// eslint-disable-next-line es
|
|
22853
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22836
22854
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
22837
22855
|
get: function () { return 7; }
|
|
22838
|
-
}).a
|
|
22856
|
+
}).a !== 7;
|
|
22839
22857
|
});
|
|
22840
22858
|
|
|
22841
|
-
// eslint-disable-next-line es
|
|
22859
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22842
22860
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22843
22861
|
|
|
22844
22862
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -22859,26 +22877,26 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
22859
22877
|
// V8 ~ Chrome 36-
|
|
22860
22878
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
22861
22879
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
22862
|
-
// eslint-disable-next-line es
|
|
22880
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22863
22881
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
22864
22882
|
value: 42,
|
|
22865
22883
|
writable: false
|
|
22866
|
-
}).prototype
|
|
22884
|
+
}).prototype !== 42;
|
|
22867
22885
|
});
|
|
22868
22886
|
|
|
22869
|
-
var $String$
|
|
22887
|
+
var $String$2 = String;
|
|
22870
22888
|
var $TypeError$4 = TypeError;
|
|
22871
22889
|
|
|
22872
22890
|
// `Assert: Type(argument) is Object`
|
|
22873
22891
|
var anObject = function (argument) {
|
|
22874
22892
|
if (isObject(argument)) return argument;
|
|
22875
|
-
throw $TypeError$4($String$
|
|
22893
|
+
throw new $TypeError$4($String$2(argument) + ' is not an object');
|
|
22876
22894
|
};
|
|
22877
22895
|
|
|
22878
22896
|
var $TypeError$5 = TypeError;
|
|
22879
|
-
// eslint-disable-next-line es
|
|
22897
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22880
22898
|
var $defineProperty = Object.defineProperty;
|
|
22881
|
-
// eslint-disable-next-line es
|
|
22899
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22882
22900
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
22883
22901
|
var ENUMERABLE = 'enumerable';
|
|
22884
22902
|
var CONFIGURABLE = 'configurable';
|
|
@@ -22908,7 +22926,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
|
|
|
22908
22926
|
if (ie8DomDefine) try {
|
|
22909
22927
|
return $defineProperty(O, P, Attributes);
|
|
22910
22928
|
} catch (error) { /* empty */ }
|
|
22911
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
|
|
22929
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
|
|
22912
22930
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
22913
22931
|
return O;
|
|
22914
22932
|
};
|
|
@@ -22925,7 +22943,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
22925
22943
|
};
|
|
22926
22944
|
|
|
22927
22945
|
var FunctionPrototype$1 = Function.prototype;
|
|
22928
|
-
// eslint-disable-next-line es
|
|
22946
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22929
22947
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
22930
22948
|
|
|
22931
22949
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -22952,7 +22970,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
22952
22970
|
|
|
22953
22971
|
var WeakMap$1 = global_1.WeakMap;
|
|
22954
22972
|
|
|
22955
|
-
var
|
|
22973
|
+
var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
22956
22974
|
|
|
22957
22975
|
var keys$1 = shared('keys');
|
|
22958
22976
|
|
|
@@ -22975,27 +22993,29 @@ var getterFor = function (TYPE) {
|
|
|
22975
22993
|
return function (it) {
|
|
22976
22994
|
var state;
|
|
22977
22995
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
22978
|
-
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
22996
|
+
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
22979
22997
|
} return state;
|
|
22980
22998
|
};
|
|
22981
22999
|
};
|
|
22982
23000
|
|
|
22983
|
-
if (
|
|
23001
|
+
if (weakMapBasicDetection || sharedStore.state) {
|
|
22984
23002
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
22985
|
-
|
|
22986
|
-
|
|
22987
|
-
|
|
23003
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
23004
|
+
store$1.get = store$1.get;
|
|
23005
|
+
store$1.has = store$1.has;
|
|
23006
|
+
store$1.set = store$1.set;
|
|
23007
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
22988
23008
|
set = function (it, metadata) {
|
|
22989
|
-
if (
|
|
23009
|
+
if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
22990
23010
|
metadata.facade = it;
|
|
22991
|
-
|
|
23011
|
+
store$1.set(it, metadata);
|
|
22992
23012
|
return metadata;
|
|
22993
23013
|
};
|
|
22994
23014
|
get = function (it) {
|
|
22995
|
-
return
|
|
23015
|
+
return store$1.get(it) || {};
|
|
22996
23016
|
};
|
|
22997
23017
|
has = function (it) {
|
|
22998
|
-
return
|
|
23018
|
+
return store$1.has(it);
|
|
22999
23019
|
};
|
|
23000
23020
|
} else {
|
|
23001
23021
|
var STATE = sharedKey('state');
|
|
@@ -23023,14 +23043,23 @@ var internalState = {
|
|
|
23023
23043
|
};
|
|
23024
23044
|
|
|
23025
23045
|
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
|
23046
|
+
|
|
23047
|
+
|
|
23048
|
+
|
|
23049
|
+
|
|
23050
|
+
|
|
23026
23051
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
23027
23052
|
|
|
23028
23053
|
|
|
23029
23054
|
|
|
23030
23055
|
var enforceInternalState = internalState.enforce;
|
|
23031
23056
|
var getInternalState = internalState.get;
|
|
23032
|
-
|
|
23057
|
+
var $String = String;
|
|
23058
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
23033
23059
|
var defineProperty = Object.defineProperty;
|
|
23060
|
+
var stringSlice = functionUncurryThis(''.slice);
|
|
23061
|
+
var replace = functionUncurryThis(''.replace);
|
|
23062
|
+
var join = functionUncurryThis([].join);
|
|
23034
23063
|
|
|
23035
23064
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
23036
23065
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -23039,8 +23068,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
|
23039
23068
|
var TEMPLATE = String(String).split('String');
|
|
23040
23069
|
|
|
23041
23070
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
23042
|
-
if (String(name)
|
|
23043
|
-
name = '[' + String(name)
|
|
23071
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
23072
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
23044
23073
|
}
|
|
23045
23074
|
if (options && options.getter) name = 'get ' + name;
|
|
23046
23075
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -23059,7 +23088,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
23059
23088
|
} catch (error) { /* empty */ }
|
|
23060
23089
|
var state = enforceInternalState(value);
|
|
23061
23090
|
if (!hasOwnProperty_1(state, 'source')) {
|
|
23062
|
-
state.source =
|
|
23091
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
23063
23092
|
} return value;
|
|
23064
23093
|
};
|
|
23065
23094
|
|
|
@@ -23098,7 +23127,7 @@ var floor = Math.floor;
|
|
|
23098
23127
|
|
|
23099
23128
|
// `Math.trunc` method
|
|
23100
23129
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
23101
|
-
// eslint-disable-next-line es
|
|
23130
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
23102
23131
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
23103
23132
|
var n = +x;
|
|
23104
23133
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -23146,10 +23175,10 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
23146
23175
|
var value;
|
|
23147
23176
|
// Array#includes uses SameValueZero equality algorithm
|
|
23148
23177
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23149
|
-
if (IS_INCLUDES && el
|
|
23178
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
23150
23179
|
value = O[index++];
|
|
23151
23180
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23152
|
-
if (value
|
|
23181
|
+
if (value !== value) return true;
|
|
23153
23182
|
// Array#indexOf ignores holes, Array#includes - not
|
|
23154
23183
|
} else for (;length > index; index++) {
|
|
23155
23184
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -23199,7 +23228,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
23199
23228
|
|
|
23200
23229
|
// `Object.getOwnPropertyNames` method
|
|
23201
23230
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
23202
|
-
// eslint-disable-next-line es
|
|
23231
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
23203
23232
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
23204
23233
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
23205
23234
|
};
|
|
@@ -23208,7 +23237,7 @@ var objectGetOwnPropertyNames = {
|
|
|
23208
23237
|
f: f$3
|
|
23209
23238
|
};
|
|
23210
23239
|
|
|
23211
|
-
// eslint-disable-next-line es
|
|
23240
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
23212
23241
|
var f$4 = Object.getOwnPropertySymbols;
|
|
23213
23242
|
|
|
23214
23243
|
var objectGetOwnPropertySymbols = {
|
|
@@ -23240,8 +23269,8 @@ var replacement = /#|\.prototype\./;
|
|
|
23240
23269
|
|
|
23241
23270
|
var isForced = function (feature, detection) {
|
|
23242
23271
|
var value = data[normalize(feature)];
|
|
23243
|
-
return value
|
|
23244
|
-
: value
|
|
23272
|
+
return value === POLYFILL ? true
|
|
23273
|
+
: value === NATIVE ? false
|
|
23245
23274
|
: isCallable(detection) ? fails(detection)
|
|
23246
23275
|
: !!detection;
|
|
23247
23276
|
};
|
|
@@ -23321,7 +23350,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
|
23321
23350
|
var $Object$3 = Object;
|
|
23322
23351
|
|
|
23323
23352
|
// ES3 wrong here
|
|
23324
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }())
|
|
23353
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
23325
23354
|
|
|
23326
23355
|
// fallback for IE11 Script Access Denied error
|
|
23327
23356
|
var tryGet = function (it, key) {
|
|
@@ -23339,25 +23368,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
|
23339
23368
|
// builtinTag case
|
|
23340
23369
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
23341
23370
|
// ES3 arguments fallback
|
|
23342
|
-
: (result = classofRaw(O))
|
|
23371
|
+
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
23343
23372
|
};
|
|
23344
23373
|
|
|
23345
|
-
var $String$
|
|
23374
|
+
var $String$3 = String;
|
|
23346
23375
|
|
|
23347
23376
|
var toString_1 = function (argument) {
|
|
23348
|
-
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
23349
|
-
return $String$
|
|
23377
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
23378
|
+
return $String$3(argument);
|
|
23350
23379
|
};
|
|
23351
23380
|
|
|
23352
23381
|
var charAt = functionUncurryThis(''.charAt);
|
|
23353
23382
|
|
|
23354
23383
|
var FORCED = fails(function () {
|
|
23355
|
-
// eslint-disable-next-line es
|
|
23384
|
+
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
23356
23385
|
return '𠮷'.at(-2) !== '\uD842';
|
|
23357
23386
|
});
|
|
23358
23387
|
|
|
23359
23388
|
// `String.prototype.at` method
|
|
23360
|
-
// https://
|
|
23389
|
+
// https://tc39.es/ecma262/#sec-string.prototype.at
|
|
23361
23390
|
_export({ target: 'String', proto: true, forced: FORCED }, {
|
|
23362
23391
|
at: function at(index) {
|
|
23363
23392
|
var S = toString_1(requireObjectCoercible(this));
|
|
@@ -23370,14 +23399,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
23370
23399
|
|
|
23371
23400
|
// `Object.keys` method
|
|
23372
23401
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
23373
|
-
// eslint-disable-next-line es
|
|
23402
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
23374
23403
|
var objectKeys = Object.keys || function keys(O) {
|
|
23375
23404
|
return objectKeysInternal(O, enumBugKeys);
|
|
23376
23405
|
};
|
|
23377
23406
|
|
|
23378
23407
|
// `Object.defineProperties` method
|
|
23379
23408
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
23380
|
-
// eslint-disable-next-line es
|
|
23409
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
23381
23410
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
23382
23411
|
anObject(O);
|
|
23383
23412
|
var props = toIndexedObject(Properties);
|
|
@@ -23466,7 +23495,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
23466
23495
|
|
|
23467
23496
|
// `Object.create` method
|
|
23468
23497
|
// https://tc39.es/ecma262/#sec-object.create
|
|
23469
|
-
// eslint-disable-next-line es
|
|
23498
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
23470
23499
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
23471
23500
|
var result;
|
|
23472
23501
|
if (O !== null) {
|
|
@@ -23486,7 +23515,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
23486
23515
|
|
|
23487
23516
|
// Array.prototype[@@unscopables]
|
|
23488
23517
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
23489
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
23518
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
23490
23519
|
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
23491
23520
|
configurable: true,
|
|
23492
23521
|
value: objectCreate(null)
|
|
@@ -23499,7 +23528,7 @@ var addToUnscopables = function (key) {
|
|
|
23499
23528
|
};
|
|
23500
23529
|
|
|
23501
23530
|
// `Array.prototype.at` method
|
|
23502
|
-
// https://
|
|
23531
|
+
// https://tc39.es/ecma262/#sec-array.prototype.at
|
|
23503
23532
|
_export({ target: 'Array', proto: true }, {
|
|
23504
23533
|
at: function at(index) {
|
|
23505
23534
|
var O = toObject(this);
|
|
@@ -23512,13 +23541,19 @@ _export({ target: 'Array', proto: true }, {
|
|
|
23512
23541
|
|
|
23513
23542
|
addToUnscopables('at');
|
|
23514
23543
|
|
|
23515
|
-
// eslint-disable-next-line es
|
|
23516
|
-
var
|
|
23544
|
+
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
23545
|
+
var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
23546
|
+
|
|
23547
|
+
var defineBuiltInAccessor = function (target, name, descriptor) {
|
|
23548
|
+
if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
|
|
23549
|
+
if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
|
|
23550
|
+
return objectDefineProperty.f(target, name, descriptor);
|
|
23551
|
+
};
|
|
23517
23552
|
|
|
23518
23553
|
var correctPrototypeGetter = !fails(function () {
|
|
23519
23554
|
function F() { /* empty */ }
|
|
23520
23555
|
F.prototype.constructor = null;
|
|
23521
|
-
// eslint-disable-next-line es
|
|
23556
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
23522
23557
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
23523
23558
|
});
|
|
23524
23559
|
|
|
@@ -23528,7 +23563,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
23528
23563
|
|
|
23529
23564
|
// `Object.getPrototypeOf` method
|
|
23530
23565
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
23531
|
-
// eslint-disable-next-line es
|
|
23566
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
23532
23567
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
23533
23568
|
var object = toObject(O);
|
|
23534
23569
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -23538,12 +23573,19 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
|
|
|
23538
23573
|
} return object instanceof $Object$4 ? ObjectPrototype : null;
|
|
23539
23574
|
};
|
|
23540
23575
|
|
|
23541
|
-
var
|
|
23576
|
+
var functionUncurryThisAccessor = function (object, key, method) {
|
|
23577
|
+
try {
|
|
23578
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
23579
|
+
return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
23580
|
+
} catch (error) { /* empty */ }
|
|
23581
|
+
};
|
|
23582
|
+
|
|
23583
|
+
var $String$4 = String;
|
|
23542
23584
|
var $TypeError$6 = TypeError;
|
|
23543
23585
|
|
|
23544
23586
|
var aPossiblePrototype = function (argument) {
|
|
23545
23587
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
23546
|
-
throw $TypeError$6("Can't set " + $String$
|
|
23588
|
+
throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
|
|
23547
23589
|
};
|
|
23548
23590
|
|
|
23549
23591
|
/* eslint-disable no-proto -- safe */
|
|
@@ -23554,14 +23596,13 @@ var aPossiblePrototype = function (argument) {
|
|
|
23554
23596
|
// `Object.setPrototypeOf` method
|
|
23555
23597
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
23556
23598
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
23557
|
-
// eslint-disable-next-line es
|
|
23599
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
23558
23600
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
23559
23601
|
var CORRECT_SETTER = false;
|
|
23560
23602
|
var test = {};
|
|
23561
23603
|
var setter;
|
|
23562
23604
|
try {
|
|
23563
|
-
|
|
23564
|
-
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
23605
|
+
setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
23565
23606
|
setter(test, []);
|
|
23566
23607
|
CORRECT_SETTER = test instanceof Array;
|
|
23567
23608
|
} catch (error) { /* empty */ }
|
|
@@ -23574,14 +23615,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
23574
23615
|
};
|
|
23575
23616
|
}() : undefined);
|
|
23576
23617
|
|
|
23577
|
-
var defineProperty$2 = objectDefineProperty.f;
|
|
23578
|
-
|
|
23579
|
-
|
|
23580
|
-
|
|
23581
|
-
|
|
23582
|
-
|
|
23583
|
-
|
|
23584
|
-
|
|
23585
23618
|
var enforceInternalState = internalState.enforce;
|
|
23586
23619
|
var getInternalState = internalState.get;
|
|
23587
23620
|
var Int8Array = global_1.Int8Array;
|
|
@@ -23597,7 +23630,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
23597
23630
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
23598
23631
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
23599
23632
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
23600
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
23633
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
23601
23634
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
23602
23635
|
var NAME, Constructor, Prototype;
|
|
23603
23636
|
|
|
@@ -23642,12 +23675,12 @@ var isTypedArray = function (it) {
|
|
|
23642
23675
|
|
|
23643
23676
|
var aTypedArray = function (it) {
|
|
23644
23677
|
if (isTypedArray(it)) return it;
|
|
23645
|
-
throw TypeError$2('Target is not a typed array');
|
|
23678
|
+
throw new TypeError$2('Target is not a typed array');
|
|
23646
23679
|
};
|
|
23647
23680
|
|
|
23648
23681
|
var aTypedArrayConstructor = function (C) {
|
|
23649
23682
|
if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
|
|
23650
|
-
throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23683
|
+
throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23651
23684
|
};
|
|
23652
23685
|
|
|
23653
23686
|
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
@@ -23711,7 +23744,7 @@ for (NAME in BigIntArrayConstructorsList) {
|
|
|
23711
23744
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
23712
23745
|
// eslint-disable-next-line no-shadow -- safe
|
|
23713
23746
|
TypedArray = function TypedArray() {
|
|
23714
|
-
throw TypeError$2('Incorrect invocation');
|
|
23747
|
+
throw new TypeError$2('Incorrect invocation');
|
|
23715
23748
|
};
|
|
23716
23749
|
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
23717
23750
|
if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
|
|
@@ -23732,9 +23765,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
|
|
|
23732
23765
|
|
|
23733
23766
|
if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
|
|
23734
23767
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
23735
|
-
|
|
23736
|
-
|
|
23737
|
-
|
|
23768
|
+
defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
|
|
23769
|
+
configurable: true,
|
|
23770
|
+
get: function () {
|
|
23771
|
+
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23772
|
+
}
|
|
23773
|
+
});
|
|
23738
23774
|
for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
|
|
23739
23775
|
createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
|
|
23740
23776
|
}
|
|
@@ -23758,7 +23794,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
|
|
|
23758
23794
|
var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
|
|
23759
23795
|
|
|
23760
23796
|
// `%TypedArray%.prototype.at` method
|
|
23761
|
-
// https://
|
|
23797
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
|
|
23762
23798
|
exportTypedArrayMethod$1('at', function at(index) {
|
|
23763
23799
|
var O = aTypedArray$1(this);
|
|
23764
23800
|
var len = lengthOfArrayLike(O);
|
|
@@ -26682,7 +26718,8 @@ var ImageBox = function ImageBox(_ref) {
|
|
|
26682
26718
|
};
|
|
26683
26719
|
|
|
26684
26720
|
var Jumbo = function Jumbo(_ref) {
|
|
26685
|
-
var
|
|
26721
|
+
var themeValues = _ref.themeValues,
|
|
26722
|
+
showButton = _ref.showButton,
|
|
26686
26723
|
heading = _ref.heading,
|
|
26687
26724
|
buttonLink = _ref.buttonLink,
|
|
26688
26725
|
subHeading = _ref.subHeading,
|
|
@@ -26697,7 +26734,9 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26697
26734
|
itemsCount = _ref.itemsCount,
|
|
26698
26735
|
_ref$showCartStatus = _ref.showCartStatus,
|
|
26699
26736
|
showCartStatus = _ref$showCartStatus === void 0 ? false : _ref$showCartStatus,
|
|
26700
|
-
openCartSlider = _ref.openCartSlider
|
|
26737
|
+
openCartSlider = _ref.openCartSlider,
|
|
26738
|
+
extraStyles = _ref.extraStyles,
|
|
26739
|
+
cartStatusExtraStyles = _ref.cartStatusExtraStyles;
|
|
26701
26740
|
|
|
26702
26741
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26703
26742
|
isMobile = _useContext.isMobile;
|
|
@@ -26706,7 +26745,8 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26706
26745
|
padding: "0 20px",
|
|
26707
26746
|
minHeight: "65px",
|
|
26708
26747
|
id: "heroImage-".concat(slug),
|
|
26709
|
-
className: "themeJumboBackground"
|
|
26748
|
+
className: "themeJumboBackground",
|
|
26749
|
+
extraStyles: extraStyles
|
|
26710
26750
|
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
26711
26751
|
maxWidth: "76.5rem"
|
|
26712
26752
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
@@ -26721,7 +26761,8 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26721
26761
|
minHeight: "100%",
|
|
26722
26762
|
justify: isMobile && !showCartStatus ? "center" : showButton || showCartStatus ? "space-between" : "left",
|
|
26723
26763
|
align: "center",
|
|
26724
|
-
nowrap: showCartStatus
|
|
26764
|
+
nowrap: showCartStatus,
|
|
26765
|
+
extraStyles: cartStatusExtraStyles
|
|
26725
26766
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
26726
26767
|
variant: isMobile ? "small" : "large",
|
|
26727
26768
|
as: "h1",
|
|
@@ -26738,6 +26779,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26738
26779
|
variant: "primary",
|
|
26739
26780
|
extraStyles: "margin: 0 0 65px 0; min-width: 320px;"
|
|
26740
26781
|
}), showCartStatus && /*#__PURE__*/React__default.createElement(CartStatus, {
|
|
26782
|
+
themeValues: themeValues,
|
|
26741
26783
|
total: total,
|
|
26742
26784
|
itemsCount: itemsCount,
|
|
26743
26785
|
openCart: openCartSlider
|
|
@@ -26747,27 +26789,17 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
26747
26789
|
var Jumbo$1 = withWindowSize(Jumbo);
|
|
26748
26790
|
|
|
26749
26791
|
var fontWeight$4 = {
|
|
26750
|
-
// v1 variants
|
|
26751
26792
|
"default": "600",
|
|
26752
26793
|
pS: "600",
|
|
26753
26794
|
p: "600",
|
|
26754
26795
|
pL: "600",
|
|
26755
|
-
h6: "700"
|
|
26756
|
-
// v2 variants
|
|
26757
|
-
regular: "600",
|
|
26758
|
-
// fontsize Detail large
|
|
26759
|
-
extraSmall: "600",
|
|
26760
|
-
//fontsize Detail small
|
|
26761
|
-
small: "600",
|
|
26762
|
-
// fontsize Detail regular
|
|
26763
|
-
large: "700" // fontsize Title small
|
|
26764
|
-
|
|
26796
|
+
h6: "700"
|
|
26765
26797
|
};
|
|
26766
26798
|
var fallbackValues$p = {
|
|
26767
26799
|
fontWeight: fontWeight$4
|
|
26768
26800
|
};
|
|
26769
26801
|
|
|
26770
|
-
var
|
|
26802
|
+
var LabeledAmount = function LabeledAmount(_ref) {
|
|
26771
26803
|
var _ref$variant = _ref.variant,
|
|
26772
26804
|
variant = _ref$variant === void 0 ? "pL" : _ref$variant,
|
|
26773
26805
|
label = _ref.label,
|
|
@@ -26791,53 +26823,19 @@ var LabeledAmountV1 = function LabeledAmountV1(_ref) {
|
|
|
26791
26823
|
}, amount));
|
|
26792
26824
|
};
|
|
26793
26825
|
|
|
26794
|
-
var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
26795
|
-
var _ref$variant = _ref.variant,
|
|
26796
|
-
variant = _ref$variant === void 0 ? "regular" : _ref$variant,
|
|
26797
|
-
label = _ref.label,
|
|
26798
|
-
amount = _ref.amount,
|
|
26799
|
-
themeValues = _ref.themeValues,
|
|
26800
|
-
as = _ref.as,
|
|
26801
|
-
extraStyles = _ref.extraStyles;
|
|
26802
|
-
var mappedDetailVariants = {
|
|
26803
|
-
regular: "large",
|
|
26804
|
-
small: "regular",
|
|
26805
|
-
extraSmall: "small"
|
|
26806
|
-
};
|
|
26807
|
-
var LabeledAmountContainer = variant === "large" ? Title$1 : Detail$1;
|
|
26808
|
-
var containerVariant = variant === "large" ? "small" : mappedDetailVariants[variant];
|
|
26809
|
-
return /*#__PURE__*/React__default.createElement(LabeledAmountContainer, {
|
|
26810
|
-
variant: containerVariant,
|
|
26811
|
-
as: as,
|
|
26812
|
-
weight: themeValues.fontWeight,
|
|
26813
|
-
extraStyles: "display: flex; justify-content: space-between; ".concat(extraStyles)
|
|
26814
|
-
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
26815
|
-
};
|
|
26816
|
-
|
|
26817
|
-
var _excluded$u = ["version"];
|
|
26818
|
-
|
|
26819
|
-
var LabeledAmount = function LabeledAmount(_ref) {
|
|
26820
|
-
var _ref$version = _ref.version,
|
|
26821
|
-
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
26822
|
-
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26823
|
-
|
|
26824
|
-
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
26825
|
-
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
26826
|
-
};
|
|
26827
|
-
|
|
26828
26826
|
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$p, "default");
|
|
26829
26827
|
|
|
26830
26828
|
var weightTitle = {
|
|
26831
26829
|
"default": "600",
|
|
26832
26830
|
small: "400"
|
|
26833
26831
|
};
|
|
26834
|
-
var
|
|
26835
|
-
"default": "
|
|
26836
|
-
small: "
|
|
26832
|
+
var paragraphVariant = {
|
|
26833
|
+
"default": "pL",
|
|
26834
|
+
small: "pS"
|
|
26837
26835
|
};
|
|
26838
26836
|
var fallbackValues$q = {
|
|
26839
26837
|
weightTitle: weightTitle,
|
|
26840
|
-
|
|
26838
|
+
paragraphVariant: paragraphVariant
|
|
26841
26839
|
};
|
|
26842
26840
|
|
|
26843
26841
|
var LineItem = function LineItem(_ref) {
|
|
@@ -26864,27 +26862,35 @@ var LineItem = function LineItem(_ref) {
|
|
|
26864
26862
|
var visibleCustomAttrs = customAttributes === null || customAttributes === void 0 ? void 0 : (_customAttributes$fil = customAttributes.filter(function (attr) {
|
|
26865
26863
|
return (visibleFields === null || visibleFields === void 0 ? void 0 : visibleFields.includes(attr.key)) && attr.key !== "description";
|
|
26866
26864
|
})) === null || _customAttributes$fil === void 0 ? void 0 : _customAttributes$fil.map(function (attr) {
|
|
26867
|
-
return /*#__PURE__*/React__default.createElement(
|
|
26868
|
-
variant: "
|
|
26865
|
+
return /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
26866
|
+
variant: "pS",
|
|
26869
26867
|
weight: "400",
|
|
26870
26868
|
key: attr.key,
|
|
26871
26869
|
color: STORM_GREY
|
|
26872
26870
|
}, "".concat(formatAttrKeys(attr.key), ": ").concat(attr.value));
|
|
26873
26871
|
});
|
|
26874
|
-
return /*#__PURE__*/React__default.createElement(
|
|
26872
|
+
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
26873
|
+
nowrap: true,
|
|
26874
|
+
justify: "space-between",
|
|
26875
|
+
align: "start"
|
|
26876
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
26875
26877
|
childGap: "0px"
|
|
26876
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
26877
|
-
|
|
26878
|
-
|
|
26879
|
-
|
|
26880
|
-
|
|
26881
|
-
}, /*#__PURE__*/React__default.createElement("span", null, description), /*#__PURE__*/React__default.createElement("span", null, !!displayQuantity && "x".concat(displayQuantity)), /*#__PURE__*/React__default.createElement("span", null, amount)), /*#__PURE__*/React__default.createElement(Detail$1, {
|
|
26882
|
-
as: "p",
|
|
26883
|
-
variant: themeValues.detailVariant,
|
|
26878
|
+
}, /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
26879
|
+
variant: themeValues.paragraphVariant,
|
|
26880
|
+
weight: themeValues.weightTitle
|
|
26881
|
+
}, description), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
26882
|
+
variant: themeValues.paragraphVariant,
|
|
26884
26883
|
weight: "400"
|
|
26885
26884
|
}, subDescription), visibleCustomAttrs && /*#__PURE__*/React__default.createElement(Stack, {
|
|
26886
26885
|
childGap: "0.25rem"
|
|
26887
|
-
}, visibleCustomAttrs))
|
|
26886
|
+
}, visibleCustomAttrs)), !!displayQuantity && /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
26887
|
+
variant: themeValues.paragraphVariant,
|
|
26888
|
+
weight: themeValues.weightTitle
|
|
26889
|
+
}, "x".concat(displayQuantity)), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
26890
|
+
variant: themeValues.paragraphVariant,
|
|
26891
|
+
weight: "600",
|
|
26892
|
+
extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
|
|
26893
|
+
}, amount));
|
|
26888
26894
|
};
|
|
26889
26895
|
|
|
26890
26896
|
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$q, "default");
|
|
@@ -26962,7 +26968,7 @@ var Loading = function Loading() {
|
|
|
26962
26968
|
})))));
|
|
26963
26969
|
};
|
|
26964
26970
|
|
|
26965
|
-
var _excluded$
|
|
26971
|
+
var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26966
26972
|
|
|
26967
26973
|
var NavFooter = function NavFooter(_ref) {
|
|
26968
26974
|
var leftContent = _ref.leftContent,
|
|
@@ -26978,7 +26984,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26978
26984
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26979
26985
|
isMobile = _ref.isMobile,
|
|
26980
26986
|
footerWidth = _ref.footerWidth,
|
|
26981
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26987
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26982
26988
|
|
|
26983
26989
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26984
26990
|
padding: footerPadding,
|
|
@@ -27010,7 +27016,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27010
27016
|
}, rightContent)))))));
|
|
27011
27017
|
};
|
|
27012
27018
|
|
|
27013
|
-
var _excluded$
|
|
27019
|
+
var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
27014
27020
|
|
|
27015
27021
|
var NavHeader = function NavHeader(_ref) {
|
|
27016
27022
|
var leftContent = _ref.leftContent,
|
|
@@ -27020,7 +27026,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
27020
27026
|
isMobile = _ref.isMobile,
|
|
27021
27027
|
backgroundColor = _ref.backgroundColor,
|
|
27022
27028
|
headerWidth = _ref.headerWidth,
|
|
27023
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27029
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
27024
27030
|
|
|
27025
27031
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27026
27032
|
padding: "0 16px 4px",
|
|
@@ -38815,7 +38821,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
38815
38821
|
return extraStyles;
|
|
38816
38822
|
});
|
|
38817
38823
|
|
|
38818
|
-
var _excluded$
|
|
38824
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38819
38825
|
|
|
38820
38826
|
var TableRow = function TableRow(_ref) {
|
|
38821
38827
|
var children = _ref.children,
|
|
@@ -38825,7 +38831,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38825
38831
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38826
38832
|
onClick = _ref.onClick,
|
|
38827
38833
|
themeValues = _ref.themeValues,
|
|
38828
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38834
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38829
38835
|
|
|
38830
38836
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
38831
38837
|
onClick: onClick,
|
|
@@ -45898,10 +45904,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45898
45904
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
45899
45905
|
justify: "flex-start",
|
|
45900
45906
|
align: "center"
|
|
45901
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
45902
|
-
|
|
45903
|
-
weight: FONT_WEIGHT_SEMIBOLD
|
|
45904
|
-
fontSize: "1.25rem"
|
|
45907
|
+
}, /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
45908
|
+
variant: "h6",
|
|
45909
|
+
weight: FONT_WEIGHT_SEMIBOLD
|
|
45905
45910
|
}, modalHeaderText))), /*#__PURE__*/React__default.createElement(Box, {
|
|
45906
45911
|
background: modalBodyBg,
|
|
45907
45912
|
padding: "1.5rem"
|
|
@@ -47393,12 +47398,12 @@ var lineItem = {
|
|
|
47393
47398
|
small: "small"
|
|
47394
47399
|
};
|
|
47395
47400
|
var labeledAmountSubtotal = {
|
|
47396
|
-
"default": "
|
|
47397
|
-
small: "
|
|
47401
|
+
"default": "pL",
|
|
47402
|
+
small: "pS"
|
|
47398
47403
|
};
|
|
47399
47404
|
var labeledAmountTotal = {
|
|
47400
|
-
"default": "
|
|
47401
|
-
small: "
|
|
47405
|
+
"default": "h6",
|
|
47406
|
+
small: "p"
|
|
47402
47407
|
};
|
|
47403
47408
|
var fallbackValues$N = {
|
|
47404
47409
|
backgroundColor: backgroundColor$c,
|
|
@@ -47407,7 +47412,7 @@ var fallbackValues$N = {
|
|
|
47407
47412
|
labeledAmountTotal: labeledAmountTotal
|
|
47408
47413
|
};
|
|
47409
47414
|
|
|
47410
|
-
var _excluded$
|
|
47415
|
+
var _excluded$x = ["amount"],
|
|
47411
47416
|
_excluded2$1 = ["amount"];
|
|
47412
47417
|
|
|
47413
47418
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -47458,9 +47463,6 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
47458
47463
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
47459
47464
|
padding: "16px 0px"
|
|
47460
47465
|
}, /*#__PURE__*/React__default.createElement(SolidDivider$1, null)), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
47461
|
-
version: "v2",
|
|
47462
|
-
as: "h3",
|
|
47463
|
-
variant: "small",
|
|
47464
47466
|
extraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, "; font-size: 14px;"),
|
|
47465
47467
|
label: "Amount paid",
|
|
47466
47468
|
amount: displayCurrency(voidableAmountPaid)
|
|
@@ -47468,18 +47470,15 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
47468
47470
|
, subtotal ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
47469
47471
|
padding: "0.5rem 0"
|
|
47470
47472
|
}, /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
47471
|
-
version: "v2",
|
|
47472
47473
|
variant: themeValues.labeledAmountSubtotal,
|
|
47473
47474
|
label: "Subtotal",
|
|
47474
|
-
amount: displayCurrency(subtotal)
|
|
47475
|
-
as: "h3"
|
|
47475
|
+
amount: displayCurrency(subtotal)
|
|
47476
47476
|
}), feeElems), /*#__PURE__*/React__default.createElement(SolidDivider$1, null)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
47477
|
-
|
|
47478
|
-
as: "h3",
|
|
47477
|
+
as: "p",
|
|
47479
47478
|
variant: themeValues.labeledAmountTotal,
|
|
47480
47479
|
label: hasVoidablePaymentsSection ? "Remaining amount due" : "Total",
|
|
47481
47480
|
amount: displayCurrency(typeof remainingBalance === "number" ? remainingBalance : total),
|
|
47482
|
-
extraStyles: "
|
|
47481
|
+
extraStyles: variant === "small" && "font-weight: ".concat(FONT_WEIGHT_BOLD, ";")
|
|
47483
47482
|
}));
|
|
47484
47483
|
};
|
|
47485
47484
|
|
|
@@ -47658,7 +47657,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47658
47657
|
return fee.amount > 0;
|
|
47659
47658
|
}).map(function (_ref5) {
|
|
47660
47659
|
var amount = _ref5.amount,
|
|
47661
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47660
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
47662
47661
|
|
|
47663
47662
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47664
47663
|
amount: displayCurrency(amount)
|
|
@@ -47687,8 +47686,6 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47687
47686
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
47688
47687
|
padding: "4px 0"
|
|
47689
47688
|
}), /*#__PURE__*/React__default.createElement(LabeledAmount$1, _extends({
|
|
47690
|
-
version: "v2",
|
|
47691
|
-
as: "h3",
|
|
47692
47689
|
key: fee.label,
|
|
47693
47690
|
variant: themeValues.labeledAmountSubtotal
|
|
47694
47691
|
}, fee)));
|
|
@@ -47732,7 +47729,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47732
47729
|
align: "center"
|
|
47733
47730
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
47734
47731
|
weight: FONT_WEIGHT_BOLD,
|
|
47735
|
-
as: "
|
|
47732
|
+
as: "h1",
|
|
47736
47733
|
extraStyles: "font-size: 1.375rem;",
|
|
47737
47734
|
id: "payment-details-title"
|
|
47738
47735
|
}, titleText), /*#__PURE__*/React__default.createElement(Title$1, {
|
|
@@ -47740,7 +47737,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47740
47737
|
as: "p",
|
|
47741
47738
|
extraStyles: "font-size: 1.375rem;"
|
|
47742
47739
|
}, displayCurrency(total)))) : /*#__PURE__*/React__default.createElement(Title$1, {
|
|
47743
|
-
as: "
|
|
47740
|
+
as: "h1",
|
|
47744
47741
|
weight: FONT_WEIGHT_BOLD,
|
|
47745
47742
|
margin: "1rem 0 0 0",
|
|
47746
47743
|
extraStyles: "font-size: 1.75rem;",
|
|
@@ -48082,12 +48079,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48082
48079
|
}, errorMessage))))));
|
|
48083
48080
|
};
|
|
48084
48081
|
|
|
48085
|
-
var _excluded$
|
|
48082
|
+
var _excluded$y = ["version"];
|
|
48086
48083
|
|
|
48087
48084
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48088
48085
|
var _ref$version = _ref.version,
|
|
48089
48086
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48090
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48087
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
48091
48088
|
|
|
48092
48089
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48093
48090
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
@@ -48766,7 +48763,7 @@ var fallbackValues$Q = {
|
|
|
48766
48763
|
focusStyles: focusStyles
|
|
48767
48764
|
};
|
|
48768
48765
|
|
|
48769
|
-
var _excluded$
|
|
48766
|
+
var _excluded$z = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired"];
|
|
48770
48767
|
/*
|
|
48771
48768
|
Takes an array of section objects, each object should look like:
|
|
48772
48769
|
{
|
|
@@ -48814,7 +48811,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48814
48811
|
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48815
48812
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
48816
48813
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
48817
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48814
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
48818
48815
|
|
|
48819
48816
|
var _useState = React.useState(null),
|
|
48820
48817
|
_useState2 = _slicedToArray(_useState, 2),
|