@popsure/dirty-swan 0.30.6 → 0.30.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1461 -1367
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/index.js +1460 -1365
- package/dist/esm/components/comparisonTable/index.js.map +1 -1
- package/dist/esm/components/modal/bottomModal/index.js +2 -2
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/components/comparisonTable/hooks/useComparisonTable.ts +1 -3
- package/src/lib/components/comparisonTable/index.tsx +1 -2
- package/src/lib/components/modal/bottomModal/style.module.scss +8 -0
package/dist/cjs/index.js
CHANGED
|
@@ -4,14 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var require$$0 = require('react');
|
|
7
|
-
var require$$1 = require('react-dom');
|
|
8
7
|
var path = require('path');
|
|
9
8
|
var require$$2 = require('querystring');
|
|
10
9
|
|
|
11
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
11
|
|
|
13
12
|
var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|
14
|
-
var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
|
|
15
13
|
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
|
|
16
14
|
var require$$2__default = /*#__PURE__*/_interopDefaultLegacy(require$$2);
|
|
17
15
|
|
|
@@ -8748,8 +8746,8 @@ var CurrencyInput = function (_a) {
|
|
|
8748
8746
|
} }, props), void 0));
|
|
8749
8747
|
};
|
|
8750
8748
|
|
|
8751
|
-
var css_248z$k = "@keyframes style-module_fade-in__1GZgs {\n 0% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.3);\n }\n}\n@keyframes style-module_fade-out__30Bns {\n from {\n background-color: rgba(0, 0, 0, 0.3);\n }\n to {\n background-color: rgba(0, 0, 0, 0);\n }\n}\n@keyframes style-module_appear-in__3U2lu {\n 0% {\n transform: translateY(100%);\n }\n 80% {\n transform: translateY(-2%);\n }\n 100% {\n transform: translateY(0);\n }\n}\n@keyframes style-module_disappear-out__6pOVr {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(100%);\n }\n}\n.style-module_close__1GERU {\n border: none;\n background-color: transparent;\n cursor: pointer;\n}\n\n.style-module_overlay__AlX2J, .style-module_overlay--close__3E9GY {\n position: fixed;\n z-index: 100;\n overflow: auto;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n animation: style-module_fade-in__1GZgs 0.3s both;\n}\n.style-module_overlay--close__3E9GY {\n animation-delay: 0.1s;\n animation: style-module_fade-out__30Bns 0.3s both;\n}\n\n.style-module_container__aOENo, .style-module_container--close__K506c {\n position: relative;\n background-color: white;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n width: 100%;\n animation-name: style-module_appear-in__3U2lu;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n top: 0;\n}\n.style-module_container--close__K506c {\n animation-name: style-module_disappear-out__6pOVr;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n\n.style-module_header__10iiH {\n height: 60px;\n display: flex;\n align-items: center;\n padding: 0 16px;\n}";
|
|
8752
|
-
var styles$j = {"close":"style-module_close__1GERU","overlay":"style-module_overlay__AlX2J","overlay--close":"style-module_overlay--close__3E9GY","fade-in":"style-module_fade-in__1GZgs","fade-out":"style-module_fade-out__30Bns","container":"style-module_container__aOENo","container--close":"style-module_container--close__K506c","appear-in":"style-module_appear-in__3U2lu","disappear-out":"style-module_disappear-out__6pOVr","header":"style-module_header__10iiH"};
|
|
8749
|
+
var css_248z$k = "@keyframes style-module_fade-in__1GZgs {\n 0% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.3);\n }\n}\n@keyframes style-module_fade-out__30Bns {\n from {\n background-color: rgba(0, 0, 0, 0.3);\n }\n to {\n background-color: rgba(0, 0, 0, 0);\n }\n}\n@keyframes style-module_appear-in__3U2lu {\n 0% {\n transform: translateY(100%);\n }\n 80% {\n transform: translateY(-2%);\n }\n 100% {\n transform: translateY(0);\n }\n}\n@keyframes style-module_disappear-out__6pOVr {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(100%);\n }\n}\n.style-module_close__1GERU {\n border: none;\n background-color: transparent;\n cursor: pointer;\n}\n\n.style-module_overlay__AlX2J, .style-module_overlay--close__3E9GY {\n position: fixed;\n z-index: 100;\n overflow: auto;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n animation: style-module_fade-in__1GZgs 0.3s both;\n}\n.style-module_overlay--close__3E9GY {\n animation-delay: 0.1s;\n animation: style-module_fade-out__30Bns 0.3s both;\n}\n\n.style-module_container__aOENo, .style-module_container--close__K506c {\n position: relative;\n background-color: white;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n width: 100%;\n animation-name: style-module_appear-in__3U2lu;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n top: 0;\n}\n.style-module_container--close__K506c {\n animation-name: style-module_disappear-out__6pOVr;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n\n.style-module_header__10iiH {\n height: 60px;\n display: flex;\n align-items: center;\n padding: 0 16px;\n}\n\n@media (max-width: 34rem) {\n .style-module_content__mq_IJ {\n padding-bottom: 48px;\n }\n}";
|
|
8750
|
+
var styles$j = {"close":"style-module_close__1GERU","overlay":"style-module_overlay__AlX2J","overlay--close":"style-module_overlay--close__3E9GY","fade-in":"style-module_fade-in__1GZgs","fade-out":"style-module_fade-out__30Bns","container":"style-module_container__aOENo","container--close":"style-module_container--close__K506c","appear-in":"style-module_appear-in__3U2lu","disappear-out":"style-module_disappear-out__6pOVr","header":"style-module_header__10iiH","content":"style-module_content__mq_IJ"};
|
|
8753
8751
|
styleInject(css_248z$k);
|
|
8754
8752
|
|
|
8755
8753
|
var imageClose$1 = "data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18%206L6%2018%22%20stroke%3D%22%2326262E%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M6%206L18%2018%22%20stroke%3D%22%2326262E%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
|
|
@@ -12205,8 +12203,8 @@ var dist = {exports: {}};
|
|
|
12205
12203
|
|
|
12206
12204
|
(function (module, exports) {
|
|
12207
12205
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
12208
|
-
module.exports = factory(require$$0__default['default']
|
|
12209
|
-
})(commonjsGlobal, function(
|
|
12206
|
+
module.exports = factory(require$$0__default['default']);
|
|
12207
|
+
})(commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_4__) {
|
|
12210
12208
|
return /******/ (function(modules) { // webpackBootstrap
|
|
12211
12209
|
/******/ // The module cache
|
|
12212
12210
|
/******/ var installedModules = {};
|
|
@@ -12215,21 +12213,21 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
12215
12213
|
/******/ function __webpack_require__(moduleId) {
|
|
12216
12214
|
/******/
|
|
12217
12215
|
/******/ // Check if module is in cache
|
|
12218
|
-
/******/ if(installedModules[moduleId])
|
|
12216
|
+
/******/ if(installedModules[moduleId]) {
|
|
12219
12217
|
/******/ return installedModules[moduleId].exports;
|
|
12220
|
-
/******/
|
|
12218
|
+
/******/ }
|
|
12221
12219
|
/******/ // Create a new module (and put it into the cache)
|
|
12222
12220
|
/******/ var module = installedModules[moduleId] = {
|
|
12223
|
-
/******/
|
|
12224
|
-
/******/
|
|
12225
|
-
/******/
|
|
12221
|
+
/******/ i: moduleId,
|
|
12222
|
+
/******/ l: false,
|
|
12223
|
+
/******/ exports: {}
|
|
12226
12224
|
/******/ };
|
|
12227
12225
|
/******/
|
|
12228
12226
|
/******/ // Execute the module function
|
|
12229
12227
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
12230
12228
|
/******/
|
|
12231
12229
|
/******/ // Flag the module as loaded
|
|
12232
|
-
/******/ module.
|
|
12230
|
+
/******/ module.l = true;
|
|
12233
12231
|
/******/
|
|
12234
12232
|
/******/ // Return the exports of the module
|
|
12235
12233
|
/******/ return module.exports;
|
|
@@ -12242,1383 +12240,1481 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
12242
12240
|
/******/ // expose the module cache
|
|
12243
12241
|
/******/ __webpack_require__.c = installedModules;
|
|
12244
12242
|
/******/
|
|
12243
|
+
/******/ // identity function for calling harmony imports with the correct context
|
|
12244
|
+
/******/ __webpack_require__.i = function(value) { return value; };
|
|
12245
|
+
/******/
|
|
12246
|
+
/******/ // define getter function for harmony exports
|
|
12247
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
12248
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
12249
|
+
/******/ Object.defineProperty(exports, name, {
|
|
12250
|
+
/******/ configurable: false,
|
|
12251
|
+
/******/ enumerable: true,
|
|
12252
|
+
/******/ get: getter
|
|
12253
|
+
/******/ });
|
|
12254
|
+
/******/ }
|
|
12255
|
+
/******/ };
|
|
12256
|
+
/******/
|
|
12257
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
12258
|
+
/******/ __webpack_require__.n = function(module) {
|
|
12259
|
+
/******/ var getter = module && module.__esModule ?
|
|
12260
|
+
/******/ function getDefault() { return module['default']; } :
|
|
12261
|
+
/******/ function getModuleExports() { return module; };
|
|
12262
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
12263
|
+
/******/ return getter;
|
|
12264
|
+
/******/ };
|
|
12265
|
+
/******/
|
|
12266
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
12267
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
12268
|
+
/******/
|
|
12245
12269
|
/******/ // __webpack_public_path__
|
|
12246
12270
|
/******/ __webpack_require__.p = "";
|
|
12247
12271
|
/******/
|
|
12248
12272
|
/******/ // Load entry module and return exports
|
|
12249
|
-
/******/ return __webpack_require__(
|
|
12273
|
+
/******/ return __webpack_require__(__webpack_require__.s = 10);
|
|
12250
12274
|
/******/ })
|
|
12251
12275
|
/************************************************************************/
|
|
12252
12276
|
/******/ ([
|
|
12253
12277
|
/* 0 */
|
|
12254
|
-
/***/ function(module, exports
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
|
|
12273
|
-
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
|
|
12278
|
+
/***/ (function(module, exports) {
|
|
12279
|
+
|
|
12280
|
+
// shim for using process in browser
|
|
12281
|
+
var process = module.exports = {};
|
|
12282
|
+
|
|
12283
|
+
// cached from whatever global is present so that test runners that stub it
|
|
12284
|
+
// don't break things. But we need to wrap it in a try catch in case it is
|
|
12285
|
+
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
12286
|
+
// function because try/catches deoptimize in certain engines.
|
|
12287
|
+
|
|
12288
|
+
var cachedSetTimeout;
|
|
12289
|
+
var cachedClearTimeout;
|
|
12290
|
+
|
|
12291
|
+
function defaultSetTimout() {
|
|
12292
|
+
throw new Error('setTimeout has not been defined');
|
|
12293
|
+
}
|
|
12294
|
+
function defaultClearTimeout () {
|
|
12295
|
+
throw new Error('clearTimeout has not been defined');
|
|
12296
|
+
}
|
|
12297
|
+
(function () {
|
|
12298
|
+
try {
|
|
12299
|
+
if (typeof setTimeout === 'function') {
|
|
12300
|
+
cachedSetTimeout = setTimeout;
|
|
12301
|
+
} else {
|
|
12302
|
+
cachedSetTimeout = defaultSetTimout;
|
|
12303
|
+
}
|
|
12304
|
+
} catch (e) {
|
|
12305
|
+
cachedSetTimeout = defaultSetTimout;
|
|
12306
|
+
}
|
|
12307
|
+
try {
|
|
12308
|
+
if (typeof clearTimeout === 'function') {
|
|
12309
|
+
cachedClearTimeout = clearTimeout;
|
|
12310
|
+
} else {
|
|
12311
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
12312
|
+
}
|
|
12313
|
+
} catch (e) {
|
|
12314
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
12315
|
+
}
|
|
12316
|
+
} ());
|
|
12317
|
+
function runTimeout(fun) {
|
|
12318
|
+
if (cachedSetTimeout === setTimeout) {
|
|
12319
|
+
//normal enviroments in sane situations
|
|
12320
|
+
return setTimeout(fun, 0);
|
|
12321
|
+
}
|
|
12322
|
+
// if setTimeout wasn't available but was latter defined
|
|
12323
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
12324
|
+
cachedSetTimeout = setTimeout;
|
|
12325
|
+
return setTimeout(fun, 0);
|
|
12326
|
+
}
|
|
12327
|
+
try {
|
|
12328
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
12329
|
+
return cachedSetTimeout(fun, 0);
|
|
12330
|
+
} catch(e){
|
|
12331
|
+
try {
|
|
12332
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
12333
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
12334
|
+
} catch(e){
|
|
12335
|
+
// 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
|
|
12336
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
12337
|
+
}
|
|
12338
|
+
}
|
|
12339
|
+
|
|
12340
|
+
|
|
12341
|
+
}
|
|
12342
|
+
function runClearTimeout(marker) {
|
|
12343
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
12344
|
+
//normal enviroments in sane situations
|
|
12345
|
+
return clearTimeout(marker);
|
|
12346
|
+
}
|
|
12347
|
+
// if clearTimeout wasn't available but was latter defined
|
|
12348
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
12349
|
+
cachedClearTimeout = clearTimeout;
|
|
12350
|
+
return clearTimeout(marker);
|
|
12351
|
+
}
|
|
12352
|
+
try {
|
|
12353
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
12354
|
+
return cachedClearTimeout(marker);
|
|
12355
|
+
} catch (e){
|
|
12356
|
+
try {
|
|
12357
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
12358
|
+
return cachedClearTimeout.call(null, marker);
|
|
12359
|
+
} catch (e){
|
|
12360
|
+
// 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.
|
|
12361
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
12362
|
+
return cachedClearTimeout.call(this, marker);
|
|
12363
|
+
}
|
|
12364
|
+
}
|
|
12365
|
+
|
|
12366
|
+
|
|
12367
|
+
|
|
12368
|
+
}
|
|
12369
|
+
var queue = [];
|
|
12370
|
+
var draining = false;
|
|
12371
|
+
var currentQueue;
|
|
12372
|
+
var queueIndex = -1;
|
|
12373
|
+
|
|
12374
|
+
function cleanUpNextTick() {
|
|
12375
|
+
if (!draining || !currentQueue) {
|
|
12376
|
+
return;
|
|
12377
|
+
}
|
|
12378
|
+
draining = false;
|
|
12379
|
+
if (currentQueue.length) {
|
|
12380
|
+
queue = currentQueue.concat(queue);
|
|
12381
|
+
} else {
|
|
12382
|
+
queueIndex = -1;
|
|
12383
|
+
}
|
|
12384
|
+
if (queue.length) {
|
|
12385
|
+
drainQueue();
|
|
12386
|
+
}
|
|
12387
|
+
}
|
|
12388
|
+
|
|
12389
|
+
function drainQueue() {
|
|
12390
|
+
if (draining) {
|
|
12391
|
+
return;
|
|
12392
|
+
}
|
|
12393
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
12394
|
+
draining = true;
|
|
12395
|
+
|
|
12396
|
+
var len = queue.length;
|
|
12397
|
+
while(len) {
|
|
12398
|
+
currentQueue = queue;
|
|
12399
|
+
queue = [];
|
|
12400
|
+
while (++queueIndex < len) {
|
|
12401
|
+
if (currentQueue) {
|
|
12402
|
+
currentQueue[queueIndex].run();
|
|
12403
|
+
}
|
|
12404
|
+
}
|
|
12405
|
+
queueIndex = -1;
|
|
12406
|
+
len = queue.length;
|
|
12407
|
+
}
|
|
12408
|
+
currentQueue = null;
|
|
12409
|
+
draining = false;
|
|
12410
|
+
runClearTimeout(timeout);
|
|
12411
|
+
}
|
|
12412
|
+
|
|
12413
|
+
process.nextTick = function (fun) {
|
|
12414
|
+
var args = new Array(arguments.length - 1);
|
|
12415
|
+
if (arguments.length > 1) {
|
|
12416
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12417
|
+
args[i - 1] = arguments[i];
|
|
12418
|
+
}
|
|
12419
|
+
}
|
|
12420
|
+
queue.push(new Item(fun, args));
|
|
12421
|
+
if (queue.length === 1 && !draining) {
|
|
12422
|
+
runTimeout(drainQueue);
|
|
12423
|
+
}
|
|
12424
|
+
};
|
|
12425
|
+
|
|
12426
|
+
// v8 likes predictible objects
|
|
12427
|
+
function Item(fun, array) {
|
|
12428
|
+
this.fun = fun;
|
|
12429
|
+
this.array = array;
|
|
12430
|
+
}
|
|
12431
|
+
Item.prototype.run = function () {
|
|
12432
|
+
this.fun.apply(null, this.array);
|
|
12433
|
+
};
|
|
12434
|
+
process.title = 'browser';
|
|
12435
|
+
process.browser = true;
|
|
12436
|
+
process.env = {};
|
|
12437
|
+
process.argv = [];
|
|
12438
|
+
process.version = ''; // empty string to avoid regexp issues
|
|
12439
|
+
process.versions = {};
|
|
12440
|
+
|
|
12441
|
+
function noop() {}
|
|
12442
|
+
|
|
12443
|
+
process.on = noop;
|
|
12444
|
+
process.addListener = noop;
|
|
12445
|
+
process.once = noop;
|
|
12446
|
+
process.off = noop;
|
|
12447
|
+
process.removeListener = noop;
|
|
12448
|
+
process.removeAllListeners = noop;
|
|
12449
|
+
process.emit = noop;
|
|
12450
|
+
process.prependListener = noop;
|
|
12451
|
+
process.prependOnceListener = noop;
|
|
12452
|
+
|
|
12453
|
+
process.listeners = function (name) { return [] };
|
|
12454
|
+
|
|
12455
|
+
process.binding = function (name) {
|
|
12456
|
+
throw new Error('process.binding is not supported');
|
|
12457
|
+
};
|
|
12458
|
+
|
|
12459
|
+
process.cwd = function () { return '/' };
|
|
12460
|
+
process.chdir = function (dir) {
|
|
12461
|
+
throw new Error('process.chdir is not supported');
|
|
12462
|
+
};
|
|
12463
|
+
process.umask = function() { return 0; };
|
|
12464
|
+
|
|
12465
|
+
|
|
12466
|
+
/***/ }),
|
|
12467
|
+
/* 1 */
|
|
12468
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
12469
|
+
|
|
12470
|
+
|
|
12471
|
+
/**
|
|
12472
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
12473
|
+
* All rights reserved.
|
|
12474
|
+
*
|
|
12475
|
+
* This source code is licensed under the BSD-style license found in the
|
|
12476
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
12477
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
12478
|
+
*
|
|
12479
|
+
*
|
|
12480
|
+
*/
|
|
12481
|
+
|
|
12482
|
+
function makeEmptyFunction(arg) {
|
|
12483
|
+
return function () {
|
|
12484
|
+
return arg;
|
|
12485
|
+
};
|
|
12486
|
+
}
|
|
12487
|
+
|
|
12488
|
+
/**
|
|
12489
|
+
* This function accepts and discards inputs; it has no side effects. This is
|
|
12490
|
+
* primarily useful idiomatically for overridable function endpoints which
|
|
12491
|
+
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
|
|
12492
|
+
*/
|
|
12493
|
+
var emptyFunction = function emptyFunction() {};
|
|
12494
|
+
|
|
12495
|
+
emptyFunction.thatReturns = makeEmptyFunction;
|
|
12496
|
+
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
|
|
12497
|
+
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
|
|
12498
|
+
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
|
|
12499
|
+
emptyFunction.thatReturnsThis = function () {
|
|
12500
|
+
return this;
|
|
12501
|
+
};
|
|
12502
|
+
emptyFunction.thatReturnsArgument = function (arg) {
|
|
12503
|
+
return arg;
|
|
12504
|
+
};
|
|
12505
|
+
|
|
12506
|
+
module.exports = emptyFunction;
|
|
12507
|
+
|
|
12508
|
+
/***/ }),
|
|
12509
|
+
/* 2 */
|
|
12510
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
12511
|
+
/* WEBPACK VAR INJECTION */(function(process) {/**
|
|
12512
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
12513
|
+
* All rights reserved.
|
|
12514
|
+
*
|
|
12515
|
+
* This source code is licensed under the BSD-style license found in the
|
|
12516
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
12517
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
12518
|
+
*
|
|
12519
|
+
*/
|
|
12520
|
+
|
|
12521
|
+
|
|
12522
|
+
|
|
12523
|
+
/**
|
|
12524
|
+
* Use invariant() to assert state which your program assumes to be true.
|
|
12525
|
+
*
|
|
12526
|
+
* Provide sprintf-style format (only %s is supported) and arguments
|
|
12527
|
+
* to provide information about what broke and what you were
|
|
12528
|
+
* expecting.
|
|
12529
|
+
*
|
|
12530
|
+
* The invariant message will be stripped in production, but the invariant
|
|
12531
|
+
* will remain to ensure logic does not differ in production.
|
|
12532
|
+
*/
|
|
12533
|
+
|
|
12534
|
+
var validateFormat = function validateFormat(format) {};
|
|
12535
|
+
|
|
12536
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12537
|
+
validateFormat = function validateFormat(format) {
|
|
12538
|
+
if (format === undefined) {
|
|
12539
|
+
throw new Error('invariant requires an error message argument');
|
|
12540
|
+
}
|
|
12541
|
+
};
|
|
12542
|
+
}
|
|
12543
|
+
|
|
12544
|
+
function invariant(condition, format, a, b, c, d, e, f) {
|
|
12545
|
+
validateFormat(format);
|
|
12546
|
+
|
|
12547
|
+
if (!condition) {
|
|
12548
|
+
var error;
|
|
12549
|
+
if (format === undefined) {
|
|
12550
|
+
error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
|
|
12551
|
+
} else {
|
|
12552
|
+
var args = [a, b, c, d, e, f];
|
|
12553
|
+
var argIndex = 0;
|
|
12554
|
+
error = new Error(format.replace(/%s/g, function () {
|
|
12555
|
+
return args[argIndex++];
|
|
12556
|
+
}));
|
|
12557
|
+
error.name = 'Invariant Violation';
|
|
12558
|
+
}
|
|
12559
|
+
|
|
12560
|
+
error.framesToPop = 1; // we don't care about invariant's own frame
|
|
12561
|
+
throw error;
|
|
12562
|
+
}
|
|
12563
|
+
}
|
|
12564
|
+
|
|
12565
|
+
module.exports = invariant;
|
|
12566
|
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)));
|
|
12567
|
+
|
|
12568
|
+
/***/ }),
|
|
12569
|
+
/* 3 */
|
|
12570
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
12571
|
+
/**
|
|
12572
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
12573
|
+
* All rights reserved.
|
|
12574
|
+
*
|
|
12575
|
+
* This source code is licensed under the BSD-style license found in the
|
|
12576
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
12577
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
12578
|
+
*/
|
|
12579
|
+
|
|
12580
|
+
|
|
12581
|
+
|
|
12582
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
12583
|
+
|
|
12584
|
+
module.exports = ReactPropTypesSecret;
|
|
12585
|
+
|
|
12586
|
+
|
|
12587
|
+
/***/ }),
|
|
12588
|
+
/* 4 */
|
|
12589
|
+
/***/ (function(module, exports) {
|
|
12590
|
+
|
|
12591
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_4__;
|
|
12592
|
+
|
|
12593
|
+
/***/ }),
|
|
12594
|
+
/* 5 */
|
|
12595
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
12596
|
+
|
|
12597
|
+
|
|
12598
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12599
|
+
value: true
|
|
12600
|
+
});
|
|
12601
|
+
|
|
12602
|
+
var _react = __webpack_require__(4);
|
|
12603
|
+
|
|
12604
|
+
var _react2 = _interopRequireDefault(_react);
|
|
12605
|
+
|
|
12606
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12607
|
+
|
|
12608
|
+
var ScrollSyncContext = _react2.default.createContext({
|
|
12609
|
+
registerPane: function registerPane() {},
|
|
12610
|
+
unregisterPane: function unregisterPane() {}
|
|
12611
|
+
});
|
|
12612
|
+
|
|
12613
|
+
exports.default = ScrollSyncContext;
|
|
12614
|
+
module.exports = exports['default'];
|
|
12615
|
+
|
|
12616
|
+
/***/ }),
|
|
12617
|
+
/* 6 */
|
|
12618
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
12619
|
+
/* WEBPACK VAR INJECTION */(function(process) {/**
|
|
12620
|
+
* Copyright 2014-2015, Facebook, Inc.
|
|
12621
|
+
* All rights reserved.
|
|
12622
|
+
*
|
|
12623
|
+
* This source code is licensed under the BSD-style license found in the
|
|
12624
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
12625
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
12626
|
+
*
|
|
12627
|
+
*/
|
|
12628
|
+
|
|
12629
|
+
|
|
12630
|
+
|
|
12631
|
+
var emptyFunction = __webpack_require__(1);
|
|
12632
|
+
|
|
12633
|
+
/**
|
|
12634
|
+
* Similar to invariant but only logs a warning if the condition is not met.
|
|
12635
|
+
* This can be used to log issues in development environments in critical
|
|
12636
|
+
* paths. Removing the logging code for production environments will keep the
|
|
12637
|
+
* same logic and follow the same code paths.
|
|
12638
|
+
*/
|
|
12639
|
+
|
|
12640
|
+
var warning = emptyFunction;
|
|
12641
|
+
|
|
12642
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12643
|
+
(function () {
|
|
12644
|
+
var printWarning = function printWarning(format) {
|
|
12645
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
12646
|
+
args[_key - 1] = arguments[_key];
|
|
12647
|
+
}
|
|
12648
|
+
|
|
12649
|
+
var argIndex = 0;
|
|
12650
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
12651
|
+
return args[argIndex++];
|
|
12652
|
+
});
|
|
12653
|
+
if (typeof console !== 'undefined') {
|
|
12654
|
+
console.error(message);
|
|
12655
|
+
}
|
|
12656
|
+
try {
|
|
12657
|
+
// --- Welcome to debugging React ---
|
|
12658
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
12659
|
+
// to find the callsite that caused this warning to fire.
|
|
12660
|
+
throw new Error(message);
|
|
12661
|
+
} catch (x) {}
|
|
12662
|
+
};
|
|
12663
|
+
|
|
12664
|
+
warning = function warning(condition, format) {
|
|
12665
|
+
if (format === undefined) {
|
|
12666
|
+
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
12667
|
+
}
|
|
12668
|
+
|
|
12669
|
+
if (format.indexOf('Failed Composite propType: ') === 0) {
|
|
12670
|
+
return; // Ignore CompositeComponent proptype check.
|
|
12671
|
+
}
|
|
12672
|
+
|
|
12673
|
+
if (!condition) {
|
|
12674
|
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
12675
|
+
args[_key2 - 2] = arguments[_key2];
|
|
12676
|
+
}
|
|
12677
|
+
|
|
12678
|
+
printWarning.apply(undefined, [format].concat(args));
|
|
12679
|
+
}
|
|
12680
|
+
};
|
|
12681
|
+
})();
|
|
12682
|
+
}
|
|
12683
|
+
|
|
12684
|
+
module.exports = warning;
|
|
12685
|
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)));
|
|
12686
|
+
|
|
12687
|
+
/***/ }),
|
|
12688
|
+
/* 7 */
|
|
12689
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
12690
|
+
|
|
12691
|
+
/* WEBPACK VAR INJECTION */(function(process) {/**
|
|
12692
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
12693
|
+
* All rights reserved.
|
|
12694
|
+
*
|
|
12695
|
+
* This source code is licensed under the BSD-style license found in the
|
|
12696
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
12697
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
12698
|
+
*/
|
|
12699
|
+
|
|
12700
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12701
|
+
var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
|
|
12702
|
+
Symbol.for &&
|
|
12703
|
+
Symbol.for('react.element')) ||
|
|
12704
|
+
0xeac7;
|
|
12705
|
+
|
|
12706
|
+
var isValidElement = function(object) {
|
|
12707
|
+
return typeof object === 'object' &&
|
|
12708
|
+
object !== null &&
|
|
12709
|
+
object.$$typeof === REACT_ELEMENT_TYPE;
|
|
12710
|
+
};
|
|
12711
|
+
|
|
12712
|
+
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
12713
|
+
// http://fb.me/prop-types-in-prod
|
|
12714
|
+
var throwOnDirectAccess = true;
|
|
12715
|
+
module.exports = __webpack_require__(13)(isValidElement, throwOnDirectAccess);
|
|
12716
|
+
} else {
|
|
12717
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
12718
|
+
// http://fb.me/prop-types-in-prod
|
|
12719
|
+
module.exports = __webpack_require__(12)();
|
|
12720
|
+
}
|
|
12721
|
+
|
|
12722
|
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)));
|
|
12723
|
+
|
|
12724
|
+
/***/ }),
|
|
12725
|
+
/* 8 */
|
|
12726
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
12727
|
+
|
|
12728
|
+
|
|
12729
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12730
|
+
value: true
|
|
12731
|
+
});
|
|
12732
|
+
|
|
12733
|
+
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; }; }();
|
|
12734
|
+
|
|
12735
|
+
var _react = __webpack_require__(4);
|
|
12736
|
+
|
|
12737
|
+
var _react2 = _interopRequireDefault(_react);
|
|
12738
|
+
|
|
12739
|
+
var _propTypes = __webpack_require__(7);
|
|
12740
|
+
|
|
12741
|
+
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
12742
|
+
|
|
12743
|
+
var _ScrollSyncContext = __webpack_require__(5);
|
|
12744
|
+
|
|
12745
|
+
var _ScrollSyncContext2 = _interopRequireDefault(_ScrollSyncContext);
|
|
12746
|
+
|
|
12747
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12748
|
+
|
|
12749
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12750
|
+
|
|
12751
|
+
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; }
|
|
12752
|
+
|
|
12753
|
+
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; }
|
|
12754
|
+
|
|
12755
|
+
/**
|
|
12756
|
+
* ScrollSync provider component
|
|
12757
|
+
*
|
|
12758
|
+
*/
|
|
12759
|
+
|
|
12760
|
+
var ScrollSync = function (_Component) {
|
|
12761
|
+
_inherits(ScrollSync, _Component);
|
|
12762
|
+
|
|
12763
|
+
function ScrollSync() {
|
|
12764
|
+
var _ref;
|
|
12765
|
+
|
|
12766
|
+
var _temp, _this, _ret;
|
|
12767
|
+
|
|
12768
|
+
_classCallCheck(this, ScrollSync);
|
|
12769
|
+
|
|
12770
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
12771
|
+
args[_key] = arguments[_key];
|
|
12772
|
+
}
|
|
12773
|
+
|
|
12774
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ScrollSync.__proto__ || Object.getPrototypeOf(ScrollSync)).call.apply(_ref, [this].concat(args))), _this), _this.panes = {}, _this.registerPane = function (node, groups) {
|
|
12775
|
+
groups.forEach(function (group) {
|
|
12776
|
+
if (!_this.panes[group]) {
|
|
12777
|
+
_this.panes[group] = [];
|
|
12778
|
+
}
|
|
12779
|
+
|
|
12780
|
+
if (!_this.findPane(node, group)) {
|
|
12781
|
+
if (_this.panes[group].length > 0) {
|
|
12782
|
+
_this.syncScrollPosition(_this.panes[group][0], node);
|
|
12783
|
+
}
|
|
12784
|
+
_this.panes[group].push(node);
|
|
12785
|
+
}
|
|
12786
|
+
});
|
|
12787
|
+
_this.addEvents(node, groups);
|
|
12788
|
+
}, _this.unregisterPane = function (node, groups) {
|
|
12789
|
+
groups.forEach(function (group) {
|
|
12790
|
+
if (_this.findPane(node, group)) {
|
|
12791
|
+
_this.removeEvents(node);
|
|
12792
|
+
_this.panes[group].splice(_this.panes[group].indexOf(node), 1);
|
|
12793
|
+
}
|
|
12794
|
+
});
|
|
12795
|
+
}, _this.addEvents = function (node, groups) {
|
|
12796
|
+
/* For some reason element.addEventListener doesnt work with document.body */
|
|
12797
|
+
node.onscroll = _this.handlePaneScroll.bind(_this, node, groups); // eslint-disable-line
|
|
12798
|
+
}, _this.removeEvents = function (node) {
|
|
12799
|
+
/* For some reason element.removeEventListener doesnt work with document.body */
|
|
12800
|
+
node.onscroll = null; // eslint-disable-line
|
|
12801
|
+
}, _this.findPane = function (node, group) {
|
|
12802
|
+
if (!_this.panes[group]) {
|
|
12803
|
+
return false;
|
|
12804
|
+
}
|
|
12805
|
+
|
|
12806
|
+
return _this.panes[group].find(function (pane) {
|
|
12807
|
+
return pane === node;
|
|
12808
|
+
});
|
|
12809
|
+
}, _this.handlePaneScroll = function (node, groups) {
|
|
12810
|
+
if (!_this.props.enabled) {
|
|
12811
|
+
return;
|
|
12812
|
+
}
|
|
12813
|
+
|
|
12814
|
+
window.requestAnimationFrame(function () {
|
|
12815
|
+
_this.syncScrollPositions(node, groups);
|
|
12816
|
+
});
|
|
12817
|
+
}, _this.syncScrollPositions = function (scrolledPane, groups) {
|
|
12818
|
+
groups.forEach(function (group) {
|
|
12819
|
+
_this.panes[group].forEach(function (pane) {
|
|
12820
|
+
/* For all panes beside the currently scrolling one */
|
|
12821
|
+
if (scrolledPane !== pane) {
|
|
12822
|
+
/* Remove event listeners from the node that we'll manipulate */
|
|
12823
|
+
_this.removeEvents(pane, group);
|
|
12824
|
+
_this.syncScrollPosition(scrolledPane, pane);
|
|
12825
|
+
/* Re-attach event listeners after we're done scrolling */
|
|
12826
|
+
window.requestAnimationFrame(function () {
|
|
12827
|
+
_this.addEvents(pane, groups);
|
|
12828
|
+
});
|
|
12829
|
+
}
|
|
12830
|
+
});
|
|
12831
|
+
});
|
|
12832
|
+
if (_this.props.onSync) _this.props.onSync(scrolledPane);
|
|
12833
|
+
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
12834
|
+
}
|
|
12835
|
+
|
|
12836
|
+
_createClass(ScrollSync, [{
|
|
12837
|
+
key: 'getContextValue',
|
|
12838
|
+
value: function getContextValue() {
|
|
12839
|
+
return {
|
|
12840
|
+
registerPane: this.registerPane,
|
|
12841
|
+
unregisterPane: this.unregisterPane
|
|
12842
|
+
};
|
|
12843
|
+
}
|
|
12844
|
+
}, {
|
|
12845
|
+
key: 'syncScrollPosition',
|
|
12846
|
+
value: function syncScrollPosition(scrolledPane, pane) {
|
|
12847
|
+
var scrollTop = scrolledPane.scrollTop,
|
|
12848
|
+
scrollHeight = scrolledPane.scrollHeight,
|
|
12849
|
+
clientHeight = scrolledPane.clientHeight,
|
|
12850
|
+
scrollLeft = scrolledPane.scrollLeft,
|
|
12851
|
+
scrollWidth = scrolledPane.scrollWidth,
|
|
12852
|
+
clientWidth = scrolledPane.clientWidth;
|
|
12853
|
+
|
|
12854
|
+
|
|
12855
|
+
var scrollTopOffset = scrollHeight - clientHeight;
|
|
12856
|
+
var scrollLeftOffset = scrollWidth - clientWidth;
|
|
12857
|
+
|
|
12858
|
+
var _props = this.props,
|
|
12859
|
+
proportional = _props.proportional,
|
|
12860
|
+
vertical = _props.vertical,
|
|
12861
|
+
horizontal = _props.horizontal;
|
|
12862
|
+
|
|
12863
|
+
/* Calculate the actual pane height */
|
|
12864
|
+
|
|
12865
|
+
var paneHeight = pane.scrollHeight - clientHeight;
|
|
12866
|
+
var paneWidth = pane.scrollWidth - clientWidth;
|
|
12867
|
+
/* Adjust the scrollTop position of it accordingly */
|
|
12868
|
+
if (vertical && scrollTopOffset > 0) {
|
|
12869
|
+
pane.scrollTop = proportional ? paneHeight * scrollTop / scrollTopOffset : scrollTop; // eslint-disable-line
|
|
12870
|
+
}
|
|
12871
|
+
if (horizontal && scrollLeftOffset > 0) {
|
|
12872
|
+
pane.scrollLeft = proportional ? paneWidth * scrollLeft / scrollLeftOffset : scrollLeft; // eslint-disable-line
|
|
12873
|
+
}
|
|
12874
|
+
}
|
|
12875
|
+
}, {
|
|
12876
|
+
key: 'render',
|
|
12877
|
+
value: function render() {
|
|
12878
|
+
return _react2.default.createElement(
|
|
12879
|
+
_ScrollSyncContext2.default.Provider,
|
|
12880
|
+
{ value: this.getContextValue() },
|
|
12881
|
+
_react2.default.Children.only(this.props.children)
|
|
12882
|
+
);
|
|
12883
|
+
}
|
|
12884
|
+
}]);
|
|
12885
|
+
|
|
12886
|
+
return ScrollSync;
|
|
12887
|
+
}(_react.Component);
|
|
12888
|
+
|
|
12889
|
+
ScrollSync.propTypes = {
|
|
12890
|
+
/**
|
|
12891
|
+
* Callback to be invoked any time synchronization happens
|
|
12892
|
+
*
|
|
12893
|
+
* @param {Element} el The element that has received the scroll event
|
|
12894
|
+
*/
|
|
12895
|
+
onSync: _propTypes2.default.func,
|
|
12896
|
+
children: _propTypes2.default.element.isRequired,
|
|
12897
|
+
proportional: _propTypes2.default.bool,
|
|
12898
|
+
vertical: _propTypes2.default.bool,
|
|
12899
|
+
horizontal: _propTypes2.default.bool,
|
|
12900
|
+
enabled: _propTypes2.default.bool
|
|
12901
|
+
};
|
|
12902
|
+
ScrollSync.defaultProps = {
|
|
12903
|
+
proportional: true,
|
|
12904
|
+
vertical: true,
|
|
12905
|
+
horizontal: true,
|
|
12906
|
+
enabled: true
|
|
12907
|
+
};
|
|
12908
|
+
exports.default = ScrollSync;
|
|
12909
|
+
module.exports = exports['default'];
|
|
12910
|
+
|
|
12911
|
+
/***/ }),
|
|
12912
|
+
/* 9 */
|
|
12913
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
12914
|
+
|
|
12915
|
+
|
|
12916
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12917
|
+
value: true
|
|
12918
|
+
});
|
|
12919
|
+
|
|
12920
|
+
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; }; }();
|
|
12921
|
+
|
|
12922
|
+
var _react = __webpack_require__(4);
|
|
12923
|
+
|
|
12924
|
+
var _propTypes = __webpack_require__(7);
|
|
12925
|
+
|
|
12926
|
+
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
12927
|
+
|
|
12928
|
+
var _ScrollSyncContext = __webpack_require__(5);
|
|
12929
|
+
|
|
12930
|
+
var _ScrollSyncContext2 = _interopRequireDefault(_ScrollSyncContext);
|
|
12931
|
+
|
|
12932
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12933
|
+
|
|
12934
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12935
|
+
|
|
12936
|
+
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; }
|
|
12937
|
+
|
|
12938
|
+
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; } /* eslint react/no-find-dom-node: 0 */
|
|
12939
|
+
|
|
12940
|
+
/**
|
|
12941
|
+
* ScrollSyncPane Component
|
|
12942
|
+
*
|
|
12943
|
+
* Wrap your content in it to keep its scroll position in sync with other panes
|
|
12944
|
+
*
|
|
12945
|
+
* @example ./example.md
|
|
12946
|
+
*/
|
|
12947
|
+
|
|
12948
|
+
var ScrollSyncPane = function (_Component) {
|
|
12949
|
+
_inherits(ScrollSyncPane, _Component);
|
|
12950
|
+
|
|
12951
|
+
function ScrollSyncPane(props) {
|
|
12952
|
+
_classCallCheck(this, ScrollSyncPane);
|
|
12953
|
+
|
|
12954
|
+
var _this = _possibleConstructorReturn(this, (ScrollSyncPane.__proto__ || Object.getPrototypeOf(ScrollSyncPane)).call(this, props));
|
|
12955
|
+
|
|
12956
|
+
_this.toArray = function (groups) {
|
|
12957
|
+
return [].concat(groups);
|
|
12958
|
+
};
|
|
12959
|
+
|
|
12960
|
+
_this.updateNode = function () {
|
|
12961
|
+
if (_this.props.attachTo) {
|
|
12962
|
+
_this.node = _this.props.attachTo.current;
|
|
12963
|
+
} else {
|
|
12964
|
+
_this.node = _this.childRef.current;
|
|
12965
|
+
}
|
|
12966
|
+
};
|
|
12967
|
+
|
|
12968
|
+
_this.childRef = (0, _react.createRef)();
|
|
12969
|
+
return _this;
|
|
12970
|
+
}
|
|
12971
|
+
|
|
12972
|
+
_createClass(ScrollSyncPane, [{
|
|
12973
|
+
key: 'componentDidMount',
|
|
12974
|
+
value: function componentDidMount() {
|
|
12975
|
+
if (this.props.enabled) {
|
|
12976
|
+
this.updateNode();
|
|
12977
|
+
if (this.node) {
|
|
12978
|
+
this.context.registerPane(this.node, this.toArray(this.props.group));
|
|
12979
|
+
}
|
|
12980
|
+
}
|
|
12981
|
+
}
|
|
12982
|
+
}, {
|
|
12983
|
+
key: 'componentDidUpdate',
|
|
12984
|
+
value: function componentDidUpdate(prevProps) {
|
|
12985
|
+
if (this.props.attachTo !== prevProps.attachTo) {
|
|
12986
|
+
if (this.node) {
|
|
12987
|
+
this.context.unregisterPane(this.node, this.toArray(prevProps.group));
|
|
12988
|
+
}
|
|
12989
|
+
this.updateNode();
|
|
12990
|
+
if (this.node) {
|
|
12991
|
+
this.context.registerPane(this.node, this.toArray(prevProps.group));
|
|
12992
|
+
}
|
|
12993
|
+
}
|
|
12994
|
+
if (this.node && this.props.enabled !== prevProps.enabled) {
|
|
12995
|
+
if (this.props.enabled) {
|
|
12996
|
+
this.context.registerPane(this.node, this.toArray(prevProps.group));
|
|
12997
|
+
} else {
|
|
12998
|
+
this.context.unregisterPane(this.node, this.toArray(prevProps.group));
|
|
12999
|
+
}
|
|
13000
|
+
}
|
|
13001
|
+
if (this.node && this.props.enabled && this.props.group !== prevProps.group) {
|
|
13002
|
+
this.context.unregisterPane(this.node, this.toArray(prevProps.group));
|
|
13003
|
+
this.context.registerPane(this.node, this.toArray(this.props.group));
|
|
13004
|
+
}
|
|
13005
|
+
}
|
|
13006
|
+
}, {
|
|
13007
|
+
key: 'componentWillUnmount',
|
|
13008
|
+
value: function componentWillUnmount() {
|
|
13009
|
+
if (this.node && this.props.enabled) {
|
|
13010
|
+
this.context.unregisterPane(this.node, this.toArray(this.props.group));
|
|
13011
|
+
}
|
|
13012
|
+
}
|
|
13013
|
+
}, {
|
|
13014
|
+
key: 'render',
|
|
13015
|
+
value: function render() {
|
|
13016
|
+
if (this.props.attachTo) {
|
|
13017
|
+
return this.props.children;
|
|
13018
|
+
}
|
|
13019
|
+
return (0, _react.cloneElement)(_react.Children.only(this.props.children), { ref: this.childRef });
|
|
13020
|
+
}
|
|
13021
|
+
}]);
|
|
13022
|
+
|
|
13023
|
+
return ScrollSyncPane;
|
|
13024
|
+
}(_react.Component);
|
|
13025
|
+
|
|
13026
|
+
ScrollSyncPane.contextType = _ScrollSyncContext2.default;
|
|
13027
|
+
ScrollSyncPane.propTypes = {
|
|
13028
|
+
children: _propTypes2.default.node.isRequired,
|
|
13029
|
+
attachTo: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.shape({ current: _propTypes2.default.any })]),
|
|
13030
|
+
group: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.arrayOf(_propTypes2.default.string)]),
|
|
13031
|
+
enabled: _propTypes2.default.bool
|
|
13032
|
+
};
|
|
13033
|
+
ScrollSyncPane.defaultProps = {
|
|
13034
|
+
group: 'default',
|
|
13035
|
+
enabled: true
|
|
13036
|
+
};
|
|
13037
|
+
exports.default = ScrollSyncPane;
|
|
13038
|
+
module.exports = exports['default'];
|
|
13039
|
+
|
|
13040
|
+
/***/ }),
|
|
13041
|
+
/* 10 */
|
|
13042
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
13043
|
+
|
|
13044
|
+
|
|
13045
|
+
Object.defineProperty(exports, "__esModule", {
|
|
13046
|
+
value: true
|
|
13047
|
+
});
|
|
13048
|
+
|
|
13049
|
+
var _ScrollSync = __webpack_require__(8);
|
|
13050
|
+
|
|
13051
|
+
Object.defineProperty(exports, 'ScrollSync', {
|
|
13052
|
+
enumerable: true,
|
|
13053
|
+
get: function get() {
|
|
13054
|
+
return _interopRequireDefault(_ScrollSync).default;
|
|
13055
|
+
}
|
|
13056
|
+
});
|
|
13057
|
+
|
|
13058
|
+
var _ScrollSyncPane = __webpack_require__(9);
|
|
13059
|
+
|
|
13060
|
+
Object.defineProperty(exports, 'ScrollSyncPane', {
|
|
13061
|
+
enumerable: true,
|
|
13062
|
+
get: function get() {
|
|
13063
|
+
return _interopRequireDefault(_ScrollSyncPane).default;
|
|
13064
|
+
}
|
|
13065
|
+
});
|
|
13066
|
+
|
|
13067
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13068
|
+
|
|
13069
|
+
/***/ }),
|
|
13070
|
+
/* 11 */
|
|
13071
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
13072
|
+
/* WEBPACK VAR INJECTION */(function(process) {/**
|
|
13073
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
13074
|
+
* All rights reserved.
|
|
13075
|
+
*
|
|
13076
|
+
* This source code is licensed under the BSD-style license found in the
|
|
13077
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
13078
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
13079
|
+
*/
|
|
13080
|
+
|
|
13081
|
+
|
|
13082
|
+
|
|
13083
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
13084
|
+
var invariant = __webpack_require__(2);
|
|
13085
|
+
var warning = __webpack_require__(6);
|
|
13086
|
+
var ReactPropTypesSecret = __webpack_require__(3);
|
|
13087
|
+
var loggedTypeFailures = {};
|
|
13088
|
+
}
|
|
13089
|
+
|
|
13090
|
+
/**
|
|
13091
|
+
* Assert that the values match with the type specs.
|
|
13092
|
+
* Error messages are memorized and will only be shown once.
|
|
13093
|
+
*
|
|
13094
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
13095
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
13096
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
13097
|
+
* @param {string} componentName Name of the component for error messages.
|
|
13098
|
+
* @param {?Function} getStack Returns the component stack.
|
|
13099
|
+
* @private
|
|
13100
|
+
*/
|
|
13101
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
13102
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
13103
|
+
for (var typeSpecName in typeSpecs) {
|
|
13104
|
+
if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
|
13105
|
+
var error;
|
|
13106
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
13107
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
13108
|
+
// After these have been cleaned up, we'll let them throw.
|
|
13109
|
+
try {
|
|
13110
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
13111
|
+
// behavior as without this statement except with a better message.
|
|
13112
|
+
invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);
|
|
13113
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
13114
|
+
} catch (ex) {
|
|
13115
|
+
error = ex;
|
|
13116
|
+
}
|
|
13117
|
+
warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
|
|
13118
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
13119
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
13120
|
+
// same error.
|
|
13121
|
+
loggedTypeFailures[error.message] = true;
|
|
13122
|
+
|
|
13123
|
+
var stack = getStack ? getStack() : '';
|
|
13124
|
+
|
|
13125
|
+
warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
|
|
13126
|
+
}
|
|
13127
|
+
}
|
|
13128
|
+
}
|
|
13129
|
+
}
|
|
13130
|
+
}
|
|
13131
|
+
|
|
13132
|
+
module.exports = checkPropTypes;
|
|
13133
|
+
|
|
13134
|
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)));
|
|
13135
|
+
|
|
13136
|
+
/***/ }),
|
|
13137
|
+
/* 12 */
|
|
13138
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
13139
|
+
/**
|
|
13140
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
13141
|
+
* All rights reserved.
|
|
13142
|
+
*
|
|
13143
|
+
* This source code is licensed under the BSD-style license found in the
|
|
13144
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
13145
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
13146
|
+
*/
|
|
13147
|
+
|
|
13148
|
+
|
|
13149
|
+
|
|
13150
|
+
var emptyFunction = __webpack_require__(1);
|
|
13151
|
+
var invariant = __webpack_require__(2);
|
|
13152
|
+
var ReactPropTypesSecret = __webpack_require__(3);
|
|
13153
|
+
|
|
13154
|
+
module.exports = function() {
|
|
13155
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
13156
|
+
if (secret === ReactPropTypesSecret) {
|
|
13157
|
+
// It is still safe when called from React.
|
|
13158
|
+
return;
|
|
13159
|
+
}
|
|
13160
|
+
invariant(
|
|
13161
|
+
false,
|
|
13162
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
13163
|
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
13164
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
13165
|
+
);
|
|
13166
|
+
} shim.isRequired = shim;
|
|
13167
|
+
function getShim() {
|
|
13168
|
+
return shim;
|
|
13169
|
+
} // Important!
|
|
13170
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
13171
|
+
var ReactPropTypes = {
|
|
13172
|
+
array: shim,
|
|
13173
|
+
bool: shim,
|
|
13174
|
+
func: shim,
|
|
13175
|
+
number: shim,
|
|
13176
|
+
object: shim,
|
|
13177
|
+
string: shim,
|
|
13178
|
+
symbol: shim,
|
|
13179
|
+
|
|
13180
|
+
any: shim,
|
|
13181
|
+
arrayOf: getShim,
|
|
13182
|
+
element: shim,
|
|
13183
|
+
instanceOf: getShim,
|
|
13184
|
+
node: shim,
|
|
13185
|
+
objectOf: getShim,
|
|
13186
|
+
oneOf: getShim,
|
|
13187
|
+
oneOfType: getShim,
|
|
13188
|
+
shape: getShim
|
|
13189
|
+
};
|
|
13190
|
+
|
|
13191
|
+
ReactPropTypes.checkPropTypes = emptyFunction;
|
|
13192
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
13193
|
+
|
|
13194
|
+
return ReactPropTypes;
|
|
13195
|
+
};
|
|
13196
|
+
|
|
13197
|
+
|
|
13198
|
+
/***/ }),
|
|
13199
|
+
/* 13 */
|
|
13200
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
13201
|
+
/* WEBPACK VAR INJECTION */(function(process) {/**
|
|
13202
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
13203
|
+
* All rights reserved.
|
|
13204
|
+
*
|
|
13205
|
+
* This source code is licensed under the BSD-style license found in the
|
|
13206
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
13207
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
13208
|
+
*/
|
|
13209
|
+
|
|
13210
|
+
|
|
13211
|
+
|
|
13212
|
+
var emptyFunction = __webpack_require__(1);
|
|
13213
|
+
var invariant = __webpack_require__(2);
|
|
13214
|
+
var warning = __webpack_require__(6);
|
|
13215
|
+
|
|
13216
|
+
var ReactPropTypesSecret = __webpack_require__(3);
|
|
13217
|
+
var checkPropTypes = __webpack_require__(11);
|
|
13218
|
+
|
|
13219
|
+
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
13220
|
+
/* global Symbol */
|
|
13221
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
13222
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
13223
|
+
|
|
13224
|
+
/**
|
|
13225
|
+
* Returns the iterator method function contained on the iterable object.
|
|
13226
|
+
*
|
|
13227
|
+
* Be sure to invoke the function with the iterable as context:
|
|
13228
|
+
*
|
|
13229
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
|
13230
|
+
* if (iteratorFn) {
|
|
13231
|
+
* var iterator = iteratorFn.call(myIterable);
|
|
13232
|
+
* ...
|
|
13233
|
+
* }
|
|
13234
|
+
*
|
|
13235
|
+
* @param {?object} maybeIterable
|
|
13236
|
+
* @return {?function}
|
|
13237
|
+
*/
|
|
13238
|
+
function getIteratorFn(maybeIterable) {
|
|
13239
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
13240
|
+
if (typeof iteratorFn === 'function') {
|
|
13241
|
+
return iteratorFn;
|
|
13242
|
+
}
|
|
13243
|
+
}
|
|
13244
|
+
|
|
13245
|
+
/**
|
|
13246
|
+
* Collection of methods that allow declaration and validation of props that are
|
|
13247
|
+
* supplied to React components. Example usage:
|
|
13248
|
+
*
|
|
13249
|
+
* var Props = require('ReactPropTypes');
|
|
13250
|
+
* var MyArticle = React.createClass({
|
|
13251
|
+
* propTypes: {
|
|
13252
|
+
* // An optional string prop named "description".
|
|
13253
|
+
* description: Props.string,
|
|
13254
|
+
*
|
|
13255
|
+
* // A required enum prop named "category".
|
|
13256
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
13257
|
+
*
|
|
13258
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
|
13259
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
|
13260
|
+
* },
|
|
13261
|
+
* render: function() { ... }
|
|
13262
|
+
* });
|
|
13263
|
+
*
|
|
13264
|
+
* A more formal specification of how these methods are used:
|
|
13265
|
+
*
|
|
13266
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
13267
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
13268
|
+
*
|
|
13269
|
+
* Each and every declaration produces a function with the same signature. This
|
|
13270
|
+
* allows the creation of custom validation functions. For example:
|
|
13271
|
+
*
|
|
13272
|
+
* var MyLink = React.createClass({
|
|
13273
|
+
* propTypes: {
|
|
13274
|
+
* // An optional string or URI prop named "href".
|
|
13275
|
+
* href: function(props, propName, componentName) {
|
|
13276
|
+
* var propValue = props[propName];
|
|
13277
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
|
13278
|
+
* !(propValue instanceof URI)) {
|
|
13279
|
+
* return new Error(
|
|
13280
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
13281
|
+
* componentName
|
|
13282
|
+
* );
|
|
13283
|
+
* }
|
|
13284
|
+
* }
|
|
13285
|
+
* },
|
|
13286
|
+
* render: function() {...}
|
|
13287
|
+
* });
|
|
13288
|
+
*
|
|
13289
|
+
* @internal
|
|
13290
|
+
*/
|
|
13291
|
+
|
|
13292
|
+
var ANONYMOUS = '<<anonymous>>';
|
|
13293
|
+
|
|
13294
|
+
// Important!
|
|
13295
|
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
13296
|
+
var ReactPropTypes = {
|
|
13297
|
+
array: createPrimitiveTypeChecker('array'),
|
|
13298
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
13299
|
+
func: createPrimitiveTypeChecker('function'),
|
|
13300
|
+
number: createPrimitiveTypeChecker('number'),
|
|
13301
|
+
object: createPrimitiveTypeChecker('object'),
|
|
13302
|
+
string: createPrimitiveTypeChecker('string'),
|
|
13303
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
13304
|
+
|
|
13305
|
+
any: createAnyTypeChecker(),
|
|
13306
|
+
arrayOf: createArrayOfTypeChecker,
|
|
13307
|
+
element: createElementTypeChecker(),
|
|
13308
|
+
instanceOf: createInstanceTypeChecker,
|
|
13309
|
+
node: createNodeChecker(),
|
|
13310
|
+
objectOf: createObjectOfTypeChecker,
|
|
13311
|
+
oneOf: createEnumTypeChecker,
|
|
13312
|
+
oneOfType: createUnionTypeChecker,
|
|
13313
|
+
shape: createShapeTypeChecker
|
|
13314
|
+
};
|
|
13315
|
+
|
|
13316
|
+
/**
|
|
13317
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
13318
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
13319
|
+
*/
|
|
13320
|
+
/*eslint-disable no-self-compare*/
|
|
13321
|
+
function is(x, y) {
|
|
13322
|
+
// SameValue algorithm
|
|
13323
|
+
if (x === y) {
|
|
13324
|
+
// Steps 1-5, 7-10
|
|
13325
|
+
// Steps 6.b-6.e: +0 != -0
|
|
13326
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
13327
|
+
} else {
|
|
13328
|
+
// Step 6.a: NaN == NaN
|
|
13329
|
+
return x !== x && y !== y;
|
|
13330
|
+
}
|
|
13331
|
+
}
|
|
13332
|
+
/*eslint-enable no-self-compare*/
|
|
13333
|
+
|
|
13334
|
+
/**
|
|
13335
|
+
* We use an Error-like object for backward compatibility as people may call
|
|
13336
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
|
13337
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
13338
|
+
* is prohibitively expensive if they are created too often, such as what
|
|
13339
|
+
* happens in oneOfType() for any type before the one that matched.
|
|
13340
|
+
*/
|
|
13341
|
+
function PropTypeError(message) {
|
|
13342
|
+
this.message = message;
|
|
13343
|
+
this.stack = '';
|
|
13344
|
+
}
|
|
13345
|
+
// Make `instanceof Error` still work for returned errors.
|
|
13346
|
+
PropTypeError.prototype = Error.prototype;
|
|
13347
|
+
|
|
13348
|
+
function createChainableTypeChecker(validate) {
|
|
13349
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
13350
|
+
var manualPropTypeCallCache = {};
|
|
13351
|
+
var manualPropTypeWarningCount = 0;
|
|
13352
|
+
}
|
|
13353
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
13354
|
+
componentName = componentName || ANONYMOUS;
|
|
13355
|
+
propFullName = propFullName || propName;
|
|
13356
|
+
|
|
13357
|
+
if (secret !== ReactPropTypesSecret) {
|
|
13358
|
+
if (throwOnDirectAccess) {
|
|
13359
|
+
// New behavior only for users of `prop-types` package
|
|
13360
|
+
invariant(
|
|
13361
|
+
false,
|
|
13362
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
13363
|
+
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
13364
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
13365
|
+
);
|
|
13366
|
+
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
13367
|
+
// Old behavior for people using React.PropTypes
|
|
13368
|
+
var cacheKey = componentName + ':' + propName;
|
|
13369
|
+
if (
|
|
13370
|
+
!manualPropTypeCallCache[cacheKey] &&
|
|
13371
|
+
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
13372
|
+
manualPropTypeWarningCount < 3
|
|
13373
|
+
) {
|
|
13374
|
+
warning(
|
|
13375
|
+
false,
|
|
13376
|
+
'You are manually calling a React.PropTypes validation ' +
|
|
13377
|
+
'function for the `%s` prop on `%s`. This is deprecated ' +
|
|
13378
|
+
'and will throw in the standalone `prop-types` package. ' +
|
|
13379
|
+
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
13380
|
+
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
|
|
13381
|
+
propFullName,
|
|
13382
|
+
componentName
|
|
13383
|
+
);
|
|
13384
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
13385
|
+
manualPropTypeWarningCount++;
|
|
13386
|
+
}
|
|
13387
|
+
}
|
|
13388
|
+
}
|
|
13389
|
+
if (props[propName] == null) {
|
|
13390
|
+
if (isRequired) {
|
|
13391
|
+
if (props[propName] === null) {
|
|
13392
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
13393
|
+
}
|
|
13394
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
13395
|
+
}
|
|
13396
|
+
return null;
|
|
13397
|
+
} else {
|
|
13398
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
13399
|
+
}
|
|
13400
|
+
}
|
|
13401
|
+
|
|
13402
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
13403
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
13404
|
+
|
|
13405
|
+
return chainedCheckType;
|
|
13406
|
+
}
|
|
13407
|
+
|
|
13408
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
13409
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
13410
|
+
var propValue = props[propName];
|
|
13411
|
+
var propType = getPropType(propValue);
|
|
13412
|
+
if (propType !== expectedType) {
|
|
13413
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
13414
|
+
// check, but we can offer a more precise error message here rather than
|
|
13415
|
+
// 'of type `object`'.
|
|
13416
|
+
var preciseType = getPreciseType(propValue);
|
|
13417
|
+
|
|
13418
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
13419
|
+
}
|
|
13420
|
+
return null;
|
|
13421
|
+
}
|
|
13422
|
+
return createChainableTypeChecker(validate);
|
|
13423
|
+
}
|
|
13424
|
+
|
|
13425
|
+
function createAnyTypeChecker() {
|
|
13426
|
+
return createChainableTypeChecker(emptyFunction.thatReturnsNull);
|
|
13427
|
+
}
|
|
13428
|
+
|
|
13429
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
13430
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
13431
|
+
if (typeof typeChecker !== 'function') {
|
|
13432
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
13433
|
+
}
|
|
13434
|
+
var propValue = props[propName];
|
|
13435
|
+
if (!Array.isArray(propValue)) {
|
|
13436
|
+
var propType = getPropType(propValue);
|
|
13437
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
13438
|
+
}
|
|
13439
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
13440
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
13441
|
+
if (error instanceof Error) {
|
|
13442
|
+
return error;
|
|
13443
|
+
}
|
|
13444
|
+
}
|
|
13445
|
+
return null;
|
|
13446
|
+
}
|
|
13447
|
+
return createChainableTypeChecker(validate);
|
|
13448
|
+
}
|
|
13449
|
+
|
|
13450
|
+
function createElementTypeChecker() {
|
|
13451
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
13452
|
+
var propValue = props[propName];
|
|
13453
|
+
if (!isValidElement(propValue)) {
|
|
13454
|
+
var propType = getPropType(propValue);
|
|
13455
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
13456
|
+
}
|
|
13457
|
+
return null;
|
|
13458
|
+
}
|
|
13459
|
+
return createChainableTypeChecker(validate);
|
|
13460
|
+
}
|
|
13461
|
+
|
|
13462
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
13463
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
13464
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
13465
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
13466
|
+
var actualClassName = getClassName(props[propName]);
|
|
13467
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
13468
|
+
}
|
|
13469
|
+
return null;
|
|
13470
|
+
}
|
|
13471
|
+
return createChainableTypeChecker(validate);
|
|
13472
|
+
}
|
|
13473
|
+
|
|
13474
|
+
function createEnumTypeChecker(expectedValues) {
|
|
13475
|
+
if (!Array.isArray(expectedValues)) {
|
|
13476
|
+
process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
|
|
13477
|
+
return emptyFunction.thatReturnsNull;
|
|
13478
|
+
}
|
|
13479
|
+
|
|
13480
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
13481
|
+
var propValue = props[propName];
|
|
13482
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
13483
|
+
if (is(propValue, expectedValues[i])) {
|
|
13484
|
+
return null;
|
|
13485
|
+
}
|
|
13486
|
+
}
|
|
13487
|
+
|
|
13488
|
+
var valuesString = JSON.stringify(expectedValues);
|
|
13489
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
13490
|
+
}
|
|
13491
|
+
return createChainableTypeChecker(validate);
|
|
13492
|
+
}
|
|
12277
13493
|
|
|
12278
|
-
|
|
13494
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
13495
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
13496
|
+
if (typeof typeChecker !== 'function') {
|
|
13497
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
13498
|
+
}
|
|
13499
|
+
var propValue = props[propName];
|
|
13500
|
+
var propType = getPropType(propValue);
|
|
13501
|
+
if (propType !== 'object') {
|
|
13502
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
13503
|
+
}
|
|
13504
|
+
for (var key in propValue) {
|
|
13505
|
+
if (propValue.hasOwnProperty(key)) {
|
|
13506
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
13507
|
+
if (error instanceof Error) {
|
|
13508
|
+
return error;
|
|
13509
|
+
}
|
|
13510
|
+
}
|
|
13511
|
+
}
|
|
13512
|
+
return null;
|
|
13513
|
+
}
|
|
13514
|
+
return createChainableTypeChecker(validate);
|
|
13515
|
+
}
|
|
12279
13516
|
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
value: true
|
|
12286
|
-
});
|
|
12287
|
-
|
|
12288
|
-
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; }; }();
|
|
12289
|
-
|
|
12290
|
-
var _react = __webpack_require__(2);
|
|
12291
|
-
|
|
12292
|
-
var _react2 = _interopRequireDefault(_react);
|
|
12293
|
-
|
|
12294
|
-
var _propTypes = __webpack_require__(3);
|
|
12295
|
-
|
|
12296
|
-
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
12297
|
-
|
|
12298
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12299
|
-
|
|
12300
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12301
|
-
|
|
12302
|
-
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; }
|
|
12303
|
-
|
|
12304
|
-
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; }
|
|
12305
|
-
|
|
12306
|
-
/**
|
|
12307
|
-
* ScrollSync provider component
|
|
12308
|
-
*
|
|
12309
|
-
*/
|
|
12310
|
-
|
|
12311
|
-
var ScrollSync = function (_Component) {
|
|
12312
|
-
_inherits(ScrollSync, _Component);
|
|
12313
|
-
|
|
12314
|
-
function ScrollSync() {
|
|
12315
|
-
var _ref;
|
|
12316
|
-
|
|
12317
|
-
var _temp, _this, _ret;
|
|
12318
|
-
|
|
12319
|
-
_classCallCheck(this, ScrollSync);
|
|
12320
|
-
|
|
12321
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
12322
|
-
args[_key] = arguments[_key];
|
|
12323
|
-
}
|
|
12324
|
-
|
|
12325
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ScrollSync.__proto__ || Object.getPrototypeOf(ScrollSync)).call.apply(_ref, [this].concat(args))), _this), _this.panes = {}, _this.registerPane = function (node, groups) {
|
|
12326
|
-
groups.forEach(function (group) {
|
|
12327
|
-
if (!_this.panes[group]) {
|
|
12328
|
-
_this.panes[group] = [];
|
|
12329
|
-
}
|
|
12330
|
-
|
|
12331
|
-
if (!_this.findPane(node, group)) {
|
|
12332
|
-
if (_this.panes[group].length > 0) {
|
|
12333
|
-
_this.syncScrollPosition(_this.panes[group][0], node);
|
|
12334
|
-
}
|
|
12335
|
-
_this.panes[group].push(node);
|
|
12336
|
-
}
|
|
12337
|
-
});
|
|
12338
|
-
_this.addEvents(node, groups);
|
|
12339
|
-
}, _this.unregisterPane = function (node, groups) {
|
|
12340
|
-
groups.forEach(function (group) {
|
|
12341
|
-
if (_this.findPane(node, group)) {
|
|
12342
|
-
_this.removeEvents(node);
|
|
12343
|
-
_this.panes[group].splice(_this.panes[group].indexOf(node), 1);
|
|
12344
|
-
}
|
|
12345
|
-
});
|
|
12346
|
-
}, _this.addEvents = function (node, groups) {
|
|
12347
|
-
/* For some reason element.addEventListener doesnt work with document.body */
|
|
12348
|
-
node.onscroll = _this.handlePaneScroll.bind(_this, node, groups); // eslint-disable-line
|
|
12349
|
-
}, _this.removeEvents = function (node) {
|
|
12350
|
-
/* For some reason element.removeEventListener doesnt work with document.body */
|
|
12351
|
-
node.onscroll = null; // eslint-disable-line
|
|
12352
|
-
}, _this.findPane = function (node, group) {
|
|
12353
|
-
if (!_this.panes[group]) {
|
|
12354
|
-
return false;
|
|
12355
|
-
}
|
|
12356
|
-
|
|
12357
|
-
return _this.panes[group].find(function (pane) {
|
|
12358
|
-
return pane === node;
|
|
12359
|
-
});
|
|
12360
|
-
}, _this.handlePaneScroll = function (node, groups) {
|
|
12361
|
-
if (!_this.props.enabled) {
|
|
12362
|
-
return;
|
|
12363
|
-
}
|
|
12364
|
-
|
|
12365
|
-
window.requestAnimationFrame(function () {
|
|
12366
|
-
_this.syncScrollPositions(node, groups);
|
|
12367
|
-
});
|
|
12368
|
-
}, _this.syncScrollPositions = function (scrolledPane, groups) {
|
|
12369
|
-
groups.forEach(function (group) {
|
|
12370
|
-
_this.panes[group].forEach(function (pane) {
|
|
12371
|
-
/* For all panes beside the currently scrolling one */
|
|
12372
|
-
if (scrolledPane !== pane) {
|
|
12373
|
-
/* Remove event listeners from the node that we'll manipulate */
|
|
12374
|
-
_this.removeEvents(pane, group);
|
|
12375
|
-
_this.syncScrollPosition(scrolledPane, pane);
|
|
12376
|
-
/* Re-attach event listeners after we're done scrolling */
|
|
12377
|
-
window.requestAnimationFrame(function () {
|
|
12378
|
-
_this.addEvents(pane, groups);
|
|
12379
|
-
});
|
|
12380
|
-
}
|
|
12381
|
-
});
|
|
12382
|
-
});
|
|
12383
|
-
if (_this.props.onSync) _this.props.onSync(scrolledPane);
|
|
12384
|
-
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
12385
|
-
}
|
|
12386
|
-
|
|
12387
|
-
_createClass(ScrollSync, [{
|
|
12388
|
-
key: 'getChildContext',
|
|
12389
|
-
value: function getChildContext() {
|
|
12390
|
-
return {
|
|
12391
|
-
registerPane: this.registerPane,
|
|
12392
|
-
unregisterPane: this.unregisterPane
|
|
12393
|
-
};
|
|
12394
|
-
}
|
|
12395
|
-
}, {
|
|
12396
|
-
key: 'syncScrollPosition',
|
|
12397
|
-
value: function syncScrollPosition(scrolledPane, pane) {
|
|
12398
|
-
var scrollTop = scrolledPane.scrollTop,
|
|
12399
|
-
scrollHeight = scrolledPane.scrollHeight,
|
|
12400
|
-
clientHeight = scrolledPane.clientHeight,
|
|
12401
|
-
scrollLeft = scrolledPane.scrollLeft,
|
|
12402
|
-
scrollWidth = scrolledPane.scrollWidth,
|
|
12403
|
-
clientWidth = scrolledPane.clientWidth;
|
|
12404
|
-
|
|
12405
|
-
|
|
12406
|
-
var scrollTopOffset = scrollHeight - clientHeight;
|
|
12407
|
-
var scrollLeftOffset = scrollWidth - clientWidth;
|
|
12408
|
-
|
|
12409
|
-
var _props = this.props,
|
|
12410
|
-
proportional = _props.proportional,
|
|
12411
|
-
vertical = _props.vertical,
|
|
12412
|
-
horizontal = _props.horizontal;
|
|
12413
|
-
|
|
12414
|
-
/* Calculate the actual pane height */
|
|
12415
|
-
|
|
12416
|
-
var paneHeight = pane.scrollHeight - clientHeight;
|
|
12417
|
-
var paneWidth = pane.scrollWidth - clientWidth;
|
|
12418
|
-
/* Adjust the scrollTop position of it accordingly */
|
|
12419
|
-
if (vertical && scrollTopOffset > 0) {
|
|
12420
|
-
pane.scrollTop = proportional ? paneHeight * scrollTop / scrollTopOffset : scrollTop; // eslint-disable-line
|
|
12421
|
-
}
|
|
12422
|
-
if (horizontal && scrollLeftOffset > 0) {
|
|
12423
|
-
pane.scrollLeft = proportional ? paneWidth * scrollLeft / scrollLeftOffset : scrollLeft; // eslint-disable-line
|
|
12424
|
-
}
|
|
12425
|
-
}
|
|
12426
|
-
}, {
|
|
12427
|
-
key: 'render',
|
|
12428
|
-
value: function render() {
|
|
12429
|
-
return _react2.default.Children.only(this.props.children);
|
|
12430
|
-
}
|
|
12431
|
-
}]);
|
|
12432
|
-
|
|
12433
|
-
return ScrollSync;
|
|
12434
|
-
}(_react.Component);
|
|
12435
|
-
|
|
12436
|
-
ScrollSync.propTypes = {
|
|
12437
|
-
/**
|
|
12438
|
-
* Callback to be invoked any time synchronization happens
|
|
12439
|
-
*
|
|
12440
|
-
* @param {Element} el The element that has received the scroll event
|
|
12441
|
-
*/
|
|
12442
|
-
onSync: _propTypes2.default.func,
|
|
12443
|
-
children: _propTypes2.default.element.isRequired,
|
|
12444
|
-
proportional: _propTypes2.default.bool,
|
|
12445
|
-
vertical: _propTypes2.default.bool,
|
|
12446
|
-
horizontal: _propTypes2.default.bool,
|
|
12447
|
-
enabled: _propTypes2.default.bool
|
|
12448
|
-
};
|
|
12449
|
-
ScrollSync.defaultProps = {
|
|
12450
|
-
proportional: true,
|
|
12451
|
-
vertical: true,
|
|
12452
|
-
horizontal: true,
|
|
12453
|
-
enabled: true
|
|
12454
|
-
};
|
|
12455
|
-
ScrollSync.childContextTypes = {
|
|
12456
|
-
registerPane: _propTypes2.default.func,
|
|
12457
|
-
unregisterPane: _propTypes2.default.func
|
|
12458
|
-
};
|
|
12459
|
-
exports.default = ScrollSync;
|
|
12460
|
-
module.exports = exports['default'];
|
|
13517
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
13518
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
13519
|
+
process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
13520
|
+
return emptyFunction.thatReturnsNull;
|
|
13521
|
+
}
|
|
12461
13522
|
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
|
|
13523
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
13524
|
+
var checker = arrayOfTypeCheckers[i];
|
|
13525
|
+
if (typeof checker !== 'function') {
|
|
13526
|
+
warning(
|
|
13527
|
+
false,
|
|
13528
|
+
'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +
|
|
13529
|
+
'received %s at index %s.',
|
|
13530
|
+
getPostfixForTypeWarning(checker),
|
|
13531
|
+
i
|
|
13532
|
+
);
|
|
13533
|
+
return emptyFunction.thatReturnsNull;
|
|
13534
|
+
}
|
|
13535
|
+
}
|
|
12465
13536
|
|
|
12466
|
-
|
|
13537
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
13538
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
13539
|
+
var checker = arrayOfTypeCheckers[i];
|
|
13540
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
|
13541
|
+
return null;
|
|
13542
|
+
}
|
|
13543
|
+
}
|
|
12467
13544
|
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
/* WEBPACK VAR INJECTION */(function(process) {/**
|
|
12473
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
12474
|
-
* All rights reserved.
|
|
12475
|
-
*
|
|
12476
|
-
* This source code is licensed under the BSD-style license found in the
|
|
12477
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
12478
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
12479
|
-
*/
|
|
12480
|
-
|
|
12481
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
12482
|
-
var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
|
|
12483
|
-
Symbol.for &&
|
|
12484
|
-
Symbol.for('react.element')) ||
|
|
12485
|
-
0xeac7;
|
|
12486
|
-
|
|
12487
|
-
var isValidElement = function(object) {
|
|
12488
|
-
return typeof object === 'object' &&
|
|
12489
|
-
object !== null &&
|
|
12490
|
-
object.$$typeof === REACT_ELEMENT_TYPE;
|
|
12491
|
-
};
|
|
12492
|
-
|
|
12493
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
12494
|
-
// http://fb.me/prop-types-in-prod
|
|
12495
|
-
var throwOnDirectAccess = true;
|
|
12496
|
-
module.exports = __webpack_require__(5)(isValidElement, throwOnDirectAccess);
|
|
12497
|
-
} else {
|
|
12498
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
12499
|
-
// http://fb.me/prop-types-in-prod
|
|
12500
|
-
module.exports = __webpack_require__(11)();
|
|
12501
|
-
}
|
|
12502
|
-
|
|
12503
|
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)));
|
|
13545
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
13546
|
+
}
|
|
13547
|
+
return createChainableTypeChecker(validate);
|
|
13548
|
+
}
|
|
12504
13549
|
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
12515
|
-
// function because try/catches deoptimize in certain engines.
|
|
12516
|
-
|
|
12517
|
-
var cachedSetTimeout;
|
|
12518
|
-
var cachedClearTimeout;
|
|
12519
|
-
|
|
12520
|
-
function defaultSetTimout() {
|
|
12521
|
-
throw new Error('setTimeout has not been defined');
|
|
12522
|
-
}
|
|
12523
|
-
function defaultClearTimeout () {
|
|
12524
|
-
throw new Error('clearTimeout has not been defined');
|
|
12525
|
-
}
|
|
12526
|
-
(function () {
|
|
12527
|
-
try {
|
|
12528
|
-
if (typeof setTimeout === 'function') {
|
|
12529
|
-
cachedSetTimeout = setTimeout;
|
|
12530
|
-
} else {
|
|
12531
|
-
cachedSetTimeout = defaultSetTimout;
|
|
12532
|
-
}
|
|
12533
|
-
} catch (e) {
|
|
12534
|
-
cachedSetTimeout = defaultSetTimout;
|
|
12535
|
-
}
|
|
12536
|
-
try {
|
|
12537
|
-
if (typeof clearTimeout === 'function') {
|
|
12538
|
-
cachedClearTimeout = clearTimeout;
|
|
12539
|
-
} else {
|
|
12540
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
12541
|
-
}
|
|
12542
|
-
} catch (e) {
|
|
12543
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
12544
|
-
}
|
|
12545
|
-
} ());
|
|
12546
|
-
function runTimeout(fun) {
|
|
12547
|
-
if (cachedSetTimeout === setTimeout) {
|
|
12548
|
-
//normal enviroments in sane situations
|
|
12549
|
-
return setTimeout(fun, 0);
|
|
12550
|
-
}
|
|
12551
|
-
// if setTimeout wasn't available but was latter defined
|
|
12552
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
12553
|
-
cachedSetTimeout = setTimeout;
|
|
12554
|
-
return setTimeout(fun, 0);
|
|
12555
|
-
}
|
|
12556
|
-
try {
|
|
12557
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
12558
|
-
return cachedSetTimeout(fun, 0);
|
|
12559
|
-
} catch(e){
|
|
12560
|
-
try {
|
|
12561
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
12562
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
12563
|
-
} catch(e){
|
|
12564
|
-
// 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
|
|
12565
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
12566
|
-
}
|
|
12567
|
-
}
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
}
|
|
12571
|
-
function runClearTimeout(marker) {
|
|
12572
|
-
if (cachedClearTimeout === clearTimeout) {
|
|
12573
|
-
//normal enviroments in sane situations
|
|
12574
|
-
return clearTimeout(marker);
|
|
12575
|
-
}
|
|
12576
|
-
// if clearTimeout wasn't available but was latter defined
|
|
12577
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
12578
|
-
cachedClearTimeout = clearTimeout;
|
|
12579
|
-
return clearTimeout(marker);
|
|
12580
|
-
}
|
|
12581
|
-
try {
|
|
12582
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
12583
|
-
return cachedClearTimeout(marker);
|
|
12584
|
-
} catch (e){
|
|
12585
|
-
try {
|
|
12586
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
12587
|
-
return cachedClearTimeout.call(null, marker);
|
|
12588
|
-
} catch (e){
|
|
12589
|
-
// 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.
|
|
12590
|
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
12591
|
-
return cachedClearTimeout.call(this, marker);
|
|
12592
|
-
}
|
|
12593
|
-
}
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
}
|
|
12598
|
-
var queue = [];
|
|
12599
|
-
var draining = false;
|
|
12600
|
-
var currentQueue;
|
|
12601
|
-
var queueIndex = -1;
|
|
12602
|
-
|
|
12603
|
-
function cleanUpNextTick() {
|
|
12604
|
-
if (!draining || !currentQueue) {
|
|
12605
|
-
return;
|
|
12606
|
-
}
|
|
12607
|
-
draining = false;
|
|
12608
|
-
if (currentQueue.length) {
|
|
12609
|
-
queue = currentQueue.concat(queue);
|
|
12610
|
-
} else {
|
|
12611
|
-
queueIndex = -1;
|
|
12612
|
-
}
|
|
12613
|
-
if (queue.length) {
|
|
12614
|
-
drainQueue();
|
|
12615
|
-
}
|
|
12616
|
-
}
|
|
12617
|
-
|
|
12618
|
-
function drainQueue() {
|
|
12619
|
-
if (draining) {
|
|
12620
|
-
return;
|
|
12621
|
-
}
|
|
12622
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
12623
|
-
draining = true;
|
|
12624
|
-
|
|
12625
|
-
var len = queue.length;
|
|
12626
|
-
while(len) {
|
|
12627
|
-
currentQueue = queue;
|
|
12628
|
-
queue = [];
|
|
12629
|
-
while (++queueIndex < len) {
|
|
12630
|
-
if (currentQueue) {
|
|
12631
|
-
currentQueue[queueIndex].run();
|
|
12632
|
-
}
|
|
12633
|
-
}
|
|
12634
|
-
queueIndex = -1;
|
|
12635
|
-
len = queue.length;
|
|
12636
|
-
}
|
|
12637
|
-
currentQueue = null;
|
|
12638
|
-
draining = false;
|
|
12639
|
-
runClearTimeout(timeout);
|
|
12640
|
-
}
|
|
12641
|
-
|
|
12642
|
-
process.nextTick = function (fun) {
|
|
12643
|
-
var args = new Array(arguments.length - 1);
|
|
12644
|
-
if (arguments.length > 1) {
|
|
12645
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
12646
|
-
args[i - 1] = arguments[i];
|
|
12647
|
-
}
|
|
12648
|
-
}
|
|
12649
|
-
queue.push(new Item(fun, args));
|
|
12650
|
-
if (queue.length === 1 && !draining) {
|
|
12651
|
-
runTimeout(drainQueue);
|
|
12652
|
-
}
|
|
12653
|
-
};
|
|
12654
|
-
|
|
12655
|
-
// v8 likes predictible objects
|
|
12656
|
-
function Item(fun, array) {
|
|
12657
|
-
this.fun = fun;
|
|
12658
|
-
this.array = array;
|
|
12659
|
-
}
|
|
12660
|
-
Item.prototype.run = function () {
|
|
12661
|
-
this.fun.apply(null, this.array);
|
|
12662
|
-
};
|
|
12663
|
-
process.title = 'browser';
|
|
12664
|
-
process.browser = true;
|
|
12665
|
-
process.env = {};
|
|
12666
|
-
process.argv = [];
|
|
12667
|
-
process.version = ''; // empty string to avoid regexp issues
|
|
12668
|
-
process.versions = {};
|
|
12669
|
-
|
|
12670
|
-
function noop() {}
|
|
12671
|
-
|
|
12672
|
-
process.on = noop;
|
|
12673
|
-
process.addListener = noop;
|
|
12674
|
-
process.once = noop;
|
|
12675
|
-
process.off = noop;
|
|
12676
|
-
process.removeListener = noop;
|
|
12677
|
-
process.removeAllListeners = noop;
|
|
12678
|
-
process.emit = noop;
|
|
12679
|
-
process.prependListener = noop;
|
|
12680
|
-
process.prependOnceListener = noop;
|
|
12681
|
-
|
|
12682
|
-
process.listeners = function (name) { return [] };
|
|
12683
|
-
|
|
12684
|
-
process.binding = function (name) {
|
|
12685
|
-
throw new Error('process.binding is not supported');
|
|
12686
|
-
};
|
|
12687
|
-
|
|
12688
|
-
process.cwd = function () { return '/' };
|
|
12689
|
-
process.chdir = function (dir) {
|
|
12690
|
-
throw new Error('process.chdir is not supported');
|
|
12691
|
-
};
|
|
12692
|
-
process.umask = function() { return 0; };
|
|
13550
|
+
function createNodeChecker() {
|
|
13551
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
13552
|
+
if (!isNode(props[propName])) {
|
|
13553
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
13554
|
+
}
|
|
13555
|
+
return null;
|
|
13556
|
+
}
|
|
13557
|
+
return createChainableTypeChecker(validate);
|
|
13558
|
+
}
|
|
12693
13559
|
|
|
13560
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
13561
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
13562
|
+
var propValue = props[propName];
|
|
13563
|
+
var propType = getPropType(propValue);
|
|
13564
|
+
if (propType !== 'object') {
|
|
13565
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
13566
|
+
}
|
|
13567
|
+
for (var key in shapeTypes) {
|
|
13568
|
+
var checker = shapeTypes[key];
|
|
13569
|
+
if (!checker) {
|
|
13570
|
+
continue;
|
|
13571
|
+
}
|
|
13572
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
13573
|
+
if (error) {
|
|
13574
|
+
return error;
|
|
13575
|
+
}
|
|
13576
|
+
}
|
|
13577
|
+
return null;
|
|
13578
|
+
}
|
|
13579
|
+
return createChainableTypeChecker(validate);
|
|
13580
|
+
}
|
|
12694
13581
|
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
var warning = __webpack_require__(8);
|
|
12711
|
-
|
|
12712
|
-
var ReactPropTypesSecret = __webpack_require__(9);
|
|
12713
|
-
var checkPropTypes = __webpack_require__(10);
|
|
12714
|
-
|
|
12715
|
-
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
12716
|
-
/* global Symbol */
|
|
12717
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
12718
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
12719
|
-
|
|
12720
|
-
/**
|
|
12721
|
-
* Returns the iterator method function contained on the iterable object.
|
|
12722
|
-
*
|
|
12723
|
-
* Be sure to invoke the function with the iterable as context:
|
|
12724
|
-
*
|
|
12725
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
12726
|
-
* if (iteratorFn) {
|
|
12727
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
12728
|
-
* ...
|
|
12729
|
-
* }
|
|
12730
|
-
*
|
|
12731
|
-
* @param {?object} maybeIterable
|
|
12732
|
-
* @return {?function}
|
|
12733
|
-
*/
|
|
12734
|
-
function getIteratorFn(maybeIterable) {
|
|
12735
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
12736
|
-
if (typeof iteratorFn === 'function') {
|
|
12737
|
-
return iteratorFn;
|
|
12738
|
-
}
|
|
12739
|
-
}
|
|
12740
|
-
|
|
12741
|
-
/**
|
|
12742
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
12743
|
-
* supplied to React components. Example usage:
|
|
12744
|
-
*
|
|
12745
|
-
* var Props = require('ReactPropTypes');
|
|
12746
|
-
* var MyArticle = React.createClass({
|
|
12747
|
-
* propTypes: {
|
|
12748
|
-
* // An optional string prop named "description".
|
|
12749
|
-
* description: Props.string,
|
|
12750
|
-
*
|
|
12751
|
-
* // A required enum prop named "category".
|
|
12752
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
12753
|
-
*
|
|
12754
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
12755
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
12756
|
-
* },
|
|
12757
|
-
* render: function() { ... }
|
|
12758
|
-
* });
|
|
12759
|
-
*
|
|
12760
|
-
* A more formal specification of how these methods are used:
|
|
12761
|
-
*
|
|
12762
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
12763
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
12764
|
-
*
|
|
12765
|
-
* Each and every declaration produces a function with the same signature. This
|
|
12766
|
-
* allows the creation of custom validation functions. For example:
|
|
12767
|
-
*
|
|
12768
|
-
* var MyLink = React.createClass({
|
|
12769
|
-
* propTypes: {
|
|
12770
|
-
* // An optional string or URI prop named "href".
|
|
12771
|
-
* href: function(props, propName, componentName) {
|
|
12772
|
-
* var propValue = props[propName];
|
|
12773
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
12774
|
-
* !(propValue instanceof URI)) {
|
|
12775
|
-
* return new Error(
|
|
12776
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
12777
|
-
* componentName
|
|
12778
|
-
* );
|
|
12779
|
-
* }
|
|
12780
|
-
* }
|
|
12781
|
-
* },
|
|
12782
|
-
* render: function() {...}
|
|
12783
|
-
* });
|
|
12784
|
-
*
|
|
12785
|
-
* @internal
|
|
12786
|
-
*/
|
|
12787
|
-
|
|
12788
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
12789
|
-
|
|
12790
|
-
// Important!
|
|
12791
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
12792
|
-
var ReactPropTypes = {
|
|
12793
|
-
array: createPrimitiveTypeChecker('array'),
|
|
12794
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
12795
|
-
func: createPrimitiveTypeChecker('function'),
|
|
12796
|
-
number: createPrimitiveTypeChecker('number'),
|
|
12797
|
-
object: createPrimitiveTypeChecker('object'),
|
|
12798
|
-
string: createPrimitiveTypeChecker('string'),
|
|
12799
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
12800
|
-
|
|
12801
|
-
any: createAnyTypeChecker(),
|
|
12802
|
-
arrayOf: createArrayOfTypeChecker,
|
|
12803
|
-
element: createElementTypeChecker(),
|
|
12804
|
-
instanceOf: createInstanceTypeChecker,
|
|
12805
|
-
node: createNodeChecker(),
|
|
12806
|
-
objectOf: createObjectOfTypeChecker,
|
|
12807
|
-
oneOf: createEnumTypeChecker,
|
|
12808
|
-
oneOfType: createUnionTypeChecker,
|
|
12809
|
-
shape: createShapeTypeChecker
|
|
12810
|
-
};
|
|
12811
|
-
|
|
12812
|
-
/**
|
|
12813
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
12814
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
12815
|
-
*/
|
|
12816
|
-
/*eslint-disable no-self-compare*/
|
|
12817
|
-
function is(x, y) {
|
|
12818
|
-
// SameValue algorithm
|
|
12819
|
-
if (x === y) {
|
|
12820
|
-
// Steps 1-5, 7-10
|
|
12821
|
-
// Steps 6.b-6.e: +0 != -0
|
|
12822
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
12823
|
-
} else {
|
|
12824
|
-
// Step 6.a: NaN == NaN
|
|
12825
|
-
return x !== x && y !== y;
|
|
12826
|
-
}
|
|
12827
|
-
}
|
|
12828
|
-
/*eslint-enable no-self-compare*/
|
|
12829
|
-
|
|
12830
|
-
/**
|
|
12831
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
12832
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
12833
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
12834
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
12835
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
12836
|
-
*/
|
|
12837
|
-
function PropTypeError(message) {
|
|
12838
|
-
this.message = message;
|
|
12839
|
-
this.stack = '';
|
|
12840
|
-
}
|
|
12841
|
-
// Make `instanceof Error` still work for returned errors.
|
|
12842
|
-
PropTypeError.prototype = Error.prototype;
|
|
12843
|
-
|
|
12844
|
-
function createChainableTypeChecker(validate) {
|
|
12845
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
12846
|
-
var manualPropTypeCallCache = {};
|
|
12847
|
-
var manualPropTypeWarningCount = 0;
|
|
12848
|
-
}
|
|
12849
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
12850
|
-
componentName = componentName || ANONYMOUS;
|
|
12851
|
-
propFullName = propFullName || propName;
|
|
12852
|
-
|
|
12853
|
-
if (secret !== ReactPropTypesSecret) {
|
|
12854
|
-
if (throwOnDirectAccess) {
|
|
12855
|
-
// New behavior only for users of `prop-types` package
|
|
12856
|
-
invariant(
|
|
12857
|
-
false,
|
|
12858
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
12859
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
12860
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
12861
|
-
);
|
|
12862
|
-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
12863
|
-
// Old behavior for people using React.PropTypes
|
|
12864
|
-
var cacheKey = componentName + ':' + propName;
|
|
12865
|
-
if (
|
|
12866
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
12867
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
12868
|
-
manualPropTypeWarningCount < 3
|
|
12869
|
-
) {
|
|
12870
|
-
warning(
|
|
12871
|
-
false,
|
|
12872
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
12873
|
-
'function for the `%s` prop on `%s`. This is deprecated ' +
|
|
12874
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
12875
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
12876
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
|
|
12877
|
-
propFullName,
|
|
12878
|
-
componentName
|
|
12879
|
-
);
|
|
12880
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
12881
|
-
manualPropTypeWarningCount++;
|
|
12882
|
-
}
|
|
12883
|
-
}
|
|
12884
|
-
}
|
|
12885
|
-
if (props[propName] == null) {
|
|
12886
|
-
if (isRequired) {
|
|
12887
|
-
if (props[propName] === null) {
|
|
12888
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
12889
|
-
}
|
|
12890
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
12891
|
-
}
|
|
12892
|
-
return null;
|
|
12893
|
-
} else {
|
|
12894
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
12895
|
-
}
|
|
12896
|
-
}
|
|
12897
|
-
|
|
12898
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
12899
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
12900
|
-
|
|
12901
|
-
return chainedCheckType;
|
|
12902
|
-
}
|
|
12903
|
-
|
|
12904
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
12905
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
12906
|
-
var propValue = props[propName];
|
|
12907
|
-
var propType = getPropType(propValue);
|
|
12908
|
-
if (propType !== expectedType) {
|
|
12909
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
12910
|
-
// check, but we can offer a more precise error message here rather than
|
|
12911
|
-
// 'of type `object`'.
|
|
12912
|
-
var preciseType = getPreciseType(propValue);
|
|
12913
|
-
|
|
12914
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
12915
|
-
}
|
|
12916
|
-
return null;
|
|
12917
|
-
}
|
|
12918
|
-
return createChainableTypeChecker(validate);
|
|
12919
|
-
}
|
|
12920
|
-
|
|
12921
|
-
function createAnyTypeChecker() {
|
|
12922
|
-
return createChainableTypeChecker(emptyFunction.thatReturnsNull);
|
|
12923
|
-
}
|
|
12924
|
-
|
|
12925
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
12926
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
12927
|
-
if (typeof typeChecker !== 'function') {
|
|
12928
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
12929
|
-
}
|
|
12930
|
-
var propValue = props[propName];
|
|
12931
|
-
if (!Array.isArray(propValue)) {
|
|
12932
|
-
var propType = getPropType(propValue);
|
|
12933
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
12934
|
-
}
|
|
12935
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
12936
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
12937
|
-
if (error instanceof Error) {
|
|
12938
|
-
return error;
|
|
12939
|
-
}
|
|
12940
|
-
}
|
|
12941
|
-
return null;
|
|
12942
|
-
}
|
|
12943
|
-
return createChainableTypeChecker(validate);
|
|
12944
|
-
}
|
|
12945
|
-
|
|
12946
|
-
function createElementTypeChecker() {
|
|
12947
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
12948
|
-
var propValue = props[propName];
|
|
12949
|
-
if (!isValidElement(propValue)) {
|
|
12950
|
-
var propType = getPropType(propValue);
|
|
12951
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
12952
|
-
}
|
|
12953
|
-
return null;
|
|
12954
|
-
}
|
|
12955
|
-
return createChainableTypeChecker(validate);
|
|
12956
|
-
}
|
|
12957
|
-
|
|
12958
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
12959
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
12960
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
12961
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
12962
|
-
var actualClassName = getClassName(props[propName]);
|
|
12963
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
12964
|
-
}
|
|
12965
|
-
return null;
|
|
12966
|
-
}
|
|
12967
|
-
return createChainableTypeChecker(validate);
|
|
12968
|
-
}
|
|
12969
|
-
|
|
12970
|
-
function createEnumTypeChecker(expectedValues) {
|
|
12971
|
-
if (!Array.isArray(expectedValues)) {
|
|
12972
|
-
process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
|
|
12973
|
-
return emptyFunction.thatReturnsNull;
|
|
12974
|
-
}
|
|
12975
|
-
|
|
12976
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
12977
|
-
var propValue = props[propName];
|
|
12978
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
12979
|
-
if (is(propValue, expectedValues[i])) {
|
|
12980
|
-
return null;
|
|
12981
|
-
}
|
|
12982
|
-
}
|
|
12983
|
-
|
|
12984
|
-
var valuesString = JSON.stringify(expectedValues);
|
|
12985
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
12986
|
-
}
|
|
12987
|
-
return createChainableTypeChecker(validate);
|
|
12988
|
-
}
|
|
12989
|
-
|
|
12990
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
12991
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
12992
|
-
if (typeof typeChecker !== 'function') {
|
|
12993
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
12994
|
-
}
|
|
12995
|
-
var propValue = props[propName];
|
|
12996
|
-
var propType = getPropType(propValue);
|
|
12997
|
-
if (propType !== 'object') {
|
|
12998
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
12999
|
-
}
|
|
13000
|
-
for (var key in propValue) {
|
|
13001
|
-
if (propValue.hasOwnProperty(key)) {
|
|
13002
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
13003
|
-
if (error instanceof Error) {
|
|
13004
|
-
return error;
|
|
13005
|
-
}
|
|
13006
|
-
}
|
|
13007
|
-
}
|
|
13008
|
-
return null;
|
|
13009
|
-
}
|
|
13010
|
-
return createChainableTypeChecker(validate);
|
|
13011
|
-
}
|
|
13012
|
-
|
|
13013
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
13014
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
13015
|
-
process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
13016
|
-
return emptyFunction.thatReturnsNull;
|
|
13017
|
-
}
|
|
13018
|
-
|
|
13019
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
13020
|
-
var checker = arrayOfTypeCheckers[i];
|
|
13021
|
-
if (typeof checker !== 'function') {
|
|
13022
|
-
warning(
|
|
13023
|
-
false,
|
|
13024
|
-
'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +
|
|
13025
|
-
'received %s at index %s.',
|
|
13026
|
-
getPostfixForTypeWarning(checker),
|
|
13027
|
-
i
|
|
13028
|
-
);
|
|
13029
|
-
return emptyFunction.thatReturnsNull;
|
|
13030
|
-
}
|
|
13031
|
-
}
|
|
13032
|
-
|
|
13033
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
13034
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
13035
|
-
var checker = arrayOfTypeCheckers[i];
|
|
13036
|
-
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
|
13037
|
-
return null;
|
|
13038
|
-
}
|
|
13039
|
-
}
|
|
13040
|
-
|
|
13041
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
13042
|
-
}
|
|
13043
|
-
return createChainableTypeChecker(validate);
|
|
13044
|
-
}
|
|
13045
|
-
|
|
13046
|
-
function createNodeChecker() {
|
|
13047
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
13048
|
-
if (!isNode(props[propName])) {
|
|
13049
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
13050
|
-
}
|
|
13051
|
-
return null;
|
|
13052
|
-
}
|
|
13053
|
-
return createChainableTypeChecker(validate);
|
|
13054
|
-
}
|
|
13055
|
-
|
|
13056
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
13057
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
13058
|
-
var propValue = props[propName];
|
|
13059
|
-
var propType = getPropType(propValue);
|
|
13060
|
-
if (propType !== 'object') {
|
|
13061
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
13062
|
-
}
|
|
13063
|
-
for (var key in shapeTypes) {
|
|
13064
|
-
var checker = shapeTypes[key];
|
|
13065
|
-
if (!checker) {
|
|
13066
|
-
continue;
|
|
13067
|
-
}
|
|
13068
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
13069
|
-
if (error) {
|
|
13070
|
-
return error;
|
|
13071
|
-
}
|
|
13072
|
-
}
|
|
13073
|
-
return null;
|
|
13074
|
-
}
|
|
13075
|
-
return createChainableTypeChecker(validate);
|
|
13076
|
-
}
|
|
13077
|
-
|
|
13078
|
-
function isNode(propValue) {
|
|
13079
|
-
switch (typeof propValue) {
|
|
13080
|
-
case 'number':
|
|
13081
|
-
case 'string':
|
|
13082
|
-
case 'undefined':
|
|
13083
|
-
return true;
|
|
13084
|
-
case 'boolean':
|
|
13085
|
-
return !propValue;
|
|
13086
|
-
case 'object':
|
|
13087
|
-
if (Array.isArray(propValue)) {
|
|
13088
|
-
return propValue.every(isNode);
|
|
13089
|
-
}
|
|
13090
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
13091
|
-
return true;
|
|
13092
|
-
}
|
|
13093
|
-
|
|
13094
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
13095
|
-
if (iteratorFn) {
|
|
13096
|
-
var iterator = iteratorFn.call(propValue);
|
|
13097
|
-
var step;
|
|
13098
|
-
if (iteratorFn !== propValue.entries) {
|
|
13099
|
-
while (!(step = iterator.next()).done) {
|
|
13100
|
-
if (!isNode(step.value)) {
|
|
13101
|
-
return false;
|
|
13102
|
-
}
|
|
13103
|
-
}
|
|
13104
|
-
} else {
|
|
13105
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
13106
|
-
while (!(step = iterator.next()).done) {
|
|
13107
|
-
var entry = step.value;
|
|
13108
|
-
if (entry) {
|
|
13109
|
-
if (!isNode(entry[1])) {
|
|
13110
|
-
return false;
|
|
13111
|
-
}
|
|
13112
|
-
}
|
|
13113
|
-
}
|
|
13114
|
-
}
|
|
13115
|
-
} else {
|
|
13116
|
-
return false;
|
|
13117
|
-
}
|
|
13118
|
-
|
|
13119
|
-
return true;
|
|
13120
|
-
default:
|
|
13121
|
-
return false;
|
|
13122
|
-
}
|
|
13123
|
-
}
|
|
13124
|
-
|
|
13125
|
-
function isSymbol(propType, propValue) {
|
|
13126
|
-
// Native Symbol.
|
|
13127
|
-
if (propType === 'symbol') {
|
|
13128
|
-
return true;
|
|
13129
|
-
}
|
|
13130
|
-
|
|
13131
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
13132
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
13133
|
-
return true;
|
|
13134
|
-
}
|
|
13135
|
-
|
|
13136
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
13137
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
13138
|
-
return true;
|
|
13139
|
-
}
|
|
13140
|
-
|
|
13141
|
-
return false;
|
|
13142
|
-
}
|
|
13143
|
-
|
|
13144
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
13145
|
-
function getPropType(propValue) {
|
|
13146
|
-
var propType = typeof propValue;
|
|
13147
|
-
if (Array.isArray(propValue)) {
|
|
13148
|
-
return 'array';
|
|
13149
|
-
}
|
|
13150
|
-
if (propValue instanceof RegExp) {
|
|
13151
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
13152
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
13153
|
-
// passes PropTypes.object.
|
|
13154
|
-
return 'object';
|
|
13155
|
-
}
|
|
13156
|
-
if (isSymbol(propType, propValue)) {
|
|
13157
|
-
return 'symbol';
|
|
13158
|
-
}
|
|
13159
|
-
return propType;
|
|
13160
|
-
}
|
|
13161
|
-
|
|
13162
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
13163
|
-
// See `createPrimitiveTypeChecker`.
|
|
13164
|
-
function getPreciseType(propValue) {
|
|
13165
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
13166
|
-
return '' + propValue;
|
|
13167
|
-
}
|
|
13168
|
-
var propType = getPropType(propValue);
|
|
13169
|
-
if (propType === 'object') {
|
|
13170
|
-
if (propValue instanceof Date) {
|
|
13171
|
-
return 'date';
|
|
13172
|
-
} else if (propValue instanceof RegExp) {
|
|
13173
|
-
return 'regexp';
|
|
13174
|
-
}
|
|
13175
|
-
}
|
|
13176
|
-
return propType;
|
|
13177
|
-
}
|
|
13178
|
-
|
|
13179
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
13180
|
-
// For example, "undefined" or "of type array"
|
|
13181
|
-
function getPostfixForTypeWarning(value) {
|
|
13182
|
-
var type = getPreciseType(value);
|
|
13183
|
-
switch (type) {
|
|
13184
|
-
case 'array':
|
|
13185
|
-
case 'object':
|
|
13186
|
-
return 'an ' + type;
|
|
13187
|
-
case 'boolean':
|
|
13188
|
-
case 'date':
|
|
13189
|
-
case 'regexp':
|
|
13190
|
-
return 'a ' + type;
|
|
13191
|
-
default:
|
|
13192
|
-
return type;
|
|
13193
|
-
}
|
|
13194
|
-
}
|
|
13195
|
-
|
|
13196
|
-
// Returns class name of the object, if any.
|
|
13197
|
-
function getClassName(propValue) {
|
|
13198
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
13199
|
-
return ANONYMOUS;
|
|
13200
|
-
}
|
|
13201
|
-
return propValue.constructor.name;
|
|
13202
|
-
}
|
|
13203
|
-
|
|
13204
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
13205
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
13206
|
-
|
|
13207
|
-
return ReactPropTypes;
|
|
13208
|
-
};
|
|
13209
|
-
|
|
13210
|
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)));
|
|
13582
|
+
function isNode(propValue) {
|
|
13583
|
+
switch (typeof propValue) {
|
|
13584
|
+
case 'number':
|
|
13585
|
+
case 'string':
|
|
13586
|
+
case 'undefined':
|
|
13587
|
+
return true;
|
|
13588
|
+
case 'boolean':
|
|
13589
|
+
return !propValue;
|
|
13590
|
+
case 'object':
|
|
13591
|
+
if (Array.isArray(propValue)) {
|
|
13592
|
+
return propValue.every(isNode);
|
|
13593
|
+
}
|
|
13594
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
13595
|
+
return true;
|
|
13596
|
+
}
|
|
13211
13597
|
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13235
|
-
|
|
13236
|
-
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
|
|
13237
|
-
*/
|
|
13238
|
-
var emptyFunction = function emptyFunction() {};
|
|
13239
|
-
|
|
13240
|
-
emptyFunction.thatReturns = makeEmptyFunction;
|
|
13241
|
-
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
|
|
13242
|
-
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
|
|
13243
|
-
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
|
|
13244
|
-
emptyFunction.thatReturnsThis = function () {
|
|
13245
|
-
return this;
|
|
13246
|
-
};
|
|
13247
|
-
emptyFunction.thatReturnsArgument = function (arg) {
|
|
13248
|
-
return arg;
|
|
13249
|
-
};
|
|
13250
|
-
|
|
13251
|
-
module.exports = emptyFunction;
|
|
13598
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
13599
|
+
if (iteratorFn) {
|
|
13600
|
+
var iterator = iteratorFn.call(propValue);
|
|
13601
|
+
var step;
|
|
13602
|
+
if (iteratorFn !== propValue.entries) {
|
|
13603
|
+
while (!(step = iterator.next()).done) {
|
|
13604
|
+
if (!isNode(step.value)) {
|
|
13605
|
+
return false;
|
|
13606
|
+
}
|
|
13607
|
+
}
|
|
13608
|
+
} else {
|
|
13609
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
|
13610
|
+
while (!(step = iterator.next()).done) {
|
|
13611
|
+
var entry = step.value;
|
|
13612
|
+
if (entry) {
|
|
13613
|
+
if (!isNode(entry[1])) {
|
|
13614
|
+
return false;
|
|
13615
|
+
}
|
|
13616
|
+
}
|
|
13617
|
+
}
|
|
13618
|
+
}
|
|
13619
|
+
} else {
|
|
13620
|
+
return false;
|
|
13621
|
+
}
|
|
13252
13622
|
|
|
13253
|
-
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
13259
|
-
* All rights reserved.
|
|
13260
|
-
*
|
|
13261
|
-
* This source code is licensed under the BSD-style license found in the
|
|
13262
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
13263
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
13264
|
-
*
|
|
13265
|
-
*/
|
|
13266
|
-
|
|
13267
|
-
/**
|
|
13268
|
-
* Use invariant() to assert state which your program assumes to be true.
|
|
13269
|
-
*
|
|
13270
|
-
* Provide sprintf-style format (only %s is supported) and arguments
|
|
13271
|
-
* to provide information about what broke and what you were
|
|
13272
|
-
* expecting.
|
|
13273
|
-
*
|
|
13274
|
-
* The invariant message will be stripped in production, but the invariant
|
|
13275
|
-
* will remain to ensure logic does not differ in production.
|
|
13276
|
-
*/
|
|
13277
|
-
|
|
13278
|
-
var validateFormat = function validateFormat(format) {};
|
|
13279
|
-
|
|
13280
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
13281
|
-
validateFormat = function validateFormat(format) {
|
|
13282
|
-
if (format === undefined) {
|
|
13283
|
-
throw new Error('invariant requires an error message argument');
|
|
13284
|
-
}
|
|
13285
|
-
};
|
|
13286
|
-
}
|
|
13287
|
-
|
|
13288
|
-
function invariant(condition, format, a, b, c, d, e, f) {
|
|
13289
|
-
validateFormat(format);
|
|
13290
|
-
|
|
13291
|
-
if (!condition) {
|
|
13292
|
-
var error;
|
|
13293
|
-
if (format === undefined) {
|
|
13294
|
-
error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
|
|
13295
|
-
} else {
|
|
13296
|
-
var args = [a, b, c, d, e, f];
|
|
13297
|
-
var argIndex = 0;
|
|
13298
|
-
error = new Error(format.replace(/%s/g, function () {
|
|
13299
|
-
return args[argIndex++];
|
|
13300
|
-
}));
|
|
13301
|
-
error.name = 'Invariant Violation';
|
|
13302
|
-
}
|
|
13303
|
-
|
|
13304
|
-
error.framesToPop = 1; // we don't care about invariant's own frame
|
|
13305
|
-
throw error;
|
|
13306
|
-
}
|
|
13307
|
-
}
|
|
13308
|
-
|
|
13309
|
-
module.exports = invariant;
|
|
13310
|
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)));
|
|
13623
|
+
return true;
|
|
13624
|
+
default:
|
|
13625
|
+
return false;
|
|
13626
|
+
}
|
|
13627
|
+
}
|
|
13311
13628
|
|
|
13312
|
-
|
|
13313
|
-
|
|
13314
|
-
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
* Copyright 2014-2015, Facebook, Inc.
|
|
13318
|
-
* All rights reserved.
|
|
13319
|
-
*
|
|
13320
|
-
* This source code is licensed under the BSD-style license found in the
|
|
13321
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
13322
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
13323
|
-
*
|
|
13324
|
-
*/
|
|
13325
|
-
|
|
13326
|
-
var emptyFunction = __webpack_require__(6);
|
|
13327
|
-
|
|
13328
|
-
/**
|
|
13329
|
-
* Similar to invariant but only logs a warning if the condition is not met.
|
|
13330
|
-
* This can be used to log issues in development environments in critical
|
|
13331
|
-
* paths. Removing the logging code for production environments will keep the
|
|
13332
|
-
* same logic and follow the same code paths.
|
|
13333
|
-
*/
|
|
13334
|
-
|
|
13335
|
-
var warning = emptyFunction;
|
|
13336
|
-
|
|
13337
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
13338
|
-
(function () {
|
|
13339
|
-
var printWarning = function printWarning(format) {
|
|
13340
|
-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
13341
|
-
args[_key - 1] = arguments[_key];
|
|
13342
|
-
}
|
|
13343
|
-
|
|
13344
|
-
var argIndex = 0;
|
|
13345
|
-
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
13346
|
-
return args[argIndex++];
|
|
13347
|
-
});
|
|
13348
|
-
if (typeof console !== 'undefined') {
|
|
13349
|
-
console.error(message);
|
|
13350
|
-
}
|
|
13351
|
-
try {
|
|
13352
|
-
// --- Welcome to debugging React ---
|
|
13353
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
13354
|
-
// to find the callsite that caused this warning to fire.
|
|
13355
|
-
throw new Error(message);
|
|
13356
|
-
} catch (x) {}
|
|
13357
|
-
};
|
|
13358
|
-
|
|
13359
|
-
warning = function warning(condition, format) {
|
|
13360
|
-
if (format === undefined) {
|
|
13361
|
-
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
13362
|
-
}
|
|
13363
|
-
|
|
13364
|
-
if (format.indexOf('Failed Composite propType: ') === 0) {
|
|
13365
|
-
return; // Ignore CompositeComponent proptype check.
|
|
13366
|
-
}
|
|
13367
|
-
|
|
13368
|
-
if (!condition) {
|
|
13369
|
-
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
13370
|
-
args[_key2 - 2] = arguments[_key2];
|
|
13371
|
-
}
|
|
13372
|
-
|
|
13373
|
-
printWarning.apply(undefined, [format].concat(args));
|
|
13374
|
-
}
|
|
13375
|
-
};
|
|
13376
|
-
})();
|
|
13377
|
-
}
|
|
13378
|
-
|
|
13379
|
-
module.exports = warning;
|
|
13380
|
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)));
|
|
13629
|
+
function isSymbol(propType, propValue) {
|
|
13630
|
+
// Native Symbol.
|
|
13631
|
+
if (propType === 'symbol') {
|
|
13632
|
+
return true;
|
|
13633
|
+
}
|
|
13381
13634
|
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
13387
|
-
|
|
13388
|
-
module.exports = ReactPropTypesSecret;
|
|
13635
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
13636
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
13637
|
+
return true;
|
|
13638
|
+
}
|
|
13389
13639
|
|
|
13640
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
13641
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
13642
|
+
return true;
|
|
13643
|
+
}
|
|
13390
13644
|
|
|
13391
|
-
|
|
13392
|
-
|
|
13393
|
-
/***/ function(module, exports, __webpack_require__) {
|
|
13394
|
-
|
|
13395
|
-
/* WEBPACK VAR INJECTION */(function(process) {/**
|
|
13396
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
13397
|
-
* All rights reserved.
|
|
13398
|
-
*
|
|
13399
|
-
* This source code is licensed under the BSD-style license found in the
|
|
13400
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
13401
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
13402
|
-
*/
|
|
13403
|
-
|
|
13404
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
13405
|
-
var invariant = __webpack_require__(7);
|
|
13406
|
-
var warning = __webpack_require__(8);
|
|
13407
|
-
var ReactPropTypesSecret = __webpack_require__(9);
|
|
13408
|
-
var loggedTypeFailures = {};
|
|
13409
|
-
}
|
|
13410
|
-
|
|
13411
|
-
/**
|
|
13412
|
-
* Assert that the values match with the type specs.
|
|
13413
|
-
* Error messages are memorized and will only be shown once.
|
|
13414
|
-
*
|
|
13415
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
13416
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
13417
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
13418
|
-
* @param {string} componentName Name of the component for error messages.
|
|
13419
|
-
* @param {?Function} getStack Returns the component stack.
|
|
13420
|
-
* @private
|
|
13421
|
-
*/
|
|
13422
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
13423
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
13424
|
-
for (var typeSpecName in typeSpecs) {
|
|
13425
|
-
if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
|
13426
|
-
var error;
|
|
13427
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
13428
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
13429
|
-
// After these have been cleaned up, we'll let them throw.
|
|
13430
|
-
try {
|
|
13431
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
13432
|
-
// behavior as without this statement except with a better message.
|
|
13433
|
-
invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);
|
|
13434
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
13435
|
-
} catch (ex) {
|
|
13436
|
-
error = ex;
|
|
13437
|
-
}
|
|
13438
|
-
warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);
|
|
13439
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
13440
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
13441
|
-
// same error.
|
|
13442
|
-
loggedTypeFailures[error.message] = true;
|
|
13443
|
-
|
|
13444
|
-
var stack = getStack ? getStack() : '';
|
|
13445
|
-
|
|
13446
|
-
warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
|
|
13447
|
-
}
|
|
13448
|
-
}
|
|
13449
|
-
}
|
|
13450
|
-
}
|
|
13451
|
-
}
|
|
13452
|
-
|
|
13453
|
-
module.exports = checkPropTypes;
|
|
13454
|
-
|
|
13455
|
-
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)));
|
|
13645
|
+
return false;
|
|
13646
|
+
}
|
|
13456
13647
|
|
|
13457
|
-
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
|
|
13465
|
-
|
|
13466
|
-
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
13475
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
13476
|
-
);
|
|
13477
|
-
} shim.isRequired = shim;
|
|
13478
|
-
function getShim() {
|
|
13479
|
-
return shim;
|
|
13480
|
-
} // Important!
|
|
13481
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
13482
|
-
var ReactPropTypes = {
|
|
13483
|
-
array: shim,
|
|
13484
|
-
bool: shim,
|
|
13485
|
-
func: shim,
|
|
13486
|
-
number: shim,
|
|
13487
|
-
object: shim,
|
|
13488
|
-
string: shim,
|
|
13489
|
-
symbol: shim,
|
|
13490
|
-
|
|
13491
|
-
any: shim,
|
|
13492
|
-
arrayOf: getShim,
|
|
13493
|
-
element: shim,
|
|
13494
|
-
instanceOf: getShim,
|
|
13495
|
-
node: shim,
|
|
13496
|
-
objectOf: getShim,
|
|
13497
|
-
oneOf: getShim,
|
|
13498
|
-
oneOfType: getShim,
|
|
13499
|
-
shape: getShim
|
|
13500
|
-
};
|
|
13501
|
-
|
|
13502
|
-
ReactPropTypes.checkPropTypes = emptyFunction;
|
|
13503
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
13504
|
-
|
|
13505
|
-
return ReactPropTypes;
|
|
13506
|
-
};
|
|
13648
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
13649
|
+
function getPropType(propValue) {
|
|
13650
|
+
var propType = typeof propValue;
|
|
13651
|
+
if (Array.isArray(propValue)) {
|
|
13652
|
+
return 'array';
|
|
13653
|
+
}
|
|
13654
|
+
if (propValue instanceof RegExp) {
|
|
13655
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
13656
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
13657
|
+
// passes PropTypes.object.
|
|
13658
|
+
return 'object';
|
|
13659
|
+
}
|
|
13660
|
+
if (isSymbol(propType, propValue)) {
|
|
13661
|
+
return 'symbol';
|
|
13662
|
+
}
|
|
13663
|
+
return propType;
|
|
13664
|
+
}
|
|
13507
13665
|
|
|
13666
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
|
13667
|
+
// See `createPrimitiveTypeChecker`.
|
|
13668
|
+
function getPreciseType(propValue) {
|
|
13669
|
+
if (typeof propValue === 'undefined' || propValue === null) {
|
|
13670
|
+
return '' + propValue;
|
|
13671
|
+
}
|
|
13672
|
+
var propType = getPropType(propValue);
|
|
13673
|
+
if (propType === 'object') {
|
|
13674
|
+
if (propValue instanceof Date) {
|
|
13675
|
+
return 'date';
|
|
13676
|
+
} else if (propValue instanceof RegExp) {
|
|
13677
|
+
return 'regexp';
|
|
13678
|
+
}
|
|
13679
|
+
}
|
|
13680
|
+
return propType;
|
|
13681
|
+
}
|
|
13508
13682
|
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
|
|
13521
|
-
|
|
13522
|
-
|
|
13523
|
-
|
|
13524
|
-
|
|
13525
|
-
var _propTypes = __webpack_require__(3);
|
|
13526
|
-
|
|
13527
|
-
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
13528
|
-
|
|
13529
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13530
|
-
|
|
13531
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13532
|
-
|
|
13533
|
-
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; }
|
|
13534
|
-
|
|
13535
|
-
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; } /* eslint react/no-find-dom-node: 0 */
|
|
13536
|
-
|
|
13537
|
-
/**
|
|
13538
|
-
* ScrollSyncPane Component
|
|
13539
|
-
*
|
|
13540
|
-
* Wrap your content in it to keep its scroll position in sync with other panes
|
|
13541
|
-
*
|
|
13542
|
-
* @example ./example.md
|
|
13543
|
-
*/
|
|
13544
|
-
|
|
13545
|
-
var ScrollSyncPane = function (_Component) {
|
|
13546
|
-
_inherits(ScrollSyncPane, _Component);
|
|
13547
|
-
|
|
13548
|
-
function ScrollSyncPane() {
|
|
13549
|
-
var _ref;
|
|
13550
|
-
|
|
13551
|
-
var _temp, _this, _ret;
|
|
13552
|
-
|
|
13553
|
-
_classCallCheck(this, ScrollSyncPane);
|
|
13554
|
-
|
|
13555
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
13556
|
-
args[_key] = arguments[_key];
|
|
13557
|
-
}
|
|
13558
|
-
|
|
13559
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ScrollSyncPane.__proto__ || Object.getPrototypeOf(ScrollSyncPane)).call.apply(_ref, [this].concat(args))), _this), _this.toArray = function (groups) {
|
|
13560
|
-
return [].concat(groups);
|
|
13561
|
-
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
13562
|
-
}
|
|
13563
|
-
|
|
13564
|
-
_createClass(ScrollSyncPane, [{
|
|
13565
|
-
key: 'componentDidMount',
|
|
13566
|
-
value: function componentDidMount() {
|
|
13567
|
-
if (this.props.enabled) {
|
|
13568
|
-
this.node = this.props.attachTo || _reactDom2.default.findDOMNode(this);
|
|
13569
|
-
this.context.registerPane(this.node, this.toArray(this.props.group));
|
|
13570
|
-
}
|
|
13571
|
-
}
|
|
13572
|
-
}, {
|
|
13573
|
-
key: 'componentDidUpdate',
|
|
13574
|
-
value: function componentDidUpdate(prevProps) {
|
|
13575
|
-
if (this.props.enabled && this.props.group !== prevProps.group) {
|
|
13576
|
-
this.context.unregisterPane(this.node, this.toArray(prevProps.group));
|
|
13577
|
-
this.context.registerPane(this.node, this.toArray(this.props.group));
|
|
13578
|
-
}
|
|
13579
|
-
}
|
|
13580
|
-
}, {
|
|
13581
|
-
key: 'componentWillUnmount',
|
|
13582
|
-
value: function componentWillUnmount() {
|
|
13583
|
-
if (this.props.enabled) {
|
|
13584
|
-
this.context.unregisterPane(this.node, this.toArray(this.props.group));
|
|
13585
|
-
}
|
|
13586
|
-
}
|
|
13587
|
-
}, {
|
|
13588
|
-
key: 'render',
|
|
13589
|
-
value: function render() {
|
|
13590
|
-
return this.props.children;
|
|
13591
|
-
}
|
|
13592
|
-
}]);
|
|
13593
|
-
|
|
13594
|
-
return ScrollSyncPane;
|
|
13595
|
-
}(_react.Component);
|
|
13596
|
-
|
|
13597
|
-
ScrollSyncPane.propTypes = {
|
|
13598
|
-
children: _propTypes2.default.node.isRequired,
|
|
13599
|
-
attachTo: _propTypes2.default.object,
|
|
13600
|
-
group: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.arrayOf(_propTypes2.default.string)]),
|
|
13601
|
-
enabled: _propTypes2.default.bool
|
|
13602
|
-
};
|
|
13603
|
-
ScrollSyncPane.defaultProps = {
|
|
13604
|
-
group: 'default',
|
|
13605
|
-
enabled: true
|
|
13606
|
-
};
|
|
13607
|
-
ScrollSyncPane.contextTypes = {
|
|
13608
|
-
registerPane: _propTypes2.default.func,
|
|
13609
|
-
unregisterPane: _propTypes2.default.func
|
|
13610
|
-
};
|
|
13611
|
-
exports.default = ScrollSyncPane;
|
|
13612
|
-
module.exports = exports['default'];
|
|
13683
|
+
// Returns a string that is postfixed to a warning about an invalid type.
|
|
13684
|
+
// For example, "undefined" or "of type array"
|
|
13685
|
+
function getPostfixForTypeWarning(value) {
|
|
13686
|
+
var type = getPreciseType(value);
|
|
13687
|
+
switch (type) {
|
|
13688
|
+
case 'array':
|
|
13689
|
+
case 'object':
|
|
13690
|
+
return 'an ' + type;
|
|
13691
|
+
case 'boolean':
|
|
13692
|
+
case 'date':
|
|
13693
|
+
case 'regexp':
|
|
13694
|
+
return 'a ' + type;
|
|
13695
|
+
default:
|
|
13696
|
+
return type;
|
|
13697
|
+
}
|
|
13698
|
+
}
|
|
13613
13699
|
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13700
|
+
// Returns class name of the object, if any.
|
|
13701
|
+
function getClassName(propValue) {
|
|
13702
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
13703
|
+
return ANONYMOUS;
|
|
13704
|
+
}
|
|
13705
|
+
return propValue.constructor.name;
|
|
13706
|
+
}
|
|
13707
|
+
|
|
13708
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
13709
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
13617
13710
|
|
|
13618
|
-
|
|
13711
|
+
return ReactPropTypes;
|
|
13712
|
+
};
|
|
13619
13713
|
|
|
13620
|
-
|
|
13621
|
-
|
|
13714
|
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)));
|
|
13715
|
+
|
|
13716
|
+
/***/ })
|
|
13717
|
+
/******/ ]);
|
|
13622
13718
|
});
|
|
13623
13719
|
|
|
13624
13720
|
}(dist));
|
|
@@ -13815,9 +13911,7 @@ var useComparisonTable = function () {
|
|
|
13815
13911
|
}
|
|
13816
13912
|
var headerWidth = headerRef.current.getBoundingClientRect().width;
|
|
13817
13913
|
var currentTabIndex = Math.round(headerRef.current.scrollLeft / headerWidth);
|
|
13818
|
-
|
|
13819
|
-
setSelectedTabIndex(currentTabIndex);
|
|
13820
|
-
}
|
|
13914
|
+
setSelectedTabIndex(currentTabIndex);
|
|
13821
13915
|
};
|
|
13822
13916
|
var debouncedTableScroll = lodash_debounce(handleTableScroll, 150);
|
|
13823
13917
|
require$$0.useEffect(function () {
|
|
@@ -13880,9 +13974,9 @@ var ComparisonTable = function (props) {
|
|
|
13880
13974
|
: {})), (stickyHeaderTopOffset
|
|
13881
13975
|
? { '--stickyHeaderTopOffset': stickyHeaderTopOffset + "px" }
|
|
13882
13976
|
: {})), (growContent ? { '--growContent': '100%' } : {}));
|
|
13883
|
-
return (jsxRuntime.jsx(dist.exports.ScrollSync, { children: jsxRuntime.jsxs("div", __assign({ style: cssVariablesStyle }, { children: [jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles.header, styles === null || styles === void 0 ? void 0 : styles.header) }, { children: jsxRuntime.jsx(dist.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles.container, (_a = {},
|
|
13977
|
+
return (jsxRuntime.jsx(dist.exports.ScrollSync, __assign({ onSync: scrollContainerCallbackRef }, { children: jsxRuntime.jsxs("div", __assign({ style: cssVariablesStyle }, { children: [jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles.header, styles === null || styles === void 0 ? void 0 : styles.header) }, { children: jsxRuntime.jsx(dist.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles.container, (_a = {},
|
|
13884
13978
|
_a[baseStyles.noScrollBars] = hideScrollBars,
|
|
13885
|
-
_a))
|
|
13979
|
+
_a)) }, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles['overflow-container']) }, { children: jsxRuntime.jsxs("div", __assign({ className: baseStyles['group-container'] }, { children: [jsxRuntime.jsx(TableArrows, { onClick: handleArrowsClick, active: {
|
|
13886
13980
|
left: selectedTabIndex > 0,
|
|
13887
13981
|
right: selectedTabIndex < data.length - 1,
|
|
13888
13982
|
} }, void 0),
|
|
@@ -13912,7 +14006,7 @@ var ComparisonTable = function (props) {
|
|
|
13912
14006
|
*/
|
|
13913
14007
|
headerGroup.label && !collapsibleSections && (jsxRuntime.jsx("div", __assign({ className: baseStyles['group-title'] }, { children: jsxRuntime.jsx("h4", __assign({ className: "p-h4 " + baseStyles.sticky }, { children: headerGroup.label }), void 0) }), void 0)), content] }), void 0) }), void 0) }), void 0) }, void 0) }, idString)) }, idString));
|
|
13914
14008
|
}),
|
|
13915
|
-
hideDetails && (jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles['show-details-container'], baseStyles.sticky, 'mt48') }, { children: jsxRuntime.jsx("div", { children: jsxRuntime.jsxs("button", __assign({ className: "w100 d-flex p-a p-h4 c-pointer " + baseStyles['show-details-button'], onClick: toggleMoreRows, type: "button" }, { children: [showMore ? 'Hide details' : 'Show details', jsxRuntime.jsx(Chevron, { className: showMore ? '' : baseStyles['icon-inverted'] }, void 0)] }), void 0) }, void 0) }), void 0))] }), void 0)] }), void 0) }, void 0));
|
|
14009
|
+
hideDetails && (jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles['show-details-container'], baseStyles.sticky, 'mt48') }, { children: jsxRuntime.jsx("div", { children: jsxRuntime.jsxs("button", __assign({ className: "w100 d-flex p-a p-h4 c-pointer " + baseStyles['show-details-button'], onClick: toggleMoreRows, type: "button" }, { children: [showMore ? 'Hide details' : 'Show details', jsxRuntime.jsx(Chevron, { className: showMore ? '' : baseStyles['icon-inverted'] }, void 0)] }), void 0) }, void 0) }), void 0))] }), void 0)] }), void 0) }), void 0));
|
|
13916
14010
|
};
|
|
13917
14011
|
|
|
13918
14012
|
var css_248z$1 = ".style-module_background-container__2Gjka {\n position: relative;\n display: inline-block;\n background-color: var(--ds-primary-100);\n border-radius: 8px;\n padding: 0 8px;\n}\n\n.style-module_chip-container__7XeKn {\n display: flex;\n align-items: center;\n}\n\n.style-module_chip__3rgLT {\n cursor: pointer;\n z-index: 2;\n padding-left: 16px;\n padding-right: 16px;\n}\n\n.style-module_select-chip-background__YCAyw {\n position: absolute;\n background-color: white;\n border-radius: 8px;\n top: 8px;\n z-index: 1;\n transition: width 0.3s, left 0.3s;\n}";
|