AdSense Plugin WP QUADS - Version 2.0.24

Version Description

(3th April 2021) = * New: Check list for 2.0.24 #334 * New: Click Fraud Protection is not working perfectly #332 * New: Geolocation targeting feature is not working cloudflare server. #337 * Fix: No country names when selected Country from the Excluded list. #336

Download this release

Release Info

Developer wpquads
Plugin Icon 128x128 AdSense Plugin WP QUADS
Version 2.0.24
Comparing to
See all releases

Code changes from version 2.0.23 to 2.0.24

Files changed (1) hide show
  1. admin/assets/js/dist/adminscript.js +0 -27424
admin/assets/js/dist/adminscript.js CHANGED
@@ -1,144846 +1 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
- /******/
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
- /******/
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId]) {
10
- /******/ return installedModules[moduleId].exports;
11
- /******/ }
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ i: moduleId,
15
- /******/ l: false,
16
- /******/ exports: {}
17
- /******/ };
18
- /******/
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
- /******/
22
- /******/ // Flag the module as loaded
23
- /******/ module.l = true;
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
- /******/
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
- /******/
36
- /******/ // define getter function for harmony exports
37
- /******/ __webpack_require__.d = function(exports, name, getter) {
38
- /******/ if(!__webpack_require__.o(exports, name)) {
39
- /******/ Object.defineProperty(exports, name, {
40
- /******/ configurable: false,
41
- /******/ enumerable: true,
42
- /******/ get: getter
43
- /******/ });
44
- /******/ }
45
- /******/ };
46
- /******/
47
- /******/ // getDefaultExport function for compatibility with non-harmony modules
48
- /******/ __webpack_require__.n = function(module) {
49
- /******/ var getter = module && module.__esModule ?
50
- /******/ function getDefault() { return module['default']; } :
51
- /******/ function getModuleExports() { return module; };
52
- /******/ __webpack_require__.d(getter, 'a', getter);
53
- /******/ return getter;
54
- /******/ };
55
- /******/
56
- /******/ // Object.prototype.hasOwnProperty.call
57
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58
- /******/
59
- /******/ // __webpack_public_path__
60
- /******/ __webpack_require__.p = "";
61
- /******/
62
- /******/ // Load entry module and return exports
63
- /******/ return __webpack_require__(__webpack_require__.s = 470);
64
- /******/ })
65
- /************************************************************************/
66
- /******/ ([
67
- /* 0 */
68
- /***/ (function(module, exports, __webpack_require__) {
69
-
70
- "use strict";
71
- /* WEBPACK VAR INJECTION */(function(process) {
72
-
73
- if (process.env.NODE_ENV === 'production') {
74
- module.exports = __webpack_require__(471);
75
- } else {
76
- module.exports = __webpack_require__(472);
77
- }
78
-
79
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
80
-
81
- /***/ }),
82
- /* 1 */
83
- /***/ (function(module, exports) {
84
-
85
- // shim for using process in browser
86
- var process = module.exports = {};
87
-
88
- // cached from whatever global is present so that test runners that stub it
89
- // don't break things. But we need to wrap it in a try catch in case it is
90
- // wrapped in strict mode code which doesn't define any globals. It's inside a
91
- // function because try/catches deoptimize in certain engines.
92
-
93
- var cachedSetTimeout;
94
- var cachedClearTimeout;
95
-
96
- function defaultSetTimout() {
97
- throw new Error('setTimeout has not been defined');
98
- }
99
- function defaultClearTimeout () {
100
- throw new Error('clearTimeout has not been defined');
101
- }
102
- (function () {
103
- try {
104
- if (typeof setTimeout === 'function') {
105
- cachedSetTimeout = setTimeout;
106
- } else {
107
- cachedSetTimeout = defaultSetTimout;
108
- }
109
- } catch (e) {
110
- cachedSetTimeout = defaultSetTimout;
111
- }
112
- try {
113
- if (typeof clearTimeout === 'function') {
114
- cachedClearTimeout = clearTimeout;
115
- } else {
116
- cachedClearTimeout = defaultClearTimeout;
117
- }
118
- } catch (e) {
119
- cachedClearTimeout = defaultClearTimeout;
120
- }
121
- } ())
122
- function runTimeout(fun) {
123
- if (cachedSetTimeout === setTimeout) {
124
- //normal enviroments in sane situations
125
- return setTimeout(fun, 0);
126
- }
127
- // if setTimeout wasn't available but was latter defined
128
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
129
- cachedSetTimeout = setTimeout;
130
- return setTimeout(fun, 0);
131
- }
132
- try {
133
- // when when somebody has screwed with setTimeout but no I.E. maddness
134
- return cachedSetTimeout(fun, 0);
135
- } catch(e){
136
- try {
137
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
138
- return cachedSetTimeout.call(null, fun, 0);
139
- } catch(e){
140
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
141
- return cachedSetTimeout.call(this, fun, 0);
142
- }
143
- }
144
-
145
-
146
- }
147
- function runClearTimeout(marker) {
148
- if (cachedClearTimeout === clearTimeout) {
149
- //normal enviroments in sane situations
150
- return clearTimeout(marker);
151
- }
152
- // if clearTimeout wasn't available but was latter defined
153
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
154
- cachedClearTimeout = clearTimeout;
155
- return clearTimeout(marker);
156
- }
157
- try {
158
- // when when somebody has screwed with setTimeout but no I.E. maddness
159
- return cachedClearTimeout(marker);
160
- } catch (e){
161
- try {
162
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
163
- return cachedClearTimeout.call(null, marker);
164
- } catch (e){
165
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
166
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
167
- return cachedClearTimeout.call(this, marker);
168
- }
169
- }
170
-
171
-
172
-
173
- }
174
- var queue = [];
175
- var draining = false;
176
- var currentQueue;
177
- var queueIndex = -1;
178
-
179
- function cleanUpNextTick() {
180
- if (!draining || !currentQueue) {
181
- return;
182
- }
183
- draining = false;
184
- if (currentQueue.length) {
185
- queue = currentQueue.concat(queue);
186
- } else {
187
- queueIndex = -1;
188
- }
189
- if (queue.length) {
190
- drainQueue();
191
- }
192
- }
193
-
194
- function drainQueue() {
195
- if (draining) {
196
- return;
197
- }
198
- var timeout = runTimeout(cleanUpNextTick);
199
- draining = true;
200
-
201
- var len = queue.length;
202
- while(len) {
203
- currentQueue = queue;
204
- queue = [];
205
- while (++queueIndex < len) {
206
- if (currentQueue) {
207
- currentQueue[queueIndex].run();
208
- }
209
- }
210
- queueIndex = -1;
211
- len = queue.length;
212
- }
213
- currentQueue = null;
214
- draining = false;
215
- runClearTimeout(timeout);
216
- }
217
-
218
- process.nextTick = function (fun) {
219
- var args = new Array(arguments.length - 1);
220
- if (arguments.length > 1) {
221
- for (var i = 1; i < arguments.length; i++) {
222
- args[i - 1] = arguments[i];
223
- }
224
- }
225
- queue.push(new Item(fun, args));
226
- if (queue.length === 1 && !draining) {
227
- runTimeout(drainQueue);
228
- }
229
- };
230
-
231
- // v8 likes predictible objects
232
- function Item(fun, array) {
233
- this.fun = fun;
234
- this.array = array;
235
- }
236
- Item.prototype.run = function () {
237
- this.fun.apply(null, this.array);
238
- };
239
- process.title = 'browser';
240
- process.browser = true;
241
- process.env = {};
242
- process.argv = [];
243
- process.version = ''; // empty string to avoid regexp issues
244
- process.versions = {};
245
-
246
- function noop() {}
247
-
248
- process.on = noop;
249
- process.addListener = noop;
250
- process.once = noop;
251
- process.off = noop;
252
- process.removeListener = noop;
253
- process.removeAllListeners = noop;
254
- process.emit = noop;
255
- process.prependListener = noop;
256
- process.prependOnceListener = noop;
257
-
258
- process.listeners = function (name) { return [] }
259
-
260
- process.binding = function (name) {
261
- throw new Error('process.binding is not supported');
262
- };
263
-
264
- process.cwd = function () { return '/' };
265
- process.chdir = function (dir) {
266
- throw new Error('process.chdir is not supported');
267
- };
268
- process.umask = function() { return 0; };
269
-
270
-
271
- /***/ }),
272
- /* 2 */
273
- /***/ (function(module, exports, __webpack_require__) {
274
-
275
- /* WEBPACK VAR INJECTION */(function(process) {/**
276
- * Copyright (c) 2013-present, Facebook, Inc.
277
- *
278
- * This source code is licensed under the MIT license found in the
279
- * LICENSE file in the root directory of this source tree.
280
- */
281
-
282
- if (process.env.NODE_ENV !== 'production') {
283
- var ReactIs = __webpack_require__(19);
284
-
285
- // By explicitly using `prop-types` you are opting into new development behavior.
286
- // http://fb.me/prop-types-in-prod
287
- var throwOnDirectAccess = true;
288
- module.exports = __webpack_require__(482)(ReactIs.isElement, throwOnDirectAccess);
289
- } else {
290
- // By explicitly using `prop-types` you are opting into new production behavior.
291
- // http://fb.me/prop-types-in-prod
292
- module.exports = __webpack_require__(483)();
293
- }
294
-
295
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
296
-
297
- /***/ }),
298
- /* 3 */
299
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
300
-
301
- "use strict";
302
- /* harmony export (immutable) */ __webpack_exports__["a"] = _extends;
303
- function _extends() {
304
- _extends = Object.assign || function (target) {
305
- for (var i = 1; i < arguments.length; i++) {
306
- var source = arguments[i];
307
-
308
- for (var key in source) {
309
- if (Object.prototype.hasOwnProperty.call(source, key)) {
310
- target[key] = source[key];
311
- }
312
- }
313
- }
314
-
315
- return target;
316
- };
317
-
318
- return _extends.apply(this, arguments);
319
- }
320
-
321
- /***/ }),
322
- /* 4 */
323
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
324
-
325
- "use strict";
326
- /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutProperties;
327
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose__ = __webpack_require__(47);
328
-
329
- function _objectWithoutProperties(source, excluded) {
330
- if (source == null) return {};
331
- var target = Object(__WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose__["a" /* default */])(source, excluded);
332
- var key, i;
333
-
334
- if (Object.getOwnPropertySymbols) {
335
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
336
-
337
- for (i = 0; i < sourceSymbolKeys.length; i++) {
338
- key = sourceSymbolKeys[i];
339
- if (excluded.indexOf(key) >= 0) continue;
340
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
341
- target[key] = source[key];
342
- }
343
- }
344
-
345
- return target;
346
- }
347
-
348
- /***/ }),
349
- /* 5 */
350
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
351
-
352
- "use strict";
353
- function toVal(mix) {
354
- var k, y, str='';
355
-
356
- if (typeof mix === 'string' || typeof mix === 'number') {
357
- str += mix;
358
- } else if (typeof mix === 'object') {
359
- if (Array.isArray(mix)) {
360
- for (k=0; k < mix.length; k++) {
361
- if (mix[k]) {
362
- if (y = toVal(mix[k])) {
363
- str && (str += ' ');
364
- str += y;
365
- }
366
- }
367
- }
368
- } else {
369
- for (k in mix) {
370
- if (mix[k]) {
371
- str && (str += ' ');
372
- str += k;
373
- }
374
- }
375
- }
376
- }
377
-
378
- return str;
379
- }
380
-
381
- /* harmony default export */ __webpack_exports__["a"] = (function () {
382
- var i=0, tmp, x, str='';
383
- while (i < arguments.length) {
384
- if (tmp = arguments[i++]) {
385
- if (x = toVal(tmp)) {
386
- str && (str += ' ');
387
- str += x
388
- }
389
- }
390
- }
391
- return str;
392
- });
393
-
394
-
395
- /***/ }),
396
- /* 6 */
397
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
398
-
399
- "use strict";
400
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
401
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_styles__ = __webpack_require__(27);
402
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(75);
403
-
404
-
405
-
406
-
407
- function withStyles(stylesOrCreator, options) {
408
- return Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_styles__["g" /* withStyles */])(stylesOrCreator, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
409
- defaultTheme: __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */]
410
- }, options));
411
- }
412
-
413
- /* harmony default export */ __webpack_exports__["a"] = (withStyles);
414
-
415
- /***/ }),
416
- /* 7 */
417
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
418
-
419
- "use strict";
420
- /* harmony export (immutable) */ __webpack_exports__["a"] = requiredArgs;
421
- function requiredArgs(required, args) {
422
- if (args.length < required) {
423
- throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
424
- }
425
- }
426
-
427
- /***/ }),
428
- /* 8 */
429
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
430
-
431
- "use strict";
432
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__ = __webpack_require__(141);
433
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__["a"]; });
434
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__deepmerge__ = __webpack_require__(501);
435
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_1__deepmerge__["a"]; });
436
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__ = __webpack_require__(502);
437
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__["a"]; });
438
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__ = __webpack_require__(503);
439
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__["a"]; });
440
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__exactProp__ = __webpack_require__(504);
441
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__exactProp__["a"]; });
442
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__ = __webpack_require__(505);
443
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__["a"]; });
444
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__getDisplayName__ = __webpack_require__(506);
445
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_6__getDisplayName__["a"]; });
446
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__ = __webpack_require__(507);
447
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__["a"]; });
448
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__ = __webpack_require__(508);
449
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__["a"]; });
450
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__refType__ = __webpack_require__(509);
451
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__refType__["a"]; });
452
- /** @license Material-UI v4.11.2
453
- *
454
- * This source code is licensed under the MIT license found in the
455
- * LICENSE file in the root directory of this source tree.
456
- */
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
- /***/ }),
469
- /* 9 */
470
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
471
-
472
- "use strict";
473
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
474
- /* harmony export (immutable) */ __webpack_exports__["default"] = toDate;
475
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_requiredArgs_index_js__ = __webpack_require__(7);
476
-
477
- /**
478
- * @name toDate
479
- * @category Common Helpers
480
- * @summary Convert the given argument to an instance of Date.
481
- *
482
- * @description
483
- * Convert the given argument to an instance of Date.
484
- *
485
- * If the argument is an instance of Date, the function returns its clone.
486
- *
487
- * If the argument is a number, it is treated as a timestamp.
488
- *
489
- * If the argument is none of the above, the function returns Invalid Date.
490
- *
491
- * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
492
- *
493
- * @param {Date|Number} argument - the value to convert
494
- * @returns {Date} the parsed date in the local time zone
495
- * @throws {TypeError} 1 argument required
496
- *
497
- * @example
498
- * // Clone the date:
499
- * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
500
- * //=> Tue Feb 11 2014 11:30:30
501
- *
502
- * @example
503
- * // Convert the timestamp to date:
504
- * const result = toDate(1392098430000)
505
- * //=> Tue Feb 11 2014 11:30:30
506
- */
507
-
508
- function toDate(argument) {
509
- Object(__WEBPACK_IMPORTED_MODULE_0__lib_requiredArgs_index_js__["a" /* default */])(1, arguments);
510
- var argStr = Object.prototype.toString.call(argument); // Clone the date
511
-
512
- if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
513
- // Prevent the date to lose the milliseconds when passed to new Date() in IE10
514
- return new Date(argument.getTime());
515
- } else if (typeof argument === 'number' || argStr === '[object Number]') {
516
- return new Date(argument);
517
- } else {
518
- if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
519
- // eslint-disable-next-line no-console
520
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console
521
-
522
- console.warn(new Error().stack);
523
- }
524
-
525
- return new Date(NaN);
526
- }
527
- }
528
-
529
- /***/ }),
530
- /* 10 */
531
- /***/ (function(module, exports, __webpack_require__) {
532
-
533
- "use strict";
534
-
535
-
536
- Object.defineProperty(exports, "__esModule", {
537
- value: true
538
- });
539
- exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
540
-
541
- var _flattenNames = __webpack_require__(800);
542
-
543
- var _flattenNames2 = _interopRequireDefault(_flattenNames);
544
-
545
- var _mergeClasses = __webpack_require__(876);
546
-
547
- var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
548
-
549
- var _autoprefix = __webpack_require__(902);
550
-
551
- var _autoprefix2 = _interopRequireDefault(_autoprefix);
552
-
553
- var _hover2 = __webpack_require__(903);
554
-
555
- var _hover3 = _interopRequireDefault(_hover2);
556
-
557
- var _active = __webpack_require__(904);
558
-
559
- var _active2 = _interopRequireDefault(_active);
560
-
561
- var _loop2 = __webpack_require__(905);
562
-
563
- var _loop3 = _interopRequireDefault(_loop2);
564
-
565
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
566
-
567
- exports.hover = _hover3.default;
568
- exports.handleHover = _hover3.default;
569
- exports.handleActive = _active2.default;
570
- exports.loop = _loop3.default;
571
- var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
572
- for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
573
- activations[_key - 1] = arguments[_key];
574
- }
575
-
576
- var activeNames = (0, _flattenNames2.default)(activations);
577
- var merged = (0, _mergeClasses2.default)(classes, activeNames);
578
- return (0, _autoprefix2.default)(merged);
579
- };
580
-
581
- exports.default = ReactCSS;
582
-
583
- /***/ }),
584
- /* 11 */
585
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
586
-
587
- "use strict";
588
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = capitalize;
589
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(8);
590
-
591
- // It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
592
- //
593
- // A strict capitalization should uppercase the first letter of each word a the sentence.
594
- // We only handle the first word.
595
- function capitalize(string) {
596
- if (typeof string !== 'string') {
597
- throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: capitalize(string) expects a string argument." : Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* formatMuiErrorMessage */])(7));
598
- }
599
-
600
- return string.charAt(0).toUpperCase() + string.slice(1);
601
- }
602
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
603
-
604
- /***/ }),
605
- /* 12 */
606
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
607
-
608
- "use strict";
609
- /* harmony export (immutable) */ __webpack_exports__["a"] = toInteger;
610
- function toInteger(dirtyNumber) {
611
- if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
612
- return NaN;
613
- }
614
-
615
- var number = Number(dirtyNumber);
616
-
617
- if (isNaN(number)) {
618
- return number;
619
- }
620
-
621
- return number < 0 ? Math.ceil(number) : Math.floor(number);
622
- }
623
-
624
- /***/ }),
625
- /* 13 */
626
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
627
-
628
- "use strict";
629
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__capitalize__ = __webpack_require__(11);
630
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__capitalize__["a"]; });
631
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createChainedFunction__ = __webpack_require__(65);
632
- /* unused harmony reexport createChainedFunction */
633
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__ = __webpack_require__(24);
634
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__["a"]; });
635
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__debounce__ = __webpack_require__(55);
636
- /* unused harmony reexport debounce */
637
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__deprecatedPropType__ = __webpack_require__(595);
638
- /* unused harmony reexport deprecatedPropType */
639
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isMuiElement__ = __webpack_require__(80);
640
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__isMuiElement__["a"]; });
641
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ownerDocument__ = __webpack_require__(31);
642
- /* unused harmony reexport ownerDocument */
643
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ownerWindow__ = __webpack_require__(102);
644
- /* unused harmony reexport ownerWindow */
645
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__requirePropFactory__ = __webpack_require__(279);
646
- /* unused harmony reexport requirePropFactory */
647
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__setRef__ = __webpack_require__(56);
648
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_9__setRef__["a"]; });
649
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__unsupportedProp__ = __webpack_require__(103);
650
- /* unused harmony reexport unsupportedProp */
651
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useControlled__ = __webpack_require__(50);
652
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useControlled__["a"]; });
653
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__useEventCallback__ = __webpack_require__(44);
654
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__useEventCallback__["a"]; });
655
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__useForkRef__ = __webpack_require__(17);
656
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__useForkRef__["a"]; });
657
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__unstable_useId__ = __webpack_require__(104);
658
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_14__unstable_useId__["a"]; });
659
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__useIsFocusVisible__ = __webpack_require__(81);
660
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_15__useIsFocusVisible__["a"]; });
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
- // eslint-disable-next-line camelcase
675
-
676
-
677
-
678
-
679
- /***/ }),
680
- /* 14 */
681
- /***/ (function(module, exports, __webpack_require__) {
682
-
683
- "use strict";
684
- /* WEBPACK VAR INJECTION */(function(process) {
685
-
686
- function checkDCE() {
687
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
688
- if (
689
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
690
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
691
- ) {
692
- return;
693
- }
694
- if (process.env.NODE_ENV !== 'production') {
695
- // This branch is unreachable because this function is only called
696
- // in production, but the condition is true only in development.
697
- // Therefore if the branch is still here, dead code elimination wasn't
698
- // properly applied.
699
- // Don't change the message. React DevTools relies on it. Also make sure
700
- // this message doesn't occur elsewhere in this function, or it will cause
701
- // a false positive.
702
- throw new Error('^_^');
703
- }
704
- try {
705
- // Verify that the code above has been dead code eliminated (DCE'd).
706
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
707
- } catch (err) {
708
- // DevTools shouldn't crash React, no matter what.
709
- // We should still report in case we break this code.
710
- console.error(err);
711
- }
712
- }
713
-
714
- if (process.env.NODE_ENV === 'production') {
715
- // DCE check should happen before ReactDOM bundle executes so that
716
- // DevTools can report bad minification during injection.
717
- checkDCE();
718
- module.exports = __webpack_require__(473);
719
- } else {
720
- module.exports = __webpack_require__(476);
721
- }
722
-
723
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
724
-
725
- /***/ }),
726
- /* 15 */
727
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
728
-
729
- "use strict";
730
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Alpha__ = __webpack_require__(906);
731
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Alpha__["a"]; });
732
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Checkboard__ = __webpack_require__(205);
733
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__Checkboard__["a"]; });
734
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__EditableInput__ = __webpack_require__(909);
735
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__EditableInput__["a"]; });
736
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Hue__ = __webpack_require__(910);
737
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__Hue__["a"]; });
738
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Raised__ = __webpack_require__(912);
739
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__Raised__["a"]; });
740
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Saturation__ = __webpack_require__(972);
741
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__Saturation__["a"]; });
742
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ColorWrap__ = __webpack_require__(432);
743
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_6__ColorWrap__["a"]; });
744
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Swatch__ = __webpack_require__(986);
745
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__Swatch__["a"]; });
746
-
747
-
748
-
749
-
750
-
751
-
752
-
753
-
754
-
755
- /***/ }),
756
- /* 16 */
757
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
758
-
759
- "use strict";
760
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__colorManipulator__ = __webpack_require__(22);
761
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["a"]; });
762
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["b"]; });
763
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["c"]; });
764
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["e"]; });
765
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createMuiTheme__ = __webpack_require__(146);
766
- /* unused harmony reexport createMuiTheme */
767
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createMuiStrictModeTheme__ = __webpack_require__(586);
768
- /* unused harmony reexport unstable_createMuiStrictModeTheme */
769
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createStyles__ = __webpack_require__(587);
770
- /* unused harmony reexport createStyles */
771
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__makeStyles__ = __webpack_require__(588);
772
- /* unused harmony reexport makeStyles */
773
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__responsiveFontSizes__ = __webpack_require__(589);
774
- /* unused harmony reexport responsiveFontSizes */
775
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styled__ = __webpack_require__(278);
776
- /* unused harmony reexport styled */
777
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__transitions__ = __webpack_require__(41);
778
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_7__transitions__["b"]; });
779
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__useTheme__ = __webpack_require__(20);
780
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_8__useTheme__["a"]; });
781
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__withStyles__ = __webpack_require__(6);
782
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_9__withStyles__["a"]; });
783
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__withTheme__ = __webpack_require__(591);
784
- /* unused harmony reexport withTheme */
785
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_ui_styles__ = __webpack_require__(27);
786
- /* unused harmony reexport createGenerateClassName */
787
- /* unused harmony reexport jssPreset */
788
- /* unused harmony reexport ServerStyleSheets */
789
- /* unused harmony reexport StylesProvider */
790
- /* unused harmony reexport MuiThemeProvider */
791
- /* unused harmony reexport ThemeProvider */
792
-
793
- // eslint-disable-next-line camelcase
794
-
795
-
796
-
797
-
798
-
799
-
800
-
801
-
802
-
803
-
804
-
805
-
806
- /***/ }),
807
- /* 17 */
808
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
809
-
810
- "use strict";
811
- /* harmony export (immutable) */ __webpack_exports__["a"] = useForkRef;
812
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
813
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
814
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__setRef__ = __webpack_require__(56);
815
-
816
-
817
- function useForkRef(refA, refB) {
818
- /**
819
- * This will create a new function if the ref props change and are defined.
820
- * This means react will call the old forkRef with `null` and the new forkRef
821
- * with the ref. Cleanup naturally emerges from this behavior
822
- */
823
- return __WEBPACK_IMPORTED_MODULE_0_react__["useMemo"](function () {
824
- if (refA == null && refB == null) {
825
- return null;
826
- }
827
-
828
- return function (refValue) {
829
- Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refA, refValue);
830
- Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refB, refValue);
831
- };
832
- }, [refA, refB]);
833
- }
834
-
835
- /***/ }),
836
- /* 18 */
837
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
838
-
839
- "use strict";
840
- /* harmony export (immutable) */ __webpack_exports__["a"] = _defineProperty;
841
- function _defineProperty(obj, key, value) {
842
- if (key in obj) {
843
- Object.defineProperty(obj, key, {
844
- value: value,
845
- enumerable: true,
846
- configurable: true,
847
- writable: true
848
- });
849
- } else {
850
- obj[key] = value;
851
- }
852
-
853
- return obj;
854
- }
855
-
856
- /***/ }),
857
- /* 19 */
858
- /***/ (function(module, exports, __webpack_require__) {
859
-
860
- "use strict";
861
- /* WEBPACK VAR INJECTION */(function(process) {
862
-
863
- if (process.env.NODE_ENV === 'production') {
864
- module.exports = __webpack_require__(480);
865
- } else {
866
- module.exports = __webpack_require__(481);
867
- }
868
-
869
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
870
-
871
- /***/ }),
872
- /* 20 */
873
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
874
-
875
- "use strict";
876
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useTheme;
877
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_styles__ = __webpack_require__(27);
878
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
879
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
880
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(75);
881
-
882
-
883
-
884
- function useTheme() {
885
- var theme = Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_styles__["f" /* useTheme */])() || __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */];
886
-
887
- if (process.env.NODE_ENV !== 'production') {
888
- // eslint-disable-next-line react-hooks/rules-of-hooks
889
- __WEBPACK_IMPORTED_MODULE_1_react___default.a.useDebugValue(theme);
890
- }
891
-
892
- return theme;
893
- }
894
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
895
-
896
- /***/ }),
897
- /* 21 */
898
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
899
-
900
- "use strict";
901
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ButtonBase__ = __webpack_require__(600);
902
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ButtonBase__["a"]; });
903
-
904
-
905
- /***/ }),
906
- /* 22 */
907
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
908
-
909
- "use strict";
910
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export hexToRgb */
911
- /* unused harmony export rgbToHex */
912
- /* unused harmony export hslToRgb */
913
- /* unused harmony export decomposeColor */
914
- /* unused harmony export recomposeColor */
915
- /* harmony export (immutable) */ __webpack_exports__["d"] = getContrastRatio;
916
- /* unused harmony export getLuminance */
917
- /* harmony export (immutable) */ __webpack_exports__["b"] = emphasize;
918
- /* harmony export (immutable) */ __webpack_exports__["c"] = fade;
919
- /* harmony export (immutable) */ __webpack_exports__["a"] = darken;
920
- /* harmony export (immutable) */ __webpack_exports__["e"] = lighten;
921
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(8);
922
-
923
-
924
- /* eslint-disable no-use-before-define */
925
-
926
- /**
927
- * Returns a number whose value is limited to the given range.
928
- *
929
- * @param {number} value The value to be clamped
930
- * @param {number} min The lower boundary of the output range
931
- * @param {number} max The upper boundary of the output range
932
- * @returns {number} A number in the range [min, max]
933
- */
934
- function clamp(value) {
935
- var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
936
- var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
937
-
938
- if (process.env.NODE_ENV !== 'production') {
939
- if (value < min || value > max) {
940
- console.error("Material-UI: The value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "]."));
941
- }
942
- }
943
-
944
- return Math.min(Math.max(min, value), max);
945
- }
946
- /**
947
- * Converts a color from CSS hex format to CSS rgb format.
948
- *
949
- * @param {string} color - Hex color, i.e. #nnn or #nnnnnn
950
- * @returns {string} A CSS rgb color string
951
- */
952
-
953
-
954
- function hexToRgb(color) {
955
- color = color.substr(1);
956
- var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g');
957
- var colors = color.match(re);
958
-
959
- if (colors && colors[0].length === 1) {
960
- colors = colors.map(function (n) {
961
- return n + n;
962
- });
963
- }
964
-
965
- return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) {
966
- return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
967
- }).join(', '), ")") : '';
968
- }
969
-
970
- function intToHex(int) {
971
- var hex = int.toString(16);
972
- return hex.length === 1 ? "0".concat(hex) : hex;
973
- }
974
- /**
975
- * Converts a color from CSS rgb format to CSS hex format.
976
- *
977
- * @param {string} color - RGB color, i.e. rgb(n, n, n)
978
- * @returns {string} A CSS rgb color string, i.e. #nnnnnn
979
- */
980
-
981
-
982
- function rgbToHex(color) {
983
- // Idempotent
984
- if (color.indexOf('#') === 0) {
985
- return color;
986
- }
987
-
988
- var _decomposeColor = decomposeColor(color),
989
- values = _decomposeColor.values;
990
-
991
- return "#".concat(values.map(function (n) {
992
- return intToHex(n);
993
- }).join(''));
994
- }
995
- /**
996
- * Converts a color from hsl format to rgb format.
997
- *
998
- * @param {string} color - HSL color values
999
- * @returns {string} rgb color values
1000
- */
1001
-
1002
- function hslToRgb(color) {
1003
- color = decomposeColor(color);
1004
- var _color = color,
1005
- values = _color.values;
1006
- var h = values[0];
1007
- var s = values[1] / 100;
1008
- var l = values[2] / 100;
1009
- var a = s * Math.min(l, 1 - l);
1010
-
1011
- var f = function f(n) {
1012
- var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;
1013
- return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
1014
- };
1015
-
1016
- var type = 'rgb';
1017
- var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
1018
-
1019
- if (color.type === 'hsla') {
1020
- type += 'a';
1021
- rgb.push(values[3]);
1022
- }
1023
-
1024
- return recomposeColor({
1025
- type: type,
1026
- values: rgb
1027
- });
1028
- }
1029
- /**
1030
- * Returns an object with the type and values of a color.
1031
- *
1032
- * Note: Does not support rgb % values.
1033
- *
1034
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1035
- * @returns {object} - A MUI color object: {type: string, values: number[]}
1036
- */
1037
-
1038
- function decomposeColor(color) {
1039
- // Idempotent
1040
- if (color.type) {
1041
- return color;
1042
- }
1043
-
1044
- if (color.charAt(0) === '#') {
1045
- return decomposeColor(hexToRgb(color));
1046
- }
1047
-
1048
- var marker = color.indexOf('(');
1049
- var type = color.substring(0, marker);
1050
-
1051
- if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
1052
- throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: Unsupported `".concat(color, "` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().") : Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* formatMuiErrorMessage */])(3, color));
1053
- }
1054
-
1055
- var values = color.substring(marker + 1, color.length - 1).split(',');
1056
- values = values.map(function (value) {
1057
- return parseFloat(value);
1058
- });
1059
- return {
1060
- type: type,
1061
- values: values
1062
- };
1063
- }
1064
- /**
1065
- * Converts a color object with type and values to a string.
1066
- *
1067
- * @param {object} color - Decomposed color
1068
- * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
1069
- * @param {array} color.values - [n,n,n] or [n,n,n,n]
1070
- * @returns {string} A CSS color string
1071
- */
1072
-
1073
- function recomposeColor(color) {
1074
- var type = color.type;
1075
- var values = color.values;
1076
-
1077
- if (type.indexOf('rgb') !== -1) {
1078
- // Only convert the first 3 values to int (i.e. not alpha)
1079
- values = values.map(function (n, i) {
1080
- return i < 3 ? parseInt(n, 10) : n;
1081
- });
1082
- } else if (type.indexOf('hsl') !== -1) {
1083
- values[1] = "".concat(values[1], "%");
1084
- values[2] = "".concat(values[2], "%");
1085
- }
1086
-
1087
- return "".concat(type, "(").concat(values.join(', '), ")");
1088
- }
1089
- /**
1090
- * Calculates the contrast ratio between two colors.
1091
- *
1092
- * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1093
- *
1094
- * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1095
- * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1096
- * @returns {number} A contrast ratio value in the range 0 - 21.
1097
- */
1098
-
1099
- function getContrastRatio(foreground, background) {
1100
- var lumA = getLuminance(foreground);
1101
- var lumB = getLuminance(background);
1102
- return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
1103
- }
1104
- /**
1105
- * The relative brightness of any point in a color space,
1106
- * normalized to 0 for darkest black and 1 for lightest white.
1107
- *
1108
- * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1109
- *
1110
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1111
- * @returns {number} The relative brightness of the color in the range 0 - 1
1112
- */
1113
-
1114
- function getLuminance(color) {
1115
- color = decomposeColor(color);
1116
- var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;
1117
- rgb = rgb.map(function (val) {
1118
- val /= 255; // normalized
1119
-
1120
- return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
1121
- }); // Truncate at 3 digits
1122
-
1123
- return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
1124
- }
1125
- /**
1126
- * Darken or lighten a color, depending on its luminance.
1127
- * Light colors are darkened, dark colors are lightened.
1128
- *
1129
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1130
- * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
1131
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1132
- */
1133
-
1134
- function emphasize(color) {
1135
- var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
1136
- return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
1137
- }
1138
- /**
1139
- * Set the absolute transparency of a color.
1140
- * Any existing alpha values are overwritten.
1141
- *
1142
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1143
- * @param {number} value - value to set the alpha channel to in the range 0 -1
1144
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1145
- */
1146
-
1147
- function fade(color, value) {
1148
- color = decomposeColor(color);
1149
- value = clamp(value);
1150
-
1151
- if (color.type === 'rgb' || color.type === 'hsl') {
1152
- color.type += 'a';
1153
- }
1154
-
1155
- color.values[3] = value;
1156
- return recomposeColor(color);
1157
- }
1158
- /**
1159
- * Darkens a color.
1160
- *
1161
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1162
- * @param {number} coefficient - multiplier in the range 0 - 1
1163
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1164
- */
1165
-
1166
- function darken(color, coefficient) {
1167
- color = decomposeColor(color);
1168
- coefficient = clamp(coefficient);
1169
-
1170
- if (color.type.indexOf('hsl') !== -1) {
1171
- color.values[2] *= 1 - coefficient;
1172
- } else if (color.type.indexOf('rgb') !== -1) {
1173
- for (var i = 0; i < 3; i += 1) {
1174
- color.values[i] *= 1 - coefficient;
1175
- }
1176
- }
1177
-
1178
- return recomposeColor(color);
1179
- }
1180
- /**
1181
- * Lightens a color.
1182
- *
1183
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1184
- * @param {number} coefficient - multiplier in the range 0 - 1
1185
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1186
- */
1187
-
1188
- function lighten(color, coefficient) {
1189
- color = decomposeColor(color);
1190
- coefficient = clamp(coefficient);
1191
-
1192
- if (color.type.indexOf('hsl') !== -1) {
1193
- color.values[2] += (100 - color.values[2]) * coefficient;
1194
- } else if (color.type.indexOf('rgb') !== -1) {
1195
- for (var i = 0; i < 3; i += 1) {
1196
- color.values[i] += (255 - color.values[i]) * coefficient;
1197
- }
1198
- }
1199
-
1200
- return recomposeColor(color);
1201
- }
1202
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1203
-
1204
- /***/ }),
1205
- /* 23 */
1206
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1207
-
1208
- "use strict";
1209
- /* harmony export (immutable) */ __webpack_exports__["a"] = _slicedToArray;
1210
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__ = __webpack_require__(262);
1211
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__ = __webpack_require__(545);
1212
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(144);
1213
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableRest__ = __webpack_require__(263);
1214
-
1215
-
1216
-
1217
-
1218
- function _slicedToArray(arr, i) {
1219
- return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableRest__["a" /* default */])();
1220
- }
1221
-
1222
- /***/ }),
1223
- /* 24 */
1224
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1225
-
1226
- "use strict";
1227
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createSvgIcon;
1228
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
1229
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
1230
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
1231
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SvgIcon__ = __webpack_require__(101);
1232
-
1233
-
1234
-
1235
- /**
1236
- * Private module reserved for @material-ui/x packages.
1237
- */
1238
-
1239
- function createSvgIcon(path, displayName) {
1240
- var Component = function Component(props, ref) {
1241
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__SvgIcon__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
1242
- ref: ref
1243
- }, props), path);
1244
- };
1245
-
1246
- if (process.env.NODE_ENV !== 'production') {
1247
- // Need to set `displayName` on the inner component for React.memo.
1248
- // React prior to 16.14 ignores `displayName` on the wrapper.
1249
- Component.displayName = "".concat(displayName, "Icon");
1250
- }
1251
-
1252
- Component.muiName = __WEBPACK_IMPORTED_MODULE_2__SvgIcon__["a" /* default */].muiName;
1253
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.memo( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.forwardRef(Component));
1254
- }
1255
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1256
-
1257
- /***/ }),
1258
- /* 25 */
1259
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1260
-
1261
- "use strict";
1262
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Paper__ = __webpack_require__(592);
1263
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Paper__["a"]; });
1264
-
1265
-
1266
- /***/ }),
1267
- /* 26 */
1268
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1269
-
1270
- "use strict";
1271
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseMerge_js__ = __webpack_require__(913);
1272
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createAssigner_js__ = __webpack_require__(963);
1273
-
1274
-
1275
-
1276
- /**
1277
- * This method is like `_.assign` except that it recursively merges own and
1278
- * inherited enumerable string keyed properties of source objects into the
1279
- * destination object. Source properties that resolve to `undefined` are
1280
- * skipped if a destination value exists. Array and plain object properties
1281
- * are merged recursively. Other objects and value types are overridden by
1282
- * assignment. Source objects are applied from left to right. Subsequent
1283
- * sources overwrite property assignments of previous sources.
1284
- *
1285
- * **Note:** This method mutates `object`.
1286
- *
1287
- * @static
1288
- * @memberOf _
1289
- * @since 0.5.0
1290
- * @category Object
1291
- * @param {Object} object The destination object.
1292
- * @param {...Object} [sources] The source objects.
1293
- * @returns {Object} Returns `object`.
1294
- * @example
1295
- *
1296
- * var object = {
1297
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
1298
- * };
1299
- *
1300
- * var other = {
1301
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
1302
- * };
1303
- *
1304
- * _.merge(object, other);
1305
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
1306
- */
1307
- var merge = Object(__WEBPACK_IMPORTED_MODULE_1__createAssigner_js__["a" /* default */])(function(object, source, srcIndex) {
1308
- Object(__WEBPACK_IMPORTED_MODULE_0__baseMerge_js__["a" /* default */])(object, source, srcIndex);
1309
- });
1310
-
1311
- /* harmony default export */ __webpack_exports__["a"] = (merge);
1312
-
1313
-
1314
- /***/ }),
1315
- /* 27 */
1316
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1317
-
1318
- "use strict";
1319
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(8);
1320
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createGenerateClassName__ = __webpack_require__(92);
1321
- /* unused harmony reexport createGenerateClassName */
1322
- /* unused harmony namespace reexport */
1323
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createStyles__ = __webpack_require__(231);
1324
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_2__createStyles__["a"]; });
1325
- /* unused harmony namespace reexport */
1326
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__getThemeProps__ = __webpack_require__(142);
1327
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__getThemeProps__["a"]; });
1328
- /* unused harmony namespace reexport */
1329
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__jssPreset__ = __webpack_require__(143);
1330
- /* unused harmony reexport jssPreset */
1331
- /* unused harmony namespace reexport */
1332
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__makeStyles__ = __webpack_require__(94);
1333
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__makeStyles__["a"]; });
1334
- /* unused harmony namespace reexport */
1335
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mergeClasses__ = __webpack_require__(145);
1336
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_6__mergeClasses__["a"]; });
1337
- /* unused harmony namespace reexport */
1338
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ServerStyleSheets__ = __webpack_require__(238);
1339
- /* unused harmony reexport ServerStyleSheets */
1340
- /* unused harmony namespace reexport */
1341
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__styled__ = __webpack_require__(239);
1342
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_8__styled__["a"]; });
1343
- /* unused harmony namespace reexport */
1344
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StylesProvider__ = __webpack_require__(95);
1345
- /* unused harmony reexport StylesProvider */
1346
- /* unused harmony namespace reexport */
1347
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ThemeProvider__ = __webpack_require__(240);
1348
- /* unused harmony reexport ThemeProvider */
1349
- /* unused harmony namespace reexport */
1350
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useTheme__ = __webpack_require__(64);
1351
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useTheme__["a"]; });
1352
- /* unused harmony namespace reexport */
1353
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__withStyles__ = __webpack_require__(241);
1354
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__withStyles__["a"]; });
1355
- /* unused harmony namespace reexport */
1356
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__withTheme__ = __webpack_require__(242);
1357
- /* unused harmony reexport withTheme */
1358
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__withTheme__["a"]; });
1359
- /** @license Material-UI v4.11.2
1360
- *
1361
- * This source code is licensed under the MIT license found in the
1362
- * LICENSE file in the root directory of this source tree.
1363
- */
1364
- /* eslint-disable import/export */
1365
-
1366
- /* Warning if there are several instances of @material-ui/styles */
1367
-
1368
- if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
1369
- __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] = __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] || 0;
1370
-
1371
- if (__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] === 1) {
1372
- console.warn(['It looks like there are several instances of `@material-ui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://material-ui.com/r/styles-instance-warning for more info.'].join('\n'));
1373
- }
1374
-
1375
- __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] += 1;
1376
- }
1377
-
1378
-
1379
-
1380
-
1381
-
1382
-
1383
-
1384
-
1385
-
1386
-
1387
-
1388
-
1389
-
1390
-
1391
-
1392
-
1393
-
1394
-
1395
-
1396
-
1397
-
1398
-
1399
-
1400
-
1401
-
1402
-
1403
-
1404
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1405
-
1406
- /***/ }),
1407
- /* 28 */
1408
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1409
-
1410
- "use strict";
1411
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Typography__ = __webpack_require__(640);
1412
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Typography__["a"]; });
1413
-
1414
-
1415
- /***/ }),
1416
- /* 29 */
1417
- /***/ (function(module, exports, __webpack_require__) {
1418
-
1419
- "use strict";
1420
-
1421
- var strictUriEncode = __webpack_require__(489);
1422
- var objectAssign = __webpack_require__(63);
1423
- var decodeComponent = __webpack_require__(490);
1424
-
1425
- function encoderForArrayFormat(opts) {
1426
- switch (opts.arrayFormat) {
1427
- case 'index':
1428
- return function (key, value, index) {
1429
- return value === null ? [
1430
- encode(key, opts),
1431
- '[',
1432
- index,
1433
- ']'
1434
- ].join('') : [
1435
- encode(key, opts),
1436
- '[',
1437
- encode(index, opts),
1438
- ']=',
1439
- encode(value, opts)
1440
- ].join('');
1441
- };
1442
-
1443
- case 'bracket':
1444
- return function (key, value) {
1445
- return value === null ? encode(key, opts) : [
1446
- encode(key, opts),
1447
- '[]=',
1448
- encode(value, opts)
1449
- ].join('');
1450
- };
1451
-
1452
- default:
1453
- return function (key, value) {
1454
- return value === null ? encode(key, opts) : [
1455
- encode(key, opts),
1456
- '=',
1457
- encode(value, opts)
1458
- ].join('');
1459
- };
1460
- }
1461
- }
1462
-
1463
- function parserForArrayFormat(opts) {
1464
- var result;
1465
-
1466
- switch (opts.arrayFormat) {
1467
- case 'index':
1468
- return function (key, value, accumulator) {
1469
- result = /\[(\d*)\]$/.exec(key);
1470
-
1471
- key = key.replace(/\[\d*\]$/, '');
1472
-
1473
- if (!result) {
1474
- accumulator[key] = value;
1475
- return;
1476
- }
1477
-
1478
- if (accumulator[key] === undefined) {
1479
- accumulator[key] = {};
1480
- }
1481
-
1482
- accumulator[key][result[1]] = value;
1483
- };
1484
-
1485
- case 'bracket':
1486
- return function (key, value, accumulator) {
1487
- result = /(\[\])$/.exec(key);
1488
- key = key.replace(/\[\]$/, '');
1489
-
1490
- if (!result) {
1491
- accumulator[key] = value;
1492
- return;
1493
- } else if (accumulator[key] === undefined) {
1494
- accumulator[key] = [value];
1495
- return;
1496
- }
1497
-
1498
- accumulator[key] = [].concat(accumulator[key], value);
1499
- };
1500
-
1501
- default:
1502
- return function (key, value, accumulator) {
1503
- if (accumulator[key] === undefined) {
1504
- accumulator[key] = value;
1505
- return;
1506
- }
1507
-
1508
- accumulator[key] = [].concat(accumulator[key], value);
1509
- };
1510
- }
1511
- }
1512
-
1513
- function encode(value, opts) {
1514
- if (opts.encode) {
1515
- return opts.strict ? strictUriEncode(value) : encodeURIComponent(value);
1516
- }
1517
-
1518
- return value;
1519
- }
1520
-
1521
- function keysSorter(input) {
1522
- if (Array.isArray(input)) {
1523
- return input.sort();
1524
- } else if (typeof input === 'object') {
1525
- return keysSorter(Object.keys(input)).sort(function (a, b) {
1526
- return Number(a) - Number(b);
1527
- }).map(function (key) {
1528
- return input[key];
1529
- });
1530
- }
1531
-
1532
- return input;
1533
- }
1534
-
1535
- function extract(str) {
1536
- var queryStart = str.indexOf('?');
1537
- if (queryStart === -1) {
1538
- return '';
1539
- }
1540
- return str.slice(queryStart + 1);
1541
- }
1542
-
1543
- function parse(str, opts) {
1544
- opts = objectAssign({arrayFormat: 'none'}, opts);
1545
-
1546
- var formatter = parserForArrayFormat(opts);
1547
-
1548
- // Create an object with no prototype
1549
- // https://github.com/sindresorhus/query-string/issues/47
1550
- var ret = Object.create(null);
1551
-
1552
- if (typeof str !== 'string') {
1553
- return ret;
1554
- }
1555
-
1556
- str = str.trim().replace(/^[?#&]/, '');
1557
-
1558
- if (!str) {
1559
- return ret;
1560
- }
1561
-
1562
- str.split('&').forEach(function (param) {
1563
- var parts = param.replace(/\+/g, ' ').split('=');
1564
- // Firefox (pre 40) decodes `%3D` to `=`
1565
- // https://github.com/sindresorhus/query-string/pull/37
1566
- var key = parts.shift();
1567
- var val = parts.length > 0 ? parts.join('=') : undefined;
1568
-
1569
- // missing `=` should be `null`:
1570
- // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
1571
- val = val === undefined ? null : decodeComponent(val);
1572
-
1573
- formatter(decodeComponent(key), val, ret);
1574
- });
1575
-
1576
- return Object.keys(ret).sort().reduce(function (result, key) {
1577
- var val = ret[key];
1578
- if (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {
1579
- // Sort object keys, not values
1580
- result[key] = keysSorter(val);
1581
- } else {
1582
- result[key] = val;
1583
- }
1584
-
1585
- return result;
1586
- }, Object.create(null));
1587
- }
1588
-
1589
- exports.extract = extract;
1590
- exports.parse = parse;
1591
-
1592
- exports.stringify = function (obj, opts) {
1593
- var defaults = {
1594
- encode: true,
1595
- strict: true,
1596
- arrayFormat: 'none'
1597
- };
1598
-
1599
- opts = objectAssign(defaults, opts);
1600
-
1601
- if (opts.sort === false) {
1602
- opts.sort = function () {};
1603
- }
1604
-
1605
- var formatter = encoderForArrayFormat(opts);
1606
-
1607
- return obj ? Object.keys(obj).sort(opts.sort).map(function (key) {
1608
- var val = obj[key];
1609
-
1610
- if (val === undefined) {
1611
- return '';
1612
- }
1613
-
1614
- if (val === null) {
1615
- return encode(key, opts);
1616
- }
1617
-
1618
- if (Array.isArray(val)) {
1619
- var result = [];
1620
-
1621
- val.slice().forEach(function (val2) {
1622
- if (val2 === undefined) {
1623
- return;
1624
- }
1625
-
1626
- result.push(formatter(key, val2, result.length));
1627
- });
1628
-
1629
- return result.join('&');
1630
- }
1631
-
1632
- return encode(key, opts) + '=' + encode(val, opts);
1633
- }).filter(function (x) {
1634
- return x.length > 0;
1635
- }).join('&') : '';
1636
- };
1637
-
1638
- exports.parseUrl = function (str, opts) {
1639
- return {
1640
- url: str.split('?')[0] || '',
1641
- query: parse(extract(str), opts)
1642
- };
1643
- };
1644
-
1645
-
1646
- /***/ }),
1647
- /* 30 */
1648
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1649
-
1650
- "use strict";
1651
- /* harmony export (immutable) */ __webpack_exports__["a"] = _toConsumableArray;
1652
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__ = __webpack_require__(522);
1653
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArray__ = __webpack_require__(234);
1654
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(144);
1655
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableSpread__ = __webpack_require__(523);
1656
-
1657
-
1658
-
1659
-
1660
- function _toConsumableArray(arr) {
1661
- return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableSpread__["a" /* default */])();
1662
- }
1663
-
1664
- /***/ }),
1665
- /* 31 */
1666
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1667
-
1668
- "use strict";
1669
- /* harmony export (immutable) */ __webpack_exports__["a"] = ownerDocument;
1670
- function ownerDocument(node) {
1671
- return node && node.ownerDocument || document;
1672
- }
1673
-
1674
- /***/ }),
1675
- /* 32 */
1676
- /***/ (function(module, exports) {
1677
-
1678
- /**
1679
- * Checks if `value` is classified as an `Array` object.
1680
- *
1681
- * @static
1682
- * @memberOf _
1683
- * @since 0.1.0
1684
- * @category Lang
1685
- * @param {*} value The value to check.
1686
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1687
- * @example
1688
- *
1689
- * _.isArray([1, 2, 3]);
1690
- * // => true
1691
- *
1692
- * _.isArray(document.body.children);
1693
- * // => false
1694
- *
1695
- * _.isArray('abc');
1696
- * // => false
1697
- *
1698
- * _.isArray(_.noop);
1699
- * // => false
1700
- */
1701
- var isArray = Array.isArray;
1702
-
1703
- module.exports = isArray;
1704
-
1705
-
1706
- /***/ }),
1707
- /* 33 */
1708
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1709
-
1710
- "use strict";
1711
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__ = __webpack_require__(420);
1712
-
1713
-
1714
- /** Detect free variable `self`. */
1715
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1716
-
1717
- /** Used as a reference to the global object. */
1718
- var root = __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__["a" /* default */] || freeSelf || Function('return this')();
1719
-
1720
- /* harmony default export */ __webpack_exports__["a"] = (root);
1721
-
1722
-
1723
- /***/ }),
1724
- /* 34 */
1725
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1726
-
1727
- "use strict";
1728
- /**
1729
- * Checks if `value` is the
1730
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1731
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1732
- *
1733
- * @static
1734
- * @memberOf _
1735
- * @since 0.1.0
1736
- * @category Lang
1737
- * @param {*} value The value to check.
1738
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1739
- * @example
1740
- *
1741
- * _.isObject({});
1742
- * // => true
1743
- *
1744
- * _.isObject([1, 2, 3]);
1745
- * // => true
1746
- *
1747
- * _.isObject(_.noop);
1748
- * // => true
1749
- *
1750
- * _.isObject(null);
1751
- * // => false
1752
- */
1753
- function isObject(value) {
1754
- var type = typeof value;
1755
- return value != null && (type == 'object' || type == 'function');
1756
- }
1757
-
1758
- /* harmony default export */ __webpack_exports__["a"] = (isObject);
1759
-
1760
-
1761
- /***/ }),
1762
- /* 35 */
1763
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1764
-
1765
- "use strict";
1766
- /**
1767
- * Checks if `value` is classified as an `Array` object.
1768
- *
1769
- * @static
1770
- * @memberOf _
1771
- * @since 0.1.0
1772
- * @category Lang
1773
- * @param {*} value The value to check.
1774
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1775
- * @example
1776
- *
1777
- * _.isArray([1, 2, 3]);
1778
- * // => true
1779
- *
1780
- * _.isArray(document.body.children);
1781
- * // => false
1782
- *
1783
- * _.isArray('abc');
1784
- * // => false
1785
- *
1786
- * _.isArray(_.noop);
1787
- * // => false
1788
- */
1789
- var isArray = Array.isArray;
1790
-
1791
- /* harmony default export */ __webpack_exports__["a"] = (isArray);
1792
-
1793
-
1794
- /***/ }),
1795
- /* 36 */
1796
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1797
-
1798
- "use strict";
1799
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return simpleCheckForValidColor; });
1800
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return toState; });
1801
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isValidHex; });
1802
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getContrastingColor; });
1803
- /* unused harmony export red */
1804
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isvalidColorString; });
1805
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_es_each__ = __webpack_require__(977);
1806
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2__ = __webpack_require__(985);
1807
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_tinycolor2__);
1808
-
1809
-
1810
-
1811
- var simpleCheckForValidColor = function simpleCheckForValidColor(data) {
1812
- var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];
1813
- var checked = 0;
1814
- var passed = 0;
1815
- Object(__WEBPACK_IMPORTED_MODULE_0_lodash_es_each__["a" /* default */])(keysToCheck, function (letter) {
1816
- if (data[letter]) {
1817
- checked += 1;
1818
- if (!isNaN(data[letter])) {
1819
- passed += 1;
1820
- }
1821
- if (letter === 's' || letter === 'l') {
1822
- var percentPatt = /^\d+%$/;
1823
- if (percentPatt.test(data[letter])) {
1824
- passed += 1;
1825
- }
1826
- }
1827
- }
1828
- });
1829
- return checked === passed ? data : false;
1830
- };
1831
-
1832
- var toState = function toState(data, oldHue) {
1833
- var color = data.hex ? __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data.hex) : __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data);
1834
- var hsl = color.toHsl();
1835
- var hsv = color.toHsv();
1836
- var rgb = color.toRgb();
1837
- var hex = color.toHex();
1838
- if (hsl.s === 0) {
1839
- hsl.h = oldHue || 0;
1840
- hsv.h = oldHue || 0;
1841
- }
1842
- var transparent = hex === '000000' && rgb.a === 0;
1843
-
1844
- return {
1845
- hsl: hsl,
1846
- hex: transparent ? 'transparent' : '#' + hex,
1847
- rgb: rgb,
1848
- hsv: hsv,
1849
- oldHue: data.h || oldHue || hsl.h,
1850
- source: data.source
1851
- };
1852
- };
1853
-
1854
- var isValidHex = function isValidHex(hex) {
1855
- if (hex === 'transparent') {
1856
- return true;
1857
- }
1858
- // disable hex4 and hex8
1859
- var lh = String(hex).charAt(0) === '#' ? 1 : 0;
1860
- return hex.length !== 4 + lh && hex.length < 7 + lh && __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(hex).isValid();
1861
- };
1862
-
1863
- var getContrastingColor = function getContrastingColor(data) {
1864
- if (!data) {
1865
- return '#fff';
1866
- }
1867
- var col = toState(data);
1868
- if (col.hex === 'transparent') {
1869
- return 'rgba(0,0,0,0.4)';
1870
- }
1871
- var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;
1872
- return yiq >= 128 ? '#000' : '#fff';
1873
- };
1874
-
1875
- var red = {
1876
- hsl: { a: 1, h: 0, l: 0.5, s: 1 },
1877
- hex: '#ff0000',
1878
- rgb: { r: 255, g: 0, b: 0, a: 1 },
1879
- hsv: { h: 0, s: 1, v: 1, a: 1 }
1880
- };
1881
-
1882
- var isvalidColorString = function isvalidColorString(string, type) {
1883
- var stringWithoutDegree = string.replace('°', '');
1884
- return __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(type + ' (' + stringWithoutDegree + ')')._ok;
1885
- };
1886
-
1887
- /***/ }),
1888
- /* 37 */
1889
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1890
-
1891
- "use strict";
1892
- /* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose;
1893
- function _inheritsLoose(subClass, superClass) {
1894
- subClass.prototype = Object.create(superClass.prototype);
1895
- subClass.prototype.constructor = subClass;
1896
- subClass.__proto__ = superClass;
1897
- }
1898
-
1899
- /***/ }),
1900
- /* 38 */
1901
- /***/ (function(module, exports) {
1902
-
1903
- var g;
1904
-
1905
- // This works in non-strict mode
1906
- g = (function() {
1907
- return this;
1908
- })();
1909
-
1910
- try {
1911
- // This works if eval is allowed (see CSP)
1912
- g = g || Function("return this")() || (1,eval)("this");
1913
- } catch(e) {
1914
- // This works if the window reference is available
1915
- if(typeof window === "object")
1916
- g = window;
1917
- }
1918
-
1919
- // g can still be undefined, but nothing to do about it...
1920
- // We return undefined, instead of nothing here, so it's
1921
- // easier to handle this case. if(!global) { ...}
1922
-
1923
- module.exports = g;
1924
-
1925
-
1926
- /***/ }),
1927
- /* 39 */
1928
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1929
-
1930
- "use strict";
1931
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1932
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Icon__ = __webpack_require__(500);
1933
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Icon__["a"]; });
1934
-
1935
-
1936
- /***/ }),
1937
- /* 40 */
1938
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1939
-
1940
- "use strict";
1941
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(18);
1942
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(255);
1943
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(147);
1944
-
1945
-
1946
-
1947
-
1948
- function getPath(obj, path) {
1949
- if (!path || typeof path !== 'string') {
1950
- return null;
1951
- }
1952
-
1953
- return path.split('.').reduce(function (acc, item) {
1954
- return acc && acc[item] ? acc[item] : null;
1955
- }, obj);
1956
- }
1957
-
1958
- function style(options) {
1959
- var prop = options.prop,
1960
- _options$cssProperty = options.cssProperty,
1961
- cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty,
1962
- themeKey = options.themeKey,
1963
- transform = options.transform;
1964
-
1965
- var fn = function fn(props) {
1966
- if (props[prop] == null) {
1967
- return null;
1968
- }
1969
-
1970
- var propValue = props[prop];
1971
- var theme = props.theme;
1972
- var themeMapping = getPath(theme, themeKey) || {};
1973
-
1974
- var styleFromPropValue = function styleFromPropValue(propValueFinal) {
1975
- var value;
1976
-
1977
- if (typeof themeMapping === 'function') {
1978
- value = themeMapping(propValueFinal);
1979
- } else if (Array.isArray(themeMapping)) {
1980
- value = themeMapping[propValueFinal] || propValueFinal;
1981
- } else {
1982
- value = getPath(themeMapping, propValueFinal) || propValueFinal;
1983
-
1984
- if (transform) {
1985
- value = transform(value);
1986
- }
1987
- }
1988
-
1989
- if (cssProperty === false) {
1990
- return value;
1991
- }
1992
-
1993
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, cssProperty, value);
1994
- };
1995
-
1996
- return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
1997
- };
1998
-
1999
- fn.propTypes = process.env.NODE_ENV !== 'production' ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, prop, __WEBPACK_IMPORTED_MODULE_1__responsivePropType__["a" /* default */]) : {};
2000
- fn.filterProps = [prop];
2001
- return fn;
2002
- }
2003
-
2004
- /* harmony default export */ __webpack_exports__["a"] = (style);
2005
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2006
-
2007
- /***/ }),
2008
- /* 41 */
2009
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2010
-
2011
- "use strict";
2012
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export easing */
2013
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return duration; });
2014
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
2015
-
2016
- // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
2017
- // to learn the context in which each easing should be used.
2018
- var easing = {
2019
- // This is the most common easing curve.
2020
- easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
2021
- // Objects enter the screen at full velocity from off-screen and
2022
- // slowly decelerate to a resting point.
2023
- easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
2024
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
2025
- easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
2026
- // The sharp curve is used by objects that may return to the screen at any time.
2027
- sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
2028
- }; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
2029
- // to learn when use what timing
2030
-
2031
- var duration = {
2032
- shortest: 150,
2033
- shorter: 200,
2034
- short: 250,
2035
- // most basic recommended timing
2036
- standard: 300,
2037
- // this is to be used in complex animations
2038
- complex: 375,
2039
- // recommended when something is entering screen
2040
- enteringScreen: 225,
2041
- // recommended when something is leaving screen
2042
- leavingScreen: 195
2043
- };
2044
-
2045
- function formatMs(milliseconds) {
2046
- return "".concat(Math.round(milliseconds), "ms");
2047
- }
2048
- /**
2049
- * @param {string|Array} props
2050
- * @param {object} param
2051
- * @param {string} param.prop
2052
- * @param {number} param.duration
2053
- * @param {string} param.easing
2054
- * @param {number} param.delay
2055
- */
2056
-
2057
-
2058
- /* harmony default export */ __webpack_exports__["a"] = ({
2059
- easing: easing,
2060
- duration: duration,
2061
- create: function create() {
2062
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
2063
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2064
-
2065
- var _options$duration = options.duration,
2066
- durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
2067
- _options$easing = options.easing,
2068
- easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
2069
- _options$delay = options.delay,
2070
- delay = _options$delay === void 0 ? 0 : _options$delay,
2071
- other = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["duration", "easing", "delay"]);
2072
-
2073
- if (process.env.NODE_ENV !== 'production') {
2074
- var isString = function isString(value) {
2075
- return typeof value === 'string';
2076
- };
2077
-
2078
- var isNumber = function isNumber(value) {
2079
- return !isNaN(parseFloat(value));
2080
- };
2081
-
2082
- if (!isString(props) && !Array.isArray(props)) {
2083
- console.error('Material-UI: Argument "props" must be a string or Array.');
2084
- }
2085
-
2086
- if (!isNumber(durationOption) && !isString(durationOption)) {
2087
- console.error("Material-UI: Argument \"duration\" must be a number or a string but found ".concat(durationOption, "."));
2088
- }
2089
-
2090
- if (!isString(easingOption)) {
2091
- console.error('Material-UI: Argument "easing" must be a string.');
2092
- }
2093
-
2094
- if (!isNumber(delay) && !isString(delay)) {
2095
- console.error('Material-UI: Argument "delay" must be a number or a string.');
2096
- }
2097
-
2098
- if (Object.keys(other).length !== 0) {
2099
- console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(other).join(','), "]."));
2100
- }
2101
- }
2102
-
2103
- return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {
2104
- return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay));
2105
- }).join(',');
2106
- },
2107
- getAutoHeightDuration: function getAutoHeightDuration(height) {
2108
- if (!height) {
2109
- return 0;
2110
- }
2111
-
2112
- var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
2113
-
2114
- return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
2115
- }
2116
- });
2117
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2118
-
2119
- /***/ }),
2120
- /* 42 */
2121
- /***/ (function(module, exports, __webpack_require__) {
2122
-
2123
- var freeGlobal = __webpack_require__(395);
2124
-
2125
- /** Detect free variable `self`. */
2126
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
2127
-
2128
- /** Used as a reference to the global object. */
2129
- var root = freeGlobal || freeSelf || Function('return this')();
2130
-
2131
- module.exports = root;
2132
-
2133
-
2134
- /***/ }),
2135
- /* 43 */
2136
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2137
-
2138
- "use strict";
2139
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2140
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__merge__ = __webpack_require__(96);
2141
-
2142
-
2143
-
2144
- function compose() {
2145
- for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {
2146
- styles[_key] = arguments[_key];
2147
- }
2148
-
2149
- var fn = function fn(props) {
2150
- return styles.reduce(function (acc, style) {
2151
- var output = style(props);
2152
-
2153
- if (output) {
2154
- return Object(__WEBPACK_IMPORTED_MODULE_1__merge__["a" /* default */])(acc, output);
2155
- }
2156
-
2157
- return acc;
2158
- }, {});
2159
- }; // Alternative approach that doesn't yield any performance gain.
2160
- // const handlers = styles.reduce((acc, style) => {
2161
- // style.filterProps.forEach(prop => {
2162
- // acc[prop] = style;
2163
- // });
2164
- // return acc;
2165
- // }, {});
2166
- // const fn = props => {
2167
- // return Object.keys(props).reduce((acc, prop) => {
2168
- // if (handlers[prop]) {
2169
- // return merge(acc, handlers[prop](props));
2170
- // }
2171
- // return acc;
2172
- // }, {});
2173
- // };
2174
-
2175
-
2176
- fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {
2177
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(acc, style.propTypes);
2178
- }, {}) : {};
2179
- fn.filterProps = styles.reduce(function (acc, style) {
2180
- return acc.concat(style.filterProps);
2181
- }, []);
2182
- return fn;
2183
- }
2184
-
2185
- /* harmony default export */ __webpack_exports__["a"] = (compose);
2186
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2187
-
2188
- /***/ }),
2189
- /* 44 */
2190
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2191
-
2192
- "use strict";
2193
- /* harmony export (immutable) */ __webpack_exports__["a"] = useEventCallback;
2194
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
2195
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
2196
-
2197
- var useEnhancedEffect = typeof window !== 'undefined' ? __WEBPACK_IMPORTED_MODULE_0_react__["useLayoutEffect"] : __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"];
2198
- /**
2199
- * https://github.com/facebook/react/issues/14099#issuecomment-440013892
2200
- *
2201
- * @param {function} fn
2202
- */
2203
-
2204
- function useEventCallback(fn) {
2205
- var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](fn);
2206
- useEnhancedEffect(function () {
2207
- ref.current = fn;
2208
- });
2209
- return __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function () {
2210
- return (0, ref.current).apply(void 0, arguments);
2211
- }, []);
2212
- }
2213
-
2214
- /***/ }),
2215
- /* 45 */
2216
- /***/ (function(module, exports) {
2217
-
2218
- /**
2219
- * Checks if `value` is object-like. A value is object-like if it's not `null`
2220
- * and has a `typeof` result of "object".
2221
- *
2222
- * @static
2223
- * @memberOf _
2224
- * @since 4.0.0
2225
- * @category Lang
2226
- * @param {*} value The value to check.
2227
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2228
- * @example
2229
- *
2230
- * _.isObjectLike({});
2231
- * // => true
2232
- *
2233
- * _.isObjectLike([1, 2, 3]);
2234
- * // => true
2235
- *
2236
- * _.isObjectLike(_.noop);
2237
- * // => false
2238
- *
2239
- * _.isObjectLike(null);
2240
- * // => false
2241
- */
2242
- function isObjectLike(value) {
2243
- return value != null && typeof value == 'object';
2244
- }
2245
-
2246
- module.exports = isObjectLike;
2247
-
2248
-
2249
- /***/ }),
2250
- /* 46 */
2251
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2252
-
2253
- "use strict";
2254
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
2255
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserRouter", function() { return BrowserRouter; });
2256
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashRouter", function() { return HashRouter; });
2257
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return Link; });
2258
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return NavLink; });
2259
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router__ = __webpack_require__(227);
2260
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["a"]; });
2261
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["b"]; });
2262
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["c"]; });
2263
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["d"]; });
2264
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["e"]; });
2265
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["f"]; });
2266
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["g"]; });
2267
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "generatePath", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["i"]; });
2268
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["j"]; });
2269
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useHistory", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["k"]; });
2270
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useLocation", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["l"]; });
2271
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useParams", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["m"]; });
2272
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useRouteMatch", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["n"]; });
2273
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["o"]; });
2274
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(37);
2275
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
2276
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
2277
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(228);
2278
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
2279
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
2280
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_tiny_warning__ = __webpack_require__(52);
2281
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2282
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(47);
2283
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_tiny_invariant__ = __webpack_require__(140);
2284
-
2285
-
2286
-
2287
-
2288
-
2289
-
2290
-
2291
-
2292
-
2293
-
2294
-
2295
- /**
2296
- * The public API for a <Router> that uses HTML5 history.
2297
- */
2298
-
2299
- var BrowserRouter =
2300
- /*#__PURE__*/
2301
- function (_React$Component) {
2302
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(BrowserRouter, _React$Component);
2303
-
2304
- function BrowserRouter() {
2305
- var _this;
2306
-
2307
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2308
- args[_key] = arguments[_key];
2309
- }
2310
-
2311
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
2312
- _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["a" /* createBrowserHistory */])(_this.props);
2313
- return _this;
2314
- }
2315
-
2316
- var _proto = BrowserRouter.prototype;
2317
-
2318
- _proto.render = function render() {
2319
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["e" /* Router */], {
2320
- history: this.history,
2321
- children: this.props.children
2322
- });
2323
- };
2324
-
2325
- return BrowserRouter;
2326
- }(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
2327
-
2328
- if (process.env.NODE_ENV !== "production") {
2329
- BrowserRouter.propTypes = {
2330
- basename: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2331
- children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
2332
- forceRefresh: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2333
- getUserConfirmation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2334
- keyLength: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number
2335
- };
2336
-
2337
- BrowserRouter.prototype.componentDidMount = function () {
2338
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_5_tiny_warning__["a" /* default */])(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.") : void 0;
2339
- };
2340
- }
2341
-
2342
- /**
2343
- * The public API for a <Router> that uses window.location.hash.
2344
- */
2345
-
2346
- var HashRouter =
2347
- /*#__PURE__*/
2348
- function (_React$Component) {
2349
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(HashRouter, _React$Component);
2350
-
2351
- function HashRouter() {
2352
- var _this;
2353
-
2354
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2355
- args[_key] = arguments[_key];
2356
- }
2357
-
2358
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
2359
- _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["b" /* createHashHistory */])(_this.props);
2360
- return _this;
2361
- }
2362
-
2363
- var _proto = HashRouter.prototype;
2364
-
2365
- _proto.render = function render() {
2366
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["e" /* Router */], {
2367
- history: this.history,
2368
- children: this.props.children
2369
- });
2370
- };
2371
-
2372
- return HashRouter;
2373
- }(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
2374
-
2375
- if (process.env.NODE_ENV !== "production") {
2376
- HashRouter.propTypes = {
2377
- basename: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2378
- children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
2379
- getUserConfirmation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2380
- hashType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(["hashbang", "noslash", "slash"])
2381
- };
2382
-
2383
- HashRouter.prototype.componentDidMount = function () {
2384
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_5_tiny_warning__["a" /* default */])(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.") : void 0;
2385
- };
2386
- }
2387
-
2388
- var resolveToLocation = function resolveToLocation(to, currentLocation) {
2389
- return typeof to === "function" ? to(currentLocation) : to;
2390
- };
2391
- var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
2392
- return typeof to === "string" ? Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(to, null, null, currentLocation) : to;
2393
- };
2394
-
2395
- var forwardRefShim = function forwardRefShim(C) {
2396
- return C;
2397
- };
2398
-
2399
- var forwardRef = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef;
2400
-
2401
- if (typeof forwardRef === "undefined") {
2402
- forwardRef = forwardRefShim;
2403
- }
2404
-
2405
- function isModifiedEvent(event) {
2406
- return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
2407
- }
2408
-
2409
- var LinkAnchor = forwardRef(function (_ref, forwardedRef) {
2410
- var innerRef = _ref.innerRef,
2411
- navigate = _ref.navigate,
2412
- _onClick = _ref.onClick,
2413
- rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["innerRef", "navigate", "onClick"]);
2414
-
2415
- var target = rest.target;
2416
-
2417
- var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
2418
- onClick: function onClick(event) {
2419
- try {
2420
- if (_onClick) _onClick(event);
2421
- } catch (ex) {
2422
- event.preventDefault();
2423
- throw ex;
2424
- }
2425
-
2426
- if (!event.defaultPrevented && // onClick prevented default
2427
- event.button === 0 && ( // ignore everything but left clicks
2428
- !target || target === "_self") && // let browser handle "target=_blank" etc.
2429
- !isModifiedEvent(event) // ignore clicks with modifier keys
2430
- ) {
2431
- event.preventDefault();
2432
- navigate();
2433
- }
2434
- }
2435
- }); // React 15 compat
2436
-
2437
-
2438
- if (forwardRefShim !== forwardRef) {
2439
- props.ref = forwardedRef || innerRef;
2440
- } else {
2441
- props.ref = innerRef;
2442
- }
2443
- /* eslint-disable-next-line jsx-a11y/anchor-has-content */
2444
-
2445
-
2446
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("a", props);
2447
- });
2448
-
2449
- if (process.env.NODE_ENV !== "production") {
2450
- LinkAnchor.displayName = "LinkAnchor";
2451
- }
2452
- /**
2453
- * The public API for rendering a history-aware <a>.
2454
- */
2455
-
2456
-
2457
- var Link = forwardRef(function (_ref2, forwardedRef) {
2458
- var _ref2$component = _ref2.component,
2459
- component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,
2460
- replace = _ref2.replace,
2461
- to = _ref2.to,
2462
- innerRef = _ref2.innerRef,
2463
- rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref2, ["component", "replace", "to", "innerRef"]);
2464
-
2465
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["h" /* __RouterContext */].Consumer, null, function (context) {
2466
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false, "You should not use <Link> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false) : void 0;
2467
- var history = context.history;
2468
- var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
2469
- var href = location ? history.createHref(location) : "";
2470
-
2471
- var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
2472
- href: href,
2473
- navigate: function navigate() {
2474
- var location = resolveToLocation(to, context.location);
2475
- var method = replace ? history.replace : history.push;
2476
- method(location);
2477
- }
2478
- }); // React 15 compat
2479
-
2480
-
2481
- if (forwardRefShim !== forwardRef) {
2482
- props.ref = forwardedRef || innerRef;
2483
- } else {
2484
- props.innerRef = innerRef;
2485
- }
2486
-
2487
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(component, props);
2488
- });
2489
- });
2490
-
2491
- if (process.env.NODE_ENV !== "production") {
2492
- var toType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func]);
2493
- var refType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({
2494
- current: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
2495
- })]);
2496
- Link.displayName = "Link";
2497
- Link.propTypes = {
2498
- innerRef: refType,
2499
- onClick: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2500
- replace: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2501
- target: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2502
- to: toType.isRequired
2503
- };
2504
- }
2505
-
2506
- var forwardRefShim$1 = function forwardRefShim(C) {
2507
- return C;
2508
- };
2509
-
2510
- var forwardRef$1 = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef;
2511
-
2512
- if (typeof forwardRef$1 === "undefined") {
2513
- forwardRef$1 = forwardRefShim$1;
2514
- }
2515
-
2516
- function joinClassnames() {
2517
- for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {
2518
- classnames[_key] = arguments[_key];
2519
- }
2520
-
2521
- return classnames.filter(function (i) {
2522
- return i;
2523
- }).join(" ");
2524
- }
2525
- /**
2526
- * A <Link> wrapper that knows if it's "active" or not.
2527
- */
2528
-
2529
-
2530
- var NavLink = forwardRef$1(function (_ref, forwardedRef) {
2531
- var _ref$ariaCurrent = _ref["aria-current"],
2532
- ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,
2533
- _ref$activeClassName = _ref.activeClassName,
2534
- activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName,
2535
- activeStyle = _ref.activeStyle,
2536
- classNameProp = _ref.className,
2537
- exact = _ref.exact,
2538
- isActiveProp = _ref.isActive,
2539
- locationProp = _ref.location,
2540
- sensitive = _ref.sensitive,
2541
- strict = _ref.strict,
2542
- styleProp = _ref.style,
2543
- to = _ref.to,
2544
- innerRef = _ref.innerRef,
2545
- rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
2546
-
2547
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["h" /* __RouterContext */].Consumer, null, function (context) {
2548
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false, "You should not use <NavLink> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false) : void 0;
2549
- var currentLocation = locationProp || context.location;
2550
- var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
2551
- var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
2552
-
2553
- var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
2554
- var match = escapedPath ? Object(__WEBPACK_IMPORTED_MODULE_0_react_router__["j" /* matchPath */])(currentLocation.pathname, {
2555
- path: escapedPath,
2556
- exact: exact,
2557
- sensitive: sensitive,
2558
- strict: strict
2559
- }) : null;
2560
- var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
2561
- var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
2562
- var style = isActive ? Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleProp, {}, activeStyle) : styleProp;
2563
-
2564
- var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({
2565
- "aria-current": isActive && ariaCurrent || null,
2566
- className: className,
2567
- style: style,
2568
- to: toLocation
2569
- }, rest); // React 15 compat
2570
-
2571
-
2572
- if (forwardRefShim$1 !== forwardRef$1) {
2573
- props.ref = forwardedRef || innerRef;
2574
- } else {
2575
- props.innerRef = innerRef;
2576
- }
2577
-
2578
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(Link, props);
2579
- });
2580
- });
2581
-
2582
- if (process.env.NODE_ENV !== "production") {
2583
- NavLink.displayName = "NavLink";
2584
- var ariaCurrentType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(["page", "step", "location", "date", "time", "true"]);
2585
- NavLink.propTypes = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, Link.propTypes, {
2586
- "aria-current": ariaCurrentType,
2587
- activeClassName: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2588
- activeStyle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
2589
- className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2590
- exact: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2591
- isActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2592
- location: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
2593
- sensitive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2594
- strict: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2595
- style: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object
2596
- });
2597
- }
2598
-
2599
-
2600
- //# sourceMappingURL=react-router-dom.js.map
2601
-
2602
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2603
-
2604
- /***/ }),
2605
- /* 47 */
2606
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2607
-
2608
- "use strict";
2609
- /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutPropertiesLoose;
2610
- function _objectWithoutPropertiesLoose(source, excluded) {
2611
- if (source == null) return {};
2612
- var target = {};
2613
- var sourceKeys = Object.keys(source);
2614
- var key, i;
2615
-
2616
- for (i = 0; i < sourceKeys.length; i++) {
2617
- key = sourceKeys[i];
2618
- if (excluded.indexOf(key) >= 0) continue;
2619
- target[key] = source[key];
2620
- }
2621
-
2622
- return target;
2623
- }
2624
-
2625
- /***/ }),
2626
- /* 48 */
2627
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2628
-
2629
- "use strict";
2630
- /* harmony export (immutable) */ __webpack_exports__["a"] = _typeof;
2631
- function _typeof(obj) {
2632
- "@babel/helpers - typeof";
2633
-
2634
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2635
- _typeof = function _typeof(obj) {
2636
- return typeof obj;
2637
- };
2638
- } else {
2639
- _typeof = function _typeof(obj) {
2640
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2641
- };
2642
- }
2643
-
2644
- return _typeof(obj);
2645
- }
2646
-
2647
- /***/ }),
2648
- /* 49 */
2649
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2650
-
2651
- "use strict";
2652
- /* harmony export (immutable) */ __webpack_exports__["a"] = _createClass;
2653
- function _defineProperties(target, props) {
2654
- for (var i = 0; i < props.length; i++) {
2655
- var descriptor = props[i];
2656
- descriptor.enumerable = descriptor.enumerable || false;
2657
- descriptor.configurable = true;
2658
- if ("value" in descriptor) descriptor.writable = true;
2659
- Object.defineProperty(target, descriptor.key, descriptor);
2660
- }
2661
- }
2662
-
2663
- function _createClass(Constructor, protoProps, staticProps) {
2664
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2665
- if (staticProps) _defineProperties(Constructor, staticProps);
2666
- return Constructor;
2667
- }
2668
-
2669
- /***/ }),
2670
- /* 50 */
2671
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2672
-
2673
- "use strict";
2674
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useControlled;
2675
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
2676
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
2677
- /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
2678
-
2679
- function useControlled(_ref) {
2680
- var controlled = _ref.controlled,
2681
- defaultProp = _ref.default,
2682
- name = _ref.name,
2683
- _ref$state = _ref.state,
2684
- state = _ref$state === void 0 ? 'value' : _ref$state;
2685
-
2686
- var _React$useRef = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](controlled !== undefined),
2687
- isControlled = _React$useRef.current;
2688
-
2689
- var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](defaultProp),
2690
- valueState = _React$useState[0],
2691
- setValue = _React$useState[1];
2692
-
2693
- var value = isControlled ? controlled : valueState;
2694
-
2695
- if (process.env.NODE_ENV !== 'production') {
2696
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
2697
- if (isControlled !== (controlled !== undefined)) {
2698
- console.error(["Material-UI: A component is changing the ".concat(isControlled ? '' : 'un', "controlled ").concat(state, " state of ").concat(name, " to be ").concat(isControlled ? 'un' : '', "controlled."), 'Elements should not switch from uncontrolled to controlled (or vice versa).', "Decide between using a controlled or uncontrolled ".concat(name, " ") + 'element for the lifetime of the component.', "The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
2699
- }
2700
- }, [controlled]);
2701
-
2702
- var _React$useRef2 = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](defaultProp),
2703
- defaultValue = _React$useRef2.current;
2704
-
2705
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
2706
- if (!isControlled && defaultValue !== defaultProp) {
2707
- console.error(["Material-UI: A component is changing the default ".concat(state, " state of an uncontrolled ").concat(name, " after being initialized. ") + "To suppress this warning opt to use a controlled ".concat(name, ".")].join('\n'));
2708
- }
2709
- }, [JSON.stringify(defaultProp)]);
2710
- }
2711
-
2712
- var setValueIfUncontrolled = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (newValue) {
2713
- if (!isControlled) {
2714
- setValue(newValue);
2715
- }
2716
- }, []);
2717
- return [value, setValueIfUncontrolled];
2718
- }
2719
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2720
-
2721
- /***/ }),
2722
- /* 51 */
2723
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2724
-
2725
- "use strict";
2726
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__IconButton__ = __webpack_require__(599);
2727
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__IconButton__["a"]; });
2728
-
2729
-
2730
- /***/ }),
2731
- /* 52 */
2732
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2733
-
2734
- "use strict";
2735
- /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
2736
- function warning(condition, message) {
2737
- if (!isProduction) {
2738
- if (condition) {
2739
- return;
2740
- }
2741
-
2742
- var text = "Warning: " + message;
2743
-
2744
- if (typeof console !== 'undefined') {
2745
- console.warn(text);
2746
- }
2747
-
2748
- try {
2749
- throw Error(text);
2750
- } catch (x) {}
2751
- }
2752
- }
2753
-
2754
- /* harmony default export */ __webpack_exports__["a"] = (warning);
2755
-
2756
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2757
-
2758
- /***/ }),
2759
- /* 53 */
2760
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2761
-
2762
- "use strict";
2763
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RuleList; });
2764
- /* unused harmony export SheetsManager */
2765
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SheetsRegistry; });
2766
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return create; });
2767
- /* unused harmony export createGenerateId */
2768
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createRule; });
2769
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getDynamicStyles; });
2770
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasCSSTOMSupport; });
2771
- /* unused harmony export sheets */
2772
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return toCssValue; });
2773
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2774
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_is_in_browser__ = __webpack_require__(232);
2775
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tiny_warning__ = __webpack_require__(52);
2776
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__ = __webpack_require__(49);
2777
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(37);
2778
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(93);
2779
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(47);
2780
-
2781
-
2782
-
2783
-
2784
-
2785
-
2786
-
2787
-
2788
- var plainObjectConstrurctor = {}.constructor;
2789
- function cloneStyle(style) {
2790
- if (style == null || typeof style !== 'object') return style;
2791
- if (Array.isArray(style)) return style.map(cloneStyle);
2792
- if (style.constructor !== plainObjectConstrurctor) return style;
2793
- var newStyle = {};
2794
-
2795
- for (var name in style) {
2796
- newStyle[name] = cloneStyle(style[name]);
2797
- }
2798
-
2799
- return newStyle;
2800
- }
2801
-
2802
- /**
2803
- * Create a rule instance.
2804
- */
2805
-
2806
- function createRule(name, decl, options) {
2807
- if (name === void 0) {
2808
- name = 'unnamed';
2809
- }
2810
-
2811
- var jss = options.jss;
2812
- var declCopy = cloneStyle(decl);
2813
- var rule = jss.plugins.onCreateRule(name, declCopy, options);
2814
- if (rule) return rule; // It is an at-rule and it has no instance.
2815
-
2816
- if (name[0] === '@') {
2817
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown rule " + name) : void 0;
2818
- }
2819
-
2820
- return null;
2821
- }
2822
-
2823
- var join = function join(value, by) {
2824
- var result = '';
2825
-
2826
- for (var i = 0; i < value.length; i++) {
2827
- // Remove !important from the value, it will be readded later.
2828
- if (value[i] === '!important') break;
2829
- if (result) result += by;
2830
- result += value[i];
2831
- }
2832
-
2833
- return result;
2834
- };
2835
-
2836
- /**
2837
- * Converts array values to string.
2838
- *
2839
- * `margin: [['5px', '10px']]` > `margin: 5px 10px;`
2840
- * `border: ['1px', '2px']` > `border: 1px, 2px;`
2841
- * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
2842
- * `color: ['red', !important]` > `color: red !important;`
2843
- */
2844
- var toCssValue = function toCssValue(value, ignoreImportant) {
2845
- if (ignoreImportant === void 0) {
2846
- ignoreImportant = false;
2847
- }
2848
-
2849
- if (!Array.isArray(value)) return value;
2850
- var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
2851
-
2852
- if (Array.isArray(value[0])) {
2853
- for (var i = 0; i < value.length; i++) {
2854
- if (value[i] === '!important') break;
2855
- if (cssValue) cssValue += ', ';
2856
- cssValue += join(value[i], ' ');
2857
- }
2858
- } else cssValue = join(value, ', '); // Add !important, because it was ignored.
2859
-
2860
-
2861
- if (!ignoreImportant && value[value.length - 1] === '!important') {
2862
- cssValue += ' !important';
2863
- }
2864
-
2865
- return cssValue;
2866
- };
2867
-
2868
- /**
2869
- * Indent a string.
2870
- * http://jsperf.com/array-join-vs-for
2871
- */
2872
- function indentStr(str, indent) {
2873
- var result = '';
2874
-
2875
- for (var index = 0; index < indent; index++) {
2876
- result += ' ';
2877
- }
2878
-
2879
- return result + str;
2880
- }
2881
- /**
2882
- * Converts a Rule to CSS string.
2883
- */
2884
-
2885
-
2886
- function toCss(selector, style, options) {
2887
- if (options === void 0) {
2888
- options = {};
2889
- }
2890
-
2891
- var result = '';
2892
- if (!style) return result;
2893
- var _options = options,
2894
- _options$indent = _options.indent,
2895
- indent = _options$indent === void 0 ? 0 : _options$indent;
2896
- var fallbacks = style.fallbacks;
2897
- if (selector) indent++; // Apply fallbacks first.
2898
-
2899
- if (fallbacks) {
2900
- // Array syntax {fallbacks: [{prop: value}]}
2901
- if (Array.isArray(fallbacks)) {
2902
- for (var index = 0; index < fallbacks.length; index++) {
2903
- var fallback = fallbacks[index];
2904
-
2905
- for (var prop in fallback) {
2906
- var value = fallback[prop];
2907
-
2908
- if (value != null) {
2909
- if (result) result += '\n';
2910
- result += "" + indentStr(prop + ": " + toCssValue(value) + ";", indent);
2911
- }
2912
- }
2913
- }
2914
- } else {
2915
- // Object syntax {fallbacks: {prop: value}}
2916
- for (var _prop in fallbacks) {
2917
- var _value = fallbacks[_prop];
2918
-
2919
- if (_value != null) {
2920
- if (result) result += '\n';
2921
- result += "" + indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
2922
- }
2923
- }
2924
- }
2925
- }
2926
-
2927
- for (var _prop2 in style) {
2928
- var _value2 = style[_prop2];
2929
-
2930
- if (_value2 != null && _prop2 !== 'fallbacks') {
2931
- if (result) result += '\n';
2932
- result += "" + indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
2933
- }
2934
- } // Allow empty style in this case, because properties will be added dynamically.
2935
-
2936
-
2937
- if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
2938
-
2939
- if (!selector) return result;
2940
- indent--;
2941
- if (result) result = "\n" + result + "\n";
2942
- return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
2943
- }
2944
-
2945
- var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
2946
- var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
2947
- var escape = (function (str) {
2948
- return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
2949
- });
2950
-
2951
- var BaseStyleRule =
2952
- /*#__PURE__*/
2953
- function () {
2954
- function BaseStyleRule(key, style, options) {
2955
- this.type = 'style';
2956
- this.key = void 0;
2957
- this.isProcessed = false;
2958
- this.style = void 0;
2959
- this.renderer = void 0;
2960
- this.renderable = void 0;
2961
- this.options = void 0;
2962
- var sheet = options.sheet,
2963
- Renderer = options.Renderer;
2964
- this.key = key;
2965
- this.options = options;
2966
- this.style = style;
2967
- if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
2968
- }
2969
- /**
2970
- * Get or set a style property.
2971
- */
2972
-
2973
-
2974
- var _proto = BaseStyleRule.prototype;
2975
-
2976
- _proto.prop = function prop(name, value, options) {
2977
- // It's a getter.
2978
- if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
2979
-
2980
- var force = options ? options.force : false;
2981
- if (!force && this.style[name] === value) return this;
2982
- var newValue = value;
2983
-
2984
- if (!options || options.process !== false) {
2985
- newValue = this.options.jss.plugins.onChangeValue(value, name, this);
2986
- }
2987
-
2988
- var isEmpty = newValue == null || newValue === false;
2989
- var isDefined = name in this.style; // Value is empty and wasn't defined before.
2990
-
2991
- if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
2992
-
2993
- var remove = isEmpty && isDefined;
2994
- if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.
2995
-
2996
- if (this.renderable && this.renderer) {
2997
- if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);
2998
- return this;
2999
- }
3000
-
3001
- var sheet = this.options.sheet;
3002
-
3003
- if (sheet && sheet.attached) {
3004
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, '[JSS] Rule is not linked. Missing sheet option "link: true".') : void 0;
3005
- }
3006
-
3007
- return this;
3008
- };
3009
-
3010
- return BaseStyleRule;
3011
- }();
3012
- var StyleRule =
3013
- /*#__PURE__*/
3014
- function (_BaseStyleRule) {
3015
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(StyleRule, _BaseStyleRule);
3016
-
3017
- function StyleRule(key, style, options) {
3018
- var _this;
3019
-
3020
- _this = _BaseStyleRule.call(this, key, style, options) || this;
3021
- _this.selectorText = void 0;
3022
- _this.id = void 0;
3023
- _this.renderable = void 0;
3024
- var selector = options.selector,
3025
- scoped = options.scoped,
3026
- sheet = options.sheet,
3027
- generateId = options.generateId;
3028
-
3029
- if (selector) {
3030
- _this.selectorText = selector;
3031
- } else if (scoped !== false) {
3032
- _this.id = generateId(Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this)), sheet);
3033
- _this.selectorText = "." + escape(_this.id);
3034
- }
3035
-
3036
- return _this;
3037
- }
3038
- /**
3039
- * Set selector string.
3040
- * Attention: use this with caution. Most browsers didn't implement
3041
- * selectorText setter, so this may result in rerendering of entire Style Sheet.
3042
- */
3043
-
3044
-
3045
- var _proto2 = StyleRule.prototype;
3046
-
3047
- /**
3048
- * Apply rule to an element inline.
3049
- */
3050
- _proto2.applyTo = function applyTo(renderable) {
3051
- var renderer = this.renderer;
3052
-
3053
- if (renderer) {
3054
- var json = this.toJSON();
3055
-
3056
- for (var prop in json) {
3057
- renderer.setProperty(renderable, prop, json[prop]);
3058
- }
3059
- }
3060
-
3061
- return this;
3062
- }
3063
- /**
3064
- * Returns JSON representation of the rule.
3065
- * Fallbacks are not supported.
3066
- * Useful for inline styles.
3067
- */
3068
- ;
3069
-
3070
- _proto2.toJSON = function toJSON() {
3071
- var json = {};
3072
-
3073
- for (var prop in this.style) {
3074
- var value = this.style[prop];
3075
- if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);
3076
- }
3077
-
3078
- return json;
3079
- }
3080
- /**
3081
- * Generates a CSS string.
3082
- */
3083
- ;
3084
-
3085
- _proto2.toString = function toString(options) {
3086
- var sheet = this.options.sheet;
3087
- var link = sheet ? sheet.options.link : false;
3088
- var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3089
- allowEmpty: true
3090
- }) : options;
3091
- return toCss(this.selectorText, this.style, opts);
3092
- };
3093
-
3094
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(StyleRule, [{
3095
- key: "selector",
3096
- set: function set(selector) {
3097
- if (selector === this.selectorText) return;
3098
- this.selectorText = selector;
3099
- var renderer = this.renderer,
3100
- renderable = this.renderable;
3101
- if (!renderable || !renderer) return;
3102
- var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.
3103
-
3104
- if (!hasChanged) {
3105
- renderer.replaceRule(renderable, this);
3106
- }
3107
- }
3108
- /**
3109
- * Get selector string.
3110
- */
3111
- ,
3112
- get: function get() {
3113
- return this.selectorText;
3114
- }
3115
- }]);
3116
-
3117
- return StyleRule;
3118
- }(BaseStyleRule);
3119
- var pluginStyleRule = {
3120
- onCreateRule: function onCreateRule(name, style, options) {
3121
- if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {
3122
- return null;
3123
- }
3124
-
3125
- return new StyleRule(name, style, options);
3126
- }
3127
- };
3128
-
3129
- var defaultToStringOptions = {
3130
- indent: 1,
3131
- children: true
3132
- };
3133
- var atRegExp = /@([\w-]+)/;
3134
- /**
3135
- * Conditional rule for @media, @supports
3136
- */
3137
-
3138
- var ConditionalRule =
3139
- /*#__PURE__*/
3140
- function () {
3141
- function ConditionalRule(key, styles, options) {
3142
- this.type = 'conditional';
3143
- this.at = void 0;
3144
- this.key = void 0;
3145
- this.query = void 0;
3146
- this.rules = void 0;
3147
- this.options = void 0;
3148
- this.isProcessed = false;
3149
- this.renderable = void 0;
3150
- this.key = key;
3151
- var atMatch = key.match(atRegExp);
3152
- this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.
3153
-
3154
- this.query = options.name || "@" + this.at;
3155
- this.options = options;
3156
- this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3157
- parent: this
3158
- }));
3159
-
3160
- for (var name in styles) {
3161
- this.rules.add(name, styles[name]);
3162
- }
3163
-
3164
- this.rules.process();
3165
- }
3166
- /**
3167
- * Get a rule.
3168
- */
3169
-
3170
-
3171
- var _proto = ConditionalRule.prototype;
3172
-
3173
- _proto.getRule = function getRule(name) {
3174
- return this.rules.get(name);
3175
- }
3176
- /**
3177
- * Get index of a rule.
3178
- */
3179
- ;
3180
-
3181
- _proto.indexOf = function indexOf(rule) {
3182
- return this.rules.indexOf(rule);
3183
- }
3184
- /**
3185
- * Create and register rule, run plugins.
3186
- */
3187
- ;
3188
-
3189
- _proto.addRule = function addRule(name, style, options) {
3190
- var rule = this.rules.add(name, style, options);
3191
- if (!rule) return null;
3192
- this.options.jss.plugins.onProcessRule(rule);
3193
- return rule;
3194
- }
3195
- /**
3196
- * Generates a CSS string.
3197
- */
3198
- ;
3199
-
3200
- _proto.toString = function toString(options) {
3201
- if (options === void 0) {
3202
- options = defaultToStringOptions;
3203
- }
3204
-
3205
- if (options.indent == null) options.indent = defaultToStringOptions.indent;
3206
- if (options.children == null) options.children = defaultToStringOptions.children;
3207
-
3208
- if (options.children === false) {
3209
- return this.query + " {}";
3210
- }
3211
-
3212
- var children = this.rules.toString(options);
3213
- return children ? this.query + " {\n" + children + "\n}" : '';
3214
- };
3215
-
3216
- return ConditionalRule;
3217
- }();
3218
- var keyRegExp = /@media|@supports\s+/;
3219
- var pluginConditionalRule = {
3220
- onCreateRule: function onCreateRule(key, styles, options) {
3221
- return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
3222
- }
3223
- };
3224
-
3225
- var defaultToStringOptions$1 = {
3226
- indent: 1,
3227
- children: true
3228
- };
3229
- var nameRegExp = /@keyframes\s+([\w-]+)/;
3230
- /**
3231
- * Rule for @keyframes
3232
- */
3233
-
3234
- var KeyframesRule =
3235
- /*#__PURE__*/
3236
- function () {
3237
- function KeyframesRule(key, frames, options) {
3238
- this.type = 'keyframes';
3239
- this.at = '@keyframes';
3240
- this.key = void 0;
3241
- this.name = void 0;
3242
- this.id = void 0;
3243
- this.rules = void 0;
3244
- this.options = void 0;
3245
- this.isProcessed = false;
3246
- this.renderable = void 0;
3247
- var nameMatch = key.match(nameRegExp);
3248
-
3249
- if (nameMatch && nameMatch[1]) {
3250
- this.name = nameMatch[1];
3251
- } else {
3252
- this.name = 'noname';
3253
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Bad keyframes name " + key) : void 0;
3254
- }
3255
-
3256
- this.key = this.type + "-" + this.name;
3257
- this.options = options;
3258
- var scoped = options.scoped,
3259
- sheet = options.sheet,
3260
- generateId = options.generateId;
3261
- this.id = scoped === false ? this.name : escape(generateId(this, sheet));
3262
- this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3263
- parent: this
3264
- }));
3265
-
3266
- for (var name in frames) {
3267
- this.rules.add(name, frames[name], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3268
- parent: this
3269
- }));
3270
- }
3271
-
3272
- this.rules.process();
3273
- }
3274
- /**
3275
- * Generates a CSS string.
3276
- */
3277
-
3278
-
3279
- var _proto = KeyframesRule.prototype;
3280
-
3281
- _proto.toString = function toString(options) {
3282
- if (options === void 0) {
3283
- options = defaultToStringOptions$1;
3284
- }
3285
-
3286
- if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
3287
- if (options.children == null) options.children = defaultToStringOptions$1.children;
3288
-
3289
- if (options.children === false) {
3290
- return this.at + " " + this.id + " {}";
3291
- }
3292
-
3293
- var children = this.rules.toString(options);
3294
- if (children) children = "\n" + children + "\n";
3295
- return this.at + " " + this.id + " {" + children + "}";
3296
- };
3297
-
3298
- return KeyframesRule;
3299
- }();
3300
- var keyRegExp$1 = /@keyframes\s+/;
3301
- var refRegExp = /\$([\w-]+)/g;
3302
-
3303
- var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {
3304
- if (typeof val === 'string') {
3305
- return val.replace(refRegExp, function (match, name) {
3306
- if (name in keyframes) {
3307
- return keyframes[name];
3308
- }
3309
-
3310
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Referenced keyframes rule \"" + name + "\" is not defined.") : void 0;
3311
- return match;
3312
- });
3313
- }
3314
-
3315
- return val;
3316
- };
3317
- /**
3318
- * Replace the reference for a animation name.
3319
- */
3320
-
3321
-
3322
- var replaceRef = function replaceRef(style, prop, keyframes) {
3323
- var value = style[prop];
3324
- var refKeyframe = findReferencedKeyframe(value, keyframes);
3325
-
3326
- if (refKeyframe !== value) {
3327
- style[prop] = refKeyframe;
3328
- }
3329
- };
3330
-
3331
- var plugin = {
3332
- onCreateRule: function onCreateRule(key, frames, options) {
3333
- return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
3334
- },
3335
- // Animation name ref replacer.
3336
- onProcessStyle: function onProcessStyle(style, rule, sheet) {
3337
- if (rule.type !== 'style' || !sheet) return style;
3338
- if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);
3339
- if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);
3340
- return style;
3341
- },
3342
- onChangeValue: function onChangeValue(val, prop, rule) {
3343
- var sheet = rule.options.sheet;
3344
-
3345
- if (!sheet) {
3346
- return val;
3347
- }
3348
-
3349
- switch (prop) {
3350
- case 'animation':
3351
- return findReferencedKeyframe(val, sheet.keyframes);
3352
-
3353
- case 'animation-name':
3354
- return findReferencedKeyframe(val, sheet.keyframes);
3355
-
3356
- default:
3357
- return val;
3358
- }
3359
- }
3360
- };
3361
-
3362
- var KeyframeRule =
3363
- /*#__PURE__*/
3364
- function (_BaseStyleRule) {
3365
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(KeyframeRule, _BaseStyleRule);
3366
-
3367
- function KeyframeRule() {
3368
- var _this;
3369
-
3370
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3371
- args[_key] = arguments[_key];
3372
- }
3373
-
3374
- _this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;
3375
- _this.renderable = void 0;
3376
- return _this;
3377
- }
3378
-
3379
- var _proto = KeyframeRule.prototype;
3380
-
3381
- /**
3382
- * Generates a CSS string.
3383
- */
3384
- _proto.toString = function toString(options) {
3385
- var sheet = this.options.sheet;
3386
- var link = sheet ? sheet.options.link : false;
3387
- var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3388
- allowEmpty: true
3389
- }) : options;
3390
- return toCss(this.key, this.style, opts);
3391
- };
3392
-
3393
- return KeyframeRule;
3394
- }(BaseStyleRule);
3395
- var pluginKeyframeRule = {
3396
- onCreateRule: function onCreateRule(key, style, options) {
3397
- if (options.parent && options.parent.type === 'keyframes') {
3398
- return new KeyframeRule(key, style, options);
3399
- }
3400
-
3401
- return null;
3402
- }
3403
- };
3404
-
3405
- var FontFaceRule =
3406
- /*#__PURE__*/
3407
- function () {
3408
- function FontFaceRule(key, style, options) {
3409
- this.type = 'font-face';
3410
- this.at = '@font-face';
3411
- this.key = void 0;
3412
- this.style = void 0;
3413
- this.options = void 0;
3414
- this.isProcessed = false;
3415
- this.renderable = void 0;
3416
- this.key = key;
3417
- this.style = style;
3418
- this.options = options;
3419
- }
3420
- /**
3421
- * Generates a CSS string.
3422
- */
3423
-
3424
-
3425
- var _proto = FontFaceRule.prototype;
3426
-
3427
- _proto.toString = function toString(options) {
3428
- if (Array.isArray(this.style)) {
3429
- var str = '';
3430
-
3431
- for (var index = 0; index < this.style.length; index++) {
3432
- str += toCss(this.at, this.style[index]);
3433
- if (this.style[index + 1]) str += '\n';
3434
- }
3435
-
3436
- return str;
3437
- }
3438
-
3439
- return toCss(this.at, this.style, options);
3440
- };
3441
-
3442
- return FontFaceRule;
3443
- }();
3444
- var keyRegExp$2 = /@font-face/;
3445
- var pluginFontFaceRule = {
3446
- onCreateRule: function onCreateRule(key, style, options) {
3447
- return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;
3448
- }
3449
- };
3450
-
3451
- var ViewportRule =
3452
- /*#__PURE__*/
3453
- function () {
3454
- function ViewportRule(key, style, options) {
3455
- this.type = 'viewport';
3456
- this.at = '@viewport';
3457
- this.key = void 0;
3458
- this.style = void 0;
3459
- this.options = void 0;
3460
- this.isProcessed = false;
3461
- this.renderable = void 0;
3462
- this.key = key;
3463
- this.style = style;
3464
- this.options = options;
3465
- }
3466
- /**
3467
- * Generates a CSS string.
3468
- */
3469
-
3470
-
3471
- var _proto = ViewportRule.prototype;
3472
-
3473
- _proto.toString = function toString(options) {
3474
- return toCss(this.key, this.style, options);
3475
- };
3476
-
3477
- return ViewportRule;
3478
- }();
3479
- var pluginViewportRule = {
3480
- onCreateRule: function onCreateRule(key, style, options) {
3481
- return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;
3482
- }
3483
- };
3484
-
3485
- var SimpleRule =
3486
- /*#__PURE__*/
3487
- function () {
3488
- function SimpleRule(key, value, options) {
3489
- this.type = 'simple';
3490
- this.key = void 0;
3491
- this.value = void 0;
3492
- this.options = void 0;
3493
- this.isProcessed = false;
3494
- this.renderable = void 0;
3495
- this.key = key;
3496
- this.value = value;
3497
- this.options = options;
3498
- }
3499
- /**
3500
- * Generates a CSS string.
3501
- */
3502
- // eslint-disable-next-line no-unused-vars
3503
-
3504
-
3505
- var _proto = SimpleRule.prototype;
3506
-
3507
- _proto.toString = function toString(options) {
3508
- if (Array.isArray(this.value)) {
3509
- var str = '';
3510
-
3511
- for (var index = 0; index < this.value.length; index++) {
3512
- str += this.key + " " + this.value[index] + ";";
3513
- if (this.value[index + 1]) str += '\n';
3514
- }
3515
-
3516
- return str;
3517
- }
3518
-
3519
- return this.key + " " + this.value + ";";
3520
- };
3521
-
3522
- return SimpleRule;
3523
- }();
3524
- var keysMap = {
3525
- '@charset': true,
3526
- '@import': true,
3527
- '@namespace': true
3528
- };
3529
- var pluginSimpleRule = {
3530
- onCreateRule: function onCreateRule(key, value, options) {
3531
- return key in keysMap ? new SimpleRule(key, value, options) : null;
3532
- }
3533
- };
3534
-
3535
- var plugins = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
3536
-
3537
- var defaultUpdateOptions = {
3538
- process: true
3539
- };
3540
- var forceUpdateOptions = {
3541
- force: true,
3542
- process: true
3543
- /**
3544
- * Contains rules objects and allows adding/removing etc.
3545
- * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
3546
- */
3547
-
3548
- };
3549
-
3550
- var RuleList =
3551
- /*#__PURE__*/
3552
- function () {
3553
- // Rules registry for access by .get() method.
3554
- // It contains the same rule registered by name and by selector.
3555
- // Original styles object.
3556
- // Used to ensure correct rules order.
3557
- function RuleList(options) {
3558
- this.map = {};
3559
- this.raw = {};
3560
- this.index = [];
3561
- this.counter = 0;
3562
- this.options = void 0;
3563
- this.classes = void 0;
3564
- this.keyframes = void 0;
3565
- this.options = options;
3566
- this.classes = options.classes;
3567
- this.keyframes = options.keyframes;
3568
- }
3569
- /**
3570
- * Create and register rule.
3571
- *
3572
- * Will not render after Style Sheet was rendered the first time.
3573
- */
3574
-
3575
-
3576
- var _proto = RuleList.prototype;
3577
-
3578
- _proto.add = function add(name, decl, ruleOptions) {
3579
- var _this$options = this.options,
3580
- parent = _this$options.parent,
3581
- sheet = _this$options.sheet,
3582
- jss = _this$options.jss,
3583
- Renderer = _this$options.Renderer,
3584
- generateId = _this$options.generateId,
3585
- scoped = _this$options.scoped;
3586
-
3587
- var options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
3588
- classes: this.classes,
3589
- parent: parent,
3590
- sheet: sheet,
3591
- jss: jss,
3592
- Renderer: Renderer,
3593
- generateId: generateId,
3594
- scoped: scoped,
3595
- name: name,
3596
- keyframes: this.keyframes,
3597
- selector: undefined
3598
- }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but
3599
- // `sheet.addRule()` opens the door for any duplicate rule name. When this happens
3600
- // we need to make the key unique within this RuleList instance scope.
3601
-
3602
-
3603
- var key = name;
3604
-
3605
- if (name in this.raw) {
3606
- key = name + "-d" + this.counter++;
3607
- } // We need to save the original decl before creating the rule
3608
- // because cache plugin needs to use it as a key to return a cached rule.
3609
-
3610
-
3611
- this.raw[key] = decl;
3612
-
3613
- if (key in this.classes) {
3614
- // E.g. rules inside of @media container
3615
- options.selector = "." + escape(this.classes[key]);
3616
- }
3617
-
3618
- var rule = createRule(key, decl, options);
3619
- if (!rule) return null;
3620
- this.register(rule);
3621
- var index = options.index === undefined ? this.index.length : options.index;
3622
- this.index.splice(index, 0, rule);
3623
- return rule;
3624
- }
3625
- /**
3626
- * Get a rule.
3627
- */
3628
- ;
3629
-
3630
- _proto.get = function get(name) {
3631
- return this.map[name];
3632
- }
3633
- /**
3634
- * Delete a rule.
3635
- */
3636
- ;
3637
-
3638
- _proto.remove = function remove(rule) {
3639
- this.unregister(rule);
3640
- delete this.raw[rule.key];
3641
- this.index.splice(this.index.indexOf(rule), 1);
3642
- }
3643
- /**
3644
- * Get index of a rule.
3645
- */
3646
- ;
3647
-
3648
- _proto.indexOf = function indexOf(rule) {
3649
- return this.index.indexOf(rule);
3650
- }
3651
- /**
3652
- * Run `onProcessRule()` plugins on every rule.
3653
- */
3654
- ;
3655
-
3656
- _proto.process = function process() {
3657
- var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop
3658
- // we end up with very hard-to-track-down side effects.
3659
-
3660
- this.index.slice(0).forEach(plugins.onProcessRule, plugins);
3661
- }
3662
- /**
3663
- * Register a rule in `.map`, `.classes` and `.keyframes` maps.
3664
- */
3665
- ;
3666
-
3667
- _proto.register = function register(rule) {
3668
- this.map[rule.key] = rule;
3669
-
3670
- if (rule instanceof StyleRule) {
3671
- this.map[rule.selector] = rule;
3672
- if (rule.id) this.classes[rule.key] = rule.id;
3673
- } else if (rule instanceof KeyframesRule && this.keyframes) {
3674
- this.keyframes[rule.name] = rule.id;
3675
- }
3676
- }
3677
- /**
3678
- * Unregister a rule.
3679
- */
3680
- ;
3681
-
3682
- _proto.unregister = function unregister(rule) {
3683
- delete this.map[rule.key];
3684
-
3685
- if (rule instanceof StyleRule) {
3686
- delete this.map[rule.selector];
3687
- delete this.classes[rule.key];
3688
- } else if (rule instanceof KeyframesRule) {
3689
- delete this.keyframes[rule.name];
3690
- }
3691
- }
3692
- /**
3693
- * Update the function values with a new data.
3694
- */
3695
- ;
3696
-
3697
- _proto.update = function update() {
3698
- var name;
3699
- var data;
3700
- var options;
3701
-
3702
- if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {
3703
- name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
3704
-
3705
- data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe[invalid-tuple-index]
3706
-
3707
- options = arguments.length <= 2 ? undefined : arguments[2];
3708
- } else {
3709
- data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
3710
-
3711
- options = arguments.length <= 1 ? undefined : arguments[1];
3712
- name = null;
3713
- }
3714
-
3715
- if (name) {
3716
- this.updateOne(this.map[name], data, options);
3717
- } else {
3718
- for (var index = 0; index < this.index.length; index++) {
3719
- this.updateOne(this.index[index], data, options);
3720
- }
3721
- }
3722
- }
3723
- /**
3724
- * Execute plugins, update rule props.
3725
- */
3726
- ;
3727
-
3728
- _proto.updateOne = function updateOne(rule, data, options) {
3729
- if (options === void 0) {
3730
- options = defaultUpdateOptions;
3731
- }
3732
-
3733
- var _this$options2 = this.options,
3734
- plugins = _this$options2.jss.plugins,
3735
- sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.
3736
-
3737
- if (rule.rules instanceof RuleList) {
3738
- rule.rules.update(data, options);
3739
- return;
3740
- }
3741
-
3742
- var styleRule = rule;
3743
- var style = styleRule.style;
3744
- plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
3745
-
3746
- if (options.process && style && style !== styleRule.style) {
3747
- // We need to run the plugins in case new `style` relies on syntax plugins.
3748
- plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.
3749
-
3750
- for (var prop in styleRule.style) {
3751
- var nextValue = styleRule.style[prop];
3752
- var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
3753
- // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
3754
-
3755
- if (nextValue !== prevValue) {
3756
- styleRule.prop(prop, nextValue, forceUpdateOptions);
3757
- }
3758
- } // Remove props.
3759
-
3760
-
3761
- for (var _prop in style) {
3762
- var _nextValue = styleRule.style[_prop];
3763
- var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
3764
- // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
3765
-
3766
- if (_nextValue == null && _nextValue !== _prevValue) {
3767
- styleRule.prop(_prop, null, forceUpdateOptions);
3768
- }
3769
- }
3770
- }
3771
- }
3772
- /**
3773
- * Convert rules to a CSS string.
3774
- */
3775
- ;
3776
-
3777
- _proto.toString = function toString(options) {
3778
- var str = '';
3779
- var sheet = this.options.sheet;
3780
- var link = sheet ? sheet.options.link : false;
3781
-
3782
- for (var index = 0; index < this.index.length; index++) {
3783
- var rule = this.index[index];
3784
- var css = rule.toString(options); // No need to render an empty rule.
3785
-
3786
- if (!css && !link) continue;
3787
- if (str) str += '\n';
3788
- str += css;
3789
- }
3790
-
3791
- return str;
3792
- };
3793
-
3794
- return RuleList;
3795
- }();
3796
-
3797
- var StyleSheet =
3798
- /*#__PURE__*/
3799
- function () {
3800
- function StyleSheet(styles, options) {
3801
- this.options = void 0;
3802
- this.deployed = void 0;
3803
- this.attached = void 0;
3804
- this.rules = void 0;
3805
- this.renderer = void 0;
3806
- this.classes = void 0;
3807
- this.keyframes = void 0;
3808
- this.queue = void 0;
3809
- this.attached = false;
3810
- this.deployed = false;
3811
- this.classes = {};
3812
- this.keyframes = {};
3813
- this.options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3814
- sheet: this,
3815
- parent: this,
3816
- classes: this.classes,
3817
- keyframes: this.keyframes
3818
- });
3819
-
3820
- if (options.Renderer) {
3821
- this.renderer = new options.Renderer(this);
3822
- }
3823
-
3824
- this.rules = new RuleList(this.options);
3825
-
3826
- for (var name in styles) {
3827
- this.rules.add(name, styles[name]);
3828
- }
3829
-
3830
- this.rules.process();
3831
- }
3832
- /**
3833
- * Attach renderable to the render tree.
3834
- */
3835
-
3836
-
3837
- var _proto = StyleSheet.prototype;
3838
-
3839
- _proto.attach = function attach() {
3840
- if (this.attached) return this;
3841
- if (this.renderer) this.renderer.attach();
3842
- this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.
3843
-
3844
- if (!this.deployed) this.deploy();
3845
- return this;
3846
- }
3847
- /**
3848
- * Remove renderable from render tree.
3849
- */
3850
- ;
3851
-
3852
- _proto.detach = function detach() {
3853
- if (!this.attached) return this;
3854
- if (this.renderer) this.renderer.detach();
3855
- this.attached = false;
3856
- return this;
3857
- }
3858
- /**
3859
- * Add a rule to the current stylesheet.
3860
- * Will insert a rule also after the stylesheet has been rendered first time.
3861
- */
3862
- ;
3863
-
3864
- _proto.addRule = function addRule(name, decl, options) {
3865
- var queue = this.queue; // Plugins can create rules.
3866
- // In order to preserve the right order, we need to queue all `.addRule` calls,
3867
- // which happen after the first `rules.add()` call.
3868
-
3869
- if (this.attached && !queue) this.queue = [];
3870
- var rule = this.rules.add(name, decl, options);
3871
- if (!rule) return null;
3872
- this.options.jss.plugins.onProcessRule(rule);
3873
-
3874
- if (this.attached) {
3875
- if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.
3876
- // It will be inserted all together when .attach is called.
3877
-
3878
- if (queue) queue.push(rule);else {
3879
- this.insertRule(rule);
3880
-
3881
- if (this.queue) {
3882
- this.queue.forEach(this.insertRule, this);
3883
- this.queue = undefined;
3884
- }
3885
- }
3886
- return rule;
3887
- } // We can't add rules to a detached style node.
3888
- // We will redeploy the sheet once user will attach it.
3889
-
3890
-
3891
- this.deployed = false;
3892
- return rule;
3893
- }
3894
- /**
3895
- * Insert rule into the StyleSheet
3896
- */
3897
- ;
3898
-
3899
- _proto.insertRule = function insertRule(rule) {
3900
- if (this.renderer) {
3901
- this.renderer.insertRule(rule);
3902
- }
3903
- }
3904
- /**
3905
- * Create and add rules.
3906
- * Will render also after Style Sheet was rendered the first time.
3907
- */
3908
- ;
3909
-
3910
- _proto.addRules = function addRules(styles, options) {
3911
- var added = [];
3912
-
3913
- for (var name in styles) {
3914
- var rule = this.addRule(name, styles[name], options);
3915
- if (rule) added.push(rule);
3916
- }
3917
-
3918
- return added;
3919
- }
3920
- /**
3921
- * Get a rule by name.
3922
- */
3923
- ;
3924
-
3925
- _proto.getRule = function getRule(name) {
3926
- return this.rules.get(name);
3927
- }
3928
- /**
3929
- * Delete a rule by name.
3930
- * Returns `true`: if rule has been deleted from the DOM.
3931
- */
3932
- ;
3933
-
3934
- _proto.deleteRule = function deleteRule(name) {
3935
- var rule = typeof name === 'object' ? name : this.rules.get(name);
3936
-
3937
- if (!rule || // Style sheet was created without link: true and attached, in this case we
3938
- // won't be able to remove the CSS rule from the DOM.
3939
- this.attached && !rule.renderable) {
3940
- return false;
3941
- }
3942
-
3943
- this.rules.remove(rule);
3944
-
3945
- if (this.attached && rule.renderable && this.renderer) {
3946
- return this.renderer.deleteRule(rule.renderable);
3947
- }
3948
-
3949
- return true;
3950
- }
3951
- /**
3952
- * Get index of a rule.
3953
- */
3954
- ;
3955
-
3956
- _proto.indexOf = function indexOf(rule) {
3957
- return this.rules.indexOf(rule);
3958
- }
3959
- /**
3960
- * Deploy pure CSS string to a renderable.
3961
- */
3962
- ;
3963
-
3964
- _proto.deploy = function deploy() {
3965
- if (this.renderer) this.renderer.deploy();
3966
- this.deployed = true;
3967
- return this;
3968
- }
3969
- /**
3970
- * Update the function values with a new data.
3971
- */
3972
- ;
3973
-
3974
- _proto.update = function update() {
3975
- var _this$rules;
3976
-
3977
- (_this$rules = this.rules).update.apply(_this$rules, arguments);
3978
-
3979
- return this;
3980
- }
3981
- /**
3982
- * Updates a single rule.
3983
- */
3984
- ;
3985
-
3986
- _proto.updateOne = function updateOne(rule, data, options) {
3987
- this.rules.updateOne(rule, data, options);
3988
- return this;
3989
- }
3990
- /**
3991
- * Convert rules to a CSS string.
3992
- */
3993
- ;
3994
-
3995
- _proto.toString = function toString(options) {
3996
- return this.rules.toString(options);
3997
- };
3998
-
3999
- return StyleSheet;
4000
- }();
4001
-
4002
- var PluginsRegistry =
4003
- /*#__PURE__*/
4004
- function () {
4005
- function PluginsRegistry() {
4006
- this.plugins = {
4007
- internal: [],
4008
- external: []
4009
- };
4010
- this.registry = void 0;
4011
- }
4012
-
4013
- var _proto = PluginsRegistry.prototype;
4014
-
4015
- /**
4016
- * Call `onCreateRule` hooks and return an object if returned by a hook.
4017
- */
4018
- _proto.onCreateRule = function onCreateRule(name, decl, options) {
4019
- for (var i = 0; i < this.registry.onCreateRule.length; i++) {
4020
- var rule = this.registry.onCreateRule[i](name, decl, options);
4021
- if (rule) return rule;
4022
- }
4023
-
4024
- return null;
4025
- }
4026
- /**
4027
- * Call `onProcessRule` hooks.
4028
- */
4029
- ;
4030
-
4031
- _proto.onProcessRule = function onProcessRule(rule) {
4032
- if (rule.isProcessed) return;
4033
- var sheet = rule.options.sheet;
4034
-
4035
- for (var i = 0; i < this.registry.onProcessRule.length; i++) {
4036
- this.registry.onProcessRule[i](rule, sheet);
4037
- }
4038
-
4039
- if (rule.style) this.onProcessStyle(rule.style, rule, sheet);
4040
- rule.isProcessed = true;
4041
- }
4042
- /**
4043
- * Call `onProcessStyle` hooks.
4044
- */
4045
- ;
4046
-
4047
- _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {
4048
- for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
4049
- // $FlowFixMe[prop-missing]
4050
- rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
4051
- }
4052
- }
4053
- /**
4054
- * Call `onProcessSheet` hooks.
4055
- */
4056
- ;
4057
-
4058
- _proto.onProcessSheet = function onProcessSheet(sheet) {
4059
- for (var i = 0; i < this.registry.onProcessSheet.length; i++) {
4060
- this.registry.onProcessSheet[i](sheet);
4061
- }
4062
- }
4063
- /**
4064
- * Call `onUpdate` hooks.
4065
- */
4066
- ;
4067
-
4068
- _proto.onUpdate = function onUpdate(data, rule, sheet, options) {
4069
- for (var i = 0; i < this.registry.onUpdate.length; i++) {
4070
- this.registry.onUpdate[i](data, rule, sheet, options);
4071
- }
4072
- }
4073
- /**
4074
- * Call `onChangeValue` hooks.
4075
- */
4076
- ;
4077
-
4078
- _proto.onChangeValue = function onChangeValue(value, prop, rule) {
4079
- var processedValue = value;
4080
-
4081
- for (var i = 0; i < this.registry.onChangeValue.length; i++) {
4082
- processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);
4083
- }
4084
-
4085
- return processedValue;
4086
- }
4087
- /**
4088
- * Register a plugin.
4089
- */
4090
- ;
4091
-
4092
- _proto.use = function use(newPlugin, options) {
4093
- if (options === void 0) {
4094
- options = {
4095
- queue: 'external'
4096
- };
4097
- }
4098
-
4099
- var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.
4100
-
4101
- if (plugins.indexOf(newPlugin) !== -1) {
4102
- return;
4103
- }
4104
-
4105
- plugins.push(newPlugin);
4106
- this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {
4107
- for (var name in plugin) {
4108
- if (name in registry) {
4109
- registry[name].push(plugin[name]);
4110
- } else {
4111
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown hook \"" + name + "\".") : void 0;
4112
- }
4113
- }
4114
-
4115
- return registry;
4116
- }, {
4117
- onCreateRule: [],
4118
- onProcessRule: [],
4119
- onProcessStyle: [],
4120
- onProcessSheet: [],
4121
- onChangeValue: [],
4122
- onUpdate: []
4123
- });
4124
- };
4125
-
4126
- return PluginsRegistry;
4127
- }();
4128
-
4129
- /**
4130
- * Sheets registry to access them all at one place.
4131
- */
4132
- var SheetsRegistry =
4133
- /*#__PURE__*/
4134
- function () {
4135
- function SheetsRegistry() {
4136
- this.registry = [];
4137
- }
4138
-
4139
- var _proto = SheetsRegistry.prototype;
4140
-
4141
- /**
4142
- * Register a Style Sheet.
4143
- */
4144
- _proto.add = function add(sheet) {
4145
- var registry = this.registry;
4146
- var index = sheet.options.index;
4147
- if (registry.indexOf(sheet) !== -1) return;
4148
-
4149
- if (registry.length === 0 || index >= this.index) {
4150
- registry.push(sheet);
4151
- return;
4152
- } // Find a position.
4153
-
4154
-
4155
- for (var i = 0; i < registry.length; i++) {
4156
- if (registry[i].options.index > index) {
4157
- registry.splice(i, 0, sheet);
4158
- return;
4159
- }
4160
- }
4161
- }
4162
- /**
4163
- * Reset the registry.
4164
- */
4165
- ;
4166
-
4167
- _proto.reset = function reset() {
4168
- this.registry = [];
4169
- }
4170
- /**
4171
- * Remove a Style Sheet.
4172
- */
4173
- ;
4174
-
4175
- _proto.remove = function remove(sheet) {
4176
- var index = this.registry.indexOf(sheet);
4177
- this.registry.splice(index, 1);
4178
- }
4179
- /**
4180
- * Convert all attached sheets to a CSS string.
4181
- */
4182
- ;
4183
-
4184
- _proto.toString = function toString(_temp) {
4185
- var _ref = _temp === void 0 ? {} : _temp,
4186
- attached = _ref.attached,
4187
- options = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["attached"]);
4188
-
4189
- var css = '';
4190
-
4191
- for (var i = 0; i < this.registry.length; i++) {
4192
- var sheet = this.registry[i];
4193
-
4194
- if (attached != null && sheet.attached !== attached) {
4195
- continue;
4196
- }
4197
-
4198
- if (css) css += '\n';
4199
- css += sheet.toString(options);
4200
- }
4201
-
4202
- return css;
4203
- };
4204
-
4205
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsRegistry, [{
4206
- key: "index",
4207
-
4208
- /**
4209
- * Current highest index number.
4210
- */
4211
- get: function get() {
4212
- return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
4213
- }
4214
- }]);
4215
-
4216
- return SheetsRegistry;
4217
- }();
4218
-
4219
- /**
4220
- * This is a global sheets registry. Only DomRenderer will add sheets to it.
4221
- * On the server one should use an own SheetsRegistry instance and add the
4222
- * sheets to it, because you need to make sure to create a new registry for
4223
- * each request in order to not leak sheets across requests.
4224
- */
4225
-
4226
- var registry = new SheetsRegistry();
4227
-
4228
- /* eslint-disable */
4229
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
4230
- var globalThis = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
4231
-
4232
- var ns = '2f1acc6c3a606b082e5eef5e54414ffb';
4233
- if (globalThis[ns] == null) globalThis[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify
4234
- // the current version with just one short number and use it for classes generation
4235
- // we use a counter. Also it is more accurate, because user can manually reevaluate
4236
- // the module.
4237
-
4238
- var moduleId = globalThis[ns]++;
4239
-
4240
- var maxRules = 1e10;
4241
-
4242
- /**
4243
- * Returns a function which generates unique class names based on counters.
4244
- * When new generator function is created, rule counter is reseted.
4245
- * We need to reset the rule counter for SSR for each request.
4246
- */
4247
- var createGenerateId = function createGenerateId(options) {
4248
- if (options === void 0) {
4249
- options = {};
4250
- }
4251
-
4252
- var ruleCounter = 0;
4253
- return function (rule, sheet) {
4254
- ruleCounter += 1;
4255
-
4256
- if (ruleCounter > maxRules) {
4257
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") : void 0;
4258
- }
4259
-
4260
- var jssId = '';
4261
- var prefix = '';
4262
-
4263
- if (sheet) {
4264
- if (sheet.options.classNamePrefix) {
4265
- prefix = sheet.options.classNamePrefix;
4266
- }
4267
-
4268
- if (sheet.options.jss.id != null) {
4269
- jssId = String(sheet.options.jss.id);
4270
- }
4271
- }
4272
-
4273
- if (options.minify) {
4274
- // Using "c" because a number can't be the first char in a class name.
4275
- return "" + (prefix || 'c') + moduleId + jssId + ruleCounter;
4276
- }
4277
-
4278
- return prefix + rule.key + "-" + moduleId + (jssId ? "-" + jssId : '') + "-" + ruleCounter;
4279
- };
4280
- };
4281
-
4282
- /**
4283
- * Cache the value from the first time a function is called.
4284
- */
4285
- var memoize = function memoize(fn) {
4286
- var value;
4287
- return function () {
4288
- if (!value) value = fn();
4289
- return value;
4290
- };
4291
- };
4292
-
4293
- /**
4294
- * Get a style property value.
4295
- */
4296
- var getPropertyValue = function getPropertyValue(cssRule, prop) {
4297
- try {
4298
- // Support CSSTOM.
4299
- if (cssRule.attributeStyleMap) {
4300
- return cssRule.attributeStyleMap.get(prop);
4301
- }
4302
-
4303
- return cssRule.style.getPropertyValue(prop);
4304
- } catch (err) {
4305
- // IE may throw if property is unknown.
4306
- return '';
4307
- }
4308
- };
4309
-
4310
- /**
4311
- * Set a style property.
4312
- */
4313
- var setProperty = function setProperty(cssRule, prop, value) {
4314
- try {
4315
- var cssValue = value;
4316
-
4317
- if (Array.isArray(value)) {
4318
- cssValue = toCssValue(value, true);
4319
-
4320
- if (value[value.length - 1] === '!important') {
4321
- cssRule.style.setProperty(prop, cssValue, 'important');
4322
- return true;
4323
- }
4324
- } // Support CSSTOM.
4325
-
4326
-
4327
- if (cssRule.attributeStyleMap) {
4328
- cssRule.attributeStyleMap.set(prop, cssValue);
4329
- } else {
4330
- cssRule.style.setProperty(prop, cssValue);
4331
- }
4332
- } catch (err) {
4333
- // IE may throw if property is unknown.
4334
- return false;
4335
- }
4336
-
4337
- return true;
4338
- };
4339
-
4340
- /**
4341
- * Remove a style property.
4342
- */
4343
- var removeProperty = function removeProperty(cssRule, prop) {
4344
- try {
4345
- // Support CSSTOM.
4346
- if (cssRule.attributeStyleMap) {
4347
- cssRule.attributeStyleMap.delete(prop);
4348
- } else {
4349
- cssRule.style.removeProperty(prop);
4350
- }
4351
- } catch (err) {
4352
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] DOMException \"" + err.message + "\" was thrown. Tried to remove property \"" + prop + "\".") : void 0;
4353
- }
4354
- };
4355
-
4356
- /**
4357
- * Set the selector.
4358
- */
4359
- var setSelector = function setSelector(cssRule, selectorText) {
4360
- cssRule.selectorText = selectorText; // Return false if setter was not successful.
4361
- // Currently works in chrome only.
4362
-
4363
- return cssRule.selectorText === selectorText;
4364
- };
4365
- /**
4366
- * Gets the `head` element upon the first call and caches it.
4367
- * We assume it can't be null.
4368
- */
4369
-
4370
-
4371
- var getHead = memoize(function () {
4372
- return document.querySelector('head');
4373
- });
4374
- /**
4375
- * Find attached sheet with an index higher than the passed one.
4376
- */
4377
-
4378
- function findHigherSheet(registry, options) {
4379
- for (var i = 0; i < registry.length; i++) {
4380
- var sheet = registry[i];
4381
-
4382
- if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {
4383
- return sheet;
4384
- }
4385
- }
4386
-
4387
- return null;
4388
- }
4389
- /**
4390
- * Find attached sheet with the highest index.
4391
- */
4392
-
4393
-
4394
- function findHighestSheet(registry, options) {
4395
- for (var i = registry.length - 1; i >= 0; i--) {
4396
- var sheet = registry[i];
4397
-
4398
- if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {
4399
- return sheet;
4400
- }
4401
- }
4402
-
4403
- return null;
4404
- }
4405
- /**
4406
- * Find a comment with "jss" inside.
4407
- */
4408
-
4409
-
4410
- function findCommentNode(text) {
4411
- var head = getHead();
4412
-
4413
- for (var i = 0; i < head.childNodes.length; i++) {
4414
- var node = head.childNodes[i];
4415
-
4416
- if (node.nodeType === 8 && node.nodeValue.trim() === text) {
4417
- return node;
4418
- }
4419
- }
4420
-
4421
- return null;
4422
- }
4423
-
4424
- /**
4425
- * Find a node before which we can insert the sheet.
4426
- */
4427
- function findPrevNode(options) {
4428
- var registry$1 = registry.registry;
4429
-
4430
- if (registry$1.length > 0) {
4431
- // Try to insert before the next higher sheet.
4432
- var sheet = findHigherSheet(registry$1, options);
4433
-
4434
- if (sheet && sheet.renderer) {
4435
- return {
4436
- parent: sheet.renderer.element.parentNode,
4437
- node: sheet.renderer.element
4438
- };
4439
- } // Otherwise insert after the last attached.
4440
-
4441
-
4442
- sheet = findHighestSheet(registry$1, options);
4443
-
4444
- if (sheet && sheet.renderer) {
4445
- return {
4446
- parent: sheet.renderer.element.parentNode,
4447
- node: sheet.renderer.element.nextSibling
4448
- };
4449
- }
4450
- } // Try to find a comment placeholder if registry is empty.
4451
-
4452
-
4453
- var insertionPoint = options.insertionPoint;
4454
-
4455
- if (insertionPoint && typeof insertionPoint === 'string') {
4456
- var comment = findCommentNode(insertionPoint);
4457
-
4458
- if (comment) {
4459
- return {
4460
- parent: comment.parentNode,
4461
- node: comment.nextSibling
4462
- };
4463
- } // If user specifies an insertion point and it can't be found in the document -
4464
- // bad specificity issues may appear.
4465
-
4466
-
4467
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.") : void 0;
4468
- }
4469
-
4470
- return false;
4471
- }
4472
- /**
4473
- * Insert style element into the DOM.
4474
- */
4475
-
4476
-
4477
- function insertStyle(style, options) {
4478
- var insertionPoint = options.insertionPoint;
4479
- var nextNode = findPrevNode(options);
4480
-
4481
- if (nextNode !== false && nextNode.parent) {
4482
- nextNode.parent.insertBefore(style, nextNode.node);
4483
- return;
4484
- } // Works with iframes and any node types.
4485
-
4486
-
4487
- if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
4488
- // https://stackoverflow.com/questions/41328728/force-casting-in-flow
4489
- var insertionPointElement = insertionPoint;
4490
- var parentNode = insertionPointElement.parentNode;
4491
- if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, '[JSS] Insertion point is not in the DOM.') : void 0;
4492
- return;
4493
- }
4494
-
4495
- getHead().appendChild(style);
4496
- }
4497
- /**
4498
- * Read jss nonce setting from the page if the user has set it.
4499
- */
4500
-
4501
-
4502
- var getNonce = memoize(function () {
4503
- var node = document.querySelector('meta[property="csp-nonce"]');
4504
- return node ? node.getAttribute('content') : null;
4505
- });
4506
-
4507
- var _insertRule = function insertRule(container, rule, index) {
4508
- try {
4509
- if ('insertRule' in container) {
4510
- var c = container;
4511
- c.insertRule(rule, index);
4512
- } // Keyframes rule.
4513
- else if ('appendRule' in container) {
4514
- var _c = container;
4515
-
4516
- _c.appendRule(rule);
4517
- }
4518
- } catch (err) {
4519
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] " + err.message) : void 0;
4520
- return false;
4521
- }
4522
-
4523
- return container.cssRules[index];
4524
- };
4525
-
4526
- var getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {
4527
- var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong
4528
-
4529
- if (index === undefined || index > maxIndex) {
4530
- // eslint-disable-next-line no-param-reassign
4531
- return maxIndex;
4532
- }
4533
-
4534
- return index;
4535
- };
4536
-
4537
- var createStyle = function createStyle() {
4538
- var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we
4539
- // insert rules after we insert the style tag.
4540
- // It seems to kick-off the source order specificity algorithm.
4541
-
4542
- el.textContent = '\n';
4543
- return el;
4544
- };
4545
-
4546
- var DomRenderer =
4547
- /*#__PURE__*/
4548
- function () {
4549
- // HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696
4550
- // Will be empty if link: true option is not set, because
4551
- // it is only for use together with insertRule API.
4552
- function DomRenderer(sheet) {
4553
- this.getPropertyValue = getPropertyValue;
4554
- this.setProperty = setProperty;
4555
- this.removeProperty = removeProperty;
4556
- this.setSelector = setSelector;
4557
- this.element = void 0;
4558
- this.sheet = void 0;
4559
- this.hasInsertedRules = false;
4560
- this.cssRules = [];
4561
- // There is no sheet when the renderer is used from a standalone StyleRule.
4562
- if (sheet) registry.add(sheet);
4563
- this.sheet = sheet;
4564
-
4565
- var _ref = this.sheet ? this.sheet.options : {},
4566
- media = _ref.media,
4567
- meta = _ref.meta,
4568
- element = _ref.element;
4569
-
4570
- this.element = element || createStyle();
4571
- this.element.setAttribute('data-jss', '');
4572
- if (media) this.element.setAttribute('media', media);
4573
- if (meta) this.element.setAttribute('data-meta', meta);
4574
- var nonce = getNonce();
4575
- if (nonce) this.element.setAttribute('nonce', nonce);
4576
- }
4577
- /**
4578
- * Insert style element into render tree.
4579
- */
4580
-
4581
-
4582
- var _proto = DomRenderer.prototype;
4583
-
4584
- _proto.attach = function attach() {
4585
- // In the case the element node is external and it is already in the DOM.
4586
- if (this.element.parentNode || !this.sheet) return;
4587
- insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`
4588
- // most browsers create a new CSSStyleSheet, except of all IEs.
4589
-
4590
- var deployed = Boolean(this.sheet && this.sheet.deployed);
4591
-
4592
- if (this.hasInsertedRules && deployed) {
4593
- this.hasInsertedRules = false;
4594
- this.deploy();
4595
- }
4596
- }
4597
- /**
4598
- * Remove style element from render tree.
4599
- */
4600
- ;
4601
-
4602
- _proto.detach = function detach() {
4603
- if (!this.sheet) return;
4604
- var parentNode = this.element.parentNode;
4605
- if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.
4606
- // Though IE will keep them and we need a consistent behavior.
4607
-
4608
- if (this.sheet.options.link) {
4609
- this.cssRules = [];
4610
- this.element.textContent = '\n';
4611
- }
4612
- }
4613
- /**
4614
- * Inject CSS string into element.
4615
- */
4616
- ;
4617
-
4618
- _proto.deploy = function deploy() {
4619
- var sheet = this.sheet;
4620
- if (!sheet) return;
4621
-
4622
- if (sheet.options.link) {
4623
- this.insertRules(sheet.rules);
4624
- return;
4625
- }
4626
-
4627
- this.element.textContent = "\n" + sheet.toString() + "\n";
4628
- }
4629
- /**
4630
- * Insert RuleList into an element.
4631
- */
4632
- ;
4633
-
4634
- _proto.insertRules = function insertRules(rules, nativeParent) {
4635
- for (var i = 0; i < rules.index.length; i++) {
4636
- this.insertRule(rules.index[i], i, nativeParent);
4637
- }
4638
- }
4639
- /**
4640
- * Insert a rule into element.
4641
- */
4642
- ;
4643
-
4644
- _proto.insertRule = function insertRule(rule, index, nativeParent) {
4645
- if (nativeParent === void 0) {
4646
- nativeParent = this.element.sheet;
4647
- }
4648
-
4649
- if (rule.rules) {
4650
- var parent = rule;
4651
- var latestNativeParent = nativeParent;
4652
-
4653
- if (rule.type === 'conditional' || rule.type === 'keyframes') {
4654
- var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.
4655
-
4656
-
4657
- latestNativeParent = _insertRule(nativeParent, parent.toString({
4658
- children: false
4659
- }), _insertionIndex);
4660
-
4661
- if (latestNativeParent === false) {
4662
- return false;
4663
- }
4664
-
4665
- this.refCssRule(rule, _insertionIndex, latestNativeParent);
4666
- }
4667
-
4668
- this.insertRules(parent.rules, latestNativeParent);
4669
- return latestNativeParent;
4670
- }
4671
-
4672
- var ruleStr = rule.toString();
4673
- if (!ruleStr) return false;
4674
- var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);
4675
-
4676
- var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);
4677
-
4678
- if (nativeRule === false) {
4679
- return false;
4680
- }
4681
-
4682
- this.hasInsertedRules = true;
4683
- this.refCssRule(rule, insertionIndex, nativeRule);
4684
- return nativeRule;
4685
- };
4686
-
4687
- _proto.refCssRule = function refCssRule(rule, index, cssRule) {
4688
- rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules
4689
- // like rules inside media queries or keyframes
4690
-
4691
- if (rule.options.parent instanceof StyleSheet) {
4692
- this.cssRules[index] = cssRule;
4693
- }
4694
- }
4695
- /**
4696
- * Delete a rule.
4697
- */
4698
- ;
4699
-
4700
- _proto.deleteRule = function deleteRule(cssRule) {
4701
- var sheet = this.element.sheet;
4702
- var index = this.indexOf(cssRule);
4703
- if (index === -1) return false;
4704
- sheet.deleteRule(index);
4705
- this.cssRules.splice(index, 1);
4706
- return true;
4707
- }
4708
- /**
4709
- * Get index of a CSS Rule.
4710
- */
4711
- ;
4712
-
4713
- _proto.indexOf = function indexOf(cssRule) {
4714
- return this.cssRules.indexOf(cssRule);
4715
- }
4716
- /**
4717
- * Generate a new CSS rule and replace the existing one.
4718
- *
4719
- * Only used for some old browsers because they can't set a selector.
4720
- */
4721
- ;
4722
-
4723
- _proto.replaceRule = function replaceRule(cssRule, rule) {
4724
- var index = this.indexOf(cssRule);
4725
- if (index === -1) return false;
4726
- this.element.sheet.deleteRule(index);
4727
- this.cssRules.splice(index, 1);
4728
- return this.insertRule(rule, index);
4729
- }
4730
- /**
4731
- * Get all rules elements.
4732
- */
4733
- ;
4734
-
4735
- _proto.getRules = function getRules() {
4736
- return this.element.sheet.cssRules;
4737
- };
4738
-
4739
- return DomRenderer;
4740
- }();
4741
-
4742
- var instanceCounter = 0;
4743
-
4744
- var Jss =
4745
- /*#__PURE__*/
4746
- function () {
4747
- function Jss(options) {
4748
- this.id = instanceCounter++;
4749
- this.version = "10.5.0";
4750
- this.plugins = new PluginsRegistry();
4751
- this.options = {
4752
- id: {
4753
- minify: false
4754
- },
4755
- createGenerateId: createGenerateId,
4756
- Renderer: __WEBPACK_IMPORTED_MODULE_1_is_in_browser__["a" /* default */] ? DomRenderer : null,
4757
- plugins: []
4758
- };
4759
- this.generateId = createGenerateId({
4760
- minify: false
4761
- });
4762
-
4763
- for (var i = 0; i < plugins.length; i++) {
4764
- this.plugins.use(plugins[i], {
4765
- queue: 'internal'
4766
- });
4767
- }
4768
-
4769
- this.setup(options);
4770
- }
4771
- /**
4772
- * Prepares various options, applies plugins.
4773
- * Should not be used twice on the same instance, because there is no plugins
4774
- * deduplication logic.
4775
- */
4776
-
4777
-
4778
- var _proto = Jss.prototype;
4779
-
4780
- _proto.setup = function setup(options) {
4781
- if (options === void 0) {
4782
- options = {};
4783
- }
4784
-
4785
- if (options.createGenerateId) {
4786
- this.options.createGenerateId = options.createGenerateId;
4787
- }
4788
-
4789
- if (options.id) {
4790
- this.options.id = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, this.options.id, options.id);
4791
- }
4792
-
4793
- if (options.createGenerateId || options.id) {
4794
- this.generateId = this.options.createGenerateId(this.options.id);
4795
- }
4796
-
4797
- if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;
4798
-
4799
- if ('Renderer' in options) {
4800
- this.options.Renderer = options.Renderer;
4801
- } // eslint-disable-next-line prefer-spread
4802
-
4803
-
4804
- if (options.plugins) this.use.apply(this, options.plugins);
4805
- return this;
4806
- }
4807
- /**
4808
- * Create a Style Sheet.
4809
- */
4810
- ;
4811
-
4812
- _proto.createStyleSheet = function createStyleSheet(styles, options) {
4813
- if (options === void 0) {
4814
- options = {};
4815
- }
4816
-
4817
- var _options = options,
4818
- index = _options.index;
4819
-
4820
- if (typeof index !== 'number') {
4821
- index = registry.index === 0 ? 0 : registry.index + 1;
4822
- }
4823
-
4824
- var sheet = new StyleSheet(styles, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
4825
- jss: this,
4826
- generateId: options.generateId || this.generateId,
4827
- insertionPoint: this.options.insertionPoint,
4828
- Renderer: this.options.Renderer,
4829
- index: index
4830
- }));
4831
- this.plugins.onProcessSheet(sheet);
4832
- return sheet;
4833
- }
4834
- /**
4835
- * Detach the Style Sheet and remove it from the registry.
4836
- */
4837
- ;
4838
-
4839
- _proto.removeStyleSheet = function removeStyleSheet(sheet) {
4840
- sheet.detach();
4841
- registry.remove(sheet);
4842
- return this;
4843
- }
4844
- /**
4845
- * Create a rule without a Style Sheet.
4846
- * [Deprecated] will be removed in the next major version.
4847
- */
4848
- ;
4849
-
4850
- _proto.createRule = function createRule$1(name, style, options) {
4851
- if (style === void 0) {
4852
- style = {};
4853
- }
4854
-
4855
- if (options === void 0) {
4856
- options = {};
4857
- }
4858
-
4859
- // Enable rule without name for inline styles.
4860
- if (typeof name === 'object') {
4861
- // $FlowFixMe[incompatible-call]
4862
- return this.createRule(undefined, name, style);
4863
- } // $FlowFixMe[incompatible-type]
4864
-
4865
-
4866
- var ruleOptions = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
4867
- name: name,
4868
- jss: this,
4869
- Renderer: this.options.Renderer
4870
- });
4871
-
4872
- if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;
4873
- if (!ruleOptions.classes) ruleOptions.classes = {};
4874
- if (!ruleOptions.keyframes) ruleOptions.keyframes = {};
4875
-
4876
- var rule = createRule(name, style, ruleOptions);
4877
-
4878
- if (rule) this.plugins.onProcessRule(rule);
4879
- return rule;
4880
- }
4881
- /**
4882
- * Register plugin. Passed function will be invoked with a rule instance.
4883
- */
4884
- ;
4885
-
4886
- _proto.use = function use() {
4887
- var _this = this;
4888
-
4889
- for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
4890
- plugins[_key] = arguments[_key];
4891
- }
4892
-
4893
- plugins.forEach(function (plugin) {
4894
- _this.plugins.use(plugin);
4895
- });
4896
- return this;
4897
- };
4898
-
4899
- return Jss;
4900
- }();
4901
-
4902
- /**
4903
- * Extracts a styles object with only props that contain function values.
4904
- */
4905
- function getDynamicStyles(styles) {
4906
- var to = null;
4907
-
4908
- for (var key in styles) {
4909
- var value = styles[key];
4910
- var type = typeof value;
4911
-
4912
- if (type === 'function') {
4913
- if (!to) to = {};
4914
- to[key] = value;
4915
- } else if (type === 'object' && value !== null && !Array.isArray(value)) {
4916
- var extracted = getDynamicStyles(value);
4917
-
4918
- if (extracted) {
4919
- if (!to) to = {};
4920
- to[key] = extracted;
4921
- }
4922
- }
4923
- }
4924
-
4925
- return to;
4926
- }
4927
-
4928
- /**
4929
- * SheetsManager is like a WeakMap which is designed to count StyleSheet
4930
- * instances and attach/detach automatically.
4931
- */
4932
- var SheetsManager =
4933
- /*#__PURE__*/
4934
- function () {
4935
- function SheetsManager() {
4936
- this.length = 0;
4937
- this.sheets = new WeakMap();
4938
- }
4939
-
4940
- var _proto = SheetsManager.prototype;
4941
-
4942
- _proto.get = function get(key) {
4943
- var entry = this.sheets.get(key);
4944
- return entry && entry.sheet;
4945
- };
4946
-
4947
- _proto.add = function add(key, sheet) {
4948
- if (this.sheets.has(key)) return;
4949
- this.length++;
4950
- this.sheets.set(key, {
4951
- sheet: sheet,
4952
- refs: 0
4953
- });
4954
- };
4955
-
4956
- _proto.manage = function manage(key) {
4957
- var entry = this.sheets.get(key);
4958
-
4959
- if (entry) {
4960
- if (entry.refs === 0) {
4961
- entry.sheet.attach();
4962
- }
4963
-
4964
- entry.refs++;
4965
- return entry.sheet;
4966
- }
4967
-
4968
- Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] SheetsManager: can't find sheet to manage");
4969
- return undefined;
4970
- };
4971
-
4972
- _proto.unmanage = function unmanage(key) {
4973
- var entry = this.sheets.get(key);
4974
-
4975
- if (entry) {
4976
- if (entry.refs > 0) {
4977
- entry.refs--;
4978
- if (entry.refs === 0) entry.sheet.detach();
4979
- }
4980
- } else {
4981
- Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "SheetsManager: can't find sheet to unmanage");
4982
- }
4983
- };
4984
-
4985
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsManager, [{
4986
- key: "size",
4987
- get: function get() {
4988
- return this.length;
4989
- }
4990
- }]);
4991
-
4992
- return SheetsManager;
4993
- }();
4994
-
4995
- /**
4996
- * A better abstraction over CSS.
4997
- *
4998
- * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
4999
- * @website https://github.com/cssinjs/jss
5000
- * @license MIT
5001
- */
5002
-
5003
- /**
5004
- * Export a constant indicating if this browser has CSSTOM support.
5005
- * https://developers.google.com/web/updates/2018/03/cssom
5006
- */
5007
- var hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;
5008
- /**
5009
- * Creates a new instance of Jss.
5010
- */
5011
-
5012
- var create = function create(options) {
5013
- return new Jss(options);
5014
- };
5015
- /**
5016
- * A global Jss instance.
5017
- */
5018
-
5019
- var jss = create();
5020
-
5021
- /* unused harmony default export */ var _unused_webpack_default_export = (jss);
5022
-
5023
-
5024
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5025
-
5026
- /***/ }),
5027
- /* 54 */
5028
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5029
-
5030
- "use strict";
5031
- /* harmony export (immutable) */ __webpack_exports__["a"] = _classCallCheck;
5032
- function _classCallCheck(instance, Constructor) {
5033
- if (!(instance instanceof Constructor)) {
5034
- throw new TypeError("Cannot call a class as a function");
5035
- }
5036
- }
5037
-
5038
- /***/ }),
5039
- /* 55 */
5040
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5041
-
5042
- "use strict";
5043
- /* harmony export (immutable) */ __webpack_exports__["a"] = debounce;
5044
- // Corresponds to 10 frames at 60 Hz.
5045
- // A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.
5046
- function debounce(func) {
5047
- var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;
5048
- var timeout;
5049
-
5050
- function debounced() {
5051
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5052
- args[_key] = arguments[_key];
5053
- }
5054
-
5055
- // eslint-disable-next-line consistent-this
5056
- var that = this;
5057
-
5058
- var later = function later() {
5059
- func.apply(that, args);
5060
- };
5061
-
5062
- clearTimeout(timeout);
5063
- timeout = setTimeout(later, wait);
5064
- }
5065
-
5066
- debounced.clear = function () {
5067
- clearTimeout(timeout);
5068
- };
5069
-
5070
- return debounced;
5071
- }
5072
-
5073
- /***/ }),
5074
- /* 56 */
5075
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5076
-
5077
- "use strict";
5078
- /* harmony export (immutable) */ __webpack_exports__["a"] = setRef;
5079
- // TODO v5: consider to make it private
5080
- function setRef(ref, value) {
5081
- if (typeof ref === 'function') {
5082
- ref(value);
5083
- } else if (ref) {
5084
- ref.current = value;
5085
- }
5086
- }
5087
-
5088
- /***/ }),
5089
- /* 57 */
5090
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5091
-
5092
- "use strict";
5093
- /* harmony export (immutable) */ __webpack_exports__["a"] = useFormControl;
5094
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5095
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5096
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FormControlContext__ = __webpack_require__(107);
5097
-
5098
-
5099
- function useFormControl() {
5100
- return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](__WEBPACK_IMPORTED_MODULE_1__FormControlContext__["a" /* default */]);
5101
- }
5102
-
5103
- /***/ }),
5104
- /* 58 */
5105
- /***/ (function(module, exports, __webpack_require__) {
5106
-
5107
- var Symbol = __webpack_require__(87),
5108
- getRawTag = __webpack_require__(802),
5109
- objectToString = __webpack_require__(803);
5110
-
5111
- /** `Object#toString` result references. */
5112
- var nullTag = '[object Null]',
5113
- undefinedTag = '[object Undefined]';
5114
-
5115
- /** Built-in value references. */
5116
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
5117
-
5118
- /**
5119
- * The base implementation of `getTag` without fallbacks for buggy environments.
5120
- *
5121
- * @private
5122
- * @param {*} value The value to query.
5123
- * @returns {string} Returns the `toStringTag`.
5124
- */
5125
- function baseGetTag(value) {
5126
- if (value == null) {
5127
- return value === undefined ? undefinedTag : nullTag;
5128
- }
5129
- return (symToStringTag && symToStringTag in Object(value))
5130
- ? getRawTag(value)
5131
- : objectToString(value);
5132
- }
5133
-
5134
- module.exports = baseGetTag;
5135
-
5136
-
5137
- /***/ }),
5138
- /* 59 */
5139
- /***/ (function(module, exports, __webpack_require__) {
5140
-
5141
- var baseIsNative = __webpack_require__(828),
5142
- getValue = __webpack_require__(831);
5143
-
5144
- /**
5145
- * Gets the native function at `key` of `object`.
5146
- *
5147
- * @private
5148
- * @param {Object} object The object to query.
5149
- * @param {string} key The key of the method to get.
5150
- * @returns {*} Returns the function if it's native, else `undefined`.
5151
- */
5152
- function getNative(object, key) {
5153
- var value = getValue(object, key);
5154
- return baseIsNative(value) ? value : undefined;
5155
- }
5156
-
5157
- module.exports = getNative;
5158
-
5159
-
5160
- /***/ }),
5161
- /* 60 */
5162
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5163
-
5164
- "use strict";
5165
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsNative_js__ = __webpack_require__(924);
5166
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getValue_js__ = __webpack_require__(929);
5167
-
5168
-
5169
-
5170
- /**
5171
- * Gets the native function at `key` of `object`.
5172
- *
5173
- * @private
5174
- * @param {Object} object The object to query.
5175
- * @param {string} key The key of the method to get.
5176
- * @returns {*} Returns the function if it's native, else `undefined`.
5177
- */
5178
- function getNative(object, key) {
5179
- var value = Object(__WEBPACK_IMPORTED_MODULE_1__getValue_js__["a" /* default */])(object, key);
5180
- return Object(__WEBPACK_IMPORTED_MODULE_0__baseIsNative_js__["a" /* default */])(value) ? value : undefined;
5181
- }
5182
-
5183
- /* harmony default export */ __webpack_exports__["a"] = (getNative);
5184
-
5185
-
5186
- /***/ }),
5187
- /* 61 */
5188
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5189
-
5190
- "use strict";
5191
- /**
5192
- * Checks if `value` is object-like. A value is object-like if it's not `null`
5193
- * and has a `typeof` result of "object".
5194
- *
5195
- * @static
5196
- * @memberOf _
5197
- * @since 4.0.0
5198
- * @category Lang
5199
- * @param {*} value The value to check.
5200
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
5201
- * @example
5202
- *
5203
- * _.isObjectLike({});
5204
- * // => true
5205
- *
5206
- * _.isObjectLike([1, 2, 3]);
5207
- * // => true
5208
- *
5209
- * _.isObjectLike(_.noop);
5210
- * // => false
5211
- *
5212
- * _.isObjectLike(null);
5213
- * // => false
5214
- */
5215
- function isObjectLike(value) {
5216
- return value != null && typeof value == 'object';
5217
- }
5218
-
5219
- /* harmony default export */ __webpack_exports__["a"] = (isObjectLike);
5220
-
5221
-
5222
- /***/ }),
5223
- /* 62 */
5224
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5225
-
5226
- "use strict";
5227
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayMap_js__ = __webpack_require__(434);
5228
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseIteratee_js__ = __webpack_require__(991);
5229
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__baseMap_js__ = __webpack_require__(1029);
5230
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isArray_js__ = __webpack_require__(35);
5231
-
5232
-
5233
-
5234
-
5235
-
5236
- /**
5237
- * Creates an array of values by running each element in `collection` thru
5238
- * `iteratee`. The iteratee is invoked with three arguments:
5239
- * (value, index|key, collection).
5240
- *
5241
- * Many lodash methods are guarded to work as iteratees for methods like
5242
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
5243
- *
5244
- * The guarded methods are:
5245
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
5246
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
5247
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
5248
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
5249
- *
5250
- * @static
5251
- * @memberOf _
5252
- * @since 0.1.0
5253
- * @category Collection
5254
- * @param {Array|Object} collection The collection to iterate over.
5255
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
5256
- * @returns {Array} Returns the new mapped array.
5257
- * @example
5258
- *
5259
- * function square(n) {
5260
- * return n * n;
5261
- * }
5262
- *
5263
- * _.map([4, 8], square);
5264
- * // => [16, 64]
5265
- *
5266
- * _.map({ 'a': 4, 'b': 8 }, square);
5267
- * // => [16, 64] (iteration order is not guaranteed)
5268
- *
5269
- * var users = [
5270
- * { 'user': 'barney' },
5271
- * { 'user': 'fred' }
5272
- * ];
5273
- *
5274
- * // The `_.property` iteratee shorthand.
5275
- * _.map(users, 'user');
5276
- * // => ['barney', 'fred']
5277
- */
5278
- function map(collection, iteratee) {
5279
- var func = Object(__WEBPACK_IMPORTED_MODULE_3__isArray_js__["a" /* default */])(collection) ? __WEBPACK_IMPORTED_MODULE_0__arrayMap_js__["a" /* default */] : __WEBPACK_IMPORTED_MODULE_2__baseMap_js__["a" /* default */];
5280
- return func(collection, Object(__WEBPACK_IMPORTED_MODULE_1__baseIteratee_js__["a" /* default */])(iteratee, 3));
5281
- }
5282
-
5283
- /* harmony default export */ __webpack_exports__["a"] = (map);
5284
-
5285
-
5286
- /***/ }),
5287
- /* 63 */
5288
- /***/ (function(module, exports, __webpack_require__) {
5289
-
5290
- "use strict";
5291
- /*
5292
- object-assign
5293
- (c) Sindre Sorhus
5294
- @license MIT
5295
- */
5296
-
5297
-
5298
- /* eslint-disable no-unused-vars */
5299
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5300
- var hasOwnProperty = Object.prototype.hasOwnProperty;
5301
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
5302
-
5303
- function toObject(val) {
5304
- if (val === null || val === undefined) {
5305
- throw new TypeError('Object.assign cannot be called with null or undefined');
5306
- }
5307
-
5308
- return Object(val);
5309
- }
5310
-
5311
- function shouldUseNative() {
5312
- try {
5313
- if (!Object.assign) {
5314
- return false;
5315
- }
5316
-
5317
- // Detect buggy property enumeration order in older V8 versions.
5318
-
5319
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
5320
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
5321
- test1[5] = 'de';
5322
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
5323
- return false;
5324
- }
5325
-
5326
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5327
- var test2 = {};
5328
- for (var i = 0; i < 10; i++) {
5329
- test2['_' + String.fromCharCode(i)] = i;
5330
- }
5331
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
5332
- return test2[n];
5333
- });
5334
- if (order2.join('') !== '0123456789') {
5335
- return false;
5336
- }
5337
-
5338
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5339
- var test3 = {};
5340
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
5341
- test3[letter] = letter;
5342
- });
5343
- if (Object.keys(Object.assign({}, test3)).join('') !==
5344
- 'abcdefghijklmnopqrst') {
5345
- return false;
5346
- }
5347
-
5348
- return true;
5349
- } catch (err) {
5350
- // We don't expect any of the above to throw, but better to be safe.
5351
- return false;
5352
- }
5353
- }
5354
-
5355
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
5356
- var from;
5357
- var to = toObject(target);
5358
- var symbols;
5359
-
5360
- for (var s = 1; s < arguments.length; s++) {
5361
- from = Object(arguments[s]);
5362
-
5363
- for (var key in from) {
5364
- if (hasOwnProperty.call(from, key)) {
5365
- to[key] = from[key];
5366
- }
5367
- }
5368
-
5369
- if (getOwnPropertySymbols) {
5370
- symbols = getOwnPropertySymbols(from);
5371
- for (var i = 0; i < symbols.length; i++) {
5372
- if (propIsEnumerable.call(from, symbols[i])) {
5373
- to[symbols[i]] = from[symbols[i]];
5374
- }
5375
- }
5376
- }
5377
- }
5378
-
5379
- return to;
5380
- };
5381
-
5382
-
5383
- /***/ }),
5384
- /* 64 */
5385
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5386
-
5387
- "use strict";
5388
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useTheme__ = __webpack_require__(528);
5389
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useTheme__["a"]; });
5390
-
5391
-
5392
- /***/ }),
5393
- /* 65 */
5394
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5395
-
5396
- "use strict";
5397
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createChainedFunction;
5398
- /**
5399
- * Safe chained function
5400
- *
5401
- * Will only create a new function if needed,
5402
- * otherwise will pass back existing functions or null.
5403
- *
5404
- * @param {function} functions to chain
5405
- * @returns {function|null}
5406
- */
5407
- function createChainedFunction() {
5408
- for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
5409
- funcs[_key] = arguments[_key];
5410
- }
5411
-
5412
- return funcs.reduce(function (acc, func) {
5413
- if (func == null) {
5414
- return acc;
5415
- }
5416
-
5417
- if (process.env.NODE_ENV !== 'production') {
5418
- if (typeof func !== 'function') {
5419
- console.error('Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.');
5420
- }
5421
- }
5422
-
5423
- return function chainedFunction() {
5424
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5425
- args[_key2] = arguments[_key2];
5426
- }
5427
-
5428
- acc.apply(this, args);
5429
- func.apply(this, args);
5430
- };
5431
- }, function () {});
5432
- }
5433
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5434
-
5435
- /***/ }),
5436
- /* 66 */
5437
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5438
-
5439
- "use strict";
5440
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CSSTransition__ = __webpack_require__(602);
5441
- /* unused harmony reexport CSSTransition */
5442
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ReplaceTransition__ = __webpack_require__(606);
5443
- /* unused harmony reexport ReplaceTransition */
5444
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SwitchTransition__ = __webpack_require__(608);
5445
- /* unused harmony reexport SwitchTransition */
5446
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__ = __webpack_require__(283);
5447
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__["a"]; });
5448
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Transition__ = __webpack_require__(152);
5449
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_4__Transition__["d"]; });
5450
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(281);
5451
- /* unused harmony reexport config */
5452
-
5453
-
5454
-
5455
-
5456
-
5457
-
5458
-
5459
- /***/ }),
5460
- /* 67 */
5461
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5462
-
5463
- "use strict";
5464
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Collapse__ = __webpack_require__(626);
5465
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Collapse__["a"]; });
5466
-
5467
-
5468
- /***/ }),
5469
- /* 68 */
5470
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5471
-
5472
- "use strict";
5473
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return reflow; });
5474
- /* harmony export (immutable) */ __webpack_exports__["a"] = getTransitionProps;
5475
- var reflow = function reflow(node) {
5476
- return node.scrollTop;
5477
- };
5478
- function getTransitionProps(props, options) {
5479
- var timeout = props.timeout,
5480
- _props$style = props.style,
5481
- style = _props$style === void 0 ? {} : _props$style;
5482
- return {
5483
- duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
5484
- delay: style.transitionDelay
5485
- };
5486
- }
5487
-
5488
- /***/ }),
5489
- /* 69 */
5490
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5491
-
5492
- "use strict";
5493
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputBase__ = __webpack_require__(678);
5494
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputBase__["a"]; });
5495
-
5496
-
5497
- /***/ }),
5498
- /* 70 */
5499
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5500
-
5501
- "use strict";
5502
- /* harmony export (immutable) */ __webpack_exports__["a"] = formControlState;
5503
- function formControlState(_ref) {
5504
- var props = _ref.props,
5505
- states = _ref.states,
5506
- muiFormControl = _ref.muiFormControl;
5507
- return states.reduce(function (acc, state) {
5508
- acc[state] = props[state];
5509
-
5510
- if (muiFormControl) {
5511
- if (typeof props[state] === 'undefined') {
5512
- acc[state] = muiFormControl[state];
5513
- }
5514
- }
5515
-
5516
- return acc;
5517
- }, {});
5518
- }
5519
-
5520
- /***/ }),
5521
- /* 71 */
5522
- /***/ (function(module, exports) {
5523
-
5524
- /**
5525
- * Checks if `value` is the
5526
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
5527
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
5528
- *
5529
- * @static
5530
- * @memberOf _
5531
- * @since 0.1.0
5532
- * @category Lang
5533
- * @param {*} value The value to check.
5534
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
5535
- * @example
5536
- *
5537
- * _.isObject({});
5538
- * // => true
5539
- *
5540
- * _.isObject([1, 2, 3]);
5541
- * // => true
5542
- *
5543
- * _.isObject(_.noop);
5544
- * // => true
5545
- *
5546
- * _.isObject(null);
5547
- * // => false
5548
- */
5549
- function isObject(value) {
5550
- var type = typeof value;
5551
- return value != null && (type == 'object' || type == 'function');
5552
- }
5553
-
5554
- module.exports = isObject;
5555
-
5556
-
5557
- /***/ }),
5558
- /* 72 */
5559
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5560
-
5561
- "use strict";
5562
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(129);
5563
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getRawTag_js__ = __webpack_require__(925);
5564
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__objectToString_js__ = __webpack_require__(926);
5565
-
5566
-
5567
-
5568
-
5569
- /** `Object#toString` result references. */
5570
- var nullTag = '[object Null]',
5571
- undefinedTag = '[object Undefined]';
5572
-
5573
- /** Built-in value references. */
5574
- var symToStringTag = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */].toStringTag : undefined;
5575
-
5576
- /**
5577
- * The base implementation of `getTag` without fallbacks for buggy environments.
5578
- *
5579
- * @private
5580
- * @param {*} value The value to query.
5581
- * @returns {string} Returns the `toStringTag`.
5582
- */
5583
- function baseGetTag(value) {
5584
- if (value == null) {
5585
- return value === undefined ? undefinedTag : nullTag;
5586
- }
5587
- return (symToStringTag && symToStringTag in Object(value))
5588
- ? Object(__WEBPACK_IMPORTED_MODULE_1__getRawTag_js__["a" /* default */])(value)
5589
- : Object(__WEBPACK_IMPORTED_MODULE_2__objectToString_js__["a" /* default */])(value);
5590
- }
5591
-
5592
- /* harmony default export */ __webpack_exports__["a"] = (baseGetTag);
5593
-
5594
-
5595
- /***/ }),
5596
- /* 73 */
5597
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5598
-
5599
- "use strict";
5600
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isFunction_js__ = __webpack_require__(208);
5601
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isLength_js__ = __webpack_require__(214);
5602
-
5603
-
5604
-
5605
- /**
5606
- * Checks if `value` is array-like. A value is considered array-like if it's
5607
- * not a function and has a `value.length` that's an integer greater than or
5608
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
5609
- *
5610
- * @static
5611
- * @memberOf _
5612
- * @since 4.0.0
5613
- * @category Lang
5614
- * @param {*} value The value to check.
5615
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
5616
- * @example
5617
- *
5618
- * _.isArrayLike([1, 2, 3]);
5619
- * // => true
5620
- *
5621
- * _.isArrayLike(document.body.children);
5622
- * // => true
5623
- *
5624
- * _.isArrayLike('abc');
5625
- * // => true
5626
- *
5627
- * _.isArrayLike(_.noop);
5628
- * // => false
5629
- */
5630
- function isArrayLike(value) {
5631
- return value != null && Object(__WEBPACK_IMPORTED_MODULE_1__isLength_js__["a" /* default */])(value.length) && !Object(__WEBPACK_IMPORTED_MODULE_0__isFunction_js__["a" /* default */])(value);
5632
- }
5633
-
5634
- /* harmony default export */ __webpack_exports__["a"] = (isArrayLike);
5635
-
5636
-
5637
- /***/ }),
5638
- /* 74 */
5639
- /***/ (function(module, exports, __webpack_require__) {
5640
-
5641
- "use strict";
5642
-
5643
-
5644
- var reactIs = __webpack_require__(19);
5645
-
5646
- /**
5647
- * Copyright 2015, Yahoo! Inc.
5648
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
5649
- */
5650
- var REACT_STATICS = {
5651
- childContextTypes: true,
5652
- contextType: true,
5653
- contextTypes: true,
5654
- defaultProps: true,
5655
- displayName: true,
5656
- getDefaultProps: true,
5657
- getDerivedStateFromError: true,
5658
- getDerivedStateFromProps: true,
5659
- mixins: true,
5660
- propTypes: true,
5661
- type: true
5662
- };
5663
- var KNOWN_STATICS = {
5664
- name: true,
5665
- length: true,
5666
- prototype: true,
5667
- caller: true,
5668
- callee: true,
5669
- arguments: true,
5670
- arity: true
5671
- };
5672
- var FORWARD_REF_STATICS = {
5673
- '$$typeof': true,
5674
- render: true,
5675
- defaultProps: true,
5676
- displayName: true,
5677
- propTypes: true
5678
- };
5679
- var MEMO_STATICS = {
5680
- '$$typeof': true,
5681
- compare: true,
5682
- defaultProps: true,
5683
- displayName: true,
5684
- propTypes: true,
5685
- type: true
5686
- };
5687
- var TYPE_STATICS = {};
5688
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
5689
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
5690
-
5691
- function getStatics(component) {
5692
- // React v16.11 and below
5693
- if (reactIs.isMemo(component)) {
5694
- return MEMO_STATICS;
5695
- } // React v16.12 and above
5696
-
5697
-
5698
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
5699
- }
5700
-
5701
- var defineProperty = Object.defineProperty;
5702
- var getOwnPropertyNames = Object.getOwnPropertyNames;
5703
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5704
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
5705
- var getPrototypeOf = Object.getPrototypeOf;
5706
- var objectPrototype = Object.prototype;
5707
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
5708
- if (typeof sourceComponent !== 'string') {
5709
- // don't hoist over string (html) components
5710
- if (objectPrototype) {
5711
- var inheritedComponent = getPrototypeOf(sourceComponent);
5712
-
5713
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
5714
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
5715
- }
5716
- }
5717
-
5718
- var keys = getOwnPropertyNames(sourceComponent);
5719
-
5720
- if (getOwnPropertySymbols) {
5721
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
5722
- }
5723
-
5724
- var targetStatics = getStatics(targetComponent);
5725
- var sourceStatics = getStatics(sourceComponent);
5726
-
5727
- for (var i = 0; i < keys.length; ++i) {
5728
- var key = keys[i];
5729
-
5730
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
5731
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
5732
-
5733
- try {
5734
- // Avoid failures from read-only properties
5735
- defineProperty(targetComponent, key, descriptor);
5736
- } catch (e) {}
5737
- }
5738
- }
5739
- }
5740
-
5741
- return targetComponent;
5742
- }
5743
-
5744
- module.exports = hoistNonReactStatics;
5745
-
5746
-
5747
- /***/ }),
5748
- /* 75 */
5749
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5750
-
5751
- "use strict";
5752
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createMuiTheme__ = __webpack_require__(146);
5753
-
5754
- var defaultTheme = Object(__WEBPACK_IMPORTED_MODULE_0__createMuiTheme__["a" /* default */])();
5755
- /* harmony default export */ __webpack_exports__["a"] = (defaultTheme);
5756
-
5757
- /***/ }),
5758
- /* 76 */
5759
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5760
-
5761
- "use strict";
5762
- /* harmony export (immutable) */ __webpack_exports__["a"] = _inherits;
5763
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__setPrototypeOf__ = __webpack_require__(556);
5764
-
5765
- function _inherits(subClass, superClass) {
5766
- if (typeof superClass !== "function" && superClass !== null) {
5767
- throw new TypeError("Super expression must either be null or a function");
5768
- }
5769
-
5770
- subClass.prototype = Object.create(superClass && superClass.prototype, {
5771
- constructor: {
5772
- value: subClass,
5773
- writable: true,
5774
- configurable: true
5775
- }
5776
- });
5777
- if (superClass) Object(__WEBPACK_IMPORTED_MODULE_0__setPrototypeOf__["a" /* default */])(subClass, superClass);
5778
- }
5779
-
5780
- /***/ }),
5781
- /* 77 */
5782
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5783
-
5784
- "use strict";
5785
- /* harmony export (immutable) */ __webpack_exports__["a"] = _possibleConstructorReturn;
5786
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__helpers_esm_typeof__ = __webpack_require__(48);
5787
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__assertThisInitialized__ = __webpack_require__(93);
5788
-
5789
-
5790
- function _possibleConstructorReturn(self, call) {
5791
- if (call && (Object(__WEBPACK_IMPORTED_MODULE_0__helpers_esm_typeof__["a" /* default */])(call) === "object" || typeof call === "function")) {
5792
- return call;
5793
- }
5794
-
5795
- return Object(__WEBPACK_IMPORTED_MODULE_1__assertThisInitialized__["a" /* default */])(self);
5796
- }
5797
-
5798
- /***/ }),
5799
- /* 78 */
5800
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5801
-
5802
- "use strict";
5803
- /* harmony export (immutable) */ __webpack_exports__["a"] = _getPrototypeOf;
5804
- function _getPrototypeOf(o) {
5805
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
5806
- return o.__proto__ || Object.getPrototypeOf(o);
5807
- };
5808
- return _getPrototypeOf(o);
5809
- }
5810
-
5811
- /***/ }),
5812
- /* 79 */
5813
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5814
-
5815
- "use strict";
5816
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__ = __webpack_require__(151);
5817
-
5818
-
5819
- function css() {
5820
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5821
- args[_key] = arguments[_key];
5822
- }
5823
-
5824
- return Object(__WEBPACK_IMPORTED_MODULE_0__emotion_serialize__["a" /* serializeStyles */])(args);
5825
- }
5826
-
5827
- /* harmony default export */ __webpack_exports__["a"] = (css);
5828
-
5829
-
5830
- /***/ }),
5831
- /* 80 */
5832
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5833
-
5834
- "use strict";
5835
- /* harmony export (immutable) */ __webpack_exports__["a"] = isMuiElement;
5836
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5837
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5838
-
5839
- function isMuiElement(element, muiNames) {
5840
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"](element) && muiNames.indexOf(element.type.muiName) !== -1;
5841
- }
5842
-
5843
- /***/ }),
5844
- /* 81 */
5845
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5846
-
5847
- "use strict";
5848
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export teardown */
5849
- /* harmony export (immutable) */ __webpack_exports__["a"] = useIsFocusVisible;
5850
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5851
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5852
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(14);
5853
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);
5854
- // based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
5855
-
5856
-
5857
- var hadKeyboardEvent = true;
5858
- var hadFocusVisibleRecently = false;
5859
- var hadFocusVisibleRecentlyTimeout = null;
5860
- var inputTypesWhitelist = {
5861
- text: true,
5862
- search: true,
5863
- url: true,
5864
- tel: true,
5865
- email: true,
5866
- password: true,
5867
- number: true,
5868
- date: true,
5869
- month: true,
5870
- week: true,
5871
- time: true,
5872
- datetime: true,
5873
- 'datetime-local': true
5874
- };
5875
- /**
5876
- * Computes whether the given element should automatically trigger the
5877
- * `focus-visible` class being added, i.e. whether it should always match
5878
- * `:focus-visible` when focused.
5879
- * @param {Element} node
5880
- * @return {boolean}
5881
- */
5882
-
5883
- function focusTriggersKeyboardModality(node) {
5884
- var type = node.type,
5885
- tagName = node.tagName;
5886
-
5887
- if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {
5888
- return true;
5889
- }
5890
-
5891
- if (tagName === 'TEXTAREA' && !node.readOnly) {
5892
- return true;
5893
- }
5894
-
5895
- if (node.isContentEditable) {
5896
- return true;
5897
- }
5898
-
5899
- return false;
5900
- }
5901
- /**
5902
- * Keep track of our keyboard modality state with `hadKeyboardEvent`.
5903
- * If the most recent user interaction was via the keyboard;
5904
- * and the key press did not include a meta, alt/option, or control key;
5905
- * then the modality is keyboard. Otherwise, the modality is not keyboard.
5906
- * @param {KeyboardEvent} event
5907
- */
5908
-
5909
-
5910
- function handleKeyDown(event) {
5911
- if (event.metaKey || event.altKey || event.ctrlKey) {
5912
- return;
5913
- }
5914
-
5915
- hadKeyboardEvent = true;
5916
- }
5917
- /**
5918
- * If at any point a user clicks with a pointing device, ensure that we change
5919
- * the modality away from keyboard.
5920
- * This avoids the situation where a user presses a key on an already focused
5921
- * element, and then clicks on a different element, focusing it with a
5922
- * pointing device, while we still think we're in keyboard modality.
5923
- */
5924
-
5925
-
5926
- function handlePointerDown() {
5927
- hadKeyboardEvent = false;
5928
- }
5929
-
5930
- function handleVisibilityChange() {
5931
- if (this.visibilityState === 'hidden') {
5932
- // If the tab becomes active again, the browser will handle calling focus
5933
- // on the element (Safari actually calls it twice).
5934
- // If this tab change caused a blur on an element with focus-visible,
5935
- // re-apply the class when the user switches back to the tab.
5936
- if (hadFocusVisibleRecently) {
5937
- hadKeyboardEvent = true;
5938
- }
5939
- }
5940
- }
5941
-
5942
- function prepare(doc) {
5943
- doc.addEventListener('keydown', handleKeyDown, true);
5944
- doc.addEventListener('mousedown', handlePointerDown, true);
5945
- doc.addEventListener('pointerdown', handlePointerDown, true);
5946
- doc.addEventListener('touchstart', handlePointerDown, true);
5947
- doc.addEventListener('visibilitychange', handleVisibilityChange, true);
5948
- }
5949
-
5950
- function teardown(doc) {
5951
- doc.removeEventListener('keydown', handleKeyDown, true);
5952
- doc.removeEventListener('mousedown', handlePointerDown, true);
5953
- doc.removeEventListener('pointerdown', handlePointerDown, true);
5954
- doc.removeEventListener('touchstart', handlePointerDown, true);
5955
- doc.removeEventListener('visibilitychange', handleVisibilityChange, true);
5956
- }
5957
-
5958
- function isFocusVisible(event) {
5959
- var target = event.target;
5960
-
5961
- try {
5962
- return target.matches(':focus-visible');
5963
- } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError
5964
- // we use our own heuristic for those browsers
5965
- // rethrow might be better if it's not the expected error but do we really
5966
- // want to crash if focus-visible malfunctioned?
5967
- // no need for validFocusTarget check. the user does that by attaching it to
5968
- // focusable events only
5969
-
5970
-
5971
- return hadKeyboardEvent || focusTriggersKeyboardModality(target);
5972
- }
5973
- /**
5974
- * Should be called if a blur event is fired on a focus-visible element
5975
- */
5976
-
5977
-
5978
- function handleBlurVisible() {
5979
- // To detect a tab/window switch, we look for a blur event followed
5980
- // rapidly by a visibility change.
5981
- // If we don't see a visibility change within 100ms, it's probably a
5982
- // regular focus change.
5983
- hadFocusVisibleRecently = true;
5984
- window.clearTimeout(hadFocusVisibleRecentlyTimeout);
5985
- hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
5986
- hadFocusVisibleRecently = false;
5987
- }, 100);
5988
- }
5989
-
5990
- function useIsFocusVisible() {
5991
- var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (instance) {
5992
- var node = __WEBPACK_IMPORTED_MODULE_1_react_dom__["findDOMNode"](instance);
5993
-
5994
- if (node != null) {
5995
- prepare(node.ownerDocument);
5996
- }
5997
- }, []);
5998
-
5999
- if (process.env.NODE_ENV !== 'production') {
6000
- // eslint-disable-next-line react-hooks/rules-of-hooks
6001
- __WEBPACK_IMPORTED_MODULE_0_react__["useDebugValue"](isFocusVisible);
6002
- }
6003
-
6004
- return {
6005
- isFocusVisible: isFocusVisible,
6006
- onBlurVisible: handleBlurVisible,
6007
- ref: ref
6008
- };
6009
- }
6010
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6011
-
6012
- /***/ }),
6013
- /* 82 */
6014
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6015
-
6016
- "use strict";
6017
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Modal__ = __webpack_require__(662);
6018
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Modal__["a"]; });
6019
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ModalManager__ = __webpack_require__(309);
6020
- /* unused harmony reexport ModalManager */
6021
-
6022
-
6023
-
6024
- /***/ }),
6025
- /* 83 */
6026
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6027
-
6028
- "use strict";
6029
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Grow__ = __webpack_require__(689);
6030
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Grow__["a"]; });
6031
-
6032
-
6033
- /***/ }),
6034
- /* 84 */
6035
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6036
-
6037
- "use strict";
6038
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Input__ = __webpack_require__(694);
6039
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Input__["a"]; });
6040
-
6041
-
6042
- /***/ }),
6043
- /* 85 */
6044
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6045
-
6046
- "use strict";
6047
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6048
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6049
-
6050
- /**
6051
- * @ignore - internal component.
6052
- */
6053
-
6054
- var ListContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
6055
-
6056
- if (process.env.NODE_ENV !== 'production') {
6057
- ListContext.displayName = 'ListContext';
6058
- }
6059
-
6060
- /* harmony default export */ __webpack_exports__["a"] = (ListContext);
6061
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6062
-
6063
- /***/ }),
6064
- /* 86 */
6065
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6066
-
6067
- "use strict";
6068
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6069
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6070
-
6071
- /**
6072
- * @ignore - internal component.
6073
- */
6074
-
6075
- var Tablelvl2Context = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
6076
-
6077
- if (process.env.NODE_ENV !== 'production') {
6078
- Tablelvl2Context.displayName = 'Tablelvl2Context';
6079
- }
6080
-
6081
- /* harmony default export */ __webpack_exports__["a"] = (Tablelvl2Context);
6082
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6083
-
6084
- /***/ }),
6085
- /* 87 */
6086
- /***/ (function(module, exports, __webpack_require__) {
6087
-
6088
- var root = __webpack_require__(42);
6089
-
6090
- /** Built-in value references. */
6091
- var Symbol = root.Symbol;
6092
-
6093
- module.exports = Symbol;
6094
-
6095
-
6096
- /***/ }),
6097
- /* 88 */
6098
- /***/ (function(module, exports, __webpack_require__) {
6099
-
6100
- var arrayLikeKeys = __webpack_require__(397),
6101
- baseKeys = __webpack_require__(810),
6102
- isArrayLike = __webpack_require__(119);
6103
-
6104
- /**
6105
- * Creates an array of the own enumerable property names of `object`.
6106
- *
6107
- * **Note:** Non-object values are coerced to objects. See the
6108
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
6109
- * for more details.
6110
- *
6111
- * @static
6112
- * @since 0.1.0
6113
- * @memberOf _
6114
- * @category Object
6115
- * @param {Object} object The object to query.
6116
- * @returns {Array} Returns the array of property names.
6117
- * @example
6118
- *
6119
- * function Foo() {
6120
- * this.a = 1;
6121
- * this.b = 2;
6122
- * }
6123
- *
6124
- * Foo.prototype.c = 3;
6125
- *
6126
- * _.keys(new Foo);
6127
- * // => ['a', 'b'] (iteration order is not guaranteed)
6128
- *
6129
- * _.keys('hi');
6130
- * // => ['0', '1']
6131
- */
6132
- function keys(object) {
6133
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
6134
- }
6135
-
6136
- module.exports = keys;
6137
-
6138
-
6139
- /***/ }),
6140
- /* 89 */
6141
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6142
-
6143
- "use strict";
6144
- /**
6145
- * Performs a
6146
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
6147
- * comparison between two values to determine if they are equivalent.
6148
- *
6149
- * @static
6150
- * @memberOf _
6151
- * @since 4.0.0
6152
- * @category Lang
6153
- * @param {*} value The value to compare.
6154
- * @param {*} other The other value to compare.
6155
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
6156
- * @example
6157
- *
6158
- * var object = { 'a': 1 };
6159
- * var other = { 'a': 1 };
6160
- *
6161
- * _.eq(object, object);
6162
- * // => true
6163
- *
6164
- * _.eq(object, other);
6165
- * // => false
6166
- *
6167
- * _.eq('a', 'a');
6168
- * // => true
6169
- *
6170
- * _.eq('a', Object('a'));
6171
- * // => false
6172
- *
6173
- * _.eq(NaN, NaN);
6174
- * // => true
6175
- */
6176
- function eq(value, other) {
6177
- return value === other || (value !== value && other !== other);
6178
- }
6179
-
6180
- /* harmony default export */ __webpack_exports__["a"] = (eq);
6181
-
6182
-
6183
- /***/ }),
6184
- /* 90 */
6185
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6186
-
6187
- "use strict";
6188
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6189
- /* harmony export (immutable) */ __webpack_exports__["default"] = startOfWeek;
6190
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(9);
6191
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__ = __webpack_require__(12);
6192
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(7);
6193
-
6194
-
6195
-
6196
- /**
6197
- * @name startOfWeek
6198
- * @category Week Helpers
6199
- * @summary Return the start of a week for the given date.
6200
- *
6201
- * @description
6202
- * Return the start of a week for the given date.
6203
- * The result will be in the local timezone.
6204
- *
6205
- * ### v2.0.0 breaking changes:
6206
- *
6207
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
6208
- *
6209
- * @param {Date|Number} date - the original date
6210
- * @param {Object} [options] - an object with options.
6211
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
6212
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
6213
- * @returns {Date} the start of a week
6214
- * @throws {TypeError} 1 argument required
6215
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
6216
- *
6217
- * @example
6218
- * // The start of a week for 2 September 2014 11:55:00:
6219
- * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
6220
- * //=> Sun Aug 31 2014 00:00:00
6221
- *
6222
- * @example
6223
- * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
6224
- * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
6225
- * //=> Mon Sep 01 2014 00:00:00
6226
- */
6227
-
6228
- function startOfWeek(dirtyDate, dirtyOptions) {
6229
- Object(__WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */])(1, arguments);
6230
- var options = dirtyOptions || {};
6231
- var locale = options.locale;
6232
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
6233
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(__WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */])(localeWeekStartsOn);
6234
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(__WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
6235
-
6236
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
6237
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
6238
- }
6239
-
6240
- var date = Object(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["default"])(dirtyDate);
6241
- var day = date.getDay();
6242
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
6243
- date.setDate(date.getDate() - diff);
6244
- date.setHours(0, 0, 0, 0);
6245
- return date;
6246
- }
6247
-
6248
- /***/ }),
6249
- /* 91 */
6250
- /***/ (function(module, exports, __webpack_require__) {
6251
-
6252
- "use strict";
6253
-
6254
-
6255
- var keys = __webpack_require__(459);
6256
- var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
6257
-
6258
- var toStr = Object.prototype.toString;
6259
- var concat = Array.prototype.concat;
6260
- var origDefineProperty = Object.defineProperty;
6261
-
6262
- var isFunction = function (fn) {
6263
- return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
6264
- };
6265
-
6266
- var arePropertyDescriptorsSupported = function () {
6267
- var obj = {};
6268
- try {
6269
- origDefineProperty(obj, 'x', { enumerable: false, value: obj });
6270
- // eslint-disable-next-line no-unused-vars, no-restricted-syntax
6271
- for (var _ in obj) { // jscs:ignore disallowUnusedVariables
6272
- return false;
6273
- }
6274
- return obj.x === obj;
6275
- } catch (e) { /* this is IE 8. */
6276
- return false;
6277
- }
6278
- };
6279
- var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported();
6280
-
6281
- var defineProperty = function (object, name, value, predicate) {
6282
- if (name in object && (!isFunction(predicate) || !predicate())) {
6283
- return;
6284
- }
6285
- if (supportsDescriptors) {
6286
- origDefineProperty(object, name, {
6287
- configurable: true,
6288
- enumerable: false,
6289
- value: value,
6290
- writable: true
6291
- });
6292
- } else {
6293
- object[name] = value;
6294
- }
6295
- };
6296
-
6297
- var defineProperties = function (object, map) {
6298
- var predicates = arguments.length > 2 ? arguments[2] : {};
6299
- var props = keys(map);
6300
- if (hasSymbols) {
6301
- props = concat.call(props, Object.getOwnPropertySymbols(map));
6302
- }
6303
- for (var i = 0; i < props.length; i += 1) {
6304
- defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
6305
- }
6306
- };
6307
-
6308
- defineProperties.supportsDescriptors = !!supportsDescriptors;
6309
-
6310
- module.exports = defineProperties;
6311
-
6312
-
6313
- /***/ }),
6314
- /* 92 */
6315
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6316
-
6317
- "use strict";
6318
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__ = __webpack_require__(510);
6319
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__["a"]; });
6320
-
6321
-
6322
- /***/ }),
6323
- /* 93 */
6324
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6325
-
6326
- "use strict";
6327
- /* harmony export (immutable) */ __webpack_exports__["a"] = _assertThisInitialized;
6328
- function _assertThisInitialized(self) {
6329
- if (self === void 0) {
6330
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6331
- }
6332
-
6333
- return self;
6334
- }
6335
-
6336
- /***/ }),
6337
- /* 94 */
6338
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6339
-
6340
- "use strict";
6341
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__makeStyles__ = __webpack_require__(525);
6342
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__makeStyles__["a"]; });
6343
-
6344
-
6345
- /***/ }),
6346
- /* 95 */
6347
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6348
-
6349
- "use strict";
6350
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StylesProvider__ = __webpack_require__(236);
6351
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["b"]; });
6352
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["a"]; });
6353
-
6354
-
6355
-
6356
- /***/ }),
6357
- /* 96 */
6358
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6359
-
6360
- "use strict";
6361
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(8);
6362
-
6363
-
6364
- function merge(acc, item) {
6365
- if (!item) {
6366
- return acc;
6367
- }
6368
-
6369
- return Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["c" /* deepmerge */])(acc, item, {
6370
- clone: false // No need to clone deep, it's way faster.
6371
-
6372
- });
6373
- }
6374
-
6375
- /* harmony default export */ __webpack_exports__["a"] = (merge);
6376
-
6377
- /***/ }),
6378
- /* 97 */
6379
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6380
-
6381
- "use strict";
6382
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6383
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NonceProvider", function() { return NonceProvider; });
6384
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(547);
6385
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__);
6386
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__ = __webpack_require__(148);
6387
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__);
6388
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__ = __webpack_require__(548);
6389
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__);
6390
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__ = __webpack_require__(552);
6391
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__);
6392
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__ = __webpack_require__(98);
6393
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__);
6394
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(54);
6395
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(49);
6396
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__ = __webpack_require__(99);
6397
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__);
6398
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(76);
6399
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(77);
6400
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(78);
6401
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(0);
6402
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
6403
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(269);
6404
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(149);
6405
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(14);
6406
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__);
6407
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__ = __webpack_require__(562);
6408
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__);
6409
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__index_4b37608a_browser_esm_js__ = __webpack_require__(273);
6410
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return __WEBPACK_IMPORTED_MODULE_16__index_4b37608a_browser_esm_js__["f"]; });
6411
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__ = __webpack_require__(275);
6412
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createFilter", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["c"]; });
6413
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "defaultTheme", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["b"]; });
6414
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mergeStyles", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["d"]; });
6415
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__emotion_css__ = __webpack_require__(79);
6416
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__ = __webpack_require__(564);
6417
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__);
6418
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize__ = __webpack_require__(274);
6419
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_20_react_input_autosize__);
6420
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__ = __webpack_require__(565);
6421
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__emotion_cache__ = __webpack_require__(150);
6422
-
6423
-
6424
-
6425
-
6426
-
6427
-
6428
-
6429
-
6430
-
6431
-
6432
-
6433
-
6434
-
6435
-
6436
-
6437
-
6438
-
6439
-
6440
-
6441
-
6442
-
6443
-
6444
-
6445
-
6446
-
6447
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
6448
-
6449
- 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; } }
6450
-
6451
- var NonceProvider = /*#__PURE__*/function (_Component) {
6452
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NonceProvider, _Component);
6453
-
6454
- var _super = _createSuper(NonceProvider);
6455
-
6456
- function NonceProvider(props) {
6457
- var _this;
6458
-
6459
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NonceProvider);
6460
-
6461
- _this = _super.call(this, props);
6462
-
6463
- _this.createEmotionCache = function (nonce) {
6464
- return Object(__WEBPACK_IMPORTED_MODULE_22__emotion_cache__["a" /* default */])({
6465
- nonce: nonce
6466
- });
6467
- };
6468
-
6469
- _this.createEmotionCache = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.createEmotionCache);
6470
- return _this;
6471
- }
6472
-
6473
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NonceProvider, [{
6474
- key: "render",
6475
- value: function render() {
6476
- var emotionCache = this.createEmotionCache(this.props.nonce);
6477
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["a" /* CacheProvider */], {
6478
- value: emotionCache
6479
- }, this.props.children);
6480
- }
6481
- }]);
6482
-
6483
- return NonceProvider;
6484
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
6485
-
6486
- var index = Object(__WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__["a" /* m */])(__WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["a" /* S */]);
6487
-
6488
- /* harmony default export */ __webpack_exports__["default"] = (index);
6489
-
6490
-
6491
-
6492
- /***/ }),
6493
- /* 98 */
6494
- /***/ (function(module, exports) {
6495
-
6496
- function _defineProperty(obj, key, value) {
6497
- if (key in obj) {
6498
- Object.defineProperty(obj, key, {
6499
- value: value,
6500
- enumerable: true,
6501
- configurable: true,
6502
- writable: true
6503
- });
6504
- } else {
6505
- obj[key] = value;
6506
- }
6507
-
6508
- return obj;
6509
- }
6510
-
6511
- module.exports = _defineProperty;
6512
-
6513
- /***/ }),
6514
- /* 99 */
6515
- /***/ (function(module, exports) {
6516
-
6517
- function _assertThisInitialized(self) {
6518
- if (self === void 0) {
6519
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6520
- }
6521
-
6522
- return self;
6523
- }
6524
-
6525
- module.exports = _assertThisInitialized;
6526
-
6527
- /***/ }),
6528
- /* 100 */
6529
- /***/ (function(module, exports) {
6530
-
6531
- function _inheritsLoose(subClass, superClass) {
6532
- subClass.prototype = Object.create(superClass.prototype);
6533
- subClass.prototype.constructor = subClass;
6534
- subClass.__proto__ = superClass;
6535
- }
6536
-
6537
- module.exports = _inheritsLoose;
6538
-
6539
- /***/ }),
6540
- /* 101 */
6541
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6542
-
6543
- "use strict";
6544
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SvgIcon__ = __webpack_require__(594);
6545
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SvgIcon__["a"]; });
6546
-
6547
-
6548
- /***/ }),
6549
- /* 102 */
6550
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6551
-
6552
- "use strict";
6553
- /* harmony export (immutable) */ __webpack_exports__["a"] = ownerWindow;
6554
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ownerDocument__ = __webpack_require__(31);
6555
-
6556
- function ownerWindow(node) {
6557
- var doc = Object(__WEBPACK_IMPORTED_MODULE_0__ownerDocument__["a" /* default */])(node);
6558
- return doc.defaultView || window;
6559
- }
6560
-
6561
- /***/ }),
6562
- /* 103 */
6563
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6564
-
6565
- "use strict";
6566
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = unsupportedProp;
6567
- function unsupportedProp(props, propName, componentName, location, propFullName) {
6568
- if (process.env.NODE_ENV === 'production') {
6569
- return null;
6570
- }
6571
-
6572
- var propFullNameSafe = propFullName || propName;
6573
-
6574
- if (typeof props[propName] !== 'undefined') {
6575
- return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it."));
6576
- }
6577
-
6578
- return null;
6579
- }
6580
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6581
-
6582
- /***/ }),
6583
- /* 104 */
6584
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6585
-
6586
- "use strict";
6587
- /* harmony export (immutable) */ __webpack_exports__["a"] = useId;
6588
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6589
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6590
-
6591
- /**
6592
- * Private module reserved for @material-ui/x packages.
6593
- */
6594
-
6595
- function useId(idOverride) {
6596
- var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](idOverride),
6597
- defaultId = _React$useState[0],
6598
- setDefaultId = _React$useState[1];
6599
-
6600
- var id = idOverride || defaultId;
6601
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
6602
- if (defaultId == null) {
6603
- // Fallback to this default id when possible.
6604
- // Use the random value for client-side rendering only.
6605
- // We can't use it server-side.
6606
- setDefaultId("mui-".concat(Math.round(Math.random() * 1e5)));
6607
- }
6608
- }, [defaultId]);
6609
- return id;
6610
- }
6611
-
6612
- /***/ }),
6613
- /* 105 */
6614
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6615
-
6616
- "use strict";
6617
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Backdrop__ = __webpack_require__(633);
6618
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Backdrop__["a"]; });
6619
-
6620
-
6621
- /***/ }),
6622
- /* 106 */
6623
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6624
-
6625
- "use strict";
6626
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fade__ = __webpack_require__(634);
6627
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fade__["a"]; });
6628
-
6629
-
6630
- /***/ }),
6631
- /* 107 */
6632
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6633
-
6634
- "use strict";
6635
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["b"] = useFormControl;
6636
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6637
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6638
-
6639
- /**
6640
- * @ignore - internal component.
6641
- */
6642
-
6643
- var FormControlContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
6644
-
6645
- if (process.env.NODE_ENV !== 'production') {
6646
- FormControlContext.displayName = 'FormControlContext';
6647
- }
6648
-
6649
- function useFormControl() {
6650
- return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](FormControlContext);
6651
- }
6652
- /* harmony default export */ __webpack_exports__["a"] = (FormControlContext);
6653
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6654
-
6655
- /***/ }),
6656
- /* 108 */
6657
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6658
-
6659
- "use strict";
6660
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Portal__ = __webpack_require__(663);
6661
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Portal__["a"]; });
6662
-
6663
-
6664
- /***/ }),
6665
- /* 109 */
6666
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6667
-
6668
- "use strict";
6669
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fab__ = __webpack_require__(676);
6670
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fab__["a"]; });
6671
-
6672
-
6673
- /***/ }),
6674
- /* 110 */
6675
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6676
-
6677
- "use strict";
6678
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FilledInput__ = __webpack_require__(677);
6679
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FilledInput__["a"]; });
6680
-
6681
-
6682
- /***/ }),
6683
- /* 111 */
6684
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6685
-
6686
- "use strict";
6687
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormControl__ = __webpack_require__(680);
6688
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormControl__["a"]; });
6689
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__useFormControl__ = __webpack_require__(57);
6690
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__useFormControl__["a"]; });
6691
-
6692
-
6693
-
6694
- /***/ }),
6695
- /* 112 */
6696
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6697
-
6698
- "use strict";
6699
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withWidth__ = __webpack_require__(328);
6700
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["a"]; });
6701
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["b"]; });
6702
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["c"]; });
6703
-
6704
-
6705
-
6706
- /***/ }),
6707
- /* 113 */
6708
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6709
-
6710
- "use strict";
6711
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__ = __webpack_require__(711);
6712
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__["a"]; });
6713
-
6714
-
6715
- /***/ }),
6716
- /* 114 */
6717
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6718
-
6719
- "use strict";
6720
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popper__ = __webpack_require__(713);
6721
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popper__["a"]; });
6722
-
6723
-
6724
- /***/ }),
6725
- /* 115 */
6726
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6727
-
6728
- "use strict";
6729
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Select__ = __webpack_require__(721);
6730
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Select__["a"]; });
6731
-
6732
-
6733
- /***/ }),
6734
- /* 116 */
6735
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6736
-
6737
- "use strict";
6738
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6739
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tooltip__ = __webpack_require__(759);
6740
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Tooltip__["a"]; });
6741
-
6742
-
6743
- /***/ }),
6744
- /* 117 */
6745
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6746
-
6747
- "use strict";
6748
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabContext__ = __webpack_require__(380);
6749
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["a"]; });
6750
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["b"]; });
6751
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["c"]; });
6752
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["d"]; });
6753
-
6754
-
6755
-
6756
- /***/ }),
6757
- /* 118 */
6758
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6759
-
6760
- "use strict";
6761
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6762
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6763
-
6764
- /**
6765
- * @ignore - internal component.
6766
- */
6767
-
6768
- var TimelineContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
6769
-
6770
- if (process.env.NODE_ENV !== 'production') {
6771
- TimelineContext.displayName = 'TimelineContext';
6772
- }
6773
-
6774
- /* harmony default export */ __webpack_exports__["a"] = (TimelineContext);
6775
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6776
-
6777
- /***/ }),
6778
- /* 119 */
6779
- /***/ (function(module, exports, __webpack_require__) {
6780
-
6781
- var isFunction = __webpack_require__(402),
6782
- isLength = __webpack_require__(191);
6783
-
6784
- /**
6785
- * Checks if `value` is array-like. A value is considered array-like if it's
6786
- * not a function and has a `value.length` that's an integer greater than or
6787
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6788
- *
6789
- * @static
6790
- * @memberOf _
6791
- * @since 4.0.0
6792
- * @category Lang
6793
- * @param {*} value The value to check.
6794
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6795
- * @example
6796
- *
6797
- * _.isArrayLike([1, 2, 3]);
6798
- * // => true
6799
- *
6800
- * _.isArrayLike(document.body.children);
6801
- * // => true
6802
- *
6803
- * _.isArrayLike('abc');
6804
- * // => true
6805
- *
6806
- * _.isArrayLike(_.noop);
6807
- * // => false
6808
- */
6809
- function isArrayLike(value) {
6810
- return value != null && isLength(value.length) && !isFunction(value);
6811
- }
6812
-
6813
- module.exports = isArrayLike;
6814
-
6815
-
6816
- /***/ }),
6817
- /* 120 */
6818
- /***/ (function(module, exports, __webpack_require__) {
6819
-
6820
- var listCacheClear = __webpack_require__(818),
6821
- listCacheDelete = __webpack_require__(819),
6822
- listCacheGet = __webpack_require__(820),
6823
- listCacheHas = __webpack_require__(821),
6824
- listCacheSet = __webpack_require__(822);
6825
-
6826
- /**
6827
- * Creates an list cache object.
6828
- *
6829
- * @private
6830
- * @constructor
6831
- * @param {Array} [entries] The key-value pairs to cache.
6832
- */
6833
- function ListCache(entries) {
6834
- var index = -1,
6835
- length = entries == null ? 0 : entries.length;
6836
-
6837
- this.clear();
6838
- while (++index < length) {
6839
- var entry = entries[index];
6840
- this.set(entry[0], entry[1]);
6841
- }
6842
- }
6843
-
6844
- // Add methods to `ListCache`.
6845
- ListCache.prototype.clear = listCacheClear;
6846
- ListCache.prototype['delete'] = listCacheDelete;
6847
- ListCache.prototype.get = listCacheGet;
6848
- ListCache.prototype.has = listCacheHas;
6849
- ListCache.prototype.set = listCacheSet;
6850
-
6851
- module.exports = ListCache;
6852
-
6853
-
6854
- /***/ }),
6855
- /* 121 */
6856
- /***/ (function(module, exports, __webpack_require__) {
6857
-
6858
- var eq = __webpack_require__(197);
6859
-
6860
- /**
6861
- * Gets the index at which the `key` is found in `array` of key-value pairs.
6862
- *
6863
- * @private
6864
- * @param {Array} array The array to inspect.
6865
- * @param {*} key The key to search for.
6866
- * @returns {number} Returns the index of the matched value, else `-1`.
6867
- */
6868
- function assocIndexOf(array, key) {
6869
- var length = array.length;
6870
- while (length--) {
6871
- if (eq(array[length][0], key)) {
6872
- return length;
6873
- }
6874
- }
6875
- return -1;
6876
- }
6877
-
6878
- module.exports = assocIndexOf;
6879
-
6880
-
6881
- /***/ }),
6882
- /* 122 */
6883
- /***/ (function(module, exports, __webpack_require__) {
6884
-
6885
- var getNative = __webpack_require__(59);
6886
-
6887
- /* Built-in method references that are verified to be native. */
6888
- var nativeCreate = getNative(Object, 'create');
6889
-
6890
- module.exports = nativeCreate;
6891
-
6892
-
6893
- /***/ }),
6894
- /* 123 */
6895
- /***/ (function(module, exports, __webpack_require__) {
6896
-
6897
- var isKeyable = __webpack_require__(840);
6898
-
6899
- /**
6900
- * Gets the data for `map`.
6901
- *
6902
- * @private
6903
- * @param {Object} map The map to query.
6904
- * @param {string} key The reference key.
6905
- * @returns {*} Returns the map data.
6906
- */
6907
- function getMapData(map, key) {
6908
- var data = map.__data__;
6909
- return isKeyable(key)
6910
- ? data[typeof key == 'string' ? 'string' : 'hash']
6911
- : data.map;
6912
- }
6913
-
6914
- module.exports = getMapData;
6915
-
6916
-
6917
- /***/ }),
6918
- /* 124 */
6919
- /***/ (function(module, exports, __webpack_require__) {
6920
-
6921
- var DataView = __webpack_require__(855),
6922
- Map = __webpack_require__(198),
6923
- Promise = __webpack_require__(856),
6924
- Set = __webpack_require__(857),
6925
- WeakMap = __webpack_require__(858),
6926
- baseGetTag = __webpack_require__(58),
6927
- toSource = __webpack_require__(405);
6928
-
6929
- /** `Object#toString` result references. */
6930
- var mapTag = '[object Map]',
6931
- objectTag = '[object Object]',
6932
- promiseTag = '[object Promise]',
6933
- setTag = '[object Set]',
6934
- weakMapTag = '[object WeakMap]';
6935
-
6936
- var dataViewTag = '[object DataView]';
6937
-
6938
- /** Used to detect maps, sets, and weakmaps. */
6939
- var dataViewCtorString = toSource(DataView),
6940
- mapCtorString = toSource(Map),
6941
- promiseCtorString = toSource(Promise),
6942
- setCtorString = toSource(Set),
6943
- weakMapCtorString = toSource(WeakMap);
6944
-
6945
- /**
6946
- * Gets the `toStringTag` of `value`.
6947
- *
6948
- * @private
6949
- * @param {*} value The value to query.
6950
- * @returns {string} Returns the `toStringTag`.
6951
- */
6952
- var getTag = baseGetTag;
6953
-
6954
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
6955
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
6956
- (Map && getTag(new Map) != mapTag) ||
6957
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
6958
- (Set && getTag(new Set) != setTag) ||
6959
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
6960
- getTag = function(value) {
6961
- var result = baseGetTag(value),
6962
- Ctor = result == objectTag ? value.constructor : undefined,
6963
- ctorString = Ctor ? toSource(Ctor) : '';
6964
-
6965
- if (ctorString) {
6966
- switch (ctorString) {
6967
- case dataViewCtorString: return dataViewTag;
6968
- case mapCtorString: return mapTag;
6969
- case promiseCtorString: return promiseTag;
6970
- case setCtorString: return setTag;
6971
- case weakMapCtorString: return weakMapTag;
6972
- }
6973
- }
6974
- return result;
6975
- };
6976
- }
6977
-
6978
- module.exports = getTag;
6979
-
6980
-
6981
- /***/ }),
6982
- /* 125 */
6983
- /***/ (function(module, exports, __webpack_require__) {
6984
-
6985
- var isSymbol = __webpack_require__(202);
6986
-
6987
- /** Used as references for various `Number` constants. */
6988
- var INFINITY = 1 / 0;
6989
-
6990
- /**
6991
- * Converts `value` to a string key if it's not a string or symbol.
6992
- *
6993
- * @private
6994
- * @param {*} value The value to inspect.
6995
- * @returns {string|symbol} Returns the key.
6996
- */
6997
- function toKey(value) {
6998
- if (typeof value == 'string' || isSymbol(value)) {
6999
- return value;
7000
- }
7001
- var result = (value + '');
7002
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
7003
- }
7004
-
7005
- module.exports = toKey;
7006
-
7007
-
7008
- /***/ }),
7009
- /* 126 */
7010
- /***/ (function(module, exports, __webpack_require__) {
7011
-
7012
- var assignValue = __webpack_require__(417),
7013
- baseAssignValue = __webpack_require__(418);
7014
-
7015
- /**
7016
- * Copies properties of `source` to `object`.
7017
- *
7018
- * @private
7019
- * @param {Object} source The object to copy properties from.
7020
- * @param {Array} props The property identifiers to copy.
7021
- * @param {Object} [object={}] The object to copy properties to.
7022
- * @param {Function} [customizer] The function to customize copied values.
7023
- * @returns {Object} Returns `object`.
7024
- */
7025
- function copyObject(source, props, object, customizer) {
7026
- var isNew = !object;
7027
- object || (object = {});
7028
-
7029
- var index = -1,
7030
- length = props.length;
7031
-
7032
- while (++index < length) {
7033
- var key = props[index];
7034
-
7035
- var newValue = customizer
7036
- ? customizer(object[key], source[key], key, object, source)
7037
- : undefined;
7038
-
7039
- if (newValue === undefined) {
7040
- newValue = source[key];
7041
- }
7042
- if (isNew) {
7043
- baseAssignValue(object, key, newValue);
7044
- } else {
7045
- assignValue(object, key, newValue);
7046
- }
7047
- }
7048
- return object;
7049
- }
7050
-
7051
- module.exports = copyObject;
7052
-
7053
-
7054
- /***/ }),
7055
- /* 127 */
7056
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7057
-
7058
- "use strict";
7059
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__listCacheClear_js__ = __webpack_require__(914);
7060
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__listCacheDelete_js__ = __webpack_require__(915);
7061
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__listCacheGet_js__ = __webpack_require__(916);
7062
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__listCacheHas_js__ = __webpack_require__(917);
7063
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__listCacheSet_js__ = __webpack_require__(918);
7064
-
7065
-
7066
-
7067
-
7068
-
7069
-
7070
- /**
7071
- * Creates an list cache object.
7072
- *
7073
- * @private
7074
- * @constructor
7075
- * @param {Array} [entries] The key-value pairs to cache.
7076
- */
7077
- function ListCache(entries) {
7078
- var index = -1,
7079
- length = entries == null ? 0 : entries.length;
7080
-
7081
- this.clear();
7082
- while (++index < length) {
7083
- var entry = entries[index];
7084
- this.set(entry[0], entry[1]);
7085
- }
7086
- }
7087
-
7088
- // Add methods to `ListCache`.
7089
- ListCache.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__listCacheClear_js__["a" /* default */];
7090
- ListCache.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__listCacheDelete_js__["a" /* default */];
7091
- ListCache.prototype.get = __WEBPACK_IMPORTED_MODULE_2__listCacheGet_js__["a" /* default */];
7092
- ListCache.prototype.has = __WEBPACK_IMPORTED_MODULE_3__listCacheHas_js__["a" /* default */];
7093
- ListCache.prototype.set = __WEBPACK_IMPORTED_MODULE_4__listCacheSet_js__["a" /* default */];
7094
-
7095
- /* harmony default export */ __webpack_exports__["a"] = (ListCache);
7096
-
7097
-
7098
- /***/ }),
7099
- /* 128 */
7100
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7101
-
7102
- "use strict";
7103
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__eq_js__ = __webpack_require__(89);
7104
-
7105
-
7106
- /**
7107
- * Gets the index at which the `key` is found in `array` of key-value pairs.
7108
- *
7109
- * @private
7110
- * @param {Array} array The array to inspect.
7111
- * @param {*} key The key to search for.
7112
- * @returns {number} Returns the index of the matched value, else `-1`.
7113
- */
7114
- function assocIndexOf(array, key) {
7115
- var length = array.length;
7116
- while (length--) {
7117
- if (Object(__WEBPACK_IMPORTED_MODULE_0__eq_js__["a" /* default */])(array[length][0], key)) {
7118
- return length;
7119
- }
7120
- }
7121
- return -1;
7122
- }
7123
-
7124
- /* harmony default export */ __webpack_exports__["a"] = (assocIndexOf);
7125
-
7126
-
7127
- /***/ }),
7128
- /* 129 */
7129
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7130
-
7131
- "use strict";
7132
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(33);
7133
-
7134
-
7135
- /** Built-in value references. */
7136
- var Symbol = __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Symbol;
7137
-
7138
- /* harmony default export */ __webpack_exports__["a"] = (Symbol);
7139
-
7140
-
7141
- /***/ }),
7142
- /* 130 */
7143
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7144
-
7145
- "use strict";
7146
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(60);
7147
-
7148
-
7149
- /* Built-in method references that are verified to be native. */
7150
- var nativeCreate = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(Object, 'create');
7151
-
7152
- /* harmony default export */ __webpack_exports__["a"] = (nativeCreate);
7153
-
7154
-
7155
- /***/ }),
7156
- /* 131 */
7157
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7158
-
7159
- "use strict";
7160
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isKeyable_js__ = __webpack_require__(938);
7161
-
7162
-
7163
- /**
7164
- * Gets the data for `map`.
7165
- *
7166
- * @private
7167
- * @param {Object} map The map to query.
7168
- * @param {string} key The reference key.
7169
- * @returns {*} Returns the map data.
7170
- */
7171
- function getMapData(map, key) {
7172
- var data = map.__data__;
7173
- return Object(__WEBPACK_IMPORTED_MODULE_0__isKeyable_js__["a" /* default */])(key)
7174
- ? data[typeof key == 'string' ? 'string' : 'hash']
7175
- : data.map;
7176
- }
7177
-
7178
- /* harmony default export */ __webpack_exports__["a"] = (getMapData);
7179
-
7180
-
7181
- /***/ }),
7182
- /* 132 */
7183
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7184
-
7185
- "use strict";
7186
- /**
7187
- * This method returns the first argument it receives.
7188
- *
7189
- * @static
7190
- * @since 0.1.0
7191
- * @memberOf _
7192
- * @category Util
7193
- * @param {*} value Any value.
7194
- * @returns {*} Returns `value`.
7195
- * @example
7196
- *
7197
- * var object = { 'a': 1 };
7198
- *
7199
- * console.log(_.identity(object) === object);
7200
- * // => true
7201
- */
7202
- function identity(value) {
7203
- return value;
7204
- }
7205
-
7206
- /* harmony default export */ __webpack_exports__["a"] = (identity);
7207
-
7208
-
7209
- /***/ }),
7210
- /* 133 */
7211
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7212
-
7213
- "use strict";
7214
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(72);
7215
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(61);
7216
-
7217
-
7218
-
7219
- /** `Object#toString` result references. */
7220
- var symbolTag = '[object Symbol]';
7221
-
7222
- /**
7223
- * Checks if `value` is classified as a `Symbol` primitive or object.
7224
- *
7225
- * @static
7226
- * @memberOf _
7227
- * @since 4.0.0
7228
- * @category Lang
7229
- * @param {*} value The value to check.
7230
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
7231
- * @example
7232
- *
7233
- * _.isSymbol(Symbol.iterator);
7234
- * // => true
7235
- *
7236
- * _.isSymbol('abc');
7237
- * // => false
7238
- */
7239
- function isSymbol(value) {
7240
- return typeof value == 'symbol' ||
7241
- (Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value) == symbolTag);
7242
- }
7243
-
7244
- /* harmony default export */ __webpack_exports__["a"] = (isSymbol);
7245
-
7246
-
7247
- /***/ }),
7248
- /* 134 */
7249
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7250
-
7251
- "use strict";
7252
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isSymbol_js__ = __webpack_require__(133);
7253
-
7254
-
7255
- /** Used as references for various `Number` constants. */
7256
- var INFINITY = 1 / 0;
7257
-
7258
- /**
7259
- * Converts `value` to a string key if it's not a string or symbol.
7260
- *
7261
- * @private
7262
- * @param {*} value The value to inspect.
7263
- * @returns {string|symbol} Returns the key.
7264
- */
7265
- function toKey(value) {
7266
- if (typeof value == 'string' || Object(__WEBPACK_IMPORTED_MODULE_0__isSymbol_js__["a" /* default */])(value)) {
7267
- return value;
7268
- }
7269
- var result = (value + '');
7270
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
7271
- }
7272
-
7273
- /* harmony default export */ __webpack_exports__["a"] = (toKey);
7274
-
7275
-
7276
- /***/ }),
7277
- /* 135 */
7278
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7279
-
7280
- "use strict";
7281
- /* harmony export (immutable) */ __webpack_exports__["a"] = startOfUTCISOWeek;
7282
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(9);
7283
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__requiredArgs_index_js__ = __webpack_require__(7);
7284
-
7285
- // This function will be a part of public API when UTC function will be implemented.
7286
- // See issue: https://github.com/date-fns/date-fns/issues/376
7287
-
7288
- function startOfUTCISOWeek(dirtyDate) {
7289
- Object(__WEBPACK_IMPORTED_MODULE_1__requiredArgs_index_js__["a" /* default */])(1, arguments);
7290
- var weekStartsOn = 1;
7291
- var date = Object(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["default"])(dirtyDate);
7292
- var day = date.getUTCDay();
7293
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
7294
- date.setUTCDate(date.getUTCDate() - diff);
7295
- date.setUTCHours(0, 0, 0, 0);
7296
- return date;
7297
- }
7298
-
7299
- /***/ }),
7300
- /* 136 */
7301
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7302
-
7303
- "use strict";
7304
- /* harmony export (immutable) */ __webpack_exports__["a"] = startOfUTCWeek;
7305
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__ = __webpack_require__(12);
7306
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(9);
7307
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__ = __webpack_require__(7);
7308
-
7309
-
7310
- // This function will be a part of public API when UTC function will be implemented.
7311
- // See issue: https://github.com/date-fns/date-fns/issues/376
7312
-
7313
- function startOfUTCWeek(dirtyDate, dirtyOptions) {
7314
- Object(__WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__["a" /* default */])(1, arguments);
7315
- var options = dirtyOptions || {};
7316
- var locale = options.locale;
7317
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
7318
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(__WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */])(localeWeekStartsOn);
7319
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(__WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
7320
-
7321
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
7322
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
7323
- }
7324
-
7325
- var date = Object(__WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["default"])(dirtyDate);
7326
- var day = date.getUTCDay();
7327
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
7328
- date.setUTCDate(date.getUTCDate() - diff);
7329
- date.setUTCHours(0, 0, 0, 0);
7330
- return date;
7331
- }
7332
-
7333
- /***/ }),
7334
- /* 137 */
7335
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7336
-
7337
- "use strict";
7338
- /* harmony export (immutable) */ __webpack_exports__["a"] = getTimezoneOffsetInMilliseconds;
7339
- var MILLISECONDS_IN_MINUTE = 60000;
7340
-
7341
- function getDateMillisecondsPart(date) {
7342
- return date.getTime() % MILLISECONDS_IN_MINUTE;
7343
- }
7344
- /**
7345
- * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
7346
- * They usually appear for dates that denote time before the timezones were introduced
7347
- * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
7348
- * and GMT+01:00:00 after that date)
7349
- *
7350
- * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
7351
- * which would lead to incorrect calculations.
7352
- *
7353
- * This function returns the timezone offset in milliseconds that takes seconds in account.
7354
- */
7355
-
7356
-
7357
- function getTimezoneOffsetInMilliseconds(dirtyDate) {
7358
- var date = new Date(dirtyDate.getTime());
7359
- var baseTimezoneOffset = Math.ceil(date.getTimezoneOffset());
7360
- date.setSeconds(0, 0);
7361
- var hasNegativeUTCOffset = baseTimezoneOffset > 0;
7362
- var millisecondsPartOfTimezoneOffset = hasNegativeUTCOffset ? (MILLISECONDS_IN_MINUTE + getDateMillisecondsPart(date)) % MILLISECONDS_IN_MINUTE : getDateMillisecondsPart(date);
7363
- return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset;
7364
- }
7365
-
7366
- /***/ }),
7367
- /* 138 */
7368
- /***/ (function(module, exports, __webpack_require__) {
7369
-
7370
- "use strict";
7371
- /* WEBPACK VAR INJECTION */(function(process) {/**
7372
- * Copyright (c) 2013-present, Facebook, Inc.
7373
- *
7374
- * This source code is licensed under the MIT license found in the
7375
- * LICENSE file in the root directory of this source tree.
7376
- */
7377
-
7378
-
7379
-
7380
- var printWarning = function() {};
7381
-
7382
- if (process.env.NODE_ENV !== 'production') {
7383
- var ReactPropTypesSecret = __webpack_require__(139);
7384
- var loggedTypeFailures = {};
7385
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
7386
-
7387
- printWarning = function(text) {
7388
- var message = 'Warning: ' + text;
7389
- if (typeof console !== 'undefined') {
7390
- console.error(message);
7391
- }
7392
- try {
7393
- // --- Welcome to debugging React ---
7394
- // This error was thrown as a convenience so that you can use this stack
7395
- // to find the callsite that caused this warning to fire.
7396
- throw new Error(message);
7397
- } catch (x) {}
7398
- };
7399
- }
7400
-
7401
- /**
7402
- * Assert that the values match with the type specs.
7403
- * Error messages are memorized and will only be shown once.
7404
- *
7405
- * @param {object} typeSpecs Map of name to a ReactPropType
7406
- * @param {object} values Runtime values that need to be type-checked
7407
- * @param {string} location e.g. "prop", "context", "child context"
7408
- * @param {string} componentName Name of the component for error messages.
7409
- * @param {?Function} getStack Returns the component stack.
7410
- * @private
7411
- */
7412
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
7413
- if (process.env.NODE_ENV !== 'production') {
7414
- for (var typeSpecName in typeSpecs) {
7415
- if (has(typeSpecs, typeSpecName)) {
7416
- var error;
7417
- // Prop type validation may throw. In case they do, we don't want to
7418
- // fail the render phase where it didn't fail before. So we log it.
7419
- // After these have been cleaned up, we'll let them throw.
7420
- try {
7421
- // This is intentionally an invariant that gets caught. It's the same
7422
- // behavior as without this statement except with a better message.
7423
- if (typeof typeSpecs[typeSpecName] !== 'function') {
7424
- var err = Error(
7425
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
7426
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
7427
- );
7428
- err.name = 'Invariant Violation';
7429
- throw err;
7430
- }
7431
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
7432
- } catch (ex) {
7433
- error = ex;
7434
- }
7435
- if (error && !(error instanceof Error)) {
7436
- printWarning(
7437
- (componentName || 'React class') + ': type specification of ' +
7438
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
7439
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
7440
- 'You may have forgotten to pass an argument to the type checker ' +
7441
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
7442
- 'shape all require an argument).'
7443
- );
7444
- }
7445
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
7446
- // Only monitor this failure once because there tends to be a lot of the
7447
- // same error.
7448
- loggedTypeFailures[error.message] = true;
7449
-
7450
- var stack = getStack ? getStack() : '';
7451
-
7452
- printWarning(
7453
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
7454
- );
7455
- }
7456
- }
7457
- }
7458
- }
7459
- }
7460
-
7461
- /**
7462
- * Resets warning cache when testing.
7463
- *
7464
- * @private
7465
- */
7466
- checkPropTypes.resetWarningCache = function() {
7467
- if (process.env.NODE_ENV !== 'production') {
7468
- loggedTypeFailures = {};
7469
- }
7470
- }
7471
-
7472
- module.exports = checkPropTypes;
7473
-
7474
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
7475
-
7476
- /***/ }),
7477
- /* 139 */
7478
- /***/ (function(module, exports, __webpack_require__) {
7479
-
7480
- "use strict";
7481
- /**
7482
- * Copyright (c) 2013-present, Facebook, Inc.
7483
- *
7484
- * This source code is licensed under the MIT license found in the
7485
- * LICENSE file in the root directory of this source tree.
7486
- */
7487
-
7488
-
7489
-
7490
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
7491
-
7492
- module.exports = ReactPropTypesSecret;
7493
-
7494
-
7495
- /***/ }),
7496
- /* 140 */
7497
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7498
-
7499
- "use strict";
7500
- /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
7501
- var prefix = 'Invariant failed';
7502
- function invariant(condition, message) {
7503
- if (condition) {
7504
- return;
7505
- }
7506
- if (isProduction) {
7507
- throw new Error(prefix);
7508
- }
7509
- throw new Error(prefix + ": " + (message || ''));
7510
- }
7511
-
7512
- /* harmony default export */ __webpack_exports__["a"] = (invariant);
7513
-
7514
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7515
-
7516
- /***/ }),
7517
- /* 141 */
7518
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7519
-
7520
- "use strict";
7521
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = chainPropTypes;
7522
- function chainPropTypes(propType1, propType2) {
7523
- if (process.env.NODE_ENV === 'production') {
7524
- return function () {
7525
- return null;
7526
- };
7527
- }
7528
-
7529
- return function validate() {
7530
- return propType1.apply(void 0, arguments) || propType2.apply(void 0, arguments);
7531
- };
7532
- }
7533
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7534
-
7535
- /***/ }),
7536
- /* 142 */
7537
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7538
-
7539
- "use strict";
7540
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getThemeProps__ = __webpack_require__(512);
7541
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__getThemeProps__["a"]; });
7542
-
7543
-
7544
- /***/ }),
7545
- /* 143 */
7546
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7547
-
7548
- "use strict";
7549
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__jssPreset__ = __webpack_require__(513);
7550
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__jssPreset__["a"]; });
7551
-
7552
-
7553
- /***/ }),
7554
- /* 144 */
7555
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7556
-
7557
- "use strict";
7558
- /* harmony export (immutable) */ __webpack_exports__["a"] = _unsupportedIterableToArray;
7559
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__ = __webpack_require__(233);
7560
-
7561
- function _unsupportedIterableToArray(o, minLen) {
7562
- if (!o) return;
7563
- if (typeof o === "string") return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__["a" /* default */])(o, minLen);
7564
- var n = Object.prototype.toString.call(o).slice(8, -1);
7565
- if (n === "Object" && o.constructor) n = o.constructor.name;
7566
- if (n === "Map" || n === "Set") return Array.from(o);
7567
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__["a" /* default */])(o, minLen);
7568
- }
7569
-
7570
- /***/ }),
7571
- /* 145 */
7572
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7573
-
7574
- "use strict";
7575
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeClasses__ = __webpack_require__(526);
7576
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__mergeClasses__["a"]; });
7577
-
7578
-
7579
- /***/ }),
7580
- /* 146 */
7581
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7582
-
7583
- "use strict";
7584
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(18);
7585
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
7586
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ui_utils__ = __webpack_require__(8);
7587
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createBreakpoints__ = __webpack_require__(244);
7588
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__createMixins__ = __webpack_require__(536);
7589
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createPalette__ = __webpack_require__(537);
7590
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__createTypography__ = __webpack_require__(538);
7591
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shadows__ = __webpack_require__(539);
7592
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shape__ = __webpack_require__(540);
7593
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__createSpacing__ = __webpack_require__(541);
7594
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__transitions__ = __webpack_require__(41);
7595
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__zIndex__ = __webpack_require__(265);
7596
-
7597
-
7598
-
7599
-
7600
-
7601
-
7602
-
7603
-
7604
-
7605
-
7606
-
7607
-
7608
-
7609
- function createMuiTheme() {
7610
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7611
-
7612
- var _options$breakpoints = options.breakpoints,
7613
- breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,
7614
- _options$mixins = options.mixins,
7615
- mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,
7616
- _options$palette = options.palette,
7617
- paletteInput = _options$palette === void 0 ? {} : _options$palette,
7618
- spacingInput = options.spacing,
7619
- _options$typography = options.typography,
7620
- typographyInput = _options$typography === void 0 ? {} : _options$typography,
7621
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
7622
-
7623
- var palette = Object(__WEBPACK_IMPORTED_MODULE_5__createPalette__["a" /* default */])(paletteInput);
7624
- var breakpoints = Object(__WEBPACK_IMPORTED_MODULE_3__createBreakpoints__["a" /* default */])(breakpointsInput);
7625
- var spacing = Object(__WEBPACK_IMPORTED_MODULE_9__createSpacing__["a" /* default */])(spacingInput);
7626
- var muiTheme = Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["c" /* deepmerge */])({
7627
- breakpoints: breakpoints,
7628
- direction: 'ltr',
7629
- mixins: Object(__WEBPACK_IMPORTED_MODULE_4__createMixins__["a" /* default */])(breakpoints, spacing, mixinsInput),
7630
- overrides: {},
7631
- // Inject custom styles
7632
- palette: palette,
7633
- props: {},
7634
- // Provide default props
7635
- shadows: __WEBPACK_IMPORTED_MODULE_7__shadows__["a" /* default */],
7636
- typography: Object(__WEBPACK_IMPORTED_MODULE_6__createTypography__["a" /* default */])(palette, typographyInput),
7637
- spacing: spacing,
7638
- shape: __WEBPACK_IMPORTED_MODULE_8__shape__["a" /* default */],
7639
- transitions: __WEBPACK_IMPORTED_MODULE_10__transitions__["a" /* default */],
7640
- zIndex: __WEBPACK_IMPORTED_MODULE_11__zIndex__["a" /* default */]
7641
- }, other);
7642
-
7643
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
7644
- args[_key - 1] = arguments[_key];
7645
- }
7646
-
7647
- muiTheme = args.reduce(function (acc, argument) {
7648
- return Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["c" /* deepmerge */])(acc, argument);
7649
- }, muiTheme);
7650
-
7651
- if (process.env.NODE_ENV !== 'production') {
7652
- var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'];
7653
-
7654
- var traverse = function traverse(node, parentKey) {
7655
- var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
7656
- var key; // eslint-disable-next-line guard-for-in, no-restricted-syntax
7657
-
7658
- for (key in node) {
7659
- var child = node[key];
7660
-
7661
- if (depth === 1) {
7662
- if (key.indexOf('Mui') === 0 && child) {
7663
- traverse(child, key, depth + 1);
7664
- }
7665
- } else if (pseudoClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {
7666
- if (process.env.NODE_ENV !== 'production') {
7667
- console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), 'You can not override it like this: ', JSON.stringify(node, null, 2), '', 'Instead, you need to use the $ruleName syntax:', JSON.stringify({
7668
- root: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, "&$".concat(key), child)
7669
- }, null, 2), '', 'https://material-ui.com/r/pseudo-classes-guide'].join('\n'));
7670
- } // Remove the style to prevent global conflicts.
7671
-
7672
-
7673
- node[key] = {};
7674
- }
7675
- }
7676
- };
7677
-
7678
- traverse(muiTheme.overrides);
7679
- }
7680
-
7681
- return muiTheme;
7682
- }
7683
-
7684
- /* harmony default export */ __webpack_exports__["a"] = (createMuiTheme);
7685
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7686
-
7687
- /***/ }),
7688
- /* 147 */
7689
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7690
-
7691
- "use strict";
7692
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = handleBreakpoints;
7693
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(30);
7694
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
7695
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__ = __webpack_require__(48);
7696
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
7697
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
7698
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__merge__ = __webpack_require__(96);
7699
-
7700
-
7701
-
7702
-
7703
- // The breakpoint **start** at this value.
7704
- // For instance with the first breakpoint xs: [xs, sm[.
7705
-
7706
- var values = {
7707
- xs: 0,
7708
- sm: 600,
7709
- md: 960,
7710
- lg: 1280,
7711
- xl: 1920
7712
- };
7713
- var defaultBreakpoints = {
7714
- // Sorted ASC by size. That's important.
7715
- // It can't be configured as it's used statically for propTypes.
7716
- keys: ['xs', 'sm', 'md', 'lg', 'xl'],
7717
- up: function up(key) {
7718
- return "@media (min-width:".concat(values[key], "px)");
7719
- }
7720
- };
7721
- function handleBreakpoints(props, propValue, styleFromPropValue) {
7722
- if (process.env.NODE_ENV !== 'production') {
7723
- if (!props.theme) {
7724
- console.error('Material-UI: You are calling a style function without a theme value.');
7725
- }
7726
- }
7727
-
7728
- if (Array.isArray(propValue)) {
7729
- var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7730
- return propValue.reduce(function (acc, item, index) {
7731
- acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
7732
- return acc;
7733
- }, {});
7734
- }
7735
-
7736
- if (Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__["a" /* default */])(propValue) === 'object') {
7737
- var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7738
-
7739
- return Object.keys(propValue).reduce(function (acc, breakpoint) {
7740
- acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);
7741
- return acc;
7742
- }, {});
7743
- }
7744
-
7745
- var output = styleFromPropValue(propValue);
7746
- return output;
7747
- }
7748
-
7749
- function breakpoints(styleFunction) {
7750
- var newStyleFunction = function newStyleFunction(props) {
7751
- var base = styleFunction(props);
7752
- var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7753
- var extended = themeBreakpoints.keys.reduce(function (acc, key) {
7754
- if (props[key]) {
7755
- acc = acc || {};
7756
- acc[themeBreakpoints.up(key)] = styleFunction(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
7757
- theme: props.theme
7758
- }, props[key]));
7759
- }
7760
-
7761
- return acc;
7762
- }, null);
7763
- return Object(__WEBPACK_IMPORTED_MODULE_4__merge__["a" /* default */])(base, extended);
7764
- };
7765
-
7766
- newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleFunction.propTypes, {
7767
- xs: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7768
- sm: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7769
- md: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7770
- lg: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7771
- xl: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
7772
- }) : {};
7773
- newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(styleFunction.filterProps));
7774
- return newStyleFunction;
7775
- }
7776
-
7777
- /* unused harmony default export */ var _unused_webpack_default_export = (breakpoints);
7778
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7779
-
7780
- /***/ }),
7781
- /* 148 */
7782
- /***/ (function(module, exports) {
7783
-
7784
- function _extends() {
7785
- module.exports = _extends = Object.assign || function (target) {
7786
- for (var i = 1; i < arguments.length; i++) {
7787
- var source = arguments[i];
7788
-
7789
- for (var key in source) {
7790
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7791
- target[key] = source[key];
7792
- }
7793
- }
7794
- }
7795
-
7796
- return target;
7797
- };
7798
-
7799
- return _extends.apply(this, arguments);
7800
- }
7801
-
7802
- module.exports = _extends;
7803
-
7804
- /***/ }),
7805
- /* 149 */
7806
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7807
-
7808
- "use strict";
7809
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ClassNames; });
7810
- /* unused harmony export Global */
7811
- /* unused harmony export createElement */
7812
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jsx; });
7813
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return keyframes; });
7814
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(37);
7815
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
7816
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
7817
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(150);
7818
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__ = __webpack_require__(271);
7819
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["a"]; });
7820
- /* unused harmony reexport ThemeContext */
7821
- /* unused harmony reexport withEmotionCache */
7822
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_utils__ = __webpack_require__(272);
7823
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_serialize__ = __webpack_require__(151);
7824
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__ = __webpack_require__(270);
7825
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__emotion_css__ = __webpack_require__(79);
7826
- /* unused harmony reexport css */
7827
-
7828
-
7829
-
7830
-
7831
-
7832
-
7833
-
7834
-
7835
-
7836
-
7837
-
7838
- var jsx = function jsx(type, props) {
7839
- var args = arguments;
7840
-
7841
- if (props == null || !__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["e" /* h */].call(props, 'css')) {
7842
- // $FlowFixMe
7843
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(undefined, args);
7844
- }
7845
-
7846
- var argsLength = args.length;
7847
- var createElementArgArray = new Array(argsLength);
7848
- createElementArgArray[0] = __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["b" /* E */];
7849
- createElementArgArray[1] = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["d" /* c */])(type, props);
7850
-
7851
- for (var i = 2; i < argsLength; i++) {
7852
- createElementArgArray[i] = args[i];
7853
- } // $FlowFixMe
7854
-
7855
-
7856
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(null, createElementArgArray);
7857
- };
7858
-
7859
- var warnedAboutCssPropForGlobal = false;
7860
- var Global = /* #__PURE__ */Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, cache) {
7861
- if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
7862
- // probably using the custom createElement which
7863
- // means it will be turned into a className prop
7864
- // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
7865
- props.className || props.css)) {
7866
- console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
7867
- warnedAboutCssPropForGlobal = true;
7868
- }
7869
-
7870
- var styles = props.styles;
7871
-
7872
- if (typeof styles === 'function') {
7873
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) {
7874
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles(theme)]);
7875
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
7876
- serialized: serialized,
7877
- cache: cache
7878
- });
7879
- });
7880
- }
7881
-
7882
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles]);
7883
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
7884
- serialized: serialized,
7885
- cache: cache
7886
- });
7887
- });
7888
-
7889
- // maintain place over rerenders.
7890
- // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
7891
- // initial client-side render from SSR, use place of hydrating tag
7892
- var InnerGlobal = /*#__PURE__*/function (_React$Component) {
7893
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(InnerGlobal, _React$Component);
7894
-
7895
- function InnerGlobal(props, context, updater) {
7896
- return _React$Component.call(this, props, context, updater) || this;
7897
- }
7898
-
7899
- var _proto = InnerGlobal.prototype;
7900
-
7901
- _proto.componentDidMount = function componentDidMount() {
7902
- this.sheet = new __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__["a" /* StyleSheet */]({
7903
- key: this.props.cache.key + "-global",
7904
- nonce: this.props.cache.sheet.nonce,
7905
- container: this.props.cache.sheet.container
7906
- }); // $FlowFixMe
7907
-
7908
- var node = document.querySelector("style[data-emotion-" + this.props.cache.key + "=\"" + this.props.serialized.name + "\"]");
7909
-
7910
- if (node !== null) {
7911
- this.sheet.tags.push(node);
7912
- }
7913
-
7914
- if (this.props.cache.sheet.tags.length) {
7915
- this.sheet.before = this.props.cache.sheet.tags[0];
7916
- }
7917
-
7918
- this.insertStyles();
7919
- };
7920
-
7921
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
7922
- if (prevProps.serialized.name !== this.props.serialized.name) {
7923
- this.insertStyles();
7924
- }
7925
- };
7926
-
7927
- _proto.insertStyles = function insertStyles$1() {
7928
- if (this.props.serialized.next !== undefined) {
7929
- // insert keyframes
7930
- Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(this.props.cache, this.props.serialized.next, true);
7931
- }
7932
-
7933
- if (this.sheet.tags.length) {
7934
- // if this doesn't exist then it will be null so the style element will be appended
7935
- var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling;
7936
- this.sheet.before = element;
7937
- this.sheet.flush();
7938
- }
7939
-
7940
- this.props.cache.insert("", this.props.serialized, this.sheet, false);
7941
- };
7942
-
7943
- _proto.componentWillUnmount = function componentWillUnmount() {
7944
- this.sheet.flush();
7945
- };
7946
-
7947
- _proto.render = function render() {
7948
-
7949
- return null;
7950
- };
7951
-
7952
- return InnerGlobal;
7953
- }(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]);
7954
-
7955
- var keyframes = function keyframes() {
7956
- var insertable = __WEBPACK_IMPORTED_MODULE_7__emotion_css__["a" /* default */].apply(void 0, arguments);
7957
- var name = "animation-" + insertable.name; // $FlowFixMe
7958
-
7959
- return {
7960
- name: name,
7961
- styles: "@keyframes " + name + "{" + insertable.styles + "}",
7962
- anim: 1,
7963
- toString: function toString() {
7964
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
7965
- }
7966
- };
7967
- };
7968
-
7969
- var classnames = function classnames(args) {
7970
- var len = args.length;
7971
- var i = 0;
7972
- var cls = '';
7973
-
7974
- for (; i < len; i++) {
7975
- var arg = args[i];
7976
- if (arg == null) continue;
7977
- var toAdd = void 0;
7978
-
7979
- switch (typeof arg) {
7980
- case 'boolean':
7981
- break;
7982
-
7983
- case 'object':
7984
- {
7985
- if (Array.isArray(arg)) {
7986
- toAdd = classnames(arg);
7987
- } else {
7988
- toAdd = '';
7989
-
7990
- for (var k in arg) {
7991
- if (arg[k] && k) {
7992
- toAdd && (toAdd += ' ');
7993
- toAdd += k;
7994
- }
7995
- }
7996
- }
7997
-
7998
- break;
7999
- }
8000
-
8001
- default:
8002
- {
8003
- toAdd = arg;
8004
- }
8005
- }
8006
-
8007
- if (toAdd) {
8008
- cls && (cls += ' ');
8009
- cls += toAdd;
8010
- }
8011
- }
8012
-
8013
- return cls;
8014
- };
8015
-
8016
- function merge(registered, css, className) {
8017
- var registeredStyles = [];
8018
- var rawClassName = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["a" /* getRegisteredStyles */])(registered, registeredStyles, className);
8019
-
8020
- if (registeredStyles.length < 2) {
8021
- return className;
8022
- }
8023
-
8024
- return rawClassName + css(registeredStyles);
8025
- }
8026
-
8027
- var ClassNames = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, context) {
8028
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) {
8029
- var hasRendered = false;
8030
-
8031
- var css = function css() {
8032
- if (hasRendered && process.env.NODE_ENV !== 'production') {
8033
- throw new Error('css can only be used during render');
8034
- }
8035
-
8036
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8037
- args[_key] = arguments[_key];
8038
- }
8039
-
8040
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])(args, context.registered);
8041
-
8042
- {
8043
- Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(context, serialized, false);
8044
- }
8045
-
8046
- return context.key + "-" + serialized.name;
8047
- };
8048
-
8049
- var cx = function cx() {
8050
- if (hasRendered && process.env.NODE_ENV !== 'production') {
8051
- throw new Error('cx can only be used during render');
8052
- }
8053
-
8054
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
8055
- args[_key2] = arguments[_key2];
8056
- }
8057
-
8058
- return merge(context.registered, css, classnames(args));
8059
- };
8060
-
8061
- var content = {
8062
- css: css,
8063
- cx: cx,
8064
- theme: theme
8065
- };
8066
- var ele = props.children(content);
8067
- hasRendered = true;
8068
-
8069
- return ele;
8070
- });
8071
- });
8072
-
8073
-
8074
-
8075
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8076
-
8077
- /***/ }),
8078
- /* 150 */
8079
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8080
-
8081
- "use strict";
8082
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__ = __webpack_require__(270);
8083
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__ = __webpack_require__(557);
8084
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_weak_memoize__ = __webpack_require__(558);
8085
-
8086
-
8087
-
8088
-
8089
- // https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet
8090
- // inlined to avoid umd wrapper and peerDep warnings/installing stylis
8091
- // since we use stylis after closure compiler
8092
- var delimiter = '/*|*/';
8093
- var needle = delimiter + '}';
8094
-
8095
- function toSheet(block) {
8096
- if (block) {
8097
- Sheet.current.insert(block + '}');
8098
- }
8099
- }
8100
-
8101
- var Sheet = {
8102
- current: null
8103
- };
8104
- var ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
8105
- switch (context) {
8106
- // property
8107
- case 1:
8108
- {
8109
- switch (content.charCodeAt(0)) {
8110
- case 64:
8111
- {
8112
- // @import
8113
- Sheet.current.insert(content + ';');
8114
- return '';
8115
- }
8116
- // charcode for l
8117
-
8118
- case 108:
8119
- {
8120
- // charcode for b
8121
- // this ignores label
8122
- if (content.charCodeAt(2) === 98) {
8123
- return '';
8124
- }
8125
- }
8126
- }
8127
-
8128
- break;
8129
- }
8130
- // selector
8131
-
8132
- case 2:
8133
- {
8134
- if (ns === 0) return content + delimiter;
8135
- break;
8136
- }
8137
- // at-rule
8138
-
8139
- case 3:
8140
- {
8141
- switch (ns) {
8142
- // @font-face, @page
8143
- case 102:
8144
- case 112:
8145
- {
8146
- Sheet.current.insert(selectors[0] + content);
8147
- return '';
8148
- }
8149
-
8150
- default:
8151
- {
8152
- return content + (at === 0 ? delimiter : '');
8153
- }
8154
- }
8155
- }
8156
-
8157
- case -2:
8158
- {
8159
- content.split(needle).forEach(toSheet);
8160
- }
8161
- }
8162
- };
8163
-
8164
- var createCache = function createCache(options) {
8165
- if (options === undefined) options = {};
8166
- var key = options.key || 'css';
8167
- var stylisOptions;
8168
-
8169
- if (options.prefix !== undefined) {
8170
- stylisOptions = {
8171
- prefix: options.prefix
8172
- };
8173
- }
8174
-
8175
- var stylis = new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__["a" /* default */](stylisOptions);
8176
-
8177
- if (process.env.NODE_ENV !== 'production') {
8178
- // $FlowFixMe
8179
- if (/[^a-z-]/.test(key)) {
8180
- throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
8181
- }
8182
- }
8183
-
8184
- var inserted = {}; // $FlowFixMe
8185
-
8186
- var container;
8187
-
8188
- {
8189
- container = options.container || document.head;
8190
- var nodes = document.querySelectorAll("style[data-emotion-" + key + "]");
8191
- Array.prototype.forEach.call(nodes, function (node) {
8192
- var attrib = node.getAttribute("data-emotion-" + key); // $FlowFixMe
8193
-
8194
- attrib.split(' ').forEach(function (id) {
8195
- inserted[id] = true;
8196
- });
8197
-
8198
- if (node.parentNode !== container) {
8199
- container.appendChild(node);
8200
- }
8201
- });
8202
- }
8203
-
8204
- var _insert;
8205
-
8206
- {
8207
- stylis.use(options.stylisPlugins)(ruleSheet);
8208
-
8209
- _insert = function insert(selector, serialized, sheet, shouldCache) {
8210
- var name = serialized.name;
8211
- Sheet.current = sheet;
8212
-
8213
- if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
8214
- var map = serialized.map;
8215
- Sheet.current = {
8216
- insert: function insert(rule) {
8217
- sheet.insert(rule + map);
8218
- }
8219
- };
8220
- }
8221
-
8222
- stylis(selector, serialized.styles);
8223
-
8224
- if (shouldCache) {
8225
- cache.inserted[name] = true;
8226
- }
8227
- };
8228
- }
8229
-
8230
- if (process.env.NODE_ENV !== 'production') {
8231
- // https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a
8232
- var commentStart = /\/\*/g;
8233
- var commentEnd = /\*\//g;
8234
- stylis.use(function (context, content) {
8235
- switch (context) {
8236
- case -1:
8237
- {
8238
- while (commentStart.test(content)) {
8239
- commentEnd.lastIndex = commentStart.lastIndex;
8240
-
8241
- if (commentEnd.test(content)) {
8242
- commentStart.lastIndex = commentEnd.lastIndex;
8243
- continue;
8244
- }
8245
-
8246
- throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');
8247
- }
8248
-
8249
- commentStart.lastIndex = 0;
8250
- break;
8251
- }
8252
- }
8253
- });
8254
- stylis.use(function (context, content, selectors) {
8255
- switch (context) {
8256
- case -1:
8257
- {
8258
- var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
8259
- var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g);
8260
-
8261
- if (unsafePseudoClasses && cache.compat !== true) {
8262
- unsafePseudoClasses.forEach(function (unsafePseudoClass) {
8263
- var ignoreRegExp = new RegExp(unsafePseudoClass + ".*\\/\\* " + flag + " \\*\\/");
8264
- var ignore = ignoreRegExp.test(content);
8265
-
8266
- if (unsafePseudoClass && !ignore) {
8267
- console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
8268
- }
8269
- });
8270
- }
8271
-
8272
- break;
8273
- }
8274
- }
8275
- });
8276
- }
8277
-
8278
- var cache = {
8279
- key: key,
8280
- sheet: new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__["a" /* StyleSheet */]({
8281
- key: key,
8282
- container: container,
8283
- nonce: options.nonce,
8284
- speedy: options.speedy
8285
- }),
8286
- nonce: options.nonce,
8287
- inserted: inserted,
8288
- registered: {},
8289
- insert: _insert
8290
- };
8291
- return cache;
8292
- };
8293
-
8294
- /* harmony default export */ __webpack_exports__["a"] = (createCache);
8295
-
8296
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8297
-
8298
- /***/ }),
8299
- /* 151 */
8300
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8301
-
8302
- "use strict";
8303
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return serializeStyles; });
8304
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__ = __webpack_require__(559);
8305
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(560);
8306
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__ = __webpack_require__(561);
8307
-
8308
-
8309
-
8310
-
8311
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
8312
- var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
8313
- var hyphenateRegex = /[A-Z]|^ms/g;
8314
- var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
8315
-
8316
- var isCustomProperty = function isCustomProperty(property) {
8317
- return property.charCodeAt(1) === 45;
8318
- };
8319
-
8320
- var isProcessableValue = function isProcessableValue(value) {
8321
- return value != null && typeof value !== 'boolean';
8322
- };
8323
-
8324
- var processStyleName = Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__["a" /* default */])(function (styleName) {
8325
- return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
8326
- });
8327
-
8328
- var processStyleValue = function processStyleValue(key, value) {
8329
- switch (key) {
8330
- case 'animation':
8331
- case 'animationName':
8332
- {
8333
- if (typeof value === 'string') {
8334
- return value.replace(animationRegex, function (match, p1, p2) {
8335
- cursor = {
8336
- name: p1,
8337
- styles: p2,
8338
- next: cursor
8339
- };
8340
- return p1;
8341
- });
8342
- }
8343
- }
8344
- }
8345
-
8346
- if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
8347
- return value + 'px';
8348
- }
8349
-
8350
- return value;
8351
- };
8352
-
8353
- if (process.env.NODE_ENV !== 'production') {
8354
- var contentValuePattern = /(attr|calc|counters?|url)\(/;
8355
- var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
8356
- var oldProcessStyleValue = processStyleValue;
8357
- var msPattern = /^-ms-/;
8358
- var hyphenPattern = /-(.)/g;
8359
- var hyphenatedCache = {};
8360
-
8361
- processStyleValue = function processStyleValue(key, value) {
8362
- if (key === 'content') {
8363
- if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
8364
- console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
8365
- }
8366
- }
8367
-
8368
- var processed = oldProcessStyleValue(key, value);
8369
-
8370
- if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
8371
- hyphenatedCache[key] = true;
8372
- console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
8373
- return _char.toUpperCase();
8374
- }) + "?");
8375
- }
8376
-
8377
- return processed;
8378
- };
8379
- }
8380
-
8381
- var shouldWarnAboutInterpolatingClassNameFromCss = true;
8382
-
8383
- function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) {
8384
- if (interpolation == null) {
8385
- return '';
8386
- }
8387
-
8388
- if (interpolation.__emotion_styles !== undefined) {
8389
- if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
8390
- throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
8391
- }
8392
-
8393
- return interpolation;
8394
- }
8395
-
8396
- switch (typeof interpolation) {
8397
- case 'boolean':
8398
- {
8399
- return '';
8400
- }
8401
-
8402
- case 'object':
8403
- {
8404
- if (interpolation.anim === 1) {
8405
- cursor = {
8406
- name: interpolation.name,
8407
- styles: interpolation.styles,
8408
- next: cursor
8409
- };
8410
- return interpolation.name;
8411
- }
8412
-
8413
- if (interpolation.styles !== undefined) {
8414
- var next = interpolation.next;
8415
-
8416
- if (next !== undefined) {
8417
- // not the most efficient thing ever but this is a pretty rare case
8418
- // and there will be very few iterations of this generally
8419
- while (next !== undefined) {
8420
- cursor = {
8421
- name: next.name,
8422
- styles: next.styles,
8423
- next: cursor
8424
- };
8425
- next = next.next;
8426
- }
8427
- }
8428
-
8429
- var styles = interpolation.styles + ";";
8430
-
8431
- if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
8432
- styles += interpolation.map;
8433
- }
8434
-
8435
- return styles;
8436
- }
8437
-
8438
- return createStringFromObject(mergedProps, registered, interpolation);
8439
- }
8440
-
8441
- case 'function':
8442
- {
8443
- if (mergedProps !== undefined) {
8444
- var previousCursor = cursor;
8445
- var result = interpolation(mergedProps);
8446
- cursor = previousCursor;
8447
- return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation);
8448
- } else if (process.env.NODE_ENV !== 'production') {
8449
- console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
8450
- }
8451
-
8452
- break;
8453
- }
8454
-
8455
- case 'string':
8456
- if (process.env.NODE_ENV !== 'production') {
8457
- var matched = [];
8458
- var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
8459
- var fakeVarName = "animation" + matched.length;
8460
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
8461
- return "${" + fakeVarName + "}";
8462
- });
8463
-
8464
- if (matched.length) {
8465
- console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
8466
- }
8467
- }
8468
-
8469
- break;
8470
- } // finalize string values (regular strings and functions interpolated into css calls)
8471
-
8472
-
8473
- if (registered == null) {
8474
- return interpolation;
8475
- }
8476
-
8477
- var cached = registered[interpolation];
8478
-
8479
- if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) {
8480
- console.error('Interpolating a className from css`` is not recommended and will cause problems with composition.\n' + 'Interpolating a className from css`` will be completely unsupported in a future major version of Emotion');
8481
- shouldWarnAboutInterpolatingClassNameFromCss = false;
8482
- }
8483
-
8484
- return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation;
8485
- }
8486
-
8487
- function createStringFromObject(mergedProps, registered, obj) {
8488
- var string = '';
8489
-
8490
- if (Array.isArray(obj)) {
8491
- for (var i = 0; i < obj.length; i++) {
8492
- string += handleInterpolation(mergedProps, registered, obj[i], false);
8493
- }
8494
- } else {
8495
- for (var _key in obj) {
8496
- var value = obj[_key];
8497
-
8498
- if (typeof value !== 'object') {
8499
- if (registered != null && registered[value] !== undefined) {
8500
- string += _key + "{" + registered[value] + "}";
8501
- } else if (isProcessableValue(value)) {
8502
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
8503
- }
8504
- } else {
8505
- if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
8506
- throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
8507
- }
8508
-
8509
- if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
8510
- for (var _i = 0; _i < value.length; _i++) {
8511
- if (isProcessableValue(value[_i])) {
8512
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
8513
- }
8514
- }
8515
- } else {
8516
- var interpolated = handleInterpolation(mergedProps, registered, value, false);
8517
-
8518
- switch (_key) {
8519
- case 'animation':
8520
- case 'animationName':
8521
- {
8522
- string += processStyleName(_key) + ":" + interpolated + ";";
8523
- break;
8524
- }
8525
-
8526
- default:
8527
- {
8528
- if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
8529
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
8530
- }
8531
-
8532
- string += _key + "{" + interpolated + "}";
8533
- }
8534
- }
8535
- }
8536
- }
8537
- }
8538
- }
8539
-
8540
- return string;
8541
- }
8542
-
8543
- var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
8544
- var sourceMapPattern;
8545
-
8546
- if (process.env.NODE_ENV !== 'production') {
8547
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//;
8548
- } // this is the cursor for keyframes
8549
- // keyframes are stored on the SerializedStyles object as a linked list
8550
-
8551
-
8552
- var cursor;
8553
- var serializeStyles = function serializeStyles(args, registered, mergedProps) {
8554
- if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
8555
- return args[0];
8556
- }
8557
-
8558
- var stringMode = true;
8559
- var styles = '';
8560
- cursor = undefined;
8561
- var strings = args[0];
8562
-
8563
- if (strings == null || strings.raw === undefined) {
8564
- stringMode = false;
8565
- styles += handleInterpolation(mergedProps, registered, strings, false);
8566
- } else {
8567
- if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
8568
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
8569
- }
8570
-
8571
- styles += strings[0];
8572
- } // we start at 1 since we've already handled the first arg
8573
-
8574
-
8575
- for (var i = 1; i < args.length; i++) {
8576
- styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46);
8577
-
8578
- if (stringMode) {
8579
- if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
8580
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
8581
- }
8582
-
8583
- styles += strings[i];
8584
- }
8585
- }
8586
-
8587
- var sourceMap;
8588
-
8589
- if (process.env.NODE_ENV !== 'production') {
8590
- styles = styles.replace(sourceMapPattern, function (match) {
8591
- sourceMap = match;
8592
- return '';
8593
- });
8594
- } // using a global regex with .exec is stateful so lastIndex has to be reset each time
8595
-
8596
-
8597
- labelPattern.lastIndex = 0;
8598
- var identifierName = '';
8599
- var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
8600
-
8601
- while ((match = labelPattern.exec(styles)) !== null) {
8602
- identifierName += '-' + // $FlowFixMe we know it's not null
8603
- match[1];
8604
- }
8605
-
8606
- var name = Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__["a" /* default */])(styles) + identifierName;
8607
-
8608
- if (process.env.NODE_ENV !== 'production') {
8609
- // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
8610
- return {
8611
- name: name,
8612
- styles: styles,
8613
- map: sourceMap,
8614
- next: cursor,
8615
- toString: function toString() {
8616
- 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).";
8617
- }
8618
- };
8619
- }
8620
-
8621
- return {
8622
- name: name,
8623
- styles: styles,
8624
- next: cursor
8625
- };
8626
- };
8627
-
8628
-
8629
-
8630
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8631
-
8632
- /***/ }),
8633
- /* 152 */
8634
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8635
-
8636
- "use strict";
8637
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export UNMOUNTED */
8638
- /* unused harmony export EXITED */
8639
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ENTERING; });
8640
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ENTERED; });
8641
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EXITING; });
8642
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(47);
8643
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(37);
8644
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2);
8645
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
8646
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
8647
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
8648
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom__ = __webpack_require__(14);
8649
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_dom__);
8650
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(281);
8651
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__ = __webpack_require__(282);
8652
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__ = __webpack_require__(153);
8653
-
8654
-
8655
-
8656
-
8657
-
8658
-
8659
-
8660
-
8661
- var UNMOUNTED = 'unmounted';
8662
- var EXITED = 'exited';
8663
- var ENTERING = 'entering';
8664
- var ENTERED = 'entered';
8665
- var EXITING = 'exiting';
8666
- /**
8667
- * The Transition component lets you describe a transition from one component
8668
- * state to another _over time_ with a simple declarative API. Most commonly
8669
- * it's used to animate the mounting and unmounting of a component, but can also
8670
- * be used to describe in-place transition states as well.
8671
- *
8672
- * ---
8673
- *
8674
- * **Note**: `Transition` is a platform-agnostic base component. If you're using
8675
- * transitions in CSS, you'll probably want to use
8676
- * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
8677
- * instead. It inherits all the features of `Transition`, but contains
8678
- * additional features necessary to play nice with CSS transitions (hence the
8679
- * name of the component).
8680
- *
8681
- * ---
8682
- *
8683
- * By default the `Transition` component does not alter the behavior of the
8684
- * component it renders, it only tracks "enter" and "exit" states for the
8685
- * components. It's up to you to give meaning and effect to those states. For
8686
- * example we can add styles to a component when it enters or exits:
8687
- *
8688
- * ```jsx
8689
- * import { Transition } from 'react-transition-group';
8690
- *
8691
- * const duration = 300;
8692
- *
8693
- * const defaultStyle = {
8694
- * transition: `opacity ${duration}ms ease-in-out`,
8695
- * opacity: 0,
8696
- * }
8697
- *
8698
- * const transitionStyles = {
8699
- * entering: { opacity: 1 },
8700
- * entered: { opacity: 1 },
8701
- * exiting: { opacity: 0 },
8702
- * exited: { opacity: 0 },
8703
- * };
8704
- *
8705
- * const Fade = ({ in: inProp }) => (
8706
- * <Transition in={inProp} timeout={duration}>
8707
- * {state => (
8708
- * <div style={{
8709
- * ...defaultStyle,
8710
- * ...transitionStyles[state]
8711
- * }}>
8712
- * I'm a fade Transition!
8713
- * </div>
8714
- * )}
8715
- * </Transition>
8716
- * );
8717
- * ```
8718
- *
8719
- * There are 4 main states a Transition can be in:
8720
- * - `'entering'`
8721
- * - `'entered'`
8722
- * - `'exiting'`
8723
- * - `'exited'`
8724
- *
8725
- * Transition state is toggled via the `in` prop. When `true` the component
8726
- * begins the "Enter" stage. During this stage, the component will shift from
8727
- * its current transition state, to `'entering'` for the duration of the
8728
- * transition and then to the `'entered'` stage once it's complete. Let's take
8729
- * the following example (we'll use the
8730
- * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
8731
- *
8732
- * ```jsx
8733
- * function App() {
8734
- * const [inProp, setInProp] = useState(false);
8735
- * return (
8736
- * <div>
8737
- * <Transition in={inProp} timeout={500}>
8738
- * {state => (
8739
- * // ...
8740
- * )}
8741
- * </Transition>
8742
- * <button onClick={() => setInProp(true)}>
8743
- * Click to Enter
8744
- * </button>
8745
- * </div>
8746
- * );
8747
- * }
8748
- * ```
8749
- *
8750
- * When the button is clicked the component will shift to the `'entering'` state
8751
- * and stay there for 500ms (the value of `timeout`) before it finally switches
8752
- * to `'entered'`.
8753
- *
8754
- * When `in` is `false` the same thing happens except the state moves from
8755
- * `'exiting'` to `'exited'`.
8756
- */
8757
-
8758
- var Transition = /*#__PURE__*/function (_React$Component) {
8759
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Transition, _React$Component);
8760
-
8761
- function Transition(props, context) {
8762
- var _this;
8763
-
8764
- _this = _React$Component.call(this, props, context) || this;
8765
- var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
8766
-
8767
- var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
8768
- var initialStatus;
8769
- _this.appearStatus = null;
8770
-
8771
- if (props.in) {
8772
- if (appear) {
8773
- initialStatus = EXITED;
8774
- _this.appearStatus = ENTERING;
8775
- } else {
8776
- initialStatus = ENTERED;
8777
- }
8778
- } else {
8779
- if (props.unmountOnExit || props.mountOnEnter) {
8780
- initialStatus = UNMOUNTED;
8781
- } else {
8782
- initialStatus = EXITED;
8783
- }
8784
- }
8785
-
8786
- _this.state = {
8787
- status: initialStatus
8788
- };
8789
- _this.nextCallback = null;
8790
- return _this;
8791
- }
8792
-
8793
- Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
8794
- var nextIn = _ref.in;
8795
-
8796
- if (nextIn && prevState.status === UNMOUNTED) {
8797
- return {
8798
- status: EXITED
8799
- };
8800
- }
8801
-
8802
- return null;
8803
- } // getSnapshotBeforeUpdate(prevProps) {
8804
- // let nextStatus = null
8805
- // if (prevProps !== this.props) {
8806
- // const { status } = this.state
8807
- // if (this.props.in) {
8808
- // if (status !== ENTERING && status !== ENTERED) {
8809
- // nextStatus = ENTERING
8810
- // }
8811
- // } else {
8812
- // if (status === ENTERING || status === ENTERED) {
8813
- // nextStatus = EXITING
8814
- // }
8815
- // }
8816
- // }
8817
- // return { nextStatus }
8818
- // }
8819
- ;
8820
-
8821
- var _proto = Transition.prototype;
8822
-
8823
- _proto.componentDidMount = function componentDidMount() {
8824
- this.updateStatus(true, this.appearStatus);
8825
- };
8826
-
8827
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
8828
- var nextStatus = null;
8829
-
8830
- if (prevProps !== this.props) {
8831
- var status = this.state.status;
8832
-
8833
- if (this.props.in) {
8834
- if (status !== ENTERING && status !== ENTERED) {
8835
- nextStatus = ENTERING;
8836
- }
8837
- } else {
8838
- if (status === ENTERING || status === ENTERED) {
8839
- nextStatus = EXITING;
8840
- }
8841
- }
8842
- }
8843
-
8844
- this.updateStatus(false, nextStatus);
8845
- };
8846
-
8847
- _proto.componentWillUnmount = function componentWillUnmount() {
8848
- this.cancelNextCallback();
8849
- };
8850
-
8851
- _proto.getTimeouts = function getTimeouts() {
8852
- var timeout = this.props.timeout;
8853
- var exit, enter, appear;
8854
- exit = enter = appear = timeout;
8855
-
8856
- if (timeout != null && typeof timeout !== 'number') {
8857
- exit = timeout.exit;
8858
- enter = timeout.enter; // TODO: remove fallback for next major
8859
-
8860
- appear = timeout.appear !== undefined ? timeout.appear : enter;
8861
- }
8862
-
8863
- return {
8864
- exit: exit,
8865
- enter: enter,
8866
- appear: appear
8867
- };
8868
- };
8869
-
8870
- _proto.updateStatus = function updateStatus(mounting, nextStatus) {
8871
- if (mounting === void 0) {
8872
- mounting = false;
8873
- }
8874
-
8875
- if (nextStatus !== null) {
8876
- // nextStatus will always be ENTERING or EXITING.
8877
- this.cancelNextCallback();
8878
-
8879
- if (nextStatus === ENTERING) {
8880
- this.performEnter(mounting);
8881
- } else {
8882
- this.performExit();
8883
- }
8884
- } else if (this.props.unmountOnExit && this.state.status === EXITED) {
8885
- this.setState({
8886
- status: UNMOUNTED
8887
- });
8888
- }
8889
- };
8890
-
8891
- _proto.performEnter = function performEnter(mounting) {
8892
- var _this2 = this;
8893
-
8894
- var enter = this.props.enter;
8895
- var appearing = this.context ? this.context.isMounting : mounting;
8896
-
8897
- var _ref2 = this.props.nodeRef ? [appearing] : [__WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this), appearing],
8898
- maybeNode = _ref2[0],
8899
- maybeAppearing = _ref2[1];
8900
-
8901
- var timeouts = this.getTimeouts();
8902
- var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
8903
- // if we are mounting and running this it means appear _must_ be set
8904
-
8905
- if (!mounting && !enter || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
8906
- this.safeSetState({
8907
- status: ENTERED
8908
- }, function () {
8909
- _this2.props.onEntered(maybeNode);
8910
- });
8911
- return;
8912
- }
8913
-
8914
- this.props.onEnter(maybeNode, maybeAppearing);
8915
- this.safeSetState({
8916
- status: ENTERING
8917
- }, function () {
8918
- _this2.props.onEntering(maybeNode, maybeAppearing);
8919
-
8920
- _this2.onTransitionEnd(enterTimeout, function () {
8921
- _this2.safeSetState({
8922
- status: ENTERED
8923
- }, function () {
8924
- _this2.props.onEntered(maybeNode, maybeAppearing);
8925
- });
8926
- });
8927
- });
8928
- };
8929
-
8930
- _proto.performExit = function performExit() {
8931
- var _this3 = this;
8932
-
8933
- var exit = this.props.exit;
8934
- var timeouts = this.getTimeouts();
8935
- var maybeNode = this.props.nodeRef ? undefined : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this); // no exit animation skip right to EXITED
8936
-
8937
- if (!exit || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
8938
- this.safeSetState({
8939
- status: EXITED
8940
- }, function () {
8941
- _this3.props.onExited(maybeNode);
8942
- });
8943
- return;
8944
- }
8945
-
8946
- this.props.onExit(maybeNode);
8947
- this.safeSetState({
8948
- status: EXITING
8949
- }, function () {
8950
- _this3.props.onExiting(maybeNode);
8951
-
8952
- _this3.onTransitionEnd(timeouts.exit, function () {
8953
- _this3.safeSetState({
8954
- status: EXITED
8955
- }, function () {
8956
- _this3.props.onExited(maybeNode);
8957
- });
8958
- });
8959
- });
8960
- };
8961
-
8962
- _proto.cancelNextCallback = function cancelNextCallback() {
8963
- if (this.nextCallback !== null) {
8964
- this.nextCallback.cancel();
8965
- this.nextCallback = null;
8966
- }
8967
- };
8968
-
8969
- _proto.safeSetState = function safeSetState(nextState, callback) {
8970
- // This shouldn't be necessary, but there are weird race conditions with
8971
- // setState callbacks and unmounting in testing, so always make sure that
8972
- // we can cancel any pending setState callbacks after we unmount.
8973
- callback = this.setNextCallback(callback);
8974
- this.setState(nextState, callback);
8975
- };
8976
-
8977
- _proto.setNextCallback = function setNextCallback(callback) {
8978
- var _this4 = this;
8979
-
8980
- var active = true;
8981
-
8982
- this.nextCallback = function (event) {
8983
- if (active) {
8984
- active = false;
8985
- _this4.nextCallback = null;
8986
- callback(event);
8987
- }
8988
- };
8989
-
8990
- this.nextCallback.cancel = function () {
8991
- active = false;
8992
- };
8993
-
8994
- return this.nextCallback;
8995
- };
8996
-
8997
- _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
8998
- this.setNextCallback(handler);
8999
- var node = this.props.nodeRef ? this.props.nodeRef.current : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this);
9000
- var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
9001
-
9002
- if (!node || doesNotHaveTimeoutOrListener) {
9003
- setTimeout(this.nextCallback, 0);
9004
- return;
9005
- }
9006
-
9007
- if (this.props.addEndListener) {
9008
- var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],
9009
- maybeNode = _ref3[0],
9010
- maybeNextCallback = _ref3[1];
9011
-
9012
- this.props.addEndListener(maybeNode, maybeNextCallback);
9013
- }
9014
-
9015
- if (timeout != null) {
9016
- setTimeout(this.nextCallback, timeout);
9017
- }
9018
- };
9019
-
9020
- _proto.render = function render() {
9021
- var status = this.state.status;
9022
-
9023
- if (status === UNMOUNTED) {
9024
- return null;
9025
- }
9026
-
9027
- var _this$props = this.props,
9028
- children = _this$props.children,
9029
- _in = _this$props.in,
9030
- _mountOnEnter = _this$props.mountOnEnter,
9031
- _unmountOnExit = _this$props.unmountOnExit,
9032
- _appear = _this$props.appear,
9033
- _enter = _this$props.enter,
9034
- _exit = _this$props.exit,
9035
- _timeout = _this$props.timeout,
9036
- _addEndListener = _this$props.addEndListener,
9037
- _onEnter = _this$props.onEnter,
9038
- _onEntering = _this$props.onEntering,
9039
- _onEntered = _this$props.onEntered,
9040
- _onExit = _this$props.onExit,
9041
- _onExiting = _this$props.onExiting,
9042
- _onExited = _this$props.onExited,
9043
- _nodeRef = _this$props.nodeRef,
9044
- childProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
9045
-
9046
- return (
9047
- /*#__PURE__*/
9048
- // allows for nested Transitions
9049
- __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */].Provider, {
9050
- value: null
9051
- }, typeof children === 'function' ? children(status, childProps) : __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Children.only(children), childProps))
9052
- );
9053
- };
9054
-
9055
- return Transition;
9056
- }(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Component);
9057
-
9058
- Transition.contextType = __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */];
9059
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
9060
- /**
9061
- * A React reference to DOM element that need to transition:
9062
- * https://stackoverflow.com/a/51127130/4671932
9063
- *
9064
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
9065
- * (e.g. `onEnter`) because user already has direct access to the node.
9066
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
9067
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
9068
- * (see
9069
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
9070
- */
9071
- nodeRef: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({
9072
- current: typeof Element === 'undefined' ? __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any : __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.instanceOf(Element)
9073
- }),
9074
-
9075
- /**
9076
- * A `function` child can be used instead of a React element. This function is
9077
- * called with the current transition status (`'entering'`, `'entered'`,
9078
- * `'exiting'`, `'exited'`), which can be used to apply context
9079
- * specific props to a component.
9080
- *
9081
- * ```jsx
9082
- * <Transition in={this.state.in} timeout={150}>
9083
- * {state => (
9084
- * <MyComponent className={`fade fade-${state}`} />
9085
- * )}
9086
- * </Transition>
9087
- * ```
9088
- */
9089
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element.isRequired]).isRequired,
9090
-
9091
- /**
9092
- * Show the component; triggers the enter or exit states
9093
- */
9094
- in: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9095
-
9096
- /**
9097
- * By default the child component is mounted immediately along with
9098
- * the parent `Transition` component. If you want to "lazy mount" the component on the
9099
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
9100
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
9101
- */
9102
- mountOnEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9103
-
9104
- /**
9105
- * By default the child component stays mounted after it reaches the `'exited'` state.
9106
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
9107
- */
9108
- unmountOnExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9109
-
9110
- /**
9111
- * By default the child component does not perform the enter transition when
9112
- * it first mounts, regardless of the value of `in`. If you want this
9113
- * behavior, set both `appear` and `in` to `true`.
9114
- *
9115
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
9116
- * > only adds an additional enter transition. However, in the
9117
- * > `<CSSTransition>` component that first enter transition does result in
9118
- * > additional `.appear-*` classes, that way you can choose to style it
9119
- * > differently.
9120
- */
9121
- appear: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9122
-
9123
- /**
9124
- * Enable or disable enter transitions.
9125
- */
9126
- enter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9127
-
9128
- /**
9129
- * Enable or disable exit transitions.
9130
- */
9131
- exit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
9132
-
9133
- /**
9134
- * The duration of the transition, in milliseconds.
9135
- * Required unless `addEndListener` is provided.
9136
- *
9137
- * You may specify a single timeout for all transitions:
9138
- *
9139
- * ```jsx
9140
- * timeout={500}
9141
- * ```
9142
- *
9143
- * or individually:
9144
- *
9145
- * ```jsx
9146
- * timeout={{
9147
- * appear: 500,
9148
- * enter: 300,
9149
- * exit: 500,
9150
- * }}
9151
- * ```
9152
- *
9153
- * - `appear` defaults to the value of `enter`
9154
- * - `enter` defaults to `0`
9155
- * - `exit` defaults to `0`
9156
- *
9157
- * @type {number | { enter?: number, exit?: number, appear?: number }}
9158
- */
9159
- timeout: function timeout(props) {
9160
- var pt = __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__["b" /* timeoutsShape */];
9161
- if (!props.addEndListener) pt = pt.isRequired;
9162
-
9163
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
9164
- args[_key - 1] = arguments[_key];
9165
- }
9166
-
9167
- return pt.apply(void 0, [props].concat(args));
9168
- },
9169
-
9170
- /**
9171
- * Add a custom transition end trigger. Called with the transitioning
9172
- * DOM node and a `done` callback. Allows for more fine grained transition end
9173
- * logic. Timeouts are still used as a fallback if provided.
9174
- *
9175
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9176
- *
9177
- * ```jsx
9178
- * addEndListener={(node, done) => {
9179
- * // use the css transitionend event to mark the finish of a transition
9180
- * node.addEventListener('transitionend', done, false);
9181
- * }}
9182
- * ```
9183
- */
9184
- addEndListener: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9185
-
9186
- /**
9187
- * Callback fired before the "entering" status is applied. An extra parameter
9188
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
9189
- *
9190
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9191
- *
9192
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
9193
- */
9194
- onEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9195
-
9196
- /**
9197
- * Callback fired after the "entering" status is applied. An extra parameter
9198
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
9199
- *
9200
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9201
- *
9202
- * @type Function(node: HtmlElement, isAppearing: bool)
9203
- */
9204
- onEntering: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9205
-
9206
- /**
9207
- * Callback fired after the "entered" status is applied. An extra parameter
9208
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
9209
- *
9210
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9211
- *
9212
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
9213
- */
9214
- onEntered: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9215
-
9216
- /**
9217
- * Callback fired before the "exiting" status is applied.
9218
- *
9219
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9220
- *
9221
- * @type Function(node: HtmlElement) -> void
9222
- */
9223
- onExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9224
-
9225
- /**
9226
- * Callback fired after the "exiting" status is applied.
9227
- *
9228
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
9229
- *
9230
- * @type Function(node: HtmlElement) -> void
9231
- */
9232
- onExiting: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
9233
-
9234
- /**
9235
- * Callback fired after the "exited" status is applied.
9236
- *
9237
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
9238
- *
9239
- * @type Function(node: HtmlElement) -> void
9240
- */
9241
- onExited: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func
9242
- } : {}; // Name the function so it is clearer in the documentation
9243
-
9244
- function noop() {}
9245
-
9246
- Transition.defaultProps = {
9247
- in: false,
9248
- mountOnEnter: false,
9249
- unmountOnExit: false,
9250
- appear: false,
9251
- enter: true,
9252
- exit: true,
9253
- onEnter: noop,
9254
- onEntering: noop,
9255
- onEntered: noop,
9256
- onExit: noop,
9257
- onExiting: noop,
9258
- onExited: noop
9259
- };
9260
- Transition.UNMOUNTED = UNMOUNTED;
9261
- Transition.EXITED = EXITED;
9262
- Transition.ENTERING = ENTERING;
9263
- Transition.ENTERED = ENTERED;
9264
- Transition.EXITING = EXITING;
9265
- /* harmony default export */ __webpack_exports__["d"] = (Transition);
9266
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9267
-
9268
- /***/ }),
9269
- /* 153 */
9270
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9271
-
9272
- "use strict";
9273
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
9274
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
9275
-
9276
- /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null));
9277
-
9278
- /***/ }),
9279
- /* 154 */
9280
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9281
-
9282
- "use strict";
9283
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Avatar__ = __webpack_require__(631);
9284
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Avatar__["a"]; });
9285
-
9286
-
9287
- /***/ }),
9288
- /* 155 */
9289
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9290
-
9291
- "use strict";
9292
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Button__ = __webpack_require__(643);
9293
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Button__["a"]; });
9294
-
9295
-
9296
- /***/ }),
9297
- /* 156 */
9298
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9299
-
9300
- "use strict";
9301
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
9302
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
9303
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(23);
9304
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
9305
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
9306
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
9307
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
9308
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
9309
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_clsx__ = __webpack_require__(5);
9310
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__ = __webpack_require__(8);
9311
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_useControlled__ = __webpack_require__(50);
9312
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__ = __webpack_require__(57);
9313
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__styles_withStyles__ = __webpack_require__(6);
9314
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__IconButton__ = __webpack_require__(51);
9315
-
9316
-
9317
-
9318
-
9319
-
9320
-
9321
-
9322
-
9323
-
9324
-
9325
-
9326
- var styles = {
9327
- root: {
9328
- padding: 9
9329
- },
9330
- checked: {},
9331
- disabled: {},
9332
- input: {
9333
- cursor: 'inherit',
9334
- position: 'absolute',
9335
- opacity: 0,
9336
- width: '100%',
9337
- height: '100%',
9338
- top: 0,
9339
- left: 0,
9340
- margin: 0,
9341
- padding: 0,
9342
- zIndex: 1
9343
- }
9344
- };
9345
- /**
9346
- * @ignore - internal component.
9347
- */
9348
-
9349
- var SwitchBase = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["forwardRef"](function SwitchBase(props, ref) {
9350
- var autoFocus = props.autoFocus,
9351
- checkedProp = props.checked,
9352
- checkedIcon = props.checkedIcon,
9353
- classes = props.classes,
9354
- className = props.className,
9355
- defaultChecked = props.defaultChecked,
9356
- disabledProp = props.disabled,
9357
- icon = props.icon,
9358
- id = props.id,
9359
- inputProps = props.inputProps,
9360
- inputRef = props.inputRef,
9361
- name = props.name,
9362
- onBlur = props.onBlur,
9363
- onChange = props.onChange,
9364
- onFocus = props.onFocus,
9365
- readOnly = props.readOnly,
9366
- required = props.required,
9367
- tabIndex = props.tabIndex,
9368
- type = props.type,
9369
- value = props.value,
9370
- other = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["autoFocus", "checked", "checkedIcon", "classes", "className", "defaultChecked", "disabled", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"]);
9371
-
9372
- var _useControlled = Object(__WEBPACK_IMPORTED_MODULE_7__utils_useControlled__["a" /* default */])({
9373
- controlled: checkedProp,
9374
- default: Boolean(defaultChecked),
9375
- name: 'SwitchBase',
9376
- state: 'checked'
9377
- }),
9378
- _useControlled2 = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_useControlled, 2),
9379
- checked = _useControlled2[0],
9380
- setCheckedState = _useControlled2[1];
9381
-
9382
- var muiFormControl = Object(__WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__["a" /* default */])();
9383
-
9384
- var handleFocus = function handleFocus(event) {
9385
- if (onFocus) {
9386
- onFocus(event);
9387
- }
9388
-
9389
- if (muiFormControl && muiFormControl.onFocus) {
9390
- muiFormControl.onFocus(event);
9391
- }
9392
- };
9393
-
9394
- var handleBlur = function handleBlur(event) {
9395
- if (onBlur) {
9396
- onBlur(event);
9397
- }
9398
-
9399
- if (muiFormControl && muiFormControl.onBlur) {
9400
- muiFormControl.onBlur(event);
9401
- }
9402
- };
9403
-
9404
- var handleInputChange = function handleInputChange(event) {
9405
- var newChecked = event.target.checked;
9406
- setCheckedState(newChecked);
9407
-
9408
- if (onChange) {
9409
- // TODO v5: remove the second argument.
9410
- onChange(event, newChecked);
9411
- }
9412
- };
9413
-
9414
- var disabled = disabledProp;
9415
-
9416
- if (muiFormControl) {
9417
- if (typeof disabled === 'undefined') {
9418
- disabled = muiFormControl.disabled;
9419
- }
9420
- }
9421
-
9422
- var hasLabelFor = type === 'checkbox' || type === 'radio';
9423
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"](__WEBPACK_IMPORTED_MODULE_10__IconButton__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9424
- component: "span",
9425
- className: Object(__WEBPACK_IMPORTED_MODULE_5_clsx__["a" /* default */])(classes.root, className, checked && classes.checked, disabled && classes.disabled),
9426
- disabled: disabled,
9427
- tabIndex: null,
9428
- role: undefined,
9429
- onFocus: handleFocus,
9430
- onBlur: handleBlur,
9431
- ref: ref
9432
- }, other), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"]("input", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9433
- autoFocus: autoFocus,
9434
- checked: checkedProp,
9435
- defaultChecked: defaultChecked,
9436
- className: classes.input,
9437
- disabled: disabled,
9438
- id: hasLabelFor && id,
9439
- name: name,
9440
- onChange: handleInputChange,
9441
- readOnly: readOnly,
9442
- ref: inputRef,
9443
- required: required,
9444
- tabIndex: tabIndex,
9445
- type: type,
9446
- value: value
9447
- }, inputProps)), checked ? checkedIcon : icon);
9448
- }); // NB: If changed, please update Checkbox, Switch and Radio
9449
- // so that the API documentation is updated.
9450
-
9451
- process.env.NODE_ENV !== "production" ? SwitchBase.propTypes = {
9452
- /**
9453
- * If `true`, the `input` element will be focused during the first mount.
9454
- */
9455
- autoFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9456
-
9457
- /**
9458
- * If `true`, the component is checked.
9459
- */
9460
- checked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9461
-
9462
- /**
9463
- * The icon to display when the component is checked.
9464
- */
9465
- checkedIcon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
9466
-
9467
- /**
9468
- * Override or extend the styles applied to the component.
9469
- * See [CSS API](#css) below for more details.
9470
- */
9471
- classes: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object.isRequired,
9472
-
9473
- /**
9474
- * @ignore
9475
- */
9476
- className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9477
-
9478
- /**
9479
- * @ignore
9480
- */
9481
- defaultChecked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9482
-
9483
- /**
9484
- * If `true`, the switch will be disabled.
9485
- */
9486
- disabled: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9487
-
9488
- /**
9489
- * The icon to display when the component is unchecked.
9490
- */
9491
- icon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
9492
-
9493
- /**
9494
- * The id of the `input` element.
9495
- */
9496
- id: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9497
-
9498
- /**
9499
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
9500
- */
9501
- inputProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
9502
-
9503
- /**
9504
- * Pass a ref to the `input` element.
9505
- */
9506
- inputRef: __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__["j" /* refType */],
9507
-
9508
- /*
9509
- * @ignore
9510
- */
9511
- name: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9512
-
9513
- /**
9514
- * @ignore
9515
- */
9516
- onBlur: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9517
-
9518
- /**
9519
- * Callback fired when the state is changed.
9520
- *
9521
- * @param {object} event The event source of the callback.
9522
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
9523
- */
9524
- onChange: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9525
-
9526
- /**
9527
- * @ignore
9528
- */
9529
- onFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9530
-
9531
- /**
9532
- * It prevents the user from changing the value of the field
9533
- * (not from interacting with the field).
9534
- */
9535
- readOnly: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9536
-
9537
- /**
9538
- * If `true`, the `input` element will be required.
9539
- */
9540
- required: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9541
-
9542
- /**
9543
- * @ignore
9544
- */
9545
- tabIndex: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string]),
9546
-
9547
- /**
9548
- * The input component prop `type`.
9549
- */
9550
- type: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string.isRequired,
9551
-
9552
- /**
9553
- * The value of the component.
9554
- */
9555
- value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
9556
- } : void 0;
9557
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__styles_withStyles__["a" /* default */])(styles, {
9558
- name: 'PrivateSwitchBase'
9559
- })(SwitchBase));
9560
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9561
-
9562
- /***/ }),
9563
- /* 157 */
9564
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9565
-
9566
- "use strict";
9567
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Chip__ = __webpack_require__(655);
9568
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Chip__["a"]; });
9569
-
9570
-
9571
- /***/ }),
9572
- /* 158 */
9573
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9574
-
9575
- "use strict";
9576
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__ = __webpack_require__(658);
9577
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__["a"]; });
9578
-
9579
-
9580
- /***/ }),
9581
- /* 159 */
9582
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9583
-
9584
- "use strict";
9585
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Unstable_TrapFocus__ = __webpack_require__(664);
9586
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Unstable_TrapFocus__["a"]; });
9587
-
9588
-
9589
- /***/ }),
9590
- /* 160 */
9591
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9592
-
9593
- "use strict";
9594
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
9595
- /* harmony export (immutable) */ __webpack_exports__["c"] = isHorizontal;
9596
- /* harmony export (immutable) */ __webpack_exports__["b"] = getAnchor;
9597
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
9598
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
9599
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
9600
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
9601
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
9602
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
9603
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_clsx__ = __webpack_require__(5);
9604
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Modal__ = __webpack_require__(82);
9605
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Backdrop__ = __webpack_require__(105);
9606
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_withStyles__ = __webpack_require__(6);
9607
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Slide__ = __webpack_require__(161);
9608
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Paper__ = __webpack_require__(25);
9609
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_capitalize__ = __webpack_require__(11);
9610
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__styles_transitions__ = __webpack_require__(41);
9611
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__styles_useTheme__ = __webpack_require__(20);
9612
-
9613
-
9614
-
9615
-
9616
-
9617
-
9618
-
9619
-
9620
-
9621
-
9622
-
9623
-
9624
-
9625
- var styles = function styles(theme) {
9626
- return {
9627
- /* Styles applied to the root element. */
9628
- root: {},
9629
-
9630
- /* Styles applied to the root element if `variant="permanent or persistent"`. */
9631
- docked: {
9632
- flex: '0 0 auto'
9633
- },
9634
-
9635
- /* Styles applied to the `Paper` component. */
9636
- paper: {
9637
- overflowY: 'auto',
9638
- display: 'flex',
9639
- flexDirection: 'column',
9640
- height: '100%',
9641
- flex: '1 0 auto',
9642
- zIndex: theme.zIndex.drawer,
9643
- WebkitOverflowScrolling: 'touch',
9644
- // Add iOS momentum scrolling.
9645
- // temporary style
9646
- position: 'fixed',
9647
- top: 0,
9648
- // We disable the focus ring for mouse, touch and keyboard users.
9649
- // At some point, it would be better to keep it for keyboard users.
9650
- // :focus-ring CSS pseudo-class will help.
9651
- outline: 0
9652
- },
9653
-
9654
- /* Styles applied to the `Paper` component if `anchor="left"`. */
9655
- paperAnchorLeft: {
9656
- left: 0,
9657
- right: 'auto'
9658
- },
9659
-
9660
- /* Styles applied to the `Paper` component if `anchor="right"`. */
9661
- paperAnchorRight: {
9662
- left: 'auto',
9663
- right: 0
9664
- },
9665
-
9666
- /* Styles applied to the `Paper` component if `anchor="top"`. */
9667
- paperAnchorTop: {
9668
- top: 0,
9669
- left: 0,
9670
- bottom: 'auto',
9671
- right: 0,
9672
- height: 'auto',
9673
- maxHeight: '100%'
9674
- },
9675
-
9676
- /* Styles applied to the `Paper` component if `anchor="bottom"`. */
9677
- paperAnchorBottom: {
9678
- top: 'auto',
9679
- left: 0,
9680
- bottom: 0,
9681
- right: 0,
9682
- height: 'auto',
9683
- maxHeight: '100%'
9684
- },
9685
-
9686
- /* Styles applied to the `Paper` component if `anchor="left"` and `variant` is not "temporary". */
9687
- paperAnchorDockedLeft: {
9688
- borderRight: "1px solid ".concat(theme.palette.divider)
9689
- },
9690
-
9691
- /* Styles applied to the `Paper` component if `anchor="top"` and `variant` is not "temporary". */
9692
- paperAnchorDockedTop: {
9693
- borderBottom: "1px solid ".concat(theme.palette.divider)
9694
- },
9695
-
9696
- /* Styles applied to the `Paper` component if `anchor="right"` and `variant` is not "temporary". */
9697
- paperAnchorDockedRight: {
9698
- borderLeft: "1px solid ".concat(theme.palette.divider)
9699
- },
9700
-
9701
- /* Styles applied to the `Paper` component if `anchor="bottom"` and `variant` is not "temporary". */
9702
- paperAnchorDockedBottom: {
9703
- borderTop: "1px solid ".concat(theme.palette.divider)
9704
- },
9705
-
9706
- /* Styles applied to the `Modal` component. */
9707
- modal: {}
9708
- };
9709
- };
9710
- var oppositeDirection = {
9711
- left: 'right',
9712
- right: 'left',
9713
- top: 'down',
9714
- bottom: 'up'
9715
- };
9716
- function isHorizontal(anchor) {
9717
- return ['left', 'right'].indexOf(anchor) !== -1;
9718
- }
9719
- function getAnchor(theme, anchor) {
9720
- return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
9721
- }
9722
- var defaultTransitionDuration = {
9723
- enter: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].enteringScreen,
9724
- exit: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].leavingScreen
9725
- };
9726
- /**
9727
- * The props of the [Modal](/api/modal/) component are available
9728
- * when `variant="temporary"` is set.
9729
- */
9730
-
9731
- var Drawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Drawer(props, ref) {
9732
- var _props$anchor = props.anchor,
9733
- anchorProp = _props$anchor === void 0 ? 'left' : _props$anchor,
9734
- BackdropProps = props.BackdropProps,
9735
- children = props.children,
9736
- classes = props.classes,
9737
- className = props.className,
9738
- _props$elevation = props.elevation,
9739
- elevation = _props$elevation === void 0 ? 16 : _props$elevation,
9740
- _props$ModalProps = props.ModalProps;
9741
- _props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps;
9742
-
9743
- var BackdropPropsProp = _props$ModalProps.BackdropProps,
9744
- ModalProps = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_props$ModalProps, ["BackdropProps"]),
9745
- onClose = props.onClose,
9746
- _props$open = props.open,
9747
- open = _props$open === void 0 ? false : _props$open,
9748
- _props$PaperProps = props.PaperProps,
9749
- PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,
9750
- SlideProps = props.SlideProps,
9751
- _props$TransitionComp = props.TransitionComponent,
9752
- TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_8__Slide__["a" /* default */] : _props$TransitionComp,
9753
- _props$transitionDura = props.transitionDuration,
9754
- transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
9755
- _props$variant = props.variant,
9756
- variant = _props$variant === void 0 ? 'temporary' : _props$variant,
9757
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["anchor", "BackdropProps", "children", "classes", "className", "elevation", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"]);
9758
-
9759
- var theme = Object(__WEBPACK_IMPORTED_MODULE_12__styles_useTheme__["a" /* default */])(); // Let's assume that the Drawer will always be rendered on user space.
9760
- // We use this state is order to skip the appear transition during the
9761
- // initial mount of the component.
9762
-
9763
- var mounted = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](false);
9764
- __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"](function () {
9765
- mounted.current = true;
9766
- }, []);
9767
- var anchor = getAnchor(theme, anchorProp);
9768
- var drawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_9__Paper__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9769
- elevation: variant === 'temporary' ? elevation : 0,
9770
- square: true
9771
- }, PaperProps, {
9772
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.paper, classes["paperAnchor".concat(Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(anchor))], PaperProps.className, variant !== 'temporary' && classes["paperAnchorDocked".concat(Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(anchor))])
9773
- }), children);
9774
-
9775
- if (variant === 'permanent') {
9776
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9777
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
9778
- ref: ref
9779
- }, other), drawer);
9780
- }
9781
-
9782
- var slidingDrawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9783
- in: open,
9784
- direction: oppositeDirection[anchor],
9785
- timeout: transitionDuration,
9786
- appear: mounted.current
9787
- }, SlideProps), drawer);
9788
-
9789
- if (variant === 'persistent') {
9790
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9791
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
9792
- ref: ref
9793
- }, other), slidingDrawer);
9794
- } // variant === temporary
9795
-
9796
-
9797
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_5__Modal__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9798
- BackdropProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, BackdropProps, BackdropPropsProp, {
9799
- transitionDuration: transitionDuration
9800
- }),
9801
- BackdropComponent: __WEBPACK_IMPORTED_MODULE_6__Backdrop__["a" /* default */],
9802
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.modal, className),
9803
- open: open,
9804
- onClose: onClose,
9805
- ref: ref
9806
- }, other, ModalProps), slidingDrawer);
9807
- });
9808
- process.env.NODE_ENV !== "production" ? Drawer.propTypes = {
9809
- // ----------------------------- Warning --------------------------------
9810
- // | These PropTypes are generated from the TypeScript type definitions |
9811
- // | To update them edit the d.ts file and run "yarn proptypes" |
9812
- // ----------------------------------------------------------------------
9813
-
9814
- /**
9815
- * Side from which the drawer will appear.
9816
- */
9817
- anchor: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['bottom', 'left', 'right', 'top']),
9818
-
9819
- /**
9820
- * @ignore
9821
- */
9822
- BackdropProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9823
-
9824
- /**
9825
- * The contents of the drawer.
9826
- */
9827
- children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
9828
-
9829
- /**
9830
- * Override or extend the styles applied to the component.
9831
- * See [CSS API](#css) below for more details.
9832
- */
9833
- classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9834
-
9835
- /**
9836
- * @ignore
9837
- */
9838
- className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
9839
-
9840
- /**
9841
- * The elevation of the drawer.
9842
- */
9843
- elevation: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9844
-
9845
- /**
9846
- * Props applied to the [`Modal`](/api/modal/) element.
9847
- */
9848
- ModalProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9849
-
9850
- /**
9851
- * Callback fired when the component requests to be closed.
9852
- *
9853
- * @param {object} event The event source of the callback.
9854
- */
9855
- onClose: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
9856
-
9857
- /**
9858
- * If `true`, the drawer is open.
9859
- */
9860
- open: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
9861
-
9862
- /**
9863
- * Props applied to the [`Paper`](/api/paper/) element.
9864
- */
9865
- PaperProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9866
-
9867
- /**
9868
- * Props applied to the [`Slide`](/api/slide/) element.
9869
- */
9870
- SlideProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9871
-
9872
- /**
9873
- * The duration for the transition, in milliseconds.
9874
- * You may specify a single timeout for all transitions, or individually with an object.
9875
- */
9876
- transitionDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
9877
- appear: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9878
- enter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9879
- exit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number
9880
- })]),
9881
-
9882
- /**
9883
- * The variant to use.
9884
- */
9885
- variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['permanent', 'persistent', 'temporary'])
9886
- } : void 0;
9887
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__styles_withStyles__["a" /* default */])(styles, {
9888
- name: 'MuiDrawer',
9889
- flip: false
9890
- })(Drawer));
9891
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9892
-
9893
- /***/ }),
9894
- /* 161 */
9895
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9896
-
9897
- "use strict";
9898
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Slide__ = __webpack_require__(671);
9899
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Slide__["a"]; });
9900
-
9901
-
9902
- /***/ }),
9903
- /* 162 */
9904
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9905
-
9906
- "use strict";
9907
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__ = __webpack_require__(679);
9908
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__["a"]; });
9909
-
9910
-
9911
- /***/ }),
9912
- /* 163 */
9913
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9914
-
9915
- "use strict";
9916
- /* unused harmony export hasValue */
9917
- /* harmony export (immutable) */ __webpack_exports__["b"] = isFilled;
9918
- /* harmony export (immutable) */ __webpack_exports__["a"] = isAdornedStart;
9919
- // Supports determination of isControlled().
9920
- // Controlled input accepts its current value as a prop.
9921
- //
9922
- // @see https://facebook.github.io/react/docs/forms.html#controlled-components
9923
- // @param value
9924
- // @returns {boolean} true if string (including '') or number (including zero)
9925
- function hasValue(value) {
9926
- return value != null && !(Array.isArray(value) && value.length === 0);
9927
- } // Determine if field is empty or filled.
9928
- // Response determines if label is presented above field or as placeholder.
9929
- //
9930
- // @param obj
9931
- // @param SSR
9932
- // @returns {boolean} False when not present or empty string.
9933
- // True when any number or string with length.
9934
-
9935
- function isFilled(obj) {
9936
- var SSR = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
9937
- return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== '');
9938
- } // Determine if an Input is adorned on start.
9939
- // It's corresponding to the left with LTR.
9940
- //
9941
- // @param obj
9942
- // @returns {boolean} False when no adornments.
9943
- // True when adorned at the start.
9944
-
9945
- function isAdornedStart(obj) {
9946
- return obj.startAdornment;
9947
- }
9948
-
9949
- /***/ }),
9950
- /* 164 */
9951
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9952
-
9953
- "use strict";
9954
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormGroup__ = __webpack_require__(682);
9955
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormGroup__["a"]; });
9956
-
9957
-
9958
- /***/ }),
9959
- /* 165 */
9960
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9961
-
9962
- "use strict";
9963
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormHelperText__ = __webpack_require__(683);
9964
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormHelperText__["a"]; });
9965
-
9966
-
9967
- /***/ }),
9968
- /* 166 */
9969
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9970
-
9971
- "use strict";
9972
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormLabel__ = __webpack_require__(684);
9973
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormLabel__["a"]; });
9974
-
9975
-
9976
- /***/ }),
9977
- /* 167 */
9978
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9979
-
9980
- "use strict";
9981
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__ = __webpack_require__(692);
9982
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__["a"]; });
9983
-
9984
-
9985
- /***/ }),
9986
- /* 168 */
9987
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9988
-
9989
- "use strict";
9990
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputLabel__ = __webpack_require__(696);
9991
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputLabel__["a"]; });
9992
-
9993
-
9994
- /***/ }),
9995
- /* 169 */
9996
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9997
-
9998
- "use strict";
9999
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__LinearProgress__ = __webpack_require__(697);
10000
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__LinearProgress__["a"]; });
10001
-
10002
-
10003
- /***/ }),
10004
- /* 170 */
10005
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10006
-
10007
- "use strict";
10008
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__List__ = __webpack_require__(699);
10009
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__List__["a"]; });
10010
-
10011
-
10012
- /***/ }),
10013
- /* 171 */
10014
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10015
-
10016
- "use strict";
10017
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItem__ = __webpack_require__(700);
10018
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListItem__["a"]; });
10019
-
10020
-
10021
- /***/ }),
10022
- /* 172 */
10023
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10024
-
10025
- "use strict";
10026
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListSubheader__ = __webpack_require__(705);
10027
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListSubheader__["a"]; });
10028
-
10029
-
10030
- /***/ }),
10031
- /* 173 */
10032
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10033
-
10034
- "use strict";
10035
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popover__ = __webpack_require__(706);
10036
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popover__["a"]; });
10037
-
10038
-
10039
- /***/ }),
10040
- /* 174 */
10041
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10042
-
10043
- "use strict";
10044
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuList__ = __webpack_require__(707);
10045
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuList__["a"]; });
10046
-
10047
-
10048
- /***/ }),
10049
- /* 175 */
10050
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10051
-
10052
- "use strict";
10053
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuItem__ = __webpack_require__(708);
10054
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuItem__["a"]; });
10055
-
10056
-
10057
- /***/ }),
10058
- /* 176 */
10059
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10060
-
10061
- "use strict";
10062
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__NoSsr__ = __webpack_require__(710);
10063
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__NoSsr__["a"]; });
10064
-
10065
-
10066
- /***/ }),
10067
- /* 177 */
10068
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10069
-
10070
- "use strict";
10071
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__ = __webpack_require__(726);
10072
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__["a"]; });
10073
-
10074
-
10075
- /***/ }),
10076
- /* 178 */
10077
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10078
-
10079
- "use strict";
10080
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepLabel__ = __webpack_require__(729);
10081
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepLabel__["a"]; });
10082
-
10083
-
10084
- /***/ }),
10085
- /* 179 */
10086
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10087
-
10088
- "use strict";
10089
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepIcon__ = __webpack_require__(730);
10090
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepIcon__["a"]; });
10091
-
10092
-
10093
- /***/ }),
10094
- /* 180 */
10095
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10096
-
10097
- "use strict";
10098
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepConnector__ = __webpack_require__(733);
10099
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepConnector__["a"]; });
10100
-
10101
-
10102
- /***/ }),
10103
- /* 181 */
10104
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10105
-
10106
- "use strict";
10107
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableCell__ = __webpack_require__(742);
10108
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TableCell__["a"]; });
10109
-
10110
-
10111
- /***/ }),
10112
- /* 182 */
10113
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10114
-
10115
- "use strict";
10116
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Toolbar__ = __webpack_require__(747);
10117
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Toolbar__["a"]; });
10118
-
10119
-
10120
- /***/ }),
10121
- /* 183 */
10122
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10123
-
10124
- "use strict";
10125
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tabs__ = __webpack_require__(752);
10126
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Tabs__["a"]; });
10127
-
10128
-
10129
- /***/ }),
10130
- /* 184 */
10131
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10132
-
10133
- "use strict";
10134
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabScrollButton__ = __webpack_require__(757);
10135
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabScrollButton__["a"]; });
10136
-
10137
-
10138
- /***/ }),
10139
- /* 185 */
10140
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10141
-
10142
- "use strict";
10143
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Zoom__ = __webpack_require__(762);
10144
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Zoom__["a"]; });
10145
-
10146
-
10147
- /***/ }),
10148
- /* 186 */
10149
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10150
-
10151
- "use strict";
10152
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PaginationItem__ = __webpack_require__(768);
10153
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__PaginationItem__["a"]; });
10154
-
10155
-
10156
- /***/ }),
10157
- /* 187 */
10158
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10159
-
10160
- "use strict";
10161
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
10162
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
10163
-
10164
- /**
10165
- * @ignore - internal component.
10166
- */
10167
-
10168
- var TimelineItemContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
10169
-
10170
- if (process.env.NODE_ENV !== 'production') {
10171
- TimelineItemContext.displayName = 'TimelineItemContext';
10172
- }
10173
-
10174
- /* harmony default export */ __webpack_exports__["a"] = (TimelineItemContext);
10175
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
10176
-
10177
- /***/ }),
10178
- /* 188 */
10179
- /***/ (function(module, exports, __webpack_require__) {
10180
-
10181
- var baseForOwn = __webpack_require__(396),
10182
- castFunction = __webpack_require__(812);
10183
-
10184
- /**
10185
- * Iterates over own enumerable string keyed properties of an object and
10186
- * invokes `iteratee` for each property. The iteratee is invoked with three
10187
- * arguments: (value, key, object). Iteratee functions may exit iteration
10188
- * early by explicitly returning `false`.
10189
- *
10190
- * @static
10191
- * @memberOf _
10192
- * @since 0.3.0
10193
- * @category Object
10194
- * @param {Object} object The object to iterate over.
10195
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
10196
- * @returns {Object} Returns `object`.
10197
- * @see _.forOwnRight
10198
- * @example
10199
- *
10200
- * function Foo() {
10201
- * this.a = 1;
10202
- * this.b = 2;
10203
- * }
10204
- *
10205
- * Foo.prototype.c = 3;
10206
- *
10207
- * _.forOwn(new Foo, function(value, key) {
10208
- * console.log(key);
10209
- * });
10210
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
10211
- */
10212
- function forOwn(object, iteratee) {
10213
- return object && baseForOwn(object, castFunction(iteratee));
10214
- }
10215
-
10216
- module.exports = forOwn;
10217
-
10218
-
10219
- /***/ }),
10220
- /* 189 */
10221
- /***/ (function(module, exports, __webpack_require__) {
10222
-
10223
- /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(42),
10224
- stubFalse = __webpack_require__(808);
10225
-
10226
- /** Detect free variable `exports`. */
10227
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
10228
-
10229
- /** Detect free variable `module`. */
10230
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
10231
-
10232
- /** Detect the popular CommonJS extension `module.exports`. */
10233
- var moduleExports = freeModule && freeModule.exports === freeExports;
10234
-
10235
- /** Built-in value references. */
10236
- var Buffer = moduleExports ? root.Buffer : undefined;
10237
-
10238
- /* Built-in method references for those with the same name as other `lodash` methods. */
10239
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
10240
-
10241
- /**
10242
- * Checks if `value` is a buffer.
10243
- *
10244
- * @static
10245
- * @memberOf _
10246
- * @since 4.3.0
10247
- * @category Lang
10248
- * @param {*} value The value to check.
10249
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
10250
- * @example
10251
- *
10252
- * _.isBuffer(new Buffer(2));
10253
- * // => true
10254
- *
10255
- * _.isBuffer(new Uint8Array(2));
10256
- * // => false
10257
- */
10258
- var isBuffer = nativeIsBuffer || stubFalse;
10259
-
10260
- module.exports = isBuffer;
10261
-
10262
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(190)(module)))
10263
-
10264
- /***/ }),
10265
- /* 190 */
10266
- /***/ (function(module, exports) {
10267
-
10268
- module.exports = function(module) {
10269
- if(!module.webpackPolyfill) {
10270
- module.deprecate = function() {};
10271
- module.paths = [];
10272
- // module.parent = undefined by default
10273
- if(!module.children) module.children = [];
10274
- Object.defineProperty(module, "loaded", {
10275
- enumerable: true,
10276
- get: function() {
10277
- return module.l;
10278
- }
10279
- });
10280
- Object.defineProperty(module, "id", {
10281
- enumerable: true,
10282
- get: function() {
10283
- return module.i;
10284
- }
10285
- });
10286
- module.webpackPolyfill = 1;
10287
- }
10288
- return module;
10289
- };
10290
-
10291
-
10292
- /***/ }),
10293
- /* 191 */
10294
- /***/ (function(module, exports) {
10295
-
10296
- /** Used as references for various `Number` constants. */
10297
- var MAX_SAFE_INTEGER = 9007199254740991;
10298
-
10299
- /**
10300
- * Checks if `value` is a valid array-like length.
10301
- *
10302
- * **Note:** This method is loosely based on
10303
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
10304
- *
10305
- * @static
10306
- * @memberOf _
10307
- * @since 4.0.0
10308
- * @category Lang
10309
- * @param {*} value The value to check.
10310
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
10311
- * @example
10312
- *
10313
- * _.isLength(3);
10314
- * // => true
10315
- *
10316
- * _.isLength(Number.MIN_VALUE);
10317
- * // => false
10318
- *
10319
- * _.isLength(Infinity);
10320
- * // => false
10321
- *
10322
- * _.isLength('3');
10323
- * // => false
10324
- */
10325
- function isLength(value) {
10326
- return typeof value == 'number' &&
10327
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
10328
- }
10329
-
10330
- module.exports = isLength;
10331
-
10332
-
10333
- /***/ }),
10334
- /* 192 */
10335
- /***/ (function(module, exports) {
10336
-
10337
- /**
10338
- * The base implementation of `_.unary` without support for storing metadata.
10339
- *
10340
- * @private
10341
- * @param {Function} func The function to cap arguments for.
10342
- * @returns {Function} Returns the new capped function.
10343
- */
10344
- function baseUnary(func) {
10345
- return function(value) {
10346
- return func(value);
10347
- };
10348
- }
10349
-
10350
- module.exports = baseUnary;
10351
-
10352
-
10353
- /***/ }),
10354
- /* 193 */
10355
- /***/ (function(module, exports, __webpack_require__) {
10356
-
10357
- /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(395);
10358
-
10359
- /** Detect free variable `exports`. */
10360
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
10361
-
10362
- /** Detect free variable `module`. */
10363
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
10364
-
10365
- /** Detect the popular CommonJS extension `module.exports`. */
10366
- var moduleExports = freeModule && freeModule.exports === freeExports;
10367
-
10368
- /** Detect free variable `process` from Node.js. */
10369
- var freeProcess = moduleExports && freeGlobal.process;
10370
-
10371
- /** Used to access faster Node.js helpers. */
10372
- var nodeUtil = (function() {
10373
- try {
10374
- // Use `util.types` for Node.js 10+.
10375
- var types = freeModule && freeModule.require && freeModule.require('util').types;
10376
-
10377
- if (types) {
10378
- return types;
10379
- }
10380
-
10381
- // Legacy `process.binding('util')` for Node.js < 10.
10382
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
10383
- } catch (e) {}
10384
- }());
10385
-
10386
- module.exports = nodeUtil;
10387
-
10388
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(190)(module)))
10389
-
10390
- /***/ }),
10391
- /* 194 */
10392
- /***/ (function(module, exports) {
10393
-
10394
- /** Used for built-in method references. */
10395
- var objectProto = Object.prototype;
10396
-
10397
- /**
10398
- * Checks if `value` is likely a prototype object.
10399
- *
10400
- * @private
10401
- * @param {*} value The value to check.
10402
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
10403
- */
10404
- function isPrototype(value) {
10405
- var Ctor = value && value.constructor,
10406
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
10407
-
10408
- return value === proto;
10409
- }
10410
-
10411
- module.exports = isPrototype;
10412
-
10413
-
10414
- /***/ }),
10415
- /* 195 */
10416
- /***/ (function(module, exports, __webpack_require__) {
10417
-
10418
- var overArg = __webpack_require__(401);
10419
-
10420
- /** Built-in value references. */
10421
- var getPrototype = overArg(Object.getPrototypeOf, Object);
10422
-
10423
- module.exports = getPrototype;
10424
-
10425
-
10426
- /***/ }),
10427
- /* 196 */
10428
- /***/ (function(module, exports, __webpack_require__) {
10429
-
10430
- var ListCache = __webpack_require__(120),
10431
- stackClear = __webpack_require__(823),
10432
- stackDelete = __webpack_require__(824),
10433
- stackGet = __webpack_require__(825),
10434
- stackHas = __webpack_require__(826),
10435
- stackSet = __webpack_require__(827);
10436
-
10437
- /**
10438
- * Creates a stack cache object to store key-value pairs.
10439
- *
10440
- * @private
10441
- * @constructor
10442
- * @param {Array} [entries] The key-value pairs to cache.
10443
- */
10444
- function Stack(entries) {
10445
- var data = this.__data__ = new ListCache(entries);
10446
- this.size = data.size;
10447
- }
10448
-
10449
- // Add methods to `Stack`.
10450
- Stack.prototype.clear = stackClear;
10451
- Stack.prototype['delete'] = stackDelete;
10452
- Stack.prototype.get = stackGet;
10453
- Stack.prototype.has = stackHas;
10454
- Stack.prototype.set = stackSet;
10455
-
10456
- module.exports = Stack;
10457
-
10458
-
10459
- /***/ }),
10460
- /* 197 */
10461
- /***/ (function(module, exports) {
10462
-
10463
- /**
10464
- * Performs a
10465
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
10466
- * comparison between two values to determine if they are equivalent.
10467
- *
10468
- * @static
10469
- * @memberOf _
10470
- * @since 4.0.0
10471
- * @category Lang
10472
- * @param {*} value The value to compare.
10473
- * @param {*} other The other value to compare.
10474
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
10475
- * @example
10476
- *
10477
- * var object = { 'a': 1 };
10478
- * var other = { 'a': 1 };
10479
- *
10480
- * _.eq(object, object);
10481
- * // => true
10482
- *
10483
- * _.eq(object, other);
10484
- * // => false
10485
- *
10486
- * _.eq('a', 'a');
10487
- * // => true
10488
- *
10489
- * _.eq('a', Object('a'));
10490
- * // => false
10491
- *
10492
- * _.eq(NaN, NaN);
10493
- * // => true
10494
- */
10495
- function eq(value, other) {
10496
- return value === other || (value !== value && other !== other);
10497
- }
10498
-
10499
- module.exports = eq;
10500
-
10501
-
10502
- /***/ }),
10503
- /* 198 */
10504
- /***/ (function(module, exports, __webpack_require__) {
10505
-
10506
- var getNative = __webpack_require__(59),
10507
- root = __webpack_require__(42);
10508
-
10509
- /* Built-in method references that are verified to be native. */
10510
- var Map = getNative(root, 'Map');
10511
-
10512
- module.exports = Map;
10513
-
10514
-
10515
- /***/ }),
10516
- /* 199 */
10517
- /***/ (function(module, exports, __webpack_require__) {
10518
-
10519
- var mapCacheClear = __webpack_require__(832),
10520
- mapCacheDelete = __webpack_require__(839),
10521
- mapCacheGet = __webpack_require__(841),
10522
- mapCacheHas = __webpack_require__(842),
10523
- mapCacheSet = __webpack_require__(843);
10524
-
10525
- /**
10526
- * Creates a map cache object to store key-value pairs.
10527
- *
10528
- * @private
10529
- * @constructor
10530
- * @param {Array} [entries] The key-value pairs to cache.
10531
- */
10532
- function MapCache(entries) {
10533
- var index = -1,
10534
- length = entries == null ? 0 : entries.length;
10535
-
10536
- this.clear();
10537
- while (++index < length) {
10538
- var entry = entries[index];
10539
- this.set(entry[0], entry[1]);
10540
- }
10541
- }
10542
-
10543
- // Add methods to `MapCache`.
10544
- MapCache.prototype.clear = mapCacheClear;
10545
- MapCache.prototype['delete'] = mapCacheDelete;
10546
- MapCache.prototype.get = mapCacheGet;
10547
- MapCache.prototype.has = mapCacheHas;
10548
- MapCache.prototype.set = mapCacheSet;
10549
-
10550
- module.exports = MapCache;
10551
-
10552
-
10553
- /***/ }),
10554
- /* 200 */
10555
- /***/ (function(module, exports, __webpack_require__) {
10556
-
10557
- var arrayFilter = __webpack_require__(854),
10558
- stubArray = __webpack_require__(412);
10559
-
10560
- /** Used for built-in method references. */
10561
- var objectProto = Object.prototype;
10562
-
10563
- /** Built-in value references. */
10564
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
10565
-
10566
- /* Built-in method references for those with the same name as other `lodash` methods. */
10567
- var nativeGetSymbols = Object.getOwnPropertySymbols;
10568
-
10569
- /**
10570
- * Creates an array of the own enumerable symbols of `object`.
10571
- *
10572
- * @private
10573
- * @param {Object} object The object to query.
10574
- * @returns {Array} Returns the array of symbols.
10575
- */
10576
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
10577
- if (object == null) {
10578
- return [];
10579
- }
10580
- object = Object(object);
10581
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
10582
- return propertyIsEnumerable.call(object, symbol);
10583
- });
10584
- };
10585
-
10586
- module.exports = getSymbols;
10587
-
10588
-
10589
- /***/ }),
10590
- /* 201 */
10591
- /***/ (function(module, exports, __webpack_require__) {
10592
-
10593
- var isArray = __webpack_require__(32),
10594
- isSymbol = __webpack_require__(202);
10595
-
10596
- /** Used to match property names within property paths. */
10597
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
10598
- reIsPlainProp = /^\w*$/;
10599
-
10600
- /**
10601
- * Checks if `value` is a property name and not a property path.
10602
- *
10603
- * @private
10604
- * @param {*} value The value to check.
10605
- * @param {Object} [object] The object to query keys on.
10606
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
10607
- */
10608
- function isKey(value, object) {
10609
- if (isArray(value)) {
10610
- return false;
10611
- }
10612
- var type = typeof value;
10613
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
10614
- value == null || isSymbol(value)) {
10615
- return true;
10616
- }
10617
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
10618
- (object != null && value in Object(object));
10619
- }
10620
-
10621
- module.exports = isKey;
10622
-
10623
-
10624
- /***/ }),
10625
- /* 202 */
10626
- /***/ (function(module, exports, __webpack_require__) {
10627
-
10628
- var baseGetTag = __webpack_require__(58),
10629
- isObjectLike = __webpack_require__(45);
10630
-
10631
- /** `Object#toString` result references. */
10632
- var symbolTag = '[object Symbol]';
10633
-
10634
- /**
10635
- * Checks if `value` is classified as a `Symbol` primitive or object.
10636
- *
10637
- * @static
10638
- * @memberOf _
10639
- * @since 4.0.0
10640
- * @category Lang
10641
- * @param {*} value The value to check.
10642
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
10643
- * @example
10644
- *
10645
- * _.isSymbol(Symbol.iterator);
10646
- * // => true
10647
- *
10648
- * _.isSymbol('abc');
10649
- * // => false
10650
- */
10651
- function isSymbol(value) {
10652
- return typeof value == 'symbol' ||
10653
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
10654
- }
10655
-
10656
- module.exports = isSymbol;
10657
-
10658
-
10659
- /***/ }),
10660
- /* 203 */
10661
- /***/ (function(module, exports, __webpack_require__) {
10662
-
10663
- var arrayLikeKeys = __webpack_require__(397),
10664
- baseKeysIn = __webpack_require__(883),
10665
- isArrayLike = __webpack_require__(119);
10666
-
10667
- /**
10668
- * Creates an array of the own and inherited enumerable property names of `object`.
10669
- *
10670
- * **Note:** Non-object values are coerced to objects.
10671
- *
10672
- * @static
10673
- * @memberOf _
10674
- * @since 3.0.0
10675
- * @category Object
10676
- * @param {Object} object The object to query.
10677
- * @returns {Array} Returns the array of property names.
10678
- * @example
10679
- *
10680
- * function Foo() {
10681
- * this.a = 1;
10682
- * this.b = 2;
10683
- * }
10684
- *
10685
- * Foo.prototype.c = 3;
10686
- *
10687
- * _.keysIn(new Foo);
10688
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
10689
- */
10690
- function keysIn(object) {
10691
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
10692
- }
10693
-
10694
- module.exports = keysIn;
10695
-
10696
-
10697
- /***/ }),
10698
- /* 204 */
10699
- /***/ (function(module, exports, __webpack_require__) {
10700
-
10701
- var Uint8Array = __webpack_require__(408);
10702
-
10703
- /**
10704
- * Creates a clone of `arrayBuffer`.
10705
- *
10706
- * @private
10707
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
10708
- * @returns {ArrayBuffer} Returns the cloned array buffer.
10709
- */
10710
- function cloneArrayBuffer(arrayBuffer) {
10711
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
10712
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
10713
- return result;
10714
- }
10715
-
10716
- module.exports = cloneArrayBuffer;
10717
-
10718
-
10719
- /***/ }),
10720
- /* 205 */
10721
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10722
-
10723
- "use strict";
10724
- /* unused harmony export Checkboard */
10725
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
10726
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
10727
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(10);
10728
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
10729
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_checkboard__ = __webpack_require__(908);
10730
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
10731
-
10732
-
10733
-
10734
-
10735
-
10736
- var Checkboard = function Checkboard(_ref) {
10737
- var white = _ref.white,
10738
- grey = _ref.grey,
10739
- size = _ref.size,
10740
- renderers = _ref.renderers,
10741
- borderRadius = _ref.borderRadius,
10742
- boxShadow = _ref.boxShadow,
10743
- children = _ref.children;
10744
-
10745
- var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
10746
- 'default': {
10747
- grid: {
10748
- borderRadius: borderRadius,
10749
- boxShadow: boxShadow,
10750
- absolute: '0px 0px 0px 0px',
10751
- background: 'url(' + __WEBPACK_IMPORTED_MODULE_2__helpers_checkboard__["a" /* get */](white, grey, size, renderers.canvas) + ') center left'
10752
- }
10753
- }
10754
- });
10755
- return Object(__WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"])(children) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(children, _extends({}, children.props, { style: _extends({}, children.props.style, styles.grid) })) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.grid });
10756
- };
10757
-
10758
- Checkboard.defaultProps = {
10759
- size: 8,
10760
- white: 'transparent',
10761
- grey: 'rgba(0,0,0,.08)',
10762
- renderers: {}
10763
- };
10764
-
10765
- /* harmony default export */ __webpack_exports__["a"] = (Checkboard);
10766
-
10767
- /***/ }),
10768
- /* 206 */
10769
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10770
-
10771
- "use strict";
10772
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListCache_js__ = __webpack_require__(127);
10773
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stackClear_js__ = __webpack_require__(919);
10774
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stackDelete_js__ = __webpack_require__(920);
10775
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__stackGet_js__ = __webpack_require__(921);
10776
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__stackHas_js__ = __webpack_require__(922);
10777
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__stackSet_js__ = __webpack_require__(923);
10778
-
10779
-
10780
-
10781
-
10782
-
10783
-
10784
-
10785
- /**
10786
- * Creates a stack cache object to store key-value pairs.
10787
- *
10788
- * @private
10789
- * @constructor
10790
- * @param {Array} [entries] The key-value pairs to cache.
10791
- */
10792
- function Stack(entries) {
10793
- var data = this.__data__ = new __WEBPACK_IMPORTED_MODULE_0__ListCache_js__["a" /* default */](entries);
10794
- this.size = data.size;
10795
- }
10796
-
10797
- // Add methods to `Stack`.
10798
- Stack.prototype.clear = __WEBPACK_IMPORTED_MODULE_1__stackClear_js__["a" /* default */];
10799
- Stack.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_2__stackDelete_js__["a" /* default */];
10800
- Stack.prototype.get = __WEBPACK_IMPORTED_MODULE_3__stackGet_js__["a" /* default */];
10801
- Stack.prototype.has = __WEBPACK_IMPORTED_MODULE_4__stackHas_js__["a" /* default */];
10802
- Stack.prototype.set = __WEBPACK_IMPORTED_MODULE_5__stackSet_js__["a" /* default */];
10803
-
10804
- /* harmony default export */ __webpack_exports__["a"] = (Stack);
10805
-
10806
-
10807
- /***/ }),
10808
- /* 207 */
10809
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10810
-
10811
- "use strict";
10812
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(60);
10813
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__root_js__ = __webpack_require__(33);
10814
-
10815
-
10816
-
10817
- /* Built-in method references that are verified to be native. */
10818
- var Map = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__root_js__["a" /* default */], 'Map');
10819
-
10820
- /* harmony default export */ __webpack_exports__["a"] = (Map);
10821
-
10822
-
10823
- /***/ }),
10824
- /* 208 */
10825
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10826
-
10827
- "use strict";
10828
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(72);
10829
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObject_js__ = __webpack_require__(34);
10830
-
10831
-
10832
-
10833
- /** `Object#toString` result references. */
10834
- var asyncTag = '[object AsyncFunction]',
10835
- funcTag = '[object Function]',
10836
- genTag = '[object GeneratorFunction]',
10837
- proxyTag = '[object Proxy]';
10838
-
10839
- /**
10840
- * Checks if `value` is classified as a `Function` object.
10841
- *
10842
- * @static
10843
- * @memberOf _
10844
- * @since 0.1.0
10845
- * @category Lang
10846
- * @param {*} value The value to check.
10847
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
10848
- * @example
10849
- *
10850
- * _.isFunction(_);
10851
- * // => true
10852
- *
10853
- * _.isFunction(/abc/);
10854
- * // => false
10855
- */
10856
- function isFunction(value) {
10857
- if (!Object(__WEBPACK_IMPORTED_MODULE_1__isObject_js__["a" /* default */])(value)) {
10858
- return false;
10859
- }
10860
- // The use of `Object#toString` avoids issues with the `typeof` operator
10861
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
10862
- var tag = Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value);
10863
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
10864
- }
10865
-
10866
- /* harmony default export */ __webpack_exports__["a"] = (isFunction);
10867
-
10868
-
10869
- /***/ }),
10870
- /* 209 */
10871
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10872
-
10873
- "use strict";
10874
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mapCacheClear_js__ = __webpack_require__(930);
10875
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mapCacheDelete_js__ = __webpack_require__(937);
10876
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mapCacheGet_js__ = __webpack_require__(939);
10877
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mapCacheHas_js__ = __webpack_require__(940);
10878
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mapCacheSet_js__ = __webpack_require__(941);
10879
-
10880
-
10881
-
10882
-
10883
-
10884
-
10885
- /**
10886
- * Creates a map cache object to store key-value pairs.
10887
- *
10888
- * @private
10889
- * @constructor
10890
- * @param {Array} [entries] The key-value pairs to cache.
10891
- */
10892
- function MapCache(entries) {
10893
- var index = -1,
10894
- length = entries == null ? 0 : entries.length;
10895
-
10896
- this.clear();
10897
- while (++index < length) {
10898
- var entry = entries[index];
10899
- this.set(entry[0], entry[1]);
10900
- }
10901
- }
10902
-
10903
- // Add methods to `MapCache`.
10904
- MapCache.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__mapCacheClear_js__["a" /* default */];
10905
- MapCache.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__mapCacheDelete_js__["a" /* default */];
10906
- MapCache.prototype.get = __WEBPACK_IMPORTED_MODULE_2__mapCacheGet_js__["a" /* default */];
10907
- MapCache.prototype.has = __WEBPACK_IMPORTED_MODULE_3__mapCacheHas_js__["a" /* default */];
10908
- MapCache.prototype.set = __WEBPACK_IMPORTED_MODULE_4__mapCacheSet_js__["a" /* default */];
10909
-
10910
- /* harmony default export */ __webpack_exports__["a"] = (MapCache);
10911
-
10912
-
10913
- /***/ }),
10914
- /* 210 */
10915
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10916
-
10917
- "use strict";
10918
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__defineProperty_js__ = __webpack_require__(423);
10919
-
10920
-
10921
- /**
10922
- * The base implementation of `assignValue` and `assignMergeValue` without
10923
- * value checks.
10924
- *
10925
- * @private
10926
- * @param {Object} object The object to modify.
10927
- * @param {string} key The key of the property to assign.
10928
- * @param {*} value The value to assign.
10929
- */
10930
- function baseAssignValue(object, key, value) {
10931
- if (key == '__proto__' && __WEBPACK_IMPORTED_MODULE_0__defineProperty_js__["a" /* default */]) {
10932
- Object(__WEBPACK_IMPORTED_MODULE_0__defineProperty_js__["a" /* default */])(object, key, {
10933
- 'configurable': true,
10934
- 'enumerable': true,
10935
- 'value': value,
10936
- 'writable': true
10937
- });
10938
- } else {
10939
- object[key] = value;
10940
- }
10941
- }
10942
-
10943
- /* harmony default export */ __webpack_exports__["a"] = (baseAssignValue);
10944
-
10945
-
10946
- /***/ }),
10947
- /* 211 */
10948
- /***/ (function(module, exports) {
10949
-
10950
- module.exports = function(originalModule) {
10951
- if(!originalModule.webpackPolyfill) {
10952
- var module = Object.create(originalModule);
10953
- // module.parent = undefined by default
10954
- if(!module.children) module.children = [];
10955
- Object.defineProperty(module, "loaded", {
10956
- enumerable: true,
10957
- get: function() {
10958
- return module.l;
10959
- }
10960
- });
10961
- Object.defineProperty(module, "id", {
10962
- enumerable: true,
10963
- get: function() {
10964
- return module.i;
10965
- }
10966
- });
10967
- Object.defineProperty(module, "exports", {
10968
- enumerable: true,
10969
- });
10970
- module.webpackPolyfill = 1;
10971
- }
10972
- return module;
10973
- };
10974
-
10975
-
10976
- /***/ }),
10977
- /* 212 */
10978
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10979
-
10980
- "use strict";
10981
- /** Used for built-in method references. */
10982
- var objectProto = Object.prototype;
10983
-
10984
- /**
10985
- * Checks if `value` is likely a prototype object.
10986
- *
10987
- * @private
10988
- * @param {*} value The value to check.
10989
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
10990
- */
10991
- function isPrototype(value) {
10992
- var Ctor = value && value.constructor,
10993
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
10994
-
10995
- return value === proto;
10996
- }
10997
-
10998
- /* harmony default export */ __webpack_exports__["a"] = (isPrototype);
10999
-
11000
-
11001
- /***/ }),
11002
- /* 213 */
11003
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11004
-
11005
- "use strict";
11006
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__ = __webpack_require__(950);
11007
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(61);
11008
-
11009
-
11010
-
11011
- /** Used for built-in method references. */
11012
- var objectProto = Object.prototype;
11013
-
11014
- /** Used to check objects for own properties. */
11015
- var hasOwnProperty = objectProto.hasOwnProperty;
11016
-
11017
- /** Built-in value references. */
11018
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
11019
-
11020
- /**
11021
- * Checks if `value` is likely an `arguments` object.
11022
- *
11023
- * @static
11024
- * @memberOf _
11025
- * @since 0.1.0
11026
- * @category Lang
11027
- * @param {*} value The value to check.
11028
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
11029
- * else `false`.
11030
- * @example
11031
- *
11032
- * _.isArguments(function() { return arguments; }());
11033
- * // => true
11034
- *
11035
- * _.isArguments([1, 2, 3]);
11036
- * // => false
11037
- */
11038
- var isArguments = Object(__WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__["a" /* default */])(function() { return arguments; }()) ? __WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__["a" /* default */] : function(value) {
11039
- return Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && hasOwnProperty.call(value, 'callee') &&
11040
- !propertyIsEnumerable.call(value, 'callee');
11041
- };
11042
-
11043
- /* harmony default export */ __webpack_exports__["a"] = (isArguments);
11044
-
11045
-
11046
- /***/ }),
11047
- /* 214 */
11048
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11049
-
11050
- "use strict";
11051
- /** Used as references for various `Number` constants. */
11052
- var MAX_SAFE_INTEGER = 9007199254740991;
11053
-
11054
- /**
11055
- * Checks if `value` is a valid array-like length.
11056
- *
11057
- * **Note:** This method is loosely based on
11058
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
11059
- *
11060
- * @static
11061
- * @memberOf _
11062
- * @since 4.0.0
11063
- * @category Lang
11064
- * @param {*} value The value to check.
11065
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
11066
- * @example
11067
- *
11068
- * _.isLength(3);
11069
- * // => true
11070
- *
11071
- * _.isLength(Number.MIN_VALUE);
11072
- * // => false
11073
- *
11074
- * _.isLength(Infinity);
11075
- * // => false
11076
- *
11077
- * _.isLength('3');
11078
- * // => false
11079
- */
11080
- function isLength(value) {
11081
- return typeof value == 'number' &&
11082
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
11083
- }
11084
-
11085
- /* harmony default export */ __webpack_exports__["a"] = (isLength);
11086
-
11087
-
11088
- /***/ }),
11089
- /* 215 */
11090
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11091
-
11092
- "use strict";
11093
- /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(33);
11094
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stubFalse_js__ = __webpack_require__(952);
11095
-
11096
-
11097
-
11098
- /** Detect free variable `exports`. */
11099
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
11100
-
11101
- /** Detect free variable `module`. */
11102
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
11103
-
11104
- /** Detect the popular CommonJS extension `module.exports`. */
11105
- var moduleExports = freeModule && freeModule.exports === freeExports;
11106
-
11107
- /** Built-in value references. */
11108
- var Buffer = moduleExports ? __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Buffer : undefined;
11109
-
11110
- /* Built-in method references for those with the same name as other `lodash` methods. */
11111
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
11112
-
11113
- /**
11114
- * Checks if `value` is a buffer.
11115
- *
11116
- * @static
11117
- * @memberOf _
11118
- * @since 4.3.0
11119
- * @category Lang
11120
- * @param {*} value The value to check.
11121
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
11122
- * @example
11123
- *
11124
- * _.isBuffer(new Buffer(2));
11125
- * // => true
11126
- *
11127
- * _.isBuffer(new Uint8Array(2));
11128
- * // => false
11129
- */
11130
- var isBuffer = nativeIsBuffer || __WEBPACK_IMPORTED_MODULE_1__stubFalse_js__["a" /* default */];
11131
-
11132
- /* harmony default export */ __webpack_exports__["a"] = (isBuffer);
11133
-
11134
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(211)(module)))
11135
-
11136
- /***/ }),
11137
- /* 216 */
11138
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11139
-
11140
- "use strict";
11141
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsTypedArray_js__ = __webpack_require__(954);
11142
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseUnary_js__ = __webpack_require__(955);
11143
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__ = __webpack_require__(956);
11144
-
11145
-
11146
-
11147
-
11148
- /* Node.js helper references. */
11149
- var nodeIsTypedArray = __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__["a" /* default */] && __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__["a" /* default */].isTypedArray;
11150
-
11151
- /**
11152
- * Checks if `value` is classified as a typed array.
11153
- *
11154
- * @static
11155
- * @memberOf _
11156
- * @since 3.0.0
11157
- * @category Lang
11158
- * @param {*} value The value to check.
11159
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
11160
- * @example
11161
- *
11162
- * _.isTypedArray(new Uint8Array);
11163
- * // => true
11164
- *
11165
- * _.isTypedArray([]);
11166
- * // => false
11167
- */
11168
- var isTypedArray = nodeIsTypedArray ? Object(__WEBPACK_IMPORTED_MODULE_1__baseUnary_js__["a" /* default */])(nodeIsTypedArray) : __WEBPACK_IMPORTED_MODULE_0__baseIsTypedArray_js__["a" /* default */];
11169
-
11170
- /* harmony default export */ __webpack_exports__["a"] = (isTypedArray);
11171
-
11172
-
11173
- /***/ }),
11174
- /* 217 */
11175
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11176
-
11177
- "use strict";
11178
- /** Used as references for various `Number` constants. */
11179
- var MAX_SAFE_INTEGER = 9007199254740991;
11180
-
11181
- /** Used to detect unsigned integer values. */
11182
- var reIsUint = /^(?:0|[1-9]\d*)$/;
11183
-
11184
- /**
11185
- * Checks if `value` is a valid array-like index.
11186
- *
11187
- * @private
11188
- * @param {*} value The value to check.
11189
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
11190
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
11191
- */
11192
- function isIndex(value, length) {
11193
- var type = typeof value;
11194
- length = length == null ? MAX_SAFE_INTEGER : length;
11195
-
11196
- return !!length &&
11197
- (type == 'number' ||
11198
- (type != 'symbol' && reIsUint.test(value))) &&
11199
- (value > -1 && value % 1 == 0 && value < length);
11200
- }
11201
-
11202
- /* harmony default export */ __webpack_exports__["a"] = (isIndex);
11203
-
11204
-
11205
- /***/ }),
11206
- /* 218 */
11207
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11208
-
11209
- "use strict";
11210
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__ = __webpack_require__(430);
11211
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseKeys_js__ = __webpack_require__(981);
11212
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__ = __webpack_require__(73);
11213
-
11214
-
11215
-
11216
-
11217
- /**
11218
- * Creates an array of the own enumerable property names of `object`.
11219
- *
11220
- * **Note:** Non-object values are coerced to objects. See the
11221
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
11222
- * for more details.
11223
- *
11224
- * @static
11225
- * @since 0.1.0
11226
- * @memberOf _
11227
- * @category Object
11228
- * @param {Object} object The object to query.
11229
- * @returns {Array} Returns the array of property names.
11230
- * @example
11231
- *
11232
- * function Foo() {
11233
- * this.a = 1;
11234
- * this.b = 2;
11235
- * }
11236
- *
11237
- * Foo.prototype.c = 3;
11238
- *
11239
- * _.keys(new Foo);
11240
- * // => ['a', 'b'] (iteration order is not guaranteed)
11241
- *
11242
- * _.keys('hi');
11243
- * // => ['0', '1']
11244
- */
11245
- function keys(object) {
11246
- return Object(__WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__["a" /* default */])(object) ? Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__["a" /* default */])(object) : Object(__WEBPACK_IMPORTED_MODULE_1__baseKeys_js__["a" /* default */])(object);
11247
- }
11248
-
11249
- /* harmony default export */ __webpack_exports__["a"] = (keys);
11250
-
11251
-
11252
- /***/ }),
11253
- /* 219 */
11254
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11255
-
11256
- "use strict";
11257
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArray_js__ = __webpack_require__(35);
11258
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isSymbol_js__ = __webpack_require__(133);
11259
-
11260
-
11261
-
11262
- /** Used to match property names within property paths. */
11263
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
11264
- reIsPlainProp = /^\w*$/;
11265
-
11266
- /**
11267
- * Checks if `value` is a property name and not a property path.
11268
- *
11269
- * @private
11270
- * @param {*} value The value to check.
11271
- * @param {Object} [object] The object to query keys on.
11272
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
11273
- */
11274
- function isKey(value, object) {
11275
- if (Object(__WEBPACK_IMPORTED_MODULE_0__isArray_js__["a" /* default */])(value)) {
11276
- return false;
11277
- }
11278
- var type = typeof value;
11279
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
11280
- value == null || Object(__WEBPACK_IMPORTED_MODULE_1__isSymbol_js__["a" /* default */])(value)) {
11281
- return true;
11282
- }
11283
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
11284
- (object != null && value in Object(object));
11285
- }
11286
-
11287
- /* harmony default export */ __webpack_exports__["a"] = (isKey);
11288
-
11289
-
11290
- /***/ }),
11291
- /* 220 */
11292
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11293
-
11294
- "use strict";
11295
- /* harmony export (immutable) */ __webpack_exports__["a"] = addMilliseconds;
11296
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(12);
11297
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(9);
11298
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(7);
11299
-
11300
-
11301
-
11302
- /**
11303
- * @name addMilliseconds
11304
- * @category Millisecond Helpers
11305
- * @summary Add the specified number of milliseconds to the given date.
11306
- *
11307
- * @description
11308
- * Add the specified number of milliseconds to the given date.
11309
- *
11310
- * ### v2.0.0 breaking changes:
11311
- *
11312
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
11313
- *
11314
- * @param {Date|Number} date - the date to be changed
11315
- * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
11316
- * @returns {Date} the new date with the milliseconds added
11317
- * @throws {TypeError} 2 arguments required
11318
- *
11319
- * @example
11320
- * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
11321
- * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
11322
- * //=> Thu Jul 10 2014 12:45:30.750
11323
- */
11324
-
11325
- function addMilliseconds(dirtyDate, dirtyAmount) {
11326
- Object(__WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */])(2, arguments);
11327
- var timestamp = Object(__WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["default"])(dirtyDate).getTime();
11328
- var amount = Object(__WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */])(dirtyAmount);
11329
- return new Date(timestamp + amount);
11330
- }
11331
-
11332
- /***/ }),
11333
- /* 221 */
11334
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11335
-
11336
- "use strict";
11337
- /* harmony export (immutable) */ __webpack_exports__["a"] = getUTCWeekYear;
11338
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__ = __webpack_require__(12);
11339
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(9);
11340
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__startOfUTCWeek_index_js__ = __webpack_require__(136);
11341
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__ = __webpack_require__(7);
11342
-
11343
-
11344
-
11345
- // This function will be a part of public API when UTC function will be implemented.
11346
- // See issue: https://github.com/date-fns/date-fns/issues/376
11347
-
11348
- function getUTCWeekYear(dirtyDate, dirtyOptions) {
11349
- Object(__WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__["a" /* default */])(1, arguments);
11350
- var date = Object(__WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["default"])(dirtyDate, dirtyOptions);
11351
- var year = date.getUTCFullYear();
11352
- var options = dirtyOptions || {};
11353
- var locale = options.locale;
11354
- var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
11355
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : Object(__WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */])(localeFirstWeekContainsDate);
11356
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : Object(__WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */])(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
11357
-
11358
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
11359
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
11360
- }
11361
-
11362
- var firstWeekOfNextYear = new Date(0);
11363
- firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
11364
- firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
11365
- var startOfNextYear = Object(__WEBPACK_IMPORTED_MODULE_2__startOfUTCWeek_index_js__["a" /* default */])(firstWeekOfNextYear, dirtyOptions);
11366
- var firstWeekOfThisYear = new Date(0);
11367
- firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
11368
- firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
11369
- var startOfThisYear = Object(__WEBPACK_IMPORTED_MODULE_2__startOfUTCWeek_index_js__["a" /* default */])(firstWeekOfThisYear, dirtyOptions);
11370
-
11371
- if (date.getTime() >= startOfNextYear.getTime()) {
11372
- return year + 1;
11373
- } else if (date.getTime() >= startOfThisYear.getTime()) {
11374
- return year;
11375
- } else {
11376
- return year - 1;
11377
- }
11378
- }
11379
-
11380
- /***/ }),
11381
- /* 222 */
11382
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11383
-
11384
- "use strict";
11385
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
11386
- /* harmony export (immutable) */ __webpack_exports__["default"] = addDays;
11387
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(12);
11388
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(9);
11389
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(7);
11390
-
11391
-
11392
-
11393
- /**
11394
- * @name addDays
11395
- * @category Day Helpers
11396
- * @summary Add the specified number of days to the given date.
11397
- *
11398
- * @description
11399
- * Add the specified number of days to the given date.
11400
- *
11401
- * ### v2.0.0 breaking changes:
11402
- *
11403
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
11404
- *
11405
- * @param {Date|Number} date - the date to be changed
11406
- * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
11407
- * @returns {Date} the new date with the days added
11408
- * @throws {TypeError} 2 arguments required
11409
- *
11410
- * @example
11411
- * // Add 10 days to 1 September 2014:
11412
- * var result = addDays(new Date(2014, 8, 1), 10)
11413
- * //=> Thu Sep 11 2014 00:00:00
11414
- */
11415
-
11416
- function addDays(dirtyDate, dirtyAmount) {
11417
- Object(__WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */])(2, arguments);
11418
- var date = Object(__WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["default"])(dirtyDate);
11419
- var amount = Object(__WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */])(dirtyAmount);
11420
-
11421
- if (isNaN(amount)) {
11422
- return new Date(NaN);
11423
- }
11424
-
11425
- if (!amount) {
11426
- // If 0 days, no-op to avoid changing times in the hour before end of DST
11427
- return date;
11428
- }
11429
-
11430
- date.setDate(date.getDate() + amount);
11431
- return date;
11432
- }
11433
-
11434
- /***/ }),
11435
- /* 223 */
11436
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11437
-
11438
- "use strict";
11439
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
11440
- /* harmony export (immutable) */ __webpack_exports__["default"] = addMonths;
11441
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(12);
11442
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(9);
11443
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(7);
11444
-
11445
-
11446
-
11447
- /**
11448
- * @name addMonths
11449
- * @category Month Helpers
11450
- * @summary Add the specified number of months to the given date.
11451
- *
11452
- * @description
11453
- * Add the specified number of months to the given date.
11454
- *
11455
- * ### v2.0.0 breaking changes:
11456
- *
11457
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
11458
- *
11459
- * @param {Date|Number} date - the date to be changed
11460
- * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
11461
- * @returns {Date} the new date with the months added
11462
- * @throws {TypeError} 2 arguments required
11463
- *
11464
- * @example
11465
- * // Add 5 months to 1 September 2014:
11466
- * var result = addMonths(new Date(2014, 8, 1), 5)
11467
- * //=> Sun Feb 01 2015 00:00:00
11468
- */
11469
-
11470
- function addMonths(dirtyDate, dirtyAmount) {
11471
- Object(__WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */])(2, arguments);
11472
- var date = Object(__WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["default"])(dirtyDate);
11473
- var amount = Object(__WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */])(dirtyAmount);
11474
-
11475
- if (isNaN(amount)) {
11476
- return new Date(NaN);
11477
- }
11478
-
11479
- if (!amount) {
11480
- // If 0 months, no-op to avoid changing times in the hour before end of DST
11481
- return date;
11482
- }
11483
-
11484
- var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for
11485
- // month, day, etc. For example, new Date(2020, 1, 0) returns 31 Dec 2019 and
11486
- // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we
11487
- // want except that dates will wrap around the end of a month, meaning that
11488
- // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So
11489
- // we'll default to the end of the desired month by adding 1 to the desired
11490
- // month and using a date of 0 to back up one day to the end of the desired
11491
- // month.
11492
-
11493
- var endOfDesiredMonth = new Date(date.getTime());
11494
- endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);
11495
- var daysInMonth = endOfDesiredMonth.getDate();
11496
-
11497
- if (dayOfMonth >= daysInMonth) {
11498
- // If we're already at the end of the month, then this is the correct date
11499
- // and we're done.
11500
- return endOfDesiredMonth;
11501
- } else {
11502
- // Otherwise, we now know that setting the original day-of-month value won't
11503
- // cause an overflow, so set the desired day-of-month. Note that we can't
11504
- // just set the date of `endOfDesiredMonth` because that object may have had
11505
- // its time changed in the unusual case where where a DST transition was on
11506
- // the last day of the month and its local time was in the hour skipped or
11507
- // repeated next to a DST transition. So we use `date` instead which is
11508
- // guaranteed to still have the original time.
11509
- date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
11510
- return date;
11511
- }
11512
- }
11513
-
11514
- /***/ }),
11515
- /* 224 */
11516
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11517
-
11518
- "use strict";
11519
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
11520
- /* harmony export (immutable) */ __webpack_exports__["default"] = startOfDay;
11521
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(9);
11522
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(7);
11523
-
11524
-
11525
- /**
11526
- * @name startOfDay
11527
- * @category Day Helpers
11528
- * @summary Return the start of a day for the given date.
11529
- *
11530
- * @description
11531
- * Return the start of a day for the given date.
11532
- * The result will be in the local timezone.
11533
- *
11534
- * ### v2.0.0 breaking changes:
11535
- *
11536
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
11537
- *
11538
- * @param {Date|Number} date - the original date
11539
- * @returns {Date} the start of a day
11540
- * @throws {TypeError} 1 argument required
11541
- *
11542
- * @example
11543
- * // The start of a day for 2 September 2014 11:55:00:
11544
- * var result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
11545
- * //=> Tue Sep 02 2014 00:00:00
11546
- */
11547
-
11548
- function startOfDay(dirtyDate) {
11549
- Object(__WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */])(1, arguments);
11550
- var date = Object(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["default"])(dirtyDate);
11551
- date.setHours(0, 0, 0, 0);
11552
- return date;
11553
- }
11554
-
11555
- /***/ }),
11556
- /* 225 */
11557
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11558
-
11559
- "use strict";
11560
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ManagerReferenceNodeContext; });
11561
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ManagerReferenceNodeSetterContext; });
11562
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return Manager; });
11563
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_assertThisInitialized__ = __webpack_require__(99);
11564
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_assertThisInitialized___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_assertThisInitialized__);
11565
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_inheritsLoose__ = __webpack_require__(100);
11566
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_inheritsLoose___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_inheritsLoose__);
11567
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_defineProperty__ = __webpack_require__(98);
11568
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_defineProperty__);
11569
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
11570
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
11571
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_create_react_context__ = __webpack_require__(1169);
11572
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_create_react_context___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_create_react_context__);
11573
-
11574
-
11575
-
11576
-
11577
-
11578
- var ManagerReferenceNodeContext = __WEBPACK_IMPORTED_MODULE_4_create_react_context___default()();
11579
- var ManagerReferenceNodeSetterContext = __WEBPACK_IMPORTED_MODULE_4_create_react_context___default()();
11580
-
11581
- var Manager =
11582
- /*#__PURE__*/
11583
- function (_React$Component) {
11584
- __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_inheritsLoose___default()(Manager, _React$Component);
11585
-
11586
- function Manager() {
11587
- var _this;
11588
-
11589
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11590
- args[_key] = arguments[_key];
11591
- }
11592
-
11593
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
11594
-
11595
- __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_defineProperty___default()(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_assertThisInitialized___default()(_this), "referenceNode", void 0);
11596
-
11597
- __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_defineProperty___default()(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_assertThisInitialized___default()(_this), "setReferenceNode", function (newReferenceNode) {
11598
- if (newReferenceNode && _this.referenceNode !== newReferenceNode) {
11599
- _this.referenceNode = newReferenceNode;
11600
-
11601
- _this.forceUpdate();
11602
- }
11603
- });
11604
-
11605
- return _this;
11606
- }
11607
-
11608
- var _proto = Manager.prototype;
11609
-
11610
- _proto.componentWillUnmount = function componentWillUnmount() {
11611
- this.referenceNode = null;
11612
- };
11613
-
11614
- _proto.render = function render() {
11615
- return __WEBPACK_IMPORTED_MODULE_3_react__["createElement"](ManagerReferenceNodeContext.Provider, {
11616
- value: this.referenceNode
11617
- }, __WEBPACK_IMPORTED_MODULE_3_react__["createElement"](ManagerReferenceNodeSetterContext.Provider, {
11618
- value: this.setReferenceNode
11619
- }, this.props.children));
11620
- };
11621
-
11622
- return Manager;
11623
- }(__WEBPACK_IMPORTED_MODULE_3_react__["Component"]);
11624
-
11625
-
11626
-
11627
- /***/ }),
11628
- /* 226 */
11629
- /***/ (function(module, exports, __webpack_require__) {
11630
-
11631
- "use strict";
11632
- /* WEBPACK VAR INJECTION */(function(process) {
11633
-
11634
- if (process.env.NODE_ENV === 'production') {
11635
- module.exports = __webpack_require__(474);
11636
- } else {
11637
- module.exports = __webpack_require__(475);
11638
- }
11639
-
11640
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
11641
-
11642
- /***/ }),
11643
- /* 227 */
11644
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11645
-
11646
- "use strict";
11647
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MemoryRouter; });
11648
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Prompt; });
11649
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return Redirect; });
11650
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return Route; });
11651
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return Router; });
11652
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return StaticRouter; });
11653
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return Switch; });
11654
- /* unused harmony export __HistoryContext */
11655
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return context; });
11656
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return generatePath; });
11657
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return matchPath; });
11658
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return useHistory; });
11659
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return useLocation; });
11660
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return useParams; });
11661
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return useRouteMatch; });
11662
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return withRouter; });
11663
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(37);
11664
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
11665
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
11666
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2);
11667
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
11668
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(228);
11669
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_tiny_warning__ = __webpack_require__(52);
11670
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_mini_create_react_context__ = __webpack_require__(486);
11671
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_tiny_invariant__ = __webpack_require__(140);
11672
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
11673
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_path_to_regexp__ = __webpack_require__(487);
11674
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_path_to_regexp__);
11675
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_is__ = __webpack_require__(19);
11676
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react_is__);
11677
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(47);
11678
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics__ = __webpack_require__(74);
11679
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics__);
11680
-
11681
-
11682
-
11683
-
11684
-
11685
-
11686
-
11687
-
11688
-
11689
-
11690
-
11691
-
11692
-
11693
- // TODO: Replace with React.createContext once we can assume React 16+
11694
-
11695
- var createNamedContext = function createNamedContext(name) {
11696
- var context = Object(__WEBPACK_IMPORTED_MODULE_5_mini_create_react_context__["a" /* default */])();
11697
- context.displayName = name;
11698
- return context;
11699
- };
11700
-
11701
- var historyContext =
11702
- /*#__PURE__*/
11703
- createNamedContext("Router-History");
11704
-
11705
- // TODO: Replace with React.createContext once we can assume React 16+
11706
-
11707
- var createNamedContext$1 = function createNamedContext(name) {
11708
- var context = Object(__WEBPACK_IMPORTED_MODULE_5_mini_create_react_context__["a" /* default */])();
11709
- context.displayName = name;
11710
- return context;
11711
- };
11712
-
11713
- var context =
11714
- /*#__PURE__*/
11715
- createNamedContext$1("Router");
11716
-
11717
- /**
11718
- * The public API for putting history on context.
11719
- */
11720
-
11721
- var Router =
11722
- /*#__PURE__*/
11723
- function (_React$Component) {
11724
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Router, _React$Component);
11725
-
11726
- Router.computeRootMatch = function computeRootMatch(pathname) {
11727
- return {
11728
- path: "/",
11729
- url: "/",
11730
- params: {},
11731
- isExact: pathname === "/"
11732
- };
11733
- };
11734
-
11735
- function Router(props) {
11736
- var _this;
11737
-
11738
- _this = _React$Component.call(this, props) || this;
11739
- _this.state = {
11740
- location: props.history.location
11741
- }; // This is a bit of a hack. We have to start listening for location
11742
- // changes here in the constructor in case there are any <Redirect>s
11743
- // on the initial render. If there are, they will replace/push when
11744
- // they mount and since cDM fires in children before parents, we may
11745
- // get a new location before the <Router> is mounted.
11746
-
11747
- _this._isMounted = false;
11748
- _this._pendingLocation = null;
11749
-
11750
- if (!props.staticContext) {
11751
- _this.unlisten = props.history.listen(function (location) {
11752
- if (_this._isMounted) {
11753
- _this.setState({
11754
- location: location
11755
- });
11756
- } else {
11757
- _this._pendingLocation = location;
11758
- }
11759
- });
11760
- }
11761
-
11762
- return _this;
11763
- }
11764
-
11765
- var _proto = Router.prototype;
11766
-
11767
- _proto.componentDidMount = function componentDidMount() {
11768
- this._isMounted = true;
11769
-
11770
- if (this._pendingLocation) {
11771
- this.setState({
11772
- location: this._pendingLocation
11773
- });
11774
- }
11775
- };
11776
-
11777
- _proto.componentWillUnmount = function componentWillUnmount() {
11778
- if (this.unlisten) this.unlisten();
11779
- };
11780
-
11781
- _proto.render = function render() {
11782
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Provider, {
11783
- value: {
11784
- history: this.props.history,
11785
- location: this.state.location,
11786
- match: Router.computeRootMatch(this.state.location.pathname),
11787
- staticContext: this.props.staticContext
11788
- }
11789
- }, __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(historyContext.Provider, {
11790
- children: this.props.children || null,
11791
- value: this.props.history
11792
- }));
11793
- };
11794
-
11795
- return Router;
11796
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11797
-
11798
- if (process.env.NODE_ENV !== "production") {
11799
- Router.propTypes = {
11800
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,
11801
- history: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object.isRequired,
11802
- staticContext: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object
11803
- };
11804
-
11805
- Router.prototype.componentDidUpdate = function (prevProps) {
11806
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(prevProps.history === this.props.history, "You cannot change <Router history>") : void 0;
11807
- };
11808
- }
11809
-
11810
- /**
11811
- * The public API for a <Router> that stores location in memory.
11812
- */
11813
-
11814
- var MemoryRouter =
11815
- /*#__PURE__*/
11816
- function (_React$Component) {
11817
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(MemoryRouter, _React$Component);
11818
-
11819
- function MemoryRouter() {
11820
- var _this;
11821
-
11822
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11823
- args[_key] = arguments[_key];
11824
- }
11825
-
11826
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
11827
- _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["d" /* createMemoryHistory */])(_this.props);
11828
- return _this;
11829
- }
11830
-
11831
- var _proto = MemoryRouter.prototype;
11832
-
11833
- _proto.render = function render() {
11834
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Router, {
11835
- history: this.history,
11836
- children: this.props.children
11837
- });
11838
- };
11839
-
11840
- return MemoryRouter;
11841
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11842
-
11843
- if (process.env.NODE_ENV !== "production") {
11844
- MemoryRouter.propTypes = {
11845
- initialEntries: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array,
11846
- initialIndex: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
11847
- getUserConfirmation: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
11848
- keyLength: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
11849
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node
11850
- };
11851
-
11852
- MemoryRouter.prototype.componentDidMount = function () {
11853
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { MemoryRouter as Router }`.") : void 0;
11854
- };
11855
- }
11856
-
11857
- var Lifecycle =
11858
- /*#__PURE__*/
11859
- function (_React$Component) {
11860
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Lifecycle, _React$Component);
11861
-
11862
- function Lifecycle() {
11863
- return _React$Component.apply(this, arguments) || this;
11864
- }
11865
-
11866
- var _proto = Lifecycle.prototype;
11867
-
11868
- _proto.componentDidMount = function componentDidMount() {
11869
- if (this.props.onMount) this.props.onMount.call(this, this);
11870
- };
11871
-
11872
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
11873
- if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);
11874
- };
11875
-
11876
- _proto.componentWillUnmount = function componentWillUnmount() {
11877
- if (this.props.onUnmount) this.props.onUnmount.call(this, this);
11878
- };
11879
-
11880
- _proto.render = function render() {
11881
- return null;
11882
- };
11883
-
11884
- return Lifecycle;
11885
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11886
-
11887
- /**
11888
- * The public API for prompting the user before navigating away from a screen.
11889
- */
11890
-
11891
- function Prompt(_ref) {
11892
- var message = _ref.message,
11893
- _ref$when = _ref.when,
11894
- when = _ref$when === void 0 ? true : _ref$when;
11895
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
11896
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Prompt> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11897
- if (!when || context.staticContext) return null;
11898
- var method = context.history.block;
11899
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Lifecycle, {
11900
- onMount: function onMount(self) {
11901
- self.release = method(message);
11902
- },
11903
- onUpdate: function onUpdate(self, prevProps) {
11904
- if (prevProps.message !== message) {
11905
- self.release();
11906
- self.release = method(message);
11907
- }
11908
- },
11909
- onUnmount: function onUnmount(self) {
11910
- self.release();
11911
- },
11912
- message: message
11913
- });
11914
- });
11915
- }
11916
-
11917
- if (process.env.NODE_ENV !== "production") {
11918
- var messageType = __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string]);
11919
- Prompt.propTypes = {
11920
- when: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
11921
- message: messageType.isRequired
11922
- };
11923
- }
11924
-
11925
- var cache = {};
11926
- var cacheLimit = 10000;
11927
- var cacheCount = 0;
11928
-
11929
- function compilePath(path) {
11930
- if (cache[path]) return cache[path];
11931
- var generator = __WEBPACK_IMPORTED_MODULE_8_path_to_regexp___default.a.compile(path);
11932
-
11933
- if (cacheCount < cacheLimit) {
11934
- cache[path] = generator;
11935
- cacheCount++;
11936
- }
11937
-
11938
- return generator;
11939
- }
11940
- /**
11941
- * Public API for generating a URL pathname from a path and parameters.
11942
- */
11943
-
11944
-
11945
- function generatePath(path, params) {
11946
- if (path === void 0) {
11947
- path = "/";
11948
- }
11949
-
11950
- if (params === void 0) {
11951
- params = {};
11952
- }
11953
-
11954
- return path === "/" ? path : compilePath(path)(params, {
11955
- pretty: true
11956
- });
11957
- }
11958
-
11959
- /**
11960
- * The public API for navigating programmatically with a component.
11961
- */
11962
-
11963
- function Redirect(_ref) {
11964
- var computedMatch = _ref.computedMatch,
11965
- to = _ref.to,
11966
- _ref$push = _ref.push,
11967
- push = _ref$push === void 0 ? false : _ref$push;
11968
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
11969
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Redirect> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11970
- var history = context.history,
11971
- staticContext = context.staticContext;
11972
- var method = push ? history.push : history.replace;
11973
- var location = Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, to, {
11974
- pathname: generatePath(to.pathname, computedMatch.params)
11975
- }) : to); // When rendering in a static context,
11976
- // set the new location immediately.
11977
-
11978
- if (staticContext) {
11979
- method(location);
11980
- return null;
11981
- }
11982
-
11983
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Lifecycle, {
11984
- onMount: function onMount() {
11985
- method(location);
11986
- },
11987
- onUpdate: function onUpdate(self, prevProps) {
11988
- var prevLocation = Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(prevProps.to);
11989
-
11990
- if (!Object(__WEBPACK_IMPORTED_MODULE_3_history__["f" /* locationsAreEqual */])(prevLocation, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, location, {
11991
- key: prevLocation.key
11992
- }))) {
11993
- method(location);
11994
- }
11995
- },
11996
- to: to
11997
- });
11998
- });
11999
- }
12000
-
12001
- if (process.env.NODE_ENV !== "production") {
12002
- Redirect.propTypes = {
12003
- push: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
12004
- from: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
12005
- to: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object]).isRequired
12006
- };
12007
- }
12008
-
12009
- var cache$1 = {};
12010
- var cacheLimit$1 = 10000;
12011
- var cacheCount$1 = 0;
12012
-
12013
- function compilePath$1(path, options) {
12014
- var cacheKey = "" + options.end + options.strict + options.sensitive;
12015
- var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {});
12016
- if (pathCache[path]) return pathCache[path];
12017
- var keys = [];
12018
- var regexp = __WEBPACK_IMPORTED_MODULE_8_path_to_regexp___default()(path, keys, options);
12019
- var result = {
12020
- regexp: regexp,
12021
- keys: keys
12022
- };
12023
-
12024
- if (cacheCount$1 < cacheLimit$1) {
12025
- pathCache[path] = result;
12026
- cacheCount$1++;
12027
- }
12028
-
12029
- return result;
12030
- }
12031
- /**
12032
- * Public API for matching a URL pathname to a path.
12033
- */
12034
-
12035
-
12036
- function matchPath(pathname, options) {
12037
- if (options === void 0) {
12038
- options = {};
12039
- }
12040
-
12041
- if (typeof options === "string" || Array.isArray(options)) {
12042
- options = {
12043
- path: options
12044
- };
12045
- }
12046
-
12047
- var _options = options,
12048
- path = _options.path,
12049
- _options$exact = _options.exact,
12050
- exact = _options$exact === void 0 ? false : _options$exact,
12051
- _options$strict = _options.strict,
12052
- strict = _options$strict === void 0 ? false : _options$strict,
12053
- _options$sensitive = _options.sensitive,
12054
- sensitive = _options$sensitive === void 0 ? false : _options$sensitive;
12055
- var paths = [].concat(path);
12056
- return paths.reduce(function (matched, path) {
12057
- if (!path && path !== "") return null;
12058
- if (matched) return matched;
12059
-
12060
- var _compilePath = compilePath$1(path, {
12061
- end: exact,
12062
- strict: strict,
12063
- sensitive: sensitive
12064
- }),
12065
- regexp = _compilePath.regexp,
12066
- keys = _compilePath.keys;
12067
-
12068
- var match = regexp.exec(pathname);
12069
- if (!match) return null;
12070
- var url = match[0],
12071
- values = match.slice(1);
12072
- var isExact = pathname === url;
12073
- if (exact && !isExact) return null;
12074
- return {
12075
- path: path,
12076
- // the path used to match
12077
- url: path === "/" && url === "" ? "/" : url,
12078
- // the matched portion of the URL
12079
- isExact: isExact,
12080
- // whether or not we matched exactly
12081
- params: keys.reduce(function (memo, key, index) {
12082
- memo[key.name] = values[index];
12083
- return memo;
12084
- }, {})
12085
- };
12086
- }, null);
12087
- }
12088
-
12089
- function isEmptyChildren(children) {
12090
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.Children.count(children) === 0;
12091
- }
12092
-
12093
- function evalChildrenDev(children, props, path) {
12094
- var value = children(props);
12095
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(value !== undefined, "You returned `undefined` from the `children` function of " + ("<Route" + (path ? " path=\"" + path + "\"" : "") + ">, but you ") + "should have returned a React element or `null`") : void 0;
12096
- return value || null;
12097
- }
12098
- /**
12099
- * The public API for matching a single path and rendering.
12100
- */
12101
-
12102
-
12103
- var Route =
12104
- /*#__PURE__*/
12105
- function (_React$Component) {
12106
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Route, _React$Component);
12107
-
12108
- function Route() {
12109
- return _React$Component.apply(this, arguments) || this;
12110
- }
12111
-
12112
- var _proto = Route.prototype;
12113
-
12114
- _proto.render = function render() {
12115
- var _this = this;
12116
-
12117
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context$1) {
12118
- !context$1 ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Route> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
12119
- var location = _this.props.location || context$1.location;
12120
- var match = _this.props.computedMatch ? _this.props.computedMatch // <Switch> already computed the match for us
12121
- : _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;
12122
-
12123
- var props = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, context$1, {
12124
- location: location,
12125
- match: match
12126
- });
12127
-
12128
- var _this$props = _this.props,
12129
- children = _this$props.children,
12130
- component = _this$props.component,
12131
- render = _this$props.render; // Preact uses an empty array as children by
12132
- // default, so use null if that's the case.
12133
-
12134
- if (Array.isArray(children) && children.length === 0) {
12135
- children = null;
12136
- }
12137
-
12138
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Provider, {
12139
- value: props
12140
- }, props.match ? children ? typeof children === "function" ? process.env.NODE_ENV !== "production" ? evalChildrenDev(children, props, _this.props.path) : children(props) : children : component ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(component, props) : render ? render(props) : null : typeof children === "function" ? process.env.NODE_ENV !== "production" ? evalChildrenDev(children, props, _this.props.path) : children(props) : null);
12141
- });
12142
- };
12143
-
12144
- return Route;
12145
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
12146
-
12147
- if (process.env.NODE_ENV !== "production") {
12148
- Route.propTypes = {
12149
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node]),
12150
- component: function component(props, propName) {
12151
- if (props[propName] && !Object(__WEBPACK_IMPORTED_MODULE_9_react_is__["isValidElementType"])(props[propName])) {
12152
- return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component");
12153
- }
12154
- },
12155
- exact: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
12156
- location: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object,
12157
- path: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string)]),
12158
- render: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
12159
- sensitive: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
12160
- strict: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool
12161
- };
12162
-
12163
- Route.prototype.componentDidMount = function () {
12164
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.component), "You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored") : void 0;
12165
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.render), "You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored") : void 0;
12166
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored") : void 0;
12167
- };
12168
-
12169
- Route.prototype.componentDidUpdate = function (prevProps) {
12170
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.location && !prevProps.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.') : void 0;
12171
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(!this.props.location && prevProps.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.') : void 0;
12172
- };
12173
- }
12174
-
12175
- function addLeadingSlash(path) {
12176
- return path.charAt(0) === "/" ? path : "/" + path;
12177
- }
12178
-
12179
- function addBasename(basename, location) {
12180
- if (!basename) return location;
12181
- return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, location, {
12182
- pathname: addLeadingSlash(basename) + location.pathname
12183
- });
12184
- }
12185
-
12186
- function stripBasename(basename, location) {
12187
- if (!basename) return location;
12188
- var base = addLeadingSlash(basename);
12189
- if (location.pathname.indexOf(base) !== 0) return location;
12190
- return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, location, {
12191
- pathname: location.pathname.substr(base.length)
12192
- });
12193
- }
12194
-
12195
- function createURL(location) {
12196
- return typeof location === "string" ? location : Object(__WEBPACK_IMPORTED_MODULE_3_history__["e" /* createPath */])(location);
12197
- }
12198
-
12199
- function staticHandler(methodName) {
12200
- return function () {
12201
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You cannot %s with <StaticRouter>", methodName) : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) ;
12202
- };
12203
- }
12204
-
12205
- function noop() {}
12206
- /**
12207
- * The public top-level API for a "static" <Router>, so-called because it
12208
- * can't actually change the current location. Instead, it just records
12209
- * location changes in a context object. Useful mainly in testing and
12210
- * server-rendering scenarios.
12211
- */
12212
-
12213
-
12214
- var StaticRouter =
12215
- /*#__PURE__*/
12216
- function (_React$Component) {
12217
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(StaticRouter, _React$Component);
12218
-
12219
- function StaticRouter() {
12220
- var _this;
12221
-
12222
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12223
- args[_key] = arguments[_key];
12224
- }
12225
-
12226
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
12227
-
12228
- _this.handlePush = function (location) {
12229
- return _this.navigateTo(location, "PUSH");
12230
- };
12231
-
12232
- _this.handleReplace = function (location) {
12233
- return _this.navigateTo(location, "REPLACE");
12234
- };
12235
-
12236
- _this.handleListen = function () {
12237
- return noop;
12238
- };
12239
-
12240
- _this.handleBlock = function () {
12241
- return noop;
12242
- };
12243
-
12244
- return _this;
12245
- }
12246
-
12247
- var _proto = StaticRouter.prototype;
12248
-
12249
- _proto.navigateTo = function navigateTo(location, action) {
12250
- var _this$props = this.props,
12251
- _this$props$basename = _this$props.basename,
12252
- basename = _this$props$basename === void 0 ? "" : _this$props$basename,
12253
- _this$props$context = _this$props.context,
12254
- context = _this$props$context === void 0 ? {} : _this$props$context;
12255
- context.action = action;
12256
- context.location = addBasename(basename, Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(location));
12257
- context.url = createURL(context.location);
12258
- };
12259
-
12260
- _proto.render = function render() {
12261
- var _this$props2 = this.props,
12262
- _this$props2$basename = _this$props2.basename,
12263
- basename = _this$props2$basename === void 0 ? "" : _this$props2$basename,
12264
- _this$props2$context = _this$props2.context,
12265
- context = _this$props2$context === void 0 ? {} : _this$props2$context,
12266
- _this$props2$location = _this$props2.location,
12267
- location = _this$props2$location === void 0 ? "/" : _this$props2$location,
12268
- rest = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props2, ["basename", "context", "location"]);
12269
-
12270
- var history = {
12271
- createHref: function createHref(path) {
12272
- return addLeadingSlash(basename + createURL(path));
12273
- },
12274
- action: "POP",
12275
- location: stripBasename(basename, Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(location)),
12276
- push: this.handlePush,
12277
- replace: this.handleReplace,
12278
- go: staticHandler("go"),
12279
- goBack: staticHandler("goBack"),
12280
- goForward: staticHandler("goForward"),
12281
- listen: this.handleListen,
12282
- block: this.handleBlock
12283
- };
12284
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Router, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
12285
- history: history,
12286
- staticContext: context
12287
- }));
12288
- };
12289
-
12290
- return StaticRouter;
12291
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
12292
-
12293
- if (process.env.NODE_ENV !== "production") {
12294
- StaticRouter.propTypes = {
12295
- basename: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
12296
- context: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object,
12297
- location: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object])
12298
- };
12299
-
12300
- StaticRouter.prototype.componentDidMount = function () {
12301
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!this.props.history, "<StaticRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { StaticRouter as Router }`.") : void 0;
12302
- };
12303
- }
12304
-
12305
- /**
12306
- * The public API for rendering the first <Route> that matches.
12307
- */
12308
-
12309
- var Switch =
12310
- /*#__PURE__*/
12311
- function (_React$Component) {
12312
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Switch, _React$Component);
12313
-
12314
- function Switch() {
12315
- return _React$Component.apply(this, arguments) || this;
12316
- }
12317
-
12318
- var _proto = Switch.prototype;
12319
-
12320
- _proto.render = function render() {
12321
- var _this = this;
12322
-
12323
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
12324
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Switch> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
12325
- var location = _this.props.location || context.location;
12326
- var element, match; // We use React.Children.forEach instead of React.Children.toArray().find()
12327
- // here because toArray adds keys to all child elements and we do not want
12328
- // to trigger an unmount/remount for two <Route>s that render the same
12329
- // component at different URLs.
12330
-
12331
- __WEBPACK_IMPORTED_MODULE_1_react___default.a.Children.forEach(_this.props.children, function (child) {
12332
- if (match == null && __WEBPACK_IMPORTED_MODULE_1_react___default.a.isValidElement(child)) {
12333
- element = child;
12334
- var path = child.props.path || child.props.from;
12335
- match = path ? matchPath(location.pathname, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, child.props, {
12336
- path: path
12337
- })) : context.match;
12338
- }
12339
- });
12340
- return match ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(element, {
12341
- location: location,
12342
- computedMatch: match
12343
- }) : null;
12344
- });
12345
- };
12346
-
12347
- return Switch;
12348
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
12349
-
12350
- if (process.env.NODE_ENV !== "production") {
12351
- Switch.propTypes = {
12352
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,
12353
- location: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object
12354
- };
12355
-
12356
- Switch.prototype.componentDidUpdate = function (prevProps) {
12357
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.location && !prevProps.location), '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.') : void 0;
12358
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(!this.props.location && prevProps.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.') : void 0;
12359
- };
12360
- }
12361
-
12362
- /**
12363
- * A public higher-order component to access the imperative API
12364
- */
12365
-
12366
- function withRouter(Component) {
12367
- var displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
12368
-
12369
- var C = function C(props) {
12370
- var wrappedComponentRef = props.wrappedComponentRef,
12371
- remainingProps = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(props, ["wrappedComponentRef"]);
12372
-
12373
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
12374
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <" + displayName + " /> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
12375
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Component, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, remainingProps, context, {
12376
- ref: wrappedComponentRef
12377
- }));
12378
- });
12379
- };
12380
-
12381
- C.displayName = displayName;
12382
- C.WrappedComponent = Component;
12383
-
12384
- if (process.env.NODE_ENV !== "production") {
12385
- C.propTypes = {
12386
- wrappedComponentRef: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object])
12387
- };
12388
- }
12389
-
12390
- return __WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics___default()(C, Component);
12391
- }
12392
-
12393
- var useContext = __WEBPACK_IMPORTED_MODULE_1_react___default.a.useContext;
12394
- function useHistory() {
12395
- if (process.env.NODE_ENV !== "production") {
12396
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useHistory()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
12397
- }
12398
-
12399
- return useContext(historyContext);
12400
- }
12401
- function useLocation() {
12402
- if (process.env.NODE_ENV !== "production") {
12403
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useLocation()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
12404
- }
12405
-
12406
- return useContext(context).location;
12407
- }
12408
- function useParams() {
12409
- if (process.env.NODE_ENV !== "production") {
12410
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useParams()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
12411
- }
12412
-
12413
- var match = useContext(context).match;
12414
- return match ? match.params : {};
12415
- }
12416
- function useRouteMatch(path) {
12417
- if (process.env.NODE_ENV !== "production") {
12418
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useRouteMatch()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
12419
- }
12420
-
12421
- var location = useLocation();
12422
- var match = useContext(context).match;
12423
- return path ? matchPath(location.pathname, path) : match;
12424
- }
12425
-
12426
- if (process.env.NODE_ENV !== "production") {
12427
- if (typeof window !== "undefined") {
12428
- var global = window;
12429
- var key = "__react_router_build__";
12430
- var buildNames = {
12431
- cjs: "CommonJS",
12432
- esm: "ES modules",
12433
- umd: "UMD"
12434
- };
12435
-
12436
- if (global[key] && global[key] !== "esm") {
12437
- var initialBuildName = buildNames[global[key]];
12438
- var secondaryBuildName = buildNames["esm"]; // TODO: Add link to article that explains in detail how to avoid
12439
- // loading 2 different builds.
12440
-
12441
- throw new Error("You are loading the " + secondaryBuildName + " build of React Router " + ("on a page that is already running the " + initialBuildName + " ") + "build, so things won't work right.");
12442
- }
12443
-
12444
- global[key] = "esm";
12445
- }
12446
- }
12447
-
12448
-
12449
- //# sourceMappingURL=react-router.js.map
12450
-
12451
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
12452
-
12453
- /***/ }),
12454
- /* 228 */
12455
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
12456
-
12457
- "use strict";
12458
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createBrowserHistory; });
12459
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createHashHistory; });
12460
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createMemoryHistory; });
12461
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createLocation; });
12462
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return locationsAreEqual; });
12463
- /* unused harmony export parsePath */
12464
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return createPath; });
12465
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
12466
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_resolve_pathname__ = __webpack_require__(484);
12467
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_value_equal__ = __webpack_require__(485);
12468
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_tiny_warning__ = __webpack_require__(52);
12469
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_tiny_invariant__ = __webpack_require__(140);
12470
-
12471
-
12472
-
12473
-
12474
-
12475
-
12476
- function addLeadingSlash(path) {
12477
- return path.charAt(0) === '/' ? path : '/' + path;
12478
- }
12479
- function stripLeadingSlash(path) {
12480
- return path.charAt(0) === '/' ? path.substr(1) : path;
12481
- }
12482
- function hasBasename(path, prefix) {
12483
- return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
12484
- }
12485
- function stripBasename(path, prefix) {
12486
- return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
12487
- }
12488
- function stripTrailingSlash(path) {
12489
- return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
12490
- }
12491
- function parsePath(path) {
12492
- var pathname = path || '/';
12493
- var search = '';
12494
- var hash = '';
12495
- var hashIndex = pathname.indexOf('#');
12496
-
12497
- if (hashIndex !== -1) {
12498
- hash = pathname.substr(hashIndex);
12499
- pathname = pathname.substr(0, hashIndex);
12500
- }
12501
-
12502
- var searchIndex = pathname.indexOf('?');
12503
-
12504
- if (searchIndex !== -1) {
12505
- search = pathname.substr(searchIndex);
12506
- pathname = pathname.substr(0, searchIndex);
12507
- }
12508
-
12509
- return {
12510
- pathname: pathname,
12511
- search: search === '?' ? '' : search,
12512
- hash: hash === '#' ? '' : hash
12513
- };
12514
- }
12515
- function createPath(location) {
12516
- var pathname = location.pathname,
12517
- search = location.search,
12518
- hash = location.hash;
12519
- var path = pathname || '/';
12520
- if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
12521
- if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
12522
- return path;
12523
- }
12524
-
12525
- function createLocation(path, state, key, currentLocation) {
12526
- var location;
12527
-
12528
- if (typeof path === 'string') {
12529
- // Two-arg form: push(path, state)
12530
- location = parsePath(path);
12531
- location.state = state;
12532
- } else {
12533
- // One-arg form: push(location)
12534
- location = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, path);
12535
- if (location.pathname === undefined) location.pathname = '';
12536
-
12537
- if (location.search) {
12538
- if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
12539
- } else {
12540
- location.search = '';
12541
- }
12542
-
12543
- if (location.hash) {
12544
- if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
12545
- } else {
12546
- location.hash = '';
12547
- }
12548
-
12549
- if (state !== undefined && location.state === undefined) location.state = state;
12550
- }
12551
-
12552
- try {
12553
- location.pathname = decodeURI(location.pathname);
12554
- } catch (e) {
12555
- if (e instanceof URIError) {
12556
- throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
12557
- } else {
12558
- throw e;
12559
- }
12560
- }
12561
-
12562
- if (key) location.key = key;
12563
-
12564
- if (currentLocation) {
12565
- // Resolve incomplete/relative pathname relative to current location.
12566
- if (!location.pathname) {
12567
- location.pathname = currentLocation.pathname;
12568
- } else if (location.pathname.charAt(0) !== '/') {
12569
- location.pathname = Object(__WEBPACK_IMPORTED_MODULE_1_resolve_pathname__["a" /* default */])(location.pathname, currentLocation.pathname);
12570
- }
12571
- } else {
12572
- // When there is no prior location and pathname is empty, set it to /
12573
- if (!location.pathname) {
12574
- location.pathname = '/';
12575
- }
12576
- }
12577
-
12578
- return location;
12579
- }
12580
- function locationsAreEqual(a, b) {
12581
- return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && Object(__WEBPACK_IMPORTED_MODULE_2_value_equal__["a" /* default */])(a.state, b.state);
12582
- }
12583
-
12584
- function createTransitionManager() {
12585
- var prompt = null;
12586
-
12587
- function setPrompt(nextPrompt) {
12588
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(prompt == null, 'A history supports only one prompt at a time') : void 0;
12589
- prompt = nextPrompt;
12590
- return function () {
12591
- if (prompt === nextPrompt) prompt = null;
12592
- };
12593
- }
12594
-
12595
- function confirmTransitionTo(location, action, getUserConfirmation, callback) {
12596
- // TODO: If another transition starts while we're still confirming
12597
- // the previous one, we may end up in a weird state. Figure out the
12598
- // best way to handle this.
12599
- if (prompt != null) {
12600
- var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
12601
-
12602
- if (typeof result === 'string') {
12603
- if (typeof getUserConfirmation === 'function') {
12604
- getUserConfirmation(result, callback);
12605
- } else {
12606
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : void 0;
12607
- callback(true);
12608
- }
12609
- } else {
12610
- // Return false from a transition hook to cancel the transition.
12611
- callback(result !== false);
12612
- }
12613
- } else {
12614
- callback(true);
12615
- }
12616
- }
12617
-
12618
- var listeners = [];
12619
-
12620
- function appendListener(fn) {
12621
- var isActive = true;
12622
-
12623
- function listener() {
12624
- if (isActive) fn.apply(void 0, arguments);
12625
- }
12626
-
12627
- listeners.push(listener);
12628
- return function () {
12629
- isActive = false;
12630
- listeners = listeners.filter(function (item) {
12631
- return item !== listener;
12632
- });
12633
- };
12634
- }
12635
-
12636
- function notifyListeners() {
12637
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12638
- args[_key] = arguments[_key];
12639
- }
12640
-
12641
- listeners.forEach(function (listener) {
12642
- return listener.apply(void 0, args);
12643
- });
12644
- }
12645
-
12646
- return {
12647
- setPrompt: setPrompt,
12648
- confirmTransitionTo: confirmTransitionTo,
12649
- appendListener: appendListener,
12650
- notifyListeners: notifyListeners
12651
- };
12652
- }
12653
-
12654
- var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
12655
- function getConfirmation(message, callback) {
12656
- callback(window.confirm(message)); // eslint-disable-line no-alert
12657
- }
12658
- /**
12659
- * Returns true if the HTML5 history API is supported. Taken from Modernizr.
12660
- *
12661
- * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
12662
- * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
12663
- * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
12664
- */
12665
-
12666
- function supportsHistory() {
12667
- var ua = window.navigator.userAgent;
12668
- if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
12669
- return window.history && 'pushState' in window.history;
12670
- }
12671
- /**
12672
- * Returns true if browser fires popstate on hash change.
12673
- * IE10 and IE11 do not.
12674
- */
12675
-
12676
- function supportsPopStateOnHashChange() {
12677
- return window.navigator.userAgent.indexOf('Trident') === -1;
12678
- }
12679
- /**
12680
- * Returns false if using go(n) with hash history causes a full page reload.
12681
- */
12682
-
12683
- function supportsGoWithoutReloadUsingHash() {
12684
- return window.navigator.userAgent.indexOf('Firefox') === -1;
12685
- }
12686
- /**
12687
- * Returns true if a given popstate event is an extraneous WebKit event.
12688
- * Accounts for the fact that Chrome on iOS fires real popstate events
12689
- * containing undefined state when pressing the back button.
12690
- */
12691
-
12692
- function isExtraneousPopstateEvent(event) {
12693
- return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
12694
- }
12695
-
12696
- var PopStateEvent = 'popstate';
12697
- var HashChangeEvent = 'hashchange';
12698
-
12699
- function getHistoryState() {
12700
- try {
12701
- return window.history.state || {};
12702
- } catch (e) {
12703
- // IE 11 sometimes throws when accessing window.history.state
12704
- // See https://github.com/ReactTraining/history/pull/289
12705
- return {};
12706
- }
12707
- }
12708
- /**
12709
- * Creates a history object that uses the HTML5 history API including
12710
- * pushState, replaceState, and the popstate event.
12711
- */
12712
-
12713
-
12714
- function createBrowserHistory(props) {
12715
- if (props === void 0) {
12716
- props = {};
12717
- }
12718
-
12719
- !canUseDOM ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false, 'Browser history needs a DOM') : Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false) : void 0;
12720
- var globalHistory = window.history;
12721
- var canUseHistory = supportsHistory();
12722
- var needsHashChangeListener = !supportsPopStateOnHashChange();
12723
- var _props = props,
12724
- _props$forceRefresh = _props.forceRefresh,
12725
- forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
12726
- _props$getUserConfirm = _props.getUserConfirmation,
12727
- getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
12728
- _props$keyLength = _props.keyLength,
12729
- keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
12730
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
12731
-
12732
- function getDOMLocation(historyState) {
12733
- var _ref = historyState || {},
12734
- key = _ref.key,
12735
- state = _ref.state;
12736
-
12737
- var _window$location = window.location,
12738
- pathname = _window$location.pathname,
12739
- search = _window$location.search,
12740
- hash = _window$location.hash;
12741
- var path = pathname + search + hash;
12742
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
12743
- if (basename) path = stripBasename(path, basename);
12744
- return createLocation(path, state, key);
12745
- }
12746
-
12747
- function createKey() {
12748
- return Math.random().toString(36).substr(2, keyLength);
12749
- }
12750
-
12751
- var transitionManager = createTransitionManager();
12752
-
12753
- function setState(nextState) {
12754
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
12755
-
12756
- history.length = globalHistory.length;
12757
- transitionManager.notifyListeners(history.location, history.action);
12758
- }
12759
-
12760
- function handlePopState(event) {
12761
- // Ignore extraneous popstate events in WebKit.
12762
- if (isExtraneousPopstateEvent(event)) return;
12763
- handlePop(getDOMLocation(event.state));
12764
- }
12765
-
12766
- function handleHashChange() {
12767
- handlePop(getDOMLocation(getHistoryState()));
12768
- }
12769
-
12770
- var forceNextPop = false;
12771
-
12772
- function handlePop(location) {
12773
- if (forceNextPop) {
12774
- forceNextPop = false;
12775
- setState();
12776
- } else {
12777
- var action = 'POP';
12778
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12779
- if (ok) {
12780
- setState({
12781
- action: action,
12782
- location: location
12783
- });
12784
- } else {
12785
- revertPop(location);
12786
- }
12787
- });
12788
- }
12789
- }
12790
-
12791
- function revertPop(fromLocation) {
12792
- var toLocation = history.location; // TODO: We could probably make this more reliable by
12793
- // keeping a list of keys we've seen in sessionStorage.
12794
- // Instead, we just default to 0 for keys we don't know.
12795
-
12796
- var toIndex = allKeys.indexOf(toLocation.key);
12797
- if (toIndex === -1) toIndex = 0;
12798
- var fromIndex = allKeys.indexOf(fromLocation.key);
12799
- if (fromIndex === -1) fromIndex = 0;
12800
- var delta = toIndex - fromIndex;
12801
-
12802
- if (delta) {
12803
- forceNextPop = true;
12804
- go(delta);
12805
- }
12806
- }
12807
-
12808
- var initialLocation = getDOMLocation(getHistoryState());
12809
- var allKeys = [initialLocation.key]; // Public interface
12810
-
12811
- function createHref(location) {
12812
- return basename + createPath(location);
12813
- }
12814
-
12815
- function push(path, state) {
12816
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
12817
- var action = 'PUSH';
12818
- var location = createLocation(path, state, createKey(), history.location);
12819
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12820
- if (!ok) return;
12821
- var href = createHref(location);
12822
- var key = location.key,
12823
- state = location.state;
12824
-
12825
- if (canUseHistory) {
12826
- globalHistory.pushState({
12827
- key: key,
12828
- state: state
12829
- }, null, href);
12830
-
12831
- if (forceRefresh) {
12832
- window.location.href = href;
12833
- } else {
12834
- var prevIndex = allKeys.indexOf(history.location.key);
12835
- var nextKeys = allKeys.slice(0, prevIndex + 1);
12836
- nextKeys.push(location.key);
12837
- allKeys = nextKeys;
12838
- setState({
12839
- action: action,
12840
- location: location
12841
- });
12842
- }
12843
- } else {
12844
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : void 0;
12845
- window.location.href = href;
12846
- }
12847
- });
12848
- }
12849
-
12850
- function replace(path, state) {
12851
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
12852
- var action = 'REPLACE';
12853
- var location = createLocation(path, state, createKey(), history.location);
12854
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12855
- if (!ok) return;
12856
- var href = createHref(location);
12857
- var key = location.key,
12858
- state = location.state;
12859
-
12860
- if (canUseHistory) {
12861
- globalHistory.replaceState({
12862
- key: key,
12863
- state: state
12864
- }, null, href);
12865
-
12866
- if (forceRefresh) {
12867
- window.location.replace(href);
12868
- } else {
12869
- var prevIndex = allKeys.indexOf(history.location.key);
12870
- if (prevIndex !== -1) allKeys[prevIndex] = location.key;
12871
- setState({
12872
- action: action,
12873
- location: location
12874
- });
12875
- }
12876
- } else {
12877
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : void 0;
12878
- window.location.replace(href);
12879
- }
12880
- });
12881
- }
12882
-
12883
- function go(n) {
12884
- globalHistory.go(n);
12885
- }
12886
-
12887
- function goBack() {
12888
- go(-1);
12889
- }
12890
-
12891
- function goForward() {
12892
- go(1);
12893
- }
12894
-
12895
- var listenerCount = 0;
12896
-
12897
- function checkDOMListeners(delta) {
12898
- listenerCount += delta;
12899
-
12900
- if (listenerCount === 1 && delta === 1) {
12901
- window.addEventListener(PopStateEvent, handlePopState);
12902
- if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
12903
- } else if (listenerCount === 0) {
12904
- window.removeEventListener(PopStateEvent, handlePopState);
12905
- if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
12906
- }
12907
- }
12908
-
12909
- var isBlocked = false;
12910
-
12911
- function block(prompt) {
12912
- if (prompt === void 0) {
12913
- prompt = false;
12914
- }
12915
-
12916
- var unblock = transitionManager.setPrompt(prompt);
12917
-
12918
- if (!isBlocked) {
12919
- checkDOMListeners(1);
12920
- isBlocked = true;
12921
- }
12922
-
12923
- return function () {
12924
- if (isBlocked) {
12925
- isBlocked = false;
12926
- checkDOMListeners(-1);
12927
- }
12928
-
12929
- return unblock();
12930
- };
12931
- }
12932
-
12933
- function listen(listener) {
12934
- var unlisten = transitionManager.appendListener(listener);
12935
- checkDOMListeners(1);
12936
- return function () {
12937
- checkDOMListeners(-1);
12938
- unlisten();
12939
- };
12940
- }
12941
-
12942
- var history = {
12943
- length: globalHistory.length,
12944
- action: 'POP',
12945
- location: initialLocation,
12946
- createHref: createHref,
12947
- push: push,
12948
- replace: replace,
12949
- go: go,
12950
- goBack: goBack,
12951
- goForward: goForward,
12952
- block: block,
12953
- listen: listen
12954
- };
12955
- return history;
12956
- }
12957
-
12958
- var HashChangeEvent$1 = 'hashchange';
12959
- var HashPathCoders = {
12960
- hashbang: {
12961
- encodePath: function encodePath(path) {
12962
- return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);
12963
- },
12964
- decodePath: function decodePath(path) {
12965
- return path.charAt(0) === '!' ? path.substr(1) : path;
12966
- }
12967
- },
12968
- noslash: {
12969
- encodePath: stripLeadingSlash,
12970
- decodePath: addLeadingSlash
12971
- },
12972
- slash: {
12973
- encodePath: addLeadingSlash,
12974
- decodePath: addLeadingSlash
12975
- }
12976
- };
12977
-
12978
- function stripHash(url) {
12979
- var hashIndex = url.indexOf('#');
12980
- return hashIndex === -1 ? url : url.slice(0, hashIndex);
12981
- }
12982
-
12983
- function getHashPath() {
12984
- // We can't use window.location.hash here because it's not
12985
- // consistent across browsers - Firefox will pre-decode it!
12986
- var href = window.location.href;
12987
- var hashIndex = href.indexOf('#');
12988
- return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
12989
- }
12990
-
12991
- function pushHashPath(path) {
12992
- window.location.hash = path;
12993
- }
12994
-
12995
- function replaceHashPath(path) {
12996
- window.location.replace(stripHash(window.location.href) + '#' + path);
12997
- }
12998
-
12999
- function createHashHistory(props) {
13000
- if (props === void 0) {
13001
- props = {};
13002
- }
13003
-
13004
- !canUseDOM ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false, 'Hash history needs a DOM') : Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false) : void 0;
13005
- var globalHistory = window.history;
13006
- var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
13007
- var _props = props,
13008
- _props$getUserConfirm = _props.getUserConfirmation,
13009
- getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
13010
- _props$hashType = _props.hashType,
13011
- hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
13012
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
13013
- var _HashPathCoders$hashT = HashPathCoders[hashType],
13014
- encodePath = _HashPathCoders$hashT.encodePath,
13015
- decodePath = _HashPathCoders$hashT.decodePath;
13016
-
13017
- function getDOMLocation() {
13018
- var path = decodePath(getHashPath());
13019
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
13020
- if (basename) path = stripBasename(path, basename);
13021
- return createLocation(path);
13022
- }
13023
-
13024
- var transitionManager = createTransitionManager();
13025
-
13026
- function setState(nextState) {
13027
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
13028
-
13029
- history.length = globalHistory.length;
13030
- transitionManager.notifyListeners(history.location, history.action);
13031
- }
13032
-
13033
- var forceNextPop = false;
13034
- var ignorePath = null;
13035
-
13036
- function locationsAreEqual$$1(a, b) {
13037
- return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;
13038
- }
13039
-
13040
- function handleHashChange() {
13041
- var path = getHashPath();
13042
- var encodedPath = encodePath(path);
13043
-
13044
- if (path !== encodedPath) {
13045
- // Ensure we always have a properly-encoded hash.
13046
- replaceHashPath(encodedPath);
13047
- } else {
13048
- var location = getDOMLocation();
13049
- var prevLocation = history.location;
13050
- if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.
13051
-
13052
- if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.
13053
-
13054
- ignorePath = null;
13055
- handlePop(location);
13056
- }
13057
- }
13058
-
13059
- function handlePop(location) {
13060
- if (forceNextPop) {
13061
- forceNextPop = false;
13062
- setState();
13063
- } else {
13064
- var action = 'POP';
13065
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
13066
- if (ok) {
13067
- setState({
13068
- action: action,
13069
- location: location
13070
- });
13071
- } else {
13072
- revertPop(location);
13073
- }
13074
- });
13075
- }
13076
- }
13077
-
13078
- function revertPop(fromLocation) {
13079
- var toLocation = history.location; // TODO: We could probably make this more reliable by
13080
- // keeping a list of paths we've seen in sessionStorage.
13081
- // Instead, we just default to 0 for paths we don't know.
13082
-
13083
- var toIndex = allPaths.lastIndexOf(createPath(toLocation));
13084
- if (toIndex === -1) toIndex = 0;
13085
- var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
13086
- if (fromIndex === -1) fromIndex = 0;
13087
- var delta = toIndex - fromIndex;
13088
-
13089
- if (delta) {
13090
- forceNextPop = true;
13091
- go(delta);
13092
- }
13093
- } // Ensure the hash is encoded properly before doing anything else.
13094
-
13095
-
13096
- var path = getHashPath();
13097
- var encodedPath = encodePath(path);
13098
- if (path !== encodedPath) replaceHashPath(encodedPath);
13099
- var initialLocation = getDOMLocation();
13100
- var allPaths = [createPath(initialLocation)]; // Public interface
13101
-
13102
- function createHref(location) {
13103
- var baseTag = document.querySelector('base');
13104
- var href = '';
13105
-
13106
- if (baseTag && baseTag.getAttribute('href')) {
13107
- href = stripHash(window.location.href);
13108
- }
13109
-
13110
- return href + '#' + encodePath(basename + createPath(location));
13111
- }
13112
-
13113
- function push(path, state) {
13114
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Hash history cannot push state; it is ignored') : void 0;
13115
- var action = 'PUSH';
13116
- var location = createLocation(path, undefined, undefined, history.location);
13117
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
13118
- if (!ok) return;
13119
- var path = createPath(location);
13120
- var encodedPath = encodePath(basename + path);
13121
- var hashChanged = getHashPath() !== encodedPath;
13122
-
13123
- if (hashChanged) {
13124
- // We cannot tell if a hashchange was caused by a PUSH, so we'd
13125
- // rather setState here and ignore the hashchange. The caveat here
13126
- // is that other hash histories in the page will consider it a POP.
13127
- ignorePath = path;
13128
- pushHashPath(encodedPath);
13129
- var prevIndex = allPaths.lastIndexOf(createPath(history.location));
13130
- var nextPaths = allPaths.slice(0, prevIndex + 1);
13131
- nextPaths.push(path);
13132
- allPaths = nextPaths;
13133
- setState({
13134
- action: action,
13135
- location: location
13136
- });
13137
- } else {
13138
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack') : void 0;
13139
- setState();
13140
- }
13141
- });
13142
- }
13143
-
13144
- function replace(path, state) {
13145
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Hash history cannot replace state; it is ignored') : void 0;
13146
- var action = 'REPLACE';
13147
- var location = createLocation(path, undefined, undefined, history.location);
13148
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
13149
- if (!ok) return;
13150
- var path = createPath(location);
13151
- var encodedPath = encodePath(basename + path);
13152
- var hashChanged = getHashPath() !== encodedPath;
13153
-
13154
- if (hashChanged) {
13155
- // We cannot tell if a hashchange was caused by a REPLACE, so we'd
13156
- // rather setState here and ignore the hashchange. The caveat here
13157
- // is that other hash histories in the page will consider it a POP.
13158
- ignorePath = path;
13159
- replaceHashPath(encodedPath);
13160
- }
13161
-
13162
- var prevIndex = allPaths.indexOf(createPath(history.location));
13163
- if (prevIndex !== -1) allPaths[prevIndex] = path;
13164
- setState({
13165
- action: action,
13166
- location: location
13167
- });
13168
- });
13169
- }
13170
-
13171
- function go(n) {
13172
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser') : void 0;
13173
- globalHistory.go(n);
13174
- }
13175
-
13176
- function goBack() {
13177
- go(-1);
13178
- }
13179
-
13180
- function goForward() {
13181
- go(1);
13182
- }
13183
-
13184
- var listenerCount = 0;
13185
-
13186
- function checkDOMListeners(delta) {
13187
- listenerCount += delta;
13188
-
13189
- if (listenerCount === 1 && delta === 1) {
13190
- window.addEventListener(HashChangeEvent$1, handleHashChange);
13191
- } else if (listenerCount === 0) {
13192
- window.removeEventListener(HashChangeEvent$1, handleHashChange);
13193
- }
13194
- }
13195
-
13196
- var isBlocked = false;
13197
-
13198
- function block(prompt) {
13199
- if (prompt === void 0) {
13200
- prompt = false;
13201
- }
13202
-
13203
- var unblock = transitionManager.setPrompt(prompt);
13204
-
13205
- if (!isBlocked) {
13206
- checkDOMListeners(1);
13207
- isBlocked = true;
13208
- }
13209
-
13210
- return function () {
13211
- if (isBlocked) {
13212
- isBlocked = false;
13213
- checkDOMListeners(-1);
13214
- }
13215
-
13216
- return unblock();
13217
- };
13218
- }
13219
-
13220
- function listen(listener) {
13221
- var unlisten = transitionManager.appendListener(listener);
13222
- checkDOMListeners(1);
13223
- return function () {
13224
- checkDOMListeners(-1);
13225
- unlisten();
13226
- };
13227
- }
13228
-
13229
- var history = {
13230
- length: globalHistory.length,
13231
- action: 'POP',
13232
- location: initialLocation,
13233
- createHref: createHref,
13234
- push: push,
13235
- replace: replace,
13236
- go: go,
13237
- goBack: goBack,
13238
- goForward: goForward,
13239
- block: block,
13240
- listen: listen
13241
- };
13242
- return history;
13243
- }
13244
-
13245
- function clamp(n, lowerBound, upperBound) {
13246
- return Math.min(Math.max(n, lowerBound), upperBound);
13247
- }
13248
- /**
13249
- * Creates a history object that stores locations in memory.
13250
- */
13251
-
13252
-
13253
- function createMemoryHistory(props) {
13254
- if (props === void 0) {
13255
- props = {};
13256
- }
13257
-
13258
- var _props = props,
13259
- getUserConfirmation = _props.getUserConfirmation,
13260
- _props$initialEntries = _props.initialEntries,
13261
- initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,
13262
- _props$initialIndex = _props.initialIndex,
13263
- initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,
13264
- _props$keyLength = _props.keyLength,
13265
- keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
13266
- var transitionManager = createTransitionManager();
13267
-
13268
- function setState(nextState) {
13269
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
13270
-
13271
- history.length = history.entries.length;
13272
- transitionManager.notifyListeners(history.location, history.action);
13273
- }
13274
-
13275
- function createKey() {
13276
- return Math.random().toString(36).substr(2, keyLength);
13277
- }
13278
-
13279
- var index = clamp(initialIndex, 0, initialEntries.length - 1);
13280
- var entries = initialEntries.map(function (entry) {
13281
- return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());
13282
- }); // Public interface
13283
-
13284
- var createHref = createPath;
13285
-
13286
- function push(path, state) {
13287
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
13288
- var action = 'PUSH';
13289
- var location = createLocation(path, state, createKey(), history.location);
13290
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
13291
- if (!ok) return;
13292
- var prevIndex = history.index;
13293
- var nextIndex = prevIndex + 1;
13294
- var nextEntries = history.entries.slice(0);
13295
-
13296
- if (nextEntries.length > nextIndex) {
13297
- nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
13298
- } else {
13299
- nextEntries.push(location);
13300
- }
13301
-
13302
- setState({
13303
- action: action,
13304
- location: location,
13305
- index: nextIndex,
13306
- entries: nextEntries
13307
- });
13308
- });
13309
- }
13310
-
13311
- function replace(path, state) {
13312
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
13313
- var action = 'REPLACE';
13314
- var location = createLocation(path, state, createKey(), history.location);
13315
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
13316
- if (!ok) return;
13317
- history.entries[history.index] = location;
13318
- setState({
13319
- action: action,
13320
- location: location
13321
- });
13322
- });
13323
- }
13324
-
13325
- function go(n) {
13326
- var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
13327
- var action = 'POP';
13328
- var location = history.entries[nextIndex];
13329
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
13330
- if (ok) {
13331
- setState({
13332
- action: action,
13333
- location: location,
13334
- index: nextIndex
13335
- });
13336
- } else {
13337
- // Mimic the behavior of DOM histories by
13338
- // causing a render after a cancelled POP.
13339
- setState();
13340
- }
13341
- });
13342
- }
13343
-
13344
- function goBack() {
13345
- go(-1);
13346
- }
13347
-
13348
- function goForward() {
13349
- go(1);
13350
- }
13351
-
13352
- function canGo(n) {
13353
- var nextIndex = history.index + n;
13354
- return nextIndex >= 0 && nextIndex < history.entries.length;
13355
- }
13356
-
13357
- function block(prompt) {
13358
- if (prompt === void 0) {
13359
- prompt = false;
13360
- }
13361
-
13362
- return transitionManager.setPrompt(prompt);
13363
- }
13364
-
13365
- function listen(listener) {
13366
- return transitionManager.appendListener(listener);
13367
- }
13368
-
13369
- var history = {
13370
- length: entries.length,
13371
- action: 'POP',
13372
- location: entries[index],
13373
- index: index,
13374
- entries: entries,
13375
- createHref: createHref,
13376
- push: push,
13377
- replace: replace,
13378
- go: go,
13379
- goBack: goBack,
13380
- goForward: goForward,
13381
- canGo: canGo,
13382
- block: block,
13383
- listen: listen
13384
- };
13385
- return history;
13386
- }
13387
-
13388
-
13389
-
13390
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
13391
-
13392
- /***/ }),
13393
- /* 229 */
13394
- /***/ (function(module, exports, __webpack_require__) {
13395
-
13396
- "use strict";
13397
-
13398
-
13399
- 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); }
13400
-
13401
- Object.defineProperty(exports, "__esModule", {
13402
- value: true
13403
- });
13404
- exports["default"] = void 0;
13405
-
13406
- var _react = _interopRequireWildcard(__webpack_require__(0));
13407
-
13408
- var _reactRouterDom = __webpack_require__(46);
13409
-
13410
- var _reactDom = _interopRequireDefault(__webpack_require__(14));
13411
-
13412
- __webpack_require__(491);
13413
-
13414
- var _QuadsAdConfig = _interopRequireDefault(__webpack_require__(492));
13415
-
13416
- var _QuadsAdTargeting = _interopRequireDefault(__webpack_require__(572));
13417
-
13418
- var _QuadsAdPublish = _interopRequireDefault(__webpack_require__(580));
13419
-
13420
- var _queryString = _interopRequireDefault(__webpack_require__(29));
13421
-
13422
- var _Icon = _interopRequireDefault(__webpack_require__(39));
13423
-
13424
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13425
-
13426
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
13427
-
13428
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13429
-
13430
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13431
-
13432
- function _readOnlyError(name) { throw new TypeError("\"" + name + "\" is read-only"); }
13433
-
13434
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13435
-
13436
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13437
-
13438
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13439
-
13440
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
13441
-
13442
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
13443
-
13444
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13445
-
13446
- 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; }
13447
-
13448
- 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; }
13449
-
13450
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13451
-
13452
- 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); } }
13453
-
13454
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
13455
-
13456
- 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(subClass, superClass); }
13457
-
13458
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
13459
-
13460
- 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); }; }
13461
-
13462
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
13463
-
13464
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
13465
-
13466
- 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; } }
13467
-
13468
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
13469
-
13470
- 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; }
13471
-
13472
- var QuadsAdCreateRouter = /*#__PURE__*/function (_Component) {
13473
- _inherits(QuadsAdCreateRouter, _Component);
13474
-
13475
- var _super = _createSuper(QuadsAdCreateRouter);
13476
-
13477
- function QuadsAdCreateRouter(props) {
13478
- var _this;
13479
-
13480
- _classCallCheck(this, QuadsAdCreateRouter);
13481
-
13482
- var visibility_include_def_val = [{
13483
- type: {
13484
- label: "Post Type",
13485
- value: "post_type"
13486
- },
13487
- value: {
13488
- label: "post",
13489
- value: "post"
13490
- }
13491
- }];
13492
- _this = _super.call(this, props);
13493
-
13494
- _defineProperty(_assertThisInitialized(_this), "updateVisitorTarget", function (include, exclude) {
13495
- _this.includedVal = include;
13496
- _this.excludedVal = exclude;
13497
- });
13498
-
13499
- _defineProperty(_assertThisInitialized(_this), "updateVisibility", function (include, exclude) {
13500
- _this.includedVisibilityVal = include;
13501
- _this.excludedVisibilityVal = exclude;
13502
- });
13503
-
13504
- _defineProperty(_assertThisInitialized(_this), "updateRandomAds", function (random_ads_list) {
13505
- _this.random_ads_list = random_ads_list;
13506
- });
13507
-
13508
- _defineProperty(_assertThisInitialized(_this), "updateAdsList", function (ads_list) {
13509
- _this.ads_list = ads_list;
13510
- });
13511
-
13512
- _defineProperty(_assertThisInitialized(_this), "getAdDataById", function (ad_id) {
13513
- var url = quads_localize_data.rest_url + 'quads-route/get-ad-by-id?ad-id=' + ad_id;
13514
-
13515
- if (quads_localize_data.rest_url.includes('?')) {
13516
- url = quads_localize_data.rest_url + 'quads-route/get-ad-by-id&ad-id=' + ad_id;
13517
- }
13518
-
13519
- fetch(url, {
13520
- headers: {
13521
- 'X-WP-Nonce': quads_localize_data.nonce
13522
- }
13523
- }).then(function (res) {
13524
- return res.json();
13525
- }).then(function (result) {
13526
- var _this$state = _objectSpread({}, _this.state),
13527
- quads_post_meta = _this$state.quads_post_meta;
13528
-
13529
- Object.entries(result).map(function (_ref) {
13530
- var _ref2 = _slicedToArray(_ref, 2),
13531
- key = _ref2[0],
13532
- value = _ref2[1];
13533
-
13534
- if (key == 'post') {
13535
- _this.setState({
13536
- quads_post: result.post
13537
- });
13538
- } else {
13539
- Object.entries(value).map(function (_ref3) {
13540
- var _ref4 = _slicedToArray(_ref3, 2),
13541
- meta_key = _ref4[0],
13542
- meta_val = _ref4[1];
13543
-
13544
- if (meta_key == 'visibility_include') {
13545
- _this.includedVisibilityVal = meta_val;
13546
- } else if (meta_key == 'visibility_exclude') {
13547
- _this.excludedVisibilityVal = meta_val;
13548
- } else if (meta_key == 'targeting_include') {
13549
- _this.includedVal = meta_val;
13550
- } else if (meta_key == 'targeting_exclude') {
13551
- _this.excludedVal = meta_val;
13552
- }
13553
-
13554
- if (meta_val) {
13555
- quads_post_meta[meta_key] = meta_val;
13556
- }
13557
- });
13558
-
13559
- _this.setState(quads_post_meta);
13560
- }
13561
- });
13562
- }, function (error) {});
13563
- });
13564
-
13565
- _defineProperty(_assertThisInitialized(_this), "removeVisibilityIncludeItem", function (e) {
13566
- e.preventDefault();
13567
- var index = e.currentTarget.dataset.index;
13568
-
13569
- var _this$state2 = _objectSpread({}, _this.state),
13570
- quads_post_meta = _this$state2.quads_post_meta;
13571
-
13572
- quads_post_meta.visibility_include.splice(index, 1);
13573
-
13574
- _this.setState(quads_post_meta);
13575
- });
13576
-
13577
- _defineProperty(_assertThisInitialized(_this), "removeVisibilityExcludeItem", function (e) {
13578
- e.preventDefault();
13579
- var index = e.currentTarget.dataset.index;
13580
-
13581
- var _this$state3 = _objectSpread({}, _this.state),
13582
- quads_post_meta = _this$state3.quads_post_meta;
13583
-
13584
- quads_post_meta.visibility_exclude.splice(index, 1);
13585
-
13586
- _this.setState(quads_post_meta);
13587
- });
13588
-
13589
- _defineProperty(_assertThisInitialized(_this), "onListSearchHover", function () {});
13590
-
13591
- _defineProperty(_assertThisInitialized(_this), "addIncludeFromSearch", function (e) {
13592
- e.preventDefault();
13593
- var id = e.currentTarget.dataset.id;
13594
- var text = e.currentTarget.dataset.text;
13595
-
13596
- _this.setState({
13597
- quads_include_input_id: id,
13598
- quads_include_input_text: text
13599
- });
13600
-
13601
- var _this$state4 = _objectSpread({}, _this.state),
13602
- quads_post_meta = _this$state4.quads_post_meta;
13603
-
13604
- quads_post_meta.include_dropdown = false;
13605
-
13606
- _this.setState(quads_post_meta);
13607
- });
13608
-
13609
- _defineProperty(_assertThisInitialized(_this), "addExcludeFromSearch", function (e) {
13610
- e.preventDefault();
13611
- var id = e.currentTarget.dataset.id;
13612
- var text = e.currentTarget.dataset.text;
13613
-
13614
- _this.setState({
13615
- quads_exclude_input_id: id,
13616
- quads_exclude_input_text: text
13617
- });
13618
-
13619
- var _this$state5 = _objectSpread({}, _this.state),
13620
- quads_post_meta = _this$state5.quads_post_meta;
13621
-
13622
- quads_post_meta.exclude_dropdown = false;
13623
-
13624
- _this.setState(quads_post_meta);
13625
- });
13626
-
13627
- _defineProperty(_assertThisInitialized(_this), "onIncludeFocus", function () {
13628
- var _this$state6 = _objectSpread({}, _this.state),
13629
- quads_post_meta = _this$state6.quads_post_meta;
13630
-
13631
- quads_post_meta.include_dropdown = true;
13632
-
13633
- _this.setState(quads_post_meta);
13634
- });
13635
-
13636
- _defineProperty(_assertThisInitialized(_this), "onExcludeFocus", function () {
13637
- var _this$state7 = _objectSpread({}, _this.state),
13638
- quads_post_meta = _this$state7.quads_post_meta;
13639
-
13640
- quads_post_meta.exclude_dropdown = true;
13641
-
13642
- _this.setState(quads_post_meta);
13643
- });
13644
-
13645
- _defineProperty(_assertThisInitialized(_this), "excludeFormToggle", function () {
13646
- _this.setState({
13647
- quads_exclude_toggle: !_this.state.quads_exclude_toggle
13648
- });
13649
- });
13650
-
13651
- _defineProperty(_assertThisInitialized(_this), "includeFormToggle", function () {
13652
- _this.setState({
13653
- quads_include_toggle: !_this.state.quads_include_toggle
13654
- });
13655
- });
13656
-
13657
- _defineProperty(_assertThisInitialized(_this), "openModal", function () {
13658
- _this.setState({
13659
- quads_modal_open: true
13660
- });
13661
- });
13662
-
13663
- _defineProperty(_assertThisInitialized(_this), "closeModal", function () {
13664
- _this.setState({
13665
- quads_modal_open: false
13666
- });
13667
-
13668
- _this.setState({
13669
- quads_modal_error: ''
13670
- });
13671
- });
13672
-
13673
- _defineProperty(_assertThisInitialized(_this), "modalValue", function (e) {
13674
- _this.setState({
13675
- quads_modal_value: e.target.value
13676
- });
13677
- });
13678
-
13679
- _defineProperty(_assertThisInitialized(_this), "getGoogleAdsenseAttr", function (content, regex) {
13680
- var str = content;
13681
- var m;
13682
- var result = {};
13683
-
13684
- while ((m = regex.exec(str)) !== null) {
13685
- // This is necessary to avoid infinite loops with zero-width matches
13686
- if (m.index === regex.lastIndex) {
13687
- regex.lastIndex++;
13688
- } // The result can be accessed through the `m`-variable.
13689
-
13690
-
13691
- m.forEach(function (match, index) {
13692
- //console.log(`Found match, group ${groupIndex}: ${match}`);
13693
- result = match;
13694
- });
13695
- }
13696
-
13697
- return result;
13698
- });
13699
-
13700
- _defineProperty(_assertThisInitialized(_this), "getAdsenseCode", function () {
13701
- var content = _this.state.quads_modal_value;
13702
-
13703
- _this.setState({
13704
- quads_modal_open: true
13705
- });
13706
-
13707
- if (content) {
13708
- var slot_regex = /google_ad_slot\s*=\s*"(\d*)";/g;
13709
-
13710
- var ad_slot = _this.getGoogleAdsenseAttr(content, slot_regex);
13711
-
13712
- var ad_client_regex = /google_ad_client\s*=\s*"ca-pub-(\d*)";/g;
13713
-
13714
- var ad_client = _this.getGoogleAdsenseAttr(content, ad_client_regex);
13715
-
13716
- var width_regex = /google_ad_width\s*=\s*(\d*);/g;
13717
-
13718
- var ad_width = _this.getGoogleAdsenseAttr(content, width_regex);
13719
-
13720
- var height_regex = /google_ad_height\s*=\s*(\d*);/g;
13721
-
13722
- var ad_height = _this.getGoogleAdsenseAttr(content, height_regex);
13723
-
13724
- var ad_format_regex = /data-ad-format\s*=\s*"(\w*)";/g;
13725
-
13726
- var ad_format = _this.getGoogleAdsenseAttr(content, ad_format_regex);
13727
-
13728
- var adsense_type = 'normal';
13729
-
13730
- if ((!ad_slot || 0 === ad_slot.length) && (!ad_client || 0 === ad_client.length) && (!ad_width || 0 === ad_width.length)) {
13731
- adsense_type = (_readOnlyError("adsense_type"), 'normal');
13732
- }
13733
-
13734
- if (ad_format == 'auto') {
13735
- adsense_type = (_readOnlyError("adsense_type"), 'responsive');
13736
- }
13737
-
13738
- if (ad_slot.length >= 0 && ad_client.length >= 0) {
13739
- var _this$state8 = _objectSpread({}, _this.state),
13740
- quads_post_meta = _this$state8.quads_post_meta;
13741
-
13742
- quads_post_meta.g_data_ad_slot = ad_slot;
13743
- quads_post_meta.g_data_ad_client = 'ca-pub-' + ad_client;
13744
- quads_post_meta.g_data_ad_width = ad_width;
13745
- quads_post_meta.g_data_ad_height = ad_height;
13746
- quads_post_meta.adsense_type = adsense_type;
13747
-
13748
- _this.setState(quads_post_meta);
13749
-
13750
- _this.setState({
13751
- quads_modal_open: false
13752
- });
13753
- } else {
13754
- _this.setState({
13755
- quads_modal_error: 'Can not parse AdSense Code. Is the code valid?'
13756
- });
13757
-
13758
- _this.setState({
13759
- quads_modal_open: true
13760
- });
13761
- }
13762
- } else {
13763
- _this.setState({
13764
- quads_modal_error: 'Please provide adsense code'
13765
- });
13766
- }
13767
- });
13768
-
13769
- _defineProperty(_assertThisInitialized(_this), "saveAdFormData", function (ad_status) {
13770
- _this.setState({
13771
- quads_is_loaded: true
13772
- });
13773
-
13774
- var body_json = _this.state;
13775
- body_json.quads_ad_status = ad_status; //visitor targeting
13776
-
13777
- body_json.quads_post_meta.targeting_include = _this.includedVal;
13778
- body_json.quads_post_meta.targeting_exclude = _this.excludedVal;
13779
- body_json.quads_post_meta.visibility_include = _this.includedVisibilityVal;
13780
- body_json.quads_post_meta.visibility_exclude = _this.excludedVisibilityVal;
13781
- body_json.quads_post_meta.random_ads_list = _this.random_ads_list;
13782
- body_json.quads_post_meta.ads_list = _this.ads_list;
13783
- var url = quads_localize_data.rest_url + 'quads-route/update-ad';
13784
- fetch(url, {
13785
- method: "post",
13786
- headers: {
13787
- 'Accept': 'application/json',
13788
- 'Content-Type': 'application/json',
13789
- 'X-WP-Nonce': quads_localize_data.nonce
13790
- },
13791
- //make sure to serialize your JSON body
13792
- body: JSON.stringify(body_json)
13793
- }).then(function (res) {
13794
- return res.json();
13795
- }).then(function (result) {
13796
- _this.setState({
13797
- quads_is_loaded: false
13798
- });
13799
-
13800
- _this.setState(Object.assign(_this.state.quads_post_meta, {
13801
- ad_id: result.ad_id
13802
- }));
13803
-
13804
- var path = _this.props.location.pathname;
13805
- var search = _this.props.location.search;
13806
-
13807
- var page = _queryString["default"].parse(window.location.search);
13808
-
13809
- var new_url = path + search;
13810
-
13811
- if (page.action != 'edit') {
13812
- new_url = _this.removePartofQueryString(new_url, 'path=wizard_target');
13813
- new_url += 'path=wizard_publish&action=edit&post=' + result.ad_id;
13814
- } else {
13815
- new_url = _this.removePartofQueryString(new_url, 'path=wizard_target');
13816
- new_url += 'path=wizard_publish';
13817
- }
13818
-
13819
- _this.setState({
13820
- quads_is_saved: true
13821
- });
13822
-
13823
- _this.props.history.push(new_url);
13824
- }, function (error) {
13825
- _this.setState({
13826
- quads_is_error: error,
13827
- quads_is_loaded: false
13828
- });
13829
- });
13830
- });
13831
-
13832
- _defineProperty(_assertThisInitialized(_this), "adFormChangeHandler", function (event) {
13833
- var name = event.target.name;
13834
- var value = event.target.type === 'checkbox' ? event.target.checked : event.target.value;
13835
-
13836
- var _this$state9 = _objectSpread({}, _this.state),
13837
- quads_post_meta = _this$state9.quads_post_meta;
13838
-
13839
- var currentState = quads_post_meta;
13840
-
13841
- if (name) {
13842
- currentState[name] = value;
13843
-
13844
- _this.setState({
13845
- quads_post_meta: currentState,
13846
- quads_state_changed: true
13847
- });
13848
- }
13849
-
13850
- var page = _queryString["default"].parse(window.location.search);
13851
-
13852
- if (!_this.state.quads_ad_status) {
13853
- _this.setState({
13854
- quads_ad_status: 'draft'
13855
- });
13856
- }
13857
- });
13858
-
13859
- _defineProperty(_assertThisInitialized(_this), "saveAsDraft", function (event) {
13860
- event.preventDefault();
13861
-
13862
- _this.saveAdFormData('draft');
13863
- });
13864
-
13865
- _defineProperty(_assertThisInitialized(_this), "publish", function (event) {
13866
- event.preventDefault();
13867
- var quads_post_meta = _this.state.quads_post_meta;
13868
- var validation_flag = true;
13869
-
13870
- if (quads_post_meta.position == 'after_the_percentage') {
13871
- if (quads_post_meta.after_the_percentage_value == '' || parseInt(quads_post_meta.after_the_percentage_value) < 10 || parseInt(quads_post_meta.after_the_percentage_value) > 101) {
13872
- validation_flag = false;
13873
- }
13874
- }
13875
-
13876
- switch (quads_post_meta.ad_type) {
13877
- case 'plain_text':
13878
- if (validation_flag && quads_post_meta.code && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13879
- _this.saveAdFormData('publish');
13880
- } else {
13881
- _this.setState({
13882
- show_form_error: true
13883
- });
13884
- }
13885
-
13886
- break;
13887
-
13888
- case 'adsense':
13889
- if (validation_flag && (quads_post_meta.adsense_ad_type == 'adsense_auto_ads' || quads_post_meta.g_data_ad_slot) && quads_post_meta.g_data_ad_client && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13890
- _this.saveAdFormData('publish');
13891
- } else {
13892
- _this.setState({
13893
- show_form_error: true
13894
- });
13895
- }
13896
-
13897
- break;
13898
-
13899
- case 'random_ads':
13900
- if (validation_flag && quads_post_meta.random_ads_list.length > 0 && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13901
- _this.saveAdFormData('publish');
13902
- } else {
13903
- _this.setState({
13904
- show_form_error: true
13905
- });
13906
- }
13907
-
13908
- break;
13909
-
13910
- case 'rotator_ads':
13911
- if (validation_flag && quads_post_meta.ads_list.length > 0 && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13912
- _this.saveAdFormData('publish');
13913
- } else {
13914
- _this.setState({
13915
- show_form_error: true
13916
- });
13917
- }
13918
-
13919
- break;
13920
-
13921
- case 'group_insertion':
13922
- if (validation_flag && quads_post_meta.ads_list.length > 0 && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13923
- _this.saveAdFormData('publish');
13924
- } else {
13925
- _this.setState({
13926
- show_form_error: true
13927
- });
13928
- }
13929
-
13930
- break;
13931
-
13932
- case 'double_click':
13933
- if (validation_flag && quads_post_meta.ad_unit_name && quads_post_meta.network_code && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13934
- _this.saveAdFormData('publish');
13935
- } else {
13936
- _this.setState({
13937
- show_form_error: true
13938
- });
13939
- }
13940
-
13941
- break;
13942
-
13943
- case 'yandex':
13944
- if (validation_flag && quads_post_meta.block_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13945
- _this.saveAdFormData('publish');
13946
- } else {
13947
- _this.setState({
13948
- show_form_error: true
13949
- });
13950
- }
13951
-
13952
- break;
13953
-
13954
- case 'mgid':
13955
- if (validation_flag && quads_post_meta.data_js_src && quads_post_meta.data_container && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13956
- _this.saveAdFormData('publish');
13957
- } else {
13958
- _this.setState({
13959
- show_form_error: true
13960
- });
13961
- }
13962
-
13963
- break;
13964
-
13965
- case 'ad_image':
13966
- if (validation_flag && quads_post_meta.image_src && quads_post_meta.image_redirect_url && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13967
- _this.saveAdFormData('publish');
13968
- } else {
13969
- _this.setState({
13970
- show_form_error: true
13971
- });
13972
- }
13973
-
13974
- break;
13975
-
13976
- case 'taboola':
13977
- if (validation_flag && quads_post_meta.taboola_publisher_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13978
- _this.saveAdFormData('publish');
13979
- } else {
13980
- _this.setState({
13981
- show_form_error: true
13982
- });
13983
- }
13984
-
13985
- break;
13986
-
13987
- case 'media_net':
13988
- if (validation_flag && quads_post_meta.data_cid && quads_post_meta.data_crid && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13989
- _this.saveAdFormData('publish');
13990
- } else {
13991
- _this.setState({
13992
- show_form_error: true
13993
- });
13994
- }
13995
-
13996
- break;
13997
-
13998
- case 'mediavine':
13999
- if (validation_flag && quads_post_meta.mediavine_site_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
14000
- _this.saveAdFormData('publish');
14001
- } else {
14002
- _this.setState({
14003
- show_form_error: true
14004
- });
14005
- }
14006
-
14007
- break;
14008
-
14009
- case 'outbrain':
14010
- if (validation_flag && quads_post_meta.outbrain_widget_ids && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
14011
- _this.saveAdFormData('publish');
14012
- } else {
14013
- _this.setState({
14014
- show_form_error: true
14015
- });
14016
- }
14017
-
14018
- break;
14019
-
14020
- case 'infolinks':
14021
- if (validation_flag && quads_post_meta.infolinks_wsid && quads_post_meta.infolinks_pid && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
14022
- _this.saveAdFormData('publish');
14023
- } else {
14024
- _this.setState({
14025
- show_form_error: true
14026
- });
14027
- }
14028
-
14029
- break;
14030
-
14031
- case 'background_ad':
14032
- if (validation_flag && quads_post_meta.image_src && quads_post_meta.image_redirect_url && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
14033
- _this.saveAdFormData('publish');
14034
- } else {
14035
- _this.setState({
14036
- show_form_error: true
14037
- });
14038
- }
14039
-
14040
- break;
14041
-
14042
- default:
14043
- break;
14044
- }
14045
- });
14046
-
14047
- _defineProperty(_assertThisInitialized(_this), "removePartofQueryString", function (q_string, part) {
14048
- var split_arr = q_string.split("&");
14049
- var new_search = '';
14050
-
14051
- for (var i = 0; i < split_arr.length; i++) {
14052
- if (!split_arr[i].includes(part)) {
14053
- new_search += split_arr[i] + '&';
14054
- }
14055
- }
14056
-
14057
- return new_search;
14058
- });
14059
-
14060
- _defineProperty(_assertThisInitialized(_this), "quadsGoBack", function (e) {
14061
- e.preventDefault();
14062
-
14063
- var page = _queryString["default"].parse(window.location.search);
14064
-
14065
- var new_url = _this.props.location.pathname + '?page=quads-settings';
14066
-
14067
- if (_this.state.quads_state_changed && !_this.state.quads_is_saved) {
14068
- var r = confirm("Changes you made may not be saved.");
14069
-
14070
- if (r == true) {
14071
- _this.props.history.push(new_url);
14072
- } else {
14073
- return false;
14074
- }
14075
- } else {
14076
- _this.props.history.push(new_url);
14077
- }
14078
- });
14079
-
14080
- _defineProperty(_assertThisInitialized(_this), "moveNext", function (e) {
14081
- var page = _queryString["default"].parse(window.location.search);
14082
-
14083
- var new_url = _this.props.location.pathname + _this.removePartofQueryString(_this.props.location.search, 'path=wizard');
14084
-
14085
- var quads_post_meta = _this.state.quads_post_meta;
14086
-
14087
- if (page.path == 'wizard') {
14088
- new_url += 'path=wizard_target';
14089
-
14090
- switch (quads_post_meta.ad_type) {
14091
- case 'plain_text':
14092
- if (quads_post_meta.code) {
14093
- _this.props.history.push(new_url);
14094
- } else {
14095
- _this.setState({
14096
- show_form_error: true
14097
- });
14098
- }
14099
-
14100
- break;
14101
-
14102
- case 'adsense':
14103
- if ((quads_post_meta.adsense_ad_type == 'adsense_auto_ads' || quads_post_meta.g_data_ad_slot) && quads_post_meta.g_data_ad_client) {
14104
- _this.props.history.push(new_url);
14105
- } else {
14106
- _this.setState({
14107
- show_form_error: true
14108
- });
14109
- }
14110
-
14111
- break;
14112
-
14113
- case 'random_ads':
14114
- if (quads_post_meta.random_ads_list.length > 0) {
14115
- _this.props.history.push(new_url);
14116
- } else {
14117
- _this.setState({
14118
- show_form_error: true
14119
- });
14120
- }
14121
-
14122
- break;
14123
-
14124
- case 'rotator_ads':
14125
- if (quads_post_meta.ads_list.length > 0) {
14126
- _this.props.history.push(new_url);
14127
- } else {
14128
- _this.setState({
14129
- show_form_error: true
14130
- });
14131
- }
14132
-
14133
- break;
14134
-
14135
- case 'group_insertion':
14136
- if (quads_post_meta.ads_list.length > 0) {
14137
- _this.props.history.push(new_url);
14138
- } else {
14139
- _this.setState({
14140
- show_form_error: true
14141
- });
14142
- }
14143
-
14144
- break;
14145
-
14146
- case 'double_click':
14147
- if (quads_post_meta.ad_unit_name && quads_post_meta.network_code) {
14148
- _this.props.history.push(new_url);
14149
- } else {
14150
- _this.setState({
14151
- show_form_error: true
14152
- });
14153
- }
14154
-
14155
- break;
14156
-
14157
- case 'yandex':
14158
- if (quads_post_meta.block_id) {
14159
- _this.props.history.push(new_url);
14160
- } else {
14161
- _this.setState({
14162
- show_form_error: true
14163
- });
14164
- }
14165
-
14166
- break;
14167
-
14168
- case 'mgid':
14169
- if (quads_post_meta.data_container && quads_post_meta.data_js_src) {
14170
- _this.props.history.push(new_url);
14171
- } else {
14172
- _this.setState({
14173
- show_form_error: true
14174
- });
14175
- }
14176
-
14177
- break;
14178
-
14179
- case 'ad_image':
14180
- if (quads_post_meta.image_src && quads_post_meta.image_redirect_url) {
14181
- _this.props.history.push(new_url);
14182
- } else {
14183
- _this.setState({
14184
- show_form_error: true
14185
- });
14186
- }
14187
-
14188
- break;
14189
-
14190
- case 'taboola':
14191
- if (quads_post_meta.taboola_publisher_id) {
14192
- _this.props.history.push(new_url);
14193
- } else {
14194
- _this.setState({
14195
- show_form_error: true
14196
- });
14197
- }
14198
-
14199
- break;
14200
-
14201
- case 'media_net':
14202
- if (quads_post_meta.data_cid && quads_post_meta.data_crid) {
14203
- _this.props.history.push(new_url);
14204
- } else {
14205
- _this.setState({
14206
- show_form_error: true
14207
- });
14208
- }
14209
-
14210
- break;
14211
-
14212
- case 'mediavine':
14213
- if (quads_post_meta.mediavine_site_id) {
14214
- _this.props.history.push(new_url);
14215
- } else {
14216
- _this.setState({
14217
- show_form_error: true
14218
- });
14219
- }
14220
-
14221
- break;
14222
-
14223
- case 'outbrain':
14224
- if (quads_post_meta.outbrain_widget_ids) {
14225
- _this.props.history.push(new_url);
14226
- } else {
14227
- _this.setState({
14228
- show_form_error: true
14229
- });
14230
- }
14231
-
14232
- break;
14233
-
14234
- case 'infolinks':
14235
- if (quads_post_meta.infolinks_pid && quads_post_meta.infolinks_wsid) {
14236
- _this.props.history.push(new_url);
14237
- } else {
14238
- _this.setState({
14239
- show_form_error: true
14240
- });
14241
- }
14242
-
14243
- break;
14244
-
14245
- case 'background_ad':
14246
- if (quads_post_meta.image_src && quads_post_meta.image_redirect_url) {
14247
- _this.props.history.push(new_url);
14248
- } else {
14249
- _this.setState({
14250
- show_form_error: true
14251
- });
14252
- }
14253
-
14254
- break;
14255
-
14256
- default:
14257
- break;
14258
- }
14259
- } else if (page.path == 'wizard_target') {
14260
- new_url += 'path=wizard_publish';
14261
-
14262
- if (quads_post_meta.position && visibility_include.length > 0) {
14263
- _this.props.history.push(new_url);
14264
- } else {
14265
- _this.setState({
14266
- show_form_error: true
14267
- });
14268
- }
14269
- }
14270
- });
14271
-
14272
- _defineProperty(_assertThisInitialized(_this), "movePrev", function (e) {
14273
- var page = _queryString["default"].parse(window.location.search);
14274
-
14275
- var new_url = _this.props.location.pathname + _this.removePartofQueryString(_this.props.location.search, 'path=wizard');
14276
-
14277
- if (page.path == 'wizard_publish') {
14278
- new_url += 'path=wizard_target';
14279
- } else if (page.path == 'wizard_target') {
14280
- new_url += 'path=wizard';
14281
- }
14282
-
14283
- _this.props.history.push(new_url);
14284
- });
14285
-
14286
- _defineProperty(_assertThisInitialized(_this), "closeNotice", function () {
14287
- _this.setState({
14288
- quads_is_saved: false
14289
- });
14290
- });
14291
-
14292
- _this.state = {
14293
- show_form_error: false,
14294
- quads_include_toggle: false,
14295
- Quads_confirm_box: false,
14296
- quads_exclude_toggle: false,
14297
- quads_include_placeholder: 'Search for post types',
14298
- quads_exclude_placeholder: 'Search for post types',
14299
- quads_include_current_type: 'post_type',
14300
- quads_exclude_current_type: 'post_type',
14301
- quads_include_input_text: '',
14302
- quads_exclude_input_text: '',
14303
- quads_include_input_id: '',
14304
- quads_exclude_input_id: '',
14305
- quads_is_reload: true,
14306
- quads_modal_value: '',
14307
- quads_modal_error: '',
14308
- quads_modal_open: false,
14309
- quads_is_loaded: true,
14310
- quads_is_visibility: true,
14311
- quads_state_changed: false,
14312
- quads_is_saved: false,
14313
- quads_ad_status: '',
14314
- quads_is_error: [],
14315
- quads_post: {},
14316
- quads_include_meta: {},
14317
- quads_exclude_meta: {},
14318
- quads_post_meta: {
14319
- visibility_include: visibility_include_def_val,
14320
- visibility_exclude: [],
14321
- targeting_include: [],
14322
- targeting_exclude: [],
14323
- ad_id: '',
14324
- ad_type: '',
14325
- label: '',
14326
- adsense_ad_type: 'display_ads',
14327
- data_layout_key: '',
14328
- g_data_ad_slot: '',
14329
- g_data_ad_client: '',
14330
- adsense_type: 'normal',
14331
- g_data_ad_width: '',
14332
- g_data_ad_height: '',
14333
- network_code: '',
14334
- ad_unit_name: '',
14335
- code: '',
14336
- align: 3,
14337
- ad_label_check: false,
14338
- adlabel: '',
14339
- ad_label_text: 'Advertisements',
14340
- margin: 0,
14341
- position: 'beginning_of_post',
14342
- paragraph_number: 1,
14343
- count_as_per: 'p_tag',
14344
- word_count_number: 100,
14345
- image_number: 1,
14346
- enabled_on_amp: false,
14347
- enable_on_end_of_post: false,
14348
- repeat_paragraph: false,
14349
- after_the_percentage_value: 50,
14350
- ads_loop_number: 1,
14351
- paragraph_limit: '',
14352
- insert_after: 1,
14353
- image_caption: false,
14354
- include_dropdown: false,
14355
- exclude_dropdown: false,
14356
- random_ads_list: [],
14357
- ads_list: [],
14358
- image_src: '',
14359
- image_src_id: '',
14360
- image_redirect_url: '',
14361
- taboola_publisher_id: '',
14362
- data_cid: '',
14363
- data_crid: '',
14364
- mediavine_site_id: '',
14365
- outbrain_widget_ids: '',
14366
- infolinks_pid: '',
14367
- infolinks_wsid: '',
14368
- data_container: '',
14369
- data_js_src: '',
14370
- refresh_type: 'on_load'
14371
- },
14372
- quads_form_errors: {
14373
- g_data_ad_slot: '',
14374
- g_data_ad_client: '',
14375
- code: '',
14376
- label: '',
14377
- position: '',
14378
- visibility_include: [],
14379
- random_ads_list: [],
14380
- ads_list: []
14381
- }
14382
- };
14383
- _this.include_timer = null;
14384
- _this.exclude_timer = null;
14385
- _this.includedVal = [];
14386
- _this.excludedVal = [];
14387
- _this.includedVisibilityVal = visibility_include_def_val;
14388
- _this.excludedVisibilityVal = [];
14389
- return _this;
14390
- }
14391
-
14392
- _createClass(QuadsAdCreateRouter, [{
14393
- key: "componentDidUpdate",
14394
- value: function componentDidUpdate() {}
14395
- }, {
14396
- key: "componentDidMount",
14397
- value: function componentDidMount() {
14398
- var page = _queryString["default"].parse(window.location.search);
14399
-
14400
- if (this.state.quads_is_reload && page.action == 'edit') {
14401
- document.body.classList.add('quads_editpage');
14402
- this.getAdDataById(page.post);
14403
- this.setState({
14404
- quads_is_reload: false
14405
- });
14406
- } else {
14407
- document.body.classList.add('quads_addpage');
14408
- }
14409
-
14410
- this.setState(Object.assign(this.state.quads_post_meta, {
14411
- ad_type: page.ad_type
14412
- }));
14413
- this.setState({
14414
- quads_is_loaded: false
14415
- });
14416
- }
14417
- }, {
14418
- key: "render",
14419
- value: function render() {
14420
- var _this2 = this;
14421
-
14422
- var location = this.props.location;
14423
-
14424
- var page = _queryString["default"].parse(window.location.search);
14425
-
14426
- var __ = wp.i18n.__;
14427
- var post_meta = this.state.quads_post_meta;
14428
- var show_form_error = this.state.show_form_error;
14429
-
14430
- if (page.path == 'wizard_target' && this.state.quads_post_meta.label == '') {
14431
- var json_data = {
14432
- action: 'quads_ajax_add_ads'
14433
- };
14434
- var url = quads_localize_data.rest_url + "quads-route/get-add-next-id";
14435
- fetch(url, {
14436
- method: "post",
14437
- headers: {
14438
- 'Accept': 'application/json',
14439
- 'Content-Type': 'application/json',
14440
- 'X-WP-Nonce': quads_localize_data.nonce
14441
- },
14442
- body: JSON.stringify(json_data)
14443
- }).then(function (res) {
14444
- return res.json();
14445
- }).then(function (result) {
14446
- var titleName = result.name;
14447
- var quads_ad_old_id = 'ad' + result.id;
14448
-
14449
- if (page.ad_type == 'random_ads') {
14450
- titleName = result.name + " (Random)";
14451
- } else if (page.ad_type == 'rotator_ads') {
14452
- titleName = result.name + " (Rotator)";
14453
- } else if (page.ad_type == 'group_insertion') {
14454
- titleName = result.name + " (Group Insertion)";
14455
- }
14456
-
14457
- _this2.setState(Object.assign(_this2.state.quads_post_meta, {
14458
- label: titleName,
14459
- quads_ad_old_id: quads_ad_old_id
14460
- }));
14461
- }, function (error) {});
14462
- }
14463
-
14464
- return /*#__PURE__*/_react["default"].createElement("div", null, this.state.quads_is_loaded ? /*#__PURE__*/_react["default"].createElement("div", {
14465
- className: "quads-cover-spin"
14466
- }) : '', /*#__PURE__*/_react["default"].createElement("form", {
14467
- id: "quads-ad-form"
14468
- }, /*#__PURE__*/_react["default"].createElement("div", {
14469
- className: "material-icons quads-close-create-page"
14470
- }, /*#__PURE__*/_react["default"].createElement("a", {
14471
- onClick: this.quadsGoBack
14472
- }, "close")), /*#__PURE__*/_react["default"].createElement("div", {
14473
- className: "quads-ad-config-header"
14474
- }, /*#__PURE__*/_react["default"].createElement("div", {
14475
- className: "quads-ad-input"
14476
- }, /*#__PURE__*/_react["default"].createElement("input", {
14477
- value: this.state.quads_post_meta.label,
14478
- type: "text",
14479
- onChange: this.adFormChangeHandler,
14480
- name: "label",
14481
- placeholder: __('Name your ad unit', 'quick-adsense-reloaded')
14482
- }), /*#__PURE__*/_react["default"].createElement("input", {
14483
- type: "hidden",
14484
- name: "ad_id",
14485
- value: this.state.quads_post_meta.ad_id
14486
- }), /*#__PURE__*/_react["default"].createElement("input", {
14487
- type: "hidden",
14488
- name: "ad_type",
14489
- value: this.state.quads_post_meta.ad_type
14490
- })), /*#__PURE__*/_react["default"].createElement("div", {
14491
- className: "quads-ad-config-menu"
14492
- }, /*#__PURE__*/_react["default"].createElement("div", {
14493
- className: "quads-ad-config-tab"
14494
- }, /*#__PURE__*/_react["default"].createElement("ul", null, /*#__PURE__*/_react["default"].createElement("li", {
14495
- className: "".concat(page.path == 'wizard' ? 'quads-selected' : '')
14496
- }, __('Configuration', 'quick-adsense-reloaded')), /*#__PURE__*/_react["default"].createElement("li", {
14497
- className: "".concat(page.path == 'wizard_target' ? 'quads-selected' : '')
14498
- }, __('Targeting', 'quick-adsense-reloaded')), /*#__PURE__*/_react["default"].createElement("li", {
14499
- className: "".concat(page.path == 'wizard_publish' ? 'quads-selected' : '')
14500
- }, __('Publish', 'quick-adsense-reloaded')))))), /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
14501
- render: function render(props) {
14502
- switch (page.path) {
14503
- case "wizard":
14504
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdConfig["default"], _extends({}, props, {
14505
- moveNext: _this2.moveNext,
14506
- parentState: _this2.state,
14507
- adFormChangeHandler: _this2.adFormChangeHandler,
14508
- modalValue: _this2.modalValue,
14509
- getAdsenseCode: _this2.getAdsenseCode,
14510
- openModal: _this2.openModal,
14511
- closeModal: _this2.closeModal,
14512
- updateRandomAds: _this2.updateRandomAds,
14513
- updateAdsList: _this2.updateAdsList
14514
- }));
14515
-
14516
- case "wizard_target":
14517
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdTargeting["default"], _extends({}, props, {
14518
- parentState: _this2.state,
14519
- updateVisitorTarget: _this2.updateVisitorTarget,
14520
- updateVisibility: _this2.updateVisibility,
14521
- adFormChangeHandler: _this2.adFormChangeHandler,
14522
- movePrev: _this2.movePrev,
14523
- publish: _this2.publish,
14524
- onListSearchHover: _this2.onListSearchHover
14525
- }));
14526
-
14527
- case "wizard_publish":
14528
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdPublish["default"], _extends({}, props, {
14529
- parentState: _this2.state,
14530
- adFormChangeHandler: _this2.adFormChangeHandler,
14531
- movePrev: _this2.movePrev
14532
- }));
14533
-
14534
- default:
14535
- return null;
14536
- }
14537
- }
14538
- })));
14539
- }
14540
- }]);
14541
-
14542
- return QuadsAdCreateRouter;
14543
- }(_react.Component);
14544
-
14545
- var _default = QuadsAdCreateRouter;
14546
- exports["default"] = _default;
14547
-
14548
- /***/ }),
14549
- /* 230 */
14550
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14551
-
14552
- "use strict";
14553
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
14554
- /* harmony default export */ __webpack_exports__["a"] = (hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__');
14555
-
14556
- /***/ }),
14557
- /* 231 */
14558
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14559
-
14560
- "use strict";
14561
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createStyles__ = __webpack_require__(511);
14562
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createStyles__["a"]; });
14563
-
14564
-
14565
- /***/ }),
14566
- /* 232 */
14567
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14568
-
14569
- "use strict";
14570
- /* unused harmony export isBrowser */
14571
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
14572
-
14573
- var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9;
14574
-
14575
- /* harmony default export */ __webpack_exports__["a"] = (isBrowser);
14576
-
14577
-
14578
- /***/ }),
14579
- /* 233 */
14580
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14581
-
14582
- "use strict";
14583
- /* harmony export (immutable) */ __webpack_exports__["a"] = _arrayLikeToArray;
14584
- function _arrayLikeToArray(arr, len) {
14585
- if (len == null || len > arr.length) len = arr.length;
14586
-
14587
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
14588
- arr2[i] = arr[i];
14589
- }
14590
-
14591
- return arr2;
14592
- }
14593
-
14594
- /***/ }),
14595
- /* 234 */
14596
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14597
-
14598
- "use strict";
14599
- /* harmony export (immutable) */ __webpack_exports__["a"] = _iterableToArray;
14600
- function _iterableToArray(iter) {
14601
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
14602
- }
14603
-
14604
- /***/ }),
14605
- /* 235 */
14606
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14607
-
14608
- "use strict";
14609
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
14610
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
14611
-
14612
- var ThemeContext = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null);
14613
-
14614
- if (process.env.NODE_ENV !== 'production') {
14615
- ThemeContext.displayName = 'ThemeContext';
14616
- }
14617
-
14618
- /* harmony default export */ __webpack_exports__["a"] = (ThemeContext);
14619
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14620
-
14621
- /***/ }),
14622
- /* 236 */
14623
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14624
-
14625
- "use strict";
14626
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export sheetsManager */
14627
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StylesContext; });
14628
- /* harmony export (immutable) */ __webpack_exports__["b"] = StylesProvider;
14629
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
14630
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
14631
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
14632
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
14633
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
14634
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
14635
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ui_utils__ = __webpack_require__(8);
14636
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createGenerateClassName__ = __webpack_require__(92);
14637
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_jss__ = __webpack_require__(53);
14638
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__jssPreset__ = __webpack_require__(143);
14639
-
14640
-
14641
-
14642
-
14643
-
14644
-
14645
-
14646
- // Default JSS instance.
14647
-
14648
- var jss = Object(__WEBPACK_IMPORTED_MODULE_6_jss__["c" /* create */])(Object(__WEBPACK_IMPORTED_MODULE_7__jssPreset__["a" /* default */])()); // Use a singleton or the provided one by the context.
14649
- //
14650
- // The counter-based approach doesn't tolerate any mistake.
14651
- // It's much safer to use the same counter everywhere.
14652
-
14653
- var generateClassName = Object(__WEBPACK_IMPORTED_MODULE_5__createGenerateClassName__["a" /* default */])(); // Exported for test purposes
14654
-
14655
- var sheetsManager = new Map();
14656
- var defaultOptions = {
14657
- disableGeneration: false,
14658
- generateClassName: generateClassName,
14659
- jss: jss,
14660
- sheetsCache: null,
14661
- sheetsManager: sheetsManager,
14662
- sheetsRegistry: null
14663
- };
14664
- var StylesContext = __WEBPACK_IMPORTED_MODULE_2_react___default.a.createContext(defaultOptions);
14665
-
14666
- if (process.env.NODE_ENV !== 'production') {
14667
- StylesContext.displayName = 'StylesContext';
14668
- }
14669
-
14670
- var injectFirstNode;
14671
- function StylesProvider(props) {
14672
- var children = props.children,
14673
- _props$injectFirst = props.injectFirst,
14674
- injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst,
14675
- _props$disableGenerat = props.disableGeneration,
14676
- disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat,
14677
- localOptions = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "injectFirst", "disableGeneration"]);
14678
-
14679
- var outerOptions = __WEBPACK_IMPORTED_MODULE_2_react___default.a.useContext(StylesContext);
14680
-
14681
- var context = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, outerOptions, {
14682
- disableGeneration: disableGeneration
14683
- }, localOptions);
14684
-
14685
- if (process.env.NODE_ENV !== 'production') {
14686
- if (typeof window === 'undefined' && !context.sheetsManager) {
14687
- console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');
14688
- }
14689
- }
14690
-
14691
- if (process.env.NODE_ENV !== 'production') {
14692
- if (context.jss.options.insertionPoint && injectFirst) {
14693
- console.error('Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
14694
- }
14695
- }
14696
-
14697
- if (process.env.NODE_ENV !== 'production') {
14698
- if (injectFirst && localOptions.jss) {
14699
- console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');
14700
- }
14701
- }
14702
-
14703
- if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {
14704
- if (!injectFirstNode) {
14705
- var head = document.head;
14706
- injectFirstNode = document.createComment('mui-inject-first');
14707
- head.insertBefore(injectFirstNode, head.firstChild);
14708
- }
14709
-
14710
- context.jss = Object(__WEBPACK_IMPORTED_MODULE_6_jss__["c" /* create */])({
14711
- plugins: Object(__WEBPACK_IMPORTED_MODULE_7__jssPreset__["a" /* default */])().plugins,
14712
- insertionPoint: injectFirstNode
14713
- });
14714
- }
14715
-
14716
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(StylesContext.Provider, {
14717
- value: context
14718
- }, children);
14719
- }
14720
- process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = {
14721
- /**
14722
- * Your component tree.
14723
- */
14724
- children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node.isRequired,
14725
-
14726
- /**
14727
- * You can disable the generation of the styles with this option.
14728
- * It can be useful when traversing the React tree outside of the HTML
14729
- * rendering step on the server.
14730
- * Let's say you are using react-apollo to extract all
14731
- * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.
14732
- */
14733
- disableGeneration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
14734
-
14735
- /**
14736
- * JSS's class name generator.
14737
- */
14738
- generateClassName: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
14739
-
14740
- /**
14741
- * By default, the styles are injected last in the <head> element of the page.
14742
- * As a result, they gain more specificity than any other style sheet.
14743
- * If you want to override Material-UI's styles, set this prop.
14744
- */
14745
- injectFirst: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
14746
-
14747
- /**
14748
- * JSS's instance.
14749
- */
14750
- jss: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
14751
-
14752
- /**
14753
- * @ignore
14754
- */
14755
- serverGenerateClassName: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
14756
-
14757
- /**
14758
- * @ignore
14759
- *
14760
- * Beta feature.
14761
- *
14762
- * Cache for the sheets.
14763
- */
14764
- sheetsCache: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
14765
-
14766
- /**
14767
- * @ignore
14768
- *
14769
- * The sheetsManager is used to deduplicate style sheet injection in the page.
14770
- * It's deduplicating using the (theme, styles) couple.
14771
- * On the server, you should provide a new instance for each request.
14772
- */
14773
- sheetsManager: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
14774
-
14775
- /**
14776
- * @ignore
14777
- *
14778
- * Collect the sheets.
14779
- */
14780
- sheetsRegistry: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
14781
- } : void 0;
14782
-
14783
- if (process.env.NODE_ENV !== 'production') {
14784
- process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = Object(__WEBPACK_IMPORTED_MODULE_4__material_ui_utils__["f" /* exactProp */])(StylesProvider.propTypes) : void 0;
14785
- }
14786
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14787
-
14788
- /***/ }),
14789
- /* 237 */
14790
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14791
-
14792
- "use strict";
14793
- // We use the same empty object to ref count the styles that don't need a theme object.
14794
- var noopTheme = {};
14795
- /* harmony default export */ __webpack_exports__["a"] = (noopTheme);
14796
-
14797
- /***/ }),
14798
- /* 238 */
14799
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14800
-
14801
- "use strict";
14802
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ServerStyleSheets__ = __webpack_require__(532);
14803
- /* unused harmony reexport default */
14804
-
14805
-
14806
- /***/ }),
14807
- /* 239 */
14808
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14809
-
14810
- "use strict";
14811
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__styled__ = __webpack_require__(533);
14812
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__styled__["a"]; });
14813
-
14814
-
14815
- /***/ }),
14816
- /* 240 */
14817
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14818
-
14819
- "use strict";
14820
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ThemeProvider__ = __webpack_require__(534);
14821
- /* unused harmony reexport default */
14822
-
14823
-
14824
- /***/ }),
14825
- /* 241 */
14826
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14827
-
14828
- "use strict";
14829
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withStyles__ = __webpack_require__(535);
14830
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withStyles__["a"]; });
14831
-
14832
-
14833
- /***/ }),
14834
- /* 242 */
14835
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14836
-
14837
- "use strict";
14838
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withTheme__ = __webpack_require__(243);
14839
- /* unused harmony reexport default */
14840
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withTheme__["a"]; });
14841
-
14842
-
14843
-
14844
- /***/ }),
14845
- /* 243 */
14846
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14847
-
14848
- "use strict";
14849
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = withThemeCreator;
14850
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
14851
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
14852
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
14853
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
14854
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
14855
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
14856
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__ = __webpack_require__(74);
14857
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__);
14858
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__ = __webpack_require__(8);
14859
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__useTheme__ = __webpack_require__(64);
14860
-
14861
-
14862
-
14863
-
14864
-
14865
-
14866
-
14867
- function withThemeCreator() {
14868
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14869
- var defaultTheme = options.defaultTheme;
14870
-
14871
- var withTheme = function withTheme(Component) {
14872
- if (process.env.NODE_ENV !== 'production') {
14873
- if (Component === undefined) {
14874
- throw new Error(['You are calling withTheme(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\n'));
14875
- }
14876
- }
14877
-
14878
- var WithTheme = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef(function WithTheme(props, ref) {
14879
- var innerRef = props.innerRef,
14880
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["innerRef"]);
14881
-
14882
- var theme = Object(__WEBPACK_IMPORTED_MODULE_6__useTheme__["a" /* default */])() || defaultTheme;
14883
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(Component, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
14884
- theme: theme,
14885
- ref: innerRef || ref
14886
- }, other));
14887
- });
14888
- process.env.NODE_ENV !== "production" ? WithTheme.propTypes = {
14889
- /**
14890
- * Use that prop to pass a ref to the decorated component.
14891
- * @deprecated
14892
- */
14893
- innerRef: Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["b" /* chainPropTypes */])(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object]), function (props) {
14894
- if (props.innerRef == null) {
14895
- return null;
14896
- }
14897
-
14898
- return new Error('Material-UI: The `innerRef` prop is deprecated and will be removed in v5. ' + 'Refs are now automatically forwarded to the inner component.');
14899
- })
14900
- } : void 0;
14901
-
14902
- if (process.env.NODE_ENV !== 'production') {
14903
- WithTheme.displayName = "WithTheme(".concat(Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["h" /* getDisplayName */])(Component), ")");
14904
- }
14905
-
14906
- __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default()(WithTheme, Component);
14907
-
14908
- if (process.env.NODE_ENV !== 'production') {
14909
- // Exposed for test purposes.
14910
- WithTheme.Naked = Component;
14911
- }
14912
-
14913
- return WithTheme;
14914
- };
14915
-
14916
- return withTheme;
14917
- } // Provide the theme object as a prop to the input component.
14918
- // It's an alternative API to useTheme().
14919
- // We encourage the usage of useTheme() where possible.
14920
-
14921
- var withTheme = withThemeCreator();
14922
- /* unused harmony default export */ var _unused_webpack_default_export = (withTheme);
14923
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14924
-
14925
- /***/ }),
14926
- /* 244 */
14927
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14928
-
14929
- "use strict";
14930
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return keys; });
14931
- /* harmony export (immutable) */ __webpack_exports__["a"] = createBreakpoints;
14932
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
14933
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
14934
-
14935
-
14936
- // Sorted ASC by size. That's important.
14937
- // It can't be configured as it's used statically for propTypes.
14938
- var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.
14939
-
14940
- function createBreakpoints(breakpoints) {
14941
- var _breakpoints$values = breakpoints.values,
14942
- values = _breakpoints$values === void 0 ? {
14943
- xs: 0,
14944
- sm: 600,
14945
- md: 960,
14946
- lg: 1280,
14947
- xl: 1920
14948
- } : _breakpoints$values,
14949
- _breakpoints$unit = breakpoints.unit,
14950
- unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,
14951
- _breakpoints$step = breakpoints.step,
14952
- step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,
14953
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(breakpoints, ["values", "unit", "step"]);
14954
-
14955
- function up(key) {
14956
- var value = typeof values[key] === 'number' ? values[key] : key;
14957
- return "@media (min-width:".concat(value).concat(unit, ")");
14958
- }
14959
-
14960
- function down(key) {
14961
- var endIndex = keys.indexOf(key) + 1;
14962
- var upperbound = values[keys[endIndex]];
14963
-
14964
- if (endIndex === keys.length) {
14965
- // xl down applies to all sizes
14966
- return up('xs');
14967
- }
14968
-
14969
- var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;
14970
- return "@media (max-width:".concat(value - step / 100).concat(unit, ")");
14971
- }
14972
-
14973
- function between(start, end) {
14974
- var endIndex = keys.indexOf(end);
14975
-
14976
- if (endIndex === keys.length - 1) {
14977
- return up(start);
14978
- }
14979
-
14980
- return "@media (min-width:".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, ")");
14981
- }
14982
-
14983
- function only(key) {
14984
- return between(key, key);
14985
- }
14986
-
14987
- function width(key) {
14988
- return values[key];
14989
- }
14990
-
14991
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
14992
- keys: keys,
14993
- values: values,
14994
- up: up,
14995
- down: down,
14996
- between: between,
14997
- only: only,
14998
- width: width
14999
- }, other);
15000
- }
15001
-
15002
- /***/ }),
15003
- /* 245 */
15004
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15005
-
15006
- "use strict";
15007
- var common = {
15008
- black: '#000',
15009
- white: '#fff'
15010
- };
15011
- /* harmony default export */ __webpack_exports__["a"] = (common);
15012
-
15013
- /***/ }),
15014
- /* 246 */
15015
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15016
-
15017
- "use strict";
15018
- var grey = {
15019
- 50: '#fafafa',
15020
- 100: '#f5f5f5',
15021
- 200: '#eeeeee',
15022
- 300: '#e0e0e0',
15023
- 400: '#bdbdbd',
15024
- 500: '#9e9e9e',
15025
- 600: '#757575',
15026
- 700: '#616161',
15027
- 800: '#424242',
15028
- 900: '#212121',
15029
- A100: '#d5d5d5',
15030
- A200: '#aaaaaa',
15031
- A400: '#303030',
15032
- A700: '#616161'
15033
- };
15034
- /* harmony default export */ __webpack_exports__["a"] = (grey);
15035
-
15036
- /***/ }),
15037
- /* 247 */
15038
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15039
-
15040
- "use strict";
15041
- var indigo = {
15042
- 50: '#e8eaf6',
15043
- 100: '#c5cae9',
15044
- 200: '#9fa8da',
15045
- 300: '#7986cb',
15046
- 400: '#5c6bc0',
15047
- 500: '#3f51b5',
15048
- 600: '#3949ab',
15049
- 700: '#303f9f',
15050
- 800: '#283593',
15051
- 900: '#1a237e',
15052
- A100: '#8c9eff',
15053
- A200: '#536dfe',
15054
- A400: '#3d5afe',
15055
- A700: '#304ffe'
15056
- };
15057
- /* harmony default export */ __webpack_exports__["a"] = (indigo);
15058
-
15059
- /***/ }),
15060
- /* 248 */
15061
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15062
-
15063
- "use strict";
15064
- var pink = {
15065
- 50: '#fce4ec',
15066
- 100: '#f8bbd0',
15067
- 200: '#f48fb1',
15068
- 300: '#f06292',
15069
- 400: '#ec407a',
15070
- 500: '#e91e63',
15071
- 600: '#d81b60',
15072
- 700: '#c2185b',
15073
- 800: '#ad1457',
15074
- 900: '#880e4f',
15075
- A100: '#ff80ab',
15076
- A200: '#ff4081',
15077
- A400: '#f50057',
15078
- A700: '#c51162'
15079
- };
15080
- /* harmony default export */ __webpack_exports__["a"] = (pink);
15081
-
15082
- /***/ }),
15083
- /* 249 */
15084
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15085
-
15086
- "use strict";
15087
- var red = {
15088
- 50: '#ffebee',
15089
- 100: '#ffcdd2',
15090
- 200: '#ef9a9a',
15091
- 300: '#e57373',
15092
- 400: '#ef5350',
15093
- 500: '#f44336',
15094
- 600: '#e53935',
15095
- 700: '#d32f2f',
15096
- 800: '#c62828',
15097
- 900: '#b71c1c',
15098
- A100: '#ff8a80',
15099
- A200: '#ff5252',
15100
- A400: '#ff1744',
15101
- A700: '#d50000'
15102
- };
15103
- /* harmony default export */ __webpack_exports__["a"] = (red);
15104
-
15105
- /***/ }),
15106
- /* 250 */
15107
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15108
-
15109
- "use strict";
15110
- var orange = {
15111
- 50: '#fff3e0',
15112
- 100: '#ffe0b2',
15113
- 200: '#ffcc80',
15114
- 300: '#ffb74d',
15115
- 400: '#ffa726',
15116
- 500: '#ff9800',
15117
- 600: '#fb8c00',
15118
- 700: '#f57c00',
15119
- 800: '#ef6c00',
15120
- 900: '#e65100',
15121
- A100: '#ffd180',
15122
- A200: '#ffab40',
15123
- A400: '#ff9100',
15124
- A700: '#ff6d00'
15125
- };
15126
- /* harmony default export */ __webpack_exports__["a"] = (orange);
15127
-
15128
- /***/ }),
15129
- /* 251 */
15130
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15131
-
15132
- "use strict";
15133
- var blue = {
15134
- 50: '#e3f2fd',
15135
- 100: '#bbdefb',
15136
- 200: '#90caf9',
15137
- 300: '#64b5f6',
15138
- 400: '#42a5f5',
15139
- 500: '#2196f3',
15140
- 600: '#1e88e5',
15141
- 700: '#1976d2',
15142
- 800: '#1565c0',
15143
- 900: '#0d47a1',
15144
- A100: '#82b1ff',
15145
- A200: '#448aff',
15146
- A400: '#2979ff',
15147
- A700: '#2962ff'
15148
- };
15149
- /* harmony default export */ __webpack_exports__["a"] = (blue);
15150
-
15151
- /***/ }),
15152
- /* 252 */
15153
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15154
-
15155
- "use strict";
15156
- var green = {
15157
- 50: '#e8f5e9',
15158
- 100: '#c8e6c9',
15159
- 200: '#a5d6a7',
15160
- 300: '#81c784',
15161
- 400: '#66bb6a',
15162
- 500: '#4caf50',
15163
- 600: '#43a047',
15164
- 700: '#388e3c',
15165
- 800: '#2e7d32',
15166
- 900: '#1b5e20',
15167
- A100: '#b9f6ca',
15168
- A200: '#69f0ae',
15169
- A400: '#00e676',
15170
- A700: '#00c853'
15171
- };
15172
- /* harmony default export */ __webpack_exports__["a"] = (green);
15173
-
15174
- /***/ }),
15175
- /* 253 */
15176
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15177
-
15178
- "use strict";
15179
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__borders__ = __webpack_require__(254);
15180
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__borders__["a"]; });
15181
- /* unused harmony namespace reexport */
15182
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__breakpoints__ = __webpack_require__(147);
15183
- /* unused harmony reexport breakpoints */
15184
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__compose__ = __webpack_require__(43);
15185
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__compose__["a"]; });
15186
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__css__ = __webpack_require__(542);
15187
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_3__css__["a"]; });
15188
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__display__ = __webpack_require__(543);
15189
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_4__display__["a"]; });
15190
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__flexbox__ = __webpack_require__(256);
15191
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_5__flexbox__["a"]; });
15192
- /* unused harmony namespace reexport */
15193
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__grid__ = __webpack_require__(257);
15194
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_6__grid__["a"]; });
15195
- /* unused harmony namespace reexport */
15196
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__palette__ = __webpack_require__(258);
15197
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__palette__["a"]; });
15198
- /* unused harmony namespace reexport */
15199
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__positions__ = __webpack_require__(259);
15200
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__positions__["a"]; });
15201
- /* unused harmony namespace reexport */
15202
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__shadows__ = __webpack_require__(544);
15203
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__shadows__["a"]; });
15204
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__sizing__ = __webpack_require__(260);
15205
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return __WEBPACK_IMPORTED_MODULE_10__sizing__["a"]; });
15206
- /* unused harmony namespace reexport */
15207
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__spacing__ = __webpack_require__(261);
15208
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return __WEBPACK_IMPORTED_MODULE_11__spacing__["b"]; });
15209
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_11__spacing__["a"]; });
15210
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__style__ = __webpack_require__(40);
15211
- /* unused harmony reexport style */
15212
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__typography__ = __webpack_require__(264);
15213
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return __WEBPACK_IMPORTED_MODULE_13__typography__["a"]; });
15214
- /* unused harmony namespace reexport */
15215
- /** @license Material-UI v4.11.2
15216
- *
15217
- * This source code is licensed under the MIT license found in the
15218
- * LICENSE file in the root directory of this source tree.
15219
- */
15220
-
15221
-
15222
-
15223
-
15224
-
15225
-
15226
-
15227
-
15228
-
15229
-
15230
-
15231
-
15232
-
15233
-
15234
-
15235
-
15236
-
15237
-
15238
-
15239
-
15240
-
15241
-
15242
-
15243
- /***/ }),
15244
- /* 254 */
15245
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15246
-
15247
- "use strict";
15248
- /* unused harmony export border */
15249
- /* unused harmony export borderTop */
15250
- /* unused harmony export borderRight */
15251
- /* unused harmony export borderBottom */
15252
- /* unused harmony export borderLeft */
15253
- /* unused harmony export borderColor */
15254
- /* unused harmony export borderRadius */
15255
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(40);
15256
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(43);
15257
-
15258
-
15259
-
15260
- function getBorder(value) {
15261
- if (typeof value !== 'number') {
15262
- return value;
15263
- }
15264
-
15265
- return "".concat(value, "px solid");
15266
- }
15267
-
15268
- var border = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15269
- prop: 'border',
15270
- themeKey: 'borders',
15271
- transform: getBorder
15272
- });
15273
- var borderTop = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15274
- prop: 'borderTop',
15275
- themeKey: 'borders',
15276
- transform: getBorder
15277
- });
15278
- var borderRight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15279
- prop: 'borderRight',
15280
- themeKey: 'borders',
15281
- transform: getBorder
15282
- });
15283
- var borderBottom = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15284
- prop: 'borderBottom',
15285
- themeKey: 'borders',
15286
- transform: getBorder
15287
- });
15288
- var borderLeft = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15289
- prop: 'borderLeft',
15290
- themeKey: 'borders',
15291
- transform: getBorder
15292
- });
15293
- var borderColor = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15294
- prop: 'borderColor',
15295
- themeKey: 'palette'
15296
- });
15297
- var borderRadius = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15298
- prop: 'borderRadius',
15299
- themeKey: 'shape'
15300
- });
15301
- var borders = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderRadius);
15302
- /* harmony default export */ __webpack_exports__["a"] = (borders);
15303
-
15304
- /***/ }),
15305
- /* 255 */
15306
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15307
-
15308
- "use strict";
15309
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(2);
15310
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
15311
-
15312
- var responsivePropType = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.array]) : {};
15313
- /* harmony default export */ __webpack_exports__["a"] = (responsivePropType);
15314
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
15315
-
15316
- /***/ }),
15317
- /* 256 */
15318
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15319
-
15320
- "use strict";
15321
- /* unused harmony export flexBasis */
15322
- /* unused harmony export flexDirection */
15323
- /* unused harmony export flexWrap */
15324
- /* unused harmony export justifyContent */
15325
- /* unused harmony export alignItems */
15326
- /* unused harmony export alignContent */
15327
- /* unused harmony export order */
15328
- /* unused harmony export flex */
15329
- /* unused harmony export flexGrow */
15330
- /* unused harmony export flexShrink */
15331
- /* unused harmony export alignSelf */
15332
- /* unused harmony export justifyItems */
15333
- /* unused harmony export justifySelf */
15334
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(40);
15335
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(43);
15336
-
15337
-
15338
- var flexBasis = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15339
- prop: 'flexBasis'
15340
- });
15341
- var flexDirection = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15342
- prop: 'flexDirection'
15343
- });
15344
- var flexWrap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15345
- prop: 'flexWrap'
15346
- });
15347
- var justifyContent = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15348
- prop: 'justifyContent'
15349
- });
15350
- var alignItems = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15351
- prop: 'alignItems'
15352
- });
15353
- var alignContent = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15354
- prop: 'alignContent'
15355
- });
15356
- var order = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15357
- prop: 'order'
15358
- });
15359
- var flex = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15360
- prop: 'flex'
15361
- });
15362
- var flexGrow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15363
- prop: 'flexGrow'
15364
- });
15365
- var flexShrink = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15366
- prop: 'flexShrink'
15367
- });
15368
- var alignSelf = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15369
- prop: 'alignSelf'
15370
- });
15371
- var justifyItems = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15372
- prop: 'justifyItems'
15373
- });
15374
- var justifySelf = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15375
- prop: 'justifySelf'
15376
- });
15377
- var flexbox = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf);
15378
- /* harmony default export */ __webpack_exports__["a"] = (flexbox);
15379
-
15380
- /***/ }),
15381
- /* 257 */
15382
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15383
-
15384
- "use strict";
15385
- /* unused harmony export gridGap */
15386
- /* unused harmony export gridColumnGap */
15387
- /* unused harmony export gridRowGap */
15388
- /* unused harmony export gridColumn */
15389
- /* unused harmony export gridRow */
15390
- /* unused harmony export gridAutoFlow */
15391
- /* unused harmony export gridAutoColumns */
15392
- /* unused harmony export gridAutoRows */
15393
- /* unused harmony export gridTemplateColumns */
15394
- /* unused harmony export gridTemplateRows */
15395
- /* unused harmony export gridTemplateAreas */
15396
- /* unused harmony export gridArea */
15397
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(40);
15398
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(43);
15399
-
15400
-
15401
- var gridGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15402
- prop: 'gridGap'
15403
- });
15404
- var gridColumnGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15405
- prop: 'gridColumnGap'
15406
- });
15407
- var gridRowGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15408
- prop: 'gridRowGap'
15409
- });
15410
- var gridColumn = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15411
- prop: 'gridColumn'
15412
- });
15413
- var gridRow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15414
- prop: 'gridRow'
15415
- });
15416
- var gridAutoFlow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15417
- prop: 'gridAutoFlow'
15418
- });
15419
- var gridAutoColumns = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15420
- prop: 'gridAutoColumns'
15421
- });
15422
- var gridAutoRows = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15423
- prop: 'gridAutoRows'
15424
- });
15425
- var gridTemplateColumns = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15426
- prop: 'gridTemplateColumns'
15427
- });
15428
- var gridTemplateRows = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15429
- prop: 'gridTemplateRows'
15430
- });
15431
- var gridTemplateAreas = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15432
- prop: 'gridTemplateAreas'
15433
- });
15434
- var gridArea = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15435
- prop: 'gridArea'
15436
- });
15437
- var grid = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
15438
- /* harmony default export */ __webpack_exports__["a"] = (grid);
15439
-
15440
- /***/ }),
15441
- /* 258 */
15442
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15443
-
15444
- "use strict";
15445
- /* unused harmony export color */
15446
- /* unused harmony export bgcolor */
15447
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(40);
15448
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(43);
15449
-
15450
-
15451
- var color = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15452
- prop: 'color',
15453
- themeKey: 'palette'
15454
- });
15455
- var bgcolor = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15456
- prop: 'bgcolor',
15457
- cssProperty: 'backgroundColor',
15458
- themeKey: 'palette'
15459
- });
15460
- var palette = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(color, bgcolor);
15461
- /* harmony default export */ __webpack_exports__["a"] = (palette);
15462
-
15463
- /***/ }),
15464
- /* 259 */
15465
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15466
-
15467
- "use strict";
15468
- /* unused harmony export position */
15469
- /* unused harmony export zIndex */
15470
- /* unused harmony export top */
15471
- /* unused harmony export right */
15472
- /* unused harmony export bottom */
15473
- /* unused harmony export left */
15474
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(40);
15475
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(43);
15476
-
15477
-
15478
- var position = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15479
- prop: 'position'
15480
- });
15481
- var zIndex = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15482
- prop: 'zIndex',
15483
- themeKey: 'zIndex'
15484
- });
15485
- var top = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15486
- prop: 'top'
15487
- });
15488
- var right = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15489
- prop: 'right'
15490
- });
15491
- var bottom = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15492
- prop: 'bottom'
15493
- });
15494
- var left = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15495
- prop: 'left'
15496
- });
15497
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(position, zIndex, top, right, bottom, left));
15498
-
15499
- /***/ }),
15500
- /* 260 */
15501
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15502
-
15503
- "use strict";
15504
- /* unused harmony export width */
15505
- /* unused harmony export maxWidth */
15506
- /* unused harmony export minWidth */
15507
- /* unused harmony export height */
15508
- /* unused harmony export maxHeight */
15509
- /* unused harmony export minHeight */
15510
- /* unused harmony export sizeWidth */
15511
- /* unused harmony export sizeHeight */
15512
- /* unused harmony export boxSizing */
15513
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(40);
15514
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(43);
15515
-
15516
-
15517
-
15518
- function transform(value) {
15519
- return value <= 1 ? "".concat(value * 100, "%") : value;
15520
- }
15521
-
15522
- var width = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15523
- prop: 'width',
15524
- transform: transform
15525
- });
15526
- var maxWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15527
- prop: 'maxWidth',
15528
- transform: transform
15529
- });
15530
- var minWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15531
- prop: 'minWidth',
15532
- transform: transform
15533
- });
15534
- var height = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15535
- prop: 'height',
15536
- transform: transform
15537
- });
15538
- var maxHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15539
- prop: 'maxHeight',
15540
- transform: transform
15541
- });
15542
- var minHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15543
- prop: 'minHeight',
15544
- transform: transform
15545
- });
15546
- var sizeWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15547
- prop: 'size',
15548
- cssProperty: 'width',
15549
- transform: transform
15550
- });
15551
- var sizeHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15552
- prop: 'size',
15553
- cssProperty: 'height',
15554
- transform: transform
15555
- });
15556
- var boxSizing = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15557
- prop: 'boxSizing'
15558
- });
15559
- var sizing = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
15560
- /* harmony default export */ __webpack_exports__["a"] = (sizing);
15561
-
15562
- /***/ }),
15563
- /* 261 */
15564
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15565
-
15566
- "use strict";
15567
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createUnarySpacing;
15568
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(23);
15569
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(255);
15570
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(147);
15571
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__merge__ = __webpack_require__(96);
15572
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__memoize__ = __webpack_require__(546);
15573
-
15574
-
15575
-
15576
-
15577
-
15578
- var properties = {
15579
- m: 'margin',
15580
- p: 'padding'
15581
- };
15582
- var directions = {
15583
- t: 'Top',
15584
- r: 'Right',
15585
- b: 'Bottom',
15586
- l: 'Left',
15587
- x: ['Left', 'Right'],
15588
- y: ['Top', 'Bottom']
15589
- };
15590
- var aliases = {
15591
- marginX: 'mx',
15592
- marginY: 'my',
15593
- paddingX: 'px',
15594
- paddingY: 'py'
15595
- }; // memoize() impact:
15596
- // From 300,000 ops/sec
15597
- // To 350,000 ops/sec
15598
-
15599
- var getCssProperties = Object(__WEBPACK_IMPORTED_MODULE_4__memoize__["a" /* default */])(function (prop) {
15600
- // It's not a shorthand notation.
15601
- if (prop.length > 2) {
15602
- if (aliases[prop]) {
15603
- prop = aliases[prop];
15604
- } else {
15605
- return [prop];
15606
- }
15607
- }
15608
-
15609
- var _prop$split = prop.split(''),
15610
- _prop$split2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_prop$split, 2),
15611
- a = _prop$split2[0],
15612
- b = _prop$split2[1];
15613
-
15614
- var property = properties[a];
15615
- var direction = directions[b] || '';
15616
- return Array.isArray(direction) ? direction.map(function (dir) {
15617
- return property + dir;
15618
- }) : [property + direction];
15619
- });
15620
- var spacingKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
15621
- function createUnarySpacing(theme) {
15622
- var themeSpacing = theme.spacing || 8;
15623
-
15624
- if (typeof themeSpacing === 'number') {
15625
- return function (abs) {
15626
- if (process.env.NODE_ENV !== 'production') {
15627
- if (typeof abs !== 'number') {
15628
- console.error("Material-UI: Expected spacing argument to be a number, got ".concat(abs, "."));
15629
- }
15630
- }
15631
-
15632
- return themeSpacing * abs;
15633
- };
15634
- }
15635
-
15636
- if (Array.isArray(themeSpacing)) {
15637
- return function (abs) {
15638
- if (process.env.NODE_ENV !== 'production') {
15639
- if (abs > themeSpacing.length - 1) {
15640
- console.error(["Material-UI: The value provided (".concat(abs, ") overflows."), "The supported values are: ".concat(JSON.stringify(themeSpacing), "."), "".concat(abs, " > ").concat(themeSpacing.length - 1, ", you need to add the missing values.")].join('\n'));
15641
- }
15642
- }
15643
-
15644
- return themeSpacing[abs];
15645
- };
15646
- }
15647
-
15648
- if (typeof themeSpacing === 'function') {
15649
- return themeSpacing;
15650
- }
15651
-
15652
- if (process.env.NODE_ENV !== 'production') {
15653
- console.error(["Material-UI: The `theme.spacing` value (".concat(themeSpacing, ") is invalid."), 'It should be a number, an array or a function.'].join('\n'));
15654
- }
15655
-
15656
- return function () {
15657
- return undefined;
15658
- };
15659
- }
15660
-
15661
- function getValue(transformer, propValue) {
15662
- if (typeof propValue === 'string') {
15663
- return propValue;
15664
- }
15665
-
15666
- var abs = Math.abs(propValue);
15667
- var transformed = transformer(abs);
15668
-
15669
- if (propValue >= 0) {
15670
- return transformed;
15671
- }
15672
-
15673
- if (typeof transformed === 'number') {
15674
- return -transformed;
15675
- }
15676
-
15677
- return "-".concat(transformed);
15678
- }
15679
-
15680
- function getStyleFromPropValue(cssProperties, transformer) {
15681
- return function (propValue) {
15682
- return cssProperties.reduce(function (acc, cssProperty) {
15683
- acc[cssProperty] = getValue(transformer, propValue);
15684
- return acc;
15685
- }, {});
15686
- };
15687
- }
15688
-
15689
- function spacing(props) {
15690
- var theme = props.theme;
15691
- var transformer = createUnarySpacing(theme);
15692
- return Object.keys(props).map(function (prop) {
15693
- // Using a hash computation over an array iteration could be faster, but with only 28 items,
15694
- // it's doesn't worth the bundle size.
15695
- if (spacingKeys.indexOf(prop) === -1) {
15696
- return null;
15697
- }
15698
-
15699
- var cssProperties = getCssProperties(prop);
15700
- var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
15701
- var propValue = props[prop];
15702
- return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
15703
- }).reduce(__WEBPACK_IMPORTED_MODULE_3__merge__["a" /* default */], {});
15704
- }
15705
-
15706
- spacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce(function (obj, key) {
15707
- obj[key] = __WEBPACK_IMPORTED_MODULE_1__responsivePropType__["a" /* default */];
15708
- return obj;
15709
- }, {}) : {};
15710
- spacing.filterProps = spacingKeys;
15711
- /* harmony default export */ __webpack_exports__["b"] = (spacing);
15712
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
15713
-
15714
- /***/ }),
15715
- /* 262 */
15716
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15717
-
15718
- "use strict";
15719
- /* harmony export (immutable) */ __webpack_exports__["a"] = _arrayWithHoles;
15720
- function _arrayWithHoles(arr) {
15721
- if (Array.isArray(arr)) return arr;
15722
- }
15723
-
15724
- /***/ }),
15725
- /* 263 */
15726
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15727
-
15728
- "use strict";
15729
- /* harmony export (immutable) */ __webpack_exports__["a"] = _nonIterableRest;
15730
- function _nonIterableRest() {
15731
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15732
- }
15733
-
15734
- /***/ }),
15735
- /* 264 */
15736
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15737
-
15738
- "use strict";
15739
- /* unused harmony export fontFamily */
15740
- /* unused harmony export fontSize */
15741
- /* unused harmony export fontStyle */
15742
- /* unused harmony export fontWeight */
15743
- /* unused harmony export letterSpacing */
15744
- /* unused harmony export lineHeight */
15745
- /* unused harmony export textAlign */
15746
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(40);
15747
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(43);
15748
-
15749
-
15750
- var fontFamily = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15751
- prop: 'fontFamily',
15752
- themeKey: 'typography'
15753
- });
15754
- var fontSize = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15755
- prop: 'fontSize',
15756
- themeKey: 'typography'
15757
- });
15758
- var fontStyle = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15759
- prop: 'fontStyle',
15760
- themeKey: 'typography'
15761
- });
15762
- var fontWeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15763
- prop: 'fontWeight',
15764
- themeKey: 'typography'
15765
- });
15766
- var letterSpacing = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15767
- prop: 'letterSpacing'
15768
- });
15769
- var lineHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15770
- prop: 'lineHeight'
15771
- });
15772
- var textAlign = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15773
- prop: 'textAlign'
15774
- });
15775
- var typography = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign);
15776
- /* harmony default export */ __webpack_exports__["a"] = (typography);
15777
-
15778
- /***/ }),
15779
- /* 265 */
15780
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15781
-
15782
- "use strict";
15783
- // We need to centralize the zIndex definitions as they work
15784
- // like global values in the browser.
15785
- var zIndex = {
15786
- mobileStepper: 1000,
15787
- speedDial: 1050,
15788
- appBar: 1100,
15789
- drawer: 1200,
15790
- modal: 1300,
15791
- snackbar: 1400,
15792
- tooltip: 1500
15793
- };
15794
- /* harmony default export */ __webpack_exports__["a"] = (zIndex);
15795
-
15796
- /***/ }),
15797
- /* 266 */
15798
- /***/ (function(module, exports) {
15799
-
15800
- function _objectWithoutPropertiesLoose(source, excluded) {
15801
- if (source == null) return {};
15802
- var target = {};
15803
- var sourceKeys = Object.keys(source);
15804
- var key, i;
15805
-
15806
- for (i = 0; i < sourceKeys.length; i++) {
15807
- key = sourceKeys[i];
15808
- if (excluded.indexOf(key) >= 0) continue;
15809
- target[key] = source[key];
15810
- }
15811
-
15812
- return target;
15813
- }
15814
-
15815
- module.exports = _objectWithoutPropertiesLoose;
15816
-
15817
- /***/ }),
15818
- /* 267 */
15819
- /***/ (function(module, exports, __webpack_require__) {
15820
-
15821
- var arrayLikeToArray = __webpack_require__(268);
15822
-
15823
- function _unsupportedIterableToArray(o, minLen) {
15824
- if (!o) return;
15825
- if (typeof o === "string") return arrayLikeToArray(o, minLen);
15826
- var n = Object.prototype.toString.call(o).slice(8, -1);
15827
- if (n === "Object" && o.constructor) n = o.constructor.name;
15828
- if (n === "Map" || n === "Set") return Array.from(o);
15829
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
15830
- }
15831
-
15832
- module.exports = _unsupportedIterableToArray;
15833
-
15834
- /***/ }),
15835
- /* 268 */
15836
- /***/ (function(module, exports) {
15837
-
15838
- function _arrayLikeToArray(arr, len) {
15839
- if (len == null || len > arr.length) len = arr.length;
15840
-
15841
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
15842
- arr2[i] = arr[i];
15843
- }
15844
-
15845
- return arr2;
15846
- }
15847
-
15848
- module.exports = _arrayLikeToArray;
15849
-
15850
- /***/ }),
15851
- /* 269 */
15852
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15853
-
15854
- "use strict";
15855
- function areInputsEqual(newInputs, lastInputs) {
15856
- if (newInputs.length !== lastInputs.length) {
15857
- return false;
15858
- }
15859
- for (var i = 0; i < newInputs.length; i++) {
15860
- if (newInputs[i] !== lastInputs[i]) {
15861
- return false;
15862
- }
15863
- }
15864
- return true;
15865
- }
15866
-
15867
- function memoizeOne(resultFn, isEqual) {
15868
- if (isEqual === void 0) { isEqual = areInputsEqual; }
15869
- var lastThis;
15870
- var lastArgs = [];
15871
- var lastResult;
15872
- var calledOnce = false;
15873
- function memoized() {
15874
- var newArgs = [];
15875
- for (var _i = 0; _i < arguments.length; _i++) {
15876
- newArgs[_i] = arguments[_i];
15877
- }
15878
- if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
15879
- return lastResult;
15880
- }
15881
- lastResult = resultFn.apply(this, newArgs);
15882
- calledOnce = true;
15883
- lastThis = this;
15884
- lastArgs = newArgs;
15885
- return lastResult;
15886
- }
15887
- return memoized;
15888
- }
15889
-
15890
- /* harmony default export */ __webpack_exports__["a"] = (memoizeOne);
15891
-
15892
-
15893
- /***/ }),
15894
- /* 270 */
15895
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15896
-
15897
- "use strict";
15898
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StyleSheet; });
15899
- /*
15900
-
15901
- Based off glamor's StyleSheet, thanks Sunil ❤️
15902
-
15903
- high performance StyleSheet for css-in-js systems
15904
-
15905
- - uses multiple style tags behind the scenes for millions of rules
15906
- - uses `insertRule` for appending in production for *much* faster performance
15907
-
15908
- // usage
15909
-
15910
- import { StyleSheet } from '@emotion/sheet'
15911
-
15912
- let styleSheet = new StyleSheet({ key: '', container: document.head })
15913
-
15914
- styleSheet.insert('#box { border: 1px solid red; }')
15915
- - appends a css rule into the stylesheet
15916
-
15917
- styleSheet.flush()
15918
- - empties the stylesheet of all its contents
15919
-
15920
- */
15921
- // $FlowFixMe
15922
- function sheetForTag(tag) {
15923
- if (tag.sheet) {
15924
- // $FlowFixMe
15925
- return tag.sheet;
15926
- } // this weirdness brought to you by firefox
15927
-
15928
- /* istanbul ignore next */
15929
-
15930
-
15931
- for (var i = 0; i < document.styleSheets.length; i++) {
15932
- if (document.styleSheets[i].ownerNode === tag) {
15933
- // $FlowFixMe
15934
- return document.styleSheets[i];
15935
- }
15936
- }
15937
- }
15938
-
15939
- function createStyleElement(options) {
15940
- var tag = document.createElement('style');
15941
- tag.setAttribute('data-emotion', options.key);
15942
-
15943
- if (options.nonce !== undefined) {
15944
- tag.setAttribute('nonce', options.nonce);
15945
- }
15946
-
15947
- tag.appendChild(document.createTextNode(''));
15948
- return tag;
15949
- }
15950
-
15951
- var StyleSheet =
15952
- /*#__PURE__*/
15953
- function () {
15954
- function StyleSheet(options) {
15955
- this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy;
15956
- this.tags = [];
15957
- this.ctr = 0;
15958
- this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
15959
-
15960
- this.key = options.key;
15961
- this.container = options.container;
15962
- this.before = null;
15963
- }
15964
-
15965
- var _proto = StyleSheet.prototype;
15966
-
15967
- _proto.insert = function insert(rule) {
15968
- // the max length is how many rules we have per style tag, it's 65000 in speedy mode
15969
- // it's 1 in dev because we insert source maps that map a single rule to a location
15970
- // and you can only have one source map per style tag
15971
- if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
15972
- var _tag = createStyleElement(this);
15973
-
15974
- var before;
15975
-
15976
- if (this.tags.length === 0) {
15977
- before = this.before;
15978
- } else {
15979
- before = this.tags[this.tags.length - 1].nextSibling;
15980
- }
15981
-
15982
- this.container.insertBefore(_tag, before);
15983
- this.tags.push(_tag);
15984
- }
15985
-
15986
- var tag = this.tags[this.tags.length - 1];
15987
-
15988
- if (this.isSpeedy) {
15989
- var sheet = sheetForTag(tag);
15990
-
15991
- try {
15992
- // this is a really hot path
15993
- // we check the second character first because having "i"
15994
- // as the second character will happen less often than
15995
- // having "@" as the first character
15996
- var isImportRule = rule.charCodeAt(1) === 105 && rule.charCodeAt(0) === 64; // this is the ultrafast version, works across browsers
15997
- // the big drawback is that the css won't be editable in devtools
15998
-
15999
- sheet.insertRule(rule, // we need to insert @import rules before anything else
16000
- // otherwise there will be an error
16001
- // technically this means that the @import rules will
16002
- // _usually_(not always since there could be multiple style tags)
16003
- // be the first ones in prod and generally later in dev
16004
- // this shouldn't really matter in the real world though
16005
- // @import is generally only used for font faces from google fonts and etc.
16006
- // so while this could be technically correct then it would be slower and larger
16007
- // for a tiny bit of correctness that won't matter in the real world
16008
- isImportRule ? 0 : sheet.cssRules.length);
16009
- } catch (e) {
16010
- if (process.env.NODE_ENV !== 'production') {
16011
- console.warn("There was a problem inserting the following rule: \"" + rule + "\"", e);
16012
- }
16013
- }
16014
- } else {
16015
- tag.appendChild(document.createTextNode(rule));
16016
- }
16017
-
16018
- this.ctr++;
16019
- };
16020
-
16021
- _proto.flush = function flush() {
16022
- // $FlowFixMe
16023
- this.tags.forEach(function (tag) {
16024
- return tag.parentNode.removeChild(tag);
16025
- });
16026
- this.tags = [];
16027
- this.ctr = 0;
16028
- };
16029
-
16030
- return StyleSheet;
16031
- }();
16032
-
16033
-
16034
-
16035
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
16036
-
16037
- /***/ }),
16038
- /* 271 */
16039
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
16040
-
16041
- "use strict";
16042
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; });
16043
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Emotion; });
16044
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ThemeContext; });
16045
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createEmotionProps; });
16046
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return hasOwnProperty; });
16047
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return withEmotionCache; });
16048
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__ = __webpack_require__(100);
16049
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__);
16050
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
16051
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
16052
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(150);
16053
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_utils__ = __webpack_require__(272);
16054
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__ = __webpack_require__(151);
16055
-
16056
-
16057
-
16058
-
16059
-
16060
-
16061
- var hasOwnProperty = Object.prototype.hasOwnProperty;
16062
-
16063
- var EmotionCacheContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])( // we're doing this to avoid preconstruct's dead code elimination in this one case
16064
- // because this module is primarily intended for the browser and node
16065
- // but it's also required in react native and similar environments sometimes
16066
- // and we could have a special build just for that
16067
- // but this is much easier and the native packages
16068
- // might use a different theme context in the future anyway
16069
- typeof HTMLElement !== 'undefined' ? Object(__WEBPACK_IMPORTED_MODULE_2__emotion_cache__["a" /* default */])() : null);
16070
- var ThemeContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])({});
16071
- var CacheProvider = EmotionCacheContext.Provider;
16072
-
16073
- var withEmotionCache = function withEmotionCache(func) {
16074
- var render = function render(props, ref) {
16075
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(EmotionCacheContext.Consumer, null, function (cache) {
16076
- return func(props, cache, ref);
16077
- });
16078
- }; // $FlowFixMe
16079
-
16080
-
16081
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["forwardRef"])(render);
16082
- };
16083
-
16084
- // thus we only need to replace what is a valid character for JS, but not for CSS
16085
-
16086
- var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
16087
- return identifier.replace(/\$/g, '-');
16088
- };
16089
-
16090
- var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
16091
- var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
16092
- var createEmotionProps = function createEmotionProps(type, props) {
16093
- if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
16094
- props.css.indexOf(':') !== -1) {
16095
- throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css`" + props.css + "`");
16096
- }
16097
-
16098
- var newProps = {};
16099
-
16100
- for (var key in props) {
16101
- if (hasOwnProperty.call(props, key)) {
16102
- newProps[key] = props[key];
16103
- }
16104
- }
16105
-
16106
- newProps[typePropName] = type; // TODO: check if this still works with all of those different JSX functions
16107
-
16108
- if (process.env.NODE_ENV !== 'production') {
16109
- var error = new Error();
16110
-
16111
- if (error.stack) {
16112
- // chrome
16113
- var match = error.stack.match(/at (?:Object\.|Module\.|)(?:jsx|createEmotionProps).*\n\s+at (?:Object\.|)([A-Z][A-Za-z$]+) /);
16114
-
16115
- if (!match) {
16116
- // safari and firefox
16117
- match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/);
16118
- }
16119
-
16120
- if (match) {
16121
- newProps[labelPropName] = sanitizeIdentifier(match[1]);
16122
- }
16123
- }
16124
- }
16125
-
16126
- return newProps;
16127
- };
16128
-
16129
- var render = function render(cache, props, theme, ref) {
16130
- var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works
16131
- // not passing the registered cache to serializeStyles because it would
16132
- // make certain babel optimisations not possible
16133
-
16134
- if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
16135
- cssProp = cache.registered[cssProp];
16136
- }
16137
-
16138
- var type = props[typePropName];
16139
- var registeredStyles = [cssProp];
16140
- var className = '';
16141
-
16142
- if (typeof props.className === 'string') {
16143
- className = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */])(cache.registered, registeredStyles, props.className);
16144
- } else if (props.className != null) {
16145
- className = props.className + " ";
16146
- }
16147
-
16148
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])(registeredStyles);
16149
-
16150
- if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
16151
- var labelFromStack = props[labelPropName];
16152
-
16153
- if (labelFromStack) {
16154
- serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([serialized, 'label:' + labelFromStack + ';']);
16155
- }
16156
- }
16157
-
16158
- var rules = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(cache, serialized, typeof type === 'string');
16159
- className += cache.key + "-" + serialized.name;
16160
- var newProps = {};
16161
-
16162
- for (var key in props) {
16163
- if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
16164
- newProps[key] = props[key];
16165
- }
16166
- }
16167
-
16168
- newProps.ref = ref;
16169
- newProps.className = className;
16170
- var ele = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(type, newProps);
16171
-
16172
- return ele;
16173
- }; // eslint-disable-next-line no-undef
16174
-
16175
-
16176
- var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
16177
- if (typeof props.css === 'function') {
16178
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) {
16179
- return render(cache, props, theme, ref);
16180
- });
16181
- }
16182
-
16183
- return render(cache, props, null, ref);
16184
- });
16185
-
16186
- if (process.env.NODE_ENV !== 'production') {
16187
- Emotion.displayName = 'EmotionCssPropInternal';
16188
- }
16189
-
16190
-
16191
-
16192
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
16193
-
16194
- /***/ }),
16195
- /* 272 */
16196
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
16197
-
16198
- "use strict";
16199
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getRegisteredStyles; });
16200
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return insertStyles; });
16201
- var isBrowser = "object" !== 'undefined';
16202
- function getRegisteredStyles(registered, registeredStyles, classNames) {
16203
- var rawClassName = '';
16204
- classNames.split(' ').forEach(function (className) {
16205
- if (registered[className] !== undefined) {
16206
- registeredStyles.push(registered[className]);
16207
- } else {
16208
- rawClassName += className + " ";
16209
- }
16210
- });
16211
- return rawClassName;
16212
- }
16213
- var insertStyles = function insertStyles(cache, serialized, isStringTag) {
16214
- var className = cache.key + "-" + serialized.name;
16215
-
16216
- if ( // we only need to add the styles to the registered cache if the
16217
- // class name could be used further down
16218
- // the tree but if it's a string tag, we know it won't
16219
- // so we don't have to add it to registered cache.
16220
- // this improves memory usage since we can avoid storing the whole style string
16221
- (isStringTag === false || // we need to always store it if we're in compat mode and
16222
- // in node since emotion-server relies on whether a style is in
16223
- // the registered cache to know whether a style is global or not
16224
- // also, note that this check will be dead code eliminated in the browser
16225
- isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
16226
- cache.registered[className] = serialized.styles;
16227
- }
16228
-
16229
- if (cache.inserted[serialized.name] === undefined) {
16230
- var current = serialized;
16231
-
16232
- do {
16233
- var maybeStyles = cache.insert("." + className, current, cache.sheet, true);
16234
-
16235
- current = current.next;
16236
- } while (current !== undefined);
16237
- }
16238
- };
16239
-
16240
-
16241
-
16242
-
16243
- /***/ }),
16244
- /* 273 */
16245
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
16246
-
16247
- "use strict";
16248
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return exportedEqual; });
16249
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cleanValue; });
16250
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return scrollIntoView; });
16251
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return classNames; });
16252
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return noop; });
16253
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return components; });
16254
- /* unused harmony export G */
16255
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return MenuPlacer; });
16256
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return containerCSS; });
16257
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return css; });
16258
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return clearIndicatorCSS; });
16259
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return dropdownIndicatorCSS; });
16260
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return groupHeadingCSS; });
16261
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return indicatorSeparatorCSS; });
16262
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return groupCSS; });
16263
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return inputCSS; });
16264
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return indicatorsContainerCSS; });
16265
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return loadingMessageCSS; });
16266
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return menuListCSS; });
16267
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return loadingIndicatorCSS; });
16268
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return menuCSS; });
16269
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return menuPortalCSS; });
16270
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return multiValueCSS; });
16271
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return multiValueLabelCSS; });
16272
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return multiValueRemoveCSS; });
16273
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return noOptionsMessageCSS; });
16274
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return optionCSS; });
16275
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return placeholderCSS; });
16276
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return css$1; });
16277
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return valueContainerCSS; });
16278
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isTouchCapable; });
16279
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isMobileDevice; });
16280
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return defaultComponents; });
16281
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isDocumentElement; });
16282
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
16283
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
16284
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(18);
16285
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(54);
16286
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__ = __webpack_require__(49);
16287
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__ = __webpack_require__(76);
16288
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(77);
16289
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(78);
16290
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(0);
16291
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
16292
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__emotion_core__ = __webpack_require__(149);
16293
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom__ = __webpack_require__(14);
16294
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_dom__);
16295
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__ = __webpack_require__(48);
16296
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__emotion_css__ = __webpack_require__(79);
16297
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__babel_runtime_helpers_esm_taggedTemplateLiteral__ = __webpack_require__(563);
16298
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_input_autosize__ = __webpack_require__(274);
16299
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_input_autosize__);
16300
-
16301
-
16302
-
16303
-
16304
-
16305
-
16306
-
16307
-
16308
-
16309
-
16310
-
16311
-
16312
-
16313
-
16314
-
16315
-
16316
- // ==============================
16317
- // NO OP
16318
- // ==============================
16319
- var noop = function noop() {};
16320
- // Class Name Prefixer
16321
- // ==============================
16322
-
16323
- /**
16324
- String representation of component state for styling with class names.
16325
-
16326
- Expects an array of strings OR a string/object pair:
16327
- - className(['comp', 'comp-arg', 'comp-arg-2'])
16328
- @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
16329
- - className('comp', { some: true, state: false })
16330
- @returns 'react-select__comp react-select__comp--some'
16331
- */
16332
-
16333
- function applyPrefixToName(prefix, name) {
16334
- if (!name) {
16335
- return prefix;
16336
- } else if (name[0] === '-') {
16337
- return prefix + name;
16338
- } else {
16339
- return prefix + '__' + name;
16340
- }
16341
- }
16342
-
16343
- function classNames(prefix, state, className) {
16344
- var arr = [className];
16345
-
16346
- if (state && prefix) {
16347
- for (var key in state) {
16348
- if (state.hasOwnProperty(key) && state[key]) {
16349
- arr.push("".concat(applyPrefixToName(prefix, key)));
16350
- }
16351
- }
16352
- }
16353
-
16354
- return arr.filter(function (i) {
16355
- return i;
16356
- }).map(function (i) {
16357
- return String(i).trim();
16358
- }).join(' ');
16359
- } // ==============================
16360
- // Clean Value
16361
- // ==============================
16362
-
16363
- var cleanValue = function cleanValue(value) {
16364
- if (Array.isArray(value)) return value.filter(Boolean);
16365
- if (Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(value) === 'object' && value !== null) return [value];
16366
- return [];
16367
- }; // ==============================
16368
- // Handle Input Change
16369
- // ==============================
16370
-
16371
- function handleInputChange(inputValue, actionMeta, onInputChange) {
16372
- if (onInputChange) {
16373
- var newValue = onInputChange(inputValue, actionMeta);
16374
- if (typeof newValue === 'string') return newValue;
16375
- }
16376
-
16377
- return inputValue;
16378
- } // ==============================
16379
- // Scroll Helpers
16380
- // ==============================
16381
-
16382
- function isDocumentElement(el) {
16383
- return [document.documentElement, document.body, window].indexOf(el) > -1;
16384
- } // Normalized Scroll Top
16385
- // ------------------------------
16386
-
16387
- function getScrollTop(el) {
16388
- if (isDocumentElement(el)) {
16389
- return window.pageYOffset;
16390
- }
16391
-
16392
- return el.scrollTop;
16393
- }
16394
- function scrollTo(el, top) {
16395
- // with a scroll distance, we perform scroll on the element
16396
- if (isDocumentElement(el)) {
16397
- window.scrollTo(0, top);
16398
- return;
16399
- }
16400
-
16401
- el.scrollTop = top;
16402
- } // Get Scroll Parent
16403
- // ------------------------------
16404
-
16405
- function getScrollParent(element) {
16406
- var style = getComputedStyle(element);
16407
- var excludeStaticParent = style.position === 'absolute';
16408
- var overflowRx = /(auto|scroll)/;
16409
- var docEl = document.documentElement; // suck it, flow...
16410
-
16411
- if (style.position === 'fixed') return docEl;
16412
-
16413
- for (var parent = element; parent = parent.parentElement;) {
16414
- style = getComputedStyle(parent);
16415
-
16416
- if (excludeStaticParent && style.position === 'static') {
16417
- continue;
16418
- }
16419
-
16420
- if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
16421
- return parent;
16422
- }
16423
- }
16424
-
16425
- return docEl;
16426
- } // Animated Scroll To
16427
- // ------------------------------
16428
-
16429
- /**
16430
- @param t: time (elapsed)
16431
- @param b: initial value
16432
- @param c: amount of change
16433
- @param d: duration
16434
- */
16435
-
16436
- function easeOutCubic(t, b, c, d) {
16437
- return c * ((t = t / d - 1) * t * t + 1) + b;
16438
- }
16439
-
16440
- function animatedScrollTo(element, to) {
16441
- var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;
16442
- var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop;
16443
- var start = getScrollTop(element);
16444
- var change = to - start;
16445
- var increment = 10;
16446
- var currentTime = 0;
16447
-
16448
- function animateScroll() {
16449
- currentTime += increment;
16450
- var val = easeOutCubic(currentTime, start, change, duration);
16451
- scrollTo(element, val);
16452
-
16453
- if (currentTime < duration) {
16454
- window.requestAnimationFrame(animateScroll);
16455
- } else {
16456
- callback(element);
16457
- }
16458
- }
16459
-
16460
- animateScroll();
16461
- } // Scroll Into View
16462
- // ------------------------------
16463
-
16464
- function scrollIntoView(menuEl, focusedEl) {
16465
- var menuRect = menuEl.getBoundingClientRect();
16466
- var focusedRect = focusedEl.getBoundingClientRect();
16467
- var overScroll = focusedEl.offsetHeight / 3;
16468
-
16469
- if (focusedRect.bottom + overScroll > menuRect.bottom) {
16470
- scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
16471
- } else if (focusedRect.top - overScroll < menuRect.top) {
16472
- scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
16473
- }
16474
- } // ==============================
16475
- // Get bounding client object
16476
- // ==============================
16477
- // cannot get keys using array notation with DOMRect
16478
-
16479
- function getBoundingClientObj(element) {
16480
- var rect = element.getBoundingClientRect();
16481
- return {
16482
- bottom: rect.bottom,
16483
- height: rect.height,
16484
- left: rect.left,
16485
- right: rect.right,
16486
- top: rect.top,
16487
- width: rect.width
16488
- };
16489
- }
16490
- // Touch Capability Detector
16491
- // ==============================
16492
-
16493
- function isTouchCapable() {
16494
- try {
16495
- document.createEvent('TouchEvent');
16496
- return true;
16497
- } catch (e) {
16498
- return false;
16499
- }
16500
- } // ==============================
16501
- // Mobile Device Detector
16502
- // ==============================
16503
-
16504
- function isMobileDevice() {
16505
- try {
16506
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
16507
- } catch (e) {
16508
- return false;
16509
- }
16510
- }
16511
-
16512
- 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; }
16513
-
16514
- 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) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(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; }
16515
-
16516
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
16517
-
16518
- 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; } }
16519
- function getMenuPlacement(_ref) {
16520
- var maxHeight = _ref.maxHeight,
16521
- menuEl = _ref.menuEl,
16522
- minHeight = _ref.minHeight,
16523
- placement = _ref.placement,
16524
- shouldScroll = _ref.shouldScroll,
16525
- isFixedPosition = _ref.isFixedPosition,
16526
- theme = _ref.theme;
16527
- var spacing = theme.spacing;
16528
- var scrollParent = getScrollParent(menuEl);
16529
- var defaultState = {
16530
- placement: 'bottom',
16531
- maxHeight: maxHeight
16532
- }; // something went wrong, return default state
16533
-
16534
- if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when
16535
- // the menu is rendered
16536
-
16537
- var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),
16538
- scrollHeight = _scrollParent$getBoun.height;
16539
-
16540
- var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),
16541
- menuBottom = _menuEl$getBoundingCl.bottom,
16542
- menuHeight = _menuEl$getBoundingCl.height,
16543
- menuTop = _menuEl$getBoundingCl.top;
16544
-
16545
- var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),
16546
- containerTop = _menuEl$offsetParent$.top;
16547
-
16548
- var viewHeight = window.innerHeight;
16549
- var scrollTop = getScrollTop(scrollParent);
16550
- var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
16551
- var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
16552
- var viewSpaceAbove = containerTop - marginTop;
16553
- var viewSpaceBelow = viewHeight - menuTop;
16554
- var scrollSpaceAbove = viewSpaceAbove + scrollTop;
16555
- var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
16556
- var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
16557
- var scrollUp = scrollTop + menuTop - marginTop;
16558
- var scrollDuration = 160;
16559
-
16560
- switch (placement) {
16561
- case 'auto':
16562
- case 'bottom':
16563
- // 1: the menu will fit, do nothing
16564
- if (viewSpaceBelow >= menuHeight) {
16565
- return {
16566
- placement: 'bottom',
16567
- maxHeight: maxHeight
16568
- };
16569
- } // 2: the menu will fit, if scrolled
16570
-
16571
-
16572
- if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
16573
- if (shouldScroll) {
16574
- animatedScrollTo(scrollParent, scrollDown, scrollDuration);
16575
- }
16576
-
16577
- return {
16578
- placement: 'bottom',
16579
- maxHeight: maxHeight
16580
- };
16581
- } // 3: the menu will fit, if constrained
16582
-
16583
-
16584
- if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
16585
- if (shouldScroll) {
16586
- animatedScrollTo(scrollParent, scrollDown, scrollDuration);
16587
- } // we want to provide as much of the menu as possible to the user,
16588
- // so give them whatever is available below rather than the minHeight.
16589
-
16590
-
16591
- var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
16592
- return {
16593
- placement: 'bottom',
16594
- maxHeight: constrainedHeight
16595
- };
16596
- } // 4. Forked beviour when there isn't enough space below
16597
- // AUTO: flip the menu, render above
16598
-
16599
-
16600
- if (placement === 'auto' || isFixedPosition) {
16601
- // may need to be constrained after flipping
16602
- var _constrainedHeight = maxHeight;
16603
- var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
16604
-
16605
- if (spaceAbove >= minHeight) {
16606
- _constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight);
16607
- }
16608
-
16609
- return {
16610
- placement: 'top',
16611
- maxHeight: _constrainedHeight
16612
- };
16613
- } // BOTTOM: allow browser to increase scrollable area and immediately set scroll
16614
-
16615
-
16616
- if (placement === 'bottom') {
16617
- scrollTo(scrollParent, scrollDown);
16618
- return {
16619
- placement: 'bottom',
16620
- maxHeight: maxHeight
16621
- };
16622
- }
16623
-
16624
- break;
16625
-
16626
- case 'top':
16627
- // 1: the menu will fit, do nothing
16628
- if (viewSpaceAbove >= menuHeight) {
16629
- return {
16630
- placement: 'top',
16631
- maxHeight: maxHeight
16632
- };
16633
- } // 2: the menu will fit, if scrolled
16634
-
16635
-
16636
- if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
16637
- if (shouldScroll) {
16638
- animatedScrollTo(scrollParent, scrollUp, scrollDuration);
16639
- }
16640
-
16641
- return {
16642
- placement: 'top',
16643
- maxHeight: maxHeight
16644
- };
16645
- } // 3: the menu will fit, if constrained
16646
-
16647
-
16648
- if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
16649
- var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user,
16650
- // so give them whatever is available below rather than the minHeight.
16651
-
16652
- if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
16653
- _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;
16654
- }
16655
-
16656
- if (shouldScroll) {
16657
- animatedScrollTo(scrollParent, scrollUp, scrollDuration);
16658
- }
16659
-
16660
- return {
16661
- placement: 'top',
16662
- maxHeight: _constrainedHeight2
16663
- };
16664
- } // 4. not enough space, the browser WILL NOT increase scrollable area when
16665
- // absolutely positioned element rendered above the viewport (only below).
16666
- // Flip the menu, render below
16667
-
16668
-
16669
- return {
16670
- placement: 'bottom',
16671
- maxHeight: maxHeight
16672
- };
16673
-
16674
- default:
16675
- throw new Error("Invalid placement provided \"".concat(placement, "\"."));
16676
- } // fulfil contract with flow: implicit return value of undefined
16677
-
16678
-
16679
- return defaultState;
16680
- } // Menu Component
16681
- // ------------------------------
16682
-
16683
- function alignToControl(placement) {
16684
- var placementToCSSProp = {
16685
- bottom: 'top',
16686
- top: 'bottom'
16687
- };
16688
- return placement ? placementToCSSProp[placement] : 'bottom';
16689
- }
16690
-
16691
- var coercePlacement = function coercePlacement(p) {
16692
- return p === 'auto' ? 'bottom' : p;
16693
- };
16694
-
16695
- var menuCSS = function menuCSS(_ref2) {
16696
- var _ref3;
16697
-
16698
- var placement = _ref2.placement,
16699
- _ref2$theme = _ref2.theme,
16700
- borderRadius = _ref2$theme.borderRadius,
16701
- spacing = _ref2$theme.spacing,
16702
- colors = _ref2$theme.colors;
16703
- return _ref3 = {
16704
- label: 'menu'
16705
- }, Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, alignToControl(placement), '100%'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "backgroundColor", colors.neutral0), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "borderRadius", borderRadius), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "boxShadow", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "marginBottom", spacing.menuGutter), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "marginTop", spacing.menuGutter), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "position", 'absolute'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "width", '100%'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "zIndex", 1), _ref3;
16706
- };
16707
- var PortalPlacementContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_8_react__["createContext"])({
16708
- getPortalPlacement: null
16709
- }); // NOTE: internal only
16710
-
16711
- var MenuPlacer = /*#__PURE__*/function (_Component) {
16712
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__["a" /* default */])(MenuPlacer, _Component);
16713
-
16714
- var _super = _createSuper(MenuPlacer);
16715
-
16716
- function MenuPlacer() {
16717
- var _this;
16718
-
16719
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, MenuPlacer);
16720
-
16721
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
16722
- args[_key] = arguments[_key];
16723
- }
16724
-
16725
- _this = _super.call.apply(_super, [this].concat(args));
16726
- _this.state = {
16727
- maxHeight: _this.props.maxMenuHeight,
16728
- placement: null
16729
- };
16730
-
16731
- _this.getPlacement = function (ref) {
16732
- var _this$props = _this.props,
16733
- minMenuHeight = _this$props.minMenuHeight,
16734
- maxMenuHeight = _this$props.maxMenuHeight,
16735
- menuPlacement = _this$props.menuPlacement,
16736
- menuPosition = _this$props.menuPosition,
16737
- menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,
16738
- theme = _this$props.theme;
16739
- if (!ref) return; // DO NOT scroll if position is fixed
16740
-
16741
- var isFixedPosition = menuPosition === 'fixed';
16742
- var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;
16743
- var state = getMenuPlacement({
16744
- maxHeight: maxMenuHeight,
16745
- menuEl: ref,
16746
- minHeight: minMenuHeight,
16747
- placement: menuPlacement,
16748
- shouldScroll: shouldScroll,
16749
- isFixedPosition: isFixedPosition,
16750
- theme: theme
16751
- });
16752
- var getPortalPlacement = _this.context.getPortalPlacement;
16753
- if (getPortalPlacement) getPortalPlacement(state);
16754
-
16755
- _this.setState(state);
16756
- };
16757
-
16758
- _this.getUpdatedProps = function () {
16759
- var menuPlacement = _this.props.menuPlacement;
16760
- var placement = _this.state.placement || coercePlacement(menuPlacement);
16761
- return _objectSpread(_objectSpread({}, _this.props), {}, {
16762
- placement: placement,
16763
- maxHeight: _this.state.maxHeight
16764
- });
16765
- };
16766
-
16767
- return _this;
16768
- }
16769
-
16770
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__["a" /* default */])(MenuPlacer, [{
16771
- key: "render",
16772
- value: function render() {
16773
- var children = this.props.children;
16774
- return children({
16775
- ref: this.getPlacement,
16776
- placerProps: this.getUpdatedProps()
16777
- });
16778
- }
16779
- }]);
16780
-
16781
- return MenuPlacer;
16782
- }(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);
16783
- MenuPlacer.contextType = PortalPlacementContext;
16784
-
16785
- var Menu = function Menu(props) {
16786
- var children = props.children,
16787
- className = props.className,
16788
- cx = props.cx,
16789
- getStyles = props.getStyles,
16790
- innerRef = props.innerRef,
16791
- innerProps = props.innerProps;
16792
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16793
- css: getStyles('menu', props),
16794
- className: cx({
16795
- menu: true
16796
- }, className)
16797
- }, innerProps, {
16798
- ref: innerRef
16799
- }), children);
16800
- };
16801
- // Menu List
16802
- // ==============================
16803
-
16804
- var menuListCSS = function menuListCSS(_ref4) {
16805
- var maxHeight = _ref4.maxHeight,
16806
- baseUnit = _ref4.theme.spacing.baseUnit;
16807
- return {
16808
- maxHeight: maxHeight,
16809
- overflowY: 'auto',
16810
- paddingBottom: baseUnit,
16811
- paddingTop: baseUnit,
16812
- position: 'relative',
16813
- // required for offset[Height, Top] > keyboard scroll
16814
- WebkitOverflowScrolling: 'touch'
16815
- };
16816
- };
16817
- var MenuList = function MenuList(props) {
16818
- var children = props.children,
16819
- className = props.className,
16820
- cx = props.cx,
16821
- getStyles = props.getStyles,
16822
- isMulti = props.isMulti,
16823
- innerRef = props.innerRef;
16824
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16825
- css: getStyles('menuList', props),
16826
- className: cx({
16827
- 'menu-list': true,
16828
- 'menu-list--is-multi': isMulti
16829
- }, className),
16830
- ref: innerRef
16831
- }, children);
16832
- }; // ==============================
16833
- // Menu Notices
16834
- // ==============================
16835
-
16836
- var noticeCSS = function noticeCSS(_ref5) {
16837
- var _ref5$theme = _ref5.theme,
16838
- baseUnit = _ref5$theme.spacing.baseUnit,
16839
- colors = _ref5$theme.colors;
16840
- return {
16841
- color: colors.neutral40,
16842
- padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px"),
16843
- textAlign: 'center'
16844
- };
16845
- };
16846
-
16847
- var noOptionsMessageCSS = noticeCSS;
16848
- var loadingMessageCSS = noticeCSS;
16849
- var NoOptionsMessage = function NoOptionsMessage(props) {
16850
- var children = props.children,
16851
- className = props.className,
16852
- cx = props.cx,
16853
- getStyles = props.getStyles,
16854
- innerProps = props.innerProps;
16855
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16856
- css: getStyles('noOptionsMessage', props),
16857
- className: cx({
16858
- 'menu-notice': true,
16859
- 'menu-notice--no-options': true
16860
- }, className)
16861
- }, innerProps), children);
16862
- };
16863
- NoOptionsMessage.defaultProps = {
16864
- children: 'No options'
16865
- };
16866
- var LoadingMessage = function LoadingMessage(props) {
16867
- var children = props.children,
16868
- className = props.className,
16869
- cx = props.cx,
16870
- getStyles = props.getStyles,
16871
- innerProps = props.innerProps;
16872
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16873
- css: getStyles('loadingMessage', props),
16874
- className: cx({
16875
- 'menu-notice': true,
16876
- 'menu-notice--loading': true
16877
- }, className)
16878
- }, innerProps), children);
16879
- };
16880
- LoadingMessage.defaultProps = {
16881
- children: 'Loading...'
16882
- }; // ==============================
16883
- // Menu Portal
16884
- // ==============================
16885
-
16886
- var menuPortalCSS = function menuPortalCSS(_ref6) {
16887
- var rect = _ref6.rect,
16888
- offset = _ref6.offset,
16889
- position = _ref6.position;
16890
- return {
16891
- left: rect.left,
16892
- position: position,
16893
- top: offset,
16894
- width: rect.width,
16895
- zIndex: 1
16896
- };
16897
- };
16898
- var MenuPortal = /*#__PURE__*/function (_Component2) {
16899
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__["a" /* default */])(MenuPortal, _Component2);
16900
-
16901
- var _super2 = _createSuper(MenuPortal);
16902
-
16903
- function MenuPortal() {
16904
- var _this2;
16905
-
16906
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, MenuPortal);
16907
-
16908
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
16909
- args[_key2] = arguments[_key2];
16910
- }
16911
-
16912
- _this2 = _super2.call.apply(_super2, [this].concat(args));
16913
- _this2.state = {
16914
- placement: null
16915
- };
16916
-
16917
- _this2.getPortalPlacement = function (_ref7) {
16918
- var placement = _ref7.placement;
16919
- var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed
16920
-
16921
- if (placement !== initialPlacement) {
16922
- _this2.setState({
16923
- placement: placement
16924
- });
16925
- }
16926
- };
16927
-
16928
- return _this2;
16929
- }
16930
-
16931
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__["a" /* default */])(MenuPortal, [{
16932
- key: "render",
16933
- value: function render() {
16934
- var _this$props2 = this.props,
16935
- appendTo = _this$props2.appendTo,
16936
- children = _this$props2.children,
16937
- controlElement = _this$props2.controlElement,
16938
- menuPlacement = _this$props2.menuPlacement,
16939
- position = _this$props2.menuPosition,
16940
- getStyles = _this$props2.getStyles;
16941
- var isFixed = position === 'fixed'; // bail early if required elements aren't present
16942
-
16943
- if (!appendTo && !isFixed || !controlElement) {
16944
- return null;
16945
- }
16946
-
16947
- var placement = this.state.placement || coercePlacement(menuPlacement);
16948
- var rect = getBoundingClientObj(controlElement);
16949
- var scrollDistance = isFixed ? 0 : window.pageYOffset;
16950
- var offset = rect[placement] + scrollDistance;
16951
- var state = {
16952
- offset: offset,
16953
- position: position,
16954
- rect: rect
16955
- }; // same wrapper element whether fixed or portalled
16956
-
16957
- var menuWrapper = Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16958
- css: getStyles('menuPortal', state)
16959
- }, children);
16960
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(PortalPlacementContext.Provider, {
16961
- value: {
16962
- getPortalPlacement: this.getPortalPlacement
16963
- }
16964
- }, appendTo ? /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_10_react_dom__["createPortal"])(menuWrapper, appendTo) : menuWrapper);
16965
- }
16966
- }]);
16967
-
16968
- return MenuPortal;
16969
- }(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);
16970
-
16971
- var isArray = Array.isArray;
16972
- var keyList = Object.keys;
16973
- var hasProp = Object.prototype.hasOwnProperty;
16974
-
16975
- function equal(a, b) {
16976
- // fast-deep-equal index.js 2.0.1
16977
- if (a === b) return true;
16978
-
16979
- if (a && b && Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(a) == 'object' && Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(b) == 'object') {
16980
- var arrA = isArray(a),
16981
- arrB = isArray(b),
16982
- i,
16983
- length,
16984
- key;
16985
-
16986
- if (arrA && arrB) {
16987
- length = a.length;
16988
- if (length != b.length) return false;
16989
-
16990
- for (i = length; i-- !== 0;) {
16991
- if (!equal(a[i], b[i])) return false;
16992
- }
16993
-
16994
- return true;
16995
- }
16996
-
16997
- if (arrA != arrB) return false;
16998
- var dateA = a instanceof Date,
16999
- dateB = b instanceof Date;
17000
- if (dateA != dateB) return false;
17001
- if (dateA && dateB) return a.getTime() == b.getTime();
17002
- var regexpA = a instanceof RegExp,
17003
- regexpB = b instanceof RegExp;
17004
- if (regexpA != regexpB) return false;
17005
- if (regexpA && regexpB) return a.toString() == b.toString();
17006
- var keys = keyList(a);
17007
- length = keys.length;
17008
-
17009
- if (length !== keyList(b).length) {
17010
- return false;
17011
- }
17012
-
17013
- for (i = length; i-- !== 0;) {
17014
- if (!hasProp.call(b, keys[i])) return false;
17015
- } // end fast-deep-equal
17016
- // Custom handling for React
17017
-
17018
-
17019
- for (i = length; i-- !== 0;) {
17020
- key = keys[i];
17021
-
17022
- if (key === '_owner' && a.$$typeof) {
17023
- // React-specific: avoid traversing React elements' _owner.
17024
- // _owner contains circular references
17025
- // and is not needed when comparing the actual elements (and not their owners)
17026
- // .$$typeof and ._store on just reasonable markers of a react element
17027
- continue;
17028
- } else {
17029
- // all other properties should be traversed as usual
17030
- if (!equal(a[key], b[key])) return false;
17031
- }
17032
- } // fast-deep-equal index.js 2.0.1
17033
-
17034
-
17035
- return true;
17036
- }
17037
-
17038
- return a !== a && b !== b;
17039
- } // end fast-deep-equal
17040
-
17041
-
17042
- function exportedEqual(a, b) {
17043
- try {
17044
- return equal(a, b);
17045
- } catch (error) {
17046
- if (error.message && error.message.match(/stack|recursion/i)) {
17047
- // warn on circular references, don't crash
17048
- // browsers give this different errors name and messages:
17049
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
17050
- // firefox: "InternalError", too much recursion"
17051
- // edge: "Error", "Out of stack space"
17052
- console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
17053
- return false;
17054
- } // some other error. we should definitely know about these
17055
-
17056
-
17057
- throw error;
17058
- }
17059
- }
17060
-
17061
- var containerCSS = function containerCSS(_ref) {
17062
- var isDisabled = _ref.isDisabled,
17063
- isRtl = _ref.isRtl;
17064
- return {
17065
- label: 'container',
17066
- direction: isRtl ? 'rtl' : null,
17067
- pointerEvents: isDisabled ? 'none' : null,
17068
- // cancel mouse events when disabled
17069
- position: 'relative'
17070
- };
17071
- };
17072
- var SelectContainer = function SelectContainer(props) {
17073
- var children = props.children,
17074
- className = props.className,
17075
- cx = props.cx,
17076
- getStyles = props.getStyles,
17077
- innerProps = props.innerProps,
17078
- isDisabled = props.isDisabled,
17079
- isRtl = props.isRtl;
17080
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17081
- css: getStyles('container', props),
17082
- className: cx({
17083
- '--is-disabled': isDisabled,
17084
- '--is-rtl': isRtl
17085
- }, className)
17086
- }, innerProps), children);
17087
- }; // ==============================
17088
- // Value Container
17089
- // ==============================
17090
-
17091
- var valueContainerCSS = function valueContainerCSS(_ref2) {
17092
- var spacing = _ref2.theme.spacing;
17093
- return {
17094
- alignItems: 'center',
17095
- display: 'flex',
17096
- flex: 1,
17097
- flexWrap: 'wrap',
17098
- padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px"),
17099
- WebkitOverflowScrolling: 'touch',
17100
- position: 'relative',
17101
- overflow: 'hidden'
17102
- };
17103
- };
17104
- var ValueContainer = function ValueContainer(props) {
17105
- var children = props.children,
17106
- className = props.className,
17107
- cx = props.cx,
17108
- isMulti = props.isMulti,
17109
- getStyles = props.getStyles,
17110
- hasValue = props.hasValue;
17111
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
17112
- css: getStyles('valueContainer', props),
17113
- className: cx({
17114
- 'value-container': true,
17115
- 'value-container--is-multi': isMulti,
17116
- 'value-container--has-value': hasValue
17117
- }, className)
17118
- }, children);
17119
- }; // ==============================
17120
- // Indicator Container
17121
- // ==============================
17122
-
17123
- var indicatorsContainerCSS = function indicatorsContainerCSS() {
17124
- return {
17125
- alignItems: 'center',
17126
- alignSelf: 'stretch',
17127
- display: 'flex',
17128
- flexShrink: 0
17129
- };
17130
- };
17131
- var IndicatorsContainer = function IndicatorsContainer(props) {
17132
- var children = props.children,
17133
- className = props.className,
17134
- cx = props.cx,
17135
- getStyles = props.getStyles;
17136
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
17137
- css: getStyles('indicatorsContainer', props),
17138
- className: cx({
17139
- indicators: true
17140
- }, className)
17141
- }, children);
17142
- };
17143
-
17144
- function _templateObject() {
17145
- var data = Object(__WEBPACK_IMPORTED_MODULE_13__babel_runtime_helpers_esm_taggedTemplateLiteral__["a" /* default */])(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);
17146
-
17147
- _templateObject = function _templateObject() {
17148
- return data;
17149
- };
17150
-
17151
- return data;
17152
- }
17153
-
17154
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; }
17155
-
17156
- var _ref2 = process.env.NODE_ENV === "production" ? {
17157
- name: "19bqh2r",
17158
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"
17159
- } : {
17160
- name: "19bqh2r",
17161
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;",
17162
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */",
17163
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
17164
- };
17165
-
17166
- // ==============================
17167
- // Dropdown & Clear Icons
17168
- // ==============================
17169
- var Svg = function Svg(_ref) {
17170
- var size = _ref.size,
17171
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["size"]);
17172
-
17173
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("svg", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17174
- height: size,
17175
- width: size,
17176
- viewBox: "0 0 20 20",
17177
- "aria-hidden": "true",
17178
- focusable: "false",
17179
- css: _ref2
17180
- }, props));
17181
- };
17182
-
17183
- var CrossIcon = function CrossIcon(props) {
17184
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Svg, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17185
- size: 20
17186
- }, props), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("path", {
17187
- d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
17188
- }));
17189
- };
17190
- var DownChevron = function DownChevron(props) {
17191
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Svg, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17192
- size: 20
17193
- }, props), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("path", {
17194
- d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
17195
- }));
17196
- }; // ==============================
17197
- // Dropdown & Clear Buttons
17198
- // ==============================
17199
-
17200
- var baseCSS = function baseCSS(_ref3) {
17201
- var isFocused = _ref3.isFocused,
17202
- _ref3$theme = _ref3.theme,
17203
- baseUnit = _ref3$theme.spacing.baseUnit,
17204
- colors = _ref3$theme.colors;
17205
- return {
17206
- label: 'indicatorContainer',
17207
- color: isFocused ? colors.neutral60 : colors.neutral20,
17208
- display: 'flex',
17209
- padding: baseUnit * 2,
17210
- transition: 'color 150ms',
17211
- ':hover': {
17212
- color: isFocused ? colors.neutral80 : colors.neutral40
17213
- }
17214
- };
17215
- };
17216
-
17217
- var dropdownIndicatorCSS = baseCSS;
17218
- var DropdownIndicator = function DropdownIndicator(props) {
17219
- var children = props.children,
17220
- className = props.className,
17221
- cx = props.cx,
17222
- getStyles = props.getStyles,
17223
- innerProps = props.innerProps;
17224
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
17225
- css: getStyles('dropdownIndicator', props),
17226
- className: cx({
17227
- indicator: true,
17228
- 'dropdown-indicator': true
17229
- }, className)
17230
- }), children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(DownChevron, null));
17231
- };
17232
- var clearIndicatorCSS = baseCSS;
17233
- var ClearIndicator = function ClearIndicator(props) {
17234
- var children = props.children,
17235
- className = props.className,
17236
- cx = props.cx,
17237
- getStyles = props.getStyles,
17238
- innerProps = props.innerProps;
17239
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
17240
- css: getStyles('clearIndicator', props),
17241
- className: cx({
17242
- indicator: true,
17243
- 'clear-indicator': true
17244
- }, className)
17245
- }), children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(CrossIcon, null));
17246
- }; // ==============================
17247
- // Separator
17248
- // ==============================
17249
-
17250
- var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4) {
17251
- var isDisabled = _ref4.isDisabled,
17252
- _ref4$theme = _ref4.theme,
17253
- baseUnit = _ref4$theme.spacing.baseUnit,
17254
- colors = _ref4$theme.colors;
17255
- return {
17256
- label: 'indicatorSeparator',
17257
- alignSelf: 'stretch',
17258
- backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,
17259
- marginBottom: baseUnit * 2,
17260
- marginTop: baseUnit * 2,
17261
- width: 1
17262
- };
17263
- };
17264
- var IndicatorSeparator = function IndicatorSeparator(props) {
17265
- var className = props.className,
17266
- cx = props.cx,
17267
- getStyles = props.getStyles,
17268
- innerProps = props.innerProps;
17269
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("span", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
17270
- css: getStyles('indicatorSeparator', props),
17271
- className: cx({
17272
- 'indicator-separator': true
17273
- }, className)
17274
- }));
17275
- }; // ==============================
17276
- // Loading
17277
- // ==============================
17278
-
17279
- var loadingDotAnimations = Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["d" /* keyframes */])(_templateObject());
17280
- var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) {
17281
- var isFocused = _ref5.isFocused,
17282
- size = _ref5.size,
17283
- _ref5$theme = _ref5.theme,
17284
- colors = _ref5$theme.colors,
17285
- baseUnit = _ref5$theme.spacing.baseUnit;
17286
- return {
17287
- label: 'loadingIndicator',
17288
- color: isFocused ? colors.neutral60 : colors.neutral20,
17289
- display: 'flex',
17290
- padding: baseUnit * 2,
17291
- transition: 'color 150ms',
17292
- alignSelf: 'center',
17293
- fontSize: size,
17294
- lineHeight: 1,
17295
- marginRight: size,
17296
- textAlign: 'center',
17297
- verticalAlign: 'middle'
17298
- };
17299
- };
17300
-
17301
- var LoadingDot = function LoadingDot(_ref6) {
17302
- var delay = _ref6.delay,
17303
- offset = _ref6.offset;
17304
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("span", {
17305
- css: /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_12__emotion_css__["a" /* default */])({
17306
- animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
17307
- backgroundColor: 'currentColor',
17308
- borderRadius: '1em',
17309
- display: 'inline-block',
17310
- marginLeft: offset ? '1em' : null,
17311
- height: '1em',
17312
- verticalAlign: 'top',
17313
- width: '1em'
17314
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */")
17315
- });
17316
- };
17317
-
17318
- var LoadingIndicator = function LoadingIndicator(props) {
17319
- var className = props.className,
17320
- cx = props.cx,
17321
- getStyles = props.getStyles,
17322
- innerProps = props.innerProps,
17323
- isRtl = props.isRtl;
17324
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
17325
- css: getStyles('loadingIndicator', props),
17326
- className: cx({
17327
- indicator: true,
17328
- 'loading-indicator': true
17329
- }, className)
17330
- }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
17331
- delay: 0,
17332
- offset: isRtl
17333
- }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
17334
- delay: 160,
17335
- offset: true
17336
- }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
17337
- delay: 320,
17338
- offset: !isRtl
17339
- }));
17340
- };
17341
- LoadingIndicator.defaultProps = {
17342
- size: 4
17343
- };
17344
-
17345
- var css = function css(_ref) {
17346
- var isDisabled = _ref.isDisabled,
17347
- isFocused = _ref.isFocused,
17348
- _ref$theme = _ref.theme,
17349
- colors = _ref$theme.colors,
17350
- borderRadius = _ref$theme.borderRadius,
17351
- spacing = _ref$theme.spacing;
17352
- return {
17353
- label: 'control',
17354
- alignItems: 'center',
17355
- backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,
17356
- borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,
17357
- borderRadius: borderRadius,
17358
- borderStyle: 'solid',
17359
- borderWidth: 1,
17360
- boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : null,
17361
- cursor: 'default',
17362
- display: 'flex',
17363
- flexWrap: 'wrap',
17364
- justifyContent: 'space-between',
17365
- minHeight: spacing.controlHeight,
17366
- outline: '0 !important',
17367
- position: 'relative',
17368
- transition: 'all 100ms',
17369
- '&:hover': {
17370
- borderColor: isFocused ? colors.primary : colors.neutral30
17371
- }
17372
- };
17373
- };
17374
-
17375
- var Control = function Control(props) {
17376
- var children = props.children,
17377
- cx = props.cx,
17378
- getStyles = props.getStyles,
17379
- className = props.className,
17380
- isDisabled = props.isDisabled,
17381
- isFocused = props.isFocused,
17382
- innerRef = props.innerRef,
17383
- innerProps = props.innerProps,
17384
- menuIsOpen = props.menuIsOpen;
17385
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17386
- ref: innerRef,
17387
- css: getStyles('control', props),
17388
- className: cx({
17389
- control: true,
17390
- 'control--is-disabled': isDisabled,
17391
- 'control--is-focused': isFocused,
17392
- 'control--menu-is-open': menuIsOpen
17393
- }, className)
17394
- }, innerProps), children);
17395
- };
17396
-
17397
- 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; }
17398
-
17399
- 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) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(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; }
17400
- var groupCSS = function groupCSS(_ref) {
17401
- var spacing = _ref.theme.spacing;
17402
- return {
17403
- paddingBottom: spacing.baseUnit * 2,
17404
- paddingTop: spacing.baseUnit * 2
17405
- };
17406
- };
17407
-
17408
- var Group = function Group(props) {
17409
- var children = props.children,
17410
- className = props.className,
17411
- cx = props.cx,
17412
- getStyles = props.getStyles,
17413
- Heading = props.Heading,
17414
- headingProps = props.headingProps,
17415
- label = props.label,
17416
- theme = props.theme,
17417
- selectProps = props.selectProps;
17418
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
17419
- css: getStyles('group', props),
17420
- className: cx({
17421
- group: true
17422
- }, className)
17423
- }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Heading, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, headingProps, {
17424
- selectProps: selectProps,
17425
- theme: theme,
17426
- getStyles: getStyles,
17427
- cx: cx
17428
- }), label), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", null, children));
17429
- };
17430
-
17431
- var groupHeadingCSS = function groupHeadingCSS(_ref2) {
17432
- var spacing = _ref2.theme.spacing;
17433
- return {
17434
- label: 'group',
17435
- color: '#999',
17436
- cursor: 'default',
17437
- display: 'block',
17438
- fontSize: '75%',
17439
- fontWeight: '500',
17440
- marginBottom: '0.25em',
17441
- paddingLeft: spacing.baseUnit * 3,
17442
- paddingRight: spacing.baseUnit * 3,
17443
- textTransform: 'uppercase'
17444
- };
17445
- };
17446
- var GroupHeading = function GroupHeading(props) {
17447
- var className = props.className,
17448
- cx = props.cx,
17449
- getStyles = props.getStyles,
17450
- theme = props.theme,
17451
- selectProps = props.selectProps,
17452
- cleanProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["className", "cx", "getStyles", "theme", "selectProps"]);
17453
-
17454
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17455
- css: getStyles('groupHeading', _objectSpread$1({
17456
- theme: theme
17457
- }, cleanProps)),
17458
- className: cx({
17459
- 'group-heading': true
17460
- }, className)
17461
- }, cleanProps));
17462
- };
17463
-
17464
- 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; }
17465
-
17466
- 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) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(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; }
17467
- var inputCSS = function inputCSS(_ref) {
17468
- var isDisabled = _ref.isDisabled,
17469
- _ref$theme = _ref.theme,
17470
- spacing = _ref$theme.spacing,
17471
- colors = _ref$theme.colors;
17472
- return {
17473
- margin: spacing.baseUnit / 2,
17474
- paddingBottom: spacing.baseUnit / 2,
17475
- paddingTop: spacing.baseUnit / 2,
17476
- visibility: isDisabled ? 'hidden' : 'visible',
17477
- color: colors.neutral80
17478
- };
17479
- };
17480
-
17481
- var inputStyle = function inputStyle(isHidden) {
17482
- return {
17483
- label: 'input',
17484
- background: 0,
17485
- border: 0,
17486
- fontSize: 'inherit',
17487
- opacity: isHidden ? 0 : 1,
17488
- outline: 0,
17489
- padding: 0,
17490
- color: 'inherit'
17491
- };
17492
- };
17493
-
17494
- var Input = function Input(_ref2) {
17495
- var className = _ref2.className,
17496
- cx = _ref2.cx,
17497
- getStyles = _ref2.getStyles,
17498
- innerRef = _ref2.innerRef,
17499
- isHidden = _ref2.isHidden,
17500
- isDisabled = _ref2.isDisabled,
17501
- theme = _ref2.theme,
17502
- selectProps = _ref2.selectProps,
17503
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]);
17504
-
17505
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
17506
- css: getStyles('input', _objectSpread$2({
17507
- theme: theme
17508
- }, props))
17509
- }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_14_react_input_autosize___default.a, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17510
- className: cx({
17511
- input: true
17512
- }, className),
17513
- inputRef: innerRef,
17514
- inputStyle: inputStyle(isHidden),
17515
- disabled: isDisabled
17516
- }, props)));
17517
- };
17518
-
17519
- 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; }
17520
-
17521
- 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) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(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; }
17522
- var multiValueCSS = function multiValueCSS(_ref) {
17523
- var _ref$theme = _ref.theme,
17524
- spacing = _ref$theme.spacing,
17525
- borderRadius = _ref$theme.borderRadius,
17526
- colors = _ref$theme.colors;
17527
- return {
17528
- label: 'multiValue',
17529
- backgroundColor: colors.neutral10,
17530
- borderRadius: borderRadius / 2,
17531
- display: 'flex',
17532
- margin: spacing.baseUnit / 2,
17533
- minWidth: 0 // resolves flex/text-overflow bug
17534
-
17535
- };
17536
- };
17537
- var multiValueLabelCSS = function multiValueLabelCSS(_ref2) {
17538
- var _ref2$theme = _ref2.theme,
17539
- borderRadius = _ref2$theme.borderRadius,
17540
- colors = _ref2$theme.colors,
17541
- cropWithEllipsis = _ref2.cropWithEllipsis;
17542
- return {
17543
- borderRadius: borderRadius / 2,
17544
- color: colors.neutral80,
17545
- fontSize: '85%',
17546
- overflow: 'hidden',
17547
- padding: 3,
17548
- paddingLeft: 6,
17549
- textOverflow: cropWithEllipsis ? 'ellipsis' : null,
17550
- whiteSpace: 'nowrap'
17551
- };
17552
- };
17553
- var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {
17554
- var _ref3$theme = _ref3.theme,
17555
- spacing = _ref3$theme.spacing,
17556
- borderRadius = _ref3$theme.borderRadius,
17557
- colors = _ref3$theme.colors,
17558
- isFocused = _ref3.isFocused;
17559
- return {
17560
- alignItems: 'center',
17561
- borderRadius: borderRadius / 2,
17562
- backgroundColor: isFocused && colors.dangerLight,
17563
- display: 'flex',
17564
- paddingLeft: spacing.baseUnit,
17565
- paddingRight: spacing.baseUnit,
17566
- ':hover': {
17567
- backgroundColor: colors.dangerLight,
17568
- color: colors.danger
17569
- }
17570
- };
17571
- };
17572
- var MultiValueGeneric = function MultiValueGeneric(_ref4) {
17573
- var children = _ref4.children,
17574
- innerProps = _ref4.innerProps;
17575
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", innerProps, children);
17576
- };
17577
- var MultiValueContainer = MultiValueGeneric;
17578
- var MultiValueLabel = MultiValueGeneric;
17579
- function MultiValueRemove(_ref5) {
17580
- var children = _ref5.children,
17581
- innerProps = _ref5.innerProps;
17582
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", innerProps, children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(CrossIcon, {
17583
- size: 14
17584
- }));
17585
- }
17586
-
17587
- var MultiValue = function MultiValue(props) {
17588
- var children = props.children,
17589
- className = props.className,
17590
- components = props.components,
17591
- cx = props.cx,
17592
- data = props.data,
17593
- getStyles = props.getStyles,
17594
- innerProps = props.innerProps,
17595
- isDisabled = props.isDisabled,
17596
- removeProps = props.removeProps,
17597
- selectProps = props.selectProps;
17598
- var Container = components.Container,
17599
- Label = components.Label,
17600
- Remove = components.Remove;
17601
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["b" /* ClassNames */], null, function (_ref6) {
17602
- var css = _ref6.css,
17603
- emotionCx = _ref6.cx;
17604
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Container, {
17605
- data: data,
17606
- innerProps: _objectSpread$3(_objectSpread$3({}, innerProps), {}, {
17607
- className: emotionCx(css(getStyles('multiValue', props)), cx({
17608
- 'multi-value': true,
17609
- 'multi-value--is-disabled': isDisabled
17610
- }, className))
17611
- }),
17612
- selectProps: selectProps
17613
- }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Label, {
17614
- data: data,
17615
- innerProps: {
17616
- className: emotionCx(css(getStyles('multiValueLabel', props)), cx({
17617
- 'multi-value__label': true
17618
- }, className))
17619
- },
17620
- selectProps: selectProps
17621
- }, children), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Remove, {
17622
- data: data,
17623
- innerProps: _objectSpread$3({
17624
- className: emotionCx(css(getStyles('multiValueRemove', props)), cx({
17625
- 'multi-value__remove': true
17626
- }, className))
17627
- }, removeProps),
17628
- selectProps: selectProps
17629
- }));
17630
- });
17631
- };
17632
-
17633
- MultiValue.defaultProps = {
17634
- cropWithEllipsis: true
17635
- };
17636
-
17637
- var optionCSS = function optionCSS(_ref) {
17638
- var isDisabled = _ref.isDisabled,
17639
- isFocused = _ref.isFocused,
17640
- isSelected = _ref.isSelected,
17641
- _ref$theme = _ref.theme,
17642
- spacing = _ref$theme.spacing,
17643
- colors = _ref$theme.colors;
17644
- return {
17645
- label: 'option',
17646
- backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',
17647
- color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',
17648
- cursor: 'default',
17649
- display: 'block',
17650
- fontSize: 'inherit',
17651
- padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"),
17652
- width: '100%',
17653
- userSelect: 'none',
17654
- WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',
17655
- // provide some affordance on touch devices
17656
- ':active': {
17657
- backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50)
17658
- }
17659
- };
17660
- };
17661
-
17662
- var Option = function Option(props) {
17663
- var children = props.children,
17664
- className = props.className,
17665
- cx = props.cx,
17666
- getStyles = props.getStyles,
17667
- isDisabled = props.isDisabled,
17668
- isFocused = props.isFocused,
17669
- isSelected = props.isSelected,
17670
- innerRef = props.innerRef,
17671
- innerProps = props.innerProps;
17672
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17673
- css: getStyles('option', props),
17674
- className: cx({
17675
- option: true,
17676
- 'option--is-disabled': isDisabled,
17677
- 'option--is-focused': isFocused,
17678
- 'option--is-selected': isSelected
17679
- }, className),
17680
- ref: innerRef
17681
- }, innerProps), children);
17682
- };
17683
-
17684
- var placeholderCSS = function placeholderCSS(_ref) {
17685
- var _ref$theme = _ref.theme,
17686
- spacing = _ref$theme.spacing,
17687
- colors = _ref$theme.colors;
17688
- return {
17689
- label: 'placeholder',
17690
- color: colors.neutral50,
17691
- marginLeft: spacing.baseUnit / 2,
17692
- marginRight: spacing.baseUnit / 2,
17693
- position: 'absolute',
17694
- top: '50%',
17695
- transform: 'translateY(-50%)'
17696
- };
17697
- };
17698
-
17699
- var Placeholder = function Placeholder(props) {
17700
- var children = props.children,
17701
- className = props.className,
17702
- cx = props.cx,
17703
- getStyles = props.getStyles,
17704
- innerProps = props.innerProps;
17705
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17706
- css: getStyles('placeholder', props),
17707
- className: cx({
17708
- placeholder: true
17709
- }, className)
17710
- }, innerProps), children);
17711
- };
17712
-
17713
- var css$1 = function css(_ref) {
17714
- var isDisabled = _ref.isDisabled,
17715
- _ref$theme = _ref.theme,
17716
- spacing = _ref$theme.spacing,
17717
- colors = _ref$theme.colors;
17718
- return {
17719
- label: 'singleValue',
17720
- color: isDisabled ? colors.neutral40 : colors.neutral80,
17721
- marginLeft: spacing.baseUnit / 2,
17722
- marginRight: spacing.baseUnit / 2,
17723
- maxWidth: "calc(100% - ".concat(spacing.baseUnit * 2, "px)"),
17724
- overflow: 'hidden',
17725
- position: 'absolute',
17726
- textOverflow: 'ellipsis',
17727
- whiteSpace: 'nowrap',
17728
- top: '50%',
17729
- transform: 'translateY(-50%)'
17730
- };
17731
- };
17732
-
17733
- var SingleValue = function SingleValue(props) {
17734
- var children = props.children,
17735
- className = props.className,
17736
- cx = props.cx,
17737
- getStyles = props.getStyles,
17738
- isDisabled = props.isDisabled,
17739
- innerProps = props.innerProps;
17740
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17741
- css: getStyles('singleValue', props),
17742
- className: cx({
17743
- 'single-value': true,
17744
- 'single-value--is-disabled': isDisabled
17745
- }, className)
17746
- }, innerProps), children);
17747
- };
17748
-
17749
- 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; }
17750
-
17751
- 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) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(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; }
17752
- var components = {
17753
- ClearIndicator: ClearIndicator,
17754
- Control: Control,
17755
- DropdownIndicator: DropdownIndicator,
17756
- DownChevron: DownChevron,
17757
- CrossIcon: CrossIcon,
17758
- Group: Group,
17759
- GroupHeading: GroupHeading,
17760
- IndicatorsContainer: IndicatorsContainer,
17761
- IndicatorSeparator: IndicatorSeparator,
17762
- Input: Input,
17763
- LoadingIndicator: LoadingIndicator,
17764
- Menu: Menu,
17765
- MenuList: MenuList,
17766
- MenuPortal: MenuPortal,
17767
- LoadingMessage: LoadingMessage,
17768
- NoOptionsMessage: NoOptionsMessage,
17769
- MultiValue: MultiValue,
17770
- MultiValueContainer: MultiValueContainer,
17771
- MultiValueLabel: MultiValueLabel,
17772
- MultiValueRemove: MultiValueRemove,
17773
- Option: Option,
17774
- Placeholder: Placeholder,
17775
- SelectContainer: SelectContainer,
17776
- SingleValue: SingleValue,
17777
- ValueContainer: ValueContainer
17778
- };
17779
- var defaultComponents = function defaultComponents(props) {
17780
- return _objectSpread$4(_objectSpread$4({}, components), props.components);
17781
- };
17782
-
17783
-
17784
-
17785
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
17786
-
17787
- /***/ }),
17788
- /* 274 */
17789
- /***/ (function(module, exports, __webpack_require__) {
17790
-
17791
- "use strict";
17792
-
17793
-
17794
- Object.defineProperty(exports, "__esModule", {
17795
- value: true
17796
- });
17797
-
17798
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
17799
-
17800
- var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
17801
-
17802
- var _react = __webpack_require__(0);
17803
-
17804
- var _react2 = _interopRequireDefault(_react);
17805
-
17806
- var _propTypes = __webpack_require__(2);
17807
-
17808
- var _propTypes2 = _interopRequireDefault(_propTypes);
17809
-
17810
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17811
-
17812
- function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
17813
-
17814
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17815
-
17816
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
17817
-
17818
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
17819
-
17820
- var sizerStyle = {
17821
- position: 'absolute',
17822
- top: 0,
17823
- left: 0,
17824
- visibility: 'hidden',
17825
- height: 0,
17826
- overflow: 'scroll',
17827
- whiteSpace: 'pre'
17828
- };
17829
-
17830
- var INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth'];
17831
-
17832
- var cleanInputProps = function cleanInputProps(inputProps) {
17833
- INPUT_PROPS_BLACKLIST.forEach(function (field) {
17834
- return delete inputProps[field];
17835
- });
17836
- return inputProps;
17837
- };
17838
-
17839
- var copyStyles = function copyStyles(styles, node) {
17840
- node.style.fontSize = styles.fontSize;
17841
- node.style.fontFamily = styles.fontFamily;
17842
- node.style.fontWeight = styles.fontWeight;
17843
- node.style.fontStyle = styles.fontStyle;
17844
- node.style.letterSpacing = styles.letterSpacing;
17845
- node.style.textTransform = styles.textTransform;
17846
- };
17847
-
17848
- var isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : false;
17849
-
17850
- var generateId = function generateId() {
17851
- // we only need an auto-generated ID for stylesheet injection, which is only
17852
- // used for IE. so if the browser is not IE, this should return undefined.
17853
- return isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined;
17854
- };
17855
-
17856
- var AutosizeInput = function (_Component) {
17857
- _inherits(AutosizeInput, _Component);
17858
-
17859
- function AutosizeInput(props) {
17860
- _classCallCheck(this, AutosizeInput);
17861
-
17862
- var _this = _possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props));
17863
-
17864
- _this.inputRef = function (el) {
17865
- _this.input = el;
17866
- if (typeof _this.props.inputRef === 'function') {
17867
- _this.props.inputRef(el);
17868
- }
17869
- };
17870
-
17871
- _this.placeHolderSizerRef = function (el) {
17872
- _this.placeHolderSizer = el;
17873
- };
17874
-
17875
- _this.sizerRef = function (el) {
17876
- _this.sizer = el;
17877
- };
17878
-
17879
- _this.state = {
17880
- inputWidth: props.minWidth,
17881
- inputId: props.id || generateId()
17882
- };
17883
- return _this;
17884
- }
17885
-
17886
- _createClass(AutosizeInput, [{
17887
- key: 'componentDidMount',
17888
- value: function componentDidMount() {
17889
- this.mounted = true;
17890
- this.copyInputStyles();
17891
- this.updateInputWidth();
17892
- }
17893
- }, {
17894
- key: 'UNSAFE_componentWillReceiveProps',
17895
- value: function UNSAFE_componentWillReceiveProps(nextProps) {
17896
- var id = nextProps.id;
17897
-
17898
- if (id !== this.props.id) {
17899
- this.setState({ inputId: id || generateId() });
17900
- }
17901
- }
17902
- }, {
17903
- key: 'componentDidUpdate',
17904
- value: function componentDidUpdate(prevProps, prevState) {
17905
- if (prevState.inputWidth !== this.state.inputWidth) {
17906
- if (typeof this.props.onAutosize === 'function') {
17907
- this.props.onAutosize(this.state.inputWidth);
17908
- }
17909
- }
17910
- this.updateInputWidth();
17911
- }
17912
- }, {
17913
- key: 'componentWillUnmount',
17914
- value: function componentWillUnmount() {
17915
- this.mounted = false;
17916
- }
17917
- }, {
17918
- key: 'copyInputStyles',
17919
- value: function copyInputStyles() {
17920
- if (!this.mounted || !window.getComputedStyle) {
17921
- return;
17922
- }
17923
- var inputStyles = this.input && window.getComputedStyle(this.input);
17924
- if (!inputStyles) {
17925
- return;
17926
- }
17927
- copyStyles(inputStyles, this.sizer);
17928
- if (this.placeHolderSizer) {
17929
- copyStyles(inputStyles, this.placeHolderSizer);
17930
- }
17931
- }
17932
- }, {
17933
- key: 'updateInputWidth',
17934
- value: function updateInputWidth() {
17935
- if (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') {
17936
- return;
17937
- }
17938
- var newInputWidth = void 0;
17939
- if (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) {
17940
- newInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2;
17941
- } else {
17942
- newInputWidth = this.sizer.scrollWidth + 2;
17943
- }
17944
- // add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI
17945
- var extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0;
17946
- newInputWidth += extraWidth;
17947
- if (newInputWidth < this.props.minWidth) {
17948
- newInputWidth = this.props.minWidth;
17949
- }
17950
- if (newInputWidth !== this.state.inputWidth) {
17951
- this.setState({
17952
- inputWidth: newInputWidth
17953
- });
17954
- }
17955
- }
17956
- }, {
17957
- key: 'getInput',
17958
- value: function getInput() {
17959
- return this.input;
17960
- }
17961
- }, {
17962
- key: 'focus',
17963
- value: function focus() {
17964
- this.input.focus();
17965
- }
17966
- }, {
17967
- key: 'blur',
17968
- value: function blur() {
17969
- this.input.blur();
17970
- }
17971
- }, {
17972
- key: 'select',
17973
- value: function select() {
17974
- this.input.select();
17975
- }
17976
- }, {
17977
- key: 'renderStyles',
17978
- value: function renderStyles() {
17979
- // this method injects styles to hide IE's clear indicator, which messes
17980
- // with input size detection. the stylesheet is only injected when the
17981
- // browser is IE, and can also be disabled by the `injectStyles` prop.
17982
- var injectStyles = this.props.injectStyles;
17983
-
17984
- return isIE && injectStyles ? _react2.default.createElement('style', { dangerouslySetInnerHTML: {
17985
- __html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}'
17986
- } }) : null;
17987
- }
17988
- }, {
17989
- key: 'render',
17990
- value: function render() {
17991
- var sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) {
17992
- if (previousValue !== null && previousValue !== undefined) {
17993
- return previousValue;
17994
- }
17995
- return currentValue;
17996
- });
17997
-
17998
- var wrapperStyle = _extends({}, this.props.style);
17999
- if (!wrapperStyle.display) wrapperStyle.display = 'inline-block';
18000
-
18001
- var inputStyle = _extends({
18002
- boxSizing: 'content-box',
18003
- width: this.state.inputWidth + 'px'
18004
- }, this.props.inputStyle);
18005
-
18006
- var inputProps = _objectWithoutProperties(this.props, []);
18007
-
18008
- cleanInputProps(inputProps);
18009
- inputProps.className = this.props.inputClassName;
18010
- inputProps.id = this.state.inputId;
18011
- inputProps.style = inputStyle;
18012
-
18013
- return _react2.default.createElement(
18014
- 'div',
18015
- { className: this.props.className, style: wrapperStyle },
18016
- this.renderStyles(),
18017
- _react2.default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),
18018
- _react2.default.createElement(
18019
- 'div',
18020
- { ref: this.sizerRef, style: sizerStyle },
18021
- sizerValue
18022
- ),
18023
- this.props.placeholder ? _react2.default.createElement(
18024
- 'div',
18025
- { ref: this.placeHolderSizerRef, style: sizerStyle },
18026
- this.props.placeholder
18027
- ) : null
18028
- );
18029
- }
18030
- }]);
18031
-
18032
- return AutosizeInput;
18033
- }(_react.Component);
18034
-
18035
- AutosizeInput.propTypes = {
18036
- className: _propTypes2.default.string, // className for the outer element
18037
- defaultValue: _propTypes2.default.any, // default field value
18038
- extraWidth: _propTypes2.default.oneOfType([// additional width for input element
18039
- _propTypes2.default.number, _propTypes2.default.string]),
18040
- id: _propTypes2.default.string, // id to use for the input, can be set for consistent snapshots
18041
- injectStyles: _propTypes2.default.bool, // inject the custom stylesheet to hide clear UI, defaults to true
18042
- inputClassName: _propTypes2.default.string, // className for the input element
18043
- inputRef: _propTypes2.default.func, // ref callback for the input element
18044
- inputStyle: _propTypes2.default.object, // css styles for the input element
18045
- minWidth: _propTypes2.default.oneOfType([// minimum width for input element
18046
- _propTypes2.default.number, _propTypes2.default.string]),
18047
- onAutosize: _propTypes2.default.func, // onAutosize handler: function(newWidth) {}
18048
- onChange: _propTypes2.default.func, // onChange handler: function(event) {}
18049
- placeholder: _propTypes2.default.string, // placeholder text
18050
- placeholderIsMinWidth: _propTypes2.default.bool, // don't collapse size to less than the placeholder
18051
- style: _propTypes2.default.object, // css styles for the outer element
18052
- value: _propTypes2.default.any // field value
18053
- };
18054
- AutosizeInput.defaultProps = {
18055
- minWidth: 1,
18056
- injectStyles: true
18057
- };
18058
-
18059
- exports.default = AutosizeInput;
18060
-
18061
- /***/ }),
18062
- /* 275 */
18063
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
18064
-
18065
- "use strict";
18066
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Select; });
18067
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return defaultTheme; });
18068
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createFilter; });
18069
- /* unused harmony export d */
18070
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return mergeStyles; });
18071
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
18072
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
18073
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(23);
18074
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(30);
18075
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(18);
18076
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(54);
18077
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(49);
18078
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(93);
18079
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(76);
18080
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(77);
18081
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(78);
18082
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(0);
18083
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
18084
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(269);
18085
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(149);
18086
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(14);
18087
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__);
18088
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__ = __webpack_require__(273);
18089
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__emotion_css__ = __webpack_require__(79);
18090
-
18091
-
18092
-
18093
-
18094
-
18095
-
18096
-
18097
-
18098
-
18099
-
18100
-
18101
-
18102
-
18103
-
18104
-
18105
-
18106
-
18107
-
18108
- var diacritics = [{
18109
- base: 'A',
18110
- letters: "A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"
18111
- }, {
18112
- base: 'AA',
18113
- letters: "\uA732"
18114
- }, {
18115
- base: 'AE',
18116
- letters: "\xC6\u01FC\u01E2"
18117
- }, {
18118
- base: 'AO',
18119
- letters: "\uA734"
18120
- }, {
18121
- base: 'AU',
18122
- letters: "\uA736"
18123
- }, {
18124
- base: 'AV',
18125
- letters: "\uA738\uA73A"
18126
- }, {
18127
- base: 'AY',
18128
- letters: "\uA73C"
18129
- }, {
18130
- base: 'B',
18131
- letters: "B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"
18132
- }, {
18133
- base: 'C',
18134
- letters: "C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"
18135
- }, {
18136
- base: 'D',
18137
- letters: "D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"
18138
- }, {
18139
- base: 'DZ',
18140
- letters: "\u01F1\u01C4"
18141
- }, {
18142
- base: 'Dz',
18143
- letters: "\u01F2\u01C5"
18144
- }, {
18145
- base: 'E',
18146
- letters: "E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"
18147
- }, {
18148
- base: 'F',
18149
- letters: "F\u24BB\uFF26\u1E1E\u0191\uA77B"
18150
- }, {
18151
- base: 'G',
18152
- letters: "G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"
18153
- }, {
18154
- base: 'H',
18155
- letters: "H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"
18156
- }, {
18157
- base: 'I',
18158
- letters: "I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"
18159
- }, {
18160
- base: 'J',
18161
- letters: "J\u24BF\uFF2A\u0134\u0248"
18162
- }, {
18163
- base: 'K',
18164
- letters: "K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"
18165
- }, {
18166
- base: 'L',
18167
- letters: "L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"
18168
- }, {
18169
- base: 'LJ',
18170
- letters: "\u01C7"
18171
- }, {
18172
- base: 'Lj',
18173
- letters: "\u01C8"
18174
- }, {
18175
- base: 'M',
18176
- letters: "M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"
18177
- }, {
18178
- base: 'N',
18179
- letters: "N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"
18180
- }, {
18181
- base: 'NJ',
18182
- letters: "\u01CA"
18183
- }, {
18184
- base: 'Nj',
18185
- letters: "\u01CB"
18186
- }, {
18187
- base: 'O',
18188
- letters: "O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"
18189
- }, {
18190
- base: 'OI',
18191
- letters: "\u01A2"
18192
- }, {
18193
- base: 'OO',
18194
- letters: "\uA74E"
18195
- }, {
18196
- base: 'OU',
18197
- letters: "\u0222"
18198
- }, {
18199
- base: 'P',
18200
- letters: "P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"
18201
- }, {
18202
- base: 'Q',
18203
- letters: "Q\u24C6\uFF31\uA756\uA758\u024A"
18204
- }, {
18205
- base: 'R',
18206
- letters: "R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"
18207
- }, {
18208
- base: 'S',
18209
- letters: "S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"
18210
- }, {
18211
- base: 'T',
18212
- letters: "T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"
18213
- }, {
18214
- base: 'TZ',
18215
- letters: "\uA728"
18216
- }, {
18217
- base: 'U',
18218
- letters: "U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"
18219
- }, {
18220
- base: 'V',
18221
- letters: "V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"
18222
- }, {
18223
- base: 'VY',
18224
- letters: "\uA760"
18225
- }, {
18226
- base: 'W',
18227
- letters: "W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"
18228
- }, {
18229
- base: 'X',
18230
- letters: "X\u24CD\uFF38\u1E8A\u1E8C"
18231
- }, {
18232
- base: 'Y',
18233
- letters: "Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"
18234
- }, {
18235
- base: 'Z',
18236
- letters: "Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"
18237
- }, {
18238
- base: 'a',
18239
- letters: "a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"
18240
- }, {
18241
- base: 'aa',
18242
- letters: "\uA733"
18243
- }, {
18244
- base: 'ae',
18245
- letters: "\xE6\u01FD\u01E3"
18246
- }, {
18247
- base: 'ao',
18248
- letters: "\uA735"
18249
- }, {
18250
- base: 'au',
18251
- letters: "\uA737"
18252
- }, {
18253
- base: 'av',
18254
- letters: "\uA739\uA73B"
18255
- }, {
18256
- base: 'ay',
18257
- letters: "\uA73D"
18258
- }, {
18259
- base: 'b',
18260
- letters: "b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"
18261
- }, {
18262
- base: 'c',
18263
- letters: "c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"
18264
- }, {
18265
- base: 'd',
18266
- letters: "d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"
18267
- }, {
18268
- base: 'dz',
18269
- letters: "\u01F3\u01C6"
18270
- }, {
18271
- base: 'e',
18272
- letters: "e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"
18273
- }, {
18274
- base: 'f',
18275
- letters: "f\u24D5\uFF46\u1E1F\u0192\uA77C"
18276
- }, {
18277
- base: 'g',
18278
- letters: "g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"
18279
- }, {
18280
- base: 'h',
18281
- letters: "h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"
18282
- }, {
18283
- base: 'hv',
18284
- letters: "\u0195"
18285
- }, {
18286
- base: 'i',
18287
- letters: "i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"
18288
- }, {
18289
- base: 'j',
18290
- letters: "j\u24D9\uFF4A\u0135\u01F0\u0249"
18291
- }, {
18292
- base: 'k',
18293
- letters: "k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"
18294
- }, {
18295
- base: 'l',
18296
- letters: "l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"
18297
- }, {
18298
- base: 'lj',
18299
- letters: "\u01C9"
18300
- }, {
18301
- base: 'm',
18302
- letters: "m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"
18303
- }, {
18304
- base: 'n',
18305
- letters: "n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"
18306
- }, {
18307
- base: 'nj',
18308
- letters: "\u01CC"
18309
- }, {
18310
- base: 'o',
18311
- letters: "o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"
18312
- }, {
18313
- base: 'oi',
18314
- letters: "\u01A3"
18315
- }, {
18316
- base: 'ou',
18317
- letters: "\u0223"
18318
- }, {
18319
- base: 'oo',
18320
- letters: "\uA74F"
18321
- }, {
18322
- base: 'p',
18323
- letters: "p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"
18324
- }, {
18325
- base: 'q',
18326
- letters: "q\u24E0\uFF51\u024B\uA757\uA759"
18327
- }, {
18328
- base: 'r',
18329
- letters: "r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"
18330
- }, {
18331
- base: 's',
18332
- letters: "s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"
18333
- }, {
18334
- base: 't',
18335
- letters: "t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"
18336
- }, {
18337
- base: 'tz',
18338
- letters: "\uA729"
18339
- }, {
18340
- base: 'u',
18341
- letters: "u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"
18342
- }, {
18343
- base: 'v',
18344
- letters: "v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"
18345
- }, {
18346
- base: 'vy',
18347
- letters: "\uA761"
18348
- }, {
18349
- base: 'w',
18350
- letters: "w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"
18351
- }, {
18352
- base: 'x',
18353
- letters: "x\u24E7\uFF58\u1E8B\u1E8D"
18354
- }, {
18355
- base: 'y',
18356
- letters: "y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"
18357
- }, {
18358
- base: 'z',
18359
- letters: "z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"
18360
- }];
18361
- var anyDiacritic = new RegExp('[' + diacritics.map(function (d) {
18362
- return d.letters;
18363
- }).join('') + ']', 'g');
18364
- var diacriticToBase = {};
18365
-
18366
- for (var i = 0; i < diacritics.length; i++) {
18367
- var diacritic = diacritics[i];
18368
-
18369
- for (var j = 0; j < diacritic.letters.length; j++) {
18370
- diacriticToBase[diacritic.letters[j]] = diacritic.base;
18371
- }
18372
- }
18373
-
18374
- var stripDiacritics = function stripDiacritics(str) {
18375
- return str.replace(anyDiacritic, function (match) {
18376
- return diacriticToBase[match];
18377
- });
18378
- };
18379
-
18380
- 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; }
18381
-
18382
- 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) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(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; }
18383
-
18384
- var trimString = function trimString(str) {
18385
- return str.replace(/^\s+|\s+$/g, '');
18386
- };
18387
-
18388
- var defaultStringify = function defaultStringify(option) {
18389
- return "".concat(option.label, " ").concat(option.value);
18390
- };
18391
-
18392
- var createFilter = function createFilter(config) {
18393
- return function (option, rawInput) {
18394
- var _ignoreCase$ignoreAcc = _objectSpread({
18395
- ignoreCase: true,
18396
- ignoreAccents: true,
18397
- stringify: defaultStringify,
18398
- trim: true,
18399
- matchFrom: 'any'
18400
- }, config),
18401
- ignoreCase = _ignoreCase$ignoreAcc.ignoreCase,
18402
- ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents,
18403
- stringify = _ignoreCase$ignoreAcc.stringify,
18404
- trim = _ignoreCase$ignoreAcc.trim,
18405
- matchFrom = _ignoreCase$ignoreAcc.matchFrom;
18406
-
18407
- var input = trim ? trimString(rawInput) : rawInput;
18408
- var candidate = trim ? trimString(stringify(option)) : stringify(option);
18409
-
18410
- if (ignoreCase) {
18411
- input = input.toLowerCase();
18412
- candidate = candidate.toLowerCase();
18413
- }
18414
-
18415
- if (ignoreAccents) {
18416
- input = stripDiacritics(input);
18417
- candidate = stripDiacritics(candidate);
18418
- }
18419
-
18420
- return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1;
18421
- };
18422
- };
18423
-
18424
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; }
18425
-
18426
- var _ref = process.env.NODE_ENV === "production" ? {
18427
- name: "1laao21-a11yText",
18428
- styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"
18429
- } : {
18430
- name: "1laao21-a11yText",
18431
- styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;",
18432
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */",
18433
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
18434
- };
18435
-
18436
- var A11yText = function A11yText(props) {
18437
- return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("span", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
18438
- css: _ref
18439
- }, props));
18440
- };
18441
-
18442
- function DummyInput(_ref) {
18443
- var inProp = _ref.in,
18444
- out = _ref.out,
18445
- onExited = _ref.onExited,
18446
- appear = _ref.appear,
18447
- enter = _ref.enter,
18448
- exit = _ref.exit,
18449
- innerRef = _ref.innerRef,
18450
- emotion = _ref.emotion,
18451
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]);
18452
-
18453
- return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("input", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
18454
- ref: innerRef
18455
- }, props, {
18456
- css: /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_16__emotion_css__["a" /* default */])({
18457
- label: 'dummyInput',
18458
- // get rid of any default styles
18459
- background: 0,
18460
- border: 0,
18461
- fontSize: 'inherit',
18462
- outline: 0,
18463
- padding: 0,
18464
- // important! without `width` browsers won't allow focus
18465
- width: 1,
18466
- // remove cursor on desktop
18467
- color: 'transparent',
18468
- // remove cursor on mobile whilst maintaining "scroll into view" behaviour
18469
- left: -100,
18470
- opacity: 0,
18471
- position: 'relative',
18472
- transform: 'scale(0)'
18473
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJNIiwiZmlsZSI6IkR1bW15SW5wdXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGluOiBpblByb3AsXG4gIG91dCxcbiAgb25FeGl0ZWQsXG4gIGFwcGVhcixcbiAgZW50ZXIsXG4gIGV4aXQsXG4gIGlubmVyUmVmLFxuICBlbW90aW9uLFxuICAuLi5wcm9wc1xufTogYW55KSB7XG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLnByb3BzfVxuICAgICAgY3NzPXt7XG4gICAgICAgIGxhYmVsOiAnZHVtbXlJbnB1dCcsXG4gICAgICAgIC8vIGdldCByaWQgb2YgYW55IGRlZmF1bHQgc3R5bGVzXG4gICAgICAgIGJhY2tncm91bmQ6IDAsXG4gICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgZm9udFNpemU6ICdpbmhlcml0JyxcbiAgICAgICAgb3V0bGluZTogMCxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgLy8gaW1wb3J0YW50ISB3aXRob3V0IGB3aWR0aGAgYnJvd3NlcnMgd29uJ3QgYWxsb3cgZm9jdXNcbiAgICAgICAgd2lkdGg6IDEsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBkZXNrdG9wXG4gICAgICAgIGNvbG9yOiAndHJhbnNwYXJlbnQnLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gbW9iaWxlIHdoaWxzdCBtYWludGFpbmluZyBcInNjcm9sbCBpbnRvIHZpZXdcIiBiZWhhdmlvdXJcbiAgICAgICAgbGVmdDogLTEwMCxcbiAgICAgICAgb3BhY2l0eTogMCxcbiAgICAgICAgcG9zaXRpb246ICdyZWxhdGl2ZScsXG4gICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDApJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")
18474
- }));
18475
- }
18476
-
18477
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
18478
-
18479
- 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; } }
18480
-
18481
- var NodeResolver = /*#__PURE__*/function (_Component) {
18482
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NodeResolver, _Component);
18483
-
18484
- var _super = _createSuper(NodeResolver);
18485
-
18486
- function NodeResolver() {
18487
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NodeResolver);
18488
-
18489
- return _super.apply(this, arguments);
18490
- }
18491
-
18492
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NodeResolver, [{
18493
- key: "componentDidMount",
18494
- value: function componentDidMount() {
18495
- this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_14_react_dom__["findDOMNode"])(this));
18496
- }
18497
- }, {
18498
- key: "componentWillUnmount",
18499
- value: function componentWillUnmount() {
18500
- this.props.innerRef(null);
18501
- }
18502
- }, {
18503
- key: "render",
18504
- value: function render() {
18505
- return this.props.children;
18506
- }
18507
- }]);
18508
-
18509
- return NodeResolver;
18510
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
18511
-
18512
- var STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'];
18513
- var LOCK_STYLES = {
18514
- boxSizing: 'border-box',
18515
- // account for possible declaration `width: 100%;` on body
18516
- overflow: 'hidden',
18517
- position: 'relative',
18518
- height: '100%'
18519
- };
18520
-
18521
- function preventTouchMove(e) {
18522
- e.preventDefault();
18523
- }
18524
- function allowTouchMove(e) {
18525
- e.stopPropagation();
18526
- }
18527
- function preventInertiaScroll() {
18528
- var top = this.scrollTop;
18529
- var totalScroll = this.scrollHeight;
18530
- var currentScroll = top + this.offsetHeight;
18531
-
18532
- if (top === 0) {
18533
- this.scrollTop = 1;
18534
- } else if (currentScroll === totalScroll) {
18535
- this.scrollTop = top - 1;
18536
- }
18537
- } // `ontouchstart` check works on most browsers
18538
- // `maxTouchPoints` works on IE10/11 and Surface
18539
-
18540
- function isTouchDevice() {
18541
- return 'ontouchstart' in window || navigator.maxTouchPoints;
18542
- }
18543
-
18544
- function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
18545
-
18546
- 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; } }
18547
- var canUseDOM = !!( window.document && window.document.createElement);
18548
- var activeScrollLocks = 0;
18549
-
18550
- var ScrollLock = /*#__PURE__*/function (_Component) {
18551
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollLock, _Component);
18552
-
18553
- var _super = _createSuper$1(ScrollLock);
18554
-
18555
- function ScrollLock() {
18556
- var _this;
18557
-
18558
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollLock);
18559
-
18560
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18561
- args[_key] = arguments[_key];
18562
- }
18563
-
18564
- _this = _super.call.apply(_super, [this].concat(args));
18565
- _this.originalStyles = {};
18566
- _this.listenerOptions = {
18567
- capture: false,
18568
- passive: false
18569
- };
18570
- return _this;
18571
- }
18572
-
18573
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollLock, [{
18574
- key: "componentDidMount",
18575
- value: function componentDidMount() {
18576
- var _this2 = this;
18577
-
18578
- if (!canUseDOM) return;
18579
- var _this$props = this.props,
18580
- accountForScrollbars = _this$props.accountForScrollbars,
18581
- touchScrollTarget = _this$props.touchScrollTarget;
18582
- var target = document.body;
18583
- var targetStyle = target && target.style;
18584
-
18585
- if (accountForScrollbars) {
18586
- // store any styles already applied to the body
18587
- STYLE_KEYS.forEach(function (key) {
18588
- var val = targetStyle && targetStyle[key];
18589
- _this2.originalStyles[key] = val;
18590
- });
18591
- } // apply the lock styles and padding if this is the first scroll lock
18592
-
18593
-
18594
- if (accountForScrollbars && activeScrollLocks < 1) {
18595
- var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0;
18596
- var clientWidth = document.body ? document.body.clientWidth : 0;
18597
- var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;
18598
- Object.keys(LOCK_STYLES).forEach(function (key) {
18599
- var val = LOCK_STYLES[key];
18600
-
18601
- if (targetStyle) {
18602
- targetStyle[key] = val;
18603
- }
18604
- });
18605
-
18606
- if (targetStyle) {
18607
- targetStyle.paddingRight = "".concat(adjustedPadding, "px");
18608
- }
18609
- } // account for touch devices
18610
-
18611
-
18612
- if (target && isTouchDevice()) {
18613
- // Mobile Safari ignores { overflow: hidden } declaration on the body.
18614
- target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target
18615
-
18616
- if (touchScrollTarget) {
18617
- touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
18618
- touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions);
18619
- }
18620
- } // increment active scroll locks
18621
-
18622
-
18623
- activeScrollLocks += 1;
18624
- }
18625
- }, {
18626
- key: "componentWillUnmount",
18627
- value: function componentWillUnmount() {
18628
- var _this3 = this;
18629
-
18630
- if (!canUseDOM) return;
18631
- var _this$props2 = this.props,
18632
- accountForScrollbars = _this$props2.accountForScrollbars,
18633
- touchScrollTarget = _this$props2.touchScrollTarget;
18634
- var target = document.body;
18635
- var targetStyle = target && target.style; // safely decrement active scroll locks
18636
-
18637
- activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any
18638
-
18639
- if (accountForScrollbars && activeScrollLocks < 1) {
18640
- STYLE_KEYS.forEach(function (key) {
18641
- var val = _this3.originalStyles[key];
18642
-
18643
- if (targetStyle) {
18644
- targetStyle[key] = val;
18645
- }
18646
- });
18647
- } // remove touch listeners
18648
-
18649
-
18650
- if (target && isTouchDevice()) {
18651
- target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions);
18652
-
18653
- if (touchScrollTarget) {
18654
- touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
18655
- touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions);
18656
- }
18657
- }
18658
- }
18659
- }, {
18660
- key: "render",
18661
- value: function render() {
18662
- return null;
18663
- }
18664
- }]);
18665
-
18666
- return ScrollLock;
18667
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
18668
-
18669
- ScrollLock.defaultProps = {
18670
- accountForScrollbars: true
18671
- };
18672
-
18673
- 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)."; }
18674
-
18675
- function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
18676
-
18677
- 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; } }
18678
-
18679
- var _ref$1 = process.env.NODE_ENV === "production" ? {
18680
- name: "1dsbpcp",
18681
- styles: "position:fixed;left:0;bottom:0;right:0;top:0;"
18682
- } : {
18683
- name: "1dsbpcp",
18684
- styles: "position:fixed;left:0;bottom:0;right:0;top:0;",
18685
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRlIHRvIHRyaWdnZXIgYSByZS1yZW5kZXIsIG9ubHkgcnVucyBvbmNlIHBlciBpbnN0YW5jZVxuICBnZXRTY3JvbGxUYXJnZXQgPSAocmVmOiBIVE1MRWxlbWVudCkgPT4ge1xuICAgIGlmIChyZWYgPT09IHRoaXMuc3RhdGUudG91Y2hTY3JvbGxUYXJnZXQpIHJldHVybjtcbiAgICB0aGlzLnNldFN0YXRlKHsgdG91Y2hTY3JvbGxUYXJnZXQ6IHJlZiB9KTtcbiAgfTtcblxuICAvLyB0aGlzIHdpbGwgY2xvc2UgdGhlIG1lbnUgd2hlbiBhIHVzZXIgY2xpY2tzIG91dHNpZGVcbiAgYmx1clNlbGVjdElucHV0ID0gKCkgPT4ge1xuICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50KSB7XG4gICAgICBkb2N1bWVudC5hY3RpdmVFbGVtZW50LmJsdXIoKTtcbiAgICB9XG4gIH07XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgY2hpbGRyZW4sIGlzRW5hYmxlZCB9ID0gdGhpcy5wcm9wcztcbiAgICBjb25zdCB7IHRvdWNoU2Nyb2xsVGFyZ2V0IH0gPSB0aGlzLnN0YXRlO1xuXG4gICAgLy8gYmFpbCBlYXJseSBpZiBub3QgZW5hYmxlZFxuICAgIGlmICghaXNFbmFibGVkKSByZXR1cm4gY2hpbGRyZW47XG5cbiAgICAvKlxuICAgICAqIERpdlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGJsb2NrcyBzY3JvbGxpbmcgb24gbm9uLWJvZHkgZWxlbWVudHMgYmVoaW5kIHRoZSBtZW51XG5cbiAgICAgKiBOb2RlUmVzb2x2ZXJcbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKiB3ZSBuZWVkIGEgcmVmZXJlbmNlIHRvIHRoZSBzY3JvbGxhYmxlIGVsZW1lbnQgdG8gXCJ1bmxvY2tcIiBzY3JvbGwgb25cbiAgICAgKiBtb2JpbGUgZGV2aWNlc1xuXG4gICAgICogU2Nyb2xsTG9ja1xuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGFjdHVhbGx5IGRvZXMgdGhlIHNjcm9sbCBsb2NraW5nXG4gICAgICovXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXY+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXt0aGlzLmJsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgICA8Tm9kZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */",
18686
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
18687
- };
18688
-
18689
- // NOTE:
18690
- // We shouldn't need this after updating to React v16.3.0, which introduces:
18691
- // - createRef() https://reactjs.org/docs/react-api.html#reactcreateref
18692
- // - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref
18693
- var ScrollBlock = /*#__PURE__*/function (_PureComponent) {
18694
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollBlock, _PureComponent);
18695
-
18696
- var _super = _createSuper$2(ScrollBlock);
18697
-
18698
- function ScrollBlock() {
18699
- var _this;
18700
-
18701
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollBlock);
18702
-
18703
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18704
- args[_key] = arguments[_key];
18705
- }
18706
-
18707
- _this = _super.call.apply(_super, [this].concat(args));
18708
- _this.state = {
18709
- touchScrollTarget: null
18710
- };
18711
-
18712
- _this.getScrollTarget = function (ref) {
18713
- if (ref === _this.state.touchScrollTarget) return;
18714
-
18715
- _this.setState({
18716
- touchScrollTarget: ref
18717
- });
18718
- };
18719
-
18720
- _this.blurSelectInput = function () {
18721
- if (document.activeElement) {
18722
- document.activeElement.blur();
18723
- }
18724
- };
18725
-
18726
- return _this;
18727
- }
18728
-
18729
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollBlock, [{
18730
- key: "render",
18731
- value: function render() {
18732
- var _this$props = this.props,
18733
- children = _this$props.children,
18734
- isEnabled = _this$props.isEnabled;
18735
- var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled
18736
-
18737
- if (!isEnabled) return children;
18738
- /*
18739
- * Div
18740
- * ------------------------------
18741
- * blocks scrolling on non-body elements behind the menu
18742
- * NodeResolver
18743
- * ------------------------------
18744
- * we need a reference to the scrollable element to "unlock" scroll on
18745
- * mobile devices
18746
- * ScrollLock
18747
- * ------------------------------
18748
- * actually does the scroll locking
18749
- */
18750
-
18751
- return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("div", null, Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("div", {
18752
- onClick: this.blurSelectInput,
18753
- css: _ref$1
18754
- }), Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])(NodeResolver, {
18755
- innerRef: this.getScrollTarget
18756
- }, children), touchScrollTarget ? Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])(ScrollLock, {
18757
- touchScrollTarget: touchScrollTarget
18758
- }) : null);
18759
- }
18760
- }]);
18761
-
18762
- return ScrollBlock;
18763
- }(__WEBPACK_IMPORTED_MODULE_11_react__["PureComponent"]);
18764
-
18765
- function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
18766
-
18767
- 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; } }
18768
-
18769
- var ScrollCaptor = /*#__PURE__*/function (_Component) {
18770
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollCaptor, _Component);
18771
-
18772
- var _super = _createSuper$3(ScrollCaptor);
18773
-
18774
- function ScrollCaptor() {
18775
- var _this;
18776
-
18777
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollCaptor);
18778
-
18779
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18780
- args[_key] = arguments[_key];
18781
- }
18782
-
18783
- _this = _super.call.apply(_super, [this].concat(args));
18784
- _this.isBottom = false;
18785
- _this.isTop = false;
18786
- _this.scrollTarget = void 0;
18787
- _this.touchStart = void 0;
18788
-
18789
- _this.cancelScroll = function (event) {
18790
- event.preventDefault();
18791
- event.stopPropagation();
18792
- };
18793
-
18794
- _this.handleEventDelta = function (event, delta) {
18795
- var _this$props = _this.props,
18796
- onBottomArrive = _this$props.onBottomArrive,
18797
- onBottomLeave = _this$props.onBottomLeave,
18798
- onTopArrive = _this$props.onTopArrive,
18799
- onTopLeave = _this$props.onTopLeave;
18800
- var _this$scrollTarget = _this.scrollTarget,
18801
- scrollTop = _this$scrollTarget.scrollTop,
18802
- scrollHeight = _this$scrollTarget.scrollHeight,
18803
- clientHeight = _this$scrollTarget.clientHeight;
18804
- var target = _this.scrollTarget;
18805
- var isDeltaPositive = delta > 0;
18806
- var availableScroll = scrollHeight - clientHeight - scrollTop;
18807
- var shouldCancelScroll = false; // reset bottom/top flags
18808
-
18809
- if (availableScroll > delta && _this.isBottom) {
18810
- if (onBottomLeave) onBottomLeave(event);
18811
- _this.isBottom = false;
18812
- }
18813
-
18814
- if (isDeltaPositive && _this.isTop) {
18815
- if (onTopLeave) onTopLeave(event);
18816
- _this.isTop = false;
18817
- } // bottom limit
18818
-
18819
-
18820
- if (isDeltaPositive && delta > availableScroll) {
18821
- if (onBottomArrive && !_this.isBottom) {
18822
- onBottomArrive(event);
18823
- }
18824
-
18825
- target.scrollTop = scrollHeight;
18826
- shouldCancelScroll = true;
18827
- _this.isBottom = true; // top limit
18828
- } else if (!isDeltaPositive && -delta > scrollTop) {
18829
- if (onTopArrive && !_this.isTop) {
18830
- onTopArrive(event);
18831
- }
18832
-
18833
- target.scrollTop = 0;
18834
- shouldCancelScroll = true;
18835
- _this.isTop = true;
18836
- } // cancel scroll
18837
-
18838
-
18839
- if (shouldCancelScroll) {
18840
- _this.cancelScroll(event);
18841
- }
18842
- };
18843
-
18844
- _this.onWheel = function (event) {
18845
- _this.handleEventDelta(event, event.deltaY);
18846
- };
18847
-
18848
- _this.onTouchStart = function (event) {
18849
- // set touch start so we can calculate touchmove delta
18850
- _this.touchStart = event.changedTouches[0].clientY;
18851
- };
18852
-
18853
- _this.onTouchMove = function (event) {
18854
- var deltaY = _this.touchStart - event.changedTouches[0].clientY;
18855
-
18856
- _this.handleEventDelta(event, deltaY);
18857
- };
18858
-
18859
- _this.getScrollTarget = function (ref) {
18860
- _this.scrollTarget = ref;
18861
- };
18862
-
18863
- return _this;
18864
- }
18865
-
18866
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollCaptor, [{
18867
- key: "componentDidMount",
18868
- value: function componentDidMount() {
18869
- this.startListening(this.scrollTarget);
18870
- }
18871
- }, {
18872
- key: "componentWillUnmount",
18873
- value: function componentWillUnmount() {
18874
- this.stopListening(this.scrollTarget);
18875
- }
18876
- }, {
18877
- key: "startListening",
18878
- value: function startListening(el) {
18879
- // bail early if no element is available to attach to
18880
- if (!el) return; // all the if statements are to appease Flow 😢
18881
-
18882
- if (typeof el.addEventListener === 'function') {
18883
- el.addEventListener('wheel', this.onWheel, false);
18884
- }
18885
-
18886
- if (typeof el.addEventListener === 'function') {
18887
- el.addEventListener('touchstart', this.onTouchStart, false);
18888
- }
18889
-
18890
- if (typeof el.addEventListener === 'function') {
18891
- el.addEventListener('touchmove', this.onTouchMove, false);
18892
- }
18893
- }
18894
- }, {
18895
- key: "stopListening",
18896
- value: function stopListening(el) {
18897
- // all the if statements are to appease Flow 😢
18898
- if (typeof el.removeEventListener === 'function') {
18899
- el.removeEventListener('wheel', this.onWheel, false);
18900
- }
18901
-
18902
- if (typeof el.removeEventListener === 'function') {
18903
- el.removeEventListener('touchstart', this.onTouchStart, false);
18904
- }
18905
-
18906
- if (typeof el.removeEventListener === 'function') {
18907
- el.removeEventListener('touchmove', this.onTouchMove, false);
18908
- }
18909
- }
18910
- }, {
18911
- key: "render",
18912
- value: function render() {
18913
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NodeResolver, {
18914
- innerRef: this.getScrollTarget
18915
- }, this.props.children);
18916
- }
18917
- }]);
18918
-
18919
- return ScrollCaptor;
18920
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
18921
-
18922
- function ScrollCaptorSwitch(_ref) {
18923
- var _ref$isEnabled = _ref.isEnabled,
18924
- isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled,
18925
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["isEnabled"]);
18926
-
18927
- return isEnabled ? /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptor, props) : props.children;
18928
- }
18929
-
18930
- var instructionsAriaMessage = function instructionsAriaMessage(event) {
18931
- var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
18932
- var isSearchable = context.isSearchable,
18933
- isMulti = context.isMulti,
18934
- label = context.label,
18935
- isDisabled = context.isDisabled;
18936
-
18937
- switch (event) {
18938
- case 'menu':
18939
- return "Use Up and Down to choose options".concat(isDisabled ? '' : ', press Enter to select the currently focused option', ", press Escape to exit the menu, press Tab to select the option and exit the menu.");
18940
-
18941
- case 'input':
18942
- return "".concat(label ? label : 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '');
18943
-
18944
- case 'value':
18945
- return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';
18946
- }
18947
- };
18948
- var valueEventAriaMessage = function valueEventAriaMessage(event, context) {
18949
- var value = context.value,
18950
- isDisabled = context.isDisabled;
18951
- if (!value) return;
18952
-
18953
- switch (event) {
18954
- case 'deselect-option':
18955
- case 'pop-value':
18956
- case 'remove-value':
18957
- return "option ".concat(value, ", deselected.");
18958
-
18959
- case 'select-option':
18960
- return isDisabled ? "option ".concat(value, " is disabled. Select another option.") : "option ".concat(value, ", selected.");
18961
- }
18962
- };
18963
- var valueFocusAriaMessage = function valueFocusAriaMessage(_ref) {
18964
- var focusedValue = _ref.focusedValue,
18965
- getOptionLabel = _ref.getOptionLabel,
18966
- selectValue = _ref.selectValue;
18967
- return "value ".concat(getOptionLabel(focusedValue), " focused, ").concat(selectValue.indexOf(focusedValue) + 1, " of ").concat(selectValue.length, ".");
18968
- };
18969
- var optionFocusAriaMessage = function optionFocusAriaMessage(_ref2) {
18970
- var focusedOption = _ref2.focusedOption,
18971
- getOptionLabel = _ref2.getOptionLabel,
18972
- options = _ref2.options;
18973
- return "option ".concat(getOptionLabel(focusedOption), " focused").concat(focusedOption.isDisabled ? ' disabled' : '', ", ").concat(options.indexOf(focusedOption) + 1, " of ").concat(options.length, ".");
18974
- };
18975
- var resultsAriaMessage = function resultsAriaMessage(_ref3) {
18976
- var inputValue = _ref3.inputValue,
18977
- screenReaderMessage = _ref3.screenReaderMessage;
18978
- return "".concat(screenReaderMessage).concat(inputValue ? ' for search term ' + inputValue : '', ".");
18979
- };
18980
-
18981
- var formatGroupLabel = function formatGroupLabel(group) {
18982
- return group.label;
18983
- };
18984
- var getOptionLabel = function getOptionLabel(option) {
18985
- return option.label;
18986
- };
18987
- var getOptionValue = function getOptionValue(option) {
18988
- return option.value;
18989
- };
18990
- var isOptionDisabled = function isOptionDisabled(option) {
18991
- return !!option.isDisabled;
18992
- };
18993
-
18994
- 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; }
18995
-
18996
- 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) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(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; }
18997
- var defaultStyles = {
18998
- clearIndicator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["j" /* c */],
18999
- container: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["h" /* a */],
19000
- control: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["i" /* b */],
19001
- dropdownIndicator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["k" /* d */],
19002
- group: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["n" /* g */],
19003
- groupHeading: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["l" /* e */],
19004
- indicatorsContainer: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["p" /* i */],
19005
- indicatorSeparator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["m" /* f */],
19006
- input: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["o" /* h */],
19007
- loadingIndicator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["s" /* l */],
19008
- loadingMessage: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["q" /* j */],
19009
- menu: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["t" /* m */],
19010
- menuList: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["r" /* k */],
19011
- menuPortal: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["u" /* n */],
19012
- multiValue: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["v" /* o */],
19013
- multiValueLabel: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["w" /* p */],
19014
- multiValueRemove: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["x" /* q */],
19015
- noOptionsMessage: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["y" /* r */],
19016
- option: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["z" /* s */],
19017
- placeholder: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["A" /* t */],
19018
- singleValue: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["B" /* u */],
19019
- valueContainer: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["C" /* v */]
19020
- }; // Merge Utility
19021
- // Allows consumers to extend a base Select with additional styles
19022
-
19023
- function mergeStyles(source) {
19024
- var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19025
-
19026
- // initialize with source styles
19027
- var styles = _objectSpread$1({}, source); // massage in target styles
19028
-
19029
-
19030
- Object.keys(target).forEach(function (key) {
19031
- if (source[key]) {
19032
- styles[key] = function (rsCss, props) {
19033
- return target[key](source[key](rsCss, props), props);
19034
- };
19035
- } else {
19036
- styles[key] = target[key];
19037
- }
19038
- });
19039
- return styles;
19040
- }
19041
-
19042
- var colors = {
19043
- primary: '#2684FF',
19044
- primary75: '#4C9AFF',
19045
- primary50: '#B2D4FF',
19046
- primary25: '#DEEBFF',
19047
- danger: '#DE350B',
19048
- dangerLight: '#FFBDAD',
19049
- neutral0: 'hsl(0, 0%, 100%)',
19050
- neutral5: 'hsl(0, 0%, 95%)',
19051
- neutral10: 'hsl(0, 0%, 90%)',
19052
- neutral20: 'hsl(0, 0%, 80%)',
19053
- neutral30: 'hsl(0, 0%, 70%)',
19054
- neutral40: 'hsl(0, 0%, 60%)',
19055
- neutral50: 'hsl(0, 0%, 50%)',
19056
- neutral60: 'hsl(0, 0%, 40%)',
19057
- neutral70: 'hsl(0, 0%, 30%)',
19058
- neutral80: 'hsl(0, 0%, 20%)',
19059
- neutral90: 'hsl(0, 0%, 10%)'
19060
- };
19061
- var borderRadius = 4; // Used to calculate consistent margin/padding on elements
19062
-
19063
- var baseUnit = 4; // The minimum height of the control
19064
-
19065
- var controlHeight = 38; // The amount of space between the control and menu */
19066
-
19067
- var menuGutter = baseUnit * 2;
19068
- var spacing = {
19069
- baseUnit: baseUnit,
19070
- controlHeight: controlHeight,
19071
- menuGutter: menuGutter
19072
- };
19073
- var defaultTheme = {
19074
- borderRadius: borderRadius,
19075
- colors: colors,
19076
- spacing: spacing
19077
- };
19078
-
19079
- 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; }
19080
-
19081
- 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) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(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; }
19082
-
19083
- function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
19084
-
19085
- 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; } }
19086
- var defaultProps = {
19087
- backspaceRemovesValue: true,
19088
- blurInputOnSelect: Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["D" /* w */])(),
19089
- captureMenuScroll: !Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["D" /* w */])(),
19090
- closeMenuOnSelect: true,
19091
- closeMenuOnScroll: false,
19092
- components: {},
19093
- controlShouldRenderValue: true,
19094
- escapeClearsValue: false,
19095
- filterOption: createFilter(),
19096
- formatGroupLabel: formatGroupLabel,
19097
- getOptionLabel: getOptionLabel,
19098
- getOptionValue: getOptionValue,
19099
- isDisabled: false,
19100
- isLoading: false,
19101
- isMulti: false,
19102
- isRtl: false,
19103
- isSearchable: true,
19104
- isOptionDisabled: isOptionDisabled,
19105
- loadingMessage: function loadingMessage() {
19106
- return 'Loading...';
19107
- },
19108
- maxMenuHeight: 300,
19109
- minMenuHeight: 140,
19110
- menuIsOpen: false,
19111
- menuPlacement: 'bottom',
19112
- menuPosition: 'absolute',
19113
- menuShouldBlockScroll: false,
19114
- menuShouldScrollIntoView: !Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["E" /* x */])(),
19115
- noOptionsMessage: function noOptionsMessage() {
19116
- return 'No options';
19117
- },
19118
- openMenuOnFocus: false,
19119
- openMenuOnClick: true,
19120
- options: [],
19121
- pageSize: 5,
19122
- placeholder: 'Select...',
19123
- screenReaderStatus: function screenReaderStatus(_ref) {
19124
- var count = _ref.count;
19125
- return "".concat(count, " result").concat(count !== 1 ? 's' : '', " available");
19126
- },
19127
- styles: {},
19128
- tabIndex: '0',
19129
- tabSelectsValue: true
19130
- };
19131
- var instanceId = 1;
19132
-
19133
- var Select = /*#__PURE__*/function (_Component) {
19134
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(Select, _Component);
19135
-
19136
- var _super = _createSuper$4(Select);
19137
-
19138
- // Misc. Instance Properties
19139
- // ------------------------------
19140
- // TODO
19141
- // Refs
19142
- // ------------------------------
19143
- // Lifecycle
19144
- // ------------------------------
19145
- function Select(_props) {
19146
- var _this;
19147
-
19148
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, Select);
19149
-
19150
- _this = _super.call(this, _props);
19151
- _this.state = {
19152
- ariaLiveSelection: '',
19153
- ariaLiveContext: '',
19154
- focusedOption: null,
19155
- focusedValue: null,
19156
- inputIsHidden: false,
19157
- isFocused: false,
19158
- menuOptions: {
19159
- render: [],
19160
- focusable: []
19161
- },
19162
- selectValue: []
19163
- };
19164
- _this.blockOptionHover = false;
19165
- _this.isComposing = false;
19166
- _this.clearFocusValueOnUpdate = false;
19167
- _this.commonProps = void 0;
19168
- _this.components = void 0;
19169
- _this.hasGroups = false;
19170
- _this.initialTouchX = 0;
19171
- _this.initialTouchY = 0;
19172
- _this.inputIsHiddenAfterUpdate = void 0;
19173
- _this.instancePrefix = '';
19174
- _this.openAfterFocus = false;
19175
- _this.scrollToFocusedOptionOnUpdate = false;
19176
- _this.userIsDragging = void 0;
19177
- _this.controlRef = null;
19178
-
19179
- _this.getControlRef = function (ref) {
19180
- _this.controlRef = ref;
19181
- };
19182
-
19183
- _this.focusedOptionRef = null;
19184
-
19185
- _this.getFocusedOptionRef = function (ref) {
19186
- _this.focusedOptionRef = ref;
19187
- };
19188
-
19189
- _this.menuListRef = null;
19190
-
19191
- _this.getMenuListRef = function (ref) {
19192
- _this.menuListRef = ref;
19193
- };
19194
-
19195
- _this.inputRef = null;
19196
-
19197
- _this.getInputRef = function (ref) {
19198
- _this.inputRef = ref;
19199
- };
19200
-
19201
- _this.cacheComponents = function (components) {
19202
- _this.components = Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["F" /* y */])({
19203
- components: components
19204
- });
19205
- };
19206
-
19207
- _this.focus = _this.focusInput;
19208
- _this.blur = _this.blurInput;
19209
-
19210
- _this.onChange = function (newValue, actionMeta) {
19211
- var _this$props = _this.props,
19212
- onChange = _this$props.onChange,
19213
- name = _this$props.name;
19214
- onChange(newValue, _objectSpread$2(_objectSpread$2({}, actionMeta), {}, {
19215
- name: name
19216
- }));
19217
- };
19218
-
19219
- _this.setValue = function (newValue) {
19220
- var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'set-value';
19221
- var option = arguments.length > 2 ? arguments[2] : undefined;
19222
- var _this$props2 = _this.props,
19223
- closeMenuOnSelect = _this$props2.closeMenuOnSelect,
19224
- isMulti = _this$props2.isMulti;
19225
-
19226
- _this.onInputChange('', {
19227
- action: 'set-value'
19228
- });
19229
-
19230
- if (closeMenuOnSelect) {
19231
- _this.inputIsHiddenAfterUpdate = !isMulti;
19232
-
19233
- _this.onMenuClose();
19234
- } // when the select value should change, we should reset focusedValue
19235
-
19236
-
19237
- _this.clearFocusValueOnUpdate = true;
19238
-
19239
- _this.onChange(newValue, {
19240
- action: action,
19241
- option: option
19242
- });
19243
- };
19244
-
19245
- _this.selectOption = function (newValue) {
19246
- var _this$props3 = _this.props,
19247
- blurInputOnSelect = _this$props3.blurInputOnSelect,
19248
- isMulti = _this$props3.isMulti;
19249
- var selectValue = _this.state.selectValue;
19250
-
19251
- if (isMulti) {
19252
- if (_this.isOptionSelected(newValue, selectValue)) {
19253
- var candidate = _this.getOptionValue(newValue);
19254
-
19255
- _this.setValue(selectValue.filter(function (i) {
19256
- return _this.getOptionValue(i) !== candidate;
19257
- }), 'deselect-option', newValue);
19258
-
19259
- _this.announceAriaLiveSelection({
19260
- event: 'deselect-option',
19261
- context: {
19262
- value: _this.getOptionLabel(newValue)
19263
- }
19264
- });
19265
- } else {
19266
- if (!_this.isOptionDisabled(newValue, selectValue)) {
19267
- _this.setValue([].concat(Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(selectValue), [newValue]), 'select-option', newValue);
19268
-
19269
- _this.announceAriaLiveSelection({
19270
- event: 'select-option',
19271
- context: {
19272
- value: _this.getOptionLabel(newValue)
19273
- }
19274
- });
19275
- } else {
19276
- // announce that option is disabled
19277
- _this.announceAriaLiveSelection({
19278
- event: 'select-option',
19279
- context: {
19280
- value: _this.getOptionLabel(newValue),
19281
- isDisabled: true
19282
- }
19283
- });
19284
- }
19285
- }
19286
- } else {
19287
- if (!_this.isOptionDisabled(newValue, selectValue)) {
19288
- _this.setValue(newValue, 'select-option');
19289
-
19290
- _this.announceAriaLiveSelection({
19291
- event: 'select-option',
19292
- context: {
19293
- value: _this.getOptionLabel(newValue)
19294
- }
19295
- });
19296
- } else {
19297
- // announce that option is disabled
19298
- _this.announceAriaLiveSelection({
19299
- event: 'select-option',
19300
- context: {
19301
- value: _this.getOptionLabel(newValue),
19302
- isDisabled: true
19303
- }
19304
- });
19305
- }
19306
- }
19307
-
19308
- if (blurInputOnSelect) {
19309
- _this.blurInput();
19310
- }
19311
- };
19312
-
19313
- _this.removeValue = function (removedValue) {
19314
- var selectValue = _this.state.selectValue;
19315
-
19316
- var candidate = _this.getOptionValue(removedValue);
19317
-
19318
- var newValue = selectValue.filter(function (i) {
19319
- return _this.getOptionValue(i) !== candidate;
19320
- });
19321
-
19322
- _this.onChange(newValue.length ? newValue : null, {
19323
- action: 'remove-value',
19324
- removedValue: removedValue
19325
- });
19326
-
19327
- _this.announceAriaLiveSelection({
19328
- event: 'remove-value',
19329
- context: {
19330
- value: removedValue ? _this.getOptionLabel(removedValue) : ''
19331
- }
19332
- });
19333
-
19334
- _this.focusInput();
19335
- };
19336
-
19337
- _this.clearValue = function () {
19338
- var isMulti = _this.props.isMulti;
19339
-
19340
- _this.onChange(isMulti ? [] : null, {
19341
- action: 'clear'
19342
- });
19343
- };
19344
-
19345
- _this.popValue = function () {
19346
- var selectValue = _this.state.selectValue;
19347
- var lastSelectedValue = selectValue[selectValue.length - 1];
19348
- var newValue = selectValue.slice(0, selectValue.length - 1);
19349
-
19350
- _this.announceAriaLiveSelection({
19351
- event: 'pop-value',
19352
- context: {
19353
- value: lastSelectedValue ? _this.getOptionLabel(lastSelectedValue) : ''
19354
- }
19355
- });
19356
-
19357
- _this.onChange(newValue.length ? newValue : null, {
19358
- action: 'pop-value',
19359
- removedValue: lastSelectedValue
19360
- });
19361
- };
19362
-
19363
- _this.getOptionLabel = function (data) {
19364
- return _this.props.getOptionLabel(data);
19365
- };
19366
-
19367
- _this.getOptionValue = function (data) {
19368
- return _this.props.getOptionValue(data);
19369
- };
19370
-
19371
- _this.getStyles = function (key, props) {
19372
- var base = defaultStyles[key](props);
19373
- base.boxSizing = 'border-box';
19374
- var custom = _this.props.styles[key];
19375
- return custom ? custom(base, props) : base;
19376
- };
19377
-
19378
- _this.getElementId = function (element) {
19379
- return "".concat(_this.instancePrefix, "-").concat(element);
19380
- };
19381
-
19382
- _this.getActiveDescendentId = function () {
19383
- var menuIsOpen = _this.props.menuIsOpen;
19384
- var _this$state = _this.state,
19385
- menuOptions = _this$state.menuOptions,
19386
- focusedOption = _this$state.focusedOption;
19387
- if (!focusedOption || !menuIsOpen) return undefined;
19388
- var index = menuOptions.focusable.indexOf(focusedOption);
19389
- var option = menuOptions.render[index];
19390
- return option && option.key;
19391
- };
19392
-
19393
- _this.announceAriaLiveSelection = function (_ref2) {
19394
- var event = _ref2.event,
19395
- context = _ref2.context;
19396
-
19397
- _this.setState({
19398
- ariaLiveSelection: valueEventAriaMessage(event, context)
19399
- });
19400
- };
19401
-
19402
- _this.announceAriaLiveContext = function (_ref3) {
19403
- var event = _ref3.event,
19404
- context = _ref3.context;
19405
-
19406
- _this.setState({
19407
- ariaLiveContext: instructionsAriaMessage(event, _objectSpread$2(_objectSpread$2({}, context), {}, {
19408
- label: _this.props['aria-label']
19409
- }))
19410
- });
19411
- };
19412
-
19413
- _this.onMenuMouseDown = function (event) {
19414
- if (event.button !== 0) {
19415
- return;
19416
- }
19417
-
19418
- event.stopPropagation();
19419
- event.preventDefault();
19420
-
19421
- _this.focusInput();
19422
- };
19423
-
19424
- _this.onMenuMouseMove = function (event) {
19425
- _this.blockOptionHover = false;
19426
- };
19427
-
19428
- _this.onControlMouseDown = function (event) {
19429
- var openMenuOnClick = _this.props.openMenuOnClick;
19430
-
19431
- if (!_this.state.isFocused) {
19432
- if (openMenuOnClick) {
19433
- _this.openAfterFocus = true;
19434
- }
19435
-
19436
- _this.focusInput();
19437
- } else if (!_this.props.menuIsOpen) {
19438
- if (openMenuOnClick) {
19439
- _this.openMenu('first');
19440
- }
19441
- } else {
19442
- if ( // $FlowFixMe
19443
- event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') {
19444
- _this.onMenuClose();
19445
- }
19446
- }
19447
-
19448
- if ( // $FlowFixMe
19449
- event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') {
19450
- event.preventDefault();
19451
- }
19452
- };
19453
-
19454
- _this.onDropdownIndicatorMouseDown = function (event) {
19455
- // ignore mouse events that weren't triggered by the primary button
19456
- if (event && event.type === 'mousedown' && event.button !== 0) {
19457
- return;
19458
- }
19459
-
19460
- if (_this.props.isDisabled) return;
19461
- var _this$props4 = _this.props,
19462
- isMulti = _this$props4.isMulti,
19463
- menuIsOpen = _this$props4.menuIsOpen;
19464
-
19465
- _this.focusInput();
19466
-
19467
- if (menuIsOpen) {
19468
- _this.inputIsHiddenAfterUpdate = !isMulti;
19469
-
19470
- _this.onMenuClose();
19471
- } else {
19472
- _this.openMenu('first');
19473
- }
19474
-
19475
- event.preventDefault();
19476
- event.stopPropagation();
19477
- };
19478
-
19479
- _this.onClearIndicatorMouseDown = function (event) {
19480
- // ignore mouse events that weren't triggered by the primary button
19481
- if (event && event.type === 'mousedown' && event.button !== 0) {
19482
- return;
19483
- }
19484
-
19485
- _this.clearValue();
19486
-
19487
- event.stopPropagation();
19488
- _this.openAfterFocus = false;
19489
-
19490
- if (event.type === 'touchend') {
19491
- _this.focusInput();
19492
- } else {
19493
- setTimeout(function () {
19494
- return _this.focusInput();
19495
- });
19496
- }
19497
- };
19498
-
19499
- _this.onScroll = function (event) {
19500
- if (typeof _this.props.closeMenuOnScroll === 'boolean') {
19501
- if (event.target instanceof HTMLElement && Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["G" /* z */])(event.target)) {
19502
- _this.props.onMenuClose();
19503
- }
19504
- } else if (typeof _this.props.closeMenuOnScroll === 'function') {
19505
- if (_this.props.closeMenuOnScroll(event)) {
19506
- _this.props.onMenuClose();
19507
- }
19508
- }
19509
- };
19510
-
19511
- _this.onCompositionStart = function () {
19512
- _this.isComposing = true;
19513
- };
19514
-
19515
- _this.onCompositionEnd = function () {
19516
- _this.isComposing = false;
19517
- };
19518
-
19519
- _this.onTouchStart = function (_ref4) {
19520
- var touches = _ref4.touches;
19521
- var touch = touches && touches.item(0);
19522
-
19523
- if (!touch) {
19524
- return;
19525
- }
19526
-
19527
- _this.initialTouchX = touch.clientX;
19528
- _this.initialTouchY = touch.clientY;
19529
- _this.userIsDragging = false;
19530
- };
19531
-
19532
- _this.onTouchMove = function (_ref5) {
19533
- var touches = _ref5.touches;
19534
- var touch = touches && touches.item(0);
19535
-
19536
- if (!touch) {
19537
- return;
19538
- }
19539
-
19540
- var deltaX = Math.abs(touch.clientX - _this.initialTouchX);
19541
- var deltaY = Math.abs(touch.clientY - _this.initialTouchY);
19542
- var moveThreshold = 5;
19543
- _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold;
19544
- };
19545
-
19546
- _this.onTouchEnd = function (event) {
19547
- if (_this.userIsDragging) return; // close the menu if the user taps outside
19548
- // we're checking on event.target here instead of event.currentTarget, because we want to assert information
19549
- // on events on child elements, not the document (which we've attached this handler to).
19550
-
19551
- if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) {
19552
- _this.blurInput();
19553
- } // reset move vars
19554
-
19555
-
19556
- _this.initialTouchX = 0;
19557
- _this.initialTouchY = 0;
19558
- };
19559
-
19560
- _this.onControlTouchEnd = function (event) {
19561
- if (_this.userIsDragging) return;
19562
-
19563
- _this.onControlMouseDown(event);
19564
- };
19565
-
19566
- _this.onClearIndicatorTouchEnd = function (event) {
19567
- if (_this.userIsDragging) return;
19568
-
19569
- _this.onClearIndicatorMouseDown(event);
19570
- };
19571
-
19572
- _this.onDropdownIndicatorTouchEnd = function (event) {
19573
- if (_this.userIsDragging) return;
19574
-
19575
- _this.onDropdownIndicatorMouseDown(event);
19576
- };
19577
-
19578
- _this.handleInputChange = function (event) {
19579
- var inputValue = event.currentTarget.value;
19580
- _this.inputIsHiddenAfterUpdate = false;
19581
-
19582
- _this.onInputChange(inputValue, {
19583
- action: 'input-change'
19584
- });
19585
-
19586
- if (!_this.props.menuIsOpen) {
19587
- _this.onMenuOpen();
19588
- }
19589
- };
19590
-
19591
- _this.onInputFocus = function (event) {
19592
- var _this$props5 = _this.props,
19593
- isSearchable = _this$props5.isSearchable,
19594
- isMulti = _this$props5.isMulti;
19595
-
19596
- if (_this.props.onFocus) {
19597
- _this.props.onFocus(event);
19598
- }
19599
-
19600
- _this.inputIsHiddenAfterUpdate = false;
19601
-
19602
- _this.announceAriaLiveContext({
19603
- event: 'input',
19604
- context: {
19605
- isSearchable: isSearchable,
19606
- isMulti: isMulti
19607
- }
19608
- });
19609
-
19610
- _this.setState({
19611
- isFocused: true
19612
- });
19613
-
19614
- if (_this.openAfterFocus || _this.props.openMenuOnFocus) {
19615
- _this.openMenu('first');
19616
- }
19617
-
19618
- _this.openAfterFocus = false;
19619
- };
19620
-
19621
- _this.onInputBlur = function (event) {
19622
- if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) {
19623
- _this.inputRef.focus();
19624
-
19625
- return;
19626
- }
19627
-
19628
- if (_this.props.onBlur) {
19629
- _this.props.onBlur(event);
19630
- }
19631
-
19632
- _this.onInputChange('', {
19633
- action: 'input-blur'
19634
- });
19635
-
19636
- _this.onMenuClose();
19637
-
19638
- _this.setState({
19639
- focusedValue: null,
19640
- isFocused: false
19641
- });
19642
- };
19643
-
19644
- _this.onOptionHover = function (focusedOption) {
19645
- if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {
19646
- return;
19647
- }
19648
-
19649
- _this.setState({
19650
- focusedOption: focusedOption
19651
- });
19652
- };
19653
-
19654
- _this.shouldHideSelectedOptions = function () {
19655
- var _this$props6 = _this.props,
19656
- hideSelectedOptions = _this$props6.hideSelectedOptions,
19657
- isMulti = _this$props6.isMulti;
19658
- if (hideSelectedOptions === undefined) return isMulti;
19659
- return hideSelectedOptions;
19660
- };
19661
-
19662
- _this.onKeyDown = function (event) {
19663
- var _this$props7 = _this.props,
19664
- isMulti = _this$props7.isMulti,
19665
- backspaceRemovesValue = _this$props7.backspaceRemovesValue,
19666
- escapeClearsValue = _this$props7.escapeClearsValue,
19667
- inputValue = _this$props7.inputValue,
19668
- isClearable = _this$props7.isClearable,
19669
- isDisabled = _this$props7.isDisabled,
19670
- menuIsOpen = _this$props7.menuIsOpen,
19671
- onKeyDown = _this$props7.onKeyDown,
19672
- tabSelectsValue = _this$props7.tabSelectsValue,
19673
- openMenuOnFocus = _this$props7.openMenuOnFocus;
19674
- var _this$state2 = _this.state,
19675
- focusedOption = _this$state2.focusedOption,
19676
- focusedValue = _this$state2.focusedValue,
19677
- selectValue = _this$state2.selectValue;
19678
- if (isDisabled) return;
19679
-
19680
- if (typeof onKeyDown === 'function') {
19681
- onKeyDown(event);
19682
-
19683
- if (event.defaultPrevented) {
19684
- return;
19685
- }
19686
- } // Block option hover events when the user has just pressed a key
19687
-
19688
-
19689
- _this.blockOptionHover = true;
19690
-
19691
- switch (event.key) {
19692
- case 'ArrowLeft':
19693
- if (!isMulti || inputValue) return;
19694
-
19695
- _this.focusValue('previous');
19696
-
19697
- break;
19698
-
19699
- case 'ArrowRight':
19700
- if (!isMulti || inputValue) return;
19701
-
19702
- _this.focusValue('next');
19703
-
19704
- break;
19705
-
19706
- case 'Delete':
19707
- case 'Backspace':
19708
- if (inputValue) return;
19709
-
19710
- if (focusedValue) {
19711
- _this.removeValue(focusedValue);
19712
- } else {
19713
- if (!backspaceRemovesValue) return;
19714
-
19715
- if (isMulti) {
19716
- _this.popValue();
19717
- } else if (isClearable) {
19718
- _this.clearValue();
19719
- }
19720
- }
19721
-
19722
- break;
19723
-
19724
- case 'Tab':
19725
- if (_this.isComposing) return;
19726
-
19727
- if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused
19728
- // option is already selected; it breaks the flow of navigation
19729
- openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) {
19730
- return;
19731
- }
19732
-
19733
- _this.selectOption(focusedOption);
19734
-
19735
- break;
19736
-
19737
- case 'Enter':
19738
- if (event.keyCode === 229) {
19739
- // ignore the keydown event from an Input Method Editor(IME)
19740
- // ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode
19741
- break;
19742
- }
19743
-
19744
- if (menuIsOpen) {
19745
- if (!focusedOption) return;
19746
- if (_this.isComposing) return;
19747
-
19748
- _this.selectOption(focusedOption);
19749
-
19750
- break;
19751
- }
19752
-
19753
- return;
19754
-
19755
- case 'Escape':
19756
- if (menuIsOpen) {
19757
- _this.inputIsHiddenAfterUpdate = false;
19758
-
19759
- _this.onInputChange('', {
19760
- action: 'menu-close'
19761
- });
19762
-
19763
- _this.onMenuClose();
19764
- } else if (isClearable && escapeClearsValue) {
19765
- _this.clearValue();
19766
- }
19767
-
19768
- break;
19769
-
19770
- case ' ':
19771
- // space
19772
- if (inputValue) {
19773
- return;
19774
- }
19775
-
19776
- if (!menuIsOpen) {
19777
- _this.openMenu('first');
19778
-
19779
- break;
19780
- }
19781
-
19782
- if (!focusedOption) return;
19783
-
19784
- _this.selectOption(focusedOption);
19785
-
19786
- break;
19787
-
19788
- case 'ArrowUp':
19789
- if (menuIsOpen) {
19790
- _this.focusOption('up');
19791
- } else {
19792
- _this.openMenu('last');
19793
- }
19794
-
19795
- break;
19796
-
19797
- case 'ArrowDown':
19798
- if (menuIsOpen) {
19799
- _this.focusOption('down');
19800
- } else {
19801
- _this.openMenu('first');
19802
- }
19803
-
19804
- break;
19805
-
19806
- case 'PageUp':
19807
- if (!menuIsOpen) return;
19808
-
19809
- _this.focusOption('pageup');
19810
-
19811
- break;
19812
-
19813
- case 'PageDown':
19814
- if (!menuIsOpen) return;
19815
-
19816
- _this.focusOption('pagedown');
19817
-
19818
- break;
19819
-
19820
- case 'Home':
19821
- if (!menuIsOpen) return;
19822
-
19823
- _this.focusOption('first');
19824
-
19825
- break;
19826
-
19827
- case 'End':
19828
- if (!menuIsOpen) return;
19829
-
19830
- _this.focusOption('last');
19831
-
19832
- break;
19833
-
19834
- default:
19835
- return;
19836
- }
19837
-
19838
- event.preventDefault();
19839
- };
19840
-
19841
- _this.buildMenuOptions = function (props, selectValue) {
19842
- var _props$inputValue = props.inputValue,
19843
- inputValue = _props$inputValue === void 0 ? '' : _props$inputValue,
19844
- options = props.options;
19845
-
19846
- var toOption = function toOption(option, id) {
19847
- var isDisabled = _this.isOptionDisabled(option, selectValue);
19848
-
19849
- var isSelected = _this.isOptionSelected(option, selectValue);
19850
-
19851
- var label = _this.getOptionLabel(option);
19852
-
19853
- var value = _this.getOptionValue(option);
19854
-
19855
- if (_this.shouldHideSelectedOptions() && isSelected || !_this.filterOption({
19856
- label: label,
19857
- value: value,
19858
- data: option
19859
- }, inputValue)) {
19860
- return;
19861
- }
19862
-
19863
- var onHover = isDisabled ? undefined : function () {
19864
- return _this.onOptionHover(option);
19865
- };
19866
- var onSelect = isDisabled ? undefined : function () {
19867
- return _this.selectOption(option);
19868
- };
19869
- var optionId = "".concat(_this.getElementId('option'), "-").concat(id);
19870
- return {
19871
- innerProps: {
19872
- id: optionId,
19873
- onClick: onSelect,
19874
- onMouseMove: onHover,
19875
- onMouseOver: onHover,
19876
- tabIndex: -1
19877
- },
19878
- data: option,
19879
- isDisabled: isDisabled,
19880
- isSelected: isSelected,
19881
- key: optionId,
19882
- label: label,
19883
- type: 'option',
19884
- value: value
19885
- };
19886
- };
19887
-
19888
- return options.reduce(function (acc, item, itemIndex) {
19889
- if (item.options) {
19890
- // TODO needs a tidier implementation
19891
- if (!_this.hasGroups) _this.hasGroups = true;
19892
- var items = item.options;
19893
- var children = items.map(function (child, i) {
19894
- var option = toOption(child, "".concat(itemIndex, "-").concat(i));
19895
- if (option) acc.focusable.push(child);
19896
- return option;
19897
- }).filter(Boolean);
19898
-
19899
- if (children.length) {
19900
- var groupId = "".concat(_this.getElementId('group'), "-").concat(itemIndex);
19901
- acc.render.push({
19902
- type: 'group',
19903
- key: groupId,
19904
- data: item,
19905
- options: children
19906
- });
19907
- }
19908
- } else {
19909
- var option = toOption(item, "".concat(itemIndex));
19910
-
19911
- if (option) {
19912
- acc.render.push(option);
19913
- acc.focusable.push(item);
19914
- }
19915
- }
19916
-
19917
- return acc;
19918
- }, {
19919
- render: [],
19920
- focusable: []
19921
- });
19922
- };
19923
-
19924
- var _value = _props.value;
19925
- _this.cacheComponents = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.cacheComponents, __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */]).bind(Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this));
19926
-
19927
- _this.cacheComponents(_props.components);
19928
-
19929
- _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
19930
-
19931
- var _selectValue = Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["b" /* B */])(_value);
19932
-
19933
- _this.buildMenuOptions = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.buildMenuOptions, function (newArgs, lastArgs) {
19934
- var _ref6 = newArgs,
19935
- _ref7 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_ref6, 2),
19936
- newProps = _ref7[0],
19937
- newSelectValue = _ref7[1];
19938
-
19939
- var _ref8 = lastArgs,
19940
- _ref9 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_ref8, 2),
19941
- lastProps = _ref9[0],
19942
- lastSelectValue = _ref9[1];
19943
-
19944
- return Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */])(newSelectValue, lastSelectValue) && Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */])(newProps.inputValue, lastProps.inputValue) && Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */])(newProps.options, lastProps.options);
19945
- }).bind(Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this));
19946
-
19947
- var _menuOptions = _props.menuIsOpen ? _this.buildMenuOptions(_props, _selectValue) : {
19948
- render: [],
19949
- focusable: []
19950
- };
19951
-
19952
- _this.state.menuOptions = _menuOptions;
19953
- _this.state.selectValue = _selectValue;
19954
- return _this;
19955
- }
19956
-
19957
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(Select, [{
19958
- key: "componentDidMount",
19959
- value: function componentDidMount() {
19960
- this.startListeningComposition();
19961
- this.startListeningToTouch();
19962
-
19963
- if (this.props.closeMenuOnScroll && document && document.addEventListener) {
19964
- // Listen to all scroll events, and filter them out inside of 'onScroll'
19965
- document.addEventListener('scroll', this.onScroll, true);
19966
- }
19967
-
19968
- if (this.props.autoFocus) {
19969
- this.focusInput();
19970
- }
19971
- }
19972
- }, {
19973
- key: "UNSAFE_componentWillReceiveProps",
19974
- value: function UNSAFE_componentWillReceiveProps(nextProps) {
19975
- var _this$props8 = this.props,
19976
- options = _this$props8.options,
19977
- value = _this$props8.value,
19978
- menuIsOpen = _this$props8.menuIsOpen,
19979
- inputValue = _this$props8.inputValue; // re-cache custom components
19980
-
19981
- this.cacheComponents(nextProps.components); // rebuild the menu options
19982
-
19983
- if (nextProps.value !== value || nextProps.options !== options || nextProps.menuIsOpen !== menuIsOpen || nextProps.inputValue !== inputValue) {
19984
- var selectValue = Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["b" /* B */])(nextProps.value);
19985
- var menuOptions = nextProps.menuIsOpen ? this.buildMenuOptions(nextProps, selectValue) : {
19986
- render: [],
19987
- focusable: []
19988
- };
19989
- var focusedValue = this.getNextFocusedValue(selectValue);
19990
- var focusedOption = this.getNextFocusedOption(menuOptions.focusable);
19991
- this.setState({
19992
- menuOptions: menuOptions,
19993
- selectValue: selectValue,
19994
- focusedOption: focusedOption,
19995
- focusedValue: focusedValue
19996
- });
19997
- } // some updates should toggle the state of the input visibility
19998
-
19999
-
20000
- if (this.inputIsHiddenAfterUpdate != null) {
20001
- this.setState({
20002
- inputIsHidden: this.inputIsHiddenAfterUpdate
20003
- });
20004
- delete this.inputIsHiddenAfterUpdate;
20005
- }
20006
- }
20007
- }, {
20008
- key: "componentDidUpdate",
20009
- value: function componentDidUpdate(prevProps) {
20010
- var _this$props9 = this.props,
20011
- isDisabled = _this$props9.isDisabled,
20012
- menuIsOpen = _this$props9.menuIsOpen;
20013
- var isFocused = this.state.isFocused;
20014
-
20015
- if ( // ensure focus is restored correctly when the control becomes enabled
20016
- isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens
20017
- isFocused && menuIsOpen && !prevProps.menuIsOpen) {
20018
- this.focusInput();
20019
- } // scroll the focused option into view if necessary
20020
-
20021
-
20022
- if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) {
20023
- Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["c" /* C */])(this.menuListRef, this.focusedOptionRef);
20024
- this.scrollToFocusedOptionOnUpdate = false;
20025
- }
20026
- }
20027
- }, {
20028
- key: "componentWillUnmount",
20029
- value: function componentWillUnmount() {
20030
- this.stopListeningComposition();
20031
- this.stopListeningToTouch();
20032
- document.removeEventListener('scroll', this.onScroll, true);
20033
- }
20034
- }, {
20035
- key: "onMenuOpen",
20036
- // ==============================
20037
- // Consumer Handlers
20038
- // ==============================
20039
- value: function onMenuOpen() {
20040
- this.props.onMenuOpen();
20041
- }
20042
- }, {
20043
- key: "onMenuClose",
20044
- value: function onMenuClose() {
20045
- var _this$props10 = this.props,
20046
- isSearchable = _this$props10.isSearchable,
20047
- isMulti = _this$props10.isMulti;
20048
- this.announceAriaLiveContext({
20049
- event: 'input',
20050
- context: {
20051
- isSearchable: isSearchable,
20052
- isMulti: isMulti
20053
- }
20054
- });
20055
- this.onInputChange('', {
20056
- action: 'menu-close'
20057
- });
20058
- this.props.onMenuClose();
20059
- }
20060
- }, {
20061
- key: "onInputChange",
20062
- value: function onInputChange(newValue, actionMeta) {
20063
- this.props.onInputChange(newValue, actionMeta);
20064
- } // ==============================
20065
- // Methods
20066
- // ==============================
20067
-
20068
- }, {
20069
- key: "focusInput",
20070
- value: function focusInput() {
20071
- if (!this.inputRef) return;
20072
- this.inputRef.focus();
20073
- }
20074
- }, {
20075
- key: "blurInput",
20076
- value: function blurInput() {
20077
- if (!this.inputRef) return;
20078
- this.inputRef.blur();
20079
- } // aliased for consumers
20080
-
20081
- }, {
20082
- key: "openMenu",
20083
- value: function openMenu(focusOption) {
20084
- var _this2 = this;
20085
-
20086
- var _this$state3 = this.state,
20087
- selectValue = _this$state3.selectValue,
20088
- isFocused = _this$state3.isFocused;
20089
- var menuOptions = this.buildMenuOptions(this.props, selectValue);
20090
- var isMulti = this.props.isMulti;
20091
- var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1;
20092
-
20093
- if (!isMulti) {
20094
- var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]);
20095
-
20096
- if (selectedIndex > -1) {
20097
- openAtIndex = selectedIndex;
20098
- }
20099
- } // only scroll if the menu isn't already open
20100
-
20101
-
20102
- this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef);
20103
- this.inputIsHiddenAfterUpdate = false;
20104
- this.setState({
20105
- menuOptions: menuOptions,
20106
- focusedValue: null,
20107
- focusedOption: menuOptions.focusable[openAtIndex]
20108
- }, function () {
20109
- _this2.onMenuOpen();
20110
-
20111
- _this2.announceAriaLiveContext({
20112
- event: 'menu'
20113
- });
20114
- });
20115
- }
20116
- }, {
20117
- key: "focusValue",
20118
- value: function focusValue(direction) {
20119
- var _this$props11 = this.props,
20120
- isMulti = _this$props11.isMulti,
20121
- isSearchable = _this$props11.isSearchable;
20122
- var _this$state4 = this.state,
20123
- selectValue = _this$state4.selectValue,
20124
- focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing
20125
-
20126
- if (!isMulti) return;
20127
- this.setState({
20128
- focusedOption: null
20129
- });
20130
- var focusedIndex = selectValue.indexOf(focusedValue);
20131
-
20132
- if (!focusedValue) {
20133
- focusedIndex = -1;
20134
- this.announceAriaLiveContext({
20135
- event: 'value'
20136
- });
20137
- }
20138
-
20139
- var lastIndex = selectValue.length - 1;
20140
- var nextFocus = -1;
20141
- if (!selectValue.length) return;
20142
-
20143
- switch (direction) {
20144
- case 'previous':
20145
- if (focusedIndex === 0) {
20146
- // don't cycle from the start to the end
20147
- nextFocus = 0;
20148
- } else if (focusedIndex === -1) {
20149
- // if nothing is focused, focus the last value first
20150
- nextFocus = lastIndex;
20151
- } else {
20152
- nextFocus = focusedIndex - 1;
20153
- }
20154
-
20155
- break;
20156
-
20157
- case 'next':
20158
- if (focusedIndex > -1 && focusedIndex < lastIndex) {
20159
- nextFocus = focusedIndex + 1;
20160
- }
20161
-
20162
- break;
20163
- }
20164
-
20165
- if (nextFocus === -1) {
20166
- this.announceAriaLiveContext({
20167
- event: 'input',
20168
- context: {
20169
- isSearchable: isSearchable,
20170
- isMulti: isMulti
20171
- }
20172
- });
20173
- }
20174
-
20175
- this.setState({
20176
- inputIsHidden: nextFocus !== -1,
20177
- focusedValue: selectValue[nextFocus]
20178
- });
20179
- }
20180
- }, {
20181
- key: "focusOption",
20182
- value: function focusOption() {
20183
- var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'first';
20184
- var pageSize = this.props.pageSize;
20185
- var _this$state5 = this.state,
20186
- focusedOption = _this$state5.focusedOption,
20187
- menuOptions = _this$state5.menuOptions;
20188
- var options = menuOptions.focusable;
20189
- if (!options.length) return;
20190
- var nextFocus = 0; // handles 'first'
20191
-
20192
- var focusedIndex = options.indexOf(focusedOption);
20193
-
20194
- if (!focusedOption) {
20195
- focusedIndex = -1;
20196
- this.announceAriaLiveContext({
20197
- event: 'menu'
20198
- });
20199
- }
20200
-
20201
- if (direction === 'up') {
20202
- nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1;
20203
- } else if (direction === 'down') {
20204
- nextFocus = (focusedIndex + 1) % options.length;
20205
- } else if (direction === 'pageup') {
20206
- nextFocus = focusedIndex - pageSize;
20207
- if (nextFocus < 0) nextFocus = 0;
20208
- } else if (direction === 'pagedown') {
20209
- nextFocus = focusedIndex + pageSize;
20210
- if (nextFocus > options.length - 1) nextFocus = options.length - 1;
20211
- } else if (direction === 'last') {
20212
- nextFocus = options.length - 1;
20213
- }
20214
-
20215
- this.scrollToFocusedOptionOnUpdate = true;
20216
- this.setState({
20217
- focusedOption: options[nextFocus],
20218
- focusedValue: null
20219
- });
20220
- this.announceAriaLiveContext({
20221
- event: 'menu',
20222
- context: {
20223
- isDisabled: isOptionDisabled(options[nextFocus])
20224
- }
20225
- });
20226
- }
20227
- }, {
20228
- key: "getTheme",
20229
- // ==============================
20230
- // Getters
20231
- // ==============================
20232
- value: function getTheme() {
20233
- // Use the default theme if there are no customizations.
20234
- if (!this.props.theme) {
20235
- return defaultTheme;
20236
- } // If the theme prop is a function, assume the function
20237
- // knows how to merge the passed-in default theme with
20238
- // its own modifications.
20239
-
20240
-
20241
- if (typeof this.props.theme === 'function') {
20242
- return this.props.theme(defaultTheme);
20243
- } // Otherwise, if a plain theme object was passed in,
20244
- // overlay it with the default theme.
20245
-
20246
-
20247
- return _objectSpread$2(_objectSpread$2({}, defaultTheme), this.props.theme);
20248
- }
20249
- }, {
20250
- key: "getCommonProps",
20251
- value: function getCommonProps() {
20252
- var clearValue = this.clearValue,
20253
- getStyles = this.getStyles,
20254
- setValue = this.setValue,
20255
- selectOption = this.selectOption,
20256
- props = this.props;
20257
- var classNamePrefix = props.classNamePrefix,
20258
- isMulti = props.isMulti,
20259
- isRtl = props.isRtl,
20260
- options = props.options;
20261
- var selectValue = this.state.selectValue;
20262
- var hasValue = this.hasValue();
20263
-
20264
- var getValue = function getValue() {
20265
- return selectValue;
20266
- };
20267
-
20268
- var cx = __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["d" /* D */].bind(null, classNamePrefix);
20269
- return {
20270
- cx: cx,
20271
- clearValue: clearValue,
20272
- getStyles: getStyles,
20273
- getValue: getValue,
20274
- hasValue: hasValue,
20275
- isMulti: isMulti,
20276
- isRtl: isRtl,
20277
- options: options,
20278
- selectOption: selectOption,
20279
- setValue: setValue,
20280
- selectProps: props,
20281
- theme: this.getTheme()
20282
- };
20283
- }
20284
- }, {
20285
- key: "getNextFocusedValue",
20286
- value: function getNextFocusedValue(nextSelectValue) {
20287
- if (this.clearFocusValueOnUpdate) {
20288
- this.clearFocusValueOnUpdate = false;
20289
- return null;
20290
- }
20291
-
20292
- var _this$state6 = this.state,
20293
- focusedValue = _this$state6.focusedValue,
20294
- lastSelectValue = _this$state6.selectValue;
20295
- var lastFocusedIndex = lastSelectValue.indexOf(focusedValue);
20296
-
20297
- if (lastFocusedIndex > -1) {
20298
- var nextFocusedIndex = nextSelectValue.indexOf(focusedValue);
20299
-
20300
- if (nextFocusedIndex > -1) {
20301
- // the focused value is still in the selectValue, return it
20302
- return focusedValue;
20303
- } else if (lastFocusedIndex < nextSelectValue.length) {
20304
- // the focusedValue is not present in the next selectValue array by
20305
- // reference, so return the new value at the same index
20306
- return nextSelectValue[lastFocusedIndex];
20307
- }
20308
- }
20309
-
20310
- return null;
20311
- }
20312
- }, {
20313
- key: "getNextFocusedOption",
20314
- value: function getNextFocusedOption(options) {
20315
- var lastFocusedOption = this.state.focusedOption;
20316
- return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
20317
- }
20318
- }, {
20319
- key: "hasValue",
20320
- value: function hasValue() {
20321
- var selectValue = this.state.selectValue;
20322
- return selectValue.length > 0;
20323
- }
20324
- }, {
20325
- key: "hasOptions",
20326
- value: function hasOptions() {
20327
- return !!this.state.menuOptions.render.length;
20328
- }
20329
- }, {
20330
- key: "countOptions",
20331
- value: function countOptions() {
20332
- return this.state.menuOptions.focusable.length;
20333
- }
20334
- }, {
20335
- key: "isClearable",
20336
- value: function isClearable() {
20337
- var _this$props12 = this.props,
20338
- isClearable = _this$props12.isClearable,
20339
- isMulti = _this$props12.isMulti; // single select, by default, IS NOT clearable
20340
- // multi select, by default, IS clearable
20341
-
20342
- if (isClearable === undefined) return isMulti;
20343
- return isClearable;
20344
- }
20345
- }, {
20346
- key: "isOptionDisabled",
20347
- value: function isOptionDisabled(option, selectValue) {
20348
- return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false;
20349
- }
20350
- }, {
20351
- key: "isOptionSelected",
20352
- value: function isOptionSelected(option, selectValue) {
20353
- var _this3 = this;
20354
-
20355
- if (selectValue.indexOf(option) > -1) return true;
20356
-
20357
- if (typeof this.props.isOptionSelected === 'function') {
20358
- return this.props.isOptionSelected(option, selectValue);
20359
- }
20360
-
20361
- var candidate = this.getOptionValue(option);
20362
- return selectValue.some(function (i) {
20363
- return _this3.getOptionValue(i) === candidate;
20364
- });
20365
- }
20366
- }, {
20367
- key: "filterOption",
20368
- value: function filterOption(option, inputValue) {
20369
- return this.props.filterOption ? this.props.filterOption(option, inputValue) : true;
20370
- }
20371
- }, {
20372
- key: "formatOptionLabel",
20373
- value: function formatOptionLabel(data, context) {
20374
- if (typeof this.props.formatOptionLabel === 'function') {
20375
- var inputValue = this.props.inputValue;
20376
- var selectValue = this.state.selectValue;
20377
- return this.props.formatOptionLabel(data, {
20378
- context: context,
20379
- inputValue: inputValue,
20380
- selectValue: selectValue
20381
- });
20382
- } else {
20383
- return this.getOptionLabel(data);
20384
- }
20385
- }
20386
- }, {
20387
- key: "formatGroupLabel",
20388
- value: function formatGroupLabel(data) {
20389
- return this.props.formatGroupLabel(data);
20390
- } // ==============================
20391
- // Mouse Handlers
20392
- // ==============================
20393
-
20394
- }, {
20395
- key: "startListeningComposition",
20396
- // ==============================
20397
- // Composition Handlers
20398
- // ==============================
20399
- value: function startListeningComposition() {
20400
- if (document && document.addEventListener) {
20401
- document.addEventListener('compositionstart', this.onCompositionStart, false);
20402
- document.addEventListener('compositionend', this.onCompositionEnd, false);
20403
- }
20404
- }
20405
- }, {
20406
- key: "stopListeningComposition",
20407
- value: function stopListeningComposition() {
20408
- if (document && document.removeEventListener) {
20409
- document.removeEventListener('compositionstart', this.onCompositionStart);
20410
- document.removeEventListener('compositionend', this.onCompositionEnd);
20411
- }
20412
- }
20413
- }, {
20414
- key: "startListeningToTouch",
20415
- // ==============================
20416
- // Touch Handlers
20417
- // ==============================
20418
- value: function startListeningToTouch() {
20419
- if (document && document.addEventListener) {
20420
- document.addEventListener('touchstart', this.onTouchStart, false);
20421
- document.addEventListener('touchmove', this.onTouchMove, false);
20422
- document.addEventListener('touchend', this.onTouchEnd, false);
20423
- }
20424
- }
20425
- }, {
20426
- key: "stopListeningToTouch",
20427
- value: function stopListeningToTouch() {
20428
- if (document && document.removeEventListener) {
20429
- document.removeEventListener('touchstart', this.onTouchStart);
20430
- document.removeEventListener('touchmove', this.onTouchMove);
20431
- document.removeEventListener('touchend', this.onTouchEnd);
20432
- }
20433
- }
20434
- }, {
20435
- key: "constructAriaLiveMessage",
20436
- // ==============================
20437
- // Renderers
20438
- // ==============================
20439
- value: function constructAriaLiveMessage() {
20440
- var _this$state7 = this.state,
20441
- ariaLiveContext = _this$state7.ariaLiveContext,
20442
- selectValue = _this$state7.selectValue,
20443
- focusedValue = _this$state7.focusedValue,
20444
- focusedOption = _this$state7.focusedOption;
20445
- var _this$props13 = this.props,
20446
- options = _this$props13.options,
20447
- menuIsOpen = _this$props13.menuIsOpen,
20448
- inputValue = _this$props13.inputValue,
20449
- screenReaderStatus = _this$props13.screenReaderStatus; // An aria live message representing the currently focused value in the select.
20450
-
20451
- var focusedValueMsg = focusedValue ? valueFocusAriaMessage({
20452
- focusedValue: focusedValue,
20453
- getOptionLabel: this.getOptionLabel,
20454
- selectValue: selectValue
20455
- }) : ''; // An aria live message representing the currently focused option in the select.
20456
-
20457
- var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({
20458
- focusedOption: focusedOption,
20459
- getOptionLabel: this.getOptionLabel,
20460
- options: options
20461
- }) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue.
20462
-
20463
- var resultsMsg = resultsAriaMessage({
20464
- inputValue: inputValue,
20465
- screenReaderMessage: screenReaderStatus({
20466
- count: this.countOptions()
20467
- })
20468
- });
20469
- return "".concat(focusedValueMsg, " ").concat(focusedOptionMsg, " ").concat(resultsMsg, " ").concat(ariaLiveContext);
20470
- }
20471
- }, {
20472
- key: "renderInput",
20473
- value: function renderInput() {
20474
- var _this$props14 = this.props,
20475
- isDisabled = _this$props14.isDisabled,
20476
- isSearchable = _this$props14.isSearchable,
20477
- inputId = _this$props14.inputId,
20478
- inputValue = _this$props14.inputValue,
20479
- tabIndex = _this$props14.tabIndex,
20480
- form = _this$props14.form;
20481
- var Input = this.components.Input;
20482
- var inputIsHidden = this.state.inputIsHidden;
20483
- var id = inputId || this.getElementId('input'); // aria attributes makes the JSX "noisy", separated for clarity
20484
-
20485
- var ariaAttributes = {
20486
- 'aria-autocomplete': 'list',
20487
- 'aria-label': this.props['aria-label'],
20488
- 'aria-labelledby': this.props['aria-labelledby']
20489
- };
20490
-
20491
- if (!isSearchable) {
20492
- // use a dummy input to maintain focus/blur functionality
20493
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DummyInput, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
20494
- id: id,
20495
- innerRef: this.getInputRef,
20496
- onBlur: this.onInputBlur,
20497
- onChange: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["e" /* E */],
20498
- onFocus: this.onInputFocus,
20499
- readOnly: true,
20500
- disabled: isDisabled,
20501
- tabIndex: tabIndex,
20502
- form: form,
20503
- value: ""
20504
- }, ariaAttributes));
20505
- }
20506
-
20507
- var _this$commonProps = this.commonProps,
20508
- cx = _this$commonProps.cx,
20509
- theme = _this$commonProps.theme,
20510
- selectProps = _this$commonProps.selectProps;
20511
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Input, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
20512
- autoCapitalize: "none",
20513
- autoComplete: "off",
20514
- autoCorrect: "off",
20515
- cx: cx,
20516
- getStyles: this.getStyles,
20517
- id: id,
20518
- innerRef: this.getInputRef,
20519
- isDisabled: isDisabled,
20520
- isHidden: inputIsHidden,
20521
- onBlur: this.onInputBlur,
20522
- onChange: this.handleInputChange,
20523
- onFocus: this.onInputFocus,
20524
- selectProps: selectProps,
20525
- spellCheck: "false",
20526
- tabIndex: tabIndex,
20527
- form: form,
20528
- theme: theme,
20529
- type: "text",
20530
- value: inputValue
20531
- }, ariaAttributes));
20532
- }
20533
- }, {
20534
- key: "renderPlaceholderOrValue",
20535
- value: function renderPlaceholderOrValue() {
20536
- var _this4 = this;
20537
-
20538
- var _this$components = this.components,
20539
- MultiValue = _this$components.MultiValue,
20540
- MultiValueContainer = _this$components.MultiValueContainer,
20541
- MultiValueLabel = _this$components.MultiValueLabel,
20542
- MultiValueRemove = _this$components.MultiValueRemove,
20543
- SingleValue = _this$components.SingleValue,
20544
- Placeholder = _this$components.Placeholder;
20545
- var commonProps = this.commonProps;
20546
- var _this$props15 = this.props,
20547
- controlShouldRenderValue = _this$props15.controlShouldRenderValue,
20548
- isDisabled = _this$props15.isDisabled,
20549
- isMulti = _this$props15.isMulti,
20550
- inputValue = _this$props15.inputValue,
20551
- placeholder = _this$props15.placeholder;
20552
- var _this$state8 = this.state,
20553
- selectValue = _this$state8.selectValue,
20554
- focusedValue = _this$state8.focusedValue,
20555
- isFocused = _this$state8.isFocused;
20556
-
20557
- if (!this.hasValue() || !controlShouldRenderValue) {
20558
- return inputValue ? null : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Placeholder, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20559
- key: "placeholder",
20560
- isDisabled: isDisabled,
20561
- isFocused: isFocused
20562
- }), placeholder);
20563
- }
20564
-
20565
- if (isMulti) {
20566
- var selectValues = selectValue.map(function (opt, index) {
20567
- var isOptionFocused = opt === focusedValue;
20568
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MultiValue, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20569
- components: {
20570
- Container: MultiValueContainer,
20571
- Label: MultiValueLabel,
20572
- Remove: MultiValueRemove
20573
- },
20574
- isFocused: isOptionFocused,
20575
- isDisabled: isDisabled,
20576
- key: _this4.getOptionValue(opt),
20577
- index: index,
20578
- removeProps: {
20579
- onClick: function onClick() {
20580
- return _this4.removeValue(opt);
20581
- },
20582
- onTouchEnd: function onTouchEnd() {
20583
- return _this4.removeValue(opt);
20584
- },
20585
- onMouseDown: function onMouseDown(e) {
20586
- e.preventDefault();
20587
- e.stopPropagation();
20588
- }
20589
- },
20590
- data: opt
20591
- }), _this4.formatOptionLabel(opt, 'value'));
20592
- });
20593
- return selectValues;
20594
- }
20595
-
20596
- if (inputValue) {
20597
- return null;
20598
- }
20599
-
20600
- var singleValue = selectValue[0];
20601
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SingleValue, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20602
- data: singleValue,
20603
- isDisabled: isDisabled
20604
- }), this.formatOptionLabel(singleValue, 'value'));
20605
- }
20606
- }, {
20607
- key: "renderClearIndicator",
20608
- value: function renderClearIndicator() {
20609
- var ClearIndicator = this.components.ClearIndicator;
20610
- var commonProps = this.commonProps;
20611
- var _this$props16 = this.props,
20612
- isDisabled = _this$props16.isDisabled,
20613
- isLoading = _this$props16.isLoading;
20614
- var isFocused = this.state.isFocused;
20615
-
20616
- if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) {
20617
- return null;
20618
- }
20619
-
20620
- var innerProps = {
20621
- onMouseDown: this.onClearIndicatorMouseDown,
20622
- onTouchEnd: this.onClearIndicatorTouchEnd,
20623
- 'aria-hidden': 'true'
20624
- };
20625
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ClearIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20626
- innerProps: innerProps,
20627
- isFocused: isFocused
20628
- }));
20629
- }
20630
- }, {
20631
- key: "renderLoadingIndicator",
20632
- value: function renderLoadingIndicator() {
20633
- var LoadingIndicator = this.components.LoadingIndicator;
20634
- var commonProps = this.commonProps;
20635
- var _this$props17 = this.props,
20636
- isDisabled = _this$props17.isDisabled,
20637
- isLoading = _this$props17.isLoading;
20638
- var isFocused = this.state.isFocused;
20639
- if (!LoadingIndicator || !isLoading) return null;
20640
- var innerProps = {
20641
- 'aria-hidden': 'true'
20642
- };
20643
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20644
- innerProps: innerProps,
20645
- isDisabled: isDisabled,
20646
- isFocused: isFocused
20647
- }));
20648
- }
20649
- }, {
20650
- key: "renderIndicatorSeparator",
20651
- value: function renderIndicatorSeparator() {
20652
- var _this$components2 = this.components,
20653
- DropdownIndicator = _this$components2.DropdownIndicator,
20654
- IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator
20655
-
20656
- if (!DropdownIndicator || !IndicatorSeparator) return null;
20657
- var commonProps = this.commonProps;
20658
- var isDisabled = this.props.isDisabled;
20659
- var isFocused = this.state.isFocused;
20660
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorSeparator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20661
- isDisabled: isDisabled,
20662
- isFocused: isFocused
20663
- }));
20664
- }
20665
- }, {
20666
- key: "renderDropdownIndicator",
20667
- value: function renderDropdownIndicator() {
20668
- var DropdownIndicator = this.components.DropdownIndicator;
20669
- if (!DropdownIndicator) return null;
20670
- var commonProps = this.commonProps;
20671
- var isDisabled = this.props.isDisabled;
20672
- var isFocused = this.state.isFocused;
20673
- var innerProps = {
20674
- onMouseDown: this.onDropdownIndicatorMouseDown,
20675
- onTouchEnd: this.onDropdownIndicatorTouchEnd,
20676
- 'aria-hidden': 'true'
20677
- };
20678
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DropdownIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20679
- innerProps: innerProps,
20680
- isDisabled: isDisabled,
20681
- isFocused: isFocused
20682
- }));
20683
- }
20684
- }, {
20685
- key: "renderMenu",
20686
- value: function renderMenu() {
20687
- var _this5 = this;
20688
-
20689
- var _this$components3 = this.components,
20690
- Group = _this$components3.Group,
20691
- GroupHeading = _this$components3.GroupHeading,
20692
- Menu = _this$components3.Menu,
20693
- MenuList = _this$components3.MenuList,
20694
- MenuPortal = _this$components3.MenuPortal,
20695
- LoadingMessage = _this$components3.LoadingMessage,
20696
- NoOptionsMessage = _this$components3.NoOptionsMessage,
20697
- Option = _this$components3.Option;
20698
- var commonProps = this.commonProps;
20699
- var _this$state9 = this.state,
20700
- focusedOption = _this$state9.focusedOption,
20701
- menuOptions = _this$state9.menuOptions;
20702
- var _this$props18 = this.props,
20703
- captureMenuScroll = _this$props18.captureMenuScroll,
20704
- inputValue = _this$props18.inputValue,
20705
- isLoading = _this$props18.isLoading,
20706
- loadingMessage = _this$props18.loadingMessage,
20707
- minMenuHeight = _this$props18.minMenuHeight,
20708
- maxMenuHeight = _this$props18.maxMenuHeight,
20709
- menuIsOpen = _this$props18.menuIsOpen,
20710
- menuPlacement = _this$props18.menuPlacement,
20711
- menuPosition = _this$props18.menuPosition,
20712
- menuPortalTarget = _this$props18.menuPortalTarget,
20713
- menuShouldBlockScroll = _this$props18.menuShouldBlockScroll,
20714
- menuShouldScrollIntoView = _this$props18.menuShouldScrollIntoView,
20715
- noOptionsMessage = _this$props18.noOptionsMessage,
20716
- onMenuScrollToTop = _this$props18.onMenuScrollToTop,
20717
- onMenuScrollToBottom = _this$props18.onMenuScrollToBottom;
20718
- if (!menuIsOpen) return null; // TODO: Internal Option Type here
20719
-
20720
- var render = function render(props) {
20721
- // for performance, the menu options in state aren't changed when the
20722
- // focused option changes so we calculate additional props based on that
20723
- var isFocused = focusedOption === props.data;
20724
- props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined;
20725
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Option, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, props, {
20726
- isFocused: isFocused
20727
- }), _this5.formatOptionLabel(props.data, 'menu'));
20728
- };
20729
-
20730
- var menuUI;
20731
-
20732
- if (this.hasOptions()) {
20733
- menuUI = menuOptions.render.map(function (item) {
20734
- if (item.type === 'group') {
20735
- var type = item.type,
20736
- group = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(item, ["type"]);
20737
-
20738
- var headingId = "".concat(item.key, "-heading");
20739
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Group, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, group, {
20740
- Heading: GroupHeading,
20741
- headingProps: {
20742
- id: headingId
20743
- },
20744
- label: _this5.formatGroupLabel(item.data)
20745
- }), item.options.map(function (option) {
20746
- return render(option);
20747
- }));
20748
- } else if (item.type === 'option') {
20749
- return render(item);
20750
- }
20751
- });
20752
- } else if (isLoading) {
20753
- var message = loadingMessage({
20754
- inputValue: inputValue
20755
- });
20756
- if (message === null) return null;
20757
- menuUI = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingMessage, commonProps, message);
20758
- } else {
20759
- var _message = noOptionsMessage({
20760
- inputValue: inputValue
20761
- });
20762
-
20763
- if (_message === null) return null;
20764
- menuUI = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NoOptionsMessage, commonProps, _message);
20765
- }
20766
-
20767
- var menuPlacementProps = {
20768
- minMenuHeight: minMenuHeight,
20769
- maxMenuHeight: maxMenuHeight,
20770
- menuPlacement: menuPlacement,
20771
- menuPosition: menuPosition,
20772
- menuShouldScrollIntoView: menuShouldScrollIntoView
20773
- };
20774
- var menuElement = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["g" /* M */], Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, menuPlacementProps), function (_ref10) {
20775
- var ref = _ref10.ref,
20776
- _ref10$placerProps = _ref10.placerProps,
20777
- placement = _ref10$placerProps.placement,
20778
- maxHeight = _ref10$placerProps.maxHeight;
20779
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Menu, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, menuPlacementProps, {
20780
- innerRef: ref,
20781
- innerProps: {
20782
- onMouseDown: _this5.onMenuMouseDown,
20783
- onMouseMove: _this5.onMenuMouseMove
20784
- },
20785
- isLoading: isLoading,
20786
- placement: placement
20787
- }), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptorSwitch, {
20788
- isEnabled: captureMenuScroll,
20789
- onTopArrive: onMenuScrollToTop,
20790
- onBottomArrive: onMenuScrollToBottom
20791
- }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollBlock, {
20792
- isEnabled: menuShouldBlockScroll
20793
- }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuList, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20794
- innerRef: _this5.getMenuListRef,
20795
- isLoading: isLoading,
20796
- maxHeight: maxHeight
20797
- }), menuUI))));
20798
- }); // positioning behaviour is almost identical for portalled and fixed,
20799
- // so we use the same component. the actual portalling logic is forked
20800
- // within the component based on `menuPosition`
20801
-
20802
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuPortal, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20803
- appendTo: menuPortalTarget,
20804
- controlElement: this.controlRef,
20805
- menuPlacement: menuPlacement,
20806
- menuPosition: menuPosition
20807
- }), menuElement) : menuElement;
20808
- }
20809
- }, {
20810
- key: "renderFormField",
20811
- value: function renderFormField() {
20812
- var _this6 = this;
20813
-
20814
- var _this$props19 = this.props,
20815
- delimiter = _this$props19.delimiter,
20816
- isDisabled = _this$props19.isDisabled,
20817
- isMulti = _this$props19.isMulti,
20818
- name = _this$props19.name;
20819
- var selectValue = this.state.selectValue;
20820
- if (!name || isDisabled) return;
20821
-
20822
- if (isMulti) {
20823
- if (delimiter) {
20824
- var value = selectValue.map(function (opt) {
20825
- return _this6.getOptionValue(opt);
20826
- }).join(delimiter);
20827
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
20828
- name: name,
20829
- type: "hidden",
20830
- value: value
20831
- });
20832
- } else {
20833
- var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {
20834
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
20835
- key: "i-".concat(i),
20836
- name: name,
20837
- type: "hidden",
20838
- value: _this6.getOptionValue(opt)
20839
- });
20840
- }) : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
20841
- name: name,
20842
- type: "hidden"
20843
- });
20844
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("div", null, input);
20845
- }
20846
- } else {
20847
- var _value2 = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';
20848
-
20849
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
20850
- name: name,
20851
- type: "hidden",
20852
- value: _value2
20853
- });
20854
- }
20855
- }
20856
- }, {
20857
- key: "renderLiveRegion",
20858
- value: function renderLiveRegion() {
20859
- if (!this.state.isFocused) return null;
20860
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(A11yText, {
20861
- "aria-live": "polite"
20862
- }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("span", {
20863
- id: "aria-selection-event"
20864
- }, "\xA0", this.state.ariaLiveSelection), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("span", {
20865
- id: "aria-context"
20866
- }, "\xA0", this.constructAriaLiveMessage()));
20867
- }
20868
- }, {
20869
- key: "render",
20870
- value: function render() {
20871
- var _this$components4 = this.components,
20872
- Control = _this$components4.Control,
20873
- IndicatorsContainer = _this$components4.IndicatorsContainer,
20874
- SelectContainer = _this$components4.SelectContainer,
20875
- ValueContainer = _this$components4.ValueContainer;
20876
- var _this$props20 = this.props,
20877
- className = _this$props20.className,
20878
- id = _this$props20.id,
20879
- isDisabled = _this$props20.isDisabled,
20880
- menuIsOpen = _this$props20.menuIsOpen;
20881
- var isFocused = this.state.isFocused;
20882
- var commonProps = this.commonProps = this.getCommonProps();
20883
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SelectContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20884
- className: className,
20885
- innerProps: {
20886
- id: id,
20887
- onKeyDown: this.onKeyDown
20888
- },
20889
- isDisabled: isDisabled,
20890
- isFocused: isFocused
20891
- }), this.renderLiveRegion(), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Control, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20892
- innerRef: this.getControlRef,
20893
- innerProps: {
20894
- onMouseDown: this.onControlMouseDown,
20895
- onTouchEnd: this.onControlTouchEnd
20896
- },
20897
- isDisabled: isDisabled,
20898
- isFocused: isFocused,
20899
- menuIsOpen: menuIsOpen
20900
- }), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ValueContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20901
- isDisabled: isDisabled
20902
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorsContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20903
- isDisabled: isDisabled
20904
- }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
20905
- }
20906
- }]);
20907
-
20908
- return Select;
20909
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
20910
-
20911
- Select.defaultProps = defaultProps;
20912
-
20913
-
20914
-
20915
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20916
-
20917
- /***/ }),
20918
- /* 276 */
20919
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20920
-
20921
- "use strict";
20922
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
20923
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Alert__ = __webpack_require__(277);
20924
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return __WEBPACK_IMPORTED_MODULE_0__Alert__["a"]; });
20925
- /* empty harmony namespace reexport */
20926
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AlertTitle__ = __webpack_require__(284);
20927
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "AlertTitle", function() { return __WEBPACK_IMPORTED_MODULE_1__AlertTitle__["a"]; });
20928
- /* empty harmony namespace reexport */
20929
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Autocomplete__ = __webpack_require__(370);
20930
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return __WEBPACK_IMPORTED_MODULE_2__Autocomplete__["b"]; });
20931
- /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "createFilterOptions", function() { return __WEBPACK_IMPORTED_MODULE_2__Autocomplete__["a"]; });
20932
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__AvatarGroup__ = __webpack_require__(372);
20933
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "AvatarGroup", function() { return __WEBPACK_IMPORTED_MODULE_3__AvatarGroup__["a"]; });
20934
- /* empty harmony namespace reexport */
20935
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Pagination__ = __webpack_require__(373);
20936
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Pagination", function() { return __WEBPACK_IMPORTED_MODULE_4__Pagination__["a"]; });
20937
- /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "usePagination", function() { return __WEBPACK_IMPORTED_MODULE_4__Pagination__["b"]; });
20938
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__PaginationItem__ = __webpack_require__(186);
20939
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationItem", function() { return __WEBPACK_IMPORTED_MODULE_5__PaginationItem__["a"]; });
20940
- /* empty harmony namespace reexport */
20941
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Rating__ = __webpack_require__(375);
20942
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Rating", function() { return __WEBPACK_IMPORTED_MODULE_6__Rating__["a"]; });
20943
- /* empty harmony namespace reexport */
20944
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Skeleton__ = __webpack_require__(376);
20945
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return __WEBPACK_IMPORTED_MODULE_7__Skeleton__["a"]; });
20946
- /* empty harmony namespace reexport */
20947
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__SpeedDial__ = __webpack_require__(377);
20948
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SpeedDial", function() { return __WEBPACK_IMPORTED_MODULE_8__SpeedDial__["a"]; });
20949
- /* empty harmony namespace reexport */
20950
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__SpeedDialAction__ = __webpack_require__(378);
20951
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SpeedDialAction", function() { return __WEBPACK_IMPORTED_MODULE_9__SpeedDialAction__["a"]; });
20952
- /* empty harmony namespace reexport */
20953
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__SpeedDialIcon__ = __webpack_require__(379);
20954
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SpeedDialIcon", function() { return __WEBPACK_IMPORTED_MODULE_10__SpeedDialIcon__["a"]; });
20955
- /* empty harmony namespace reexport */
20956
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__TabContext__ = __webpack_require__(117);
20957
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TabContext", function() { return __WEBPACK_IMPORTED_MODULE_11__TabContext__["a"]; });
20958
- /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "useTabContext", function() { return __WEBPACK_IMPORTED_MODULE_11__TabContext__["d"]; });
20959
- /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "getPanelId", function() { return __WEBPACK_IMPORTED_MODULE_11__TabContext__["b"]; });
20960
- /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "getTabId", function() { return __WEBPACK_IMPORTED_MODULE_11__TabContext__["c"]; });
20961
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__TabList__ = __webpack_require__(381);
20962
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TabList", function() { return __WEBPACK_IMPORTED_MODULE_12__TabList__["a"]; });
20963
- /* empty harmony namespace reexport */
20964
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__TabPanel__ = __webpack_require__(382);
20965
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TabPanel", function() { return __WEBPACK_IMPORTED_MODULE_13__TabPanel__["a"]; });
20966
- /* empty harmony namespace reexport */
20967
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Timeline__ = __webpack_require__(383);
20968
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Timeline", function() { return __WEBPACK_IMPORTED_MODULE_14__Timeline__["a"]; });
20969
- /* empty harmony namespace reexport */
20970
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__TimelineConnector__ = __webpack_require__(384);
20971
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineConnector", function() { return __WEBPACK_IMPORTED_MODULE_15__TimelineConnector__["a"]; });
20972
- /* empty harmony namespace reexport */
20973
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__TimelineContent__ = __webpack_require__(385);
20974
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineContent", function() { return __WEBPACK_IMPORTED_MODULE_16__TimelineContent__["a"]; });
20975
- /* empty harmony namespace reexport */
20976
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__TimelineDot__ = __webpack_require__(386);
20977
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineDot", function() { return __WEBPACK_IMPORTED_MODULE_17__TimelineDot__["a"]; });
20978
- /* empty harmony namespace reexport */
20979
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__TimelineItem__ = __webpack_require__(387);
20980
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineItem", function() { return __WEBPACK_IMPORTED_MODULE_18__TimelineItem__["a"]; });
20981
- /* empty harmony namespace reexport */
20982
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__TimelineOppositeContent__ = __webpack_require__(388);
20983
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineOppositeContent", function() { return __WEBPACK_IMPORTED_MODULE_19__TimelineOppositeContent__["a"]; });
20984
- /* empty harmony namespace reexport */
20985
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__TimelineSeparator__ = __webpack_require__(389);
20986
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineSeparator", function() { return __WEBPACK_IMPORTED_MODULE_20__TimelineSeparator__["a"]; });
20987
- /* empty harmony namespace reexport */
20988
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__ToggleButton__ = __webpack_require__(390);
20989
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ToggleButton", function() { return __WEBPACK_IMPORTED_MODULE_21__ToggleButton__["a"]; });
20990
- /* empty harmony namespace reexport */
20991
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__ToggleButtonGroup__ = __webpack_require__(391);
20992
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ToggleButtonGroup", function() { return __WEBPACK_IMPORTED_MODULE_22__ToggleButtonGroup__["a"]; });
20993
- /* empty harmony namespace reexport */
20994
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__TreeItem__ = __webpack_require__(392);
20995
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TreeItem", function() { return __WEBPACK_IMPORTED_MODULE_23__TreeItem__["a"]; });
20996
- /* empty harmony namespace reexport */
20997
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__TreeView__ = __webpack_require__(394);
20998
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TreeView", function() { return __WEBPACK_IMPORTED_MODULE_24__TreeView__["a"]; });
20999
- /* empty harmony namespace reexport */
21000
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__useAutocomplete__ = __webpack_require__(371);
21001
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useAutocomplete", function() { return __WEBPACK_IMPORTED_MODULE_25__useAutocomplete__["b"]; });
21002
- /** @license Material-UI v4.0.0-alpha.57
21003
- *
21004
- * This source code is licensed under the MIT license found in the
21005
- * LICENSE file in the root directory of this source tree.
21006
- */
21007
- /* eslint-disable import/export */
21008
-
21009
-
21010
-
21011
-
21012
-
21013
-
21014
-
21015
-
21016
-
21017
-
21018
-
21019
-
21020
-
21021
-
21022
-
21023
-
21024
-
21025
-
21026
-
21027
-
21028
-
21029
-
21030
-
21031
-
21032
-
21033
-
21034
-
21035
-
21036
-
21037
-
21038
-
21039
-
21040
-
21041
-
21042
-
21043
-
21044
-
21045
-
21046
-
21047
-
21048
-
21049
-
21050
-
21051
-
21052
-
21053
-
21054
-
21055
-
21056
-
21057
- // createFilterOptions is exported from Autocomplete
21058
-
21059
-
21060
-
21061
- /***/ }),
21062
- /* 277 */
21063
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21064
-
21065
- "use strict";
21066
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Alert__ = __webpack_require__(585);
21067
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Alert__["a"]; });
21068
-
21069
-
21070
- /***/ }),
21071
- /* 278 */
21072
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21073
-
21074
- "use strict";
21075
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
21076
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_styles__ = __webpack_require__(27);
21077
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(75);
21078
-
21079
-
21080
-
21081
-
21082
- var styled = function styled(Component) {
21083
- var componentCreator = Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_styles__["e" /* styled */])(Component);
21084
- return function (style, options) {
21085
- return componentCreator(style, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
21086
- defaultTheme: __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */]
21087
- }, options));
21088
- };
21089
- };
21090
-
21091
- /* harmony default export */ __webpack_exports__["a"] = (styled);
21092
-
21093
- /***/ }),
21094
- /* 279 */
21095
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21096
-
21097
- "use strict";
21098
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = requirePropFactory;
21099
- function requirePropFactory(componentNameInError) {
21100
- if (process.env.NODE_ENV === 'production') {
21101
- return function () {
21102
- return null;
21103
- };
21104
- }
21105
-
21106
- var requireProp = function requireProp(requiredProp) {
21107
- return function (props, propName, componentName, location, propFullName) {
21108
- var propFullNameSafe = propFullName || propName;
21109
-
21110
- if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {
21111
- return new Error("The prop `".concat(propFullNameSafe, "` of ") + "`".concat(componentNameInError, "` must be used on `").concat(requiredProp, "`."));
21112
- }
21113
-
21114
- return null;
21115
- };
21116
- };
21117
-
21118
- return requireProp;
21119
- }
21120
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
21121
-
21122
- /***/ }),
21123
- /* 280 */
21124
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21125
-
21126
- "use strict";
21127
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
21128
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
21129
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_core_utils__ = __webpack_require__(13);
21130
-
21131
-
21132
- /**
21133
- * @ignore - internal component.
21134
- */
21135
-
21136
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_core_utils__["b" /* createSvgIcon */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
21137
- d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
21138
- }), 'Close'));
21139
-
21140
- /***/ }),
21141
- /* 281 */
21142
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21143
-
21144
- "use strict";
21145
- /* harmony default export */ __webpack_exports__["a"] = ({
21146
- disabled: false
21147
- });
21148
-
21149
- /***/ }),
21150
- /* 282 */
21151
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21152
-
21153
- "use strict";
21154
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return timeoutsShape; });
21155
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return classNamesShape; });
21156
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(2);
21157
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
21158
-
21159
- var timeoutsShape = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({
21160
- enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number,
21161
- exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number,
21162
- appear: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number
21163
- }).isRequired]) : null;
21164
- var classNamesShape = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({
21165
- enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
21166
- exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
21167
- active: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
21168
- }), __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({
21169
- enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
21170
- enterDone: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
21171
- enterActive: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
21172
- exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
21173
- exitDone: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
21174
- exitActive: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
21175
- })]) : null;
21176
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
21177
-
21178
- /***/ }),
21179
- /* 283 */
21180
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21181
-
21182
- "use strict";
21183
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(47);
21184
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
21185
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(93);
21186
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(37);
21187
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
21188
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
21189
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
21190
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
21191
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__ = __webpack_require__(153);
21192
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__ = __webpack_require__(607);
21193
-
21194
-
21195
-
21196
-
21197
-
21198
-
21199
-
21200
-
21201
-
21202
- var values = Object.values || function (obj) {
21203
- return Object.keys(obj).map(function (k) {
21204
- return obj[k];
21205
- });
21206
- };
21207
-
21208
- var defaultProps = {
21209
- component: 'div',
21210
- childFactory: function childFactory(child) {
21211
- return child;
21212
- }
21213
- };
21214
- /**
21215
- * The `<TransitionGroup>` component manages a set of transition components
21216
- * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition
21217
- * components, `<TransitionGroup>` is a state machine for managing the mounting
21218
- * and unmounting of components over time.
21219
- *
21220
- * Consider the example below. As items are removed or added to the TodoList the
21221
- * `in` prop is toggled automatically by the `<TransitionGroup>`.
21222
- *
21223
- * Note that `<TransitionGroup>` does not define any animation behavior!
21224
- * Exactly _how_ a list item animates is up to the individual transition
21225
- * component. This means you can mix and match animations across different list
21226
- * items.
21227
- */
21228
-
21229
- var TransitionGroup = /*#__PURE__*/function (_React$Component) {
21230
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(TransitionGroup, _React$Component);
21231
-
21232
- function TransitionGroup(props, context) {
21233
- var _this;
21234
-
21235
- _this = _React$Component.call(this, props, context) || this;
21236
-
21237
- var handleExited = _this.handleExited.bind(Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this)); // Initial children should all be entering, dependent on appear
21238
-
21239
-
21240
- _this.state = {
21241
- contextValue: {
21242
- isMounting: true
21243
- },
21244
- handleExited: handleExited,
21245
- firstRender: true
21246
- };
21247
- return _this;
21248
- }
21249
-
21250
- var _proto = TransitionGroup.prototype;
21251
-
21252
- _proto.componentDidMount = function componentDidMount() {
21253
- this.mounted = true;
21254
- this.setState({
21255
- contextValue: {
21256
- isMounting: false
21257
- }
21258
- });
21259
- };
21260
-
21261
- _proto.componentWillUnmount = function componentWillUnmount() {
21262
- this.mounted = false;
21263
- };
21264
-
21265
- TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
21266
- var prevChildMapping = _ref.children,
21267
- handleExited = _ref.handleExited,
21268
- firstRender = _ref.firstRender;
21269
- return {
21270
- children: firstRender ? Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["b" /* getInitialChildMapping */])(nextProps, handleExited) : Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["c" /* getNextChildMapping */])(nextProps, prevChildMapping, handleExited),
21271
- firstRender: false
21272
- };
21273
- } // node is `undefined` when user provided `nodeRef` prop
21274
- ;
21275
-
21276
- _proto.handleExited = function handleExited(child, node) {
21277
- var currentChildMapping = Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["a" /* getChildMapping */])(this.props.children);
21278
- if (child.key in currentChildMapping) return;
21279
-
21280
- if (child.props.onExited) {
21281
- child.props.onExited(node);
21282
- }
21283
-
21284
- if (this.mounted) {
21285
- this.setState(function (state) {
21286
- var children = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, state.children);
21287
-
21288
- delete children[child.key];
21289
- return {
21290
- children: children
21291
- };
21292
- });
21293
- }
21294
- };
21295
-
21296
- _proto.render = function render() {
21297
- var _this$props = this.props,
21298
- Component = _this$props.component,
21299
- childFactory = _this$props.childFactory,
21300
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["component", "childFactory"]);
21301
-
21302
- var contextValue = this.state.contextValue;
21303
- var children = values(this.state.children).map(childFactory);
21304
- delete props.appear;
21305
- delete props.enter;
21306
- delete props.exit;
21307
-
21308
- if (Component === null) {
21309
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__["a" /* default */].Provider, {
21310
- value: contextValue
21311
- }, children);
21312
- }
21313
-
21314
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__["a" /* default */].Provider, {
21315
- value: contextValue
21316
- }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(Component, props, children));
21317
- };
21318
-
21319
- return TransitionGroup;
21320
- }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);
21321
-
21322
- TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
21323
- /**
21324
- * `<TransitionGroup>` renders a `<div>` by default. You can change this
21325
- * behavior by providing a `component` prop.
21326
- * If you use React v16+ and would like to avoid a wrapping `<div>` element
21327
- * you can pass in `component={null}`. This is useful if the wrapping div
21328
- * borks your css styles.
21329
- */
21330
- component: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any,
21331
-
21332
- /**
21333
- * A set of `<Transition>` components, that are toggled `in` and out as they
21334
- * leave. the `<TransitionGroup>` will inject specific transition props, so
21335
- * remember to spread them through if you are wrapping the `<Transition>` as
21336
- * with our `<Fade>` example.
21337
- *
21338
- * While this component is meant for multiple `Transition` or `CSSTransition`
21339
- * children, sometimes you may want to have a single transition child with
21340
- * content that you want to be transitioned out and in when you change it
21341
- * (e.g. routes, images etc.) In that case you can change the `key` prop of
21342
- * the transition child as you change its content, this will cause
21343
- * `TransitionGroup` to transition the child out and back in.
21344
- */
21345
- children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
21346
-
21347
- /**
21348
- * A convenience prop that enables or disables appear animations
21349
- * for all children. Note that specifying this will override any defaults set
21350
- * on individual children Transitions.
21351
- */
21352
- appear: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
21353
-
21354
- /**
21355
- * A convenience prop that enables or disables enter animations
21356
- * for all children. Note that specifying this will override any defaults set
21357
- * on individual children Transitions.
21358
- */
21359
- enter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
21360
-
21361
- /**
21362
- * A convenience prop that enables or disables exit animations
21363
- * for all children. Note that specifying this will override any defaults set
21364
- * on individual children Transitions.
21365
- */
21366
- exit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
21367
-
21368
- /**
21369
- * You may need to apply reactive updates to a child as it is exiting.
21370
- * This is generally done by using `cloneElement` however in the case of an exiting
21371
- * child the element has already been removed and not accessible to the consumer.
21372
- *
21373
- * If you do need to update a child as it leaves you can provide a `childFactory`
21374
- * to wrap every child, even the ones that are leaving.
21375
- *
21376
- * @type Function(child: ReactElement) -> ReactElement
21377
- */
21378
- childFactory: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func
21379
- } : {};
21380
- TransitionGroup.defaultProps = defaultProps;
21381
- /* harmony default export */ __webpack_exports__["a"] = (TransitionGroup);
21382
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
21383
-
21384
- /***/ }),
21385
- /* 284 */
21386
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21387
-
21388
- "use strict";
21389
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AlertTitle__ = __webpack_require__(610);
21390
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__AlertTitle__["a"]; });
21391
-
21392
-
21393
- /***/ }),
21394
- /* 285 */
21395
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21396
-
21397
- "use strict";
21398
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Accordion__ = __webpack_require__(625);
21399
- /* unused harmony reexport default */
21400
-
21401
-
21402
- /***/ }),
21403
- /* 286 */
21404
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21405
-
21406
- "use strict";
21407
- /* harmony export (immutable) */ __webpack_exports__["a"] = _toArray;
21408
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__ = __webpack_require__(262);
21409
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArray__ = __webpack_require__(234);
21410
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(144);
21411
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableRest__ = __webpack_require__(263);
21412
-
21413
-
21414
-
21415
-
21416
- function _toArray(arr) {
21417
- return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableRest__["a" /* default */])();
21418
- }
21419
-
21420
- /***/ }),
21421
- /* 287 */
21422
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21423
-
21424
- "use strict";
21425
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
21426
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
21427
-
21428
- /**
21429
- * @ignore - internal component.
21430
- * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
21431
- */
21432
-
21433
- var AccordionContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
21434
-
21435
- if (process.env.NODE_ENV !== 'production') {
21436
- AccordionContext.displayName = 'AccordionContext';
21437
- }
21438
-
21439
- /* harmony default export */ __webpack_exports__["a"] = (AccordionContext);
21440
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
21441
-
21442
- /***/ }),
21443
- /* 288 */
21444
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21445
-
21446
- "use strict";
21447
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AccordionActions__ = __webpack_require__(627);
21448
- /* unused harmony reexport default */
21449
-
21450
-
21451
- /***/ }),
21452
- /* 289 */
21453
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21454
-
21455
- "use strict";
21456
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AccordionDetails__ = __webpack_require__(628);
21457
- /* unused harmony reexport default */
21458
-
21459
-
21460
- /***/ }),
21461
- /* 290 */
21462
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21463
-
21464
- "use strict";
21465
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AccordionSummary__ = __webpack_require__(629);
21466
- /* unused harmony reexport default */
21467
-
21468
-
21469
- /***/ }),
21470
- /* 291 */
21471
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21472
-
21473
- "use strict";
21474
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AppBar__ = __webpack_require__(630);
21475
- /* unused harmony reexport default */
21476
-
21477
-
21478
- /***/ }),
21479
- /* 292 */
21480
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21481
-
21482
- "use strict";
21483
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Badge__ = __webpack_require__(635);
21484
- /* unused harmony reexport default */
21485
-
21486
-
21487
- /***/ }),
21488
- /* 293 */
21489
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21490
-
21491
- "use strict";
21492
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BottomNavigation__ = __webpack_require__(636);
21493
- /* unused harmony reexport default */
21494
-
21495
-
21496
- /***/ }),
21497
- /* 294 */
21498
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21499
-
21500
- "use strict";
21501
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BottomNavigationAction__ = __webpack_require__(637);
21502
- /* unused harmony reexport default */
21503
-
21504
-
21505
- /***/ }),
21506
- /* 295 */
21507
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21508
-
21509
- "use strict";
21510
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Box__ = __webpack_require__(638);
21511
- /* unused harmony reexport default */
21512
- /* unused harmony reexport styleFunction */
21513
-
21514
-
21515
- /***/ }),
21516
- /* 296 */
21517
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21518
-
21519
- "use strict";
21520
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Breadcrumbs__ = __webpack_require__(639);
21521
- /* unused harmony reexport default */
21522
-
21523
-
21524
- /***/ }),
21525
- /* 297 */
21526
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21527
-
21528
- "use strict";
21529
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ButtonGroup__ = __webpack_require__(644);
21530
- /* unused harmony reexport default */
21531
-
21532
-
21533
- /***/ }),
21534
- /* 298 */
21535
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21536
-
21537
- "use strict";
21538
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Card__ = __webpack_require__(645);
21539
- /* unused harmony reexport default */
21540
-
21541
-
21542
- /***/ }),
21543
- /* 299 */
21544
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21545
-
21546
- "use strict";
21547
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardActionArea__ = __webpack_require__(646);
21548
- /* unused harmony reexport default */
21549
-
21550
-
21551
- /***/ }),
21552
- /* 300 */
21553
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21554
-
21555
- "use strict";
21556
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardActions__ = __webpack_require__(647);
21557
- /* unused harmony reexport default */
21558
-
21559
-
21560
- /***/ }),
21561
- /* 301 */
21562
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21563
-
21564
- "use strict";
21565
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardContent__ = __webpack_require__(648);
21566
- /* unused harmony reexport default */
21567
-
21568
-
21569
- /***/ }),
21570
- /* 302 */
21571
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21572
-
21573
- "use strict";
21574
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardHeader__ = __webpack_require__(649);
21575
- /* unused harmony reexport default */
21576
-
21577
-
21578
- /***/ }),
21579
- /* 303 */
21580
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21581
-
21582
- "use strict";
21583
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardMedia__ = __webpack_require__(650);
21584
- /* unused harmony reexport default */
21585
-
21586
-
21587
- /***/ }),
21588
- /* 304 */
21589
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21590
-
21591
- "use strict";
21592
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Checkbox__ = __webpack_require__(651);
21593
- /* unused harmony reexport default */
21594
-
21595
-
21596
- /***/ }),
21597
- /* 305 */
21598
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21599
-
21600
- "use strict";
21601
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CircularProgress__ = __webpack_require__(657);
21602
- /* unused harmony reexport default */
21603
-
21604
-
21605
- /***/ }),
21606
- /* 306 */
21607
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21608
-
21609
- "use strict";
21610
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Container__ = __webpack_require__(659);
21611
- /* unused harmony reexport default */
21612
-
21613
-
21614
- /***/ }),
21615
- /* 307 */
21616
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21617
-
21618
- "use strict";
21619
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CssBaseline__ = __webpack_require__(660);
21620
- /* unused harmony reexport default */
21621
-
21622
-
21623
- /***/ }),
21624
- /* 308 */
21625
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21626
-
21627
- "use strict";
21628
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Dialog__ = __webpack_require__(661);
21629
- /* unused harmony reexport default */
21630
-
21631
-
21632
- /***/ }),
21633
- /* 309 */
21634
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21635
-
21636
- "use strict";
21637
- /* harmony export (immutable) */ __webpack_exports__["a"] = ariaHidden;
21638
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ModalManager; });
21639
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(54);
21640
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_createClass__ = __webpack_require__(49);
21641
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(30);
21642
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_getScrollbarSize__ = __webpack_require__(310);
21643
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_ownerDocument__ = __webpack_require__(31);
21644
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_ownerWindow__ = __webpack_require__(102);
21645
-
21646
-
21647
-
21648
-
21649
-
21650
- // Is a vertical scrollbar displayed?
21651
-
21652
- function isOverflowing(container) {
21653
- var doc = Object(__WEBPACK_IMPORTED_MODULE_4__utils_ownerDocument__["a" /* default */])(container);
21654
-
21655
- if (doc.body === container) {
21656
- return Object(__WEBPACK_IMPORTED_MODULE_5__utils_ownerWindow__["a" /* default */])(doc).innerWidth > doc.documentElement.clientWidth;
21657
- }
21658
-
21659
- return container.scrollHeight > container.clientHeight;
21660
- }
21661
-
21662
- function ariaHidden(node, show) {
21663
- if (show) {
21664
- node.setAttribute('aria-hidden', 'true');
21665
- } else {
21666
- node.removeAttribute('aria-hidden');
21667
- }
21668
- }
21669
-
21670
- function getPaddingRight(node) {
21671
- return parseInt(window.getComputedStyle(node)['padding-right'], 10) || 0;
21672
- }
21673
-
21674
- function ariaHiddenSiblings(container, mountNode, currentNode) {
21675
- var nodesToExclude = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
21676
- var show = arguments.length > 4 ? arguments[4] : undefined;
21677
- var blacklist = [mountNode, currentNode].concat(Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(nodesToExclude));
21678
- var blacklistTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE'];
21679
- [].forEach.call(container.children, function (node) {
21680
- if (node.nodeType === 1 && blacklist.indexOf(node) === -1 && blacklistTagNames.indexOf(node.tagName) === -1) {
21681
- ariaHidden(node, show);
21682
- }
21683
- });
21684
- }
21685
-
21686
- function findIndexOf(containerInfo, callback) {
21687
- var idx = -1;
21688
- containerInfo.some(function (item, index) {
21689
- if (callback(item)) {
21690
- idx = index;
21691
- return true;
21692
- }
21693
-
21694
- return false;
21695
- });
21696
- return idx;
21697
- }
21698
-
21699
- function handleContainer(containerInfo, props) {
21700
- var restoreStyle = [];
21701
- var restorePaddings = [];
21702
- var container = containerInfo.container;
21703
- var fixedNodes;
21704
-
21705
- if (!props.disableScrollLock) {
21706
- if (isOverflowing(container)) {
21707
- // Compute the size before applying overflow hidden to avoid any scroll jumps.
21708
- var scrollbarSize = Object(__WEBPACK_IMPORTED_MODULE_3__utils_getScrollbarSize__["a" /* default */])();
21709
- restoreStyle.push({
21710
- value: container.style.paddingRight,
21711
- key: 'padding-right',
21712
- el: container
21713
- }); // Use computed style, here to get the real padding to add our scrollbar width.
21714
-
21715
- container.style['padding-right'] = "".concat(getPaddingRight(container) + scrollbarSize, "px"); // .mui-fixed is a global helper.
21716
-
21717
- fixedNodes = Object(__WEBPACK_IMPORTED_MODULE_4__utils_ownerDocument__["a" /* default */])(container).querySelectorAll('.mui-fixed');
21718
- [].forEach.call(fixedNodes, function (node) {
21719
- restorePaddings.push(node.style.paddingRight);
21720
- node.style.paddingRight = "".concat(getPaddingRight(node) + scrollbarSize, "px");
21721
- });
21722
- } // Improve Gatsby support
21723
- // https://css-tricks.com/snippets/css/force-vertical-scrollbar/
21724
-
21725
-
21726
- var parent = container.parentElement;
21727
- var scrollContainer = parent.nodeName === 'HTML' && window.getComputedStyle(parent)['overflow-y'] === 'scroll' ? parent : container; // Block the scroll even if no scrollbar is visible to account for mobile keyboard
21728
- // screensize shrink.
21729
-
21730
- restoreStyle.push({
21731
- value: scrollContainer.style.overflow,
21732
- key: 'overflow',
21733
- el: scrollContainer
21734
- });
21735
- scrollContainer.style.overflow = 'hidden';
21736
- }
21737
-
21738
- var restore = function restore() {
21739
- if (fixedNodes) {
21740
- [].forEach.call(fixedNodes, function (node, i) {
21741
- if (restorePaddings[i]) {
21742
- node.style.paddingRight = restorePaddings[i];
21743
- } else {
21744
- node.style.removeProperty('padding-right');
21745
- }
21746
- });
21747
- }
21748
-
21749
- restoreStyle.forEach(function (_ref) {
21750
- var value = _ref.value,
21751
- el = _ref.el,
21752
- key = _ref.key;
21753
-
21754
- if (value) {
21755
- el.style.setProperty(key, value);
21756
- } else {
21757
- el.style.removeProperty(key);
21758
- }
21759
- });
21760
- };
21761
-
21762
- return restore;
21763
- }
21764
-
21765
- function getHiddenSiblings(container) {
21766
- var hiddenSiblings = [];
21767
- [].forEach.call(container.children, function (node) {
21768
- if (node.getAttribute && node.getAttribute('aria-hidden') === 'true') {
21769
- hiddenSiblings.push(node);
21770
- }
21771
- });
21772
- return hiddenSiblings;
21773
- }
21774
- /**
21775
- * @ignore - do not document.
21776
- *
21777
- * Proper state management for containers and the modals in those containers.
21778
- * Simplified, but inspired by react-overlay's ModalManager class.
21779
- * Used by the Modal to ensure proper styling of containers.
21780
- */
21781
-
21782
-
21783
- var ModalManager = /*#__PURE__*/function () {
21784
- function ModalManager() {
21785
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ModalManager);
21786
-
21787
- // this.modals[modalIndex] = modal
21788
- this.modals = []; // this.containers[containerIndex] = {
21789
- // modals: [],
21790
- // container,
21791
- // restore: null,
21792
- // }
21793
-
21794
- this.containers = [];
21795
- }
21796
-
21797
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_createClass__["a" /* default */])(ModalManager, [{
21798
- key: "add",
21799
- value: function add(modal, container) {
21800
- var modalIndex = this.modals.indexOf(modal);
21801
-
21802
- if (modalIndex !== -1) {
21803
- return modalIndex;
21804
- }
21805
-
21806
- modalIndex = this.modals.length;
21807
- this.modals.push(modal); // If the modal we are adding is already in the DOM.
21808
-
21809
- if (modal.modalRef) {
21810
- ariaHidden(modal.modalRef, false);
21811
- }
21812
-
21813
- var hiddenSiblingNodes = getHiddenSiblings(container);
21814
- ariaHiddenSiblings(container, modal.mountNode, modal.modalRef, hiddenSiblingNodes, true);
21815
- var containerIndex = findIndexOf(this.containers, function (item) {
21816
- return item.container === container;
21817
- });
21818
-
21819
- if (containerIndex !== -1) {
21820
- this.containers[containerIndex].modals.push(modal);
21821
- return modalIndex;
21822
- }
21823
-
21824
- this.containers.push({
21825
- modals: [modal],
21826
- container: container,
21827
- restore: null,
21828
- hiddenSiblingNodes: hiddenSiblingNodes
21829
- });
21830
- return modalIndex;
21831
- }
21832
- }, {
21833
- key: "mount",
21834
- value: function mount(modal, props) {
21835
- var containerIndex = findIndexOf(this.containers, function (item) {
21836
- return item.modals.indexOf(modal) !== -1;
21837
- });
21838
- var containerInfo = this.containers[containerIndex];
21839
-
21840
- if (!containerInfo.restore) {
21841
- containerInfo.restore = handleContainer(containerInfo, props);
21842
- }
21843
- }
21844
- }, {
21845
- key: "remove",
21846
- value: function remove(modal) {
21847
- var modalIndex = this.modals.indexOf(modal);
21848
-
21849
- if (modalIndex === -1) {
21850
- return modalIndex;
21851
- }
21852
-
21853
- var containerIndex = findIndexOf(this.containers, function (item) {
21854
- return item.modals.indexOf(modal) !== -1;
21855
- });
21856
- var containerInfo = this.containers[containerIndex];
21857
- containerInfo.modals.splice(containerInfo.modals.indexOf(modal), 1);
21858
- this.modals.splice(modalIndex, 1); // If that was the last modal in a container, clean up the container.
21859
-
21860
- if (containerInfo.modals.length === 0) {
21861
- // The modal might be closed before it had the chance to be mounted in the DOM.
21862
- if (containerInfo.restore) {
21863
- containerInfo.restore();
21864
- }
21865
-
21866
- if (modal.modalRef) {
21867
- // In case the modal wasn't in the DOM yet.
21868
- ariaHidden(modal.modalRef, true);
21869
- }
21870
-
21871
- ariaHiddenSiblings(containerInfo.container, modal.mountNode, modal.modalRef, containerInfo.hiddenSiblingNodes, false);
21872
- this.containers.splice(containerIndex, 1);
21873
- } else {
21874
- // Otherwise make sure the next top modal is visible to a screen reader.
21875
- var nextTop = containerInfo.modals[containerInfo.modals.length - 1]; // as soon as a modal is adding its modalRef is undefined. it can't set
21876
- // aria-hidden because the dom element doesn't exist either
21877
- // when modal was unmounted before modalRef gets null
21878
-
21879
- if (nextTop.modalRef) {
21880
- ariaHidden(nextTop.modalRef, false);
21881
- }
21882
- }
21883
-
21884
- return modalIndex;
21885
- }
21886
- }, {
21887
- key: "isTopModal",
21888
- value: function isTopModal(modal) {
21889
- return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;
21890
- }
21891
- }]);
21892
-
21893
- return ModalManager;
21894
- }();
21895
-
21896
-
21897
-
21898
- /***/ }),
21899
- /* 310 */
21900
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21901
-
21902
- "use strict";
21903
- /* harmony export (immutable) */ __webpack_exports__["a"] = getScrollbarSize;
21904
- // A change of the browser zoom change the scrollbar size.
21905
- // Credit https://github.com/twbs/bootstrap/blob/3ffe3a5d82f6f561b82ff78d82b32a7d14aed558/js/src/modal.js#L512-L519
21906
- function getScrollbarSize() {
21907
- var scrollDiv = document.createElement('div');
21908
- scrollDiv.style.width = '99px';
21909
- scrollDiv.style.height = '99px';
21910
- scrollDiv.style.position = 'absolute';
21911
- scrollDiv.style.top = '-9999px';
21912
- scrollDiv.style.overflow = 'scroll';
21913
- document.body.appendChild(scrollDiv);
21914
- var scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;
21915
- document.body.removeChild(scrollDiv);
21916
- return scrollbarSize;
21917
- }
21918
-
21919
- /***/ }),
21920
- /* 311 */
21921
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21922
-
21923
- "use strict";
21924
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogActions__ = __webpack_require__(666);
21925
- /* unused harmony reexport default */
21926
-
21927
-
21928
- /***/ }),
21929
- /* 312 */
21930
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21931
-
21932
- "use strict";
21933
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogContent__ = __webpack_require__(667);
21934
- /* unused harmony reexport default */
21935
-
21936
-
21937
- /***/ }),
21938
- /* 313 */
21939
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21940
-
21941
- "use strict";
21942
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogContentText__ = __webpack_require__(668);
21943
- /* unused harmony reexport default */
21944
-
21945
-
21946
- /***/ }),
21947
- /* 314 */
21948
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21949
-
21950
- "use strict";
21951
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogTitle__ = __webpack_require__(669);
21952
- /* unused harmony reexport default */
21953
-
21954
-
21955
- /***/ }),
21956
- /* 315 */
21957
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21958
-
21959
- "use strict";
21960
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Divider__ = __webpack_require__(670);
21961
- /* unused harmony reexport default */
21962
-
21963
-
21964
- /***/ }),
21965
- /* 316 */
21966
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21967
-
21968
- "use strict";
21969
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Drawer__ = __webpack_require__(160);
21970
- /* unused harmony reexport default */
21971
-
21972
-
21973
- /***/ }),
21974
- /* 317 */
21975
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21976
-
21977
- "use strict";
21978
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanel__ = __webpack_require__(672);
21979
- /* unused harmony reexport default */
21980
-
21981
-
21982
- /***/ }),
21983
- /* 318 */
21984
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21985
-
21986
- "use strict";
21987
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
21988
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
21989
-
21990
- /**
21991
- * @ignore - internal component.
21992
- * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
21993
- */
21994
-
21995
- var ExpansionPanelContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
21996
-
21997
- if (process.env.NODE_ENV !== 'production') {
21998
- ExpansionPanelContext.displayName = 'ExpansionPanelContext';
21999
- }
22000
-
22001
- /* harmony default export */ __webpack_exports__["a"] = (ExpansionPanelContext);
22002
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22003
-
22004
- /***/ }),
22005
- /* 319 */
22006
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22007
-
22008
- "use strict";
22009
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanelActions__ = __webpack_require__(673);
22010
- /* unused harmony reexport default */
22011
-
22012
-
22013
- /***/ }),
22014
- /* 320 */
22015
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22016
-
22017
- "use strict";
22018
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanelDetails__ = __webpack_require__(674);
22019
- /* unused harmony reexport default */
22020
-
22021
-
22022
- /***/ }),
22023
- /* 321 */
22024
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22025
-
22026
- "use strict";
22027
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanelSummary__ = __webpack_require__(675);
22028
- /* unused harmony reexport default */
22029
-
22030
-
22031
- /***/ }),
22032
- /* 322 */
22033
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22034
-
22035
- "use strict";
22036
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormControlLabel__ = __webpack_require__(681);
22037
- /* unused harmony reexport default */
22038
-
22039
-
22040
- /***/ }),
22041
- /* 323 */
22042
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22043
-
22044
- "use strict";
22045
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Grid__ = __webpack_require__(685);
22046
- /* unused harmony reexport default */
22047
-
22048
-
22049
- /***/ }),
22050
- /* 324 */
22051
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22052
-
22053
- "use strict";
22054
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GridList__ = __webpack_require__(686);
22055
- /* unused harmony reexport default */
22056
-
22057
-
22058
- /***/ }),
22059
- /* 325 */
22060
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22061
-
22062
- "use strict";
22063
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GridListTile__ = __webpack_require__(687);
22064
- /* unused harmony reexport default */
22065
-
22066
-
22067
- /***/ }),
22068
- /* 326 */
22069
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22070
-
22071
- "use strict";
22072
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GridListTileBar__ = __webpack_require__(688);
22073
- /* unused harmony reexport default */
22074
-
22075
-
22076
- /***/ }),
22077
- /* 327 */
22078
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22079
-
22080
- "use strict";
22081
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Hidden__ = __webpack_require__(690);
22082
- /* unused harmony reexport default */
22083
-
22084
-
22085
- /***/ }),
22086
- /* 328 */
22087
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22088
-
22089
- "use strict";
22090
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isWidthUp; });
22091
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isWidthDown; });
22092
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
22093
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
22094
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
22095
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
22096
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
22097
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
22098
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ui_utils__ = __webpack_require__(8);
22099
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_styles__ = __webpack_require__(27);
22100
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_hoist_non_react_statics__ = __webpack_require__(74);
22101
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_hoist_non_react_statics__);
22102
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_useTheme__ = __webpack_require__(20);
22103
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__ = __webpack_require__(244);
22104
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__useMediaQuery__ = __webpack_require__(167);
22105
-
22106
-
22107
-
22108
-
22109
-
22110
-
22111
-
22112
-
22113
-
22114
- // By default, returns true if screen width is the same or greater than the given breakpoint.
22115
-
22116
- var isWidthUp = function isWidthUp(breakpoint, width) {
22117
- var inclusive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
22118
-
22119
- if (inclusive) {
22120
- return __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint) <= __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(width);
22121
- }
22122
-
22123
- return __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint) < __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(width);
22124
- }; // By default, returns true if screen width is the same or less than the given breakpoint.
22125
-
22126
- var isWidthDown = function isWidthDown(breakpoint, width) {
22127
- var inclusive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
22128
-
22129
- if (inclusive) {
22130
- return __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(width) <= __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint);
22131
- }
22132
-
22133
- return __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(width) < __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint);
22134
- };
22135
- var useEnhancedEffect = typeof window === 'undefined' ? __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"] : __WEBPACK_IMPORTED_MODULE_2_react__["useLayoutEffect"];
22136
-
22137
- var withWidth = function withWidth() {
22138
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
22139
- return function (Component) {
22140
- var _options$withTheme = options.withTheme,
22141
- withThemeOption = _options$withTheme === void 0 ? false : _options$withTheme,
22142
- _options$noSSR = options.noSSR,
22143
- noSSR = _options$noSSR === void 0 ? false : _options$noSSR,
22144
- initialWidthOption = options.initialWidth;
22145
-
22146
- function WithWidth(props) {
22147
- var contextTheme = Object(__WEBPACK_IMPORTED_MODULE_7__styles_useTheme__["a" /* default */])();
22148
- var theme = props.theme || contextTheme;
22149
-
22150
- var _getThemeProps = Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_styles__["b" /* getThemeProps */])({
22151
- theme: theme,
22152
- name: 'MuiWithWidth',
22153
- props: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, props)
22154
- }),
22155
- initialWidth = _getThemeProps.initialWidth,
22156
- width = _getThemeProps.width,
22157
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_getThemeProps, ["initialWidth", "width"]);
22158
-
22159
- var _React$useState = __WEBPACK_IMPORTED_MODULE_2_react__["useState"](false),
22160
- mountedState = _React$useState[0],
22161
- setMountedState = _React$useState[1];
22162
-
22163
- useEnhancedEffect(function () {
22164
- setMountedState(true);
22165
- }, []);
22166
- /**
22167
- * innerWidth |xs sm md lg xl
22168
- * |-------|-------|-------|-------|------>
22169
- * width | xs | sm | md | lg | xl
22170
- */
22171
-
22172
- var keys = theme.breakpoints.keys.slice().reverse();
22173
- var widthComputed = keys.reduce(function (output, key) {
22174
- // eslint-disable-next-line react-hooks/rules-of-hooks
22175
- var matches = Object(__WEBPACK_IMPORTED_MODULE_9__useMediaQuery__["a" /* default */])(theme.breakpoints.up(key));
22176
- return !output && matches ? key : output;
22177
- }, null);
22178
-
22179
- var more = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
22180
- width: width || (mountedState || noSSR ? widthComputed : undefined) || initialWidth || initialWidthOption
22181
- }, withThemeOption ? {
22182
- theme: theme
22183
- } : {}, other); // When rendering the component on the server,
22184
- // we have no idea about the client browser screen width.
22185
- // In order to prevent blinks and help the reconciliation of the React tree
22186
- // we are not rendering the child component.
22187
- //
22188
- // An alternative is to use the `initialWidth` property.
22189
-
22190
-
22191
- if (more.width === undefined) {
22192
- return null;
22193
- }
22194
-
22195
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](Component, more);
22196
- }
22197
-
22198
- process.env.NODE_ENV !== "production" ? WithWidth.propTypes = {
22199
- /**
22200
- * As `window.innerWidth` is unavailable on the server,
22201
- * we default to rendering an empty component during the first mount.
22202
- * You might want to use an heuristic to approximate
22203
- * the screen width of the client browser screen width.
22204
- *
22205
- * For instance, you could be using the user-agent or the client-hints.
22206
- * https://caniuse.com/#search=client%20hint
22207
- */
22208
- initialWidth: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
22209
-
22210
- /**
22211
- * @ignore
22212
- */
22213
- theme: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
22214
-
22215
- /**
22216
- * Bypass the width calculation logic.
22217
- */
22218
- width: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['xs', 'sm', 'md', 'lg', 'xl'])
22219
- } : void 0;
22220
-
22221
- if (process.env.NODE_ENV !== 'production') {
22222
- WithWidth.displayName = "WithWidth(".concat(Object(__WEBPACK_IMPORTED_MODULE_4__material_ui_utils__["h" /* getDisplayName */])(Component), ")");
22223
- }
22224
-
22225
- __WEBPACK_IMPORTED_MODULE_6_hoist_non_react_statics___default()(WithWidth, Component);
22226
- return WithWidth;
22227
- };
22228
- };
22229
-
22230
- /* harmony default export */ __webpack_exports__["a"] = (withWidth);
22231
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22232
-
22233
- /***/ }),
22234
- /* 329 */
22235
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22236
-
22237
- "use strict";
22238
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputAdornment__ = __webpack_require__(695);
22239
- /* unused harmony reexport default */
22240
-
22241
-
22242
- /***/ }),
22243
- /* 330 */
22244
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22245
-
22246
- "use strict";
22247
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Link__ = __webpack_require__(698);
22248
- /* unused harmony reexport default */
22249
-
22250
-
22251
- /***/ }),
22252
- /* 331 */
22253
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22254
-
22255
- "use strict";
22256
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemAvatar__ = __webpack_require__(701);
22257
- /* unused harmony reexport default */
22258
-
22259
-
22260
- /***/ }),
22261
- /* 332 */
22262
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22263
-
22264
- "use strict";
22265
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemIcon__ = __webpack_require__(702);
22266
- /* unused harmony reexport default */
22267
-
22268
-
22269
- /***/ }),
22270
- /* 333 */
22271
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22272
-
22273
- "use strict";
22274
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemSecondaryAction__ = __webpack_require__(703);
22275
- /* unused harmony reexport default */
22276
-
22277
-
22278
- /***/ }),
22279
- /* 334 */
22280
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22281
-
22282
- "use strict";
22283
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemText__ = __webpack_require__(704);
22284
- /* unused harmony reexport default */
22285
-
22286
-
22287
- /***/ }),
22288
- /* 335 */
22289
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22290
-
22291
- "use strict";
22292
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(336);
22293
- /* unused harmony reexport default */
22294
-
22295
-
22296
- /***/ }),
22297
- /* 336 */
22298
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22299
-
22300
- "use strict";
22301
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
22302
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
22303
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
22304
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
22305
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
22306
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_is__ = __webpack_require__(19);
22307
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_is__);
22308
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
22309
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
22310
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_clsx__ = __webpack_require__(5);
22311
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__ = __webpack_require__(8);
22312
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_withStyles__ = __webpack_require__(6);
22313
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Popover__ = __webpack_require__(173);
22314
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__MenuList__ = __webpack_require__(174);
22315
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom__ = __webpack_require__(14);
22316
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_dom__);
22317
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_setRef__ = __webpack_require__(56);
22318
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__styles_useTheme__ = __webpack_require__(20);
22319
-
22320
-
22321
-
22322
-
22323
-
22324
-
22325
-
22326
-
22327
-
22328
-
22329
-
22330
-
22331
-
22332
- var RTL_ORIGIN = {
22333
- vertical: 'top',
22334
- horizontal: 'right'
22335
- };
22336
- var LTR_ORIGIN = {
22337
- vertical: 'top',
22338
- horizontal: 'left'
22339
- };
22340
- var styles = {
22341
- /* Styles applied to the `Paper` component. */
22342
- paper: {
22343
- // specZ: The maximum height of a simple menu should be one or more rows less than the view
22344
- // height. This ensures a tapable area outside of the simple menu with which to dismiss
22345
- // the menu.
22346
- maxHeight: 'calc(100% - 96px)',
22347
- // Add iOS momentum scrolling.
22348
- WebkitOverflowScrolling: 'touch'
22349
- },
22350
-
22351
- /* Styles applied to the `List` component via `MenuList`. */
22352
- list: {
22353
- // We disable the focus ring for mouse, touch and keyboard users.
22354
- outline: 0
22355
- }
22356
- };
22357
- var Menu = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Menu(props, ref) {
22358
- var _props$autoFocus = props.autoFocus,
22359
- autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,
22360
- children = props.children,
22361
- classes = props.classes,
22362
- _props$disableAutoFoc = props.disableAutoFocusItem,
22363
- disableAutoFocusItem = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc,
22364
- _props$MenuListProps = props.MenuListProps,
22365
- MenuListProps = _props$MenuListProps === void 0 ? {} : _props$MenuListProps,
22366
- onClose = props.onClose,
22367
- onEntering = props.onEntering,
22368
- open = props.open,
22369
- _props$PaperProps = props.PaperProps,
22370
- PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,
22371
- PopoverClasses = props.PopoverClasses,
22372
- _props$transitionDura = props.transitionDuration,
22373
- transitionDuration = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,
22374
- _props$variant = props.variant,
22375
- variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant,
22376
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["autoFocus", "children", "classes", "disableAutoFocusItem", "MenuListProps", "onClose", "onEntering", "open", "PaperProps", "PopoverClasses", "transitionDuration", "variant"]);
22377
-
22378
- var theme = Object(__WEBPACK_IMPORTED_MODULE_12__styles_useTheme__["a" /* default */])();
22379
- var autoFocusItem = autoFocus && !disableAutoFocusItem && open;
22380
- var menuListActionsRef = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](null);
22381
- var contentAnchorRef = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](null);
22382
-
22383
- var getContentAnchorEl = function getContentAnchorEl() {
22384
- return contentAnchorRef.current;
22385
- };
22386
-
22387
- var handleEntering = function handleEntering(element, isAppearing) {
22388
- if (menuListActionsRef.current) {
22389
- menuListActionsRef.current.adjustStyleForScrollbar(element, theme);
22390
- }
22391
-
22392
- if (onEntering) {
22393
- onEntering(element, isAppearing);
22394
- }
22395
- };
22396
-
22397
- var handleListKeyDown = function handleListKeyDown(event) {
22398
- if (event.key === 'Tab') {
22399
- event.preventDefault();
22400
-
22401
- if (onClose) {
22402
- onClose(event, 'tabKeyDown');
22403
- }
22404
- }
22405
- };
22406
- /**
22407
- * the index of the item should receive focus
22408
- * in a `variant="selectedMenu"` it's the first `selected` item
22409
- * otherwise it's the very first item.
22410
- */
22411
-
22412
-
22413
- var activeItemIndex = -1; // since we inject focus related props into children we have to do a lookahead
22414
- // to check if there is a `selected` item. We're looking for the last `selected`
22415
- // item and use the first valid item as a fallback
22416
-
22417
- __WEBPACK_IMPORTED_MODULE_2_react__["Children"].map(children, function (child, index) {
22418
- if (! /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["isValidElement"](child)) {
22419
- return;
22420
- }
22421
-
22422
- if (process.env.NODE_ENV !== 'production') {
22423
- if (Object(__WEBPACK_IMPORTED_MODULE_3_react_is__["isFragment"])(child)) {
22424
- console.error(["Material-UI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
22425
- }
22426
- }
22427
-
22428
- if (!child.props.disabled) {
22429
- if (variant !== "menu" && child.props.selected) {
22430
- activeItemIndex = index;
22431
- } else if (activeItemIndex === -1) {
22432
- activeItemIndex = index;
22433
- }
22434
- }
22435
- });
22436
- var items = __WEBPACK_IMPORTED_MODULE_2_react__["Children"].map(children, function (child, index) {
22437
- if (index === activeItemIndex) {
22438
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["cloneElement"](child, {
22439
- ref: function ref(instance) {
22440
- // #StrictMode ready
22441
- contentAnchorRef.current = __WEBPACK_IMPORTED_MODULE_10_react_dom__["findDOMNode"](instance);
22442
- Object(__WEBPACK_IMPORTED_MODULE_11__utils_setRef__["a" /* default */])(child.ref, instance);
22443
- }
22444
- });
22445
- }
22446
-
22447
- return child;
22448
- });
22449
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_8__Popover__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
22450
- getContentAnchorEl: getContentAnchorEl,
22451
- classes: PopoverClasses,
22452
- onClose: onClose,
22453
- onEntering: handleEntering,
22454
- anchorOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN,
22455
- transformOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN,
22456
- PaperProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, PaperProps, {
22457
- classes: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, PaperProps.classes, {
22458
- root: classes.paper
22459
- })
22460
- }),
22461
- open: open,
22462
- ref: ref,
22463
- transitionDuration: transitionDuration
22464
- }, other), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_9__MenuList__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
22465
- onKeyDown: handleListKeyDown,
22466
- actions: menuListActionsRef,
22467
- autoFocus: autoFocus && (activeItemIndex === -1 || disableAutoFocusItem),
22468
- autoFocusItem: autoFocusItem,
22469
- variant: variant
22470
- }, MenuListProps, {
22471
- className: Object(__WEBPACK_IMPORTED_MODULE_5_clsx__["a" /* default */])(classes.list, MenuListProps.className)
22472
- }), items));
22473
- });
22474
- process.env.NODE_ENV !== "production" ? Menu.propTypes = {
22475
- // ----------------------------- Warning --------------------------------
22476
- // | These PropTypes are generated from the TypeScript type definitions |
22477
- // | To update them edit the d.ts file and run "yarn proptypes" |
22478
- // ----------------------------------------------------------------------
22479
-
22480
- /**
22481
- * A HTML element, or a function that returns it.
22482
- * It's used to set the position of the menu.
22483
- */
22484
- anchorEl: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a
22485
- /* @typescript-to-proptypes-ignore */
22486
- .oneOfType([__WEBPACK_IMPORTED_MODULE_6__material_ui_utils__["a" /* HTMLElementType */], __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func]),
22487
-
22488
- /**
22489
- * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
22490
- * children are not focusable. If you set this prop to `false` focus will be placed
22491
- * on the parent modal container. This has severe accessibility implications
22492
- * and should only be considered if you manage focus otherwise.
22493
- */
22494
- autoFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
22495
-
22496
- /**
22497
- * Menu contents, normally `MenuItem`s.
22498
- */
22499
- children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
22500
-
22501
- /**
22502
- * Override or extend the styles applied to the component.
22503
- * See [CSS API](#css) below for more details.
22504
- */
22505
- classes: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
22506
-
22507
- /**
22508
- * When opening the menu will not focus the active item but the `[role="menu"]`
22509
- * unless `autoFocus` is also set to `false`. Not using the default means not
22510
- * following WAI-ARIA authoring practices. Please be considerate about possible
22511
- * accessibility implications.
22512
- */
22513
- disableAutoFocusItem: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
22514
-
22515
- /**
22516
- * Props applied to the [`MenuList`](/api/menu-list/) element.
22517
- */
22518
- MenuListProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
22519
-
22520
- /**
22521
- * Callback fired when the component requests to be closed.
22522
- *
22523
- * @param {object} event The event source of the callback.
22524
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
22525
- */
22526
- onClose: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
22527
-
22528
- /**
22529
- * Callback fired before the Menu enters.
22530
- */
22531
- onEnter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
22532
-
22533
- /**
22534
- * Callback fired when the Menu has entered.
22535
- */
22536
- onEntered: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
22537
-
22538
- /**
22539
- * Callback fired when the Menu is entering.
22540
- */
22541
- onEntering: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
22542
-
22543
- /**
22544
- * Callback fired before the Menu exits.
22545
- */
22546
- onExit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
22547
-
22548
- /**
22549
- * Callback fired when the Menu has exited.
22550
- */
22551
- onExited: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
22552
-
22553
- /**
22554
- * Callback fired when the Menu is exiting.
22555
- */
22556
- onExiting: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
22557
-
22558
- /**
22559
- * If `true`, the menu is visible.
22560
- */
22561
- open: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool.isRequired,
22562
-
22563
- /**
22564
- * @ignore
22565
- */
22566
- PaperProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
22567
-
22568
- /**
22569
- * `classes` prop applied to the [`Popover`](/api/popover/) element.
22570
- */
22571
- PopoverClasses: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
22572
-
22573
- /**
22574
- * The length of the transition in `ms`, or 'auto'
22575
- */
22576
- transitionDuration: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(['auto']), __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({
22577
- appear: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number,
22578
- enter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number,
22579
- exit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number
22580
- })]),
22581
-
22582
- /**
22583
- * The variant to use. Use `menu` to prevent selected items from impacting the initial focus
22584
- * and the vertical alignment relative to the anchor element.
22585
- */
22586
- variant: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(['menu', 'selectedMenu'])
22587
- } : void 0;
22588
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__styles_withStyles__["a" /* default */])(styles, {
22589
- name: 'MuiMenu'
22590
- })(Menu));
22591
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22592
-
22593
- /***/ }),
22594
- /* 337 */
22595
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22596
-
22597
- "use strict";
22598
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MobileStepper__ = __webpack_require__(709);
22599
- /* unused harmony reexport default */
22600
-
22601
-
22602
- /***/ }),
22603
- /* 338 */
22604
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22605
-
22606
- "use strict";
22607
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__NativeSelect__ = __webpack_require__(339);
22608
- /* unused harmony reexport default */
22609
-
22610
-
22611
- /***/ }),
22612
- /* 339 */
22613
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22614
-
22615
- "use strict";
22616
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return styles; });
22617
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
22618
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
22619
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
22620
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
22621
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
22622
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
22623
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__NativeSelectInput__ = __webpack_require__(340);
22624
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__styles_withStyles__ = __webpack_require__(6);
22625
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__FormControl_formControlState__ = __webpack_require__(70);
22626
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__FormControl_useFormControl__ = __webpack_require__(57);
22627
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__internal_svg_icons_ArrowDropDown__ = __webpack_require__(341);
22628
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Input__ = __webpack_require__(84);
22629
-
22630
-
22631
-
22632
-
22633
-
22634
-
22635
-
22636
-
22637
-
22638
-
22639
- var styles = function styles(theme) {
22640
- return {
22641
- /* Styles applied to the select component `root` class. */
22642
- root: {},
22643
-
22644
- /* Styles applied to the select component `select` class. */
22645
- select: {
22646
- '-moz-appearance': 'none',
22647
- // Reset
22648
- '-webkit-appearance': 'none',
22649
- // Reset
22650
- // When interacting quickly, the text can end up selected.
22651
- // Native select can't be selected either.
22652
- userSelect: 'none',
22653
- borderRadius: 0,
22654
- // Reset
22655
- minWidth: 16,
22656
- // So it doesn't collapse.
22657
- cursor: 'pointer',
22658
- '&:focus': {
22659
- // Show that it's not an text input
22660
- backgroundColor: theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.05)',
22661
- borderRadius: 0 // Reset Chrome style
22662
-
22663
- },
22664
- // Remove IE 11 arrow
22665
- '&::-ms-expand': {
22666
- display: 'none'
22667
- },
22668
- '&$disabled': {
22669
- cursor: 'default'
22670
- },
22671
- '&[multiple]': {
22672
- height: 'auto'
22673
- },
22674
- '&:not([multiple]) option, &:not([multiple]) optgroup': {
22675
- backgroundColor: theme.palette.background.paper
22676
- },
22677
- '&&': {
22678
- paddingRight: 24
22679
- }
22680
- },
22681
-
22682
- /* Styles applied to the select component if `variant="filled"`. */
22683
- filled: {
22684
- '&&': {
22685
- paddingRight: 32
22686
- }
22687
- },
22688
-
22689
- /* Styles applied to the select component if `variant="outlined"`. */
22690
- outlined: {
22691
- borderRadius: theme.shape.borderRadius,
22692
- '&&': {
22693
- paddingRight: 32
22694
- }
22695
- },
22696
-
22697
- /* Styles applied to the select component `selectMenu` class. */
22698
- selectMenu: {
22699
- height: 'auto',
22700
- // Resets for multpile select with chips
22701
- minHeight: '1.1876em',
22702
- // Required for select\text-field height consistency
22703
- textOverflow: 'ellipsis',
22704
- whiteSpace: 'nowrap',
22705
- overflow: 'hidden'
22706
- },
22707
-
22708
- /* Pseudo-class applied to the select component `disabled` class. */
22709
- disabled: {},
22710
-
22711
- /* Styles applied to the icon component. */
22712
- icon: {
22713
- // We use a position absolute over a flexbox in order to forward the pointer events
22714
- // to the input and to support wrapping tags..
22715
- position: 'absolute',
22716
- right: 0,
22717
- top: 'calc(50% - 12px)',
22718
- // Center vertically
22719
- pointerEvents: 'none',
22720
- // Don't block pointer events on the select under the icon.
22721
- color: theme.palette.action.active,
22722
- '&$disabled': {
22723
- color: theme.palette.action.disabled
22724
- }
22725
- },
22726
-
22727
- /* Styles applied to the icon component if the popup is open. */
22728
- iconOpen: {
22729
- transform: 'rotate(180deg)'
22730
- },
22731
-
22732
- /* Styles applied to the icon component if `variant="filled"`. */
22733
- iconFilled: {
22734
- right: 7
22735
- },
22736
-
22737
- /* Styles applied to the icon component if `variant="outlined"`. */
22738
- iconOutlined: {
22739
- right: 7
22740
- },
22741
-
22742
- /* Styles applied to the underlying native input component. */
22743
- nativeInput: {
22744
- bottom: 0,
22745
- left: 0,
22746
- position: 'absolute',
22747
- opacity: 0,
22748
- pointerEvents: 'none',
22749
- width: '100%'
22750
- }
22751
- };
22752
- };
22753
- var defaultInput = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_9__Input__["a" /* default */], null);
22754
- /**
22755
- * An alternative to `<Select native />` with a much smaller bundle size footprint.
22756
- */
22757
-
22758
- var NativeSelect = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function NativeSelect(props, ref) {
22759
- var children = props.children,
22760
- classes = props.classes,
22761
- _props$IconComponent = props.IconComponent,
22762
- IconComponent = _props$IconComponent === void 0 ? __WEBPACK_IMPORTED_MODULE_8__internal_svg_icons_ArrowDropDown__["a" /* default */] : _props$IconComponent,
22763
- _props$input = props.input,
22764
- input = _props$input === void 0 ? defaultInput : _props$input,
22765
- inputProps = props.inputProps,
22766
- variant = props.variant,
22767
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "classes", "IconComponent", "input", "inputProps", "variant"]);
22768
-
22769
- var muiFormControl = Object(__WEBPACK_IMPORTED_MODULE_7__FormControl_useFormControl__["a" /* default */])();
22770
- var fcs = Object(__WEBPACK_IMPORTED_MODULE_6__FormControl_formControlState__["a" /* default */])({
22771
- props: props,
22772
- muiFormControl: muiFormControl,
22773
- states: ['variant']
22774
- });
22775
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["cloneElement"](input, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
22776
- // Most of the logic is implemented in `NativeSelectInput`.
22777
- // The `Select` component is a simple API wrapper to expose something better to play with.
22778
- inputComponent: __WEBPACK_IMPORTED_MODULE_4__NativeSelectInput__["a" /* default */],
22779
- inputProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
22780
- children: children,
22781
- classes: classes,
22782
- IconComponent: IconComponent,
22783
- variant: fcs.variant,
22784
- type: undefined
22785
- }, inputProps, input ? input.props.inputProps : {}),
22786
- ref: ref
22787
- }, other));
22788
- });
22789
- process.env.NODE_ENV !== "production" ? NativeSelect.propTypes = {
22790
- // ----------------------------- Warning --------------------------------
22791
- // | These PropTypes are generated from the TypeScript type definitions |
22792
- // | To update them edit the d.ts file and run "yarn proptypes" |
22793
- // ----------------------------------------------------------------------
22794
-
22795
- /**
22796
- * The option elements to populate the select with.
22797
- * Can be some `<option>` elements.
22798
- */
22799
- children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
22800
-
22801
- /**
22802
- * Override or extend the styles applied to the component.
22803
- * See [CSS API](#css) below for more details.
22804
- */
22805
- classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
22806
-
22807
- /**
22808
- * The icon that displays the arrow.
22809
- */
22810
- IconComponent: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.elementType,
22811
-
22812
- /**
22813
- * An `Input` element; does not have to be a material-ui specific `Input`.
22814
- */
22815
- input: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element,
22816
-
22817
- /**
22818
- * Attributes applied to the `select` element.
22819
- */
22820
- inputProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
22821
-
22822
- /**
22823
- * Callback function fired when a menu item is selected.
22824
- *
22825
- * @param {object} event The event source of the callback.
22826
- * You can pull out the new value by accessing `event.target.value` (string).
22827
- */
22828
- onChange: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
22829
-
22830
- /**
22831
- * The input value. The DOM API casts this to a string.
22832
- */
22833
- value: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any,
22834
-
22835
- /**
22836
- * The variant to use.
22837
- */
22838
- variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['filled', 'outlined', 'standard'])
22839
- } : void 0;
22840
- NativeSelect.muiName = 'Select';
22841
- /* unused harmony default export */ var _unused_webpack_default_export = (Object(__WEBPACK_IMPORTED_MODULE_5__styles_withStyles__["a" /* default */])(styles, {
22842
- name: 'MuiNativeSelect'
22843
- })(NativeSelect));
22844
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22845
-
22846
- /***/ }),
22847
- /* 340 */
22848
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22849
-
22850
- "use strict";
22851
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
22852
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
22853
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
22854
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
22855
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
22856
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
22857
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_clsx__ = __webpack_require__(5);
22858
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__ = __webpack_require__(8);
22859
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_capitalize__ = __webpack_require__(11);
22860
-
22861
-
22862
-
22863
-
22864
-
22865
-
22866
-
22867
- /**
22868
- * @ignore - internal component.
22869
- */
22870
-
22871
- var NativeSelectInput = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function NativeSelectInput(props, ref) {
22872
- var classes = props.classes,
22873
- className = props.className,
22874
- disabled = props.disabled,
22875
- IconComponent = props.IconComponent,
22876
- inputRef = props.inputRef,
22877
- _props$variant = props.variant,
22878
- variant = _props$variant === void 0 ? 'standard' : _props$variant,
22879
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["classes", "className", "disabled", "IconComponent", "inputRef", "variant"]);
22880
-
22881
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_2_react__["Fragment"], null, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("select", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
22882
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, // TODO v5: merge root and select
22883
- classes.select, classes[variant], className, disabled && classes.disabled),
22884
- disabled: disabled,
22885
- ref: inputRef || ref
22886
- }, other)), props.multiple ? null : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](IconComponent, {
22887
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.icon, classes["icon".concat(Object(__WEBPACK_IMPORTED_MODULE_6__utils_capitalize__["a" /* default */])(variant))], disabled && classes.disabled)
22888
- }));
22889
- });
22890
- process.env.NODE_ENV !== "production" ? NativeSelectInput.propTypes = {
22891
- /**
22892
- * The option elements to populate the select with.
22893
- * Can be some `<option>` elements.
22894
- */
22895
- children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
22896
-
22897
- /**
22898
- * Override or extend the styles applied to the component.
22899
- * See [CSS API](#css) below for more details.
22900
- */
22901
- classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired,
22902
-
22903
- /**
22904
- * The CSS class name of the select element.
22905
- */
22906
- className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
22907
-
22908
- /**
22909
- * If `true`, the select will be disabled.
22910
- */
22911
- disabled: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
22912
-
22913
- /**
22914
- * The icon that displays the arrow.
22915
- */
22916
- IconComponent: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.elementType.isRequired,
22917
-
22918
- /**
22919
- * Use that prop to pass a ref to the native select element.
22920
- * @deprecated
22921
- */
22922
- inputRef: __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["j" /* refType */],
22923
-
22924
- /**
22925
- * @ignore
22926
- */
22927
- multiple: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
22928
-
22929
- /**
22930
- * Name attribute of the `select` or hidden `input` element.
22931
- */
22932
- name: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
22933
-
22934
- /**
22935
- * Callback function fired when a menu item is selected.
22936
- *
22937
- * @param {object} event The event source of the callback.
22938
- * You can pull out the new value by accessing `event.target.value` (string).
22939
- */
22940
- onChange: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
22941
-
22942
- /**
22943
- * The input value.
22944
- */
22945
- value: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any,
22946
-
22947
- /**
22948
- * The variant to use.
22949
- */
22950
- variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['standard', 'outlined', 'filled'])
22951
- } : void 0;
22952
- /* harmony default export */ __webpack_exports__["a"] = (NativeSelectInput);
22953
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22954
-
22955
- /***/ }),
22956
- /* 341 */
22957
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22958
-
22959
- "use strict";
22960
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
22961
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
22962
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__ = __webpack_require__(24);
22963
-
22964
-
22965
- /**
22966
- * @ignore - internal component.
22967
- */
22968
-
22969
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__["a" /* default */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
22970
- d: "M7 10l5 5 5-5z"
22971
- }), 'ArrowDropDown'));
22972
-
22973
- /***/ }),
22974
- /* 342 */
22975
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22976
-
22977
- "use strict";
22978
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Radio__ = __webpack_require__(715);
22979
- /* unused harmony reexport default */
22980
-
22981
-
22982
- /***/ }),
22983
- /* 343 */
22984
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22985
-
22986
- "use strict";
22987
- /* harmony export (immutable) */ __webpack_exports__["a"] = useRadioGroup;
22988
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
22989
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
22990
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__RadioGroupContext__ = __webpack_require__(344);
22991
-
22992
-
22993
- function useRadioGroup() {
22994
- return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](__WEBPACK_IMPORTED_MODULE_1__RadioGroupContext__["a" /* default */]);
22995
- }
22996
-
22997
- /***/ }),
22998
- /* 344 */
22999
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23000
-
23001
- "use strict";
23002
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
23003
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
23004
-
23005
- /**
23006
- * @ignore - internal component.
23007
- */
23008
-
23009
- var RadioGroupContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
23010
-
23011
- if (process.env.NODE_ENV !== 'production') {
23012
- RadioGroupContext.displayName = 'RadioGroupContext';
23013
- }
23014
-
23015
- /* harmony default export */ __webpack_exports__["a"] = (RadioGroupContext);
23016
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
23017
-
23018
- /***/ }),
23019
- /* 345 */
23020
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23021
-
23022
- "use strict";
23023
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__RadioGroup__ = __webpack_require__(719);
23024
- /* unused harmony reexport default */
23025
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__useRadioGroup__ = __webpack_require__(343);
23026
- /* unused harmony reexport useRadioGroup */
23027
-
23028
-
23029
-
23030
- /***/ }),
23031
- /* 346 */
23032
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23033
-
23034
- "use strict";
23035
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__RootRef__ = __webpack_require__(720);
23036
- /* unused harmony reexport default */
23037
-
23038
-
23039
- /***/ }),
23040
- /* 347 */
23041
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23042
-
23043
- "use strict";
23044
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Slider__ = __webpack_require__(723);
23045
- /* unused harmony reexport default */
23046
-
23047
-
23048
- /***/ }),
23049
- /* 348 */
23050
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23051
-
23052
- "use strict";
23053
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Snackbar__ = __webpack_require__(725);
23054
- /* unused harmony reexport default */
23055
-
23056
-
23057
- /***/ }),
23058
- /* 349 */
23059
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23060
-
23061
- "use strict";
23062
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Step__ = __webpack_require__(727);
23063
- /* unused harmony reexport default */
23064
-
23065
-
23066
- /***/ }),
23067
- /* 350 */
23068
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23069
-
23070
- "use strict";
23071
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepButton__ = __webpack_require__(728);
23072
- /* unused harmony reexport default */
23073
-
23074
-
23075
- /***/ }),
23076
- /* 351 */
23077
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23078
-
23079
- "use strict";
23080
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepContent__ = __webpack_require__(734);
23081
- /* unused harmony reexport default */
23082
-
23083
-
23084
- /***/ }),
23085
- /* 352 */
23086
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23087
-
23088
- "use strict";
23089
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Stepper__ = __webpack_require__(735);
23090
- /* unused harmony reexport default */
23091
-
23092
-
23093
- /***/ }),
23094
- /* 353 */
23095
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23096
-
23097
- "use strict";
23098
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SwipeableDrawer__ = __webpack_require__(736);
23099
- /* unused harmony reexport default */
23100
-
23101
-
23102
- /***/ }),
23103
- /* 354 */
23104
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23105
-
23106
- "use strict";
23107
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Switch__ = __webpack_require__(738);
23108
- /* unused harmony reexport default */
23109
-
23110
-
23111
- /***/ }),
23112
- /* 355 */
23113
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23114
-
23115
- "use strict";
23116
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tab__ = __webpack_require__(739);
23117
- /* unused harmony reexport default */
23118
-
23119
-
23120
- /***/ }),
23121
- /* 356 */
23122
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23123
-
23124
- "use strict";
23125
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Table__ = __webpack_require__(740);
23126
- /* unused harmony reexport default */
23127
-
23128
-
23129
- /***/ }),
23130
- /* 357 */
23131
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23132
-
23133
- "use strict";
23134
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
23135
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
23136
-
23137
- /**
23138
- * @ignore - internal component.
23139
- */
23140
-
23141
- var TableContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
23142
-
23143
- if (process.env.NODE_ENV !== 'production') {
23144
- TableContext.displayName = 'TableContext';
23145
- }
23146
-
23147
- /* harmony default export */ __webpack_exports__["a"] = (TableContext);
23148
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
23149
-
23150
- /***/ }),
23151
- /* 358 */
23152
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23153
-
23154
- "use strict";
23155
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableBody__ = __webpack_require__(741);
23156
- /* unused harmony reexport default */
23157
-
23158
-
23159
- /***/ }),
23160
- /* 359 */
23161
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23162
-
23163
- "use strict";
23164
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableContainer__ = __webpack_require__(743);
23165
- /* unused harmony reexport default */
23166
-
23167
-
23168
- /***/ }),
23169
- /* 360 */
23170
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23171
-
23172
- "use strict";
23173
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableFooter__ = __webpack_require__(744);
23174
- /* unused harmony reexport default */
23175
-
23176
-
23177
- /***/ }),
23178
- /* 361 */
23179
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23180
-
23181
- "use strict";
23182
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableHead__ = __webpack_require__(745);
23183
- /* unused harmony reexport default */
23184
-
23185
-
23186
- /***/ }),
23187
- /* 362 */
23188
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23189
-
23190
- "use strict";
23191
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TablePagination__ = __webpack_require__(746);
23192
- /* unused harmony reexport default */
23193
-
23194
-
23195
- /***/ }),
23196
- /* 363 */
23197
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23198
-
23199
- "use strict";
23200
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
23201
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
23202
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__ = __webpack_require__(24);
23203
-
23204
-
23205
- /**
23206
- * @ignore - internal component.
23207
- */
23208
-
23209
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__["a" /* default */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
23210
- d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
23211
- }), 'KeyboardArrowLeft'));
23212
-
23213
- /***/ }),
23214
- /* 364 */
23215
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23216
-
23217
- "use strict";
23218
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
23219
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
23220
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__ = __webpack_require__(24);
23221
-
23222
-
23223
- /**
23224
- * @ignore - internal component.
23225
- */
23226
-
23227
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__["a" /* default */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
23228
- d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
23229
- }), 'KeyboardArrowRight'));
23230
-
23231
- /***/ }),
23232
- /* 365 */
23233
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23234
-
23235
- "use strict";
23236
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableRow__ = __webpack_require__(749);
23237
- /* unused harmony reexport default */
23238
-
23239
-
23240
- /***/ }),
23241
- /* 366 */
23242
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23243
-
23244
- "use strict";
23245
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableSortLabel__ = __webpack_require__(750);
23246
- /* unused harmony reexport default */
23247
-
23248
-
23249
- /***/ }),
23250
- /* 367 */
23251
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23252
-
23253
- "use strict";
23254
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TextField__ = __webpack_require__(758);
23255
- /* unused harmony reexport default */
23256
-
23257
-
23258
- /***/ }),
23259
- /* 368 */
23260
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23261
-
23262
- "use strict";
23263
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useScrollTrigger__ = __webpack_require__(760);
23264
- /* unused harmony reexport default */
23265
-
23266
-
23267
- /***/ }),
23268
- /* 369 */
23269
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23270
-
23271
- "use strict";
23272
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withMobileDialog__ = __webpack_require__(761);
23273
- /* unused harmony reexport default */
23274
-
23275
-
23276
- /***/ }),
23277
- /* 370 */
23278
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23279
-
23280
- "use strict";
23281
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Autocomplete__ = __webpack_require__(763);
23282
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__Autocomplete__["b"]; });
23283
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Autocomplete__["a"]; });
23284
-
23285
-
23286
- /***/ }),
23287
- /* 371 */
23288
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23289
-
23290
- "use strict";
23291
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useAutocomplete__ = __webpack_require__(765);
23292
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__useAutocomplete__["b"]; });
23293
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useAutocomplete__["a"]; });
23294
-
23295
-
23296
- /***/ }),
23297
- /* 372 */
23298
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23299
-
23300
- "use strict";
23301
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AvatarGroup__ = __webpack_require__(766);
23302
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__AvatarGroup__["a"]; });
23303
-
23304
-
23305
- /***/ }),
23306
- /* 373 */
23307
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23308
-
23309
- "use strict";
23310
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Pagination__ = __webpack_require__(767);
23311
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Pagination__["a"]; });
23312
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__usePagination__ = __webpack_require__(374);
23313
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__usePagination__["a"]; });
23314
-
23315
-
23316
-
23317
- /***/ }),
23318
- /* 374 */
23319
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23320
-
23321
- "use strict";
23322
- /* harmony export (immutable) */ __webpack_exports__["a"] = usePagination;
23323
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
23324
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(30);
23325
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(23);
23326
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
23327
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ui_core_utils__ = __webpack_require__(13);
23328
-
23329
-
23330
-
23331
-
23332
-
23333
- function usePagination() {
23334
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
23335
-
23336
- // keep default values in sync with @default tags in Pagination.propTypes
23337
- var _props$boundaryCount = props.boundaryCount,
23338
- boundaryCount = _props$boundaryCount === void 0 ? 1 : _props$boundaryCount,
23339
- _props$componentName = props.componentName,
23340
- componentName = _props$componentName === void 0 ? 'usePagination' : _props$componentName,
23341
- _props$count = props.count,
23342
- count = _props$count === void 0 ? 1 : _props$count,
23343
- _props$defaultPage = props.defaultPage,
23344
- defaultPage = _props$defaultPage === void 0 ? 1 : _props$defaultPage,
23345
- _props$disabled = props.disabled,
23346
- disabled = _props$disabled === void 0 ? false : _props$disabled,
23347
- _props$hideNextButton = props.hideNextButton,
23348
- hideNextButton = _props$hideNextButton === void 0 ? false : _props$hideNextButton,
23349
- _props$hidePrevButton = props.hidePrevButton,
23350
- hidePrevButton = _props$hidePrevButton === void 0 ? false : _props$hidePrevButton,
23351
- handleChange = props.onChange,
23352
- pageProp = props.page,
23353
- _props$showFirstButto = props.showFirstButton,
23354
- showFirstButton = _props$showFirstButto === void 0 ? false : _props$showFirstButto,
23355
- _props$showLastButton = props.showLastButton,
23356
- showLastButton = _props$showLastButton === void 0 ? false : _props$showLastButton,
23357
- _props$siblingCount = props.siblingCount,
23358
- siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,
23359
- other = Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"]);
23360
-
23361
- var _useControlled = Object(__WEBPACK_IMPORTED_MODULE_4__material_ui_core_utils__["f" /* useControlled */])({
23362
- controlled: pageProp,
23363
- default: defaultPage,
23364
- name: componentName,
23365
- state: 'page'
23366
- }),
23367
- _useControlled2 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_useControlled, 2),
23368
- page = _useControlled2[0],
23369
- setPageState = _useControlled2[1];
23370
-
23371
- var handleClick = function handleClick(event, value) {
23372
- if (!pageProp) {
23373
- setPageState(value);
23374
- }
23375
-
23376
- if (handleChange) {
23377
- handleChange(event, value);
23378
- }
23379
- }; // https://dev.to/namirsab/comment/2050
23380
-
23381
-
23382
- var range = function range(start, end) {
23383
- var length = end - start + 1;
23384
- return Array.from({
23385
- length: length
23386
- }, function (_, i) {
23387
- return start + i;
23388
- });
23389
- };
23390
-
23391
- var startPages = range(1, Math.min(boundaryCount, count));
23392
- var endPages = range(Math.max(count - boundaryCount + 1, boundaryCount + 1), count);
23393
- var siblingsStart = Math.max(Math.min( // Natural start
23394
- page - siblingCount, // Lower boundary when page is high
23395
- count - boundaryCount - siblingCount * 2 - 1), // Greater than startPages
23396
- boundaryCount + 2);
23397
- var siblingsEnd = Math.min(Math.max( // Natural end
23398
- page + siblingCount, // Upper boundary when page is low
23399
- boundaryCount + siblingCount * 2 + 2), // Less than endPages
23400
- endPages[0] - 2); // Basic list of items to render
23401
- // e.g. itemList = ['first', 'previous', 1, 'ellipsis', 4, 5, 6, 'ellipsis', 10, 'next', 'last']
23402
-
23403
- var itemList = [].concat(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(showFirstButton ? ['first'] : []), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(hidePrevButton ? [] : ['previous']), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(startPages), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(siblingsStart > boundaryCount + 2 ? ['start-ellipsis'] : boundaryCount + 1 < count - boundaryCount ? [boundaryCount + 1] : []), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(range(siblingsStart, siblingsEnd)), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(siblingsEnd < count - boundaryCount - 1 ? ['end-ellipsis'] : count - boundaryCount > boundaryCount ? [count - boundaryCount] : []), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(endPages), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(hideNextButton ? [] : ['next']), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(showLastButton ? ['last'] : [])); // Map the button type to its page number
23404
-
23405
- var buttonPage = function buttonPage(type) {
23406
- switch (type) {
23407
- case 'first':
23408
- return 1;
23409
-
23410
- case 'previous':
23411
- return page - 1;
23412
-
23413
- case 'next':
23414
- return page + 1;
23415
-
23416
- case 'last':
23417
- return count;
23418
-
23419
- default:
23420
- return null;
23421
- }
23422
- }; // Convert the basic item list to PaginationItem props objects
23423
-
23424
-
23425
- var items = itemList.map(function (item) {
23426
- return typeof item === 'number' ? {
23427
- onClick: function onClick(event) {
23428
- handleClick(event, item);
23429
- },
23430
- type: 'page',
23431
- page: item,
23432
- selected: item === page,
23433
- disabled: disabled,
23434
- 'aria-current': item === page ? 'true' : undefined
23435
- } : {
23436
- onClick: function onClick(event) {
23437
- handleClick(event, buttonPage(item));
23438
- },
23439
- type: item,
23440
- page: buttonPage(item),
23441
- selected: false,
23442
- disabled: disabled || item.indexOf('ellipsis') === -1 && (item === 'next' || item === 'last' ? page >= count : page <= 1)
23443
- };
23444
- });
23445
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
23446
- items: items
23447
- }, other);
23448
- }
23449
-
23450
- /***/ }),
23451
- /* 375 */
23452
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23453
-
23454
- "use strict";
23455
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Rating__ = __webpack_require__(773);
23456
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Rating__["a"]; });
23457
-
23458
-
23459
- /***/ }),
23460
- /* 376 */
23461
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23462
-
23463
- "use strict";
23464
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Skeleton__ = __webpack_require__(775);
23465
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Skeleton__["a"]; });
23466
-
23467
-
23468
- /***/ }),
23469
- /* 377 */
23470
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23471
-
23472
- "use strict";
23473
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SpeedDial__ = __webpack_require__(776);
23474
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SpeedDial__["a"]; });
23475
-
23476
-
23477
- /***/ }),
23478
- /* 378 */
23479
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23480
-
23481
- "use strict";
23482
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SpeedDialAction__ = __webpack_require__(777);
23483
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SpeedDialAction__["a"]; });
23484
-
23485
-
23486
- /***/ }),
23487
- /* 379 */
23488
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23489
-
23490
- "use strict";
23491
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SpeedDialIcon__ = __webpack_require__(778);
23492
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SpeedDialIcon__["a"]; });
23493
-
23494
-
23495
- /***/ }),
23496
- /* 380 */
23497
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23498
-
23499
- "use strict";
23500
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = TabContext;
23501
- /* harmony export (immutable) */ __webpack_exports__["d"] = useTabContext;
23502
- /* harmony export (immutable) */ __webpack_exports__["b"] = getPanelId;
23503
- /* harmony export (immutable) */ __webpack_exports__["c"] = getTabId;
23504
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
23505
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
23506
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2);
23507
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
23508
-
23509
-
23510
- /**
23511
- * @type {React.Context<{ idPrefix: string; value: string } | null>}
23512
- */
23513
-
23514
- var Context = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"](null);
23515
-
23516
- if (process.env.NODE_ENV !== 'production') {
23517
- Context.displayName = 'TabContext';
23518
- }
23519
-
23520
- function useUniquePrefix() {
23521
- var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](null),
23522
- id = _React$useState[0],
23523
- setId = _React$useState[1];
23524
-
23525
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
23526
- setId("mui-p-".concat(Math.round(Math.random() * 1e5)));
23527
- }, []);
23528
- return id;
23529
- }
23530
-
23531
- function TabContext(props) {
23532
- var children = props.children,
23533
- value = props.value;
23534
- var idPrefix = useUniquePrefix();
23535
- var context = __WEBPACK_IMPORTED_MODULE_0_react__["useMemo"](function () {
23536
- return {
23537
- idPrefix: idPrefix,
23538
- value: value
23539
- };
23540
- }, [idPrefix, value]);
23541
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"](Context.Provider, {
23542
- value: context
23543
- }, children);
23544
- }
23545
- process.env.NODE_ENV !== "production" ? TabContext.propTypes = {
23546
- // ----------------------------- Warning --------------------------------
23547
- // | These PropTypes are generated from the TypeScript type definitions |
23548
- // | To update them edit the d.ts file and run "yarn proptypes" |
23549
- // ----------------------------------------------------------------------
23550
-
23551
- /**
23552
- * The content of the component.
23553
- */
23554
- children: __WEBPACK_IMPORTED_MODULE_1_prop_types__["node"],
23555
-
23556
- /**
23557
- * The value of the currently selected `Tab`.
23558
- */
23559
- value: __WEBPACK_IMPORTED_MODULE_1_prop_types__["string"].isRequired
23560
- } : void 0;
23561
- /**
23562
- * @returns {unknown}
23563
- */
23564
-
23565
- function useTabContext() {
23566
- return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](Context);
23567
- }
23568
- function getPanelId(context, value) {
23569
- var idPrefix = context.idPrefix;
23570
-
23571
- if (idPrefix === null) {
23572
- return null;
23573
- }
23574
-
23575
- return "".concat(context.idPrefix, "-P-").concat(value);
23576
- }
23577
- function getTabId(context, value) {
23578
- var idPrefix = context.idPrefix;
23579
-
23580
- if (idPrefix === null) {
23581
- return null;
23582
- }
23583
-
23584
- return "".concat(context.idPrefix, "-T-").concat(value);
23585
- }
23586
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
23587
-
23588
- /***/ }),
23589
- /* 381 */
23590
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23591
-
23592
- "use strict";
23593
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabList__ = __webpack_require__(780);
23594
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabList__["a"]; });
23595
-
23596
-
23597
- /***/ }),
23598
- /* 382 */
23599
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23600
-
23601
- "use strict";
23602
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabPanel__ = __webpack_require__(781);
23603
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabPanel__["a"]; });
23604
-
23605
-
23606
- /***/ }),
23607
- /* 383 */
23608
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23609
-
23610
- "use strict";
23611
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Timeline__ = __webpack_require__(782);
23612
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Timeline__["a"]; });
23613
-
23614
-
23615
- /***/ }),
23616
- /* 384 */
23617
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23618
-
23619
- "use strict";
23620
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineConnector__ = __webpack_require__(783);
23621
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineConnector__["a"]; });
23622
-
23623
-
23624
- /***/ }),
23625
- /* 385 */
23626
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23627
-
23628
- "use strict";
23629
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineContent__ = __webpack_require__(784);
23630
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineContent__["a"]; });
23631
-
23632
-
23633
- /***/ }),
23634
- /* 386 */
23635
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23636
-
23637
- "use strict";
23638
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineDot__ = __webpack_require__(785);
23639
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineDot__["a"]; });
23640
-
23641
-
23642
- /***/ }),
23643
- /* 387 */
23644
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23645
-
23646
- "use strict";
23647
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineItem__ = __webpack_require__(786);
23648
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineItem__["a"]; });
23649
-
23650
-
23651
- /***/ }),
23652
- /* 388 */
23653
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23654
-
23655
- "use strict";
23656
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineOppositeContent__ = __webpack_require__(787);
23657
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineOppositeContent__["a"]; });
23658
-
23659
-
23660
- /***/ }),
23661
- /* 389 */
23662
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23663
-
23664
- "use strict";
23665
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineSeparator__ = __webpack_require__(788);
23666
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineSeparator__["a"]; });
23667
-
23668
-
23669
- /***/ }),
23670
- /* 390 */
23671
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23672
-
23673
- "use strict";
23674
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ToggleButton__ = __webpack_require__(789);
23675
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ToggleButton__["a"]; });
23676
-
23677
-
23678
- /***/ }),
23679
- /* 391 */
23680
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23681
-
23682
- "use strict";
23683
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ToggleButtonGroup__ = __webpack_require__(790);
23684
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ToggleButtonGroup__["a"]; });
23685
-
23686
-
23687
- /***/ }),
23688
- /* 392 */
23689
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23690
-
23691
- "use strict";
23692
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TreeItem__ = __webpack_require__(792);
23693
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TreeItem__["a"]; });
23694
-
23695
-
23696
- /***/ }),
23697
- /* 393 */
23698
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23699
-
23700
- "use strict";
23701
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
23702
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
23703
-
23704
- /**
23705
- * @ignore - internal component.
23706
- */
23707
-
23708
- var TreeViewContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
23709
-
23710
- if (process.env.NODE_ENV !== 'production') {
23711
- TreeViewContext.displayName = 'TreeViewContext';
23712
- }
23713
-
23714
- /* harmony default export */ __webpack_exports__["a"] = (TreeViewContext);
23715
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
23716
-
23717
- /***/ }),
23718
- /* 394 */
23719
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23720
-
23721
- "use strict";
23722
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TreeView__ = __webpack_require__(793);
23723
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TreeView__["a"]; });
23724
-
23725
-
23726
- /***/ }),
23727
- /* 395 */
23728
- /***/ (function(module, exports, __webpack_require__) {
23729
-
23730
- /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
23731
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
23732
-
23733
- module.exports = freeGlobal;
23734
-
23735
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)))
23736
-
23737
- /***/ }),
23738
- /* 396 */
23739
- /***/ (function(module, exports, __webpack_require__) {
23740
-
23741
- var baseFor = __webpack_require__(804),
23742
- keys = __webpack_require__(88);
23743
-
23744
- /**
23745
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
23746
- *
23747
- * @private
23748
- * @param {Object} object The object to iterate over.
23749
- * @param {Function} iteratee The function invoked per iteration.
23750
- * @returns {Object} Returns `object`.
23751
- */
23752
- function baseForOwn(object, iteratee) {
23753
- return object && baseFor(object, iteratee, keys);
23754
- }
23755
-
23756
- module.exports = baseForOwn;
23757
-
23758
-
23759
- /***/ }),
23760
- /* 397 */
23761
- /***/ (function(module, exports, __webpack_require__) {
23762
-
23763
- var baseTimes = __webpack_require__(806),
23764
- isArguments = __webpack_require__(398),
23765
- isArray = __webpack_require__(32),
23766
- isBuffer = __webpack_require__(189),
23767
- isIndex = __webpack_require__(399),
23768
- isTypedArray = __webpack_require__(400);
23769
-
23770
- /** Used for built-in method references. */
23771
- var objectProto = Object.prototype;
23772
-
23773
- /** Used to check objects for own properties. */
23774
- var hasOwnProperty = objectProto.hasOwnProperty;
23775
-
23776
- /**
23777
- * Creates an array of the enumerable property names of the array-like `value`.
23778
- *
23779
- * @private
23780
- * @param {*} value The value to query.
23781
- * @param {boolean} inherited Specify returning inherited property names.
23782
- * @returns {Array} Returns the array of property names.
23783
- */
23784
- function arrayLikeKeys(value, inherited) {
23785
- var isArr = isArray(value),
23786
- isArg = !isArr && isArguments(value),
23787
- isBuff = !isArr && !isArg && isBuffer(value),
23788
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
23789
- skipIndexes = isArr || isArg || isBuff || isType,
23790
- result = skipIndexes ? baseTimes(value.length, String) : [],
23791
- length = result.length;
23792
-
23793
- for (var key in value) {
23794
- if ((inherited || hasOwnProperty.call(value, key)) &&
23795
- !(skipIndexes && (
23796
- // Safari 9 has enumerable `arguments.length` in strict mode.
23797
- key == 'length' ||
23798
- // Node.js 0.10 has enumerable non-index properties on buffers.
23799
- (isBuff && (key == 'offset' || key == 'parent')) ||
23800
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
23801
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
23802
- // Skip index properties.
23803
- isIndex(key, length)
23804
- ))) {
23805
- result.push(key);
23806
- }
23807
- }
23808
- return result;
23809
- }
23810
-
23811
- module.exports = arrayLikeKeys;
23812
-
23813
-
23814
- /***/ }),
23815
- /* 398 */
23816
- /***/ (function(module, exports, __webpack_require__) {
23817
-
23818
- var baseIsArguments = __webpack_require__(807),
23819
- isObjectLike = __webpack_require__(45);
23820
-
23821
- /** Used for built-in method references. */
23822
- var objectProto = Object.prototype;
23823
-
23824
- /** Used to check objects for own properties. */
23825
- var hasOwnProperty = objectProto.hasOwnProperty;
23826
-
23827
- /** Built-in value references. */
23828
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
23829
-
23830
- /**
23831
- * Checks if `value` is likely an `arguments` object.
23832
- *
23833
- * @static
23834
- * @memberOf _
23835
- * @since 0.1.0
23836
- * @category Lang
23837
- * @param {*} value The value to check.
23838
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
23839
- * else `false`.
23840
- * @example
23841
- *
23842
- * _.isArguments(function() { return arguments; }());
23843
- * // => true
23844
- *
23845
- * _.isArguments([1, 2, 3]);
23846
- * // => false
23847
- */
23848
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
23849
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
23850
- !propertyIsEnumerable.call(value, 'callee');
23851
- };
23852
-
23853
- module.exports = isArguments;
23854
-
23855
-
23856
- /***/ }),
23857
- /* 399 */
23858
- /***/ (function(module, exports) {
23859
-
23860
- /** Used as references for various `Number` constants. */
23861
- var MAX_SAFE_INTEGER = 9007199254740991;
23862
-
23863
- /** Used to detect unsigned integer values. */
23864
- var reIsUint = /^(?:0|[1-9]\d*)$/;
23865
-
23866
- /**
23867
- * Checks if `value` is a valid array-like index.
23868
- *
23869
- * @private
23870
- * @param {*} value The value to check.
23871
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
23872
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
23873
- */
23874
- function isIndex(value, length) {
23875
- var type = typeof value;
23876
- length = length == null ? MAX_SAFE_INTEGER : length;
23877
-
23878
- return !!length &&
23879
- (type == 'number' ||
23880
- (type != 'symbol' && reIsUint.test(value))) &&
23881
- (value > -1 && value % 1 == 0 && value < length);
23882
- }
23883
-
23884
- module.exports = isIndex;
23885
-
23886
-
23887
- /***/ }),
23888
- /* 400 */
23889
- /***/ (function(module, exports, __webpack_require__) {
23890
-
23891
- var baseIsTypedArray = __webpack_require__(809),
23892
- baseUnary = __webpack_require__(192),
23893
- nodeUtil = __webpack_require__(193);
23894
-
23895
- /* Node.js helper references. */
23896
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
23897
-
23898
- /**
23899
- * Checks if `value` is classified as a typed array.
23900
- *
23901
- * @static
23902
- * @memberOf _
23903
- * @since 3.0.0
23904
- * @category Lang
23905
- * @param {*} value The value to check.
23906
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
23907
- * @example
23908
- *
23909
- * _.isTypedArray(new Uint8Array);
23910
- * // => true
23911
- *
23912
- * _.isTypedArray([]);
23913
- * // => false
23914
- */
23915
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
23916
-
23917
- module.exports = isTypedArray;
23918
-
23919
-
23920
- /***/ }),
23921
- /* 401 */
23922
- /***/ (function(module, exports) {
23923
-
23924
- /**
23925
- * Creates a unary function that invokes `func` with its argument transformed.
23926
- *
23927
- * @private
23928
- * @param {Function} func The function to wrap.
23929
- * @param {Function} transform The argument transform.
23930
- * @returns {Function} Returns the new function.
23931
- */
23932
- function overArg(func, transform) {
23933
- return function(arg) {
23934
- return func(transform(arg));
23935
- };
23936
- }
23937
-
23938
- module.exports = overArg;
23939
-
23940
-
23941
- /***/ }),
23942
- /* 402 */
23943
- /***/ (function(module, exports, __webpack_require__) {
23944
-
23945
- var baseGetTag = __webpack_require__(58),
23946
- isObject = __webpack_require__(71);
23947
-
23948
- /** `Object#toString` result references. */
23949
- var asyncTag = '[object AsyncFunction]',
23950
- funcTag = '[object Function]',
23951
- genTag = '[object GeneratorFunction]',
23952
- proxyTag = '[object Proxy]';
23953
-
23954
- /**
23955
- * Checks if `value` is classified as a `Function` object.
23956
- *
23957
- * @static
23958
- * @memberOf _
23959
- * @since 0.1.0
23960
- * @category Lang
23961
- * @param {*} value The value to check.
23962
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
23963
- * @example
23964
- *
23965
- * _.isFunction(_);
23966
- * // => true
23967
- *
23968
- * _.isFunction(/abc/);
23969
- * // => false
23970
- */
23971
- function isFunction(value) {
23972
- if (!isObject(value)) {
23973
- return false;
23974
- }
23975
- // The use of `Object#toString` avoids issues with the `typeof` operator
23976
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
23977
- var tag = baseGetTag(value);
23978
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
23979
- }
23980
-
23981
- module.exports = isFunction;
23982
-
23983
-
23984
- /***/ }),
23985
- /* 403 */
23986
- /***/ (function(module, exports) {
23987
-
23988
- /**
23989
- * This method returns the first argument it receives.
23990
- *
23991
- * @static
23992
- * @since 0.1.0
23993
- * @memberOf _
23994
- * @category Util
23995
- * @param {*} value Any value.
23996
- * @returns {*} Returns `value`.
23997
- * @example
23998
- *
23999
- * var object = { 'a': 1 };
24000
- *
24001
- * console.log(_.identity(object) === object);
24002
- * // => true
24003
- */
24004
- function identity(value) {
24005
- return value;
24006
- }
24007
-
24008
- module.exports = identity;
24009
-
24010
-
24011
- /***/ }),
24012
- /* 404 */
24013
- /***/ (function(module, exports) {
24014
-
24015
- /**
24016
- * A specialized version of `_.map` for arrays without support for iteratee
24017
- * shorthands.
24018
- *
24019
- * @private
24020
- * @param {Array} [array] The array to iterate over.
24021
- * @param {Function} iteratee The function invoked per iteration.
24022
- * @returns {Array} Returns the new mapped array.
24023
- */
24024
- function arrayMap(array, iteratee) {
24025
- var index = -1,
24026
- length = array == null ? 0 : array.length,
24027
- result = Array(length);
24028
-
24029
- while (++index < length) {
24030
- result[index] = iteratee(array[index], index, array);
24031
- }
24032
- return result;
24033
- }
24034
-
24035
- module.exports = arrayMap;
24036
-
24037
-
24038
- /***/ }),
24039
- /* 405 */
24040
- /***/ (function(module, exports) {
24041
-
24042
- /** Used for built-in method references. */
24043
- var funcProto = Function.prototype;
24044
-
24045
- /** Used to resolve the decompiled source of functions. */
24046
- var funcToString = funcProto.toString;
24047
-
24048
- /**
24049
- * Converts `func` to its source code.
24050
- *
24051
- * @private
24052
- * @param {Function} func The function to convert.
24053
- * @returns {string} Returns the source code.
24054
- */
24055
- function toSource(func) {
24056
- if (func != null) {
24057
- try {
24058
- return funcToString.call(func);
24059
- } catch (e) {}
24060
- try {
24061
- return (func + '');
24062
- } catch (e) {}
24063
- }
24064
- return '';
24065
- }
24066
-
24067
- module.exports = toSource;
24068
-
24069
-
24070
- /***/ }),
24071
- /* 406 */
24072
- /***/ (function(module, exports, __webpack_require__) {
24073
-
24074
- var baseIsEqualDeep = __webpack_require__(844),
24075
- isObjectLike = __webpack_require__(45);
24076
-
24077
- /**
24078
- * The base implementation of `_.isEqual` which supports partial comparisons
24079
- * and tracks traversed objects.
24080
- *
24081
- * @private
24082
- * @param {*} value The value to compare.
24083
- * @param {*} other The other value to compare.
24084
- * @param {boolean} bitmask The bitmask flags.
24085
- * 1 - Unordered comparison
24086
- * 2 - Partial comparison
24087
- * @param {Function} [customizer] The function to customize comparisons.
24088
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
24089
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
24090
- */
24091
- function baseIsEqual(value, other, bitmask, customizer, stack) {
24092
- if (value === other) {
24093
- return true;
24094
- }
24095
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
24096
- return value !== value && other !== other;
24097
- }
24098
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
24099
- }
24100
-
24101
- module.exports = baseIsEqual;
24102
-
24103
-
24104
- /***/ }),
24105
- /* 407 */
24106
- /***/ (function(module, exports, __webpack_require__) {
24107
-
24108
- var SetCache = __webpack_require__(845),
24109
- arraySome = __webpack_require__(848),
24110
- cacheHas = __webpack_require__(849);
24111
-
24112
- /** Used to compose bitmasks for value comparisons. */
24113
- var COMPARE_PARTIAL_FLAG = 1,
24114
- COMPARE_UNORDERED_FLAG = 2;
24115
-
24116
- /**
24117
- * A specialized version of `baseIsEqualDeep` for arrays with support for
24118
- * partial deep comparisons.
24119
- *
24120
- * @private
24121
- * @param {Array} array The array to compare.
24122
- * @param {Array} other The other array to compare.
24123
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
24124
- * @param {Function} customizer The function to customize comparisons.
24125
- * @param {Function} equalFunc The function to determine equivalents of values.
24126
- * @param {Object} stack Tracks traversed `array` and `other` objects.
24127
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
24128
- */
24129
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
24130
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
24131
- arrLength = array.length,
24132
- othLength = other.length;
24133
-
24134
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
24135
- return false;
24136
- }
24137
- // Check that cyclic values are equal.
24138
- var arrStacked = stack.get(array);
24139
- var othStacked = stack.get(other);
24140
- if (arrStacked && othStacked) {
24141
- return arrStacked == other && othStacked == array;
24142
- }
24143
- var index = -1,
24144
- result = true,
24145
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
24146
-
24147
- stack.set(array, other);
24148
- stack.set(other, array);
24149
-
24150
- // Ignore non-index properties.
24151
- while (++index < arrLength) {
24152
- var arrValue = array[index],
24153
- othValue = other[index];
24154
-
24155
- if (customizer) {
24156
- var compared = isPartial
24157
- ? customizer(othValue, arrValue, index, other, array, stack)
24158
- : customizer(arrValue, othValue, index, array, other, stack);
24159
- }
24160
- if (compared !== undefined) {
24161
- if (compared) {
24162
- continue;
24163
- }
24164
- result = false;
24165
- break;
24166
- }
24167
- // Recursively compare arrays (susceptible to call stack limits).
24168
- if (seen) {
24169
- if (!arraySome(other, function(othValue, othIndex) {
24170
- if (!cacheHas(seen, othIndex) &&
24171
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
24172
- return seen.push(othIndex);
24173
- }
24174
- })) {
24175
- result = false;
24176
- break;
24177
- }
24178
- } else if (!(
24179
- arrValue === othValue ||
24180
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
24181
- )) {
24182
- result = false;
24183
- break;
24184
- }
24185
- }
24186
- stack['delete'](array);
24187
- stack['delete'](other);
24188
- return result;
24189
- }
24190
-
24191
- module.exports = equalArrays;
24192
-
24193
-
24194
- /***/ }),
24195
- /* 408 */
24196
- /***/ (function(module, exports, __webpack_require__) {
24197
-
24198
- var root = __webpack_require__(42);
24199
-
24200
- /** Built-in value references. */
24201
- var Uint8Array = root.Uint8Array;
24202
-
24203
- module.exports = Uint8Array;
24204
-
24205
-
24206
- /***/ }),
24207
- /* 409 */
24208
- /***/ (function(module, exports, __webpack_require__) {
24209
-
24210
- var baseGetAllKeys = __webpack_require__(410),
24211
- getSymbols = __webpack_require__(200),
24212
- keys = __webpack_require__(88);
24213
-
24214
- /**
24215
- * Creates an array of own enumerable property names and symbols of `object`.
24216
- *
24217
- * @private
24218
- * @param {Object} object The object to query.
24219
- * @returns {Array} Returns the array of property names and symbols.
24220
- */
24221
- function getAllKeys(object) {
24222
- return baseGetAllKeys(object, keys, getSymbols);
24223
- }
24224
-
24225
- module.exports = getAllKeys;
24226
-
24227
-
24228
- /***/ }),
24229
- /* 410 */
24230
- /***/ (function(module, exports, __webpack_require__) {
24231
-
24232
- var arrayPush = __webpack_require__(411),
24233
- isArray = __webpack_require__(32);
24234
-
24235
- /**
24236
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
24237
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
24238
- * symbols of `object`.
24239
- *
24240
- * @private
24241
- * @param {Object} object The object to query.
24242
- * @param {Function} keysFunc The function to get the keys of `object`.
24243
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
24244
- * @returns {Array} Returns the array of property names and symbols.
24245
- */
24246
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
24247
- var result = keysFunc(object);
24248
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
24249
- }
24250
-
24251
- module.exports = baseGetAllKeys;
24252
-
24253
-
24254
- /***/ }),
24255
- /* 411 */
24256
- /***/ (function(module, exports) {
24257
-
24258
- /**
24259
- * Appends the elements of `values` to `array`.
24260
- *
24261
- * @private
24262
- * @param {Array} array The array to modify.
24263
- * @param {Array} values The values to append.
24264
- * @returns {Array} Returns `array`.
24265
- */
24266
- function arrayPush(array, values) {
24267
- var index = -1,
24268
- length = values.length,
24269
- offset = array.length;
24270
-
24271
- while (++index < length) {
24272
- array[offset + index] = values[index];
24273
- }
24274
- return array;
24275
- }
24276
-
24277
- module.exports = arrayPush;
24278
-
24279
-
24280
- /***/ }),
24281
- /* 412 */
24282
- /***/ (function(module, exports) {
24283
-
24284
- /**
24285
- * This method returns a new empty array.
24286
- *
24287
- * @static
24288
- * @memberOf _
24289
- * @since 4.13.0
24290
- * @category Util
24291
- * @returns {Array} Returns the new empty array.
24292
- * @example
24293
- *
24294
- * var arrays = _.times(2, _.stubArray);
24295
- *
24296
- * console.log(arrays);
24297
- * // => [[], []]
24298
- *
24299
- * console.log(arrays[0] === arrays[1]);
24300
- * // => false
24301
- */
24302
- function stubArray() {
24303
- return [];
24304
- }
24305
-
24306
- module.exports = stubArray;
24307
-
24308
-
24309
- /***/ }),
24310
- /* 413 */
24311
- /***/ (function(module, exports, __webpack_require__) {
24312
-
24313
- var isObject = __webpack_require__(71);
24314
-
24315
- /**
24316
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
24317
- *
24318
- * @private
24319
- * @param {*} value The value to check.
24320
- * @returns {boolean} Returns `true` if `value` if suitable for strict
24321
- * equality comparisons, else `false`.
24322
- */
24323
- function isStrictComparable(value) {
24324
- return value === value && !isObject(value);
24325
- }
24326
-
24327
- module.exports = isStrictComparable;
24328
-
24329
-
24330
- /***/ }),
24331
- /* 414 */
24332
- /***/ (function(module, exports) {
24333
-
24334
- /**
24335
- * A specialized version of `matchesProperty` for source values suitable
24336
- * for strict equality comparisons, i.e. `===`.
24337
- *
24338
- * @private
24339
- * @param {string} key The key of the property to get.
24340
- * @param {*} srcValue The value to match.
24341
- * @returns {Function} Returns the new spec function.
24342
- */
24343
- function matchesStrictComparable(key, srcValue) {
24344
- return function(object) {
24345
- if (object == null) {
24346
- return false;
24347
- }
24348
- return object[key] === srcValue &&
24349
- (srcValue !== undefined || (key in Object(object)));
24350
- };
24351
- }
24352
-
24353
- module.exports = matchesStrictComparable;
24354
-
24355
-
24356
- /***/ }),
24357
- /* 415 */
24358
- /***/ (function(module, exports, __webpack_require__) {
24359
-
24360
- var castPath = __webpack_require__(416),
24361
- toKey = __webpack_require__(125);
24362
-
24363
- /**
24364
- * The base implementation of `_.get` without support for default values.
24365
- *
24366
- * @private
24367
- * @param {Object} object The object to query.
24368
- * @param {Array|string} path The path of the property to get.
24369
- * @returns {*} Returns the resolved value.
24370
- */
24371
- function baseGet(object, path) {
24372
- path = castPath(path, object);
24373
-
24374
- var index = 0,
24375
- length = path.length;
24376
-
24377
- while (object != null && index < length) {
24378
- object = object[toKey(path[index++])];
24379
- }
24380
- return (index && index == length) ? object : undefined;
24381
- }
24382
-
24383
- module.exports = baseGet;
24384
-
24385
-
24386
- /***/ }),
24387
- /* 416 */
24388
- /***/ (function(module, exports, __webpack_require__) {
24389
-
24390
- var isArray = __webpack_require__(32),
24391
- isKey = __webpack_require__(201),
24392
- stringToPath = __webpack_require__(862),
24393
- toString = __webpack_require__(865);
24394
-
24395
- /**
24396
- * Casts `value` to a path array if it's not one.
24397
- *
24398
- * @private
24399
- * @param {*} value The value to inspect.
24400
- * @param {Object} [object] The object to query keys on.
24401
- * @returns {Array} Returns the cast property path array.
24402
- */
24403
- function castPath(value, object) {
24404
- if (isArray(value)) {
24405
- return value;
24406
- }
24407
- return isKey(value, object) ? [value] : stringToPath(toString(value));
24408
- }
24409
-
24410
- module.exports = castPath;
24411
-
24412
-
24413
- /***/ }),
24414
- /* 417 */
24415
- /***/ (function(module, exports, __webpack_require__) {
24416
-
24417
- var baseAssignValue = __webpack_require__(418),
24418
- eq = __webpack_require__(197);
24419
-
24420
- /** Used for built-in method references. */
24421
- var objectProto = Object.prototype;
24422
-
24423
- /** Used to check objects for own properties. */
24424
- var hasOwnProperty = objectProto.hasOwnProperty;
24425
-
24426
- /**
24427
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
24428
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
24429
- * for equality comparisons.
24430
- *
24431
- * @private
24432
- * @param {Object} object The object to modify.
24433
- * @param {string} key The key of the property to assign.
24434
- * @param {*} value The value to assign.
24435
- */
24436
- function assignValue(object, key, value) {
24437
- var objValue = object[key];
24438
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
24439
- (value === undefined && !(key in object))) {
24440
- baseAssignValue(object, key, value);
24441
- }
24442
- }
24443
-
24444
- module.exports = assignValue;
24445
-
24446
-
24447
- /***/ }),
24448
- /* 418 */
24449
- /***/ (function(module, exports, __webpack_require__) {
24450
-
24451
- var defineProperty = __webpack_require__(880);
24452
-
24453
- /**
24454
- * The base implementation of `assignValue` and `assignMergeValue` without
24455
- * value checks.
24456
- *
24457
- * @private
24458
- * @param {Object} object The object to modify.
24459
- * @param {string} key The key of the property to assign.
24460
- * @param {*} value The value to assign.
24461
- */
24462
- function baseAssignValue(object, key, value) {
24463
- if (key == '__proto__' && defineProperty) {
24464
- defineProperty(object, key, {
24465
- 'configurable': true,
24466
- 'enumerable': true,
24467
- 'value': value,
24468
- 'writable': true
24469
- });
24470
- } else {
24471
- object[key] = value;
24472
- }
24473
- }
24474
-
24475
- module.exports = baseAssignValue;
24476
-
24477
-
24478
- /***/ }),
24479
- /* 419 */
24480
- /***/ (function(module, exports, __webpack_require__) {
24481
-
24482
- var arrayPush = __webpack_require__(411),
24483
- getPrototype = __webpack_require__(195),
24484
- getSymbols = __webpack_require__(200),
24485
- stubArray = __webpack_require__(412);
24486
-
24487
- /* Built-in method references for those with the same name as other `lodash` methods. */
24488
- var nativeGetSymbols = Object.getOwnPropertySymbols;
24489
-
24490
- /**
24491
- * Creates an array of the own and inherited enumerable symbols of `object`.
24492
- *
24493
- * @private
24494
- * @param {Object} object The object to query.
24495
- * @returns {Array} Returns the array of symbols.
24496
- */
24497
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
24498
- var result = [];
24499
- while (object) {
24500
- arrayPush(result, getSymbols(object));
24501
- object = getPrototype(object);
24502
- }
24503
- return result;
24504
- };
24505
-
24506
- module.exports = getSymbolsIn;
24507
-
24508
-
24509
- /***/ }),
24510
- /* 420 */
24511
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24512
-
24513
- "use strict";
24514
- /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
24515
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
24516
-
24517
- /* harmony default export */ __webpack_exports__["a"] = (freeGlobal);
24518
-
24519
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(38)))
24520
-
24521
- /***/ }),
24522
- /* 421 */
24523
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24524
-
24525
- "use strict";
24526
- /** Used for built-in method references. */
24527
- var funcProto = Function.prototype;
24528
-
24529
- /** Used to resolve the decompiled source of functions. */
24530
- var funcToString = funcProto.toString;
24531
-
24532
- /**
24533
- * Converts `func` to its source code.
24534
- *
24535
- * @private
24536
- * @param {Function} func The function to convert.
24537
- * @returns {string} Returns the source code.
24538
- */
24539
- function toSource(func) {
24540
- if (func != null) {
24541
- try {
24542
- return funcToString.call(func);
24543
- } catch (e) {}
24544
- try {
24545
- return (func + '');
24546
- } catch (e) {}
24547
- }
24548
- return '';
24549
- }
24550
-
24551
- /* harmony default export */ __webpack_exports__["a"] = (toSource);
24552
-
24553
-
24554
- /***/ }),
24555
- /* 422 */
24556
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24557
-
24558
- "use strict";
24559
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseAssignValue_js__ = __webpack_require__(210);
24560
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__eq_js__ = __webpack_require__(89);
24561
-
24562
-
24563
-
24564
- /**
24565
- * This function is like `assignValue` except that it doesn't assign
24566
- * `undefined` values.
24567
- *
24568
- * @private
24569
- * @param {Object} object The object to modify.
24570
- * @param {string} key The key of the property to assign.
24571
- * @param {*} value The value to assign.
24572
- */
24573
- function assignMergeValue(object, key, value) {
24574
- if ((value !== undefined && !Object(__WEBPACK_IMPORTED_MODULE_1__eq_js__["a" /* default */])(object[key], value)) ||
24575
- (value === undefined && !(key in object))) {
24576
- Object(__WEBPACK_IMPORTED_MODULE_0__baseAssignValue_js__["a" /* default */])(object, key, value);
24577
- }
24578
- }
24579
-
24580
- /* harmony default export */ __webpack_exports__["a"] = (assignMergeValue);
24581
-
24582
-
24583
- /***/ }),
24584
- /* 423 */
24585
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24586
-
24587
- "use strict";
24588
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(60);
24589
-
24590
-
24591
- var defineProperty = (function() {
24592
- try {
24593
- var func = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(Object, 'defineProperty');
24594
- func({}, '', {});
24595
- return func;
24596
- } catch (e) {}
24597
- }());
24598
-
24599
- /* harmony default export */ __webpack_exports__["a"] = (defineProperty);
24600
-
24601
-
24602
- /***/ }),
24603
- /* 424 */
24604
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24605
-
24606
- "use strict";
24607
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createBaseFor_js__ = __webpack_require__(942);
24608
-
24609
-
24610
- /**
24611
- * The base implementation of `baseForOwn` which iterates over `object`
24612
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
24613
- * Iteratee functions may exit iteration early by explicitly returning `false`.
24614
- *
24615
- * @private
24616
- * @param {Object} object The object to iterate over.
24617
- * @param {Function} iteratee The function invoked per iteration.
24618
- * @param {Function} keysFunc The function to get the keys of `object`.
24619
- * @returns {Object} Returns `object`.
24620
- */
24621
- var baseFor = Object(__WEBPACK_IMPORTED_MODULE_0__createBaseFor_js__["a" /* default */])();
24622
-
24623
- /* harmony default export */ __webpack_exports__["a"] = (baseFor);
24624
-
24625
-
24626
- /***/ }),
24627
- /* 425 */
24628
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24629
-
24630
- "use strict";
24631
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(33);
24632
-
24633
-
24634
- /** Built-in value references. */
24635
- var Uint8Array = __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Uint8Array;
24636
-
24637
- /* harmony default export */ __webpack_exports__["a"] = (Uint8Array);
24638
-
24639
-
24640
- /***/ }),
24641
- /* 426 */
24642
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24643
-
24644
- "use strict";
24645
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__overArg_js__ = __webpack_require__(427);
24646
-
24647
-
24648
- /** Built-in value references. */
24649
- var getPrototype = Object(__WEBPACK_IMPORTED_MODULE_0__overArg_js__["a" /* default */])(Object.getPrototypeOf, Object);
24650
-
24651
- /* harmony default export */ __webpack_exports__["a"] = (getPrototype);
24652
-
24653
-
24654
- /***/ }),
24655
- /* 427 */
24656
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24657
-
24658
- "use strict";
24659
- /**
24660
- * Creates a unary function that invokes `func` with its argument transformed.
24661
- *
24662
- * @private
24663
- * @param {Function} func The function to wrap.
24664
- * @param {Function} transform The argument transform.
24665
- * @returns {Function} Returns the new function.
24666
- */
24667
- function overArg(func, transform) {
24668
- return function(arg) {
24669
- return func(transform(arg));
24670
- };
24671
- }
24672
-
24673
- /* harmony default export */ __webpack_exports__["a"] = (overArg);
24674
-
24675
-
24676
- /***/ }),
24677
- /* 428 */
24678
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24679
-
24680
- "use strict";
24681
- /**
24682
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
24683
- *
24684
- * @private
24685
- * @param {Object} object The object to query.
24686
- * @param {string} key The key of the property to get.
24687
- * @returns {*} Returns the property value.
24688
- */
24689
- function safeGet(object, key) {
24690
- if (key === 'constructor' && typeof object[key] === 'function') {
24691
- return;
24692
- }
24693
-
24694
- if (key == '__proto__') {
24695
- return;
24696
- }
24697
-
24698
- return object[key];
24699
- }
24700
-
24701
- /* harmony default export */ __webpack_exports__["a"] = (safeGet);
24702
-
24703
-
24704
- /***/ }),
24705
- /* 429 */
24706
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24707
-
24708
- "use strict";
24709
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__ = __webpack_require__(430);
24710
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseKeysIn_js__ = __webpack_require__(961);
24711
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__ = __webpack_require__(73);
24712
-
24713
-
24714
-
24715
-
24716
- /**
24717
- * Creates an array of the own and inherited enumerable property names of `object`.
24718
- *
24719
- * **Note:** Non-object values are coerced to objects.
24720
- *
24721
- * @static
24722
- * @memberOf _
24723
- * @since 3.0.0
24724
- * @category Object
24725
- * @param {Object} object The object to query.
24726
- * @returns {Array} Returns the array of property names.
24727
- * @example
24728
- *
24729
- * function Foo() {
24730
- * this.a = 1;
24731
- * this.b = 2;
24732
- * }
24733
- *
24734
- * Foo.prototype.c = 3;
24735
- *
24736
- * _.keysIn(new Foo);
24737
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
24738
- */
24739
- function keysIn(object) {
24740
- return Object(__WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__["a" /* default */])(object) ? Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__["a" /* default */])(object, true) : Object(__WEBPACK_IMPORTED_MODULE_1__baseKeysIn_js__["a" /* default */])(object);
24741
- }
24742
-
24743
- /* harmony default export */ __webpack_exports__["a"] = (keysIn);
24744
-
24745
-
24746
- /***/ }),
24747
- /* 430 */
24748
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24749
-
24750
- "use strict";
24751
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseTimes_js__ = __webpack_require__(960);
24752
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isArguments_js__ = __webpack_require__(213);
24753
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArray_js__ = __webpack_require__(35);
24754
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isBuffer_js__ = __webpack_require__(215);
24755
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__isIndex_js__ = __webpack_require__(217);
24756
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isTypedArray_js__ = __webpack_require__(216);
24757
-
24758
-
24759
-
24760
-
24761
-
24762
-
24763
-
24764
- /** Used for built-in method references. */
24765
- var objectProto = Object.prototype;
24766
-
24767
- /** Used to check objects for own properties. */
24768
- var hasOwnProperty = objectProto.hasOwnProperty;
24769
-
24770
- /**
24771
- * Creates an array of the enumerable property names of the array-like `value`.
24772
- *
24773
- * @private
24774
- * @param {*} value The value to query.
24775
- * @param {boolean} inherited Specify returning inherited property names.
24776
- * @returns {Array} Returns the array of property names.
24777
- */
24778
- function arrayLikeKeys(value, inherited) {
24779
- var isArr = Object(__WEBPACK_IMPORTED_MODULE_2__isArray_js__["a" /* default */])(value),
24780
- isArg = !isArr && Object(__WEBPACK_IMPORTED_MODULE_1__isArguments_js__["a" /* default */])(value),
24781
- isBuff = !isArr && !isArg && Object(__WEBPACK_IMPORTED_MODULE_3__isBuffer_js__["a" /* default */])(value),
24782
- isType = !isArr && !isArg && !isBuff && Object(__WEBPACK_IMPORTED_MODULE_5__isTypedArray_js__["a" /* default */])(value),
24783
- skipIndexes = isArr || isArg || isBuff || isType,
24784
- result = skipIndexes ? Object(__WEBPACK_IMPORTED_MODULE_0__baseTimes_js__["a" /* default */])(value.length, String) : [],
24785
- length = result.length;
24786
-
24787
- for (var key in value) {
24788
- if ((inherited || hasOwnProperty.call(value, key)) &&
24789
- !(skipIndexes && (
24790
- // Safari 9 has enumerable `arguments.length` in strict mode.
24791
- key == 'length' ||
24792
- // Node.js 0.10 has enumerable non-index properties on buffers.
24793
- (isBuff && (key == 'offset' || key == 'parent')) ||
24794
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
24795
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
24796
- // Skip index properties.
24797
- Object(__WEBPACK_IMPORTED_MODULE_4__isIndex_js__["a" /* default */])(key, length)
24798
- ))) {
24799
- result.push(key);
24800
- }
24801
- }
24802
- return result;
24803
- }
24804
-
24805
- /* harmony default export */ __webpack_exports__["a"] = (arrayLikeKeys);
24806
-
24807
-
24808
- /***/ }),
24809
- /* 431 */
24810
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24811
-
24812
- "use strict";
24813
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isObject_js__ = __webpack_require__(34);
24814
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__now_js__ = __webpack_require__(974);
24815
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__toNumber_js__ = __webpack_require__(975);
24816
-
24817
-
24818
-
24819
-
24820
- /** Error message constants. */
24821
- var FUNC_ERROR_TEXT = 'Expected a function';
24822
-
24823
- /* Built-in method references for those with the same name as other `lodash` methods. */
24824
- var nativeMax = Math.max,
24825
- nativeMin = Math.min;
24826
-
24827
- /**
24828
- * Creates a debounced function that delays invoking `func` until after `wait`
24829
- * milliseconds have elapsed since the last time the debounced function was
24830
- * invoked. The debounced function comes with a `cancel` method to cancel
24831
- * delayed `func` invocations and a `flush` method to immediately invoke them.
24832
- * Provide `options` to indicate whether `func` should be invoked on the
24833
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
24834
- * with the last arguments provided to the debounced function. Subsequent
24835
- * calls to the debounced function return the result of the last `func`
24836
- * invocation.
24837
- *
24838
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
24839
- * invoked on the trailing edge of the timeout only if the debounced function
24840
- * is invoked more than once during the `wait` timeout.
24841
- *
24842
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
24843
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
24844
- *
24845
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
24846
- * for details over the differences between `_.debounce` and `_.throttle`.
24847
- *
24848
- * @static
24849
- * @memberOf _
24850
- * @since 0.1.0
24851
- * @category Function
24852
- * @param {Function} func The function to debounce.
24853
- * @param {number} [wait=0] The number of milliseconds to delay.
24854
- * @param {Object} [options={}] The options object.
24855
- * @param {boolean} [options.leading=false]
24856
- * Specify invoking on the leading edge of the timeout.
24857
- * @param {number} [options.maxWait]
24858
- * The maximum time `func` is allowed to be delayed before it's invoked.
24859
- * @param {boolean} [options.trailing=true]
24860
- * Specify invoking on the trailing edge of the timeout.
24861
- * @returns {Function} Returns the new debounced function.
24862
- * @example
24863
- *
24864
- * // Avoid costly calculations while the window size is in flux.
24865
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
24866
- *
24867
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
24868
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
24869
- * 'leading': true,
24870
- * 'trailing': false
24871
- * }));
24872
- *
24873
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
24874
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
24875
- * var source = new EventSource('/stream');
24876
- * jQuery(source).on('message', debounced);
24877
- *
24878
- * // Cancel the trailing debounced invocation.
24879
- * jQuery(window).on('popstate', debounced.cancel);
24880
- */
24881
- function debounce(func, wait, options) {
24882
- var lastArgs,
24883
- lastThis,
24884
- maxWait,
24885
- result,
24886
- timerId,
24887
- lastCallTime,
24888
- lastInvokeTime = 0,
24889
- leading = false,
24890
- maxing = false,
24891
- trailing = true;
24892
-
24893
- if (typeof func != 'function') {
24894
- throw new TypeError(FUNC_ERROR_TEXT);
24895
- }
24896
- wait = Object(__WEBPACK_IMPORTED_MODULE_2__toNumber_js__["a" /* default */])(wait) || 0;
24897
- if (Object(__WEBPACK_IMPORTED_MODULE_0__isObject_js__["a" /* default */])(options)) {
24898
- leading = !!options.leading;
24899
- maxing = 'maxWait' in options;
24900
- maxWait = maxing ? nativeMax(Object(__WEBPACK_IMPORTED_MODULE_2__toNumber_js__["a" /* default */])(options.maxWait) || 0, wait) : maxWait;
24901
- trailing = 'trailing' in options ? !!options.trailing : trailing;
24902
- }
24903
-
24904
- function invokeFunc(time) {
24905
- var args = lastArgs,
24906
- thisArg = lastThis;
24907
-
24908
- lastArgs = lastThis = undefined;
24909
- lastInvokeTime = time;
24910
- result = func.apply(thisArg, args);
24911
- return result;
24912
- }
24913
-
24914
- function leadingEdge(time) {
24915
- // Reset any `maxWait` timer.
24916
- lastInvokeTime = time;
24917
- // Start the timer for the trailing edge.
24918
- timerId = setTimeout(timerExpired, wait);
24919
- // Invoke the leading edge.
24920
- return leading ? invokeFunc(time) : result;
24921
- }
24922
-
24923
- function remainingWait(time) {
24924
- var timeSinceLastCall = time - lastCallTime,
24925
- timeSinceLastInvoke = time - lastInvokeTime,
24926
- timeWaiting = wait - timeSinceLastCall;
24927
-
24928
- return maxing
24929
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
24930
- : timeWaiting;
24931
- }
24932
-
24933
- function shouldInvoke(time) {
24934
- var timeSinceLastCall = time - lastCallTime,
24935
- timeSinceLastInvoke = time - lastInvokeTime;
24936
-
24937
- // Either this is the first call, activity has stopped and we're at the
24938
- // trailing edge, the system time has gone backwards and we're treating
24939
- // it as the trailing edge, or we've hit the `maxWait` limit.
24940
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
24941
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
24942
- }
24943
-
24944
- function timerExpired() {
24945
- var time = Object(__WEBPACK_IMPORTED_MODULE_1__now_js__["a" /* default */])();
24946
- if (shouldInvoke(time)) {
24947
- return trailingEdge(time);
24948
- }
24949
- // Restart the timer.
24950
- timerId = setTimeout(timerExpired, remainingWait(time));
24951
- }
24952
-
24953
- function trailingEdge(time) {
24954
- timerId = undefined;
24955
-
24956
- // Only invoke if we have `lastArgs` which means `func` has been
24957
- // debounced at least once.
24958
- if (trailing && lastArgs) {
24959
- return invokeFunc(time);
24960
- }
24961
- lastArgs = lastThis = undefined;
24962
- return result;
24963
- }
24964
-
24965
- function cancel() {
24966
- if (timerId !== undefined) {
24967
- clearTimeout(timerId);
24968
- }
24969
- lastInvokeTime = 0;
24970
- lastArgs = lastCallTime = lastThis = timerId = undefined;
24971
- }
24972
-
24973
- function flush() {
24974
- return timerId === undefined ? result : trailingEdge(Object(__WEBPACK_IMPORTED_MODULE_1__now_js__["a" /* default */])());
24975
- }
24976
-
24977
- function debounced() {
24978
- var time = Object(__WEBPACK_IMPORTED_MODULE_1__now_js__["a" /* default */])(),
24979
- isInvoking = shouldInvoke(time);
24980
-
24981
- lastArgs = arguments;
24982
- lastThis = this;
24983
- lastCallTime = time;
24984
-
24985
- if (isInvoking) {
24986
- if (timerId === undefined) {
24987
- return leadingEdge(lastCallTime);
24988
- }
24989
- if (maxing) {
24990
- // Handle invocations in a tight loop.
24991
- clearTimeout(timerId);
24992
- timerId = setTimeout(timerExpired, wait);
24993
- return invokeFunc(lastCallTime);
24994
- }
24995
- }
24996
- if (timerId === undefined) {
24997
- timerId = setTimeout(timerExpired, wait);
24998
- }
24999
- return result;
25000
- }
25001
- debounced.cancel = cancel;
25002
- debounced.flush = flush;
25003
- return debounced;
25004
- }
25005
-
25006
- /* harmony default export */ __webpack_exports__["a"] = (debounce);
25007
-
25008
-
25009
- /***/ }),
25010
- /* 432 */
25011
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25012
-
25013
- "use strict";
25014
- /* unused harmony export ColorWrap */
25015
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
25016
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
25017
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_es_debounce__ = __webpack_require__(431);
25018
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_color__ = __webpack_require__(36);
25019
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
25020
-
25021
- var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
25022
-
25023
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25024
-
25025
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
25026
-
25027
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
25028
-
25029
-
25030
-
25031
-
25032
-
25033
- var ColorWrap = function ColorWrap(Picker) {
25034
- var ColorPicker = function (_ref) {
25035
- _inherits(ColorPicker, _ref);
25036
-
25037
- function ColorPicker(props) {
25038
- _classCallCheck(this, ColorPicker);
25039
-
25040
- var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this));
25041
-
25042
- _this.handleChange = function (data, event) {
25043
- var isValidColor = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["d" /* simpleCheckForValidColor */](data);
25044
- if (isValidColor) {
25045
- var colors = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](data, data.h || _this.state.oldHue);
25046
- _this.setState(colors);
25047
- _this.props.onChangeComplete && _this.debounce(_this.props.onChangeComplete, colors, event);
25048
- _this.props.onChange && _this.props.onChange(colors, event);
25049
- }
25050
- };
25051
-
25052
- _this.handleSwatchHover = function (data, event) {
25053
- var isValidColor = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["d" /* simpleCheckForValidColor */](data);
25054
- if (isValidColor) {
25055
- var colors = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](data, data.h || _this.state.oldHue);
25056
- _this.props.onSwatchHover && _this.props.onSwatchHover(colors, event);
25057
- }
25058
- };
25059
-
25060
- _this.state = _extends({}, __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](props.color, 0));
25061
-
25062
- _this.debounce = Object(__WEBPACK_IMPORTED_MODULE_1_lodash_es_debounce__["a" /* default */])(function (fn, data, event) {
25063
- fn(data, event);
25064
- }, 100);
25065
- return _this;
25066
- }
25067
-
25068
- _createClass(ColorPicker, [{
25069
- key: 'render',
25070
- value: function render() {
25071
- var optionalEvents = {};
25072
- if (this.props.onSwatchHover) {
25073
- optionalEvents.onSwatchHover = this.handleSwatchHover;
25074
- }
25075
-
25076
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Picker, _extends({}, this.props, this.state, {
25077
- onChange: this.handleChange
25078
- }, optionalEvents));
25079
- }
25080
- }], [{
25081
- key: 'getDerivedStateFromProps',
25082
- value: function getDerivedStateFromProps(nextProps, state) {
25083
- return _extends({}, __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](nextProps.color, state.oldHue));
25084
- }
25085
- }]);
25086
-
25087
- return ColorPicker;
25088
- }(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"] || __WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
25089
-
25090
- ColorPicker.propTypes = _extends({}, Picker.propTypes);
25091
-
25092
- ColorPicker.defaultProps = _extends({}, Picker.defaultProps, {
25093
- color: {
25094
- h: 250,
25095
- s: 0.50,
25096
- l: 0.20,
25097
- a: 1
25098
- }
25099
- });
25100
-
25101
- return ColorPicker;
25102
- };
25103
-
25104
- /* harmony default export */ __webpack_exports__["a"] = (ColorWrap);
25105
-
25106
- /***/ }),
25107
- /* 433 */
25108
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25109
-
25110
- "use strict";
25111
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseForOwn_js__ = __webpack_require__(980);
25112
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createBaseEach_js__ = __webpack_require__(983);
25113
-
25114
-
25115
-
25116
- /**
25117
- * The base implementation of `_.forEach` without support for iteratee shorthands.
25118
- *
25119
- * @private
25120
- * @param {Array|Object} collection The collection to iterate over.
25121
- * @param {Function} iteratee The function invoked per iteration.
25122
- * @returns {Array|Object} Returns `collection`.
25123
- */
25124
- var baseEach = Object(__WEBPACK_IMPORTED_MODULE_1__createBaseEach_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0__baseForOwn_js__["a" /* default */]);
25125
-
25126
- /* harmony default export */ __webpack_exports__["a"] = (baseEach);
25127
-
25128
-
25129
- /***/ }),
25130
- /* 434 */
25131
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25132
-
25133
- "use strict";
25134
- /**
25135
- * A specialized version of `_.map` for arrays without support for iteratee
25136
- * shorthands.
25137
- *
25138
- * @private
25139
- * @param {Array} [array] The array to iterate over.
25140
- * @param {Function} iteratee The function invoked per iteration.
25141
- * @returns {Array} Returns the new mapped array.
25142
- */
25143
- function arrayMap(array, iteratee) {
25144
- var index = -1,
25145
- length = array == null ? 0 : array.length,
25146
- result = Array(length);
25147
-
25148
- while (++index < length) {
25149
- result[index] = iteratee(array[index], index, array);
25150
- }
25151
- return result;
25152
- }
25153
-
25154
- /* harmony default export */ __webpack_exports__["a"] = (arrayMap);
25155
-
25156
-
25157
- /***/ }),
25158
- /* 435 */
25159
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25160
-
25161
- "use strict";
25162
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsEqualDeep_js__ = __webpack_require__(994);
25163
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(61);
25164
-
25165
-
25166
-
25167
- /**
25168
- * The base implementation of `_.isEqual` which supports partial comparisons
25169
- * and tracks traversed objects.
25170
- *
25171
- * @private
25172
- * @param {*} value The value to compare.
25173
- * @param {*} other The other value to compare.
25174
- * @param {boolean} bitmask The bitmask flags.
25175
- * 1 - Unordered comparison
25176
- * 2 - Partial comparison
25177
- * @param {Function} [customizer] The function to customize comparisons.
25178
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
25179
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
25180
- */
25181
- function baseIsEqual(value, other, bitmask, customizer, stack) {
25182
- if (value === other) {
25183
- return true;
25184
- }
25185
- if (value == null || other == null || (!Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && !Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(other))) {
25186
- return value !== value && other !== other;
25187
- }
25188
- return Object(__WEBPACK_IMPORTED_MODULE_0__baseIsEqualDeep_js__["a" /* default */])(value, other, bitmask, customizer, baseIsEqual, stack);
25189
- }
25190
-
25191
- /* harmony default export */ __webpack_exports__["a"] = (baseIsEqual);
25192
-
25193
-
25194
- /***/ }),
25195
- /* 436 */
25196
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25197
-
25198
- "use strict";
25199
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SetCache_js__ = __webpack_require__(995);
25200
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__arraySome_js__ = __webpack_require__(998);
25201
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__cacheHas_js__ = __webpack_require__(999);
25202
-
25203
-
25204
-
25205
-
25206
- /** Used to compose bitmasks for value comparisons. */
25207
- var COMPARE_PARTIAL_FLAG = 1,
25208
- COMPARE_UNORDERED_FLAG = 2;
25209
-
25210
- /**
25211
- * A specialized version of `baseIsEqualDeep` for arrays with support for
25212
- * partial deep comparisons.
25213
- *
25214
- * @private
25215
- * @param {Array} array The array to compare.
25216
- * @param {Array} other The other array to compare.
25217
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
25218
- * @param {Function} customizer The function to customize comparisons.
25219
- * @param {Function} equalFunc The function to determine equivalents of values.
25220
- * @param {Object} stack Tracks traversed `array` and `other` objects.
25221
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
25222
- */
25223
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
25224
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
25225
- arrLength = array.length,
25226
- othLength = other.length;
25227
-
25228
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
25229
- return false;
25230
- }
25231
- // Assume cyclic values are equal.
25232
- var stacked = stack.get(array);
25233
- if (stacked && stack.get(other)) {
25234
- return stacked == other;
25235
- }
25236
- var index = -1,
25237
- result = true,
25238
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new __WEBPACK_IMPORTED_MODULE_0__SetCache_js__["a" /* default */] : undefined;
25239
-
25240
- stack.set(array, other);
25241
- stack.set(other, array);
25242
-
25243
- // Ignore non-index properties.
25244
- while (++index < arrLength) {
25245
- var arrValue = array[index],
25246
- othValue = other[index];
25247
-
25248
- if (customizer) {
25249
- var compared = isPartial
25250
- ? customizer(othValue, arrValue, index, other, array, stack)
25251
- : customizer(arrValue, othValue, index, array, other, stack);
25252
- }
25253
- if (compared !== undefined) {
25254
- if (compared) {
25255
- continue;
25256
- }
25257
- result = false;
25258
- break;
25259
- }
25260
- // Recursively compare arrays (susceptible to call stack limits).
25261
- if (seen) {
25262
- if (!Object(__WEBPACK_IMPORTED_MODULE_1__arraySome_js__["a" /* default */])(other, function(othValue, othIndex) {
25263
- if (!Object(__WEBPACK_IMPORTED_MODULE_2__cacheHas_js__["a" /* default */])(seen, othIndex) &&
25264
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
25265
- return seen.push(othIndex);
25266
- }
25267
- })) {
25268
- result = false;
25269
- break;
25270
- }
25271
- } else if (!(
25272
- arrValue === othValue ||
25273
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
25274
- )) {
25275
- result = false;
25276
- break;
25277
- }
25278
- }
25279
- stack['delete'](array);
25280
- stack['delete'](other);
25281
- return result;
25282
- }
25283
-
25284
- /* harmony default export */ __webpack_exports__["a"] = (equalArrays);
25285
-
25286
-
25287
- /***/ }),
25288
- /* 437 */
25289
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25290
-
25291
- "use strict";
25292
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isObject_js__ = __webpack_require__(34);
25293
-
25294
-
25295
- /**
25296
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
25297
- *
25298
- * @private
25299
- * @param {*} value The value to check.
25300
- * @returns {boolean} Returns `true` if `value` if suitable for strict
25301
- * equality comparisons, else `false`.
25302
- */
25303
- function isStrictComparable(value) {
25304
- return value === value && !Object(__WEBPACK_IMPORTED_MODULE_0__isObject_js__["a" /* default */])(value);
25305
- }
25306
-
25307
- /* harmony default export */ __webpack_exports__["a"] = (isStrictComparable);
25308
-
25309
-
25310
- /***/ }),
25311
- /* 438 */
25312
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25313
-
25314
- "use strict";
25315
- /**
25316
- * A specialized version of `matchesProperty` for source values suitable
25317
- * for strict equality comparisons, i.e. `===`.
25318
- *
25319
- * @private
25320
- * @param {string} key The key of the property to get.
25321
- * @param {*} srcValue The value to match.
25322
- * @returns {Function} Returns the new spec function.
25323
- */
25324
- function matchesStrictComparable(key, srcValue) {
25325
- return function(object) {
25326
- if (object == null) {
25327
- return false;
25328
- }
25329
- return object[key] === srcValue &&
25330
- (srcValue !== undefined || (key in Object(object)));
25331
- };
25332
- }
25333
-
25334
- /* harmony default export */ __webpack_exports__["a"] = (matchesStrictComparable);
25335
-
25336
-
25337
- /***/ }),
25338
- /* 439 */
25339
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25340
-
25341
- "use strict";
25342
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__castPath_js__ = __webpack_require__(440);
25343
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__toKey_js__ = __webpack_require__(134);
25344
-
25345
-
25346
-
25347
- /**
25348
- * The base implementation of `_.get` without support for default values.
25349
- *
25350
- * @private
25351
- * @param {Object} object The object to query.
25352
- * @param {Array|string} path The path of the property to get.
25353
- * @returns {*} Returns the resolved value.
25354
- */
25355
- function baseGet(object, path) {
25356
- path = Object(__WEBPACK_IMPORTED_MODULE_0__castPath_js__["a" /* default */])(path, object);
25357
-
25358
- var index = 0,
25359
- length = path.length;
25360
-
25361
- while (object != null && index < length) {
25362
- object = object[Object(__WEBPACK_IMPORTED_MODULE_1__toKey_js__["a" /* default */])(path[index++])];
25363
- }
25364
- return (index && index == length) ? object : undefined;
25365
- }
25366
-
25367
- /* harmony default export */ __webpack_exports__["a"] = (baseGet);
25368
-
25369
-
25370
- /***/ }),
25371
- /* 440 */
25372
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25373
-
25374
- "use strict";
25375
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArray_js__ = __webpack_require__(35);
25376
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isKey_js__ = __webpack_require__(219);
25377
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stringToPath_js__ = __webpack_require__(1018);
25378
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__toString_js__ = __webpack_require__(1021);
25379
-
25380
-
25381
-
25382
-
25383
-
25384
- /**
25385
- * Casts `value` to a path array if it's not one.
25386
- *
25387
- * @private
25388
- * @param {*} value The value to inspect.
25389
- * @param {Object} [object] The object to query keys on.
25390
- * @returns {Array} Returns the cast property path array.
25391
- */
25392
- function castPath(value, object) {
25393
- if (Object(__WEBPACK_IMPORTED_MODULE_0__isArray_js__["a" /* default */])(value)) {
25394
- return value;
25395
- }
25396
- return Object(__WEBPACK_IMPORTED_MODULE_1__isKey_js__["a" /* default */])(value, object) ? [value] : Object(__WEBPACK_IMPORTED_MODULE_2__stringToPath_js__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_3__toString_js__["a" /* default */])(value));
25397
- }
25398
-
25399
- /* harmony default export */ __webpack_exports__["a"] = (castPath);
25400
-
25401
-
25402
- /***/ }),
25403
- /* 441 */
25404
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25405
-
25406
- "use strict";
25407
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return red; });
25408
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return pink; });
25409
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return purple; });
25410
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return deepPurple; });
25411
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return indigo; });
25412
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return blue; });
25413
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return lightBlue; });
25414
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return cyan; });
25415
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return teal; });
25416
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return green; });
25417
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return lightGreen; });
25418
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return lime; });
25419
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return yellow; });
25420
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return amber; });
25421
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return orange; });
25422
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return deepOrange; });
25423
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return brown; });
25424
- /* unused harmony export grey */
25425
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return blueGrey; });
25426
- /* unused harmony export darkText */
25427
- /* unused harmony export lightText */
25428
- /* unused harmony export darkIcons */
25429
- /* unused harmony export lightIcons */
25430
- /* unused harmony export white */
25431
- /* unused harmony export black */
25432
- var red = {"50":"#ffebee","100":"#ffcdd2","200":"#ef9a9a","300":"#e57373","400":"#ef5350","500":"#f44336","600":"#e53935","700":"#d32f2f","800":"#c62828","900":"#b71c1c","a100":"#ff8a80","a200":"#ff5252","a400":"#ff1744","a700":"#d50000"};
25433
- var pink = {"50":"#fce4ec","100":"#f8bbd0","200":"#f48fb1","300":"#f06292","400":"#ec407a","500":"#e91e63","600":"#d81b60","700":"#c2185b","800":"#ad1457","900":"#880e4f","a100":"#ff80ab","a200":"#ff4081","a400":"#f50057","a700":"#c51162"};
25434
- var purple = {"50":"#f3e5f5","100":"#e1bee7","200":"#ce93d8","300":"#ba68c8","400":"#ab47bc","500":"#9c27b0","600":"#8e24aa","700":"#7b1fa2","800":"#6a1b9a","900":"#4a148c","a100":"#ea80fc","a200":"#e040fb","a400":"#d500f9","a700":"#aa00ff"};
25435
- var deepPurple = {"50":"#ede7f6","100":"#d1c4e9","200":"#b39ddb","300":"#9575cd","400":"#7e57c2","500":"#673ab7","600":"#5e35b1","700":"#512da8","800":"#4527a0","900":"#311b92","a100":"#b388ff","a200":"#7c4dff","a400":"#651fff","a700":"#6200ea"};
25436
- var indigo = {"50":"#e8eaf6","100":"#c5cae9","200":"#9fa8da","300":"#7986cb","400":"#5c6bc0","500":"#3f51b5","600":"#3949ab","700":"#303f9f","800":"#283593","900":"#1a237e","a100":"#8c9eff","a200":"#536dfe","a400":"#3d5afe","a700":"#304ffe"};
25437
- var blue = {"50":"#e3f2fd","100":"#bbdefb","200":"#90caf9","300":"#64b5f6","400":"#42a5f5","500":"#2196f3","600":"#1e88e5","700":"#1976d2","800":"#1565c0","900":"#0d47a1","a100":"#82b1ff","a200":"#448aff","a400":"#2979ff","a700":"#2962ff"};
25438
- var lightBlue = {"50":"#e1f5fe","100":"#b3e5fc","200":"#81d4fa","300":"#4fc3f7","400":"#29b6f6","500":"#03a9f4","600":"#039be5","700":"#0288d1","800":"#0277bd","900":"#01579b","a100":"#80d8ff","a200":"#40c4ff","a400":"#00b0ff","a700":"#0091ea"};
25439
- var cyan = {"50":"#e0f7fa","100":"#b2ebf2","200":"#80deea","300":"#4dd0e1","400":"#26c6da","500":"#00bcd4","600":"#00acc1","700":"#0097a7","800":"#00838f","900":"#006064","a100":"#84ffff","a200":"#18ffff","a400":"#00e5ff","a700":"#00b8d4"};
25440
- var teal = {"50":"#e0f2f1","100":"#b2dfdb","200":"#80cbc4","300":"#4db6ac","400":"#26a69a","500":"#009688","600":"#00897b","700":"#00796b","800":"#00695c","900":"#004d40","a100":"#a7ffeb","a200":"#64ffda","a400":"#1de9b6","a700":"#00bfa5"};
25441
- var green = {"50":"#e8f5e9","100":"#c8e6c9","200":"#a5d6a7","300":"#81c784","400":"#66bb6a","500":"#4caf50","600":"#43a047","700":"#388e3c","800":"#2e7d32","900":"#1b5e20","a100":"#b9f6ca","a200":"#69f0ae","a400":"#00e676","a700":"#00c853"};
25442
- var lightGreen = {"50":"#f1f8e9","100":"#dcedc8","200":"#c5e1a5","300":"#aed581","400":"#9ccc65","500":"#8bc34a","600":"#7cb342","700":"#689f38","800":"#558b2f","900":"#33691e","a100":"#ccff90","a200":"#b2ff59","a400":"#76ff03","a700":"#64dd17"};
25443
- var lime = {"50":"#f9fbe7","100":"#f0f4c3","200":"#e6ee9c","300":"#dce775","400":"#d4e157","500":"#cddc39","600":"#c0ca33","700":"#afb42b","800":"#9e9d24","900":"#827717","a100":"#f4ff81","a200":"#eeff41","a400":"#c6ff00","a700":"#aeea00"};
25444
- var yellow = {"50":"#fffde7","100":"#fff9c4","200":"#fff59d","300":"#fff176","400":"#ffee58","500":"#ffeb3b","600":"#fdd835","700":"#fbc02d","800":"#f9a825","900":"#f57f17","a100":"#ffff8d","a200":"#ffff00","a400":"#ffea00","a700":"#ffd600"};
25445
- var amber = {"50":"#fff8e1","100":"#ffecb3","200":"#ffe082","300":"#ffd54f","400":"#ffca28","500":"#ffc107","600":"#ffb300","700":"#ffa000","800":"#ff8f00","900":"#ff6f00","a100":"#ffe57f","a200":"#ffd740","a400":"#ffc400","a700":"#ffab00"};
25446
- var orange = {"50":"#fff3e0","100":"#ffe0b2","200":"#ffcc80","300":"#ffb74d","400":"#ffa726","500":"#ff9800","600":"#fb8c00","700":"#f57c00","800":"#ef6c00","900":"#e65100","a100":"#ffd180","a200":"#ffab40","a400":"#ff9100","a700":"#ff6d00"};
25447
- var deepOrange = {"50":"#fbe9e7","100":"#ffccbc","200":"#ffab91","300":"#ff8a65","400":"#ff7043","500":"#ff5722","600":"#f4511e","700":"#e64a19","800":"#d84315","900":"#bf360c","a100":"#ff9e80","a200":"#ff6e40","a400":"#ff3d00","a700":"#dd2c00"};
25448
- var brown = {"50":"#efebe9","100":"#d7ccc8","200":"#bcaaa4","300":"#a1887f","400":"#8d6e63","500":"#795548","600":"#6d4c41","700":"#5d4037","800":"#4e342e","900":"#3e2723"};
25449
- var grey = {"50":"#fafafa","100":"#f5f5f5","200":"#eeeeee","300":"#e0e0e0","400":"#bdbdbd","500":"#9e9e9e","600":"#757575","700":"#616161","800":"#424242","900":"#212121"};
25450
- var blueGrey = {"50":"#eceff1","100":"#cfd8dc","200":"#b0bec5","300":"#90a4ae","400":"#78909c","500":"#607d8b","600":"#546e7a","700":"#455a64","800":"#37474f","900":"#263238"};
25451
- var darkText = {"primary":"rgba(0, 0, 0, 0.87)","secondary":"rgba(0, 0, 0, 0.54)","disabled":"rgba(0, 0, 0, 0.38)","dividers":"rgba(0, 0, 0, 0.12)"};
25452
- var lightText = {"primary":"rgba(255, 255, 255, 1)","secondary":"rgba(255, 255, 255, 0.7)","disabled":"rgba(255, 255, 255, 0.5)","dividers":"rgba(255, 255, 255, 0.12)"};
25453
- var darkIcons = {"active":"rgba(0, 0, 0, 0.54)","inactive":"rgba(0, 0, 0, 0.38)"};
25454
- var lightIcons = {"active":"rgba(255, 255, 255, 1)","inactive":"rgba(255, 255, 255, 0.5)"};
25455
- var white = "#ffffff";
25456
- var black = "#000000";
25457
-
25458
- /* unused harmony default export */ var _unused_webpack_default_export = ({
25459
- red: red,
25460
- pink: pink,
25461
- purple: purple,
25462
- deepPurple: deepPurple,
25463
- indigo: indigo,
25464
- blue: blue,
25465
- lightBlue: lightBlue,
25466
- cyan: cyan,
25467
- teal: teal,
25468
- green: green,
25469
- lightGreen: lightGreen,
25470
- lime: lime,
25471
- yellow: yellow,
25472
- amber: amber,
25473
- orange: orange,
25474
- deepOrange: deepOrange,
25475
- brown: brown,
25476
- grey: grey,
25477
- blueGrey: blueGrey,
25478
- darkText: darkText,
25479
- lightText: lightText,
25480
- darkIcons: darkIcons,
25481
- lightIcons: lightIcons,
25482
- white: white,
25483
- black: black
25484
- });
25485
-
25486
-
25487
- /***/ }),
25488
- /* 442 */
25489
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25490
-
25491
- "use strict";
25492
- /* unused harmony export Chrome */
25493
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
25494
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
25495
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2);
25496
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
25497
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(10);
25498
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
25499
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__ = __webpack_require__(26);
25500
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(15);
25501
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ChromeFields__ = __webpack_require__(1032);
25502
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ChromePointer__ = __webpack_require__(1035);
25503
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ChromePointerCircle__ = __webpack_require__(1036);
25504
-
25505
-
25506
-
25507
-
25508
-
25509
-
25510
-
25511
-
25512
-
25513
-
25514
- var Chrome = function Chrome(_ref) {
25515
- var width = _ref.width,
25516
- onChange = _ref.onChange,
25517
- disableAlpha = _ref.disableAlpha,
25518
- rgb = _ref.rgb,
25519
- hsl = _ref.hsl,
25520
- hsv = _ref.hsv,
25521
- hex = _ref.hex,
25522
- renderers = _ref.renderers,
25523
- _ref$styles = _ref.styles,
25524
- passedStyles = _ref$styles === undefined ? {} : _ref$styles,
25525
- _ref$className = _ref.className,
25526
- className = _ref$className === undefined ? '' : _ref$className,
25527
- defaultView = _ref.defaultView;
25528
-
25529
- var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__["a" /* default */])({
25530
- 'default': {
25531
- picker: {
25532
- width: width,
25533
- background: '#fff',
25534
- borderRadius: '2px',
25535
- boxShadow: '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)',
25536
- boxSizing: 'initial',
25537
- fontFamily: 'Menlo'
25538
- },
25539
- saturation: {
25540
- width: '100%',
25541
- paddingBottom: '55%',
25542
- position: 'relative',
25543
- borderRadius: '2px 2px 0 0',
25544
- overflow: 'hidden'
25545
- },
25546
- Saturation: {
25547
- radius: '2px 2px 0 0'
25548
- },
25549
- body: {
25550
- padding: '16px 16px 12px'
25551
- },
25552
- controls: {
25553
- display: 'flex'
25554
- },
25555
- color: {
25556
- width: '32px'
25557
- },
25558
- swatch: {
25559
- marginTop: '6px',
25560
- width: '16px',
25561
- height: '16px',
25562
- borderRadius: '8px',
25563
- position: 'relative',
25564
- overflow: 'hidden'
25565
- },
25566
- active: {
25567
- absolute: '0px 0px 0px 0px',
25568
- borderRadius: '8px',
25569
- boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)',
25570
- background: 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + rgb.a + ')',
25571
- zIndex: '2'
25572
- },
25573
- toggles: {
25574
- flex: '1'
25575
- },
25576
- hue: {
25577
- height: '10px',
25578
- position: 'relative',
25579
- marginBottom: '8px'
25580
- },
25581
- Hue: {
25582
- radius: '2px'
25583
- },
25584
- alpha: {
25585
- height: '10px',
25586
- position: 'relative'
25587
- },
25588
- Alpha: {
25589
- radius: '2px'
25590
- }
25591
- },
25592
- 'disableAlpha': {
25593
- color: {
25594
- width: '22px'
25595
- },
25596
- alpha: {
25597
- display: 'none'
25598
- },
25599
- hue: {
25600
- marginBottom: '0px'
25601
- },
25602
- swatch: {
25603
- width: '10px',
25604
- height: '10px',
25605
- marginTop: '0px'
25606
- }
25607
- }
25608
- }, passedStyles), { disableAlpha: disableAlpha });
25609
-
25610
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
25611
- 'div',
25612
- { style: styles.picker, className: 'chrome-picker ' + className },
25613
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
25614
- 'div',
25615
- { style: styles.saturation },
25616
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["g" /* Saturation */], {
25617
- style: styles.Saturation,
25618
- hsl: hsl,
25619
- hsv: hsv,
25620
- pointer: __WEBPACK_IMPORTED_MODULE_7__ChromePointerCircle__["a" /* default */],
25621
- onChange: onChange
25622
- })
25623
- ),
25624
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
25625
- 'div',
25626
- { style: styles.body },
25627
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
25628
- 'div',
25629
- { style: styles.controls, className: 'flexbox-fix' },
25630
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
25631
- 'div',
25632
- { style: styles.color },
25633
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
25634
- 'div',
25635
- { style: styles.swatch },
25636
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.active }),
25637
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["b" /* Checkboard */], { renderers: renderers })
25638
- )
25639
- ),
25640
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
25641
- 'div',
25642
- { style: styles.toggles },
25643
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
25644
- 'div',
25645
- { style: styles.hue },
25646
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["e" /* Hue */], {
25647
- style: styles.Hue,
25648
- hsl: hsl,
25649
- pointer: __WEBPACK_IMPORTED_MODULE_6__ChromePointer__["a" /* default */],
25650
- onChange: onChange
25651
- })
25652
- ),
25653
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
25654
- 'div',
25655
- { style: styles.alpha },
25656
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["a" /* Alpha */], {
25657
- style: styles.Alpha,
25658
- rgb: rgb,
25659
- hsl: hsl,
25660
- pointer: __WEBPACK_IMPORTED_MODULE_6__ChromePointer__["a" /* default */],
25661
- renderers: renderers,
25662
- onChange: onChange
25663
- })
25664
- )
25665
- )
25666
- ),
25667
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__ChromeFields__["a" /* default */], {
25668
- rgb: rgb,
25669
- hsl: hsl,
25670
- hex: hex,
25671
- view: defaultView,
25672
- onChange: onChange,
25673
- disableAlpha: disableAlpha
25674
- })
25675
- )
25676
- );
25677
- };
25678
-
25679
- Chrome.propTypes = {
25680
- width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
25681
- disableAlpha: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
25682
- styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,
25683
- defaultView: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(["hex", "rgb", "hsl"])
25684
- };
25685
-
25686
- Chrome.defaultProps = {
25687
- width: 225,
25688
- disableAlpha: false,
25689
- styles: {}
25690
- };
25691
-
25692
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_4__common__["c" /* ColorWrap */])(Chrome));
25693
-
25694
- /***/ }),
25695
- /* 443 */
25696
- /***/ (function(module, exports, __webpack_require__) {
25697
-
25698
- /* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
25699
- (function() {
25700
- var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
25701
-
25702
- if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
25703
- module.exports = function() {
25704
- return performance.now();
25705
- };
25706
- } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
25707
- module.exports = function() {
25708
- return (getNanoSeconds() - nodeLoadTime) / 1e6;
25709
- };
25710
- hrtime = process.hrtime;
25711
- getNanoSeconds = function() {
25712
- var hr;
25713
- hr = hrtime();
25714
- return hr[0] * 1e9 + hr[1];
25715
- };
25716
- moduleLoadTime = getNanoSeconds();
25717
- upTime = process.uptime() * 1e9;
25718
- nodeLoadTime = moduleLoadTime - upTime;
25719
- } else if (Date.now) {
25720
- module.exports = function() {
25721
- return Date.now() - loadTime;
25722
- };
25723
- loadTime = Date.now();
25724
- } else {
25725
- module.exports = function() {
25726
- return new Date().getTime() - loadTime;
25727
- };
25728
- loadTime = new Date().getTime();
25729
- }
25730
-
25731
- }).call(this);
25732
-
25733
- //# sourceMappingURL=performance-now.js.map
25734
-
25735
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
25736
-
25737
- /***/ }),
25738
- /* 444 */
25739
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25740
-
25741
- "use strict";
25742
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
25743
- /* harmony export (immutable) */ __webpack_exports__["default"] = isValid;
25744
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(9);
25745
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(7);
25746
-
25747
-
25748
- /**
25749
- * @name isValid
25750
- * @category Common Helpers
25751
- * @summary Is the given date valid?
25752
- *
25753
- * @description
25754
- * Returns false if argument is Invalid Date and true otherwise.
25755
- * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
25756
- * Invalid Date is a Date, whose time value is NaN.
25757
- *
25758
- * Time value of Date: http://es5.github.io/#x15.9.1.1
25759
- *
25760
- * ### v2.0.0 breaking changes:
25761
- *
25762
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
25763
- *
25764
- * - Now `isValid` doesn't throw an exception
25765
- * if the first argument is not an instance of Date.
25766
- * Instead, argument is converted beforehand using `toDate`.
25767
- *
25768
- * Examples:
25769
- *
25770
- * | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
25771
- * |---------------------------|---------------|---------------|
25772
- * | `new Date()` | `true` | `true` |
25773
- * | `new Date('2016-01-01')` | `true` | `true` |
25774
- * | `new Date('')` | `false` | `false` |
25775
- * | `new Date(1488370835081)` | `true` | `true` |
25776
- * | `new Date(NaN)` | `false` | `false` |
25777
- * | `'2016-01-01'` | `TypeError` | `false` |
25778
- * | `''` | `TypeError` | `false` |
25779
- * | `1488370835081` | `TypeError` | `true` |
25780
- * | `NaN` | `TypeError` | `false` |
25781
- *
25782
- * We introduce this change to make *date-fns* consistent with ECMAScript behavior
25783
- * that try to coerce arguments to the expected type
25784
- * (which is also the case with other *date-fns* functions).
25785
- *
25786
- * @param {*} date - the date to check
25787
- * @returns {Boolean} the date is valid
25788
- * @throws {TypeError} 1 argument required
25789
- *
25790
- * @example
25791
- * // For the valid date:
25792
- * var result = isValid(new Date(2014, 1, 31))
25793
- * //=> true
25794
- *
25795
- * @example
25796
- * // For the value, convertable into a date:
25797
- * var result = isValid(1393804800000)
25798
- * //=> true
25799
- *
25800
- * @example
25801
- * // For the invalid date:
25802
- * var result = isValid(new Date(''))
25803
- * //=> false
25804
- */
25805
-
25806
- function isValid(dirtyDate) {
25807
- Object(__WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */])(1, arguments);
25808
- var date = Object(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["default"])(dirtyDate);
25809
- return !isNaN(date);
25810
- }
25811
-
25812
- /***/ }),
25813
- /* 445 */
25814
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25815
-
25816
- "use strict";
25817
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(1088);
25818
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(1089);
25819
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(1091);
25820
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(1092);
25821
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(1094);
25822
-
25823
-
25824
-
25825
-
25826
-
25827
- /**
25828
- * @type {Locale}
25829
- * @category Locales
25830
- * @summary English locale (United States).
25831
- * @language English
25832
- * @iso-639-2 eng
25833
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
25834
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
25835
- */
25836
-
25837
- var locale = {
25838
- code: 'en-US',
25839
- formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */],
25840
- formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */],
25841
- formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */],
25842
- localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */],
25843
- match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */],
25844
- options: {
25845
- weekStartsOn: 0
25846
- /* Sunday */
25847
- ,
25848
- firstWeekContainsDate: 1
25849
- }
25850
- };
25851
- /* harmony default export */ __webpack_exports__["a"] = (locale);
25852
-
25853
- /***/ }),
25854
- /* 446 */
25855
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25856
-
25857
- "use strict";
25858
- /* harmony export (immutable) */ __webpack_exports__["a"] = subMilliseconds;
25859
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(12);
25860
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__ = __webpack_require__(220);
25861
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(7);
25862
-
25863
-
25864
-
25865
- /**
25866
- * @name subMilliseconds
25867
- * @category Millisecond Helpers
25868
- * @summary Subtract the specified number of milliseconds from the given date.
25869
- *
25870
- * @description
25871
- * Subtract the specified number of milliseconds from the given date.
25872
- *
25873
- * ### v2.0.0 breaking changes:
25874
- *
25875
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
25876
- *
25877
- * @param {Date|Number} date - the date to be changed
25878
- * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
25879
- * @returns {Date} the new date with the milliseconds subtracted
25880
- * @throws {TypeError} 2 arguments required
25881
- *
25882
- * @example
25883
- * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
25884
- * var result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
25885
- * //=> Thu Jul 10 2014 12:45:29.250
25886
- */
25887
-
25888
- function subMilliseconds(dirtyDate, dirtyAmount) {
25889
- Object(__WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */])(2, arguments);
25890
- var amount = Object(__WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */])(dirtyAmount);
25891
- return Object(__WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__["a" /* default */])(dirtyDate, -amount);
25892
- }
25893
-
25894
- /***/ }),
25895
- /* 447 */
25896
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25897
-
25898
- "use strict";
25899
- /* harmony export (immutable) */ __webpack_exports__["a"] = addLeadingZeros;
25900
- function addLeadingZeros(number, targetLength) {
25901
- var sign = number < 0 ? '-' : '';
25902
- var output = Math.abs(number).toString();
25903
-
25904
- while (output.length < targetLength) {
25905
- output = '0' + output;
25906
- }
25907
-
25908
- return sign + output;
25909
- }
25910
-
25911
- /***/ }),
25912
- /* 448 */
25913
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25914
-
25915
- "use strict";
25916
- /* harmony export (immutable) */ __webpack_exports__["a"] = getUTCISOWeek;
25917
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(9);
25918
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__ = __webpack_require__(135);
25919
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__startOfUTCISOWeekYear_index_js__ = __webpack_require__(1100);
25920
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__ = __webpack_require__(7);
25921
-
25922
-
25923
-
25924
-
25925
- var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.
25926
- // See issue: https://github.com/date-fns/date-fns/issues/376
25927
-
25928
- function getUTCISOWeek(dirtyDate) {
25929
- Object(__WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__["a" /* default */])(1, arguments);
25930
- var date = Object(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["default"])(dirtyDate);
25931
- var diff = Object(__WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__["a" /* default */])(date).getTime() - Object(__WEBPACK_IMPORTED_MODULE_2__startOfUTCISOWeekYear_index_js__["a" /* default */])(date).getTime(); // Round the number of days to the nearest integer
25932
- // because the number of milliseconds in a week is not constant
25933
- // (e.g. it's different in the week of the daylight saving time clock shift)
25934
-
25935
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
25936
- }
25937
-
25938
- /***/ }),
25939
- /* 449 */
25940
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25941
-
25942
- "use strict";
25943
- /* harmony export (immutable) */ __webpack_exports__["a"] = getUTCISOWeekYear;
25944
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(9);
25945
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__ = __webpack_require__(135);
25946
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__ = __webpack_require__(7);
25947
-
25948
-
25949
- // This function will be a part of public API when UTC function will be implemented.
25950
- // See issue: https://github.com/date-fns/date-fns/issues/376
25951
-
25952
- function getUTCISOWeekYear(dirtyDate) {
25953
- Object(__WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__["a" /* default */])(1, arguments);
25954
- var date = Object(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["default"])(dirtyDate);
25955
- var year = date.getUTCFullYear();
25956
- var fourthOfJanuaryOfNextYear = new Date(0);
25957
- fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
25958
- fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
25959
- var startOfNextYear = Object(__WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__["a" /* default */])(fourthOfJanuaryOfNextYear);
25960
- var fourthOfJanuaryOfThisYear = new Date(0);
25961
- fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
25962
- fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
25963
- var startOfThisYear = Object(__WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__["a" /* default */])(fourthOfJanuaryOfThisYear);
25964
-
25965
- if (date.getTime() >= startOfNextYear.getTime()) {
25966
- return year + 1;
25967
- } else if (date.getTime() >= startOfThisYear.getTime()) {
25968
- return year;
25969
- } else {
25970
- return year - 1;
25971
- }
25972
- }
25973
-
25974
- /***/ }),
25975
- /* 450 */
25976
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
25977
-
25978
- "use strict";
25979
- /* harmony export (immutable) */ __webpack_exports__["a"] = getUTCWeek;
25980
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(9);
25981
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__startOfUTCWeek_index_js__ = __webpack_require__(136);
25982
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__startOfUTCWeekYear_index_js__ = __webpack_require__(1101);
25983
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__ = __webpack_require__(7);
25984
-
25985
-
25986
-
25987
-
25988
- var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.
25989
- // See issue: https://github.com/date-fns/date-fns/issues/376
25990
-
25991
- function getUTCWeek(dirtyDate, options) {
25992
- Object(__WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__["a" /* default */])(1, arguments);
25993
- var date = Object(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["default"])(dirtyDate);
25994
- var diff = Object(__WEBPACK_IMPORTED_MODULE_1__startOfUTCWeek_index_js__["a" /* default */])(date, options).getTime() - Object(__WEBPACK_IMPORTED_MODULE_2__startOfUTCWeekYear_index_js__["a" /* default */])(date, options).getTime(); // Round the number of days to the nearest integer
25995
- // because the number of milliseconds in a week is not constant
25996
- // (e.g. it's different in the week of the daylight saving time clock shift)
25997
-
25998
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
25999
- }
26000
-
26001
- /***/ }),
26002
- /* 451 */
26003
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26004
-
26005
- "use strict";
26006
- function dateLongFormatter(pattern, formatLong) {
26007
- switch (pattern) {
26008
- case 'P':
26009
- return formatLong.date({
26010
- width: 'short'
26011
- });
26012
-
26013
- case 'PP':
26014
- return formatLong.date({
26015
- width: 'medium'
26016
- });
26017
-
26018
- case 'PPP':
26019
- return formatLong.date({
26020
- width: 'long'
26021
- });
26022
-
26023
- case 'PPPP':
26024
- default:
26025
- return formatLong.date({
26026
- width: 'full'
26027
- });
26028
- }
26029
- }
26030
-
26031
- function timeLongFormatter(pattern, formatLong) {
26032
- switch (pattern) {
26033
- case 'p':
26034
- return formatLong.time({
26035
- width: 'short'
26036
- });
26037
-
26038
- case 'pp':
26039
- return formatLong.time({
26040
- width: 'medium'
26041
- });
26042
-
26043
- case 'ppp':
26044
- return formatLong.time({
26045
- width: 'long'
26046
- });
26047
-
26048
- case 'pppp':
26049
- default:
26050
- return formatLong.time({
26051
- width: 'full'
26052
- });
26053
- }
26054
- }
26055
-
26056
- function dateTimeLongFormatter(pattern, formatLong) {
26057
- var matchResult = pattern.match(/(P+)(p+)?/);
26058
- var datePattern = matchResult[1];
26059
- var timePattern = matchResult[2];
26060
-
26061
- if (!timePattern) {
26062
- return dateLongFormatter(pattern, formatLong);
26063
- }
26064
-
26065
- var dateTimeFormat;
26066
-
26067
- switch (datePattern) {
26068
- case 'P':
26069
- dateTimeFormat = formatLong.dateTime({
26070
- width: 'short'
26071
- });
26072
- break;
26073
-
26074
- case 'PP':
26075
- dateTimeFormat = formatLong.dateTime({
26076
- width: 'medium'
26077
- });
26078
- break;
26079
-
26080
- case 'PPP':
26081
- dateTimeFormat = formatLong.dateTime({
26082
- width: 'long'
26083
- });
26084
- break;
26085
-
26086
- case 'PPPP':
26087
- default:
26088
- dateTimeFormat = formatLong.dateTime({
26089
- width: 'full'
26090
- });
26091
- break;
26092
- }
26093
-
26094
- return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
26095
- }
26096
-
26097
- var longFormatters = {
26098
- p: timeLongFormatter,
26099
- P: dateTimeLongFormatter
26100
- };
26101
- /* harmony default export */ __webpack_exports__["a"] = (longFormatters);
26102
-
26103
- /***/ }),
26104
- /* 452 */
26105
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26106
-
26107
- "use strict";
26108
- /* harmony export (immutable) */ __webpack_exports__["a"] = isProtectedDayOfYearToken;
26109
- /* harmony export (immutable) */ __webpack_exports__["b"] = isProtectedWeekYearToken;
26110
- /* harmony export (immutable) */ __webpack_exports__["c"] = throwProtectedError;
26111
- var protectedDayOfYearTokens = ['D', 'DD'];
26112
- var protectedWeekYearTokens = ['YY', 'YYYY'];
26113
- function isProtectedDayOfYearToken(token) {
26114
- return protectedDayOfYearTokens.indexOf(token) !== -1;
26115
- }
26116
- function isProtectedWeekYearToken(token) {
26117
- return protectedWeekYearTokens.indexOf(token) !== -1;
26118
- }
26119
- function throwProtectedError(token, format, input) {
26120
- if (token === 'YYYY') {
26121
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
26122
- } else if (token === 'YY') {
26123
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
26124
- } else if (token === 'D') {
26125
- throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
26126
- } else if (token === 'DD') {
26127
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
26128
- }
26129
- }
26130
-
26131
- /***/ }),
26132
- /* 453 */
26133
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26134
-
26135
- "use strict";
26136
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
26137
- /* harmony export (immutable) */ __webpack_exports__["default"] = addMinutes;
26138
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(12);
26139
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__ = __webpack_require__(220);
26140
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(7);
26141
-
26142
-
26143
-
26144
- var MILLISECONDS_IN_MINUTE = 60000;
26145
- /**
26146
- * @name addMinutes
26147
- * @category Minute Helpers
26148
- * @summary Add the specified number of minutes to the given date.
26149
- *
26150
- * @description
26151
- * Add the specified number of minutes to the given date.
26152
- *
26153
- * ### v2.0.0 breaking changes:
26154
- *
26155
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26156
- *
26157
- * @param {Date|Number} date - the date to be changed
26158
- * @param {Number} amount - the amount of minutes to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
26159
- * @returns {Date} the new date with the minutes added
26160
- * @throws {TypeError} 2 arguments required
26161
- *
26162
- * @example
26163
- * // Add 30 minutes to 10 July 2014 12:00:00:
26164
- * var result = addMinutes(new Date(2014, 6, 10, 12, 0), 30)
26165
- * //=> Thu Jul 10 2014 12:30:00
26166
- */
26167
-
26168
- function addMinutes(dirtyDate, dirtyAmount) {
26169
- Object(__WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */])(2, arguments);
26170
- var amount = Object(__WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */])(dirtyAmount);
26171
- return Object(__WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__["a" /* default */])(dirtyDate, amount * MILLISECONDS_IN_MINUTE);
26172
- }
26173
-
26174
- /***/ }),
26175
- /* 454 */
26176
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26177
-
26178
- "use strict";
26179
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
26180
- /* harmony export (immutable) */ __webpack_exports__["default"] = addHours;
26181
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(12);
26182
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__ = __webpack_require__(220);
26183
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(7);
26184
-
26185
-
26186
-
26187
- var MILLISECONDS_IN_HOUR = 3600000;
26188
- /**
26189
- * @name addHours
26190
- * @category Hour Helpers
26191
- * @summary Add the specified number of hours to the given date.
26192
- *
26193
- * @description
26194
- * Add the specified number of hours to the given date.
26195
- *
26196
- * ### v2.0.0 breaking changes:
26197
- *
26198
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26199
- *
26200
- * @param {Date|Number} date - the date to be changed
26201
- * @param {Number} amount - the amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
26202
- * @returns {Date} the new date with the hours added
26203
- * @throws {TypeError} 2 arguments required
26204
- *
26205
- * @example
26206
- * // Add 2 hours to 10 July 2014 23:00:00:
26207
- * var result = addHours(new Date(2014, 6, 10, 23, 0), 2)
26208
- * //=> Fri Jul 11 2014 01:00:00
26209
- */
26210
-
26211
- function addHours(dirtyDate, dirtyAmount) {
26212
- Object(__WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */])(2, arguments);
26213
- var amount = Object(__WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */])(dirtyAmount);
26214
- return Object(__WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__["a" /* default */])(dirtyDate, amount * MILLISECONDS_IN_HOUR);
26215
- }
26216
-
26217
- /***/ }),
26218
- /* 455 */
26219
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26220
-
26221
- "use strict";
26222
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
26223
- /* harmony export (immutable) */ __webpack_exports__["default"] = addWeeks;
26224
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(12);
26225
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__addDays_index_js__ = __webpack_require__(222);
26226
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(7);
26227
-
26228
-
26229
-
26230
- /**
26231
- * @name addWeeks
26232
- * @category Week Helpers
26233
- * @summary Add the specified number of weeks to the given date.
26234
- *
26235
- * @description
26236
- * Add the specified number of week to the given date.
26237
- *
26238
- * ### v2.0.0 breaking changes:
26239
- *
26240
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26241
- *
26242
- * @param {Date|Number} date - the date to be changed
26243
- * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
26244
- * @returns {Date} the new date with the weeks added
26245
- * @throws {TypeError} 2 arguments required
26246
- *
26247
- * @example
26248
- * // Add 4 weeks to 1 September 2014:
26249
- * var result = addWeeks(new Date(2014, 8, 1), 4)
26250
- * //=> Mon Sep 29 2014 00:00:00
26251
- */
26252
-
26253
- function addWeeks(dirtyDate, dirtyAmount) {
26254
- Object(__WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */])(2, arguments);
26255
- var amount = Object(__WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */])(dirtyAmount);
26256
- var days = amount * 7;
26257
- return Object(__WEBPACK_IMPORTED_MODULE_1__addDays_index_js__["default"])(dirtyDate, days);
26258
- }
26259
-
26260
- /***/ }),
26261
- /* 456 */
26262
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26263
-
26264
- "use strict";
26265
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
26266
- /* harmony export (immutable) */ __webpack_exports__["default"] = addYears;
26267
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(12);
26268
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__addMonths_index_js__ = __webpack_require__(223);
26269
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(7);
26270
-
26271
-
26272
-
26273
- /**
26274
- * @name addYears
26275
- * @category Year Helpers
26276
- * @summary Add the specified number of years to the given date.
26277
- *
26278
- * @description
26279
- * Add the specified number of years to the given date.
26280
- *
26281
- * ### v2.0.0 breaking changes:
26282
- *
26283
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26284
- *
26285
- * @param {Date|Number} date - the date to be changed
26286
- * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
26287
- * @returns {Date} the new date with the years added
26288
- * @throws {TypeError} 2 arguments required
26289
- *
26290
- * @example
26291
- * // Add 5 years to 1 September 2014:
26292
- * var result = addYears(new Date(2014, 8, 1), 5)
26293
- * //=> Sun Sep 01 2019 00:00:00
26294
- */
26295
-
26296
- function addYears(dirtyDate, dirtyAmount) {
26297
- Object(__WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */])(2, arguments);
26298
- var amount = Object(__WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */])(dirtyAmount);
26299
- return Object(__WEBPACK_IMPORTED_MODULE_1__addMonths_index_js__["default"])(dirtyDate, amount * 12);
26300
- }
26301
-
26302
- /***/ }),
26303
- /* 457 */
26304
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26305
-
26306
- "use strict";
26307
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
26308
- /* harmony export (immutable) */ __webpack_exports__["default"] = setMonth;
26309
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(12);
26310
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(9);
26311
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__getDaysInMonth_index_js__ = __webpack_require__(1123);
26312
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(7);
26313
-
26314
-
26315
-
26316
-
26317
- /**
26318
- * @name setMonth
26319
- * @category Month Helpers
26320
- * @summary Set the month to the given date.
26321
- *
26322
- * @description
26323
- * Set the month to the given date.
26324
- *
26325
- * ### v2.0.0 breaking changes:
26326
- *
26327
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26328
- *
26329
- * @param {Date|Number} date - the date to be changed
26330
- * @param {Number} month - the month of the new date
26331
- * @returns {Date} the new date with the month set
26332
- * @throws {TypeError} 2 arguments required
26333
- *
26334
- * @example
26335
- * // Set February to 1 September 2014:
26336
- * var result = setMonth(new Date(2014, 8, 1), 1)
26337
- * //=> Sat Feb 01 2014 00:00:00
26338
- */
26339
-
26340
- function setMonth(dirtyDate, dirtyMonth) {
26341
- Object(__WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */])(2, arguments);
26342
- var date = Object(__WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["default"])(dirtyDate);
26343
- var month = Object(__WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */])(dirtyMonth);
26344
- var year = date.getFullYear();
26345
- var day = date.getDate();
26346
- var dateWithDesiredMonth = new Date(0);
26347
- dateWithDesiredMonth.setFullYear(year, month, 15);
26348
- dateWithDesiredMonth.setHours(0, 0, 0, 0);
26349
- var daysInMonth = Object(__WEBPACK_IMPORTED_MODULE_2__getDaysInMonth_index_js__["a" /* default */])(dateWithDesiredMonth); // Set the last day of the new month
26350
- // if the original date was the last day of the longer month
26351
-
26352
- date.setMonth(month, Math.min(day, daysInMonth));
26353
- return date;
26354
- }
26355
-
26356
- /***/ }),
26357
- /* 458 */
26358
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26359
-
26360
- "use strict";
26361
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
26362
- /* harmony export (immutable) */ __webpack_exports__["default"] = startOfQuarter;
26363
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(9);
26364
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(7);
26365
-
26366
-
26367
- /**
26368
- * @name startOfQuarter
26369
- * @category Quarter Helpers
26370
- * @summary Return the start of a year quarter for the given date.
26371
- *
26372
- * @description
26373
- * Return the start of a year quarter for the given date.
26374
- * The result will be in the local timezone.
26375
- *
26376
- * ### v2.0.0 breaking changes:
26377
- *
26378
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
26379
- *
26380
- * @param {Date|Number} date - the original date
26381
- * @returns {Date} the start of a quarter
26382
- * @throws {TypeError} 1 argument required
26383
- *
26384
- * @example
26385
- * // The start of a quarter for 2 September 2014 11:55:00:
26386
- * var result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0))
26387
- * //=> Tue Jul 01 2014 00:00:00
26388
- */
26389
-
26390
- function startOfQuarter(dirtyDate) {
26391
- Object(__WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */])(1, arguments);
26392
- var date = Object(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["default"])(dirtyDate);
26393
- var currentMonth = date.getMonth();
26394
- var month = currentMonth - currentMonth % 3;
26395
- date.setMonth(month, 1);
26396
- date.setHours(0, 0, 0, 0);
26397
- return date;
26398
- }
26399
-
26400
- /***/ }),
26401
- /* 459 */
26402
- /***/ (function(module, exports, __webpack_require__) {
26403
-
26404
- "use strict";
26405
-
26406
-
26407
- var slice = Array.prototype.slice;
26408
- var isArgs = __webpack_require__(460);
26409
-
26410
- var origKeys = Object.keys;
26411
- var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(1157);
26412
-
26413
- var originalKeys = Object.keys;
26414
-
26415
- keysShim.shim = function shimObjectKeys() {
26416
- if (Object.keys) {
26417
- var keysWorksWithArguments = (function () {
26418
- // Safari 5.0 bug
26419
- var args = Object.keys(arguments);
26420
- return args && args.length === arguments.length;
26421
- }(1, 2));
26422
- if (!keysWorksWithArguments) {
26423
- Object.keys = function keys(object) { // eslint-disable-line func-name-matching
26424
- if (isArgs(object)) {
26425
- return originalKeys(slice.call(object));
26426
- }
26427
- return originalKeys(object);
26428
- };
26429
- }
26430
- } else {
26431
- Object.keys = keysShim;
26432
- }
26433
- return Object.keys || keysShim;
26434
- };
26435
-
26436
- module.exports = keysShim;
26437
-
26438
-
26439
- /***/ }),
26440
- /* 460 */
26441
- /***/ (function(module, exports, __webpack_require__) {
26442
-
26443
- "use strict";
26444
-
26445
-
26446
- var toStr = Object.prototype.toString;
26447
-
26448
- module.exports = function isArguments(value) {
26449
- var str = toStr.call(value);
26450
- var isArgs = str === '[object Arguments]';
26451
- if (!isArgs) {
26452
- isArgs = str !== '[object Array]' &&
26453
- value !== null &&
26454
- typeof value === 'object' &&
26455
- typeof value.length === 'number' &&
26456
- value.length >= 0 &&
26457
- toStr.call(value.callee) === '[object Function]';
26458
- }
26459
- return isArgs;
26460
- };
26461
-
26462
-
26463
- /***/ }),
26464
- /* 461 */
26465
- /***/ (function(module, exports, __webpack_require__) {
26466
-
26467
- "use strict";
26468
-
26469
-
26470
- var bind = __webpack_require__(462);
26471
-
26472
- var GetIntrinsic = __webpack_require__(1161);
26473
-
26474
- var $apply = GetIntrinsic('%Function.prototype.apply%');
26475
- var $call = GetIntrinsic('%Function.prototype.call%');
26476
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
26477
-
26478
- module.exports = function callBind() {
26479
- return $reflectApply(bind, $call, arguments);
26480
- };
26481
-
26482
- module.exports.apply = function applyBind() {
26483
- return $reflectApply(bind, $apply, arguments);
26484
- };
26485
-
26486
-
26487
- /***/ }),
26488
- /* 462 */
26489
- /***/ (function(module, exports, __webpack_require__) {
26490
-
26491
- "use strict";
26492
-
26493
-
26494
- var implementation = __webpack_require__(1160);
26495
-
26496
- module.exports = Function.prototype.bind || implementation;
26497
-
26498
-
26499
- /***/ }),
26500
- /* 463 */
26501
- /***/ (function(module, exports, __webpack_require__) {
26502
-
26503
- "use strict";
26504
- /* WEBPACK VAR INJECTION */(function(global) {
26505
-
26506
- var origSymbol = global.Symbol;
26507
- var hasSymbolSham = __webpack_require__(1162);
26508
-
26509
- module.exports = function hasNativeSymbols() {
26510
- if (typeof origSymbol !== 'function') { return false; }
26511
- if (typeof Symbol !== 'function') { return false; }
26512
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
26513
- if (typeof Symbol('bar') !== 'symbol') { return false; }
26514
-
26515
- return hasSymbolSham();
26516
- };
26517
-
26518
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)))
26519
-
26520
- /***/ }),
26521
- /* 464 */
26522
- /***/ (function(module, exports, __webpack_require__) {
26523
-
26524
- "use strict";
26525
-
26526
-
26527
- var numberIsNaN = function (value) {
26528
- return value !== value;
26529
- };
26530
-
26531
- module.exports = function is(a, b) {
26532
- if (a === 0 && b === 0) {
26533
- return 1 / a === 1 / b;
26534
- }
26535
- if (a === b) {
26536
- return true;
26537
- }
26538
- if (numberIsNaN(a) && numberIsNaN(b)) {
26539
- return true;
26540
- }
26541
- return false;
26542
- };
26543
-
26544
-
26545
-
26546
- /***/ }),
26547
- /* 465 */
26548
- /***/ (function(module, exports, __webpack_require__) {
26549
-
26550
- "use strict";
26551
-
26552
-
26553
- var implementation = __webpack_require__(464);
26554
-
26555
- module.exports = function getPolyfill() {
26556
- return typeof Object.is === 'function' ? Object.is : implementation;
26557
- };
26558
-
26559
-
26560
- /***/ }),
26561
- /* 466 */
26562
- /***/ (function(module, exports, __webpack_require__) {
26563
-
26564
- "use strict";
26565
-
26566
-
26567
- var $Object = Object;
26568
- var $TypeError = TypeError;
26569
-
26570
- module.exports = function flags() {
26571
- if (this != null && this !== $Object(this)) {
26572
- throw new $TypeError('RegExp.prototype.flags getter called on non-object');
26573
- }
26574
- var result = '';
26575
- if (this.global) {
26576
- result += 'g';
26577
- }
26578
- if (this.ignoreCase) {
26579
- result += 'i';
26580
- }
26581
- if (this.multiline) {
26582
- result += 'm';
26583
- }
26584
- if (this.dotAll) {
26585
- result += 's';
26586
- }
26587
- if (this.unicode) {
26588
- result += 'u';
26589
- }
26590
- if (this.sticky) {
26591
- result += 'y';
26592
- }
26593
- return result;
26594
- };
26595
-
26596
-
26597
- /***/ }),
26598
- /* 467 */
26599
- /***/ (function(module, exports, __webpack_require__) {
26600
-
26601
- "use strict";
26602
-
26603
-
26604
- var implementation = __webpack_require__(466);
26605
-
26606
- var supportsDescriptors = __webpack_require__(91).supportsDescriptors;
26607
- var $gOPD = Object.getOwnPropertyDescriptor;
26608
- var $TypeError = TypeError;
26609
-
26610
- module.exports = function getPolyfill() {
26611
- if (!supportsDescriptors) {
26612
- throw new $TypeError('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');
26613
- }
26614
- if ((/a/mig).flags === 'gim') {
26615
- var descriptor = $gOPD(RegExp.prototype, 'flags');
26616
- if (descriptor && typeof descriptor.get === 'function' && typeof (/a/).dotAll === 'boolean') {
26617
- return descriptor.get;
26618
- }
26619
- }
26620
- return implementation;
26621
- };
26622
-
26623
-
26624
- /***/ }),
26625
- /* 468 */
26626
- /***/ (function(module, exports, __webpack_require__) {
26627
-
26628
- "use strict";
26629
- /* WEBPACK VAR INJECTION */(function(process) {/**
26630
- * Copyright (c) 2014-present, Facebook, Inc.
26631
- *
26632
- * This source code is licensed under the MIT license found in the
26633
- * LICENSE file in the root directory of this source tree.
26634
- */
26635
-
26636
-
26637
-
26638
- /**
26639
- * Similar to invariant but only logs a warning if the condition is not met.
26640
- * This can be used to log issues in development environments in critical
26641
- * paths. Removing the logging code for production environments will keep the
26642
- * same logic and follow the same code paths.
26643
- */
26644
-
26645
- var __DEV__ = process.env.NODE_ENV !== 'production';
26646
-
26647
- var warning = function() {};
26648
-
26649
- if (__DEV__) {
26650
- var printWarning = function printWarning(format, args) {
26651
- var len = arguments.length;
26652
- args = new Array(len > 1 ? len - 1 : 0);
26653
- for (var key = 1; key < len; key++) {
26654
- args[key - 1] = arguments[key];
26655
- }
26656
- var argIndex = 0;
26657
- var message = 'Warning: ' +
26658
- format.replace(/%s/g, function() {
26659
- return args[argIndex++];
26660
- });
26661
- if (typeof console !== 'undefined') {
26662
- console.error(message);
26663
- }
26664
- try {
26665
- // --- Welcome to debugging React ---
26666
- // This error was thrown as a convenience so that you can use this stack
26667
- // to find the callsite that caused this warning to fire.
26668
- throw new Error(message);
26669
- } catch (x) {}
26670
- }
26671
-
26672
- warning = function(condition, format, args) {
26673
- var len = arguments.length;
26674
- args = new Array(len > 2 ? len - 2 : 0);
26675
- for (var key = 2; key < len; key++) {
26676
- args[key - 2] = arguments[key];
26677
- }
26678
- if (format === undefined) {
26679
- throw new Error(
26680
- '`warning(condition, format, ...args)` requires a warning ' +
26681
- 'message argument'
26682
- );
26683
- }
26684
- if (!condition) {
26685
- printWarning.apply(null, [format].concat(args));
26686
- }
26687
- };
26688
- }
26689
-
26690
- module.exports = warning;
26691
-
26692
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
26693
-
26694
- /***/ }),
26695
- /* 469 */
26696
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26697
-
26698
- "use strict";
26699
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return unwrapArray; });
26700
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return safeInvoke; });
26701
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return shallowEqual; });
26702
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return setRef; });
26703
- /**
26704
- * Takes an argument and if it's an array, returns the first item in the array,
26705
- * otherwise returns the argument. Used for Preact compatibility.
26706
- */
26707
- var unwrapArray = function unwrapArray(arg) {
26708
- return Array.isArray(arg) ? arg[0] : arg;
26709
- };
26710
- /**
26711
- * Takes a maybe-undefined function and arbitrary args and invokes the function
26712
- * only if it is defined.
26713
- */
26714
-
26715
- var safeInvoke = function safeInvoke(fn) {
26716
- if (typeof fn === "function") {
26717
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
26718
- args[_key - 1] = arguments[_key];
26719
- }
26720
-
26721
- return fn.apply(void 0, args);
26722
- }
26723
- };
26724
- /**
26725
- * Does a shallow equality check of two objects by comparing the reference
26726
- * equality of each value.
26727
- */
26728
-
26729
- var shallowEqual = function shallowEqual(objA, objB) {
26730
- var aKeys = Object.keys(objA);
26731
- var bKeys = Object.keys(objB);
26732
-
26733
- if (bKeys.length !== aKeys.length) {
26734
- return false;
26735
- }
26736
-
26737
- for (var i = 0; i < bKeys.length; i++) {
26738
- var key = aKeys[i];
26739
-
26740
- if (objA[key] !== objB[key]) {
26741
- return false;
26742
- }
26743
- }
26744
-
26745
- return true;
26746
- };
26747
- /**
26748
- * Sets a ref using either a ref callback or a ref object
26749
- */
26750
-
26751
- var setRef = function setRef(ref, node) {
26752
- // if its a function call it
26753
- if (typeof ref === "function") {
26754
- return safeInvoke(ref, node);
26755
- } // otherwise we should treat it as a ref object
26756
- else if (ref != null) {
26757
- ref.current = node;
26758
- }
26759
- };
26760
-
26761
- /***/ }),
26762
- /* 470 */
26763
- /***/ (function(module, exports, __webpack_require__) {
26764
-
26765
- "use strict";
26766
-
26767
-
26768
- 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); }
26769
-
26770
- var _react = _interopRequireWildcard(__webpack_require__(0));
26771
-
26772
- var _reactDom = _interopRequireDefault(__webpack_require__(14));
26773
-
26774
- var _reactRouterDom = __webpack_require__(46);
26775
-
26776
- var _queryString = _interopRequireDefault(__webpack_require__(29));
26777
-
26778
- var _QuadsAdCreateRouter = _interopRequireDefault(__webpack_require__(229));
26779
-
26780
- __webpack_require__(582);
26781
-
26782
- var _QuadsAdmin = _interopRequireDefault(__webpack_require__(583));
26783
-
26784
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
26785
-
26786
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
26787
-
26788
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26789
-
26790
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26791
-
26792
- 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); } }
26793
-
26794
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
26795
-
26796
- 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(subClass, superClass); }
26797
-
26798
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26799
-
26800
- 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); }; }
26801
-
26802
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
26803
-
26804
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26805
-
26806
- 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; } }
26807
-
26808
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26809
-
26810
- var QuadsAdRootComponent = /*#__PURE__*/function (_Component) {
26811
- _inherits(QuadsAdRootComponent, _Component);
26812
-
26813
- var _super = _createSuper(QuadsAdRootComponent);
26814
-
26815
- function QuadsAdRootComponent() {
26816
- _classCallCheck(this, QuadsAdRootComponent);
26817
-
26818
- return _super.apply(this, arguments);
26819
- }
26820
-
26821
- _createClass(QuadsAdRootComponent, [{
26822
- key: "render",
26823
- value: function render() {
26824
- return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
26825
- className: "quads-segment"
26826
- }, quads_localize_data.demo_test, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Switch, null, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
26827
- render: function render(props) {
26828
- var page = _queryString["default"].parse(window.location.search);
26829
-
26830
- if (typeof page.path != 'undefined') {
26831
- if (page.path.includes('settings') || page.path.includes('reports')) {
26832
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdmin["default"], props);
26833
- } else if (page.path.includes('wizard')) {
26834
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdCreateRouter["default"], props);
26835
- } else {
26836
- return 'Page not found';
26837
- }
26838
- } else {
26839
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdmin["default"], props);
26840
- }
26841
- }
26842
- }))))));
26843
- }
26844
- }]);
26845
-
26846
- return QuadsAdRootComponent;
26847
- }(_react.Component);
26848
-
26849
- _reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(QuadsAdRootComponent, null), document.getElementById('quads-ad-content'));
26850
-
26851
- /***/ }),
26852
- /* 471 */
26853
- /***/ (function(module, exports, __webpack_require__) {
26854
-
26855
- "use strict";
26856
- /** @license React v16.14.0
26857
- * react.production.min.js
26858
- *
26859
- * Copyright (c) Facebook, Inc. and its affiliates.
26860
- *
26861
- * This source code is licensed under the MIT license found in the
26862
- * LICENSE file in the root directory of this source tree.
26863
- */
26864
-
26865
- var l=__webpack_require__(63),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,z=n?Symbol.for("react.memo"):60115,A=n?Symbol.for("react.lazy"):
26866
- 60116,B="function"===typeof Symbol&&Symbol.iterator;function C(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
26867
- var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E={};function F(a,b,c){this.props=a;this.context=b;this.refs=E;this.updater=c||D}F.prototype.isReactComponent={};F.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(C(85));this.updater.enqueueSetState(this,a,b,"setState")};F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
26868
- function G(){}G.prototype=F.prototype;function H(a,b,c){this.props=a;this.context=b;this.refs=E;this.updater=c||D}var I=H.prototype=new G;I.constructor=H;l(I,F.prototype);I.isPureReactComponent=!0;var J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};
26869
- function M(a,b,c){var e,d={},g=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K.call(b,e)&&!L.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];d.children=h}if(a&&a.defaultProps)for(e in f=a.defaultProps,f)void 0===d[e]&&(d[e]=f[e]);return{$$typeof:p,type:a,key:g,ref:k,props:d,_owner:J.current}}
26870
- function N(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g,Q=[];function R(a,b,c,e){if(Q.length){var d=Q.pop();d.result=a;d.keyPrefix=b;d.func=c;d.context=e;d.count=0;return d}return{result:a,keyPrefix:b,func:c,context:e,count:0}}
26871
- function S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a)}
26872
- function T(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+U(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+U(d,k);g+=T(d,f,c,e)}else if(null===a||"object"!==typeof a?f=null:(f=B&&a[B]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),k=
26873
- 0;!(d=a.next()).done;)d=d.value,f=b+U(d,k++),g+=T(d,f,c,e);else if("object"===d)throw c=""+a,Error(C(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function V(a,b,c){return null==a?0:T(a,"",b,c)}function U(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function W(a,b){a.func.call(a.context,b,a.count++)}
26874
- function aa(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?X(a,e,c,function(a){return a}):null!=a&&(O(a)&&(a=N(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+c)),e.push(a))}function X(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(P,"$&/")+"/");b=R(b,g,e,d);V(a,aa,b);S(b)}var Y={current:null};function Z(){var a=Y.current;if(null===a)throw Error(C(321));return a}
26875
- var ba={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J,IsSomeRendererActing:{current:!1},assign:l};exports.Children={map:function(a,b,c){if(null==a)return a;var e=[];X(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=R(null,null,b,c);V(a,W,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];X(a,b,null,function(a){return a});return b},only:function(a){if(!O(a))throw Error(C(143));return a}};
26876
- exports.Component=F;exports.Fragment=r;exports.Profiler=u;exports.PureComponent=H;exports.StrictMode=t;exports.Suspense=y;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ba;
26877
- exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(C(267,a));var e=l({},a.props),d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=J.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)K.call(b,h)&&!L.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==f?f[h]:b[h])}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){f=Array(h);for(var m=0;m<h;m++)f[m]=arguments[m+2];e.children=f}return{$$typeof:p,type:a.type,
26878
- key:d,ref:g,props:e,_owner:k}};exports.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:x,render:a}};exports.isValidElement=O;
26879
- exports.lazy=function(a){return{$$typeof:A,_ctor:a,_status:-1,_result:null}};exports.memo=function(a,b){return{$$typeof:z,type:a,compare:void 0===b?null:b}};exports.useCallback=function(a,b){return Z().useCallback(a,b)};exports.useContext=function(a,b){return Z().useContext(a,b)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return Z().useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return Z().useImperativeHandle(a,b,c)};
26880
- exports.useLayoutEffect=function(a,b){return Z().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return Z().useMemo(a,b)};exports.useReducer=function(a,b,c){return Z().useReducer(a,b,c)};exports.useRef=function(a){return Z().useRef(a)};exports.useState=function(a){return Z().useState(a)};exports.version="16.14.0";
26881
-
26882
-
26883
- /***/ }),
26884
- /* 472 */
26885
- /***/ (function(module, exports, __webpack_require__) {
26886
-
26887
- "use strict";
26888
- /* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.14.0
26889
- * react.development.js
26890
- *
26891
- * Copyright (c) Facebook, Inc. and its affiliates.
26892
- *
26893
- * This source code is licensed under the MIT license found in the
26894
- * LICENSE file in the root directory of this source tree.
26895
- */
26896
-
26897
-
26898
-
26899
-
26900
-
26901
- if (process.env.NODE_ENV !== "production") {
26902
- (function() {
26903
- 'use strict';
26904
-
26905
- var _assign = __webpack_require__(63);
26906
- var checkPropTypes = __webpack_require__(138);
26907
-
26908
- var ReactVersion = '16.14.0';
26909
-
26910
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
26911
- // nor polyfill, then a plain number is used for performance.
26912
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
26913
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
26914
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
26915
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
26916
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
26917
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
26918
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
26919
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
26920
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
26921
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
26922
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
26923
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
26924
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
26925
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
26926
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
26927
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
26928
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
26929
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
26930
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
26931
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
26932
- function getIteratorFn(maybeIterable) {
26933
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
26934
- return null;
26935
- }
26936
-
26937
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
26938
-
26939
- if (typeof maybeIterator === 'function') {
26940
- return maybeIterator;
26941
- }
26942
-
26943
- return null;
26944
- }
26945
-
26946
- /**
26947
- * Keeps track of the current dispatcher.
26948
- */
26949
- var ReactCurrentDispatcher = {
26950
- /**
26951
- * @internal
26952
- * @type {ReactComponent}
26953
- */
26954
- current: null
26955
- };
26956
-
26957
- /**
26958
- * Keeps track of the current batch's configuration such as how long an update
26959
- * should suspend for if it needs to.
26960
- */
26961
- var ReactCurrentBatchConfig = {
26962
- suspense: null
26963
- };
26964
-
26965
- /**
26966
- * Keeps track of the current owner.
26967
- *
26968
- * The current owner is the component who should own any components that are
26969
- * currently being constructed.
26970
- */
26971
- var ReactCurrentOwner = {
26972
- /**
26973
- * @internal
26974
- * @type {ReactComponent}
26975
- */
26976
- current: null
26977
- };
26978
-
26979
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
26980
- function describeComponentFrame (name, source, ownerName) {
26981
- var sourceInfo = '';
26982
-
26983
- if (source) {
26984
- var path = source.fileName;
26985
- var fileName = path.replace(BEFORE_SLASH_RE, '');
26986
-
26987
- {
26988
- // In DEV, include code for a common special case:
26989
- // prefer "folder/index.js" instead of just "index.js".
26990
- if (/^index\./.test(fileName)) {
26991
- var match = path.match(BEFORE_SLASH_RE);
26992
-
26993
- if (match) {
26994
- var pathBeforeSlash = match[1];
26995
-
26996
- if (pathBeforeSlash) {
26997
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
26998
- fileName = folderName + '/' + fileName;
26999
- }
27000
- }
27001
- }
27002
- }
27003
-
27004
- sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
27005
- } else if (ownerName) {
27006
- sourceInfo = ' (created by ' + ownerName + ')';
27007
- }
27008
-
27009
- return '\n in ' + (name || 'Unknown') + sourceInfo;
27010
- }
27011
-
27012
- var Resolved = 1;
27013
- function refineResolvedLazyComponent(lazyComponent) {
27014
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
27015
- }
27016
-
27017
- function getWrappedName(outerType, innerType, wrapperName) {
27018
- var functionName = innerType.displayName || innerType.name || '';
27019
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
27020
- }
27021
-
27022
- function getComponentName(type) {
27023
- if (type == null) {
27024
- // Host root, text node or just invalid type.
27025
- return null;
27026
- }
27027
-
27028
- {
27029
- if (typeof type.tag === 'number') {
27030
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
27031
- }
27032
- }
27033
-
27034
- if (typeof type === 'function') {
27035
- return type.displayName || type.name || null;
27036
- }
27037
-
27038
- if (typeof type === 'string') {
27039
- return type;
27040
- }
27041
-
27042
- switch (type) {
27043
- case REACT_FRAGMENT_TYPE:
27044
- return 'Fragment';
27045
-
27046
- case REACT_PORTAL_TYPE:
27047
- return 'Portal';
27048
-
27049
- case REACT_PROFILER_TYPE:
27050
- return "Profiler";
27051
-
27052
- case REACT_STRICT_MODE_TYPE:
27053
- return 'StrictMode';
27054
-
27055
- case REACT_SUSPENSE_TYPE:
27056
- return 'Suspense';
27057
-
27058
- case REACT_SUSPENSE_LIST_TYPE:
27059
- return 'SuspenseList';
27060
- }
27061
-
27062
- if (typeof type === 'object') {
27063
- switch (type.$$typeof) {
27064
- case REACT_CONTEXT_TYPE:
27065
- return 'Context.Consumer';
27066
-
27067
- case REACT_PROVIDER_TYPE:
27068
- return 'Context.Provider';
27069
-
27070
- case REACT_FORWARD_REF_TYPE:
27071
- return getWrappedName(type, type.render, 'ForwardRef');
27072
-
27073
- case REACT_MEMO_TYPE:
27074
- return getComponentName(type.type);
27075
-
27076
- case REACT_BLOCK_TYPE:
27077
- return getComponentName(type.render);
27078
-
27079
- case REACT_LAZY_TYPE:
27080
- {
27081
- var thenable = type;
27082
- var resolvedThenable = refineResolvedLazyComponent(thenable);
27083
-
27084
- if (resolvedThenable) {
27085
- return getComponentName(resolvedThenable);
27086
- }
27087
-
27088
- break;
27089
- }
27090
- }
27091
- }
27092
-
27093
- return null;
27094
- }
27095
-
27096
- var ReactDebugCurrentFrame = {};
27097
- var currentlyValidatingElement = null;
27098
- function setCurrentlyValidatingElement(element) {
27099
- {
27100
- currentlyValidatingElement = element;
27101
- }
27102
- }
27103
-
27104
- {
27105
- // Stack implementation injected by the current renderer.
27106
- ReactDebugCurrentFrame.getCurrentStack = null;
27107
-
27108
- ReactDebugCurrentFrame.getStackAddendum = function () {
27109
- var stack = ''; // Add an extra top frame while an element is being validated
27110
-
27111
- if (currentlyValidatingElement) {
27112
- var name = getComponentName(currentlyValidatingElement.type);
27113
- var owner = currentlyValidatingElement._owner;
27114
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
27115
- } // Delegate to the injected renderer-specific implementation
27116
-
27117
-
27118
- var impl = ReactDebugCurrentFrame.getCurrentStack;
27119
-
27120
- if (impl) {
27121
- stack += impl() || '';
27122
- }
27123
-
27124
- return stack;
27125
- };
27126
- }
27127
-
27128
- /**
27129
- * Used by act() to track whether you're inside an act() scope.
27130
- */
27131
- var IsSomeRendererActing = {
27132
- current: false
27133
- };
27134
-
27135
- var ReactSharedInternals = {
27136
- ReactCurrentDispatcher: ReactCurrentDispatcher,
27137
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
27138
- ReactCurrentOwner: ReactCurrentOwner,
27139
- IsSomeRendererActing: IsSomeRendererActing,
27140
- // Used by renderers to avoid bundling object-assign twice in UMD bundles:
27141
- assign: _assign
27142
- };
27143
-
27144
- {
27145
- _assign(ReactSharedInternals, {
27146
- // These should not be included in production.
27147
- ReactDebugCurrentFrame: ReactDebugCurrentFrame,
27148
- // Shim for React DOM 16.0.0 which still destructured (but not used) this.
27149
- // TODO: remove in React 17.0.
27150
- ReactComponentTreeHook: {}
27151
- });
27152
- }
27153
-
27154
- // by calls to these methods by a Babel plugin.
27155
- //
27156
- // In PROD (or in packages without access to React internals),
27157
- // they are left as they are instead.
27158
-
27159
- function warn(format) {
27160
- {
27161
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
27162
- args[_key - 1] = arguments[_key];
27163
- }
27164
-
27165
- printWarning('warn', format, args);
27166
- }
27167
- }
27168
- function error(format) {
27169
- {
27170
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
27171
- args[_key2 - 1] = arguments[_key2];
27172
- }
27173
-
27174
- printWarning('error', format, args);
27175
- }
27176
- }
27177
-
27178
- function printWarning(level, format, args) {
27179
- // When changing this logic, you might want to also
27180
- // update consoleWithStackDev.www.js as well.
27181
- {
27182
- var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
27183
-
27184
- if (!hasExistingStack) {
27185
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
27186
- var stack = ReactDebugCurrentFrame.getStackAddendum();
27187
-
27188
- if (stack !== '') {
27189
- format += '%s';
27190
- args = args.concat([stack]);
27191
- }
27192
- }
27193
-
27194
- var argsWithFormat = args.map(function (item) {
27195
- return '' + item;
27196
- }); // Careful: RN currently depends on this prefix
27197
-
27198
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
27199
- // breaks IE9: https://github.com/facebook/react/issues/13610
27200
- // eslint-disable-next-line react-internal/no-production-logging
27201
-
27202
- Function.prototype.apply.call(console[level], console, argsWithFormat);
27203
-
27204
- try {
27205
- // --- Welcome to debugging React ---
27206
- // This error was thrown as a convenience so that you can use this stack
27207
- // to find the callsite that caused this warning to fire.
27208
- var argIndex = 0;
27209
- var message = 'Warning: ' + format.replace(/%s/g, function () {
27210
- return args[argIndex++];
27211
- });
27212
- throw new Error(message);
27213
- } catch (x) {}
27214
- }
27215
- }
27216
-
27217
- var didWarnStateUpdateForUnmountedComponent = {};
27218
-
27219
- function warnNoop(publicInstance, callerName) {
27220
- {
27221
- var _constructor = publicInstance.constructor;
27222
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
27223
- var warningKey = componentName + "." + callerName;
27224
-
27225
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
27226
- return;
27227
- }
27228
-
27229
- error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
27230
-
27231
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
27232
- }
27233
- }
27234
- /**
27235
- * This is the abstract API for an update queue.
27236
- */
27237
-
27238
-
27239
- var ReactNoopUpdateQueue = {
27240
- /**
27241
- * Checks whether or not this composite component is mounted.
27242
- * @param {ReactClass} publicInstance The instance we want to test.
27243
- * @return {boolean} True if mounted, false otherwise.
27244
- * @protected
27245
- * @final
27246
- */
27247
- isMounted: function (publicInstance) {
27248
- return false;
27249
- },
27250
-
27251
- /**
27252
- * Forces an update. This should only be invoked when it is known with
27253
- * certainty that we are **not** in a DOM transaction.
27254
- *
27255
- * You may want to call this when you know that some deeper aspect of the
27256
- * component's state has changed but `setState` was not called.
27257
- *
27258
- * This will not invoke `shouldComponentUpdate`, but it will invoke
27259
- * `componentWillUpdate` and `componentDidUpdate`.
27260
- *
27261
- * @param {ReactClass} publicInstance The instance that should rerender.
27262
- * @param {?function} callback Called after component is updated.
27263
- * @param {?string} callerName name of the calling function in the public API.
27264
- * @internal
27265
- */
27266
- enqueueForceUpdate: function (publicInstance, callback, callerName) {
27267
- warnNoop(publicInstance, 'forceUpdate');
27268
- },
27269
-
27270
- /**
27271
- * Replaces all of the state. Always use this or `setState` to mutate state.
27272
- * You should treat `this.state` as immutable.
27273
- *
27274
- * There is no guarantee that `this.state` will be immediately updated, so
27275
- * accessing `this.state` after calling this method may return the old value.
27276
- *
27277
- * @param {ReactClass} publicInstance The instance that should rerender.
27278
- * @param {object} completeState Next state.
27279
- * @param {?function} callback Called after component is updated.
27280
- * @param {?string} callerName name of the calling function in the public API.
27281
- * @internal
27282
- */
27283
- enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
27284
- warnNoop(publicInstance, 'replaceState');
27285
- },
27286
-
27287
- /**
27288
- * Sets a subset of the state. This only exists because _pendingState is
27289
- * internal. This provides a merging strategy that is not available to deep
27290
- * properties which is confusing. TODO: Expose pendingState or don't use it
27291
- * during the merge.
27292
- *
27293
- * @param {ReactClass} publicInstance The instance that should rerender.
27294
- * @param {object} partialState Next partial state to be merged with state.
27295
- * @param {?function} callback Called after component is updated.
27296
- * @param {?string} Name of the calling function in the public API.
27297
- * @internal
27298
- */
27299
- enqueueSetState: function (publicInstance, partialState, callback, callerName) {
27300
- warnNoop(publicInstance, 'setState');
27301
- }
27302
- };
27303
-
27304
- var emptyObject = {};
27305
-
27306
- {
27307
- Object.freeze(emptyObject);
27308
- }
27309
- /**
27310
- * Base class helpers for the updating state of a component.
27311
- */
27312
-
27313
-
27314
- function Component(props, context, updater) {
27315
- this.props = props;
27316
- this.context = context; // If a component has string refs, we will assign a different object later.
27317
-
27318
- this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
27319
- // renderer.
27320
-
27321
- this.updater = updater || ReactNoopUpdateQueue;
27322
- }
27323
-
27324
- Component.prototype.isReactComponent = {};
27325
- /**
27326
- * Sets a subset of the state. Always use this to mutate
27327
- * state. You should treat `this.state` as immutable.
27328
- *
27329
- * There is no guarantee that `this.state` will be immediately updated, so
27330
- * accessing `this.state` after calling this method may return the old value.
27331
- *
27332
- * There is no guarantee that calls to `setState` will run synchronously,
27333
- * as they may eventually be batched together. You can provide an optional
27334
- * callback that will be executed when the call to setState is actually
27335
- * completed.
27336
- *
27337
- * When a function is provided to setState, it will be called at some point in
27338
- * the future (not synchronously). It will be called with the up to date
27339
- * component arguments (state, props, context). These values can be different
27340
- * from this.* because your function may be called after receiveProps but before
27341
- * shouldComponentUpdate, and this new state, props, and context will not yet be
27342
- * assigned to this.
27343
- *
27344
- * @param {object|function} partialState Next partial state or function to
27345
- * produce next partial state to be merged with current state.
27346
- * @param {?function} callback Called after state is updated.
27347
- * @final
27348
- * @protected
27349
- */
27350
-
27351
- Component.prototype.setState = function (partialState, callback) {
27352
- if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
27353
- {
27354
- throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
27355
- }
27356
- }
27357
-
27358
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
27359
- };
27360
- /**
27361
- * Forces an update. This should only be invoked when it is known with
27362
- * certainty that we are **not** in a DOM transaction.
27363
- *
27364
- * You may want to call this when you know that some deeper aspect of the
27365
- * component's state has changed but `setState` was not called.
27366
- *
27367
- * This will not invoke `shouldComponentUpdate`, but it will invoke
27368
- * `componentWillUpdate` and `componentDidUpdate`.
27369
- *
27370
- * @param {?function} callback Called after update is complete.
27371
- * @final
27372
- * @protected
27373
- */
27374
-
27375
-
27376
- Component.prototype.forceUpdate = function (callback) {
27377
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
27378
- };
27379
- /**
27380
- * Deprecated APIs. These APIs used to exist on classic React classes but since
27381
- * we would like to deprecate them, we're not going to move them over to this
27382
- * modern base class. Instead, we define a getter that warns if it's accessed.
27383
- */
27384
-
27385
-
27386
- {
27387
- var deprecatedAPIs = {
27388
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
27389
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
27390
- };
27391
-
27392
- var defineDeprecationWarning = function (methodName, info) {
27393
- Object.defineProperty(Component.prototype, methodName, {
27394
- get: function () {
27395
- warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
27396
-
27397
- return undefined;
27398
- }
27399
- });
27400
- };
27401
-
27402
- for (var fnName in deprecatedAPIs) {
27403
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
27404
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
27405
- }
27406
- }
27407
- }
27408
-
27409
- function ComponentDummy() {}
27410
-
27411
- ComponentDummy.prototype = Component.prototype;
27412
- /**
27413
- * Convenience component with default shallow equality check for sCU.
27414
- */
27415
-
27416
- function PureComponent(props, context, updater) {
27417
- this.props = props;
27418
- this.context = context; // If a component has string refs, we will assign a different object later.
27419
-
27420
- this.refs = emptyObject;
27421
- this.updater = updater || ReactNoopUpdateQueue;
27422
- }
27423
-
27424
- var pureComponentPrototype = PureComponent.prototype = new Comp