@thecb/components 7.12.2-beta.8 → 7.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -195,6 +195,63 @@ function _nonIterableRest() {
195
195
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
196
196
  }
197
197
 
198
+ function _createForOfIteratorHelper(o, allowArrayLike) {
199
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
200
+
201
+ if (!it) {
202
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
203
+ if (it) o = it;
204
+ var i = 0;
205
+
206
+ var F = function () {};
207
+
208
+ return {
209
+ s: F,
210
+ n: function () {
211
+ if (i >= o.length) return {
212
+ done: true
213
+ };
214
+ return {
215
+ done: false,
216
+ value: o[i++]
217
+ };
218
+ },
219
+ e: function (e) {
220
+ throw e;
221
+ },
222
+ f: F
223
+ };
224
+ }
225
+
226
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
227
+ }
228
+
229
+ var normalCompletion = true,
230
+ didErr = false,
231
+ err;
232
+ return {
233
+ s: function () {
234
+ it = it.call(o);
235
+ },
236
+ n: function () {
237
+ var step = it.next();
238
+ normalCompletion = step.done;
239
+ return step;
240
+ },
241
+ e: function (e) {
242
+ didErr = true;
243
+ err = e;
244
+ },
245
+ f: function () {
246
+ try {
247
+ if (!normalCompletion && it.return != null) it.return();
248
+ } finally {
249
+ if (didErr) throw err;
250
+ }
251
+ }
252
+ };
253
+ }
254
+
198
255
  /*! *****************************************************************************
199
256
  Copyright (c) Microsoft Corporation.
200
257
 
@@ -14111,6 +14168,7 @@ var TimeoutImage = function TimeoutImage() {
14111
14168
  };
14112
14169
 
14113
14170
  var AutopayOnIcon = function AutopayOnIcon() {
14171
+ var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : SEA_GREEN;
14114
14172
  return /*#__PURE__*/React.createElement("svg", {
14115
14173
  xmlns: "http://www.w3.org/2000/svg",
14116
14174
  width: "12",
@@ -14123,7 +14181,7 @@ var AutopayOnIcon = function AutopayOnIcon() {
14123
14181
  strokeWidth: "1"
14124
14182
  }, /*#__PURE__*/React.createElement("path", {
14125
14183
  className: "autopayIcon",
14126
- fill: SEA_GREEN,
14184
+ fill: color,
14127
14185
  fillRule: "nonzero",
14128
14186
  d: "M1.898 5.75c.079 0 .141-.02.188-.059a.281.281 0 00.094-.152 3.825 3.825 0 011.394-2.144A3.838 3.838 0 016 2.563c.5 0 .98.09 1.441.27.461.179.88.44 1.254.784l-.984.985A.542.542 0 007.547 5c0 .156.055.29.164.398.11.11.242.165.398.165h3.141c.156 0 .289-.055.398-.165A.542.542 0 0011.812 5V1.86a.542.542 0 00-.164-.399.542.542 0 00-.398-.164.542.542 0 00-.398.164l-.844.844A5.699 5.699 0 006 .688c-.938 0-1.809.207-2.613.62-.805.415-1.48.981-2.028 1.7A5.726 5.726 0 00.281 5.422a.265.265 0 00.059.223c.055.07.129.105.222.105h1.336zM6 12.312c.937 0 1.809-.207 2.613-.62a5.919 5.919 0 002.028-1.7 5.726 5.726 0 001.078-2.414.265.265 0 00-.059-.223.267.267 0 00-.223-.105h-1.335c-.079 0-.141.02-.188.059a.281.281 0 00-.094.152 3.825 3.825 0 01-1.394 2.144c-.711.555-1.52.833-2.426.833-.5 0-.98-.09-1.441-.27a3.985 3.985 0 01-1.254-.785l.984-.985A.542.542 0 004.453 8a.542.542 0 00-.164-.398.542.542 0 00-.398-.164H.75a.542.542 0 00-.398.164A.542.542 0 00.187 8v3.14c0 .157.055.29.165.4.109.108.242.163.398.163.156 0 .29-.055.398-.164l.844-.844A5.699 5.699 0 006 12.312z"
14129
14187
  })));
@@ -17762,63 +17820,7 @@ var fallbackValues$4 = {
17762
17820
  link: link
17763
17821
  };
17764
17822
 
