@popsure/dirty-swan 0.30.6 → 0.31.0

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