@nulogy/components 7.2.3 → 7.4.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);
@@ -16712,6 +16713,10 @@
16712
16713
  };
16713
16714
 
16714
16715
  var sizes$1 = {
16716
+ small: {
16717
+ height: "24px",
16718
+ width: "28px"
16719
+ },
16715
16720
  medium: {
16716
16721
  height: "32px",
16717
16722
  width: "37px"
@@ -16993,12 +16998,12 @@
16993
16998
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16994
16999
  * SOFTWARE.
16995
17000
  */
16996
- var isBrowser$4 = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
17001
+ var isBrowser$3 = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
16997
17002
 
16998
17003
  var timeoutDuration = function () {
16999
17004
  var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
17000
17005
  for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
17001
- if (isBrowser$4 && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
17006
+ if (isBrowser$3 && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
17002
17007
  return 1;
17003
17008
  }
17004
17009
  }
@@ -17032,7 +17037,7 @@
17032
17037
  };
17033
17038
  }
17034
17039
 
17035
- var supportsMicroTasks = isBrowser$4 && window.Promise;
17040
+ var supportsMicroTasks = isBrowser$3 && window.Promise;
17036
17041
 
17037
17042
  /**
17038
17043
  * Create a debounced version of a method, that's asynchronously deferred
@@ -17043,7 +17048,7 @@
17043
17048
  * @argument {Function} fn
17044
17049
  * @returns {Function}
17045
17050
  */
17046
- var debounce$2 = supportsMicroTasks ? microtaskDebounce : taskDebounce;
17051
+ var debounce$1 = supportsMicroTasks ? microtaskDebounce : taskDebounce;
17047
17052
 
17048
17053
  /**
17049
17054
  * Check if the given variable is a function
@@ -17052,7 +17057,7 @@
17052
17057
  * @argument {Any} functionToCheck - variable to check
17053
17058
  * @returns {Boolean} answer to: is a function?
17054
17059
  */
17055
- function isFunction$1(functionToCheck) {
17060
+ function isFunction(functionToCheck) {
17056
17061
  var getType = {};
17057
17062
  return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
17058
17063
  }
@@ -17134,8 +17139,8 @@
17134
17139
  return reference && reference.referenceNode ? reference.referenceNode : reference;
17135
17140
  }
17136
17141
 
17137
- var isIE11 = isBrowser$4 && !!(window.MSInputMethodContext && document.documentMode);
17138
- var isIE10 = isBrowser$4 && /MSIE 10/.test(navigator.userAgent);
17142
+ var isIE11 = isBrowser$3 && !!(window.MSInputMethodContext && document.documentMode);
17143
+ var isIE10 = isBrowser$3 && /MSIE 10/.test(navigator.userAgent);
17139
17144
 
17140
17145
  /**
17141
17146
  * Determines if the browser is Internet Explorer
@@ -17313,7 +17318,7 @@
17313
17318
  * @return {number} borders - The borders size of the given axis
17314
17319
  */
17315
17320
 
17316
- function getBordersSize$1(styles, axis) {
17321
+ function getBordersSize(styles, axis) {
17317
17322
  var sideA = axis === 'x' ? 'Left' : 'Top';
17318
17323
  var sideB = sideA === 'Left' ? 'Right' : 'Bottom';
17319
17324
 
@@ -17452,8 +17457,8 @@
17452
17457
  // we make this check conditional for performance reasons
17453
17458
  if (horizScrollbar || vertScrollbar) {
17454
17459
  var styles = getStyleComputedProperty(element);
17455
- horizScrollbar -= getBordersSize$1(styles, 'x');
17456
- vertScrollbar -= getBordersSize$1(styles, 'y');
17460
+ horizScrollbar -= getBordersSize(styles, 'x');
17461
+ vertScrollbar -= getBordersSize(styles, 'y');
17457
17462
 
17458
17463
  result.width -= horizScrollbar;
17459
17464
  result.height -= vertScrollbar;
@@ -17861,7 +17866,7 @@
17861
17866
  console.warn('`modifier.function` is deprecated, use `modifier.fn`!');
17862
17867
  }
17863
17868
  var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation
17864
- if (modifier.enabled && isFunction$1(fn)) {
17869
+ if (modifier.enabled && isFunction(fn)) {
17865
17870
  // Add properties to offsets to make them a complete clientRect object
17866
17871
  // we do this before each modifier to make sure the previous one doesn't
17867
17872
  // mess with these values
@@ -18237,7 +18242,7 @@
18237
18242
  };
18238
18243
  }
18239
18244
 
18240
- var isFirefox = isBrowser$4 && /Firefox/i.test(navigator.userAgent);
18245
+ var isFirefox = isBrowser$3 && /Firefox/i.test(navigator.userAgent);
18241
18246
 
18242
18247
  /**
18243
18248
  * @function
@@ -19450,7 +19455,7 @@
19450
19455
  };
19451
19456
 
19452
19457
  // make update() debounced, so that it only runs at most once-per-tick
19453
- this.update = debounce$2(this.update.bind(this));
19458
+ this.update = debounce$1(this.update.bind(this));
19454
19459
 
19455
19460
  // with {} we create a new object with the options inside it
19456
19461
  this.options = _extends$1({}, Popper.Defaults, options);
@@ -19488,7 +19493,7 @@
19488
19493
  // they could add new properties to their options configuration
19489
19494
  // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!
19490
19495
  this.modifiers.forEach(function (modifierOptions) {
19491
- if (modifierOptions.enabled && isFunction$1(modifierOptions.onLoad)) {
19496
+ if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {
19492
19497
  modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);
19493
19498
  }
19494
19499
  });
@@ -20776,1841 +20781,6 @@
20776
20781
  }));
20777
20782
  });
20778
20783
 
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
20784
  var _excluded = ["name", "onSubmit"];
22615
20785
 
22616
20786
  var BaseNavBarSearch = function BaseNavBarSearch(_ref) {
@@ -24059,7 +22229,7 @@
24059
22229
  };
24060
22230
 
24061
22231
  var NavBar$1 = function NavBar(props) {
24062
- return /*#__PURE__*/React__default['default'].createElement(ResizeDetector, {
22232
+ return /*#__PURE__*/React__default['default'].createElement(ReactResizeDetector__default['default'], {
24063
22233
  handleWidth: true
24064
22234
  }, /*#__PURE__*/React__default['default'].createElement(SelectNavBarBasedOnWidth$1, Object.assign({}, props)));
24065
22235
  };
@@ -28033,7 +26203,7 @@
28033
26203
  role: "tablist",
28034
26204
  onScroll: handleScroll,
28035
26205
  ref: _this3.tabContainerRef
28036
- }, spaceProps), /*#__PURE__*/React__default['default'].createElement(ResizeDetector, {
26206
+ }, spaceProps), /*#__PURE__*/React__default['default'].createElement(ReactResizeDetector__default['default'], {
28037
26207
  handleWidth: true,
28038
26208
  onResize: handleResize
28039
26209
  }), _this3.getTabs(setFocusedIndex, focusedIndex, handleArrowNavigation));
@@ -45024,16 +43194,17 @@
45024
43194
  return getRenderFunction$1(menuItem)(menuItem, themeColorObject, layer);
45025
43195
  };
