@abgov/jsonforms-components 2.38.5 → 2.40.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/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { GoAFormItem, GoAInput, GoATextArea, GoACallout, GoAInputDate, GoAInputD
|
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import get$1 from 'lodash/get';
|
|
8
|
-
import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isControl, isEnumControl, isBooleanControl, schemaMatches, getAjv, isVisible,
|
|
8
|
+
import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isControl, isEnumControl, isBooleanControl, schemaMatches, getAjv, isVisible, isEnabled, deriveLabelForUISchemaElement, schemaTypeIs, formatIs, createDefaultValue, or, isObjectArrayControl, isPrimitiveArrayControl, Paths, toDataPath, hasType, isCategorization, isLayout } from '@jsonforms/core';
|
|
9
9
|
import { withJsonFormsControlProps, withJsonFormsEnumProps, withTranslateProps, JsonFormsDispatch, useJsonForms, withJsonFormsLayoutProps, withJsonFormsArrayLayoutProps, withJsonFormsAllOfProps, withJsonFormsCellProps } from '@jsonforms/react';
|
|
10
10
|
import * as _$c from 'lodash';
|
|
11
11
|
import ___default, { isEqual, isEmpty as isEmpty$1, isObject as isObject$f } from 'lodash';
|
|
@@ -41,12 +41,12 @@ var functionBindNative = !fails$u(function () {
|
|
|
41
41
|
var NATIVE_BIND$3 = functionBindNative;
|
|
42
42
|
|
|
43
43
|
var FunctionPrototype$2 = Function.prototype;
|
|
44
|
-
var call$
|
|
45
|
-
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$
|
|
44
|
+
var call$t = FunctionPrototype$2.call;
|
|
45
|
+
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$t, call$t);
|
|
46
46
|
|
|
47
47
|
var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
|
|
48
48
|
return function () {
|
|
49
|
-
return call$
|
|
49
|
+
return call$t.apply(fn, arguments);
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -161,12 +161,12 @@ var $Object$3 = Object;
|
|
|
161
161
|
|
|
162
162
|
// `ToObject` abstract operation
|
|
163
163
|
// https://tc39.es/ecma262/#sec-toobject
|
|
164
|
-
var toObject$
|
|
164
|
+
var toObject$9 = function (argument) {
|
|
165
165
|
return $Object$3(requireObjectCoercible$a(argument));
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
var uncurryThis$u = functionUncurryThis;
|
|
169
|
-
var toObject$
|
|
169
|
+
var toObject$8 = toObject$9;
|
|
170
170
|
|
|
171
171
|
var hasOwnProperty = uncurryThis$u({}.hasOwnProperty);
|
|
172
172
|
|
|
@@ -174,7 +174,7 @@ var hasOwnProperty = uncurryThis$u({}.hasOwnProperty);
|
|
|
174
174
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
175
175
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
176
176
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
177
|
-
return hasOwnProperty(toObject$
|
|
177
|
+
return hasOwnProperty(toObject$8(it), key);
|
|
178
178
|
};
|
|
179
179
|
|
|
180
180
|
var uncurryThis$t = functionUncurryThis;
|
|
@@ -286,7 +286,7 @@ var $String$5 = String;
|
|
|
286
286
|
var $TypeError$k = TypeError;
|
|
287
287
|
|
|
288
288
|
// `Assert: Type(argument) is Object`
|
|
289
|
-
var anObject$
|
|
289
|
+
var anObject$s = function (argument) {
|
|
290
290
|
if (isObject$d(argument)) return argument;
|
|
291
291
|
throw new $TypeError$k($String$5(argument) + ' is not an object');
|
|
292
292
|
};
|
|
@@ -341,10 +341,10 @@ var ie8DomDefine = !DESCRIPTORS$h && !fails$p(function () {
|
|
|
341
341
|
|
|
342
342
|
var NATIVE_BIND$2 = functionBindNative;
|
|
343
343
|
|
|
344
|
-
var call$
|
|
344
|
+
var call$s = Function.prototype.call;
|
|
345
345
|
|
|
346
|
-
var functionCall = NATIVE_BIND$2 ? call$
|
|
347
|
-
return call$
|
|
346
|
+
var functionCall = NATIVE_BIND$2 ? call$s.bind(call$s) : function () {
|
|
347
|
+
return call$s.apply(call$s, arguments);
|
|
348
348
|
};
|
|
349
349
|
|
|
350
350
|
var global$k = global$q;
|
|
@@ -392,22 +392,22 @@ var tryToString$3 = tryToString$4;
|
|
|
392
392
|
var $TypeError$j = TypeError;
|
|
393
393
|
|
|
394
394
|
// `Assert: IsCallable(argument) is true`
|
|
395
|
-
var aCallable$
|
|
395
|
+
var aCallable$j = function (argument) {
|
|
396
396
|
if (isCallable$n(argument)) return argument;
|
|
397
397
|
throw new $TypeError$j(tryToString$3(argument) + ' is not a function');
|
|
398
398
|
};
|
|
399
399
|
|
|
400
|
-
var aCallable$
|
|
400
|
+
var aCallable$i = aCallable$j;
|
|
401
401
|
var isNullOrUndefined$5 = isNullOrUndefined$7;
|
|
402
402
|
|
|
403
403
|
// `GetMethod` abstract operation
|
|
404
404
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
405
405
|
var getMethod$7 = function (V, P) {
|
|
406
406
|
var func = V[P];
|
|
407
|
-
return isNullOrUndefined$5(func) ? undefined : aCallable$
|
|
407
|
+
return isNullOrUndefined$5(func) ? undefined : aCallable$i(func);
|
|
408
408
|
};
|
|
409
409
|
|
|
410
|
-
var call$
|
|
410
|
+
var call$r = functionCall;
|
|
411
411
|
var isCallable$m = isCallable$r;
|
|
412
412
|
var isObject$b = isObject$e;
|
|
413
413
|
|
|
@@ -417,13 +417,13 @@ var $TypeError$i = TypeError;
|
|
|
417
417
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
418
418
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
419
419
|
var fn, val;
|
|
420
|
-
if (pref === 'string' && isCallable$m(fn = input.toString) && !isObject$b(val = call$
|
|
421
|
-
if (isCallable$m(fn = input.valueOf) && !isObject$b(val = call$
|
|
422
|
-
if (pref !== 'string' && isCallable$m(fn = input.toString) && !isObject$b(val = call$
|
|
420
|
+
if (pref === 'string' && isCallable$m(fn = input.toString) && !isObject$b(val = call$r(fn, input))) return val;
|
|
421
|
+
if (isCallable$m(fn = input.valueOf) && !isObject$b(val = call$r(fn, input))) return val;
|
|
422
|
+
if (pref !== 'string' && isCallable$m(fn = input.toString) && !isObject$b(val = call$r(fn, input))) return val;
|
|
423
423
|
throw new $TypeError$i("Can't convert object to primitive value");
|
|
424
424
|
};
|
|
425
425
|
|
|
426
|
-
var call$
|
|
426
|
+
var call$q = functionCall;
|
|
427
427
|
var isObject$a = isObject$e;
|
|
428
428
|
var isSymbol$2 = isSymbol$3;
|
|
429
429
|
var getMethod$6 = getMethod$7;
|
|
@@ -441,7 +441,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
441
441
|
var result;
|
|
442
442
|
if (exoticToPrim) {
|
|
443
443
|
if (pref === undefined) pref = 'default';
|
|
444
|
-
result = call$
|
|
444
|
+
result = call$q(exoticToPrim, input, pref);
|
|
445
445
|
if (!isObject$a(result) || isSymbol$2(result)) return result;
|
|
446
446
|
throw new $TypeError$h("Can't convert object to primitive value");
|
|
447
447
|
}
|
|
@@ -462,7 +462,7 @@ var toPropertyKey$2 = function (argument) {
|
|
|
462
462
|
var DESCRIPTORS$g = descriptors;
|
|
463
463
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
464
464
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
465
|
-
var anObject$
|
|
465
|
+
var anObject$r = anObject$s;
|
|
466
466
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
467
467
|
|
|
468
468
|
var $TypeError$g = TypeError;
|
|
@@ -477,9 +477,9 @@ var WRITABLE = 'writable';
|
|
|
477
477
|
// `Object.defineProperty` method
|
|
478
478
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
479
479
|
objectDefineProperty.f = DESCRIPTORS$g ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
480
|
-
anObject$
|
|
480
|
+
anObject$r(O);
|
|
481
481
|
P = toPropertyKey$1(P);
|
|
482
|
-
anObject$
|
|
482
|
+
anObject$r(Attributes);
|
|
483
483
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
484
484
|
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
485
485
|
if (current && current[WRITABLE]) {
|
|
@@ -492,9 +492,9 @@ objectDefineProperty.f = DESCRIPTORS$g ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
492
492
|
}
|
|
493
493
|
} return $defineProperty(O, P, Attributes);
|
|
494
494
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
495
|
-
anObject$
|
|
495
|
+
anObject$r(O);
|
|
496
496
|
P = toPropertyKey$1(P);
|
|
497
|
-
anObject$
|
|
497
|
+
anObject$r(Attributes);
|
|
498
498
|
if (IE8_DOM_DEFINE$1) try {
|
|
499
499
|
return $defineProperty(O, P, Attributes);
|
|
500
500
|
} catch (error) { /* empty */ }
|
|
@@ -552,19 +552,19 @@ var toLength$5 = toLength$6;
|
|
|
552
552
|
|
|
553
553
|
// `LengthOfArrayLike` abstract operation
|
|
554
554
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
555
|
-
var lengthOfArrayLike$
|
|
555
|
+
var lengthOfArrayLike$8 = function (obj) {
|
|
556
556
|
return toLength$5(obj.length);
|
|
557
557
|
};
|
|
558
558
|
|
|
559
559
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
560
560
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
561
|
-
var lengthOfArrayLike$
|
|
561
|
+
var lengthOfArrayLike$7 = lengthOfArrayLike$8;
|
|
562
562
|
|
|
563
563
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
564
564
|
var createMethod$3 = function (IS_INCLUDES) {
|
|
565
565
|
return function ($this, el, fromIndex) {
|
|
566
566
|
var O = toIndexedObject$4($this);
|
|
567
|
-
var length = lengthOfArrayLike$
|
|
567
|
+
var length = lengthOfArrayLike$7(O);
|
|
568
568
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
569
569
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
570
570
|
var value;
|
|
@@ -637,7 +637,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
637
637
|
var DESCRIPTORS$f = descriptors;
|
|
638
638
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
639
639
|
var definePropertyModule$4 = objectDefineProperty;
|
|
640
|
-
var anObject$
|
|
640
|
+
var anObject$q = anObject$s;
|
|
641
641
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
642
642
|
var objectKeys$1 = objectKeys$2;
|
|
643
643
|
|
|
@@ -645,7 +645,7 @@ var objectKeys$1 = objectKeys$2;
|
|
|
645
645
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
646
646
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
647
647
|
objectDefineProperties.f = DESCRIPTORS$f && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
648
|
-
anObject$
|
|
648
|
+
anObject$q(O);
|
|
649
649
|
var props = toIndexedObject$2(Properties);
|
|
650
650
|
var keys = objectKeys$1(Properties);
|
|
651
651
|
var length = keys.length;
|
|
@@ -669,7 +669,7 @@ var sharedKey$3 = function (key) {
|
|
|
669
669
|
};
|
|
670
670
|
|
|
671
671
|
/* global ActiveXObject -- old IE, WSH */
|
|
672
|
-
var anObject$
|
|
672
|
+
var anObject$p = anObject$s;
|
|
673
673
|
var definePropertiesModule = objectDefineProperties;
|
|
674
674
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
675
675
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -743,7 +743,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
|
|
|
743
743
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
744
744
|
var result;
|
|
745
745
|
if (O !== null) {
|
|
746
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
746
|
+
EmptyConstructor[PROTOTYPE] = anObject$p(O);
|
|
747
747
|
result = new EmptyConstructor();
|
|
748
748
|
EmptyConstructor[PROTOTYPE] = null;
|
|
749
749
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -769,7 +769,7 @@ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
|
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
// add a key to Array.prototype[@@unscopables]
|
|
772
|
-
var addToUnscopables$
|
|
772
|
+
var addToUnscopables$5 = function (key) {
|
|
773
773
|
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
|
774
774
|
};
|
|
775
775
|
|
|
@@ -892,7 +892,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
892
892
|
} : $propertyIsEnumerable;
|
|
893
893
|
|
|
894
894
|
var DESCRIPTORS$d = descriptors;
|
|
895
|
-
var call$
|
|
895
|
+
var call$p = functionCall;
|
|
896
896
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
897
897
|
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
898
898
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
@@ -911,7 +911,7 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$d ? $getOwnPropertyDescriptor : f
|
|
|
911
911
|
if (IE8_DOM_DEFINE) try {
|
|
912
912
|
return $getOwnPropertyDescriptor(O, P);
|
|
913
913
|
} catch (error) { /* empty */ }
|
|
914
|
-
if (hasOwn$b(O, P)) return createPropertyDescriptor$3(!call$
|
|
914
|
+
if (hasOwn$b(O, P)) return createPropertyDescriptor$3(!call$p(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
915
915
|
};
|
|
916
916
|
|
|
917
917
|
var makeBuiltIn$3 = {exports: {}};
|
|
@@ -1056,13 +1056,13 @@ var getBuiltIn$7 = getBuiltIn$a;
|
|
|
1056
1056
|
var uncurryThis$o = functionUncurryThis;
|
|
1057
1057
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1058
1058
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1059
|
-
var anObject$
|
|
1059
|
+
var anObject$o = anObject$s;
|
|
1060
1060
|
|
|
1061
1061
|
var concat$2 = uncurryThis$o([].concat);
|
|
1062
1062
|
|
|
1063
1063
|
// all object keys, includes non-enumerable and symbols
|
|
1064
1064
|
var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1065
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
1065
|
+
var keys = getOwnPropertyNamesModule.f(anObject$o(it));
|
|
1066
1066
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1067
1067
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
1068
1068
|
};
|
|
@@ -1173,7 +1173,7 @@ var correctPrototypeGetter = !fails$m(function () {
|
|
|
1173
1173
|
|
|
1174
1174
|
var hasOwn$7 = hasOwnProperty_1;
|
|
1175
1175
|
var isCallable$g = isCallable$r;
|
|
1176
|
-
var toObject$
|
|
1176
|
+
var toObject$7 = toObject$9;
|
|
1177
1177
|
var sharedKey = sharedKey$3;
|
|
1178
1178
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1179
1179
|
|
|
@@ -1185,7 +1185,7 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1185
1185
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1186
1186
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1187
1187
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1188
|
-
var object = toObject$
|
|
1188
|
+
var object = toObject$7(O);
|
|
1189
1189
|
if (hasOwn$7(object, IE_PROTO)) return object[IE_PROTO];
|
|
1190
1190
|
var constructor = object.constructor;
|
|
1191
1191
|
if (isCallable$g(constructor) && object instanceof constructor) {
|
|
@@ -1269,12 +1269,12 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1269
1269
|
};
|
|
1270
1270
|
|
|
1271
1271
|
var uncurryThis$n = functionUncurryThis;
|
|
1272
|
-
var aCallable$
|
|
1272
|
+
var aCallable$h = aCallable$j;
|
|
1273
1273
|
|
|
1274
1274
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1275
1275
|
try {
|
|
1276
1276
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1277
|
-
return uncurryThis$n(aCallable$
|
|
1277
|
+
return uncurryThis$n(aCallable$h(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1278
1278
|
} catch (error) { /* empty */ }
|
|
1279
1279
|
};
|
|
1280
1280
|
|
|
@@ -1323,8 +1323,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1323
1323
|
};
|
|
1324
1324
|
}() : undefined);
|
|
1325
1325
|
|
|
1326
|
-
var $$
|
|
1327
|
-
var call$
|
|
1326
|
+
var $$F = _export;
|
|
1327
|
+
var call$o = functionCall;
|
|
1328
1328
|
var FunctionName = functionName;
|
|
1329
1329
|
var isCallable$e = isCallable$r;
|
|
1330
1330
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1396,7 +1396,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1396
1396
|
createNonEnumerableProperty$7(IterablePrototype, 'name', VALUES);
|
|
1397
1397
|
} else {
|
|
1398
1398
|
INCORRECT_VALUES_NAME = true;
|
|
1399
|
-
defaultIterator = function values() { return call$
|
|
1399
|
+
defaultIterator = function values() { return call$o(nativeIterator, this); };
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
|
|
@@ -1411,7 +1411,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1411
1411
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1412
1412
|
defineBuiltIn$6(IterablePrototype, KEY, methods[KEY]);
|
|
1413
1413
|
}
|
|
1414
|
-
} else $$
|
|
1414
|
+
} else $$F({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1415
1415
|
}
|
|
1416
1416
|
|
|
1417
1417
|
// define iterator
|
|
@@ -1430,7 +1430,7 @@ var createIterResultObject$2 = function (value, done) {
|
|
|
1430
1430
|
};
|
|
1431
1431
|
|
|
1432
1432
|
var toIndexedObject = toIndexedObject$5;
|
|
1433
|
-
var addToUnscopables$
|
|
1433
|
+
var addToUnscopables$4 = addToUnscopables$5;
|
|
1434
1434
|
var Iterators$2 = iterators;
|
|
1435
1435
|
var InternalStateModule$2 = internalState;
|
|
1436
1436
|
var defineProperty$3 = objectDefineProperty.f;
|
|
@@ -1481,9 +1481,9 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1481
1481
|
var values = Iterators$2.Arguments = Iterators$2.Array;
|
|
1482
1482
|
|
|
1483
1483
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1484
|
-
addToUnscopables$
|
|
1485
|
-
addToUnscopables$
|
|
1486
|
-
addToUnscopables$
|
|
1484
|
+
addToUnscopables$4('keys');
|
|
1485
|
+
addToUnscopables$4('values');
|
|
1486
|
+
addToUnscopables$4('entries');
|
|
1487
1487
|
|
|
1488
1488
|
// V8 ~ Chrome 45- bug
|
|
1489
1489
|
if (DESCRIPTORS$a && values.name !== 'values') try {
|
|
@@ -1573,12 +1573,12 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
|
1573
1573
|
|
|
1574
1574
|
var DESCRIPTORS$9 = descriptors;
|
|
1575
1575
|
var uncurryThis$m = functionUncurryThis;
|
|
1576
|
-
var call$
|
|
1576
|
+
var call$n = functionCall;
|
|
1577
1577
|
var fails$k = fails$v;
|
|
1578
1578
|
var objectKeys = objectKeys$2;
|
|
1579
1579
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1580
1580
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1581
|
-
var toObject$
|
|
1581
|
+
var toObject$6 = toObject$9;
|
|
1582
1582
|
var IndexedObject$1 = indexedObject;
|
|
1583
1583
|
|
|
1584
1584
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
@@ -1610,7 +1610,7 @@ var objectAssign = !$assign || fails$k(function () {
|
|
|
1610
1610
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1611
1611
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1612
1612
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1613
|
-
var T = toObject$
|
|
1613
|
+
var T = toObject$6(target);
|
|
1614
1614
|
var argumentsLength = arguments.length;
|
|
1615
1615
|
var index = 1;
|
|
1616
1616
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -1623,18 +1623,18 @@ var objectAssign = !$assign || fails$k(function () {
|
|
|
1623
1623
|
var key;
|
|
1624
1624
|
while (length > j) {
|
|
1625
1625
|
key = keys[j++];
|
|
1626
|
-
if (!DESCRIPTORS$9 || call$
|
|
1626
|
+
if (!DESCRIPTORS$9 || call$n(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1627
1627
|
}
|
|
1628
1628
|
} return T;
|
|
1629
1629
|
} : $assign;
|
|
1630
1630
|
|
|
1631
|
-
var $$
|
|
1631
|
+
var $$E = _export;
|
|
1632
1632
|
var assign = objectAssign;
|
|
1633
1633
|
|
|
1634
1634
|
// `Object.assign` method
|
|
1635
1635
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1636
1636
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1637
|
-
$$
|
|
1637
|
+
$$E({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1638
1638
|
assign: assign
|
|
1639
1639
|
});
|
|
1640
1640
|
|
|
@@ -1642,11 +1642,11 @@ var NATIVE_BIND$1 = functionBindNative;
|
|
|
1642
1642
|
|
|
1643
1643
|
var FunctionPrototype = Function.prototype;
|
|
1644
1644
|
var apply$4 = FunctionPrototype.apply;
|
|
1645
|
-
var call$
|
|
1645
|
+
var call$m = FunctionPrototype.call;
|
|
1646
1646
|
|
|
1647
1647
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
1648
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
1649
|
-
return call$
|
|
1648
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$m.bind(apply$4) : function () {
|
|
1649
|
+
return call$m.apply(apply$4, arguments);
|
|
1650
1650
|
});
|
|
1651
1651
|
|
|
1652
1652
|
var defineProperty$1 = objectDefineProperty.f;
|
|
@@ -1849,7 +1849,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
1849
1849
|
};
|
|
1850
1850
|
|
|
1851
1851
|
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
1852
|
-
var $$
|
|
1852
|
+
var $$D = _export;
|
|
1853
1853
|
var global$f = global$q;
|
|
1854
1854
|
var apply$3 = functionApply;
|
|
1855
1855
|
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
@@ -1863,14 +1863,14 @@ var FORCED$5 = new Error('e', { cause: 7 }).cause !== 7;
|
|
|
1863
1863
|
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
1864
1864
|
var O = {};
|
|
1865
1865
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$5);
|
|
1866
|
-
$$
|
|
1866
|
+
$$D({ global: true, constructor: true, arity: 1, forced: FORCED$5 }, O);
|
|
1867
1867
|
};
|
|
1868
1868
|
|
|
1869
1869
|
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
1870
1870
|
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
1871
1871
|
var O = {};
|
|
1872
1872
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$5);
|
|
1873
|
-
$$
|
|
1873
|
+
$$D({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$5 }, O);
|
|
1874
1874
|
}
|
|
1875
1875
|
};
|
|
1876
1876
|
|
|
@@ -1906,32 +1906,32 @@ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
|
1906
1906
|
return function RuntimeError(message) { return apply$3(init, this, arguments); };
|
|
1907
1907
|
});
|
|
1908
1908
|
|
|
1909
|
-
var $$
|
|
1910
|
-
var toObject$
|
|
1911
|
-
var lengthOfArrayLike$
|
|
1909
|
+
var $$C = _export;
|
|
1910
|
+
var toObject$5 = toObject$9;
|
|
1911
|
+
var lengthOfArrayLike$6 = lengthOfArrayLike$8;
|
|
1912
1912
|
var toIntegerOrInfinity$5 = toIntegerOrInfinity$8;
|
|
1913
|
-
var addToUnscopables$
|
|
1913
|
+
var addToUnscopables$3 = addToUnscopables$5;
|
|
1914
1914
|
|
|
1915
1915
|
// `Array.prototype.at` method
|
|
1916
1916
|
// https://tc39.es/ecma262/#sec-array.prototype.at
|
|
1917
|
-
$$
|
|
1917
|
+
$$C({ target: 'Array', proto: true }, {
|
|
1918
1918
|
at: function at(index) {
|
|
1919
|
-
var O = toObject$
|
|
1920
|
-
var len = lengthOfArrayLike$
|
|
1919
|
+
var O = toObject$5(this);
|
|
1920
|
+
var len = lengthOfArrayLike$6(O);
|
|
1921
1921
|
var relativeIndex = toIntegerOrInfinity$5(index);
|
|
1922
1922
|
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
|
|
1923
1923
|
return (k < 0 || k >= len) ? undefined : O[k];
|
|
1924
1924
|
}
|
|
1925
1925
|
});
|
|
1926
1926
|
|
|
1927
|
-
addToUnscopables$
|
|
1927
|
+
addToUnscopables$3('at');
|
|
1928
1928
|
|
|
1929
|
-
var anObject$
|
|
1929
|
+
var anObject$n = anObject$s;
|
|
1930
1930
|
|
|
1931
1931
|
// `RegExp.prototype.flags` getter implementation
|
|
1932
1932
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1933
1933
|
var regexpFlags$1 = function () {
|
|
1934
|
-
var that = anObject$
|
|
1934
|
+
var that = anObject$n(this);
|
|
1935
1935
|
var result = '';
|
|
1936
1936
|
if (that.hasIndices) result += 'd';
|
|
1937
1937
|
if (that.global) result += 'g';
|
|
@@ -2000,7 +2000,7 @@ var regexpUnsupportedNcg = fails$g(function () {
|
|
|
2000
2000
|
|
|
2001
2001
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
2002
2002
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
2003
|
-
var call$
|
|
2003
|
+
var call$l = functionCall;
|
|
2004
2004
|
var uncurryThis$k = functionUncurryThis;
|
|
2005
2005
|
var toString$e = toString$g;
|
|
2006
2006
|
var regexpFlags = regexpFlags$1;
|
|
@@ -2022,8 +2022,8 @@ var stringSlice$7 = uncurryThis$k(''.slice);
|
|
|
2022
2022
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
2023
2023
|
var re1 = /a/;
|
|
2024
2024
|
var re2 = /b*/g;
|
|
2025
|
-
call$
|
|
2026
|
-
call$
|
|
2025
|
+
call$l(nativeExec, re1, 'a');
|
|
2026
|
+
call$l(nativeExec, re2, 'a');
|
|
2027
2027
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
2028
2028
|
})();
|
|
2029
2029
|
|
|
@@ -2044,14 +2044,14 @@ if (PATCH) {
|
|
|
2044
2044
|
|
|
2045
2045
|
if (raw) {
|
|
2046
2046
|
raw.lastIndex = re.lastIndex;
|
|
2047
|
-
result = call$
|
|
2047
|
+
result = call$l(patchedExec, raw, str);
|
|
2048
2048
|
re.lastIndex = raw.lastIndex;
|
|
2049
2049
|
return result;
|
|
2050
2050
|
}
|
|
2051
2051
|
|
|
2052
2052
|
var groups = state.groups;
|
|
2053
2053
|
var sticky = UNSUPPORTED_Y$2 && re.sticky;
|
|
2054
|
-
var flags = call$
|
|
2054
|
+
var flags = call$l(regexpFlags, re);
|
|
2055
2055
|
var source = re.source;
|
|
2056
2056
|
var charsAdded = 0;
|
|
2057
2057
|
var strCopy = str;
|
|
@@ -2079,7 +2079,7 @@ if (PATCH) {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
2081
2081
|
|
|
2082
|
-
match = call$
|
|
2082
|
+
match = call$l(nativeExec, sticky ? reCopy : re, strCopy);
|
|
2083
2083
|
|
|
2084
2084
|
if (sticky) {
|
|
2085
2085
|
if (match) {
|
|
@@ -2094,7 +2094,7 @@ if (PATCH) {
|
|
|
2094
2094
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
2095
2095
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
2096
2096
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
2097
|
-
call$
|
|
2097
|
+
call$l(nativeReplace, match[0], reCopy, function () {
|
|
2098
2098
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
2099
2099
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
2100
2100
|
}
|
|
@@ -2115,21 +2115,21 @@ if (PATCH) {
|
|
|
2115
2115
|
|
|
2116
2116
|
var regexpExec$2 = patchedExec;
|
|
2117
2117
|
|
|
2118
|
-
var $$
|
|
2118
|
+
var $$B = _export;
|
|
2119
2119
|
var exec$4 = regexpExec$2;
|
|
2120
2120
|
|
|
2121
2121
|
// `RegExp.prototype.exec` method
|
|
2122
2122
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
2123
|
-
$$
|
|
2123
|
+
$$B({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
|
|
2124
2124
|
exec: exec$4
|
|
2125
2125
|
});
|
|
2126
2126
|
|
|
2127
2127
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
2128
2128
|
|
|
2129
|
-
var $$
|
|
2130
|
-
var call$
|
|
2129
|
+
var $$A = _export;
|
|
2130
|
+
var call$k = functionCall;
|
|
2131
2131
|
var isCallable$b = isCallable$r;
|
|
2132
|
-
var anObject$
|
|
2132
|
+
var anObject$m = anObject$s;
|
|
2133
2133
|
var toString$d = toString$g;
|
|
2134
2134
|
|
|
2135
2135
|
var DELEGATES_TO_EXEC = function () {
|
|
@@ -2146,20 +2146,20 @@ var nativeTest = /./.test;
|
|
|
2146
2146
|
|
|
2147
2147
|
// `RegExp.prototype.test` method
|
|
2148
2148
|
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
2149
|
-
$$
|
|
2149
|
+
$$A({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
2150
2150
|
test: function (S) {
|
|
2151
|
-
var R = anObject$
|
|
2151
|
+
var R = anObject$m(this);
|
|
2152
2152
|
var string = toString$d(S);
|
|
2153
2153
|
var exec = R.exec;
|
|
2154
|
-
if (!isCallable$b(exec)) return call$
|
|
2155
|
-
var result = call$
|
|
2154
|
+
if (!isCallable$b(exec)) return call$k(nativeTest, R, string);
|
|
2155
|
+
var result = call$k(exec, R, string);
|
|
2156
2156
|
if (result === null) return false;
|
|
2157
|
-
anObject$
|
|
2157
|
+
anObject$m(result);
|
|
2158
2158
|
return true;
|
|
2159
2159
|
}
|
|
2160
2160
|
});
|
|
2161
2161
|
|
|
2162
|
-
var call$
|
|
2162
|
+
var call$j = functionCall;
|
|
2163
2163
|
var hasOwn$4 = hasOwnProperty_1;
|
|
2164
2164
|
var isPrototypeOf$4 = objectIsPrototypeOf;
|
|
2165
2165
|
var regExpFlags = regexpFlags$1;
|
|
@@ -2169,12 +2169,12 @@ var RegExpPrototype$4 = RegExp.prototype;
|
|
|
2169
2169
|
var regexpGetFlags = function (R) {
|
|
2170
2170
|
var flags = R.flags;
|
|
2171
2171
|
return flags === undefined && !('flags' in RegExpPrototype$4) && !hasOwn$4(R, 'flags') && isPrototypeOf$4(RegExpPrototype$4, R)
|
|
2172
|
-
? call$
|
|
2172
|
+
? call$j(regExpFlags, R) : flags;
|
|
2173
2173
|
};
|
|
2174
2174
|
|
|
2175
2175
|
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
2176
2176
|
var defineBuiltIn$5 = defineBuiltIn$9;
|
|
2177
|
-
var anObject$
|
|
2177
|
+
var anObject$l = anObject$s;
|
|
2178
2178
|
var $toString = toString$g;
|
|
2179
2179
|
var fails$f = fails$v;
|
|
2180
2180
|
var getRegExpFlags$1 = regexpGetFlags;
|
|
@@ -2191,14 +2191,14 @@ var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name !== TO_STRING
|
|
|
2191
2191
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
2192
2192
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
2193
2193
|
defineBuiltIn$5(RegExpPrototype$3, TO_STRING, function toString() {
|
|
2194
|
-
var R = anObject$
|
|
2194
|
+
var R = anObject$l(this);
|
|
2195
2195
|
var pattern = $toString(R.source);
|
|
2196
2196
|
var flags = $toString(getRegExpFlags$1(R));
|
|
2197
2197
|
return '/' + pattern + '/' + flags;
|
|
2198
2198
|
}, { unsafe: true });
|
|
2199
2199
|
}
|
|
2200
2200
|
|
|
2201
|
-
var $$
|
|
2201
|
+
var $$z = _export;
|
|
2202
2202
|
var uncurryThis$j = functionUncurryThis;
|
|
2203
2203
|
var requireObjectCoercible$8 = requireObjectCoercible$c;
|
|
2204
2204
|
var toIntegerOrInfinity$4 = toIntegerOrInfinity$8;
|
|
@@ -2214,7 +2214,7 @@ var FORCED$4 = fails$e(function () {
|
|
|
2214
2214
|
|
|
2215
2215
|
// `String.prototype.at` method
|
|
2216
2216
|
// https://tc39.es/ecma262/#sec-string.prototype.at
|
|
2217
|
-
$$
|
|
2217
|
+
$$z({ target: 'String', proto: true, forced: FORCED$4 }, {
|
|
2218
2218
|
at: function at(index) {
|
|
2219
2219
|
var S = toString$c(requireObjectCoercible$8(this));
|
|
2220
2220
|
var len = S.length;
|
|
@@ -2226,7 +2226,7 @@ $$x({ target: 'String', proto: true, forced: FORCED$4 }, {
|
|
|
2226
2226
|
|
|
2227
2227
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
2228
2228
|
|
|
2229
|
-
var call$
|
|
2229
|
+
var call$i = functionCall;
|
|
2230
2230
|
var defineBuiltIn$4 = defineBuiltIn$9;
|
|
2231
2231
|
var regexpExec$1 = regexpExec$2;
|
|
2232
2232
|
var fails$d = fails$v;
|
|
@@ -2286,9 +2286,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
2286
2286
|
// The native String method already delegates to @@method (this
|
|
2287
2287
|
// polyfilled function), leasing to infinite recursion.
|
|
2288
2288
|
// We avoid it by directly calling the native @@method method.
|
|
2289
|
-
return { done: true, value: call$
|
|
2289
|
+
return { done: true, value: call$i(nativeRegExpMethod, regexp, str, arg2) };
|
|
2290
2290
|
}
|
|
2291
|
-
return { done: true, value: call$
|
|
2291
|
+
return { done: true, value: call$i(nativeMethod, str, regexp, arg2) };
|
|
2292
2292
|
}
|
|
2293
2293
|
return { done: false };
|
|
2294
2294
|
});
|
|
@@ -2343,7 +2343,7 @@ var advanceStringIndex$3 = function (S, index, unicode) {
|
|
|
2343
2343
|
};
|
|
2344
2344
|
|
|
2345
2345
|
var uncurryThis$h = functionUncurryThis;
|
|
2346
|
-
var toObject$
|
|
2346
|
+
var toObject$4 = toObject$9;
|
|
2347
2347
|
|
|
2348
2348
|
var floor = Math.floor;
|
|
2349
2349
|
var charAt$2 = uncurryThis$h(''.charAt);
|
|
@@ -2360,7 +2360,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
2360
2360
|
var m = captures.length;
|
|
2361
2361
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
2362
2362
|
if (namedCaptures !== undefined) {
|
|
2363
|
-
namedCaptures = toObject$
|
|
2363
|
+
namedCaptures = toObject$4(namedCaptures);
|
|
2364
2364
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
2365
2365
|
}
|
|
2366
2366
|
return replace$4(replacement, symbols, function (match, ch) {
|
|
@@ -2388,8 +2388,8 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
2388
2388
|
});
|
|
2389
2389
|
};
|
|
2390
2390
|
|
|
2391
|
-
var call$
|
|
2392
|
-
var anObject$
|
|
2391
|
+
var call$h = functionCall;
|
|
2392
|
+
var anObject$k = anObject$s;
|
|
2393
2393
|
var isCallable$a = isCallable$r;
|
|
2394
2394
|
var classof$7 = classofRaw$2;
|
|
2395
2395
|
var regexpExec = regexpExec$2;
|
|
@@ -2401,20 +2401,20 @@ var $TypeError$e = TypeError;
|
|
|
2401
2401
|
var regexpExecAbstract = function (R, S) {
|
|
2402
2402
|
var exec = R.exec;
|
|
2403
2403
|
if (isCallable$a(exec)) {
|
|
2404
|
-
var result = call$
|
|
2405
|
-
if (result !== null) anObject$
|
|
2404
|
+
var result = call$h(exec, R, S);
|
|
2405
|
+
if (result !== null) anObject$k(result);
|
|
2406
2406
|
return result;
|
|
2407
2407
|
}
|
|
2408
|
-
if (classof$7(R) === 'RegExp') return call$
|
|
2408
|
+
if (classof$7(R) === 'RegExp') return call$h(regexpExec, R, S);
|
|
2409
2409
|
throw new $TypeError$e('RegExp#exec called on incompatible receiver');
|
|
2410
2410
|
};
|
|
2411
2411
|
|
|
2412
2412
|
var apply$2 = functionApply;
|
|
2413
|
-
var call$
|
|
2413
|
+
var call$g = functionCall;
|
|
2414
2414
|
var uncurryThis$g = functionUncurryThis;
|
|
2415
2415
|
var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
|
|
2416
2416
|
var fails$c = fails$v;
|
|
2417
|
-
var anObject$
|
|
2417
|
+
var anObject$j = anObject$s;
|
|
2418
2418
|
var isCallable$9 = isCallable$r;
|
|
2419
2419
|
var isNullOrUndefined$4 = isNullOrUndefined$7;
|
|
2420
2420
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$8;
|
|
@@ -2476,13 +2476,13 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall
|
|
|
2476
2476
|
var O = requireObjectCoercible$6(this);
|
|
2477
2477
|
var replacer = isNullOrUndefined$4(searchValue) ? undefined : getMethod$5(searchValue, REPLACE);
|
|
2478
2478
|
return replacer
|
|
2479
|
-
? call$
|
|
2480
|
-
: call$
|
|
2479
|
+
? call$g(replacer, searchValue, O, replaceValue)
|
|
2480
|
+
: call$g(nativeReplace, toString$a(O), searchValue, replaceValue);
|
|
2481
2481
|
},
|
|
2482
2482
|
// `RegExp.prototype[@@replace]` method
|
|
2483
2483
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
2484
2484
|
function (string, replaceValue) {
|
|
2485
|
-
var rx = anObject$
|
|
2485
|
+
var rx = anObject$j(this);
|
|
2486
2486
|
var S = toString$a(string);
|
|
2487
2487
|
|
|
2488
2488
|
if (
|
|
@@ -2600,7 +2600,7 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
2600
2600
|
} return false;
|
|
2601
2601
|
};
|
|
2602
2602
|
|
|
2603
|
-
var $$
|
|
2603
|
+
var $$y = _export;
|
|
2604
2604
|
var uncurryThis$e = functionUncurryThisClause;
|
|
2605
2605
|
var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
|
|
2606
2606
|
var toLength$3 = toLength$6;
|
|
@@ -2621,7 +2621,7 @@ var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function () {
|
|
|
2621
2621
|
|
|
2622
2622
|
// `String.prototype.startsWith` method
|
|
2623
2623
|
// https://tc39.es/ecma262/#sec-string.prototype.startswith
|
|
2624
|
-
$$
|
|
2624
|
+
$$y({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, {
|
|
2625
2625
|
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
2626
2626
|
var that = toString$9(requireObjectCoercible$5(this));
|
|
2627
2627
|
notARegExp$2(searchString);
|
|
@@ -2658,10 +2658,10 @@ var createProperty$2 = function (object, key, value) {
|
|
|
2658
2658
|
else object[key] = value;
|
|
2659
2659
|
};
|
|
2660
2660
|
|
|
2661
|
-
var $$
|
|
2661
|
+
var $$x = _export;
|
|
2662
2662
|
var global$b = global$q;
|
|
2663
2663
|
var anInstance$1 = anInstance$2;
|
|
2664
|
-
var anObject$
|
|
2664
|
+
var anObject$i = anObject$s;
|
|
2665
2665
|
var isCallable$8 = isCallable$r;
|
|
2666
2666
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
2667
2667
|
var defineBuiltInAccessor$3 = defineBuiltInAccessor$4;
|
|
@@ -2698,7 +2698,7 @@ var defineIteratorPrototypeAccessor = function (key, value) {
|
|
|
2698
2698
|
return value;
|
|
2699
2699
|
},
|
|
2700
2700
|
set: function (replacement) {
|
|
2701
|
-
anObject$
|
|
2701
|
+
anObject$i(this);
|
|
2702
2702
|
if (this === IteratorPrototype$1) throw new $TypeError$b("You can't redefine this property");
|
|
2703
2703
|
if (hasOwn$3(this, key)) this[key] = replacement;
|
|
2704
2704
|
else createProperty$1(this, key, replacement);
|
|
@@ -2717,19 +2717,19 @@ IteratorConstructor.prototype = IteratorPrototype$1;
|
|
|
2717
2717
|
|
|
2718
2718
|
// `Iterator` constructor
|
|
2719
2719
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
2720
|
-
$$
|
|
2720
|
+
$$x({ global: true, constructor: true, forced: FORCED$3 }, {
|
|
2721
2721
|
Iterator: IteratorConstructor
|
|
2722
2722
|
});
|
|
2723
2723
|
|
|
2724
2724
|
var uncurryThis$d = functionUncurryThisClause;
|
|
2725
|
-
var aCallable$
|
|
2725
|
+
var aCallable$g = aCallable$j;
|
|
2726
2726
|
var NATIVE_BIND = functionBindNative;
|
|
2727
2727
|
|
|
2728
2728
|
var bind$5 = uncurryThis$d(uncurryThis$d.bind);
|
|
2729
2729
|
|
|
2730
2730
|
// optional / simple context binding
|
|
2731
2731
|
var functionBindContext = function (fn, that) {
|
|
2732
|
-
aCallable$
|
|
2732
|
+
aCallable$g(fn);
|
|
2733
2733
|
return that === undefined ? fn : NATIVE_BIND ? bind$5(fn, that) : function (/* ...args */) {
|
|
2734
2734
|
return fn.apply(that, arguments);
|
|
2735
2735
|
};
|
|
@@ -2754,60 +2754,60 @@ var wellKnownSymbol$7 = wellKnownSymbol$m;
|
|
|
2754
2754
|
|
|
2755
2755
|
var ITERATOR$2 = wellKnownSymbol$7('iterator');
|
|
2756
2756
|
|
|
2757
|
-
var getIteratorMethod$
|
|
2757
|
+
var getIteratorMethod$3 = function (it) {
|
|
2758
2758
|
if (!isNullOrUndefined$3(it)) return getMethod$4(it, ITERATOR$2)
|
|
2759
2759
|
|| getMethod$4(it, '@@iterator')
|
|
2760
2760
|
|| Iterators[classof$5(it)];
|
|
2761
2761
|
};
|
|
2762
2762
|
|
|
2763
|
-
var call$
|
|
2764
|
-
var aCallable$
|
|
2765
|
-
var anObject$
|
|
2763
|
+
var call$f = functionCall;
|
|
2764
|
+
var aCallable$f = aCallable$j;
|
|
2765
|
+
var anObject$h = anObject$s;
|
|
2766
2766
|
var tryToString$2 = tryToString$4;
|
|
2767
|
-
var getIteratorMethod$
|
|
2767
|
+
var getIteratorMethod$2 = getIteratorMethod$3;
|
|
2768
2768
|
|
|
2769
2769
|
var $TypeError$a = TypeError;
|
|
2770
2770
|
|
|
2771
2771
|
var getIterator$1 = function (argument, usingIterator) {
|
|
2772
|
-
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$
|
|
2773
|
-
if (aCallable$
|
|
2772
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
|
|
2773
|
+
if (aCallable$f(iteratorMethod)) return anObject$h(call$f(iteratorMethod, argument));
|
|
2774
2774
|
throw new $TypeError$a(tryToString$2(argument) + ' is not iterable');
|
|
2775
2775
|
};
|
|
2776
2776
|
|
|
2777
|
-
var call$
|
|
2778
|
-
var anObject$
|
|
2777
|
+
var call$e = functionCall;
|
|
2778
|
+
var anObject$g = anObject$s;
|
|
2779
2779
|
var getMethod$3 = getMethod$7;
|
|
2780
2780
|
|
|
2781
|
-
var iteratorClose$
|
|
2781
|
+
var iteratorClose$6 = function (iterator, kind, value) {
|
|
2782
2782
|
var innerResult, innerError;
|
|
2783
|
-
anObject$
|
|
2783
|
+
anObject$g(iterator);
|
|
2784
2784
|
try {
|
|
2785
2785
|
innerResult = getMethod$3(iterator, 'return');
|
|
2786
2786
|
if (!innerResult) {
|
|
2787
2787
|
if (kind === 'throw') throw value;
|
|
2788
2788
|
return value;
|
|
2789
2789
|
}
|
|
2790
|
-
innerResult = call$
|
|
2790
|
+
innerResult = call$e(innerResult, iterator);
|
|
2791
2791
|
} catch (error) {
|
|
2792
2792
|
innerError = true;
|
|
2793
2793
|
innerResult = error;
|
|
2794
2794
|
}
|
|
2795
2795
|
if (kind === 'throw') throw value;
|
|
2796
2796
|
if (innerError) throw innerResult;
|
|
2797
|
-
anObject$
|
|
2797
|
+
anObject$g(innerResult);
|
|
2798
2798
|
return value;
|
|
2799
2799
|
};
|
|
2800
2800
|
|
|
2801
2801
|
var bind$4 = functionBindContext;
|
|
2802
|
-
var call$
|
|
2803
|
-
var anObject$
|
|
2802
|
+
var call$d = functionCall;
|
|
2803
|
+
var anObject$f = anObject$s;
|
|
2804
2804
|
var tryToString$1 = tryToString$4;
|
|
2805
2805
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
2806
|
-
var lengthOfArrayLike$
|
|
2806
|
+
var lengthOfArrayLike$5 = lengthOfArrayLike$8;
|
|
2807
2807
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
2808
2808
|
var getIterator = getIterator$1;
|
|
2809
|
-
var getIteratorMethod = getIteratorMethod$
|
|
2810
|
-
var iteratorClose$
|
|
2809
|
+
var getIteratorMethod$1 = getIteratorMethod$3;
|
|
2810
|
+
var iteratorClose$5 = iteratorClose$6;
|
|
2811
2811
|
|
|
2812
2812
|
var $TypeError$9 = TypeError;
|
|
2813
2813
|
|
|
@@ -2828,13 +2828,13 @@ var iterate$a = function (iterable, unboundFunction, options) {
|
|
|
2828
2828
|
var iterator, iterFn, index, length, result, next, step;
|
|
2829
2829
|
|
|
2830
2830
|
var stop = function (condition) {
|
|
2831
|
-
if (iterator) iteratorClose$
|
|
2831
|
+
if (iterator) iteratorClose$5(iterator, 'normal', condition);
|
|
2832
2832
|
return new Result(true, condition);
|
|
2833
2833
|
};
|
|
2834
2834
|
|
|
2835
2835
|
var callFn = function (value) {
|
|
2836
2836
|
if (AS_ENTRIES) {
|
|
2837
|
-
anObject$
|
|
2837
|
+
anObject$f(value);
|
|
2838
2838
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2839
2839
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2840
2840
|
};
|
|
@@ -2844,11 +2844,11 @@ var iterate$a = function (iterable, unboundFunction, options) {
|
|
|
2844
2844
|
} else if (IS_ITERATOR) {
|
|
2845
2845
|
iterator = iterable;
|
|
2846
2846
|
} else {
|
|
2847
|
-
iterFn = getIteratorMethod(iterable);
|
|
2847
|
+
iterFn = getIteratorMethod$1(iterable);
|
|
2848
2848
|
if (!iterFn) throw new $TypeError$9(tryToString$1(iterable) + ' is not iterable');
|
|
2849
2849
|
// optimisation for array iterators
|
|
2850
2850
|
if (isArrayIteratorMethod(iterFn)) {
|
|
2851
|
-
for (index = 0, length = lengthOfArrayLike$
|
|
2851
|
+
for (index = 0, length = lengthOfArrayLike$5(iterable); length > index; index++) {
|
|
2852
2852
|
result = callFn(iterable[index]);
|
|
2853
2853
|
if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
|
|
2854
2854
|
} return new Result(false);
|
|
@@ -2857,11 +2857,11 @@ var iterate$a = function (iterable, unboundFunction, options) {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
|
|
2859
2859
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2860
|
-
while (!(step = call$
|
|
2860
|
+
while (!(step = call$d(next, iterator)).done) {
|
|
2861
2861
|
try {
|
|
2862
2862
|
result = callFn(step.value);
|
|
2863
2863
|
} catch (error) {
|
|
2864
|
-
iteratorClose$
|
|
2864
|
+
iteratorClose$5(iterator, 'throw', error);
|
|
2865
2865
|
}
|
|
2866
2866
|
if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
|
|
2867
2867
|
} return new Result(false);
|
|
@@ -2869,7 +2869,7 @@ var iterate$a = function (iterable, unboundFunction, options) {
|
|
|
2869
2869
|
|
|
2870
2870
|
// `GetIteratorDirect(obj)` abstract operation
|
|
2871
2871
|
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
2872
|
-
var getIteratorDirect$
|
|
2872
|
+
var getIteratorDirect$a = function (obj) {
|
|
2873
2873
|
return {
|
|
2874
2874
|
iterator: obj,
|
|
2875
2875
|
next: obj.next,
|
|
@@ -2877,19 +2877,19 @@ var getIteratorDirect$8 = function (obj) {
|
|
|
2877
2877
|
};
|
|
2878
2878
|
};
|
|
2879
2879
|
|
|
2880
|
-
var $$
|
|
2880
|
+
var $$w = _export;
|
|
2881
2881
|
var iterate$9 = iterate$a;
|
|
2882
|
-
var aCallable$
|
|
2883
|
-
var anObject$
|
|
2884
|
-
var getIteratorDirect$
|
|
2882
|
+
var aCallable$e = aCallable$j;
|
|
2883
|
+
var anObject$e = anObject$s;
|
|
2884
|
+
var getIteratorDirect$9 = getIteratorDirect$a;
|
|
2885
2885
|
|
|
2886
2886
|
// `Iterator.prototype.find` method
|
|
2887
2887
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
2888
|
-
$$
|
|
2888
|
+
$$w({ target: 'Iterator', proto: true, real: true }, {
|
|
2889
2889
|
find: function find(predicate) {
|
|
2890
|
-
anObject$
|
|
2891
|
-
aCallable$
|
|
2892
|
-
var record = getIteratorDirect$
|
|
2890
|
+
anObject$e(this);
|
|
2891
|
+
aCallable$e(predicate);
|
|
2892
|
+
var record = getIteratorDirect$9(this);
|
|
2893
2893
|
var counter = 0;
|
|
2894
2894
|
return iterate$9(record, function (value, stop) {
|
|
2895
2895
|
if (predicate(value, counter++)) return stop(value);
|
|
@@ -2897,19 +2897,19 @@ $$u({ target: 'Iterator', proto: true, real: true }, {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
});
|
|
2899
2899
|
|
|
2900
|
-
var $$
|
|
2900
|
+
var $$v = _export;
|
|
2901
2901
|
var iterate$8 = iterate$a;
|
|
2902
|
-
var aCallable$
|
|
2903
|
-
var anObject$
|
|
2904
|
-
var getIteratorDirect$
|
|
2902
|
+
var aCallable$d = aCallable$j;
|
|
2903
|
+
var anObject$d = anObject$s;
|
|
2904
|
+
var getIteratorDirect$8 = getIteratorDirect$a;
|
|
2905
2905
|
|
|
2906
2906
|
// `Iterator.prototype.forEach` method
|
|
2907
2907
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
2908
|
-
$$
|
|
2908
|
+
$$v({ target: 'Iterator', proto: true, real: true }, {
|
|
2909
2909
|
forEach: function forEach(fn) {
|
|
2910
|
-
anObject$
|
|
2911
|
-
aCallable$
|
|
2912
|
-
var record = getIteratorDirect$
|
|
2910
|
+
anObject$d(this);
|
|
2911
|
+
aCallable$d(fn);
|
|
2912
|
+
var record = getIteratorDirect$8(this);
|
|
2913
2913
|
var counter = 0;
|
|
2914
2914
|
iterate$8(record, function (value) {
|
|
2915
2915
|
fn(value, counter++);
|
|
@@ -2924,7 +2924,7 @@ var defineBuiltIns$1 = function (target, src, options) {
|
|
|
2924
2924
|
return target;
|
|
2925
2925
|
};
|
|
2926
2926
|
|
|
2927
|
-
var call$
|
|
2927
|
+
var call$c = functionCall;
|
|
2928
2928
|
var create$1 = objectCreate;
|
|
2929
2929
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$a;
|
|
2930
2930
|
var defineBuiltIns = defineBuiltIns$1;
|
|
@@ -2933,7 +2933,7 @@ var InternalStateModule$1 = internalState;
|
|
|
2933
2933
|
var getMethod$2 = getMethod$7;
|
|
2934
2934
|
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
2935
2935
|
var createIterResultObject = createIterResultObject$2;
|
|
2936
|
-
var iteratorClose$
|
|
2936
|
+
var iteratorClose$4 = iteratorClose$6;
|
|
2937
2937
|
|
|
2938
2938
|
var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
|
|
2939
2939
|
var ITERATOR_HELPER = 'IteratorHelper';
|
|
@@ -2964,14 +2964,14 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
2964
2964
|
state.done = true;
|
|
2965
2965
|
if (IS_ITERATOR) {
|
|
2966
2966
|
var returnMethod = getMethod$2(iterator, 'return');
|
|
2967
|
-
return returnMethod ? call$
|
|
2967
|
+
return returnMethod ? call$c(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
2968
2968
|
}
|
|
2969
2969
|
if (state.inner) try {
|
|
2970
|
-
iteratorClose$
|
|
2970
|
+
iteratorClose$4(state.inner.iterator, 'normal');
|
|
2971
2971
|
} catch (error) {
|
|
2972
|
-
return iteratorClose$
|
|
2972
|
+
return iteratorClose$4(iterator, 'throw', error);
|
|
2973
2973
|
}
|
|
2974
|
-
iteratorClose$
|
|
2974
|
+
iteratorClose$4(iterator, 'normal');
|
|
2975
2975
|
return createIterResultObject(undefined, true);
|
|
2976
2976
|
}
|
|
2977
2977
|
});
|
|
@@ -3000,28 +3000,28 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
|
3000
3000
|
return IteratorProxy;
|
|
3001
3001
|
};
|
|
3002
3002
|
|
|
3003
|
-
var anObject$
|
|
3004
|
-
var iteratorClose$
|
|
3003
|
+
var anObject$c = anObject$s;
|
|
3004
|
+
var iteratorClose$3 = iteratorClose$6;
|
|
3005
3005
|
|
|
3006
3006
|
// call something on iterator step with safe closing on error
|
|
3007
3007
|
var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
|
|
3008
3008
|
try {
|
|
3009
|
-
return ENTRIES ? fn(anObject$
|
|
3009
|
+
return ENTRIES ? fn(anObject$c(value)[0], value[1]) : fn(value);
|
|
3010
3010
|
} catch (error) {
|
|
3011
|
-
iteratorClose$
|
|
3011
|
+
iteratorClose$3(iterator, 'throw', error);
|
|
3012
3012
|
}
|
|
3013
3013
|
};
|
|
3014
3014
|
|
|
3015
|
-
var call$
|
|
3016
|
-
var aCallable$
|
|
3017
|
-
var anObject$
|
|
3018
|
-
var getIteratorDirect$
|
|
3019
|
-
var createIteratorProxy$
|
|
3015
|
+
var call$b = functionCall;
|
|
3016
|
+
var aCallable$c = aCallable$j;
|
|
3017
|
+
var anObject$b = anObject$s;
|
|
3018
|
+
var getIteratorDirect$7 = getIteratorDirect$a;
|
|
3019
|
+
var createIteratorProxy$2 = iteratorCreateProxy;
|
|
3020
3020
|
var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
|
|
3021
3021
|
|
|
3022
|
-
var IteratorProxy$
|
|
3022
|
+
var IteratorProxy$2 = createIteratorProxy$2(function () {
|
|
3023
3023
|
var iterator = this.iterator;
|
|
3024
|
-
var result = anObject$
|
|
3024
|
+
var result = anObject$b(call$b(this.next, iterator));
|
|
3025
3025
|
var done = this.done = !!result.done;
|
|
3026
3026
|
if (!done) return callWithSafeIterationClosing$1(iterator, this.mapper, [result.value, this.counter++], true);
|
|
3027
3027
|
});
|
|
@@ -3029,20 +3029,20 @@ var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
|
3029
3029
|
// `Iterator.prototype.map` method
|
|
3030
3030
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
3031
3031
|
var iteratorMap = function map(mapper) {
|
|
3032
|
-
anObject$
|
|
3033
|
-
aCallable$
|
|
3034
|
-
return new IteratorProxy$
|
|
3032
|
+
anObject$b(this);
|
|
3033
|
+
aCallable$c(mapper);
|
|
3034
|
+
return new IteratorProxy$2(getIteratorDirect$7(this), {
|
|
3035
3035
|
mapper: mapper
|
|
3036
3036
|
});
|
|
3037
3037
|
};
|
|
3038
3038
|
|
|
3039
|
-
var $$
|
|
3039
|
+
var $$u = _export;
|
|
3040
3040
|
var map = iteratorMap;
|
|
3041
|
-
var IS_PURE$
|
|
3041
|
+
var IS_PURE$2 = isPure;
|
|
3042
3042
|
|
|
3043
3043
|
// `Iterator.prototype.map` method
|
|
3044
3044
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
3045
|
-
$$
|
|
3045
|
+
$$u({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
|
|
3046
3046
|
map: map
|
|
3047
3047
|
});
|
|
3048
3048
|
|
|
@@ -3254,22 +3254,22 @@ const convertToSentenceCase = input => {
|
|
|
3254
3254
|
return firstWord.concat(newWords).join(' ');
|
|
3255
3255
|
};
|
|
3256
3256
|
|
|
3257
|
-
var $$
|
|
3258
|
-
var call$
|
|
3259
|
-
var aCallable$
|
|
3260
|
-
var anObject$
|
|
3261
|
-
var getIteratorDirect$
|
|
3262
|
-
var createIteratorProxy = iteratorCreateProxy;
|
|
3257
|
+
var $$t = _export;
|
|
3258
|
+
var call$a = functionCall;
|
|
3259
|
+
var aCallable$b = aCallable$j;
|
|
3260
|
+
var anObject$a = anObject$s;
|
|
3261
|
+
var getIteratorDirect$6 = getIteratorDirect$a;
|
|
3262
|
+
var createIteratorProxy$1 = iteratorCreateProxy;
|
|
3263
3263
|
var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
|
|
3264
|
-
var IS_PURE = isPure;
|
|
3264
|
+
var IS_PURE$1 = isPure;
|
|
3265
3265
|
|
|
3266
|
-
var IteratorProxy = createIteratorProxy(function () {
|
|
3266
|
+
var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
3267
3267
|
var iterator = this.iterator;
|
|
3268
3268
|
var predicate = this.predicate;
|
|
3269
3269
|
var next = this.next;
|
|
3270
3270
|
var result, done, value;
|
|
3271
3271
|
while (true) {
|
|
3272
|
-
result = anObject$
|
|
3272
|
+
result = anObject$a(call$a(next, iterator));
|
|
3273
3273
|
done = this.done = !!result.done;
|
|
3274
3274
|
if (done) return;
|
|
3275
3275
|
value = result.value;
|
|
@@ -3279,11 +3279,11 @@ var IteratorProxy = createIteratorProxy(function () {
|
|
|
3279
3279
|
|
|
3280
3280
|
// `Iterator.prototype.filter` method
|
|
3281
3281
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
3282
|
-
$$
|
|
3282
|
+
$$t({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
3283
3283
|
filter: function filter(predicate) {
|
|
3284
|
-
anObject$
|
|
3285
|
-
aCallable$
|
|
3286
|
-
return new IteratorProxy(getIteratorDirect$
|
|
3284
|
+
anObject$a(this);
|
|
3285
|
+
aCallable$b(predicate);
|
|
3286
|
+
return new IteratorProxy$1(getIteratorDirect$6(this), {
|
|
3287
3287
|
predicate: predicate
|
|
3288
3288
|
});
|
|
3289
3289
|
}
|
|
@@ -3607,9 +3607,9 @@ var doesNotExceedSafeInteger$2 = function (it) {
|
|
|
3607
3607
|
return it;
|
|
3608
3608
|
};
|
|
3609
3609
|
|
|
3610
|
-
var $$
|
|
3611
|
-
var toObject$
|
|
3612
|
-
var lengthOfArrayLike$
|
|
3610
|
+
var $$s = _export;
|
|
3611
|
+
var toObject$3 = toObject$9;
|
|
3612
|
+
var lengthOfArrayLike$4 = lengthOfArrayLike$8;
|
|
3613
3613
|
var setArrayLength = arraySetLength;
|
|
3614
3614
|
var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
|
|
3615
3615
|
var fails$a = fails$v;
|
|
@@ -3633,11 +3633,11 @@ var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
|
3633
3633
|
|
|
3634
3634
|
// `Array.prototype.push` method
|
|
3635
3635
|
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
3636
|
-
$$
|
|
3636
|
+
$$s({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
|
|
3637
3637
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3638
3638
|
push: function push(item) {
|
|
3639
|
-
var O = toObject$
|
|
3640
|
-
var len = lengthOfArrayLike$
|
|
3639
|
+
var O = toObject$3(this);
|
|
3640
|
+
var len = lengthOfArrayLike$4(O);
|
|
3641
3641
|
var argCount = arguments.length;
|
|
3642
3642
|
doesNotExceedSafeInteger$1(len + argCount);
|
|
3643
3643
|
for (var i = 0; i < argCount; i++) {
|
|
@@ -3684,10 +3684,10 @@ function registerReducer(state, action) {
|
|
|
3684
3684
|
return state;
|
|
3685
3685
|
}
|
|
3686
3686
|
|
|
3687
|
-
var $$
|
|
3687
|
+
var $$r = _export;
|
|
3688
3688
|
var $includes = arrayIncludes.includes;
|
|
3689
3689
|
var fails$9 = fails$v;
|
|
3690
|
-
var addToUnscopables$
|
|
3690
|
+
var addToUnscopables$2 = addToUnscopables$5;
|
|
3691
3691
|
|
|
3692
3692
|
// FF99+ bug
|
|
3693
3693
|
var BROKEN_ON_SPARSE = fails$9(function () {
|
|
@@ -3697,14 +3697,14 @@ var BROKEN_ON_SPARSE = fails$9(function () {
|
|
|
3697
3697
|
|
|
3698
3698
|
// `Array.prototype.includes` method
|
|
3699
3699
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
3700
|
-
$$
|
|
3700
|
+
$$r({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
3701
3701
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
3702
3702
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
3703
3703
|
}
|
|
3704
3704
|
});
|
|
3705
3705
|
|
|
3706
3706
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
3707
|
-
addToUnscopables$
|
|
3707
|
+
addToUnscopables$2('includes');
|
|
3708
3708
|
|
|
3709
3709
|
var uncurryThis$c = functionUncurryThis;
|
|
3710
3710
|
|
|
@@ -3740,10 +3740,10 @@ var getJsonReplacerFunction = function (replacer) {
|
|
|
3740
3740
|
};
|
|
3741
3741
|
};
|
|
3742
3742
|
|
|
3743
|
-
var $$
|
|
3743
|
+
var $$q = _export;
|
|
3744
3744
|
var getBuiltIn$5 = getBuiltIn$a;
|
|
3745
3745
|
var apply$1 = functionApply;
|
|
3746
|
-
var call$
|
|
3746
|
+
var call$9 = functionCall;
|
|
3747
3747
|
var uncurryThis$a = functionUncurryThis;
|
|
3748
3748
|
var fails$8 = fails$v;
|
|
3749
3749
|
var isCallable$6 = isCallable$r;
|
|
@@ -3786,7 +3786,7 @@ var stringifyWithSymbolsFix = function (it, replacer) {
|
|
|
3786
3786
|
if (!isCallable$6($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
|
|
3787
3787
|
args[1] = function (key, value) {
|
|
3788
3788
|
// some old implementations (like WebKit) could pass numbers as keys
|
|
3789
|
-
if (isCallable$6($replacer)) value = call$
|
|
3789
|
+
if (isCallable$6($replacer)) value = call$9($replacer, this, $String(key), value);
|
|
3790
3790
|
if (!isSymbol(value)) return value;
|
|
3791
3791
|
};
|
|
3792
3792
|
return apply$1($stringify, null, args);
|
|
@@ -3803,7 +3803,7 @@ var fixIllFormed = function (match, offset, string) {
|
|
|
3803
3803
|
if ($stringify) {
|
|
3804
3804
|
// `JSON.stringify` method
|
|
3805
3805
|
// https://tc39.es/ecma262/#sec-json.stringify
|
|
3806
|
-
$$
|
|
3806
|
+
$$q({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
3807
3807
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3808
3808
|
stringify: function stringify(it, replacer, space) {
|
|
3809
3809
|
var args = arraySlice$1(arguments);
|
|
@@ -3899,7 +3899,7 @@ var aConstructor$1 = function (argument) {
|
|
|
3899
3899
|
throw new $TypeError$6(tryToString(argument) + ' is not a constructor');
|
|
3900
3900
|
};
|
|
3901
3901
|
|
|
3902
|
-
var anObject$
|
|
3902
|
+
var anObject$9 = anObject$s;
|
|
3903
3903
|
var aConstructor = aConstructor$1;
|
|
3904
3904
|
var isNullOrUndefined$2 = isNullOrUndefined$7;
|
|
3905
3905
|
var wellKnownSymbol$4 = wellKnownSymbol$m;
|
|
@@ -3909,9 +3909,9 @@ var SPECIES$2 = wellKnownSymbol$4('species');
|
|
|
3909
3909
|
// `SpeciesConstructor` abstract operation
|
|
3910
3910
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
3911
3911
|
var speciesConstructor$2 = function (O, defaultConstructor) {
|
|
3912
|
-
var C = anObject$
|
|
3912
|
+
var C = anObject$9(O).constructor;
|
|
3913
3913
|
var S;
|
|
3914
|
-
return C === undefined || isNullOrUndefined$2(S = anObject$
|
|
3914
|
+
return C === undefined || isNullOrUndefined$2(S = anObject$9(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
|
|
3915
3915
|
};
|
|
3916
3916
|
|
|
3917
3917
|
var $TypeError$5 = TypeError;
|
|
@@ -4242,7 +4242,7 @@ var promiseConstructorDetection = {
|
|
|
4242
4242
|
|
|
4243
4243
|
var newPromiseCapability$2 = {};
|
|
4244
4244
|
|
|
4245
|
-
var aCallable$
|
|
4245
|
+
var aCallable$a = aCallable$j;
|
|
4246
4246
|
|
|
4247
4247
|
var $TypeError$4 = TypeError;
|
|
4248
4248
|
|
|
@@ -4253,8 +4253,8 @@ var PromiseCapability = function (C) {
|
|
|
4253
4253
|
resolve = $$resolve;
|
|
4254
4254
|
reject = $$reject;
|
|
4255
4255
|
});
|
|
4256
|
-
this.resolve = aCallable$
|
|
4257
|
-
this.reject = aCallable$
|
|
4256
|
+
this.resolve = aCallable$a(resolve);
|
|
4257
|
+
this.reject = aCallable$a(reject);
|
|
4258
4258
|
};
|
|
4259
4259
|
|
|
4260
4260
|
// `NewPromiseCapability` abstract operation
|
|
@@ -4263,15 +4263,15 @@ newPromiseCapability$2.f = function (C) {
|
|
|
4263
4263
|
return new PromiseCapability(C);
|
|
4264
4264
|
};
|
|
4265
4265
|
|
|
4266
|
-
var $$
|
|
4266
|
+
var $$p = _export;
|
|
4267
4267
|
var IS_NODE$1 = engineIsNode;
|
|
4268
4268
|
var global$4 = global$q;
|
|
4269
|
-
var call$
|
|
4269
|
+
var call$8 = functionCall;
|
|
4270
4270
|
var defineBuiltIn$2 = defineBuiltIn$9;
|
|
4271
4271
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
4272
4272
|
var setToStringTag = setToStringTag$4;
|
|
4273
4273
|
var setSpecies$1 = setSpecies$2;
|
|
4274
|
-
var aCallable$
|
|
4274
|
+
var aCallable$9 = aCallable$j;
|
|
4275
4275
|
var isCallable$2 = isCallable$r;
|
|
4276
4276
|
var isObject$2 = isObject$e;
|
|
4277
4277
|
var anInstance = anInstance$2;
|
|
@@ -4344,7 +4344,7 @@ var callReaction = function (reaction, state) {
|
|
|
4344
4344
|
if (result === reaction.promise) {
|
|
4345
4345
|
reject(new TypeError$1('Promise-chain cycle'));
|
|
4346
4346
|
} else if (then = isThenable(result)) {
|
|
4347
|
-
call$
|
|
4347
|
+
call$8(then, result, resolve, reject);
|
|
4348
4348
|
} else resolve(result);
|
|
4349
4349
|
} else reject(value);
|
|
4350
4350
|
} catch (error) {
|
|
@@ -4381,7 +4381,7 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
4381
4381
|
};
|
|
4382
4382
|
|
|
4383
4383
|
var onUnhandled = function (state) {
|
|
4384
|
-
call$
|
|
4384
|
+
call$8(task, global$4, function () {
|
|
4385
4385
|
var promise = state.facade;
|
|
4386
4386
|
var value = state.value;
|
|
4387
4387
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -4404,7 +4404,7 @@ var isUnhandled = function (state) {
|
|
|
4404
4404
|
};
|
|
4405
4405
|
|
|
4406
4406
|
var onHandleUnhandled = function (state) {
|
|
4407
|
-
call$
|
|
4407
|
+
call$8(task, global$4, function () {
|
|
4408
4408
|
var promise = state.facade;
|
|
4409
4409
|
if (IS_NODE$1) {
|
|
4410
4410
|
process.emit('rejectionHandled', promise);
|
|
@@ -4438,7 +4438,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
4438
4438
|
microtask(function () {
|
|
4439
4439
|
var wrapper = { done: false };
|
|
4440
4440
|
try {
|
|
4441
|
-
call$
|
|
4441
|
+
call$8(then, value,
|
|
4442
4442
|
bind$1(internalResolve, wrapper, state),
|
|
4443
4443
|
bind$1(internalReject, wrapper, state)
|
|
4444
4444
|
);
|
|
@@ -4461,8 +4461,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
4461
4461
|
// 25.4.3.1 Promise(executor)
|
|
4462
4462
|
PromiseConstructor = function Promise(executor) {
|
|
4463
4463
|
anInstance(this, PromisePrototype);
|
|
4464
|
-
aCallable$
|
|
4465
|
-
call$
|
|
4464
|
+
aCallable$9(executor);
|
|
4465
|
+
call$8(Internal, this);
|
|
4466
4466
|
var state = getInternalPromiseState(this);
|
|
4467
4467
|
try {
|
|
4468
4468
|
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
|
@@ -4525,7 +4525,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
4525
4525
|
defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
4526
4526
|
var that = this;
|
|
4527
4527
|
return new PromiseConstructor(function (resolve, reject) {
|
|
4528
|
-
call$
|
|
4528
|
+
call$8(nativeThen, that, resolve, reject);
|
|
4529
4529
|
}).then(onFulfilled, onRejected);
|
|
4530
4530
|
// https://github.com/zloirock/core-js/issues/640
|
|
4531
4531
|
}, { unsafe: true });
|
|
@@ -4543,7 +4543,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
4543
4543
|
}
|
|
4544
4544
|
}
|
|
4545
4545
|
|
|
4546
|
-
$$
|
|
4546
|
+
$$p({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
4547
4547
|
Promise: PromiseConstructor
|
|
4548
4548
|
});
|
|
4549
4549
|
|
|
@@ -4599,9 +4599,9 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
4599
4599
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
4600
4600
|
});
|
|
4601
4601
|
|
|
4602
|
-
var $$
|
|
4603
|
-
var call$
|
|
4604
|
-
var aCallable$
|
|
4602
|
+
var $$o = _export;
|
|
4603
|
+
var call$7 = functionCall;
|
|
4604
|
+
var aCallable$8 = aCallable$j;
|
|
4605
4605
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
4606
4606
|
var perform$1 = perform$3;
|
|
4607
4607
|
var iterate$7 = iterate$a;
|
|
@@ -4609,14 +4609,14 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
4609
4609
|
|
|
4610
4610
|
// `Promise.all` method
|
|
4611
4611
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
4612
|
-
$$
|
|
4612
|
+
$$o({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
4613
4613
|
all: function all(iterable) {
|
|
4614
4614
|
var C = this;
|
|
4615
4615
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
4616
4616
|
var resolve = capability.resolve;
|
|
4617
4617
|
var reject = capability.reject;
|
|
4618
4618
|
var result = perform$1(function () {
|
|
4619
|
-
var $promiseResolve = aCallable$
|
|
4619
|
+
var $promiseResolve = aCallable$8(C.resolve);
|
|
4620
4620
|
var values = [];
|
|
4621
4621
|
var counter = 0;
|
|
4622
4622
|
var remaining = 1;
|
|
@@ -4624,7 +4624,7 @@ $$m({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
4624
4624
|
var index = counter++;
|
|
4625
4625
|
var alreadyCalled = false;
|
|
4626
4626
|
remaining++;
|
|
4627
|
-
call$
|
|
4627
|
+
call$7($promiseResolve, C, promise).then(function (value) {
|
|
4628
4628
|
if (alreadyCalled) return;
|
|
4629
4629
|
alreadyCalled = true;
|
|
4630
4630
|
values[index] = value;
|
|
@@ -4638,7 +4638,7 @@ $$m({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
4638
4638
|
}
|
|
4639
4639
|
});
|
|
4640
4640
|
|
|
4641
|
-
var $$
|
|
4641
|
+
var $$n = _export;
|
|
4642
4642
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
4643
4643
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
4644
4644
|
var getBuiltIn$2 = getBuiltIn$a;
|
|
@@ -4649,7 +4649,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
|
|
|
4649
4649
|
|
|
4650
4650
|
// `Promise.prototype.catch` method
|
|
4651
4651
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
4652
|
-
$$
|
|
4652
|
+
$$n({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
4653
4653
|
'catch': function (onRejected) {
|
|
4654
4654
|
return this.then(undefined, onRejected);
|
|
4655
4655
|
}
|
|
@@ -4663,9 +4663,9 @@ if (isCallable$1(NativePromiseConstructor)) {
|
|
|
4663
4663
|
}
|
|
4664
4664
|
}
|
|
4665
4665
|
|
|
4666
|
-
var $$
|
|
4667
|
-
var call$
|
|
4668
|
-
var aCallable$
|
|
4666
|
+
var $$m = _export;
|
|
4667
|
+
var call$6 = functionCall;
|
|
4668
|
+
var aCallable$7 = aCallable$j;
|
|
4669
4669
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
4670
4670
|
var perform = perform$3;
|
|
4671
4671
|
var iterate$6 = iterate$a;
|
|
@@ -4673,15 +4673,15 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
4673
4673
|
|
|
4674
4674
|
// `Promise.race` method
|
|
4675
4675
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
4676
|
-
$$
|
|
4676
|
+
$$m({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
4677
4677
|
race: function race(iterable) {
|
|
4678
4678
|
var C = this;
|
|
4679
4679
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
4680
4680
|
var reject = capability.reject;
|
|
4681
4681
|
var result = perform(function () {
|
|
4682
|
-
var $promiseResolve = aCallable$
|
|
4682
|
+
var $promiseResolve = aCallable$7(C.resolve);
|
|
4683
4683
|
iterate$6(iterable, function (promise) {
|
|
4684
|
-
call$
|
|
4684
|
+
call$6($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
4685
4685
|
});
|
|
4686
4686
|
});
|
|
4687
4687
|
if (result.error) reject(result.value);
|
|
@@ -4689,13 +4689,13 @@ $$k({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
4689
4689
|
}
|
|
4690
4690
|
});
|
|
4691
4691
|
|
|
4692
|
-
var $$
|
|
4692
|
+
var $$l = _export;
|
|
4693
4693
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
4694
4694
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
4695
4695
|
|
|
4696
4696
|
// `Promise.reject` method
|
|
4697
4697
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
4698
|
-
$$
|
|
4698
|
+
$$l({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
4699
4699
|
reject: function reject(r) {
|
|
4700
4700
|
var capability = newPromiseCapabilityModule.f(this);
|
|
4701
4701
|
var capabilityReject = capability.reject;
|
|
@@ -4704,12 +4704,12 @@ $$j({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
4704
4704
|
}
|
|
4705
4705
|
});
|
|
4706
4706
|
|
|
4707
|
-
var anObject$
|
|
4707
|
+
var anObject$8 = anObject$s;
|
|
4708
4708
|
var isObject$1 = isObject$e;
|
|
4709
4709
|
var newPromiseCapability = newPromiseCapability$2;
|
|
4710
4710
|
|
|
4711
4711
|
var promiseResolve$1 = function (C, x) {
|
|
4712
|
-
anObject$
|
|
4712
|
+
anObject$8(C);
|
|
4713
4713
|
if (isObject$1(x) && x.constructor === C) return x;
|
|
4714
4714
|
var promiseCapability = newPromiseCapability.f(C);
|
|
4715
4715
|
var resolve = promiseCapability.resolve;
|
|
@@ -4717,7 +4717,7 @@ var promiseResolve$1 = function (C, x) {
|
|
|
4717
4717
|
return promiseCapability.promise;
|
|
4718
4718
|
};
|
|
4719
4719
|
|
|
4720
|
-
var $$
|
|
4720
|
+
var $$k = _export;
|
|
4721
4721
|
var getBuiltIn$1 = getBuiltIn$a;
|
|
4722
4722
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
4723
4723
|
var promiseResolve = promiseResolve$1;
|
|
@@ -4726,13 +4726,13 @@ getBuiltIn$1('Promise');
|
|
|
4726
4726
|
|
|
4727
4727
|
// `Promise.resolve` method
|
|
4728
4728
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
4729
|
-
$$
|
|
4729
|
+
$$k({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
4730
4730
|
resolve: function resolve(x) {
|
|
4731
4731
|
return promiseResolve(this, x);
|
|
4732
4732
|
}
|
|
4733
4733
|
});
|
|
4734
4734
|
|
|
4735
|
-
var $$
|
|
4735
|
+
var $$j = _export;
|
|
4736
4736
|
var uncurryThis$8 = functionUncurryThis;
|
|
4737
4737
|
var notARegExp$1 = notARegexp;
|
|
4738
4738
|
var requireObjectCoercible$4 = requireObjectCoercible$c;
|
|
@@ -4743,7 +4743,7 @@ var stringIndexOf$1 = uncurryThis$8(''.indexOf);
|
|
|
4743
4743
|
|
|
4744
4744
|
// `String.prototype.includes` method
|
|
4745
4745
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
4746
|
-
$$
|
|
4746
|
+
$$j({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
|
|
4747
4747
|
includes: function includes(searchString /* , position = 0 */) {
|
|
4748
4748
|
return !!~stringIndexOf$1(
|
|
4749
4749
|
toString$7(requireObjectCoercible$4(this)),
|
|
@@ -4753,19 +4753,19 @@ $$h({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes')
|
|
|
4753
4753
|
}
|
|
4754
4754
|
});
|
|
4755
4755
|
|
|
4756
|
-
var $$
|
|
4756
|
+
var $$i = _export;
|
|
4757
4757
|
var iterate$5 = iterate$a;
|
|
4758
|
-
var aCallable$
|
|
4759
|
-
var anObject$
|
|
4760
|
-
var getIteratorDirect$
|
|
4758
|
+
var aCallable$6 = aCallable$j;
|
|
4759
|
+
var anObject$7 = anObject$s;
|
|
4760
|
+
var getIteratorDirect$5 = getIteratorDirect$a;
|
|
4761
4761
|
|
|
4762
4762
|
// `Iterator.prototype.some` method
|
|
4763
4763
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
4764
|
-
$$
|
|
4764
|
+
$$i({ target: 'Iterator', proto: true, real: true }, {
|
|
4765
4765
|
some: function some(predicate) {
|
|
4766
|
-
anObject$
|
|
4767
|
-
aCallable$
|
|
4768
|
-
var record = getIteratorDirect$
|
|
4766
|
+
anObject$7(this);
|
|
4767
|
+
aCallable$6(predicate);
|
|
4768
|
+
var record = getIteratorDirect$5(this);
|
|
4769
4769
|
var counter = 0;
|
|
4770
4770
|
return iterate$5(record, function (value, stop) {
|
|
4771
4771
|
if (predicate(value, counter++)) return stop();
|
|
@@ -5266,7 +5266,7 @@ const GoAInputBaseControl = props => {
|
|
|
5266
5266
|
});
|
|
5267
5267
|
};
|
|
5268
5268
|
|
|
5269
|
-
var $$
|
|
5269
|
+
var $$h = _export;
|
|
5270
5270
|
var DESCRIPTORS = descriptors;
|
|
5271
5271
|
var global$2 = global$q;
|
|
5272
5272
|
var uncurryThis$6 = functionUncurryThis;
|
|
@@ -5318,14 +5318,14 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy
|
|
|
5318
5318
|
}
|
|
5319
5319
|
});
|
|
5320
5320
|
|
|
5321
|
-
$$
|
|
5321
|
+
$$h({ global: true, constructor: true, forced: true }, {
|
|
5322
5322
|
Symbol: SymbolWrapper
|
|
5323
5323
|
});
|
|
5324
5324
|
}
|
|
5325
5325
|
|
|
5326
|
-
var call$
|
|
5326
|
+
var call$5 = functionCall;
|
|
5327
5327
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
5328
|
-
var anObject$
|
|
5328
|
+
var anObject$6 = anObject$s;
|
|
5329
5329
|
var isNullOrUndefined$1 = isNullOrUndefined$7;
|
|
5330
5330
|
var toLength$2 = toLength$6;
|
|
5331
5331
|
var toString$4 = toString$g;
|
|
@@ -5342,12 +5342,12 @@ fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCall
|
|
|
5342
5342
|
function match(regexp) {
|
|
5343
5343
|
var O = requireObjectCoercible$3(this);
|
|
5344
5344
|
var matcher = isNullOrUndefined$1(regexp) ? undefined : getMethod$1(regexp, MATCH);
|
|
5345
|
-
return matcher ? call$
|
|
5345
|
+
return matcher ? call$5(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$4(O));
|
|
5346
5346
|
},
|
|
5347
5347
|
// `RegExp.prototype[@@match]` method
|
|
5348
5348
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
5349
5349
|
function (string) {
|
|
5350
|
-
var rx = anObject$
|
|
5350
|
+
var rx = anObject$6(this);
|
|
5351
5351
|
var S = toString$4(string);
|
|
5352
5352
|
var res = maybeCallNative(nativeMatch, rx, S);
|
|
5353
5353
|
|
|
@@ -5416,13 +5416,13 @@ var stringTrimForced = function (METHOD_NAME) {
|
|
|
5416
5416
|
});
|
|
5417
5417
|
};
|
|
5418
5418
|
|
|
5419
|
-
var $$
|
|
5419
|
+
var $$g = _export;
|
|
5420
5420
|
var $trim = stringTrim.trim;
|
|
5421
5421
|
var forcedStringTrimMethod = stringTrimForced;
|
|
5422
5422
|
|
|
5423
5423
|
// `String.prototype.trim` method
|
|
5424
5424
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
5425
|
-
$$
|
|
5425
|
+
$$g({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
5426
5426
|
trim: function trim() {
|
|
5427
5427
|
return $trim(this);
|
|
5428
5428
|
}
|
|
@@ -6798,10 +6798,10 @@ const GoAInputBaseTableReview = props => {
|
|
|
6798
6798
|
};
|
|
6799
6799
|
const GoAInputBaseTableReviewControl = withJsonFormsControlProps(GoAInputBaseTableReview);
|
|
6800
6800
|
|
|
6801
|
-
var call$
|
|
6801
|
+
var call$4 = functionCall;
|
|
6802
6802
|
var uncurryThis$4 = functionUncurryThis;
|
|
6803
6803
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
6804
|
-
var anObject$
|
|
6804
|
+
var anObject$5 = anObject$s;
|
|
6805
6805
|
var isNullOrUndefined = isNullOrUndefined$7;
|
|
6806
6806
|
var requireObjectCoercible$1 = requireObjectCoercible$c;
|
|
6807
6807
|
var speciesConstructor = speciesConstructor$2;
|
|
@@ -6842,7 +6842,7 @@ var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
|
6842
6842
|
// @@split logic
|
|
6843
6843
|
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
6844
6844
|
var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
|
|
6845
|
-
return separator === undefined && limit === 0 ? [] : call$
|
|
6845
|
+
return separator === undefined && limit === 0 ? [] : call$4(nativeSplit, this, separator, limit);
|
|
6846
6846
|
} : nativeSplit;
|
|
6847
6847
|
|
|
6848
6848
|
return [
|
|
@@ -6852,8 +6852,8 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
|
|
|
6852
6852
|
var O = requireObjectCoercible$1(this);
|
|
6853
6853
|
var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT);
|
|
6854
6854
|
return splitter
|
|
6855
|
-
? call$
|
|
6856
|
-
: call$
|
|
6855
|
+
? call$4(splitter, separator, O, limit)
|
|
6856
|
+
: call$4(internalSplit, toString$2(O), separator, limit);
|
|
6857
6857
|
},
|
|
6858
6858
|
// `RegExp.prototype[@@split]` method
|
|
6859
6859
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -6861,7 +6861,7 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
|
|
|
6861
6861
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
6862
6862
|
// the 'y' flag.
|
|
6863
6863
|
function (string, limit) {
|
|
6864
|
-
var rx = anObject$
|
|
6864
|
+
var rx = anObject$5(this);
|
|
6865
6865
|
var S = toString$2(string);
|
|
6866
6866
|
|
|
6867
6867
|
if (!BUGGY) {
|
|
@@ -7449,13 +7449,13 @@ const RenderStepElements = props => {
|
|
|
7449
7449
|
};
|
|
7450
7450
|
|
|
7451
7451
|
var isArray$1 = isArray$4;
|
|
7452
|
-
var lengthOfArrayLike$
|
|
7452
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$8;
|
|
7453
7453
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
|
|
7454
7454
|
var bind = functionBindContext;
|
|
7455
7455
|
|
|
7456
7456
|
// `FlattenIntoArray` abstract operation
|
|
7457
7457
|
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
|
|
7458
|
-
var flattenIntoArray$
|
|
7458
|
+
var flattenIntoArray$2 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
|
|
7459
7459
|
var targetIndex = start;
|
|
7460
7460
|
var sourceIndex = 0;
|
|
7461
7461
|
var mapFn = mapper ? bind(mapper, thisArg) : false;
|
|
@@ -7466,8 +7466,8 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
|
|
|
7466
7466
|
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
|
|
7467
7467
|
|
|
7468
7468
|
if (depth > 0 && isArray$1(element)) {
|
|
7469
|
-
elementLen = lengthOfArrayLike$
|
|
7470
|
-
targetIndex = flattenIntoArray$
|
|
7469
|
+
elementLen = lengthOfArrayLike$3(element);
|
|
7470
|
+
targetIndex = flattenIntoArray$2(target, original, element, elementLen, targetIndex, depth - 1) - 1;
|
|
7471
7471
|
} else {
|
|
7472
7472
|
doesNotExceedSafeInteger(targetIndex + 1);
|
|
7473
7473
|
target[targetIndex] = element;
|
|
@@ -7480,7 +7480,7 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
|
|
|
7480
7480
|
return targetIndex;
|
|
7481
7481
|
};
|
|
7482
7482
|
|
|
7483
|
-
var flattenIntoArray_1 = flattenIntoArray$
|
|
7483
|
+
var flattenIntoArray_1 = flattenIntoArray$2;
|
|
7484
7484
|
|
|
7485
7485
|
var isArray = isArray$4;
|
|
7486
7486
|
var isConstructor = isConstructor$2;
|
|
@@ -7509,41 +7509,41 @@ var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
|
7509
7509
|
|
|
7510
7510
|
// `ArraySpeciesCreate` abstract operation
|
|
7511
7511
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
7512
|
-
var arraySpeciesCreate$
|
|
7512
|
+
var arraySpeciesCreate$2 = function (originalArray, length) {
|
|
7513
7513
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
7514
7514
|
};
|
|
7515
7515
|
|
|
7516
|
-
var $$
|
|
7517
|
-
var flattenIntoArray = flattenIntoArray_1;
|
|
7518
|
-
var toObject$
|
|
7519
|
-
var lengthOfArrayLike$
|
|
7516
|
+
var $$f = _export;
|
|
7517
|
+
var flattenIntoArray$1 = flattenIntoArray_1;
|
|
7518
|
+
var toObject$2 = toObject$9;
|
|
7519
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$8;
|
|
7520
7520
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$8;
|
|
7521
|
-
var arraySpeciesCreate = arraySpeciesCreate$
|
|
7521
|
+
var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
|
7522
7522
|
|
|
7523
7523
|
// `Array.prototype.flat` method
|
|
7524
7524
|
// https://tc39.es/ecma262/#sec-array.prototype.flat
|
|
7525
|
-
$$
|
|
7525
|
+
$$f({ target: 'Array', proto: true }, {
|
|
7526
7526
|
flat: function flat(/* depthArg = 1 */) {
|
|
7527
7527
|
var depthArg = arguments.length ? arguments[0] : undefined;
|
|
7528
|
-
var O = toObject$
|
|
7529
|
-
var sourceLen = lengthOfArrayLike$
|
|
7530
|
-
var A = arraySpeciesCreate(O, 0);
|
|
7531
|
-
A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity$1(depthArg));
|
|
7528
|
+
var O = toObject$2(this);
|
|
7529
|
+
var sourceLen = lengthOfArrayLike$2(O);
|
|
7530
|
+
var A = arraySpeciesCreate$1(O, 0);
|
|
7531
|
+
A.length = flattenIntoArray$1(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity$1(depthArg));
|
|
7532
7532
|
return A;
|
|
7533
7533
|
}
|
|
7534
7534
|
});
|
|
7535
7535
|
|
|
7536
7536
|
// this method was added to unscopables after implementation
|
|
7537
7537
|
// in popular engines, so it's moved to a separate module
|
|
7538
|
-
var addToUnscopables = addToUnscopables$
|
|
7538
|
+
var addToUnscopables$1 = addToUnscopables$5;
|
|
7539
7539
|
|
|
7540
7540
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
7541
|
-
addToUnscopables('flat');
|
|
7541
|
+
addToUnscopables$1('flat');
|
|
7542
7542
|
|
|
7543
|
-
var aCallable$
|
|
7544
|
-
var toObject = toObject$
|
|
7543
|
+
var aCallable$5 = aCallable$j;
|
|
7544
|
+
var toObject$1 = toObject$9;
|
|
7545
7545
|
var IndexedObject = indexedObject;
|
|
7546
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
7546
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$8;
|
|
7547
7547
|
|
|
7548
7548
|
var $TypeError$2 = TypeError;
|
|
7549
7549
|
|
|
@@ -7552,10 +7552,10 @@ var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
|
|
|
7552
7552
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
7553
7553
|
var createMethod = function (IS_RIGHT) {
|
|
7554
7554
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
7555
|
-
var O = toObject(that);
|
|
7555
|
+
var O = toObject$1(that);
|
|
7556
7556
|
var self = IndexedObject(O);
|
|
7557
|
-
var length = lengthOfArrayLike(O);
|
|
7558
|
-
aCallable$
|
|
7557
|
+
var length = lengthOfArrayLike$1(O);
|
|
7558
|
+
aCallable$5(callbackfn);
|
|
7559
7559
|
if (length === 0 && argumentsLength < 2) throw new $TypeError$2(REDUCE_EMPTY);
|
|
7560
7560
|
var index = IS_RIGHT ? length - 1 : 0;
|
|
7561
7561
|
var i = IS_RIGHT ? -1 : 1;
|
|
@@ -7592,7 +7592,7 @@ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
|
7592
7592
|
});
|
|
7593
7593
|
};
|
|
7594
7594
|
|
|
7595
|
-
var $$
|
|
7595
|
+
var $$e = _export;
|
|
7596
7596
|
var $reduce = arrayReduce.left;
|
|
7597
7597
|
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
7598
7598
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -7605,28 +7605,28 @@ var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
|
7605
7605
|
|
|
7606
7606
|
// `Array.prototype.reduce` method
|
|
7607
7607
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
7608
|
-
$$
|
|
7608
|
+
$$e({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
7609
7609
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
7610
7610
|
var length = arguments.length;
|
|
7611
7611
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
7612
7612
|
}
|
|
7613
7613
|
});
|
|
7614
7614
|
|
|
7615
|
-
var $$
|
|
7615
|
+
var $$d = _export;
|
|
7616
7616
|
var iterate$4 = iterate$a;
|
|
7617
|
-
var aCallable$
|
|
7618
|
-
var anObject$
|
|
7619
|
-
var getIteratorDirect$
|
|
7617
|
+
var aCallable$4 = aCallable$j;
|
|
7618
|
+
var anObject$4 = anObject$s;
|
|
7619
|
+
var getIteratorDirect$4 = getIteratorDirect$a;
|
|
7620
7620
|
|
|
7621
7621
|
var $TypeError$1 = TypeError;
|
|
7622
7622
|
|
|
7623
7623
|
// `Iterator.prototype.reduce` method
|
|
7624
7624
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
7625
|
-
$$
|
|
7625
|
+
$$d({ target: 'Iterator', proto: true, real: true }, {
|
|
7626
7626
|
reduce: function reduce(reducer /* , initialValue */) {
|
|
7627
|
-
anObject$
|
|
7628
|
-
aCallable$
|
|
7629
|
-
var record = getIteratorDirect$
|
|
7627
|
+
anObject$4(this);
|
|
7628
|
+
aCallable$4(reducer);
|
|
7629
|
+
var record = getIteratorDirect$4(this);
|
|
7630
7630
|
var noInitial = arguments.length < 2;
|
|
7631
7631
|
var accumulator = noInitial ? undefined : arguments[1];
|
|
7632
7632
|
var counter = 0;
|
|
@@ -7767,807 +7767,207 @@ const FormStepperReviewer = props => {
|
|
|
7767
7767
|
};
|
|
7768
7768
|
const FormStepperReviewControl = withAjvProps(withTranslateProps(withJsonFormsLayoutProps(FormStepperReviewer)));
|
|
7769
7769
|
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
if (!currentSchema || !currentSchema.properties || !currentSchema.properties[key]) {
|
|
7783
|
-
currentSchema = null;
|
|
7784
|
-
break;
|
|
7785
|
-
}
|
|
7786
|
-
currentSchema = currentSchema.properties[key];
|
|
7787
|
-
}
|
|
7788
|
-
const isRequired = schemaPath.length > 1 ? (_c = (_b = (_a = schema === null || schema === void 0 ? void 0 : schema.properties) === null || _a === void 0 ? void 0 : _a[schemaPath[0]]) === null || _b === void 0 ? void 0 : _b.required) === null || _c === void 0 ? void 0 : _c.includes(schemaPath[1]) : (_d = schema === null || schema === void 0 ? void 0 : schema.required) === null || _d === void 0 ? void 0 : _d.includes(path);
|
|
7789
|
-
const hasMinLength = (currentSchema === null || currentSchema === void 0 ? void 0 : currentSchema.minLength) !== undefined;
|
|
7790
|
-
if (isRequired && (value === undefined || value === null || value === '') || hasMinLength && typeof value === 'string' && value.length < currentSchema.minLength) {
|
|
7791
|
-
incomplete.push(path);
|
|
7792
|
-
}
|
|
7793
|
-
}
|
|
7794
|
-
return incomplete;
|
|
7770
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
7771
|
+
|
|
7772
|
+
// eslint-disable-next-line es/no-set -- safe
|
|
7773
|
+
var SetPrototype$1 = Set.prototype;
|
|
7774
|
+
|
|
7775
|
+
var setHelpers = {
|
|
7776
|
+
// eslint-disable-next-line es/no-set -- safe
|
|
7777
|
+
Set: Set,
|
|
7778
|
+
add: uncurryThis$3(SetPrototype$1.add),
|
|
7779
|
+
has: uncurryThis$3(SetPrototype$1.has),
|
|
7780
|
+
remove: uncurryThis$3(SetPrototype$1['delete']),
|
|
7781
|
+
proto: SetPrototype$1
|
|
7795
7782
|
};
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7783
|
+
|
|
7784
|
+
var has$5 = setHelpers.has;
|
|
7785
|
+
|
|
7786
|
+
// Perform ? RequireInternalSlot(M, [[SetData]])
|
|
7787
|
+
var aSet$7 = function (it) {
|
|
7788
|
+
has$5(it);
|
|
7789
|
+
return it;
|
|
7790
|
+
};
|
|
7791
|
+
|
|
7792
|
+
var call$3 = functionCall;
|
|
7793
|
+
|
|
7794
|
+
var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
7795
|
+
var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
|
|
7796
|
+
var next = record.next;
|
|
7797
|
+
var step, result;
|
|
7798
|
+
while (!(step = call$3(next, iterator)).done) {
|
|
7799
|
+
result = fn(step.value);
|
|
7800
|
+
if (result !== undefined) return result;
|
|
7812
7801
|
}
|
|
7813
|
-
return false;
|
|
7814
7802
|
};
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7803
|
+
|
|
7804
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
7805
|
+
var iterateSimple$6 = iterateSimple$7;
|
|
7806
|
+
var SetHelpers$5 = setHelpers;
|
|
7807
|
+
|
|
7808
|
+
var Set$3 = SetHelpers$5.Set;
|
|
7809
|
+
var SetPrototype = SetHelpers$5.proto;
|
|
7810
|
+
var forEach = uncurryThis$2(SetPrototype.forEach);
|
|
7811
|
+
var keys = uncurryThis$2(SetPrototype.keys);
|
|
7812
|
+
var next = keys(new Set$3()).next;
|
|
7813
|
+
|
|
7814
|
+
var setIterate = function (set, fn, interruptible) {
|
|
7815
|
+
return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
|
|
7816
|
+
};
|
|
7817
|
+
|
|
7818
|
+
var SetHelpers$4 = setHelpers;
|
|
7819
|
+
var iterate$3 = setIterate;
|
|
7820
|
+
|
|
7821
|
+
var Set$2 = SetHelpers$4.Set;
|
|
7822
|
+
var add$3 = SetHelpers$4.add;
|
|
7823
|
+
|
|
7824
|
+
var setClone = function (set) {
|
|
7825
|
+
var result = new Set$2();
|
|
7826
|
+
iterate$3(set, function (it) {
|
|
7827
|
+
add$3(result, it);
|
|
7824
7828
|
});
|
|
7829
|
+
return result;
|
|
7825
7830
|
};
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7831
|
+
|
|
7832
|
+
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
7833
|
+
var SetHelpers$3 = setHelpers;
|
|
7834
|
+
|
|
7835
|
+
var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function (set) {
|
|
7836
|
+
return set.size;
|
|
7829
7837
|
};
|
|
7830
|
-
|
|
7831
|
-
|
|
7838
|
+
|
|
7839
|
+
var aCallable$3 = aCallable$j;
|
|
7840
|
+
var anObject$3 = anObject$s;
|
|
7841
|
+
var call$2 = functionCall;
|
|
7842
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$8;
|
|
7843
|
+
var getIteratorDirect$3 = getIteratorDirect$a;
|
|
7844
|
+
|
|
7845
|
+
var INVALID_SIZE = 'Invalid size';
|
|
7846
|
+
var $RangeError = RangeError;
|
|
7847
|
+
var $TypeError = TypeError;
|
|
7848
|
+
var max = Math.max;
|
|
7849
|
+
|
|
7850
|
+
var SetRecord = function (set, intSize) {
|
|
7851
|
+
this.set = set;
|
|
7852
|
+
this.size = max(intSize, 0);
|
|
7853
|
+
this.has = aCallable$3(set.has);
|
|
7854
|
+
this.keys = aCallable$3(set.keys);
|
|
7832
7855
|
};
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7856
|
+
|
|
7857
|
+
SetRecord.prototype = {
|
|
7858
|
+
getIterator: function () {
|
|
7859
|
+
return getIteratorDirect$3(anObject$3(call$2(this.keys, this.set)));
|
|
7860
|
+
},
|
|
7861
|
+
includes: function (it) {
|
|
7862
|
+
return call$2(this.has, this.set, it);
|
|
7838
7863
|
}
|
|
7839
|
-
return true;
|
|
7840
|
-
}
|
|
7841
|
-
const saveIsVisitFromLocalStorage = status => {
|
|
7842
|
-
const key = getLocalStorageKeyPrefix();
|
|
7843
|
-
localStorage.setItem(key, JSON.stringify(status));
|
|
7844
7864
|
};
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7865
|
+
|
|
7866
|
+
// `GetSetRecord` abstract operation
|
|
7867
|
+
// https://tc39.es/proposal-set-methods/#sec-getsetrecord
|
|
7868
|
+
var getSetRecord$7 = function (obj) {
|
|
7869
|
+
anObject$3(obj);
|
|
7870
|
+
var numSize = +obj.size;
|
|
7871
|
+
// NOTE: If size is undefined, then numSize will be NaN
|
|
7872
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
7873
|
+
if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
|
|
7874
|
+
var intSize = toIntegerOrInfinity(numSize);
|
|
7875
|
+
if (intSize < 0) throw new $RangeError(INVALID_SIZE);
|
|
7876
|
+
return new SetRecord(obj, intSize);
|
|
7852
7877
|
};
|
|
7853
7878
|
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
switch (action.type) {
|
|
7862
|
-
case 'update/uischema':
|
|
7863
|
-
{
|
|
7864
|
-
return Object.assign({}, action.payload.state);
|
|
7865
|
-
}
|
|
7866
|
-
case 'page/next':
|
|
7867
|
-
{
|
|
7868
|
-
const newActive = activeId + 1;
|
|
7869
|
-
const newCategories = categories.map((c, idx) => idx === activeId ? Object.assign({}, c, {
|
|
7870
|
-
isVisited: true
|
|
7871
|
-
}) : c);
|
|
7872
|
-
const isOnReview = newActive === lastId + 1;
|
|
7873
|
-
return Object.assign({}, state, {
|
|
7874
|
-
activeId: newActive,
|
|
7875
|
-
categories: newCategories,
|
|
7876
|
-
isOnReview,
|
|
7877
|
-
hasNextButton: !isOnReview,
|
|
7878
|
-
hasPrevButton: newActive !== 0
|
|
7879
|
-
});
|
|
7880
|
-
}
|
|
7881
|
-
case 'page/prev':
|
|
7882
|
-
{
|
|
7883
|
-
const newActive = Math.max(0, activeId - 1);
|
|
7884
|
-
const newCategories = categories.map((c, idx) => idx === activeId ? Object.assign({}, c, {
|
|
7885
|
-
isVisited: true
|
|
7886
|
-
}) : c);
|
|
7887
|
-
return Object.assign({}, state, {
|
|
7888
|
-
activeId: newActive,
|
|
7889
|
-
categories: newCategories,
|
|
7890
|
-
isOnReview: false,
|
|
7891
|
-
hasNextButton: true,
|
|
7892
|
-
hasPrevButton: newActive !== 0
|
|
7893
|
-
});
|
|
7894
|
-
}
|
|
7895
|
-
case 'page/to/index':
|
|
7896
|
-
{
|
|
7897
|
-
const {
|
|
7898
|
-
id
|
|
7899
|
-
} = action.payload;
|
|
7900
|
-
const newActive = id;
|
|
7901
|
-
const newCategories = categories.map((c, idx) => idx === id ? Object.assign({}, c, {
|
|
7902
|
-
isVisited: true
|
|
7903
|
-
}) : c);
|
|
7904
|
-
const isOnReview = newActive === lastId + 1;
|
|
7905
|
-
return Object.assign({}, state, {
|
|
7906
|
-
activeId: newActive,
|
|
7907
|
-
categories: newCategories,
|
|
7908
|
-
isOnReview,
|
|
7909
|
-
hasNextButton: !isOnReview,
|
|
7910
|
-
hasPrevButton: newActive !== 0,
|
|
7911
|
-
maxReachedStep: Math.max(state.maxReachedStep, activeId)
|
|
7912
|
-
});
|
|
7913
|
-
}
|
|
7914
|
-
case 'update/category':
|
|
7915
|
-
{
|
|
7916
|
-
const {
|
|
7917
|
-
id,
|
|
7918
|
-
ajv,
|
|
7919
|
-
errors = [],
|
|
7920
|
-
schema,
|
|
7921
|
-
data
|
|
7922
|
-
} = action.payload;
|
|
7923
|
-
if (id >= categories.length) return state;
|
|
7924
|
-
try {
|
|
7925
|
-
ajv.validate(schema, data);
|
|
7926
|
-
} catch (err) {
|
|
7927
|
-
console.warn('AJV validation error:', err);
|
|
7928
|
-
}
|
|
7929
|
-
const incompletePaths = getIncompletePaths(ajv, schema, data, ((_a = categories[id]) === null || _a === void 0 ? void 0 : _a.scopes) || []);
|
|
7930
|
-
const errorsInCategory = getErrorsInScopes(errors, ((_b = categories[id]) === null || _b === void 0 ? void 0 : _b.scopes) || []);
|
|
7931
|
-
const newCategories = categories.map((cat, idx) => idx === id ? Object.assign({}, cat, {
|
|
7932
|
-
isCompleted: incompletePaths.length === 0,
|
|
7933
|
-
isValid: errorsInCategory.length === 0,
|
|
7934
|
-
isVisited: true
|
|
7935
|
-
}) : cat);
|
|
7936
|
-
return Object.assign({}, state, {
|
|
7937
|
-
categories: newCategories
|
|
7938
|
-
});
|
|
7939
|
-
}
|
|
7940
|
-
case 'validate/form':
|
|
7941
|
-
{
|
|
7942
|
-
const {
|
|
7943
|
-
errors = []
|
|
7944
|
-
} = action.payload;
|
|
7945
|
-
return Object.assign({}, state, {
|
|
7946
|
-
isValid: errors.length === 0
|
|
7947
|
-
});
|
|
7948
|
-
}
|
|
7949
|
-
case 'toggle/category/review-link':
|
|
7950
|
-
{
|
|
7951
|
-
const {
|
|
7952
|
-
id
|
|
7953
|
-
} = action.payload;
|
|
7954
|
-
const newCategories = categories.map((cat, idx) => idx === id ? Object.assign({}, cat, {
|
|
7955
|
-
showReviewPageLink: !cat.showReviewPageLink
|
|
7956
|
-
}) : cat);
|
|
7957
|
-
return Object.assign({}, state, {
|
|
7958
|
-
categories: newCategories
|
|
7959
|
-
});
|
|
7960
|
-
}
|
|
7961
|
-
default:
|
|
7962
|
-
return state;
|
|
7963
|
-
}
|
|
7964
|
-
};
|
|
7879
|
+
var aSet$6 = aSet$7;
|
|
7880
|
+
var SetHelpers$2 = setHelpers;
|
|
7881
|
+
var clone$2 = setClone;
|
|
7882
|
+
var size$4 = setSize;
|
|
7883
|
+
var getSetRecord$6 = getSetRecord$7;
|
|
7884
|
+
var iterateSet$2 = setIterate;
|
|
7885
|
+
var iterateSimple$5 = iterateSimple$7;
|
|
7965
7886
|
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
const valid = ajv.validate(schema, data || {});
|
|
7978
|
-
const isPage = ((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.variant) === 'pages';
|
|
7979
|
-
const isCacheStatus = (_b = uischema.options) === null || _b === void 0 ? void 0 : _b.cacheStatus;
|
|
7980
|
-
/* istanbul ignore next */
|
|
7981
|
-
const cachedStatus = isCacheStatus && getIsVisitFromLocalStorage() || [];
|
|
7982
|
-
ajv.validate(schema, data);
|
|
7983
|
-
const categories = (_c = categorization.elements) === null || _c === void 0 ? void 0 : _c.map((c, id) => {
|
|
7984
|
-
const scopes = pickPropertyValues(c, 'scope', 'ListWithDetail');
|
|
7985
|
-
const incompletePaths = getIncompletePaths(ajv, schema, data, scopes);
|
|
7986
|
-
const hasAnyData = hasDataInScopes$1(data, scopes);
|
|
7987
|
-
const isVisited = isCacheStatus ? cachedStatus.at(id) : hasAnyData;
|
|
7988
|
-
const isCompleted = isVisited && incompletePaths.length === 0;
|
|
7989
|
-
const isValid = isCompleted;
|
|
7990
|
-
return {
|
|
7991
|
-
id,
|
|
7992
|
-
label: deriveLabelForUISchemaElement(c, t),
|
|
7993
|
-
scopes,
|
|
7994
|
-
/* istanbul ignore next */
|
|
7995
|
-
isVisited,
|
|
7996
|
-
isCompleted,
|
|
7997
|
-
isValid,
|
|
7998
|
-
uischema: c,
|
|
7999
|
-
showReviewPageLink: props.withBackReviewBtn || false,
|
|
8000
|
-
isEnabled: isEnabled(c, data, '', ajv),
|
|
8001
|
-
visible: isVisible(c, data, '', ajv)
|
|
8002
|
-
};
|
|
7887
|
+
var has$4 = SetHelpers$2.has;
|
|
7888
|
+
var remove$1 = SetHelpers$2.remove;
|
|
7889
|
+
|
|
7890
|
+
// `Set.prototype.difference` method
|
|
7891
|
+
// https://github.com/tc39/proposal-set-methods
|
|
7892
|
+
var setDifference = function difference(other) {
|
|
7893
|
+
var O = aSet$6(this);
|
|
7894
|
+
var otherRec = getSetRecord$6(other);
|
|
7895
|
+
var result = clone$2(O);
|
|
7896
|
+
if (size$4(O) <= otherRec.size) iterateSet$2(O, function (e) {
|
|
7897
|
+
if (otherRec.includes(e)) remove$1(result, e);
|
|
8003
7898
|
});
|
|
8004
|
-
|
|
7899
|
+
else iterateSimple$5(otherRec.getIterator(), function (e) {
|
|
7900
|
+
if (has$4(O, e)) remove$1(result, e);
|
|
7901
|
+
});
|
|
7902
|
+
return result;
|
|
7903
|
+
};
|
|
7904
|
+
|
|
7905
|
+
var getBuiltIn = getBuiltIn$a;
|
|
7906
|
+
|
|
7907
|
+
var createSetLike = function (size) {
|
|
8005
7908
|
return {
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
7909
|
+
size: size,
|
|
7910
|
+
has: function () {
|
|
7911
|
+
return false;
|
|
7912
|
+
},
|
|
7913
|
+
keys: function () {
|
|
7914
|
+
return {
|
|
7915
|
+
next: function () {
|
|
7916
|
+
return { done: true };
|
|
7917
|
+
}
|
|
7918
|
+
};
|
|
7919
|
+
}
|
|
8014
7920
|
};
|
|
8015
7921
|
};
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
}
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
return category === undefined ? false : !(category === null || category === void 0 ? void 0 : category.isEnabled);
|
|
8066
|
-
},
|
|
8067
|
-
selectNumberOfCompletedCategories: () => {
|
|
8068
|
-
return stepperState === null || stepperState === void 0 ? void 0 : stepperState.categories.reduce((acc, cat) => {
|
|
8069
|
-
var _a, _b, _c, _d;
|
|
8070
|
-
return acc + (cat.isValid && cat.isCompleted && cat.isVisited && (cat === null || cat === void 0 ? void 0 : cat.uischema) && (((_b = (_a = cat === null || cat === void 0 ? void 0 : cat.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.showInTaskList) || ((_d = (_c = cat === null || cat === void 0 ? void 0 : cat.uischema) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.showInTaskList) === undefined) && (cat === null || cat === void 0 ? void 0 : cat.uischema) && isVisible(cat.uischema, data, '', ajv) ? 1 : 0);
|
|
8071
|
-
}, 0);
|
|
8072
|
-
},
|
|
8073
|
-
selectIsActive: id => {
|
|
8074
|
-
return id === stepperState.activeId;
|
|
8075
|
-
},
|
|
8076
|
-
selectPath: () => {
|
|
8077
|
-
return stepperState.path;
|
|
8078
|
-
},
|
|
8079
|
-
selectCategory: id => {
|
|
8080
|
-
return stepperState.categories[id];
|
|
8081
|
-
},
|
|
8082
|
-
goToTableOfContext: () => {
|
|
8083
|
-
stepperDispatch({
|
|
8084
|
-
type: 'page/to/index',
|
|
8085
|
-
payload: {
|
|
8086
|
-
id: stepperState.categories.length + 1
|
|
8087
|
-
}
|
|
8088
|
-
});
|
|
8089
|
-
},
|
|
8090
|
-
validatePage: doValidatePage,
|
|
8091
|
-
goToPage: id => {
|
|
8092
|
-
var _a, _b, _c;
|
|
8093
|
-
ajv.validate(schema, ((_a = ctx.core) === null || _a === void 0 ? void 0 : _a.data) || {});
|
|
8094
|
-
// Only update the current category
|
|
8095
|
-
if (!stepperState.isOnReview && id < stepperState.categories.length) {
|
|
8096
|
-
stepperDispatch({
|
|
8097
|
-
type: 'update/category',
|
|
8098
|
-
payload: {
|
|
8099
|
-
errors: (_b = ctx === null || ctx === void 0 ? void 0 : ctx.core) === null || _b === void 0 ? void 0 : _b.errors,
|
|
8100
|
-
id,
|
|
8101
|
-
ajv,
|
|
8102
|
-
schema,
|
|
8103
|
-
data
|
|
8104
|
-
}
|
|
8105
|
-
});
|
|
8106
|
-
}
|
|
8107
|
-
stepperDispatch({
|
|
8108
|
-
type: 'validate/form',
|
|
8109
|
-
payload: {
|
|
8110
|
-
errors: (_c = ctx === null || ctx === void 0 ? void 0 : ctx.core) === null || _c === void 0 ? void 0 : _c.errors
|
|
8111
|
-
}
|
|
8112
|
-
});
|
|
8113
|
-
stepperDispatch({
|
|
8114
|
-
type: 'page/to/index',
|
|
8115
|
-
payload: {
|
|
8116
|
-
id
|
|
8117
|
-
}
|
|
8118
|
-
});
|
|
8119
|
-
},
|
|
8120
|
-
toggleShowReviewLink: id => {
|
|
8121
|
-
stepperDispatch({
|
|
8122
|
-
type: 'toggle/category/review-link',
|
|
8123
|
-
payload: {
|
|
8124
|
-
id
|
|
8125
|
-
}
|
|
8126
|
-
});
|
|
8127
|
-
}
|
|
8128
|
-
};
|
|
8129
|
-
}, [stepperDispatch, stepperState, (_c = ctx.core) === null || _c === void 0 ? void 0 : _c.errors, ajv, schema, data]);
|
|
8130
|
-
/* istanbul ignore next */
|
|
8131
|
-
useEffect(() => {
|
|
8132
|
-
const handleBeforeUnload = () => {
|
|
8133
|
-
var _a;
|
|
8134
|
-
if (isCacheStatus) {
|
|
8135
|
-
saveIsVisitFromLocalStorage(((_a = stepperState === null || stepperState === void 0 ? void 0 : stepperState.categories) === null || _a === void 0 ? void 0 : _a.map(c => c === null || c === void 0 ? void 0 : c.isVisited)) || []);
|
|
8136
|
-
}
|
|
8137
|
-
};
|
|
8138
|
-
window.addEventListener('beforeunload', handleBeforeUnload);
|
|
8139
|
-
return () => {
|
|
8140
|
-
window.removeEventListener('beforeunload', handleBeforeUnload);
|
|
8141
|
-
};
|
|
8142
|
-
}, [stepperState]);
|
|
8143
|
-
useEffect(() => {
|
|
8144
|
-
if ((context === null || context === void 0 ? void 0 : context.isProvided) === true) {
|
|
8145
|
-
/* The block is used to cache the state for the tenant web app review editor */
|
|
8146
|
-
stepperDispatch({
|
|
8147
|
-
type: 'update/uischema',
|
|
8148
|
-
payload: {
|
|
8149
|
-
state: createStepperContextInitData(Object.assign({}, StepperProps, {
|
|
8150
|
-
activeId: Math.min(stepperState === null || stepperState === void 0 ? void 0 : stepperState.activeId, stepperState.maxReachedStep)
|
|
8151
|
-
}))
|
|
8152
|
-
}
|
|
8153
|
-
});
|
|
8154
|
-
if (stepperState.activeId !== stepperState.categories.length + 1) {
|
|
8155
|
-
context.goToPage(stepperState.maxReachedStep);
|
|
8156
|
-
context.goToPage(stepperState.activeId);
|
|
8157
|
-
}
|
|
8158
|
-
}
|
|
8159
|
-
}, [JSON.stringify(StepperProps.uischema), JSON.stringify(StepperProps.schema)]);
|
|
8160
|
-
return jsx(JsonFormsStepperContext.Provider, {
|
|
8161
|
-
value: context,
|
|
8162
|
-
children: children
|
|
8163
|
-
});
|
|
8164
|
-
};
|
|
8165
|
-
|
|
8166
|
-
const summaryLabel = 'Summary';
|
|
8167
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8168
|
-
const FormStepper = props => {
|
|
8169
|
-
const formStepperCtx = useContext(JsonFormsStepperContext);
|
|
8170
|
-
const memoStepperProps = useMemo(() => Object.assign({}, props), [props]);
|
|
8171
|
-
/**
|
|
8172
|
-
* StepperCtx can only be provided once to prevent issues from categorization in categorization
|
|
8173
|
-
* */
|
|
8174
|
-
// eslint-disable-next-line
|
|
8175
|
-
useEffect(() => {}, [formStepperCtx === null || formStepperCtx === void 0 ? void 0 : formStepperCtx.isProvided]);
|
|
8176
|
-
if ((formStepperCtx === null || formStepperCtx === void 0 ? void 0 : formStepperCtx.isProvided) === true) {
|
|
8177
|
-
return jsx(FormStepperView, Object.assign({}, props));
|
|
8178
|
-
}
|
|
8179
|
-
return jsx(JsonFormsStepperContextProvider, {
|
|
8180
|
-
StepperProps: memoStepperProps,
|
|
8181
|
-
children: jsx(FormStepperView, Object.assign({}, props))
|
|
8182
|
-
});
|
|
8183
|
-
};
|
|
8184
|
-
const FormStepperView = props => {
|
|
8185
|
-
var _a;
|
|
8186
|
-
const {
|
|
8187
|
-
uischema,
|
|
8188
|
-
data,
|
|
8189
|
-
schema,
|
|
8190
|
-
path,
|
|
8191
|
-
cells,
|
|
8192
|
-
renderers,
|
|
8193
|
-
visible,
|
|
8194
|
-
t
|
|
8195
|
-
} = props;
|
|
8196
|
-
const enumerators = useContext(JsonFormContext);
|
|
8197
|
-
const formStepperCtx = useContext(JsonFormsStepperContext);
|
|
8198
|
-
const {
|
|
8199
|
-
activeId,
|
|
8200
|
-
categories,
|
|
8201
|
-
hasNextButton,
|
|
8202
|
-
hasPrevButton,
|
|
8203
|
-
isOnReview,
|
|
8204
|
-
isValid
|
|
8205
|
-
} = formStepperCtx.selectStepperState();
|
|
8206
|
-
const {
|
|
8207
|
-
selectIsDisabled,
|
|
8208
|
-
goToPage
|
|
8209
|
-
} = formStepperCtx;
|
|
8210
|
-
const submitFormFunction = enumerators === null || enumerators === void 0 ? void 0 : enumerators.submitFunction.get('submit-form');
|
|
8211
|
-
const submitForm = submitFormFunction && submitFormFunction();
|
|
8212
|
-
const optionProps = uischema.options || {};
|
|
8213
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
8214
|
-
const headersRef = useRef([]);
|
|
8215
|
-
const handleSubmit = () => {
|
|
8216
|
-
if (submitForm) {
|
|
8217
|
-
submitForm(data);
|
|
8218
|
-
} else {
|
|
8219
|
-
setIsOpen(true);
|
|
8220
|
-
}
|
|
8221
|
-
};
|
|
8222
|
-
const onCloseModal = () => {
|
|
8223
|
-
setIsOpen(false);
|
|
8224
|
-
};
|
|
8225
|
-
return jsxs("div", {
|
|
8226
|
-
"data-testid": "form-stepper-test-wrapper",
|
|
8227
|
-
children: [jsx(Visible, {
|
|
8228
|
-
visible: visible,
|
|
8229
|
-
children: jsxs("div", {
|
|
8230
|
-
id: `${path || `goa`}-form-stepper`,
|
|
8231
|
-
className: "formStepper",
|
|
8232
|
-
children: [jsxs(GoAFormStepper, {
|
|
8233
|
-
testId: `form-stepper-headers-${(_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.testId}` || 'form-stepper-test',
|
|
8234
|
-
onChange: step => {
|
|
8235
|
-
goToPage(step - 1);
|
|
8236
|
-
},
|
|
8237
|
-
children: [categories === null || categories === void 0 ? void 0 : categories.map((c, index) => {
|
|
8238
|
-
return jsx("div", {
|
|
8239
|
-
ref: el => headersRef.current[index] = el,
|
|
8240
|
-
children: jsx(GoAFormStep, {
|
|
8241
|
-
"data-testid": `stepper-tab-${index}`,
|
|
8242
|
-
text: `${c.label}`,
|
|
8243
|
-
status: c.isVisited ? c.isCompleted && c.isValid ? 'complete' : 'incomplete' : undefined
|
|
8244
|
-
}, `stepper-tab-${index}`)
|
|
8245
|
-
});
|
|
8246
|
-
}), jsx("div", {
|
|
8247
|
-
ref: el => headersRef.current[categories.length] = el,
|
|
8248
|
-
children: jsx(GoAFormStep, {
|
|
8249
|
-
text: "Review"
|
|
8250
|
-
}, `stepper-tab-review`)
|
|
8251
|
-
})]
|
|
8252
|
-
}, "stepper-form-stepper-wrapper"), jsxs(GoAPages, {
|
|
8253
|
-
current: activeId + 1,
|
|
8254
|
-
mb: "xl",
|
|
8255
|
-
children: [categories === null || categories === void 0 ? void 0 : categories.map((category, index) => {
|
|
8256
|
-
const props = {
|
|
8257
|
-
category: category.uischema,
|
|
8258
|
-
categoryIndex: category.id,
|
|
8259
|
-
visible: category === null || category === void 0 ? void 0 : category.visible,
|
|
8260
|
-
enabled: category === null || category === void 0 ? void 0 : category.isEnabled,
|
|
8261
|
-
path,
|
|
8262
|
-
schema,
|
|
8263
|
-
renderers,
|
|
8264
|
-
cells,
|
|
8265
|
-
data
|
|
8266
|
-
};
|
|
8267
|
-
return jsx("div", {
|
|
8268
|
-
"data-testid": `step_${index}-content`,
|
|
8269
|
-
style: {
|
|
8270
|
-
marginTop: '1.5rem'
|
|
8271
|
-
},
|
|
8272
|
-
children: jsx(RenderStepElements, Object.assign({}, props))
|
|
8273
|
-
}, `${category.label}`);
|
|
8274
|
-
}), jsxs("div", {
|
|
8275
|
-
"data-testid": "summary_step-content",
|
|
8276
|
-
children: [jsx(FormStepperSummaryH3, {
|
|
8277
|
-
children: summaryLabel
|
|
8278
|
-
}), jsx(FormStepperReviewer, Object.assign({}, props, {
|
|
8279
|
-
navigationFunc: goToPage
|
|
8280
|
-
}))]
|
|
8281
|
-
})]
|
|
8282
|
-
}), jsxs(GoAGrid, {
|
|
8283
|
-
minChildWidth: "100px",
|
|
8284
|
-
children: [jsx("div", {
|
|
8285
|
-
children: hasPrevButton ? jsx(GoAButton, {
|
|
8286
|
-
type: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonType) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonType : 'secondary',
|
|
8287
|
-
disabled: selectIsDisabled(),
|
|
8288
|
-
onClick: () => {
|
|
8289
|
-
var _a, _b, _c, _d;
|
|
8290
|
-
const element = document.getElementById(`${path || `goa`}-form-stepper`);
|
|
8291
|
-
if (element) {
|
|
8292
|
-
element.scrollIntoView();
|
|
8293
|
-
}
|
|
8294
|
-
// switched from input to button - i'm writing this comment to trigger deployment
|
|
8295
|
-
headersRef.current[activeId - 1] && ((_d = (_c = (_b = (_a = headersRef.current[activeId - 1]) === null || _a === void 0 ? void 0 : _a.querySelector('goa-form-step')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('button')) === null || _d === void 0 ? void 0 : _d.click());
|
|
8296
|
-
},
|
|
8297
|
-
testId: "prev-button",
|
|
8298
|
-
children: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonLabel) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonLabel : 'Previous'
|
|
8299
|
-
}) : jsx("div", {})
|
|
8300
|
-
}), hasNextButton && jsx(RightAlignmentDiv, {
|
|
8301
|
-
children: jsx(GoAButton, {
|
|
8302
|
-
type: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.nextButtonType) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.nextButtonType : 'primary',
|
|
8303
|
-
disabled: selectIsDisabled(),
|
|
8304
|
-
onClick: () => {
|
|
8305
|
-
var _a, _b, _c, _d;
|
|
8306
|
-
headersRef.current[activeId + 1] && ((_d = (_c = (_b = (_a = headersRef.current[activeId + 1]) === null || _a === void 0 ? void 0 : _a.querySelector('goa-form-step')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('button')) === null || _d === void 0 ? void 0 : _d.click());
|
|
8307
|
-
const element = document.getElementById(`${path || `goa`}-form-stepper`);
|
|
8308
|
-
if (element) {
|
|
8309
|
-
element.scrollIntoView();
|
|
8310
|
-
}
|
|
8311
|
-
},
|
|
8312
|
-
testId: "next-button",
|
|
8313
|
-
children: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.nextButtonLabel) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.nextButtonLabel : 'Next'
|
|
8314
|
-
})
|
|
8315
|
-
}), isOnReview && jsx(RightAlignmentDiv, {
|
|
8316
|
-
children: jsx("div", {
|
|
8317
|
-
children: jsx(GoAButton, {
|
|
8318
|
-
type: 'primary',
|
|
8319
|
-
onClick: handleSubmit,
|
|
8320
|
-
disabled: !isValid,
|
|
8321
|
-
testId: "stepper-submit-btn",
|
|
8322
|
-
children: "Submit"
|
|
8323
|
-
})
|
|
8324
|
-
})
|
|
8325
|
-
})]
|
|
8326
|
-
})]
|
|
8327
|
-
})
|
|
8328
|
-
}), jsxs(GoAModal, {
|
|
8329
|
-
testId: "submit-confirmation",
|
|
8330
|
-
open: isOpen,
|
|
8331
|
-
heading: 'Form Submitted',
|
|
8332
|
-
width: "640px",
|
|
8333
|
-
actions: jsx(GoAButtonGroup, {
|
|
8334
|
-
alignment: "end",
|
|
8335
|
-
children: jsx(GoAButton, {
|
|
8336
|
-
type: "primary",
|
|
8337
|
-
testId: "close-submit-modal",
|
|
8338
|
-
onClick: onCloseModal,
|
|
8339
|
-
children: "Close"
|
|
8340
|
-
})
|
|
8341
|
-
}),
|
|
8342
|
-
children: [jsx("b", {
|
|
8343
|
-
children: "Submit is a test for preview purposes "
|
|
8344
|
-
}), "(i.e. no actual form is being submitted)"]
|
|
8345
|
-
})]
|
|
8346
|
-
});
|
|
8347
|
-
};
|
|
8348
|
-
const FormStepperControl = withAjvProps(withTranslateProps(withJsonFormsLayoutProps(FormStepper)));
|
|
8349
|
-
|
|
8350
|
-
var $$a = _export;
|
|
8351
|
-
var iterate$3 = iterate$a;
|
|
8352
|
-
var aCallable$1 = aCallable$h;
|
|
8353
|
-
var anObject$1 = anObject$q;
|
|
8354
|
-
var getIteratorDirect$1 = getIteratorDirect$8;
|
|
8355
|
-
|
|
8356
|
-
// `Iterator.prototype.every` method
|
|
8357
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
8358
|
-
$$a({ target: 'Iterator', proto: true, real: true }, {
|
|
8359
|
-
every: function every(predicate) {
|
|
8360
|
-
anObject$1(this);
|
|
8361
|
-
aCallable$1(predicate);
|
|
8362
|
-
var record = getIteratorDirect$1(this);
|
|
8363
|
-
var counter = 0;
|
|
8364
|
-
return !iterate$3(record, function (value, stop) {
|
|
8365
|
-
if (!predicate(value, counter++)) return stop();
|
|
8366
|
-
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
|
|
8367
|
-
}
|
|
8368
|
-
});
|
|
8369
|
-
|
|
8370
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
8371
|
-
|
|
8372
|
-
// eslint-disable-next-line es/no-set -- safe
|
|
8373
|
-
var SetPrototype$1 = Set.prototype;
|
|
8374
|
-
|
|
8375
|
-
var setHelpers = {
|
|
8376
|
-
// eslint-disable-next-line es/no-set -- safe
|
|
8377
|
-
Set: Set,
|
|
8378
|
-
add: uncurryThis$3(SetPrototype$1.add),
|
|
8379
|
-
has: uncurryThis$3(SetPrototype$1.has),
|
|
8380
|
-
remove: uncurryThis$3(SetPrototype$1['delete']),
|
|
8381
|
-
proto: SetPrototype$1
|
|
8382
|
-
};
|
|
8383
|
-
|
|
8384
|
-
var has$5 = setHelpers.has;
|
|
8385
|
-
|
|
8386
|
-
// Perform ? RequireInternalSlot(M, [[SetData]])
|
|
8387
|
-
var aSet$7 = function (it) {
|
|
8388
|
-
has$5(it);
|
|
8389
|
-
return it;
|
|
8390
|
-
};
|
|
8391
|
-
|
|
8392
|
-
var call$1 = functionCall;
|
|
8393
|
-
|
|
8394
|
-
var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
8395
|
-
var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
|
|
8396
|
-
var next = record.next;
|
|
8397
|
-
var step, result;
|
|
8398
|
-
while (!(step = call$1(next, iterator)).done) {
|
|
8399
|
-
result = fn(step.value);
|
|
8400
|
-
if (result !== undefined) return result;
|
|
8401
|
-
}
|
|
8402
|
-
};
|
|
8403
|
-
|
|
8404
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
8405
|
-
var iterateSimple$6 = iterateSimple$7;
|
|
8406
|
-
var SetHelpers$5 = setHelpers;
|
|
8407
|
-
|
|
8408
|
-
var Set$3 = SetHelpers$5.Set;
|
|
8409
|
-
var SetPrototype = SetHelpers$5.proto;
|
|
8410
|
-
var forEach = uncurryThis$2(SetPrototype.forEach);
|
|
8411
|
-
var keys = uncurryThis$2(SetPrototype.keys);
|
|
8412
|
-
var next = keys(new Set$3()).next;
|
|
8413
|
-
|
|
8414
|
-
var setIterate = function (set, fn, interruptible) {
|
|
8415
|
-
return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
|
|
8416
|
-
};
|
|
8417
|
-
|
|
8418
|
-
var SetHelpers$4 = setHelpers;
|
|
8419
|
-
var iterate$2 = setIterate;
|
|
8420
|
-
|
|
8421
|
-
var Set$2 = SetHelpers$4.Set;
|
|
8422
|
-
var add$3 = SetHelpers$4.add;
|
|
8423
|
-
|
|
8424
|
-
var setClone = function (set) {
|
|
8425
|
-
var result = new Set$2();
|
|
8426
|
-
iterate$2(set, function (it) {
|
|
8427
|
-
add$3(result, it);
|
|
8428
|
-
});
|
|
8429
|
-
return result;
|
|
8430
|
-
};
|
|
8431
|
-
|
|
8432
|
-
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
8433
|
-
var SetHelpers$3 = setHelpers;
|
|
8434
|
-
|
|
8435
|
-
var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function (set) {
|
|
8436
|
-
return set.size;
|
|
8437
|
-
};
|
|
8438
|
-
|
|
8439
|
-
var aCallable = aCallable$h;
|
|
8440
|
-
var anObject = anObject$q;
|
|
8441
|
-
var call = functionCall;
|
|
8442
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$8;
|
|
8443
|
-
var getIteratorDirect = getIteratorDirect$8;
|
|
8444
|
-
|
|
8445
|
-
var INVALID_SIZE = 'Invalid size';
|
|
8446
|
-
var $RangeError = RangeError;
|
|
8447
|
-
var $TypeError = TypeError;
|
|
8448
|
-
var max = Math.max;
|
|
8449
|
-
|
|
8450
|
-
var SetRecord = function (set, intSize) {
|
|
8451
|
-
this.set = set;
|
|
8452
|
-
this.size = max(intSize, 0);
|
|
8453
|
-
this.has = aCallable(set.has);
|
|
8454
|
-
this.keys = aCallable(set.keys);
|
|
8455
|
-
};
|
|
8456
|
-
|
|
8457
|
-
SetRecord.prototype = {
|
|
8458
|
-
getIterator: function () {
|
|
8459
|
-
return getIteratorDirect(anObject(call(this.keys, this.set)));
|
|
8460
|
-
},
|
|
8461
|
-
includes: function (it) {
|
|
8462
|
-
return call(this.has, this.set, it);
|
|
8463
|
-
}
|
|
8464
|
-
};
|
|
8465
|
-
|
|
8466
|
-
// `GetSetRecord` abstract operation
|
|
8467
|
-
// https://tc39.es/proposal-set-methods/#sec-getsetrecord
|
|
8468
|
-
var getSetRecord$7 = function (obj) {
|
|
8469
|
-
anObject(obj);
|
|
8470
|
-
var numSize = +obj.size;
|
|
8471
|
-
// NOTE: If size is undefined, then numSize will be NaN
|
|
8472
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
8473
|
-
if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
|
|
8474
|
-
var intSize = toIntegerOrInfinity(numSize);
|
|
8475
|
-
if (intSize < 0) throw new $RangeError(INVALID_SIZE);
|
|
8476
|
-
return new SetRecord(obj, intSize);
|
|
8477
|
-
};
|
|
8478
|
-
|
|
8479
|
-
var aSet$6 = aSet$7;
|
|
8480
|
-
var SetHelpers$2 = setHelpers;
|
|
8481
|
-
var clone$2 = setClone;
|
|
8482
|
-
var size$4 = setSize;
|
|
8483
|
-
var getSetRecord$6 = getSetRecord$7;
|
|
8484
|
-
var iterateSet$2 = setIterate;
|
|
8485
|
-
var iterateSimple$5 = iterateSimple$7;
|
|
8486
|
-
|
|
8487
|
-
var has$4 = SetHelpers$2.has;
|
|
8488
|
-
var remove$1 = SetHelpers$2.remove;
|
|
8489
|
-
|
|
8490
|
-
// `Set.prototype.difference` method
|
|
8491
|
-
// https://github.com/tc39/proposal-set-methods
|
|
8492
|
-
var setDifference = function difference(other) {
|
|
8493
|
-
var O = aSet$6(this);
|
|
8494
|
-
var otherRec = getSetRecord$6(other);
|
|
8495
|
-
var result = clone$2(O);
|
|
8496
|
-
if (size$4(O) <= otherRec.size) iterateSet$2(O, function (e) {
|
|
8497
|
-
if (otherRec.includes(e)) remove$1(result, e);
|
|
8498
|
-
});
|
|
8499
|
-
else iterateSimple$5(otherRec.getIterator(), function (e) {
|
|
8500
|
-
if (has$4(O, e)) remove$1(result, e);
|
|
8501
|
-
});
|
|
8502
|
-
return result;
|
|
8503
|
-
};
|
|
8504
|
-
|
|
8505
|
-
var getBuiltIn = getBuiltIn$a;
|
|
8506
|
-
|
|
8507
|
-
var createSetLike = function (size) {
|
|
8508
|
-
return {
|
|
8509
|
-
size: size,
|
|
8510
|
-
has: function () {
|
|
8511
|
-
return false;
|
|
8512
|
-
},
|
|
8513
|
-
keys: function () {
|
|
8514
|
-
return {
|
|
8515
|
-
next: function () {
|
|
8516
|
-
return { done: true };
|
|
8517
|
-
}
|
|
8518
|
-
};
|
|
8519
|
-
}
|
|
8520
|
-
};
|
|
8521
|
-
};
|
|
8522
|
-
|
|
8523
|
-
var setMethodAcceptSetLike$7 = function (name) {
|
|
8524
|
-
var Set = getBuiltIn('Set');
|
|
8525
|
-
try {
|
|
8526
|
-
new Set()[name](createSetLike(0));
|
|
8527
|
-
try {
|
|
8528
|
-
// late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
|
|
8529
|
-
// https://github.com/tc39/proposal-set-methods/pull/88
|
|
8530
|
-
new Set()[name](createSetLike(-1));
|
|
8531
|
-
return false;
|
|
8532
|
-
} catch (error2) {
|
|
8533
|
-
return true;
|
|
8534
|
-
}
|
|
8535
|
-
} catch (error) {
|
|
8536
|
-
return false;
|
|
8537
|
-
}
|
|
8538
|
-
};
|
|
8539
|
-
|
|
8540
|
-
var $$9 = _export;
|
|
8541
|
-
var difference = setDifference;
|
|
8542
|
-
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
8543
|
-
|
|
8544
|
-
// `Set.prototype.difference` method
|
|
8545
|
-
// https://github.com/tc39/proposal-set-methods
|
|
8546
|
-
$$9({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
|
|
8547
|
-
difference: difference
|
|
8548
|
-
});
|
|
8549
|
-
|
|
8550
|
-
var aSet$5 = aSet$7;
|
|
8551
|
-
var SetHelpers$1 = setHelpers;
|
|
8552
|
-
var size$3 = setSize;
|
|
8553
|
-
var getSetRecord$5 = getSetRecord$7;
|
|
8554
|
-
var iterateSet$1 = setIterate;
|
|
8555
|
-
var iterateSimple$4 = iterateSimple$7;
|
|
8556
|
-
|
|
8557
|
-
var Set$1 = SetHelpers$1.Set;
|
|
8558
|
-
var add$2 = SetHelpers$1.add;
|
|
8559
|
-
var has$3 = SetHelpers$1.has;
|
|
8560
|
-
|
|
8561
|
-
// `Set.prototype.intersection` method
|
|
8562
|
-
// https://github.com/tc39/proposal-set-methods
|
|
8563
|
-
var setIntersection = function intersection(other) {
|
|
8564
|
-
var O = aSet$5(this);
|
|
8565
|
-
var otherRec = getSetRecord$5(other);
|
|
8566
|
-
var result = new Set$1();
|
|
8567
|
-
|
|
8568
|
-
if (size$3(O) > otherRec.size) {
|
|
8569
|
-
iterateSimple$4(otherRec.getIterator(), function (e) {
|
|
8570
|
-
if (has$3(O, e)) add$2(result, e);
|
|
7922
|
+
|
|
7923
|
+
var setMethodAcceptSetLike$7 = function (name) {
|
|
7924
|
+
var Set = getBuiltIn('Set');
|
|
7925
|
+
try {
|
|
7926
|
+
new Set()[name](createSetLike(0));
|
|
7927
|
+
try {
|
|
7928
|
+
// late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
|
|
7929
|
+
// https://github.com/tc39/proposal-set-methods/pull/88
|
|
7930
|
+
new Set()[name](createSetLike(-1));
|
|
7931
|
+
return false;
|
|
7932
|
+
} catch (error2) {
|
|
7933
|
+
return true;
|
|
7934
|
+
}
|
|
7935
|
+
} catch (error) {
|
|
7936
|
+
return false;
|
|
7937
|
+
}
|
|
7938
|
+
};
|
|
7939
|
+
|
|
7940
|
+
var $$c = _export;
|
|
7941
|
+
var difference = setDifference;
|
|
7942
|
+
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
7943
|
+
|
|
7944
|
+
// `Set.prototype.difference` method
|
|
7945
|
+
// https://github.com/tc39/proposal-set-methods
|
|
7946
|
+
$$c({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
|
|
7947
|
+
difference: difference
|
|
7948
|
+
});
|
|
7949
|
+
|
|
7950
|
+
var aSet$5 = aSet$7;
|
|
7951
|
+
var SetHelpers$1 = setHelpers;
|
|
7952
|
+
var size$3 = setSize;
|
|
7953
|
+
var getSetRecord$5 = getSetRecord$7;
|
|
7954
|
+
var iterateSet$1 = setIterate;
|
|
7955
|
+
var iterateSimple$4 = iterateSimple$7;
|
|
7956
|
+
|
|
7957
|
+
var Set$1 = SetHelpers$1.Set;
|
|
7958
|
+
var add$2 = SetHelpers$1.add;
|
|
7959
|
+
var has$3 = SetHelpers$1.has;
|
|
7960
|
+
|
|
7961
|
+
// `Set.prototype.intersection` method
|
|
7962
|
+
// https://github.com/tc39/proposal-set-methods
|
|
7963
|
+
var setIntersection = function intersection(other) {
|
|
7964
|
+
var O = aSet$5(this);
|
|
7965
|
+
var otherRec = getSetRecord$5(other);
|
|
7966
|
+
var result = new Set$1();
|
|
7967
|
+
|
|
7968
|
+
if (size$3(O) > otherRec.size) {
|
|
7969
|
+
iterateSimple$4(otherRec.getIterator(), function (e) {
|
|
7970
|
+
if (has$3(O, e)) add$2(result, e);
|
|
8571
7971
|
});
|
|
8572
7972
|
} else {
|
|
8573
7973
|
iterateSet$1(O, function (e) {
|
|
@@ -8578,7 +7978,7 @@ var setIntersection = function intersection(other) {
|
|
|
8578
7978
|
return result;
|
|
8579
7979
|
};
|
|
8580
7980
|
|
|
8581
|
-
var $$
|
|
7981
|
+
var $$b = _export;
|
|
8582
7982
|
var fails$1 = fails$v;
|
|
8583
7983
|
var intersection = setIntersection;
|
|
8584
7984
|
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
@@ -8590,7 +7990,7 @@ var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$1(function ()
|
|
|
8590
7990
|
|
|
8591
7991
|
// `Set.prototype.intersection` method
|
|
8592
7992
|
// https://github.com/tc39/proposal-set-methods
|
|
8593
|
-
$$
|
|
7993
|
+
$$b({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
8594
7994
|
intersection: intersection
|
|
8595
7995
|
});
|
|
8596
7996
|
|
|
@@ -8600,7 +8000,7 @@ var size$2 = setSize;
|
|
|
8600
8000
|
var getSetRecord$4 = getSetRecord$7;
|
|
8601
8001
|
var iterateSet = setIterate;
|
|
8602
8002
|
var iterateSimple$3 = iterateSimple$7;
|
|
8603
|
-
var iteratorClose$
|
|
8003
|
+
var iteratorClose$2 = iteratorClose$6;
|
|
8604
8004
|
|
|
8605
8005
|
// `Set.prototype.isDisjointFrom` method
|
|
8606
8006
|
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
|
|
@@ -8612,23 +8012,23 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
|
8612
8012
|
}, true) !== false;
|
|
8613
8013
|
var iterator = otherRec.getIterator();
|
|
8614
8014
|
return iterateSimple$3(iterator, function (e) {
|
|
8615
|
-
if (has$2(O, e)) return iteratorClose$
|
|
8015
|
+
if (has$2(O, e)) return iteratorClose$2(iterator, 'normal', false);
|
|
8616
8016
|
}) !== false;
|
|
8617
8017
|
};
|
|
8618
8018
|
|
|
8619
|
-
var $$
|
|
8019
|
+
var $$a = _export;
|
|
8620
8020
|
var isDisjointFrom = setIsDisjointFrom;
|
|
8621
8021
|
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
8622
8022
|
|
|
8623
8023
|
// `Set.prototype.isDisjointFrom` method
|
|
8624
8024
|
// https://github.com/tc39/proposal-set-methods
|
|
8625
|
-
$$
|
|
8025
|
+
$$a({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
|
|
8626
8026
|
isDisjointFrom: isDisjointFrom
|
|
8627
8027
|
});
|
|
8628
8028
|
|
|
8629
8029
|
var aSet$3 = aSet$7;
|
|
8630
8030
|
var size$1 = setSize;
|
|
8631
|
-
var iterate$
|
|
8031
|
+
var iterate$2 = setIterate;
|
|
8632
8032
|
var getSetRecord$3 = getSetRecord$7;
|
|
8633
8033
|
|
|
8634
8034
|
// `Set.prototype.isSubsetOf` method
|
|
@@ -8637,18 +8037,18 @@ var setIsSubsetOf = function isSubsetOf(other) {
|
|
|
8637
8037
|
var O = aSet$3(this);
|
|
8638
8038
|
var otherRec = getSetRecord$3(other);
|
|
8639
8039
|
if (size$1(O) > otherRec.size) return false;
|
|
8640
|
-
return iterate$
|
|
8040
|
+
return iterate$2(O, function (e) {
|
|
8641
8041
|
if (!otherRec.includes(e)) return false;
|
|
8642
8042
|
}, true) !== false;
|
|
8643
8043
|
};
|
|
8644
8044
|
|
|
8645
|
-
var $$
|
|
8045
|
+
var $$9 = _export;
|
|
8646
8046
|
var isSubsetOf = setIsSubsetOf;
|
|
8647
8047
|
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
8648
8048
|
|
|
8649
8049
|
// `Set.prototype.isSubsetOf` method
|
|
8650
8050
|
// https://github.com/tc39/proposal-set-methods
|
|
8651
|
-
$$
|
|
8051
|
+
$$9({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
|
|
8652
8052
|
isSubsetOf: isSubsetOf
|
|
8653
8053
|
});
|
|
8654
8054
|
|
|
@@ -8657,7 +8057,7 @@ var has$1 = setHelpers.has;
|
|
|
8657
8057
|
var size = setSize;
|
|
8658
8058
|
var getSetRecord$2 = getSetRecord$7;
|
|
8659
8059
|
var iterateSimple$2 = iterateSimple$7;
|
|
8660
|
-
var iteratorClose = iteratorClose$
|
|
8060
|
+
var iteratorClose$1 = iteratorClose$6;
|
|
8661
8061
|
|
|
8662
8062
|
// `Set.prototype.isSupersetOf` method
|
|
8663
8063
|
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
|
|
@@ -8667,79 +8067,789 @@ var setIsSupersetOf = function isSupersetOf(other) {
|
|
|
8667
8067
|
if (size(O) < otherRec.size) return false;
|
|
8668
8068
|
var iterator = otherRec.getIterator();
|
|
8669
8069
|
return iterateSimple$2(iterator, function (e) {
|
|
8670
|
-
if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
8070
|
+
if (!has$1(O, e)) return iteratorClose$1(iterator, 'normal', false);
|
|
8671
8071
|
}) !== false;
|
|
8672
8072
|
};
|
|
8673
8073
|
|
|
8674
|
-
var $$
|
|
8675
|
-
var isSupersetOf = setIsSupersetOf;
|
|
8676
|
-
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
8677
|
-
|
|
8678
|
-
// `Set.prototype.isSupersetOf` method
|
|
8679
|
-
// https://github.com/tc39/proposal-set-methods
|
|
8680
|
-
$$
|
|
8681
|
-
isSupersetOf: isSupersetOf
|
|
8682
|
-
});
|
|
8683
|
-
|
|
8684
|
-
var aSet$1 = aSet$7;
|
|
8685
|
-
var SetHelpers = setHelpers;
|
|
8686
|
-
var clone$1 = setClone;
|
|
8687
|
-
var getSetRecord$1 = getSetRecord$7;
|
|
8688
|
-
var iterateSimple$1 = iterateSimple$7;
|
|
8689
|
-
|
|
8690
|
-
var add$1 = SetHelpers.add;
|
|
8691
|
-
var has = SetHelpers.has;
|
|
8692
|
-
var remove = SetHelpers.remove;
|
|
8693
|
-
|
|
8694
|
-
// `Set.prototype.symmetricDifference` method
|
|
8695
|
-
// https://github.com/tc39/proposal-set-methods
|
|
8696
|
-
var setSymmetricDifference = function symmetricDifference(other) {
|
|
8697
|
-
var O = aSet$1(this);
|
|
8698
|
-
var keysIter = getSetRecord$1(other).getIterator();
|
|
8699
|
-
var result = clone$1(O);
|
|
8700
|
-
iterateSimple$1(keysIter, function (e) {
|
|
8701
|
-
if (has(O, e)) remove(result, e);
|
|
8702
|
-
else add$1(result, e);
|
|
8074
|
+
var $$8 = _export;
|
|
8075
|
+
var isSupersetOf = setIsSupersetOf;
|
|
8076
|
+
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
8077
|
+
|
|
8078
|
+
// `Set.prototype.isSupersetOf` method
|
|
8079
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8080
|
+
$$8({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
|
|
8081
|
+
isSupersetOf: isSupersetOf
|
|
8082
|
+
});
|
|
8083
|
+
|
|
8084
|
+
var aSet$1 = aSet$7;
|
|
8085
|
+
var SetHelpers = setHelpers;
|
|
8086
|
+
var clone$1 = setClone;
|
|
8087
|
+
var getSetRecord$1 = getSetRecord$7;
|
|
8088
|
+
var iterateSimple$1 = iterateSimple$7;
|
|
8089
|
+
|
|
8090
|
+
var add$1 = SetHelpers.add;
|
|
8091
|
+
var has = SetHelpers.has;
|
|
8092
|
+
var remove = SetHelpers.remove;
|
|
8093
|
+
|
|
8094
|
+
// `Set.prototype.symmetricDifference` method
|
|
8095
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8096
|
+
var setSymmetricDifference = function symmetricDifference(other) {
|
|
8097
|
+
var O = aSet$1(this);
|
|
8098
|
+
var keysIter = getSetRecord$1(other).getIterator();
|
|
8099
|
+
var result = clone$1(O);
|
|
8100
|
+
iterateSimple$1(keysIter, function (e) {
|
|
8101
|
+
if (has(O, e)) remove(result, e);
|
|
8102
|
+
else add$1(result, e);
|
|
8103
|
+
});
|
|
8104
|
+
return result;
|
|
8105
|
+
};
|
|
8106
|
+
|
|
8107
|
+
var $$7 = _export;
|
|
8108
|
+
var symmetricDifference = setSymmetricDifference;
|
|
8109
|
+
var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
|
|
8110
|
+
|
|
8111
|
+
// `Set.prototype.symmetricDifference` method
|
|
8112
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8113
|
+
$$7({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
|
|
8114
|
+
symmetricDifference: symmetricDifference
|
|
8115
|
+
});
|
|
8116
|
+
|
|
8117
|
+
var aSet = aSet$7;
|
|
8118
|
+
var add = setHelpers.add;
|
|
8119
|
+
var clone = setClone;
|
|
8120
|
+
var getSetRecord = getSetRecord$7;
|
|
8121
|
+
var iterateSimple = iterateSimple$7;
|
|
8122
|
+
|
|
8123
|
+
// `Set.prototype.union` method
|
|
8124
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8125
|
+
var setUnion = function union(other) {
|
|
8126
|
+
var O = aSet(this);
|
|
8127
|
+
var keysIter = getSetRecord(other).getIterator();
|
|
8128
|
+
var result = clone(O);
|
|
8129
|
+
iterateSimple(keysIter, function (it) {
|
|
8130
|
+
add(result, it);
|
|
8131
|
+
});
|
|
8132
|
+
return result;
|
|
8133
|
+
};
|
|
8134
|
+
|
|
8135
|
+
var $$6 = _export;
|
|
8136
|
+
var union = setUnion;
|
|
8137
|
+
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
8138
|
+
|
|
8139
|
+
// `Set.prototype.union` method
|
|
8140
|
+
// https://github.com/tc39/proposal-set-methods
|
|
8141
|
+
$$6({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
|
|
8142
|
+
union: union
|
|
8143
|
+
});
|
|
8144
|
+
|
|
8145
|
+
const isObj = v => typeof v === 'object' && v !== null && !Array.isArray(v);
|
|
8146
|
+
function joinPath(base, key) {
|
|
8147
|
+
return base ? `${base}.${key}` : key;
|
|
8148
|
+
}
|
|
8149
|
+
// eslint-disable-next-line
|
|
8150
|
+
function collectRequiredPaths(schema, basePath = '') {
|
|
8151
|
+
if (!isObj(schema)) return [];
|
|
8152
|
+
const out = [];
|
|
8153
|
+
const req = Array.isArray(schema.required) ? schema.required : [];
|
|
8154
|
+
for (const k of req) out.push(joinPath(basePath, k));
|
|
8155
|
+
const props = schema.properties;
|
|
8156
|
+
if (isObj(props)) {
|
|
8157
|
+
for (const [k, sub] of Object.entries(props)) {
|
|
8158
|
+
out.push(...collectRequiredPaths(sub, joinPath(basePath, k)));
|
|
8159
|
+
}
|
|
8160
|
+
}
|
|
8161
|
+
return out;
|
|
8162
|
+
}
|
|
8163
|
+
// eslint-disable-next-line
|
|
8164
|
+
function collectControllerKeys(ifSchema) {
|
|
8165
|
+
if (!isObj(ifSchema)) return [];
|
|
8166
|
+
const keys = new Set();
|
|
8167
|
+
if (isObj(ifSchema.properties)) {
|
|
8168
|
+
Object.keys(ifSchema.properties).forEach(k => keys.add(k));
|
|
8169
|
+
}
|
|
8170
|
+
if (Array.isArray(ifSchema.required)) {
|
|
8171
|
+
// eslint-disable-next-line
|
|
8172
|
+
ifSchema.required.forEach(k => typeof k === 'string' && keys.add(k));
|
|
8173
|
+
}
|
|
8174
|
+
return [...keys];
|
|
8175
|
+
}
|
|
8176
|
+
// eslint-disable-next-line
|
|
8177
|
+
function buildConditionalDeps(rootSchema) {
|
|
8178
|
+
const deps = new Map();
|
|
8179
|
+
// eslint-disable-next-line
|
|
8180
|
+
function walk(node) {
|
|
8181
|
+
if (!isObj(node)) return;
|
|
8182
|
+
// if/then/else
|
|
8183
|
+
if (node.if && (node.then || node.else)) {
|
|
8184
|
+
const controllers = collectControllerKeys(node.if);
|
|
8185
|
+
const thenReq = node.then ? collectRequiredPaths(node.then) : [];
|
|
8186
|
+
const elseReq = node.else ? collectRequiredPaths(node.else) : [];
|
|
8187
|
+
const affected = [...thenReq, ...elseReq].filter(Boolean);
|
|
8188
|
+
for (const c of controllers) {
|
|
8189
|
+
if (!deps.has(c)) deps.set(c, new Set());
|
|
8190
|
+
const set = deps.get(c);
|
|
8191
|
+
for (const p of affected) set.add(p);
|
|
8192
|
+
}
|
|
8193
|
+
}
|
|
8194
|
+
// recurse common combinators
|
|
8195
|
+
for (const key of ['allOf', 'anyOf', 'oneOf']) {
|
|
8196
|
+
const arr = node[key];
|
|
8197
|
+
if (Array.isArray(arr)) arr.forEach(walk);
|
|
8198
|
+
}
|
|
8199
|
+
// also walk nested properties (optional but helpful)
|
|
8200
|
+
if (isObj(node.properties)) {
|
|
8201
|
+
Object.values(node.properties).forEach(walk);
|
|
8202
|
+
}
|
|
8203
|
+
}
|
|
8204
|
+
walk(rootSchema);
|
|
8205
|
+
// convert to Map<string,string[]>
|
|
8206
|
+
const out = new Map();
|
|
8207
|
+
for (const [k, v] of deps.entries()) out.set(k, [...v]);
|
|
8208
|
+
return out;
|
|
8209
|
+
}
|
|
8210
|
+
|
|
8211
|
+
function getStepStatus(opts) {
|
|
8212
|
+
const {
|
|
8213
|
+
scopes,
|
|
8214
|
+
errors,
|
|
8215
|
+
schema
|
|
8216
|
+
} = opts;
|
|
8217
|
+
const incompleteInStep = getIncompletePaths(errors, scopes);
|
|
8218
|
+
if (incompleteInStep.length > 0) return 'InProgress';
|
|
8219
|
+
const normalizedScopes = scopes.map(normalizeSchemaPath).filter(Boolean);
|
|
8220
|
+
const deps = buildConditionalDeps(schema);
|
|
8221
|
+
const controllersInStep = normalizedScopes.filter(s => deps.has(s));
|
|
8222
|
+
if (controllersInStep.length === 0) return 'Completed';
|
|
8223
|
+
const affected = new Set();
|
|
8224
|
+
for (const c of controllersInStep) {
|
|
8225
|
+
for (const p of deps.get(c) || []) affected.add(p);
|
|
8226
|
+
}
|
|
8227
|
+
if (affected.size === 0) return 'Completed';
|
|
8228
|
+
const affectedPaths = [...affected];
|
|
8229
|
+
for (const err of errors || []) {
|
|
8230
|
+
for (const cand of collectErrorCandidates(err)) {
|
|
8231
|
+
if (affectedPaths.some(p => isUnder(cand, p))) {
|
|
8232
|
+
return 'InProgress';
|
|
8233
|
+
}
|
|
8234
|
+
}
|
|
8235
|
+
}
|
|
8236
|
+
return 'Completed';
|
|
8237
|
+
}
|
|
8238
|
+
function collectErrorCandidates(e) {
|
|
8239
|
+
var _a;
|
|
8240
|
+
const out = [];
|
|
8241
|
+
const missing = (_a = e.params) === null || _a === void 0 ? void 0 : _a.missingProperty;
|
|
8242
|
+
if (e.keyword === 'required' && missing) {
|
|
8243
|
+
const base = normalizeInstancePath(e.instancePath || '');
|
|
8244
|
+
out.push(base ? `${base}.${missing}` : missing);
|
|
8245
|
+
}
|
|
8246
|
+
if (e.instancePath) out.push(normalizeInstancePath(e.instancePath));
|
|
8247
|
+
if (e.dataPath) out.push(normalizeInstancePath(e.dataPath));
|
|
8248
|
+
return out.filter(Boolean);
|
|
8249
|
+
}
|
|
8250
|
+
function isUnder(candidate, path) {
|
|
8251
|
+
return candidate === path || candidate.startsWith(path + '.');
|
|
8252
|
+
}
|
|
8253
|
+
function normalizeSchemaPath(schemaPath) {
|
|
8254
|
+
if (!schemaPath.startsWith('#/')) return '';
|
|
8255
|
+
const parts = schemaPath.replace(/^#\//, '').split('/').filter(p => p !== 'properties');
|
|
8256
|
+
return parts.join('.');
|
|
8257
|
+
}
|
|
8258
|
+
// Normalize instance/data path: "/a/b/0/c" -> "a.b[0].c" or "a.b.c" as you prefer.
|
|
8259
|
+
// For your use case we just want "a.b.c".
|
|
8260
|
+
function normalizeInstancePath(instancePath) {
|
|
8261
|
+
if (!instancePath) return '';
|
|
8262
|
+
const parts = instancePath.replace(/^\//, '').split('/').filter(Boolean);
|
|
8263
|
+
// Drop array indices to keep it simple: "a/0/b" -> "a.b"
|
|
8264
|
+
const filtered = parts.filter(p => !/^\d+$/.test(p));
|
|
8265
|
+
return filtered.join('.');
|
|
8266
|
+
}
|
|
8267
|
+
function getIncompletePaths(errors, scopePaths) {
|
|
8268
|
+
var _a;
|
|
8269
|
+
if (!errors || errors.length === 0) {
|
|
8270
|
+
return [];
|
|
8271
|
+
}
|
|
8272
|
+
const normalizedScopes = scopePaths.map(p => normalizeSchemaPath(p)).filter(p => p && p !== '#');
|
|
8273
|
+
const incomplete = new Set();
|
|
8274
|
+
for (const error of errors) {
|
|
8275
|
+
const missingProperty = (_a = error.params) === null || _a === void 0 ? void 0 : _a.missingProperty;
|
|
8276
|
+
const candidates = [];
|
|
8277
|
+
if (error.keyword === 'required' && missingProperty) {
|
|
8278
|
+
candidates.push(missingProperty);
|
|
8279
|
+
if (error.instancePath) {
|
|
8280
|
+
const base = normalizeInstancePath(error.instancePath);
|
|
8281
|
+
if (base) {
|
|
8282
|
+
candidates.push(`${base}.${missingProperty}`);
|
|
8283
|
+
}
|
|
8284
|
+
}
|
|
8285
|
+
} else {
|
|
8286
|
+
if (error.instancePath) {
|
|
8287
|
+
const p = normalizeInstancePath(error.instancePath);
|
|
8288
|
+
if (p) candidates.push(p);
|
|
8289
|
+
}
|
|
8290
|
+
if (error.dataPath && error.dataPath !== error.instancePath) {
|
|
8291
|
+
const p = normalizeInstancePath(error.dataPath);
|
|
8292
|
+
if (p) candidates.push(p);
|
|
8293
|
+
}
|
|
8294
|
+
}
|
|
8295
|
+
if (!candidates.length) continue;
|
|
8296
|
+
for (const candidate of candidates) {
|
|
8297
|
+
const match = normalizedScopes.find(scope => candidate === scope || candidate.startsWith(scope + '.') || scope.startsWith(candidate + '.'));
|
|
8298
|
+
if (!match) continue;
|
|
8299
|
+
incomplete.add(match);
|
|
8300
|
+
}
|
|
8301
|
+
}
|
|
8302
|
+
const result = [...incomplete];
|
|
8303
|
+
return result;
|
|
8304
|
+
}
|
|
8305
|
+
const getLocalStorageKeyPrefix = () => {
|
|
8306
|
+
return window.location.href + '_' + new Date().toISOString().slice(0, 10);
|
|
8307
|
+
};
|
|
8308
|
+
function isJson(str) {
|
|
8309
|
+
try {
|
|
8310
|
+
JSON.parse(str);
|
|
8311
|
+
} catch (e) {
|
|
8312
|
+
return false;
|
|
8313
|
+
}
|
|
8314
|
+
return true;
|
|
8315
|
+
}
|
|
8316
|
+
const saveIsVisitFromLocalStorage = status => {
|
|
8317
|
+
const key = getLocalStorageKeyPrefix();
|
|
8318
|
+
localStorage.setItem(key, JSON.stringify(status));
|
|
8319
|
+
};
|
|
8320
|
+
const getIsVisitFromLocalStorage = () => {
|
|
8321
|
+
const key = getLocalStorageKeyPrefix();
|
|
8322
|
+
const value = localStorage.getItem(key);
|
|
8323
|
+
if (value && isJson(value)) {
|
|
8324
|
+
return JSON.parse(value);
|
|
8325
|
+
}
|
|
8326
|
+
return undefined;
|
|
8327
|
+
};
|
|
8328
|
+
|
|
8329
|
+
const stepperReducer = (state, action) => {
|
|
8330
|
+
const {
|
|
8331
|
+
activeId,
|
|
8332
|
+
categories
|
|
8333
|
+
} = state;
|
|
8334
|
+
const lastId = categories[categories.length - 1].id;
|
|
8335
|
+
switch (action.type) {
|
|
8336
|
+
case 'update/uischema':
|
|
8337
|
+
{
|
|
8338
|
+
return Object.assign({}, action.payload.state);
|
|
8339
|
+
}
|
|
8340
|
+
case 'page/next':
|
|
8341
|
+
{
|
|
8342
|
+
const newActive = activeId + 1;
|
|
8343
|
+
const newCategories = categories.map((c, idx) => idx === activeId ? Object.assign({}, c, {
|
|
8344
|
+
isVisited: true
|
|
8345
|
+
}) : c);
|
|
8346
|
+
const isOnReview = newActive === lastId + 1;
|
|
8347
|
+
return Object.assign({}, state, {
|
|
8348
|
+
activeId: newActive,
|
|
8349
|
+
categories: newCategories,
|
|
8350
|
+
isOnReview,
|
|
8351
|
+
hasNextButton: !isOnReview,
|
|
8352
|
+
hasPrevButton: newActive !== 0
|
|
8353
|
+
});
|
|
8354
|
+
}
|
|
8355
|
+
case 'page/prev':
|
|
8356
|
+
{
|
|
8357
|
+
const newActive = Math.max(0, activeId - 1);
|
|
8358
|
+
const newCategories = categories.map((c, idx) => idx === activeId ? Object.assign({}, c, {
|
|
8359
|
+
isVisited: true
|
|
8360
|
+
}) : c);
|
|
8361
|
+
return Object.assign({}, state, {
|
|
8362
|
+
activeId: newActive,
|
|
8363
|
+
categories: newCategories,
|
|
8364
|
+
isOnReview: false,
|
|
8365
|
+
hasNextButton: true,
|
|
8366
|
+
hasPrevButton: newActive !== 0
|
|
8367
|
+
});
|
|
8368
|
+
}
|
|
8369
|
+
case 'page/to/index':
|
|
8370
|
+
{
|
|
8371
|
+
const {
|
|
8372
|
+
id
|
|
8373
|
+
} = action.payload;
|
|
8374
|
+
const newActive = id;
|
|
8375
|
+
const newCategories = categories.map((c, idx) => idx === id ? Object.assign({}, c, {
|
|
8376
|
+
isVisited: true
|
|
8377
|
+
}) : c);
|
|
8378
|
+
const isOnReview = newActive === lastId + 1;
|
|
8379
|
+
return Object.assign({}, state, {
|
|
8380
|
+
activeId: newActive,
|
|
8381
|
+
categories: newCategories,
|
|
8382
|
+
isOnReview,
|
|
8383
|
+
hasNextButton: !isOnReview,
|
|
8384
|
+
hasPrevButton: newActive !== 0,
|
|
8385
|
+
maxReachedStep: Math.max(state.maxReachedStep, activeId)
|
|
8386
|
+
});
|
|
8387
|
+
}
|
|
8388
|
+
case 'update/category':
|
|
8389
|
+
{
|
|
8390
|
+
const {
|
|
8391
|
+
id,
|
|
8392
|
+
ajv,
|
|
8393
|
+
errors = [],
|
|
8394
|
+
schema,
|
|
8395
|
+
data
|
|
8396
|
+
} = action.payload;
|
|
8397
|
+
ajv.validate(schema, data);
|
|
8398
|
+
let matched = false;
|
|
8399
|
+
const newCategories = state.categories.map(cat => {
|
|
8400
|
+
var _a;
|
|
8401
|
+
// ✅ compare against cat.id, not the index
|
|
8402
|
+
if (cat.id !== id) {
|
|
8403
|
+
return cat;
|
|
8404
|
+
}
|
|
8405
|
+
matched = true;
|
|
8406
|
+
const status = getStepStatus({
|
|
8407
|
+
scopes: cat.scopes,
|
|
8408
|
+
errors: (_a = ajv.errors) !== null && _a !== void 0 ? _a : [],
|
|
8409
|
+
schema
|
|
8410
|
+
});
|
|
8411
|
+
return Object.assign({}, cat, {
|
|
8412
|
+
isCompleted: status === 'Completed',
|
|
8413
|
+
isValid: status === 'Completed',
|
|
8414
|
+
isVisited: true,
|
|
8415
|
+
status
|
|
8416
|
+
});
|
|
8417
|
+
});
|
|
8418
|
+
if (!matched) {
|
|
8419
|
+
console.warn('[stepper] update/category: no category matched id =', id, 'categories:', state.categories.map(c => c.id));
|
|
8420
|
+
}
|
|
8421
|
+
return Object.assign({}, state, {
|
|
8422
|
+
categories: newCategories
|
|
8423
|
+
});
|
|
8424
|
+
}
|
|
8425
|
+
case 'validate/form':
|
|
8426
|
+
{
|
|
8427
|
+
const {
|
|
8428
|
+
errors = []
|
|
8429
|
+
} = action.payload;
|
|
8430
|
+
return Object.assign({}, state, {
|
|
8431
|
+
isValid: errors.length === 0
|
|
8432
|
+
});
|
|
8433
|
+
}
|
|
8434
|
+
case 'toggle/category/review-link':
|
|
8435
|
+
{
|
|
8436
|
+
const {
|
|
8437
|
+
id
|
|
8438
|
+
} = action.payload;
|
|
8439
|
+
const newCategories = categories.map((cat, idx) => idx === id ? Object.assign({}, cat, {
|
|
8440
|
+
showReviewPageLink: !cat.showReviewPageLink
|
|
8441
|
+
}) : cat);
|
|
8442
|
+
return Object.assign({}, state, {
|
|
8443
|
+
categories: newCategories
|
|
8444
|
+
});
|
|
8445
|
+
}
|
|
8446
|
+
default:
|
|
8447
|
+
return state;
|
|
8448
|
+
}
|
|
8449
|
+
};
|
|
8450
|
+
|
|
8451
|
+
const createStepperContextInitData = props => {
|
|
8452
|
+
var _a, _b, _c, _d;
|
|
8453
|
+
const {
|
|
8454
|
+
uischema,
|
|
8455
|
+
data,
|
|
8456
|
+
schema,
|
|
8457
|
+
ajv,
|
|
8458
|
+
t,
|
|
8459
|
+
path
|
|
8460
|
+
} = props;
|
|
8461
|
+
const categorization = uischema;
|
|
8462
|
+
// run validation once, capture errors
|
|
8463
|
+
const valid = ajv.validate(schema, data || {});
|
|
8464
|
+
(_a = ajv.errors) !== null && _a !== void 0 ? _a : [];
|
|
8465
|
+
const isPage = ((_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.variant) === 'pages';
|
|
8466
|
+
const isCacheStatus = (_c = uischema.options) === null || _c === void 0 ? void 0 : _c.cacheStatus;
|
|
8467
|
+
isCacheStatus && getIsVisitFromLocalStorage() || [];
|
|
8468
|
+
const categories = (_d = categorization.elements) === null || _d === void 0 ? void 0 : _d.map((c, id) => {
|
|
8469
|
+
var _a, _b;
|
|
8470
|
+
const scopes = pickPropertyValues(c, 'scope', 'ListWithDetail');
|
|
8471
|
+
const status = getStepStatus({
|
|
8472
|
+
scopes,
|
|
8473
|
+
errors: (_a = ajv.errors) !== null && _a !== void 0 ? _a : [],
|
|
8474
|
+
schema
|
|
8475
|
+
});
|
|
8476
|
+
return {
|
|
8477
|
+
id,
|
|
8478
|
+
label: (_b = deriveLabelForUISchemaElement(c, t)) !== null && _b !== void 0 ? _b : `Step ${id + 1}`,
|
|
8479
|
+
scopes,
|
|
8480
|
+
isCompleted: status === 'Completed',
|
|
8481
|
+
isValid: status === 'Completed',
|
|
8482
|
+
isVisited: status !== 'NotStarted',
|
|
8483
|
+
status,
|
|
8484
|
+
uischema: c,
|
|
8485
|
+
isEnabled: isEnabled(c, data, '', ajv),
|
|
8486
|
+
visible: isVisible(c, data, '', ajv)
|
|
8487
|
+
};
|
|
8488
|
+
});
|
|
8489
|
+
const activeId = (props === null || props === void 0 ? void 0 : props.activeId) || (isPage ? categories.length + 1 : 0);
|
|
8490
|
+
return {
|
|
8491
|
+
categories: categories,
|
|
8492
|
+
activeId,
|
|
8493
|
+
hasNextButton: activeId !== (categories === null || categories === void 0 ? void 0 : categories.length),
|
|
8494
|
+
hasPrevButton: activeId > 0 && activeId !== (categories === null || categories === void 0 ? void 0 : categories.length),
|
|
8495
|
+
path,
|
|
8496
|
+
isOnReview: activeId === (categories === null || categories === void 0 ? void 0 : categories.length),
|
|
8497
|
+
isValid: valid === true,
|
|
8498
|
+
maxReachedStep: 0
|
|
8499
|
+
};
|
|
8500
|
+
};
|
|
8501
|
+
const JsonFormsStepperContext = /*#__PURE__*/createContext(undefined);
|
|
8502
|
+
const JsonFormsStepperContextProvider = ({
|
|
8503
|
+
children,
|
|
8504
|
+
StepperProps
|
|
8505
|
+
}) => {
|
|
8506
|
+
var _a, _b, _c;
|
|
8507
|
+
const ctx = useJsonForms();
|
|
8508
|
+
/* istanbul ignore next */
|
|
8509
|
+
const {
|
|
8510
|
+
schema,
|
|
8511
|
+
ajv,
|
|
8512
|
+
data,
|
|
8513
|
+
uischema
|
|
8514
|
+
} = StepperProps;
|
|
8515
|
+
const [stepperState, dispatch] = useReducer(stepperReducer, createStepperContextInitData(StepperProps));
|
|
8516
|
+
const stepperDispatch = (StepperProps === null || StepperProps === void 0 ? void 0 : StepperProps.customDispatch) || dispatch;
|
|
8517
|
+
const isCacheStatus = (_a = uischema.options) === null || _a === void 0 ? void 0 : _a.cacheStatus;
|
|
8518
|
+
//prevents infinite loop refresh
|
|
8519
|
+
const doValidatePage = useCallback(id => {
|
|
8520
|
+
var _a;
|
|
8521
|
+
stepperDispatch({
|
|
8522
|
+
type: 'update/category',
|
|
8523
|
+
payload: {
|
|
8524
|
+
errors: (_a = ctx === null || ctx === void 0 ? void 0 : ctx.core) === null || _a === void 0 ? void 0 : _a.errors,
|
|
8525
|
+
id,
|
|
8526
|
+
ajv,
|
|
8527
|
+
schema,
|
|
8528
|
+
data
|
|
8529
|
+
}
|
|
8530
|
+
});
|
|
8531
|
+
}, [stepperDispatch, (_b = ctx === null || ctx === void 0 ? void 0 : ctx.core) === null || _b === void 0 ? void 0 : _b.errors, ajv, schema, data]);
|
|
8532
|
+
const context = useMemo(() => {
|
|
8533
|
+
return {
|
|
8534
|
+
isProvided: true,
|
|
8535
|
+
stepperDispatch,
|
|
8536
|
+
selectStepperState: () => {
|
|
8537
|
+
var _a;
|
|
8538
|
+
return Object.assign({}, stepperState, {
|
|
8539
|
+
categories: (_a = stepperState.categories) === null || _a === void 0 ? void 0 : _a.map(c => {
|
|
8540
|
+
return Object.assign({}, c, {
|
|
8541
|
+
visible: (c === null || c === void 0 ? void 0 : c.uischema) && isVisible(c.uischema, data, '', ajv),
|
|
8542
|
+
isEnabled: (c === null || c === void 0 ? void 0 : c.uischema) && isEnabled(c.uischema, data, '', ajv)
|
|
8543
|
+
});
|
|
8544
|
+
})
|
|
8545
|
+
});
|
|
8546
|
+
},
|
|
8547
|
+
selectIsDisabled: () => {
|
|
8548
|
+
var _a;
|
|
8549
|
+
const category = (_a = stepperState.categories) === null || _a === void 0 ? void 0 : _a[stepperState.activeId];
|
|
8550
|
+
return category === undefined ? false : !(category === null || category === void 0 ? void 0 : category.isEnabled);
|
|
8551
|
+
},
|
|
8552
|
+
selectNumberOfCompletedCategories: () => {
|
|
8553
|
+
return stepperState === null || stepperState === void 0 ? void 0 : stepperState.categories.reduce((acc, cat) => {
|
|
8554
|
+
var _a, _b, _c, _d;
|
|
8555
|
+
return acc + (cat.isValid && cat.isCompleted && cat.isVisited && (cat === null || cat === void 0 ? void 0 : cat.uischema) && (((_b = (_a = cat === null || cat === void 0 ? void 0 : cat.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.showInTaskList) || ((_d = (_c = cat === null || cat === void 0 ? void 0 : cat.uischema) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.showInTaskList) === undefined) && (cat === null || cat === void 0 ? void 0 : cat.uischema) && isVisible(cat.uischema, data, '', ajv) ? 1 : 0);
|
|
8556
|
+
}, 0);
|
|
8557
|
+
},
|
|
8558
|
+
selectIsActive: id => {
|
|
8559
|
+
return id === stepperState.activeId;
|
|
8560
|
+
},
|
|
8561
|
+
selectPath: () => {
|
|
8562
|
+
return stepperState.path;
|
|
8563
|
+
},
|
|
8564
|
+
selectCategory: id => {
|
|
8565
|
+
return stepperState.categories[id];
|
|
8566
|
+
},
|
|
8567
|
+
goToTableOfContext: () => {
|
|
8568
|
+
stepperDispatch({
|
|
8569
|
+
type: 'page/to/index',
|
|
8570
|
+
payload: {
|
|
8571
|
+
id: stepperState.categories.length + 1
|
|
8572
|
+
}
|
|
8573
|
+
});
|
|
8574
|
+
},
|
|
8575
|
+
validatePage: doValidatePage,
|
|
8576
|
+
goToPage: id => {
|
|
8577
|
+
var _a, _b, _c;
|
|
8578
|
+
ajv.validate(schema, ((_a = ctx.core) === null || _a === void 0 ? void 0 : _a.data) || {});
|
|
8579
|
+
// Only update the current category
|
|
8580
|
+
if (!stepperState.isOnReview && id < stepperState.categories.length) {
|
|
8581
|
+
stepperDispatch({
|
|
8582
|
+
type: 'update/category',
|
|
8583
|
+
payload: {
|
|
8584
|
+
errors: (_b = ctx === null || ctx === void 0 ? void 0 : ctx.core) === null || _b === void 0 ? void 0 : _b.errors,
|
|
8585
|
+
id,
|
|
8586
|
+
ajv,
|
|
8587
|
+
schema,
|
|
8588
|
+
data
|
|
8589
|
+
}
|
|
8590
|
+
});
|
|
8591
|
+
}
|
|
8592
|
+
stepperDispatch({
|
|
8593
|
+
type: 'validate/form',
|
|
8594
|
+
payload: {
|
|
8595
|
+
errors: (_c = ctx === null || ctx === void 0 ? void 0 : ctx.core) === null || _c === void 0 ? void 0 : _c.errors
|
|
8596
|
+
}
|
|
8597
|
+
});
|
|
8598
|
+
stepperDispatch({
|
|
8599
|
+
type: 'page/to/index',
|
|
8600
|
+
payload: {
|
|
8601
|
+
id
|
|
8602
|
+
}
|
|
8603
|
+
});
|
|
8604
|
+
},
|
|
8605
|
+
toggleShowReviewLink: id => {
|
|
8606
|
+
stepperDispatch({
|
|
8607
|
+
type: 'toggle/category/review-link',
|
|
8608
|
+
payload: {
|
|
8609
|
+
id
|
|
8610
|
+
}
|
|
8611
|
+
});
|
|
8612
|
+
}
|
|
8613
|
+
};
|
|
8614
|
+
}, [stepperDispatch, stepperState, (_c = ctx.core) === null || _c === void 0 ? void 0 : _c.errors, ajv, schema, data]);
|
|
8615
|
+
/* istanbul ignore next */
|
|
8616
|
+
useEffect(() => {
|
|
8617
|
+
const handleBeforeUnload = () => {
|
|
8618
|
+
var _a;
|
|
8619
|
+
if (isCacheStatus) {
|
|
8620
|
+
saveIsVisitFromLocalStorage(((_a = stepperState === null || stepperState === void 0 ? void 0 : stepperState.categories) === null || _a === void 0 ? void 0 : _a.map(c => c === null || c === void 0 ? void 0 : c.isVisited)) || []);
|
|
8621
|
+
}
|
|
8622
|
+
};
|
|
8623
|
+
window.addEventListener('beforeunload', handleBeforeUnload);
|
|
8624
|
+
return () => {
|
|
8625
|
+
window.removeEventListener('beforeunload', handleBeforeUnload);
|
|
8626
|
+
};
|
|
8627
|
+
}, [stepperState]);
|
|
8628
|
+
useEffect(() => {
|
|
8629
|
+
if ((context === null || context === void 0 ? void 0 : context.isProvided) === true) {
|
|
8630
|
+
/* The block is used to cache the state for the tenant web app review editor */
|
|
8631
|
+
stepperDispatch({
|
|
8632
|
+
type: 'update/uischema',
|
|
8633
|
+
payload: {
|
|
8634
|
+
state: createStepperContextInitData(Object.assign({}, StepperProps, {
|
|
8635
|
+
activeId: Math.min(stepperState === null || stepperState === void 0 ? void 0 : stepperState.activeId, stepperState.maxReachedStep)
|
|
8636
|
+
}))
|
|
8637
|
+
}
|
|
8638
|
+
});
|
|
8639
|
+
if (stepperState.activeId !== stepperState.categories.length + 1) {
|
|
8640
|
+
context.goToPage(stepperState.maxReachedStep);
|
|
8641
|
+
context.goToPage(stepperState.activeId);
|
|
8642
|
+
}
|
|
8643
|
+
}
|
|
8644
|
+
}, [JSON.stringify(StepperProps.uischema), JSON.stringify(StepperProps.schema)]);
|
|
8645
|
+
return jsx(JsonFormsStepperContext.Provider, {
|
|
8646
|
+
value: context,
|
|
8647
|
+
children: children
|
|
8703
8648
|
});
|
|
8704
|
-
return result;
|
|
8705
8649
|
};
|
|
8706
8650
|
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
var
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8651
|
+
const summaryLabel = 'Summary';
|
|
8652
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8653
|
+
const FormStepper = props => {
|
|
8654
|
+
const formStepperCtx = useContext(JsonFormsStepperContext);
|
|
8655
|
+
const memoStepperProps = useMemo(() => Object.assign({}, props), [props]);
|
|
8656
|
+
/**
|
|
8657
|
+
* StepperCtx can only be provided once to prevent issues from categorization in categorization
|
|
8658
|
+
* */
|
|
8659
|
+
// eslint-disable-next-line
|
|
8660
|
+
useEffect(() => {}, [formStepperCtx === null || formStepperCtx === void 0 ? void 0 : formStepperCtx.isProvided]);
|
|
8661
|
+
if ((formStepperCtx === null || formStepperCtx === void 0 ? void 0 : formStepperCtx.isProvided) === true) {
|
|
8662
|
+
return jsx(FormStepperView, Object.assign({}, props));
|
|
8663
|
+
}
|
|
8664
|
+
return jsx(JsonFormsStepperContextProvider, {
|
|
8665
|
+
StepperProps: memoStepperProps,
|
|
8666
|
+
children: jsx(FormStepperView, Object.assign({}, props))
|
|
8667
|
+
});
|
|
8668
|
+
};
|
|
8669
|
+
const FormStepperView = props => {
|
|
8670
|
+
var _a;
|
|
8671
|
+
const {
|
|
8672
|
+
uischema,
|
|
8673
|
+
data,
|
|
8674
|
+
schema,
|
|
8675
|
+
path,
|
|
8676
|
+
cells,
|
|
8677
|
+
renderers,
|
|
8678
|
+
visible,
|
|
8679
|
+
t
|
|
8680
|
+
} = props;
|
|
8681
|
+
const enumerators = useContext(JsonFormContext);
|
|
8682
|
+
const formStepperCtx = useContext(JsonFormsStepperContext);
|
|
8683
|
+
const {
|
|
8684
|
+
activeId,
|
|
8685
|
+
categories,
|
|
8686
|
+
hasNextButton,
|
|
8687
|
+
hasPrevButton,
|
|
8688
|
+
isOnReview,
|
|
8689
|
+
isValid
|
|
8690
|
+
} = formStepperCtx.selectStepperState();
|
|
8691
|
+
const {
|
|
8692
|
+
selectIsDisabled,
|
|
8693
|
+
goToPage
|
|
8694
|
+
} = formStepperCtx;
|
|
8695
|
+
const submitFormFunction = enumerators === null || enumerators === void 0 ? void 0 : enumerators.submitFunction.get('submit-form');
|
|
8696
|
+
const submitForm = submitFormFunction && submitFormFunction();
|
|
8697
|
+
const optionProps = uischema.options || {};
|
|
8698
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
8699
|
+
const headersRef = useRef([]);
|
|
8700
|
+
const handleSubmit = () => {
|
|
8701
|
+
if (submitForm) {
|
|
8702
|
+
submitForm(data);
|
|
8703
|
+
} else {
|
|
8704
|
+
setIsOpen(true);
|
|
8705
|
+
}
|
|
8706
|
+
};
|
|
8707
|
+
const onCloseModal = () => {
|
|
8708
|
+
setIsOpen(false);
|
|
8709
|
+
};
|
|
8710
|
+
return jsxs("div", {
|
|
8711
|
+
"data-testid": "form-stepper-test-wrapper",
|
|
8712
|
+
children: [jsx(Visible, {
|
|
8713
|
+
visible: visible,
|
|
8714
|
+
children: jsxs("div", {
|
|
8715
|
+
id: `${path || `goa`}-form-stepper`,
|
|
8716
|
+
className: "formStepper",
|
|
8717
|
+
children: [jsxs(GoAFormStepper, {
|
|
8718
|
+
testId: `form-stepper-headers-${(_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.testId}` || 'form-stepper-test',
|
|
8719
|
+
onChange: step => {
|
|
8720
|
+
goToPage(step - 1);
|
|
8721
|
+
},
|
|
8722
|
+
children: [categories === null || categories === void 0 ? void 0 : categories.map((c, index) => {
|
|
8723
|
+
return jsx("div", {
|
|
8724
|
+
ref: el => headersRef.current[index] = el,
|
|
8725
|
+
children: jsx(GoAFormStep, {
|
|
8726
|
+
"data-testid": `stepper-tab-${index}`,
|
|
8727
|
+
text: `${c.label}`,
|
|
8728
|
+
status: c.isVisited ? c.isCompleted && c.isValid ? 'complete' : 'incomplete' : undefined
|
|
8729
|
+
}, `stepper-tab-${index}`)
|
|
8730
|
+
});
|
|
8731
|
+
}), jsx("div", {
|
|
8732
|
+
ref: el => headersRef.current[categories.length] = el,
|
|
8733
|
+
children: jsx(GoAFormStep, {
|
|
8734
|
+
text: "Review"
|
|
8735
|
+
}, `stepper-tab-review`)
|
|
8736
|
+
})]
|
|
8737
|
+
}, "stepper-form-stepper-wrapper"), jsxs(GoAPages, {
|
|
8738
|
+
current: activeId + 1,
|
|
8739
|
+
mb: "xl",
|
|
8740
|
+
children: [categories === null || categories === void 0 ? void 0 : categories.map((category, index) => {
|
|
8741
|
+
const props = {
|
|
8742
|
+
category: category.uischema,
|
|
8743
|
+
categoryIndex: category.id,
|
|
8744
|
+
visible: category === null || category === void 0 ? void 0 : category.visible,
|
|
8745
|
+
enabled: category === null || category === void 0 ? void 0 : category.isEnabled,
|
|
8746
|
+
path,
|
|
8747
|
+
schema,
|
|
8748
|
+
renderers,
|
|
8749
|
+
cells,
|
|
8750
|
+
data
|
|
8751
|
+
};
|
|
8752
|
+
return jsx("div", {
|
|
8753
|
+
"data-testid": `step_${index}-content`,
|
|
8754
|
+
style: {
|
|
8755
|
+
marginTop: '1.5rem'
|
|
8756
|
+
},
|
|
8757
|
+
children: jsx(RenderStepElements, Object.assign({}, props))
|
|
8758
|
+
}, `${category.label}`);
|
|
8759
|
+
}), jsxs("div", {
|
|
8760
|
+
"data-testid": "summary_step-content",
|
|
8761
|
+
children: [jsx(FormStepperSummaryH3, {
|
|
8762
|
+
children: summaryLabel
|
|
8763
|
+
}), jsx(FormStepperReviewer, Object.assign({}, props, {
|
|
8764
|
+
navigationFunc: goToPage
|
|
8765
|
+
}))]
|
|
8766
|
+
})]
|
|
8767
|
+
}), jsxs(GoAGrid, {
|
|
8768
|
+
minChildWidth: "100px",
|
|
8769
|
+
children: [jsx("div", {
|
|
8770
|
+
children: hasPrevButton ? jsx(GoAButton, {
|
|
8771
|
+
type: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonType) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonType : 'secondary',
|
|
8772
|
+
disabled: selectIsDisabled(),
|
|
8773
|
+
onClick: () => {
|
|
8774
|
+
var _a, _b, _c, _d;
|
|
8775
|
+
const element = document.getElementById(`${path || `goa`}-form-stepper`);
|
|
8776
|
+
if (element) {
|
|
8777
|
+
element.scrollIntoView();
|
|
8778
|
+
}
|
|
8779
|
+
// switched from input to button - i'm writing this comment to trigger deployment
|
|
8780
|
+
headersRef.current[activeId - 1] && ((_d = (_c = (_b = (_a = headersRef.current[activeId - 1]) === null || _a === void 0 ? void 0 : _a.querySelector('goa-form-step')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('button')) === null || _d === void 0 ? void 0 : _d.click());
|
|
8781
|
+
},
|
|
8782
|
+
testId: "prev-button",
|
|
8783
|
+
children: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonLabel) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.previousButtonLabel : 'Previous'
|
|
8784
|
+
}) : jsx("div", {})
|
|
8785
|
+
}), hasNextButton && jsx(RightAlignmentDiv, {
|
|
8786
|
+
children: jsx(GoAButton, {
|
|
8787
|
+
type: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.nextButtonType) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.nextButtonType : 'primary',
|
|
8788
|
+
disabled: selectIsDisabled(),
|
|
8789
|
+
onClick: () => {
|
|
8790
|
+
var _a, _b, _c, _d;
|
|
8791
|
+
headersRef.current[activeId + 1] && ((_d = (_c = (_b = (_a = headersRef.current[activeId + 1]) === null || _a === void 0 ? void 0 : _a.querySelector('goa-form-step')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('button')) === null || _d === void 0 ? void 0 : _d.click());
|
|
8792
|
+
const element = document.getElementById(`${path || `goa`}-form-stepper`);
|
|
8793
|
+
if (element) {
|
|
8794
|
+
element.scrollIntoView();
|
|
8795
|
+
}
|
|
8796
|
+
},
|
|
8797
|
+
testId: "next-button",
|
|
8798
|
+
children: (optionProps === null || optionProps === void 0 ? void 0 : optionProps.nextButtonLabel) ? optionProps === null || optionProps === void 0 ? void 0 : optionProps.nextButtonLabel : 'Next'
|
|
8799
|
+
})
|
|
8800
|
+
}), isOnReview && jsx(RightAlignmentDiv, {
|
|
8801
|
+
children: jsx("div", {
|
|
8802
|
+
children: jsx(GoAButton, {
|
|
8803
|
+
type: 'primary',
|
|
8804
|
+
onClick: handleSubmit,
|
|
8805
|
+
disabled: !isValid,
|
|
8806
|
+
testId: "stepper-submit-btn",
|
|
8807
|
+
children: "Submit"
|
|
8808
|
+
})
|
|
8809
|
+
})
|
|
8810
|
+
})]
|
|
8811
|
+
})]
|
|
8812
|
+
})
|
|
8813
|
+
}), jsxs(GoAModal, {
|
|
8814
|
+
testId: "submit-confirmation",
|
|
8815
|
+
open: isOpen,
|
|
8816
|
+
heading: 'Form Submitted',
|
|
8817
|
+
width: "640px",
|
|
8818
|
+
actions: jsx(GoAButtonGroup, {
|
|
8819
|
+
alignment: "end",
|
|
8820
|
+
children: jsx(GoAButton, {
|
|
8821
|
+
type: "primary",
|
|
8822
|
+
testId: "close-submit-modal",
|
|
8823
|
+
onClick: onCloseModal,
|
|
8824
|
+
children: "Close"
|
|
8825
|
+
})
|
|
8826
|
+
}),
|
|
8827
|
+
children: [jsx("b", {
|
|
8828
|
+
children: "Submit is a test for preview purposes "
|
|
8829
|
+
}), "(i.e. no actual form is being submitted)"]
|
|
8830
|
+
})]
|
|
8731
8831
|
});
|
|
8732
|
-
return result;
|
|
8733
8832
|
};
|
|
8833
|
+
const FormStepperControl = withAjvProps(withTranslateProps(withJsonFormsLayoutProps(FormStepper)));
|
|
8734
8834
|
|
|
8735
|
-
var $$
|
|
8736
|
-
var
|
|
8737
|
-
var
|
|
8835
|
+
var $$5 = _export;
|
|
8836
|
+
var iterate$1 = iterate$a;
|
|
8837
|
+
var aCallable$2 = aCallable$j;
|
|
8838
|
+
var anObject$2 = anObject$s;
|
|
8839
|
+
var getIteratorDirect$2 = getIteratorDirect$a;
|
|
8738
8840
|
|
|
8739
|
-
// `
|
|
8740
|
-
// https://github.com/tc39/proposal-
|
|
8741
|
-
$$
|
|
8742
|
-
|
|
8841
|
+
// `Iterator.prototype.every` method
|
|
8842
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
8843
|
+
$$5({ target: 'Iterator', proto: true, real: true }, {
|
|
8844
|
+
every: function every(predicate) {
|
|
8845
|
+
anObject$2(this);
|
|
8846
|
+
aCallable$2(predicate);
|
|
8847
|
+
var record = getIteratorDirect$2(this);
|
|
8848
|
+
var counter = 0;
|
|
8849
|
+
return !iterate$1(record, function (value, stop) {
|
|
8850
|
+
if (!predicate(value, counter++)) return stop();
|
|
8851
|
+
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
|
|
8852
|
+
}
|
|
8743
8853
|
});
|
|
8744
8854
|
|
|
8745
8855
|
const ApplicationStatus = ({
|
|
@@ -8916,31 +9026,34 @@ function mergeOrphanSections(sections) {
|
|
|
8916
9026
|
}
|
|
8917
9027
|
return result;
|
|
8918
9028
|
}
|
|
8919
|
-
function expandSections(inputArray) {
|
|
8920
|
-
if (!(inputArray === null || inputArray === void 0 ? void 0 : inputArray.length)) return [];
|
|
8921
|
-
const original = inputArray[0];
|
|
8922
|
-
const categories = original.categories || [];
|
|
8923
|
-
return categories.map(cat => ({
|
|
8924
|
-
sectionTitle: `${cat.label} Section`,
|
|
8925
|
-
categories: [cat]
|
|
8926
|
-
}));
|
|
8927
|
-
}
|
|
8928
9029
|
const shouldShow = cat => {
|
|
8929
9030
|
var _a, _b;
|
|
8930
9031
|
return ((_b = (_a = cat === null || cat === void 0 ? void 0 : cat.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.showInTaskList) !== false;
|
|
8931
9032
|
};
|
|
9033
|
+
const isInTaskList = cat => {
|
|
9034
|
+
var _a, _b;
|
|
9035
|
+
return ((_b = (_a = cat === null || cat === void 0 ? void 0 : cat.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.showInTaskList) !== false;
|
|
9036
|
+
};
|
|
8932
9037
|
function updateCompletion(group, index) {
|
|
8933
9038
|
const category = group[index];
|
|
8934
|
-
if (!
|
|
9039
|
+
if (!isInTaskList(category)) return category;
|
|
8935
9040
|
let endIndex = index;
|
|
8936
|
-
while (endIndex + 1 < group.length && !
|
|
9041
|
+
while (endIndex + 1 < group.length && !isInTaskList(group[endIndex + 1])) {
|
|
8937
9042
|
endIndex++;
|
|
8938
9043
|
}
|
|
8939
|
-
const relevant = group.slice(index, endIndex + 1);
|
|
8940
|
-
|
|
8941
|
-
|
|
9044
|
+
const relevant = group.slice(index, endIndex + 1);
|
|
9045
|
+
// A task is "completed" iff:
|
|
9046
|
+
// - the main row itself isCompleted, AND
|
|
9047
|
+
// - every detail page that is currently visible is also completed.
|
|
9048
|
+
const newIsCompleted = category.isCompleted && relevant.every(cat => !cat.visible || cat.isCompleted);
|
|
9049
|
+
// If nothing changed, keep the same reference
|
|
9050
|
+
if (category.isCompleted === newIsCompleted) {
|
|
9051
|
+
return category;
|
|
9052
|
+
}
|
|
9053
|
+
// Otherwise, update the flag (and optionally keep status in sync)
|
|
8942
9054
|
return Object.assign({}, category, {
|
|
8943
|
-
isCompleted: newIsCompleted
|
|
9055
|
+
isCompleted: newIsCompleted,
|
|
9056
|
+
isValid: newIsCompleted ? category.isValid : false
|
|
8944
9057
|
});
|
|
8945
9058
|
}
|
|
8946
9059
|
const TaskList = ({
|
|
@@ -8954,10 +9067,7 @@ const TaskList = ({
|
|
|
8954
9067
|
const testid = 'table-of-contents';
|
|
8955
9068
|
// Merge and expand sections
|
|
8956
9069
|
const mergedSections = useMemo(() => {
|
|
8957
|
-
|
|
8958
|
-
if (sections.length === 1) {
|
|
8959
|
-
sections = expandSections(sections);
|
|
8960
|
-
}
|
|
9070
|
+
const sections = mergeOrphanSections(getCategorySections(categories));
|
|
8961
9071
|
return sections;
|
|
8962
9072
|
}, [categories]);
|
|
8963
9073
|
const totalPages = useMemo(() => mergedSections.reduce((count, section) => count + section.categories.filter(shouldShow).length, 0), [mergedSections]);
|
|
@@ -8969,14 +9079,12 @@ const TaskList = ({
|
|
|
8969
9079
|
"data-testid": testid,
|
|
8970
9080
|
children: [title && jsx(GoAText, {
|
|
8971
9081
|
size: "heading-xl",
|
|
8972
|
-
ml: "xl",
|
|
8973
9082
|
mb: "xl",
|
|
8974
9083
|
children: title
|
|
8975
9084
|
}), subtitle && jsx(GoAText, {
|
|
8976
9085
|
size: "heading-l",
|
|
8977
9086
|
mt: "none",
|
|
8978
9087
|
mb: "xl",
|
|
8979
|
-
ml: "xl",
|
|
8980
9088
|
children: subtitle
|
|
8981
9089
|
}), jsx(ApplicationStatus, {
|
|
8982
9090
|
completedGroups: completedPages,
|
|
@@ -9772,13 +9880,13 @@ const FileUploaderStyle = styled.div(_t5$2 || (_t5$2 = _2`
|
|
|
9772
9880
|
|
|
9773
9881
|
const FileUploaderTester = rankWith(3, and(schemaTypeIs('string'), formatIs('file-urn')));
|
|
9774
9882
|
|
|
9775
|
-
var $$
|
|
9883
|
+
var $$4 = _export;
|
|
9776
9884
|
var iterate = iterate$a;
|
|
9777
9885
|
var createProperty = createProperty$2;
|
|
9778
9886
|
|
|
9779
9887
|
// `Object.fromEntries` method
|
|
9780
9888
|
// https://github.com/tc39/proposal-object-from-entries
|
|
9781
|
-
$$
|
|
9889
|
+
$$4({ target: 'Object', stat: true }, {
|
|
9782
9890
|
fromEntries: function fromEntries(iterable) {
|
|
9783
9891
|
var obj = {};
|
|
9784
9892
|
iterate(iterable, function (k, v) {
|
|
@@ -9811,12 +9919,12 @@ var numberParseInt = FORCED ? function parseInt(string, radix) {
|
|
|
9811
9919
|
return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
|
9812
9920
|
} : $parseInt$1;
|
|
9813
9921
|
|
|
9814
|
-
var $$
|
|
9922
|
+
var $$3 = _export;
|
|
9815
9923
|
var $parseInt = numberParseInt;
|
|
9816
9924
|
|
|
9817
9925
|
// `parseInt` method
|
|
9818
9926
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
9819
|
-
$$
|
|
9927
|
+
$$3({ global: true, forced: parseInt !== $parseInt }, {
|
|
9820
9928
|
parseInt: $parseInt
|
|
9821
9929
|
});
|
|
9822
9930
|
|
|
@@ -10299,9 +10407,11 @@ const GenerateRows$1 = (Cell, schema, rowPath, enabled, openDeleteDialog, handle
|
|
|
10299
10407
|
handleChange,
|
|
10300
10408
|
data
|
|
10301
10409
|
};
|
|
10302
|
-
return jsx(
|
|
10303
|
-
|
|
10304
|
-
|
|
10410
|
+
return jsx(ListWithDetailsReviewCellDiv, {
|
|
10411
|
+
children: jsx(Cell, Object.assign({}, props, {
|
|
10412
|
+
count: count || 0
|
|
10413
|
+
}), rowPath)
|
|
10414
|
+
});
|
|
10305
10415
|
}
|
|
10306
10416
|
};
|
|
10307
10417
|
const getValidColumnProps$1 = scopedSchema => {
|
|
@@ -10865,7 +10975,98 @@ const ArrayControlReview = props => {
|
|
|
10865
10975
|
const GoAArrayControlRenderer = withJsonFormsControlProps(ArrayControlBase);
|
|
10866
10976
|
const GoAArrayControlReviewRenderer = withJsonFormsControlProps(ArrayControlReview);
|
|
10867
10977
|
|
|
10978
|
+
var $$2 = _export;
|
|
10979
|
+
var flattenIntoArray = flattenIntoArray_1;
|
|
10980
|
+
var aCallable$1 = aCallable$j;
|
|
10981
|
+
var toObject = toObject$9;
|
|
10982
|
+
var lengthOfArrayLike = lengthOfArrayLike$8;
|
|
10983
|
+
var arraySpeciesCreate = arraySpeciesCreate$2;
|
|
10984
|
+
|
|
10985
|
+
// `Array.prototype.flatMap` method
|
|
10986
|
+
// https://tc39.es/ecma262/#sec-array.prototype.flatmap
|
|
10987
|
+
$$2({ target: 'Array', proto: true }, {
|
|
10988
|
+
flatMap: function flatMap(callbackfn /* , thisArg */) {
|
|
10989
|
+
var O = toObject(this);
|
|
10990
|
+
var sourceLen = lengthOfArrayLike(O);
|
|
10991
|
+
var A;
|
|
10992
|
+
aCallable$1(callbackfn);
|
|
10993
|
+
A = arraySpeciesCreate(O, 0);
|
|
10994
|
+
A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
10995
|
+
return A;
|
|
10996
|
+
}
|
|
10997
|
+
});
|
|
10998
|
+
|
|
10999
|
+
// this method was added to unscopables after implementation
|
|
11000
|
+
// in popular engines, so it's moved to a separate module
|
|
11001
|
+
var addToUnscopables = addToUnscopables$5;
|
|
11002
|
+
|
|
11003
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
11004
|
+
addToUnscopables('flatMap');
|
|
11005
|
+
|
|
11006
|
+
var call$1 = functionCall;
|
|
11007
|
+
var anObject$1 = anObject$s;
|
|
11008
|
+
var getIteratorDirect$1 = getIteratorDirect$a;
|
|
11009
|
+
var getIteratorMethod = getIteratorMethod$3;
|
|
11010
|
+
|
|
11011
|
+
var getIteratorFlattenable$1 = function (obj, stringHandling) {
|
|
11012
|
+
if (!stringHandling || typeof obj !== 'string') anObject$1(obj);
|
|
11013
|
+
var method = getIteratorMethod(obj);
|
|
11014
|
+
return getIteratorDirect$1(anObject$1(method !== undefined ? call$1(method, obj) : obj));
|
|
11015
|
+
};
|
|
11016
|
+
|
|
11017
|
+
var $$1 = _export;
|
|
11018
|
+
var call = functionCall;
|
|
11019
|
+
var aCallable = aCallable$j;
|
|
11020
|
+
var anObject = anObject$s;
|
|
11021
|
+
var getIteratorDirect = getIteratorDirect$a;
|
|
11022
|
+
var getIteratorFlattenable = getIteratorFlattenable$1;
|
|
11023
|
+
var createIteratorProxy = iteratorCreateProxy;
|
|
11024
|
+
var iteratorClose = iteratorClose$6;
|
|
11025
|
+
var IS_PURE = isPure;
|
|
11026
|
+
|
|
11027
|
+
var IteratorProxy = createIteratorProxy(function () {
|
|
11028
|
+
var iterator = this.iterator;
|
|
11029
|
+
var mapper = this.mapper;
|
|
11030
|
+
var result, inner;
|
|
11031
|
+
|
|
11032
|
+
while (true) {
|
|
11033
|
+
if (inner = this.inner) try {
|
|
11034
|
+
result = anObject(call(inner.next, inner.iterator));
|
|
11035
|
+
if (!result.done) return result.value;
|
|
11036
|
+
this.inner = null;
|
|
11037
|
+
} catch (error) { iteratorClose(iterator, 'throw', error); }
|
|
11038
|
+
|
|
11039
|
+
result = anObject(call(this.next, iterator));
|
|
11040
|
+
|
|
11041
|
+
if (this.done = !!result.done) return;
|
|
11042
|
+
|
|
11043
|
+
try {
|
|
11044
|
+
this.inner = getIteratorFlattenable(mapper(result.value, this.counter++), false);
|
|
11045
|
+
} catch (error) { iteratorClose(iterator, 'throw', error); }
|
|
11046
|
+
}
|
|
11047
|
+
});
|
|
11048
|
+
|
|
11049
|
+
// `Iterator.prototype.flatMap` method
|
|
11050
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
11051
|
+
$$1({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
|
11052
|
+
flatMap: function flatMap(mapper) {
|
|
11053
|
+
anObject(this);
|
|
11054
|
+
aCallable(mapper);
|
|
11055
|
+
return new IteratorProxy(getIteratorDirect(this), {
|
|
11056
|
+
mapper: mapper,
|
|
11057
|
+
inner: null
|
|
11058
|
+
});
|
|
11059
|
+
}
|
|
11060
|
+
});
|
|
11061
|
+
|
|
10868
11062
|
const _excluded$1 = ["label", "path", "schema", "rootSchema", "uischema", "errors", "openDeleteDialog", "visible", "enabled", "cells", "data", "config"];
|
|
11063
|
+
const getItemsTitle = schema => {
|
|
11064
|
+
const items = schema === null || schema === void 0 ? void 0 : schema.items;
|
|
11065
|
+
if (items && !Array.isArray(items) && typeof items === 'object') {
|
|
11066
|
+
return items.title;
|
|
11067
|
+
}
|
|
11068
|
+
return undefined;
|
|
11069
|
+
};
|
|
10869
11070
|
// eslint-disable-next-line
|
|
10870
11071
|
const extractScopesFromUISchema = uischema => {
|
|
10871
11072
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -11129,6 +11330,38 @@ const MainItemComponent = ({
|
|
|
11129
11330
|
})
|
|
11130
11331
|
});
|
|
11131
11332
|
};
|
|
11333
|
+
function isControlElement(element) {
|
|
11334
|
+
return element.type === 'Control';
|
|
11335
|
+
}
|
|
11336
|
+
function isLayoutElement(element) {
|
|
11337
|
+
return 'elements' in element;
|
|
11338
|
+
}
|
|
11339
|
+
function extractPaths(uiSchema) {
|
|
11340
|
+
if (!uiSchema) {
|
|
11341
|
+
return [];
|
|
11342
|
+
}
|
|
11343
|
+
if (isControlElement(uiSchema)) {
|
|
11344
|
+
return uiSchema.scope ? [toDataPath(uiSchema.scope)] : [];
|
|
11345
|
+
}
|
|
11346
|
+
if (isLayoutElement(uiSchema)) {
|
|
11347
|
+
return uiSchema.elements.flatMap(extractPaths);
|
|
11348
|
+
}
|
|
11349
|
+
return [];
|
|
11350
|
+
}
|
|
11351
|
+
function getValue(obj, path) {
|
|
11352
|
+
return path.split('.').reduce((acc, key) => acc && typeof acc === 'object' ? acc[key] : undefined, obj);
|
|
11353
|
+
}
|
|
11354
|
+
function orderRowData(rowData, detailUiSchema) {
|
|
11355
|
+
const orderedPaths = extractPaths(detailUiSchema);
|
|
11356
|
+
const ordered = {};
|
|
11357
|
+
for (const path of orderedPaths) {
|
|
11358
|
+
const value = getValue(rowData, path);
|
|
11359
|
+
if (value !== undefined) {
|
|
11360
|
+
ordered[path] = value;
|
|
11361
|
+
}
|
|
11362
|
+
}
|
|
11363
|
+
return ordered;
|
|
11364
|
+
}
|
|
11132
11365
|
const MainTab = ({
|
|
11133
11366
|
childPath,
|
|
11134
11367
|
rowIndex,
|
|
@@ -11137,16 +11370,18 @@ const MainTab = ({
|
|
|
11137
11370
|
enabled,
|
|
11138
11371
|
currentTab,
|
|
11139
11372
|
current,
|
|
11140
|
-
setCurrentListPage
|
|
11373
|
+
setCurrentListPage,
|
|
11374
|
+
uischema
|
|
11141
11375
|
}) => {
|
|
11142
|
-
var _a;
|
|
11376
|
+
var _a, _b;
|
|
11143
11377
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
11144
11378
|
const getDataAtPath = (data, path) => path.replace(/\[(\d+)\]/g, '.$1').split('.').reduce((acc, key) => acc ? acc[key] : undefined, data);
|
|
11145
11379
|
const {
|
|
11146
11380
|
core
|
|
11147
11381
|
} = useJsonForms();
|
|
11148
11382
|
const rowData = getDataAtPath(core === null || core === void 0 ? void 0 : core.data, childPath);
|
|
11149
|
-
const
|
|
11383
|
+
const orderedRowData = orderRowData(rowData, (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.detail);
|
|
11384
|
+
const rowErrors = (_b = core === null || core === void 0 ? void 0 : core.errors) === null || _b === void 0 ? void 0 : _b.filter(e => {
|
|
11150
11385
|
const base = `/${childPath.replace(/\./g, '/')}`;
|
|
11151
11386
|
return e.instancePath === base || e.instancePath.startsWith(base + '/');
|
|
11152
11387
|
}).map(e => {
|
|
@@ -11158,7 +11393,7 @@ const MainTab = ({
|
|
|
11158
11393
|
children: (rowErrors === null || rowErrors === void 0 ? void 0 : rowErrors.length) ? jsx(GoAFormItem, {
|
|
11159
11394
|
error: (rowErrors === null || rowErrors === void 0 ? void 0 : rowErrors.length) ? rowErrors : null,
|
|
11160
11395
|
children: jsx(MainItemComponent, {
|
|
11161
|
-
rowData:
|
|
11396
|
+
rowData: orderedRowData,
|
|
11162
11397
|
childPath: childPath,
|
|
11163
11398
|
rowIndex: rowIndex,
|
|
11164
11399
|
openDeleteDialog: openDeleteDialog,
|
|
@@ -11169,7 +11404,7 @@ const MainTab = ({
|
|
|
11169
11404
|
setCurrentListPage: setCurrentListPage
|
|
11170
11405
|
})
|
|
11171
11406
|
}) : jsx(MainItemComponent, {
|
|
11172
|
-
rowData:
|
|
11407
|
+
rowData: orderedRowData,
|
|
11173
11408
|
childPath: childPath,
|
|
11174
11409
|
rowIndex: rowIndex,
|
|
11175
11410
|
openDeleteDialog: openDeleteDialog,
|
|
@@ -11247,7 +11482,8 @@ const ObjectArrayList = ({
|
|
|
11247
11482
|
selectCurrentTab: selectCurrentTab,
|
|
11248
11483
|
enabled: enabled,
|
|
11249
11484
|
current: current,
|
|
11250
|
-
setCurrentListPage: index => setCurrentListPage(index)
|
|
11485
|
+
setCurrentListPage: index => setCurrentListPage(index),
|
|
11486
|
+
uischema: uischema
|
|
11251
11487
|
}, childPath);
|
|
11252
11488
|
})
|
|
11253
11489
|
}), currentListPage > 0 && jsxs(UpdateListContainer, {
|
|
@@ -11255,7 +11491,7 @@ const ObjectArrayList = ({
|
|
|
11255
11491
|
ref: rightRef,
|
|
11256
11492
|
tabIndex: -1,
|
|
11257
11493
|
children: [jsx(ObjectArrayTitle, {
|
|
11258
|
-
children:
|
|
11494
|
+
children: listTitle
|
|
11259
11495
|
}), jsx(NonEmptyList, {
|
|
11260
11496
|
childPath: Paths.compose(path, `${currentIndex}`),
|
|
11261
11497
|
rowIndex: currentIndex,
|
|
@@ -11320,7 +11556,7 @@ class ListWithDetailControl extends React.Component {
|
|
|
11320
11556
|
};
|
|
11321
11557
|
}
|
|
11322
11558
|
render() {
|
|
11323
|
-
var _a;
|
|
11559
|
+
var _a, _b, _c, _d, _e;
|
|
11324
11560
|
const _this$props = this.props,
|
|
11325
11561
|
{
|
|
11326
11562
|
label,
|
|
@@ -11339,7 +11575,7 @@ class ListWithDetailControl extends React.Component {
|
|
|
11339
11575
|
additionalProps = _objectWithoutPropertiesLoose(_this$props, _excluded$1);
|
|
11340
11576
|
const controlElement = uischema;
|
|
11341
11577
|
// eslint-disable-next-line
|
|
11342
|
-
const listTitle =
|
|
11578
|
+
const listTitle = (_e = (_d = (_c = (_a = uischema === null || uischema === void 0 ? void 0 : uischema.label) !== null && _a !== void 0 ? _a : (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : getItemsTitle(schema)) !== null && _d !== void 0 ? _d : schema === null || schema === void 0 ? void 0 : schema.title) !== null && _e !== void 0 ? _e : label;
|
|
11343
11579
|
return jsxs(Visible, {
|
|
11344
11580
|
visible: visible,
|
|
11345
11581
|
"data-testid": "jsonforms-object-list-wrapper",
|