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 | ![]() |
Version | 2.0.24 |
Comparing to | |
See all releases |
Code changes from version 2.0.23 to 2.0.24
- admin/assets/js/dist/adminscript.js +0 -27681
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 |
-
|