@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
@@ -3,7 +3,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { c as classnames } from '../../index-e9e37a34.js';
4
4
  import React__default, { useState, useRef, useCallback, useEffect, Fragment } from 'react';
5
5
  import { c as commonjsGlobal } from '../../_commonjsHelpers-e7f67fd8.js';
6
- import ReactDOM from 'react-dom';
7
6
  import Chevron from './components/Chevron.js';
8
7
  import Row from './components/Row/index.js';
9
8
  import TableArrows from './components/TableArrows/index.js';
@@ -24,8 +23,8 @@ var dist = {exports: {}};
24
23
 
25
24
  (function (module, exports) {
26
25
  (function webpackUniversalModuleDefinition(root, factory) {
27
- module.exports = factory(React__default, ReactDOM);
28
- })(commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_13__) {
26
+ module.exports = factory(React__default);
27
+ })(commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_4__) {
29
28
  return /******/ (function(modules) { // webpackBootstrap
30
29
  /******/ // The module cache
31
30
  /******/ var installedModules = {};
@@ -34,21 +33,21 @@ return /******/ (function(modules) { // webpackBootstrap
34
33
  /******/ function __webpack_require__(moduleId) {
35
34
  /******/
36
35
  /******/ // Check if module is in cache
37
- /******/ if(installedModules[moduleId])
36
+ /******/ if(installedModules[moduleId]) {
38
37
  /******/ return installedModules[moduleId].exports;
39
- /******/
38
+ /******/ }
40
39
  /******/ // Create a new module (and put it into the cache)
41
40
  /******/ var module = installedModules[moduleId] = {
42
- /******/ exports: {},
43
- /******/ id: moduleId,
44
- /******/ loaded: false
41
+ /******/ i: moduleId,
42
+ /******/ l: false,
43
+ /******/ exports: {}
45
44
  /******/ };
46
45
  /******/
47
46
  /******/ // Execute the module function
48
47
  /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
49
48
  /******/
50
49
  /******/ // Flag the module as loaded
51
- /******/ module.loaded = true;
50
+ /******/ module.l = true;
52
51
  /******/
53
52
  /******/ // Return the exports of the module
54
53
  /******/ return module.exports;
@@ -61,1383 +60,1481 @@ return /******/ (function(modules) { // webpackBootstrap
61
60
  /******/ // expose the module cache
62
61
  /******/ __webpack_require__.c = installedModules;
63
62
  /******/
63
+ /******/ // identity function for calling harmony imports with the correct context
64
+ /******/ __webpack_require__.i = function(value) { return value; };
65
+ /******/
66
+ /******/ // define getter function for harmony exports
67
+ /******/ __webpack_require__.d = function(exports, name, getter) {
68
+ /******/ if(!__webpack_require__.o(exports, name)) {
69
+ /******/ Object.defineProperty(exports, name, {
70
+ /******/ configurable: false,
71
+ /******/ enumerable: true,
72
+ /******/ get: getter
73
+ /******/ });
74
+ /******/ }
75
+ /******/ };
76
+ /******/
77
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
78
+ /******/ __webpack_require__.n = function(module) {
79
+ /******/ var getter = module && module.__esModule ?
80
+ /******/ function getDefault() { return module['default']; } :
81
+ /******/ function getModuleExports() { return module; };
82
+ /******/ __webpack_require__.d(getter, 'a', getter);
83
+ /******/ return getter;
84
+ /******/ };
85
+ /******/
86
+ /******/ // Object.prototype.hasOwnProperty.call
87
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
+ /******/
64
89
  /******/ // __webpack_public_path__
65
90
  /******/ __webpack_require__.p = "";
66
91
  /******/
67
92
  /******/ // Load entry module and return exports
68
- /******/ return __webpack_require__(0);
93
+ /******/ return __webpack_require__(__webpack_require__.s = 10);
69
94
  /******/ })
70
95
  /************************************************************************/
71
96
  /******/ ([
72
97
  /* 0 */
73
- /***/ function(module, exports, __webpack_require__) {
74
-
75
- Object.defineProperty(exports, "__esModule", {
76
- value: true
77
- });
78
-
79
- var _ScrollSync = __webpack_require__(1);
80
-
81
- Object.defineProperty(exports, 'ScrollSync', {
82
- enumerable: true,
83
- get: function get() {
84
- return _interopRequireDefault(_ScrollSync).default;
85
- }
86
- });
87
-
88
- var _ScrollSyncPane = __webpack_require__(12);
89
-
90
- Object.defineProperty(exports, 'ScrollSyncPane', {
91
- enumerable: true,
92
- get: function get() {
93
- return _interopRequireDefault(_ScrollSyncPane).default;
94
- }
95
- });
96
-
97
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
98
-
99
- /***/ },
98
+ /***/ (function(module, exports) {
99
+
100
+ // shim for using process in browser
101
+ var process = module.exports = {};
102
+
103
+ // cached from whatever global is present so that test runners that stub it
104
+ // don't break things. But we need to wrap it in a try catch in case it is
105
+ // wrapped in strict mode code which doesn't define any globals. It's inside a
106
+ // function because try/catches deoptimize in certain engines.
107
+
108
+ var cachedSetTimeout;
109
+ var cachedClearTimeout;
110
+
111
+ function defaultSetTimout() {
112
+ throw new Error('setTimeout has not been defined');
113
+ }
114
+ function defaultClearTimeout () {
115
+ throw new Error('clearTimeout has not been defined');
116
+ }
117
+ (function () {
118
+ try {
119
+ if (typeof setTimeout === 'function') {
120
+ cachedSetTimeout = setTimeout;
121
+ } else {
122
+ cachedSetTimeout = defaultSetTimout;
123
+ }
124
+ } catch (e) {
125
+ cachedSetTimeout = defaultSetTimout;
126
+ }
127
+ try {
128
+ if (typeof clearTimeout === 'function') {
129
+ cachedClearTimeout = clearTimeout;
130
+ } else {
131
+ cachedClearTimeout = defaultClearTimeout;
132
+ }
133
+ } catch (e) {
134
+ cachedClearTimeout = defaultClearTimeout;
135
+ }
136
+ } ());
137
+ function runTimeout(fun) {
138
+ if (cachedSetTimeout === setTimeout) {
139
+ //normal enviroments in sane situations
140
+ return setTimeout(fun, 0);
141
+ }
142
+ // if setTimeout wasn't available but was latter defined
143
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
144
+ cachedSetTimeout = setTimeout;
145
+ return setTimeout(fun, 0);
146
+ }
147
+ try {
148
+ // when when somebody has screwed with setTimeout but no I.E. maddness
149
+ return cachedSetTimeout(fun, 0);
150
+ } catch(e){
151
+ try {
152
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
153
+ return cachedSetTimeout.call(null, fun, 0);
154
+ } catch(e){
155
+ // 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
156
+ return cachedSetTimeout.call(this, fun, 0);
157
+ }
158
+ }
159
+
160
+
161
+ }
162
+ function runClearTimeout(marker) {
163
+ if (cachedClearTimeout === clearTimeout) {
164
+ //normal enviroments in sane situations
165
+ return clearTimeout(marker);
166
+ }
167
+ // if clearTimeout wasn't available but was latter defined
168
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
169
+ cachedClearTimeout = clearTimeout;
170
+ return clearTimeout(marker);
171
+ }
172
+ try {
173
+ // when when somebody has screwed with setTimeout but no I.E. maddness
174
+ return cachedClearTimeout(marker);
175
+ } catch (e){
176
+ try {
177
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
178
+ return cachedClearTimeout.call(null, marker);
179
+ } catch (e){
180
+ // 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.
181
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
182
+ return cachedClearTimeout.call(this, marker);
183
+ }
184
+ }
185
+
186
+
187
+
188
+ }
189
+ var queue = [];
190
+ var draining = false;
191
+ var currentQueue;
192
+ var queueIndex = -1;
193
+
194
+ function cleanUpNextTick() {
195
+ if (!draining || !currentQueue) {
196
+ return;
197
+ }
198
+ draining = false;
199
+ if (currentQueue.length) {
200
+ queue = currentQueue.concat(queue);
201
+ } else {
202
+ queueIndex = -1;
203
+ }
204
+ if (queue.length) {
205
+ drainQueue();
206
+ }
207
+ }
208
+
209
+ function drainQueue() {
210
+ if (draining) {
211
+ return;
212
+ }
213
+ var timeout = runTimeout(cleanUpNextTick);
214
+ draining = true;
215
+
216
+ var len = queue.length;
217
+ while(len) {
218
+ currentQueue = queue;
219
+ queue = [];
220
+ while (++queueIndex < len) {
221
+ if (currentQueue) {
222
+ currentQueue[queueIndex].run();
223
+ }
224
+ }
225
+ queueIndex = -1;
226
+ len = queue.length;
227
+ }
228
+ currentQueue = null;
229
+ draining = false;
230
+ runClearTimeout(timeout);
231
+ }
232
+
233
+ process.nextTick = function (fun) {
234
+ var args = new Array(arguments.length - 1);
235
+ if (arguments.length > 1) {
236
+ for (var i = 1; i < arguments.length; i++) {
237
+ args[i - 1] = arguments[i];
238
+ }
239
+ }
240
+ queue.push(new Item(fun, args));
241
+ if (queue.length === 1 && !draining) {
242
+ runTimeout(drainQueue);
243
+ }
244
+ };
245
+
246
+ // v8 likes predictible objects
247
+ function Item(fun, array) {
248
+ this.fun = fun;
249
+ this.array = array;
250
+ }
251
+ Item.prototype.run = function () {
252
+ this.fun.apply(null, this.array);
253
+ };
254
+ process.title = 'browser';
255
+ process.browser = true;
256
+ process.env = {};
257
+ process.argv = [];
258
+ process.version = ''; // empty string to avoid regexp issues
259
+ process.versions = {};
260
+
261
+ function noop() {}
262
+
263
+ process.on = noop;
264
+ process.addListener = noop;
265
+ process.once = noop;
266
+ process.off = noop;
267
+ process.removeListener = noop;
268
+ process.removeAllListeners = noop;
269
+ process.emit = noop;
270
+ process.prependListener = noop;
271
+ process.prependOnceListener = noop;
272
+
273
+ process.listeners = function (name) { return [] };
274
+
275
+ process.binding = function (name) {
276
+ throw new Error('process.binding is not supported');
277
+ };
278
+
279
+ process.cwd = function () { return '/' };
280
+ process.chdir = function (dir) {
281
+ throw new Error('process.chdir is not supported');
282
+ };
283
+ process.umask = function() { return 0; };
284
+
285
+
286
+ /***/ }),
100
287
  /* 1 */
101
- /***/ function(module, exports, __webpack_require__) {
102
-
103
- Object.defineProperty(exports, "__esModule", {
104
- value: true
105
- });
106
-
107
- 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; }; }();
108
-
109
- var _react = __webpack_require__(2);
110
-
111
- var _react2 = _interopRequireDefault(_react);
112
-
113
- var _propTypes = __webpack_require__(3);
114
-
115
- var _propTypes2 = _interopRequireDefault(_propTypes);
116
-
117
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
118
-
119
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
120
-
121
- 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; }
122
-
123
- 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; }
124
-
125
- /**
126
- * ScrollSync provider component
127
- *
128
- */
129
-
130
- var ScrollSync = function (_Component) {
131
- _inherits(ScrollSync, _Component);
132
-
133
- function ScrollSync() {
134
- var _ref;
135
-
136
- var _temp, _this, _ret;
137
-
138
- _classCallCheck(this, ScrollSync);
139
-
140
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
141
- args[_key] = arguments[_key];
142
- }
143
-
144
- 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) {
145
- groups.forEach(function (group) {
146
- if (!_this.panes[group]) {
147
- _this.panes[group] = [];
148
- }
149
-
150
- if (!_this.findPane(node, group)) {
151
- if (_this.panes[group].length > 0) {
152
- _this.syncScrollPosition(_this.panes[group][0], node);
153
- }
154
- _this.panes[group].push(node);
155
- }
156
- });
157
- _this.addEvents(node, groups);
158
- }, _this.unregisterPane = function (node, groups) {
159
- groups.forEach(function (group) {
160
- if (_this.findPane(node, group)) {
161
- _this.removeEvents(node);
162
- _this.panes[group].splice(_this.panes[group].indexOf(node), 1);
163
- }
164
- });
165
- }, _this.addEvents = function (node, groups) {
166
- /* For some reason element.addEventListener doesnt work with document.body */
167
- node.onscroll = _this.handlePaneScroll.bind(_this, node, groups); // eslint-disable-line
168
- }, _this.removeEvents = function (node) {
169
- /* For some reason element.removeEventListener doesnt work with document.body */
170
- node.onscroll = null; // eslint-disable-line
171
- }, _this.findPane = function (node, group) {
172
- if (!_this.panes[group]) {
173
- return false;
174
- }
175
-
176
- return _this.panes[group].find(function (pane) {
177
- return pane === node;
178
- });
179
- }, _this.handlePaneScroll = function (node, groups) {
180
- if (!_this.props.enabled) {
181
- return;
182
- }
183
-
184
- window.requestAnimationFrame(function () {
185
- _this.syncScrollPositions(node, groups);
186
- });
187
- }, _this.syncScrollPositions = function (scrolledPane, groups) {
188
- groups.forEach(function (group) {
189
- _this.panes[group].forEach(function (pane) {
190
- /* For all panes beside the currently scrolling one */
191
- if (scrolledPane !== pane) {
192
- /* Remove event listeners from the node that we'll manipulate */
193
- _this.removeEvents(pane, group);
194
- _this.syncScrollPosition(scrolledPane, pane);
195
- /* Re-attach event listeners after we're done scrolling */
196
- window.requestAnimationFrame(function () {
197
- _this.addEvents(pane, groups);
198
- });
199
- }
200
- });
201
- });
202
- if (_this.props.onSync) _this.props.onSync(scrolledPane);
203
- }, _temp), _possibleConstructorReturn(_this, _ret);
204
- }
205
-
206
- _createClass(ScrollSync, [{
207
- key: 'getChildContext',
208
- value: function getChildContext() {
209
- return {
210
- registerPane: this.registerPane,
211
- unregisterPane: this.unregisterPane
212
- };
213
- }
214
- }, {
215
- key: 'syncScrollPosition',
216
- value: function syncScrollPosition(scrolledPane, pane) {
217
- var scrollTop = scrolledPane.scrollTop,
218
- scrollHeight = scrolledPane.scrollHeight,
219
- clientHeight = scrolledPane.clientHeight,
220
- scrollLeft = scrolledPane.scrollLeft,
221
- scrollWidth = scrolledPane.scrollWidth,
222
- clientWidth = scrolledPane.clientWidth;
223
-
224
-
225
- var scrollTopOffset = scrollHeight - clientHeight;
226
- var scrollLeftOffset = scrollWidth - clientWidth;
227
-
228
- var _props = this.props,
229
- proportional = _props.proportional,
230
- vertical = _props.vertical,
231
- horizontal = _props.horizontal;
232
-
233
- /* Calculate the actual pane height */
234
-
235
- var paneHeight = pane.scrollHeight - clientHeight;
236
- var paneWidth = pane.scrollWidth - clientWidth;
237
- /* Adjust the scrollTop position of it accordingly */
238
- if (vertical && scrollTopOffset > 0) {
239
- pane.scrollTop = proportional ? paneHeight * scrollTop / scrollTopOffset : scrollTop; // eslint-disable-line
240
- }
241
- if (horizontal && scrollLeftOffset > 0) {
242
- pane.scrollLeft = proportional ? paneWidth * scrollLeft / scrollLeftOffset : scrollLeft; // eslint-disable-line
243
- }
244
- }
245
- }, {
246
- key: 'render',
247
- value: function render() {
248
- return _react2.default.Children.only(this.props.children);
249
- }
250
- }]);
251
-
252
- return ScrollSync;
253
- }(_react.Component);
254
-
255
- ScrollSync.propTypes = {
256
- /**
257
- * Callback to be invoked any time synchronization happens
258
- *
259
- * @param {Element} el The element that has received the scroll event
260
- */
261
- onSync: _propTypes2.default.func,
262
- children: _propTypes2.default.element.isRequired,
263
- proportional: _propTypes2.default.bool,
264
- vertical: _propTypes2.default.bool,
265
- horizontal: _propTypes2.default.bool,
266
- enabled: _propTypes2.default.bool
267
- };
268
- ScrollSync.defaultProps = {
269
- proportional: true,
270
- vertical: true,
271
- horizontal: true,
272
- enabled: true
273
- };
274
- ScrollSync.childContextTypes = {
275
- registerPane: _propTypes2.default.func,
276
- unregisterPane: _propTypes2.default.func
277
- };
278
- exports.default = ScrollSync;
279
- module.exports = exports['default'];
280
-
281
- /***/ },
288
+ /***/ (function(module, exports, __webpack_require__) {
289
+
290
+
291
+ /**
292
+ * Copyright (c) 2013-present, Facebook, Inc.
293
+ * All rights reserved.
294
+ *
295
+ * This source code is licensed under the BSD-style license found in the
296
+ * LICENSE file in the root directory of this source tree. An additional grant
297
+ * of patent rights can be found in the PATENTS file in the same directory.
298
+ *
299
+ *
300
+ */
301
+
302
+ function makeEmptyFunction(arg) {
303
+ return function () {
304
+ return arg;
305
+ };
306
+ }
307
+
308
+ /**
309
+ * This function accepts and discards inputs; it has no side effects. This is
310
+ * primarily useful idiomatically for overridable function endpoints which
311
+ * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
312
+ */
313
+ var emptyFunction = function emptyFunction() {};
314
+
315
+ emptyFunction.thatReturns = makeEmptyFunction;
316
+ emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
317
+ emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
318
+ emptyFunction.thatReturnsNull = makeEmptyFunction(null);
319
+ emptyFunction.thatReturnsThis = function () {
320
+ return this;
321
+ };
322
+ emptyFunction.thatReturnsArgument = function (arg) {
323
+ return arg;
324
+ };
325
+
326
+ module.exports = emptyFunction;
327
+
328
+ /***/ }),
282
329
  /* 2 */
