@abgov/jsonforms-components 1.24.12 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import React, { createContext, useContext, useReducer, useMemo, useEffect, useState, useCallback } from 'react';
3
- import { GoAFormItem, GoAInput, GoATextArea, GoACallout, GoAInputDate, GoAInputDateTime, GoAInputTime, GoADropdown, GoADropdownItem, GoARadioGroup, GoARadioItem, GoACheckbox, GoAGrid, GoADivider, GoAFormStepper, GoAFormStep, GoAPages, GoAButton, GoAModal, GoAButtonGroup, GoAIconButton, GoAFileUploadInput, GoACircularProgress, GoAContainer, GoADetails } from '@abgov/react-components';
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
5
  import axios from 'axios';
6
6
  import get$1 from 'lodash/get';
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 as isControl$1, isCategorization, isLayout as isLayout$1 } from '@jsonforms/core';
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';
8
8
  import { withJsonFormsControlProps, withJsonFormsRendererProps, withJsonFormsEnumProps, withTranslateProps, useJsonForms, JsonFormsDispatch, withJsonFormsLayoutProps, withJsonFormsArrayLayoutProps, withJsonFormsCellProps } from '@jsonforms/react';
9
9
  import merge from 'lodash/merge';
10
10
  import isEmpty$1 from 'lodash/isEmpty';
@@ -14,7 +14,7 @@ import addFormats from 'ajv-formats';
14
14
 
15
15
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
16
16
 
