@abgov/jsonforms-components 1.16.11 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import React, { createContext, useContext, useEffect, useMemo, useState, useCallback } from 'react';
2
+ import React, { createContext, useContext, useReducer, useMemo, useEffect, useState, useCallback } from 'react';
3
3
  import { GoAFormItem, GoAInput, GoATextArea, GoACallout, GoAInputDate, GoAInputDateTime, GoAInputTime, GoADropdown, GoADropdownItem, GoARadioGroup, GoARadioItem, GoACheckbox, GoAGrid, GoAFormStepper, GoAFormStep, GoAPages, GoAButton, GoAModal, GoAButtonGroup, GoAIconButton, GoAFileUploadInput, GoACircularProgress, GoAContainer, GoADetails } from '@abgov/react-components';
4
4
  import styled from 'styled-components';
5
+ import axios from 'axios';
6
+ import get$1 from 'lodash/get';
5
7
  import { rankWith, isStringControl, and, optionIs, uiTypeIs, isDateControl, isNumberControl, isIntegerControl, isDateTimeControl, isTimeControl, isEnumControl, isBooleanControl, getAjv, isVisible, isEnabled, deriveLabelForUISchemaElement, schemaTypeIs, formatIs, createDefaultValue, Paths, or, isObjectArrayControl, isPrimitiveArrayControl, withIncreasedRank, hasType, isControl, isCategorization, isLayout } from '@jsonforms/core';
6
8
  import { withJsonFormsControlProps, withJsonFormsRendererProps, withJsonFormsEnumProps, withTranslateProps, useJsonForms, JsonFormsDispatch, withJsonFormsLayoutProps, withJsonFormsArrayLayoutProps, withJsonFormsCellProps } from '@jsonforms/react';
7
9
  import merge from 'lodash/merge';
8
- import axios from 'axios';
9
10
  import isEmpty$1 from 'lodash/isEmpty';
10
11
  import range from 'lodash/range';
11
12
  import Ajv from 'ajv';
@@ -32,12 +33,12 @@ var functionBindNative = !fails$l(function () {
32
33
  var NATIVE_BIND$2 = functionBindNative;
33
34
 
34
35
  var FunctionPrototype$2 = Function.prototype;
35
- var call$e = FunctionPrototype$2.call;
36
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$e, call$e);
36
+ var call$d = FunctionPrototype$2.call;
37
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$d, call$d);
37
38
 
38
39
  var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
39
40
  return function () {
40
- return call$e.apply(fn, arguments);
41
+ return call$d.apply(fn, arguments);
41
42
  };
42
43
  };
43
44
 