283
- /***/ function(module, exports) {
330
+ /***/ (function(module, exports, __webpack_require__) {
331
+ /* WEBPACK VAR INJECTION */(function(process) {/**
332
+ * Copyright (c) 2013-present, Facebook, Inc.
333
+ * All rights reserved.
334
+ *
335
+ * This source code is licensed under the BSD-style license found in the
336
+ * LICENSE file in the root directory of this source tree. An additional grant
337
+ * of patent rights can be found in the PATENTS file in the same directory.
338
+ *
339
+ */
340
+
341
+
284
342
 
285
- module.exports = __WEBPACK_EXTERNAL_MODULE_2__;
343
+ /**
344
+ * Use invariant() to assert state which your program assumes to be true.
345
+ *
346
+ * Provide sprintf-style format (only %s is supported) and arguments
347
+ * to provide information about what broke and what you were
348
+ * expecting.
349
+ *
350
+ * The invariant message will be stripped in production, but the invariant
351
+ * will remain to ensure logic does not differ in production.
352
+ */
286
353
 
287
- /***/ },
354
+ var validateFormat = function validateFormat(format) {};
355
+
356
+ if (process.env.NODE_ENV !== 'production') {
357
+ validateFormat = function validateFormat(format) {
358
+ if (format === undefined) {
359
+ throw new Error('invariant requires an error message argument');
360
+ }
361
+ };
362
+ }
363
+
364
+ function invariant(condition, format, a, b, c, d, e, f) {
365
+ validateFormat(format);
366
+
367
+ if (!condition) {
368
+ var error;
369
+ if (format === undefined) {
370
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
371
+ } else {
372
+ var args = [a, b, c, d, e, f];
373
+ var argIndex = 0;
374
+ error = new Error(format.replace(/%s/g, function () {
375
+ return args[argIndex++];
376
+ }));
377
+ error.name = 'Invariant Violation';
378
+ }
379
+
380
+ error.framesToPop = 1; // we don't care about invariant's own frame
381
+ throw error;
382
+ }
383
+ }
384
+
385
+ module.exports = invariant;
386
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)));
387
+
388
+ /***/ }),
288
389
  /* 3 */
289
- /***/ function(module, exports, __webpack_require__) {
290
-
291
- /* WEBPACK VAR INJECTION */(function(process) {/**
292
- * Copyright 2013-present, Facebook, Inc.
293
- * All rights reserved.
294
- *
295
- * This source code is licensed under the BSD-style license found in the
296
- * LICENSE file in the root directory of this source tree. An additional grant
297
- * of patent rights can be found in the PATENTS file in the same directory.
298
- */
299
-
300
- if (process.env.NODE_ENV !== 'production') {
301
- var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
302
- Symbol.for &&
303
- Symbol.for('react.element')) ||
304
- 0xeac7;
305
-
306
- var isValidElement = function(object) {
307
- return typeof object === 'object' &&
308
- object !== null &&
309
- object.$$typeof === REACT_ELEMENT_TYPE;
310
- };
311
-
312
- // By explicitly using `prop-types` you are opting into new development behavior.
313
- // http://fb.me/prop-types-in-prod
314
- var throwOnDirectAccess = true;
315
- module.exports = __webpack_require__(5)(isValidElement, throwOnDirectAccess);
316
- } else {
317
- // By explicitly using `prop-types` you are opting into new production behavior.
318
- // http://fb.me/prop-types-in-prod
319
- module.exports = __webpack_require__(11)();
320
- }
321
-
322
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)));
323
-
324
- /***/ },
390
+ /***/ (function(module, exports, __webpack_require__) {
391
+ /**
392
+ * Copyright 2013-present, Facebook, Inc.
393
+ * All rights reserved.
394
+ *
395
+ * This source code is licensed under the BSD-style license found in the
396
+ * LICENSE file in the root directory of this source tree. An additional grant
397
+ * of patent rights can be found in the PATENTS file in the same directory.
398
+ */
399
+
400
+
401
+
402
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
403
+
404
+ module.exports = ReactPropTypesSecret;
405
+
406
+
407
+ /***/ }),
325
408
  /* 4 */
