@thecb/components 7.10.6 → 7.11.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +66 -89
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +66 -89
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/{components/.DS_Store → .DS_Store} +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/molecules/.DS_Store +0 -0
- package/src/components/molecules/partial-amount-form/PartialAmountForm.state.js +7 -2
- /package/src/components/atoms/icons/{ExternalLinkIcon.js → ExternalLinkicon.js} +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -21369,7 +21369,7 @@ var check = function (it) {
|
|
|
21369
21369
|
|
|
21370
21370
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
21371
21371
|
var global_1 =
|
|
21372
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
21372
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
21373
21373
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
21374
21374
|
check(typeof window == 'object' && window) ||
|
|
21375
21375
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
@@ -21388,12 +21388,12 @@ var fails = function (exec) {
|
|
|
21388
21388
|
|
|
21389
21389
|
// Detect IE8's incomplete defineProperty implementation
|
|
21390
21390
|
var descriptors = !fails(function () {
|
|
21391
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21391
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
21392
21392
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
21393
21393
|
});
|
|
21394
21394
|
|
|
21395
21395
|
var functionBindNative = !fails(function () {
|
|
21396
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
21396
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
21397
21397
|
var test = (function () { /* empty */ }).bind();
|
|
21398
21398
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
21399
21399
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -21406,7 +21406,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
21406
21406
|
};
|
|
21407
21407
|
|
|
21408
21408
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
21409
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21409
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21410
21410
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21411
21411
|
|
|
21412
21412
|
// Nashorn ~ JDK8 bug
|
|
@@ -21433,29 +21433,25 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
21433
21433
|
};
|
|
21434
21434
|
|
|
21435
21435
|
var FunctionPrototype = Function.prototype;
|
|
21436
|
+
var bind$1 = FunctionPrototype.bind;
|
|
21436
21437
|
var call$1 = FunctionPrototype.call;
|
|
21437
|
-
var
|
|
21438
|
+
var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
|
|
21438
21439
|
|
|
21439
|
-
var
|
|
21440
|
-
return
|
|
21440
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
21441
|
+
return fn && uncurryThis(fn);
|
|
21442
|
+
} : function (fn) {
|
|
21443
|
+
return fn && function () {
|
|
21441
21444
|
return call$1.apply(fn, arguments);
|
|
21442
21445
|
};
|
|
21443
21446
|
};
|
|
21444
21447
|
|
|
21445
|
-
var toString$2 =
|
|
21446
|
-
var stringSlice =
|
|
21448
|
+
var toString$2 = functionUncurryThis({}.toString);
|
|
21449
|
+
var stringSlice = functionUncurryThis(''.slice);
|
|
21447
21450
|
|
|
21448
21451
|
var classofRaw = function (it) {
|
|
21449
21452
|
return stringSlice(toString$2(it), 8, -1);
|
|
21450
21453
|
};
|
|
21451
21454
|
|
|
21452
|
-
var functionUncurryThis = function (fn) {
|
|
21453
|
-
// Nashorn bug:
|
|
21454
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
21455
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
21456
|
-
if (classofRaw(fn) === 'Function') return functionUncurryThisRaw(fn);
|
|
21457
|
-
};
|
|
21458
|
-
|
|
21459
21455
|
var $Object = Object;
|
|
21460
21456
|
var split = functionUncurryThis(''.split);
|
|
21461
21457
|
|
|
@@ -21468,18 +21464,12 @@ var indexedObject = fails(function () {
|
|
|
21468
21464
|
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
21469
21465
|
} : $Object;
|
|
21470
21466
|
|
|
21471
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
21472
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
21473
|
-
var isNullOrUndefined = function (it) {
|
|
21474
|
-
return it === null || it === undefined;
|
|
21475
|
-
};
|
|
21476
|
-
|
|
21477
21467
|
var $TypeError = TypeError;
|
|
21478
21468
|
|
|
21479
21469
|
// `RequireObjectCoercible` abstract operation
|
|
21480
21470
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
21481
21471
|
var requireObjectCoercible = function (it) {
|
|
21482
|
-
if (
|
|
21472
|
+
if (it == undefined) throw $TypeError("Can't call method on " + it);
|
|
21483
21473
|
return it;
|
|
21484
21474
|
};
|
|
21485
21475
|
|
|
@@ -21491,31 +21481,13 @@ var toIndexedObject = function (it) {
|
|
|
21491
21481
|
return indexedObject(requireObjectCoercible(it));
|
|
21492
21482
|
};
|
|
21493
21483
|
|
|
21494
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
21495
|
-
|
|
21496
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
21497
|
-
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
21498
|
-
|
|
21499
|
-
var documentAll_1 = {
|
|
21500
|
-
all: documentAll,
|
|
21501
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
21502
|
-
};
|
|
21503
|
-
|
|
21504
|
-
var documentAll$1 = documentAll_1.all;
|
|
21505
|
-
|
|
21506
21484
|
// `IsCallable` abstract operation
|
|
21507
21485
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
21508
|
-
var isCallable =
|
|
21509
|
-
return typeof argument == 'function' || argument === documentAll$1;
|
|
21510
|
-
} : function (argument) {
|
|
21486
|
+
var isCallable = function (argument) {
|
|
21511
21487
|
return typeof argument == 'function';
|
|
21512
21488
|
};
|
|
21513
21489
|
|
|
21514
|
-
var
|
|
21515
|
-
|
|
21516
|
-
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
21517
|
-
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
21518
|
-
} : function (it) {
|
|
21490
|
+
var isObject = function (it) {
|
|
21519
21491
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
21520
21492
|
};
|
|
21521
21493
|
|
|
@@ -21556,12 +21528,12 @@ if (!version && engineUserAgent) {
|
|
|
21556
21528
|
|
|
21557
21529
|
var engineV8Version = version;
|
|
21558
21530
|
|
|
21559
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
21531
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
21560
21532
|
|
|
21561
21533
|
|
|
21562
21534
|
|
|
21563
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
21564
|
-
var
|
|
21535
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
21536
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
21565
21537
|
var symbol = Symbol();
|
|
21566
21538
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
21567
21539
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -21570,10 +21542,10 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(functi
|
|
|
21570
21542
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
21571
21543
|
});
|
|
21572
21544
|
|
|
21573
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
21545
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
21574
21546
|
|
|
21575
21547
|
|
|
21576
|
-
var useSymbolAsUid =
|
|
21548
|
+
var useSymbolAsUid = nativeSymbol
|
|
21577
21549
|
&& !Symbol.sham
|
|
21578
21550
|
&& typeof Symbol.iterator == 'symbol';
|
|
21579
21551
|
|
|
@@ -21608,7 +21580,7 @@ var aCallable = function (argument) {
|
|
|
21608
21580
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
21609
21581
|
var getMethod = function (V, P) {
|
|
21610
21582
|
var func = V[P];
|
|
21611
|
-
return
|
|
21583
|
+
return func == null ? undefined : aCallable(func);
|
|
21612
21584
|
};
|
|
21613
21585
|
|
|
21614
21586
|
var $TypeError$2 = TypeError;
|
|
@@ -21623,7 +21595,7 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
21623
21595
|
throw $TypeError$2("Can't convert object to primitive value");
|
|
21624
21596
|
};
|
|
21625
21597
|
|
|
21626
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21598
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
21627
21599
|
var defineProperty = Object.defineProperty;
|
|
21628
21600
|
|
|
21629
21601
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -21643,10 +21615,10 @@ var shared = createCommonjsModule(function (module) {
|
|
|
21643
21615
|
(module.exports = function (key, value) {
|
|
21644
21616
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
21645
21617
|
})('versions', []).push({
|
|
21646
|
-
version: '3.
|
|
21618
|
+
version: '3.24.1',
|
|
21647
21619
|
mode: 'global',
|
|
21648
21620
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
21649
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
21621
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
21650
21622
|
source: 'https://github.com/zloirock/core-js'
|
|
21651
21623
|
});
|
|
21652
21624
|
});
|
|
@@ -21663,7 +21635,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
21663
21635
|
|
|
21664
21636
|
// `HasOwnProperty` abstract operation
|
|
21665
21637
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
21666
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
21638
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
21667
21639
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
21668
21640
|
return hasOwnProperty(toObject(it), key);
|
|
21669
21641
|
};
|
|
@@ -21682,9 +21654,9 @@ var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
|
21682
21654
|
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
21683
21655
|
|
|
21684
21656
|
var wellKnownSymbol = function (name) {
|
|
21685
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(
|
|
21657
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
21686
21658
|
var description = 'Symbol.' + name;
|
|
21687
|
-
if (
|
|
21659
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
|
21688
21660
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
21689
21661
|
} else if (useSymbolAsUid && symbolFor) {
|
|
21690
21662
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -21730,13 +21702,13 @@ var documentCreateElement = function (it) {
|
|
|
21730
21702
|
|
|
21731
21703
|
// Thanks to IE8 for its funny defineProperty
|
|
21732
21704
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
21733
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21705
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
21734
21706
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
21735
21707
|
get: function () { return 7; }
|
|
21736
21708
|
}).a != 7;
|
|
21737
21709
|
});
|
|
21738
21710
|
|
|
21739
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21711
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21740
21712
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21741
21713
|
|
|
21742
21714
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -21757,7 +21729,7 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
21757
21729
|
// V8 ~ Chrome 36-
|
|
21758
21730
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
21759
21731
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
21760
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21732
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
21761
21733
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
21762
21734
|
value: 42,
|
|
21763
21735
|
writable: false
|
|
@@ -21774,9 +21746,9 @@ var anObject = function (argument) {
|
|
|
21774
21746
|
};
|
|
21775
21747
|
|
|
21776
21748
|
var $TypeError$5 = TypeError;
|
|
21777
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21749
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
21778
21750
|
var $defineProperty = Object.defineProperty;
|
|
21779
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21751
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21780
21752
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
21781
21753
|
var ENUMERABLE = 'enumerable';
|
|
21782
21754
|
var CONFIGURABLE = 'configurable';
|
|
@@ -21823,7 +21795,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
21823
21795
|
};
|
|
21824
21796
|
|
|
21825
21797
|
var FunctionPrototype$1 = Function.prototype;
|
|
21826
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21798
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21827
21799
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
21828
21800
|
|
|
21829
21801
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -21850,7 +21822,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
21850
21822
|
|
|
21851
21823
|
var WeakMap$1 = global_1.WeakMap;
|
|
21852
21824
|
|
|
21853
|
-
var
|
|
21825
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
21854
21826
|
|
|
21855
21827
|
var keys$1 = shared('keys');
|
|
21856
21828
|
|
|
@@ -21878,30 +21850,28 @@ var getterFor = function (TYPE) {
|
|
|
21878
21850
|
};
|
|
21879
21851
|
};
|
|
21880
21852
|
|
|
21881
|
-
if (
|
|
21853
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
21882
21854
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
21883
|
-
|
|
21884
|
-
|
|
21885
|
-
|
|
21886
|
-
store$1.set = store$1.set;
|
|
21887
|
-
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
21855
|
+
var wmget = functionUncurryThis(store$1.get);
|
|
21856
|
+
var wmhas = functionUncurryThis(store$1.has);
|
|
21857
|
+
var wmset = functionUncurryThis(store$1.set);
|
|
21888
21858
|
set = function (it, metadata) {
|
|
21889
|
-
if (store$1
|
|
21859
|
+
if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21890
21860
|
metadata.facade = it;
|
|
21891
|
-
store$1
|
|
21861
|
+
wmset(store$1, it, metadata);
|
|
21892
21862
|
return metadata;
|
|
21893
21863
|
};
|
|
21894
21864
|
get = function (it) {
|
|
21895
|
-
return store$1
|
|
21865
|
+
return wmget(store$1, it) || {};
|
|
21896
21866
|
};
|
|
21897
21867
|
has = function (it) {
|
|
21898
|
-
return store$1
|
|
21868
|
+
return wmhas(store$1, it);
|
|
21899
21869
|
};
|
|
21900
21870
|
} else {
|
|
21901
21871
|
var STATE = sharedKey('state');
|
|
21902
21872
|
hiddenKeys[STATE] = true;
|
|
21903
21873
|
set = function (it, metadata) {
|
|
21904
|
-
if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21874
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21905
21875
|
metadata.facade = it;
|
|
21906
21876
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
21907
21877
|
return metadata;
|
|
@@ -21929,7 +21899,7 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
|
21929
21899
|
|
|
21930
21900
|
var enforceInternalState = internalState.enforce;
|
|
21931
21901
|
var getInternalState = internalState.get;
|
|
21932
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21902
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
21933
21903
|
var defineProperty = Object.defineProperty;
|
|
21934
21904
|
|
|
21935
21905
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
@@ -21998,7 +21968,7 @@ var floor = Math.floor;
|
|
|
21998
21968
|
|
|
21999
21969
|
// `Math.trunc` method
|
|
22000
21970
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
22001
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
21971
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
22002
21972
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
22003
21973
|
var n = +x;
|
|
22004
21974
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -22099,7 +22069,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
22099
22069
|
|
|
22100
22070
|
// `Object.getOwnPropertyNames` method
|
|
22101
22071
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
22102
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
22072
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
22103
22073
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
22104
22074
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
22105
22075
|
};
|
|
@@ -22108,7 +22078,7 @@ var objectGetOwnPropertyNames = {
|
|
|
22108
22078
|
f: f$3
|
|
22109
22079
|
};
|
|
22110
22080
|
|
|
22111
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
22081
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
22112
22082
|
var f$4 = Object.getOwnPropertySymbols;
|
|
22113
22083
|
|
|
22114
22084
|
var objectGetOwnPropertySymbols = {
|
|
@@ -22252,7 +22222,7 @@ var toString_1 = function (argument) {
|
|
|
22252
22222
|
var charAt = functionUncurryThis(''.charAt);
|
|
22253
22223
|
|
|
22254
22224
|
var FORCED = fails(function () {
|
|
22255
|
-
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
22225
|
+
// eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
|
|
22256
22226
|
return '𠮷'.at(-2) !== '\uD842';
|
|
22257
22227
|
});
|
|
22258
22228
|
|
|
@@ -22270,14 +22240,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
22270
22240
|
|
|
22271
22241
|
// `Object.keys` method
|
|
22272
22242
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
22273
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
22243
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
22274
22244
|
var objectKeys = Object.keys || function keys(O) {
|
|
22275
22245
|
return objectKeysInternal(O, enumBugKeys);
|
|
22276
22246
|
};
|
|
22277
22247
|
|
|
22278
22248
|
// `Object.defineProperties` method
|
|
22279
22249
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
22280
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
22250
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
22281
22251
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
22282
22252
|
anObject(O);
|
|
22283
22253
|
var props = toIndexedObject(Properties);
|
|
@@ -22366,7 +22336,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
22366
22336
|
|
|
22367
22337
|
// `Object.create` method
|
|
22368
22338
|
// https://tc39.es/ecma262/#sec-object.create
|
|
22369
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
22339
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
22370
22340
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
22371
22341
|
var result;
|
|
22372
22342
|
if (O !== null) {
|
|
@@ -22412,13 +22382,13 @@ _export({ target: 'Array', proto: true }, {
|
|
|
22412
22382
|
|
|
22413
22383
|
addToUnscopables('at');
|
|
22414
22384
|
|
|
22415
|
-
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
22416
|
-
var
|
|
22385
|
+
// eslint-disable-next-line es-x/no-typed-arrays -- safe
|
|
22386
|
+
var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
22417
22387
|
|
|
22418
22388
|
var correctPrototypeGetter = !fails(function () {
|
|
22419
22389
|
function F() { /* empty */ }
|
|
22420
22390
|
F.prototype.constructor = null;
|
|
22421
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
22391
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
22422
22392
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
22423
22393
|
});
|
|
22424
22394
|
|
|
@@ -22428,7 +22398,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
22428
22398
|
|
|
22429
22399
|
// `Object.getPrototypeOf` method
|
|
22430
22400
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
22431
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
22401
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
22432
22402
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
22433
22403
|
var object = toObject(O);
|
|
22434
22404
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -22454,13 +22424,13 @@ var aPossiblePrototype = function (argument) {
|
|
|
22454
22424
|
// `Object.setPrototypeOf` method
|
|
22455
22425
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
22456
22426
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
22457
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
22427
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
22458
22428
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
22459
22429
|
var CORRECT_SETTER = false;
|
|
22460
22430
|
var test = {};
|
|
22461
22431
|
var setter;
|
|
22462
22432
|
try {
|
|
22463
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22433
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22464
22434
|
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
22465
22435
|
setter(test, []);
|
|
22466
22436
|
CORRECT_SETTER = test instanceof Array;
|
|
@@ -22497,7 +22467,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
22497
22467
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
22498
22468
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
22499
22469
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
22500
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
22470
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
22501
22471
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
22502
22472
|
var NAME, Constructor, Prototype;
|
|
22503
22473
|
|
|
@@ -46582,14 +46552,21 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
|
|
|
46582
46552
|
|
|
46583
46553
|
var createPartialAmountFormState = function createPartialAmountFormState(lineItems, maximum) {
|
|
46584
46554
|
var minimum = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
46555
|
+
var blockPartialPaymentOverpay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
46585
46556
|
var formConfig = lineItems.reduce(function (acc, item) {
|
|
46557
|
+
var paymentMax = maximum;
|
|
46558
|
+
|
|
46559
|
+
if (blockPartialPaymentOverpay) {
|
|
46560
|
+
paymentMax = !maximum || item.amount < maximum ? item.amount : maximum;
|
|
46561
|
+
}
|
|
46562
|
+
|
|
46586
46563
|
var validators = [required(), validateSum(numberGreaterThanOrEqualTo(minimum), lineItems.filter(function (lineItem) {
|
|
46587
46564
|
return lineItem != item;
|
|
46588
46565
|
}).reduce(function (acc, curr) {
|
|
46589
46566
|
return [].concat(_toConsumableArray(acc), [curr.id]);
|
|
46590
46567
|
}, []))];
|
|
46591
46568
|
|
|
46592
|
-
if (!!maximum) {
|
|
46569
|
+
if (!!maximum || blockPartialPaymentOverpay) {
|
|
46593
46570
|
validators.push(validateSum(numberLessThanOrEqualTo(maximum), lineItems.filter(function (lineItem) {
|
|
46594
46571
|
return lineItem != item;
|
|
46595
46572
|
}).reduce(function (acc, curr) {
|