@@ -52,7 +53,7 @@ var classofRaw$1 = function (it) {
52
53
 
53
54
  var uncurryThis$k = functionUncurryThis;
54
55
  var fails$k = fails$m;
55
- var classof$6 = classofRaw$1;
56
+ var classof$7 = classofRaw$1;
56
57
 
57
58
  var $Object$4 = Object;
58
59
  var split = uncurryThis$k(''.split);
@@ -63,7 +64,7 @@ var indexedObject = fails$k(function () {
63
64
  // eslint-disable-next-line no-prototype-builtins -- safe
64
65
  return !$Object$4('z').propertyIsEnumerable(0);
65
66
  }) ? function (it) {
66
- return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
67
+ return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
67
68
  } : $Object$4;
68
69
 
69
70
  // we can't use just `it == null` since of `document.all` special case
@@ -74,21 +75,21 @@ var isNullOrUndefined$3 = function (it) {
74
75
 
75
76
  var isNullOrUndefined$2 = isNullOrUndefined$3;
76
77
 
77
- var $TypeError$a = TypeError;
78
+ var $TypeError$b = TypeError;
78
79
 
79
80
  // `RequireObjectCoercible` abstract operation
80
81
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
81
82
  var requireObjectCoercible$7 = function (it) {
82
- if (isNullOrUndefined$2(it)) throw new $TypeError$a("Can't call method on " + it);
83
+ if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
83
84
  return it;
84
85
  };
85
86
 
86
87
  // toObject with fallback for non-array-like ES3 strings
87
- var IndexedObject$1 = indexedObject;
88
+ var IndexedObject$2 = indexedObject;
88
89
  var requireObjectCoercible$6 = requireObjectCoercible$7;
89
90
 
90
91
  var toIndexedObject$5 = function (it) {
91
- return IndexedObject$1(requireObjectCoercible$6(it));
92
+ return IndexedObject$2(requireObjectCoercible$6(it));
92
93
  };
93
94
 
94
95
  var check = function (it) {
@@ -96,7 +97,7 @@ var check = function (it) {
96
97
  };
97
98
 
98
99
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
99
- var global$g =
100
+ var global$h =
100
101
  // eslint-disable-next-line es/no-global-this -- safe
101
102
  check(typeof globalThis == 'object' && globalThis) ||
102
103
  check(typeof window == 'object' && window) ||
@@ -109,20 +110,20 @@ var global$g =
109
110
 
110
111
  var sharedStore = {exports: {}};
111
112
 
112
- var global$f = global$g;
113
+ var global$g = global$h;
113
114
 
114
115
  // eslint-disable-next-line es/no-object-defineproperty -- safe
115
116
  var defineProperty$7 = Object.defineProperty;
116
117
 
117
118
  var defineGlobalProperty$3 = function (key, value) {
118
119
  try {
119
- defineProperty$7(global$f, key, { value: value, configurable: true, writable: true });
120
+ defineProperty$7(global$g, key, { value: value, configurable: true, writable: true });
120
121
  } catch (error) {
121
- global$f[key] = value;
122
+ global$g[key] = value;
122
123
  } return value;
123
124
  };
124
125
 
125
- var globalThis$1 = global$g;
126
+ var globalThis$1 = global$h;
126
127
  var defineGlobalProperty$2 = defineGlobalProperty$3;
127
128
 
128
129
  var SHARED = '__core-js_shared__';
@@ -148,12 +149,12 @@ var $Object$3 = Object;
148
149
 
149
150
  // `ToObject` abstract operation
150
151
  // https://tc39.es/ecma262/#sec-toobject
151
- var toObject$6 = function (argument) {
152
+ var toObject$7 = function (argument) {
152
153
  return $Object$3(requireObjectCoercible$5(argument));
153
154
  };
154
155
 
155
156
  var uncurryThis$j = functionUncurryThis;
156
- var toObject$5 = toObject$6;
157
+ var toObject$6 = toObject$7;
157
158
 
158
159
  var hasOwnProperty = uncurryThis$j({}.hasOwnProperty);
159
160
 
@@ -161,7 +162,7 @@ var hasOwnProperty = uncurryThis$j({}.hasOwnProperty);
161
162
  // https://tc39.es/ecma262/#sec-hasownproperty
162
163
  // eslint-disable-next-line es/no-object-hasown -- safe
163
164
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
164
- return hasOwnProperty(toObject$5(it), key);
165
+ return hasOwnProperty(toObject$6(it), key);
165
166
  };
166
167
 
167
168
  var uncurryThis$i = functionUncurryThis;
@@ -176,11 +177,11 @@ var uid$2 = function (key) {
176
177
 
177
178
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
178
179
 
179
- var global$e = global$g;
180
+ var global$f = global$h;
180
181
  var userAgent = engineUserAgent;
181
182
 
182
- var process = global$e.process;
183
- var Deno = global$e.Deno;
183
+ var process = global$f.process;
184
+ var Deno = global$f.Deno;
184
185
  var versions = process && process.versions || Deno && Deno.version;
185
186
  var v8 = versions && versions.v8;
186
187
  var match, version;
@@ -207,9 +208,9 @@ var engineV8Version = version;
207
208
  /* eslint-disable es/no-symbol -- required for testing */
208
209
  var V8_VERSION = engineV8Version;
209
210
  var fails$j = fails$m;
210
- var global$d = global$g;
211
+ var global$e = global$h;
211
212
 
212
- var $String$6 = global$d.String;
213
+ var $String$6 = global$e.String;
213
214
 
214
215
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
215
216
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$j(function () {
@@ -230,20 +231,20 @@ var useSymbolAsUid = NATIVE_SYMBOL$3
230
231
  && !Symbol.sham
231
232
  && typeof Symbol.iterator == 'symbol';
232
233
 
233
- var global$c = global$g;
234
+ var global$d = global$h;
234
235
  var shared$3 = shared$4;
235
- var hasOwn$b = hasOwnProperty_1;
236
+ var hasOwn$a = hasOwnProperty_1;
236
237
  var uid$1 = uid$2;
237
238
  var NATIVE_SYMBOL$2 = symbolConstructorDetection;
238
239
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
239
240
 
240
- var Symbol$1 = global$c.Symbol;
241
+ var Symbol$1 = global$d.Symbol;
241
242
  var WellKnownSymbolsStore = shared$3('wks');
242
243
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
243
244
 
244
245
  var wellKnownSymbol$c = function (name) {
245
- if (!hasOwn$b(WellKnownSymbolsStore, name)) {
246
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL$2 && hasOwn$b(Symbol$1, name)
246
+ if (!hasOwn$a(WellKnownSymbolsStore, name)) {
247
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$2 && hasOwn$a(Symbol$1, name)
247
248
  ? Symbol$1[name]
248
249
  : createWellKnownSymbol('Symbol.' + name);
249
250
  } return WellKnownSymbolsStore[name];
@@ -270,12 +271,12 @@ var isObject$b = function (it) {
270
271
  var isObject$a = isObject$b;
271
272
 
272
273
  var $String$5 = String;
273
- var $TypeError$9 = TypeError;
274
+ var $TypeError$a = TypeError;
274
275
 
275
276
  // `Assert: Type(argument) is Object`
276
- var anObject$9 = function (argument) {
277
+ var anObject$8 = function (argument) {
277
278
  if (isObject$a(argument)) return argument;
278
- throw new $TypeError$9($String$5(argument) + ' is not an object');
279
+ throw new $TypeError$a($String$5(argument) + ' is not an object');
279
280
  };
280
281
 
281
282
  var objectDefineProperties = {};
@@ -303,10 +304,10 @@ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$h(function () {
303
304
 
304
305
  var objectDefineProperty = {};
305
306
 
306
- var global$b = global$g;
307
+ var global$c = global$h;
307
308
  var isObject$9 = isObject$b;
308
309
 
309
- var document$1 = global$b.document;
310
+ var document$1 = global$c.document;
310
311
  // typeof document.createElement is 'object' in old IE
311
312
  var EXISTS$1 = isObject$9(document$1) && isObject$9(document$1.createElement);
312
313
 
@@ -328,13 +329,13 @@ var ie8DomDefine = !DESCRIPTORS$b && !fails$g(function () {
328
329
 
329
330
  var NATIVE_BIND$1 = functionBindNative;
330
331
 
331
- var call$d = Function.prototype.call;
332
+ var call$c = Function.prototype.call;
332
333
 
333
- var functionCall = NATIVE_BIND$1 ? call$d.bind(call$d) : function () {
334
- return call$d.apply(call$d, arguments);
334
+ var functionCall = NATIVE_BIND$1 ? call$c.bind(call$c) : function () {
335
+ return call$c.apply(call$c, arguments);
335
336
  };
336
337
 
337
- var global$a = global$g;
338
+ var global$b = global$h;
338
339
  var isCallable$j = isCallable$l;
339
340
 
340
341
  var aFunction = function (argument) {
@@ -342,7 +343,7 @@ var aFunction = function (argument) {
342
343
  };
343
344
 
344
345
  var getBuiltIn$5 = function (namespace, method) {
345
- return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
346
+ return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
346
347
  };
347
348
 
348
349
  var uncurryThis$h = functionUncurryThis;
@@ -351,7 +352,7 @@ var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
351
352
 
352
353
  var getBuiltIn$4 = getBuiltIn$5;
353
354
  var isCallable$i = isCallable$l;
354
- var isPrototypeOf$3 = objectIsPrototypeOf;
355
+ var isPrototypeOf$2 = objectIsPrototypeOf;
355
356
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
356
357
 
357
358
  var $Object$2 = Object;
@@ -360,7 +361,7 @@ var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) {
360
361
  return typeof it == 'symbol';
361
362
  } : function (it) {
362
363
  var $Symbol = getBuiltIn$4('Symbol');
363
- return isCallable$i($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$2(it));
364
+ return isCallable$i($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
364
365
  };
365
366
 
366
367
  var $String$4 = String;
@@ -376,48 +377,48 @@ var tryToString$1 = function (argument) {
376
377
  var isCallable$h = isCallable$l;
377
378
  var tryToString = tryToString$1;
378
379
 
379
- var $TypeError$8 = TypeError;
380
+ var $TypeError$9 = TypeError;
380
381
 
381
382
  // `Assert: IsCallable(argument) is true`
382
- var aCallable$2 = function (argument) {
383
+ var aCallable$3 = function (argument) {
383
384
  if (isCallable$h(argument)) return argument;
384
- throw new $TypeError$8(tryToString(argument) + ' is not a function');
385
+ throw new $TypeError$9(tryToString(argument) + ' is not a function');
385
386
  };
386
387
 
387
- var aCallable$1 = aCallable$2;
388
+ var aCallable$2 = aCallable$3;
388
389
  var isNullOrUndefined$1 = isNullOrUndefined$3;
389
390
 
390
391
  // `GetMethod` abstract operation
391
392
  // https://tc39.es/ecma262/#sec-getmethod
392
393
  var getMethod$2 = function (V, P) {
393
394
  var func = V[P];
394
- return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
395
+ return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
395
396
  };
396
397
 
397
- var call$c = functionCall;
398
+ var call$b = functionCall;
398
399
  var isCallable$g = isCallable$l;
399
400
  var isObject$8 = isObject$b;
400
401
 
401
- var $TypeError$7 = TypeError;
402
+ var $TypeError$8 = TypeError;
402
403
 
403
404
  // `OrdinaryToPrimitive` abstract operation
404
405
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
405
406
  var ordinaryToPrimitive$1 = function (input, pref) {
406
407
  var fn, val;
407
- if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
408
- if (isCallable$g(fn = input.valueOf) && !isObject$8(val = call$c(fn, input))) return val;
409
- if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
410
- throw new $TypeError$7("Can't convert object to primitive value");
408
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$b(fn, input))) return val;
409
+ if (isCallable$g(fn = input.valueOf) && !isObject$8(val = call$b(fn, input))) return val;
410
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$b(fn, input))) return val;
411
+ throw new $TypeError$8("Can't convert object to primitive value");
411
412
  };
412
413
 
413
- var call$b = functionCall;
414
+ var call$a = functionCall;
414
415
  var isObject$7 = isObject$b;
415
416
  var isSymbol$2 = isSymbol$3;
416
417
  var getMethod$1 = getMethod$2;
417
418
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
418
419
  var wellKnownSymbol$b = wellKnownSymbol$c;
419
420
 
420
- var $TypeError$6 = TypeError;
421
+ var $TypeError$7 = TypeError;
421
422
  var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
422
423
 
423
424
  // `ToPrimitive` abstract operation
@@ -428,9 +429,9 @@ var toPrimitive$1 = function (input, pref) {
428
429
  var result;
429
430
  if (exoticToPrim) {
430
431
  if (pref === undefined) pref = 'default';
431
- result = call$b(exoticToPrim, input, pref);
432
+ result = call$a(exoticToPrim, input, pref);
432
433
  if (!isObject$7(result) || isSymbol$2(result)) return result;
433
- throw new $TypeError$6("Can't convert object to primitive value");
434
+ throw new $TypeError$7("Can't convert object to primitive value");
434
435
  }
435
436
  if (pref === undefined) pref = 'number';
436
437
  return ordinaryToPrimitive(input, pref);
@@ -449,10 +450,10 @@ var toPropertyKey$2 = function (argument) {
449
450
  var DESCRIPTORS$a = descriptors;
450
451
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
451
452
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
452
- var anObject$8 = anObject$9;
453
+ var anObject$7 = anObject$8;
453
454
  var toPropertyKey$1 = toPropertyKey$2;
454
455
 
455
- var $TypeError$5 = TypeError;
456
+ var $TypeError$6 = TypeError;
456
457
  // eslint-disable-next-line es/no-object-defineproperty -- safe
457
458
  var $defineProperty = Object.defineProperty;
458
459
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -464,9 +465,9 @@ var WRITABLE = 'writable';
464
465
  // `Object.defineProperty` method
465
466
  // https://tc39.es/ecma262/#sec-object.defineproperty
466
467
  objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
467
- anObject$8(O);
468
+ anObject$7(O);
468
469
  P = toPropertyKey$1(P);
469
- anObject$8(Attributes);
470
+ anObject$7(Attributes);
470
471
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
471
472
  var current = $getOwnPropertyDescriptor$1(O, P);
472
473
  if (current && current[WRITABLE]) {
@@ -479,13 +480,13 @@ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
479
480
  }
480
481
  } return $defineProperty(O, P, Attributes);
481
482
  } : $defineProperty : function defineProperty(O, P, Attributes) {
482
- anObject$8(O);
483
+ anObject$7(O);
483
484
  P = toPropertyKey$1(P);
484
- anObject$8(Attributes);
485
+ anObject$7(Attributes);
485
486
  if (IE8_DOM_DEFINE$1) try {
486
487
  return $defineProperty(O, P, Attributes);
487
488
  } catch (error) { /* empty */ }
488
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
489
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
489
490
  if ('value' in Attributes) O[P] = Attributes.value;
490
491
  return O;
491
492
  };
@@ -539,19 +540,19 @@ var toLength$1 = toLength$2;
539
540
 
540
541
  // `LengthOfArrayLike` abstract operation
541
542
  // https://tc39.es/ecma262/#sec-lengthofarraylike
542
- var lengthOfArrayLike$3 = function (obj) {
543
+ var lengthOfArrayLike$4 = function (obj) {
543
544
  return toLength$1(obj.length);
544
545
  };
545
546
 
546
547
  var toIndexedObject$4 = toIndexedObject$5;
547
548
  var toAbsoluteIndex = toAbsoluteIndex$1;
548
- var lengthOfArrayLike$2 = lengthOfArrayLike$3;
549
+ var lengthOfArrayLike$3 = lengthOfArrayLike$4;
549
550
 
550
551
  // `Array.prototype.{ indexOf, includes }` methods implementation
551
- var createMethod$1 = function (IS_INCLUDES) {
552
+ var createMethod$2 = function (IS_INCLUDES) {
552
553
  return function ($this, el, fromIndex) {
553
554
  var O = toIndexedObject$4($this);
554
- var length = lengthOfArrayLike$2(O);
555
+ var length = lengthOfArrayLike$3(O);
555
556
  if (length === 0) return !IS_INCLUDES && -1;
556
557
  var index = toAbsoluteIndex(fromIndex, length);
557
558
  var value;
@@ -571,16 +572,16 @@ var createMethod$1 = function (IS_INCLUDES) {
571
572
  var arrayIncludes = {
572
573
  // `Array.prototype.includes` method
573
574
  // https://tc39.es/ecma262/#sec-array.prototype.includes
574
- includes: createMethod$1(true),
575
+ includes: createMethod$2(true),
575
576
  // `Array.prototype.indexOf` method
576
577
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
577
- indexOf: createMethod$1(false)
578
+ indexOf: createMethod$2(false)
578
579
  };
579
580
 
580
581
  var hiddenKeys$4 = {};
581
582
 
582
583
  var uncurryThis$g = functionUncurryThis;
583
- var hasOwn$a = hasOwnProperty_1;
584
+ var hasOwn$9 = hasOwnProperty_1;
584
585
  var toIndexedObject$3 = toIndexedObject$5;
585
586
  var indexOf$1 = arrayIncludes.indexOf;
586
587
  var hiddenKeys$3 = hiddenKeys$4;
@@ -592,9 +593,9 @@ var objectKeysInternal = function (object, names) {
592
593
  var i = 0;
593
594
  var result = [];
594
595
  var key;
595
- for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$2(result, key);
596
+ for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$2(result, key);
596
597
  // Don't enum bug & hidden keys
597
- while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
598
+ while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
598
599
  ~indexOf$1(result, key) || push$2(result, key);
599
600
  }
600
601
  return result;
@@ -624,7 +625,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
624
625
  var DESCRIPTORS$9 = descriptors;
625
626
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
626
627
  var definePropertyModule$3 = objectDefineProperty;
627
- var anObject$7 = anObject$9;
628
+ var anObject$6 = anObject$8;
628
629
  var toIndexedObject$2 = toIndexedObject$5;
629
630
  var objectKeys$1 = objectKeys$2;
630
631
 
@@ -632,7 +633,7 @@ var objectKeys$1 = objectKeys$2;
632
633
  // https://tc39.es/ecma262/#sec-object.defineproperties
633
634
  // eslint-disable-next-line es/no-object-defineproperties -- safe
634
635
  objectDefineProperties.f = DESCRIPTORS$9 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
635
- anObject$7(O);
636
+ anObject$6(O);
636
637
  var props = toIndexedObject$2(Properties);
637
638
  var keys = objectKeys$1(Properties);
638
639
  var length = keys.length;
@@ -656,7 +657,7 @@ var sharedKey$3 = function (key) {
656
657
  };
657
658
 
658
659
  /* global ActiveXObject -- old IE, WSH */
659
- var anObject$6 = anObject$9;
660
+ var anObject$5 = anObject$8;
660
661
  var definePropertiesModule = objectDefineProperties;
661
662
  var enumBugKeys$1 = enumBugKeys$3;
662
663
  var hiddenKeys$2 = hiddenKeys$4;
@@ -730,7 +731,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
730
731
  var objectCreate = Object.create || function create(O, Properties) {
731
732
  var result;
732
733
  if (O !== null) {
733
- EmptyConstructor[PROTOTYPE] = anObject$6(O);
734
+ EmptyConstructor[PROTOTYPE] = anObject$5(O);
734
735
  result = new EmptyConstructor();
735
736
  EmptyConstructor[PROTOTYPE] = null;
736
737
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -762,10 +763,10 @@ var addToUnscopables$3 = function (key) {
762
763
 
763
764
  var iterators = {};
764
765
 
765
- var global$9 = global$g;
766
+ var global$a = global$h;
766
767
  var isCallable$f = isCallable$l;
767
768
 
768
- var WeakMap$1 = global$9.WeakMap;
769
+ var WeakMap$1 = global$a.WeakMap;
769
770
 
770
771
  var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
771
772
 
@@ -790,17 +791,17 @@ var createNonEnumerableProperty$8 = DESCRIPTORS$8 ? function (object, key, value
790
791
  };
791
792
 
792
793
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
793
- var global$8 = global$g;
794
+ var global$9 = global$h;
794
795
  var isObject$6 = isObject$b;
795
796
  var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
796
- var hasOwn$9 = hasOwnProperty_1;
797
+ var hasOwn$8 = hasOwnProperty_1;
797
798
  var shared$1 = sharedStore.exports;
798
799
  var sharedKey$1 = sharedKey$3;
799
800
  var hiddenKeys$1 = hiddenKeys$4;
800
801
 
801
802
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
802
- var TypeError$1 = global$8.TypeError;
803
- var WeakMap = global$8.WeakMap;
803
+ var TypeError$1 = global$9.TypeError;
804
+ var WeakMap = global$9.WeakMap;
804
805
  var set, get, has;
805
806
 
806
807
  var enforce = function (it) {
@@ -839,16 +840,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
839
840
  var STATE = sharedKey$1('state');
840
841
  hiddenKeys$1[STATE] = true;
841
842
  set = function (it, metadata) {
842
- if (hasOwn$9(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
843
+ if (hasOwn$8(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
843
844
  metadata.facade = it;
844
845
  createNonEnumerableProperty$7(it, STATE, metadata);
845
846
  return metadata;
846
847
  };
847
848
  get = function (it) {
848
- return hasOwn$9(it, STATE) ? it[STATE] : {};
849
+ return hasOwn$8(it, STATE) ? it[STATE] : {};
849
850
  };
850
851
  has = function (it) {
851
- return hasOwn$9(it, STATE);
852
+ return hasOwn$8(it, STATE);
852
853
  };
853
854
  }
854
855
 
@@ -879,12 +880,12 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
879
880
  } : $propertyIsEnumerable;
880
881
 
881
882
  var DESCRIPTORS$7 = descriptors;
882
- var call$a = functionCall;
883
+ var call$9 = functionCall;
883
884
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
884
885
  var createPropertyDescriptor$2 = createPropertyDescriptor$4;
885
886
  var toIndexedObject$1 = toIndexedObject$5;
886
887
  var toPropertyKey = toPropertyKey$2;
887
- var hasOwn$8 = hasOwnProperty_1;
888
+ var hasOwn$7 = hasOwnProperty_1;
888
889
  var IE8_DOM_DEFINE = ie8DomDefine;
889
890
 
890
891
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -898,19 +899,19 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor : f
898
899
  if (IE8_DOM_DEFINE) try {
899
900
  return $getOwnPropertyDescriptor(O, P);
900
901
  } catch (error) { /* empty */ }
901
- if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
902
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
902
903
  };
903
904
 
904
905
  var makeBuiltIn$3 = {exports: {}};
905
906
 
906
907
  var DESCRIPTORS$6 = descriptors;
907
- var hasOwn$7 = hasOwnProperty_1;
908
+ var hasOwn$6 = hasOwnProperty_1;
908
909
 
909
910
  var FunctionPrototype$1 = Function.prototype;
910
911
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
911
912
  var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
912
913
 
913
- var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
914
+ var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
914
915
  // additional protection from minified / mangled / dropped function names
915
916
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
916
917
  var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
@@ -939,7 +940,7 @@ var inspectSource$1 = store.inspectSource;
939
940
  var uncurryThis$e = functionUncurryThis;
940
941
  var fails$f = fails$m;
941
942
  var isCallable$d = isCallable$l;
942
- var hasOwn$6 = hasOwnProperty_1;
943
+ var hasOwn$5 = hasOwnProperty_1;
943
944
  var DESCRIPTORS$5 = descriptors;
944
945
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
945
946
  var inspectSource = inspectSource$1;
@@ -966,21 +967,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
966
967
  }
967
968
  if (options && options.getter) name = 'get ' + name;
968
969
  if (options && options.setter) name = 'set ' + name;
969
- if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
970
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
970
971
  if (DESCRIPTORS$5) defineProperty$5(value, 'name', { value: name, configurable: true });
971
972
  else value.name = name;
972
973
  }
973
- if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
974
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
974
975
  defineProperty$5(value, 'length', { value: options.arity });
975
976
  }
976
977
  try {
977
- if (options && hasOwn$6(options, 'constructor') && options.constructor) {
978
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
978
979
  if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
979
980
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
980
981
  } else if (value.prototype) value.prototype = undefined;
981
982
  } catch (error) { /* empty */ }
982
983
  var state = enforceInternalState(value);
983
- if (!hasOwn$6(state, 'source')) {
984
+ if (!hasOwn$5(state, 'source')) {
984
985
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
985
986
  } return value;
986
987
  };
@@ -996,7 +997,7 @@ var definePropertyModule$1 = objectDefineProperty;
996
997
  var makeBuiltIn$1 = makeBuiltIn$3.exports;
997
998
  var defineGlobalProperty$1 = defineGlobalProperty$3;
998
999
 
999
- var defineBuiltIn$5 = function (O, key, value, options) {
1000
+ var defineBuiltIn$4 = function (O, key, value, options) {
1000
1001
  if (!options) options = {};
1001
1002
  var simple = options.enumerable;
1002
1003
  var name = options.name !== undefined ? options.name : key;
@@ -1042,18 +1043,18 @@ var getBuiltIn$2 = getBuiltIn$5;
1042
1043
  var uncurryThis$d = functionUncurryThis;
1043
1044
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1044
1045
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1045
- var anObject$5 = anObject$9;
1046
+ var anObject$4 = anObject$8;
1046
1047
 
1047
1048
  var concat$2 = uncurryThis$d([].concat);
1048
1049
 
1049
1050
  // all object keys, includes non-enumerable and symbols
1050
1051
  var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1051
- var keys = getOwnPropertyNamesModule.f(anObject$5(it));
1052
+ var keys = getOwnPropertyNamesModule.f(anObject$4(it));
1052
1053
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1053
1054
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1054
1055
  };
1055
1056
 
1056
- var hasOwn$5 = hasOwnProperty_1;
1057
+ var hasOwn$4 = hasOwnProperty_1;
1057
1058
  var ownKeys = ownKeys$1;
1058
1059
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1059
1060
  var definePropertyModule = objectDefineProperty;
@@ -1064,7 +1065,7 @@ var copyConstructorProperties$3 = function (target, source, exceptions) {
1064
1065
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1065
1066
  for (var i = 0; i < keys.length; i++) {
1066
1067
  var key = keys[i];
1067
- if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
1068
+ if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
1068
1069
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1069
1070
  }
1070
1071
  }
@@ -1093,10 +1094,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
1093
1094
 
1094
1095
  var isForced_1 = isForced$1;
1095
1096
 
1096
- var global$7 = global$g;
1097
+ var global$8 = global$h;
1097
1098
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1098
1099
  var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
1099
- var defineBuiltIn$4 = defineBuiltIn$5;
1100
+ var defineBuiltIn$3 = defineBuiltIn$4;
1100
1101
  var defineGlobalProperty = defineGlobalProperty$3;
1101
1102
  var copyConstructorProperties$2 = copyConstructorProperties$3;
1102
1103
  var isForced = isForced_1;
@@ -1122,11 +1123,11 @@ var _export = function (options, source) {
1122
1123
  var STATIC = options.stat;
1123
1124
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1124
1125
  if (GLOBAL) {
1125
- target = global$7;
1126
+ target = global$8;
1126
1127
  } else if (STATIC) {
1127
- target = global$7[TARGET] || defineGlobalProperty(TARGET, {});
1128
+ target = global$8[TARGET] || defineGlobalProperty(TARGET, {});
1128
1129
  } else {
1129
- target = global$7[TARGET] && global$7[TARGET].prototype;
1130
+ target = global$8[TARGET] && global$8[TARGET].prototype;
1130
1131
  }
1131
1132
  if (target) for (key in source) {
1132
1133
  sourceProperty = source[key];
@@ -1144,7 +1145,7 @@ var _export = function (options, source) {
1144
1145
  if (options.sham || (targetProperty && targetProperty.sham)) {
1145
1146
  createNonEnumerableProperty$6(sourceProperty, 'sham', true);
1146
1147
  }
1147
- defineBuiltIn$4(target, key, sourceProperty, options);
1148
+ defineBuiltIn$3(target, key, sourceProperty, options);
1148
1149
  }
1149
1150
  };
1150
1151
 
@@ -1157,9 +1158,9 @@ var correctPrototypeGetter = !fails$d(function () {
1157
1158
  return Object.getPrototypeOf(new F()) !== F.prototype;
1158
1159
  });
1159
1160
 
1160
- var hasOwn$4 = hasOwnProperty_1;
1161
+ var hasOwn$3 = hasOwnProperty_1;
1161
1162
  var isCallable$a = isCallable$l;
1162
- var toObject$4 = toObject$6;
1163
+ var toObject$5 = toObject$7;
1163
1164
  var sharedKey = sharedKey$3;
1164
1165
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1165
1166
 
@@ -1171,8 +1172,8 @@ var ObjectPrototype = $Object$1.prototype;
1171
1172
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1172
1173
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1173
1174
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1174
- var object = toObject$4(O);
1175
- if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
1175
+ var object = toObject$5(O);
1176
+ if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
1176
1177
  var constructor = object.constructor;
1177
1178
  if (isCallable$a(constructor) && object instanceof constructor) {
1178
1179
  return constructor.prototype;
@@ -1183,7 +1184,7 @@ var fails$c = fails$m;
1183
1184
  var isCallable$9 = isCallable$l;
1184
1185
  var isObject$5 = isObject$b;
1185
1186
  var getPrototypeOf$1 = objectGetPrototypeOf;
1186
- var defineBuiltIn$3 = defineBuiltIn$5;
1187
+ var defineBuiltIn$2 = defineBuiltIn$4;
1187
1188
  var wellKnownSymbol$9 = wellKnownSymbol$c;
1188
1189
 
1189
1190
  var ITERATOR$2 = wellKnownSymbol$9('iterator');
@@ -1215,7 +1216,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1215
1216
  // `%IteratorPrototype%[@@iterator]()` method
1216
1217
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1217
1218
  if (!isCallable$9(IteratorPrototype$2[ITERATOR$2])) {
1218
- defineBuiltIn$3(IteratorPrototype$2, ITERATOR$2, function () {
1219
+ defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1219
1220
  return this;
1220
1221
  });
1221
1222
  }
@@ -1226,14 +1227,14 @@ var iteratorsCore = {
1226
1227
  };
1227
1228
 
1228
1229
  var defineProperty$4 = objectDefineProperty.f;
1229
- var hasOwn$3 = hasOwnProperty_1;
1230
+ var hasOwn$2 = hasOwnProperty_1;
1230
1231
  var wellKnownSymbol$8 = wellKnownSymbol$c;
1231
1232
 
1232
1233
  var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1233
1234
 
1234
1235
  var setToStringTag$3 = function (target, TAG, STATIC) {
1235
1236
  if (target && !STATIC) target = target.prototype;
1236
- if (target && !hasOwn$3(target, TO_STRING_TAG$2)) {
1237
+ if (target && !hasOwn$2(target, TO_STRING_TAG$2)) {
1237
1238
  defineProperty$4(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1238
1239
  }
1239
1240
  };
@@ -1255,12 +1256,12 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1255
1256
  };
1256
1257
 
1257
1258
  var uncurryThis$c = functionUncurryThis;
1258
- var aCallable = aCallable$2;
1259
+ var aCallable$1 = aCallable$3;
1259
1260
 
1260
1261
  var functionUncurryThisAccessor = function (object, key, method) {
1261
1262
  try {
1262
1263
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1263
- return uncurryThis$c(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1264
+ return uncurryThis$c(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
1264
1265
  } catch (error) { /* empty */ }
1265
1266
  };
1266
1267
 
@@ -1273,11 +1274,11 @@ var isPossiblePrototype$1 = function (argument) {
1273
1274
  var isPossiblePrototype = isPossiblePrototype$1;
1274
1275
 
1275
1276
  var $String$2 = String;
1276
- var $TypeError$4 = TypeError;
1277
+ var $TypeError$5 = TypeError;
1277
1278
 
1278
1279
  var aPossiblePrototype$1 = function (argument) {
1279
1280
  if (isPossiblePrototype(argument)) return argument;
1280
- throw new $TypeError$4("Can't set " + $String$2(argument) + ' as a prototype');
1281
+ throw new $TypeError$5("Can't set " + $String$2(argument) + ' as a prototype');
1281
1282
  };
1282
1283
 
1283
1284
  /* eslint-disable no-proto -- safe */
@@ -1309,8 +1310,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1309
1310
  };
1310
1311
  }() : undefined);
1311
1312
 
1312
- var $$b = _export;
1313
- var call$9 = functionCall;
1313
+ var $$c = _export;
1314
+ var call$8 = functionCall;
1314
1315
  var FunctionName = functionName;
1315
1316
  var isCallable$8 = isCallable$l;
1316
1317
  var createIteratorConstructor = iteratorCreateConstructor;
@@ -1318,12 +1319,12 @@ var getPrototypeOf = objectGetPrototypeOf;
1318
1319
  var setPrototypeOf$2 = objectSetPrototypeOf;
1319
1320
  var setToStringTag$1 = setToStringTag$3;
1320
1321
  var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
1321
- var defineBuiltIn$2 = defineBuiltIn$5;
1322
+ var defineBuiltIn$1 = defineBuiltIn$4;
1322
1323
  var wellKnownSymbol$7 = wellKnownSymbol$c;
1323
1324
  var Iterators$1 = iterators;
1324
1325
  var IteratorsCore = iteratorsCore;
1325
1326
 
1326
- var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1327
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1327
1328
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1328
1329
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1329
1330
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
@@ -1368,7 +1369,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1368
1369
  if (setPrototypeOf$2) {
1369
1370
  setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype);
1370
1371
  } else if (!isCallable$8(CurrentIteratorPrototype[ITERATOR$1])) {
1371
- defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1372
+ defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1372
1373
  }
1373
1374
  }
1374
1375
  // Set @@toStringTag to native iterators
@@ -1377,12 +1378,12 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1377
1378
  }
1378
1379
 
1379
1380
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1380
- if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1381
+ if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1381
1382
  if (CONFIGURABLE_FUNCTION_NAME) {
1382
1383
  createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
1383
1384
  } else {
1384
1385
  INCORRECT_VALUES_NAME = true;
1385
- defaultIterator = function values() { return call$9(nativeIterator, this); };
1386
+ defaultIterator = function values() { return call$8(nativeIterator, this); };
1386
1387
  }
1387
1388
  }
1388
1389
 
@@ -1395,14 +1396,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1395
1396
  };
1396
1397
  if (FORCED) for (KEY in methods) {
1397
1398
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1398
- defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1399
+ defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1399
1400
  }
1400
- } else $$b({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1401
+ } else $$c({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1401
1402
  }
1402
1403
 
1403
1404
  // define iterator
1404
1405
  if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1405
- defineBuiltIn$2(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1406
+ defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1406
1407
  }
1407
1408
  Iterators$1[NAME] = defaultIterator;
1408
1409
 
@@ -1520,7 +1521,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1520
1521
 
1521
1522
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1522
1523
 
1523
- var global$6 = global$g;
1524
+ var global$7 = global$h;
1524
1525
  var DOMIterables = domIterables;
1525
1526
  var DOMTokenListPrototype = domTokenListPrototype;
1526
1527
  var ArrayIteratorMethods = es_array_iterator;
@@ -1552,20 +1553,20 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1552
1553
  };
1553
1554
 
1554
1555
  for (var COLLECTION_NAME in DOMIterables) {
1555
- handlePrototype(global$6[COLLECTION_NAME] && global$6[COLLECTION_NAME].prototype, COLLECTION_NAME);
1556
+ handlePrototype(global$7[COLLECTION_NAME] && global$7[COLLECTION_NAME].prototype, COLLECTION_NAME);
1556
1557
  }
1557
1558
 
1558
1559
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1559
1560
 
1560
1561
  var DESCRIPTORS$3 = descriptors;
1561
1562
  var uncurryThis$b = functionUncurryThis;
1562
- var call$8 = functionCall;
1563
+ var call$7 = functionCall;
1563
1564
  var fails$b = fails$m;
1564
1565
  var objectKeys = objectKeys$2;
1565
1566
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1566
1567
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1567
- var toObject$3 = toObject$6;
1568
- var IndexedObject = indexedObject;
1568
+ var toObject$4 = toObject$7;
1569
+ var IndexedObject$1 = indexedObject;
1569
1570
 
1570
1571
  // eslint-disable-next-line es/no-object-assign -- safe
1571
1572
  var $assign = Object.assign;
@@ -1596,31 +1597,31 @@ var objectAssign = !$assign || fails$b(function () {
1596
1597
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1597
1598
  return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1598
1599
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1599
- var T = toObject$3(target);
1600
+ var T = toObject$4(target);
1600
1601
  var argumentsLength = arguments.length;
1601
1602
  var index = 1;
1602
1603
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1603
1604
  var propertyIsEnumerable = propertyIsEnumerableModule.f;
1604
1605
  while (argumentsLength > index) {
1605
- var S = IndexedObject(arguments[index++]);
1606
+ var S = IndexedObject$1(arguments[index++]);
1606
1607
  var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1607
1608
  var length = keys.length;
1608
1609
  var j = 0;
1609
1610
  var key;
1610
1611
  while (length > j) {
1611
1612
  key = keys[j++];
1612
- if (!DESCRIPTORS$3 || call$8(propertyIsEnumerable, S, key)) T[key] = S[key];
1613
+ if (!DESCRIPTORS$3 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
1613
1614
  }
1614
1615
  } return T;
1615
1616
  } : $assign;
1616
1617
 
1617
- var $$a = _export;
1618
+ var $$b = _export;
1618
1619
  var assign = objectAssign;
1619
1620
 
1620
1621
  // `Object.assign` method
1621
1622
  // https://tc39.es/ecma262/#sec-object.assign
1622
1623
  // eslint-disable-next-line es/no-object-assign -- required for testing
1623
- $$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1624
+ $$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1624
1625
  assign: assign
1625
1626
  });
1626
1627
 
@@ -1630,18 +1631,18 @@ const FormFieldWrapper = styled.div(_t$7 || (_t$7 = _$7`
1630
1631
  margin-bottom: var(--goa-space-l);
1631
1632
  `));
1632
1633
 
1633
- var $$9 = _export;
1634
- var toObject$2 = toObject$6;
1635
- var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1634
+ var $$a = _export;
1635
+ var toObject$3 = toObject$7;
1636
+ var lengthOfArrayLike$2 = lengthOfArrayLike$4;
1636
1637
  var toIntegerOrInfinity$3 = toIntegerOrInfinity$6;
1637
1638
  var addToUnscopables$1 = addToUnscopables$3;
1638
1639
 
1639
1640
  // `Array.prototype.at` method
1640
1641
  // https://tc39.es/ecma262/#sec-array.prototype.at
1641
- $$9({ target: 'Array', proto: true }, {
1642
+ $$a({ target: 'Array', proto: true }, {
1642
1643
  at: function at(index) {
1643
- var O = toObject$2(this);
1644
- var len = lengthOfArrayLike$1(O);
1644
+ var O = toObject$3(this);
1645
+ var len = lengthOfArrayLike$2(O);
1645
1646
  var relativeIndex = toIntegerOrInfinity$3(index);
1646
1647
  var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
1647
1648
  return (k < 0 || k >= len) ? undefined : O[k];
@@ -1678,7 +1679,7 @@ var tryGet = function (it, key) {
1678
1679
  };
1679
1680
 
1680
1681
  // getting tag from ES6+ `Object.prototype.toString`
1681
- var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1682
+ var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1682
1683
  var O, tag, result;
1683
1684
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1684
1685
  // @@toStringTag case
@@ -1689,21 +1690,21 @@ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1689
1690
  : (result = classofRaw(O)) === 'Object' && isCallable$7(O.callee) ? 'Arguments' : result;
1690
1691
  };
1691
1692
 
1692
- var classof$4 = classof$5;
1693
+ var classof$5 = classof$6;
1693
1694
 
1694
1695
  var $String$1 = String;
1695
1696
 
1696
1697
  var toString$9 = function (argument) {
1697
- if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1698
+ if (classof$5(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1698
1699
  return $String$1(argument);
1699
1700
  };
1700
1701
 
1701
- var anObject$4 = anObject$9;
1702
+ var anObject$3 = anObject$8;
1702
1703
 
1703
1704
  // `RegExp.prototype.flags` getter implementation
1704
1705
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1705
1706
  var regexpFlags$1 = function () {
1706
- var that = anObject$4(this);
1707
+ var that = anObject$3(this);
1707
1708
  var result = '';
1708
1709
  if (that.hasIndices) result += 'd';
1709
1710
  if (that.global) result += 'g';
@@ -1717,10 +1718,10 @@ var regexpFlags$1 = function () {
1717
1718
  };
1718
1719
 
1719
1720
  var fails$a = fails$m;
1720
- var global$5 = global$g;
1721
+ var global$6 = global$h;
1721
1722
 
1722
1723
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1723
- var $RegExp$2 = global$5.RegExp;
1724
+ var $RegExp$2 = global$6.RegExp;
1724
1725
 
1725
1726
  var UNSUPPORTED_Y$1 = fails$a(function () {
1726
1727
  var re = $RegExp$2('a', 'y');
@@ -1748,10 +1749,10 @@ var regexpStickyHelpers = {
1748
1749
  };
1749
1750
 
1750
1751
  var fails$9 = fails$m;
1751
- var global$4 = global$g;
1752
+ var global$5 = global$h;
1752
1753
 
1753
1754
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1754
- var $RegExp$1 = global$4.RegExp;
1755
+ var $RegExp$1 = global$5.RegExp;
1755
1756
 
1756
1757
  var regexpUnsupportedDotAll = fails$9(function () {
1757
1758
  var re = $RegExp$1('.', 's');
@@ -1759,10 +1760,10 @@ var regexpUnsupportedDotAll = fails$9(function () {
1759
1760
  });
1760
1761
 
1761
1762
  var fails$8 = fails$m;
1762
- var global$3 = global$g;
1763
+ var global$4 = global$h;
1763
1764
 
1764
1765
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1765
- var $RegExp = global$3.RegExp;
1766
+ var $RegExp = global$4.RegExp;
1766
1767
 
1767
1768
  var regexpUnsupportedNcg = fails$8(function () {
1768
1769
  var re = $RegExp('(?<a>b)', 'g');
@@ -1772,7 +1773,7 @@ var regexpUnsupportedNcg = fails$8(function () {
1772
1773
 
1773
1774
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1774
1775
  /* eslint-disable regexp/no-useless-quantifier -- testing */
1775
- var call$7 = functionCall;
1776
+ var call$6 = functionCall;
1776
1777
  var uncurryThis$a = functionUncurryThis;
1777
1778
  var toString$8 = toString$9;
1778
1779
  var regexpFlags = regexpFlags$1;
@@ -1794,8 +1795,8 @@ var stringSlice$4 = uncurryThis$a(''.slice);
1794
1795
  var UPDATES_LAST_INDEX_WRONG = (function () {
1795
1796
  var re1 = /a/;
1796
1797
  var re2 = /b*/g;
1797
- call$7(nativeExec, re1, 'a');
1798
- call$7(nativeExec, re2, 'a');
1798
+ call$6(nativeExec, re1, 'a');
1799
+ call$6(nativeExec, re2, 'a');
1799
1800
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1800
1801
  })();
1801
1802
 
@@ -1816,14 +1817,14 @@ if (PATCH) {
1816
1817
 
1817
1818
  if (raw) {
1818
1819
  raw.lastIndex = re.lastIndex;
1819
- result = call$7(patchedExec, raw, str);
1820
+ result = call$6(patchedExec, raw, str);
1820
1821
  re.lastIndex = raw.lastIndex;
1821
1822
  return result;
1822
1823
  }
1823
1824
 
1824
1825
  var groups = state.groups;
1825
1826
  var sticky = UNSUPPORTED_Y && re.sticky;
1826
- var flags = call$7(regexpFlags, re);
1827
+ var flags = call$6(regexpFlags, re);
1827
1828
  var source = re.source;
1828
1829
  var charsAdded = 0;
1829
1830
  var strCopy = str;
@@ -1851,7 +1852,7 @@ if (PATCH) {
1851
1852
  }
1852
1853
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1853
1854
 
1854
- match = call$7(nativeExec, sticky ? reCopy : re, strCopy);
1855
+ match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
1855
1856
 
1856
1857
  if (sticky) {
1857
1858
  if (match) {
@@ -1866,7 +1867,7 @@ if (PATCH) {
1866
1867
  if (NPCG_INCLUDED && match && match.length > 1) {
1867
1868
  // Fix browsers whose `exec` methods don't consistently return `undefined`
1868
1869
  // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1869
- call$7(nativeReplace, match[0], reCopy, function () {
1870
+ call$6(nativeReplace, match[0], reCopy, function () {
1870
1871
  for (i = 1; i < arguments.length - 2; i++) {
1871
1872
  if (arguments[i] === undefined) match[i] = undefined;
1872
1873
  }
@@ -1887,34 +1888,69 @@ if (PATCH) {
1887
1888
 
1888
1889
  var regexpExec$2 = patchedExec;
1889
1890
 
1890
- var $$8 = _export;
1891
+ var $$9 = _export;
1891
1892
  var exec$1 = regexpExec$2;
1892
1893
 
1893
1894
  // `RegExp.prototype.exec` method
1894
1895
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1895
- $$8({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
1896
+ $$9({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
1896
1897
  exec: exec$1
1897
1898
  });
1898
1899
 
1900
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1901
+
1902
+ var $$8 = _export;
1903
+ var call$5 = functionCall;
1904
+ var isCallable$6 = isCallable$l;
1905
+ var anObject$2 = anObject$8;
1906
+ var toString$7 = toString$9;
1907
+
1908
+ var DELEGATES_TO_EXEC = function () {
1909
+ var execCalled = false;
1910
+ var re = /[ac]/;
1911
+ re.exec = function () {
1912
+ execCalled = true;
1913
+ return /./.exec.apply(this, arguments);
1914
+ };
1915
+ return re.test('abc') === true && execCalled;
1916
+ }();
1917
+
1918
+ var nativeTest = /./.test;
1919
+
1920
+ // `RegExp.prototype.test` method
1921
+ // https://tc39.es/ecma262/#sec-regexp.prototype.test
1922
+ $$8({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
1923
+ test: function (S) {
1924
+ var R = anObject$2(this);
1925
+ var string = toString$7(S);
1926
+ var exec = R.exec;
1927
+ if (!isCallable$6(exec)) return call$5(nativeTest, R, string);
1928
+ var result = call$5(exec, R, string);
1929
+ if (result === null) return false;
1930
+ anObject$2(result);
1931
+ return true;
1932
+ }
1933
+ });
1934
+
1899
1935
  var $$7 = _export;
1900
1936
  var uncurryThis$9 = functionUncurryThis;
1901
1937
  var requireObjectCoercible$3 = requireObjectCoercible$7;
1902
1938
  var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
1903
- var toString$7 = toString$9;
1939
+ var toString$6 = toString$9;
1904
1940
  var fails$7 = fails$m;
1905
1941
 
1906
1942
  var charAt$4 = uncurryThis$9(''.charAt);
1907
1943
 
1908
- var FORCED$2 = fails$7(function () {
1944
+ var FORCED$3 = fails$7(function () {
1909
1945
  // eslint-disable-next-line es/no-array-string-prototype-at -- safe
1910
1946
  return '𠮷'.at(-2) !== '\uD842';
1911
1947
  });
1912
1948
 
1913
1949
  // `String.prototype.at` method
1914
1950
  // https://tc39.es/ecma262/#sec-string.prototype.at
1915
- $$7({ target: 'String', proto: true, forced: FORCED$2 }, {
1951
+ $$7({ target: 'String', proto: true, forced: FORCED$3 }, {
1916
1952
  at: function at(index) {
1917
- var S = toString$7(requireObjectCoercible$3(this));
1953
+ var S = toString$6(requireObjectCoercible$3(this));
1918
1954
  var len = S.length;
1919
1955
  var relativeIndex = toIntegerOrInfinity$2(index);
1920
1956
  var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
@@ -1926,24 +1962,24 @@ var NATIVE_BIND = functionBindNative;
1926
1962
 
1927
1963
  var FunctionPrototype = Function.prototype;
1928
1964
  var apply$3 = FunctionPrototype.apply;
1929
- var call$6 = FunctionPrototype.call;
1965
+ var call$4 = FunctionPrototype.call;
1930
1966
 
1931
1967
  // eslint-disable-next-line es/no-reflect -- safe
1932
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$6.bind(apply$3) : function () {
1933
- return call$6.apply(apply$3, arguments);
1968
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$3) : function () {
1969
+ return call$4.apply(apply$3, arguments);
1934
1970
  });
1935
1971
 
1936
1972
  // TODO: Remove from `core-js@4` since it's moved to entry points
1937
1973
 
1938
- var call$5 = functionCall;
1939
- var defineBuiltIn$1 = defineBuiltIn$5;
1974
+ var call$3 = functionCall;
1975
+ var defineBuiltIn = defineBuiltIn$4;
1940
1976
  var regexpExec$1 = regexpExec$2;
1941
1977
  var fails$6 = fails$m;
1942
1978
  var wellKnownSymbol$3 = wellKnownSymbol$c;
1943
1979
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
1944
1980
 
1945
1981
  var SPECIES = wellKnownSymbol$3('species');
1946
- var RegExpPrototype$2 = RegExp.prototype;
1982
+ var RegExpPrototype = RegExp.prototype;
1947
1983
 
1948
1984
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1949
1985
  var SYMBOL = wellKnownSymbol$3(KEY);
@@ -1990,37 +2026,37 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1990
2026
  var nativeRegExpMethod = /./[SYMBOL];
1991
2027
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1992
2028
  var $exec = regexp.exec;
1993
- if ($exec === regexpExec$1 || $exec === RegExpPrototype$2.exec) {
2029
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
1994
2030
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1995
2031
  // The native String method already delegates to @@method (this
1996
2032
  // polyfilled function), leasing to infinite recursion.
1997
2033
  // We avoid it by directly calling the native @@method method.
1998
- return { done: true, value: call$5(nativeRegExpMethod, regexp, str, arg2) };
2034
+ return { done: true, value: call$3(nativeRegExpMethod, regexp, str, arg2) };
1999
2035
  }
2000
- return { done: true, value: call$5(nativeMethod, str, regexp, arg2) };
2036
+ return { done: true, value: call$3(nativeMethod, str, regexp, arg2) };
2001
2037
  }
2002
2038
  return { done: false };
2003
2039
  });
2004
2040
 
2005
- defineBuiltIn$1(String.prototype, KEY, methods[0]);
2006
- defineBuiltIn$1(RegExpPrototype$2, SYMBOL, methods[1]);
2041
+ defineBuiltIn(String.prototype, KEY, methods[0]);
2042
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
2007
2043
  }
2008
2044
 
2009
- if (SHAM) createNonEnumerableProperty$3(RegExpPrototype$2[SYMBOL], 'sham', true);
2045
+ if (SHAM) createNonEnumerableProperty$3(RegExpPrototype[SYMBOL], 'sham', true);
2010
2046
  };
2011
2047
 
2012
2048
  var uncurryThis$8 = functionUncurryThis;
2013
2049
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$6;
2014
- var toString$6 = toString$9;
2050
+ var toString$5 = toString$9;
2015
2051
  var requireObjectCoercible$2 = requireObjectCoercible$7;
2016
2052
 
2017
2053
  var charAt$3 = uncurryThis$8(''.charAt);
2018
2054
  var charCodeAt$1 = uncurryThis$8(''.charCodeAt);
2019
2055
  var stringSlice$3 = uncurryThis$8(''.slice);
2020
2056
 
2021
- var createMethod = function (CONVERT_TO_STRING) {
2057
+ var createMethod$1 = function (CONVERT_TO_STRING) {
2022
2058
  return function ($this, pos) {
2023
- var S = toString$6(requireObjectCoercible$2($this));
2059
+ var S = toString$5(requireObjectCoercible$2($this));
2024
2060
  var position = toIntegerOrInfinity$1(pos);
2025
2061
  var size = S.length;
2026
2062
  var first, second;
@@ -2040,10 +2076,10 @@ var createMethod = function (CONVERT_TO_STRING) {
2040
2076
  var stringMultibyte = {
2041
2077
  // `String.prototype.codePointAt` method
2042
2078
  // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2043
- codeAt: createMethod(false),
2079
+ codeAt: createMethod$1(false),
2044
2080
  // `String.prototype.at` method
2045
2081
  // https://github.com/mathiasbynens/String.prototype.at
2046
- charAt: createMethod(true)
2082
+ charAt: createMethod$1(true)
2047
2083
  };
2048
2084
 
2049
2085
  var charAt$2 = stringMultibyte.charAt;
@@ -2055,7 +2091,7 @@ var advanceStringIndex$1 = function (S, index, unicode) {
2055
2091
  };
2056
2092
 
2057
2093
  var uncurryThis$7 = functionUncurryThis;
2058
- var toObject$1 = toObject$6;
2094
+ var toObject$2 = toObject$7;
2059
2095
 
2060
2096
  var floor = Math.floor;
2061
2097
  var charAt$1 = uncurryThis$7(''.charAt);
@@ -2072,7 +2108,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2072
2108
  var m = captures.length;
2073
2109
  var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2074
2110
  if (namedCaptures !== undefined) {
2075
- namedCaptures = toObject$1(namedCaptures);
2111
+ namedCaptures = toObject$2(namedCaptures);
2076
2112
  symbols = SUBSTITUTION_SYMBOLS;
2077
2113
  }
2078
2114
  return replace$3(replacement, symbols, function (match, ch) {
@@ -2100,38 +2136,38 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2100
2136
  });
2101
2137
  };
2102
2138
 
2103
- var call$4 = functionCall;
2104
- var anObject$3 = anObject$9;
2105
- var isCallable$6 = isCallable$l;
2106
- var classof$3 = classofRaw$1;
2139
+ var call$2 = functionCall;
2140
+ var anObject$1 = anObject$8;
2141
+ var isCallable$5 = isCallable$l;
2142
+ var classof$4 = classofRaw$1;
2107
2143
  var regexpExec = regexpExec$2;
2108
2144
 
2109
- var $TypeError$3 = TypeError;
2145
+ var $TypeError$4 = TypeError;
2110
2146
 
2111
2147
  // `RegExpExec` abstract operation
2112
2148
  // https://tc39.es/ecma262/#sec-regexpexec
2113
2149
  var regexpExecAbstract = function (R, S) {
2114
2150
  var exec = R.exec;
2115
- if (isCallable$6(exec)) {
2116
- var result = call$4(exec, R, S);
2117
- if (result !== null) anObject$3(result);
2151
+ if (isCallable$5(exec)) {
2152
+ var result = call$2(exec, R, S);
2153
+ if (result !== null) anObject$1(result);
2118
2154
  return result;
2119
2155
  }
2120
- if (classof$3(R) === 'RegExp') return call$4(regexpExec, R, S);
2121
- throw new $TypeError$3('RegExp#exec called on incompatible receiver');
2156
+ if (classof$4(R) === 'RegExp') return call$2(regexpExec, R, S);
2157
+ throw new $TypeError$4('RegExp#exec called on incompatible receiver');
2122
2158
  };
2123
2159
 
2124
2160
  var apply$2 = functionApply;
2125
- var call$3 = functionCall;
2161
+ var call$1 = functionCall;
2126
2162
  var uncurryThis$6 = functionUncurryThis;
2127
2163
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2128
2164
  var fails$5 = fails$m;
2129
- var anObject$2 = anObject$9;
2130
- var isCallable$5 = isCallable$l;
2165
+ var anObject = anObject$8;
2166
+ var isCallable$4 = isCallable$l;
2131
2167
  var isNullOrUndefined = isNullOrUndefined$3;
2132
2168
  var toIntegerOrInfinity = toIntegerOrInfinity$6;
2133
2169
  var toLength = toLength$2;
2134
- var toString$5 = toString$9;
2170
+ var toString$4 = toString$9;
2135
2171
  var requireObjectCoercible$1 = requireObjectCoercible$7;
2136
2172
  var advanceStringIndex = advanceStringIndex$1;
2137
2173
  var getMethod = getMethod$2;
@@ -2188,14 +2224,14 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
2188
2224
  var O = requireObjectCoercible$1(this);
2189
2225
  var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
2190
2226
  return replacer
2191
- ? call$3(replacer, searchValue, O, replaceValue)
2192
- : call$3(nativeReplace, toString$5(O), searchValue, replaceValue);
2227
+ ? call$1(replacer, searchValue, O, replaceValue)
2228
+ : call$1(nativeReplace, toString$4(O), searchValue, replaceValue);
2193
2229
  },
2194
2230
  // `RegExp.prototype[@@replace]` method
2195
2231
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2196
2232
  function (string, replaceValue) {
2197
- var rx = anObject$2(this);
2198
- var S = toString$5(string);
2233
+ var rx = anObject(this);
2234
+ var S = toString$4(string);
2199
2235
 
2200
2236
  if (
2201
2237
  typeof replaceValue == 'string' &&
@@ -2206,8 +2242,8 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
2206
2242
  if (res.done) return res.value;
2207
2243
  }
2208
2244
 
2209
- var functionalReplace = isCallable$5(replaceValue);
2210
- if (!functionalReplace) replaceValue = toString$5(replaceValue);
2245
+ var functionalReplace = isCallable$4(replaceValue);
2246
+ if (!functionalReplace) replaceValue = toString$4(replaceValue);
2211
2247
 
2212
2248
  var global = rx.global;
2213
2249
  var fullUnicode;
@@ -2225,7 +2261,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
2225
2261
  push$1(results, result);
2226
2262
  if (!global) break;
2227
2263
 
2228
- var matchStr = toString$5(result[0]);
2264
+ var matchStr = toString$4(result[0]);
2229
2265
  if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2230
2266
  }
2231
2267
 
@@ -2234,7 +2270,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
2234
2270
  for (var i = 0; i < results.length; i++) {
2235
2271
  result = results[i];
2236
2272
 
2237
- var matched = toString$5(result[0]);
2273
+ var matched = toString$4(result[0]);
2238
2274
  var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
2239
2275
  var captures = [];
2240
2276
  var replacement;
@@ -2248,7 +2284,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
2248
2284
  if (functionalReplace) {
2249
2285
  var replacerArgs = concat([matched], captures, position, S);
2250
2286
  if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
2251
- replacement = toString$5(apply$2(replaceValue, undefined, replacerArgs));
2287
+ replacement = toString$4(apply$2(replaceValue, undefined, replacerArgs));
2252
2288
  } else {
2253
2289
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2254
2290
  }
@@ -2293,13 +2329,16 @@ const controlScopeMatchesLabel = (scope, label) => {
2293
2329
  */
2294
2330
  const getLabelText = (scope, label) => {
2295
2331
  let labelToUpdate = '';
2296
- if (controlScopeMatchesLabel(scope, label || '')) {
2332
+ if (controlScopeMatchesLabel(scope, label || '') && !areAllUppercase(label)) {
2297
2333
  labelToUpdate = capitalizeFirstLetter(label || '');
2298
2334
  } else {
2299
2335
  labelToUpdate = label || '';
2300
2336
  }
2301
2337
  return labelToUpdate;
2302
2338
  };
2339
+ const areAllUppercase = label => {
2340
+ return /^[^a-z]*$/.test(label);
2341
+ };
2303
2342
  const isEmptyBoolean = (schema, data) => {
2304
2343
  return schema.type !== undefined && schema.type === 'boolean' && (data === null || data === undefined);
2305
2344
  };
@@ -2661,124 +2700,365 @@ const Visible = styled.div(_t2$4 || (_t2$4 = _$6`
2661
2700
  display: ${0};
2662
2701
  `), p => p.visible ? 'initial' : 'none');
2663
2702
 
2664
- const GoAInputBaseControl = props => {
2665
- var _a, _b, _c;
2666
- const {
2667
- uischema,
2668
- visible,
2669
- label,
2670
- input,
2671
- required
2672
- } = props;
2673
- const InnerComponent = input;
2674
- const labelToUpdate = getLabelText(uischema.scope, label || '');
2675
- let modifiedErrors = checkFieldValidity(props);
2676
- if (modifiedErrors === 'should be equal to one of the allowed values' && ((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.enumContext)) {
2677
- modifiedErrors = '';
2703
+ const ADD_REGISTER_DATA_ACTION = 'jsonforms/register/data/add';
2704
+
2705
+ var classof$3 = classofRaw$1;
2706
+
2707
+ // `IsArray` abstract operation
2708
+ // https://tc39.es/ecma262/#sec-isarray
2709
+ // eslint-disable-next-line es/no-array-isarray -- safe
2710
+ var isArray$2 = Array.isArray || function isArray(argument) {
2711
+ return classof$3(argument) === 'Array';
2712
+ };
2713
+
2714
+ var DESCRIPTORS$2 = descriptors;
2715
+ var isArray$1 = isArray$2;
2716
+
2717
+ var $TypeError$3 = TypeError;
2718
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2719
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2720
+
2721
+ // Safari < 13 does not throw an error in this case
2722
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$2 && !function () {
2723
+ // makes no sense without proper strict mode support
2724
+ if (this !== undefined) return true;
2725
+ try {
2726
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
2727
+ Object.defineProperty([], 'length', { writable: false }).length = 1;
2728
+ } catch (error) {
2729
+ return error instanceof TypeError;
2678
2730
  }
2679
- const getStepStatus = (props, value) => {
2680
- return {
2681
- id: props.id,
2682
- value: value,
2683
- required: props.required || false,
2684
- type: props.schema.type,
2685
- step: stepperContext.stepId
2686
- };
2687
- };
2688
- const stepperContext = useContext(StepperContext);
2689
- const handlerWithStepperUpdate = (path, value) => {
2690
- stepperContext.updateStatus(getStepStatus(props, value));
2691
- props.handleChange(path, value);
2692
- };
2693
- const modifiedProps = Object.assign(Object.assign({}, props), {
2694
- handleChange: handlerWithStepperUpdate
2695
- });
2696
- useEffect(() => {
2697
- if (!stepperContext.isInitialized(props.id)) {
2698
- const status = getStepStatus(props, props.data);
2699
- stepperContext.updateStatus(status);
2700
- }
2701
- // eslint-disable-next-line react-hooks/exhaustive-deps
2702
- }, []);
2703
- return jsx(Visible, {
2704
- visible: visible,
2705
- children: jsx(FormFieldWrapper, {
2706
- children: jsx(GoAFormItem, {
2707
- requirement: required ? 'required' : undefined,
2708
- error: modifiedErrors,
2709
- label: (props === null || props === void 0 ? void 0 : props.noLabel) === true ? '' : labelToUpdate,
2710
- helpText: typeof ((_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.help) === 'string' ? (_c = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _c === void 0 ? void 0 : _c.help : '',
2711
- children: jsx(InnerComponent, Object.assign({}, modifiedProps))
2712
- })
2713
- })
2714
- });
2731
+ }();
2732
+
2733
+ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
2734
+ if (isArray$1(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
2735
+ throw new $TypeError$3('Cannot set read only .length');
2736
+ } return O.length = length;
2737
+ } : function (O, length) {
2738
+ return O.length = length;
2715
2739
  };
2716
2740
 
2717
- var makeBuiltIn = makeBuiltIn$3.exports;
2718
- var defineProperty$1 = objectDefineProperty;
2741
+ var $TypeError$2 = TypeError;
2742
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2719
2743
 
2720
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
2721
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
2722
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
2723
- return defineProperty$1.f(target, name, descriptor);
2744
+ var doesNotExceedSafeInteger$1 = function (it) {
2745
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$2('Maximum allowed index exceeded');
2746
+ return it;
2724
2747
  };
2725
2748
 
2726
2749
  var $$6 = _export;
2727
- var DESCRIPTORS$2 = descriptors;
2728
- var global$2 = global$g;
2729
- var uncurryThis$5 = functionUncurryThis;
2730
- var hasOwn$2 = hasOwnProperty_1;
2731
- var isCallable$4 = isCallable$l;
2732
- var isPrototypeOf$2 = objectIsPrototypeOf;
2733
- var toString$4 = toString$9;
2734
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
2735
- var copyConstructorProperties$1 = copyConstructorProperties$3;
2736
-
2737
- var NativeSymbol = global$2.Symbol;
2738
- var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
2750
+ var toObject$1 = toObject$7;
2751
+ var lengthOfArrayLike$1 = lengthOfArrayLike$4;
2752
+ var setArrayLength = arraySetLength;
2753
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2754
+ var fails$4 = fails$m;
2739
2755
 
2740
- if (DESCRIPTORS$2 && isCallable$4(NativeSymbol) && (!('description' in SymbolPrototype) ||
2741
- // Safari 12 bug
2742
- NativeSymbol().description !== undefined
2743
- )) {
2744
- var EmptyStringDescriptionStore = {};
2745
- // wrap Symbol constructor for correct work with undefined description
2746
- var SymbolWrapper = function Symbol() {
2747
- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$4(arguments[0]);
2748
- var result = isPrototypeOf$2(SymbolPrototype, this)
2749
- ? new NativeSymbol(description)
2750
- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
2751
- : description === undefined ? NativeSymbol() : NativeSymbol(description);
2752
- if (description === '') EmptyStringDescriptionStore[result] = true;
2753
- return result;
2754
- };
2756
+ var INCORRECT_TO_LENGTH = fails$4(function () {
2757
+ return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
2758
+ });
2755
2759
 
2756
- copyConstructorProperties$1(SymbolWrapper, NativeSymbol);
2757
- SymbolWrapper.prototype = SymbolPrototype;
2758
- SymbolPrototype.constructor = SymbolWrapper;
2760
+ // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
2761
+ // https://bugs.chromium.org/p/v8/issues/detail?id=12681
2762
+ var properErrorOnNonWritableLength = function () {
2763
+ try {
2764
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
2765
+ Object.defineProperty([], 'length', { writable: false }).push();
2766
+ } catch (error) {
2767
+ return error instanceof TypeError;
2768
+ }
2769
+ };
2759
2770
 
2760
- var NATIVE_SYMBOL$1 = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
2761
- var thisSymbolValue = uncurryThis$5(SymbolPrototype.valueOf);
2762
- var symbolDescriptiveString = uncurryThis$5(SymbolPrototype.toString);
2763
- var regexp = /^Symbol\((.*)\)[^)]+$/;
2764
- var replace$2 = uncurryThis$5(''.replace);
2765
- var stringSlice = uncurryThis$5(''.slice);
2771
+ var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
2766
2772
 
2767
- defineBuiltInAccessor(SymbolPrototype, 'description', {
2768
- configurable: true,
2769
- get: function description() {
2770
- var symbol = thisSymbolValue(this);
2771
- if (hasOwn$2(EmptyStringDescriptionStore, symbol)) return '';
2772
- var string = symbolDescriptiveString(symbol);
2773
- var desc = NATIVE_SYMBOL$1 ? stringSlice(string, 7, -1) : replace$2(string, regexp, '$1');
2774
- return desc === '' ? undefined : desc;
2773
+ // `Array.prototype.push` method
2774
+ // https://tc39.es/ecma262/#sec-array.prototype.push
2775
+ $$6({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
2776
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
2777
+ push: function push(item) {
2778
+ var O = toObject$1(this);
2779
+ var len = lengthOfArrayLike$1(O);
2780
+ var argCount = arguments.length;
2781
+ doesNotExceedSafeInteger(len + argCount);
2782
+ for (var i = 0; i < argCount; i++) {
2783
+ O[len] = arguments[i];
2784
+ len++;
2775
2785
  }
2776
- });
2786
+ setArrayLength(O, len);
2787
+ return len;
2788
+ }
2789
+ });
2777
2790
 
2778
- $$6({ global: true, constructor: true, forced: true }, {
2779
- Symbol: SymbolWrapper
2780
- });
2781
- }
2791
+ function registerReducer(registerData, action) {
2792
+ switch (action.type) {
2793
+ case ADD_REGISTER_DATA_ACTION:
2794
+ {
2795
+ registerData.push(action.payload);
2796
+ return [...registerData];
2797
+ }
2798
+ }
2799
+ return registerData;
2800
+ }
2801
+
2802
+ /******************************************************************************
2803
+ Copyright (c) Microsoft Corporation.
2804
+
2805
+ Permission to use, copy, modify, and/or distribute this software for any
2806
+ purpose with or without fee is hereby granted.
2807
+
2808
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2809
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2810
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2811
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2812
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2813
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2814
+ PERFORMANCE OF THIS SOFTWARE.
2815
+ ***************************************************************************** */
2816
+
2817
+ function __rest(s, e) {
2818
+ var t = {};
2819
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2820
+ t[p] = s[p];
2821
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
2822
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2823
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2824
+ t[p[i]] = s[p[i]];
2825
+ }
2826
+ return t;
2827
+ }
2828
+
2829
+ function __awaiter(thisArg, _arguments, P, generator) {
2830
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2831
+ return new (P || (P = Promise))(function (resolve, reject) {
2832
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2833
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
2834
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2835
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
2836
+ });
2837
+ }
2838
+
2839
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
2840
+ var e = new Error(message);
2841
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2842
+ };
2843
+
2844
+ const fetchRegister = props => __awaiter(void 0, void 0, void 0, function* () {
2845
+ let headers = {};
2846
+ const {
2847
+ token,
2848
+ responsePrefixPath,
2849
+ url,
2850
+ objectPathInArray
2851
+ } = props;
2852
+ if (token) {
2853
+ headers = {
2854
+ Authorization: `Bearer ${token}`
2855
+ };
2856
+ }
2857
+ if (url) {
2858
+ try {
2859
+ const res = yield axios.get(url, {
2860
+ headers: headers
2861
+ });
2862
+ // eslint-disable-next-line
2863
+ const responseData = responsePrefixPath ? get$1(res.data, responsePrefixPath) : res.data;
2864
+ if (objectPathInArray) {
2865
+ return responseData === null || responseData === void 0 ? void 0 : responseData.map(d => get$1(d, objectPathInArray));
2866
+ }
2867
+ return responseData;
2868
+ } catch (err) {
2869
+ console.warn(`Error in fetch enum register data from remote: ${err}`);
2870
+ }
2871
+ }
2872
+ return undefined;
2873
+ });
2874
+
2875
+ const JsonFormsRegisterContext = /*#__PURE__*/createContext(undefined);
2876
+ const JsonFormRegisterProvider = ({
2877
+ children,
2878
+ defaultRegisters
2879
+ }) => {
2880
+ const registerCtx = useContext(JsonFormsRegisterContext);
2881
+ const [registers, dispatch] = useReducer(registerReducer, []);
2882
+ const context = useMemo(() => {
2883
+ return {
2884
+ isProvided: true,
2885
+ registerDispatch: dispatch,
2886
+ selectRegisterDataByUrl: url => {
2887
+ var _a;
2888
+ return ((_a = registers === null || registers === void 0 ? void 0 : registers.find(r => r.url === url)) === null || _a === void 0 ? void 0 : _a.data) || [];
2889
+ },
2890
+ fetchRegisterByUrl: registerConfig => __awaiter(void 0, void 0, void 0, function* () {
2891
+ // Prevent re-freshing remote data
2892
+ if (registers === null || registers === void 0 ? void 0 : registers.find(r => r.url === (registerConfig === null || registerConfig === void 0 ? void 0 : registerConfig.url))) {
2893
+ return;
2894
+ }
2895
+ const data = yield fetchRegister(registerConfig);
2896
+ // TODO: check the data type
2897
+ if (data) {
2898
+ dispatch({
2899
+ type: ADD_REGISTER_DATA_ACTION,
2900
+ payload: Object.assign(Object.assign({}, registerConfig), {
2901
+ data
2902
+ })
2903
+ });
2904
+ }
2905
+ })
2906
+ };
2907
+ }, [registers]);
2908
+ useEffect(() => {
2909
+ if (defaultRegisters) {
2910
+ defaultRegisters === null || defaultRegisters === void 0 ? void 0 : defaultRegisters.forEach(register => {
2911
+ if ((register === null || register === void 0 ? void 0 : register.data) !== undefined) {
2912
+ // Register comes with data from remote
2913
+ dispatch({
2914
+ type: ADD_REGISTER_DATA_ACTION,
2915
+ payload: Object.assign({}, register)
2916
+ });
2917
+ } else {
2918
+ (() => __awaiter(void 0, void 0, void 0, function* () {
2919
+ const data = yield fetchRegister(register);
2920
+ if (data) {
2921
+ dispatch({
2922
+ type: ADD_REGISTER_DATA_ACTION,
2923
+ payload: Object.assign(Object.assign({}, register), {
2924
+ data
2925
+ })
2926
+ });
2927
+ }
2928
+ }))();
2929
+ }
2930
+ });
2931
+ }
2932
+ }, [dispatch, defaultRegisters]);
2933
+ /* The client might use the context outside of the Jsonform to provide custom register data */
2934
+ if (registerCtx === null || registerCtx === void 0 ? void 0 : registerCtx.isProvided) {
2935
+ return children;
2936
+ }
2937
+ return jsx(JsonFormsRegisterContext.Provider, {
2938
+ value: context,
2939
+ children: children
2940
+ });
2941
+ };
2942
+
2943
+ const GoAInputBaseControl = props => {
2944
+ var _a, _b;
2945
+ const {
2946
+ uischema,
2947
+ visible,
2948
+ label,
2949
+ input,
2950
+ required,
2951
+ errors
2952
+ } = props;
2953
+ const InnerComponent = input;
2954
+ const labelToUpdate = getLabelText(uischema.scope, label || '');
2955
+ checkFieldValidity(props);
2956
+ const getStepStatus = (props, value) => {
2957
+ return {
2958
+ id: props.id,
2959
+ value: value,
2960
+ required: props.required || false,
2961
+ type: props.schema.type,
2962
+ step: stepperContext.stepId
2963
+ };
2964
+ };
2965
+ const stepperContext = useContext(StepperContext);
2966
+ const handlerWithStepperUpdate = (path, value) => {
2967
+ stepperContext.updateStatus(getStepStatus(props, value));
2968
+ props.handleChange(path, value);
2969
+ };
2970
+ const modifiedProps = Object.assign(Object.assign({}, props), {
2971
+ handleChange: handlerWithStepperUpdate
2972
+ });
2973
+ useEffect(() => {
2974
+ if (!stepperContext.isInitialized(props.id)) {
2975
+ const status = getStepStatus(props, props.data);
2976
+ stepperContext.updateStatus(status);
2977
+ }
2978
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2979
+ }, []);
2980
+ return jsx(JsonFormRegisterProvider, {
2981
+ defaultRegisters: undefined,
2982
+ children: jsx(Visible, {
2983
+ visible: visible,
2984
+ children: jsx(FormFieldWrapper, {
2985
+ children: jsx(GoAFormItem, {
2986
+ requirement: required ? 'required' : undefined,
2987
+ error: '',
2988
+ label: (props === null || props === void 0 ? void 0 : props.noLabel) === true ? '' : labelToUpdate,
2989
+ helpText: typeof ((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.help) === 'string' ? (_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.help : '',
2990
+ children: jsx(InnerComponent, Object.assign({}, modifiedProps))
2991
+ })
2992
+ })
2993
+ })
2994
+ });
2995
+ };
2996
+
2997
+ var makeBuiltIn = makeBuiltIn$3.exports;
2998
+ var defineProperty$1 = objectDefineProperty;
2999
+
3000
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
3001
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
3002
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
3003
+ return defineProperty$1.f(target, name, descriptor);
3004
+ };
3005
+
3006
+ var $$5 = _export;
3007
+ var DESCRIPTORS$1 = descriptors;
3008
+ var global$3 = global$h;
3009
+ var uncurryThis$5 = functionUncurryThis;
3010
+ var hasOwn$1 = hasOwnProperty_1;
3011
+ var isCallable$3 = isCallable$l;
3012
+ var isPrototypeOf$1 = objectIsPrototypeOf;
3013
+ var toString$3 = toString$9;
3014
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
3015
+ var copyConstructorProperties$1 = copyConstructorProperties$3;
3016
+
3017
+ var NativeSymbol = global$3.Symbol;
3018
+ var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
3019
+
3020
+ if (DESCRIPTORS$1 && isCallable$3(NativeSymbol) && (!('description' in SymbolPrototype) ||
3021
+ // Safari 12 bug
3022
+ NativeSymbol().description !== undefined
3023
+ )) {
3024
+ var EmptyStringDescriptionStore = {};
3025
+ // wrap Symbol constructor for correct work with undefined description
3026
+ var SymbolWrapper = function Symbol() {
3027
+ var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$3(arguments[0]);
3028
+ var result = isPrototypeOf$1(SymbolPrototype, this)
3029
+ ? new NativeSymbol(description)
3030
+ // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
3031
+ : description === undefined ? NativeSymbol() : NativeSymbol(description);
3032
+ if (description === '') EmptyStringDescriptionStore[result] = true;
3033
+ return result;
3034
+ };
3035
+
3036
+ copyConstructorProperties$1(SymbolWrapper, NativeSymbol);
3037
+ SymbolWrapper.prototype = SymbolPrototype;
3038
+ SymbolPrototype.constructor = SymbolWrapper;
3039
+
3040
+ var NATIVE_SYMBOL$1 = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
3041
+ var thisSymbolValue = uncurryThis$5(SymbolPrototype.valueOf);
3042
+ var symbolDescriptiveString = uncurryThis$5(SymbolPrototype.toString);
3043
+ var regexp = /^Symbol\((.*)\)[^)]+$/;
3044
+ var replace$2 = uncurryThis$5(''.replace);
3045
+ var stringSlice = uncurryThis$5(''.slice);
3046
+
3047
+ defineBuiltInAccessor(SymbolPrototype, 'description', {
3048
+ configurable: true,
3049
+ get: function description() {
3050
+ var symbol = thisSymbolValue(this);
3051
+ if (hasOwn$1(EmptyStringDescriptionStore, symbol)) return '';
3052
+ var string = symbolDescriptiveString(symbol);
3053
+ var desc = NATIVE_SYMBOL$1 ? stringSlice(string, 7, -1) : replace$2(string, regexp, '$1');
3054
+ return desc === '' ? undefined : desc;
3055
+ }
3056
+ });
3057
+
3058
+ $$5({ global: true, constructor: true, forced: true }, {
3059
+ Symbol: SymbolWrapper
3060
+ });
3061
+ }
2782
3062
 
2783
3063
  const GoAInputText = props => {
2784
3064
  var _a, _b, _c, _d, _e, _f, _g;
@@ -2989,32 +3269,23 @@ var uncurryThis$4 = functionUncurryThis;
2989
3269
 
2990
3270
  var arraySlice$1 = uncurryThis$4([].slice);
2991
3271
 
2992
- var classof$2 = classofRaw$1;
2993
-
2994
- // `IsArray` abstract operation
2995
- // https://tc39.es/ecma262/#sec-isarray
2996
- // eslint-disable-next-line es/no-array-isarray -- safe
2997
- var isArray$2 = Array.isArray || function isArray(argument) {
2998
- return classof$2(argument) === 'Array';
2999
- };
3000
-
3001
3272
  var uncurryThis$3 = functionUncurryThis;
3002
- var isArray$1 = isArray$2;
3003
- var isCallable$3 = isCallable$l;
3004
- var classof$1 = classofRaw$1;
3005
- var toString$3 = toString$9;
3273
+ var isArray = isArray$2;
3274
+ var isCallable$2 = isCallable$l;
3275
+ var classof$2 = classofRaw$1;
3276
+ var toString$2 = toString$9;
3006
3277
 
3007
3278
  var push = uncurryThis$3([].push);
3008
3279
 
3009
3280
  var getJsonReplacerFunction = function (replacer) {
3010
- if (isCallable$3(replacer)) return replacer;
3011
- if (!isArray$1(replacer)) return;
3281
+ if (isCallable$2(replacer)) return replacer;
3282
+ if (!isArray(replacer)) return;
3012
3283
  var rawLength = replacer.length;
3013
3284
  var keys = [];
3014
3285
  for (var i = 0; i < rawLength; i++) {
3015
3286
  var element = replacer[i];
3016
3287
  if (typeof element == 'string') push(keys, element);
3017
- else if (typeof element == 'number' || classof$1(element) === 'Number' || classof$1(element) === 'String') push(keys, toString$3(element));
3288
+ else if (typeof element == 'number' || classof$2(element) === 'Number' || classof$2(element) === 'String') push(keys, toString$2(element));
3018
3289
  }
3019
3290
  var keysLength = keys.length;
3020
3291
  var root = true;
@@ -3023,18 +3294,18 @@ var getJsonReplacerFunction = function (replacer) {
3023
3294
  root = false;
3024
3295
  return value;
3025
3296
  }
3026
- if (isArray$1(this)) return value;
3297
+ if (isArray(this)) return value;
3027
3298
  for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
3028
3299
  };
3029
3300
  };
3030
3301
 
3031
- var $$5 = _export;
3302
+ var $$4 = _export;
3032
3303
  var getBuiltIn$1 = getBuiltIn$5;
3033
3304
  var apply$1 = functionApply;
3034
- var call$2 = functionCall;
3305
+ var call = functionCall;
3035
3306
  var uncurryThis$2 = functionUncurryThis;
3036
- var fails$4 = fails$m;
3037
- var isCallable$2 = isCallable$l;
3307
+ var fails$3 = fails$m;
3308
+ var isCallable$1 = isCallable$l;
3038
3309
  var isSymbol = isSymbol$3;
3039
3310
  var arraySlice = arraySlice$1;
3040
3311
  var getReplacerFunction = getJsonReplacerFunction;
@@ -3052,7 +3323,7 @@ var tester = /[\uD800-\uDFFF]/g;
3052
3323
  var low = /^[\uD800-\uDBFF]$/;
3053
3324
  var hi = /^[\uDC00-\uDFFF]$/;
3054
3325
 
3055
- var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$4(function () {
3326
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$3(function () {
3056
3327
  var symbol = getBuiltIn$1('Symbol')('stringify detection');
3057
3328
  // MS Edge converts symbol values to JSON as {}
3058
3329
  return $stringify([symbol]) !== '[null]'
@@ -3063,7 +3334,7 @@ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$4(function () {
3063
3334
  });
3064
3335
 
3065
3336
  // https://github.com/tc39/proposal-well-formed-stringify
3066
- var ILL_FORMED_UNICODE = fails$4(function () {
3337
+ var ILL_FORMED_UNICODE = fails$3(function () {
3067
3338
  return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
3068
3339
  || $stringify('\uDEAD') !== '"\\udead"';
3069
3340
  });
@@ -3071,10 +3342,10 @@ var ILL_FORMED_UNICODE = fails$4(function () {
3071
3342
  var stringifyWithSymbolsFix = function (it, replacer) {
3072
3343
  var args = arraySlice(arguments);
3073
3344
  var $replacer = getReplacerFunction(replacer);
3074
- if (!isCallable$2($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
3345
+ if (!isCallable$1($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
3075
3346
  args[1] = function (key, value) {
3076
3347
  // some old implementations (like WebKit) could pass numbers as keys
3077
- if (isCallable$2($replacer)) value = call$2($replacer, this, $String(key), value);
3348
+ if (isCallable$1($replacer)) value = call($replacer, this, $String(key), value);
3078
3349
  if (!isSymbol(value)) return value;
3079
3350
  };
3080
3351
  return apply$1($stringify, null, args);
@@ -3091,7 +3362,7 @@ var fixIllFormed = function (match, offset, string) {
3091
3362
  if ($stringify) {
3092
3363
  // `JSON.stringify` method
3093
3364
  // https://tc39.es/ecma262/#sec-json.stringify
3094
- $$5({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
3365
+ $$4({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
3095
3366
  // eslint-disable-next-line no-unused-vars -- required for `.length`
3096
3367
  stringify: function stringify(it, replacer, space) {
3097
3368
  var args = arraySlice(arguments);
@@ -3346,80 +3617,462 @@ const GoATimeControl = props => jsx(GoAInputBaseControl, Object.assign({}, props
3346
3617
  const GoATimeControlTester = rankWith(4, isTimeControl);
3347
3618
  const GoAInputTimeControl = withJsonFormsControlProps(GoATimeControl);
3348
3619
 
3349
- var defineProperty = objectDefineProperty.f;
3350
-
3351
- var proxyAccessor$1 = function (Target, Source, key) {
3352
- key in Target || defineProperty(Target, key, {
3353
- configurable: true,
3354
- get: function () { return Source[key]; },
3355
- set: function (it) { Source[key] = it; }
3356
- });
3620
+ function fetchRegisterConfigFromOptions(options) {
3621
+ if (!(options === null || options === void 0 ? void 0 : options.url)) return undefined;
3622
+ const config = Object.assign({}, options);
3623
+ return config;
3624
+ }
3625
+ const EnumSelect = props => {
3626
+ var _a, _b, _c, _d, _e;
3627
+ const {
3628
+ data,
3629
+ id,
3630
+ enabled,
3631
+ errors,
3632
+ schema,
3633
+ path,
3634
+ handleChange,
3635
+ options,
3636
+ config,
3637
+ label,
3638
+ uischema,
3639
+ required
3640
+ } = props;
3641
+ const registerCtx = useContext(JsonFormsRegisterContext);
3642
+ const registerConfig = fetchRegisterConfigFromOptions((_b = (_a = props.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.register);
3643
+ let registerData = [];
3644
+ if (registerConfig) {
3645
+ registerData = registerCtx === null || registerCtx === void 0 ? void 0 : registerCtx.selectRegisterDataByUrl(registerConfig.url);
3646
+ }
3647
+ const autocompletion = ((_d = (_c = props.uischema) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.autocomplete) === true;
3648
+ const appliedUiSchemaOptions = merge({}, config, props.uischema.options);
3649
+ const mergedOptions = useMemo(() => {
3650
+ return [...(options || []), ...registerData.map(d => {
3651
+ return {
3652
+ value: d,
3653
+ label: d
3654
+ };
3655
+ })];
3656
+ }, [registerData, options]);
3657
+ useEffect(() => {
3658
+ if (registerConfig) {
3659
+ registerCtx === null || registerCtx === void 0 ? void 0 : registerCtx.fetchRegisterByUrl(registerConfig);
3660
+ }
3661
+ }, [registerCtx, registerConfig]);
3662
+ return jsx(GoADropdown, Object.assign({
3663
+ name: `${label}`,
3664
+ value: data,
3665
+ disabled: !enabled,
3666
+ relative: true,
3667
+ width: "100%",
3668
+ filterable: autocompletion,
3669
+ testId: `${id || label}-jsonform`
3670
+ }, appliedUiSchemaOptions, {
3671
+ onChange: (name, value) => {
3672
+ handleChange(path, value);
3673
+ }
3674
+ }, (_e = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _e === void 0 ? void 0 : _e.componentProps, {
3675
+ children: mergedOptions === null || mergedOptions === void 0 ? void 0 : mergedOptions.map(item => {
3676
+ return jsx(GoADropdownItem, {
3677
+ value: `${item.value}`,
3678
+ label: `${item.label}`
3679
+ }, `json-form-dropdown-${item.value}`);
3680
+ })
3681
+ }), `${id}-jsonform-key`);
3357
3682
  };
3683
+ const enumControl = props => {
3684
+ return jsx(GoAInputBaseControl, Object.assign({}, props, {
3685
+ input: EnumSelect
3686
+ }));
3687
+ };
3688
+ const GoAEnumControlTester = rankWith(2, isEnumControl);
3689
+ // HOC order can be reversed with https://github.com/eclipsesource/jsonforms/issues/1987
3690
+ const GoAEnumControl = withJsonFormsEnumProps(withTranslateProps(enumControl), true);
3358
3691
 
3359
- var isCallable$1 = isCallable$l;
3360
- var isObject$2 = isObject$b;
3361
- var setPrototypeOf$1 = objectSetPrototypeOf;
3362
-
3363
- // makes subclassing work correct for wrapped built-ins
3364
- var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
3365
- var NewTarget, NewTargetPrototype;
3366
- if (
3367
- // it can work only with native `setPrototypeOf`
3368
- setPrototypeOf$1 &&
3369
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
3370
- isCallable$1(NewTarget = dummy.constructor) &&
3371
- NewTarget !== Wrapper &&
3372
- isObject$2(NewTargetPrototype = NewTarget.prototype) &&
3373
- NewTargetPrototype !== Wrapper.prototype
3374
- ) setPrototypeOf$1($this, NewTargetPrototype);
3375
- return $this;
3692
+ const RadioGroup = props => {
3693
+ var _a;
3694
+ const {
3695
+ data,
3696
+ className,
3697
+ id,
3698
+ enabled,
3699
+ schema,
3700
+ uischema,
3701
+ path,
3702
+ handleChange,
3703
+ options,
3704
+ config,
3705
+ label,
3706
+ t
3707
+ } = props;
3708
+ const enumData = (schema === null || schema === void 0 ? void 0 : schema.enum) || [];
3709
+ const appliedUiSchemaOptions = merge({}, config, props.uischema.options, options);
3710
+ const errorsFormInput = checkFieldValidity(props);
3711
+ return jsx(GoARadioGroup, Object.assign({
3712
+ error: errorsFormInput.length > 0,
3713
+ name: `${options || appliedUiSchemaOptions.label}`,
3714
+ testId: `${label || id}-jsonforms-radio`,
3715
+ value: data,
3716
+ disabled: !enabled
3717
+ }, appliedUiSchemaOptions, {
3718
+ onChange: (name, value) => handleChange(path, value)
3719
+ }, (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps, {
3720
+ children: enumData.map(enumValue => {
3721
+ return jsx(GoARadioItem, Object.assign({
3722
+ name: enumValue,
3723
+ value: `${enumValue}`
3724
+ }, appliedUiSchemaOptions, {
3725
+ label: enumValue
3726
+ }));
3727
+ })
3728
+ }));
3376
3729
  };
3730
+ const EnumRadioControl = props => {
3731
+ return jsx(GoAInputBaseControl, Object.assign({}, props, {
3732
+ input: RadioGroup
3733
+ }));
3734
+ };
3735
+ const GoAEnumRadioGroupControl = withJsonFormsEnumProps(withTranslateProps(EnumRadioControl), true);
3736
+ const GoARadioGroupControlTester = rankWith(20, and(isEnumControl, optionIs('format', 'radio')));
3377
3737
 
3378
- var toString$2 = toString$9;
3379
-
3380
- var normalizeStringArgument$1 = function (argument, $default) {
3381
- return argument === undefined ? arguments.length < 2 ? '' : $default : toString$2(argument);
3738
+ const BooleanComponent = ({
3739
+ data,
3740
+ enabled,
3741
+ uischema,
3742
+ handleChange,
3743
+ path,
3744
+ label,
3745
+ required,
3746
+ errors
3747
+ }) => {
3748
+ var _a;
3749
+ const errorsFormInput = checkFieldValidity({
3750
+ data,
3751
+ uischema,
3752
+ label,
3753
+ required,
3754
+ errors
3755
+ });
3756
+ const text = label + (required ? ' (required)' : '');
3757
+ return jsx(GoACheckbox, Object.assign({
3758
+ error: errorsFormInput.length > 0,
3759
+ testId: `${path}-checkbox-test-id`,
3760
+ disabled: !enabled,
3761
+ text: text,
3762
+ name: `${path}`,
3763
+ checked: data,
3764
+ onChange: (_, checked) => {
3765
+ handleChange(path, checked);
3766
+ }
3767
+ }, (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps));
3382
3768
  };
3769
+ const BooleanControl = props => jsx(GoAInputBaseControl, Object.assign({}, props, {
3770
+ noLabel: true,
3771
+ input: BooleanComponent
3772
+ }));
3773
+ const GoABooleanControlTester = rankWith(2, isBooleanControl);
3774
+ const GoABooleanControl = withJsonFormsControlProps(BooleanControl);
3383
3775
 
3384
- var isObject$1 = isObject$b;
3385
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
3776
+ const BooleanRadioComponent = ({
3777
+ data,
3778
+ visible,
3779
+ enabled,
3780
+ uischema,
3781
+ handleChange,
3782
+ path,
3783
+ config,
3784
+ label,
3785
+ required,
3786
+ errors,
3787
+ description
3788
+ }) => {
3789
+ var _a;
3790
+ const appliedUiSchemaOptions = Object.assign(Object.assign({}, config), uischema === null || uischema === void 0 ? void 0 : uischema.options);
3791
+ const TrueValue = (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.textForTrue) || 'Yes';
3792
+ const FalseValue = (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.textForFalse) || 'No';
3793
+ const EnableDescription = (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.enableDescription) === true;
3794
+ const TrueDescription = description || (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.descriptionForTrue);
3795
+ const FalseDescription = description || (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.descriptionForFalse);
3796
+ const BaseTestId = (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.testId) || `${path}-boolean-radio-jsonform`;
3797
+ const errorsFormInput = checkFieldValidity({
3798
+ data,
3799
+ uischema,
3800
+ label,
3801
+ required,
3802
+ errors
3803
+ });
3804
+ return jsx(Visible, {
3805
+ visible: visible,
3806
+ children: jsxs(GoARadioGroup, Object.assign({
3807
+ error: errorsFormInput.length > 0,
3808
+ name: `${label}`,
3809
+ value: data === true ? TrueValue : data === false ? FalseValue : null,
3810
+ disabled: !enabled,
3811
+ testId: BaseTestId,
3812
+ onChange: (_name, value) => {
3813
+ if (value === TrueValue) {
3814
+ handleChange(path, true);
3815
+ }
3816
+ if (value === FalseValue) {
3817
+ handleChange(path, false);
3818
+ }
3819
+ }
3820
+ }, (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps, {
3821
+ children: [jsx(GoARadioItem, {
3822
+ value: TrueValue,
3823
+ testId: `${BaseTestId}-yes-option`,
3824
+ description: EnableDescription ? TrueDescription : null
3825
+ }), jsx(GoARadioItem, {
3826
+ value: FalseValue,
3827
+ testId: `${BaseTestId}-no-option`,
3828
+ description: EnableDescription ? FalseDescription : null
3829
+ })]
3830
+ }))
3831
+ });
3832
+ };
3833
+ const BooleanRadioControl = props => jsx(GoAInputBaseControl, Object.assign({}, props, {
3834
+ input: BooleanRadioComponent
3835
+ }));
3836
+ const GoABooleanRadioControlTester = rankWith(3, and(isBooleanControl, optionIs('radio', true)));
3837
+ const GoABooleanRadioControl = withJsonFormsControlProps(BooleanRadioControl);
3386
3838
 
3387
- // `InstallErrorCause` abstract operation
3388
- // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
3389
- var installErrorCause$1 = function (O, options) {
3390
- if (isObject$1(options) && 'cause' in options) {
3391
- createNonEnumerableProperty$2(O, 'cause', options.cause);
3839
+ const renderLayoutElements = (elements, schema, path, enabled, renderers, cells) => {
3840
+ return elements.map((child, index) => jsx("div", {
3841
+ children: jsx(JsonFormsDispatch, {
3842
+ uischema: child,
3843
+ schema: schema,
3844
+ path: path,
3845
+ enabled: enabled,
3846
+ renderers: renderers,
3847
+ cells: cells
3848
+ }, path)
3849
+ }, index));
3850
+ };
3851
+ const withAjvProps = Component => function WithAjvProps(props) {
3852
+ const ctx = useJsonForms();
3853
+ const ajv = getAjv({
3854
+ jsonforms: Object.assign({}, ctx)
3855
+ });
3856
+ return jsx(Component, Object.assign({}, props, {
3857
+ ajv: ajv
3858
+ }));
3859
+ };
3860
+ const LayoutRenderer = ({
3861
+ elements,
3862
+ schema,
3863
+ path,
3864
+ enabled,
3865
+ direction,
3866
+ renderers,
3867
+ cells,
3868
+ visible
3869
+ }) => {
3870
+ if (isEmpty$1(elements)) {
3871
+ return null;
3872
+ } else {
3873
+ if (direction === 'row') {
3874
+ return jsx(Visible, {
3875
+ visible: visible,
3876
+ children: jsx(GoAGrid, {
3877
+ minChildWidth: "10ch",
3878
+ children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
3879
+ })
3880
+ });
3881
+ } else {
3882
+ return jsx(Visible, {
3883
+ visible: visible,
3884
+ children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
3885
+ });
3886
+ }
3392
3887
  }
3393
3888
  };
3394
3889
 
3395
- var uncurryThis$1 = functionUncurryThis;
3396
-
3397
- var $Error = Error;
3398
- var replace = uncurryThis$1(''.replace);
3399
-
3400
- var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
3401
- // eslint-disable-next-line redos/no-vulnerable -- safe
3402
- var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
3403
- var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
3890
+ let _$5 = t => t,
3891
+ _t$5,
3892
+ _t2$3;
3893
+ const Grid = styled.div(_t$5 || (_t$5 = _$5`
3894
+ display: flex;
3895
+ flex-direction: row;
3896
+ flex-wrap: wrap;
3897
+ justify-content: space-between;
3898
+ align-items: stretch;
3899
+ `));
3900
+ const GridItem = styled.div(_t2$3 || (_t2$3 = _$5`
3901
+ margin-bottom: ${0};
3404
3902
 
3405
- var errorStackClear = function (stack, dropEntries) {
3406
- if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
3407
- while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
3408
- } return stack;
3409
- };
3903
+ > .goa-card {
3904
+ height: 100% !important;
3905
+ width: 100% !important;
3906
+ }
3410
3907
 
3411
- var fails$3 = fails$m;
3412
- var createPropertyDescriptor = createPropertyDescriptor$4;
3908
+ > img {
3909
+ width: 100%;
3910
+ }
3413
3911
 
3414
- var errorStackInstallable = !fails$3(function () {
3415
- var error = new Error('a');
3416
- if (!('stack' in error)) return true;
3417
- // eslint-disable-next-line es/no-object-defineproperty -- safe
3418
- Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
3419
- return error.stack !== 7;
3420
- });
3912
+ flex: 0 1
3913
+ ${0};
3421
3914
 
3422
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
3915
+ @media (min-width: 768px) {
3916
+ flex-basis: ${0};
3917
+ }
3918
+ @media (min-width: 1024px) {
3919
+ flex-basis: ${0};
3920
+ }
3921
+ @media (min-width: 1280px) {
3922
+ flex-basis: ${0};
3923
+ }
3924
+ `), props => {
3925
+ var _a;
3926
+ return `${(_a = props.vSpacing) !== null && _a !== void 0 ? _a : 0}rem`;
3927
+ }, props => {
3928
+ var _a, _b;
3929
+ return props.sm === 12 || props.sm === undefined ? '100%' : `calc(${100 * ((_a = props === null || props === void 0 ? void 0 : props.sm) !== null && _a !== void 0 ? _a : 12) / 12}% - ${(_b = props.hSpacing) !== null && _b !== void 0 ? _b : 0}rem)`;
3930
+ }, props => {
3931
+ var _a, _b, _c;
3932
+ return props.md === 12 ? '100%' : `calc(${100 * ((_b = (_a = props === null || props === void 0 ? void 0 : props.md) !== null && _a !== void 0 ? _a : props.sm) !== null && _b !== void 0 ? _b : 12) / 12}% - ${(_c = props.hSpacing) !== null && _c !== void 0 ? _c : 0}rem)`;
3933
+ }, props => {
3934
+ var _a, _b, _c, _d;
3935
+ return props.lg === 12 ? '100%' : `calc(${100 * ((_c = (_b = (_a = props === null || props === void 0 ? void 0 : props.lg) !== null && _a !== void 0 ? _a : props === null || props === void 0 ? void 0 : props.md) !== null && _b !== void 0 ? _b : props.sm) !== null && _c !== void 0 ? _c : 12) / 12}% - ${(_d = props.hSpacing) !== null && _d !== void 0 ? _d : 0}rem)`;
3936
+ }, props => {
3937
+ var _a, _b, _c, _d;
3938
+ return props.xl === 12 ? '100%' : `calc(${100 * ((_c = (_b = (_a = props === null || props === void 0 ? void 0 : props.xl) !== null && _a !== void 0 ? _a : props === null || props === void 0 ? void 0 : props.md) !== null && _b !== void 0 ? _b : props.sm) !== null && _c !== void 0 ? _c : 12) / 12}% - ${(_d = props.hSpacing) !== null && _d !== void 0 ? _d : 0}rem)`;
3939
+ });
3940
+
3941
+ let _$4 = t => t,
3942
+ _t$4,
3943
+ _t2$2,
3944
+ _t3$2,
3945
+ _t4$1,
3946
+ _t5,
3947
+ _t6,
3948
+ _t7,
3949
+ _t8,
3950
+ _t9,
3951
+ _t10;
3952
+ const ReviewItem = styled.div(_t$4 || (_t$4 = _$4`
3953
+ display: flex;
3954
+ flex-direction: column;
3955
+ border: var(--goa-border-width-s) solid grey;
3956
+ border-radius: var(--goa-border-radius-m);
3957
+ margin: var(--goa-space-2xs);
3958
+ padding: var(--goa-space-xs);
3959
+ `));
3960
+ const ReviewItemSection = styled.div(_t2$2 || (_t2$2 = _$4`
3961
+ background-color: #f1f1f1;
3962
+ margin-bottom: 1rem;
3963
+ padding: 1rem;
3964
+ border: 1px solid #dcdcdc;
3965
+ border-radius: 5px;
3966
+ `));
3967
+ const ReviewItemHeader = styled.div(_t3$2 || (_t3$2 = _$4`
3968
+ display: flex;
3969
+ align-items: center;
3970
+ justify-content: space-between;
3971
+ margin-bottom: 2rem;
3972
+ `));
3973
+ const ReviewItemTitle = styled.div(_t4$1 || (_t4$1 = _$4`
3974
+ font-size: var(--fs-xl);
3975
+ line-height: var(--lh-lg);
3976
+ font-weight: var(--fw-light);
3977
+ `));
3978
+ const Anchor = styled.div(_t5 || (_t5 = _$4`
3979
+ color: #0070c4;
3980
+ text-decoration: underline;
3981
+ outline: none;
3982
+ cursor: pointer;
3983
+ `));
3984
+ styled.div(_t6 || (_t6 = _$4`
3985
+ margin-left: var(--goa-space-m);
3986
+ `));
3987
+ styled.div(_t7 || (_t7 = _$4`
3988
+ margin-bottom: var(--goa-space-m);
3989
+ `));
3990
+ const ListWithDetail = styled.div(_t8 || (_t8 = _$4`
3991
+ margin: var(--goa-space-s);
3992
+ width: 100%;
3993
+ `));
3994
+ const ListWithDetailHeading = styled.h3(_t9 || (_t9 = _$4`
3995
+ text-transform: capitalize;
3996
+ `));
3997
+ const RightAlignmentDiv = styled.div(_t10 || (_t10 = _$4`
3998
+ display: flex;
3999
+ justify-content: flex-end;
4000
+ `));
4001
+
4002
+ var defineProperty = objectDefineProperty.f;
4003
+
4004
+ var proxyAccessor$1 = function (Target, Source, key) {
4005
+ key in Target || defineProperty(Target, key, {
4006
+ configurable: true,
4007
+ get: function () { return Source[key]; },
4008
+ set: function (it) { Source[key] = it; }
4009
+ });
4010
+ };
4011
+
4012
+ var isCallable = isCallable$l;
4013
+ var isObject$2 = isObject$b;
4014
+ var setPrototypeOf$1 = objectSetPrototypeOf;
4015
+
4016
+ // makes subclassing work correct for wrapped built-ins
4017
+ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
4018
+ var NewTarget, NewTargetPrototype;
4019
+ if (
4020
+ // it can work only with native `setPrototypeOf`
4021
+ setPrototypeOf$1 &&
4022
+ // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
4023
+ isCallable(NewTarget = dummy.constructor) &&
4024
+ NewTarget !== Wrapper &&
4025
+ isObject$2(NewTargetPrototype = NewTarget.prototype) &&
4026
+ NewTargetPrototype !== Wrapper.prototype
4027
+ ) setPrototypeOf$1($this, NewTargetPrototype);
4028
+ return $this;
4029
+ };
4030
+
4031
+ var toString$1 = toString$9;
4032
+
4033
+ var normalizeStringArgument$1 = function (argument, $default) {
4034
+ return argument === undefined ? arguments.length < 2 ? '' : $default : toString$1(argument);
4035
+ };
4036
+
4037
+ var isObject$1 = isObject$b;
4038
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
4039
+
4040
+ // `InstallErrorCause` abstract operation
4041
+ // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
4042
+ var installErrorCause$1 = function (O, options) {
4043
+ if (isObject$1(options) && 'cause' in options) {
4044
+ createNonEnumerableProperty$2(O, 'cause', options.cause);
4045
+ }
4046
+ };
4047
+
4048
+ var uncurryThis$1 = functionUncurryThis;
4049
+
4050
+ var $Error = Error;
4051
+ var replace = uncurryThis$1(''.replace);
4052
+
4053
+ var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
4054
+ // eslint-disable-next-line redos/no-vulnerable -- safe
4055
+ var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
4056
+ var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
4057
+
4058
+ var errorStackClear = function (stack, dropEntries) {
4059
+ if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
4060
+ while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
4061
+ } return stack;
4062
+ };
4063
+
4064
+ var fails$2 = fails$m;
4065
+ var createPropertyDescriptor = createPropertyDescriptor$4;
4066
+
4067
+ var errorStackInstallable = !fails$2(function () {
4068
+ var error = new Error('a');
4069
+ if (!('stack' in error)) return true;
4070
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
4071
+ Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
4072
+ return error.stack !== 7;
4073
+ });
4074
+
4075
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
3423
4076
  var clearErrorStack = errorStackClear;
3424
4077
  var ERROR_STACK_INSTALLABLE = errorStackInstallable;
3425
4078
 
@@ -3434,9 +4087,9 @@ var errorStackInstall = function (error, C, stack, dropEntries) {
3434
4087
  };
3435
4088
 
3436
4089
  var getBuiltIn = getBuiltIn$5;
3437
- var hasOwn$1 = hasOwnProperty_1;
4090
+ var hasOwn = hasOwnProperty_1;
3438
4091
  var createNonEnumerableProperty = createNonEnumerableProperty$8;
3439
- var isPrototypeOf$1 = objectIsPrototypeOf;
4092
+ var isPrototypeOf = objectIsPrototypeOf;
3440
4093
  var setPrototypeOf = objectSetPrototypeOf;
3441
4094
  var copyConstructorProperties = copyConstructorProperties$3;
3442
4095
  var proxyAccessor = proxyAccessor$1;
@@ -3444,7 +4097,7 @@ var inheritIfRequired = inheritIfRequired$1;
3444
4097
  var normalizeStringArgument = normalizeStringArgument$1;
3445
4098
  var installErrorCause = installErrorCause$1;
3446
4099
  var installErrorStack = errorStackInstall;
3447
- var DESCRIPTORS$1 = descriptors;
4100
+ var DESCRIPTORS = descriptors;
3448
4101
 
3449
4102
  var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
3450
4103
  var STACK_TRACE_LIMIT = 'stackTraceLimit';
@@ -3458,7 +4111,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
3458
4111
  var OriginalErrorPrototype = OriginalError.prototype;
3459
4112
 
3460
4113
  // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
3461
- if (hasOwn$1(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
4114
+ if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
3462
4115
 
3463
4116
  if (!FORCED) return OriginalError;
3464
4117
 
@@ -3469,7 +4122,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
3469
4122
  var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
3470
4123
  if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
3471
4124
  installErrorStack(result, WrappedError, result.stack, 2);
3472
- if (this && isPrototypeOf$1(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
4125
+ if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
3473
4126
  if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
3474
4127
  return result;
3475
4128
  });
@@ -3479,7 +4132,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
3479
4132
  if (ERROR_NAME !== 'Error') {
3480
4133
  if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
3481
4134
  else copyConstructorProperties(WrappedError, BaseError, { name: true });
3482
- } else if (DESCRIPTORS$1 && STACK_TRACE_LIMIT in OriginalError) {
4135
+ } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
3483
4136
  proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
3484
4137
  proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
3485
4138
  }
@@ -3498,13 +4151,13 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
3498
4151
  };
3499
4152
 
3500
4153
  /* eslint-disable no-unused-vars -- required for functions `.length` */
3501
- var $$4 = _export;
3502
- var global$1 = global$g;
4154
+ var $$3 = _export;
4155
+ var global$2 = global$h;
3503
4156
  var apply = functionApply;
3504
4157
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
3505
4158
 
3506
4159
  var WEB_ASSEMBLY = 'WebAssembly';
3507
- var WebAssembly = global$1[WEB_ASSEMBLY];
4160
+ var WebAssembly = global$2[WEB_ASSEMBLY];
3508
4161
 
3509
4162
  // eslint-disable-next-line es/no-error-cause -- feature detection
3510
4163
  var FORCED$1 = new Error('e', { cause: 7 }).cause !== 7;
@@ -3512,14 +4165,14 @@ var FORCED$1 = new Error('e', { cause: 7 }).cause !== 7;
3512
4165
  var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
3513
4166
  var O = {};
3514
4167
  O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$1);
3515
- $$4({ global: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
4168
+ $$3({ global: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
3516
4169
  };
3517
4170
 
3518
4171
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
3519
4172
  if (WebAssembly && WebAssembly[ERROR_NAME]) {
3520
4173
  var O = {};
3521
4174
  O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$1);
3522
- $$4({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
4175
+ $$3({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
3523
4176
  }
3524
4177
  };
3525
4178
 
@@ -3555,20 +4208,20 @@ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
3555
4208
  return function RuntimeError(message) { return apply(init, this, arguments); };
3556
4209
  });
3557
4210
 
3558
- var $$3 = _export;
4211
+ var $$2 = _export;
3559
4212
  var $includes = arrayIncludes.includes;
3560
- var fails$2 = fails$m;
4213
+ var fails$1 = fails$m;
3561
4214
  var addToUnscopables = addToUnscopables$3;
3562
4215
 
3563
4216
  // FF99+ bug
3564
- var BROKEN_ON_SPARSE = fails$2(function () {
4217
+ var BROKEN_ON_SPARSE = fails$1(function () {
3565
4218
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
3566
4219
  return !Array(1).includes();
3567
4220
  });
3568
4221
 
3569
4222
  // `Array.prototype.includes` method
3570
4223
  // https://tc39.es/ecma262/#sec-array.prototype.includes
3571
- $$3({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
4224
+ $$2({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
3572
4225
  includes: function includes(el /* , fromIndex = 0 */) {
3573
4226
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
3574
4227
  }
@@ -3577,85 +4230,8 @@ $$3({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
3577
4230
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3578
4231
  addToUnscopables('includes');
3579
4232
 
3580
- var DESCRIPTORS = descriptors;
3581
- var isArray = isArray$2;
3582
-
3583
- var $TypeError$2 = TypeError;
3584
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3585
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3586
-
3587
- // Safari < 13 does not throw an error in this case
3588
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
3589
- // makes no sense without proper strict mode support
3590
- if (this !== undefined) return true;
3591
- try {
3592
- // eslint-disable-next-line es/no-object-defineproperty -- safe
3593
- Object.defineProperty([], 'length', { writable: false }).length = 1;
3594
- } catch (error) {
3595
- return error instanceof TypeError;
3596
- }
3597
- }();
3598
-
3599
- var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
3600
- if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
3601
- throw new $TypeError$2('Cannot set read only .length');
3602
- } return O.length = length;
3603
- } : function (O, length) {
3604
- return O.length = length;
3605
- };
3606
-
3607
- var $TypeError$1 = TypeError;
3608
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
3609
-
3610
- var doesNotExceedSafeInteger$1 = function (it) {
3611
- if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
3612
- return it;
3613
- };
3614
-
3615
- var $$2 = _export;
3616
- var toObject = toObject$6;
3617
- var lengthOfArrayLike = lengthOfArrayLike$3;
3618
- var setArrayLength = arraySetLength;
3619
- var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
3620
- var fails$1 = fails$m;
3621
-
3622
- var INCORRECT_TO_LENGTH = fails$1(function () {
3623
- return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
3624
- });
3625
-
3626
- // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
3627
- // https://bugs.chromium.org/p/v8/issues/detail?id=12681
3628
- var properErrorOnNonWritableLength = function () {
3629
- try {
3630
- // eslint-disable-next-line es/no-object-defineproperty -- safe
3631
- Object.defineProperty([], 'length', { writable: false }).push();
3632
- } catch (error) {
3633
- return error instanceof TypeError;
3634
- }
3635
- };
3636
-
3637
- var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
3638
-
3639
- // `Array.prototype.push` method
3640
- // https://tc39.es/ecma262/#sec-array.prototype.push
3641
- $$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
3642
- // eslint-disable-next-line no-unused-vars -- required for `.length`
3643
- push: function push(item) {
3644
- var O = toObject(this);
3645
- var len = lengthOfArrayLike(O);
3646
- var argCount = arguments.length;
3647
- doesNotExceedSafeInteger(len + argCount);
3648
- for (var i = 0; i < argCount; i++) {
3649
- O[len] = arguments[i];
3650
- len++;
3651
- }
3652
- setArrayLength(O, len);
3653
- return len;
3654
- }
3655
- });
3656
-
3657
4233
  var isObject = isObject$b;
3658
- var classof = classofRaw$1;
4234
+ var classof$1 = classofRaw$1;
3659
4235
  var wellKnownSymbol$1 = wellKnownSymbol$c;
3660
4236
 
3661
4237
  var MATCH$1 = wellKnownSymbol$1('match');
@@ -3664,16 +4240,16 @@ var MATCH$1 = wellKnownSymbol$1('match');
3664
4240
  // https://tc39.es/ecma262/#sec-isregexp
3665
4241
  var isRegexp = function (it) {
3666
4242
  var isRegExp;
3667
- return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
4243
+ return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) === 'RegExp');
3668
4244
  };
3669
4245
 
3670
4246
  var isRegExp = isRegexp;
3671
4247
 
3672
- var $TypeError = TypeError;
4248
+ var $TypeError$1 = TypeError;
3673
4249
 
3674
4250
  var notARegexp = function (it) {
3675
4251
  if (isRegExp(it)) {
3676
- throw new $TypeError("The method doesn't accept regular expressions");
4252
+ throw new $TypeError$1("The method doesn't accept regular expressions");
3677
4253
  } return it;
3678
4254
  };
3679
4255
 
@@ -3697,7 +4273,7 @@ var $$1 = _export;
3697
4273
  var uncurryThis = functionUncurryThis;
3698
4274
  var notARegExp = notARegexp;
3699
4275
  var requireObjectCoercible = requireObjectCoercible$7;
3700
- var toString$1 = toString$9;
4276
+ var toString = toString$9;
3701
4277
  var correctIsRegExpLogic = correctIsRegexpLogic;
3702
4278
 
3703
4279
  var stringIndexOf = uncurryThis(''.indexOf);
@@ -3707,55 +4283,13 @@ var stringIndexOf = uncurryThis(''.indexOf);
3707
4283
  $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
3708
4284
  includes: function includes(searchString /* , position = 0 */) {
3709
4285
  return !!~stringIndexOf(
3710
- toString$1(requireObjectCoercible(this)),
3711
- toString$1(notARegExp(searchString)),
4286
+ toString(requireObjectCoercible(this)),
4287
+ toString(notARegExp(searchString)),
3712
4288
  arguments.length > 1 ? arguments[1] : undefined
3713
4289
  );
3714
4290
  }
3715
4291
  });
3716
4292
 
3717
- /******************************************************************************
3718
- Copyright (c) Microsoft Corporation.
3719
-
3720
- Permission to use, copy, modify, and/or distribute this software for any
3721
- purpose with or without fee is hereby granted.
3722
-
3723
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3724
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3725
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3726
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3727
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3728
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3729
- PERFORMANCE OF THIS SOFTWARE.
3730
- ***************************************************************************** */
3731
-
3732
- function __rest(s, e) {
3733
- var t = {};
3734
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3735
- t[p] = s[p];
3736
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
3737
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3738
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3739
- t[p[i]] = s[p[i]];
3740
- }
3741
- return t;
3742
- }
3743
-
3744
- function __awaiter(thisArg, _arguments, P, generator) {
3745
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3746
- return new (P || (P = Promise))(function (resolve, reject) {
3747
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3748
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3749
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3750
- step((generator = generator.apply(thisArg, _arguments || [])).next());
3751
- });
3752
- }
3753
-
3754
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
3755
- var e = new Error(message);
3756
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
3757
- };
3758
-
3759
4293
  class ContextProviderClass {
3760
4294
  addDataByUrl(key, url, processDataFunction, token) {
3761
4295
  return __awaiter(this, void 0, void 0, function* () {
@@ -3826,525 +4360,59 @@ class ContextProviderClass {
3826
4360
  });
3827
4361
  };
3828
4362
  this.getContextProvider = () => {
3829
- var _a;
3830
- return jsx(JsonFormContext.Provider, {
3831
- value: this.baseEnumerator,
3832
- children: (_a = this.selfProps) === null || _a === void 0 ? void 0 : _a.children
3833
- });
3834
- };
3835
- this.getAxiosInterceptorConfig = axios => {
3836
- const requestId = axios.interceptors.request.use(req => {
3837
- if (req.data === undefined) {
3838
- throw new Error(`The URL: ${req.url} encountered a CORS error.`);
3839
- }
3840
- return req;
3841
- });
3842
- return [requestId, axios];
3843
- };
3844
- this.addDataByOptions = (key, url, location, type, values = ['']) => {
3845
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3846
- const dataFunction = data => {
3847
- let dataLink = data;
3848
- let returnData = [''];
3849
- const locationArray = location && Array.isArray(location) ? location : [location];
3850
- const locationArrayTyped = locationArray;
3851
- locationArrayTyped === null || locationArrayTyped === void 0 ? void 0 : locationArrayTyped.forEach(attribute => {
3852
- dataLink = dataLink[attribute];
3853
- });
3854
- const valuesArray = Array.isArray(values) ? values : [values];
3855
- if (type === 'keys') {
3856
- returnData = Object.keys(dataLink);
3857
- } else {
3858
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3859
- returnData = dataLink.map(entry => {
3860
- let parse = '';
3861
- valuesArray.forEach((v, index) => {
3862
- parse += `${entry[v]}`;
3863
- if (index < valuesArray.length - 1) {
3864
- parse += ' ';
3865
- }
3866
- });
3867
- return parse;
3868
- });
3869
- }
3870
- return returnData;
3871
- };
3872
- this.addDataByUrl(key, url, dataFunction);
3873
- };
3874
- /**
3875
- * Grabs data stored under a given key
3876
- *
3877
- */
3878
- // FIXME give some clue as to what data is being fetched.
3879
- // e.g.is it getFormContextData?
3880
- this.getFormContextData = key => {
3881
- const dataFunction = this.baseEnumerator.data.get(key);
3882
- return dataFunction && dataFunction();
3883
- };
3884
- /**
3885
- * Grabs all data
3886
- *
3887
- */
3888
- this.getAllFormContextData = () => {
3889
- const allData = [];
3890
- this.baseEnumerator.data.forEach((d, key) => {
3891
- allData.push({
3892
- [key]: d()
3893
- });
3894
- });
3895
- return allData;
3896
- };
3897
- this.baseEnumerator = {
3898
- data: this.enumValues,
3899
- functions: this.enumFunctions,
3900
- submitFunction: this.enumSubmitFunctions,
3901
- addFormContextData: this.addFormContextData,
3902
- addDataByOptions: this.addDataByOptions,
3903
- addDataByUrl: this.addDataByUrl,
3904
- getFormContextData: this.getFormContextData,
3905
- getAllFormContextData: this.getAllFormContextData
3906
- };
3907
- this.selfProps = {};
3908
- }
3909
- }
3910
- const ContextProviderC = new ContextProviderClass();
3911
- const ContextProviderFactory = () => new ContextProviderClass().setup;
3912
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3913
- const JsonFormContext = /*#__PURE__*/createContext(null);
3914
-
3915
- const EnumSelect = props => {
3916
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
3917
- const {
3918
- data,
3919
- id,
3920
- enabled,
3921
- errors,
3922
- schema,
3923
- path,
3924
- handleChange,
3925
- options,
3926
- config,
3927
- label,
3928
- uischema
3929
- } = props;
3930
- const enumerators = useContext(JsonFormContext);
3931
- let enumData = (schema === null || schema === void 0 ? void 0 : schema.enum) || [];
3932
- const appliedUiSchemaOptions = merge({}, config, props.uischema.options, options);
3933
- const dataKey = (_b = (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.enumContext) === null || _b === void 0 ? void 0 : _b.key;
3934
- const url = (_d = (_c = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _c === void 0 ? void 0 : _c.enumContext) === null || _d === void 0 ? void 0 : _d.url;
3935
- const location = (_f = (_e = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _e === void 0 ? void 0 : _e.enumContext) === null || _f === void 0 ? void 0 : _f.location;
3936
- const type = (_h = (_g = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _g === void 0 ? void 0 : _g.enumContext) === null || _h === void 0 ? void 0 : _h.type;
3937
- const values = (_k = (_j = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _j === void 0 ? void 0 : _j.enumContext) === null || _k === void 0 ? void 0 : _k.values;
3938
- const errorsFormInput = checkFieldValidity(props);
3939
- useEffect(() => {
3940
- if (dataKey && url) {
3941
- enumerators.addDataByOptions(dataKey, url, location, type, values);
3942
- }
3943
- }, [url, location, type, values, dataKey, enumerators]);
3944
- if (dataKey && enumerators.getFormContextData(dataKey)) {
3945
- const newData = enumerators.getFormContextData(dataKey);
3946
- enumData = newData;
3947
- }
3948
- return jsx(GoADropdown, Object.assign({
3949
- error: errorsFormInput.length > 0,
3950
- name: `${label}`,
3951
- value: data,
3952
- disabled: !enabled,
3953
- relative: true,
3954
- testId: `${id || label}-jsonform`
3955
- }, appliedUiSchemaOptions, {
3956
- onChange: (name, value) => {
3957
- handleChange(path, value);
3958
- }
3959
- }, (_l = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _l === void 0 ? void 0 : _l.componentProps, {
3960
- children: enumData === null || enumData === void 0 ? void 0 : enumData.map(item => {
3961
- return jsx(GoADropdownItem, {
3962
- value: `${item}`,
3963
- label: `${item}`
3964
- }, `json-form-dropdown-${item}`);
3965
- })
3966
- }), `${id}-jsonform-key`);
3967
- };
3968
- const numControl = props => {
3969
- return jsx(GoAInputBaseControl, Object.assign({}, props, {
3970
- input: EnumSelect
3971
- }));
3972
- };
3973
- const GoAEnumControlTester = rankWith(2, isEnumControl);
3974
- // HOC order can be reversed with https://github.com/eclipsesource/jsonforms/issues/1987
3975
- const GoAEnumControl = withJsonFormsEnumProps(withTranslateProps(numControl), true);
3976
-
3977
- const EnumSelectAutoComplete = props => {
3978
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
3979
- const {
3980
- data,
3981
- schema,
3982
- path,
3983
- handleChange,
3984
- uischema,
3985
- label
3986
- } = props;
3987
- let enumData = (schema === null || schema === void 0 ? void 0 : schema.enum) || [];
3988
- const enumerators = useContext(JsonFormContext);
3989
- const dataKey = (_b = (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.enumContext) === null || _b === void 0 ? void 0 : _b.key;
3990
- const url = (_d = (_c = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _c === void 0 ? void 0 : _c.enumContext) === null || _d === void 0 ? void 0 : _d.url;
3991
- const location = (_f = (_e = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _e === void 0 ? void 0 : _e.enumContext) === null || _f === void 0 ? void 0 : _f.location;
3992
- const type = (_h = (_g = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _g === void 0 ? void 0 : _g.enumContext) === null || _h === void 0 ? void 0 : _h.type;
3993
- const values = (_k = (_j = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _j === void 0 ? void 0 : _j.enumContext) === null || _k === void 0 ? void 0 : _k.values;
3994
- useEffect(() => {
3995
- if (dataKey && url) {
3996
- enumerators.addDataByOptions(dataKey, url, location, type, values);
3997
- }
3998
- }, [url, location, type, values, dataKey, enumerators]);
3999
- if (dataKey && enumerators.getFormContextData(dataKey)) {
4000
- const newData = enumerators.getFormContextData(dataKey);
4001
- enumData = newData;
4002
- }
4003
- const readOnly = (_o = (_m = (_l = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _l === void 0 ? void 0 : _l.componentProps) === null || _m === void 0 ? void 0 : _m.readOnly) !== null && _o !== void 0 ? _o : false;
4004
- return jsx("div", {
4005
- children: readOnly ? jsx("div", {
4006
- children: jsx(GoADropdown, {
4007
- disabled: true,
4008
- placeholder: data,
4009
- onChange: () => {}
4010
- })
4011
- }) : jsx(GoADropdown, {
4012
- value: data,
4013
- onChange: (name, value) => {
4014
- handleChange(path, value);
4015
- },
4016
- testId: `autocomplete-dropdown-${label}`,
4017
- id: `autocomplete-dropdown-${label}`,
4018
- width: "100%",
4019
- filterable: true,
4020
- relative: true,
4021
- ariaLabel: label,
4022
- children: enumData === null || enumData === void 0 ? void 0 : enumData.map(item => {
4023
- return jsx(GoADropdownItem, {
4024
- value: item,
4025
- label: item
4026
- }, `autocomplete-${item}`);
4027
- })
4028
- })
4029
- });
4030
- };
4031
- const numControlAutoComplete = props => {
4032
- return jsx(GoAInputBaseControl, Object.assign({}, props, {
4033
- input: EnumSelectAutoComplete
4034
- }));
4035
- };
4036
- const GoAEnumControlAutoCompleteTester = rankWith(3, and(isEnumControl, optionIs('autocomplete', true)));
4037
- const GoAEnumAutoCompleteControl = withJsonFormsEnumProps(withTranslateProps(numControlAutoComplete), true);
4038
-
4039
- const RadioGroup = props => {
4040
- var _a;
4041
- const {
4042
- data,
4043
- className,
4044
- id,
4045
- enabled,
4046
- schema,
4047
- uischema,
4048
- path,
4049
- handleChange,
4050
- options,
4051
- config,
4052
- label,
4053
- t
4054
- } = props;
4055
- const enumData = (schema === null || schema === void 0 ? void 0 : schema.enum) || [];
4056
- const appliedUiSchemaOptions = merge({}, config, props.uischema.options, options);
4057
- const errorsFormInput = checkFieldValidity(props);
4058
- return jsx(GoARadioGroup, Object.assign({
4059
- error: errorsFormInput.length > 0,
4060
- name: `${options || appliedUiSchemaOptions.label}`,
4061
- testId: `${label || id}-jsonforms-radio`,
4062
- value: data,
4063
- disabled: !enabled
4064
- }, appliedUiSchemaOptions, {
4065
- onChange: (name, value) => handleChange(path, value)
4066
- }, (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps, {
4067
- children: enumData.map(enumValue => {
4068
- return jsx(GoARadioItem, Object.assign({
4069
- name: enumValue,
4070
- value: `${enumValue}`
4071
- }, appliedUiSchemaOptions, {
4072
- label: enumValue
4073
- }));
4074
- })
4075
- }));
4076
- };
4077
- const EnumRadioControl = props => {
4078
- return jsx(GoAInputBaseControl, Object.assign({}, props, {
4079
- input: RadioGroup
4080
- }));
4081
- };
4082
- const GoAEnumRadioGroupControl = withJsonFormsEnumProps(withTranslateProps(EnumRadioControl), true);
4083
- const GoARadioGroupControlTester = rankWith(20, and(isEnumControl, optionIs('format', 'radio')));
4084
-
4085
- const BooleanComponent = ({
4086
- data,
4087
- enabled,
4088
- uischema,
4089
- handleChange,
4090
- path,
4091
- label,
4092
- required,
4093
- errors
4094
- }) => {
4095
- var _a;
4096
- const errorsFormInput = checkFieldValidity({
4097
- data,
4098
- uischema,
4099
- label,
4100
- required,
4101
- errors
4102
- });
4103
- const text = label + (required ? ' (required)' : '');
4104
- return jsx(GoACheckbox, Object.assign({
4105
- error: errorsFormInput.length > 0,
4106
- testId: `${path}-checkbox-test-id`,
4107
- disabled: !enabled,
4108
- text: text,
4109
- name: `${path}`,
4110
- checked: data,
4111
- onChange: (_, checked) => {
4112
- handleChange(path, checked);
4113
- }
4114
- }, (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps));
4115
- };
4116
- const BooleanControl = props => jsx(GoAInputBaseControl, Object.assign({}, props, {
4117
- noLabel: true,
4118
- input: BooleanComponent
4119
- }));
4120
- const GoABooleanControlTester = rankWith(2, isBooleanControl);
4121
- const GoABooleanControl = withJsonFormsControlProps(BooleanControl);
4122
-
4123
- const BooleanRadioComponent = ({
4124
- data,
4125
- visible,
4126
- enabled,
4127
- uischema,
4128
- handleChange,
4129
- path,
4130
- config,
4131
- label,
4132
- required,
4133
- errors,
4134
- description
4135
- }) => {
4136
- var _a;
4137
- const appliedUiSchemaOptions = Object.assign(Object.assign({}, config), uischema === null || uischema === void 0 ? void 0 : uischema.options);
4138
- const TrueValue = (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.textForTrue) || 'Yes';
4139
- const FalseValue = (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.textForFalse) || 'No';
4140
- const EnableDescription = (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.enableDescription) === true;
4141
- const TrueDescription = description || (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.descriptionForTrue);
4142
- const FalseDescription = description || (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.descriptionForFalse);
4143
- const BaseTestId = (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.testId) || `${path}-boolean-radio-jsonform`;
4144
- const errorsFormInput = checkFieldValidity({
4145
- data,
4146
- uischema,
4147
- label,
4148
- required,
4149
- errors
4150
- });
4151
- return jsx(Visible, {
4152
- visible: visible,
4153
- children: jsxs(GoARadioGroup, Object.assign({
4154
- error: errorsFormInput.length > 0,
4155
- name: `${label}`,
4156
- value: data === true ? TrueValue : data === false ? FalseValue : null,
4157
- disabled: !enabled,
4158
- testId: BaseTestId,
4159
- onChange: (_name, value) => {
4160
- if (value === TrueValue) {
4161
- handleChange(path, true);
4162
- }
4163
- if (value === FalseValue) {
4164
- handleChange(path, false);
4165
- }
4166
- }
4167
- }, (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps, {
4168
- children: [jsx(GoARadioItem, {
4169
- value: TrueValue,
4170
- testId: `${BaseTestId}-yes-option`,
4171
- description: EnableDescription ? TrueDescription : null
4172
- }), jsx(GoARadioItem, {
4173
- value: FalseValue,
4174
- testId: `${BaseTestId}-no-option`,
4175
- description: EnableDescription ? FalseDescription : null
4176
- })]
4177
- }))
4178
- });
4179
- };
4180
- const BooleanRadioControl = props => jsx(GoAInputBaseControl, Object.assign({}, props, {
4181
- input: BooleanRadioComponent
4182
- }));
4183
- const GoABooleanRadioControlTester = rankWith(3, and(isBooleanControl, optionIs('radio', true)));
4184
- const GoABooleanRadioControl = withJsonFormsControlProps(BooleanRadioControl);
4185
-
4186
- const renderLayoutElements = (elements, schema, path, enabled, renderers, cells) => {
4187
- return elements.map((child, index) => jsx("div", {
4188
- children: jsx(JsonFormsDispatch, {
4189
- uischema: child,
4190
- schema: schema,
4191
- path: path,
4192
- enabled: enabled,
4193
- renderers: renderers,
4194
- cells: cells
4195
- }, path)
4196
- }, index));
4197
- };
4198
- const withAjvProps = Component => function WithAjvProps(props) {
4199
- const ctx = useJsonForms();
4200
- const ajv = getAjv({
4201
- jsonforms: Object.assign({}, ctx)
4202
- });
4203
- return jsx(Component, Object.assign({}, props, {
4204
- ajv: ajv
4205
- }));
4206
- };
4207
- const LayoutRenderer = ({
4208
- elements,
4209
- schema,
4210
- path,
4211
- enabled,
4212
- direction,
4213
- renderers,
4214
- cells,
4215
- visible
4216
- }) => {
4217
- if (isEmpty$1(elements)) {
4218
- return null;
4219
- } else {
4220
- if (direction === 'row') {
4221
- return jsx(Visible, {
4222
- visible: visible,
4223
- children: jsx(GoAGrid, {
4224
- minChildWidth: "10ch",
4225
- children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
4226
- })
4363
+ var _a;
4364
+ return jsx(JsonFormContext.Provider, {
4365
+ value: this.baseEnumerator,
4366
+ children: (_a = this.selfProps) === null || _a === void 0 ? void 0 : _a.children
4227
4367
  });
4228
- } else {
4229
- return jsx(Visible, {
4230
- visible: visible,
4231
- children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
4368
+ };
4369
+ this.getAxiosInterceptorConfig = axios => {
4370
+ const requestId = axios.interceptors.request.use(req => {
4371
+ if (req.data === undefined) {
4372
+ throw new Error(`The URL: ${req.url} encountered a CORS error.`);
4373
+ }
4374
+ return req;
4232
4375
  });
4233
- }
4234
- }
4235
- };
4236
-
4237
- let _$5 = t => t,
4238
- _t$5,
4239
- _t2$3;
4240
- const Grid = styled.div(_t$5 || (_t$5 = _$5`
4241
- display: flex;
4242
- flex-direction: row;
4243
- flex-wrap: wrap;
4244
- justify-content: space-between;
4245
- align-items: stretch;
4246
- `));
4247
- const GridItem = styled.div(_t2$3 || (_t2$3 = _$5`
4248
- margin-bottom: ${0};
4249
-
4250
- > .goa-card {
4251
- height: 100% !important;
4252
- width: 100% !important;
4253
- }
4254
-
4255
- > img {
4256
- width: 100%;
4257
- }
4258
-
4259
- flex: 0 1
4260
- ${0};
4261
-
4262
- @media (min-width: 768px) {
4263
- flex-basis: ${0};
4264
- }
4265
- @media (min-width: 1024px) {
4266
- flex-basis: ${0};
4267
- }
4268
- @media (min-width: 1280px) {
4269
- flex-basis: ${0};
4376
+ return [requestId, axios];
4377
+ };
4378
+ /**
4379
+ * Grabs data stored under a given key
4380
+ *
4381
+ */
4382
+ // FIXME give some clue as to what data is being fetched.
4383
+ // e.g.is it getFormContextData?
4384
+ this.getFormContextData = key => {
4385
+ const dataFunction = this.baseEnumerator.data.get(key);
4386
+ return dataFunction && dataFunction();
4387
+ };
4388
+ /**
4389
+ * Grabs all data
4390
+ *
4391
+ */
4392
+ this.getAllFormContextData = () => {
4393
+ const allData = [];
4394
+ this.baseEnumerator.data.forEach((d, key) => {
4395
+ allData.push({
4396
+ [key]: d()
4397
+ });
4398
+ });
4399
+ return allData;
4400
+ };
4401
+ this.baseEnumerator = {
4402
+ data: this.enumValues,
4403
+ functions: this.enumFunctions,
4404
+ submitFunction: this.enumSubmitFunctions,
4405
+ addFormContextData: this.addFormContextData,
4406
+ getFormContextData: this.getFormContextData,
4407
+ getAllFormContextData: this.getAllFormContextData
4408
+ };
4409
+ this.selfProps = {};
4270
4410
  }
4271
- `), props => {
4272
- var _a;
4273
- return `${(_a = props.vSpacing) !== null && _a !== void 0 ? _a : 0}rem`;
4274
- }, props => {
4275
- var _a, _b;
4276
- return props.sm === 12 || props.sm === undefined ? '100%' : `calc(${100 * ((_a = props === null || props === void 0 ? void 0 : props.sm) !== null && _a !== void 0 ? _a : 12) / 12}% - ${(_b = props.hSpacing) !== null && _b !== void 0 ? _b : 0}rem)`;
4277
- }, props => {
4278
- var _a, _b, _c;
4279
- return props.md === 12 ? '100%' : `calc(${100 * ((_b = (_a = props === null || props === void 0 ? void 0 : props.md) !== null && _a !== void 0 ? _a : props.sm) !== null && _b !== void 0 ? _b : 12) / 12}% - ${(_c = props.hSpacing) !== null && _c !== void 0 ? _c : 0}rem)`;
4280
- }, props => {
4281
- var _a, _b, _c, _d;
4282
- return props.lg === 12 ? '100%' : `calc(${100 * ((_c = (_b = (_a = props === null || props === void 0 ? void 0 : props.lg) !== null && _a !== void 0 ? _a : props === null || props === void 0 ? void 0 : props.md) !== null && _b !== void 0 ? _b : props.sm) !== null && _c !== void 0 ? _c : 12) / 12}% - ${(_d = props.hSpacing) !== null && _d !== void 0 ? _d : 0}rem)`;
4283
- }, props => {
4284
- var _a, _b, _c, _d;
4285
- return props.xl === 12 ? '100%' : `calc(${100 * ((_c = (_b = (_a = props === null || props === void 0 ? void 0 : props.xl) !== null && _a !== void 0 ? _a : props === null || props === void 0 ? void 0 : props.md) !== null && _b !== void 0 ? _b : props.sm) !== null && _c !== void 0 ? _c : 12) / 12}% - ${(_d = props.hSpacing) !== null && _d !== void 0 ? _d : 0}rem)`;
4286
- });
4287
-
4288
- let _$4 = t => t,
4289
- _t$4,
4290
- _t2$2,
4291
- _t3$2,
4292
- _t4$1,
4293
- _t5,
4294
- _t6,
4295
- _t7,
4296
- _t8,
4297
- _t9,
4298
- _t10;
4299
- const ReviewItem = styled.div(_t$4 || (_t$4 = _$4`
4300
- display: flex;
4301
- flex-direction: column;
4302
- border: var(--goa-border-width-s) solid grey;
4303
- border-radius: var(--goa-border-radius-m);
4304
- margin: var(--goa-space-2xs);
4305
- padding: var(--goa-space-xs);
4306
- `));
4307
- const ReviewItemSection = styled.div(_t2$2 || (_t2$2 = _$4`
4308
- background-color: #f1f1f1;
4309
- margin-bottom: 1rem;
4310
- padding: 1rem;
4311
- border: 1px solid #dcdcdc;
4312
- border-radius: 5px;
4313
- `));
4314
- const ReviewItemHeader = styled.div(_t3$2 || (_t3$2 = _$4`
4315
- display: flex;
4316
- align-items: center;
4317
- justify-content: space-between;
4318
- margin-bottom: 2rem;
4319
- `));
4320
- const ReviewItemTitle = styled.div(_t4$1 || (_t4$1 = _$4`
4321
- font-size: var(--fs-xl);
4322
- line-height: var(--lh-lg);
4323
- font-weight: var(--fw-light);
4324
- `));
4325
- const Anchor = styled.div(_t5 || (_t5 = _$4`
4326
- color: #0070c4;
4327
- text-decoration: underline;
4328
- outline: none;
4329
- cursor: pointer;
4330
- `));
4331
- styled.div(_t6 || (_t6 = _$4`
4332
- margin-left: var(--goa-space-m);
4333
- `));
4334
- styled.div(_t7 || (_t7 = _$4`
4335
- margin-bottom: var(--goa-space-m);
4336
- `));
4337
- const ListWithDetail = styled.div(_t8 || (_t8 = _$4`
4338
- margin: var(--goa-space-s);
4339
- width: 100%;
4340
- `));
4341
- const ListWithDetailHeading = styled.h3(_t9 || (_t9 = _$4`
4342
- text-transform: capitalize;
4343
- `));
4344
- const RightAlignmentDiv = styled.div(_t10 || (_t10 = _$4`
4345
- display: flex;
4346
- justify-content: flex-end;
4347
- `));
4411
+ }
4412
+ const ContextProviderC = new ContextProviderClass();
4413
+ const ContextProviderFactory = () => new ContextProviderClass().setup;
4414
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4415
+ const JsonFormContext = /*#__PURE__*/createContext(null);
4348
4416
 
4349
4417
  const getAllRequiredFields = schema => {
4350
4418
  const requiredFields = [];
@@ -4369,107 +4437,237 @@ const getAllRequiredFields = schema => {
4369
4437
  return requiredFields;
4370
4438
  };
4371
4439
 
4372
- var call$1 = functionCall;
4373
- var hasOwn = hasOwnProperty_1;
4374
- var isPrototypeOf = objectIsPrototypeOf;
4375
- var regExpFlags = regexpFlags$1;
4440
+ var aCallable = aCallable$3;
4441
+ var toObject = toObject$7;
4442
+ var IndexedObject = indexedObject;
4443
+ var lengthOfArrayLike = lengthOfArrayLike$4;
4376
4444
 
4377
- var RegExpPrototype$1 = RegExp.prototype;
4445
+ var $TypeError = TypeError;
4446
+
4447
+ var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
4448
+
4449
+ // `Array.prototype.{ reduce, reduceRight }` methods implementation
4450
+ var createMethod = function (IS_RIGHT) {
4451
+ return function (that, callbackfn, argumentsLength, memo) {
4452
+ var O = toObject(that);
4453
+ var self = IndexedObject(O);
4454
+ var length = lengthOfArrayLike(O);
4455
+ aCallable(callbackfn);
4456
+ if (length === 0 && argumentsLength < 2) throw new $TypeError(REDUCE_EMPTY);
4457
+ var index = IS_RIGHT ? length - 1 : 0;
4458
+ var i = IS_RIGHT ? -1 : 1;
4459
+ if (argumentsLength < 2) while (true) {
4460
+ if (index in self) {
4461
+ memo = self[index];
4462
+ index += i;
4463
+ break;
4464
+ }
4465
+ index += i;
4466
+ if (IS_RIGHT ? index < 0 : length <= index) {
4467
+ throw new $TypeError(REDUCE_EMPTY);
4468
+ }
4469
+ }
4470
+ for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
4471
+ memo = callbackfn(memo, self[index], index, O);
4472
+ }
4473
+ return memo;
4474
+ };
4475
+ };
4378
4476
 
4379
- var regexpGetFlags = function (R) {
4380
- var flags = R.flags;
4381
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
4382
- ? call$1(regExpFlags, R) : flags;
4477
+ var arrayReduce = {
4478
+ // `Array.prototype.reduce` method
4479
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
4480
+ left: createMethod(false),
4481
+ // `Array.prototype.reduceRight` method
4482
+ // https://tc39.es/ecma262/#sec-array.prototype.reduceright
4483
+ right: createMethod(true)
4383
4484
  };
4384
4485
 
4385
- var PROPER_FUNCTION_NAME = functionName.PROPER;
4386
- var defineBuiltIn = defineBuiltIn$5;
4387
- var anObject$1 = anObject$9;
4388
- var $toString = toString$9;
4389
4486
  var fails = fails$m;
4390
- var getRegExpFlags = regexpGetFlags;
4391
-
4392
- var TO_STRING = 'toString';
4393
- var RegExpPrototype = RegExp.prototype;
4394
- var nativeToString = RegExpPrototype[TO_STRING];
4395
-
4396
- var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
4397
- // FF44- RegExp#toString has a wrong name
4398
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
4399
-
4400
- // `RegExp.prototype.toString` method
4401
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
4402
- if (NOT_GENERIC || INCORRECT_NAME) {
4403
- defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {
4404
- var R = anObject$1(this);
4405
- var pattern = $toString(R.source);
4406
- var flags = $toString(getRegExpFlags(R));
4407
- return '/' + pattern + '/' + flags;
4408
- }, { unsafe: true });
4409
- }
4410
4487
 
4411
- // TODO: Remove from `core-js@4` since it's moved to entry points
4412
-
4413
- var $ = _export;
4414
- var call = functionCall;
4415
- var isCallable = isCallable$l;
4416
- var anObject = anObject$9;
4417
- var toString = toString$9;
4488
+ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
4489
+ var method = [][METHOD_NAME];
4490
+ return !!method && fails(function () {
4491
+ // eslint-disable-next-line no-useless-call -- required for testing
4492
+ method.call(null, argument || function () { return 1; }, 1);
4493
+ });
4494
+ };
4418
4495
 
4419
- var DELEGATES_TO_EXEC = function () {
4420
- var execCalled = false;
4421
- var re = /[ac]/;
4422
- re.exec = function () {
4423
- execCalled = true;
4424
- return /./.exec.apply(this, arguments);
4425
- };
4426
- return re.test('abc') === true && execCalled;
4427
- }();
4496
+ var global$1 = global$h;
4497
+ var classof = classofRaw$1;
4428
4498
 
4429
- var nativeTest = /./.test;
4499
+ var engineIsNode = classof(global$1.process) === 'process';
4430
4500
 
4431
- // `RegExp.prototype.test` method
4432
- // https://tc39.es/ecma262/#sec-regexp.prototype.test
4433
- $({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
4434
- test: function (S) {
4435
- var R = anObject(this);
4436
- var string = toString(S);
4437
- var exec = R.exec;
4438
- if (!isCallable(exec)) return call(nativeTest, R, string);
4439
- var result = call(exec, R, string);
4440
- if (result === null) return false;
4441
- anObject(result);
4442
- return true;
4501
+ var $ = _export;
4502
+ var $reduce = arrayReduce.left;
4503
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
4504
+ var CHROME_VERSION = engineV8Version;
4505
+ var IS_NODE = engineIsNode;
4506
+
4507
+ // Chrome 80-82 has a critical bug
4508
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
4509
+ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
4510
+ var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
4511
+
4512
+ // `Array.prototype.reduce` method
4513
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
4514
+ $({ target: 'Array', proto: true, forced: FORCED }, {
4515
+ reduce: function reduce(callbackfn /* , initialValue */) {
4516
+ var length = arguments.length;
4517
+ return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
4443
4518
  }
4444
4519
  });
4445
4520
 
4521
+ const labelToString = (label, scope) => {
4522
+ if (!label) {
4523
+ return resolveLabelFromScope(scope);
4524
+ }
4525
+ if (typeof label === 'object' && label !== null && 'show' in label && label.show) {
4526
+ return label.text ? label.text : resolveLabelFromScope(scope);
4527
+ }
4528
+ if (typeof label === 'string') {
4529
+ return label;
4530
+ }
4531
+ return '';
4532
+ };
4446
4533
  const resolveLabelFromScope = scope => {
4447
4534
  // eslint-disable-next-line no-useless-escape
4448
4535
  const validPatternRegex = /^#(\/properties\/[^\/]+)+$/;
4449
4536
  const isValid = validPatternRegex.test(scope);
4450
- if (!isValid) return null;
4451
- const lastSegment = scope.split('/').pop();
4452
- if (lastSegment) {
4453
- const lowercased = lastSegment.replace(/([A-Z])/g, ' $1').toLowerCase();
4537
+ if (!isValid) return '';
4538
+ const fieldName = scope.split('/').pop();
4539
+ if (fieldName) {
4540
+ const lowercased = fieldName.replace(/([A-Z])/g, ' $1').toLowerCase();
4454
4541
  return lowercased.charAt(0).toUpperCase() + lowercased.slice(1);
4455
4542
  }
4456
4543
  return '';
4457
4544
  };
4458
- const getFormFieldValue = (scope, data) => {
4459
- if (data !== undefined) {
4460
- const pathArray = scope.replace('#/properties/', '').replace('properties/', '').split('/');
4461
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
4462
- let currentValue = data;
4463
- for (const key of pathArray) {
4464
- if (currentValue[key] === undefined) {
4465
- return '';
4466
- }
4467
- currentValue = currentValue[key];
4545
+ /*
4546
+ * Convert object to an array like [[ke1, value1], [key2, value2]]
4547
+ * Note: this handles nested objects.
4548
+ */
4549
+ const objToArray = obj => {
4550
+ return Object.entries(obj).map(([key, value]) => {
4551
+ if (typeof value === 'object' && !Array.isArray(value)) {
4552
+ return [key, objToArray(value)];
4468
4553
  }
4469
- return Array.isArray(currentValue) ? currentValue[currentValue.length - 1] : typeof currentValue === 'object' ? '' : currentValue;
4470
- } else {
4471
- return '';
4554
+ return [key, value];
4555
+ });
4556
+ };
4557
+ // test for ['name', 'fred']
4558
+ const isNameValuePair = value => {
4559
+ return Array.isArray(value) && value.length === 2 && typeof value[0] === 'string' && typeof value[1] === 'string';
4560
+ };
4561
+ // test for: ['name', [['first', 'fred'], ['middle', 'jolly'], ['last', 'mcguire']]];
4562
+ const isNestedValue = value => {
4563
+ return Array.isArray(value) && value.length === 2 && typeof value[0] === 'string' && Array.isArray(value[1]);
4564
+ };
4565
+ /*
4566
+ * Convert ['name', [['first', 'fred'], ['middle', 'jolly'], ['last', 'mcguire']]]
4567
+ * into [['first', 'fred'], ['middle', 'jolly'], ['last', 'mcguire']]
4568
+ */
4569
+ const flatten = arr => {
4570
+ return arr.reduce((acc, val) => {
4571
+ if (typeof val === 'string') {
4572
+ return acc;
4573
+ }
4574
+ if (isNestedValue(val)) {
4575
+ const flatter = flatten(val[1]);
4576
+ return acc.concat(flatter);
4577
+ }
4578
+ // If the current value is a string, add it to the accumulator
4579
+ if (isNameValuePair(val)) {
4580
+ return acc.concat([val]);
4581
+ }
4582
+ return acc;
4583
+ }, []);
4584
+ };
4585
+ /*
4586
+ * Flatten(objToArray(currentValue))
4587
+ * Might have to be revisited. It currently looses information that may be
4588
+ * deemed to be important later on - i.e. if an object contains nested objects,
4589
+ * such as { person: { name: 'fred', 'address':'calgary' }, isRich: false }
4590
+ * then the 'person' identifier is lost, resulting in
4591
+ * [['name', 'fred'], ['address', 'calgary'], ['isRich', 'false']]
4592
+ *
4593
+ * However, we need to decide how to handle these sorts of nested data in the summary
4594
+ * page before messing with it.
4595
+ */
4596
+ const getFormFieldValue = (scope, data) => {
4597
+ const pathArray = scope.replace('#/properties/', '').replace('properties/', '').split('/');
4598
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4599
+ let currentValue = data;
4600
+ for (const key of pathArray) {
4601
+ if (!currentValue) break;
4602
+ currentValue = currentValue[key];
4472
4603
  }
4604
+ return typeof currentValue === 'object' ? {
4605
+ type: 'object',
4606
+ value: flatten(objToArray(currentValue))
4607
+ } : {
4608
+ type: 'primitive',
4609
+ value: currentValue
4610
+ };
4611
+ };
4612
+
4613
+ const renderValue = (label, key,
4614
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4615
+ value, fileUploaderElement, downloadFile) => {
4616
+ const actualValue = fileUploaderElement ? renderFileLink(fileUploaderElement, downloadFile) : value ? value : '';
4617
+ return jsxs(GridItem, {
4618
+ md: 6,
4619
+ vSpacing: 1,
4620
+ hSpacing: 0.5,
4621
+ children: [jsx("strong", {
4622
+ children: label
4623
+ }), actualValue]
4624
+ }, key);
4625
+ };
4626
+ const renderFileLink = (fileUploaderElement, downloadFile) => {
4627
+ return jsx("a", {
4628
+ onClick: () => downloadFile(fileUploaderElement, fileUploaderElement === null || fileUploaderElement === void 0 ? void 0 : fileUploaderElement.propertyId),
4629
+ children: fileUploaderElement === null || fileUploaderElement === void 0 ? void 0 : fileUploaderElement.filename
4630
+ });
4631
+ };
4632
+ const renderReviewControl = (data, element, requiredFields, index,
4633
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4634
+ fileList, downloadFile) => {
4635
+ const fieldName = element.scope.split('/').pop() || '';
4636
+ const label = labelToString(element.label, element.scope);
4637
+ if (!fieldName || !label) return null;
4638
+ const isFileUploader = element.scope.includes('fileUploader');
4639
+ const fileUploaderElement = isFileUploader ? fileList && fileList[fieldName] : null;
4640
+ const fieldValues = getFormFieldValue(element.scope, data ? data : {});
4641
+ const isRequired = requiredFields.includes(fieldName);
4642
+ const asterisk = isRequired ? ' *' : '';
4643
+ const values = fieldValues.value;
4644
+ return jsxs(React.Fragment, {
4645
+ children: [fieldValues.type === 'primitive' && renderValue(`${label}${asterisk}:`, `${index}`, fieldValues.value, fileUploaderElement, downloadFile), fieldValues.type === 'object' && values && values.length > 0 && values.map((v, i) => {
4646
+ return renderValue(`${v[0]}: `, `${index}:${i}`, v[1]);
4647
+ })]
4648
+ }, index);
4649
+ };
4650
+
4651
+ const renderReviewListWithDetail = (element,
4652
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4653
+ data, field, index, requiredFields) => {
4654
+ const listData = data[field];
4655
+ return jsxs(ListWithDetail, {
4656
+ children: [jsxs(ListWithDetailHeading, {
4657
+ children: [field, listData.length > 1 && 's']
4658
+ }), jsx(Grid, {
4659
+ children: listData.map((childData, childIndex) => {
4660
+ var _a, _b;
4661
+ return jsx(React.Fragment, {
4662
+ children: jsx(RenderFormReviewFields, {
4663
+ elements: ((_b = (_a = element === null || element === void 0 ? void 0 : element.options) === null || _a === void 0 ? void 0 : _a.detail) === null || _b === void 0 ? void 0 : _b.elements) || [],
4664
+ data: childData,
4665
+ requiredFields: requiredFields
4666
+ })
4667
+ }, `${index}-${childIndex}`);
4668
+ })
4669
+ })]
4670
+ }, `${index}-${field}`);
4473
4671
  };
4474
4672
 
4475
4673
  const RenderFormReviewFields = ({
@@ -4492,26 +4690,9 @@ const RenderFormReviewFields = ({
4492
4690
  return elements.map((element, index) => {
4493
4691
  var _a;
4494
4692
  const clonedElement = JSON.parse(JSON.stringify(element));
4495
- const lastSegment = (_a = clonedElement.scope) === null || _a === void 0 ? void 0 : _a.split('/').pop();
4693
+ const fieldName = (_a = clonedElement.scope) === null || _a === void 0 ? void 0 : _a.split('/').pop();
4496
4694
  if (clonedElement.type === 'Control' && clonedElement.scope) {
4497
- const label = clonedElement.label ? clonedElement.label : resolveLabelFromScope(clonedElement.scope);
4498
- if (!label) return null;
4499
- const isFileUploader = clonedElement.scope.includes('fileUploader');
4500
- const fileUploaderElement = isFileUploader ? fileList && fileList[lastSegment] : null;
4501
- const value = getFormFieldValue(clonedElement.scope, data ? data : {}).toString();
4502
- const isRequired = requiredFields.includes(lastSegment);
4503
- const asterisk = isRequired ? ' *' : '';
4504
- return jsxs(GridItem, {
4505
- md: 6,
4506
- vSpacing: 1,
4507
- hSpacing: 0.5,
4508
- children: [jsxs("strong", {
4509
- children: [label, " ", asterisk + ': ']
4510
- }), fileUploaderElement ? jsx("a", {
4511
- onClick: () => downloadFile(fileUploaderElement, fileUploaderElement === null || fileUploaderElement === void 0 ? void 0 : fileUploaderElement.propertyId),
4512
- children: fileUploaderElement === null || fileUploaderElement === void 0 ? void 0 : fileUploaderElement.filename
4513
- }) : value]
4514
- }, index);
4695
+ return renderReviewControl(data, clonedElement, requiredFields, index, fileList, downloadFile);
4515
4696
  } else if (clonedElement.type !== 'ListWithDetail' && (clonedElement === null || clonedElement === void 0 ? void 0 : clonedElement.elements)) {
4516
4697
  return jsx(React.Fragment, {
4517
4698
  children: jsx(RenderFormReviewFields, {
@@ -4520,24 +4701,8 @@ const RenderFormReviewFields = ({
4520
4701
  requiredFields: requiredFields
4521
4702
  })
4522
4703
  }, index);
4523
- } else if (clonedElement.type === 'ListWithDetail' && data && data[lastSegment] && data[lastSegment].length > 0) {
4524
- const listData = data[lastSegment];
4525
- return jsxs(ListWithDetail, {
4526
- children: [jsxs(ListWithDetailHeading, {
4527
- children: [lastSegment, listData.length > 1 && 's']
4528
- }), jsx(Grid, {
4529
- children: listData.map((childData, childIndex) => {
4530
- var _a, _b;
4531
- return jsx(React.Fragment, {
4532
- children: jsx(RenderFormReviewFields, {
4533
- elements: ((_b = (_a = clonedElement === null || clonedElement === void 0 ? void 0 : clonedElement.options) === null || _a === void 0 ? void 0 : _a.detail) === null || _b === void 0 ? void 0 : _b.elements) || [],
4534
- data: childData,
4535
- requiredFields: requiredFields
4536
- })
4537
- }, `${index}-${childIndex}`);
4538
- })
4539
- })]
4540
- }, `${index}-${lastSegment}`);
4704
+ } else if (clonedElement.type === 'ListWithDetail' && data && data[fieldName] && data[fieldName].length > 0) {
4705
+ return renderReviewListWithDetail(clonedElement, data, fieldName, index, requiredFields);
4541
4706
  }
4542
4707
  return null;
4543
4708
  });
@@ -5910,9 +6075,6 @@ const GoABaseRenderers = [
5910
6075
  {
5911
6076
  tester: GoAEnumControlTester,
5912
6077
  renderer: GoAEnumControl
5913
- }, {
5914
- tester: GoAEnumControlAutoCompleteTester,
5915
- renderer: GoAEnumAutoCompleteControl
5916
6078
  }, {
5917
6079
  tester: GoAIntegerControlTester,
5918
6080
  renderer: GoAInputIntegerControl
@@ -5981,4 +6143,4 @@ const GoARenderers = [...GoABaseRenderers, {
5981
6143
  }];
5982
6144
  const GoACells = [...InputCells];
5983
6145
 
5984
- export { ContextProviderC, ContextProviderClass, ContextProviderFactory, GoABaseRenderers, GoACells, GoARenderers, JsonFormContext, ajv };
6146
+ export { ADD_REGISTER_DATA_ACTION, ContextProviderC, ContextProviderClass, ContextProviderFactory, GoABaseRenderers, GoACells, GoARenderers, JsonFormContext, JsonFormRegisterProvider, JsonFormsRegisterContext, ajv, registerReducer };