@thecb/components 8.4.12-beta.2 → 8.4.13-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -19008,14 +19008,12 @@ 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
-
19012
19011
  for (var key in source) {
19013
19012
  if (Object.prototype.hasOwnProperty.call(source, key)) {
19014
19013
  target[key] = source[key];
19015
19014
  }
19016
19015
  }
19017
19016
  }
19018
-
19019
19017
  return target;
19020
19018
  };
19021
19019
  return _extends$1.apply(this, arguments);
@@ -19025,7 +19023,6 @@ function _assertThisInitialized(self) {
19025
19023
  if (self === void 0) {
19026
19024
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19027
19025
  }
19028
-
19029
19026
  return self;
19030
19027
  }
19031
19028
 
@@ -19058,7 +19055,6 @@ function _isNativeReflectConstruct() {
19058
19055
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
19059
19056
  if (Reflect.construct.sham) return false;
19060
19057
  if (typeof Proxy === "function") return true;
19061
-
19062
19058
  try {
19063
19059
  Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
19064
19060
  return true;
@@ -19080,30 +19076,23 @@ function _construct(Parent, args, Class) {
19080
19076
  return instance;
19081
19077
  };
19082
19078
  }
19083
-
19084
19079
  return _construct.apply(null, arguments);
19085
19080
  }
19086
19081
 
19087
19082
  function _wrapNativeSuper(Class) {
19088
19083
  var _cache = typeof Map === "function" ? new Map() : undefined;
19089
-
19090
19084
  _wrapNativeSuper = function _wrapNativeSuper(Class) {
19091
19085
  if (Class === null || !_isNativeFunction(Class)) return Class;
19092
-
19093
19086
  if (typeof Class !== "function") {
19094
19087
  throw new TypeError("Super expression must either be null or a function");
19095
19088
  }
19096
-
19097
19089
  if (typeof _cache !== "undefined") {
19098
19090
  if (_cache.has(Class)) return _cache.get(Class);
19099
-
19100
19091
  _cache.set(Class, Wrapper);
19101
19092
  }
19102
-
19103
19093
  function Wrapper() {
19104
19094
  return _construct(Class, arguments, _getPrototypeOf(this).constructor);
19105
19095
  }
19106
-
19107
19096
  Wrapper.prototype = Object.create(Class.prototype, {
19108
19097
  constructor: {
19109
19098
  value: Wrapper,
@@ -19114,7 +19103,6 @@ function _wrapNativeSuper(Class) {
19114
19103
  });
19115
19104
  return _setPrototypeOf(Wrapper, Class);
19116
19105
  };
19117
-
19118
19106
  return _wrapNativeSuper(Class);
19119
19107
  }
19120
19108
 
@@ -22397,7 +22385,7 @@ var check = function (it) {
22397
22385
 
22398
22386
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22399
22387
  var global_1 =
22400
- // eslint-disable-next-line es-x/no-global-this -- safe
22388
+ // eslint-disable-next-line es/no-global-this -- safe
22401
22389
  check(typeof globalThis == 'object' && globalThis) ||
22402
22390
  check(typeof window == 'object' && window) ||
22403
22391
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -22416,12 +22404,12 @@ var fails = function (exec) {
22416
22404
 
22417
22405
  // Detect IE8's incomplete defineProperty implementation
22418
22406
  var descriptors = !fails(function () {
22419
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22407
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22420
22408
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
22421
22409
  });
22422
22410
 
22423
22411
  var functionBindNative = !fails(function () {
22424
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
22412
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22425
22413
  var test = (function () { /* empty */ }).bind();
22426
22414
  // eslint-disable-next-line no-prototype-builtins -- safe
22427
22415
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -22434,7 +22422,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
22434
22422
  };
22435
22423
 
22436
22424
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
22437
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22425
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22438
22426
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22439
22427
 
22440
22428
  // Nashorn ~ JDK8 bug
@@ -22461,14 +22449,11 @@ var createPropertyDescriptor = function (bitmap, value) {
22461
22449
  };
22462
22450
 
22463
22451
  var FunctionPrototype = Function.prototype;
22464
- var bind$1 = FunctionPrototype.bind;
22465
22452
  var call$1 = FunctionPrototype.call;
22466
- var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
22453
+ var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
22467
22454
 
22468
- var functionUncurryThis = functionBindNative ? function (fn) {
22469
- return fn && uncurryThis(fn);
22470
- } : function (fn) {
22471
- return fn && function () {
22455
+ var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
22456
+ return function () {
22472
22457
  return call$1.apply(fn, arguments);
22473
22458
  };
22474
22459
  };
@@ -22492,12 +22477,18 @@ var indexedObject = fails(function () {
22492
22477
  return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
22493
22478
  } : $Object;
22494
22479
 
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
+
22495
22486
  var $TypeError = TypeError;
22496
22487
 
22497
22488
  // `RequireObjectCoercible` abstract operation
22498
22489
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
22499
22490
  var requireObjectCoercible = function (it) {
22500
- if (it == undefined) throw $TypeError("Can't call method on " + it);
22491
+ if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
22501
22492
  return it;
22502
22493
  };
22503
22494
 
@@ -22509,13 +22500,32 @@ var toIndexedObject = function (it) {
22509
22500
  return indexedObject(requireObjectCoercible(it));
22510
22501
  };
22511
22502
 
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
+
22512
22516
  // `IsCallable` abstract operation
22513
22517
  // https://tc39.es/ecma262/#sec-iscallable
22514
- var isCallable = function (argument) {
22518
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22519
+ return typeof argument == 'function' || argument === documentAll$1;
22520
+ } : function (argument) {
22515
22521
  return typeof argument == 'function';
22516
22522
  };
22517
22523
 
22518
- var isObject = function (it) {
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) {
22519
22529
  return typeof it == 'object' ? it !== null : isCallable(it);
22520
22530
  };
22521
22531
 
@@ -22529,7 +22539,7 @@ var getBuiltIn = function (namespace, method) {
22529
22539
 
22530
22540
  var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
22531
22541
 
22532
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
22542
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
22533
22543
 
22534
22544
  var process$1 = global_1.process;
22535
22545
  var Deno = global_1.Deno;
@@ -22556,12 +22566,12 @@ if (!version && engineUserAgent) {
22556
22566
 
22557
22567
  var engineV8Version = version;
22558
22568
 
22559
- /* eslint-disable es-x/no-symbol -- required for testing */
22569
+ /* eslint-disable es/no-symbol -- required for testing */
22560
22570
 
22561
22571
 
22562
22572
 
22563
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
22564
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
22573
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
22574
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
22565
22575
  var symbol = Symbol();
22566
22576
  // Chrome 38 Symbol has incorrect toString conversion
22567
22577
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -22570,10 +22580,10 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
22570
22580
  !Symbol.sham && engineV8Version && engineV8Version < 41;
22571
22581
  });
22572
22582
 
22573
- /* eslint-disable es-x/no-symbol -- required for testing */
22583
+ /* eslint-disable es/no-symbol -- required for testing */
22574
22584
 
22575
22585
 
22576
- var useSymbolAsUid = nativeSymbol
22586
+ var useSymbolAsUid = symbolConstructorDetection
22577
22587
  && !Symbol.sham
22578
22588
  && typeof Symbol.iterator == 'symbol';
22579
22589
 
@@ -22608,7 +22618,7 @@ var aCallable = function (argument) {
22608
22618
  // https://tc39.es/ecma262/#sec-getmethod
22609
22619
  var getMethod = function (V, P) {
22610
22620
  var func = V[P];
22611
- return func == null ? undefined : aCallable(func);
22621
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
22612
22622
  };
22613
22623
 
22614
22624
  var $TypeError$2 = TypeError;
@@ -22623,7 +22633,7 @@ var ordinaryToPrimitive = function (input, pref) {
22623
22633
  throw $TypeError$2("Can't convert object to primitive value");
22624
22634
  };
22625
22635
 
22626
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22636
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22627
22637
  var defineProperty = Object.defineProperty;
22628
22638
 
22629
22639
  var defineGlobalProperty = function (key, value) {
@@ -22643,10 +22653,10 @@ var shared = createCommonjsModule(function (module) {
22643
22653
  (module.exports = function (key, value) {
22644
22654
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
22645
22655
  })('versions', []).push({
22646
- version: '3.24.1',
22656
+ version: '3.29.0',
22647
22657
  mode: 'global',
22648
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
22649
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
22658
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22659
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
22650
22660
  source: 'https://github.com/zloirock/core-js'
22651
22661
  });
22652
22662
  });
@@ -22663,7 +22673,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
22663
22673
 
22664
22674
  // `HasOwnProperty` abstract operation
22665
22675
  // https://tc39.es/ecma262/#sec-hasownproperty
22666
- // eslint-disable-next-line es-x/no-object-hasown -- safe
22676
+ // eslint-disable-next-line es/no-object-hasown -- safe
22667
22677
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
22668
22678
  return hasOwnProperty(toObject(it), key);
22669
22679
  };
@@ -22676,21 +22686,15 @@ var uid = function (key) {
22676
22686
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
22677
22687
  };
22678
22688
 
22679
- var WellKnownSymbolsStore = shared('wks');
22680
22689
  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;
22690
+ var WellKnownSymbolsStore = shared('wks');
22691
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22683
22692
 
22684
22693
  var wellKnownSymbol = function (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
- }
22694
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
22695
+ WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
22696
+ ? Symbol$1[name]
22697
+ : createWellKnownSymbol('Symbol.' + name);
22694
22698
  } return WellKnownSymbolsStore[name];
22695
22699
  };
22696
22700
 
@@ -22730,13 +22734,13 @@ var documentCreateElement = function (it) {
22730
22734
 
22731
22735
  // Thanks to IE8 for its funny defineProperty
22732
22736
  var ie8DomDefine = !descriptors && !fails(function () {
22733
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22737
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22734
22738
  return Object.defineProperty(documentCreateElement('div'), 'a', {
22735
22739
  get: function () { return 7; }
22736
22740
  }).a != 7;
22737
22741
  });
22738
22742
 
22739
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22743
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22740
22744
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22741
22745
 
22742
22746
  // `Object.getOwnPropertyDescriptor` method
@@ -22757,7 +22761,7 @@ var objectGetOwnPropertyDescriptor = {
22757
22761
  // V8 ~ Chrome 36-
22758
22762
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
22759
22763
  var v8PrototypeDefineBug = descriptors && fails(function () {
22760
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22764
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22761
22765
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
22762
22766
  value: 42,
22763
22767
  writable: false
@@ -22774,9 +22778,9 @@ var anObject = function (argument) {
22774
22778
  };
22775
22779
 
22776
22780
  var $TypeError$5 = TypeError;
22777
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22781
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22778
22782
  var $defineProperty = Object.defineProperty;
22779
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22783
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22780
22784
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
22781
22785
  var ENUMERABLE = 'enumerable';
22782
22786
  var CONFIGURABLE = 'configurable';
@@ -22823,7 +22827,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
22823
22827
  };
22824
22828
 
22825
22829
  var FunctionPrototype$1 = Function.prototype;
22826
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22830
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22827
22831
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
22828
22832
 
22829
22833
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -22850,7 +22854,7 @@ var inspectSource = sharedStore.inspectSource;
22850
22854
 
22851
22855
  var WeakMap$1 = global_1.WeakMap;
22852
22856
 
22853
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
22857
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
22854
22858
 
22855
22859
  var keys$1 = shared('keys');
22856
22860
 
@@ -22878,28 +22882,30 @@ var getterFor = function (TYPE) {
22878
22882
  };
22879
22883
  };
22880
22884
 
22881
- if (nativeWeakMap || sharedStore.state) {
22885
+ if (weakMapBasicDetection || sharedStore.state) {
22882
22886
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
22883
- var wmget = functionUncurryThis(store$1.get);
22884
- var wmhas = functionUncurryThis(store$1.has);
22885
- var wmset = functionUncurryThis(store$1.set);
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 */
22886
22892
  set = function (it, metadata) {
22887
- if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22893
+ if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
22888
22894
  metadata.facade = it;
22889
- wmset(store$1, it, metadata);
22895
+ store$1.set(it, metadata);
22890
22896
  return metadata;
22891
22897
  };
22892
22898
  get = function (it) {
22893
- return wmget(store$1, it) || {};
22899
+ return store$1.get(it) || {};
22894
22900
  };
22895
22901
  has = function (it) {
22896
- return wmhas(store$1, it);
22902
+ return store$1.has(it);
22897
22903
  };
22898
22904
  } else {
22899
22905
  var STATE = sharedKey('state');
22900
22906
  hiddenKeys[STATE] = true;
22901
22907
  set = function (it, metadata) {
22902
- if (hasOwnProperty_1(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22908
+ if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
22903
22909
  metadata.facade = it;
22904
22910
  createNonEnumerableProperty(it, STATE, metadata);
22905
22911
  return metadata;
@@ -22927,8 +22933,12 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
22927
22933
 
22928
22934
  var enforceInternalState = internalState.enforce;
22929
22935
  var getInternalState = internalState.get;
22930
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22936
+ var $String = String;
22937
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22931
22938
  var defineProperty = Object.defineProperty;
22939
+ var stringSlice = functionUncurryThis(''.slice);
22940
+ var replace = functionUncurryThis(''.replace);
22941
+ var join = functionUncurryThis([].join);
22932
22942
 
22933
22943
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22934
22944
  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -22937,8 +22947,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22937
22947
  var TEMPLATE = String(String).split('String');
22938
22948
 
22939
22949
  var makeBuiltIn = module.exports = function (value, name, options) {
22940
- if (String(name).slice(0, 7) === 'Symbol(') {
22941
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
22950
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
22951
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
22942
22952
  }
22943
22953
  if (options && options.getter) name = 'get ' + name;
22944
22954
  if (options && options.setter) name = 'set ' + name;
@@ -22957,7 +22967,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
22957
22967
  } catch (error) { /* empty */ }
22958
22968
  var state = enforceInternalState(value);
22959
22969
  if (!hasOwnProperty_1(state, 'source')) {
22960
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
22970
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
22961
22971
  } return value;
22962
22972
  };
22963
22973
 
@@ -22996,7 +23006,7 @@ var floor = Math.floor;
22996
23006
 
22997
23007
  // `Math.trunc` method
22998
23008
  // https://tc39.es/ecma262/#sec-math.trunc
22999
- // eslint-disable-next-line es-x/no-math-trunc -- safe
23009
+ // eslint-disable-next-line es/no-math-trunc -- safe
23000
23010
  var mathTrunc = Math.trunc || function trunc(x) {
23001
23011
  var n = +x;
23002
23012
  return (n > 0 ? floor : ceil)(n);
@@ -23097,7 +23107,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
23097
23107
 
23098
23108
  // `Object.getOwnPropertyNames` method
23099
23109
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
23100
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
23110
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
23101
23111
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
23102
23112
  return objectKeysInternal(O, hiddenKeys$1);
23103
23113
  };
@@ -23106,7 +23116,7 @@ var objectGetOwnPropertyNames = {
23106
23116
  f: f$3
23107
23117
  };
23108
23118
 
23109
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
23119
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
23110
23120
  var f$4 = Object.getOwnPropertySymbols;
23111
23121
 
23112
23122
  var objectGetOwnPropertySymbols = {
@@ -23250,7 +23260,7 @@ var toString_1 = function (argument) {
23250
23260
  var charAt = functionUncurryThis(''.charAt);
23251
23261
 
23252
23262
  var FORCED = fails(function () {
23253
- // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
23263
+ // eslint-disable-next-line es/no-array-string-prototype-at -- safe
23254
23264
  return '𠮷'.at(-2) !== '\uD842';
23255
23265
  });
23256
23266
 
@@ -23268,14 +23278,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
23268
23278
 
23269
23279
  // `Object.keys` method
23270
23280
  // https://tc39.es/ecma262/#sec-object.keys
23271
- // eslint-disable-next-line es-x/no-object-keys -- safe
23281
+ // eslint-disable-next-line es/no-object-keys -- safe
23272
23282
  var objectKeys = Object.keys || function keys(O) {
23273
23283
  return objectKeysInternal(O, enumBugKeys);
23274
23284
  };
23275
23285
 
23276
23286
  // `Object.defineProperties` method
23277
23287
  // https://tc39.es/ecma262/#sec-object.defineproperties
23278
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
23288
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
23279
23289
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
23280
23290
  anObject(O);
23281
23291
  var props = toIndexedObject(Properties);
@@ -23364,7 +23374,7 @@ hiddenKeys[IE_PROTO] = true;
23364
23374
 
23365
23375
  // `Object.create` method
23366
23376
  // https://tc39.es/ecma262/#sec-object.create
23367
- // eslint-disable-next-line es-x/no-object-create -- safe
23377
+ // eslint-disable-next-line es/no-object-create -- safe
23368
23378
  var objectCreate = Object.create || function create(O, Properties) {
23369
23379
  var result;
23370
23380
  if (O !== null) {
@@ -23410,13 +23420,19 @@ _export({ target: 'Array', proto: true }, {
23410
23420
 
23411
23421
  addToUnscopables('at');
23412
23422
 
23413
- // eslint-disable-next-line es-x/no-typed-arrays -- safe
23414
- var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
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
+ };
23415
23431
 
23416
23432
  var correctPrototypeGetter = !fails(function () {
23417
23433
  function F() { /* empty */ }
23418
23434
  F.prototype.constructor = null;
23419
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
23435
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
23420
23436
  return Object.getPrototypeOf(new F()) !== F.prototype;
23421
23437
  });
23422
23438
 
@@ -23426,7 +23442,7 @@ var ObjectPrototype = $Object$4.prototype;
23426
23442
 
23427
23443
  // `Object.getPrototypeOf` method
23428
23444
  // https://tc39.es/ecma262/#sec-object.getprototypeof
23429
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
23445
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
23430
23446
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
23431
23447
  var object = toObject(O);
23432
23448
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -23436,6 +23452,13 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
23436
23452
  } return object instanceof $Object$4 ? ObjectPrototype : null;
23437
23453
  };
23438
23454
 
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
+
23439
23462
  var $String$3 = String;
23440
23463
  var $TypeError$6 = TypeError;
23441
23464
 
@@ -23452,14 +23475,13 @@ var aPossiblePrototype = function (argument) {
23452
23475
  // `Object.setPrototypeOf` method
23453
23476
  // https://tc39.es/ecma262/#sec-object.setprototypeof
23454
23477
  // Works with __proto__ only. Old v8 can't work with null proto objects.
23455
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
23478
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
23456
23479
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
23457
23480
  var CORRECT_SETTER = false;
23458
23481
  var test = {};
23459
23482
  var setter;
23460
23483
  try {
23461
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
23462
- setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
23484
+ setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
23463
23485
  setter(test, []);
23464
23486
  CORRECT_SETTER = test instanceof Array;
23465
23487
  } catch (error) { /* empty */ }
@@ -23472,14 +23494,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
23472
23494
  };
23473
23495
  }() : undefined);
23474
23496
 
23475
- var defineProperty$2 = objectDefineProperty.f;
23476
-
23477
-
23478
-
23479
-
23480
-
23481
-
23482
-
23483
23497
  var enforceInternalState = internalState.enforce;
23484
23498
  var getInternalState = internalState.get;
23485
23499
  var Int8Array = global_1.Int8Array;
@@ -23495,7 +23509,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
23495
23509
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
23496
23510
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
23497
23511
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
23498
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23512
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23499
23513
  var TYPED_ARRAY_TAG_REQUIRED = false;
23500
23514
  var NAME, Constructor, Prototype;
23501
23515
 
@@ -23630,9 +23644,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
23630
23644
 
23631
23645
  if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
23632
23646
  TYPED_ARRAY_TAG_REQUIRED = true;
23633
- defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
23634
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23635
- } });
23647
+ defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
23648
+ configurable: true,
23649
+ get: function () {
23650
+ return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23651
+ }
23652
+ });
23636
23653
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
23637
23654
  createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
23638
23655
  }
@@ -38554,52 +38571,44 @@ var TableHeading_styled = styled.th.withConfig({
38554
38571
  return extraStyles;
38555
38572
  });
38556
38573
 
38557
- const validatorToPredicate =
38558
- (validatorFn, emptyCase) =>
38559
- (value, ...rest) =>
38560
- value === '' ? emptyCase : validatorFn(value, ...rest);
38574
+ const validatorToPredicate = (validatorFn, emptyCase) => (
38575
+ value,
38576
+ ...rest
38577
+ ) => (value === "" ? emptyCase : validatorFn(value, ...rest));
38561
38578
 
38562
38579
  var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
38563
38580
 
38564
- function getDefaultExportFromCjs (x) {
38565
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
38566
- }
38567
-
38568
38581
  var dayjs_min = {exports: {}};
38569
38582
 
38570
38583
  (function (module, exports) {
38571
- !function(t,e){module.exports=e();}(commonjsGlobal$1,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
38572
- } (dayjs_min));
38584
+ !function(t,e){module.exports=e();}(commonjsGlobal$1,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
38585
+ }(dayjs_min));
38573
38586
 
38574
- var dayjs_minExports = dayjs_min.exports;
38575
- var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
38587
+ var dayjs = dayjs_min.exports;
38576
38588
 
38577
38589
  var customParseFormat$1 = {exports: {}};
38578
38590
 
38579
38591
  (function (module, exports) {
38580
- !function(e,t){module.exports=t();}(commonjsGlobal$1,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return (e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1);}],a:[i,function(e){this.afternoon=u(e,!0);}],S:[/\d/,function(e){this.milliseconds=100*+e;}],SS:[n,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],h=!0===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,e);};}}));
38581
- } (customParseFormat$1));
38592
+ !function(t,e){module.exports=e();}(commonjsGlobal$1,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^\s\d-_:/()]+/,o={},s=function(t){return (t=+t)+(t>68?1900:2e3)};var a=function(t){return function(e){this[t]=+e;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t);}],u=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},h=function(t,e){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},d={A:[i,function(t){this.afternoon=h(t,!1);}],a:[i,function(t){this.afternoon=h(t,!0);}],S:[/\d/,function(t){this.milliseconds=100*+t;}],SS:[n,function(t){this.milliseconds=10*+t;}],SSS:[/\d{3}/,function(t){this.milliseconds=+t;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(t){var e=u("months"),n=(u("monthsShort")||e.map((function(t){return t.substr(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(t){this.year=s(t);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var o=r&&r.toUpperCase();return n||i[r]||t[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),a=s.length,f=0;f<a;f+=1){var u=s[f],h=d[u],c=h&&h[0],l=h&&h[1];s[f]=l?{regex:c,parser:l}:u.replace(/^\[|\]$/g,"");}return function(t){for(var e={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,u=t.substr(r),h=o.exec(u)[0];f.call(e,h),t=t.replace(h,"");}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon;}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(s=t.parseTwoDigitYear);var r=e.prototype,i=r.parse;r.parse=function(t){var e=t.date,r=t.utc,s=t.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],u=!0===s[3],h=f||u,d=s[2];u&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var r=c(e)(t),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,u=r.seconds,h=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=u||0,g=h||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(t){return new Date("")}}(e,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),h&&e!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,t);};}}));
38593
+ }(customParseFormat$1));
38582
38594
 
38583
- var customParseFormatExports = customParseFormat$1.exports;
38584
- var customParseFormat = /*@__PURE__*/getDefaultExportFromCjs(customParseFormatExports);
38595
+ var customParseFormat = customParseFormat$1.exports;
38585
38596
 
38586
38597
  var isSameOrBefore$1 = {exports: {}};
38587
38598
 
38588
38599
  (function (module, exports) {
38589
- !function(e,i){module.exports=i();}(commonjsGlobal$1,(function(){return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)};}}));
38590
- } (isSameOrBefore$1));
38600
+ !function(e,i){module.exports=i();}(commonjsGlobal$1,(function(){return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)};}}));
38601
+ }(isSameOrBefore$1));
38591
38602
 