45026
43196
 
45027
- var BaseDesktopMenu = function BaseDesktopMenu(_a) {
43197
+ var BaseDesktopMenu = /*#__PURE__*/React__default['default'].forwardRef(function (_a, ref) {
45028
43198
  var menuData = _a.menuData,
45029
43199
  themeColorObject = _a.themeColorObject,
45030
43200
  props = __rest(_a, ["menuData", "themeColorObject"]);
45031
43201
 
45032
- return /*#__PURE__*/React__default['default'].createElement(Nav$1, Object.assign({}, props), menuData.map(function (menuItem) {
43202
+ return /*#__PURE__*/React__default['default'].createElement(Nav$1, Object.assign({}, props, {
43203
+ ref: ref
43204
+ }), menuData.map(function (menuItem) {
45033
43205
  return renderMenuItem(menuItem, themeColorObject, 0);
45034
43206
  }));
45035
- };
45036
-
43207
+ });
45037
43208
  var DesktopMenu = styled__default['default'](BaseDesktopMenu).withConfig({
45038
43209
  displayName: "DesktopMenu",
45039
43210
  componentId: "sc-8mrjkc-3"
@@ -45099,6 +43270,83 @@
45099
43270
  };
45100
43271
 
45101
43272
  var borderStyle$1 = "1px solid #e4e7eb";
43273
+ var NulogyLogoContainer = function NulogyLogoContainer(_ref) {
43274
+ var subText = _ref.subText,
43275
+ height = _ref.height;
43276
+ return /*#__PURE__*/React__default['default'].createElement(Flex, {
43277
+ px: "x1",
43278
+ py: "half",
43279
+ alignItems: "center",
43280
+ // boxShadow="small"
43281
+ justifyContent: "center",
43282
+ flexDirection: subText ? "column" : "row",
43283
+ height: height,
43284
+ borderLeft: borderStyle$1,
43285
+ borderRight: borderStyle$1
43286
+ }, /*#__PURE__*/React__default['default'].createElement(Box, {
43287
+ width: "76px",
43288
+ height: "18px"
43289
+ }, /*#__PURE__*/React__default['default'].createElement(NulogyLogo, null)), subText && /*#__PURE__*/React__default['default'].createElement(Text, {
43290
+ fontSize: "8px",
43291
+ lineHeight: "10px",
43292
+ color: "darkGrey",
43293
+ fontWeight: "medium",
43294
+ textTransform: "uppercase",
43295
+ letterSpacing: ".5px"
43296
+ }, subText));
43297
+ };
43298
+
43299
+ var EnvironmentBanner = function EnvironmentBanner(_ref) {
43300
+ var children = _ref.children;
43301
+ return /*#__PURE__*/React__default['default'].createElement(Box, {
43302
+ bg: "darkBlue",
43303
+ textAlign: "center"
43304
+ }, /*#__PURE__*/React__default['default'].createElement(Text, {
43305
+ fontSize: "10px",
43306
+ letterSpacing: "0.5px",
43307
+ fontWeight: "bold",
43308
+ color: "white",
43309
+ textTransform: "uppercase",
43310
+ py: "2px"
43311
+ }, children));
43312
+ };
43313
+
43314
+ var MAX_LOGO_WIDTH = "184px";
43315
+ var MAX_LOGO_HEIGHT = "36px";
43316
+
43317
+ var BrandLogoContainer = function BrandLogoContainer(_ref) {
43318
+ var logoSrc = _ref.logoSrc,
43319
+ brandingLinkHref = _ref.brandingLinkHref,
43320
+ brandingLinkTo = _ref.brandingLinkTo,
43321
+ brandingLinkComponent = _ref.brandingLinkComponent,
43322
+ subtext = _ref.subtext;
43323
+ return /*#__PURE__*/React__default['default'].createElement(Box, {
43324
+ maxWidth: MAX_LOGO_WIDTH,
43325
+ maxHeight: MAX_LOGO_HEIGHT
43326
+ }, /*#__PURE__*/React__default['default'].createElement(Link, {
43327
+ "aria-label": "Home",
43328
+ href: brandingLinkHref,
43329
+ to: brandingLinkTo,
43330
+ as: brandingLinkComponent,
43331
+ underline: false,
43332
+ style: {
43333
+ display: "block"
43334
+ }
43335
+ }, logoSrc && /*#__PURE__*/React__default['default'].createElement("img", {
43336
+ src: logoSrc,
43337
+ style: {
43338
+ maxWidth: MAX_LOGO_WIDTH,
43339
+ maxHeight: MAX_LOGO_HEIGHT
43340
+ },
43341
+ alt: ""
43342
+ }), !logoSrc && /*#__PURE__*/React__default['default'].createElement(Branding, {
43343
+ size: subtext ? "small" : "medium",
43344
+ logoColor: "blue",
43345
+ subtext: subtext
43346
+ })));
43347
+ };
43348
+
43349
+ var borderStyle = "1px solid #e4e7eb";
45102
43350
  var BrandingWrap = styled__default['default'].div.withConfig({
45103
43351
  displayName: "MobileMenu__BrandingWrap",
45104
43352
  componentId: "sc-18t6zrc-0"
@@ -45325,7 +43573,7 @@
45325
43573
  logoColor: themeColorObject && themeColorObject.logoColor
45326
43574
  })), /*#__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
43575
  textAlign: "center",
45328
- borderTop: borderStyle$1,
43576
+ borderTop: borderStyle,
45329
43577
  height: "40px",
45330
43578
  alignItems: "center",
45331
43579
  justifyContent: "center"
@@ -45344,163 +43592,28 @@
45344
43592
  componentId: "sc-18t6zrc-6"
45345
43593
  })(display);
45346
43594
 
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
43595
  var NavBarBackground = styled__default['default'](Flex).withConfig({
45401
- displayName: "NavBar__NavBarBackground",
45402
- componentId: "cszq6w-0"
43596
+ displayName: "NavBarBackground",
43597
+ componentId: "sc-1g75y9j-0"
45403
43598
  })(function (_ref) {
45404
- var backgroundColor = _ref.backgroundColor,
45405
- theme = _ref.theme;
43599
+ var theme = _ref.theme;
45406
43600
  return {
45407
- background: backgroundColor,
45408
43601
  padding: "0 " + theme.space.x3,
45409
43602
  borderBottom: "1px solid " + theme.colors.lightGrey,
45410
43603
  alignItems: "center",
45411
- height: NAVBAR_HEIGHT,
45412
43604
  zIndex: theme.zIndices.navBar,
45413
43605
  position: "relative"
45414
43606
  };
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
- };
43607
+ }, addStyledProps);
45495
43608
 
45496
43609
  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;
43610
+ displayName: "SmallNavBar__MobileMenuTrigger",
43611
+ componentId: "ykabay-0"
43612
+ })(function (_ref) {
43613
+ var color = _ref.color,
43614
+ hoverColor = _ref.hoverColor,
43615
+ hoverBackground = _ref.hoverBackground,
43616
+ theme = _ref.theme;
45504
43617
  return {
45505
43618
  color: theme.colors[color] || color,
45506
43619
  background: "none",
@@ -45522,11 +43635,11 @@
45522
43635
  };
45523
43636
  });
45524
43637
  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;
43638
+ displayName: "SmallNavBar__SmallHeader",
43639
+ componentId: "ykabay-1"
43640
+ })(function (_ref2) {
43641
+ var isOpen = _ref2.isOpen,
43642
+ theme = _ref2.theme;
45530
43643
  return isOpen ? {
45531
43644
  position: "fixed",
45532
43645
  width: "100%",
@@ -45541,15 +43654,11 @@
45541
43654
  } : null;
45542
43655
  });
45543
43656
 
45544
- var pixelDigitsFrom = function pixelDigitsFrom(pixelString) {
45545
- return parseInt(pixelString, 10);
45546
- };
45547
-
45548
- var MenuIcon = function MenuIcon(_ref5) {
45549
- var isOpen = _ref5.isOpen;
43657
+ var MenuIcon = function MenuIcon(_ref3) {
43658
+ var isOpen = _ref3.isOpen;
45550
43659
 
45551
- var _useTranslation2 = useTranslation(),
45552
- t = _useTranslation2.t;
43660
+ var _useTranslation = useTranslation(),
43661
+ t = _useTranslation.t;
45553
43662
 
45554
43663
  var icon = isOpen ? "close" : "menu";
45555
43664
  var title = isOpen ? t("close menu") : t("open menu");
@@ -45568,14 +43677,16 @@
45568
43677
  toggleMenu = _a$menuState.toggleMenu,
45569
43678
  closeMenu = _a$menuState.closeMenu,
45570
43679
  subtext = _a.subtext,
45571
- _a$brandingLinkHref2 = _a.brandingLinkHref,
45572
- brandingLinkHref = _a$brandingLinkHref2 === void 0 ? "/" : _a$brandingLinkHref2,
43680
+ _a$brandingLinkHref = _a.brandingLinkHref,
43681
+ brandingLinkHref = _a$brandingLinkHref === void 0 ? "/" : _a$brandingLinkHref,
45573
43682
  brandingLinkTo = _a.brandingLinkTo,
45574
43683
  environment = _a.environment,
45575
43684
  logoSrc = _a.logoSrc,
45576
43685
  _a$breakpointLower = _a.breakpointLower,
45577
43686
  breakpointLower = _a$breakpointLower === void 0 ? "small" : _a$breakpointLower,
45578
- props = __rest(_a, ["menuData", "menuState", "subtext", "brandingLinkHref", "brandingLinkTo", "environment", "logoSrc", "breakpointLower"]);
43687
+ themeColorObject = _a.themeColorObject,
43688
+ navBarHeight = _a.navBarHeight,
43689
+ props = __rest(_a, ["menuData", "menuState", "subtext", "brandingLinkHref", "brandingLinkTo", "environment", "logoSrc", "breakpointLower", "themeColorObject", "navBarHeight"]);
45579
43690
 
45580
43691
  var navRef = React__default['default'].useRef(null);
45581
43692
  React.useEffect(function () {
@@ -45592,7 +43703,8 @@
45592
43703
  isOpen: isOpen,
45593
43704
  breakpointLower: breakpoints ? breakpoints[breakpointLower] : breakpointLower
45594
43705
  }, props), environment && /*#__PURE__*/React__default['default'].createElement(EnvironmentBanner, null, environment), /*#__PURE__*/React__default['default'].createElement(NavBarBackground, {
45595
- backgroundColor: "white"
43706
+ backgroundColor: "white",
43707
+ height: navBarHeight
45596
43708
  }, /*#__PURE__*/React__default['default'].createElement(BrandLogoContainer, {
45597
43709
  logoSrc: logoSrc,
45598
43710
  brandingLinkHref: brandingLinkHref,
@@ -45624,6 +43736,68 @@
45624
43736
 
45625
43737
  var SmallNavBar = withMenuState(SmallNavBarNoState);
45626
43738
 
43739
+ var NAVBAR_HEIGHT = "56px";
43740
+ var themeColorObject = {
43741
+ color: "darkBlue",
43742
+ hoverColor: "blackBlue",
43743
+ background: "white",
43744
+ hoverBackground: "whiteGrey",
43745
+ textColor: "blackBlue",
43746
+ logoColor: "blue"
43747
+ };
43748
+
43749
+ var MediumNavBar = function MediumNavBar(_a) {
43750
+ var menuData = _a.menuData,
43751
+ subtext = _a.subtext,
43752
+ environment = _a.environment,
43753
+ logoSrc = _a.logoSrc,
43754
+ _a$brandingLinkHref = _a.brandingLinkHref,
43755
+ brandingLinkHref = _a$brandingLinkHref === void 0 ? "/" : _a$brandingLinkHref,
43756
+ brandingLinkTo = _a.brandingLinkTo,
43757
+ brandingLinkComponent = _a.brandingLinkComponent,
43758
+ props = __rest(_a, ["menuData", "subtext", "environment", "logoSrc", "brandingLinkHref", "brandingLinkTo", "brandingLinkComponent"]);
43759
+
43760
+ var _useTranslation = useTranslation(),
43761
+ t = _useTranslation.t;
43762
+
43763
+ 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, {
43764
+ backgroundColor: "white",
43765
+ height: NAVBAR_HEIGHT
43766
+ }, /*#__PURE__*/React__default['default'].createElement(BrandLogoContainer, {
43767
+ logoSrc: logoSrc,
43768
+ brandingLinkHref: brandingLinkHref,
43769
+ brandingLinkTo: brandingLinkTo,
43770
+ brandingLinkComponent: brandingLinkComponent,
43771
+ subtext: subtext
43772
+ }), /*#__PURE__*/React__default['default'].createElement(Flex, {
43773
+ justifyContent: "space-between",
43774
+ alignContent: "flex-end",
43775
+ flexGrow: 1,
43776
+ ml: "x3",
43777
+ alignItems: "center"
43778
+ }, menuData.primaryMenu && /*#__PURE__*/React__default['default'].createElement(DesktopMenu, {
43779
+ themeColorObject: themeColorObject,
43780
+ "aria-label": t("primary navigation"),
43781
+ menuData: menuData.primaryMenu
43782
+ }), /*#__PURE__*/React__default['default'].createElement(Flex, {
43783
+ justifySelf: "flex-end",
43784
+ alignItems: "center"
43785
+ }, menuData.secondaryMenu && /*#__PURE__*/React__default['default'].createElement(DesktopMenu, {
43786
+ themeColorObject: themeColorObject,
43787
+ "aria-label": t("secondary navigation"),
43788
+ menuData: menuData.secondaryMenu
43789
+ }), logoSrc && /*#__PURE__*/React__default['default'].createElement(Box, {
43790
+ pl: "x3"
43791
+ }, /*#__PURE__*/React__default['default'].createElement(NulogyLogoContainer, {
43792
+ height: NAVBAR_HEIGHT,
43793
+ subText: subtext
43794
+ })))))));
43795
+ };
43796
+
43797
+ var pixelDigitsFrom = function pixelDigitsFrom(pixelString) {
43798
+ return parseInt(pixelString, 10);
43799
+ };
43800
+
45627
43801
  var SelectNavBarBasedOnWidth = function SelectNavBarBasedOnWidth(_a) {
45628
43802
  var width = _a.width,
45629
43803
  defaultOpen = _a.defaultOpen,
@@ -45637,7 +43811,9 @@
45637
43811
  } else {
45638
43812
  return /*#__PURE__*/React__default['default'].createElement(SmallNavBar, Object.assign({}, props, {
45639
43813
  width: currentWidth,
45640
- defaultOpen: defaultOpen
43814
+ defaultOpen: defaultOpen,
43815
+ themeColorObject: themeColorObject,
43816
+ navBarHeight: NAVBAR_HEIGHT
45641
43817
  }));
45642
43818
  }
45643
43819
  };
@@ -45648,10 +43824,10 @@
45648
43824
  breakpointUpper = _a$breakpointUpper === void 0 ? "medium" : _a$breakpointUpper,
45649
43825
  props = __rest(_a, ["environment", "breakpointUpper"]);
45650
43826
 
45651
- var _useTheme2 = styled.useTheme(),
45652
- breakpoints = _useTheme2.breakpoints;
43827
+ var _useTheme = styled.useTheme(),
43828
+ breakpoints = _useTheme.breakpoints;
45653
43829
 
45654
- return /*#__PURE__*/React__default['default'].createElement(ResizeDetector, {
43830
+ return /*#__PURE__*/React__default['default'].createElement(ReactResizeDetector__default['default'], {
45655
43831
  handleWidth: true
45656
43832
  }, /*#__PURE__*/React__default['default'].createElement(SelectNavBarBasedOnWidth, Object.assign({
45657
43833
  breakpointUpper: breakpoints[breakpointUpper] || breakpointUpper
@@ -45662,7 +43838,7 @@
45662
43838
 
45663
43839
  var NavBar = styled__default['default'](BaseNavBar).withConfig({
45664
43840
  displayName: "NavBar",
45665
- componentId: "cszq6w-3"
43841
+ componentId: "cszq6w-0"
45666
43842
  })({});
45667
43843
 
45668
43844
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -47686,7 +45862,7 @@
47686
45862
 
47687
45863
  var cleanValue = function cleanValue(value) {
47688
45864
  if (Array.isArray(value)) return value.filter(Boolean);
47689
- if (_typeof$2(value) === 'object' && value !== null) return [value];
45865
+ if (_typeof(value) === 'object' && value !== null) return [value];
47690
45866
  return [];
47691
45867
  }; // ==============================
47692
45868
  // Handle Input Change
@@ -47835,9 +46011,9 @@
47835
46011
 
47836
46012
  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
46013
 
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; }
46014
+ 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
46015
 
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); }; }
46016
+ 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
46017
 
47842
46018
  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
46019
  function getMenuPlacement(_ref) {
@@ -48026,21 +46202,21 @@
48026
46202
  colors = _ref2$theme.colors;
48027
46203
  return _ref3 = {
48028
46204
  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;
46205
+ }, _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
46206
  };
48031
46207
  var PortalPlacementContext = /*#__PURE__*/React.createContext({
48032
46208
  getPortalPlacement: null
48033
46209
  }); // NOTE: internal only
48034
46210
 
48035
46211
  var MenuPlacer = /*#__PURE__*/function (_Component) {
48036
- _inherits$2(MenuPlacer, _Component);
46212
+ _inherits(MenuPlacer, _Component);
48037
46213
 
48038
46214
  var _super = _createSuper$5(MenuPlacer);
48039
46215
 
48040
46216
  function MenuPlacer() {
48041
46217
  var _this;
48042
46218
 
48043
- _classCallCheck$2(this, MenuPlacer);
46219
+ _classCallCheck(this, MenuPlacer);
48044
46220
 
48045
46221
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
48046
46222
  args[_key] = arguments[_key];
@@ -48091,7 +46267,7 @@
48091
46267
  return _this;
48092
46268
  }
48093
46269
 
48094
- _createClass$2(MenuPlacer, [{
46270
+ _createClass(MenuPlacer, [{
48095
46271
  key: "render",
48096
46272
  value: function render() {
48097
46273
  var children = this.props.children;
@@ -48221,14 +46397,14 @@
48221
46397
  };
48222
46398
  };
48223
46399
  var MenuPortal = /*#__PURE__*/function (_Component2) {
48224
- _inherits$2(MenuPortal, _Component2);
46400
+ _inherits(MenuPortal, _Component2);
48225
46401
 
48226
46402
  var _super2 = _createSuper$5(MenuPortal);
48227
46403
 
48228
46404
  function MenuPortal() {
48229
46405
  var _this2;
48230
46406
 
48231
- _classCallCheck$2(this, MenuPortal);
46407
+ _classCallCheck(this, MenuPortal);
48232
46408
 
48233
46409
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
48234
46410
  args[_key2] = arguments[_key2];
@@ -48253,7 +46429,7 @@
48253
46429
  return _this2;
48254
46430
  }
48255
46431
 
48256
- _createClass$2(MenuPortal, [{
46432
+ _createClass(MenuPortal, [{
48257
46433
  key: "render",
48258
46434
  value: function render() {
48259
46435
  var _this$props2 = this.props,
@@ -48301,7 +46477,7 @@
48301
46477
  // fast-deep-equal index.js 2.0.1
48302
46478
  if (a === b) return true;
48303
46479
 
48304
- if (a && b && _typeof$2(a) == 'object' && _typeof$2(b) == 'object') {
46480
+ if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
48305
46481
  var arrA = isArray(a),
48306
46482
  arrB = isArray(b),
48307
46483
  i,
@@ -48721,7 +46897,7 @@
48721
46897
 
48722
46898
  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
46899
 
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; }
46900
+ 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
46901
  var groupCSS = function groupCSS(_ref) {
48726
46902
  var spacing = _ref.theme.spacing;
48727
46903
  return {
@@ -48788,7 +46964,7 @@
48788
46964
 
48789
46965
  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
46966
 
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; }
46967
+ 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
46968
  var inputCSS = function inputCSS(_ref) {
48793
46969
  var isDisabled = _ref.isDisabled,
48794
46970
  _ref$theme = _ref.theme,
@@ -48843,7 +47019,7 @@
48843
47019
 
48844
47020
  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
47021
 
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; }
47022
+ 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
47023
  var multiValueCSS = function multiValueCSS(_ref) {
48848
47024
  var _ref$theme = _ref.theme,
48849
47025
  spacing = _ref$theme.spacing,
@@ -49073,7 +47249,7 @@
49073
47249
 
49074
47250
  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
47251
 
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; }
47252
+ 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
47253
  var components = {
49078
47254
  ClearIndicator: ClearIndicator,
49079
47255
  Control: Control,
@@ -49456,7 +47632,7 @@
49456
47632
 
49457
47633
  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
47634
 
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; }
47635
+ 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
47636
 
49461
47637
  var trimString = function trimString(str) {
49462
47638
  return str.replace(/^\s+|\s+$/g, '');
@@ -49551,22 +47727,22 @@
49551
47727
  }));
49552
47728
  }
49553
47729
 
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); }; }
47730
+ 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
47731
 
49556
47732
  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
47733
 
49558
47734
  var NodeResolver = /*#__PURE__*/function (_Component) {
49559
- _inherits$2(NodeResolver, _Component);
47735
+ _inherits(NodeResolver, _Component);
49560
47736
 
49561
47737
  var _super = _createSuper$2(NodeResolver);
49562
47738
 
49563
47739
  function NodeResolver() {
49564
- _classCallCheck$2(this, NodeResolver);
47740
+ _classCallCheck(this, NodeResolver);
49565
47741
 
49566
47742
  return _super.apply(this, arguments);
49567
47743
  }
49568
47744
 
49569
- _createClass$2(NodeResolver, [{
47745
+ _createClass(NodeResolver, [{
49570
47746
  key: "componentDidMount",
49571
47747
  value: function componentDidMount() {
49572
47748
  this.props.innerRef(reactDom.findDOMNode(this));
@@ -49618,21 +47794,21 @@
49618
47794
  return 'ontouchstart' in window || navigator.maxTouchPoints;
49619
47795
  }
49620
47796
 
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); }; }
47797
+ 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
47798
 
49623
47799
  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
47800
  var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
49625
47801
  var activeScrollLocks = 0;
49626
47802
 
49627
47803
  var ScrollLock = /*#__PURE__*/function (_Component) {
49628
- _inherits$2(ScrollLock, _Component);
47804
+ _inherits(ScrollLock, _Component);
49629
47805
 
49630
47806
  var _super = _createSuper$1$1(ScrollLock);
49631
47807
 
49632
47808
  function ScrollLock() {
49633
47809
  var _this;
49634
47810
 
49635
- _classCallCheck$2(this, ScrollLock);
47811
+ _classCallCheck(this, ScrollLock);
49636
47812
 
49637
47813
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
49638
47814
  args[_key] = arguments[_key];
@@ -49647,7 +47823,7 @@
49647
47823
  return _this;
49648
47824
  }
49649
47825
 
49650
- _createClass$2(ScrollLock, [{
47826
+ _createClass(ScrollLock, [{
49651
47827
  key: "componentDidMount",
49652
47828
  value: function componentDidMount() {
49653
47829
  var _this2 = this;
@@ -49749,7 +47925,7 @@
49749
47925
 
49750
47926
  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
47927
 
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); }; }
47928
+ 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
47929
 
49754
47930
  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
47931
 
@@ -49768,14 +47944,14 @@
49768
47944
  // - createRef() https://reactjs.org/docs/react-api.html#reactcreateref
49769
47945
  // - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref
49770
47946
  var ScrollBlock = /*#__PURE__*/function (_PureComponent) {
49771
- _inherits$2(ScrollBlock, _PureComponent);
47947
+ _inherits(ScrollBlock, _PureComponent);
49772
47948
 
49773
47949
  var _super = _createSuper$2$1(ScrollBlock);
49774
47950
 
49775
47951
  function ScrollBlock() {
49776
47952
  var _this;
49777
47953
 
49778
- _classCallCheck$2(this, ScrollBlock);
47954
+ _classCallCheck(this, ScrollBlock);
49779
47955
 
49780
47956
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
49781
47957
  args[_key] = arguments[_key];
@@ -49803,7 +47979,7 @@
49803
47979
  return _this;
49804
47980
  }
49805
47981
 
49806
- _createClass$2(ScrollBlock, [{
47982
+ _createClass(ScrollBlock, [{
49807
47983
  key: "render",
49808
47984
  value: function render() {
49809
47985
  var _this$props = this.props,
@@ -49839,19 +48015,19 @@
49839
48015
  return ScrollBlock;
49840
48016
  }(React.PureComponent);
49841
48017
 
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); }; }
48018
+ 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
48019
 
49844
48020
  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
48021
 
49846
48022
  var ScrollCaptor = /*#__PURE__*/function (_Component) {
49847
- _inherits$2(ScrollCaptor, _Component);
48023
+ _inherits(ScrollCaptor, _Component);
49848
48024
 
49849
48025
  var _super = _createSuper$3(ScrollCaptor);
49850
48026
 
49851
48027
  function ScrollCaptor() {
49852
48028
  var _this;
49853
48029
 
49854
- _classCallCheck$2(this, ScrollCaptor);
48030
+ _classCallCheck(this, ScrollCaptor);
49855
48031
 
49856
48032
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
49857
48033
  args[_key] = arguments[_key];
@@ -49940,7 +48116,7 @@
49940
48116
  return _this;
49941
48117
  }
49942
48118
 
49943
- _createClass$2(ScrollCaptor, [{
48119
+ _createClass(ScrollCaptor, [{
49944
48120
  key: "componentDidMount",
49945
48121
  value: function componentDidMount() {
49946
48122
  this.startListening(this.scrollTarget);
@@ -50133,9 +48309,9 @@
50133
48309
 
50134
48310
  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
48311
 
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; }
48312
+ 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
48313
 
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); }; }
48314
+ 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
48315
 
50140
48316
  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
48317
  var defaultProps$2 = {
@@ -50186,7 +48362,7 @@
50186
48362
  var instanceId = 1;
50187
48363
 
50188
48364
  var Select = /*#__PURE__*/function (_Component) {
50189
- _inherits$2(Select, _Component);
48365
+ _inherits(Select, _Component);
50190
48366
 
50191
48367
  var _super = _createSuper$4(Select);
50192
48368
 
@@ -50200,7 +48376,7 @@
50200
48376
  function Select(_props) {
50201
48377
  var _this;
50202
48378
 
50203
- _classCallCheck$2(this, Select);
48379
+ _classCallCheck(this, Select);
50204
48380
 
50205
48381
  _this = _super.call(this, _props);
50206
48382
  _this.state = {
@@ -50987,7 +49163,7 @@
50987
49163
  };
50988
49164
 
50989
49165
  var _value = _props.value;
50990
- _this.cacheComponents = memoizeOne(_this.cacheComponents, exportedEqual).bind(_assertThisInitialized$3(_this));
49166
+ _this.cacheComponents = memoizeOne(_this.cacheComponents, exportedEqual).bind(_assertThisInitialized$1(_this));
50991
49167
 
50992
49168
  _this.cacheComponents(_props.components);
50993
49169
 
@@ -51007,7 +49183,7 @@
51007
49183
  lastSelectValue = _ref9[1];
51008
49184
 
51009
49185
  return newSelectValue === lastSelectValue && newProps.inputValue === lastProps.inputValue && newProps.options === lastProps.options;
51010
- }).bind(_assertThisInitialized$3(_this));
49186
+ }).bind(_assertThisInitialized$1(_this));
51011
49187
 
51012
49188
  var _menuOptions = _props.menuIsOpen ? _this.buildMenuOptions(_props, _selectValue) : {
51013
49189
  render: [],
@@ -51019,7 +49195,7 @@
51019
49195
  return _this;
51020
49196
  }
51021
49197
 
51022
- _createClass$2(Select, [{
49198
+ _createClass(Select, [{
51023
49199
  key: "componentDidMount",
51024
49200
  value: function componentDidMount() {
51025
49201
  this.startListeningComposition();
@@ -51988,7 +50164,7 @@
51988
50164
 
51989
50165
  Select.defaultProps = defaultProps$2;
51990
50166
 
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); }; }
50167
+ 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
50168
 
51993
50169
  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
50170
  var defaultProps$1 = {
@@ -52001,14 +50177,14 @@
52001
50177
  var _class, _temp;
52002
50178
 
52003
50179
  return _temp = _class = /*#__PURE__*/function (_Component) {
52004
- _inherits$2(StateManager, _Component);
50180
+ _inherits(StateManager, _Component);
52005
50181
 
52006
50182
  var _super = _createSuper$1(StateManager);
52007
50183
 
52008
50184
  function StateManager() {
52009
50185
  var _this;
52010
50186
 
52011
- _classCallCheck$2(this, StateManager);
50187
+ _classCallCheck(this, StateManager);
52012
50188
 
52013
50189
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
52014
50190
  args[_key] = arguments[_key];
@@ -52059,7 +50235,7 @@
52059
50235
  return _this;
52060
50236
  }
52061
50237
 
52062
- _createClass$2(StateManager, [{
50238
+ _createClass(StateManager, [{
52063
50239
  key: "focus",
52064
50240
  value: function focus() {
52065
50241
  this.select.focus();
@@ -52119,7 +50295,7 @@
52119
50295
  }(React.Component), _class.defaultProps = defaultProps$1, _temp;
52120
50296
  };
52121
50297
 
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); }; }
50298
+ 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
50299
 
52124
50300
  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
50301
  var defaultProps = {
@@ -52132,14 +50308,14 @@
52132
50308
  var _class, _temp;
52133
50309
 
52134
50310
  return _temp = _class = /*#__PURE__*/function (_Component) {
52135
- _inherits$2(Async, _Component);
50311
+ _inherits(Async, _Component);
52136
50312
 
52137
50313
  var _super = _createSuper(Async);
52138
50314
 
52139
50315
  function Async(props) {
52140
50316
  var _this;
52141
50317
 
52142
- _classCallCheck$2(this, Async);
50318
+ _classCallCheck(this, Async);
52143
50319
 
52144
50320
  _this = _super.call(this);
52145
50321
  _this.select = void 0;
@@ -52217,7 +50393,7 @@
52217
50393
  return _this;
52218
50394
  }
52219
50395
 
52220
- _createClass$2(Async, [{
50396
+ _createClass(Async, [{
52221
50397
  key: "componentDidMount",
52222
50398
  value: function componentDidMount() {
52223
50399
  var _this2 = this;
@@ -52765,6 +50941,7 @@
52765
50941
  exports.ApplicationFrame = ApplicationFrame;
52766
50942
  exports.AsyncSelect = AsyncSelect;
52767
50943
  exports.Box = Box;
50944
+ exports.BrandLogoContainer = BrandLogoContainer;
52768
50945
  exports.BrandedNavBar = NavBar;
52769
50946
  exports.Branding = Branding;
52770
50947
  exports.Breadcrumbs = Breadcrumbs;
@@ -52778,12 +50955,14 @@
52778
50955
  exports.DangerButton = DangerButton;
52779
50956
  exports.DatePicker = DatePicker;
52780
50957
  exports.DateRange = DateRange;
50958
+ exports.DesktopMenu = DesktopMenu;
52781
50959
  exports.Divider = Divider;
52782
50960
  exports.DropdownButton = DropdownButton;
52783
50961
  exports.DropdownItem = DropdownItem;
52784
50962
  exports.DropdownLink = DropdownLink;
52785
50963
  exports.DropdownMenu = DropdownMenu;
52786
50964
  exports.DropdownText = DropdownText;
50965
+ exports.EnvironmentBanner = EnvironmentBanner;
52787
50966
  exports.Field = Field;
52788
50967
  exports.FieldLabel = FieldLabel;
52789
50968
  exports.Fieldset = Fieldset;
@@ -52804,9 +50983,11 @@
52804
50983
  exports.List = List;
52805
50984
  exports.ListItem = ListItem;
52806
50985
  exports.LoadingAnimation = LoadingAnimation;
50986
+ exports.MenuTrigger = MenuTrigger;
52807
50987
  exports.Modal = Modal;
52808
50988
  exports.NDSProvider = NDSProvider;
52809
50989
  exports.NavBar = NavBar$1;
50990
+ exports.NavBarBackground = NavBarBackground;
52810
50991
  exports.Overlay = Overlay;
52811
50992
  exports.Page = Page;
52812
50993
  exports.Pagination = Pagination;
@@ -52826,6 +51007,7 @@
52826
51007
  exports.SelectMultiValue = SelectMultiValue;
52827
51008
  exports.SelectOption = SelectOption;
52828
51009
  exports.Sidebar = Sidebar;
51010
+ exports.SmallNavBar = SmallNavBar;
52829
51011
  exports.SortingTable = SortingTable;
52830
51012
  exports.StatusIndicator = StatusIndicator;
52831
51013
  exports.Switch = Switch;