@thecb/components 7.7.7 → 7.7.8-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -21327,7 +21327,7 @@ var check = function (it) {
21327
21327
 
21328
21328
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
21329
21329
  var global_1 =
21330
- // eslint-disable-next-line es/no-global-this -- safe
21330
+ // eslint-disable-next-line es-x/no-global-this -- safe
21331
21331
  check(typeof globalThis == 'object' && globalThis) ||
21332
21332
  check(typeof window == 'object' && window) ||
21333
21333
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -21346,12 +21346,12 @@ var fails = function (exec) {
21346
21346
 
21347
21347
  // Detect IE8's incomplete defineProperty implementation
21348
21348
  var descriptors = !fails(function () {
21349
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
21349
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
21350
21350
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
21351
21351
  });
21352
21352
 
21353
21353
  var functionBindNative = !fails(function () {
21354
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
21354
+ // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
21355
21355
  var test = (function () { /* empty */ }).bind();
21356
21356
  // eslint-disable-next-line no-prototype-builtins -- safe
21357
21357
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -21364,7 +21364,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
21364
21364
  };
21365
21365
 
21366
21366
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
21367
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21367
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21368
21368
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
21369
21369
 
21370
21370
  // Nashorn ~ JDK8 bug
@@ -21391,29 +21391,25 @@ var createPropertyDescriptor = function (bitmap, value) {
21391
21391
  };
21392
21392
 
21393
21393
  var FunctionPrototype = Function.prototype;
21394
+ var bind$1 = FunctionPrototype.bind;
21394
21395
  var call$1 = FunctionPrototype.call;
21395
- var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
21396
+ var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
21396
21397
 
21397
- var functionUncurryThisRaw = function (fn) {
21398
- return functionBindNative ? uncurryThisWithBind(fn) : function () {
21398
+ var functionUncurryThis = functionBindNative ? function (fn) {
21399
+ return fn && uncurryThis(fn);
21400
+ } : function (fn) {
21401
+ return fn && function () {
21399
21402
  return call$1.apply(fn, arguments);
21400
21403
  };
21401
21404
  };
21402
21405
 
21403
- var toString$2 = functionUncurryThisRaw({}.toString);
21404
- var stringSlice = functionUncurryThisRaw(''.slice);
21406
+ var toString$2 = functionUncurryThis({}.toString);
21407
+ var stringSlice = functionUncurryThis(''.slice);
21405
21408
 
21406
21409
  var classofRaw = function (it) {
21407
21410
  return stringSlice(toString$2(it), 8, -1);
21408
21411
  };
21409
21412
 
21410
- var functionUncurryThis = function (fn) {
21411
- // Nashorn bug:
21412
- // https://github.com/zloirock/core-js/issues/1128
21413
- // https://github.com/zloirock/core-js/issues/1130
21414
- if (classofRaw(fn) === 'Function') return functionUncurryThisRaw(fn);
21415
- };
21416
-
21417
21413
  var $Object = Object;
21418
21414
  var split = functionUncurryThis(''.split);
21419
21415
 
@@ -21426,18 +21422,12 @@ var indexedObject = fails(function () {
21426
21422
  return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
21427
21423
  } : $Object;
21428
21424
 
21429
- // we can't use just `it == null` since of `document.all` special case
21430
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
21431
- var isNullOrUndefined = function (it) {
21432
- return it === null || it === undefined;
21433
- };
21434
-
21435
21425
  var $TypeError = TypeError;
21436
21426
 
21437
21427
  // `RequireObjectCoercible` abstract operation
21438
21428
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
21439
21429
  var requireObjectCoercible = function (it) {
21440
- if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
21430
+ if (it == undefined) throw $TypeError("Can't call method on " + it);
21441
21431
  return it;
21442
21432
  };
21443
21433
 
@@ -21449,31 +21439,13 @@ var toIndexedObject = function (it) {
21449
21439
  return indexedObject(requireObjectCoercible(it));
21450
21440
  };
21451
21441
 
21452
- var documentAll = typeof document == 'object' && document.all;
21453
-
21454
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
21455
- var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
21456
-
21457
- var documentAll_1 = {
21458
- all: documentAll,
21459
- IS_HTMLDDA: IS_HTMLDDA
21460
- };
21461
-
21462
- var documentAll$1 = documentAll_1.all;
21463
-
21464
21442
  // `IsCallable` abstract operation
21465
21443
  // https://tc39.es/ecma262/#sec-iscallable
21466
- var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
21467
- return typeof argument == 'function' || argument === documentAll$1;
21468
- } : function (argument) {
21444
+ var isCallable = function (argument) {
21469
21445
  return typeof argument == 'function';
21470
21446
  };
21471
21447
 
21472
- var documentAll$2 = documentAll_1.all;
21473
-
21474
- var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
21475
- return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
21476
- } : function (it) {
21448
+ var isObject = function (it) {
21477
21449
  return typeof it == 'object' ? it !== null : isCallable(it);
21478
21450
  };
21479
21451
 
@@ -21514,12 +21486,12 @@ if (!version && engineUserAgent) {
21514
21486
 
21515
21487
  var engineV8Version = version;
21516
21488
 
21517
- /* eslint-disable es/no-symbol -- required for testing */
21489
+ /* eslint-disable es-x/no-symbol -- required for testing */
21518
21490
 
21519
21491
 
21520
21492
 
21521
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
21522
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
21493
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
21494
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
21523
21495
  var symbol = Symbol();
21524
21496
  // Chrome 38 Symbol has incorrect toString conversion
21525
21497
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -21528,10 +21500,10 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(functi
21528
21500
  !Symbol.sham && engineV8Version && engineV8Version < 41;
21529
21501
  });
21530
21502
 
21531
- /* eslint-disable es/no-symbol -- required for testing */
21503
+ /* eslint-disable es-x/no-symbol -- required for testing */
21532
21504
 
21533
21505
 
21534
- var useSymbolAsUid = symbolConstructorDetection
21506
+ var useSymbolAsUid = nativeSymbol
21535
21507
  && !Symbol.sham
21536
21508
  && typeof Symbol.iterator == 'symbol';
21537
21509
 
@@ -21566,7 +21538,7 @@ var aCallable = function (argument) {
21566
21538
  // https://tc39.es/ecma262/#sec-getmethod
21567
21539
  var getMethod = function (V, P) {
21568
21540
  var func = V[P];
21569
- return isNullOrUndefined(func) ? undefined : aCallable(func);
21541
+ return func == null ? undefined : aCallable(func);
21570
21542
  };
21571
21543
 
21572
21544
  var $TypeError$2 = TypeError;
@@ -21581,7 +21553,7 @@ var ordinaryToPrimitive = function (input, pref) {
21581
21553
  throw $TypeError$2("Can't convert object to primitive value");
21582
21554
  };
21583
21555
 
21584
- // eslint-disable-next-line es/no-object-defineproperty -- safe
21556
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
21585
21557
  var defineProperty = Object.defineProperty;
21586
21558
 
21587
21559
  var defineGlobalProperty = function (key, value) {
@@ -21601,10 +21573,10 @@ var shared = createCommonjsModule(function (module) {
21601
21573
  (module.exports = function (key, value) {
21602
21574
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
21603
21575
  })('versions', []).push({
21604
- version: '3.25.5',
21576
+ version: '3.24.1',
21605
21577
  mode: 'global',
21606
21578
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
21607
- license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
21579
+ license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
21608
21580
  source: 'https://github.com/zloirock/core-js'
21609
21581
  });
21610
21582
  });
@@ -21621,7 +21593,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
21621
21593
 
21622
21594
  // `HasOwnProperty` abstract operation
21623
21595
  // https://tc39.es/ecma262/#sec-hasownproperty
21624
- // eslint-disable-next-line es/no-object-hasown -- safe
21596
+ // eslint-disable-next-line es-x/no-object-hasown -- safe
21625
21597
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
21626
21598
  return hasOwnProperty(toObject(it), key);
21627
21599
  };
@@ -21640,9 +21612,9 @@ var symbolFor = Symbol$1 && Symbol$1['for'];
21640
21612
  var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
21641
21613
 
21642
21614
  var wellKnownSymbol = function (name) {
21643
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(symbolConstructorDetection || typeof WellKnownSymbolsStore[name] == 'string')) {
21615
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
21644
21616
  var description = 'Symbol.' + name;
21645
- if (symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)) {
21617
+ if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
21646
21618
  WellKnownSymbolsStore[name] = Symbol$1[name];
21647
21619
  } else if (useSymbolAsUid && symbolFor) {
21648
21620
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -21688,13 +21660,13 @@ var documentCreateElement = function (it) {
21688
21660
 
21689
21661
  // Thanks to IE8 for its funny defineProperty
21690
21662
  var ie8DomDefine = !descriptors && !fails(function () {
21691
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
21663
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
21692
21664
  return Object.defineProperty(documentCreateElement('div'), 'a', {
21693
21665
  get: function () { return 7; }
21694
21666
  }).a != 7;
21695
21667
  });
21696
21668
 
21697
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21669
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21698
21670
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
21699
21671
 
21700
21672
  // `Object.getOwnPropertyDescriptor` method
@@ -21715,7 +21687,7 @@ var objectGetOwnPropertyDescriptor = {
21715
21687
  // V8 ~ Chrome 36-
21716
21688
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
21717
21689
  var v8PrototypeDefineBug = descriptors && fails(function () {
21718
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
21690
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
21719
21691
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
21720
21692
  value: 42,
21721
21693
  writable: false
@@ -21732,9 +21704,9 @@ var anObject = function (argument) {
21732
21704
  };
21733
21705
 
21734
21706
  var $TypeError$5 = TypeError;
21735
- // eslint-disable-next-line es/no-object-defineproperty -- safe
21707
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
21736
21708
  var $defineProperty = Object.defineProperty;
21737
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21709
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21738
21710
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
21739
21711
  var ENUMERABLE = 'enumerable';
21740
21712
  var CONFIGURABLE = 'configurable';
@@ -21781,7 +21753,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
21781
21753
  };
21782
21754
 
21783
21755
  var FunctionPrototype$1 = Function.prototype;
21784
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21756
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21785
21757
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
21786
21758
 
21787
21759
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -21808,7 +21780,7 @@ var inspectSource = sharedStore.inspectSource;
21808
21780
 
21809
21781
  var WeakMap$1 = global_1.WeakMap;
21810
21782
 
21811
- var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
21783
+ var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
21812
21784
 
21813
21785
  var keys$1 = shared('keys');
21814
21786
 
@@ -21836,30 +21808,28 @@ var getterFor = function (TYPE) {
21836
21808
  };
21837
21809
  };
21838
21810
 
21839
- if (weakMapBasicDetection || sharedStore.state) {
21811
+ if (nativeWeakMap || sharedStore.state) {
21840
21812
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
21841
- /* eslint-disable no-self-assign -- prototype methods protection */
21842
- store$1.get = store$1.get;
21843
- store$1.has = store$1.has;
21844
- store$1.set = store$1.set;
21845
- /* eslint-enable no-self-assign -- prototype methods protection */
21813
+ var wmget = functionUncurryThis(store$1.get);
21814
+ var wmhas = functionUncurryThis(store$1.has);
21815
+ var wmset = functionUncurryThis(store$1.set);
21846
21816
  set = function (it, metadata) {
21847
- if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
21817
+ if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
21848
21818
  metadata.facade = it;
21849
- store$1.set(it, metadata);
21819
+ wmset(store$1, it, metadata);
21850
21820
  return metadata;
21851
21821
  };
21852
21822
  get = function (it) {
21853
- return store$1.get(it) || {};
21823
+ return wmget(store$1, it) || {};
21854
21824
  };
21855
21825
  has = function (it) {
21856
- return store$1.has(it);
21826
+ return wmhas(store$1, it);
21857
21827
  };
21858
21828
  } else {
21859
21829
  var STATE = sharedKey('state');
21860
21830
  hiddenKeys[STATE] = true;
21861
21831
  set = function (it, metadata) {
21862
- if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
21832
+ if (hasOwnProperty_1(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
21863
21833
  metadata.facade = it;
21864
21834
  createNonEnumerableProperty(it, STATE, metadata);
21865
21835
  return metadata;
@@ -21887,7 +21857,7 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
21887
21857
 
21888
21858
  var enforceInternalState = internalState.enforce;
21889
21859
  var getInternalState = internalState.get;
21890
- // eslint-disable-next-line es/no-object-defineproperty -- safe
21860
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
21891
21861
  var defineProperty = Object.defineProperty;
21892
21862
 
21893
21863
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
@@ -21956,7 +21926,7 @@ var floor = Math.floor;
21956
21926
 
21957
21927
  // `Math.trunc` method
21958
21928
  // https://tc39.es/ecma262/#sec-math.trunc
21959
- // eslint-disable-next-line es/no-math-trunc -- safe
21929
+ // eslint-disable-next-line es-x/no-math-trunc -- safe
21960
21930
  var mathTrunc = Math.trunc || function trunc(x) {
21961
21931
  var n = +x;
21962
21932
  return (n > 0 ? floor : ceil)(n);
@@ -22057,7 +22027,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
22057
22027
 
22058
22028
  // `Object.getOwnPropertyNames` method
22059
22029
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
22060
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
22030
+ // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
22061
22031
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
22062
22032
  return objectKeysInternal(O, hiddenKeys$1);
22063
22033
  };
@@ -22066,7 +22036,7 @@ var objectGetOwnPropertyNames = {
22066
22036
  f: f$3
22067
22037
  };
22068
22038
 
22069
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
22039
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
22070
22040
  var f$4 = Object.getOwnPropertySymbols;
22071
22041
 
22072
22042
  var objectGetOwnPropertySymbols = {
@@ -22210,7 +22180,7 @@ var toString_1 = function (argument) {
22210
22180
  var charAt = functionUncurryThis(''.charAt);
22211
22181
 
22212
22182
  var FORCED = fails(function () {
22213
- // eslint-disable-next-line es/no-array-string-prototype-at -- safe
22183
+ // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
22214
22184
  return '𠮷'.at(-2) !== '\uD842';
22215
22185
  });
22216
22186
 
@@ -22228,14 +22198,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
22228
22198
 
22229
22199
  // `Object.keys` method
22230
22200
  // https://tc39.es/ecma262/#sec-object.keys
22231
- // eslint-disable-next-line es/no-object-keys -- safe
22201
+ // eslint-disable-next-line es-x/no-object-keys -- safe
22232
22202
  var objectKeys = Object.keys || function keys(O) {
22233
22203
  return objectKeysInternal(O, enumBugKeys);
22234
22204
  };
22235
22205
 
22236
22206
  // `Object.defineProperties` method
22237
22207
  // https://tc39.es/ecma262/#sec-object.defineproperties
22238
- // eslint-disable-next-line es/no-object-defineproperties -- safe
22208
+ // eslint-disable-next-line es-x/no-object-defineproperties -- safe
22239
22209
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
22240
22210
  anObject(O);
22241
22211
  var props = toIndexedObject(Properties);
@@ -22324,7 +22294,7 @@ hiddenKeys[IE_PROTO] = true;
22324
22294
 
22325
22295
  // `Object.create` method
22326
22296
  // https://tc39.es/ecma262/#sec-object.create
22327
- // eslint-disable-next-line es/no-object-create -- safe
22297
+ // eslint-disable-next-line es-x/no-object-create -- safe
22328
22298
  var objectCreate = Object.create || function create(O, Properties) {
22329
22299
  var result;
22330
22300
  if (O !== null) {
@@ -22370,13 +22340,13 @@ _export({ target: 'Array', proto: true }, {
22370
22340
 
22371
22341
  addToUnscopables('at');
22372
22342
 
22373
- // eslint-disable-next-line es/no-typed-arrays -- safe
22374
- var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
22343
+ // eslint-disable-next-line es-x/no-typed-arrays -- safe
22344
+ var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
22375
22345
 
22376
22346
  var correctPrototypeGetter = !fails(function () {
22377
22347
  function F() { /* empty */ }
22378
22348
  F.prototype.constructor = null;
22379
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
22349
+ // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
22380
22350
  return Object.getPrototypeOf(new F()) !== F.prototype;
22381
22351
  });
22382
22352
 
@@ -22386,7 +22356,7 @@ var ObjectPrototype = $Object$4.prototype;
22386
22356
 
22387
22357
  // `Object.getPrototypeOf` method
22388
22358
  // https://tc39.es/ecma262/#sec-object.getprototypeof
22389
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
22359
+ // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
22390
22360
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
22391
22361
  var object = toObject(O);
22392
22362
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -22412,13 +22382,13 @@ var aPossiblePrototype = function (argument) {
22412
22382
  // `Object.setPrototypeOf` method
22413
22383
  // https://tc39.es/ecma262/#sec-object.setprototypeof
22414
22384
  // Works with __proto__ only. Old v8 can't work with null proto objects.
22415
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
22385
+ // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
22416
22386
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
22417
22387
  var CORRECT_SETTER = false;
22418
22388
  var test = {};
22419
22389
  var setter;
22420
22390
  try {
22421
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22391
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22422
22392
  setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
22423
22393
  setter(test, []);
22424
22394
  CORRECT_SETTER = test instanceof Array;
@@ -22455,7 +22425,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
22455
22425
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
22456
22426
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
22457
22427
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
22458
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
22428
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
22459
22429
  var TYPED_ARRAY_TAG_REQUIRED = false;
22460
22430
  var NAME, Constructor, Prototype;
22461
22431
 
@@ -24492,6 +24462,49 @@ var useOutsideClickHook = function useOutsideClickHook(handler) {
24492
24462
  return ref;
24493
24463
  };
24494
24464
 
24465
+ /*
24466
+ Hook that determines whether every element in an array of DOM selectors is fully present
24467
+ within the user's current viewport.
24468
+
24469
+ (elements: Array<String>) => Boolean;
24470
+
24471
+ Takes an array of strings that correspond to DOM selectors. Examples:
24472
+ "#submit-button", ".module-small", "h2.alert-title"
24473
+
24474
+ The document query function will return the *first* element in the document that matches
24475
+ the string given.
24476
+
24477
+ A combination string of multiple selectors can also be provided, e.g.:
24478
+ ".alert-info, .alert-warning, .alert-error"
24479
+
24480
+ This will return the first element that matches *any* of the provided selectors
24481
+
24482
+ If every element in the array is fully within the viewport, function returns true
24483
+ */
24484
+
24485
+ var useCheckElementsInViewport = function useCheckElementsInViewport() {
24486
+ var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
24487
+
24488
+ var _useState = React.useState(false),
24489
+ _useState2 = _slicedToArray(_useState, 2),
24490
+ elementsVisible = _useState2[0],
24491
+ setElementsVisible = _useState2[1];
24492
+
24493
+ var viewportWidth = window.innerWidth || document.documentElement.clientWidth;
24494
+ var viewportHeight = window.innerHeight || document.documentElement.clientHeight;
24495
+ React.useEffect(function () {
24496
+ elements.forEach(function (element) {
24497
+ var domEl = document.querySelector(element);
24498
+ var boundingBox = domEl.getBoundingClientRect();
24499
+
24500
+ if (boundingBox.top >= 0 && boundingBox.left >= 0 && boundingBox.right <= viewportWidth && boundingBox.bottom <= viewportHeight) {
24501
+ setElementsVisible(true);
24502
+ }
24503
+ });
24504
+ }, [elements]);
24505
+ return elementsVisible;
24506
+ };
24507
+
24495
24508
 
24496
24509
 
24497
24510
  var index$4 = /*#__PURE__*/Object.freeze({
@@ -24500,7 +24513,8 @@ var index$4 = /*#__PURE__*/Object.freeze({
24500
24513
  general: general,
24501
24514
  theme: themeUtils,
24502
24515
  useFocusInvalidInput: useFocusInvalidInput,
24503
- useOutsideClick: useOutsideClickHook
24516
+ useOutsideClick: useOutsideClickHook,
24517
+ useCheckElementsInViewport: useCheckElementsInViewport
24504
24518
  });
24505
24519
 
24506
24520
  var hoverColor$4 = "#116285";
@@ -40329,7 +40343,8 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
40329
40343
  textAlign: "center",
40330
40344
  color: themeValues.textColor,
40331
40345
  weight: FONT_WEIGHT_SEMIBOLD,
40332
- extraStyles: "display: block; white-space: nowrap;"
40346
+ extraStyles: "display: block; white-space: nowrap;",
40347
+ id: "".concat(t, "-tab-text")
40333
40348
  }, t));
40334
40349
  }), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
40335
40350
  };