Version Description
(17th August 2020) = * New: WordPress 5.5 support #224 * Fix: Console errors with 5.5 #225 * Fix: WP 5.5 causing jQuery issues #232
Download this release
Release Info
| Developer | wpquads |
| Plugin | |
| Version | 2.0.10.2 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.10.1 to 2.0.10.2
- admin/assets/js/dist/adminscript.js +525 -25544
admin/assets/js/dist/adminscript.js
CHANGED
|
@@ -1,117259 +1,117254 @@
|
|
| 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 = 388);
|
| 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__(389);
|
| 75 |
-
} else {
|
| 76 |
-
module.exports = __webpack_require__(390);
|
| 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__(15);
|
| 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__(401)(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__(402)();
|
| 293 |
-
}
|
| 294 |
-
|
| 295 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
|
| 296 |
-
|
| 297 |
-
/***/ }),
|
| 298 |
-
/* 3 */
|
| 299 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 300 |
-
|
| 301 |
-
"use strict";
|
| 302 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _extends;
|
| 303 |
-
function _extends() {
|
| 304 |
-
_extends = Object.assign || function (target) {
|
| 305 |
-
for (var i = 1; i < arguments.length; i++) {
|
| 306 |
-
var source = arguments[i];
|
| 307 |
-
|
| 308 |
-
for (var key in source) {
|
| 309 |
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
| 310 |
-
target[key] = source[key];
|
| 311 |
-
}
|
| 312 |
-
}
|
| 313 |
-
}
|
| 314 |
-
|
| 315 |
-
return target;
|
| 316 |
-
};
|
| 317 |
-
|
| 318 |
-
return _extends.apply(this, arguments);
|
| 319 |
-
}
|
| 320 |
-
|
| 321 |
-
/***/ }),
|
| 322 |
-
/* 4 */
|
| 323 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 324 |
-
|
| 325 |
-
"use strict";
|
| 326 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutProperties;
|
| 327 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose__ = __webpack_require__(54);
|
| 328 |
-
|
| 329 |
-
function _objectWithoutProperties(source, excluded) {
|
| 330 |
-
if (source == null) return {};
|
| 331 |
-
var target = Object(__WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose__["a" /* default */])(source, excluded);
|
| 332 |
-
var key, i;
|
| 333 |
-
|
| 334 |
-
if (Object.getOwnPropertySymbols) {
|
| 335 |
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
| 336 |
-
|
| 337 |
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
| 338 |
-
key = sourceSymbolKeys[i];
|
| 339 |
-
if (excluded.indexOf(key) >= 0) continue;
|
| 340 |
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
| 341 |
-
target[key] = source[key];
|
| 342 |
-
}
|
| 343 |
-
}
|
| 344 |
-
|
| 345 |
-
return target;
|
| 346 |
-
}
|
| 347 |
-
|
| 348 |
-
/***/ }),
|
| 349 |
-
/* 5 */
|
| 350 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 351 |
-
|
| 352 |
-
"use strict";
|
| 353 |
-
function toVal(mix) {
|
| 354 |
-
var k, y, str='';
|
| 355 |
-
|
| 356 |
-
if (typeof mix === 'string' || typeof mix === 'number') {
|
| 357 |
-
str += mix;
|
| 358 |
-
} else if (typeof mix === 'object') {
|
| 359 |
-
if (Array.isArray(mix)) {
|
| 360 |
-
for (k=0; k < mix.length; k++) {
|
| 361 |
-
if (mix[k]) {
|
| 362 |
-
if (y = toVal(mix[k])) {
|
| 363 |
-
str && (str += ' ');
|
| 364 |
-
str += y;
|
| 365 |
-
}
|
| 366 |
-
}
|
| 367 |
-
}
|
| 368 |
-
} else {
|
| 369 |
-
for (k in mix) {
|
| 370 |
-
if (mix[k]) {
|
| 371 |
-
str && (str += ' ');
|
| 372 |
-
str += k;
|
| 373 |
-
}
|
| 374 |
-
}
|
| 375 |
-
}
|
| 376 |
-
}
|
| 377 |
-
|
| 378 |
-
return str;
|
| 379 |
-
}
|
| 380 |
-
|
| 381 |
-
/* harmony default export */ __webpack_exports__["a"] = (function () {
|
| 382 |
-
var i=0, tmp, x, str='';
|
| 383 |
-
while (i < arguments.length) {
|
| 384 |
-
if (tmp = arguments[i++]) {
|
| 385 |
-
if (x = toVal(tmp)) {
|
| 386 |
-
str && (str += ' ');
|
| 387 |
-
str += x
|
| 388 |
-
}
|
| 389 |
-
}
|
| 390 |
-
}
|
| 391 |
-
return str;
|
| 392 |
-
});
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
/***/ }),
|
| 396 |
-
/* 6 */
|
| 397 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 398 |
-
|
| 399 |
-
"use strict";
|
| 400 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 401 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_styles__ = __webpack_require__(23);
|
| 402 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(64);
|
| 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 import */ var __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__ = __webpack_require__(119);
|
| 421 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__["a"]; });
|
| 422 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__deepmerge__ = __webpack_require__(433);
|
| 423 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_1__deepmerge__["a"]; });
|
| 424 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__ = __webpack_require__(434);
|
| 425 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__["a"]; });
|
| 426 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__ = __webpack_require__(435);
|
| 427 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__["a"]; });
|
| 428 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__exactProp__ = __webpack_require__(436);
|
| 429 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__exactProp__["a"]; });
|
| 430 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__ = __webpack_require__(437);
|
| 431 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__["a"]; });
|
| 432 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__getDisplayName__ = __webpack_require__(438);
|
| 433 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_6__getDisplayName__["a"]; });
|
| 434 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__ = __webpack_require__(439);
|
| 435 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__["a"]; });
|
| 436 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__ = __webpack_require__(440);
|
| 437 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__["a"]; });
|
| 438 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__refType__ = __webpack_require__(441);
|
| 439 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__refType__["a"]; });
|
| 440 |
-
/** @license Material-UI v4.10.2
|
| 441 |
-
*
|
| 442 |
-
* This source code is licensed under the MIT license found in the
|
| 443 |
-
* LICENSE file in the root directory of this source tree.
|
| 444 |
-
*/
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
/***/ }),
|
| 457 |
-
/* 8 */
|
| 458 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 459 |
-
|
| 460 |
-
"use strict";
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
Object.defineProperty(exports, "__esModule", {
|
| 464 |
-
value: true
|
| 465 |
-
});
|
| 466 |
-
exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
|
| 467 |
-
|
| 468 |
-
var _flattenNames = __webpack_require__(725);
|
| 469 |
-
|
| 470 |
-
var _flattenNames2 = _interopRequireDefault(_flattenNames);
|
| 471 |
-
|
| 472 |
-
var _mergeClasses = __webpack_require__(796);
|
| 473 |
-
|
| 474 |
-
var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
|
| 475 |
-
|
| 476 |
-
var _autoprefix = __webpack_require__(816);
|
| 477 |
-
|
| 478 |
-
var _autoprefix2 = _interopRequireDefault(_autoprefix);
|
| 479 |
-
|
| 480 |
-
var _hover2 = __webpack_require__(817);
|
| 481 |
-
|
| 482 |
-
var _hover3 = _interopRequireDefault(_hover2);
|
| 483 |
-
|
| 484 |
-
var _active = __webpack_require__(818);
|
| 485 |
-
|
| 486 |
-
var _active2 = _interopRequireDefault(_active);
|
| 487 |
-
|
| 488 |
-
var _loop2 = __webpack_require__(819);
|
| 489 |
-
|
| 490 |
-
var _loop3 = _interopRequireDefault(_loop2);
|
| 491 |
-
|
| 492 |
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
| 493 |
-
|
| 494 |
-
exports.hover = _hover3.default;
|
| 495 |
-
exports.handleHover = _hover3.default;
|
| 496 |
-
exports.handleActive = _active2.default;
|
| 497 |
-
exports.loop = _loop3.default;
|
| 498 |
-
var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
|
| 499 |
-
for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
| 500 |
-
activations[_key - 1] = arguments[_key];
|
| 501 |
-
}
|
| 502 |
-
|
| 503 |
-
var activeNames = (0, _flattenNames2.default)(activations);
|
| 504 |
-
var merged = (0, _mergeClasses2.default)(classes, activeNames);
|
| 505 |
-
return (0, _autoprefix2.default)(merged);
|
| 506 |
-
};
|
| 507 |
-
|
| 508 |
-
exports.default = ReactCSS;
|
| 509 |
-
|
| 510 |
-
/***/ }),
|
| 511 |
-
/* 9 */
|
| 512 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 513 |
-
|
| 514 |
-
"use strict";
|
| 515 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = capitalize;
|
| 516 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
|
| 517 |
-
|
| 518 |
-
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
|
| 519 |
-
//
|
| 520 |
-
// A strict capitalization should uppercase the first letter of each word a the sentence.
|
| 521 |
-
// We only handle the first word.
|
| 522 |
-
function capitalize(string) {
|
| 523 |
-
if (typeof string !== 'string') {
|
| 524 |
-
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));
|
| 525 |
-
}
|
| 526 |
-
|
| 527 |
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
| 528 |
-
}
|
| 529 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 530 |
-
|
| 531 |
-
/***/ }),
|
| 532 |
-
/* 10 */
|
| 533 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 534 |
-
|
| 535 |
-
"use strict";
|
| 536 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__capitalize__ = __webpack_require__(9);
|
| 537 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__capitalize__["a"]; });
|
| 538 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createChainedFunction__ = __webpack_require__(57);
|
| 539 |
-
/* unused harmony reexport createChainedFunction */
|
| 540 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__ = __webpack_require__(21);
|
| 541 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__["a"]; });
|
| 542 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__debounce__ = __webpack_require__(47);
|
| 543 |
-
/* unused harmony reexport debounce */
|
| 544 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__deprecatedPropType__ = __webpack_require__(516);
|
| 545 |
-
/* unused harmony reexport deprecatedPropType */
|
| 546 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isMuiElement__ = __webpack_require__(66);
|
| 547 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__isMuiElement__["a"]; });
|
| 548 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ownerDocument__ = __webpack_require__(29);
|
| 549 |
-
/* unused harmony reexport ownerDocument */
|
| 550 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ownerWindow__ = __webpack_require__(86);
|
| 551 |
-
/* unused harmony reexport ownerWindow */
|
| 552 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__requirePropFactory__ = __webpack_require__(237);
|
| 553 |
-
/* unused harmony reexport requirePropFactory */
|
| 554 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__setRef__ = __webpack_require__(48);
|
| 555 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_9__setRef__["a"]; });
|
| 556 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__unsupportedProp__ = __webpack_require__(87);
|
| 557 |
-
/* unused harmony reexport unsupportedProp */
|
| 558 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useControlled__ = __webpack_require__(41);
|
| 559 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useControlled__["a"]; });
|
| 560 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__useEventCallback__ = __webpack_require__(38);
|
| 561 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__useEventCallback__["a"]; });
|
| 562 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__useForkRef__ = __webpack_require__(14);
|
| 563 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__useForkRef__["a"]; });
|
| 564 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__unstable_useId__ = __webpack_require__(88);
|
| 565 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_14__unstable_useId__["a"]; });
|
| 566 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__useIsFocusVisible__ = __webpack_require__(67);
|
| 567 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_15__useIsFocusVisible__["a"]; });
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
// eslint-disable-next-line camelcase
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
/***/ }),
|
| 587 |
-
/* 11 */
|
| 588 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 589 |
-
|
| 590 |
-
"use strict";
|
| 591 |
-
/* WEBPACK VAR INJECTION */(function(process) {
|
| 592 |
-
|
| 593 |
-
function checkDCE() {
|
| 594 |
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
| 595 |
-
if (
|
| 596 |
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
|
| 597 |
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
|
| 598 |
-
) {
|
| 599 |
-
return;
|
| 600 |
-
}
|
| 601 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 602 |
-
// This branch is unreachable because this function is only called
|
| 603 |
-
// in production, but the condition is true only in development.
|
| 604 |
-
// Therefore if the branch is still here, dead code elimination wasn't
|
| 605 |
-
// properly applied.
|
| 606 |
-
// Don't change the message. React DevTools relies on it. Also make sure
|
| 607 |
-
// this message doesn't occur elsewhere in this function, or it will cause
|
| 608 |
-
// a false positive.
|
| 609 |
-
throw new Error('^_^');
|
| 610 |
-
}
|
| 611 |
-
try {
|
| 612 |
-
// Verify that the code above has been dead code eliminated (DCE'd).
|
| 613 |
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
| 614 |
-
} catch (err) {
|
| 615 |
-
// DevTools shouldn't crash React, no matter what.
|
| 616 |
-
// We should still report in case we break this code.
|
| 617 |
-
console.error(err);
|
| 618 |
-
}
|
| 619 |
-
}
|
| 620 |
-
|
| 621 |
-
if (process.env.NODE_ENV === 'production') {
|
| 622 |
-
// DCE check should happen before ReactDOM bundle executes so that
|
| 623 |
-
// DevTools can report bad minification during injection.
|
| 624 |
-
checkDCE();
|
| 625 |
-
module.exports = __webpack_require__(391);
|
| 626 |
-
} else {
|
| 627 |
-
module.exports = __webpack_require__(394);
|
| 628 |
-
}
|
| 629 |
-
|
| 630 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
|
| 631 |
-
|
| 632 |
-
/***/ }),
|
| 633 |
-
/* 12 */
|
| 634 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 635 |
-
|
| 636 |
-
"use strict";
|
| 637 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__colorManipulator__ = __webpack_require__(19);
|
| 638 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["a"]; });
|
| 639 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["b"]; });
|
| 640 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["c"]; });
|
| 641 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["e"]; });
|
| 642 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createMuiTheme__ = __webpack_require__(126);
|
| 643 |
-
/* unused harmony reexport createMuiTheme */
|
| 644 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createMuiStrictModeTheme__ = __webpack_require__(507);
|
| 645 |
-
/* unused harmony reexport unstable_createMuiStrictModeTheme */
|
| 646 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createStyles__ = __webpack_require__(508);
|
| 647 |
-
/* unused harmony reexport createStyles */
|
| 648 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__makeStyles__ = __webpack_require__(509);
|
| 649 |
-
/* unused harmony reexport makeStyles */
|
| 650 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__responsiveFontSizes__ = __webpack_require__(510);
|
| 651 |
-
/* unused harmony reexport responsiveFontSizes */
|
| 652 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styled__ = __webpack_require__(236);
|
| 653 |
-
/* unused harmony reexport styled */
|
| 654 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__transitions__ = __webpack_require__(34);
|
| 655 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_7__transitions__["b"]; });
|
| 656 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__useTheme__ = __webpack_require__(17);
|
| 657 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_8__useTheme__["a"]; });
|
| 658 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__withStyles__ = __webpack_require__(6);
|
| 659 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_9__withStyles__["a"]; });
|
| 660 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__withTheme__ = __webpack_require__(512);
|
| 661 |
-
/* unused harmony reexport withTheme */
|
| 662 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_ui_styles__ = __webpack_require__(23);
|
| 663 |
-
/* unused harmony reexport createGenerateClassName */
|
| 664 |
-
/* unused harmony reexport jssPreset */
|
| 665 |
-
/* unused harmony reexport ServerStyleSheets */
|
| 666 |
-
/* unused harmony reexport StylesProvider */
|
| 667 |
-
/* unused harmony reexport MuiThemeProvider */
|
| 668 |
-
/* unused harmony reexport ThemeProvider */
|
| 669 |
-
|
| 670 |
-
// eslint-disable-next-line camelcase
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
/***/ }),
|
| 684 |
-
/* 13 */
|
| 685 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 686 |
-
|
| 687 |
-
"use strict";
|
| 688 |
-
|
| 689 |
-
|
| 690 |
-
Object.defineProperty(exports, "__esModule", {
|
| 691 |
-
value: true
|
| 692 |
-
});
|
| 693 |
-
|
| 694 |
-
var _Alpha = __webpack_require__(820);
|
| 695 |
-
|
| 696 |
-
Object.defineProperty(exports, 'Alpha', {
|
| 697 |
-
enumerable: true,
|
| 698 |
-
get: function get() {
|
| 699 |
-
return _interopRequireDefault(_Alpha).default;
|
| 700 |
-
}
|
| 701 |
-
});
|
| 702 |
-
|
| 703 |
-
var _Checkboard = __webpack_require__(183);
|
| 704 |
-
|
| 705 |
-
Object.defineProperty(exports, 'Checkboard', {
|
| 706 |
-
enumerable: true,
|
| 707 |
-
get: function get() {
|
| 708 |
-
return _interopRequireDefault(_Checkboard).default;
|
| 709 |
-
}
|
| 710 |
-
});
|
| 711 |
-
|
| 712 |
-
var _EditableInput = __webpack_require__(823);
|
| 713 |
-
|
| 714 |
-
Object.defineProperty(exports, 'EditableInput', {
|
| 715 |
-
enumerable: true,
|
| 716 |
-
get: function get() {
|
| 717 |
-
return _interopRequireDefault(_EditableInput).default;
|
| 718 |
-
}
|
| 719 |
-
});
|
| 720 |
-
|
| 721 |
-
var _Hue = __webpack_require__(824);
|
| 722 |
-
|
| 723 |
-
Object.defineProperty(exports, 'Hue', {
|
| 724 |
-
enumerable: true,
|
| 725 |
-
get: function get() {
|
| 726 |
-
return _interopRequireDefault(_Hue).default;
|
| 727 |
-
}
|
| 728 |
-
});
|
| 729 |
-
|
| 730 |
-
var _Raised = __webpack_require__(826);
|
| 731 |
-
|
| 732 |
-
Object.defineProperty(exports, 'Raised', {
|
| 733 |
-
enumerable: true,
|
| 734 |
-
get: function get() {
|
| 735 |
-
return _interopRequireDefault(_Raised).default;
|
| 736 |
-
}
|
| 737 |
-
});
|
| 738 |
-
|
| 739 |
-
var _Saturation = __webpack_require__(840);
|
| 740 |
-
|
| 741 |
-
Object.defineProperty(exports, 'Saturation', {
|
| 742 |
-
enumerable: true,
|
| 743 |
-
get: function get() {
|
| 744 |
-
return _interopRequireDefault(_Saturation).default;
|
| 745 |
-
}
|
| 746 |
-
});
|
| 747 |
-
|
| 748 |
-
var _ColorWrap = __webpack_require__(386);
|
| 749 |
-
|
| 750 |
-
Object.defineProperty(exports, 'ColorWrap', {
|
| 751 |
-
enumerable: true,
|
| 752 |
-
get: function get() {
|
| 753 |
-
return _interopRequireDefault(_ColorWrap).default;
|
| 754 |
-
}
|
| 755 |
-
});
|
| 756 |
-
|
| 757 |
-
var _Swatch = __webpack_require__(848);
|
| 758 |
-
|
| 759 |
-
Object.defineProperty(exports, 'Swatch', {
|
| 760 |
-
enumerable: true,
|
| 761 |
-
get: function get() {
|
| 762 |
-
return _interopRequireDefault(_Swatch).default;
|
| 763 |
-
}
|
| 764 |
-
});
|
| 765 |
-
|
| 766 |
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
| 767 |
-
|
| 768 |
-
/***/ }),
|
| 769 |
-
/* 14 */
|
| 770 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 771 |
-
|
| 772 |
-
"use strict";
|
| 773 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = useForkRef;
|
| 774 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 775 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 776 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__setRef__ = __webpack_require__(48);
|
| 777 |
-
|
| 778 |
-
|
| 779 |
-
function useForkRef(refA, refB) {
|
| 780 |
-
/**
|
| 781 |
-
* This will create a new function if the ref props change and are defined.
|
| 782 |
-
* This means react will call the old forkRef with `null` and the new forkRef
|
| 783 |
-
* with the ref. Cleanup naturally emerges from this behavior
|
| 784 |
-
*/
|
| 785 |
-
return __WEBPACK_IMPORTED_MODULE_0_react__["useMemo"](function () {
|
| 786 |
-
if (refA == null && refB == null) {
|
| 787 |
-
return null;
|
| 788 |
-
}
|
| 789 |
-
|
| 790 |
-
return function (refValue) {
|
| 791 |
-
Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refA, refValue);
|
| 792 |
-
Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refB, refValue);
|
| 793 |
-
};
|
| 794 |
-
}, [refA, refB]);
|
| 795 |
-
}
|
| 796 |
-
|
| 797 |
-
/***/ }),
|
| 798 |
-
/* 15 */
|
| 799 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 800 |
-
|
| 801 |
-
"use strict";
|
| 802 |
-
/* WEBPACK VAR INJECTION */(function(process) {
|
| 803 |
-
|
| 804 |
-
if (process.env.NODE_ENV === 'production') {
|
| 805 |
-
module.exports = __webpack_require__(399);
|
| 806 |
-
} else {
|
| 807 |
-
module.exports = __webpack_require__(400);
|
| 808 |
-
}
|
| 809 |
-
|
| 810 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
|
| 811 |
-
|
| 812 |
-
/***/ }),
|
| 813 |
-
/* 16 */
|
| 814 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 815 |
-
|
| 816 |
-
"use strict";
|
| 817 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _defineProperty;
|
| 818 |
-
function _defineProperty(obj, key, value) {
|
| 819 |
-
if (key in obj) {
|
| 820 |
-
Object.defineProperty(obj, key, {
|
| 821 |
-
value: value,
|
| 822 |
-
enumerable: true,
|
| 823 |
-
configurable: true,
|
| 824 |
-
writable: true
|
| 825 |
-
});
|
| 826 |
-
} else {
|
| 827 |
-
obj[key] = value;
|
| 828 |
-
}
|
| 829 |
-
|
| 830 |
-
return obj;
|
| 831 |
-
}
|
| 832 |
-
|
| 833 |
-
/***/ }),
|
| 834 |
-
/* 17 */
|
| 835 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 836 |
-
|
| 837 |
-
"use strict";
|
| 838 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useTheme;
|
| 839 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_styles__ = __webpack_require__(23);
|
| 840 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
|
| 841 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
|
| 842 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(64);
|
| 843 |
-
|
| 844 |
-
|
| 845 |
-
|
| 846 |
-
function useTheme() {
|
| 847 |
-
var theme = Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_styles__["f" /* useTheme */])() || __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */];
|
| 848 |
-
|
| 849 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 850 |
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
| 851 |
-
__WEBPACK_IMPORTED_MODULE_1_react___default.a.useDebugValue(theme);
|
| 852 |
-
}
|
| 853 |
-
|
| 854 |
-
return theme;
|
| 855 |
-
}
|
| 856 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 857 |
-
|
| 858 |
-
/***/ }),
|
| 859 |
-
/* 18 */
|
| 860 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 861 |
-
|
| 862 |
-
"use strict";
|
| 863 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ButtonBase__ = __webpack_require__(521);
|
| 864 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ButtonBase__["a"]; });
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
/***/ }),
|
| 868 |
-
/* 19 */
|
| 869 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 870 |
-
|
| 871 |
-
"use strict";
|
| 872 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export hexToRgb */
|
| 873 |
-
/* unused harmony export rgbToHex */
|
| 874 |
-
/* unused harmony export hslToRgb */
|
| 875 |
-
/* unused harmony export decomposeColor */
|
| 876 |
-
/* unused harmony export recomposeColor */
|
| 877 |
-
/* harmony export (immutable) */ __webpack_exports__["d"] = getContrastRatio;
|
| 878 |
-
/* unused harmony export getLuminance */
|
| 879 |
-
/* harmony export (immutable) */ __webpack_exports__["b"] = emphasize;
|
| 880 |
-
/* harmony export (immutable) */ __webpack_exports__["c"] = fade;
|
| 881 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = darken;
|
| 882 |
-
/* harmony export (immutable) */ __webpack_exports__["e"] = lighten;
|
| 883 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
|
| 884 |
-
|
| 885 |
-
|
| 886 |
-
/* eslint-disable no-use-before-define */
|
| 887 |
-
|
| 888 |
-
/**
|
| 889 |
-
* Returns a number whose value is limited to the given range.
|
| 890 |
-
*
|
| 891 |
-
* @param {number} value The value to be clamped
|
| 892 |
-
* @param {number} min The lower boundary of the output range
|
| 893 |
-
* @param {number} max The upper boundary of the output range
|
| 894 |
-
* @returns {number} A number in the range [min, max]
|
| 895 |
-
*/
|
| 896 |
-
function clamp(value) {
|
| 897 |
-
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
| 898 |
-
var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
| 899 |
-
|
| 900 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 901 |
-
if (value < min || value > max) {
|
| 902 |
-
console.error("Material-UI: The value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "]."));
|
| 903 |
-
}
|
| 904 |
-
}
|
| 905 |
-
|
| 906 |
-
return Math.min(Math.max(min, value), max);
|
| 907 |
-
}
|
| 908 |
-
/**
|
| 909 |
-
* Converts a color from CSS hex format to CSS rgb format.
|
| 910 |
-
*
|
| 911 |
-
* @param {string} color - Hex color, i.e. #nnn or #nnnnnn
|
| 912 |
-
* @returns {string} A CSS rgb color string
|
| 913 |
-
*/
|
| 914 |
-
|
| 915 |
-
|
| 916 |
-
function hexToRgb(color) {
|
| 917 |
-
color = color.substr(1);
|
| 918 |
-
var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g');
|
| 919 |
-
var colors = color.match(re);
|
| 920 |
-
|
| 921 |
-
if (colors && colors[0].length === 1) {
|
| 922 |
-
colors = colors.map(function (n) {
|
| 923 |
-
return n + n;
|
| 924 |
-
});
|
| 925 |
-
}
|
| 926 |
-
|
| 927 |
-
return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) {
|
| 928 |
-
return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
|
| 929 |
-
}).join(', '), ")") : '';
|
| 930 |
-
}
|
| 931 |
-
|
| 932 |
-
function intToHex(int) {
|
| 933 |
-
var hex = int.toString(16);
|
| 934 |
-
return hex.length === 1 ? "0".concat(hex) : hex;
|
| 935 |
-
}
|
| 936 |
-
/**
|
| 937 |
-
* Converts a color from CSS rgb format to CSS hex format.
|
| 938 |
-
*
|
| 939 |
-
* @param {string} color - RGB color, i.e. rgb(n, n, n)
|
| 940 |
-
* @returns {string} A CSS rgb color string, i.e. #nnnnnn
|
| 941 |
-
*/
|
| 942 |
-
|
| 943 |
-
|
| 944 |
-
function rgbToHex(color) {
|
| 945 |
-
// Idempotent
|
| 946 |
-
if (color.indexOf('#') === 0) {
|
| 947 |
-
return color;
|
| 948 |
-
}
|
| 949 |
-
|
| 950 |
-
var _decomposeColor = decomposeColor(color),
|
| 951 |
-
values = _decomposeColor.values;
|
| 952 |
-
|
| 953 |
-
return "#".concat(values.map(function (n) {
|
| 954 |
-
return intToHex(n);
|
| 955 |
-
}).join(''));
|
| 956 |
-
}
|
| 957 |
-
/**
|
| 958 |
-
* Converts a color from hsl format to rgb format.
|
| 959 |
-
*
|
| 960 |
-
* @param {string} color - HSL color values
|
| 961 |
-
* @returns {string} rgb color values
|
| 962 |
-
*/
|
| 963 |
-
|
| 964 |
-
function hslToRgb(color) {
|
| 965 |
-
color = decomposeColor(color);
|
| 966 |
-
var _color = color,
|
| 967 |
-
values = _color.values;
|
| 968 |
-
var h = values[0];
|
| 969 |
-
var s = values[1] / 100;
|
| 970 |
-
var l = values[2] / 100;
|
| 971 |
-
var a = s * Math.min(l, 1 - l);
|
| 972 |
-
|
| 973 |
-
var f = function f(n) {
|
| 974 |
-
var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;
|
| 975 |
-
return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
|
| 976 |
-
};
|
| 977 |
-
|
| 978 |
-
var type = 'rgb';
|
| 979 |
-
var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
|
| 980 |
-
|
| 981 |
-
if (color.type === 'hsla') {
|
| 982 |
-
type += 'a';
|
| 983 |
-
rgb.push(values[3]);
|
| 984 |
-
}
|
| 985 |
-
|
| 986 |
-
return recomposeColor({
|
| 987 |
-
type: type,
|
| 988 |
-
values: rgb
|
| 989 |
-
});
|
| 990 |
-
}
|
| 991 |
-
/**
|
| 992 |
-
* Returns an object with the type and values of a color.
|
| 993 |
-
*
|
| 994 |
-
* Note: Does not support rgb % values.
|
| 995 |
-
*
|
| 996 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
| 997 |
-
* @returns {object} - A MUI color object: {type: string, values: number[]}
|
| 998 |
-
*/
|
| 999 |
-
|
| 1000 |
-
function decomposeColor(color) {
|
| 1001 |
-
// Idempotent
|
| 1002 |
-
if (color.type) {
|
| 1003 |
-
return color;
|
| 1004 |
-
}
|
| 1005 |
-
|
| 1006 |
-
if (color.charAt(0) === '#') {
|
| 1007 |
-
return decomposeColor(hexToRgb(color));
|
| 1008 |
-
}
|
| 1009 |
-
|
| 1010 |
-
var marker = color.indexOf('(');
|
| 1011 |
-
var type = color.substring(0, marker);
|
| 1012 |
-
|
| 1013 |
-
if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
|
| 1014 |
-
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));
|
| 1015 |
-
}
|
| 1016 |
-
|
| 1017 |
-
var values = color.substring(marker + 1, color.length - 1).split(',');
|
| 1018 |
-
values = values.map(function (value) {
|
| 1019 |
-
return parseFloat(value);
|
| 1020 |
-
});
|
| 1021 |
-
return {
|
| 1022 |
-
type: type,
|
| 1023 |
-
values: values
|
| 1024 |
-
};
|
| 1025 |
-
}
|
| 1026 |
-
/**
|
| 1027 |
-
* Converts a color object with type and values to a string.
|
| 1028 |
-
*
|
| 1029 |
-
* @param {object} color - Decomposed color
|
| 1030 |
-
* @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
|
| 1031 |
-
* @param {array} color.values - [n,n,n] or [n,n,n,n]
|
| 1032 |
-
* @returns {string} A CSS color string
|
| 1033 |
-
*/
|
| 1034 |
-
|
| 1035 |
-
function recomposeColor(color) {
|
| 1036 |
-
var type = color.type;
|
| 1037 |
-
var values = color.values;
|
| 1038 |
-
|
| 1039 |
-
if (type.indexOf('rgb') !== -1) {
|
| 1040 |
-
// Only convert the first 3 values to int (i.e. not alpha)
|
| 1041 |
-
values = values.map(function (n, i) {
|
| 1042 |
-
return i < 3 ? parseInt(n, 10) : n;
|
| 1043 |
-
});
|
| 1044 |
-
} else if (type.indexOf('hsl') !== -1) {
|
| 1045 |
-
values[1] = "".concat(values[1], "%");
|
| 1046 |
-
values[2] = "".concat(values[2], "%");
|
| 1047 |
-
}
|
| 1048 |
-
|
| 1049 |
-
return "".concat(type, "(").concat(values.join(', '), ")");
|
| 1050 |
-
}
|
| 1051 |
-
/**
|
| 1052 |
-
* Calculates the contrast ratio between two colors.
|
| 1053 |
-
*
|
| 1054 |
-
* Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
| 1055 |
-
*
|
| 1056 |
-
* @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
| 1057 |
-
* @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
| 1058 |
-
* @returns {number} A contrast ratio value in the range 0 - 21.
|
| 1059 |
-
*/
|
| 1060 |
-
|
| 1061 |
-
function getContrastRatio(foreground, background) {
|
| 1062 |
-
var lumA = getLuminance(foreground);
|
| 1063 |
-
var lumB = getLuminance(background);
|
| 1064 |
-
return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
|
| 1065 |
-
}
|
| 1066 |
-
/**
|
| 1067 |
-
* The relative brightness of any point in a color space,
|
| 1068 |
-
* normalized to 0 for darkest black and 1 for lightest white.
|
| 1069 |
-
*
|
| 1070 |
-
* Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
| 1071 |
-
*
|
| 1072 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
| 1073 |
-
* @returns {number} The relative brightness of the color in the range 0 - 1
|
| 1074 |
-
*/
|
| 1075 |
-
|
| 1076 |
-
function getLuminance(color) {
|
| 1077 |
-
color = decomposeColor(color);
|
| 1078 |
-
var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;
|
| 1079 |
-
rgb = rgb.map(function (val) {
|
| 1080 |
-
val /= 255; // normalized
|
| 1081 |
-
|
| 1082 |
-
return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
|
| 1083 |
-
}); // Truncate at 3 digits
|
| 1084 |
-
|
| 1085 |
-
return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
|
| 1086 |
-
}
|
| 1087 |
-
/**
|
| 1088 |
-
* Darken or lighten a color, depending on its luminance.
|
| 1089 |
-
* Light colors are darkened, dark colors are lightened.
|
| 1090 |
-
*
|
| 1091 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
| 1092 |
-
* @param {number} coefficient=0.15 - multiplier in the range 0 - 1
|
| 1093 |
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
| 1094 |
-
*/
|
| 1095 |
-
|
| 1096 |
-
function emphasize(color) {
|
| 1097 |
-
var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
|
| 1098 |
-
return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
|
| 1099 |
-
}
|
| 1100 |
-
/**
|
| 1101 |
-
* Set the absolute transparency of a color.
|
| 1102 |
-
* Any existing alpha values are overwritten.
|
| 1103 |
-
*
|
| 1104 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
| 1105 |
-
* @param {number} value - value to set the alpha channel to in the range 0 -1
|
| 1106 |
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
| 1107 |
-
*/
|
| 1108 |
-
|
| 1109 |
-
function fade(color, value) {
|
| 1110 |
-
color = decomposeColor(color);
|
| 1111 |
-
value = clamp(value);
|
| 1112 |
-
|
| 1113 |
-
if (color.type === 'rgb' || color.type === 'hsl') {
|
| 1114 |
-
color.type += 'a';
|
| 1115 |
-
}
|
| 1116 |
-
|
| 1117 |
-
color.values[3] = value;
|
| 1118 |
-
return recomposeColor(color);
|
| 1119 |
-
}
|
| 1120 |
-
/**
|
| 1121 |
-
* Darkens a color.
|
| 1122 |
-
*
|
| 1123 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
| 1124 |
-
* @param {number} coefficient - multiplier in the range 0 - 1
|
| 1125 |
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
| 1126 |
-
*/
|
| 1127 |
-
|
| 1128 |
-
function darken(color, coefficient) {
|
| 1129 |
-
color = decomposeColor(color);
|
| 1130 |
-
coefficient = clamp(coefficient);
|
| 1131 |
-
|
| 1132 |
-
if (color.type.indexOf('hsl') !== -1) {
|
| 1133 |
-
color.values[2] *= 1 - coefficient;
|
| 1134 |
-
} else if (color.type.indexOf('rgb') !== -1) {
|
| 1135 |
-
for (var i = 0; i < 3; i += 1) {
|
| 1136 |
-
color.values[i] *= 1 - coefficient;
|
| 1137 |
-
}
|
| 1138 |
-
}
|
| 1139 |
-
|
| 1140 |
-
return recomposeColor(color);
|
| 1141 |
-
}
|
| 1142 |
-
/**
|
| 1143 |
-
* Lightens a color.
|
| 1144 |
-
*
|
| 1145 |
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
| 1146 |
-
* @param {number} coefficient - multiplier in the range 0 - 1
|
| 1147 |
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
| 1148 |
-
*/
|
| 1149 |
-
|
| 1150 |
-
function lighten(color, coefficient) {
|
| 1151 |
-
color = decomposeColor(color);
|
| 1152 |
-
coefficient = clamp(coefficient);
|
| 1153 |
-
|
| 1154 |
-
if (color.type.indexOf('hsl') !== -1) {
|
| 1155 |
-
color.values[2] += (100 - color.values[2]) * coefficient;
|
| 1156 |
-
} else if (color.type.indexOf('rgb') !== -1) {
|
| 1157 |
-
for (var i = 0; i < 3; i += 1) {
|
| 1158 |
-
color.values[i] += (255 - color.values[i]) * coefficient;
|
| 1159 |
-
}
|
| 1160 |
-
}
|
| 1161 |
-
|
| 1162 |
-
return recomposeColor(color);
|
| 1163 |
-
}
|
| 1164 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 1165 |
-
|
| 1166 |
-
/***/ }),
|
| 1167 |
-
/* 20 */
|
| 1168 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 1169 |
-
|
| 1170 |
-
"use strict";
|
| 1171 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _slicedToArray;
|
| 1172 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__ = __webpack_require__(223);
|
| 1173 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__ = __webpack_require__(477);
|
| 1174 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(123);
|
| 1175 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableRest__ = __webpack_require__(224);
|
| 1176 |
-
|
| 1177 |
-
|
| 1178 |
-
|
| 1179 |
-
|
| 1180 |
-
function _slicedToArray(arr, i) {
|
| 1181 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableRest__["a" /* default */])();
|
| 1182 |
-
}
|
| 1183 |
-
|
| 1184 |
-
/***/ }),
|
| 1185 |
-
/* 21 */
|
| 1186 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 1187 |
-
|
| 1188 |
-
"use strict";
|
| 1189 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createSvgIcon;
|
| 1190 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 1191 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
|
| 1192 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
|
| 1193 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SvgIcon__ = __webpack_require__(85);
|
| 1194 |
-
|
| 1195 |
-
|
| 1196 |
-
|
| 1197 |
-
/**
|
| 1198 |
-
* Private module reserved for @material-ui/x packages.
|
| 1199 |
-
*/
|
| 1200 |
-
|
| 1201 |
-
function createSvgIcon(path, displayName) {
|
| 1202 |
-
var Component = function Component(props, ref) {
|
| 1203 |
-
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 */])({
|
| 1204 |
-
ref: ref
|
| 1205 |
-
}, props), path);
|
| 1206 |
-
};
|
| 1207 |
-
|
| 1208 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 1209 |
-
// Need to set `displayName` on the inner component for React.memo.
|
| 1210 |
-
// React prior to 16.14 ignores `displayName` on the wrapper.
|
| 1211 |
-
Component.displayName = "".concat(displayName, "Icon");
|
| 1212 |
-
}
|
| 1213 |
-
|
| 1214 |
-
Component.muiName = __WEBPACK_IMPORTED_MODULE_2__SvgIcon__["a" /* default */].muiName;
|
| 1215 |
-
return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.memo( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.forwardRef(Component));
|
| 1216 |
-
}
|
| 1217 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 1218 |
-
|
| 1219 |
-
/***/ }),
|
| 1220 |
-
/* 22 */
|
| 1221 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 1222 |
-
|
| 1223 |
-
"use strict";
|
| 1224 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Paper__ = __webpack_require__(513);
|
| 1225 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Paper__["a"]; });
|
| 1226 |
-
|
| 1227 |
-
|
| 1228 |
-
/***/ }),
|
| 1229 |
-
/* 23 */
|
| 1230 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 1231 |
-
|
| 1232 |
-
"use strict";
|
| 1233 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
|
| 1234 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createGenerateClassName__ = __webpack_require__(78);
|
| 1235 |
-
/* unused harmony reexport createGenerateClassName */
|
| 1236 |
-
/* unused harmony namespace reexport */
|
| 1237 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createStyles__ = __webpack_require__(192);
|
| 1238 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_2__createStyles__["a"]; });
|
| 1239 |
-
/* unused harmony namespace reexport */
|
| 1240 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__getThemeProps__ = __webpack_require__(120);
|
| 1241 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__getThemeProps__["a"]; });
|
| 1242 |
-
/* unused harmony namespace reexport */
|
| 1243 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__jssPreset__ = __webpack_require__(121);
|
| 1244 |
-
/* unused harmony reexport jssPreset */
|
| 1245 |
-
/* unused harmony namespace reexport */
|
| 1246 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__makeStyles__ = __webpack_require__(80);
|
| 1247 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__makeStyles__["a"]; });
|
| 1248 |
-
/* unused harmony namespace reexport */
|
| 1249 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mergeClasses__ = __webpack_require__(124);
|
| 1250 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_6__mergeClasses__["a"]; });
|
| 1251 |
-
/* unused harmony namespace reexport */
|
| 1252 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ServerStyleSheets__ = __webpack_require__(199);
|
| 1253 |
-
/* unused harmony reexport ServerStyleSheets */
|
| 1254 |
-
/* unused harmony namespace reexport */
|
| 1255 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__styled__ = __webpack_require__(200);
|
| 1256 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_8__styled__["a"]; });
|
| 1257 |
-
/* unused harmony namespace reexport */
|
| 1258 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StylesProvider__ = __webpack_require__(81);
|
| 1259 |
-
/* unused harmony reexport StylesProvider */
|
| 1260 |
-
/* unused harmony namespace reexport */
|
| 1261 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ThemeProvider__ = __webpack_require__(201);
|
| 1262 |
-
/* unused harmony reexport ThemeProvider */
|
| 1263 |
-
/* unused harmony namespace reexport */
|
| 1264 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useTheme__ = __webpack_require__(56);
|
| 1265 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useTheme__["a"]; });
|
| 1266 |
-
/* unused harmony namespace reexport */
|
| 1267 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__withStyles__ = __webpack_require__(202);
|
| 1268 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__withStyles__["a"]; });
|
| 1269 |
-
/* unused harmony namespace reexport */
|
| 1270 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__withTheme__ = __webpack_require__(203);
|
| 1271 |
-
/* unused harmony reexport withTheme */
|
| 1272 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__withTheme__["a"]; });
|
| 1273 |
-
/** @license Material-UI v4.10.0
|
| 1274 |
-
*
|
| 1275 |
-
* This source code is licensed under the MIT license found in the
|
| 1276 |
-
* LICENSE file in the root directory of this source tree.
|
| 1277 |
-
*/
|
| 1278 |
-
/* eslint-disable import/export */
|
| 1279 |
-
|
| 1280 |
-
/* Warning if there are several instances of @material-ui/styles */
|
| 1281 |
-
|
| 1282 |
-
if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
|
| 1283 |
-
__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;
|
| 1284 |
-
|
| 1285 |
-
if (__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] === 1) {
|
| 1286 |
-
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'));
|
| 1287 |
-
}
|
| 1288 |
-
|
| 1289 |
-
__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] += 1;
|
| 1290 |
-
}
|
| 1291 |
-
|
| 1292 |
-
|
| 1293 |
-
|
| 1294 |
-
|
| 1295 |
-
|
| 1296 |
-
|
| 1297 |
-
|
| 1298 |
-
|
| 1299 |
-
|
| 1300 |
-
|
| 1301 |
-
|
| 1302 |
-
|
| 1303 |
-
|
| 1304 |
-
|
| 1305 |
-
|
| 1306 |
-
|
| 1307 |
-
|
| 1308 |
-
|
| 1309 |
-
|
| 1310 |
-
|
| 1311 |
-
|
| 1312 |
-
|
| 1313 |
-
|
| 1314 |
-
|
| 1315 |
-
|
| 1316 |
-
|
| 1317 |
-
|
| 1318 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 1319 |
-
|
| 1320 |
-
/***/ }),
|
| 1321 |
-
/* 24 */
|
| 1322 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 1323 |
-
|
| 1324 |
-
"use strict";
|
| 1325 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Typography__ = __webpack_require__(561);
|
| 1326 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Typography__["a"]; });
|
| 1327 |
-
|
| 1328 |
-
|
| 1329 |
-
/***/ }),
|
| 1330 |
-
/* 25 */
|
| 1331 |
-
/***/ (function(module, exports) {
|
| 1332 |
-
|
| 1333 |
-
/**
|
| 1334 |
-
* Checks if `value` is classified as an `Array` object.
|
| 1335 |
-
*
|
| 1336 |
-
* @static
|
| 1337 |
-
* @memberOf _
|
| 1338 |
-
* @since 0.1.0
|
| 1339 |
-
* @category Lang
|
| 1340 |
-
* @param {*} value The value to check.
|
| 1341 |
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
| 1342 |
-
* @example
|
| 1343 |
-
*
|
| 1344 |
-
* _.isArray([1, 2, 3]);
|
| 1345 |
-
* // => true
|
| 1346 |
-
*
|
| 1347 |
-
* _.isArray(document.body.children);
|
| 1348 |
-
* // => false
|
| 1349 |
-
*
|
| 1350 |
-
* _.isArray('abc');
|
| 1351 |
-
* // => false
|
| 1352 |
-
*
|
| 1353 |
-
* _.isArray(_.noop);
|
| 1354 |
-
* // => false
|
| 1355 |
-
*/
|
| 1356 |
-
var isArray = Array.isArray;
|
| 1357 |
-
|
| 1358 |
-
module.exports = isArray;
|
| 1359 |
-
|
| 1360 |
-
|
| 1361 |
-
/***/ }),
|
| 1362 |
-
/* 26 */
|
| 1363 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 1364 |
-
|
| 1365 |
-
var baseMerge = __webpack_require__(827),
|
| 1366 |
-
createAssigner = __webpack_require__(831);
|
| 1367 |
-
|
| 1368 |
-
/**
|
| 1369 |
-
* This method is like `_.assign` except that it recursively merges own and
|
| 1370 |
-
* inherited enumerable string keyed properties of source objects into the
|
| 1371 |
-
* destination object. Source properties that resolve to `undefined` are
|
| 1372 |
-
* skipped if a destination value exists. Array and plain object properties
|
| 1373 |
-
* are merged recursively. Other objects and value types are overridden by
|
| 1374 |
-
* assignment. Source objects are applied from left to right. Subsequent
|
| 1375 |
-
* sources overwrite property assignments of previous sources.
|
| 1376 |
-
*
|
| 1377 |
-
* **Note:** This method mutates `object`.
|
| 1378 |
-
*
|
| 1379 |
-
* @static
|
| 1380 |
-
* @memberOf _
|
| 1381 |
-
* @since 0.5.0
|
| 1382 |
-
* @category Object
|
| 1383 |
-
* @param {Object} object The destination object.
|
| 1384 |
-
* @param {...Object} [sources] The source objects.
|
| 1385 |
-
* @returns {Object} Returns `object`.
|
| 1386 |
-
* @example
|
| 1387 |
-
*
|
| 1388 |
-
* var object = {
|
| 1389 |
-
* 'a': [{ 'b': 2 }, { 'd': 4 }]
|
| 1390 |
-
* };
|
| 1391 |
-
*
|
| 1392 |
-
* var other = {
|
| 1393 |
-
* 'a': [{ 'c': 3 }, { 'e': 5 }]
|
| 1394 |
-
* };
|
| 1395 |
-
*
|
| 1396 |
-
* _.merge(object, other);
|
| 1397 |
-
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
|
| 1398 |
-
*/
|
| 1399 |
-
var merge = createAssigner(function(object, source, srcIndex) {
|
| 1400 |
-
baseMerge(object, source, srcIndex);
|
| 1401 |
-
});
|
| 1402 |
-
|
| 1403 |
-
module.exports = merge;
|
| 1404 |
-
|
| 1405 |
-
|
| 1406 |
-
/***/ }),
|
| 1407 |
-
/* 27 */
|
| 1408 |
-
/***/ (function(module, exports) {
|
| 1409 |
-
|
| 1410 |
-
/**
|
| 1411 |
-
* Checks if `value` is the
|
| 1412 |
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
| 1413 |
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
| 1414 |
-
*
|
| 1415 |
-
* @static
|
| 1416 |
-
* @memberOf _
|
| 1417 |
-
* @since 0.1.0
|
| 1418 |
-
* @category Lang
|
| 1419 |
-
* @param {*} value The value to check.
|
| 1420 |
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
| 1421 |
-
* @example
|
| 1422 |
-
*
|
| 1423 |
-
* _.isObject({});
|
| 1424 |
-
* // => true
|
| 1425 |
-
*
|
| 1426 |
-
* _.isObject([1, 2, 3]);
|
| 1427 |
-
* // => true
|
| 1428 |
-
*
|
| 1429 |
-
* _.isObject(_.noop);
|
| 1430 |
-
* // => true
|
| 1431 |
-
*
|
| 1432 |
-
* _.isObject(null);
|
| 1433 |
-
* // => false
|
| 1434 |
-
*/
|
| 1435 |
-
function isObject(value) {
|
| 1436 |
-
var type = typeof value;
|
| 1437 |
-
return value != null && (type == 'object' || type == 'function');
|
| 1438 |
-
}
|
| 1439 |
-
|
| 1440 |
-
module.exports = isObject;
|
| 1441 |
-
|
| 1442 |
-
|
| 1443 |
-
/***/ }),
|
| 1444 |
-
/* 28 */
|
| 1445 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 1446 |
-
|
| 1447 |
-
"use strict";
|
| 1448 |
-
|
| 1449 |
-
var strictUriEncode = __webpack_require__(424);
|
| 1450 |
-
var objectAssign = __webpack_require__(52);
|
| 1451 |
-
|
| 1452 |
-
function encoderForArrayFormat(opts) {
|
| 1453 |
-
switch (opts.arrayFormat) {
|
| 1454 |
-
case 'index':
|
| 1455 |
-
return function (key, value, index) {
|
| 1456 |
-
return value === null ? [
|
| 1457 |
-
encode(key, opts),
|
| 1458 |
-
'[',
|
| 1459 |
-
index,
|
| 1460 |
-
']'
|
| 1461 |
-
].join('') : [
|
| 1462 |
-
encode(key, opts),
|
| 1463 |
-
'[',
|
| 1464 |
-
encode(index, opts),
|
| 1465 |
-
']=',
|
| 1466 |
-
encode(value, opts)
|
| 1467 |
-
].join('');
|
| 1468 |
-
};
|
| 1469 |
-
|
| 1470 |
-
case 'bracket':
|
| 1471 |
-
return function (key, value) {
|
| 1472 |
-
return value === null ? encode(key, opts) : [
|
| 1473 |
-
encode(key, opts),
|
| 1474 |
-
'[]=',
|
| 1475 |
-
encode(value, opts)
|
| 1476 |
-
].join('');
|
| 1477 |
-
};
|
| 1478 |
-
|
| 1479 |
-
default:
|
| 1480 |
-
return function (key, value) {
|
| 1481 |
-
return value === null ? encode(key, opts) : [
|
| 1482 |
-
encode(key, opts),
|
| 1483 |
-
'=',
|
| 1484 |
-
encode(value, opts)
|
| 1485 |
-
].join('');
|
| 1486 |
-
};
|
| 1487 |
-
}
|
| 1488 |
-
}
|
| 1489 |
-
|
| 1490 |
-
function parserForArrayFormat(opts) {
|
| 1491 |
-
var result;
|
| 1492 |
-
|
| 1493 |
-
switch (opts.arrayFormat) {
|
| 1494 |
-
case 'index':
|
| 1495 |
-
return function (key, value, accumulator) {
|
| 1496 |
-
result = /\[(\d*)\]$/.exec(key);
|
| 1497 |
-
|
| 1498 |
-
key = key.replace(/\[\d*\]$/, '');
|
| 1499 |
-
|
| 1500 |
-
if (!result) {
|
| 1501 |
-
accumulator[key] = value;
|
| 1502 |
-
return;
|
| 1503 |
-
}
|
| 1504 |
-
|
| 1505 |
-
if (accumulator[key] === undefined) {
|
| 1506 |
-
accumulator[key] = {};
|
| 1507 |
-
}
|
| 1508 |
-
|
| 1509 |
-
accumulator[key][result[1]] = value;
|
| 1510 |
-
};
|
| 1511 |
-
|
| 1512 |
-
case 'bracket':
|
| 1513 |
-
return function (key, value, accumulator) {
|
| 1514 |
-
result = /(\[\])$/.exec(key);
|
| 1515 |
-
key = key.replace(/\[\]$/, '');
|
| 1516 |
-
|
| 1517 |
-
if (!result) {
|
| 1518 |
-
accumulator[key] = value;
|
| 1519 |
-
return;
|
| 1520 |
-
} else if (accumulator[key] === undefined) {
|
| 1521 |
-
accumulator[key] = [value];
|
| 1522 |
-
return;
|
| 1523 |
-
}
|
| 1524 |
-
|
| 1525 |
-
accumulator[key] = [].concat(accumulator[key], value);
|
| 1526 |
-
};
|
| 1527 |
-
|
| 1528 |
-
default:
|
| 1529 |
-
return function (key, value, accumulator) {
|
| 1530 |
-
if (accumulator[key] === undefined) {
|
| 1531 |
-
accumulator[key] = value;
|
| 1532 |
-
return;
|
| 1533 |
-
}
|
| 1534 |
-
|
| 1535 |
-
accumulator[key] = [].concat(accumulator[key], value);
|
| 1536 |
-
};
|
| 1537 |
-
}
|
| 1538 |
-
}
|
| 1539 |
-
|
| 1540 |
-
function encode(value, opts) {
|
| 1541 |
-
if (opts.encode) {
|
| 1542 |
-
return opts.strict ? strictUriEncode(value) : encodeURIComponent(value);
|
| 1543 |
-
}
|
| 1544 |
-
|
| 1545 |
-
return value;
|
| 1546 |
-
}
|
| 1547 |
-
|
| 1548 |
-
function keysSorter(input) {
|
| 1549 |
-
if (Array.isArray(input)) {
|
| 1550 |
-
return input.sort();
|
| 1551 |
-
} else if (typeof input === 'object') {
|
| 1552 |
-
return keysSorter(Object.keys(input)).sort(function (a, b) {
|
| 1553 |
-
return Number(a) - Number(b);
|
| 1554 |
-
}).map(function (key) {
|
| 1555 |
-
return input[key];
|
| 1556 |
-
});
|
| 1557 |
-
}
|
| 1558 |
-
|
| 1559 |
-
return input;
|
| 1560 |
-
}
|
| 1561 |
-
|
| 1562 |
-
exports.extract = function (str) {
|
| 1563 |
-
return str.split('?')[1] || '';
|
| 1564 |
-
};
|
| 1565 |
-
|
| 1566 |
-
exports.parse = function (str, opts) {
|
| 1567 |
-
opts = objectAssign({arrayFormat: 'none'}, opts);
|
| 1568 |
-
|
| 1569 |
-
var formatter = parserForArrayFormat(opts);
|
| 1570 |
-
|
| 1571 |
-
// Create an object with no prototype
|
| 1572 |
-
// https://github.com/sindresorhus/query-string/issues/47
|
| 1573 |
-
var ret = Object.create(null);
|
| 1574 |
-
|
| 1575 |
-
if (typeof str !== 'string') {
|
| 1576 |
-
return ret;
|
| 1577 |
-
}
|
| 1578 |
-
|
| 1579 |
-
str = str.trim().replace(/^(\?|#|&)/, '');
|
| 1580 |
-
|
| 1581 |
-
if (!str) {
|
| 1582 |
-
return ret;
|
| 1583 |
-
}
|
| 1584 |
-
|
| 1585 |
-
str.split('&').forEach(function (param) {
|
| 1586 |
-
var parts = param.replace(/\+/g, ' ').split('=');
|
| 1587 |
-
// Firefox (pre 40) decodes `%3D` to `=`
|
| 1588 |
-
// https://github.com/sindresorhus/query-string/pull/37
|
| 1589 |
-
var key = parts.shift();
|
| 1590 |
-
var val = parts.length > 0 ? parts.join('=') : undefined;
|
| 1591 |
-
|
| 1592 |
-
// missing `=` should be `null`:
|
| 1593 |
-
// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
|
| 1594 |
-
val = val === undefined ? null : decodeURIComponent(val);
|
| 1595 |
-
|
| 1596 |
-
formatter(decodeURIComponent(key), val, ret);
|
| 1597 |
-
});
|
| 1598 |
-
|
| 1599 |
-
return Object.keys(ret).sort().reduce(function (result, key) {
|
| 1600 |
-
var val = ret[key];
|
| 1601 |
-
if (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {
|
| 1602 |
-
// Sort object keys, not values
|
| 1603 |
-
result[key] = keysSorter(val);
|
| 1604 |
-
} else {
|
| 1605 |
-
result[key] = val;
|
| 1606 |
-
}
|
| 1607 |
-
|
| 1608 |
-
return result;
|
| 1609 |
-
}, Object.create(null));
|
| 1610 |
-
};
|
| 1611 |
-
|
| 1612 |
-
exports.stringify = function (obj, opts) {
|
| 1613 |
-
var defaults = {
|
| 1614 |
-
encode: true,
|
| 1615 |
-
strict: true,
|
| 1616 |
-
arrayFormat: 'none'
|
| 1617 |
-
};
|
| 1618 |
-
|
| 1619 |
-
opts = objectAssign(defaults, opts);
|
| 1620 |
-
|
| 1621 |
-
var formatter = encoderForArrayFormat(opts);
|
| 1622 |
-
|
| 1623 |
-
return obj ? Object.keys(obj).sort().map(function (key) {
|
| 1624 |
-
var val = obj[key];
|
| 1625 |
-
|
| 1626 |
-
if (val === undefined) {
|
| 1627 |
-
return '';
|
| 1628 |
-
}
|
| 1629 |
-
|
| 1630 |
-
if (val === null) {
|
| 1631 |
-
return encode(key, opts);
|
| 1632 |
-
}
|
| 1633 |
-
|
| 1634 |
-
if (Array.isArray(val)) {
|
| 1635 |
-
var result = [];
|
| 1636 |
-
|
| 1637 |
-
val.slice().forEach(function (val2) {
|
| 1638 |
-
if (val2 === undefined) {
|
| 1639 |
-
return;
|
| 1640 |
-
}
|
| 1641 |
-
|
| 1642 |
-
result.push(formatter(key, val2, result.length));
|
| 1643 |
-
});
|
| 1644 |
-
|
| 1645 |
-
return result.join('&');
|
| 1646 |
-
}
|
| 1647 |
-
|
| 1648 |
-
return encode(key, opts) + '=' + encode(val, opts);
|
| 1649 |
-
}).filter(function (x) {
|
| 1650 |
-
return x.length > 0;
|
| 1651 |
-
}).join('&') : '';
|
| 1652 |
-
};
|
| 1653 |
-
|
| 1654 |
-
|
| 1655 |
-
/***/ }),
|
| 1656 |
-
/* 29 */
|
| 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 |
-
/* 30 */
|
| 1667 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 1668 |
-
|
| 1669 |
-
var freeGlobal = __webpack_require__(354);
|
| 1670 |
-
|
| 1671 |
-
/** Detect free variable `self`. */
|
| 1672 |
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
| 1673 |
-
|
| 1674 |
-
/** Used as a reference to the global object. */
|
| 1675 |
-
var root = freeGlobal || freeSelf || Function('return this')();
|
| 1676 |
-
|
| 1677 |
-
module.exports = root;
|
| 1678 |
-
|
| 1679 |
-
|
| 1680 |
-
/***/ }),
|
| 1681 |
-
/* 31 */
|
| 1682 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 1683 |
-
|
| 1684 |
-
"use strict";
|
| 1685 |
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
| 1686 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Icon__ = __webpack_require__(432);
|
| 1687 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Icon__["a"]; });
|
| 1688 |
-
|
| 1689 |
-
|
| 1690 |
-
/***/ }),
|
| 1691 |
-
/* 32 */
|
| 1692 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 1693 |
-
|
| 1694 |
-
"use strict";
|
| 1695 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _toConsumableArray;
|
| 1696 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__ = __webpack_require__(454);
|
| 1697 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArray__ = __webpack_require__(195);
|
| 1698 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(123);
|
| 1699 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableSpread__ = __webpack_require__(455);
|
| 1700 |
-
|
| 1701 |
-
|
| 1702 |
-
|
| 1703 |
-
|
| 1704 |
-
function _toConsumableArray(arr) {
|
| 1705 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableSpread__["a" /* default */])();
|
| 1706 |
-
}
|
| 1707 |
-
|
| 1708 |
-
/***/ }),
|
| 1709 |
-
/* 33 */
|
| 1710 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 1711 |
-
|
| 1712 |
-
"use strict";
|
| 1713 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(16);
|
| 1714 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(216);
|
| 1715 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(127);
|
| 1716 |
-
|
| 1717 |
-
|
| 1718 |
-
|
| 1719 |
-
|
| 1720 |
-
function getPath(obj, path) {
|
| 1721 |
-
if (!path || typeof path !== 'string') {
|
| 1722 |
-
return null;
|
| 1723 |
-
}
|
| 1724 |
-
|
| 1725 |
-
return path.split('.').reduce(function (acc, item) {
|
| 1726 |
-
return acc && acc[item] ? acc[item] : null;
|
| 1727 |
-
}, obj);
|
| 1728 |
-
}
|
| 1729 |
-
|
| 1730 |
-
function style(options) {
|
| 1731 |
-
var prop = options.prop,
|
| 1732 |
-
_options$cssProperty = options.cssProperty,
|
| 1733 |
-
cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty,
|
| 1734 |
-
themeKey = options.themeKey,
|
| 1735 |
-
transform = options.transform;
|
| 1736 |
-
|
| 1737 |
-
var fn = function fn(props) {
|
| 1738 |
-
if (props[prop] == null) {
|
| 1739 |
-
return null;
|
| 1740 |
-
}
|
| 1741 |
-
|
| 1742 |
-
var propValue = props[prop];
|
| 1743 |
-
var theme = props.theme;
|
| 1744 |
-
var themeMapping = getPath(theme, themeKey) || {};
|
| 1745 |
-
|
| 1746 |
-
var styleFromPropValue = function styleFromPropValue(propValueFinal) {
|
| 1747 |
-
var value;
|
| 1748 |
-
|
| 1749 |
-
if (typeof themeMapping === 'function') {
|
| 1750 |
-
value = themeMapping(propValueFinal);
|
| 1751 |
-
} else if (Array.isArray(themeMapping)) {
|
| 1752 |
-
value = themeMapping[propValueFinal] || propValueFinal;
|
| 1753 |
-
} else {
|
| 1754 |
-
value = getPath(themeMapping, propValueFinal) || propValueFinal;
|
| 1755 |
-
|
| 1756 |
-
if (transform) {
|
| 1757 |
-
value = transform(value);
|
| 1758 |
-
}
|
| 1759 |
-
}
|
| 1760 |
-
|
| 1761 |
-
if (cssProperty === false) {
|
| 1762 |
-
return value;
|
| 1763 |
-
}
|
| 1764 |
-
|
| 1765 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, cssProperty, value);
|
| 1766 |
-
};
|
| 1767 |
-
|
| 1768 |
-
return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
|
| 1769 |
-
};
|
| 1770 |
-
|
| 1771 |
-
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 */]) : {};
|
| 1772 |
-
fn.filterProps = [prop];
|
| 1773 |
-
return fn;
|
| 1774 |
-
}
|
| 1775 |
-
|
| 1776 |
-
/* harmony default export */ __webpack_exports__["a"] = (style);
|
| 1777 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 1778 |
-
|
| 1779 |
-
/***/ }),
|
| 1780 |
-
/* 34 */
|
| 1781 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 1782 |
-
|
| 1783 |
-
"use strict";
|
| 1784 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export easing */
|
| 1785 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return duration; });
|
| 1786 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
|
| 1787 |
-
|
| 1788 |
-
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
| 1789 |
-
// to learn the context in which each easing should be used.
|
| 1790 |
-
var easing = {
|
| 1791 |
-
// This is the most common easing curve.
|
| 1792 |
-
easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
| 1793 |
-
// Objects enter the screen at full velocity from off-screen and
|
| 1794 |
-
// slowly decelerate to a resting point.
|
| 1795 |
-
easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
|
| 1796 |
-
// Objects leave the screen at full velocity. They do not decelerate when off-screen.
|
| 1797 |
-
easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
|
| 1798 |
-
// The sharp curve is used by objects that may return to the screen at any time.
|
| 1799 |
-
sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
|
| 1800 |
-
}; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
|
| 1801 |
-
// to learn when use what timing
|
| 1802 |
-
|
| 1803 |
-
var duration = {
|
| 1804 |
-
shortest: 150,
|
| 1805 |
-
shorter: 200,
|
| 1806 |
-
short: 250,
|
| 1807 |
-
// most basic recommended timing
|
| 1808 |
-
standard: 300,
|
| 1809 |
-
// this is to be used in complex animations
|
| 1810 |
-
complex: 375,
|
| 1811 |
-
// recommended when something is entering screen
|
| 1812 |
-
enteringScreen: 225,
|
| 1813 |
-
// recommended when something is leaving screen
|
| 1814 |
-
leavingScreen: 195
|
| 1815 |
-
};
|
| 1816 |
-
|
| 1817 |
-
function formatMs(milliseconds) {
|
| 1818 |
-
return "".concat(Math.round(milliseconds), "ms");
|
| 1819 |
-
}
|
| 1820 |
-
/**
|
| 1821 |
-
* @param {string|Array} props
|
| 1822 |
-
* @param {object} param
|
| 1823 |
-
* @param {string} param.prop
|
| 1824 |
-
* @param {number} param.duration
|
| 1825 |
-
* @param {string} param.easing
|
| 1826 |
-
* @param {number} param.delay
|
| 1827 |
-
*/
|
| 1828 |
-
|
| 1829 |
-
|
| 1830 |
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
| 1831 |
-
easing: easing,
|
| 1832 |
-
duration: duration,
|
| 1833 |
-
create: function create() {
|
| 1834 |
-
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
|
| 1835 |
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
| 1836 |
-
|
| 1837 |
-
var _options$duration = options.duration,
|
| 1838 |
-
durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
|
| 1839 |
-
_options$easing = options.easing,
|
| 1840 |
-
easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
|
| 1841 |
-
_options$delay = options.delay,
|
| 1842 |
-
delay = _options$delay === void 0 ? 0 : _options$delay,
|
| 1843 |
-
other = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["duration", "easing", "delay"]);
|
| 1844 |
-
|
| 1845 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 1846 |
-
var isString = function isString(value) {
|
| 1847 |
-
return typeof value === 'string';
|
| 1848 |
-
};
|
| 1849 |
-
|
| 1850 |
-
var isNumber = function isNumber(value) {
|
| 1851 |
-
return !isNaN(parseFloat(value));
|
| 1852 |
-
};
|
| 1853 |
-
|
| 1854 |
-
if (!isString(props) && !Array.isArray(props)) {
|
| 1855 |
-
console.error('Material-UI: Argument "props" must be a string or Array.');
|
| 1856 |
-
}
|
| 1857 |
-
|
| 1858 |
-
if (!isNumber(durationOption) && !isString(durationOption)) {
|
| 1859 |
-
console.error("Material-UI: Argument \"duration\" must be a number or a string but found ".concat(durationOption, "."));
|
| 1860 |
-
}
|
| 1861 |
-
|
| 1862 |
-
if (!isString(easingOption)) {
|
| 1863 |
-
console.error('Material-UI: Argument "easing" must be a string.');
|
| 1864 |
-
}
|
| 1865 |
-
|
| 1866 |
-
if (!isNumber(delay) && !isString(delay)) {
|
| 1867 |
-
console.error('Material-UI: Argument "delay" must be a number or a string.');
|
| 1868 |
-
}
|
| 1869 |
-
|
| 1870 |
-
if (Object.keys(other).length !== 0) {
|
| 1871 |
-
console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(other).join(','), "]."));
|
| 1872 |
-
}
|
| 1873 |
-
}
|
| 1874 |
-
|
| 1875 |
-
return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {
|
| 1876 |
-
return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay));
|
| 1877 |
-
}).join(',');
|
| 1878 |
-
},
|
| 1879 |
-
getAutoHeightDuration: function getAutoHeightDuration(height) {
|
| 1880 |
-
if (!height) {
|
| 1881 |
-
return 0;
|
| 1882 |
-
}
|
| 1883 |
-
|
| 1884 |
-
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
|
| 1885 |
-
|
| 1886 |
-
return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
|
| 1887 |
-
}
|
| 1888 |
-
});
|
| 1889 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 1890 |
-
|
| 1891 |
-
/***/ }),
|
| 1892 |
-
/* 35 */
|
| 1893 |
-
/***/ (function(module, exports) {
|
| 1894 |
-
|
| 1895 |
-
/**
|
| 1896 |
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
| 1897 |
-
* and has a `typeof` result of "object".
|
| 1898 |
-
*
|
| 1899 |
-
* @static
|
| 1900 |
-
* @memberOf _
|
| 1901 |
-
* @since 4.0.0
|
| 1902 |
-
* @category Lang
|
| 1903 |
-
* @param {*} value The value to check.
|
| 1904 |
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
| 1905 |
-
* @example
|
| 1906 |
-
*
|
| 1907 |
-
* _.isObjectLike({});
|
| 1908 |
-
* // => true
|
| 1909 |
-
*
|
| 1910 |
-
* _.isObjectLike([1, 2, 3]);
|
| 1911 |
-
* // => true
|
| 1912 |
-
*
|
| 1913 |
-
* _.isObjectLike(_.noop);
|
| 1914 |
-
* // => false
|
| 1915 |
-
*
|
| 1916 |
-
* _.isObjectLike(null);
|
| 1917 |
-
* // => false
|
| 1918 |
-
*/
|
| 1919 |
-
function isObjectLike(value) {
|
| 1920 |
-
return value != null && typeof value == 'object';
|
| 1921 |
-
}
|
| 1922 |
-
|
| 1923 |
-
module.exports = isObjectLike;
|
| 1924 |
-
|
| 1925 |
-
|
| 1926 |
-
/***/ }),
|
| 1927 |
-
/* 36 */
|
| 1928 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 1929 |
-
|
| 1930 |
-
"use strict";
|
| 1931 |
-
|
| 1932 |
-
|
| 1933 |
-
Object.defineProperty(exports, "__esModule", {
|
| 1934 |
-
value: true
|
| 1935 |
-
});
|
| 1936 |
-
exports.red = exports.getContrastingColor = exports.isValidHex = exports.toState = exports.simpleCheckForValidColor = undefined;
|
| 1937 |
-
|
| 1938 |
-
var _each = __webpack_require__(845);
|
| 1939 |
-
|
| 1940 |
-
var _each2 = _interopRequireDefault(_each);
|
| 1941 |
-
|
| 1942 |
-
var _tinycolor = __webpack_require__(847);
|
| 1943 |
-
|
| 1944 |
-
var _tinycolor2 = _interopRequireDefault(_tinycolor);
|
| 1945 |
-
|
| 1946 |
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
| 1947 |
-
|
| 1948 |
-
var simpleCheckForValidColor = exports.simpleCheckForValidColor = function simpleCheckForValidColor(data) {
|
| 1949 |
-
var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];
|
| 1950 |
-
var checked = 0;
|
| 1951 |
-
var passed = 0;
|
| 1952 |
-
(0, _each2.default)(keysToCheck, function (letter) {
|
| 1953 |
-
if (data[letter]) {
|
| 1954 |
-
checked += 1;
|
| 1955 |
-
if (!isNaN(data[letter])) {
|
| 1956 |
-
passed += 1;
|
| 1957 |
-
}
|
| 1958 |
-
if (letter === 's' || letter === 'l') {
|
| 1959 |
-
var percentPatt = /^\d+%$/;
|
| 1960 |
-
if (percentPatt.test(data[letter])) {
|
| 1961 |
-
passed += 1;
|
| 1962 |
-
}
|
| 1963 |
-
}
|
| 1964 |
-
}
|
| 1965 |
-
});
|
| 1966 |
-
return checked === passed ? data : false;
|
| 1967 |
-
};
|
| 1968 |
-
|
| 1969 |
-
var toState = exports.toState = function toState(data, oldHue) {
|
| 1970 |
-
var color = data.hex ? (0, _tinycolor2.default)(data.hex) : (0, _tinycolor2.default)(data);
|
| 1971 |
-
var hsl = color.toHsl();
|
| 1972 |
-
var hsv = color.toHsv();
|
| 1973 |
-
var rgb = color.toRgb();
|
| 1974 |
-
var hex = color.toHex();
|
| 1975 |
-
if (hsl.s === 0) {
|
| 1976 |
-
hsl.h = oldHue || 0;
|
| 1977 |
-
hsv.h = oldHue || 0;
|
| 1978 |
-
}
|
| 1979 |
-
var transparent = hex === '000000' && rgb.a === 0;
|
| 1980 |
-
|
| 1981 |
-
return {
|
| 1982 |
-
hsl: hsl,
|
| 1983 |
-
hex: transparent ? 'transparent' : '#' + hex,
|
| 1984 |
-
rgb: rgb,
|
| 1985 |
-
hsv: hsv,
|
| 1986 |
-
oldHue: data.h || oldHue || hsl.h,
|
| 1987 |
-
source: data.source
|
| 1988 |
-
};
|
| 1989 |
-
};
|
| 1990 |
-
|
| 1991 |
-
var isValidHex = exports.isValidHex = function isValidHex(hex) {
|
| 1992 |
-
// disable hex4 and hex8
|
| 1993 |
-
var lh = String(hex).charAt(0) === '#' ? 1 : 0;
|
| 1994 |
-
return hex.length !== 4 + lh && hex.length < 7 + lh && (0, _tinycolor2.default)(hex).isValid();
|
| 1995 |
-
};
|
| 1996 |
-
|
| 1997 |
-
var getContrastingColor = exports.getContrastingColor = function getContrastingColor(data) {
|
| 1998 |
-
if (!data) {
|
| 1999 |
-
return '#fff';
|
| 2000 |
-
}
|
| 2001 |
-
var col = toState(data);
|
| 2002 |
-
if (col.hex === 'transparent') {
|
| 2003 |
-
return 'rgba(0,0,0,0.4)';
|
| 2004 |
-
}
|
| 2005 |
-
var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;
|
| 2006 |
-
return yiq >= 128 ? '#000' : '#fff';
|
| 2007 |
-
};
|
| 2008 |
-
|
| 2009 |
-
var red = exports.red = {
|
| 2010 |
-
hsl: { a: 1, h: 0, l: 0.5, s: 1 },
|
| 2011 |
-
hex: '#ff0000',
|
| 2012 |
-
rgb: { r: 255, g: 0, b: 0, a: 1 },
|
| 2013 |
-
hsv: { h: 0, s: 1, v: 1, a: 1 }
|
| 2014 |
-
};
|
| 2015 |
-
|
| 2016 |
-
exports.default = exports;
|
| 2017 |
-
|
| 2018 |
-
/***/ }),
|
| 2019 |
-
/* 37 */
|
| 2020 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 2021 |
-
|
| 2022 |
-
"use strict";
|
| 2023 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 2024 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__merge__ = __webpack_require__(83);
|
| 2025 |
-
|
| 2026 |
-
|
| 2027 |
-
|
| 2028 |
-
function compose() {
|
| 2029 |
-
for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 2030 |
-
styles[_key] = arguments[_key];
|
| 2031 |
-
}
|
| 2032 |
-
|
| 2033 |
-
var fn = function fn(props) {
|
| 2034 |
-
return styles.reduce(function (acc, style) {
|
| 2035 |
-
var output = style(props);
|
| 2036 |
-
|
| 2037 |
-
if (output) {
|
| 2038 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__merge__["a" /* default */])(acc, output);
|
| 2039 |
-
}
|
| 2040 |
-
|
| 2041 |
-
return acc;
|
| 2042 |
-
}, {});
|
| 2043 |
-
}; // Alternative approach that doesn't yield any performance gain.
|
| 2044 |
-
// const handlers = styles.reduce((acc, style) => {
|
| 2045 |
-
// style.filterProps.forEach(prop => {
|
| 2046 |
-
// acc[prop] = style;
|
| 2047 |
-
// });
|
| 2048 |
-
// return acc;
|
| 2049 |
-
// }, {});
|
| 2050 |
-
// const fn = props => {
|
| 2051 |
-
// return Object.keys(props).reduce((acc, prop) => {
|
| 2052 |
-
// if (handlers[prop]) {
|
| 2053 |
-
// return merge(acc, handlers[prop](props));
|
| 2054 |
-
// }
|
| 2055 |
-
// return acc;
|
| 2056 |
-
// }, {});
|
| 2057 |
-
// };
|
| 2058 |
-
|
| 2059 |
-
|
| 2060 |
-
fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {
|
| 2061 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(acc, style.propTypes);
|
| 2062 |
-
}, {}) : {};
|
| 2063 |
-
fn.filterProps = styles.reduce(function (acc, style) {
|
| 2064 |
-
return acc.concat(style.filterProps);
|
| 2065 |
-
}, []);
|
| 2066 |
-
return fn;
|
| 2067 |
-
}
|
| 2068 |
-
|
| 2069 |
-
/* harmony default export */ __webpack_exports__["a"] = (compose);
|
| 2070 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 2071 |
-
|
| 2072 |
-
/***/ }),
|
| 2073 |
-
/* 38 */
|
| 2074 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 2075 |
-
|
| 2076 |
-
"use strict";
|
| 2077 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = useEventCallback;
|
| 2078 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 2079 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 2080 |
-
|
| 2081 |
-
var useEnhancedEffect = typeof window !== 'undefined' ? __WEBPACK_IMPORTED_MODULE_0_react__["useLayoutEffect"] : __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"];
|
| 2082 |
-
/**
|
| 2083 |
-
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
| 2084 |
-
*
|
| 2085 |
-
* @param {function} fn
|
| 2086 |
-
*/
|
| 2087 |
-
|
| 2088 |
-
function useEventCallback(fn) {
|
| 2089 |
-
var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](fn);
|
| 2090 |
-
useEnhancedEffect(function () {
|
| 2091 |
-
ref.current = fn;
|
| 2092 |
-
});
|
| 2093 |
-
return __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function () {
|
| 2094 |
-
return (0, ref.current).apply(void 0, arguments);
|
| 2095 |
-
}, []);
|
| 2096 |
-
}
|
| 2097 |
-
|
| 2098 |
-
/***/ }),
|
| 2099 |
-
/* 39 */
|
| 2100 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 2101 |
-
|
| 2102 |
-
"use strict";
|
| 2103 |
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
| 2104 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BrowserRouter__ = __webpack_require__(398);
|
| 2105 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserRouter", function() { return __WEBPACK_IMPORTED_MODULE_0__BrowserRouter__["a"]; });
|
| 2106 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__HashRouter__ = __webpack_require__(406);
|
| 2107 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "HashRouter", function() { return __WEBPACK_IMPORTED_MODULE_1__HashRouter__["a"]; });
|
| 2108 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Link__ = __webpack_require__(185);
|
| 2109 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return __WEBPACK_IMPORTED_MODULE_2__Link__["a"]; });
|
| 2110 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MemoryRouter__ = __webpack_require__(407);
|
| 2111 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_3__MemoryRouter__["a"]; });
|
| 2112 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__NavLink__ = __webpack_require__(409);
|
| 2113 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return __WEBPACK_IMPORTED_MODULE_4__NavLink__["a"]; });
|
| 2114 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Prompt__ = __webpack_require__(411);
|
| 2115 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_5__Prompt__["a"]; });
|
| 2116 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Redirect__ = __webpack_require__(413);
|
| 2117 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_6__Redirect__["a"]; });
|
| 2118 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Route__ = __webpack_require__(186);
|
| 2119 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_7__Route__["a"]; });
|
| 2120 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Router__ = __webpack_require__(116);
|
| 2121 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_8__Router__["a"]; });
|
| 2122 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StaticRouter__ = __webpack_require__(415);
|
| 2123 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_9__StaticRouter__["a"]; });
|
| 2124 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Switch__ = __webpack_require__(417);
|
| 2125 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_10__Switch__["a"]; });
|
| 2126 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__generatePath__ = __webpack_require__(419);
|
| 2127 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "generatePath", function() { return __WEBPACK_IMPORTED_MODULE_11__generatePath__["a"]; });
|
| 2128 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__matchPath__ = __webpack_require__(420);
|
| 2129 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_12__matchPath__["a"]; });
|
| 2130 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__withRouter__ = __webpack_require__(421);
|
| 2131 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_13__withRouter__["a"]; });
|
| 2132 |
-
|
| 2133 |
-
|
| 2134 |
-
|
| 2135 |
-
|
| 2136 |
-
|
| 2137 |
-
|
| 2138 |
-
|
| 2139 |
-
|
| 2140 |
-
|
| 2141 |
-
|
| 2142 |
-
|
| 2143 |
-
|
| 2144 |
-
|
| 2145 |
-
|
| 2146 |
-
|
| 2147 |
-
|
| 2148 |
-
|
| 2149 |
-
|
| 2150 |
-
|
| 2151 |
-
|
| 2152 |
-
|
| 2153 |
-
|
| 2154 |
-
|
| 2155 |
-
|
| 2156 |
-
|
| 2157 |
-
|
| 2158 |
-
|
| 2159 |
-
|
| 2160 |
-
|
| 2161 |
-
/***/ }),
|
| 2162 |
-
/* 40 */
|
| 2163 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 2164 |
-
|
| 2165 |
-
"use strict";
|
| 2166 |
-
/* WEBPACK VAR INJECTION */(function(process) {/**
|
| 2167 |
-
* Copyright (c) 2014-present, Facebook, Inc.
|
| 2168 |
-
*
|
| 2169 |
-
* This source code is licensed under the MIT license found in the
|
| 2170 |
-
* LICENSE file in the root directory of this source tree.
|
| 2171 |
-
*/
|
| 2172 |
-
|
| 2173 |
-
|
| 2174 |
-
|
| 2175 |
-
/**
|
| 2176 |
-
* Similar to invariant but only logs a warning if the condition is not met.
|
| 2177 |
-
* This can be used to log issues in development environments in critical
|
| 2178 |
-
* paths. Removing the logging code for production environments will keep the
|
| 2179 |
-
* same logic and follow the same code paths.
|
| 2180 |
-
*/
|
| 2181 |
-
|
| 2182 |
-
var __DEV__ = process.env.NODE_ENV !== 'production';
|
| 2183 |
-
|
| 2184 |
-
var warning = function() {};
|
| 2185 |
-
|
| 2186 |
-
if (__DEV__) {
|
| 2187 |
-
var printWarning = function printWarning(format, args) {
|
| 2188 |
-
var len = arguments.length;
|
| 2189 |
-
args = new Array(len > 1 ? len - 1 : 0);
|
| 2190 |
-
for (var key = 1; key < len; key++) {
|
| 2191 |
-
args[key - 1] = arguments[key];
|
| 2192 |
-
}
|
| 2193 |
-
var argIndex = 0;
|
| 2194 |
-
var message = 'Warning: ' +
|
| 2195 |
-
format.replace(/%s/g, function() {
|
| 2196 |
-
return args[argIndex++];
|
| 2197 |
-
});
|
| 2198 |
-
if (typeof console !== 'undefined') {
|
| 2199 |
-
console.error(message);
|
| 2200 |
-
}
|
| 2201 |
-
try {
|
| 2202 |
-
// --- Welcome to debugging React ---
|
| 2203 |
-
// This error was thrown as a convenience so that you can use this stack
|
| 2204 |
-
// to find the callsite that caused this warning to fire.
|
| 2205 |
-
throw new Error(message);
|
| 2206 |
-
} catch (x) {}
|
| 2207 |
-
}
|
| 2208 |
-
|
| 2209 |
-
warning = function(condition, format, args) {
|
| 2210 |
-
var len = arguments.length;
|
| 2211 |
-
args = new Array(len > 2 ? len - 2 : 0);
|
| 2212 |
-
for (var key = 2; key < len; key++) {
|
| 2213 |
-
args[key - 2] = arguments[key];
|
| 2214 |
-
}
|
| 2215 |
-
if (format === undefined) {
|
| 2216 |
-
throw new Error(
|
| 2217 |
-
'`warning(condition, format, ...args)` requires a warning ' +
|
| 2218 |
-
'message argument'
|
| 2219 |
-
);
|
| 2220 |
-
}
|
| 2221 |
-
if (!condition) {
|
| 2222 |
-
printWarning.apply(null, [format].concat(args));
|
| 2223 |
-
}
|
| 2224 |
-
};
|
| 2225 |
-
}
|
| 2226 |
-
|
| 2227 |
-
module.exports = warning;
|
| 2228 |
-
|
| 2229 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
|
| 2230 |
-
|
| 2231 |
-
/***/ }),
|
| 2232 |
-
/* 41 */
|
| 2233 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 2234 |
-
|
| 2235 |
-
"use strict";
|
| 2236 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useControlled;
|
| 2237 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 2238 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 2239 |
-
/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
|
| 2240 |
-
|
| 2241 |
-
function useControlled(_ref) {
|
| 2242 |
-
var controlled = _ref.controlled,
|
| 2243 |
-
defaultProp = _ref.default,
|
| 2244 |
-
name = _ref.name,
|
| 2245 |
-
_ref$state = _ref.state,
|
| 2246 |
-
state = _ref$state === void 0 ? 'value' : _ref$state;
|
| 2247 |
-
|
| 2248 |
-
var _React$useRef = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](controlled !== undefined),
|
| 2249 |
-
isControlled = _React$useRef.current;
|
| 2250 |
-
|
| 2251 |
-
var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](defaultProp),
|
| 2252 |
-
valueState = _React$useState[0],
|
| 2253 |
-
setValue = _React$useState[1];
|
| 2254 |
-
|
| 2255 |
-
var value = isControlled ? controlled : valueState;
|
| 2256 |
-
|
| 2257 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 2258 |
-
__WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
|
| 2259 |
-
if (isControlled !== (controlled !== undefined)) {
|
| 2260 |
-
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'));
|
| 2261 |
-
}
|
| 2262 |
-
}, [controlled]);
|
| 2263 |
-
|
| 2264 |
-
var _React$useRef2 = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](defaultProp),
|
| 2265 |
-
defaultValue = _React$useRef2.current;
|
| 2266 |
-
|
| 2267 |
-
__WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
|
| 2268 |
-
if (!isControlled && defaultValue !== defaultProp) {
|
| 2269 |
-
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'));
|
| 2270 |
-
}
|
| 2271 |
-
}, [JSON.stringify(defaultProp)]);
|
| 2272 |
-
}
|
| 2273 |
-
|
| 2274 |
-
var setValueIfUncontrolled = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (newValue) {
|
| 2275 |
-
if (!isControlled) {
|
| 2276 |
-
setValue(newValue);
|
| 2277 |
-
}
|
| 2278 |
-
}, []);
|
| 2279 |
-
return [value, setValueIfUncontrolled];
|
| 2280 |
-
}
|
| 2281 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 2282 |
-
|
| 2283 |
-
/***/ }),
|
| 2284 |
-
/* 42 */
|
| 2285 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 2286 |
-
|
| 2287 |
-
"use strict";
|
| 2288 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__IconButton__ = __webpack_require__(520);
|
| 2289 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__IconButton__["a"]; });
|
| 2290 |
-
|
| 2291 |
-
|
| 2292 |
-
/***/ }),
|
| 2293 |
-
/* 43 */
|
| 2294 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 2295 |
-
|
| 2296 |
-
var arrayMap = __webpack_require__(361),
|
| 2297 |
-
baseIteratee = __webpack_require__(736),
|
| 2298 |
-
baseMap = __webpack_require__(794),
|
| 2299 |
-
isArray = __webpack_require__(25);
|
| 2300 |
-
|
| 2301 |
-
/**
|
| 2302 |
-
* Creates an array of values by running each element in `collection` thru
|
| 2303 |
-
* `iteratee`. The iteratee is invoked with three arguments:
|
| 2304 |
-
* (value, index|key, collection).
|
| 2305 |
-
*
|
| 2306 |
-
* Many lodash methods are guarded to work as iteratees for methods like
|
| 2307 |
-
* `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
|
| 2308 |
-
*
|
| 2309 |
-
* The guarded methods are:
|
| 2310 |
-
* `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
|
| 2311 |
-
* `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
|
| 2312 |
-
* `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
|
| 2313 |
-
* `template`, `trim`, `trimEnd`, `trimStart`, and `words`
|
| 2314 |
-
*
|
| 2315 |
-
* @static
|
| 2316 |
-
* @memberOf _
|
| 2317 |
-
* @since 0.1.0
|
| 2318 |
-
* @category Collection
|
| 2319 |
-
* @param {Array|Object} collection The collection to iterate over.
|
| 2320 |
-
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
| 2321 |
-
* @returns {Array} Returns the new mapped array.
|
| 2322 |
-
* @example
|
| 2323 |
-
*
|
| 2324 |
-
* function square(n) {
|
| 2325 |
-
* return n * n;
|
| 2326 |
-
* }
|
| 2327 |
-
*
|
| 2328 |
-
* _.map([4, 8], square);
|
| 2329 |
-
* // => [16, 64]
|
| 2330 |
-
*
|
| 2331 |
-
* _.map({ 'a': 4, 'b': 8 }, square);
|
| 2332 |
-
* // => [16, 64] (iteration order is not guaranteed)
|
| 2333 |
-
*
|
| 2334 |
-
* var users = [
|
| 2335 |
-
* { 'user': 'barney' },
|
| 2336 |
-
* { 'user': 'fred' }
|
| 2337 |
-
* ];
|
| 2338 |
-
*
|
| 2339 |
-
* // The `_.property` iteratee shorthand.
|
| 2340 |
-
* _.map(users, 'user');
|
| 2341 |
-
* // => ['barney', 'fred']
|
| 2342 |
-
*/
|
| 2343 |
-
function map(collection, iteratee) {
|
| 2344 |
-
var func = isArray(collection) ? arrayMap : baseMap;
|
| 2345 |
-
return func(collection, baseIteratee(iteratee, 3));
|
| 2346 |
-
}
|
| 2347 |
-
|
| 2348 |
-
module.exports = map;
|
| 2349 |
-
|
| 2350 |
-
|
| 2351 |
-
/***/ }),
|
| 2352 |
-
/* 44 */
|
| 2353 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 2354 |
-
|
| 2355 |
-
"use strict";
|
| 2356 |
-
/* WEBPACK VAR INJECTION */(function(process) {/**
|
| 2357 |
-
* Copyright (c) 2013-present, Facebook, Inc.
|
| 2358 |
-
*
|
| 2359 |
-
* This source code is licensed under the MIT license found in the
|
| 2360 |
-
* LICENSE file in the root directory of this source tree.
|
| 2361 |
-
*/
|
| 2362 |
-
|
| 2363 |
-
|
| 2364 |
-
|
| 2365 |
-
/**
|
| 2366 |
-
* Use invariant() to assert state which your program assumes to be true.
|
| 2367 |
-
*
|
| 2368 |
-
* Provide sprintf-style format (only %s is supported) and arguments
|
| 2369 |
-
* to provide information about what broke and what you were
|
| 2370 |
-
* expecting.
|
| 2371 |
-
*
|
| 2372 |
-
* The invariant message will be stripped in production, but the invariant
|
| 2373 |
-
* will remain to ensure logic does not differ in production.
|
| 2374 |
-
*/
|
| 2375 |
-
|
| 2376 |
-
var invariant = function(condition, format, a, b, c, d, e, f) {
|
| 2377 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 2378 |
-
if (format === undefined) {
|
| 2379 |
-
throw new Error('invariant requires an error message argument');
|
| 2380 |
-
}
|
| 2381 |
-
}
|
| 2382 |
-
|
| 2383 |
-
if (!condition) {
|
| 2384 |
-
var error;
|
| 2385 |
-
if (format === undefined) {
|
| 2386 |
-
error = new Error(
|
| 2387 |
-
'Minified exception occurred; use the non-minified dev environment ' +
|
| 2388 |
-
'for the full error message and additional helpful warnings.'
|
| 2389 |
-
);
|
| 2390 |
-
} else {
|
| 2391 |
-
var args = [a, b, c, d, e, f];
|
| 2392 |
-
var argIndex = 0;
|
| 2393 |
-
error = new Error(
|
| 2394 |
-
format.replace(/%s/g, function() { return args[argIndex++]; })
|
| 2395 |
-
);
|
| 2396 |
-
error.name = 'Invariant Violation';
|
| 2397 |
-
}
|
| 2398 |
-
|
| 2399 |
-
error.framesToPop = 1; // we don't care about invariant's own frame
|
| 2400 |
-
throw error;
|
| 2401 |
-
}
|
| 2402 |
-
};
|
| 2403 |
-
|
| 2404 |
-
module.exports = invariant;
|
| 2405 |
-
|
| 2406 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
|
| 2407 |
-
|
| 2408 |
-
/***/ }),
|
| 2409 |
-
/* 45 */
|
| 2410 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 2411 |
-
|
| 2412 |
-
"use strict";
|
| 2413 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _typeof;
|
| 2414 |
-
function _typeof(obj) {
|
| 2415 |
-
"@babel/helpers - typeof";
|
| 2416 |
-
|
| 2417 |
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
| 2418 |
-
_typeof = function _typeof(obj) {
|
| 2419 |
-
return typeof obj;
|
| 2420 |
-
};
|
| 2421 |
-
} else {
|
| 2422 |
-
_typeof = function _typeof(obj) {
|
| 2423 |
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
| 2424 |
-
};
|
| 2425 |
-
}
|
| 2426 |
-
|
| 2427 |
-
return _typeof(obj);
|
| 2428 |
-
}
|
| 2429 |
-
|
| 2430 |
-
/***/ }),
|
| 2431 |
-
/* 46 */
|
| 2432 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 2433 |
-
|
| 2434 |
-
"use strict";
|
| 2435 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RuleList; });
|
| 2436 |
-
/* unused harmony export SheetsManager */
|
| 2437 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SheetsRegistry; });
|
| 2438 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return create; });
|
| 2439 |
-
/* unused harmony export createGenerateId */
|
| 2440 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createRule; });
|
| 2441 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getDynamicStyles; });
|
| 2442 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasCSSTOMSupport; });
|
| 2443 |
-
/* unused harmony export sheets */
|
| 2444 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return toCssValue; });
|
| 2445 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 2446 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_is_in_browser__ = __webpack_require__(193);
|
| 2447 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tiny_warning__ = __webpack_require__(77);
|
| 2448 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__ = __webpack_require__(79);
|
| 2449 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(55);
|
| 2450 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(122);
|
| 2451 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(54);
|
| 2452 |
-
|
| 2453 |
-
|
| 2454 |
-
|
| 2455 |
-
|
| 2456 |
-
|
| 2457 |
-
|
| 2458 |
-
|
| 2459 |
-
|
| 2460 |
-
var plainObjectConstrurctor = {}.constructor;
|
| 2461 |
-
function cloneStyle(style) {
|
| 2462 |
-
if (style == null || typeof style !== 'object') return style;
|
| 2463 |
-
if (Array.isArray(style)) return style.map(cloneStyle);
|
| 2464 |
-
if (style.constructor !== plainObjectConstrurctor) return style;
|
| 2465 |
-
var newStyle = {};
|
| 2466 |
-
|
| 2467 |
-
for (var name in style) {
|
| 2468 |
-
newStyle[name] = cloneStyle(style[name]);
|
| 2469 |
-
}
|
| 2470 |
-
|
| 2471 |
-
return newStyle;
|
| 2472 |
-
}
|
| 2473 |
-
|
| 2474 |
-
/**
|
| 2475 |
-
* Create a rule instance.
|
| 2476 |
-
*/
|
| 2477 |
-
|
| 2478 |
-
function createRule(name, decl, options) {
|
| 2479 |
-
if (name === void 0) {
|
| 2480 |
-
name = 'unnamed';
|
| 2481 |
-
}
|
| 2482 |
-
|
| 2483 |
-
var jss = options.jss;
|
| 2484 |
-
var declCopy = cloneStyle(decl);
|
| 2485 |
-
var rule = jss.plugins.onCreateRule(name, declCopy, options);
|
| 2486 |
-
if (rule) return rule; // It is an at-rule and it has no instance.
|
| 2487 |
-
|
| 2488 |
-
if (name[0] === '@') {
|
| 2489 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown rule " + name) : void 0;
|
| 2490 |
-
}
|
| 2491 |
-
|
| 2492 |
-
return null;
|
| 2493 |
-
}
|
| 2494 |
-
|
| 2495 |
-
var join = function join(value, by) {
|
| 2496 |
-
var result = '';
|
| 2497 |
-
|
| 2498 |
-
for (var i = 0; i < value.length; i++) {
|
| 2499 |
-
// Remove !important from the value, it will be readded later.
|
| 2500 |
-
if (value[i] === '!important') break;
|
| 2501 |
-
if (result) result += by;
|
| 2502 |
-
result += value[i];
|
| 2503 |
-
}
|
| 2504 |
-
|
| 2505 |
-
return result;
|
| 2506 |
-
};
|
| 2507 |
-
/**
|
| 2508 |
-
* Converts array values to string.
|
| 2509 |
-
*
|
| 2510 |
-
* `margin: [['5px', '10px']]` > `margin: 5px 10px;`
|
| 2511 |
-
* `border: ['1px', '2px']` > `border: 1px, 2px;`
|
| 2512 |
-
* `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
|
| 2513 |
-
* `color: ['red', !important]` > `color: red !important;`
|
| 2514 |
-
*/
|
| 2515 |
-
|
| 2516 |
-
|
| 2517 |
-
function toCssValue(value, ignoreImportant) {
|
| 2518 |
-
if (ignoreImportant === void 0) {
|
| 2519 |
-
ignoreImportant = false;
|
| 2520 |
-
}
|
| 2521 |
-
|
| 2522 |
-
if (!Array.isArray(value)) return value;
|
| 2523 |
-
var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
|
| 2524 |
-
|
| 2525 |
-
if (Array.isArray(value[0])) {
|
| 2526 |
-
for (var i = 0; i < value.length; i++) {
|
| 2527 |
-
if (value[i] === '!important') break;
|
| 2528 |
-
if (cssValue) cssValue += ', ';
|
| 2529 |
-
cssValue += join(value[i], ' ');
|
| 2530 |
-
}
|
| 2531 |
-
} else cssValue = join(value, ', '); // Add !important, because it was ignored.
|
| 2532 |
-
|
| 2533 |
-
|
| 2534 |
-
if (!ignoreImportant && value[value.length - 1] === '!important') {
|
| 2535 |
-
cssValue += ' !important';
|
| 2536 |
-
}
|
| 2537 |
-
|
| 2538 |
-
return cssValue;
|
| 2539 |
-
}
|
| 2540 |
-
|
| 2541 |
-
/**
|
| 2542 |
-
* Indent a string.
|
| 2543 |
-
* http://jsperf.com/array-join-vs-for
|
| 2544 |
-
*/
|
| 2545 |
-
function indentStr(str, indent) {
|
| 2546 |
-
var result = '';
|
| 2547 |
-
|
| 2548 |
-
for (var index = 0; index < indent; index++) {
|
| 2549 |
-
result += ' ';
|
| 2550 |
-
}
|
| 2551 |
-
|
| 2552 |
-
return result + str;
|
| 2553 |
-
}
|
| 2554 |
-
/**
|
| 2555 |
-
* Converts a Rule to CSS string.
|
| 2556 |
-
*/
|
| 2557 |
-
|
| 2558 |
-
|
| 2559 |
-
function toCss(selector, style, options) {
|
| 2560 |
-
if (options === void 0) {
|
| 2561 |
-
options = {};
|
| 2562 |
-
}
|
| 2563 |
-
|
| 2564 |
-
var result = '';
|
| 2565 |
-
if (!style) return result;
|
| 2566 |
-
var _options = options,
|
| 2567 |
-
_options$indent = _options.indent,
|
| 2568 |
-
indent = _options$indent === void 0 ? 0 : _options$indent;
|
| 2569 |
-
var fallbacks = style.fallbacks;
|
| 2570 |
-
if (selector) indent++; // Apply fallbacks first.
|
| 2571 |
-
|
| 2572 |
-
if (fallbacks) {
|
| 2573 |
-
// Array syntax {fallbacks: [{prop: value}]}
|
| 2574 |
-
if (Array.isArray(fallbacks)) {
|
| 2575 |
-
for (var index = 0; index < fallbacks.length; index++) {
|
| 2576 |
-
var fallback = fallbacks[index];
|
| 2577 |
-
|
| 2578 |
-
for (var prop in fallback) {
|
| 2579 |
-
var value = fallback[prop];
|
| 2580 |
-
|
| 2581 |
-
if (value != null) {
|
| 2582 |
-
if (result) result += '\n';
|
| 2583 |
-
result += "" + indentStr(prop + ": " + toCssValue(value) + ";", indent);
|
| 2584 |
-
}
|
| 2585 |
-
}
|
| 2586 |
-
}
|
| 2587 |
-
} else {
|
| 2588 |
-
// Object syntax {fallbacks: {prop: value}}
|
| 2589 |
-
for (var _prop in fallbacks) {
|
| 2590 |
-
var _value = fallbacks[_prop];
|
| 2591 |
-
|
| 2592 |
-
if (_value != null) {
|
| 2593 |
-
if (result) result += '\n';
|
| 2594 |
-
result += "" + indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
|
| 2595 |
-
}
|
| 2596 |
-
}
|
| 2597 |
-
}
|
| 2598 |
-
}
|
| 2599 |
-
|
| 2600 |
-
for (var _prop2 in style) {
|
| 2601 |
-
var _value2 = style[_prop2];
|
| 2602 |
-
|
| 2603 |
-
if (_value2 != null && _prop2 !== 'fallbacks') {
|
| 2604 |
-
if (result) result += '\n';
|
| 2605 |
-
result += "" + indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
|
| 2606 |
-
}
|
| 2607 |
-
} // Allow empty style in this case, because properties will be added dynamically.
|
| 2608 |
-
|
| 2609 |
-
|
| 2610 |
-
if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
|
| 2611 |
-
|
| 2612 |
-
if (!selector) return result;
|
| 2613 |
-
indent--;
|
| 2614 |
-
if (result) result = "\n" + result + "\n";
|
| 2615 |
-
return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
|
| 2616 |
-
}
|
| 2617 |
-
|
| 2618 |
-
var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
|
| 2619 |
-
var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
|
| 2620 |
-
var escape = (function (str) {
|
| 2621 |
-
return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
|
| 2622 |
-
});
|
| 2623 |
-
|
| 2624 |
-
var BaseStyleRule =
|
| 2625 |
-
/*#__PURE__*/
|
| 2626 |
-
function () {
|
| 2627 |
-
function BaseStyleRule(key, style, options) {
|
| 2628 |
-
this.type = 'style';
|
| 2629 |
-
this.key = void 0;
|
| 2630 |
-
this.isProcessed = false;
|
| 2631 |
-
this.style = void 0;
|
| 2632 |
-
this.renderer = void 0;
|
| 2633 |
-
this.renderable = void 0;
|
| 2634 |
-
this.options = void 0;
|
| 2635 |
-
var sheet = options.sheet,
|
| 2636 |
-
Renderer = options.Renderer;
|
| 2637 |
-
this.key = key;
|
| 2638 |
-
this.options = options;
|
| 2639 |
-
this.style = style;
|
| 2640 |
-
if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
|
| 2641 |
-
}
|
| 2642 |
-
/**
|
| 2643 |
-
* Get or set a style property.
|
| 2644 |
-
*/
|
| 2645 |
-
|
| 2646 |
-
|
| 2647 |
-
var _proto = BaseStyleRule.prototype;
|
| 2648 |
-
|
| 2649 |
-
_proto.prop = function prop(name, value, options) {
|
| 2650 |
-
// It's a getter.
|
| 2651 |
-
if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
|
| 2652 |
-
|
| 2653 |
-
var force = options ? options.force : false;
|
| 2654 |
-
if (!force && this.style[name] === value) return this;
|
| 2655 |
-
var newValue = value;
|
| 2656 |
-
|
| 2657 |
-
if (!options || options.process !== false) {
|
| 2658 |
-
newValue = this.options.jss.plugins.onChangeValue(value, name, this);
|
| 2659 |
-
}
|
| 2660 |
-
|
| 2661 |
-
var isEmpty = newValue == null || newValue === false;
|
| 2662 |
-
var isDefined = name in this.style; // Value is empty and wasn't defined before.
|
| 2663 |
-
|
| 2664 |
-
if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
|
| 2665 |
-
|
| 2666 |
-
var remove = isEmpty && isDefined;
|
| 2667 |
-
if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.
|
| 2668 |
-
|
| 2669 |
-
if (this.renderable && this.renderer) {
|
| 2670 |
-
if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);
|
| 2671 |
-
return this;
|
| 2672 |
-
}
|
| 2673 |
-
|
| 2674 |
-
var sheet = this.options.sheet;
|
| 2675 |
-
|
| 2676 |
-
if (sheet && sheet.attached) {
|
| 2677 |
-
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;
|
| 2678 |
-
}
|
| 2679 |
-
|
| 2680 |
-
return this;
|
| 2681 |
-
};
|
| 2682 |
-
|
| 2683 |
-
return BaseStyleRule;
|
| 2684 |
-
}();
|
| 2685 |
-
var StyleRule =
|
| 2686 |
-
/*#__PURE__*/
|
| 2687 |
-
function (_BaseStyleRule) {
|
| 2688 |
-
Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(StyleRule, _BaseStyleRule);
|
| 2689 |
-
|
| 2690 |
-
function StyleRule(key, style, options) {
|
| 2691 |
-
var _this;
|
| 2692 |
-
|
| 2693 |
-
_this = _BaseStyleRule.call(this, key, style, options) || this;
|
| 2694 |
-
_this.selectorText = void 0;
|
| 2695 |
-
_this.id = void 0;
|
| 2696 |
-
_this.renderable = void 0;
|
| 2697 |
-
var selector = options.selector,
|
| 2698 |
-
scoped = options.scoped,
|
| 2699 |
-
sheet = options.sheet,
|
| 2700 |
-
generateId = options.generateId;
|
| 2701 |
-
|
| 2702 |
-
if (selector) {
|
| 2703 |
-
_this.selectorText = selector;
|
| 2704 |
-
} else if (scoped !== false) {
|
| 2705 |
-
_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);
|
| 2706 |
-
_this.selectorText = "." + escape(_this.id);
|
| 2707 |
-
}
|
| 2708 |
-
|
| 2709 |
-
return _this;
|
| 2710 |
-
}
|
| 2711 |
-
/**
|
| 2712 |
-
* Set selector string.
|
| 2713 |
-
* Attention: use this with caution. Most browsers didn't implement
|
| 2714 |
-
* selectorText setter, so this may result in rerendering of entire Style Sheet.
|
| 2715 |
-
*/
|
| 2716 |
-
|
| 2717 |
-
|
| 2718 |
-
var _proto2 = StyleRule.prototype;
|
| 2719 |
-
|
| 2720 |
-
/**
|
| 2721 |
-
* Apply rule to an element inline.
|
| 2722 |
-
*/
|
| 2723 |
-
_proto2.applyTo = function applyTo(renderable) {
|
| 2724 |
-
var renderer = this.renderer;
|
| 2725 |
-
|
| 2726 |
-
if (renderer) {
|
| 2727 |
-
var json = this.toJSON();
|
| 2728 |
-
|
| 2729 |
-
for (var prop in json) {
|
| 2730 |
-
renderer.setProperty(renderable, prop, json[prop]);
|
| 2731 |
-
}
|
| 2732 |
-
}
|
| 2733 |
-
|
| 2734 |
-
return this;
|
| 2735 |
-
}
|
| 2736 |
-
/**
|
| 2737 |
-
* Returns JSON representation of the rule.
|
| 2738 |
-
* Fallbacks are not supported.
|
| 2739 |
-
* Useful for inline styles.
|
| 2740 |
-
*/
|
| 2741 |
-
;
|
| 2742 |
-
|
| 2743 |
-
_proto2.toJSON = function toJSON() {
|
| 2744 |
-
var json = {};
|
| 2745 |
-
|
| 2746 |
-
for (var prop in this.style) {
|
| 2747 |
-
var value = this.style[prop];
|
| 2748 |
-
if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);
|
| 2749 |
-
}
|
| 2750 |
-
|
| 2751 |
-
return json;
|
| 2752 |
-
}
|
| 2753 |
-
/**
|
| 2754 |
-
* Generates a CSS string.
|
| 2755 |
-
*/
|
| 2756 |
-
;
|
| 2757 |
-
|
| 2758 |
-
_proto2.toString = function toString(options) {
|
| 2759 |
-
var sheet = this.options.sheet;
|
| 2760 |
-
var link = sheet ? sheet.options.link : false;
|
| 2761 |
-
var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
|
| 2762 |
-
allowEmpty: true
|
| 2763 |
-
}) : options;
|
| 2764 |
-
return toCss(this.selectorText, this.style, opts);
|
| 2765 |
-
};
|
| 2766 |
-
|
| 2767 |
-
Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(StyleRule, [{
|
| 2768 |
-
key: "selector",
|
| 2769 |
-
set: function set(selector) {
|
| 2770 |
-
if (selector === this.selectorText) return;
|
| 2771 |
-
this.selectorText = selector;
|
| 2772 |
-
var renderer = this.renderer,
|
| 2773 |
-
renderable = this.renderable;
|
| 2774 |
-
if (!renderable || !renderer) return;
|
| 2775 |
-
var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.
|
| 2776 |
-
|
| 2777 |
-
if (!hasChanged) {
|
| 2778 |
-
renderer.replaceRule(renderable, this);
|
| 2779 |
-
}
|
| 2780 |
-
}
|
| 2781 |
-
/**
|
| 2782 |
-
* Get selector string.
|
| 2783 |
-
*/
|
| 2784 |
-
,
|
| 2785 |
-
get: function get() {
|
| 2786 |
-
return this.selectorText;
|
| 2787 |
-
}
|
| 2788 |
-
}]);
|
| 2789 |
-
|
| 2790 |
-
return StyleRule;
|
| 2791 |
-
}(BaseStyleRule);
|
| 2792 |
-
var pluginStyleRule = {
|
| 2793 |
-
onCreateRule: function onCreateRule(name, style, options) {
|
| 2794 |
-
if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {
|
| 2795 |
-
return null;
|
| 2796 |
-
}
|
| 2797 |
-
|
| 2798 |
-
return new StyleRule(name, style, options);
|
| 2799 |
-
}
|
| 2800 |
-
};
|
| 2801 |
-
|
| 2802 |
-
var defaultToStringOptions = {
|
| 2803 |
-
indent: 1,
|
| 2804 |
-
children: true
|
| 2805 |
-
};
|
| 2806 |
-
var atRegExp = /@([\w-]+)/;
|
| 2807 |
-
/**
|
| 2808 |
-
* Conditional rule for @media, @supports
|
| 2809 |
-
*/
|
| 2810 |
-
|
| 2811 |
-
var ConditionalRule =
|
| 2812 |
-
/*#__PURE__*/
|
| 2813 |
-
function () {
|
| 2814 |
-
function ConditionalRule(key, styles, options) {
|
| 2815 |
-
this.type = 'conditional';
|
| 2816 |
-
this.at = void 0;
|
| 2817 |
-
this.key = void 0;
|
| 2818 |
-
this.query = void 0;
|
| 2819 |
-
this.rules = void 0;
|
| 2820 |
-
this.options = void 0;
|
| 2821 |
-
this.isProcessed = false;
|
| 2822 |
-
this.renderable = void 0;
|
| 2823 |
-
this.key = key; // Key might contain a unique suffix in case the `name` passed by user was duplicate.
|
| 2824 |
-
|
| 2825 |
-
this.query = options.name;
|
| 2826 |
-
var atMatch = key.match(atRegExp);
|
| 2827 |
-
this.at = atMatch ? atMatch[1] : 'unknown';
|
| 2828 |
-
this.options = options;
|
| 2829 |
-
this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
|
| 2830 |
-
parent: this
|
| 2831 |
-
}));
|
| 2832 |
-
|
| 2833 |
-
for (var name in styles) {
|
| 2834 |
-
this.rules.add(name, styles[name]);
|
| 2835 |
-
}
|
| 2836 |
-
|
| 2837 |
-
this.rules.process();
|
| 2838 |
-
}
|
| 2839 |
-
/**
|
| 2840 |
-
* Get a rule.
|
| 2841 |
-
*/
|
| 2842 |
-
|
| 2843 |
-
|
| 2844 |
-
var _proto = ConditionalRule.prototype;
|
| 2845 |
-
|
| 2846 |
-
_proto.getRule = function getRule(name) {
|
| 2847 |
-
return this.rules.get(name);
|
| 2848 |
-
}
|
| 2849 |
-
/**
|
| 2850 |
-
* Get index of a rule.
|
| 2851 |
-
*/
|
| 2852 |
-
;
|
| 2853 |
-
|
| 2854 |
-
_proto.indexOf = function indexOf(rule) {
|
| 2855 |
-
return this.rules.indexOf(rule);
|
| 2856 |
-
}
|
| 2857 |
-
/**
|
| 2858 |
-
* Create and register rule, run plugins.
|
| 2859 |
-
*/
|
| 2860 |
-
;
|
| 2861 |
-
|
| 2862 |
-
_proto.addRule = function addRule(name, style, options) {
|
| 2863 |
-
var rule = this.rules.add(name, style, options);
|
| 2864 |
-
if (!rule) return null;
|
| 2865 |
-
this.options.jss.plugins.onProcessRule(rule);
|
| 2866 |
-
return rule;
|
| 2867 |
-
}
|
| 2868 |
-
/**
|
| 2869 |
-
* Generates a CSS string.
|
| 2870 |
-
*/
|
| 2871 |
-
;
|
| 2872 |
-
|
| 2873 |
-
_proto.toString = function toString(options) {
|
| 2874 |
-
if (options === void 0) {
|
| 2875 |
-
options = defaultToStringOptions;
|
| 2876 |
-
}
|
| 2877 |
-
|
| 2878 |
-
if (options.indent == null) options.indent = defaultToStringOptions.indent;
|
| 2879 |
-
if (options.children == null) options.children = defaultToStringOptions.children;
|
| 2880 |
-
|
| 2881 |
-
if (options.children === false) {
|
| 2882 |
-
return this.query + " {}";
|
| 2883 |
-
}
|
| 2884 |
-
|
| 2885 |
-
var children = this.rules.toString(options);
|
| 2886 |
-
return children ? this.query + " {\n" + children + "\n}" : '';
|
| 2887 |
-
};
|
| 2888 |
-
|
| 2889 |
-
return ConditionalRule;
|
| 2890 |
-
}();
|
| 2891 |
-
var keyRegExp = /@media|@supports\s+/;
|
| 2892 |
-
var pluginConditionalRule = {
|
| 2893 |
-
onCreateRule: function onCreateRule(key, styles, options) {
|
| 2894 |
-
return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
|
| 2895 |
-
}
|
| 2896 |
-
};
|
| 2897 |
-
|
| 2898 |
-
var defaultToStringOptions$1 = {
|
| 2899 |
-
indent: 1,
|
| 2900 |
-
children: true
|
| 2901 |
-
};
|
| 2902 |
-
var nameRegExp = /@keyframes\s+([\w-]+)/;
|
| 2903 |
-
/**
|
| 2904 |
-
* Rule for @keyframes
|
| 2905 |
-
*/
|
| 2906 |
-
|
| 2907 |
-
var KeyframesRule =
|
| 2908 |
-
/*#__PURE__*/
|
| 2909 |
-
function () {
|
| 2910 |
-
function KeyframesRule(key, frames, options) {
|
| 2911 |
-
this.type = 'keyframes';
|
| 2912 |
-
this.at = '@keyframes';
|
| 2913 |
-
this.key = void 0;
|
| 2914 |
-
this.name = void 0;
|
| 2915 |
-
this.id = void 0;
|
| 2916 |
-
this.rules = void 0;
|
| 2917 |
-
this.options = void 0;
|
| 2918 |
-
this.isProcessed = false;
|
| 2919 |
-
this.renderable = void 0;
|
| 2920 |
-
var nameMatch = key.match(nameRegExp);
|
| 2921 |
-
|
| 2922 |
-
if (nameMatch && nameMatch[1]) {
|
| 2923 |
-
this.name = nameMatch[1];
|
| 2924 |
-
} else {
|
| 2925 |
-
this.name = 'noname';
|
| 2926 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Bad keyframes name " + key) : void 0;
|
| 2927 |
-
}
|
| 2928 |
-
|
| 2929 |
-
this.key = this.type + "-" + this.name;
|
| 2930 |
-
this.options = options;
|
| 2931 |
-
var scoped = options.scoped,
|
| 2932 |
-
sheet = options.sheet,
|
| 2933 |
-
generateId = options.generateId;
|
| 2934 |
-
this.id = scoped === false ? this.name : escape(generateId(this, sheet));
|
| 2935 |
-
this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
|
| 2936 |
-
parent: this
|
| 2937 |
-
}));
|
| 2938 |
-
|
| 2939 |
-
for (var name in frames) {
|
| 2940 |
-
this.rules.add(name, frames[name], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
|
| 2941 |
-
parent: this
|
| 2942 |
-
}));
|
| 2943 |
-
}
|
| 2944 |
-
|
| 2945 |
-
this.rules.process();
|
| 2946 |
-
}
|
| 2947 |
-
/**
|
| 2948 |
-
* Generates a CSS string.
|
| 2949 |
-
*/
|
| 2950 |
-
|
| 2951 |
-
|
| 2952 |
-
var _proto = KeyframesRule.prototype;
|
| 2953 |
-
|
| 2954 |
-
_proto.toString = function toString(options) {
|
| 2955 |
-
if (options === void 0) {
|
| 2956 |
-
options = defaultToStringOptions$1;
|
| 2957 |
-
}
|
| 2958 |
-
|
| 2959 |
-
if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
|
| 2960 |
-
if (options.children == null) options.children = defaultToStringOptions$1.children;
|
| 2961 |
-
|
| 2962 |
-
if (options.children === false) {
|
| 2963 |
-
return this.at + " " + this.id + " {}";
|
| 2964 |
-
}
|
| 2965 |
-
|
| 2966 |
-
var children = this.rules.toString(options);
|
| 2967 |
-
if (children) children = "\n" + children + "\n";
|
| 2968 |
-
return this.at + " " + this.id + " {" + children + "}";
|
| 2969 |
-
};
|
| 2970 |
-
|
| 2971 |
-
return KeyframesRule;
|
| 2972 |
-
}();
|
| 2973 |
-
var keyRegExp$1 = /@keyframes\s+/;
|
| 2974 |
-
var refRegExp = /\$([\w-]+)/g;
|
| 2975 |
-
|
| 2976 |
-
var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {
|
| 2977 |
-
if (typeof val === 'string') {
|
| 2978 |
-
return val.replace(refRegExp, function (match, name) {
|
| 2979 |
-
if (name in keyframes) {
|
| 2980 |
-
return keyframes[name];
|
| 2981 |
-
}
|
| 2982 |
-
|
| 2983 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Referenced keyframes rule \"" + name + "\" is not defined.") : void 0;
|
| 2984 |
-
return match;
|
| 2985 |
-
});
|
| 2986 |
-
}
|
| 2987 |
-
|
| 2988 |
-
return val;
|
| 2989 |
-
};
|
| 2990 |
-
/**
|
| 2991 |
-
* Replace the reference for a animation name.
|
| 2992 |
-
*/
|
| 2993 |
-
|
| 2994 |
-
|
| 2995 |
-
var replaceRef = function replaceRef(style, prop, keyframes) {
|
| 2996 |
-
var value = style[prop];
|
| 2997 |
-
var refKeyframe = findReferencedKeyframe(value, keyframes);
|
| 2998 |
-
|
| 2999 |
-
if (refKeyframe !== value) {
|
| 3000 |
-
style[prop] = refKeyframe;
|
| 3001 |
-
}
|
| 3002 |
-
};
|
| 3003 |
-
|
| 3004 |
-
var plugin = {
|
| 3005 |
-
onCreateRule: function onCreateRule(key, frames, options) {
|
| 3006 |
-
return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
|
| 3007 |
-
},
|
| 3008 |
-
// Animation name ref replacer.
|
| 3009 |
-
onProcessStyle: function onProcessStyle(style, rule, sheet) {
|
| 3010 |
-
if (rule.type !== 'style' || !sheet) return style;
|
| 3011 |
-
if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);
|
| 3012 |
-
if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);
|
| 3013 |
-
return style;
|
| 3014 |
-
},
|
| 3015 |
-
onChangeValue: function onChangeValue(val, prop, rule) {
|
| 3016 |
-
var sheet = rule.options.sheet;
|
| 3017 |
-
|
| 3018 |
-
if (!sheet) {
|
| 3019 |
-
return val;
|
| 3020 |
-
}
|
| 3021 |
-
|
| 3022 |
-
switch (prop) {
|
| 3023 |
-
case 'animation':
|
| 3024 |
-
return findReferencedKeyframe(val, sheet.keyframes);
|
| 3025 |
-
|
| 3026 |
-
case 'animation-name':
|
| 3027 |
-
return findReferencedKeyframe(val, sheet.keyframes);
|
| 3028 |
-
|
| 3029 |
-
default:
|
| 3030 |
-
return val;
|
| 3031 |
-
}
|
| 3032 |
-
}
|
| 3033 |
-
};
|
| 3034 |
-
|
| 3035 |
-
var KeyframeRule =
|
| 3036 |
-
/*#__PURE__*/
|
| 3037 |
-
function (_BaseStyleRule) {
|
| 3038 |
-
Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(KeyframeRule, _BaseStyleRule);
|
| 3039 |
-
|
| 3040 |
-
function KeyframeRule() {
|
| 3041 |
-
var _this;
|
| 3042 |
-
|
| 3043 |
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 3044 |
-
args[_key] = arguments[_key];
|
| 3045 |
-
}
|
| 3046 |
-
|
| 3047 |
-
_this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;
|
| 3048 |
-
_this.renderable = void 0;
|
| 3049 |
-
return _this;
|
| 3050 |
-
}
|
| 3051 |
-
|
| 3052 |
-
var _proto = KeyframeRule.prototype;
|
| 3053 |
-
|
| 3054 |
-
/**
|
| 3055 |
-
* Generates a CSS string.
|
| 3056 |
-
*/
|
| 3057 |
-
_proto.toString = function toString(options) {
|
| 3058 |
-
var sheet = this.options.sheet;
|
| 3059 |
-
var link = sheet ? sheet.options.link : false;
|
| 3060 |
-
var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
|
| 3061 |
-
allowEmpty: true
|
| 3062 |
-
}) : options;
|
| 3063 |
-
return toCss(this.key, this.style, opts);
|
| 3064 |
-
};
|
| 3065 |
-
|
| 3066 |
-
return KeyframeRule;
|
| 3067 |
-
}(BaseStyleRule);
|
| 3068 |
-
var pluginKeyframeRule = {
|
| 3069 |
-
onCreateRule: function onCreateRule(key, style, options) {
|
| 3070 |
-
if (options.parent && options.parent.type === 'keyframes') {
|
| 3071 |
-
return new KeyframeRule(key, style, options);
|
| 3072 |
-
}
|
| 3073 |
-
|
| 3074 |
-
return null;
|
| 3075 |
-
}
|
| 3076 |
-
};
|
| 3077 |
-
|
| 3078 |
-
var FontFaceRule =
|
| 3079 |
-
/*#__PURE__*/
|
| 3080 |
-
function () {
|
| 3081 |
-
function FontFaceRule(key, style, options) {
|
| 3082 |
-
this.type = 'font-face';
|
| 3083 |
-
this.at = '@font-face';
|
| 3084 |
-
this.key = void 0;
|
| 3085 |
-
this.style = void 0;
|
| 3086 |
-
this.options = void 0;
|
| 3087 |
-
this.isProcessed = false;
|
| 3088 |
-
this.renderable = void 0;
|
| 3089 |
-
this.key = key;
|
| 3090 |
-
this.style = style;
|
| 3091 |
-
this.options = options;
|
| 3092 |
-
}
|
| 3093 |
-
/**
|
| 3094 |
-
* Generates a CSS string.
|
| 3095 |
-
*/
|
| 3096 |
-
|
| 3097 |
-
|
| 3098 |
-
var _proto = FontFaceRule.prototype;
|
| 3099 |
-
|
| 3100 |
-
_proto.toString = function toString(options) {
|
| 3101 |
-
if (Array.isArray(this.style)) {
|
| 3102 |
-
var str = '';
|
| 3103 |
-
|
| 3104 |
-
for (var index = 0; index < this.style.length; index++) {
|
| 3105 |
-
str += toCss(this.at, this.style[index]);
|
| 3106 |
-
if (this.style[index + 1]) str += '\n';
|
| 3107 |
-
}
|
| 3108 |
-
|
| 3109 |
-
return str;
|
| 3110 |
-
}
|
| 3111 |
-
|
| 3112 |
-
return toCss(this.at, this.style, options);
|
| 3113 |
-
};
|
| 3114 |
-
|
| 3115 |
-
return FontFaceRule;
|
| 3116 |
-
}();
|
| 3117 |
-
var keyRegExp$2 = /@font-face/;
|
| 3118 |
-
var pluginFontFaceRule = {
|
| 3119 |
-
onCreateRule: function onCreateRule(key, style, options) {
|
| 3120 |
-
return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;
|
| 3121 |
-
}
|
| 3122 |
-
};
|
| 3123 |
-
|
| 3124 |
-
var ViewportRule =
|
| 3125 |
-
/*#__PURE__*/
|
| 3126 |
-
function () {
|
| 3127 |
-
function ViewportRule(key, style, options) {
|
| 3128 |
-
this.type = 'viewport';
|
| 3129 |
-
this.at = '@viewport';
|
| 3130 |
-
this.key = void 0;
|
| 3131 |
-
this.style = void 0;
|
| 3132 |
-
this.options = void 0;
|
| 3133 |
-
this.isProcessed = false;
|
| 3134 |
-
this.renderable = void 0;
|
| 3135 |
-
this.key = key;
|
| 3136 |
-
this.style = style;
|
| 3137 |
-
this.options = options;
|
| 3138 |
-
}
|
| 3139 |
-
/**
|
| 3140 |
-
* Generates a CSS string.
|
| 3141 |
-
*/
|
| 3142 |
-
|
| 3143 |
-
|
| 3144 |
-
var _proto = ViewportRule.prototype;
|
| 3145 |
-
|
| 3146 |
-
_proto.toString = function toString(options) {
|
| 3147 |
-
return toCss(this.key, this.style, options);
|
| 3148 |
-
};
|
| 3149 |
-
|
| 3150 |
-
return ViewportRule;
|
| 3151 |
-
}();
|
| 3152 |
-
var pluginViewportRule = {
|
| 3153 |
-
onCreateRule: function onCreateRule(key, style, options) {
|
| 3154 |
-
return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;
|
| 3155 |
-
}
|
| 3156 |
-
};
|
| 3157 |
-
|
| 3158 |
-
var SimpleRule =
|
| 3159 |
-
/*#__PURE__*/
|
| 3160 |
-
function () {
|
| 3161 |
-
function SimpleRule(key, value, options) {
|
| 3162 |
-
this.type = 'simple';
|
| 3163 |
-
this.key = void 0;
|
| 3164 |
-
this.value = void 0;
|
| 3165 |
-
this.options = void 0;
|
| 3166 |
-
this.isProcessed = false;
|
| 3167 |
-
this.renderable = void 0;
|
| 3168 |
-
this.key = key;
|
| 3169 |
-
this.value = value;
|
| 3170 |
-
this.options = options;
|
| 3171 |
-
}
|
| 3172 |
-
/**
|
| 3173 |
-
* Generates a CSS string.
|
| 3174 |
-
*/
|
| 3175 |
-
// eslint-disable-next-line no-unused-vars
|
| 3176 |
-
|
| 3177 |
-
|
| 3178 |
-
var _proto = SimpleRule.prototype;
|
| 3179 |
-
|
| 3180 |
-
_proto.toString = function toString(options) {
|
| 3181 |
-
if (Array.isArray(this.value)) {
|
| 3182 |
-
var str = '';
|
| 3183 |
-
|
| 3184 |
-
for (var index = 0; index < this.value.length; index++) {
|
| 3185 |
-
str += this.key + " " + this.value[index] + ";";
|
| 3186 |
-
if (this.value[index + 1]) str += '\n';
|
| 3187 |
-
}
|
| 3188 |
-
|
| 3189 |
-
return str;
|
| 3190 |
-
}
|
| 3191 |
-
|
| 3192 |
-
return this.key + " " + this.value + ";";
|
| 3193 |
-
};
|
| 3194 |
-
|
| 3195 |
-
return SimpleRule;
|
| 3196 |
-
}();
|
| 3197 |
-
var keysMap = {
|
| 3198 |
-
'@charset': true,
|
| 3199 |
-
'@import': true,
|
| 3200 |
-
'@namespace': true
|
| 3201 |
-
};
|
| 3202 |
-
var pluginSimpleRule = {
|
| 3203 |
-
onCreateRule: function onCreateRule(key, value, options) {
|
| 3204 |
-
return key in keysMap ? new SimpleRule(key, value, options) : null;
|
| 3205 |
-
}
|
| 3206 |
-
};
|
| 3207 |
-
|
| 3208 |
-
var plugins = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
|
| 3209 |
-
|
| 3210 |
-
var defaultUpdateOptions = {
|
| 3211 |
-
process: true
|
| 3212 |
-
};
|
| 3213 |
-
var forceUpdateOptions = {
|
| 3214 |
-
force: true,
|
| 3215 |
-
process: true
|
| 3216 |
-
/**
|
| 3217 |
-
* Contains rules objects and allows adding/removing etc.
|
| 3218 |
-
* Is used for e.g. by `StyleSheet` or `ConditionalRule`.
|
| 3219 |
-
*/
|
| 3220 |
-
|
| 3221 |
-
};
|
| 3222 |
-
|
| 3223 |
-
var RuleList =
|
| 3224 |
-
/*#__PURE__*/
|
| 3225 |
-
function () {
|
| 3226 |
-
// Rules registry for access by .get() method.
|
| 3227 |
-
// It contains the same rule registered by name and by selector.
|
| 3228 |
-
// Original styles object.
|
| 3229 |
-
// Used to ensure correct rules order.
|
| 3230 |
-
function RuleList(options) {
|
| 3231 |
-
this.map = {};
|
| 3232 |
-
this.raw = {};
|
| 3233 |
-
this.index = [];
|
| 3234 |
-
this.counter = 0;
|
| 3235 |
-
this.options = void 0;
|
| 3236 |
-
this.classes = void 0;
|
| 3237 |
-
this.keyframes = void 0;
|
| 3238 |
-
this.options = options;
|
| 3239 |
-
this.classes = options.classes;
|
| 3240 |
-
this.keyframes = options.keyframes;
|
| 3241 |
-
}
|
| 3242 |
-
/**
|
| 3243 |
-
* Create and register rule.
|
| 3244 |
-
*
|
| 3245 |
-
* Will not render after Style Sheet was rendered the first time.
|
| 3246 |
-
*/
|
| 3247 |
-
|
| 3248 |
-
|
| 3249 |
-
var _proto = RuleList.prototype;
|
| 3250 |
-
|
| 3251 |
-
_proto.add = function add(name, decl, ruleOptions) {
|
| 3252 |
-
var _this$options = this.options,
|
| 3253 |
-
parent = _this$options.parent,
|
| 3254 |
-
sheet = _this$options.sheet,
|
| 3255 |
-
jss = _this$options.jss,
|
| 3256 |
-
Renderer = _this$options.Renderer,
|
| 3257 |
-
generateId = _this$options.generateId,
|
| 3258 |
-
scoped = _this$options.scoped;
|
| 3259 |
-
|
| 3260 |
-
var options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 3261 |
-
classes: this.classes,
|
| 3262 |
-
parent: parent,
|
| 3263 |
-
sheet: sheet,
|
| 3264 |
-
jss: jss,
|
| 3265 |
-
Renderer: Renderer,
|
| 3266 |
-
generateId: generateId,
|
| 3267 |
-
scoped: scoped,
|
| 3268 |
-
name: name
|
| 3269 |
-
}, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but
|
| 3270 |
-
// `sheet.addRule()` opens the door for any duplicate rule name. When this happens
|
| 3271 |
-
// we need to make the key unique within this RuleList instance scope.
|
| 3272 |
-
|
| 3273 |
-
|
| 3274 |
-
var key = name;
|
| 3275 |
-
|
| 3276 |
-
if (name in this.raw) {
|
| 3277 |
-
key = name + "-d" + this.counter++;
|
| 3278 |
-
} // We need to save the original decl before creating the rule
|
| 3279 |
-
// because cache plugin needs to use it as a key to return a cached rule.
|
| 3280 |
-
|
| 3281 |
-
|
| 3282 |
-
this.raw[key] = decl;
|
| 3283 |
-
|
| 3284 |
-
if (key in this.classes) {
|
| 3285 |
-
// E.g. rules inside of @media container
|
| 3286 |
-
options.selector = "." + escape(this.classes[key]);
|
| 3287 |
-
}
|
| 3288 |
-
|
| 3289 |
-
var rule = createRule(key, decl, options);
|
| 3290 |
-
if (!rule) return null;
|
| 3291 |
-
this.register(rule);
|
| 3292 |
-
var index = options.index === undefined ? this.index.length : options.index;
|
| 3293 |
-
this.index.splice(index, 0, rule);
|
| 3294 |
-
return rule;
|
| 3295 |
-
}
|
| 3296 |
-
/**
|
| 3297 |
-
* Get a rule.
|
| 3298 |
-
*/
|
| 3299 |
-
;
|
| 3300 |
-
|
| 3301 |
-
_proto.get = function get(name) {
|
| 3302 |
-
return this.map[name];
|
| 3303 |
-
}
|
| 3304 |
-
/**
|
| 3305 |
-
* Delete a rule.
|
| 3306 |
-
*/
|
| 3307 |
-
;
|
| 3308 |
-
|
| 3309 |
-
_proto.remove = function remove(rule) {
|
| 3310 |
-
this.unregister(rule);
|
| 3311 |
-
delete this.raw[rule.key];
|
| 3312 |
-
this.index.splice(this.index.indexOf(rule), 1);
|
| 3313 |
-
}
|
| 3314 |
-
/**
|
| 3315 |
-
* Get index of a rule.
|
| 3316 |
-
*/
|
| 3317 |
-
;
|
| 3318 |
-
|
| 3319 |
-
_proto.indexOf = function indexOf(rule) {
|
| 3320 |
-
return this.index.indexOf(rule);
|
| 3321 |
-
}
|
| 3322 |
-
/**
|
| 3323 |
-
* Run `onProcessRule()` plugins on every rule.
|
| 3324 |
-
*/
|
| 3325 |
-
;
|
| 3326 |
-
|
| 3327 |
-
_proto.process = function process() {
|
| 3328 |
-
var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop
|
| 3329 |
-
// we end up with very hard-to-track-down side effects.
|
| 3330 |
-
|
| 3331 |
-
this.index.slice(0).forEach(plugins.onProcessRule, plugins);
|
| 3332 |
-
}
|
| 3333 |
-
/**
|
| 3334 |
-
* Register a rule in `.map`, `.classes` and `.keyframes` maps.
|
| 3335 |
-
*/
|
| 3336 |
-
;
|
| 3337 |
-
|
| 3338 |
-
_proto.register = function register(rule) {
|
| 3339 |
-
this.map[rule.key] = rule;
|
| 3340 |
-
|
| 3341 |
-
if (rule instanceof StyleRule) {
|
| 3342 |
-
this.map[rule.selector] = rule;
|
| 3343 |
-
if (rule.id) this.classes[rule.key] = rule.id;
|
| 3344 |
-
} else if (rule instanceof KeyframesRule && this.keyframes) {
|
| 3345 |
-
this.keyframes[rule.name] = rule.id;
|
| 3346 |
-
}
|
| 3347 |
-
}
|
| 3348 |
-
/**
|
| 3349 |
-
* Unregister a rule.
|
| 3350 |
-
*/
|
| 3351 |
-
;
|
| 3352 |
-
|
| 3353 |
-
_proto.unregister = function unregister(rule) {
|
| 3354 |
-
delete this.map[rule.key];
|
| 3355 |
-
|
| 3356 |
-
if (rule instanceof StyleRule) {
|
| 3357 |
-
delete this.map[rule.selector];
|
| 3358 |
-
delete this.classes[rule.key];
|
| 3359 |
-
} else if (rule instanceof KeyframesRule) {
|
| 3360 |
-
delete this.keyframes[rule.name];
|
| 3361 |
-
}
|
| 3362 |
-
}
|
| 3363 |
-
/**
|
| 3364 |
-
* Update the function values with a new data.
|
| 3365 |
-
*/
|
| 3366 |
-
;
|
| 3367 |
-
|
| 3368 |
-
_proto.update = function update() {
|
| 3369 |
-
var name;
|
| 3370 |
-
var data;
|
| 3371 |
-
var options;
|
| 3372 |
-
|
| 3373 |
-
if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {
|
| 3374 |
-
name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe
|
| 3375 |
-
|
| 3376 |
-
data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe
|
| 3377 |
-
|
| 3378 |
-
options = arguments.length <= 2 ? undefined : arguments[2];
|
| 3379 |
-
} else {
|
| 3380 |
-
data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe
|
| 3381 |
-
|
| 3382 |
-
options = arguments.length <= 1 ? undefined : arguments[1];
|
| 3383 |
-
name = null;
|
| 3384 |
-
}
|
| 3385 |
-
|
| 3386 |
-
if (name) {
|
| 3387 |
-
this.updateOne(this.map[name], data, options);
|
| 3388 |
-
} else {
|
| 3389 |
-
for (var index = 0; index < this.index.length; index++) {
|
| 3390 |
-
this.updateOne(this.index[index], data, options);
|
| 3391 |
-
}
|
| 3392 |
-
}
|
| 3393 |
-
}
|
| 3394 |
-
/**
|
| 3395 |
-
* Execute plugins, update rule props.
|
| 3396 |
-
*/
|
| 3397 |
-
;
|
| 3398 |
-
|
| 3399 |
-
_proto.updateOne = function updateOne(rule, data, options) {
|
| 3400 |
-
if (options === void 0) {
|
| 3401 |
-
options = defaultUpdateOptions;
|
| 3402 |
-
}
|
| 3403 |
-
|
| 3404 |
-
var _this$options2 = this.options,
|
| 3405 |
-
plugins = _this$options2.jss.plugins,
|
| 3406 |
-
sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.
|
| 3407 |
-
|
| 3408 |
-
if (rule.rules instanceof RuleList) {
|
| 3409 |
-
rule.rules.update(data, options);
|
| 3410 |
-
return;
|
| 3411 |
-
}
|
| 3412 |
-
|
| 3413 |
-
var styleRule = rule;
|
| 3414 |
-
var style = styleRule.style;
|
| 3415 |
-
plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
|
| 3416 |
-
|
| 3417 |
-
if (options.process && style && style !== styleRule.style) {
|
| 3418 |
-
// We need to run the plugins in case new `style` relies on syntax plugins.
|
| 3419 |
-
plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.
|
| 3420 |
-
|
| 3421 |
-
for (var prop in styleRule.style) {
|
| 3422 |
-
var nextValue = styleRule.style[prop];
|
| 3423 |
-
var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
|
| 3424 |
-
// We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
|
| 3425 |
-
|
| 3426 |
-
if (nextValue !== prevValue) {
|
| 3427 |
-
styleRule.prop(prop, nextValue, forceUpdateOptions);
|
| 3428 |
-
}
|
| 3429 |
-
} // Remove props.
|
| 3430 |
-
|
| 3431 |
-
|
| 3432 |
-
for (var _prop in style) {
|
| 3433 |
-
var _nextValue = styleRule.style[_prop];
|
| 3434 |
-
var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
|
| 3435 |
-
// We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
|
| 3436 |
-
|
| 3437 |
-
if (_nextValue == null && _nextValue !== _prevValue) {
|
| 3438 |
-
styleRule.prop(_prop, null, forceUpdateOptions);
|
| 3439 |
-
}
|
| 3440 |
-
}
|
| 3441 |
-
}
|
| 3442 |
-
}
|
| 3443 |
-
/**
|
| 3444 |
-
* Convert rules to a CSS string.
|
| 3445 |
-
*/
|
| 3446 |
-
;
|
| 3447 |
-
|
| 3448 |
-
_proto.toString = function toString(options) {
|
| 3449 |
-
var str = '';
|
| 3450 |
-
var sheet = this.options.sheet;
|
| 3451 |
-
var link = sheet ? sheet.options.link : false;
|
| 3452 |
-
|
| 3453 |
-
for (var index = 0; index < this.index.length; index++) {
|
| 3454 |
-
var rule = this.index[index];
|
| 3455 |
-
var css = rule.toString(options); // No need to render an empty rule.
|
| 3456 |
-
|
| 3457 |
-
if (!css && !link) continue;
|
| 3458 |
-
if (str) str += '\n';
|
| 3459 |
-
str += css;
|
| 3460 |
-
}
|
| 3461 |
-
|
| 3462 |
-
return str;
|
| 3463 |
-
};
|
| 3464 |
-
|
| 3465 |
-
return RuleList;
|
| 3466 |
-
}();
|
| 3467 |
-
|
| 3468 |
-
var StyleSheet =
|
| 3469 |
-
/*#__PURE__*/
|
| 3470 |
-
function () {
|
| 3471 |
-
function StyleSheet(styles, options) {
|
| 3472 |
-
this.options = void 0;
|
| 3473 |
-
this.deployed = void 0;
|
| 3474 |
-
this.attached = void 0;
|
| 3475 |
-
this.rules = void 0;
|
| 3476 |
-
this.renderer = void 0;
|
| 3477 |
-
this.classes = void 0;
|
| 3478 |
-
this.keyframes = void 0;
|
| 3479 |
-
this.queue = void 0;
|
| 3480 |
-
this.attached = false;
|
| 3481 |
-
this.deployed = false;
|
| 3482 |
-
this.classes = {};
|
| 3483 |
-
this.keyframes = {};
|
| 3484 |
-
this.options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
|
| 3485 |
-
sheet: this,
|
| 3486 |
-
parent: this,
|
| 3487 |
-
classes: this.classes,
|
| 3488 |
-
keyframes: this.keyframes
|
| 3489 |
-
});
|
| 3490 |
-
|
| 3491 |
-
if (options.Renderer) {
|
| 3492 |
-
this.renderer = new options.Renderer(this);
|
| 3493 |
-
}
|
| 3494 |
-
|
| 3495 |
-
this.rules = new RuleList(this.options);
|
| 3496 |
-
|
| 3497 |
-
for (var name in styles) {
|
| 3498 |
-
this.rules.add(name, styles[name]);
|
| 3499 |
-
}
|
| 3500 |
-
|
| 3501 |
-
this.rules.process();
|
| 3502 |
-
}
|
| 3503 |
-
/**
|
| 3504 |
-
* Attach renderable to the render tree.
|
| 3505 |
-
*/
|
| 3506 |
-
|
| 3507 |
-
|
| 3508 |
-
var _proto = StyleSheet.prototype;
|
| 3509 |
-
|
| 3510 |
-
_proto.attach = function attach() {
|
| 3511 |
-
if (this.attached) return this;
|
| 3512 |
-
if (this.renderer) this.renderer.attach();
|
| 3513 |
-
this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.
|
| 3514 |
-
|
| 3515 |
-
if (!this.deployed) this.deploy();
|
| 3516 |
-
return this;
|
| 3517 |
-
}
|
| 3518 |
-
/**
|
| 3519 |
-
* Remove renderable from render tree.
|
| 3520 |
-
*/
|
| 3521 |
-
;
|
| 3522 |
-
|
| 3523 |
-
_proto.detach = function detach() {
|
| 3524 |
-
if (!this.attached) return this;
|
| 3525 |
-
if (this.renderer) this.renderer.detach();
|
| 3526 |
-
this.attached = false;
|
| 3527 |
-
return this;
|
| 3528 |
-
}
|
| 3529 |
-
/**
|
| 3530 |
-
* Add a rule to the current stylesheet.
|
| 3531 |
-
* Will insert a rule also after the stylesheet has been rendered first time.
|
| 3532 |
-
*/
|
| 3533 |
-
;
|
| 3534 |
-
|
| 3535 |
-
_proto.addRule = function addRule(name, decl, options) {
|
| 3536 |
-
var queue = this.queue; // Plugins can create rules.
|
| 3537 |
-
// In order to preserve the right order, we need to queue all `.addRule` calls,
|
| 3538 |
-
// which happen after the first `rules.add()` call.
|
| 3539 |
-
|
| 3540 |
-
if (this.attached && !queue) this.queue = [];
|
| 3541 |
-
var rule = this.rules.add(name, decl, options);
|
| 3542 |
-
if (!rule) return null;
|
| 3543 |
-
this.options.jss.plugins.onProcessRule(rule);
|
| 3544 |
-
|
| 3545 |
-
if (this.attached) {
|
| 3546 |
-
if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.
|
| 3547 |
-
// It will be inserted all together when .attach is called.
|
| 3548 |
-
|
| 3549 |
-
if (queue) queue.push(rule);else {
|
| 3550 |
-
this.insertRule(rule);
|
| 3551 |
-
|
| 3552 |
-
if (this.queue) {
|
| 3553 |
-
this.queue.forEach(this.insertRule, this);
|
| 3554 |
-
this.queue = undefined;
|
| 3555 |
-
}
|
| 3556 |
-
}
|
| 3557 |
-
return rule;
|
| 3558 |
-
} // We can't add rules to a detached style node.
|
| 3559 |
-
// We will redeploy the sheet once user will attach it.
|
| 3560 |
-
|
| 3561 |
-
|
| 3562 |
-
this.deployed = false;
|
| 3563 |
-
return rule;
|
| 3564 |
-
}
|
| 3565 |
-
/**
|
| 3566 |
-
* Insert rule into the StyleSheet
|
| 3567 |
-
*/
|
| 3568 |
-
;
|
| 3569 |
-
|
| 3570 |
-
_proto.insertRule = function insertRule(rule) {
|
| 3571 |
-
if (this.renderer) {
|
| 3572 |
-
this.renderer.insertRule(rule);
|
| 3573 |
-
}
|
| 3574 |
-
}
|
| 3575 |
-
/**
|
| 3576 |
-
* Create and add rules.
|
| 3577 |
-
* Will render also after Style Sheet was rendered the first time.
|
| 3578 |
-
*/
|
| 3579 |
-
;
|
| 3580 |
-
|
| 3581 |
-
_proto.addRules = function addRules(styles, options) {
|
| 3582 |
-
var added = [];
|
| 3583 |
-
|
| 3584 |
-
for (var name in styles) {
|
| 3585 |
-
var rule = this.addRule(name, styles[name], options);
|
| 3586 |
-
if (rule) added.push(rule);
|
| 3587 |
-
}
|
| 3588 |
-
|
| 3589 |
-
return added;
|
| 3590 |
-
}
|
| 3591 |
-
/**
|
| 3592 |
-
* Get a rule by name.
|
| 3593 |
-
*/
|
| 3594 |
-
;
|
| 3595 |
-
|
| 3596 |
-
_proto.getRule = function getRule(name) {
|
| 3597 |
-
return this.rules.get(name);
|
| 3598 |
-
}
|
| 3599 |
-
/**
|
| 3600 |
-
* Delete a rule by name.
|
| 3601 |
-
* Returns `true`: if rule has been deleted from the DOM.
|
| 3602 |
-
*/
|
| 3603 |
-
;
|
| 3604 |
-
|
| 3605 |
-
_proto.deleteRule = function deleteRule(name) {
|
| 3606 |
-
var rule = typeof name === 'object' ? name : this.rules.get(name);
|
| 3607 |
-
if (!rule) return false;
|
| 3608 |
-
this.rules.remove(rule);
|
| 3609 |
-
|
| 3610 |
-
if (this.attached && rule.renderable && this.renderer) {
|
| 3611 |
-
return this.renderer.deleteRule(rule.renderable);
|
| 3612 |
-
}
|
| 3613 |
-
|
| 3614 |
-
return true;
|
| 3615 |
-
}
|
| 3616 |
-
/**
|
| 3617 |
-
* Get index of a rule.
|
| 3618 |
-
*/
|
| 3619 |
-
;
|
| 3620 |
-
|
| 3621 |
-
_proto.indexOf = function indexOf(rule) {
|
| 3622 |
-
return this.rules.indexOf(rule);
|
| 3623 |
-
}
|
| 3624 |
-
/**
|
| 3625 |
-
* Deploy pure CSS string to a renderable.
|
| 3626 |
-
*/
|
| 3627 |
-
;
|
| 3628 |
-
|
| 3629 |
-
_proto.deploy = function deploy() {
|
| 3630 |
-
if (this.renderer) this.renderer.deploy();
|
| 3631 |
-
this.deployed = true;
|
| 3632 |
-
return this;
|
| 3633 |
-
}
|
| 3634 |
-
/**
|
| 3635 |
-
* Update the function values with a new data.
|
| 3636 |
-
*/
|
| 3637 |
-
;
|
| 3638 |
-
|
| 3639 |
-
_proto.update = function update() {
|
| 3640 |
-
var _this$rules;
|
| 3641 |
-
|
| 3642 |
-
(_this$rules = this.rules).update.apply(_this$rules, arguments);
|
| 3643 |
-
|
| 3644 |
-
return this;
|
| 3645 |
-
}
|
| 3646 |
-
/**
|
| 3647 |
-
* Updates a single rule.
|
| 3648 |
-
*/
|
| 3649 |
-
;
|
| 3650 |
-
|
| 3651 |
-
_proto.updateOne = function updateOne(rule, data, options) {
|
| 3652 |
-
this.rules.updateOne(rule, data, options);
|
| 3653 |
-
return this;
|
| 3654 |
-
}
|
| 3655 |
-
/**
|
| 3656 |
-
* Convert rules to a CSS string.
|
| 3657 |
-
*/
|
| 3658 |
-
;
|
| 3659 |
-
|
| 3660 |
-
_proto.toString = function toString(options) {
|
| 3661 |
-
return this.rules.toString(options);
|
| 3662 |
-
};
|
| 3663 |
-
|
| 3664 |
-
return StyleSheet;
|
| 3665 |
-
}();
|
| 3666 |
-
|
| 3667 |
-
var PluginsRegistry =
|
| 3668 |
-
/*#__PURE__*/
|
| 3669 |
-
function () {
|
| 3670 |
-
function PluginsRegistry() {
|
| 3671 |
-
this.plugins = {
|
| 3672 |
-
internal: [],
|
| 3673 |
-
external: []
|
| 3674 |
-
};
|
| 3675 |
-
this.registry = void 0;
|
| 3676 |
-
}
|
| 3677 |
-
|
| 3678 |
-
var _proto = PluginsRegistry.prototype;
|
| 3679 |
-
|
| 3680 |
-
/**
|
| 3681 |
-
* Call `onCreateRule` hooks and return an object if returned by a hook.
|
| 3682 |
-
*/
|
| 3683 |
-
_proto.onCreateRule = function onCreateRule(name, decl, options) {
|
| 3684 |
-
for (var i = 0; i < this.registry.onCreateRule.length; i++) {
|
| 3685 |
-
var rule = this.registry.onCreateRule[i](name, decl, options);
|
| 3686 |
-
if (rule) return rule;
|
| 3687 |
-
}
|
| 3688 |
-
|
| 3689 |
-
return null;
|
| 3690 |
-
}
|
| 3691 |
-
/**
|
| 3692 |
-
* Call `onProcessRule` hooks.
|
| 3693 |
-
*/
|
| 3694 |
-
;
|
| 3695 |
-
|
| 3696 |
-
_proto.onProcessRule = function onProcessRule(rule) {
|
| 3697 |
-
if (rule.isProcessed) return;
|
| 3698 |
-
var sheet = rule.options.sheet;
|
| 3699 |
-
|
| 3700 |
-
for (var i = 0; i < this.registry.onProcessRule.length; i++) {
|
| 3701 |
-
this.registry.onProcessRule[i](rule, sheet);
|
| 3702 |
-
}
|
| 3703 |
-
|
| 3704 |
-
if (rule.style) this.onProcessStyle(rule.style, rule, sheet);
|
| 3705 |
-
rule.isProcessed = true;
|
| 3706 |
-
}
|
| 3707 |
-
/**
|
| 3708 |
-
* Call `onProcessStyle` hooks.
|
| 3709 |
-
*/
|
| 3710 |
-
;
|
| 3711 |
-
|
| 3712 |
-
_proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {
|
| 3713 |
-
for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
|
| 3714 |
-
// $FlowFixMe
|
| 3715 |
-
rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
|
| 3716 |
-
}
|
| 3717 |
-
}
|
| 3718 |
-
/**
|
| 3719 |
-
* Call `onProcessSheet` hooks.
|
| 3720 |
-
*/
|
| 3721 |
-
;
|
| 3722 |
-
|
| 3723 |
-
_proto.onProcessSheet = function onProcessSheet(sheet) {
|
| 3724 |
-
for (var i = 0; i < this.registry.onProcessSheet.length; i++) {
|
| 3725 |
-
this.registry.onProcessSheet[i](sheet);
|
| 3726 |
-
}
|
| 3727 |
-
}
|
| 3728 |
-
/**
|
| 3729 |
-
* Call `onUpdate` hooks.
|
| 3730 |
-
*/
|
| 3731 |
-
;
|
| 3732 |
-
|
| 3733 |
-
_proto.onUpdate = function onUpdate(data, rule, sheet, options) {
|
| 3734 |
-
for (var i = 0; i < this.registry.onUpdate.length; i++) {
|
| 3735 |
-
this.registry.onUpdate[i](data, rule, sheet, options);
|
| 3736 |
-
}
|
| 3737 |
-
}
|
| 3738 |
-
/**
|
| 3739 |
-
* Call `onChangeValue` hooks.
|
| 3740 |
-
*/
|
| 3741 |
-
;
|
| 3742 |
-
|
| 3743 |
-
_proto.onChangeValue = function onChangeValue(value, prop, rule) {
|
| 3744 |
-
var processedValue = value;
|
| 3745 |
-
|
| 3746 |
-
for (var i = 0; i < this.registry.onChangeValue.length; i++) {
|
| 3747 |
-
processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);
|
| 3748 |
-
}
|
| 3749 |
-
|
| 3750 |
-
return processedValue;
|
| 3751 |
-
}
|
| 3752 |
-
/**
|
| 3753 |
-
* Register a plugin.
|
| 3754 |
-
*/
|
| 3755 |
-
;
|
| 3756 |
-
|
| 3757 |
-
_proto.use = function use(newPlugin, options) {
|
| 3758 |
-
if (options === void 0) {
|
| 3759 |
-
options = {
|
| 3760 |
-
queue: 'external'
|
| 3761 |
-
};
|
| 3762 |
-
}
|
| 3763 |
-
|
| 3764 |
-
var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.
|
| 3765 |
-
|
| 3766 |
-
if (plugins.indexOf(newPlugin) !== -1) {
|
| 3767 |
-
return;
|
| 3768 |
-
}
|
| 3769 |
-
|
| 3770 |
-
plugins.push(newPlugin);
|
| 3771 |
-
this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {
|
| 3772 |
-
for (var name in plugin) {
|
| 3773 |
-
if (name in registry) {
|
| 3774 |
-
registry[name].push(plugin[name]);
|
| 3775 |
-
} else {
|
| 3776 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown hook \"" + name + "\".") : void 0;
|
| 3777 |
-
}
|
| 3778 |
-
}
|
| 3779 |
-
|
| 3780 |
-
return registry;
|
| 3781 |
-
}, {
|
| 3782 |
-
onCreateRule: [],
|
| 3783 |
-
onProcessRule: [],
|
| 3784 |
-
onProcessStyle: [],
|
| 3785 |
-
onProcessSheet: [],
|
| 3786 |
-
onChangeValue: [],
|
| 3787 |
-
onUpdate: []
|
| 3788 |
-
});
|
| 3789 |
-
};
|
| 3790 |
-
|
| 3791 |
-
return PluginsRegistry;
|
| 3792 |
-
}();
|
| 3793 |
-
|
| 3794 |
-
/**
|
| 3795 |
-
* Sheets registry to access them all at one place.
|
| 3796 |
-
*/
|
| 3797 |
-
var SheetsRegistry =
|
| 3798 |
-
/*#__PURE__*/
|
| 3799 |
-
function () {
|
| 3800 |
-
function SheetsRegistry() {
|
| 3801 |
-
this.registry = [];
|
| 3802 |
-
}
|
| 3803 |
-
|
| 3804 |
-
var _proto = SheetsRegistry.prototype;
|
| 3805 |
-
|
| 3806 |
-
/**
|
| 3807 |
-
* Register a Style Sheet.
|
| 3808 |
-
*/
|
| 3809 |
-
_proto.add = function add(sheet) {
|
| 3810 |
-
var registry = this.registry;
|
| 3811 |
-
var index = sheet.options.index;
|
| 3812 |
-
if (registry.indexOf(sheet) !== -1) return;
|
| 3813 |
-
|
| 3814 |
-
if (registry.length === 0 || index >= this.index) {
|
| 3815 |
-
registry.push(sheet);
|
| 3816 |
-
return;
|
| 3817 |
-
} // Find a position.
|
| 3818 |
-
|
| 3819 |
-
|
| 3820 |
-
for (var i = 0; i < registry.length; i++) {
|
| 3821 |
-
if (registry[i].options.index > index) {
|
| 3822 |
-
registry.splice(i, 0, sheet);
|
| 3823 |
-
return;
|
| 3824 |
-
}
|
| 3825 |
-
}
|
| 3826 |
-
}
|
| 3827 |
-
/**
|
| 3828 |
-
* Reset the registry.
|
| 3829 |
-
*/
|
| 3830 |
-
;
|
| 3831 |
-
|
| 3832 |
-
_proto.reset = function reset() {
|
| 3833 |
-
this.registry = [];
|
| 3834 |
-
}
|
| 3835 |
-
/**
|
| 3836 |
-
* Remove a Style Sheet.
|
| 3837 |
-
*/
|
| 3838 |
-
;
|
| 3839 |
-
|
| 3840 |
-
_proto.remove = function remove(sheet) {
|
| 3841 |
-
var index = this.registry.indexOf(sheet);
|
| 3842 |
-
this.registry.splice(index, 1);
|
| 3843 |
-
}
|
| 3844 |
-
/**
|
| 3845 |
-
* Convert all attached sheets to a CSS string.
|
| 3846 |
-
*/
|
| 3847 |
-
;
|
| 3848 |
-
|
| 3849 |
-
_proto.toString = function toString(_temp) {
|
| 3850 |
-
var _ref = _temp === void 0 ? {} : _temp,
|
| 3851 |
-
attached = _ref.attached,
|
| 3852 |
-
options = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["attached"]);
|
| 3853 |
-
|
| 3854 |
-
var css = '';
|
| 3855 |
-
|
| 3856 |
-
for (var i = 0; i < this.registry.length; i++) {
|
| 3857 |
-
var sheet = this.registry[i];
|
| 3858 |
-
|
| 3859 |
-
if (attached != null && sheet.attached !== attached) {
|
| 3860 |
-
continue;
|
| 3861 |
-
}
|
| 3862 |
-
|
| 3863 |
-
if (css) css += '\n';
|
| 3864 |
-
css += sheet.toString(options);
|
| 3865 |
-
}
|
| 3866 |
-
|
| 3867 |
-
return css;
|
| 3868 |
-
};
|
| 3869 |
-
|
| 3870 |
-
Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsRegistry, [{
|
| 3871 |
-
key: "index",
|
| 3872 |
-
|
| 3873 |
-
/**
|
| 3874 |
-
* Current highest index number.
|
| 3875 |
-
*/
|
| 3876 |
-
get: function get() {
|
| 3877 |
-
return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
|
| 3878 |
-
}
|
| 3879 |
-
}]);
|
| 3880 |
-
|
| 3881 |
-
return SheetsRegistry;
|
| 3882 |
-
}();
|
| 3883 |
-
|
| 3884 |
-
/**
|
| 3885 |
-
* This is a global sheets registry. Only DomRenderer will add sheets to it.
|
| 3886 |
-
* On the server one should use an own SheetsRegistry instance and add the
|
| 3887 |
-
* sheets to it, because you need to make sure to create a new registry for
|
| 3888 |
-
* each request in order to not leak sheets across requests.
|
| 3889 |
-
*/
|
| 3890 |
-
|
| 3891 |
-
var sheets = new SheetsRegistry();
|
| 3892 |
-
|
| 3893 |
-
/* eslint-disable */
|
| 3894 |
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
| 3895 |
-
var globalThis = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
|
| 3896 |
-
|
| 3897 |
-
var ns = '2f1acc6c3a606b082e5eef5e54414ffb';
|
| 3898 |
-
if (globalThis[ns] == null) globalThis[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify
|
| 3899 |
-
// the current version with just one short number and use it for classes generation
|
| 3900 |
-
// we use a counter. Also it is more accurate, because user can manually reevaluate
|
| 3901 |
-
// the module.
|
| 3902 |
-
|
| 3903 |
-
var moduleId = globalThis[ns]++;
|
| 3904 |
-
|
| 3905 |
-
var maxRules = 1e10;
|
| 3906 |
-
|
| 3907 |
-
/**
|
| 3908 |
-
* Returns a function which generates unique class names based on counters.
|
| 3909 |
-
* When new generator function is created, rule counter is reseted.
|
| 3910 |
-
* We need to reset the rule counter for SSR for each request.
|
| 3911 |
-
*/
|
| 3912 |
-
var createGenerateId = function createGenerateId(options) {
|
| 3913 |
-
if (options === void 0) {
|
| 3914 |
-
options = {};
|
| 3915 |
-
}
|
| 3916 |
-
|
| 3917 |
-
var ruleCounter = 0;
|
| 3918 |
-
return function (rule, sheet) {
|
| 3919 |
-
ruleCounter += 1;
|
| 3920 |
-
|
| 3921 |
-
if (ruleCounter > maxRules) {
|
| 3922 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") : void 0;
|
| 3923 |
-
}
|
| 3924 |
-
|
| 3925 |
-
var jssId = '';
|
| 3926 |
-
var prefix = '';
|
| 3927 |
-
|
| 3928 |
-
if (sheet) {
|
| 3929 |
-
if (sheet.options.classNamePrefix) {
|
| 3930 |
-
prefix = sheet.options.classNamePrefix;
|
| 3931 |
-
}
|
| 3932 |
-
|
| 3933 |
-
if (sheet.options.jss.id != null) {
|
| 3934 |
-
jssId = String(sheet.options.jss.id);
|
| 3935 |
-
}
|
| 3936 |
-
}
|
| 3937 |
-
|
| 3938 |
-
if (options.minify) {
|
| 3939 |
-
// Using "c" because a number can't be the first char in a class name.
|
| 3940 |
-
return "" + (prefix || 'c') + moduleId + jssId + ruleCounter;
|
| 3941 |
-
}
|
| 3942 |
-
|
| 3943 |
-
return prefix + rule.key + "-" + moduleId + (jssId ? "-" + jssId : '') + "-" + ruleCounter;
|
| 3944 |
-
};
|
| 3945 |
-
};
|
| 3946 |
-
|
| 3947 |
-
/**
|
| 3948 |
-
* Cache the value from the first time a function is called.
|
| 3949 |
-
*/
|
| 3950 |
-
var memoize = function memoize(fn) {
|
| 3951 |
-
var value;
|
| 3952 |
-
return function () {
|
| 3953 |
-
if (!value) value = fn();
|
| 3954 |
-
return value;
|
| 3955 |
-
};
|
| 3956 |
-
};
|
| 3957 |
-
/**
|
| 3958 |
-
* Get a style property value.
|
| 3959 |
-
*/
|
| 3960 |
-
|
| 3961 |
-
|
| 3962 |
-
function getPropertyValue(cssRule, prop) {
|
| 3963 |
-
try {
|
| 3964 |
-
// Support CSSTOM.
|
| 3965 |
-
if (cssRule.attributeStyleMap) {
|
| 3966 |
-
return cssRule.attributeStyleMap.get(prop);
|
| 3967 |
-
}
|
| 3968 |
-
|
| 3969 |
-
return cssRule.style.getPropertyValue(prop);
|
| 3970 |
-
} catch (err) {
|
| 3971 |
-
// IE may throw if property is unknown.
|
| 3972 |
-
return '';
|
| 3973 |
-
}
|
| 3974 |
-
}
|
| 3975 |
-
/**
|
| 3976 |
-
* Set a style property.
|
| 3977 |
-
*/
|
| 3978 |
-
|
| 3979 |
-
|
| 3980 |
-
function setProperty(cssRule, prop, value) {
|
| 3981 |
-
try {
|
| 3982 |
-
var cssValue = value;
|
| 3983 |
-
|
| 3984 |
-
if (Array.isArray(value)) {
|
| 3985 |
-
cssValue = toCssValue(value, true);
|
| 3986 |
-
|
| 3987 |
-
if (value[value.length - 1] === '!important') {
|
| 3988 |
-
cssRule.style.setProperty(prop, cssValue, 'important');
|
| 3989 |
-
return true;
|
| 3990 |
-
}
|
| 3991 |
-
} // Support CSSTOM.
|
| 3992 |
-
|
| 3993 |
-
|
| 3994 |
-
if (cssRule.attributeStyleMap) {
|
| 3995 |
-
cssRule.attributeStyleMap.set(prop, cssValue);
|
| 3996 |
-
} else {
|
| 3997 |
-
cssRule.style.setProperty(prop, cssValue);
|
| 3998 |
-
}
|
| 3999 |
-
} catch (err) {
|
| 4000 |
-
// IE may throw if property is unknown.
|
| 4001 |
-
return false;
|
| 4002 |
-
}
|
| 4003 |
-
|
| 4004 |
-
return true;
|
| 4005 |
-
}
|
| 4006 |
-
/**
|
| 4007 |
-
* Remove a style property.
|
| 4008 |
-
*/
|
| 4009 |
-
|
| 4010 |
-
|
| 4011 |
-
function removeProperty(cssRule, prop) {
|
| 4012 |
-
try {
|
| 4013 |
-
// Support CSSTOM.
|
| 4014 |
-
if (cssRule.attributeStyleMap) {
|
| 4015 |
-
cssRule.attributeStyleMap.delete(prop);
|
| 4016 |
-
} else {
|
| 4017 |
-
cssRule.style.removeProperty(prop);
|
| 4018 |
-
}
|
| 4019 |
-
} catch (err) {
|
| 4020 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] DOMException \"" + err.message + "\" was thrown. Tried to remove property \"" + prop + "\".") : void 0;
|
| 4021 |
-
}
|
| 4022 |
-
}
|
| 4023 |
-
/**
|
| 4024 |
-
* Set the selector.
|
| 4025 |
-
*/
|
| 4026 |
-
|
| 4027 |
-
|
| 4028 |
-
function setSelector(cssRule, selectorText) {
|
| 4029 |
-
cssRule.selectorText = selectorText; // Return false if setter was not successful.
|
| 4030 |
-
// Currently works in chrome only.
|
| 4031 |
-
|
| 4032 |
-
return cssRule.selectorText === selectorText;
|
| 4033 |
-
}
|
| 4034 |
-
/**
|
| 4035 |
-
* Gets the `head` element upon the first call and caches it.
|
| 4036 |
-
* We assume it can't be null.
|
| 4037 |
-
*/
|
| 4038 |
-
|
| 4039 |
-
|
| 4040 |
-
var getHead = memoize(function () {
|
| 4041 |
-
return document.querySelector('head');
|
| 4042 |
-
});
|
| 4043 |
-
/**
|
| 4044 |
-
* Find attached sheet with an index higher than the passed one.
|
| 4045 |
-
*/
|
| 4046 |
-
|
| 4047 |
-
function findHigherSheet(registry, options) {
|
| 4048 |
-
for (var i = 0; i < registry.length; i++) {
|
| 4049 |
-
var sheet = registry[i];
|
| 4050 |
-
|
| 4051 |
-
if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {
|
| 4052 |
-
return sheet;
|
| 4053 |
-
}
|
| 4054 |
-
}
|
| 4055 |
-
|
| 4056 |
-
return null;
|
| 4057 |
-
}
|
| 4058 |
-
/**
|
| 4059 |
-
* Find attached sheet with the highest index.
|
| 4060 |
-
*/
|
| 4061 |
-
|
| 4062 |
-
|
| 4063 |
-
function findHighestSheet(registry, options) {
|
| 4064 |
-
for (var i = registry.length - 1; i >= 0; i--) {
|
| 4065 |
-
var sheet = registry[i];
|
| 4066 |
-
|
| 4067 |
-
if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {
|
| 4068 |
-
return sheet;
|
| 4069 |
-
}
|
| 4070 |
-
}
|
| 4071 |
-
|
| 4072 |
-
return null;
|
| 4073 |
-
}
|
| 4074 |
-
/**
|
| 4075 |
-
* Find a comment with "jss" inside.
|
| 4076 |
-
*/
|
| 4077 |
-
|
| 4078 |
-
|
| 4079 |
-
function findCommentNode(text) {
|
| 4080 |
-
var head = getHead();
|
| 4081 |
-
|
| 4082 |
-
for (var i = 0; i < head.childNodes.length; i++) {
|
| 4083 |
-
var node = head.childNodes[i];
|
| 4084 |
-
|
| 4085 |
-
if (node.nodeType === 8 && node.nodeValue.trim() === text) {
|
| 4086 |
-
return node;
|
| 4087 |
-
}
|
| 4088 |
-
}
|
| 4089 |
-
|
| 4090 |
-
return null;
|
| 4091 |
-
}
|
| 4092 |
-
|
| 4093 |
-
/**
|
| 4094 |
-
* Find a node before which we can insert the sheet.
|
| 4095 |
-
*/
|
| 4096 |
-
function findPrevNode(options) {
|
| 4097 |
-
var registry = sheets.registry;
|
| 4098 |
-
|
| 4099 |
-
if (registry.length > 0) {
|
| 4100 |
-
// Try to insert before the next higher sheet.
|
| 4101 |
-
var sheet = findHigherSheet(registry, options);
|
| 4102 |
-
|
| 4103 |
-
if (sheet && sheet.renderer) {
|
| 4104 |
-
return {
|
| 4105 |
-
parent: sheet.renderer.element.parentNode,
|
| 4106 |
-
node: sheet.renderer.element
|
| 4107 |
-
};
|
| 4108 |
-
} // Otherwise insert after the last attached.
|
| 4109 |
-
|
| 4110 |
-
|
| 4111 |
-
sheet = findHighestSheet(registry, options);
|
| 4112 |
-
|
| 4113 |
-
if (sheet && sheet.renderer) {
|
| 4114 |
-
return {
|
| 4115 |
-
parent: sheet.renderer.element.parentNode,
|
| 4116 |
-
node: sheet.renderer.element.nextSibling
|
| 4117 |
-
};
|
| 4118 |
-
}
|
| 4119 |
-
} // Try to find a comment placeholder if registry is empty.
|
| 4120 |
-
|
| 4121 |
-
|
| 4122 |
-
var insertionPoint = options.insertionPoint;
|
| 4123 |
-
|
| 4124 |
-
if (insertionPoint && typeof insertionPoint === 'string') {
|
| 4125 |
-
var comment = findCommentNode(insertionPoint);
|
| 4126 |
-
|
| 4127 |
-
if (comment) {
|
| 4128 |
-
return {
|
| 4129 |
-
parent: comment.parentNode,
|
| 4130 |
-
node: comment.nextSibling
|
| 4131 |
-
};
|
| 4132 |
-
} // If user specifies an insertion point and it can't be found in the document -
|
| 4133 |
-
// bad specificity issues may appear.
|
| 4134 |
-
|
| 4135 |
-
|
| 4136 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.") : void 0;
|
| 4137 |
-
}
|
| 4138 |
-
|
| 4139 |
-
return false;
|
| 4140 |
-
}
|
| 4141 |
-
/**
|
| 4142 |
-
* Insert style element into the DOM.
|
| 4143 |
-
*/
|
| 4144 |
-
|
| 4145 |
-
|
| 4146 |
-
function insertStyle(style, options) {
|
| 4147 |
-
var insertionPoint = options.insertionPoint;
|
| 4148 |
-
var nextNode = findPrevNode(options);
|
| 4149 |
-
|
| 4150 |
-
if (nextNode !== false && nextNode.parent) {
|
| 4151 |
-
nextNode.parent.insertBefore(style, nextNode.node);
|
| 4152 |
-
return;
|
| 4153 |
-
} // Works with iframes and any node types.
|
| 4154 |
-
|
| 4155 |
-
|
| 4156 |
-
if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
|
| 4157 |
-
// https://stackoverflow.com/questions/41328728/force-casting-in-flow
|
| 4158 |
-
var insertionPointElement = insertionPoint;
|
| 4159 |
-
var parentNode = insertionPointElement.parentNode;
|
| 4160 |
-
if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, '[JSS] Insertion point is not in the DOM.') : void 0;
|
| 4161 |
-
return;
|
| 4162 |
-
}
|
| 4163 |
-
|
| 4164 |
-
getHead().appendChild(style);
|
| 4165 |
-
}
|
| 4166 |
-
/**
|
| 4167 |
-
* Read jss nonce setting from the page if the user has set it.
|
| 4168 |
-
*/
|
| 4169 |
-
|
| 4170 |
-
|
| 4171 |
-
var getNonce = memoize(function () {
|
| 4172 |
-
var node = document.querySelector('meta[property="csp-nonce"]');
|
| 4173 |
-
return node ? node.getAttribute('content') : null;
|
| 4174 |
-
});
|
| 4175 |
-
|
| 4176 |
-
var _insertRule = function insertRule(container, rule, index) {
|
| 4177 |
-
var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong
|
| 4178 |
-
|
| 4179 |
-
if (index === undefined || index > maxIndex) {
|
| 4180 |
-
// eslint-disable-next-line no-param-reassign
|
| 4181 |
-
index = maxIndex;
|
| 4182 |
-
}
|
| 4183 |
-
|
| 4184 |
-
try {
|
| 4185 |
-
if ('insertRule' in container) {
|
| 4186 |
-
var c = container;
|
| 4187 |
-
c.insertRule(rule, index);
|
| 4188 |
-
} // Keyframes rule.
|
| 4189 |
-
else if ('appendRule' in container) {
|
| 4190 |
-
var _c = container;
|
| 4191 |
-
|
| 4192 |
-
_c.appendRule(rule);
|
| 4193 |
-
}
|
| 4194 |
-
} catch (err) {
|
| 4195 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] " + err.message) : void 0;
|
| 4196 |
-
return false;
|
| 4197 |
-
}
|
| 4198 |
-
|
| 4199 |
-
return container.cssRules[index];
|
| 4200 |
-
};
|
| 4201 |
-
|
| 4202 |
-
var createStyle = function createStyle() {
|
| 4203 |
-
var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we
|
| 4204 |
-
// insert rules after we insert the style tag.
|
| 4205 |
-
// It seems to kick-off the source order specificity algorithm.
|
| 4206 |
-
|
| 4207 |
-
el.textContent = '\n';
|
| 4208 |
-
return el;
|
| 4209 |
-
};
|
| 4210 |
-
|
| 4211 |
-
var DomRenderer =
|
| 4212 |
-
/*#__PURE__*/
|
| 4213 |
-
function () {
|
| 4214 |
-
// HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696
|
| 4215 |
-
function DomRenderer(sheet) {
|
| 4216 |
-
this.getPropertyValue = getPropertyValue;
|
| 4217 |
-
this.setProperty = setProperty;
|
| 4218 |
-
this.removeProperty = removeProperty;
|
| 4219 |
-
this.setSelector = setSelector;
|
| 4220 |
-
this.element = void 0;
|
| 4221 |
-
this.sheet = void 0;
|
| 4222 |
-
this.hasInsertedRules = false;
|
| 4223 |
-
// There is no sheet when the renderer is used from a standalone StyleRule.
|
| 4224 |
-
if (sheet) sheets.add(sheet);
|
| 4225 |
-
this.sheet = sheet;
|
| 4226 |
-
|
| 4227 |
-
var _ref = this.sheet ? this.sheet.options : {},
|
| 4228 |
-
media = _ref.media,
|
| 4229 |
-
meta = _ref.meta,
|
| 4230 |
-
element = _ref.element;
|
| 4231 |
-
|
| 4232 |
-
this.element = element || createStyle();
|
| 4233 |
-
this.element.setAttribute('data-jss', '');
|
| 4234 |
-
if (media) this.element.setAttribute('media', media);
|
| 4235 |
-
if (meta) this.element.setAttribute('data-meta', meta);
|
| 4236 |
-
var nonce = getNonce();
|
| 4237 |
-
if (nonce) this.element.setAttribute('nonce', nonce);
|
| 4238 |
-
}
|
| 4239 |
-
/**
|
| 4240 |
-
* Insert style element into render tree.
|
| 4241 |
-
*/
|
| 4242 |
-
|
| 4243 |
-
|
| 4244 |
-
var _proto = DomRenderer.prototype;
|
| 4245 |
-
|
| 4246 |
-
_proto.attach = function attach() {
|
| 4247 |
-
// In the case the element node is external and it is already in the DOM.
|
| 4248 |
-
if (this.element.parentNode || !this.sheet) return;
|
| 4249 |
-
insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`
|
| 4250 |
-
// most browsers create a new CSSStyleSheet, except of all IEs.
|
| 4251 |
-
|
| 4252 |
-
var deployed = Boolean(this.sheet && this.sheet.deployed);
|
| 4253 |
-
|
| 4254 |
-
if (this.hasInsertedRules && deployed) {
|
| 4255 |
-
this.hasInsertedRules = false;
|
| 4256 |
-
this.deploy();
|
| 4257 |
-
}
|
| 4258 |
-
}
|
| 4259 |
-
/**
|
| 4260 |
-
* Remove style element from render tree.
|
| 4261 |
-
*/
|
| 4262 |
-
;
|
| 4263 |
-
|
| 4264 |
-
_proto.detach = function detach() {
|
| 4265 |
-
var parentNode = this.element.parentNode;
|
| 4266 |
-
if (parentNode) parentNode.removeChild(this.element);
|
| 4267 |
-
}
|
| 4268 |
-
/**
|
| 4269 |
-
* Inject CSS string into element.
|
| 4270 |
-
*/
|
| 4271 |
-
;
|
| 4272 |
-
|
| 4273 |
-
_proto.deploy = function deploy() {
|
| 4274 |
-
var sheet = this.sheet;
|
| 4275 |
-
if (!sheet) return;
|
| 4276 |
-
|
| 4277 |
-
if (sheet.options.link) {
|
| 4278 |
-
this.insertRules(sheet.rules);
|
| 4279 |
-
return;
|
| 4280 |
-
}
|
| 4281 |
-
|
| 4282 |
-
this.element.textContent = "\n" + sheet.toString() + "\n";
|
| 4283 |
-
}
|
| 4284 |
-
/**
|
| 4285 |
-
* Insert RuleList into an element.
|
| 4286 |
-
*/
|
| 4287 |
-
;
|
| 4288 |
-
|
| 4289 |
-
_proto.insertRules = function insertRules(rules, nativeParent) {
|
| 4290 |
-
for (var i = 0; i < rules.index.length; i++) {
|
| 4291 |
-
this.insertRule(rules.index[i], i, nativeParent);
|
| 4292 |
-
}
|
| 4293 |
-
}
|
| 4294 |
-
/**
|
| 4295 |
-
* Insert a rule into element.
|
| 4296 |
-
*/
|
| 4297 |
-
;
|
| 4298 |
-
|
| 4299 |
-
_proto.insertRule = function insertRule(rule, index, nativeParent) {
|
| 4300 |
-
if (nativeParent === void 0) {
|
| 4301 |
-
nativeParent = this.element.sheet;
|
| 4302 |
-
}
|
| 4303 |
-
|
| 4304 |
-
if (rule.rules) {
|
| 4305 |
-
var parent = rule;
|
| 4306 |
-
var latestNativeParent = nativeParent;
|
| 4307 |
-
|
| 4308 |
-
if (rule.type === 'conditional' || rule.type === 'keyframes') {
|
| 4309 |
-
// We need to render the container without children first.
|
| 4310 |
-
latestNativeParent = _insertRule(nativeParent, parent.toString({
|
| 4311 |
-
children: false
|
| 4312 |
-
}), index);
|
| 4313 |
-
|
| 4314 |
-
if (latestNativeParent === false) {
|
| 4315 |
-
return false;
|
| 4316 |
-
}
|
| 4317 |
-
}
|
| 4318 |
-
|
| 4319 |
-
this.insertRules(parent.rules, latestNativeParent);
|
| 4320 |
-
return latestNativeParent;
|
| 4321 |
-
} // IE keeps the CSSStyleSheet after style node has been reattached,
|
| 4322 |
-
// so we need to check if the `renderable` reference the right style sheet and not
|
| 4323 |
-
// rerender those rules.
|
| 4324 |
-
|
| 4325 |
-
|
| 4326 |
-
if (rule.renderable && rule.renderable.parentStyleSheet === this.element.sheet) {
|
| 4327 |
-
return rule.renderable;
|
| 4328 |
-
}
|
| 4329 |
-
|
| 4330 |
-
var ruleStr = rule.toString();
|
| 4331 |
-
if (!ruleStr) return false;
|
| 4332 |
-
|
| 4333 |
-
var nativeRule = _insertRule(nativeParent, ruleStr, index);
|
| 4334 |
-
|
| 4335 |
-
if (nativeRule === false) {
|
| 4336 |
-
return false;
|
| 4337 |
-
}
|
| 4338 |
-
|
| 4339 |
-
this.hasInsertedRules = true;
|
| 4340 |
-
rule.renderable = nativeRule;
|
| 4341 |
-
return nativeRule;
|
| 4342 |
-
}
|
| 4343 |
-
/**
|
| 4344 |
-
* Delete a rule.
|
| 4345 |
-
*/
|
| 4346 |
-
;
|
| 4347 |
-
|
| 4348 |
-
_proto.deleteRule = function deleteRule(cssRule) {
|
| 4349 |
-
var sheet = this.element.sheet;
|
| 4350 |
-
var index = this.indexOf(cssRule);
|
| 4351 |
-
if (index === -1) return false;
|
| 4352 |
-
sheet.deleteRule(index);
|
| 4353 |
-
return true;
|
| 4354 |
-
}
|
| 4355 |
-
/**
|
| 4356 |
-
* Get index of a CSS Rule.
|
| 4357 |
-
*/
|
| 4358 |
-
;
|
| 4359 |
-
|
| 4360 |
-
_proto.indexOf = function indexOf(cssRule) {
|
| 4361 |
-
var cssRules = this.element.sheet.cssRules;
|
| 4362 |
-
|
| 4363 |
-
for (var index = 0; index < cssRules.length; index++) {
|
| 4364 |
-
if (cssRule === cssRules[index]) return index;
|
| 4365 |
-
}
|
| 4366 |
-
|
| 4367 |
-
return -1;
|
| 4368 |
-
}
|
| 4369 |
-
/**
|
| 4370 |
-
* Generate a new CSS rule and replace the existing one.
|
| 4371 |
-
*
|
| 4372 |
-
* Only used for some old browsers because they can't set a selector.
|
| 4373 |
-
*/
|
| 4374 |
-
;
|
| 4375 |
-
|
| 4376 |
-
_proto.replaceRule = function replaceRule(cssRule, rule) {
|
| 4377 |
-
var index = this.indexOf(cssRule);
|
| 4378 |
-
if (index === -1) return false;
|
| 4379 |
-
this.element.sheet.deleteRule(index);
|
| 4380 |
-
return this.insertRule(rule, index);
|
| 4381 |
-
}
|
| 4382 |
-
/**
|
| 4383 |
-
* Get all rules elements.
|
| 4384 |
-
*/
|
| 4385 |
-
;
|
| 4386 |
-
|
| 4387 |
-
_proto.getRules = function getRules() {
|
| 4388 |
-
return this.element.sheet.cssRules;
|
| 4389 |
-
};
|
| 4390 |
-
|
| 4391 |
-
return DomRenderer;
|
| 4392 |
-
}();
|
| 4393 |
-
|
| 4394 |
-
var instanceCounter = 0;
|
| 4395 |
-
|
| 4396 |
-
var Jss =
|
| 4397 |
-
/*#__PURE__*/
|
| 4398 |
-
function () {
|
| 4399 |
-
function Jss(options) {
|
| 4400 |
-
this.id = instanceCounter++;
|
| 4401 |
-
this.version = "10.3.0";
|
| 4402 |
-
this.plugins = new PluginsRegistry();
|
| 4403 |
-
this.options = {
|
| 4404 |
-
id: {
|
| 4405 |
-
minify: false
|
| 4406 |
-
},
|
| 4407 |
-
createGenerateId: createGenerateId,
|
| 4408 |
-
Renderer: __WEBPACK_IMPORTED_MODULE_1_is_in_browser__["a" /* default */] ? DomRenderer : null,
|
| 4409 |
-
plugins: []
|
| 4410 |
-
};
|
| 4411 |
-
this.generateId = createGenerateId({
|
| 4412 |
-
minify: false
|
| 4413 |
-
});
|
| 4414 |
-
|
| 4415 |
-
for (var i = 0; i < plugins.length; i++) {
|
| 4416 |
-
this.plugins.use(plugins[i], {
|
| 4417 |
-
queue: 'internal'
|
| 4418 |
-
});
|
| 4419 |
-
}
|
| 4420 |
-
|
| 4421 |
-
this.setup(options);
|
| 4422 |
-
}
|
| 4423 |
-
/**
|
| 4424 |
-
* Prepares various options, applies plugins.
|
| 4425 |
-
* Should not be used twice on the same instance, because there is no plugins
|
| 4426 |
-
* deduplication logic.
|
| 4427 |
-
*/
|
| 4428 |
-
|
| 4429 |
-
|
| 4430 |
-
var _proto = Jss.prototype;
|
| 4431 |
-
|
| 4432 |
-
_proto.setup = function setup(options) {
|
| 4433 |
-
if (options === void 0) {
|
| 4434 |
-
options = {};
|
| 4435 |
-
}
|
| 4436 |
-
|
| 4437 |
-
if (options.createGenerateId) {
|
| 4438 |
-
this.options.createGenerateId = options.createGenerateId;
|
| 4439 |
-
}
|
| 4440 |
-
|
| 4441 |
-
if (options.id) {
|
| 4442 |
-
this.options.id = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, this.options.id, options.id);
|
| 4443 |
-
}
|
| 4444 |
-
|
| 4445 |
-
if (options.createGenerateId || options.id) {
|
| 4446 |
-
this.generateId = this.options.createGenerateId(this.options.id);
|
| 4447 |
-
}
|
| 4448 |
-
|
| 4449 |
-
if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;
|
| 4450 |
-
|
| 4451 |
-
if ('Renderer' in options) {
|
| 4452 |
-
this.options.Renderer = options.Renderer;
|
| 4453 |
-
} // eslint-disable-next-line prefer-spread
|
| 4454 |
-
|
| 4455 |
-
|
| 4456 |
-
if (options.plugins) this.use.apply(this, options.plugins);
|
| 4457 |
-
return this;
|
| 4458 |
-
}
|
| 4459 |
-
/**
|
| 4460 |
-
* Create a Style Sheet.
|
| 4461 |
-
*/
|
| 4462 |
-
;
|
| 4463 |
-
|
| 4464 |
-
_proto.createStyleSheet = function createStyleSheet(styles, options) {
|
| 4465 |
-
if (options === void 0) {
|
| 4466 |
-
options = {};
|
| 4467 |
-
}
|
| 4468 |
-
|
| 4469 |
-
var _options = options,
|
| 4470 |
-
index = _options.index;
|
| 4471 |
-
|
| 4472 |
-
if (typeof index !== 'number') {
|
| 4473 |
-
index = sheets.index === 0 ? 0 : sheets.index + 1;
|
| 4474 |
-
}
|
| 4475 |
-
|
| 4476 |
-
var sheet = new StyleSheet(styles, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
|
| 4477 |
-
jss: this,
|
| 4478 |
-
generateId: options.generateId || this.generateId,
|
| 4479 |
-
insertionPoint: this.options.insertionPoint,
|
| 4480 |
-
Renderer: this.options.Renderer,
|
| 4481 |
-
index: index
|
| 4482 |
-
}));
|
| 4483 |
-
this.plugins.onProcessSheet(sheet);
|
| 4484 |
-
return sheet;
|
| 4485 |
-
}
|
| 4486 |
-
/**
|
| 4487 |
-
* Detach the Style Sheet and remove it from the registry.
|
| 4488 |
-
*/
|
| 4489 |
-
;
|
| 4490 |
-
|
| 4491 |
-
_proto.removeStyleSheet = function removeStyleSheet(sheet) {
|
| 4492 |
-
sheet.detach();
|
| 4493 |
-
sheets.remove(sheet);
|
| 4494 |
-
return this;
|
| 4495 |
-
}
|
| 4496 |
-
/**
|
| 4497 |
-
* Create a rule without a Style Sheet.
|
| 4498 |
-
* [Deprecated] will be removed in the next major version.
|
| 4499 |
-
*/
|
| 4500 |
-
;
|
| 4501 |
-
|
| 4502 |
-
_proto.createRule = function createRule$1(name, style, options) {
|
| 4503 |
-
if (style === void 0) {
|
| 4504 |
-
style = {};
|
| 4505 |
-
}
|
| 4506 |
-
|
| 4507 |
-
if (options === void 0) {
|
| 4508 |
-
options = {};
|
| 4509 |
-
}
|
| 4510 |
-
|
| 4511 |
-
// Enable rule without name for inline styles.
|
| 4512 |
-
if (typeof name === 'object') {
|
| 4513 |
-
return this.createRule(undefined, name, style);
|
| 4514 |
-
}
|
| 4515 |
-
|
| 4516 |
-
var ruleOptions = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
|
| 4517 |
-
name: name,
|
| 4518 |
-
jss: this,
|
| 4519 |
-
Renderer: this.options.Renderer
|
| 4520 |
-
});
|
| 4521 |
-
|
| 4522 |
-
if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;
|
| 4523 |
-
if (!ruleOptions.classes) ruleOptions.classes = {};
|
| 4524 |
-
if (!ruleOptions.keyframes) ruleOptions.keyframes = {};
|
| 4525 |
-
|
| 4526 |
-
var rule = createRule(name, style, ruleOptions);
|
| 4527 |
-
|
| 4528 |
-
if (rule) this.plugins.onProcessRule(rule);
|
| 4529 |
-
return rule;
|
| 4530 |
-
}
|
| 4531 |
-
/**
|
| 4532 |
-
* Register plugin. Passed function will be invoked with a rule instance.
|
| 4533 |
-
*/
|
| 4534 |
-
;
|
| 4535 |
-
|
| 4536 |
-
_proto.use = function use() {
|
| 4537 |
-
var _this = this;
|
| 4538 |
-
|
| 4539 |
-
for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 4540 |
-
plugins[_key] = arguments[_key];
|
| 4541 |
-
}
|
| 4542 |
-
|
| 4543 |
-
plugins.forEach(function (plugin) {
|
| 4544 |
-
_this.plugins.use(plugin);
|
| 4545 |
-
});
|
| 4546 |
-
return this;
|
| 4547 |
-
};
|
| 4548 |
-
|
| 4549 |
-
return Jss;
|
| 4550 |
-
}();
|
| 4551 |
-
|
| 4552 |
-
/**
|
| 4553 |
-
* Extracts a styles object with only props that contain function values.
|
| 4554 |
-
*/
|
| 4555 |
-
function getDynamicStyles(styles) {
|
| 4556 |
-
var to = null;
|
| 4557 |
-
|
| 4558 |
-
for (var key in styles) {
|
| 4559 |
-
var value = styles[key];
|
| 4560 |
-
var type = typeof value;
|
| 4561 |
-
|
| 4562 |
-
if (type === 'function') {
|
| 4563 |
-
if (!to) to = {};
|
| 4564 |
-
to[key] = value;
|
| 4565 |
-
} else if (type === 'object' && value !== null && !Array.isArray(value)) {
|
| 4566 |
-
var extracted = getDynamicStyles(value);
|
| 4567 |
-
|
| 4568 |
-
if (extracted) {
|
| 4569 |
-
if (!to) to = {};
|
| 4570 |
-
to[key] = extracted;
|
| 4571 |
-
}
|
| 4572 |
-
}
|
| 4573 |
-
}
|
| 4574 |
-
|
| 4575 |
-
return to;
|
| 4576 |
-
}
|
| 4577 |
-
|
| 4578 |
-
/**
|
| 4579 |
-
* SheetsManager is like a WeakMap which is designed to count StyleSheet
|
| 4580 |
-
* instances and attach/detach automatically.
|
| 4581 |
-
*/
|
| 4582 |
-
var SheetsManager =
|
| 4583 |
-
/*#__PURE__*/
|
| 4584 |
-
function () {
|
| 4585 |
-
function SheetsManager() {
|
| 4586 |
-
this.length = 0;
|
| 4587 |
-
this.sheets = new WeakMap();
|
| 4588 |
-
}
|
| 4589 |
-
|
| 4590 |
-
var _proto = SheetsManager.prototype;
|
| 4591 |
-
|
| 4592 |
-
_proto.get = function get(key) {
|
| 4593 |
-
var entry = this.sheets.get(key);
|
| 4594 |
-
return entry && entry.sheet;
|
| 4595 |
-
};
|
| 4596 |
-
|
| 4597 |
-
_proto.add = function add(key, sheet) {
|
| 4598 |
-
if (this.sheets.has(key)) return;
|
| 4599 |
-
this.length++;
|
| 4600 |
-
this.sheets.set(key, {
|
| 4601 |
-
sheet: sheet,
|
| 4602 |
-
refs: 0
|
| 4603 |
-
});
|
| 4604 |
-
};
|
| 4605 |
-
|
| 4606 |
-
_proto.manage = function manage(key) {
|
| 4607 |
-
var entry = this.sheets.get(key);
|
| 4608 |
-
|
| 4609 |
-
if (entry) {
|
| 4610 |
-
if (entry.refs === 0) {
|
| 4611 |
-
entry.sheet.attach();
|
| 4612 |
-
}
|
| 4613 |
-
|
| 4614 |
-
entry.refs++;
|
| 4615 |
-
return entry.sheet;
|
| 4616 |
-
}
|
| 4617 |
-
|
| 4618 |
-
Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] SheetsManager: can't find sheet to manage");
|
| 4619 |
-
return undefined;
|
| 4620 |
-
};
|
| 4621 |
-
|
| 4622 |
-
_proto.unmanage = function unmanage(key) {
|
| 4623 |
-
var entry = this.sheets.get(key);
|
| 4624 |
-
|
| 4625 |
-
if (entry) {
|
| 4626 |
-
if (entry.refs > 0) {
|
| 4627 |
-
entry.refs--;
|
| 4628 |
-
if (entry.refs === 0) entry.sheet.detach();
|
| 4629 |
-
}
|
| 4630 |
-
} else {
|
| 4631 |
-
Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "SheetsManager: can't find sheet to unmanage");
|
| 4632 |
-
}
|
| 4633 |
-
};
|
| 4634 |
-
|
| 4635 |
-
Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsManager, [{
|
| 4636 |
-
key: "size",
|
| 4637 |
-
get: function get() {
|
| 4638 |
-
return this.length;
|
| 4639 |
-
}
|
| 4640 |
-
}]);
|
| 4641 |
-
|
| 4642 |
-
return SheetsManager;
|
| 4643 |
-
}();
|
| 4644 |
-
|
| 4645 |
-
/**
|
| 4646 |
-
* A better abstraction over CSS.
|
| 4647 |
-
*
|
| 4648 |
-
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
| 4649 |
-
* @website https://github.com/cssinjs/jss
|
| 4650 |
-
* @license MIT
|
| 4651 |
-
*/
|
| 4652 |
-
|
| 4653 |
-
/**
|
| 4654 |
-
* Export a constant indicating if this browser has CSSTOM support.
|
| 4655 |
-
* https://developers.google.com/web/updates/2018/03/cssom
|
| 4656 |
-
*/
|
| 4657 |
-
var hasCSSTOMSupport = typeof CSS !== 'undefined' && CSS && 'number' in CSS;
|
| 4658 |
-
/**
|
| 4659 |
-
* Creates a new instance of Jss.
|
| 4660 |
-
*/
|
| 4661 |
-
|
| 4662 |
-
var create = function create(options) {
|
| 4663 |
-
return new Jss(options);
|
| 4664 |
-
};
|
| 4665 |
-
/**
|
| 4666 |
-
* A global Jss instance.
|
| 4667 |
-
*/
|
| 4668 |
-
|
| 4669 |
-
var index = create();
|
| 4670 |
-
|
| 4671 |
-
/* unused harmony default export */ var _unused_webpack_default_export = (index);
|
| 4672 |
-
|
| 4673 |
-
|
| 4674 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 4675 |
-
|
| 4676 |
-
/***/ }),
|
| 4677 |
-
/* 47 */
|
| 4678 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 4679 |
-
|
| 4680 |
-
"use strict";
|
| 4681 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = debounce;
|
| 4682 |
-
// Corresponds to 10 frames at 60 Hz.
|
| 4683 |
-
// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.
|
| 4684 |
-
function debounce(func) {
|
| 4685 |
-
var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;
|
| 4686 |
-
var timeout;
|
| 4687 |
-
|
| 4688 |
-
function debounced() {
|
| 4689 |
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 4690 |
-
args[_key] = arguments[_key];
|
| 4691 |
-
}
|
| 4692 |
-
|
| 4693 |
-
// eslint-disable-next-line consistent-this
|
| 4694 |
-
var that = this;
|
| 4695 |
-
|
| 4696 |
-
var later = function later() {
|
| 4697 |
-
func.apply(that, args);
|
| 4698 |
-
};
|
| 4699 |
-
|
| 4700 |
-
clearTimeout(timeout);
|
| 4701 |
-
timeout = setTimeout(later, wait);
|
| 4702 |
-
}
|
| 4703 |
-
|
| 4704 |
-
debounced.clear = function () {
|
| 4705 |
-
clearTimeout(timeout);
|
| 4706 |
-
};
|
| 4707 |
-
|
| 4708 |
-
return debounced;
|
| 4709 |
-
}
|
| 4710 |
-
|
| 4711 |
-
/***/ }),
|
| 4712 |
-
/* 48 */
|
| 4713 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 4714 |
-
|
| 4715 |
-
"use strict";
|
| 4716 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = setRef;
|
| 4717 |
-
// TODO v5: consider to make it private
|
| 4718 |
-
function setRef(ref, value) {
|
| 4719 |
-
if (typeof ref === 'function') {
|
| 4720 |
-
ref(value);
|
| 4721 |
-
} else if (ref) {
|
| 4722 |
-
ref.current = value;
|
| 4723 |
-
}
|
| 4724 |
-
}
|
| 4725 |
-
|
| 4726 |
-
/***/ }),
|
| 4727 |
-
/* 49 */
|
| 4728 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 4729 |
-
|
| 4730 |
-
"use strict";
|
| 4731 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = useFormControl;
|
| 4732 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 4733 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 4734 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FormControlContext__ = __webpack_require__(91);
|
| 4735 |
-
|
| 4736 |
-
|
| 4737 |
-
function useFormControl() {
|
| 4738 |
-
return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](__WEBPACK_IMPORTED_MODULE_1__FormControlContext__["a" /* default */]);
|
| 4739 |
-
}
|
| 4740 |
-
|
| 4741 |
-
/***/ }),
|
| 4742 |
-
/* 50 */
|
| 4743 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 4744 |
-
|
| 4745 |
-
var Symbol = __webpack_require__(73),
|
| 4746 |
-
getRawTag = __webpack_require__(727),
|
| 4747 |
-
objectToString = __webpack_require__(728);
|
| 4748 |
-
|
| 4749 |
-
/** `Object#toString` result references. */
|
| 4750 |
-
var nullTag = '[object Null]',
|
| 4751 |
-
undefinedTag = '[object Undefined]';
|
| 4752 |
-
|
| 4753 |
-
/** Built-in value references. */
|
| 4754 |
-
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
| 4755 |
-
|
| 4756 |
-
/**
|
| 4757 |
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
| 4758 |
-
*
|
| 4759 |
-
* @private
|
| 4760 |
-
* @param {*} value The value to query.
|
| 4761 |
-
* @returns {string} Returns the `toStringTag`.
|
| 4762 |
-
*/
|
| 4763 |
-
function baseGetTag(value) {
|
| 4764 |
-
if (value == null) {
|
| 4765 |
-
return value === undefined ? undefinedTag : nullTag;
|
| 4766 |
-
}
|
| 4767 |
-
return (symToStringTag && symToStringTag in Object(value))
|
| 4768 |
-
? getRawTag(value)
|
| 4769 |
-
: objectToString(value);
|
| 4770 |
-
}
|
| 4771 |
-
|
| 4772 |
-
module.exports = baseGetTag;
|
| 4773 |
-
|
| 4774 |
-
|
| 4775 |
-
/***/ }),
|
| 4776 |
-
/* 51 */
|
| 4777 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 4778 |
-
|
| 4779 |
-
var baseIsNative = __webpack_require__(749),
|
| 4780 |
-
getValue = __webpack_require__(752);
|
| 4781 |
-
|
| 4782 |
-
/**
|
| 4783 |
-
* Gets the native function at `key` of `object`.
|
| 4784 |
-
*
|
| 4785 |
-
* @private
|
| 4786 |
-
* @param {Object} object The object to query.
|
| 4787 |
-
* @param {string} key The key of the method to get.
|
| 4788 |
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
| 4789 |
-
*/
|
| 4790 |
-
function getNative(object, key) {
|
| 4791 |
-
var value = getValue(object, key);
|
| 4792 |
-
return baseIsNative(value) ? value : undefined;
|
| 4793 |
-
}
|
| 4794 |
-
|
| 4795 |
-
module.exports = getNative;
|
| 4796 |
-
|
| 4797 |
-
|
| 4798 |
-
/***/ }),
|
| 4799 |
-
/* 52 */
|
| 4800 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 4801 |
-
|
| 4802 |
-
"use strict";
|
| 4803 |
-
/*
|
| 4804 |
-
object-assign
|
| 4805 |
-
(c) Sindre Sorhus
|
| 4806 |
-
@license MIT
|
| 4807 |
-
*/
|
| 4808 |
-
|
| 4809 |
-
|
| 4810 |
-
/* eslint-disable no-unused-vars */
|
| 4811 |
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
| 4812 |
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
| 4813 |
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
| 4814 |
-
|
| 4815 |
-
function toObject(val) {
|
| 4816 |
-
if (val === null || val === undefined) {
|
| 4817 |
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
| 4818 |
-
}
|
| 4819 |
-
|
| 4820 |
-
return Object(val);
|
| 4821 |
-
}
|
| 4822 |
-
|
| 4823 |
-
function shouldUseNative() {
|
| 4824 |
-
try {
|
| 4825 |
-
if (!Object.assign) {
|
| 4826 |
-
return false;
|
| 4827 |
-
}
|
| 4828 |
-
|
| 4829 |
-
// Detect buggy property enumeration order in older V8 versions.
|
| 4830 |
-
|
| 4831 |
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
| 4832 |
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
| 4833 |
-
test1[5] = 'de';
|
| 4834 |
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
| 4835 |
-
return false;
|
| 4836 |
-
}
|
| 4837 |
-
|
| 4838 |
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
| 4839 |
-
var test2 = {};
|
| 4840 |
-
for (var i = 0; i < 10; i++) {
|
| 4841 |
-
test2['_' + String.fromCharCode(i)] = i;
|
| 4842 |
-
}
|
| 4843 |
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
| 4844 |
-
return test2[n];
|
| 4845 |
-
});
|
| 4846 |
-
if (order2.join('') !== '0123456789') {
|
| 4847 |
-
return false;
|
| 4848 |
-
}
|
| 4849 |
-
|
| 4850 |
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
| 4851 |
-
var test3 = {};
|
| 4852 |
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
| 4853 |
-
test3[letter] = letter;
|
| 4854 |
-
});
|
| 4855 |
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
| 4856 |
-
'abcdefghijklmnopqrst') {
|
| 4857 |
-
return false;
|
| 4858 |
-
}
|
| 4859 |
-
|
| 4860 |
-
return true;
|
| 4861 |
-
} catch (err) {
|
| 4862 |
-
// We don't expect any of the above to throw, but better to be safe.
|
| 4863 |
-
return false;
|
| 4864 |
-
}
|
| 4865 |
-
}
|
| 4866 |
-
|
| 4867 |
-
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
| 4868 |
-
var from;
|
| 4869 |
-
var to = toObject(target);
|
| 4870 |
-
var symbols;
|
| 4871 |
-
|
| 4872 |
-
for (var s = 1; s < arguments.length; s++) {
|
| 4873 |
-
from = Object(arguments[s]);
|
| 4874 |
-
|
| 4875 |
-
for (var key in from) {
|
| 4876 |
-
if (hasOwnProperty.call(from, key)) {
|
| 4877 |
-
to[key] = from[key];
|
| 4878 |
-
}
|
| 4879 |
-
}
|
| 4880 |
-
|
| 4881 |
-
if (getOwnPropertySymbols) {
|
| 4882 |
-
symbols = getOwnPropertySymbols(from);
|
| 4883 |
-
for (var i = 0; i < symbols.length; i++) {
|
| 4884 |
-
if (propIsEnumerable.call(from, symbols[i])) {
|
| 4885 |
-
to[symbols[i]] = from[symbols[i]];
|
| 4886 |
-
}
|
| 4887 |
-
}
|
| 4888 |
-
}
|
| 4889 |
-
}
|
| 4890 |
-
|
| 4891 |
-
return to;
|
| 4892 |
-
};
|
| 4893 |
-
|
| 4894 |
-
|
| 4895 |
-
/***/ }),
|
| 4896 |
-
/* 53 */
|
| 4897 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 4898 |
-
|
| 4899 |
-
"use strict";
|
| 4900 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createBrowserHistory; });
|
| 4901 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createHashHistory; });
|
| 4902 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createMemoryHistory; });
|
| 4903 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createLocation; });
|
| 4904 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return locationsAreEqual; });
|
| 4905 |
-
/* unused harmony export parsePath */
|
| 4906 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return createPath; });
|
| 4907 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 4908 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_resolve_pathname__ = __webpack_require__(403);
|
| 4909 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_value_equal__ = __webpack_require__(404);
|
| 4910 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_tiny_warning__ = __webpack_require__(77);
|
| 4911 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_tiny_invariant__ = __webpack_require__(405);
|
| 4912 |
-
|
| 4913 |
-
|
| 4914 |
-
|
| 4915 |
-
|
| 4916 |
-
|
| 4917 |
-
|
| 4918 |
-
function addLeadingSlash(path) {
|
| 4919 |
-
return path.charAt(0) === '/' ? path : '/' + path;
|
| 4920 |
-
}
|
| 4921 |
-
function stripLeadingSlash(path) {
|
| 4922 |
-
return path.charAt(0) === '/' ? path.substr(1) : path;
|
| 4923 |
-
}
|
| 4924 |
-
function hasBasename(path, prefix) {
|
| 4925 |
-
return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
|
| 4926 |
-
}
|
| 4927 |
-
function stripBasename(path, prefix) {
|
| 4928 |
-
return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
| 4929 |
-
}
|
| 4930 |
-
function stripTrailingSlash(path) {
|
| 4931 |
-
return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
|
| 4932 |
-
}
|
| 4933 |
-
function parsePath(path) {
|
| 4934 |
-
var pathname = path || '/';
|
| 4935 |
-
var search = '';
|
| 4936 |
-
var hash = '';
|
| 4937 |
-
var hashIndex = pathname.indexOf('#');
|
| 4938 |
-
|
| 4939 |
-
if (hashIndex !== -1) {
|
| 4940 |
-
hash = pathname.substr(hashIndex);
|
| 4941 |
-
pathname = pathname.substr(0, hashIndex);
|
| 4942 |
-
}
|
| 4943 |
-
|
| 4944 |
-
var searchIndex = pathname.indexOf('?');
|
| 4945 |
-
|
| 4946 |
-
if (searchIndex !== -1) {
|
| 4947 |
-
search = pathname.substr(searchIndex);
|
| 4948 |
-
pathname = pathname.substr(0, searchIndex);
|
| 4949 |
-
}
|
| 4950 |
-
|
| 4951 |
-
return {
|
| 4952 |
-
pathname: pathname,
|
| 4953 |
-
search: search === '?' ? '' : search,
|
| 4954 |
-
hash: hash === '#' ? '' : hash
|
| 4955 |
-
};
|
| 4956 |
-
}
|
| 4957 |
-
function createPath(location) {
|
| 4958 |
-
var pathname = location.pathname,
|
| 4959 |
-
search = location.search,
|
| 4960 |
-
hash = location.hash;
|
| 4961 |
-
var path = pathname || '/';
|
| 4962 |
-
if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
|
| 4963 |
-
if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
|
| 4964 |
-
return path;
|
| 4965 |
-
}
|
| 4966 |
-
|
| 4967 |
-
function createLocation(path, state, key, currentLocation) {
|
| 4968 |
-
var location;
|
| 4969 |
-
|
| 4970 |
-
if (typeof path === 'string') {
|
| 4971 |
-
// Two-arg form: push(path, state)
|
| 4972 |
-
location = parsePath(path);
|
| 4973 |
-
location.state = state;
|
| 4974 |
-
} else {
|
| 4975 |
-
// One-arg form: push(location)
|
| 4976 |
-
location = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, path);
|
| 4977 |
-
if (location.pathname === undefined) location.pathname = '';
|
| 4978 |
-
|
| 4979 |
-
if (location.search) {
|
| 4980 |
-
if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
|
| 4981 |
-
} else {
|
| 4982 |
-
location.search = '';
|
| 4983 |
-
}
|
| 4984 |
-
|
| 4985 |
-
if (location.hash) {
|
| 4986 |
-
if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
|
| 4987 |
-
} else {
|
| 4988 |
-
location.hash = '';
|
| 4989 |
-
}
|
| 4990 |
-
|
| 4991 |
-
if (state !== undefined && location.state === undefined) location.state = state;
|
| 4992 |
-
}
|
| 4993 |
-
|
| 4994 |
-
try {
|
| 4995 |
-
location.pathname = decodeURI(location.pathname);
|
| 4996 |
-
} catch (e) {
|
| 4997 |
-
if (e instanceof URIError) {
|
| 4998 |
-
throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
|
| 4999 |
-
} else {
|
| 5000 |
-
throw e;
|
| 5001 |
-
}
|
| 5002 |
-
}
|
| 5003 |
-
|
| 5004 |
-
if (key) location.key = key;
|
| 5005 |
-
|
| 5006 |
-
if (currentLocation) {
|
| 5007 |
-
// Resolve incomplete/relative pathname relative to current location.
|
| 5008 |
-
if (!location.pathname) {
|
| 5009 |
-
location.pathname = currentLocation.pathname;
|
| 5010 |
-
} else if (location.pathname.charAt(0) !== '/') {
|
| 5011 |
-
location.pathname = Object(__WEBPACK_IMPORTED_MODULE_1_resolve_pathname__["a" /* default */])(location.pathname, currentLocation.pathname);
|
| 5012 |
-
}
|
| 5013 |
-
} else {
|
| 5014 |
-
// When there is no prior location and pathname is empty, set it to /
|
| 5015 |
-
if (!location.pathname) {
|
| 5016 |
-
location.pathname = '/';
|
| 5017 |
-
}
|
| 5018 |
-
}
|
| 5019 |
-
|
| 5020 |
-
return location;
|
| 5021 |
-
}
|
| 5022 |
-
function locationsAreEqual(a, b) {
|
| 5023 |
-
return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && Object(__WEBPACK_IMPORTED_MODULE_2_value_equal__["a" /* default */])(a.state, b.state);
|
| 5024 |
-
}
|
| 5025 |
-
|
| 5026 |
-
function createTransitionManager() {
|
| 5027 |
-
var prompt = null;
|
| 5028 |
-
|
| 5029 |
-
function setPrompt(nextPrompt) {
|
| 5030 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(prompt == null, 'A history supports only one prompt at a time') : void 0;
|
| 5031 |
-
prompt = nextPrompt;
|
| 5032 |
-
return function () {
|
| 5033 |
-
if (prompt === nextPrompt) prompt = null;
|
| 5034 |
-
};
|
| 5035 |
-
}
|
| 5036 |
-
|
| 5037 |
-
function confirmTransitionTo(location, action, getUserConfirmation, callback) {
|
| 5038 |
-
// TODO: If another transition starts while we're still confirming
|
| 5039 |
-
// the previous one, we may end up in a weird state. Figure out the
|
| 5040 |
-
// best way to handle this.
|
| 5041 |
-
if (prompt != null) {
|
| 5042 |
-
var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
|
| 5043 |
-
|
| 5044 |
-
if (typeof result === 'string') {
|
| 5045 |
-
if (typeof getUserConfirmation === 'function') {
|
| 5046 |
-
getUserConfirmation(result, callback);
|
| 5047 |
-
} else {
|
| 5048 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : void 0;
|
| 5049 |
-
callback(true);
|
| 5050 |
-
}
|
| 5051 |
-
} else {
|
| 5052 |
-
// Return false from a transition hook to cancel the transition.
|
| 5053 |
-
callback(result !== false);
|
| 5054 |
-
}
|
| 5055 |
-
} else {
|
| 5056 |
-
callback(true);
|
| 5057 |
-
}
|
| 5058 |
-
}
|
| 5059 |
-
|
| 5060 |
-
var listeners = [];
|
| 5061 |
-
|
| 5062 |
-
function appendListener(fn) {
|
| 5063 |
-
var isActive = true;
|
| 5064 |
-
|
| 5065 |
-
function listener() {
|
| 5066 |
-
if (isActive) fn.apply(void 0, arguments);
|
| 5067 |
-
}
|
| 5068 |
-
|
| 5069 |
-
listeners.push(listener);
|
| 5070 |
-
return function () {
|
| 5071 |
-
isActive = false;
|
| 5072 |
-
listeners = listeners.filter(function (item) {
|
| 5073 |
-
return item !== listener;
|
| 5074 |
-
});
|
| 5075 |
-
};
|
| 5076 |
-
}
|
| 5077 |
-
|
| 5078 |
-
function notifyListeners() {
|
| 5079 |
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 5080 |
-
args[_key] = arguments[_key];
|
| 5081 |
-
}
|
| 5082 |
-
|
| 5083 |
-
listeners.forEach(function (listener) {
|
| 5084 |
-
return listener.apply(void 0, args);
|
| 5085 |
-
});
|
| 5086 |
-
}
|
| 5087 |
-
|
| 5088 |
-
return {
|
| 5089 |
-
setPrompt: setPrompt,
|
| 5090 |
-
confirmTransitionTo: confirmTransitionTo,
|
| 5091 |
-
appendListener: appendListener,
|
| 5092 |
-
notifyListeners: notifyListeners
|
| 5093 |
-
};
|
| 5094 |
-
}
|
| 5095 |
-
|
| 5096 |
-
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
| 5097 |
-
function getConfirmation(message, callback) {
|
| 5098 |
-
callback(window.confirm(message)); // eslint-disable-line no-alert
|
| 5099 |
-
}
|
| 5100 |
-
/**
|
| 5101 |
-
* Returns true if the HTML5 history API is supported. Taken from Modernizr.
|
| 5102 |
-
*
|
| 5103 |
-
* https://github.com/Modernizr/Modernizr/blob/master/LICENSE
|
| 5104 |
-
* https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
|
| 5105 |
-
* changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
|
| 5106 |
-
*/
|
| 5107 |
-
|
| 5108 |
-
function supportsHistory() {
|
| 5109 |
-
var ua = window.navigator.userAgent;
|
| 5110 |
-
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
|
| 5111 |
-
return window.history && 'pushState' in window.history;
|
| 5112 |
-
}
|
| 5113 |
-
/**
|
| 5114 |
-
* Returns true if browser fires popstate on hash change.
|
| 5115 |
-
* IE10 and IE11 do not.
|
| 5116 |
-
*/
|
| 5117 |
-
|
| 5118 |
-
function supportsPopStateOnHashChange() {
|
| 5119 |
-
return window.navigator.userAgent.indexOf('Trident') === -1;
|
| 5120 |
-
}
|
| 5121 |
-
/**
|
| 5122 |
-
* Returns false if using go(n) with hash history causes a full page reload.
|
| 5123 |
-
*/
|
| 5124 |
-
|
| 5125 |
-
function supportsGoWithoutReloadUsingHash() {
|
| 5126 |
-
return window.navigator.userAgent.indexOf('Firefox') === -1;
|
| 5127 |
-
}
|
| 5128 |
-
/**
|
| 5129 |
-
* Returns true if a given popstate event is an extraneous WebKit event.
|
| 5130 |
-
* Accounts for the fact that Chrome on iOS fires real popstate events
|
| 5131 |
-
* containing undefined state when pressing the back button.
|
| 5132 |
-
*/
|
| 5133 |
-
|
| 5134 |
-
function isExtraneousPopstateEvent(event) {
|
| 5135 |
-
return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
|
| 5136 |
-
}
|
| 5137 |
-
|
| 5138 |
-
var PopStateEvent = 'popstate';
|
| 5139 |
-
var HashChangeEvent = 'hashchange';
|
| 5140 |
-
|
| 5141 |
-
function getHistoryState() {
|
| 5142 |
-
try {
|
| 5143 |
-
return window.history.state || {};
|
| 5144 |
-
} catch (e) {
|
| 5145 |
-
// IE 11 sometimes throws when accessing window.history.state
|
| 5146 |
-
// See https://github.com/ReactTraining/history/pull/289
|
| 5147 |
-
return {};
|
| 5148 |
-
}
|
| 5149 |
-
}
|
| 5150 |
-
/**
|
| 5151 |
-
* Creates a history object that uses the HTML5 history API including
|
| 5152 |
-
* pushState, replaceState, and the popstate event.
|
| 5153 |
-
*/
|
| 5154 |
-
|
| 5155 |
-
|
| 5156 |
-
function createBrowserHistory(props) {
|
| 5157 |
-
if (props === void 0) {
|
| 5158 |
-
props = {};
|
| 5159 |
-
}
|
| 5160 |
-
|
| 5161 |
-
!canUseDOM ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false, 'Browser history needs a DOM') : Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false) : void 0;
|
| 5162 |
-
var globalHistory = window.history;
|
| 5163 |
-
var canUseHistory = supportsHistory();
|
| 5164 |
-
var needsHashChangeListener = !supportsPopStateOnHashChange();
|
| 5165 |
-
var _props = props,
|
| 5166 |
-
_props$forceRefresh = _props.forceRefresh,
|
| 5167 |
-
forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
|
| 5168 |
-
_props$getUserConfirm = _props.getUserConfirmation,
|
| 5169 |
-
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
| 5170 |
-
_props$keyLength = _props.keyLength,
|
| 5171 |
-
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
| 5172 |
-
var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
|
| 5173 |
-
|
| 5174 |
-
function getDOMLocation(historyState) {
|
| 5175 |
-
var _ref = historyState || {},
|
| 5176 |
-
key = _ref.key,
|
| 5177 |
-
state = _ref.state;
|
| 5178 |
-
|
| 5179 |
-
var _window$location = window.location,
|
| 5180 |
-
pathname = _window$location.pathname,
|
| 5181 |
-
search = _window$location.search,
|
| 5182 |
-
hash = _window$location.hash;
|
| 5183 |
-
var path = pathname + search + hash;
|
| 5184 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
|
| 5185 |
-
if (basename) path = stripBasename(path, basename);
|
| 5186 |
-
return createLocation(path, state, key);
|
| 5187 |
-
}
|
| 5188 |
-
|
| 5189 |
-
function createKey() {
|
| 5190 |
-
return Math.random().toString(36).substr(2, keyLength);
|
| 5191 |
-
}
|
| 5192 |
-
|
| 5193 |
-
var transitionManager = createTransitionManager();
|
| 5194 |
-
|
| 5195 |
-
function setState(nextState) {
|
| 5196 |
-
Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
|
| 5197 |
-
|
| 5198 |
-
history.length = globalHistory.length;
|
| 5199 |
-
transitionManager.notifyListeners(history.location, history.action);
|
| 5200 |
-
}
|
| 5201 |
-
|
| 5202 |
-
function handlePopState(event) {
|
| 5203 |
-
// Ignore extraneous popstate events in WebKit.
|
| 5204 |
-
if (isExtraneousPopstateEvent(event)) return;
|
| 5205 |
-
handlePop(getDOMLocation(event.state));
|
| 5206 |
-
}
|
| 5207 |
-
|
| 5208 |
-
function handleHashChange() {
|
| 5209 |
-
handlePop(getDOMLocation(getHistoryState()));
|
| 5210 |
-
}
|
| 5211 |
-
|
| 5212 |
-
var forceNextPop = false;
|
| 5213 |
-
|
| 5214 |
-
function handlePop(location) {
|
| 5215 |
-
if (forceNextPop) {
|
| 5216 |
-
forceNextPop = false;
|
| 5217 |
-
setState();
|
| 5218 |
-
} else {
|
| 5219 |
-
var action = 'POP';
|
| 5220 |
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
| 5221 |
-
if (ok) {
|
| 5222 |
-
setState({
|
| 5223 |
-
action: action,
|
| 5224 |
-
location: location
|
| 5225 |
-
});
|
| 5226 |
-
} else {
|
| 5227 |
-
revertPop(location);
|
| 5228 |
-
}
|
| 5229 |
-
});
|
| 5230 |
-
}
|
| 5231 |
-
}
|
| 5232 |
-
|
| 5233 |
-
function revertPop(fromLocation) {
|
| 5234 |
-
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
| 5235 |
-
// keeping a list of keys we've seen in sessionStorage.
|
| 5236 |
-
// Instead, we just default to 0 for keys we don't know.
|
| 5237 |
-
|
| 5238 |
-
var toIndex = allKeys.indexOf(toLocation.key);
|
| 5239 |
-
if (toIndex === -1) toIndex = 0;
|
| 5240 |
-
var fromIndex = allKeys.indexOf(fromLocation.key);
|
| 5241 |
-
if (fromIndex === -1) fromIndex = 0;
|
| 5242 |
-
var delta = toIndex - fromIndex;
|
| 5243 |
-
|
| 5244 |
-
if (delta) {
|
| 5245 |
-
forceNextPop = true;
|
| 5246 |
-
go(delta);
|
| 5247 |
-
}
|
| 5248 |
-
}
|
| 5249 |
-
|
| 5250 |
-
var initialLocation = getDOMLocation(getHistoryState());
|
| 5251 |
-
var allKeys = [initialLocation.key]; // Public interface
|
| 5252 |
-
|
| 5253 |
-
function createHref(location) {
|
| 5254 |
-
return basename + createPath(location);
|
| 5255 |
-
}
|
| 5256 |
-
|
| 5257 |
-
function push(path, state) {
|
| 5258 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
|
| 5259 |
-
var action = 'PUSH';
|
| 5260 |
-
var location = createLocation(path, state, createKey(), history.location);
|
| 5261 |
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
| 5262 |
-
if (!ok) return;
|
| 5263 |
-
var href = createHref(location);
|
| 5264 |
-
var key = location.key,
|
| 5265 |
-
state = location.state;
|
| 5266 |
-
|
| 5267 |
-
if (canUseHistory) {
|
| 5268 |
-
globalHistory.pushState({
|
| 5269 |
-
key: key,
|
| 5270 |
-
state: state
|
| 5271 |
-
}, null, href);
|
| 5272 |
-
|
| 5273 |
-
if (forceRefresh) {
|
| 5274 |
-
window.location.href = href;
|
| 5275 |
-
} else {
|
| 5276 |
-
var prevIndex = allKeys.indexOf(history.location.key);
|
| 5277 |
-
var nextKeys = allKeys.slice(0, prevIndex + 1);
|
| 5278 |
-
nextKeys.push(location.key);
|
| 5279 |
-
allKeys = nextKeys;
|
| 5280 |
-
setState({
|
| 5281 |
-
action: action,
|
| 5282 |
-
location: location
|
| 5283 |
-
});
|
| 5284 |
-
}
|
| 5285 |
-
} else {
|
| 5286 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : void 0;
|
| 5287 |
-
window.location.href = href;
|
| 5288 |
-
}
|
| 5289 |
-
});
|
| 5290 |
-
}
|
| 5291 |
-
|
| 5292 |
-
function replace(path, state) {
|
| 5293 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
|
| 5294 |
-
var action = 'REPLACE';
|
| 5295 |
-
var location = createLocation(path, state, createKey(), history.location);
|
| 5296 |
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
| 5297 |
-
if (!ok) return;
|
| 5298 |
-
var href = createHref(location);
|
| 5299 |
-
var key = location.key,
|
| 5300 |
-
state = location.state;
|
| 5301 |
-
|
| 5302 |
-
if (canUseHistory) {
|
| 5303 |
-
globalHistory.replaceState({
|
| 5304 |
-
key: key,
|
| 5305 |
-
state: state
|
| 5306 |
-
}, null, href);
|
| 5307 |
-
|
| 5308 |
-
if (forceRefresh) {
|
| 5309 |
-
window.location.replace(href);
|
| 5310 |
-
} else {
|
| 5311 |
-
var prevIndex = allKeys.indexOf(history.location.key);
|
| 5312 |
-
if (prevIndex !== -1) allKeys[prevIndex] = location.key;
|
| 5313 |
-
setState({
|
| 5314 |
-
action: action,
|
| 5315 |
-
location: location
|
| 5316 |
-
});
|
| 5317 |
-
}
|
| 5318 |
-
} else {
|
| 5319 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : void 0;
|
| 5320 |
-
window.location.replace(href);
|
| 5321 |
-
}
|
| 5322 |
-
});
|
| 5323 |
-
}
|
| 5324 |
-
|
| 5325 |
-
function go(n) {
|
| 5326 |
-
globalHistory.go(n);
|
| 5327 |
-
}
|
| 5328 |
-
|
| 5329 |
-
function goBack() {
|
| 5330 |
-
go(-1);
|
| 5331 |
-
}
|
| 5332 |
-
|
| 5333 |
-
function goForward() {
|
| 5334 |
-
go(1);
|
| 5335 |
-
}
|
| 5336 |
-
|
| 5337 |
-
var listenerCount = 0;
|
| 5338 |
-
|
| 5339 |
-
function checkDOMListeners(delta) {
|
| 5340 |
-
listenerCount += delta;
|
| 5341 |
-
|
| 5342 |
-
if (listenerCount === 1 && delta === 1) {
|
| 5343 |
-
window.addEventListener(PopStateEvent, handlePopState);
|
| 5344 |
-
if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
|
| 5345 |
-
} else if (listenerCount === 0) {
|
| 5346 |
-
window.removeEventListener(PopStateEvent, handlePopState);
|
| 5347 |
-
if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
|
| 5348 |
-
}
|
| 5349 |
-
}
|
| 5350 |
-
|
| 5351 |
-
var isBlocked = false;
|
| 5352 |
-
|
| 5353 |
-
function block(prompt) {
|
| 5354 |
-
if (prompt === void 0) {
|
| 5355 |
-
prompt = false;
|
| 5356 |
-
}
|
| 5357 |
-
|
| 5358 |
-
var unblock = transitionManager.setPrompt(prompt);
|
| 5359 |
-
|
| 5360 |
-
if (!isBlocked) {
|
| 5361 |
-
checkDOMListeners(1);
|
| 5362 |
-
isBlocked = true;
|
| 5363 |
-
}
|
| 5364 |
-
|
| 5365 |
-
return function () {
|
| 5366 |
-
if (isBlocked) {
|
| 5367 |
-
isBlocked = false;
|
| 5368 |
-
checkDOMListeners(-1);
|
| 5369 |
-
}
|
| 5370 |
-
|
| 5371 |
-
return unblock();
|
| 5372 |
-
};
|
| 5373 |
-
}
|
| 5374 |
-
|
| 5375 |
-
function listen(listener) {
|
| 5376 |
-
var unlisten = transitionManager.appendListener(listener);
|
| 5377 |
-
checkDOMListeners(1);
|
| 5378 |
-
return function () {
|
| 5379 |
-
checkDOMListeners(-1);
|
| 5380 |
-
unlisten();
|
| 5381 |
-
};
|
| 5382 |
-
}
|
| 5383 |
-
|
| 5384 |
-
var history = {
|
| 5385 |
-
length: globalHistory.length,
|
| 5386 |
-
action: 'POP',
|
| 5387 |
-
location: initialLocation,
|
| 5388 |
-
createHref: createHref,
|
| 5389 |
-
push: push,
|
| 5390 |
-
replace: replace,
|
| 5391 |
-
go: go,
|
| 5392 |
-
goBack: goBack,
|
| 5393 |
-
goForward: goForward,
|
| 5394 |
-
block: block,
|
| 5395 |
-
listen: listen
|
| 5396 |
-
};
|
| 5397 |
-
return history;
|
| 5398 |
-
}
|
| 5399 |
-
|
| 5400 |
-
var HashChangeEvent$1 = 'hashchange';
|
| 5401 |
-
var HashPathCoders = {
|
| 5402 |
-
hashbang: {
|
| 5403 |
-
encodePath: function encodePath(path) {
|
| 5404 |
-
return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);
|
| 5405 |
-
},
|
| 5406 |
-
decodePath: function decodePath(path) {
|
| 5407 |
-
return path.charAt(0) === '!' ? path.substr(1) : path;
|
| 5408 |
-
}
|
| 5409 |
-
},
|
| 5410 |
-
noslash: {
|
| 5411 |
-
encodePath: stripLeadingSlash,
|
| 5412 |
-
decodePath: addLeadingSlash
|
| 5413 |
-
},
|
| 5414 |
-
slash: {
|
| 5415 |
-
encodePath: addLeadingSlash,
|
| 5416 |
-
decodePath: addLeadingSlash
|
| 5417 |
-
}
|
| 5418 |
-
};
|
| 5419 |
-
|
| 5420 |
-
function stripHash(url) {
|
| 5421 |
-
var hashIndex = url.indexOf('#');
|
| 5422 |
-
return hashIndex === -1 ? url : url.slice(0, hashIndex);
|
| 5423 |
-
}
|
| 5424 |
-
|
| 5425 |
-
function getHashPath() {
|
| 5426 |
-
// We can't use window.location.hash here because it's not
|
| 5427 |
-
// consistent across browsers - Firefox will pre-decode it!
|
| 5428 |
-
var href = window.location.href;
|
| 5429 |
-
var hashIndex = href.indexOf('#');
|
| 5430 |
-
return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
|
| 5431 |
-
}
|
| 5432 |
-
|
| 5433 |
-
function pushHashPath(path) {
|
| 5434 |
-
window.location.hash = path;
|
| 5435 |
-
}
|
| 5436 |
-
|
| 5437 |
-
function replaceHashPath(path) {
|
| 5438 |
-
window.location.replace(stripHash(window.location.href) + '#' + path);
|
| 5439 |
-
}
|
| 5440 |
-
|
| 5441 |
-
function createHashHistory(props) {
|
| 5442 |
-
if (props === void 0) {
|
| 5443 |
-
props = {};
|
| 5444 |
-
}
|
| 5445 |
-
|
| 5446 |
-
!canUseDOM ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false, 'Hash history needs a DOM') : Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false) : void 0;
|
| 5447 |
-
var globalHistory = window.history;
|
| 5448 |
-
var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
|
| 5449 |
-
var _props = props,
|
| 5450 |
-
_props$getUserConfirm = _props.getUserConfirmation,
|
| 5451 |
-
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
| 5452 |
-
_props$hashType = _props.hashType,
|
| 5453 |
-
hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
|
| 5454 |
-
var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
|
| 5455 |
-
var _HashPathCoders$hashT = HashPathCoders[hashType],
|
| 5456 |
-
encodePath = _HashPathCoders$hashT.encodePath,
|
| 5457 |
-
decodePath = _HashPathCoders$hashT.decodePath;
|
| 5458 |
-
|
| 5459 |
-
function getDOMLocation() {
|
| 5460 |
-
var path = decodePath(getHashPath());
|
| 5461 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
|
| 5462 |
-
if (basename) path = stripBasename(path, basename);
|
| 5463 |
-
return createLocation(path);
|
| 5464 |
-
}
|
| 5465 |
-
|
| 5466 |
-
var transitionManager = createTransitionManager();
|
| 5467 |
-
|
| 5468 |
-
function setState(nextState) {
|
| 5469 |
-
Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
|
| 5470 |
-
|
| 5471 |
-
history.length = globalHistory.length;
|
| 5472 |
-
transitionManager.notifyListeners(history.location, history.action);
|
| 5473 |
-
}
|
| 5474 |
-
|
| 5475 |
-
var forceNextPop = false;
|
| 5476 |
-
var ignorePath = null;
|
| 5477 |
-
|
| 5478 |
-
function locationsAreEqual$$1(a, b) {
|
| 5479 |
-
return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;
|
| 5480 |
-
}
|
| 5481 |
-
|
| 5482 |
-
function handleHashChange() {
|
| 5483 |
-
var path = getHashPath();
|
| 5484 |
-
var encodedPath = encodePath(path);
|
| 5485 |
-
|
| 5486 |
-
if (path !== encodedPath) {
|
| 5487 |
-
// Ensure we always have a properly-encoded hash.
|
| 5488 |
-
replaceHashPath(encodedPath);
|
| 5489 |
-
} else {
|
| 5490 |
-
var location = getDOMLocation();
|
| 5491 |
-
var prevLocation = history.location;
|
| 5492 |
-
if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.
|
| 5493 |
-
|
| 5494 |
-
if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.
|
| 5495 |
-
|
| 5496 |
-
ignorePath = null;
|
| 5497 |
-
handlePop(location);
|
| 5498 |
-
}
|
| 5499 |
-
}
|
| 5500 |
-
|
| 5501 |
-
function handlePop(location) {
|
| 5502 |
-
if (forceNextPop) {
|
| 5503 |
-
forceNextPop = false;
|
| 5504 |
-
setState();
|
| 5505 |
-
} else {
|
| 5506 |
-
var action = 'POP';
|
| 5507 |
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
| 5508 |
-
if (ok) {
|
| 5509 |
-
setState({
|
| 5510 |
-
action: action,
|
| 5511 |
-
location: location
|
| 5512 |
-
});
|
| 5513 |
-
} else {
|
| 5514 |
-
revertPop(location);
|
| 5515 |
-
}
|
| 5516 |
-
});
|
| 5517 |
-
}
|
| 5518 |
-
}
|
| 5519 |
-
|
| 5520 |
-
function revertPop(fromLocation) {
|
| 5521 |
-
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
| 5522 |
-
// keeping a list of paths we've seen in sessionStorage.
|
| 5523 |
-
// Instead, we just default to 0 for paths we don't know.
|
| 5524 |
-
|
| 5525 |
-
var toIndex = allPaths.lastIndexOf(createPath(toLocation));
|
| 5526 |
-
if (toIndex === -1) toIndex = 0;
|
| 5527 |
-
var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
|
| 5528 |
-
if (fromIndex === -1) fromIndex = 0;
|
| 5529 |
-
var delta = toIndex - fromIndex;
|
| 5530 |
-
|
| 5531 |
-
if (delta) {
|
| 5532 |
-
forceNextPop = true;
|
| 5533 |
-
go(delta);
|
| 5534 |
-
}
|
| 5535 |
-
} // Ensure the hash is encoded properly before doing anything else.
|
| 5536 |
-
|
| 5537 |
-
|
| 5538 |
-
var path = getHashPath();
|
| 5539 |
-
var encodedPath = encodePath(path);
|
| 5540 |
-
if (path !== encodedPath) replaceHashPath(encodedPath);
|
| 5541 |
-
var initialLocation = getDOMLocation();
|
| 5542 |
-
var allPaths = [createPath(initialLocation)]; // Public interface
|
| 5543 |
-
|
| 5544 |
-
function createHref(location) {
|
| 5545 |
-
var baseTag = document.querySelector('base');
|
| 5546 |
-
var href = '';
|
| 5547 |
-
|
| 5548 |
-
if (baseTag && baseTag.getAttribute('href')) {
|
| 5549 |
-
href = stripHash(window.location.href);
|
| 5550 |
-
}
|
| 5551 |
-
|
| 5552 |
-
return href + '#' + encodePath(basename + createPath(location));
|
| 5553 |
-
}
|
| 5554 |
-
|
| 5555 |
-
function push(path, state) {
|
| 5556 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Hash history cannot push state; it is ignored') : void 0;
|
| 5557 |
-
var action = 'PUSH';
|
| 5558 |
-
var location = createLocation(path, undefined, undefined, history.location);
|
| 5559 |
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
| 5560 |
-
if (!ok) return;
|
| 5561 |
-
var path = createPath(location);
|
| 5562 |
-
var encodedPath = encodePath(basename + path);
|
| 5563 |
-
var hashChanged = getHashPath() !== encodedPath;
|
| 5564 |
-
|
| 5565 |
-
if (hashChanged) {
|
| 5566 |
-
// We cannot tell if a hashchange was caused by a PUSH, so we'd
|
| 5567 |
-
// rather setState here and ignore the hashchange. The caveat here
|
| 5568 |
-
// is that other hash histories in the page will consider it a POP.
|
| 5569 |
-
ignorePath = path;
|
| 5570 |
-
pushHashPath(encodedPath);
|
| 5571 |
-
var prevIndex = allPaths.lastIndexOf(createPath(history.location));
|
| 5572 |
-
var nextPaths = allPaths.slice(0, prevIndex + 1);
|
| 5573 |
-
nextPaths.push(path);
|
| 5574 |
-
allPaths = nextPaths;
|
| 5575 |
-
setState({
|
| 5576 |
-
action: action,
|
| 5577 |
-
location: location
|
| 5578 |
-
});
|
| 5579 |
-
} else {
|
| 5580 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack') : void 0;
|
| 5581 |
-
setState();
|
| 5582 |
-
}
|
| 5583 |
-
});
|
| 5584 |
-
}
|
| 5585 |
-
|
| 5586 |
-
function replace(path, state) {
|
| 5587 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Hash history cannot replace state; it is ignored') : void 0;
|
| 5588 |
-
var action = 'REPLACE';
|
| 5589 |
-
var location = createLocation(path, undefined, undefined, history.location);
|
| 5590 |
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
| 5591 |
-
if (!ok) return;
|
| 5592 |
-
var path = createPath(location);
|
| 5593 |
-
var encodedPath = encodePath(basename + path);
|
| 5594 |
-
var hashChanged = getHashPath() !== encodedPath;
|
| 5595 |
-
|
| 5596 |
-
if (hashChanged) {
|
| 5597 |
-
// We cannot tell if a hashchange was caused by a REPLACE, so we'd
|
| 5598 |
-
// rather setState here and ignore the hashchange. The caveat here
|
| 5599 |
-
// is that other hash histories in the page will consider it a POP.
|
| 5600 |
-
ignorePath = path;
|
| 5601 |
-
replaceHashPath(encodedPath);
|
| 5602 |
-
}
|
| 5603 |
-
|
| 5604 |
-
var prevIndex = allPaths.indexOf(createPath(history.location));
|
| 5605 |
-
if (prevIndex !== -1) allPaths[prevIndex] = path;
|
| 5606 |
-
setState({
|
| 5607 |
-
action: action,
|
| 5608 |
-
location: location
|
| 5609 |
-
});
|
| 5610 |
-
});
|
| 5611 |
-
}
|
| 5612 |
-
|
| 5613 |
-
function go(n) {
|
| 5614 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser') : void 0;
|
| 5615 |
-
globalHistory.go(n);
|
| 5616 |
-
}
|
| 5617 |
-
|
| 5618 |
-
function goBack() {
|
| 5619 |
-
go(-1);
|
| 5620 |
-
}
|
| 5621 |
-
|
| 5622 |
-
function goForward() {
|
| 5623 |
-
go(1);
|
| 5624 |
-
}
|
| 5625 |
-
|
| 5626 |
-
var listenerCount = 0;
|
| 5627 |
-
|
| 5628 |
-
function checkDOMListeners(delta) {
|
| 5629 |
-
listenerCount += delta;
|
| 5630 |
-
|
| 5631 |
-
if (listenerCount === 1 && delta === 1) {
|
| 5632 |
-
window.addEventListener(HashChangeEvent$1, handleHashChange);
|
| 5633 |
-
} else if (listenerCount === 0) {
|
| 5634 |
-
window.removeEventListener(HashChangeEvent$1, handleHashChange);
|
| 5635 |
-
}
|
| 5636 |
-
}
|
| 5637 |
-
|
| 5638 |
-
var isBlocked = false;
|
| 5639 |
-
|
| 5640 |
-
function block(prompt) {
|
| 5641 |
-
if (prompt === void 0) {
|
| 5642 |
-
prompt = false;
|
| 5643 |
-
}
|
| 5644 |
-
|
| 5645 |
-
var unblock = transitionManager.setPrompt(prompt);
|
| 5646 |
-
|
| 5647 |
-
if (!isBlocked) {
|
| 5648 |
-
checkDOMListeners(1);
|
| 5649 |
-
isBlocked = true;
|
| 5650 |
-
}
|
| 5651 |
-
|
| 5652 |
-
return function () {
|
| 5653 |
-
if (isBlocked) {
|
| 5654 |
-
isBlocked = false;
|
| 5655 |
-
checkDOMListeners(-1);
|
| 5656 |
-
}
|
| 5657 |
-
|
| 5658 |
-
return unblock();
|
| 5659 |
-
};
|
| 5660 |
-
}
|
| 5661 |
-
|
| 5662 |
-
function listen(listener) {
|
| 5663 |
-
var unlisten = transitionManager.appendListener(listener);
|
| 5664 |
-
checkDOMListeners(1);
|
| 5665 |
-
return function () {
|
| 5666 |
-
checkDOMListeners(-1);
|
| 5667 |
-
unlisten();
|
| 5668 |
-
};
|
| 5669 |
-
}
|
| 5670 |
-
|
| 5671 |
-
var history = {
|
| 5672 |
-
length: globalHistory.length,
|
| 5673 |
-
action: 'POP',
|
| 5674 |
-
location: initialLocation,
|
| 5675 |
-
createHref: createHref,
|
| 5676 |
-
push: push,
|
| 5677 |
-
replace: replace,
|
| 5678 |
-
go: go,
|
| 5679 |
-
goBack: goBack,
|
| 5680 |
-
goForward: goForward,
|
| 5681 |
-
block: block,
|
| 5682 |
-
listen: listen
|
| 5683 |
-
};
|
| 5684 |
-
return history;
|
| 5685 |
-
}
|
| 5686 |
-
|
| 5687 |
-
function clamp(n, lowerBound, upperBound) {
|
| 5688 |
-
return Math.min(Math.max(n, lowerBound), upperBound);
|
| 5689 |
-
}
|
| 5690 |
-
/**
|
| 5691 |
-
* Creates a history object that stores locations in memory.
|
| 5692 |
-
*/
|
| 5693 |
-
|
| 5694 |
-
|
| 5695 |
-
function createMemoryHistory(props) {
|
| 5696 |
-
if (props === void 0) {
|
| 5697 |
-
props = {};
|
| 5698 |
-
}
|
| 5699 |
-
|
| 5700 |
-
var _props = props,
|
| 5701 |
-
getUserConfirmation = _props.getUserConfirmation,
|
| 5702 |
-
_props$initialEntries = _props.initialEntries,
|
| 5703 |
-
initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,
|
| 5704 |
-
_props$initialIndex = _props.initialIndex,
|
| 5705 |
-
initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,
|
| 5706 |
-
_props$keyLength = _props.keyLength,
|
| 5707 |
-
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
| 5708 |
-
var transitionManager = createTransitionManager();
|
| 5709 |
-
|
| 5710 |
-
function setState(nextState) {
|
| 5711 |
-
Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
|
| 5712 |
-
|
| 5713 |
-
history.length = history.entries.length;
|
| 5714 |
-
transitionManager.notifyListeners(history.location, history.action);
|
| 5715 |
-
}
|
| 5716 |
-
|
| 5717 |
-
function createKey() {
|
| 5718 |
-
return Math.random().toString(36).substr(2, keyLength);
|
| 5719 |
-
}
|
| 5720 |
-
|
| 5721 |
-
var index = clamp(initialIndex, 0, initialEntries.length - 1);
|
| 5722 |
-
var entries = initialEntries.map(function (entry) {
|
| 5723 |
-
return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());
|
| 5724 |
-
}); // Public interface
|
| 5725 |
-
|
| 5726 |
-
var createHref = createPath;
|
| 5727 |
-
|
| 5728 |
-
function push(path, state) {
|
| 5729 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
|
| 5730 |
-
var action = 'PUSH';
|
| 5731 |
-
var location = createLocation(path, state, createKey(), history.location);
|
| 5732 |
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
| 5733 |
-
if (!ok) return;
|
| 5734 |
-
var prevIndex = history.index;
|
| 5735 |
-
var nextIndex = prevIndex + 1;
|
| 5736 |
-
var nextEntries = history.entries.slice(0);
|
| 5737 |
-
|
| 5738 |
-
if (nextEntries.length > nextIndex) {
|
| 5739 |
-
nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
|
| 5740 |
-
} else {
|
| 5741 |
-
nextEntries.push(location);
|
| 5742 |
-
}
|
| 5743 |
-
|
| 5744 |
-
setState({
|
| 5745 |
-
action: action,
|
| 5746 |
-
location: location,
|
| 5747 |
-
index: nextIndex,
|
| 5748 |
-
entries: nextEntries
|
| 5749 |
-
});
|
| 5750 |
-
});
|
| 5751 |
-
}
|
| 5752 |
-
|
| 5753 |
-
function replace(path, state) {
|
| 5754 |
-
process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
|
| 5755 |
-
var action = 'REPLACE';
|
| 5756 |
-
var location = createLocation(path, state, createKey(), history.location);
|
| 5757 |
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
| 5758 |
-
if (!ok) return;
|
| 5759 |
-
history.entries[history.index] = location;
|
| 5760 |
-
setState({
|
| 5761 |
-
action: action,
|
| 5762 |
-
location: location
|
| 5763 |
-
});
|
| 5764 |
-
});
|
| 5765 |
-
}
|
| 5766 |
-
|
| 5767 |
-
function go(n) {
|
| 5768 |
-
var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
|
| 5769 |
-
var action = 'POP';
|
| 5770 |
-
var location = history.entries[nextIndex];
|
| 5771 |
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
| 5772 |
-
if (ok) {
|
| 5773 |
-
setState({
|
| 5774 |
-
action: action,
|
| 5775 |
-
location: location,
|
| 5776 |
-
index: nextIndex
|
| 5777 |
-
});
|
| 5778 |
-
} else {
|
| 5779 |
-
// Mimic the behavior of DOM histories by
|
| 5780 |
-
// causing a render after a cancelled POP.
|
| 5781 |
-
setState();
|
| 5782 |
-
}
|
| 5783 |
-
});
|
| 5784 |
-
}
|
| 5785 |
-
|
| 5786 |
-
function goBack() {
|
| 5787 |
-
go(-1);
|
| 5788 |
-
}
|
| 5789 |
-
|
| 5790 |
-
function goForward() {
|
| 5791 |
-
go(1);
|
| 5792 |
-
}
|
| 5793 |
-
|
| 5794 |
-
function canGo(n) {
|
| 5795 |
-
var nextIndex = history.index + n;
|
| 5796 |
-
return nextIndex >= 0 && nextIndex < history.entries.length;
|
| 5797 |
-
}
|
| 5798 |
-
|
| 5799 |
-
function block(prompt) {
|
| 5800 |
-
if (prompt === void 0) {
|
| 5801 |
-
prompt = false;
|
| 5802 |
-
}
|
| 5803 |
-
|
| 5804 |
-
return transitionManager.setPrompt(prompt);
|
| 5805 |
-
}
|
| 5806 |
-
|
| 5807 |
-
function listen(listener) {
|
| 5808 |
-
return transitionManager.appendListener(listener);
|
| 5809 |
-
}
|
| 5810 |
-
|
| 5811 |
-
var history = {
|
| 5812 |
-
length: entries.length,
|
| 5813 |
-
action: 'POP',
|
| 5814 |
-
location: entries[index],
|
| 5815 |
-
index: index,
|
| 5816 |
-
entries: entries,
|
| 5817 |
-
createHref: createHref,
|
| 5818 |
-
push: push,
|
| 5819 |
-
replace: replace,
|
| 5820 |
-
go: go,
|
| 5821 |
-
goBack: goBack,
|
| 5822 |
-
goForward: goForward,
|
| 5823 |
-
canGo: canGo,
|
| 5824 |
-
block: block,
|
| 5825 |
-
listen: listen
|
| 5826 |
-
};
|
| 5827 |
-
return history;
|
| 5828 |
-
}
|
| 5829 |
-
|
| 5830 |
-
|
| 5831 |
-
|
| 5832 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 5833 |
-
|
| 5834 |
-
/***/ }),
|
| 5835 |
-
/* 54 */
|
| 5836 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 5837 |
-
|
| 5838 |
-
"use strict";
|
| 5839 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutPropertiesLoose;
|
| 5840 |
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
| 5841 |
-
if (source == null) return {};
|
| 5842 |
-
var target = {};
|
| 5843 |
-
var sourceKeys = Object.keys(source);
|
| 5844 |
-
var key, i;
|
| 5845 |
-
|
| 5846 |
-
for (i = 0; i < sourceKeys.length; i++) {
|
| 5847 |
-
key = sourceKeys[i];
|
| 5848 |
-
if (excluded.indexOf(key) >= 0) continue;
|
| 5849 |
-
target[key] = source[key];
|
| 5850 |
-
}
|
| 5851 |
-
|
| 5852 |
-
return target;
|
| 5853 |
-
}
|
| 5854 |
-
|
| 5855 |
-
/***/ }),
|
| 5856 |
-
/* 55 */
|
| 5857 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 5858 |
-
|
| 5859 |
-
"use strict";
|
| 5860 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose;
|
| 5861 |
-
function _inheritsLoose(subClass, superClass) {
|
| 5862 |
-
subClass.prototype = Object.create(superClass.prototype);
|
| 5863 |
-
subClass.prototype.constructor = subClass;
|
| 5864 |
-
subClass.__proto__ = superClass;
|
| 5865 |
-
}
|
| 5866 |
-
|
| 5867 |
-
/***/ }),
|
| 5868 |
-
/* 56 */
|
| 5869 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 5870 |
-
|
| 5871 |
-
"use strict";
|
| 5872 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useTheme__ = __webpack_require__(460);
|
| 5873 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useTheme__["a"]; });
|
| 5874 |
-
|
| 5875 |
-
|
| 5876 |
-
/***/ }),
|
| 5877 |
-
/* 57 */
|
| 5878 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 5879 |
-
|
| 5880 |
-
"use strict";
|
| 5881 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createChainedFunction;
|
| 5882 |
-
/**
|
| 5883 |
-
* Safe chained function
|
| 5884 |
-
*
|
| 5885 |
-
* Will only create a new function if needed,
|
| 5886 |
-
* otherwise will pass back existing functions or null.
|
| 5887 |
-
*
|
| 5888 |
-
* @param {function} functions to chain
|
| 5889 |
-
* @returns {function|null}
|
| 5890 |
-
*/
|
| 5891 |
-
function createChainedFunction() {
|
| 5892 |
-
for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 5893 |
-
funcs[_key] = arguments[_key];
|
| 5894 |
-
}
|
| 5895 |
-
|
| 5896 |
-
return funcs.reduce(function (acc, func) {
|
| 5897 |
-
if (func == null) {
|
| 5898 |
-
return acc;
|
| 5899 |
-
}
|
| 5900 |
-
|
| 5901 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 5902 |
-
if (typeof func !== 'function') {
|
| 5903 |
-
console.error('Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.');
|
| 5904 |
-
}
|
| 5905 |
-
}
|
| 5906 |
-
|
| 5907 |
-
return function chainedFunction() {
|
| 5908 |
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
| 5909 |
-
args[_key2] = arguments[_key2];
|
| 5910 |
-
}
|
| 5911 |
-
|
| 5912 |
-
acc.apply(this, args);
|
| 5913 |
-
func.apply(this, args);
|
| 5914 |
-
};
|
| 5915 |
-
}, function () {});
|
| 5916 |
-
}
|
| 5917 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 5918 |
-
|
| 5919 |
-
/***/ }),
|
| 5920 |
-
/* 58 */
|
| 5921 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 5922 |
-
|
| 5923 |
-
"use strict";
|
| 5924 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CSSTransition__ = __webpack_require__(523);
|
| 5925 |
-
/* unused harmony reexport CSSTransition */
|
| 5926 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ReplaceTransition__ = __webpack_require__(527);
|
| 5927 |
-
/* unused harmony reexport ReplaceTransition */
|
| 5928 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SwitchTransition__ = __webpack_require__(529);
|
| 5929 |
-
/* unused harmony reexport SwitchTransition */
|
| 5930 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__ = __webpack_require__(241);
|
| 5931 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__["a"]; });
|
| 5932 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Transition__ = __webpack_require__(130);
|
| 5933 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_4__Transition__["d"]; });
|
| 5934 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(239);
|
| 5935 |
-
/* unused harmony reexport config */
|
| 5936 |
-
|
| 5937 |
-
|
| 5938 |
-
|
| 5939 |
-
|
| 5940 |
-
|
| 5941 |
-
|
| 5942 |
-
|
| 5943 |
-
/***/ }),
|
| 5944 |
-
/* 59 */
|
| 5945 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 5946 |
-
|
| 5947 |
-
"use strict";
|
| 5948 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Collapse__ = __webpack_require__(547);
|
| 5949 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Collapse__["a"]; });
|
| 5950 |
-
|
| 5951 |
-
|
| 5952 |
-
/***/ }),
|
| 5953 |
-
/* 60 */
|
| 5954 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 5955 |
-
|
| 5956 |
-
"use strict";
|
| 5957 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return reflow; });
|
| 5958 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = getTransitionProps;
|
| 5959 |
-
var reflow = function reflow(node) {
|
| 5960 |
-
return node.scrollTop;
|
| 5961 |
-
};
|
| 5962 |
-
function getTransitionProps(props, options) {
|
| 5963 |
-
var timeout = props.timeout,
|
| 5964 |
-
_props$style = props.style,
|
| 5965 |
-
style = _props$style === void 0 ? {} : _props$style;
|
| 5966 |
-
return {
|
| 5967 |
-
duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
|
| 5968 |
-
delay: style.transitionDelay
|
| 5969 |
-
};
|
| 5970 |
-
}
|
| 5971 |
-
|
| 5972 |
-
/***/ }),
|
| 5973 |
-
/* 61 */
|
| 5974 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 5975 |
-
|
| 5976 |
-
"use strict";
|
| 5977 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputBase__ = __webpack_require__(599);
|
| 5978 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputBase__["a"]; });
|
| 5979 |
-
|
| 5980 |
-
|
| 5981 |
-
/***/ }),
|
| 5982 |
-
/* 62 */
|
| 5983 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 5984 |
-
|
| 5985 |
-
"use strict";
|
| 5986 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = formControlState;
|
| 5987 |
-
function formControlState(_ref) {
|
| 5988 |
-
var props = _ref.props,
|
| 5989 |
-
states = _ref.states,
|
| 5990 |
-
muiFormControl = _ref.muiFormControl;
|
| 5991 |
-
return states.reduce(function (acc, state) {
|
| 5992 |
-
acc[state] = props[state];
|
| 5993 |
-
|
| 5994 |
-
if (muiFormControl) {
|
| 5995 |
-
if (typeof props[state] === 'undefined') {
|
| 5996 |
-
acc[state] = muiFormControl[state];
|
| 5997 |
-
}
|
| 5998 |
-
}
|
| 5999 |
-
|
| 6000 |
-
return acc;
|
| 6001 |
-
}, {});
|
| 6002 |
-
}
|
| 6003 |
-
|
| 6004 |
-
/***/ }),
|
| 6005 |
-
/* 63 */
|
| 6006 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 6007 |
-
|
| 6008 |
-
var isFunction = __webpack_require__(175),
|
| 6009 |
-
isLength = __webpack_require__(171);
|
| 6010 |
-
|
| 6011 |
-
/**
|
| 6012 |
-
* Checks if `value` is array-like. A value is considered array-like if it's
|
| 6013 |
-
* not a function and has a `value.length` that's an integer greater than or
|
| 6014 |
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
| 6015 |
-
*
|
| 6016 |
-
* @static
|
| 6017 |
-
* @memberOf _
|
| 6018 |
-
* @since 4.0.0
|
| 6019 |
-
* @category Lang
|
| 6020 |
-
* @param {*} value The value to check.
|
| 6021 |
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
| 6022 |
-
* @example
|
| 6023 |
-
*
|
| 6024 |
-
* _.isArrayLike([1, 2, 3]);
|
| 6025 |
-
* // => true
|
| 6026 |
-
*
|
| 6027 |
-
* _.isArrayLike(document.body.children);
|
| 6028 |
-
* // => true
|
| 6029 |
-
*
|
| 6030 |
-
* _.isArrayLike('abc');
|
| 6031 |
-
* // => true
|
| 6032 |
-
*
|
| 6033 |
-
* _.isArrayLike(_.noop);
|
| 6034 |
-
* // => false
|
| 6035 |
-
*/
|
| 6036 |
-
function isArrayLike(value) {
|
| 6037 |
-
return value != null && isLength(value.length) && !isFunction(value);
|
| 6038 |
-
}
|
| 6039 |
-
|
| 6040 |
-
module.exports = isArrayLike;
|
| 6041 |
-
|
| 6042 |
-
|
| 6043 |
-
/***/ }),
|
| 6044 |
-
/* 64 */
|
| 6045 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6046 |
-
|
| 6047 |
-
"use strict";
|
| 6048 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createMuiTheme__ = __webpack_require__(126);
|
| 6049 |
-
|
| 6050 |
-
var defaultTheme = Object(__WEBPACK_IMPORTED_MODULE_0__createMuiTheme__["a" /* default */])();
|
| 6051 |
-
/* harmony default export */ __webpack_exports__["a"] = (defaultTheme);
|
| 6052 |
-
|
| 6053 |
-
/***/ }),
|
| 6054 |
-
/* 65 */
|
| 6055 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6056 |
-
|
| 6057 |
-
"use strict";
|
| 6058 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__ = __webpack_require__(230);
|
| 6059 |
-
|
| 6060 |
-
|
| 6061 |
-
function css() {
|
| 6062 |
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 6063 |
-
args[_key] = arguments[_key];
|
| 6064 |
-
}
|
| 6065 |
-
|
| 6066 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__emotion_serialize__["a" /* serializeStyles */])(args);
|
| 6067 |
-
}
|
| 6068 |
-
|
| 6069 |
-
/* harmony default export */ __webpack_exports__["a"] = (css);
|
| 6070 |
-
|
| 6071 |
-
|
| 6072 |
-
/***/ }),
|
| 6073 |
-
/* 66 */
|
| 6074 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6075 |
-
|
| 6076 |
-
"use strict";
|
| 6077 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = isMuiElement;
|
| 6078 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 6079 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 6080 |
-
|
| 6081 |
-
function isMuiElement(element, muiNames) {
|
| 6082 |
-
return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"](element) && muiNames.indexOf(element.type.muiName) !== -1;
|
| 6083 |
-
}
|
| 6084 |
-
|
| 6085 |
-
/***/ }),
|
| 6086 |
-
/* 67 */
|
| 6087 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6088 |
-
|
| 6089 |
-
"use strict";
|
| 6090 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export teardown */
|
| 6091 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = useIsFocusVisible;
|
| 6092 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 6093 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 6094 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(11);
|
| 6095 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);
|
| 6096 |
-
// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
|
| 6097 |
-
|
| 6098 |
-
|
| 6099 |
-
var hadKeyboardEvent = true;
|
| 6100 |
-
var hadFocusVisibleRecently = false;
|
| 6101 |
-
var hadFocusVisibleRecentlyTimeout = null;
|
| 6102 |
-
var inputTypesWhitelist = {
|
| 6103 |
-
text: true,
|
| 6104 |
-
search: true,
|
| 6105 |
-
url: true,
|
| 6106 |
-
tel: true,
|
| 6107 |
-
email: true,
|
| 6108 |
-
password: true,
|
| 6109 |
-
number: true,
|
| 6110 |
-
date: true,
|
| 6111 |
-
month: true,
|
| 6112 |
-
week: true,
|
| 6113 |
-
time: true,
|
| 6114 |
-
datetime: true,
|
| 6115 |
-
'datetime-local': true
|
| 6116 |
-
};
|
| 6117 |
-
/**
|
| 6118 |
-
* Computes whether the given element should automatically trigger the
|
| 6119 |
-
* `focus-visible` class being added, i.e. whether it should always match
|
| 6120 |
-
* `:focus-visible` when focused.
|
| 6121 |
-
* @param {Element} node
|
| 6122 |
-
* @return {boolean}
|
| 6123 |
-
*/
|
| 6124 |
-
|
| 6125 |
-
function focusTriggersKeyboardModality(node) {
|
| 6126 |
-
var type = node.type,
|
| 6127 |
-
tagName = node.tagName;
|
| 6128 |
-
|
| 6129 |
-
if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {
|
| 6130 |
-
return true;
|
| 6131 |
-
}
|
| 6132 |
-
|
| 6133 |
-
if (tagName === 'TEXTAREA' && !node.readOnly) {
|
| 6134 |
-
return true;
|
| 6135 |
-
}
|
| 6136 |
-
|
| 6137 |
-
if (node.isContentEditable) {
|
| 6138 |
-
return true;
|
| 6139 |
-
}
|
| 6140 |
-
|
| 6141 |
-
return false;
|
| 6142 |
-
}
|
| 6143 |
-
/**
|
| 6144 |
-
* Keep track of our keyboard modality state with `hadKeyboardEvent`.
|
| 6145 |
-
* If the most recent user interaction was via the keyboard;
|
| 6146 |
-
* and the key press did not include a meta, alt/option, or control key;
|
| 6147 |
-
* then the modality is keyboard. Otherwise, the modality is not keyboard.
|
| 6148 |
-
* @param {KeyboardEvent} event
|
| 6149 |
-
*/
|
| 6150 |
-
|
| 6151 |
-
|
| 6152 |
-
function handleKeyDown(event) {
|
| 6153 |
-
if (event.metaKey || event.altKey || event.ctrlKey) {
|
| 6154 |
-
return;
|
| 6155 |
-
}
|
| 6156 |
-
|
| 6157 |
-
hadKeyboardEvent = true;
|
| 6158 |
-
}
|
| 6159 |
-
/**
|
| 6160 |
-
* If at any point a user clicks with a pointing device, ensure that we change
|
| 6161 |
-
* the modality away from keyboard.
|
| 6162 |
-
* This avoids the situation where a user presses a key on an already focused
|
| 6163 |
-
* element, and then clicks on a different element, focusing it with a
|
| 6164 |
-
* pointing device, while we still think we're in keyboard modality.
|
| 6165 |
-
*/
|
| 6166 |
-
|
| 6167 |
-
|
| 6168 |
-
function handlePointerDown() {
|
| 6169 |
-
hadKeyboardEvent = false;
|
| 6170 |
-
}
|
| 6171 |
-
|
| 6172 |
-
function handleVisibilityChange() {
|
| 6173 |
-
if (this.visibilityState === 'hidden') {
|
| 6174 |
-
// If the tab becomes active again, the browser will handle calling focus
|
| 6175 |
-
// on the element (Safari actually calls it twice).
|
| 6176 |
-
// If this tab change caused a blur on an element with focus-visible,
|
| 6177 |
-
// re-apply the class when the user switches back to the tab.
|
| 6178 |
-
if (hadFocusVisibleRecently) {
|
| 6179 |
-
hadKeyboardEvent = true;
|
| 6180 |
-
}
|
| 6181 |
-
}
|
| 6182 |
-
}
|
| 6183 |
-
|
| 6184 |
-
function prepare(doc) {
|
| 6185 |
-
doc.addEventListener('keydown', handleKeyDown, true);
|
| 6186 |
-
doc.addEventListener('mousedown', handlePointerDown, true);
|
| 6187 |
-
doc.addEventListener('pointerdown', handlePointerDown, true);
|
| 6188 |
-
doc.addEventListener('touchstart', handlePointerDown, true);
|
| 6189 |
-
doc.addEventListener('visibilitychange', handleVisibilityChange, true);
|
| 6190 |
-
}
|
| 6191 |
-
|
| 6192 |
-
function teardown(doc) {
|
| 6193 |
-
doc.removeEventListener('keydown', handleKeyDown, true);
|
| 6194 |
-
doc.removeEventListener('mousedown', handlePointerDown, true);
|
| 6195 |
-
doc.removeEventListener('pointerdown', handlePointerDown, true);
|
| 6196 |
-
doc.removeEventListener('touchstart', handlePointerDown, true);
|
| 6197 |
-
doc.removeEventListener('visibilitychange', handleVisibilityChange, true);
|
| 6198 |
-
}
|
| 6199 |
-
|
| 6200 |
-
function isFocusVisible(event) {
|
| 6201 |
-
var target = event.target;
|
| 6202 |
-
|
| 6203 |
-
try {
|
| 6204 |
-
return target.matches(':focus-visible');
|
| 6205 |
-
} catch (error) {// browsers not implementing :focus-visible will throw a SyntaxError
|
| 6206 |
-
// we use our own heuristic for those browsers
|
| 6207 |
-
// rethrow might be better if it's not the expected error but do we really
|
| 6208 |
-
// want to crash if focus-visible malfunctioned?
|
| 6209 |
-
} // no need for validFocusTarget check. the user does that by attaching it to
|
| 6210 |
-
// focusable events only
|
| 6211 |
-
|
| 6212 |
-
|
| 6213 |
-
return hadKeyboardEvent || focusTriggersKeyboardModality(target);
|
| 6214 |
-
}
|
| 6215 |
-
/**
|
| 6216 |
-
* Should be called if a blur event is fired on a focus-visible element
|
| 6217 |
-
*/
|
| 6218 |
-
|
| 6219 |
-
|
| 6220 |
-
function handleBlurVisible() {
|
| 6221 |
-
// To detect a tab/window switch, we look for a blur event followed
|
| 6222 |
-
// rapidly by a visibility change.
|
| 6223 |
-
// If we don't see a visibility change within 100ms, it's probably a
|
| 6224 |
-
// regular focus change.
|
| 6225 |
-
hadFocusVisibleRecently = true;
|
| 6226 |
-
window.clearTimeout(hadFocusVisibleRecentlyTimeout);
|
| 6227 |
-
hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
|
| 6228 |
-
hadFocusVisibleRecently = false;
|
| 6229 |
-
}, 100);
|
| 6230 |
-
}
|
| 6231 |
-
|
| 6232 |
-
function useIsFocusVisible() {
|
| 6233 |
-
var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (instance) {
|
| 6234 |
-
var node = __WEBPACK_IMPORTED_MODULE_1_react_dom__["findDOMNode"](instance);
|
| 6235 |
-
|
| 6236 |
-
if (node != null) {
|
| 6237 |
-
prepare(node.ownerDocument);
|
| 6238 |
-
}
|
| 6239 |
-
}, []);
|
| 6240 |
-
|
| 6241 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 6242 |
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
| 6243 |
-
__WEBPACK_IMPORTED_MODULE_0_react__["useDebugValue"](isFocusVisible);
|
| 6244 |
-
}
|
| 6245 |
-
|
| 6246 |
-
return {
|
| 6247 |
-
isFocusVisible: isFocusVisible,
|
| 6248 |
-
onBlurVisible: handleBlurVisible,
|
| 6249 |
-
ref: ref
|
| 6250 |
-
};
|
| 6251 |
-
}
|
| 6252 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 6253 |
-
|
| 6254 |
-
/***/ }),
|
| 6255 |
-
/* 68 */
|
| 6256 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6257 |
-
|
| 6258 |
-
"use strict";
|
| 6259 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Modal__ = __webpack_require__(583);
|
| 6260 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Modal__["a"]; });
|
| 6261 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ModalManager__ = __webpack_require__(267);
|
| 6262 |
-
/* unused harmony reexport ModalManager */
|
| 6263 |
-
|
| 6264 |
-
|
| 6265 |
-
|
| 6266 |
-
/***/ }),
|
| 6267 |
-
/* 69 */
|
| 6268 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6269 |
-
|
| 6270 |
-
"use strict";
|
| 6271 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Grow__ = __webpack_require__(610);
|
| 6272 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Grow__["a"]; });
|
| 6273 |
-
|
| 6274 |
-
|
| 6275 |
-
/***/ }),
|
| 6276 |
-
/* 70 */
|
| 6277 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6278 |
-
|
| 6279 |
-
"use strict";
|
| 6280 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Input__ = __webpack_require__(615);
|
| 6281 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Input__["a"]; });
|
| 6282 |
-
|
| 6283 |
-
|
| 6284 |
-
/***/ }),
|
| 6285 |
-
/* 71 */
|
| 6286 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6287 |
-
|
| 6288 |
-
"use strict";
|
| 6289 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 6290 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 6291 |
-
|
| 6292 |
-
/**
|
| 6293 |
-
* @ignore - internal component.
|
| 6294 |
-
*/
|
| 6295 |
-
|
| 6296 |
-
var ListContext = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
|
| 6297 |
-
|
| 6298 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 6299 |
-
ListContext.displayName = 'ListContext';
|
| 6300 |
-
}
|
| 6301 |
-
|
| 6302 |
-
/* harmony default export */ __webpack_exports__["a"] = (ListContext);
|
| 6303 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 6304 |
-
|
| 6305 |
-
/***/ }),
|
| 6306 |
-
/* 72 */
|
| 6307 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6308 |
-
|
| 6309 |
-
"use strict";
|
| 6310 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 6311 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 6312 |
-
|
| 6313 |
-
/**
|
| 6314 |
-
* @ignore - internal component.
|
| 6315 |
-
*/
|
| 6316 |
-
|
| 6317 |
-
var Tablelvl2Context = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
|
| 6318 |
-
|
| 6319 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 6320 |
-
Tablelvl2Context.displayName = 'Tablelvl2Context';
|
| 6321 |
-
}
|
| 6322 |
-
|
| 6323 |
-
/* harmony default export */ __webpack_exports__["a"] = (Tablelvl2Context);
|
| 6324 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 6325 |
-
|
| 6326 |
-
/***/ }),
|
| 6327 |
-
/* 73 */
|
| 6328 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 6329 |
-
|
| 6330 |
-
var root = __webpack_require__(30);
|
| 6331 |
-
|
| 6332 |
-
/** Built-in value references. */
|
| 6333 |
-
var Symbol = root.Symbol;
|
| 6334 |
-
|
| 6335 |
-
module.exports = Symbol;
|
| 6336 |
-
|
| 6337 |
-
|
| 6338 |
-
/***/ }),
|
| 6339 |
-
/* 74 */
|
| 6340 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 6341 |
-
|
| 6342 |
-
var arrayLikeKeys = __webpack_require__(357),
|
| 6343 |
-
baseKeys = __webpack_require__(734),
|
| 6344 |
-
isArrayLike = __webpack_require__(63);
|
| 6345 |
-
|
| 6346 |
-
/**
|
| 6347 |
-
* Creates an array of the own enumerable property names of `object`.
|
| 6348 |
-
*
|
| 6349 |
-
* **Note:** Non-object values are coerced to objects. See the
|
| 6350 |
-
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
| 6351 |
-
* for more details.
|
| 6352 |
-
*
|
| 6353 |
-
* @static
|
| 6354 |
-
* @since 0.1.0
|
| 6355 |
-
* @memberOf _
|
| 6356 |
-
* @category Object
|
| 6357 |
-
* @param {Object} object The object to query.
|
| 6358 |
-
* @returns {Array} Returns the array of property names.
|
| 6359 |
-
* @example
|
| 6360 |
-
*
|
| 6361 |
-
* function Foo() {
|
| 6362 |
-
* this.a = 1;
|
| 6363 |
-
* this.b = 2;
|
| 6364 |
-
* }
|
| 6365 |
-
*
|
| 6366 |
-
* Foo.prototype.c = 3;
|
| 6367 |
-
*
|
| 6368 |
-
* _.keys(new Foo);
|
| 6369 |
-
* // => ['a', 'b'] (iteration order is not guaranteed)
|
| 6370 |
-
*
|
| 6371 |
-
* _.keys('hi');
|
| 6372 |
-
* // => ['0', '1']
|
| 6373 |
-
*/
|
| 6374 |
-
function keys(object) {
|
| 6375 |
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
| 6376 |
-
}
|
| 6377 |
-
|
| 6378 |
-
module.exports = keys;
|
| 6379 |
-
|
| 6380 |
-
|
| 6381 |
-
/***/ }),
|
| 6382 |
-
/* 75 */
|
| 6383 |
-
/***/ (function(module, exports) {
|
| 6384 |
-
|
| 6385 |
-
/**
|
| 6386 |
-
* Performs a
|
| 6387 |
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
| 6388 |
-
* comparison between two values to determine if they are equivalent.
|
| 6389 |
-
*
|
| 6390 |
-
* @static
|
| 6391 |
-
* @memberOf _
|
| 6392 |
-
* @since 4.0.0
|
| 6393 |
-
* @category Lang
|
| 6394 |
-
* @param {*} value The value to compare.
|
| 6395 |
-
* @param {*} other The other value to compare.
|
| 6396 |
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
| 6397 |
-
* @example
|
| 6398 |
-
*
|
| 6399 |
-
* var object = { 'a': 1 };
|
| 6400 |
-
* var other = { 'a': 1 };
|
| 6401 |
-
*
|
| 6402 |
-
* _.eq(object, object);
|
| 6403 |
-
* // => true
|
| 6404 |
-
*
|
| 6405 |
-
* _.eq(object, other);
|
| 6406 |
-
* // => false
|
| 6407 |
-
*
|
| 6408 |
-
* _.eq('a', 'a');
|
| 6409 |
-
* // => true
|
| 6410 |
-
*
|
| 6411 |
-
* _.eq('a', Object('a'));
|
| 6412 |
-
* // => false
|
| 6413 |
-
*
|
| 6414 |
-
* _.eq(NaN, NaN);
|
| 6415 |
-
* // => true
|
| 6416 |
-
*/
|
| 6417 |
-
function eq(value, other) {
|
| 6418 |
-
return value === other || (value !== value && other !== other);
|
| 6419 |
-
}
|
| 6420 |
-
|
| 6421 |
-
module.exports = eq;
|
| 6422 |
-
|
| 6423 |
-
|
| 6424 |
-
/***/ }),
|
| 6425 |
-
/* 76 */
|
| 6426 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 6427 |
-
|
| 6428 |
-
var assignValue = __webpack_require__(376),
|
| 6429 |
-
baseAssignValue = __webpack_require__(181);
|
| 6430 |
-
|
| 6431 |
-
/**
|
| 6432 |
-
* Copies properties of `source` to `object`.
|
| 6433 |
-
*
|
| 6434 |
-
* @private
|
| 6435 |
-
* @param {Object} source The object to copy properties from.
|
| 6436 |
-
* @param {Array} props The property identifiers to copy.
|
| 6437 |
-
* @param {Object} [object={}] The object to copy properties to.
|
| 6438 |
-
* @param {Function} [customizer] The function to customize copied values.
|
| 6439 |
-
* @returns {Object} Returns `object`.
|
| 6440 |
-
*/
|
| 6441 |
-
function copyObject(source, props, object, customizer) {
|
| 6442 |
-
var isNew = !object;
|
| 6443 |
-
object || (object = {});
|
| 6444 |
-
|
| 6445 |
-
var index = -1,
|
| 6446 |
-
length = props.length;
|
| 6447 |
-
|
| 6448 |
-
while (++index < length) {
|
| 6449 |
-
var key = props[index];
|
| 6450 |
-
|
| 6451 |
-
var newValue = customizer
|
| 6452 |
-
? customizer(object[key], source[key], key, object, source)
|
| 6453 |
-
: undefined;
|
| 6454 |
-
|
| 6455 |
-
if (newValue === undefined) {
|
| 6456 |
-
newValue = source[key];
|
| 6457 |
-
}
|
| 6458 |
-
if (isNew) {
|
| 6459 |
-
baseAssignValue(object, key, newValue);
|
| 6460 |
-
} else {
|
| 6461 |
-
assignValue(object, key, newValue);
|
| 6462 |
-
}
|
| 6463 |
-
}
|
| 6464 |
-
return object;
|
| 6465 |
-
}
|
| 6466 |
-
|
| 6467 |
-
module.exports = copyObject;
|
| 6468 |
-
|
| 6469 |
-
|
| 6470 |
-
/***/ }),
|
| 6471 |
-
/* 77 */
|
| 6472 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6473 |
-
|
| 6474 |
-
"use strict";
|
| 6475 |
-
/* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
|
| 6476 |
-
function warning(condition, message) {
|
| 6477 |
-
if (!isProduction) {
|
| 6478 |
-
if (condition) {
|
| 6479 |
-
return;
|
| 6480 |
-
}
|
| 6481 |
-
|
| 6482 |
-
var text = "Warning: " + message;
|
| 6483 |
-
|
| 6484 |
-
if (typeof console !== 'undefined') {
|
| 6485 |
-
console.warn(text);
|
| 6486 |
-
}
|
| 6487 |
-
|
| 6488 |
-
try {
|
| 6489 |
-
throw Error(text);
|
| 6490 |
-
} catch (x) {}
|
| 6491 |
-
}
|
| 6492 |
-
}
|
| 6493 |
-
|
| 6494 |
-
/* harmony default export */ __webpack_exports__["a"] = (warning);
|
| 6495 |
-
|
| 6496 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 6497 |
-
|
| 6498 |
-
/***/ }),
|
| 6499 |
-
/* 78 */
|
| 6500 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6501 |
-
|
| 6502 |
-
"use strict";
|
| 6503 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__ = __webpack_require__(442);
|
| 6504 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__["a"]; });
|
| 6505 |
-
|
| 6506 |
-
|
| 6507 |
-
/***/ }),
|
| 6508 |
-
/* 79 */
|
| 6509 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6510 |
-
|
| 6511 |
-
"use strict";
|
| 6512 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _createClass;
|
| 6513 |
-
function _defineProperties(target, props) {
|
| 6514 |
-
for (var i = 0; i < props.length; i++) {
|
| 6515 |
-
var descriptor = props[i];
|
| 6516 |
-
descriptor.enumerable = descriptor.enumerable || false;
|
| 6517 |
-
descriptor.configurable = true;
|
| 6518 |
-
if ("value" in descriptor) descriptor.writable = true;
|
| 6519 |
-
Object.defineProperty(target, descriptor.key, descriptor);
|
| 6520 |
-
}
|
| 6521 |
-
}
|
| 6522 |
-
|
| 6523 |
-
function _createClass(Constructor, protoProps, staticProps) {
|
| 6524 |
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
| 6525 |
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
| 6526 |
-
return Constructor;
|
| 6527 |
-
}
|
| 6528 |
-
|
| 6529 |
-
/***/ }),
|
| 6530 |
-
/* 80 */
|
| 6531 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6532 |
-
|
| 6533 |
-
"use strict";
|
| 6534 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__makeStyles__ = __webpack_require__(457);
|
| 6535 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__makeStyles__["a"]; });
|
| 6536 |
-
|
| 6537 |
-
|
| 6538 |
-
/***/ }),
|
| 6539 |
-
/* 81 */
|
| 6540 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6541 |
-
|
| 6542 |
-
"use strict";
|
| 6543 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StylesProvider__ = __webpack_require__(197);
|
| 6544 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["b"]; });
|
| 6545 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["a"]; });
|
| 6546 |
-
|
| 6547 |
-
|
| 6548 |
-
|
| 6549 |
-
/***/ }),
|
| 6550 |
-
/* 82 */
|
| 6551 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 6552 |
-
|
| 6553 |
-
"use strict";
|
| 6554 |
-
|
| 6555 |
-
|
| 6556 |
-
var reactIs = __webpack_require__(15);
|
| 6557 |
-
|
| 6558 |
-
/**
|
| 6559 |
-
* Copyright 2015, Yahoo! Inc.
|
| 6560 |
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
| 6561 |
-
*/
|
| 6562 |
-
var REACT_STATICS = {
|
| 6563 |
-
childContextTypes: true,
|
| 6564 |
-
contextType: true,
|
| 6565 |
-
contextTypes: true,
|
| 6566 |
-
defaultProps: true,
|
| 6567 |
-
displayName: true,
|
| 6568 |
-
getDefaultProps: true,
|
| 6569 |
-
getDerivedStateFromError: true,
|
| 6570 |
-
getDerivedStateFromProps: true,
|
| 6571 |
-
mixins: true,
|
| 6572 |
-
propTypes: true,
|
| 6573 |
-
type: true
|
| 6574 |
-
};
|
| 6575 |
-
var KNOWN_STATICS = {
|
| 6576 |
-
name: true,
|
| 6577 |
-
length: true,
|
| 6578 |
-
prototype: true,
|
| 6579 |
-
caller: true,
|
| 6580 |
-
callee: true,
|
| 6581 |
-
arguments: true,
|
| 6582 |
-
arity: true
|
| 6583 |
-
};
|
| 6584 |
-
var FORWARD_REF_STATICS = {
|
| 6585 |
-
'$$typeof': true,
|
| 6586 |
-
render: true,
|
| 6587 |
-
defaultProps: true,
|
| 6588 |
-
displayName: true,
|
| 6589 |
-
propTypes: true
|
| 6590 |
-
};
|
| 6591 |
-
var MEMO_STATICS = {
|
| 6592 |
-
'$$typeof': true,
|
| 6593 |
-
compare: true,
|
| 6594 |
-
defaultProps: true,
|
| 6595 |
-
displayName: true,
|
| 6596 |
-
propTypes: true,
|
| 6597 |
-
type: true
|
| 6598 |
-
};
|
| 6599 |
-
var TYPE_STATICS = {};
|
| 6600 |
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
| 6601 |
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
| 6602 |
-
|
| 6603 |
-
function getStatics(component) {
|
| 6604 |
-
// React v16.11 and below
|
| 6605 |
-
if (reactIs.isMemo(component)) {
|
| 6606 |
-
return MEMO_STATICS;
|
| 6607 |
-
} // React v16.12 and above
|
| 6608 |
-
|
| 6609 |
-
|
| 6610 |
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
| 6611 |
-
}
|
| 6612 |
-
|
| 6613 |
-
var defineProperty = Object.defineProperty;
|
| 6614 |
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
| 6615 |
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
| 6616 |
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
| 6617 |
-
var getPrototypeOf = Object.getPrototypeOf;
|
| 6618 |
-
var objectPrototype = Object.prototype;
|
| 6619 |
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
| 6620 |
-
if (typeof sourceComponent !== 'string') {
|
| 6621 |
-
// don't hoist over string (html) components
|
| 6622 |
-
if (objectPrototype) {
|
| 6623 |
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
| 6624 |
-
|
| 6625 |
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
| 6626 |
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
| 6627 |
-
}
|
| 6628 |
-
}
|
| 6629 |
-
|
| 6630 |
-
var keys = getOwnPropertyNames(sourceComponent);
|
| 6631 |
-
|
| 6632 |
-
if (getOwnPropertySymbols) {
|
| 6633 |
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
| 6634 |
-
}
|
| 6635 |
-
|
| 6636 |
-
var targetStatics = getStatics(targetComponent);
|
| 6637 |
-
var sourceStatics = getStatics(sourceComponent);
|
| 6638 |
-
|
| 6639 |
-
for (var i = 0; i < keys.length; ++i) {
|
| 6640 |
-
var key = keys[i];
|
| 6641 |
-
|
| 6642 |
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
| 6643 |
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
| 6644 |
-
|
| 6645 |
-
try {
|
| 6646 |
-
// Avoid failures from read-only properties
|
| 6647 |
-
defineProperty(targetComponent, key, descriptor);
|
| 6648 |
-
} catch (e) {}
|
| 6649 |
-
}
|
| 6650 |
-
}
|
| 6651 |
-
}
|
| 6652 |
-
|
| 6653 |
-
return targetComponent;
|
| 6654 |
-
}
|
| 6655 |
-
|
| 6656 |
-
module.exports = hoistNonReactStatics;
|
| 6657 |
-
|
| 6658 |
-
|
| 6659 |
-
/***/ }),
|
| 6660 |
-
/* 83 */
|
| 6661 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6662 |
-
|
| 6663 |
-
"use strict";
|
| 6664 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
|
| 6665 |
-
|
| 6666 |
-
|
| 6667 |
-
function merge(acc, item) {
|
| 6668 |
-
if (!item) {
|
| 6669 |
-
return acc;
|
| 6670 |
-
}
|
| 6671 |
-
|
| 6672 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["c" /* deepmerge */])(acc, item, {
|
| 6673 |
-
clone: false // No need to clone deep, it's way faster.
|
| 6674 |
-
|
| 6675 |
-
});
|
| 6676 |
-
}
|
| 6677 |
-
|
| 6678 |
-
/* harmony default export */ __webpack_exports__["a"] = (merge);
|
| 6679 |
-
|
| 6680 |
-
/***/ }),
|
| 6681 |
-
/* 84 */
|
| 6682 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6683 |
-
|
| 6684 |
-
"use strict";
|
| 6685 |
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
| 6686 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NonceProvider", function() { return NonceProvider; });
|
| 6687 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 6688 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 6689 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_memoize_one__ = __webpack_require__(227);
|
| 6690 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_core__ = __webpack_require__(128);
|
| 6691 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom__ = __webpack_require__(11);
|
| 6692 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_dom__);
|
| 6693 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
|
| 6694 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
|
| 6695 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(129);
|
| 6696 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__index_4322c0ed_browser_esm_js__ = __webpack_require__(231);
|
| 6697 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return __WEBPACK_IMPORTED_MODULE_6__index_4322c0ed_browser_esm_js__["z"]; });
|
| 6698 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__ = __webpack_require__(233);
|
| 6699 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createFilter", function() { return __WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__["c"]; });
|
| 6700 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "defaultTheme", function() { return __WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__["b"]; });
|
| 6701 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mergeStyles", function() { return __WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__["d"]; });
|
| 6702 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__emotion_css__ = __webpack_require__(65);
|
| 6703 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_input_autosize__ = __webpack_require__(232);
|
| 6704 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react_input_autosize__);
|
| 6705 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__stateManager_04f734a2_browser_esm_js__ = __webpack_require__(486);
|
| 6706 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__emotion_cache__ = __webpack_require__(228);
|
| 6707 |
-
|
| 6708 |
-
|
| 6709 |
-
|
| 6710 |
-
|
| 6711 |
-
|
| 6712 |
-
|
| 6713 |
-
|
| 6714 |
-
|
| 6715 |
-
|
| 6716 |
-
|
| 6717 |
-
|
| 6718 |
-
|
| 6719 |
-
|
| 6720 |
-
|
| 6721 |
-
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
| 6722 |
-
|
| 6723 |
-
var NonceProvider =
|
| 6724 |
-
/*#__PURE__*/
|
| 6725 |
-
function (_Component) {
|
| 6726 |
-
_inheritsLoose(NonceProvider, _Component);
|
| 6727 |
-
|
| 6728 |
-
function NonceProvider(props) {
|
| 6729 |
-
var _this;
|
| 6730 |
-
|
| 6731 |
-
_this = _Component.call(this, props) || this;
|
| 6732 |
-
|
| 6733 |
-
_this.createEmotionCache = function (nonce) {
|
| 6734 |
-
return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_cache__["a" /* default */])({
|
| 6735 |
-
nonce: nonce
|
| 6736 |
-
});
|
| 6737 |
-
};
|
| 6738 |
-
|
| 6739 |
-
_this.createEmotionCache = Object(__WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */])(_this.createEmotionCache);
|
| 6740 |
-
return _this;
|
| 6741 |
-
}
|
| 6742 |
-
|
| 6743 |
-
var _proto = NonceProvider.prototype;
|
| 6744 |
-
|
| 6745 |
-
_proto.render = function render() {
|
| 6746 |
-
var emotionCache = this.createEmotionCache(this.props.nonce);
|
| 6747 |
-
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__emotion_core__["a" /* CacheProvider */], {
|
| 6748 |
-
value: emotionCache
|
| 6749 |
-
}, this.props.children);
|
| 6750 |
-
};
|
| 6751 |
-
|
| 6752 |
-
return NonceProvider;
|
| 6753 |
-
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
| 6754 |
-
|
| 6755 |
-
var index = Object(__WEBPACK_IMPORTED_MODULE_10__stateManager_04f734a2_browser_esm_js__["a" /* m */])(__WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__["a" /* S */]);
|
| 6756 |
-
|
| 6757 |
-
/* harmony default export */ __webpack_exports__["default"] = (index);
|
| 6758 |
-
|
| 6759 |
-
|
| 6760 |
-
|
| 6761 |
-
/***/ }),
|
| 6762 |
-
/* 85 */
|
| 6763 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6764 |
-
|
| 6765 |
-
"use strict";
|
| 6766 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SvgIcon__ = __webpack_require__(515);
|
| 6767 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SvgIcon__["a"]; });
|
| 6768 |
-
|
| 6769 |
-
|
| 6770 |
-
/***/ }),
|
| 6771 |
-
/* 86 */
|
| 6772 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6773 |
-
|
| 6774 |
-
"use strict";
|
| 6775 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = ownerWindow;
|
| 6776 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ownerDocument__ = __webpack_require__(29);
|
| 6777 |
-
|
| 6778 |
-
function ownerWindow(node) {
|
| 6779 |
-
var doc = Object(__WEBPACK_IMPORTED_MODULE_0__ownerDocument__["a" /* default */])(node);
|
| 6780 |
-
return doc.defaultView || window;
|
| 6781 |
-
}
|
| 6782 |
-
|
| 6783 |
-
/***/ }),
|
| 6784 |
-
/* 87 */
|
| 6785 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6786 |
-
|
| 6787 |
-
"use strict";
|
| 6788 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = unsupportedProp;
|
| 6789 |
-
function unsupportedProp(props, propName, componentName, location, propFullName) {
|
| 6790 |
-
if (process.env.NODE_ENV === 'production') {
|
| 6791 |
-
return null;
|
| 6792 |
-
}
|
| 6793 |
-
|
| 6794 |
-
var propFullNameSafe = propFullName || propName;
|
| 6795 |
-
|
| 6796 |
-
if (typeof props[propName] !== 'undefined') {
|
| 6797 |
-
return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it."));
|
| 6798 |
-
}
|
| 6799 |
-
|
| 6800 |
-
return null;
|
| 6801 |
-
}
|
| 6802 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 6803 |
-
|
| 6804 |
-
/***/ }),
|
| 6805 |
-
/* 88 */
|
| 6806 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6807 |
-
|
| 6808 |
-
"use strict";
|
| 6809 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = useId;
|
| 6810 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 6811 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 6812 |
-
|
| 6813 |
-
/**
|
| 6814 |
-
* Private module reserved for @material-ui/x packages.
|
| 6815 |
-
*/
|
| 6816 |
-
|
| 6817 |
-
function useId(idOverride) {
|
| 6818 |
-
var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](idOverride),
|
| 6819 |
-
defaultId = _React$useState[0],
|
| 6820 |
-
setDefaultId = _React$useState[1];
|
| 6821 |
-
|
| 6822 |
-
var id = idOverride || defaultId;
|
| 6823 |
-
__WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
|
| 6824 |
-
if (defaultId == null) {
|
| 6825 |
-
// Fallback to this default id when possible.
|
| 6826 |
-
// Use the random value for client-side rendering only.
|
| 6827 |
-
// We can't use it server-side.
|
| 6828 |
-
setDefaultId("mui-".concat(Math.round(Math.random() * 1e5)));
|
| 6829 |
-
}
|
| 6830 |
-
}, [defaultId]);
|
| 6831 |
-
return id;
|
| 6832 |
-
}
|
| 6833 |
-
|
| 6834 |
-
/***/ }),
|
| 6835 |
-
/* 89 */
|
| 6836 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6837 |
-
|
| 6838 |
-
"use strict";
|
| 6839 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Backdrop__ = __webpack_require__(554);
|
| 6840 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Backdrop__["a"]; });
|
| 6841 |
-
|
| 6842 |
-
|
| 6843 |
-
/***/ }),
|
| 6844 |
-
/* 90 */
|
| 6845 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6846 |
-
|
| 6847 |
-
"use strict";
|
| 6848 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fade__ = __webpack_require__(555);
|
| 6849 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fade__["a"]; });
|
| 6850 |
-
|
| 6851 |
-
|
| 6852 |
-
/***/ }),
|
| 6853 |
-
/* 91 */
|
| 6854 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6855 |
-
|
| 6856 |
-
"use strict";
|
| 6857 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["b"] = useFormControl;
|
| 6858 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 6859 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 6860 |
-
|
| 6861 |
-
/**
|
| 6862 |
-
* @ignore - internal component.
|
| 6863 |
-
*/
|
| 6864 |
-
|
| 6865 |
-
var FormControlContext = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
|
| 6866 |
-
|
| 6867 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 6868 |
-
FormControlContext.displayName = 'FormControlContext';
|
| 6869 |
-
}
|
| 6870 |
-
|
| 6871 |
-
function useFormControl() {
|
| 6872 |
-
return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](FormControlContext);
|
| 6873 |
-
}
|
| 6874 |
-
/* harmony default export */ __webpack_exports__["a"] = (FormControlContext);
|
| 6875 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 6876 |
-
|
| 6877 |
-
/***/ }),
|
| 6878 |
-
/* 92 */
|
| 6879 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6880 |
-
|
| 6881 |
-
"use strict";
|
| 6882 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Portal__ = __webpack_require__(584);
|
| 6883 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Portal__["a"]; });
|
| 6884 |
-
|
| 6885 |
-
|
| 6886 |
-
/***/ }),
|
| 6887 |
-
/* 93 */
|
| 6888 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6889 |
-
|
| 6890 |
-
"use strict";
|
| 6891 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fab__ = __webpack_require__(597);
|
| 6892 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fab__["a"]; });
|
| 6893 |
-
|
| 6894 |
-
|
| 6895 |
-
/***/ }),
|
| 6896 |
-
/* 94 */
|
| 6897 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6898 |
-
|
| 6899 |
-
"use strict";
|
| 6900 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FilledInput__ = __webpack_require__(598);
|
| 6901 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FilledInput__["a"]; });
|
| 6902 |
-
|
| 6903 |
-
|
| 6904 |
-
/***/ }),
|
| 6905 |
-
/* 95 */
|
| 6906 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6907 |
-
|
| 6908 |
-
"use strict";
|
| 6909 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormControl__ = __webpack_require__(601);
|
| 6910 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormControl__["a"]; });
|
| 6911 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__useFormControl__ = __webpack_require__(49);
|
| 6912 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__useFormControl__["a"]; });
|
| 6913 |
-
|
| 6914 |
-
|
| 6915 |
-
|
| 6916 |
-
/***/ }),
|
| 6917 |
-
/* 96 */
|
| 6918 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6919 |
-
|
| 6920 |
-
"use strict";
|
| 6921 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withWidth__ = __webpack_require__(286);
|
| 6922 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["a"]; });
|
| 6923 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["b"]; });
|
| 6924 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["c"]; });
|
| 6925 |
-
|
| 6926 |
-
|
| 6927 |
-
|
| 6928 |
-
/***/ }),
|
| 6929 |
-
/* 97 */
|
| 6930 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6931 |
-
|
| 6932 |
-
"use strict";
|
| 6933 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__ = __webpack_require__(632);
|
| 6934 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__["a"]; });
|
| 6935 |
-
|
| 6936 |
-
|
| 6937 |
-
/***/ }),
|
| 6938 |
-
/* 98 */
|
| 6939 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6940 |
-
|
| 6941 |
-
"use strict";
|
| 6942 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popper__ = __webpack_require__(634);
|
| 6943 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popper__["a"]; });
|
| 6944 |
-
|
| 6945 |
-
|
| 6946 |
-
/***/ }),
|
| 6947 |
-
/* 99 */
|
| 6948 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6949 |
-
|
| 6950 |
-
"use strict";
|
| 6951 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Select__ = __webpack_require__(646);
|
| 6952 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Select__["a"]; });
|
| 6953 |
-
|
| 6954 |
-
|
| 6955 |
-
/***/ }),
|
| 6956 |
-
/* 100 */
|
| 6957 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6958 |
-
|
| 6959 |
-
"use strict";
|
| 6960 |
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
| 6961 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tooltip__ = __webpack_require__(684);
|
| 6962 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Tooltip__["a"]; });
|
| 6963 |
-
|
| 6964 |
-
|
| 6965 |
-
/***/ }),
|
| 6966 |
-
/* 101 */
|
| 6967 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6968 |
-
|
| 6969 |
-
"use strict";
|
| 6970 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabContext__ = __webpack_require__(339);
|
| 6971 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["a"]; });
|
| 6972 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["b"]; });
|
| 6973 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["c"]; });
|
| 6974 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["d"]; });
|
| 6975 |
-
|
| 6976 |
-
|
| 6977 |
-
|
| 6978 |
-
/***/ }),
|
| 6979 |
-
/* 102 */
|
| 6980 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 6981 |
-
|
| 6982 |
-
"use strict";
|
| 6983 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 6984 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 6985 |
-
|
| 6986 |
-
/**
|
| 6987 |
-
* @ignore - internal component.
|
| 6988 |
-
*/
|
| 6989 |
-
|
| 6990 |
-
var TimelineContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
|
| 6991 |
-
|
| 6992 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 6993 |
-
TimelineContext.displayName = 'TimelineContext';
|
| 6994 |
-
}
|
| 6995 |
-
|
| 6996 |
-
/* harmony default export */ __webpack_exports__["a"] = (TimelineContext);
|
| 6997 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 6998 |
-
|
| 6999 |
-
/***/ }),
|
| 7000 |
-
/* 103 */
|
| 7001 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7002 |
-
|
| 7003 |
-
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(30),
|
| 7004 |
-
stubFalse = __webpack_require__(732);
|
| 7005 |
-
|
| 7006 |
-
/** Detect free variable `exports`. */
|
| 7007 |
-
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
| 7008 |
-
|
| 7009 |
-
/** Detect free variable `module`. */
|
| 7010 |
-
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
| 7011 |
-
|
| 7012 |
-
/** Detect the popular CommonJS extension `module.exports`. */
|
| 7013 |
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
| 7014 |
-
|
| 7015 |
-
/** Built-in value references. */
|
| 7016 |
-
var Buffer = moduleExports ? root.Buffer : undefined;
|
| 7017 |
-
|
| 7018 |
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
| 7019 |
-
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
| 7020 |
-
|
| 7021 |
-
/**
|
| 7022 |
-
* Checks if `value` is a buffer.
|
| 7023 |
-
*
|
| 7024 |
-
* @static
|
| 7025 |
-
* @memberOf _
|
| 7026 |
-
* @since 4.3.0
|
| 7027 |
-
* @category Lang
|
| 7028 |
-
* @param {*} value The value to check.
|
| 7029 |
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
| 7030 |
-
* @example
|
| 7031 |
-
*
|
| 7032 |
-
* _.isBuffer(new Buffer(2));
|
| 7033 |
-
* // => true
|
| 7034 |
-
*
|
| 7035 |
-
* _.isBuffer(new Uint8Array(2));
|
| 7036 |
-
* // => false
|
| 7037 |
-
*/
|
| 7038 |
-
var isBuffer = nativeIsBuffer || stubFalse;
|
| 7039 |
-
|
| 7040 |
-
module.exports = isBuffer;
|
| 7041 |
-
|
| 7042 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(168)(module)))
|
| 7043 |
-
|
| 7044 |
-
/***/ }),
|
| 7045 |
-
/* 104 */
|
| 7046 |
-
/***/ (function(module, exports) {
|
| 7047 |
-
|
| 7048 |
-
/**
|
| 7049 |
-
* This method returns the first argument it receives.
|
| 7050 |
-
*
|
| 7051 |
-
* @static
|
| 7052 |
-
* @since 0.1.0
|
| 7053 |
-
* @memberOf _
|
| 7054 |
-
* @category Util
|
| 7055 |
-
* @param {*} value Any value.
|
| 7056 |
-
* @returns {*} Returns `value`.
|
| 7057 |
-
* @example
|
| 7058 |
-
*
|
| 7059 |
-
* var object = { 'a': 1 };
|
| 7060 |
-
*
|
| 7061 |
-
* console.log(_.identity(object) === object);
|
| 7062 |
-
* // => true
|
| 7063 |
-
*/
|
| 7064 |
-
function identity(value) {
|
| 7065 |
-
return value;
|
| 7066 |
-
}
|
| 7067 |
-
|
| 7068 |
-
module.exports = identity;
|
| 7069 |
-
|
| 7070 |
-
|
| 7071 |
-
/***/ }),
|
| 7072 |
-
/* 105 */
|
| 7073 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7074 |
-
|
| 7075 |
-
var ListCache = __webpack_require__(106),
|
| 7076 |
-
stackClear = __webpack_require__(744),
|
| 7077 |
-
stackDelete = __webpack_require__(745),
|
| 7078 |
-
stackGet = __webpack_require__(746),
|
| 7079 |
-
stackHas = __webpack_require__(747),
|
| 7080 |
-
stackSet = __webpack_require__(748);
|
| 7081 |
-
|
| 7082 |
-
/**
|
| 7083 |
-
* Creates a stack cache object to store key-value pairs.
|
| 7084 |
-
*
|
| 7085 |
-
* @private
|
| 7086 |
-
* @constructor
|
| 7087 |
-
* @param {Array} [entries] The key-value pairs to cache.
|
| 7088 |
-
*/
|
| 7089 |
-
function Stack(entries) {
|
| 7090 |
-
var data = this.__data__ = new ListCache(entries);
|
| 7091 |
-
this.size = data.size;
|
| 7092 |
-
}
|
| 7093 |
-
|
| 7094 |
-
// Add methods to `Stack`.
|
| 7095 |
-
Stack.prototype.clear = stackClear;
|
| 7096 |
-
Stack.prototype['delete'] = stackDelete;
|
| 7097 |
-
Stack.prototype.get = stackGet;
|
| 7098 |
-
Stack.prototype.has = stackHas;
|
| 7099 |
-
Stack.prototype.set = stackSet;
|
| 7100 |
-
|
| 7101 |
-
module.exports = Stack;
|
| 7102 |
-
|
| 7103 |
-
|
| 7104 |
-
/***/ }),
|
| 7105 |
-
/* 106 */
|
| 7106 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7107 |
-
|
| 7108 |
-
var listCacheClear = __webpack_require__(739),
|
| 7109 |
-
listCacheDelete = __webpack_require__(740),
|
| 7110 |
-
listCacheGet = __webpack_require__(741),
|
| 7111 |
-
listCacheHas = __webpack_require__(742),
|
| 7112 |
-
listCacheSet = __webpack_require__(743);
|
| 7113 |
-
|
| 7114 |
-
/**
|
| 7115 |
-
* Creates an list cache object.
|
| 7116 |
-
*
|
| 7117 |
-
* @private
|
| 7118 |
-
* @constructor
|
| 7119 |
-
* @param {Array} [entries] The key-value pairs to cache.
|
| 7120 |
-
*/
|
| 7121 |
-
function ListCache(entries) {
|
| 7122 |
-
var index = -1,
|
| 7123 |
-
length = entries == null ? 0 : entries.length;
|
| 7124 |
-
|
| 7125 |
-
this.clear();
|
| 7126 |
-
while (++index < length) {
|
| 7127 |
-
var entry = entries[index];
|
| 7128 |
-
this.set(entry[0], entry[1]);
|
| 7129 |
-
}
|
| 7130 |
-
}
|
| 7131 |
-
|
| 7132 |
-
// Add methods to `ListCache`.
|
| 7133 |
-
ListCache.prototype.clear = listCacheClear;
|
| 7134 |
-
ListCache.prototype['delete'] = listCacheDelete;
|
| 7135 |
-
ListCache.prototype.get = listCacheGet;
|
| 7136 |
-
ListCache.prototype.has = listCacheHas;
|
| 7137 |
-
ListCache.prototype.set = listCacheSet;
|
| 7138 |
-
|
| 7139 |
-
module.exports = ListCache;
|
| 7140 |
-
|
| 7141 |
-
|
| 7142 |
-
/***/ }),
|
| 7143 |
-
/* 107 */
|
| 7144 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7145 |
-
|
| 7146 |
-
var eq = __webpack_require__(75);
|
| 7147 |
-
|
| 7148 |
-
/**
|
| 7149 |
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
| 7150 |
-
*
|
| 7151 |
-
* @private
|
| 7152 |
-
* @param {Array} array The array to inspect.
|
| 7153 |
-
* @param {*} key The key to search for.
|
| 7154 |
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
| 7155 |
-
*/
|
| 7156 |
-
function assocIndexOf(array, key) {
|
| 7157 |
-
var length = array.length;
|
| 7158 |
-
while (length--) {
|
| 7159 |
-
if (eq(array[length][0], key)) {
|
| 7160 |
-
return length;
|
| 7161 |
-
}
|
| 7162 |
-
}
|
| 7163 |
-
return -1;
|
| 7164 |
-
}
|
| 7165 |
-
|
| 7166 |
-
module.exports = assocIndexOf;
|
| 7167 |
-
|
| 7168 |
-
|
| 7169 |
-
/***/ }),
|
| 7170 |
-
/* 108 */
|
| 7171 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7172 |
-
|
| 7173 |
-
var getNative = __webpack_require__(51);
|
| 7174 |
-
|
| 7175 |
-
/* Built-in method references that are verified to be native. */
|
| 7176 |
-
var nativeCreate = getNative(Object, 'create');
|
| 7177 |
-
|
| 7178 |
-
module.exports = nativeCreate;
|
| 7179 |
-
|
| 7180 |
-
|
| 7181 |
-
/***/ }),
|
| 7182 |
-
/* 109 */
|
| 7183 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7184 |
-
|
| 7185 |
-
var isKeyable = __webpack_require__(761);
|
| 7186 |
-
|
| 7187 |
-
/**
|
| 7188 |
-
* Gets the data for `map`.
|
| 7189 |
-
*
|
| 7190 |
-
* @private
|
| 7191 |
-
* @param {Object} map The map to query.
|
| 7192 |
-
* @param {string} key The reference key.
|
| 7193 |
-
* @returns {*} Returns the map data.
|
| 7194 |
-
*/
|
| 7195 |
-
function getMapData(map, key) {
|
| 7196 |
-
var data = map.__data__;
|
| 7197 |
-
return isKeyable(key)
|
| 7198 |
-
? data[typeof key == 'string' ? 'string' : 'hash']
|
| 7199 |
-
: data.map;
|
| 7200 |
-
}
|
| 7201 |
-
|
| 7202 |
-
module.exports = getMapData;
|
| 7203 |
-
|
| 7204 |
-
|
| 7205 |
-
/***/ }),
|
| 7206 |
-
/* 110 */
|
| 7207 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7208 |
-
|
| 7209 |
-
var DataView = __webpack_require__(776),
|
| 7210 |
-
Map = __webpack_require__(177),
|
| 7211 |
-
Promise = __webpack_require__(777),
|
| 7212 |
-
Set = __webpack_require__(778),
|
| 7213 |
-
WeakMap = __webpack_require__(779),
|
| 7214 |
-
baseGetTag = __webpack_require__(50),
|
| 7215 |
-
toSource = __webpack_require__(362);
|
| 7216 |
-
|
| 7217 |
-
/** `Object#toString` result references. */
|
| 7218 |
-
var mapTag = '[object Map]',
|
| 7219 |
-
objectTag = '[object Object]',
|
| 7220 |
-
promiseTag = '[object Promise]',
|
| 7221 |
-
setTag = '[object Set]',
|
| 7222 |
-
weakMapTag = '[object WeakMap]';
|
| 7223 |
-
|
| 7224 |
-
var dataViewTag = '[object DataView]';
|
| 7225 |
-
|
| 7226 |
-
/** Used to detect maps, sets, and weakmaps. */
|
| 7227 |
-
var dataViewCtorString = toSource(DataView),
|
| 7228 |
-
mapCtorString = toSource(Map),
|
| 7229 |
-
promiseCtorString = toSource(Promise),
|
| 7230 |
-
setCtorString = toSource(Set),
|
| 7231 |
-
weakMapCtorString = toSource(WeakMap);
|
| 7232 |
-
|
| 7233 |
-
/**
|
| 7234 |
-
* Gets the `toStringTag` of `value`.
|
| 7235 |
-
*
|
| 7236 |
-
* @private
|
| 7237 |
-
* @param {*} value The value to query.
|
| 7238 |
-
* @returns {string} Returns the `toStringTag`.
|
| 7239 |
-
*/
|
| 7240 |
-
var getTag = baseGetTag;
|
| 7241 |
-
|
| 7242 |
-
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
| 7243 |
-
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
| 7244 |
-
(Map && getTag(new Map) != mapTag) ||
|
| 7245 |
-
(Promise && getTag(Promise.resolve()) != promiseTag) ||
|
| 7246 |
-
(Set && getTag(new Set) != setTag) ||
|
| 7247 |
-
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
| 7248 |
-
getTag = function(value) {
|
| 7249 |
-
var result = baseGetTag(value),
|
| 7250 |
-
Ctor = result == objectTag ? value.constructor : undefined,
|
| 7251 |
-
ctorString = Ctor ? toSource(Ctor) : '';
|
| 7252 |
-
|
| 7253 |
-
if (ctorString) {
|
| 7254 |
-
switch (ctorString) {
|
| 7255 |
-
case dataViewCtorString: return dataViewTag;
|
| 7256 |
-
case mapCtorString: return mapTag;
|
| 7257 |
-
case promiseCtorString: return promiseTag;
|
| 7258 |
-
case setCtorString: return setTag;
|
| 7259 |
-
case weakMapCtorString: return weakMapTag;
|
| 7260 |
-
}
|
| 7261 |
-
}
|
| 7262 |
-
return result;
|
| 7263 |
-
};
|
| 7264 |
-
}
|
| 7265 |
-
|
| 7266 |
-
module.exports = getTag;
|
| 7267 |
-
|
| 7268 |
-
|
| 7269 |
-
/***/ }),
|
| 7270 |
-
/* 111 */
|
| 7271 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7272 |
-
|
| 7273 |
-
var baseGetTag = __webpack_require__(50),
|
| 7274 |
-
isObjectLike = __webpack_require__(35);
|
| 7275 |
-
|
| 7276 |
-
/** `Object#toString` result references. */
|
| 7277 |
-
var symbolTag = '[object Symbol]';
|
| 7278 |
-
|
| 7279 |
-
/**
|
| 7280 |
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
| 7281 |
-
*
|
| 7282 |
-
* @static
|
| 7283 |
-
* @memberOf _
|
| 7284 |
-
* @since 4.0.0
|
| 7285 |
-
* @category Lang
|
| 7286 |
-
* @param {*} value The value to check.
|
| 7287 |
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
| 7288 |
-
* @example
|
| 7289 |
-
*
|
| 7290 |
-
* _.isSymbol(Symbol.iterator);
|
| 7291 |
-
* // => true
|
| 7292 |
-
*
|
| 7293 |
-
* _.isSymbol('abc');
|
| 7294 |
-
* // => false
|
| 7295 |
-
*/
|
| 7296 |
-
function isSymbol(value) {
|
| 7297 |
-
return typeof value == 'symbol' ||
|
| 7298 |
-
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
| 7299 |
-
}
|
| 7300 |
-
|
| 7301 |
-
module.exports = isSymbol;
|
| 7302 |
-
|
| 7303 |
-
|
| 7304 |
-
/***/ }),
|
| 7305 |
-
/* 112 */
|
| 7306 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7307 |
-
|
| 7308 |
-
var isSymbol = __webpack_require__(111);
|
| 7309 |
-
|
| 7310 |
-
/** Used as references for various `Number` constants. */
|
| 7311 |
-
var INFINITY = 1 / 0;
|
| 7312 |
-
|
| 7313 |
-
/**
|
| 7314 |
-
* Converts `value` to a string key if it's not a string or symbol.
|
| 7315 |
-
*
|
| 7316 |
-
* @private
|
| 7317 |
-
* @param {*} value The value to inspect.
|
| 7318 |
-
* @returns {string|symbol} Returns the key.
|
| 7319 |
-
*/
|
| 7320 |
-
function toKey(value) {
|
| 7321 |
-
if (typeof value == 'string' || isSymbol(value)) {
|
| 7322 |
-
return value;
|
| 7323 |
-
}
|
| 7324 |
-
var result = (value + '');
|
| 7325 |
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
| 7326 |
-
}
|
| 7327 |
-
|
| 7328 |
-
module.exports = toKey;
|
| 7329 |
-
|
| 7330 |
-
|
| 7331 |
-
/***/ }),
|
| 7332 |
-
/* 113 */
|
| 7333 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7334 |
-
|
| 7335 |
-
var arrayLikeKeys = __webpack_require__(357),
|
| 7336 |
-
baseKeysIn = __webpack_require__(801),
|
| 7337 |
-
isArrayLike = __webpack_require__(63);
|
| 7338 |
-
|
| 7339 |
-
/**
|
| 7340 |
-
* Creates an array of the own and inherited enumerable property names of `object`.
|
| 7341 |
-
*
|
| 7342 |
-
* **Note:** Non-object values are coerced to objects.
|
| 7343 |
-
*
|
| 7344 |
-
* @static
|
| 7345 |
-
* @memberOf _
|
| 7346 |
-
* @since 3.0.0
|
| 7347 |
-
* @category Object
|
| 7348 |
-
* @param {Object} object The object to query.
|
| 7349 |
-
* @returns {Array} Returns the array of property names.
|
| 7350 |
-
* @example
|
| 7351 |
-
*
|
| 7352 |
-
* function Foo() {
|
| 7353 |
-
* this.a = 1;
|
| 7354 |
-
* this.b = 2;
|
| 7355 |
-
* }
|
| 7356 |
-
*
|
| 7357 |
-
* Foo.prototype.c = 3;
|
| 7358 |
-
*
|
| 7359 |
-
* _.keysIn(new Foo);
|
| 7360 |
-
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
| 7361 |
-
*/
|
| 7362 |
-
function keysIn(object) {
|
| 7363 |
-
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
| 7364 |
-
}
|
| 7365 |
-
|
| 7366 |
-
module.exports = keysIn;
|
| 7367 |
-
|
| 7368 |
-
|
| 7369 |
-
/***/ }),
|
| 7370 |
-
/* 114 */
|
| 7371 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7372 |
-
|
| 7373 |
-
"use strict";
|
| 7374 |
-
/* WEBPACK VAR INJECTION */(function(process) {/**
|
| 7375 |
-
* Copyright (c) 2013-present, Facebook, Inc.
|
| 7376 |
-
*
|
| 7377 |
-
* This source code is licensed under the MIT license found in the
|
| 7378 |
-
* LICENSE file in the root directory of this source tree.
|
| 7379 |
-
*/
|
| 7380 |
-
|
| 7381 |
-
|
| 7382 |
-
|
| 7383 |
-
var printWarning = function() {};
|
| 7384 |
-
|
| 7385 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 7386 |
-
var ReactPropTypesSecret = __webpack_require__(115);
|
| 7387 |
-
var loggedTypeFailures = {};
|
| 7388 |
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
| 7389 |
-
|
| 7390 |
-
printWarning = function(text) {
|
| 7391 |
-
var message = 'Warning: ' + text;
|
| 7392 |
-
if (typeof console !== 'undefined') {
|
| 7393 |
-
console.error(message);
|
| 7394 |
-
}
|
| 7395 |
-
try {
|
| 7396 |
-
// --- Welcome to debugging React ---
|
| 7397 |
-
// This error was thrown as a convenience so that you can use this stack
|
| 7398 |
-
// to find the callsite that caused this warning to fire.
|
| 7399 |
-
throw new Error(message);
|
| 7400 |
-
} catch (x) {}
|
| 7401 |
-
};
|
| 7402 |
-
}
|
| 7403 |
-
|
| 7404 |
-
/**
|
| 7405 |
-
* Assert that the values match with the type specs.
|
| 7406 |
-
* Error messages are memorized and will only be shown once.
|
| 7407 |
-
*
|
| 7408 |
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
| 7409 |
-
* @param {object} values Runtime values that need to be type-checked
|
| 7410 |
-
* @param {string} location e.g. "prop", "context", "child context"
|
| 7411 |
-
* @param {string} componentName Name of the component for error messages.
|
| 7412 |
-
* @param {?Function} getStack Returns the component stack.
|
| 7413 |
-
* @private
|
| 7414 |
-
*/
|
| 7415 |
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
| 7416 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 7417 |
-
for (var typeSpecName in typeSpecs) {
|
| 7418 |
-
if (has(typeSpecs, typeSpecName)) {
|
| 7419 |
-
var error;
|
| 7420 |
-
// Prop type validation may throw. In case they do, we don't want to
|
| 7421 |
-
// fail the render phase where it didn't fail before. So we log it.
|
| 7422 |
-
// After these have been cleaned up, we'll let them throw.
|
| 7423 |
-
try {
|
| 7424 |
-
// This is intentionally an invariant that gets caught. It's the same
|
| 7425 |
-
// behavior as without this statement except with a better message.
|
| 7426 |
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
| 7427 |
-
var err = Error(
|
| 7428 |
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
| 7429 |
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
| 7430 |
-
);
|
| 7431 |
-
err.name = 'Invariant Violation';
|
| 7432 |
-
throw err;
|
| 7433 |
-
}
|
| 7434 |
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
| 7435 |
-
} catch (ex) {
|
| 7436 |
-
error = ex;
|
| 7437 |
-
}
|
| 7438 |
-
if (error && !(error instanceof Error)) {
|
| 7439 |
-
printWarning(
|
| 7440 |
-
(componentName || 'React class') + ': type specification of ' +
|
| 7441 |
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
| 7442 |
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
| 7443 |
-
'You may have forgotten to pass an argument to the type checker ' +
|
| 7444 |
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
| 7445 |
-
'shape all require an argument).'
|
| 7446 |
-
);
|
| 7447 |
-
}
|
| 7448 |
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
| 7449 |
-
// Only monitor this failure once because there tends to be a lot of the
|
| 7450 |
-
// same error.
|
| 7451 |
-
loggedTypeFailures[error.message] = true;
|
| 7452 |
-
|
| 7453 |
-
var stack = getStack ? getStack() : '';
|
| 7454 |
-
|
| 7455 |
-
printWarning(
|
| 7456 |
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
| 7457 |
-
);
|
| 7458 |
-
}
|
| 7459 |
-
}
|
| 7460 |
-
}
|
| 7461 |
-
}
|
| 7462 |
-
}
|
| 7463 |
-
|
| 7464 |
-
/**
|
| 7465 |
-
* Resets warning cache when testing.
|
| 7466 |
-
*
|
| 7467 |
-
* @private
|
| 7468 |
-
*/
|
| 7469 |
-
checkPropTypes.resetWarningCache = function() {
|
| 7470 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 7471 |
-
loggedTypeFailures = {};
|
| 7472 |
-
}
|
| 7473 |
-
}
|
| 7474 |
-
|
| 7475 |
-
module.exports = checkPropTypes;
|
| 7476 |
-
|
| 7477 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
|
| 7478 |
-
|
| 7479 |
-
/***/ }),
|
| 7480 |
-
/* 115 */
|
| 7481 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 7482 |
-
|
| 7483 |
-
"use strict";
|
| 7484 |
-
/**
|
| 7485 |
-
* Copyright (c) 2013-present, Facebook, Inc.
|
| 7486 |
-
*
|
| 7487 |
-
* This source code is licensed under the MIT license found in the
|
| 7488 |
-
* LICENSE file in the root directory of this source tree.
|
| 7489 |
-
*/
|
| 7490 |
-
|
| 7491 |
-
|
| 7492 |
-
|
| 7493 |
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
| 7494 |
-
|
| 7495 |
-
module.exports = ReactPropTypesSecret;
|
| 7496 |
-
|
| 7497 |
-
|
| 7498 |
-
/***/ }),
|
| 7499 |
-
/* 116 */
|
| 7500 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7501 |
-
|
| 7502 |
-
"use strict";
|
| 7503 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router_es_Router__ = __webpack_require__(117);
|
| 7504 |
-
// Written in this round about way for babel-transform-imports
|
| 7505 |
-
|
| 7506 |
-
|
| 7507 |
-
/* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react_router_es_Router__["a" /* default */]);
|
| 7508 |
-
|
| 7509 |
-
/***/ }),
|
| 7510 |
-
/* 117 */
|
| 7511 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7512 |
-
|
| 7513 |
-
"use strict";
|
| 7514 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(40);
|
| 7515 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__);
|
| 7516 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(44);
|
| 7517 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__);
|
| 7518 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
|
| 7519 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
|
| 7520 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
|
| 7521 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
|
| 7522 |
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
| 7523 |
-
|
| 7524 |
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
| 7525 |
-
|
| 7526 |
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
| 7527 |
-
|
| 7528 |
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
| 7529 |
-
|
| 7530 |
-
|
| 7531 |
-
|
| 7532 |
-
|
| 7533 |
-
|
| 7534 |
-
|
| 7535 |
-
/**
|
| 7536 |
-
* The public API for putting history on context.
|
| 7537 |
-
*/
|
| 7538 |
-
|
| 7539 |
-
var Router = function (_React$Component) {
|
| 7540 |
-
_inherits(Router, _React$Component);
|
| 7541 |
-
|
| 7542 |
-
function Router() {
|
| 7543 |
-
var _temp, _this, _ret;
|
| 7544 |
-
|
| 7545 |
-
_classCallCheck(this, Router);
|
| 7546 |
-
|
| 7547 |
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
| 7548 |
-
args[_key] = arguments[_key];
|
| 7549 |
-
}
|
| 7550 |
-
|
| 7551 |
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
|
| 7552 |
-
match: _this.computeMatch(_this.props.history.location.pathname)
|
| 7553 |
-
}, _temp), _possibleConstructorReturn(_this, _ret);
|
| 7554 |
-
}
|
| 7555 |
-
|
| 7556 |
-
Router.prototype.getChildContext = function getChildContext() {
|
| 7557 |
-
return {
|
| 7558 |
-
router: _extends({}, this.context.router, {
|
| 7559 |
-
history: this.props.history,
|
| 7560 |
-
route: {
|
| 7561 |
-
location: this.props.history.location,
|
| 7562 |
-
match: this.state.match
|
| 7563 |
-
}
|
| 7564 |
-
})
|
| 7565 |
-
};
|
| 7566 |
-
};
|
| 7567 |
-
|
| 7568 |
-
Router.prototype.computeMatch = function computeMatch(pathname) {
|
| 7569 |
-
return {
|
| 7570 |
-
path: "/",
|
| 7571 |
-
url: "/",
|
| 7572 |
-
params: {},
|
| 7573 |
-
isExact: pathname === "/"
|
| 7574 |
-
};
|
| 7575 |
-
};
|
| 7576 |
-
|
| 7577 |
-
Router.prototype.componentWillMount = function componentWillMount() {
|
| 7578 |
-
var _this2 = this;
|
| 7579 |
-
|
| 7580 |
-
var _props = this.props,
|
| 7581 |
-
children = _props.children,
|
| 7582 |
-
history = _props.history;
|
| 7583 |
-
|
| 7584 |
-
|
| 7585 |
-
__WEBPACK_IMPORTED_MODULE_1_invariant___default()(children == null || __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.count(children) === 1, "A <Router> may have only one child element");
|
| 7586 |
-
|
| 7587 |
-
// Do this here so we can setState when a <Redirect> changes the
|
| 7588 |
-
// location in componentWillMount. This happens e.g. when doing
|
| 7589 |
-
// server rendering using a <StaticRouter>.
|
| 7590 |
-
this.unlisten = history.listen(function () {
|
| 7591 |
-
_this2.setState({
|
| 7592 |
-
match: _this2.computeMatch(history.location.pathname)
|
| 7593 |
-
});
|
| 7594 |
-
});
|
| 7595 |
-
};
|
| 7596 |
-
|
| 7597 |
-
Router.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
| 7598 |
-
__WEBPACK_IMPORTED_MODULE_0_warning___default()(this.props.history === nextProps.history, "You cannot change <Router history>");
|
| 7599 |
-
};
|
| 7600 |
-
|
| 7601 |
-
Router.prototype.componentWillUnmount = function componentWillUnmount() {
|
| 7602 |
-
this.unlisten();
|
| 7603 |
-
};
|
| 7604 |
-
|
| 7605 |
-
Router.prototype.render = function render() {
|
| 7606 |
-
var children = this.props.children;
|
| 7607 |
-
|
| 7608 |
-
return children ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.only(children) : null;
|
| 7609 |
-
};
|
| 7610 |
-
|
| 7611 |
-
return Router;
|
| 7612 |
-
}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
|
| 7613 |
-
|
| 7614 |
-
Router.propTypes = {
|
| 7615 |
-
history: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired,
|
| 7616 |
-
children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node
|
| 7617 |
-
};
|
| 7618 |
-
Router.contextTypes = {
|
| 7619 |
-
router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
|
| 7620 |
-
};
|
| 7621 |
-
Router.childContextTypes = {
|
| 7622 |
-
router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired
|
| 7623 |
-
};
|
| 7624 |
-
|
| 7625 |
-
|
| 7626 |
-
/* harmony default export */ __webpack_exports__["a"] = (Router);
|
| 7627 |
-
|
| 7628 |
-
/***/ }),
|
| 7629 |
-
/* 118 */
|
| 7630 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7631 |
-
|
| 7632 |
-
"use strict";
|
| 7633 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp__ = __webpack_require__(188);
|
| 7634 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_path_to_regexp__);
|
| 7635 |
-
|
| 7636 |
-
|
| 7637 |
-
var patternCache = {};
|
| 7638 |
-
var cacheLimit = 10000;
|
| 7639 |
-
var cacheCount = 0;
|
| 7640 |
-
|
| 7641 |
-
var compilePath = function compilePath(pattern, options) {
|
| 7642 |
-
var cacheKey = "" + options.end + options.strict + options.sensitive;
|
| 7643 |
-
var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
|
| 7644 |
-
|
| 7645 |
-
if (cache[pattern]) return cache[pattern];
|
| 7646 |
-
|
| 7647 |
-
var keys = [];
|
| 7648 |
-
var re = __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default()(pattern, keys, options);
|
| 7649 |
-
var compiledPattern = { re: re, keys: keys };
|
| 7650 |
-
|
| 7651 |
-
if (cacheCount < cacheLimit) {
|
| 7652 |
-
cache[pattern] = compiledPattern;
|
| 7653 |
-
cacheCount++;
|
| 7654 |
-
}
|
| 7655 |
-
|
| 7656 |
-
return compiledPattern;
|
| 7657 |
-
};
|
| 7658 |
-
|
| 7659 |
-
/**
|
| 7660 |
-
* Public API for matching a URL pathname to a path pattern.
|
| 7661 |
-
*/
|
| 7662 |
-
var matchPath = function matchPath(pathname) {
|
| 7663 |
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
| 7664 |
-
var parent = arguments[2];
|
| 7665 |
-
|
| 7666 |
-
if (typeof options === "string") options = { path: options };
|
| 7667 |
-
|
| 7668 |
-
var _options = options,
|
| 7669 |
-
path = _options.path,
|
| 7670 |
-
_options$exact = _options.exact,
|
| 7671 |
-
exact = _options$exact === undefined ? false : _options$exact,
|
| 7672 |
-
_options$strict = _options.strict,
|
| 7673 |
-
strict = _options$strict === undefined ? false : _options$strict,
|
| 7674 |
-
_options$sensitive = _options.sensitive,
|
| 7675 |
-
sensitive = _options$sensitive === undefined ? false : _options$sensitive;
|
| 7676 |
-
|
| 7677 |
-
|
| 7678 |
-
if (path == null) return parent;
|
| 7679 |
-
|
| 7680 |
-
var _compilePath = compilePath(path, { end: exact, strict: strict, sensitive: sensitive }),
|
| 7681 |
-
re = _compilePath.re,
|
| 7682 |
-
keys = _compilePath.keys;
|
| 7683 |
-
|
| 7684 |
-
var match = re.exec(pathname);
|
| 7685 |
-
|
| 7686 |
-
if (!match) return null;
|
| 7687 |
-
|
| 7688 |
-
var url = match[0],
|
| 7689 |
-
values = match.slice(1);
|
| 7690 |
-
|
| 7691 |
-
var isExact = pathname === url;
|
| 7692 |
-
|
| 7693 |
-
if (exact && !isExact) return null;
|
| 7694 |
-
|
| 7695 |
-
return {
|
| 7696 |
-
path: path, // the path pattern used to match
|
| 7697 |
-
url: path === "/" && url === "" ? "/" : url, // the matched portion of the URL
|
| 7698 |
-
isExact: isExact, // whether or not we matched exactly
|
| 7699 |
-
params: keys.reduce(function (memo, key, index) {
|
| 7700 |
-
memo[key.name] = values[index];
|
| 7701 |
-
return memo;
|
| 7702 |
-
}, {})
|
| 7703 |
-
};
|
| 7704 |
-
};
|
| 7705 |
-
|
| 7706 |
-
/* harmony default export */ __webpack_exports__["a"] = (matchPath);
|
| 7707 |
-
|
| 7708 |
-
/***/ }),
|
| 7709 |
-
/* 119 */
|
| 7710 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7711 |
-
|
| 7712 |
-
"use strict";
|
| 7713 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = chainPropTypes;
|
| 7714 |
-
function chainPropTypes(propType1, propType2) {
|
| 7715 |
-
if (process.env.NODE_ENV === 'production') {
|
| 7716 |
-
return function () {
|
| 7717 |
-
return null;
|
| 7718 |
-
};
|
| 7719 |
-
}
|
| 7720 |
-
|
| 7721 |
-
return function validate() {
|
| 7722 |
-
return propType1.apply(void 0, arguments) || propType2.apply(void 0, arguments);
|
| 7723 |
-
};
|
| 7724 |
-
}
|
| 7725 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 7726 |
-
|
| 7727 |
-
/***/ }),
|
| 7728 |
-
/* 120 */
|
| 7729 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7730 |
-
|
| 7731 |
-
"use strict";
|
| 7732 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getThemeProps__ = __webpack_require__(444);
|
| 7733 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__getThemeProps__["a"]; });
|
| 7734 |
-
|
| 7735 |
-
|
| 7736 |
-
/***/ }),
|
| 7737 |
-
/* 121 */
|
| 7738 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7739 |
-
|
| 7740 |
-
"use strict";
|
| 7741 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__jssPreset__ = __webpack_require__(445);
|
| 7742 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__jssPreset__["a"]; });
|
| 7743 |
-
|
| 7744 |
-
|
| 7745 |
-
/***/ }),
|
| 7746 |
-
/* 122 */
|
| 7747 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7748 |
-
|
| 7749 |
-
"use strict";
|
| 7750 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _assertThisInitialized;
|
| 7751 |
-
function _assertThisInitialized(self) {
|
| 7752 |
-
if (self === void 0) {
|
| 7753 |
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
| 7754 |
-
}
|
| 7755 |
-
|
| 7756 |
-
return self;
|
| 7757 |
-
}
|
| 7758 |
-
|
| 7759 |
-
/***/ }),
|
| 7760 |
-
/* 123 */
|
| 7761 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7762 |
-
|
| 7763 |
-
"use strict";
|
| 7764 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _unsupportedIterableToArray;
|
| 7765 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__ = __webpack_require__(194);
|
| 7766 |
-
|
| 7767 |
-
function _unsupportedIterableToArray(o, minLen) {
|
| 7768 |
-
if (!o) return;
|
| 7769 |
-
if (typeof o === "string") return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__["a" /* default */])(o, minLen);
|
| 7770 |
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
| 7771 |
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
| 7772 |
-
if (n === "Map" || n === "Set") return Array.from(o);
|
| 7773 |
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__["a" /* default */])(o, minLen);
|
| 7774 |
-
}
|
| 7775 |
-
|
| 7776 |
-
/***/ }),
|
| 7777 |
-
/* 124 */
|
| 7778 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7779 |
-
|
| 7780 |
-
"use strict";
|
| 7781 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeClasses__ = __webpack_require__(458);
|
| 7782 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__mergeClasses__["a"]; });
|
| 7783 |
-
|
| 7784 |
-
|
| 7785 |
-
/***/ }),
|
| 7786 |
-
/* 125 */
|
| 7787 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7788 |
-
|
| 7789 |
-
"use strict";
|
| 7790 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _classCallCheck;
|
| 7791 |
-
function _classCallCheck(instance, Constructor) {
|
| 7792 |
-
if (!(instance instanceof Constructor)) {
|
| 7793 |
-
throw new TypeError("Cannot call a class as a function");
|
| 7794 |
-
}
|
| 7795 |
-
}
|
| 7796 |
-
|
| 7797 |
-
/***/ }),
|
| 7798 |
-
/* 126 */
|
| 7799 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7800 |
-
|
| 7801 |
-
"use strict";
|
| 7802 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(16);
|
| 7803 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
|
| 7804 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ui_utils__ = __webpack_require__(7);
|
| 7805 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createBreakpoints__ = __webpack_require__(205);
|
| 7806 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__createMixins__ = __webpack_require__(468);
|
| 7807 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createPalette__ = __webpack_require__(469);
|
| 7808 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__createTypography__ = __webpack_require__(470);
|
| 7809 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shadows__ = __webpack_require__(471);
|
| 7810 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shape__ = __webpack_require__(472);
|
| 7811 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__createSpacing__ = __webpack_require__(473);
|
| 7812 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__transitions__ = __webpack_require__(34);
|
| 7813 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__zIndex__ = __webpack_require__(226);
|
| 7814 |
-
|
| 7815 |
-
|
| 7816 |
-
|
| 7817 |
-
|
| 7818 |
-
|
| 7819 |
-
|
| 7820 |
-
|
| 7821 |
-
|
| 7822 |
-
|
| 7823 |
-
|
| 7824 |
-
|
| 7825 |
-
|
| 7826 |
-
|
| 7827 |
-
function createMuiTheme() {
|
| 7828 |
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
| 7829 |
-
|
| 7830 |
-
var _options$breakpoints = options.breakpoints,
|
| 7831 |
-
breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,
|
| 7832 |
-
_options$mixins = options.mixins,
|
| 7833 |
-
mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,
|
| 7834 |
-
_options$palette = options.palette,
|
| 7835 |
-
paletteInput = _options$palette === void 0 ? {} : _options$palette,
|
| 7836 |
-
spacingInput = options.spacing,
|
| 7837 |
-
_options$typography = options.typography,
|
| 7838 |
-
typographyInput = _options$typography === void 0 ? {} : _options$typography,
|
| 7839 |
-
other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
|
| 7840 |
-
|
| 7841 |
-
var palette = Object(__WEBPACK_IMPORTED_MODULE_5__createPalette__["a" /* default */])(paletteInput);
|
| 7842 |
-
var breakpoints = Object(__WEBPACK_IMPORTED_MODULE_3__createBreakpoints__["a" /* default */])(breakpointsInput);
|
| 7843 |
-
var spacing = Object(__WEBPACK_IMPORTED_MODULE_9__createSpacing__["a" /* default */])(spacingInput);
|
| 7844 |
-
var muiTheme = Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["c" /* deepmerge */])({
|
| 7845 |
-
breakpoints: breakpoints,
|
| 7846 |
-
direction: 'ltr',
|
| 7847 |
-
mixins: Object(__WEBPACK_IMPORTED_MODULE_4__createMixins__["a" /* default */])(breakpoints, spacing, mixinsInput),
|
| 7848 |
-
overrides: {},
|
| 7849 |
-
// Inject custom styles
|
| 7850 |
-
palette: palette,
|
| 7851 |
-
props: {},
|
| 7852 |
-
// Provide default props
|
| 7853 |
-
shadows: __WEBPACK_IMPORTED_MODULE_7__shadows__["a" /* default */],
|
| 7854 |
-
typography: Object(__WEBPACK_IMPORTED_MODULE_6__createTypography__["a" /* default */])(palette, typographyInput),
|
| 7855 |
-
spacing: spacing,
|
| 7856 |
-
shape: __WEBPACK_IMPORTED_MODULE_8__shape__["a" /* default */],
|
| 7857 |
-
transitions: __WEBPACK_IMPORTED_MODULE_10__transitions__["a" /* default */],
|
| 7858 |
-
zIndex: __WEBPACK_IMPORTED_MODULE_11__zIndex__["a" /* default */]
|
| 7859 |
-
}, other);
|
| 7860 |
-
|
| 7861 |
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
| 7862 |
-
args[_key - 1] = arguments[_key];
|
| 7863 |
-
}
|
| 7864 |
-
|
| 7865 |
-
muiTheme = args.reduce(function (acc, argument) {
|
| 7866 |
-
return Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["c" /* deepmerge */])(acc, argument);
|
| 7867 |
-
}, muiTheme);
|
| 7868 |
-
|
| 7869 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 7870 |
-
var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'];
|
| 7871 |
-
|
| 7872 |
-
var traverse = function traverse(node, parentKey) {
|
| 7873 |
-
var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
| 7874 |
-
var key; // eslint-disable-next-line guard-for-in, no-restricted-syntax
|
| 7875 |
-
|
| 7876 |
-
for (key in node) {
|
| 7877 |
-
var child = node[key];
|
| 7878 |
-
|
| 7879 |
-
if (depth === 1) {
|
| 7880 |
-
if (key.indexOf('Mui') === 0 && child) {
|
| 7881 |
-
traverse(child, key, depth + 1);
|
| 7882 |
-
}
|
| 7883 |
-
} else if (pseudoClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {
|
| 7884 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 7885 |
-
console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), 'You can not override it like this: ', JSON.stringify(node, null, 2), '', 'Instead, you need to use the $ruleName syntax:', JSON.stringify({
|
| 7886 |
-
root: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, "&$".concat(key), child)
|
| 7887 |
-
}, null, 2), '', 'https://material-ui.com/r/pseudo-classes-guide'].join('\n'));
|
| 7888 |
-
} // Remove the style to prevent global conflicts.
|
| 7889 |
-
|
| 7890 |
-
|
| 7891 |
-
node[key] = {};
|
| 7892 |
-
}
|
| 7893 |
-
}
|
| 7894 |
-
};
|
| 7895 |
-
|
| 7896 |
-
traverse(muiTheme.overrides);
|
| 7897 |
-
}
|
| 7898 |
-
|
| 7899 |
-
return muiTheme;
|
| 7900 |
-
}
|
| 7901 |
-
|
| 7902 |
-
/* harmony default export */ __webpack_exports__["a"] = (createMuiTheme);
|
| 7903 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 7904 |
-
|
| 7905 |
-
/***/ }),
|
| 7906 |
-
/* 127 */
|
| 7907 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 7908 |
-
|
| 7909 |
-
"use strict";
|
| 7910 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = handleBreakpoints;
|
| 7911 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(32);
|
| 7912 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 7913 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__ = __webpack_require__(45);
|
| 7914 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
|
| 7915 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
|
| 7916 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__merge__ = __webpack_require__(83);
|
| 7917 |
-
|
| 7918 |
-
|
| 7919 |
-
|
| 7920 |
-
|
| 7921 |
-
// The breakpoint **start** at this value.
|
| 7922 |
-
// For instance with the first breakpoint xs: [xs, sm[.
|
| 7923 |
-
|
| 7924 |
-
var values = {
|
| 7925 |
-
xs: 0,
|
| 7926 |
-
sm: 600,
|
| 7927 |
-
md: 960,
|
| 7928 |
-
lg: 1280,
|
| 7929 |
-
xl: 1920
|
| 7930 |
-
};
|
| 7931 |
-
var defaultBreakpoints = {
|
| 7932 |
-
// Sorted ASC by size. That's important.
|
| 7933 |
-
// It can't be configured as it's used statically for propTypes.
|
| 7934 |
-
keys: ['xs', 'sm', 'md', 'lg', 'xl'],
|
| 7935 |
-
up: function up(key) {
|
| 7936 |
-
return "@media (min-width:".concat(values[key], "px)");
|
| 7937 |
-
}
|
| 7938 |
-
};
|
| 7939 |
-
function handleBreakpoints(props, propValue, styleFromPropValue) {
|
| 7940 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 7941 |
-
if (!props.theme) {
|
| 7942 |
-
console.error('Material-UI: You are calling a style function without a theme value.');
|
| 7943 |
-
}
|
| 7944 |
-
}
|
| 7945 |
-
|
| 7946 |
-
if (Array.isArray(propValue)) {
|
| 7947 |
-
var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
|
| 7948 |
-
return propValue.reduce(function (acc, item, index) {
|
| 7949 |
-
acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
|
| 7950 |
-
return acc;
|
| 7951 |
-
}, {});
|
| 7952 |
-
}
|
| 7953 |
-
|
| 7954 |
-
if (Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__["a" /* default */])(propValue) === 'object') {
|
| 7955 |
-
var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
|
| 7956 |
-
|
| 7957 |
-
return Object.keys(propValue).reduce(function (acc, breakpoint) {
|
| 7958 |
-
acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);
|
| 7959 |
-
return acc;
|
| 7960 |
-
}, {});
|
| 7961 |
-
}
|
| 7962 |
-
|
| 7963 |
-
var output = styleFromPropValue(propValue);
|
| 7964 |
-
return output;
|
| 7965 |
-
}
|
| 7966 |
-
|
| 7967 |
-
function breakpoints(styleFunction) {
|
| 7968 |
-
var newStyleFunction = function newStyleFunction(props) {
|
| 7969 |
-
var base = styleFunction(props);
|
| 7970 |
-
var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
|
| 7971 |
-
var extended = themeBreakpoints.keys.reduce(function (acc, key) {
|
| 7972 |
-
if (props[key]) {
|
| 7973 |
-
acc = acc || {};
|
| 7974 |
-
acc[themeBreakpoints.up(key)] = styleFunction(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 7975 |
-
theme: props.theme
|
| 7976 |
-
}, props[key]));
|
| 7977 |
-
}
|
| 7978 |
-
|
| 7979 |
-
return acc;
|
| 7980 |
-
}, null);
|
| 7981 |
-
return Object(__WEBPACK_IMPORTED_MODULE_4__merge__["a" /* default */])(base, extended);
|
| 7982 |
-
};
|
| 7983 |
-
|
| 7984 |
-
newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleFunction.propTypes), {}, {
|
| 7985 |
-
xs: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 7986 |
-
sm: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 7987 |
-
md: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 7988 |
-
lg: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 7989 |
-
xl: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
|
| 7990 |
-
}) : {};
|
| 7991 |
-
newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(styleFunction.filterProps));
|
| 7992 |
-
return newStyleFunction;
|
| 7993 |
-
}
|
| 7994 |
-
|
| 7995 |
-
/* unused harmony default export */ var _unused_webpack_default_export = (breakpoints);
|
| 7996 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 7997 |
-
|
| 7998 |
-
/***/ }),
|
| 7999 |
-
/* 128 */
|
| 8000 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 8001 |
-
|
| 8002 |
-
"use strict";
|
| 8003 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; });
|
| 8004 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ClassNames; });
|
| 8005 |
-
/* unused harmony export Global */
|
| 8006 |
-
/* unused harmony export ThemeContext */
|
| 8007 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jsx; });
|
| 8008 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return keyframes; });
|
| 8009 |
-
/* unused harmony export withEmotionCache */
|
| 8010 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__ = __webpack_require__(479);
|
| 8011 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__);
|
| 8012 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
|
| 8013 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
|
| 8014 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(228);
|
| 8015 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_utils__ = __webpack_require__(482);
|
| 8016 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__ = __webpack_require__(230);
|
| 8017 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_sheet__ = __webpack_require__(229);
|
| 8018 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_css__ = __webpack_require__(65);
|
| 8019 |
-
/* unused harmony reexport css */
|
| 8020 |
-
|
| 8021 |
-
|
| 8022 |
-
|
| 8023 |
-
|
| 8024 |
-
|
| 8025 |
-
|
| 8026 |
-
|
| 8027 |
-
|
| 8028 |
-
|
| 8029 |
-
var EmotionCacheContext = Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
| 8030 |
-
// because this module is primarily intended for the browser and node
|
| 8031 |
-
// but it's also required in react native and similar environments sometimes
|
| 8032 |
-
// and we could have a special build just for that
|
| 8033 |
-
// but this is much easier and the native packages
|
| 8034 |
-
// might use a different theme context in the future anyway
|
| 8035 |
-
typeof HTMLElement !== 'undefined' ? Object(__WEBPACK_IMPORTED_MODULE_2__emotion_cache__["a" /* default */])() : null);
|
| 8036 |
-
var ThemeContext = Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])({});
|
| 8037 |
-
var CacheProvider = EmotionCacheContext.Provider;
|
| 8038 |
-
|
| 8039 |
-
var withEmotionCache = function withEmotionCache(func) {
|
| 8040 |
-
var render = function render(props, ref) {
|
| 8041 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(EmotionCacheContext.Consumer, null, function (cache) {
|
| 8042 |
-
return func(props, cache, ref);
|
| 8043 |
-
});
|
| 8044 |
-
}; // $FlowFixMe
|
| 8045 |
-
|
| 8046 |
-
|
| 8047 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1_react__["forwardRef"])(render);
|
| 8048 |
-
};
|
| 8049 |
-
|
| 8050 |
-
// thus we only need to replace what is a valid character for JS, but not for CSS
|
| 8051 |
-
|
| 8052 |
-
var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
|
| 8053 |
-
return identifier.replace(/\$/g, '-');
|
| 8054 |
-
};
|
| 8055 |
-
|
| 8056 |
-
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
| 8057 |
-
var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
|
| 8058 |
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
| 8059 |
-
|
| 8060 |
-
var render = function render(cache, props, theme, ref) {
|
| 8061 |
-
var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works
|
| 8062 |
-
// not passing the registered cache to serializeStyles because it would
|
| 8063 |
-
// make certain babel optimisations not possible
|
| 8064 |
-
|
| 8065 |
-
if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
|
| 8066 |
-
cssProp = cache.registered[cssProp];
|
| 8067 |
-
}
|
| 8068 |
-
|
| 8069 |
-
var type = props[typePropName];
|
| 8070 |
-
var registeredStyles = [cssProp];
|
| 8071 |
-
var className = '';
|
| 8072 |
-
|
| 8073 |
-
if (typeof props.className === 'string') {
|
| 8074 |
-
className = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */])(cache.registered, registeredStyles, props.className);
|
| 8075 |
-
} else if (props.className != null) {
|
| 8076 |
-
className = props.className + " ";
|
| 8077 |
-
}
|
| 8078 |
-
|
| 8079 |
-
var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])(registeredStyles);
|
| 8080 |
-
|
| 8081 |
-
if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
|
| 8082 |
-
var labelFromStack = props[labelPropName];
|
| 8083 |
-
|
| 8084 |
-
if (labelFromStack) {
|
| 8085 |
-
serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([serialized, 'label:' + labelFromStack + ';']);
|
| 8086 |
-
}
|
| 8087 |
-
}
|
| 8088 |
-
|
| 8089 |
-
var rules = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(cache, serialized, typeof type === 'string');
|
| 8090 |
-
className += cache.key + "-" + serialized.name;
|
| 8091 |
-
var newProps = {};
|
| 8092 |
-
|
| 8093 |
-
for (var key in props) {
|
| 8094 |
-
if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
|
| 8095 |
-
newProps[key] = props[key];
|
| 8096 |
-
}
|
| 8097 |
-
}
|
| 8098 |
-
|
| 8099 |
-
newProps.ref = ref;
|
| 8100 |
-
newProps.className = className;
|
| 8101 |
-
var ele = Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(type, newProps);
|
| 8102 |
-
|
| 8103 |
-
return ele;
|
| 8104 |
-
};
|
| 8105 |
-
|
| 8106 |
-
var Emotion =
|
| 8107 |
-
/* #__PURE__ */
|
| 8108 |
-
withEmotionCache(function (props, cache, ref) {
|
| 8109 |
-
// use Context.read for the theme when it's stable
|
| 8110 |
-
if (typeof props.css === 'function') {
|
| 8111 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) {
|
| 8112 |
-
return render(cache, props, theme, ref);
|
| 8113 |
-
});
|
| 8114 |
-
}
|
| 8115 |
-
|
| 8116 |
-
return render(cache, props, null, ref);
|
| 8117 |
-
});
|
| 8118 |
-
|
| 8119 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 8120 |
-
Emotion.displayName = 'EmotionCssPropInternal';
|
| 8121 |
-
} // $FlowFixMe
|
| 8122 |
-
|
| 8123 |
-
|
| 8124 |
-
var jsx = function jsx(type, props) {
|
| 8125 |
-
var args = arguments;
|
| 8126 |
-
|
| 8127 |
-
if (props == null || !hasOwnProperty.call(props, 'css')) {
|
| 8128 |
-
// $FlowFixMe
|
| 8129 |
-
return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(undefined, args);
|
| 8130 |
-
}
|
| 8131 |
-
|
| 8132 |
-
if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
|
| 8133 |
-
props.css.indexOf(':') !== -1) {
|
| 8134 |
-
throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css`" + props.css + "`");
|
| 8135 |
-
}
|
| 8136 |
-
|
| 8137 |
-
var argsLength = args.length;
|
| 8138 |
-
var createElementArgArray = new Array(argsLength);
|
| 8139 |
-
createElementArgArray[0] = Emotion;
|
| 8140 |
-
var newProps = {};
|
| 8141 |
-
|
| 8142 |
-
for (var key in props) {
|
| 8143 |
-
if (hasOwnProperty.call(props, key)) {
|
| 8144 |
-
newProps[key] = props[key];
|
| 8145 |
-
}
|
| 8146 |
-
}
|
| 8147 |
-
|
| 8148 |
-
newProps[typePropName] = type;
|
| 8149 |
-
|
| 8150 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 8151 |
-
var error = new Error();
|
| 8152 |
-
|
| 8153 |
-
if (error.stack) {
|
| 8154 |
-
// chrome
|
| 8155 |
-
var match = error.stack.match(/at (?:Object\.|)jsx.*\n\s+at ([A-Z][A-Za-z$]+) /);
|
| 8156 |
-
|
| 8157 |
-
if (!match) {
|
| 8158 |
-
// safari and firefox
|
| 8159 |
-
match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/);
|
| 8160 |
-
}
|
| 8161 |
-
|
| 8162 |
-
if (match) {
|
| 8163 |
-
newProps[labelPropName] = sanitizeIdentifier(match[1]);
|
| 8164 |
-
}
|
| 8165 |
-
}
|
| 8166 |
-
}
|
| 8167 |
-
|
| 8168 |
-
createElementArgArray[1] = newProps;
|
| 8169 |
-
|
| 8170 |
-
for (var i = 2; i < argsLength; i++) {
|
| 8171 |
-
createElementArgArray[i] = args[i];
|
| 8172 |
-
} // $FlowFixMe
|
| 8173 |
-
|
| 8174 |
-
|
| 8175 |
-
return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(null, createElementArgArray);
|
| 8176 |
-
};
|
| 8177 |
-
|
| 8178 |
-
var warnedAboutCssPropForGlobal = false;
|
| 8179 |
-
var Global =
|
| 8180 |
-
/* #__PURE__ */
|
| 8181 |
-
withEmotionCache(function (props, cache) {
|
| 8182 |
-
if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
|
| 8183 |
-
// probably using the custom createElement which
|
| 8184 |
-
// means it will be turned into a className prop
|
| 8185 |
-
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
| 8186 |
-
props.className || props.css)) {
|
| 8187 |
-
console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
|
| 8188 |
-
warnedAboutCssPropForGlobal = true;
|
| 8189 |
-
}
|
| 8190 |
-
|
| 8191 |
-
var styles = props.styles;
|
| 8192 |
-
|
| 8193 |
-
if (typeof styles === 'function') {
|
| 8194 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) {
|
| 8195 |
-
var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([styles(theme)]);
|
| 8196 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
|
| 8197 |
-
serialized: serialized,
|
| 8198 |
-
cache: cache
|
| 8199 |
-
});
|
| 8200 |
-
});
|
| 8201 |
-
}
|
| 8202 |
-
|
| 8203 |
-
var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([styles]);
|
| 8204 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
|
| 8205 |
-
serialized: serialized,
|
| 8206 |
-
cache: cache
|
| 8207 |
-
});
|
| 8208 |
-
});
|
| 8209 |
-
|
| 8210 |
-
// maintain place over rerenders.
|
| 8211 |
-
// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
|
| 8212 |
-
// initial client-side render from SSR, use place of hydrating tag
|
| 8213 |
-
var InnerGlobal =
|
| 8214 |
-
/*#__PURE__*/
|
| 8215 |
-
function (_React$Component) {
|
| 8216 |
-
__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default()(InnerGlobal, _React$Component);
|
| 8217 |
-
|
| 8218 |
-
function InnerGlobal(props, context, updater) {
|
| 8219 |
-
return _React$Component.call(this, props, context, updater) || this;
|
| 8220 |
-
}
|
| 8221 |
-
|
| 8222 |
-
var _proto = InnerGlobal.prototype;
|
| 8223 |
-
|
| 8224 |
-
_proto.componentDidMount = function componentDidMount() {
|
| 8225 |
-
this.sheet = new __WEBPACK_IMPORTED_MODULE_5__emotion_sheet__["a" /* StyleSheet */]({
|
| 8226 |
-
key: this.props.cache.key + "-global",
|
| 8227 |
-
nonce: this.props.cache.sheet.nonce,
|
| 8228 |
-
container: this.props.cache.sheet.container
|
| 8229 |
-
}); // $FlowFixMe
|
| 8230 |
-
|
| 8231 |
-
var node = document.querySelector("style[data-emotion-" + this.props.cache.key + "=\"" + this.props.serialized.name + "\"]");
|
| 8232 |
-
|
| 8233 |
-
if (node !== null) {
|
| 8234 |
-
this.sheet.tags.push(node);
|
| 8235 |
-
}
|
| 8236 |
-
|
| 8237 |
-
if (this.props.cache.sheet.tags.length) {
|
| 8238 |
-
this.sheet.before = this.props.cache.sheet.tags[0];
|
| 8239 |
-
}
|
| 8240 |
-
|
| 8241 |
-
this.insertStyles();
|
| 8242 |
-
};
|
| 8243 |
-
|
| 8244 |
-
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
| 8245 |
-
if (prevProps.serialized.name !== this.props.serialized.name) {
|
| 8246 |
-
this.insertStyles();
|
| 8247 |
-
}
|
| 8248 |
-
};
|
| 8249 |
-
|
| 8250 |
-
_proto.insertStyles = function insertStyles$1() {
|
| 8251 |
-
if (this.props.serialized.next !== undefined) {
|
| 8252 |
-
// insert keyframes
|
| 8253 |
-
Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(this.props.cache, this.props.serialized.next, true);
|
| 8254 |
-
}
|
| 8255 |
-
|
| 8256 |
-
if (this.sheet.tags.length) {
|
| 8257 |
-
// if this doesn't exist then it will be null so the style element will be appended
|
| 8258 |
-
var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling;
|
| 8259 |
-
this.sheet.before = element;
|
| 8260 |
-
this.sheet.flush();
|
| 8261 |
-
}
|
| 8262 |
-
|
| 8263 |
-
this.props.cache.insert("", this.props.serialized, this.sheet, false);
|
| 8264 |
-
};
|
| 8265 |
-
|
| 8266 |
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
| 8267 |
-
this.sheet.flush();
|
| 8268 |
-
};
|
| 8269 |
-
|
| 8270 |
-
_proto.render = function render() {
|
| 8271 |
-
|
| 8272 |
-
return null;
|
| 8273 |
-
};
|
| 8274 |
-
|
| 8275 |
-
return InnerGlobal;
|
| 8276 |
-
}(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]);
|
| 8277 |
-
|
| 8278 |
-
var keyframes = function keyframes() {
|
| 8279 |
-
var insertable = __WEBPACK_IMPORTED_MODULE_6__emotion_css__["a" /* default */].apply(void 0, arguments);
|
| 8280 |
-
var name = "animation-" + insertable.name; // $FlowFixMe
|
| 8281 |
-
|
| 8282 |
-
return {
|
| 8283 |
-
name: name,
|
| 8284 |
-
styles: "@keyframes " + name + "{" + insertable.styles + "}",
|
| 8285 |
-
anim: 1,
|
| 8286 |
-
toString: function toString() {
|
| 8287 |
-
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
| 8288 |
-
}
|
| 8289 |
-
};
|
| 8290 |
-
};
|
| 8291 |
-
|
| 8292 |
-
var classnames = function classnames(args) {
|
| 8293 |
-
var len = args.length;
|
| 8294 |
-
var i = 0;
|
| 8295 |
-
var cls = '';
|
| 8296 |
-
|
| 8297 |
-
for (; i < len; i++) {
|
| 8298 |
-
var arg = args[i];
|
| 8299 |
-
if (arg == null) continue;
|
| 8300 |
-
var toAdd = void 0;
|
| 8301 |
-
|
| 8302 |
-
switch (typeof arg) {
|
| 8303 |
-
case 'boolean':
|
| 8304 |
-
break;
|
| 8305 |
-
|
| 8306 |
-
case 'object':
|
| 8307 |
-
{
|
| 8308 |
-
if (Array.isArray(arg)) {
|
| 8309 |
-
toAdd = classnames(arg);
|
| 8310 |
-
} else {
|
| 8311 |
-
toAdd = '';
|
| 8312 |
-
|
| 8313 |
-
for (var k in arg) {
|
| 8314 |
-
if (arg[k] && k) {
|
| 8315 |
-
toAdd && (toAdd += ' ');
|
| 8316 |
-
toAdd += k;
|
| 8317 |
-
}
|
| 8318 |
-
}
|
| 8319 |
-
}
|
| 8320 |
-
|
| 8321 |
-
break;
|
| 8322 |
-
}
|
| 8323 |
-
|
| 8324 |
-
default:
|
| 8325 |
-
{
|
| 8326 |
-
toAdd = arg;
|
| 8327 |
-
}
|
| 8328 |
-
}
|
| 8329 |
-
|
| 8330 |
-
if (toAdd) {
|
| 8331 |
-
cls && (cls += ' ');
|
| 8332 |
-
cls += toAdd;
|
| 8333 |
-
}
|
| 8334 |
-
}
|
| 8335 |
-
|
| 8336 |
-
return cls;
|
| 8337 |
-
};
|
| 8338 |
-
|
| 8339 |
-
function merge(registered, css, className) {
|
| 8340 |
-
var registeredStyles = [];
|
| 8341 |
-
var rawClassName = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */])(registered, registeredStyles, className);
|
| 8342 |
-
|
| 8343 |
-
if (registeredStyles.length < 2) {
|
| 8344 |
-
return className;
|
| 8345 |
-
}
|
| 8346 |
-
|
| 8347 |
-
return rawClassName + css(registeredStyles);
|
| 8348 |
-
}
|
| 8349 |
-
|
| 8350 |
-
var ClassNames = withEmotionCache(function (props, context) {
|
| 8351 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) {
|
| 8352 |
-
var hasRendered = false;
|
| 8353 |
-
|
| 8354 |
-
var css = function css() {
|
| 8355 |
-
if (hasRendered && process.env.NODE_ENV !== 'production') {
|
| 8356 |
-
throw new Error('css can only be used during render');
|
| 8357 |
-
}
|
| 8358 |
-
|
| 8359 |
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 8360 |
-
args[_key] = arguments[_key];
|
| 8361 |
-
}
|
| 8362 |
-
|
| 8363 |
-
var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])(args, context.registered);
|
| 8364 |
-
|
| 8365 |
-
{
|
| 8366 |
-
Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(context, serialized, false);
|
| 8367 |
-
}
|
| 8368 |
-
|
| 8369 |
-
return context.key + "-" + serialized.name;
|
| 8370 |
-
};
|
| 8371 |
-
|
| 8372 |
-
var cx = function cx() {
|
| 8373 |
-
if (hasRendered && process.env.NODE_ENV !== 'production') {
|
| 8374 |
-
throw new Error('cx can only be used during render');
|
| 8375 |
-
}
|
| 8376 |
-
|
| 8377 |
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
| 8378 |
-
args[_key2] = arguments[_key2];
|
| 8379 |
-
}
|
| 8380 |
-
|
| 8381 |
-
return merge(context.registered, css, classnames(args));
|
| 8382 |
-
};
|
| 8383 |
-
|
| 8384 |
-
var content = {
|
| 8385 |
-
css: css,
|
| 8386 |
-
cx: cx,
|
| 8387 |
-
theme: theme
|
| 8388 |
-
};
|
| 8389 |
-
var ele = props.children(content);
|
| 8390 |
-
hasRendered = true;
|
| 8391 |
-
|
| 8392 |
-
return ele;
|
| 8393 |
-
});
|
| 8394 |
-
});
|
| 8395 |
-
|
| 8396 |
-
|
| 8397 |
-
|
| 8398 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 8399 |
-
|
| 8400 |
-
/***/ }),
|
| 8401 |
-
/* 129 */
|
| 8402 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 8403 |
-
|
| 8404 |
-
"use strict";
|
| 8405 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getScrollParent; });
|
| 8406 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollTop; });
|
| 8407 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return animatedScrollTo; });
|
| 8408 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMobileDevice; });
|
| 8409 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return cleanValue; });
|
| 8410 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return scrollIntoView; });
|
| 8411 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getBoundingClientObj; });
|
| 8412 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return classNames; });
|
| 8413 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isTouchCapable; });
|
| 8414 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return isDocumentElement; });
|
| 8415 |
-
/* unused harmony export k */
|
| 8416 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return noop; });
|
| 8417 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return scrollTo; });
|
| 8418 |
-
// ==============================
|
| 8419 |
-
// NO OP
|
| 8420 |
-
// ==============================
|
| 8421 |
-
var noop = function noop() {};
|
| 8422 |
-
// Class Name Prefixer
|
| 8423 |
-
// ==============================
|
| 8424 |
-
|
| 8425 |
-
/**
|
| 8426 |
-
String representation of component state for styling with class names.
|
| 8427 |
-
|
| 8428 |
-
Expects an array of strings OR a string/object pair:
|
| 8429 |
-
- className(['comp', 'comp-arg', 'comp-arg-2'])
|
| 8430 |
-
@returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
|
| 8431 |
-
- className('comp', { some: true, state: false })
|
| 8432 |
-
@returns 'react-select__comp react-select__comp--some'
|
| 8433 |
-
*/
|
| 8434 |
-
|
| 8435 |
-
function applyPrefixToName(prefix, name) {
|
| 8436 |
-
if (!name) {
|
| 8437 |
-
return prefix;
|
| 8438 |
-
} else if (name[0] === '-') {
|
| 8439 |
-
return prefix + name;
|
| 8440 |
-
} else {
|
| 8441 |
-
return prefix + '__' + name;
|
| 8442 |
-
}
|
| 8443 |
-
}
|
| 8444 |
-
|
| 8445 |
-
function classNames(prefix, state, className) {
|
| 8446 |
-
var arr = [className];
|
| 8447 |
-
|
| 8448 |
-
if (state && prefix) {
|
| 8449 |
-
for (var key in state) {
|
| 8450 |
-
if (state.hasOwnProperty(key) && state[key]) {
|
| 8451 |
-
arr.push("" + applyPrefixToName(prefix, key));
|
| 8452 |
-
}
|
| 8453 |
-
}
|
| 8454 |
-
}
|
| 8455 |
-
|
| 8456 |
-
return arr.filter(function (i) {
|
| 8457 |
-
return i;
|
| 8458 |
-
}).map(function (i) {
|
| 8459 |
-
return String(i).trim();
|
| 8460 |
-
}).join(' ');
|
| 8461 |
-
} // ==============================
|
| 8462 |
-
// Clean Value
|
| 8463 |
-
// ==============================
|
| 8464 |
-
|
| 8465 |
-
var cleanValue = function cleanValue(value) {
|
| 8466 |
-
if (Array.isArray(value)) return value.filter(Boolean);
|
| 8467 |
-
if (typeof value === 'object' && value !== null) return [value];
|
| 8468 |
-
return [];
|
| 8469 |
-
}; // ==============================
|
| 8470 |
-
// Handle Input Change
|
| 8471 |
-
// ==============================
|
| 8472 |
-
|
| 8473 |
-
function handleInputChange(inputValue, actionMeta, onInputChange) {
|
| 8474 |
-
if (onInputChange) {
|
| 8475 |
-
var newValue = onInputChange(inputValue, actionMeta);
|
| 8476 |
-
if (typeof newValue === 'string') return newValue;
|
| 8477 |
-
}
|
| 8478 |
-
|
| 8479 |
-
return inputValue;
|
| 8480 |
-
} // ==============================
|
| 8481 |
-
// Scroll Helpers
|
| 8482 |
-
// ==============================
|
| 8483 |
-
|
| 8484 |
-
function isDocumentElement(el) {
|
| 8485 |
-
return [document.documentElement, document.body, window].indexOf(el) > -1;
|
| 8486 |
-
} // Normalized Scroll Top
|
| 8487 |
-
// ------------------------------
|
| 8488 |
-
|
| 8489 |
-
function getScrollTop(el) {
|
| 8490 |
-
if (isDocumentElement(el)) {
|
| 8491 |
-
return window.pageYOffset;
|
| 8492 |
-
}
|
| 8493 |
-
|
| 8494 |
-
return el.scrollTop;
|
| 8495 |
-
}
|
| 8496 |
-
function scrollTo(el, top) {
|
| 8497 |
-
// with a scroll distance, we perform scroll on the element
|
| 8498 |
-
if (isDocumentElement(el)) {
|
| 8499 |
-
window.scrollTo(0, top);
|
| 8500 |
-
return;
|
| 8501 |
-
}
|
| 8502 |
-
|
| 8503 |
-
el.scrollTop = top;
|
| 8504 |
-
} // Get Scroll Parent
|
| 8505 |
-
// ------------------------------
|
| 8506 |
-
|
| 8507 |
-
function getScrollParent(element) {
|
| 8508 |
-
var style = getComputedStyle(element);
|
| 8509 |
-
var excludeStaticParent = style.position === 'absolute';
|
| 8510 |
-
var overflowRx = /(auto|scroll)/;
|
| 8511 |
-
var docEl = document.documentElement; // suck it, flow...
|
| 8512 |
-
|
| 8513 |
-
if (style.position === 'fixed') return docEl;
|
| 8514 |
-
|
| 8515 |
-
for (var parent = element; parent = parent.parentElement;) {
|
| 8516 |
-
style = getComputedStyle(parent);
|
| 8517 |
-
|
| 8518 |
-
if (excludeStaticParent && style.position === 'static') {
|
| 8519 |
-
continue;
|
| 8520 |
-
}
|
| 8521 |
-
|
| 8522 |
-
if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
|
| 8523 |
-
return parent;
|
| 8524 |
-
}
|
| 8525 |
-
}
|
| 8526 |
-
|
| 8527 |
-
return docEl;
|
| 8528 |
-
} // Animated Scroll To
|
| 8529 |
-
// ------------------------------
|
| 8530 |
-
|
| 8531 |
-
/**
|
| 8532 |
-
@param t: time (elapsed)
|
| 8533 |
-
@param b: initial value
|
| 8534 |
-
@param c: amount of change
|
| 8535 |
-
@param d: duration
|
| 8536 |
-
*/
|
| 8537 |
-
|
| 8538 |
-
function easeOutCubic(t, b, c, d) {
|
| 8539 |
-
return c * ((t = t / d - 1) * t * t + 1) + b;
|
| 8540 |
-
}
|
| 8541 |
-
|
| 8542 |
-
function animatedScrollTo(element, to, duration, callback) {
|
| 8543 |
-
if (duration === void 0) {
|
| 8544 |
-
duration = 200;
|
| 8545 |
-
}
|
| 8546 |
-
|
| 8547 |
-
if (callback === void 0) {
|
| 8548 |
-
callback = noop;
|
| 8549 |
-
}
|
| 8550 |
-
|
| 8551 |
-
var start = getScrollTop(element);
|
| 8552 |
-
var change = to - start;
|
| 8553 |
-
var increment = 10;
|
| 8554 |
-
var currentTime = 0;
|
| 8555 |
-
|
| 8556 |
-
function animateScroll() {
|
| 8557 |
-
currentTime += increment;
|
| 8558 |
-
var val = easeOutCubic(currentTime, start, change, duration);
|
| 8559 |
-
scrollTo(element, val);
|
| 8560 |
-
|
| 8561 |
-
if (currentTime < duration) {
|
| 8562 |
-
window.requestAnimationFrame(animateScroll);
|
| 8563 |
-
} else {
|
| 8564 |
-
callback(element);
|
| 8565 |
-
}
|
| 8566 |
-
}
|
| 8567 |
-
|
| 8568 |
-
animateScroll();
|
| 8569 |
-
} // Scroll Into View
|
| 8570 |
-
// ------------------------------
|
| 8571 |
-
|
| 8572 |
-
function scrollIntoView(menuEl, focusedEl) {
|
| 8573 |
-
var menuRect = menuEl.getBoundingClientRect();
|
| 8574 |
-
var focusedRect = focusedEl.getBoundingClientRect();
|
| 8575 |
-
var overScroll = focusedEl.offsetHeight / 3;
|
| 8576 |
-
|
| 8577 |
-
if (focusedRect.bottom + overScroll > menuRect.bottom) {
|
| 8578 |
-
scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
|
| 8579 |
-
} else if (focusedRect.top - overScroll < menuRect.top) {
|
| 8580 |
-
scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
|
| 8581 |
-
}
|
| 8582 |
-
} // ==============================
|
| 8583 |
-
// Get bounding client object
|
| 8584 |
-
// ==============================
|
| 8585 |
-
// cannot get keys using array notation with DOMRect
|
| 8586 |
-
|
| 8587 |
-
function getBoundingClientObj(element) {
|
| 8588 |
-
var rect = element.getBoundingClientRect();
|
| 8589 |
-
return {
|
| 8590 |
-
bottom: rect.bottom,
|
| 8591 |
-
height: rect.height,
|
| 8592 |
-
left: rect.left,
|
| 8593 |
-
right: rect.right,
|
| 8594 |
-
top: rect.top,
|
| 8595 |
-
width: rect.width
|
| 8596 |
-
};
|
| 8597 |
-
}
|
| 8598 |
-
// Touch Capability Detector
|
| 8599 |
-
// ==============================
|
| 8600 |
-
|
| 8601 |
-
function isTouchCapable() {
|
| 8602 |
-
try {
|
| 8603 |
-
document.createEvent('TouchEvent');
|
| 8604 |
-
return true;
|
| 8605 |
-
} catch (e) {
|
| 8606 |
-
return false;
|
| 8607 |
-
}
|
| 8608 |
-
} // ==============================
|
| 8609 |
-
// Mobile Device Detector
|
| 8610 |
-
// ==============================
|
| 8611 |
-
|
| 8612 |
-
function isMobileDevice() {
|
| 8613 |
-
try {
|
| 8614 |
-
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
| 8615 |
-
} catch (e) {
|
| 8616 |
-
return false;
|
| 8617 |
-
}
|
| 8618 |
-
}
|
| 8619 |
-
|
| 8620 |
-
|
| 8621 |
-
|
| 8622 |
-
|
| 8623 |
-
/***/ }),
|
| 8624 |
-
/* 130 */
|
| 8625 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 8626 |
-
|
| 8627 |
-
"use strict";
|
| 8628 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export UNMOUNTED */
|
| 8629 |
-
/* unused harmony export EXITED */
|
| 8630 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ENTERING; });
|
| 8631 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ENTERED; });
|
| 8632 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EXITING; });
|
| 8633 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(54);
|
| 8634 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(55);
|
| 8635 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2);
|
| 8636 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
|
| 8637 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
|
| 8638 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
|
| 8639 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom__ = __webpack_require__(11);
|
| 8640 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_dom__);
|
| 8641 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(239);
|
| 8642 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__ = __webpack_require__(240);
|
| 8643 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__ = __webpack_require__(131);
|
| 8644 |
-
|
| 8645 |
-
|
| 8646 |
-
|
| 8647 |
-
|
| 8648 |
-
|
| 8649 |
-
|
| 8650 |
-
|
| 8651 |
-
|
| 8652 |
-
var UNMOUNTED = 'unmounted';
|
| 8653 |
-
var EXITED = 'exited';
|
| 8654 |
-
var ENTERING = 'entering';
|
| 8655 |
-
var ENTERED = 'entered';
|
| 8656 |
-
var EXITING = 'exiting';
|
| 8657 |
-
/**
|
| 8658 |
-
* The Transition component lets you describe a transition from one component
|
| 8659 |
-
* state to another _over time_ with a simple declarative API. Most commonly
|
| 8660 |
-
* it's used to animate the mounting and unmounting of a component, but can also
|
| 8661 |
-
* be used to describe in-place transition states as well.
|
| 8662 |
-
*
|
| 8663 |
-
* ---
|
| 8664 |
-
*
|
| 8665 |
-
* **Note**: `Transition` is a platform-agnostic base component. If you're using
|
| 8666 |
-
* transitions in CSS, you'll probably want to use
|
| 8667 |
-
* [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
|
| 8668 |
-
* instead. It inherits all the features of `Transition`, but contains
|
| 8669 |
-
* additional features necessary to play nice with CSS transitions (hence the
|
| 8670 |
-
* name of the component).
|
| 8671 |
-
*
|
| 8672 |
-
* ---
|
| 8673 |
-
*
|
| 8674 |
-
* By default the `Transition` component does not alter the behavior of the
|
| 8675 |
-
* component it renders, it only tracks "enter" and "exit" states for the
|
| 8676 |
-
* components. It's up to you to give meaning and effect to those states. For
|
| 8677 |
-
* example we can add styles to a component when it enters or exits:
|
| 8678 |
-
*
|
| 8679 |
-
* ```jsx
|
| 8680 |
-
* import { Transition } from 'react-transition-group';
|
| 8681 |
-
*
|
| 8682 |
-
* const duration = 300;
|
| 8683 |
-
*
|
| 8684 |
-
* const defaultStyle = {
|
| 8685 |
-
* transition: `opacity ${duration}ms ease-in-out`,
|
| 8686 |
-
* opacity: 0,
|
| 8687 |
-
* }
|
| 8688 |
-
*
|
| 8689 |
-
* const transitionStyles = {
|
| 8690 |
-
* entering: { opacity: 1 },
|
| 8691 |
-
* entered: { opacity: 1 },
|
| 8692 |
-
* exiting: { opacity: 0 },
|
| 8693 |
-
* exited: { opacity: 0 },
|
| 8694 |
-
* };
|
| 8695 |
-
*
|
| 8696 |
-
* const Fade = ({ in: inProp }) => (
|
| 8697 |
-
* <Transition in={inProp} timeout={duration}>
|
| 8698 |
-
* {state => (
|
| 8699 |
-
* <div style={{
|
| 8700 |
-
* ...defaultStyle,
|
| 8701 |
-
* ...transitionStyles[state]
|
| 8702 |
-
* }}>
|
| 8703 |
-
* I'm a fade Transition!
|
| 8704 |
-
* </div>
|
| 8705 |
-
* )}
|
| 8706 |
-
* </Transition>
|
| 8707 |
-
* );
|
| 8708 |
-
* ```
|
| 8709 |
-
*
|
| 8710 |
-
* There are 4 main states a Transition can be in:
|
| 8711 |
-
* - `'entering'`
|
| 8712 |
-
* - `'entered'`
|
| 8713 |
-
* - `'exiting'`
|
| 8714 |
-
* - `'exited'`
|
| 8715 |
-
*
|
| 8716 |
-
* Transition state is toggled via the `in` prop. When `true` the component
|
| 8717 |
-
* begins the "Enter" stage. During this stage, the component will shift from
|
| 8718 |
-
* its current transition state, to `'entering'` for the duration of the
|
| 8719 |
-
* transition and then to the `'entered'` stage once it's complete. Let's take
|
| 8720 |
-
* the following example (we'll use the
|
| 8721 |
-
* [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
|
| 8722 |
-
*
|
| 8723 |
-
* ```jsx
|
| 8724 |
-
* function App() {
|
| 8725 |
-
* const [inProp, setInProp] = useState(false);
|
| 8726 |
-
* return (
|
| 8727 |
-
* <div>
|
| 8728 |
-
* <Transition in={inProp} timeout={500}>
|
| 8729 |
-
* {state => (
|
| 8730 |
-
* // ...
|
| 8731 |
-
* )}
|
| 8732 |
-
* </Transition>
|
| 8733 |
-
* <button onClick={() => setInProp(true)}>
|
| 8734 |
-
* Click to Enter
|
| 8735 |
-
* </button>
|
| 8736 |
-
* </div>
|
| 8737 |
-
* );
|
| 8738 |
-
* }
|
| 8739 |
-
* ```
|
| 8740 |
-
*
|
| 8741 |
-
* When the button is clicked the component will shift to the `'entering'` state
|
| 8742 |
-
* and stay there for 500ms (the value of `timeout`) before it finally switches
|
| 8743 |
-
* to `'entered'`.
|
| 8744 |
-
*
|
| 8745 |
-
* When `in` is `false` the same thing happens except the state moves from
|
| 8746 |
-
* `'exiting'` to `'exited'`.
|
| 8747 |
-
*/
|
| 8748 |
-
|
| 8749 |
-
var Transition = /*#__PURE__*/function (_React$Component) {
|
| 8750 |
-
Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Transition, _React$Component);
|
| 8751 |
-
|
| 8752 |
-
function Transition(props, context) {
|
| 8753 |
-
var _this;
|
| 8754 |
-
|
| 8755 |
-
_this = _React$Component.call(this, props, context) || this;
|
| 8756 |
-
var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
|
| 8757 |
-
|
| 8758 |
-
var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
|
| 8759 |
-
var initialStatus;
|
| 8760 |
-
_this.appearStatus = null;
|
| 8761 |
-
|
| 8762 |
-
if (props.in) {
|
| 8763 |
-
if (appear) {
|
| 8764 |
-
initialStatus = EXITED;
|
| 8765 |
-
_this.appearStatus = ENTERING;
|
| 8766 |
-
} else {
|
| 8767 |
-
initialStatus = ENTERED;
|
| 8768 |
-
}
|
| 8769 |
-
} else {
|
| 8770 |
-
if (props.unmountOnExit || props.mountOnEnter) {
|
| 8771 |
-
initialStatus = UNMOUNTED;
|
| 8772 |
-
} else {
|
| 8773 |
-
initialStatus = EXITED;
|
| 8774 |
-
}
|
| 8775 |
-
}
|
| 8776 |
-
|
| 8777 |
-
_this.state = {
|
| 8778 |
-
status: initialStatus
|
| 8779 |
-
};
|
| 8780 |
-
_this.nextCallback = null;
|
| 8781 |
-
return _this;
|
| 8782 |
-
}
|
| 8783 |
-
|
| 8784 |
-
Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
|
| 8785 |
-
var nextIn = _ref.in;
|
| 8786 |
-
|
| 8787 |
-
if (nextIn && prevState.status === UNMOUNTED) {
|
| 8788 |
-
return {
|
| 8789 |
-
status: EXITED
|
| 8790 |
-
};
|
| 8791 |
-
}
|
| 8792 |
-
|
| 8793 |
-
return null;
|
| 8794 |
-
} // getSnapshotBeforeUpdate(prevProps) {
|
| 8795 |
-
// let nextStatus = null
|
| 8796 |
-
// if (prevProps !== this.props) {
|
| 8797 |
-
// const { status } = this.state
|
| 8798 |
-
// if (this.props.in) {
|
| 8799 |
-
// if (status !== ENTERING && status !== ENTERED) {
|
| 8800 |
-
// nextStatus = ENTERING
|
| 8801 |
-
// }
|
| 8802 |
-
// } else {
|
| 8803 |
-
// if (status === ENTERING || status === ENTERED) {
|
| 8804 |
-
// nextStatus = EXITING
|
| 8805 |
-
// }
|
| 8806 |
-
// }
|
| 8807 |
-
// }
|
| 8808 |
-
// return { nextStatus }
|
| 8809 |
-
// }
|
| 8810 |
-
;
|
| 8811 |
-
|
| 8812 |
-
var _proto = Transition.prototype;
|
| 8813 |
-
|
| 8814 |
-
_proto.componentDidMount = function componentDidMount() {
|
| 8815 |
-
this.updateStatus(true, this.appearStatus);
|
| 8816 |
-
};
|
| 8817 |
-
|
| 8818 |
-
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
| 8819 |
-
var nextStatus = null;
|
| 8820 |
-
|
| 8821 |
-
if (prevProps !== this.props) {
|
| 8822 |
-
var status = this.state.status;
|
| 8823 |
-
|
| 8824 |
-
if (this.props.in) {
|
| 8825 |
-
if (status !== ENTERING && status !== ENTERED) {
|
| 8826 |
-
nextStatus = ENTERING;
|
| 8827 |
-
}
|
| 8828 |
-
} else {
|
| 8829 |
-
if (status === ENTERING || status === ENTERED) {
|
| 8830 |
-
nextStatus = EXITING;
|
| 8831 |
-
}
|
| 8832 |
-
}
|
| 8833 |
-
}
|
| 8834 |
-
|
| 8835 |
-
this.updateStatus(false, nextStatus);
|
| 8836 |
-
};
|
| 8837 |
-
|
| 8838 |
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
| 8839 |
-
this.cancelNextCallback();
|
| 8840 |
-
};
|
| 8841 |
-
|
| 8842 |
-
_proto.getTimeouts = function getTimeouts() {
|
| 8843 |
-
var timeout = this.props.timeout;
|
| 8844 |
-
var exit, enter, appear;
|
| 8845 |
-
exit = enter = appear = timeout;
|
| 8846 |
-
|
| 8847 |
-
if (timeout != null && typeof timeout !== 'number') {
|
| 8848 |
-
exit = timeout.exit;
|
| 8849 |
-
enter = timeout.enter; // TODO: remove fallback for next major
|
| 8850 |
-
|
| 8851 |
-
appear = timeout.appear !== undefined ? timeout.appear : enter;
|
| 8852 |
-
}
|
| 8853 |
-
|
| 8854 |
-
return {
|
| 8855 |
-
exit: exit,
|
| 8856 |
-
enter: enter,
|
| 8857 |
-
appear: appear
|
| 8858 |
-
};
|
| 8859 |
-
};
|
| 8860 |
-
|
| 8861 |
-
_proto.updateStatus = function updateStatus(mounting, nextStatus) {
|
| 8862 |
-
if (mounting === void 0) {
|
| 8863 |
-
mounting = false;
|
| 8864 |
-
}
|
| 8865 |
-
|
| 8866 |
-
if (nextStatus !== null) {
|
| 8867 |
-
// nextStatus will always be ENTERING or EXITING.
|
| 8868 |
-
this.cancelNextCallback();
|
| 8869 |
-
|
| 8870 |
-
if (nextStatus === ENTERING) {
|
| 8871 |
-
this.performEnter(mounting);
|
| 8872 |
-
} else {
|
| 8873 |
-
this.performExit();
|
| 8874 |
-
}
|
| 8875 |
-
} else if (this.props.unmountOnExit && this.state.status === EXITED) {
|
| 8876 |
-
this.setState({
|
| 8877 |
-
status: UNMOUNTED
|
| 8878 |
-
});
|
| 8879 |
-
}
|
| 8880 |
-
};
|
| 8881 |
-
|
| 8882 |
-
_proto.performEnter = function performEnter(mounting) {
|
| 8883 |
-
var _this2 = this;
|
| 8884 |
-
|
| 8885 |
-
var enter = this.props.enter;
|
| 8886 |
-
var appearing = this.context ? this.context.isMounting : mounting;
|
| 8887 |
-
|
| 8888 |
-
var _ref2 = this.props.nodeRef ? [appearing] : [__WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this), appearing],
|
| 8889 |
-
maybeNode = _ref2[0],
|
| 8890 |
-
maybeAppearing = _ref2[1];
|
| 8891 |
-
|
| 8892 |
-
var timeouts = this.getTimeouts();
|
| 8893 |
-
var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
|
| 8894 |
-
// if we are mounting and running this it means appear _must_ be set
|
| 8895 |
-
|
| 8896 |
-
if (!mounting && !enter || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
|
| 8897 |
-
this.safeSetState({
|
| 8898 |
-
status: ENTERED
|
| 8899 |
-
}, function () {
|
| 8900 |
-
_this2.props.onEntered(maybeNode);
|
| 8901 |
-
});
|
| 8902 |
-
return;
|
| 8903 |
-
}
|
| 8904 |
-
|
| 8905 |
-
this.props.onEnter(maybeNode, maybeAppearing);
|
| 8906 |
-
this.safeSetState({
|
| 8907 |
-
status: ENTERING
|
| 8908 |
-
}, function () {
|
| 8909 |
-
_this2.props.onEntering(maybeNode, maybeAppearing);
|
| 8910 |
-
|
| 8911 |
-
_this2.onTransitionEnd(enterTimeout, function () {
|
| 8912 |
-
_this2.safeSetState({
|
| 8913 |
-
status: ENTERED
|
| 8914 |
-
}, function () {
|
| 8915 |
-
_this2.props.onEntered(maybeNode, maybeAppearing);
|
| 8916 |
-
});
|
| 8917 |
-
});
|
| 8918 |
-
});
|
| 8919 |
-
};
|
| 8920 |
-
|
| 8921 |
-
_proto.performExit = function performExit() {
|
| 8922 |
-
var _this3 = this;
|
| 8923 |
-
|
| 8924 |
-
var exit = this.props.exit;
|
| 8925 |
-
var timeouts = this.getTimeouts();
|
| 8926 |
-
var maybeNode = this.props.nodeRef ? undefined : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this); // no exit animation skip right to EXITED
|
| 8927 |
-
|
| 8928 |
-
if (!exit || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
|
| 8929 |
-
this.safeSetState({
|
| 8930 |
-
status: EXITED
|
| 8931 |
-
}, function () {
|
| 8932 |
-
_this3.props.onExited(maybeNode);
|
| 8933 |
-
});
|
| 8934 |
-
return;
|
| 8935 |
-
}
|
| 8936 |
-
|
| 8937 |
-
this.props.onExit(maybeNode);
|
| 8938 |
-
this.safeSetState({
|
| 8939 |
-
status: EXITING
|
| 8940 |
-
}, function () {
|
| 8941 |
-
_this3.props.onExiting(maybeNode);
|
| 8942 |
-
|
| 8943 |
-
_this3.onTransitionEnd(timeouts.exit, function () {
|
| 8944 |
-
_this3.safeSetState({
|
| 8945 |
-
status: EXITED
|
| 8946 |
-
}, function () {
|
| 8947 |
-
_this3.props.onExited(maybeNode);
|
| 8948 |
-
});
|
| 8949 |
-
});
|
| 8950 |
-
});
|
| 8951 |
-
};
|
| 8952 |
-
|
| 8953 |
-
_proto.cancelNextCallback = function cancelNextCallback() {
|
| 8954 |
-
if (this.nextCallback !== null) {
|
| 8955 |
-
this.nextCallback.cancel();
|
| 8956 |
-
this.nextCallback = null;
|
| 8957 |
-
}
|
| 8958 |
-
};
|
| 8959 |
-
|
| 8960 |
-
_proto.safeSetState = function safeSetState(nextState, callback) {
|
| 8961 |
-
// This shouldn't be necessary, but there are weird race conditions with
|
| 8962 |
-
// setState callbacks and unmounting in testing, so always make sure that
|
| 8963 |
-
// we can cancel any pending setState callbacks after we unmount.
|
| 8964 |
-
callback = this.setNextCallback(callback);
|
| 8965 |
-
this.setState(nextState, callback);
|
| 8966 |
-
};
|
| 8967 |
-
|
| 8968 |
-
_proto.setNextCallback = function setNextCallback(callback) {
|
| 8969 |
-
var _this4 = this;
|
| 8970 |
-
|
| 8971 |
-
var active = true;
|
| 8972 |
-
|
| 8973 |
-
this.nextCallback = function (event) {
|
| 8974 |
-
if (active) {
|
| 8975 |
-
active = false;
|
| 8976 |
-
_this4.nextCallback = null;
|
| 8977 |
-
callback(event);
|
| 8978 |
-
}
|
| 8979 |
-
};
|
| 8980 |
-
|
| 8981 |
-
this.nextCallback.cancel = function () {
|
| 8982 |
-
active = false;
|
| 8983 |
-
};
|
| 8984 |
-
|
| 8985 |
-
return this.nextCallback;
|
| 8986 |
-
};
|
| 8987 |
-
|
| 8988 |
-
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
| 8989 |
-
this.setNextCallback(handler);
|
| 8990 |
-
var node = this.props.nodeRef ? this.props.nodeRef.current : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this);
|
| 8991 |
-
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
| 8992 |
-
|
| 8993 |
-
if (!node || doesNotHaveTimeoutOrListener) {
|
| 8994 |
-
setTimeout(this.nextCallback, 0);
|
| 8995 |
-
return;
|
| 8996 |
-
}
|
| 8997 |
-
|
| 8998 |
-
if (this.props.addEndListener) {
|
| 8999 |
-
var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],
|
| 9000 |
-
maybeNode = _ref3[0],
|
| 9001 |
-
maybeNextCallback = _ref3[1];
|
| 9002 |
-
|
| 9003 |
-
this.props.addEndListener(maybeNode, maybeNextCallback);
|
| 9004 |
-
}
|
| 9005 |
-
|
| 9006 |
-
if (timeout != null) {
|
| 9007 |
-
setTimeout(this.nextCallback, timeout);
|
| 9008 |
-
}
|
| 9009 |
-
};
|
| 9010 |
-
|
| 9011 |
-
_proto.render = function render() {
|
| 9012 |
-
var status = this.state.status;
|
| 9013 |
-
|
| 9014 |
-
if (status === UNMOUNTED) {
|
| 9015 |
-
return null;
|
| 9016 |
-
}
|
| 9017 |
-
|
| 9018 |
-
var _this$props = this.props,
|
| 9019 |
-
children = _this$props.children,
|
| 9020 |
-
_in = _this$props.in,
|
| 9021 |
-
_mountOnEnter = _this$props.mountOnEnter,
|
| 9022 |
-
_unmountOnExit = _this$props.unmountOnExit,
|
| 9023 |
-
_appear = _this$props.appear,
|
| 9024 |
-
_enter = _this$props.enter,
|
| 9025 |
-
_exit = _this$props.exit,
|
| 9026 |
-
_timeout = _this$props.timeout,
|
| 9027 |
-
_addEndListener = _this$props.addEndListener,
|
| 9028 |
-
_onEnter = _this$props.onEnter,
|
| 9029 |
-
_onEntering = _this$props.onEntering,
|
| 9030 |
-
_onEntered = _this$props.onEntered,
|
| 9031 |
-
_onExit = _this$props.onExit,
|
| 9032 |
-
_onExiting = _this$props.onExiting,
|
| 9033 |
-
_onExited = _this$props.onExited,
|
| 9034 |
-
_nodeRef = _this$props.nodeRef,
|
| 9035 |
-
childProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
| 9036 |
-
|
| 9037 |
-
return (
|
| 9038 |
-
/*#__PURE__*/
|
| 9039 |
-
// allows for nested Transitions
|
| 9040 |
-
__WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */].Provider, {
|
| 9041 |
-
value: null
|
| 9042 |
-
}, typeof children === 'function' ? children(status, childProps) : __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Children.only(children), childProps))
|
| 9043 |
-
);
|
| 9044 |
-
};
|
| 9045 |
-
|
| 9046 |
-
return Transition;
|
| 9047 |
-
}(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Component);
|
| 9048 |
-
|
| 9049 |
-
Transition.contextType = __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */];
|
| 9050 |
-
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
| 9051 |
-
/**
|
| 9052 |
-
* A React reference to DOM element that need to transition:
|
| 9053 |
-
* https://stackoverflow.com/a/51127130/4671932
|
| 9054 |
-
*
|
| 9055 |
-
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
| 9056 |
-
* (e.g. `onEnter`) because user already has direct access to the node.
|
| 9057 |
-
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
| 9058 |
-
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
| 9059 |
-
* (see
|
| 9060 |
-
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
| 9061 |
-
*/
|
| 9062 |
-
nodeRef: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({
|
| 9063 |
-
current: typeof Element === 'undefined' ? __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any : __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.instanceOf(Element)
|
| 9064 |
-
}),
|
| 9065 |
-
|
| 9066 |
-
/**
|
| 9067 |
-
* A `function` child can be used instead of a React element. This function is
|
| 9068 |
-
* called with the current transition status (`'entering'`, `'entered'`,
|
| 9069 |
-
* `'exiting'`, `'exited'`), which can be used to apply context
|
| 9070 |
-
* specific props to a component.
|
| 9071 |
-
*
|
| 9072 |
-
* ```jsx
|
| 9073 |
-
* <Transition in={this.state.in} timeout={150}>
|
| 9074 |
-
* {state => (
|
| 9075 |
-
* <MyComponent className={`fade fade-${state}`} />
|
| 9076 |
-
* )}
|
| 9077 |
-
* </Transition>
|
| 9078 |
-
* ```
|
| 9079 |
-
*/
|
| 9080 |
-
children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element.isRequired]).isRequired,
|
| 9081 |
-
|
| 9082 |
-
/**
|
| 9083 |
-
* Show the component; triggers the enter or exit states
|
| 9084 |
-
*/
|
| 9085 |
-
in: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
| 9086 |
-
|
| 9087 |
-
/**
|
| 9088 |
-
* By default the child component is mounted immediately along with
|
| 9089 |
-
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
| 9090 |
-
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
| 9091 |
-
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
| 9092 |
-
*/
|
| 9093 |
-
mountOnEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
| 9094 |
-
|
| 9095 |
-
/**
|
| 9096 |
-
* By default the child component stays mounted after it reaches the `'exited'` state.
|
| 9097 |
-
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
| 9098 |
-
*/
|
| 9099 |
-
unmountOnExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
| 9100 |
-
|
| 9101 |
-
/**
|
| 9102 |
-
* By default the child component does not perform the enter transition when
|
| 9103 |
-
* it first mounts, regardless of the value of `in`. If you want this
|
| 9104 |
-
* behavior, set both `appear` and `in` to `true`.
|
| 9105 |
-
*
|
| 9106 |
-
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
| 9107 |
-
* > only adds an additional enter transition. However, in the
|
| 9108 |
-
* > `<CSSTransition>` component that first enter transition does result in
|
| 9109 |
-
* > additional `.appear-*` classes, that way you can choose to style it
|
| 9110 |
-
* > differently.
|
| 9111 |
-
*/
|
| 9112 |
-
appear: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
| 9113 |
-
|
| 9114 |
-
/**
|
| 9115 |
-
* Enable or disable enter transitions.
|
| 9116 |
-
*/
|
| 9117 |
-
enter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
| 9118 |
-
|
| 9119 |
-
/**
|
| 9120 |
-
* Enable or disable exit transitions.
|
| 9121 |
-
*/
|
| 9122 |
-
exit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
| 9123 |
-
|
| 9124 |
-
/**
|
| 9125 |
-
* The duration of the transition, in milliseconds.
|
| 9126 |
-
* Required unless `addEndListener` is provided.
|
| 9127 |
-
*
|
| 9128 |
-
* You may specify a single timeout for all transitions:
|
| 9129 |
-
*
|
| 9130 |
-
* ```jsx
|
| 9131 |
-
* timeout={500}
|
| 9132 |
-
* ```
|
| 9133 |
-
*
|
| 9134 |
-
* or individually:
|
| 9135 |
-
*
|
| 9136 |
-
* ```jsx
|
| 9137 |
-
* timeout={{
|
| 9138 |
-
* appear: 500,
|
| 9139 |
-
* enter: 300,
|
| 9140 |
-
* exit: 500,
|
| 9141 |
-
* }}
|
| 9142 |
-
* ```
|
| 9143 |
-
*
|
| 9144 |
-
* - `appear` defaults to the value of `enter`
|
| 9145 |
-
* - `enter` defaults to `0`
|
| 9146 |
-
* - `exit` defaults to `0`
|
| 9147 |
-
*
|
| 9148 |
-
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
| 9149 |
-
*/
|
| 9150 |
-
timeout: function timeout(props) {
|
| 9151 |
-
var pt = __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__["b" /* timeoutsShape */];
|
| 9152 |
-
if (!props.addEndListener) pt = pt.isRequired;
|
| 9153 |
-
|
| 9154 |
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
| 9155 |
-
args[_key - 1] = arguments[_key];
|
| 9156 |
-
}
|
| 9157 |
-
|
| 9158 |
-
return pt.apply(void 0, [props].concat(args));
|
| 9159 |
-
},
|
| 9160 |
-
|
| 9161 |
-
/**
|
| 9162 |
-
* Add a custom transition end trigger. Called with the transitioning
|
| 9163 |
-
* DOM node and a `done` callback. Allows for more fine grained transition end
|
| 9164 |
-
* logic. Timeouts are still used as a fallback if provided.
|
| 9165 |
-
*
|
| 9166 |
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
| 9167 |
-
*
|
| 9168 |
-
* ```jsx
|
| 9169 |
-
* addEndListener={(node, done) => {
|
| 9170 |
-
* // use the css transitionend event to mark the finish of a transition
|
| 9171 |
-
* node.addEventListener('transitionend', done, false);
|
| 9172 |
-
* }}
|
| 9173 |
-
* ```
|
| 9174 |
-
*/
|
| 9175 |
-
addEndListener: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
|
| 9176 |
-
|
| 9177 |
-
/**
|
| 9178 |
-
* Callback fired before the "entering" status is applied. An extra parameter
|
| 9179 |
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
| 9180 |
-
*
|
| 9181 |
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
| 9182 |
-
*
|
| 9183 |
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
| 9184 |
-
*/
|
| 9185 |
-
onEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
|
| 9186 |
-
|
| 9187 |
-
/**
|
| 9188 |
-
* Callback fired after the "entering" status is applied. An extra parameter
|
| 9189 |
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
| 9190 |
-
*
|
| 9191 |
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
| 9192 |
-
*
|
| 9193 |
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
| 9194 |
-
*/
|
| 9195 |
-
onEntering: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
|
| 9196 |
-
|
| 9197 |
-
/**
|
| 9198 |
-
* Callback fired after the "entered" status is applied. An extra parameter
|
| 9199 |
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
| 9200 |
-
*
|
| 9201 |
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
| 9202 |
-
*
|
| 9203 |
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
| 9204 |
-
*/
|
| 9205 |
-
onEntered: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
|
| 9206 |
-
|
| 9207 |
-
/**
|
| 9208 |
-
* Callback fired before the "exiting" status is applied.
|
| 9209 |
-
*
|
| 9210 |
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
| 9211 |
-
*
|
| 9212 |
-
* @type Function(node: HtmlElement) -> void
|
| 9213 |
-
*/
|
| 9214 |
-
onExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
|
| 9215 |
-
|
| 9216 |
-
/**
|
| 9217 |
-
* Callback fired after the "exiting" status is applied.
|
| 9218 |
-
*
|
| 9219 |
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
| 9220 |
-
*
|
| 9221 |
-
* @type Function(node: HtmlElement) -> void
|
| 9222 |
-
*/
|
| 9223 |
-
onExiting: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
|
| 9224 |
-
|
| 9225 |
-
/**
|
| 9226 |
-
* Callback fired after the "exited" status is applied.
|
| 9227 |
-
*
|
| 9228 |
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
| 9229 |
-
*
|
| 9230 |
-
* @type Function(node: HtmlElement) -> void
|
| 9231 |
-
*/
|
| 9232 |
-
onExited: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func
|
| 9233 |
-
} : {}; // Name the function so it is clearer in the documentation
|
| 9234 |
-
|
| 9235 |
-
function noop() {}
|
| 9236 |
-
|
| 9237 |
-
Transition.defaultProps = {
|
| 9238 |
-
in: false,
|
| 9239 |
-
mountOnEnter: false,
|
| 9240 |
-
unmountOnExit: false,
|
| 9241 |
-
appear: false,
|
| 9242 |
-
enter: true,
|
| 9243 |
-
exit: true,
|
| 9244 |
-
onEnter: noop,
|
| 9245 |
-
onEntering: noop,
|
| 9246 |
-
onEntered: noop,
|
| 9247 |
-
onExit: noop,
|
| 9248 |
-
onExiting: noop,
|
| 9249 |
-
onExited: noop
|
| 9250 |
-
};
|
| 9251 |
-
Transition.UNMOUNTED = UNMOUNTED;
|
| 9252 |
-
Transition.EXITED = EXITED;
|
| 9253 |
-
Transition.ENTERING = ENTERING;
|
| 9254 |
-
Transition.ENTERED = ENTERED;
|
| 9255 |
-
Transition.EXITING = EXITING;
|
| 9256 |
-
/* harmony default export */ __webpack_exports__["d"] = (Transition);
|
| 9257 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 9258 |
-
|
| 9259 |
-
/***/ }),
|
| 9260 |
-
/* 131 */
|
| 9261 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9262 |
-
|
| 9263 |
-
"use strict";
|
| 9264 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 9265 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 9266 |
-
|
| 9267 |
-
/* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null));
|
| 9268 |
-
|
| 9269 |
-
/***/ }),
|
| 9270 |
-
/* 132 */
|
| 9271 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9272 |
-
|
| 9273 |
-
"use strict";
|
| 9274 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Avatar__ = __webpack_require__(552);
|
| 9275 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Avatar__["a"]; });
|
| 9276 |
-
|
| 9277 |
-
|
| 9278 |
-
/***/ }),
|
| 9279 |
-
/* 133 */
|
| 9280 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9281 |
-
|
| 9282 |
-
"use strict";
|
| 9283 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Button__ = __webpack_require__(564);
|
| 9284 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Button__["a"]; });
|
| 9285 |
-
|
| 9286 |
-
|
| 9287 |
-
/***/ }),
|
| 9288 |
-
/* 134 */
|
| 9289 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9290 |
-
|
| 9291 |
-
"use strict";
|
| 9292 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
|
| 9293 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 9294 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(20);
|
| 9295 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
|
| 9296 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
|
| 9297 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
|
| 9298 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
|
| 9299 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
|
| 9300 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_clsx__ = __webpack_require__(5);
|
| 9301 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__ = __webpack_require__(7);
|
| 9302 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_useControlled__ = __webpack_require__(41);
|
| 9303 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__ = __webpack_require__(49);
|
| 9304 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__styles_withStyles__ = __webpack_require__(6);
|
| 9305 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__IconButton__ = __webpack_require__(42);
|
| 9306 |
-
|
| 9307 |
-
|
| 9308 |
-
|
| 9309 |
-
|
| 9310 |
-
|
| 9311 |
-
|
| 9312 |
-
|
| 9313 |
-
|
| 9314 |
-
|
| 9315 |
-
|
| 9316 |
-
|
| 9317 |
-
var styles = {
|
| 9318 |
-
root: {
|
| 9319 |
-
padding: 9
|
| 9320 |
-
},
|
| 9321 |
-
checked: {},
|
| 9322 |
-
disabled: {},
|
| 9323 |
-
input: {
|
| 9324 |
-
cursor: 'inherit',
|
| 9325 |
-
position: 'absolute',
|
| 9326 |
-
opacity: 0,
|
| 9327 |
-
width: '100%',
|
| 9328 |
-
height: '100%',
|
| 9329 |
-
top: 0,
|
| 9330 |
-
left: 0,
|
| 9331 |
-
margin: 0,
|
| 9332 |
-
padding: 0,
|
| 9333 |
-
zIndex: 1
|
| 9334 |
-
}
|
| 9335 |
-
};
|
| 9336 |
-
/**
|
| 9337 |
-
* @ignore - internal component.
|
| 9338 |
-
*/
|
| 9339 |
-
|
| 9340 |
-
var SwitchBase = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["forwardRef"](function SwitchBase(props, ref) {
|
| 9341 |
-
var autoFocus = props.autoFocus,
|
| 9342 |
-
checkedProp = props.checked,
|
| 9343 |
-
checkedIcon = props.checkedIcon,
|
| 9344 |
-
classes = props.classes,
|
| 9345 |
-
className = props.className,
|
| 9346 |
-
defaultChecked = props.defaultChecked,
|
| 9347 |
-
disabledProp = props.disabled,
|
| 9348 |
-
icon = props.icon,
|
| 9349 |
-
id = props.id,
|
| 9350 |
-
inputProps = props.inputProps,
|
| 9351 |
-
inputRef = props.inputRef,
|
| 9352 |
-
name = props.name,
|
| 9353 |
-
onBlur = props.onBlur,
|
| 9354 |
-
onChange = props.onChange,
|
| 9355 |
-
onFocus = props.onFocus,
|
| 9356 |
-
readOnly = props.readOnly,
|
| 9357 |
-
required = props.required,
|
| 9358 |
-
tabIndex = props.tabIndex,
|
| 9359 |
-
type = props.type,
|
| 9360 |
-
value = props.value,
|
| 9361 |
-
other = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["autoFocus", "checked", "checkedIcon", "classes", "className", "defaultChecked", "disabled", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"]);
|
| 9362 |
-
|
| 9363 |
-
var _useControlled = Object(__WEBPACK_IMPORTED_MODULE_7__utils_useControlled__["a" /* default */])({
|
| 9364 |
-
controlled: checkedProp,
|
| 9365 |
-
default: Boolean(defaultChecked),
|
| 9366 |
-
name: 'SwitchBase',
|
| 9367 |
-
state: 'checked'
|
| 9368 |
-
}),
|
| 9369 |
-
_useControlled2 = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_useControlled, 2),
|
| 9370 |
-
checked = _useControlled2[0],
|
| 9371 |
-
setCheckedState = _useControlled2[1];
|
| 9372 |
-
|
| 9373 |
-
var muiFormControl = Object(__WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__["a" /* default */])();
|
| 9374 |
-
|
| 9375 |
-
var handleFocus = function handleFocus(event) {
|
| 9376 |
-
if (onFocus) {
|
| 9377 |
-
onFocus(event);
|
| 9378 |
-
}
|
| 9379 |
-
|
| 9380 |
-
if (muiFormControl && muiFormControl.onFocus) {
|
| 9381 |
-
muiFormControl.onFocus(event);
|
| 9382 |
-
}
|
| 9383 |
-
};
|
| 9384 |
-
|
| 9385 |
-
var handleBlur = function handleBlur(event) {
|
| 9386 |
-
if (onBlur) {
|
| 9387 |
-
onBlur(event);
|
| 9388 |
-
}
|
| 9389 |
-
|
| 9390 |
-
if (muiFormControl && muiFormControl.onBlur) {
|
| 9391 |
-
muiFormControl.onBlur(event);
|
| 9392 |
-
}
|
| 9393 |
-
};
|
| 9394 |
-
|
| 9395 |
-
var handleInputChange = function handleInputChange(event) {
|
| 9396 |
-
var newChecked = event.target.checked;
|
| 9397 |
-
setCheckedState(newChecked);
|
| 9398 |
-
|
| 9399 |
-
if (onChange) {
|
| 9400 |
-
// TODO v5: remove the second argument.
|
| 9401 |
-
onChange(event, newChecked);
|
| 9402 |
-
}
|
| 9403 |
-
};
|
| 9404 |
-
|
| 9405 |
-
var disabled = disabledProp;
|
| 9406 |
-
|
| 9407 |
-
if (muiFormControl) {
|
| 9408 |
-
if (typeof disabled === 'undefined') {
|
| 9409 |
-
disabled = muiFormControl.disabled;
|
| 9410 |
-
}
|
| 9411 |
-
}
|
| 9412 |
-
|
| 9413 |
-
var hasLabelFor = type === 'checkbox' || type === 'radio';
|
| 9414 |
-
return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"](__WEBPACK_IMPORTED_MODULE_10__IconButton__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 9415 |
-
component: "span",
|
| 9416 |
-
className: Object(__WEBPACK_IMPORTED_MODULE_5_clsx__["a" /* default */])(classes.root, className, checked && classes.checked, disabled && classes.disabled),
|
| 9417 |
-
disabled: disabled,
|
| 9418 |
-
tabIndex: null,
|
| 9419 |
-
role: undefined,
|
| 9420 |
-
onFocus: handleFocus,
|
| 9421 |
-
onBlur: handleBlur,
|
| 9422 |
-
ref: ref
|
| 9423 |
-
}, other), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"]("input", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 9424 |
-
autoFocus: autoFocus,
|
| 9425 |
-
checked: checkedProp,
|
| 9426 |
-
defaultChecked: defaultChecked,
|
| 9427 |
-
className: classes.input,
|
| 9428 |
-
disabled: disabled,
|
| 9429 |
-
id: hasLabelFor && id,
|
| 9430 |
-
name: name,
|
| 9431 |
-
onChange: handleInputChange,
|
| 9432 |
-
readOnly: readOnly,
|
| 9433 |
-
ref: inputRef,
|
| 9434 |
-
required: required,
|
| 9435 |
-
tabIndex: tabIndex,
|
| 9436 |
-
type: type,
|
| 9437 |
-
value: value
|
| 9438 |
-
}, inputProps)), checked ? checkedIcon : icon);
|
| 9439 |
-
}); // NB: If changed, please update Checkbox, Switch and Radio
|
| 9440 |
-
// so that the API documentation is updated.
|
| 9441 |
-
|
| 9442 |
-
process.env.NODE_ENV !== "production" ? SwitchBase.propTypes = {
|
| 9443 |
-
/**
|
| 9444 |
-
* If `true`, the `input` element will be focused during the first mount.
|
| 9445 |
-
*/
|
| 9446 |
-
autoFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
| 9447 |
-
|
| 9448 |
-
/**
|
| 9449 |
-
* If `true`, the component is checked.
|
| 9450 |
-
*/
|
| 9451 |
-
checked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
| 9452 |
-
|
| 9453 |
-
/**
|
| 9454 |
-
* The icon to display when the component is checked.
|
| 9455 |
-
*/
|
| 9456 |
-
checkedIcon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
|
| 9457 |
-
|
| 9458 |
-
/**
|
| 9459 |
-
* Override or extend the styles applied to the component.
|
| 9460 |
-
* See [CSS API](#css) below for more details.
|
| 9461 |
-
*/
|
| 9462 |
-
classes: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object.isRequired,
|
| 9463 |
-
|
| 9464 |
-
/**
|
| 9465 |
-
* @ignore
|
| 9466 |
-
*/
|
| 9467 |
-
className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
|
| 9468 |
-
|
| 9469 |
-
/**
|
| 9470 |
-
* @ignore
|
| 9471 |
-
*/
|
| 9472 |
-
defaultChecked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
| 9473 |
-
|
| 9474 |
-
/**
|
| 9475 |
-
* If `true`, the switch will be disabled.
|
| 9476 |
-
*/
|
| 9477 |
-
disabled: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
| 9478 |
-
|
| 9479 |
-
/**
|
| 9480 |
-
* The icon to display when the component is unchecked.
|
| 9481 |
-
*/
|
| 9482 |
-
icon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
|
| 9483 |
-
|
| 9484 |
-
/**
|
| 9485 |
-
* The id of the `input` element.
|
| 9486 |
-
*/
|
| 9487 |
-
id: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
|
| 9488 |
-
|
| 9489 |
-
/**
|
| 9490 |
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
| 9491 |
-
*/
|
| 9492 |
-
inputProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
|
| 9493 |
-
|
| 9494 |
-
/**
|
| 9495 |
-
* Pass a ref to the `input` element.
|
| 9496 |
-
*/
|
| 9497 |
-
inputRef: __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__["j" /* refType */],
|
| 9498 |
-
|
| 9499 |
-
/*
|
| 9500 |
-
* @ignore
|
| 9501 |
-
*/
|
| 9502 |
-
name: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
|
| 9503 |
-
|
| 9504 |
-
/**
|
| 9505 |
-
* @ignore
|
| 9506 |
-
*/
|
| 9507 |
-
onBlur: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
| 9508 |
-
|
| 9509 |
-
/**
|
| 9510 |
-
* Callback fired when the state is changed.
|
| 9511 |
-
*
|
| 9512 |
-
* @param {object} event The event source of the callback.
|
| 9513 |
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
| 9514 |
-
*/
|
| 9515 |
-
onChange: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
| 9516 |
-
|
| 9517 |
-
/**
|
| 9518 |
-
* @ignore
|
| 9519 |
-
*/
|
| 9520 |
-
onFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
| 9521 |
-
|
| 9522 |
-
/**
|
| 9523 |
-
* It prevents the user from changing the value of the field
|
| 9524 |
-
* (not from interacting with the field).
|
| 9525 |
-
*/
|
| 9526 |
-
readOnly: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
| 9527 |
-
|
| 9528 |
-
/**
|
| 9529 |
-
* If `true`, the `input` element will be required.
|
| 9530 |
-
*/
|
| 9531 |
-
required: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
|
| 9532 |
-
|
| 9533 |
-
/**
|
| 9534 |
-
* @ignore
|
| 9535 |
-
*/
|
| 9536 |
-
tabIndex: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string]),
|
| 9537 |
-
|
| 9538 |
-
/**
|
| 9539 |
-
* The input component prop `type`.
|
| 9540 |
-
*/
|
| 9541 |
-
type: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string.isRequired,
|
| 9542 |
-
|
| 9543 |
-
/**
|
| 9544 |
-
* The value of the component.
|
| 9545 |
-
*/
|
| 9546 |
-
value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
|
| 9547 |
-
} : void 0;
|
| 9548 |
-
/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__styles_withStyles__["a" /* default */])(styles, {
|
| 9549 |
-
name: 'PrivateSwitchBase'
|
| 9550 |
-
})(SwitchBase));
|
| 9551 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 9552 |
-
|
| 9553 |
-
/***/ }),
|
| 9554 |
-
/* 135 */
|
| 9555 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9556 |
-
|
| 9557 |
-
"use strict";
|
| 9558 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Chip__ = __webpack_require__(576);
|
| 9559 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Chip__["a"]; });
|
| 9560 |
-
|
| 9561 |
-
|
| 9562 |
-
/***/ }),
|
| 9563 |
-
/* 136 */
|
| 9564 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9565 |
-
|
| 9566 |
-
"use strict";
|
| 9567 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__ = __webpack_require__(579);
|
| 9568 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__["a"]; });
|
| 9569 |
-
|
| 9570 |
-
|
| 9571 |
-
/***/ }),
|
| 9572 |
-
/* 137 */
|
| 9573 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9574 |
-
|
| 9575 |
-
"use strict";
|
| 9576 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Unstable_TrapFocus__ = __webpack_require__(585);
|
| 9577 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Unstable_TrapFocus__["a"]; });
|
| 9578 |
-
|
| 9579 |
-
|
| 9580 |
-
/***/ }),
|
| 9581 |
-
/* 138 */
|
| 9582 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9583 |
-
|
| 9584 |
-
"use strict";
|
| 9585 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
|
| 9586 |
-
/* harmony export (immutable) */ __webpack_exports__["c"] = isHorizontal;
|
| 9587 |
-
/* harmony export (immutable) */ __webpack_exports__["b"] = getAnchor;
|
| 9588 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 9589 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
|
| 9590 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
|
| 9591 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
|
| 9592 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
|
| 9593 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
|
| 9594 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_clsx__ = __webpack_require__(5);
|
| 9595 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Modal__ = __webpack_require__(68);
|
| 9596 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Backdrop__ = __webpack_require__(89);
|
| 9597 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_withStyles__ = __webpack_require__(6);
|
| 9598 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Slide__ = __webpack_require__(139);
|
| 9599 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Paper__ = __webpack_require__(22);
|
| 9600 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_capitalize__ = __webpack_require__(9);
|
| 9601 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__styles_transitions__ = __webpack_require__(34);
|
| 9602 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__styles_useTheme__ = __webpack_require__(17);
|
| 9603 |
-
|
| 9604 |
-
|
| 9605 |
-
|
| 9606 |
-
|
| 9607 |
-
|
| 9608 |
-
|
| 9609 |
-
|
| 9610 |
-
|
| 9611 |
-
|
| 9612 |
-
|
| 9613 |
-
|
| 9614 |
-
|
| 9615 |
-
|
| 9616 |
-
var styles = function styles(theme) {
|
| 9617 |
-
return {
|
| 9618 |
-
/* Styles applied to the root element. */
|
| 9619 |
-
root: {},
|
| 9620 |
-
|
| 9621 |
-
/* Styles applied to the root element if `variant="permanent or persistent"`. */
|
| 9622 |
-
docked: {
|
| 9623 |
-
flex: '0 0 auto'
|
| 9624 |
-
},
|
| 9625 |
-
|
| 9626 |
-
/* Styles applied to the `Paper` component. */
|
| 9627 |
-
paper: {
|
| 9628 |
-
overflowY: 'auto',
|
| 9629 |
-
display: 'flex',
|
| 9630 |
-
flexDirection: 'column',
|
| 9631 |
-
height: '100%',
|
| 9632 |
-
flex: '1 0 auto',
|
| 9633 |
-
zIndex: theme.zIndex.drawer,
|
| 9634 |
-
WebkitOverflowScrolling: 'touch',
|
| 9635 |
-
// Add iOS momentum scrolling.
|
| 9636 |
-
// temporary style
|
| 9637 |
-
position: 'fixed',
|
| 9638 |
-
top: 0,
|
| 9639 |
-
// We disable the focus ring for mouse, touch and keyboard users.
|
| 9640 |
-
// At some point, it would be better to keep it for keyboard users.
|
| 9641 |
-
// :focus-ring CSS pseudo-class will help.
|
| 9642 |
-
outline: 0
|
| 9643 |
-
},
|
| 9644 |
-
|
| 9645 |
-
/* Styles applied to the `Paper` component if `anchor="left"`. */
|
| 9646 |
-
paperAnchorLeft: {
|
| 9647 |
-
left: 0,
|
| 9648 |
-
right: 'auto'
|
| 9649 |
-
},
|
| 9650 |
-
|
| 9651 |
-
/* Styles applied to the `Paper` component if `anchor="right"`. */
|
| 9652 |
-
paperAnchorRight: {
|
| 9653 |
-
left: 'auto',
|
| 9654 |
-
right: 0
|
| 9655 |
-
},
|
| 9656 |
-
|
| 9657 |
-
/* Styles applied to the `Paper` component if `anchor="top"`. */
|
| 9658 |
-
paperAnchorTop: {
|
| 9659 |
-
top: 0,
|
| 9660 |
-
left: 0,
|
| 9661 |
-
bottom: 'auto',
|
| 9662 |
-
right: 0,
|
| 9663 |
-
height: 'auto',
|
| 9664 |
-
maxHeight: '100%'
|
| 9665 |
-
},
|
| 9666 |
-
|
| 9667 |
-
/* Styles applied to the `Paper` component if `anchor="bottom"`. */
|
| 9668 |
-
paperAnchorBottom: {
|
| 9669 |
-
top: 'auto',
|
| 9670 |
-
left: 0,
|
| 9671 |
-
bottom: 0,
|
| 9672 |
-
right: 0,
|
| 9673 |
-
height: 'auto',
|
| 9674 |
-
maxHeight: '100%'
|
| 9675 |
-
},
|
| 9676 |
-
|
| 9677 |
-
/* Styles applied to the `Paper` component if `anchor="left"` and `variant` is not "temporary". */
|
| 9678 |
-
paperAnchorDockedLeft: {
|
| 9679 |
-
borderRight: "1px solid ".concat(theme.palette.divider)
|
| 9680 |
-
},
|
| 9681 |
-
|
| 9682 |
-
/* Styles applied to the `Paper` component if `anchor="top"` and `variant` is not "temporary". */
|
| 9683 |
-
paperAnchorDockedTop: {
|
| 9684 |
-
borderBottom: "1px solid ".concat(theme.palette.divider)
|
| 9685 |
-
},
|
| 9686 |
-
|
| 9687 |
-
/* Styles applied to the `Paper` component if `anchor="right"` and `variant` is not "temporary". */
|
| 9688 |
-
paperAnchorDockedRight: {
|
| 9689 |
-
borderLeft: "1px solid ".concat(theme.palette.divider)
|
| 9690 |
-
},
|
| 9691 |
-
|
| 9692 |
-
/* Styles applied to the `Paper` component if `anchor="bottom"` and `variant` is not "temporary". */
|
| 9693 |
-
paperAnchorDockedBottom: {
|
| 9694 |
-
borderTop: "1px solid ".concat(theme.palette.divider)
|
| 9695 |
-
},
|
| 9696 |
-
|
| 9697 |
-
/* Styles applied to the `Modal` component. */
|
| 9698 |
-
modal: {}
|
| 9699 |
-
};
|
| 9700 |
-
};
|
| 9701 |
-
var oppositeDirection = {
|
| 9702 |
-
left: 'right',
|
| 9703 |
-
right: 'left',
|
| 9704 |
-
top: 'down',
|
| 9705 |
-
bottom: 'up'
|
| 9706 |
-
};
|
| 9707 |
-
function isHorizontal(anchor) {
|
| 9708 |
-
return ['left', 'right'].indexOf(anchor) !== -1;
|
| 9709 |
-
}
|
| 9710 |
-
function getAnchor(theme, anchor) {
|
| 9711 |
-
return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
|
| 9712 |
-
}
|
| 9713 |
-
var defaultTransitionDuration = {
|
| 9714 |
-
enter: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].enteringScreen,
|
| 9715 |
-
exit: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].leavingScreen
|
| 9716 |
-
};
|
| 9717 |
-
/**
|
| 9718 |
-
* The props of the [Modal](/api/modal/) component are available
|
| 9719 |
-
* when `variant="temporary"` is set.
|
| 9720 |
-
*/
|
| 9721 |
-
|
| 9722 |
-
var Drawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Drawer(props, ref) {
|
| 9723 |
-
var _props$anchor = props.anchor,
|
| 9724 |
-
anchorProp = _props$anchor === void 0 ? 'left' : _props$anchor,
|
| 9725 |
-
BackdropProps = props.BackdropProps,
|
| 9726 |
-
children = props.children,
|
| 9727 |
-
classes = props.classes,
|
| 9728 |
-
className = props.className,
|
| 9729 |
-
_props$elevation = props.elevation,
|
| 9730 |
-
elevation = _props$elevation === void 0 ? 16 : _props$elevation,
|
| 9731 |
-
_props$ModalProps = props.ModalProps;
|
| 9732 |
-
_props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps;
|
| 9733 |
-
|
| 9734 |
-
var BackdropPropsProp = _props$ModalProps.BackdropProps,
|
| 9735 |
-
ModalProps = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_props$ModalProps, ["BackdropProps"]),
|
| 9736 |
-
onClose = props.onClose,
|
| 9737 |
-
_props$open = props.open,
|
| 9738 |
-
open = _props$open === void 0 ? false : _props$open,
|
| 9739 |
-
_props$PaperProps = props.PaperProps,
|
| 9740 |
-
PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,
|
| 9741 |
-
SlideProps = props.SlideProps,
|
| 9742 |
-
_props$TransitionComp = props.TransitionComponent,
|
| 9743 |
-
TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_8__Slide__["a" /* default */] : _props$TransitionComp,
|
| 9744 |
-
_props$transitionDura = props.transitionDuration,
|
| 9745 |
-
transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
|
| 9746 |
-
_props$variant = props.variant,
|
| 9747 |
-
variant = _props$variant === void 0 ? 'temporary' : _props$variant,
|
| 9748 |
-
other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["anchor", "BackdropProps", "children", "classes", "className", "elevation", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"]);
|
| 9749 |
-
|
| 9750 |
-
var theme = Object(__WEBPACK_IMPORTED_MODULE_12__styles_useTheme__["a" /* default */])(); // Let's assume that the Drawer will always be rendered on user space.
|
| 9751 |
-
// We use this state is order to skip the appear transition during the
|
| 9752 |
-
// initial mount of the component.
|
| 9753 |
-
|
| 9754 |
-
var mounted = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](false);
|
| 9755 |
-
__WEBPACK_IMPORTED_MODULE_2_react__["useEffect"](function () {
|
| 9756 |
-
mounted.current = true;
|
| 9757 |
-
}, []);
|
| 9758 |
-
var anchor = getAnchor(theme, anchorProp);
|
| 9759 |
-
var drawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_9__Paper__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 9760 |
-
elevation: variant === 'temporary' ? elevation : 0,
|
| 9761 |
-
square: true
|
| 9762 |
-
}, PaperProps, {
|
| 9763 |
-
className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.paper, classes["paperAnchor".concat(Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(anchor))], PaperProps.className, variant !== 'temporary' && classes["paperAnchorDocked".concat(Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(anchor))])
|
| 9764 |
-
}), children);
|
| 9765 |
-
|
| 9766 |
-
if (variant === 'permanent') {
|
| 9767 |
-
return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 9768 |
-
className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
|
| 9769 |
-
ref: ref
|
| 9770 |
-
}, other), drawer);
|
| 9771 |
-
}
|
| 9772 |
-
|
| 9773 |
-
var slidingDrawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 9774 |
-
in: open,
|
| 9775 |
-
direction: oppositeDirection[anchor],
|
| 9776 |
-
timeout: transitionDuration,
|
| 9777 |
-
appear: mounted.current
|
| 9778 |
-
}, SlideProps), drawer);
|
| 9779 |
-
|
| 9780 |
-
if (variant === 'persistent') {
|
| 9781 |
-
return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 9782 |
-
className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
|
| 9783 |
-
ref: ref
|
| 9784 |
-
}, other), slidingDrawer);
|
| 9785 |
-
} // variant === temporary
|
| 9786 |
-
|
| 9787 |
-
|
| 9788 |
-
return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_5__Modal__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 9789 |
-
BackdropProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, BackdropProps, BackdropPropsProp, {
|
| 9790 |
-
transitionDuration: transitionDuration
|
| 9791 |
-
}),
|
| 9792 |
-
BackdropComponent: __WEBPACK_IMPORTED_MODULE_6__Backdrop__["a" /* default */],
|
| 9793 |
-
className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.modal, className),
|
| 9794 |
-
open: open,
|
| 9795 |
-
onClose: onClose,
|
| 9796 |
-
ref: ref
|
| 9797 |
-
}, other, ModalProps), slidingDrawer);
|
| 9798 |
-
});
|
| 9799 |
-
process.env.NODE_ENV !== "production" ? Drawer.propTypes = {
|
| 9800 |
-
// ----------------------------- Warning --------------------------------
|
| 9801 |
-
// | These PropTypes are generated from the TypeScript type definitions |
|
| 9802 |
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
| 9803 |
-
// ----------------------------------------------------------------------
|
| 9804 |
-
|
| 9805 |
-
/**
|
| 9806 |
-
* Side from which the drawer will appear.
|
| 9807 |
-
*/
|
| 9808 |
-
anchor: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['bottom', 'left', 'right', 'top']),
|
| 9809 |
-
|
| 9810 |
-
/**
|
| 9811 |
-
* @ignore
|
| 9812 |
-
*/
|
| 9813 |
-
BackdropProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 9814 |
-
|
| 9815 |
-
/**
|
| 9816 |
-
* The contents of the drawer.
|
| 9817 |
-
*/
|
| 9818 |
-
children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
|
| 9819 |
-
|
| 9820 |
-
/**
|
| 9821 |
-
* Override or extend the styles applied to the component.
|
| 9822 |
-
* See [CSS API](#css) below for more details.
|
| 9823 |
-
*/
|
| 9824 |
-
classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 9825 |
-
|
| 9826 |
-
/**
|
| 9827 |
-
* @ignore
|
| 9828 |
-
*/
|
| 9829 |
-
className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
|
| 9830 |
-
|
| 9831 |
-
/**
|
| 9832 |
-
* The elevation of the drawer.
|
| 9833 |
-
*/
|
| 9834 |
-
elevation: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
|
| 9835 |
-
|
| 9836 |
-
/**
|
| 9837 |
-
* Props applied to the [`Modal`](/api/modal/) element.
|
| 9838 |
-
*/
|
| 9839 |
-
ModalProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 9840 |
-
|
| 9841 |
-
/**
|
| 9842 |
-
* Callback fired when the component requests to be closed.
|
| 9843 |
-
*
|
| 9844 |
-
* @param {object} event The event source of the callback.
|
| 9845 |
-
*/
|
| 9846 |
-
onClose: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
|
| 9847 |
-
|
| 9848 |
-
/**
|
| 9849 |
-
* If `true`, the drawer is open.
|
| 9850 |
-
*/
|
| 9851 |
-
open: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
|
| 9852 |
-
|
| 9853 |
-
/**
|
| 9854 |
-
* Props applied to the [`Paper`](/api/paper/) element.
|
| 9855 |
-
*/
|
| 9856 |
-
PaperProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 9857 |
-
|
| 9858 |
-
/**
|
| 9859 |
-
* Props applied to the [`Slide`](/api/slide/) element.
|
| 9860 |
-
*/
|
| 9861 |
-
SlideProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 9862 |
-
|
| 9863 |
-
/**
|
| 9864 |
-
* The duration for the transition, in milliseconds.
|
| 9865 |
-
* You may specify a single timeout for all transitions, or individually with an object.
|
| 9866 |
-
*/
|
| 9867 |
-
transitionDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
|
| 9868 |
-
appear: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
|
| 9869 |
-
enter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
|
| 9870 |
-
exit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number
|
| 9871 |
-
})]),
|
| 9872 |
-
|
| 9873 |
-
/**
|
| 9874 |
-
* The variant to use.
|
| 9875 |
-
*/
|
| 9876 |
-
variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['permanent', 'persistent', 'temporary'])
|
| 9877 |
-
} : void 0;
|
| 9878 |
-
/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__styles_withStyles__["a" /* default */])(styles, {
|
| 9879 |
-
name: 'MuiDrawer',
|
| 9880 |
-
flip: false
|
| 9881 |
-
})(Drawer));
|
| 9882 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 9883 |
-
|
| 9884 |
-
/***/ }),
|
| 9885 |
-
/* 139 */
|
| 9886 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9887 |
-
|
| 9888 |
-
"use strict";
|
| 9889 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Slide__ = __webpack_require__(592);
|
| 9890 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Slide__["a"]; });
|
| 9891 |
-
|
| 9892 |
-
|
| 9893 |
-
/***/ }),
|
| 9894 |
-
/* 140 */
|
| 9895 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9896 |
-
|
| 9897 |
-
"use strict";
|
| 9898 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__ = __webpack_require__(600);
|
| 9899 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__["a"]; });
|
| 9900 |
-
|
| 9901 |
-
|
| 9902 |
-
/***/ }),
|
| 9903 |
-
/* 141 */
|
| 9904 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9905 |
-
|
| 9906 |
-
"use strict";
|
| 9907 |
-
/* unused harmony export hasValue */
|
| 9908 |
-
/* harmony export (immutable) */ __webpack_exports__["b"] = isFilled;
|
| 9909 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = isAdornedStart;
|
| 9910 |
-
// Supports determination of isControlled().
|
| 9911 |
-
// Controlled input accepts its current value as a prop.
|
| 9912 |
-
//
|
| 9913 |
-
// @see https://facebook.github.io/react/docs/forms.html#controlled-components
|
| 9914 |
-
// @param value
|
| 9915 |
-
// @returns {boolean} true if string (including '') or number (including zero)
|
| 9916 |
-
function hasValue(value) {
|
| 9917 |
-
return value != null && !(Array.isArray(value) && value.length === 0);
|
| 9918 |
-
} // Determine if field is empty or filled.
|
| 9919 |
-
// Response determines if label is presented above field or as placeholder.
|
| 9920 |
-
//
|
| 9921 |
-
// @param obj
|
| 9922 |
-
// @param SSR
|
| 9923 |
-
// @returns {boolean} False when not present or empty string.
|
| 9924 |
-
// True when any number or string with length.
|
| 9925 |
-
|
| 9926 |
-
function isFilled(obj) {
|
| 9927 |
-
var SSR = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
| 9928 |
-
return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== '');
|
| 9929 |
-
} // Determine if an Input is adorned on start.
|
| 9930 |
-
// It's corresponding to the left with LTR.
|
| 9931 |
-
//
|
| 9932 |
-
// @param obj
|
| 9933 |
-
// @returns {boolean} False when no adornments.
|
| 9934 |
-
// True when adorned at the start.
|
| 9935 |
-
|
| 9936 |
-
function isAdornedStart(obj) {
|
| 9937 |
-
return obj.startAdornment;
|
| 9938 |
-
}
|
| 9939 |
-
|
| 9940 |
-
/***/ }),
|
| 9941 |
-
/* 142 */
|
| 9942 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9943 |
-
|
| 9944 |
-
"use strict";
|
| 9945 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormGroup__ = __webpack_require__(603);
|
| 9946 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormGroup__["a"]; });
|
| 9947 |
-
|
| 9948 |
-
|
| 9949 |
-
/***/ }),
|
| 9950 |
-
/* 143 */
|
| 9951 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9952 |
-
|
| 9953 |
-
"use strict";
|
| 9954 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormHelperText__ = __webpack_require__(604);
|
| 9955 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormHelperText__["a"]; });
|
| 9956 |
-
|
| 9957 |
-
|
| 9958 |
-
/***/ }),
|
| 9959 |
-
/* 144 */
|
| 9960 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9961 |
-
|
| 9962 |
-
"use strict";
|
| 9963 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormLabel__ = __webpack_require__(605);
|
| 9964 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormLabel__["a"]; });
|
| 9965 |
-
|
| 9966 |
-
|
| 9967 |
-
/***/ }),
|
| 9968 |
-
/* 145 */
|
| 9969 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9970 |
-
|
| 9971 |
-
"use strict";
|
| 9972 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__ = __webpack_require__(613);
|
| 9973 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__["a"]; });
|
| 9974 |
-
|
| 9975 |
-
|
| 9976 |
-
/***/ }),
|
| 9977 |
-
/* 146 */
|
| 9978 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9979 |
-
|
| 9980 |
-
"use strict";
|
| 9981 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputLabel__ = __webpack_require__(617);
|
| 9982 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputLabel__["a"]; });
|
| 9983 |
-
|
| 9984 |
-
|
| 9985 |
-
/***/ }),
|
| 9986 |
-
/* 147 */
|
| 9987 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9988 |
-
|
| 9989 |
-
"use strict";
|
| 9990 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__LinearProgress__ = __webpack_require__(618);
|
| 9991 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__LinearProgress__["a"]; });
|
| 9992 |
-
|
| 9993 |
-
|
| 9994 |
-
/***/ }),
|
| 9995 |
-
/* 148 */
|
| 9996 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 9997 |
-
|
| 9998 |
-
"use strict";
|
| 9999 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__List__ = __webpack_require__(620);
|
| 10000 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__List__["a"]; });
|
| 10001 |
-
|
| 10002 |
-
|
| 10003 |
-
/***/ }),
|
| 10004 |
-
/* 149 */
|
| 10005 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10006 |
-
|
| 10007 |
-
"use strict";
|
| 10008 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItem__ = __webpack_require__(621);
|
| 10009 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListItem__["a"]; });
|
| 10010 |
-
|
| 10011 |
-
|
| 10012 |
-
/***/ }),
|
| 10013 |
-
/* 150 */
|
| 10014 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10015 |
-
|
| 10016 |
-
"use strict";
|
| 10017 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListSubheader__ = __webpack_require__(626);
|
| 10018 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListSubheader__["a"]; });
|
| 10019 |
-
|
| 10020 |
-
|
| 10021 |
-
/***/ }),
|
| 10022 |
-
/* 151 */
|
| 10023 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10024 |
-
|
| 10025 |
-
"use strict";
|
| 10026 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popover__ = __webpack_require__(627);
|
| 10027 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popover__["a"]; });
|
| 10028 |
-
|
| 10029 |
-
|
| 10030 |
-
/***/ }),
|
| 10031 |
-
/* 152 */
|
| 10032 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10033 |
-
|
| 10034 |
-
"use strict";
|
| 10035 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuList__ = __webpack_require__(628);
|
| 10036 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuList__["a"]; });
|
| 10037 |
-
|
| 10038 |
-
|
| 10039 |
-
/***/ }),
|
| 10040 |
-
/* 153 */
|
| 10041 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10042 |
-
|
| 10043 |
-
"use strict";
|
| 10044 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuItem__ = __webpack_require__(629);
|
| 10045 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuItem__["a"]; });
|
| 10046 |
-
|
| 10047 |
-
|
| 10048 |
-
/***/ }),
|
| 10049 |
-
/* 154 */
|
| 10050 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10051 |
-
|
| 10052 |
-
"use strict";
|
| 10053 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__NoSsr__ = __webpack_require__(631);
|
| 10054 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__NoSsr__["a"]; });
|
| 10055 |
-
|
| 10056 |
-
|
| 10057 |
-
/***/ }),
|
| 10058 |
-
/* 155 */
|
| 10059 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10060 |
-
|
| 10061 |
-
"use strict";
|
| 10062 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__ = __webpack_require__(651);
|
| 10063 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__["a"]; });
|
| 10064 |
-
|
| 10065 |
-
|
| 10066 |
-
/***/ }),
|
| 10067 |
-
/* 156 */
|
| 10068 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10069 |
-
|
| 10070 |
-
"use strict";
|
| 10071 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepLabel__ = __webpack_require__(654);
|
| 10072 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepLabel__["a"]; });
|
| 10073 |
-
|
| 10074 |
-
|
| 10075 |
-
/***/ }),
|
| 10076 |
-
/* 157 */
|
| 10077 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10078 |
-
|
| 10079 |
-
"use strict";
|
| 10080 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepIcon__ = __webpack_require__(655);
|
| 10081 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepIcon__["a"]; });
|
| 10082 |
-
|
| 10083 |
-
|
| 10084 |
-
/***/ }),
|
| 10085 |
-
/* 158 */
|
| 10086 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10087 |
-
|
| 10088 |
-
"use strict";
|
| 10089 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepConnector__ = __webpack_require__(658);
|
| 10090 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepConnector__["a"]; });
|
| 10091 |
-
|
| 10092 |
-
|
| 10093 |
-
/***/ }),
|
| 10094 |
-
/* 159 */
|
| 10095 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10096 |
-
|
| 10097 |
-
"use strict";
|
| 10098 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableCell__ = __webpack_require__(667);
|
| 10099 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TableCell__["a"]; });
|
| 10100 |
-
|
| 10101 |
-
|
| 10102 |
-
/***/ }),
|
| 10103 |
-
/* 160 */
|
| 10104 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10105 |
-
|
| 10106 |
-
"use strict";
|
| 10107 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Toolbar__ = __webpack_require__(672);
|
| 10108 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Toolbar__["a"]; });
|
| 10109 |
-
|
| 10110 |
-
|
| 10111 |
-
/***/ }),
|
| 10112 |
-
/* 161 */
|
| 10113 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10114 |
-
|
| 10115 |
-
"use strict";
|
| 10116 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tabs__ = __webpack_require__(677);
|
| 10117 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Tabs__["a"]; });
|
| 10118 |
-
|
| 10119 |
-
|
| 10120 |
-
/***/ }),
|
| 10121 |
-
/* 162 */
|
| 10122 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10123 |
-
|
| 10124 |
-
"use strict";
|
| 10125 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabScrollButton__ = __webpack_require__(682);
|
| 10126 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabScrollButton__["a"]; });
|
| 10127 |
-
|
| 10128 |
-
|
| 10129 |
-
/***/ }),
|
| 10130 |
-
/* 163 */
|
| 10131 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10132 |
-
|
| 10133 |
-
"use strict";
|
| 10134 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Zoom__ = __webpack_require__(687);
|
| 10135 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Zoom__["a"]; });
|
| 10136 |
-
|
| 10137 |
-
|
| 10138 |
-
/***/ }),
|
| 10139 |
-
/* 164 */
|
| 10140 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10141 |
-
|
| 10142 |
-
"use strict";
|
| 10143 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PaginationItem__ = __webpack_require__(693);
|
| 10144 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__PaginationItem__["a"]; });
|
| 10145 |
-
|
| 10146 |
-
|
| 10147 |
-
/***/ }),
|
| 10148 |
-
/* 165 */
|
| 10149 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10150 |
-
|
| 10151 |
-
"use strict";
|
| 10152 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 10153 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 10154 |
-
|
| 10155 |
-
/**
|
| 10156 |
-
* @ignore - internal component.
|
| 10157 |
-
*/
|
| 10158 |
-
|
| 10159 |
-
var TimelineItemContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
|
| 10160 |
-
|
| 10161 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 10162 |
-
TimelineItemContext.displayName = 'TimelineItemContext';
|
| 10163 |
-
}
|
| 10164 |
-
|
| 10165 |
-
/* harmony default export */ __webpack_exports__["a"] = (TimelineItemContext);
|
| 10166 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 10167 |
-
|
| 10168 |
-
/***/ }),
|
| 10169 |
-
/* 166 */
|
| 10170 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10171 |
-
|
| 10172 |
-
var baseForOwn = __webpack_require__(355),
|
| 10173 |
-
castFunction = __webpack_require__(359);
|
| 10174 |
-
|
| 10175 |
-
/**
|
| 10176 |
-
* Iterates over own enumerable string keyed properties of an object and
|
| 10177 |
-
* invokes `iteratee` for each property. The iteratee is invoked with three
|
| 10178 |
-
* arguments: (value, key, object). Iteratee functions may exit iteration
|
| 10179 |
-
* early by explicitly returning `false`.
|
| 10180 |
-
*
|
| 10181 |
-
* @static
|
| 10182 |
-
* @memberOf _
|
| 10183 |
-
* @since 0.3.0
|
| 10184 |
-
* @category Object
|
| 10185 |
-
* @param {Object} object The object to iterate over.
|
| 10186 |
-
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
| 10187 |
-
* @returns {Object} Returns `object`.
|
| 10188 |
-
* @see _.forOwnRight
|
| 10189 |
-
* @example
|
| 10190 |
-
*
|
| 10191 |
-
* function Foo() {
|
| 10192 |
-
* this.a = 1;
|
| 10193 |
-
* this.b = 2;
|
| 10194 |
-
* }
|
| 10195 |
-
*
|
| 10196 |
-
* Foo.prototype.c = 3;
|
| 10197 |
-
*
|
| 10198 |
-
* _.forOwn(new Foo, function(value, key) {
|
| 10199 |
-
* console.log(key);
|
| 10200 |
-
* });
|
| 10201 |
-
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
|
| 10202 |
-
*/
|
| 10203 |
-
function forOwn(object, iteratee) {
|
| 10204 |
-
return object && baseForOwn(object, castFunction(iteratee));
|
| 10205 |
-
}
|
| 10206 |
-
|
| 10207 |
-
module.exports = forOwn;
|
| 10208 |
-
|
| 10209 |
-
|
| 10210 |
-
/***/ }),
|
| 10211 |
-
/* 167 */
|
| 10212 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10213 |
-
|
| 10214 |
-
var baseIsArguments = __webpack_require__(731),
|
| 10215 |
-
isObjectLike = __webpack_require__(35);
|
| 10216 |
-
|
| 10217 |
-
/** Used for built-in method references. */
|
| 10218 |
-
var objectProto = Object.prototype;
|
| 10219 |
-
|
| 10220 |
-
/** Used to check objects for own properties. */
|
| 10221 |
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
| 10222 |
-
|
| 10223 |
-
/** Built-in value references. */
|
| 10224 |
-
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
| 10225 |
-
|
| 10226 |
-
/**
|
| 10227 |
-
* Checks if `value` is likely an `arguments` object.
|
| 10228 |
-
*
|
| 10229 |
-
* @static
|
| 10230 |
-
* @memberOf _
|
| 10231 |
-
* @since 0.1.0
|
| 10232 |
-
* @category Lang
|
| 10233 |
-
* @param {*} value The value to check.
|
| 10234 |
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
| 10235 |
-
* else `false`.
|
| 10236 |
-
* @example
|
| 10237 |
-
*
|
| 10238 |
-
* _.isArguments(function() { return arguments; }());
|
| 10239 |
-
* // => true
|
| 10240 |
-
*
|
| 10241 |
-
* _.isArguments([1, 2, 3]);
|
| 10242 |
-
* // => false
|
| 10243 |
-
*/
|
| 10244 |
-
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
| 10245 |
-
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
|
| 10246 |
-
!propertyIsEnumerable.call(value, 'callee');
|
| 10247 |
-
};
|
| 10248 |
-
|
| 10249 |
-
module.exports = isArguments;
|
| 10250 |
-
|
| 10251 |
-
|
| 10252 |
-
/***/ }),
|
| 10253 |
-
/* 168 */
|
| 10254 |
-
/***/ (function(module, exports) {
|
| 10255 |
-
|
| 10256 |
-
module.exports = function(module) {
|
| 10257 |
-
if(!module.webpackPolyfill) {
|
| 10258 |
-
module.deprecate = function() {};
|
| 10259 |
-
module.paths = [];
|
| 10260 |
-
// module.parent = undefined by default
|
| 10261 |
-
if(!module.children) module.children = [];
|
| 10262 |
-
Object.defineProperty(module, "loaded", {
|
| 10263 |
-
enumerable: true,
|
| 10264 |
-
get: function() {
|
| 10265 |
-
return module.l;
|
| 10266 |
}
|
| 10267 |
-
}
|
| 10268 |
-
|
| 10269 |
-
|
| 10270 |
-
|
| 10271 |
-
|
|
|
|
| 10272 |
}
|
| 10273 |
-
}
|
| 10274 |
-
module.webpackPolyfill = 1;
|
| 10275 |
}
|
| 10276 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10277 |
};
|
| 10278 |
-
|
| 10279 |
-
|
| 10280 |
-
/***/ }),
|
| 10281 |
-
/* 169 */
|
| 10282 |
-
/***/ (function(module, exports) {
|
| 10283 |
-
|
| 10284 |
-
/** Used as references for various `Number` constants. */
|
| 10285 |
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
| 10286 |
-
|
| 10287 |
-
/** Used to detect unsigned integer values. */
|
| 10288 |
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
| 10289 |
-
|
| 10290 |
-
/**
|
| 10291 |
-
* Checks if `value` is a valid array-like index.
|
| 10292 |
-
*
|
| 10293 |
-
* @private
|
| 10294 |
-
* @param {*} value The value to check.
|
| 10295 |
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
| 10296 |
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
| 10297 |
-
*/
|
| 10298 |
-
function isIndex(value, length) {
|
| 10299 |
-
var type = typeof value;
|
| 10300 |
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
| 10301 |
-
|
| 10302 |
-
return !!length &&
|
| 10303 |
-
(type == 'number' ||
|
| 10304 |
-
(type != 'symbol' && reIsUint.test(value))) &&
|
| 10305 |
-
(value > -1 && value % 1 == 0 && value < length);
|
| 10306 |
-
}
|
| 10307 |
-
|
| 10308 |
-
module.exports = isIndex;
|
| 10309 |
-
|
| 10310 |
-
|
| 10311 |
-
/***/ }),
|
| 10312 |
-
/* 170 */
|
| 10313 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10314 |
-
|
| 10315 |
-
var baseIsTypedArray = __webpack_require__(733),
|
| 10316 |
-
baseUnary = __webpack_require__(172),
|
| 10317 |
-
nodeUtil = __webpack_require__(173);
|
| 10318 |
-
|
| 10319 |
-
/* Node.js helper references. */
|
| 10320 |
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
| 10321 |
-
|
| 10322 |
-
/**
|
| 10323 |
-
* Checks if `value` is classified as a typed array.
|
| 10324 |
-
*
|
| 10325 |
-
* @static
|
| 10326 |
-
* @memberOf _
|
| 10327 |
-
* @since 3.0.0
|
| 10328 |
-
* @category Lang
|
| 10329 |
-
* @param {*} value The value to check.
|
| 10330 |
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
| 10331 |
-
* @example
|
| 10332 |
-
*
|
| 10333 |
-
* _.isTypedArray(new Uint8Array);
|
| 10334 |
-
* // => true
|
| 10335 |
-
*
|
| 10336 |
-
* _.isTypedArray([]);
|
| 10337 |
-
* // => false
|
| 10338 |
-
*/
|
| 10339 |
-
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
| 10340 |
-
|
| 10341 |
-
module.exports = isTypedArray;
|
| 10342 |
-
|
| 10343 |
-
|
| 10344 |
-
/***/ }),
|
| 10345 |
-
/* 171 */
|
| 10346 |
-
/***/ (function(module, exports) {
|
| 10347 |
-
|
| 10348 |
-
/** Used as references for various `Number` constants. */
|
| 10349 |
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
| 10350 |
-
|
| 10351 |
-
/**
|
| 10352 |
-
* Checks if `value` is a valid array-like length.
|
| 10353 |
-
*
|
| 10354 |
-
* **Note:** This method is loosely based on
|
| 10355 |
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
| 10356 |
-
*
|
| 10357 |
-
* @static
|
| 10358 |
-
* @memberOf _
|
| 10359 |
-
* @since 4.0.0
|
| 10360 |
-
* @category Lang
|
| 10361 |
-
* @param {*} value The value to check.
|
| 10362 |
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
| 10363 |
-
* @example
|
| 10364 |
-
*
|
| 10365 |
-
* _.isLength(3);
|
| 10366 |
-
* // => true
|
| 10367 |
-
*
|
| 10368 |
-
* _.isLength(Number.MIN_VALUE);
|
| 10369 |
-
* // => false
|
| 10370 |
-
*
|
| 10371 |
-
* _.isLength(Infinity);
|
| 10372 |
-
* // => false
|
| 10373 |
-
*
|
| 10374 |
-
* _.isLength('3');
|
| 10375 |
-
* // => false
|
| 10376 |
-
*/
|
| 10377 |
-
function isLength(value) {
|
| 10378 |
-
return typeof value == 'number' &&
|
| 10379 |
-
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
| 10380 |
-
}
|
| 10381 |
-
|
| 10382 |
-
module.exports = isLength;
|
| 10383 |
-
|
| 10384 |
-
|
| 10385 |
-
/***/ }),
|
| 10386 |
-
/* 172 */
|
| 10387 |
-
/***/ (function(module, exports) {
|
| 10388 |
-
|
| 10389 |
-
/**
|
| 10390 |
-
* The base implementation of `_.unary` without support for storing metadata.
|
| 10391 |
-
*
|
| 10392 |
-
* @private
|
| 10393 |
-
* @param {Function} func The function to cap arguments for.
|
| 10394 |
-
* @returns {Function} Returns the new capped function.
|
| 10395 |
-
*/
|
| 10396 |
-
function baseUnary(func) {
|
| 10397 |
-
return function(value) {
|
| 10398 |
-
return func(value);
|
| 10399 |
-
};
|
| 10400 |
-
}
|
| 10401 |
-
|
| 10402 |
-
module.exports = baseUnary;
|
| 10403 |
-
|
| 10404 |
-
|
| 10405 |
-
/***/ }),
|
| 10406 |
-
/* 173 */
|
| 10407 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10408 |
-
|
| 10409 |
-
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(354);
|
| 10410 |
-
|
| 10411 |
-
/** Detect free variable `exports`. */
|
| 10412 |
-
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
| 10413 |
-
|
| 10414 |
-
/** Detect free variable `module`. */
|
| 10415 |
-
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
| 10416 |
-
|
| 10417 |
-
/** Detect the popular CommonJS extension `module.exports`. */
|
| 10418 |
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
| 10419 |
-
|
| 10420 |
-
/** Detect free variable `process` from Node.js. */
|
| 10421 |
-
var freeProcess = moduleExports && freeGlobal.process;
|
| 10422 |
-
|
| 10423 |
-
/** Used to access faster Node.js helpers. */
|
| 10424 |
-
var nodeUtil = (function() {
|
| 10425 |
-
try {
|
| 10426 |
-
// Use `util.types` for Node.js 10+.
|
| 10427 |
-
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
| 10428 |
-
|
| 10429 |
-
if (types) {
|
| 10430 |
-
return types;
|
| 10431 |
-
}
|
| 10432 |
-
|
| 10433 |
-
// Legacy `process.binding('util')` for Node.js < 10.
|
| 10434 |
-
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
| 10435 |
-
} catch (e) {}
|
| 10436 |
-
}());
|
| 10437 |
-
|
| 10438 |
-
module.exports = nodeUtil;
|
| 10439 |
-
|
| 10440 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(168)(module)))
|
| 10441 |
-
|
| 10442 |
-
/***/ }),
|
| 10443 |
-
/* 174 */
|
| 10444 |
-
/***/ (function(module, exports) {
|
| 10445 |
-
|
| 10446 |
-
/** Used for built-in method references. */
|
| 10447 |
-
var objectProto = Object.prototype;
|
| 10448 |
-
|
| 10449 |
-
/**
|
| 10450 |
-
* Checks if `value` is likely a prototype object.
|
| 10451 |
-
*
|
| 10452 |
-
* @private
|
| 10453 |
-
* @param {*} value The value to check.
|
| 10454 |
-
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
| 10455 |
-
*/
|
| 10456 |
-
function isPrototype(value) {
|
| 10457 |
-
var Ctor = value && value.constructor,
|
| 10458 |
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
|
| 10459 |
-
|
| 10460 |
-
return value === proto;
|
| 10461 |
-
}
|
| 10462 |
-
|
| 10463 |
-
module.exports = isPrototype;
|
| 10464 |
-
|
| 10465 |
-
|
| 10466 |
-
/***/ }),
|
| 10467 |
-
/* 175 */
|
| 10468 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10469 |
-
|
| 10470 |
-
var baseGetTag = __webpack_require__(50),
|
| 10471 |
-
isObject = __webpack_require__(27);
|
| 10472 |
-
|
| 10473 |
-
/** `Object#toString` result references. */
|
| 10474 |
-
var asyncTag = '[object AsyncFunction]',
|
| 10475 |
-
funcTag = '[object Function]',
|
| 10476 |
-
genTag = '[object GeneratorFunction]',
|
| 10477 |
-
proxyTag = '[object Proxy]';
|
| 10478 |
-
|
| 10479 |
-
/**
|
| 10480 |
-
* Checks if `value` is classified as a `Function` object.
|
| 10481 |
-
*
|
| 10482 |
-
* @static
|
| 10483 |
-
* @memberOf _
|
| 10484 |
-
* @since 0.1.0
|
| 10485 |
-
* @category Lang
|
| 10486 |
-
* @param {*} value The value to check.
|
| 10487 |
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
| 10488 |
-
* @example
|
| 10489 |
-
*
|
| 10490 |
-
* _.isFunction(_);
|
| 10491 |
-
* // => true
|
| 10492 |
-
*
|
| 10493 |
-
* _.isFunction(/abc/);
|
| 10494 |
-
* // => false
|
| 10495 |
-
*/
|
| 10496 |
-
function isFunction(value) {
|
| 10497 |
-
if (!isObject(value)) {
|
| 10498 |
-
return false;
|
| 10499 |
-
}
|
| 10500 |
-
// The use of `Object#toString` avoids issues with the `typeof` operator
|
| 10501 |
-
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
| 10502 |
-
var tag = baseGetTag(value);
|
| 10503 |
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
| 10504 |
-
}
|
| 10505 |
-
|
| 10506 |
-
module.exports = isFunction;
|
| 10507 |
-
|
| 10508 |
-
|
| 10509 |
-
/***/ }),
|
| 10510 |
-
/* 176 */
|
| 10511 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10512 |
-
|
| 10513 |
-
var overArg = __webpack_require__(358);
|
| 10514 |
-
|
| 10515 |
-
/** Built-in value references. */
|
| 10516 |
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
| 10517 |
-
|
| 10518 |
-
module.exports = getPrototype;
|
| 10519 |
-
|
| 10520 |
-
|
| 10521 |
-
/***/ }),
|
| 10522 |
-
/* 177 */
|
| 10523 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10524 |
-
|
| 10525 |
-
var getNative = __webpack_require__(51),
|
| 10526 |
-
root = __webpack_require__(30);
|
| 10527 |
-
|
| 10528 |
-
/* Built-in method references that are verified to be native. */
|
| 10529 |
-
var Map = getNative(root, 'Map');
|
| 10530 |
-
|
| 10531 |
-
module.exports = Map;
|
| 10532 |
-
|
| 10533 |
-
|
| 10534 |
-
/***/ }),
|
| 10535 |
-
/* 178 */
|
| 10536 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10537 |
-
|
| 10538 |
-
var mapCacheClear = __webpack_require__(753),
|
| 10539 |
-
mapCacheDelete = __webpack_require__(760),
|
| 10540 |
-
mapCacheGet = __webpack_require__(762),
|
| 10541 |
-
mapCacheHas = __webpack_require__(763),
|
| 10542 |
-
mapCacheSet = __webpack_require__(764);
|
| 10543 |
-
|
| 10544 |
-
/**
|
| 10545 |
-
* Creates a map cache object to store key-value pairs.
|
| 10546 |
-
*
|
| 10547 |
-
* @private
|
| 10548 |
-
* @constructor
|
| 10549 |
-
* @param {Array} [entries] The key-value pairs to cache.
|
| 10550 |
-
*/
|
| 10551 |
-
function MapCache(entries) {
|
| 10552 |
-
var index = -1,
|
| 10553 |
-
length = entries == null ? 0 : entries.length;
|
| 10554 |
-
|
| 10555 |
-
this.clear();
|
| 10556 |
-
while (++index < length) {
|
| 10557 |
-
var entry = entries[index];
|
| 10558 |
-
this.set(entry[0], entry[1]);
|
| 10559 |
-
}
|
| 10560 |
-
}
|
| 10561 |
-
|
| 10562 |
-
// Add methods to `MapCache`.
|
| 10563 |
-
MapCache.prototype.clear = mapCacheClear;
|
| 10564 |
-
MapCache.prototype['delete'] = mapCacheDelete;
|
| 10565 |
-
MapCache.prototype.get = mapCacheGet;
|
| 10566 |
-
MapCache.prototype.has = mapCacheHas;
|
| 10567 |
-
MapCache.prototype.set = mapCacheSet;
|
| 10568 |
-
|
| 10569 |
-
module.exports = MapCache;
|
| 10570 |
-
|
| 10571 |
-
|
| 10572 |
-
/***/ }),
|
| 10573 |
-
/* 179 */
|
| 10574 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10575 |
-
|
| 10576 |
-
var arrayFilter = __webpack_require__(775),
|
| 10577 |
-
stubArray = __webpack_require__(369);
|
| 10578 |
-
|
| 10579 |
-
/** Used for built-in method references. */
|
| 10580 |
-
var objectProto = Object.prototype;
|
| 10581 |
-
|
| 10582 |
-
/** Built-in value references. */
|
| 10583 |
-
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
| 10584 |
-
|
| 10585 |
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
| 10586 |
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
| 10587 |
-
|
| 10588 |
-
/**
|
| 10589 |
-
* Creates an array of the own enumerable symbols of `object`.
|
| 10590 |
-
*
|
| 10591 |
-
* @private
|
| 10592 |
-
* @param {Object} object The object to query.
|
| 10593 |
-
* @returns {Array} Returns the array of symbols.
|
| 10594 |
-
*/
|
| 10595 |
-
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
| 10596 |
-
if (object == null) {
|
| 10597 |
-
return [];
|
| 10598 |
-
}
|
| 10599 |
-
object = Object(object);
|
| 10600 |
-
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
| 10601 |
-
return propertyIsEnumerable.call(object, symbol);
|
| 10602 |
-
});
|
| 10603 |
-
};
|
| 10604 |
-
|
| 10605 |
-
module.exports = getSymbols;
|
| 10606 |
-
|
| 10607 |
-
|
| 10608 |
-
/***/ }),
|
| 10609 |
-
/* 180 */
|
| 10610 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10611 |
-
|
| 10612 |
-
var isArray = __webpack_require__(25),
|
| 10613 |
-
isSymbol = __webpack_require__(111);
|
| 10614 |
-
|
| 10615 |
-
/** Used to match property names within property paths. */
|
| 10616 |
-
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
| 10617 |
-
reIsPlainProp = /^\w*$/;
|
| 10618 |
-
|
| 10619 |
-
/**
|
| 10620 |
-
* Checks if `value` is a property name and not a property path.
|
| 10621 |
-
*
|
| 10622 |
-
* @private
|
| 10623 |
-
* @param {*} value The value to check.
|
| 10624 |
-
* @param {Object} [object] The object to query keys on.
|
| 10625 |
-
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
| 10626 |
-
*/
|
| 10627 |
-
function isKey(value, object) {
|
| 10628 |
-
if (isArray(value)) {
|
| 10629 |
-
return false;
|
| 10630 |
-
}
|
| 10631 |
-
var type = typeof value;
|
| 10632 |
-
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
| 10633 |
-
value == null || isSymbol(value)) {
|
| 10634 |
-
return true;
|
| 10635 |
-
}
|
| 10636 |
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
| 10637 |
-
(object != null && value in Object(object));
|
| 10638 |
-
}
|
| 10639 |
-
|
| 10640 |
-
module.exports = isKey;
|
| 10641 |
-
|
| 10642 |
-
|
| 10643 |
-
/***/ }),
|
| 10644 |
-
/* 181 */
|
| 10645 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10646 |
-
|
| 10647 |
-
var defineProperty = __webpack_require__(377);
|
| 10648 |
-
|
| 10649 |
-
/**
|
| 10650 |
-
* The base implementation of `assignValue` and `assignMergeValue` without
|
| 10651 |
-
* value checks.
|
| 10652 |
-
*
|
| 10653 |
-
* @private
|
| 10654 |
-
* @param {Object} object The object to modify.
|
| 10655 |
-
* @param {string} key The key of the property to assign.
|
| 10656 |
-
* @param {*} value The value to assign.
|
| 10657 |
-
*/
|
| 10658 |
-
function baseAssignValue(object, key, value) {
|
| 10659 |
-
if (key == '__proto__' && defineProperty) {
|
| 10660 |
-
defineProperty(object, key, {
|
| 10661 |
-
'configurable': true,
|
| 10662 |
-
'enumerable': true,
|
| 10663 |
-
'value': value,
|
| 10664 |
-
'writable': true
|
| 10665 |
-
});
|
| 10666 |
-
} else {
|
| 10667 |
-
object[key] = value;
|
| 10668 |
-
}
|
| 10669 |
-
}
|
| 10670 |
-
|
| 10671 |
-
module.exports = baseAssignValue;
|
| 10672 |
-
|
| 10673 |
-
|
| 10674 |
-
/***/ }),
|
| 10675 |
-
/* 182 */
|
| 10676 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10677 |
-
|
| 10678 |
-
var Uint8Array = __webpack_require__(365);
|
| 10679 |
-
|
| 10680 |
-
/**
|
| 10681 |
-
* Creates a clone of `arrayBuffer`.
|
| 10682 |
-
*
|
| 10683 |
-
* @private
|
| 10684 |
-
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
| 10685 |
-
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
| 10686 |
-
*/
|
| 10687 |
-
function cloneArrayBuffer(arrayBuffer) {
|
| 10688 |
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
| 10689 |
-
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
| 10690 |
-
return result;
|
| 10691 |
-
}
|
| 10692 |
-
|
| 10693 |
-
module.exports = cloneArrayBuffer;
|
| 10694 |
-
|
| 10695 |
-
|
| 10696 |
-
/***/ }),
|
| 10697 |
-
/* 183 */
|
| 10698 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10699 |
-
|
| 10700 |
-
"use strict";
|
| 10701 |
-
|
| 10702 |
-
|
| 10703 |
-
Object.defineProperty(exports, "__esModule", {
|
| 10704 |
-
value: true
|
| 10705 |
-
});
|
| 10706 |
-
exports.Checkboard = undefined;
|
| 10707 |
-
|
| 10708 |
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
| 10709 |
-
|
| 10710 |
-
var _react = __webpack_require__(0);
|
| 10711 |
-
|
| 10712 |
-
var _react2 = _interopRequireDefault(_react);
|
| 10713 |
-
|
| 10714 |
-
var _reactcss = __webpack_require__(8);
|
| 10715 |
-
|
| 10716 |
-
var _reactcss2 = _interopRequireDefault(_reactcss);
|
| 10717 |
-
|
| 10718 |
-
var _checkboard = __webpack_require__(822);
|
| 10719 |
-
|
| 10720 |
-
var checkboard = _interopRequireWildcard(_checkboard);
|
| 10721 |
-
|
| 10722 |
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
| 10723 |
-
|
| 10724 |
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
| 10725 |
-
|
| 10726 |
-
var Checkboard = exports.Checkboard = function Checkboard(_ref) {
|
| 10727 |
-
var white = _ref.white,
|
| 10728 |
-
grey = _ref.grey,
|
| 10729 |
-
size = _ref.size,
|
| 10730 |
-
renderers = _ref.renderers,
|
| 10731 |
-
borderRadius = _ref.borderRadius,
|
| 10732 |
-
boxShadow = _ref.boxShadow,
|
| 10733 |
-
children = _ref.children;
|
| 10734 |
-
|
| 10735 |
-
var styles = (0, _reactcss2.default)({
|
| 10736 |
-
'default': {
|
| 10737 |
-
grid: {
|
| 10738 |
-
borderRadius: borderRadius,
|
| 10739 |
-
boxShadow: boxShadow,
|
| 10740 |
-
absolute: '0px 0px 0px 0px',
|
| 10741 |
-
background: 'url(' + checkboard.get(white, grey, size, renderers.canvas) + ') center left'
|
| 10742 |
-
}
|
| 10743 |
-
}
|
| 10744 |
-
});
|
| 10745 |
-
return (0, _react.isValidElement)(children) ? _react2.default.cloneElement(children, _extends({}, children.props, { style: _extends({}, children.props.style, styles.grid) })) : _react2.default.createElement('div', { style: styles.grid });
|
| 10746 |
-
};
|
| 10747 |
-
|
| 10748 |
-
Checkboard.defaultProps = {
|
| 10749 |
-
size: 8,
|
| 10750 |
-
white: 'transparent',
|
| 10751 |
-
grey: 'rgba(0,0,0,.08)',
|
| 10752 |
-
renderers: {}
|
| 10753 |
-
};
|
| 10754 |
-
|
| 10755 |
-
exports.default = Checkboard;
|
| 10756 |
-
|
| 10757 |
-
/***/ }),
|
| 10758 |
-
/* 184 */
|
| 10759 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 10760 |
-
|
| 10761 |
-
"use strict";
|
| 10762 |
-
/* WEBPACK VAR INJECTION */(function(process) {
|
| 10763 |
-
|
| 10764 |
-
if (process.env.NODE_ENV === 'production') {
|
| 10765 |
-
module.exports = __webpack_require__(392);
|
| 10766 |
-
} else {
|
| 10767 |
-
module.exports = __webpack_require__(393);
|
| 10768 |
-
}
|
| 10769 |
-
|
| 10770 |
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
|
| 10771 |
-
|
| 10772 |
-
/***/ }),
|
| 10773 |
-
/* 185 */
|
| 10774 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10775 |
-
|
| 10776 |
-
"use strict";
|
| 10777 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 10778 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 10779 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2);
|
| 10780 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
| 10781 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_invariant__ = __webpack_require__(44);
|
| 10782 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_invariant__);
|
| 10783 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(53);
|
| 10784 |
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
| 10785 |
-
|
| 10786 |
-
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
| 10787 |
-
|
| 10788 |
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
| 10789 |
-
|
| 10790 |
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
| 10791 |
-
|
| 10792 |
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
| 10793 |
-
|
| 10794 |
-
|
| 10795 |
-
|
| 10796 |
-
|
| 10797 |
-
|
| 10798 |
-
|
| 10799 |
-
var isModifiedEvent = function isModifiedEvent(event) {
|
| 10800 |
-
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
|
| 10801 |
-
};
|
| 10802 |
-
|
| 10803 |
-
/**
|
| 10804 |
-
* The public API for rendering a history-aware <a>.
|
| 10805 |
-
*/
|
| 10806 |
-
|
| 10807 |
-
var Link = function (_React$Component) {
|
| 10808 |
-
_inherits(Link, _React$Component);
|
| 10809 |
-
|
| 10810 |
-
function Link() {
|
| 10811 |
-
var _temp, _this, _ret;
|
| 10812 |
-
|
| 10813 |
-
_classCallCheck(this, Link);
|
| 10814 |
-
|
| 10815 |
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
| 10816 |
-
args[_key] = arguments[_key];
|
| 10817 |
-
}
|
| 10818 |
-
|
| 10819 |
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleClick = function (event) {
|
| 10820 |
-
if (_this.props.onClick) _this.props.onClick(event);
|
| 10821 |
-
|
| 10822 |
-
if (!event.defaultPrevented && // onClick prevented default
|
| 10823 |
-
event.button === 0 && // ignore everything but left clicks
|
| 10824 |
-
!_this.props.target && // let browser handle "target=_blank" etc.
|
| 10825 |
-
!isModifiedEvent(event) // ignore clicks with modifier keys
|
| 10826 |
-
) {
|
| 10827 |
-
event.preventDefault();
|
| 10828 |
-
|
| 10829 |
-
var history = _this.context.router.history;
|
| 10830 |
-
var _this$props = _this.props,
|
| 10831 |
-
replace = _this$props.replace,
|
| 10832 |
-
to = _this$props.to;
|
| 10833 |
-
|
| 10834 |
-
|
| 10835 |
-
if (replace) {
|
| 10836 |
-
history.replace(to);
|
| 10837 |
-
} else {
|
| 10838 |
-
history.push(to);
|
| 10839 |
-
}
|
| 10840 |
-
}
|
| 10841 |
-
}, _temp), _possibleConstructorReturn(_this, _ret);
|
| 10842 |
-
}
|
| 10843 |
-
|
| 10844 |
-
Link.prototype.render = function render() {
|
| 10845 |
-
var _props = this.props,
|
| 10846 |
-
replace = _props.replace,
|
| 10847 |
-
to = _props.to,
|
| 10848 |
-
innerRef = _props.innerRef,
|
| 10849 |
-
props = _objectWithoutProperties(_props, ["replace", "to", "innerRef"]); // eslint-disable-line no-unused-vars
|
| 10850 |
-
|
| 10851 |
-
__WEBPACK_IMPORTED_MODULE_2_invariant___default()(this.context.router, "You should not use <Link> outside a <Router>");
|
| 10852 |
-
|
| 10853 |
-
__WEBPACK_IMPORTED_MODULE_2_invariant___default()(to !== undefined, 'You must specify the "to" property');
|
| 10854 |
-
|
| 10855 |
-
var history = this.context.router.history;
|
| 10856 |
-
|
| 10857 |
-
var location = typeof to === "string" ? Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(to, null, null, history.location) : to;
|
| 10858 |
-
|
| 10859 |
-
var href = history.createHref(location);
|
| 10860 |
-
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("a", _extends({}, props, { onClick: this.handleClick, href: href, ref: innerRef }));
|
| 10861 |
-
};
|
| 10862 |
-
|
| 10863 |
-
return Link;
|
| 10864 |
-
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
|
| 10865 |
-
|
| 10866 |
-
Link.propTypes = {
|
| 10867 |
-
onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
| 10868 |
-
target: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
| 10869 |
-
replace: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
|
| 10870 |
-
to: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object]).isRequired,
|
| 10871 |
-
innerRef: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func])
|
| 10872 |
-
};
|
| 10873 |
-
Link.defaultProps = {
|
| 10874 |
-
replace: false
|
| 10875 |
-
};
|
| 10876 |
-
Link.contextTypes = {
|
| 10877 |
-
router: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({
|
| 10878 |
-
history: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({
|
| 10879 |
-
push: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
|
| 10880 |
-
replace: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
|
| 10881 |
-
createHref: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired
|
| 10882 |
-
}).isRequired
|
| 10883 |
-
}).isRequired
|
| 10884 |
-
};
|
| 10885 |
-
|
| 10886 |
-
|
| 10887 |
-
/* harmony default export */ __webpack_exports__["a"] = (Link);
|
| 10888 |
-
|
| 10889 |
-
/***/ }),
|
| 10890 |
-
/* 186 */
|
| 10891 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10892 |
-
|
| 10893 |
-
"use strict";
|
| 10894 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router_es_Route__ = __webpack_require__(187);
|
| 10895 |
-
// Written in this round about way for babel-transform-imports
|
| 10896 |
-
|
| 10897 |
-
|
| 10898 |
-
/* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react_router_es_Route__["a" /* default */]);
|
| 10899 |
-
|
| 10900 |
-
/***/ }),
|
| 10901 |
-
/* 187 */
|
| 10902 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 10903 |
-
|
| 10904 |
-
"use strict";
|
| 10905 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(40);
|
| 10906 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__);
|
| 10907 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(44);
|
| 10908 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__);
|
| 10909 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
|
| 10910 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
|
| 10911 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
|
| 10912 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
|
| 10913 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__matchPath__ = __webpack_require__(118);
|
| 10914 |
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
| 10915 |
-
|
| 10916 |
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
| 10917 |
-
|
| 10918 |
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
| 10919 |
-
|
| 10920 |
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
| 10921 |
-
|
| 10922 |
-
|
| 10923 |
-
|
| 10924 |
-
|
| 10925 |
-
|
| 10926 |
-
|
| 10927 |
-
|
| 10928 |
-
var isEmptyChildren = function isEmptyChildren(children) {
|
| 10929 |
-
return __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.count(children) === 0;
|
| 10930 |
-
};
|
| 10931 |
-
|
| 10932 |
-
/**
|
| 10933 |
-
* The public API for matching a single path and rendering.
|
| 10934 |
-
*/
|
| 10935 |
-
|
| 10936 |
-
var Route = function (_React$Component) {
|
| 10937 |
-
_inherits(Route, _React$Component);
|
| 10938 |
-
|
| 10939 |
-
function Route() {
|
| 10940 |
-
var _temp, _this, _ret;
|
| 10941 |
-
|
| 10942 |
-
_classCallCheck(this, Route);
|
| 10943 |
-
|
| 10944 |
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
| 10945 |
-
args[_key] = arguments[_key];
|
| 10946 |
-
}
|
| 10947 |
-
|
| 10948 |
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
|
| 10949 |
-
match: _this.computeMatch(_this.props, _this.context.router)
|
| 10950 |
-
}, _temp), _possibleConstructorReturn(_this, _ret);
|
| 10951 |
-
}
|
| 10952 |
-
|
| 10953 |
-
Route.prototype.getChildContext = function getChildContext() {
|
| 10954 |
-
return {
|
| 10955 |
-
router: _extends({}, this.context.router, {
|
| 10956 |
-
route: {
|
| 10957 |
-
location: this.props.location || this.context.router.route.location,
|
| 10958 |
-
match: this.state.match
|
| 10959 |
-
}
|
| 10960 |
-
})
|
| 10961 |
-
};
|
| 10962 |
-
};
|
| 10963 |
-
|
| 10964 |
-
Route.prototype.computeMatch = function computeMatch(_ref, router) {
|
| 10965 |
-
var computedMatch = _ref.computedMatch,
|
| 10966 |
-
location = _ref.location,
|
| 10967 |
-
path = _ref.path,
|
| 10968 |
-
strict = _ref.strict,
|
| 10969 |
-
exact = _ref.exact,
|
| 10970 |
-
sensitive = _ref.sensitive;
|
| 10971 |
-
|
| 10972 |
-
if (computedMatch) return computedMatch; // <Switch> already computed the match for us
|
| 10973 |
-
|
| 10974 |
-
__WEBPACK_IMPORTED_MODULE_1_invariant___default()(router, "You should not use <Route> or withRouter() outside a <Router>");
|
| 10975 |
-
|
| 10976 |
-
var route = router.route;
|
| 10977 |
-
|
| 10978 |
-
var pathname = (location || route.location).pathname;
|
| 10979 |
-
|
| 10980 |
-
return Object(__WEBPACK_IMPORTED_MODULE_4__matchPath__["a" /* default */])(pathname, { path: path, strict: strict, exact: exact, sensitive: sensitive }, route.match);
|
| 10981 |
-
};
|
| 10982 |
-
|
| 10983 |
-
Route.prototype.componentWillMount = function componentWillMount() {
|
| 10984 |
-
__WEBPACK_IMPORTED_MODULE_0_warning___default()(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored");
|
| 10985 |
-
|
| 10986 |
-
__WEBPACK_IMPORTED_MODULE_0_warning___default()(!(this.props.component && this.props.children && !isEmptyChildren(this.props.children)), "You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored");
|
| 10987 |
-
|
| 10988 |
-
__WEBPACK_IMPORTED_MODULE_0_warning___default()(!(this.props.render && this.props.children && !isEmptyChildren(this.props.children)), "You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored");
|
| 10989 |
-
};
|
| 10990 |
-
|
| 10991 |
-
Route.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps, nextContext) {
|
| 10992 |
-
__WEBPACK_IMPORTED_MODULE_0_warning___default()(!(nextProps.location && !this.props.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.');
|
| 10993 |
-
|
| 10994 |
-
__WEBPACK_IMPORTED_MODULE_0_warning___default()(!(!nextProps.location && this.props.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.');
|
| 10995 |
-
|
| 10996 |
-
this.setState({
|
| 10997 |
-
match: this.computeMatch(nextProps, nextContext.router)
|
| 10998 |
-
});
|
| 10999 |
-
};
|
| 11000 |
-
|
| 11001 |
-
Route.prototype.render = function render() {
|
| 11002 |
-
var match = this.state.match;
|
| 11003 |
-
var _props = this.props,
|
| 11004 |
-
children = _props.children,
|
| 11005 |
-
component = _props.component,
|
| 11006 |
-
render = _props.render;
|
| 11007 |
-
var _context$router = this.context.router,
|
| 11008 |
-
history = _context$router.history,
|
| 11009 |
-
route = _context$router.route,
|
| 11010 |
-
staticContext = _context$router.staticContext;
|
| 11011 |
-
|
| 11012 |
-
var location = this.props.location || route.location;
|
| 11013 |
-
var props = { match: match, location: location, history: history, staticContext: staticContext };
|
| 11014 |
-
|
| 11015 |
-
if (component) return match ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(component, props) : null;
|
| 11016 |
-
|
| 11017 |
-
if (render) return match ? render(props) : null;
|
| 11018 |
-
|
| 11019 |
-
if (typeof children === "function") return children(props);
|
| 11020 |
-
|
| 11021 |
-
if (children && !isEmptyChildren(children)) return __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.only(children);
|
| 11022 |
-
|
| 11023 |
-
return null;
|
| 11024 |
-
};
|
| 11025 |
-
|
| 11026 |
-
return Route;
|
| 11027 |
-
}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
|
| 11028 |
-
|
| 11029 |
-
Route.propTypes = {
|
| 11030 |
-
computedMatch: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, // private, from <Switch>
|
| 11031 |
-
path: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
|
| 11032 |
-
exact: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
|
| 11033 |
-
strict: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
|
| 11034 |
-
sensitive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
|
| 11035 |
-
component: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
|
| 11036 |
-
render: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
|
| 11037 |
-
children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node]),
|
| 11038 |
-
location: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
|
| 11039 |
-
};
|
| 11040 |
-
Route.contextTypes = {
|
| 11041 |
-
router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
|
| 11042 |
-
history: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired,
|
| 11043 |
-
route: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired,
|
| 11044 |
-
staticContext: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
|
| 11045 |
-
})
|
| 11046 |
-
};
|
| 11047 |
-
Route.childContextTypes = {
|
| 11048 |
-
router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired
|
| 11049 |
-
};
|
| 11050 |
-
|
| 11051 |
-
|
| 11052 |
-
/* harmony default export */ __webpack_exports__["a"] = (Route);
|
| 11053 |
-
|
| 11054 |
-
/***/ }),
|
| 11055 |
-
/* 188 */
|
| 11056 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 11057 |
-
|
| 11058 |
-
var isarray = __webpack_require__(410)
|
| 11059 |
-
|
| 11060 |
-
/**
|
| 11061 |
-
* Expose `pathToRegexp`.
|
| 11062 |
-
*/
|
| 11063 |
-
module.exports = pathToRegexp
|
| 11064 |
-
module.exports.parse = parse
|
| 11065 |
-
module.exports.compile = compile
|
| 11066 |
-
module.exports.tokensToFunction = tokensToFunction
|
| 11067 |
-
module.exports.tokensToRegExp = tokensToRegExp
|
| 11068 |
-
|
| 11069 |
-
/**
|
| 11070 |
-
* The main path matching regexp utility.
|
| 11071 |
-
*
|
| 11072 |
-
* @type {RegExp}
|
| 11073 |
-
*/
|
| 11074 |
-
var PATH_REGEXP = new RegExp([
|
| 11075 |
-
// Match escaped characters that would otherwise appear in future matches.
|
| 11076 |
-
// This allows the user to escape special characters that won't transform.
|
| 11077 |
-
'(\\\\.)',
|
| 11078 |
-
// Match Express-style parameters and un-named parameters with a prefix
|
| 11079 |
-
// and optional suffixes. Matches appear as:
|
| 11080 |
-
//
|
| 11081 |
-
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
|
| 11082 |
-
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
|
| 11083 |
-
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
|
| 11084 |
-
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
|
| 11085 |
-
].join('|'), 'g')
|
| 11086 |
-
|
| 11087 |
-
/**
|
| 11088 |
-
* Parse a string for the raw tokens.
|
| 11089 |
-
*
|
| 11090 |
-
* @param {string} str
|
| 11091 |
-
* @param {Object=} options
|
| 11092 |
-
* @return {!Array}
|
| 11093 |
-
*/
|
| 11094 |
-
function parse (str, options) {
|
| 11095 |
-
var tokens = []
|
| 11096 |
-
var key = 0
|
| 11097 |
-
var index = 0
|
| 11098 |
-
var path = ''
|
| 11099 |
-
var defaultDelimiter = options && options.delimiter || '/'
|
| 11100 |
-
var res
|
| 11101 |
-
|
| 11102 |
-
while ((res = PATH_REGEXP.exec(str)) != null) {
|
| 11103 |
-
var m = res[0]
|
| 11104 |
-
var escaped = res[1]
|
| 11105 |
-
var offset = res.index
|
| 11106 |
-
path += str.slice(index, offset)
|
| 11107 |
-
index = offset + m.length
|
| 11108 |
-
|
| 11109 |
-
// Ignore already escaped sequences.
|
| 11110 |
-
if (escaped) {
|
| 11111 |
-
path += escaped[1]
|
| 11112 |
-
continue
|
| 11113 |
-
}
|
| 11114 |
-
|
| 11115 |
-
var next = str[index]
|
| 11116 |
-
var prefix = res[2]
|
| 11117 |
-
var name = res[3]
|
| 11118 |
-
var capture = res[4]
|
| 11119 |
-
var group = res[5]
|
| 11120 |
-
var modifier = res[6]
|
| 11121 |
-
var asterisk = res[7]
|
| 11122 |
-
|
| 11123 |
-
// Push the current path onto the tokens.
|
| 11124 |
-
if (path) {
|
| 11125 |
-
tokens.push(path)
|
| 11126 |
-
path = ''
|
| 11127 |
-
}
|
| 11128 |
-
|
| 11129 |
-
var partial = prefix != null && next != null && next !== prefix
|
| 11130 |
-
var repeat = modifier === '+' || modifier === '*'
|
| 11131 |
-
var optional = modifier === '?' || modifier === '*'
|
| 11132 |
-
var delimiter = res[2] || defaultDelimiter
|
| 11133 |
-
var pattern = capture || group
|
| 11134 |
-
|
| 11135 |
-
tokens.push({
|
| 11136 |
-
name: name || key++,
|
| 11137 |
-
prefix: prefix || '',
|
| 11138 |
-
delimiter: delimiter,
|
| 11139 |
-
optional: optional,
|
| 11140 |
-
repeat: repeat,
|
| 11141 |
-
partial: partial,
|
| 11142 |
-
asterisk: !!asterisk,
|
| 11143 |
-
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
|
| 11144 |
-
})
|
| 11145 |
-
}
|
| 11146 |
-
|
| 11147 |
-
// Match any characters still remaining.
|
| 11148 |
-
if (index < str.length) {
|
| 11149 |
-
path += str.substr(index)
|
| 11150 |
-
}
|
| 11151 |
-
|
| 11152 |
-
// If the path exists, push it onto the end.
|
| 11153 |
-
if (path) {
|
| 11154 |
-
tokens.push(path)
|
| 11155 |
-
}
|
| 11156 |
-
|
| 11157 |
-
return tokens
|
| 11158 |
-
}
|
| 11159 |
-
|
| 11160 |
-
/**
|
| 11161 |
-
* Compile a string to a template function for the path.
|
| 11162 |
-
*
|
| 11163 |
-
* @param {string} str
|
| 11164 |
-
* @param {Object=} options
|
| 11165 |
-
* @return {!function(Object=, Object=)}
|
| 11166 |
-
*/
|
| 11167 |
-
function compile (str, options) {
|
| 11168 |
-
return tokensToFunction(parse(str, options), options)
|
| 11169 |
-
}
|
| 11170 |
-
|
| 11171 |
-
/**
|
| 11172 |
-
* Prettier encoding of URI path segments.
|
| 11173 |
-
*
|
| 11174 |
-
* @param {string}
|
| 11175 |
-
* @return {string}
|
| 11176 |
-
*/
|
| 11177 |
-
function encodeURIComponentPretty (str) {
|
| 11178 |
-
return encodeURI(str).replace(/[\/?#]/g, function (c) {
|
| 11179 |
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
| 11180 |
-
})
|
| 11181 |
-
}
|
| 11182 |
-
|
| 11183 |
-
/**
|
| 11184 |
-
* Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
|
| 11185 |
-
*
|
| 11186 |
-
* @param {string}
|
| 11187 |
-
* @return {string}
|
| 11188 |
-
*/
|
| 11189 |
-
function encodeAsterisk (str) {
|
| 11190 |
-
return encodeURI(str).replace(/[?#]/g, function (c) {
|
| 11191 |
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
| 11192 |
-
})
|
| 11193 |
-
}
|
| 11194 |
-
|
| 11195 |
-
/**
|
| 11196 |
-
* Expose a method for transforming tokens into the path function.
|
| 11197 |
-
*/
|
| 11198 |
-
function tokensToFunction (tokens, options) {
|
| 11199 |
-
// Compile all the tokens into regexps.
|
| 11200 |
-
var matches = new Array(tokens.length)
|
| 11201 |
-
|
| 11202 |
-
// Compile all the patterns before compilation.
|
| 11203 |
-
for (var i = 0; i < tokens.length; i++) {
|
| 11204 |
-
if (typeof tokens[i] === 'object') {
|
| 11205 |
-
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))
|
| 11206 |
-
}
|
| 11207 |
-
}
|
| 11208 |
-
|
| 11209 |
-
return function (obj, opts) {
|
| 11210 |
-
var path = ''
|
| 11211 |
-
var data = obj || {}
|
| 11212 |
-
var options = opts || {}
|
| 11213 |
-
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent
|
| 11214 |
-
|
| 11215 |
-
for (var i = 0; i < tokens.length; i++) {
|
| 11216 |
-
var token = tokens[i]
|
| 11217 |
-
|
| 11218 |
-
if (typeof token === 'string') {
|
| 11219 |
-
path += token
|
| 11220 |
-
|
| 11221 |
-
continue
|
| 11222 |
-
}
|
| 11223 |
-
|
| 11224 |
-
var value = data[token.name]
|
| 11225 |
-
var segment
|
| 11226 |
-
|
| 11227 |
-
if (value == null) {
|
| 11228 |
-
if (token.optional) {
|
| 11229 |
-
// Prepend partial segment prefixes.
|
| 11230 |
-
if (token.partial) {
|
| 11231 |
-
path += token.prefix
|
| 11232 |
-
}
|
| 11233 |
-
|
| 11234 |
-
continue
|
| 11235 |
-
} else {
|
| 11236 |
-
throw new TypeError('Expected "' + token.name + '" to be defined')
|
| 11237 |
-
}
|
| 11238 |
-
}
|
| 11239 |
-
|
| 11240 |
-
if (isarray(value)) {
|
| 11241 |
-
if (!token.repeat) {
|
| 11242 |
-
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
|
| 11243 |
-
}
|
| 11244 |
-
|
| 11245 |
-
if (value.length === 0) {
|
| 11246 |
-
if (token.optional) {
|
| 11247 |
-
continue
|
| 11248 |
-
} else {
|
| 11249 |
-
throw new TypeError('Expected "' + token.name + '" to not be empty')
|
| 11250 |
-
}
|
| 11251 |
-
}
|
| 11252 |
-
|
| 11253 |
-
for (var j = 0; j < value.length; j++) {
|
| 11254 |
-
segment = encode(value[j])
|
| 11255 |
-
|
| 11256 |
-
if (!matches[i].test(segment)) {
|
| 11257 |
-
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
|
| 11258 |
-
}
|
| 11259 |
-
|
| 11260 |
-
path += (j === 0 ? token.prefix : token.delimiter) + segment
|
| 11261 |
-
}
|
| 11262 |
-
|
| 11263 |
-
continue
|
| 11264 |
-
}
|
| 11265 |
-
|
| 11266 |
-
segment = token.asterisk ? encodeAsterisk(value) : encode(value)
|
| 11267 |
-
|
| 11268 |
-
if (!matches[i].test(segment)) {
|
| 11269 |
-
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
|
| 11270 |
-
}
|
| 11271 |
-
|
| 11272 |
-
path += token.prefix + segment
|
| 11273 |
-
}
|
| 11274 |
-
|
| 11275 |
-
return path
|
| 11276 |
-
}
|
| 11277 |
-
}
|
| 11278 |
-
|
| 11279 |
-
/**
|
| 11280 |
-
* Escape a regular expression string.
|
| 11281 |
-
*
|
| 11282 |
-
* @param {string} str
|
| 11283 |
-
* @return {string}
|
| 11284 |
-
*/
|
| 11285 |
-
function escapeString (str) {
|
| 11286 |
-
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
|
| 11287 |
-
}
|
| 11288 |
-
|
| 11289 |
-
/**
|
| 11290 |
-
* Escape the capturing group by escaping special characters and meaning.
|
| 11291 |
-
*
|
| 11292 |
-
* @param {string} group
|
| 11293 |
-
* @return {string}
|
| 11294 |
-
*/
|
| 11295 |
-
function escapeGroup (group) {
|
| 11296 |
-
return group.replace(/([=!:$\/()])/g, '\\$1')
|
| 11297 |
-
}
|
| 11298 |
-
|
| 11299 |
-
/**
|
| 11300 |
-
* Attach the keys as a property of the regexp.
|
| 11301 |
-
*
|
| 11302 |
-
* @param {!RegExp} re
|
| 11303 |
-
* @param {Array} keys
|
| 11304 |
-
* @return {!RegExp}
|
| 11305 |
-
*/
|
| 11306 |
-
function attachKeys (re, keys) {
|
| 11307 |
-
re.keys = keys
|
| 11308 |
-
return re
|
| 11309 |
-
}
|
| 11310 |
-
|
| 11311 |
-
/**
|
| 11312 |
-
* Get the flags for a regexp from the options.
|
| 11313 |
-
*
|
| 11314 |
-
* @param {Object} options
|
| 11315 |
-
* @return {string}
|
| 11316 |
-
*/
|
| 11317 |
-
function flags (options) {
|
| 11318 |
-
return options && options.sensitive ? '' : 'i'
|
| 11319 |
-
}
|
| 11320 |
-
|
| 11321 |
-
/**
|
| 11322 |
-
* Pull out keys from a regexp.
|
| 11323 |
-
*
|
| 11324 |
-
* @param {!RegExp} path
|
| 11325 |
-
* @param {!Array} keys
|
| 11326 |
-
* @return {!RegExp}
|
| 11327 |
-
*/
|
| 11328 |
-
function regexpToRegexp (path, keys) {
|
| 11329 |
-
// Use a negative lookahead to match only capturing groups.
|
| 11330 |
-
var groups = path.source.match(/\((?!\?)/g)
|
| 11331 |
-
|
| 11332 |
-
if (groups) {
|
| 11333 |
-
for (var i = 0; i < groups.length; i++) {
|
| 11334 |
-
keys.push({
|
| 11335 |
-
name: i,
|
| 11336 |
-
prefix: null,
|
| 11337 |
-
delimiter: null,
|
| 11338 |
-
optional: false,
|
| 11339 |
-
repeat: false,
|
| 11340 |
-
partial: false,
|
| 11341 |
-
asterisk: false,
|
| 11342 |
-
pattern: null
|
| 11343 |
-
})
|
| 11344 |
-
}
|
| 11345 |
-
}
|
| 11346 |
-
|
| 11347 |
-
return attachKeys(path, keys)
|
| 11348 |
-
}
|
| 11349 |
-
|
| 11350 |
-
/**
|
| 11351 |
-
* Transform an array into a regexp.
|
| 11352 |
-
*
|
| 11353 |
-
* @param {!Array} path
|
| 11354 |
-
* @param {Array} keys
|
| 11355 |
-
* @param {!Object} options
|
| 11356 |
-
* @return {!RegExp}
|
| 11357 |
-
*/
|
| 11358 |
-
function arrayToRegexp (path, keys, options) {
|
| 11359 |
-
var parts = []
|
| 11360 |
-
|
| 11361 |
-
for (var i = 0; i < path.length; i++) {
|
| 11362 |
-
parts.push(pathToRegexp(path[i], keys, options).source)
|
| 11363 |
-
}
|
| 11364 |
-
|
| 11365 |
-
var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))
|
| 11366 |
-
|
| 11367 |
-
return attachKeys(regexp, keys)
|
| 11368 |
-
}
|
| 11369 |
-
|
| 11370 |
-
/**
|
| 11371 |
-
* Create a path regexp from string input.
|
| 11372 |
-
*
|
| 11373 |
-
* @param {string} path
|
| 11374 |
-
* @param {!Array} keys
|
| 11375 |
-
* @param {!Object} options
|
| 11376 |
-
* @return {!RegExp}
|
| 11377 |
-
*/
|
| 11378 |
-
function stringToRegexp (path, keys, options) {
|
| 11379 |
-
return tokensToRegExp(parse(path, options), keys, options)
|
| 11380 |
-
}
|
| 11381 |
-
|
| 11382 |
-
/**
|
| 11383 |
-
* Expose a function for taking tokens and returning a RegExp.
|
| 11384 |
-
*
|
| 11385 |
-
* @param {!Array} tokens
|
| 11386 |
-
* @param {(Array|Object)=} keys
|
| 11387 |
-
* @param {Object=} options
|
| 11388 |
-
* @return {!RegExp}
|
| 11389 |
-
*/
|
| 11390 |
-
function tokensToRegExp (tokens, keys, options) {
|
| 11391 |
-
if (!isarray(keys)) {
|
| 11392 |
-
options = /** @type {!Object} */ (keys || options)
|
| 11393 |
-
keys = []
|
| 11394 |
-
}
|
| 11395 |
-
|
| 11396 |
-
options = options || {}
|
| 11397 |
-
|
| 11398 |
-
var strict = options.strict
|
| 11399 |
-
var end = options.end !== false
|
| 11400 |
-
var route = ''
|
| 11401 |
-
|
| 11402 |
-
// Iterate over the tokens and create our regexp string.
|
| 11403 |
-
for (var i = 0; i < tokens.length; i++) {
|
| 11404 |
-
var token = tokens[i]
|
| 11405 |
-
|
| 11406 |
-
if (typeof token === 'string') {
|
| 11407 |
-
route += escapeString(token)
|
| 11408 |
-
} else {
|
| 11409 |
-
var prefix = escapeString(token.prefix)
|
| 11410 |
-
var capture = '(?:' + token.pattern + ')'
|
| 11411 |
-
|
| 11412 |
-
keys.push(token)
|
| 11413 |
-
|
| 11414 |
-
if (token.repeat) {
|
| 11415 |
-
capture += '(?:' + prefix + capture + ')*'
|
| 11416 |
-
}
|
| 11417 |
-
|
| 11418 |
-
if (token.optional) {
|
| 11419 |
-
if (!token.partial) {
|
| 11420 |
-
capture = '(?:' + prefix + '(' + capture + '))?'
|
| 11421 |
-
} else {
|
| 11422 |
-
capture = prefix + '(' + capture + ')?'
|
| 11423 |
-
}
|
| 11424 |
-
} else {
|
| 11425 |
-
capture = prefix + '(' + capture + ')'
|
| 11426 |
-
}
|
| 11427 |
-
|
| 11428 |
-
route += capture
|
| 11429 |
-
}
|
| 11430 |
-
}
|
| 11431 |
-
|
| 11432 |
-
var delimiter = escapeString(options.delimiter || '/')
|
| 11433 |
-
var endsWithDelimiter = route.slice(-delimiter.length) === delimiter
|
| 11434 |
-
|
| 11435 |
-
// In non-strict mode we allow a slash at the end of match. If the path to
|
| 11436 |
-
// match already ends with a slash, we remove it for consistency. The slash
|
| 11437 |
-
// is valid at the end of a path match, not in the middle. This is important
|
| 11438 |
-
// in non-ending mode, where "/test/" shouldn't match "/test//route".
|
| 11439 |
-
if (!strict) {
|
| 11440 |
-
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'
|
| 11441 |
-
}
|
| 11442 |
-
|
| 11443 |
-
if (end) {
|
| 11444 |
-
route += '$'
|
| 11445 |
-
} else {
|
| 11446 |
-
// In non-ending mode, we need the capturing groups to match as much as
|
| 11447 |
-
// possible by using a positive lookahead to the end or next path segment.
|
| 11448 |
-
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'
|
| 11449 |
-
}
|
| 11450 |
-
|
| 11451 |
-
return attachKeys(new RegExp('^' + route, flags(options)), keys)
|
| 11452 |
-
}
|
| 11453 |
-
|
| 11454 |
-
/**
|
| 11455 |
-
* Normalize the given path string, returning a regular expression.
|
| 11456 |
-
*
|
| 11457 |
-
* An empty array can be passed in for the keys, which will hold the
|
| 11458 |
-
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
| 11459 |
-
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
| 11460 |
-
*
|
| 11461 |
-
* @param {(string|RegExp|Array)} path
|
| 11462 |
-
* @param {(Array|Object)=} keys
|
| 11463 |
-
* @param {Object=} options
|
| 11464 |
-
* @return {!RegExp}
|
| 11465 |
-
*/
|
| 11466 |
-
function pathToRegexp (path, keys, options) {
|
| 11467 |
-
if (!isarray(keys)) {
|
| 11468 |
-
options = /** @type {!Object} */ (keys || options)
|
| 11469 |
-
keys = []
|
| 11470 |
-
}
|
| 11471 |
-
|
| 11472 |
-
options = options || {}
|
| 11473 |
-
|
| 11474 |
-
if (path instanceof RegExp) {
|
| 11475 |
-
return regexpToRegexp(path, /** @type {!Array} */ (keys))
|
| 11476 |
-
}
|
| 11477 |
-
|
| 11478 |
-
if (isarray(path)) {
|
| 11479 |
-
return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
|
| 11480 |
-
}
|
| 11481 |
-
|
| 11482 |
-
return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
|
| 11483 |
-
}
|
| 11484 |
-
|
| 11485 |
-
|
| 11486 |
-
/***/ }),
|
| 11487 |
-
/* 189 */
|
| 11488 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 11489 |
-
|
| 11490 |
-
"use strict";
|
| 11491 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp__ = __webpack_require__(188);
|
| 11492 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_path_to_regexp__);
|
| 11493 |
-
|
| 11494 |
-
|
| 11495 |
-
var patternCache = {};
|
| 11496 |
-
var cacheLimit = 10000;
|
| 11497 |
-
var cacheCount = 0;
|
| 11498 |
-
|
| 11499 |
-
var compileGenerator = function compileGenerator(pattern) {
|
| 11500 |
-
var cacheKey = pattern;
|
| 11501 |
-
var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
|
| 11502 |
-
|
| 11503 |
-
if (cache[pattern]) return cache[pattern];
|
| 11504 |
-
|
| 11505 |
-
var compiledGenerator = __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default.a.compile(pattern);
|
| 11506 |
-
|
| 11507 |
-
if (cacheCount < cacheLimit) {
|
| 11508 |
-
cache[pattern] = compiledGenerator;
|
| 11509 |
-
cacheCount++;
|
| 11510 |
-
}
|
| 11511 |
-
|
| 11512 |
-
return compiledGenerator;
|
| 11513 |
-
};
|
| 11514 |
-
|
| 11515 |
-
/**
|
| 11516 |
-
* Public API for generating a URL pathname from a pattern and parameters.
|
| 11517 |
-
*/
|
| 11518 |
-
var generatePath = function generatePath() {
|
| 11519 |
-
var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "/";
|
| 11520 |
-
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
| 11521 |
-
|
| 11522 |
-
if (pattern === "/") {
|
| 11523 |
-
return pattern;
|
| 11524 |
-
}
|
| 11525 |
-
var generator = compileGenerator(pattern);
|
| 11526 |
-
return generator(params, { pretty: true });
|
| 11527 |
-
};
|
| 11528 |
-
|
| 11529 |
-
/* harmony default export */ __webpack_exports__["a"] = (generatePath);
|
| 11530 |
-
|
| 11531 |
-
/***/ }),
|
| 11532 |
-
/* 190 */
|
| 11533 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 11534 |
-
|
| 11535 |
-
"use strict";
|
| 11536 |
-
|
| 11537 |
-
|
| 11538 |
-
Object.defineProperty(exports, "__esModule", {
|
| 11539 |
-
value: true
|
| 11540 |
-
});
|
| 11541 |
-
exports["default"] = void 0;
|
| 11542 |
-
|
| 11543 |
-
var _react = _interopRequireWildcard(__webpack_require__(0));
|
| 11544 |
-
|
| 11545 |
-
var _reactRouterDom = __webpack_require__(39);
|
| 11546 |
-
|
| 11547 |
-
var _reactDom = _interopRequireDefault(__webpack_require__(11));
|
| 11548 |
-
|
| 11549 |
-
__webpack_require__(425);
|
| 11550 |
-
|
| 11551 |
-
var _QuadsAdConfig = _interopRequireDefault(__webpack_require__(426));
|
| 11552 |
-
|
| 11553 |
-
var _QuadsAdTargeting = _interopRequireDefault(__webpack_require__(493));
|
| 11554 |
-
|
| 11555 |
-
var _QuadsAdPublish = _interopRequireDefault(__webpack_require__(501));
|
| 11556 |
-
|
| 11557 |
-
var _queryString = _interopRequireDefault(__webpack_require__(28));
|
| 11558 |
-
|
| 11559 |
-
var _Icon = _interopRequireDefault(__webpack_require__(31));
|
| 11560 |
-
|
| 11561 |
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
| 11562 |
-
|
| 11563 |
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
| 11564 |
-
|
| 11565 |
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
| 11566 |
-
|
| 11567 |
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
| 11568 |
-
|
| 11569 |
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
| 11570 |
-
|
| 11571 |
-
function _readOnlyError(name) { throw new Error("\"" + name + "\" is read-only"); }
|
| 11572 |
-
|
| 11573 |
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
| 11574 |
-
|
| 11575 |
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
| 11576 |
-
|
| 11577 |
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
| 11578 |
-
|
| 11579 |
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
| 11580 |
-
|
| 11581 |
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
| 11582 |
-
|
| 11583 |
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
| 11584 |
-
|
| 11585 |
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
| 11586 |
-
|
| 11587 |
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
| 11588 |
-
|
| 11589 |
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
| 11590 |
-
|
| 11591 |
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
| 11592 |
-
|
| 11593 |
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
| 11594 |
-
|
| 11595 |
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
| 11596 |
-
|
| 11597 |
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
| 11598 |
-
|
| 11599 |
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
| 11600 |
-
|
| 11601 |
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
| 11602 |
-
|
| 11603 |
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
| 11604 |
-
|
| 11605 |
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
| 11606 |
-
|
| 11607 |
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
| 11608 |
-
|
| 11609 |
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
| 11610 |
-
|
| 11611 |
-
var QuadsAdCreateRouter = /*#__PURE__*/function (_Component) {
|
| 11612 |
-
_inherits(QuadsAdCreateRouter, _Component);
|
| 11613 |
-
|
| 11614 |
-
var _super = _createSuper(QuadsAdCreateRouter);
|
| 11615 |
-
|
| 11616 |
-
function QuadsAdCreateRouter(props) {
|
| 11617 |
-
var _this;
|
| 11618 |
-
|
| 11619 |
-
_classCallCheck(this, QuadsAdCreateRouter);
|
| 11620 |
-
|
| 11621 |
-
var visibility_include_def_val = [{
|
| 11622 |
-
type: {
|
| 11623 |
-
label: "Post Type",
|
| 11624 |
-
value: "post_type"
|
| 11625 |
-
},
|
| 11626 |
-
value: {
|
| 11627 |
-
label: "post",
|
| 11628 |
-
value: "post"
|
| 11629 |
-
}
|
| 11630 |
-
}];
|
| 11631 |
-
_this = _super.call(this, props);
|
| 11632 |
-
|
| 11633 |
-
_defineProperty(_assertThisInitialized(_this), "updateVisitorTarget", function (include, exclude) {
|
| 11634 |
-
_this.includedVal = include;
|
| 11635 |
-
_this.excludedVal = exclude;
|
| 11636 |
-
});
|
| 11637 |
-
|
| 11638 |
-
_defineProperty(_assertThisInitialized(_this), "updateVisibility", function (include, exclude) {
|
| 11639 |
-
_this.includedVisibilityVal = include;
|
| 11640 |
-
_this.excludedVisibilityVal = exclude;
|
| 11641 |
-
});
|
| 11642 |
-
|
| 11643 |
-
_defineProperty(_assertThisInitialized(_this), "updateRandomAds", function (random_ads_list) {
|
| 11644 |
-
_this.random_ads_list = random_ads_list;
|
| 11645 |
-
});
|
| 11646 |
-
|
| 11647 |
-
_defineProperty(_assertThisInitialized(_this), "getAdDataById", function (ad_id) {
|
| 11648 |
-
var url = quads_localize_data.rest_url + 'quads-route/get-ad-by-id?ad-id=' + ad_id;
|
| 11649 |
-
|
| 11650 |
-
if (quads_localize_data.rest_url.includes('?')) {
|
| 11651 |
-
url = quads_localize_data.rest_url + 'quads-route/get-ad-by-id&ad-id=' + ad_id;
|
| 11652 |
-
}
|
| 11653 |
-
|
| 11654 |
-
fetch(url, {
|
| 11655 |
-
headers: {
|
| 11656 |
-
'X-WP-Nonce': quads_localize_data.nonce
|
| 11657 |
-
}
|
| 11658 |
-
}).then(function (res) {
|
| 11659 |
-
return res.json();
|
| 11660 |
-
}).then(function (result) {
|
| 11661 |
-
var _this$state = _objectSpread({}, _this.state),
|
| 11662 |
-
quads_post_meta = _this$state.quads_post_meta;
|
| 11663 |
-
|
| 11664 |
-
Object.entries(result).map(function (_ref) {
|
| 11665 |
-
var _ref2 = _slicedToArray(_ref, 2),
|
| 11666 |
-
key = _ref2[0],
|
| 11667 |
-
value = _ref2[1];
|
| 11668 |
-
|
| 11669 |
-
if (key == 'post') {
|
| 11670 |
-
_this.setState({
|
| 11671 |
-
quads_post: result.post
|
| 11672 |
-
});
|
| 11673 |
-
} else {
|
| 11674 |
-
Object.entries(value).map(function (_ref3) {
|
| 11675 |
-
var _ref4 = _slicedToArray(_ref3, 2),
|
| 11676 |
-
meta_key = _ref4[0],
|
| 11677 |
-
meta_val = _ref4[1];
|
| 11678 |
-
|
| 11679 |
-
if (meta_val) {
|
| 11680 |
-
quads_post_meta[meta_key] = meta_val;
|
| 11681 |
-
}
|
| 11682 |
-
});
|
| 11683 |
-
|
| 11684 |
-
_this.setState(quads_post_meta);
|
| 11685 |
-
}
|
| 11686 |
-
});
|
| 11687 |
-
}, function (error) {});
|
| 11688 |
-
});
|
| 11689 |
-
|
| 11690 |
-
_defineProperty(_assertThisInitialized(_this), "removeVisibilityIncludeItem", function (e) {
|
| 11691 |
-
e.preventDefault();
|
| 11692 |
-
var index = e.currentTarget.dataset.index;
|
| 11693 |
-
|
| 11694 |
-
var _this$state2 = _objectSpread({}, _this.state),
|
| 11695 |
-
quads_post_meta = _this$state2.quads_post_meta;
|
| 11696 |
-
|
| 11697 |
-
quads_post_meta.visibility_include.splice(index, 1);
|
| 11698 |
-
|
| 11699 |
-
_this.setState(quads_post_meta);
|
| 11700 |
-
});
|
| 11701 |
-
|
| 11702 |
-
_defineProperty(_assertThisInitialized(_this), "removeVisibilityExcludeItem", function (e) {
|
| 11703 |
-
e.preventDefault();
|
| 11704 |
-
var index = e.currentTarget.dataset.index;
|
| 11705 |
-
|
| 11706 |
-
var _this$state3 = _objectSpread({}, _this.state),
|
| 11707 |
-
quads_post_meta = _this$state3.quads_post_meta;
|
| 11708 |
-
|
| 11709 |
-
quads_post_meta.visibility_exclude.splice(index, 1);
|
| 11710 |
-
|
| 11711 |
-
_this.setState(quads_post_meta);
|
| 11712 |
-
});
|
| 11713 |
-
|
| 11714 |
-
_defineProperty(_assertThisInitialized(_this), "onListSearchHover", function () {});
|
| 11715 |
-
|
| 11716 |
-
_defineProperty(_assertThisInitialized(_this), "addIncludeFromSearch", function (e) {
|
| 11717 |
-
e.preventDefault();
|
| 11718 |
-
var id = e.currentTarget.dataset.id;
|
| 11719 |
-
var text = e.currentTarget.dataset.text;
|
| 11720 |
-
|
| 11721 |
-
_this.setState({
|
| 11722 |
-
quads_include_input_id: id,
|
| 11723 |
-
quads_include_input_text: text
|
| 11724 |
-
});
|
| 11725 |
-
|
| 11726 |
-
var _this$state4 = _objectSpread({}, _this.state),
|
| 11727 |
-
quads_post_meta = _this$state4.quads_post_meta;
|
| 11728 |
-
|
| 11729 |
-
quads_post_meta.include_dropdown = false;
|
| 11730 |
-
|
| 11731 |
-
_this.setState(quads_post_meta);
|
| 11732 |
-
});
|
| 11733 |
-
|
| 11734 |
-
_defineProperty(_assertThisInitialized(_this), "addExcludeFromSearch", function (e) {
|
| 11735 |
-
e.preventDefault();
|
| 11736 |
-
var id = e.currentTarget.dataset.id;
|
| 11737 |
-
var text = e.currentTarget.dataset.text;
|
| 11738 |
-
|
| 11739 |
-
_this.setState({
|
| 11740 |
-
quads_exclude_input_id: id,
|
| 11741 |
-
quads_exclude_input_text: text
|
| 11742 |
-
});
|
| 11743 |
-
|
| 11744 |
-
var _this$state5 = _objectSpread({}, _this.state),
|
| 11745 |
-
quads_post_meta = _this$state5.quads_post_meta;
|
| 11746 |
-
|
| 11747 |
-
quads_post_meta.exclude_dropdown = false;
|
| 11748 |
-
|
| 11749 |
-
_this.setState(quads_post_meta);
|
| 11750 |
-
});
|
| 11751 |
-
|
| 11752 |
-
_defineProperty(_assertThisInitialized(_this), "onIncludeFocus", function () {
|
| 11753 |
-
var _this$state6 = _objectSpread({}, _this.state),
|
| 11754 |
-
quads_post_meta = _this$state6.quads_post_meta;
|
| 11755 |
-
|
| 11756 |
-
quads_post_meta.include_dropdown = true;
|
| 11757 |
-
|
| 11758 |
-
_this.setState(quads_post_meta);
|
| 11759 |
-
});
|
| 11760 |
-
|
| 11761 |
-
_defineProperty(_assertThisInitialized(_this), "onExcludeFocus", function () {
|
| 11762 |
-
var _this$state7 = _objectSpread({}, _this.state),
|
| 11763 |
-
quads_post_meta = _this$state7.quads_post_meta;
|
| 11764 |
-
|
| 11765 |
-
quads_post_meta.exclude_dropdown = true;
|
| 11766 |
-
|
| 11767 |
-
_this.setState(quads_post_meta);
|
| 11768 |
-
});
|
| 11769 |
-
|
| 11770 |
-
_defineProperty(_assertThisInitialized(_this), "excludeFormToggle", function () {
|
| 11771 |
-
_this.setState({
|
| 11772 |
-
quads_exclude_toggle: !_this.state.quads_exclude_toggle
|
| 11773 |
-
});
|
| 11774 |
-
});
|
| 11775 |
-
|
| 11776 |
-
_defineProperty(_assertThisInitialized(_this), "includeFormToggle", function () {
|
| 11777 |
-
_this.setState({
|
| 11778 |
-
quads_include_toggle: !_this.state.quads_include_toggle
|
| 11779 |
-
});
|
| 11780 |
-
});
|
| 11781 |
-
|
| 11782 |
-
_defineProperty(_assertThisInitialized(_this), "openModal", function () {
|
| 11783 |
-
_this.setState({
|
| 11784 |
-
quads_modal_open: true
|
| 11785 |
-
});
|
| 11786 |
-
});
|
| 11787 |
-
|
| 11788 |
-
_defineProperty(_assertThisInitialized(_this), "closeModal", function () {
|
| 11789 |
-
_this.setState({
|
| 11790 |
-
quads_modal_open: false
|
| 11791 |
-
});
|
| 11792 |
-
|
| 11793 |
-
_this.setState({
|
| 11794 |
-
quads_modal_error: ''
|
| 11795 |
-
});
|
| 11796 |
-
});
|
| 11797 |
-
|
| 11798 |
-
_defineProperty(_assertThisInitialized(_this), "modalValue", function (e) {
|
| 11799 |
-
_this.setState({
|
| 11800 |
-
quads_modal_value: e.target.value
|
| 11801 |
-
});
|
| 11802 |
-
});
|
| 11803 |
-
|
| 11804 |
-
_defineProperty(_assertThisInitialized(_this), "getGoogleAdsenseAttr", function (content, regex) {
|
| 11805 |
-
var str = content;
|
| 11806 |
-
var m;
|
| 11807 |
-
var result = {};
|
| 11808 |
-
|
| 11809 |
-
while ((m = regex.exec(str)) !== null) {
|
| 11810 |
-
// This is necessary to avoid infinite loops with zero-width matches
|
| 11811 |
-
if (m.index === regex.lastIndex) {
|
| 11812 |
-
regex.lastIndex++;
|
| 11813 |
-
} // The result can be accessed through the `m`-variable.
|
| 11814 |
-
|
| 11815 |
-
|
| 11816 |
-
m.forEach(function (match, index) {
|
| 11817 |
-
//console.log(`Found match, group ${groupIndex}: ${match}`);
|
| 11818 |
-
result = match;
|
| 11819 |
-
});
|
| 11820 |
-
}
|
| 11821 |
-
|
| 11822 |
-
return result;
|
| 11823 |
-
});
|
| 11824 |
-
|
| 11825 |
-
_defineProperty(_assertThisInitialized(_this), "getAdsenseCode", function () {
|
| 11826 |
-
var content = _this.state.quads_modal_value;
|
| 11827 |
-
|
| 11828 |
-
_this.setState({
|
| 11829 |
-
quads_modal_open: true
|
| 11830 |
-
});
|
| 11831 |
-
|
| 11832 |
-
if (content) {
|
| 11833 |
-
var slot_regex = /google_ad_slot\s*=\s*"(\d*)";/g;
|
| 11834 |
-
|
| 11835 |
-
var ad_slot = _this.getGoogleAdsenseAttr(content, slot_regex);
|
| 11836 |
-
|
| 11837 |
-
var ad_client_regex = /google_ad_client\s*=\s*"ca-pub-(\d*)";/g;
|
| 11838 |
-
|
| 11839 |
-
var ad_client = _this.getGoogleAdsenseAttr(content, ad_client_regex);
|
| 11840 |
-
|
| 11841 |
-
var width_regex = /google_ad_width\s*=\s*(\d*);/g;
|
| 11842 |
-
|
| 11843 |
-
var ad_width = _this.getGoogleAdsenseAttr(content, width_regex);
|
| 11844 |
-
|
| 11845 |
-
var height_regex = /google_ad_height\s*=\s*(\d*);/g;
|
| 11846 |
-
|
| 11847 |
-
var ad_height = _this.getGoogleAdsenseAttr(content, height_regex);
|
| 11848 |
-
|
| 11849 |
-
var ad_format_regex = /data-ad-format\s*=\s*"(\w*)";/g;
|
| 11850 |
-
|
| 11851 |
-
var ad_format = _this.getGoogleAdsenseAttr(content, ad_format_regex);
|
| 11852 |
-
|
| 11853 |
-
var adsense_type = 'normal';
|
| 11854 |
-
|
| 11855 |
-
if ((!ad_slot || 0 === ad_slot.length) && (!ad_client || 0 === ad_client.length) && (!ad_width || 0 === ad_width.length)) {
|
| 11856 |
-
adsense_type = (_readOnlyError("adsense_type"), 'normal');
|
| 11857 |
-
}
|
| 11858 |
-
|
| 11859 |
-
if (ad_format == 'auto') {
|
| 11860 |
-
adsense_type = (_readOnlyError("adsense_type"), 'responsive');
|
| 11861 |
-
}
|
| 11862 |
-
|
| 11863 |
-
if (ad_slot.length >= 0 && ad_client.length >= 0) {
|
| 11864 |
-
var _this$state8 = _objectSpread({}, _this.state),
|
| 11865 |
-
quads_post_meta = _this$state8.quads_post_meta;
|
| 11866 |
-
|
| 11867 |
-
quads_post_meta.g_data_ad_slot = ad_slot;
|
| 11868 |
-
quads_post_meta.g_data_ad_client = 'ca-pub-' + ad_client;
|
| 11869 |
-
quads_post_meta.g_data_ad_width = ad_width;
|
| 11870 |
-
quads_post_meta.g_data_ad_height = ad_height;
|
| 11871 |
-
quads_post_meta.adsense_type = adsense_type;
|
| 11872 |
-
|
| 11873 |
-
_this.setState(quads_post_meta);
|
| 11874 |
-
|
| 11875 |
-
_this.setState({
|
| 11876 |
-
quads_modal_open: false
|
| 11877 |
-
});
|
| 11878 |
-
} else {
|
| 11879 |
-
_this.setState({
|
| 11880 |
-
quads_modal_error: 'Can not parse AdSense Code. Is the code valid?'
|
| 11881 |
-
});
|
| 11882 |
-
|
| 11883 |
-
_this.setState({
|
| 11884 |
-
quads_modal_open: true
|
| 11885 |
-
});
|
| 11886 |
-
}
|
| 11887 |
-
} else {
|
| 11888 |
-
_this.setState({
|
| 11889 |
-
quads_modal_error: 'Please provide adsense code'
|
| 11890 |
-
});
|
| 11891 |
-
}
|
| 11892 |
-
});
|
| 11893 |
-
|
| 11894 |
-
_defineProperty(_assertThisInitialized(_this), "saveAdFormData", function (ad_status) {
|
| 11895 |
-
_this.setState({
|
| 11896 |
-
quads_is_loaded: true
|
| 11897 |
-
});
|
| 11898 |
-
|
| 11899 |
-
var body_json = _this.state;
|
| 11900 |
-
body_json.quads_ad_status = ad_status; //visitor targeting
|
| 11901 |
-
|
| 11902 |
-
body_json.quads_post_meta.targeting_include = _this.includedVal;
|
| 11903 |
-
body_json.quads_post_meta.targeting_exclude = _this.excludedVal;
|
| 11904 |
-
body_json.quads_post_meta.visibility_include = _this.includedVisibilityVal;
|
| 11905 |
-
body_json.quads_post_meta.visibility_exclude = _this.excludedVisibilityVal;
|
| 11906 |
-
body_json.quads_post_meta.random_ads_list = _this.random_ads_list;
|
| 11907 |
-
var url = quads_localize_data.rest_url + 'quads-route/update-ad';
|
| 11908 |
-
fetch(url, {
|
| 11909 |
-
method: "post",
|
| 11910 |
-
headers: {
|
| 11911 |
-
'Accept': 'application/json',
|
| 11912 |
-
'Content-Type': 'application/json',
|
| 11913 |
-
'X-WP-Nonce': quads_localize_data.nonce
|
| 11914 |
-
},
|
| 11915 |
-
//make sure to serialize your JSON body
|
| 11916 |
-
body: JSON.stringify(body_json)
|
| 11917 |
-
}).then(function (res) {
|
| 11918 |
-
return res.json();
|
| 11919 |
-
}).then(function (result) {
|
| 11920 |
-
_this.setState({
|
| 11921 |
-
quads_is_loaded: false
|
| 11922 |
-
});
|
| 11923 |
-
|
| 11924 |
-
_this.setState(Object.assign(_this.state.quads_post_meta, {
|
| 11925 |
-
ad_id: result.ad_id
|
| 11926 |
-
}));
|
| 11927 |
-
|
| 11928 |
-
var path = _this.props.location.pathname;
|
| 11929 |
-
var search = _this.props.location.search;
|
| 11930 |
-
|
| 11931 |
-
var page = _queryString["default"].parse(window.location.search);
|
| 11932 |
-
|
| 11933 |
-
var new_url = path + search;
|
| 11934 |
-
|
| 11935 |
-
if (page.action != 'edit') {
|
| 11936 |
-
new_url = _this.removePartofQueryString(new_url, 'path=wizard_target');
|
| 11937 |
-
new_url += 'path=wizard_publish&action=edit&post=' + result.ad_id;
|
| 11938 |
-
} else {
|
| 11939 |
-
new_url = _this.removePartofQueryString(new_url, 'path=wizard_target');
|
| 11940 |
-
new_url += 'path=wizard_publish';
|
| 11941 |
-
}
|
| 11942 |
-
|
| 11943 |
-
_this.setState({
|
| 11944 |
-
quads_is_saved: true
|
| 11945 |
-
});
|
| 11946 |
-
|
| 11947 |
-
_this.props.history.push(new_url);
|
| 11948 |
-
}, function (error) {
|
| 11949 |
-
_this.setState({
|
| 11950 |
-
quads_is_error: error,
|
| 11951 |
-
quads_is_loaded: false
|
| 11952 |
-
});
|
| 11953 |
-
});
|
| 11954 |
-
});
|
| 11955 |
-
|
| 11956 |
-
_defineProperty(_assertThisInitialized(_this), "adFormChangeHandler", function (event) {
|
| 11957 |
-
var name = event.target.name;
|
| 11958 |
-
var value = event.target.type === 'checkbox' ? event.target.checked : event.target.value;
|
| 11959 |
-
|
| 11960 |
-
var _this$state9 = _objectSpread({}, _this.state),
|
| 11961 |
-
quads_post_meta = _this$state9.quads_post_meta;
|
| 11962 |
-
|
| 11963 |
-
var currentState = quads_post_meta;
|
| 11964 |
-
|
| 11965 |
-
if (name) {
|
| 11966 |
-
currentState[name] = value;
|
| 11967 |
-
|
| 11968 |
-
_this.setState({
|
| 11969 |
-
quads_post_meta: currentState,
|
| 11970 |
-
quads_state_changed: true
|
| 11971 |
-
});
|
| 11972 |
-
}
|
| 11973 |
-
|
| 11974 |
-
var page = _queryString["default"].parse(window.location.search);
|
| 11975 |
-
|
| 11976 |
-
if (!_this.state.quads_ad_status) {
|
| 11977 |
-
_this.setState({
|
| 11978 |
-
quads_ad_status: 'draft'
|
| 11979 |
-
});
|
| 11980 |
-
}
|
| 11981 |
-
});
|
| 11982 |
-
|
| 11983 |
-
_defineProperty(_assertThisInitialized(_this), "saveAsDraft", function (event) {
|
| 11984 |
-
event.preventDefault();
|
| 11985 |
-
|
| 11986 |
-
_this.saveAdFormData('draft');
|
| 11987 |
-
});
|
| 11988 |
-
|
| 11989 |
-
_defineProperty(_assertThisInitialized(_this), "publish", function (event) {
|
| 11990 |
-
event.preventDefault();
|
| 11991 |
-
var quads_post_meta = _this.state.quads_post_meta;
|
| 11992 |
-
var validation_flag = true;
|
| 11993 |
-
|
| 11994 |
-
if (quads_post_meta.position == 'after_the_percentage') {
|
| 11995 |
-
if (quads_post_meta.after_the_percentage_value == '' || parseInt(quads_post_meta.after_the_percentage_value) < 10 || parseInt(quads_post_meta.after_the_percentage_value) > 101) {
|
| 11996 |
-
validation_flag = false;
|
| 11997 |
-
}
|
| 11998 |
-
}
|
| 11999 |
-
|
| 12000 |
-
switch (quads_post_meta.ad_type) {
|
| 12001 |
-
case 'plain_text':
|
| 12002 |
-
if (validation_flag && quads_post_meta.code && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12003 |
-
_this.saveAdFormData('publish');
|
| 12004 |
-
} else {
|
| 12005 |
-
_this.setState({
|
| 12006 |
-
show_form_error: true
|
| 12007 |
-
});
|
| 12008 |
-
}
|
| 12009 |
-
|
| 12010 |
-
break;
|
| 12011 |
-
|
| 12012 |
-
case 'adsense':
|
| 12013 |
-
if (validation_flag && (quads_post_meta.adsense_ad_type == 'adsense_auto_ads' || quads_post_meta.g_data_ad_slot) && quads_post_meta.g_data_ad_client && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12014 |
-
_this.saveAdFormData('publish');
|
| 12015 |
-
} else {
|
| 12016 |
-
_this.setState({
|
| 12017 |
-
show_form_error: true
|
| 12018 |
-
});
|
| 12019 |
-
}
|
| 12020 |
-
|
| 12021 |
-
break;
|
| 12022 |
-
|
| 12023 |
-
case 'random_ads':
|
| 12024 |
-
if (validation_flag && quads_post_meta.random_ads_list.length > 0 && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12025 |
-
_this.saveAdFormData('publish');
|
| 12026 |
-
} else {
|
| 12027 |
-
_this.setState({
|
| 12028 |
-
show_form_error: true
|
| 12029 |
-
});
|
| 12030 |
-
}
|
| 12031 |
-
|
| 12032 |
-
break;
|
| 12033 |
-
|
| 12034 |
-
case 'double_click':
|
| 12035 |
-
if (validation_flag && quads_post_meta.ad_unit_name && quads_post_meta.network_code && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12036 |
-
_this.saveAdFormData('publish');
|
| 12037 |
-
} else {
|
| 12038 |
-
_this.setState({
|
| 12039 |
-
show_form_error: true
|
| 12040 |
-
});
|
| 12041 |
-
}
|
| 12042 |
-
|
| 12043 |
-
break;
|
| 12044 |
-
|
| 12045 |
-
case 'yandex':
|
| 12046 |
-
if (validation_flag && quads_post_meta.block_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12047 |
-
_this.saveAdFormData('publish');
|
| 12048 |
-
} else {
|
| 12049 |
-
_this.setState({
|
| 12050 |
-
show_form_error: true
|
| 12051 |
-
});
|
| 12052 |
-
}
|
| 12053 |
-
|
| 12054 |
-
break;
|
| 12055 |
-
|
| 12056 |
-
case 'mgid':
|
| 12057 |
-
if (validation_flag && quads_post_meta.data_js_src && quads_post_meta.data_container && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12058 |
-
_this.saveAdFormData('publish');
|
| 12059 |
-
} else {
|
| 12060 |
-
_this.setState({
|
| 12061 |
-
show_form_error: true
|
| 12062 |
-
});
|
| 12063 |
-
}
|
| 12064 |
-
|
| 12065 |
-
break;
|
| 12066 |
-
|
| 12067 |
-
case 'ad_image':
|
| 12068 |
-
if (validation_flag && quads_post_meta.image_src && quads_post_meta.image_redirect_url && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12069 |
-
_this.saveAdFormData('publish');
|
| 12070 |
-
} else {
|
| 12071 |
-
_this.setState({
|
| 12072 |
-
show_form_error: true
|
| 12073 |
-
});
|
| 12074 |
-
}
|
| 12075 |
-
|
| 12076 |
-
break;
|
| 12077 |
-
|
| 12078 |
-
case 'taboola':
|
| 12079 |
-
if (validation_flag && quads_post_meta.taboola_publisher_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12080 |
-
_this.saveAdFormData('publish');
|
| 12081 |
-
} else {
|
| 12082 |
-
_this.setState({
|
| 12083 |
-
show_form_error: true
|
| 12084 |
-
});
|
| 12085 |
-
}
|
| 12086 |
-
|
| 12087 |
-
break;
|
| 12088 |
-
|
| 12089 |
-
case 'media_net':
|
| 12090 |
-
if (validation_flag && quads_post_meta.data_cid && quads_post_meta.data_crid && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12091 |
-
_this.saveAdFormData('publish');
|
| 12092 |
-
} else {
|
| 12093 |
-
_this.setState({
|
| 12094 |
-
show_form_error: true
|
| 12095 |
-
});
|
| 12096 |
-
}
|
| 12097 |
-
|
| 12098 |
-
break;
|
| 12099 |
-
|
| 12100 |
-
case 'mediavine':
|
| 12101 |
-
if (validation_flag && quads_post_meta.mediavine_site_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12102 |
-
_this.saveAdFormData('publish');
|
| 12103 |
-
} else {
|
| 12104 |
-
_this.setState({
|
| 12105 |
-
show_form_error: true
|
| 12106 |
-
});
|
| 12107 |
-
}
|
| 12108 |
-
|
| 12109 |
-
break;
|
| 12110 |
-
|
| 12111 |
-
case 'outbrain':
|
| 12112 |
-
if (validation_flag && quads_post_meta.outbrain_widget_ids && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12113 |
-
_this.saveAdFormData('publish');
|
| 12114 |
-
} else {
|
| 12115 |
-
_this.setState({
|
| 12116 |
-
show_form_error: true
|
| 12117 |
-
});
|
| 12118 |
-
}
|
| 12119 |
-
|
| 12120 |
-
break;
|
| 12121 |
-
|
| 12122 |
-
case 'background_ad':
|
| 12123 |
-
if (validation_flag && quads_post_meta.image_src && quads_post_meta.image_redirect_url && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
|
| 12124 |
-
_this.saveAdFormData('publish');
|
| 12125 |
-
} else {
|
| 12126 |
-
_this.setState({
|
| 12127 |
-
show_form_error: true
|
| 12128 |
-
});
|
| 12129 |
-
}
|
| 12130 |
-
|
| 12131 |
-
break;
|
| 12132 |
-
|
| 12133 |
-
default:
|
| 12134 |
-
break;
|
| 12135 |
-
}
|
| 12136 |
-
});
|
| 12137 |
-
|
| 12138 |
-
_defineProperty(_assertThisInitialized(_this), "removePartofQueryString", function (q_string, part) {
|
| 12139 |
-
var split_arr = q_string.split("&");
|
| 12140 |
-
var new_search = '';
|
| 12141 |
-
|
| 12142 |
-
for (var i = 0; i < split_arr.length; i++) {
|
| 12143 |
-
if (!split_arr[i].includes(part)) {
|
| 12144 |
-
new_search += split_arr[i] + '&';
|
| 12145 |
-
}
|
| 12146 |
-
}
|
| 12147 |
-
|
| 12148 |
-
return new_search;
|
| 12149 |
-
});
|
| 12150 |
-
|
| 12151 |
-
_defineProperty(_assertThisInitialized(_this), "quadsGoBack", function (e) {
|
| 12152 |
-
e.preventDefault();
|
| 12153 |
-
|
| 12154 |
-
var page = _queryString["default"].parse(window.location.search);
|
| 12155 |
-
|
| 12156 |
-
var new_url = _this.props.location.pathname + '?page=quads-settings';
|
| 12157 |
-
|
| 12158 |
-
if (_this.state.quads_state_changed && !_this.state.quads_is_saved) {
|
| 12159 |
-
var r = confirm("Changes you made may not be saved.");
|
| 12160 |
-
|
| 12161 |
-
if (r == true) {
|
| 12162 |
-
_this.props.history.push(new_url);
|
| 12163 |
-
} else {
|
| 12164 |
-
return false;
|
| 12165 |
-
}
|
| 12166 |
-
} else {
|
| 12167 |
-
_this.props.history.push(new_url);
|
| 12168 |
-
}
|
| 12169 |
-
});
|
| 12170 |
-
|
| 12171 |
-
_defineProperty(_assertThisInitialized(_this), "moveNext", function (e) {
|
| 12172 |
-
var page = _queryString["default"].parse(window.location.search);
|
| 12173 |
-
|
| 12174 |
-
var new_url = _this.props.location.pathname + _this.removePartofQueryString(_this.props.location.search, 'path=wizard');
|
| 12175 |
-
|
| 12176 |
-
var quads_post_meta = _this.state.quads_post_meta;
|
| 12177 |
-
|
| 12178 |
-
if (page.path == 'wizard') {
|
| 12179 |
-
new_url += 'path=wizard_target';
|
| 12180 |
-
|
| 12181 |
-
switch (quads_post_meta.ad_type) {
|
| 12182 |
-
case 'plain_text':
|
| 12183 |
-
if (quads_post_meta.code) {
|
| 12184 |
-
_this.props.history.push(new_url);
|
| 12185 |
-
} else {
|
| 12186 |
-
_this.setState({
|
| 12187 |
-
show_form_error: true
|
| 12188 |
-
});
|
| 12189 |
-
}
|
| 12190 |
-
|
| 12191 |
-
break;
|
| 12192 |
-
|
| 12193 |
-
case 'adsense':
|
| 12194 |
-
if ((quads_post_meta.adsense_ad_type == 'adsense_auto_ads' || quads_post_meta.g_data_ad_slot) && quads_post_meta.g_data_ad_client) {
|
| 12195 |
-
_this.props.history.push(new_url);
|
| 12196 |
-
} else {
|
| 12197 |
-
_this.setState({
|
| 12198 |
-
show_form_error: true
|
| 12199 |
-
});
|
| 12200 |
-
}
|
| 12201 |
-
|
| 12202 |
-
break;
|
| 12203 |
-
|
| 12204 |
-
case 'random_ads':
|
| 12205 |
-
if (quads_post_meta.random_ads_list.length > 0) {
|
| 12206 |
-
_this.props.history.push(new_url);
|
| 12207 |
-
} else {
|
| 12208 |
-
_this.setState({
|
| 12209 |
-
show_form_error: true
|
| 12210 |
-
});
|
| 12211 |
-
}
|
| 12212 |
-
|
| 12213 |
-
break;
|
| 12214 |
-
|
| 12215 |
-
case 'double_click':
|
| 12216 |
-
if (quads_post_meta.ad_unit_name && quads_post_meta.network_code) {
|
| 12217 |
-
_this.props.history.push(new_url);
|
| 12218 |
-
} else {
|
| 12219 |
-
_this.setState({
|
| 12220 |
-
show_form_error: true
|
| 12221 |
-
});
|
| 12222 |
-
}
|
| 12223 |
-
|
| 12224 |
-
break;
|
| 12225 |
-
|
| 12226 |
-
case 'yandex':
|
| 12227 |
-
if (quads_post_meta.block_id) {
|
| 12228 |
-
_this.props.history.push(new_url);
|
| 12229 |
-
} else {
|
| 12230 |
-
_this.setState({
|
| 12231 |
-
show_form_error: true
|
| 12232 |
-
});
|
| 12233 |
-
}
|
| 12234 |
-
|
| 12235 |
-
break;
|
| 12236 |
-
|
| 12237 |
-
case 'mgid':
|
| 12238 |
-
if (quads_post_meta.data_container && quads_post_meta.data_js_src) {
|
| 12239 |
-
_this.props.history.push(new_url);
|
| 12240 |
-
} else {
|
| 12241 |
-
_this.setState({
|
| 12242 |
-
show_form_error: true
|
| 12243 |
-
});
|
| 12244 |
-
}
|
| 12245 |
-
|
| 12246 |
-
break;
|
| 12247 |
-
|
| 12248 |
-
case 'ad_image':
|
| 12249 |
-
if (quads_post_meta.image_src && quads_post_meta.image_redirect_url) {
|
| 12250 |
-
_this.props.history.push(new_url);
|
| 12251 |
-
} else {
|
| 12252 |
-
_this.setState({
|
| 12253 |
-
show_form_error: true
|
| 12254 |
-
});
|
| 12255 |
-
}
|
| 12256 |
-
|
| 12257 |
-
break;
|
| 12258 |
-
|
| 12259 |
-
case 'taboola':
|
| 12260 |
-
if (quads_post_meta.taboola_publisher_id) {
|
| 12261 |
-
_this.props.history.push(new_url);
|
| 12262 |
-
} else {
|
| 12263 |
-
_this.setState({
|
| 12264 |
-
show_form_error: true
|
| 12265 |
-
});
|
| 12266 |
-
}
|
| 12267 |
-
|
| 12268 |
-
break;
|
| 12269 |
-
|
| 12270 |
-
case 'media_net':
|
| 12271 |
-
if (quads_post_meta.data_cid && quads_post_meta.data_crid) {
|
| 12272 |
-
_this.props.history.push(new_url);
|
| 12273 |
-
} else {
|
| 12274 |
-
_this.setState({
|
| 12275 |
-
show_form_error: true
|
| 12276 |
-
});
|
| 12277 |
-
}
|
| 12278 |
-
|
| 12279 |
-
break;
|
| 12280 |
-
|
| 12281 |
-
case 'mediavine':
|
| 12282 |
-
if (quads_post_meta.mediavine_site_id) {
|
| 12283 |
-
_this.props.history.push(new_url);
|
| 12284 |
-
} else {
|
| 12285 |
-
_this.setState({
|
| 12286 |
-
show_form_error: true
|
| 12287 |
-
});
|
| 12288 |
-
}
|
| 12289 |
-
|
| 12290 |
-
break;
|
| 12291 |
-
|
| 12292 |
-
case 'outbrain':
|
| 12293 |
-
if (quads_post_meta.outbrain_widget_ids) {
|
| 12294 |
-
_this.props.history.push(new_url);
|
| 12295 |
-
} else {
|
| 12296 |
-
_this.setState({
|
| 12297 |
-
show_form_error: true
|
| 12298 |
-
});
|
| 12299 |
-
}
|
| 12300 |
-
|
| 12301 |
-
break;
|
| 12302 |
-
|
| 12303 |
-
case 'background_ad':
|
| 12304 |
-
if (quads_post_meta.image_src && quads_post_meta.image_redirect_url) {
|
| 12305 |
-
_this.props.history.push(new_url);
|
| 12306 |
-
} else {
|
| 12307 |
-
_this.setState({
|
| 12308 |
-
show_form_error: true
|
| 12309 |
-
});
|
| 12310 |
-
}
|
| 12311 |
-
|
| 12312 |
-
break;
|
| 12313 |
-
|
| 12314 |
-
default:
|
| 12315 |
-
break;
|
| 12316 |
-
}
|
| 12317 |
-
} else if (page.path == 'wizard_target') {
|
| 12318 |
-
new_url += 'path=wizard_publish';
|
| 12319 |
-
|
| 12320 |
-
if (quads_post_meta.position && visibility_include.length > 0) {
|
| 12321 |
-
_this.props.history.push(new_url);
|
| 12322 |
-
} else {
|
| 12323 |
-
_this.setState({
|
| 12324 |
-
show_form_error: true
|
| 12325 |
-
});
|
| 12326 |
-
}
|
| 12327 |
-
}
|
| 12328 |
-
});
|
| 12329 |
-
|
| 12330 |
-
_defineProperty(_assertThisInitialized(_this), "movePrev", function (e) {
|
| 12331 |
-
var page = _queryString["default"].parse(window.location.search);
|
| 12332 |
-
|
| 12333 |
-
var new_url = _this.props.location.pathname + _this.removePartofQueryString(_this.props.location.search, 'path=wizard');
|
| 12334 |
-
|
| 12335 |
-
if (page.path == 'wizard_publish') {
|
| 12336 |
-
new_url += 'path=wizard_target';
|
| 12337 |
-
} else if (page.path == 'wizard_target') {
|
| 12338 |
-
new_url += 'path=wizard';
|
| 12339 |
-
}
|
| 12340 |
-
|
| 12341 |
-
_this.props.history.push(new_url);
|
| 12342 |
-
});
|
| 12343 |
-
|
| 12344 |
-
_defineProperty(_assertThisInitialized(_this), "closeNotice", function () {
|
| 12345 |
-
_this.setState({
|
| 12346 |
-
quads_is_saved: false
|
| 12347 |
-
});
|
| 12348 |
-
});
|
| 12349 |
-
|
| 12350 |
-
_this.state = {
|
| 12351 |
-
show_form_error: false,
|
| 12352 |
-
quads_include_toggle: false,
|
| 12353 |
-
Quads_confirm_box: false,
|
| 12354 |
-
quads_exclude_toggle: false,
|
| 12355 |
-
quads_include_placeholder: 'Search for post types',
|
| 12356 |
-
quads_exclude_placeholder: 'Search for post types',
|
| 12357 |
-
quads_include_current_type: 'post_type',
|
| 12358 |
-
quads_exclude_current_type: 'post_type',
|
| 12359 |
-
quads_include_input_text: '',
|
| 12360 |
-
quads_exclude_input_text: '',
|
| 12361 |
-
quads_include_input_id: '',
|
| 12362 |
-
quads_exclude_input_id: '',
|
| 12363 |
-
quads_is_reload: true,
|
| 12364 |
-
quads_modal_value: '',
|
| 12365 |
-
quads_modal_error: '',
|
| 12366 |
-
quads_modal_open: false,
|
| 12367 |
-
quads_is_loaded: true,
|
| 12368 |
-
quads_is_visibility: true,
|
| 12369 |
-
quads_state_changed: false,
|
| 12370 |
-
quads_is_saved: false,
|
| 12371 |
-
quads_ad_status: '',
|
| 12372 |
-
quads_is_error: [],
|
| 12373 |
-
quads_post: {},
|
| 12374 |
-
quads_include_meta: {},
|
| 12375 |
-
quads_exclude_meta: {},
|
| 12376 |
-
quads_post_meta: {
|
| 12377 |
-
visibility_include: visibility_include_def_val,
|
| 12378 |
-
visibility_exclude: [],
|
| 12379 |
-
targeting_include: [],
|
| 12380 |
-
targeting_exclude: [],
|
| 12381 |
-
ad_id: '',
|
| 12382 |
-
ad_type: '',
|
| 12383 |
-
label: '',
|
| 12384 |
-
adsense_ad_type: 'display_ads',
|
| 12385 |
-
data_layout_key: '',
|
| 12386 |
-
g_data_ad_slot: '',
|
| 12387 |
-
g_data_ad_client: '',
|
| 12388 |
-
adsense_type: '',
|
| 12389 |
-
g_data_ad_width: '',
|
| 12390 |
-
g_data_ad_height: '',
|
| 12391 |
-
network_code: '',
|
| 12392 |
-
ad_unit_name: '',
|
| 12393 |
-
code: '',
|
| 12394 |
-
align: 3,
|
| 12395 |
-
ad_label_check: false,
|
| 12396 |
-
adlabel: '',
|
| 12397 |
-
ad_label_text: 'Advertisements',
|
| 12398 |
-
margin: 0,
|
| 12399 |
-
position: 'beginning_of_post',
|
| 12400 |
-
paragraph_number: 1,
|
| 12401 |
-
word_count_number: 100,
|
| 12402 |
-
image_number: 1,
|
| 12403 |
-
enabled_on_amp: false,
|
| 12404 |
-
enable_on_end_of_post: false,
|
| 12405 |
-
after_the_percentage_value: 50,
|
| 12406 |
-
ads_loop_number: 1,
|
| 12407 |
-
image_caption: false,
|
| 12408 |
-
include_dropdown: false,
|
| 12409 |
-
exclude_dropdown: false,
|
| 12410 |
-
random_ads_list: [],
|
| 12411 |
-
image_src: '',
|
| 12412 |
-
image_src_id: '',
|
| 12413 |
-
image_redirect_url: '',
|
| 12414 |
-
taboola_publisher_id: '',
|
| 12415 |
-
data_cid: '',
|
| 12416 |
-
data_crid: '',
|
| 12417 |
-
mediavine_site_id: '',
|
| 12418 |
-
outbrain_widget_ids: '',
|
| 12419 |
-
data_container: '',
|
| 12420 |
-
data_js_src: ''
|
| 12421 |
-
},
|
| 12422 |
-
quads_form_errors: {
|
| 12423 |
-
g_data_ad_slot: '',
|
| 12424 |
-
g_data_ad_client: '',
|
| 12425 |
-
code: '',
|
| 12426 |
-
label: '',
|
| 12427 |
-
position: '',
|
| 12428 |
-
visibility_include: [],
|
| 12429 |
-
random_ads_list: []
|
| 12430 |
-
}
|
| 12431 |
-
};
|
| 12432 |
-
_this.include_timer = null;
|
| 12433 |
-
_this.exclude_timer = null;
|
| 12434 |
-
_this.includedVal = [];
|
| 12435 |
-
_this.excludedVal = [];
|
| 12436 |
-
_this.includedVisibilityVal = visibility_include_def_val;
|
| 12437 |
-
_this.excludedVisibilityVal = [];
|
| 12438 |
-
return _this;
|
| 12439 |
-
}
|
| 12440 |
-
|
| 12441 |
-
_createClass(QuadsAdCreateRouter, [{
|
| 12442 |
-
key: "componentDidUpdate",
|
| 12443 |
-
value: function componentDidUpdate() {}
|
| 12444 |
-
}, {
|
| 12445 |
-
key: "componentDidMount",
|
| 12446 |
-
value: function componentDidMount() {
|
| 12447 |
-
var page = _queryString["default"].parse(window.location.search);
|
| 12448 |
-
|
| 12449 |
-
if (this.state.quads_is_reload && page.action == 'edit') {
|
| 12450 |
-
document.body.classList.add('quads_editpage');
|
| 12451 |
-
this.getAdDataById(page.post);
|
| 12452 |
-
this.setState({
|
| 12453 |
-
quads_is_reload: false
|
| 12454 |
-
});
|
| 12455 |
-
} else {
|
| 12456 |
-
document.body.classList.add('quads_addpage');
|
| 12457 |
-
}
|
| 12458 |
-
|
| 12459 |
-
this.setState(Object.assign(this.state.quads_post_meta, {
|
| 12460 |
-
ad_type: page.ad_type
|
| 12461 |
-
}));
|
| 12462 |
-
this.setState({
|
| 12463 |
-
quads_is_loaded: false
|
| 12464 |
-
});
|
| 12465 |
-
}
|
| 12466 |
-
}, {
|
| 12467 |
-
key: "render",
|
| 12468 |
-
value: function render() {
|
| 12469 |
-
var _this2 = this;
|
| 12470 |
-
|
| 12471 |
-
var location = this.props.location;
|
| 12472 |
-
|
| 12473 |
-
var page = _queryString["default"].parse(window.location.search);
|
| 12474 |
-
|
| 12475 |
-
var __ = wp.i18n.__;
|
| 12476 |
-
var post_meta = this.state.quads_post_meta;
|
| 12477 |
-
var show_form_error = this.state.show_form_error;
|
| 12478 |
-
|
| 12479 |
-
if (page.path == 'wizard_target' && this.state.quads_post_meta.label == '') {
|
| 12480 |
-
var json_data = {
|
| 12481 |
-
action: 'quads_ajax_add_ads'
|
| 12482 |
-
};
|
| 12483 |
-
var url = quads_localize_data.rest_url + "quads-route/get-add-next-id";
|
| 12484 |
-
fetch(url, {
|
| 12485 |
-
method: "post",
|
| 12486 |
-
headers: {
|
| 12487 |
-
'Accept': 'application/json',
|
| 12488 |
-
'Content-Type': 'application/json',
|
| 12489 |
-
'X-WP-Nonce': quads_localize_data.nonce
|
| 12490 |
-
},
|
| 12491 |
-
body: JSON.stringify(json_data)
|
| 12492 |
-
}).then(function (res) {
|
| 12493 |
-
return res.json();
|
| 12494 |
-
}).then(function (result) {
|
| 12495 |
-
var titleName = result.name;
|
| 12496 |
-
var quads_ad_old_id = 'ad' + result.id;
|
| 12497 |
-
|
| 12498 |
-
if (page.ad_type == 'random_ads') {
|
| 12499 |
-
titleName = result.name + " (Random)";
|
| 12500 |
-
}
|
| 12501 |
-
|
| 12502 |
-
_this2.setState(Object.assign(_this2.state.quads_post_meta, {
|
| 12503 |
-
label: titleName,
|
| 12504 |
-
quads_ad_old_id: quads_ad_old_id
|
| 12505 |
-
}));
|
| 12506 |
-
}, function (error) {});
|
| 12507 |
-
}
|
| 12508 |
-
|
| 12509 |
-
return /*#__PURE__*/_react["default"].createElement("div", null, this.state.quads_is_loaded ? /*#__PURE__*/_react["default"].createElement("div", {
|
| 12510 |
-
className: "quads-cover-spin"
|
| 12511 |
-
}) : '', /*#__PURE__*/_react["default"].createElement("form", {
|
| 12512 |
-
id: "quads-ad-form"
|
| 12513 |
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
| 12514 |
-
className: "material-icons quads-close-create-page"
|
| 12515 |
-
}, /*#__PURE__*/_react["default"].createElement("a", {
|
| 12516 |
-
onClick: this.quadsGoBack
|
| 12517 |
-
}, "close")), /*#__PURE__*/_react["default"].createElement("div", {
|
| 12518 |
-
className: "quads-ad-config-header"
|
| 12519 |
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
| 12520 |
-
className: "quads-ad-input"
|
| 12521 |
-
}, /*#__PURE__*/_react["default"].createElement("input", {
|
| 12522 |
-
value: this.state.quads_post_meta.label,
|
| 12523 |
-
type: "text",
|
| 12524 |
-
onChange: this.adFormChangeHandler,
|
| 12525 |
-
name: "label",
|
| 12526 |
-
placeholder: __('Name your ad unit', 'quick-adsense-reloaded')
|
| 12527 |
-
}), /*#__PURE__*/_react["default"].createElement("input", {
|
| 12528 |
-
type: "hidden",
|
| 12529 |
-
name: "ad_id",
|
| 12530 |
-
value: this.state.quads_post_meta.ad_id
|
| 12531 |
-
}), /*#__PURE__*/_react["default"].createElement("input", {
|
| 12532 |
-
type: "hidden",
|
| 12533 |
-
name: "ad_type",
|
| 12534 |
-
value: this.state.quads_post_meta.ad_type
|
| 12535 |
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
| 12536 |
-
className: "quads-ad-config-menu"
|
| 12537 |
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
| 12538 |
-
className: "quads-ad-config-tab"
|
| 12539 |
-
}, /*#__PURE__*/_react["default"].createElement("ul", null, /*#__PURE__*/_react["default"].createElement("li", {
|
| 12540 |
-
className: "".concat(page.path == 'wizard' ? 'quads-selected' : '')
|
| 12541 |
-
}, __('Configuration', 'quick-adsense-reloaded')), /*#__PURE__*/_react["default"].createElement("li", {
|
| 12542 |
-
className: "".concat(page.path == 'wizard_target' ? 'quads-selected' : '')
|
| 12543 |
-
}, __('Targeting', 'quick-adsense-reloaded')), /*#__PURE__*/_react["default"].createElement("li", {
|
| 12544 |
-
className: "".concat(page.path == 'wizard_publish' ? 'quads-selected' : '')
|
| 12545 |
-
}, __('Publish', 'quick-adsense-reloaded')))))), /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
|
| 12546 |
-
render: function render(props) {
|
| 12547 |
-
switch (page.path) {
|
| 12548 |
-
case "wizard":
|
| 12549 |
-
return /*#__PURE__*/_react["default"].createElement(_QuadsAdConfig["default"], _extends({}, props, {
|
| 12550 |
-
moveNext: _this2.moveNext,
|
| 12551 |
-
parentState: _this2.state,
|
| 12552 |
-
adFormChangeHandler: _this2.adFormChangeHandler,
|
| 12553 |
-
modalValue: _this2.modalValue,
|
| 12554 |
-
getAdsenseCode: _this2.getAdsenseCode,
|
| 12555 |
-
openModal: _this2.openModal,
|
| 12556 |
-
closeModal: _this2.closeModal,
|
| 12557 |
-
updateRandomAds: _this2.updateRandomAds
|
| 12558 |
-
}));
|
| 12559 |
-
|
| 12560 |
-
case "wizard_target":
|
| 12561 |
-
return /*#__PURE__*/_react["default"].createElement(_QuadsAdTargeting["default"], _extends({}, props, _defineProperty({
|
| 12562 |
-
parentState: _this2.state,
|
| 12563 |
-
updateVisitorTarget: _this2.updateVisitorTarget,
|
| 12564 |
-
updateVisibility: _this2.updateVisibility,
|
| 12565 |
-
adFormChangeHandler: _this2.adFormChangeHandler,
|
| 12566 |
-
movePrev: _this2.movePrev,
|
| 12567 |
-
publish: _this2.publish,
|
| 12568 |
-
onListSearchHover: _this2.onListSearchHover
|
| 12569 |
-
}, "updateVisitorTarget", _this2.updateVisitorTarget)));
|
| 12570 |
-
|
| 12571 |
-
case "wizard_publish":
|
| 12572 |
-
return /*#__PURE__*/_react["default"].createElement(_QuadsAdPublish["default"], _extends({}, props, {
|
| 12573 |
-
parentState: _this2.state,
|
| 12574 |
-
adFormChangeHandler: _this2.adFormChangeHandler,
|
| 12575 |
-
movePrev: _this2.movePrev
|
| 12576 |
-
}));
|
| 12577 |
-
|
| 12578 |
-
default:
|
| 12579 |
-
return null;
|
| 12580 |
-
}
|
| 12581 |
-
}
|
| 12582 |
-
})));
|
| 12583 |
-
}
|
| 12584 |
-
}]);
|
| 12585 |
-
|
| 12586 |
-
return QuadsAdCreateRouter;
|
| 12587 |
-
}(_react.Component);
|
| 12588 |
-
|
| 12589 |
-
var _default = QuadsAdCreateRouter;
|
| 12590 |
-
exports["default"] = _default;
|
| 12591 |
-
|
| 12592 |
-
/***/ }),
|
| 12593 |
-
/* 191 */
|
| 12594 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12595 |
-
|
| 12596 |
-
"use strict";
|
| 12597 |
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
| 12598 |
-
/* harmony default export */ __webpack_exports__["a"] = (hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__');
|
| 12599 |
-
|
| 12600 |
-
/***/ }),
|
| 12601 |
-
/* 192 */
|
| 12602 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12603 |
-
|
| 12604 |
-
"use strict";
|
| 12605 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createStyles__ = __webpack_require__(443);
|
| 12606 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createStyles__["a"]; });
|
| 12607 |
-
|
| 12608 |
-
|
| 12609 |
-
/***/ }),
|
| 12610 |
-
/* 193 */
|
| 12611 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12612 |
-
|
| 12613 |
-
"use strict";
|
| 12614 |
-
/* unused harmony export isBrowser */
|
| 12615 |
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
| 12616 |
-
|
| 12617 |
-
var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9;
|
| 12618 |
-
|
| 12619 |
-
/* harmony default export */ __webpack_exports__["a"] = (isBrowser);
|
| 12620 |
-
|
| 12621 |
-
|
| 12622 |
-
/***/ }),
|
| 12623 |
-
/* 194 */
|
| 12624 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12625 |
-
|
| 12626 |
-
"use strict";
|
| 12627 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _arrayLikeToArray;
|
| 12628 |
-
function _arrayLikeToArray(arr, len) {
|
| 12629 |
-
if (len == null || len > arr.length) len = arr.length;
|
| 12630 |
-
|
| 12631 |
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
| 12632 |
-
arr2[i] = arr[i];
|
| 12633 |
-
}
|
| 12634 |
-
|
| 12635 |
-
return arr2;
|
| 12636 |
-
}
|
| 12637 |
-
|
| 12638 |
-
/***/ }),
|
| 12639 |
-
/* 195 */
|
| 12640 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12641 |
-
|
| 12642 |
-
"use strict";
|
| 12643 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _iterableToArray;
|
| 12644 |
-
function _iterableToArray(iter) {
|
| 12645 |
-
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
| 12646 |
-
}
|
| 12647 |
-
|
| 12648 |
-
/***/ }),
|
| 12649 |
-
/* 196 */
|
| 12650 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12651 |
-
|
| 12652 |
-
"use strict";
|
| 12653 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 12654 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 12655 |
-
|
| 12656 |
-
var ThemeContext = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null);
|
| 12657 |
-
|
| 12658 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 12659 |
-
ThemeContext.displayName = 'ThemeContext';
|
| 12660 |
-
}
|
| 12661 |
-
|
| 12662 |
-
/* harmony default export */ __webpack_exports__["a"] = (ThemeContext);
|
| 12663 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 12664 |
-
|
| 12665 |
-
/***/ }),
|
| 12666 |
-
/* 197 */
|
| 12667 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12668 |
-
|
| 12669 |
-
"use strict";
|
| 12670 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export sheetsManager */
|
| 12671 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StylesContext; });
|
| 12672 |
-
/* harmony export (immutable) */ __webpack_exports__["b"] = StylesProvider;
|
| 12673 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 12674 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
|
| 12675 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
|
| 12676 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
|
| 12677 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
|
| 12678 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
|
| 12679 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ui_utils__ = __webpack_require__(7);
|
| 12680 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createGenerateClassName__ = __webpack_require__(78);
|
| 12681 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_jss__ = __webpack_require__(46);
|
| 12682 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__jssPreset__ = __webpack_require__(121);
|
| 12683 |
-
|
| 12684 |
-
|
| 12685 |
-
|
| 12686 |
-
|
| 12687 |
-
|
| 12688 |
-
|
| 12689 |
-
|
| 12690 |
-
// Default JSS instance.
|
| 12691 |
-
|
| 12692 |
-
var jss = Object(__WEBPACK_IMPORTED_MODULE_6_jss__["c" /* create */])(Object(__WEBPACK_IMPORTED_MODULE_7__jssPreset__["a" /* default */])()); // Use a singleton or the provided one by the context.
|
| 12693 |
-
//
|
| 12694 |
-
// The counter-based approach doesn't tolerate any mistake.
|
| 12695 |
-
// It's much safer to use the same counter everywhere.
|
| 12696 |
-
|
| 12697 |
-
var generateClassName = Object(__WEBPACK_IMPORTED_MODULE_5__createGenerateClassName__["a" /* default */])(); // Exported for test purposes
|
| 12698 |
-
|
| 12699 |
-
var sheetsManager = new Map();
|
| 12700 |
-
var defaultOptions = {
|
| 12701 |
-
disableGeneration: false,
|
| 12702 |
-
generateClassName: generateClassName,
|
| 12703 |
-
jss: jss,
|
| 12704 |
-
sheetsCache: null,
|
| 12705 |
-
sheetsManager: sheetsManager,
|
| 12706 |
-
sheetsRegistry: null
|
| 12707 |
-
};
|
| 12708 |
-
var StylesContext = __WEBPACK_IMPORTED_MODULE_2_react___default.a.createContext(defaultOptions);
|
| 12709 |
-
|
| 12710 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 12711 |
-
StylesContext.displayName = 'StylesContext';
|
| 12712 |
-
}
|
| 12713 |
-
|
| 12714 |
-
var injectFirstNode;
|
| 12715 |
-
function StylesProvider(props) {
|
| 12716 |
-
var children = props.children,
|
| 12717 |
-
_props$injectFirst = props.injectFirst,
|
| 12718 |
-
injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst,
|
| 12719 |
-
_props$disableGenerat = props.disableGeneration,
|
| 12720 |
-
disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat,
|
| 12721 |
-
localOptions = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "injectFirst", "disableGeneration"]);
|
| 12722 |
-
|
| 12723 |
-
var outerOptions = __WEBPACK_IMPORTED_MODULE_2_react___default.a.useContext(StylesContext);
|
| 12724 |
-
|
| 12725 |
-
var context = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, outerOptions), {}, {
|
| 12726 |
-
disableGeneration: disableGeneration
|
| 12727 |
-
}, localOptions);
|
| 12728 |
-
|
| 12729 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 12730 |
-
if (typeof window === 'undefined' && !context.sheetsManager) {
|
| 12731 |
-
console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');
|
| 12732 |
-
}
|
| 12733 |
-
}
|
| 12734 |
-
|
| 12735 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 12736 |
-
if (context.jss.options.insertionPoint && injectFirst) {
|
| 12737 |
-
console.error('Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
|
| 12738 |
-
}
|
| 12739 |
-
}
|
| 12740 |
-
|
| 12741 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 12742 |
-
if (injectFirst && localOptions.jss) {
|
| 12743 |
-
console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');
|
| 12744 |
-
}
|
| 12745 |
-
}
|
| 12746 |
-
|
| 12747 |
-
if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {
|
| 12748 |
-
if (!injectFirstNode) {
|
| 12749 |
-
var head = document.head;
|
| 12750 |
-
injectFirstNode = document.createComment('mui-inject-first');
|
| 12751 |
-
head.insertBefore(injectFirstNode, head.firstChild);
|
| 12752 |
-
}
|
| 12753 |
-
|
| 12754 |
-
context.jss = Object(__WEBPACK_IMPORTED_MODULE_6_jss__["c" /* create */])({
|
| 12755 |
-
plugins: Object(__WEBPACK_IMPORTED_MODULE_7__jssPreset__["a" /* default */])().plugins,
|
| 12756 |
-
insertionPoint: injectFirstNode
|
| 12757 |
-
});
|
| 12758 |
-
}
|
| 12759 |
-
|
| 12760 |
-
return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(StylesContext.Provider, {
|
| 12761 |
-
value: context
|
| 12762 |
-
}, children);
|
| 12763 |
-
}
|
| 12764 |
-
process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = {
|
| 12765 |
-
/**
|
| 12766 |
-
* Your component tree.
|
| 12767 |
-
*/
|
| 12768 |
-
children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node.isRequired,
|
| 12769 |
-
|
| 12770 |
-
/**
|
| 12771 |
-
* You can disable the generation of the styles with this option.
|
| 12772 |
-
* It can be useful when traversing the React tree outside of the HTML
|
| 12773 |
-
* rendering step on the server.
|
| 12774 |
-
* Let's say you are using react-apollo to extract all
|
| 12775 |
-
* the queries made by the interface server-side - you can significantly speed up the traversal with this prop.
|
| 12776 |
-
*/
|
| 12777 |
-
disableGeneration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
|
| 12778 |
-
|
| 12779 |
-
/**
|
| 12780 |
-
* JSS's class name generator.
|
| 12781 |
-
*/
|
| 12782 |
-
generateClassName: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
|
| 12783 |
-
|
| 12784 |
-
/**
|
| 12785 |
-
* By default, the styles are injected last in the <head> element of the page.
|
| 12786 |
-
* As a result, they gain more specificity than any other style sheet.
|
| 12787 |
-
* If you want to override Material-UI's styles, set this prop.
|
| 12788 |
-
*/
|
| 12789 |
-
injectFirst: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
|
| 12790 |
-
|
| 12791 |
-
/**
|
| 12792 |
-
* JSS's instance.
|
| 12793 |
-
*/
|
| 12794 |
-
jss: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 12795 |
-
|
| 12796 |
-
/**
|
| 12797 |
-
* @ignore
|
| 12798 |
-
*/
|
| 12799 |
-
serverGenerateClassName: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
|
| 12800 |
-
|
| 12801 |
-
/**
|
| 12802 |
-
* @ignore
|
| 12803 |
-
*
|
| 12804 |
-
* Beta feature.
|
| 12805 |
-
*
|
| 12806 |
-
* Cache for the sheets.
|
| 12807 |
-
*/
|
| 12808 |
-
sheetsCache: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 12809 |
-
|
| 12810 |
-
/**
|
| 12811 |
-
* @ignore
|
| 12812 |
-
*
|
| 12813 |
-
* The sheetsManager is used to deduplicate style sheet injection in the page.
|
| 12814 |
-
* It's deduplicating using the (theme, styles) couple.
|
| 12815 |
-
* On the server, you should provide a new instance for each request.
|
| 12816 |
-
*/
|
| 12817 |
-
sheetsManager: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
|
| 12818 |
-
|
| 12819 |
-
/**
|
| 12820 |
-
* @ignore
|
| 12821 |
-
*
|
| 12822 |
-
* Collect the sheets.
|
| 12823 |
-
*/
|
| 12824 |
-
sheetsRegistry: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
|
| 12825 |
-
} : void 0;
|
| 12826 |
-
|
| 12827 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 12828 |
-
process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = Object(__WEBPACK_IMPORTED_MODULE_4__material_ui_utils__["f" /* exactProp */])(StylesProvider.propTypes) : void 0;
|
| 12829 |
-
}
|
| 12830 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 12831 |
-
|
| 12832 |
-
/***/ }),
|
| 12833 |
-
/* 198 */
|
| 12834 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12835 |
-
|
| 12836 |
-
"use strict";
|
| 12837 |
-
// We use the same empty object to ref count the styles that don't need a theme object.
|
| 12838 |
-
var noopTheme = {};
|
| 12839 |
-
/* harmony default export */ __webpack_exports__["a"] = (noopTheme);
|
| 12840 |
-
|
| 12841 |
-
/***/ }),
|
| 12842 |
-
/* 199 */
|
| 12843 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12844 |
-
|
| 12845 |
-
"use strict";
|
| 12846 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ServerStyleSheets__ = __webpack_require__(464);
|
| 12847 |
-
/* unused harmony reexport default */
|
| 12848 |
-
|
| 12849 |
-
|
| 12850 |
-
/***/ }),
|
| 12851 |
-
/* 200 */
|
| 12852 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12853 |
-
|
| 12854 |
-
"use strict";
|
| 12855 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__styled__ = __webpack_require__(465);
|
| 12856 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__styled__["a"]; });
|
| 12857 |
-
|
| 12858 |
-
|
| 12859 |
-
/***/ }),
|
| 12860 |
-
/* 201 */
|
| 12861 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12862 |
-
|
| 12863 |
-
"use strict";
|
| 12864 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ThemeProvider__ = __webpack_require__(466);
|
| 12865 |
-
/* unused harmony reexport default */
|
| 12866 |
-
|
| 12867 |
-
|
| 12868 |
-
/***/ }),
|
| 12869 |
-
/* 202 */
|
| 12870 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12871 |
-
|
| 12872 |
-
"use strict";
|
| 12873 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withStyles__ = __webpack_require__(467);
|
| 12874 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withStyles__["a"]; });
|
| 12875 |
-
|
| 12876 |
-
|
| 12877 |
-
/***/ }),
|
| 12878 |
-
/* 203 */
|
| 12879 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12880 |
-
|
| 12881 |
-
"use strict";
|
| 12882 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withTheme__ = __webpack_require__(204);
|
| 12883 |
-
/* unused harmony reexport default */
|
| 12884 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withTheme__["a"]; });
|
| 12885 |
-
|
| 12886 |
-
|
| 12887 |
-
|
| 12888 |
-
/***/ }),
|
| 12889 |
-
/* 204 */
|
| 12890 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12891 |
-
|
| 12892 |
-
"use strict";
|
| 12893 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = withThemeCreator;
|
| 12894 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 12895 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
|
| 12896 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
|
| 12897 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
|
| 12898 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
|
| 12899 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
|
| 12900 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__ = __webpack_require__(82);
|
| 12901 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__);
|
| 12902 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__ = __webpack_require__(7);
|
| 12903 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__useTheme__ = __webpack_require__(56);
|
| 12904 |
-
|
| 12905 |
-
|
| 12906 |
-
|
| 12907 |
-
|
| 12908 |
-
|
| 12909 |
-
|
| 12910 |
-
|
| 12911 |
-
function withThemeCreator() {
|
| 12912 |
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
| 12913 |
-
var defaultTheme = options.defaultTheme;
|
| 12914 |
-
|
| 12915 |
-
var withTheme = function withTheme(Component) {
|
| 12916 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 12917 |
-
if (Component === undefined) {
|
| 12918 |
-
throw new Error(['You are calling withTheme(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\n'));
|
| 12919 |
-
}
|
| 12920 |
-
}
|
| 12921 |
-
|
| 12922 |
-
var WithTheme = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef(function WithTheme(props, ref) {
|
| 12923 |
-
var innerRef = props.innerRef,
|
| 12924 |
-
other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["innerRef"]);
|
| 12925 |
-
|
| 12926 |
-
var theme = Object(__WEBPACK_IMPORTED_MODULE_6__useTheme__["a" /* default */])() || defaultTheme;
|
| 12927 |
-
return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(Component, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 12928 |
-
theme: theme,
|
| 12929 |
-
ref: innerRef || ref
|
| 12930 |
-
}, other));
|
| 12931 |
-
});
|
| 12932 |
-
process.env.NODE_ENV !== "production" ? WithTheme.propTypes = {
|
| 12933 |
-
/**
|
| 12934 |
-
* Use that prop to pass a ref to the decorated component.
|
| 12935 |
-
* @deprecated
|
| 12936 |
-
*/
|
| 12937 |
-
innerRef: Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["b" /* chainPropTypes */])(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object]), function (props) {
|
| 12938 |
-
if (props.innerRef == null) {
|
| 12939 |
-
return null;
|
| 12940 |
-
}
|
| 12941 |
-
|
| 12942 |
-
return new Error('Material-UI: The `innerRef` prop is deprecated and will be removed in v5. ' + 'Refs are now automatically forwarded to the inner component.');
|
| 12943 |
-
})
|
| 12944 |
-
} : void 0;
|
| 12945 |
-
|
| 12946 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 12947 |
-
WithTheme.displayName = "WithTheme(".concat(Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["h" /* getDisplayName */])(Component), ")");
|
| 12948 |
-
}
|
| 12949 |
-
|
| 12950 |
-
__WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default()(WithTheme, Component);
|
| 12951 |
-
|
| 12952 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 12953 |
-
// Exposed for test purposes.
|
| 12954 |
-
WithTheme.Naked = Component;
|
| 12955 |
-
}
|
| 12956 |
-
|
| 12957 |
-
return WithTheme;
|
| 12958 |
-
};
|
| 12959 |
-
|
| 12960 |
-
return withTheme;
|
| 12961 |
-
} // Provide the theme object as a prop to the input component.
|
| 12962 |
-
// It's an alternative API to useTheme().
|
| 12963 |
-
// We encourage the usage of useTheme() where possible.
|
| 12964 |
-
|
| 12965 |
-
var withTheme = withThemeCreator();
|
| 12966 |
-
/* unused harmony default export */ var _unused_webpack_default_export = (withTheme);
|
| 12967 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 12968 |
-
|
| 12969 |
-
/***/ }),
|
| 12970 |
-
/* 205 */
|
| 12971 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 12972 |
-
|
| 12973 |
-
"use strict";
|
| 12974 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return keys; });
|
| 12975 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = createBreakpoints;
|
| 12976 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
|
| 12977 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
|
| 12978 |
-
|
| 12979 |
-
|
| 12980 |
-
// Sorted ASC by size. That's important.
|
| 12981 |
-
// It can't be configured as it's used statically for propTypes.
|
| 12982 |
-
var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.
|
| 12983 |
-
|
| 12984 |
-
function createBreakpoints(breakpoints) {
|
| 12985 |
-
var _breakpoints$values = breakpoints.values,
|
| 12986 |
-
values = _breakpoints$values === void 0 ? {
|
| 12987 |
-
xs: 0,
|
| 12988 |
-
sm: 600,
|
| 12989 |
-
md: 960,
|
| 12990 |
-
lg: 1280,
|
| 12991 |
-
xl: 1920
|
| 12992 |
-
} : _breakpoints$values,
|
| 12993 |
-
_breakpoints$unit = breakpoints.unit,
|
| 12994 |
-
unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,
|
| 12995 |
-
_breakpoints$step = breakpoints.step,
|
| 12996 |
-
step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,
|
| 12997 |
-
other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(breakpoints, ["values", "unit", "step"]);
|
| 12998 |
-
|
| 12999 |
-
function up(key) {
|
| 13000 |
-
var value = typeof values[key] === 'number' ? values[key] : key;
|
| 13001 |
-
return "@media (min-width:".concat(value).concat(unit, ")");
|
| 13002 |
-
}
|
| 13003 |
-
|
| 13004 |
-
function down(key) {
|
| 13005 |
-
var endIndex = keys.indexOf(key) + 1;
|
| 13006 |
-
var upperbound = values[keys[endIndex]];
|
| 13007 |
-
|
| 13008 |
-
if (endIndex === keys.length) {
|
| 13009 |
-
// xl down applies to all sizes
|
| 13010 |
-
return up('xs');
|
| 13011 |
-
}
|
| 13012 |
-
|
| 13013 |
-
var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;
|
| 13014 |
-
return "@media (max-width:".concat(value - step / 100).concat(unit, ")");
|
| 13015 |
-
}
|
| 13016 |
-
|
| 13017 |
-
function between(start, end) {
|
| 13018 |
-
var endIndex = keys.indexOf(end);
|
| 13019 |
-
|
| 13020 |
-
if (endIndex === keys.length - 1) {
|
| 13021 |
-
return up(start);
|
| 13022 |
-
}
|
| 13023 |
-
|
| 13024 |
-
return "@media (min-width:".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, ")");
|
| 13025 |
-
}
|
| 13026 |
-
|
| 13027 |
-
function only(key) {
|
| 13028 |
-
return between(key, key);
|
| 13029 |
-
}
|
| 13030 |
-
|
| 13031 |
-
function width(key) {
|
| 13032 |
-
return values[key];
|
| 13033 |
-
}
|
| 13034 |
-
|
| 13035 |
-
return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
|
| 13036 |
-
keys: keys,
|
| 13037 |
-
values: values,
|
| 13038 |
-
up: up,
|
| 13039 |
-
down: down,
|
| 13040 |
-
between: between,
|
| 13041 |
-
only: only,
|
| 13042 |
-
width: width
|
| 13043 |
-
}, other);
|
| 13044 |
-
}
|
| 13045 |
-
|
| 13046 |
-
/***/ }),
|
| 13047 |
-
/* 206 */
|
| 13048 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13049 |
-
|
| 13050 |
-
"use strict";
|
| 13051 |
-
var common = {
|
| 13052 |
-
black: '#000',
|
| 13053 |
-
white: '#fff'
|
| 13054 |
-
};
|
| 13055 |
-
/* harmony default export */ __webpack_exports__["a"] = (common);
|
| 13056 |
-
|
| 13057 |
-
/***/ }),
|
| 13058 |
-
/* 207 */
|
| 13059 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13060 |
-
|
| 13061 |
-
"use strict";
|
| 13062 |
-
var grey = {
|
| 13063 |
-
50: '#fafafa',
|
| 13064 |
-
100: '#f5f5f5',
|
| 13065 |
-
200: '#eeeeee',
|
| 13066 |
-
300: '#e0e0e0',
|
| 13067 |
-
400: '#bdbdbd',
|
| 13068 |
-
500: '#9e9e9e',
|
| 13069 |
-
600: '#757575',
|
| 13070 |
-
700: '#616161',
|
| 13071 |
-
800: '#424242',
|
| 13072 |
-
900: '#212121',
|
| 13073 |
-
A100: '#d5d5d5',
|
| 13074 |
-
A200: '#aaaaaa',
|
| 13075 |
-
A400: '#303030',
|
| 13076 |
-
A700: '#616161'
|
| 13077 |
-
};
|
| 13078 |
-
/* harmony default export */ __webpack_exports__["a"] = (grey);
|
| 13079 |
-
|
| 13080 |
-
/***/ }),
|
| 13081 |
-
/* 208 */
|
| 13082 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13083 |
-
|
| 13084 |
-
"use strict";
|
| 13085 |
-
var indigo = {
|
| 13086 |
-
50: '#e8eaf6',
|
| 13087 |
-
100: '#c5cae9',
|
| 13088 |
-
200: '#9fa8da',
|
| 13089 |
-
300: '#7986cb',
|
| 13090 |
-
400: '#5c6bc0',
|
| 13091 |
-
500: '#3f51b5',
|
| 13092 |
-
600: '#3949ab',
|
| 13093 |
-
700: '#303f9f',
|
| 13094 |
-
800: '#283593',
|
| 13095 |
-
900: '#1a237e',
|
| 13096 |
-
A100: '#8c9eff',
|
| 13097 |
-
A200: '#536dfe',
|
| 13098 |
-
A400: '#3d5afe',
|
| 13099 |
-
A700: '#304ffe'
|
| 13100 |
-
};
|
| 13101 |
-
/* harmony default export */ __webpack_exports__["a"] = (indigo);
|
| 13102 |
-
|
| 13103 |
-
/***/ }),
|
| 13104 |
-
/* 209 */
|
| 13105 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13106 |
-
|
| 13107 |
-
"use strict";
|
| 13108 |
-
var pink = {
|
| 13109 |
-
50: '#fce4ec',
|
| 13110 |
-
100: '#f8bbd0',
|
| 13111 |
-
200: '#f48fb1',
|
| 13112 |
-
300: '#f06292',
|
| 13113 |
-
400: '#ec407a',
|
| 13114 |
-
500: '#e91e63',
|
| 13115 |
-
600: '#d81b60',
|
| 13116 |
-
700: '#c2185b',
|
| 13117 |
-
800: '#ad1457',
|
| 13118 |
-
900: '#880e4f',
|
| 13119 |
-
A100: '#ff80ab',
|
| 13120 |
-
A200: '#ff4081',
|
| 13121 |
-
A400: '#f50057',
|
| 13122 |
-
A700: '#c51162'
|
| 13123 |
-
};
|
| 13124 |
-
/* harmony default export */ __webpack_exports__["a"] = (pink);
|
| 13125 |
-
|
| 13126 |
-
/***/ }),
|
| 13127 |
-
/* 210 */
|
| 13128 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13129 |
-
|
| 13130 |
-
"use strict";
|
| 13131 |
-
var red = {
|
| 13132 |
-
50: '#ffebee',
|
| 13133 |
-
100: '#ffcdd2',
|
| 13134 |
-
200: '#ef9a9a',
|
| 13135 |
-
300: '#e57373',
|
| 13136 |
-
400: '#ef5350',
|
| 13137 |
-
500: '#f44336',
|
| 13138 |
-
600: '#e53935',
|
| 13139 |
-
700: '#d32f2f',
|
| 13140 |
-
800: '#c62828',
|
| 13141 |
-
900: '#b71c1c',
|
| 13142 |
-
A100: '#ff8a80',
|
| 13143 |
-
A200: '#ff5252',
|
| 13144 |
-
A400: '#ff1744',
|
| 13145 |
-
A700: '#d50000'
|
| 13146 |
-
};
|
| 13147 |
-
/* harmony default export */ __webpack_exports__["a"] = (red);
|
| 13148 |
-
|
| 13149 |
-
/***/ }),
|
| 13150 |
-
/* 211 */
|
| 13151 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13152 |
-
|
| 13153 |
-
"use strict";
|
| 13154 |
-
var orange = {
|
| 13155 |
-
50: '#fff3e0',
|
| 13156 |
-
100: '#ffe0b2',
|
| 13157 |
-
200: '#ffcc80',
|
| 13158 |
-
300: '#ffb74d',
|
| 13159 |
-
400: '#ffa726',
|
| 13160 |
-
500: '#ff9800',
|
| 13161 |
-
600: '#fb8c00',
|
| 13162 |
-
700: '#f57c00',
|
| 13163 |
-
800: '#ef6c00',
|
| 13164 |
-
900: '#e65100',
|
| 13165 |
-
A100: '#ffd180',
|
| 13166 |
-
A200: '#ffab40',
|
| 13167 |
-
A400: '#ff9100',
|
| 13168 |
-
A700: '#ff6d00'
|
| 13169 |
-
};
|
| 13170 |
-
/* harmony default export */ __webpack_exports__["a"] = (orange);
|
| 13171 |
-
|
| 13172 |
-
/***/ }),
|
| 13173 |
-
/* 212 */
|
| 13174 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13175 |
-
|
| 13176 |
-
"use strict";
|
| 13177 |
-
var blue = {
|
| 13178 |
-
50: '#e3f2fd',
|
| 13179 |
-
100: '#bbdefb',
|
| 13180 |
-
200: '#90caf9',
|
| 13181 |
-
300: '#64b5f6',
|
| 13182 |
-
400: '#42a5f5',
|
| 13183 |
-
500: '#2196f3',
|
| 13184 |
-
600: '#1e88e5',
|
| 13185 |
-
700: '#1976d2',
|
| 13186 |
-
800: '#1565c0',
|
| 13187 |
-
900: '#0d47a1',
|
| 13188 |
-
A100: '#82b1ff',
|
| 13189 |
-
A200: '#448aff',
|
| 13190 |
-
A400: '#2979ff',
|
| 13191 |
-
A700: '#2962ff'
|
| 13192 |
-
};
|
| 13193 |
-
/* harmony default export */ __webpack_exports__["a"] = (blue);
|
| 13194 |
-
|
| 13195 |
-
/***/ }),
|
| 13196 |
-
/* 213 */
|
| 13197 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13198 |
-
|
| 13199 |
-
"use strict";
|
| 13200 |
-
var green = {
|
| 13201 |
-
50: '#e8f5e9',
|
| 13202 |
-
100: '#c8e6c9',
|
| 13203 |
-
200: '#a5d6a7',
|
| 13204 |
-
300: '#81c784',
|
| 13205 |
-
400: '#66bb6a',
|
| 13206 |
-
500: '#4caf50',
|
| 13207 |
-
600: '#43a047',
|
| 13208 |
-
700: '#388e3c',
|
| 13209 |
-
800: '#2e7d32',
|
| 13210 |
-
900: '#1b5e20',
|
| 13211 |
-
A100: '#b9f6ca',
|
| 13212 |
-
A200: '#69f0ae',
|
| 13213 |
-
A400: '#00e676',
|
| 13214 |
-
A700: '#00c853'
|
| 13215 |
-
};
|
| 13216 |
-
/* harmony default export */ __webpack_exports__["a"] = (green);
|
| 13217 |
-
|
| 13218 |
-
/***/ }),
|
| 13219 |
-
/* 214 */
|
| 13220 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13221 |
-
|
| 13222 |
-
"use strict";
|
| 13223 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__borders__ = __webpack_require__(215);
|
| 13224 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__borders__["a"]; });
|
| 13225 |
-
/* unused harmony namespace reexport */
|
| 13226 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__breakpoints__ = __webpack_require__(127);
|
| 13227 |
-
/* unused harmony reexport breakpoints */
|
| 13228 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__compose__ = __webpack_require__(37);
|
| 13229 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__compose__["a"]; });
|
| 13230 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__css__ = __webpack_require__(474);
|
| 13231 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_3__css__["a"]; });
|
| 13232 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__display__ = __webpack_require__(475);
|
| 13233 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_4__display__["a"]; });
|
| 13234 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__flexbox__ = __webpack_require__(217);
|
| 13235 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_5__flexbox__["a"]; });
|
| 13236 |
-
/* unused harmony namespace reexport */
|
| 13237 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__grid__ = __webpack_require__(218);
|
| 13238 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_6__grid__["a"]; });
|
| 13239 |
-
/* unused harmony namespace reexport */
|
| 13240 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__palette__ = __webpack_require__(219);
|
| 13241 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__palette__["a"]; });
|
| 13242 |
-
/* unused harmony namespace reexport */
|
| 13243 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__positions__ = __webpack_require__(220);
|
| 13244 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__positions__["a"]; });
|
| 13245 |
-
/* unused harmony namespace reexport */
|
| 13246 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__shadows__ = __webpack_require__(476);
|
| 13247 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__shadows__["a"]; });
|
| 13248 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__sizing__ = __webpack_require__(221);
|
| 13249 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return __WEBPACK_IMPORTED_MODULE_10__sizing__["a"]; });
|
| 13250 |
-
/* unused harmony namespace reexport */
|
| 13251 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__spacing__ = __webpack_require__(222);
|
| 13252 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return __WEBPACK_IMPORTED_MODULE_11__spacing__["b"]; });
|
| 13253 |
-
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_11__spacing__["a"]; });
|
| 13254 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__style__ = __webpack_require__(33);
|
| 13255 |
-
/* unused harmony reexport style */
|
| 13256 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__typography__ = __webpack_require__(225);
|
| 13257 |
-
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return __WEBPACK_IMPORTED_MODULE_13__typography__["a"]; });
|
| 13258 |
-
/* unused harmony namespace reexport */
|
| 13259 |
-
/** @license Material-UI v4.9.14
|
| 13260 |
-
*
|
| 13261 |
-
* This source code is licensed under the MIT license found in the
|
| 13262 |
-
* LICENSE file in the root directory of this source tree.
|
| 13263 |
-
*/
|
| 13264 |
-
|
| 13265 |
-
|
| 13266 |
-
|
| 13267 |
-
|
| 13268 |
-
|
| 13269 |
-
|
| 13270 |
-
|
| 13271 |
-
|
| 13272 |
-
|
| 13273 |
-
|
| 13274 |
-
|
| 13275 |
-
|
| 13276 |
-
|
| 13277 |
-
|
| 13278 |
-
|
| 13279 |
-
|
| 13280 |
-
|
| 13281 |
-
|
| 13282 |
-
|
| 13283 |
-
|
| 13284 |
-
|
| 13285 |
-
|
| 13286 |
-
|
| 13287 |
-
/***/ }),
|
| 13288 |
-
/* 215 */
|
| 13289 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13290 |
-
|
| 13291 |
-
"use strict";
|
| 13292 |
-
/* unused harmony export border */
|
| 13293 |
-
/* unused harmony export borderTop */
|
| 13294 |
-
/* unused harmony export borderRight */
|
| 13295 |
-
/* unused harmony export borderBottom */
|
| 13296 |
-
/* unused harmony export borderLeft */
|
| 13297 |
-
/* unused harmony export borderColor */
|
| 13298 |
-
/* unused harmony export borderRadius */
|
| 13299 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(33);
|
| 13300 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(37);
|
| 13301 |
-
|
| 13302 |
-
|
| 13303 |
-
|
| 13304 |
-
function getBorder(value) {
|
| 13305 |
-
if (typeof value !== 'number') {
|
| 13306 |
-
return value;
|
| 13307 |
-
}
|
| 13308 |
-
|
| 13309 |
-
return "".concat(value, "px solid");
|
| 13310 |
-
}
|
| 13311 |
-
|
| 13312 |
-
var border = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13313 |
-
prop: 'border',
|
| 13314 |
-
themeKey: 'borders',
|
| 13315 |
-
transform: getBorder
|
| 13316 |
-
});
|
| 13317 |
-
var borderTop = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13318 |
-
prop: 'borderTop',
|
| 13319 |
-
themeKey: 'borders',
|
| 13320 |
-
transform: getBorder
|
| 13321 |
-
});
|
| 13322 |
-
var borderRight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13323 |
-
prop: 'borderRight',
|
| 13324 |
-
themeKey: 'borders',
|
| 13325 |
-
transform: getBorder
|
| 13326 |
-
});
|
| 13327 |
-
var borderBottom = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13328 |
-
prop: 'borderBottom',
|
| 13329 |
-
themeKey: 'borders',
|
| 13330 |
-
transform: getBorder
|
| 13331 |
-
});
|
| 13332 |
-
var borderLeft = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13333 |
-
prop: 'borderLeft',
|
| 13334 |
-
themeKey: 'borders',
|
| 13335 |
-
transform: getBorder
|
| 13336 |
-
});
|
| 13337 |
-
var borderColor = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13338 |
-
prop: 'borderColor',
|
| 13339 |
-
themeKey: 'palette'
|
| 13340 |
-
});
|
| 13341 |
-
var borderRadius = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13342 |
-
prop: 'borderRadius',
|
| 13343 |
-
themeKey: 'shape'
|
| 13344 |
-
});
|
| 13345 |
-
var borders = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderRadius);
|
| 13346 |
-
/* harmony default export */ __webpack_exports__["a"] = (borders);
|
| 13347 |
-
|
| 13348 |
-
/***/ }),
|
| 13349 |
-
/* 216 */
|
| 13350 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13351 |
-
|
| 13352 |
-
"use strict";
|
| 13353 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(2);
|
| 13354 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
|
| 13355 |
-
|
| 13356 |
-
var responsivePropType = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.array]) : {};
|
| 13357 |
-
/* harmony default export */ __webpack_exports__["a"] = (responsivePropType);
|
| 13358 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 13359 |
-
|
| 13360 |
-
/***/ }),
|
| 13361 |
-
/* 217 */
|
| 13362 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13363 |
-
|
| 13364 |
-
"use strict";
|
| 13365 |
-
/* unused harmony export flexBasis */
|
| 13366 |
-
/* unused harmony export flexDirection */
|
| 13367 |
-
/* unused harmony export flexWrap */
|
| 13368 |
-
/* unused harmony export justifyContent */
|
| 13369 |
-
/* unused harmony export alignItems */
|
| 13370 |
-
/* unused harmony export alignContent */
|
| 13371 |
-
/* unused harmony export order */
|
| 13372 |
-
/* unused harmony export flex */
|
| 13373 |
-
/* unused harmony export flexGrow */
|
| 13374 |
-
/* unused harmony export flexShrink */
|
| 13375 |
-
/* unused harmony export alignSelf */
|
| 13376 |
-
/* unused harmony export justifyItems */
|
| 13377 |
-
/* unused harmony export justifySelf */
|
| 13378 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(33);
|
| 13379 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(37);
|
| 13380 |
-
|
| 13381 |
-
|
| 13382 |
-
var flexBasis = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13383 |
-
prop: 'flexBasis'
|
| 13384 |
-
});
|
| 13385 |
-
var flexDirection = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13386 |
-
prop: 'flexDirection'
|
| 13387 |
-
});
|
| 13388 |
-
var flexWrap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13389 |
-
prop: 'flexWrap'
|
| 13390 |
-
});
|
| 13391 |
-
var justifyContent = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13392 |
-
prop: 'justifyContent'
|
| 13393 |
-
});
|
| 13394 |
-
var alignItems = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13395 |
-
prop: 'alignItems'
|
| 13396 |
-
});
|
| 13397 |
-
var alignContent = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13398 |
-
prop: 'alignContent'
|
| 13399 |
-
});
|
| 13400 |
-
var order = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13401 |
-
prop: 'order'
|
| 13402 |
-
});
|
| 13403 |
-
var flex = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13404 |
-
prop: 'flex'
|
| 13405 |
-
});
|
| 13406 |
-
var flexGrow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13407 |
-
prop: 'flexGrow'
|
| 13408 |
-
});
|
| 13409 |
-
var flexShrink = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13410 |
-
prop: 'flexShrink'
|
| 13411 |
-
});
|
| 13412 |
-
var alignSelf = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13413 |
-
prop: 'alignSelf'
|
| 13414 |
-
});
|
| 13415 |
-
var justifyItems = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13416 |
-
prop: 'justifyItems'
|
| 13417 |
-
});
|
| 13418 |
-
var justifySelf = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13419 |
-
prop: 'justifySelf'
|
| 13420 |
-
});
|
| 13421 |
-
var flexbox = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf);
|
| 13422 |
-
/* harmony default export */ __webpack_exports__["a"] = (flexbox);
|
| 13423 |
-
|
| 13424 |
-
/***/ }),
|
| 13425 |
-
/* 218 */
|
| 13426 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13427 |
-
|
| 13428 |
-
"use strict";
|
| 13429 |
-
/* unused harmony export gridGap */
|
| 13430 |
-
/* unused harmony export gridColumnGap */
|
| 13431 |
-
/* unused harmony export gridRowGap */
|
| 13432 |
-
/* unused harmony export gridColumn */
|
| 13433 |
-
/* unused harmony export gridRow */
|
| 13434 |
-
/* unused harmony export gridAutoFlow */
|
| 13435 |
-
/* unused harmony export gridAutoColumns */
|
| 13436 |
-
/* unused harmony export gridAutoRows */
|
| 13437 |
-
/* unused harmony export gridTemplateColumns */
|
| 13438 |
-
/* unused harmony export gridTemplateRows */
|
| 13439 |
-
/* unused harmony export gridTemplateAreas */
|
| 13440 |
-
/* unused harmony export gridArea */
|
| 13441 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(33);
|
| 13442 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(37);
|
| 13443 |
-
|
| 13444 |
-
|
| 13445 |
-
var gridGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13446 |
-
prop: 'gridGap'
|
| 13447 |
-
});
|
| 13448 |
-
var gridColumnGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13449 |
-
prop: 'gridColumnGap'
|
| 13450 |
-
});
|
| 13451 |
-
var gridRowGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13452 |
-
prop: 'gridRowGap'
|
| 13453 |
-
});
|
| 13454 |
-
var gridColumn = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13455 |
-
prop: 'gridColumn'
|
| 13456 |
-
});
|
| 13457 |
-
var gridRow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13458 |
-
prop: 'gridRow'
|
| 13459 |
-
});
|
| 13460 |
-
var gridAutoFlow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13461 |
-
prop: 'gridAutoFlow'
|
| 13462 |
-
});
|
| 13463 |
-
var gridAutoColumns = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13464 |
-
prop: 'gridAutoColumns'
|
| 13465 |
-
});
|
| 13466 |
-
var gridAutoRows = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13467 |
-
prop: 'gridAutoRows'
|
| 13468 |
-
});
|
| 13469 |
-
var gridTemplateColumns = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13470 |
-
prop: 'gridTemplateColumns'
|
| 13471 |
-
});
|
| 13472 |
-
var gridTemplateRows = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13473 |
-
prop: 'gridTemplateRows'
|
| 13474 |
-
});
|
| 13475 |
-
var gridTemplateAreas = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13476 |
-
prop: 'gridTemplateAreas'
|
| 13477 |
-
});
|
| 13478 |
-
var gridArea = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13479 |
-
prop: 'gridArea'
|
| 13480 |
-
});
|
| 13481 |
-
var grid = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
|
| 13482 |
-
/* harmony default export */ __webpack_exports__["a"] = (grid);
|
| 13483 |
-
|
| 13484 |
-
/***/ }),
|
| 13485 |
-
/* 219 */
|
| 13486 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13487 |
-
|
| 13488 |
-
"use strict";
|
| 13489 |
-
/* unused harmony export color */
|
| 13490 |
-
/* unused harmony export bgcolor */
|
| 13491 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(33);
|
| 13492 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(37);
|
| 13493 |
-
|
| 13494 |
-
|
| 13495 |
-
var color = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13496 |
-
prop: 'color',
|
| 13497 |
-
themeKey: 'palette'
|
| 13498 |
-
});
|
| 13499 |
-
var bgcolor = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13500 |
-
prop: 'bgcolor',
|
| 13501 |
-
cssProperty: 'backgroundColor',
|
| 13502 |
-
themeKey: 'palette'
|
| 13503 |
-
});
|
| 13504 |
-
var palette = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(color, bgcolor);
|
| 13505 |
-
/* harmony default export */ __webpack_exports__["a"] = (palette);
|
| 13506 |
-
|
| 13507 |
-
/***/ }),
|
| 13508 |
-
/* 220 */
|
| 13509 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13510 |
-
|
| 13511 |
-
"use strict";
|
| 13512 |
-
/* unused harmony export position */
|
| 13513 |
-
/* unused harmony export zIndex */
|
| 13514 |
-
/* unused harmony export top */
|
| 13515 |
-
/* unused harmony export right */
|
| 13516 |
-
/* unused harmony export bottom */
|
| 13517 |
-
/* unused harmony export left */
|
| 13518 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(33);
|
| 13519 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(37);
|
| 13520 |
-
|
| 13521 |
-
|
| 13522 |
-
var position = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13523 |
-
prop: 'position'
|
| 13524 |
-
});
|
| 13525 |
-
var zIndex = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13526 |
-
prop: 'zIndex',
|
| 13527 |
-
themeKey: 'zIndex'
|
| 13528 |
-
});
|
| 13529 |
-
var top = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13530 |
-
prop: 'top'
|
| 13531 |
-
});
|
| 13532 |
-
var right = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13533 |
-
prop: 'right'
|
| 13534 |
-
});
|
| 13535 |
-
var bottom = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13536 |
-
prop: 'bottom'
|
| 13537 |
-
});
|
| 13538 |
-
var left = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13539 |
-
prop: 'left'
|
| 13540 |
-
});
|
| 13541 |
-
/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(position, zIndex, top, right, bottom, left));
|
| 13542 |
-
|
| 13543 |
-
/***/ }),
|
| 13544 |
-
/* 221 */
|
| 13545 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13546 |
-
|
| 13547 |
-
"use strict";
|
| 13548 |
-
/* unused harmony export width */
|
| 13549 |
-
/* unused harmony export maxWidth */
|
| 13550 |
-
/* unused harmony export minWidth */
|
| 13551 |
-
/* unused harmony export height */
|
| 13552 |
-
/* unused harmony export maxHeight */
|
| 13553 |
-
/* unused harmony export minHeight */
|
| 13554 |
-
/* unused harmony export sizeWidth */
|
| 13555 |
-
/* unused harmony export sizeHeight */
|
| 13556 |
-
/* unused harmony export boxSizing */
|
| 13557 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(33);
|
| 13558 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(37);
|
| 13559 |
-
|
| 13560 |
-
|
| 13561 |
-
|
| 13562 |
-
function transform(value) {
|
| 13563 |
-
return value <= 1 ? "".concat(value * 100, "%") : value;
|
| 13564 |
-
}
|
| 13565 |
-
|
| 13566 |
-
var width = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13567 |
-
prop: 'width',
|
| 13568 |
-
transform: transform
|
| 13569 |
-
});
|
| 13570 |
-
var maxWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13571 |
-
prop: 'maxWidth',
|
| 13572 |
-
transform: transform
|
| 13573 |
-
});
|
| 13574 |
-
var minWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13575 |
-
prop: 'minWidth',
|
| 13576 |
-
transform: transform
|
| 13577 |
-
});
|
| 13578 |
-
var height = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13579 |
-
prop: 'height',
|
| 13580 |
-
transform: transform
|
| 13581 |
-
});
|
| 13582 |
-
var maxHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13583 |
-
prop: 'maxHeight',
|
| 13584 |
-
transform: transform
|
| 13585 |
-
});
|
| 13586 |
-
var minHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13587 |
-
prop: 'minHeight',
|
| 13588 |
-
transform: transform
|
| 13589 |
-
});
|
| 13590 |
-
var sizeWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13591 |
-
prop: 'size',
|
| 13592 |
-
cssProperty: 'width',
|
| 13593 |
-
transform: transform
|
| 13594 |
-
});
|
| 13595 |
-
var sizeHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13596 |
-
prop: 'size',
|
| 13597 |
-
cssProperty: 'height',
|
| 13598 |
-
transform: transform
|
| 13599 |
-
});
|
| 13600 |
-
var boxSizing = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13601 |
-
prop: 'boxSizing'
|
| 13602 |
-
});
|
| 13603 |
-
var sizing = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
|
| 13604 |
-
/* harmony default export */ __webpack_exports__["a"] = (sizing);
|
| 13605 |
-
|
| 13606 |
-
/***/ }),
|
| 13607 |
-
/* 222 */
|
| 13608 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13609 |
-
|
| 13610 |
-
"use strict";
|
| 13611 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createUnarySpacing;
|
| 13612 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(20);
|
| 13613 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(216);
|
| 13614 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(127);
|
| 13615 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__merge__ = __webpack_require__(83);
|
| 13616 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__memoize__ = __webpack_require__(478);
|
| 13617 |
-
|
| 13618 |
-
|
| 13619 |
-
|
| 13620 |
-
|
| 13621 |
-
|
| 13622 |
-
var properties = {
|
| 13623 |
-
m: 'margin',
|
| 13624 |
-
p: 'padding'
|
| 13625 |
-
};
|
| 13626 |
-
var directions = {
|
| 13627 |
-
t: 'Top',
|
| 13628 |
-
r: 'Right',
|
| 13629 |
-
b: 'Bottom',
|
| 13630 |
-
l: 'Left',
|
| 13631 |
-
x: ['Left', 'Right'],
|
| 13632 |
-
y: ['Top', 'Bottom']
|
| 13633 |
-
};
|
| 13634 |
-
var aliases = {
|
| 13635 |
-
marginX: 'mx',
|
| 13636 |
-
marginY: 'my',
|
| 13637 |
-
paddingX: 'px',
|
| 13638 |
-
paddingY: 'py'
|
| 13639 |
-
}; // memoize() impact:
|
| 13640 |
-
// From 300,000 ops/sec
|
| 13641 |
-
// To 350,000 ops/sec
|
| 13642 |
-
|
| 13643 |
-
var getCssProperties = Object(__WEBPACK_IMPORTED_MODULE_4__memoize__["a" /* default */])(function (prop) {
|
| 13644 |
-
// It's not a shorthand notation.
|
| 13645 |
-
if (prop.length > 2) {
|
| 13646 |
-
if (aliases[prop]) {
|
| 13647 |
-
prop = aliases[prop];
|
| 13648 |
-
} else {
|
| 13649 |
-
return [prop];
|
| 13650 |
-
}
|
| 13651 |
-
}
|
| 13652 |
-
|
| 13653 |
-
var _prop$split = prop.split(''),
|
| 13654 |
-
_prop$split2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_prop$split, 2),
|
| 13655 |
-
a = _prop$split2[0],
|
| 13656 |
-
b = _prop$split2[1];
|
| 13657 |
-
|
| 13658 |
-
var property = properties[a];
|
| 13659 |
-
var direction = directions[b] || '';
|
| 13660 |
-
return Array.isArray(direction) ? direction.map(function (dir) {
|
| 13661 |
-
return property + dir;
|
| 13662 |
-
}) : [property + direction];
|
| 13663 |
-
});
|
| 13664 |
-
var spacingKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
|
| 13665 |
-
function createUnarySpacing(theme) {
|
| 13666 |
-
var themeSpacing = theme.spacing || 8;
|
| 13667 |
-
|
| 13668 |
-
if (typeof themeSpacing === 'number') {
|
| 13669 |
-
return function (abs) {
|
| 13670 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 13671 |
-
if (typeof abs !== 'number') {
|
| 13672 |
-
console.error("Material-UI: Expected spacing argument to be a number, got ".concat(abs, "."));
|
| 13673 |
-
}
|
| 13674 |
-
}
|
| 13675 |
-
|
| 13676 |
-
return themeSpacing * abs;
|
| 13677 |
-
};
|
| 13678 |
-
}
|
| 13679 |
-
|
| 13680 |
-
if (Array.isArray(themeSpacing)) {
|
| 13681 |
-
return function (abs) {
|
| 13682 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 13683 |
-
if (abs > themeSpacing.length - 1) {
|
| 13684 |
-
console.error(["Material-UI: The value provided (".concat(abs, ") overflows."), "The supported values are: ".concat(JSON.stringify(themeSpacing), "."), "".concat(abs, " > ").concat(themeSpacing.length - 1, ", you need to add the missing values.")].join('\n'));
|
| 13685 |
-
}
|
| 13686 |
-
}
|
| 13687 |
-
|
| 13688 |
-
return themeSpacing[abs];
|
| 13689 |
-
};
|
| 13690 |
-
}
|
| 13691 |
-
|
| 13692 |
-
if (typeof themeSpacing === 'function') {
|
| 13693 |
-
return themeSpacing;
|
| 13694 |
-
}
|
| 13695 |
-
|
| 13696 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 13697 |
-
console.error(["Material-UI: The `theme.spacing` value (".concat(themeSpacing, ") is invalid."), 'It should be a number, an array or a function.'].join('\n'));
|
| 13698 |
-
}
|
| 13699 |
-
|
| 13700 |
-
return function () {
|
| 13701 |
-
return undefined;
|
| 13702 |
-
};
|
| 13703 |
-
}
|
| 13704 |
-
|
| 13705 |
-
function getValue(transformer, propValue) {
|
| 13706 |
-
if (typeof propValue === 'string') {
|
| 13707 |
-
return propValue;
|
| 13708 |
-
}
|
| 13709 |
-
|
| 13710 |
-
var abs = Math.abs(propValue);
|
| 13711 |
-
var transformed = transformer(abs);
|
| 13712 |
-
|
| 13713 |
-
if (propValue >= 0) {
|
| 13714 |
-
return transformed;
|
| 13715 |
-
}
|
| 13716 |
-
|
| 13717 |
-
if (typeof transformed === 'number') {
|
| 13718 |
-
return -transformed;
|
| 13719 |
-
}
|
| 13720 |
-
|
| 13721 |
-
return "-".concat(transformed);
|
| 13722 |
-
}
|
| 13723 |
-
|
| 13724 |
-
function getStyleFromPropValue(cssProperties, transformer) {
|
| 13725 |
-
return function (propValue) {
|
| 13726 |
-
return cssProperties.reduce(function (acc, cssProperty) {
|
| 13727 |
-
acc[cssProperty] = getValue(transformer, propValue);
|
| 13728 |
-
return acc;
|
| 13729 |
-
}, {});
|
| 13730 |
-
};
|
| 13731 |
-
}
|
| 13732 |
-
|
| 13733 |
-
function spacing(props) {
|
| 13734 |
-
var theme = props.theme;
|
| 13735 |
-
var transformer = createUnarySpacing(theme);
|
| 13736 |
-
return Object.keys(props).map(function (prop) {
|
| 13737 |
-
// Using a hash computation over an array iteration could be faster, but with only 28 items,
|
| 13738 |
-
// it's doesn't worth the bundle size.
|
| 13739 |
-
if (spacingKeys.indexOf(prop) === -1) {
|
| 13740 |
-
return null;
|
| 13741 |
-
}
|
| 13742 |
-
|
| 13743 |
-
var cssProperties = getCssProperties(prop);
|
| 13744 |
-
var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
|
| 13745 |
-
var propValue = props[prop];
|
| 13746 |
-
return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
|
| 13747 |
-
}).reduce(__WEBPACK_IMPORTED_MODULE_3__merge__["a" /* default */], {});
|
| 13748 |
-
}
|
| 13749 |
-
|
| 13750 |
-
spacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce(function (obj, key) {
|
| 13751 |
-
obj[key] = __WEBPACK_IMPORTED_MODULE_1__responsivePropType__["a" /* default */];
|
| 13752 |
-
return obj;
|
| 13753 |
-
}, {}) : {};
|
| 13754 |
-
spacing.filterProps = spacingKeys;
|
| 13755 |
-
/* harmony default export */ __webpack_exports__["b"] = (spacing);
|
| 13756 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 13757 |
-
|
| 13758 |
-
/***/ }),
|
| 13759 |
-
/* 223 */
|
| 13760 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13761 |
-
|
| 13762 |
-
"use strict";
|
| 13763 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _arrayWithHoles;
|
| 13764 |
-
function _arrayWithHoles(arr) {
|
| 13765 |
-
if (Array.isArray(arr)) return arr;
|
| 13766 |
-
}
|
| 13767 |
-
|
| 13768 |
-
/***/ }),
|
| 13769 |
-
/* 224 */
|
| 13770 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13771 |
-
|
| 13772 |
-
"use strict";
|
| 13773 |
-
/* harmony export (immutable) */ __webpack_exports__["a"] = _nonIterableRest;
|
| 13774 |
-
function _nonIterableRest() {
|
| 13775 |
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
| 13776 |
-
}
|
| 13777 |
-
|
| 13778 |
-
/***/ }),
|
| 13779 |
-
/* 225 */
|
| 13780 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13781 |
-
|
| 13782 |
-
"use strict";
|
| 13783 |
-
/* unused harmony export fontFamily */
|
| 13784 |
-
/* unused harmony export fontSize */
|
| 13785 |
-
/* unused harmony export fontStyle */
|
| 13786 |
-
/* unused harmony export fontWeight */
|
| 13787 |
-
/* unused harmony export letterSpacing */
|
| 13788 |
-
/* unused harmony export lineHeight */
|
| 13789 |
-
/* unused harmony export textAlign */
|
| 13790 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(33);
|
| 13791 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(37);
|
| 13792 |
-
|
| 13793 |
-
|
| 13794 |
-
var fontFamily = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13795 |
-
prop: 'fontFamily',
|
| 13796 |
-
themeKey: 'typography'
|
| 13797 |
-
});
|
| 13798 |
-
var fontSize = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13799 |
-
prop: 'fontSize',
|
| 13800 |
-
themeKey: 'typography'
|
| 13801 |
-
});
|
| 13802 |
-
var fontStyle = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13803 |
-
prop: 'fontStyle',
|
| 13804 |
-
themeKey: 'typography'
|
| 13805 |
-
});
|
| 13806 |
-
var fontWeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13807 |
-
prop: 'fontWeight',
|
| 13808 |
-
themeKey: 'typography'
|
| 13809 |
-
});
|
| 13810 |
-
var letterSpacing = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13811 |
-
prop: 'letterSpacing'
|
| 13812 |
-
});
|
| 13813 |
-
var lineHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13814 |
-
prop: 'lineHeight'
|
| 13815 |
-
});
|
| 13816 |
-
var textAlign = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
|
| 13817 |
-
prop: 'textAlign'
|
| 13818 |
-
});
|
| 13819 |
-
var typography = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign);
|
| 13820 |
-
/* harmony default export */ __webpack_exports__["a"] = (typography);
|
| 13821 |
-
|
| 13822 |
-
/***/ }),
|
| 13823 |
-
/* 226 */
|
| 13824 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13825 |
-
|
| 13826 |
-
"use strict";
|
| 13827 |
-
// We need to centralize the zIndex definitions as they work
|
| 13828 |
-
// like global values in the browser.
|
| 13829 |
-
var zIndex = {
|
| 13830 |
-
mobileStepper: 1000,
|
| 13831 |
-
speedDial: 1050,
|
| 13832 |
-
appBar: 1100,
|
| 13833 |
-
drawer: 1200,
|
| 13834 |
-
modal: 1300,
|
| 13835 |
-
snackbar: 1400,
|
| 13836 |
-
tooltip: 1500
|
| 13837 |
-
};
|
| 13838 |
-
/* harmony default export */ __webpack_exports__["a"] = (zIndex);
|
| 13839 |
-
|
| 13840 |
-
/***/ }),
|
| 13841 |
-
/* 227 */
|
| 13842 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13843 |
-
|
| 13844 |
-
"use strict";
|
| 13845 |
-
function areInputsEqual(newInputs, lastInputs) {
|
| 13846 |
-
if (newInputs.length !== lastInputs.length) {
|
| 13847 |
-
return false;
|
| 13848 |
-
}
|
| 13849 |
-
for (var i = 0; i < newInputs.length; i++) {
|
| 13850 |
-
if (newInputs[i] !== lastInputs[i]) {
|
| 13851 |
-
return false;
|
| 13852 |
-
}
|
| 13853 |
-
}
|
| 13854 |
-
return true;
|
| 13855 |
-
}
|
| 13856 |
-
|
| 13857 |
-
function memoizeOne(resultFn, isEqual) {
|
| 13858 |
-
if (isEqual === void 0) { isEqual = areInputsEqual; }
|
| 13859 |
-
var lastThis;
|
| 13860 |
-
var lastArgs = [];
|
| 13861 |
-
var lastResult;
|
| 13862 |
-
var calledOnce = false;
|
| 13863 |
-
function memoized() {
|
| 13864 |
-
var newArgs = [];
|
| 13865 |
-
for (var _i = 0; _i < arguments.length; _i++) {
|
| 13866 |
-
newArgs[_i] = arguments[_i];
|
| 13867 |
-
}
|
| 13868 |
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
| 13869 |
-
return lastResult;
|
| 13870 |
-
}
|
| 13871 |
-
lastResult = resultFn.apply(this, newArgs);
|
| 13872 |
-
calledOnce = true;
|
| 13873 |
-
lastThis = this;
|
| 13874 |
-
lastArgs = newArgs;
|
| 13875 |
-
return lastResult;
|
| 13876 |
-
}
|
| 13877 |
-
return memoized;
|
| 13878 |
-
}
|
| 13879 |
-
|
| 13880 |
-
/* harmony default export */ __webpack_exports__["a"] = (memoizeOne);
|
| 13881 |
-
|
| 13882 |
-
|
| 13883 |
-
/***/ }),
|
| 13884 |
-
/* 228 */
|
| 13885 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 13886 |
-
|
| 13887 |
-
"use strict";
|
| 13888 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__ = __webpack_require__(229);
|
| 13889 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__ = __webpack_require__(480);
|
| 13890 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_weak_memoize__ = __webpack_require__(481);
|
| 13891 |
-
|
| 13892 |
-
|
| 13893 |
-
|
| 13894 |
-
|
| 13895 |
-
// https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet
|
| 13896 |
-
// inlined to avoid umd wrapper and peerDep warnings/installing stylis
|
| 13897 |
-
// since we use stylis after closure compiler
|
| 13898 |
-
var delimiter = '/*|*/';
|
| 13899 |
-
var needle = delimiter + '}';
|
| 13900 |
-
|
| 13901 |
-
function toSheet(block) {
|
| 13902 |
-
if (block) {
|
| 13903 |
-
Sheet.current.insert(block + '}');
|
| 13904 |
-
}
|
| 13905 |
-
}
|
| 13906 |
-
|
| 13907 |
-
var Sheet = {
|
| 13908 |
-
current: null
|
| 13909 |
-
};
|
| 13910 |
-
var ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
|
| 13911 |
-
switch (context) {
|
| 13912 |
-
// property
|
| 13913 |
-
case 1:
|
| 13914 |
-
{
|
| 13915 |
-
switch (content.charCodeAt(0)) {
|
| 13916 |
-
case 64:
|
| 13917 |
-
{
|
| 13918 |
-
// @import
|
| 13919 |
-
Sheet.current.insert(content + ';');
|
| 13920 |
-
return '';
|
| 13921 |
-
}
|
| 13922 |
-
// charcode for l
|
| 13923 |
-
|
| 13924 |
-
case 108:
|
| 13925 |
-
{
|
| 13926 |
-
// charcode for b
|
| 13927 |
-
// this ignores label
|
| 13928 |
-
if (content.charCodeAt(2) === 98) {
|
| 13929 |
-
return '';
|
| 13930 |
-
}
|
| 13931 |
-
}
|
| 13932 |
-
}
|
| 13933 |
-
|
| 13934 |
-
break;
|
| 13935 |
-
}
|
| 13936 |
-
// selector
|
| 13937 |
-
|
| 13938 |
-
case 2:
|
| 13939 |
-
{
|
| 13940 |
-
if (ns === 0) return content + delimiter;
|
| 13941 |
-
break;
|
| 13942 |
-
}
|
| 13943 |
-
// at-rule
|
| 13944 |
-
|
| 13945 |
-
case 3:
|
| 13946 |
-
{
|
| 13947 |
-
switch (ns) {
|
| 13948 |
-
// @font-face, @page
|
| 13949 |
-
case 102:
|
| 13950 |
-
case 112:
|
| 13951 |
-
{
|
| 13952 |
-
Sheet.current.insert(selectors[0] + content);
|
| 13953 |
-
return '';
|
| 13954 |
-
}
|
| 13955 |
-
|
| 13956 |
-
default:
|
| 13957 |
-
{
|
| 13958 |
-
return content + (at === 0 ? delimiter : '');
|
| 13959 |
-
}
|
| 13960 |
-
}
|
| 13961 |
-
}
|
| 13962 |
-
|
| 13963 |
-
case -2:
|
| 13964 |
-
{
|
| 13965 |
-
content.split(needle).forEach(toSheet);
|
| 13966 |
-
}
|
| 13967 |
-
}
|
| 13968 |
-
};
|
| 13969 |
-
|
| 13970 |
-
var createCache = function createCache(options) {
|
| 13971 |
-
if (options === undefined) options = {};
|
| 13972 |
-
var key = options.key || 'css';
|
| 13973 |
-
var stylisOptions;
|
| 13974 |
-
|
| 13975 |
-
if (options.prefix !== undefined) {
|
| 13976 |
-
stylisOptions = {
|
| 13977 |
-
prefix: options.prefix
|
| 13978 |
-
};
|
| 13979 |
-
}
|
| 13980 |
-
|
| 13981 |
-
var stylis = new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__["a" /* default */](stylisOptions);
|
| 13982 |
-
|
| 13983 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 13984 |
-
// $FlowFixMe
|
| 13985 |
-
if (/[^a-z-]/.test(key)) {
|
| 13986 |
-
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
| 13987 |
-
}
|
| 13988 |
-
}
|
| 13989 |
-
|
| 13990 |
-
var inserted = {}; // $FlowFixMe
|
| 13991 |
-
|
| 13992 |
-
var container;
|
| 13993 |
-
|
| 13994 |
-
{
|
| 13995 |
-
container = options.container || document.head;
|
| 13996 |
-
var nodes = document.querySelectorAll("style[data-emotion-" + key + "]");
|
| 13997 |
-
Array.prototype.forEach.call(nodes, function (node) {
|
| 13998 |
-
var attrib = node.getAttribute("data-emotion-" + key); // $FlowFixMe
|
| 13999 |
-
|
| 14000 |
-
attrib.split(' ').forEach(function (id) {
|
| 14001 |
-
inserted[id] = true;
|
| 14002 |
-
});
|
| 14003 |
-
|
| 14004 |
-
if (node.parentNode !== container) {
|
| 14005 |
-
container.appendChild(node);
|
| 14006 |
-
}
|
| 14007 |
-
});
|
| 14008 |
-
}
|
| 14009 |
-
|
| 14010 |
-
var _insert;
|
| 14011 |
-
|
| 14012 |
-
{
|
| 14013 |
-
stylis.use(options.stylisPlugins)(ruleSheet);
|
| 14014 |
-
|
| 14015 |
-
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
| 14016 |
-
var name = serialized.name;
|
| 14017 |
-
Sheet.current = sheet;
|
| 14018 |
-
|
| 14019 |
-
if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
|
| 14020 |
-
var map = serialized.map;
|
| 14021 |
-
Sheet.current = {
|
| 14022 |
-
insert: function insert(rule) {
|
| 14023 |
-
sheet.insert(rule + map);
|
| 14024 |
-
}
|
| 14025 |
-
};
|
| 14026 |
-
}
|
| 14027 |
-
|
| 14028 |
-
stylis(selector, serialized.styles);
|
| 14029 |
-
|
| 14030 |
-
if (shouldCache) {
|
| 14031 |
-
cache.inserted[name] = true;
|
| 14032 |
-
}
|
| 14033 |
-
};
|
| 14034 |
-
}
|
| 14035 |
-
|
| 14036 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 14037 |
-
// https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a
|
| 14038 |
-
var commentStart = /\/\*/g;
|
| 14039 |
-
var commentEnd = /\*\//g;
|
| 14040 |
-
stylis.use(function (context, content) {
|
| 14041 |
-
switch (context) {
|
| 14042 |
-
case -1:
|
| 14043 |
-
{
|
| 14044 |
-
while (commentStart.test(content)) {
|
| 14045 |
-
commentEnd.lastIndex = commentStart.lastIndex;
|
| 14046 |
-
|
| 14047 |
-
if (commentEnd.test(content)) {
|
| 14048 |
-
commentStart.lastIndex = commentEnd.lastIndex;
|
| 14049 |
-
continue;
|
| 14050 |
-
}
|
| 14051 |
-
|
| 14052 |
-
throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');
|
| 14053 |
-
}
|
| 14054 |
-
|
| 14055 |
-
commentStart.lastIndex = 0;
|
| 14056 |
-
break;
|
| 14057 |
-
}
|
| 14058 |
-
}
|
| 14059 |
-
});
|
| 14060 |
-
stylis.use(function (context, content, selectors) {
|
| 14061 |
-
switch (context) {
|
| 14062 |
-
case -1:
|
| 14063 |
-
{
|
| 14064 |
-
var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
|
| 14065 |
-
var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g);
|
| 14066 |
-
|
| 14067 |
-
if (unsafePseudoClasses && cache.compat !== true) {
|
| 14068 |
-
unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
| 14069 |
-
var ignoreRegExp = new RegExp(unsafePseudoClass + ".*\\/\\* " + flag + " \\*\\/");
|
| 14070 |
-
var ignore = ignoreRegExp.test(content);
|
| 14071 |
-
|
| 14072 |
-
if (unsafePseudoClass && !ignore) {
|
| 14073 |
-
console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
| 14074 |
-
}
|
| 14075 |
-
});
|
| 14076 |
-
}
|
| 14077 |
-
|
| 14078 |
-
break;
|
| 14079 |
-
}
|
| 14080 |
-
}
|
| 14081 |
-
});
|
| 14082 |
-
}
|
| 14083 |
-
|
| 14084 |
-
var cache = {
|
| 14085 |
-
key: key,
|
| 14086 |
-
sheet: new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__["a" /* StyleSheet */]({
|
| 14087 |
-
key: key,
|
| 14088 |
-
container: container,
|
| 14089 |
-
nonce: options.nonce,
|
| 14090 |
-
speedy: options.speedy
|
| 14091 |
-
}),
|
| 14092 |
-
nonce: options.nonce,
|
| 14093 |
-
inserted: inserted,
|
| 14094 |
-
registered: {},
|
| 14095 |
-
insert: _insert
|
| 14096 |
-
};
|
| 14097 |
-
return cache;
|
| 14098 |
-
};
|
| 14099 |
-
|
| 14100 |
-
/* harmony default export */ __webpack_exports__["a"] = (createCache);
|
| 14101 |
-
|
| 14102 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 14103 |
-
|
| 14104 |
-
/***/ }),
|
| 14105 |
-
/* 229 */
|
| 14106 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 14107 |
-
|
| 14108 |
-
"use strict";
|
| 14109 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StyleSheet; });
|
| 14110 |
-
/*
|
| 14111 |
-
|
| 14112 |
-
Based off glamor's StyleSheet, thanks Sunil ❤️
|
| 14113 |
-
|
| 14114 |
-
high performance StyleSheet for css-in-js systems
|
| 14115 |
-
|
| 14116 |
-
- uses multiple style tags behind the scenes for millions of rules
|
| 14117 |
-
- uses `insertRule` for appending in production for *much* faster performance
|
| 14118 |
-
|
| 14119 |
-
// usage
|
| 14120 |
-
|
| 14121 |
-
import { StyleSheet } from '@emotion/sheet'
|
| 14122 |
-
|
| 14123 |
-
let styleSheet = new StyleSheet({ key: '', container: document.head })
|
| 14124 |
-
|
| 14125 |
-
styleSheet.insert('#box { border: 1px solid red; }')
|
| 14126 |
-
- appends a css rule into the stylesheet
|
| 14127 |
-
|
| 14128 |
-
styleSheet.flush()
|
| 14129 |
-
- empties the stylesheet of all its contents
|
| 14130 |
-
|
| 14131 |
-
*/
|
| 14132 |
-
// $FlowFixMe
|
| 14133 |
-
function sheetForTag(tag) {
|
| 14134 |
-
if (tag.sheet) {
|
| 14135 |
-
// $FlowFixMe
|
| 14136 |
-
return tag.sheet;
|
| 14137 |
-
} // this weirdness brought to you by firefox
|
| 14138 |
-
|
| 14139 |
-
/* istanbul ignore next */
|
| 14140 |
-
|
| 14141 |
-
|
| 14142 |
-
for (var i = 0; i < document.styleSheets.length; i++) {
|
| 14143 |
-
if (document.styleSheets[i].ownerNode === tag) {
|
| 14144 |
-
// $FlowFixMe
|
| 14145 |
-
return document.styleSheets[i];
|
| 14146 |
-
}
|
| 14147 |
-
}
|
| 14148 |
-
}
|
| 14149 |
-
|
| 14150 |
-
function createStyleElement(options) {
|
| 14151 |
-
var tag = document.createElement('style');
|
| 14152 |
-
tag.setAttribute('data-emotion', options.key);
|
| 14153 |
-
|
| 14154 |
-
if (options.nonce !== undefined) {
|
| 14155 |
-
tag.setAttribute('nonce', options.nonce);
|
| 14156 |
-
}
|
| 14157 |
-
|
| 14158 |
-
tag.appendChild(document.createTextNode(''));
|
| 14159 |
-
return tag;
|
| 14160 |
-
}
|
| 14161 |
-
|
| 14162 |
-
var StyleSheet =
|
| 14163 |
-
/*#__PURE__*/
|
| 14164 |
-
function () {
|
| 14165 |
-
function StyleSheet(options) {
|
| 14166 |
-
this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy;
|
| 14167 |
-
this.tags = [];
|
| 14168 |
-
this.ctr = 0;
|
| 14169 |
-
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
| 14170 |
-
|
| 14171 |
-
this.key = options.key;
|
| 14172 |
-
this.container = options.container;
|
| 14173 |
-
this.before = null;
|
| 14174 |
-
}
|
| 14175 |
-
|
| 14176 |
-
var _proto = StyleSheet.prototype;
|
| 14177 |
-
|
| 14178 |
-
_proto.insert = function insert(rule) {
|
| 14179 |
-
// the max length is how many rules we have per style tag, it's 65000 in speedy mode
|
| 14180 |
-
// it's 1 in dev because we insert source maps that map a single rule to a location
|
| 14181 |
-
// and you can only have one source map per style tag
|
| 14182 |
-
if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
|
| 14183 |
-
var _tag = createStyleElement(this);
|
| 14184 |
-
|
| 14185 |
-
var before;
|
| 14186 |
-
|
| 14187 |
-
if (this.tags.length === 0) {
|
| 14188 |
-
before = this.before;
|
| 14189 |
-
} else {
|
| 14190 |
-
before = this.tags[this.tags.length - 1].nextSibling;
|
| 14191 |
-
}
|
| 14192 |
-
|
| 14193 |
-
this.container.insertBefore(_tag, before);
|
| 14194 |
-
this.tags.push(_tag);
|
| 14195 |
-
}
|
| 14196 |
-
|
| 14197 |
-
var tag = this.tags[this.tags.length - 1];
|
| 14198 |
-
|
| 14199 |
-
if (this.isSpeedy) {
|
| 14200 |
-
var sheet = sheetForTag(tag);
|
| 14201 |
-
|
| 14202 |
-
try {
|
| 14203 |
-
// this is a really hot path
|
| 14204 |
-
// we check the second character first because having "i"
|
| 14205 |
-
// as the second character will happen less often than
|
| 14206 |
-
// having "@" as the first character
|
| 14207 |
-
var isImportRule = rule.charCodeAt(1) === 105 && rule.charCodeAt(0) === 64; // this is the ultrafast version, works across browsers
|
| 14208 |
-
// the big drawback is that the css won't be editable in devtools
|
| 14209 |
-
|
| 14210 |
-
sheet.insertRule(rule, // we need to insert @import rules before anything else
|
| 14211 |
-
// otherwise there will be an error
|
| 14212 |
-
// technically this means that the @import rules will
|
| 14213 |
-
// _usually_(not always since there could be multiple style tags)
|
| 14214 |
-
// be the first ones in prod and generally later in dev
|
| 14215 |
-
// this shouldn't really matter in the real world though
|
| 14216 |
-
// @import is generally only used for font faces from google fonts and etc.
|
| 14217 |
-
// so while this could be technically correct then it would be slower and larger
|
| 14218 |
-
// for a tiny bit of correctness that won't matter in the real world
|
| 14219 |
-
isImportRule ? 0 : sheet.cssRules.length);
|
| 14220 |
-
} catch (e) {
|
| 14221 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 14222 |
-
console.warn("There was a problem inserting the following rule: \"" + rule + "\"", e);
|
| 14223 |
-
}
|
| 14224 |
-
}
|
| 14225 |
-
} else {
|
| 14226 |
-
tag.appendChild(document.createTextNode(rule));
|
| 14227 |
-
}
|
| 14228 |
-
|
| 14229 |
-
this.ctr++;
|
| 14230 |
-
};
|
| 14231 |
-
|
| 14232 |
-
_proto.flush = function flush() {
|
| 14233 |
-
// $FlowFixMe
|
| 14234 |
-
this.tags.forEach(function (tag) {
|
| 14235 |
-
return tag.parentNode.removeChild(tag);
|
| 14236 |
-
});
|
| 14237 |
-
this.tags = [];
|
| 14238 |
-
this.ctr = 0;
|
| 14239 |
-
};
|
| 14240 |
-
|
| 14241 |
-
return StyleSheet;
|
| 14242 |
-
}();
|
| 14243 |
-
|
| 14244 |
-
|
| 14245 |
-
|
| 14246 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 14247 |
-
|
| 14248 |
-
/***/ }),
|
| 14249 |
-
/* 230 */
|
| 14250 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 14251 |
-
|
| 14252 |
-
"use strict";
|
| 14253 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return serializeStyles; });
|
| 14254 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__ = __webpack_require__(483);
|
| 14255 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(484);
|
| 14256 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__ = __webpack_require__(485);
|
| 14257 |
-
|
| 14258 |
-
|
| 14259 |
-
|
| 14260 |
-
|
| 14261 |
-
var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
|
| 14262 |
-
var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
|
| 14263 |
-
var hyphenateRegex = /[A-Z]|^ms/g;
|
| 14264 |
-
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
| 14265 |
-
|
| 14266 |
-
var isCustomProperty = function isCustomProperty(property) {
|
| 14267 |
-
return property.charCodeAt(1) === 45;
|
| 14268 |
-
};
|
| 14269 |
-
|
| 14270 |
-
var isProcessableValue = function isProcessableValue(value) {
|
| 14271 |
-
return value != null && typeof value !== 'boolean';
|
| 14272 |
-
};
|
| 14273 |
-
|
| 14274 |
-
var processStyleName = Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__["a" /* default */])(function (styleName) {
|
| 14275 |
-
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
|
| 14276 |
-
});
|
| 14277 |
-
|
| 14278 |
-
var processStyleValue = function processStyleValue(key, value) {
|
| 14279 |
-
switch (key) {
|
| 14280 |
-
case 'animation':
|
| 14281 |
-
case 'animationName':
|
| 14282 |
-
{
|
| 14283 |
-
if (typeof value === 'string') {
|
| 14284 |
-
return value.replace(animationRegex, function (match, p1, p2) {
|
| 14285 |
-
cursor = {
|
| 14286 |
-
name: p1,
|
| 14287 |
-
styles: p2,
|
| 14288 |
-
next: cursor
|
| 14289 |
-
};
|
| 14290 |
-
return p1;
|
| 14291 |
-
});
|
| 14292 |
-
}
|
| 14293 |
-
}
|
| 14294 |
-
}
|
| 14295 |
-
|
| 14296 |
-
if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
|
| 14297 |
-
return value + 'px';
|
| 14298 |
-
}
|
| 14299 |
-
|
| 14300 |
-
return value;
|
| 14301 |
-
};
|
| 14302 |
-
|
| 14303 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 14304 |
-
var contentValuePattern = /(attr|calc|counters?|url)\(/;
|
| 14305 |
-
var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
|
| 14306 |
-
var oldProcessStyleValue = processStyleValue;
|
| 14307 |
-
var msPattern = /^-ms-/;
|
| 14308 |
-
var hyphenPattern = /-(.)/g;
|
| 14309 |
-
var hyphenatedCache = {};
|
| 14310 |
-
|
| 14311 |
-
processStyleValue = function processStyleValue(key, value) {
|
| 14312 |
-
if (key === 'content') {
|
| 14313 |
-
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
| 14314 |
-
console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
| 14315 |
-
}
|
| 14316 |
-
}
|
| 14317 |
-
|
| 14318 |
-
var processed = oldProcessStyleValue(key, value);
|
| 14319 |
-
|
| 14320 |
-
if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
|
| 14321 |
-
hyphenatedCache[key] = true;
|
| 14322 |
-
console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
|
| 14323 |
-
return _char.toUpperCase();
|
| 14324 |
-
}) + "?");
|
| 14325 |
-
}
|
| 14326 |
-
|
| 14327 |
-
return processed;
|
| 14328 |
-
};
|
| 14329 |
-
}
|
| 14330 |
-
|
| 14331 |
-
var shouldWarnAboutInterpolatingClassNameFromCss = true;
|
| 14332 |
-
|
| 14333 |
-
function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) {
|
| 14334 |
-
if (interpolation == null) {
|
| 14335 |
-
return '';
|
| 14336 |
-
}
|
| 14337 |
-
|
| 14338 |
-
if (interpolation.__emotion_styles !== undefined) {
|
| 14339 |
-
if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
|
| 14340 |
-
throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
|
| 14341 |
-
}
|
| 14342 |
-
|
| 14343 |
-
return interpolation;
|
| 14344 |
-
}
|
| 14345 |
-
|
| 14346 |
-
switch (typeof interpolation) {
|
| 14347 |
-
case 'boolean':
|
| 14348 |
-
{
|
| 14349 |
-
return '';
|
| 14350 |
-
}
|
| 14351 |
-
|
| 14352 |
-
case 'object':
|
| 14353 |
-
{
|
| 14354 |
-
if (interpolation.anim === 1) {
|
| 14355 |
-
cursor = {
|
| 14356 |
-
name: interpolation.name,
|
| 14357 |
-
styles: interpolation.styles,
|
| 14358 |
-
next: cursor
|
| 14359 |
-
};
|
| 14360 |
-
return interpolation.name;
|
| 14361 |
-
}
|
| 14362 |
-
|
| 14363 |
-
if (interpolation.styles !== undefined) {
|
| 14364 |
-
var next = interpolation.next;
|
| 14365 |
-
|
| 14366 |
-
if (next !== undefined) {
|
| 14367 |
-
// not the most efficient thing ever but this is a pretty rare case
|
| 14368 |
-
// and there will be very few iterations of this generally
|
| 14369 |
-
while (next !== undefined) {
|
| 14370 |
-
cursor = {
|
| 14371 |
-
name: next.name,
|
| 14372 |
-
styles: next.styles,
|
| 14373 |
-
next: cursor
|
| 14374 |
-
};
|
| 14375 |
-
next = next.next;
|
| 14376 |
-
}
|
| 14377 |
-
}
|
| 14378 |
-
|
| 14379 |
-
var styles = interpolation.styles + ";";
|
| 14380 |
-
|
| 14381 |
-
if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
|
| 14382 |
-
styles += interpolation.map;
|
| 14383 |
-
}
|
| 14384 |
-
|
| 14385 |
-
return styles;
|
| 14386 |
-
}
|
| 14387 |
-
|
| 14388 |
-
return createStringFromObject(mergedProps, registered, interpolation);
|
| 14389 |
-
}
|
| 14390 |
-
|
| 14391 |
-
case 'function':
|
| 14392 |
-
{
|
| 14393 |
-
if (mergedProps !== undefined) {
|
| 14394 |
-
var previousCursor = cursor;
|
| 14395 |
-
var result = interpolation(mergedProps);
|
| 14396 |
-
cursor = previousCursor;
|
| 14397 |
-
return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation);
|
| 14398 |
-
} else if (process.env.NODE_ENV !== 'production') {
|
| 14399 |
-
console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
|
| 14400 |
-
}
|
| 14401 |
-
|
| 14402 |
-
break;
|
| 14403 |
-
}
|
| 14404 |
-
|
| 14405 |
-
case 'string':
|
| 14406 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 14407 |
-
var matched = [];
|
| 14408 |
-
var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
|
| 14409 |
-
var fakeVarName = "animation" + matched.length;
|
| 14410 |
-
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
|
| 14411 |
-
return "${" + fakeVarName + "}";
|
| 14412 |
-
});
|
| 14413 |
-
|
| 14414 |
-
if (matched.length) {
|
| 14415 |
-
console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
|
| 14416 |
-
}
|
| 14417 |
-
}
|
| 14418 |
-
|
| 14419 |
-
break;
|
| 14420 |
-
} // finalize string values (regular strings and functions interpolated into css calls)
|
| 14421 |
-
|
| 14422 |
-
|
| 14423 |
-
if (registered == null) {
|
| 14424 |
-
return interpolation;
|
| 14425 |
-
}
|
| 14426 |
-
|
| 14427 |
-
var cached = registered[interpolation];
|
| 14428 |
-
|
| 14429 |
-
if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) {
|
| 14430 |
-
console.error('Interpolating a className from css`` is not recommended and will cause problems with composition.\n' + 'Interpolating a className from css`` will be completely unsupported in a future major version of Emotion');
|
| 14431 |
-
shouldWarnAboutInterpolatingClassNameFromCss = false;
|
| 14432 |
-
}
|
| 14433 |
-
|
| 14434 |
-
return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation;
|
| 14435 |
-
}
|
| 14436 |
-
|
| 14437 |
-
function createStringFromObject(mergedProps, registered, obj) {
|
| 14438 |
-
var string = '';
|
| 14439 |
-
|
| 14440 |
-
if (Array.isArray(obj)) {
|
| 14441 |
-
for (var i = 0; i < obj.length; i++) {
|
| 14442 |
-
string += handleInterpolation(mergedProps, registered, obj[i], false);
|
| 14443 |
-
}
|
| 14444 |
-
} else {
|
| 14445 |
-
for (var _key in obj) {
|
| 14446 |
-
var value = obj[_key];
|
| 14447 |
-
|
| 14448 |
-
if (typeof value !== 'object') {
|
| 14449 |
-
if (registered != null && registered[value] !== undefined) {
|
| 14450 |
-
string += _key + "{" + registered[value] + "}";
|
| 14451 |
-
} else if (isProcessableValue(value)) {
|
| 14452 |
-
string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
|
| 14453 |
-
}
|
| 14454 |
-
} else {
|
| 14455 |
-
if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
|
| 14456 |
-
throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
|
| 14457 |
-
}
|
| 14458 |
-
|
| 14459 |
-
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
|
| 14460 |
-
for (var _i = 0; _i < value.length; _i++) {
|
| 14461 |
-
if (isProcessableValue(value[_i])) {
|
| 14462 |
-
string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
|
| 14463 |
-
}
|
| 14464 |
-
}
|
| 14465 |
-
} else {
|
| 14466 |
-
var interpolated = handleInterpolation(mergedProps, registered, value, false);
|
| 14467 |
-
|
| 14468 |
-
switch (_key) {
|
| 14469 |
-
case 'animation':
|
| 14470 |
-
case 'animationName':
|
| 14471 |
-
{
|
| 14472 |
-
string += processStyleName(_key) + ":" + interpolated + ";";
|
| 14473 |
-
break;
|
| 14474 |
-
}
|
| 14475 |
-
|
| 14476 |
-
default:
|
| 14477 |
-
{
|
| 14478 |
-
if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
|
| 14479 |
-
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
| 14480 |
-
}
|
| 14481 |
-
|
| 14482 |
-
string += _key + "{" + interpolated + "}";
|
| 14483 |
-
}
|
| 14484 |
-
}
|
| 14485 |
-
}
|
| 14486 |
-
}
|
| 14487 |
-
}
|
| 14488 |
-
}
|
| 14489 |
-
|
| 14490 |
-
return string;
|
| 14491 |
-
}
|
| 14492 |
-
|
| 14493 |
-
var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
|
| 14494 |
-
var sourceMapPattern;
|
| 14495 |
-
|
| 14496 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 14497 |
-
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//;
|
| 14498 |
-
} // this is the cursor for keyframes
|
| 14499 |
-
// keyframes are stored on the SerializedStyles object as a linked list
|
| 14500 |
-
|
| 14501 |
-
|
| 14502 |
-
var cursor;
|
| 14503 |
-
var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
| 14504 |
-
if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
|
| 14505 |
-
return args[0];
|
| 14506 |
-
}
|
| 14507 |
-
|
| 14508 |
-
var stringMode = true;
|
| 14509 |
-
var styles = '';
|
| 14510 |
-
cursor = undefined;
|
| 14511 |
-
var strings = args[0];
|
| 14512 |
-
|
| 14513 |
-
if (strings == null || strings.raw === undefined) {
|
| 14514 |
-
stringMode = false;
|
| 14515 |
-
styles += handleInterpolation(mergedProps, registered, strings, false);
|
| 14516 |
-
} else {
|
| 14517 |
-
if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
|
| 14518 |
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
| 14519 |
-
}
|
| 14520 |
-
|
| 14521 |
-
styles += strings[0];
|
| 14522 |
-
} // we start at 1 since we've already handled the first arg
|
| 14523 |
-
|
| 14524 |
-
|
| 14525 |
-
for (var i = 1; i < args.length; i++) {
|
| 14526 |
-
styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46);
|
| 14527 |
-
|
| 14528 |
-
if (stringMode) {
|
| 14529 |
-
if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
|
| 14530 |
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
| 14531 |
-
}
|
| 14532 |
-
|
| 14533 |
-
styles += strings[i];
|
| 14534 |
-
}
|
| 14535 |
-
}
|
| 14536 |
-
|
| 14537 |
-
var sourceMap;
|
| 14538 |
-
|
| 14539 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 14540 |
-
styles = styles.replace(sourceMapPattern, function (match) {
|
| 14541 |
-
sourceMap = match;
|
| 14542 |
-
return '';
|
| 14543 |
-
});
|
| 14544 |
-
} // using a global regex with .exec is stateful so lastIndex has to be reset each time
|
| 14545 |
-
|
| 14546 |
-
|
| 14547 |
-
labelPattern.lastIndex = 0;
|
| 14548 |
-
var identifierName = '';
|
| 14549 |
-
var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
|
| 14550 |
-
|
| 14551 |
-
while ((match = labelPattern.exec(styles)) !== null) {
|
| 14552 |
-
identifierName += '-' + // $FlowFixMe we know it's not null
|
| 14553 |
-
match[1];
|
| 14554 |
-
}
|
| 14555 |
-
|
| 14556 |
-
var name = Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__["a" /* default */])(styles) + identifierName;
|
| 14557 |
-
|
| 14558 |
-
if (process.env.NODE_ENV !== 'production') {
|
| 14559 |
-
// $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
|
| 14560 |
-
return {
|
| 14561 |
-
name: name,
|
| 14562 |
-
styles: styles,
|
| 14563 |
-
map: sourceMap,
|
| 14564 |
-
next: cursor,
|
| 14565 |
-
toString: function toString() {
|
| 14566 |
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
| 14567 |
-
}
|
| 14568 |
-
};
|
| 14569 |
-
}
|
| 14570 |
-
|
| 14571 |
-
return {
|
| 14572 |
-
name: name,
|
| 14573 |
-
styles: styles,
|
| 14574 |
-
next: cursor
|
| 14575 |
-
};
|
| 14576 |
-
};
|
| 14577 |
-
|
| 14578 |
-
|
| 14579 |
-
|
| 14580 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 14581 |
-
|
| 14582 |
-
/***/ }),
|
| 14583 |
-
/* 231 */
|
| 14584 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
| 14585 |
-
|
| 14586 |
-
"use strict";
|
| 14587 |
-
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MenuPlacer; });
|
| 14588 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return containerCSS; });
|
| 14589 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return css; });
|
| 14590 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return clearIndicatorCSS; });
|
| 14591 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dropdownIndicatorCSS; });
|
| 14592 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return groupHeadingCSS; });
|
| 14593 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return indicatorSeparatorCSS; });
|
| 14594 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return groupCSS; });
|
| 14595 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return inputCSS; });
|
| 14596 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return indicatorsContainerCSS; });
|
| 14597 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return loadingMessageCSS; });
|
| 14598 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return menuListCSS; });
|
| 14599 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return loadingIndicatorCSS; });
|
| 14600 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return menuCSS; });
|
| 14601 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return menuPortalCSS; });
|
| 14602 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return multiValueCSS; });
|
| 14603 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return multiValueLabelCSS; });
|
| 14604 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return multiValueRemoveCSS; });
|
| 14605 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return noOptionsMessageCSS; });
|
| 14606 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return optionCSS; });
|
| 14607 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return placeholderCSS; });
|
| 14608 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return css$1; });
|
| 14609 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return valueContainerCSS; });
|
| 14610 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return defaultComponents; });
|
| 14611 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return exportedEqual; });
|
| 14612 |
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return components; });
|
| 14613 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
| 14614 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
| 14615 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_core__ = __webpack_require__(128);
|
| 14616 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(11);
|
| 14617 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__);
|
| 14618 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
|
| 14619 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
|
| 14620 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(129);
|
| 14621 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_css__ = __webpack_require__(65);
|
| 14622 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize__ = __webpack_require__(232);
|
| 14623 |
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_input_autosize__);
|
| 14624 |
-
|
| 14625 |
-
|
| 14626 |
-
|
| 14627 |
-
|
| 14628 |
-
|
| 14629 |
-
|
| 14630 |
-
|
| 14631 |
-
|
| 14632 |
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
| 14633 |
-
|
| 14634 |
-
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
| 14635 |
-
function getMenuPlacement(_ref) {
|
| 14636 |
-
var maxHeight = _ref.maxHeight,
|
| 14637 |
-
menuEl = _ref.menuEl,
|
| 14638 |
-
minHeight = _ref.minHeight,
|
| 14639 |
-
placement = _ref.placement,
|
| 14640 |
-
shouldScroll = _ref.shouldScroll,
|
| 14641 |
-
isFixedPosition = _ref.isFixedPosition,
|
| 14642 |
-
theme = _ref.theme;
|
| 14643 |
-
var spacing = theme.spacing;
|
| 14644 |
-
var scrollParent = Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["a"])(menuEl);
|
| 14645 |
-
var defaultState = {
|
| 14646 |
-
placement: 'bottom',
|
| 14647 |
-
maxHeight: maxHeight
|
| 14648 |
-
}; // something went wrong, return default state
|
| 14649 |
-
|
| 14650 |
-
if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when
|
| 14651 |
-
// the menu is rendered
|
| 14652 |
-
|
| 14653 |
-
var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),
|
| 14654 |
-
scrollHeight = _scrollParent$getBoun.height;
|
| 14655 |
-
|
| 14656 |
-
var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),
|
| 14657 |
-
menuBottom = _menuEl$getBoundingCl.bottom,
|
| 14658 |
-
menuHeight = _menuEl$getBoundingCl.height,
|
| 14659 |
-
menuTop = _menuEl$getBoundingCl.top;
|
| 14660 |
-
|
| 14661 |
-
var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),
|
| 14662 |
-
containerTop = _menuEl$offsetParent$.top;
|
| 14663 |
-
|
| 14664 |
-
var viewHeight = window.innerHeight;
|
| 14665 |
-
var scrollTop = Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["b"])(scrollParent);
|
| 14666 |
-
var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
|
| 14667 |
-
var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
|
| 14668 |
-
var viewSpaceAbove = containerTop - marginTop;
|
| 14669 |
-
var viewSpaceBelow = viewHeight - menuTop;
|
| 14670 |
-
var scrollSpaceAbove = viewSpaceAbove + scrollTop;
|
| 14671 |
-
var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
|
| 14672 |
-
var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
|
| 14673 |
-
var scrollUp = scrollTop + menuTop - marginTop;
|
| 14674 |
-
var scrollDuration = 160;
|
| 14675 |
-
|
| 14676 |
-
switch (placement) {
|
| 14677 |
-
case 'auto':
|
| 14678 |
-
case 'bottom':
|
| 14679 |
-
// 1: the menu will fit, do nothing
|
| 14680 |
-
if (viewSpaceBelow >= menuHeight) {
|
| 14681 |
-
return {
|
| 14682 |
-
placement: 'bottom',
|
| 14683 |
-
maxHeight: maxHeight
|
| 14684 |
-
};
|
| 14685 |
-
} // 2: the menu will fit, if scrolled
|
| 14686 |
-
|
| 14687 |
-
|
| 14688 |
-
if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
|
| 14689 |
-
if (shouldScroll) {
|
| 14690 |
-
Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"])(scrollParent, scrollDown, scrollDuration);
|
| 14691 |
-
}
|
| 14692 |
-
|
| 14693 |
-
return {
|
| 14694 |
-
placement: 'bottom',
|
| 14695 |
-
maxHeight: maxHeight
|
| 14696 |
-
};
|
| 14697 |
-
} // 3: the menu will fit, if constrained
|
| 14698 |
-
|
| 14699 |
-
|
| 14700 |
-
if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
|
| 14701 |
-
if (shouldScroll) {
|
| 14702 |
-
Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"])(scrollParent, scrollDown, scrollDuration);
|
| 14703 |
-
} // we want to provide as much of the menu as possible to the user,
|
| 14704 |
-
// so give them whatever is available below rather than the minHeight.
|
| 14705 |
-
|
| 14706 |
-
|
| 14707 |
-
var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
|
| 14708 |
-
return {
|
| 14709 |
-
placement: 'bottom',
|
| 14710 |
-
maxHeight: constrainedHeight
|
| 14711 |
-
};
|
| 14712 |
-
} // 4. Forked beviour when there isn't enough space below
|
| 14713 |
-
// AUTO: flip the menu, render above
|
| 14714 |
-
|
| 14715 |
-
|
| 14716 |
-
if (placement === 'auto' || isFixedPosition) {
|
| 14717 |
-
// may need to be constrained after flipping
|
| 14718 |
-
var _constrainedHeight = maxHeight;
|
| 14719 |
-
var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
|
| 14720 |
-
|
| 14721 |
-
if (spaceAbove >= minHeight) {
|
| 14722 |
-
_constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight);
|
| 14723 |
-
}
|
| 14724 |
-
|
| 14725 |
-
return {
|
| 14726 |
-
placement: 'top',
|
| 14727 |
-
maxHeight: _constrainedHeight
|
| 14728 |
-
};
|
| 14729 |
-
} // BOTTOM: allow browser to increase scrollable area and immediately set scroll
|
| 14730 |
-
|
| 14731 |
-
|
| 14732 |
-
if (placement === 'bottom') {
|
| 14733 |
-
Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["l" /* s */])(scrollParent, scrollDown);
|
| 14734 |
-
return {
|
| 14735 |
-
placement: 'bottom',
|
| 14736 |
-
maxHeight: maxHeight
|
| 14737 |
-
};
|
| 14738 |
-
}
|
| 14739 |
-
|
| 14740 |
-
break;
|
| 14741 |
-
|
| 14742 |
-
case 'top':
|
| 14743 |
-
// 1: the menu will fit, do nothing
|
| 14744 |
-
if (viewSpaceAbove >= menuHeight) {
|
| 14745 |
-
return {
|
| 14746 |
-
placement: 'top',
|
| 14747 |
-
maxHeight: maxHeight
|
| 14748 |
-
};
|
| 14749 |
-
} // 2: the menu will fit, if scrolled
|
| 14750 |
-
|
| 14751 |
-
|
| 14752 |
-
if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
|
| 14753 |
-
if (shouldScroll) {
|
| 14754 |
-
Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"])(scrollParent, scrollUp, scrollDuration);
|
| 14755 |
-
}
|
| 14756 |
-
|
| 14757 |
-
return {
|
| 14758 |
-
placement: 'top',
|
| 14759 |
-
maxHeight: maxHeight
|
| 14760 |
-
};
|
| 14761 |
-
} // 3: the menu will fit, if constrained
|
| 14762 |
-
|
| 14763 |
-
|
| 14764 |
-
if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
|
| 14765 |
-
var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user,
|
| 14766 |
-
// so give them whatever is available below rather than the minHeight.
|
| 14767 |
-
|
| 14768 |
-
if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
|
| 14769 |
-
_constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;
|
| 14770 |
-
}
|
| 14771 |
-
|
| 14772 |
-
if (shouldScroll) {
|
| 14773 |
-
Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"])(scrollParent, scrollUp, scrollDuration);
|
| 14774 |
-
}
|
| 14775 |
-
|
| 14776 |
-
return {
|
| 14777 |
-
placement: 'top',
|
| 14778 |
-
maxHeight: _constrainedHeight2
|
| 14779 |
-
};
|
| 14780 |
-
} // 4. not enough space, the browser WILL NOT increase scrollable area when
|
| 14781 |
-
// absolutely positioned element rendered above the viewport (only below).
|
| 14782 |
-
// Flip the menu, render below
|
| 14783 |
-
|
| 14784 |
-
|
| 14785 |
-
return {
|
| 14786 |
-
placement: 'bottom',
|
| 14787 |
-
maxHeight: maxHeight
|
| 14788 |
-
};
|
| 14789 |
-
|
| 14790 |
-
default:
|
| 14791 |
-
throw new Error("Invalid placement provided \"" + placement + "\".");
|
| 14792 |
-
} // fulfil contract with flow: implicit return value of undefined
|
| 14793 |
-
|
| 14794 |
-
|
| 14795 |
-
return defaultState;
|
| 14796 |
-
} // Menu Component
|
| 14797 |
-
// ------------------------------
|
| 14798 |
-
|
| 14799 |
-
function alignToControl(placement) {
|
| 14800 |
-
var placementToCSSProp = {
|
| 14801 |
-
bottom: 'top',
|
| 14802 |
-
top: 'bottom'
|
| 14803 |
-
};
|
| 14804 |
-
return placement ? placementToCSSProp[placement] : 'bottom';
|
| 14805 |
-
}
|
| 14806 |
-
|
| 14807 |
-
var coercePlacement = function coercePlacement(p) {
|
| 14808 |
-
return p === 'auto' ? 'bottom' : p;
|
| 14809 |
-
};
|
| 14810 |
-
|
| 14811 |
-
var menuCSS = function menuCSS(_ref2) {
|
| 14812 |
-
var _ref3;
|
| 14813 |
-
|
| 14814 |
-
var placement = _ref2.placement,
|
| 14815 |
-
_ref2$theme = _ref2.theme,
|
| 14816 |
-
borderRadius = _ref2$theme.borderRadius,
|
| 14817 |
-
spacing = _ref2$theme.spacing,
|
| 14818 |
-
colors = _ref2$theme.colors;
|
| 14819 |
-
return _ref3 = {
|
| 14820 |
-
label: 'menu'
|
| 14821 |
-
}, _ref3[alignToControl(placement)] = '100%', _ref3.backgroundColor = colors.neutral0, _ref3.borderRadius = borderRadius, _ref3.boxShadow = '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)', _ref3.marginBottom = spacing.menuGutter, _ref3.marginTop = spacing.menuGutter, _ref3.position = 'absolute', _ref3.width = '100%', _ref3.zIndex = 1, _ref3;
|
| 14822 |
-
}; // NOTE: internal only
|
| 14823 |
-
|
| 14824 |
-
var MenuPlacer =
|
| 14825 |
-
/*#__PURE__*/
|
| 14826 |
-
function (_Component) {
|
| 14827 |
-
_inheritsLoose(MenuPlacer, _Component);
|
| 14828 |
-
|
| 14829 |
-
function MenuPlacer() {
|
| 14830 |
-
var _this;
|
| 14831 |
-
|
| 14832 |
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 14833 |
-
args[_key] = arguments[_key];
|
| 14834 |
-
}
|
| 14835 |
-
|
| 14836 |
-
_this = _Component.call.apply(_Component, [this].concat(args)) || this;
|
| 14837 |
-
_this.state = {
|
| 14838 |
-
maxHeight: _this.props.maxMenuHeight,
|
| 14839 |
-
placement: null
|
| 14840 |
-
};
|
| 14841 |
-
|
| 14842 |
-
_this.getPlacement = function (ref) {
|
| 14843 |
-
var _this$props = _this.props,
|
| 14844 |
-
minMenuHeight = _this$props.minMenuHeight,
|
| 14845 |
-
maxMenuHeight = _this$props.maxMenuHeight,
|
| 14846 |
-
menuPlacement = _this$props.menuPlacement,
|
| 14847 |
-
menuPosition = _this$props.menuPosition,
|
| 14848 |
-
menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,
|
| 14849 |
-
theme = _this$props.theme;
|
| 14850 |
-
var getPortalPlacement = _this.context.getPortalPlacement;
|
| 14851 |
-
if (!ref) return; // DO NOT scroll if position is fixed
|
| 14852 |
-
|
| 14853 |
-
var isFixedPosition = menuPosition === 'fixed';
|
| 14854 |
-
var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;
|
| 14855 |
-
var state = getMenuPlacement({
|
| 14856 |
-
maxHeight: maxMenuHeight,
|
| 14857 |
-
menuEl: ref,
|
| 14858 |
-
minHeight: minMenuHeight,
|
| 14859 |
-
placement: menuPlacement,
|
| 14860 |
-
shouldScroll: shouldScroll,
|
| 14861 |
-
isFixedPosition: isFixedPosition,
|
| 14862 |
-
theme: theme
|
| 14863 |
-
});
|
| 14864 |
-
if (getPortalPlacement) getPortalPlacement(state);
|
| 14865 |
-
|
| 14866 |
-
_this.setState(state);
|
| 14867 |
-
};
|
| 14868 |
-
|
| 14869 |
-
_this.getUpdatedProps = function () {
|
| 14870 |
-
var menuPlacement = _this.props.menuPlacement;
|
| 14871 |
-
var placement = _this.state.placement || coercePlacement(menuPlacement);
|
| 14872 |
-
return _extends({}, _this.props, {
|
| 14873 |
-
placement: placement,
|
| 14874 |
-
maxHeight: _this.state.maxHeight
|
| 14875 |
-
});
|
| 14876 |
-
};
|
| 14877 |
-
|
| 14878 |
-
return _this;
|
| 14879 |
-
}
|
| 14880 |
-
|
| 14881 |
-
var _proto = MenuPlacer.prototype;
|
| 14882 |
-
|
| 14883 |
-
_proto.render = function render() {
|
| 14884 |
-
var children = this.props.children;
|
| 14885 |
-
return children({
|
| 14886 |
-
ref: this.getPlacement,
|
| 14887 |
-
placerProps: this.getUpdatedProps()
|
| 14888 |
-
});
|
| 14889 |
-
};
|
| 14890 |
-
|
| 14891 |
-
return MenuPlacer;
|
| 14892 |
-
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
| 14893 |
-
MenuPlacer.contextTypes = {
|
| 14894 |
-
getPortalPlacement: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func
|
| 14895 |
-
};
|
| 14896 |
-
|
| 14897 |
-
var Menu = function Menu(props) {
|
| 14898 |
-
var children = props.children,
|
| 14899 |
-
className = props.className,
|
| 14900 |
-
cx = props.cx,
|
| 14901 |
-
getStyles = props.getStyles,
|
| 14902 |
-
innerRef = props.innerRef,
|
| 14903 |
-
innerProps = props.innerProps;
|
| 14904 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends({
|
| 14905 |
-
css: getStyles('menu', props),
|
| 14906 |
-
className: cx({
|
| 14907 |
-
menu: true
|
| 14908 |
-
}, className)
|
| 14909 |
-
}, innerProps, {
|
| 14910 |
-
ref: innerRef
|
| 14911 |
-
}), children);
|
| 14912 |
-
};
|
| 14913 |
-
// Menu List
|
| 14914 |
-
// ==============================
|
| 14915 |
-
|
| 14916 |
-
var menuListCSS = function menuListCSS(_ref4) {
|
| 14917 |
-
var maxHeight = _ref4.maxHeight,
|
| 14918 |
-
baseUnit = _ref4.theme.spacing.baseUnit;
|
| 14919 |
-
return {
|
| 14920 |
-
maxHeight: maxHeight,
|
| 14921 |
-
overflowY: 'auto',
|
| 14922 |
-
paddingBottom: baseUnit,
|
| 14923 |
-
paddingTop: baseUnit,
|
| 14924 |
-
position: 'relative',
|
| 14925 |
-
// required for offset[Height, Top] > keyboard scroll
|
| 14926 |
-
WebkitOverflowScrolling: 'touch'
|
| 14927 |
-
};
|
| 14928 |
-
};
|
| 14929 |
-
var MenuList = function MenuList(props) {
|
| 14930 |
-
var children = props.children,
|
| 14931 |
-
className = props.className,
|
| 14932 |
-
cx = props.cx,
|
| 14933 |
-
getStyles = props.getStyles,
|
| 14934 |
-
isMulti = props.isMulti,
|
| 14935 |
-
innerRef = props.innerRef;
|
| 14936 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
|
| 14937 |
-
css: getStyles('menuList', props),
|
| 14938 |
-
className: cx({
|
| 14939 |
-
'menu-list': true,
|
| 14940 |
-
'menu-list--is-multi': isMulti
|
| 14941 |
-
}, className),
|
| 14942 |
-
ref: innerRef
|
| 14943 |
-
}, children);
|
| 14944 |
-
}; // ==============================
|
| 14945 |
-
// Menu Notices
|
| 14946 |
-
// ==============================
|
| 14947 |
-
|
| 14948 |
-
var noticeCSS = function noticeCSS(_ref5) {
|
| 14949 |
-
var _ref5$theme = _ref5.theme,
|
| 14950 |
-
baseUnit = _ref5$theme.spacing.baseUnit,
|
| 14951 |
-
colors = _ref5$theme.colors;
|
| 14952 |
-
return {
|
| 14953 |
-
color: colors.neutral40,
|
| 14954 |
-
padding: baseUnit * 2 + "px " + baseUnit * 3 + "px",
|
| 14955 |
-
textAlign: 'center'
|
| 14956 |
-
};
|
| 14957 |
-
};
|
| 14958 |
-
|
| 14959 |
-
var noOptionsMessageCSS = noticeCSS;
|
| 14960 |
-
var loadingMessageCSS = noticeCSS;
|
| 14961 |
-
var NoOptionsMessage = function NoOptionsMessage(props) {
|
| 14962 |
-
var children = props.children,
|
| 14963 |
-
className = props.className,
|
| 14964 |
-
cx = props.cx,
|
| 14965 |
-
getStyles = props.getStyles,
|
| 14966 |
-
innerProps = props.innerProps;
|
| 14967 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends({
|
| 14968 |
-
css: getStyles('noOptionsMessage', props),
|
| 14969 |
-
className: cx({
|
| 14970 |
-
'menu-notice': true,
|
| 14971 |
-
'menu-notice--no-options': true
|
| 14972 |
-
}, className)
|
| 14973 |
-
}, innerProps), children);
|
| 14974 |
-
};
|
| 14975 |
-
NoOptionsMessage.defaultProps = {
|
| 14976 |
-
children: 'No options'
|
| 14977 |
-
};
|
| 14978 |
-
var LoadingMessage = function LoadingMessage(props) {
|
| 14979 |
-
var children = props.children,
|
| 14980 |
-
className = props.className,
|
| 14981 |
-
cx = props.cx,
|
| 14982 |
-
getStyles = props.getStyles,
|
| 14983 |
-
innerProps = props.innerProps;
|
| 14984 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends({
|
| 14985 |
-
css: getStyles('loadingMessage', props),
|
| 14986 |
-
className: cx({
|
| 14987 |
-
'menu-notice': true,
|
| 14988 |
-
'menu-notice--loading': true
|
| 14989 |
-
}, className)
|
| 14990 |
-
}, innerProps), children);
|
| 14991 |
-
};
|
| 14992 |
-
LoadingMessage.defaultProps = {
|
| 14993 |
-
children: 'Loading...'
|
| 14994 |
-
}; // ==============================
|
| 14995 |
-
// Menu Portal
|
| 14996 |
-
// ==============================
|
| 14997 |
-
|
| 14998 |
-
var menuPortalCSS = function menuPortalCSS(_ref6) {
|
| 14999 |
-
var rect = _ref6.rect,
|
| 15000 |
-
offset = _ref6.offset,
|
| 15001 |
-
position = _ref6.position;
|
| 15002 |
-
return {
|
| 15003 |
-
left: rect.left,
|
| 15004 |
-
position: position,
|
| 15005 |
-
top: offset,
|
| 15006 |
-
width: rect.width,
|
| 15007 |
-
zIndex: 1
|
| 15008 |
-
};
|
| 15009 |
-
};
|
| 15010 |
-
var MenuPortal =
|
| 15011 |
-
/*#__PURE__*/
|
| 15012 |
-
function (_Component2) {
|
| 15013 |
-
_inheritsLoose(MenuPortal, _Component2);
|
| 15014 |
-
|
| 15015 |
-
function MenuPortal() {
|
| 15016 |
-
var _this2;
|
| 15017 |
-
|
| 15018 |
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
| 15019 |
-
args[_key2] = arguments[_key2];
|
| 15020 |
-
}
|
| 15021 |
-
|
| 15022 |
-
_this2 = _Component2.call.apply(_Component2, [this].concat(args)) || this;
|
| 15023 |
-
_this2.state = {
|
| 15024 |
-
placement: null
|
| 15025 |
-
};
|
| 15026 |
-
|
| 15027 |
-
_this2.getPortalPlacement = function (_ref7) {
|
| 15028 |
-
var placement = _ref7.placement;
|
| 15029 |
-
var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed
|
| 15030 |
-
|
| 15031 |
-
if (placement !== initialPlacement) {
|
| 15032 |
-
_this2.setState({
|
| 15033 |
-
placement: placement
|
| 15034 |
-
});
|
| 15035 |
-
}
|
| 15036 |
-
};
|
| 15037 |
-
|
| 15038 |
-
return _this2;
|
| 15039 |
-
}
|
| 15040 |
-
|
| 15041 |
-
var _proto2 = MenuPortal.prototype;
|
| 15042 |
-
|
| 15043 |
-
_proto2.getChildContext = function getChildContext() {
|
| 15044 |
-
return {
|
| 15045 |
-
getPortalPlacement: this.getPortalPlacement
|
| 15046 |
-
};
|
| 15047 |
-
} // callback for occassions where the menu must "flip"
|
| 15048 |
-
;
|
| 15049 |
-
|
| 15050 |
-
_proto2.render = function render() {
|
| 15051 |
-
var _this$props2 = this.props,
|
| 15052 |
-
appendTo = _this$props2.appendTo,
|
| 15053 |
-
children = _this$props2.children,
|
| 15054 |
-
controlElement = _this$props2.controlElement,
|
| 15055 |
-
menuPlacement = _this$props2.menuPlacement,
|
| 15056 |
-
position = _this$props2.menuPosition,
|
| 15057 |
-
getStyles = _this$props2.getStyles;
|
| 15058 |
-
var isFixed = position === 'fixed'; // bail early if required elements aren't present
|
| 15059 |
-
|
| 15060 |
-
if (!appendTo && !isFixed || !controlElement) {
|
| 15061 |
-
return null;
|
| 15062 |
-
}
|
| 15063 |
-
|
| 15064 |
-
var placement = this.state.placement || coercePlacement(menuPlacement);
|
| 15065 |
-
var rect = Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["g"])(controlElement);
|
| 15066 |
-
var scrollDistance = isFixed ? 0 : window.pageYOffset;
|
| 15067 |
-
var offset = rect[placement] + scrollDistance;
|
| 15068 |
-
var state = {
|
| 15069 |
-
offset: offset,
|
| 15070 |
-
position: position,
|
| 15071 |
-
rect: rect
|
| 15072 |
-
}; // same wrapper element whether fixed or portalled
|
| 15073 |
-
|
| 15074 |
-
var menuWrapper = Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
|
| 15075 |
-
css: getStyles('menuPortal', state)
|
| 15076 |
-
}, children);
|
| 15077 |
-
return appendTo ? Object(__WEBPACK_IMPORTED_MODULE_2_react_dom__["createPortal"])(menuWrapper, appendTo) : menuWrapper;
|
| 15078 |
-
};
|
| 15079 |
-
|
| 15080 |
-
return MenuPortal;
|
| 15081 |
-
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
| 15082 |
-
MenuPortal.childContextTypes = {
|
| 15083 |
-
getPortalPlacement: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func
|
| 15084 |
-
};
|
| 15085 |
-
|
| 15086 |
-
var isArray = Array.isArray;
|
| 15087 |
-
var keyList = Object.keys;
|
| 15088 |
-
var hasProp = Object.prototype.hasOwnProperty;
|
| 15089 |
-
|
| 15090 |
-
function equal(a, b) {
|
| 15091 |
-
// fast-deep-equal index.js 2.0.1
|
| 15092 |
-
if (a === b) return true;
|
| 15093 |
-
|
| 15094 |
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
| 15095 |
-
var arrA = isArray(a),
|
| 15096 |
-
arrB = isArray(b),
|
| 15097 |
-
i,
|
| 15098 |
-
length,
|
| 15099 |
-
key;
|
| 15100 |
-
|
| 15101 |
-
if (arrA && arrB) {
|
| 15102 |
-
length = a.length;
|
| 15103 |
-
if (length != b.length) return false;
|
| 15104 |
-
|
| 15105 |
-
for (i = length; i-- !== 0;) {
|
| 15106 |
-
if (!equal(a[i], b[i])) return false;
|
| 15107 |
-
}
|
| 15108 |
-
|
| 15109 |
-
return true;
|
| 15110 |
-
}
|
| 15111 |
-
|
| 15112 |
-
if (arrA != arrB) return false;
|
| 15113 |
-
var dateA = a instanceof Date,
|
| 15114 |
-
dateB = b instanceof Date;
|
| 15115 |
-
if (dateA != dateB) return false;
|
| 15116 |
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
| 15117 |
-
var regexpA = a instanceof RegExp,
|
| 15118 |
-
regexpB = b instanceof RegExp;
|
| 15119 |
-
if (regexpA != regexpB) return false;
|
| 15120 |
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
| 15121 |
-
var keys = keyList(a);
|
| 15122 |
-
length = keys.length;
|
| 15123 |
-
|
| 15124 |
-
if (length !== keyList(b).length) {
|
| 15125 |
-
return false;
|
| 15126 |
-
}
|
| 15127 |
-
|
| 15128 |
-
for (i = length; i-- !== 0;) {
|
| 15129 |
-
if (!hasProp.call(b, keys[i])) return false;
|
| 15130 |
-
} // end fast-deep-equal
|
| 15131 |
-
// Custom handling for React
|
| 15132 |
-
|
| 15133 |
-
|
| 15134 |
-
for (i = length; i-- !== 0;) {
|
| 15135 |
-
key = keys[i];
|
| 15136 |
-
|
| 15137 |
-
if (key === '_owner' && a.$$typeof) {
|
| 15138 |
-
// React-specific: avoid traversing React elements' _owner.
|
| 15139 |
-
// _owner contains circular references
|
| 15140 |
-
// and is not needed when comparing the actual elements (and not their owners)
|
| 15141 |
-
// .$$typeof and ._store on just reasonable markers of a react element
|
| 15142 |
-
continue;
|
| 15143 |
-
} else {
|
| 15144 |
-
// all other properties should be traversed as usual
|
| 15145 |
-
if (!equal(a[key], b[key])) return false;
|
| 15146 |
-
}
|
| 15147 |
-
} // fast-deep-equal index.js 2.0.1
|
| 15148 |
-
|
| 15149 |
-
|
| 15150 |
-
return true;
|
| 15151 |
-
}
|
| 15152 |
-
|
| 15153 |
-
return a !== a && b !== b;
|
| 15154 |
-
} // end fast-deep-equal
|
| 15155 |
-
|
| 15156 |
-
|
| 15157 |
-
function exportedEqual(a, b) {
|
| 15158 |
-
try {
|
| 15159 |
-
return equal(a, b);
|
| 15160 |
-
} catch (error) {
|
| 15161 |
-
if (error.message && error.message.match(/stack|recursion/i)) {
|
| 15162 |
-
// warn on circular references, don't crash
|
| 15163 |
-
// browsers give this different errors name and messages:
|
| 15164 |
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
| 15165 |
-
// firefox: "InternalError", too much recursion"
|
| 15166 |
-
// edge: "Error", "Out of stack space"
|
| 15167 |
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
| 15168 |
-
return false;
|
| 15169 |
-
} // some other error. we should definitely know about these
|
| 15170 |
-
|
| 15171 |
-
|
| 15172 |
-
throw error;
|
| 15173 |
-
}
|
| 15174 |
-
}
|
| 15175 |
-
|
| 15176 |
-
function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
| 15177 |
-
var containerCSS = function containerCSS(_ref) {
|
| 15178 |
-
var isDisabled = _ref.isDisabled,
|
| 15179 |
-
isRtl = _ref.isRtl;
|
| 15180 |
-
return {
|
| 15181 |
-
label: 'container',
|
| 15182 |
-
direction: isRtl ? 'rtl' : null,
|
| 15183 |
-
pointerEvents: isDisabled ? 'none' : null,
|
| 15184 |
-
// cancel mouse events when disabled
|
| 15185 |
-
position: 'relative'
|
| 15186 |
-
};
|
| 15187 |
-
};
|
| 15188 |
-
var SelectContainer = function SelectContainer(props) {
|
| 15189 |
-
var children = props.children,
|
| 15190 |
-
className = props.className,
|
| 15191 |
-
cx = props.cx,
|
| 15192 |
-
getStyles = props.getStyles,
|
| 15193 |
-
innerProps = props.innerProps,
|
| 15194 |
-
isDisabled = props.isDisabled,
|
| 15195 |
-
isRtl = props.isRtl;
|
| 15196 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$1({
|
| 15197 |
-
css: getStyles('container', props),
|
| 15198 |
-
className: cx({
|
| 15199 |
-
'--is-disabled': isDisabled,
|
| 15200 |
-
'--is-rtl': isRtl
|
| 15201 |
-
}, className)
|
| 15202 |
-
}, innerProps), children);
|
| 15203 |
-
}; // ==============================
|
| 15204 |
-
// Value Container
|
| 15205 |
-
// ==============================
|
| 15206 |
-
|
| 15207 |
-
var valueContainerCSS = function valueContainerCSS(_ref2) {
|
| 15208 |
-
var spacing = _ref2.theme.spacing;
|
| 15209 |
-
return {
|
| 15210 |
-
alignItems: 'center',
|
| 15211 |
-
display: 'flex',
|
| 15212 |
-
flex: 1,
|
| 15213 |
-
flexWrap: 'wrap',
|
| 15214 |
-
padding: spacing.baseUnit / 2 + "px " + spacing.baseUnit * 2 + "px",
|
| 15215 |
-
WebkitOverflowScrolling: 'touch',
|
| 15216 |
-
position: 'relative',
|
| 15217 |
-
overflow: 'hidden'
|
| 15218 |
-
};
|
| 15219 |
-
};
|
| 15220 |
-
var ValueContainer = function ValueContainer(props) {
|
| 15221 |
-
var children = props.children,
|
| 15222 |
-
className = props.className,
|
| 15223 |
-
cx = props.cx,
|
| 15224 |
-
isMulti = props.isMulti,
|
| 15225 |
-
getStyles = props.getStyles,
|
| 15226 |
-
hasValue = props.hasValue;
|
| 15227 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
|
| 15228 |
-
css: getStyles('valueContainer', props),
|
| 15229 |
-
className: cx({
|
| 15230 |
-
'value-container': true,
|
| 15231 |
-
'value-container--is-multi': isMulti,
|
| 15232 |
-
'value-container--has-value': hasValue
|
| 15233 |
-
}, className)
|
| 15234 |
-
}, children);
|
| 15235 |
-
}; // ==============================
|
| 15236 |
-
// Indicator Container
|
| 15237 |
-
// ==============================
|
| 15238 |
-
|
| 15239 |
-
var indicatorsContainerCSS = function indicatorsContainerCSS() {
|
| 15240 |
-
return {
|
| 15241 |
-
alignItems: 'center',
|
| 15242 |
-
alignSelf: 'stretch',
|
| 15243 |
-
display: 'flex',
|
| 15244 |
-
flexShrink: 0
|
| 15245 |
-
};
|
| 15246 |
-
};
|
| 15247 |
-
var IndicatorsContainer = function IndicatorsContainer(props) {
|
| 15248 |
-
var children = props.children,
|
| 15249 |
-
className = props.className,
|
| 15250 |
-
cx = props.cx,
|
| 15251 |
-
getStyles = props.getStyles;
|
| 15252 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
|
| 15253 |
-
css: getStyles('indicatorsContainer', props),
|
| 15254 |
-
className: cx({
|
| 15255 |
-
indicators: true
|
| 15256 |
-
}, className)
|
| 15257 |
-
}, children);
|
| 15258 |
-
};
|
| 15259 |
-
|
| 15260 |
-
function _templateObject() {
|
| 15261 |
-
var data = _taggedTemplateLiteralLoose(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);
|
| 15262 |
-
|
| 15263 |
-
_templateObject = function _templateObject() {
|
| 15264 |
-
return data;
|
| 15265 |
-
};
|
| 15266 |
-
|
| 15267 |
-
return data;
|
| 15268 |
-
}
|
| 15269 |
-
|
| 15270 |
-
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
| 15271 |
-
|
| 15272 |
-
function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
| 15273 |
-
|
| 15274 |
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
| 15275 |
-
|
| 15276 |
-
var _ref2 = process.env.NODE_ENV === "production" ? {
|
| 15277 |
-
name: "19bqh2r",
|
| 15278 |
-
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"
|
| 15279 |
-
} : {
|
| 15280 |
-
name: "19bqh2r",
|
| 15281 |
-
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;",
|
| 15282 |
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */"
|
| 15283 |
-
};
|
| 15284 |
-
|
| 15285 |
-
// ==============================
|
| 15286 |
-
// Dropdown & Clear Icons
|
| 15287 |
-
// ==============================
|
| 15288 |
-
var Svg = function Svg(_ref) {
|
| 15289 |
-
var size = _ref.size,
|
| 15290 |
-
props = _objectWithoutPropertiesLoose(_ref, ["size"]);
|
| 15291 |
-
|
| 15292 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("svg", _extends$2({
|
| 15293 |
-
height: size,
|
| 15294 |
-
width: size,
|
| 15295 |
-
viewBox: "0 0 20 20",
|
| 15296 |
-
"aria-hidden": "true",
|
| 15297 |
-
focusable: "false",
|
| 15298 |
-
css: _ref2
|
| 15299 |
-
}, props));
|
| 15300 |
-
};
|
| 15301 |
-
|
| 15302 |
-
var CrossIcon = function CrossIcon(props) {
|
| 15303 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Svg, _extends$2({
|
| 15304 |
-
size: 20
|
| 15305 |
-
}, props), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("path", {
|
| 15306 |
-
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
| 15307 |
-
}));
|
| 15308 |
-
};
|
| 15309 |
-
var DownChevron = function DownChevron(props) {
|
| 15310 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Svg, _extends$2({
|
| 15311 |
-
size: 20
|
| 15312 |
-
}, props), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("path", {
|
| 15313 |
-
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
| 15314 |
-
}));
|
| 15315 |
-
}; // ==============================
|
| 15316 |
-
// Dropdown & Clear Buttons
|
| 15317 |
-
// ==============================
|
| 15318 |
-
|
| 15319 |
-
var baseCSS = function baseCSS(_ref3) {
|
| 15320 |
-
var isFocused = _ref3.isFocused,
|
| 15321 |
-
_ref3$theme = _ref3.theme,
|
| 15322 |
-
baseUnit = _ref3$theme.spacing.baseUnit,
|
| 15323 |
-
colors = _ref3$theme.colors;
|
| 15324 |
-
return {
|
| 15325 |
-
label: 'indicatorContainer',
|
| 15326 |
-
color: isFocused ? colors.neutral60 : colors.neutral20,
|
| 15327 |
-
display: 'flex',
|
| 15328 |
-
padding: baseUnit * 2,
|
| 15329 |
-
transition: 'color 150ms',
|
| 15330 |
-
':hover': {
|
| 15331 |
-
color: isFocused ? colors.neutral80 : colors.neutral40
|
| 15332 |
-
}
|
| 15333 |
-
};
|
| 15334 |
-
};
|
| 15335 |
-
|
| 15336 |
-
var dropdownIndicatorCSS = baseCSS;
|
| 15337 |
-
var DropdownIndicator = function DropdownIndicator(props) {
|
| 15338 |
-
var children = props.children,
|
| 15339 |
-
className = props.className,
|
| 15340 |
-
cx = props.cx,
|
| 15341 |
-
getStyles = props.getStyles,
|
| 15342 |
-
innerProps = props.innerProps;
|
| 15343 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$2({}, innerProps, {
|
| 15344 |
-
css: getStyles('dropdownIndicator', props),
|
| 15345 |
-
className: cx({
|
| 15346 |
-
indicator: true,
|
| 15347 |
-
'dropdown-indicator': true
|
| 15348 |
-
}, className)
|
| 15349 |
-
}), children || Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(DownChevron, null));
|
| 15350 |
-
};
|
| 15351 |
-
var clearIndicatorCSS = baseCSS;
|
| 15352 |
-
var ClearIndicator = function ClearIndicator(props) {
|
| 15353 |
-
var children = props.children,
|
| 15354 |
-
className = props.className,
|
| 15355 |
-
cx = props.cx,
|
| 15356 |
-
getStyles = props.getStyles,
|
| 15357 |
-
innerProps = props.innerProps;
|
| 15358 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$2({}, innerProps, {
|
| 15359 |
-
css: getStyles('clearIndicator', props),
|
| 15360 |
-
className: cx({
|
| 15361 |
-
indicator: true,
|
| 15362 |
-
'clear-indicator': true
|
| 15363 |
-
}, className)
|
| 15364 |
-
}), children || Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(CrossIcon, null));
|
| 15365 |
-
}; // ==============================
|
| 15366 |
-
// Separator
|
| 15367 |
-
// ==============================
|
| 15368 |
-
|
| 15369 |
-
var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4) {
|
| 15370 |
-
var isDisabled = _ref4.isDisabled,
|
| 15371 |
-
_ref4$theme = _ref4.theme,
|
| 15372 |
-
baseUnit = _ref4$theme.spacing.baseUnit,
|
| 15373 |
-
colors = _ref4$theme.colors;
|
| 15374 |
-
return {
|
| 15375 |
-
label: 'indicatorSeparator',
|
| 15376 |
-
alignSelf: 'stretch',
|
| 15377 |
-
backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,
|
| 15378 |
-
marginBottom: baseUnit * 2,
|
| 15379 |
-
marginTop: baseUnit * 2,
|
| 15380 |
-
width: 1
|
| 15381 |
-
};
|
| 15382 |
-
};
|
| 15383 |
-
var IndicatorSeparator = function IndicatorSeparator(props) {
|
| 15384 |
-
var className = props.className,
|
| 15385 |
-
cx = props.cx,
|
| 15386 |
-
getStyles = props.getStyles,
|
| 15387 |
-
innerProps = props.innerProps;
|
| 15388 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("span", _extends$2({}, innerProps, {
|
| 15389 |
-
css: getStyles('indicatorSeparator', props),
|
| 15390 |
-
className: cx({
|
| 15391 |
-
'indicator-separator': true
|
| 15392 |
-
}, className)
|
| 15393 |
-
}));
|
| 15394 |
-
}; // ==============================
|
| 15395 |
-
// Loading
|
| 15396 |
-
// ==============================
|
| 15397 |
-
|
| 15398 |
-
var loadingDotAnimations = Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["d" /* keyframes */])(_templateObject());
|
| 15399 |
-
var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) {
|
| 15400 |
-
var isFocused = _ref5.isFocused,
|
| 15401 |
-
size = _ref5.size,
|
| 15402 |
-
_ref5$theme = _ref5.theme,
|
| 15403 |
-
colors = _ref5$theme.colors,
|
| 15404 |
-
baseUnit = _ref5$theme.spacing.baseUnit;
|
| 15405 |
-
return {
|
| 15406 |
-
label: 'loadingIndicator',
|
| 15407 |
-
color: isFocused ? colors.neutral60 : colors.neutral20,
|
| 15408 |
-
display: 'flex',
|
| 15409 |
-
padding: baseUnit * 2,
|
| 15410 |
-
transition: 'color 150ms',
|
| 15411 |
-
alignSelf: 'center',
|
| 15412 |
-
fontSize: size,
|
| 15413 |
-
lineHeight: 1,
|
| 15414 |
-
marginRight: size,
|
| 15415 |
-
textAlign: 'center',
|
| 15416 |
-
verticalAlign: 'middle'
|
| 15417 |
-
};
|
| 15418 |
-
};
|
| 15419 |
-
|
| 15420 |
-
var LoadingDot = function LoadingDot(_ref6) {
|
| 15421 |
-
var delay = _ref6.delay,
|
| 15422 |
-
offset = _ref6.offset;
|
| 15423 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("span", {
|
| 15424 |
-
css:
|
| 15425 |
-
/*#__PURE__*/
|
| 15426 |
-
Object(__WEBPACK_IMPORTED_MODULE_5__emotion_css__["a" /* default */])({
|
| 15427 |
-
animation: loadingDotAnimations + " 1s ease-in-out " + delay + "ms infinite;",
|
| 15428 |
-
backgroundColor: 'currentColor',
|
| 15429 |
-
borderRadius: '1em',
|
| 15430 |
-
display: 'inline-block',
|
| 15431 |
-
marginLeft: offset ? '1em' : null,
|
| 15432 |
-
height: '1em',
|
| 15433 |
-
verticalAlign: 'top',
|
| 15434 |
-
width: '1em'
|
| 15435 |
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */")
|
| 15436 |
-
});
|
| 15437 |
-
};
|
| 15438 |
-
|
| 15439 |
-
var LoadingIndicator = function LoadingIndicator(props) {
|
| 15440 |
-
var className = props.className,
|
| 15441 |
-
cx = props.cx,
|
| 15442 |
-
getStyles = props.getStyles,
|
| 15443 |
-
innerProps = props.innerProps,
|
| 15444 |
-
isRtl = props.isRtl;
|
| 15445 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$2({}, innerProps, {
|
| 15446 |
-
css: getStyles('loadingIndicator', props),
|
| 15447 |
-
className: cx({
|
| 15448 |
-
indicator: true,
|
| 15449 |
-
'loading-indicator': true
|
| 15450 |
-
}, className)
|
| 15451 |
-
}), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(LoadingDot, {
|
| 15452 |
-
delay: 0,
|
| 15453 |
-
offset: isRtl
|
| 15454 |
-
}), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(LoadingDot, {
|
| 15455 |
-
delay: 160,
|
| 15456 |
-
offset: true
|
| 15457 |
-
}), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(LoadingDot, {
|
| 15458 |
-
delay: 320,
|
| 15459 |
-
offset: !isRtl
|
| 15460 |
-
}));
|
| 15461 |
-
};
|
| 15462 |
-
LoadingIndicator.defaultProps = {
|
| 15463 |
-
size: 4
|
| 15464 |
-
};
|
| 15465 |
-
|
| 15466 |
-
function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
| 15467 |
-
var css = function css(_ref) {
|
| 15468 |
-
var isDisabled = _ref.isDisabled,
|
| 15469 |
-
isFocused = _ref.isFocused,
|
| 15470 |
-
_ref$theme = _ref.theme,
|
| 15471 |
-
colors = _ref$theme.colors,
|
| 15472 |
-
borderRadius = _ref$theme.borderRadius,
|
| 15473 |
-
spacing = _ref$theme.spacing;
|
| 15474 |
-
return {
|
| 15475 |
-
label: 'control',
|
| 15476 |
-
alignItems: 'center',
|
| 15477 |
-
backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,
|
| 15478 |
-
borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,
|
| 15479 |
-
borderRadius: borderRadius,
|
| 15480 |
-
borderStyle: 'solid',
|
| 15481 |
-
borderWidth: 1,
|
| 15482 |
-
boxShadow: isFocused ? "0 0 0 1px " + colors.primary : null,
|
| 15483 |
-
cursor: 'default',
|
| 15484 |
-
display: 'flex',
|
| 15485 |
-
flexWrap: 'wrap',
|
| 15486 |
-
justifyContent: 'space-between',
|
| 15487 |
-
minHeight: spacing.controlHeight,
|
| 15488 |
-
outline: '0 !important',
|
| 15489 |
-
position: 'relative',
|
| 15490 |
-
transition: 'all 100ms',
|
| 15491 |
-
'&:hover': {
|
| 15492 |
-
borderColor: isFocused ? colors.primary : colors.neutral30
|
| 15493 |
-
}
|
| 15494 |
-
};
|
| 15495 |
-
};
|
| 15496 |
-
|
| 15497 |
-
var Control = function Control(props) {
|
| 15498 |
-
var children = props.children,
|
| 15499 |
-
cx = props.cx,
|
| 15500 |
-
getStyles = props.getStyles,
|
| 15501 |
-
className = props.className,
|
| 15502 |
-
isDisabled = props.isDisabled,
|
| 15503 |
-
isFocused = props.isFocused,
|
| 15504 |
-
innerRef = props.innerRef,
|
| 15505 |
-
innerProps = props.innerProps,
|
| 15506 |
-
menuIsOpen = props.menuIsOpen;
|
| 15507 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$3({
|
| 15508 |
-
ref: innerRef,
|
| 15509 |
-
css: getStyles('control', props),
|
| 15510 |
-
className: cx({
|
| 15511 |
-
control: true,
|
| 15512 |
-
'control--is-disabled': isDisabled,
|
| 15513 |
-
'control--is-focused': isFocused,
|
| 15514 |
-
'control--menu-is-open': menuIsOpen
|
| 15515 |
-
}, className)
|
| 15516 |
-
}, innerProps), children);
|
| 15517 |
-
};
|
| 15518 |
-
|
| 15519 |
-
function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
| 15520 |
-
|
| 15521 |
-
function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
| 15522 |
-
var groupCSS = function groupCSS(_ref) {
|
| 15523 |
-
var spacing = _ref.theme.spacing;
|
| 15524 |
-
return {
|
| 15525 |
-
paddingBottom: spacing.baseUnit * 2,
|
| 15526 |
-
paddingTop: spacing.baseUnit * 2
|
| 15527 |
-
};
|
| 15528 |
-
};
|
| 15529 |
-
|
| 15530 |
-
var Group = function Group(props) {
|
| 15531 |
-
var children = props.children,
|
| 15532 |
-
className = props.className,
|
| 15533 |
-
cx = props.cx,
|
| 15534 |
-
getStyles = props.getStyles,
|
| 15535 |
-
Heading = props.Heading,
|
| 15536 |
-
headingProps = props.headingProps,
|
| 15537 |
-
label = props.label,
|
| 15538 |
-
theme = props.theme,
|
| 15539 |
-
selectProps = props.selectProps;
|
| 15540 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
|
| 15541 |
-
css: getStyles('group', props),
|
| 15542 |
-
className: cx({
|
| 15543 |
-
group: true
|
| 15544 |
-
}, className)
|
| 15545 |
-
}, Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Heading, _extends$4({}, headingProps, {
|
| 15546 |
-
selectProps: selectProps,
|
| 15547 |
-
theme: theme,
|
| 15548 |
-
getStyles: getStyles,
|
| 15549 |
-
cx: cx
|
| 15550 |
-
}), label), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", null, children));
|
| 15551 |
-
};
|
| 15552 |
-
|
| 15553 |
-
var groupHeadingCSS = function groupHeadingCSS(_ref2) {
|
| 15554 |
-
var spacing = _ref2.theme.spacing;
|
| 15555 |
-
return {
|
| 15556 |
-
label: 'group',
|
| 15557 |
-
color: '#999',
|
| 15558 |
-
cursor: 'default',
|
| 15559 |
-
display: 'block',
|
| 15560 |
-
fontSize: '75%',
|
| 15561 |
-
fontWeight: '500',
|
| 15562 |
-
marginBottom: '0.25em',
|
| 15563 |
-
paddingLeft: spacing.baseUnit * 3,
|
| 15564 |
-
paddingRight: spacing.baseUnit * 3,
|
| 15565 |
-
textTransform: 'uppercase'
|
| 15566 |
-
};
|
| 15567 |
-
};
|
| 15568 |
-
var GroupHeading = function GroupHeading(props) {
|
| 15569 |
-
var className = props.className,
|
| 15570 |
-
cx = props.cx,
|
| 15571 |
-
getStyles = props.getStyles,
|
| 15572 |
-
theme = props.theme,
|
| 15573 |
-
selectProps = props.selectProps,
|
| 15574 |
-
cleanProps = _objectWithoutPropertiesLoose$1(props, ["className", "cx", "getStyles", "theme", "selectProps"]);
|
| 15575 |
-
|
| 15576 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$4({
|
| 15577 |
-
css: getStyles('groupHeading', _extends$4({
|
| 15578 |
-
theme: theme
|
| 15579 |
-
}, cleanProps)),
|
| 15580 |
-
className: cx({
|
| 15581 |
-
'group-heading': true
|
| 15582 |
-
}, className)
|
| 15583 |
-
}, cleanProps));
|
| 15584 |
-
};
|
| 15585 |
-
|
| 15586 |
-
function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
| 15587 |
-
|
| 15588 |
-
function _objectWithoutPropertiesLoose$2(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
| 15589 |
-
var inputCSS = function inputCSS(_ref) {
|
| 15590 |
-
var isDisabled = _ref.isDisabled,
|
| 15591 |
-
_ref$theme = _ref.theme,
|
| 15592 |
-
spacing = _ref$theme.spacing,
|
| 15593 |
-
colors = _ref$theme.colors;
|
| 15594 |
-
return {
|
| 15595 |
-
margin: spacing.baseUnit / 2,
|
| 15596 |
-
paddingBottom: spacing.baseUnit / 2,
|
| 15597 |
-
paddingTop: spacing.baseUnit / 2,
|
| 15598 |
-
visibility: isDisabled ? 'hidden' : 'visible',
|
| 15599 |
-
color: colors.neutral80
|
| 15600 |
-
};
|
| 15601 |
-
};
|
| 15602 |
-
|
| 15603 |
-
var inputStyle = function inputStyle(isHidden) {
|
| 15604 |
-
return {
|
| 15605 |
-
label: 'input',
|
| 15606 |
-
background: 0,
|
| 15607 |
-
border: 0,
|
| 15608 |
-
fontSize: 'inherit',
|
| 15609 |
-
opacity: isHidden ? 0 : 1,
|
| 15610 |
-
outline: 0,
|
| 15611 |
-
padding: 0,
|
| 15612 |
-
color: 'inherit'
|
| 15613 |
-
};
|
| 15614 |
-
};
|
| 15615 |
-
|
| 15616 |
-
var Input = function Input(_ref2) {
|
| 15617 |
-
var className = _ref2.className,
|
| 15618 |
-
cx = _ref2.cx,
|
| 15619 |
-
getStyles = _ref2.getStyles,
|
| 15620 |
-
innerRef = _ref2.innerRef,
|
| 15621 |
-
isHidden = _ref2.isHidden,
|
| 15622 |
-
isDisabled = _ref2.isDisabled,
|
| 15623 |
-
theme = _ref2.theme,
|
| 15624 |
-
selectProps = _ref2.selectProps,
|
| 15625 |
-
props = _objectWithoutPropertiesLoose$2(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]);
|
| 15626 |
-
|
| 15627 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
|
| 15628 |
-
css: getStyles('input', _extends$5({
|
| 15629 |
-
theme: theme
|
| 15630 |
-
}, props))
|
| 15631 |
-
}, Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default.a, _extends$5({
|
| 15632 |
-
className: cx({
|
| 15633 |
-
input: true
|
| 15634 |
-
}, className),
|
| 15635 |
-
inputRef: innerRef,
|
| 15636 |
-
inputStyle: inputStyle(isHidden),
|
| 15637 |
-
disabled: isDisabled
|
| 15638 |
-
}, props)));
|
| 15639 |
-
};
|
| 15640 |
-
|
| 15641 |
-
function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
| 15642 |
-
var multiValueCSS = function multiValueCSS(_ref) {
|
| 15643 |
-
var _ref$theme = _ref.theme,
|
| 15644 |
-
spacing = _ref$theme.spacing,
|
| 15645 |
-
borderRadius = _ref$theme.borderRadius,
|
| 15646 |
-
colors = _ref$theme.colors;
|
| 15647 |
-
return {
|
| 15648 |
-
label: 'multiValue',
|
| 15649 |
-
backgroundColor: colors.neutral10,
|
| 15650 |
-
borderRadius: borderRadius / 2,
|
| 15651 |
-
display: 'flex',
|
| 15652 |
-
margin: spacing.baseUnit / 2,
|
| 15653 |
-
minWidth: 0 // resolves flex/text-overflow bug
|
| 15654 |
-
|
| 15655 |
-
};
|
| 15656 |
-
};
|
| 15657 |
-
var multiValueLabelCSS = function multiValueLabelCSS(_ref2) {
|
| 15658 |
-
var _ref2$theme = _ref2.theme,
|
| 15659 |
-
borderRadius = _ref2$theme.borderRadius,
|
| 15660 |
-
colors = _ref2$theme.colors,
|
| 15661 |
-
cropWithEllipsis = _ref2.cropWithEllipsis;
|
| 15662 |
-
return {
|
| 15663 |
-
borderRadius: borderRadius / 2,
|
| 15664 |
-
color: colors.neutral80,
|
| 15665 |
-
fontSize: '85%',
|
| 15666 |
-
overflow: 'hidden',
|
| 15667 |
-
padding: 3,
|
| 15668 |
-
paddingLeft: 6,
|
| 15669 |
-
textOverflow: cropWithEllipsis ? 'ellipsis' : null,
|
| 15670 |
-
whiteSpace: 'nowrap'
|
| 15671 |
-
};
|
| 15672 |
-
};
|
| 15673 |
-
var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {
|
| 15674 |
-
var _ref3$theme = _ref3.theme,
|
| 15675 |
-
spacing = _ref3$theme.spacing,
|
| 15676 |
-
borderRadius = _ref3$theme.borderRadius,
|
| 15677 |
-
colors = _ref3$theme.colors,
|
| 15678 |
-
isFocused = _ref3.isFocused;
|
| 15679 |
-
return {
|
| 15680 |
-
alignItems: 'center',
|
| 15681 |
-
borderRadius: borderRadius / 2,
|
| 15682 |
-
backgroundColor: isFocused && colors.dangerLight,
|
| 15683 |
-
display: 'flex',
|
| 15684 |
-
paddingLeft: spacing.baseUnit,
|
| 15685 |
-
paddingRight: spacing.baseUnit,
|
| 15686 |
-
':hover': {
|
| 15687 |
-
backgroundColor: colors.dangerLight,
|
| 15688 |
-
color: colors.danger
|
| 15689 |
-
}
|
| 15690 |
-
};
|
| 15691 |
-
};
|
| 15692 |
-
var MultiValueGeneric = function MultiValueGeneric(_ref4) {
|
| 15693 |
-
var children = _ref4.children,
|
| 15694 |
-
innerProps = _ref4.innerProps;
|
| 15695 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", innerProps, children);
|
| 15696 |
-
};
|
| 15697 |
-
var MultiValueContainer = MultiValueGeneric;
|
| 15698 |
-
var MultiValueLabel = MultiValueGeneric;
|
| 15699 |
-
function MultiValueRemove(_ref5) {
|
| 15700 |
-
var children = _ref5.children,
|
| 15701 |
-
innerProps = _ref5.innerProps;
|
| 15702 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", innerProps, children || Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(CrossIcon, {
|
| 15703 |
-
size: 14
|
| 15704 |
-
}));
|
| 15705 |
-
}
|
| 15706 |
-
|
| 15707 |
-
var MultiValue = function MultiValue(props) {
|
| 15708 |
-
var children = props.children,
|
| 15709 |
-
className = props.className,
|
| 15710 |
-
components = props.components,
|
| 15711 |
-
cx = props.cx,
|
| 15712 |
-
data = props.data,
|
| 15713 |
-
getStyles = props.getStyles,
|
| 15714 |
-
innerProps = props.innerProps,
|
| 15715 |
-
isDisabled = props.isDisabled,
|
| 15716 |
-
removeProps = props.removeProps,
|
| 15717 |
-
selectProps = props.selectProps;
|
| 15718 |
-
var Container = components.Container,
|
| 15719 |
-
Label = components.Label,
|
| 15720 |
-
Remove = components.Remove;
|
| 15721 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["b" /* ClassNames */], null, function (_ref6) {
|
| 15722 |
-
var css = _ref6.css,
|
| 15723 |
-
emotionCx = _ref6.cx;
|
| 15724 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Container, {
|
| 15725 |
-
data: data,
|
| 15726 |
-
innerProps: _extends$6({}, innerProps, {
|
| 15727 |
-
className: emotionCx(css(getStyles('multiValue', props)), cx({
|
| 15728 |
-
'multi-value': true,
|
| 15729 |
-
'multi-value--is-disabled': isDisabled
|
| 15730 |
-
}, className))
|
| 15731 |
-
}),
|
| 15732 |
-
selectProps: selectProps
|
| 15733 |
-
}, Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Label, {
|
| 15734 |
-
data: data,
|
| 15735 |
-
innerProps: {
|
| 15736 |
-
className: emotionCx(css(getStyles('multiValueLabel', props)), cx({
|
| 15737 |
-
'multi-value__label': true
|
| 15738 |
-
}, className))
|
| 15739 |
-
},
|
| 15740 |
-
selectProps: selectProps
|
| 15741 |
-
}, children), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Remove, {
|
| 15742 |
-
data: data,
|
| 15743 |
-
innerProps: _extends$6({
|
| 15744 |
-
className: emotionCx(css(getStyles('multiValueRemove', props)), cx({
|
| 15745 |
-
'multi-value__remove': true
|
| 15746 |
-
}, className))
|
| 15747 |
-
}, removeProps),
|
| 15748 |
-
selectProps: selectProps
|
| 15749 |
-
}));
|
| 15750 |
-
});
|
| 15751 |
-
};
|
| 15752 |
-
|
| 15753 |
-
MultiValue.defaultProps = {
|
| 15754 |
-
cropWithEllipsis: true
|
| 15755 |
-
};
|
| 15756 |
-
|
| 15757 |
-
function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
| 15758 |
-
var optionCSS = function optionCSS(_ref) {
|
| 15759 |
-
var isDisabled = _ref.isDisabled,
|
| 15760 |
-
isFocused = _ref.isFocused,
|
| 15761 |
-
isSelected = _ref.isSelected,
|
| 15762 |
-
_ref$theme = _ref.theme,
|
| 15763 |
-
spacing = _ref$theme.spacing,
|
| 15764 |
-
colors = _ref$theme.colors;
|
| 15765 |
-
return {
|
| 15766 |
-
label: 'option',
|
| 15767 |
-
backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',
|
| 15768 |
-
color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',
|
| 15769 |
-
cursor: 'default',
|
| 15770 |
-
display: 'block',
|
| 15771 |
-
fontSize: 'inherit',
|
| 15772 |
-
padding: spacing.baseUnit * 2 + "px " + spacing.baseUnit * 3 + "px",
|
| 15773 |
-
width: '100%',
|
| 15774 |
-
userSelect: 'none',
|
| 15775 |
-
WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',
|
| 15776 |
-
// provide some affordance on touch devices
|
| 15777 |
-
':active': {
|
| 15778 |
-
backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50)
|
| 15779 |
-
}
|
| 15780 |
-
};
|
| 15781 |
-
};
|
| 15782 |
-
|
| 15783 |
-
var Option = function Option(props) {
|
| 15784 |
-
var children = props.children,
|
| 15785 |
-
className = props.className,
|
| 15786 |
-
cx = props.cx,
|
| 15787 |
-
getStyles = props.getStyles,
|
| 15788 |
-
isDisabled = props.isDisabled,
|
| 15789 |
-
isFocused = props.isFocused,
|
| 15790 |
-
isSelected = props.isSelected,
|
| 15791 |
-
innerRef = props.innerRef,
|
| 15792 |
-
innerProps = props.innerProps;
|
| 15793 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$7({
|
| 15794 |
-
css: getStyles('option', props),
|
| 15795 |
-
className: cx({
|
| 15796 |
-
option: true,
|
| 15797 |
-
'option--is-disabled': isDisabled,
|
| 15798 |
-
'option--is-focused': isFocused,
|
| 15799 |
-
'option--is-selected': isSelected
|
| 15800 |
-
}, className),
|
| 15801 |
-
ref: innerRef
|
| 15802 |
-
}, innerProps), children);
|
| 15803 |
-
};
|
| 15804 |
-
|
| 15805 |
-
function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
| 15806 |
-
var placeholderCSS = function placeholderCSS(_ref) {
|
| 15807 |
-
var _ref$theme = _ref.theme,
|
| 15808 |
-
spacing = _ref$theme.spacing,
|
| 15809 |
-
colors = _ref$theme.colors;
|
| 15810 |
-
return {
|
| 15811 |
-
label: 'placeholder',
|
| 15812 |
-
color: colors.neutral50,
|
| 15813 |
-
marginLeft: spacing.baseUnit / 2,
|
| 15814 |
-
marginRight: spacing.baseUnit / 2,
|
| 15815 |
-
position: 'absolute',
|
| 15816 |
-
top: '50%',
|
| 15817 |
-
transform: 'translateY(-50%)'
|
| 15818 |
-
};
|
| 15819 |
-
};
|
| 15820 |
-
|
| 15821 |
-
var Placeholder = function Placeholder(props) {
|
| 15822 |
-
var children = props.children,
|
| 15823 |
-
className = props.className,
|
| 15824 |
-
cx = props.cx,
|
| 15825 |
-
getStyles = props.getStyles,
|
| 15826 |
-
innerProps = props.innerProps;
|
| 15827 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$8({
|
| 15828 |
-
css: getStyles('placeholder', props),
|
| 15829 |
-
className: cx({
|
| 15830 |
-
placeholder: true
|
| 15831 |
-
}, className)
|
| 15832 |
-
}, innerProps), children);
|
| 15833 |
-
};
|
| 15834 |
-
|
| 15835 |
-
function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
| 15836 |
-
var css$1 = function css(_ref) {
|
| 15837 |
-
var isDisabled = _ref.isDisabled,
|
| 15838 |
-
_ref$theme = _ref.theme,
|
| 15839 |
-
spacing = _ref$theme.spacing,
|
| 15840 |
-
colors = _ref$theme.colors;
|
| 15841 |
-
return {
|
| 15842 |
-
label: 'singleValue',
|
| 15843 |
-
color: isDisabled ? colors.neutral40 : colors.neutral80,
|
| 15844 |
-
marginLeft: spacing.baseUnit / 2,
|
| 15845 |
-
marginRight: spacing.baseUnit / 2,
|
| 15846 |
-
maxWidth: "calc(100% - " + spacing.baseUnit * 2 + "px)",
|
| 15847 |
-
overflow: 'hidden',
|
| 15848 |
-
position: 'absolute',
|
| 15849 |
-
textOverflow: 'ellipsis',
|
| 15850 |
-
whiteSpace: 'nowrap',
|
| 15851 |
-
top: '50%',
|
| 15852 |
-
transform: 'translateY(-50%)'
|
| 15853 |
-
};
|
| 15854 |
-
};
|
| 15855 |
-
|
| 15856 |
-
var SingleValue = function SingleValue(props) {
|
| 15857 |
-
var children = props.children,
|
| 15858 |
-
className = props.className,
|
| 15859 |
-
cx = props.cx,
|
| 15860 |
-
getStyles = props.getStyles,
|
| 15861 |
-
isDisabled = props.isDisabled,
|
| 15862 |
-
innerProps = props.innerProps;
|
| 15863 |
-
return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$9({
|
| 15864 |
-
css: getStyles('singleValue', props),
|
| 15865 |
-
className: cx({
|
| 15866 |
-
'single-value': true,
|
| 15867 |
-
'single-value--is-disabled': isDisabled
|
| 15868 |
-
}, className)
|
| 15869 |
-
}, innerProps), children);
|
| 15870 |
-
};
|
| 15871 |
-
|
| 15872 |
-
function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
| 15873 |
-
var components = {
|
| 15874 |
-
ClearIndicator: ClearIndicator,
|
| 15875 |
-
Control: Control,
|
| 15876 |
-
DropdownIndicator: DropdownIndicator,
|
| 15877 |
-
DownChevron: DownChevron,
|
| 15878 |
-
CrossIcon: CrossIcon,
|
| 15879 |
-
Group: Group,
|
| 15880 |
-
GroupHeading: GroupHeading,
|
| 15881 |
-
IndicatorsContainer: IndicatorsContainer,
|
| 15882 |
-
IndicatorSeparator: IndicatorSeparator,
|
| 15883 |
-
Input: Input,
|
| 15884 |
-
LoadingIndicator: LoadingIndicator,
|
| 15885 |
-
Menu: Menu,
|
| 15886 |
-
MenuList: MenuList,
|
| 15887 |
-
MenuPortal: MenuPortal,
|
| 15888 |
-
LoadingMessage: LoadingMessage,
|
| 15889 |
-
NoOptionsMessage: NoOptionsMessage,
|
| 15890 |
-
MultiValue: MultiValue,
|
| 15891 |
-
MultiValueContainer: MultiValueContainer,
|
| 15892 |
-
MultiValueLabel: MultiValueLabel,
|
| 15893 |
-
MultiValueRemove: MultiValueRemove,
|
| 15894 |
-
Option: Option,
|
| 15895 |
-
Placeholder: Placeholder,
|
| 15896 |
-
SelectContainer: SelectContainer,
|
| 15897 |
-
SingleValue: SingleValue,
|
| 15898 |
-
ValueContainer: ValueContainer
|
| 15899 |
-
};
|
| 15900 |
-
var defaultComponents = function defaultComponents(props) {
|
| 15901 |
-
return _extends$a({}, components, props.components);
|
| 15902 |
-
};
|
| 15903 |
-
|
| 15904 |
-
|
| 15905 |
-
|
| 15906 |
-
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
|
| 15907 |
-
|
| 15908 |
-
/***/ }),
|
| 15909 |
-
/* 232 */
|
| 15910 |
-
/***/ (function(module, exports, __webpack_require__) {
|
| 15911 |
-
|
| 15912 |
-
"use strict";
|
| 15913 |
-
|
| 15914 |
-
|
| 15915 |
-
Object.defineProperty(exports, "__esModule", {
|
| 15916 |
-
value: true
|
| 15917 |
-
});
|
| 15918 |
-
|
| 15919 |
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
| 15920 |
-
|
| 15921 |
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
| 15922 |
-
|
| 15923 |
-
var _react = __webpack_require__(0);
|
| 15924 |
-
|
| 15925 |
-
var _react2 = _interopRequireDefault(_react);
|
| 15926 |
-
|
| 15927 |
-
var _propTypes = __webpack_require__(2);
|
| 15928 |
-
|
| 15929 |
-
var _propTypes2 = _interopRequireDefault(_propTypes);
|
| 15930 |
-
|
| 15931 |
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
| 15932 |
-
|
| 15933 |
-
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
| 15934 |
-
|
| 15935 |
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
| 15936 |
-
|
| 15937 |
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
| 15938 |
-
|
| 15939 |
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
| 15940 |
-
|
| 15941 |
-
var sizerStyle = {
|
| 15942 |
-
position: 'absolute',
|
| 15943 |
-
top: 0,
|
| 15944 |
-
left: 0,
|
| 15945 |
-
visibility: 'hidden',
|
| 15946 |
-
height: 0,
|
| 15947 |
-
overflow: 'scroll',
|
| 15948 |
-
whiteSpace: 'pre'
|
| 15949 |
-
};
|
| 15950 |
-
|
