@sebgroup/green-react 1.14.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,11 +1,13 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import React, { useState, useEffect, useRef, useLayoutEffect, useMemo } from 'react';
3
- import { randomId, createDatepicker, createDropdown, dropdownValues, months, years, debounce, validateClassName, delay, sliderColors, getSliderTrackBackground, createStepper } from '@sebgroup/extract';
3
+ import { randomId, createDatepicker, months, years, debounce, validateClassName, delay, sliderColors, getSliderTrackBackground, createStepper } from '@sebgroup/extract';
4
+ import { getScopedTagName, GdsDropdown, GdsOption } from '@sebgroup/green-core';
5
+ import { registerTransitionalStyles } from '@sebgroup/green-core/transitional-styles';
4
6
  import classNames from 'classnames';
5
7
 
6
8
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
9
 
8
- var fails$f = function (exec) {
10
+ var fails$g = function (exec) {
9
11
  try {
10
12
  return !!exec();
11
13
  } catch (error) {
@@ -13,9 +15,9 @@ var fails$f = function (exec) {
13
15
  }
14
16
  };
15
17
 
16
- var fails$e = fails$f;
18
+ var fails$f = fails$g;
17
19
 
18
- var functionBindNative = !fails$e(function () {
20
+ var functionBindNative = !fails$f(function () {
19
21
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
20
22
  var test = (function () { /* empty */ }).bind();
21
23
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -34,29 +36,29 @@ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
34
36
  };
35
37
  };
36
38
 
37
- var uncurryThis$h = functionUncurryThis;
39
+ var uncurryThis$i = functionUncurryThis;
38
40
 
39
- var toString$5 = uncurryThis$h({}.toString);
40
- var stringSlice$2 = uncurryThis$h(''.slice);
41
+ var toString$6 = uncurryThis$i({}.toString);
42
+ var stringSlice$2 = uncurryThis$i(''.slice);
41
43
 
42
44
  var classofRaw$2 = function (it) {
43
- return stringSlice$2(toString$5(it), 8, -1);
45
+ return stringSlice$2(toString$6(it), 8, -1);
44
46
  };
45
47
 
46
- var uncurryThis$g = functionUncurryThis;
47
- var fails$d = fails$f;
48
- var classof$5 = classofRaw$2;
48
+ var uncurryThis$h = functionUncurryThis;
49
+ var fails$e = fails$g;
50
+ var classof$6 = classofRaw$2;
49
51
 
50
52
  var $Object$4 = Object;
51
- var split = uncurryThis$g(''.split);
53
+ var split = uncurryThis$h(''.split);
52
54
 
53
55
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
54
- var indexedObject = fails$d(function () {
56
+ var indexedObject = fails$e(function () {
55
57
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
56
58
  // eslint-disable-next-line no-prototype-builtins -- safe
57
59
  return !$Object$4('z').propertyIsEnumerable(0);
58
60
  }) ? function (it) {
59
- return classof$5(it) == 'String' ? split(it, '') : $Object$4(it);
61
+ return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
60
62
  } : $Object$4;
61
63
 
62
64
  // we can't use just `it == null` since of `document.all` special case
@@ -67,29 +69,29 @@ var isNullOrUndefined$4 = function (it) {
67
69
 
68
70
  var isNullOrUndefined$3 = isNullOrUndefined$4;
69
71
 
70
- var $TypeError$c = TypeError;
72
+ var $TypeError$d = TypeError;
71
73
 
72
74
  // `RequireObjectCoercible` abstract operation
73
75
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
74
- var requireObjectCoercible$3 = function (it) {
75
- if (isNullOrUndefined$3(it)) throw $TypeError$c("Can't call method on " + it);
76
+ var requireObjectCoercible$4 = function (it) {
77
+ if (isNullOrUndefined$3(it)) throw new $TypeError$d("Can't call method on " + it);
76
78
  return it;
77
79
  };
78
80
 
79
81
  // toObject with fallback for non-array-like ES3 strings
80
82
  var IndexedObject$1 = indexedObject;
81
- var requireObjectCoercible$2 = requireObjectCoercible$3;
83
+ var requireObjectCoercible$3 = requireObjectCoercible$4;
82
84
 
83
85
  var toIndexedObject$5 = function (it) {
84
- return IndexedObject$1(requireObjectCoercible$2(it));
86
+ return IndexedObject$1(requireObjectCoercible$3(it));
85
87
  };
86
88
 
87
89
  var check = function (it) {
88
- return it && it.Math == Math && it;
90
+ return it && it.Math === Math && it;
89
91
  };
90
92
 
91
93
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
92
- var global$i =
94
+ var global$k =
93
95
  // eslint-disable-next-line es/no-global-this -- safe
94
96
  check(typeof globalThis == 'object' && globalThis) ||
95
97
  check(typeof window == 'object' && window) ||
@@ -97,28 +99,28 @@ var global$i =
97
99
  check(typeof self == 'object' && self) ||
98
100
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
99
101
  // eslint-disable-next-line no-new-func -- fallback
100
- (function () { return this; })() || Function('return this')();
102
+ (function () { return this; })() || commonjsGlobal || Function('return this')();
101
103
 
102
104
  var shared$3 = {exports: {}};
103
105
 
104
- var global$h = global$i;
106
+ var global$j = global$k;
105
107
 
106
108
  // eslint-disable-next-line es/no-object-defineproperty -- safe
107
109
  var defineProperty$6 = Object.defineProperty;
108
110
 
109
111
  var defineGlobalProperty$3 = function (key, value) {
110
112
  try {
111
- defineProperty$6(global$h, key, { value: value, configurable: true, writable: true });
113
+ defineProperty$6(global$j, key, { value: value, configurable: true, writable: true });
112
114
  } catch (error) {
113
- global$h[key] = value;
115
+ global$j[key] = value;
114
116
  } return value;
115
117
  };
116
118
 
117
- var global$g = global$i;
119
+ var global$i = global$k;
118
120
  var defineGlobalProperty$2 = defineGlobalProperty$3;
119
121
 
120
122
  var SHARED = '__core-js_shared__';
121
- var store$3 = global$g[SHARED] || defineGlobalProperty$2(SHARED, {});
123
+ var store$3 = global$i[SHARED] || defineGlobalProperty$2(SHARED, {});
122
124
 
123
125
  var sharedStore = store$3;
124
126
 
@@ -127,27 +129,27 @@ var store$2 = sharedStore;
127
129
  (shared$3.exports = function (key, value) {
128
130
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
129
131
  })('versions', []).push({
130
- version: '3.30.1',
132
+ version: '3.33.1',
131
133
  mode: 'global',
132
134
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
133
- license: 'https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE',
135
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.1/LICENSE',
134
136
  source: 'https://github.com/zloirock/core-js'
135
137
  });
136
138
 
137
- var requireObjectCoercible$1 = requireObjectCoercible$3;
139
+ var requireObjectCoercible$2 = requireObjectCoercible$4;
138
140
 
139
141
  var $Object$3 = Object;
140
142
 
141
143
  // `ToObject` abstract operation
142
144
  // https://tc39.es/ecma262/#sec-toobject
143
145
  var toObject$3 = function (argument) {
144
- return $Object$3(requireObjectCoercible$1(argument));
146
+ return $Object$3(requireObjectCoercible$2(argument));
145
147
  };
146
148
 
147
- var uncurryThis$f = functionUncurryThis;
149
+ var uncurryThis$g = functionUncurryThis;
148
150
  var toObject$2 = toObject$3;
149
151
 
150
- var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
152
+ var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
151
153
 
152
154
  // `HasOwnProperty` abstract operation
153
155
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -156,24 +158,24 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
156
158
  return hasOwnProperty(toObject$2(it), key);
157
159
  };
158
160
 
159
- var uncurryThis$e = functionUncurryThis;
161
+ var uncurryThis$f = functionUncurryThis;
160
162
 
161
163
  var id = 0;
162
164
  var postfix = Math.random();
163
- var toString$4 = uncurryThis$e(1.0.toString);
165
+ var toString$5 = uncurryThis$f(1.0.toString);
164
166
 
165
167
  var uid$2 = function (key) {
166
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
168
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
167
169
  };
168
170
 
169
171
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
170
172
 
171
- var global$f = global$i;
173
+ var global$h = global$k;
172
174
  var userAgent$3 = engineUserAgent;
173
175
 
174
- var process$4 = global$f.process;
175
- var Deno$1 = global$f.Deno;
176
- var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
176
+ var process$3 = global$h.process;
177
+ var Deno$1 = global$h.Deno;
178
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
177
179
  var v8 = versions && versions.v8;
178
180
  var match, version;
179
181
 
@@ -197,40 +199,43 @@ if (!version && userAgent$3) {
197
199
  var engineV8Version = version;
198
200
 
199
201
  /* eslint-disable es/no-symbol -- required for testing */
200
-
201
202
  var V8_VERSION$1 = engineV8Version;
202
- var fails$c = fails$f;
203
+ var fails$d = fails$g;
204
+ var global$g = global$k;
205
+
206
+ var $String$5 = global$g.String;
203
207
 
204
208
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
205
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
206
- var symbol = Symbol();
209
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
210
+ var symbol = Symbol('symbol detection');
207
211
  // Chrome 38 Symbol has incorrect toString conversion
208
212
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
209
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
213
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
214
+ // of course, fail.
215
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
210
216
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
211
217
  !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
212
218
  });
213
219
 
214
220
  /* eslint-disable es/no-symbol -- required for testing */
215
-
216
221
  var NATIVE_SYMBOL$2 = symbolConstructorDetection;
217
222
 
218
223
  var useSymbolAsUid = NATIVE_SYMBOL$2
219
224
  && !Symbol.sham
220
225
  && typeof Symbol.iterator == 'symbol';
221
226
 
222
- var global$e = global$i;
227
+ var global$f = global$k;
223
228
  var shared$2 = shared$3.exports;
224
229
  var hasOwn$b = hasOwnProperty_1;
225
230
  var uid$1 = uid$2;
226
231
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
227
232
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
228
233
 
229
- var Symbol$2 = global$e.Symbol;
234
+ var Symbol$2 = global$f.Symbol;
230
235
  var WellKnownSymbolsStore = shared$2('wks');
231
236
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
232
237
 
233
- var wellKnownSymbol$e = function (name) {
238
+ var wellKnownSymbol$g = function (name) {
234
239
  if (!hasOwn$b(WellKnownSymbolsStore, name)) {
235
240
  WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$b(Symbol$2, name)
236
241
  ? Symbol$2[name]
@@ -266,69 +271,69 @@ var $documentAll = documentAll_1;
266
271
 
267
272
  var documentAll = $documentAll.all;
268
273
 
269
- var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
274
+ var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
270
275
  return typeof it == 'object' ? it !== null : isCallable$k(it) || it === documentAll;
271
276
  } : function (it) {
272
277
  return typeof it == 'object' ? it !== null : isCallable$k(it);
273
278
  };
274
279
 
275
- var isObject$7 = isObject$8;
280
+ var isObject$8 = isObject$9;
276
281
 
277
282
  var $String$4 = String;
278
- var $TypeError$b = TypeError;
283
+ var $TypeError$c = TypeError;
279
284
 
280
285
  // `Assert: Type(argument) is Object`
281
286
  var anObject$c = function (argument) {
282
- if (isObject$7(argument)) return argument;
283
- throw $TypeError$b($String$4(argument) + ' is not an object');
287
+ if (isObject$8(argument)) return argument;
288
+ throw new $TypeError$c($String$4(argument) + ' is not an object');
284
289
  };
285
290
 
286
291
  var objectDefineProperties = {};
287
292
 
288
- var fails$b = fails$f;
293
+ var fails$c = fails$g;
289
294
 
290
295
  // Detect IE8's incomplete defineProperty implementation
291
- var descriptors = !fails$b(function () {
296
+ var descriptors = !fails$c(function () {
292
297
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
293
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
298
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
294
299
  });
295
300
 
296
301
  var DESCRIPTORS$b = descriptors;
297
- var fails$a = fails$f;
302
+ var fails$b = fails$g;
298
303
 
299
304
  // V8 ~ Chrome 36-
300
305
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
301
- var v8PrototypeDefineBug = DESCRIPTORS$b && fails$a(function () {
306
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$b(function () {
302
307
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
303
308
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
304
309
  value: 42,
305
310
  writable: false
306
- }).prototype != 42;
311
+ }).prototype !== 42;
307
312
  });
308
313
 
309
314
  var objectDefineProperty = {};
310
315
 
311
- var global$d = global$i;
312
- var isObject$6 = isObject$8;
316
+ var global$e = global$k;
317
+ var isObject$7 = isObject$9;
313
318
 
314
- var document$3 = global$d.document;
319
+ var document$3 = global$e.document;
315
320
  // typeof document.createElement is 'object' in old IE
316
- var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
321
+ var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
317
322
 
318
323
  var documentCreateElement$2 = function (it) {
319
324
  return EXISTS$1 ? document$3.createElement(it) : {};
320
325
  };
321
326
 
322
327
  var DESCRIPTORS$a = descriptors;
323
- var fails$9 = fails$f;
328
+ var fails$a = fails$g;
324
329
  var createElement$1 = documentCreateElement$2;
325
330
 
326
331
  // Thanks to IE8 for its funny defineProperty
327
- var ie8DomDefine = !DESCRIPTORS$a && !fails$9(function () {
332
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$a(function () {
328
333
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
329
334
  return Object.defineProperty(createElement$1('div'), 'a', {
330
335
  get: function () { return 7; }
331
- }).a != 7;
336
+ }).a !== 7;
332
337
  });
333
338
 
334
339
  var NATIVE_BIND$2 = functionBindNative;
@@ -339,7 +344,7 @@ var functionCall = NATIVE_BIND$2 ? call$e.bind(call$e) : function () {
339
344
  return call$e.apply(call$e, arguments);
340
345
  };
341
346
 
342
- var global$c = global$i;
347
+ var global$d = global$k;
343
348
  var isCallable$j = isCallable$l;
344
349
 
345
350
  var aFunction = function (argument) {
@@ -347,12 +352,12 @@ var aFunction = function (argument) {
347
352
  };
348
353
 
349
354
  var getBuiltIn$7 = function (namespace, method) {
350
- return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
355
+ return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
351
356
  };
352
357
 
353
- var uncurryThis$d = functionUncurryThis;
358
+ var uncurryThis$e = functionUncurryThis;
354
359
 
355
- var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
360
+ var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
356
361
 
357
362
  var getBuiltIn$6 = getBuiltIn$7;
358
363
  var isCallable$i = isCallable$l;
@@ -381,12 +386,12 @@ var tryToString$4 = function (argument) {
381
386
  var isCallable$h = isCallable$l;
382
387
  var tryToString$3 = tryToString$4;
383
388
 
384
- var $TypeError$a = TypeError;
389
+ var $TypeError$b = TypeError;
385
390
 
386
391
  // `Assert: IsCallable(argument) is true`
387
392
  var aCallable$8 = function (argument) {
388
393
  if (isCallable$h(argument)) return argument;
389
- throw $TypeError$a(tryToString$3(argument) + ' is not a function');
394
+ throw new $TypeError$b(tryToString$3(argument) + ' is not a function');
390
395
  };
391
396
 
392
397
  var aCallable$7 = aCallable$8;
@@ -401,41 +406,41 @@ var getMethod$3 = function (V, P) {
401
406
 
402
407
  var call$d = functionCall;
403
408
  var isCallable$g = isCallable$l;
404
- var isObject$5 = isObject$8;
409
+ var isObject$6 = isObject$9;
405
410
 
406
- var $TypeError$9 = TypeError;
411
+ var $TypeError$a = TypeError;
407
412
 
408
413
  // `OrdinaryToPrimitive` abstract operation
409
414
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
410
415
  var ordinaryToPrimitive$1 = function (input, pref) {
411
416
  var fn, val;
412
- if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$5(val = call$d(fn, input))) return val;
413
- if (isCallable$g(fn = input.valueOf) && !isObject$5(val = call$d(fn, input))) return val;
414
- if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$5(val = call$d(fn, input))) return val;
415
- throw $TypeError$9("Can't convert object to primitive value");
417
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$6(val = call$d(fn, input))) return val;
418
+ if (isCallable$g(fn = input.valueOf) && !isObject$6(val = call$d(fn, input))) return val;
419
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$6(val = call$d(fn, input))) return val;
420
+ throw new $TypeError$a("Can't convert object to primitive value");
416
421
  };
417
422
 
418
423
  var call$c = functionCall;
419
- var isObject$4 = isObject$8;
424
+ var isObject$5 = isObject$9;
420
425
  var isSymbol$1 = isSymbol$2;
421
426
  var getMethod$2 = getMethod$3;
422
427
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
423
- var wellKnownSymbol$d = wellKnownSymbol$e;
428
+ var wellKnownSymbol$f = wellKnownSymbol$g;
424
429
 
425
- var $TypeError$8 = TypeError;
426
- var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
430
+ var $TypeError$9 = TypeError;
431
+ var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
427
432
 
428
433
  // `ToPrimitive` abstract operation
429
434
  // https://tc39.es/ecma262/#sec-toprimitive
430
435
  var toPrimitive$1 = function (input, pref) {
431
- if (!isObject$4(input) || isSymbol$1(input)) return input;
436
+ if (!isObject$5(input) || isSymbol$1(input)) return input;
432
437
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
433
438
  var result;
434
439
  if (exoticToPrim) {
435
440
  if (pref === undefined) pref = 'default';
436
441
  result = call$c(exoticToPrim, input, pref);
437
- if (!isObject$4(result) || isSymbol$1(result)) return result;
438
- throw $TypeError$8("Can't convert object to primitive value");
442
+ if (!isObject$5(result) || isSymbol$1(result)) return result;
443
+ throw new $TypeError$9("Can't convert object to primitive value");
439
444
  }
440
445
  if (pref === undefined) pref = 'number';
441
446
  return ordinaryToPrimitive(input, pref);
@@ -457,7 +462,7 @@ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
457
462
  var anObject$b = anObject$c;
458
463
  var toPropertyKey$1 = toPropertyKey$2;
459
464
 
460
- var $TypeError$7 = TypeError;
465
+ var $TypeError$8 = TypeError;
461
466
  // eslint-disable-next-line es/no-object-defineproperty -- safe
462
467
  var $defineProperty = Object.defineProperty;
463
468
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -490,7 +495,7 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
490
495
  if (IE8_DOM_DEFINE$1) try {
491
496
  return $defineProperty(O, P, Attributes);
492
497
  } catch (error) { /* empty */ }
493
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$7('Accessors not supported');
498
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$8('Accessors not supported');
494
499
  if ('value' in Attributes) O[P] = Attributes.value;
495
500
  return O;
496
501
  };
@@ -560,10 +565,10 @@ var createMethod$1 = function (IS_INCLUDES) {
560
565
  var value;
561
566
  // Array#includes uses SameValueZero equality algorithm
562
567
  // eslint-disable-next-line no-self-compare -- NaN check
563
- if (IS_INCLUDES && el != el) while (length > index) {
568
+ if (IS_INCLUDES && el !== el) while (length > index) {
564
569
  value = O[index++];
565
570
  // eslint-disable-next-line no-self-compare -- NaN check
566
- if (value != value) return true;
571
+ if (value !== value) return true;
567
572
  // Array#indexOf ignores holes, Array#includes - not
568
573
  } else for (;length > index; index++) {
569
574
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -582,13 +587,13 @@ var arrayIncludes = {
582
587
 
583
588
  var hiddenKeys$4 = {};
584
589
 
585
- var uncurryThis$c = functionUncurryThis;
590
+ var uncurryThis$d = functionUncurryThis;
586
591
  var hasOwn$a = hasOwnProperty_1;
587
592
  var toIndexedObject$3 = toIndexedObject$5;
588
593
  var indexOf = arrayIncludes.indexOf;
589
594
  var hiddenKeys$3 = hiddenKeys$4;
590
595
 
591
- var push = uncurryThis$c([].push);
596
+ var push = uncurryThis$d([].push);
592
597
 
593
598
  var objectKeysInternal = function (object, names) {
594
599
  var O = toIndexedObject$3(object);
@@ -659,7 +664,6 @@ var sharedKey$3 = function (key) {
659
664
  };
660
665
 
661
666
  /* global ActiveXObject -- old IE, WSH */
662
-
663
667
  var anObject$9 = anObject$c;
664
668
  var definePropertiesModule = objectDefineProperties;
665
669
  var enumBugKeys$1 = enumBugKeys$3;
@@ -743,16 +747,16 @@ var objectCreate = Object.create || function create(O, Properties) {
743
747
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
744
748
  };
745
749
 
746
- var wellKnownSymbol$c = wellKnownSymbol$e;
750
+ var wellKnownSymbol$e = wellKnownSymbol$g;
747
751
  var create$1 = objectCreate;
748
752
  var defineProperty$5 = objectDefineProperty.f;
749
753
 
750
- var UNSCOPABLES = wellKnownSymbol$c('unscopables');
754
+ var UNSCOPABLES = wellKnownSymbol$e('unscopables');
751
755
  var ArrayPrototype$1 = Array.prototype;
752
756
 
753
757
  // Array.prototype[@@unscopables]
754
758
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
755
- if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
759
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
756
760
  defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
757
761
  configurable: true,
758
762
  value: create$1(null)
@@ -760,18 +764,18 @@ if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
760
764
  }
761
765
 
762
766
  // add a key to Array.prototype[@@unscopables]
763
- var addToUnscopables$1 = function (key) {
767
+ var addToUnscopables$2 = function (key) {
764
768
  ArrayPrototype$1[UNSCOPABLES][key] = true;
765
769
  };
766
770
 
767
771
  var iterators = {};
768
772
 
769
- var global$b = global$i;
773
+ var global$c = global$k;
770
774
  var isCallable$f = isCallable$l;
771
775
 
772
- var WeakMap$1 = global$b.WeakMap;
776
+ var WeakMap$2 = global$c.WeakMap;
773
777
 
774
- var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
778
+ var weakMapBasicDetection = isCallable$f(WeakMap$2) && /native code/.test(String(WeakMap$2));
775
779
 
776
780
  var createPropertyDescriptor$3 = function (bitmap, value) {
777
781
  return {
@@ -794,8 +798,8 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$7 ? function (object, key, value
794
798
  };
795
799
 
796
800
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
797
- var global$a = global$i;
798
- var isObject$3 = isObject$8;
801
+ var global$b = global$k;
802
+ var isObject$4 = isObject$9;
799
803
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
800
804
  var hasOwn$9 = hasOwnProperty_1;
801
805
  var shared = sharedStore;
@@ -803,8 +807,8 @@ var sharedKey$1 = sharedKey$3;
803
807
  var hiddenKeys$1 = hiddenKeys$4;
804
808
 
805
809
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
806
- var TypeError$2 = global$a.TypeError;
807
- var WeakMap = global$a.WeakMap;
810
+ var TypeError$2 = global$b.TypeError;
811
+ var WeakMap$1 = global$b.WeakMap;
808
812
  var set$1, get, has;
809
813
 
810
814
  var enforce = function (it) {
@@ -814,21 +818,21 @@ var enforce = function (it) {
814
818
  var getterFor = function (TYPE) {
815
819
  return function (it) {
816
820
  var state;
817
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
818
- throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
821
+ if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
822
+ throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
819
823
  } return state;
820
824
  };
821
825
  };
822
826
 
823
827
  if (NATIVE_WEAK_MAP || shared.state) {
824
- var store$1 = shared.state || (shared.state = new WeakMap());
828
+ var store$1 = shared.state || (shared.state = new WeakMap$1());
825
829
  /* eslint-disable no-self-assign -- prototype methods protection */
826
830
  store$1.get = store$1.get;
827
831
  store$1.has = store$1.has;
828
832
  store$1.set = store$1.set;
829
833
  /* eslint-enable no-self-assign -- prototype methods protection */
830
834
  set$1 = function (it, metadata) {
831
- if (store$1.has(it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
835
+ if (store$1.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
832
836
  metadata.facade = it;
833
837
  store$1.set(it, metadata);
834
838
  return metadata;
@@ -843,7 +847,7 @@ if (NATIVE_WEAK_MAP || shared.state) {
843
847
  var STATE = sharedKey$1('state');
844
848
  hiddenKeys$1[STATE] = true;
845
849
  set$1 = function (it, metadata) {
846
- if (hasOwn$9(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
850
+ if (hasOwn$9(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
847
851
  metadata.facade = it;
848
852
  createNonEnumerableProperty$3(it, STATE, metadata);
849
853
  return metadata;
@@ -925,11 +929,11 @@ var functionName = {
925
929
  CONFIGURABLE: CONFIGURABLE
926
930
  };
927
931
 
928
- var uncurryThis$b = functionUncurryThis;
932
+ var uncurryThis$c = functionUncurryThis;
929
933
  var isCallable$e = isCallable$l;
930
934
  var store = sharedStore;
931
935
 
932
- var functionToString = uncurryThis$b(Function.toString);
936
+ var functionToString = uncurryThis$c(Function.toString);
933
937
 
934
938
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
935
939
  if (!isCallable$e(store.inspectSource)) {
@@ -940,8 +944,8 @@ if (!isCallable$e(store.inspectSource)) {
940
944
 
941
945
  var inspectSource$3 = store.inspectSource;
942
946
 
943
- var uncurryThis$a = functionUncurryThis;
944
- var fails$8 = fails$f;
947
+ var uncurryThis$b = functionUncurryThis;
948
+ var fails$9 = fails$g;
945
949
  var isCallable$d = isCallable$l;
946
950
  var hasOwn$6 = hasOwnProperty_1;
947
951
  var DESCRIPTORS$4 = descriptors;
@@ -954,11 +958,11 @@ var getInternalState$1 = InternalStateModule$2.get;
954
958
  var $String$2 = String;
955
959
  // eslint-disable-next-line es/no-object-defineproperty -- safe
956
960
  var defineProperty$4 = Object.defineProperty;
957
- var stringSlice$1 = uncurryThis$a(''.slice);
958
- var replace$2 = uncurryThis$a(''.replace);
959
- var join = uncurryThis$a([].join);
961
+ var stringSlice$1 = uncurryThis$b(''.slice);
962
+ var replace$2 = uncurryThis$b(''.replace);
963
+ var join = uncurryThis$b([].join);
960
964
 
961
- var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$8(function () {
965
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$9(function () {
962
966
  return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
963
967
  });
964
968
 
@@ -1043,12 +1047,12 @@ var objectGetOwnPropertySymbols = {};
1043
1047
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1044
1048
 
1045
1049
  var getBuiltIn$4 = getBuiltIn$7;
1046
- var uncurryThis$9 = functionUncurryThis;
1050
+ var uncurryThis$a = functionUncurryThis;
1047
1051
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1048
1052
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1049
1053
  var anObject$8 = anObject$c;
1050
1054
 
1051
- var concat$1 = uncurryThis$9([].concat);
1055
+ var concat$1 = uncurryThis$a([].concat);
1052
1056
 
1053
1057
  // all object keys, includes non-enumerable and symbols
1054
1058
  var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -1074,16 +1078,16 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
1074
1078
  }
1075
1079
  };
1076
1080
 
1077
- var fails$7 = fails$f;
1081
+ var fails$8 = fails$g;
1078
1082
  var isCallable$b = isCallable$l;
1079
1083
 
1080
1084
  var replacement = /#|\.prototype\./;
1081
1085
 
1082
1086
  var isForced$2 = function (feature, detection) {
1083
1087
  var value = data[normalize(feature)];
1084
- return value == POLYFILL ? true
1085
- : value == NATIVE ? false
1086
- : isCallable$b(detection) ? fails$7(detection)
1088
+ return value === POLYFILL ? true
1089
+ : value === NATIVE ? false
1090
+ : isCallable$b(detection) ? fails$8(detection)
1087
1091
  : !!detection;
1088
1092
  };
1089
1093
 
@@ -1097,7 +1101,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
1097
1101
 
1098
1102
  var isForced_1 = isForced$2;
1099
1103
 
1100
- var global$9 = global$i;
1104
+ var global$a = global$k;
1101
1105
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1102
1106
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1103
1107
  var defineBuiltIn$5 = defineBuiltIn$6;
@@ -1126,11 +1130,11 @@ var _export = function (options, source) {
1126
1130
  var STATIC = options.stat;
1127
1131
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1128
1132
  if (GLOBAL) {
1129
- target = global$9;
1133
+ target = global$a;
1130
1134
  } else if (STATIC) {
1131
- target = global$9[TARGET] || defineGlobalProperty(TARGET, {});
1135
+ target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
1132
1136
  } else {
1133
- target = (global$9[TARGET] || {}).prototype;
1137
+ target = (global$a[TARGET] || {}).prototype;
1134
1138
  }
1135
1139
  if (target) for (key in source) {
1136
1140
  sourceProperty = source[key];
@@ -1152,9 +1156,9 @@ var _export = function (options, source) {
1152
1156
  }
1153
1157
  };
1154
1158
 
1155
- var fails$6 = fails$f;
1159
+ var fails$7 = fails$g;
1156
1160
 
1157
- var correctPrototypeGetter = !fails$6(function () {
1161
+ var correctPrototypeGetter = !fails$7(function () {
1158
1162
  function F() { /* empty */ }
1159
1163
  F.prototype.constructor = null;
1160
1164
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -1183,14 +1187,14 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1183
1187
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1184
1188
  };
1185
1189
 
1186
- var fails$5 = fails$f;
1190
+ var fails$6 = fails$g;
1187
1191
  var isCallable$9 = isCallable$l;
1188
- var isObject$2 = isObject$8;
1192
+ var isObject$3 = isObject$9;
1189
1193
  var getPrototypeOf$1 = objectGetPrototypeOf;
1190
1194
  var defineBuiltIn$4 = defineBuiltIn$6;
1191
- var wellKnownSymbol$b = wellKnownSymbol$e;
1195
+ var wellKnownSymbol$d = wellKnownSymbol$g;
1192
1196
 
1193
- var ITERATOR$6 = wellKnownSymbol$b('iterator');
1197
+ var ITERATOR$6 = wellKnownSymbol$d('iterator');
1194
1198
  var BUGGY_SAFARI_ITERATORS$1 = false;
1195
1199
 
1196
1200
  // `%IteratorPrototype%` object
@@ -1208,7 +1212,7 @@ if ([].keys) {
1208
1212
  }
1209
1213
  }
1210
1214
 
1211
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$5(function () {
1215
+ var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$6(function () {
1212
1216
  var test = {};
1213
1217
  // FF44- legacy iterators case
1214
1218
  return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
@@ -1231,9 +1235,9 @@ var iteratorsCore = {
1231
1235
 
1232
1236
  var defineProperty$3 = objectDefineProperty.f;
1233
1237
  var hasOwn$3 = hasOwnProperty_1;
1234
- var wellKnownSymbol$a = wellKnownSymbol$e;
1238
+ var wellKnownSymbol$c = wellKnownSymbol$g;
1235
1239
 
1236
- var TO_STRING_TAG$3 = wellKnownSymbol$a('toStringTag');
1240
+ var TO_STRING_TAG$3 = wellKnownSymbol$c('toStringTag');
1237
1241
 
1238
1242
  var setToStringTag$3 = function (target, TAG, STATIC) {
1239
1243
  if (target && !STATIC) target = target.prototype;
@@ -1258,28 +1262,27 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1258
1262
  return IteratorConstructor;
1259
1263
  };
1260
1264
 
1261
- var uncurryThis$8 = functionUncurryThis;
1265
+ var uncurryThis$9 = functionUncurryThis;
1262
1266
  var aCallable$6 = aCallable$8;
1263
1267
 
1264
1268
  var functionUncurryThisAccessor = function (object, key, method) {
1265
1269
  try {
1266
1270
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1267
- return uncurryThis$8(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
1271
+ return uncurryThis$9(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
1268
1272
  } catch (error) { /* empty */ }
1269
1273
  };
1270
1274
 
1271
1275
  var isCallable$8 = isCallable$l;
1272
1276
 
1273
1277
  var $String$1 = String;
1274
- var $TypeError$6 = TypeError;
1278
+ var $TypeError$7 = TypeError;
1275
1279
 
1276
1280
  var aPossiblePrototype$1 = function (argument) {
1277
1281
  if (typeof argument == 'object' || isCallable$8(argument)) return argument;
1278
- throw $TypeError$6("Can't set " + $String$1(argument) + ' as a prototype');
1282
+ throw new $TypeError$7("Can't set " + $String$1(argument) + ' as a prototype');
1279
1283
  };
1280
1284
 
1281
1285
  /* eslint-disable no-proto -- safe */
1282
-
1283
1286
  var uncurryThisAccessor = functionUncurryThisAccessor;
1284
1287
  var anObject$7 = anObject$c;
1285
1288
  var aPossiblePrototype = aPossiblePrototype$1;
@@ -1306,7 +1309,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1306
1309
  };
1307
1310
  }() : undefined);
1308
1311
 
1309
- var $$9 = _export;
1312
+ var $$b = _export;
1310
1313
  var call$a = functionCall;
1311
1314
  var FunctionName = functionName;
1312
1315
  var isCallable$7 = isCallable$l;
@@ -1316,7 +1319,7 @@ var setPrototypeOf$1 = objectSetPrototypeOf;
1316
1319
  var setToStringTag$1 = setToStringTag$3;
1317
1320
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1318
1321
  var defineBuiltIn$3 = defineBuiltIn$6;
1319
- var wellKnownSymbol$9 = wellKnownSymbol$e;
1322
+ var wellKnownSymbol$b = wellKnownSymbol$g;
1320
1323
  var Iterators$3 = iterators;
1321
1324
  var IteratorsCore = iteratorsCore;
1322
1325
 
@@ -1324,7 +1327,7 @@ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1324
1327
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1325
1328
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1326
1329
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1327
- var ITERATOR$5 = wellKnownSymbol$9('iterator');
1330
+ var ITERATOR$5 = wellKnownSymbol$b('iterator');
1328
1331
  var KEYS = 'keys';
1329
1332
  var VALUES = 'values';
1330
1333
  var ENTRIES = 'entries';
@@ -1336,12 +1339,15 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1336
1339
 
1337
1340
  var getIterationMethod = function (KIND) {
1338
1341
  if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1339
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1342
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1343
+
1340
1344
  switch (KIND) {
1341
1345
  case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1342
1346
  case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1343
1347
  case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1344
- } return function () { return new IteratorConstructor(this); };
1348
+ }
1349
+
1350
+ return function () { return new IteratorConstructor(this); };
1345
1351
  };
1346
1352
 
1347
1353
  var TO_STRING_TAG = NAME + ' Iterator';
@@ -1351,7 +1357,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1351
1357
  || IterablePrototype['@@iterator']
1352
1358
  || DEFAULT && IterablePrototype[DEFAULT];
1353
1359
  var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1354
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1360
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1355
1361
  var CurrentIteratorPrototype, methods, KEY;
1356
1362
 
1357
1363
  // fix native
@@ -1371,7 +1377,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1371
1377
  }
1372
1378
 
1373
1379
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1374
- if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1380
+ if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1375
1381
  if (CONFIGURABLE_FUNCTION_NAME) {
1376
1382
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1377
1383
  } else {
@@ -1391,7 +1397,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1391
1397
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1392
1398
  defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
1393
1399
  }
1394
- } else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1400
+ } else $$b({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1395
1401
  }
1396
1402
 
1397
1403
  // define iterator
@@ -1410,7 +1416,7 @@ var createIterResultObject$1 = function (value, done) {
1410
1416
  };
1411
1417
 
1412
1418
  var toIndexedObject = toIndexedObject$5;
1413
- var addToUnscopables = addToUnscopables$1;
1419
+ var addToUnscopables$1 = addToUnscopables$2;
1414
1420
  var Iterators$2 = iterators;
1415
1421
  var InternalStateModule$1 = internalState;
1416
1422
  var defineProperty$2 = objectDefineProperty.f;
@@ -1444,15 +1450,15 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1444
1450
  }, function () {
1445
1451
  var state = getInternalState(this);
1446
1452
  var target = state.target;
1447
- var kind = state.kind;
1448
1453
  var index = state.index++;
1449
1454
  if (!target || index >= target.length) {
1450
1455
  state.target = undefined;
1451
1456
  return createIterResultObject(undefined, true);
1452
1457
  }
1453
- if (kind == 'keys') return createIterResultObject(index, false);
1454
- if (kind == 'values') return createIterResultObject(target[index], false);
1455
- return createIterResultObject([index, target[index]], false);
1458
+ switch (state.kind) {
1459
+ case 'keys': return createIterResultObject(index, false);
1460
+ case 'values': return createIterResultObject(target[index], false);
1461
+ } return createIterResultObject([index, target[index]], false);
1456
1462
  }, 'values');
1457
1463
 
1458
1464
  // argumentsList[@@iterator] is %ArrayProto_values%
@@ -1461,9 +1467,9 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1461
1467
  var values = Iterators$2.Arguments = Iterators$2.Array;
1462
1468
 
1463
1469
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1464
- addToUnscopables('keys');
1465
- addToUnscopables('values');
1466
- addToUnscopables('entries');
1470
+ addToUnscopables$1('keys');
1471
+ addToUnscopables$1('values');
1472
+ addToUnscopables$1('entries');
1467
1473
 
1468
1474
  // V8 ~ Chrome 45- bug
1469
1475
  if (DESCRIPTORS$3 && values.name !== 'values') try {
@@ -1514,15 +1520,15 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1514
1520
 
1515
1521
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1516
1522
 
1517
- var global$8 = global$i;
1523
+ var global$9 = global$k;
1518
1524
  var DOMIterables = domIterables;
1519
1525
  var DOMTokenListPrototype = domTokenListPrototype;
1520
1526
  var ArrayIteratorMethods = es_array_iterator;
1521
1527
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
1522
- var wellKnownSymbol$8 = wellKnownSymbol$e;
1528
+ var wellKnownSymbol$a = wellKnownSymbol$g;
1523
1529
 
1524
- var ITERATOR$4 = wellKnownSymbol$8('iterator');
1525
- var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1530
+ var ITERATOR$4 = wellKnownSymbol$a('iterator');
1531
+ var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
1526
1532
  var ArrayValues = ArrayIteratorMethods.values;
1527
1533
 
1528
1534
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
@@ -1548,15 +1554,15 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1548
1554
  };
1549
1555
 
1550
1556
  for (var COLLECTION_NAME in DOMIterables) {
1551
- handlePrototype(global$8[COLLECTION_NAME] && global$8[COLLECTION_NAME].prototype, COLLECTION_NAME);
1557
+ handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype, COLLECTION_NAME);
1552
1558
  }
1553
1559
 
1554
1560
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1555
1561
 
1556
1562
  var DESCRIPTORS$2 = descriptors;
1557
- var uncurryThis$7 = functionUncurryThis;
1563
+ var uncurryThis$8 = functionUncurryThis;
1558
1564
  var call$9 = functionCall;
1559
- var fails$4 = fails$f;
1565
+ var fails$5 = fails$g;
1560
1566
  var objectKeys = objectKeys$2;
1561
1567
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1562
1568
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1567,11 +1573,11 @@ var IndexedObject = indexedObject;
1567
1573
  var $assign = Object.assign;
1568
1574
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1569
1575
  var defineProperty$1 = Object.defineProperty;
1570
- var concat = uncurryThis$7([].concat);
1576
+ var concat = uncurryThis$8([].concat);
1571
1577
 
1572
1578
  // `Object.assign` method
1573
1579
  // https://tc39.es/ecma262/#sec-object.assign
1574
- var objectAssign = !$assign || fails$4(function () {
1580
+ var objectAssign = !$assign || fails$5(function () {
1575
1581
  // should have correct order of operations (Edge bug)
1576
1582
  if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
1577
1583
  enumerable: true,
@@ -1586,11 +1592,11 @@ var objectAssign = !$assign || fails$4(function () {
1586
1592
  var A = {};
1587
1593
  var B = {};
1588
1594
  // eslint-disable-next-line es/no-symbol -- safe
1589
- var symbol = Symbol();
1595
+ var symbol = Symbol('assign detection');
1590
1596
  var alphabet = 'abcdefghijklmnopqrst';
1591
1597
  A[symbol] = 7;
1592
1598
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1593
- return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1599
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1594
1600
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1595
1601
  var T = toObject(target);
1596
1602
  var argumentsLength = arguments.length;
@@ -1610,13 +1616,13 @@ var objectAssign = !$assign || fails$4(function () {
1610
1616
  } return T;
1611
1617
  } : $assign;
1612
1618
 
1613
- var $$8 = _export;
1619
+ var $$a = _export;
1614
1620
  var assign = objectAssign;
1615
1621
 
1616
1622
  // `Object.assign` method
1617
1623
  // https://tc39.es/ecma262/#sec-object.assign
1618
1624
  // eslint-disable-next-line es/no-object-assign -- required for testing
1619
- $$8({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1625
+ $$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1620
1626
  assign: assign
1621
1627
  });
1622
1628
 
@@ -1724,7 +1730,12 @@ function __rest(s, e) {
1724
1730
  t[p[i]] = s[p[i]];
1725
1731
  }
1726
1732
  return t;
1727
- }
1733
+ }
1734
+
1735
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1736
+ var e = new Error(message);
1737
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1738
+ };
1728
1739
 
1729
1740
  const Check = ({
1730
1741
  focusable: _focusable = false,
@@ -1740,7 +1751,7 @@ const Check = ({
1740
1751
  focusable: _focusable,
1741
1752
  "aria-labelledby": id
1742
1753
  }, {
1743
- children: ["title && ", jsx("title", Object.assign({
1754
+ children: [title && jsx("title", Object.assign({
1744
1755
  id: id
1745
1756
  }, {
1746
1757
  children: title
@@ -1765,7 +1776,7 @@ const ChevronDown = ({
1765
1776
  focusable: _focusable,
1766
1777
  "aria-labelledby": id
1767
1778
  }, {
1768
- children: ["title && ", jsx("title", Object.assign({
1779
+ children: [title && jsx("title", Object.assign({
1769
1780
  id: id
1770
1781
  }, {
1771
1782
  children: title
@@ -1874,6 +1885,37 @@ const InfoCircle = _a => {
1874
1885
  }));
1875
1886
  };
1876
1887
 
1888
+ const Edit = _a => {
1889
+ var {
1890
+ focusable = false,
1891
+ title,
1892
+ fill = 'white',
1893
+ width = 24,
1894
+ height = 24
1895
+ } = _a,
1896
+ props = __rest(_a, ["focusable", "title", "fill", "width", "height"]);
1897
+ let id;
1898
+ if (title) id = randomId();
1899
+ return jsxs("svg", Object.assign({
1900
+ width: width,
1901
+ height: height,
1902
+ viewBox: "0 0 576 512",
1903
+ xmlns: "http://www.w3.org/2000/svg",
1904
+ focusable: focusable,
1905
+ "aria-labelledby": id,
1906
+ "aria-hidden": props['aria-hidden']
1907
+ }, {
1908
+ children: [title && jsx("title", Object.assign({
1909
+ id: id
1910
+ }, {
1911
+ children: title
1912
+ })), jsx("path", {
1913
+ fill: fill,
1914
+ d: "M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"
1915
+ })]
1916
+ }));
1917
+ };
1918
+
1877
1919
  function AlertRibbon({
1878
1920
  type,
1879
1921
  header,
@@ -1927,6 +1969,16 @@ function AlertRibbon({
1927
1969
  });
1928
1970
  }
1929
1971
  };
1972
+ const renderHeader = () => {
1973
+ if (!header) {
1974
+ return null;
1975
+ }
1976
+ return /*#__PURE__*/React.isValidElement(header) ? header : jsx("span", Object.assign({
1977
+ className: "header"
1978
+ }, {
1979
+ children: header
1980
+ }));
1981
+ };
1930
1982
  return jsxs("div", Object.assign({
1931
1983
  className: `alert-ribbon ${type}`,
1932
1984
  role: role,
@@ -1939,11 +1991,7 @@ function AlertRibbon({
1939
1991
  })), jsxs("div", Object.assign({
1940
1992
  className: "alert-ribbon__content"
1941
1993
  }, {
1942
- children: [header && /*#__PURE__*/React.isValidElement(header) ? header : jsx("span", Object.assign({
1943
- className: "header"
1944
- }, {
1945
- children: header
1946
- })), jsx("p", {
1994
+ children: [renderHeader(), jsx("p", {
1947
1995
  children: children
1948
1996
  })]
1949
1997
  })), closeButton && jsx("button", Object.assign({
@@ -2047,156 +2095,160 @@ const useDatepicker = (datepickerRef, datepickerDialogRef, dateInputRef, datepic
2047
2095
  };
2048
2096
  };
2049
2097
 
2050
- const useDropdown = ({
2051
- id,
2052
- value,
2053
- texts,
2054
- options,
2055
- loop,
2056
- multiSelect,
2057
- searchable,
2058
- searchFilter,
2059
- compareWith,
2060
- useValue,
2061
- display,
2062
- togglerRef,
2063
- listboxRef,
2064
- onChange,
2065
- validator
2066
- }) => {
2067
- const [handler, setHandler] = useState();
2068
- const [dropdown, setDropdown] = useState();
2069
- const [togglerProps, setTogglerProps] = useState({});
2070
- const [listboxProps, setListboxProps] = useState({});
2071
- const [listItems, setListItems] = useState([]);
2072
- const [multiSelectProps, setMultiSelectProps] = useState({});
2073
- // When dropdown data changes
2074
- useEffect(() => {
2075
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2076
- if (!dropdown) return;
2077
- const {
2078
- elements: {
2079
- toggler,
2080
- listbox
2081
- }
2082
- } = dropdown;
2083
- const newToggleProps = Object.assign(Object.assign({}, toggler === null || toggler === void 0 ? void 0 : toggler.attributes), {
2084
- className: (_a = toggler === null || toggler === void 0 ? void 0 : toggler.classes) === null || _a === void 0 ? void 0 : _a.join(' '),
2085
- children: (_b = dropdown === null || dropdown === void 0 ? void 0 : dropdown.texts) === null || _b === void 0 ? void 0 : _b.select,
2086
- onClick: () => handler === null || handler === void 0 ? void 0 : handler.toggle()
2087
- });
2088
- setTogglerProps(newToggleProps);
2089
- const newListboxProps = Object.assign(Object.assign({}, listbox === null || listbox === void 0 ? void 0 : listbox.attributes), {
2090
- className: (_c = listbox === null || listbox === void 0 ? void 0 : listbox.classes) === null || _c === void 0 ? void 0 : _c.join(' ')
2091
- });
2092
- setListboxProps(newListboxProps);
2093
- if (!dropdown.isMultiSelect) {
2094
- const newListItems = dropdown.options.map(o => {
2095
- var _a;
2096
- return Object.assign(Object.assign({}, o.attributes), {
2097
- className: (_a = o.classes) === null || _a === void 0 ? void 0 : _a.join(' '),
2098
- children: o[dropdown.display],
2099
- selected: o.selected,
2100
- onClick: () => handler === null || handler === void 0 ? void 0 : handler.select(o)
2101
- });
2102
- });
2103
- setListItems(newListItems);
2104
- } else {
2105
- const checkboxes = dropdown.options.map(o => ({
2106
- labelProps: Object.assign(Object.assign({}, o.attributes), {
2107
- className: ['form-control', ...o.classes].join(' ')
2108
- }),
2109
- inputProps: {
2110
- defaultChecked: o.selected,
2111
- type: 'checkbox',
2112
- onClick: () => handler === null || handler === void 0 ? void 0 : handler.select(o, false)
2113
- },
2114
- spanProps: {
2115
- children: o[dropdown.display]
2116
- }
2117
- }));
2118
- const newMultiselect = {
2119
- fieldsetProps: {
2120
- 'aria-describedby': (_f = (_e = (_d = dropdown === null || dropdown === void 0 ? void 0 : dropdown.elements) === null || _d === void 0 ? void 0 : _d.fieldset) === null || _e === void 0 ? void 0 : _e.attributes) === null || _f === void 0 ? void 0 : _f.id,
2121
- 'aria-multiselectable': true,
2122
- role: 'listbox',
2123
- tabIndex: -1
2124
- },
2125
- legendProps: {
2126
- className: 'sr-only',
2127
- id: (_j = (_h = (_g = dropdown === null || dropdown === void 0 ? void 0 : dropdown.elements) === null || _g === void 0 ? void 0 : _g.fieldset) === null || _h === void 0 ? void 0 : _h.attributes) === null || _j === void 0 ? void 0 : _j.id,
2128
- children: dropdown.texts.optionsDescription
2129
- },
2130
- checkboxes
2131
- };
2132
- setMultiSelectProps(newMultiselect);
2133
- }
2134
- // eslint-disable-next-line react-hooks/exhaustive-deps
2135
- }, [dropdown]);
2136
- // When dropdown properties change
2137
- useEffect(() => {
2138
- if (!dropdown) return;
2139
- handler === null || handler === void 0 ? void 0 : handler.update({
2140
- id,
2141
- value,
2142
- texts,
2143
- options,
2144
- loop,
2145
- multiSelect,
2146
- searchable,
2147
- searchFilter,
2148
- compareWith,
2149
- useValue,
2150
- display,
2151
- validator
2152
- });
2153
- // eslint-disable-next-line react-hooks/exhaustive-deps
2154
- }, [id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]);
2155
- useEffect(() => {
2156
- if (!dropdown) return;
2157
- handler === null || handler === void 0 ? void 0 : handler.selectByValue(value);
2158
- console.log('new value');
2159
- // eslint-disable-next-line react-hooks/exhaustive-deps
2160
- }, [value]);
2161
- // When validator changes
2162
- useEffect(() => {
2163
- if (!dropdown) return;
2164
- if (validator) handler === null || handler === void 0 ? void 0 : handler.validate(validator);
2165
- // eslint-disable-next-line react-hooks/exhaustive-deps
2166
- }, [validator]);
2167
- // Create dropdown handler
2168
- useEffect(() => {
2169
- if (!handler && togglerRef.current && listboxRef.current) {
2170
- setHandler(createDropdown({
2171
- id,
2172
- value,
2173
- texts,
2174
- options,
2175
- loop,
2176
- multiSelect,
2177
- searchable,
2178
- searchFilter,
2179
- compareWith,
2180
- useValue,
2181
- display,
2182
- validator
2183
- }, togglerRef.current, listboxRef.current, listboxRef.current, dd => setDropdown(dd), value => onChange === null || onChange === void 0 ? void 0 : onChange(value)));
2184
- }
2185
- return () => handler === null || handler === void 0 ? void 0 : handler.destroy();
2186
- // eslint-disable-next-line react-hooks/exhaustive-deps
2187
- }, [togglerRef, listboxRef]);
2188
- return {
2189
- dropdown: handler,
2190
- togglerProps,
2191
- listboxProps,
2192
- listItems,
2193
- multiSelectProps
2194
- };
2098
+ var $$9 = _export;
2099
+ var $includes = arrayIncludes.includes;
2100
+ var fails$4 = fails$g;
2101
+ var addToUnscopables = addToUnscopables$2;
2102
+
2103
+ // FF99+ bug
2104
+ var BROKEN_ON_SPARSE = fails$4(function () {
2105
+ // eslint-disable-next-line es/no-array-prototype-includes -- detection
2106
+ return !Array(1).includes();
2107
+ });
2108
+
2109
+ // `Array.prototype.includes` method
2110
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
2111
+ $$9({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2112
+ includes: function includes(el /* , fromIndex = 0 */) {
2113
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2114
+ }
2115
+ });
2116
+
2117
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2118
+ addToUnscopables('includes');
2119
+
2120
+ var isObject$2 = isObject$9;
2121
+ var classof$5 = classofRaw$2;
2122
+ var wellKnownSymbol$9 = wellKnownSymbol$g;
2123
+
2124
+ var MATCH$1 = wellKnownSymbol$9('match');
2125
+
2126
+ // `IsRegExp` abstract operation
2127
+ // https://tc39.es/ecma262/#sec-isregexp
2128
+ var isRegexp = function (it) {
2129
+ var isRegExp;
2130
+ return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) === 'RegExp');
2131
+ };
2132
+
2133
+ var isRegExp = isRegexp;
2134
+
2135
+ var $TypeError$6 = TypeError;
2136
+
2137
+ var notARegexp = function (it) {
2138
+ if (isRegExp(it)) {
2139
+ throw new $TypeError$6("The method doesn't accept regular expressions");
2140
+ } return it;
2141
+ };
2142
+
2143
+ var wellKnownSymbol$8 = wellKnownSymbol$g;
2144
+
2145
+ var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
2146
+ var test = {};
2147
+
2148
+ test[TO_STRING_TAG$1] = 'z';
2149
+
2150
+ var toStringTagSupport = String(test) === '[object z]';
2151
+
2152
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2153
+ var isCallable$6 = isCallable$l;
2154
+ var classofRaw$1 = classofRaw$2;
2155
+ var wellKnownSymbol$7 = wellKnownSymbol$g;
2156
+
2157
+ var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
2158
+ var $Object = Object;
2159
+
2160
+ // ES3 wrong here
2161
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
2162
+
2163
+ // fallback for IE11 Script Access Denied error
2164
+ var tryGet = function (it, key) {
2165
+ try {
2166
+ return it[key];
2167
+ } catch (error) { /* empty */ }
2168
+ };
2169
+
2170
+ // getting tag from ES6+ `Object.prototype.toString`
2171
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
2172
+ var O, tag, result;
2173
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
2174
+ // @@toStringTag case
2175
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
2176
+ // builtinTag case
2177
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
2178
+ // ES3 arguments fallback
2179
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
2180
+ };
2181
+
2182
+ var classof$3 = classof$4;
2183
+
2184
+ var $String = String;
2185
+
2186
+ var toString$4 = function (argument) {
2187
+ if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
2188
+ return $String(argument);
2189
+ };
2190
+
2191
+ var wellKnownSymbol$6 = wellKnownSymbol$g;
2192
+
2193
+ var MATCH = wellKnownSymbol$6('match');
2194
+
2195
+ var correctIsRegexpLogic = function (METHOD_NAME) {
2196
+ var regexp = /./;
2197
+ try {
2198
+ '/./'[METHOD_NAME](regexp);
2199
+ } catch (error1) {
2200
+ try {
2201
+ regexp[MATCH] = false;
2202
+ return '/./'[METHOD_NAME](regexp);
2203
+ } catch (error2) { /* empty */ }
2204
+ } return false;
2195
2205
  };
2196
2206
 
2207
+ var $$8 = _export;
2208
+ var uncurryThis$7 = functionUncurryThis;
2209
+ var notARegExp = notARegexp;
2210
+ var requireObjectCoercible$1 = requireObjectCoercible$4;
2211
+ var toString$3 = toString$4;
2212
+ var correctIsRegExpLogic = correctIsRegexpLogic;
2213
+
2214
+ var stringIndexOf = uncurryThis$7(''.indexOf);
2215
+
2216
+ // `String.prototype.includes` method
2217
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
2218
+ $$8({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2219
+ includes: function includes(searchString /* , position = 0 */) {
2220
+ return !!~stringIndexOf(
2221
+ toString$3(requireObjectCoercible$1(this)),
2222
+ toString$3(notARegExp(searchString)),
2223
+ arguments.length > 1 ? arguments[1] : undefined
2224
+ );
2225
+ }
2226
+ });
2227
+
2228
+ /**
2229
+ * @license
2230
+ * Copyright 2018 Google LLC
2231
+ * SPDX-License-Identifier: BSD-3-Clause
2232
+ */
2233
+ const t=new Set(["children","localName","ref","style","className"]),e=new WeakMap,n=(t,n,s,i,o)=>{const l=null==o?void 0:o[n];void 0===l||s===i?null==s&&n in HTMLElement.prototype?t.removeAttribute(n):t[n]=s:((t,n,s)=>{let i=e.get(t);void 0===i&&e.set(t,i=new Map);let o=i.get(n);void 0!==s?void 0===o?(i.set(n,o={handleEvent:s}),t.addEventListener(n,o)):o.handleEvent=s:void 0!==o&&(i.delete(n),t.removeEventListener(n,o));})(t,l,s);},s=(t,e)=>{"function"==typeof t?t(e):t.current=e;};function i(e=window.React,i,o,l,d){let a,c,r;if(void 0===i){const t=e;(({tagName:c,elementClass:r,events:l,displayName:d}=t)),a=t.react;}else a=e,r=o,c=i;const h=a.Component,u=a.createElement,f=new Set(Object.keys(null!=l?l:{}));class v extends h{constructor(){super(...arguments),this.o=null;}t(t){if(null!==this.o)for(const e in this.i)n(this.o,e,this.props[e],t?t[e]:void 0,l);}componentDidMount(){var t;this.t(),null===(t=this.o)||void 0===t||t.removeAttribute("defer-hydration");}componentDidUpdate(t){this.t(t);}render(){const{_$Gl:e,...n}=this.props;this.h!==e&&(this.u=t=>{null!==e&&s(e,t),this.o=t,this.h=e;}),this.i={};const i={ref:this.u};for(const[e,s]of Object.entries(n))t.has(e)?i["className"===e?"class":e]=s:f.has(e)||e in r.prototype?this.i[e]=s:i[e]=s;return i.suppressHydrationWarning=!0,u(c,i)}}v.displayName=null!=d?d:r.name;const m=a.forwardRef(((t,e)=>u(v,{...t,_$Gl:e},null==t?void 0:t.children)));return m.displayName=v.displayName,m}
2234
+
2235
+ registerTransitionalStyles();
2236
+ const CoreDropdown = i({
2237
+ tagName: getScopedTagName('gds-dropdown'),
2238
+ elementClass: GdsDropdown,
2239
+ events: {
2240
+ onchange: 'change'
2241
+ },
2242
+ react: React
2243
+ });
2244
+ const CoreOption = i({
2245
+ tagName: getScopedTagName('gds-option'),
2246
+ elementClass: GdsOption,
2247
+ react: React
2248
+ });
2197
2249
  const Dropdown = ({
2198
2250
  compareWith,
2199
- display,
2251
+ display: _display = 'label',
2200
2252
  id,
2201
2253
  informationLabel,
2202
2254
  label,
@@ -2207,100 +2259,60 @@ const Dropdown = ({
2207
2259
  searchFilter,
2208
2260
  searchable,
2209
2261
  texts,
2210
- useValue,
2262
+ useValue: _useValue = 'value',
2211
2263
  validator,
2212
2264
  value
2213
2265
  }) => {
2214
- var _a;
2215
- const togglerRef = useRef(null);
2216
- const listboxRef = useRef(null);
2217
- const {
2218
- dropdown,
2219
- listboxProps,
2220
- togglerProps,
2221
- listItems,
2222
- multiSelectProps
2223
- } = useDropdown({
2224
- id,
2225
- value,
2226
- options,
2227
- loop,
2228
- multiSelect,
2229
- searchable,
2230
- searchFilter,
2231
- compareWith,
2232
- useValue,
2233
- display,
2234
- togglerRef,
2235
- listboxRef,
2236
- texts,
2237
- onChange,
2238
- validator
2239
- });
2240
- const getListBoxProps = props => {
2241
- var _a, _b, _c;
2242
- if (Object.keys(props).length === 0) return {
2243
- role: 'listbox',
2244
- tabIndex: -1,
2245
- className: (_c = (_b = (_a = dropdownValues().elements) === null || _a === void 0 ? void 0 : _a.listbox) === null || _b === void 0 ? void 0 : _b.classes) === null || _c === void 0 ? void 0 : _c.join(' ')
2246
- };
2247
- return props;
2266
+ const [selectedOption, setSelectedOption] = React.useState(options.find(o => o.value === value));
2267
+ const handleOnChange = e => {
2268
+ var _a, _b;
2269
+ if ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) {
2270
+ setSelectedOption(options.find(o => o[_useValue] === e.detail.value));
2271
+ onChange === null || onChange === void 0 ? void 0 : onChange((_b = e.detail) === null || _b === void 0 ? void 0 : _b.value);
2272
+ }
2248
2273
  };
2249
- return jsxs("div", Object.assign({
2274
+ // These adapter functions are used to maintain backwards compatibility with the old interface
2275
+ const compareWithAdapter = (o1, o2) => {
2276
+ const compareFn = compareWith || ((a, b) => a === b);
2277
+ return compareFn(o1, o2);
2278
+ };
2279
+ const searchFilterAdapter = (q, o) => {
2280
+ if (searchFilter) return searchFilter(q, o.value[_useValue]);else return ((q, o) => o.innerHTML.toLowerCase().includes(q.toLowerCase()))(q, o);
2281
+ };
2282
+ return jsx("div", Object.assign({
2250
2283
  className: "form-group"
2251
2284
  }, {
2252
- children: [label && jsx("label", Object.assign({
2253
- htmlFor: togglerProps.id
2254
- }, {
2255
- children: label
2256
- })), informationLabel && jsx("div", Object.assign({
2257
- className: "form-info"
2258
- }, {
2259
- children: informationLabel
2260
- })), jsx("button", Object.assign({
2261
- type: "button"
2262
- }, togglerProps, {
2263
- ref: togglerRef
2264
- }, {
2265
- children: jsx("span", {
2266
- children: togglerProps.children
2267
- })
2268
- })), jsxs("div", Object.assign({}, getListBoxProps(listboxProps), {
2269
- ref: listboxRef
2285
+ children: jsxs(CoreDropdown, Object.assign({
2286
+ id: id,
2287
+ label: label,
2288
+ searchable: searchable,
2289
+ multiple: multiSelect,
2290
+ value: selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value,
2291
+ onchange: handleOnChange,
2292
+ invalid: (validator === null || validator === void 0 ? void 0 : validator.indicator) === 'error',
2293
+ compareWith: compareWithAdapter,
2294
+ searchFilter: searchFilterAdapter
2270
2295
  }, {
2271
- children: [jsxs("div", Object.assign({
2272
- className: "d-flex d-sm-none align-items-center"
2296
+ children: [informationLabel && jsx("span", Object.assign({
2297
+ slot: "sub-label"
2273
2298
  }, {
2274
- children: [jsx("span", Object.assign({
2275
- className: "flex-grow-1 ps-4 fs-2 fw-bolder"
2276
- }, {
2277
- children: label
2278
- })), jsx("button", Object.assign({
2279
- type: "button",
2280
- className: "close m-4 m-sm-2 d-block d-sm-none",
2281
- onClick: dropdown === null || dropdown === void 0 ? void 0 : dropdown.close,
2282
- "aria-label": dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.texts.close
2283
- }, {
2284
- children: jsx("i", {})
2285
- }))]
2286
- })), (dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.isMultiSelect) ? jsx("div", Object.assign({
2287
- className: "sg-fieldset-container"
2299
+ children: informationLabel
2300
+ })), validator && jsx("span", Object.assign({
2301
+ slot: "message"
2288
2302
  }, {
2289
- children: jsxs("fieldset", Object.assign({}, multiSelectProps.fieldsetProps, {
2290
- children: [jsx("legend", Object.assign({}, multiSelectProps.legendProps)), (_a = multiSelectProps.checkboxes) === null || _a === void 0 ? void 0 : _a.map(checkboxItem => jsxs("label", Object.assign({}, checkboxItem.labelProps, {
2291
- children: [jsx("input", Object.assign({}, checkboxItem.inputProps)), jsx("span", Object.assign({}, checkboxItem.spanProps)), jsx("i", {})]
2292
- }), checkboxItem.labelProps.id))]
2293
- }))
2294
- })) : jsx("ul", Object.assign({
2295
- role: "listbox"
2303
+ children: validator.message
2304
+ })), jsx(CoreOption, Object.assign({
2305
+ isPlaceholder: true,
2306
+ "aria-hidden": true
2296
2307
  }, {
2297
- children: listItems.map(liProps => jsx("li", Object.assign({}, liProps), liProps.id))
2298
- }))]
2299
- })), validator && jsx("span", Object.assign({
2300
- className: "form-info"
2301
- }, {
2302
- children: validator === null || validator === void 0 ? void 0 : validator.message
2303
- }))]
2308
+ children: (texts === null || texts === void 0 ? void 0 : texts.placeholder) || 'Select'
2309
+ })), options.map(option => jsx(CoreOption, Object.assign({
2310
+ value: option[_useValue],
2311
+ selected: option.selected
2312
+ }, {
2313
+ children: option[_display]
2314
+ }), option[_useValue]))]
2315
+ }))
2304
2316
  }));
2305
2317
  };
2306
2318
 
@@ -2391,14 +2403,16 @@ const Datepicker = (options = {}) => {
2391
2403
  texts: {
2392
2404
  placeholder: data.monthName
2393
2405
  },
2394
- onChange: datepicker.setMonth
2406
+ onChange: datepicker.setMonth,
2407
+ value: data.month
2395
2408
  }), jsx(Dropdown, {
2396
2409
  options: years({}),
2397
2410
  display: "key",
2398
2411
  texts: {
2399
2412
  placeholder: data.year + ''
2400
2413
  },
2401
- onChange: datepicker.setYear
2414
+ onChange: datepicker.setYear,
2415
+ value: data.year
2402
2416
  }), jsx("button", Object.assign({
2403
2417
  className: "link",
2404
2418
  onClick: () => datepicker.add(1, 'months')
@@ -2735,9 +2749,10 @@ function Group({
2735
2749
  }));
2736
2750
  }
2737
2751
 
2738
- var classof$4 = classofRaw$2;
2752
+ var global$8 = global$k;
2753
+ var classof$2 = classofRaw$2;
2739
2754
 
2740
- var engineIsNode = typeof process != 'undefined' && classof$4(process) == 'process';
2755
+ var engineIsNode = classof$2(global$8.process) === 'process';
2741
2756
 
2742
2757
  var makeBuiltIn = makeBuiltIn$3.exports;
2743
2758
  var defineProperty = objectDefineProperty;
@@ -2750,10 +2765,10 @@ var defineBuiltInAccessor$2 = function (target, name, descriptor) {
2750
2765
 
2751
2766
  var getBuiltIn$3 = getBuiltIn$7;
2752
2767
  var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
2753
- var wellKnownSymbol$7 = wellKnownSymbol$e;
2768
+ var wellKnownSymbol$5 = wellKnownSymbol$g;
2754
2769
  var DESCRIPTORS$1 = descriptors;
2755
2770
 
2756
- var SPECIES$2 = wellKnownSymbol$7('species');
2771
+ var SPECIES$2 = wellKnownSymbol$5('species');
2757
2772
 
2758
2773
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
2759
2774
  var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
@@ -2772,52 +2787,13 @@ var $TypeError$5 = TypeError;
2772
2787
 
2773
2788
  var anInstance$1 = function (it, Prototype) {
2774
2789
  if (isPrototypeOf$3(Prototype, it)) return it;
2775
- throw $TypeError$5('Incorrect invocation');
2776
- };
2777
-
2778
- var wellKnownSymbol$6 = wellKnownSymbol$e;
2779
-
2780
- var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
2781
- var test = {};
2782
-
2783
- test[TO_STRING_TAG$1] = 'z';
2784
-
2785
- var toStringTagSupport = String(test) === '[object z]';
2786
-
2787
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2788
- var isCallable$6 = isCallable$l;
2789
- var classofRaw$1 = classofRaw$2;
2790
- var wellKnownSymbol$5 = wellKnownSymbol$e;
2791
-
2792
- var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
2793
- var $Object = Object;
2794
-
2795
- // ES3 wrong here
2796
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
2797
-
2798
- // fallback for IE11 Script Access Denied error
2799
- var tryGet = function (it, key) {
2800
- try {
2801
- return it[key];
2802
- } catch (error) { /* empty */ }
2803
- };
2804
-
2805
- // getting tag from ES6+ `Object.prototype.toString`
2806
- var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
2807
- var O, tag, result;
2808
- return it === undefined ? 'Undefined' : it === null ? 'Null'
2809
- // @@toStringTag case
2810
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
2811
- // builtinTag case
2812
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
2813
- // ES3 arguments fallback
2814
- : (result = classofRaw$1(O)) == 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
2790
+ throw new $TypeError$5('Incorrect invocation');
2815
2791
  };
2816
2792
 
2817
2793
  var uncurryThis$6 = functionUncurryThis;
2818
- var fails$3 = fails$f;
2794
+ var fails$3 = fails$g;
2819
2795
  var isCallable$5 = isCallable$l;
2820
- var classof$2 = classof$3;
2796
+ var classof$1 = classof$4;
2821
2797
  var getBuiltIn$2 = getBuiltIn$7;
2822
2798
  var inspectSource$1 = inspectSource$3;
2823
2799
 
@@ -2826,7 +2802,7 @@ var empty = [];
2826
2802
  var construct = getBuiltIn$2('Reflect', 'construct');
2827
2803
  var constructorRegExp = /^\s*(?:class|function)\b/;
2828
2804
  var exec$1 = uncurryThis$6(constructorRegExp.exec);
2829
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop$1);
2805
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop$1);
2830
2806
 
2831
2807
  var isConstructorModern = function isConstructor(argument) {
2832
2808
  if (!isCallable$5(argument)) return false;
@@ -2840,7 +2816,7 @@ var isConstructorModern = function isConstructor(argument) {
2840
2816
 
2841
2817
  var isConstructorLegacy = function isConstructor(argument) {
2842
2818
  if (!isCallable$5(argument)) return false;
2843
- switch (classof$2(argument)) {
2819
+ switch (classof$1(argument)) {
2844
2820
  case 'AsyncFunction':
2845
2821
  case 'GeneratorFunction':
2846
2822
  case 'AsyncGeneratorFunction': return false;
@@ -2875,13 +2851,13 @@ var $TypeError$4 = TypeError;
2875
2851
  // `Assert: IsConstructor(argument) is true`
2876
2852
  var aConstructor$1 = function (argument) {
2877
2853
  if (isConstructor(argument)) return argument;
2878
- throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
2854
+ throw new $TypeError$4(tryToString$2(argument) + ' is not a constructor');
2879
2855
  };
2880
2856
 
2881
2857
  var anObject$6 = anObject$c;
2882
2858
  var aConstructor = aConstructor$1;
2883
2859
  var isNullOrUndefined$1 = isNullOrUndefined$4;
2884
- var wellKnownSymbol$4 = wellKnownSymbol$e;
2860
+ var wellKnownSymbol$4 = wellKnownSymbol$g;
2885
2861
 
2886
2862
  var SPECIES$1 = wellKnownSymbol$4('species');
2887
2863
 
@@ -2935,7 +2911,7 @@ var arraySlice$1 = uncurryThis$3([].slice);
2935
2911
  var $TypeError$3 = TypeError;
2936
2912
 
2937
2913
  var validateArgumentsLength$1 = function (passed, required) {
2938
- if (passed < required) throw $TypeError$3('Not enough arguments');
2914
+ if (passed < required) throw new $TypeError$3('Not enough arguments');
2939
2915
  return passed;
2940
2916
  };
2941
2917
 
@@ -2944,12 +2920,12 @@ var userAgent$2 = engineUserAgent;
2944
2920
  // eslint-disable-next-line redos/no-vulnerable -- safe
2945
2921
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2946
2922
 
2947
- var global$7 = global$i;
2923
+ var global$7 = global$k;
2948
2924
  var apply = functionApply;
2949
2925
  var bind$3 = functionBindContext;
2950
2926
  var isCallable$4 = isCallable$l;
2951
2927
  var hasOwn$2 = hasOwnProperty_1;
2952
- var fails$2 = fails$f;
2928
+ var fails$2 = fails$g;
2953
2929
  var html = html$2;
2954
2930
  var arraySlice = arraySlice$1;
2955
2931
  var createElement = documentCreateElement$2;
@@ -2959,7 +2935,7 @@ var IS_NODE$3 = engineIsNode;
2959
2935
 
2960
2936
  var set = global$7.setImmediate;
2961
2937
  var clear = global$7.clearImmediate;
2962
- var process$3 = global$7.process;
2938
+ var process$2 = global$7.process;
2963
2939
  var Dispatch = global$7.Dispatch;
2964
2940
  var Function$1 = global$7.Function;
2965
2941
  var MessageChannel = global$7.MessageChannel;
@@ -3015,7 +2991,7 @@ if (!set || !clear) {
3015
2991
  // Node.js 0.8-
3016
2992
  if (IS_NODE$3) {
3017
2993
  defer = function (id) {
3018
- process$3.nextTick(runner(id));
2994
+ process$2.nextTick(runner(id));
3019
2995
  };
3020
2996
  // Sphere (JS game engine) Dispatch API
3021
2997
  } else if (Dispatch && Dispatch.now) {
@@ -3094,7 +3070,7 @@ var userAgent = engineUserAgent;
3094
3070
 
3095
3071
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
3096
3072
 
3097
- var global$6 = global$i;
3073
+ var global$6 = global$k;
3098
3074
  var bind$2 = functionBindContext;
3099
3075
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
3100
3076
  var macrotask = task$1.set;
@@ -3106,7 +3082,7 @@ var IS_NODE$2 = engineIsNode;
3106
3082
 
3107
3083
  var MutationObserver = global$6.MutationObserver || global$6.WebKitMutationObserver;
3108
3084
  var document$2 = global$6.document;
3109
- var process$2 = global$6.process;
3085
+ var process$1 = global$6.process;
3110
3086
  var Promise$1 = global$6.Promise;
3111
3087
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
3112
3088
  var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$6, 'queueMicrotask');
@@ -3119,7 +3095,7 @@ if (!microtask$1) {
3119
3095
 
3120
3096
  var flush = function () {
3121
3097
  var parent, fn;
3122
- if (IS_NODE$2 && (parent = process$2.domain)) parent.exit();
3098
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
3123
3099
  while (fn = queue.get()) try {
3124
3100
  fn();
3125
3101
  } catch (error) {
@@ -3151,7 +3127,7 @@ if (!microtask$1) {
3151
3127
  // Node.js without promises
3152
3128
  } else if (IS_NODE$2) {
3153
3129
  notify$1 = function () {
3154
- process$2.nextTick(flush);
3130
+ process$1.nextTick(flush);
3155
3131
  };
3156
3132
  // for other environments - macrotask based on:
3157
3133
  // - setImmediate
@@ -3178,7 +3154,7 @@ var microtask_1 = microtask$1;
3178
3154
  var hostReportErrors$1 = function (a, b) {
3179
3155
  try {
3180
3156
  // eslint-disable-next-line no-console -- safe
3181
- arguments.length == 1 ? console.error(a) : console.error(a, b);
3157
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
3182
3158
  } catch (error) { /* empty */ }
3183
3159
  };
3184
3160
 
@@ -3190,12 +3166,11 @@ var perform$3 = function (exec) {
3190
3166
  }
3191
3167
  };
3192
3168
 
3193
- var global$5 = global$i;
3169
+ var global$5 = global$k;
3194
3170
 
3195
3171
  var promiseNativeConstructor = global$5.Promise;
3196
3172
 
3197
3173
  /* global Deno -- Deno case */
3198
-
3199
3174
  var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
3200
3175
 
3201
3176
  var IS_DENO$1 = engineIsDeno;
@@ -3205,12 +3180,12 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
3205
3180
  && typeof window == 'object'
3206
3181
  && typeof document == 'object';
3207
3182
 
3208
- var global$4 = global$i;
3183
+ var global$4 = global$k;
3209
3184
  var NativePromiseConstructor$3 = promiseNativeConstructor;
3210
3185
  var isCallable$3 = isCallable$l;
3211
3186
  var isForced = isForced_1;
3212
3187
  var inspectSource = inspectSource$3;
3213
- var wellKnownSymbol$3 = wellKnownSymbol$e;
3188
+ var wellKnownSymbol$3 = wellKnownSymbol$g;
3214
3189
  var IS_BROWSER = engineIsBrowser;
3215
3190
  var IS_DENO = engineIsDeno;
3216
3191
  var V8_VERSION = engineV8Version;
@@ -3259,7 +3234,7 @@ var $TypeError$2 = TypeError;
3259
3234
  var PromiseCapability = function (C) {
3260
3235
  var resolve, reject;
3261
3236
  this.promise = new C(function ($$resolve, $$reject) {
3262
- if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
3237
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$2('Bad Promise constructor');
3263
3238
  resolve = $$resolve;
3264
3239
  reject = $$reject;
3265
3240
  });
@@ -3275,7 +3250,7 @@ newPromiseCapability$2.f = function (C) {
3275
3250
 
3276
3251
  var $$7 = _export;
3277
3252
  var IS_NODE = engineIsNode;
3278
- var global$3 = global$i;
3253
+ var global$3 = global$k;
3279
3254
  var call$7 = functionCall;
3280
3255
  var defineBuiltIn$2 = defineBuiltIn$6;
3281
3256
  var setPrototypeOf = objectSetPrototypeOf;
@@ -3283,7 +3258,7 @@ var setToStringTag = setToStringTag$3;
3283
3258
  var setSpecies = setSpecies$1;
3284
3259
  var aCallable$3 = aCallable$8;
3285
3260
  var isCallable$2 = isCallable$l;
3286
- var isObject$1 = isObject$8;
3261
+ var isObject$1 = isObject$9;
3287
3262
  var anInstance = anInstance$1;
3288
3263
  var speciesConstructor = speciesConstructor$1;
3289
3264
  var task = task$1.set;
@@ -3307,7 +3282,7 @@ var PromiseConstructor = NativePromiseConstructor$2;
3307
3282
  var PromisePrototype = NativePromisePrototype$1;
3308
3283
  var TypeError$1 = global$3.TypeError;
3309
3284
  var document$1 = global$3.document;
3310
- var process$1 = global$3.process;
3285
+ var process = global$3.process;
3311
3286
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
3312
3287
  var newGenericPromiseCapability = newPromiseCapability$1;
3313
3288
 
@@ -3330,7 +3305,7 @@ var isThenable = function (it) {
3330
3305
 
3331
3306
  var callReaction = function (reaction, state) {
3332
3307
  var value = state.value;
3333
- var ok = state.state == FULFILLED;
3308
+ var ok = state.state === FULFILLED;
3334
3309
  var handler = ok ? reaction.ok : reaction.fail;
3335
3310
  var resolve = reaction.resolve;
3336
3311
  var reject = reaction.reject;
@@ -3352,7 +3327,7 @@ var callReaction = function (reaction, state) {
3352
3327
  }
3353
3328
  }
3354
3329
  if (result === reaction.promise) {
3355
- reject(TypeError$1('Promise-chain cycle'));
3330
+ reject(new TypeError$1('Promise-chain cycle'));
3356
3331
  } else if (then = isThenable(result)) {
3357
3332
  call$7(then, result, resolve, reject);
3358
3333
  } else resolve(result);
@@ -3399,7 +3374,7 @@ var onUnhandled = function (state) {
3399
3374
  if (IS_UNHANDLED) {
3400
3375
  result = perform$2(function () {
3401
3376
  if (IS_NODE) {
3402
- process$1.emit('unhandledRejection', value, promise);
3377
+ process.emit('unhandledRejection', value, promise);
3403
3378
  } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
3404
3379
  });
3405
3380
  // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
@@ -3417,7 +3392,7 @@ var onHandleUnhandled = function (state) {
3417
3392
  call$7(task, global$3, function () {
3418
3393
  var promise = state.facade;
3419
3394
  if (IS_NODE) {
3420
- process$1.emit('rejectionHandled', promise);
3395
+ process.emit('rejectionHandled', promise);
3421
3396
  } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
3422
3397
  });
3423
3398
  };
@@ -3442,7 +3417,7 @@ var internalResolve = function (state, value, unwrap) {
3442
3417
  state.done = true;
3443
3418
  if (unwrap) state = unwrap;
3444
3419
  try {
3445
- if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
3420
+ if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
3446
3421
  var then = isThenable(value);
3447
3422
  if (then) {
3448
3423
  microtask(function () {
@@ -3505,8 +3480,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
3505
3480
  state.parent = true;
3506
3481
  reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
3507
3482
  reaction.fail = isCallable$2(onRejected) && onRejected;
3508
- reaction.domain = IS_NODE ? process$1.domain : undefined;
3509
- if (state.state == PENDING) state.reactions.add(reaction);
3483
+ reaction.domain = IS_NODE ? process.domain : undefined;
3484
+ if (state.state === PENDING) state.reactions.add(reaction);
3510
3485
  else microtask(function () {
3511
3486
  callReaction(reaction, state);
3512
3487
  });
@@ -3560,7 +3535,7 @@ $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTR
3560
3535
  setToStringTag(PromiseConstructor, PROMISE, false);
3561
3536
  setSpecies(PROMISE);
3562
3537
 
3563
- var wellKnownSymbol$2 = wellKnownSymbol$e;
3538
+ var wellKnownSymbol$2 = wellKnownSymbol$g;
3564
3539
  var Iterators$1 = iterators;
3565
3540
 
3566
3541
  var ITERATOR$3 = wellKnownSymbol$2('iterator');
@@ -3571,18 +3546,18 @@ var isArrayIteratorMethod$1 = function (it) {
3571
3546
  return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
3572
3547
  };
3573
3548
 
3574
- var classof$1 = classof$3;
3549
+ var classof = classof$4;
3575
3550
  var getMethod$1 = getMethod$3;
3576
3551
  var isNullOrUndefined = isNullOrUndefined$4;
3577
3552
  var Iterators = iterators;
3578
- var wellKnownSymbol$1 = wellKnownSymbol$e;
3553
+ var wellKnownSymbol$1 = wellKnownSymbol$g;
3579
3554
 
3580
3555
  var ITERATOR$2 = wellKnownSymbol$1('iterator');
3581
3556
 
3582
3557
  var getIteratorMethod$2 = function (it) {
3583
3558
  if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$2)
3584
3559
  || getMethod$1(it, '@@iterator')
3585
- || Iterators[classof$1(it)];
3560
+ || Iterators[classof(it)];
3586
3561
  };
3587
3562
 
3588
3563
  var call$6 = functionCall;
@@ -3596,7 +3571,7 @@ var $TypeError$1 = TypeError;
3596
3571
  var getIterator$1 = function (argument, usingIterator) {
3597
3572
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
3598
3573
  if (aCallable$2(iteratorMethod)) return anObject$5(call$6(iteratorMethod, argument));
3599
- throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
3574
+ throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
3600
3575
  };
3601
3576
 
3602
3577
  var call$5 = functionCall;
@@ -3670,7 +3645,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
3670
3645
  iterator = iterable;
3671
3646
  } else {
3672
3647
  iterFn = getIteratorMethod(iterable);
3673
- if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
3648
+ if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
3674
3649
  // optimisation for array iterators
3675
3650
  if (isArrayIteratorMethod(iterFn)) {
3676
3651
  for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
@@ -3692,7 +3667,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
3692
3667
  } return new Result(false);
3693
3668
  };
3694
3669
 
3695
- var wellKnownSymbol = wellKnownSymbol$e;
3670
+ var wellKnownSymbol = wellKnownSymbol$g;
3696
3671
 
3697
3672
  var ITERATOR$1 = wellKnownSymbol('iterator');
3698
3673
  var SAFE_CLOSING = false;
@@ -3715,7 +3690,9 @@ try {
3715
3690
  } catch (error) { /* empty */ }
3716
3691
 
3717
3692
  var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
3718
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
3693
+ try {
3694
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
3695
+ } catch (error) { return false; } // workaround of old WebKit + `eval` bug
3719
3696
  var ITERATION_SUPPORT = false;
3720
3697
  try {
3721
3698
  var object = {};
@@ -3845,7 +3822,7 @@ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3845
3822
  });
3846
3823
 
3847
3824
  var anObject$2 = anObject$c;
3848
- var isObject = isObject$8;
3825
+ var isObject = isObject$9;
3849
3826
  var newPromiseCapability = newPromiseCapability$2;
3850
3827
 
3851
3828
  var promiseResolve$1 = function (C, x) {
@@ -4134,23 +4111,14 @@ const Text = ({
4134
4111
  children: children
4135
4112
  }));
4136
4113
 
4137
- var classof = classof$3;
4138
-
4139
- var $String = String;
4140
-
4141
- var toString$3 = function (argument) {
4142
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
4143
- return $String(argument);
4144
- };
4145
-
4146
4114
  var $$1 = _export;
4147
4115
  var DESCRIPTORS = descriptors;
4148
- var global$2 = global$i;
4116
+ var global$2 = global$k;
4149
4117
  var uncurryThis$2 = functionUncurryThis;
4150
4118
  var hasOwn$1 = hasOwnProperty_1;
4151
4119
  var isCallable = isCallable$l;
4152
4120
  var isPrototypeOf$1 = objectIsPrototypeOf;
4153
- var toString$2 = toString$3;
4121
+ var toString$2 = toString$4;
4154
4122
  var defineBuiltInAccessor = defineBuiltInAccessor$2;
4155
4123
  var copyConstructorProperties = copyConstructorProperties$2;
4156
4124
 
@@ -4177,7 +4145,7 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy
4177
4145
  SymbolWrapper.prototype = SymbolPrototype;
4178
4146
  SymbolPrototype.constructor = SymbolWrapper;
4179
4147
 
4180
- var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
4148
+ var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
4181
4149
  var thisSymbolValue = uncurryThis$2(SymbolPrototype.valueOf);
4182
4150
  var symbolDescriptiveString = uncurryThis$2(SymbolPrototype.toString);
4183
4151
  var regexp = /^Symbol\((.*)\)[^)]+$/;
@@ -4317,6 +4285,61 @@ const Flexbox = _a => {
4317
4285
  }));
4318
4286
  };
4319
4287
 
4288
+ const InPageWizardStepCard = props => {
4289
+ return jsxs("section", Object.assign({
4290
+ className: `gds-in-page-wizard-step-card card ${props.stepStatus === 'IsActive' ? 'active' : ''} ${props.stepStatus === 'IsComplete' ? 'completed' : ''}`,
4291
+ "data-testid": props.dataTestid
4292
+ }, {
4293
+ children: [jsxs("header", Object.assign({
4294
+ className: "gds-in-page-wizard-step-card__header"
4295
+ }, {
4296
+ children: [jsx("div", Object.assign({
4297
+ className: "gds-in-page-wizard-step-card__header__icon"
4298
+ }, {
4299
+ children: jsx(Check, {})
4300
+ })), jsx("div", Object.assign({
4301
+ className: "gds-in-page-wizard-step-card__header__progress"
4302
+ }, {
4303
+ children: props.stepText
4304
+ })), jsx("div", Object.assign({
4305
+ className: "gds-in-page-wizard-step-card__header__title"
4306
+ }, {
4307
+ children: jsx("h2", Object.assign({
4308
+ className: "h4"
4309
+ }, {
4310
+ children: props.title
4311
+ }))
4312
+ })), props.stepStatus === 'IsComplete' && jsx("div", Object.assign({
4313
+ className: "gds-in-page-wizard-step-card__header__edit"
4314
+ }, {
4315
+ children: jsxs("button", Object.assign({
4316
+ className: "secondary small",
4317
+ onClick: props.onEditClick
4318
+ }, {
4319
+ children: [jsx(Edit, {
4320
+ fill: 'var(--color)',
4321
+ height: 16,
4322
+ width: 16
4323
+ }), props.editBtnText]
4324
+ }))
4325
+ }))]
4326
+ })), (props.stepStatus === 'IsActive' || props.stepStatus === 'IsComplete') && jsx("div", Object.assign({
4327
+ className: "gds-in-page-wizard-step-card__content"
4328
+ }, {
4329
+ children: props.children
4330
+ })), props.stepStatus === 'IsActive' && !props.hideFooter && jsx("footer", Object.assign({
4331
+ className: "gds-in-page-wizard-step-card__footer"
4332
+ }, {
4333
+ children: jsxs("button", Object.assign({
4334
+ className: "primary",
4335
+ onClick: props.onNextClick
4336
+ }, {
4337
+ children: [props.nextBtnText, props.nextBtnIcon]
4338
+ }))
4339
+ }))]
4340
+ }));
4341
+ };
4342
+
4320
4343
  const Link = _a => {
4321
4344
  var {
4322
4345
  button,
@@ -4604,17 +4627,17 @@ var regexpGetFlags = function (R) {
4604
4627
  var PROPER_FUNCTION_NAME = functionName.PROPER;
4605
4628
  var defineBuiltIn = defineBuiltIn$6;
4606
4629
  var anObject = anObject$c;
4607
- var $toString = toString$3;
4608
- var fails$1 = fails$f;
4630
+ var $toString = toString$4;
4631
+ var fails$1 = fails$g;
4609
4632
  var getRegExpFlags = regexpGetFlags;
4610
4633
 
4611
4634
  var TO_STRING = 'toString';
4612
4635
  var RegExpPrototype = RegExp.prototype;
4613
4636
  var nativeToString = RegExpPrototype[TO_STRING];
4614
4637
 
4615
- var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
4638
+ var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
4616
4639
  // FF44- RegExp#toString has a wrong name
4617
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
4640
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
4618
4641
 
4619
4642
  // `RegExp.prototype.toString` method
4620
4643
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
@@ -4632,7 +4655,7 @@ const InputWrapper = ({
4632
4655
  unitLabel
4633
4656
  }) => jsx(Fragment, {
4634
4657
  children: unitLabel ? jsxs("div", Object.assign({
4635
- className: "group group-border"
4658
+ className: "group group-border group-focus"
4636
4659
  }, {
4637
4660
  children: [children, jsx("span", Object.assign({
4638
4661
  className: "form-text"
@@ -4892,8 +4915,8 @@ var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u200
4892
4915
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
4893
4916
 
4894
4917
  var uncurryThis$1 = functionUncurryThis;
4895
- var requireObjectCoercible = requireObjectCoercible$3;
4896
- var toString$1 = toString$3;
4918
+ var requireObjectCoercible = requireObjectCoercible$4;
4919
+ var toString$1 = toString$4;
4897
4920
  var whitespaces$1 = whitespaces$2;
4898
4921
 
4899
4922
  var replace = uncurryThis$1(''.replace);
@@ -4922,10 +4945,10 @@ var stringTrim = {
4922
4945
  trim: createMethod(3)
4923
4946
  };
4924
4947
 
4925
- var global$1 = global$i;
4926
- var fails = fails$f;
4948
+ var global$1 = global$k;
4949
+ var fails = fails$g;
4927
4950
  var uncurryThis = functionUncurryThis;
4928
- var toString = toString$3;
4951
+ var toString = toString$4;
4929
4952
  var trim = stringTrim.trim;
4930
4953
  var whitespaces = whitespaces$2;
4931
4954
 
@@ -4950,7 +4973,7 @@ var $parseInt = numberParseInt;
4950
4973
 
4951
4974
  // `parseInt` method
4952
4975
  // https://tc39.es/ecma262/#sec-parseint-string-radix
4953
- $({ global: true, forced: parseInt != $parseInt }, {
4976
+ $({ global: true, forced: parseInt !== $parseInt }, {
4954
4977
  parseInt: $parseInt
4955
4978
  });
4956
4979
 
@@ -5116,4 +5139,4 @@ const Modal = _a => {
5116
5139
  return isOpen ? modalContent() : null;
5117
5140
  };
5118
5141
 
5119
- export { Accordion, AlertRibbon as Alert, AlertRibbon, Badge, Button, ButtonGroup, Card, Checkbox, Datepicker, Dropdown, EmailInput, Flexbox, Form, FormItem, FormItems, Group, Link, List$1 as List, Modal, Navbar, NumberInput, Option, OptionGroup, RadioButton, RadioGroup, RenderInput, Select, Slider, Stepper, Tab, Tabs, Text, TextInput, valueList$1 as ValueList };
5142
+ export { Accordion, AlertRibbon as Alert, AlertRibbon, Badge, Button, ButtonGroup, Card, Checkbox, CoreDropdown, CoreOption, Datepicker, Dropdown, EmailInput, Flexbox, Form, FormItem, FormItems, Group, InPageWizardStepCard, Link, List$1 as List, Modal, Navbar, NumberInput, Option, OptionGroup, RadioButton, RadioGroup, RenderInput, Select, Slider, Stepper, Tab, Tabs, Text, TextInput, valueList$1 as ValueList };