326
- /***/ function(module, exports) {
327
-
328
- // shim for using process in browser
329
- var process = module.exports = {};
330
-
331
- // cached from whatever global is present so that test runners that stub it
332
- // don't break things. But we need to wrap it in a try catch in case it is
333
- // wrapped in strict mode code which doesn't define any globals. It's inside a
334
- // function because try/catches deoptimize in certain engines.
335
-
336
- var cachedSetTimeout;
337
- var cachedClearTimeout;
338
-
339
- function defaultSetTimout() {
340
- throw new Error('setTimeout has not been defined');
341
- }
342
- function defaultClearTimeout () {
343
- throw new Error('clearTimeout has not been defined');
344
- }
345
- (function () {
346
- try {
347
- if (typeof setTimeout === 'function') {
348
- cachedSetTimeout = setTimeout;
349
- } else {
350
- cachedSetTimeout = defaultSetTimout;
351
- }
352
- } catch (e) {
353
- cachedSetTimeout = defaultSetTimout;
354
- }
355
- try {
356
- if (typeof clearTimeout === 'function') {
357
- cachedClearTimeout = clearTimeout;
358
- } else {
359
- cachedClearTimeout = defaultClearTimeout;
360
- }
361
- } catch (e) {
362
- cachedClearTimeout = defaultClearTimeout;
363
- }
364
- } ());
365
- function runTimeout(fun) {
366
- if (cachedSetTimeout === setTimeout) {
367
- //normal enviroments in sane situations
368
- return setTimeout(fun, 0);
369
- }
370
- // if setTimeout wasn't available but was latter defined
371
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
372
- cachedSetTimeout = setTimeout;
373
- return setTimeout(fun, 0);
374
- }
375
- try {
376
- // when when somebody has screwed with setTimeout but no I.E. maddness
377
- return cachedSetTimeout(fun, 0);
378
- } catch(e){
379
- try {
380
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
381
- return cachedSetTimeout.call(null, fun, 0);
382
- } catch(e){
383
- // 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
384
- return cachedSetTimeout.call(this, fun, 0);
385
- }
386
- }
387
-
388
-
389
- }
390
- function runClearTimeout(marker) {
391
- if (cachedClearTimeout === clearTimeout) {
392
- //normal enviroments in sane situations
393
- return clearTimeout(marker);
394
- }
395
- // if clearTimeout wasn't available but was latter defined
396
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
397
- cachedClearTimeout = clearTimeout;
398
- return clearTimeout(marker);
399
- }
400
- try {
401
- // when when somebody has screwed with setTimeout but no I.E. maddness
402
- return cachedClearTimeout(marker);
403
- } catch (e){
404
- try {
405
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
406
- return cachedClearTimeout.call(null, marker);
407
- } catch (e){
408
- // 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.
409
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
410
- return cachedClearTimeout.call(this, marker);
411
- }
412
- }
413
-
414
-
415
-
416
- }
417
- var queue = [];
418
- var draining = false;
419
- var currentQueue;
420
- var queueIndex = -1;
421
-
422
- function cleanUpNextTick() {
423
- if (!draining || !currentQueue) {
424
- return;
425
- }
426
- draining = false;
427
- if (currentQueue.length) {
428
- queue = currentQueue.concat(queue);
429
- } else {
430
- queueIndex = -1;
431
- }
432
- if (queue.length) {
433
- drainQueue();
434
- }
435
- }
436
-
437
- function drainQueue() {
438
- if (draining) {
439
- return;
440
- }
441
- var timeout = runTimeout(cleanUpNextTick);
442
- draining = true;
443
-
444
- var len = queue.length;
445
- while(len) {
446
- currentQueue = queue;
447
- queue = [];
448
- while (++queueIndex < len) {
449
- if (currentQueue) {
450
- currentQueue[queueIndex].run();
451
- }
452
- }
453
- queueIndex = -1;
454
- len = queue.length;
455
- }
456
- currentQueue = null;
457
- draining = false;
458
- runClearTimeout(timeout);
459
- }
460
-
461
- process.nextTick = function (fun) {
462
- var args = new Array(arguments.length - 1);
463
- if (arguments.length > 1) {
464
- for (var i = 1; i < arguments.length; i++) {
465
- args[i - 1] = arguments[i];
466
- }
467
- }
468
- queue.push(new Item(fun, args));
469
- if (queue.length === 1 && !draining) {
470
- runTimeout(drainQueue);
471
- }
472
- };
473
-
474
- // v8 likes predictible objects
475
- function Item(fun, array) {
476
- this.fun = fun;
477
- this.array = array;
478
- }
479
- Item.prototype.run = function () {
480
- this.fun.apply(null, this.array);
481
- };
482
- process.title = 'browser';
483
- process.browser = true;
484
- process.env = {};
485
- process.argv = [];
486
- process.version = ''; // empty string to avoid regexp issues
487
- process.versions = {};
488
-
489
- function noop() {}
490
-
491
- process.on = noop;
492
- process.addListener = noop;
493
- process.once = noop;
494
- process.off = noop;
495
- process.removeListener = noop;
496
- process.removeAllListeners = noop;
497
- process.emit = noop;
498
- process.prependListener = noop;
499
- process.prependOnceListener = noop;
500
-
501
- process.listeners = function (name) { return [] };
502
-
503
- process.binding = function (name) {
504
- throw new Error('process.binding is not supported');
505
- };
506
-
507
- process.cwd = function () { return '/' };
508
- process.chdir = function (dir) {
509
- throw new Error('process.chdir is not supported');
510
- };
511
- process.umask = function() { return 0; };
512
-
513
-
514
- /***/ },
409
+ /***/ (function(module, exports) {
410
+
411
+ module.exports = __WEBPACK_EXTERNAL_MODULE_4__;
412
+
413
+ /***/ }),
515
414
  /* 5 */
516
- /***/ function(module, exports, __webpack_require__) {
517
-
518
- /* WEBPACK VAR INJECTION */(function(process) {/**
519
- * Copyright 2013-present, Facebook, Inc.
520
- * All rights reserved.
521
- *
522
- * This source code is licensed under the BSD-style license found in the
523
- * LICENSE file in the root directory of this source tree. An additional grant
524
- * of patent rights can be found in the PATENTS file in the same directory.
525
- */
526
-
527
- var emptyFunction = __webpack_require__(6);
528
- var invariant = __webpack_require__(7);
529
- var warning = __webpack_require__(8);
530
-
531
- var ReactPropTypesSecret = __webpack_require__(9);
532
- var checkPropTypes = __webpack_require__(10);
533
-
534
- module.exports = function(isValidElement, throwOnDirectAccess) {
535
- /* global Symbol */
536
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
537
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
538
-
539
- /**
540
- * Returns the iterator method function contained on the iterable object.
541
- *
542
- * Be sure to invoke the function with the iterable as context:
543
- *
544
- * var iteratorFn = getIteratorFn(myIterable);
545
- * if (iteratorFn) {
546
- * var iterator = iteratorFn.call(myIterable);
547
- * ...
548
- * }
549
- *
550
- * @param {?object} maybeIterable
551
- * @return {?function}
552
- */
553
- function getIteratorFn(maybeIterable) {
554
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
555
- if (typeof iteratorFn === 'function') {
556
- return iteratorFn;
557
- }
558
- }
559
-
560
- /**
561
- * Collection of methods that allow declaration and validation of props that are
562
- * supplied to React components. Example usage:
563
- *
564
- * var Props = require('ReactPropTypes');
565
- * var MyArticle = React.createClass({
566
- * propTypes: {
567
- * // An optional string prop named "description".
568
- * description: Props.string,
569
- *
570
- * // A required enum prop named "category".
571
- * category: Props.oneOf(['News','Photos']).isRequired,
572
- *
573
- * // A prop named "dialog" that requires an instance of Dialog.
574
- * dialog: Props.instanceOf(Dialog).isRequired
575
- * },
576
- * render: function() { ... }
577
- * });
578
- *
579
- * A more formal specification of how these methods are used:
580
- *
581
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
582
- * decl := ReactPropTypes.{type}(.isRequired)?
583
- *
584
- * Each and every declaration produces a function with the same signature. This
585
- * allows the creation of custom validation functions. For example:
586
- *
587
- * var MyLink = React.createClass({
588
- * propTypes: {
589
- * // An optional string or URI prop named "href".
590
- * href: function(props, propName, componentName) {
591
- * var propValue = props[propName];
592
- * if (propValue != null && typeof propValue !== 'string' &&
593
- * !(propValue instanceof URI)) {
594
- * return new Error(
595
- * 'Expected a string or an URI for ' + propName + ' in ' +
596
- * componentName
597
- * );
598
- * }
599
- * }
600
- * },
601
- * render: function() {...}
602
- * });
603
- *
604
- * @internal
605
- */
606
-
607
- var ANONYMOUS = '<<anonymous>>';
608
-
609
- // Important!
610
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
611
- var ReactPropTypes = {
612
- array: createPrimitiveTypeChecker('array'),
613
- bool: createPrimitiveTypeChecker('boolean'),
614
- func: createPrimitiveTypeChecker('function'),
615
- number: createPrimitiveTypeChecker('number'),
616
- object: createPrimitiveTypeChecker('object'),
617
- string: createPrimitiveTypeChecker('string'),
618
- symbol: createPrimitiveTypeChecker('symbol'),
619
-
620
- any: createAnyTypeChecker(),
621
- arrayOf: createArrayOfTypeChecker,
622
- element: createElementTypeChecker(),
623
- instanceOf: createInstanceTypeChecker,
624
- node: createNodeChecker(),
625
- objectOf: createObjectOfTypeChecker,
626
- oneOf: createEnumTypeChecker,
627
- oneOfType: createUnionTypeChecker,
628
- shape: createShapeTypeChecker
629
- };
630
-
631
- /**
632
- * inlined Object.is polyfill to avoid requiring consumers ship their own
633
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
634
- */
635
- /*eslint-disable no-self-compare*/
636
- function is(x, y) {
637
- // SameValue algorithm
638
- if (x === y) {
639
- // Steps 1-5, 7-10
640
- // Steps 6.b-6.e: +0 != -0
641
- return x !== 0 || 1 / x === 1 / y;
642
- } else {
643
- // Step 6.a: NaN == NaN
644
- return x !== x && y !== y;
645
- }
646
- }
647
- /*eslint-enable no-self-compare*/
648
-
649
- /**
650
- * We use an Error-like object for backward compatibility as people may call
651
- * PropTypes directly and inspect their output. However, we don't use real
652
- * Errors anymore. We don't inspect their stack anyway, and creating them
653
- * is prohibitively expensive if they are created too often, such as what
654
- * happens in oneOfType() for any type before the one that matched.
655
- */
656
- function PropTypeError(message) {
657
- this.message = message;
658
- this.stack = '';
659
- }
660
- // Make `instanceof Error` still work for returned errors.
661
- PropTypeError.prototype = Error.prototype;
662
-
663
- function createChainableTypeChecker(validate) {
664
- if (process.env.NODE_ENV !== 'production') {
665
- var manualPropTypeCallCache = {};
666
- var manualPropTypeWarningCount = 0;
667
- }
668
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
669
- componentName = componentName || ANONYMOUS;
670
- propFullName = propFullName || propName;
671
-
672
- if (secret !== ReactPropTypesSecret) {
673
- if (throwOnDirectAccess) {
674
- // New behavior only for users of `prop-types` package
675
- invariant(
676
- false,
677
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
678
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
679
- 'Read more at http://fb.me/use-check-prop-types'
680
- );
681
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
682
- // Old behavior for people using React.PropTypes
683
- var cacheKey = componentName + ':' + propName;
684
- if (
685
- !manualPropTypeCallCache[cacheKey] &&
686
- // Avoid spamming the console because they are often not actionable except for lib authors
687
- manualPropTypeWarningCount < 3
688
- ) {
689
- warning(
690
- false,
691
- 'You are manually calling a React.PropTypes validation ' +
692
- 'function for the `%s` prop on `%s`. This is deprecated ' +
693
- 'and will throw in the standalone `prop-types` package. ' +
694
- 'You may be seeing this warning due to a third-party PropTypes ' +
695
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
696
- propFullName,
697
- componentName
698
- );
699
- manualPropTypeCallCache[cacheKey] = true;
700
- manualPropTypeWarningCount++;
701
- }
702
- }
703
- }
704
- if (props[propName] == null) {
705
- if (isRequired) {
706
- if (props[propName] === null) {
707
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
708
- }
709
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
710
- }
711
- return null;
712
- } else {
713
- return validate(props, propName, componentName, location, propFullName);
714
- }
715
- }
716
-
717
- var chainedCheckType = checkType.bind(null, false);
718
- chainedCheckType.isRequired = checkType.bind(null, true);
719
-
720
- return chainedCheckType;
721
- }
722
-
723
- function createPrimitiveTypeChecker(expectedType) {
724
- function validate(props, propName, componentName, location, propFullName, secret) {
725
- var propValue = props[propName];
726
- var propType = getPropType(propValue);
727
- if (propType !== expectedType) {
728
- // `propValue` being instance of, say, date/regexp, pass the 'object'
729
- // check, but we can offer a more precise error message here rather than
730
- // 'of type `object`'.
731
- var preciseType = getPreciseType(propValue);
732
-
733
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
734
- }
735
- return null;
736
- }
737
- return createChainableTypeChecker(validate);
738
- }
739
-
740
- function createAnyTypeChecker() {
741
- return createChainableTypeChecker(emptyFunction.thatReturnsNull);
742
- }
743
-
744
- function createArrayOfTypeChecker(typeChecker) {
745
- function validate(props, propName, componentName, location, propFullName) {
746
- if (typeof typeChecker !== 'function') {
747
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
748
- }
749
- var propValue = props[propName];
750
- if (!Array.isArray(propValue)) {
751
- var propType = getPropType(propValue);
752
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
753
- }
754
- for (var i = 0; i < propValue.length; i++) {
755
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
756
- if (error instanceof Error) {
757
- return error;
758
- }
759
- }
760
- return null;
761
- }
762
- return createChainableTypeChecker(validate);
763
- }
764
-
765
- function createElementTypeChecker() {
766
- function validate(props, propName, componentName, location, propFullName) {
767
- var propValue = props[propName];
768
- if (!isValidElement(propValue)) {
769
- var propType = getPropType(propValue);
770
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
771
- }
772
- return null;
773
- }
774
- return createChainableTypeChecker(validate);
775
- }
776
-
777
- function createInstanceTypeChecker(expectedClass) {
778
- function validate(props, propName, componentName, location, propFullName) {
779
- if (!(props[propName] instanceof expectedClass)) {
780
- var expectedClassName = expectedClass.name || ANONYMOUS;
781
- var actualClassName = getClassName(props[propName]);
782
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
783
- }
784
- return null;
785
- }
786
- return createChainableTypeChecker(validate);
787
- }
788
-
789
- function createEnumTypeChecker(expectedValues) {
790
- if (!Array.isArray(expectedValues)) {
791
- process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
792
- return emptyFunction.thatReturnsNull;
793
- }
794
-
795
- function validate(props, propName, componentName, location, propFullName) {
796
- var propValue = props[propName];
797
- for (var i = 0; i < expectedValues.length; i++) {
798
- if (is(propValue, expectedValues[i])) {
799
- return null;
800
- }
801
- }
802
-
803
- var valuesString = JSON.stringify(expectedValues);
804
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
805
- }
806
- return createChainableTypeChecker(validate);
807
- }
808
-
809
- function createObjectOfTypeChecker(typeChecker) {
810
- function validate(props, propName, componentName, location, propFullName) {
811
- if (typeof typeChecker !== 'function') {
812
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
813
- }
814
- var propValue = props[propName];
815
- var propType = getPropType(propValue);
816
- if (propType !== 'object') {
817
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
818
- }
819
- for (var key in propValue) {
820
- if (propValue.hasOwnProperty(key)) {
821
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
822
- if (error instanceof Error) {
823
- return error;
824
- }
825
- }
826
- }
827
- return null;
828
- }
829
- return createChainableTypeChecker(validate);
830
- }
831
-
832
- function createUnionTypeChecker(arrayOfTypeCheckers) {
833
- if (!Array.isArray(arrayOfTypeCheckers)) {
834
- process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
835
- return emptyFunction.thatReturnsNull;
836
- }
837
-
838
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
839
- var checker = arrayOfTypeCheckers[i];
840
- if (typeof checker !== 'function') {
841
- warning(
842
- false,
843
- 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +
844
- 'received %s at index %s.',
845
- getPostfixForTypeWarning(checker),
846
- i
847
- );
848
- return emptyFunction.thatReturnsNull;
849
- }
850
- }
851
-
852
- function validate(props, propName, componentName, location, propFullName) {
853
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
854
- var checker = arrayOfTypeCheckers[i];
855
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
856
- return null;
857
- }
858
- }
859
-
860
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
861
- }
862
- return createChainableTypeChecker(validate);
863
- }
864
-
865
- function createNodeChecker() {
866
- function validate(props, propName, componentName, location, propFullName) {
867
- if (!isNode(props[propName])) {
868
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
869
- }
870
- return null;
871
- }
872
- return createChainableTypeChecker(validate);
873
- }
874
-
875
- function createShapeTypeChecker(shapeTypes) {
876
- function validate(props, propName, componentName, location, propFullName) {
877
- var propValue = props[propName];
878
- var propType = getPropType(propValue);
879
- if (propType !== 'object') {
880
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
881
- }
882
- for (var key in shapeTypes) {
883
- var checker = shapeTypes[key];
884
- if (!checker) {
885
- continue;
886
- }
887
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
888
- if (error) {
889
- return error;
890
- }
891
- }
892
- return null;
893
- }
894
- return createChainableTypeChecker(validate);
895
- }
896
-
897
- function isNode(propValue) {
898
- switch (typeof propValue) {
899
- case 'number':
900
- case 'string':
901
- case 'undefined':
902
- return true;
903
- case 'boolean':
904
- return !propValue;
905
- case 'object':
906
- if (Array.isArray(propValue)) {
907
- return propValue.every(isNode);
908
- }
909
- if (propValue === null || isValidElement(propValue)) {
910
- return true;
911
- }
912
-
913
- var iteratorFn = getIteratorFn(propValue);
914
- if (iteratorFn) {
915
- var iterator = iteratorFn.call(propValue);
916
- var step;
917
- if (iteratorFn !== propValue.entries) {
918
- while (!(step = iterator.next()).done) {
919
- if (!isNode(step.value)) {
920
- return false;
921
- }
922
- }
923
- } else {
924
- // Iterator will provide entry [k,v] tuples rather than values.
925
- while (!(step = iterator.next()).done) {
926
- var entry = step.value;
927
- if (entry) {
928
- if (!isNode(entry[1])) {
929
- return false;
930
- }
931
- }
932
- }
933
- }
934
- } else {
935
- return false;
936
- }
937
-
938
- return true;
939
- default:
940
- return false;
941
- }
942
- }
943
-
944
- function isSymbol(propType, propValue) {
945
- // Native Symbol.
946
- if (propType === 'symbol') {
947
- return true;
948
- }
949
-
950
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
951
- if (propValue['@@toStringTag'] === 'Symbol') {
952
- return true;
953
- }
954
-
955
- // Fallback for non-spec compliant Symbols which are polyfilled.
956
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
957
- return true;
958
- }
959
-
960
- return false;
961
- }
962
-
963
- // Equivalent of `typeof` but with special handling for array and regexp.
964
- function getPropType(propValue) {
965
- var propType = typeof propValue;
966
- if (Array.isArray(propValue)) {
967
- return 'array';
968
- }
969
- if (propValue instanceof RegExp) {
970
- // Old webkits (at least until Android 4.0) return 'function' rather than
971
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
972
- // passes PropTypes.object.
973
- return 'object';
974
- }
975
- if (isSymbol(propType, propValue)) {
976
- return 'symbol';
977
- }
978
- return propType;
979
- }
980
-
981
- // This handles more types than `getPropType`. Only used for error messages.
982
- // See `createPrimitiveTypeChecker`.
983
- function getPreciseType(propValue) {
984
- if (typeof propValue === 'undefined' || propValue === null) {
985
- return '' + propValue;
986
- }
987
- var propType = getPropType(propValue);
988
- if (propType === 'object') {
989
- if (propValue instanceof Date) {
990
- return 'date';
991
- } else if (propValue instanceof RegExp) {
992
- return 'regexp';
993
- }
994
- }
995
- return propType;
996
- }
997
-
998
- // Returns a string that is postfixed to a warning about an invalid type.
999
- // For example, "undefined" or "of type array"
1000
- function getPostfixForTypeWarning(value) {
1001
- var type = getPreciseType(value);
1002
- switch (type) {
1003
- case 'array':
1004
- case 'object':
1005
- return 'an ' + type;
1006
- case 'boolean':
1007
- case 'date':
1008
- case 'regexp':
1009
- return 'a ' + type;
1010
- default:
1011
- return type;
1012
- }
1013
- }
1014
-
1015
- // Returns class name of the object, if any.
1016
- function getClassName(propValue) {
1017
- if (!propValue.constructor || !propValue.constructor.name) {
1018
- return ANONYMOUS;
1019
- }
1020
- return propValue.constructor.name;
1021
- }
1022
-
1023
- ReactPropTypes.checkPropTypes = checkPropTypes;
1024
- ReactPropTypes.PropTypes = ReactPropTypes;
1025
-
1026
- return ReactPropTypes;
1027
- };
1028
-
1029
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)));
1030
-
1031
- /***/ },
415
+ /***/ (function(module, exports, __webpack_require__) {
416
+
417
+
418
+ Object.defineProperty(exports, "__esModule", {
419
+ value: true
420
+ });
421
+
422
+ var _react = __webpack_require__(4);
423
+
424
+ var _react2 = _interopRequireDefault(_react);
425
+
426
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
427
+
428
+ var ScrollSyncContext = _react2.default.createContext({
429
+ registerPane: function registerPane() {},
430
+ unregisterPane: function unregisterPane() {}
431
+ });
432
+
433
+ exports.default = ScrollSyncContext;
434
+ module.exports = exports['default'];
435
+
436
+ /***/ }),
1032
437
  /* 6 */