17765
- /*
17766
-
17767
- A utility function that can generate box-shadow values for components
17768
- Takes a string representing an rgb color value and returns an object
17769
- with values for standard, inset, and overlay shadows.
17770
-
17771
- The objects for standard and inset shadows contain versions approiate
17772
- for base, hover, and active interaction states.
17773
-
17774
- */
17775
-
17776
- /*
17777
- Function to convert string representing rgb color to rgba value with provided opacity
17778
- ("rgb(41, 42, 51)", "0.1") => "rgba(41, 42, 51, 0.1)"
17779
-
17780
- */
17781
- var rgbToRgba = function rgbToRgba() {
17782
- var rgbValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
17783
- var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
17784
-
17785
- if (typeof rgbValue !== "string" || typeof opacity !== "string" || rgbValue.charAt(0) === "#") {
17786
- return "";
17787
- }
17788
-
17789
- return "".concat(rgbValue.slice(0, 3), "a").concat(rgbValue.slice(3, -1), ", ").concat(opacity).concat(rgbValue.slice(-1));
17790
- };
17791
-
17792
- var generateShadows = function generateShadows() {
17793
- var baseColorRGB = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgb(41, 42, 51)";
17794
- var colorTen = rgbToRgba(baseColorRGB, "0.1") || "rgba(41, 42, 51, 0.1)";
17795
- var colorTwenty = rgbToRgba(baseColorRGB, "0.2") || "rgba(41, 42, 51, 0.2)";
17796
- var colorTwentyFive = rgbToRgba(baseColorRGB, "0.25") || "rgba(41, 42, 51, 0.25)";
17797
- var colorThirty = rgbToRgba(baseColorRGB, "0.3") || "rgba(41, 42, 51, 0.3)";
17798
- var blackTwentyFive = "rgba(0, 0, 0, 0.25)";
17799
- var standard = {
17800
- base: "0px 1px 2px 0px ".concat(colorTen, ", 0px 2px 6px 0px ").concat(colorTwenty, ", inset 0px 1px 0px 0px ").concat(colorTen),
17801
- hover: "0px 1px 2px 0px ".concat(colorTwenty, ", 0px 4px 8px 0px ").concat(blackTwentyFive, ", 0px 6px 12px 0px ").concat(colorTen),
17802
- active: "0px 2px 8px 0px ".concat(colorTwenty, ", 0px 4px 8px 0px ").concat(colorThirty, ", 0px 6px 12px 0px ").concat(colorTwentyFive)
17803
- };
17804
- var inset = {
17805
- base: "0px 1px 2px 0px ".concat(colorTen, ", 0px 2px 4px 0px ").concat(colorTwenty, ", inset 0px 1px 0px 0px ").concat(colorTen),
17806
- hover: "0px 1px 2px 0px ".concat(colorTen, ", 0px 2px 4px 0px ").concat(colorTwentyFive, ", 0px 4px 8px 0px ").concat(colorTen),
17807
- active: "0px 1px 2px 2px ".concat(colorTwenty, ", 0px 3px 6px 0px ").concat(colorThirty, ", 0px 4px 8px 0px ").concat(colorTwenty)
17808
- };
17809
- var overlay = {
17810
- base: "0px 7px 32px 0px ".concat(colorTwenty, ", 0px 1px 4px 0px ").concat(colorTwenty, ", 0px 1px 8px -1px ").concat(colorThirty)
17811
- };
17812
- return {
17813
- standard: standard,
17814
- inset: inset,
17815
- overlay: overlay
17816
- };
17817
- };
17818
-
17819
17823
  var Alert = function Alert(_ref) {
17820
- var _generateShadows, _generateShadows$inse;
17821
-
17822
17824
  var heading = _ref.heading,
17823
17825
  text = _ref.text,
17824
17826
  textOverride = _ref.textOverride,
@@ -17832,13 +17834,7 @@ var Alert = function Alert(_ref) {
17832
17834
  showQuitLink = _ref$showQuitLink === void 0 ? true : _ref$showQuitLink,
17833
17835
  themeValues = _ref.themeValues,
17834
17836
  extraStyles = _ref.extraStyles,
17835
- maxContentWidth = _ref.maxContentWidth,
17836
- _ref$noBorder = _ref.noBorder,
17837
- noBorder = _ref$noBorder === void 0 ? false : _ref$noBorder,
17838
- _ref$enableBoxShadow = _ref.enableBoxShadow,
17839
- enableBoxShadow = _ref$enableBoxShadow === void 0 ? false : _ref$enableBoxShadow,
17840
- _ref$enableSmallText = _ref.enableSmallText,
17841
- enableSmallText = _ref$enableSmallText === void 0 ? false : _ref$enableSmallText;
17837
+ maxContentWidth = _ref.maxContentWidth;
17842
17838
  var Icon = AlertIcons[variant];
17843
17839
  var content = /*#__PURE__*/React.createElement(Sidebar, {
17844
17840
  width: "24px",
@@ -17868,7 +17864,7 @@ var Alert = function Alert(_ref) {
17868
17864
  fullHeight: true,
17869
17865
  childGap: "0.25rem"
17870
17866
  }, /*#__PURE__*/React.createElement(Text$1, {
17871
- variant: enableSmallText ? "pS" : "p",
17867
+ variant: "p",
17872
17868
  color: themeValues.text,
17873
17869
  weight: "600"
17874
17870
  }, heading), /*#__PURE__*/React.createElement(Text$1, {
@@ -17890,8 +17886,7 @@ var Alert = function Alert(_ref) {
17890
17886
  background: themeValues.background,
17891
17887
  borderRadius: "4px",
17892
17888
  borderColor: themeValues.border,
17893
- borderSize: noBorder ? "0px" : "1px",
17894
- boxShadow: enableBoxShadow ? (_generateShadows = generateShadows()) === null || _generateShadows === void 0 ? void 0 : (_generateShadows$inse = _generateShadows.inset) === null || _generateShadows$inse === void 0 ? void 0 : _generateShadows$inse.base : "",
17889
+ borderSize: "1px",
17895
17890
  extraStyles: extraStyles
17896
17891
  }, maxContentWidth ? /*#__PURE__*/React.createElement(Center, {
17897
17892
  maxWidth: maxContentWidth
@@ -21434,7 +21429,7 @@ var check = function (it) {
21434
21429
 
21435
21430
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
21436
21431
  var global_1 =
21437
- // eslint-disable-next-line es-x/no-global-this -- safe
21432
+ // eslint-disable-next-line es/no-global-this -- safe
21438
21433
  check(typeof globalThis == 'object' && globalThis) ||
21439
21434
  check(typeof window == 'object' && window) ||
21440
21435
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -21453,12 +21448,12 @@ var fails = function (exec) {
21453
21448
 
21454
21449
  // Detect IE8's incomplete defineProperty implementation
21455
21450
  var descriptors = !fails(function () {
21456
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
21451
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
21457
21452
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
21458
21453
  });
21459
21454
 
21460
21455
  var functionBindNative = !fails(function () {
21461
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
21456
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
21462
21457
  var test = (function () { /* empty */ }).bind();
21463
21458
  // eslint-disable-next-line no-prototype-builtins -- safe
21464
21459
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -21471,7 +21466,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
21471
21466
  };
21472
21467
 
21473
21468
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
21474
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21469
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21475
21470
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
21476
21471
 
21477
21472
  // Nashorn ~ JDK8 bug
@@ -21498,25 +21493,29 @@ var createPropertyDescriptor = function (bitmap, value) {
21498
21493
  };
21499
21494
 
21500
21495
  var FunctionPrototype = Function.prototype;
21501
- var bind$1 = FunctionPrototype.bind;
21502
21496
  var call$1 = FunctionPrototype.call;
21503
- var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
21497
+ var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
21504
21498
 
21505
- var functionUncurryThis = functionBindNative ? function (fn) {
21506
- return fn && uncurryThis(fn);
21507
- } : function (fn) {
21508
- return fn && function () {
21499
+ var functionUncurryThisRaw = function (fn) {
21500
+ return functionBindNative ? uncurryThisWithBind(fn) : function () {
21509
21501
  return call$1.apply(fn, arguments);
21510
21502
  };
21511
21503
  };
21512
21504
 
21513
- var toString$2 = functionUncurryThis({}.toString);
21514
- var stringSlice = functionUncurryThis(''.slice);
21505
+ var toString$2 = functionUncurryThisRaw({}.toString);
21506
+ var stringSlice = functionUncurryThisRaw(''.slice);
21515
21507
 
21516
21508
  var classofRaw = function (it) {
21517
21509
  return stringSlice(toString$2(it), 8, -1);
21518
21510
  };
21519
21511
 
21512
+ var functionUncurryThis = function (fn) {
21513
+ // Nashorn bug:
21514
+ // https://github.com/zloirock/core-js/issues/1128
21515
+ // https://github.com/zloirock/core-js/issues/1130
21516
+ if (classofRaw(fn) === 'Function') return functionUncurryThisRaw(fn);
21517
+ };
21518
+
21520
21519
  var $Object = Object;
21521
21520
  var split = functionUncurryThis(''.split);
21522
21521
 
@@ -21529,12 +21528,18 @@ var indexedObject = fails(function () {
21529
21528
  return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
21530
21529
  } : $Object;
21531
21530
 
21531
+ // we can't use just `it == null` since of `document.all` special case
21532
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
21533
+ var isNullOrUndefined = function (it) {
21534
+ return it === null || it === undefined;
21535
+ };
21536
+
21532
21537
  var $TypeError = TypeError;
21533
21538
 
21534
21539
  // `RequireObjectCoercible` abstract operation
21535
21540
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
21536
21541
  var requireObjectCoercible = function (it) {
21537
- if (it == undefined) throw $TypeError("Can't call method on " + it);
21542
+ if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
21538
21543
  return it;
21539
21544
  };
21540
21545
 
@@ -21546,13 +21551,31 @@ var toIndexedObject = function (it) {
21546
21551
  return indexedObject(requireObjectCoercible(it));
21547
21552
  };
21548
21553
 
21554
+ var documentAll = typeof document == 'object' && document.all;
21555
+
21556
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
21557
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
21558
+
21559
+ var documentAll_1 = {
21560
+ all: documentAll,
21561
+ IS_HTMLDDA: IS_HTMLDDA
21562
+ };
21563
+
21564
+ var documentAll$1 = documentAll_1.all;
21565
+
21549
21566
  // `IsCallable` abstract operation
21550
21567
  // https://tc39.es/ecma262/#sec-iscallable
21551
- var isCallable = function (argument) {
21568
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
21569
+ return typeof argument == 'function' || argument === documentAll$1;
21570
+ } : function (argument) {
21552
21571
  return typeof argument == 'function';
21553
21572
  };
21554
21573
 
21555
- var isObject = function (it) {
21574
+ var documentAll$2 = documentAll_1.all;
21575
+
21576
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
21577
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
21578
+ } : function (it) {
21556
21579
  return typeof it == 'object' ? it !== null : isCallable(it);
21557
21580
  };
21558
21581
 
@@ -21593,12 +21616,12 @@ if (!version && engineUserAgent) {
21593
21616
 
21594
21617
  var engineV8Version = version;
21595
21618
 
21596
- /* eslint-disable es-x/no-symbol -- required for testing */
21619
+ /* eslint-disable es/no-symbol -- required for testing */
21597
21620
 
21598
21621
 
21599
21622
 
21600
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
21601
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
21623
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
21624
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
21602
21625
  var symbol = Symbol();
21603
21626
  // Chrome 38 Symbol has incorrect toString conversion
21604
21627
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -21607,10 +21630,10 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
21607
21630
  !Symbol.sham && engineV8Version && engineV8Version < 41;
21608
21631
  });
21609
21632
 
21610
- /* eslint-disable es-x/no-symbol -- required for testing */
21633
+ /* eslint-disable es/no-symbol -- required for testing */
21611
21634
 
21612
21635
 
21613
- var useSymbolAsUid = nativeSymbol
21636
+ var useSymbolAsUid = symbolConstructorDetection
21614
21637
  && !Symbol.sham
21615
21638
  && typeof Symbol.iterator == 'symbol';
21616
21639
 
@@ -21645,7 +21668,7 @@ var aCallable = function (argument) {
21645
21668
  // https://tc39.es/ecma262/#sec-getmethod
21646
21669
  var getMethod = function (V, P) {
21647
21670
  var func = V[P];
21648
- return func == null ? undefined : aCallable(func);
21671
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
21649
21672
  };
21650
21673
 
21651
21674
  var $TypeError$2 = TypeError;
@@ -21660,7 +21683,7 @@ var ordinaryToPrimitive = function (input, pref) {
21660
21683
  throw $TypeError$2("Can't convert object to primitive value");
21661
21684
  };
21662
21685
 
21663
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
21686
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
21664
21687
  var defineProperty = Object.defineProperty;
21665
21688
 
21666
21689
  var defineGlobalProperty = function (key, value) {
@@ -21680,10 +21703,10 @@ var shared = createCommonjsModule(function (module) {
21680
21703
  (module.exports = function (key, value) {
21681
21704
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
21682
21705
  })('versions', []).push({
21683
- version: '3.24.1',
21706
+ version: '3.25.5',
21684
21707
  mode: 'global',
21685
21708
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
21686
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
21709
+ license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
21687
21710
  source: 'https://github.com/zloirock/core-js'
21688
21711
  });
21689
21712
  });
@@ -21700,7 +21723,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
21700
21723
 
21701
21724
  // `HasOwnProperty` abstract operation
21702
21725
  // https://tc39.es/ecma262/#sec-hasownproperty
21703
- // eslint-disable-next-line es-x/no-object-hasown -- safe
21726
+ // eslint-disable-next-line es/no-object-hasown -- safe
21704
21727
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
21705
21728
  return hasOwnProperty(toObject(it), key);
21706
21729
  };
@@ -21719,9 +21742,9 @@ var symbolFor = Symbol$1 && Symbol$1['for'];
21719
21742
  var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
21720
21743
 
21721
21744
  var wellKnownSymbol = function (name) {
21722
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
21745
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(symbolConstructorDetection || typeof WellKnownSymbolsStore[name] == 'string')) {
21723
21746
  var description = 'Symbol.' + name;
21724
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
21747
+ if (symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)) {
21725
21748
  WellKnownSymbolsStore[name] = Symbol$1[name];
21726
21749
  } else if (useSymbolAsUid && symbolFor) {
21727
21750
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -21767,13 +21790,13 @@ var documentCreateElement = function (it) {
21767
21790
 
21768
21791
  // Thanks to IE8 for its funny defineProperty
21769
21792
  var ie8DomDefine = !descriptors && !fails(function () {
21770
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
21793
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
21771
21794
  return Object.defineProperty(documentCreateElement('div'), 'a', {
21772
21795
  get: function () { return 7; }
21773
21796
  }).a != 7;
21774
21797
  });
21775
21798
 
21776
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21799
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21777
21800
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
21778
21801
 
21779
21802
  // `Object.getOwnPropertyDescriptor` method
@@ -21794,7 +21817,7 @@ var objectGetOwnPropertyDescriptor = {
21794
21817
  // V8 ~ Chrome 36-
21795
21818
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
21796
21819
  var v8PrototypeDefineBug = descriptors && fails(function () {
21797
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
21820
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
21798
21821
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
21799
21822
  value: 42,
21800
21823
  writable: false
@@ -21811,9 +21834,9 @@ var anObject = function (argument) {
21811
21834
  };
21812
21835
 
21813
21836
  var $TypeError$5 = TypeError;
21814
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
21837
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
21815
21838
  var $defineProperty = Object.defineProperty;
21816
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21839
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21817
21840
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
21818
21841
  var ENUMERABLE = 'enumerable';
21819
21842
  var CONFIGURABLE = 'configurable';
@@ -21860,7 +21883,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
21860
21883
  };
21861
21884
 
21862
21885
  var FunctionPrototype$1 = Function.prototype;
21863
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21886
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21864
21887
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
21865
21888
 
21866
21889
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -21887,7 +21910,7 @@ var inspectSource = sharedStore.inspectSource;
21887
21910
 
21888
21911
  var WeakMap$1 = global_1.WeakMap;
21889
21912
 
21890
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
21913
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
21891
21914
 
21892
21915
  var keys$1 = shared('keys');
21893
21916
 
@@ -21915,28 +21938,30 @@ var getterFor = function (TYPE) {
21915
21938
  };
21916
21939
  };
21917
21940
 
21918
- if (nativeWeakMap || sharedStore.state) {
21941
+ if (weakMapBasicDetection || sharedStore.state) {
21919
21942
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
21920
- var wmget = functionUncurryThis(store$1.get);
21921
- var wmhas = functionUncurryThis(store$1.has);
21922
- var wmset = functionUncurryThis(store$1.set);
21943
+ /* eslint-disable no-self-assign -- prototype methods protection */
21944
+ store$1.get = store$1.get;
21945
+ store$1.has = store$1.has;
21946
+ store$1.set = store$1.set;
21947
+ /* eslint-enable no-self-assign -- prototype methods protection */
21923
21948
  set = function (it, metadata) {
21924
- if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
21949
+ if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
21925
21950
  metadata.facade = it;
21926
- wmset(store$1, it, metadata);
21951
+ store$1.set(it, metadata);
21927
21952
  return metadata;
21928
21953
  };
21929
21954
  get = function (it) {
21930
- return wmget(store$1, it) || {};
21955
+ return store$1.get(it) || {};
21931
21956
  };
21932
21957
  has = function (it) {
21933
- return wmhas(store$1, it);
21958
+ return store$1.has(it);
21934
21959
  };
21935
21960
  } else {
21936
21961
  var STATE = sharedKey('state');
21937
21962
  hiddenKeys[STATE] = true;
21938
21963
  set = function (it, metadata) {
21939
- if (hasOwnProperty_1(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
21964
+ if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
21940
21965
  metadata.facade = it;
21941
21966
  createNonEnumerableProperty(it, STATE, metadata);
21942
21967
  return metadata;
@@ -21964,7 +21989,7 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
21964
21989
 
21965
21990
  var enforceInternalState = internalState.enforce;
21966
21991
  var getInternalState = internalState.get;
21967
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
21992
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
21968
21993
  var defineProperty = Object.defineProperty;
21969
21994
 
21970
21995
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
@@ -22033,7 +22058,7 @@ var floor = Math.floor;
22033
22058
 
22034
22059
  // `Math.trunc` method
22035
22060
  // https://tc39.es/ecma262/#sec-math.trunc
22036
- // eslint-disable-next-line es-x/no-math-trunc -- safe
22061
+ // eslint-disable-next-line es/no-math-trunc -- safe
22037
22062
  var mathTrunc = Math.trunc || function trunc(x) {
22038
22063
  var n = +x;
22039
22064
  return (n > 0 ? floor : ceil)(n);
@@ -22134,7 +22159,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
22134
22159
 
22135
22160
  // `Object.getOwnPropertyNames` method
22136
22161
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
22137
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
22162
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
22138
22163
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
22139
22164
  return objectKeysInternal(O, hiddenKeys$1);
22140
22165
  };
@@ -22143,7 +22168,7 @@ var objectGetOwnPropertyNames = {
22143
22168
  f: f$3
22144
22169
  };
22145
22170
 
22146
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
22171
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
22147
22172
  var f$4 = Object.getOwnPropertySymbols;
22148
22173
 
22149
22174
  var objectGetOwnPropertySymbols = {
@@ -22287,7 +22312,7 @@ var toString_1 = function (argument) {
22287
22312
  var charAt = functionUncurryThis(''.charAt);
22288
22313
 
22289
22314
  var FORCED = fails(function () {
22290
- // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
22315
+ // eslint-disable-next-line es/no-array-string-prototype-at -- safe
22291
22316
  return '𠮷'.at(-2) !== '\uD842';
22292
22317
  });
22293
22318
 
@@ -22305,14 +22330,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
22305
22330
 
22306
22331
  // `Object.keys` method
22307
22332
  // https://tc39.es/ecma262/#sec-object.keys
22308
- // eslint-disable-next-line es-x/no-object-keys -- safe
22333
+ // eslint-disable-next-line es/no-object-keys -- safe
22309
22334
  var objectKeys = Object.keys || function keys(O) {
22310
22335
  return objectKeysInternal(O, enumBugKeys);
22311
22336
  };
22312
22337
 
22313
22338
  // `Object.defineProperties` method
22314
22339
  // https://tc39.es/ecma262/#sec-object.defineproperties
22315
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
22340
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
22316
22341
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
22317
22342
  anObject(O);
22318
22343
  var props = toIndexedObject(Properties);
@@ -22401,7 +22426,7 @@ hiddenKeys[IE_PROTO] = true;
22401
22426
 
22402
22427
  // `Object.create` method
22403
22428
  // https://tc39.es/ecma262/#sec-object.create
22404
- // eslint-disable-next-line es-x/no-object-create -- safe
22429
+ // eslint-disable-next-line es/no-object-create -- safe
22405
22430
  var objectCreate = Object.create || function create(O, Properties) {
22406
22431
  var result;
22407
22432
  if (O !== null) {
@@ -22447,13 +22472,13 @@ _export({ target: 'Array', proto: true }, {
22447
22472
 
22448
22473
  addToUnscopables('at');
22449
22474
 
22450
- // eslint-disable-next-line es-x/no-typed-arrays -- safe
22451
- var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
22475
+ // eslint-disable-next-line es/no-typed-arrays -- safe
22476
+ var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
22452
22477
 
22453
22478
  var correctPrototypeGetter = !fails(function () {
22454
22479
  function F() { /* empty */ }
22455
22480
  F.prototype.constructor = null;
22456
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
22481
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
22457
22482
  return Object.getPrototypeOf(new F()) !== F.prototype;
22458
22483
  });
22459
22484
 
@@ -22463,7 +22488,7 @@ var ObjectPrototype = $Object$4.prototype;
22463
22488
 
22464
22489
  // `Object.getPrototypeOf` method
22465
22490
  // https://tc39.es/ecma262/#sec-object.getprototypeof
22466
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
22491
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
22467
22492
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
22468
22493
  var object = toObject(O);
22469
22494
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -22489,13 +22514,13 @@ var aPossiblePrototype = function (argument) {
22489
22514
  // `Object.setPrototypeOf` method
22490
22515
  // https://tc39.es/ecma262/#sec-object.setprototypeof
22491
22516
  // Works with __proto__ only. Old v8 can't work with null proto objects.
22492
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
22517
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
22493
22518
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
22494
22519
  var CORRECT_SETTER = false;
22495
22520
  var test = {};
22496
22521
  var setter;
22497
22522
  try {
22498
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22523
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22499
22524
  setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
22500
22525
  setter(test, []);
22501
22526
  CORRECT_SETTER = test instanceof Array;
@@ -22532,7 +22557,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
22532
22557
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
22533
22558
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
22534
22559
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
22535
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
22560
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
22536
22561
  var TYPED_ARRAY_TAG_REQUIRED = false;
22537
22562
  var NAME, Constructor, Prototype;
22538
22563
 
@@ -25636,7 +25661,7 @@ var fallbackValues$q = {
25636
25661
  var SpinnerSvgAnimation = styled.svg.withConfig({
25637
25662
  displayName: "Spinner__SpinnerSvgAnimation",
25638
25663
  componentId: "sc-vhupl9-0"
25639
- })(["animation:rotate 2s linear infinite;margin:-25px 0 0 -25px;width:", "px;height:", "px;& .path{stroke:", ";stroke-linecap:round;animation:dash 1.5s ease-in-out infinite;}@keyframes rotate{100%{transform:rotate(360deg);}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}", ""], function (_ref) {
25664
+ })(["animation:rotate 2s linear infinite;margin:-25px 0 0 -25px;width:", "px;height:", "px;& .path{stroke:", ";stroke-linecap:round;animation:dash 1.5s ease-in-out infinite;}@keyframes rotate{100%{transform:rotate(360deg);}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"], function (_ref) {
25640
25665
  var size = _ref.size;
25641
25666
  return size;
25642
25667
  }, function (_ref2) {
@@ -25645,36 +25670,19 @@ var SpinnerSvgAnimation = styled.svg.withConfig({
25645
25670
  }, function (_ref3) {
25646
25671
  var color = _ref3.color;
25647
25672
  return color;
25648
- }, function (_ref4) {
25649
- var centerSpinner = _ref4.centerSpinner;
25650
- return centerSpinner ? css(["margin:0;"]) : "";
25651
25673
  });
25652
25674
  var SpinnerContainer$2 = styled.div.withConfig({
25653
25675
  displayName: "Spinner__SpinnerContainer",
25654
25676
  componentId: "sc-vhupl9-1"
25655
- })(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;line-height:1;", ""], function (_ref5) {
25656
- var centerSpinner = _ref5.centerSpinner,
25657
- size = _ref5.size;
25658
- return centerSpinner ? css(["width:", "px;height:", "px;"], size, size) : "";
25659
- });
25660
- /*
25661
- `centerSpinner` prop alters existing styling of spinner to allow it to properly center itself within
25662
- containers. Default is false to preserve legacy behavior for past uses.
25663
- */
25677
+ })(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;line-height:1;"]);
25664
25678
 
25665
- var Spinner$1 = function Spinner(_ref6) {
25666
- var _ref6$size = _ref6.size,
25667
- size = _ref6$size === void 0 ? "24" : _ref6$size,
25668
- _ref6$centerSpinner = _ref6.centerSpinner,
25669
- centerSpinner = _ref6$centerSpinner === void 0 ? false : _ref6$centerSpinner,
25670
- themeValues = _ref6.themeValues;
25671
- return /*#__PURE__*/React.createElement(SpinnerContainer$2, {
25672
- centerSpinner: centerSpinner,
25673
- size: size
25674
- }, /*#__PURE__*/React.createElement(SpinnerSvgAnimation, {
25679
+ var Spinner$1 = function Spinner(_ref4) {
25680
+ var _ref4$size = _ref4.size,
25681
+ size = _ref4$size === void 0 ? "24" : _ref4$size,
25682
+ themeValues = _ref4.themeValues;
25683
+ return /*#__PURE__*/React.createElement(SpinnerContainer$2, null, /*#__PURE__*/React.createElement(SpinnerSvgAnimation, {
25675
25684
  size: size,
25676
- color: themeValues.color,
25677
- centerSpinner: centerSpinner
25685
+ color: themeValues.color
25678
25686
  }, /*#__PURE__*/React.createElement("circle", {
25679
25687
  className: "path",
25680
25688
  cx: "50",
@@ -37538,49 +37546,624 @@ var TableHeading_styled = styled.th.withConfig({
37538
37546
  return extraStyles;
37539
37547
  });
37540
37548
 
37541
- const validatorToPredicate = (validatorFn, emptyCase) => (
37542
- value,
37543
- ...rest
37544
- ) => (value === "" ? emptyCase : validatorFn(value, ...rest));
37549
+ var validatorToPredicate = function validatorToPredicate(validatorFn, emptyCase) {
37550
+ return function (value) {
37551
+ for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
37552
+ rest[_key - 1] = arguments[_key];
37553
+ }
37554
+
37555
+ return value === "" ? emptyCase : validatorFn.apply(void 0, [value].concat(rest));
37556
+ };
37557
+ };
37545
37558
 
37546
37559
  var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
37547
37560
 
37548
- var dayjs_min = {exports: {}};
37561
+ function getDefaultExportFromCjs(x) {
37562
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
37563
+ }
37564
+
37565
+ var dayjs_min = {
37566
+ exports: {}
37567
+ };
37549
37568
 
37550
37569
  (function (module, exports) {
37551
- !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}));
37552
- }(dayjs_min));
37570
+ !function (t, e) {
37571
+ module.exports = e();
37572
+ }(commonjsGlobal$1, function () {
37573
+ var t = 1e3,
37574
+ e = 6e4,
37575
+ n = 36e5,
37576
+ r = "millisecond",
37577
+ i = "second",
37578
+ s = "minute",
37579
+ u = "hour",
37580
+ a = "day",
37581
+ o = "week",
37582
+ f = "month",
37583
+ h = "quarter",
37584
+ c = "year",
37585
+ d = "date",
37586
+ $ = "Invalid Date",
37587
+ l = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
37588
+ 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,
37589
+ M = {
37590
+ name: "en",
37591
+ weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
37592
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_")
37593
+ },
37594
+ m = function m(t, e, n) {
37595
+ var r = String(t);
37596
+ return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
37597
+ },
37598
+ g = {
37599
+ s: m,
37600
+ z: function z(t) {
37601
+ var e = -t.utcOffset(),
37602
+ n = Math.abs(e),
37603
+ r = Math.floor(n / 60),
37604
+ i = n % 60;
37605
+ return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");
37606
+ },
37607
+ m: function t(e, n) {
37608
+ if (e.date() < n.date()) return -t(n, e);
37609
+ var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
37610
+ i = e.clone().add(r, f),
37611
+ s = n - i < 0,
37612
+ u = e.clone().add(r + (s ? -1 : 1), f);
37613
+ return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
37614
+ },
37615
+ a: function a(t) {
37616
+ return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
37617
+ },
37618
+ p: function p(t) {
37619
+ return {
37620
+ M: f,
37621
+ y: c,
37622
+ w: o,
37623
+ d: a,
37624
+ D: d,
37625
+ h: u,
37626
+ m: s,
37627
+ s: i,
37628
+ ms: r,
37629
+ Q: h
37630
+ }[t] || String(t || "").toLowerCase().replace(/s$/, "");
37631
+ },
37632
+ u: function u(t) {
37633
+ return void 0 === t;
37634
+ }
37635
+ },
37636
+ D = "en",
37637
+ v = {};
37553
37638
 
37554
- var dayjs = dayjs_min.exports;
37639
+ v[D] = M;
37555
37640
 
37556
- var customParseFormat$1 = {exports: {}};
37641
+ var p = function p(t) {
37642
+ return t instanceof _;
37643
+ },
37644
+ S = function S(t, e, n) {
37645
+ var r;
37646
+ if (!t) return D;
37647
+ if ("string" == typeof t) v[t] && (r = t), e && (v[t] = e, r = t);else {
37648
+ var i = t.name;
37649
+ v[i] = t, r = i;
37650
+ }
37651
+ return !n && r && (D = r), r || !n && D;
37652
+ },
37653
+ w = function w(t, e) {
37654
+ if (p(t)) return t.clone();
37655
+ var n = "object" == _typeof(e) ? e : {};
37656
+ return n.date = t, n.args = arguments, new _(n);
37657
+ },
37658
+ O = g;
37659
+
37660
+ O.l = S, O.i = p, O.w = function (t, e) {
37661
+ return w(t, {
37662
+ locale: e.$L,
37663
+ utc: e.$u,
37664
+ x: e.$x,
37665
+ $offset: e.$offset
37666
+ });
37667
+ };
37557
37668
 
37558
- (function (module, exports) {
37559
- !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);};}}));
37560
- }(customParseFormat$1));
37669
+ var _ = function () {
37670
+ function M(t) {
37671
+ this.$L = S(t.locale, null, !0), this.parse(t);
37672
+ }
37673
+
37674
+ var m = M.prototype;
37675
+ return m.parse = function (t) {
37676
+ this.$d = function (t) {
37677
+ var e = t.date,
37678
+ n = t.utc;
37679
+ if (null === e) return new Date(NaN);
37680
+ if (O.u(e)) return new Date();
37681
+ if (e instanceof Date) return new Date(e);
37682
+
37683
+ if ("string" == typeof e && !/Z$/i.test(e)) {
37684
+ var r = e.match(l);
37685
+
37686
+ if (r) {
37687
+ var i = r[2] - 1 || 0,
37688
+ s = (r[7] || "0").substring(0, 3);
37689
+ 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);
37690
+ }
37691
+ }
37692
+
37693
+ return new Date(e);
37694
+ }(t), this.$x = t.x || {}, this.init();
37695
+ }, m.init = function () {
37696
+ var t = this.$d;
37697
+ 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();
37698
+ }, m.$utils = function () {
37699
+ return O;
37700
+ }, m.isValid = function () {
37701
+ return !(this.$d.toString() === $);
37702
+ }, m.isSame = function (t, e) {
37703
+ var n = w(t);
37704
+ return this.startOf(e) <= n && n <= this.endOf(e);
37705
+ }, m.isAfter = function (t, e) {
37706
+ return w(t) < this.startOf(e);
37707
+ }, m.isBefore = function (t, e) {
37708
+ return this.endOf(e) < w(t);
37709
+ }, m.$g = function (t, e, n) {
37710
+ return O.u(t) ? this[e] : this.set(n, t);
37711
+ }, m.unix = function () {
37712
+ return Math.floor(this.valueOf() / 1e3);
37713
+ }, m.valueOf = function () {
37714
+ return this.$d.getTime();
37715
+ }, m.startOf = function (t, e) {
37716
+ var n = this,
37717
+ r = !!O.u(e) || e,
37718
+ h = O.p(t),
37719
+ $ = function $(t, e) {
37720
+ var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
37721
+ return r ? i : i.endOf(a);
37722
+ },
37723
+ l = function l(t, e) {
37724
+ return O.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
37725
+ },
37726
+ y = this.$W,
37727
+ M = this.$M,
37728
+ m = this.$D,
37729
+ g = "set" + (this.$u ? "UTC" : "");
37730
+
37731
+ switch (h) {
37732
+ case c:
37733
+ return r ? $(1, 0) : $(31, 11);
37734
+
37735
+ case f:
37736
+ return r ? $(1, M) : $(0, M + 1);
37737
+
37738
+ case o:
37739
+ var D = this.$locale().weekStart || 0,
37740
+ v = (y < D ? y + 7 : y) - D;
37741
+ return $(r ? m - v : m + (6 - v), M);
37742
+
37743
+ case a:
37744
+ case d:
37745
+ return l(g + "Hours", 0);
37746
+
37747
+ case u:
37748
+ return l(g + "Minutes", 1);
37749
+
37750
+ case s:
37751
+ return l(g + "Seconds", 2);
37752
+
37753
+ case i:
37754
+ return l(g + "Milliseconds", 3);
37755
+
37756
+ default:
37757
+ return this.clone();
37758
+ }
37759
+ }, m.endOf = function (t) {
37760
+ return this.startOf(t, !1);
37761
+ }, m.$set = function (t, e) {
37762
+ var n,
37763
+ o = O.p(t),
37764
+ h = "set" + (this.$u ? "UTC" : ""),
37765
+ $ = (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],
37766
+ l = o === a ? this.$D + (e - this.$W) : e;
37767
+
37768
+ if (o === f || o === c) {
37769
+ var y = this.clone().set(d, 1);
37770
+ y.$d[$](l), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
37771
+ } else $ && this.$d[$](l);
37772
+
37773
+ return this.init(), this;
37774
+ }, m.set = function (t, e) {
37775
+ return this.clone().$set(t, e);
37776
+ }, m.get = function (t) {
37777
+ return this[O.p(t)]();
37778
+ }, m.add = function (r, h) {
37779
+ var d,
37780
+ $ = this;
37781
+ r = Number(r);
37782
+
37783
+ var l = O.p(h),
37784
+ y = function y(t) {
37785
+ var e = w($);
37786
+ return O.w(e.date(e.date() + Math.round(t * r)), $);
37787
+ };
37788
+
37789
+ if (l === f) return this.set(f, this.$M + r);
37790
+ if (l === c) return this.set(c, this.$y + r);
37791
+ if (l === a) return y(1);
37792
+ if (l === o) return y(7);
37793
+ var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[l] || 1,
37794
+ m = this.$d.getTime() + r * M;
37795
+ return O.w(m, this);
37796
+ }, m.subtract = function (t, e) {
37797
+ return this.add(-1 * t, e);
37798
+ }, m.format = function (t) {
37799
+ var e = this,
37800
+ n = this.$locale();
37801
+ if (!this.isValid()) return n.invalidDate || $;
37802
+
37803
+ var r = t || "YYYY-MM-DDTHH:mm:ssZ",
37804
+ i = O.z(this),
37805
+ s = this.$H,
37806
+ u = this.$m,
37807
+ a = this.$M,
37808
+ o = n.weekdays,
37809
+ f = n.months,
37810
+ h = function h(t, n, i, s) {
37811
+ return t && (t[n] || t(e, r)) || i[n].substr(0, s);
37812
+ },
37813
+ c = function c(t) {
37814
+ return O.s(s % 12 || 12, t, "0");
37815
+ },
37816
+ d = n.meridiem || function (t, e, n) {
37817
+ var r = t < 12 ? "AM" : "PM";
37818
+ return n ? r.toLowerCase() : r;
37819
+ },
37820
+ l = {
37821
+ YY: String(this.$y).slice(-2),
37822
+ YYYY: this.$y,
37823
+ M: a + 1,
37824
+ MM: O.s(a + 1, 2, "0"),
37825
+ MMM: h(n.monthsShort, a, f, 3),
37826
+ MMMM: h(f, a),
37827
+ D: this.$D,
37828
+ DD: O.s(this.$D, 2, "0"),
37829
+ d: String(this.$W),
37830
+ dd: h(n.weekdaysMin, this.$W, o, 2),
37831
+ ddd: h(n.weekdaysShort, this.$W, o, 3),
37832
+ dddd: o[this.$W],
37833
+ H: String(s),
37834
+ HH: O.s(s, 2, "0"),
37835
+ h: c(1),
37836
+ hh: c(2),
37837
+ a: d(s, u, !0),
37838
+ A: d(s, u, !1),
37839
+ m: String(u),
37840
+ mm: O.s(u, 2, "0"),
37841
+ s: String(this.$s),
37842
+ ss: O.s(this.$s, 2, "0"),
37843
+ SSS: O.s(this.$ms, 3, "0"),
37844
+ Z: i
37845
+ };
37561
37846
 
37562
- var customParseFormat = customParseFormat$1.exports;
37847
+ return r.replace(y, function (t, e) {
37848
+ return e || l[t] || i.replace(":", "");
37849
+ });
37850
+ }, m.utcOffset = function () {
37851
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
37852
+ }, m.diff = function (r, d, $) {
37853
+ var l,
37854
+ y = O.p(d),
37855
+ M = w(r),
37856
+ m = (M.utcOffset() - this.utcOffset()) * e,
37857
+ g = this - M,
37858
+ D = O.m(this, M);
37859
+ 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);
37860
+ }, m.daysInMonth = function () {
37861
+ return this.endOf(f).$D;
37862
+ }, m.$locale = function () {
37863
+ return v[this.$L];
37864
+ }, m.locale = function (t, e) {
37865
+ if (!t) return this.$L;
37866
+ var n = this.clone(),
37867
+ r = S(t, e, !0);
37868
+ return r && (n.$L = r), n;
37869
+ }, m.clone = function () {
37870
+ return O.w(this.$d, this);
37871
+ }, m.toDate = function () {
37872
+ return new Date(this.valueOf());
37873
+ }, m.toJSON = function () {
37874
+ return this.isValid() ? this.toISOString() : null;
37875
+ }, m.toISOString = function () {
37876
+ return this.$d.toISOString();
37877
+ }, m.toString = function () {
37878
+ return this.$d.toUTCString();
37879
+ }, M;
37880
+ }(),
37881
+ b = _.prototype;
37882
+
37883
+ return w.prototype = b, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function (t) {
37884
+ b[t[1]] = function (e) {
37885
+ return this.$g(e, t[0], t[1]);
37886
+ };
37887
+ }), w.extend = function (t, e) {
37888
+ return t.$i || (t(e, _, w), t.$i = !0), w;
37889
+ }, w.locale = S, w.isDayjs = p, w.unix = function (t) {
37890
+ return w(1e3 * t);
37891
+ }, w.en = v[D], w.Ls = v, w.p = {}, w;
37892
+ });
37893
+ })(dayjs_min);
37563
37894
 
37564
- var isSameOrBefore$1 = {exports: {}};
37895
+ var dayjs_minExports = dayjs_min.exports;
37896
+ var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
37897
+ var customParseFormat$1 = {
37898
+ exports: {}
37899
+ };
37565
37900
 
37566
37901
  (function (module, exports) {
37567
- !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)};}}));
37568
- }(isSameOrBefore$1));
37902
+ !function (t, e) {
37903
+ module.exports = e();
37904
+ }(commonjsGlobal$1, function () {
37905
+ var t = {
37906
+ LTS: "h:mm:ss A",
37907
+ LT: "h:mm A",
37908
+ L: "MM/DD/YYYY",
37909
+ LL: "MMMM D, YYYY",
37910
+ LLL: "MMMM D, YYYY h:mm A",
37911
+ LLLL: "dddd, MMMM D, YYYY h:mm A"
37912
+ },
37913
+ e = /(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,
37914
+ n = /\d\d/,
37915
+ r = /\d\d?/,
37916
+ i = /\d*[^\s\d-_:/()]+/,
37917
+ o = {},
37918
+ s = function s(t) {
37919
+ return (t = +t) + (t > 68 ? 1900 : 2e3);
37920
+ };
37569
37921
 
37570
- var isSameOrBefore = isSameOrBefore$1.exports;
37922
+ var a = function a(t) {
37923
+ return function (e) {
37924
+ this[t] = +e;
37925
+ };
37926
+ },
37927
+ f = [/[+-]\d\d:?(\d\d)?|Z/, function (t) {
37928
+ (this.zone || (this.zone = {})).offset = function (t) {
37929
+ if (!t) return 0;
37930
+ if ("Z" === t) return 0;
37931
+ var e = t.match(/([+-]|\d\d)/g),
37932
+ n = 60 * e[1] + (+e[2] || 0);
37933
+ return 0 === n ? 0 : "+" === e[0] ? -n : n;
37934
+ }(t);
37935
+ }],
37936
+ u = function u(t) {
37937
+ var e = o[t];
37938
+ return e && (e.indexOf ? e : e.s.concat(e.f));
37939
+ },
37940
+ h = function h(t, e) {
37941
+ var n,
37942
+ r = o.meridiem;
37943
+
37944
+ if (r) {
37945
+ for (var i = 1; i <= 24; i += 1) {
37946
+ if (t.indexOf(r(i, 0, e)) > -1) {
37947
+ n = i > 12;
37948
+ break;
37949
+ }
37950
+ }
37951
+ } else n = t === (e ? "pm" : "PM");
37952
+
37953
+ return n;
37954
+ },
37955
+ d = {
37956
+ A: [i, function (t) {
37957
+ this.afternoon = h(t, !1);
37958
+ }],
37959
+ a: [i, function (t) {
37960
+ this.afternoon = h(t, !0);
37961
+ }],
37962
+ S: [/\d/, function (t) {
37963
+ this.milliseconds = 100 * +t;
37964
+ }],
37965
+ SS: [n, function (t) {
37966
+ this.milliseconds = 10 * +t;
37967
+ }],
37968
+ SSS: [/\d{3}/, function (t) {
37969
+ this.milliseconds = +t;
37970
+ }],
37971
+ s: [r, a("seconds")],
37972
+ ss: [r, a("seconds")],
37973
+ m: [r, a("minutes")],
37974
+ mm: [r, a("minutes")],
37975
+ H: [r, a("hours")],
37976
+ h: [r, a("hours")],
37977
+ HH: [r, a("hours")],
37978
+ hh: [r, a("hours")],
37979
+ D: [r, a("day")],
37980
+ DD: [n, a("day")],
37981
+ Do: [i, function (t) {
37982
+ var e = o.ordinal,
37983
+ n = t.match(/\d+/);
37984
+ if (this.day = n[0], e) for (var r = 1; r <= 31; r += 1) {
37985
+ e(r).replace(/\[|\]/g, "") === t && (this.day = r);
37986
+ }
37987
+ }],
37988
+ M: [r, a("month")],
37989
+ MM: [n, a("month")],
37990
+ MMM: [i, function (t) {
37991
+ var e = u("months"),
37992
+ n = (u("monthsShort") || e.map(function (t) {
37993
+ return t.substr(0, 3);
37994
+ })).indexOf(t) + 1;
37995
+ if (n < 1) throw new Error();
37996
+ this.month = n % 12 || n;
37997
+ }],
37998
+ MMMM: [i, function (t) {
37999
+ var e = u("months").indexOf(t) + 1;
38000
+ if (e < 1) throw new Error();
38001
+ this.month = e % 12 || e;
38002
+ }],
38003
+ Y: [/[+-]?\d+/, a("year")],
38004
+ YY: [n, function (t) {
38005
+ this.year = s(t);
38006
+ }],
38007
+ YYYY: [/\d{4}/, a("year")],
38008
+ Z: f,
38009
+ ZZ: f
38010
+ };
37571
38011
 
37572
- var isSameOrAfter$1 = {exports: {}};
38012
+ function c(n) {
38013
+ var r, i;
38014
+ r = n, i = o && o.formats;
38015
+
38016
+ for (var s = (n = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function (e, n, r) {
38017
+ var o = r && r.toUpperCase();
38018
+ return n || i[r] || t[r] || i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function (t, e, n) {
38019
+ return e || n.slice(1);
38020
+ });
38021
+ })).match(e), a = s.length, f = 0; f < a; f += 1) {
38022
+ var u = s[f],
38023
+ h = d[u],
38024
+ c = h && h[0],
38025
+ l = h && h[1];
38026
+ s[f] = l ? {
38027
+ regex: c,
38028
+ parser: l
38029
+ } : u.replace(/^\[|\]$/g, "");
38030
+ }
38031
+
38032
+ return function (t) {
38033
+ for (var e = {}, n = 0, r = 0; n < a; n += 1) {
38034
+ var i = s[n];
38035
+ if ("string" == typeof i) r += i.length;else {
38036
+ var o = i.regex,
38037
+ f = i.parser,
38038
+ u = t.substr(r),
38039
+ h = o.exec(u)[0];
38040
+ f.call(e, h), t = t.replace(h, "");
38041
+ }
38042
+ }
38043
+
38044
+ return function (t) {
38045
+ var e = t.afternoon;
38046
+
38047
+ if (void 0 !== e) {
38048
+ var n = t.hours;
38049
+ e ? n < 12 && (t.hours += 12) : 12 === n && (t.hours = 0), delete t.afternoon;
38050
+ }
38051
+ }(e), e;
38052
+ };
38053
+ }
38054
+
38055
+ return function (t, e, n) {
38056
+ n.p.customParseFormat = !0, t && t.parseTwoDigitYear && (s = t.parseTwoDigitYear);
38057
+ var r = e.prototype,
38058
+ i = r.parse;
38059
+
38060
+ r.parse = function (t) {
38061
+ var e = t.date,
38062
+ r = t.utc,
38063
+ s = t.args;
38064
+ this.$u = r;
38065
+ var a = s[1];
38066
+
38067
+ if ("string" == typeof a) {
38068
+ var f = !0 === s[2],
38069
+ u = !0 === s[3],
38070
+ h = f || u,
38071
+ d = s[2];
38072
+ u && (d = s[2]), o = this.$locale(), !f && d && (o = n.Ls[d]), this.$d = function (t, e, n) {
38073
+ try {
38074
+ if (["x", "X"].indexOf(e) > -1) return new Date(("X" === e ? 1e3 : 1) * t);
38075
+ var r = c(e)(t),
38076
+ i = r.year,
38077
+ o = r.month,
38078
+ s = r.day,
38079
+ a = r.hours,
38080
+ f = r.minutes,
38081
+ u = r.seconds,
38082
+ h = r.milliseconds,
38083
+ d = r.zone,
38084
+ l = new Date(),
38085
+ m = s || (i || o ? 1 : l.getDate()),
38086
+ M = i || l.getFullYear(),
38087
+ Y = 0;
38088
+ i && !o || (Y = o > 0 ? o - 1 : l.getMonth());
38089
+ var p = a || 0,
38090
+ v = f || 0,
38091
+ D = u || 0,
38092
+ g = h || 0;
38093
+ 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);
38094
+ } catch (t) {
38095
+ return new Date("");
38096
+ }
38097
+ }(e, a, r), this.init(), d && !0 !== d && (this.$L = this.locale(d).$L), h && e != this.format(a) && (this.$d = new Date("")), o = {};
38098
+ } else if (a instanceof Array) for (var l = a.length, m = 1; m <= l; m += 1) {
38099
+ s[1] = a[m - 1];
38100
+ var M = n.apply(this, s);
38101
+
38102
+ if (M.isValid()) {
38103
+ this.$d = M.$d, this.$L = M.$L, this.init();
38104
+ break;
38105
+ }
38106
+
38107
+ m === l && (this.$d = new Date(""));
38108
+ } else i.call(this, t);
38109
+ };
38110
+ };
38111
+ });
38112
+ })(customParseFormat$1);
38113
+
38114
+ var customParseFormatExports = customParseFormat$1.exports;
38115
+ var customParseFormat = /*@__PURE__*/getDefaultExportFromCjs(customParseFormatExports);
38116
+ var isSameOrBefore$1 = {
38117
+ exports: {}
38118
+ };
37573
38119
 
37574
38120
  (function (module, exports) {
37575
- !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)};}}));
37576
- }(isSameOrAfter$1));
38121
+ !function (e, i) {
38122
+ module.exports = i();
38123
+ }(commonjsGlobal$1, function () {
38124
+ return function (e, i) {
38125
+ i.prototype.isSameOrBefore = function (e, i) {
38126
+ return this.isSame(e, i) || this.isBefore(e, i);
38127
+ };
38128
+ };
38129
+ });
38130
+ })(isSameOrBefore$1);
37577
38131
 
37578
- var isSameOrAfter = isSameOrAfter$1.exports;
38132
+ var isSameOrBeforeExports = isSameOrBefore$1.exports;
38133
+ var isSameOrBefore = /*@__PURE__*/getDefaultExportFromCjs(isSameOrBeforeExports);
38134
+ var isSameOrAfter$1 = {
38135
+ exports: {}
38136
+ };
38137
+
38138
+ (function (module, exports) {
38139
+ !function (e, t) {
38140
+ module.exports = t();
38141
+ }(commonjsGlobal$1, function () {
38142
+ return function (e, t) {
38143
+ t.prototype.isSameOrAfter = function (e, t) {
38144
+ return this.isSame(e, t) || this.isAfter(e, t);
38145
+ };
38146
+ };
38147
+ });
38148
+ })(isSameOrAfter$1);
37579
38149
 
38150
+ var isSameOrAfterExports = isSameOrAfter$1.exports;
38151
+ var isSameOrAfter = /*@__PURE__*/getDefaultExportFromCjs(isSameOrAfterExports);
37580
38152
  /* eslint-disable no-unused-vars */
37581
38153
 
37582
- const createValidator = (type, error) => {
37583
- let validator = (...args) => ({ type, args, error });
38154
+ var createValidator = function createValidator(type, error) {
38155
+ var validator = function validator() {
38156
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
38157
+ args[_key2] = arguments[_key2];
38158
+ }
38159
+
38160
+ return {
38161
+ type: type,
38162
+ args: args,
38163
+ error: error
38164
+ };
38165
+ };
38166
+
37584
38167
  validator.error = error;
37585
38168
  return validator;
37586
38169
  };
@@ -37588,30 +38171,38 @@ const createValidator = (type, error) => {
37588
38171
  dayjs.extend(customParseFormat);
37589
38172
  dayjs.extend(isSameOrBefore);
37590
38173
  dayjs.extend(isSameOrAfter);
38174
+ var validatorFns = {};
38175
+ var INCLUDED_IN = "validator/INCLUDED_IN";
38176
+ var INCLUDED_IN_ERROR = "error/INCLUDED_IN";
38177
+ var includedIn = createValidator(INCLUDED_IN, INCLUDED_IN_ERROR);
37591
38178
 
37592
- let validatorFns = {};
38179
+ validatorFns[INCLUDED_IN] = function (value, args, form) {
38180
+ return Array.isArray(args[0]) ? args[0].includes(value) : args[0] === value;
38181
+ };
37593
38182
 
37594
- const INCLUDED_IN = "validator/INCLUDED_IN";
37595
- const INCLUDED_IN_ERROR = "error/INCLUDED_IN";
37596
- const includedIn = createValidator(INCLUDED_IN, INCLUDED_IN_ERROR);
37597
- validatorFns[INCLUDED_IN] = (value, args, form) =>
37598
- Array.isArray(args[0]) ? args[0].includes(value) : args[0] === value;
38183
+ var REQUIRED = "validator/REQUIRED";
38184
+ var REQUIRED_ERROR = "error/REQUIRED";
38185
+ var required = createValidator(REQUIRED, REQUIRED_ERROR);
37599
38186
 
37600
- const REQUIRED = "validator/REQUIRED";
37601
- const REQUIRED_ERROR = "error/REQUIRED";
37602
- const required = createValidator(REQUIRED, REQUIRED_ERROR);
37603
- validatorFns[REQUIRED] = (value, args, form) => value !== "";
38187
+ validatorFns[REQUIRED] = function (value, args, form) {
38188
+ return value !== "";
38189
+ };
37604
38190
 
37605
- const ONLY_INTEGERS = "validator/ONLY_INTEGERS";
37606
- const ONLY_INTEGERS_ERROR = "error/ONLY_INTEGERS";
37607
- const onlyIntegers = createValidator(ONLY_INTEGERS, ONLY_INTEGERS_ERROR);
37608
- validatorFns[ONLY_INTEGERS] = (value, args, form) => /^(-?\d+)?$/.test(value);
38191
+ var ONLY_INTEGERS = "validator/ONLY_INTEGERS";
38192
+ var ONLY_INTEGERS_ERROR = "error/ONLY_INTEGERS";
38193
+ var onlyIntegers = createValidator(ONLY_INTEGERS, ONLY_INTEGERS_ERROR);
37609
38194
 
37610
- const ONLY_NATURALS = "validator/ONLY_NATURALS";
37611
- const ONLY_NATURALS_ERROR = "error/ONLY_NATURALS";
37612
- const onlyNaturals = createValidator(ONLY_NATURALS, ONLY_NATURALS_ERROR);
37613
- validatorFns[ONLY_NATURALS] = (value, args, form) => /^(\d+)?$/.test(value);
38195
+ validatorFns[ONLY_INTEGERS] = function (value, args, form) {
38196
+ return /^(-?\d+)?$/.test(value);
38197
+ };
37614
38198
 
38199
+ var ONLY_NATURALS = "validator/ONLY_NATURALS";
38200
+ var ONLY_NATURALS_ERROR = "error/ONLY_NATURALS";
38201
+ var onlyNaturals = createValidator(ONLY_NATURALS, ONLY_NATURALS_ERROR);
38202
+
38203
+ validatorFns[ONLY_NATURALS] = function (value, args, form) {
38204
+ return /^(\d+)?$/.test(value);
38205
+ };
37615
38206
  /*
37616
38207
  07/22: experimental expiration date constraint
37617
38208
  should allow entry of expiration date using "/" character
@@ -37621,439 +38212,464 @@ not tested as validation function
37621
38212
  to validate exp date instead use combo of:
37622
38213
  required(), hasLength(), isValidMonth(), dateAfterToday()
37623
38214
  */
37624
- const ONLY_EXPIRATION_DATE = "validator/ONLY_EXPIRATION_DATE";
37625
- const ONLY_EXPIRATION_DATE_ERROR = "error/ONLY_EXPIRATION_DATE";
37626
- const onlyExpirationDate = createValidator(
37627
- ONLY_EXPIRATION_DATE,
37628
- ONLY_EXPIRATION_DATE_ERROR
37629
- );
37630
- validatorFns[ONLY_EXPIRATION_DATE] = (value, args, form) =>
37631
- /^(\d?\d?\/?\d?\d?)?$/.test(value);
37632
-
37633
- const NUMBER_LESS_THAN = "validator/NUMBER_LESS_THAN";
37634
- const NUMBER_LESS_THAN_ERROR = "error/NUMBER_LESS_THAN";
37635
- const numberLessThan = createValidator(
37636
- NUMBER_LESS_THAN,
37637
- NUMBER_LESS_THAN_ERROR
37638
- );
37639
- validatorFns[NUMBER_LESS_THAN] = (value, args, form) => {
38215
+
38216
+
38217
+ var ONLY_EXPIRATION_DATE = "validator/ONLY_EXPIRATION_DATE";
38218
+ var ONLY_EXPIRATION_DATE_ERROR = "error/ONLY_EXPIRATION_DATE";
38219
+ var onlyExpirationDate = createValidator(ONLY_EXPIRATION_DATE, ONLY_EXPIRATION_DATE_ERROR);
38220
+
38221
+ validatorFns[ONLY_EXPIRATION_DATE] = function (value, args, form) {
38222
+ return /^(\d?\d?\/?\d?\d?)?$/.test(value);
38223
+ };
38224
+
38225
+ var NUMBER_LESS_THAN = "validator/NUMBER_LESS_THAN";
38226
+ var NUMBER_LESS_THAN_ERROR = "error/NUMBER_LESS_THAN";
38227
+ var numberLessThan = createValidator(NUMBER_LESS_THAN, NUMBER_LESS_THAN_ERROR);
38228
+
38229
+ validatorFns[NUMBER_LESS_THAN] = function (value, args, form) {
37640
38230
  if (value === "") {
37641
38231
  return true;
37642
38232
  }
38233
+
37643
38234
  return Number(value) < args[0];
37644
38235
  };
37645
38236
 
37646
- const NUMBER_LESS_THAN_OR_EQUAL_TO =
37647
- "validator/NUMBER_LESS_THAN_OR_EQUAL_TO";
37648
- const NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR =
37649
- "error/NUMBER_LESS_THAN_OR_EQUAL_TO";
37650
- const numberLessThanOrEqualTo = createValidator(
37651
- NUMBER_LESS_THAN_OR_EQUAL_TO,
37652
- NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR
37653
- );
37654
- validatorFns[NUMBER_LESS_THAN_OR_EQUAL_TO] = (value, args, form) => {
38237
+ var NUMBER_LESS_THAN_OR_EQUAL_TO = "validator/NUMBER_LESS_THAN_OR_EQUAL_TO";
38238
+ var NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR = "error/NUMBER_LESS_THAN_OR_EQUAL_TO";
38239
+ var numberLessThanOrEqualTo = createValidator(NUMBER_LESS_THAN_OR_EQUAL_TO, NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR);
38240
+
38241
+ validatorFns[NUMBER_LESS_THAN_OR_EQUAL_TO] = function (value, args, form) {
37655
38242
  if (value === "") {
37656
38243
  return true;
37657
38244
  }
38245
+
37658
38246
  return Number(value) <= args[0];
37659
38247
  };
37660
38248
 
37661
- const NUMBER_GREATER_THAN = "validator/NUMBER_GREATER_THAN";
37662
- const NUMBER_GREATER_THAN_ERROR = "error/NUMBER_GREATER_THAN";
37663
- const numberGreaterThan = createValidator(
37664
- NUMBER_GREATER_THAN,
37665
- NUMBER_GREATER_THAN_ERROR
37666
- );
37667
- validatorFns[NUMBER_GREATER_THAN] = (value, args, form) => {
38249
+ var NUMBER_GREATER_THAN = "validator/NUMBER_GREATER_THAN";
38250
+ var NUMBER_GREATER_THAN_ERROR = "error/NUMBER_GREATER_THAN";
38251
+ var numberGreaterThan = createValidator(NUMBER_GREATER_THAN, NUMBER_GREATER_THAN_ERROR);
38252
+
38253
+ validatorFns[NUMBER_GREATER_THAN] = function (value, args, form) {
37668
38254
  if (value === "") {
37669
38255
  return true;
37670
38256
  }
38257
+
37671
38258
  return Number(value) > args[0];
37672
38259
  };
37673
38260
 
37674
- const NUMBER_GREATER_THAN_OR_EQUAL_TO =
37675
- "validator/NUMBER_GREATER_THAN_OR_EQUAL_TO";
37676
- const NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR =
37677
- "error/NUMBER_GREATER_THAN_OR_EQUAL_TO";
37678
- const numberGreaterThanOrEqualTo = createValidator(
37679
- NUMBER_GREATER_THAN_OR_EQUAL_TO,
37680
- NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR
37681
- );
37682
- validatorFns[NUMBER_GREATER_THAN_OR_EQUAL_TO] = (value, args, form) => {
38261
+ var NUMBER_GREATER_THAN_OR_EQUAL_TO = "validator/NUMBER_GREATER_THAN_OR_EQUAL_TO";
38262
+ var NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR = "error/NUMBER_GREATER_THAN_OR_EQUAL_TO";
38263
+ var numberGreaterThanOrEqualTo = createValidator(NUMBER_GREATER_THAN_OR_EQUAL_TO, NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR);
38264
+
38265
+ validatorFns[NUMBER_GREATER_THAN_OR_EQUAL_TO] = function (value, args, form) {
37683
38266
  if (value === "") {
37684
38267
  return true;
37685
38268
  }
38269
+
37686
38270
  return Number(value) >= args[0];
37687
38271
  };
37688
38272
 
37689
- const MATCHES_FIELD = "validator/MATCHES_FIELD";
37690
- const MATCHES_FIELD_ERROR$1 = "error/MATCHES_FIELD";
37691
- const matchesField = createValidator(MATCHES_FIELD, MATCHES_FIELD_ERROR$1);
37692
- validatorFns[MATCHES_FIELD] = (value, args, form) => {
37693
- const dependentField = form[args[0]];
38273
+ var MATCHES_FIELD = "validator/MATCHES_FIELD";
38274
+ var MATCHES_FIELD_ERROR$1 = "error/MATCHES_FIELD";
38275
+ var matchesField = createValidator(MATCHES_FIELD, MATCHES_FIELD_ERROR$1);
38276
+
38277
+ validatorFns[MATCHES_FIELD] = function (value, args, form) {
38278
+ var dependentField = form[args[0]];
38279
+
37694
38280
  if (dependentField === undefined) {
37695
- throw new Error(
37696
- `${args[0]} was passed to matchesField, but that field does not exist in the form`
37697
- );
38281
+ throw new Error("".concat(args[0], " was passed to matchesField, but that field does not exist in the form"));
37698
38282
  }
37699
- const dependentFieldValue = dependentField.rawValue;
38283
+
38284
+ var dependentFieldValue = dependentField.rawValue;
37700
38285
  return value === dependentFieldValue;
37701
38286
  };
37702
38287
 
37703
- const validateWhenErrorMessage = type =>
37704
- `${type} was passed to validateWhen, but that validator type does not exist.
37705
- Please check that you are only calling validator creator functions exported from
37706
- redux-freeform in your form config and that you didn't forget to
37707
- invoke the validator creator (you cannot pass the functions themselves to
37708
- createFormState). Also make sure you aren't passing validateWhen() to validateWhen
37709
- as the primary validator.`;
37710
-
37711
- const VALIDATE_WHEN = "validator/VALIDATE_WHEN";
37712
- const VALIDATE_WHEN_ERROR = "error/VALIDATE_WHEN";
37713
- const validateWhen = (
37714
- dependentValidator,
37715
- primaryValidator,
37716
- optionalFieldName
37717
- ) => ({
37718
- type: VALIDATE_WHEN,
37719
- args: [dependentValidator, primaryValidator, optionalFieldName],
37720
- error: dependentValidator.error
37721
- });
38288
+ var validateWhenErrorMessage = function validateWhenErrorMessage(type) {
38289
+ return "".concat(type, " was passed to validateWhen, but that validator type does not exist.\n Please check that you are only calling validator creator functions exported from\n redux-freeform in your form config and that you didn't forget to\n invoke the validator creator (you cannot pass the functions themselves to\n createFormState). Also make sure you aren't passing validateWhen() to validateWhen\n as the primary validator.");
38290
+ };
38291
+
38292
+ var VALIDATE_WHEN = "validator/VALIDATE_WHEN";
38293
+ var VALIDATE_WHEN_ERROR = "error/VALIDATE_WHEN";
38294
+
38295
+ var validateWhen = function validateWhen(dependentValidator, primaryValidator, optionalFieldName) {
38296
+ return {
38297
+ type: VALIDATE_WHEN,
38298
+ args: [dependentValidator, primaryValidator, optionalFieldName],
38299
+ error: dependentValidator.error
38300
+ };
38301
+ };
38302
+
37722
38303
  validateWhen.error = VALIDATE_WHEN_ERROR;
37723
- validatorFns[VALIDATE_WHEN] = (value, args, form) => {
37724
- const [dependentValidator, primaryValidator, optionalFieldName] = args;
37725
- const dependsOnOtherField = typeof optionalFieldName === "string";
37726
-
37727
- if (
37728
- primaryValidator.type === undefined ||
37729
- typeof validatorFns[primaryValidator.type] !== "function"
37730
- ) {
38304
+
38305
+ validatorFns[VALIDATE_WHEN] = function (value, args, form) {
38306
+ var _args = _slicedToArray(args, 3),
38307
+ dependentValidator = _args[0],
38308
+ primaryValidator = _args[1],
38309
+ optionalFieldName = _args[2];
38310
+
38311
+ var dependsOnOtherField = typeof optionalFieldName === "string";
38312
+
38313
+ if (primaryValidator.type === undefined || typeof validatorFns[primaryValidator.type] !== "function") {
37731
38314
  throw new Error(validateWhenErrorMessage(primaryValidator.type));
37732
38315
  }
38316
+
37733
38317
  if (dependsOnOtherField && form[optionalFieldName] === undefined) {
37734
- throw new Error(
37735
- `${args[2]} was passed to matchesField, but that field does not exist in the form`
37736
- );
38318
+ throw new Error("".concat(args[2], " was passed to matchesField, but that field does not exist in the form"));
37737
38319
  }
37738
38320
 
37739
- const primaryPredicate = validatorToPredicate(
37740
- validatorFns[primaryValidator.type],
37741
- false
37742
- );
37743
- const primaryValue = dependsOnOtherField
37744
- ? form[optionalFieldName].rawValue
37745
- : value;
37746
- const primaryPredicatePassed = primaryPredicate(
37747
- primaryValue,
37748
- primaryValidator.args,
37749
- form
37750
- );
37751
-
37752
- return primaryPredicatePassed
37753
- ? validatorFns[dependentValidator.type](
37754
- value,
37755
- dependentValidator.args,
37756
- form
37757
- )
37758
- : true;
37759
- };
37760
-
37761
- const validateSumErrorMessage = type =>
37762
- `${type} was passed to validateSum, but that validator type does not exist.
37763
- Please check that you are only calling validator creator functions exported from
37764
- redux-freeform in your form config and that you didn't forget to
37765
- invoke the validator creator (you cannot pass the functions themselves to
37766
- createFormState).`;
37767
- const VALIDATE_SUM = "validator/VALIDATE_SUM";
37768
- const VALIDATE_SUM_ERROR = "error/VALIDATE_SUM";
37769
- const validateSum = (validator, fieldNamesArray) => ({
37770
- type: VALIDATE_SUM,
37771
- args: [validator, fieldNamesArray],
37772
- error: validator.error
37773
- });
38321
+ var primaryPredicate = validatorToPredicate(validatorFns[primaryValidator.type], false);
38322
+ var primaryValue = dependsOnOtherField ? form[optionalFieldName].rawValue : value;
38323
+ var primaryPredicatePassed = primaryPredicate(primaryValue, primaryValidator.args, form);
38324
+ return primaryPredicatePassed ? validatorFns[dependentValidator.type](value, dependentValidator.args, form) : true;
38325
+ };
38326
+
38327
+ var validateSumErrorMessage = function validateSumErrorMessage(type) {
38328
+ return "".concat(type, " was passed to validateSum, but that validator type does not exist.\n Please check that you are only calling validator creator functions exported from\n redux-freeform in your form config and that you didn't forget to\n invoke the validator creator (you cannot pass the functions themselves to\n createFormState).");
38329
+ };
38330
+
38331
+ var VALIDATE_SUM = "validator/VALIDATE_SUM";
38332
+ var VALIDATE_SUM_ERROR = "error/VALIDATE_SUM";
38333
+
38334
+ var validateSum = function validateSum(validator, fieldNamesArray) {
38335
+ return {
38336
+ type: VALIDATE_SUM,
38337
+ args: [validator, fieldNamesArray],
38338
+ error: validator.error
38339
+ };
38340
+ };
38341
+
37774
38342
  validateSum.error = VALIDATE_SUM_ERROR;
37775
- validatorFns[VALIDATE_SUM] = (value, args, form) => {
37776
- const [validator, fieldNamesArray] = args;
37777
38343
 
37778
- if (
37779
- validator.type === undefined ||
37780
- typeof validatorFns[validator.type] !== "function"
37781
- ) {
38344
+ validatorFns[VALIDATE_SUM] = function (value, args, form) {
38345
+ var _args2 = _slicedToArray(args, 2),
38346
+ validator = _args2[0],
38347
+ fieldNamesArray = _args2[1];
38348
+
38349
+ if (validator.type === undefined || typeof validatorFns[validator.type] !== "function") {
37782
38350
  throw new Error(validateSumErrorMessage(validator.type));
37783
38351
  }
37784
38352
 
37785
- for (const fieldName of fieldNamesArray) {
37786
- if (form[fieldName] === undefined) {
37787
- throw new Error(
37788
- `${fieldName} was passed to matchesField, but that field does not exist in the form`
37789
- );
38353
+ var _iterator = _createForOfIteratorHelper(fieldNamesArray),
38354
+ _step;
38355
+
38356
+ try {
38357
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
38358
+ var fieldName = _step.value;
38359
+
38360
+ if (form[fieldName] === undefined) {
38361
+ throw new Error("".concat(fieldName, " was passed to matchesField, but that field does not exist in the form"));
38362
+ }
37790
38363
  }
38364
+ } catch (err) {
38365
+ _iterator.e(err);
38366
+ } finally {
38367
+ _iterator.f();
37791
38368
  }
37792
38369
 
37793
- const sum = fieldNamesArray.reduce(
37794
- (acc, curr) => acc + Number(form[curr].rawValue),
37795
- Number(value)
37796
- );
37797
-
38370
+ var sum = fieldNamesArray.reduce(function (acc, curr) {
38371
+ return acc + Number(form[curr].rawValue);
38372
+ }, Number(value));
37798
38373
  return validatorFns[validator.type](sum, validator.args, form);
37799
38374
  };
37800
38375
 
37801
- const HAS_LENGTH = "validator/HAS_LENGTH";
37802
- const HAS_LENGTH_ERROR = "error/HAS_LENGTH";
37803
- const hasLength = createValidator(HAS_LENGTH, HAS_LENGTH_ERROR);
37804
- validatorFns[HAS_LENGTH] = (value, args, form) => {
38376
+ var HAS_LENGTH = "validator/HAS_LENGTH";
38377
+ var HAS_LENGTH_ERROR = "error/HAS_LENGTH";
38378
+ var hasLength = createValidator(HAS_LENGTH, HAS_LENGTH_ERROR);
38379
+
38380
+ validatorFns[HAS_LENGTH] = function (value, args, form) {
37805
38381
  if (value === "") {
37806
38382
  return true;
37807
38383
  }
37808
- const min = args[0];
37809
- const max = args[1];
38384
+
38385
+ var min = args[0];
38386
+ var max = args[1];
38387
+
37810
38388
  if (max == undefined || min == undefined) {
37811
- throw new Error(
37812
- "Max and min need to be defined for hasLength, both or one of them is undefined"
37813
- );
38389
+ throw new Error("Max and min need to be defined for hasLength, both or one of them is undefined");
37814
38390
  }
38391
+
37815
38392
  if (max < min) {
37816
- throw new Error(
37817
- "hasLength validator was passed a min greater than the max"
37818
- );
38393
+ throw new Error("hasLength validator was passed a min greater than the max");
37819
38394
  }
37820
- const valueLength = value.length;
38395
+
38396
+ var valueLength = value.length;
37821
38397
  return max >= valueLength && valueLength >= min;
37822
38398
  };
37823
38399
 
37824
- const DATE_BEFORE_TODAY = "validator/DATE_BEFORE_TODAY";
37825
- const DATE_BEFORE_TODAY_ERROR = "error/DATE_BEFORE_TODAY";
37826
- const dateBeforeToday = createValidator(
37827
- DATE_BEFORE_TODAY,
37828
- DATE_BEFORE_TODAY_ERROR
37829
- );
37830
- validatorFns[DATE_BEFORE_TODAY] = (value, args, form) => {
38400
+ var DATE_BEFORE_TODAY = "validator/DATE_BEFORE_TODAY";
38401
+ var DATE_BEFORE_TODAY_ERROR = "error/DATE_BEFORE_TODAY";
38402
+ var dateBeforeToday = createValidator(DATE_BEFORE_TODAY, DATE_BEFORE_TODAY_ERROR);
38403
+
38404
+ validatorFns[DATE_BEFORE_TODAY] = function (value, args, form) {
37831
38405
  if (value === "") {
37832
38406
  return true;
37833
38407
  }
37834
- const dateFormat = args[0];
37835
- const unit = args[1];
37836
- const inclusive = args[2] || false;
38408
+
38409
+ var dateFormat = args[0];
38410
+ var unit = args[1];
38411
+ var inclusive = args[2] || false;
37837
38412
 
37838
38413
  if (dateFormat == undefined || unit == undefined) {
37839
- throw new Error(
37840
- "Date format and unit need to be defined for dateBeforeToday, one or both are undefined"
37841
- );
38414
+ throw new Error("Date format and unit need to be defined for dateBeforeToday, one or both are undefined");
37842
38415
  }
37843
- const now = dayjs();
37844
- const dateValue = dayjs(value, dateFormat);
38416
+
38417
+ var now = dayjs();
38418
+ var dateValue = dayjs(value, dateFormat);
37845
38419
 
37846
38420
  if (inclusive === true) {
37847
38421
  return dateValue.isSameOrBefore(now, unit);
37848
38422
  }
38423
+
37849
38424
  return dateValue.isBefore(now, unit);
37850
38425
  };
37851
38426
 
37852
- const DATE_AFTER_TODAY = "validator/DATE_AFTER_TODAY";
37853
- const DATE_AFTER_TODAY_ERROR = "error/DATE_AFTER_TODAY";
37854
- const dateAfterToday = createValidator(
37855
- DATE_AFTER_TODAY,
37856
- DATE_AFTER_TODAY_ERROR
37857
- );
37858
- validatorFns[DATE_AFTER_TODAY] = (value, args, form) => {
38427
+ var DATE_AFTER_TODAY = "validator/DATE_AFTER_TODAY";
38428
+ var DATE_AFTER_TODAY_ERROR = "error/DATE_AFTER_TODAY";
38429
+ var dateAfterToday = createValidator(DATE_AFTER_TODAY, DATE_AFTER_TODAY_ERROR);
38430
+
38431
+ validatorFns[DATE_AFTER_TODAY] = function (value, args, form) {
37859
38432
  if (value === "") {
37860
38433
  return true;
37861
38434
  }
37862
- const dateFormat = args[0];
37863
- const unit = args[1];
37864
- const inclusive = args[2] || false;
38435
+
38436
+ var dateFormat = args[0];
38437
+ var unit = args[1];
38438
+ var inclusive = args[2] || false;
37865
38439
 
37866
38440
  if (dateFormat == undefined || unit == undefined) {
37867
- throw new Error(
37868
- "Date format and unit need to be defined for dateAfterToday, one or both are undefined"
37869
- );
38441
+ throw new Error("Date format and unit need to be defined for dateAfterToday, one or both are undefined");
37870
38442
  }
37871
- const now = dayjs();
37872
- const dateValue = dayjs(value, dateFormat);
38443
+
38444
+ var now = dayjs();
38445
+ var dateValue = dayjs(value, dateFormat);
37873
38446
 
37874
38447
  if (inclusive === true) {
37875
38448
  return dateValue.isSameOrAfter(now, unit);
37876
38449
  }
38450
+
37877
38451
  return dateValue.isAfter(now, unit);
37878
38452
  };
37879
38453
 
37880
- const IS_VALID_MONTH = "validator/IS_VALID_MONTH";
37881
- const IS_VALID_MONTH_ERROR = "error/IS_VALID_MONTH";
37882
- const isValidMonth = createValidator(
37883
- IS_VALID_MONTH,
37884
- IS_VALID_MONTH_ERROR
37885
- );
37886
- validatorFns[IS_VALID_MONTH] = (value, args, form) => {
38454
+ var IS_VALID_MONTH = "validator/IS_VALID_MONTH";
38455
+ var IS_VALID_MONTH_ERROR = "error/IS_VALID_MONTH";
38456
+ var isValidMonth = createValidator(IS_VALID_MONTH, IS_VALID_MONTH_ERROR);
38457
+
38458
+ validatorFns[IS_VALID_MONTH] = function (value, args, form) {
37887
38459
  if (value === "") {
37888
38460
  return true;
37889
- }
37890
- // Function takes one argument representing the character position
38461
+ } // Function takes one argument representing the character position
37891
38462
  // In a date string to identify where the month is
37892
38463
  // Eg "10/21/2021" - start position is 0
37893
38464
  // Or "18/03/1990" - start position is 3
37894
38465
  // Only works with two digit months (01, 02, 03, etc)
37895
- const monthStartPosition = parseInt(args[0]);
37896
- const monthEndPosition = monthStartPosition + 2;
37897
- if (monthStartPosition === NaN) {
38466
+
38467
+
38468
+ var monthStartPosition = parseInt(args[0]);
38469
+ var monthEndPosition = monthStartPosition + 2;
38470
+
38471
+ if (isNaN(monthStartPosition)) {
37898
38472
  throw new Error("Month start position has to be a valid integer string");
37899
38473
  }
37900
- const month = parseInt(value.slice(monthStartPosition, monthEndPosition));
37901
- if (month === NaN) {
38474
+
38475
+ var month = parseInt(value.slice(monthStartPosition, monthEndPosition));
38476
+
38477
+ if (isNaN(month)) {
37902
38478
  return false;
37903
38479
  }
38480
+
37904
38481
  return month >= 1 && month <= 12;
37905
38482
  };
37906
38483
 
37907
- const MATCHES_REGEX = "validator/MATCHES_REGEX";
37908
- const MATCHES_REGEX_ERROR = "error/MATCHES_REGEX";
37909
- const matchesRegex = createValidator(MATCHES_REGEX, MATCHES_REGEX_ERROR);
37910
- validatorFns[MATCHES_REGEX] = (value, args, form) => {
38484
+ var MATCHES_REGEX = "validator/MATCHES_REGEX";
38485
+ var MATCHES_REGEX_ERROR = "error/MATCHES_REGEX";
38486
+ var matchesRegex = createValidator(MATCHES_REGEX, MATCHES_REGEX_ERROR);
38487
+
38488
+ validatorFns[MATCHES_REGEX] = function (value, args, form) {
37911
38489
  if (value === "") {
37912
38490
  return true;
37913
38491
  }
38492
+
37914
38493
  return new RegExp(args[0]).test(value); // new RexExp never throws an error, no matter the input
37915
- };
38494
+ }; // based on http://www.brainjar.com/js/validation/
37916
38495
 
37917
- // based on http://www.brainjar.com/js/validation/
37918
- const IS_ROUTING_NUMBER = "validator/IS_ROUTING_NUMBER";
37919
- const IS_ROUTING_NUMBER_ERROR = "error/IS_ROUTING_NUMBER";
37920
- const isRoutingNumber = createValidator(
37921
- IS_ROUTING_NUMBER,
37922
- IS_ROUTING_NUMBER_ERROR
37923
- );
37924
- validatorFns[IS_ROUTING_NUMBER] = (value, args, form) => {
38496
+
38497
+ var IS_ROUTING_NUMBER = "validator/IS_ROUTING_NUMBER";
38498
+ var IS_ROUTING_NUMBER_ERROR = "error/IS_ROUTING_NUMBER";
38499
+ var isRoutingNumber = createValidator(IS_ROUTING_NUMBER, IS_ROUTING_NUMBER_ERROR);
38500
+
38501
+ validatorFns[IS_ROUTING_NUMBER] = function (value, args, form) {
37925
38502
  if (value === "") {
37926
38503
  return true;
37927
38504
  }
38505
+
37928
38506
  if (value.length != 9) {
37929
38507
  return false;
37930
38508
  }
37931
- const sum = value
37932
- .split("")
37933
- .map(ch => parseInt(ch))
37934
- .reduce((acc, cur, idx) => {
37935
- switch (idx % 3) {
37936
- case 0:
37937
- return acc + 3 * cur;
37938
- case 1:
37939
- return acc + 7 * cur;
37940
- case 2:
37941
- return acc + 1 * cur;
37942
- }
37943
- }, 0);
38509
+
38510
+ var sum = value.split("").map(function (ch) {
38511
+ return parseInt(ch);
38512
+ }).reduce(function (acc, cur, idx) {
38513
+ switch (idx % 3) {
38514
+ case 0:
38515
+ return acc + 3 * cur;
38516
+
38517
+ case 1:
38518
+ return acc + 7 * cur;
38519
+
38520
+ case 2:
38521
+ return acc + 1 * cur;
38522
+ }
38523
+ }, 0);
37944
38524
  return sum != 0 && sum % 10 == 0;
37945
38525
  };
37946
38526
 
37947
- const HAS_NUMBER = "validator/HAS_NUMBER";
37948
- const HAS_NUMBER_ERROR$1 = "error/HAS_NUMBER";
37949
- const hasNumber = createValidator(HAS_NUMBER, HAS_NUMBER_ERROR$1);
37950
- validatorFns[HAS_NUMBER] = (value, args, form) => {
38527
+ var HAS_NUMBER = "validator/HAS_NUMBER";
38528
+ var HAS_NUMBER_ERROR$1 = "error/HAS_NUMBER";
38529
+ var hasNumber = createValidator(HAS_NUMBER, HAS_NUMBER_ERROR$1);
38530
+
38531
+ validatorFns[HAS_NUMBER] = function (value, args, form) {
37951
38532
  if (value === "") {
37952
38533
  return true;
37953
38534
  }
38535
+
37954
38536
  return new RegExp(/[0-9]/).test(value);
37955
38537
  };
37956
38538
 
37957
- const HAS_LOWERCASE_LETTER = "validator/HAS_LOWERCASE_LETTER";
37958
- const HAS_LOWERCASE_LETTER_ERROR$1 = "error/HAS_LOWERCASE_LETTER";
37959
- const hasLowercaseLetter = createValidator(
37960
- HAS_LOWERCASE_LETTER,
37961
- HAS_LOWERCASE_LETTER_ERROR$1
37962
- );
37963
- validatorFns[HAS_LOWERCASE_LETTER] = (value, args, form) => {
38539
+ var HAS_LOWERCASE_LETTER = "validator/HAS_LOWERCASE_LETTER";
38540
+ var HAS_LOWERCASE_LETTER_ERROR$1 = "error/HAS_LOWERCASE_LETTER";
38541
+ var hasLowercaseLetter = createValidator(HAS_LOWERCASE_LETTER, HAS_LOWERCASE_LETTER_ERROR$1);
38542
+
38543
+ validatorFns[HAS_LOWERCASE_LETTER] = function (value, args, form) {
37964
38544
  if (value === "") {
37965
38545
  return true;
37966
38546
  }
38547
+
37967
38548
  return new RegExp(/[a-z]/).test(value);
37968
38549
  };
37969
38550
 
37970
- const HAS_UPPERCASE_LETTER = "validator/HAS_UPPERCASE_LETTER";
37971
- const HAS_UPPERCASE_LETTER_ERROR$1 = "error/HAS_UPPERCASE_LETTER";
37972
- const hasUppercaseLetter = createValidator(
37973
- HAS_UPPERCASE_LETTER,
37974
- HAS_UPPERCASE_LETTER_ERROR$1
37975
- );
37976
- validatorFns[HAS_UPPERCASE_LETTER] = (value, args, form) => {
38551
+ var HAS_UPPERCASE_LETTER = "validator/HAS_UPPERCASE_LETTER";
38552
+ var HAS_UPPERCASE_LETTER_ERROR$1 = "error/HAS_UPPERCASE_LETTER";
38553
+ var hasUppercaseLetter = createValidator(HAS_UPPERCASE_LETTER, HAS_UPPERCASE_LETTER_ERROR$1);
38554
+
38555
+ validatorFns[HAS_UPPERCASE_LETTER] = function (value, args, form) {
37977
38556
  if (value === "") {
37978
38557
  return true;
37979
38558
  }
38559
+
37980
38560
  return new RegExp(/[A-Z]/).test(value);
37981
38561
  };
37982
38562
 
37983
- const HAS_SPECIAL_CHARACTER = "validator/HAS_SPECIAL_CHARACTER";
37984
- const HAS_SPECIAL_CHARACTER_ERROR$1 = "error/HAS_SPECIAL_CHARACTER";
37985
- const hasSpecialCharacter = createValidator(
37986
- HAS_SPECIAL_CHARACTER,
37987
- HAS_SPECIAL_CHARACTER_ERROR$1
37988
- );
37989
- validatorFns[HAS_SPECIAL_CHARACTER] = (value, args, form) => {
38563
+ var HAS_SPECIAL_CHARACTER = "validator/HAS_SPECIAL_CHARACTER";
38564
+ var HAS_SPECIAL_CHARACTER_ERROR$1 = "error/HAS_SPECIAL_CHARACTER";
38565
+ var hasSpecialCharacter = createValidator(HAS_SPECIAL_CHARACTER, HAS_SPECIAL_CHARACTER_ERROR$1);
38566
+
38567
+ validatorFns[HAS_SPECIAL_CHARACTER] = function (value, args, form) {
37990
38568
  if (value === "") {
37991
38569
  return true;
37992
38570
  }
38571
+
37993
38572
  return new RegExp(/[!@#$%^&*.?]/).test(value);
37994
38573
  };
37995
38574
 
37996
- const IS_PROBABLY_EMAIL = "validator/IS_PROBABLY_EMAIL";
37997
- const IS_PROBABLY_EMAIL_ERROR = "error/IS_PROBABLY_EMAIL";
37998
- const isProbablyEmail = createValidator(
37999
- IS_PROBABLY_EMAIL,
38000
- IS_PROBABLY_EMAIL_ERROR
38001
- );
38002
- validatorFns[IS_PROBABLY_EMAIL] = (value, args, form) => {
38575
+ var IS_PROBABLY_EMAIL = "validator/IS_PROBABLY_EMAIL";
38576
+ var IS_PROBABLY_EMAIL_ERROR = "error/IS_PROBABLY_EMAIL";
38577
+ var isProbablyEmail = createValidator(IS_PROBABLY_EMAIL, IS_PROBABLY_EMAIL_ERROR);
38578
+
38579
+ validatorFns[IS_PROBABLY_EMAIL] = function (value, args, form) {
38003
38580
  if (value === "") {
38004
38581
  return true;
38005
38582
  }
38583
+
38006
38584
  return new RegExp(/^\S+@\S+\.\S+$/).test(value);
38007
38585
  };
38008
38586
 
38009
- const runValidatorErrorMessage = type =>
38010
- `${type} was passed to runValidator, but that validator type does not exist.
38011
- Please check that you are only calling validator creator functions exported from
38012
- redux-freeform in your form config and that you didn't forget to
38013
- invoke the validator creator (you cannot pass the functions themselves to
38014
- createFormState)`;
38587
+ var runValidatorErrorMessage = function runValidatorErrorMessage(type) {
38588
+ return "".concat(type, " was passed to runValidator, but that validator type does not exist. \n Please check that you are only calling validator creator functions exported from \n redux-freeform in your form config and that you didn't forget to \n invoke the validator creator (you cannot pass the functions themselves to \n createFormState)");
38589
+ };
38590
+
38591
+ var runValidator = function runValidator(validator, value, form) {
38592
+ var validatorFn = validatorFns[validator.type];
38015
38593
 
38016
- const runValidator = (validator, value, form) => {
38017
- const validatorFn = validatorFns[validator.type];
38018
38594
  if (validatorFn === undefined) {
38019
38595
  throw new Error(runValidatorErrorMessage(validator.type));
38020
38596
  }
38597
+
38021
38598
  return validatorFn(value, validator.args, form) ? null : validator.error;
38022
38599
  };
38023
38600
 
38024
- const _computeErrors = (fieldName, form, validators) => {
38025
- return validators
38026
- .map(v => runValidator(v, form[fieldName].rawValue, form))
38027
- .filter(x => x !== null);
38601
+ var runFormValidators = function runFormValidators(fieldName, form, validators) {
38602
+ return validators.map(function (v) {
38603
+ return runValidator(v, form[fieldName].rawValue, form);
38604
+ }).filter(function (x) {
38605
+ return x !== null;
38606
+ });
38607
+ };
38608
+
38609
+ var computeConstraints = function computeConstraints(fieldName, form) {
38610
+ var constraints = form[fieldName].constraints;
38611
+ return runFormValidators(fieldName, form, constraints);
38028
38612
  };
38029
38613
 
38030
- const computeConstraints = (fieldName, form) => {
38031
- const constraints = form[fieldName].constraints;
38032
- return _computeErrors(fieldName, form, constraints);
38614
+ var computeErrors = function computeErrors(fieldName, form) {
38615
+ var validators = form[fieldName].validators;
38616
+ return runFormValidators(fieldName, form, validators);
38033
38617
  };
38034
38618
 
38035
- const computeErrors = (fieldName, form) => {
38036
- const validators = form[fieldName].validators;
38037
- return _computeErrors(fieldName, form, validators);
38619
+ var computeErrorEntries = function computeErrorEntries(formState) {
38620
+ var fields = Object.entries(formState);
38621
+
38622
+ for (var _i = 0, _fields = fields; _i < _fields.length; _i++) {
38623
+ var entry = _fields[_i];
38624
+ var fieldName = entry[0];
38625
+ var errors = computeErrors(fieldName, formState);
38626
+ formState[fieldName].errors = errors;
38627
+ formState[fieldName].hasErrors = errors.length > 0;
38628
+ }
38629
+ };
38630
+
38631
+ var computeDirtyEntries = function computeDirtyEntries(formState, changedFieldName) {
38632
+ var fields = Object.entries(formState);
38633
+
38634
+ for (var _i2 = 0, _fields2 = fields; _i2 < _fields2.length; _i2++) {
38635
+ var entry = _fields2[_i2];
38636
+ var fieldName = entry[0];
38637
+ var field = entry[1];
38638
+ var dirty = fieldName === changedFieldName ? true : field.dirty;
38639
+ formState[fieldName].dirty = dirty;
38640
+ }
38038
38641
  };
38039
38642
 
38040
38643
  var obj;
38041
- var NOTHING = typeof Symbol !== "undefined" ? Symbol("immer-nothing") : ( obj = {}, obj["immer-nothing"] = true, obj );
38042
- var DRAFTABLE = typeof Symbol !== "undefined" && Symbol.for ? Symbol.for("immer-draftable") : "__$immer_draftable";
38043
- var DRAFT_STATE = typeof Symbol !== "undefined" && Symbol.for ? Symbol.for("immer-state") : "__$immer_state";
38644
+ var NOTHING = typeof Symbol !== "undefined" ? Symbol("immer-nothing") : (obj = {}, obj["immer-nothing"] = true, obj);
38645
+ var DRAFTABLE = typeof Symbol !== "undefined" && Symbol["for"] ? Symbol["for"]("immer-draftable") : "__$immer_draftable";
38646
+ var DRAFT_STATE = typeof Symbol !== "undefined" && Symbol["for"] ? Symbol["for"]("immer-state") : "__$immer_state";
38647
+
38044
38648
  function isDraft(value) {
38045
38649
  return !!value && !!value[DRAFT_STATE];
38046
38650
  }
38651
+
38047
38652
  function isDraftable(value) {
38048
- if (!value) { return false; }
38653
+ if (!value) {
38654
+ return false;
38655
+ }
38656
+
38049
38657
  return isPlainObject(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
38050
38658
  }
38659
+
38051
38660
  function isPlainObject(value) {
38052
- if (!value || typeof value !== "object") { return false; }
38053
- if (Array.isArray(value)) { return true; }
38661
+ if (!value || _typeof(value) !== "object") {
38662
+ return false;
38663
+ }
38664
+
38665
+ if (Array.isArray(value)) {
38666
+ return true;
38667
+ }
38668
+
38054
38669
  var proto = Object.getPrototypeOf(value);
38055
38670
  return !proto || proto === Object.prototype;
38056
38671
  }
38672
+
38057
38673
  var assign = Object.assign || function assign(target, value) {
38058
38674
  for (var key in value) {
38059
38675
  if (has$1(value, key)) {
@@ -38063,11 +38679,18 @@ var assign = Object.assign || function assign(target, value) {
38063
38679
 
38064
38680
  return target;
38065
38681
  };
38066
- 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;
38682
+
38683
+ var ownKeys$2 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : typeof Object.getOwnPropertySymbols !== "undefined" ? function (obj) {
38684
+ return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
38685
+ } : Object.getOwnPropertyNames;
38686
+
38067
38687
  function shallowCopy(base, invokeGetters) {
38068
- if ( invokeGetters === void 0 ) invokeGetters = false;
38688
+ if (invokeGetters === void 0) invokeGetters = false;
38689
+
38690
+ if (Array.isArray(base)) {
38691
+ return base.slice();
38692
+ }
38069
38693
 
38070
- if (Array.isArray(base)) { return base.slice(); }
38071
38694
  var clone = Object.create(Object.getPrototypeOf(base));
38072
38695
  ownKeys$2(base).forEach(function (key) {
38073
38696
  if (key === DRAFT_STATE) {
@@ -38097,20 +38720,28 @@ function shallowCopy(base, invokeGetters) {
38097
38720
  });
38098
38721
  return clone;
38099
38722
  }
38723
+
38100
38724
  function each(value, cb) {
38101
38725
  if (Array.isArray(value)) {
38102
- for (var i = 0; i < value.length; i++) { cb(i, value[i], value); }
38726
+ for (var i = 0; i < value.length; i++) {
38727
+ cb(i, value[i], value);
38728
+ }
38103
38729
  } else {
38104
- ownKeys$2(value).forEach(function (key) { return cb(key, value[key], value); });
38730
+ ownKeys$2(value).forEach(function (key) {
38731
+ return cb(key, value[key], value);
38732
+ });
38105
38733
  }
38106
38734
  }
38735
+
38107
38736
  function isEnumerable(base, prop) {
38108
38737
  var desc = Object.getOwnPropertyDescriptor(base, prop);
38109
38738
  return !!desc && desc.enumerable;
38110
38739
  }
38740
+
38111
38741
  function has$1(thing, prop) {
38112
38742
  return Object.prototype.hasOwnProperty.call(thing, prop);
38113
38743
  }
38744
+
38114
38745
  function is(x, y) {
38115
38746
  // From: https://github.com/facebook/fbjs/blob/c69904a511b900266935168223063dd8772dfc40/packages/fbjs/src/core/shallowEqual.js
38116
38747
  if (x === y) {
@@ -38119,18 +38750,27 @@ function is(x, y) {
38119
38750
  return x !== x && y !== y;
38120
38751
  }
38121
38752
  }
38753
+
38122
38754
  function clone(obj) {
38123
- if (!isDraftable(obj)) { return obj; }
38124
- if (Array.isArray(obj)) { return obj.map(clone); }
38755
+ if (!isDraftable(obj)) {
38756
+ return obj;
38757
+ }
38758
+
38759
+ if (Array.isArray(obj)) {
38760
+ return obj.map(clone);
38761
+ }
38762
+
38125
38763
  var cloned = Object.create(Object.getPrototypeOf(obj));
38126
38764
 
38127
- for (var key in obj) { cloned[key] = clone(obj[key]); }
38765
+ for (var key in obj) {
38766
+ cloned[key] = clone(obj[key]);
38767
+ }
38128
38768
 
38129
38769
  return cloned;
38130
38770
  }
38131
-
38132
38771
  /** Each scope represents a `produce` call. */
38133
38772
 
38773
+
38134
38774
  var ImmerScope = function ImmerScope(parent) {
38135
38775
  this.drafts = [];
38136
38776
  this.parent = parent; // Whenever the modified draft contains a draft from another scope, we
@@ -38141,7 +38781,7 @@ var ImmerScope = function ImmerScope(parent) {
38141
38781
  this.patches = null;
38142
38782
  };
38143
38783
 
38144
- ImmerScope.prototype.usePatches = function usePatches (patchListener) {
38784
+ ImmerScope.prototype.usePatches = function usePatches(patchListener) {
38145
38785
  if (patchListener) {
38146
38786
  this.patches = [];
38147
38787
  this.inversePatches = [];
@@ -38149,17 +38789,18 @@ ImmerScope.prototype.usePatches = function usePatches (patchListener) {
38149
38789
  }
38150
38790
  };
38151
38791
 
38152
- ImmerScope.prototype.revoke = function revoke$1 () {
38792
+ ImmerScope.prototype.revoke = function revoke$1() {
38153
38793
  this.leave();
38154
38794
  this.drafts.forEach(revoke);
38155
38795
  this.drafts = null; // Make draft-related methods throw.
38156
38796
  };
38157
38797
 
38158
- ImmerScope.prototype.leave = function leave () {
38798
+ ImmerScope.prototype.leave = function leave() {
38159
38799
  if (this === ImmerScope.current) {
38160
38800
  ImmerScope.current = this.parent;
38161
38801
  }
38162
38802
  };
38803
+
38163
38804
  ImmerScope.current = null;
38164
38805
 
38165
38806
  ImmerScope.enter = function () {
@@ -38168,11 +38809,11 @@ ImmerScope.enter = function () {
38168
38809
 
38169
38810
  function revoke(draft) {
38170
38811
  draft[DRAFT_STATE].revoke();
38171
- }
38812
+ } // but share them all instead
38172
38813
 
38173
- // but share them all instead
38174
38814
 
38175
38815
  var descriptors$1 = {};
38816
+
38176
38817
  function willFinalize(scope, result, isReplaced) {
38177
38818
  scope.drafts.forEach(function (draft) {
38178
38819
  draft[DRAFT_STATE].finalizing = true;
@@ -38187,9 +38828,10 @@ function willFinalize(scope, result, isReplaced) {
38187
38828
  markChangesSweep(scope.drafts);
38188
38829
  } // When a child draft is returned, look for changes.
38189
38830
  else if (isDraft(result) && result[DRAFT_STATE].scope === scope) {
38190
- markChangesSweep(scope.drafts);
38191
- }
38831
+ markChangesSweep(scope.drafts);
38832
+ }
38192
38833
  }
38834
+
38193
38835
  function createProxy(base, parent) {
38194
38836
  var isArray = Array.isArray(base);
38195
38837
  var draft = clonePotentialDraft(base);
@@ -38243,7 +38885,11 @@ function peek(draft, prop) {
38243
38885
  function get$1(state, prop) {
38244
38886
  assertUnrevoked(state);
38245
38887
  var value = peek(source(state), prop);
38246
- if (state.finalizing) { return value; } // Create a draft if the value is unmodified.
38888
+
38889
+ if (state.finalizing) {
38890
+ return value;
38891
+ } // Create a draft if the value is unmodified.
38892
+
38247
38893
 
38248
38894
  if (value === peek(state.base, prop) && isDraftable(value)) {
38249
38895
  prepareCopy(state);
@@ -38258,7 +38904,10 @@ function set$1(state, prop, value) {
38258
38904
  state.assigned[prop] = true;
38259
38905
 
38260
38906
  if (!state.modified) {
38261
- if (is(value, peek(source(state), prop))) { return; }
38907
+ if (is(value, peek(source(state), prop))) {
38908
+ return;
38909
+ }
38910
+
38262
38911
  markChanged(state);
38263
38912
  prepareCopy(state);
38264
38913
  }
@@ -38269,12 +38918,17 @@ function set$1(state, prop, value) {
38269
38918
  function markChanged(state) {
38270
38919
  if (!state.modified) {
38271
38920
  state.modified = true;
38272
- if (state.parent) { markChanged(state.parent); }
38921
+
38922
+ if (state.parent) {
38923
+ markChanged(state.parent);
38924
+ }
38273
38925
  }
38274
38926
  }
38275
38927
 
38276
38928
  function prepareCopy(state) {
38277
- if (!state.copy) { state.copy = clonePotentialDraft(state.base); }
38929
+ if (!state.copy) {
38930
+ state.copy = clonePotentialDraft(state.base);
38931
+ }
38278
38932
  }
38279
38933
 
38280
38934
  function clonePotentialDraft(base) {
@@ -38299,15 +38953,12 @@ function proxyProperty(draft, prop, enumerable) {
38299
38953
  descriptors$1[prop] = desc = {
38300
38954
  configurable: true,
38301
38955
  enumerable: enumerable,
38302
-
38303
38956
  get: function get$1$1() {
38304
38957
  return get$1(this[DRAFT_STATE], prop);
38305
38958
  },
38306
-
38307
38959
  set: function set$1$1(value) {
38308
38960
  set$1(this[DRAFT_STATE], prop, value);
38309
38961
  }
38310
-
38311
38962
  };
38312
38963
  }
38313
38964
 
@@ -38315,7 +38966,9 @@ function proxyProperty(draft, prop, enumerable) {
38315
38966
  }
38316
38967
 
38317
38968
  function assertUnrevoked(state) {
38318
- 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))); }
38969
+ if (state.revoked === true) {
38970
+ 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)));
38971
+ }
38319
38972
  } // This looks expensive, but only proxies are visited, and only objects without known changes are scanned.
38320
38973
 
38321
38974
 
@@ -38329,16 +38982,27 @@ function markChangesSweep(drafts) {
38329
38982
 
38330
38983
  if (!state.modified) {
38331
38984
  if (Array.isArray(state.base)) {
38332
- if (hasArrayChanges(state)) { markChanged(state); }
38333
- } else if (hasObjectChanges(state)) { markChanged(state); }
38985
+ if (hasArrayChanges(state)) {
38986
+ markChanged(state);
38987
+ }
38988
+ } else if (hasObjectChanges(state)) {
38989
+ markChanged(state);
38990
+ }
38334
38991
  }
38335
38992
  }
38336
38993
  }
38337
38994
 
38338
38995
  function markChangesRecursively(object) {
38339
- if (!object || typeof object !== "object") { return; }
38996
+ if (!object || _typeof(object) !== "object") {
38997
+ return;
38998
+ }
38999
+
38340
39000
  var state = object[DRAFT_STATE];
38341
- if (!state) { return; }
39001
+
39002
+ if (!state) {
39003
+ return;
39004
+ }
39005
+
38342
39006
  var base = state.base;
38343
39007
  var draft = state.draft;
38344
39008
  var assigned = state.assigned;
@@ -38368,14 +39032,20 @@ function markChangesRecursively(object) {
38368
39032
  assigned.length = true;
38369
39033
 
38370
39034
  if (draft.length < base.length) {
38371
- for (var i = draft.length; i < base.length; i++) { assigned[i] = false; }
39035
+ for (var i = draft.length; i < base.length; i++) {
39036
+ assigned[i] = false;
39037
+ }
38372
39038
  } else {
38373
- for (var i$1 = base.length; i$1 < draft.length; i$1++) { assigned[i$1] = true; }
39039
+ for (var i$1 = base.length; i$1 < draft.length; i$1++) {
39040
+ assigned[i$1] = true;
39041
+ }
38374
39042
  }
38375
39043
 
38376
39044
  for (var i$2 = 0; i$2 < draft.length; i$2++) {
38377
39045
  // Only untouched indices trigger recursion.
38378
- if (assigned[i$2] === undefined) { markChangesRecursively(draft[i$2]); }
39046
+ if (assigned[i$2] === undefined) {
39047
+ markChangesRecursively(draft[i$2]);
39048
+ }
38379
39049
  }
38380
39050
  }
38381
39051
  }
@@ -38396,13 +39066,13 @@ function hasObjectChanges(state) {
38396
39066
  } // Once a base key is deleted, future changes go undetected, because its
38397
39067
  // descriptor is erased. This branch detects any missed changes.
38398
39068
  else {
38399
- var value = draft[key];
38400
- var state$1 = value && value[DRAFT_STATE];
39069
+ var value = draft[key];
39070
+ var state$1 = value && value[DRAFT_STATE];
38401
39071
 
38402
- if (state$1 ? state$1.base !== baseValue : !is(value, baseValue)) {
38403
- return true;
38404
- }
39072
+ if (state$1 ? state$1.base !== baseValue : !is(value, baseValue)) {
39073
+ return true;
38405
39074
  }
39075
+ }
38406
39076
  } // At this point, no keys were added or changed.
38407
39077
  // Compare key count to determine if keys were deleted.
38408
39078
 
@@ -38412,7 +39082,10 @@ function hasObjectChanges(state) {
38412
39082
 
38413
39083
  function hasArrayChanges(state) {
38414
39084
  var draft = state.draft;
38415
- if (draft.length !== state.base.length) { return true; } // See #116
39085
+
39086
+ if (draft.length !== state.base.length) {
39087
+ return true;
39088
+ } // See #116
38416
39089
  // If we first shorten the length, our array interceptors will be removed.
38417
39090
  // If after that new items are added, result in the same original length,
38418
39091
  // those last items will have no intercepting property.
@@ -38420,9 +39093,13 @@ function hasArrayChanges(state) {
38420
39093
  // N.B.: splice, unshift, etc only shift values around, but not prop descriptors, so we only have to check
38421
39094
  // the last one
38422
39095
 
39096
+
38423
39097
  var descriptor = Object.getOwnPropertyDescriptor(draft, draft.length - 1); // descriptor can be null, but only for newly created sparse arrays, eg. new Array(10)
38424
39098
 
38425
- 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
39099
+ if (descriptor && !descriptor.get) {
39100
+ return true;
39101
+ } // For all other cases, we don't have to compare, as they would have been picked up by the index setters
39102
+
38426
39103
 
38427
39104
  return false;
38428
39105
  }
@@ -38436,11 +39113,12 @@ function createHiddenProperty(target, prop, value) {
38436
39113
  }
38437
39114
 
38438
39115
  var legacyProxy = /*#__PURE__*/Object.freeze({
38439
- willFinalize: willFinalize,
38440
- createProxy: createProxy
39116
+ willFinalize: willFinalize,
39117
+ createProxy: createProxy
38441
39118
  });
38442
39119
 
38443
39120
  function willFinalize$1() {}
39121
+
38444
39122
  function createProxy$1(base, parent) {
38445
39123
  var scope = parent ? parent.scope : ImmerScope.current;
38446
39124
  var state = {
@@ -38475,33 +39153,27 @@ function createProxy$1(base, parent) {
38475
39153
  scope.drafts.push(proxy);
38476
39154
  return proxy;
38477
39155
  }
39156
+
38478
39157
  var objectTraps = {
38479
39158
  get: get$1$1,
38480
-
38481
39159
  has: function has(target, prop) {
38482
39160
  return prop in source$1(target);
38483
39161
  },
38484
-
38485
39162
  ownKeys: function ownKeys(target) {
38486
39163
  return Reflect.ownKeys(source$1(target));
38487
39164
  },
38488
-
38489
39165
  set: set$1$1,
38490
39166
  deleteProperty: deleteProperty,
38491
39167
  getOwnPropertyDescriptor: getOwnPropertyDescriptor$2,
38492
-
38493
39168
  defineProperty: function defineProperty() {
38494
39169
  throw new Error("Object.defineProperty() cannot be used on an Immer draft"); // prettier-ignore
38495
39170
  },
38496
-
38497
39171
  getPrototypeOf: function getPrototypeOf(target) {
38498
39172
  return Object.getPrototypeOf(target.base);
38499
39173
  },
38500
-
38501
39174
  setPrototypeOf: function setPrototypeOf() {
38502
39175
  throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft"); // prettier-ignore
38503
39176
  }
38504
-
38505
39177
  };
38506
39178
  var arrayTraps = {};
38507
39179
  each(objectTraps, function (key, fn) {
@@ -38540,7 +39212,10 @@ function peek$1(draft, prop) {
38540
39212
  }
38541
39213
 
38542
39214
  function get$1$1(state, prop) {
38543
- if (prop === DRAFT_STATE) { return state; }
39215
+ if (prop === DRAFT_STATE) {
39216
+ return state;
39217
+ }
39218
+
38544
39219
  var drafts = state.drafts; // Check for existing draft in unmodified state.
38545
39220
 
38546
39221
  if (!state.modified && has$1(drafts, prop)) {
@@ -38556,7 +39231,10 @@ function get$1$1(state, prop) {
38556
39231
 
38557
39232
  if (state.modified) {
38558
39233
  // Assigned values are never drafted. This catches any drafts we created, too.
38559
- if (value !== peek$1(state.base, prop)) { return value; } // Store drafts on the copy (when one exists).
39234
+ if (value !== peek$1(state.base, prop)) {
39235
+ return value;
39236
+ } // Store drafts on the copy (when one exists).
39237
+
38560
39238
 
38561
39239
  drafts = state.copy;
38562
39240
  }
@@ -38571,7 +39249,11 @@ function set$1$1(state, prop, value) {
38571
39249
  // values may be drafts, but falsy values are never drafts.
38572
39250
 
38573
39251
  var isUnchanged = value ? is(baseValue, value) || value === state.drafts[prop] : is(baseValue, value) && prop in state.base;
38574
- if (isUnchanged) { return true; }
39252
+
39253
+ if (isUnchanged) {
39254
+ return true;
39255
+ }
39256
+
38575
39257
  markChanged$1(state);
38576
39258
  }
38577
39259
 
@@ -38590,7 +39272,10 @@ function deleteProperty(state, prop) {
38590
39272
  delete state.assigned[prop];
38591
39273
  }
38592
39274
 
38593
- if (state.copy) { delete state.copy[prop]; }
39275
+ if (state.copy) {
39276
+ delete state.copy[prop];
39277
+ }
39278
+
38594
39279
  return true;
38595
39280
  } // Note: We never coerce `desc.value` into an Immer draft, because we can't make
38596
39281
  // the same guarantee in ES5 mode.
@@ -38613,13 +39298,16 @@ function markChanged$1(state) {
38613
39298
  state.modified = true;
38614
39299
  state.copy = assign(shallowCopy(state.base), state.drafts);
38615
39300
  state.drafts = null;
38616
- if (state.parent) { markChanged$1(state.parent); }
39301
+
39302
+ if (state.parent) {
39303
+ markChanged$1(state.parent);
39304
+ }
38617
39305
  }
38618
39306
  }
38619
39307
 
38620
39308
  var modernProxy = /*#__PURE__*/Object.freeze({
38621
- willFinalize: willFinalize$1,
38622
- createProxy: createProxy$1
39309
+ willFinalize: willFinalize$1,
39310
+ createProxy: createProxy$1
38623
39311
  });
38624
39312
 
38625
39313
  function generatePatches(state, basePath, patches, inversePatches) {
@@ -38628,14 +39316,13 @@ function generatePatches(state, basePath, patches, inversePatches) {
38628
39316
 
38629
39317
  function generateArrayPatches(state, basePath, patches, inversePatches) {
38630
39318
  var assign, assign$1;
38631
-
38632
39319
  var base = state.base;
38633
39320
  var copy = state.copy;
38634
39321
  var assigned = state.assigned; // Reduce complexity by ensuring `base` is never longer.
38635
39322
 
38636
39323
  if (copy.length < base.length) {
38637
- (assign = [copy, base], base = assign[0], copy = assign[1]);
38638
- (assign$1 = [inversePatches, patches], patches = assign$1[0], inversePatches = assign$1[1]);
39324
+ assign = [copy, base], base = assign[0], copy = assign[1];
39325
+ assign$1 = [inversePatches, patches], patches = assign$1[0], inversePatches = assign$1[1];
38639
39326
  }
38640
39327
 
38641
39328
  var delta = copy.length - base.length; // Find the first replaced index.
@@ -38693,7 +39380,11 @@ function generateObjectPatches(state, basePath, patches, inversePatches) {
38693
39380
  var origValue = base[key];
38694
39381
  var value = copy[key];
38695
39382
  var op = !assignedValue ? "remove" : key in base ? "replace" : "add";
38696
- if (origValue === value && op === "replace") { return; }
39383
+
39384
+ if (origValue === value && op === "replace") {
39385
+ return;
39386
+ }
39387
+
38697
39388
  var path = basePath.concat(key);
38698
39389
  patches.push(op === "remove" ? {
38699
39390
  op: op,
@@ -38718,20 +39409,26 @@ function generateObjectPatches(state, basePath, patches, inversePatches) {
38718
39409
  });
38719
39410
  }
38720
39411
 
38721
- var applyPatches = function (draft, patches) {
39412
+ var applyPatches = function applyPatches(draft, patches) {
38722
39413
  for (var i$1 = 0, list = patches; i$1 < list.length; i$1 += 1) {
38723
39414
  var patch = list[i$1];
38724
-
38725
39415
  var path = patch.path;
38726
39416
  var op = patch.op;
38727
39417
  var value = clone(patch.value); // used to clone patch to ensure original patch is not modified, see #411
38728
39418
 
38729
- if (!path.length) { throw new Error("Illegal state"); }
39419
+ if (!path.length) {
39420
+ throw new Error("Illegal state");
39421
+ }
39422
+
38730
39423
  var base = draft;
38731
39424
 
38732
39425
  for (var i = 0; i < path.length - 1; i++) {
38733
39426
  base = base[path[i]];
38734
- if (!base || typeof base !== "object") { throw new Error("Cannot apply patch, path doesn't resolve: " + path.join("/")); } // prettier-ignore
39427
+
39428
+ if (!base || _typeof(base) !== "object") {
39429
+ throw new Error("Cannot apply patch, path doesn't resolve: " + path.join("/"));
39430
+ } // prettier-ignore
39431
+
38735
39432
  }
38736
39433
 
38737
39434
  var key = path[path.length - 1];
@@ -38780,27 +39477,33 @@ var configDefaults = {
38780
39477
  onDelete: null,
38781
39478
  onCopy: null
38782
39479
  };
39480
+
38783
39481
  var Immer = function Immer(config) {
38784
39482
  assign(this, configDefaults, config);
38785
39483
  this.setUseProxies(this.useProxies);
38786
39484
  this.produce = this.produce.bind(this);
38787
39485
  };
38788
39486
 
38789
- Immer.prototype.produce = function produce (base, recipe, patchListener) {
38790
- var this$1$1 = this;
39487
+ Immer.prototype.produce = function produce(base, recipe, patchListener) {
39488
+ var this$1$1 = this; // curried invocation
38791
39489
 
38792
- // curried invocation
38793
39490
  if (typeof base === "function" && typeof recipe !== "function") {
38794
39491
  var defaultBase = recipe;
38795
39492
  recipe = base;
38796
39493
  var self = this;
38797
39494
  return function curriedProduce(base) {
38798
- var this$1$1 = this;
38799
- if ( base === void 0 ) base = defaultBase;
38800
- var args = [], len = arguments.length - 1;
38801
- while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
39495
+ var this$1$1 = this;
39496
+ if (base === void 0) base = defaultBase;
39497
+ var args = [],
39498
+ len = arguments.length - 1;
38802
39499
 
38803
- return self.produce(base, function (draft) { return recipe.call.apply(recipe, [ this$1$1, draft ].concat( args )); }); // prettier-ignore
39500
+ while (len-- > 0) {
39501
+ args[len] = arguments[len + 1];
39502
+ }
39503
+
39504
+ return self.produce(base, function (draft) {
39505
+ return recipe.call.apply(recipe, [this$1$1, draft].concat(args));
39506
+ }); // prettier-ignore
38804
39507
  };
38805
39508
  } // prettier-ignore
38806
39509
 
@@ -38826,7 +39529,11 @@ Immer.prototype.produce = function produce (base, recipe, patchListener) {
38826
39529
  hasError = false;
38827
39530
  } finally {
38828
39531
  // finally instead of catch + rethrow better preserves original stack
38829
- if (hasError) { scope.revoke(); }else { scope.leave(); }
39532
+ if (hasError) {
39533
+ scope.revoke();
39534
+ } else {
39535
+ scope.leave();
39536
+ }
38830
39537
  }
38831
39538
 
38832
39539
  if (result instanceof Promise) {
@@ -38843,25 +39550,38 @@ Immer.prototype.produce = function produce (base, recipe, patchListener) {
38843
39550
  return this.processResult(result, scope);
38844
39551
  } else {
38845
39552
  result = recipe(base);
38846
- if (result === undefined) { return base; }
39553
+
39554
+ if (result === undefined) {
39555
+ return base;
39556
+ }
39557
+
38847
39558
  return result !== NOTHING ? result : undefined;
38848
39559
  }
38849
39560
  };
38850
39561
 
38851
- Immer.prototype.produceWithPatches = function produceWithPatches (arg1, arg2, arg3) {
38852
- var this$1$1 = this;
39562
+ Immer.prototype.produceWithPatches = function produceWithPatches(arg1, arg2, arg3) {
39563
+ var this$1$1 = this;
38853
39564
 
38854
39565
  if (typeof arg1 === "function") {
38855
39566
  return function (state) {
38856
- var args = [], len = arguments.length - 1;
38857
- while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
39567
+ var args = [],
39568
+ len = arguments.length - 1;
38858
39569
 
38859
- return this$1$1.produceWithPatches(state, function (draft) { return arg1.apply(void 0, [ draft ].concat( args )); });
38860
- };
39570
+ while (len-- > 0) {
39571
+ args[len] = arguments[len + 1];
39572
+ }
39573
+
39574
+ return this$1$1.produceWithPatches(state, function (draft) {
39575
+ return arg1.apply(void 0, [draft].concat(args));
39576
+ });
39577
+ };
38861
39578
  } // non-curried form
38862
39579
 
38863
39580
 
38864
- if (arg3) { throw new Error("A patch listener cannot be passed to produceWithPatches"); }
39581
+ if (arg3) {
39582
+ throw new Error("A patch listener cannot be passed to produceWithPatches");
39583
+ }
39584
+
38865
39585
  var patches, inversePatches;
38866
39586
  var nextState = this.produce(arg1, arg2, function (p, ip) {
38867
39587
  patches = p;
@@ -38870,7 +39590,7 @@ Immer.prototype.produceWithPatches = function produceWithPatches (arg1, arg2, ar
38870
39590
  return [nextState, patches, inversePatches];
38871
39591
  };
38872
39592
 
38873
- Immer.prototype.createDraft = function createDraft (base) {
39593
+ Immer.prototype.createDraft = function createDraft(base) {
38874
39594
  if (!isDraftable(base)) {
38875
39595
  throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object"); // prettier-ignore
38876
39596
  }
@@ -38882,7 +39602,7 @@ Immer.prototype.createDraft = function createDraft (base) {
38882
39602
  return proxy;
38883
39603
  };
38884
39604
 
38885
- Immer.prototype.finishDraft = function finishDraft (draft, patchListener) {
39605
+ Immer.prototype.finishDraft = function finishDraft(draft, patchListener) {
38886
39606
  var state = draft && draft[DRAFT_STATE];
38887
39607
 
38888
39608
  if (!state || !state.isManual) {
@@ -38898,16 +39618,16 @@ Immer.prototype.finishDraft = function finishDraft (draft, patchListener) {
38898
39618
  return this.processResult(undefined, scope);
38899
39619
  };
38900
39620
 
38901
- Immer.prototype.setAutoFreeze = function setAutoFreeze (value) {
39621
+ Immer.prototype.setAutoFreeze = function setAutoFreeze(value) {
38902
39622
  this.autoFreeze = value;
38903
39623
  };
38904
39624
 
38905
- Immer.prototype.setUseProxies = function setUseProxies (value) {
39625
+ Immer.prototype.setUseProxies = function setUseProxies(value) {
38906
39626
  this.useProxies = value;
38907
39627
  assign(this, value ? modernProxy : legacyProxy);
38908
39628
  };
38909
39629
 
38910
- Immer.prototype.applyPatches = function applyPatches$1 (base, patches) {
39630
+ Immer.prototype.applyPatches = function applyPatches$1(base, patches) {
38911
39631
  // If a patch replaces the entire state, take that replacement as base
38912
39632
  // before applying patches
38913
39633
  var i;
@@ -38927,12 +39647,14 @@ Immer.prototype.applyPatches = function applyPatches$1 (base, patches) {
38927
39647
  } // Otherwise, produce a copy of the base state.
38928
39648
 
38929
39649
 
38930
- return this.produce(base, function (draft) { return applyPatches(draft, patches.slice(i + 1)); });
39650
+ return this.produce(base, function (draft) {
39651
+ return applyPatches(draft, patches.slice(i + 1));
39652
+ });
38931
39653
  };
38932
39654
  /** @internal */
38933
39655
 
38934
39656
 
38935
- Immer.prototype.processResult = function processResult (result, scope) {
39657
+ Immer.prototype.processResult = function processResult(result, scope) {
38936
39658
  var baseDraft = scope.drafts[0];
38937
39659
  var isReplaced = result !== undefined && result !== baseDraft;
38938
39660
  this.willFinalize(scope, result, isReplaced);
@@ -38980,13 +39702,15 @@ Immer.prototype.processResult = function processResult (result, scope) {
38980
39702
  */
38981
39703
 
38982
39704
 
38983
- Immer.prototype.finalize = function finalize (draft, path, scope) {
38984
- var this$1$1 = this;
38985
-
39705
+ Immer.prototype.finalize = function finalize(draft, path, scope) {
39706
+ var this$1$1 = this;
38986
39707
  var state = draft[DRAFT_STATE];
38987
39708
 
38988
39709
  if (!state) {
38989
- if (Object.isFrozen(draft)) { return draft; }
39710
+ if (Object.isFrozen(draft)) {
39711
+ return draft;
39712
+ }
39713
+
38990
39714
  return this.finalizeTree(draft, null, scope);
38991
39715
  } // Never finalize drafts owned by another scope.
38992
39716
 
@@ -39009,13 +39733,17 @@ Immer.prototype.finalize = function finalize (draft, path, scope) {
39009
39733
  var assigned = state.assigned;
39010
39734
 
39011
39735
  for (var prop in assigned) {
39012
- if (!assigned[prop]) { this.onDelete(state, prop); }
39736
+ if (!assigned[prop]) {
39737
+ this.onDelete(state, prop);
39738
+ }
39013
39739
  }
39014
39740
  } else {
39015
39741
  var base = state.base;
39016
- var copy = state.copy;
39742
+ var copy = state.copy;
39017
39743
  each(base, function (prop) {
39018
- if (!has$1(copy, prop)) { this$1$1.onDelete(state, prop); }
39744
+ if (!has$1(copy, prop)) {
39745
+ this$1$1.onDelete(state, prop);
39746
+ }
39019
39747
  });
39020
39748
  }
39021
39749
  }
@@ -39043,9 +39771,8 @@ Immer.prototype.finalize = function finalize (draft, path, scope) {
39043
39771
  */
39044
39772
 
39045
39773
 
39046
- Immer.prototype.finalizeTree = function finalizeTree (root, rootPath, scope) {
39047
- var this$1$1 = this;
39048
-
39774
+ Immer.prototype.finalizeTree = function finalizeTree(root, rootPath, scope) {
39775
+ var this$1$1 = this;
39049
39776
  var state = root[DRAFT_STATE];
39050
39777
 
39051
39778
  if (state) {
@@ -39059,7 +39786,7 @@ Immer.prototype.finalizeTree = function finalizeTree (root, rootPath, scope) {
39059
39786
 
39060
39787
  var needPatches = !!rootPath && !!scope.patches;
39061
39788
 
39062
- var finalizeProperty = function (prop, value, parent) {
39789
+ var finalizeProperty = function finalizeProperty(prop, value, parent) {
39063
39790
  if (value === parent) {
39064
39791
  throw Error("Immer forbids circular references");
39065
39792
  } // In the `finalizeTree` method, only the `root` object may be a draft.
@@ -39086,14 +39813,16 @@ Immer.prototype.finalizeTree = function finalizeTree (root, rootPath, scope) {
39086
39813
  } // Unchanged drafts are never passed to the `onAssign` hook.
39087
39814
 
39088
39815
 
39089
- if (isDraftProp && value === state.base[prop]) { return; }
39816
+ if (isDraftProp && value === state.base[prop]) {
39817
+ return;
39818
+ }
39090
39819
  } // Unchanged draft properties are ignored.
39091
39820
  else if (isDraftProp && is(value, state.base[prop])) {
39092
- return;
39093
- } // Search new objects for unfinalized drafts. Frozen objects should never contain drafts.
39094
- else if (isDraftable(value) && !Object.isFrozen(value)) {
39095
- each(value, finalizeProperty);
39096
- }
39821
+ return;
39822
+ } // Search new objects for unfinalized drafts. Frozen objects should never contain drafts.
39823
+ else if (isDraftable(value) && !Object.isFrozen(value)) {
39824
+ each(value, finalizeProperty);
39825
+ }
39097
39826
 
39098
39827
  if (isDraftProp && this$1$1.onAssign) {
39099
39828
  this$1$1.onAssign(state, prop, value);
@@ -39171,127 +39900,223 @@ immer.createDraft.bind(immer);
39171
39900
 
39172
39901
  immer.finishDraft.bind(immer);
39173
39902
 
39174
- const createInitialState = formConfig => {
39175
- let initialForm = {};
39176
- const formConfigKeys = Object.keys(formConfig);
39177
- for (let formKey of formConfigKeys) {
39903
+ var createInitialState = function createInitialState(formConfig) {
39904
+ var initialForm = {};
39905
+ var formConfigKeys = Object.keys(formConfig);
39906
+
39907
+ for (var _i3 = 0, _formConfigKeys = formConfigKeys; _i3 < _formConfigKeys.length; _i3++) {
39908
+ var formKey = _formConfigKeys[_i3];
39178
39909
  initialForm[formKey] = {
39179
39910
  dirty: false,
39180
39911
  rawValue: formConfig[formKey].defaultValue || "",
39181
39912
  validators: formConfig[formKey].validators || [],
39182
39913
  constraints: formConfig[formKey].constraints || []
39183
39914
  };
39184
- }
39185
- // Because validators require the entire form we have to do a
39915
+ } // Because validators require the entire form we have to do a
39186
39916
  // second pass to add errors once the initial form has been
39187
39917
  // constructed
39188
- for (let formKey of formConfigKeys) {
39189
- let errors = computeErrors(formKey, initialForm);
39190
- initialForm[formKey].errors = errors;
39191
- initialForm[formKey].hasErrors = errors.length > 0;
39918
+
39919
+
39920
+ for (var _i4 = 0, _formConfigKeys2 = formConfigKeys; _i4 < _formConfigKeys2.length; _i4++) {
39921
+ var _formKey = _formConfigKeys2[_i4];
39922
+ var errors = computeErrors(_formKey, initialForm);
39923
+ initialForm[_formKey].errors = errors;
39924
+ initialForm[_formKey].hasErrors = errors.length > 0;
39192
39925
  }
39926
+
39193
39927
  return initialForm;
39194
39928
  };
39195
39929
 
39196
- const SET = "field/SET";
39197
- const set$2 = fieldName => value => ({
39198
- type: SET,
39199
- payload: { fieldName, value }
39200
- });
39930
+ var SET = "field/SET";
39201
39931
 
39202
- const CLEAR = "form/CLEAR";
39203
- const clear = () => ({ type: CLEAR });
39932
+ var _set = function set(fieldName) {
39933
+ return function (value) {
39934
+ return {
39935
+ type: SET,
39936
+ payload: {
39937
+ fieldName: fieldName,
39938
+ value: value
39939
+ }
39940
+ };
39941
+ };
39942
+ };
39204
39943
 
39205
- const ADD_VALIDATOR = "field/ADD_VALIDATOR";
39206
- const addValidator = fieldName => validator => ({
39207
- type: ADD_VALIDATOR,
39208
- payload: { fieldName, validator }
39209
- });
39944
+ var CLEAR = "form/CLEAR";
39945
+
39946
+ var _clear = function clear() {
39947
+ return {
39948
+ type: CLEAR
39949
+ };
39950
+ };
39951
+
39952
+ var ADD_VALIDATOR = "field/ADD_VALIDATOR";
39953
+
39954
+ var _addValidator = function addValidator(fieldName) {
39955
+ return function (validator) {
39956
+ return {
39957
+ type: ADD_VALIDATOR,
39958
+ payload: {
39959
+ fieldName: fieldName,
39960
+ validator: validator
39961
+ }
39962
+ };
39963
+ };
39964
+ };
39965
+
39966
+ var REMOVE_VALIDATOR = "field/REMOVE_VALIDATOR";
39967
+
39968
+ var _removeValidator = function removeValidator(fieldName) {
39969
+ return function (validator) {
39970
+ return {
39971
+ type: REMOVE_VALIDATOR,
39972
+ payload: {
39973
+ fieldName: fieldName,
39974
+ validator: validator
39975
+ }
39976
+ };
39977
+ };
39978
+ };
39979
+
39980
+ var CLEAR_FIELD_VALIDATORS = "field/CLEAR_FIELD_VALIDATORS";
39981
+
39982
+ var clearFieldValidators = function clearFieldValidators(fieldName) {
39983
+ return function () {
39984
+ return {
39985
+ type: CLEAR_FIELD_VALIDATORS,
39986
+ payload: {
39987
+ fieldName: fieldName
39988
+ }
39989
+ };
39990
+ };
39991
+ };
39992
+
39993
+ var createFormReducer = function createFormReducer(formConfig) {
39994
+ return function () {
39995
+ var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : createInitialState(formConfig);
39996
+ var action = arguments.length > 1 ? arguments[1] : undefined;
39210
39997
 
39211
- const createFormReducer = formConfig => (
39212
- state = createInitialState(formConfig),
39213
- action
39214
- ) => {
39215
- switch (action.type) {
39216
- case SET:
39217
- const changedFieldName = action.payload.fieldName;
39218
- const newRawValue = action.payload.value;
39219
-
39220
- return produce(state, draftState => {
39221
- let originalValue = draftState[changedFieldName].rawValue;
39222
- draftState[changedFieldName].rawValue = newRawValue;
39223
- if (computeConstraints(changedFieldName, draftState).length > 0) {
39224
- // If the change violates constraints, revert the change
39225
- draftState[changedFieldName].rawValue = originalValue;
39226
- return draftState;
39998
+ switch (action.type) {
39999
+ case SET:
40000
+ {
40001
+ var changedFieldName = action.payload.fieldName;
40002
+ var newRawValue = action.payload.value;
40003
+ return produce(state, function (draftState) {
40004
+ var originalValue = draftState[changedFieldName].rawValue;
40005
+ draftState[changedFieldName].rawValue = newRawValue;
40006
+
40007
+ if (computeConstraints(changedFieldName, draftState).length > 0) {
40008
+ // If the change violates constraints, revert the change
40009
+ draftState[changedFieldName].rawValue = originalValue;
40010
+ return draftState;
40011
+ }
40012
+
40013
+ computeDirtyEntries(draftState, changedFieldName);
40014
+ computeErrorEntries(draftState);
40015
+ });
39227
40016
  }
39228
40017
 
39229
- const fields = Object.entries(draftState);
39230
- for (let entry of fields) {
39231
- let fieldName = entry[0];
39232
- let field = entry[1];
39233
- let errors = computeErrors(fieldName, draftState);
39234
- let dirty = fieldName === changedFieldName ? true : field.dirty;
39235
- draftState[fieldName].errors = errors;
39236
- draftState[fieldName].dirty = dirty;
39237
- draftState[fieldName].hasErrors = errors.length > 0;
40018
+ case CLEAR:
40019
+ return createInitialState(formConfig);
40020
+
40021
+ case ADD_VALIDATOR:
40022
+ {
40023
+ var fieldWithOverride = action.payload.fieldName;
40024
+ var newValidator = action.payload.validator;
40025
+ return produce(state, function (draftState) {
40026
+ draftState[fieldWithOverride].validators.push(newValidator);
40027
+ computeErrorEntries(draftState);
40028
+ });
39238
40029
  }
39239
- });
39240
- case CLEAR:
39241
- return createInitialState(formConfig);
39242
- case ADD_VALIDATOR:
39243
- const fieldWithOverride = action.payload.fieldName;
39244
- const newValidator = action.payload.validator;
39245
-
39246
- return produce(state, draftState => {
39247
- draftState[fieldWithOverride].validators.push(newValidator);
39248
- const fields = Object.entries(draftState);
39249
- for (let entry of fields) {
39250
- let fieldName = entry[0];
39251
- let field = entry[1];
39252
- let errors = computeErrors(fieldName, draftState);
39253
- let dirty = field.dirty;
39254
- draftState[fieldName].errors = errors;
39255
- draftState[fieldName].dirty = dirty;
39256
- draftState[fieldName].hasErrors = errors.length > 0;
40030
+
40031
+ case REMOVE_VALIDATOR:
40032
+ {
40033
+ var fieldToOverride = action.payload.fieldName;
40034
+ var targetValidator = action.payload.validator;
40035
+ return produce(state, function (draftState) {
40036
+ var fieldValidators = draftState[fieldToOverride].validators;
40037
+ draftState[fieldToOverride].validators = fieldValidators.filter(function (validator) {
40038
+ return validator.type !== targetValidator.type;
40039
+ });
40040
+ computeErrorEntries(draftState);
40041
+ });
39257
40042
  }
39258
- });
39259
- default:
39260
- return state;
39261
- }
40043
+
40044
+ case CLEAR_FIELD_VALIDATORS:
40045
+ {
40046
+ var fieldToClear = action.payload.fieldName;
40047
+ return produce(state, function (draftState) {
40048
+ draftState[fieldToClear].validators = [];
40049
+ computeErrorEntries(draftState);
40050
+ });
40051
+ }
40052
+
40053
+ default:
40054
+ return state;
40055
+ }
40056
+ };
39262
40057
  };
39263
40058
 
39264
- const createMapDispatchToProps = formConfig => {
40059
+ var createMapDispatchToProps = function createMapDispatchToProps(formConfig) {
39265
40060
  // Do memo-ization
39266
- let cachedDispatch;
39267
- let cacheValue;
39268
- return dispatch => {
40061
+ var cachedDispatch;
40062
+ var cacheValue;
40063
+ return function (dispatch) {
39269
40064
  if (dispatch == cachedDispatch) {
39270
40065
  return cacheValue;
39271
40066
  }
39272
- let dispatchObj = {};
40067
+
40068
+ var dispatchObj = {};
39273
40069
  dispatchObj.fields = {};
39274
- const keys = Object.keys(formConfig);
39275
- for (let fieldName of keys) {
40070
+ var keys = Object.keys(formConfig);
40071
+
40072
+ var _loop = function _loop() {
40073
+ var fieldName = _keys[_i5];
39276
40074
  dispatchObj.fields[fieldName] = {
39277
- set: value => dispatch(set$2(fieldName)(value)),
39278
- addValidator: validator => dispatch(addValidator(fieldName)(validator))
40075
+ set: function set(value) {
40076
+ return dispatch(_set(fieldName)(value));
40077
+ },
40078
+ addValidator: function addValidator(validator) {
40079
+ return dispatch(_addValidator(fieldName)(validator));
40080
+ },
40081
+ removeValidator: function removeValidator(validator) {
40082
+ return dispatch(_removeValidator(fieldName)(validator));
40083
+ },
40084
+ clear: function clear() {
40085
+ return dispatch(clearFieldValidators(fieldName)());
40086
+ }
39279
40087
  };
40088
+ };
40089
+
40090
+ for (var _i5 = 0, _keys = keys; _i5 < _keys.length; _i5++) {
40091
+ _loop();
39280
40092
  }
39281
- dispatchObj.form = { clear: () => dispatch(clear()) };
40093
+
40094
+ dispatchObj.form = {
40095
+ clear: function clear() {
40096
+ return dispatch(_clear());
40097
+ }
40098
+ };
39282
40099
  cachedDispatch = dispatch;
39283
- cacheValue = { actions: dispatchObj };
40100
+ cacheValue = {
40101
+ actions: dispatchObj
40102
+ };
39284
40103
  return cacheValue;
39285
40104
  };
39286
40105
  };
39287
40106
 
39288
- const mapStateToProps = state => ({ fields: state });
40107
+ var mapStateToProps = function mapStateToProps(state) {
40108
+ return {
40109
+ fields: state
40110
+ };
40111
+ };
39289
40112
 
39290
- const createFormState = formConfig => ({
39291
- reducer: createFormReducer(formConfig),
39292
- mapDispatchToProps: createMapDispatchToProps(formConfig),
39293
- mapStateToProps: mapStateToProps
39294
- });
40113
+ var createFormState = function createFormState(formConfig) {
40114
+ return {
40115
+ reducer: createFormReducer(formConfig),
40116
+ mapDispatchToProps: createMapDispatchToProps(formConfig),
40117
+ mapStateToProps: mapStateToProps
40118
+ };
40119
+ };
39295
40120
 
39296
40121
  var AddressForm = function AddressForm(_ref) {
39297
40122
  var _zipErrorMessages;
@@ -46902,7 +47727,9 @@ var Pagination = function Pagination(_ref3) {
46902
47727
  var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$J);
46903
47728
 
46904
47729
  var PaymentButtonBar = function PaymentButtonBar(_ref) {
46905
- var _ref$forwardButtonTex = _ref.forwardButtonText,
47730
+ var _ref$isForwardButtonD = _ref.isForwardButtonDisabled,
47731
+ isForwardButtonDisabled = _ref$isForwardButtonD === void 0 ? false : _ref$isForwardButtonD,
47732
+ _ref$forwardButtonTex = _ref.forwardButtonText,
46906
47733
  forwardButtonText = _ref$forwardButtonTex === void 0 ? "Next" : _ref$forwardButtonTex,
46907
47734
  forwardButtonAction = _ref.forwardButtonAction,
46908
47735
  forwardButtonLoading = _ref.forwardButtonLoading,
@@ -46944,14 +47771,16 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
46944
47771
  text: redirectText,
46945
47772
  variant: forwardButtonVariant,
46946
47773
  extraStyles: isMobile && "flex-grow: 1",
46947
- dataQa: redirectText
47774
+ dataQa: redirectText,
47775
+ disabled: isForwardButtonDisabled
46948
47776
  }) : forwardButtonAction && /*#__PURE__*/React.createElement(ButtonWithAction, {
46949
47777
  text: forwardButtonText,
46950
47778
  variant: forwardButtonVariant,
46951
47779
  action: forwardButtonAction,
46952
47780
  isLoading: forwardButtonLoading,
46953
47781
  extraStyles: isMobile && "flex-grow: 1",
46954
- dataQa: forwardButtonText
47782
+ dataQa: forwardButtonText,
47783
+ disabled: isForwardButtonDisabled
46955
47784
  });
46956
47785
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Box, {
46957
47786
  padding: "1.25rem 0"
@@ -47056,67 +47885,12 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
47056
47885
  }));
47057
47886
  };
47058
47887
 
47059
- var LoadingDetails = function LoadingDetails() {
47060
- return /*#__PURE__*/React.createElement(Box, {
47061
- padding: "0",
47062
- background: GRECIAN_GREY,
47063
- borderRadius: "4px",
47064
- minHeight: "196px"
47065
- }, /*#__PURE__*/React.createElement(Cover, {
47066
- minHeight: "196px",
47067
- singleChild: true,
47068
- fillCenter: true
47069
- }, /*#__PURE__*/React.createElement(Center, {
47070
- intrinsic: true
47071
- }, /*#__PURE__*/React.createElement(Box, {
47072
- padding: "0",
47073
- extraStyles: "flex-grow: 1; display: flex; justify-content: center; align-items: center;"
47074
- }, /*#__PURE__*/React.createElement(Spinner$2, {
47075
- size: "100",
47076
- centerSpinner: true
47077
- })))));
47078
- };
47079
-
47080
- var ErrorDetails = function ErrorDetails() {
47081
- return /*#__PURE__*/React.createElement(Box, {
47082
- padding: "0"
47083
- }, /*#__PURE__*/React.createElement(Alert$1, {
47084
- variant: "error",
47085
- heading: "Error Loading Payment",
47086
- text: "Please go back and try again.",
47087
- showQuitLink: false,
47088
- maxContentWidth: "350px",
47089
- padding: "0",
47090
- noBorder: true,
47091
- enableBoxShadow: true,
47092
- extraStyles: "min-height: 67px; height: 67px;",
47093
- enableSmallText: true
47094
- }));
47095
- };
47096
-
47097
- var getLoadingOrErrorContent = function getLoadingOrErrorContent() {
47098
- var isLoading = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
47099
- var isError = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
47100
-
47101
- if (isLoading) {
47102
- return /*#__PURE__*/React.createElement(LoadingDetails, null);
47103
- } else if (isError) {
47104
- return /*#__PURE__*/React.createElement(ErrorDetails, null);
47105
- }
47106
-
47107
- return /*#__PURE__*/React.createElement(Fragment$1, null);
47108
- };
47109
-
47110
47888
  var Collapsible = function Collapsible(_ref2) {
47111
47889
  var content = _ref2.content,
47112
47890
  title = _ref2.title,
47113
47891
  supportsTouch = _ref2.supportsTouch,
47114
47892
  isOpen = _ref2.isOpen,
47115
- setIsOpen = _ref2.setIsOpen,
47116
- _ref2$isLoading = _ref2.isLoading,
47117
- isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
47118
- _ref2$isError = _ref2.isError,
47119
- isError = _ref2$isError === void 0 ? false : _ref2$isError;
47893
+ setIsOpen = _ref2.setIsOpen;
47120
47894
  return /*#__PURE__*/React.createElement(CollapsibleSection$1, {
47121
47895
  isMobile: true,
47122
47896
  supportsTouch: supportsTouch,
@@ -47139,17 +47913,13 @@ var Collapsible = function Collapsible(_ref2) {
47139
47913
  },
47140
47914
  positionTransition: true,
47141
47915
  initial: "closed"
47142
- }, isLoading || isError ? getLoadingOrErrorContent(isLoading, isError) : content));
47916
+ }, content));
47143
47917
  };
47144
47918
 
47145
47919
  var NonCollapsible = function NonCollapsible(_ref3) {
47146
47920
  var title = _ref3.title,
47147
- content = _ref3.content,
47148
- _ref3$isLoading = _ref3.isLoading,
47149
- isLoading = _ref3$isLoading === void 0 ? false : _ref3$isLoading,
47150
- _ref3$isError = _ref3.isError,
47151
- isError = _ref3$isError === void 0 ? false : _ref3$isError;
47152
- return /*#__PURE__*/React.createElement(Stack, null, title, isLoading || isError ? getLoadingOrErrorContent(isLoading, isError) : content);
47921
+ content = _ref3.content;
47922
+ return /*#__PURE__*/React.createElement(Stack, null, title, content);
47153
47923
  };
47154
47924
 
47155
47925
  var PaymentDetails = function PaymentDetails(_ref4) {
@@ -47179,11 +47949,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47179
47949
  _ref4$voidableAmountP = _ref4.voidableAmountPaid,
47180
47950
  voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP,
47181
47951
  _ref4$remainingBalanc = _ref4.remainingBalance,
47182
- remainingBalance = _ref4$remainingBalanc === void 0 ? false : _ref4$remainingBalanc,
47183
- _ref4$isLoading = _ref4.isLoading,
47184
- isLoading = _ref4$isLoading === void 0 ? false : _ref4$isLoading,
47185
- _ref4$isError = _ref4.isError,
47186
- isError = _ref4$isError === void 0 ? false : _ref4$isError;
47952
+ remainingBalance = _ref4$remainingBalanc === void 0 ? false : _ref4$remainingBalanc;
47187
47953
 
47188
47954
  var _useState = useState(initiallyOpen),
47189
47955
  _useState2 = _slicedToArray(_useState, 2),
@@ -47286,14 +48052,10 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47286
48052
  isOpen: isOpen,
47287
48053
  setIsOpen: setIsOpen,
47288
48054
  isMobile: isMobile,
47289
- supportsTouch: supportsTouch,
47290
- isLoading: isLoading,
47291
- isError: isError
48055
+ supportsTouch: supportsTouch
47292
48056
  }) : /*#__PURE__*/React.createElement(NonCollapsible, {
47293
48057
  title: title,
47294
- content: content,
47295
- isLoading: isLoading,
47296
- isError: isError
48058
+ content: content
47297
48059
  });
47298
48060
  };
47299
48061
 
@@ -47504,6 +48266,59 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
47504
48266
  })))));
47505
48267
  };
47506
48268
 
48269
+ /*
48270
+
48271
+ A utility function that can generate box-shadow values for components
48272
+ Takes a string representing an rgb color value and returns an object
48273
+ with values for standard, inset, and overlay shadows.
48274
+
48275
+ The objects for standard and inset shadows contain versions approiate
48276
+ for base, hover, and active interaction states.
48277
+
48278
+ */
48279
+
48280
+ /*
48281
+ Function to convert string representing rgb color to rgba value with provided opacity
48282
+ ("rgb(41, 42, 51)", "0.1") => "rgba(41, 42, 51, 0.1)"
48283
+
48284
+ */
48285
+ var rgbToRgba = function rgbToRgba() {
48286
+ var rgbValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
48287
+ var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
48288
+
48289
+ if (typeof rgbValue !== "string" || typeof opacity !== "string" || rgbValue.charAt(0) === "#") {
48290
+ return "";
48291
+ }
48292
+
48293
+ return "".concat(rgbValue.slice(0, 3), "a").concat(rgbValue.slice(3, -1), ", ").concat(opacity).concat(rgbValue.slice(-1));
48294
+ };
48295
+
48296
+ var generateShadows = function generateShadows(baseColorRGB) {
48297
+ var colorTen = rgbToRgba(baseColorRGB, "0.1") || "rgba(41, 42, 51, 0.1)";
48298
+ var colorTwenty = rgbToRgba(baseColorRGB, "0.2") || "rgba(41, 42, 51, 0.2)";
48299
+ var colorTwentyFive = rgbToRgba(baseColorRGB, "0.25") || "rgba(41, 42, 51, 0.25)";
48300
+ var colorThirty = rgbToRgba(baseColorRGB, "0.3") || "rgba(41, 42, 51, 0.3)";
48301
+ var blackTwentyFive = "rgba(0, 0, 0, 0.25)";
48302
+ var standard = {
48303
+ base: "0px 1px 2px 0px ".concat(colorTen, ", 0px 2px 6px 0px ").concat(colorTwenty, ", inset 0px 1px 0px 0px ").concat(colorTen),
48304
+ hover: "0px 1px 2px 0px ".concat(colorTwenty, ", 0px 4px 8px 0px ").concat(blackTwentyFive, ", 0px 6px 12px 0px ").concat(colorTen),
48305
+ active: "0px 2px 8px 0px ".concat(colorTwenty, ", 0px 4px 8px 0px ").concat(colorThirty, ", 0px 6px 12px 0px ").concat(colorTwentyFive)
48306
+ };
48307
+ var inset = {
48308
+ base: "0px 1px 2px 0px ".concat(colorTen, ", 0px 2px 4px 0px ").concat(colorTwenty, ", inset 0px 1px 0px 0px ").concat(colorTen),
48309
+ hover: "0px 1px 2px 0px ".concat(colorTen, ", 0px 2px 4px 0px ").concat(colorTwentyFive, ", 0px 4px 8px 0px ").concat(colorTen),
48310
+ active: "0px 1px 2px 2px ".concat(colorTwenty, ", 0px 3px 6px 0px ").concat(colorThirty, ", 0px 4px 8px 0px ").concat(colorTwenty)
48311
+ };
48312
+ var overlay = {
48313
+ base: "0px 7px 32px 0px ".concat(colorTwenty, ", 0px 1px 4px 0px ").concat(colorTwenty, ", 0px 1px 8px -1px ").concat(colorThirty)
48314
+ };
48315
+ return {
48316
+ standard: standard,
48317
+ inset: inset,
48318
+ overlay: overlay
48319
+ };
48320
+ };
48321
+
47507
48322
  /*
47508
48323
  Hook that takes an ID selector for an element on the screen
47509
48324
  And optionally values for top position, left position, smooth behavior