@thecb/components 8.4.8 → 8.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -380,9 +380,9 @@ declare const Card: React.FC<Expand<CardProps> &
380
380
  React.HTMLAttributes<HTMLElement>>;
381
381
 
382
382
  interface Field {
383
- hasErrors?: boolean;
384
- dirty?: boolean;
385
- rawValue?: string;
383
+ hasErrors: boolean;
384
+ dirty: boolean;
385
+ rawValue: string;
386
386
  }
387
387
 
388
388
  interface ReduxAction<T = string, P = {}> {
package/dist/index.esm.js CHANGED
@@ -19008,12 +19008,14 @@ function _extends$1() {
19008
19008
  _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
19009
19009
  for (var i = 1; i < arguments.length; i++) {
19010
19010
  var source = arguments[i];
19011
+
19011
19012
  for (var key in source) {
19012
19013
  if (Object.prototype.hasOwnProperty.call(source, key)) {
19013
19014
  target[key] = source[key];
19014
19015
  }
19015
19016
  }
19016
19017
  }
19018
+
19017
19019
  return target;
19018
19020
  };
19019
19021
  return _extends$1.apply(this, arguments);
@@ -19023,6 +19025,7 @@ function _assertThisInitialized(self) {
19023
19025
  if (self === void 0) {
19024
19026
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19025
19027
  }
19028
+
19026
19029
  return self;
19027
19030
  }
19028
19031
 
@@ -19055,6 +19058,7 @@ function _isNativeReflectConstruct() {
19055
19058
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
19056
19059
  if (Reflect.construct.sham) return false;
19057
19060
  if (typeof Proxy === "function") return true;
19061
+
19058
19062
  try {
19059
19063
  Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
19060
19064
  return true;
@@ -19076,23 +19080,30 @@ function _construct(Parent, args, Class) {
19076
19080
  return instance;
19077
19081
  };
19078
19082
  }
19083
+
19079
19084
  return _construct.apply(null, arguments);
19080
19085
  }
19081
19086
 
19082
19087
  function _wrapNativeSuper(Class) {
19083
19088
  var _cache = typeof Map === "function" ? new Map() : undefined;
19089
+
19084
19090
  _wrapNativeSuper = function _wrapNativeSuper(Class) {
19085
19091
  if (Class === null || !_isNativeFunction(Class)) return Class;
19092
+
19086
19093
  if (typeof Class !== "function") {
19087
19094
  throw new TypeError("Super expression must either be null or a function");
19088
19095
  }
19096
+
19089
19097
  if (typeof _cache !== "undefined") {
19090
19098
  if (_cache.has(Class)) return _cache.get(Class);
19099
+
19091
19100
  _cache.set(Class, Wrapper);
19092
19101
  }
19102
+
19093
19103
  function Wrapper() {
19094
19104
  return _construct(Class, arguments, _getPrototypeOf(this).constructor);
19095
19105
  }
19106
+
19096
19107
  Wrapper.prototype = Object.create(Class.prototype, {
19097
19108
  constructor: {
19098
19109
  value: Wrapper,
@@ -19103,6 +19114,7 @@ function _wrapNativeSuper(Class) {
19103
19114
  });
19104
19115
  return _setPrototypeOf(Wrapper, Class);
19105
19116
  };
19117
+
19106
19118
  return _wrapNativeSuper(Class);
19107
19119
  }
19108
19120
 
@@ -22385,7 +22397,7 @@ var check = function (it) {
22385
22397
 
22386
22398
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22387
22399
  var global_1 =
22388
- // eslint-disable-next-line es/no-global-this -- safe
22400
+ // eslint-disable-next-line es-x/no-global-this -- safe
22389
22401
  check(typeof globalThis == 'object' && globalThis) ||
22390
22402
  check(typeof window == 'object' && window) ||
22391
22403
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -22404,12 +22416,12 @@ var fails = function (exec) {
22404
22416
 
22405
22417
  // Detect IE8's incomplete defineProperty implementation
22406
22418
  var descriptors = !fails(function () {
22407
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22419
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22408
22420
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
22409
22421
  });
22410
22422
 
22411
22423
  var functionBindNative = !fails(function () {
22412
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
22424
+ // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
22413
22425
  var test = (function () { /* empty */ }).bind();
22414
22426
  // eslint-disable-next-line no-prototype-builtins -- safe
22415
22427
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -22422,7 +22434,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
22422
22434
  };
22423
22435
 
22424
22436
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
22425
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22437
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22426
22438
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22427
22439
 
22428
22440
  // Nashorn ~ JDK8 bug
@@ -22449,11 +22461,14 @@ var createPropertyDescriptor = function (bitmap, value) {
22449
22461
  };
22450
22462
 
22451
22463
  var FunctionPrototype = Function.prototype;
22464
+ var bind$1 = FunctionPrototype.bind;
22452
22465
  var call$1 = FunctionPrototype.call;
22453
- var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
22466
+ var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
22454
22467
 
22455
- var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
22456
- return function () {
22468
+ var functionUncurryThis = functionBindNative ? function (fn) {
22469
+ return fn && uncurryThis(fn);
22470
+ } : function (fn) {
22471
+ return fn && function () {
22457
22472
  return call$1.apply(fn, arguments);
22458
22473
  };
22459
22474
  };
@@ -22477,18 +22492,12 @@ var indexedObject = fails(function () {
22477
22492
  return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
22478
22493
  } : $Object;
22479
22494
 
22480
- // we can't use just `it == null` since of `document.all` special case
22481
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
22482
- var isNullOrUndefined = function (it) {
22483
- return it === null || it === undefined;
22484
- };
22485
-
22486
22495
  var $TypeError = TypeError;
22487
22496
 
22488
22497
  // `RequireObjectCoercible` abstract operation
22489
22498
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
22490
22499
  var requireObjectCoercible = function (it) {
22491
- if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
22500
+ if (it == undefined) throw $TypeError("Can't call method on " + it);
22492
22501
  return it;
22493
22502
  };
22494
22503
 
@@ -22500,32 +22509,13 @@ var toIndexedObject = function (it) {
22500
22509
  return indexedObject(requireObjectCoercible(it));
22501
22510
  };
22502
22511
 
22503
- var documentAll = typeof document == 'object' && document.all;
22504
-
22505
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22506
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22507
- var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22508
-
22509
- var documentAll_1 = {
22510
- all: documentAll,
22511
- IS_HTMLDDA: IS_HTMLDDA
22512
- };
22513
-
22514
- var documentAll$1 = documentAll_1.all;
22515
-
22516
22512
  // `IsCallable` abstract operation
22517
22513
  // https://tc39.es/ecma262/#sec-iscallable
22518
- var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22519
- return typeof argument == 'function' || argument === documentAll$1;
22520
- } : function (argument) {
22514
+ var isCallable = function (argument) {
22521
22515
  return typeof argument == 'function';
22522
22516
  };
22523
22517
 
22524
- var documentAll$2 = documentAll_1.all;
22525
-
22526
- var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22527
- return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22528
- } : function (it) {
22518
+ var isObject = function (it) {
22529
22519
  return typeof it == 'object' ? it !== null : isCallable(it);
22530
22520
  };
22531
22521
 
@@ -22539,7 +22529,7 @@ var getBuiltIn = function (namespace, method) {
22539
22529
 
22540
22530
  var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
22541
22531
 
22542
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
22532
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
22543
22533
 
22544
22534
  var process$1 = global_1.process;
22545
22535
  var Deno = global_1.Deno;
@@ -22566,12 +22556,12 @@ if (!version && engineUserAgent) {
22566
22556
 
22567
22557
  var engineV8Version = version;
22568
22558
 
22569
- /* eslint-disable es/no-symbol -- required for testing */
22559
+ /* eslint-disable es-x/no-symbol -- required for testing */
22570
22560
 
22571
22561
 
22572
22562
 
22573
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
22574
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
22563
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
22564
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
22575
22565
  var symbol = Symbol();
22576
22566
  // Chrome 38 Symbol has incorrect toString conversion
22577
22567
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -22580,10 +22570,10 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(functi
22580
22570
  !Symbol.sham && engineV8Version && engineV8Version < 41;
22581
22571
  });
22582
22572
 
22583
- /* eslint-disable es/no-symbol -- required for testing */
22573
+ /* eslint-disable es-x/no-symbol -- required for testing */
22584
22574
 
22585
22575
 
22586
- var useSymbolAsUid = symbolConstructorDetection
22576
+ var useSymbolAsUid = nativeSymbol
22587
22577
  && !Symbol.sham
22588
22578
  && typeof Symbol.iterator == 'symbol';
22589
22579
 
@@ -22618,7 +22608,7 @@ var aCallable = function (argument) {
22618
22608
  // https://tc39.es/ecma262/#sec-getmethod
22619
22609
  var getMethod = function (V, P) {
22620
22610
  var func = V[P];
22621
- return isNullOrUndefined(func) ? undefined : aCallable(func);
22611
+ return func == null ? undefined : aCallable(func);
22622
22612
  };
22623
22613
 
22624
22614
  var $TypeError$2 = TypeError;
@@ -22633,7 +22623,7 @@ var ordinaryToPrimitive = function (input, pref) {
22633
22623
  throw $TypeError$2("Can't convert object to primitive value");
22634
22624
  };
22635
22625
 
22636
- // eslint-disable-next-line es/no-object-defineproperty -- safe
22626
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22637
22627
  var defineProperty = Object.defineProperty;
22638
22628
 
22639
22629
  var defineGlobalProperty = function (key, value) {
@@ -22653,10 +22643,10 @@ var shared = createCommonjsModule(function (module) {
22653
22643
  (module.exports = function (key, value) {
22654
22644
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
22655
22645
  })('versions', []).push({
22656
- version: '3.29.0',
22646
+ version: '3.24.1',
22657
22647
  mode: 'global',
22658
- copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22659
- license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
22648
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
22649
+ license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
22660
22650
  source: 'https://github.com/zloirock/core-js'
22661
22651
  });
22662
22652
  });
@@ -22673,7 +22663,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
22673
22663
 
22674
22664
  // `HasOwnProperty` abstract operation
22675
22665
  // https://tc39.es/ecma262/#sec-hasownproperty
22676
- // eslint-disable-next-line es/no-object-hasown -- safe
22666
+ // eslint-disable-next-line es-x/no-object-hasown -- safe
22677
22667
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
22678
22668
  return hasOwnProperty(toObject(it), key);
22679
22669
  };
@@ -22686,15 +22676,21 @@ var uid = function (key) {
22686
22676
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
22687
22677
  };
22688
22678
 
22689
- var Symbol$1 = global_1.Symbol;
22690
22679
  var WellKnownSymbolsStore = shared('wks');
22691
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22680
+ var Symbol$1 = global_1.Symbol;
22681
+ var symbolFor = Symbol$1 && Symbol$1['for'];
22682
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22692
22683
 
22693
22684
  var wellKnownSymbol = function (name) {
22694
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
22695
- WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
22696
- ? Symbol$1[name]
22697
- : createWellKnownSymbol('Symbol.' + name);
22685
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
22686
+ var description = 'Symbol.' + name;
22687
+ if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
22688
+ WellKnownSymbolsStore[name] = Symbol$1[name];
22689
+ } else if (useSymbolAsUid && symbolFor) {
22690
+ WellKnownSymbolsStore[name] = symbolFor(description);
22691
+ } else {
22692
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
22693
+ }
22698
22694
  } return WellKnownSymbolsStore[name];
22699
22695
  };
22700
22696
 
@@ -22734,13 +22730,13 @@ var documentCreateElement = function (it) {
22734
22730
 
22735
22731
  // Thanks to IE8 for its funny defineProperty
22736
22732
  var ie8DomDefine = !descriptors && !fails(function () {
22737
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22733
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22738
22734
  return Object.defineProperty(documentCreateElement('div'), 'a', {
22739
22735
  get: function () { return 7; }
22740
22736
  }).a != 7;
22741
22737
  });
22742
22738
 
22743
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22739
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22744
22740
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22745
22741
 
22746
22742
  // `Object.getOwnPropertyDescriptor` method
@@ -22761,7 +22757,7 @@ var objectGetOwnPropertyDescriptor = {
22761
22757
  // V8 ~ Chrome 36-
22762
22758
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
22763
22759
  var v8PrototypeDefineBug = descriptors && fails(function () {
22764
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22760
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22765
22761
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
22766
22762
  value: 42,
22767
22763
  writable: false
@@ -22778,9 +22774,9 @@ var anObject = function (argument) {
22778
22774
  };
22779
22775
 
22780
22776
  var $TypeError$5 = TypeError;
22781
- // eslint-disable-next-line es/no-object-defineproperty -- safe
22777
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22782
22778
  var $defineProperty = Object.defineProperty;
22783
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22779
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22784
22780
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
22785
22781
  var ENUMERABLE = 'enumerable';
22786
22782
  var CONFIGURABLE = 'configurable';
@@ -22827,7 +22823,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
22827
22823
  };
22828
22824
 
22829
22825
  var FunctionPrototype$1 = Function.prototype;
22830
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22826
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22831
22827
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
22832
22828
 
22833
22829
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -22854,7 +22850,7 @@ var inspectSource = sharedStore.inspectSource;
22854
22850
 
22855
22851
  var WeakMap$1 = global_1.WeakMap;
22856
22852
 
22857
- var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
22853
+ var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
22858
22854
 
22859
22855
  var keys$1 = shared('keys');
22860
22856
 
@@ -22882,30 +22878,28 @@ var getterFor = function (TYPE) {
22882
22878
  };
22883
22879
  };
22884
22880
 
22885
- if (weakMapBasicDetection || sharedStore.state) {
22881
+ if (nativeWeakMap || sharedStore.state) {
22886
22882
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
22887
- /* eslint-disable no-self-assign -- prototype methods protection */
22888
- store$1.get = store$1.get;
22889
- store$1.has = store$1.has;
22890
- store$1.set = store$1.set;
22891
- /* eslint-enable no-self-assign -- prototype methods protection */
22883
+ var wmget = functionUncurryThis(store$1.get);
22884
+ var wmhas = functionUncurryThis(store$1.has);
22885
+ var wmset = functionUncurryThis(store$1.set);
22892
22886
  set = function (it, metadata) {
22893
- if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
22887
+ if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22894
22888
  metadata.facade = it;
22895
- store$1.set(it, metadata);
22889
+ wmset(store$1, it, metadata);
22896
22890
  return metadata;
22897
22891
  };
22898
22892
  get = function (it) {
22899
- return store$1.get(it) || {};
22893
+ return wmget(store$1, it) || {};
22900
22894
  };
22901
22895
  has = function (it) {
22902
- return store$1.has(it);
22896
+ return wmhas(store$1, it);
22903
22897
  };
22904
22898
  } else {
22905
22899
  var STATE = sharedKey('state');
22906
22900
  hiddenKeys[STATE] = true;
22907
22901
  set = function (it, metadata) {
22908
- if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
22902
+ if (hasOwnProperty_1(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22909
22903
  metadata.facade = it;
22910
22904
  createNonEnumerableProperty(it, STATE, metadata);
22911
22905
  return metadata;
@@ -22933,12 +22927,8 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
22933
22927
 
22934
22928
  var enforceInternalState = internalState.enforce;
22935
22929
  var getInternalState = internalState.get;
22936
- var $String = String;
22937
- // eslint-disable-next-line es/no-object-defineproperty -- safe
22930
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22938
22931
  var defineProperty = Object.defineProperty;
22939
- var stringSlice = functionUncurryThis(''.slice);
22940
- var replace = functionUncurryThis(''.replace);
22941
- var join = functionUncurryThis([].join);
22942
22932
 
22943
22933
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22944
22934
  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -22947,8 +22937,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22947
22937
  var TEMPLATE = String(String).split('String');
22948
22938
 
22949
22939
  var makeBuiltIn = module.exports = function (value, name, options) {
22950
- if (stringSlice($String(name), 0, 7) === 'Symbol(') {
22951
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
22940
+ if (String(name).slice(0, 7) === 'Symbol(') {
22941
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
22952
22942
  }
22953
22943
  if (options && options.getter) name = 'get ' + name;
22954
22944
  if (options && options.setter) name = 'set ' + name;
@@ -22967,7 +22957,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
22967
22957
  } catch (error) { /* empty */ }
22968
22958
  var state = enforceInternalState(value);
22969
22959
  if (!hasOwnProperty_1(state, 'source')) {
22970
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
22960
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
22971
22961
  } return value;
22972
22962
  };
22973
22963
 
@@ -23006,7 +22996,7 @@ var floor = Math.floor;
23006
22996
 
23007
22997
  // `Math.trunc` method
23008
22998
  // https://tc39.es/ecma262/#sec-math.trunc
23009
- // eslint-disable-next-line es/no-math-trunc -- safe
22999
+ // eslint-disable-next-line es-x/no-math-trunc -- safe
23010
23000
  var mathTrunc = Math.trunc || function trunc(x) {
23011
23001
  var n = +x;
23012
23002
  return (n > 0 ? floor : ceil)(n);
@@ -23107,7 +23097,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
23107
23097
 
23108
23098
  // `Object.getOwnPropertyNames` method
23109
23099
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
23110
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
23100
+ // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
23111
23101
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
23112
23102
  return objectKeysInternal(O, hiddenKeys$1);
23113
23103
  };
@@ -23116,7 +23106,7 @@ var objectGetOwnPropertyNames = {
23116
23106
  f: f$3
23117
23107
  };
23118
23108
 
23119
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
23109
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
23120
23110
  var f$4 = Object.getOwnPropertySymbols;
23121
23111
 
23122
23112
  var objectGetOwnPropertySymbols = {
@@ -23260,7 +23250,7 @@ var toString_1 = function (argument) {
23260
23250
  var charAt = functionUncurryThis(''.charAt);
23261
23251
 
23262
23252
  var FORCED = fails(function () {
23263
- // eslint-disable-next-line es/no-array-string-prototype-at -- safe
23253
+ // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
23264
23254
  return '𠮷'.at(-2) !== '\uD842';
23265
23255
  });
23266
23256
 
@@ -23278,14 +23268,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
23278
23268
 
23279
23269
  // `Object.keys` method
23280
23270
  // https://tc39.es/ecma262/#sec-object.keys
23281
- // eslint-disable-next-line es/no-object-keys -- safe
23271
+ // eslint-disable-next-line es-x/no-object-keys -- safe
23282
23272
  var objectKeys = Object.keys || function keys(O) {
23283
23273
  return objectKeysInternal(O, enumBugKeys);
23284
23274
  };
23285
23275
 
23286
23276
  // `Object.defineProperties` method
23287
23277
  // https://tc39.es/ecma262/#sec-object.defineproperties
23288
- // eslint-disable-next-line es/no-object-defineproperties -- safe
23278
+ // eslint-disable-next-line es-x/no-object-defineproperties -- safe
23289
23279
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
23290
23280
  anObject(O);
23291
23281
  var props = toIndexedObject(Properties);
@@ -23374,7 +23364,7 @@ hiddenKeys[IE_PROTO] = true;
23374
23364
 
23375
23365
  // `Object.create` method
23376
23366
  // https://tc39.es/ecma262/#sec-object.create
23377
- // eslint-disable-next-line es/no-object-create -- safe
23367
+ // eslint-disable-next-line es-x/no-object-create -- safe
23378
23368
  var objectCreate = Object.create || function create(O, Properties) {
23379
23369
  var result;
23380
23370
  if (O !== null) {
@@ -23420,19 +23410,13 @@ _export({ target: 'Array', proto: true }, {
23420
23410
 
23421
23411
  addToUnscopables('at');
23422
23412
 
23423
- // eslint-disable-next-line es/no-typed-arrays -- safe
23424
- var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23425
-
23426
- var defineBuiltInAccessor = function (target, name, descriptor) {
23427
- if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
23428
- if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
23429
- return objectDefineProperty.f(target, name, descriptor);
23430
- };
23413
+ // eslint-disable-next-line es-x/no-typed-arrays -- safe
23414
+ var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23431
23415
 
23432
23416
  var correctPrototypeGetter = !fails(function () {
23433
23417
  function F() { /* empty */ }
23434
23418
  F.prototype.constructor = null;
23435
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
23419
+ // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
23436
23420
  return Object.getPrototypeOf(new F()) !== F.prototype;
23437
23421
  });
23438
23422
 
@@ -23442,7 +23426,7 @@ var ObjectPrototype = $Object$4.prototype;
23442
23426
 
23443
23427
  // `Object.getPrototypeOf` method
23444
23428
  // https://tc39.es/ecma262/#sec-object.getprototypeof
23445
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
23429
+ // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
23446
23430
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
23447
23431
  var object = toObject(O);
23448
23432
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -23452,13 +23436,6 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
23452
23436
  } return object instanceof $Object$4 ? ObjectPrototype : null;
23453
23437
  };
23454
23438
 
23455
- var functionUncurryThisAccessor = function (object, key, method) {
23456
- try {
23457
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
23458
- return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
23459
- } catch (error) { /* empty */ }
23460
- };
23461
-
23462
23439
  var $String$3 = String;
23463
23440
  var $TypeError$6 = TypeError;
23464
23441
 
@@ -23475,13 +23452,14 @@ var aPossiblePrototype = function (argument) {
23475
23452
  // `Object.setPrototypeOf` method
23476
23453
  // https://tc39.es/ecma262/#sec-object.setprototypeof
23477
23454
  // Works with __proto__ only. Old v8 can't work with null proto objects.
23478
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
23455
+ // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
23479
23456
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
23480
23457
  var CORRECT_SETTER = false;
23481
23458
  var test = {};
23482
23459
  var setter;
23483
23460
  try {
23484
- setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
23461
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
23462
+ setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
23485
23463
  setter(test, []);
23486
23464
  CORRECT_SETTER = test instanceof Array;
23487
23465
  } catch (error) { /* empty */ }
@@ -23494,6 +23472,14 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
23494
23472
  };
23495
23473
  }() : undefined);
23496
23474
 
23475
+ var defineProperty$2 = objectDefineProperty.f;
23476
+
23477
+
23478
+
23479
+
23480
+
23481
+
23482
+
23497
23483
  var enforceInternalState = internalState.enforce;
23498
23484
  var getInternalState = internalState.get;
23499
23485
  var Int8Array = global_1.Int8Array;
@@ -23509,7 +23495,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
23509
23495
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
23510
23496
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
23511
23497
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
23512
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23498
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23513
23499
  var TYPED_ARRAY_TAG_REQUIRED = false;
23514
23500
  var NAME, Constructor, Prototype;
23515
23501
 
@@ -23644,12 +23630,9 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
23644
23630
 
23645
23631
  if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
23646
23632
  TYPED_ARRAY_TAG_REQUIRED = true;
23647
- defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
23648
- configurable: true,
23649
- get: function () {
23650
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23651
- }
23652
- });
23633
+ defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
23634
+ return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23635
+ } });
23653
23636
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
23654
23637
  createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
23655
23638
  }
@@ -27120,7 +27103,24 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27120
27103
  themeValues = _ref5.themeValues,
27121
27104
  index = _ref5.index,
27122
27105
  _ref5$handleChange = _ref5.handleChange,
27123
- handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange;
27106
+ handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange,
27107
+ field = _ref5.field,
27108
+ config = _ref5.config;
27109
+
27110
+ var getDefaultChecked = function getDefaultChecked(value, idx) {
27111
+ var selectionExistsInConfig = config.map(function (c) {
27112
+ return c.value;
27113
+ }).includes(field.rawValue);
27114
+
27115
+ if (selectionExistsInConfig) {
27116
+ // if exists, selection comes from the redux-freeform state
27117
+ return field.rawValue === value;
27118
+ } // fallback to first option as default selection
27119
+
27120
+
27121
+ return idx === 0;
27122
+ };
27123
+
27124
27124
  return /*#__PURE__*/React.createElement(InputAndLabelContainer, {
27125
27125
  align: "center",
27126
27126
  childGap: "0.5rem",
@@ -27138,7 +27138,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27138
27138
  setValue(e.target.value);
27139
27139
  handleChange(e);
27140
27140
  },
27141
- defaultChecked: index === 0
27141
+ defaultChecked: getDefaultChecked(value, index)
27142
27142
  }), /*#__PURE__*/React.createElement(Text$1, {
27143
27143
  as: "label",
27144
27144
  htmlFor: id,
@@ -49406,6 +49406,8 @@ var RadioGroup = function RadioGroup(_ref) {
49406
49406
  groupName: groupName,
49407
49407
  setValue: setValue,
49408
49408
  handleChange: handleChange,
49409
+ field: field,
49410
+ config: config,
49409
49411
  "aria-invalid": field.dirty && field.hasErrors
49410
49412
  }));
49411
49413
  })));