@abgov/jsonforms-components 1.34.0 → 1.34.2

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
@@ -36,22 +36,22 @@ var functionBindNative = !fails$q(function () {
36
36
  var NATIVE_BIND$3 = functionBindNative;
37
37
 
38
38
  var FunctionPrototype$2 = Function.prototype;
39
- var call$k = FunctionPrototype$2.call;
40
- var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$k, call$k);
39
+ var call$l = FunctionPrototype$2.call;
40
+ var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$l, call$l);
41
41
 
42
42
  var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
43
43
  return function () {
44
- return call$k.apply(fn, arguments);
44
+ return call$l.apply(fn, arguments);
45
45
  };
46
46
  };
47
47
 
48
48
  var uncurryThis$q = functionUncurryThis;
49
49
 
50
- var toString$d = uncurryThis$q({}.toString);
50
+ var toString$e = uncurryThis$q({}.toString);
51
51
  var stringSlice$7 = uncurryThis$q(''.slice);
52
52
 
53
53
  var classofRaw$2 = function (it) {
54
- return stringSlice$7(toString$d(it), 8, -1);
54
+ return stringSlice$7(toString$e(it), 8, -1);
55
55
  };
56
56
 
57
57
  var uncurryThis$p = functionUncurryThis;
@@ -72,27 +72,27 @@ var indexedObject = fails$p(function () {
72
72
 
73
73
  // we can't use just `it == null` since of `document.all` special case
74
74
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
75
- var isNullOrUndefined$5 = function (it) {
75
+ var isNullOrUndefined$6 = function (it) {
76
76
  return it === null || it === undefined;
77
77
  };
78
78
 
79
- var isNullOrUndefined$4 = isNullOrUndefined$5;
79
+ var isNullOrUndefined$5 = isNullOrUndefined$6;
80
80
 
81
81
  var $TypeError$i = TypeError;
82
82
 
83
83
  // `RequireObjectCoercible` abstract operation
84
84
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
85
- var requireObjectCoercible$8 = function (it) {
86
- if (isNullOrUndefined$4(it)) throw new $TypeError$i("Can't call method on " + it);
85
+ var requireObjectCoercible$9 = function (it) {
86
+ if (isNullOrUndefined$5(it)) throw new $TypeError$i("Can't call method on " + it);
87
87
  return it;
88
88
  };
89
89
 
90
90
  // toObject with fallback for non-array-like ES3 strings
91
91
  var IndexedObject$2 = indexedObject;
92
- var requireObjectCoercible$7 = requireObjectCoercible$8;
92
+ var requireObjectCoercible$8 = requireObjectCoercible$9;
93
93
 
94
94
  var toIndexedObject$5 = function (it) {
95
- return IndexedObject$2(requireObjectCoercible$7(it));
95
+ return IndexedObject$2(requireObjectCoercible$8(it));
96
96
  };
97
97
 
98
98
  var check = function (it) {
@@ -146,14 +146,14 @@ var shared$4 = function (key, value) {
146
146
  return store$2[key] || (store$2[key] = value || {});
147
147
  };
148
148
 
149
- var requireObjectCoercible$6 = requireObjectCoercible$8;
149
+ var requireObjectCoercible$7 = requireObjectCoercible$9;
150
150
 
151
151
  var $Object$3 = Object;
152
152
 
153
153
  // `ToObject` abstract operation
154
154
  // https://tc39.es/ecma262/#sec-toobject
155
155
  var toObject$7 = function (argument) {
156
- return $Object$3(requireObjectCoercible$6(argument));
156
+ return $Object$3(requireObjectCoercible$7(argument));
157
157
  };
158
158
 
159
159
  var uncurryThis$o = functionUncurryThis;
@@ -172,10 +172,10 @@ var uncurryThis$n = functionUncurryThis;
172
172
 
173
173
  var id = 0;
174
174
  var postfix = Math.random();
175
- var toString$c = uncurryThis$n(1.0.toString);
175
+ var toString$d = uncurryThis$n(1.0.toString);
176
176
 
177
177
  var uid$2 = function (key) {
178
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$c(++id + postfix, 36);
178
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$d(++id + postfix, 36);
179
179
  };
180
180
 
181
181
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
@@ -277,7 +277,7 @@ var $String$5 = String;
277
277
  var $TypeError$h = TypeError;
278
278
 
279
279
  // `Assert: Type(argument) is Object`
280
- var anObject$e = function (argument) {
280
+ var anObject$f = function (argument) {
281
281
  if (isObject$c(argument)) return argument;
282
282
  throw new $TypeError$h($String$5(argument) + ' is not an object');
283
283
  };
@@ -332,10 +332,10 @@ var ie8DomDefine = !DESCRIPTORS$f && !fails$l(function () {
332
332
 
333
333
  var NATIVE_BIND$2 = functionBindNative;
334
334
 
335
- var call$j = Function.prototype.call;
335
+ var call$k = Function.prototype.call;
336
336
 
337
- var functionCall = NATIVE_BIND$2 ? call$j.bind(call$j) : function () {
338
- return call$j.apply(call$j, arguments);
337
+ var functionCall = NATIVE_BIND$2 ? call$k.bind(call$k) : function () {
338
+ return call$k.apply(call$k, arguments);
339
339
  };
340
340
 
341
341
  var global$i = global$o;
@@ -389,16 +389,16 @@ var aCallable$9 = function (argument) {
389
389
  };
390
390
 
391
391
  var aCallable$8 = aCallable$9;
392
- var isNullOrUndefined$3 = isNullOrUndefined$5;
392
+ var isNullOrUndefined$4 = isNullOrUndefined$6;
393
393
 
394
394
  // `GetMethod` abstract operation
395
395
  // https://tc39.es/ecma262/#sec-getmethod
396
- var getMethod$4 = function (V, P) {
396
+ var getMethod$5 = function (V, P) {
397
397
  var func = V[P];
398
- return isNullOrUndefined$3(func) ? undefined : aCallable$8(func);
398
+ return isNullOrUndefined$4(func) ? undefined : aCallable$8(func);
399
399
  };
400
400
 
401
- var call$i = functionCall;
401
+ var call$j = functionCall;
402
402
  var isCallable$l = isCallable$q;
403
403
  var isObject$a = isObject$d;
404
404
 
@@ -408,16 +408,16 @@ var $TypeError$f = TypeError;
408
408
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
409
409
  var ordinaryToPrimitive$1 = function (input, pref) {
410
410
  var fn, val;
411
- if (pref === 'string' && isCallable$l(fn = input.toString) && !isObject$a(val = call$i(fn, input))) return val;
412
- if (isCallable$l(fn = input.valueOf) && !isObject$a(val = call$i(fn, input))) return val;
413
- if (pref !== 'string' && isCallable$l(fn = input.toString) && !isObject$a(val = call$i(fn, input))) return val;
411
+ if (pref === 'string' && isCallable$l(fn = input.toString) && !isObject$a(val = call$j(fn, input))) return val;
412
+ if (isCallable$l(fn = input.valueOf) && !isObject$a(val = call$j(fn, input))) return val;
413
+ if (pref !== 'string' && isCallable$l(fn = input.toString) && !isObject$a(val = call$j(fn, input))) return val;
414
414
  throw new $TypeError$f("Can't convert object to primitive value");
415
415
  };
416
416
 
417
- var call$h = functionCall;
417
+ var call$i = functionCall;
418
418
  var isObject$9 = isObject$d;
419
419
  var isSymbol$2 = isSymbol$3;
420
- var getMethod$3 = getMethod$4;
420
+ var getMethod$4 = getMethod$5;
421
421
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
422
422
  var wellKnownSymbol$i = wellKnownSymbol$j;
423
423
 
@@ -428,11 +428,11 @@ var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
428
428
  // https://tc39.es/ecma262/#sec-toprimitive
429
429
  var toPrimitive$1 = function (input, pref) {
430
430
  if (!isObject$9(input) || isSymbol$2(input)) return input;
431
- var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
431
+ var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
432
432
  var result;
433
433
  if (exoticToPrim) {
434
434
  if (pref === undefined) pref = 'default';
435
- result = call$h(exoticToPrim, input, pref);
435
+ result = call$i(exoticToPrim, input, pref);
436
436
  if (!isObject$9(result) || isSymbol$2(result)) return result;
437
437
  throw new $TypeError$e("Can't convert object to primitive value");
438
438
  }
@@ -453,7 +453,7 @@ var toPropertyKey$2 = function (argument) {
453
453
  var DESCRIPTORS$e = descriptors;
454
454
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
455
455
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
456
- var anObject$d = anObject$e;
456
+ var anObject$e = anObject$f;
457
457
  var toPropertyKey$1 = toPropertyKey$2;
458
458
 
459
459
  var $TypeError$d = TypeError;
@@ -468,9 +468,9 @@ var WRITABLE = 'writable';
468
468
  // `Object.defineProperty` method
469
469
  // https://tc39.es/ecma262/#sec-object.defineproperty
470
470
  objectDefineProperty.f = DESCRIPTORS$e ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
471
- anObject$d(O);
471
+ anObject$e(O);
472
472
  P = toPropertyKey$1(P);
473
- anObject$d(Attributes);
473
+ anObject$e(Attributes);
474
474
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
475
475
  var current = $getOwnPropertyDescriptor$1(O, P);
476
476
  if (current && current[WRITABLE]) {
@@ -483,9 +483,9 @@ objectDefineProperty.f = DESCRIPTORS$e ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
483
483
  }
484
484
  } return $defineProperty(O, P, Attributes);
485
485
  } : $defineProperty : function defineProperty(O, P, Attributes) {
486
- anObject$d(O);
486
+ anObject$e(O);
487
487
  P = toPropertyKey$1(P);
488
- anObject$d(Attributes);
488
+ anObject$e(Attributes);
489
489
  if (IE8_DOM_DEFINE$1) try {
490
490
  return $defineProperty(O, P, Attributes);
491
491
  } catch (error) { /* empty */ }
@@ -534,17 +534,17 @@ var min$1 = Math.min;
534
534
 
535
535
  // `ToLength` abstract operation
536
536
  // https://tc39.es/ecma262/#sec-tolength
537
- var toLength$2 = function (argument) {
537
+ var toLength$3 = function (argument) {
538
538
  var len = toIntegerOrInfinity$4(argument);
539
539
  return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
540
540
  };
541
541
 
542
- var toLength$1 = toLength$2;
542
+ var toLength$2 = toLength$3;
543
543
 
544
544
  // `LengthOfArrayLike` abstract operation
545
545
  // https://tc39.es/ecma262/#sec-lengthofarraylike
546
546
  var lengthOfArrayLike$5 = function (obj) {
547
- return toLength$1(obj.length);
547
+ return toLength$2(obj.length);
548
548
  };
549
549
 
550
550
  var toIndexedObject$4 = toIndexedObject$5;
@@ -628,7 +628,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
628
628
  var DESCRIPTORS$d = descriptors;
629
629
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
630
630
  var definePropertyModule$3 = objectDefineProperty;
631
- var anObject$c = anObject$e;
631
+ var anObject$d = anObject$f;
632
632
  var toIndexedObject$2 = toIndexedObject$5;
633
633
  var objectKeys$1 = objectKeys$2;
634
634
 
@@ -636,7 +636,7 @@ var objectKeys$1 = objectKeys$2;
636
636
  // https://tc39.es/ecma262/#sec-object.defineproperties
637
637
  // eslint-disable-next-line es/no-object-defineproperties -- safe
638
638
  objectDefineProperties.f = DESCRIPTORS$d && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
639
- anObject$c(O);
639
+ anObject$d(O);
640
640
  var props = toIndexedObject$2(Properties);
641
641
  var keys = objectKeys$1(Properties);
642
642
  var length = keys.length;
@@ -660,7 +660,7 @@ var sharedKey$3 = function (key) {
660
660
  };
661
661
 
662
662
  /* global ActiveXObject -- old IE, WSH */
663
- var anObject$b = anObject$e;
663
+ var anObject$c = anObject$f;
664
664
  var definePropertiesModule = objectDefineProperties;
665
665
  var enumBugKeys$1 = enumBugKeys$3;
666
666
  var hiddenKeys$2 = hiddenKeys$4;
@@ -734,7 +734,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
734
734
  var objectCreate = Object.create || function create(O, Properties) {
735
735
  var result;
736
736
  if (O !== null) {
737
- EmptyConstructor[PROTOTYPE] = anObject$b(O);
737
+ EmptyConstructor[PROTOTYPE] = anObject$c(O);
738
738
  result = new EmptyConstructor();
739
739
  EmptyConstructor[PROTOTYPE] = null;
740
740
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -883,7 +883,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
883
883
  } : $propertyIsEnumerable;
884
884
 
885
885
  var DESCRIPTORS$b = descriptors;
886
- var call$g = functionCall;
886
+ var call$h = functionCall;
887
887
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
888
888
  var createPropertyDescriptor$2 = createPropertyDescriptor$4;
889
889
  var toIndexedObject$1 = toIndexedObject$5;
@@ -902,7 +902,7 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor : f
902
902
  if (IE8_DOM_DEFINE) try {
903
903
  return $getOwnPropertyDescriptor(O, P);
904
904
  } catch (error) { /* empty */ }
905
- if (hasOwn$a(O, P)) return createPropertyDescriptor$2(!call$g(propertyIsEnumerableModule$1.f, O, P), O[P]);
905
+ if (hasOwn$a(O, P)) return createPropertyDescriptor$2(!call$h(propertyIsEnumerableModule$1.f, O, P), O[P]);
906
906
  };
907
907
 
908
908
  var makeBuiltIn$3 = {exports: {}};
@@ -1046,13 +1046,13 @@ var getBuiltIn$6 = getBuiltIn$9;
1046
1046
  var uncurryThis$i = functionUncurryThis;
1047
1047
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1048
1048
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1049
- var anObject$a = anObject$e;
1049
+ var anObject$b = anObject$f;
1050
1050
 
1051
1051
  var concat$2 = uncurryThis$i([].concat);
1052
1052
 
1053
1053
  // all object keys, includes non-enumerable and symbols
1054
1054
  var ownKeys$1 = getBuiltIn$6('Reflect', 'ownKeys') || function ownKeys(it) {
1055
- var keys = getOwnPropertyNamesModule.f(anObject$a(it));
1055
+ var keys = getOwnPropertyNamesModule.f(anObject$b(it));
1056
1056
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1057
1057
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1058
1058
  };
@@ -1287,7 +1287,7 @@ var aPossiblePrototype$1 = function (argument) {
1287
1287
  /* eslint-disable no-proto -- safe */
1288
1288
  var uncurryThisAccessor = functionUncurryThisAccessor;
1289
1289
  var isObject$5 = isObject$d;
1290
- var requireObjectCoercible$5 = requireObjectCoercible$8;
1290
+ var requireObjectCoercible$6 = requireObjectCoercible$9;
1291
1291
  var aPossiblePrototype = aPossiblePrototype$1;
1292
1292
 
1293
1293
  // `Object.setPrototypeOf` method
@@ -1304,7 +1304,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1304
1304
  CORRECT_SETTER = test instanceof Array;
1305
1305
  } catch (error) { /* empty */ }
1306
1306
  return function setPrototypeOf(O, proto) {
1307
- requireObjectCoercible$5(O);
1307
+ requireObjectCoercible$6(O);
1308
1308
  aPossiblePrototype(proto);
1309
1309
  if (!isObject$5(O)) return O;
1310
1310
  if (CORRECT_SETTER) setter(O, proto);
@@ -1314,7 +1314,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1314
1314
  }() : undefined);
1315
1315
 
1316
1316
  var $$j = _export;
1317
- var call$f = functionCall;
1317
+ var call$g = functionCall;
1318
1318
  var FunctionName = functionName;
1319
1319
  var isCallable$d = isCallable$q;
1320
1320
  var createIteratorConstructor = iteratorCreateConstructor;
@@ -1386,7 +1386,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1386
1386
  createNonEnumerableProperty$6(IterablePrototype, 'name', VALUES);
1387
1387
  } else {
1388
1388
  INCORRECT_VALUES_NAME = true;
1389
- defaultIterator = function values() { return call$f(nativeIterator, this); };
1389
+ defaultIterator = function values() { return call$g(nativeIterator, this); };
1390
1390
  }
1391
1391
  }
1392
1392
 
@@ -1563,7 +1563,7 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1563
1563
 
1564
1564
  var DESCRIPTORS$7 = descriptors;
1565
1565
  var uncurryThis$g = functionUncurryThis;
1566
- var call$e = functionCall;
1566
+ var call$f = functionCall;
1567
1567
  var fails$g = fails$r;
1568
1568
  var objectKeys = objectKeys$2;
1569
1569
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
@@ -1613,7 +1613,7 @@ var objectAssign = !$assign || fails$g(function () {
1613
1613
  var key;
1614
1614
  while (length > j) {
1615
1615
  key = keys[j++];
1616
- if (!DESCRIPTORS$7 || call$e(propertyIsEnumerable, S, key)) T[key] = S[key];
1616
+ if (!DESCRIPTORS$7 || call$f(propertyIsEnumerable, S, key)) T[key] = S[key];
1617
1617
  }
1618
1618
  } return T;
1619
1619
  } : $assign;
@@ -1697,17 +1697,17 @@ var classof$8 = classof$9;
1697
1697
 
1698
1698
  var $String$1 = String;
1699
1699
 
1700
- var toString$b = function (argument) {
1700
+ var toString$c = function (argument) {
1701
1701
  if (classof$8(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1702
1702
  return $String$1(argument);
1703
1703
  };
1704
1704
 
1705
- var anObject$9 = anObject$e;
1705
+ var anObject$a = anObject$f;
1706
1706
 
1707
1707
  // `RegExp.prototype.flags` getter implementation
1708
1708
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1709
1709
  var regexpFlags$1 = function () {
1710
- var that = anObject$9(this);
1710
+ var that = anObject$a(this);
1711
1711
  var result = '';
1712
1712
  if (that.hasIndices) result += 'd';
1713
1713
  if (that.global) result += 'g';
@@ -1776,9 +1776,9 @@ var regexpUnsupportedNcg = fails$d(function () {
1776
1776
 
1777
1777
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1778
1778
  /* eslint-disable regexp/no-useless-quantifier -- testing */
1779
- var call$d = functionCall;
1779
+ var call$e = functionCall;
1780
1780
  var uncurryThis$f = functionUncurryThis;
1781
- var toString$a = toString$b;
1781
+ var toString$b = toString$c;
1782
1782
  var regexpFlags = regexpFlags$1;
1783
1783
  var stickyHelpers$1 = regexpStickyHelpers;
1784
1784
  var shared = shared$4;
@@ -1798,8 +1798,8 @@ var stringSlice$5 = uncurryThis$f(''.slice);
1798
1798
  var UPDATES_LAST_INDEX_WRONG = (function () {
1799
1799
  var re1 = /a/;
1800
1800
  var re2 = /b*/g;
1801
- call$d(nativeExec, re1, 'a');
1802
- call$d(nativeExec, re2, 'a');
1801
+ call$e(nativeExec, re1, 'a');
1802
+ call$e(nativeExec, re2, 'a');
1803
1803
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1804
1804
  })();
1805
1805
 
@@ -1814,20 +1814,20 @@ if (PATCH) {
1814
1814
  patchedExec = function exec(string) {
1815
1815
  var re = this;
1816
1816
  var state = getInternalState$1(re);
1817
- var str = toString$a(string);
1817
+ var str = toString$b(string);
1818
1818
  var raw = state.raw;
1819
1819
  var result, reCopy, lastIndex, match, i, object, group;
1820
1820
 
1821
1821
  if (raw) {
1822
1822
  raw.lastIndex = re.lastIndex;
1823
- result = call$d(patchedExec, raw, str);
1823
+ result = call$e(patchedExec, raw, str);
1824
1824
  re.lastIndex = raw.lastIndex;
1825
1825
  return result;
1826
1826
  }
1827
1827
 
1828
1828
  var groups = state.groups;
1829
1829
  var sticky = UNSUPPORTED_Y$1 && re.sticky;
1830
- var flags = call$d(regexpFlags, re);
1830
+ var flags = call$e(regexpFlags, re);
1831
1831
  var source = re.source;
1832
1832
  var charsAdded = 0;
1833
1833
  var strCopy = str;
@@ -1855,7 +1855,7 @@ if (PATCH) {
1855
1855
  }
1856
1856
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1857
1857
 
1858
- match = call$d(nativeExec, sticky ? reCopy : re, strCopy);
1858
+ match = call$e(nativeExec, sticky ? reCopy : re, strCopy);
1859
1859
 
1860
1860
  if (sticky) {
1861
1861
  if (match) {
@@ -1870,7 +1870,7 @@ if (PATCH) {
1870
1870
  if (NPCG_INCLUDED && match && match.length > 1) {
1871
1871
  // Fix browsers whose `exec` methods don't consistently return `undefined`
1872
1872
  // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1873
- call$d(nativeReplace, match[0], reCopy, function () {
1873
+ call$e(nativeReplace, match[0], reCopy, function () {
1874
1874
  for (i = 1; i < arguments.length - 2; i++) {
1875
1875
  if (arguments[i] === undefined) match[i] = undefined;
1876
1876
  }
@@ -1903,10 +1903,10 @@ $$g({ target: 'RegExp', proto: true, forced: /./.exec !== exec$3 }, {
1903
1903
  // TODO: Remove from `core-js@4` since it's moved to entry points
1904
1904
 
1905
1905
  var $$f = _export;
1906
- var call$c = functionCall;
1906
+ var call$d = functionCall;
1907
1907
  var isCallable$b = isCallable$q;
1908
- var anObject$8 = anObject$e;
1909
- var toString$9 = toString$b;
1908
+ var anObject$9 = anObject$f;
1909
+ var toString$a = toString$c;
1910
1910
 
1911
1911
  var DELEGATES_TO_EXEC = function () {
1912
1912
  var execCalled = false;
@@ -1924,18 +1924,18 @@ var nativeTest = /./.test;
1924
1924
  // https://tc39.es/ecma262/#sec-regexp.prototype.test
1925
1925
  $$f({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
1926
1926
  test: function (S) {
1927
- var R = anObject$8(this);
1928
- var string = toString$9(S);
1927
+ var R = anObject$9(this);
1928
+ var string = toString$a(S);
1929
1929
  var exec = R.exec;
1930
- if (!isCallable$b(exec)) return call$c(nativeTest, R, string);
1931
- var result = call$c(exec, R, string);
1930
+ if (!isCallable$b(exec)) return call$d(nativeTest, R, string);
1931
+ var result = call$d(exec, R, string);
1932
1932
  if (result === null) return false;
1933
- anObject$8(result);
1933
+ anObject$9(result);
1934
1934
  return true;
1935
1935
  }
1936
1936
  });
1937
1937
 
1938
- var call$b = functionCall;
1938
+ var call$c = functionCall;
1939
1939
  var hasOwn$4 = hasOwnProperty_1;
1940
1940
  var isPrototypeOf$5 = objectIsPrototypeOf;
1941
1941
  var regExpFlags = regexpFlags$1;
@@ -1945,13 +1945,13 @@ var RegExpPrototype$4 = RegExp.prototype;
1945
1945
  var regexpGetFlags = function (R) {
1946
1946
  var flags = R.flags;
1947
1947
  return flags === undefined && !('flags' in RegExpPrototype$4) && !hasOwn$4(R, 'flags') && isPrototypeOf$5(RegExpPrototype$4, R)
1948
- ? call$b(regExpFlags, R) : flags;
1948
+ ? call$c(regExpFlags, R) : flags;
1949
1949
  };
1950
1950
 
1951
1951
  var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
1952
1952
  var defineBuiltIn$4 = defineBuiltIn$8;
1953
- var anObject$7 = anObject$e;
1954
- var $toString = toString$b;
1953
+ var anObject$8 = anObject$f;
1954
+ var $toString = toString$c;
1955
1955
  var fails$c = fails$r;
1956
1956
  var getRegExpFlags$1 = regexpGetFlags;
1957
1957
 
@@ -1967,7 +1967,7 @@ var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name !== TO_STRING
1967
1967
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1968
1968
  if (NOT_GENERIC || INCORRECT_NAME) {
1969
1969
  defineBuiltIn$4(RegExpPrototype$3, TO_STRING, function toString() {
1970
- var R = anObject$7(this);
1970
+ var R = anObject$8(this);
1971
1971
  var pattern = $toString(R.source);
1972
1972
  var flags = $toString(getRegExpFlags$1(R));
1973
1973
  return '/' + pattern + '/' + flags;
@@ -1976,9 +1976,9 @@ if (NOT_GENERIC || INCORRECT_NAME) {
1976
1976
 
1977
1977
  var $$e = _export;
1978
1978
  var uncurryThis$e = functionUncurryThis;
1979
- var requireObjectCoercible$4 = requireObjectCoercible$8;
1979
+ var requireObjectCoercible$5 = requireObjectCoercible$9;
1980
1980
  var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
1981
- var toString$8 = toString$b;
1981
+ var toString$9 = toString$c;
1982
1982
  var fails$b = fails$r;
1983
1983
 
1984
1984
  var charAt$5 = uncurryThis$e(''.charAt);
@@ -1992,7 +1992,7 @@ var FORCED$3 = fails$b(function () {
1992
1992
  // https://tc39.es/ecma262/#sec-string.prototype.at
1993
1993
  $$e({ target: 'String', proto: true, forced: FORCED$3 }, {
1994
1994
  at: function at(index) {
1995
- var S = toString$8(requireObjectCoercible$4(this));
1995
+ var S = toString$9(requireObjectCoercible$5(this));
1996
1996
  var len = S.length;
1997
1997
  var relativeIndex = toIntegerOrInfinity$2(index);
1998
1998
  var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
@@ -2004,16 +2004,16 @@ var NATIVE_BIND$1 = functionBindNative;
2004
2004
 
2005
2005
  var FunctionPrototype = Function.prototype;
2006
2006
  var apply$4 = FunctionPrototype.apply;
2007
- var call$a = FunctionPrototype.call;
2007
+ var call$b = FunctionPrototype.call;
2008
2008
 
2009
2009
  // eslint-disable-next-line es/no-reflect -- safe
2010
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$a.bind(apply$4) : function () {
2011
- return call$a.apply(apply$4, arguments);
2010
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$b.bind(apply$4) : function () {
2011
+ return call$b.apply(apply$4, arguments);
2012
2012
  });
2013
2013
 
2014
2014
  // TODO: Remove from `core-js@4` since it's moved to entry points
2015
2015
 
2016
- var call$9 = functionCall;
2016
+ var call$a = functionCall;
2017
2017
  var defineBuiltIn$3 = defineBuiltIn$8;
2018
2018
  var regexpExec$1 = regexpExec$2;
2019
2019
  var fails$a = fails$r;
@@ -2073,9 +2073,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2073
2073
  // The native String method already delegates to @@method (this
2074
2074
  // polyfilled function), leasing to infinite recursion.
2075
2075
  // We avoid it by directly calling the native @@method method.
2076
- return { done: true, value: call$9(nativeRegExpMethod, regexp, str, arg2) };
2076
+ return { done: true, value: call$a(nativeRegExpMethod, regexp, str, arg2) };
2077
2077
  }
2078
- return { done: true, value: call$9(nativeMethod, str, regexp, arg2) };
2078
+ return { done: true, value: call$a(nativeMethod, str, regexp, arg2) };
2079
2079
  }
2080
2080
  return { done: false };
2081
2081
  });
@@ -2089,8 +2089,8 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2089
2089
 
2090
2090
  var uncurryThis$d = functionUncurryThis;
2091
2091
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$6;
2092
- var toString$7 = toString$b;
2093
- var requireObjectCoercible$3 = requireObjectCoercible$8;
2092
+ var toString$8 = toString$c;
2093
+ var requireObjectCoercible$4 = requireObjectCoercible$9;
2094
2094
 
2095
2095
  var charAt$4 = uncurryThis$d(''.charAt);
2096
2096
  var charCodeAt$1 = uncurryThis$d(''.charCodeAt);
@@ -2098,7 +2098,7 @@ var stringSlice$4 = uncurryThis$d(''.slice);
2098
2098
 
2099
2099
  var createMethod$2 = function (CONVERT_TO_STRING) {
2100
2100
  return function ($this, pos) {
2101
- var S = toString$7(requireObjectCoercible$3($this));
2101
+ var S = toString$8(requireObjectCoercible$4($this));
2102
2102
  var position = toIntegerOrInfinity$1(pos);
2103
2103
  var size = S.length;
2104
2104
  var first, second;
@@ -2128,7 +2128,7 @@ var charAt$3 = stringMultibyte.charAt;
2128
2128
 
2129
2129
  // `AdvanceStringIndex` abstract operation
2130
2130
  // https://tc39.es/ecma262/#sec-advancestringindex
2131
- var advanceStringIndex$1 = function (S, index, unicode) {
2131
+ var advanceStringIndex$2 = function (S, index, unicode) {
2132
2132
  return index + (unicode ? charAt$3(S, index).length : 1);
2133
2133
  };
2134
2134
 
@@ -2178,8 +2178,8 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2178
2178
  });
2179
2179
  };
2180
2180
 
2181
- var call$8 = functionCall;
2182
- var anObject$6 = anObject$e;
2181
+ var call$9 = functionCall;
2182
+ var anObject$7 = anObject$f;
2183
2183
  var isCallable$a = isCallable$q;
2184
2184
  var classof$7 = classofRaw$2;
2185
2185
  var regexpExec = regexpExec$2;
@@ -2191,30 +2191,30 @@ var $TypeError$b = TypeError;
2191
2191
  var regexpExecAbstract = function (R, S) {
2192
2192
  var exec = R.exec;
2193
2193
  if (isCallable$a(exec)) {
2194
- var result = call$8(exec, R, S);
2195
- if (result !== null) anObject$6(result);
2194
+ var result = call$9(exec, R, S);
2195
+ if (result !== null) anObject$7(result);
2196
2196
  return result;
2197
2197
  }
2198
- if (classof$7(R) === 'RegExp') return call$8(regexpExec, R, S);
2198
+ if (classof$7(R) === 'RegExp') return call$9(regexpExec, R, S);
2199
2199
  throw new $TypeError$b('RegExp#exec called on incompatible receiver');
2200
2200
  };
2201
2201
 
2202
2202
  var apply$3 = functionApply;
2203
- var call$7 = functionCall;
2203
+ var call$8 = functionCall;
2204
2204
  var uncurryThis$b = functionUncurryThis;
2205
- var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2205
+ var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2206
2206
  var fails$9 = fails$r;
2207
- var anObject$5 = anObject$e;
2207
+ var anObject$6 = anObject$f;
2208
2208
  var isCallable$9 = isCallable$q;
2209
- var isNullOrUndefined$2 = isNullOrUndefined$5;
2209
+ var isNullOrUndefined$3 = isNullOrUndefined$6;
2210
2210
  var toIntegerOrInfinity = toIntegerOrInfinity$6;
2211
- var toLength = toLength$2;
2212
- var toString$6 = toString$b;
2213
- var requireObjectCoercible$2 = requireObjectCoercible$8;
2214
- var advanceStringIndex = advanceStringIndex$1;
2215
- var getMethod$2 = getMethod$4;
2211
+ var toLength$1 = toLength$3;
2212
+ var toString$7 = toString$c;
2213
+ var requireObjectCoercible$3 = requireObjectCoercible$9;
2214
+ var advanceStringIndex$1 = advanceStringIndex$2;
2215
+ var getMethod$3 = getMethod$5;
2216
2216
  var getSubstitution = getSubstitution$1;
2217
- var regExpExec = regexpExecAbstract;
2217
+ var regExpExec$1 = regexpExecAbstract;
2218
2218
  var wellKnownSymbol$9 = wellKnownSymbol$j;
2219
2219
 
2220
2220
  var REPLACE = wellKnownSymbol$9('replace');
@@ -2256,24 +2256,24 @@ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$9(function () {
2256
2256
  });
2257
2257
 
2258
2258
  // @@replace logic
2259
- fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
2259
+ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCallNative) {
2260
2260
  var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
2261
2261
 
2262
2262
  return [
2263
2263
  // `String.prototype.replace` method
2264
2264
  // https://tc39.es/ecma262/#sec-string.prototype.replace
2265
2265
  function replace(searchValue, replaceValue) {
2266
- var O = requireObjectCoercible$2(this);
2267
- var replacer = isNullOrUndefined$2(searchValue) ? undefined : getMethod$2(searchValue, REPLACE);
2266
+ var O = requireObjectCoercible$3(this);
2267
+ var replacer = isNullOrUndefined$3(searchValue) ? undefined : getMethod$3(searchValue, REPLACE);
2268
2268
  return replacer
2269
- ? call$7(replacer, searchValue, O, replaceValue)
2270
- : call$7(nativeReplace, toString$6(O), searchValue, replaceValue);
2269
+ ? call$8(replacer, searchValue, O, replaceValue)
2270
+ : call$8(nativeReplace, toString$7(O), searchValue, replaceValue);
2271
2271
  },
2272
2272
  // `RegExp.prototype[@@replace]` method
2273
2273
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2274
2274
  function (string, replaceValue) {
2275
- var rx = anObject$5(this);
2276
- var S = toString$6(string);
2275
+ var rx = anObject$6(this);
2276
+ var S = toString$7(string);
2277
2277
 
2278
2278
  if (
2279
2279
  typeof replaceValue == 'string' &&
@@ -2285,7 +2285,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
2285
2285
  }
2286
2286
 
2287
2287
  var functionalReplace = isCallable$9(replaceValue);
2288
- if (!functionalReplace) replaceValue = toString$6(replaceValue);
2288
+ if (!functionalReplace) replaceValue = toString$7(replaceValue);
2289
2289
 
2290
2290
  var global = rx.global;
2291
2291
  var fullUnicode;
@@ -2297,14 +2297,14 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
2297
2297
  var results = [];
2298
2298
  var result;
2299
2299
  while (true) {
2300
- result = regExpExec(rx, S);
2300
+ result = regExpExec$1(rx, S);
2301
2301
  if (result === null) break;
2302
2302
 
2303
2303
  push$1(results, result);
2304
2304
  if (!global) break;
2305
2305
 
2306
- var matchStr = toString$6(result[0]);
2307
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2306
+ var matchStr = toString$7(result[0]);
2307
+ if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
2308
2308
  }
2309
2309
 
2310
2310
  var accumulatedResult = '';
@@ -2312,7 +2312,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
2312
2312
  for (var i = 0; i < results.length; i++) {
2313
2313
  result = results[i];
2314
2314
 
2315
- var matched = toString$6(result[0]);
2315
+ var matched = toString$7(result[0]);
2316
2316
  var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
2317
2317
  var captures = [];
2318
2318
  var replacement;
@@ -2326,7 +2326,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
2326
2326
  if (functionalReplace) {
2327
2327
  var replacerArgs = concat([matched], captures, position, S);
2328
2328
  if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
2329
- replacement = toString$6(apply$3(replaceValue, undefined, replacerArgs));
2329
+ replacement = toString$7(apply$3(replaceValue, undefined, replacerArgs));
2330
2330
  } else {
2331
2331
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2332
2332
  }
@@ -2423,7 +2423,9 @@ const checkFieldValidity = props => {
2423
2423
  const labelToUpdate = getLabelText(uischema.scope, label);
2424
2424
  const extraSchema = schema;
2425
2425
  if (extraSchema && data && (extraSchema === null || extraSchema === void 0 ? void 0 : extraSchema.title) === 'Social insurance number') {
2426
- if (!validateSinWithLuhn(data)) {
2426
+ if (data.length === 11 && !validateSinWithLuhn(data)) {
2427
+ return 'Social insurance number is invalid';
2428
+ } else if (data.length < 11) {
2427
2429
  return extraSchema.errorMessage;
2428
2430
  }
2429
2431
  }
@@ -2950,7 +2952,7 @@ var uncurryThis$9 = functionUncurryThis;
2950
2952
  var isArray = isArray$2;
2951
2953
  var isCallable$8 = isCallable$q;
2952
2954
  var classof$5 = classofRaw$2;
2953
- var toString$5 = toString$b;
2955
+ var toString$6 = toString$c;
2954
2956
 
2955
2957
  var push = uncurryThis$9([].push);
2956
2958
 
@@ -2962,7 +2964,7 @@ var getJsonReplacerFunction = function (replacer) {
2962
2964
  for (var i = 0; i < rawLength; i++) {
2963
2965
  var element = replacer[i];
2964
2966
  if (typeof element == 'string') push(keys, element);
2965
- else if (typeof element == 'number' || classof$5(element) === 'Number' || classof$5(element) === 'String') push(keys, toString$5(element));
2967
+ else if (typeof element == 'number' || classof$5(element) === 'Number' || classof$5(element) === 'String') push(keys, toString$6(element));
2966
2968
  }
2967
2969
  var keysLength = keys.length;
2968
2970
  var root = true;
@@ -2979,7 +2981,7 @@ var getJsonReplacerFunction = function (replacer) {
2979
2981
  var $$b = _export;
2980
2982
  var getBuiltIn$5 = getBuiltIn$9;
2981
2983
  var apply$2 = functionApply;
2982
- var call$6 = functionCall;
2984
+ var call$7 = functionCall;
2983
2985
  var uncurryThis$8 = functionUncurryThis;
2984
2986
  var fails$6 = fails$r;
2985
2987
  var isCallable$7 = isCallable$q;
@@ -3022,7 +3024,7 @@ var stringifyWithSymbolsFix = function (it, replacer) {
3022
3024
  if (!isCallable$7($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
3023
3025
  args[1] = function (key, value) {
3024
3026
  // some old implementations (like WebKit) could pass numbers as keys
3025
- if (isCallable$7($replacer)) value = call$6($replacer, this, $String(key), value);
3027
+ if (isCallable$7($replacer)) value = call$7($replacer, this, $String(key), value);
3026
3028
  if (!isSymbol(value)) return value;
3027
3029
  };
3028
3030
  return apply$2($stringify, null, args);
@@ -3091,8 +3093,8 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
3091
3093
  var $$a = _export;
3092
3094
  var uncurryThis$7 = functionUncurryThis;
3093
3095
  var notARegExp = notARegexp;
3094
- var requireObjectCoercible$1 = requireObjectCoercible$8;
3095
- var toString$4 = toString$b;
3096
+ var requireObjectCoercible$2 = requireObjectCoercible$9;
3097
+ var toString$5 = toString$c;
3096
3098
  var correctIsRegExpLogic = correctIsRegexpLogic;
3097
3099
 
3098
3100
  var stringIndexOf$1 = uncurryThis$7(''.indexOf);
@@ -3102,8 +3104,8 @@ var stringIndexOf$1 = uncurryThis$7(''.indexOf);
3102
3104
  $$a({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
3103
3105
  includes: function includes(searchString /* , position = 0 */) {
3104
3106
  return !!~stringIndexOf$1(
3105
- toString$4(requireObjectCoercible$1(this)),
3106
- toString$4(notARegExp(searchString)),
3107
+ toString$5(requireObjectCoercible$2(this)),
3108
+ toString$5(notARegExp(searchString)),
3107
3109
  arguments.length > 1 ? arguments[1] : undefined
3108
3110
  );
3109
3111
  }
@@ -3217,7 +3219,7 @@ var create = objectCreate;
3217
3219
  var getOwnPropertyNames = objectGetOwnPropertyNames.f;
3218
3220
  var isPrototypeOf$4 = objectIsPrototypeOf;
3219
3221
  var isRegExp = isRegexp;
3220
- var toString$3 = toString$b;
3222
+ var toString$4 = toString$c;
3221
3223
  var getRegExpFlags = regexpGetFlags;
3222
3224
  var stickyHelpers = regexpStickyHelpers;
3223
3225
  var proxyAccessor$1 = proxyAccessor$2;
@@ -3345,8 +3347,8 @@ if (isForced$1('RegExp', BASE_FORCED)) {
3345
3347
  if (flagsAreUndefined) flags = getRegExpFlags(rawPattern);
3346
3348
  }
3347
3349
 
3348
- pattern = pattern === undefined ? '' : toString$3(pattern);
3349
- flags = flags === undefined ? '' : toString$3(flags);
3350
+ pattern = pattern === undefined ? '' : toString$4(pattern);
3351
+ flags = flags === undefined ? '' : toString$4(flags);
3350
3352
  rawPattern = pattern;
3351
3353
 
3352
3354
  if (UNSUPPORTED_DOT_ALL$1 && 'dotAll' in re1) {
@@ -3685,7 +3687,7 @@ var uncurryThis$5 = functionUncurryThis;
3685
3687
  var hasOwn$2 = hasOwnProperty_1;
3686
3688
  var isCallable$5 = isCallable$q;
3687
3689
  var isPrototypeOf$3 = objectIsPrototypeOf;
3688
- var toString$2 = toString$b;
3690
+ var toString$3 = toString$c;
3689
3691
  var defineBuiltInAccessor = defineBuiltInAccessor$3;
3690
3692
  var copyConstructorProperties$1 = copyConstructorProperties$3;
3691
3693
 
@@ -3699,7 +3701,7 @@ if (DESCRIPTORS$2 && isCallable$5(NativeSymbol) && (!('description' in SymbolPro
3699
3701
  var EmptyStringDescriptionStore = {};
3700
3702
  // wrap Symbol constructor for correct work with undefined description
3701
3703
  var SymbolWrapper = function Symbol() {
3702
- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$2(arguments[0]);
3704
+ var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$3(arguments[0]);
3703
3705
  var result = isPrototypeOf$3(SymbolPrototype, this)
3704
3706
  ? new NativeSymbol(description)
3705
3707
  // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
@@ -3735,6 +3737,68 @@ if (DESCRIPTORS$2 && isCallable$5(NativeSymbol) && (!('description' in SymbolPro
3735
3737
  });
3736
3738
  }
3737
3739
 
3740
+ var call$6 = functionCall;
3741
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
3742
+ var anObject$5 = anObject$f;
3743
+ var isNullOrUndefined$2 = isNullOrUndefined$6;
3744
+ var toLength = toLength$3;
3745
+ var toString$2 = toString$c;
3746
+ var requireObjectCoercible$1 = requireObjectCoercible$9;
3747
+ var getMethod$2 = getMethod$5;
3748
+ var advanceStringIndex = advanceStringIndex$2;
3749
+ var regExpExec = regexpExecAbstract;
3750
+
3751
+ // @@match logic
3752
+ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {
3753
+ return [
3754
+ // `String.prototype.match` method
3755
+ // https://tc39.es/ecma262/#sec-string.prototype.match
3756
+ function match(regexp) {
3757
+ var O = requireObjectCoercible$1(this);
3758
+ var matcher = isNullOrUndefined$2(regexp) ? undefined : getMethod$2(regexp, MATCH);
3759
+ return matcher ? call$6(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$2(O));
3760
+ },
3761
+ // `RegExp.prototype[@@match]` method
3762
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
3763
+ function (string) {
3764
+ var rx = anObject$5(this);
3765
+ var S = toString$2(string);
3766
+ var res = maybeCallNative(nativeMatch, rx, S);
3767
+
3768
+ if (res.done) return res.value;
3769
+
3770
+ if (!rx.global) return regExpExec(rx, S);
3771
+
3772
+ var fullUnicode = rx.unicode;
3773
+ rx.lastIndex = 0;
3774
+ var A = [];
3775
+ var n = 0;
3776
+ var result;
3777
+ while ((result = regExpExec(rx, S)) !== null) {
3778
+ var matchStr = toString$2(result[0]);
3779
+ A[n] = matchStr;
3780
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
3781
+ n++;
3782
+ }
3783
+ return n === 0 ? null : A;
3784
+ }
3785
+ ];
3786
+ });
3787
+
3788
+ const formatSin = value => {
3789
+ const inputVal = value.replace(/ /g, '');
3790
+ let inputNumbersOnly = inputVal.replace(/\D/g, '');
3791
+ if (inputNumbersOnly.length > 16) {
3792
+ inputNumbersOnly = inputNumbersOnly.substr(0, 9);
3793
+ }
3794
+ const splits = inputNumbersOnly.match(/.{1,3}/g);
3795
+ let spacedNumber = '';
3796
+ if (splits) {
3797
+ spacedNumber = splits.join(' ');
3798
+ }
3799
+ const formatVal = spacedNumber.length > 11 ? spacedNumber.slice(0, 11) : spacedNumber;
3800
+ return formatVal;
3801
+ };
3738
3802
  const GoAInputText = props => {
3739
3803
  var _a, _b, _c, _d, _e, _f, _g, _h;
3740
3804
  const {
@@ -3749,6 +3813,7 @@ const GoAInputText = props => {
3749
3813
  const appliedUiSchemaOptions = Object.assign(Object.assign({}, config), uischema === null || uischema === void 0 ? void 0 : uischema.options);
3750
3814
  const placeholder = (appliedUiSchemaOptions === null || appliedUiSchemaOptions === void 0 ? void 0 : appliedUiSchemaOptions.placeholder) || (schema === null || schema === void 0 ? void 0 : schema.description) || '';
3751
3815
  const errorsFormInput = checkFieldValidity(props);
3816
+ const isSinField = schema.title === 'Social insurance number';
3752
3817
  const autoCapitalize = ((_b = (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.componentProps) === null || _b === void 0 ? void 0 : _b.autoCapitalize) === true || ((_c = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _c === void 0 ? void 0 : _c.autoCapitalize) === true;
3753
3818
  const readOnly = (_f = (_e = (_d = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _d === void 0 ? void 0 : _d.componentProps) === null || _e === void 0 ? void 0 : _e.readOnly) !== null && _f !== void 0 ? _f : false;
3754
3819
  return jsx(GoAInput, Object.assign({
@@ -3758,6 +3823,7 @@ const GoAInputText = props => {
3758
3823
  value: data,
3759
3824
  width: '100%',
3760
3825
  readonly: readOnly,
3826
+ maxLength: isSinField ? 11 : '',
3761
3827
  placeholder: placeholder
3762
3828
  }, (_g = uischema.options) === null || _g === void 0 ? void 0 : _g.componentProps, {
3763
3829
  // maxLength={appliedUiSchemaOptions?.maxLength}
@@ -3767,9 +3833,13 @@ const GoAInputText = props => {
3767
3833
  // If you use it onChange along with keyPress event it will cause a
3768
3834
  // side effect that causes the validation to render when it shouldn't.
3769
3835
  onChange: (name, value) => {
3836
+ let formattedValue = value;
3837
+ if (schema && schema.title === 'Social insurance number') {
3838
+ formattedValue = formatSin(value);
3839
+ }
3770
3840
  onChangeForInputControl({
3771
3841
  name,
3772
- value,
3842
+ value: formattedValue,
3773
3843
  controlProps: props
3774
3844
  });
3775
3845
  },
@@ -4790,7 +4860,7 @@ const RightAlignmentDiv = styled.div(_t10$1 || (_t10$1 = _$5`
4790
4860
  justify-content: flex-end;
4791
4861
  `));
4792
4862
 
4793
- var toString$1 = toString$b;
4863
+ var toString$1 = toString$c;
4794
4864
 
4795
4865
  var normalizeStringArgument$1 = function (argument, $default) {
4796
4866
  return argument === undefined ? arguments.length < 2 ? '' : $default : toString$1(argument);
@@ -6687,8 +6757,8 @@ var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u200
6687
6757
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
6688
6758
 
6689
6759
  var uncurryThis$3 = functionUncurryThis;
6690
- var requireObjectCoercible = requireObjectCoercible$8;
6691
- var toString = toString$b;
6760
+ var requireObjectCoercible = requireObjectCoercible$9;
6761
+ var toString = toString$c;
6692
6762
  var whitespaces$1 = whitespaces$2;
6693
6763
 
6694
6764
  var replace = uncurryThis$3(''.replace);
@@ -6767,9 +6837,16 @@ const filterAlbertaAddresses = suggestions => {
6767
6837
  return suggestions.filter(suggestion => suggestion.Description.includes('AB'));
6768
6838
  };
6769
6839
  const mapSuggestionToAddress = suggestion => {
6770
- const textParts = suggestion.Text.split(',');
6771
- const addressLine1 = textParts.length > 1 ? textParts[1].trim() : textParts[0].trim();
6772
- const addressLine2 = textParts.length > 1 ? textParts[0].trim() : '';
6840
+ let addressLine1, addressLine2;
6841
+ const suiteMatch = suggestion.Text.match(/(Suite|Apt|Unit|#)+/i);
6842
+ const textParts = suggestion.Text.split(' ');
6843
+ if (suiteMatch) {
6844
+ addressLine1 = suggestion.Text.replace(textParts[0], '').trim();
6845
+ addressLine2 = textParts[0].trim();
6846
+ } else {
6847
+ addressLine2 = '';
6848
+ addressLine1 = suggestion.Text.trim();
6849
+ }
6773
6850
  const descriptionParts = suggestion.Description.split(',');
6774
6851
  const city = descriptionParts[0].trim();
6775
6852
  const provinceAndPostalCode = descriptionParts[1].trim().split(' ');
@@ -6787,11 +6864,14 @@ const mapSuggestionToAddress = suggestion => {
6787
6864
 
6788
6865
  let _$1 = t => t,
6789
6866
  _t$1;
6790
- const AddressSearch = styled.div(_t$1 || (_t$1 = _$1`
6867
+ const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
6868
+ position: relative;
6869
+
6791
6870
  .suggestions {
6871
+ width: 100%;
6872
+ margin-top: 3px;
6792
6873
  border-top-width: 0;
6793
6874
  list-style: none;
6794
- margin-top: 0;
6795
6875
  max-height: 15.5rem;
6796
6876
  width: 100%;
6797
6877
  position: absolute;
@@ -6818,17 +6898,21 @@ const AddressSearch = styled.div(_t$1 || (_t$1 = _$1`
6818
6898
 
6819
6899
  const ADDRESS_PATH = 'api/gateway/v1/address/v1/find';
6820
6900
  const AddressLookUpControl = props => {
6821
- var _a, _b;
6901
+ var _a, _b, _c;
6822
6902
  const {
6823
6903
  data,
6824
6904
  path,
6825
6905
  schema,
6826
- handleChange
6906
+ handleChange,
6907
+ uischema
6827
6908
  } = props;
6828
6909
  const isAlbertaAddress = ((_b = (_a = schema === null || schema === void 0 ? void 0 : schema.properties) === null || _a === void 0 ? void 0 : _a.subdivisionCode) === null || _b === void 0 ? void 0 : _b.const) === 'AB';
6829
6910
  const formCtx = useContext(JsonFormContext);
6830
6911
  const formHost = formCtx === null || formCtx === void 0 ? void 0 : formCtx.formUrl;
6831
6912
  const formUrl = `${formHost}/${ADDRESS_PATH}`;
6913
+ const autocompletion = ((_c = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _c === void 0 ? void 0 : _c.autocomplete) === true;
6914
+ const [open, setOpen] = useState(false);
6915
+ const label = typeof (uischema === null || uischema === void 0 ? void 0 : uischema.label) === 'string' ? uischema.label : '';
6832
6916
  const defaultAddress = {
6833
6917
  addressLine1: '',
6834
6918
  addressLine2: '',
@@ -6856,6 +6940,7 @@ const AddressLookUpControl = props => {
6856
6940
  const fetchSuggestions = () => __awaiter(void 0, void 0, void 0, function* () {
6857
6941
  if (searchTerm.length > 2) {
6858
6942
  setLoading(true);
6943
+ setOpen(true);
6859
6944
  const suggestions = yield fetchAddressSuggestions(formUrl, searchTerm, isAlbertaAddress);
6860
6945
  if (isAlbertaAddress) {
6861
6946
  setSuggestions(filterAlbertaAddresses(suggestions));
@@ -6865,6 +6950,7 @@ const AddressLookUpControl = props => {
6865
6950
  setLoading(false);
6866
6951
  } else {
6867
6952
  setSuggestions([]);
6953
+ setOpen(false);
6868
6954
  }
6869
6955
  });
6870
6956
  fetchSuggestions();
@@ -6878,28 +6964,31 @@ const AddressLookUpControl = props => {
6878
6964
  handleChange(path, suggestAddress);
6879
6965
  setSuggestions([]);
6880
6966
  };
6881
- return jsxs(AddressSearch, {
6882
- children: [jsxs(GoAFormItem, {
6883
- label: "",
6884
- children: [jsx(GoAInput, {
6885
- leadingIcon: "search",
6886
- name: "address-form-address1",
6887
- testId: "address-form-address1",
6888
- ariaLabel: 'address-form-address1',
6889
- placeholder: "Start typing the first line of your address",
6890
- value: (address === null || address === void 0 ? void 0 : address.addressLine1) || '',
6891
- onChange: (name, value) => handleDropdownChange(value),
6892
- width: "100%"
6893
- }), loading && jsx(GoASkeleton, {
6894
- type: "text",
6895
- "data-testId": "loading"
6896
- }, 1), jsx("ul", {
6897
- className: "suggestions",
6898
- children: suggestions && suggestions.map((suggestion, index) => jsx("li", {
6899
- onClick: () => handleSuggestionClick(suggestion),
6900
- children: `${suggestion.Text} ${suggestion.Description}`
6901
- }, index))
6902
- })]
6967
+ return jsxs("div", {
6968
+ children: [jsx(GoAFormItem, {
6969
+ label: label,
6970
+ children: jsxs(SearchBox, {
6971
+ children: [jsx(GoAInput, {
6972
+ leadingIcon: "search",
6973
+ name: "address-form-address1",
6974
+ testId: "address-form-address1",
6975
+ ariaLabel: 'address-form-address1',
6976
+ placeholder: "Start typing the first line of your address",
6977
+ value: (address === null || address === void 0 ? void 0 : address.addressLine1) || '',
6978
+ onChange: (name, value) => handleDropdownChange(value),
6979
+ width: "100%"
6980
+ }), loading && jsx(GoASkeleton, {
6981
+ type: "text",
6982
+ "data-testId": "loading"
6983
+ }, 1), suggestions && jsx("ul", {
6984
+ className: "suggestions",
6985
+ tabIndex: 0,
6986
+ children: suggestions && autocompletion && open && suggestions.map((suggestion, index) => jsx("li", {
6987
+ onClick: () => handleSuggestionClick(suggestion),
6988
+ children: `${suggestion.Text} ${suggestion.Description}`
6989
+ }, index))
6990
+ })]
6991
+ })
6903
6992
  }), jsx("br", {}), jsx(AddressInputs, {
6904
6993
  address: address,
6905
6994
  handleInputChange: handleInputChange,
@@ -7593,9 +7682,9 @@ var aConstructor$1 = function (argument) {
7593
7682
  throw new $TypeError$4(tryToString$2(argument) + ' is not a constructor');
7594
7683
  };
7595
7684
 
7596
- var anObject$4 = anObject$e;
7685
+ var anObject$4 = anObject$f;
7597
7686
  var aConstructor = aConstructor$1;
7598
- var isNullOrUndefined$1 = isNullOrUndefined$5;
7687
+ var isNullOrUndefined$1 = isNullOrUndefined$6;
7599
7688
  var wellKnownSymbol$4 = wellKnownSymbol$j;
7600
7689
 
7601
7690
  var SPECIES$1 = wellKnownSymbol$4('species');
@@ -8282,8 +8371,8 @@ var isArrayIteratorMethod$1 = function (it) {
8282
8371
  };
8283
8372
 
8284
8373
  var classof = classof$9;
8285
- var getMethod$1 = getMethod$4;
8286
- var isNullOrUndefined = isNullOrUndefined$5;
8374
+ var getMethod$1 = getMethod$5;
8375
+ var isNullOrUndefined = isNullOrUndefined$6;
8287
8376
  var Iterators = iterators;
8288
8377
  var wellKnownSymbol$1 = wellKnownSymbol$j;
8289
8378
 
@@ -8297,7 +8386,7 @@ var getIteratorMethod$2 = function (it) {
8297
8386
 
8298
8387
  var call$4 = functionCall;
8299
8388
  var aCallable$2 = aCallable$9;
8300
- var anObject$3 = anObject$e;
8389
+ var anObject$3 = anObject$f;
8301
8390
  var tryToString$1 = tryToString$4;
8302
8391
  var getIteratorMethod$1 = getIteratorMethod$2;
8303
8392
 
@@ -8310,8 +8399,8 @@ var getIterator$1 = function (argument, usingIterator) {
8310
8399
  };
8311
8400
 
8312
8401
  var call$3 = functionCall;
8313
- var anObject$2 = anObject$e;
8314
- var getMethod = getMethod$4;
8402
+ var anObject$2 = anObject$f;
8403
+ var getMethod = getMethod$5;
8315
8404
 
8316
8405
  var iteratorClose$1 = function (iterator, kind, value) {
8317
8406
  var innerResult, innerError;
@@ -8335,7 +8424,7 @@ var iteratorClose$1 = function (iterator, kind, value) {
8335
8424
 
8336
8425
  var bind = functionBindContext;
8337
8426
  var call$2 = functionCall;
8338
- var anObject$1 = anObject$e;
8427
+ var anObject$1 = anObject$f;
8339
8428
  var tryToString = tryToString$4;
8340
8429
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
8341
8430
  var lengthOfArrayLike = lengthOfArrayLike$5;
@@ -8556,7 +8645,7 @@ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
8556
8645
  }
8557
8646
  });
8558
8647
 
8559
- var anObject = anObject$e;
8648
+ var anObject = anObject$f;
8560
8649
  var isObject = isObject$d;
8561
8650
  var newPromiseCapability = newPromiseCapability$2;
8562
8651
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.34.0",
3
+ "version": "1.34.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",
@@ -1 +1 @@
1
- export declare const AddressSearch: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const SearchBox: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,4 @@
1
- import { ControlProps } from '@jsonforms/core';
1
+ import { ControlProps, JsonSchema } from '@jsonforms/core';
2
2
  /**
3
3
  * Sets the first word to be capitalized so that it is sentence cased.
4
4
  * @param words
@@ -19,6 +19,8 @@ export declare const controlScopeMatchesLabel: (scope: string, label: string) =>
19
19
  * @returns
20
20
  */
21
21
  export declare const getLabelText: (scope: string, label: string) => string;
22
+ export declare const isEmptyBoolean: (schema: JsonSchema, data: unknown) => boolean;
23
+ export declare const isEmptyNumber: (schema: JsonSchema, data: unknown) => boolean;
22
24
  export declare const validateSinWithLuhn: (input: number) => boolean;
23
25
  /**
24
26
  * Check if a required, defined input value is valid. Returns an appropriate