1033
- /***/ function(module, exports) {
1034
-
1035
- /**
1036
- * Copyright (c) 2013-present, Facebook, Inc.
1037
- * All rights reserved.
1038
- *
1039
- * This source code is licensed under the BSD-style license found in the
1040
- * LICENSE file in the root directory of this source tree. An additional grant
1041
- * of patent rights can be found in the PATENTS file in the same directory.
1042
- *
1043
- *
1044
- */
1045
-
1046
- function makeEmptyFunction(arg) {
1047
- return function () {
1048
- return arg;
1049
- };
1050
- }
1051
-
1052
- /**
1053
- * This function accepts and discards inputs; it has no side effects. This is
1054
- * primarily useful idiomatically for overridable function endpoints which
1055
- * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
1056
- */
1057
- var emptyFunction = function emptyFunction() {};
1058
-
1059
- emptyFunction.thatReturns = makeEmptyFunction;
1060
- emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
1061
- emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
1062
- emptyFunction.thatReturnsNull = makeEmptyFunction(null);
1063
- emptyFunction.thatReturnsThis = function () {
1064
- return this;
1065
- };
1066
- emptyFunction.thatReturnsArgument = function (arg) {
1067
- return arg;
1068
- };
1069
-
1070
- module.exports = emptyFunction;
1071
-
1072
- /***/ },
438
+ /***/ (function(module, exports, __webpack_require__) {
439
+ /* WEBPACK VAR INJECTION */(function(process) {/**
440
+ * Copyright 2014-2015, Facebook, Inc.
441
+ * All rights reserved.
442
+ *
443
+ * This source code is licensed under the BSD-style license found in the
444
+ * LICENSE file in the root directory of this source tree. An additional grant
445
+ * of patent rights can be found in the PATENTS file in the same directory.
446
+ *
447
+ */
448
+
449
+
450
+
451
+ var emptyFunction = __webpack_require__(1);
452
+
453
+ /**
454
+ * Similar to invariant but only logs a warning if the condition is not met.
455
+ * This can be used to log issues in development environments in critical
456
+ * paths. Removing the logging code for production environments will keep the
457
+ * same logic and follow the same code paths.
458
+ */
459
+
460
+ var warning = emptyFunction;
461
+
462
+ if (process.env.NODE_ENV !== 'production') {
463
+ (function () {
464
+ var printWarning = function printWarning(format) {
465
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
466
+ args[_key - 1] = arguments[_key];
467
+ }
468
+
469
+ var argIndex = 0;
470
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
471
+ return args[argIndex++];
472
+ });
473
+ if (typeof console !== 'undefined') {
474
+ console.error(message);
475
+ }
476
+ try {
477
+ // --- Welcome to debugging React ---
478
+ // This error was thrown as a convenience so that you can use this stack
479
+ // to find the callsite that caused this warning to fire.
480
+ throw new Error(message);
481
+ } catch (x) {}
482
+ };
483
+
484
+ warning = function warning(condition, format) {
485
+ if (format === undefined) {
486
+ throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
487
+ }
488
+
489
+ if (format.indexOf('Failed Composite propType: ') === 0) {
490
+ return; // Ignore CompositeComponent proptype check.
491
+ }
492
+
493
+ if (!condition) {
494
+ for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
495
+ args[_key2 - 2] = arguments[_key2];
496
+ }
497
+
498
+ printWarning.apply(undefined, [format].concat(args));
499
+ }
500
+ };
501
+ })();
502
+ }
503
+
504
+ module.exports = warning;
505
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)));
506
+
507
+ /***/ }),
1073
508
  /* 7 */
1074
- /***/ function(module, exports, __webpack_require__) {
1075
-
1076
- /* WEBPACK VAR INJECTION */(function(process) {/**
1077
- * Copyright (c) 2013-present, Facebook, Inc.
1078
- * All rights reserved.
1079
- *
1080
- * This source code is licensed under the BSD-style license found in the
1081
- * LICENSE file in the root directory of this source tree. An additional grant
1082
- * of patent rights can be found in the PATENTS file in the same directory.
1083
- *
1084
- */
1085
-
1086
- /**
1087
- * Use invariant() to assert state which your program assumes to be true.
1088
- *
1089
- * Provide sprintf-style format (only %s is supported) and arguments
1090
- * to provide information about what broke and what you were
1091
- * expecting.
1092
- *
1093
- * The invariant message will be stripped in production, but the invariant
1094
- * will remain to ensure logic does not differ in production.
1095
- */
1096
-
1097
- var validateFormat = function validateFormat(format) {};
1098
-
1099
- if (process.env.NODE_ENV !== 'production') {
1100
- validateFormat = function validateFormat(format) {
1101
- if (format === undefined) {
1102
- throw new Error('invariant requires an error message argument');
1103
- }
1104
- };
1105
- }
1106
-
1107
- function invariant(condition, format, a, b, c, d, e, f) {
1108
- validateFormat(format);
1109
-
1110
- if (!condition) {
1111
- var error;
1112
- if (format === undefined) {
1113
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
1114
- } else {
1115
- var args = [a, b, c, d, e, f];
1116
- var argIndex = 0;
1117
- error = new Error(format.replace(/%s/g, function () {
1118
- return args[argIndex++];
1119
- }));
1120
- error.name = 'Invariant Violation';
1121
- }
1122
-
1123
- error.framesToPop = 1; // we don't care about invariant's own frame
1124
- throw error;
1125
- }
1126
- }
1127
-
1128
- module.exports = invariant;
1129
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)));
1130
-
1131
- /***/ },
509
+ /***/ (function(module, exports, __webpack_require__) {
510
+
511
+ /* WEBPACK VAR INJECTION */(function(process) {/**
512
+ * Copyright 2013-present, Facebook, Inc.
513
+ * All rights reserved.
514
+ *
515
+ * This source code is licensed under the BSD-style license found in the
516
+ * LICENSE file in the root directory of this source tree. An additional grant
517
+ * of patent rights can be found in the PATENTS file in the same directory.
518
+ */
519
+
520
+ if (process.env.NODE_ENV !== 'production') {
521
+ var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
522
+ Symbol.for &&
523
+ Symbol.for('react.element')) ||
524
+ 0xeac7;
525
+
526
+ var isValidElement = function(object) {
527
+ return typeof object === 'object' &&
528
+ object !== null &&
529
+ object.$$typeof === REACT_ELEMENT_TYPE;
530
+ };
531
+
532
+ // By explicitly using `prop-types` you are opting into new development behavior.
533
+ // http://fb.me/prop-types-in-prod
534
+ var throwOnDirectAccess = true;
535
+ module.exports = __webpack_require__(13)(isValidElement, throwOnDirectAccess);
536
+ } else {
537
+ // By explicitly using `prop-types` you are opting into new production behavior.
538
+ // http://fb.me/prop-types-in-prod
539
+ module.exports = __webpack_require__(12)();
540
+ }
541
+
542
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)));
543
+
544
+ /***/ }),
1132
545
  /* 8 */