38592
- var isSameOrBeforeExports = isSameOrBefore$1.exports;
38593
- var isSameOrBefore = /*@__PURE__*/getDefaultExportFromCjs(isSameOrBeforeExports);
38603
+ var isSameOrBefore = isSameOrBefore$1.exports;
38594
38604
 
38595
38605
  var isSameOrAfter$1 = {exports: {}};
38596
38606
 
38597
38607
  (function (module, exports) {
38598
- !function(e,t){module.exports=t();}(commonjsGlobal$1,(function(){return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)};}}));
38599
- } (isSameOrAfter$1));
38608
+ !function(e,t){module.exports=t();}(commonjsGlobal$1,(function(){return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)};}}));
38609
+ }(isSameOrAfter$1));
38600
38610
 
38601
- var isSameOrAfterExports = isSameOrAfter$1.exports;
38602
- var isSameOrAfter = /*@__PURE__*/getDefaultExportFromCjs(isSameOrAfterExports);
38611
+ var isSameOrAfter = isSameOrAfter$1.exports;
38603
38612
 
38604
38613
  /* eslint-disable no-unused-vars */
38605
38614
 
@@ -38615,24 +38624,24 @@ dayjs.extend(isSameOrAfter);
38615
38624
 
38616
38625
  let validatorFns = {};
38617
38626
 
38618
- const INCLUDED_IN = 'validator/INCLUDED_IN';
38619
- const INCLUDED_IN_ERROR = 'error/INCLUDED_IN';
38627
+ const INCLUDED_IN = "validator/INCLUDED_IN";
38628
+ const INCLUDED_IN_ERROR = "error/INCLUDED_IN";
38620
38629
  const includedIn = createValidator(INCLUDED_IN, INCLUDED_IN_ERROR);
38621
38630
  validatorFns[INCLUDED_IN] = (value, args, form) =>
38622
38631
  Array.isArray(args[0]) ? args[0].includes(value) : args[0] === value;
38623
38632
 
38624
- const REQUIRED = 'validator/REQUIRED';
38625
- const REQUIRED_ERROR = 'error/REQUIRED';
38633
+ const REQUIRED = "validator/REQUIRED";
38634
+ const REQUIRED_ERROR = "error/REQUIRED";
38626
38635
  const required = createValidator(REQUIRED, REQUIRED_ERROR);
38627
- validatorFns[REQUIRED] = (value, args, form) => value !== '';
38636
+ validatorFns[REQUIRED] = (value, args, form) => value !== "";
38628
38637
 
38629
- const ONLY_INTEGERS = 'validator/ONLY_INTEGERS';
38630
- const ONLY_INTEGERS_ERROR = 'error/ONLY_INTEGERS';
38638
+ const ONLY_INTEGERS = "validator/ONLY_INTEGERS";
38639
+ const ONLY_INTEGERS_ERROR = "error/ONLY_INTEGERS";
38631
38640
  const onlyIntegers = createValidator(ONLY_INTEGERS, ONLY_INTEGERS_ERROR);
38632
38641
  validatorFns[ONLY_INTEGERS] = (value, args, form) => /^(-?\d+)?$/.test(value);
38633
38642
 
38634
- const ONLY_NATURALS = 'validator/ONLY_NATURALS';
38635
- const ONLY_NATURALS_ERROR = 'error/ONLY_NATURALS';
38643
+ const ONLY_NATURALS = "validator/ONLY_NATURALS";
38644
+ const ONLY_NATURALS_ERROR = "error/ONLY_NATURALS";
38636
38645
  const onlyNaturals = createValidator(ONLY_NATURALS, ONLY_NATURALS_ERROR);
38637
38646
  validatorFns[ONLY_NATURALS] = (value, args, form) => /^(\d+)?$/.test(value);
38638
38647
 
@@ -38645,8 +38654,8 @@ not tested as validation function
38645
38654
  to validate exp date instead use combo of:
38646
38655
  required(), hasLength(), isValidMonth(), dateAfterToday()
38647
38656
  */
