@thecb/components 8.4.11-beta.8 → 8.4.11
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 +202 -164
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +202 -164
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/alert/Alert.js +0 -1
- package/src/components/atoms/country-dropdown/CountryDropdown.js +1 -3
- package/src/components/atoms/dropdown/Dropdown.js +10 -9
- package/src/components/atoms/form-layouts/FormInput.js +3 -3
- package/src/components/atoms/form-select/FormSelect.js +18 -17
- package/src/components/molecules/address-form/AddressForm.js +3 -12
- package/src/components/molecules/payment-details/PaymentDetails.js +36 -16
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -18810,8 +18810,7 @@ var Alert = function Alert(_ref) {
|
|
|
18810
18810
|
borderColor: themeValues.border,
|
|
18811
18811
|
borderSize: noBorder ? "0px" : "1px",
|
|
18812
18812
|
boxShadow: enableBoxShadow ? (_generateShadows = generateShadows()) === null || _generateShadows === void 0 ? void 0 : (_generateShadows$inse = _generateShadows.inset) === null || _generateShadows$inse === void 0 ? void 0 : _generateShadows$inse.base : "",
|
|
18813
|
-
extraStyles: extraStyles
|
|
18814
|
-
role: "alert"
|
|
18813
|
+
extraStyles: extraStyles
|
|
18815
18814
|
}, maxContentWidth ? /*#__PURE__*/React.createElement(Center, {
|
|
18816
18815
|
maxWidth: maxContentWidth
|
|
18817
18816
|
}, content) : content);
|
|
@@ -19009,14 +19008,12 @@ function _extends$1() {
|
|
|
19009
19008
|
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
19010
19009
|
for (var i = 1; i < arguments.length; i++) {
|
|
19011
19010
|
var source = arguments[i];
|
|
19012
|
-
|
|
19013
19011
|
for (var key in source) {
|
|
19014
19012
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
19015
19013
|
target[key] = source[key];
|
|
19016
19014
|
}
|
|
19017
19015
|
}
|
|
19018
19016
|
}
|
|
19019
|
-
|
|
19020
19017
|
return target;
|
|
19021
19018
|
};
|
|
19022
19019
|
return _extends$1.apply(this, arguments);
|
|
@@ -19026,7 +19023,6 @@ function _assertThisInitialized(self) {
|
|
|
19026
19023
|
if (self === void 0) {
|
|
19027
19024
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19028
19025
|
}
|
|
19029
|
-
|
|
19030
19026
|
return self;
|
|
19031
19027
|
}
|
|
19032
19028
|
|
|
@@ -19059,7 +19055,6 @@ function _isNativeReflectConstruct() {
|
|
|
19059
19055
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
19060
19056
|
if (Reflect.construct.sham) return false;
|
|
19061
19057
|
if (typeof Proxy === "function") return true;
|
|
19062
|
-
|
|
19063
19058
|
try {
|
|
19064
19059
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
19065
19060
|
return true;
|
|
@@ -19081,30 +19076,23 @@ function _construct(Parent, args, Class) {
|
|
|
19081
19076
|
return instance;
|
|
19082
19077
|
};
|
|
19083
19078
|
}
|
|
19084
|
-
|
|
19085
19079
|
return _construct.apply(null, arguments);
|
|
19086
19080
|
}
|
|
19087
19081
|
|
|
19088
19082
|
function _wrapNativeSuper(Class) {
|
|
19089
19083
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
19090
|
-
|
|
19091
19084
|
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
19092
19085
|
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
19093
|
-
|
|
19094
19086
|
if (typeof Class !== "function") {
|
|
19095
19087
|
throw new TypeError("Super expression must either be null or a function");
|
|
19096
19088
|
}
|
|
19097
|
-
|
|
19098
19089
|
if (typeof _cache !== "undefined") {
|
|
19099
19090
|
if (_cache.has(Class)) return _cache.get(Class);
|
|
19100
|
-
|
|
19101
19091
|
_cache.set(Class, Wrapper);
|
|
19102
19092
|
}
|
|
19103
|
-
|
|
19104
19093
|
function Wrapper() {
|
|
19105
19094
|
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
19106
19095
|
}
|
|
19107
|
-
|
|
19108
19096
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
19109
19097
|
constructor: {
|
|
19110
19098
|
value: Wrapper,
|
|
@@ -19115,7 +19103,6 @@ function _wrapNativeSuper(Class) {
|
|
|
19115
19103
|
});
|
|
19116
19104
|
return _setPrototypeOf(Wrapper, Class);
|
|
19117
19105
|
};
|
|
19118
|
-
|
|
19119
19106
|
return _wrapNativeSuper(Class);
|
|
19120
19107
|
}
|
|
19121
19108
|
|
|
@@ -22398,7 +22385,7 @@ var check = function (it) {
|
|
|
22398
22385
|
|
|
22399
22386
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22400
22387
|
var global_1 =
|
|
22401
|
-
// eslint-disable-next-line es
|
|
22388
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
22402
22389
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22403
22390
|
check(typeof window == 'object' && window) ||
|
|
22404
22391
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
@@ -22417,12 +22404,12 @@ var fails = function (exec) {
|
|
|
22417
22404
|
|
|
22418
22405
|
// Detect IE8's incomplete defineProperty implementation
|
|
22419
22406
|
var descriptors = !fails(function () {
|
|
22420
|
-
// eslint-disable-next-line es
|
|
22407
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22421
22408
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
22422
22409
|
});
|
|
22423
22410
|
|
|
22424
22411
|
var functionBindNative = !fails(function () {
|
|
22425
|
-
// eslint-disable-next-line es
|
|
22412
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
22426
22413
|
var test = (function () { /* empty */ }).bind();
|
|
22427
22414
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22428
22415
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -22435,7 +22422,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
22435
22422
|
};
|
|
22436
22423
|
|
|
22437
22424
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
22438
|
-
// eslint-disable-next-line es
|
|
22425
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22439
22426
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22440
22427
|
|
|
22441
22428
|
// Nashorn ~ JDK8 bug
|
|
@@ -22462,14 +22449,11 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
22462
22449
|
};
|
|
22463
22450
|
|
|
22464
22451
|
var FunctionPrototype = Function.prototype;
|
|
22465
|
-
var bind$1 = FunctionPrototype.bind;
|
|
22466
22452
|
var call$1 = FunctionPrototype.call;
|
|
22467
|
-
var
|
|
22453
|
+
var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
|
|
22468
22454
|
|
|
22469
|
-
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
22470
|
-
return
|
|
22471
|
-
} : function (fn) {
|
|
22472
|
-
return fn && function () {
|
|
22455
|
+
var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
|
|
22456
|
+
return function () {
|
|
22473
22457
|
return call$1.apply(fn, arguments);
|
|
22474
22458
|
};
|
|
22475
22459
|
};
|
|
@@ -22493,12 +22477,18 @@ var indexedObject = fails(function () {
|
|
|
22493
22477
|
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
22494
22478
|
} : $Object;
|
|
22495
22479
|
|
|
22480
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
22481
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
22482
|
+
var isNullOrUndefined = function (it) {
|
|
22483
|
+
return it === null || it === undefined;
|
|
22484
|
+
};
|
|
22485
|
+
|
|
22496
22486
|
var $TypeError = TypeError;
|
|
22497
22487
|
|
|
22498
22488
|
// `RequireObjectCoercible` abstract operation
|
|
22499
22489
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
22500
22490
|
var requireObjectCoercible = function (it) {
|
|
22501
|
-
if (it
|
|
22491
|
+
if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
|
|
22502
22492
|
return it;
|
|
22503
22493
|
};
|
|
22504
22494
|
|
|
@@ -22510,13 +22500,32 @@ var toIndexedObject = function (it) {
|
|
|
22510
22500
|
return indexedObject(requireObjectCoercible(it));
|
|
22511
22501
|
};
|
|
22512
22502
|
|
|
22503
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
22504
|
+
|
|
22505
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
22506
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
22507
|
+
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
22508
|
+
|
|
22509
|
+
var documentAll_1 = {
|
|
22510
|
+
all: documentAll,
|
|
22511
|
+
IS_HTMLDDA: IS_HTMLDDA
|
|
22512
|
+
};
|
|
22513
|
+
|
|
22514
|
+
var documentAll$1 = documentAll_1.all;
|
|
22515
|
+
|
|
22513
22516
|
// `IsCallable` abstract operation
|
|
22514
22517
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
22515
|
-
var isCallable = function (argument) {
|
|
22518
|
+
var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
|
|
22519
|
+
return typeof argument == 'function' || argument === documentAll$1;
|
|
22520
|
+
} : function (argument) {
|
|
22516
22521
|
return typeof argument == 'function';
|
|
22517
22522
|
};
|
|
22518
22523
|
|
|
22519
|
-
var
|
|
22524
|
+
var documentAll$2 = documentAll_1.all;
|
|
22525
|
+
|
|
22526
|
+
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
22527
|
+
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
22528
|
+
} : function (it) {
|
|
22520
22529
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
22521
22530
|
};
|
|
22522
22531
|
|
|
@@ -22530,7 +22539,7 @@ var getBuiltIn = function (namespace, method) {
|
|
|
22530
22539
|
|
|
22531
22540
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
22532
22541
|
|
|
22533
|
-
var engineUserAgent =
|
|
22542
|
+
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
22534
22543
|
|
|
22535
22544
|
var process$1 = global_1.process;
|
|
22536
22545
|
var Deno = global_1.Deno;
|
|
@@ -22557,12 +22566,12 @@ if (!version && engineUserAgent) {
|
|
|
22557
22566
|
|
|
22558
22567
|
var engineV8Version = version;
|
|
22559
22568
|
|
|
22560
|
-
/* eslint-disable es
|
|
22569
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
22561
22570
|
|
|
22562
22571
|
|
|
22563
22572
|
|
|
22564
|
-
// eslint-disable-next-line es
|
|
22565
|
-
var
|
|
22573
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
22574
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22566
22575
|
var symbol = Symbol();
|
|
22567
22576
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
22568
22577
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -22571,10 +22580,10 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
|
22571
22580
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
22572
22581
|
});
|
|
22573
22582
|
|
|
22574
|
-
/* eslint-disable es
|
|
22583
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
22575
22584
|
|
|
22576
22585
|
|
|
22577
|
-
var useSymbolAsUid =
|
|
22586
|
+
var useSymbolAsUid = symbolConstructorDetection
|
|
22578
22587
|
&& !Symbol.sham
|
|
22579
22588
|
&& typeof Symbol.iterator == 'symbol';
|
|
22580
22589
|
|
|
@@ -22609,7 +22618,7 @@ var aCallable = function (argument) {
|
|
|
22609
22618
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
22610
22619
|
var getMethod = function (V, P) {
|
|
22611
22620
|
var func = V[P];
|
|
22612
|
-
return func
|
|
22621
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
22613
22622
|
};
|
|
22614
22623
|
|
|
22615
22624
|
var $TypeError$2 = TypeError;
|
|
@@ -22624,7 +22633,7 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
22624
22633
|
throw $TypeError$2("Can't convert object to primitive value");
|
|
22625
22634
|
};
|
|
22626
22635
|
|
|
22627
|
-
// eslint-disable-next-line es
|
|
22636
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22628
22637
|
var defineProperty = Object.defineProperty;
|
|
22629
22638
|
|
|
22630
22639
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -22644,10 +22653,10 @@ var shared = createCommonjsModule(function (module) {
|
|
|
22644
22653
|
(module.exports = function (key, value) {
|
|
22645
22654
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
22646
22655
|
})('versions', []).push({
|
|
22647
|
-
version: '3.
|
|
22656
|
+
version: '3.29.0',
|
|
22648
22657
|
mode: 'global',
|
|
22649
|
-
copyright: '© 2014-
|
|
22650
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
22658
|
+
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
22659
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
|
|
22651
22660
|
source: 'https://github.com/zloirock/core-js'
|
|
22652
22661
|
});
|
|
22653
22662
|
});
|
|
@@ -22664,7 +22673,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
22664
22673
|
|
|
22665
22674
|
// `HasOwnProperty` abstract operation
|
|
22666
22675
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
22667
|
-
// eslint-disable-next-line es
|
|
22676
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
22668
22677
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
22669
22678
|
return hasOwnProperty(toObject(it), key);
|
|
22670
22679
|
};
|
|
@@ -22677,21 +22686,15 @@ var uid = function (key) {
|
|
|
22677
22686
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
22678
22687
|
};
|
|
22679
22688
|
|
|
22680
|
-
var WellKnownSymbolsStore = shared('wks');
|
|
22681
22689
|
var Symbol$1 = global_1.Symbol;
|
|
22682
|
-
var
|
|
22683
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
22690
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
22691
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
22684
22692
|
|
|
22685
22693
|
var wellKnownSymbol = function (name) {
|
|
22686
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)
|
|
22687
|
-
|
|
22688
|
-
|
|
22689
|
-
|
|
22690
|
-
} else if (useSymbolAsUid && symbolFor) {
|
|
22691
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
22692
|
-
} else {
|
|
22693
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
22694
|
-
}
|
|
22694
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
|
|
22695
|
+
WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
|
|
22696
|
+
? Symbol$1[name]
|
|
22697
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
22695
22698
|
} return WellKnownSymbolsStore[name];
|
|
22696
22699
|
};
|
|
22697
22700
|
|
|
@@ -22731,13 +22734,13 @@ var documentCreateElement = function (it) {
|
|
|
22731
22734
|
|
|
22732
22735
|
// Thanks to IE8 for its funny defineProperty
|
|
22733
22736
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
22734
|
-
// eslint-disable-next-line es
|
|
22737
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22735
22738
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
22736
22739
|
get: function () { return 7; }
|
|
22737
22740
|
}).a != 7;
|
|
22738
22741
|
});
|
|
22739
22742
|
|
|
22740
|
-
// eslint-disable-next-line es
|
|
22743
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22741
22744
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22742
22745
|
|
|
22743
22746
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -22758,7 +22761,7 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
22758
22761
|
// V8 ~ Chrome 36-
|
|
22759
22762
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
22760
22763
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
22761
|
-
// eslint-disable-next-line es
|
|
22764
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22762
22765
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
22763
22766
|
value: 42,
|
|
22764
22767
|
writable: false
|
|
@@ -22775,9 +22778,9 @@ var anObject = function (argument) {
|
|
|
22775
22778
|
};
|
|
22776
22779
|
|
|
22777
22780
|
var $TypeError$5 = TypeError;
|
|
22778
|
-
// eslint-disable-next-line es
|
|
22781
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22779
22782
|
var $defineProperty = Object.defineProperty;
|
|
22780
|
-
// eslint-disable-next-line es
|
|
22783
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22781
22784
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
22782
22785
|
var ENUMERABLE = 'enumerable';
|
|
22783
22786
|
var CONFIGURABLE = 'configurable';
|
|
@@ -22824,7 +22827,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
22824
22827
|
};
|
|
22825
22828
|
|
|
22826
22829
|
var FunctionPrototype$1 = Function.prototype;
|
|
22827
|
-
// eslint-disable-next-line es
|
|
22830
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22828
22831
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
22829
22832
|
|
|
22830
22833
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -22851,7 +22854,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
22851
22854
|
|
|
22852
22855
|
var WeakMap$1 = global_1.WeakMap;
|
|
22853
22856
|
|
|
22854
|
-
var
|
|
22857
|
+
var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
22855
22858
|
|
|
22856
22859
|
var keys$1 = shared('keys');
|
|
22857
22860
|
|
|
@@ -22879,28 +22882,30 @@ var getterFor = function (TYPE) {
|
|
|
22879
22882
|
};
|
|
22880
22883
|
};
|
|
22881
22884
|
|
|
22882
|
-
if (
|
|
22885
|
+
if (weakMapBasicDetection || sharedStore.state) {
|
|
22883
22886
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
22884
|
-
|
|
22885
|
-
|
|
22886
|
-
|
|
22887
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
22888
|
+
store$1.get = store$1.get;
|
|
22889
|
+
store$1.has = store$1.has;
|
|
22890
|
+
store$1.set = store$1.set;
|
|
22891
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
22887
22892
|
set = function (it, metadata) {
|
|
22888
|
-
if (
|
|
22893
|
+
if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
22889
22894
|
metadata.facade = it;
|
|
22890
|
-
|
|
22895
|
+
store$1.set(it, metadata);
|
|
22891
22896
|
return metadata;
|
|
22892
22897
|
};
|
|
22893
22898
|
get = function (it) {
|
|
22894
|
-
return
|
|
22899
|
+
return store$1.get(it) || {};
|
|
22895
22900
|
};
|
|
22896
22901
|
has = function (it) {
|
|
22897
|
-
return
|
|
22902
|
+
return store$1.has(it);
|
|
22898
22903
|
};
|
|
22899
22904
|
} else {
|
|
22900
22905
|
var STATE = sharedKey('state');
|
|
22901
22906
|
hiddenKeys[STATE] = true;
|
|
22902
22907
|
set = function (it, metadata) {
|
|
22903
|
-
if (hasOwnProperty_1(it, STATE)) throw
|
|
22908
|
+
if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
22904
22909
|
metadata.facade = it;
|
|
22905
22910
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
22906
22911
|
return metadata;
|
|
@@ -22928,8 +22933,12 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
|
22928
22933
|
|
|
22929
22934
|
var enforceInternalState = internalState.enforce;
|
|
22930
22935
|
var getInternalState = internalState.get;
|
|
22931
|
-
|
|
22936
|
+
var $String = String;
|
|
22937
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22932
22938
|
var defineProperty = Object.defineProperty;
|
|
22939
|
+
var stringSlice = functionUncurryThis(''.slice);
|
|
22940
|
+
var replace = functionUncurryThis(''.replace);
|
|
22941
|
+
var join = functionUncurryThis([].join);
|
|
22933
22942
|
|
|
22934
22943
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
22935
22944
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -22938,8 +22947,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
|
22938
22947
|
var TEMPLATE = String(String).split('String');
|
|
22939
22948
|
|
|
22940
22949
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
22941
|
-
if (String(name)
|
|
22942
|
-
name = '[' + String(name)
|
|
22950
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
22951
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
22943
22952
|
}
|
|
22944
22953
|
if (options && options.getter) name = 'get ' + name;
|
|
22945
22954
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -22958,7 +22967,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
22958
22967
|
} catch (error) { /* empty */ }
|
|
22959
22968
|
var state = enforceInternalState(value);
|
|
22960
22969
|
if (!hasOwnProperty_1(state, 'source')) {
|
|
22961
|
-
state.source =
|
|
22970
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
22962
22971
|
} return value;
|
|
22963
22972
|
};
|
|
22964
22973
|
|
|
@@ -22997,7 +23006,7 @@ var floor = Math.floor;
|
|
|
22997
23006
|
|
|
22998
23007
|
// `Math.trunc` method
|
|
22999
23008
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
23000
|
-
// eslint-disable-next-line es
|
|
23009
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
23001
23010
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
23002
23011
|
var n = +x;
|
|
23003
23012
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -23098,7 +23107,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
23098
23107
|
|
|
23099
23108
|
// `Object.getOwnPropertyNames` method
|
|
23100
23109
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
23101
|
-
// eslint-disable-next-line es
|
|
23110
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
23102
23111
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
23103
23112
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
23104
23113
|
};
|
|
@@ -23107,7 +23116,7 @@ var objectGetOwnPropertyNames = {
|
|
|
23107
23116
|
f: f$3
|
|
23108
23117
|
};
|
|
23109
23118
|
|
|
23110
|
-
// eslint-disable-next-line es
|
|
23119
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
23111
23120
|
var f$4 = Object.getOwnPropertySymbols;
|
|
23112
23121
|
|
|
23113
23122
|
var objectGetOwnPropertySymbols = {
|
|
@@ -23251,7 +23260,7 @@ var toString_1 = function (argument) {
|
|
|
23251
23260
|
var charAt = functionUncurryThis(''.charAt);
|
|
23252
23261
|
|
|
23253
23262
|
var FORCED = fails(function () {
|
|
23254
|
-
// eslint-disable-next-line es
|
|
23263
|
+
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
23255
23264
|
return '𠮷'.at(-2) !== '\uD842';
|
|
23256
23265
|
});
|
|
23257
23266
|
|
|
@@ -23269,14 +23278,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
23269
23278
|
|
|
23270
23279
|
// `Object.keys` method
|
|
23271
23280
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
23272
|
-
// eslint-disable-next-line es
|
|
23281
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
23273
23282
|
var objectKeys = Object.keys || function keys(O) {
|
|
23274
23283
|
return objectKeysInternal(O, enumBugKeys);
|
|
23275
23284
|
};
|
|
23276
23285
|
|
|
23277
23286
|
// `Object.defineProperties` method
|
|
23278
23287
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
23279
|
-
// eslint-disable-next-line es
|
|
23288
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
23280
23289
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
23281
23290
|
anObject(O);
|
|
23282
23291
|
var props = toIndexedObject(Properties);
|
|
@@ -23365,7 +23374,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
23365
23374
|
|
|
23366
23375
|
// `Object.create` method
|
|
23367
23376
|
// https://tc39.es/ecma262/#sec-object.create
|
|
23368
|
-
// eslint-disable-next-line es
|
|
23377
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
23369
23378
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
23370
23379
|
var result;
|
|
23371
23380
|
if (O !== null) {
|
|
@@ -23411,13 +23420,19 @@ _export({ target: 'Array', proto: true }, {
|
|
|
23411
23420
|
|
|
23412
23421
|
addToUnscopables('at');
|
|
23413
23422
|
|
|
23414
|
-
// eslint-disable-next-line es
|
|
23415
|
-
var
|
|
23423
|
+
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
23424
|
+
var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
23425
|
+
|
|
23426
|
+
var defineBuiltInAccessor = function (target, name, descriptor) {
|
|
23427
|
+
if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
|
|
23428
|
+
if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
|
|
23429
|
+
return objectDefineProperty.f(target, name, descriptor);
|
|
23430
|
+
};
|
|
23416
23431
|
|
|
23417
23432
|
var correctPrototypeGetter = !fails(function () {
|
|
23418
23433
|
function F() { /* empty */ }
|
|
23419
23434
|
F.prototype.constructor = null;
|
|
23420
|
-
// eslint-disable-next-line es
|
|
23435
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
23421
23436
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
23422
23437
|
});
|
|
23423
23438
|
|
|
@@ -23427,7 +23442,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
23427
23442
|
|
|
23428
23443
|
// `Object.getPrototypeOf` method
|
|
23429
23444
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
23430
|
-
// eslint-disable-next-line es
|
|
23445
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
23431
23446
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
23432
23447
|
var object = toObject(O);
|
|
23433
23448
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -23437,6 +23452,13 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
|
|
|
23437
23452
|
} return object instanceof $Object$4 ? ObjectPrototype : null;
|
|
23438
23453
|
};
|
|
23439
23454
|
|
|
23455
|
+
var functionUncurryThisAccessor = function (object, key, method) {
|
|
23456
|
+
try {
|
|
23457
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
23458
|
+
return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
23459
|
+
} catch (error) { /* empty */ }
|
|
23460
|
+
};
|
|
23461
|
+
|
|
23440
23462
|
var $String$3 = String;
|
|
23441
23463
|
var $TypeError$6 = TypeError;
|
|
23442
23464
|
|
|
@@ -23453,14 +23475,13 @@ var aPossiblePrototype = function (argument) {
|
|
|
23453
23475
|
// `Object.setPrototypeOf` method
|
|
23454
23476
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
23455
23477
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
23456
|
-
// eslint-disable-next-line es
|
|
23478
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
23457
23479
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
23458
23480
|
var CORRECT_SETTER = false;
|
|
23459
23481
|
var test = {};
|
|
23460
23482
|
var setter;
|
|
23461
23483
|
try {
|
|
23462
|
-
|
|
23463
|
-
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
23484
|
+
setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
23464
23485
|
setter(test, []);
|
|
23465
23486
|
CORRECT_SETTER = test instanceof Array;
|
|
23466
23487
|
} catch (error) { /* empty */ }
|
|
@@ -23473,14 +23494,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
23473
23494
|
};
|
|
23474
23495
|
}() : undefined);
|
|
23475
23496
|
|
|
23476
|
-
var defineProperty$2 = objectDefineProperty.f;
|
|
23477
|
-
|
|
23478
|
-
|
|
23479
|
-
|
|
23480
|
-
|
|
23481
|
-
|
|
23482
|
-
|
|
23483
|
-
|
|
23484
23497
|
var enforceInternalState = internalState.enforce;
|
|
23485
23498
|
var getInternalState = internalState.get;
|
|
23486
23499
|
var Int8Array = global_1.Int8Array;
|
|
@@ -23496,7 +23509,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
23496
23509
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
23497
23510
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
23498
23511
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
23499
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
23512
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
23500
23513
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
23501
23514
|
var NAME, Constructor, Prototype;
|
|
23502
23515
|
|
|
@@ -23631,9 +23644,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
|
|
|
23631
23644
|
|
|
23632
23645
|
if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
|
|
23633
23646
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
23634
|
-
|
|
23635
|
-
|
|
23636
|
-
|
|
23647
|
+
defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
|
|
23648
|
+
configurable: true,
|
|
23649
|
+
get: function () {
|
|
23650
|
+
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23651
|
+
}
|
|
23652
|
+
});
|
|
23637
23653
|
for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
|
|
23638
23654
|
createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
|
|
23639
23655
|
}
|
|
@@ -23985,7 +24001,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23985
24001
|
"aria-labelledby": ariaLabelledby,
|
|
23986
24002
|
"aria-describedby": ariaDescribedby,
|
|
23987
24003
|
"aria-expanded": isOpen,
|
|
23988
|
-
|
|
24004
|
+
autocomplete: autocompleteValue,
|
|
23989
24005
|
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
23990
24006
|
borderRadius: "2px",
|
|
23991
24007
|
borderSize: "1px",
|
|
@@ -24005,6 +24021,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24005
24021
|
},
|
|
24006
24022
|
padding: "12px",
|
|
24007
24023
|
placeholder: getSelection(),
|
|
24024
|
+
role: "combobox",
|
|
24008
24025
|
themeValues: themeValues,
|
|
24009
24026
|
title: hasTitles ? getSelection() : null,
|
|
24010
24027
|
type: "text",
|
|
@@ -24057,7 +24074,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24057
24074
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
24058
24075
|
variant: "p",
|
|
24059
24076
|
color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
|
|
24060
|
-
extraStyles: "padding-left: 16px; \n
|
|
24077
|
+
extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
|
|
24061
24078
|
}, choice.text));
|
|
24062
24079
|
}))) : /*#__PURE__*/React.createElement(Fragment$1, null)));
|
|
24063
24080
|
};
|
|
@@ -24221,19 +24238,20 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24221
24238
|
},
|
|
24222
24239
|
disabled: disabled,
|
|
24223
24240
|
autocompleteValue: autocompleteValue,
|
|
24224
|
-
smoothScroll: smoothScroll
|
|
24225
|
-
required: options.required
|
|
24241
|
+
smoothScroll: smoothScroll
|
|
24226
24242
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
24227
24243
|
direction: "row",
|
|
24228
24244
|
justify: "space-between",
|
|
24229
|
-
"aria-
|
|
24230
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
24245
|
+
"aria-live": "polite"
|
|
24246
|
+
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React.createElement(Text$1, {
|
|
24231
24247
|
color: ERROR_COLOR,
|
|
24232
24248
|
variant: "pXS",
|
|
24233
24249
|
weight: themeValues.fontWeight,
|
|
24234
|
-
extraStyles: "word-break: break-word;\n
|
|
24250
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24235
24251
|
id: createIdFromString(labelTextWhenNoError, "error message")
|
|
24236
|
-
},
|
|
24252
|
+
}, errorMessages[field.errors[0]]) : /*#__PURE__*/React.createElement(Text$1, {
|
|
24253
|
+
extraStyles: "height: ".concat(themeValues.lineHeight, ";")
|
|
24254
|
+
})));
|
|
24237
24255
|
};
|
|
24238
24256
|
|
|
24239
24257
|
var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$g, "default");
|
|
@@ -24981,18 +24999,14 @@ var options = [{
|
|
|
24981
24999
|
value: "ZW"
|
|
24982
25000
|
}];
|
|
24983
25001
|
|
|
24984
|
-
var _excluded$o = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
|
|
24985
|
-
|
|
24986
25002
|
var CountryDropdown = function CountryDropdown(_ref) {
|
|
24987
25003
|
var labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
24988
25004
|
errorMessages = _ref.errorMessages,
|
|
24989
25005
|
field = _ref.field,
|
|
24990
25006
|
fieldActions = _ref.fieldActions,
|
|
24991
25007
|
showErrors = _ref.showErrors,
|
|
24992
|
-
onChange = _ref.onChange
|
|
24993
|
-
|
|
24994
|
-
|
|
24995
|
-
return /*#__PURE__*/React.createElement(FormSelect$1, _extends({
|
|
25008
|
+
onChange = _ref.onChange;
|
|
25009
|
+
return /*#__PURE__*/React.createElement(FormSelect$1, {
|
|
24996
25010
|
options: options,
|
|
24997
25011
|
field: field,
|
|
24998
25012
|
fieldActions: fieldActions,
|
|
@@ -25001,7 +25015,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25001
25015
|
showErrors: showErrors,
|
|
25002
25016
|
onChange: onChange,
|
|
25003
25017
|
autocompleteValue: "country-name"
|
|
25004
|
-
}
|
|
25018
|
+
});
|
|
25005
25019
|
};
|
|
25006
25020
|
|
|
25007
25021
|
var DetailText = styled.p.withConfig({
|
|
@@ -25067,7 +25081,7 @@ var mobileFallbackValues$1 = {
|
|
|
25067
25081
|
};
|
|
25068
25082
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25069
25083
|
|
|
25070
|
-
var _excluded$
|
|
25084
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25071
25085
|
/*
|
|
25072
25086
|
New responsive text component for Detail elements
|
|
25073
25087
|
(Block level text elements which are smaller than "Title" elements)
|
|
@@ -25117,7 +25131,7 @@ var Detail = function Detail(_ref) {
|
|
|
25117
25131
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25118
25132
|
dataQa = _ref.dataQa,
|
|
25119
25133
|
children = _ref.children,
|
|
25120
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25134
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
25121
25135
|
|
|
25122
25136
|
return /*#__PURE__*/React.createElement(DetailText, _extends({
|
|
25123
25137
|
variant: variant,
|
|
@@ -25841,7 +25855,7 @@ var fallbackValues$k = {
|
|
|
25841
25855
|
formFooterPanel: formFooterPanel
|
|
25842
25856
|
};
|
|
25843
25857
|
|
|
25844
|
-
var _excluded$
|
|
25858
|
+
var _excluded$p = ["showErrors", "themeValues"],
|
|
25845
25859
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
|
|
25846
25860
|
var InputField = styled.input.withConfig({
|
|
25847
25861
|
displayName: "FormInput__InputField",
|
|
@@ -25875,7 +25889,7 @@ var InputField = styled.input.withConfig({
|
|
|
25875
25889
|
var FormattedInputField = styled(function (_ref8) {
|
|
25876
25890
|
var showErrors = _ref8.showErrors,
|
|
25877
25891
|
themeValues = _ref8.themeValues,
|
|
25878
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
25892
|
+
props = _objectWithoutProperties(_ref8, _excluded$p);
|
|
25879
25893
|
|
|
25880
25894
|
return /*#__PURE__*/React.createElement(FormattedInput, props);
|
|
25881
25895
|
}).withConfig({
|
|
@@ -25946,8 +25960,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25946
25960
|
};
|
|
25947
25961
|
|
|
25948
25962
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
25949
|
-
childGap: "0.25rem"
|
|
25950
|
-
"aria-live": "assertive"
|
|
25963
|
+
childGap: "0.25rem"
|
|
25951
25964
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
25952
25965
|
padding: "0"
|
|
25953
25966
|
}, helperModal ? /*#__PURE__*/React.createElement(Cluster, {
|
|
@@ -25994,8 +26007,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25994
26007
|
}, showPassword ? "Hide" : "Show"), isMobile && decorator && /*#__PURE__*/React.createElement(Box, {
|
|
25995
26008
|
padding: "0 0 0 auto"
|
|
25996
26009
|
}, decorator)))), /*#__PURE__*/React.createElement(Box, {
|
|
25997
|
-
padding: "0"
|
|
25998
|
-
"aria-live": "assertive"
|
|
26010
|
+
padding: "0"
|
|
25999
26011
|
}, formatter ? /*#__PURE__*/React.createElement(FormattedInputField, _extends({
|
|
26000
26012
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26001
26013
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -26037,7 +26049,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26037
26049
|
}, props))), /*#__PURE__*/React.createElement(Stack, {
|
|
26038
26050
|
direction: "row",
|
|
26039
26051
|
justify: "space-between",
|
|
26040
|
-
"aria-
|
|
26052
|
+
"aria-live": "polite"
|
|
26041
26053
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React.createElement(Text$1, {
|
|
26042
26054
|
color: ERROR_COLOR,
|
|
26043
26055
|
variant: "pXS",
|
|
@@ -26053,7 +26065,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26053
26065
|
|
|
26054
26066
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26055
26067
|
|
|
26056
|
-
var _excluded$
|
|
26068
|
+
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26057
26069
|
|
|
26058
26070
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26059
26071
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -26063,7 +26075,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26063
26075
|
largeChild = _ref.largeChild,
|
|
26064
26076
|
largeChildSize = _ref.largeChildSize,
|
|
26065
26077
|
children = _ref.children,
|
|
26066
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26078
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
26067
26079
|
|
|
26068
26080
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
26069
26081
|
padding: "0"
|
|
@@ -26075,14 +26087,14 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26075
26087
|
}, children));
|
|
26076
26088
|
};
|
|
26077
26089
|
|
|
26078
|
-
var _excluded$
|
|
26090
|
+
var _excluded$r = ["childGap", "bottomItem", "children"];
|
|
26079
26091
|
|
|
26080
26092
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26081
26093
|
var _ref$childGap = _ref.childGap,
|
|
26082
26094
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26083
26095
|
bottomItem = _ref.bottomItem,
|
|
26084
26096
|
children = _ref.children,
|
|
26085
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26097
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
26086
26098
|
|
|
26087
26099
|
return /*#__PURE__*/React.createElement(Stack, _extends({
|
|
26088
26100
|
childGap: childGap,
|
|
@@ -26090,12 +26102,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
|
|
|
26090
26102
|
}, rest), children);
|
|
26091
26103
|
};
|
|
26092
26104
|
|
|
26093
|
-
var _excluded$
|
|
26105
|
+
var _excluded$s = ["themeValues", "children"];
|
|
26094
26106
|
|
|
26095
26107
|
var FormContainer = function FormContainer(_ref) {
|
|
26096
26108
|
var themeValues = _ref.themeValues,
|
|
26097
26109
|
children = _ref.children,
|
|
26098
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26110
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26099
26111
|
|
|
26100
26112
|
var _useContext = useContext(ThemeContext),
|
|
26101
26113
|
isMobile = _useContext.isMobile;
|
|
@@ -26360,7 +26372,7 @@ var fallbackValues$o = {
|
|
|
26360
26372
|
fontSize: fontSize$8
|
|
26361
26373
|
};
|
|
26362
26374
|
|
|
26363
|
-
var _excluded$
|
|
26375
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26364
26376
|
|
|
26365
26377
|
var Heading = function Heading(_ref) {
|
|
26366
26378
|
var themeValues = _ref.themeValues,
|
|
@@ -26380,7 +26392,7 @@ var Heading = function Heading(_ref) {
|
|
|
26380
26392
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
26381
26393
|
dataQa = _ref.dataQa,
|
|
26382
26394
|
children = _ref.children,
|
|
26383
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26395
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26384
26396
|
|
|
26385
26397
|
return /*#__PURE__*/React.createElement(HeadingText, _extends({
|
|
26386
26398
|
variant: variant,
|
|
@@ -26671,7 +26683,7 @@ var Loading = function Loading() {
|
|
|
26671
26683
|
})))));
|
|
26672
26684
|
};
|
|
26673
26685
|
|
|
26674
|
-
var _excluded$
|
|
26686
|
+
var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26675
26687
|
|
|
26676
26688
|
var NavFooter = function NavFooter(_ref) {
|
|
26677
26689
|
var leftContent = _ref.leftContent,
|
|
@@ -26687,7 +26699,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26687
26699
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26688
26700
|
isMobile = _ref.isMobile,
|
|
26689
26701
|
footerWidth = _ref.footerWidth,
|
|
26690
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26702
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26691
26703
|
|
|
26692
26704
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
26693
26705
|
padding: footerPadding,
|
|
@@ -26719,7 +26731,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26719
26731
|
}, rightContent)))))));
|
|
26720
26732
|
};
|
|
26721
26733
|
|
|
26722
|
-
var _excluded$
|
|
26734
|
+
var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
26723
26735
|
|
|
26724
26736
|
var NavHeader = function NavHeader(_ref) {
|
|
26725
26737
|
var leftContent = _ref.leftContent,
|
|
@@ -26729,7 +26741,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
26729
26741
|
isMobile = _ref.isMobile,
|
|
26730
26742
|
backgroundColor = _ref.backgroundColor,
|
|
26731
26743
|
headerWidth = _ref.headerWidth,
|
|
26732
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26744
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
26733
26745
|
|
|
26734
26746
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
26735
26747
|
padding: "0 16px 4px",
|
|
@@ -38504,7 +38516,7 @@ var TableRowWrapper = styled.tr.withConfig({
|
|
|
38504
38516
|
return extraStyles;
|
|
38505
38517
|
});
|
|
38506
38518
|
|
|
38507
|
-
var _excluded$
|
|
38519
|
+
var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38508
38520
|
|
|
38509
38521
|
var TableRow = function TableRow(_ref) {
|
|
38510
38522
|
var children = _ref.children,
|
|
@@ -38514,7 +38526,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38514
38526
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38515
38527
|
onClick = _ref.onClick,
|
|
38516
38528
|
themeValues = _ref.themeValues,
|
|
38517
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38529
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
38518
38530
|
|
|
38519
38531
|
return /*#__PURE__*/React.createElement(TableRowWrapper, _extends({
|
|
38520
38532
|
onClick: onClick,
|
|
@@ -40368,20 +40380,17 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40368
40380
|
actions.fields.zip.set("");
|
|
40369
40381
|
}
|
|
40370
40382
|
},
|
|
40371
|
-
showErrors: showErrors
|
|
40372
|
-
"aria-label": "Country"
|
|
40383
|
+
showErrors: showErrors
|
|
40373
40384
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40374
40385
|
labelTextWhenNoError: "Address",
|
|
40375
40386
|
errorMessages: street1ErrorMessages,
|
|
40376
|
-
required: true,
|
|
40377
40387
|
field: fields.street1,
|
|
40378
40388
|
fieldActions: actions.fields.street1,
|
|
40379
40389
|
showErrors: showErrors,
|
|
40380
40390
|
onKeyDown: function onKeyDown(e) {
|
|
40381
40391
|
return e.key === "Enter" && handleSubmit(e);
|
|
40382
40392
|
},
|
|
40383
|
-
autocomplete: "address-line1"
|
|
40384
|
-
"aria-label": "address line 1"
|
|
40393
|
+
autocomplete: "address-line1"
|
|
40385
40394
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40386
40395
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40387
40396
|
field: fields.street2,
|
|
@@ -40390,11 +40399,9 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40390
40399
|
onKeyDown: function onKeyDown(e) {
|
|
40391
40400
|
return e.key === "Enter" && handleSubmit(e);
|
|
40392
40401
|
},
|
|
40393
|
-
autocomplete: "address-line2"
|
|
40394
|
-
"aria-label": "Apt, Suite, Unit, Floor, etc. (Optional)"
|
|
40402
|
+
autocomplete: "address-line2"
|
|
40395
40403
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40396
40404
|
labelTextWhenNoError: "City",
|
|
40397
|
-
required: true,
|
|
40398
40405
|
errorMessages: cityErrorMessages,
|
|
40399
40406
|
field: fields.city,
|
|
40400
40407
|
fieldActions: actions.fields.city,
|
|
@@ -40402,8 +40409,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40402
40409
|
onKeyDown: function onKeyDown(e) {
|
|
40403
40410
|
return e.key === "Enter" && handleSubmit(e);
|
|
40404
40411
|
},
|
|
40405
|
-
autocomplete: "
|
|
40406
|
-
"aria-label": "city"
|
|
40412
|
+
autocomplete: "address-level2"
|
|
40407
40413
|
}), /*#__PURE__*/React.createElement(FormStateDropdown, {
|
|
40408
40414
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40409
40415
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40414,9 +40420,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40414
40420
|
onKeyDown: function onKeyDown(e) {
|
|
40415
40421
|
return e.key === "Enter" && handleSubmit(e);
|
|
40416
40422
|
},
|
|
40417
|
-
|
|
40418
|
-
"aria-label": isUS ? "state" : "state or province",
|
|
40419
|
-
required: true
|
|
40423
|
+
autocomplete: "address-level1"
|
|
40420
40424
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40421
40425
|
isNum: isUS,
|
|
40422
40426
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40428,11 +40432,10 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40428
40432
|
onKeyDown: function onKeyDown(e) {
|
|
40429
40433
|
return e.key === "Enter" && handleSubmit(e);
|
|
40430
40434
|
},
|
|
40431
|
-
"aria-label": "zip code",
|
|
40432
40435
|
autocomplete: "postal-code"
|
|
40433
40436
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
40434
40437
|
name: "address checkbox",
|
|
40435
|
-
title: "Save address to
|
|
40438
|
+
title: "Save address to wallet",
|
|
40436
40439
|
checked: walletCheckboxMarked,
|
|
40437
40440
|
onChange: saveToWallet
|
|
40438
40441
|
})));
|
|
@@ -48148,7 +48151,7 @@ var fallbackValues$N = {
|
|
|
48148
48151
|
labeledAmountTotal: labeledAmountTotal
|
|
48149
48152
|
};
|
|
48150
48153
|
|
|
48151
|
-
var _excluded$
|
|
48154
|
+
var _excluded$x = ["amount"],
|
|
48152
48155
|
_excluded2$1 = ["amount"];
|
|
48153
48156
|
|
|
48154
48157
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -48221,22 +48224,57 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
48221
48224
|
var LoadingDetails = function LoadingDetails() {
|
|
48222
48225
|
return /*#__PURE__*/React.createElement(Box, {
|
|
48223
48226
|
padding: "0",
|
|
48224
|
-
background: GRECIAN_GREY,
|
|
48225
|
-
borderRadius: "4px",
|
|
48226
48227
|
minHeight: "196px"
|
|
48227
|
-
}, /*#__PURE__*/React.createElement(Cover, {
|
|
48228
|
-
minHeight: "196px",
|
|
48229
|
-
singleChild: true,
|
|
48230
|
-
fillCenter: true
|
|
48231
|
-
}, /*#__PURE__*/React.createElement(Center, {
|
|
48232
|
-
intrinsic: true
|
|
48233
48228
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
48234
48229
|
padding: "0",
|
|
48235
|
-
extraStyles: "
|
|
48230
|
+
extraStyles: "position: absolute;\n height: 200px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;"
|
|
48236
48231
|
}, /*#__PURE__*/React.createElement(Spinner$2, {
|
|
48237
48232
|
size: "100",
|
|
48238
48233
|
centerSpinner: true
|
|
48239
|
-
}))
|
|
48234
|
+
})), /*#__PURE__*/React.createElement(Stack, {
|
|
48235
|
+
childGap: "16px"
|
|
48236
|
+
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
48237
|
+
nowrap: true,
|
|
48238
|
+
justify: "space-between",
|
|
48239
|
+
align: "start"
|
|
48240
|
+
}, /*#__PURE__*/React.createElement(LoadingLine, {
|
|
48241
|
+
exactWidth: "110",
|
|
48242
|
+
height: "27px"
|
|
48243
|
+
}), /*#__PURE__*/React.createElement(LoadingLine, {
|
|
48244
|
+
exactWidth: "60",
|
|
48245
|
+
height: "27px"
|
|
48246
|
+
})), /*#__PURE__*/React.createElement(SolidDivider$1, null), /*#__PURE__*/React.createElement(Box, {
|
|
48247
|
+
padding: "0.5rem 0"
|
|
48248
|
+
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
48249
|
+
justify: "space-between",
|
|
48250
|
+
align: "start"
|
|
48251
|
+
}, /*#__PURE__*/React.createElement(LoadingLine, {
|
|
48252
|
+
exactWidth: "80",
|
|
48253
|
+
height: "27px"
|
|
48254
|
+
}), /*#__PURE__*/React.createElement(LoadingLine, {
|
|
48255
|
+
exactWidth: "60",
|
|
48256
|
+
height: "27px"
|
|
48257
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
48258
|
+
padding: "4px 0"
|
|
48259
|
+
}), /*#__PURE__*/React.createElement(Cluster, {
|
|
48260
|
+
justify: "space-between",
|
|
48261
|
+
align: "start"
|
|
48262
|
+
}, /*#__PURE__*/React.createElement(LoadingLine, {
|
|
48263
|
+
exactWidth: "100",
|
|
48264
|
+
height: "27px"
|
|
48265
|
+
}), /*#__PURE__*/React.createElement(LoadingLine, {
|
|
48266
|
+
exactWidth: "50",
|
|
48267
|
+
height: "27px"
|
|
48268
|
+
}))), /*#__PURE__*/React.createElement(SolidDivider$1, null), /*#__PURE__*/React.createElement(Stack, {
|
|
48269
|
+
justify: "space-between",
|
|
48270
|
+
direction: "row"
|
|
48271
|
+
}, /*#__PURE__*/React.createElement(LoadingLine, {
|
|
48272
|
+
exactWidth: "55",
|
|
48273
|
+
height: "30px"
|
|
48274
|
+
}), /*#__PURE__*/React.createElement(LoadingLine, {
|
|
48275
|
+
exactWidth: "70",
|
|
48276
|
+
height: "30px"
|
|
48277
|
+
}))));
|
|
48240
48278
|
};
|
|
48241
48279
|
|
|
48242
48280
|
var ErrorDetails = function ErrorDetails() {
|
|
@@ -48358,7 +48396,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48358
48396
|
return fee.amount > 0;
|
|
48359
48397
|
}).map(function (_ref5) {
|
|
48360
48398
|
var amount = _ref5.amount,
|
|
48361
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48399
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
48362
48400
|
|
|
48363
48401
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48364
48402
|
amount: displayCurrency(amount)
|
|
@@ -48792,12 +48830,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48792
48830
|
}, errorMessage)))));
|
|
48793
48831
|
};
|
|
48794
48832
|
|
|
48795
|
-
var _excluded$
|
|
48833
|
+
var _excluded$y = ["version"];
|
|
48796
48834
|
|
|
48797
48835
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48798
48836
|
var _ref$version = _ref.version,
|
|
48799
48837
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48800
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48838
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
48801
48839
|
|
|
48802
48840
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48803
48841
|
return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
|