1133
- /***/ function(module, exports, __webpack_require__) {
1134
-
1135
- /* WEBPACK VAR INJECTION */(function(process) {/**
1136
- * Copyright 2014-2015, Facebook, Inc.
1137
- * All rights reserved.
1138
- *
1139
- * This source code is licensed under the BSD-style license found in the
1140
- * LICENSE file in the root directory of this source tree. An additional grant
1141
- * of patent rights can be found in the PATENTS file in the same directory.
1142
- *
1143
- */
1144
-
1145
- var emptyFunction = __webpack_require__(6);
1146
-
1147
- /**
1148
- * Similar to invariant but only logs a warning if the condition is not met.
1149
- * This can be used to log issues in development environments in critical
1150
- * paths. Removing the logging code for production environments will keep the
1151
- * same logic and follow the same code paths.
1152
- */
1153
-
1154
- var warning = emptyFunction;
1155
-
1156
- if (process.env.NODE_ENV !== 'production') {
1157
- (function () {
1158
- var printWarning = function printWarning(format) {
1159
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1160
- args[_key - 1] = arguments[_key];
1161
- }
1162
-
1163
- var argIndex = 0;
1164
- var message = 'Warning: ' + format.replace(/%s/g, function () {
1165
- return args[argIndex++];
1166
- });
1167
- if (typeof console !== 'undefined') {
1168
- console.error(message);
1169
- }
1170
- try {
1171
- // --- Welcome to debugging React ---
1172
- // This error was thrown as a convenience so that you can use this stack
1173
- // to find the callsite that caused this warning to fire.
1174
- throw new Error(message);
1175
- } catch (x) {}
1176
- };
1177
-
1178
- warning = function warning(condition, format) {
1179
- if (format === undefined) {
1180
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
1181
- }
1182
-
1183
- if (format.indexOf('Failed Composite propType: ') === 0) {
1184
- return; // Ignore CompositeComponent proptype check.
1185
- }
1186
-
1187
- if (!condition) {
1188
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
1189
- args[_key2 - 2] = arguments[_key2];
1190
- }
1191
-
1192
- printWarning.apply(undefined, [format].concat(args));
1193
- }
1194
- };
1195
- })();
1196
- }
1197
-
1198
- module.exports = warning;
1199
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)));
1200
-
1201
- /***/ },
546
+ /***/ (function(module, exports, __webpack_require__) {
547
+
548
+
549
+ Object.defineProperty(exports, "__esModule", {
550
+ value: true
551
+ });
552
+
553
+ 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; }; }();
554
+
555
+ var _react = __webpack_require__(4);
556
+
557
+ var _react2 = _interopRequireDefault(_react);
558
+
559
+ var _propTypes = __webpack_require__(7);
560
+
561
+ var _propTypes2 = _interopRequireDefault(_propTypes);
562
+
563
+ var _ScrollSyncContext = __webpack_require__(5);
564
+
565
+ var _ScrollSyncContext2 = _interopRequireDefault(_ScrollSyncContext);
566
+
567
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
568
+
569
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
570
+
571
+ 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; }
572
+
573
+ 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; }
574
+
575
+ /**
576
+ * ScrollSync provider component
577
+ *
578
+ */
579
+
580
+ var ScrollSync = function (_Component) {
581
+ _inherits(ScrollSync, _Component);
582
+
583
+ function ScrollSync() {
584
+ var _ref;
585
+
586
+ var _temp, _this, _ret;
587
+
588
+ _classCallCheck(this, ScrollSync);
589
+
590
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
591
+ args[_key] = arguments[_key];
592
+ }
593
+
594
+ 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) {
595
+ groups.forEach(function (group) {
596
+ if (!_this.panes[group]) {
597
+ _this.panes[group] = [];
598
+ }
599
+
600
+ if (!_this.findPane(node, group)) {
601
+ if (_this.panes[group].length > 0) {
602
+ _this.syncScrollPosition(_this.panes[group][0], node);
603
+ }
604
+ _this.panes[group].push(node);
605
+ }
606
+ });
607
+ _this.addEvents(node, groups);
608
+ }, _this.unregisterPane = function (node, groups) {
609
+ groups.forEach(function (group) {
610
+ if (_this.findPane(node, group)) {
611
+ _this.removeEvents(node);
612
+ _this.panes[group].splice(_this.panes[group].indexOf(node), 1);
613
+ }
614
+ });
615
+ }, _this.addEvents = function (node, groups) {
616
+ /* For some reason element.addEventListener doesnt work with document.body */
617
+ node.onscroll = _this.handlePaneScroll.bind(_this, node, groups); // eslint-disable-line
618
+ }, _this.removeEvents = function (node) {
619
+ /* For some reason element.removeEventListener doesnt work with document.body */
620
+ node.onscroll = null; // eslint-disable-line
621
+ }, _this.findPane = function (node, group) {
622
+ if (!_this.panes[group]) {
623
+ return false;
624
+ }
625
+
626
+ return _this.panes[group].find(function (pane) {
627
+ return pane === node;
628
+ });
629
+ }, _this.handlePaneScroll = function (node, groups) {
630
+ if (!_this.props.enabled) {
631
+ return;
632
+ }
633
+
634
+ window.requestAnimationFrame(function () {
635
+ _this.syncScrollPositions(node, groups);
636
+ });
637
+ }, _this.syncScrollPositions = function (scrolledPane, groups) {
638
+ groups.forEach(function (group) {
639
+ _this.panes[group].forEach(function (pane) {
640
+ /* For all panes beside the currently scrolling one */
641
+ if (scrolledPane !== pane) {
642
+ /* Remove event listeners from the node that we'll manipulate */
643
+ _this.removeEvents(pane, group);
644
+ _this.syncScrollPosition(scrolledPane, pane);
645
+ /* Re-attach event listeners after we're done scrolling */
646
+ window.requestAnimationFrame(function () {
647
+ _this.addEvents(pane, groups);
648
+ });
649
+ }
650
+ });
651
+ });
652
+ if (_this.props.onSync) _this.props.onSync(scrolledPane);
653
+ }, _temp), _possibleConstructorReturn(_this, _ret);
654
+ }
655
+
656
+ _createClass(ScrollSync, [{
657
+ key: 'getContextValue',
658
+ value: function getContextValue() {
659
+ return {
660
+ registerPane: this.registerPane,
661
+ unregisterPane: this.unregisterPane
662
+ };
663
+ }
664
+ }, {
665
+ key: 'syncScrollPosition',
666
+ value: function syncScrollPosition(scrolledPane, pane) {
667
+ var scrollTop = scrolledPane.scrollTop,
668
+ scrollHeight = scrolledPane.scrollHeight,
669
+ clientHeight = scrolledPane.clientHeight,
670
+ scrollLeft = scrolledPane.scrollLeft,
671
+ scrollWidth = scrolledPane.scrollWidth,
672
+ clientWidth = scrolledPane.clientWidth;
673
+
674
+
675
+ var scrollTopOffset = scrollHeight - clientHeight;
676
+ var scrollLeftOffset = scrollWidth - clientWidth;
677
+
678
+ var _props = this.props,
679
+ proportional = _props.proportional,
680
+ vertical = _props.vertical,
681
+ horizontal = _props.horizontal;
682
+
683
+ /* Calculate the actual pane height */
684
+
685
+ var paneHeight = pane.scrollHeight - clientHeight;
686
+ var paneWidth = pane.scrollWidth - clientWidth;
687
+ /* Adjust the scrollTop position of it accordingly */
688
+ if (vertical && scrollTopOffset > 0) {
689
+ pane.scrollTop = proportional ? paneHeight * scrollTop / scrollTopOffset : scrollTop; // eslint-disable-line
690
+ }
691
+ if (horizontal && scrollLeftOffset > 0) {
692
+ pane.scrollLeft = proportional ? paneWidth * scrollLeft / scrollLeftOffset : scrollLeft; // eslint-disable-line
693
+ }
694
+ }
695
+ }, {
696
+ key: 'render',
697
+ value: function render() {
698
+ return _react2.default.createElement(
699
+ _ScrollSyncContext2.default.Provider,
700
+ { value: this.getContextValue() },
701
+ _react2.default.Children.only(this.props.children)
702
+ );
703
+ }
704
+ }]);
705
+
706
+ return ScrollSync;
707
+ }(_react.Component);
708
+
709
+ ScrollSync.propTypes = {
710
+ /**
711
+ * Callback to be invoked any time synchronization happens
712
+ *
713
+ * @param {Element} el The element that has received the scroll event
714
+ */
715
+ onSync: _propTypes2.default.func,
716
+ children: _propTypes2.default.element.isRequired,
717
+ proportional: _propTypes2.default.bool,
718
+ vertical: _propTypes2.default.bool,
719
+ horizontal: _propTypes2.default.bool,
720
+ enabled: _propTypes2.default.bool
721
+ };
722
+ ScrollSync.defaultProps = {
723
+ proportional: true,
724
+ vertical: true,
725
+ horizontal: true,
726
+ enabled: true
727
+ };
728
+ exports.default = ScrollSync;
729
+ module.exports = exports['default'];
730
+
731
+ /***/ }),
1202
732
  /* 9 */
