Version Description
(03rd August 2021) = * Fix: Option panel was getting blank #403
Download this release
Release Info
Developer | wpquads |
Plugin | AdSense Plugin WP QUADS |
Version | 2.0.28.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.28.1 to 2.0.28.2
- admin/assets/js/dist/adminscript.js +0 -26539
admin/assets/js/dist/adminscript.js
CHANGED
@@ -1,147402 +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 = 484);
|
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__(485);
|
75 |
-
} else {
|
76 |
-
module.exports = __webpack_require__(486);
|
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__(233);
|
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__(496)(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__(497)();
|
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_js__ = __webpack_require__(47);
|
328 |
-
|
329 |
-
function _objectWithoutProperties(source, excluded) {
|
330 |
-
if (source == null) return {};
|
331 |
-
var target = Object(__WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose_js__["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__(28);
|
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__(520);
|
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__(521);
|
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__(522);
|
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__(523);
|
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__(524);
|
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__(525);
|
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__(528);
|
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__(529);
|
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__(530);
|
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__(820);
|
542 |
-
|
543 |
-
var _flattenNames2 = _interopRequireDefault(_flattenNames);
|
544 |
-
|
545 |
-
var _mergeClasses = __webpack_require__(896);
|
546 |
-
|
547 |
-
var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
|
548 |
-
|
549 |
-
var _autoprefix = __webpack_require__(922);
|
550 |
-
|
551 |
-
var _autoprefix2 = _interopRequireDefault(_autoprefix);
|
552 |
-
|
553 |
-
var _hover2 = __webpack_require__(923);
|
554 |
-
|
555 |
-
var _hover3 = _interopRequireDefault(_hover2);
|
556 |
-
|
557 |
-
var _active = __webpack_require__(924);
|
558 |
-
|
559 |
-
var _active2 = _interopRequireDefault(_active);
|
560 |
-
|
561 |
-
var _loop2 = __webpack_require__(925);
|
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__(609);
|
638 |
-
/* unused harmony reexport deprecatedPropType */
|
639 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isMuiElement__ = __webpack_require__(81);
|
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__(32);
|
642 |
-
/* unused harmony reexport ownerDocument */
|
643 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ownerWindow__ = __webpack_require__(103);
|
644 |
-
/* unused harmony reexport ownerWindow */
|
645 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__requirePropFactory__ = __webpack_require__(286);
|
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__(104);
|
650 |
-
/* unused harmony reexport unsupportedProp */
|
651 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useControlled__ = __webpack_require__(49);
|
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__(45);
|
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__(105);
|
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__(82);
|
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__(487);
|
719 |
-
} else {
|
720 |
-
module.exports = __webpack_require__(490);
|
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__(926);
|
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__(929);
|
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__(930);
|
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__(932);
|
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__(992);
|
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__(439);
|
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__(1008);
|
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__(21);
|
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__(600);
|
768 |
-
/* unused harmony reexport unstable_createMuiStrictModeTheme */
|
769 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createStyles__ = __webpack_require__(601);
|
770 |
-
/* unused harmony reexport createStyles */
|
771 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__makeStyles__ = __webpack_require__(602);
|
772 |
-
/* unused harmony reexport makeStyles */
|
773 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__responsiveFontSizes__ = __webpack_require__(603);
|
774 |
-
/* unused harmony reexport responsiveFontSizes */
|
775 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styled__ = __webpack_require__(285);
|
776 |
-
/* unused harmony reexport styled */
|
777 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__transitions__ = __webpack_require__(40);
|
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__(19);
|
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__(605);
|
784 |
-
/* unused harmony reexport withTheme */
|
785 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_ui_styles__ = __webpack_require__(28);
|
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, __webpack_exports__, __webpack_require__) {
|
859 |
-
|
860 |
-
"use strict";
|
861 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useTheme;
|
862 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_styles__ = __webpack_require__(28);
|
863 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
|
864 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
|
865 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(75);
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
function useTheme() {
|
870 |
-
var theme = Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_styles__["f" /* useTheme */])() || __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */];
|
871 |
-
|
872 |
-
if (process.env.NODE_ENV !== 'production') {
|
873 |
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
874 |
-
__WEBPACK_IMPORTED_MODULE_1_react___default.a.useDebugValue(theme);
|
875 |
-
}
|
876 |
-
|
877 |
-
return theme;
|
878 |
-
}
|
879 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
880 |
-
|
881 |
-
/***/ }),
|
882 |
-
/* 20 */
|
883 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
884 |
-
|
885 |
-
"use strict";
|
886 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ButtonBase__ = __webpack_require__(614);
|
887 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ButtonBase__["a"]; });
|
888 |
-
|
889 |
-
|
890 |
-
/***/ }),
|
891 |
-
/* 21 */
|
892 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
893 |
-
|
894 |
-
"use strict";
|
895 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export hexToRgb */
|
896 |
-
/* unused harmony export rgbToHex */
|
897 |
-
/* unused harmony export hslToRgb */
|
898 |
-
/* unused harmony export decomposeColor */
|
899 |
-
/* unused harmony export recomposeColor */
|
900 |
-
/* harmony export (immutable) */ __webpack_exports__["d"] = getContrastRatio;
|
901 |
-
/* unused harmony export getLuminance */
|
902 |
-
/* harmony export (immutable) */ __webpack_exports__["b"] = emphasize;
|
903 |
-
/* harmony export (immutable) */ __webpack_exports__["c"] = fade;
|
904 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = darken;
|
905 |
-
/* harmony export (immutable) */ __webpack_exports__["e"] = lighten;
|
906 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(8);
|
907 |
-
|
908 |
-
|
909 |
-
/* eslint-disable no-use-before-define */
|
910 |
-
|
911 |
-
/**
|
912 |
-
* Returns a number whose value is limited to the given range.
|
913 |
-
*
|
914 |
-
* @param {number} value The value to be clamped
|
915 |
-
* @param {number} min The lower boundary of the output range
|
916 |
-
* @param {number} max The upper boundary of the output range
|
917 |
-
* @returns {number} A number in the range [min, max]
|
918 |
-
*/
|
919 |
-
function clamp(value) {
|
920 |
-
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
921 |
-
var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
922 |
-
|
923 |
-
if (process.env.NODE_ENV !== 'production') {
|
924 |
-
if (value < min || value > max) {
|
925 |
-
console.error("Material-UI: The value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "]."));
|
926 |
-
}
|
927 |
-
}
|
928 |
-
|
929 |
-
return Math.min(Math.max(min, value), max);
|
930 |
-
}
|
931 |
-
/**
|
932 |
-
* Converts a color from CSS hex format to CSS rgb format.
|
933 |
-
*
|
934 |
-
* @param {string} color - Hex color, i.e. #nnn or #nnnnnn
|
935 |
-
* @returns {string} A CSS rgb color string
|
936 |
-
*/
|
937 |
-
|
938 |
-
|
939 |
-
function hexToRgb(color) {
|
940 |
-
color = color.substr(1);
|
941 |
-
var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g');
|
942 |
-
var colors = color.match(re);
|
943 |
-
|
944 |
-
if (colors && colors[0].length === 1) {
|
945 |
-
colors = colors.map(function (n) {
|
946 |
-
return n + n;
|
947 |
-
});
|
948 |
-
}
|
949 |
-
|
950 |
-
return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) {
|
951 |
-
return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
|
952 |
-
}).join(', '), ")") : '';
|
953 |
-
}
|
954 |
-
|
955 |
-
function intToHex(int) {
|
956 |
-
var hex = int.toString(16);
|
957 |
-
return hex.length === 1 ? "0".concat(hex) : hex;
|
958 |
-
}
|
959 |
-
/**
|
960 |
-
* Converts a color from CSS rgb format to CSS hex format.
|
961 |
-
*
|
962 |
-
* @param {string} color - RGB color, i.e. rgb(n, n, n)
|
963 |
-
* @returns {string} A CSS rgb color string, i.e. #nnnnnn
|
964 |
-
*/
|
965 |
-
|
966 |
-
|
967 |
-
function rgbToHex(color) {
|
968 |
-
// Idempotent
|
969 |
-
if (color.indexOf('#') === 0) {
|
970 |
-
return color;
|
971 |
-
}
|
972 |
-
|
973 |
-
var _decomposeColor = decomposeColor(color),
|
974 |
-
values = _decomposeColor.values;
|
975 |
-
|
976 |
-
return "#".concat(values.map(function (n) {
|
977 |
-
return intToHex(n);
|
978 |
-
}).join(''));
|
979 |
-
}
|
980 |
-
/**
|
981 |
-
* Converts a color from hsl format to rgb format.
|
982 |
-
*
|
983 |
-
* @param {string} color - HSL color values
|
984 |
-
* @returns {string} rgb color values
|
985 |
-
*/
|
986 |
-
|
987 |
-
function hslToRgb(color) {
|
988 |
-
color = decomposeColor(color);
|
989 |
-
var _color = color,
|
990 |
-
values = _color.values;
|
991 |
-
var h = values[0];
|
992 |
-
var s = values[1] / 100;
|
993 |
-
var l = values[2] / 100;
|
994 |
-
var a = s * Math.min(l, 1 - l);
|
995 |
-
|
996 |
-
var f = function f(n) {
|
997 |
-
var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;
|
998 |
-
return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
|
999 |
-
};
|
1000 |
-
|
1001 |
-
var type = 'rgb';
|
1002 |
-
var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
|
1003 |
-
|
1004 |
-
if (color.type === 'hsla') {
|
1005 |
-
type += 'a';
|
1006 |
-
rgb.push(values[3]);
|
1007 |
-
}
|
1008 |
-
|
1009 |
-
return recomposeColor({
|
1010 |
-
type: type,
|
1011 |
-
values: rgb
|
1012 |
-
});
|
1013 |
-
}
|
1014 |
-
/**
|
1015 |
-
* Returns an object with the type and values of a color.
|
1016 |
-
*
|
1017 |
-
* Note: Does not support rgb % values.
|
1018 |
-
*
|
1019 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
1020 |
-
* @returns {object} - A MUI color object: {type: string, values: number[]}
|
1021 |
-
*/
|
1022 |
-
|
1023 |
-
function decomposeColor(color) {
|
1024 |
-
// Idempotent
|
1025 |
-
if (color.type) {
|
1026 |
-
return color;
|
1027 |
-
}
|
1028 |
-
|
1029 |
-
if (color.charAt(0) === '#') {
|
1030 |
-
return decomposeColor(hexToRgb(color));
|
1031 |
-
}
|
1032 |
-
|
1033 |
-
var marker = color.indexOf('(');
|
1034 |
-
var type = color.substring(0, marker);
|
1035 |
-
|
1036 |
-
if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
|
1037 |
-
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));
|
1038 |
-
}
|
1039 |
-
|
1040 |
-
var values = color.substring(marker + 1, color.length - 1).split(',');
|
1041 |
-
values = values.map(function (value) {
|
1042 |
-
return parseFloat(value);
|
1043 |
-
});
|
1044 |
-
return {
|
1045 |
-
type: type,
|
1046 |
-
values: values
|
1047 |
-
};
|
1048 |
-
}
|
1049 |
-
/**
|
1050 |
-
* Converts a color object with type and values to a string.
|
1051 |
-
*
|
1052 |
-
* @param {object} color - Decomposed color
|
1053 |
-
* @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
|
1054 |
-
* @param {array} color.values - [n,n,n] or [n,n,n,n]
|
1055 |
-
* @returns {string} A CSS color string
|
1056 |
-
*/
|
1057 |
-
|
1058 |
-
function recomposeColor(color) {
|
1059 |
-
var type = color.type;
|
1060 |
-
var values = color.values;
|
1061 |
-
|
1062 |
-
if (type.indexOf('rgb') !== -1) {
|
1063 |
-
// Only convert the first 3 values to int (i.e. not alpha)
|
1064 |
-
values = values.map(function (n, i) {
|
1065 |
-
return i < 3 ? parseInt(n, 10) : n;
|
1066 |
-
});
|
1067 |
-
} else if (type.indexOf('hsl') !== -1) {
|
1068 |
-
values[1] = "".concat(values[1], "%");
|
1069 |
-
values[2] = "".concat(values[2], "%");
|
1070 |
-
}
|
1071 |
-
|
1072 |
-
return "".concat(type, "(").concat(values.join(', '), ")");
|
1073 |
-
}
|
1074 |
-
/**
|
1075 |
-
* Calculates the contrast ratio between two colors.
|
1076 |
-
*
|
1077 |
-
* Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
1078 |
-
*
|
1079 |
-
* @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
1080 |
-
* @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
1081 |
-
* @returns {number} A contrast ratio value in the range 0 - 21.
|
1082 |
-
*/
|
1083 |
-
|
1084 |
-
function getContrastRatio(foreground, background) {
|
1085 |
-
var lumA = getLuminance(foreground);
|
1086 |
-
var lumB = getLuminance(background);
|
1087 |
-
return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
|
1088 |
-
}
|
1089 |
-
/**
|
1090 |
-
* The relative brightness of any point in a color space,
|
1091 |
-
* normalized to 0 for darkest black and 1 for lightest white.
|
1092 |
-
*
|
1093 |
-
* Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
1094 |
-
*
|
1095 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
1096 |
-
* @returns {number} The relative brightness of the color in the range 0 - 1
|
1097 |
-
*/
|
1098 |
-
|
1099 |
-
function getLuminance(color) {
|
1100 |
-
color = decomposeColor(color);
|
1101 |
-
var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;
|
1102 |
-
rgb = rgb.map(function (val) {
|
1103 |
-
val /= 255; // normalized
|
1104 |
-
|
1105 |
-
return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
|
1106 |
-
}); // Truncate at 3 digits
|
1107 |
-
|
1108 |
-
return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
|
1109 |
-
}
|
1110 |
-
/**
|
1111 |
-
* Darken or lighten a color, depending on its luminance.
|
1112 |
-
* Light colors are darkened, dark colors are lightened.
|
1113 |
-
*
|
1114 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
1115 |
-
* @param {number} coefficient=0.15 - multiplier in the range 0 - 1
|
1116 |
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
1117 |
-
*/
|
1118 |
-
|
1119 |
-
function emphasize(color) {
|
1120 |
-
var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
|
1121 |
-
return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
|
1122 |
-
}
|
1123 |
-
/**
|
1124 |
-
* Set the absolute transparency of a color.
|
1125 |
-
* Any existing alpha values are overwritten.
|
1126 |
-
*
|
1127 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
1128 |
-
* @param {number} value - value to set the alpha channel to in the range 0 -1
|
1129 |
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
1130 |
-
*/
|
1131 |
-
|
1132 |
-
function fade(color, value) {
|
1133 |
-
color = decomposeColor(color);
|
1134 |
-
value = clamp(value);
|
1135 |
-
|
1136 |
-
if (color.type === 'rgb' || color.type === 'hsl') {
|
1137 |
-
color.type += 'a';
|
1138 |
-
}
|
1139 |
-
|
1140 |
-
color.values[3] = value;
|
1141 |
-
return recomposeColor(color);
|
1142 |
-
}
|
1143 |
-
/**
|
1144 |
-
* Darkens a color.
|
1145 |
-
*
|
1146 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
1147 |
-
* @param {number} coefficient - multiplier in the range 0 - 1
|
1148 |
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
1149 |
-
*/
|
1150 |
-
|
1151 |
-
function darken(color, coefficient) {
|
1152 |
-
color = decomposeColor(color);
|
1153 |
-
coefficient = clamp(coefficient);
|
1154 |
-
|
1155 |
-
if (color.type.indexOf('hsl') !== -1) {
|
1156 |
-
color.values[2] *= 1 - coefficient;
|
1157 |
-
} else if (color.type.indexOf('rgb') !== -1) {
|
1158 |
-
for (var i = 0; i < 3; i += 1) {
|
1159 |
-
color.values[i] *= 1 - coefficient;
|
1160 |
-
}
|
1161 |
-
}
|
1162 |
-
|
1163 |
-
return recomposeColor(color);
|
1164 |
-
}
|
1165 |
-
/**
|
1166 |
-
* Lightens a color.
|
1167 |
-
*
|
1168 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
1169 |
-
* @param {number} coefficient - multiplier in the range 0 - 1
|
1170 |
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
1171 |
-
*/
|
1172 |
-
|
1173 |
-
function lighten(color, coefficient) {
|
1174 |
-
color = decomposeColor(color);
|
1175 |
-
coefficient = clamp(coefficient);
|
1176 |
-
|
1177 |
-
if (color.type.indexOf('hsl') !== -1) {
|
1178 |
-
color.values[2] += (100 - color.values[2]) * coefficient;
|
1179 |
-
} else if (color.type.indexOf('rgb') !== -1) {
|
1180 |
-
for (var i = 0; i < 3; i += 1) {
|
1181 |
-
color.values[i] += (255 - color.values[i]) * coefficient;
|
1182 |
-
}
|
1183 |
-
}
|
1184 |
-
|
1185 |
-
return recomposeColor(color);
|
1186 |
-
}
|
1187 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
1188 |
-
|
1189 |
-
/***/ }),
|
1190 |
-
/* 22 */
|
1191 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1192 |
-
|
1193 |
-
"use strict";
|
1194 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _slicedToArray;
|
1195 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithHoles_js__ = __webpack_require__(268);
|
1196 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit_js__ = __webpack_require__(566);
|
1197 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray_js__ = __webpack_require__(144);
|
1198 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableRest_js__ = __webpack_require__(269);
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
function _slicedToArray(arr, i) {
|
1204 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithHoles_js__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit_js__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray_js__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableRest_js__["a" /* default */])();
|
1205 |
-
}
|
1206 |
-
|
1207 |
-
/***/ }),
|
1208 |
-
/* 23 */
|
1209 |
-
/***/ (function(module, exports, __webpack_require__) {
|
1210 |
-
|
1211 |
-
"use strict";
|
1212 |
-
/* WEBPACK VAR INJECTION */(function(process) {
|
1213 |
-
|
1214 |
-
if (process.env.NODE_ENV === 'production') {
|
1215 |
-
module.exports = __webpack_require__(526);
|
1216 |
-
} else {
|
1217 |
-
module.exports = __webpack_require__(527);
|
1218 |
-
}
|
1219 |
-
|
1220 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
|
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__(102);
|
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__(606);
|
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__(933);
|
1272 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createAssigner_js__ = __webpack_require__(983);
|
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, exports, __webpack_require__) {
|
1317 |
-
|
1318 |
-
"use strict";
|
1319 |
-
|
1320 |
-
var strictUriEncode = __webpack_require__(509);
|
1321 |
-
var objectAssign = __webpack_require__(63);
|
1322 |
-
|
1323 |
-
function encoderForArrayFormat(opts) {
|
1324 |
-
switch (opts.arrayFormat) {
|
1325 |
-
case 'index':
|
1326 |
-
return function (key, value, index) {
|
1327 |
-
return value === null ? [
|
1328 |
-
encode(key, opts),
|
1329 |
-
'[',
|
1330 |
-
index,
|
1331 |
-
']'
|
1332 |
-
].join('') : [
|
1333 |
-
encode(key, opts),
|
1334 |
-
'[',
|
1335 |
-
encode(index, opts),
|
1336 |
-
']=',
|
1337 |
-
encode(value, opts)
|
1338 |
-
].join('');
|
1339 |
-
};
|
1340 |
-
|
1341 |
-
case 'bracket':
|
1342 |
-
return function (key, value) {
|
1343 |
-
return value === null ? encode(key, opts) : [
|
1344 |
-
encode(key, opts),
|
1345 |
-
'[]=',
|
1346 |
-
encode(value, opts)
|
1347 |
-
].join('');
|
1348 |
-
};
|
1349 |
-
|
1350 |
-
default:
|
1351 |
-
return function (key, value) {
|
1352 |
-
return value === null ? encode(key, opts) : [
|
1353 |
-
encode(key, opts),
|
1354 |
-
'=',
|
1355 |
-
encode(value, opts)
|
1356 |
-
].join('');
|
1357 |
-
};
|
1358 |
-
}
|
1359 |
-
}
|
1360 |
-
|
1361 |
-
function parserForArrayFormat(opts) {
|
1362 |
-
var result;
|
1363 |
-
|
1364 |
-
switch (opts.arrayFormat) {
|
1365 |
-
case 'index':
|
1366 |
-
return function (key, value, accumulator) {
|
1367 |
-
result = /\[(\d*)\]$/.exec(key);
|
1368 |
-
|
1369 |
-
key = key.replace(/\[\d*\]$/, '');
|
1370 |
-
|
1371 |
-
if (!result) {
|
1372 |
-
accumulator[key] = value;
|
1373 |
-
return;
|
1374 |
-
}
|
1375 |
-
|
1376 |
-
if (accumulator[key] === undefined) {
|
1377 |
-
accumulator[key] = {};
|
1378 |
-
}
|
1379 |
-
|
1380 |
-
accumulator[key][result[1]] = value;
|
1381 |
-
};
|
1382 |
-
|
1383 |
-
case 'bracket':
|
1384 |
-
return function (key, value, accumulator) {
|
1385 |
-
result = /(\[\])$/.exec(key);
|
1386 |
-
key = key.replace(/\[\]$/, '');
|
1387 |
-
|
1388 |
-
if (!result) {
|
1389 |
-
accumulator[key] = value;
|
1390 |
-
return;
|
1391 |
-
} else if (accumulator[key] === undefined) {
|
1392 |
-
accumulator[key] = [value];
|
1393 |
-
return;
|
1394 |
-
}
|
1395 |
-
|
1396 |
-
accumulator[key] = [].concat(accumulator[key], value);
|
1397 |
-
};
|
1398 |
-
|
1399 |
-
default:
|
1400 |
-
return function (key, value, accumulator) {
|
1401 |
-
if (accumulator[key] === undefined) {
|
1402 |
-
accumulator[key] = value;
|
1403 |
-
return;
|
1404 |
-
}
|
1405 |
-
|
1406 |
-
accumulator[key] = [].concat(accumulator[key], value);
|
1407 |
-
};
|
1408 |
-
}
|
1409 |
-
}
|
1410 |
-
|
1411 |
-
function encode(value, opts) {
|
1412 |
-
if (opts.encode) {
|
1413 |
-
return opts.strict ? strictUriEncode(value) : encodeURIComponent(value);
|
1414 |
-
}
|
1415 |
-
|
1416 |
-
return value;
|
1417 |
-
}
|
1418 |
-
|
1419 |
-
function keysSorter(input) {
|
1420 |
-
if (Array.isArray(input)) {
|
1421 |
-
return input.sort();
|
1422 |
-
} else if (typeof input === 'object') {
|
1423 |
-
return keysSorter(Object.keys(input)).sort(function (a, b) {
|
1424 |
-
return Number(a) - Number(b);
|
1425 |
-
}).map(function (key) {
|
1426 |
-
return input[key];
|
1427 |
-
});
|
1428 |
-
}
|
1429 |
-
|
1430 |
-
return input;
|
1431 |
-
}
|
1432 |
-
|
1433 |
-
exports.extract = function (str) {
|
1434 |
-
return str.split('?')[1] || '';
|
1435 |
-
};
|
1436 |
-
|
1437 |
-
exports.parse = function (str, opts) {
|
1438 |
-
opts = objectAssign({arrayFormat: 'none'}, opts);
|
1439 |
-
|
1440 |
-
var formatter = parserForArrayFormat(opts);
|
1441 |
-
|
1442 |
-
// Create an object with no prototype
|
1443 |
-
// https://github.com/sindresorhus/query-string/issues/47
|
1444 |
-
var ret = Object.create(null);
|
1445 |
-
|
1446 |
-
if (typeof str !== 'string') {
|
1447 |
-
return ret;
|
1448 |
-
}
|
1449 |
-
|
1450 |
-
str = str.trim().replace(/^(\?|#|&)/, '');
|
1451 |
-
|
1452 |
-
if (!str) {
|
1453 |
-
return ret;
|
1454 |
-
}
|
1455 |
-
|
1456 |
-
str.split('&').forEach(function (param) {
|
1457 |
-
var parts = param.replace(/\+/g, ' ').split('=');
|
1458 |
-
// Firefox (pre 40) decodes `%3D` to `=`
|
1459 |
-
// https://github.com/sindresorhus/query-string/pull/37
|
1460 |
-
var key = parts.shift();
|
1461 |
-
var val = parts.length > 0 ? parts.join('=') : undefined;
|
1462 |
-
|
1463 |
-
// missing `=` should be `null`:
|
1464 |
-
// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
|
1465 |
-
val = val === undefined ? null : decodeURIComponent(val);
|
1466 |
-
|
1467 |
-
formatter(decodeURIComponent(key), val, ret);
|
1468 |
-
});
|
1469 |
-
|
1470 |
-
return Object.keys(ret).sort().reduce(function (result, key) {
|
1471 |
-
var val = ret[key];
|
1472 |
-
if (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {
|
1473 |
-
// Sort object keys, not values
|
1474 |
-
result[key] = keysSorter(val);
|
1475 |
-
} else {
|
1476 |
-
result[key] = val;
|
1477 |
-
}
|
1478 |
-
|
1479 |
-
return result;
|
1480 |
-
}, Object.create(null));
|
1481 |
-
};
|
1482 |
-
|
1483 |
-
exports.stringify = function (obj, opts) {
|
1484 |
-
var defaults = {
|
1485 |
-
encode: true,
|
1486 |
-
strict: true,
|
1487 |
-
arrayFormat: 'none'
|
1488 |
-
};
|
1489 |
-
|
1490 |
-
opts = objectAssign(defaults, opts);
|
1491 |
-
|
1492 |
-
var formatter = encoderForArrayFormat(opts);
|
1493 |
-
|
1494 |
-
return obj ? Object.keys(obj).sort().map(function (key) {
|
1495 |
-
var val = obj[key];
|
1496 |
-
|
1497 |
-
if (val === undefined) {
|
1498 |
-
return '';
|
1499 |
-
}
|
1500 |
-
|
1501 |
-
if (val === null) {
|
1502 |
-
return encode(key, opts);
|
1503 |
-
}
|
1504 |
-
|
1505 |
-
if (Array.isArray(val)) {
|
1506 |
-
var result = [];
|
1507 |
-
|
1508 |
-
val.slice().forEach(function (val2) {
|
1509 |
-
if (val2 === undefined) {
|
1510 |
-
return;
|
1511 |
-
}
|
1512 |
-
|
1513 |
-
result.push(formatter(key, val2, result.length));
|
1514 |
-
});
|
1515 |
-
|
1516 |
-
return result.join('&');
|
1517 |
-
}
|
1518 |
-
|
1519 |
-
return encode(key, opts) + '=' + encode(val, opts);
|
1520 |
-
}).filter(function (x) {
|
1521 |
-
return x.length > 0;
|
1522 |
-
}).join('&') : '';
|
1523 |
-
};
|
1524 |
-
|
1525 |
-
|
1526 |
-
/***/ }),
|
1527 |
-
/* 28 */
|
1528 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1529 |
-
|
1530 |
-
"use strict";
|
1531 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(8);
|
1532 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createGenerateClassName__ = __webpack_require__(93);
|
1533 |
-
/* unused harmony reexport createGenerateClassName */
|
1534 |
-
/* unused harmony namespace reexport */
|
1535 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createStyles__ = __webpack_require__(237);
|
1536 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_2__createStyles__["a"]; });
|
1537 |
-
/* unused harmony namespace reexport */
|
1538 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__getThemeProps__ = __webpack_require__(142);
|
1539 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__getThemeProps__["a"]; });
|
1540 |
-
/* unused harmony namespace reexport */
|
1541 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__jssPreset__ = __webpack_require__(143);
|
1542 |
-
/* unused harmony reexport jssPreset */
|
1543 |
-
/* unused harmony namespace reexport */
|
1544 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__makeStyles__ = __webpack_require__(95);
|
1545 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__makeStyles__["a"]; });
|
1546 |
-
/* unused harmony namespace reexport */
|
1547 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mergeClasses__ = __webpack_require__(145);
|
1548 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_6__mergeClasses__["a"]; });
|
1549 |
-
/* unused harmony namespace reexport */
|
1550 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ServerStyleSheets__ = __webpack_require__(244);
|
1551 |
-
/* unused harmony reexport ServerStyleSheets */
|
1552 |
-
/* unused harmony namespace reexport */
|
1553 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__styled__ = __webpack_require__(245);
|
1554 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_8__styled__["a"]; });
|
1555 |
-
/* unused harmony namespace reexport */
|
1556 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StylesProvider__ = __webpack_require__(96);
|
1557 |
-
/* unused harmony reexport StylesProvider */
|
1558 |
-
/* unused harmony namespace reexport */
|
1559 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ThemeProvider__ = __webpack_require__(246);
|
1560 |
-
/* unused harmony reexport ThemeProvider */
|
1561 |
-
/* unused harmony namespace reexport */
|
1562 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useTheme__ = __webpack_require__(64);
|
1563 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useTheme__["a"]; });
|
1564 |
-
/* unused harmony namespace reexport */
|
1565 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__withStyles__ = __webpack_require__(247);
|
1566 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__withStyles__["a"]; });
|
1567 |
-
/* unused harmony namespace reexport */
|
1568 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__withTheme__ = __webpack_require__(248);
|
1569 |
-
/* unused harmony reexport withTheme */
|
1570 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__withTheme__["a"]; });
|
1571 |
-
/** @license Material-UI v4.11.4
|
1572 |
-
*
|
1573 |
-
* This source code is licensed under the MIT license found in the
|
1574 |
-
* LICENSE file in the root directory of this source tree.
|
1575 |
-
*/
|
1576 |
-
/* eslint-disable import/export */
|
1577 |
-
|
1578 |
-
/* Warning if there are several instances of @material-ui/styles */
|
1579 |
-
|
1580 |
-
if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
|
1581 |
-
__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;
|
1582 |
-
|
1583 |
-
if (__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] === 1) {
|
1584 |
-
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'));
|
1585 |
-
}
|
1586 |
-
|
1587 |
-
__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] += 1;
|
1588 |
-
}
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
1617 |
-
|
1618 |
-
/***/ }),
|
1619 |
-
/* 29 */
|
1620 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1621 |
-
|
1622 |
-
"use strict";
|
1623 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Typography__ = __webpack_require__(654);
|
1624 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Typography__["a"]; });
|
1625 |
-
|
1626 |
-
|
1627 |
-
/***/ }),
|
1628 |
-
/* 30 */
|
1629 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1630 |
-
|
1631 |
-
"use strict";
|
1632 |
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
1633 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Icon__ = __webpack_require__(519);
|
1634 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Icon__["a"]; });
|
1635 |
-
|
1636 |
-
|
1637 |
-
/***/ }),
|
1638 |
-
/* 31 */
|
1639 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1640 |
-
|
1641 |
-
"use strict";
|
1642 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _toConsumableArray;
|
1643 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles_js__ = __webpack_require__(543);
|
1644 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArray_js__ = __webpack_require__(240);
|
1645 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray_js__ = __webpack_require__(144);
|
1646 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableSpread_js__ = __webpack_require__(544);
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
function _toConsumableArray(arr) {
|
1652 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles_js__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray_js__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray_js__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableSpread_js__["a" /* default */])();
|
1653 |
-
}
|
1654 |
-
|
1655 |
-
/***/ }),
|
1656 |
-
/* 32 */
|
1657 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1658 |
-
|
1659 |
-
"use strict";
|
1660 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = ownerDocument;
|
1661 |
-
function ownerDocument(node) {
|
1662 |
-
return node && node.ownerDocument || document;
|
1663 |
-
}
|
1664 |
-
|
1665 |
-
/***/ }),
|
1666 |
-
/* 33 */
|
1667 |
-
/***/ (function(module, exports) {
|
1668 |
-
|
1669 |
-
/**
|
1670 |
-
* Checks if `value` is classified as an `Array` object.
|
1671 |
-
*
|
1672 |
-
* @static
|
1673 |
-
* @memberOf _
|
1674 |
-
* @since 0.1.0
|
1675 |
-
* @category Lang
|
1676 |
-
* @param {*} value The value to check.
|
1677 |
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
1678 |
-
* @example
|
1679 |
-
*
|
1680 |
-
* _.isArray([1, 2, 3]);
|
1681 |
-
* // => true
|
1682 |
-
*
|
1683 |
-
* _.isArray(document.body.children);
|
1684 |
-
* // => false
|
1685 |
-
*
|
1686 |
-
* _.isArray('abc');
|
1687 |
-
* // => false
|
1688 |
-
*
|
1689 |
-
* _.isArray(_.noop);
|
1690 |
-
* // => false
|
1691 |
-
*/
|
1692 |
-
var isArray = Array.isArray;
|
1693 |
-
|
1694 |
-
module.exports = isArray;
|
1695 |
-
|
1696 |
-
|
1697 |
-
/***/ }),
|
1698 |
-
/* 34 */
|
1699 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1700 |
-
|
1701 |
-
"use strict";
|
1702 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__ = __webpack_require__(427);
|
1703 |
-
|
1704 |
-
|
1705 |
-
/** Detect free variable `self`. */
|
1706 |
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
1707 |
-
|
1708 |
-
/** Used as a reference to the global object. */
|
1709 |
-
var root = __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__["a" /* default */] || freeSelf || Function('return this')();
|
1710 |
-
|
1711 |
-
/* harmony default export */ __webpack_exports__["a"] = (root);
|
1712 |
-
|
1713 |
-
|
1714 |
-
/***/ }),
|
1715 |
-
/* 35 */
|
1716 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1717 |
-
|
1718 |
-
"use strict";
|
1719 |
-
/**
|
1720 |
-
* Checks if `value` is the
|
1721 |
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
1722 |
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
1723 |
-
*
|
1724 |
-
* @static
|
1725 |
-
* @memberOf _
|
1726 |
-
* @since 0.1.0
|
1727 |
-
* @category Lang
|
1728 |
-
* @param {*} value The value to check.
|
1729 |
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
1730 |
-
* @example
|
1731 |
-
*
|
1732 |
-
* _.isObject({});
|
1733 |
-
* // => true
|
1734 |
-
*
|
1735 |
-
* _.isObject([1, 2, 3]);
|
1736 |
-
* // => true
|
1737 |
-
*
|
1738 |
-
* _.isObject(_.noop);
|
1739 |
-
* // => true
|
1740 |
-
*
|
1741 |
-
* _.isObject(null);
|
1742 |
-
* // => false
|
1743 |
-
*/
|
1744 |
-
function isObject(value) {
|
1745 |
-
var type = typeof value;
|
1746 |
-
return value != null && (type == 'object' || type == 'function');
|
1747 |
-
}
|
1748 |
-
|
1749 |
-
/* harmony default export */ __webpack_exports__["a"] = (isObject);
|
1750 |
-
|
1751 |
-
|
1752 |
-
/***/ }),
|
1753 |
-
/* 36 */
|
1754 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1755 |
-
|
1756 |
-
"use strict";
|
1757 |
-
/**
|
1758 |
-
* Checks if `value` is classified as an `Array` object.
|
1759 |
-
*
|
1760 |
-
* @static
|
1761 |
-
* @memberOf _
|
1762 |
-
* @since 0.1.0
|
1763 |
-
* @category Lang
|
1764 |
-
* @param {*} value The value to check.
|
1765 |
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
1766 |
-
* @example
|
1767 |
-
*
|
1768 |
-
* _.isArray([1, 2, 3]);
|
1769 |
-
* // => true
|
1770 |
-
*
|
1771 |
-
* _.isArray(document.body.children);
|
1772 |
-
* // => false
|
1773 |
-
*
|
1774 |
-
* _.isArray('abc');
|
1775 |
-
* // => false
|
1776 |
-
*
|
1777 |
-
* _.isArray(_.noop);
|
1778 |
-
* // => false
|
1779 |
-
*/
|
1780 |
-
var isArray = Array.isArray;
|
1781 |
-
|
1782 |
-
/* harmony default export */ __webpack_exports__["a"] = (isArray);
|
1783 |
-
|
1784 |
-
|
1785 |
-
/***/ }),
|
1786 |
-
/* 37 */
|
1787 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1788 |
-
|
1789 |
-
"use strict";
|
1790 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return simpleCheckForValidColor; });
|
1791 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return toState; });
|
1792 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isValidHex; });
|
1793 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getContrastingColor; });
|
1794 |
-
/* unused harmony export red */
|
1795 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isvalidColorString; });
|
1796 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_es_each__ = __webpack_require__(999);
|
1797 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2__ = __webpack_require__(1007);
|
1798 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_tinycolor2__);
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
var simpleCheckForValidColor = function simpleCheckForValidColor(data) {
|
1803 |
-
var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];
|
1804 |
-
var checked = 0;
|
1805 |
-
var passed = 0;
|
1806 |
-
Object(__WEBPACK_IMPORTED_MODULE_0_lodash_es_each__["a" /* default */])(keysToCheck, function (letter) {
|
1807 |
-
if (data[letter]) {
|
1808 |
-
checked += 1;
|
1809 |
-
if (!isNaN(data[letter])) {
|
1810 |
-
passed += 1;
|
1811 |
-
}
|
1812 |
-
if (letter === 's' || letter === 'l') {
|
1813 |
-
var percentPatt = /^\d+%$/;
|
1814 |
-
if (percentPatt.test(data[letter])) {
|
1815 |
-
passed += 1;
|
1816 |
-
}
|
1817 |
-
}
|
1818 |
-
}
|
1819 |
-
});
|
1820 |
-
return checked === passed ? data : false;
|
1821 |
-
};
|
1822 |
-
|
1823 |
-
var toState = function toState(data, oldHue) {
|
1824 |
-
var color = data.hex ? __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data.hex) : __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data);
|
1825 |
-
var hsl = color.toHsl();
|
1826 |
-
var hsv = color.toHsv();
|
1827 |
-
var rgb = color.toRgb();
|
1828 |
-
var hex = color.toHex();
|
1829 |
-
if (hsl.s === 0) {
|
1830 |
-
hsl.h = oldHue || 0;
|
1831 |
-
hsv.h = oldHue || 0;
|
1832 |
-
}
|
1833 |
-
var transparent = hex === '000000' && rgb.a === 0;
|
1834 |
-
|
1835 |
-
return {
|
1836 |
-
hsl: hsl,
|
1837 |
-
hex: transparent ? 'transparent' : '#' + hex,
|
1838 |
-
rgb: rgb,
|
1839 |
-
hsv: hsv,
|
1840 |
-
oldHue: data.h || oldHue || hsl.h,
|
1841 |
-
source: data.source
|
1842 |
-
};
|
1843 |
-
};
|
1844 |
-
|
1845 |
-
var isValidHex = function isValidHex(hex) {
|
1846 |
-
if (hex === 'transparent') {
|
1847 |
-
return true;
|
1848 |
-
}
|
1849 |
-
// disable hex4 and hex8
|
1850 |
-
var lh = String(hex).charAt(0) === '#' ? 1 : 0;
|
1851 |
-
return hex.length !== 4 + lh && hex.length < 7 + lh && __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(hex).isValid();
|
1852 |
-
};
|
1853 |
-
|
1854 |
-
var getContrastingColor = function getContrastingColor(data) {
|
1855 |
-
if (!data) {
|
1856 |
-
return '#fff';
|
1857 |
-
}
|
1858 |
-
var col = toState(data);
|
1859 |
-
if (col.hex === 'transparent') {
|
1860 |
-
return 'rgba(0,0,0,0.4)';
|
1861 |
-
}
|
1862 |
-
var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;
|
1863 |
-
return yiq >= 128 ? '#000' : '#fff';
|
1864 |
-
};
|
1865 |
-
|
1866 |
-
var red = {
|
1867 |
-
hsl: { a: 1, h: 0, l: 0.5, s: 1 },
|
1868 |
-
hex: '#ff0000',
|
1869 |
-
rgb: { r: 255, g: 0, b: 0, a: 1 },
|
1870 |
-
hsv: { h: 0, s: 1, v: 1, a: 1 }
|
1871 |
-
};
|
1872 |
-
|
1873 |
-
var isvalidColorString = function isvalidColorString(string, type) {
|
1874 |
-
var stringWithoutDegree = string.replace('°', '');
|
1875 |
-
return __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(type + ' (' + stringWithoutDegree + ')')._ok;
|
1876 |
-
};
|
1877 |
-
|
1878 |
-
/***/ }),
|
1879 |
-
/* 38 */
|
1880 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1881 |
-
|
1882 |
-
"use strict";
|
1883 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose;
|
1884 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__setPrototypeOf_js__ = __webpack_require__(232);
|
1885 |
-
|
1886 |
-
function _inheritsLoose(subClass, superClass) {
|
1887 |
-
subClass.prototype = Object.create(superClass.prototype);
|
1888 |
-
subClass.prototype.constructor = subClass;
|
1889 |
-
Object(__WEBPACK_IMPORTED_MODULE_0__setPrototypeOf_js__["a" /* default */])(subClass, superClass);
|
1890 |
-
}
|
1891 |
-
|
1892 |
-
/***/ }),
|
1893 |
-
/* 39 */
|
1894 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1895 |
-
|
1896 |
-
"use strict";
|
1897 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(18);
|
1898 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(261);
|
1899 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(147);
|
1900 |
-
|
1901 |
-
|
1902 |
-
|
1903 |
-
|
1904 |
-
function getPath(obj, path) {
|
1905 |
-
if (!path || typeof path !== 'string') {
|
1906 |
-
return null;
|
1907 |
-
}
|
1908 |
-
|
1909 |
-
return path.split('.').reduce(function (acc, item) {
|
1910 |
-
return acc && acc[item] ? acc[item] : null;
|
1911 |
-
}, obj);
|
1912 |
-
}
|
1913 |
-
|
1914 |
-
function style(options) {
|
1915 |
-
var prop = options.prop,
|
1916 |
-
_options$cssProperty = options.cssProperty,
|
1917 |
-
cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty,
|
1918 |
-
themeKey = options.themeKey,
|
1919 |
-
transform = options.transform;
|
1920 |
-
|
1921 |
-
var fn = function fn(props) {
|
1922 |
-
if (props[prop] == null) {
|
1923 |
-
return null;
|
1924 |
-
}
|
1925 |
-
|
1926 |
-
var propValue = props[prop];
|
1927 |
-
var theme = props.theme;
|
1928 |
-
var themeMapping = getPath(theme, themeKey) || {};
|
1929 |
-
|
1930 |
-
var styleFromPropValue = function styleFromPropValue(propValueFinal) {
|
1931 |
-
var value;
|
1932 |
-
|
1933 |
-
if (typeof themeMapping === 'function') {
|
1934 |
-
value = themeMapping(propValueFinal);
|
1935 |
-
} else if (Array.isArray(themeMapping)) {
|
1936 |
-
value = themeMapping[propValueFinal] || propValueFinal;
|
1937 |
-
} else {
|
1938 |
-
value = getPath(themeMapping, propValueFinal) || propValueFinal;
|
1939 |
-
|
1940 |
-
if (transform) {
|
1941 |
-
value = transform(value);
|
1942 |
-
}
|
1943 |
-
}
|
1944 |
-
|
1945 |
-
if (cssProperty === false) {
|
1946 |
-
return value;
|
1947 |
-
}
|
1948 |
-
|
1949 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, cssProperty, value);
|
1950 |
-
};
|
1951 |
-
|
1952 |
-
return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
|
1953 |
-
};
|
1954 |
-
|
1955 |
-
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 */]) : {};
|
1956 |
-
fn.filterProps = [prop];
|
1957 |
-
return fn;
|
1958 |
-
}
|
1959 |
-
|
1960 |
-
/* harmony default export */ __webpack_exports__["a"] = (style);
|
1961 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
1962 |
-
|
1963 |
-
/***/ }),
|
1964 |
-
/* 40 */
|
1965 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1966 |
-
|
1967 |
-
"use strict";
|
1968 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export easing */
|
1969 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return duration; });
|
1970 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
|
1971 |
-
|
1972 |
-
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
1973 |
-
// to learn the context in which each easing should be used.
|
1974 |
-
var easing = {
|
1975 |
-
// This is the most common easing curve.
|
1976 |
-
easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
1977 |
-
// Objects enter the screen at full velocity from off-screen and
|
1978 |
-
// slowly decelerate to a resting point.
|
1979 |
-
easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
|
1980 |
-
// Objects leave the screen at full velocity. They do not decelerate when off-screen.
|
1981 |
-
easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
|
1982 |
-
// The sharp curve is used by objects that may return to the screen at any time.
|
1983 |
-
sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
|
1984 |
-
}; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
|
1985 |
-
// to learn when use what timing
|
1986 |
-
|
1987 |
-
var duration = {
|
1988 |
-
shortest: 150,
|
1989 |
-
shorter: 200,
|
1990 |
-
short: 250,
|
1991 |
-
// most basic recommended timing
|
1992 |
-
standard: 300,
|
1993 |
-
// this is to be used in complex animations
|
1994 |
-
complex: 375,
|
1995 |
-
// recommended when something is entering screen
|
1996 |
-
enteringScreen: 225,
|
1997 |
-
// recommended when something is leaving screen
|
1998 |
-
leavingScreen: 195
|
1999 |
-
};
|
2000 |
-
|
2001 |
-
function formatMs(milliseconds) {
|
2002 |
-
return "".concat(Math.round(milliseconds), "ms");
|
2003 |
-
}
|
2004 |
-
/**
|
2005 |
-
* @param {string|Array} props
|
2006 |
-
* @param {object} param
|
2007 |
-
* @param {string} param.prop
|
2008 |
-
* @param {number} param.duration
|
2009 |
-
* @param {string} param.easing
|
2010 |
-
* @param {number} param.delay
|
2011 |
-
*/
|
2012 |
-
|
2013 |
-
|
2014 |
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
2015 |
-
easing: easing,
|
2016 |
-
duration: duration,
|
2017 |
-
create: function create() {
|
2018 |
-
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
|
2019 |
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
2020 |
-
|
2021 |
-
var _options$duration = options.duration,
|
2022 |
-
durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
|
2023 |
-
_options$easing = options.easing,
|
2024 |
-
easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
|
2025 |
-
_options$delay = options.delay,
|
2026 |
-
delay = _options$delay === void 0 ? 0 : _options$delay,
|
2027 |
-
other = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["duration", "easing", "delay"]);
|
2028 |
-
|
2029 |
-
if (process.env.NODE_ENV !== 'production') {
|
2030 |
-
var isString = function isString(value) {
|
2031 |
-
return typeof value === 'string';
|
2032 |
-
};
|
2033 |
-
|
2034 |
-
var isNumber = function isNumber(value) {
|
2035 |
-
return !isNaN(parseFloat(value));
|
2036 |
-
};
|
2037 |
-
|
2038 |
-
if (!isString(props) && !Array.isArray(props)) {
|
2039 |
-
console.error('Material-UI: Argument "props" must be a string or Array.');
|
2040 |
-
}
|
2041 |
-
|
2042 |
-
if (!isNumber(durationOption) && !isString(durationOption)) {
|
2043 |
-
console.error("Material-UI: Argument \"duration\" must be a number or a string but found ".concat(durationOption, "."));
|
2044 |
-
}
|
2045 |
-
|
2046 |
-
if (!isString(easingOption)) {
|
2047 |
-
console.error('Material-UI: Argument "easing" must be a string.');
|
2048 |
-
}
|
2049 |
-
|
2050 |
-
if (!isNumber(delay) && !isString(delay)) {
|
2051 |
-
console.error('Material-UI: Argument "delay" must be a number or a string.');
|
2052 |
-
}
|
2053 |
-
|
2054 |
-
if (Object.keys(other).length !== 0) {
|
2055 |
-
console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(other).join(','), "]."));
|
2056 |
-
}
|
2057 |
-
}
|
2058 |
-
|
2059 |
-
return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {
|
2060 |
-
return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay));
|
2061 |
-
}).join(',');
|
2062 |
-
},
|
2063 |
-
getAutoHeightDuration: function getAutoHeightDuration(height) {
|
2064 |
-
if (!height) {
|
2065 |
-
return 0;
|
2066 |
-
}
|
2067 |
-
|
2068 |
-
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
|
2069 |
-
|
2070 |
-
return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
|
2071 |
-
}
|
2072 |
-
});
|
2073 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
2074 |
-
|
2075 |
-
/***/ }),
|
2076 |
-
/* 41 */
|
2077 |
-
/***/ (function(module, exports, __webpack_require__) {
|
2078 |
-
|
2079 |
-
var freeGlobal = __webpack_require__(402);
|
2080 |
-
|
2081 |
-
/** Detect free variable `self`. */
|
2082 |
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
2083 |
-
|
2084 |
-
/** Used as a reference to the global object. */
|
2085 |
-
var root = freeGlobal || freeSelf || Function('return this')();
|
2086 |
-
|
2087 |
-
module.exports = root;
|
2088 |
-
|
2089 |
-
|
2090 |
-
/***/ }),
|
2091 |
-
/* 42 */
|
2092 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2093 |
-
|
2094 |
-
"use strict";
|
2095 |
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
2096 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserRouter", function() { return BrowserRouter; });
|
2097 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashRouter", function() { return HashRouter; });
|
2098 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return Link; });
|
2099 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return NavLink; });
|
2100 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router__ = __webpack_require__(231);
|
2101 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["a"]; });
|
2102 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["b"]; });
|
2103 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["c"]; });
|
2104 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["d"]; });
|
2105 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["e"]; });
|
2106 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["f"]; });
|
2107 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["g"]; });
|
2108 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "generatePath", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["i"]; });
|
2109 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["j"]; });
|
2110 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useHistory", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["k"]; });
|
2111 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useLocation", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["l"]; });
|
2112 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useParams", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["m"]; });
|
2113 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useRouteMatch", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["n"]; });
|
2114 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["o"]; });
|
2115 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(38);
|
2116 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
|
2117 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
|
2118 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(234);
|
2119 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
|
2120 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
|
2121 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_tiny_warning__ = __webpack_require__(51);
|
2122 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
2123 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(47);
|
2124 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_tiny_invariant__ = __webpack_require__(140);
|
2125 |
-
|
2126 |
-
|
2127 |
-
|
2128 |
-
|
2129 |
-
|
2130 |
-
|
2131 |
-
|
2132 |
-
|
2133 |
-
|
2134 |
-
|
2135 |
-
|
2136 |
-
/**
|
2137 |
-
* The public API for a <Router> that uses HTML5 history.
|
2138 |
-
*/
|
2139 |
-
|
2140 |
-
var BrowserRouter =
|
2141 |
-
/*#__PURE__*/
|
2142 |
-
function (_React$Component) {
|
2143 |
-
Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(BrowserRouter, _React$Component);
|
2144 |
-
|
2145 |
-
function BrowserRouter() {
|
2146 |
-
var _this;
|
2147 |
-
|
2148 |
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
2149 |
-
args[_key] = arguments[_key];
|
2150 |
-
}
|
2151 |
-
|
2152 |
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
2153 |
-
_this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["a" /* createBrowserHistory */])(_this.props);
|
2154 |
-
return _this;
|
2155 |
-
}
|
2156 |
-
|
2157 |
-
var _proto = BrowserRouter.prototype;
|
2158 |
-
|
2159 |
-
_proto.render = function render() {
|
2160 |
-
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["e" /* Router */], {
|
2161 |
-
history: this.history,
|
2162 |
-
children: this.props.children
|
2163 |
-
});
|
2164 |
-
};
|
2165 |
-
|
2166 |
-
return BrowserRouter;
|
2167 |
-
}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
|
2168 |
-
|
2169 |
-
if (process.env.NODE_ENV !== "production") {
|
2170 |
-
BrowserRouter.propTypes = {
|
2171 |
-
basename: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
|
2172 |
-
children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
|
2173 |
-
forceRefresh: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
2174 |
-
getUserConfirmation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
2175 |
-
keyLength: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number
|
2176 |
-
};
|
2177 |
-
|
2178 |
-
BrowserRouter.prototype.componentDidMount = function () {
|
2179 |
-
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;
|
2180 |
-
};
|
2181 |
-
}
|
2182 |
-
|
2183 |
-
/**
|
2184 |
-
* The public API for a <Router> that uses window.location.hash.
|
2185 |
-
*/
|
2186 |
-
|
2187 |
-
var HashRouter =
|
2188 |
-
/*#__PURE__*/
|
2189 |
-
function (_React$Component) {
|
2190 |
-
Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(HashRouter, _React$Component);
|
2191 |
-
|
2192 |
-
function HashRouter() {
|
2193 |
-
var _this;
|
2194 |
-
|
2195 |
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
2196 |
-
args[_key] = arguments[_key];
|
2197 |
-
}
|
2198 |
-
|
2199 |
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
2200 |
-
_this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["b" /* createHashHistory */])(_this.props);
|
2201 |
-
return _this;
|
2202 |
-
}
|
2203 |
-
|
2204 |
-
var _proto = HashRouter.prototype;
|
2205 |
-
|
2206 |
-
_proto.render = function render() {
|
2207 |
-
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["e" /* Router */], {
|
2208 |
-
history: this.history,
|
2209 |
-
children: this.props.children
|
2210 |
-
});
|
2211 |
-
};
|
2212 |
-
|
2213 |
-
return HashRouter;
|
2214 |
-
}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
|
2215 |
-
|
2216 |
-
if (process.env.NODE_ENV !== "production") {
|
2217 |
-
HashRouter.propTypes = {
|
2218 |
-
basename: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
|
2219 |
-
children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
|
2220 |
-
getUserConfirmation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
2221 |
-
hashType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(["hashbang", "noslash", "slash"])
|
2222 |
-
};
|
2223 |
-
|
2224 |
-
HashRouter.prototype.componentDidMount = function () {
|
2225 |
-
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;
|
2226 |
-
};
|
2227 |
-
}
|
2228 |
-
|
2229 |
-
var resolveToLocation = function resolveToLocation(to, currentLocation) {
|
2230 |
-
return typeof to === "function" ? to(currentLocation) : to;
|
2231 |
-
};
|
2232 |
-
var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
|
2233 |
-
return typeof to === "string" ? Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(to, null, null, currentLocation) : to;
|
2234 |
-
};
|
2235 |
-
|
2236 |
-
var forwardRefShim = function forwardRefShim(C) {
|
2237 |
-
return C;
|
2238 |
-
};
|
2239 |
-
|
2240 |
-
var forwardRef = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef;
|
2241 |
-
|
2242 |
-
if (typeof forwardRef === "undefined") {
|
2243 |
-
forwardRef = forwardRefShim;
|
2244 |
-
}
|
2245 |
-
|
2246 |
-
function isModifiedEvent(event) {
|
2247 |
-
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
|
2248 |
-
}
|
2249 |
-
|
2250 |
-
var LinkAnchor = forwardRef(function (_ref, forwardedRef) {
|
2251 |
-
var innerRef = _ref.innerRef,
|
2252 |
-
navigate = _ref.navigate,
|
2253 |
-
_onClick = _ref.onClick,
|
2254 |
-
rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["innerRef", "navigate", "onClick"]);
|
2255 |
-
|
2256 |
-
var target = rest.target;
|
2257 |
-
|
2258 |
-
var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
|
2259 |
-
onClick: function onClick(event) {
|
2260 |
-
try {
|
2261 |
-
if (_onClick) _onClick(event);
|
2262 |
-
} catch (ex) {
|
2263 |
-
event.preventDefault();
|
2264 |
-
throw ex;
|
2265 |
-
}
|
2266 |
-
|
2267 |
-
if (!event.defaultPrevented && // onClick prevented default
|
2268 |
-
event.button === 0 && ( // ignore everything but left clicks
|
2269 |
-
!target || target === "_self") && // let browser handle "target=_blank" etc.
|
2270 |
-
!isModifiedEvent(event) // ignore clicks with modifier keys
|
2271 |
-
) {
|
2272 |
-
event.preventDefault();
|
2273 |
-
navigate();
|
2274 |
-
}
|
2275 |
-
}
|
2276 |
-
}); // React 15 compat
|
2277 |
-
|
2278 |
-
|
2279 |
-
if (forwardRefShim !== forwardRef) {
|
2280 |
-
props.ref = forwardedRef || innerRef;
|
2281 |
-
} else {
|
2282 |
-
props.ref = innerRef;
|
2283 |
-
}
|
2284 |
-
/* eslint-disable-next-line jsx-a11y/anchor-has-content */
|
2285 |
-
|
2286 |
-
|
2287 |
-
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("a", props);
|
2288 |
-
});
|
2289 |
-
|
2290 |
-
if (process.env.NODE_ENV !== "production") {
|
2291 |
-
LinkAnchor.displayName = "LinkAnchor";
|
2292 |
-
}
|
2293 |
-
/**
|
2294 |
-
* The public API for rendering a history-aware <a>.
|
2295 |
-
*/
|
2296 |
-
|
2297 |
-
|
2298 |
-
var Link = forwardRef(function (_ref2, forwardedRef) {
|
2299 |
-
var _ref2$component = _ref2.component,
|
2300 |
-
component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,
|
2301 |
-
replace = _ref2.replace,
|
2302 |
-
to = _ref2.to,
|
2303 |
-
innerRef = _ref2.innerRef,
|
2304 |
-
rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref2, ["component", "replace", "to", "innerRef"]);
|
2305 |
-
|
2306 |
-
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["h" /* __RouterContext */].Consumer, null, function (context) {
|
2307 |
-
!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;
|
2308 |
-
var history = context.history;
|
2309 |
-
var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
|
2310 |
-
var href = location ? history.createHref(location) : "";
|
2311 |
-
|
2312 |
-
var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
|
2313 |
-
href: href,
|
2314 |
-
navigate: function navigate() {
|
2315 |
-
var location = resolveToLocation(to, context.location);
|
2316 |
-
var method = replace ? history.replace : history.push;
|
2317 |
-
method(location);
|
2318 |
-
}
|
2319 |
-
}); // React 15 compat
|
2320 |
-
|
2321 |
-
|
2322 |
-
if (forwardRefShim !== forwardRef) {
|
2323 |
-
props.ref = forwardedRef || innerRef;
|
2324 |
-
} else {
|
2325 |
-
props.innerRef = innerRef;
|
2326 |
-
}
|
2327 |
-
|
2328 |
-
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(component, props);
|
2329 |
-
});
|
2330 |
-
});
|
2331 |
-
|
2332 |
-
if (process.env.NODE_ENV !== "production") {
|
2333 |
-
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]);
|
2334 |
-
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({
|
2335 |
-
current: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
|
2336 |
-
})]);
|
2337 |
-
Link.displayName = "Link";
|
2338 |
-
Link.propTypes = {
|
2339 |
-
innerRef: refType,
|
2340 |
-
onClick: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
2341 |
-
replace: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
2342 |
-
target: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
|
2343 |
-
to: toType.isRequired
|
2344 |
-
};
|
2345 |
-
}
|
2346 |
-
|
2347 |
-
var forwardRefShim$1 = function forwardRefShim(C) {
|
2348 |
-
return C;
|
2349 |
-
};
|
2350 |
-
|
2351 |
-
var forwardRef$1 = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef;
|
2352 |
-
|
2353 |
-
if (typeof forwardRef$1 === "undefined") {
|
2354 |
-
forwardRef$1 = forwardRefShim$1;
|
2355 |
-
}
|
2356 |
-
|
2357 |
-
function joinClassnames() {
|
2358 |
-
for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {
|
2359 |
-
classnames[_key] = arguments[_key];
|
2360 |
-
}
|
2361 |
-
|
2362 |
-
return classnames.filter(function (i) {
|
2363 |
-
return i;
|
2364 |
-
}).join(" ");
|
2365 |
-
}
|
2366 |
-
/**
|
2367 |
-
* A <Link> wrapper that knows if it's "active" or not.
|
2368 |
-
*/
|
2369 |
-
|
2370 |
-
|
2371 |
-
var NavLink = forwardRef$1(function (_ref, forwardedRef) {
|
2372 |
-
var _ref$ariaCurrent = _ref["aria-current"],
|
2373 |
-
ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,
|
2374 |
-
_ref$activeClassName = _ref.activeClassName,
|
2375 |
-
activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName,
|
2376 |
-
activeStyle = _ref.activeStyle,
|
2377 |
-
classNameProp = _ref.className,
|
2378 |
-
exact = _ref.exact,
|
2379 |
-
isActiveProp = _ref.isActive,
|
2380 |
-
locationProp = _ref.location,
|
2381 |
-
sensitive = _ref.sensitive,
|
2382 |
-
strict = _ref.strict,
|
2383 |
-
styleProp = _ref.style,
|
2384 |
-
to = _ref.to,
|
2385 |
-
innerRef = _ref.innerRef,
|
2386 |
-
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"]);
|
2387 |
-
|
2388 |
-
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["h" /* __RouterContext */].Consumer, null, function (context) {
|
2389 |
-
!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;
|
2390 |
-
var currentLocation = locationProp || context.location;
|
2391 |
-
var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
|
2392 |
-
var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
|
2393 |
-
|
2394 |
-
var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
2395 |
-
var match = escapedPath ? Object(__WEBPACK_IMPORTED_MODULE_0_react_router__["j" /* matchPath */])(currentLocation.pathname, {
|
2396 |
-
path: escapedPath,
|
2397 |
-
exact: exact,
|
2398 |
-
sensitive: sensitive,
|
2399 |
-
strict: strict
|
2400 |
-
}) : null;
|
2401 |
-
var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
|
2402 |
-
var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
|
2403 |
-
var style = isActive ? Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleProp, {}, activeStyle) : styleProp;
|
2404 |
-
|
2405 |
-
var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
2406 |
-
"aria-current": isActive && ariaCurrent || null,
|
2407 |
-
className: className,
|
2408 |
-
style: style,
|
2409 |
-
to: toLocation
|
2410 |
-
}, rest); // React 15 compat
|
2411 |
-
|
2412 |
-
|
2413 |
-
if (forwardRefShim$1 !== forwardRef$1) {
|
2414 |
-
props.ref = forwardedRef || innerRef;
|
2415 |
-
} else {
|
2416 |
-
props.innerRef = innerRef;
|
2417 |
-
}
|
2418 |
-
|
2419 |
-
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(Link, props);
|
2420 |
-
});
|
2421 |
-
});
|
2422 |
-
|
2423 |
-
if (process.env.NODE_ENV !== "production") {
|
2424 |
-
NavLink.displayName = "NavLink";
|
2425 |
-
var ariaCurrentType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(["page", "step", "location", "date", "time", "true"]);
|
2426 |
-
NavLink.propTypes = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, Link.propTypes, {
|
2427 |
-
"aria-current": ariaCurrentType,
|
2428 |
-
activeClassName: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
|
2429 |
-
activeStyle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
|
2430 |
-
className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
|
2431 |
-
exact: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
2432 |
-
isActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
2433 |
-
location: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
|
2434 |
-
sensitive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
2435 |
-
strict: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
2436 |
-
style: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object
|
2437 |
-
});
|
2438 |
-
}
|
2439 |
-
|
2440 |
-
|
2441 |
-
//# sourceMappingURL=react-router-dom.js.map
|
2442 |
-
|
2443 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
2444 |
-
|
2445 |
-
/***/ }),
|
2446 |
-
/* 43 */
|
2447 |
-
/***/ (function(module, exports) {
|
2448 |
-
|
2449 |
-
var g;
|
2450 |
-
|
2451 |
-
// This works in non-strict mode
|
2452 |
-
g = (function() {
|
2453 |
-
return this;
|
2454 |
-
})();
|
2455 |
-
|
2456 |
-
try {
|
2457 |
-
// This works if eval is allowed (see CSP)
|
2458 |
-
g = g || Function("return this")() || (1,eval)("this");
|
2459 |
-
} catch(e) {
|
2460 |
-
// This works if the window reference is available
|
2461 |
-
if(typeof window === "object")
|
2462 |
-
g = window;
|
2463 |
-
}
|
2464 |
-
|
2465 |
-
// g can still be undefined, but nothing to do about it...
|
2466 |
-
// We return undefined, instead of nothing here, so it's
|
2467 |
-
// easier to handle this case. if(!global) { ...}
|
2468 |
-
|
2469 |
-
module.exports = g;
|
2470 |
-
|
2471 |
-
|
2472 |
-
/***/ }),
|
2473 |
-
/* 44 */
|
2474 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2475 |
-
|
2476 |
-
"use strict";
|
2477 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
2478 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__merge__ = __webpack_require__(97);
|
2479 |
-
|
2480 |
-
|
2481 |
-
|
2482 |
-
function compose() {
|
2483 |
-
for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {
|
2484 |
-
styles[_key] = arguments[_key];
|
2485 |
-
}
|
2486 |
-
|
2487 |
-
var fn = function fn(props) {
|
2488 |
-
return styles.reduce(function (acc, style) {
|
2489 |
-
var output = style(props);
|
2490 |
-
|
2491 |
-
if (output) {
|
2492 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__merge__["a" /* default */])(acc, output);
|
2493 |
-
}
|
2494 |
-
|
2495 |
-
return acc;
|
2496 |
-
}, {});
|
2497 |
-
}; // Alternative approach that doesn't yield any performance gain.
|
2498 |
-
// const handlers = styles.reduce((acc, style) => {
|
2499 |
-
// style.filterProps.forEach(prop => {
|
2500 |
-
// acc[prop] = style;
|
2501 |
-
// });
|
2502 |
-
// return acc;
|
2503 |
-
// }, {});
|
2504 |
-
// const fn = props => {
|
2505 |
-
// return Object.keys(props).reduce((acc, prop) => {
|
2506 |
-
// if (handlers[prop]) {
|
2507 |
-
// return merge(acc, handlers[prop](props));
|
2508 |
-
// }
|
2509 |
-
// return acc;
|
2510 |
-
// }, {});
|
2511 |
-
// };
|
2512 |
-
|
2513 |
-
|
2514 |
-
fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {
|
2515 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(acc, style.propTypes);
|
2516 |
-
}, {}) : {};
|
2517 |
-
fn.filterProps = styles.reduce(function (acc, style) {
|
2518 |
-
return acc.concat(style.filterProps);
|
2519 |
-
}, []);
|
2520 |
-
return fn;
|
2521 |
-
}
|
2522 |
-
|
2523 |
-
/* harmony default export */ __webpack_exports__["a"] = (compose);
|
2524 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
2525 |
-
|
2526 |
-
/***/ }),
|
2527 |
-
/* 45 */
|
2528 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2529 |
-
|
2530 |
-
"use strict";
|
2531 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = useEventCallback;
|
2532 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
2533 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
2534 |
-
|
2535 |
-
var useEnhancedEffect = typeof window !== 'undefined' ? __WEBPACK_IMPORTED_MODULE_0_react__["useLayoutEffect"] : __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"];
|
2536 |
-
/**
|
2537 |
-
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
2538 |
-
*
|
2539 |
-
* @param {function} fn
|
2540 |
-
*/
|
2541 |
-
|
2542 |
-
function useEventCallback(fn) {
|
2543 |
-
var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](fn);
|
2544 |
-
useEnhancedEffect(function () {
|
2545 |
-
ref.current = fn;
|
2546 |
-
});
|
2547 |
-
return __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function () {
|
2548 |
-
return (0, ref.current).apply(void 0, arguments);
|
2549 |
-
}, []);
|
2550 |
-
}
|
2551 |
-
|
2552 |
-
/***/ }),
|
2553 |
-
/* 46 */
|
2554 |
-
/***/ (function(module, exports) {
|
2555 |
-
|
2556 |
-
/**
|
2557 |
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
2558 |
-
* and has a `typeof` result of "object".
|
2559 |
-
*
|
2560 |
-
* @static
|
2561 |
-
* @memberOf _
|
2562 |
-
* @since 4.0.0
|
2563 |
-
* @category Lang
|
2564 |
-
* @param {*} value The value to check.
|
2565 |
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
2566 |
-
* @example
|
2567 |
-
*
|
2568 |
-
* _.isObjectLike({});
|
2569 |
-
* // => true
|
2570 |
-
*
|
2571 |
-
* _.isObjectLike([1, 2, 3]);
|
2572 |
-
* // => true
|
2573 |
-
*
|
2574 |
-
* _.isObjectLike(_.noop);
|
2575 |
-
* // => false
|
2576 |
-
*
|
2577 |
-
* _.isObjectLike(null);
|
2578 |
-
* // => false
|
2579 |
-
*/
|
2580 |
-
function isObjectLike(value) {
|
2581 |
-
return value != null && typeof value == 'object';
|
2582 |
-
}
|
2583 |
-
|
2584 |
-
module.exports = isObjectLike;
|
2585 |
-
|
2586 |
-
|
2587 |
-
/***/ }),
|
2588 |
-
/* 47 */
|
2589 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2590 |
-
|
2591 |
-
"use strict";
|
2592 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutPropertiesLoose;
|
2593 |
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
2594 |
-
if (source == null) return {};
|
2595 |
-
var target = {};
|
2596 |
-
var sourceKeys = Object.keys(source);
|
2597 |
-
var key, i;
|
2598 |
-
|
2599 |
-
for (i = 0; i < sourceKeys.length; i++) {
|
2600 |
-
key = sourceKeys[i];
|
2601 |
-
if (excluded.indexOf(key) >= 0) continue;
|
2602 |
-
target[key] = source[key];
|
2603 |
-
}
|
2604 |
-
|
2605 |
-
return target;
|
2606 |
-
}
|
2607 |
-
|
2608 |
-
/***/ }),
|
2609 |
-
/* 48 */
|
2610 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2611 |
-
|
2612 |
-
"use strict";
|
2613 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _createClass;
|
2614 |
-
function _defineProperties(target, props) {
|
2615 |
-
for (var i = 0; i < props.length; i++) {
|
2616 |
-
var descriptor = props[i];
|
2617 |
-
descriptor.enumerable = descriptor.enumerable || false;
|
2618 |
-
descriptor.configurable = true;
|
2619 |
-
if ("value" in descriptor) descriptor.writable = true;
|
2620 |
-
Object.defineProperty(target, descriptor.key, descriptor);
|
2621 |
-
}
|
2622 |
-
}
|
2623 |
-
|
2624 |
-
function _createClass(Constructor, protoProps, staticProps) {
|
2625 |
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
2626 |
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
2627 |
-
return Constructor;
|
2628 |
-
}
|
2629 |
-
|
2630 |
-
/***/ }),
|
2631 |
-
/* 49 */
|
2632 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2633 |
-
|
2634 |
-
"use strict";
|
2635 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useControlled;
|
2636 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
2637 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
2638 |
-
/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
|
2639 |
-
|
2640 |
-
function useControlled(_ref) {
|
2641 |
-
var controlled = _ref.controlled,
|
2642 |
-
defaultProp = _ref.default,
|
2643 |
-
name = _ref.name,
|
2644 |
-
_ref$state = _ref.state,
|
2645 |
-
state = _ref$state === void 0 ? 'value' : _ref$state;
|
2646 |
-
|
2647 |
-
var _React$useRef = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](controlled !== undefined),
|
2648 |
-
isControlled = _React$useRef.current;
|
2649 |
-
|
2650 |
-
var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](defaultProp),
|
2651 |
-
valueState = _React$useState[0],
|
2652 |
-
setValue = _React$useState[1];
|
2653 |
-
|
2654 |
-
var value = isControlled ? controlled : valueState;
|
2655 |
-
|
2656 |
-
if (process.env.NODE_ENV !== 'production') {
|
2657 |
-
__WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
|
2658 |
-
if (isControlled !== (controlled !== undefined)) {
|
2659 |
-
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'));
|
2660 |
-
}
|
2661 |
-
}, [controlled]);
|
2662 |
-
|
2663 |
-
var _React$useRef2 = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](defaultProp),
|
2664 |
-
defaultValue = _React$useRef2.current;
|
2665 |
-
|
2666 |
-
__WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
|
2667 |
-
if (!isControlled && defaultValue !== defaultProp) {
|
2668 |
-
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'));
|
2669 |
-
}
|
2670 |
-
}, [JSON.stringify(defaultProp)]);
|
2671 |
-
}
|
2672 |
-
|
2673 |
-
var setValueIfUncontrolled = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (newValue) {
|
2674 |
-
if (!isControlled) {
|
2675 |
-
setValue(newValue);
|
2676 |
-
}
|
2677 |
-
}, []);
|
2678 |
-
return [value, setValueIfUncontrolled];
|
2679 |
-
}
|
2680 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
2681 |
-
|
2682 |
-
/***/ }),
|
2683 |
-
/* 50 */
|
2684 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2685 |
-
|
2686 |
-
"use strict";
|
2687 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__IconButton__ = __webpack_require__(613);
|
2688 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__IconButton__["a"]; });
|
2689 |
-
|
2690 |
-
|
2691 |
-
/***/ }),
|
2692 |
-
/* 51 */
|
2693 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2694 |
-
|
2695 |
-
"use strict";
|
2696 |
-
/* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
|
2697 |
-
function warning(condition, message) {
|
2698 |
-
if (!isProduction) {
|
2699 |
-
if (condition) {
|
2700 |
-
return;
|
2701 |
-
}
|
2702 |
-
|
2703 |
-
var text = "Warning: " + message;
|
2704 |
-
|
2705 |
-
if (typeof console !== 'undefined') {
|
2706 |
-
console.warn(text);
|
2707 |
-
}
|
2708 |
-
|
2709 |
-
try {
|
2710 |
-
throw Error(text);
|
2711 |
-
} catch (x) {}
|
2712 |
-
}
|
2713 |
-
}
|
2714 |
-
|
2715 |
-
/* harmony default export */ __webpack_exports__["a"] = (warning);
|
2716 |
-
|
2717 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
2718 |
-
|
2719 |
-
/***/ }),
|
2720 |
-
/* 52 */
|
2721 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2722 |
-
|
2723 |
-
"use strict";
|
2724 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _typeof;
|
2725 |
-
function _typeof(obj) {
|
2726 |
-
"@babel/helpers - typeof";
|
2727 |
-
|
2728 |
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
2729 |
-
_typeof = function _typeof(obj) {
|
2730 |
-
return typeof obj;
|
2731 |
-
};
|
2732 |
-
} else {
|
2733 |
-
_typeof = function _typeof(obj) {
|
2734 |
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
2735 |
-
};
|
2736 |
-
}
|
2737 |
-
|
2738 |
-
return _typeof(obj);
|
2739 |
-
}
|
2740 |
-
|
2741 |
-
/***/ }),
|
2742 |
-
/* 53 */
|
2743 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2744 |
-
|
2745 |
-
"use strict";
|
2746 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RuleList; });
|
2747 |
-
/* unused harmony export SheetsManager */
|
2748 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SheetsRegistry; });
|
2749 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return create; });
|
2750 |
-
/* unused harmony export createGenerateId */
|
2751 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createRule; });
|
2752 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getDynamicStyles; });
|
2753 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasCSSTOMSupport; });
|
2754 |
-
/* unused harmony export sheets */
|
2755 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return toCssValue; });
|
2756 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
2757 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_is_in_browser__ = __webpack_require__(238);
|
2758 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tiny_warning__ = __webpack_require__(51);
|
2759 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__ = __webpack_require__(48);
|
2760 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(38);
|
2761 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(94);
|
2762 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(47);
|
2763 |
-
|
2764 |
-
|
2765 |
-
|
2766 |
-
|
2767 |
-
|
2768 |
-
|
2769 |
-
|
2770 |
-
|
2771 |
-
var plainObjectConstrurctor = {}.constructor;
|
2772 |
-
function cloneStyle(style) {
|
2773 |
-
if (style == null || typeof style !== 'object') return style;
|
2774 |
-
if (Array.isArray(style)) return style.map(cloneStyle);
|
2775 |
-
if (style.constructor !== plainObjectConstrurctor) return style;
|
2776 |
-
var newStyle = {};
|
2777 |
-
|
2778 |
-
for (var name in style) {
|
2779 |
-
newStyle[name] = cloneStyle(style[name]);
|
2780 |
-
}
|
2781 |
-
|
2782 |
-
return newStyle;
|
2783 |
-
}
|
2784 |
-
|
2785 |
-
/**
|
2786 |
-
* Create a rule instance.
|
2787 |
-
*/
|
2788 |
-
|
2789 |
-
function createRule(name, decl, options) {
|
2790 |
-
if (name === void 0) {
|
2791 |
-
name = 'unnamed';
|
2792 |
-
}
|
2793 |
-
|
2794 |
-
var jss = options.jss;
|
2795 |
-
var declCopy = cloneStyle(decl);
|
2796 |
-
var rule = jss.plugins.onCreateRule(name, declCopy, options);
|
2797 |
-
if (rule) return rule; // It is an at-rule and it has no instance.
|
2798 |
-
|
2799 |
-
if (name[0] === '@') {
|
2800 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown rule " + name) : void 0;
|
2801 |
-
}
|
2802 |
-
|
2803 |
-
return null;
|
2804 |
-
}
|
2805 |
-
|
2806 |
-
var join = function join(value, by) {
|
2807 |
-
var result = '';
|
2808 |
-
|
2809 |
-
for (var i = 0; i < value.length; i++) {
|
2810 |
-
// Remove !important from the value, it will be readded later.
|
2811 |
-
if (value[i] === '!important') break;
|
2812 |
-
if (result) result += by;
|
2813 |
-
result += value[i];
|
2814 |
-
}
|
2815 |
-
|
2816 |
-
return result;
|
2817 |
-
};
|
2818 |
-
|
2819 |
-
/**
|
2820 |
-
* Converts array values to string.
|
2821 |
-
*
|
2822 |
-
* `margin: [['5px', '10px']]` > `margin: 5px 10px;`
|
2823 |
-
* `border: ['1px', '2px']` > `border: 1px, 2px;`
|
2824 |
-
* `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
|
2825 |
-
* `color: ['red', !important]` > `color: red !important;`
|
2826 |
-
*/
|
2827 |
-
var toCssValue = function toCssValue(value, ignoreImportant) {
|
2828 |
-
if (ignoreImportant === void 0) {
|
2829 |
-
ignoreImportant = false;
|
2830 |
-
}
|
2831 |
-
|
2832 |
-
if (!Array.isArray(value)) return value;
|
2833 |
-
var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
|
2834 |
-
|
2835 |
-
if (Array.isArray(value[0])) {
|
2836 |
-
for (var i = 0; i < value.length; i++) {
|
2837 |
-
if (value[i] === '!important') break;
|
2838 |
-
if (cssValue) cssValue += ', ';
|
2839 |
-
cssValue += join(value[i], ' ');
|
2840 |
-
}
|
2841 |
-
} else cssValue = join(value, ', '); // Add !important, because it was ignored.
|
2842 |
-
|
2843 |
-
|
2844 |
-
if (!ignoreImportant && value[value.length - 1] === '!important') {
|
2845 |
-
cssValue += ' !important';
|
2846 |
-
}
|
2847 |
-
|
2848 |
-
return cssValue;
|
2849 |
-
};
|
2850 |
-
|
2851 |
-
/**
|
2852 |
-
* Indent a string.
|
2853 |
-
* http://jsperf.com/array-join-vs-for
|
2854 |
-
*/
|
2855 |
-
function indentStr(str, indent) {
|
2856 |
-
var result = '';
|
2857 |
-
|
2858 |
-
for (var index = 0; index < indent; index++) {
|
2859 |
-
result += ' ';
|
2860 |
-
}
|
2861 |
-
|
2862 |
-
return result + str;
|
2863 |
-
}
|
2864 |
-
/**
|
2865 |
-
* Converts a Rule to CSS string.
|
2866 |
-
*/
|
2867 |
-
|
2868 |
-
|
2869 |
-
function toCss(selector, style, options) {
|
2870 |
-
if (options === void 0) {
|
2871 |
-
options = {};
|
2872 |
-
}
|
2873 |
-
|
2874 |
-
var result = '';
|
2875 |
-
if (!style) return result;
|
2876 |
-
var _options = options,
|
2877 |
-
_options$indent = _options.indent,
|
2878 |
-
indent = _options$indent === void 0 ? 0 : _options$indent;
|
2879 |
-
var fallbacks = style.fallbacks;
|
2880 |
-
if (selector) indent++; // Apply fallbacks first.
|
2881 |
-
|
2882 |
-
if (fallbacks) {
|
2883 |
-
// Array syntax {fallbacks: [{prop: value}]}
|
2884 |
-
if (Array.isArray(fallbacks)) {
|
2885 |
-
for (var index = 0; index < fallbacks.length; index++) {
|
2886 |
-
var fallback = fallbacks[index];
|
2887 |
-
|
2888 |
-
for (var prop in fallback) {
|
2889 |
-
var value = fallback[prop];
|
2890 |
-
|
2891 |
-
if (value != null) {
|
2892 |
-
if (result) result += '\n';
|
2893 |
-
result += "" + indentStr(prop + ": " + toCssValue(value) + ";", indent);
|
2894 |
-
}
|
2895 |
-
}
|
2896 |
-
}
|
2897 |
-
} else {
|
2898 |
-
// Object syntax {fallbacks: {prop: value}}
|
2899 |
-
for (var _prop in fallbacks) {
|
2900 |
-
var _value = fallbacks[_prop];
|
2901 |
-
|
2902 |
-
if (_value != null) {
|
2903 |
-
if (result) result += '\n';
|
2904 |
-
result += "" + indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
|
2905 |
-
}
|
2906 |
-
}
|
2907 |
-
}
|
2908 |
-
}
|
2909 |
-
|
2910 |
-
for (var _prop2 in style) {
|
2911 |
-
var _value2 = style[_prop2];
|
2912 |
-
|
2913 |
-
if (_value2 != null && _prop2 !== 'fallbacks') {
|
2914 |
-
if (result) result += '\n';
|
2915 |
-
result += "" + indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
|
2916 |
-
}
|
2917 |
-
} // Allow empty style in this case, because properties will be added dynamically.
|
2918 |
-
|
2919 |
-
|
2920 |
-
if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
|
2921 |
-
|
2922 |
-
if (!selector) return result;
|
2923 |
-
indent--;
|
2924 |
-
if (result) result = "\n" + result + "\n";
|
2925 |
-
return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
|
2926 |
-
}
|
2927 |
-
|
2928 |
-
var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
|
2929 |
-
var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
|
2930 |
-
var escape = (function (str) {
|
2931 |
-
return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
|
2932 |
-
});
|
2933 |
-
|
2934 |
-
var BaseStyleRule =
|
2935 |
-
/*#__PURE__*/
|
2936 |
-
function () {
|
2937 |
-
function BaseStyleRule(key, style, options) {
|
2938 |
-
this.type = 'style';
|
2939 |
-
this.key = void 0;
|
2940 |
-
this.isProcessed = false;
|
2941 |
-
this.style = void 0;
|
2942 |
-
this.renderer = void 0;
|
2943 |
-
this.renderable = void 0;
|
2944 |
-
this.options = void 0;
|
2945 |
-
var sheet = options.sheet,
|
2946 |
-
Renderer = options.Renderer;
|
2947 |
-
this.key = key;
|
2948 |
-
this.options = options;
|
2949 |
-
this.style = style;
|
2950 |
-
if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
|
2951 |
-
}
|
2952 |
-
/**
|
2953 |
-
* Get or set a style property.
|
2954 |
-
*/
|
2955 |
-
|
2956 |
-
|
2957 |
-
var _proto = BaseStyleRule.prototype;
|
2958 |
-
|
2959 |
-
_proto.prop = function prop(name, value, options) {
|
2960 |
-
// It's a getter.
|
2961 |
-
if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
|
2962 |
-
|
2963 |
-
var force = options ? options.force : false;
|
2964 |
-
if (!force && this.style[name] === value) return this;
|
2965 |
-
var newValue = value;
|
2966 |
-
|
2967 |
-
if (!options || options.process !== false) {
|
2968 |
-
newValue = this.options.jss.plugins.onChangeValue(value, name, this);
|
2969 |
-
}
|
2970 |
-
|
2971 |
-
var isEmpty = newValue == null || newValue === false;
|
2972 |
-
var isDefined = name in this.style; // Value is empty and wasn't defined before.
|
2973 |
-
|
2974 |
-
if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
|
2975 |
-
|
2976 |
-
var remove = isEmpty && isDefined;
|
2977 |
-
if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.
|
2978 |
-
|
2979 |
-
if (this.renderable && this.renderer) {
|
2980 |
-
if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);
|
2981 |
-
return this;
|
2982 |
-
}
|
2983 |
-
|
2984 |
-
var sheet = this.options.sheet;
|
2985 |
-
|
2986 |
-
if (sheet && sheet.attached) {
|
2987 |
-
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;
|
2988 |
-
}
|
2989 |
-
|
2990 |
-
return this;
|
2991 |
-
};
|
2992 |
-
|
2993 |
-
return BaseStyleRule;
|
2994 |
-
}();
|
2995 |
-
var StyleRule =
|
2996 |
-
/*#__PURE__*/
|
2997 |
-
function (_BaseStyleRule) {
|
2998 |
-
Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(StyleRule, _BaseStyleRule);
|
2999 |
-
|
3000 |
-
function StyleRule(key, style, options) {
|
3001 |
-
var _this;
|
3002 |
-
|
3003 |
-
_this = _BaseStyleRule.call(this, key, style, options) || this;
|
3004 |
-
_this.selectorText = void 0;
|
3005 |
-
_this.id = void 0;
|
3006 |
-
_this.renderable = void 0;
|
3007 |
-
var selector = options.selector,
|
3008 |
-
scoped = options.scoped,
|
3009 |
-
sheet = options.sheet,
|
3010 |
-
generateId = options.generateId;
|
3011 |
-
|
3012 |
-
if (selector) {
|
3013 |
-
_this.selectorText = selector;
|
3014 |
-
} else if (scoped !== false) {
|
3015 |
-
_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);
|
3016 |
-
_this.selectorText = "." + escape(_this.id);
|
3017 |
-
}
|
3018 |
-
|
3019 |
-
return _this;
|
3020 |
-
}
|
3021 |
-
/**
|
3022 |
-
* Set selector string.
|
3023 |
-
* Attention: use this with caution. Most browsers didn't implement
|
3024 |
-
* selectorText setter, so this may result in rerendering of entire Style Sheet.
|
3025 |
-
*/
|
3026 |
-
|
3027 |
-
|
3028 |
-
var _proto2 = StyleRule.prototype;
|
3029 |
-
|
3030 |
-
/**
|
3031 |
-
* Apply rule to an element inline.
|
3032 |
-
*/
|
3033 |
-
_proto2.applyTo = function applyTo(renderable) {
|
3034 |
-
var renderer = this.renderer;
|
3035 |
-
|
3036 |
-
if (renderer) {
|
3037 |
-
var json = this.toJSON();
|
3038 |
-
|
3039 |
-
for (var prop in json) {
|
3040 |
-
renderer.setProperty(renderable, prop, json[prop]);
|
3041 |
-
}
|
3042 |
-
}
|
3043 |
-
|
3044 |
-
return this;
|
3045 |
-
}
|
3046 |
-
/**
|
3047 |
-
* Returns JSON representation of the rule.
|
3048 |
-
* Fallbacks are not supported.
|
3049 |
-
* Useful for inline styles.
|
3050 |
-
*/
|
3051 |
-
;
|
3052 |
-
|
3053 |
-
_proto2.toJSON = function toJSON() {
|
3054 |
-
var json = {};
|
3055 |
-
|
3056 |
-
for (var prop in this.style) {
|
3057 |
-
var value = this.style[prop];
|
3058 |
-
if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);
|
3059 |
-
}
|
3060 |
-
|
3061 |
-
return json;
|
3062 |
-
}
|
3063 |
-
/**
|
3064 |
-
* Generates a CSS string.
|
3065 |
-
*/
|
3066 |
-
;
|
3067 |
-
|
3068 |
-
_proto2.toString = function toString(options) {
|
3069 |
-
var sheet = this.options.sheet;
|
3070 |
-
var link = sheet ? sheet.options.link : false;
|
3071 |
-
var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
|
3072 |
-
allowEmpty: true
|
3073 |
-
}) : options;
|
3074 |
-
return toCss(this.selectorText, this.style, opts);
|
3075 |
-
};
|
3076 |
-
|
3077 |
-
Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(StyleRule, [{
|
3078 |
-
key: "selector",
|
3079 |
-
set: function set(selector) {
|
3080 |
-
if (selector === this.selectorText) return;
|
3081 |
-
this.selectorText = selector;
|
3082 |
-
var renderer = this.renderer,
|
3083 |
-
renderable = this.renderable;
|
3084 |
-
if (!renderable || !renderer) return;
|
3085 |
-
var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the ru |