@nulogy/components 7.2.3 → 7.3.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/dist/main.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('styled-components'), require('@babel/runtime/helpers/typeof'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/defineProperty'), require('object-assign'), require('@nulogy/icons'), require('@babel/runtime/helpers/extends'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inheritsLoose'), require('prop-types'), require('react-fast-compare'), require('warning'), require('@babel/runtime/helpers/slicedToArray'), require('@babel/runtime/helpers/objectWithoutPropertiesLoose'), require('deep-equal'), require('create-react-context'), require('react-dom'), require('react-windowed-select'), require('exenv'), require('smoothscroll-polyfill'), require('classnames'), require('@babel/runtime/helpers/toConsumableArray'), require('react-input-autosize'), require('@babel/runtime/helpers/taggedTemplateLiteral')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', 'styled-components', '@babel/runtime/helpers/typeof', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/defineProperty', 'object-assign', '@nulogy/icons', '@babel/runtime/helpers/extends', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inheritsLoose', 'prop-types', 'react-fast-compare', 'warning', '@babel/runtime/helpers/slicedToArray', '@babel/runtime/helpers/objectWithoutPropertiesLoose', 'deep-equal', 'create-react-context', 'react-dom', 'react-windowed-select', 'exenv', 'smoothscroll-polyfill', 'classnames', '@babel/runtime/helpers/toConsumableArray', 'react-input-autosize', '@babel/runtime/helpers/taggedTemplateLiteral'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.NDSComponents = {}, global.React, global.styled, global.typeof, global.classCallCheck, global.createClass, global.defineProperty, global.assign, global.icons, global.extends, global.assertThisInitialized, global.inheritsLoose, global.PropTypes, global.isEqual, global.warning, global.slicedToArray, global.objectWithoutPropertiesLoose, global.deepEqual, global.createReactContext, global.reactDom, global.components, global.exenv, global.smoothscroll, global.t, null, global.AutosizeInput));
5
- }(this, (function (exports, React, styled, _typeof$3, _classCallCheck$3, _createClass$3, _defineProperty$2, assign$1, icons, _extends$4, _assertThisInitialized$4, _inheritsLoose$2, PropTypes, isEqual$2, warning$1, _slicedToArray$1, _objectWithoutPropertiesLoose$2, deepEqual, createContext, reactDom, WindowedSelect, exenv, smoothscroll, t, toConsumableArray, AutosizeInput) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('styled-components'), require('@babel/runtime/helpers/typeof'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/defineProperty'), require('object-assign'), require('@nulogy/icons'), require('@babel/runtime/helpers/extends'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inheritsLoose'), require('prop-types'), require('react-fast-compare'), require('warning'), require('@babel/runtime/helpers/slicedToArray'), require('@babel/runtime/helpers/objectWithoutPropertiesLoose'), require('deep-equal'), require('create-react-context'), require('react-resize-detector'), require('react-windowed-select'), require('react-dom'), require('exenv'), require('smoothscroll-polyfill'), require('classnames'), require('@babel/runtime/helpers/toConsumableArray'), require('react-input-autosize'), require('@babel/runtime/helpers/taggedTemplateLiteral')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', 'styled-components', '@babel/runtime/helpers/typeof', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/defineProperty', 'object-assign', '@nulogy/icons', '@babel/runtime/helpers/extends', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inheritsLoose', 'prop-types', 'react-fast-compare', 'warning', '@babel/runtime/helpers/slicedToArray', '@babel/runtime/helpers/objectWithoutPropertiesLoose', 'deep-equal', 'create-react-context', 'react-resize-detector', 'react-windowed-select', 'react-dom', 'exenv', 'smoothscroll-polyfill', 'classnames', '@babel/runtime/helpers/toConsumableArray', 'react-input-autosize', '@babel/runtime/helpers/taggedTemplateLiteral'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.NDSComponents = {}, global.React, global.styled, global.typeof, global.classCallCheck, global.createClass, global.defineProperty, global.assign, global.icons, global.extends, global.assertThisInitialized, global.inheritsLoose, global.PropTypes, global.isEqual, global.warning, global.slicedToArray, global.objectWithoutPropertiesLoose, global.deepEqual, global.createReactContext, global.ReactResizeDetector, global.components, global.reactDom, global.exenv, global.smoothscroll, global.t, null, global.AutosizeInput));
5
+ }(this, (function (exports, React, styled, _typeof$1, _classCallCheck$1, _createClass$1, _defineProperty$1, assign$1, icons, _extends$4, _assertThisInitialized$2, _inheritsLoose$2, PropTypes, isEqual$2, warning$1, _slicedToArray$1, _objectWithoutPropertiesLoose$2, deepEqual, createContext, ReactResizeDetector, WindowedSelect, reactDom, exenv, smoothscroll, t, toConsumableArray, AutosizeInput) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -29,14 +29,14 @@
29
29
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
30
30
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
31
31
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
32
- var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof$3);
33
- var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck$3);
34
- var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass$3);
35
- var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$2);
32
+ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof$1);
33
+ var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck$1);
34
+ var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass$1);
35
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$1);
36
36
  var assign__default = /*#__PURE__*/_interopDefaultLegacy(assign$1);
37
37
  var icons__default = /*#__PURE__*/_interopDefaultLegacy(icons);
38
38
  var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends$4);
39
- var _assertThisInitialized__default = /*#__PURE__*/_interopDefaultLegacy(_assertThisInitialized$4);
39
+ var _assertThisInitialized__default = /*#__PURE__*/_interopDefaultLegacy(_assertThisInitialized$2);
40
40
  var _inheritsLoose__default = /*#__PURE__*/_interopDefaultLegacy(_inheritsLoose$2);
41
41
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
42
42
  var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual$2);
@@ -45,8 +45,9 @@
45
45
  var _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose$2);
46
46
  var deepEqual__default = /*#__PURE__*/_interopDefaultLegacy(deepEqual);
47
47
  var createContext__default = /*#__PURE__*/_interopDefaultLegacy(createContext);
48
- var reactDom__default = /*#__PURE__*/_interopDefaultLegacy(reactDom);
48
+ var ReactResizeDetector__default = /*#__PURE__*/_interopDefaultLegacy(ReactResizeDetector);
49
49
  var WindowedSelect__default = /*#__PURE__*/_interopDefaultLegacy(WindowedSelect);
50
+ var reactDom__default = /*#__PURE__*/_interopDefaultLegacy(reactDom);
50
51
  var exenv__default = /*#__PURE__*/_interopDefaultLegacy(exenv);
51
52
  var smoothscroll__default = /*#__PURE__*/_interopDefaultLegacy(smoothscroll);
52
53
  var t__default = /*#__PURE__*/_interopDefaultLegacy(t);
@@ -477,23 +478,23 @@
477
478
  }
478
479
  };
479
480
 