1203
- /***/ function(module, exports) {
1204
-
1205
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1206
-
1207
- module.exports = ReactPropTypesSecret;
733
+ /***/ (function(module, exports, __webpack_require__) {
734
+
735
+
736
+ Object.defineProperty(exports, "__esModule", {
737
+ value: true
738
+ });
739
+
740
+ 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; }; }();
741
+
742
+ var _react = __webpack_require__(4);
743
+
744
+ var _propTypes = __webpack_require__(7);
745
+
746
+ var _propTypes2 = _interopRequireDefault(_propTypes);
747
+
748
+ var _ScrollSyncContext = __webpack_require__(5);
749
+
750
+ var _ScrollSyncContext2 = _interopRequireDefault(_ScrollSyncContext);
751
+
752
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
753
+
754
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
755
+
756
+ 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; }
757
+
758
+ 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 */
759
+
760
+ /**
761
+ * ScrollSyncPane Component
762
+ *
763
+ * Wrap your content in it to keep its scroll position in sync with other panes
764
+ *
765
+ * @example ./example.md
766
+ */
767
+
768
+ var ScrollSyncPane = function (_Component) {
769
+ _inherits(ScrollSyncPane, _Component);
770
+
771
+ function ScrollSyncPane(props) {
772
+ _classCallCheck(this, ScrollSyncPane);
773
+
774
+ var _this = _possibleConstructorReturn(this, (ScrollSyncPane.__proto__ || Object.getPrototypeOf(ScrollSyncPane)).call(this, props));
775
+
776
+ _this.toArray = function (groups) {
777
+ return [].concat(groups);
778
+ };
779
+
780
+ _this.updateNode = function () {
781
+ if (_this.props.attachTo) {
782
+ _this.node = _this.props.attachTo.current;
783
+ } else {
784
+ _this.node = _this.childRef.current;
785
+ }
786
+ };
787
+
788
+ _this.childRef = (0, _react.createRef)();
789
+ return _this;
790
+ }
791
+
792
+ _createClass(ScrollSyncPane, [{
793
+ key: 'componentDidMount',
794
+ value: function componentDidMount() {
795
+ if (this.props.enabled) {
796
+ this.updateNode();
797
+ if (this.node) {
798
+ this.context.registerPane(this.node, this.toArray(this.props.group));
799
+ }
800
+ }
801
+ }
802
+ }, {
803
+ key: 'componentDidUpdate',
804
+ value: function componentDidUpdate(prevProps) {
805
+ if (this.props.attachTo !== prevProps.attachTo) {
806
+ if (this.node) {
807
+ this.context.unregisterPane(this.node, this.toArray(prevProps.group));
808
+ }
809
+ this.updateNode();
810
+ if (this.node) {
811
+ this.context.registerPane(this.node, this.toArray(prevProps.group));
812
+ }
813
+ }
814
+ if (this.node && this.props.enabled !== prevProps.enabled) {
815
+ if (this.props.enabled) {
816
+ this.context.registerPane(this.node, this.toArray(prevProps.group));
817
+ } else {
818
+ this.context.unregisterPane(this.node, this.toArray(prevProps.group));
819
+ }
820
+ }
821
+ if (this.node && this.props.enabled && this.props.group !== prevProps.group) {
822
+ this.context.unregisterPane(this.node, this.toArray(prevProps.group));
823
+ this.context.registerPane(this.node, this.toArray(this.props.group));
824
+ }
825
+ }
826
+ }, {
827
+ key: 'componentWillUnmount',
828
+ value: function componentWillUnmount() {
829
+ if (this.node && this.props.enabled) {
830
+ this.context.unregisterPane(this.node, this.toArray(this.props.group));
831
+ }
832
+ }
833
+ }, {
834
+ key: 'render',
835
+ value: function render() {
836
+ if (this.props.attachTo) {
837
+ return this.props.children;
838
+ }
839
+ return (0, _react.cloneElement)(_react.Children.only(this.props.children), { ref: this.childRef });
840
+ }
841
+ }]);
842
+
843
+ return ScrollSyncPane;
844
+ }(_react.Component);
1208
845
 
846
+ ScrollSyncPane.contextType = _ScrollSyncContext2.default;
847
+ ScrollSyncPane.propTypes = {
848
+ children: _propTypes2.default.node.isRequired,
849
+ attachTo: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.shape({ current: _propTypes2.default.any })]),
850
+ group: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.arrayOf(_propTypes2.default.string)]),
851
+ enabled: _propTypes2.default.bool
852
+ };
853
+ ScrollSyncPane.defaultProps = {
854
+ group: 'default',
855
+ enabled: true
856
+ };
857
+ exports.default = ScrollSyncPane;
858
+ module.exports = exports['default'];
1209
859
 
1210
- /***/ },
860
+ /***/ }),
1211
861
  /* 10 */
1212
- /***/ function(module, exports, __webpack_require__) {
1213
-
1214
- /* WEBPACK VAR INJECTION */(function(process) {/**
1215
- * Copyright 2013-present, Facebook, Inc.
1216
- * All rights reserved.
1217
- *
1218
- * This source code is licensed under the BSD-style license found in the
1219
- * LICENSE file in the root directory of this source tree. An additional grant
1220
- * of patent rights can be found in the PATENTS file in the same directory.
1221
- */
1222
-
1223
- if (process.env.NODE_ENV !== 'production') {
1224
- var invariant = __webpack_require__(7);
1225
- var warning = __webpack_require__(8);
1226
- var ReactPropTypesSecret = __webpack_require__(9);
1227
- var loggedTypeFailures = {};
1228
- }
1229
-
1230
- /**
1231
- * Assert that the values match with the type specs.
1232
- * Error messages are memorized and will only be shown once.
1233
- *
1234
- * @param {object} typeSpecs Map of name to a ReactPropType
1235
- * @param {object} values Runtime values that need to be type-checked
1236
- * @param {string} location e.g. "prop", "context", "child context"
1237
- * @param {string} componentName Name of the component for error messages.
1238
- * @param {?Function} getStack Returns the component stack.
1239
- * @private
1240
- */
1241
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1242
- if (process.env.NODE_ENV !== 'production') {
1243
- for (var typeSpecName in typeSpecs) {
1244
- if (typeSpecs.hasOwnProperty(typeSpecName)) {
1245
- var error;
1246
- // Prop type validation may throw. In case they do, we don't want to
1247
- // fail the render phase where it didn't fail before. So we log it.
1248
- // After these have been cleaned up, we'll let them throw.
1249
- try {
1250
- // This is intentionally an invariant that gets caught. It's the same
1251
- // behavior as without this statement except with a better message.
1252
- 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);
1253
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1254
- } catch (ex) {
1255
- error = ex;
1256
- }
1257
- 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);
1258
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1259
- // Only monitor this failure once because there tends to be a lot of the
1260
- // same error.
1261
- loggedTypeFailures[error.message] = true;
1262
-
1263
- var stack = getStack ? getStack() : '';
1264
-
1265
- warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
1266
- }
1267
- }
1268
- }
1269
- }
1270
- }
1271
-
1272
- module.exports = checkPropTypes;
1273
-
1274
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4)));
1275
-
1276
- /***/ },
862
+ /***/ (function(module, exports, __webpack_require__) {
863
+
864
+
865
+ Object.defineProperty(exports, "__esModule", {
866
+ value: true
867
+ });
868
+
869
+ var _ScrollSync = __webpack_require__(8);
870
+
871
+ Object.defineProperty(exports, 'ScrollSync', {
872
+ enumerable: true,
873
+ get: function get() {
874
+ return _interopRequireDefault(_ScrollSync).default;
875
+ }
876
+ });
877
+
878
+ var _ScrollSyncPane = __webpack_require__(9);
879
+
880
+ Object.defineProperty(exports, 'ScrollSyncPane', {
881
+ enumerable: true,
882
+ get: function get() {
883
+ return _interopRequireDefault(_ScrollSyncPane).default;
884
+ }
885
+ });
886
+
887
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
888
+
889
+ /***/ }),
1277
890
  /* 11 */
1278
- /***/ function(module, exports, __webpack_require__) {
1279
-
1280
- var emptyFunction = __webpack_require__(6);
1281
- var invariant = __webpack_require__(7);
1282
- var ReactPropTypesSecret = __webpack_require__(9);
1283
-
1284
- module.exports = function() {
1285
- function shim(props, propName, componentName, location, propFullName, secret) {
1286
- if (secret === ReactPropTypesSecret) {
1287
- // It is still safe when called from React.
1288
- return;
1289
- }
1290
- invariant(
1291
- false,
1292
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1293
- 'Use PropTypes.checkPropTypes() to call them. ' +
1294
- 'Read more at http://fb.me/use-check-prop-types'
1295
- );
1296
- } shim.isRequired = shim;
1297
- function getShim() {
1298
- return shim;
1299
- } // Important!
1300
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1301
- var ReactPropTypes = {
1302
- array: shim,
1303
- bool: shim,
1304
- func: shim,
1305
- number: shim,
1306
- object: shim,
1307
- string: shim,
1308
- symbol: shim,
1309
-
1310
- any: shim,
1311
- arrayOf: getShim,
1312
- element: shim,
1313
- instanceOf: getShim,
1314
- node: shim,
1315
- objectOf: getShim,
1316
- oneOf: getShim,
1317
- oneOfType: getShim,
1318
- shape: getShim
1319
- };
1320
-
1321
- ReactPropTypes.checkPropTypes = emptyFunction;
1322
- ReactPropTypes.PropTypes = ReactPropTypes;
1323
-
1324
- return ReactPropTypes;
1325
- };
1326
-
1327
-
1328
- /***/ },
891
+ /***/ (function(module, exports, __webpack_require__) {
892
+ /* WEBPACK VAR INJECTION */(function(process) {/**
893
+ * Copyright 2013-present, Facebook, Inc.
894
+ * All rights reserved.
895
+ *
896
+ * This source code is licensed under the BSD-style license found in the
897
+ * LICENSE file in the root directory of this source tree. An additional grant
898
+ * of patent rights can be found in the PATENTS file in the same directory.
899
+ */
900
+
901
+
902
+
903
+ if (process.env.NODE_ENV !== 'production') {
904
+ var invariant = __webpack_require__(2);
905
+ var warning = __webpack_require__(6);
906
+ var ReactPropTypesSecret = __webpack_require__(3);
907
+ var loggedTypeFailures = {};
908
+ }
909
+
910
+ /**
911
+ * Assert that the values match with the type specs.
912
+ * Error messages are memorized and will only be shown once.
913
+ *
914
+ * @param {object} typeSpecs Map of name to a ReactPropType
915
+ * @param {object} values Runtime values that need to be type-checked
916
+ * @param {string} location e.g. "prop", "context", "child context"
917
+ * @param {string} componentName Name of the component for error messages.
918
+ * @param {?Function} getStack Returns the component stack.
919
+ * @private
920
+ */
921
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
922
+ if (process.env.NODE_ENV !== 'production') {
923
+ for (var typeSpecName in typeSpecs) {
924
+ if (typeSpecs.hasOwnProperty(typeSpecName)) {
925
+ var error;
926
+ // Prop type validation may throw. In case they do, we don't want to
927
+ // fail the render phase where it didn't fail before. So we log it.
928
+ // After these have been cleaned up, we'll let them throw.
929
+ try {
930
+ // This is intentionally an invariant that gets caught. It's the same
931
+ // behavior as without this statement except with a better message.
932
+ 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);
933
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
934
+ } catch (ex) {
935
+ error = ex;
936
+ }
937
+ 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);
938
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
939
+ // Only monitor this failure once because there tends to be a lot of the
940
+ // same error.
941
+ loggedTypeFailures[error.message] = true;
942
+
943
+ var stack = getStack ? getStack() : '';
944
+
945
+ warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');
946
+ }
947
+ }
948
+ }
949
+ }
950
+ }
951
+
952
+ module.exports = checkPropTypes;
953
+
954
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)));
955
+
956
+ /***/ }),
1329
957
  /* 12 */