17
- var fails$o = function (exec) {
17
+ var fails$n = function (exec) {
18
18
  try {
19
19
  return !!exec();
20
20
  } catch (error) {
@@ -22,9 +22,9 @@ var fails$o = function (exec) {
22
22
  }
23
23
  };
24
24
 
25
- var fails$n = fails$o;
25
+ var fails$m = fails$n;
26
26
 
27
- var functionBindNative = !fails$n(function () {
27
+ var functionBindNative = !fails$m(function () {
28
28
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
29
29
  var test = (function () { /* empty */ }).bind();
30
30
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -53,19 +53,19 @@ var classofRaw$1 = function (it) {
53
53
  };
54
54
 
55
55
  var uncurryThis$l = functionUncurryThis;
56
- var fails$m = fails$o;
57
- var classof$8 = classofRaw$1;
56
+ var fails$l = fails$n;
57
+ var classof$7 = classofRaw$1;
58
58
 
59
59
  var $Object$4 = Object;
60
60
  var split = uncurryThis$l(''.split);
61
61
 
62
62
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
63
- var indexedObject = fails$m(function () {
63
+ var indexedObject = fails$l(function () {
64
64
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
65
65
  // eslint-disable-next-line no-prototype-builtins -- safe
66
66
  return !$Object$4('z').propertyIsEnumerable(0);
67
67
  }) ? function (it) {
68
- return classof$8(it) === 'String' ? split(it, '') : $Object$4(it);
68
+ return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
69
69
  } : $Object$4;
70
70
 
71
71
  // we can't use just `it == null` since of `document.all` special case
@@ -76,21 +76,21 @@ var isNullOrUndefined$3 = function (it) {
76
76
 
77
77
  var isNullOrUndefined$2 = isNullOrUndefined$3;
78
78
 
79
- var $TypeError$c = TypeError;
79
+ var $TypeError$b = TypeError;
80
80
 
81
81
  // `RequireObjectCoercible` abstract operation
82
82
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
83
83
  var requireObjectCoercible$7 = function (it) {
84
- if (isNullOrUndefined$2(it)) throw new $TypeError$c("Can't call method on " + it);
84
+ if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
85
85
  return it;
86
86
  };
87
87
 
88
88
  // toObject with fallback for non-array-like ES3 strings
89
- var IndexedObject$2 = indexedObject;
89
+ var IndexedObject$1 = indexedObject;
90
90
  var requireObjectCoercible$6 = requireObjectCoercible$7;
91
91
 
92
92
  var toIndexedObject$5 = function (it) {
93
- return IndexedObject$2(requireObjectCoercible$6(it));
93
+ return IndexedObject$1(requireObjectCoercible$6(it));
94
94
  };
95
95
 
96
96
  var check = function (it) {
@@ -98,7 +98,7 @@ var check = function (it) {
98
98
  };
99
99
 
100
100
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
101
- var global$i =
101
+ var global$h =
102
102
  // eslint-disable-next-line es/no-global-this -- safe
103
103
  check(typeof globalThis == 'object' && globalThis) ||
104
104
  check(typeof window == 'object' && window) ||
@@ -111,20 +111,20 @@ var global$i =
111
111
 
112
112
  var sharedStore = {exports: {}};
113
113
 
114
- var global$h = global$i;
114
+ var global$g = global$h;
115
115
 
116
116
  // eslint-disable-next-line es/no-object-defineproperty -- safe
117
117
  var defineProperty$7 = Object.defineProperty;
118
118
 
119
119
  var defineGlobalProperty$3 = function (key, value) {
120
120
  try {
121
- defineProperty$7(global$h, key, { value: value, configurable: true, writable: true });
121
+ defineProperty$7(global$g, key, { value: value, configurable: true, writable: true });
122
122
  } catch (error) {
123
- global$h[key] = value;
123
+ global$g[key] = value;
124
124
  } return value;
125
125
  };
126
126
 
127
- var globalThis$1 = global$i;
127
+ var globalThis$1 = global$h;
128
128
  var defineGlobalProperty$2 = defineGlobalProperty$3;
129
129
 
130
130
  var SHARED = '__core-js_shared__';
@@ -150,12 +150,12 @@ var $Object$3 = Object;
150
150
 
151
151
  // `ToObject` abstract operation
152
152
  // https://tc39.es/ecma262/#sec-toobject
153
- var toObject$7 = function (argument) {
153
+ var toObject$6 = function (argument) {
154
154
  return $Object$3(requireObjectCoercible$5(argument));
155
155
  };
156
156
 
157
157
  var uncurryThis$k = functionUncurryThis;
158
- var toObject$6 = toObject$7;
158
+ var toObject$5 = toObject$6;
159
159
 
160
160
  var hasOwnProperty = uncurryThis$k({}.hasOwnProperty);
161
161
 
@@ -163,7 +163,7 @@ var hasOwnProperty = uncurryThis$k({}.hasOwnProperty);
163
163
  // https://tc39.es/ecma262/#sec-hasownproperty
164
164
  // eslint-disable-next-line es/no-object-hasown -- safe
165
165
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
166
- return hasOwnProperty(toObject$6(it), key);
166
+ return hasOwnProperty(toObject$5(it), key);
167
167
  };
168
168
 
169
169
  var uncurryThis$j = functionUncurryThis;
@@ -178,11 +178,11 @@ var uid$2 = function (key) {
178
178
 
179
179
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
180
180
 
181
- var global$g = global$i;
181
+ var global$f = global$h;
182
182
  var userAgent = engineUserAgent;
183
183
 
184
- var process = global$g.process;
185
- var Deno = global$g.Deno;
184
+ var process = global$f.process;
185
+ var Deno = global$f.Deno;
186
186
  var versions = process && process.versions || Deno && Deno.version;
187
187
  var v8 = versions && versions.v8;
188
188
  var match, version;
@@ -208,13 +208,13 @@ var engineV8Version = version;
208
208
 
209
209
  /* eslint-disable es/no-symbol -- required for testing */
210
210
  var V8_VERSION = engineV8Version;
211
- var fails$l = fails$o;
212
- var global$f = global$i;
211
+ var fails$k = fails$n;
212
+ var global$e = global$h;
213
213
 
214
- var $String$6 = global$f.String;
214
+ var $String$6 = global$e.String;
215
215
 
216
216
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
217
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$l(function () {
217
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$k(function () {
218
218
  var symbol = Symbol('symbol detection');
219
219
  // Chrome 38 Symbol has incorrect toString conversion
220
220
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -232,14 +232,14 @@ var useSymbolAsUid = NATIVE_SYMBOL$3
232
232
  && !Symbol.sham
233
233
  && typeof Symbol.iterator == 'symbol';
234
234
 
235
- var global$e = global$i;
235
+ var global$d = global$h;
236
236
  var shared$3 = shared$4;
237
237
  var hasOwn$c = hasOwnProperty_1;
238
238
  var uid$1 = uid$2;
239
239
  var NATIVE_SYMBOL$2 = symbolConstructorDetection;
240
240
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
241
241
 
242
- var Symbol$1 = global$e.Symbol;
242
+ var Symbol$1 = global$d.Symbol;
243
243
  var WellKnownSymbolsStore = shared$3('wks');
244
244
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
245
245
 
@@ -272,30 +272,30 @@ var isObject$b = function (it) {
272
272
  var isObject$a = isObject$b;
273
273
 
274
274
  var $String$5 = String;
275
- var $TypeError$b = TypeError;
275
+ var $TypeError$a = TypeError;
276
276
 
277
277
  // `Assert: Type(argument) is Object`
278
278
  var anObject$9 = function (argument) {
279
279
  if (isObject$a(argument)) return argument;
280
- throw new $TypeError$b($String$5(argument) + ' is not an object');
280
+ throw new $TypeError$a($String$5(argument) + ' is not an object');
281
281
  };
282
282
 
283
283
  var objectDefineProperties = {};
284
284
 
285
- var fails$k = fails$o;
285
+ var fails$j = fails$n;
286
286
 
287
287
  // Detect IE8's incomplete defineProperty implementation
288
- var descriptors = !fails$k(function () {
288
+ var descriptors = !fails$j(function () {
289
289
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
290
290
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
291
291
  });
292
292
 
293
293
  var DESCRIPTORS$f = descriptors;
294
- var fails$j = fails$o;
294
+ var fails$i = fails$n;
295
295
 
296
296
  // V8 ~ Chrome 36-
297
297
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
298
- var v8PrototypeDefineBug = DESCRIPTORS$f && fails$j(function () {
298
+ var v8PrototypeDefineBug = DESCRIPTORS$f && fails$i(function () {
299
299
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
300
300
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
301
301
  value: 42,
@@ -305,10 +305,10 @@ var v8PrototypeDefineBug = DESCRIPTORS$f && fails$j(function () {
305
305
 
306
306
  var objectDefineProperty = {};
307
307
 
308
- var global$d = global$i;
308
+ var global$c = global$h;
309
309
  var isObject$9 = isObject$b;
310
310
 
311
- var document$1 = global$d.document;
311
+ var document$1 = global$c.document;
312
312
  // typeof document.createElement is 'object' in old IE
313
313
  var EXISTS$1 = isObject$9(document$1) && isObject$9(document$1.createElement);
314
314
 
@@ -317,11 +317,11 @@ var documentCreateElement$2 = function (it) {
317
317
  };
318
318
 
319
319
  var DESCRIPTORS$e = descriptors;
320
- var fails$i = fails$o;
320
+ var fails$h = fails$n;
321
321
  var createElement = documentCreateElement$2;
322
322
 
323
323
  // Thanks to IE8 for its funny defineProperty
324
- var ie8DomDefine = !DESCRIPTORS$e && !fails$i(function () {
324
+ var ie8DomDefine = !DESCRIPTORS$e && !fails$h(function () {
325
325
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
326
326
  return Object.defineProperty(createElement('div'), 'a', {
327
327
  get: function () { return 7; }
@@ -336,7 +336,7 @@ var functionCall = NATIVE_BIND$1 ? call$d.bind(call$d) : function () {
336
336
  return call$d.apply(call$d, arguments);
337
337
  };
338
338
 
339
- var global$c = global$i;
339
+ var global$b = global$h;
340
340
  var isCallable$j = isCallable$l;
341
341
 
342
342
  var aFunction = function (argument) {
@@ -344,7 +344,7 @@ var aFunction = function (argument) {
344
344
  };
345
345
 
346
346
  var getBuiltIn$6 = function (namespace, method) {
347
- return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
347
+ return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
348
348
  };
349
349
 
350
350
  var uncurryThis$i = functionUncurryThis;
@@ -378,29 +378,29 @@ var tryToString$1 = function (argument) {
378
378
  var isCallable$h = isCallable$l;
379
379
  var tryToString = tryToString$1;
380
380
 
381
- var $TypeError$a = TypeError;
381
+ var $TypeError$9 = TypeError;
382
382
 
383
383
  // `Assert: IsCallable(argument) is true`
384
- var aCallable$3 = function (argument) {
384
+ var aCallable$2 = function (argument) {
385
385
  if (isCallable$h(argument)) return argument;
386
- throw new $TypeError$a(tryToString(argument) + ' is not a function');
386
+ throw new $TypeError$9(tryToString(argument) + ' is not a function');
387
387
  };
388
388
 
389
- var aCallable$2 = aCallable$3;
389
+ var aCallable$1 = aCallable$2;
390
390
  var isNullOrUndefined$1 = isNullOrUndefined$3;
391
391
 
392
392
  // `GetMethod` abstract operation
393
393
  // https://tc39.es/ecma262/#sec-getmethod
394
394
  var getMethod$2 = function (V, P) {
395
395
  var func = V[P];
396
- return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
396
+ return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
397
397
  };
398
398
 
399
399
  var call$c = functionCall;
400
400
  var isCallable$g = isCallable$l;
401
401
  var isObject$8 = isObject$b;
402
402
 
403
- var $TypeError$9 = TypeError;
403
+ var $TypeError$8 = TypeError;
404
404
 
405
405
  // `OrdinaryToPrimitive` abstract operation
406
406
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
@@ -409,7 +409,7 @@ var ordinaryToPrimitive$1 = function (input, pref) {
409
409
  if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
410
410
  if (isCallable$g(fn = input.valueOf) && !isObject$8(val = call$c(fn, input))) return val;
411
411
  if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
412
- throw new $TypeError$9("Can't convert object to primitive value");
412
+ throw new $TypeError$8("Can't convert object to primitive value");
413
413
  };
414
414
 
415
415
  var call$b = functionCall;
@@ -419,7 +419,7 @@ var getMethod$1 = getMethod$2;
419
419
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
420
420
  var wellKnownSymbol$d = wellKnownSymbol$e;
421
421
 
422
- var $TypeError$8 = TypeError;
422
+ var $TypeError$7 = TypeError;
423
423
  var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
424
424
 
425
425
  // `ToPrimitive` abstract operation
@@ -432,7 +432,7 @@ var toPrimitive$1 = function (input, pref) {
432
432
  if (pref === undefined) pref = 'default';
433
433
  result = call$b(exoticToPrim, input, pref);
434
434
  if (!isObject$7(result) || isSymbol$2(result)) return result;
435
- throw new $TypeError$8("Can't convert object to primitive value");
435
+ throw new $TypeError$7("Can't convert object to primitive value");
436
436
  }
437
437
  if (pref === undefined) pref = 'number';
438
438
  return ordinaryToPrimitive(input, pref);
@@ -454,7 +454,7 @@ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
454
454
  var anObject$8 = anObject$9;
455
455
  var toPropertyKey$1 = toPropertyKey$2;
456
456
 
457
- var $TypeError$7 = TypeError;
457
+ var $TypeError$6 = TypeError;
458
458
  // eslint-disable-next-line es/no-object-defineproperty -- safe
459
459
  var $defineProperty = Object.defineProperty;
460
460
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -487,7 +487,7 @@ objectDefineProperty.f = DESCRIPTORS$d ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
487
487
  if (IE8_DOM_DEFINE$1) try {
488
488
  return $defineProperty(O, P, Attributes);
489
489
  } catch (error) { /* empty */ }
490
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$7('Accessors not supported');
490
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
491
491
  if ('value' in Attributes) O[P] = Attributes.value;
492
492
  return O;
493
493
  };
@@ -541,19 +541,19 @@ var toLength$1 = toLength$2;
541
541
 
542
542
  // `LengthOfArrayLike` abstract operation
543
543
  // https://tc39.es/ecma262/#sec-lengthofarraylike
544
- var lengthOfArrayLike$4 = function (obj) {
544
+ var lengthOfArrayLike$3 = function (obj) {
545
545
  return toLength$1(obj.length);
546
546
  };
547
547
 
548
548
  var toIndexedObject$4 = toIndexedObject$5;
549
549
  var toAbsoluteIndex = toAbsoluteIndex$1;
550
- var lengthOfArrayLike$3 = lengthOfArrayLike$4;
550
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
551
551
 
552
552
  // `Array.prototype.{ indexOf, includes }` methods implementation
553
- var createMethod$2 = function (IS_INCLUDES) {
553
+ var createMethod$1 = function (IS_INCLUDES) {
554
554
  return function ($this, el, fromIndex) {
555
555
  var O = toIndexedObject$4($this);
556
- var length = lengthOfArrayLike$3(O);
556
+ var length = lengthOfArrayLike$2(O);
557
557
  if (length === 0) return !IS_INCLUDES && -1;
558
558
  var index = toAbsoluteIndex(fromIndex, length);
559
559
  var value;
@@ -573,10 +573,10 @@ var createMethod$2 = function (IS_INCLUDES) {
573
573
  var arrayIncludes = {
574
574
  // `Array.prototype.includes` method
575
575
  // https://tc39.es/ecma262/#sec-array.prototype.includes
576
- includes: createMethod$2(true),
576
+ includes: createMethod$1(true),
577
577
  // `Array.prototype.indexOf` method
578
578
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
579
- indexOf: createMethod$2(false)
579
+ indexOf: createMethod$1(false)
580
580
  };
581
581
 
582
582
  var hiddenKeys$4 = {};
@@ -764,10 +764,10 @@ var addToUnscopables$3 = function (key) {
764
764
 
765
765
  var iterators = {};
766
766
 
767
- var global$b = global$i;
767
+ var global$a = global$h;
768
768
  var isCallable$f = isCallable$l;
769
769
 
770
- var WeakMap$1 = global$b.WeakMap;
770
+ var WeakMap$1 = global$a.WeakMap;
771
771
 
772
772
  var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
773
773
 
@@ -792,7 +792,7 @@ var createNonEnumerableProperty$9 = DESCRIPTORS$b ? function (object, key, value
792
792
  };
793
793
 
794
794
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
795
- var global$a = global$i;
795
+ var global$9 = global$h;
796
796
  var isObject$6 = isObject$b;
797
797
  var createNonEnumerableProperty$8 = createNonEnumerableProperty$9;
798
798
  var hasOwn$a = hasOwnProperty_1;
@@ -801,8 +801,8 @@ var sharedKey$1 = sharedKey$3;
801
801
  var hiddenKeys$1 = hiddenKeys$4;
802
802
 
803
803
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
804
- var TypeError$1 = global$a.TypeError;
805
- var WeakMap = global$a.WeakMap;
804
+ var TypeError$1 = global$9.TypeError;
805
+ var WeakMap = global$9.WeakMap;
806
806
  var set, get, has;
807
807
 
808
808
  var enforce = function (it) {
@@ -939,7 +939,7 @@ if (!isCallable$e(store.inspectSource)) {
939
939
  var inspectSource$1 = store.inspectSource;
940
940
 
941
941
  var uncurryThis$f = functionUncurryThis;
942
- var fails$h = fails$o;
942
+ var fails$g = fails$n;
943
943
  var isCallable$d = isCallable$l;
944
944
  var hasOwn$7 = hasOwnProperty_1;
945
945
  var DESCRIPTORS$8 = descriptors;
@@ -956,7 +956,7 @@ var stringSlice$6 = uncurryThis$f(''.slice);
956
956
  var replace$6 = uncurryThis$f(''.replace);
957
957
  var join = uncurryThis$f([].join);
958
958
 
959
- var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$h(function () {
959
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$g(function () {
960
960
  return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
961
961
  });
962
962
 
@@ -1072,7 +1072,7 @@ var copyConstructorProperties$3 = function (target, source, exceptions) {
1072
1072
  }
1073
1073
  };
1074
1074
 
1075
- var fails$g = fails$o;
1075
+ var fails$f = fails$n;
1076
1076
  var isCallable$b = isCallable$l;
1077
1077
 
1078
1078
  var replacement = /#|\.prototype\./;
@@ -1081,7 +1081,7 @@ var isForced$2 = function (feature, detection) {
1081
1081
  var value = data[normalize(feature)];
1082
1082
  return value === POLYFILL ? true
1083
1083
  : value === NATIVE ? false
1084
- : isCallable$b(detection) ? fails$g(detection)
1084
+ : isCallable$b(detection) ? fails$f(detection)
1085
1085
  : !!detection;
1086
1086
  };
1087
1087
 
@@ -1095,7 +1095,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
1095
1095
 
1096
1096
  var isForced_1 = isForced$2;
1097
1097
 
1098
- var global$9 = global$i;
1098
+ var global$8 = global$h;
1099
1099
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1100
1100
  var createNonEnumerableProperty$7 = createNonEnumerableProperty$9;
1101
1101
  var defineBuiltIn$5 = defineBuiltIn$6;
@@ -1124,11 +1124,11 @@ var _export = function (options, source) {
1124
1124
  var STATIC = options.stat;
1125
1125
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1126
1126
  if (GLOBAL) {
1127
- target = global$9;
1127
+ target = global$8;
1128
1128
  } else if (STATIC) {
1129
- target = global$9[TARGET] || defineGlobalProperty(TARGET, {});
1129
+ target = global$8[TARGET] || defineGlobalProperty(TARGET, {});
1130
1130
  } else {
1131
- target = global$9[TARGET] && global$9[TARGET].prototype;
1131
+ target = global$8[TARGET] && global$8[TARGET].prototype;
1132
1132
  }
1133
1133
  if (target) for (key in source) {
1134
1134
  sourceProperty = source[key];
@@ -1150,9 +1150,9 @@ var _export = function (options, source) {
1150
1150
  }
1151
1151
  };
1152
1152
 
1153
- var fails$f = fails$o;
1153
+ var fails$e = fails$n;
1154
1154
 
1155
- var correctPrototypeGetter = !fails$f(function () {
1155
+ var correctPrototypeGetter = !fails$e(function () {
1156
1156
  function F() { /* empty */ }
1157
1157
  F.prototype.constructor = null;
1158
1158
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -1161,7 +1161,7 @@ var correctPrototypeGetter = !fails$f(function () {
1161
1161
 
1162
1162
  var hasOwn$5 = hasOwnProperty_1;
1163
1163
  var isCallable$a = isCallable$l;
1164
- var toObject$5 = toObject$7;
1164
+ var toObject$4 = toObject$6;
1165
1165
  var sharedKey = sharedKey$3;
1166
1166
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1167
1167
 
@@ -1173,7 +1173,7 @@ var ObjectPrototype = $Object$1.prototype;
1173
1173
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1174
1174
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1175
1175
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1176
- var object = toObject$5(O);
1176
+ var object = toObject$4(O);
1177
1177
  if (hasOwn$5(object, IE_PROTO)) return object[IE_PROTO];
1178
1178
  var constructor = object.constructor;
1179
1179
  if (isCallable$a(constructor) && object instanceof constructor) {
@@ -1181,7 +1181,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1181
1181
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1182
1182
  };
1183
1183
 
1184
- var fails$e = fails$o;
1184
+ var fails$d = fails$n;
1185
1185
  var isCallable$9 = isCallable$l;
1186
1186
  var isObject$5 = isObject$b;
1187
1187
  var getPrototypeOf$1 = objectGetPrototypeOf;
@@ -1206,7 +1206,7 @@ if ([].keys) {
1206
1206
  }
1207
1207
  }
1208
1208
 
1209
- var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$e(function () {
1209
+ var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$d(function () {
1210
1210
  var test = {};
1211
1211
  // FF44- legacy iterators case
1212
1212
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1257,12 +1257,12 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1257
1257
  };
1258
1258
 
1259
1259
  var uncurryThis$d = functionUncurryThis;
1260
- var aCallable$1 = aCallable$3;
1260
+ var aCallable = aCallable$2;
1261
1261
 
1262
1262
  var functionUncurryThisAccessor = function (object, key, method) {
1263
1263
  try {
1264
1264
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1265
- return uncurryThis$d(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
1265
+ return uncurryThis$d(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1266
1266
  } catch (error) { /* empty */ }
1267
1267
  };
1268
1268
 
@@ -1275,11 +1275,11 @@ var isPossiblePrototype$1 = function (argument) {
1275
1275
  var isPossiblePrototype = isPossiblePrototype$1;
1276
1276
 
1277
1277
  var $String$2 = String;
1278
- var $TypeError$6 = TypeError;
1278
+ var $TypeError$5 = TypeError;
1279
1279
 
1280
1280
  var aPossiblePrototype$1 = function (argument) {
1281
1281
  if (isPossiblePrototype(argument)) return argument;
1282
- throw new $TypeError$6("Can't set " + $String$2(argument) + ' as a prototype');
1282
+ throw new $TypeError$5("Can't set " + $String$2(argument) + ' as a prototype');
1283
1283
  };
1284
1284
 
1285
1285
  /* eslint-disable no-proto -- safe */
@@ -1311,7 +1311,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1311
1311
  };
1312
1312
  }() : undefined);
1313
1313
 
1314
- var $$c = _export;
1314
+ var $$b = _export;
1315
1315
  var call$9 = functionCall;
1316
1316
  var FunctionName = functionName;
1317
1317
  var isCallable$8 = isCallable$l;
@@ -1399,7 +1399,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1399
1399
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1400
1400
  defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
1401
1401
  }
1402
- } else $$c({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1402
+ } else $$b({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1403
1403
  }
1404
1404
 
1405
1405
  // define iterator
@@ -1522,7 +1522,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1522
1522
 
1523
1523
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1524
1524
 
1525
- var global$8 = global$i;
1525
+ var global$7 = global$h;
1526
1526
  var DOMIterables = domIterables;
1527
1527
  var DOMTokenListPrototype = domTokenListPrototype;
1528
1528
  var ArrayIteratorMethods = es_array_iterator;
@@ -1554,7 +1554,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1554
1554
  };
1555
1555
 
1556
1556
  for (var COLLECTION_NAME in DOMIterables) {
1557
- handlePrototype(global$8[COLLECTION_NAME] && global$8[COLLECTION_NAME].prototype, COLLECTION_NAME);
1557
+ handlePrototype(global$7[COLLECTION_NAME] && global$7[COLLECTION_NAME].prototype, COLLECTION_NAME);
1558
1558
  }
1559
1559
 
1560
1560
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -1562,12 +1562,12 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1562
1562
  var DESCRIPTORS$6 = descriptors;
1563
1563
  var uncurryThis$c = functionUncurryThis;
1564
1564
  var call$8 = functionCall;
1565
- var fails$d = fails$o;
1565
+ var fails$c = fails$n;
1566
1566
  var objectKeys = objectKeys$2;
1567
1567
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1568
1568
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1569
- var toObject$4 = toObject$7;
1570
- var IndexedObject$1 = indexedObject;
1569
+ var toObject$3 = toObject$6;
1570
+ var IndexedObject = indexedObject;
1571
1571
 
1572
1572
  // eslint-disable-next-line es/no-object-assign -- safe
1573
1573
  var $assign = Object.assign;
@@ -1577,7 +1577,7 @@ var concat$1 = uncurryThis$c([].concat);
1577
1577
 
1578
1578
  // `Object.assign` method
1579
1579
  // https://tc39.es/ecma262/#sec-object.assign
1580
- var objectAssign = !$assign || fails$d(function () {
1580
+ var objectAssign = !$assign || fails$c(function () {
1581
1581
  // should have correct order of operations (Edge bug)
1582
1582
  if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
1583
1583
  enumerable: true,
@@ -1598,13 +1598,13 @@ var objectAssign = !$assign || fails$d(function () {
1598
1598
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1599
1599
  return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1600
1600
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1601
- var T = toObject$4(target);
1601
+ var T = toObject$3(target);
1602
1602
  var argumentsLength = arguments.length;
1603
1603
  var index = 1;
1604
1604
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1605
1605
  var propertyIsEnumerable = propertyIsEnumerableModule.f;
1606
1606
  while (argumentsLength > index) {
1607
- var S = IndexedObject$1(arguments[index++]);
1607
+ var S = IndexedObject(arguments[index++]);
1608
1608
  var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1609
1609
  var length = keys.length;
1610
1610
  var j = 0;
@@ -1616,34 +1616,34 @@ var objectAssign = !$assign || fails$d(function () {
1616
1616
  } return T;
1617
1617
  } : $assign;
1618
1618
 
1619
- var $$b = _export;
1619
+ var $$a = _export;
1620
1620
  var assign = objectAssign;
1621
1621
 
1622
1622
  // `Object.assign` method
1623
1623
  // https://tc39.es/ecma262/#sec-object.assign
1624
1624
  // eslint-disable-next-line es/no-object-assign -- required for testing
1625
- $$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1625
+ $$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1626
1626
  assign: assign
1627
1627
  });
1628
1628
 
1629
- let _$8 = t => t,
1630
- _t$8;
1631
- const FormFieldWrapper = styled.div(_t$8 || (_t$8 = _$8`
1629
+ let _$7 = t => t,
1630
+ _t$7;
1631
+ const FormFieldWrapper = styled.div(_t$7 || (_t$7 = _$7`
1632
1632
  margin-bottom: var(--goa-space-l);
1633
1633
  `));
1634
1634
 
1635
- var $$a = _export;
1636
- var toObject$3 = toObject$7;
1637
- var lengthOfArrayLike$2 = lengthOfArrayLike$4;
1635
+ var $$9 = _export;
1636
+ var toObject$2 = toObject$6;
1637
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1638
1638
  var toIntegerOrInfinity$3 = toIntegerOrInfinity$6;
1639
1639
  var addToUnscopables$1 = addToUnscopables$3;
1640
1640
 
1641
1641
  // `Array.prototype.at` method
1642
1642
  // https://tc39.es/ecma262/#sec-array.prototype.at
1643
- $$a({ target: 'Array', proto: true }, {
1643
+ $$9({ target: 'Array', proto: true }, {
1644
1644
  at: function at(index) {
1645
- var O = toObject$3(this);
1646
- var len = lengthOfArrayLike$2(O);
1645
+ var O = toObject$2(this);
1646
+ var len = lengthOfArrayLike$1(O);
1647
1647
  var relativeIndex = toIntegerOrInfinity$3(index);
1648
1648
  var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
1649
1649
  return (k < 0 || k >= len) ? undefined : O[k];
@@ -1680,7 +1680,7 @@ var tryGet = function (it, key) {
1680
1680
  };
1681
1681
 
1682
1682
  // getting tag from ES6+ `Object.prototype.toString`
1683
- var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1683
+ var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1684
1684
  var O, tag, result;
1685
1685
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1686
1686
  // @@toStringTag case
@@ -1691,12 +1691,12 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1691
1691
  : (result = classofRaw(O)) === 'Object' && isCallable$7(O.callee) ? 'Arguments' : result;
1692
1692
  };
1693
1693
 
1694
- var classof$6 = classof$7;
1694
+ var classof$5 = classof$6;
1695
1695
 
1696
1696
  var $String$1 = String;
1697
1697
 
1698
1698
  var toString$a = function (argument) {
1699
- if (classof$6(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1699
+ if (classof$5(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1700
1700
  return $String$1(argument);
1701
1701
  };
1702
1702
 
@@ -1718,13 +1718,13 @@ var regexpFlags$1 = function () {
1718
1718
  return result;
1719
1719
  };
1720
1720
 
1721
- var fails$c = fails$o;
1722
- var global$7 = global$i;
1721
+ var fails$b = fails$n;
1722
+ var global$6 = global$h;
1723
1723
 
1724
1724
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1725
- var $RegExp$2 = global$7.RegExp;
1725
+ var $RegExp$2 = global$6.RegExp;
1726
1726
 
1727
- var UNSUPPORTED_Y$2 = fails$c(function () {
1727
+ var UNSUPPORTED_Y$2 = fails$b(function () {
1728
1728
  var re = $RegExp$2('a', 'y');
1729
1729
  re.lastIndex = 2;
1730
1730
  return re.exec('abcd') !== null;
@@ -1732,11 +1732,11 @@ var UNSUPPORTED_Y$2 = fails$c(function () {
1732
1732
 
1733
1733
  // UC Browser bug
1734
1734
  // https://github.com/zloirock/core-js/issues/1008
1735
- var MISSED_STICKY$1 = UNSUPPORTED_Y$2 || fails$c(function () {
1735
+ var MISSED_STICKY$1 = UNSUPPORTED_Y$2 || fails$b(function () {
1736
1736
  return !$RegExp$2('a', 'y').sticky;
1737
1737
  });
1738
1738
 
1739
- var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$c(function () {
1739
+ var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$b(function () {
1740
1740
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1741
1741
  var re = $RegExp$2('^r', 'gy');
1742
1742
  re.lastIndex = 2;
@@ -1749,24 +1749,24 @@ var regexpStickyHelpers = {
1749
1749
  UNSUPPORTED_Y: UNSUPPORTED_Y$2
1750
1750
  };
1751
1751
 
1752
- var fails$b = fails$o;
1753
- var global$6 = global$i;
1752
+ var fails$a = fails$n;
1753
+ var global$5 = global$h;
1754
1754
 
1755
1755
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1756
- var $RegExp$1 = global$6.RegExp;
1756
+ var $RegExp$1 = global$5.RegExp;
1757
1757
 
1758
- var regexpUnsupportedDotAll = fails$b(function () {
1758
+ var regexpUnsupportedDotAll = fails$a(function () {
1759
1759
  var re = $RegExp$1('.', 's');
1760
1760
  return !(re.dotAll && re.test('\n') && re.flags === 's');
1761
1761
  });
1762
1762
 
1763
- var fails$a = fails$o;
1764
- var global$5 = global$i;
1763
+ var fails$9 = fails$n;
1764
+ var global$4 = global$h;
1765
1765
 
1766
1766
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1767
- var $RegExp = global$5.RegExp;
1767
+ var $RegExp = global$4.RegExp;
1768
1768
 
1769
- var regexpUnsupportedNcg = fails$a(function () {
1769
+ var regexpUnsupportedNcg = fails$9(function () {
1770
1770
  var re = $RegExp('(?<a>b)', 'g');
1771
1771
  return re.exec('b').groups.a !== 'b' ||
1772
1772
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -1889,18 +1889,18 @@ if (PATCH) {
1889
1889
 
1890
1890
  var regexpExec$2 = patchedExec;
1891
1891
 
1892
- var $$9 = _export;
1892
+ var $$8 = _export;
1893
1893
  var exec$2 = regexpExec$2;
1894
1894
 
1895
1895
  // `RegExp.prototype.exec` method
1896
1896
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1897
- $$9({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
1897
+ $$8({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
1898
1898
  exec: exec$2
1899
1899
  });
1900
1900
 
1901
1901
  // TODO: Remove from `core-js@4` since it's moved to entry points
1902
1902
 
1903
- var $$8 = _export;
1903
+ var $$7 = _export;
1904
1904
  var call$6 = functionCall;
1905
1905
  var isCallable$6 = isCallable$l;
1906
1906
  var anObject$3 = anObject$9;
@@ -1920,7 +1920,7 @@ var nativeTest = /./.test;
1920
1920
 
1921
1921
  // `RegExp.prototype.test` method
1922
1922
  // https://tc39.es/ecma262/#sec-regexp.prototype.test
1923
- $$8({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
1923
+ $$7({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
1924
1924
  test: function (S) {
1925
1925
  var R = anObject$3(this);
1926
1926
  var string = toString$8(S);
@@ -1933,23 +1933,23 @@ $$8({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
1933
1933
  }
1934
1934
  });
1935
1935
 
1936
- var $$7 = _export;
1936
+ var $$6 = _export;
1937
1937
  var uncurryThis$a = functionUncurryThis;
1938
1938
  var requireObjectCoercible$3 = requireObjectCoercible$7;
1939
1939
  var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
1940
1940
  var toString$7 = toString$a;
1941
- var fails$9 = fails$o;
1941
+ var fails$8 = fails$n;
1942
1942
 
1943
1943
  var charAt$5 = uncurryThis$a(''.charAt);
1944
1944
 
1945
- var FORCED$3 = fails$9(function () {
1945
+ var FORCED$2 = fails$8(function () {
1946
1946
  // eslint-disable-next-line es/no-array-string-prototype-at -- safe
1947
1947
  return '𠮷'.at(-2) !== '\uD842';
1948
1948
  });
1949
1949
 
1950
1950
  // `String.prototype.at` method
1951
1951
  // https://tc39.es/ecma262/#sec-string.prototype.at
1952
- $$7({ target: 'String', proto: true, forced: FORCED$3 }, {
1952
+ $$6({ target: 'String', proto: true, forced: FORCED$2 }, {
1953
1953
  at: function at(index) {
1954
1954
  var S = toString$7(requireObjectCoercible$3(this));
1955
1955
  var len = S.length;
@@ -1975,7 +1975,7 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND
1975
1975
  var call$4 = functionCall;
1976
1976
  var defineBuiltIn$2 = defineBuiltIn$6;
1977
1977
  var regexpExec$1 = regexpExec$2;
1978
- var fails$8 = fails$o;
1978
+ var fails$7 = fails$n;
1979
1979
  var wellKnownSymbol$5 = wellKnownSymbol$e;
1980
1980
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$9;
1981
1981
 
@@ -1985,14 +1985,14 @@ var RegExpPrototype$4 = RegExp.prototype;
1985
1985
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1986
1986
  var SYMBOL = wellKnownSymbol$5(KEY);
1987
1987
 
1988
- var DELEGATES_TO_SYMBOL = !fails$8(function () {
1988
+ var DELEGATES_TO_SYMBOL = !fails$7(function () {
1989
1989
  // String methods call symbol-named RegExp methods
1990
1990
  var O = {};
1991
1991
  O[SYMBOL] = function () { return 7; };
1992
1992
  return ''[KEY](O) !== 7;
1993
1993
  });
1994
1994
 
1995
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$8(function () {
1995
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$7(function () {
1996
1996
  // Symbol-named RegExp methods call .exec
1997
1997
  var execCalled = false;
1998
1998
  var re = /a/;
@@ -2055,7 +2055,7 @@ var charAt$4 = uncurryThis$9(''.charAt);
2055
2055
  var charCodeAt$1 = uncurryThis$9(''.charCodeAt);
2056
2056
  var stringSlice$4 = uncurryThis$9(''.slice);
2057
2057
 
2058
- var createMethod$1 = function (CONVERT_TO_STRING) {
2058
+ var createMethod = function (CONVERT_TO_STRING) {
2059
2059
  return function ($this, pos) {
2060
2060
  var S = toString$6(requireObjectCoercible$2($this));
2061
2061
  var position = toIntegerOrInfinity$1(pos);
@@ -2077,10 +2077,10 @@ var createMethod$1 = function (CONVERT_TO_STRING) {
2077
2077
  var stringMultibyte = {
2078
2078
  // `String.prototype.codePointAt` method
2079
2079
  // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2080
- codeAt: createMethod$1(false),
2080
+ codeAt: createMethod(false),
2081
2081
  // `String.prototype.at` method
2082
2082
  // https://github.com/mathiasbynens/String.prototype.at
2083
- charAt: createMethod$1(true)
2083
+ charAt: createMethod(true)
2084
2084
  };
2085
2085
 
2086
2086
  var charAt$3 = stringMultibyte.charAt;
@@ -2092,7 +2092,7 @@ var advanceStringIndex$1 = function (S, index, unicode) {
2092
2092
  };
2093
2093
 
2094
2094
  var uncurryThis$8 = functionUncurryThis;
2095
- var toObject$2 = toObject$7;
2095
+ var toObject$1 = toObject$6;
2096
2096
 
2097
2097
  var floor = Math.floor;
2098
2098
  var charAt$2 = uncurryThis$8(''.charAt);
@@ -2109,7 +2109,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2109
2109
  var m = captures.length;
2110
2110
  var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2111
2111
  if (namedCaptures !== undefined) {
2112
- namedCaptures = toObject$2(namedCaptures);
2112
+ namedCaptures = toObject$1(namedCaptures);
2113
2113
  symbols = SUBSTITUTION_SYMBOLS;
2114
2114
  }
2115
2115
  return replace$4(replacement, symbols, function (match, ch) {
@@ -2140,10 +2140,10 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2140
2140
  var call$3 = functionCall;
2141
2141
  var anObject$2 = anObject$9;
2142
2142
  var isCallable$5 = isCallable$l;
2143
- var classof$5 = classofRaw$1;
2143
+ var classof$4 = classofRaw$1;
2144
2144
  var regexpExec = regexpExec$2;
2145
2145
 
2146
- var $TypeError$5 = TypeError;
2146
+ var $TypeError$4 = TypeError;
2147
2147
 
2148
2148
  // `RegExpExec` abstract operation
2149
2149
  // https://tc39.es/ecma262/#sec-regexpexec
@@ -2154,15 +2154,15 @@ var regexpExecAbstract = function (R, S) {
2154
2154
  if (result !== null) anObject$2(result);
2155
2155
  return result;
2156
2156
  }
2157
- if (classof$5(R) === 'RegExp') return call$3(regexpExec, R, S);
2158
- throw new $TypeError$5('RegExp#exec called on incompatible receiver');
2157
+ if (classof$4(R) === 'RegExp') return call$3(regexpExec, R, S);
2158
+ throw new $TypeError$4('RegExp#exec called on incompatible receiver');
2159
2159
  };
2160
2160
 
2161
2161
  var apply$2 = functionApply;
2162
2162
  var call$2 = functionCall;
2163
2163
  var uncurryThis$7 = functionUncurryThis;
2164
2164
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2165
- var fails$7 = fails$o;
2165
+ var fails$6 = fails$n;
2166
2166
  var anObject$1 = anObject$9;
2167
2167
  var isCallable$4 = isCallable$l;
2168
2168
  var isNullOrUndefined = isNullOrUndefined$3;
@@ -2203,7 +2203,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2203
2203
  return false;
2204
2204
  })();
2205
2205
 
2206
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$7(function () {
2206
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$6(function () {
2207
2207
  var re = /./;
2208
2208
  re.exec = function () {
2209
2209
  var result = [];
@@ -2697,34 +2697,34 @@ const onChangeForNumericControl = props => {
2697
2697
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2698
2698
  const onChangeForCheckboxData = (data, name, value) => data ? !value ? data === null || data === void 0 ? void 0 : data.filter(item => item !== name) : [...data, name] : [name];
2699
2699
 
2700
- let _$7 = t => t,
2701
- _t$7,
2702
- _t2$4;
2703
- styled.div(_t$7 || (_t$7 = _$7`
2700
+ let _$6 = t => t,
2701
+ _t$6,
2702
+ _t2$3;
2703
+ styled.div(_t$6 || (_t$6 = _$6`
2704
2704
  height: 70vh;
2705
2705
  overflow-y: auto;
2706
2706
  padding-left: var(--goa-space-2xs);
2707
2707
  padding-right: var(--goa-space-2xs);
2708
2708
  `));
2709
- const Visible = styled.div(_t2$4 || (_t2$4 = _$7`
2709
+ const Visible = styled.div(_t2$3 || (_t2$3 = _$6`
2710
2710
  display: ${0};
2711
2711
  `), p => p.visible ? 'initial' : 'none');
2712
2712
 
2713
2713
  const ADD_REGISTER_DATA_ACTION = 'jsonforms/register/data/add';
2714
2714
 
2715
- var classof$4 = classofRaw$1;
2715
+ var classof$3 = classofRaw$1;
2716
2716
 
2717
2717
  // `IsArray` abstract operation
2718
2718
  // https://tc39.es/ecma262/#sec-isarray
2719
2719
  // eslint-disable-next-line es/no-array-isarray -- safe
2720
2720
  var isArray$2 = Array.isArray || function isArray(argument) {
2721
- return classof$4(argument) === 'Array';
2721
+ return classof$3(argument) === 'Array';
2722
2722
  };
2723
2723
 
2724
2724
  var DESCRIPTORS$5 = descriptors;
2725
2725
  var isArray$1 = isArray$2;
2726
2726
 
2727
- var $TypeError$4 = TypeError;
2727
+ var $TypeError$3 = TypeError;
2728
2728
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2729
2729
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2730
2730
 
@@ -2742,28 +2742,28 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$5 && !function () {
2742
2742
 
2743
2743
  var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
2744
2744
  if (isArray$1(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
2745
- throw new $TypeError$4('Cannot set read only .length');
2745
+ throw new $TypeError$3('Cannot set read only .length');
2746
2746
  } return O.length = length;
2747
2747
  } : function (O, length) {
2748
2748
  return O.length = length;
2749
2749
  };
2750
2750
 
2751
- var $TypeError$3 = TypeError;
2751
+ var $TypeError$2 = TypeError;
2752
2752
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2753
2753
 
2754
2754
  var doesNotExceedSafeInteger$1 = function (it) {
2755
- if (it > MAX_SAFE_INTEGER) throw $TypeError$3('Maximum allowed index exceeded');
2755
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$2('Maximum allowed index exceeded');
2756
2756
  return it;
2757
2757
  };
2758
2758
 
2759
- var $$6 = _export;
2760
- var toObject$1 = toObject$7;
2761
- var lengthOfArrayLike$1 = lengthOfArrayLike$4;
2759
+ var $$5 = _export;
2760
+ var toObject = toObject$6;
2761
+ var lengthOfArrayLike = lengthOfArrayLike$3;
2762
2762
  var setArrayLength = arraySetLength;
2763
2763
  var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2764
- var fails$6 = fails$o;
2764
+ var fails$5 = fails$n;
2765
2765
 
2766
- var INCORRECT_TO_LENGTH = fails$6(function () {
2766
+ var INCORRECT_TO_LENGTH = fails$5(function () {
2767
2767
  return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
2768
2768
  });
2769
2769
 
@@ -2778,15 +2778,15 @@ var properErrorOnNonWritableLength = function () {
2778
2778
  }
2779
2779
  };
2780
2780
 
2781
- var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
2781
+ var FORCED$1 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
2782
2782
 
2783
2783
  // `Array.prototype.push` method
2784
2784
  // https://tc39.es/ecma262/#sec-array.prototype.push
2785
- $$6({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
2785
+ $$5({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
2786
2786
  // eslint-disable-next-line no-unused-vars -- required for `.length`
2787
2787
  push: function push(item) {
2788
- var O = toObject$1(this);
2789
- var len = lengthOfArrayLike$1(O);
2788
+ var O = toObject(this);
2789
+ var len = lengthOfArrayLike(O);
2790
2790
  var argCount = arguments.length;
2791
2791
  doesNotExceedSafeInteger(len + argCount);
2792
2792
  for (var i = 0; i < argCount; i++) {
@@ -2871,7 +2871,7 @@ var inheritIfRequired$2 = function ($this, dummy, Wrapper) {
2871
2871
  };
2872
2872
 
2873
2873
  var isObject$1 = isObject$b;
2874
- var classof$3 = classofRaw$1;
2874
+ var classof$2 = classofRaw$1;
2875
2875
  var wellKnownSymbol$3 = wellKnownSymbol$e;
2876
2876
 
2877
2877
  var MATCH$2 = wellKnownSymbol$3('match');
@@ -2880,7 +2880,7 @@ var MATCH$2 = wellKnownSymbol$3('match');
2880
2880
  // https://tc39.es/ecma262/#sec-isregexp
2881
2881
  var isRegexp = function (it) {
2882
2882
  var isRegExp;
2883
- return isObject$1(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$3(it) === 'RegExp');
2883
+ return isObject$1(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$2(it) === 'RegExp');
2884
2884
  };
2885
2885
 
2886
2886
  var call$1 = functionCall;
@@ -2934,7 +2934,7 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
2934
2934
  };
2935
2935
 
2936
2936
  var DESCRIPTORS$3 = descriptors;
2937
- var global$4 = global$i;
2937
+ var global$3 = global$h;
2938
2938
  var uncurryThis$6 = functionUncurryThis;
2939
2939
  var isForced = isForced_1;
2940
2940
  var inheritIfRequired$1 = inheritIfRequired$2;
@@ -2948,7 +2948,7 @@ var getRegExpFlags$1 = regexpGetFlags;
2948
2948
  var stickyHelpers = regexpStickyHelpers;
2949
2949
  var proxyAccessor$1 = proxyAccessor$2;
2950
2950
  var defineBuiltIn$1 = defineBuiltIn$6;
2951
- var fails$5 = fails$o;
2951
+ var fails$4 = fails$n;
2952
2952
  var hasOwn$2 = hasOwnProperty_1;
2953
2953
  var enforceInternalState = internalState.enforce;
2954
2954
  var setSpecies = setSpecies$1;
@@ -2957,9 +2957,9 @@ var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
2957
2957
  var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2958
2958
 
2959
2959
  var MATCH$1 = wellKnownSymbol$1('match');
2960
- var NativeRegExp = global$4.RegExp;
2960
+ var NativeRegExp = global$3.RegExp;
2961
2961
  var RegExpPrototype$2 = NativeRegExp.prototype;
2962
- var SyntaxError = global$4.SyntaxError;
2962
+ var SyntaxError = global$3.SyntaxError;
2963
2963
  var exec$1 = uncurryThis$6(RegExpPrototype$2.exec);
2964
2964
  var charAt$1 = uncurryThis$6(''.charAt);
2965
2965
  var replace$3 = uncurryThis$6(''.replace);
@@ -2977,7 +2977,7 @@ var MISSED_STICKY = stickyHelpers.MISSED_STICKY;
2977
2977
  var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
2978
2978
 
2979
2979
  var BASE_FORCED = DESCRIPTORS$3 &&
2980
- (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$5(function () {
2980
+ (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$4(function () {
2981
2981
  re2[MATCH$1] = false;
2982
2982
  // RegExp constructor can alter flags and IsRegExp works correct with @@match
2983
2983
  return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
@@ -3119,7 +3119,7 @@ if (isForced('RegExp', BASE_FORCED)) {
3119
3119
 
3120
3120
  RegExpPrototype$2.constructor = RegExpWrapper;
3121
3121
  RegExpWrapper.prototype = RegExpPrototype$2;
3122
- defineBuiltIn$1(global$4, 'RegExp', RegExpWrapper, { constructor: true });
3122
+ defineBuiltIn$1(global$3, 'RegExp', RegExpWrapper, { constructor: true });
3123
3123
  }
3124
3124
 
3125
3125
  // https://tc39.es/ecma262/#sec-get-regexp-@@species
@@ -3127,12 +3127,12 @@ setSpecies('RegExp');
3127
3127
 
3128
3128
  var DESCRIPTORS$2 = descriptors;
3129
3129
  var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
3130
- var classof$2 = classofRaw$1;
3130
+ var classof$1 = classofRaw$1;
3131
3131
  var defineBuiltInAccessor$1 = defineBuiltInAccessor$3;
3132
3132
  var getInternalState = internalState.get;
3133
3133
 
3134
3134
  var RegExpPrototype$1 = RegExp.prototype;
3135
- var $TypeError$2 = TypeError;
3135
+ var $TypeError$1 = TypeError;
3136
3136
 
3137
3137
  // `RegExp.prototype.dotAll` getter
3138
3138
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall
@@ -3143,10 +3143,10 @@ if (DESCRIPTORS$2 && UNSUPPORTED_DOT_ALL) {
3143
3143
  if (this === RegExpPrototype$1) return;
3144
3144
  // We can't use InternalStateModule.getterFor because
3145
3145
  // we don't add metadata for regexps created by a literal.
3146
- if (classof$2(this) === 'RegExp') {
3146
+ if (classof$1(this) === 'RegExp') {
3147
3147
  return !!getInternalState(this).dotAll;
3148
3148
  }
3149
- throw new $TypeError$2('Incompatible receiver, RegExp required');
3149
+ throw new $TypeError$1('Incompatible receiver, RegExp required');
3150
3150
  }
3151
3151
  });
3152
3152
  }
@@ -3155,14 +3155,14 @@ var PROPER_FUNCTION_NAME = functionName.PROPER;
3155
3155
  var defineBuiltIn = defineBuiltIn$6;
3156
3156
  var anObject = anObject$9;
3157
3157
  var $toString = toString$a;
3158
- var fails$4 = fails$o;
3158
+ var fails$3 = fails$n;
3159
3159
  var getRegExpFlags = regexpGetFlags;
3160
3160
 
3161
3161
  var TO_STRING = 'toString';
3162
3162
  var RegExpPrototype = RegExp.prototype;
3163
3163
  var nativeToString = RegExpPrototype[TO_STRING];
3164
3164
 
3165
- var NOT_GENERIC = fails$4(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
3165
+ var NOT_GENERIC = fails$3(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
3166
3166
  // FF44- RegExp#toString has a wrong name
3167
3167
  var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
3168
3168
 
@@ -3299,11 +3299,15 @@ const GoAInputBaseControl = props => {
3299
3299
  input,
3300
3300
  required,
3301
3301
  errors,
3302
- path
3302
+ path,
3303
+ isStepperReview
3303
3304
  } = props;
3304
3305
  const InnerComponent = input;
3305
3306
  const labelToUpdate = getLabelText(uischema.scope, label || '');
3306
- checkFieldValidity(props);
3307
+ let modifiedErrors = checkFieldValidity(props);
3308
+ if (modifiedErrors === 'should be equal to one of the allowed values') {
3309
+ modifiedErrors = '';
3310
+ }
3307
3311
  const getStepStatus = (props, value) => {
3308
3312
  return {
3309
3313
  id: props.id,
@@ -3335,8 +3339,8 @@ const GoAInputBaseControl = props => {
3335
3339
  children: jsx(FormFieldWrapper, {
3336
3340
  children: jsx(GoAFormItem, {
3337
3341
  requirement: required ? 'required' : undefined,
3338
- error: '',
3339
- testId: `${path}`,
3342
+ error: modifiedErrors,
3343
+ testId: `${isStepperReview === true && 'review-base-'}${path}`,
3340
3344
  label: (props === null || props === void 0 ? void 0 : props.noLabel) === true ? '' : labelToUpdate,
3341
3345
  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 : '',
3342
3346
  children: jsx(InnerComponent, Object.assign({}, modifiedProps))
@@ -3346,9 +3350,9 @@ const GoAInputBaseControl = props => {
3346
3350
  });
3347
3351
  };
3348
3352
 
3349
- var $$5 = _export;
3353
+ var $$4 = _export;
3350
3354
  var DESCRIPTORS$1 = descriptors;
3351
- var global$3 = global$i;
3355
+ var global$2 = global$h;
3352
3356
  var uncurryThis$5 = functionUncurryThis;
3353
3357
  var hasOwn$1 = hasOwnProperty_1;
3354
3358
  var isCallable$2 = isCallable$l;
@@ -3357,7 +3361,7 @@ var toString$3 = toString$a;
3357
3361
  var defineBuiltInAccessor = defineBuiltInAccessor$3;
3358
3362
  var copyConstructorProperties$1 = copyConstructorProperties$3;
3359
3363
 
3360
- var NativeSymbol = global$3.Symbol;
3364
+ var NativeSymbol = global$2.Symbol;
3361
3365
  var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
3362
3366
 
3363
3367
  if (DESCRIPTORS$1 && isCallable$2(NativeSymbol) && (!('description' in SymbolPrototype) ||
@@ -3398,7 +3402,7 @@ if (DESCRIPTORS$1 && isCallable$2(NativeSymbol) && (!('description' in SymbolPro
3398
3402
  }
3399
3403
  });
3400
3404
 
3401
- $$5({ global: true, constructor: true, forced: true }, {
3405
+ $$4({ global: true, constructor: true, forced: true }, {
3402
3406
  Symbol: SymbolWrapper
3403
3407
  });
3404
3408
  }
@@ -3654,7 +3658,7 @@ var arraySlice$1 = uncurryThis$4([].slice);
3654
3658
  var uncurryThis$3 = functionUncurryThis;
3655
3659
  var isArray = isArray$2;
3656
3660
  var isCallable$1 = isCallable$l;
3657
- var classof$1 = classofRaw$1;
3661
+ var classof = classofRaw$1;
3658
3662
  var toString$2 = toString$a;
3659
3663
 
3660
3664
  var push = uncurryThis$3([].push);
@@ -3667,7 +3671,7 @@ var getJsonReplacerFunction = function (replacer) {
3667
3671
  for (var i = 0; i < rawLength; i++) {
3668
3672
  var element = replacer[i];
3669
3673
  if (typeof element == 'string') push(keys, element);
3670
- else if (typeof element == 'number' || classof$1(element) === 'Number' || classof$1(element) === 'String') push(keys, toString$2(element));
3674
+ else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString$2(element));
3671
3675
  }
3672
3676
  var keysLength = keys.length;
3673
3677
  var root = true;
@@ -3681,12 +3685,12 @@ var getJsonReplacerFunction = function (replacer) {
3681
3685
  };
3682
3686
  };
3683
3687
 
3684
- var $$4 = _export;
3688
+ var $$3 = _export;
3685
3689
  var getBuiltIn$1 = getBuiltIn$6;
3686
3690
  var apply$1 = functionApply;
3687
3691
  var call = functionCall;
3688
3692
  var uncurryThis$2 = functionUncurryThis;
3689
- var fails$3 = fails$o;
3693
+ var fails$2 = fails$n;
3690
3694
  var isCallable = isCallable$l;
3691
3695
  var isSymbol = isSymbol$3;
3692
3696
  var arraySlice = arraySlice$1;
@@ -3705,7 +3709,7 @@ var tester = /[\uD800-\uDFFF]/g;
3705
3709
  var low = /^[\uD800-\uDBFF]$/;
3706
3710
  var hi = /^[\uDC00-\uDFFF]$/;
3707
3711
 
3708
- var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$3(function () {
3712
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$2(function () {
3709
3713
  var symbol = getBuiltIn$1('Symbol')('stringify detection');
3710
3714
  // MS Edge converts symbol values to JSON as {}
3711
3715
  return $stringify([symbol]) !== '[null]'
@@ -3716,7 +3720,7 @@ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$3(function () {
3716
3720
  });
3717
3721
 
3718
3722
  // https://github.com/tc39/proposal-well-formed-stringify
3719
- var ILL_FORMED_UNICODE = fails$3(function () {
3723
+ var ILL_FORMED_UNICODE = fails$2(function () {
3720
3724
  return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
3721
3725
  || $stringify('\uDEAD') !== '"\\udead"';
3722
3726
  });
@@ -3744,7 +3748,7 @@ var fixIllFormed = function (match, offset, string) {
3744
3748
  if ($stringify) {
3745
3749
  // `JSON.stringify` method
3746
3750
  // https://tc39.es/ecma262/#sec-json.stringify
3747
- $$4({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
3751
+ $$3({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
3748
3752
  // eslint-disable-next-line no-unused-vars -- required for `.length`
3749
3753
  stringify: function stringify(it, replacer, space) {
3750
3754
  var args = arraySlice(arguments);
@@ -4221,20 +4225,20 @@ const BooleanRadioControl = props => jsx(GoAInputBaseControl, Object.assign({},
4221
4225
  const GoABooleanRadioControlTester = rankWith(3, and(isBooleanControl, optionIs('radio', true)));
4222
4226
  const GoABooleanRadioControl = withJsonFormsControlProps(BooleanRadioControl);
4223
4227
 
4224
- var $$3 = _export;
4228
+ var $$2 = _export;
4225
4229
  var $includes = arrayIncludes.includes;
4226
- var fails$2 = fails$o;
4230
+ var fails$1 = fails$n;
4227
4231
  var addToUnscopables = addToUnscopables$3;
4228
4232
 
4229
4233
  // FF99+ bug
4230
- var BROKEN_ON_SPARSE = fails$2(function () {
4234
+ var BROKEN_ON_SPARSE = fails$1(function () {
4231
4235
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
4232
4236
  return !Array(1).includes();
4233
4237
  });
4234
4238
 
4235
4239
  // `Array.prototype.includes` method
4236
4240
  // https://tc39.es/ecma262/#sec-array.prototype.includes
4237
- $$3({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
4241
+ $$2({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
4238
4242
  includes: function includes(el /* , fromIndex = 0 */) {
4239
4243
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
4240
4244
  }
@@ -4245,11 +4249,11 @@ addToUnscopables('includes');
4245
4249
 
4246
4250
  var isRegExp = isRegexp;
4247
4251
 
4248
- var $TypeError$1 = TypeError;
4252
+ var $TypeError = TypeError;
4249
4253
 
4250
4254
  var notARegexp = function (it) {
4251
4255
  if (isRegExp(it)) {
4252
- throw new $TypeError$1("The method doesn't accept regular expressions");
4256
+ throw new $TypeError("The method doesn't accept regular expressions");
4253
4257
  } return it;
4254
4258
  };
4255
4259
 
@@ -4269,7 +4273,7 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
4269
4273
  } return false;
4270
4274
  };
4271
4275
 
4272
- var $$2 = _export;
4276
+ var $$1 = _export;
4273
4277
  var uncurryThis$1 = functionUncurryThis;
4274
4278
  var notARegExp = notARegexp;
4275
4279
  var requireObjectCoercible = requireObjectCoercible$7;
@@ -4280,7 +4284,7 @@ var stringIndexOf = uncurryThis$1(''.indexOf);
4280
4284
 
4281
4285
  // `String.prototype.includes` method
4282
4286
  // https://tc39.es/ecma262/#sec-string.prototype.includes
4283
- $$2({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
4287
+ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
4284
4288
  includes: function includes(searchString /* , position = 0 */) {
4285
4289
  return !!~stringIndexOf(
4286
4290
  toString$1(requireObjectCoercible(this)),
@@ -4290,8 +4294,8 @@ $$2({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
4290
4294
  }
4291
4295
  });
4292
4296
 
4293
- let _$6 = t => t,
4294
- _t$6;
4297
+ let _$5 = t => t,
4298
+ _t$5;
4295
4299
  const Checkboxes = ({
4296
4300
  children,
4297
4301
  orientation,
@@ -4303,7 +4307,7 @@ const Checkboxes = ({
4303
4307
  children: children
4304
4308
  });
4305
4309
  };
4306
- const CheckBoxGroupDiv = styled.div(_t$6 || (_t$6 = _$6`
4310
+ const CheckBoxGroupDiv = styled.div(_t$5 || (_t$5 = _$5`
4307
4311
  .horizontal {
4308
4312
  display: flex;
4309
4313
  flex-direction: row;
@@ -4357,6 +4361,28 @@ const EnumCheckboxControl = props => {
4357
4361
  const GoAEnumCheckboxGroupControl = withJsonFormsEnumProps(withTranslateProps(EnumCheckboxControl), true);
4358
4362
  const GoACheckoutGroupControlTester = rankWith(18, and(isEnumControl, optionIs('format', 'checkbox')));
4359
4363
 
4364
+ const GoABaseInputReviewComponent = props => {
4365
+ // eslint-disable-next-line
4366
+ const {
4367
+ data,
4368
+ id
4369
+ } = props;
4370
+ let reviewText = data;
4371
+ const isBoolean = typeof data === 'boolean';
4372
+ if (isBoolean) {
4373
+ reviewText = data ? 'Yes' : 'No';
4374
+ }
4375
+ return jsx("div", {
4376
+ "data-testid": `review-control-${id}`,
4377
+ children: reviewText
4378
+ });
4379
+ };
4380
+ const GoInputBaseReview = props => jsx(GoAInputBaseControl, Object.assign({}, props, {
4381
+ input: GoABaseInputReviewComponent,
4382
+ isStepperReview: true
4383
+ }));
4384
+ const GoInputBaseReviewControl = withJsonFormsControlProps(GoInputBaseReview);
4385
+
4360
4386
  const renderLayoutElements = (elements, schema, path, enabled, renderers, cells) => {
4361
4387
  return elements.map((child, index) => jsx("div", {
4362
4388
  children: jsx(JsonFormsDispatch, {
@@ -4386,7 +4412,8 @@ const LayoutRenderer = ({
4386
4412
  direction,
4387
4413
  renderers,
4388
4414
  cells,
4389
- visible
4415
+ visible,
4416
+ width
4390
4417
  }) => {
4391
4418
  if (isEmpty$1(elements)) {
4392
4419
  return null;
@@ -4395,7 +4422,7 @@ const LayoutRenderer = ({
4395
4422
  return jsx(Visible, {
4396
4423
  visible: visible,
4397
4424
  children: jsx(GoAGrid, {
4398
- minChildWidth: "10ch",
4425
+ minChildWidth: width || '10ch',
4399
4426
  children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
4400
4427
  })
4401
4428
  });
@@ -4408,57 +4435,6 @@ const LayoutRenderer = ({
4408
4435
  }
4409
4436
  };
4410
4437
 
4411
- let _$5 = t => t,
4412
- _t$5,
4413
- _t2$3;
4414
- const Grid = styled.div(_t$5 || (_t$5 = _$5`
4415
- display: flex;
4416
- flex-direction: row;
4417
- flex-wrap: wrap;
4418
- justify-content: space-between;
4419
- align-items: stretch;
4420
- `));
4421
- const GridItem = styled.div(_t2$3 || (_t2$3 = _$5`
4422
- margin-bottom: ${0};
4423
-
4424
- > .goa-card {
4425
- height: 100% !important;
4426
- width: 100% !important;
4427
- }
4428
-
4429
- > img {
4430
- width: 100%;
4431
- }
4432
-
4433
- flex: 0 1
4434
- ${0};
4435
-
4436
- @media (min-width: 768px) {
4437
- flex-basis: ${0};
4438
- }
4439
- @media (min-width: 1024px) {
4440
- flex-basis: ${0};
4441
- }
4442
- @media (min-width: 1280px) {
4443
- flex-basis: ${0};
4444
- }
4445
- `), props => {
4446
- var _a;
4447
- return `${(_a = props.vSpacing) !== null && _a !== void 0 ? _a : 0}rem`;
4448
- }, props => {
4449
- var _a, _b;
4450
- 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)`;
4451
- }, props => {
4452
- var _a, _b, _c;
4453
- 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)`;
4454
- }, props => {
4455
- var _a, _b, _c, _d;
4456
- 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)`;
4457
- }, props => {
4458
- var _a, _b, _c, _d;
4459
- 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)`;
4460
- });
4461
-
4462
4438
  let _$4 = t => t,
4463
4439
  _t$4,
4464
4440
  _t2$2,
@@ -4508,11 +4484,11 @@ styled.div(_t6 || (_t6 = _$4`
4508
4484
  styled.div(_t7 || (_t7 = _$4`
4509
4485
  margin-bottom: var(--goa-space-m);
4510
4486
  `));
4511
- const ListWithDetail = styled.div(_t8 || (_t8 = _$4`
4487
+ styled.div(_t8 || (_t8 = _$4`
4512
4488
  margin: var(--goa-space-s);
4513
4489
  width: 100%;
4514
4490
  `));
4515
- const ListWithDetailHeading = styled.h3(_t9 || (_t9 = _$4`
4491
+ styled.h3(_t9 || (_t9 = _$4`
4516
4492
  text-transform: capitalize;
4517
4493
  `));
4518
4494
  const RightAlignmentDiv = styled.div(_t10 || (_t10 = _$4`
@@ -4553,10 +4529,10 @@ var errorStackClear = function (stack, dropEntries) {
4553
4529
  } return stack;
4554
4530
  };
4555
4531
 
4556
- var fails$1 = fails$o;
4532
+ var fails = fails$n;
4557
4533
  var createPropertyDescriptor = createPropertyDescriptor$4;
4558
4534
 
4559
- var errorStackInstallable = !fails$1(function () {
4535
+ var errorStackInstallable = !fails(function () {
4560
4536
  var error = new Error('a');
4561
4537
  if (!('stack' in error)) return true;
4562
4538
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -4643,28 +4619,28 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
4643
4619
  };
4644
4620
 
4645
4621
  /* eslint-disable no-unused-vars -- required for functions `.length` */
4646
- var $$1 = _export;
4647
- var global$2 = global$i;
4622
+ var $ = _export;
4623
+ var global$1 = global$h;
4648
4624
  var apply = functionApply;
4649
4625
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
4650
4626
 
4651
4627
  var WEB_ASSEMBLY = 'WebAssembly';
4652
- var WebAssembly = global$2[WEB_ASSEMBLY];
4628
+ var WebAssembly = global$1[WEB_ASSEMBLY];
4653
4629
 
4654
4630
  // eslint-disable-next-line es/no-error-cause -- feature detection
4655
- var FORCED$1 = new Error('e', { cause: 7 }).cause !== 7;
4631
+ var FORCED = new Error('e', { cause: 7 }).cause !== 7;
4656
4632
 
4657
4633
  var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
4658
4634
  var O = {};
4659
- O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$1);
4660
- $$1({ global: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
4635
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
4636
+ $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
4661
4637
  };
4662
4638
 
4663
4639
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
4664
4640
  if (WebAssembly && WebAssembly[ERROR_NAME]) {
4665
4641
  var O = {};
4666
- O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$1);
4667
- $$1({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
4642
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
4643
+ $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
4668
4644
  }
4669
4645
  };
4670
4646
 
@@ -4824,356 +4800,6 @@ const ContextProviderFactory = () => new ContextProviderClass().setup;
4824
4800
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4825
4801
  const JsonFormContext = /*#__PURE__*/createContext(null);
4826
4802
 
4827
- const getAllRequiredFields = schema => {
4828
- const requiredFields = [];
4829
- function findRequired(fields) {
4830
- if (fields && fields.required && Array.isArray(fields.required)) {
4831
- fields.required.forEach(field => {
4832
- requiredFields.push(field);
4833
- });
4834
- }
4835
- if (fields !== undefined && fields.properties) {
4836
- Object.keys(fields.properties).forEach(key => {
4837
- if (fields.properties) {
4838
- findRequired(fields.properties[key]);
4839
- }
4840
- });
4841
- } else if (fields && fields.type === 'array' && fields.items && typeof fields.items === 'object') {
4842
- const childItems = JSON.parse(JSON.stringify(fields.items));
4843
- findRequired(childItems);
4844
- }
4845
- }
4846
- findRequired(schema);
4847
- return requiredFields;
4848
- };
4849
-
4850
- var aCallable = aCallable$3;
4851
- var toObject = toObject$7;
4852
- var IndexedObject = indexedObject;
4853
- var lengthOfArrayLike = lengthOfArrayLike$4;
4854
-
4855
- var $TypeError = TypeError;
4856
-
4857
- var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
4858
-
4859
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
4860
- var createMethod = function (IS_RIGHT) {
4861
- return function (that, callbackfn, argumentsLength, memo) {
4862
- var O = toObject(that);
4863
- var self = IndexedObject(O);
4864
- var length = lengthOfArrayLike(O);
4865
- aCallable(callbackfn);
4866
- if (length === 0 && argumentsLength < 2) throw new $TypeError(REDUCE_EMPTY);
4867
- var index = IS_RIGHT ? length - 1 : 0;
4868
- var i = IS_RIGHT ? -1 : 1;
4869
- if (argumentsLength < 2) while (true) {
4870
- if (index in self) {
4871
- memo = self[index];
4872
- index += i;
4873
- break;
4874
- }
4875
- index += i;
4876
- if (IS_RIGHT ? index < 0 : length <= index) {
4877
- throw new $TypeError(REDUCE_EMPTY);
4878
- }
4879
- }
4880
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
4881
- memo = callbackfn(memo, self[index], index, O);
4882
- }
4883
- return memo;
4884
- };
4885
- };
4886
-
4887
- var arrayReduce = {
4888
- // `Array.prototype.reduce` method
4889
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
4890
- left: createMethod(false),
4891
- // `Array.prototype.reduceRight` method
4892
- // https://tc39.es/ecma262/#sec-array.prototype.reduceright
4893
- right: createMethod(true)
4894
- };
4895
-
4896
- var fails = fails$o;
4897
-
4898
- var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
4899
- var method = [][METHOD_NAME];
4900
- return !!method && fails(function () {
4901
- // eslint-disable-next-line no-useless-call -- required for testing
4902
- method.call(null, argument || function () { return 1; }, 1);
4903
- });
4904
- };
4905
-
4906
- var global$1 = global$i;
4907
- var classof = classofRaw$1;
4908
-
4909
- var engineIsNode = classof(global$1.process) === 'process';
4910
-
4911
- var $ = _export;
4912
- var $reduce = arrayReduce.left;
4913
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
4914
- var CHROME_VERSION = engineV8Version;
4915
- var IS_NODE = engineIsNode;
4916
-
4917
- // Chrome 80-82 has a critical bug
4918
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
4919
- var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
4920
- var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
4921
-
4922
- // `Array.prototype.reduce` method
4923
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
4924
- $({ target: 'Array', proto: true, forced: FORCED }, {
4925
- reduce: function reduce(callbackfn /* , initialValue */) {
4926
- var length = arguments.length;
4927
- return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
4928
- }
4929
- });
4930
-
4931
- const labelToString = (label, scope) => {
4932
- if (!label) {
4933
- return resolveLabelFromScope(scope);
4934
- }
4935
- if (typeof label === 'object' && label !== null && 'show' in label && label.show) {
4936
- return label.text ? label.text : resolveLabelFromScope(scope);
4937
- }
4938
- if (typeof label === 'string') {
4939
- return label;
4940
- }
4941
- return '';
4942
- };
4943
- const resolveLabelFromScope = scope => {
4944
- // eslint-disable-next-line no-useless-escape
4945
- const validPatternRegex = /^#(\/properties\/[^\/]+)+$/;
4946
- const isValid = validPatternRegex.test(scope);
4947
- if (!isValid) return '';
4948
- const fieldName = scope.split('/').pop();
4949
- if (fieldName) {
4950
- const lowercased = fieldName.replace(/([A-Z])/g, ' $1').toLowerCase();
4951
- return lowercased.charAt(0).toUpperCase() + lowercased.slice(1);
4952
- }
4953
- return '';
4954
- };
4955
- /*
4956
- * Convert object to an array like [[ke1, value1], [key2, value2]]
4957
- * Note: this handles nested objects.
4958
- */
4959
- const objToArray = obj => {
4960
- return Object.entries(obj).map(([key, value]) => {
4961
- if (typeof value === 'object' && !Array.isArray(value)) {
4962
- return [key, objToArray(value)];
4963
- }
4964
- return [key, getValue(value)];
4965
- });
4966
- };
4967
- // test for ['name', 'fred']
4968
- const isNameValuePair = value => {
4969
- return Array.isArray(value) && value.length === 2 && typeof value[0] === 'string' && typeof value[1] === 'string';
4970
- };
4971
- // test for: ['name', [['first', 'fred'], ['middle', 'jolly'], ['last', 'mcguire']]];
4972
- const isNestedValue = value => {
4973
- return Array.isArray(value) && value.length === 2 && typeof value[0] === 'string' && Array.isArray(value[1]);
4974
- };
4975
- const isObjectArray = value => {
4976
- return Array.isArray(value) && value.length > 0 && typeof value[0] === 'object';
4977
- };
4978
- /*
4979
- * Convert ['name', [['first', 'fred'], ['middle', 'jolly'], ['last', 'mcguire']]]
4980
- * into [['first', 'fred'], ['middle', 'jolly'], ['last', 'mcguire']]
4981
- */
4982
- const flatten = arr => {
4983
- return arr.reduce((acc, val) => {
4984
- if (typeof val === 'string' || !val) {
4985
- return acc;
4986
- }
4987
- if (isNestedValue(val)) {
4988
- const flatter = flatten(val[1]);
4989
- return acc.concat(flatter);
4990
- }
4991
- if (isNameValuePair(val)) {
4992
- return acc.concat([[String(val[0]), getValue(val[1]) || '']]);
4993
- }
4994
- return acc;
4995
- }, []);
4996
- };
4997
- /*
4998
- * Flatten(objToArray(currentValue))
4999
- * Might have to be revisited. It currently looses information that may be
5000
- * deemed to be important later on - i.e. if an object contains nested objects,
5001
- * such as { person: { name: 'fred', 'address':'calgary' }, isRich: false }
5002
- * then the 'person' identifier is lost, resulting in
5003
- * [['name', 'fred'], ['address', 'calgary'], ['isRich', 'false']]
5004
- *
5005
- * However, we need to decide how to handle these sorts of nested data in the summary
5006
- * page before messing with it.
5007
- */
5008
- const getFormFieldValue = (schema, scope, data) => {
5009
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5010
- let currentValue = data;
5011
- if (scope) {
5012
- const pathArray = scope.replace('#/properties/', '').replace('properties/', '').split('/');
5013
- for (const key of pathArray) {
5014
- if (!currentValue) break;
5015
- currentValue = currentValue[key];
5016
- }
5017
- }
5018
- return isObjectArray(currentValue) ? {
5019
- type: 'array',
5020
- value: objToArray(currentValue)
5021
- } : typeof currentValue === 'object' ? {
5022
- type: 'object',
5023
- value: flatten(objToArray(currentValue))
5024
- } : {
5025
- type: 'primitive',
5026
- value: getValue(currentValue)
5027
- };
5028
- };
5029
- const getValue = currentValue => {
5030
- if (typeof currentValue === 'boolean') {
5031
- return currentValue ? 'Yes' : 'No';
5032
- }
5033
- return currentValue ? String(currentValue) : undefined;
5034
- };
5035
-
5036
- const renderValue = (label, key,
5037
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5038
- value, fileUploaderElement, downloadFile) => {
5039
- const actualValue = fileUploaderElement ? renderFileLink(fileUploaderElement, downloadFile) : value ? value : '';
5040
- return jsxs(GridItem, {
5041
- md: 6,
5042
- vSpacing: 1,
5043
- hSpacing: 0.5,
5044
- children: [jsx("strong", {
5045
- children: label
5046
- }), actualValue]
5047
- }, key);
5048
- };
5049
- const renderFileLink = (fileUploaderElement, downloadFile) => {
5050
- return jsx("a", {
5051
- onClick: () => downloadFile(fileUploaderElement, fileUploaderElement === null || fileUploaderElement === void 0 ? void 0 : fileUploaderElement.propertyId),
5052
- children: fileUploaderElement === null || fileUploaderElement === void 0 ? void 0 : fileUploaderElement.filename
5053
- });
5054
- };
5055
- const renderReviewControl = (schema, data, element, requiredFields, index,
5056
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5057
- fileList, downloadFile) => {
5058
- const fieldName = element.scope.split('/').pop() || '';
5059
- const label = labelToString(element.label, element.scope);
5060
- if (!fieldName || !label) return null;
5061
- const isFileUploader = element.scope.includes('fileUploader');
5062
- const fileUploaderElement = isFileUploader ? fileList && fileList[fieldName] : null;
5063
- const fieldValues = getFormFieldValue(schema, element.scope, data ? data : {});
5064
- const isRequired = requiredFields.includes(fieldName);
5065
- const asterisk = isRequired ? ' *' : '';
5066
- const values = fieldValues.value;
5067
- return jsxs(React.Fragment, {
5068
- children: [fieldValues.type === 'primitive' && renderValue(`${label}${asterisk}: `, `${index}`, fieldValues.value, fileUploaderElement, downloadFile), fieldValues.type === 'object' && values && values.length > 0 && values.map((v, i) => {
5069
- return renderValue(`${v[0]}: `, `${index}:${i}`, v[1]);
5070
- }), fieldValues.type === 'array' && values && values.length > 0 && renderList(values)]
5071
- }, index);
5072
- };
5073
- const renderList = items => {
5074
- return jsx(React.Fragment, {
5075
- children: items.map((item, itemIndex) => {
5076
- const details = Array.isArray(item) ? item : [undefined, [undefined, undefined]];
5077
- return jsxs("div", {
5078
- children: [jsx(Grid, {
5079
- children: details[1].map((detail, detailIndex) => {
5080
- const safeDetail = Array.isArray(detail) ? detail : [undefined, undefined];
5081
- return renderValue(`${safeDetail[0]}: `, `item-${itemIndex}-detail-${detailIndex}}`, safeDetail[1]);
5082
- })
5083
- }, `item-${itemIndex}`), itemIndex < items.length - 1 ? jsx(GoADivider, {
5084
- mb: "m"
5085
- }) : null]
5086
- });
5087
- })
5088
- });
5089
- };
5090
-
5091
- const renderReviewListWithDetail = (schema, elements,
5092
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5093
- data, field, index, requiredFields) => {
5094
- const listData = data[field];
5095
- const detailData = [];
5096
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5097
- listData.forEach((elementData, i) => {
5098
- const itemData = [];
5099
- elements.forEach((element, j) => {
5100
- var _a;
5101
- const fieldName = element.scope.split('/').pop() || '';
5102
- const label = resolveLabelFromScope(element.scope);
5103
- const value = (_a = elementData[fieldName]) !== null && _a !== void 0 ? _a : '';
5104
- itemData.push([label, value]);
5105
- });
5106
- detailData.push([`${i}`, itemData]);
5107
- });
5108
- return jsxs(ListWithDetail, {
5109
- children: [jsxs(ListWithDetailHeading, {
5110
- children: [field, listData.length > 1 && 's']
5111
- }), renderList(detailData)]
5112
- }, `${index}-${field}`);
5113
- };
5114
-
5115
- const isControl = type => {
5116
- return type === 'Control';
5117
- };
5118
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5119
- const isListWithDetail$1 = (type, data, fieldName) => {
5120
- return type === 'ListWithDetail' && typeof data === 'object' && data !== null && fieldName in data && Array.isArray(data[fieldName]) && data[fieldName].length > 0;
5121
- };
5122
- const isLayout = schema => {
5123
- return typeof schema === 'object' && schema !== null && 'elements' in schema;
5124
- };
5125
- const RenderFormReviewFields = ({
5126
- elements,
5127
- data,
5128
- requiredFields,
5129
- schema
5130
- }) => {
5131
- var _a, _b;
5132
- const enumerators = useContext(JsonFormContext);
5133
- const downloadTriggerFunction = (_a = enumerators === null || enumerators === void 0 ? void 0 : enumerators.functions) === null || _a === void 0 ? void 0 : _a.get('download-file');
5134
- const downloadTrigger = downloadTriggerFunction && downloadTriggerFunction();
5135
- const fileListValue = (_b = enumerators === null || enumerators === void 0 ? void 0 : enumerators.data) === null || _b === void 0 ? void 0 : _b.get('file-list');
5136
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5137
- const fileList = fileListValue && fileListValue();
5138
- const downloadFile = (file, propertyId) => {
5139
- if (downloadTrigger) {
5140
- downloadTrigger(file, propertyId);
5141
- }
5142
- };
5143
- return elements.map((element, index) => {
5144
- var _a, _b, _c;
5145
- const clonedElement = JSON.parse(JSON.stringify(element));
5146
- const fieldName = (_a = clonedElement.scope) === null || _a === void 0 ? void 0 : _a.split('/').pop();
5147
- if (isControl(clonedElement.type)) {
5148
- return renderReviewControl(schema, data, clonedElement, requiredFields, index, fileList, downloadFile);
5149
- } else if (isListWithDetail$1(clonedElement.type, data, fieldName)) {
5150
- const elements = removeLayouts((_c = (_b = clonedElement === null || clonedElement === void 0 ? void 0 : clonedElement.options) === null || _b === void 0 ? void 0 : _b.detail) === null || _c === void 0 ? void 0 : _c.elements) || [];
5151
- return renderReviewListWithDetail(schema, elements, data, fieldName, index);
5152
- } else if (isLayout(clonedElement)) {
5153
- return jsx(React.Fragment, {
5154
- children: jsx(RenderFormReviewFields, {
5155
- elements: clonedElement.elements,
5156
- data: data,
5157
- requiredFields: requiredFields,
5158
- schema: schema
5159
- })
5160
- }, index);
5161
- }
5162
- return null;
5163
- });
5164
- };
5165
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5166
- const removeLayouts = elements => {
5167
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
5168
- return elements.reduce((acc, item) => {
5169
- if (isLayout(item)) {
5170
- return acc.concat(removeLayouts(item.elements));
5171
- } else {
5172
- return acc.concat(item);
5173
- }
5174
- }, []);
5175
- };
5176
-
5177
4803
  const RenderStepElements = props => {
5178
4804
  return (
5179
4805
  /*
@@ -5405,7 +5031,6 @@ const FormStepper = props => {
5405
5031
  }), jsx(ReviewItem, {
5406
5032
  children: categories.map((category, index) => {
5407
5033
  const categoryLabel = category.label || category.i18n || 'Unknown Category';
5408
- const requiredFields = getAllRequiredFields(schema);
5409
5034
  const testId = `${categoryLabel}-review-link`;
5410
5035
  return jsxs(ReviewItemSection, {
5411
5036
  children: [jsxs(ReviewItemHeader, {
@@ -5416,12 +5041,17 @@ const FormStepper = props => {
5416
5041
  "data-testid": testId,
5417
5042
  children: readOnly ? 'View' : 'Edit'
5418
5043
  })]
5419
- }), jsx(Grid, {
5420
- children: jsx(RenderFormReviewFields, {
5421
- elements: category === null || category === void 0 ? void 0 : category.elements,
5422
- data: data,
5423
- requiredFields: requiredFields,
5424
- schema: schema
5044
+ }), jsx(GoAGrid, {
5045
+ minChildWidth: "600px",
5046
+ children: category.elements.map(element => {
5047
+ return jsx(JsonFormsDispatch, {
5048
+ "data-testid": `jsonforms-object-list-defined-elements-dispatch`,
5049
+ schema: schema,
5050
+ uischema: element,
5051
+ enabled: enabled,
5052
+ renderers: GoAReviewRenderers,
5053
+ cells: cells
5054
+ });
5425
5055
  })
5426
5056
  })]
5427
5057
  }, index);
@@ -5573,6 +5203,11 @@ let _$2 = t => t,
5573
5203
  _t3$1;
5574
5204
  const DELAY_UPLOAD_TIMEOUT_MS = 5;
5575
5205
  const DELAY_DELETE_TIMEOUT_MS = 5;
5206
+ const FileUploaderReview = props => {
5207
+ return FileUploader(Object.assign(Object.assign({}, props), {
5208
+ isStepperReview: true
5209
+ }));
5210
+ };
5576
5211
  const FileUploader = _a => {
5577
5212
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
5578
5213
  var {
@@ -5829,14 +5464,15 @@ const extractScopesFromUISchema = uischema => {
5829
5464
  }
5830
5465
  return scopes;
5831
5466
  };
5832
- const GenerateRows = (Cell, schema, rowPath, enabled, cells, uischema) => {
5467
+ const GenerateRows = (Cell, schema, rowPath, enabled, cells, uischema, isInReview) => {
5833
5468
  if (schema.type === 'object') {
5834
5469
  const props = {
5835
5470
  schema,
5836
5471
  rowPath,
5837
5472
  enabled,
5838
5473
  cells,
5839
- uischema
5474
+ uischema,
5475
+ isInReview
5840
5476
  };
5841
5477
  return jsx(Cell, Object.assign({}, props));
5842
5478
  } else {
@@ -5845,7 +5481,8 @@ const GenerateRows = (Cell, schema, rowPath, enabled, cells, uischema) => {
5845
5481
  schema,
5846
5482
  rowPath,
5847
5483
  cellPath: rowPath,
5848
- enabled
5484
+ enabled,
5485
+ isInReview
5849
5486
  };
5850
5487
  return jsx(Cell, Object.assign({}, props), rowPath);
5851
5488
  }
@@ -5896,7 +5533,8 @@ const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellCompo
5896
5533
  cells,
5897
5534
  rowPath,
5898
5535
  isValid,
5899
- uischema
5536
+ uischema,
5537
+ isInReview
5900
5538
  } = props;
5901
5539
  const propNames = getValidColumnProps(schema);
5902
5540
  const propScopes = (uischema === null || uischema === void 0 ? void 0 : uischema.scope) ? propNames.map(name => {
@@ -5928,7 +5566,10 @@ const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellCompo
5928
5566
  elements: scopesNotInElements.map(scope => {
5929
5567
  return {
5930
5568
  type: 'Control',
5931
- scope
5569
+ scope,
5570
+ options: {
5571
+ isStepperReview: isInReview
5572
+ }
5932
5573
  };
5933
5574
  })
5934
5575
  };
@@ -5942,7 +5583,7 @@ const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellCompo
5942
5583
  uischema: element,
5943
5584
  path: rowPath,
5944
5585
  enabled: enabled,
5945
- renderers: renderers,
5586
+ renderers: isInReview ? GoAReviewRenderers : renderers,
5946
5587
  cells: cells
5947
5588
  }, rowPath);
5948
5589
  }), ((_b = uiSchemaElementsForNotDefined === null || uiSchemaElementsForNotDefined === void 0 ? void 0 : uiSchemaElementsForNotDefined.elements) === null || _b === void 0 ? void 0 : _b.length) > 0 && jsx(JsonFormsDispatch, {
@@ -5950,7 +5591,7 @@ const NonEmptyCellComponent = /*#__PURE__*/React.memo(function NonEmptyCellCompo
5950
5591
  uischema: uiSchemaElementsForNotDefined,
5951
5592
  path: rowPath,
5952
5593
  enabled: enabled,
5953
- renderers: renderers,
5594
+ renderers: isInReview ? GoAReviewRenderers : renderers,
5954
5595
  cells: cells
5955
5596
  })]
5956
5597
  });
@@ -5960,6 +5601,7 @@ const NonEmptyCell = ownProps => {
5960
5601
  const emptyCellProps = ctxToNonEmptyCellProps(ctx, ownProps);
5961
5602
  const isValid = isEmpty$1(emptyCellProps.errors);
5962
5603
  return jsx(NonEmptyCellComponent, Object.assign({}, emptyCellProps, {
5604
+ isInReview: ownProps === null || ownProps === void 0 ? void 0 : ownProps.isInReview,
5963
5605
  isValid: isValid
5964
5606
  }));
5965
5607
  };
@@ -5972,18 +5614,19 @@ const NonEmptyRowComponent = ({
5972
5614
  cells,
5973
5615
  path,
5974
5616
  translations,
5975
- uischema
5617
+ uischema,
5618
+ isInReview
5976
5619
  }) => {
5977
5620
  return jsx("div", {
5978
5621
  children: enabled ? jsxs(GoAContainer, {
5979
- children: [jsx(GoAGrid, {
5622
+ children: [isInReview !== true && jsx(GoAGrid, {
5980
5623
  minChildWidth: "30ch",
5981
5624
  children: jsx(GoAIconButton, {
5982
5625
  icon: "trash",
5983
5626
  "aria-label": translations.removeAriaLabel,
5984
5627
  onClick: () => openDeleteDialog(childPath, rowIndex)
5985
5628
  })
5986
- }), GenerateRows(NonEmptyCell, schema, childPath, enabled, cells, uischema)]
5629
+ }), GenerateRows(NonEmptyCell, schema, childPath, enabled, cells, uischema, isInReview)]
5987
5630
  }) : null
5988
5631
  }, childPath);
5989
5632
  };
@@ -5997,7 +5640,8 @@ const ObjectArrayList = ({
5997
5640
  config,
5998
5641
  enabled,
5999
5642
  cells,
6000
- translations
5643
+ translations,
5644
+ isInReview
6001
5645
  }) => {
6002
5646
  const isEmptyList = data === 0;
6003
5647
  if (isEmptyList) {
@@ -6020,7 +5664,8 @@ const ObjectArrayList = ({
6020
5664
  cells: cells,
6021
5665
  path: path,
6022
5666
  uischema: uischema,
6023
- translations: translations
5667
+ translations: translations,
5668
+ isInReview: isInReview
6024
5669
  }, childPath);
6025
5670
  })
6026
5671
  });
@@ -6048,19 +5693,23 @@ class ObjectArrayControl extends React.Component {
6048
5693
  cells,
6049
5694
  translations,
6050
5695
  data,
6051
- config
5696
+ config,
5697
+ isStepperReview
6052
5698
  } = _b,
6053
- additionalProps = __rest(_b, ["label", "path", "schema", "rootSchema", "uischema", "errors", "openDeleteDialog", "visible", "enabled", "cells", "translations", "data", "config"]);
5699
+ additionalProps = __rest(_b, ["label", "path", "schema", "rootSchema", "uischema", "errors", "openDeleteDialog", "visible", "enabled", "cells", "translations", "data", "config", "isStepperReview"]);
6054
5700
  const controlElement = uischema;
6055
5701
  // eslint-disable-next-line
6056
5702
  const listTitle = label || ((_a = uischema.options) === null || _a === void 0 ? void 0 : _a.title);
5703
+ const isInReview = isStepperReview === true;
6057
5704
  return jsxs(Visible, {
6058
5705
  visible: visible,
6059
5706
  "data-testid": "jsonforms-object-list-wrapper",
6060
5707
  children: [jsxs(ToolBarHeader, {
6061
- children: [listTitle && jsx(ObjectArrayTitle, {
5708
+ children: [isInReview && listTitle && jsx("b", {
6062
5709
  children: listTitle
6063
- }), jsx(ObjectArrayToolBar, {
5710
+ }), !isInReview && listTitle && jsx(ObjectArrayTitle, {
5711
+ children: listTitle
5712
+ }), !isInReview && jsx(ObjectArrayToolBar, {
6064
5713
  errors: errors,
6065
5714
  label: label,
6066
5715
  addItem: this.addItem,
@@ -6082,7 +5731,8 @@ class ObjectArrayControl extends React.Component {
6082
5731
  translations: translations,
6083
5732
  data: data,
6084
5733
  cells: cells,
6085
- config: config
5734
+ config: config,
5735
+ isInReview: isInReview
6086
5736
  }, additionalProps))
6087
5737
  })]
6088
5738
  });
@@ -6160,8 +5810,21 @@ const ArrayControl = props => {
6160
5810
  })]
6161
5811
  });
6162
5812
  };
5813
+ const ArrayBaseReviewControl = props => {
5814
+ const {
5815
+ visible
5816
+ } = props;
5817
+ return jsx(Visible, {
5818
+ visible: visible,
5819
+ children: jsx(ObjectArrayControl, Object.assign({}, props, {
5820
+ openDeleteDialog: () => {},
5821
+ isStepperReview: true
5822
+ }))
5823
+ });
5824
+ };
6163
5825
  const GoAArrayControlTester = rankWith(3, or(isObjectArrayControl, isPrimitiveArrayControl));
6164
5826
  const GoAArrayControlRenderer = withJsonFormsArrayLayoutProps(ArrayControl);
5827
+ const GoAArrayControlReviewRenderer = withJsonFormsArrayLayoutProps(ArrayBaseReviewControl);
6165
5828
  const GoAListWithDetailsTester = rankWith(3, and(uiTypeIs('ListWithDetail')));
6166
5829
 
6167
5830
  const GoATextCell = props => jsx(GoAInputText, Object.assign({}, props));
@@ -6218,7 +5881,33 @@ const GoAHorizontalLayoutComponent = ({
6218
5881
  path,
6219
5882
  enabled,
6220
5883
  direction: 'row',
6221
- visible
5884
+ visible,
5885
+ width: '10ch'
5886
+ };
5887
+ return jsx(LayoutRenderer, Object.assign({}, childProps, {
5888
+ renderers: renderers,
5889
+ cells: cells
5890
+ }));
5891
+ };
5892
+ const GoAHorizontalReviewLayoutComponent = ({
5893
+ uischema,
5894
+ renderers,
5895
+ cells,
5896
+ schema,
5897
+ path,
5898
+ enabled,
5899
+ visible
5900
+ }) => {
5901
+ var _a, _b;
5902
+ const layout = uischema;
5903
+ const childProps = {
5904
+ elements: layout.elements,
5905
+ schema,
5906
+ path,
5907
+ enabled,
5908
+ direction: 'row',
5909
+ visible,
5910
+ width: ((_b = (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.review) === null || _b === void 0 ? void 0 : _b.width) || '30ch'
6222
5911
  };
6223
5912
  return jsx(LayoutRenderer, Object.assign({}, childProps, {
6224
5913
  renderers: renderers,
@@ -6226,6 +5915,7 @@ const GoAHorizontalLayoutComponent = ({
6226
5915
  }));
6227
5916
  };
6228
5917
  const GoAHorizontalLayout = withJsonFormsLayoutProps(GoAHorizontalLayoutComponent, true);
5918
+ const GoAHorizontalReviewLayout = withJsonFormsLayoutProps(GoAHorizontalReviewLayoutComponent, true);
6229
5919
 
6230
5920
  const GoAVerticalLayoutComponent = ({
6231
5921
  uischema,
@@ -6380,6 +6070,9 @@ const RenderLink = props => {
6380
6070
  });
6381
6071
  };
6382
6072
 
6073
+ const HelpContentReviewComponent = () => {
6074
+ return jsx(Fragment, {});
6075
+ };
6383
6076
  const HelpContentComponent = _a => {
6384
6077
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
6385
6078
  var {
@@ -6468,6 +6161,7 @@ const HelpContents = ({
6468
6161
  });
6469
6162
  const HelpContentTester = rankWith(1, uiTypeIs('HelpContent'));
6470
6163
  const HelpContent = withJsonFormsControlProps(HelpContentComponent);
6164
+ const HelpReviewContent = withJsonFormsControlProps(HelpContentReviewComponent);
6471
6165
 
6472
6166
  const isNullSchema = schema => {
6473
6167
  return schema === undefined || schema === null;
@@ -6539,7 +6233,7 @@ const getUISchemaErrors = (uiSchema, schema) => {
6539
6233
  return '';
6540
6234
  }
6541
6235
  // Check control elements
6542
- if (isControl$1(uiSchema) && hasType(uiSchema, 'Control')) {
6236
+ if (isControl(uiSchema) && hasType(uiSchema, 'Control')) {
6543
6237
  if (!isScopedPrefixed(uiSchema.scope)) {
6544
6238
  return errMalformedScope(uiSchema.scope);
6545
6239
  }
@@ -6573,7 +6267,7 @@ const getUISchemaErrors = (uiSchema, schema) => {
6573
6267
  }
6574
6268
  // ensure each element has type Category, and that each category
6575
6269
  // has elements
6576
- if (isLayout$1(uiSchema)) {
6270
+ if (isLayout(uiSchema)) {
6577
6271
  const invalidCategorizations = [];
6578
6272
  const invalidCategories = [];
6579
6273
  uiSchema.elements.forEach(e => {
@@ -6636,14 +6330,16 @@ const GoAErrorControlTester = rankWith(1000, (uischema, schema, context) => {
6636
6330
  });
6637
6331
  var GoAErrorControl = withJsonFormsControlProps(ErrorControl);
6638
6332
 
6639
- const ajv = new Ajv({
6640
- allErrors: true,
6641
- verbose: true,
6642
- strict: 'log'
6643
- });
6644
- //Example format: urn:ads:platform:file-service:v1:/files/f6de737e-c5fc-42fe-963b-28bfe14597c4
6645
- ajv.addFormat('file-urn', /^urn:ads:platform:file-service:v[0-9]:\/files\/[a-zA-Z0-9.-]*$/);
6646
- addFormats(ajv);
6333
+ const createDefaultAjv = () => {
6334
+ const ajv = new Ajv({
6335
+ allErrors: true,
6336
+ verbose: true,
6337
+ strict: 'log'
6338
+ });
6339
+ ajv.addFormat('file-urn', /^urn:ads:platform:file-service:v[0-9]:\/files\/[a-zA-Z0-9.-]*$/);
6340
+ addFormats(ajv);
6341
+ return ajv;
6342
+ };
6647
6343
 
6648
6344
  const GoABaseRenderers = [
6649
6345
  // controls
@@ -6712,6 +6408,64 @@ const GoABaseRenderers = [
6712
6408
  tester: HelpContentTester,
6713
6409
  renderer: HelpContent
6714
6410
  }];
6411
+ const GoABaseReviewRenderers = [
6412
+ // controls
6413
+ {
6414
+ tester: GoAEnumControlTester,
6415
+ renderer: GoInputBaseReviewControl
6416
+ }, {
6417
+ tester: GoAIntegerControlTester,
6418
+ renderer: GoInputBaseReviewControl
6419
+ }, {
6420
+ tester: GoANumberControlTester,
6421
+ renderer: GoInputBaseReviewControl
6422
+ }, {
6423
+ tester: GoATextControlTester,
6424
+ renderer: GoInputBaseReviewControl
6425
+ }, {
6426
+ tester: GoADateControlTester,
6427
+ renderer: GoInputBaseReviewControl
6428
+ }, {
6429
+ tester: GoADateTimeControlTester,
6430
+ renderer: GoInputBaseReviewControl
6431
+ }, {
6432
+ tester: GoATimeControlTester,
6433
+ renderer: GoInputBaseReviewControl
6434
+ }, {
6435
+ tester: GoARadioGroupControlTester,
6436
+ renderer: GoInputBaseReviewControl
6437
+ }, {
6438
+ tester: GoACheckoutGroupControlTester,
6439
+ renderer: GoInputBaseReviewControl
6440
+ }, {
6441
+ tester: GoABooleanControlTester,
6442
+ renderer: GoInputBaseReviewControl
6443
+ }, {
6444
+ tester: GoABooleanRadioControlTester,
6445
+ renderer: GoInputBaseReviewControl
6446
+ }, {
6447
+ tester: MultiLineTextControlTester,
6448
+ renderer: GoInputBaseReviewControl
6449
+ }, {
6450
+ tester: GoAArrayControlTester,
6451
+ renderer: GoAArrayControlReviewRenderer
6452
+ }, {
6453
+ tester: GoAListWithDetailsTester,
6454
+ renderer: GoAArrayControlReviewRenderer
6455
+ }, {
6456
+ tester: GoAHorizontalLayoutTester,
6457
+ renderer: GoAHorizontalReviewLayout
6458
+ }, {
6459
+ tester: GoAlVerticalLayoutTester,
6460
+ renderer: GoAVerticalLayout
6461
+ }, {
6462
+ tester: HelpContentTester,
6463
+ renderer: HelpReviewContent
6464
+ }];
6465
+ const GoAReviewRenderers = [...GoABaseReviewRenderers, {
6466
+ tester: FileUploaderTester,
6467
+ renderer: withJsonFormsControlProps(FileUploaderReview)
6468
+ }];
6715
6469
  const GoARenderers = [...GoABaseRenderers, {
6716
6470
  tester: CategorizationRendererTester,
6717
6471
  renderer: FormStepperControl
@@ -6721,4 +6475,4 @@ const GoARenderers = [...GoABaseRenderers, {
6721
6475
  }];
6722
6476
  const GoACells = [...InputCells];
6723
6477
 
6724
- export { ADD_REGISTER_DATA_ACTION, ContextProviderC, ContextProviderClass, ContextProviderFactory, GoABaseRenderers, GoACells, GoARenderers, JsonFormContext, JsonFormRegisterProvider, JsonFormsRegisterContext, ajv, registerReducer };
6478
+ export { ADD_REGISTER_DATA_ACTION, ContextProviderC, ContextProviderClass, ContextProviderFactory, GoABaseRenderers, GoABaseReviewRenderers, GoACells, GoARenderers, GoAReviewRenderers, JsonFormContext, JsonFormRegisterProvider, JsonFormsRegisterContext, createDefaultAjv, registerReducer };