480
- function _typeof$2(obj) {
481
+ function _typeof(obj) {
481
482
  "@babel/helpers - typeof";
482
483
 
483
484
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
484
- _typeof$2 = function _typeof(obj) {
485
+ _typeof = function _typeof(obj) {
485
486
  return typeof obj;
486
487
  };
487
488
  } else {
488
- _typeof$2 = function _typeof(obj) {
489
+ _typeof = function _typeof(obj) {
489
490
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
490
491
  };
491
492
  }
492
493
 
493
- return _typeof$2(obj);
494
+ return _typeof(obj);
494
495
  }
495
496
 
496
- function _defineProperty$1(obj, key, value) {
497
+ function _defineProperty(obj, key, value) {
497
498
  if (key in obj) {
498
499
  Object.defineProperty(obj, key, {
499
500
  value: value,
@@ -520,20 +521,20 @@
520
521
  }
521
522
 
522
523
  ownKeys.forEach(function (key) {
523
- _defineProperty$1(target, key, source[key]);
524
+ _defineProperty(target, key, source[key]);
524
525
  });
525
526
  }
526
527
 
527
528
  return target;
528
529
  }
529
530
 
530
- function _classCallCheck$2(instance, Constructor) {
531
+ function _classCallCheck(instance, Constructor) {
531
532
  if (!(instance instanceof Constructor)) {
532
533
  throw new TypeError("Cannot call a class as a function");
533
534
  }
534
535
  }
535
536
 
536
- function _defineProperties$2(target, props) {
537
+ function _defineProperties(target, props) {
537
538
  for (var i = 0; i < props.length; i++) {
538
539
  var descriptor = props[i];
539
540
  descriptor.enumerable = descriptor.enumerable || false;
@@ -543,13 +544,13 @@
543
544
  }
544
545
  }
545
546
 
546
- function _createClass$2(Constructor, protoProps, staticProps) {
547
- if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
548
- if (staticProps) _defineProperties$2(Constructor, staticProps);
547
+ function _createClass(Constructor, protoProps, staticProps) {
548
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
549
+ if (staticProps) _defineProperties(Constructor, staticProps);
549
550
  return Constructor;
550
551
  }
551
552
 
552
- function _assertThisInitialized$3(self) {
553
+ function _assertThisInitialized$1(self) {
553
554
  if (self === void 0) {
554
555
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
555
556
  }
@@ -557,31 +558,31 @@
557
558
  return self;
558
559
  }
559
560
 
560
- function _possibleConstructorReturn$2(self, call) {
561
+ function _possibleConstructorReturn(self, call) {
561
562
  if (call && (_typeof__default['default'](call) === "object" || typeof call === "function")) {
562
563
  return call;
563
564
  }
564
565
 
565
- return _assertThisInitialized$3(self);
566
+ return _assertThisInitialized$1(self);
566
567
  }
567
568
 
568
- function _getPrototypeOf$2(o) {
569
- _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
569
+ function _getPrototypeOf(o) {
570
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
570
571
  return o.__proto__ || Object.getPrototypeOf(o);
571
572
  };
572
- return _getPrototypeOf$2(o);
573
+ return _getPrototypeOf(o);
573
574
  }
574
575
 
575
- function _setPrototypeOf$3(o, p) {
576
- _setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
576
+ function _setPrototypeOf$1(o, p) {
577
+ _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
577
578
  o.__proto__ = p;
578
579
  return o;
579
580
  };
580
581
 
581
- return _setPrototypeOf$3(o, p);
582
+ return _setPrototypeOf$1(o, p);
582
583
  }
583
584
 
584
- function _inherits$2(subClass, superClass) {
585
+ function _inherits(subClass, superClass) {
585
586
  if (typeof superClass !== "function" && superClass !== null) {
586
587
  throw new TypeError("Super expression must either be null or a function");
587
588
  }
@@ -593,7 +594,7 @@
593
594
  configurable: true
594
595
  }
595
596
  });
596
- if (superClass) _setPrototypeOf$3(subClass, superClass);
597
+ if (superClass) _setPrototypeOf$1(subClass, superClass);
597
598
  }
598
599
 
599
600
  var consoleLogger = {
@@ -616,12 +617,12 @@
616
617
  function Logger(concreteLogger) {
617
618
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
618
619
 
619
- _classCallCheck$2(this, Logger);
620
+ _classCallCheck(this, Logger);
620
621
 
621
622
  this.init(concreteLogger, options);
622
623
  }
623
624
 
624
- _createClass$2(Logger, [{
625
+ _createClass(Logger, [{
625
626
  key: "init",
626
627
  value: function init(concreteLogger) {
627
628
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -694,12 +695,12 @@
694
695
 
695
696
  var EventEmitter = function () {
696
697
  function EventEmitter() {
697
- _classCallCheck$2(this, EventEmitter);
698
+ _classCallCheck(this, EventEmitter);
698
699
 
699
700
  this.observers = {};
700
701
  }
701
702
 
702
- _createClass$2(EventEmitter, [{
703
+ _createClass(EventEmitter, [{
703
704
  key: "on",
704
705
  value: function on(events, listener) {
705
706
  var _this = this;
@@ -876,7 +877,7 @@
876
877
  var isIE10$1 = typeof window !== 'undefined' && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf('MSIE') > -1;
877
878
 
878
879
  var ResourceStore = function (_EventEmitter) {
879
- _inherits$2(ResourceStore, _EventEmitter);
880
+ _inherits(ResourceStore, _EventEmitter);
880
881
 
881
882
  function ResourceStore(data) {
882
883
  var _this;
@@ -886,12 +887,12 @@
886
887
  defaultNS: 'translation'
887
888
  };
888
889
 
889
- _classCallCheck$2(this, ResourceStore);
890
+ _classCallCheck(this, ResourceStore);
890
891
 
891
- _this = _possibleConstructorReturn$2(this, _getPrototypeOf$2(ResourceStore).call(this));
892
+ _this = _possibleConstructorReturn(this, _getPrototypeOf(ResourceStore).call(this));
892
893
 
893
894
  if (isIE10$1) {
894
- EventEmitter.call(_assertThisInitialized$3(_this));
895
+ EventEmitter.call(_assertThisInitialized$1(_this));
895
896
  }
896
897
 
897
898
  _this.data = data || {};
@@ -904,7 +905,7 @@
904
905
  return _this;
905
906
  }
906
907
 
907
- _createClass$2(ResourceStore, [{
908
+ _createClass(ResourceStore, [{
908
909
  key: "addNamespaces",
909
910
  value: function addNamespaces(ns) {
910
911
  if (this.options.ns.indexOf(ns) < 0) {
@@ -1053,22 +1054,22 @@
1053
1054
  var checkedLoadedFor = {};
1054
1055
 
1055
1056
  var Translator = function (_EventEmitter) {
1056
- _inherits$2(Translator, _EventEmitter);
1057
+ _inherits(Translator, _EventEmitter);
1057
1058
 
1058
1059
  function Translator(services) {
1059
1060
  var _this;
1060
1061
 
1061
1062
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1062
1063
 
1063
- _classCallCheck$2(this, Translator);
1064
+ _classCallCheck(this, Translator);
1064
1065
 
1065
- _this = _possibleConstructorReturn$2(this, _getPrototypeOf$2(Translator).call(this));
1066
+ _this = _possibleConstructorReturn(this, _getPrototypeOf(Translator).call(this));
1066
1067
 
1067
1068
  if (isIE10$1) {
1068
- EventEmitter.call(_assertThisInitialized$3(_this));
1069
+ EventEmitter.call(_assertThisInitialized$1(_this));
1069
1070
  }
1070
1071
 
1071
- copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, _assertThisInitialized$3(_this));
1072
+ copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, _assertThisInitialized$1(_this));
1072
1073
  _this.options = options;
1073
1074
 
1074
1075
  if (_this.options.keySeparator === undefined) {
@@ -1079,7 +1080,7 @@
1079
1080
  return _this;
1080
1081
  }
1081
1082
 
1082
- _createClass$2(Translator, [{
1083
+ _createClass(Translator, [{
1083
1084
  key: "changeLanguage",
1084
1085
  value: function changeLanguage(lng) {
1085
1086
  if (lng) this.language = lng;
@@ -1127,7 +1128,7 @@
1127
1128
  value: function translate(keys, options, lastKey) {
1128
1129
  var _this2 = this;
1129
1130
 
1130
- if (_typeof$2(options) !== 'object' && this.options.overloadTranslationOptionHandler) {
1131
+ if (_typeof(options) !== 'object' && this.options.overloadTranslationOptionHandler) {
1131
1132
  options = this.options.overloadTranslationOptionHandler(arguments);
1132
1133
  }
1133
1134
 
@@ -1426,7 +1427,7 @@
1426
1427
 
1427
1428
  var LanguageUtil = function () {
1428
1429
  function LanguageUtil(options) {
1429
- _classCallCheck$2(this, LanguageUtil);
1430
+ _classCallCheck(this, LanguageUtil);
1430
1431
 
1431
1432
  this.options = options;
1432
1433
  this.whitelist = this.options.supportedLngs || false;
@@ -1434,7 +1435,7 @@
1434
1435
  this.logger = baseLogger.create('languageUtils');
1435
1436
  }
1436
1437
 
1437
- _createClass$2(LanguageUtil, [{
1438
+ _createClass(LanguageUtil, [{
1438
1439
  key: "getScriptPartFromCode",
1439
1440
  value: function getScriptPartFromCode(code) {
1440
1441
  if (!code || code.indexOf('-') < 0) return null;
@@ -1755,7 +1756,7 @@
1755
1756
  function PluralResolver(languageUtils) {
1756
1757
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1757
1758
 
1758
- _classCallCheck$2(this, PluralResolver);
1759
+ _classCallCheck(this, PluralResolver);
1759
1760
 
1760
1761
  this.languageUtils = languageUtils;
1761
1762
  this.options = options;
@@ -1763,7 +1764,7 @@
1763
1764
  this.rules = createRules();
1764
1765
  }
1765
1766
 
1766
- _createClass$2(PluralResolver, [{
1767
+ _createClass(PluralResolver, [{
1767
1768
  key: "addRule",
1768
1769
  value: function addRule(lng, obj) {
1769
1770
  this.rules[lng] = obj;
@@ -1849,7 +1850,7 @@
1849
1850
  function Interpolator() {
1850
1851
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1851
1852
 
1852
- _classCallCheck$2(this, Interpolator);
1853
+ _classCallCheck(this, Interpolator);
1853
1854
 
1854
1855
  this.logger = baseLogger.create('interpolator');
1855
1856
  this.options = options;
@@ -1861,7 +1862,7 @@
1861
1862
  this.init(options);
1862
1863
  }
1863
1864
 
1864
- _createClass$2(Interpolator, [{
1865
+ _createClass(Interpolator, [{
1865
1866
  key: "init",
1866
1867
  value: function init() {
1867
1868
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -2056,19 +2057,19 @@
2056
2057
  }
2057
2058
 
2058
2059
  var Connector = function (_EventEmitter) {
2059
- _inherits$2(Connector, _EventEmitter);
2060
+ _inherits(Connector, _EventEmitter);
2060
2061
 
2061
2062
  function Connector(backend, store, services) {
2062
2063
  var _this;
2063
2064
 
2064
2065
  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2065
2066
 
2066
- _classCallCheck$2(this, Connector);
2067
+ _classCallCheck(this, Connector);
2067
2068
 
2068
- _this = _possibleConstructorReturn$2(this, _getPrototypeOf$2(Connector).call(this));
2069
+ _this = _possibleConstructorReturn(this, _getPrototypeOf(Connector).call(this));
2069
2070
 
2070
2071
  if (isIE10$1) {
2071
- EventEmitter.call(_assertThisInitialized$3(_this));
2072
+ EventEmitter.call(_assertThisInitialized$1(_this));
2072
2073
  }
2073
2074
 
2074
2075
  _this.backend = backend;
@@ -2087,7 +2088,7 @@
2087
2088
  return _this;
2088
2089
  }
2089
2090
 
2090
- _createClass$2(Connector, [{
2091
+ _createClass(Connector, [{
2091
2092
  key: "queueLoad",
2092
2093
  value: function queueLoad(languages, namespaces, options, callback) {
2093
2094
  var _this2 = this;
@@ -2313,11 +2314,11 @@
2313
2314
  appendNamespaceToCIMode: false,
2314
2315
  overloadTranslationOptionHandler: function handle(args) {
2315
2316
  var ret = {};
2316
- if (_typeof$2(args[1]) === 'object') ret = args[1];
2317
+ if (_typeof(args[1]) === 'object') ret = args[1];
2317
2318
  if (typeof args[1] === 'string') ret.defaultValue = args[1];
2318
2319
  if (typeof args[2] === 'string') ret.tDescription = args[2];
2319
2320
 
2320
- if (_typeof$2(args[2]) === 'object' || _typeof$2(args[3]) === 'object') {
2321
+ if (_typeof(args[2]) === 'object' || _typeof(args[3]) === 'object') {
2321
2322
  var options = args[3] || args[2];
2322
2323
  Object.keys(options).forEach(function (key) {
2323
2324
  ret[key] = options[key];
@@ -2370,7 +2371,7 @@
2370
2371
  function noop$2() {}
2371
2372
 
2372
2373
  var I18n = function (_EventEmitter) {
2373
- _inherits$2(I18n, _EventEmitter);
2374
+ _inherits(I18n, _EventEmitter);
2374
2375
 
2375
2376
  function I18n() {
2376
2377
  var _this;
@@ -2378,12 +2379,12 @@
2378
2379
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2379
2380
  var callback = arguments.length > 1 ? arguments[1] : undefined;
2380
2381
 
2381
- _classCallCheck$2(this, I18n);
2382
+ _classCallCheck(this, I18n);
2382
2383
 
2383
- _this = _possibleConstructorReturn$2(this, _getPrototypeOf$2(I18n).call(this));
2384
+ _this = _possibleConstructorReturn(this, _getPrototypeOf(I18n).call(this));
2384
2385
 
2385
2386
  if (isIE10$1) {
2386
- EventEmitter.call(_assertThisInitialized$3(_this));
2387
+ EventEmitter.call(_assertThisInitialized$1(_this));
2387
2388
  }
2388
2389
 
2389
2390
  _this.options = transformOptions(options);
@@ -2397,7 +2398,7 @@
2397
2398
  if (!_this.options.initImmediate) {
2398
2399
  _this.init(options, callback);
2399
2400
 
2400
- return _possibleConstructorReturn$2(_this, _assertThisInitialized$3(_this));
2401
+ return _possibleConstructorReturn(_this, _assertThisInitialized$1(_this));
2401
2402
  }
2402
2403
 
2403
2404
  setTimeout(function () {
@@ -2408,7 +2409,7 @@
2408
2409
  return _this;
2409
2410
  }
2410
2411
 
2411
- _createClass$2(I18n, [{
2412
+ _createClass(I18n, [{
2412
2413
  key: "init",
2413
2414
  value: function init() {
2414
2415
  var _this2 = this;
@@ -2705,7 +2706,7 @@
2705
2706
  var fixedT = function fixedT(key, opts) {
2706
2707
  var options;
2707
2708
 
2708
- if (_typeof$2(opts) !== 'object') {
2709
+ if (_typeof(opts) !== 'object') {
2709
2710
  for (var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
2710
2711
  rest[_key3 - 2] = arguments[_key3];
2711
2712
  }
@@ -3656,8 +3657,8 @@
3656
3657
  return React.useContext(MotionContext).visualElement;
3657
3658
  }
3658
3659
 
3659
- var isBrowser$6 = typeof window !== "undefined";
3660
- var useIsomorphicLayoutEffect$2 = isBrowser$6 ? React.useLayoutEffect : React.useEffect;
3660
+ var isBrowser$5 = typeof window !== "undefined";
3661
+ var useIsomorphicLayoutEffect$2 = isBrowser$5 ? React.useLayoutEffect : React.useEffect;
3661
3662
 
3662
3663
  function useSnapshotOnUnmount(visualElement) {
3663
3664
  var syncLayout = React.useContext(SharedLayoutContext);
@@ -5205,16 +5206,16 @@
5205
5206
  : listener;
5206
5207
  };
5207
5208
 
5208
- var isBrowser$5 = typeof window !== "undefined";
5209
+ var isBrowser$4 = typeof window !== "undefined";
5209
5210
  // We check for event support via functions in case they've been mocked by a testing suite.
5210
5211
  var supportsPointerEvents = function () {
5211
- return isBrowser$5 && window.onpointerdown === null;
5212
+ return isBrowser$4 && window.onpointerdown === null;
5212
5213
  };
5213
5214
  var supportsTouchEvents = function () {
5214
- return isBrowser$5 && window.ontouchstart === null;
5215
+ return isBrowser$4 && window.ontouchstart === null;
5215
5216
  };
5216
5217
  var supportsMouseEvents = function () {
5217
- return isBrowser$5 && window.onmousedown === null;
5218
+ return isBrowser$4 && window.onmousedown === null;
5218
5219
  };
5219
5220
 
5220
5221
  var mouseEventNames = {
@@ -11908,7 +11909,7 @@
11908
11909
  textOverflow: true
11909
11910
  });
11910
11911
 
11911
- var addStyledProps = compose(border, shadow, color, cursor$1, layout, overflow, space, textOverflow, transform, transition, typography, visibility);
11912
+ var addStyledProps = compose(border, shadow, color, cursor$1, layout, overflow, space, textOverflow, transform, transition, typography, visibility, flexbox);
11912
11913
 
11913
11914
  var getAttrs = function getAttrs(inline) {
11914
11915
  return inline ? {
@@ -12950,14 +12951,14 @@
12950
12951
  function _inheritsLoose$1(subClass, superClass) {
12951
12952
  subClass.prototype = Object.create(superClass.prototype);
12952
12953
  subClass.prototype.constructor = subClass;
12953
- _setPrototypeOf$3(subClass, superClass);
12954
+ _setPrototypeOf$1(subClass, superClass);
12954
12955
  }
12955
12956
 
12956
12957
  function _isNativeFunction(fn) {
12957
12958
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
12958
12959
  }
12959
12960
 
12960
- function _isNativeReflectConstruct$8() {
12961
+ function _isNativeReflectConstruct$6() {
12961
12962
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
12962
12963
  if (Reflect.construct.sham) return false;
12963
12964
  if (typeof Proxy === "function") return true;
@@ -12971,7 +12972,7 @@
12971
12972
  }
12972
12973
 
12973
12974
  function _construct(Parent, args, Class) {
12974
- if (_isNativeReflectConstruct$8()) {
12975
+ if (_isNativeReflectConstruct$6()) {
12975
12976
  _construct = Reflect.construct;
12976
12977
  } else {
12977
12978
  _construct = function _construct(Parent, args, Class) {
@@ -12979,7 +12980,7 @@
12979
12980
  a.push.apply(a, args);
12980
12981
  var Constructor = Function.bind.apply(Parent, a);
12981
12982
  var instance = new Constructor();
12982
- if (Class) _setPrototypeOf$3(instance, Class.prototype);
12983
+ if (Class) _setPrototypeOf$1(instance, Class.prototype);
12983
12984
  return instance;
12984
12985
  };
12985
12986
  }
@@ -13004,7 +13005,7 @@
13004
13005
  }
13005
13006
 
13006
13007
  function Wrapper() {
13007
- return _construct(Class, arguments, _getPrototypeOf$2(this).constructor);
13008
+ return _construct(Class, arguments, _getPrototypeOf(this).constructor);
13008
13009
  }
13009
13010
 
13010
13011
  Wrapper.prototype = Object.create(Class.prototype, {
@@ -13015,7 +13016,7 @@
13015
13016
  configurable: true
13016
13017
  }
13017
13018
  });
13018
- return _setPrototypeOf$3(Wrapper, Class);
13019
+ return _setPrototypeOf$1(Wrapper, Class);
13019
13020
  };
13020
13021
 
13021
13022
  return _wrapNativeSuper(Class);
@@ -13149,7 +13150,7 @@
13149
13150
  _this = _Error.call(this, format$3.apply(void 0, [ERRORS[code]].concat(args))) || this;
13150
13151
  }
13151
13152
 
13152
- return _assertThisInitialized$3(_this);
13153
+ return _assertThisInitialized$1(_this);
13153
13154
  }
13154
13155
 
13155
13156
  return PolishedError;
@@ -15566,7 +15567,7 @@
15566
15567
  }, []);
15567
15568
  }
15568
15569
 
15569
- function debounce$3(fn) {
15570
+ function debounce$2(fn) {
15570
15571
  var pending;
15571
15572
  return function () {
15572
15573
  if (!pending) {
@@ -15873,7 +15874,7 @@
15873
15874
  },
15874
15875
  // Async and optimistically optimized update – it will not be executed if
15875
15876
  // not necessary (debounced to run at most once-per-tick)
15876
- update: debounce$3(function () {
15877
+ update: debounce$2(function () {
15877
15878
  return new Promise(function (resolve) {
15878
15879
  instance.forceUpdate();
15879
15880
  resolve(state);
@@ -16993,12 +16994,12 @@
16993
16994
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16994
16995
  * SOFTWARE.
16995
16996
  */
16996
- var isBrowser$4 = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
16997
+ var isBrowser$3 = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
16997
16998
 
16998
16999
  var timeoutDuration = function () {
16999
17000
  var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
17000
17001
  for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
17001
- if (isBrowser$4 && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
17002
+ if (isBrowser$3 && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
17002
17003
  return 1;
17003
17004
  }
17004
17005
  }
@@ -17032,7 +17033,7 @@
17032
17033
  };
17033
17034
  }
17034
17035
 
17035
- var supportsMicroTasks = isBrowser$4 && window.Promise;
17036
+ var supportsMicroTasks = isBrowser$3 && window.Promise;
17036
17037
 
17037
17038
  /**
17038
17039
  * Create a debounced version of a method, that's asynchronously deferred
@@ -17043,7 +17044,7 @@
17043
17044
  * @argument {Function} fn
17044
17045
  * @returns {Function}
17045
17046
  */
17046
- var debounce$2 = supportsMicroTasks ? microtaskDebounce : taskDebounce;
17047
+ var debounce$1 = supportsMicroTasks ? microtaskDebounce : taskDebounce;
17047
17048
 
17048
17049
  /**
17049
17050
  * Check if the given variable is a function
@@ -17052,7 +17053,7 @@
17052
17053
  * @argument {Any} functionToCheck - variable to check
17053
17054
  * @returns {Boolean} answer to: is a function?
17054
17055
  */
17055
- function isFunction$1(functionToCheck) {
17056
+ function isFunction(functionToCheck) {
17056
17057
  var getType = {};
17057
17058
  return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
17058
17059
  }
@@ -17134,8 +17135,8 @@
17134
17135
  return reference && reference.referenceNode ? reference.referenceNode : reference;
17135
17136
  }
17136
17137
 
17137
- var isIE11 = isBrowser$4 && !!(window.MSInputMethodContext && document.documentMode);
17138
- var isIE10 = isBrowser$4 && /MSIE 10/.test(navigator.userAgent);
17138
+ var isIE11 = isBrowser$3 && !!(window.MSInputMethodContext && document.documentMode);
17139
+ var isIE10 = isBrowser$3 && /MSIE 10/.test(navigator.userAgent);
17139
17140
 
17140
17141
  /**
17141
17142
  * Determines if the browser is Internet Explorer
@@ -17313,7 +17314,7 @@
17313
17314
  * @return {number} borders - The borders size of the given axis
17314
17315
  */
17315
17316
 
17316
- function getBordersSize$1(styles, axis) {
17317
+ function getBordersSize(styles, axis) {
17317
17318
  var sideA = axis === 'x' ? 'Left' : 'Top';
17318
17319
  var sideB = sideA === 'Left' ? 'Right' : 'Bottom';
17319
17320
 
@@ -17452,8 +17453,8 @@
17452
17453
  // we make this check conditional for performance reasons
17453
17454
  if (horizScrollbar || vertScrollbar) {
17454
17455
  var styles = getStyleComputedProperty(element);
17455
- horizScrollbar -= getBordersSize$1(styles, 'x');
17456
- vertScrollbar -= getBordersSize$1(styles, 'y');
17456
+ horizScrollbar -= getBordersSize(styles, 'x');
17457
+ vertScrollbar -= getBordersSize(styles, 'y');
17457
17458
 
17458
17459
  result.width -= horizScrollbar;
17459
17460
  result.height -= vertScrollbar;
@@ -17861,7 +17862,7 @@
17861
17862
  console.warn('`modifier.function` is deprecated, use `modifier.fn`!');
17862
17863
  }
17863
17864
  var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation
17864
- if (modifier.enabled && isFunction$1(fn)) {
17865
+ if (modifier.enabled && isFunction(fn)) {
17865
17866
  // Add properties to offsets to make them a complete clientRect object
17866
17867
  // we do this before each modifier to make sure the previous one doesn't
17867
17868
  // mess with these values
@@ -18237,7 +18238,7 @@
18237
18238
  };
18238
18239
  }
18239
18240
 
18240
- var isFirefox = isBrowser$4 && /Firefox/i.test(navigator.userAgent);
18241
+ var isFirefox = isBrowser$3 && /Firefox/i.test(navigator.userAgent);
18241
18242
 
18242
18243
  /**
18243
18244
  * @function
@@ -19450,7 +19451,7 @@
19450
19451
  };
19451
19452
 
19452
19453
  // make update() debounced, so that it only runs at most once-per-tick
19453
- this.update = debounce$2(this.update.bind(this));
19454
+ this.update = debounce$1(this.update.bind(this));
19454
19455
 
19455
19456
  // with {} we create a new object with the options inside it
19456
19457
  this.options = _extends$1({}, Popper.Defaults, options);
@@ -19488,7 +19489,7 @@
19488
19489
  // they could add new properties to their options configuration
19489
19490
  // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!
19490
19491
  this.modifiers.forEach(function (modifierOptions) {
19491
- if (modifierOptions.enabled && isFunction$1(modifierOptions.onLoad)) {
19492
+ if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {
19492
19493
  modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);
19493
19494
  }
19494
19495
  });
@@ -20776,1841 +20777,6 @@
20776
20777
  }));
20777
20778
  });
20778
20779
 
20779
- /**
20780
- * A collection of shims that provide minimal functionality of the ES6 collections.
20781
- *
20782
- * These implementations are not meant to be used outside of the ResizeObserver
20783
- * modules as they cover only a limited range of use cases.
20784
- */
20785
- /* eslint-disable require-jsdoc, valid-jsdoc */
20786
- var MapShim = (function () {
20787
- if (typeof Map !== 'undefined') {
20788
- return Map;
20789
- }
20790
- /**
20791
- * Returns index in provided array that matches the specified key.
20792
- *
20793
- * @param {Array<Array>} arr
20794
- * @param {*} key
20795
- * @returns {number}
20796
- */
20797
- function getIndex(arr, key) {
20798
- var result = -1;
20799
- arr.some(function (entry, index) {
20800
- if (entry[0] === key) {
20801
- result = index;
20802
- return true;
20803
- }
20804
- return false;
20805
- });
20806
- return result;
20807
- }
20808
- return /** @class */ (function () {
20809
- function class_1() {
20810
- this.__entries__ = [];
20811
- }
20812
- Object.defineProperty(class_1.prototype, "size", {
20813
- /**
20814
- * @returns {boolean}
20815
- */
20816
- get: function () {
20817
- return this.__entries__.length;
20818
- },
20819
- enumerable: true,
20820
- configurable: true
20821
- });
20822
- /**
20823
- * @param {*} key
20824
- * @returns {*}
20825
- */
20826
- class_1.prototype.get = function (key) {
20827
- var index = getIndex(this.__entries__, key);
20828
- var entry = this.__entries__[index];
20829
- return entry && entry[1];
20830
- };
20831
- /**
20832
- * @param {*} key
20833
- * @param {*} value
20834
- * @returns {void}
20835
- */
20836
- class_1.prototype.set = function (key, value) {
20837
- var index = getIndex(this.__entries__, key);
20838
- if (~index) {
20839
- this.__entries__[index][1] = value;
20840
- }
20841
- else {
20842
- this.__entries__.push([key, value]);
20843
- }
20844
- };
20845
- /**
20846
- * @param {*} key
20847
- * @returns {void}
20848
- */
20849
- class_1.prototype.delete = function (key) {
20850
- var entries = this.__entries__;
20851
- var index = getIndex(entries, key);
20852
- if (~index) {
20853
- entries.splice(index, 1);
20854
- }
20855
- };
20856
- /**
20857
- * @param {*} key
20858
- * @returns {void}
20859
- */
20860
- class_1.prototype.has = function (key) {
20861
- return !!~getIndex(this.__entries__, key);
20862
- };
20863
- /**
20864
- * @returns {void}
20865
- */
20866
- class_1.prototype.clear = function () {
20867
- this.__entries__.splice(0);
20868
- };
20869
- /**
20870
- * @param {Function} callback
20871
- * @param {*} [ctx=null]
20872
- * @returns {void}
20873
- */
20874
- class_1.prototype.forEach = function (callback, ctx) {
20875
- if (ctx === void 0) { ctx = null; }
20876
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
20877
- var entry = _a[_i];
20878
- callback.call(ctx, entry[1], entry[0]);
20879
- }
20880
- };
20881
- return class_1;
20882
- }());
20883
- })();
20884
-
20885
- /**
20886
- * Detects whether window and document objects are available in current environment.
20887
- */
20888
- var isBrowser$3 = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
20889
-
20890
- // Returns global object of a current environment.
20891
- var global$1 = (function () {
20892
- if (typeof global !== 'undefined' && global.Math === Math) {
20893
- return global;
20894
- }
20895
- if (typeof self !== 'undefined' && self.Math === Math) {
20896
- return self;
20897
- }
20898
- if (typeof window !== 'undefined' && window.Math === Math) {
20899
- return window;
20900
- }
20901
- // eslint-disable-next-line no-new-func
20902
- return Function('return this')();
20903
- })();
20904
-
20905
- /**
20906
- * A shim for the requestAnimationFrame which falls back to the setTimeout if
20907
- * first one is not supported.
20908
- *
20909
- * @returns {number} Requests' identifier.
20910
- */
20911
- var requestAnimationFrame$1 = (function () {
20912
- if (typeof requestAnimationFrame === 'function') {
20913
- // It's required to use a bounded function because IE sometimes throws
20914
- // an "Invalid calling object" error if rAF is invoked without the global
20915
- // object on the left hand side.
20916
- return requestAnimationFrame.bind(global$1);
20917
- }
20918
- return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
20919
- })();
20920
-
20921
- // Defines minimum timeout before adding a trailing call.
20922
- var trailingTimeout = 2;
20923
- /**
20924
- * Creates a wrapper function which ensures that provided callback will be
20925
- * invoked only once during the specified delay period.
20926
- *
20927
- * @param {Function} callback - Function to be invoked after the delay period.
20928
- * @param {number} delay - Delay after which to invoke callback.
20929
- * @returns {Function}
20930
- */
20931
- function throttle$1 (callback, delay) {
20932
- var leadingCall = false, trailingCall = false, lastCallTime = 0;
20933
- /**
20934
- * Invokes the original callback function and schedules new invocation if
20935
- * the "proxy" was called during current request.
20936
- *
20937
- * @returns {void}
20938
- */
20939
- function resolvePending() {
20940
- if (leadingCall) {
20941
- leadingCall = false;
20942
- callback();
20943
- }
20944
- if (trailingCall) {
20945
- proxy();
20946
- }
20947
- }
20948
- /**
20949
- * Callback invoked after the specified delay. It will further postpone
20950
- * invocation of the original function delegating it to the
20951
- * requestAnimationFrame.
20952
- *
20953
- * @returns {void}
20954
- */
20955
- function timeoutCallback() {
20956
- requestAnimationFrame$1(resolvePending);
20957
- }
20958
- /**
20959
- * Schedules invocation of the original function.
20960
- *
20961
- * @returns {void}
20962
- */
20963
- function proxy() {
20964
- var timeStamp = Date.now();
20965
- if (leadingCall) {
20966
- // Reject immediately following calls.
20967
- if (timeStamp - lastCallTime < trailingTimeout) {
20968
- return;
20969
- }
20970
- // Schedule new call to be in invoked when the pending one is resolved.
20971
- // This is important for "transitions" which never actually start
20972
- // immediately so there is a chance that we might miss one if change
20973
- // happens amids the pending invocation.
20974
- trailingCall = true;
20975
- }
20976
- else {
20977
- leadingCall = true;
20978
- trailingCall = false;
20979
- setTimeout(timeoutCallback, delay);
20980
- }
20981
- lastCallTime = timeStamp;
20982
- }
20983
- return proxy;
20984
- }
20985
-
20986
- // Minimum delay before invoking the update of observers.
20987
- var REFRESH_DELAY = 20;
20988
- // A list of substrings of CSS properties used to find transition events that
20989
- // might affect dimensions of observed elements.
20990
- var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
20991
- // Check if MutationObserver is available.
20992
- var mutationObserverSupported = typeof MutationObserver !== 'undefined';
20993
- /**
20994
- * Singleton controller class which handles updates of ResizeObserver instances.
20995
- */
20996
- var ResizeObserverController = /** @class */ (function () {
20997
- /**
20998
- * Creates a new instance of ResizeObserverController.
20999
- *
21000
- * @private
21001
- */
21002
- function ResizeObserverController() {
21003
- /**
21004
- * Indicates whether DOM listeners have been added.
21005
- *
21006
- * @private {boolean}
21007
- */
21008
- this.connected_ = false;
21009
- /**
21010
- * Tells that controller has subscribed for Mutation Events.
21011
- *
21012
- * @private {boolean}
21013
- */
21014
- this.mutationEventsAdded_ = false;
21015
- /**
21016
- * Keeps reference to the instance of MutationObserver.
21017
- *
21018
- * @private {MutationObserver}
21019
- */
21020
- this.mutationsObserver_ = null;
21021
- /**
21022
- * A list of connected observers.
21023
- *
21024
- * @private {Array<ResizeObserverSPI>}
21025
- */
21026
- this.observers_ = [];
21027
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
21028
- this.refresh = throttle$1(this.refresh.bind(this), REFRESH_DELAY);
21029
- }
21030
- /**
21031
- * Adds observer to observers list.
21032
- *
21033
- * @param {ResizeObserverSPI} observer - Observer to be added.
21034
- * @returns {void}
21035
- */
21036
- ResizeObserverController.prototype.addObserver = function (observer) {
21037
- if (!~this.observers_.indexOf(observer)) {
21038
- this.observers_.push(observer);
21039
- }
21040
- // Add listeners if they haven't been added yet.
21041
- if (!this.connected_) {
21042
- this.connect_();
21043
- }
21044
- };
21045
- /**
21046
- * Removes observer from observers list.
21047
- *
21048
- * @param {ResizeObserverSPI} observer - Observer to be removed.
21049
- * @returns {void}
21050
- */
21051
- ResizeObserverController.prototype.removeObserver = function (observer) {
21052
- var observers = this.observers_;
21053
- var index = observers.indexOf(observer);
21054
- // Remove observer if it's present in registry.
21055
- if (~index) {
21056
- observers.splice(index, 1);
21057
- }
21058
- // Remove listeners if controller has no connected observers.
21059
- if (!observers.length && this.connected_) {
21060
- this.disconnect_();
21061
- }
21062
- };
21063
- /**
21064
- * Invokes the update of observers. It will continue running updates insofar
21065
- * it detects changes.
21066
- *
21067
- * @returns {void}
21068
- */
21069
- ResizeObserverController.prototype.refresh = function () {
21070
- var changesDetected = this.updateObservers_();
21071
- // Continue running updates if changes have been detected as there might
21072
- // be future ones caused by CSS transitions.
21073
- if (changesDetected) {
21074
- this.refresh();
21075
- }
21076
- };
21077
- /**
21078
- * Updates every observer from observers list and notifies them of queued
21079
- * entries.
21080
- *
21081
- * @private
21082
- * @returns {boolean} Returns "true" if any observer has detected changes in
21083
- * dimensions of it's elements.
21084
- */
21085
- ResizeObserverController.prototype.updateObservers_ = function () {
21086
- // Collect observers that have active observations.
21087
- var activeObservers = this.observers_.filter(function (observer) {
21088
- return observer.gatherActive(), observer.hasActive();
21089
- });
21090
- // Deliver notifications in a separate cycle in order to avoid any
21091
- // collisions between observers, e.g. when multiple instances of
21092
- // ResizeObserver are tracking the same element and the callback of one
21093
- // of them changes content dimensions of the observed target. Sometimes
21094
- // this may result in notifications being blocked for the rest of observers.
21095
- activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
21096
- return activeObservers.length > 0;
21097
- };
21098
- /**
21099
- * Initializes DOM listeners.
21100
- *
21101
- * @private
21102
- * @returns {void}
21103
- */
21104
- ResizeObserverController.prototype.connect_ = function () {
21105
- // Do nothing if running in a non-browser environment or if listeners
21106
- // have been already added.
21107
- if (!isBrowser$3 || this.connected_) {
21108
- return;
21109
- }
21110
- // Subscription to the "Transitionend" event is used as a workaround for
21111
- // delayed transitions. This way it's possible to capture at least the
21112
- // final state of an element.
21113
- document.addEventListener('transitionend', this.onTransitionEnd_);
21114
- window.addEventListener('resize', this.refresh);
21115
- if (mutationObserverSupported) {
21116
- this.mutationsObserver_ = new MutationObserver(this.refresh);
21117
- this.mutationsObserver_.observe(document, {
21118
- attributes: true,
21119
- childList: true,
21120
- characterData: true,
21121
- subtree: true
21122
- });
21123
- }
21124
- else {
21125
- document.addEventListener('DOMSubtreeModified', this.refresh);
21126
- this.mutationEventsAdded_ = true;
21127
- }
21128
- this.connected_ = true;
21129
- };
21130
- /**
21131
- * Removes DOM listeners.
21132
- *
21133
- * @private
21134
- * @returns {void}
21135
- */
21136
- ResizeObserverController.prototype.disconnect_ = function () {
21137
- // Do nothing if running in a non-browser environment or if listeners
21138
- // have been already removed.
21139
- if (!isBrowser$3 || !this.connected_) {
21140
- return;
21141
- }
21142
- document.removeEventListener('transitionend', this.onTransitionEnd_);
21143
- window.removeEventListener('resize', this.refresh);
21144
- if (this.mutationsObserver_) {
21145
- this.mutationsObserver_.disconnect();
21146
- }
21147
- if (this.mutationEventsAdded_) {
21148
- document.removeEventListener('DOMSubtreeModified', this.refresh);
21149
- }
21150
- this.mutationsObserver_ = null;
21151
- this.mutationEventsAdded_ = false;
21152
- this.connected_ = false;
21153
- };
21154
- /**
21155
- * "Transitionend" event handler.
21156
- *
21157
- * @private
21158
- * @param {TransitionEvent} event
21159
- * @returns {void}
21160
- */
21161
- ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
21162
- var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
21163
- // Detect whether transition may affect dimensions of an element.
21164
- var isReflowProperty = transitionKeys.some(function (key) {
21165
- return !!~propertyName.indexOf(key);
21166
- });
21167
- if (isReflowProperty) {
21168
- this.refresh();
21169
- }
21170
- };
21171
- /**
21172
- * Returns instance of the ResizeObserverController.
21173
- *
21174
- * @returns {ResizeObserverController}
21175
- */
21176
- ResizeObserverController.getInstance = function () {
21177
- if (!this.instance_) {
21178
- this.instance_ = new ResizeObserverController();
21179
- }
21180
- return this.instance_;
21181
- };
21182
- /**
21183
- * Holds reference to the controller's instance.
21184
- *
21185
- * @private {ResizeObserverController}
21186
- */
21187
- ResizeObserverController.instance_ = null;
21188
- return ResizeObserverController;
21189
- }());
21190
-
21191
- /**
21192
- * Defines non-writable/enumerable properties of the provided target object.
21193
- *
21194
- * @param {Object} target - Object for which to define properties.
21195
- * @param {Object} props - Properties to be defined.
21196
- * @returns {Object} Target object.
21197
- */
21198
- var defineConfigurable = (function (target, props) {
21199
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
21200
- var key = _a[_i];
21201
- Object.defineProperty(target, key, {
21202
- value: props[key],
21203
- enumerable: false,
21204
- writable: false,
21205
- configurable: true
21206
- });
21207
- }
21208
- return target;
21209
- });
21210
-
21211
- /**
21212
- * Returns the global object associated with provided element.
21213
- *
21214
- * @param {Object} target
21215
- * @returns {Object}
21216
- */
21217
- var getWindowOf = (function (target) {
21218
- // Assume that the element is an instance of Node, which means that it
21219
- // has the "ownerDocument" property from which we can retrieve a
21220
- // corresponding global object.
21221
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
21222
- // Return the local global object if it's not possible extract one from
21223
- // provided element.
21224
- return ownerGlobal || global$1;
21225
- });
21226
-
21227
- // Placeholder of an empty content rectangle.
21228
- var emptyRect = createRectInit(0, 0, 0, 0);
21229
- /**
21230
- * Converts provided string to a number.
21231
- *
21232
- * @param {number|string} value
21233
- * @returns {number}
21234
- */
21235
- function toFloat(value) {
21236
- return parseFloat(value) || 0;
21237
- }
21238
- /**
21239
- * Extracts borders size from provided styles.
21240
- *
21241
- * @param {CSSStyleDeclaration} styles
21242
- * @param {...string} positions - Borders positions (top, right, ...)
21243
- * @returns {number}
21244
- */
21245
- function getBordersSize(styles) {
21246
- var positions = [];
21247
- for (var _i = 1; _i < arguments.length; _i++) {
21248
- positions[_i - 1] = arguments[_i];
21249
- }
21250
- return positions.reduce(function (size, position) {
21251
- var value = styles['border-' + position + '-width'];
21252
- return size + toFloat(value);
21253
- }, 0);
21254
- }
21255
- /**
21256
- * Extracts paddings sizes from provided styles.
21257
- *
21258
- * @param {CSSStyleDeclaration} styles
21259
- * @returns {Object} Paddings box.
21260
- */
21261
- function getPaddings(styles) {
21262
- var positions = ['top', 'right', 'bottom', 'left'];
21263
- var paddings = {};
21264
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
21265
- var position = positions_1[_i];
21266
- var value = styles['padding-' + position];
21267
- paddings[position] = toFloat(value);
21268
- }
21269
- return paddings;
21270
- }
21271
- /**
21272
- * Calculates content rectangle of provided SVG element.
21273
- *
21274
- * @param {SVGGraphicsElement} target - Element content rectangle of which needs
21275
- * to be calculated.
21276
- * @returns {DOMRectInit}
21277
- */
21278
- function getSVGContentRect(target) {
21279
- var bbox = target.getBBox();
21280
- return createRectInit(0, 0, bbox.width, bbox.height);
21281
- }
21282
- /**
21283
- * Calculates content rectangle of provided HTMLElement.
21284
- *
21285
- * @param {HTMLElement} target - Element for which to calculate the content rectangle.
21286
- * @returns {DOMRectInit}
21287
- */
21288
- function getHTMLElementContentRect(target) {
21289
- // Client width & height properties can't be
21290
- // used exclusively as they provide rounded values.
21291
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
21292
- // By this condition we can catch all non-replaced inline, hidden and
21293
- // detached elements. Though elements with width & height properties less
21294
- // than 0.5 will be discarded as well.
21295
- //
21296
- // Without it we would need to implement separate methods for each of
21297
- // those cases and it's not possible to perform a precise and performance
21298
- // effective test for hidden elements. E.g. even jQuery's ':visible' filter
21299
- // gives wrong results for elements with width & height less than 0.5.
21300
- if (!clientWidth && !clientHeight) {
21301
- return emptyRect;
21302
- }
21303
- var styles = getWindowOf(target).getComputedStyle(target);
21304
- var paddings = getPaddings(styles);
21305
- var horizPad = paddings.left + paddings.right;
21306
- var vertPad = paddings.top + paddings.bottom;
21307
- // Computed styles of width & height are being used because they are the
21308
- // only dimensions available to JS that contain non-rounded values. It could
21309
- // be possible to utilize the getBoundingClientRect if only it's data wasn't
21310
- // affected by CSS transformations let alone paddings, borders and scroll bars.
21311
- var width = toFloat(styles.width), height = toFloat(styles.height);
21312
- // Width & height include paddings and borders when the 'border-box' box
21313
- // model is applied (except for IE).
21314
- if (styles.boxSizing === 'border-box') {
21315
- // Following conditions are required to handle Internet Explorer which
21316
- // doesn't include paddings and borders to computed CSS dimensions.
21317
- //
21318
- // We can say that if CSS dimensions + paddings are equal to the "client"
21319
- // properties then it's either IE, and thus we don't need to subtract
21320
- // anything, or an element merely doesn't have paddings/borders styles.
21321
- if (Math.round(width + horizPad) !== clientWidth) {
21322
- width -= getBordersSize(styles, 'left', 'right') + horizPad;
21323
- }
21324
- if (Math.round(height + vertPad) !== clientHeight) {
21325
- height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
21326
- }
21327
- }
21328
- // Following steps can't be applied to the document's root element as its
21329
- // client[Width/Height] properties represent viewport area of the window.
21330
- // Besides, it's as well not necessary as the <html> itself neither has
21331
- // rendered scroll bars nor it can be clipped.
21332
- if (!isDocumentElement$1(target)) {
21333
- // In some browsers (only in Firefox, actually) CSS width & height
21334
- // include scroll bars size which can be removed at this step as scroll
21335
- // bars are the only difference between rounded dimensions + paddings
21336
- // and "client" properties, though that is not always true in Chrome.
21337
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
21338
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
21339
- // Chrome has a rather weird rounding of "client" properties.
21340
- // E.g. for an element with content width of 314.2px it sometimes gives
21341
- // the client width of 315px and for the width of 314.7px it may give
21342
- // 314px. And it doesn't happen all the time. So just ignore this delta
21343
- // as a non-relevant.
21344
- if (Math.abs(vertScrollbar) !== 1) {
21345
- width -= vertScrollbar;
21346
- }
21347
- if (Math.abs(horizScrollbar) !== 1) {
21348
- height -= horizScrollbar;
21349
- }
21350
- }
21351
- return createRectInit(paddings.left, paddings.top, width, height);
21352
- }
21353
- /**
21354
- * Checks whether provided element is an instance of the SVGGraphicsElement.
21355
- *
21356
- * @param {Element} target - Element to be checked.
21357
- * @returns {boolean}
21358
- */
21359
- var isSVGGraphicsElement = (function () {
21360
- // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
21361
- // interface.
21362
- if (typeof SVGGraphicsElement !== 'undefined') {
21363
- return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
21364
- }
21365
- // If it's so, then check that element is at least an instance of the
21366
- // SVGElement and that it has the "getBBox" method.
21367
- // eslint-disable-next-line no-extra-parens
21368
- return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
21369
- typeof target.getBBox === 'function'); };
21370
- })();
21371
- /**
21372
- * Checks whether provided element is a document element (<html>).
21373
- *
21374
- * @param {Element} target - Element to be checked.
21375
- * @returns {boolean}
21376
- */
21377
- function isDocumentElement$1(target) {
21378
- return target === getWindowOf(target).document.documentElement;
21379
- }
21380
- /**
21381
- * Calculates an appropriate content rectangle for provided html or svg element.
21382
- *
21383
- * @param {Element} target - Element content rectangle of which needs to be calculated.
21384
- * @returns {DOMRectInit}
21385
- */
21386
- function getContentRect(target) {
21387
- if (!isBrowser$3) {
21388
- return emptyRect;
21389
- }
21390
- if (isSVGGraphicsElement(target)) {
21391
- return getSVGContentRect(target);
21392
- }
21393
- return getHTMLElementContentRect(target);
21394
- }
21395
- /**
21396
- * Creates rectangle with an interface of the DOMRectReadOnly.
21397
- * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
21398
- *
21399
- * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
21400
- * @returns {DOMRectReadOnly}
21401
- */
21402
- function createReadOnlyRect(_a) {
21403
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
21404
- // If DOMRectReadOnly is available use it as a prototype for the rectangle.
21405
- var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
21406
- var rect = Object.create(Constr.prototype);
21407
- // Rectangle's properties are not writable and non-enumerable.
21408
- defineConfigurable(rect, {
21409
- x: x, y: y, width: width, height: height,
21410
- top: y,
21411
- right: x + width,
21412
- bottom: height + y,
21413
- left: x
21414
- });
21415
- return rect;
21416
- }
21417
- /**
21418
- * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
21419
- * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
21420
- *
21421
- * @param {number} x - X coordinate.
21422
- * @param {number} y - Y coordinate.
21423
- * @param {number} width - Rectangle's width.
21424
- * @param {number} height - Rectangle's height.
21425
- * @returns {DOMRectInit}
21426
- */
21427
- function createRectInit(x, y, width, height) {
21428
- return { x: x, y: y, width: width, height: height };
21429
- }
21430
-
21431
- /**
21432
- * Class that is responsible for computations of the content rectangle of
21433
- * provided DOM element and for keeping track of it's changes.
21434
- */
21435
- var ResizeObservation = /** @class */ (function () {
21436
- /**
21437
- * Creates an instance of ResizeObservation.
21438
- *
21439
- * @param {Element} target - Element to be observed.
21440
- */
21441
- function ResizeObservation(target) {
21442
- /**
21443
- * Broadcasted width of content rectangle.
21444
- *
21445
- * @type {number}
21446
- */
21447
- this.broadcastWidth = 0;
21448
- /**
21449
- * Broadcasted height of content rectangle.
21450
- *
21451
- * @type {number}
21452
- */
21453
- this.broadcastHeight = 0;
21454
- /**
21455
- * Reference to the last observed content rectangle.
21456
- *
21457
- * @private {DOMRectInit}
21458
- */
21459
- this.contentRect_ = createRectInit(0, 0, 0, 0);
21460
- this.target = target;
21461
- }
21462
- /**
21463
- * Updates content rectangle and tells whether it's width or height properties
21464
- * have changed since the last broadcast.
21465
- *
21466
- * @returns {boolean}
21467
- */
21468
- ResizeObservation.prototype.isActive = function () {
21469
- var rect = getContentRect(this.target);
21470
- this.contentRect_ = rect;
21471
- return (rect.width !== this.broadcastWidth ||
21472
- rect.height !== this.broadcastHeight);
21473
- };
21474
- /**
21475
- * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
21476
- * from the corresponding properties of the last observed content rectangle.
21477
- *
21478
- * @returns {DOMRectInit} Last observed content rectangle.
21479
- */
21480
- ResizeObservation.prototype.broadcastRect = function () {
21481
- var rect = this.contentRect_;
21482
- this.broadcastWidth = rect.width;
21483
- this.broadcastHeight = rect.height;
21484
- return rect;
21485
- };
21486
- return ResizeObservation;
21487
- }());
21488
-
21489
- var ResizeObserverEntry = /** @class */ (function () {
21490
- /**
21491
- * Creates an instance of ResizeObserverEntry.
21492
- *
21493
- * @param {Element} target - Element that is being observed.
21494
- * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
21495
- */
21496
- function ResizeObserverEntry(target, rectInit) {
21497
- var contentRect = createReadOnlyRect(rectInit);
21498
- // According to the specification following properties are not writable
21499
- // and are also not enumerable in the native implementation.
21500
- //
21501
- // Property accessors are not being used as they'd require to define a
21502
- // private WeakMap storage which may cause memory leaks in browsers that
21503
- // don't support this type of collections.
21504
- defineConfigurable(this, { target: target, contentRect: contentRect });
21505
- }
21506
- return ResizeObserverEntry;
21507
- }());
21508
-
21509
- var ResizeObserverSPI = /** @class */ (function () {
21510
- /**
21511
- * Creates a new instance of ResizeObserver.
21512
- *
21513
- * @param {ResizeObserverCallback} callback - Callback function that is invoked
21514
- * when one of the observed elements changes it's content dimensions.
21515
- * @param {ResizeObserverController} controller - Controller instance which
21516
- * is responsible for the updates of observer.
21517
- * @param {ResizeObserver} callbackCtx - Reference to the public
21518
- * ResizeObserver instance which will be passed to callback function.
21519
- */
21520
- function ResizeObserverSPI(callback, controller, callbackCtx) {
21521
- /**
21522
- * Collection of resize observations that have detected changes in dimensions
21523
- * of elements.
21524
- *
21525
- * @private {Array<ResizeObservation>}
21526
- */
21527
- this.activeObservations_ = [];
21528
- /**
21529
- * Registry of the ResizeObservation instances.
21530
- *
21531
- * @private {Map<Element, ResizeObservation>}
21532
- */
21533
- this.observations_ = new MapShim();
21534
- if (typeof callback !== 'function') {
21535
- throw new TypeError('The callback provided as parameter 1 is not a function.');
21536
- }
21537
- this.callback_ = callback;
21538
- this.controller_ = controller;
21539
- this.callbackCtx_ = callbackCtx;
21540
- }
21541
- /**
21542
- * Starts observing provided element.
21543
- *
21544
- * @param {Element} target - Element to be observed.
21545
- * @returns {void}
21546
- */
21547
- ResizeObserverSPI.prototype.observe = function (target) {
21548
- if (!arguments.length) {
21549
- throw new TypeError('1 argument required, but only 0 present.');
21550
- }
21551
- // Do nothing if current environment doesn't have the Element interface.
21552
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
21553
- return;
21554
- }
21555
- if (!(target instanceof getWindowOf(target).Element)) {
21556
- throw new TypeError('parameter 1 is not of type "Element".');
21557
- }
21558
- var observations = this.observations_;
21559
- // Do nothing if element is already being observed.
21560
- if (observations.has(target)) {
21561
- return;
21562
- }
21563
- observations.set(target, new ResizeObservation(target));
21564
- this.controller_.addObserver(this);
21565
- // Force the update of observations.
21566
- this.controller_.refresh();
21567
- };
21568
- /**
21569
- * Stops observing provided element.
21570
- *
21571
- * @param {Element} target - Element to stop observing.
21572
- * @returns {void}
21573
- */
21574
- ResizeObserverSPI.prototype.unobserve = function (target) {
21575
- if (!arguments.length) {
21576
- throw new TypeError('1 argument required, but only 0 present.');
21577
- }
21578
- // Do nothing if current environment doesn't have the Element interface.
21579
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
21580
- return;
21581
- }
21582
- if (!(target instanceof getWindowOf(target).Element)) {
21583
- throw new TypeError('parameter 1 is not of type "Element".');
21584
- }
21585
- var observations = this.observations_;
21586
- // Do nothing if element is not being observed.
21587
- if (!observations.has(target)) {
21588
- return;
21589
- }
21590
- observations.delete(target);
21591
- if (!observations.size) {
21592
- this.controller_.removeObserver(this);
21593
- }
21594
- };
21595
- /**
21596
- * Stops observing all elements.
21597
- *
21598
- * @returns {void}
21599
- */
21600
- ResizeObserverSPI.prototype.disconnect = function () {
21601
- this.clearActive();
21602
- this.observations_.clear();
21603
- this.controller_.removeObserver(this);
21604
- };
21605
- /**
21606
- * Collects observation instances the associated element of which has changed
21607
- * it's content rectangle.
21608
- *
21609
- * @returns {void}
21610
- */
21611
- ResizeObserverSPI.prototype.gatherActive = function () {
21612
- var _this = this;
21613
- this.clearActive();
21614
- this.observations_.forEach(function (observation) {
21615
- if (observation.isActive()) {
21616
- _this.activeObservations_.push(observation);
21617
- }
21618
- });
21619
- };
21620
- /**
21621
- * Invokes initial callback function with a list of ResizeObserverEntry
21622
- * instances collected from active resize observations.
21623
- *
21624
- * @returns {void}
21625
- */
21626
- ResizeObserverSPI.prototype.broadcastActive = function () {
21627
- // Do nothing if observer doesn't have active observations.
21628
- if (!this.hasActive()) {
21629
- return;
21630
- }
21631
- var ctx = this.callbackCtx_;
21632
- // Create ResizeObserverEntry instance for every active observation.
21633
- var entries = this.activeObservations_.map(function (observation) {
21634
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
21635
- });
21636
- this.callback_.call(ctx, entries, ctx);
21637
- this.clearActive();
21638
- };
21639
- /**
21640
- * Clears the collection of active observations.
21641
- *
21642
- * @returns {void}
21643
- */
21644
- ResizeObserverSPI.prototype.clearActive = function () {
21645
- this.activeObservations_.splice(0);
21646
- };
21647
- /**
21648
- * Tells whether observer has active observations.
21649
- *
21650
- * @returns {boolean}
21651
- */
21652
- ResizeObserverSPI.prototype.hasActive = function () {
21653
- return this.activeObservations_.length > 0;
21654
- };
21655
- return ResizeObserverSPI;
21656
- }());
21657
-
21658
- // Registry of internal observers. If WeakMap is not available use current shim
21659
- // for the Map collection as it has all required methods and because WeakMap
21660
- // can't be fully polyfilled anyway.
21661
- var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
21662
- /**
21663
- * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
21664
- * exposing only those methods and properties that are defined in the spec.
21665
- */
21666
- var ResizeObserver = /** @class */ (function () {
21667
- /**
21668
- * Creates a new instance of ResizeObserver.
21669
- *
21670
- * @param {ResizeObserverCallback} callback - Callback that is invoked when
21671
- * dimensions of the observed elements change.
21672
- */
21673
- function ResizeObserver(callback) {
21674
- if (!(this instanceof ResizeObserver)) {
21675
- throw new TypeError('Cannot call a class as a function.');
21676
- }
21677
- if (!arguments.length) {
21678
- throw new TypeError('1 argument required, but only 0 present.');
21679
- }
21680
- var controller = ResizeObserverController.getInstance();
21681
- var observer = new ResizeObserverSPI(callback, controller, this);
21682
- observers.set(this, observer);
21683
- }
21684
- return ResizeObserver;
21685
- }());
21686
- // Expose public methods of ResizeObserver.
21687
- [
21688
- 'observe',
21689
- 'unobserve',
21690
- 'disconnect'
21691
- ].forEach(function (method) {
21692
- ResizeObserver.prototype[method] = function () {
21693
- var _a;
21694
- return (_a = observers.get(this))[method].apply(_a, arguments);
21695
- };
21696
- });
21697
-
21698
- var index = (function () {
21699
- // Export existing implementation if available.
21700
- if (typeof global$1.ResizeObserver !== 'undefined') {
21701
- return global$1.ResizeObserver;
21702
- }
21703
- return ResizeObserver;
21704
- })();
21705
-
21706
- var rafSchd = function rafSchd(fn) {
21707
- var lastArgs = [];
21708
- var frameId = null;
21709
-
21710
- var wrapperFn = function wrapperFn() {
21711
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
21712
- args[_key] = arguments[_key];
21713
- }
21714
-
21715
- lastArgs = args;
21716
-
21717
- if (frameId) {
21718
- return;
21719
- }
21720
-
21721
- frameId = requestAnimationFrame(function () {
21722
- frameId = null;
21723
- fn.apply(void 0, lastArgs);
21724
- });
21725
- };
21726
-
21727
- wrapperFn.cancel = function () {
21728
- if (!frameId) {
21729
- return;
21730
- }
21731
-
21732
- cancelAnimationFrame(frameId);
21733
- frameId = null;
21734
- };
21735
-
21736
- return wrapperFn;
21737
- };
21738
-
21739
- /**
21740
- * Checks if `value` is the
21741
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
21742
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
21743
- *
21744
- * @static
21745
- * @memberOf _
21746
- * @since 0.1.0
21747
- * @category Lang
21748
- * @param {*} value The value to check.
21749
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
21750
- * @example
21751
- *
21752
- * _.isObject({});
21753
- * // => true
21754
- *
21755
- * _.isObject([1, 2, 3]);
21756
- * // => true
21757
- *
21758
- * _.isObject(_.noop);
21759
- * // => true
21760
- *
21761
- * _.isObject(null);
21762
- * // => false
21763
- */
21764
- function isObject(value) {
21765
- var type = typeof value;
21766
- return value != null && (type == 'object' || type == 'function');
21767
- }
21768
-
21769
- /** Detect free variable `global` from Node.js. */
21770
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
21771
-
21772
- /** Detect free variable `self`. */
21773
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
21774
-
21775
- /** Used as a reference to the global object. */
21776
- var root = freeGlobal || freeSelf || Function('return this')();
21777
-
21778
- /**
21779
- * Gets the timestamp of the number of milliseconds that have elapsed since
21780
- * the Unix epoch (1 January 1970 00:00:00 UTC).
21781
- *
21782
- * @static
21783
- * @memberOf _
21784
- * @since 2.4.0
21785
- * @category Date
21786
- * @returns {number} Returns the timestamp.
21787
- * @example
21788
- *
21789
- * _.defer(function(stamp) {
21790
- * console.log(_.now() - stamp);
21791
- * }, _.now());
21792
- * // => Logs the number of milliseconds it took for the deferred invocation.
21793
- */
21794
- var now = function() {
21795
- return root.Date.now();
21796
- };
21797
-
21798
- /** Used to match a single whitespace character. */
21799
- var reWhitespace = /\s/;
21800
-
21801
- /**
21802
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
21803
- * character of `string`.
21804
- *
21805
- * @private
21806
- * @param {string} string The string to inspect.
21807
- * @returns {number} Returns the index of the last non-whitespace character.
21808
- */
21809
- function trimmedEndIndex(string) {
21810
- var index = string.length;
21811
-
21812
- while (index-- && reWhitespace.test(string.charAt(index))) {}
21813
- return index;
21814
- }
21815
-
21816
- /** Used to match leading whitespace. */
21817
- var reTrimStart = /^\s+/;
21818
-
21819
- /**
21820
- * The base implementation of `_.trim`.
21821
- *
21822
- * @private
21823
- * @param {string} string The string to trim.
21824
- * @returns {string} Returns the trimmed string.
21825
- */
21826
- function baseTrim(string) {
21827
- return string
21828
- ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
21829
- : string;
21830
- }
21831
-
21832
- /** Built-in value references. */
21833
- var Symbol$1 = root.Symbol;
21834
-
21835
- /** Used for built-in method references. */
21836
- var objectProto$1 = Object.prototype;
21837
-
21838
- /** Used to check objects for own properties. */
21839
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
21840
-
21841
- /**
21842
- * Used to resolve the
21843
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
21844
- * of values.
21845
- */
21846
- var nativeObjectToString$1 = objectProto$1.toString;
21847
-
21848
- /** Built-in value references. */
21849
- var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
21850
-
21851
- /**
21852
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
21853
- *
21854
- * @private
21855
- * @param {*} value The value to query.
21856
- * @returns {string} Returns the raw `toStringTag`.
21857
- */
21858
- function getRawTag(value) {
21859
- var isOwn = hasOwnProperty$1.call(value, symToStringTag$1),
21860
- tag = value[symToStringTag$1];
21861
-
21862
- try {
21863
- value[symToStringTag$1] = undefined;
21864
- var unmasked = true;
21865
- } catch (e) {}
21866
-
21867
- var result = nativeObjectToString$1.call(value);
21868
- if (unmasked) {
21869
- if (isOwn) {
21870
- value[symToStringTag$1] = tag;
21871
- } else {
21872
- delete value[symToStringTag$1];
21873
- }
21874
- }
21875
- return result;
21876
- }
21877
-
21878
- /** Used for built-in method references. */
21879
- var objectProto = Object.prototype;
21880
-
21881
- /**
21882
- * Used to resolve the
21883
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
21884
- * of values.
21885
- */
21886
- var nativeObjectToString = objectProto.toString;
21887
-
21888
- /**
21889
- * Converts `value` to a string using `Object.prototype.toString`.
21890
- *
21891
- * @private
21892
- * @param {*} value The value to convert.
21893
- * @returns {string} Returns the converted string.
21894
- */
21895
- function objectToString(value) {
21896
- return nativeObjectToString.call(value);
21897
- }
21898
-
21899
- /** `Object#toString` result references. */
21900
- var nullTag = '[object Null]',
21901
- undefinedTag = '[object Undefined]';
21902
-
21903
- /** Built-in value references. */
21904
- var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
21905
-
21906
- /**
21907
- * The base implementation of `getTag` without fallbacks for buggy environments.
21908
- *
21909
- * @private
21910
- * @param {*} value The value to query.
21911
- * @returns {string} Returns the `toStringTag`.
21912
- */
21913
- function baseGetTag(value) {
21914
- if (value == null) {
21915
- return value === undefined ? undefinedTag : nullTag;
21916
- }
21917
- return (symToStringTag && symToStringTag in Object(value))
21918
- ? getRawTag(value)
21919
- : objectToString(value);
21920
- }
21921
-
21922
- /**
21923
- * Checks if `value` is object-like. A value is object-like if it's not `null`
21924
- * and has a `typeof` result of "object".
21925
- *
21926
- * @static
21927
- * @memberOf _
21928
- * @since 4.0.0
21929
- * @category Lang
21930
- * @param {*} value The value to check.
21931
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
21932
- * @example
21933
- *
21934
- * _.isObjectLike({});
21935
- * // => true
21936
- *
21937
- * _.isObjectLike([1, 2, 3]);
21938
- * // => true
21939
- *
21940
- * _.isObjectLike(_.noop);
21941
- * // => false
21942
- *
21943
- * _.isObjectLike(null);
21944
- * // => false
21945
- */
21946
- function isObjectLike(value) {
21947
- return value != null && typeof value == 'object';
21948
- }
21949
-
21950
- /** `Object#toString` result references. */
21951
- var symbolTag = '[object Symbol]';
21952
-
21953
- /**
21954
- * Checks if `value` is classified as a `Symbol` primitive or object.
21955
- *
21956
- * @static
21957
- * @memberOf _
21958
- * @since 4.0.0
21959
- * @category Lang
21960
- * @param {*} value The value to check.
21961
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
21962
- * @example
21963
- *
21964
- * _.isSymbol(Symbol.iterator);
21965
- * // => true
21966
- *
21967
- * _.isSymbol('abc');
21968
- * // => false
21969
- */
21970
- function isSymbol(value) {
21971
- return typeof value == 'symbol' ||
21972
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
21973
- }
21974
-
21975
- /** Used as references for various `Number` constants. */
21976
- var NAN = 0 / 0;
21977
-
21978
- /** Used to detect bad signed hexadecimal string values. */
21979
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
21980
-
21981
- /** Used to detect binary string values. */
21982
- var reIsBinary = /^0b[01]+$/i;
21983
-
21984
- /** Used to detect octal string values. */
21985
- var reIsOctal = /^0o[0-7]+$/i;
21986
-
21987
- /** Built-in method references without a dependency on `root`. */
21988
- var freeParseInt = parseInt;
21989
-
21990
- /**
21991
- * Converts `value` to a number.
21992
- *
21993
- * @static
21994
- * @memberOf _
21995
- * @since 4.0.0
21996
- * @category Lang
21997
- * @param {*} value The value to process.
21998
- * @returns {number} Returns the number.
21999
- * @example
22000
- *
22001
- * _.toNumber(3.2);
22002
- * // => 3.2
22003
- *
22004
- * _.toNumber(Number.MIN_VALUE);
22005
- * // => 5e-324
22006
- *
22007
- * _.toNumber(Infinity);
22008
- * // => Infinity
22009
- *
22010
- * _.toNumber('3.2');
22011
- * // => 3.2
22012
- */
22013
- function toNumber(value) {
22014
- if (typeof value == 'number') {
22015
- return value;
22016
- }
22017
- if (isSymbol(value)) {
22018
- return NAN;
22019
- }
22020
- if (isObject(value)) {
22021
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
22022
- value = isObject(other) ? (other + '') : other;
22023
- }
22024
- if (typeof value != 'string') {
22025
- return value === 0 ? value : +value;
22026
- }
22027
- value = baseTrim(value);
22028
- var isBinary = reIsBinary.test(value);
22029
- return (isBinary || reIsOctal.test(value))
22030
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
22031
- : (reIsBadHex.test(value) ? NAN : +value);
22032
- }
22033
-
22034
- /** Error message constants. */
22035
- var FUNC_ERROR_TEXT$1 = 'Expected a function';
22036
-
22037
- /* Built-in method references for those with the same name as other `lodash` methods. */
22038
- var nativeMax = Math.max,
22039
- nativeMin = Math.min;
22040
-
22041
- /**
22042
- * Creates a debounced function that delays invoking `func` until after `wait`
22043
- * milliseconds have elapsed since the last time the debounced function was
22044
- * invoked. The debounced function comes with a `cancel` method to cancel
22045
- * delayed `func` invocations and a `flush` method to immediately invoke them.
22046
- * Provide `options` to indicate whether `func` should be invoked on the
22047
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
22048
- * with the last arguments provided to the debounced function. Subsequent
22049
- * calls to the debounced function return the result of the last `func`
22050
- * invocation.
22051
- *
22052
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
22053
- * invoked on the trailing edge of the timeout only if the debounced function
22054
- * is invoked more than once during the `wait` timeout.
22055
- *
22056
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
22057
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
22058
- *
22059
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
22060
- * for details over the differences between `_.debounce` and `_.throttle`.
22061
- *
22062
- * @static
22063
- * @memberOf _
22064
- * @since 0.1.0
22065
- * @category Function
22066
- * @param {Function} func The function to debounce.
22067
- * @param {number} [wait=0] The number of milliseconds to delay.
22068
- * @param {Object} [options={}] The options object.
22069
- * @param {boolean} [options.leading=false]
22070
- * Specify invoking on the leading edge of the timeout.
22071
- * @param {number} [options.maxWait]
22072
- * The maximum time `func` is allowed to be delayed before it's invoked.
22073
- * @param {boolean} [options.trailing=true]
22074
- * Specify invoking on the trailing edge of the timeout.
22075
- * @returns {Function} Returns the new debounced function.
22076
- * @example
22077
- *
22078
- * // Avoid costly calculations while the window size is in flux.
22079
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
22080
- *
22081
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
22082
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
22083
- * 'leading': true,
22084
- * 'trailing': false
22085
- * }));
22086
- *
22087
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
22088
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
22089
- * var source = new EventSource('/stream');
22090
- * jQuery(source).on('message', debounced);
22091
- *
22092
- * // Cancel the trailing debounced invocation.
22093
- * jQuery(window).on('popstate', debounced.cancel);
22094
- */
22095
- function debounce$1(func, wait, options) {
22096
- var lastArgs,
22097
- lastThis,
22098
- maxWait,
22099
- result,
22100
- timerId,
22101
- lastCallTime,
22102
- lastInvokeTime = 0,
22103
- leading = false,
22104
- maxing = false,
22105
- trailing = true;
22106
-
22107
- if (typeof func != 'function') {
22108
- throw new TypeError(FUNC_ERROR_TEXT$1);
22109
- }
22110
- wait = toNumber(wait) || 0;
22111
- if (isObject(options)) {
22112
- leading = !!options.leading;
22113
- maxing = 'maxWait' in options;
22114
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
22115
- trailing = 'trailing' in options ? !!options.trailing : trailing;
22116
- }
22117
-
22118
- function invokeFunc(time) {
22119
- var args = lastArgs,
22120
- thisArg = lastThis;
22121
-
22122
- lastArgs = lastThis = undefined;
22123
- lastInvokeTime = time;
22124
- result = func.apply(thisArg, args);
22125
- return result;
22126
- }
22127
-
22128
- function leadingEdge(time) {
22129
- // Reset any `maxWait` timer.
22130
- lastInvokeTime = time;
22131
- // Start the timer for the trailing edge.
22132
- timerId = setTimeout(timerExpired, wait);
22133
- // Invoke the leading edge.
22134
- return leading ? invokeFunc(time) : result;
22135
- }
22136
-
22137
- function remainingWait(time) {
22138
- var timeSinceLastCall = time - lastCallTime,
22139
- timeSinceLastInvoke = time - lastInvokeTime,
22140
- timeWaiting = wait - timeSinceLastCall;
22141
-
22142
- return maxing
22143
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
22144
- : timeWaiting;
22145
- }
22146
-
22147
- function shouldInvoke(time) {
22148
- var timeSinceLastCall = time - lastCallTime,
22149
- timeSinceLastInvoke = time - lastInvokeTime;
22150
-
22151
- // Either this is the first call, activity has stopped and we're at the
22152
- // trailing edge, the system time has gone backwards and we're treating
22153
- // it as the trailing edge, or we've hit the `maxWait` limit.
22154
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
22155
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
22156
- }
22157
-
22158
- function timerExpired() {
22159
- var time = now();
22160
- if (shouldInvoke(time)) {
22161
- return trailingEdge(time);
22162
- }
22163
- // Restart the timer.
22164
- timerId = setTimeout(timerExpired, remainingWait(time));
22165
- }
22166
-
22167
- function trailingEdge(time) {
22168
- timerId = undefined;
22169
-
22170
- // Only invoke if we have `lastArgs` which means `func` has been
22171
- // debounced at least once.
22172
- if (trailing && lastArgs) {
22173
- return invokeFunc(time);
22174
- }
22175
- lastArgs = lastThis = undefined;
22176
- return result;
22177
- }
22178
-
22179
- function cancel() {
22180
- if (timerId !== undefined) {
22181
- clearTimeout(timerId);
22182
- }
22183
- lastInvokeTime = 0;
22184
- lastArgs = lastCallTime = lastThis = timerId = undefined;
22185
- }
22186
-
22187
- function flush() {
22188
- return timerId === undefined ? result : trailingEdge(now());
22189
- }
22190
-
22191
- function debounced() {
22192
- var time = now(),
22193
- isInvoking = shouldInvoke(time);
22194
-
22195
- lastArgs = arguments;
22196
- lastThis = this;
22197
- lastCallTime = time;
22198
-
22199
- if (isInvoking) {
22200
- if (timerId === undefined) {
22201
- return leadingEdge(lastCallTime);
22202
- }
22203
- if (maxing) {
22204
- // Handle invocations in a tight loop.
22205
- clearTimeout(timerId);
22206
- timerId = setTimeout(timerExpired, wait);
22207
- return invokeFunc(lastCallTime);
22208
- }
22209
- }
22210
- if (timerId === undefined) {
22211
- timerId = setTimeout(timerExpired, wait);
22212
- }
22213
- return result;
22214
- }
22215
- debounced.cancel = cancel;
22216
- debounced.flush = flush;
22217
- return debounced;
22218
- }
22219
-
22220
- /** Error message constants. */
22221
- var FUNC_ERROR_TEXT = 'Expected a function';
22222
-
22223
- /**
22224
- * Creates a throttled function that only invokes `func` at most once per
22225
- * every `wait` milliseconds. The throttled function comes with a `cancel`
22226
- * method to cancel delayed `func` invocations and a `flush` method to
22227
- * immediately invoke them. Provide `options` to indicate whether `func`
22228
- * should be invoked on the leading and/or trailing edge of the `wait`
22229
- * timeout. The `func` is invoked with the last arguments provided to the
22230
- * throttled function. Subsequent calls to the throttled function return the
22231
- * result of the last `func` invocation.
22232
- *
22233
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
22234
- * invoked on the trailing edge of the timeout only if the throttled function
22235
- * is invoked more than once during the `wait` timeout.
22236
- *
22237
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
22238
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
22239
- *
22240
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
22241
- * for details over the differences between `_.throttle` and `_.debounce`.
22242
- *
22243
- * @static
22244
- * @memberOf _
22245
- * @since 0.1.0
22246
- * @category Function
22247
- * @param {Function} func The function to throttle.
22248
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
22249
- * @param {Object} [options={}] The options object.
22250
- * @param {boolean} [options.leading=true]
22251
- * Specify invoking on the leading edge of the timeout.
22252
- * @param {boolean} [options.trailing=true]
22253
- * Specify invoking on the trailing edge of the timeout.
22254
- * @returns {Function} Returns the new throttled function.
22255
- * @example
22256
- *
22257
- * // Avoid excessively updating the position while scrolling.
22258
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
22259
- *
22260
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
22261
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
22262
- * jQuery(element).on('click', throttled);
22263
- *
22264
- * // Cancel the trailing throttled invocation.
22265
- * jQuery(window).on('popstate', throttled.cancel);
22266
- */
22267
- function throttle(func, wait, options) {
22268
- var leading = true,
22269
- trailing = true;
22270
-
22271
- if (typeof func != 'function') {
22272
- throw new TypeError(FUNC_ERROR_TEXT);
22273
- }
22274
- if (isObject(options)) {
22275
- leading = 'leading' in options ? !!options.leading : leading;
22276
- trailing = 'trailing' in options ? !!options.trailing : trailing;
22277
- }
22278
- return debounce$1(func, wait, {
22279
- 'leading': leading,
22280
- 'maxWait': wait,
22281
- 'trailing': trailing
22282
- });
22283
- }
22284
-
22285
- var listHandle = {
22286
- debounce: debounce$1,
22287
- throttle: throttle
22288
- };
22289
- var getHandle = function getHandle(type) {
22290
- return listHandle[type];
22291
- };
22292
- var isFunction = function isFunction(fn) {
22293
- return typeof fn === 'function';
22294
- };
22295
- var isSSR = function isSSR() {
22296
- return typeof window === 'undefined';
22297
- };
22298
- var isDOMElement = function isDOMElement(element) {
22299
- return element instanceof Element || element instanceof HTMLDocument;
22300
- };
22301
-
22302
- function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
22303
-
22304
- function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22305
-
22306
- function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
22307
-
22308
- function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
22309
-
22310
- function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
22311
-
22312
- function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
22313
-
22314
- function _createSuper$7(Derived) { return function () { var Super = _getPrototypeOf$1(Derived), result; if (_isNativeReflectConstruct$7()) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
22315
-
22316
- function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$2(self); }
22317
-
22318
- function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
22319
-
22320
- function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
22321
-
22322
- function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
22323
-
22324
- var ChildWrapper = /*#__PURE__*/function (_PureComponent) {
22325
- _inherits$1(ChildWrapper, _PureComponent);
22326
-
22327
- var _super = _createSuper$7(ChildWrapper);
22328
-
22329
- function ChildWrapper() {
22330
- _classCallCheck$1(this, ChildWrapper);
22331
-
22332
- return _super.apply(this, arguments);
22333
- }
22334
-
22335
- _createClass$1(ChildWrapper, [{
22336
- key: "render",
22337
- value: function render() {
22338
- // eslint-disable-next-line react/prop-types
22339
- return this.props.children;
22340
- }
22341
- }]);
22342
-
22343
- return ChildWrapper;
22344
- }(React.PureComponent);
22345
-
22346
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
22347
-
22348
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22349
-
22350
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
22351
-
22352
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
22353
-
22354
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
22355
-
22356
- function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
22357
-
22358
- function _createSuper$6(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct$6()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
22359
-
22360
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$1(self); }
22361
-
22362
- function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
22363
-
22364
- function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
22365
-
22366
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22367
-
22368
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22369
-
22370
- var ResizeDetector = /*#__PURE__*/function (_PureComponent) {
22371
- _inherits(ResizeDetector, _PureComponent);
22372
-
22373
- var _super = _createSuper$6(ResizeDetector);
22374
-
22375
- function ResizeDetector(props) {
22376
- var _this;
22377
-
22378
- _classCallCheck(this, ResizeDetector);
22379
-
22380
- _this = _super.call(this, props);
22381
-
22382
- _defineProperty(_assertThisInitialized$1(_this), "cancelHandler", function () {
22383
- if (_this.resizeHandler && _this.resizeHandler.cancel) {
22384
- // cancel debounced handler
22385
- _this.resizeHandler.cancel();
22386
-
22387
- _this.resizeHandler = null;
22388
- }
22389
- });
22390
-
22391
- _defineProperty(_assertThisInitialized$1(_this), "rafClean", function () {
22392
- if (_this.raf && _this.raf.cancel) {
22393
- _this.raf.cancel();
22394
-
22395
- _this.raf = null;
22396
- }
22397
- });
22398
-
22399
- _defineProperty(_assertThisInitialized$1(_this), "toggleObserver", function (type) {
22400
- var element = _this.getElement();
22401
-
22402
- if (!element || !_this.resizeObserver[type]) return;
22403
-
22404
- _this.resizeObserver[type](element);
22405
- });
22406
-
22407
- _defineProperty(_assertThisInitialized$1(_this), "getElement", function () {
22408
- var _this$props = _this.props,
22409
- querySelector = _this$props.querySelector,
22410
- targetDomEl = _this$props.targetDomEl;
22411
- if (isSSR()) return undefined;
22412
- if (querySelector) return document.querySelector(querySelector);
22413
- if (targetDomEl && isDOMElement(targetDomEl)) return targetDomEl; // eslint-disable-next-line react/no-find-dom-node
22414
-
22415
- var currentElement = _this.element && reactDom.findDOMNode(_this.element);
22416
- if (!currentElement) return undefined;
22417
- return currentElement.parentElement;
22418
- });
22419
-
22420
- _defineProperty(_assertThisInitialized$1(_this), "createUpdater", function () {
22421
- _this.rafClean();
22422
-
22423
- _this.raf = rafSchd(function (_ref) {
22424
- var width = _ref.width,
22425
- height = _ref.height;
22426
- var onResize = _this.props.onResize;
22427
-
22428
- if (isFunction(onResize)) {
22429
- onResize(width, height);
22430
- }
22431
-
22432
- _this.setState({
22433
- width: width,
22434
- height: height
22435
- });
22436
- });
22437
- return _this.raf;
22438
- });
22439
-
22440
- _defineProperty(_assertThisInitialized$1(_this), "createResizeHandler", function (entries) {
22441
- var _this$state = _this.state,
22442
- widthCurrent = _this$state.width,
22443
- heightCurrent = _this$state.height;
22444
- var _this$props2 = _this.props,
22445
- handleWidth = _this$props2.handleWidth,
22446
- handleHeight = _this$props2.handleHeight;
22447
- if (!handleWidth && !handleHeight) return;
22448
-
22449
- var updater = _this.createUpdater();
22450
-
22451
- entries.forEach(function (entry) {
22452
- var _ref2 = entry && entry.contentRect || {},
22453
- width = _ref2.width,
22454
- height = _ref2.height;
22455
-
22456
- var isWidthChanged = handleWidth && widthCurrent !== width;
22457
- var isHeightChanged = handleHeight && heightCurrent !== height;
22458
- var isSizeChanged = isWidthChanged || isHeightChanged;
22459
- var shouldSetSize = !_this.skipOnMount && isSizeChanged && !isSSR();
22460
-
22461
- if (shouldSetSize) {
22462
- updater({
22463
- width: width,
22464
- height: height
22465
- });
22466
- }
22467
-
22468
- _this.skipOnMount = false;
22469
- });
22470
- });
22471
-
22472
- _defineProperty(_assertThisInitialized$1(_this), "onRef", function (el) {
22473
- _this.element = el;
22474
- });
22475
-
22476
- _defineProperty(_assertThisInitialized$1(_this), "getRenderType", function () {
22477
- var _this$props3 = _this.props,
22478
- render = _this$props3.render,
22479
- children = _this$props3.children;
22480
-
22481
- if (isFunction(render)) {
22482
- return 'renderProp';
22483
- }
22484
-
22485
- if (isFunction(children)) {
22486
- return 'childFunction';
22487
- }
22488
-
22489
- if (React.isValidElement(children)) {
22490
- return 'child';
22491
- }
22492
-
22493
- if (Array.isArray(children)) {
22494
- return 'childArray';
22495
- }
22496
-
22497
- return 'parent';
22498
- });
22499
-
22500
- _defineProperty(_assertThisInitialized$1(_this), "getTargetComponent", function () {
22501
- var _this$props4 = _this.props,
22502
- render = _this$props4.render,
22503
- children = _this$props4.children,
22504
- nodeType = _this$props4.nodeType;
22505
- var _this$state2 = _this.state,
22506
- width = _this$state2.width,
22507
- height = _this$state2.height;
22508
- var childProps = {
22509
- width: width,
22510
- height: height
22511
- };
22512
-
22513
- var renderType = _this.getRenderType();
22514
-
22515
- switch (renderType) {
22516
- case 'renderProp':
22517
- return React.cloneElement(render(childProps), {
22518
- key: 'resize-detector'
22519
- });
22520
-
22521
- case 'childFunction':
22522
- return React.cloneElement(children(childProps));
22523
-
22524
- case 'child':
22525
- return React.cloneElement(children, childProps);
22526
-
22527
- case 'childArray':
22528
- return children.map(function (el) {
22529
- return !!el && React.cloneElement(el, childProps);
22530
- });
22531
-
22532
- default:
22533
- return React.createElement(nodeType);
22534
- }
22535
- });
22536
-
22537
- var skipOnMount = props.skipOnMount,
22538
- refreshMode = props.refreshMode,
22539
- refreshRate = props.refreshRate,
22540
- refreshOptions = props.refreshOptions;
22541
- _this.state = {
22542
- width: undefined,
22543
- height: undefined
22544
- };
22545
- _this.skipOnMount = skipOnMount;
22546
- _this.raf = null;
22547
- _this.element = null;
22548
- _this.unmounted = false;
22549
- var handle = getHandle(refreshMode);
22550
- _this.resizeHandler = handle ? handle(_this.createResizeHandler, refreshRate, refreshOptions) : _this.createResizeHandler;
22551
- _this.resizeObserver = new index(_this.resizeHandler);
22552
- return _this;
22553
- }
22554
-
22555
- _createClass(ResizeDetector, [{
22556
- key: "componentDidMount",
22557
- value: function componentDidMount() {
22558
- this.toggleObserver('observe');
22559
- }
22560
- }, {
22561
- key: "componentWillUnmount",
22562
- value: function componentWillUnmount() {
22563
- this.toggleObserver('unobserve');
22564
- this.rafClean();
22565
- this.cancelHandler();
22566
- this.unmounted = true;
22567
- }
22568
- }, {
22569
- key: "render",
22570
- value: function render() {
22571
- return /*#__PURE__*/React__default['default'].createElement(ChildWrapper, {
22572
- ref: this.onRef
22573
- }, this.getTargetComponent());
22574
- }
22575
- }]);
22576
-
22577
- return ResizeDetector;
22578
- }(React.PureComponent);
22579
-
22580
- ResizeDetector.propTypes = {
22581
- handleWidth: PropTypes.bool,
22582
- handleHeight: PropTypes.bool,
22583
- skipOnMount: PropTypes.bool,
22584
- refreshRate: PropTypes.number,
22585
- refreshMode: PropTypes.string,
22586
- refreshOptions: PropTypes.shape({
22587
- leading: PropTypes.bool,
22588
- trailing: PropTypes.bool
22589
- }),
22590
- querySelector: PropTypes.string,
22591
- targetDomEl: PropTypes.any,
22592
- // eslint-disable-line react/forbid-prop-types
22593
- onResize: PropTypes.func,
22594
- render: PropTypes.func,
22595
- children: PropTypes.any,
22596
- // eslint-disable-line react/forbid-prop-types
22597
- nodeType: PropTypes.node
22598
- };
22599
- ResizeDetector.defaultProps = {
22600
- handleWidth: false,
22601
- handleHeight: false,
22602
- skipOnMount: false,
22603
- refreshRate: 1000,
22604
- refreshMode: undefined,
22605
- refreshOptions: undefined,
22606
- querySelector: null,
22607
- targetDomEl: null,
22608
- onResize: null,
22609
- render: undefined,
22610
- children: null,
22611
- nodeType: 'div'
22612
- };
22613
-
22614
20780
  var _excluded = ["name", "onSubmit"];
22615
20781
 
22616
20782
  var BaseNavBarSearch = function BaseNavBarSearch(_ref) {
@@ -24059,7 +22225,7 @@
24059
22225
  };
24060
22226
 
24061
22227
  var NavBar$1 = function NavBar(props) {
24062
- return /*#__PURE__*/React__default['default'].createElement(ResizeDetector, {
22228
+ return /*#__PURE__*/React__default['default'].createElement(ReactResizeDetector__default['default'], {
24063
22229
  handleWidth: true
24064
22230
  }, /*#__PURE__*/React__default['default'].createElement(SelectNavBarBasedOnWidth$1, Object.assign({}, props)));
24065
22231
  };
@@ -28033,7 +26199,7 @@
28033
26199
  role: "tablist",
28034
26200
  onScroll: handleScroll,
28035
26201
  ref: _this3.tabContainerRef
28036
- }, spaceProps), /*#__PURE__*/React__default['default'].createElement(ResizeDetector, {
26202
+ }, spaceProps), /*#__PURE__*/React__default['default'].createElement(ReactResizeDetector__default['default'], {
28037
26203
  handleWidth: true,
28038
26204
  onResize: handleResize
28039
26205
  }), _this3.getTabs(setFocusedIndex, focusedIndex, handleArrowNavigation));
@@ -45024,16 +43190,17 @@
45024
43190
  return getRenderFunction$1(menuItem)(menuItem, themeColorObject, layer);
45025
43191
  };
45026
43192
 
45027
- var BaseDesktopMenu = function BaseDesktopMenu(_a) {
43193
+ var BaseDesktopMenu = /*#__PURE__*/React__default['default'].forwardRef(function (_a, ref) {
45028
43194
  var menuData = _a.menuData,
45029
43195
  themeColorObject = _a.themeColorObject,
45030
43196
  props = __rest(_a, ["menuData", "themeColorObject"]);
45031
43197
 
45032
- return /*#__PURE__*/React__default['default'].createElement(Nav$1, Object.assign({}, props), menuData.map(function (menuItem) {
43198
+ return /*#__PURE__*/React__default['default'].createElement(Nav$1, Object.assign({}, props, {
43199
+ ref: ref
43200
+ }), menuData.map(function (menuItem) {
45033
43201
  return renderMenuItem(menuItem, themeColorObject, 0);
45034
43202
  }));
45035
- };
45036
-
43203
+ });
45037
43204
  var DesktopMenu = styled__default['default'](BaseDesktopMenu).withConfig({
45038
43205
  displayName: "DesktopMenu",
45039
43206
  componentId: "sc-8mrjkc-3"
@@ -45099,6 +43266,83 @@
45099
43266
  };
45100
43267
 
45101
43268
  var borderStyle$1 = "1px solid #e4e7eb";
43269
+ var NulogyLogoContainer = function NulogyLogoContainer(_ref) {
43270
+ var subText = _ref.subText,
43271
+ height = _ref.height;
43272
+ return /*#__PURE__*/React__default['default'].createElement(Flex, {
43273
+ px: "x1",
43274
+ py: "half",
43275
+ alignItems: "center",
43276
+ // boxShadow="small"
43277
+ justifyContent: "center",
43278
+ flexDirection: subText ? "column" : "row",
43279
+ height: height,
43280
+ borderLeft: borderStyle$1,
43281
+ borderRight: borderStyle$1
43282
+ }, /*#__PURE__*/React__default['default'].createElement(Box, {
43283
+ width: "76px",
43284
+ height: "18px"
43285
+ }, /*#__PURE__*/React__default['default'].createElement(NulogyLogo, null)), subText && /*#__PURE__*/React__default['default'].createElement(Text, {
43286
+ fontSize: "8px",
43287
+ lineHeight: "10px",
43288
+ color: "darkGrey",
43289
+ fontWeight: "medium",
43290
+ textTransform: "uppercase",
43291
+ letterSpacing: ".5px"
43292
+ }, subText));
43293
+ };
43294
+
43295
+ var EnvironmentBanner = function EnvironmentBanner(_ref) {
43296
+ var children = _ref.children;
43297
+ return /*#__PURE__*/React__default['default'].createElement(Box, {
43298
+ bg: "darkBlue",
43299
+ textAlign: "center"
43300
+ }, /*#__PURE__*/React__default['default'].createElement(Text, {
43301
+ fontSize: "10px",
43302
+ letterSpacing: "0.5px",
43303
+ fontWeight: "bold",
43304
+ color: "white",
43305
+ textTransform: "uppercase",
43306
+ py: "2px"
43307
+ }, children));
43308
+ };
43309
+
43310
+ var MAX_LOGO_WIDTH = "184px";
43311
+ var MAX_LOGO_HEIGHT = "36px";
43312
+
43313
+ var BrandLogoContainer = function BrandLogoContainer(_ref) {
43314
+ var logoSrc = _ref.logoSrc,
43315
+ brandingLinkHref = _ref.brandingLinkHref,
43316
+ brandingLinkTo = _ref.brandingLinkTo,
43317
+ brandingLinkComponent = _ref.brandingLinkComponent,
43318
+ subtext = _ref.subtext;
43319
+ return /*#__PURE__*/React__default['default'].createElement(Box, {
43320
+ maxWidth: MAX_LOGO_WIDTH,
43321
+ maxHeight: MAX_LOGO_HEIGHT
43322
+ }, /*#__PURE__*/React__default['default'].createElement(Link, {
43323
+ "aria-label": "Home",
43324
+ href: brandingLinkHref,
43325
+ to: brandingLinkTo,
43326
+ as: brandingLinkComponent,
43327
+ underline: false,
43328
+ style: {
43329
+ display: "block"
43330
+ }
43331
+ }, logoSrc && /*#__PURE__*/React__default['default'].createElement("img", {
43332
+ src: logoSrc,
43333
+ style: {
43334
+ maxWidth: MAX_LOGO_WIDTH,
43335
+ maxHeight: MAX_LOGO_HEIGHT
43336
+ },
43337
+ alt: ""
43338
+ }), !logoSrc && /*#__PURE__*/React__default['default'].createElement(Branding, {
43339
+ size: subtext ? "small" : "medium",
43340
+ logoColor: "blue",
43341
+ subtext: subtext
43342
+ })));
43343
+ };
43344
+
43345
+ var borderStyle = "1px solid #e4e7eb";
45102
43346
  var BrandingWrap = styled__default['default'].div.withConfig({
45103
43347
  displayName: "MobileMenu__BrandingWrap",
45104
43348
  componentId: "sc-18t6zrc-0"
@@ -45325,7 +43569,7 @@
45325
43569
  logoColor: themeColorObject && themeColorObject.logoColor
45326
43570
  })), /*#__PURE__*/React__default['default'].createElement(Menu$1, null, menuData.primaryMenu && renderTopLayerMenuItems(menuData.primaryMenu, closeMenu, themeColorObject), menuData.secondaryMenu && renderTopLayerMenuItems(menuData.secondaryMenu, closeMenu, themeColorObject)), logoSrc && /*#__PURE__*/React__default['default'].createElement(Flex, {
45327
43571
  textAlign: "center",
45328
- borderTop: borderStyle$1,
43572
+ borderTop: borderStyle,
45329
43573
  height: "40px",
45330
43574
  alignItems: "center",
45331
43575
  justifyContent: "center"
@@ -45344,163 +43588,28 @@
45344
43588
  componentId: "sc-18t6zrc-6"
45345
43589
  })(display);
45346
43590
 
45347
- var borderStyle = "1px solid #e4e7eb";
45348
- var NulogyLogoContainer = function NulogyLogoContainer(_ref) {
45349
- var subText = _ref.subText,
45350
- height = _ref.height;
45351
- return /*#__PURE__*/React__default['default'].createElement(Flex, {
45352
- px: "x1",
45353
- py: "half",
45354
- alignItems: "center",
45355
- // boxShadow="small"
45356
- justifyContent: "center",
45357
- flexDirection: subText ? "column" : "row",
45358
- height: height,
45359
- borderLeft: borderStyle,
45360
- borderRight: borderStyle
45361
- }, /*#__PURE__*/React__default['default'].createElement(Box, {
45362
- width: "76px",
45363
- height: "18px"
45364
- }, /*#__PURE__*/React__default['default'].createElement(NulogyLogo, null)), subText && /*#__PURE__*/React__default['default'].createElement(Text, {
45365
- fontSize: "8px",
45366
- lineHeight: "10px",
45367
- color: "darkGrey",
45368
- fontWeight: "medium",
45369
- textTransform: "uppercase",
45370
- letterSpacing: ".5px"
45371
- }, subText));
45372
- };
45373
-
45374
- var EnvironmentBanner = function EnvironmentBanner(_ref) {
45375
- var children = _ref.children;
45376
- return /*#__PURE__*/React__default['default'].createElement(Box, {
45377
- bg: "darkBlue",
45378
- textAlign: "center"
45379
- }, /*#__PURE__*/React__default['default'].createElement(Text, {
45380
- fontSize: "10px",
45381
- letterSpacing: "0.5px",
45382
- fontWeight: "bold",
45383
- color: "white",
45384
- textTransform: "uppercase",
45385
- py: "2px"
45386
- }, children));
45387
- };
45388
-
45389
- var MAX_LOGO_WIDTH = "184px";
45390
- var MAX_LOGO_HEIGHT = "36px";
45391
- var NAVBAR_HEIGHT = "56px";
45392
- var themeColorObject = {
45393
- color: "darkBlue",
45394
- hoverColor: "blackBlue",
45395
- background: "white",
45396
- hoverBackground: "whiteGrey",
45397
- textColor: "blackBlue",
45398
- logoColor: "blue"
45399
- };
45400
43591
  var NavBarBackground = styled__default['default'](Flex).withConfig({
45401
- displayName: "NavBar__NavBarBackground",
45402
- componentId: "cszq6w-0"
43592
+ displayName: "NavBarBackground",
43593
+ componentId: "sc-1g75y9j-0"
45403
43594
  })(function (_ref) {
45404
- var backgroundColor = _ref.backgroundColor,
45405
- theme = _ref.theme;
43595
+ var theme = _ref.theme;
45406
43596
  return {
45407
- background: backgroundColor,
45408
43597
  padding: "0 " + theme.space.x3,
45409
43598
  borderBottom: "1px solid " + theme.colors.lightGrey,
45410
43599
  alignItems: "center",
45411
- height: NAVBAR_HEIGHT,
45412
43600
  zIndex: theme.zIndices.navBar,
45413
43601
  position: "relative"
45414
43602
  };
45415
- });
45416
-
45417
- var BrandLogoContainer = function BrandLogoContainer(_ref2) {
45418
- var logoSrc = _ref2.logoSrc,
45419
- brandingLinkHref = _ref2.brandingLinkHref,
45420
- brandingLinkTo = _ref2.brandingLinkTo,
45421
- brandingLinkComponent = _ref2.brandingLinkComponent,
45422
- subtext = _ref2.subtext;
45423
- return /*#__PURE__*/React__default['default'].createElement(Box, {
45424
- maxWidth: MAX_LOGO_WIDTH,
45425
- maxHeight: MAX_LOGO_HEIGHT
45426
- }, /*#__PURE__*/React__default['default'].createElement(Link, {
45427
- "aria-label": "Home",
45428
- href: brandingLinkHref,
45429
- to: brandingLinkTo,
45430
- as: brandingLinkComponent,
45431
- underline: false,
45432
- style: {
45433
- display: "block"
45434
- }
45435
- }, logoSrc && /*#__PURE__*/React__default['default'].createElement("img", {
45436
- src: logoSrc,
45437
- style: {
45438
- maxWidth: MAX_LOGO_WIDTH,
45439
- maxHeight: MAX_LOGO_HEIGHT
45440
- },
45441
- alt: ""
45442
- }), !logoSrc && /*#__PURE__*/React__default['default'].createElement(Branding, {
45443
- size: subtext ? "small" : "medium",
45444
- logoColor: "blue",
45445
- subtext: subtext
45446
- })));
45447
- };
45448
-
45449
- var MediumNavBar = function MediumNavBar(_a) {
45450
- var menuData = _a.menuData,
45451
- subtext = _a.subtext,
45452
- environment = _a.environment,
45453
- logoSrc = _a.logoSrc,
45454
- _a$brandingLinkHref = _a.brandingLinkHref,
45455
- brandingLinkHref = _a$brandingLinkHref === void 0 ? "/" : _a$brandingLinkHref,
45456
- brandingLinkTo = _a.brandingLinkTo,
45457
- brandingLinkComponent = _a.brandingLinkComponent,
45458
- props = __rest(_a, ["menuData", "subtext", "environment", "logoSrc", "brandingLinkHref", "brandingLinkTo", "brandingLinkComponent"]);
45459
-
45460
- var _useTranslation = useTranslation(),
45461
- t = _useTranslation.t;
45462
-
45463
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, environment && /*#__PURE__*/React__default['default'].createElement(EnvironmentBanner, null, environment), /*#__PURE__*/React__default['default'].createElement("header", Object.assign({}, props), /*#__PURE__*/React__default['default'].createElement(NavBarBackground, {
45464
- backgroundColor: "white"
45465
- }, /*#__PURE__*/React__default['default'].createElement(BrandLogoContainer, {
45466
- logoSrc: logoSrc,
45467
- brandingLinkHref: brandingLinkHref,
45468
- brandingLinkTo: brandingLinkTo,
45469
- brandingLinkComponent: brandingLinkComponent,
45470
- subtext: subtext
45471
- }), /*#__PURE__*/React__default['default'].createElement(Flex, {
45472
- justifyContent: "space-between",
45473
- alignContent: "flex-end",
45474
- flexGrow: 1,
45475
- ml: "x3",
45476
- alignItems: "center"
45477
- }, menuData.primaryMenu && /*#__PURE__*/React__default['default'].createElement(DesktopMenu, {
45478
- themeColorObject: themeColorObject,
45479
- "aria-label": t("primary navigation"),
45480
- menuData: menuData.primaryMenu
45481
- }), /*#__PURE__*/React__default['default'].createElement(Flex, {
45482
- justifySelf: "flex-end",
45483
- alignItems: "center"
45484
- }, menuData.secondaryMenu && /*#__PURE__*/React__default['default'].createElement(DesktopMenu, {
45485
- themeColorObject: themeColorObject,
45486
- "aria-label": t("secondary navigation"),
45487
- menuData: menuData.secondaryMenu
45488
- }), logoSrc && /*#__PURE__*/React__default['default'].createElement(Box, {
45489
- pl: "x3"
45490
- }, /*#__PURE__*/React__default['default'].createElement(NulogyLogoContainer, {
45491
- height: NAVBAR_HEIGHT,
45492
- subText: subtext
45493
- })))))));
45494
- };
43603
+ }, addStyledProps);
45495
43604
 
45496
43605
  var MobileMenuTrigger = styled__default['default'].button.withConfig({
45497
- displayName: "NavBar__MobileMenuTrigger",
45498
- componentId: "cszq6w-1"
45499
- })(function (_ref3) {
45500
- var color = _ref3.color,
45501
- hoverColor = _ref3.hoverColor,
45502
- hoverBackground = _ref3.hoverBackground,
45503
- theme = _ref3.theme;
43606
+ displayName: "SmallNavBar__MobileMenuTrigger",
43607
+ componentId: "ykabay-0"
43608
+ })(function (_ref) {
43609
+ var color = _ref.color,
43610
+ hoverColor = _ref.hoverColor,
43611
+ hoverBackground = _ref.hoverBackground,
43612
+ theme = _ref.theme;
45504
43613
  return {
45505
43614
  color: theme.colors[color] || color,
45506
43615
  background: "none",
@@ -45522,11 +43631,11 @@
45522
43631
  };
45523
43632
  });
45524
43633
  var SmallHeader = styled__default['default'].header.withConfig({
45525
- displayName: "NavBar__SmallHeader",
45526
- componentId: "cszq6w-2"
45527
- })(function (_ref4) {
45528
- var isOpen = _ref4.isOpen,
45529
- theme = _ref4.theme;
43634
+ displayName: "SmallNavBar__SmallHeader",
43635
+ componentId: "ykabay-1"
43636
+ })(function (_ref2) {
43637
+ var isOpen = _ref2.isOpen,
43638
+ theme = _ref2.theme;
45530
43639
  return isOpen ? {
45531
43640
  position: "fixed",
45532
43641
  width: "100%",
@@ -45541,15 +43650,11 @@
45541
43650
  } : null;
45542
43651
  });
45543
43652
 
45544
- var pixelDigitsFrom = function pixelDigitsFrom(pixelString) {
45545
- return parseInt(pixelString, 10);
45546
- };
45547
-
45548
- var MenuIcon = function MenuIcon(_ref5) {
45549
- var isOpen = _ref5.isOpen;
43653
+ var MenuIcon = function MenuIcon(_ref3) {
43654
+ var isOpen = _ref3.isOpen;
45550
43655
 
45551
- var _useTranslation2 = useTranslation(),
45552
- t = _useTranslation2.t;
43656
+ var _useTranslation = useTranslation(),
43657
+ t = _useTranslation.t;
45553
43658
 
45554
43659
  var icon = isOpen ? "close" : "menu";
45555
43660
  var title = isOpen ? t("close menu") : t("open menu");
@@ -45568,14 +43673,16 @@
45568
43673
  toggleMenu = _a$menuState.toggleMenu,
45569
43674
  closeMenu = _a$menuState.closeMenu,
45570
43675
  subtext = _a.subtext,
45571
- _a$brandingLinkHref2 = _a.brandingLinkHref,
45572
- brandingLinkHref = _a$brandingLinkHref2 === void 0 ? "/" : _a$brandingLinkHref2,
43676
+ _a$brandingLinkHref = _a.brandingLinkHref,
43677
+ brandingLinkHref = _a$brandingLinkHref === void 0 ? "/" : _a$brandingLinkHref,
45573
43678
  brandingLinkTo = _a.brandingLinkTo,
45574
43679
  environment = _a.environment,
45575
43680
  logoSrc = _a.logoSrc,
45576
43681
  _a$breakpointLower = _a.breakpointLower,
45577
43682
  breakpointLower = _a$breakpointLower === void 0 ? "small" : _a$breakpointLower,
45578
- props = __rest(_a, ["menuData", "menuState", "subtext", "brandingLinkHref", "brandingLinkTo", "environment", "logoSrc", "breakpointLower"]);
43683
+ themeColorObject = _a.themeColorObject,
43684
+ navBarHeight = _a.navBarHeight,
43685
+ props = __rest(_a, ["menuData", "menuState", "subtext", "brandingLinkHref", "brandingLinkTo", "environment", "logoSrc", "breakpointLower", "themeColorObject", "navBarHeight"]);
45579
43686
 
45580
43687
  var navRef = React__default['default'].useRef(null);
45581
43688
  React.useEffect(function () {
@@ -45592,7 +43699,8 @@
45592
43699
  isOpen: isOpen,
45593
43700
  breakpointLower: breakpoints ? breakpoints[breakpointLower] : breakpointLower
45594
43701
  }, props), environment && /*#__PURE__*/React__default['default'].createElement(EnvironmentBanner, null, environment), /*#__PURE__*/React__default['default'].createElement(NavBarBackground, {
45595
- backgroundColor: "white"
43702
+ backgroundColor: "white",
43703
+ height: navBarHeight
45596
43704
  }, /*#__PURE__*/React__default['default'].createElement(BrandLogoContainer, {
45597
43705
  logoSrc: logoSrc,
45598
43706
  brandingLinkHref: brandingLinkHref,
@@ -45624,6 +43732,68 @@
45624
43732
 
45625
43733
  var SmallNavBar = withMenuState(SmallNavBarNoState);
45626
43734
 
43735
+ var NAVBAR_HEIGHT = "56px";
43736
+ var themeColorObject = {
43737
+ color: "darkBlue",
43738
+ hoverColor: "blackBlue",
43739
+ background: "white",
43740
+ hoverBackground: "whiteGrey",
43741
+ textColor: "blackBlue",
43742
+ logoColor: "blue"
43743
+ };
43744
+
43745
+ var MediumNavBar = function MediumNavBar(_a) {
43746
+ var menuData = _a.menuData,
43747
+ subtext = _a.subtext,
43748
+ environment = _a.environment,
43749
+ logoSrc = _a.logoSrc,
43750
+ _a$brandingLinkHref = _a.brandingLinkHref,
43751
+ brandingLinkHref = _a$brandingLinkHref === void 0 ? "/" : _a$brandingLinkHref,
43752
+ brandingLinkTo = _a.brandingLinkTo,
43753
+ brandingLinkComponent = _a.brandingLinkComponent,
43754
+ props = __rest(_a, ["menuData", "subtext", "environment", "logoSrc", "brandingLinkHref", "brandingLinkTo", "brandingLinkComponent"]);
43755
+
43756
+ var _useTranslation = useTranslation(),
43757
+ t = _useTranslation.t;
43758
+
43759
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, environment && /*#__PURE__*/React__default['default'].createElement(EnvironmentBanner, null, environment), /*#__PURE__*/React__default['default'].createElement("header", Object.assign({}, props), /*#__PURE__*/React__default['default'].createElement(NavBarBackground, {
43760
+ backgroundColor: "white",
43761
+ height: NAVBAR_HEIGHT
43762
+ }, /*#__PURE__*/React__default['default'].createElement(BrandLogoContainer, {
43763
+ logoSrc: logoSrc,
43764
+ brandingLinkHref: brandingLinkHref,
43765
+ brandingLinkTo: brandingLinkTo,
43766
+ brandingLinkComponent: brandingLinkComponent,
43767
+ subtext: subtext
43768
+ }), /*#__PURE__*/React__default['default'].createElement(Flex, {
43769
+ justifyContent: "space-between",
43770
+ alignContent: "flex-end",
43771
+ flexGrow: 1,
43772
+ ml: "x3",
43773
+ alignItems: "center"
43774
+ }, menuData.primaryMenu && /*#__PURE__*/React__default['default'].createElement(DesktopMenu, {
43775
+ themeColorObject: themeColorObject,
43776
+ "aria-label": t("primary navigation"),
43777
+ menuData: menuData.primaryMenu
43778
+ }), /*#__PURE__*/React__default['default'].createElement(Flex, {
43779
+ justifySelf: "flex-end",
43780
+ alignItems: "center"
43781
+ }, menuData.secondaryMenu && /*#__PURE__*/React__default['default'].createElement(DesktopMenu, {
43782
+ themeColorObject: themeColorObject,
43783
+ "aria-label": t("secondary navigation"),
43784
+ menuData: menuData.secondaryMenu
43785
+ }), logoSrc && /*#__PURE__*/React__default['default'].createElement(Box, {
43786
+ pl: "x3"
43787
+ }, /*#__PURE__*/React__default['default'].createElement(NulogyLogoContainer, {
43788
+ height: NAVBAR_HEIGHT,
43789
+ subText: subtext
43790
+ })))))));
43791
+ };
43792
+
43793
+ var pixelDigitsFrom = function pixelDigitsFrom(pixelString) {
43794
+ return parseInt(pixelString, 10);
43795
+ };
43796
+
45627
43797
  var SelectNavBarBasedOnWidth = function SelectNavBarBasedOnWidth(_a) {
45628
43798
  var width = _a.width,
45629
43799
  defaultOpen = _a.defaultOpen,
@@ -45637,7 +43807,9 @@
45637
43807
  } else {
45638
43808
  return /*#__PURE__*/React__default['default'].createElement(SmallNavBar, Object.assign({}, props, {
45639
43809
  width: currentWidth,
45640
- defaultOpen: defaultOpen
43810
+ defaultOpen: defaultOpen,
43811
+ themeColorObject: themeColorObject,
43812
+ navBarHeight: NAVBAR_HEIGHT
45641
43813
  }));
45642
43814
  }
45643
43815
  };
@@ -45648,10 +43820,10 @@
45648
43820
  breakpointUpper = _a$breakpointUpper === void 0 ? "medium" : _a$breakpointUpper,
45649
43821
  props = __rest(_a, ["environment", "breakpointUpper"]);
45650
43822
 
45651
- var _useTheme2 = styled.useTheme(),
45652
- breakpoints = _useTheme2.breakpoints;
43823
+ var _useTheme = styled.useTheme(),
43824
+ breakpoints = _useTheme.breakpoints;
45653
43825
 
45654
- return /*#__PURE__*/React__default['default'].createElement(ResizeDetector, {
43826
+ return /*#__PURE__*/React__default['default'].createElement(ReactResizeDetector__default['default'], {
45655
43827
  handleWidth: true
45656
43828
  }, /*#__PURE__*/React__default['default'].createElement(SelectNavBarBasedOnWidth, Object.assign({
45657
43829
  breakpointUpper: breakpoints[breakpointUpper] || breakpointUpper
@@ -45662,7 +43834,7 @@
45662
43834
 
45663
43835
  var NavBar = styled__default['default'](BaseNavBar).withConfig({
45664
43836
  displayName: "NavBar",
45665
- componentId: "cszq6w-3"
43837
+ componentId: "cszq6w-0"
45666
43838
  })({});
45667
43839
 
45668
43840
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -47686,7 +45858,7 @@
47686
45858
 
47687
45859
  var cleanValue = function cleanValue(value) {
47688
45860
  if (Array.isArray(value)) return value.filter(Boolean);
47689
- if (_typeof$2(value) === 'object' && value !== null) return [value];
45861
+ if (_typeof(value) === 'object' && value !== null) return [value];
47690
45862
  return [];
47691
45863
  }; // ==============================
47692
45864
  // Handle Input Change
@@ -47835,9 +46007,9 @@
47835
46007
 
47836
46008
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
47837
46009
 
47838
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
46010
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
47839
46011
 
47840
- function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
46012
+ function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
47841
46013
 
47842
46014
  function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
47843
46015
  function getMenuPlacement(_ref) {
@@ -48026,21 +46198,21 @@
48026
46198
  colors = _ref2$theme.colors;
48027
46199
  return _ref3 = {
48028
46200
  label: 'menu'
48029
- }, _defineProperty$1(_ref3, alignToControl(placement), '100%'), _defineProperty$1(_ref3, "backgroundColor", colors.neutral0), _defineProperty$1(_ref3, "borderRadius", borderRadius), _defineProperty$1(_ref3, "boxShadow", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), _defineProperty$1(_ref3, "marginBottom", spacing.menuGutter), _defineProperty$1(_ref3, "marginTop", spacing.menuGutter), _defineProperty$1(_ref3, "position", 'absolute'), _defineProperty$1(_ref3, "width", '100%'), _defineProperty$1(_ref3, "zIndex", 1), _ref3;
46201
+ }, _defineProperty(_ref3, alignToControl(placement), '100%'), _defineProperty(_ref3, "backgroundColor", colors.neutral0), _defineProperty(_ref3, "borderRadius", borderRadius), _defineProperty(_ref3, "boxShadow", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), _defineProperty(_ref3, "marginBottom", spacing.menuGutter), _defineProperty(_ref3, "marginTop", spacing.menuGutter), _defineProperty(_ref3, "position", 'absolute'), _defineProperty(_ref3, "width", '100%'), _defineProperty(_ref3, "zIndex", 1), _ref3;
48030
46202
  };
48031
46203
  var PortalPlacementContext = /*#__PURE__*/React.createContext({
48032
46204
  getPortalPlacement: null
48033
46205
  }); // NOTE: internal only
48034
46206
 
48035
46207
  var MenuPlacer = /*#__PURE__*/function (_Component) {
48036
- _inherits$2(MenuPlacer, _Component);
46208
+ _inherits(MenuPlacer, _Component);
48037
46209
 
48038
46210
  var _super = _createSuper$5(MenuPlacer);
48039
46211
 
48040
46212
  function MenuPlacer() {
48041
46213
  var _this;
48042
46214
 
48043
- _classCallCheck$2(this, MenuPlacer);
46215
+ _classCallCheck(this, MenuPlacer);
48044
46216
 
48045
46217
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
48046
46218
  args[_key] = arguments[_key];
@@ -48091,7 +46263,7 @@
48091
46263
  return _this;
48092
46264
  }
48093
46265
 
48094
- _createClass$2(MenuPlacer, [{
46266
+ _createClass(MenuPlacer, [{
48095
46267
  key: "render",
48096
46268
  value: function render() {
48097
46269
  var children = this.props.children;
@@ -48221,14 +46393,14 @@
48221
46393
  };
48222
46394
  };
48223
46395
  var MenuPortal = /*#__PURE__*/function (_Component2) {
48224
- _inherits$2(MenuPortal, _Component2);
46396
+ _inherits(MenuPortal, _Component2);
48225
46397
 
48226
46398
  var _super2 = _createSuper$5(MenuPortal);
48227
46399
 
48228
46400
  function MenuPortal() {
48229
46401
  var _this2;
48230
46402
 
48231
- _classCallCheck$2(this, MenuPortal);
46403
+ _classCallCheck(this, MenuPortal);
48232
46404
 
48233
46405
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
48234
46406
  args[_key2] = arguments[_key2];
@@ -48253,7 +46425,7 @@
48253
46425
  return _this2;
48254
46426
  }
48255
46427
 
48256
- _createClass$2(MenuPortal, [{
46428
+ _createClass(MenuPortal, [{
48257
46429
  key: "render",
48258
46430
  value: function render() {
48259
46431
  var _this$props2 = this.props,
@@ -48301,7 +46473,7 @@
48301
46473
  // fast-deep-equal index.js 2.0.1
48302
46474
  if (a === b) return true;
48303
46475
 
48304
- if (a && b && _typeof$2(a) == 'object' && _typeof$2(b) == 'object') {
46476
+ if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
48305
46477
  var arrA = isArray(a),
48306
46478
  arrB = isArray(b),
48307
46479
  i,
@@ -48721,7 +46893,7 @@
48721
46893
 
48722
46894
  function ownKeys$1$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
48723
46895
 
48724
- function _objectSpread$1$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1$1(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
46896
+ function _objectSpread$1$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1$1(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
48725
46897
  var groupCSS = function groupCSS(_ref) {
48726
46898
  var spacing = _ref.theme.spacing;
48727
46899
  return {
@@ -48788,7 +46960,7 @@
48788
46960
 
48789
46961
  function ownKeys$2$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
48790
46962
 
48791
- function _objectSpread$2$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2$1(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
46963
+ function _objectSpread$2$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2$1(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
48792
46964
  var inputCSS = function inputCSS(_ref) {
48793
46965
  var isDisabled = _ref.isDisabled,
48794
46966
  _ref$theme = _ref.theme,
@@ -48843,7 +47015,7 @@
48843
47015
 
48844
47016
  function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
48845
47017
 
48846
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
47018
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
48847
47019
  var multiValueCSS = function multiValueCSS(_ref) {
48848
47020
  var _ref$theme = _ref.theme,
48849
47021
  spacing = _ref$theme.spacing,
@@ -49073,7 +47245,7 @@
49073
47245
 
49074
47246
  function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
49075
47247
 
49076
- function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
47248
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
49077
47249
  var components = {
49078
47250
  ClearIndicator: ClearIndicator,
49079
47251
  Control: Control,
@@ -49456,7 +47628,7 @@
49456
47628
 
49457
47629
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
49458
47630
 
49459
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
47631
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
49460
47632
 
49461
47633
  var trimString = function trimString(str) {
49462
47634
  return str.replace(/^\s+|\s+$/g, '');
@@ -49551,22 +47723,22 @@
49551
47723
  }));
49552
47724
  }
49553
47725
 
49554
- function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
47726
+ function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
49555
47727
 
49556
47728
  function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
49557
47729
 
49558
47730
  var NodeResolver = /*#__PURE__*/function (_Component) {
49559
- _inherits$2(NodeResolver, _Component);
47731
+ _inherits(NodeResolver, _Component);
49560
47732
 
49561
47733
  var _super = _createSuper$2(NodeResolver);
49562
47734
 
49563
47735
  function NodeResolver() {
49564
- _classCallCheck$2(this, NodeResolver);
47736
+ _classCallCheck(this, NodeResolver);
49565
47737
 
49566
47738
  return _super.apply(this, arguments);
49567
47739
  }
49568
47740
 
49569
- _createClass$2(NodeResolver, [{
47741
+ _createClass(NodeResolver, [{
49570
47742
  key: "componentDidMount",
49571
47743
  value: function componentDidMount() {
49572
47744
  this.props.innerRef(reactDom.findDOMNode(this));
@@ -49618,21 +47790,21 @@
49618
47790
  return 'ontouchstart' in window || navigator.maxTouchPoints;
49619
47791
  }
49620
47792
 
49621
- function _createSuper$1$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
47793
+ function _createSuper$1$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
49622
47794
 
49623
47795
  function _isNativeReflectConstruct$1$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
49624
47796
  var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
49625
47797
  var activeScrollLocks = 0;
49626
47798
 
49627
47799
  var ScrollLock = /*#__PURE__*/function (_Component) {
49628
- _inherits$2(ScrollLock, _Component);
47800
+ _inherits(ScrollLock, _Component);
49629
47801
 
49630
47802
  var _super = _createSuper$1$1(ScrollLock);
49631
47803
 
49632
47804
  function ScrollLock() {
49633
47805
  var _this;
49634
47806
 
49635
- _classCallCheck$2(this, ScrollLock);
47807
+ _classCallCheck(this, ScrollLock);
49636
47808
 
49637
47809
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
49638
47810
  args[_key] = arguments[_key];
@@ -49647,7 +47819,7 @@
49647
47819
  return _this;
49648
47820
  }
49649
47821
 
49650
- _createClass$2(ScrollLock, [{
47822
+ _createClass(ScrollLock, [{
49651
47823
  key: "componentDidMount",
49652
47824
  value: function componentDidMount() {
49653
47825
  var _this2 = this;
@@ -49749,7 +47921,7 @@
49749
47921
 
49750
47922
  function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
49751
47923
 
49752
- function _createSuper$2$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
47924
+ function _createSuper$2$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
49753
47925
 
49754
47926
  function _isNativeReflectConstruct$2$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
49755
47927
 
@@ -49768,14 +47940,14 @@
49768
47940
  // - createRef() https://reactjs.org/docs/react-api.html#reactcreateref
49769
47941
  // - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref
49770
47942
  var ScrollBlock = /*#__PURE__*/function (_PureComponent) {
49771
- _inherits$2(ScrollBlock, _PureComponent);
47943
+ _inherits(ScrollBlock, _PureComponent);
49772
47944
 
49773
47945
  var _super = _createSuper$2$1(ScrollBlock);
49774
47946
 
49775
47947
  function ScrollBlock() {
49776
47948
  var _this;
49777
47949
 
49778
- _classCallCheck$2(this, ScrollBlock);
47950
+ _classCallCheck(this, ScrollBlock);
49779
47951
 
49780
47952
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
49781
47953
  args[_key] = arguments[_key];
@@ -49803,7 +47975,7 @@
49803
47975
  return _this;
49804
47976
  }
49805
47977
 
49806
- _createClass$2(ScrollBlock, [{
47978
+ _createClass(ScrollBlock, [{
49807
47979
  key: "render",
49808
47980
  value: function render() {
49809
47981
  var _this$props = this.props,
@@ -49839,19 +48011,19 @@
49839
48011
  return ScrollBlock;
49840
48012
  }(React.PureComponent);
49841
48013
 
49842
- function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
48014
+ function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
49843
48015
 
49844
48016
  function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
49845
48017
 
49846
48018
  var ScrollCaptor = /*#__PURE__*/function (_Component) {
49847
- _inherits$2(ScrollCaptor, _Component);
48019
+ _inherits(ScrollCaptor, _Component);
49848
48020
 
49849
48021
  var _super = _createSuper$3(ScrollCaptor);
49850
48022
 
49851
48023
  function ScrollCaptor() {
49852
48024
  var _this;
49853
48025
 
49854
- _classCallCheck$2(this, ScrollCaptor);
48026
+ _classCallCheck(this, ScrollCaptor);
49855
48027
 
49856
48028
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
49857
48029
  args[_key] = arguments[_key];
@@ -49940,7 +48112,7 @@
49940
48112
  return _this;
49941
48113
  }
49942
48114
 
49943
- _createClass$2(ScrollCaptor, [{
48115
+ _createClass(ScrollCaptor, [{
49944
48116
  key: "componentDidMount",
49945
48117
  value: function componentDidMount() {
49946
48118
  this.startListening(this.scrollTarget);
@@ -50133,9 +48305,9 @@
50133
48305
 
50134
48306
  function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
50135
48307
 
50136
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
48308
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
50137
48309
 
50138
- function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
48310
+ function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
50139
48311
 
50140
48312
  function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
50141
48313
  var defaultProps$2 = {
@@ -50186,7 +48358,7 @@
50186
48358
  var instanceId = 1;
50187
48359
 
50188
48360
  var Select = /*#__PURE__*/function (_Component) {
50189
- _inherits$2(Select, _Component);
48361
+ _inherits(Select, _Component);
50190
48362
 
50191
48363
  var _super = _createSuper$4(Select);
50192
48364
 
@@ -50200,7 +48372,7 @@
50200
48372
  function Select(_props) {
50201
48373
  var _this;
50202
48374
 
50203
- _classCallCheck$2(this, Select);
48375
+ _classCallCheck(this, Select);
50204
48376
 
50205
48377
  _this = _super.call(this, _props);
50206
48378
  _this.state = {
@@ -50987,7 +49159,7 @@
50987
49159
  };
50988
49160
 
50989
49161
  var _value = _props.value;
50990
- _this.cacheComponents = memoizeOne(_this.cacheComponents, exportedEqual).bind(_assertThisInitialized$3(_this));
49162
+ _this.cacheComponents = memoizeOne(_this.cacheComponents, exportedEqual).bind(_assertThisInitialized$1(_this));
50991
49163
 
50992
49164
  _this.cacheComponents(_props.components);
50993
49165
 
@@ -51007,7 +49179,7 @@
51007
49179
  lastSelectValue = _ref9[1];
51008
49180
 
51009
49181
  return newSelectValue === lastSelectValue && newProps.inputValue === lastProps.inputValue && newProps.options === lastProps.options;
51010
- }).bind(_assertThisInitialized$3(_this));
49182
+ }).bind(_assertThisInitialized$1(_this));
51011
49183
 
51012
49184
  var _menuOptions = _props.menuIsOpen ? _this.buildMenuOptions(_props, _selectValue) : {
51013
49185
  render: [],
@@ -51019,7 +49191,7 @@
51019
49191
  return _this;
51020
49192
  }
51021
49193
 
51022
- _createClass$2(Select, [{
49194
+ _createClass(Select, [{
51023
49195
  key: "componentDidMount",
51024
49196
  value: function componentDidMount() {
51025
49197
  this.startListeningComposition();
@@ -51988,7 +50160,7 @@
51988
50160
 
51989
50161
  Select.defaultProps = defaultProps$2;
51990
50162
 
51991
- function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
50163
+ function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
51992
50164
 
51993
50165
  function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
51994
50166
  var defaultProps$1 = {
@@ -52001,14 +50173,14 @@
52001
50173
  var _class, _temp;
52002
50174
 
52003
50175
  return _temp = _class = /*#__PURE__*/function (_Component) {
52004
- _inherits$2(StateManager, _Component);
50176
+ _inherits(StateManager, _Component);
52005
50177
 
52006
50178
  var _super = _createSuper$1(StateManager);
52007
50179
 
52008
50180
  function StateManager() {
52009
50181
  var _this;
52010
50182
 
52011
- _classCallCheck$2(this, StateManager);
50183
+ _classCallCheck(this, StateManager);
52012
50184
 
52013
50185
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
52014
50186
  args[_key] = arguments[_key];
@@ -52059,7 +50231,7 @@
52059
50231
  return _this;
52060
50232
  }
52061
50233
 
52062
- _createClass$2(StateManager, [{
50234
+ _createClass(StateManager, [{
52063
50235
  key: "focus",
52064
50236
  value: function focus() {
52065
50237
  this.select.focus();
@@ -52119,7 +50291,7 @@
52119
50291
  }(React.Component), _class.defaultProps = defaultProps$1, _temp;
52120
50292
  };
52121
50293
 
52122
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
50294
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
52123
50295
 
52124
50296
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
52125
50297
  var defaultProps = {
@@ -52132,14 +50304,14 @@
52132
50304
  var _class, _temp;
52133
50305
 
52134
50306
  return _temp = _class = /*#__PURE__*/function (_Component) {
52135
- _inherits$2(Async, _Component);
50307
+ _inherits(Async, _Component);
52136
50308
 
52137
50309
  var _super = _createSuper(Async);
52138
50310
 
52139
50311
  function Async(props) {
52140
50312
  var _this;
52141
50313
 
52142
- _classCallCheck$2(this, Async);
50314
+ _classCallCheck(this, Async);
52143
50315
 
52144
50316
  _this = _super.call(this);
52145
50317
  _this.select = void 0;
@@ -52217,7 +50389,7 @@
52217
50389
  return _this;
52218
50390
  }
52219
50391
 
52220
- _createClass$2(Async, [{
50392
+ _createClass(Async, [{
52221
50393
  key: "componentDidMount",
52222
50394
  value: function componentDidMount() {
52223
50395
  var _this2 = this;
@@ -52765,6 +50937,7 @@
52765
50937
  exports.ApplicationFrame = ApplicationFrame;
52766
50938
  exports.AsyncSelect = AsyncSelect;
52767
50939
  exports.Box = Box;
50940
+ exports.BrandLogoContainer = BrandLogoContainer;
52768
50941
  exports.BrandedNavBar = NavBar;
52769
50942
  exports.Branding = Branding;
52770
50943
  exports.Breadcrumbs = Breadcrumbs;
@@ -52778,12 +50951,14 @@
52778
50951
  exports.DangerButton = DangerButton;
52779
50952
  exports.DatePicker = DatePicker;
52780
50953
  exports.DateRange = DateRange;
50954
+ exports.DesktopMenu = DesktopMenu;
52781
50955
  exports.Divider = Divider;
52782
50956
  exports.DropdownButton = DropdownButton;
52783
50957
  exports.DropdownItem = DropdownItem;
52784
50958
  exports.DropdownLink = DropdownLink;
52785
50959
  exports.DropdownMenu = DropdownMenu;
52786
50960
  exports.DropdownText = DropdownText;
50961
+ exports.EnvironmentBanner = EnvironmentBanner;
52787
50962
  exports.Field = Field;
52788
50963
  exports.FieldLabel = FieldLabel;
52789
50964
  exports.Fieldset = Fieldset;
@@ -52804,9 +50979,11 @@
52804
50979
  exports.List = List;
52805
50980
  exports.ListItem = ListItem;
52806
50981
  exports.LoadingAnimation = LoadingAnimation;
50982
+ exports.MenuTrigger = MenuTrigger;
52807
50983
  exports.Modal = Modal;
52808
50984
  exports.NDSProvider = NDSProvider;
52809
50985
  exports.NavBar = NavBar$1;
50986
+ exports.NavBarBackground = NavBarBackground;
52810
50987
  exports.Overlay = Overlay;
52811
50988
  exports.Page = Page;
52812
50989
  exports.Pagination = Pagination;
@@ -52826,6 +51003,7 @@
52826
51003
  exports.SelectMultiValue = SelectMultiValue;
52827
51004
  exports.SelectOption = SelectOption;
52828
51005
  exports.Sidebar = Sidebar;
51006
+ exports.SmallNavBar = SmallNavBar;
52829
51007
  exports.SortingTable = SortingTable;
52830
51008
  exports.StatusIndicator = StatusIndicator;
52831
51009
  exports.Switch = Switch;