1330
- /***/ function(module, exports, __webpack_require__) {
1331
-
1332
- Object.defineProperty(exports, "__esModule", {
1333
- value: true
1334
- });
1335
-
1336
- 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; }; }();
1337
-
1338
- var _react = __webpack_require__(2);
1339
-
1340
- var _reactDom = __webpack_require__(13);
1341
-
1342
- var _reactDom2 = _interopRequireDefault(_reactDom);
1343
-
1344
- var _propTypes = __webpack_require__(3);
1345
-
1346
- var _propTypes2 = _interopRequireDefault(_propTypes);
1347
-
1348
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1349
-
1350
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1351
-
1352
- 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; }
1353
-
1354
- 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 */
1355
-
1356
- /**
1357
- * ScrollSyncPane Component
1358
- *
1359
- * Wrap your content in it to keep its scroll position in sync with other panes
1360
- *
1361
- * @example ./example.md
1362
- */
1363
-
1364
- var ScrollSyncPane = function (_Component) {
1365
- _inherits(ScrollSyncPane, _Component);
1366
-
1367
- function ScrollSyncPane() {
1368
- var _ref;
1369
-
1370
- var _temp, _this, _ret;
1371
-
1372
- _classCallCheck(this, ScrollSyncPane);
1373
-
1374
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1375
- args[_key] = arguments[_key];
1376
- }
1377
-
1378
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ScrollSyncPane.__proto__ || Object.getPrototypeOf(ScrollSyncPane)).call.apply(_ref, [this].concat(args))), _this), _this.toArray = function (groups) {
1379
- return [].concat(groups);
1380
- }, _temp), _possibleConstructorReturn(_this, _ret);
1381
- }
1382
-
1383
- _createClass(ScrollSyncPane, [{
1384
- key: 'componentDidMount',
1385
- value: function componentDidMount() {
1386
- if (this.props.enabled) {
1387
- this.node = this.props.attachTo || _reactDom2.default.findDOMNode(this);
1388
- this.context.registerPane(this.node, this.toArray(this.props.group));
1389
- }
1390
- }
1391
- }, {
1392
- key: 'componentDidUpdate',
1393
- value: function componentDidUpdate(prevProps) {
1394
- if (this.props.enabled && this.props.group !== prevProps.group) {
1395
- this.context.unregisterPane(this.node, this.toArray(prevProps.group));
1396
- this.context.registerPane(this.node, this.toArray(this.props.group));
1397
- }
1398
- }
1399
- }, {
1400
- key: 'componentWillUnmount',
1401
- value: function componentWillUnmount() {
1402
- if (this.props.enabled) {
1403
- this.context.unregisterPane(this.node, this.toArray(this.props.group));
1404
- }
1405
- }
1406
- }, {
1407
- key: 'render',
1408
- value: function render() {
1409
- return this.props.children;
1410
- }
1411
- }]);
1412
-
1413
- return ScrollSyncPane;
1414
- }(_react.Component);
1415
-
1416
- ScrollSyncPane.propTypes = {
1417
- children: _propTypes2.default.node.isRequired,
1418
- attachTo: _propTypes2.default.object,
1419
- group: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.arrayOf(_propTypes2.default.string)]),
1420
- enabled: _propTypes2.default.bool
1421
- };
1422
- ScrollSyncPane.defaultProps = {
1423
- group: 'default',
1424
- enabled: true
1425
- };
1426
- ScrollSyncPane.contextTypes = {
1427
- registerPane: _propTypes2.default.func,
1428
- unregisterPane: _propTypes2.default.func
1429
- };
1430
- exports.default = ScrollSyncPane;
1431
- module.exports = exports['default'];
1432
-
1433
- /***/ },
958
+ /***/ (function(module, exports, __webpack_require__) {
959
+ /**
960
+ * Copyright 2013-present, Facebook, Inc.
961
+ * All rights reserved.
962
+ *
963
+ * This source code is licensed under the BSD-style license found in the
964
+ * LICENSE file in the root directory of this source tree. An additional grant
965
+ * of patent rights can be found in the PATENTS file in the same directory.
966
+ */
967
+
968
+
969
+
970
+ var emptyFunction = __webpack_require__(1);
971
+ var invariant = __webpack_require__(2);
972
+ var ReactPropTypesSecret = __webpack_require__(3);
973
+
974
+ module.exports = function() {
975
+ function shim(props, propName, componentName, location, propFullName, secret) {
976
+ if (secret === ReactPropTypesSecret) {
977
+ // It is still safe when called from React.
978
+ return;
979
+ }
980
+ invariant(
981
+ false,
982
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
983
+ 'Use PropTypes.checkPropTypes() to call them. ' +
984
+ 'Read more at http://fb.me/use-check-prop-types'
985
+ );
986
+ } shim.isRequired = shim;
987
+ function getShim() {
988
+ return shim;
989
+ } // Important!
990
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
991
+ var ReactPropTypes = {
992
+ array: shim,
993
+ bool: shim,
994
+ func: shim,
995
+ number: shim,
996
+ object: shim,
997
+ string: shim,
998
+ symbol: shim,
999
+
1000
+ any: shim,
1001
+ arrayOf: getShim,
1002
+ element: shim,
1003
+ instanceOf: getShim,
1004
+ node: shim,
1005
+ objectOf: getShim,
1006
+ oneOf: getShim,
1007
+ oneOfType: getShim,
1008
+ shape: getShim
1009
+ };
1010
+
1011
+ ReactPropTypes.checkPropTypes = emptyFunction;
1012
+ ReactPropTypes.PropTypes = ReactPropTypes;
1013
+
1014
+ return ReactPropTypes;
1015
+ };
1016
+
1017
+
1018
+ /***/ }),
1434
1019
  /* 13 */
1435
- /***/ function(module, exports) {
1020
+ /***/ (function(module, exports, __webpack_require__) {
1021
+ /* WEBPACK VAR INJECTION */(function(process) {/**
1022
+ * Copyright 2013-present, Facebook, Inc.
1023
+ * All rights reserved.
1024
+ *
1025
+ * This source code is licensed under the BSD-style license found in the
1026
+ * LICENSE file in the root directory of this source tree. An additional grant
1027
+ * of patent rights can be found in the PATENTS file in the same directory.
1028
+ */
1029
+
1030
+
1031
+
1032
+ var emptyFunction = __webpack_require__(1);
1033
+ var invariant = __webpack_require__(2);
1034
+ var warning = __webpack_require__(6);
1035
+
1036
+ var ReactPropTypesSecret = __webpack_require__(3);
1037
+ var checkPropTypes = __webpack_require__(11);
1038
+
1039
+ module.exports = function(isValidElement, throwOnDirectAccess) {
1040
+ /* global Symbol */
1041
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1042
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1043
+
1044
+ /**
1045
+ * Returns the iterator method function contained on the iterable object.
1046
+ *
1047
+ * Be sure to invoke the function with the iterable as context:
1048
+ *
1049
+ * var iteratorFn = getIteratorFn(myIterable);
1050
+ * if (iteratorFn) {
1051
+ * var iterator = iteratorFn.call(myIterable);
1052
+ * ...
1053
+ * }
1054
+ *
1055
+ * @param {?object} maybeIterable
1056
+ * @return {?function}
1057
+ */
1058
+ function getIteratorFn(maybeIterable) {
1059
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1060
+ if (typeof iteratorFn === 'function') {
1061
+ return iteratorFn;
1062
+ }
1063
+ }
1064
+
1065
+ /**
1066
+ * Collection of methods that allow declaration and validation of props that are
1067
+ * supplied to React components. Example usage:
1068
+ *
1069
+ * var Props = require('ReactPropTypes');
1070
+ * var MyArticle = React.createClass({
1071
+ * propTypes: {
1072
+ * // An optional string prop named "description".
1073
+ * description: Props.string,
1074
+ *
1075
+ * // A required enum prop named "category".
1076
+ * category: Props.oneOf(['News','Photos']).isRequired,
1077
+ *
1078
+ * // A prop named "dialog" that requires an instance of Dialog.
1079
+ * dialog: Props.instanceOf(Dialog).isRequired
1080
+ * },
1081
+ * render: function() { ... }
1082
+ * });
1083
+ *
1084
+ * A more formal specification of how these methods are used:
1085
+ *
1086
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1087
+ * decl := ReactPropTypes.{type}(.isRequired)?
1088
+ *
1089
+ * Each and every declaration produces a function with the same signature. This
1090
+ * allows the creation of custom validation functions. For example:
1091
+ *
1092
+ * var MyLink = React.createClass({
1093
+ * propTypes: {
1094
+ * // An optional string or URI prop named "href".
1095
+ * href: function(props, propName, componentName) {
1096
+ * var propValue = props[propName];
1097
+ * if (propValue != null && typeof propValue !== 'string' &&
1098
+ * !(propValue instanceof URI)) {
1099
+ * return new Error(
1100
+ * 'Expected a string or an URI for ' + propName + ' in ' +
1101
+ * componentName
1102
+ * );
1103
+ * }
1104
+ * }
1105
+ * },
1106
+ * render: function() {...}
1107
+ * });
1108
+ *
1109
+ * @internal
1110
+ */
1111
+
1112
+ var ANONYMOUS = '<<anonymous>>';
1113
+
1114
+ // Important!
1115
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1116
+ var ReactPropTypes = {
1117
+ array: createPrimitiveTypeChecker('array'),
1118
+ bool: createPrimitiveTypeChecker('boolean'),
1119
+ func: createPrimitiveTypeChecker('function'),
1120
+ number: createPrimitiveTypeChecker('number'),
1121
+ object: createPrimitiveTypeChecker('object'),
1122
+ string: createPrimitiveTypeChecker('string'),
1123
+ symbol: createPrimitiveTypeChecker('symbol'),
1124
+
1125
+ any: createAnyTypeChecker(),
1126
+ arrayOf: createArrayOfTypeChecker,
1127
+ element: createElementTypeChecker(),
1128
+ instanceOf: createInstanceTypeChecker,
1129
+ node: createNodeChecker(),
1130
+ objectOf: createObjectOfTypeChecker,
1131
+ oneOf: createEnumTypeChecker,
1132
+ oneOfType: createUnionTypeChecker,
1133
+ shape: createShapeTypeChecker
1134
+ };
1135
+
1136
+ /**
1137
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
1138
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1139
+ */
1140
+ /*eslint-disable no-self-compare*/
1141
+ function is(x, y) {
1142
+ // SameValue algorithm
1143
+ if (x === y) {
1144
+ // Steps 1-5, 7-10
1145
+ // Steps 6.b-6.e: +0 != -0
1146
+ return x !== 0 || 1 / x === 1 / y;
1147
+ } else {
1148
+ // Step 6.a: NaN == NaN
1149
+ return x !== x && y !== y;
1150
+ }
1151
+ }
1152
+ /*eslint-enable no-self-compare*/
1153
+
1154
+ /**
1155
+ * We use an Error-like object for backward compatibility as people may call
1156
+ * PropTypes directly and inspect their output. However, we don't use real
1157
+ * Errors anymore. We don't inspect their stack anyway, and creating them
1158
+ * is prohibitively expensive if they are created too often, such as what
1159
+ * happens in oneOfType() for any type before the one that matched.
1160
+ */
1161
+ function PropTypeError(message) {
1162
+ this.message = message;
1163
+ this.stack = '';
1164
+ }
1165
+ // Make `instanceof Error` still work for returned errors.
1166
+ PropTypeError.prototype = Error.prototype;
1167
+
1168
+ function createChainableTypeChecker(validate) {
1169
+ if (process.env.NODE_ENV !== 'production') {
1170
+ var manualPropTypeCallCache = {};
1171
+ var manualPropTypeWarningCount = 0;
1172
+ }
1173
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1174
+ componentName = componentName || ANONYMOUS;
1175
+ propFullName = propFullName || propName;
1176
+
1177
+ if (secret !== ReactPropTypesSecret) {
1178
+ if (throwOnDirectAccess) {
1179
+ // New behavior only for users of `prop-types` package
1180
+ invariant(
1181
+ false,
1182
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1183
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
1184
+ 'Read more at http://fb.me/use-check-prop-types'
1185
+ );
1186
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
1187
+ // Old behavior for people using React.PropTypes
1188
+ var cacheKey = componentName + ':' + propName;
1189
+ if (
1190
+ !manualPropTypeCallCache[cacheKey] &&
1191
+ // Avoid spamming the console because they are often not actionable except for lib authors
1192
+ manualPropTypeWarningCount < 3
1193
+ ) {
1194
+ warning(
1195
+ false,
1196
+ 'You are manually calling a React.PropTypes validation ' +
1197
+ 'function for the `%s` prop on `%s`. This is deprecated ' +
1198
+ 'and will throw in the standalone `prop-types` package. ' +
1199
+ 'You may be seeing this warning due to a third-party PropTypes ' +
1200
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.',
1201
+ propFullName,
1202
+ componentName
1203
+ );
1204
+ manualPropTypeCallCache[cacheKey] = true;
1205
+ manualPropTypeWarningCount++;
1206
+ }
1207
+ }
1208
+ }
1209
+ if (props[propName] == null) {
1210
+ if (isRequired) {
1211
+ if (props[propName] === null) {
1212
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1213
+ }
1214
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1215
+ }
1216
+ return null;
1217
+ } else {
1218
+ return validate(props, propName, componentName, location, propFullName);
1219
+ }
1220
+ }
1221
+
1222
+ var chainedCheckType = checkType.bind(null, false);
1223
+ chainedCheckType.isRequired = checkType.bind(null, true);
1224
+
1225
+ return chainedCheckType;
1226
+ }
1227
+
1228
+ function createPrimitiveTypeChecker(expectedType) {
1229
+ function validate(props, propName, componentName, location, propFullName, secret) {
1230
+ var propValue = props[propName];
1231
+ var propType = getPropType(propValue);
1232
+ if (propType !== expectedType) {
1233
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
1234
+ // check, but we can offer a more precise error message here rather than
1235
+ // 'of type `object`'.
1236
+ var preciseType = getPreciseType(propValue);
1237
+
1238
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
1239
+ }
1240
+ return null;
1241
+ }
1242
+ return createChainableTypeChecker(validate);
1243
+ }
1244
+
1245
+ function createAnyTypeChecker() {
1246
+ return createChainableTypeChecker(emptyFunction.thatReturnsNull);
1247
+ }
1248
+
1249
+ function createArrayOfTypeChecker(typeChecker) {
1250
+ function validate(props, propName, componentName, location, propFullName) {
1251
+ if (typeof typeChecker !== 'function') {
1252
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1253
+ }
1254
+ var propValue = props[propName];
1255
+ if (!Array.isArray(propValue)) {
1256
+ var propType = getPropType(propValue);
1257
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1258
+ }
1259
+ for (var i = 0; i < propValue.length; i++) {
1260
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1261
+ if (error instanceof Error) {
1262
+ return error;
1263
+ }
1264
+ }
1265
+ return null;
1266
+ }
1267
+ return createChainableTypeChecker(validate);
1268
+ }
1269
+
1270
+ function createElementTypeChecker() {
1271
+ function validate(props, propName, componentName, location, propFullName) {
1272
+ var propValue = props[propName];
1273
+ if (!isValidElement(propValue)) {
1274
+ var propType = getPropType(propValue);
1275
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1276
+ }
1277
+ return null;
1278
+ }
1279
+ return createChainableTypeChecker(validate);
1280
+ }
1281
+
1282
+ function createInstanceTypeChecker(expectedClass) {
1283
+ function validate(props, propName, componentName, location, propFullName) {
1284
+ if (!(props[propName] instanceof expectedClass)) {
1285
+ var expectedClassName = expectedClass.name || ANONYMOUS;
1286
+ var actualClassName = getClassName(props[propName]);
1287
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1288
+ }
1289
+ return null;
1290
+ }
1291
+ return createChainableTypeChecker(validate);
1292
+ }
1293
+
1294
+ function createEnumTypeChecker(expectedValues) {
1295
+ if (!Array.isArray(expectedValues)) {
1296
+ process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
1297
+ return emptyFunction.thatReturnsNull;
1298
+ }
1299
+
1300
+ function validate(props, propName, componentName, location, propFullName) {
1301
+ var propValue = props[propName];
1302
+ for (var i = 0; i < expectedValues.length; i++) {
1303
+ if (is(propValue, expectedValues[i])) {
1304
+ return null;
1305
+ }
1306
+ }
1436
1307
 
1437
- module.exports = __WEBPACK_EXTERNAL_MODULE_13__;
1308
+ var valuesString = JSON.stringify(expectedValues);
1309
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1310
+ }
1311
+ return createChainableTypeChecker(validate);
1312
+ }
1438
1313
 
1439
- /***/ }
1440
- /******/ ])
1314
+ function createObjectOfTypeChecker(typeChecker) {
1315
+ function validate(props, propName, componentName, location, propFullName) {
1316
+ if (typeof typeChecker !== 'function') {
1317
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1318
+ }
1319
+ var propValue = props[propName];
1320
+ var propType = getPropType(propValue);
1321
+ if (propType !== 'object') {
1322
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1323
+ }
1324
+ for (var key in propValue) {
1325
+ if (propValue.hasOwnProperty(key)) {
1326
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1327
+ if (error instanceof Error) {
1328
+ return error;
1329
+ }
1330
+ }
1331
+ }
1332
+ return null;
1333
+ }
1334
+ return createChainableTypeChecker(validate);
1335
+ }
1336
+
1337
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
1338
+ if (!Array.isArray(arrayOfTypeCheckers)) {
1339
+ process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
1340
+ return emptyFunction.thatReturnsNull;
1341
+ }
1342
+
1343
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1344
+ var checker = arrayOfTypeCheckers[i];
1345
+ if (typeof checker !== 'function') {
1346
+ warning(
1347
+ false,
1348
+ 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +
1349
+ 'received %s at index %s.',
1350
+ getPostfixForTypeWarning(checker),
1351
+ i
1352
+ );
1353
+ return emptyFunction.thatReturnsNull;
1354
+ }
1355
+ }
1356
+
1357
+ function validate(props, propName, componentName, location, propFullName) {
1358
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1359
+ var checker = arrayOfTypeCheckers[i];
1360
+ if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
1361
+ return null;
1362
+ }
1363
+ }
1364
+
1365
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
1366
+ }
1367
+ return createChainableTypeChecker(validate);
1368
+ }
1369
+
1370
+ function createNodeChecker() {
1371
+ function validate(props, propName, componentName, location, propFullName) {
1372
+ if (!isNode(props[propName])) {
1373
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1374
+ }
1375
+ return null;
1376
+ }
1377
+ return createChainableTypeChecker(validate);
1378
+ }
1379
+
1380
+ function createShapeTypeChecker(shapeTypes) {
1381
+ function validate(props, propName, componentName, location, propFullName) {
1382
+ var propValue = props[propName];
1383
+ var propType = getPropType(propValue);
1384
+ if (propType !== 'object') {
1385
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1386
+ }
1387
+ for (var key in shapeTypes) {
1388
+ var checker = shapeTypes[key];
1389
+ if (!checker) {
1390
+ continue;
1391
+ }
1392
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1393
+ if (error) {
1394
+ return error;
1395
+ }
1396
+ }
1397
+ return null;
1398
+ }
1399
+ return createChainableTypeChecker(validate);
1400
+ }
1401
+
1402
+ function isNode(propValue) {
1403
+ switch (typeof propValue) {
1404
+ case 'number':
1405
+ case 'string':
1406
+ case 'undefined':
1407
+ return true;
1408
+ case 'boolean':
1409
+ return !propValue;
1410
+ case 'object':
1411
+ if (Array.isArray(propValue)) {
1412
+ return propValue.every(isNode);
1413
+ }
1414
+ if (propValue === null || isValidElement(propValue)) {
1415
+ return true;
1416
+ }
1417
+
1418
+ var iteratorFn = getIteratorFn(propValue);
1419
+ if (iteratorFn) {
1420
+ var iterator = iteratorFn.call(propValue);
1421
+ var step;
1422
+ if (iteratorFn !== propValue.entries) {
1423
+ while (!(step = iterator.next()).done) {
1424
+ if (!isNode(step.value)) {
1425
+ return false;
1426
+ }
1427
+ }
1428
+ } else {
1429
+ // Iterator will provide entry [k,v] tuples rather than values.
1430
+ while (!(step = iterator.next()).done) {
1431
+ var entry = step.value;
1432
+ if (entry) {
1433
+ if (!isNode(entry[1])) {
1434
+ return false;
1435
+ }
1436
+ }
1437
+ }
1438
+ }
1439
+ } else {
1440
+ return false;
1441
+ }
1442
+
1443
+ return true;
1444
+ default:
1445
+ return false;
1446
+ }
1447
+ }
1448
+
1449
+ function isSymbol(propType, propValue) {
1450
+ // Native Symbol.
1451
+ if (propType === 'symbol') {
1452
+ return true;
1453
+ }
1454
+
1455
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1456
+ if (propValue['@@toStringTag'] === 'Symbol') {
1457
+ return true;
1458
+ }
1459
+
1460
+ // Fallback for non-spec compliant Symbols which are polyfilled.
1461
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1462
+ return true;
1463
+ }
1464
+
1465
+ return false;
1466
+ }
1467
+
1468
+ // Equivalent of `typeof` but with special handling for array and regexp.
1469
+ function getPropType(propValue) {
1470
+ var propType = typeof propValue;
1471
+ if (Array.isArray(propValue)) {
1472
+ return 'array';
1473
+ }
1474
+ if (propValue instanceof RegExp) {
1475
+ // Old webkits (at least until Android 4.0) return 'function' rather than
1476
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1477
+ // passes PropTypes.object.
1478
+ return 'object';
1479
+ }
1480
+ if (isSymbol(propType, propValue)) {
1481
+ return 'symbol';
1482
+ }
1483
+ return propType;
1484
+ }
1485
+
1486
+ // This handles more types than `getPropType`. Only used for error messages.
1487
+ // See `createPrimitiveTypeChecker`.
1488
+ function getPreciseType(propValue) {
1489
+ if (typeof propValue === 'undefined' || propValue === null) {
1490
+ return '' + propValue;
1491
+ }
1492
+ var propType = getPropType(propValue);
1493
+ if (propType === 'object') {
1494
+ if (propValue instanceof Date) {
1495
+ return 'date';
1496
+ } else if (propValue instanceof RegExp) {
1497
+ return 'regexp';
1498
+ }
1499
+ }
1500
+ return propType;
1501
+ }
1502
+
1503
+ // Returns a string that is postfixed to a warning about an invalid type.
1504
+ // For example, "undefined" or "of type array"
1505
+ function getPostfixForTypeWarning(value) {
1506
+ var type = getPreciseType(value);
1507
+ switch (type) {
1508
+ case 'array':
1509
+ case 'object':
1510
+ return 'an ' + type;
1511
+ case 'boolean':
1512
+ case 'date':
1513
+ case 'regexp':
1514
+ return 'a ' + type;
1515
+ default:
1516
+ return type;
1517
+ }
1518
+ }
1519
+
1520
+ // Returns class name of the object, if any.
1521
+ function getClassName(propValue) {
1522
+ if (!propValue.constructor || !propValue.constructor.name) {
1523
+ return ANONYMOUS;
1524
+ }
1525
+ return propValue.constructor.name;
1526
+ }
1527
+
1528
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1529
+ ReactPropTypes.PropTypes = ReactPropTypes;
1530
+
1531
+ return ReactPropTypes;
1532
+ };
1533
+
1534
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)));
1535
+
1536
+ /***/ })
1537
+ /******/ ]);
1441
1538
  });