38648
- const ONLY_EXPIRATION_DATE = 'validator/ONLY_EXPIRATION_DATE';
38649
- const ONLY_EXPIRATION_DATE_ERROR = 'error/ONLY_EXPIRATION_DATE';
38657
+ const ONLY_EXPIRATION_DATE = "validator/ONLY_EXPIRATION_DATE";
38658
+ const ONLY_EXPIRATION_DATE_ERROR = "error/ONLY_EXPIRATION_DATE";
38650
38659
  const onlyExpirationDate = createValidator(
38651
38660
  ONLY_EXPIRATION_DATE,
38652
38661
  ONLY_EXPIRATION_DATE_ERROR
@@ -38654,63 +38663,64 @@ const onlyExpirationDate = createValidator(
38654
38663
  validatorFns[ONLY_EXPIRATION_DATE] = (value, args, form) =>
38655
38664
  /^(\d?\d?\/?\d?\d?)?$/.test(value);
38656
38665
 
38657
- const NUMBER_LESS_THAN = 'validator/NUMBER_LESS_THAN';
38658
- const NUMBER_LESS_THAN_ERROR = 'error/NUMBER_LESS_THAN';
38666
+ const NUMBER_LESS_THAN = "validator/NUMBER_LESS_THAN";
38667
+ const NUMBER_LESS_THAN_ERROR = "error/NUMBER_LESS_THAN";
38659
38668
  const numberLessThan = createValidator(
38660
38669
  NUMBER_LESS_THAN,
38661
38670
  NUMBER_LESS_THAN_ERROR
38662
38671
  );
38663
38672
  validatorFns[NUMBER_LESS_THAN] = (value, args, form) => {
38664
- if (value === '') {
38673
+ if (value === "") {
38665
38674
  return true;
38666
38675
  }
38667
38676
  return Number(value) < args[0];
38668
38677
  };
38669
38678
 
38670
- const NUMBER_LESS_THAN_OR_EQUAL_TO = 'validator/NUMBER_LESS_THAN_OR_EQUAL_TO';
38679
+ const NUMBER_LESS_THAN_OR_EQUAL_TO =
38680
+ "validator/NUMBER_LESS_THAN_OR_EQUAL_TO";
38671
38681
  const NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR =
38672
- 'error/NUMBER_LESS_THAN_OR_EQUAL_TO';
38682
+ "error/NUMBER_LESS_THAN_OR_EQUAL_TO";
38673
38683
  const numberLessThanOrEqualTo = createValidator(
38674
38684
  NUMBER_LESS_THAN_OR_EQUAL_TO,
38675
38685
  NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR
38676
38686
  );
38677
38687
  validatorFns[NUMBER_LESS_THAN_OR_EQUAL_TO] = (value, args, form) => {
38678
- if (value === '') {
38688
+ if (value === "") {
38679
38689
  return true;
38680
38690
  }
38681
38691
  return Number(value) <= args[0];
38682
38692
  };
38683
38693
 
38684
- const NUMBER_GREATER_THAN = 'validator/NUMBER_GREATER_THAN';
38685
- const NUMBER_GREATER_THAN_ERROR = 'error/NUMBER_GREATER_THAN';
38694
+ const NUMBER_GREATER_THAN = "validator/NUMBER_GREATER_THAN";
38695
+ const NUMBER_GREATER_THAN_ERROR = "error/NUMBER_GREATER_THAN";
38686
38696
  const numberGreaterThan = createValidator(
38687
38697
  NUMBER_GREATER_THAN,
38688
38698
  NUMBER_GREATER_THAN_ERROR
38689
38699
  );
38690
38700
  validatorFns[NUMBER_GREATER_THAN] = (value, args, form) => {
38691
- if (value === '') {
38701
+ if (value === "") {
38692
38702
  return true;
38693
38703
  }
38694
38704
  return Number(value) > args[0];
38695
38705
  };
38696
38706
 
38697
38707
  const NUMBER_GREATER_THAN_OR_EQUAL_TO =
38698
- 'validator/NUMBER_GREATER_THAN_OR_EQUAL_TO';
38708
+ "validator/NUMBER_GREATER_THAN_OR_EQUAL_TO";
38699
38709
  const NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR =
38700
- 'error/NUMBER_GREATER_THAN_OR_EQUAL_TO';
38710
+ "error/NUMBER_GREATER_THAN_OR_EQUAL_TO";
38701
38711
  const numberGreaterThanOrEqualTo = createValidator(
38702
38712
  NUMBER_GREATER_THAN_OR_EQUAL_TO,
38703
38713
  NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR
38704
38714
  );
38705
38715
  validatorFns[NUMBER_GREATER_THAN_OR_EQUAL_TO] = (value, args, form) => {
38706
- if (value === '') {
38716
+ if (value === "") {
38707
38717
  return true;
38708
38718
  }
38709
38719
  return Number(value) >= args[0];
38710
38720
  };
38711
38721
 
38712
- const MATCHES_FIELD = 'validator/MATCHES_FIELD';
38713
- const MATCHES_FIELD_ERROR$1 = 'error/MATCHES_FIELD';
38722
+ const MATCHES_FIELD = "validator/MATCHES_FIELD";
38723
+ const MATCHES_FIELD_ERROR$1 = "error/MATCHES_FIELD";
38714
38724
  const matchesField = createValidator(MATCHES_FIELD, MATCHES_FIELD_ERROR$1);
38715
38725
  validatorFns[MATCHES_FIELD] = (value, args, form) => {
38716
38726
  const dependentField = form[args[0]];
@@ -38723,7 +38733,7 @@ validatorFns[MATCHES_FIELD] = (value, args, form) => {
38723
38733
  return value === dependentFieldValue;
38724
38734
  };
38725
38735
 
38726
- const validateWhenErrorMessage = (type) =>
38736
+ const validateWhenErrorMessage = type =>
38727
38737
  `${type} was passed to validateWhen, but that validator type does not exist.
38728
38738
  Please check that you are only calling validator creator functions exported from
38729
38739
  redux-freeform in your form config and that you didn't forget to
@@ -38731,21 +38741,25 @@ const validateWhenErrorMessage = (type) =>
38731
38741
  createFormState). Also make sure you aren't passing validateWhen() to validateWhen
38732
38742
  as the primary validator.`;
38733
38743
 
38734
- const VALIDATE_WHEN = 'validator/VALIDATE_WHEN';
38735
- const VALIDATE_WHEN_ERROR = 'error/VALIDATE_WHEN';
38736
- const validateWhen = (dependentValidator, primaryValidator, optionalFieldName) => ({
38744
+ const VALIDATE_WHEN = "validator/VALIDATE_WHEN";
38745
+ const VALIDATE_WHEN_ERROR = "error/VALIDATE_WHEN";
38746
+ const validateWhen = (
38747
+ dependentValidator,
38748
+ primaryValidator,
38749
+ optionalFieldName
38750
+ ) => ({
38737
38751
  type: VALIDATE_WHEN,
38738
38752
  args: [dependentValidator, primaryValidator, optionalFieldName],
38739
- error: dependentValidator.error,
38753
+ error: dependentValidator.error
38740
38754
  });
38741
38755
  validateWhen.error = VALIDATE_WHEN_ERROR;
38742
38756
  validatorFns[VALIDATE_WHEN] = (value, args, form) => {
38743
38757
  const [dependentValidator, primaryValidator, optionalFieldName] = args;
38744
- const dependsOnOtherField = typeof optionalFieldName === 'string';
38758
+ const dependsOnOtherField = typeof optionalFieldName === "string";
38745
38759
 
38746
38760
  if (
38747
38761
  primaryValidator.type === undefined ||
38748
- typeof validatorFns[primaryValidator.type] !== 'function'
38762
+ typeof validatorFns[primaryValidator.type] !== "function"
38749
38763
  ) {
38750
38764
  throw new Error(validateWhenErrorMessage(primaryValidator.type));
38751
38765
  }
@@ -38769,22 +38783,26 @@ validatorFns[VALIDATE_WHEN] = (value, args, form) => {
38769
38783
  );
38770
38784
 
38771
38785
  return primaryPredicatePassed
38772
- ? validatorFns[dependentValidator.type](value, dependentValidator.args, form)
38786
+ ? validatorFns[dependentValidator.type](
38787
+ value,
38788
+ dependentValidator.args,
38789
+ form
38790
+ )
38773
38791
  : true;
38774
38792
  };
38775
38793
 
38776
- const validateSumErrorMessage = (type) =>
38794
+ const validateSumErrorMessage = type =>
38777
38795
  `${type} was passed to validateSum, but that validator type does not exist.
38778
38796
  Please check that you are only calling validator creator functions exported from
38779
38797
  redux-freeform in your form config and that you didn't forget to
38780
38798
  invoke the validator creator (you cannot pass the functions themselves to
38781
38799
  createFormState).`;
38782
- const VALIDATE_SUM = 'validator/VALIDATE_SUM';
38783
- const VALIDATE_SUM_ERROR = 'error/VALIDATE_SUM';
38800
+ const VALIDATE_SUM = "validator/VALIDATE_SUM";
38801
+ const VALIDATE_SUM_ERROR = "error/VALIDATE_SUM";
38784
38802
  const validateSum = (validator, fieldNamesArray) => ({
38785
38803
  type: VALIDATE_SUM,
38786
38804
  args: [validator, fieldNamesArray],
38787
- error: validator.error,
38805
+ error: validator.error
38788
38806
  });
38789
38807
  validateSum.error = VALIDATE_SUM_ERROR;
38790
38808
  validatorFns[VALIDATE_SUM] = (value, args, form) => {
@@ -38792,7 +38810,7 @@ validatorFns[VALIDATE_SUM] = (value, args, form) => {
38792
38810
 
38793
38811
  if (
38794
38812
  validator.type === undefined ||
38795
- typeof validatorFns[validator.type] !== 'function'
38813
+ typeof validatorFns[validator.type] !== "function"
38796
38814
  ) {
38797
38815
  throw new Error(validateSumErrorMessage(validator.type));
38798
38816
  }
@@ -38813,35 +38831,37 @@ validatorFns[VALIDATE_SUM] = (value, args, form) => {
38813
38831
  return validatorFns[validator.type](sum, validator.args, form);
38814
38832
  };
38815
38833
 
38816
- const HAS_LENGTH = 'validator/HAS_LENGTH';
38817
- const HAS_LENGTH_ERROR = 'error/HAS_LENGTH';
38834
+ const HAS_LENGTH = "validator/HAS_LENGTH";
38835
+ const HAS_LENGTH_ERROR = "error/HAS_LENGTH";
38818
38836
  const hasLength = createValidator(HAS_LENGTH, HAS_LENGTH_ERROR);
38819
38837
  validatorFns[HAS_LENGTH] = (value, args, form) => {
38820
- if (value === '') {
38838
+ if (value === "") {
38821
38839
  return true;
38822
38840
  }
38823
38841
  const min = args[0];
38824
38842
  const max = args[1];
38825
38843
  if (max == undefined || min == undefined) {
38826
38844
  throw new Error(
38827
- 'Max and min need to be defined for hasLength, both or one of them is undefined'
38845
+ "Max and min need to be defined for hasLength, both or one of them is undefined"
38828
38846
  );
38829
38847
  }
38830
38848
  if (max < min) {
38831
- throw new Error('hasLength validator was passed a min greater than the max');
38849
+ throw new Error(
38850
+ "hasLength validator was passed a min greater than the max"
38851
+ );
38832
38852
  }
38833
38853
  const valueLength = value.length;
38834
38854
  return max >= valueLength && valueLength >= min;
38835
38855
  };
38836
38856
 
38837
- const DATE_BEFORE_TODAY = 'validator/DATE_BEFORE_TODAY';
38838
- const DATE_BEFORE_TODAY_ERROR = 'error/DATE_BEFORE_TODAY';
38857
+ const DATE_BEFORE_TODAY = "validator/DATE_BEFORE_TODAY";
38858
+ const DATE_BEFORE_TODAY_ERROR = "error/DATE_BEFORE_TODAY";
38839
38859
  const dateBeforeToday = createValidator(
38840
38860
  DATE_BEFORE_TODAY,
38841
38861
  DATE_BEFORE_TODAY_ERROR
38842
38862
  );
38843
38863
  validatorFns[DATE_BEFORE_TODAY] = (value, args, form) => {
38844
- if (value === '') {
38864
+ if (value === "") {
38845
38865
  return true;
38846
38866
  }
38847
38867
  const dateFormat = args[0];
@@ -38850,7 +38870,7 @@ validatorFns[DATE_BEFORE_TODAY] = (value, args, form) => {
38850
38870
 
38851
38871
  if (dateFormat == undefined || unit == undefined) {
38852
38872
  throw new Error(
38853
- 'Date format and unit need to be defined for dateBeforeToday, one or both are undefined'
38873
+ "Date format and unit need to be defined for dateBeforeToday, one or both are undefined"
38854
38874
  );
38855
38875
  }
38856
38876
  const now = dayjs();
@@ -38862,14 +38882,14 @@ validatorFns[DATE_BEFORE_TODAY] = (value, args, form) => {
38862
38882
  return dateValue.isBefore(now, unit);
38863
38883
  };
38864
38884
 
38865
- const DATE_AFTER_TODAY = 'validator/DATE_AFTER_TODAY';
38866
- const DATE_AFTER_TODAY_ERROR = 'error/DATE_AFTER_TODAY';
38885
+ const DATE_AFTER_TODAY = "validator/DATE_AFTER_TODAY";
38886
+ const DATE_AFTER_TODAY_ERROR = "error/DATE_AFTER_TODAY";
38867
38887
  const dateAfterToday = createValidator(
38868
38888
  DATE_AFTER_TODAY,
38869
38889
  DATE_AFTER_TODAY_ERROR
38870
38890
  );
38871
38891
  validatorFns[DATE_AFTER_TODAY] = (value, args, form) => {
38872
- if (value === '') {
38892
+ if (value === "") {
38873
38893
  return true;
38874
38894
  }
38875
38895
  const dateFormat = args[0];
@@ -38878,7 +38898,7 @@ validatorFns[DATE_AFTER_TODAY] = (value, args, form) => {
38878
38898
 
38879
38899
  if (dateFormat == undefined || unit == undefined) {
38880
38900
  throw new Error(
38881
- 'Date format and unit need to be defined for dateAfterToday, one or both are undefined'
38901
+ "Date format and unit need to be defined for dateAfterToday, one or both are undefined"
38882
38902
  );
38883
38903
  }
38884
38904
  const now = dayjs();
@@ -38890,11 +38910,14 @@ validatorFns[DATE_AFTER_TODAY] = (value, args, form) => {
38890
38910
  return dateValue.isAfter(now, unit);
38891
38911
  };
38892
38912
 
38893
- const IS_VALID_MONTH = 'validator/IS_VALID_MONTH';
38894
- const IS_VALID_MONTH_ERROR = 'error/IS_VALID_MONTH';
38895
- const isValidMonth = createValidator(IS_VALID_MONTH, IS_VALID_MONTH_ERROR);
38913
+ const IS_VALID_MONTH = "validator/IS_VALID_MONTH";
38914
+ const IS_VALID_MONTH_ERROR = "error/IS_VALID_MONTH";
38915
+ const isValidMonth = createValidator(
38916
+ IS_VALID_MONTH,
38917
+ IS_VALID_MONTH_ERROR
38918
+ );
38896
38919
  validatorFns[IS_VALID_MONTH] = (value, args, form) => {
38897
- if (value === '') {
38920
+ if (value === "") {
38898
38921
  return true;
38899
38922
  }
38900
38923
  // Function takes one argument representing the character position
@@ -38904,43 +38927,43 @@ validatorFns[IS_VALID_MONTH] = (value, args, form) => {
38904
38927
  // Only works with two digit months (01, 02, 03, etc)
38905
38928
  const monthStartPosition = parseInt(args[0]);
38906
38929
  const monthEndPosition = monthStartPosition + 2;
38907
- if (isNaN(monthStartPosition)) {
38908
- throw new Error('Month start position has to be a valid integer string');
38930
+ if (monthStartPosition === NaN) {
38931
+ throw new Error("Month start position has to be a valid integer string");
38909
38932
  }
38910
38933
  const month = parseInt(value.slice(monthStartPosition, monthEndPosition));
38911
- if (isNaN(month)) {
38934
+ if (month === NaN) {
38912
38935
  return false;
38913
38936
  }
38914
38937
  return month >= 1 && month <= 12;
38915
38938
  };
38916
38939
 
38917
- const MATCHES_REGEX = 'validator/MATCHES_REGEX';
38918
- const MATCHES_REGEX_ERROR = 'error/MATCHES_REGEX';
38940
+ const MATCHES_REGEX = "validator/MATCHES_REGEX";
38941
+ const MATCHES_REGEX_ERROR = "error/MATCHES_REGEX";
38919
38942
  const matchesRegex = createValidator(MATCHES_REGEX, MATCHES_REGEX_ERROR);
38920
38943
  validatorFns[MATCHES_REGEX] = (value, args, form) => {
38921
- if (value === '') {
38944
+ if (value === "") {
38922
38945
  return true;
38923
38946
  }
38924
38947
  return new RegExp(args[0]).test(value); // new RexExp never throws an error, no matter the input
38925
38948
  };
38926
38949
 
38927
38950
  // based on http://www.brainjar.com/js/validation/
38928
- const IS_ROUTING_NUMBER = 'validator/IS_ROUTING_NUMBER';
38929
- const IS_ROUTING_NUMBER_ERROR = 'error/IS_ROUTING_NUMBER';
38951
+ const IS_ROUTING_NUMBER = "validator/IS_ROUTING_NUMBER";
38952
+ const IS_ROUTING_NUMBER_ERROR = "error/IS_ROUTING_NUMBER";
38930
38953
  const isRoutingNumber = createValidator(
38931
38954
  IS_ROUTING_NUMBER,
38932
38955
  IS_ROUTING_NUMBER_ERROR
38933
38956
  );
38934
38957
  validatorFns[IS_ROUTING_NUMBER] = (value, args, form) => {
38935
- if (value === '') {
38958
+ if (value === "") {
38936
38959
  return true;
38937
38960
  }
38938
38961
  if (value.length != 9) {
38939
38962
  return false;
38940
38963
  }
38941
38964
  const sum = value
38942
- .split('')
38943
- .map((ch) => parseInt(ch))
38965
+ .split("")
38966
+ .map(ch => parseInt(ch))
38944
38967
  .reduce((acc, cur, idx) => {
38945
38968
  switch (idx % 3) {
38946
38969
  case 0:
@@ -38954,69 +38977,69 @@ validatorFns[IS_ROUTING_NUMBER] = (value, args, form) => {
38954
38977
  return sum != 0 && sum % 10 == 0;
38955
38978
  };
38956
38979
 
38957
- const HAS_NUMBER = 'validator/HAS_NUMBER';
38958
- const HAS_NUMBER_ERROR$1 = 'error/HAS_NUMBER';
38980
+ const HAS_NUMBER = "validator/HAS_NUMBER";
38981
+ const HAS_NUMBER_ERROR$1 = "error/HAS_NUMBER";
38959
38982
  const hasNumber = createValidator(HAS_NUMBER, HAS_NUMBER_ERROR$1);
38960
38983
  validatorFns[HAS_NUMBER] = (value, args, form) => {
38961
- if (value === '') {
38984
+ if (value === "") {
38962
38985
  return true;
38963
38986
  }
38964
38987
  return new RegExp(/[0-9]/).test(value);
38965
38988
  };
38966
38989
 
38967
- const HAS_LOWERCASE_LETTER = 'validator/HAS_LOWERCASE_LETTER';
38968
- const HAS_LOWERCASE_LETTER_ERROR$1 = 'error/HAS_LOWERCASE_LETTER';
38990
+ const HAS_LOWERCASE_LETTER = "validator/HAS_LOWERCASE_LETTER";
38991
+ const HAS_LOWERCASE_LETTER_ERROR$1 = "error/HAS_LOWERCASE_LETTER";
38969
38992
  const hasLowercaseLetter = createValidator(
38970
38993
  HAS_LOWERCASE_LETTER,
38971
38994
  HAS_LOWERCASE_LETTER_ERROR$1
38972
38995
  );
38973
38996
  validatorFns[HAS_LOWERCASE_LETTER] = (value, args, form) => {
38974
- if (value === '') {
38997
+ if (value === "") {
38975
38998
  return true;
38976
38999
  }
38977
39000
  return new RegExp(/[a-z]/).test(value);
38978
39001
  };
38979
39002
 
38980
- const HAS_UPPERCASE_LETTER = 'validator/HAS_UPPERCASE_LETTER';
38981
- const HAS_UPPERCASE_LETTER_ERROR$1 = 'error/HAS_UPPERCASE_LETTER';
39003
+ const HAS_UPPERCASE_LETTER = "validator/HAS_UPPERCASE_LETTER";
39004
+ const HAS_UPPERCASE_LETTER_ERROR$1 = "error/HAS_UPPERCASE_LETTER";
38982
39005
  const hasUppercaseLetter = createValidator(
38983
39006
  HAS_UPPERCASE_LETTER,
38984
39007
  HAS_UPPERCASE_LETTER_ERROR$1
38985
39008
  );
38986
39009
  validatorFns[HAS_UPPERCASE_LETTER] = (value, args, form) => {
38987
- if (value === '') {
39010
+ if (value === "") {
38988
39011
  return true;
38989
39012
  }
38990
39013
  return new RegExp(/[A-Z]/).test(value);
38991
39014
  };
38992
39015
 
38993
- const HAS_SPECIAL_CHARACTER = 'validator/HAS_SPECIAL_CHARACTER';
38994
- const HAS_SPECIAL_CHARACTER_ERROR$1 = 'error/HAS_SPECIAL_CHARACTER';
39016
+ const HAS_SPECIAL_CHARACTER = "validator/HAS_SPECIAL_CHARACTER";
39017
+ const HAS_SPECIAL_CHARACTER_ERROR$1 = "error/HAS_SPECIAL_CHARACTER";
38995
39018
  const hasSpecialCharacter = createValidator(
38996
39019
  HAS_SPECIAL_CHARACTER,
38997
39020
  HAS_SPECIAL_CHARACTER_ERROR$1
38998
39021
  );
38999
39022
  validatorFns[HAS_SPECIAL_CHARACTER] = (value, args, form) => {
39000
- if (value === '') {
39023
+ if (value === "") {
39001
39024
  return true;
39002
39025
  }
39003
39026
  return new RegExp(/[!@#$%^&*.?]/).test(value);
39004
39027
  };
39005
39028
 
39006
- const IS_PROBABLY_EMAIL = 'validator/IS_PROBABLY_EMAIL';
39007
- const IS_PROBABLY_EMAIL_ERROR = 'error/IS_PROBABLY_EMAIL';
39029
+ const IS_PROBABLY_EMAIL = "validator/IS_PROBABLY_EMAIL";
39030
+ const IS_PROBABLY_EMAIL_ERROR = "error/IS_PROBABLY_EMAIL";
39008
39031
  const isProbablyEmail = createValidator(
39009
39032
  IS_PROBABLY_EMAIL,
39010
39033
  IS_PROBABLY_EMAIL_ERROR
39011
39034
  );
39012
39035
  validatorFns[IS_PROBABLY_EMAIL] = (value, args, form) => {
39013
- if (value === '') {
39036
+ if (value === "") {
39014
39037
  return true;
39015
39038
  }
39016
39039
  return new RegExp(/^\S+@\S+\.\S+$/).test(value);
39017
39040
  };
39018
39041
 
39019
- const runValidatorErrorMessage = (type) =>
39042
+ const runValidatorErrorMessage = type =>
39020
39043
  `${type} was passed to runValidator, but that validator type does not exist.
39021
39044
  Please check that you are only calling validator creator functions exported from
39022
39045
  redux-freeform in your form config and that you didn't forget to
@@ -39031,238 +39054,1330 @@ const runValidator = (validator, value, form) => {
39031
39054
  return validatorFn(value, validator.args, form) ? null : validator.error;
39032
39055
  };
39033
39056
 
39034
- const runFormValidators = (fieldName, form, validators) => {
39057
+ const _computeErrors = (fieldName, form, validators) => {
39035
39058
  return validators
39036
- .map((v) => runValidator(v, form[fieldName].rawValue, form))
39037
- .filter((x) => x !== null);
39059
+ .map(v => runValidator(v, form[fieldName].rawValue, form))
39060
+ .filter(x => x !== null);
39038
39061
  };
39039
39062
 
39040
39063
  const computeConstraints = (fieldName, form) => {
39041
39064
  const constraints = form[fieldName].constraints;
39042
- return runFormValidators(fieldName, form, constraints);
39065
+ return _computeErrors(fieldName, form, constraints);
39043
39066
  };
39044
39067
 
39045
39068
  const computeErrors = (fieldName, form) => {
39046
39069
  const validators = form[fieldName].validators;
39047
- return runFormValidators(fieldName, form, validators);
39070
+ return _computeErrors(fieldName, form, validators);
39071
+ };
39072
+
39073
+ var obj;
39074
+ var NOTHING = typeof Symbol !== "undefined" ? Symbol("immer-nothing") : ( obj = {}, obj["immer-nothing"] = true, obj );
39075
+ var DRAFTABLE = typeof Symbol !== "undefined" && Symbol.for ? Symbol.for("immer-draftable") : "__$immer_draftable";
39076
+ var DRAFT_STATE = typeof Symbol !== "undefined" && Symbol.for ? Symbol.for("immer-state") : "__$immer_state";
39077
+ function isDraft(value) {
39078
+ return !!value && !!value[DRAFT_STATE];
39079
+ }
39080
+ function isDraftable(value) {
39081
+ if (!value) { return false; }
39082
+ return isPlainObject(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
39083
+ }
39084
+ function isPlainObject(value) {
39085
+ if (!value || typeof value !== "object") { return false; }
39086
+ if (Array.isArray(value)) { return true; }
39087
+ var proto = Object.getPrototypeOf(value);
39088
+ return !proto || proto === Object.prototype;
39089
+ }
39090
+ var assign = Object.assign || function assign(target, value) {
39091
+ for (var key in value) {
39092
+ if (has$1(value, key)) {
39093
+ target[key] = value[key];
39094
+ }
39095
+ }
39096
+
39097
+ return target;
39048
39098
  };
39099
+ var ownKeys$2 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : typeof Object.getOwnPropertySymbols !== "undefined" ? function (obj) { return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj)); } : Object.getOwnPropertyNames;
39100
+ function shallowCopy(base, invokeGetters) {
39101
+ if ( invokeGetters === void 0 ) invokeGetters = false;
39102
+
39103
+ if (Array.isArray(base)) { return base.slice(); }
39104
+ var clone = Object.create(Object.getPrototypeOf(base));
39105
+ ownKeys$2(base).forEach(function (key) {
39106
+ if (key === DRAFT_STATE) {
39107
+ return; // Never copy over draft state.
39108
+ }
39109
+
39110
+ var desc = Object.getOwnPropertyDescriptor(base, key);
39111
+ var value = desc.value;
39112
+
39113
+ if (desc.get) {
39114
+ if (!invokeGetters) {
39115
+ throw new Error("Immer drafts cannot have computed properties");
39116
+ }
39117
+
39118
+ value = desc.get.call(base);
39119
+ }
39049
39120
 
39050
- const computeErrorEntries = (formState) => {
39051
- const fields = Object.entries(formState);
39052
- for (let entry of fields) {
39053
- let fieldName = entry[0];
39054
- let errors = computeErrors(fieldName, formState);
39055
- formState[fieldName].errors = errors;
39056
- formState[fieldName].hasErrors = errors.length > 0;
39121
+ if (desc.enumerable) {
39122
+ clone[key] = value;
39123
+ } else {
39124
+ Object.defineProperty(clone, key, {
39125
+ value: value,
39126
+ writable: true,
39127
+ configurable: true
39128
+ });
39129
+ }
39130
+ });
39131
+ return clone;
39132
+ }
39133
+ function each(value, cb) {
39134
+ if (Array.isArray(value)) {
39135
+ for (var i = 0; i < value.length; i++) { cb(i, value[i], value); }
39136
+ } else {
39137
+ ownKeys$2(value).forEach(function (key) { return cb(key, value[key], value); });
39138
+ }
39139
+ }
39140
+ function isEnumerable(base, prop) {
39141
+ var desc = Object.getOwnPropertyDescriptor(base, prop);
39142
+ return !!desc && desc.enumerable;
39143
+ }
39144
+ function has$1(thing, prop) {
39145
+ return Object.prototype.hasOwnProperty.call(thing, prop);
39146
+ }
39147
+ function is(x, y) {
39148
+ // From: https://github.com/facebook/fbjs/blob/c69904a511b900266935168223063dd8772dfc40/packages/fbjs/src/core/shallowEqual.js
39149
+ if (x === y) {
39150
+ return x !== 0 || 1 / x === 1 / y;
39151
+ } else {
39152
+ return x !== x && y !== y;
39057
39153
  }
39154
+ }
39155
+ function clone(obj) {
39156
+ if (!isDraftable(obj)) { return obj; }
39157
+ if (Array.isArray(obj)) { return obj.map(clone); }
39158
+ var cloned = Object.create(Object.getPrototypeOf(obj));
39159
+
39160
+ for (var key in obj) { cloned[key] = clone(obj[key]); }
39161
+
39162
+ return cloned;
39163
+ }
39164
+
39165
+ /** Each scope represents a `produce` call. */
39166
+
39167
+ var ImmerScope = function ImmerScope(parent) {
39168
+ this.drafts = [];
39169
+ this.parent = parent; // Whenever the modified draft contains a draft from another scope, we
39170
+ // need to prevent auto-freezing so the unowned draft can be finalized.
39171
+
39172
+ this.canAutoFreeze = true; // To avoid prototype lookups:
39173
+
39174
+ this.patches = null;
39058
39175
  };
39059
39176
 
39060
- const computeDirtyEntries = (formState, changedFieldName) => {
39061
- const fields = Object.entries(formState);
39062
- for (let entry of fields) {
39063
- let fieldName = entry[0];
39064
- let field = entry[1];
39065
- let dirty = fieldName === changedFieldName ? true : field.dirty;
39066
- formState[fieldName].dirty = dirty;
39177
+ ImmerScope.prototype.usePatches = function usePatches (patchListener) {
39178
+ if (patchListener) {
39179
+ this.patches = [];
39180
+ this.inversePatches = [];
39181
+ this.patchListener = patchListener;
39067
39182
  }
39068
39183
  };
39069
39184
 
39070
- function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if("production"!==process.env.NODE_ENV){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return !!n&&!!n[Q]}function t(n){var r;return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var r=Object.getPrototypeOf(n);if(null===r)return !0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n);})):n.forEach((function(t,e){return r(e,t,n)}));}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a$1(n,r){return 2===o(n)?n.get(r):n[r]}function f$6(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t;}function c$1(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)||(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2);}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b$1(r){var t=tn[r];return t||n(18,r),t}function _(){return "production"===process.env.NODE_ENV||U||n(0),U}function j(n,r){r&&(b$1("Patches"),n.u=[],n.s=[],n.v=r);}function g(n){O(n),n.p.forEach(S),n.p=null;}function O(n){n===U&&(U=n.l);}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0;}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b$1("ES5").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b$1("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b$1("Patches").N(e,t,n.u,n.s);}return e.o}function A(e,i,o,a,c,s,v){if("production"!==process.env.NODE_ENV&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f$6(o,a,p),!r(p))return;e.m=!1;}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c);}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t);}function z(n,r){var t=n[Q];return (t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t);}}function k(n){n.P||(n.P=!0,n.l&&k(n.l));}function E(n){n.o||(n.o=l(n.t));}function N(n,r,t){var e=s(r)?b$1("MapSet").F(r,t):v(r)?b$1("MapSet").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b$1("ES5").J(r,t);return (t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b$1("ES5").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1;}else e=D(r,c);return i(e,(function(r,t){u&&a$1(u.t,r)===t||f$6(e,r,n(t));})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t);})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=N(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.R[r]=!1,!0;if(c$1(t,i)&&(void 0!==t||u(n.t,r)))return !0;E(n),k(n);}return n.o[r]===t&&(void 0!==t||r in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[r])||(n.o[r]=t,n.R[r]=!0),!0},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.R[r]=!1,E(n),k(n)):delete n.R[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12);}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)};})),on.deleteProperty=function(r,t){return "production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return "production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.O=B,this.D=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return (t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=N(e,r,void 0),v=!0;try{f=i(s),v=!1;}finally{v?g(c):O(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw g(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.D&&d(f,!0),o){var p=[],l=[];b$1("Patches").M(r,f,p,l),o(p,l);}return f}n(21,r);},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r;}));return "undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return [n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=R(e));var i=w(this),o=N(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(r,t){var e=r&&r[Q];"production"!==process.env.NODE_ENV&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.D=n;},i.setUseProxies=function(r){r&&!B&&n(20),this.O=r;},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b$1("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);var produce = fn;
39185
+ ImmerScope.prototype.revoke = function revoke$1 () {
39186
+ this.leave();
39187
+ this.drafts.forEach(revoke);
39188
+ this.drafts = null; // Make draft-related methods throw.
39189
+ };
39071
39190
 
39072
- const createInitialState = (formConfig) => {
39073
- let initialForm = {};
39074
- const formConfigKeys = Object.keys(formConfig);
39075
- for (let formKey of formConfigKeys) {
39076
- initialForm[formKey] = {
39077
- dirty: false,
39078
- rawValue: formConfig[formKey].defaultValue || '',
39079
- validators: formConfig[formKey].validators || [],
39080
- constraints: formConfig[formKey].constraints || [],
39081
- };
39082
- }
39083
- // Because validators require the entire form we have to do a
39084
- // second pass to add errors once the initial form has been
39085
- // constructed
39086
- for (let formKey of formConfigKeys) {
39087
- let errors = computeErrors(formKey, initialForm);
39088
- initialForm[formKey].errors = errors;
39089
- initialForm[formKey].hasErrors = errors.length > 0;
39191
+ ImmerScope.prototype.leave = function leave () {
39192
+ if (this === ImmerScope.current) {
39193
+ ImmerScope.current = this.parent;
39090
39194
  }
39195
+ };
39196
+ ImmerScope.current = null;
39091
39197
 
39092
- return initialForm;
39198
+ ImmerScope.enter = function () {
39199
+ return this.current = new ImmerScope(this.current);
39093
39200
  };
39094
39201
 
39095
- const SET = 'field/SET';
39096
- const set$1 = (fieldName) => (value) => ({
39097
- type: SET,
39098
- payload: { fieldName, value },
39099
- });
39202
+ function revoke(draft) {
39203
+ draft[DRAFT_STATE].revoke();
39204
+ }
39100
39205
 
39101
- const CLEAR = 'form/CLEAR';
39102
- const clear = () => ({ type: CLEAR });
39206
+ // but share them all instead
39103
39207
 
39104
- const ADD_VALIDATOR = 'field/ADD_VALIDATOR';
39105
- const addValidator = (fieldName) => (validator) => ({
39106
- type: ADD_VALIDATOR,
39107
- payload: { fieldName, validator },
39108
- });
39208
+ var descriptors$1 = {};
39209
+ function willFinalize(scope, result, isReplaced) {
39210
+ scope.drafts.forEach(function (draft) {
39211
+ draft[DRAFT_STATE].finalizing = true;
39212
+ });
39109
39213
 
39110
- const REMOVE_VALIDATOR = 'field/REMOVE_VALIDATOR';
39111
- const removeValidator = (fieldName) => (validator) => ({
39112
- type: REMOVE_VALIDATOR,
39113
- payload: { fieldName, validator },
39114
- });
39214
+ if (!isReplaced) {
39215
+ if (scope.patches) {
39216
+ markChangesRecursively(scope.drafts[0]);
39217
+ } // This is faster when we don't care about which attributes changed.
39115
39218
 
39116
- const CLEAR_FIELD_VALIDATORS = 'field/CLEAR_FIELD_VALIDATORS';
39117
- const clearFieldValidators = (fieldName) => () => ({
39118
- type: CLEAR_FIELD_VALIDATORS,
39119
- payload: { fieldName },
39120
- });
39121
39219
 
39122
- const createFormReducer =
39123
- (formConfig) =>
39124
- (state = createInitialState(formConfig), action) => {
39125
- switch (action.type) {
39126
- case SET: {
39127
- const changedFieldName = action.payload.fieldName;
39128
- const newRawValue = action.payload.value;
39129
-
39130
- return produce(state, (draftState) => {
39131
- let originalValue = draftState[changedFieldName].rawValue;
39132
- draftState[changedFieldName].rawValue = newRawValue;
39133
- if (computeConstraints(changedFieldName, draftState).length > 0) {
39134
- // If the change violates constraints, revert the change
39135
- draftState[changedFieldName].rawValue = originalValue;
39136
- return draftState;
39137
- }
39220
+ markChangesSweep(scope.drafts);
39221
+ } // When a child draft is returned, look for changes.
39222
+ else if (isDraft(result) && result[DRAFT_STATE].scope === scope) {
39223
+ markChangesSweep(scope.drafts);
39224
+ }
39225
+ }
39226
+ function createProxy(base, parent) {
39227
+ var isArray = Array.isArray(base);
39228
+ var draft = clonePotentialDraft(base);
39229
+ each(draft, function (prop) {
39230
+ proxyProperty(draft, prop, isArray || isEnumerable(base, prop));
39231
+ }); // See "proxy.js" for property documentation.
39232
+
39233
+ var scope = parent ? parent.scope : ImmerScope.current;
39234
+ var state = {
39235
+ scope: scope,
39236
+ modified: false,
39237
+ finalizing: false,
39238
+ // es5 only
39239
+ finalized: false,
39240
+ assigned: {},
39241
+ parent: parent,
39242
+ base: base,
39243
+ draft: draft,
39244
+ copy: null,
39245
+ revoke: revoke$1,
39246
+ revoked: false // es5 only
39138
39247
 
39139
- computeDirtyEntries(draftState, changedFieldName);
39140
- computeErrorEntries(draftState);
39141
- });
39142
- }
39143
- case CLEAR:
39144
- return createInitialState(formConfig);
39145
- case ADD_VALIDATOR: {
39146
- const fieldWithOverride = action.payload.fieldName;
39147
- const newValidator = action.payload.validator;
39148
-
39149
- return produce(state, (draftState) => {
39150
- draftState[fieldWithOverride].validators.push(newValidator);
39151
- computeErrorEntries(draftState);
39152
- });
39248
+ };
39249
+ createHiddenProperty(draft, DRAFT_STATE, state);
39250
+ scope.drafts.push(draft);
39251
+ return draft;
39252
+ }
39253
+
39254
+ function revoke$1() {
39255
+ this.revoked = true;
39256
+ }
39257
+
39258
+ function source(state) {
39259
+ return state.copy || state.base;
39260
+ } // Access a property without creating an Immer draft.
39261
+
39262
+
39263
+ function peek(draft, prop) {
39264
+ var state = draft[DRAFT_STATE];
39265
+
39266
+ if (state && !state.finalizing) {
39267
+ state.finalizing = true;
39268
+ var value = draft[prop];
39269
+ state.finalizing = false;
39270
+ return value;
39271
+ }
39272
+
39273
+ return draft[prop];
39274
+ }
39275
+
39276
+ function get$1(state, prop) {
39277
+ assertUnrevoked(state);
39278
+ var value = peek(source(state), prop);
39279
+ if (state.finalizing) { return value; } // Create a draft if the value is unmodified.
39280
+
39281
+ if (value === peek(state.base, prop) && isDraftable(value)) {
39282
+ prepareCopy(state);
39283
+ return state.copy[prop] = createProxy(value, state);
39284
+ }
39285
+
39286
+ return value;
39287
+ }
39288
+
39289
+ function set$1(state, prop, value) {
39290
+ assertUnrevoked(state);
39291
+ state.assigned[prop] = true;
39292
+
39293
+ if (!state.modified) {
39294
+ if (is(value, peek(source(state), prop))) { return; }
39295
+ markChanged(state);
39296
+ prepareCopy(state);
39297
+ }
39298
+
39299
+ state.copy[prop] = value;
39300
+ }
39301
+
39302
+ function markChanged(state) {
39303
+ if (!state.modified) {
39304
+ state.modified = true;
39305
+ if (state.parent) { markChanged(state.parent); }
39306
+ }
39307
+ }
39308
+
39309
+ function prepareCopy(state) {
39310
+ if (!state.copy) { state.copy = clonePotentialDraft(state.base); }
39311
+ }
39312
+
39313
+ function clonePotentialDraft(base) {
39314
+ var state = base && base[DRAFT_STATE];
39315
+
39316
+ if (state) {
39317
+ state.finalizing = true;
39318
+ var draft = shallowCopy(state.draft, true);
39319
+ state.finalizing = false;
39320
+ return draft;
39321
+ }
39322
+
39323
+ return shallowCopy(base);
39324
+ }
39325
+
39326
+ function proxyProperty(draft, prop, enumerable) {
39327
+ var desc = descriptors$1[prop];
39328
+
39329
+ if (desc) {
39330
+ desc.enumerable = enumerable;
39331
+ } else {
39332
+ descriptors$1[prop] = desc = {
39333
+ configurable: true,
39334
+ enumerable: enumerable,
39335
+
39336
+ get: function get$1$1() {
39337
+ return get$1(this[DRAFT_STATE], prop);
39338
+ },
39339
+
39340
+ set: function set$1$1(value) {
39341
+ set$1(this[DRAFT_STATE], prop, value);
39153
39342
  }
39154
- case REMOVE_VALIDATOR: {
39155
- const fieldToOverride = action.payload.fieldName;
39156
- const targetValidator = action.payload.validator;
39157
-
39158
- return produce(state, (draftState) => {
39159
- let fieldValidators = draftState[fieldToOverride].validators;
39160
- draftState[fieldToOverride].validators = fieldValidators.filter(
39161
- (validator) => validator.type !== targetValidator.type
39162
- );
39163
- computeErrorEntries(draftState);
39164
- });
39343
+
39344
+ };
39345
+ }
39346
+
39347
+ Object.defineProperty(draft, prop, desc);
39348
+ }
39349
+
39350
+ function assertUnrevoked(state) {
39351
+ if (state.revoked === true) { throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + JSON.stringify(source(state))); }
39352
+ } // This looks expensive, but only proxies are visited, and only objects without known changes are scanned.
39353
+
39354
+
39355
+ function markChangesSweep(drafts) {
39356
+ // The natural order of drafts in the `scope` array is based on when they
39357
+ // were accessed. By processing drafts in reverse natural order, we have a
39358
+ // better chance of processing leaf nodes first. When a leaf node is known to
39359
+ // have changed, we can avoid any traversal of its ancestor nodes.
39360
+ for (var i = drafts.length - 1; i >= 0; i--) {
39361
+ var state = drafts[i][DRAFT_STATE];
39362
+
39363
+ if (!state.modified) {
39364
+ if (Array.isArray(state.base)) {
39365
+ if (hasArrayChanges(state)) { markChanged(state); }
39366
+ } else if (hasObjectChanges(state)) { markChanged(state); }
39367
+ }
39368
+ }
39369
+ }
39370
+
39371
+ function markChangesRecursively(object) {
39372
+ if (!object || typeof object !== "object") { return; }
39373
+ var state = object[DRAFT_STATE];
39374
+ if (!state) { return; }
39375
+ var base = state.base;
39376
+ var draft = state.draft;
39377
+ var assigned = state.assigned;
39378
+
39379
+ if (!Array.isArray(object)) {
39380
+ // Look for added keys.
39381
+ Object.keys(draft).forEach(function (key) {
39382
+ // The `undefined` check is a fast path for pre-existing keys.
39383
+ if (base[key] === undefined && !has$1(base, key)) {
39384
+ assigned[key] = true;
39385
+ markChanged(state);
39386
+ } else if (!assigned[key]) {
39387
+ // Only untouched properties trigger recursion.
39388
+ markChangesRecursively(draft[key]);
39165
39389
  }
39166
- case CLEAR_FIELD_VALIDATORS: {
39167
- const fieldToClear = action.payload.fieldName;
39390
+ }); // Look for removed keys.
39168
39391
 
39169
- return produce(state, (draftState) => {
39170
- draftState[fieldToClear].validators = [];
39171
- computeErrorEntries(draftState);
39172
- });
39392
+ Object.keys(base).forEach(function (key) {
39393
+ // The `undefined` check is a fast path for pre-existing keys.
39394
+ if (draft[key] === undefined && !has$1(draft, key)) {
39395
+ assigned[key] = false;
39396
+ markChanged(state);
39173
39397
  }
39174
- default:
39175
- return state;
39176
- }
39177
- };
39398
+ });
39399
+ } else if (hasArrayChanges(state)) {
39400
+ markChanged(state);
39401
+ assigned.length = true;
39178
39402
 
39179
- const createMapDispatchToProps = (formConfig) => {
39180
- // Do memo-ization
39181
- let cachedDispatch;
39182
- let cacheValue;
39183
- return (dispatch) => {
39184
- if (dispatch == cachedDispatch) {
39185
- return cacheValue;
39403
+ if (draft.length < base.length) {
39404
+ for (var i = draft.length; i < base.length; i++) { assigned[i] = false; }
39405
+ } else {
39406
+ for (var i$1 = base.length; i$1 < draft.length; i$1++) { assigned[i$1] = true; }
39186
39407
  }
39187
- let dispatchObj = {};
39188
- dispatchObj.fields = {};
39189
- const keys = Object.keys(formConfig);
39190
- for (let fieldName of keys) {
39191
- dispatchObj.fields[fieldName] = {
39192
- set: (value) => dispatch(set$1(fieldName)(value)),
39193
- addValidator: (validator) => dispatch(addValidator(fieldName)(validator)),
39194
- removeValidator: (validator) =>
39195
- dispatch(removeValidator(fieldName)(validator)),
39196
- clear: () => dispatch(clearFieldValidators(fieldName)()),
39197
- };
39408
+
39409
+ for (var i$2 = 0; i$2 < draft.length; i$2++) {
39410
+ // Only untouched indices trigger recursion.
39411
+ if (assigned[i$2] === undefined) { markChangesRecursively(draft[i$2]); }
39198
39412
  }
39199
- dispatchObj.form = { clear: () => dispatch(clear()) };
39200
- cachedDispatch = dispatch;
39201
- cacheValue = { actions: dispatchObj };
39202
- return cacheValue;
39203
- };
39204
- };
39413
+ }
39414
+ }
39205
39415
 
39206
- const mapStateToProps = (state) => ({ fields: state });
39416
+ function hasObjectChanges(state) {
39417
+ var base = state.base;
39418
+ var draft = state.draft; // Search for added keys and changed keys. Start at the back, because
39419
+ // non-numeric keys are ordered by time of definition on the object.
39207
39420
 
39208
- const createFormState = (formConfig) => ({
39209
- reducer: createFormReducer(formConfig),
39210
- mapDispatchToProps: createMapDispatchToProps(formConfig),
39211
- mapStateToProps: mapStateToProps,
39212
- });
39421
+ var keys = Object.keys(draft);
39213
39422
 
39214
- var AddressForm = function AddressForm(_ref) {
39215
- var _zipErrorMessages;
39423
+ for (var i = keys.length - 1; i >= 0; i--) {
39424
+ var key = keys[i];
39425
+ var baseValue = base[key]; // The `undefined` check is a fast path for pre-existing keys.
39216
39426
 
39217
- var _ref$variant = _ref.variant,
39218
- variant = _ref$variant === void 0 ? "default" : _ref$variant,
39219
- fields = _ref.fields,
39220
- actions = _ref.actions,
39221
- clearOnDismount = _ref.clearOnDismount,
39222
- showErrors = _ref.showErrors,
39223
- _ref$handleSubmit = _ref.handleSubmit,
39224
- handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
39225
- showWalletCheckbox = _ref.showWalletCheckbox,
39226
- saveToWallet = _ref.saveToWallet,
39227
- walletCheckboxMarked = _ref.walletCheckboxMarked;
39427
+ if (baseValue === undefined && !has$1(base, key)) {
39428
+ return true;
39429
+ } // Once a base key is deleted, future changes go undetected, because its
39430
+ // descriptor is erased. This branch detects any missed changes.
39431
+ else {
39432
+ var value = draft[key];
39433
+ var state$1 = value && value[DRAFT_STATE];
39228
39434
 
39229
- if (clearOnDismount) {
39230
- useEffect$1(function () {
39231
- return function () {
39232
- return actions.form.clear();
39233
- };
39234
- }, []);
39235
- }
39435
+ if (state$1 ? state$1.base !== baseValue : !is(value, baseValue)) {
39436
+ return true;
39437
+ }
39438
+ }
39439
+ } // At this point, no keys were added or changed.
39440
+ // Compare key count to determine if keys were deleted.
39236
39441
 
39237
- var street1ErrorMessages = _defineProperty({}, required.error, "Street is required");
39238
39442
 
39239
- var cityErrorMessages = _defineProperty({}, required.error, "City is required");
39443
+ return keys.length !== Object.keys(base).length;
39444
+ }
39240
39445
 
39241
- var zipErrorMessages = (_zipErrorMessages = {}, _defineProperty(_zipErrorMessages, required.error, "Zip code is required"), _defineProperty(_zipErrorMessages, hasLength.error, "Zip code must be 5 or 9 digits"), _zipErrorMessages);
39446
+ function hasArrayChanges(state) {
39447
+ var draft = state.draft;
39448
+ if (draft.length !== state.base.length) { return true; } // See #116
39449
+ // If we first shorten the length, our array interceptors will be removed.
39450
+ // If after that new items are added, result in the same original length,
39451
+ // those last items will have no intercepting property.
39452
+ // So if there is no own descriptor on the last position, we know that items were removed and added
39453
+ // N.B.: splice, unshift, etc only shift values around, but not prop descriptors, so we only have to check
39454
+ // the last one
39242
39455
 
39243
- var stateProvinceErrorMessages = _defineProperty({}, required.error, "State or Province is required");
39456
+ var descriptor = Object.getOwnPropertyDescriptor(draft, draft.length - 1); // descriptor can be null, but only for newly created sparse arrays, eg. new Array(10)
39244
39457
 
39245
- var countryErrorMessages = _defineProperty({}, required.error, "Country is required");
39458
+ if (descriptor && !descriptor.get) { return true; } // For all other cases, we don't have to compare, as they would have been picked up by the index setters
39246
39459
 
39247
- var isUS = fields.country.rawValue === "US";
39248
- return /*#__PURE__*/React.createElement(FormContainer$1, {
39249
- variant: variant,
39250
- role: "form",
39251
- "aria-label": "Address"
39252
- }, /*#__PURE__*/React.createElement(FormInputColumn, null, /*#__PURE__*/React.createElement(CountryDropdown, {
39253
- labelTextWhenNoError: "Country",
39254
- errorMessages: countryErrorMessages,
39255
- field: fields.country,
39256
- onChange: function onChange(value) {
39257
- actions.fields.country.set(value); // temporary measure to not dirty fields until
39258
- // we can write a reset function for fields
39460
+ return false;
39461
+ }
39259
39462
 
39260
- if (fields.stateProvince.rawValue) {
39261
- actions.fields.stateProvince.set("");
39262
- }
39463
+ function createHiddenProperty(target, prop, value) {
39464
+ Object.defineProperty(target, prop, {
39465
+ value: value,
39466
+ enumerable: false,
39467
+ writable: true
39468
+ });
39469
+ }
39263
39470
 
39264
- if (fields.zip.rawValue) {
39265
- actions.fields.zip.set("");
39471
+ var legacyProxy = /*#__PURE__*/Object.freeze({
39472
+ willFinalize: willFinalize,
39473
+ createProxy: createProxy
39474
+ });
39475
+
39476
+ function willFinalize$1() {}
39477
+ function createProxy$1(base, parent) {
39478
+ var scope = parent ? parent.scope : ImmerScope.current;
39479
+ var state = {
39480
+ // Track which produce call this is associated with.
39481
+ scope: scope,
39482
+ // True for both shallow and deep changes.
39483
+ modified: false,
39484
+ // Used during finalization.
39485
+ finalized: false,
39486
+ // Track which properties have been assigned (true) or deleted (false).
39487
+ assigned: {},
39488
+ // The parent draft state.
39489
+ parent: parent,
39490
+ // The base state.
39491
+ base: base,
39492
+ // The base proxy.
39493
+ draft: null,
39494
+ // Any property proxies.
39495
+ drafts: {},
39496
+ // The base copy with any updated values.
39497
+ copy: null,
39498
+ // Called by the `produce` function.
39499
+ revoke: null
39500
+ };
39501
+ var ref = Array.isArray(base) ? // [state] is used for arrays, to make sure the proxy is array-ish and not violate invariants,
39502
+ // although state itself is an object
39503
+ Proxy.revocable([state], arrayTraps) : Proxy.revocable(state, objectTraps);
39504
+ var revoke = ref.revoke;
39505
+ var proxy = ref.proxy;
39506
+ state.draft = proxy;
39507
+ state.revoke = revoke;
39508
+ scope.drafts.push(proxy);
39509
+ return proxy;
39510
+ }
39511
+ var objectTraps = {
39512
+ get: get$1$1,
39513
+
39514
+ has: function has(target, prop) {
39515
+ return prop in source$1(target);
39516
+ },
39517
+
39518
+ ownKeys: function ownKeys(target) {
39519
+ return Reflect.ownKeys(source$1(target));
39520
+ },
39521
+
39522
+ set: set$1$1,
39523
+ deleteProperty: deleteProperty,
39524
+ getOwnPropertyDescriptor: getOwnPropertyDescriptor$2,
39525
+
39526
+ defineProperty: function defineProperty() {
39527
+ throw new Error("Object.defineProperty() cannot be used on an Immer draft"); // prettier-ignore
39528
+ },
39529
+
39530
+ getPrototypeOf: function getPrototypeOf(target) {
39531
+ return Object.getPrototypeOf(target.base);
39532
+ },
39533
+
39534
+ setPrototypeOf: function setPrototypeOf() {
39535
+ throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft"); // prettier-ignore
39536
+ }
39537
+
39538
+ };
39539
+ var arrayTraps = {};
39540
+ each(objectTraps, function (key, fn) {
39541
+ arrayTraps[key] = function () {
39542
+ arguments[0] = arguments[0][0];
39543
+ return fn.apply(this, arguments);
39544
+ };
39545
+ });
39546
+
39547
+ arrayTraps.deleteProperty = function (state, prop) {
39548
+ if (isNaN(parseInt(prop))) {
39549
+ throw new Error("Immer only supports deleting array indices"); // prettier-ignore
39550
+ }
39551
+
39552
+ return objectTraps.deleteProperty.call(this, state[0], prop);
39553
+ };
39554
+
39555
+ arrayTraps.set = function (state, prop, value) {
39556
+ if (prop !== "length" && isNaN(parseInt(prop))) {
39557
+ throw new Error("Immer only supports setting array indices and the 'length' property"); // prettier-ignore
39558
+ }
39559
+
39560
+ return objectTraps.set.call(this, state[0], prop, value);
39561
+ }; // returns the object we should be reading the current value from, which is base, until some change has been made
39562
+
39563
+
39564
+ function source$1(state) {
39565
+ return state.copy || state.base;
39566
+ } // Access a property without creating an Immer draft.
39567
+
39568
+
39569
+ function peek$1(draft, prop) {
39570
+ var state = draft[DRAFT_STATE];
39571
+ var desc = Reflect.getOwnPropertyDescriptor(state ? source$1(state) : draft, prop);
39572
+ return desc && desc.value;
39573
+ }
39574
+
39575
+ function get$1$1(state, prop) {
39576
+ if (prop === DRAFT_STATE) { return state; }
39577
+ var drafts = state.drafts; // Check for existing draft in unmodified state.
39578
+
39579
+ if (!state.modified && has$1(drafts, prop)) {
39580
+ return drafts[prop];
39581
+ }
39582
+
39583
+ var value = source$1(state)[prop];
39584
+
39585
+ if (state.finalized || !isDraftable(value)) {
39586
+ return value;
39587
+ } // Check for existing draft in modified state.
39588
+
39589
+
39590
+ if (state.modified) {
39591
+ // Assigned values are never drafted. This catches any drafts we created, too.
39592
+ if (value !== peek$1(state.base, prop)) { return value; } // Store drafts on the copy (when one exists).
39593
+
39594
+ drafts = state.copy;
39595
+ }
39596
+
39597
+ return drafts[prop] = createProxy$1(value, state);
39598
+ }
39599
+
39600
+ function set$1$1(state, prop, value) {
39601
+ if (!state.modified) {
39602
+ var baseValue = peek$1(state.base, prop); // Optimize based on value's truthiness. Truthy values are guaranteed to
39603
+ // never be undefined, so we can avoid the `in` operator. Lastly, truthy
39604
+ // values may be drafts, but falsy values are never drafts.
39605
+
39606
+ var isUnchanged = value ? is(baseValue, value) || value === state.drafts[prop] : is(baseValue, value) && prop in state.base;
39607
+ if (isUnchanged) { return true; }
39608
+ markChanged$1(state);
39609
+ }
39610
+
39611
+ state.assigned[prop] = true;
39612
+ state.copy[prop] = value;
39613
+ return true;
39614
+ }
39615
+
39616
+ function deleteProperty(state, prop) {
39617
+ // The `undefined` check is a fast path for pre-existing keys.
39618
+ if (peek$1(state.base, prop) !== undefined || prop in state.base) {
39619
+ state.assigned[prop] = false;
39620
+ markChanged$1(state);
39621
+ } else if (state.assigned[prop]) {
39622
+ // if an originally not assigned property was deleted
39623
+ delete state.assigned[prop];
39624
+ }
39625
+
39626
+ if (state.copy) { delete state.copy[prop]; }
39627
+ return true;
39628
+ } // Note: We never coerce `desc.value` into an Immer draft, because we can't make
39629
+ // the same guarantee in ES5 mode.
39630
+
39631
+
39632
+ function getOwnPropertyDescriptor$2(state, prop) {
39633
+ var owner = source$1(state);
39634
+ var desc = Reflect.getOwnPropertyDescriptor(owner, prop);
39635
+
39636
+ if (desc) {
39637
+ desc.writable = true;
39638
+ desc.configurable = !Array.isArray(owner) || prop !== "length";
39639
+ }
39640
+
39641
+ return desc;
39642
+ }
39643
+
39644
+ function markChanged$1(state) {
39645
+ if (!state.modified) {
39646
+ state.modified = true;
39647
+ state.copy = assign(shallowCopy(state.base), state.drafts);
39648
+ state.drafts = null;
39649
+ if (state.parent) { markChanged$1(state.parent); }
39650
+ }
39651
+ }
39652
+
39653
+ var modernProxy = /*#__PURE__*/Object.freeze({
39654
+ willFinalize: willFinalize$1,
39655
+ createProxy: createProxy$1
39656
+ });
39657
+
39658
+ function generatePatches(state, basePath, patches, inversePatches) {
39659
+ Array.isArray(state.base) ? generateArrayPatches(state, basePath, patches, inversePatches) : generateObjectPatches(state, basePath, patches, inversePatches);
39660
+ }
39661
+
39662
+ function generateArrayPatches(state, basePath, patches, inversePatches) {
39663
+ var assign, assign$1;
39664
+
39665
+ var base = state.base;
39666
+ var copy = state.copy;
39667
+ var assigned = state.assigned; // Reduce complexity by ensuring `base` is never longer.
39668
+
39669
+ if (copy.length < base.length) {
39670
+ (assign = [copy, base], base = assign[0], copy = assign[1]);
39671
+ (assign$1 = [inversePatches, patches], patches = assign$1[0], inversePatches = assign$1[1]);
39672
+ }
39673
+
39674
+ var delta = copy.length - base.length; // Find the first replaced index.
39675
+
39676
+ var start = 0;
39677
+
39678
+ while (base[start] === copy[start] && start < base.length) {
39679
+ ++start;
39680
+ } // Find the last replaced index. Search from the end to optimize splice patches.
39681
+
39682
+
39683
+ var end = base.length;
39684
+
39685
+ while (end > start && base[end - 1] === copy[end + delta - 1]) {
39686
+ --end;
39687
+ } // Process replaced indices.
39688
+
39689
+
39690
+ for (var i = start; i < end; ++i) {
39691
+ if (assigned[i] && copy[i] !== base[i]) {
39692
+ var path = basePath.concat([i]);
39693
+ patches.push({
39694
+ op: "replace",
39695
+ path: path,
39696
+ value: copy[i]
39697
+ });
39698
+ inversePatches.push({
39699
+ op: "replace",
39700
+ path: path,
39701
+ value: base[i]
39702
+ });
39703
+ }
39704
+ }
39705
+
39706
+ var replaceCount = patches.length; // Process added indices.
39707
+
39708
+ for (var i$1 = end + delta - 1; i$1 >= end; --i$1) {
39709
+ var path$1 = basePath.concat([i$1]);
39710
+ patches[replaceCount + i$1 - end] = {
39711
+ op: "add",
39712
+ path: path$1,
39713
+ value: copy[i$1]
39714
+ };
39715
+ inversePatches.push({
39716
+ op: "remove",
39717
+ path: path$1
39718
+ });
39719
+ }
39720
+ }
39721
+
39722
+ function generateObjectPatches(state, basePath, patches, inversePatches) {
39723
+ var base = state.base;
39724
+ var copy = state.copy;
39725
+ each(state.assigned, function (key, assignedValue) {
39726
+ var origValue = base[key];
39727
+ var value = copy[key];
39728
+ var op = !assignedValue ? "remove" : key in base ? "replace" : "add";
39729
+ if (origValue === value && op === "replace") { return; }
39730
+ var path = basePath.concat(key);
39731
+ patches.push(op === "remove" ? {
39732
+ op: op,
39733
+ path: path
39734
+ } : {
39735
+ op: op,
39736
+ path: path,
39737
+ value: value
39738
+ });
39739
+ inversePatches.push(op === "add" ? {
39740
+ op: "remove",
39741
+ path: path
39742
+ } : op === "remove" ? {
39743
+ op: "add",
39744
+ path: path,
39745
+ value: origValue
39746
+ } : {
39747
+ op: "replace",
39748
+ path: path,
39749
+ value: origValue
39750
+ });
39751
+ });
39752
+ }
39753
+
39754
+ var applyPatches = function (draft, patches) {
39755
+ for (var i$1 = 0, list = patches; i$1 < list.length; i$1 += 1) {
39756
+ var patch = list[i$1];
39757
+
39758
+ var path = patch.path;
39759
+ var op = patch.op;
39760
+ var value = clone(patch.value); // used to clone patch to ensure original patch is not modified, see #411
39761
+
39762
+ if (!path.length) { throw new Error("Illegal state"); }
39763
+ var base = draft;
39764
+
39765
+ for (var i = 0; i < path.length - 1; i++) {
39766
+ base = base[path[i]];
39767
+ if (!base || typeof base !== "object") { throw new Error("Cannot apply patch, path doesn't resolve: " + path.join("/")); } // prettier-ignore
39768
+ }
39769
+
39770
+ var key = path[path.length - 1];
39771
+
39772
+ switch (op) {
39773
+ case "replace":
39774
+ // if value is an object, then it's assigned by reference
39775
+ // in the following add or remove ops, the value field inside the patch will also be modifyed
39776
+ // so we use value from the cloned patch
39777
+ base[key] = value;
39778
+ break;
39779
+
39780
+ case "add":
39781
+ if (Array.isArray(base)) {
39782
+ // TODO: support "foo/-" paths for appending to an array
39783
+ base.splice(key, 0, value);
39784
+ } else {
39785
+ base[key] = value;
39786
+ }
39787
+
39788
+ break;
39789
+
39790
+ case "remove":
39791
+ if (Array.isArray(base)) {
39792
+ base.splice(key, 1);
39793
+ } else {
39794
+ delete base[key];
39795
+ }
39796
+
39797
+ break;
39798
+
39799
+ default:
39800
+ throw new Error("Unsupported patch operation: " + op);
39801
+ }
39802
+ }
39803
+
39804
+ return draft;
39805
+ };
39806
+
39807
+ function verifyMinified() {}
39808
+
39809
+ var configDefaults = {
39810
+ useProxies: typeof Proxy !== "undefined" && typeof Reflect !== "undefined",
39811
+ autoFreeze: typeof process !== "undefined" ? process.env.NODE_ENV !== "production" : verifyMinified.name === "verifyMinified",
39812
+ onAssign: null,
39813
+ onDelete: null,
39814
+ onCopy: null
39815
+ };
39816
+ var Immer = function Immer(config) {
39817
+ assign(this, configDefaults, config);
39818
+ this.setUseProxies(this.useProxies);
39819
+ this.produce = this.produce.bind(this);
39820
+ };
39821
+
39822
+ Immer.prototype.produce = function produce (base, recipe, patchListener) {
39823
+ var this$1$1 = this;
39824
+
39825
+ // curried invocation
39826
+ if (typeof base === "function" && typeof recipe !== "function") {
39827
+ var defaultBase = recipe;
39828
+ recipe = base;
39829
+ var self = this;
39830
+ return function curriedProduce(base) {
39831
+ var this$1$1 = this;
39832
+ if ( base === void 0 ) base = defaultBase;
39833
+ var args = [], len = arguments.length - 1;
39834
+ while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
39835
+
39836
+ return self.produce(base, function (draft) { return recipe.call.apply(recipe, [ this$1$1, draft ].concat( args )); }); // prettier-ignore
39837
+ };
39838
+ } // prettier-ignore
39839
+
39840
+
39841
+ {
39842
+ if (typeof recipe !== "function") {
39843
+ throw new Error("The first or second argument to `produce` must be a function");
39844
+ }
39845
+
39846
+ if (patchListener !== undefined && typeof patchListener !== "function") {
39847
+ throw new Error("The third argument to `produce` must be a function or undefined");
39848
+ }
39849
+ }
39850
+ var result; // Only plain objects, arrays, and "immerable classes" are drafted.
39851
+
39852
+ if (isDraftable(base)) {
39853
+ var scope = ImmerScope.enter();
39854
+ var proxy = this.createProxy(base);
39855
+ var hasError = true;
39856
+
39857
+ try {
39858
+ result = recipe(proxy);
39859
+ hasError = false;
39860
+ } finally {
39861
+ // finally instead of catch + rethrow better preserves original stack
39862
+ if (hasError) { scope.revoke(); }else { scope.leave(); }
39863
+ }
39864
+
39865
+ if (result instanceof Promise) {
39866
+ return result.then(function (result) {
39867
+ scope.usePatches(patchListener);
39868
+ return this$1$1.processResult(result, scope);
39869
+ }, function (error) {
39870
+ scope.revoke();
39871
+ throw error;
39872
+ });
39873
+ }
39874
+
39875
+ scope.usePatches(patchListener);
39876
+ return this.processResult(result, scope);
39877
+ } else {
39878
+ result = recipe(base);
39879
+ if (result === undefined) { return base; }
39880
+ return result !== NOTHING ? result : undefined;
39881
+ }
39882
+ };
39883
+
39884
+ Immer.prototype.produceWithPatches = function produceWithPatches (arg1, arg2, arg3) {
39885
+ var this$1$1 = this;
39886
+
39887
+ if (typeof arg1 === "function") {
39888
+ return function (state) {
39889
+ var args = [], len = arguments.length - 1;
39890
+ while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
39891
+
39892
+ return this$1$1.produceWithPatches(state, function (draft) { return arg1.apply(void 0, [ draft ].concat( args )); });
39893
+ };
39894
+ } // non-curried form
39895
+
39896
+
39897
+ if (arg3) { throw new Error("A patch listener cannot be passed to produceWithPatches"); }
39898
+ var patches, inversePatches;
39899
+ var nextState = this.produce(arg1, arg2, function (p, ip) {
39900
+ patches = p;
39901
+ inversePatches = ip;
39902
+ });
39903
+ return [nextState, patches, inversePatches];
39904
+ };
39905
+
39906
+ Immer.prototype.createDraft = function createDraft (base) {
39907
+ if (!isDraftable(base)) {
39908
+ throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object"); // prettier-ignore
39909
+ }
39910
+
39911
+ var scope = ImmerScope.enter();
39912
+ var proxy = this.createProxy(base);
39913
+ proxy[DRAFT_STATE].isManual = true;
39914
+ scope.leave();
39915
+ return proxy;
39916
+ };
39917
+
39918
+ Immer.prototype.finishDraft = function finishDraft (draft, patchListener) {
39919
+ var state = draft && draft[DRAFT_STATE];
39920
+
39921
+ if (!state || !state.isManual) {
39922
+ throw new Error("First argument to `finishDraft` must be a draft returned by `createDraft`"); // prettier-ignore
39923
+ }
39924
+
39925
+ if (state.finalized) {
39926
+ throw new Error("The given draft is already finalized"); // prettier-ignore
39927
+ }
39928
+
39929
+ var scope = state.scope;
39930
+ scope.usePatches(patchListener);
39931
+ return this.processResult(undefined, scope);
39932
+ };
39933
+
39934
+ Immer.prototype.setAutoFreeze = function setAutoFreeze (value) {
39935
+ this.autoFreeze = value;
39936
+ };
39937
+
39938
+ Immer.prototype.setUseProxies = function setUseProxies (value) {
39939
+ this.useProxies = value;
39940
+ assign(this, value ? modernProxy : legacyProxy);
39941
+ };
39942
+
39943
+ Immer.prototype.applyPatches = function applyPatches$1 (base, patches) {
39944
+ // If a patch replaces the entire state, take that replacement as base
39945
+ // before applying patches
39946
+ var i;
39947
+
39948
+ for (i = patches.length - 1; i >= 0; i--) {
39949
+ var patch = patches[i];
39950
+
39951
+ if (patch.path.length === 0 && patch.op === "replace") {
39952
+ base = patch.value;
39953
+ break;
39954
+ }
39955
+ }
39956
+
39957
+ if (isDraft(base)) {
39958
+ // N.B: never hits if some patch a replacement, patches are never drafts
39959
+ return applyPatches(base, patches);
39960
+ } // Otherwise, produce a copy of the base state.
39961
+
39962
+
39963
+ return this.produce(base, function (draft) { return applyPatches(draft, patches.slice(i + 1)); });
39964
+ };
39965
+ /** @internal */
39966
+
39967
+
39968
+ Immer.prototype.processResult = function processResult (result, scope) {
39969
+ var baseDraft = scope.drafts[0];
39970
+ var isReplaced = result !== undefined && result !== baseDraft;
39971
+ this.willFinalize(scope, result, isReplaced);
39972
+
39973
+ if (isReplaced) {
39974
+ if (baseDraft[DRAFT_STATE].modified) {
39975
+ scope.revoke();
39976
+ throw new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft."); // prettier-ignore
39977
+ }
39978
+
39979
+ if (isDraftable(result)) {
39980
+ // Finalize the result in case it contains (or is) a subset of the draft.
39981
+ result = this.finalize(result, null, scope);
39982
+ }
39983
+
39984
+ if (scope.patches) {
39985
+ scope.patches.push({
39986
+ op: "replace",
39987
+ path: [],
39988
+ value: result
39989
+ });
39990
+ scope.inversePatches.push({
39991
+ op: "replace",
39992
+ path: [],
39993
+ value: baseDraft[DRAFT_STATE].base
39994
+ });
39995
+ }
39996
+ } else {
39997
+ // Finalize the base draft.
39998
+ result = this.finalize(baseDraft, [], scope);
39999
+ }
40000
+
40001
+ scope.revoke();
40002
+
40003
+ if (scope.patches) {
40004
+ scope.patchListener(scope.patches, scope.inversePatches);
40005
+ }
40006
+
40007
+ return result !== NOTHING ? result : undefined;
40008
+ };
40009
+ /**
40010
+ * @internal
40011
+ * Finalize a draft, returning either the unmodified base state or a modified
40012
+ * copy of the base state.
40013
+ */
40014
+
40015
+
40016
+ Immer.prototype.finalize = function finalize (draft, path, scope) {
40017
+ var this$1$1 = this;
40018
+
40019
+ var state = draft[DRAFT_STATE];
40020
+
40021
+ if (!state) {
40022
+ if (Object.isFrozen(draft)) { return draft; }
40023
+ return this.finalizeTree(draft, null, scope);
40024
+ } // Never finalize drafts owned by another scope.
40025
+
40026
+
40027
+ if (state.scope !== scope) {
40028
+ return draft;
40029
+ }
40030
+
40031
+ if (!state.modified) {
40032
+ return state.base;
40033
+ }
40034
+
40035
+ if (!state.finalized) {
40036
+ state.finalized = true;
40037
+ this.finalizeTree(state.draft, path, scope);
40038
+
40039
+ if (this.onDelete) {
40040
+ // The `assigned` object is unreliable with ES5 drafts.
40041
+ if (this.useProxies) {
40042
+ var assigned = state.assigned;
40043
+
40044
+ for (var prop in assigned) {
40045
+ if (!assigned[prop]) { this.onDelete(state, prop); }
40046
+ }
40047
+ } else {
40048
+ var base = state.base;
40049
+ var copy = state.copy;
40050
+ each(base, function (prop) {
40051
+ if (!has$1(copy, prop)) { this$1$1.onDelete(state, prop); }
40052
+ });
40053
+ }
40054
+ }
40055
+
40056
+ if (this.onCopy) {
40057
+ this.onCopy(state);
40058
+ } // At this point, all descendants of `state.copy` have been finalized,
40059
+ // so we can be sure that `scope.canAutoFreeze` is accurate.
40060
+
40061
+
40062
+ if (this.autoFreeze && scope.canAutoFreeze) {
40063
+ Object.freeze(state.copy);
40064
+ }
40065
+
40066
+ if (path && scope.patches) {
40067
+ generatePatches(state, path, scope.patches, scope.inversePatches);
40068
+ }
40069
+ }
40070
+
40071
+ return state.copy;
40072
+ };
40073
+ /**
40074
+ * @internal
40075
+ * Finalize all drafts in the given state tree.
40076
+ */
40077
+
40078
+
40079
+ Immer.prototype.finalizeTree = function finalizeTree (root, rootPath, scope) {
40080
+ var this$1$1 = this;
40081
+
40082
+ var state = root[DRAFT_STATE];
40083
+
40084
+ if (state) {
40085
+ if (!this.useProxies) {
40086
+ // Create the final copy, with added keys and without deleted keys.
40087
+ state.copy = shallowCopy(state.draft, true);
40088
+ }
40089
+
40090
+ root = state.copy;
40091
+ }
40092
+
40093
+ var needPatches = !!rootPath && !!scope.patches;
40094
+
40095
+ var finalizeProperty = function (prop, value, parent) {
40096
+ if (value === parent) {
40097
+ throw Error("Immer forbids circular references");
40098
+ } // In the `finalizeTree` method, only the `root` object may be a draft.
40099
+
40100
+
40101
+ var isDraftProp = !!state && parent === root;
40102
+
40103
+ if (isDraft(value)) {
40104
+ var path = isDraftProp && needPatches && !state.assigned[prop] ? rootPath.concat(prop) : null; // Drafts owned by `scope` are finalized here.
40105
+
40106
+ value = this$1$1.finalize(value, path, scope); // Drafts from another scope must prevent auto-freezing.
40107
+
40108
+ if (isDraft(value)) {
40109
+ scope.canAutoFreeze = false;
40110
+ } // Preserve non-enumerable properties.
40111
+
40112
+
40113
+ if (Array.isArray(parent) || isEnumerable(parent, prop)) {
40114
+ parent[prop] = value;
40115
+ } else {
40116
+ Object.defineProperty(parent, prop, {
40117
+ value: value
40118
+ });
40119
+ } // Unchanged drafts are never passed to the `onAssign` hook.
40120
+
40121
+
40122
+ if (isDraftProp && value === state.base[prop]) { return; }
40123
+ } // Unchanged draft properties are ignored.
40124
+ else if (isDraftProp && is(value, state.base[prop])) {
40125
+ return;
40126
+ } // Search new objects for unfinalized drafts. Frozen objects should never contain drafts.
40127
+ else if (isDraftable(value) && !Object.isFrozen(value)) {
40128
+ each(value, finalizeProperty);
40129
+ }
40130
+
40131
+ if (isDraftProp && this$1$1.onAssign) {
40132
+ this$1$1.onAssign(state, prop, value);
40133
+ }
40134
+ };
40135
+
40136
+ each(root, finalizeProperty);
40137
+ return root;
40138
+ };
40139
+
40140
+ var immer = new Immer();
40141
+ /**
40142
+ * The `produce` function takes a value and a "recipe function" (whose
40143
+ * return value often depends on the base state). The recipe function is
40144
+ * free to mutate its first argument however it wants. All mutations are
40145
+ * only ever applied to a __copy__ of the base state.
40146
+ *
40147
+ * Pass only a function to create a "curried producer" which relieves you
40148
+ * from passing the recipe function every time.
40149
+ *
40150
+ * Only plain objects and arrays are made mutable. All other objects are
40151
+ * considered uncopyable.
40152
+ *
40153
+ * Note: This function is __bound__ to its `Immer` instance.
40154
+ *
40155
+ * @param {any} base - the initial state
40156
+ * @param {Function} producer - function that receives a proxy of the base state as first argument and which can be freely modified
40157
+ * @param {Function} patchListener - optional function that will be called with all the patches produced here
40158
+ * @returns {any} a new state, or the initial state if nothing was modified
40159
+ */
40160
+
40161
+ var produce = immer.produce;
40162
+ /**
40163
+ * Like `produce`, but `produceWithPatches` always returns a tuple
40164
+ * [nextState, patches, inversePatches] (instead of just the next state)
40165
+ */
40166
+
40167
+ immer.produceWithPatches.bind(immer);
40168
+ /**
40169
+ * Pass true to automatically freeze all copies created by Immer.
40170
+ *
40171
+ * By default, auto-freezing is disabled in production.
40172
+ */
40173
+
40174
+ immer.setAutoFreeze.bind(immer);
40175
+ /**
40176
+ * Pass true to use the ES2015 `Proxy` class when creating drafts, which is
40177
+ * always faster than using ES5 proxies.
40178
+ *
40179
+ * By default, feature detection is used, so calling this is rarely necessary.
40180
+ */
40181
+
40182
+ immer.setUseProxies.bind(immer);
40183
+ /**
40184
+ * Apply an array of Immer patches to the first argument.
40185
+ *
40186
+ * This function is a producer, which means copy-on-write is in effect.
40187
+ */
40188
+
40189
+ immer.applyPatches.bind(immer);
40190
+ /**
40191
+ * Create an Immer draft from the given base state, which may be a draft itself.
40192
+ * The draft can be modified until you finalize it with the `finishDraft` function.
40193
+ */
40194
+
40195
+ immer.createDraft.bind(immer);
40196
+ /**
40197
+ * Finalize an Immer draft from a `createDraft` call, returning the base state
40198
+ * (if no changes were made) or a modified copy. The draft must *not* be
40199
+ * mutated afterwards.
40200
+ *
40201
+ * Pass a function as the 2nd argument to generate Immer patches based on the
40202
+ * changes that were made.
40203
+ */
40204
+
40205
+ immer.finishDraft.bind(immer);
40206
+
40207
+ const createInitialState = formConfig => {
40208
+ let initialForm = {};
40209
+ const formConfigKeys = Object.keys(formConfig);
40210
+ for (let formKey of formConfigKeys) {
40211
+ initialForm[formKey] = {
40212
+ dirty: false,
40213
+ rawValue: formConfig[formKey].defaultValue || "",
40214
+ validators: formConfig[formKey].validators || [],
40215
+ constraints: formConfig[formKey].constraints || []
40216
+ };
40217
+ }
40218
+ // Because validators require the entire form we have to do a
40219
+ // second pass to add errors once the initial form has been
40220
+ // constructed
40221
+ for (let formKey of formConfigKeys) {
40222
+ let errors = computeErrors(formKey, initialForm);
40223
+ initialForm[formKey].errors = errors;
40224
+ initialForm[formKey].hasErrors = errors.length > 0;
40225
+ }
40226
+ return initialForm;
40227
+ };
40228
+
40229
+ const SET = "field/SET";
40230
+ const set$2 = fieldName => value => ({
40231
+ type: SET,
40232
+ payload: { fieldName, value }
40233
+ });
40234
+
40235
+ const CLEAR = "form/CLEAR";
40236
+ const clear = () => ({ type: CLEAR });
40237
+
40238
+ const ADD_VALIDATOR = "field/ADD_VALIDATOR";
40239
+ const addValidator = fieldName => validator => ({
40240
+ type: ADD_VALIDATOR,
40241
+ payload: { fieldName, validator }
40242
+ });
40243
+
40244
+ const createFormReducer = formConfig => (
40245
+ state = createInitialState(formConfig),
40246
+ action
40247
+ ) => {
40248
+ switch (action.type) {
40249
+ case SET:
40250
+ const changedFieldName = action.payload.fieldName;
40251
+ const newRawValue = action.payload.value;
40252
+
40253
+ return produce(state, draftState => {
40254
+ let originalValue = draftState[changedFieldName].rawValue;
40255
+ draftState[changedFieldName].rawValue = newRawValue;
40256
+ if (computeConstraints(changedFieldName, draftState).length > 0) {
40257
+ // If the change violates constraints, revert the change
40258
+ draftState[changedFieldName].rawValue = originalValue;
40259
+ return draftState;
40260
+ }
40261
+
40262
+ const fields = Object.entries(draftState);
40263
+ for (let entry of fields) {
40264
+ let fieldName = entry[0];
40265
+ let field = entry[1];
40266
+ let errors = computeErrors(fieldName, draftState);
40267
+ let dirty = fieldName === changedFieldName ? true : field.dirty;
40268
+ draftState[fieldName].errors = errors;
40269
+ draftState[fieldName].dirty = dirty;
40270
+ draftState[fieldName].hasErrors = errors.length > 0;
40271
+ }
40272
+ });
40273
+ case CLEAR:
40274
+ return createInitialState(formConfig);
40275
+ case ADD_VALIDATOR:
40276
+ const fieldWithOverride = action.payload.fieldName;
40277
+ const newValidator = action.payload.validator;
40278
+
40279
+ return produce(state, draftState => {
40280
+ draftState[fieldWithOverride].validators.push(newValidator);
40281
+ const fields = Object.entries(draftState);
40282
+ for (let entry of fields) {
40283
+ let fieldName = entry[0];
40284
+ let field = entry[1];
40285
+ let errors = computeErrors(fieldName, draftState);
40286
+ let dirty = field.dirty;
40287
+ draftState[fieldName].errors = errors;
40288
+ draftState[fieldName].dirty = dirty;
40289
+ draftState[fieldName].hasErrors = errors.length > 0;
40290
+ }
40291
+ });
40292
+ default:
40293
+ return state;
40294
+ }
40295
+ };
40296
+
40297
+ const createMapDispatchToProps = formConfig => {
40298
+ // Do memo-ization
40299
+ let cachedDispatch;
40300
+ let cacheValue;
40301
+ return dispatch => {
40302
+ if (dispatch == cachedDispatch) {
40303
+ return cacheValue;
40304
+ }
40305
+ let dispatchObj = {};
40306
+ dispatchObj.fields = {};
40307
+ const keys = Object.keys(formConfig);
40308
+ for (let fieldName of keys) {
40309
+ dispatchObj.fields[fieldName] = {
40310
+ set: value => dispatch(set$2(fieldName)(value)),
40311
+ addValidator: validator => dispatch(addValidator(fieldName)(validator))
40312
+ };
40313
+ }
40314
+ dispatchObj.form = { clear: () => dispatch(clear()) };
40315
+ cachedDispatch = dispatch;
40316
+ cacheValue = { actions: dispatchObj };
40317
+ return cacheValue;
40318
+ };
40319
+ };
40320
+
40321
+ const mapStateToProps = state => ({ fields: state });
40322
+
40323
+ const createFormState = formConfig => ({
40324
+ reducer: createFormReducer(formConfig),
40325
+ mapDispatchToProps: createMapDispatchToProps(formConfig),
40326
+ mapStateToProps: mapStateToProps
40327
+ });
40328
+
40329
+ var AddressForm = function AddressForm(_ref) {
40330
+ var _zipErrorMessages;
40331
+
40332
+ var _ref$variant = _ref.variant,
40333
+ variant = _ref$variant === void 0 ? "default" : _ref$variant,
40334
+ fields = _ref.fields,
40335
+ actions = _ref.actions,
40336
+ clearOnDismount = _ref.clearOnDismount,
40337
+ showErrors = _ref.showErrors,
40338
+ _ref$handleSubmit = _ref.handleSubmit,
40339
+ handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40340
+ showWalletCheckbox = _ref.showWalletCheckbox,
40341
+ saveToWallet = _ref.saveToWallet,
40342
+ walletCheckboxMarked = _ref.walletCheckboxMarked;
40343
+
40344
+ if (clearOnDismount) {
40345
+ useEffect$1(function () {
40346
+ return function () {
40347
+ return actions.form.clear();
40348
+ };
40349
+ }, []);
40350
+ }
40351
+
40352
+ var street1ErrorMessages = _defineProperty({}, required.error, "Street is required");
40353
+
40354
+ var cityErrorMessages = _defineProperty({}, required.error, "City is required");
40355
+
40356
+ var zipErrorMessages = (_zipErrorMessages = {}, _defineProperty(_zipErrorMessages, required.error, "Zip code is required"), _defineProperty(_zipErrorMessages, hasLength.error, "Zip code must be 5 or 9 digits"), _zipErrorMessages);
40357
+
40358
+ var stateProvinceErrorMessages = _defineProperty({}, required.error, "State or Province is required");
40359
+
40360
+ var countryErrorMessages = _defineProperty({}, required.error, "Country is required");
40361
+
40362
+ var isUS = fields.country.rawValue === "US";
40363
+ return /*#__PURE__*/React.createElement(FormContainer$1, {
40364
+ variant: variant,
40365
+ role: "form",
40366
+ "aria-label": "Address"
40367
+ }, /*#__PURE__*/React.createElement(FormInputColumn, null, /*#__PURE__*/React.createElement(CountryDropdown, {
40368
+ labelTextWhenNoError: "Country",
40369
+ errorMessages: countryErrorMessages,
40370
+ field: fields.country,
40371
+ onChange: function onChange(value) {
40372
+ actions.fields.country.set(value); // temporary measure to not dirty fields until
40373
+ // we can write a reset function for fields
40374
+
40375
+ if (fields.stateProvince.rawValue) {
40376
+ actions.fields.stateProvince.set("");
40377
+ }
40378
+
40379
+ if (fields.zip.rawValue) {
40380
+ actions.fields.zip.set("");
39266
40381
  }
39267
40382
  },
39268
40383
  showErrors: showErrors
@@ -42062,12 +43177,12 @@ LoginForm.mapDispatchToProps = mapDispatchToProps$5;
42062
43177
  * This source code is licensed under the MIT license found in the
42063
43178
  * LICENSE file in the root directory of this source tree.
42064
43179
  */
42065
- var b$2="function"===typeof Symbol&&Symbol.for,c$2=b$2?Symbol.for("react.element"):60103,d$1=b$2?Symbol.for("react.portal"):60106,e=b$2?Symbol.for("react.fragment"):60107,f$7=b$2?Symbol.for("react.strict_mode"):60108,g$1=b$2?Symbol.for("react.profiler"):60114,h$1=b$2?Symbol.for("react.provider"):60109,k$1=b$2?Symbol.for("react.context"):60110,l$1=b$2?Symbol.for("react.async_mode"):60111,m=b$2?Symbol.for("react.concurrent_mode"):60111,n$1=b$2?Symbol.for("react.forward_ref"):60112,p$1=b$2?Symbol.for("react.suspense"):60113,q$1=b$2?
42066
- Symbol.for("react.suspense_list"):60120,r$1=b$2?Symbol.for("react.memo"):60115,t$1=b$2?Symbol.for("react.lazy"):60116,v$1=b$2?Symbol.for("react.block"):60121,w$1=b$2?Symbol.for("react.fundamental"):60117,x$1=b$2?Symbol.for("react.responder"):60118,y$1=b$2?Symbol.for("react.scope"):60119;
42067
- function z$1(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$2:switch(a=a.type,a){case l$1:case m:case e:case g$1:case f$7:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n$1:case t$1:case r$1:case h$1:return a;default:return u}}case d$1:return u}}}function A$1(a){return z$1(a)===m}var AsyncMode=l$1;var ConcurrentMode=m;var ContextConsumer=k$1;var ContextProvider=h$1;var Element$1=c$2;var ForwardRef=n$1;var Fragment=e;var Lazy=t$1;var Memo=r$1;var Portal=d$1;
42068
- var Profiler=g$1;var StrictMode=f$7;var Suspense=p$1;var isAsyncMode=function(a){return A$1(a)||z$1(a)===l$1};var isConcurrentMode=A$1;var isContextConsumer=function(a){return z$1(a)===k$1};var isContextProvider=function(a){return z$1(a)===h$1};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$2};var isForwardRef=function(a){return z$1(a)===n$1};var isFragment=function(a){return z$1(a)===e};var isLazy=function(a){return z$1(a)===t$1};
42069
- var isMemo=function(a){return z$1(a)===r$1};var isPortal=function(a){return z$1(a)===d$1};var isProfiler=function(a){return z$1(a)===g$1};var isStrictMode=function(a){return z$1(a)===f$7};var isSuspense=function(a){return z$1(a)===p$1};
42070
- var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g$1||a===f$7||a===p$1||a===q$1||"object"===typeof a&&null!==a&&(a.$$typeof===t$1||a.$$typeof===r$1||a.$$typeof===h$1||a.$$typeof===k$1||a.$$typeof===n$1||a.$$typeof===w$1||a.$$typeof===x$1||a.$$typeof===y$1||a.$$typeof===v$1)};var typeOf=z$1;
43180
+ var b$1="function"===typeof Symbol&&Symbol.for,c$1=b$1?Symbol.for("react.element"):60103,d=b$1?Symbol.for("react.portal"):60106,e=b$1?Symbol.for("react.fragment"):60107,f$6=b$1?Symbol.for("react.strict_mode"):60108,g=b$1?Symbol.for("react.profiler"):60114,h=b$1?Symbol.for("react.provider"):60109,k=b$1?Symbol.for("react.context"):60110,l=b$1?Symbol.for("react.async_mode"):60111,m=b$1?Symbol.for("react.concurrent_mode"):60111,n=b$1?Symbol.for("react.forward_ref"):60112,p=b$1?Symbol.for("react.suspense"):60113,q=b$1?
43181
+ Symbol.for("react.suspense_list"):60120,r=b$1?Symbol.for("react.memo"):60115,t=b$1?Symbol.for("react.lazy"):60116,v=b$1?Symbol.for("react.block"):60121,w=b$1?Symbol.for("react.fundamental"):60117,x=b$1?Symbol.for("react.responder"):60118,y=b$1?Symbol.for("react.scope"):60119;
43182
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$1:switch(a=a.type,a){case l:case m:case e:case g:case f$6:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element$1=c$1;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
43183
+ var Profiler=g;var StrictMode=f$6;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$1};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
43184
+ var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f$6};var isSuspense=function(a){return z(a)===p};
43185
+ var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f$6||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
42071
43186
 
42072
43187
  var reactIs_production_min = {
42073
43188
  AsyncMode: AsyncMode,
@@ -42438,14 +43553,14 @@ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
42438
43553
 
42439
43554
  var ReactPropTypesSecret_1 = ReactPropTypesSecret;
42440
43555
 
42441
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
43556
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
42442
43557
 
42443
43558
  var printWarning = function() {};
42444
43559
 
42445
43560
  if (process.env.NODE_ENV !== 'production') {
42446
43561
  var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
42447
43562
  var loggedTypeFailures = {};
42448
- var has$2 = has$1;
43563
+ var has$3 = has$2;
42449
43564
 
42450
43565
  printWarning = function(text) {
42451
43566
  var message = 'Warning: ' + text;
@@ -42475,7 +43590,7 @@ if (process.env.NODE_ENV !== 'production') {
42475
43590
  function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
42476
43591
  if (process.env.NODE_ENV !== 'production') {
42477
43592
  for (var typeSpecName in typeSpecs) {
42478
- if (has$2(typeSpecs, typeSpecName)) {
43593
+ if (has$3(typeSpecs, typeSpecName)) {
42479
43594
  var error;
42480
43595
  // Prop type validation may throw. In case they do, we don't want to
42481
43596
  // fail the render phase where it didn't fail before. So we log it.
@@ -42874,7 +43989,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
42874
43989
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
42875
43990
  }
42876
43991
  for (var key in propValue) {
42877
- if (has$1(propValue, key)) {
43992
+ if (has$2(propValue, key)) {
42878
43993
  var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
42879
43994
  if (error instanceof Error) {
42880
43995
  return error;
@@ -42911,7 +44026,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
42911
44026
  if (checkerResult == null) {
42912
44027
  return null;
42913
44028
  }
42914
- if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
44029
+ if (checkerResult.data && has$2(checkerResult.data, 'expectedType')) {
42915
44030
  expectedTypes.push(checkerResult.data.expectedType);
42916
44031
  }
42917
44032
  }
@@ -42971,7 +44086,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
42971
44086
  var allKeys = objectAssign({}, props[propName], shapeTypes);
42972
44087
  for (var key in allKeys) {
42973
44088
  var checker = shapeTypes[key];
42974
- if (has$1(shapeTypes, key) && typeof checker !== 'function') {
44089
+ if (has$2(shapeTypes, key) && typeof checker !== 'function') {
42975
44090
  return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
42976
44091
  }
42977
44092
  if (!checker) {
@@ -43709,7 +44824,7 @@ var index_esm = /*#__PURE__*/Object.freeze({
43709
44824
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
43710
44825
  */
43711
44826
 
43712
- function ownKeys$2(object, enumerableOnly) {
44827
+ function ownKeys$3(object, enumerableOnly) {
43713
44828
  var keys = Object.keys(object);
43714
44829
 
43715
44830
  if (Object.getOwnPropertySymbols) {
@@ -43725,9 +44840,9 @@ function ownKeys$2(object, enumerableOnly) {
43725
44840
  function _objectSpread2$1(target) {
43726
44841
  for (var i = 1; i < arguments.length; i++) {
43727
44842
  var source = null != arguments[i] ? arguments[i] : {};
43728
- i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
44843
+ i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) {
43729
44844
  _defineProperty$1(target, key, source[key]);
43730
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {
44845
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) {
43731
44846
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
43732
44847
  });
43733
44848
  }
@@ -46695,7 +47810,24 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
46695
47810
  var minimum = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
46696
47811
  var blockPartialPaymentOverpay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
46697
47812
  var formConfig = lineItems.reduce(function (acc, item) {
46698
- var validators = createPartialAmountFormValidators(item, lineItems, maximum, minimum, blockPartialPaymentOverpay);
47813
+ var validators = [required(), validateSum(numberGreaterThanOrEqualTo(minimum), lineItems.filter(function (lineItem) {
47814
+ return lineItem != item;
47815
+ }).reduce(function (acc, curr) {
47816
+ return [].concat(_toConsumableArray(acc), [curr.id]);
47817
+ }, []))];
47818
+
47819
+ if (!!maximum) {
47820
+ validators.push(validateSum(numberLessThanOrEqualTo(maximum), lineItems.filter(function (lineItem) {
47821
+ return lineItem != item;
47822
+ }).reduce(function (acc, curr) {
47823
+ return [].concat(_toConsumableArray(acc), [curr.id]);
47824
+ }, [])));
47825
+ }
47826
+
47827
+ if (blockPartialPaymentOverpay) {
47828
+ validators.push(numberLessThanOrEqualTo(item.amount));
47829
+ }
47830
+
46699
47831
  return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, item.id, {
46700
47832
  validators: validators,
46701
47833
  constraints: [onlyNaturals()],
@@ -46714,29 +47846,6 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
46714
47846
  partialAmountFormMapDispatchToProps: mapDispatchToProps
46715
47847
  };
46716
47848
  };
46717
- var createPartialAmountFormValidators = function createPartialAmountFormValidators(item, lineItems, maximum) {
46718
- var minimum = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
46719
- var blockPartialPaymentOverpay = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
46720
- var validators = [required(), validateSum(numberGreaterThanOrEqualTo(minimum), lineItems.filter(function (lineItem) {
46721
- return lineItem != item;
46722
- }).reduce(function (acc, curr) {
46723
- return [].concat(_toConsumableArray(acc), [curr.id]);
46724
- }, []))];
46725
-
46726
- if (!!maximum) {
46727
- validators.push(validateSum(numberLessThanOrEqualTo(maximum), lineItems.filter(function (lineItem) {
46728
- return lineItem != item;
46729
- }).reduce(function (acc, curr) {
46730
- return [].concat(_toConsumableArray(acc), [curr.id]);
46731
- }, [])));
46732
- }
46733
-
46734
- if (blockPartialPaymentOverpay) {
46735
- validators.push(numberLessThanOrEqualTo(item.amount));
46736
- }
46737
-
46738
- return validators;
46739
- };
46740
47849
 
46741
47850
  var arrowColor = WHITE;
46742
47851
  var numberColor = MATISSE_BLUE;
@@ -47115,22 +48224,54 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
47115
48224
  var LoadingDetails = function LoadingDetails() {
47116
48225
  return /*#__PURE__*/React.createElement(Box, {
47117
48226
  padding: "0",
47118
- background: GRECIAN_GREY,
47119
- borderRadius: "4px",
47120
48227
  minHeight: "196px"
47121
- }, /*#__PURE__*/React.createElement(Cover, {
47122
- minHeight: "196px",
47123
- singleChild: true,
47124
- fillCenter: true
47125
- }, /*#__PURE__*/React.createElement(Center, {
47126
- intrinsic: true
47127
48228
  }, /*#__PURE__*/React.createElement(Box, {
47128
48229
  padding: "0",
47129
- extraStyles: "flex-grow: 1; display: flex; justify-content: center; align-items: center;"
48230
+ extraStyles: "position: absolute;\n height: 238px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;"
47130
48231
  }, /*#__PURE__*/React.createElement(Spinner$2, {
47131
48232
  size: "100",
47132
48233
  centerSpinner: true
47133
- })))));
48234
+ })), /*#__PURE__*/React.createElement(Stack, {
48235
+ childGap: "16px"
48236
+ }, /*#__PURE__*/React.createElement(Cluster, {
48237
+ nowrap: true,
48238
+ justify: "space-between",
48239
+ align: "start"
48240
+ }, /*#__PURE__*/React.createElement(LoadingLine, {
48241
+ exactWidth: "110px",
48242
+ height: "27px"
48243
+ }), /*#__PURE__*/React.createElement(LoadingLine, {
48244
+ exactWidth: "60px",
48245
+ height: "27px"
48246
+ })), /*#__PURE__*/React.createElement(SolidDivider$1, null), /*#__PURE__*/React.createElement(Box, {
48247
+ padding: "0.5rem 0"
48248
+ }, /*#__PURE__*/React.createElement(Stack, {
48249
+ direction: "row"
48250
+ }, /*#__PURE__*/React.createElement(LoadingLine, {
48251
+ exactWidth: "80px",
48252
+ height: "27px"
48253
+ }), /*#__PURE__*/React.createElement(LoadingLine, {
48254
+ exactWidth: "60px",
48255
+ height: "27px"
48256
+ })), /*#__PURE__*/React.createElement(Box, {
48257
+ padding: "4px 0"
48258
+ }), /*#__PURE__*/React.createElement(Stack, {
48259
+ direction: "row"
48260
+ }, /*#__PURE__*/React.createElement(LoadingLine, {
48261
+ exactWidth: "160px",
48262
+ height: "27px"
48263
+ }), /*#__PURE__*/React.createElement(LoadingLine, {
48264
+ exactWidth: "50px",
48265
+ height: "27px"
48266
+ }))), /*#__PURE__*/React.createElement(SolidDivider$1, null), /*#__PURE__*/React.createElement(Stack, {
48267
+ direction: "row"
48268
+ }, /*#__PURE__*/React.createElement(LoadingLine, {
48269
+ exactWidth: "100px",
48270
+ height: "30px"
48271
+ }), /*#__PURE__*/React.createElement(LoadingLine, {
48272
+ exactWidth: "70px",
48273
+ height: "30px"
48274
+ }))));
47134
48275
  };
47135
48276
 
47136
48277
  var ErrorDetails = function ErrorDetails() {
@@ -49367,5 +50508,5 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
49367
50508
 
49368
50509
  var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$U));
49369
50510
 
49370
- export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$5 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$4 as util, withWindowSize };
50511
+ export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$5 as constants, createPartialAmountFormState, index$4 as util, withWindowSize };
49371
50512
  //# sourceMappingURL=index.esm.js.map