1442
1539
 
1443
1540
  }(dist));
@@ -1484,9 +1581,7 @@ var useComparisonTable = function () {
1484
1581
  }
1485
1582
  var headerWidth = headerRef.current.getBoundingClientRect().width;
1486
1583
  var currentTabIndex = Math.round(headerRef.current.scrollLeft / headerWidth);
1487
- if (headerWidth < 544) {
1488
- setSelectedTabIndex(currentTabIndex);
1489
- }
1584
+ setSelectedTabIndex(currentTabIndex);
1490
1585
  };
1491
1586
  var debouncedTableScroll = lodash_debounce(handleTableScroll, 150);
1492
1587
  useEffect(function () {
@@ -1549,9 +1644,9 @@ var ComparisonTable = function (props) {
1549
1644
  : {})), (stickyHeaderTopOffset
1550
1645
  ? { '--stickyHeaderTopOffset': stickyHeaderTopOffset + "px" }
1551
1646
  : {})), (growContent ? { '--growContent': '100%' } : {}));
1552
- return (jsx(dist.exports.ScrollSync, { children: jsxs("div", __assign({ style: cssVariablesStyle }, { children: [jsx("div", __assign({ className: classnames(baseStyles.header, styles === null || styles === void 0 ? void 0 : styles.header) }, { children: jsx(dist.exports.ScrollSyncPane, { children: jsx("div", __assign({ className: classnames(baseStyles.container, (_a = {},
1647
+ return (jsx(dist.exports.ScrollSync, __assign({ onSync: scrollContainerCallbackRef }, { children: jsxs("div", __assign({ style: cssVariablesStyle }, { children: [jsx("div", __assign({ className: classnames(baseStyles.header, styles === null || styles === void 0 ? void 0 : styles.header) }, { children: jsx(dist.exports.ScrollSyncPane, { children: jsx("div", __assign({ className: classnames(baseStyles.container, (_a = {},
1553
1648
  _a[baseStyles.noScrollBars] = hideScrollBars,
1554
- _a)), ref: scrollContainerCallbackRef }, { children: jsx("div", __assign({ className: classnames(baseStyles['overflow-container']) }, { children: jsxs("div", __assign({ className: baseStyles['group-container'] }, { children: [jsx(TableArrows, { onClick: handleArrowsClick, active: {
1649
+ _a)) }, { children: jsx("div", __assign({ className: classnames(baseStyles['overflow-container']) }, { children: jsxs("div", __assign({ className: baseStyles['group-container'] }, { children: [jsx(TableArrows, { onClick: handleArrowsClick, active: {
1555
1650
  left: selectedTabIndex > 0,
1556
1651
  right: selectedTabIndex < data.length - 1,
1557
1652
  } }, void 0),
@@ -1581,7 +1676,7 @@ var ComparisonTable = function (props) {
1581
1676
  */
1582
1677
  headerGroup.label && !collapsibleSections && (jsx("div", __assign({ className: baseStyles['group-title'] }, { children: 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));
1583
1678
  }),
1584
- hideDetails && (jsx("div", __assign({ className: classnames(baseStyles['show-details-container'], baseStyles.sticky, 'mt48') }, { children: jsx("div", { children: 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', jsx(Chevron, { className: showMore ? '' : baseStyles['icon-inverted'] }, void 0)] }), void 0) }, void 0) }), void 0))] }), void 0)] }), void 0) }, void 0));
1679
+ hideDetails && (jsx("div", __assign({ className: classnames(baseStyles['show-details-container'], baseStyles.sticky, 'mt48') }, { children: jsx("div", { children: 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', jsx(Chevron, { className: showMore ? '' : baseStyles['icon-inverted'] }, void 0)] }), void 0) }, void 0) }), void 0))] }), void 0)] }), void 0) }), void 0));
1585
1680
  };
1586
1681
 
1587
1682
  export { ComparisonTable };