1 | (function webpackUniversalModuleDefinition(root, factory) {
|
2 | if(typeof exports === 'object' && typeof module === 'object')
|
3 | module.exports = factory(require("react"), require("react-dom"));
|
4 | else if(typeof define === 'function' && define.amd)
|
5 | define(["react", "react-dom"], factory);
|
6 | else if(typeof exports === 'object')
|
7 | exports["ReactBootstrap"] = factory(require("react"), require("react-dom"));
|
8 | else
|
9 | root["ReactBootstrap"] = factory(root["React"], root["ReactDOM"]);
|
10 | })(window, function(__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__4__) {
|
11 | return (function(modules) {
|
12 |
|
13 | var installedModules = {};
|
14 |
|
15 |
|
16 | function __webpack_require__(moduleId) {
|
17 |
|
18 |
|
19 | if(installedModules[moduleId]) {
|
20 | return installedModules[moduleId].exports;
|
21 | }
|
22 |
|
23 | var module = installedModules[moduleId] = {
|
24 | i: moduleId,
|
25 | l: false,
|
26 | exports: {}
|
27 | };
|
28 |
|
29 |
|
30 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31 |
|
32 |
|
33 | module.l = true;
|
34 |
|
35 |
|
36 | return module.exports;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 | __webpack_require__.m = modules;
|
42 |
|
43 |
|
44 | __webpack_require__.c = installedModules;
|
45 |
|
46 |
|
47 | __webpack_require__.d = function(exports, name, getter) {
|
48 | if(!__webpack_require__.o(exports, name)) {
|
49 | Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
50 | }
|
51 | };
|
52 |
|
53 |
|
54 | __webpack_require__.r = function(exports) {
|
55 | if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
56 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
57 | }
|
58 | Object.defineProperty(exports, '__esModule', { value: true });
|
59 | };
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | __webpack_require__.t = function(value, mode) {
|
67 | if(mode & 1) value = __webpack_require__(value);
|
68 | if(mode & 8) return value;
|
69 | if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
70 | var ns = Object.create(null);
|
71 | __webpack_require__.r(ns);
|
72 | Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
73 | if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
74 | return ns;
|
75 | };
|
76 |
|
77 |
|
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 |
|
87 | __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
88 |
|
89 |
|
90 | __webpack_require__.p = "";
|
91 |
|
92 |
|
93 |
|
94 | return __webpack_require__(__webpack_require__.s = 154);
|
95 | })
|
96 |
|
97 | ([
|
98 |
|
99 | (function(module, exports, __webpack_require__) {
|
100 |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 | if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else {
|
108 |
|
109 |
|
110 | module.exports = __webpack_require__(97)();
|
111 | }
|
112 |
|
113 | }),
|
114 |
|
115 | (function(module, exports) {
|
116 |
|
117 | module.exports = __WEBPACK_EXTERNAL_MODULE__1__;
|
118 |
|
119 | }),
|
120 |
|
121 | (function(module, exports, __webpack_require__) {
|
122 |
|
123 | var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; |
124 |
|
125 |
|
126 |
|
127 |
|
128 |
|
129 |
|
130 | (function () {
|
131 | 'use strict';
|
132 |
|
133 | var hasOwn = {}.hasOwnProperty;
|
134 |
|
135 | function classNames() {
|
136 | var classes = [];
|
137 |
|
138 | for (var i = 0; i < arguments.length; i++) {
|
139 | var arg = arguments[i];
|
140 | if (!arg) continue;
|
141 | var argType = typeof arg;
|
142 |
|
143 | if (argType === 'string' || argType === 'number') {
|
144 | classes.push(arg);
|
145 | } else if (Array.isArray(arg) && arg.length) {
|
146 | var inner = classNames.apply(null, arg);
|
147 |
|
148 | if (inner) {
|
149 | classes.push(inner);
|
150 | }
|
151 | } else if (argType === 'object') {
|
152 | for (var key in arg) {
|
153 | if (hasOwn.call(arg, key) && arg[key]) {
|
154 | classes.push(key);
|
155 | }
|
156 | }
|
157 | }
|
158 | }
|
159 |
|
160 | return classes.join(' ');
|
161 | }
|
162 |
|
163 | if (typeof module !== 'undefined' && module.exports) {
|
164 | classNames.default = classNames;
|
165 | module.exports = classNames;
|
166 | } else if (true) {
|
167 |
|
168 | !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
169 | return classNames;
|
170 | }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
171 | __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
172 | } else {}
|
173 | })();
|
174 |
|
175 | }),
|
176 |
|
177 | (function(module, exports, __webpack_require__) {
|
178 |
|
179 | "use strict";
|
180 |
|
181 |
|
182 | Object.defineProperty(exports, "__esModule", {
|
183 | value: true
|
184 | });
|
185 |
|
186 | var _react = __webpack_require__(1);
|
187 |
|
188 | var _react2 = _interopRequireDefault(_react);
|
189 |
|
190 | var _reactIs = __webpack_require__(104);
|
191 |
|
192 | var _createChainableTypeChecker = __webpack_require__(22);
|
193 |
|
194 | var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
|
195 |
|
196 | function _interopRequireDefault(obj) {
|
197 | return obj && obj.__esModule ? obj : {
|
198 | default: obj
|
199 | };
|
200 | }
|
201 |
|
202 | function elementType(props, propName, componentName, location, propFullName) {
|
203 | var propValue = props[propName];
|
204 |
|
205 | if (_react2.default.isValidElement(propValue)) {
|
206 | return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`,expected an element type (a string ') + ', component class, or function component).');
|
207 | }
|
208 |
|
209 | if (!(0, _reactIs.isValidElementType)(propValue)) {
|
210 | return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + ', component class, or function component).');
|
211 | }
|
212 |
|
213 | return null;
|
214 | }
|
215 |
|
216 | exports.default = (0, _createChainableTypeChecker2.default)(elementType);
|
217 | module.exports = exports['default'];
|
218 |
|
219 | }),
|
220 |
|
221 | (function(module, exports) {
|
222 |
|
223 | module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
|
224 |
|
225 | }),
|
226 |
|
227 | (function(module, exports, __webpack_require__) {
|
228 |
|
229 | "use strict";
|
230 |
|
231 |
|
232 | exports.__esModule = true;
|
233 | exports.default = uncontrollable;
|
234 |
|
235 | var _react = _interopRequireDefault(__webpack_require__(1));
|
236 |
|
237 | var _invariant = _interopRequireDefault(__webpack_require__(21));
|
238 |
|
239 | var Utils = _interopRequireWildcard(__webpack_require__(99));
|
240 |
|
241 | function _interopRequireWildcard(obj) {
|
242 | if (obj && obj.__esModule) {
|
243 | return obj;
|
244 | } else {
|
245 | var newObj = {};
|
246 |
|
247 | if (obj != null) {
|
248 | for (var key in obj) {
|
249 | if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
250 | var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};
|
251 |
|
252 | if (desc.get || desc.set) {
|
253 | Object.defineProperty(newObj, key, desc);
|
254 | } else {
|
255 | newObj[key] = obj[key];
|
256 | }
|
257 | }
|
258 | }
|
259 | }
|
260 |
|
261 | newObj.default = obj;
|
262 | return newObj;
|
263 | }
|
264 | }
|
265 |
|
266 | function _interopRequireDefault(obj) {
|
267 | return obj && obj.__esModule ? obj : {
|
268 | default: obj
|
269 | };
|
270 | }
|
271 |
|
272 | function _extends() {
|
273 | _extends = Object.assign || function (target) {
|
274 | for (var i = 1; i < arguments.length; i++) {
|
275 | var source = arguments[i];
|
276 |
|
277 | for (var key in source) {
|
278 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
279 | target[key] = source[key];
|
280 | }
|
281 | }
|
282 | }
|
283 |
|
284 | return target;
|
285 | };
|
286 |
|
287 | return _extends.apply(this, arguments);
|
288 | }
|
289 |
|
290 | function _inheritsLoose(subClass, superClass) {
|
291 | subClass.prototype = Object.create(superClass.prototype);
|
292 | subClass.prototype.constructor = subClass;
|
293 | subClass.__proto__ = superClass;
|
294 | }
|
295 |
|
296 | function uncontrollable(Component, controlledValues, methods) {
|
297 | if (methods === void 0) {
|
298 | methods = [];
|
299 | }
|
300 |
|
301 | var displayName = Component.displayName || Component.name || 'Component';
|
302 | var isCompositeComponent = Utils.isReactComponent(Component);
|
303 | var controlledProps = Object.keys(controlledValues);
|
304 | var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey);
|
305 | !(isCompositeComponent || !methods.length) ? false ? undefined : invariant(false) : void 0;
|
306 |
|
307 | var UncontrolledComponent =
|
308 |
|
309 | function (_React$Component) {
|
310 | _inheritsLoose(UncontrolledComponent, _React$Component);
|
311 |
|
312 | function UncontrolledComponent() {
|
313 | var _this;
|
314 |
|
315 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
316 | args[_key] = arguments[_key];
|
317 | }
|
318 |
|
319 | _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
320 | _this.handlers = Object.create(null);
|
321 | controlledProps.forEach(function (propName) {
|
322 | var handlerName = controlledValues[propName];
|
323 |
|
324 | var handleChange = function handleChange(value) {
|
325 | if (_this.props[handlerName]) {
|
326 | var _this$props;
|
327 |
|
328 | _this._notifying = true;
|
329 |
|
330 | for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
331 | args[_key2 - 1] = arguments[_key2];
|
332 | }
|
333 |
|
334 | (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args));
|
335 |
|
336 | _this._notifying = false;
|
337 | }
|
338 |
|
339 | _this._values[propName] = value;
|
340 | if (!_this.unmounted) _this.forceUpdate();
|
341 | };
|
342 |
|
343 | _this.handlers[handlerName] = handleChange;
|
344 | });
|
345 | if (isCompositeComponent) _this.attachRef = function (ref) {
|
346 | _this.inner = ref;
|
347 | };
|
348 | return _this;
|
349 | }
|
350 |
|
351 | var _proto = UncontrolledComponent.prototype;
|
352 |
|
353 | _proto.shouldComponentUpdate = function shouldComponentUpdate() {
|
354 |
|
355 | return !this._notifying;
|
356 | };
|
357 |
|
358 | _proto.componentWillMount = function componentWillMount() {
|
359 | var _this2 = this;
|
360 |
|
361 | var props = this.props;
|
362 | this._values = Object.create(null);
|
363 | controlledProps.forEach(function (key) {
|
364 | _this2._values[key] = props[Utils.defaultKey(key)];
|
365 | });
|
366 | };
|
367 |
|
368 | _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
369 | var _this3 = this;
|
370 |
|
371 | var props = this.props;
|
372 | controlledProps.forEach(function (key) {
|
373 | |
374 |
|
375 |
|
376 |
|
377 | if (!Utils.isProp(nextProps, key) && Utils.isProp(props, key)) {
|
378 | _this3._values[key] = nextProps[Utils.defaultKey(key)];
|
379 | }
|
380 | });
|
381 | };
|
382 |
|
383 | _proto.componentWillUnmount = function componentWillUnmount() {
|
384 | this.unmounted = true;
|
385 | };
|
386 |
|
387 | _proto.getControlledInstance = function getControlledInstance() {
|
388 | return this.inner;
|
389 | };
|
390 |
|
391 | _proto.render = function render() {
|
392 | var _this4 = this;
|
393 |
|
394 | var props = _extends({}, this.props);
|
395 |
|
396 | PROPS_TO_OMIT.forEach(function (prop) {
|
397 | delete props[prop];
|
398 | });
|
399 | var newProps = {};
|
400 | controlledProps.forEach(function (propName) {
|
401 | var propValue = _this4.props[propName];
|
402 | newProps[propName] = propValue !== undefined ? propValue : _this4._values[propName];
|
403 | });
|
404 | return _react.default.createElement(Component, _extends({}, props, newProps, this.handlers, {
|
405 | ref: this.attachRef
|
406 | }));
|
407 | };
|
408 |
|
409 | return UncontrolledComponent;
|
410 | }(_react.default.Component);
|
411 |
|
412 | UncontrolledComponent.displayName = "Uncontrolled(" + displayName + ")";
|
413 | UncontrolledComponent.propTypes = Utils.uncontrolledPropTypes(controlledValues, displayName);
|
414 | methods.forEach(function (method) {
|
415 | UncontrolledComponent.prototype[method] = function $proxiedMethod() {
|
416 | var _inner;
|
417 |
|
418 | return (_inner = this.inner)[method].apply(_inner, arguments);
|
419 | };
|
420 | });
|
421 | UncontrolledComponent.ControlledComponent = Component;
|
422 | |
423 |
|
424 |
|
425 |
|
426 |
|
427 | UncontrolledComponent.deferControlTo = function (newComponent, additions, nextMethods) {
|
428 | if (additions === void 0) {
|
429 | additions = {};
|
430 | }
|
431 |
|
432 | return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods);
|
433 | };
|
434 |
|
435 | return UncontrolledComponent;
|
436 | }
|
437 |
|
438 | module.exports = exports["default"];
|
439 |
|
440 | }),
|
441 |
|
442 | (function(module, exports) {
|
443 |
|
444 |
|
445 |
|
446 |
|
447 |
|
448 |
|
449 |
|
450 |
|
451 |
|
452 |
|
453 |
|
454 | function keyCode(searchInput) {
|
455 |
|
456 | if (searchInput && 'object' === typeof searchInput) {
|
457 | var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode;
|
458 | if (hasKeyCode) searchInput = hasKeyCode;
|
459 | }
|
460 |
|
461 |
|
462 | if ('number' === typeof searchInput) return names[searchInput];
|
463 |
|
464 | var search = String(searchInput);
|
465 |
|
466 | var foundNamedKey = codes[search.toLowerCase()];
|
467 | if (foundNamedKey) return foundNamedKey;
|
468 |
|
469 | var foundNamedKey = aliases[search.toLowerCase()];
|
470 | if (foundNamedKey) return foundNamedKey;
|
471 |
|
472 | if (search.length === 1) return search.charCodeAt(0);
|
473 | return undefined;
|
474 | }
|
475 |
|
476 |
|
477 |
|
478 |
|
479 |
|
480 |
|
481 |
|
482 |
|
483 |
|
484 |
|
485 | keyCode.isEventKey = function isEventKey(event, nameOrCode) {
|
486 | if (event && 'object' === typeof event) {
|
487 | var keyCode = event.which || event.keyCode || event.charCode;
|
488 |
|
489 | if (keyCode === null || keyCode === undefined) {
|
490 | return false;
|
491 | }
|
492 |
|
493 | if (typeof nameOrCode === 'string') {
|
494 |
|
495 | var foundNamedKey = codes[nameOrCode.toLowerCase()];
|
496 |
|
497 | if (foundNamedKey) {
|
498 | return foundNamedKey === keyCode;
|
499 | }
|
500 |
|
501 |
|
502 | var foundNamedKey = aliases[nameOrCode.toLowerCase()];
|
503 |
|
504 | if (foundNamedKey) {
|
505 | return foundNamedKey === keyCode;
|
506 | }
|
507 | } else if (typeof nameOrCode === 'number') {
|
508 | return nameOrCode === keyCode;
|
509 | }
|
510 |
|
511 | return false;
|
512 | }
|
513 | };
|
514 |
|
515 | exports = module.exports = keyCode;
|
516 |
|
517 |
|
518 |
|
519 |
|
520 |
|
521 |
|
522 | var codes = exports.code = exports.codes = {
|
523 | 'backspace': 8,
|
524 | 'tab': 9,
|
525 | 'enter': 13,
|
526 | 'shift': 16,
|
527 | 'ctrl': 17,
|
528 | 'alt': 18,
|
529 | 'pause/break': 19,
|
530 | 'caps lock': 20,
|
531 | 'esc': 27,
|
532 | 'space': 32,
|
533 | 'page up': 33,
|
534 | 'page down': 34,
|
535 | 'end': 35,
|
536 | 'home': 36,
|
537 | 'left': 37,
|
538 | 'up': 38,
|
539 | 'right': 39,
|
540 | 'down': 40,
|
541 | 'insert': 45,
|
542 | 'delete': 46,
|
543 | 'command': 91,
|
544 | 'left command': 91,
|
545 | 'right command': 93,
|
546 | 'numpad *': 106,
|
547 | 'numpad +': 107,
|
548 | 'numpad -': 109,
|
549 | 'numpad .': 110,
|
550 | 'numpad /': 111,
|
551 | 'num lock': 144,
|
552 | 'scroll lock': 145,
|
553 | 'my computer': 182,
|
554 | 'my calculator': 183,
|
555 | ';': 186,
|
556 | '=': 187,
|
557 | ',': 188,
|
558 | '-': 189,
|
559 | '.': 190,
|
560 | '/': 191,
|
561 | '`': 192,
|
562 | '[': 219,
|
563 | '\\': 220,
|
564 | ']': 221,
|
565 | "'": 222
|
566 |
|
567 | };
|
568 | var aliases = exports.aliases = {
|
569 | 'windows': 91,
|
570 | '⇧': 16,
|
571 | '⌥': 18,
|
572 | '⌃': 17,
|
573 | '⌘': 91,
|
574 | 'ctl': 17,
|
575 | 'control': 17,
|
576 | 'option': 18,
|
577 | 'pause': 19,
|
578 | 'break': 19,
|
579 | 'caps': 20,
|
580 | 'return': 13,
|
581 | 'escape': 27,
|
582 | 'spc': 32,
|
583 | 'spacebar': 32,
|
584 | 'pgup': 33,
|
585 | 'pgdn': 34,
|
586 | 'ins': 45,
|
587 | 'del': 46,
|
588 | 'cmd': 91
|
589 | |
590 |
|
591 |
|
592 |
|
593 |
|
594 | };
|
595 |
|
596 | for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32;
|
597 |
|
598 |
|
599 | for (var i = 48; i < 58; i++) codes[i - 48] = i;
|
600 |
|
601 |
|
602 | for (i = 1; i < 13; i++) codes['f' + i] = i + 111;
|
603 |
|
604 |
|
605 | for (i = 0; i < 10; i++) codes['numpad ' + i] = i + 96;
|
606 |
|
607 |
|
608 |
|
609 |
|
610 |
|
611 |
|
612 |
|
613 | var names = exports.names = exports.title = {};
|
614 |
|
615 |
|
616 | for (i in codes) names[codes[i]] = i;
|
617 |
|
618 |
|
619 | for (var alias in aliases) {
|
620 | codes[alias] = aliases[alias];
|
621 | }
|
622 |
|
623 | }),
|
624 |
|
625 | (function(module, exports, __webpack_require__) {
|
626 |
|
627 | "use strict";
|
628 |
|
629 |
|
630 |
|
631 |
|
632 |
|
633 |
|
634 |
|
635 |
|
636 |
|
637 |
|
638 |
|
639 |
|
640 |
|
641 |
|
642 |
|
643 |
|
644 | var warning = function () {};
|
645 |
|
646 | if (false) {}
|
647 |
|
648 | module.exports = warning;
|
649 |
|
650 | }),
|
651 |
|
652 | (function(module, exports) {
|
653 |
|
654 | var core = module.exports = {
|
655 | version: '2.5.7'
|
656 | };
|
657 | if (typeof __e == 'number') __e = core;
|
658 |
|
659 | }),
|
660 |
|
661 | (function(module, exports, __webpack_require__) {
|
662 |
|
663 | module.exports = __webpack_require__(102);
|
664 |
|
665 | }),
|
666 |
|
667 | (function(module, exports, __webpack_require__) {
|
668 |
|
669 | var global = __webpack_require__(19);
|
670 |
|
671 | var core = __webpack_require__(8);
|
672 |
|
673 | var ctx = __webpack_require__(56);
|
674 |
|
675 | var hide = __webpack_require__(27);
|
676 |
|
677 | var has = __webpack_require__(31);
|
678 |
|
679 | var PROTOTYPE = 'prototype';
|
680 |
|
681 | var $export = function (type, name, source) {
|
682 | var IS_FORCED = type & $export.F;
|
683 | var IS_GLOBAL = type & $export.G;
|
684 | var IS_STATIC = type & $export.S;
|
685 | var IS_PROTO = type & $export.P;
|
686 | var IS_BIND = type & $export.B;
|
687 | var IS_WRAP = type & $export.W;
|
688 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
|
689 | var expProto = exports[PROTOTYPE];
|
690 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
|
691 | var key, own, out;
|
692 | if (IS_GLOBAL) source = name;
|
693 |
|
694 | for (key in source) {
|
695 |
|
696 | own = !IS_FORCED && target && target[key] !== undefined;
|
697 | if (own && has(exports, key)) continue;
|
698 |
|
699 | out = own ? target[key] : source[key];
|
700 |
|
701 | exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
|
702 | : IS_BIND && own ? ctx(out, global)
|
703 | : IS_WRAP && target[key] == out ? function (C) {
|
704 | var F = function (a, b, c) {
|
705 | if (this instanceof C) {
|
706 | switch (arguments.length) {
|
707 | case 0:
|
708 | return new C();
|
709 |
|
710 | case 1:
|
711 | return new C(a);
|
712 |
|
713 | case 2:
|
714 | return new C(a, b);
|
715 | }
|
716 |
|
717 | return new C(a, b, c);
|
718 | }
|
719 |
|
720 | return C.apply(this, arguments);
|
721 | };
|
722 |
|
723 | F[PROTOTYPE] = C[PROTOTYPE];
|
724 | return F;
|
725 | }(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
|
726 |
|
727 | if (IS_PROTO) {
|
728 | (exports.virtual || (exports.virtual = {}))[key] = out;
|
729 |
|
730 | if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
|
731 | }
|
732 | }
|
733 | };
|
734 |
|
735 |
|
736 | $export.F = 1;
|
737 |
|
738 | $export.G = 2;
|
739 |
|
740 | $export.S = 4;
|
741 |
|
742 | $export.P = 8;
|
743 |
|
744 | $export.B = 16;
|
745 |
|
746 | $export.W = 32;
|
747 |
|
748 | $export.U = 64;
|
749 |
|
750 | $export.R = 128;
|
751 |
|
752 | module.exports = $export;
|
753 |
|
754 | }),
|
755 |
|
756 | (function(module, exports, __webpack_require__) {
|
757 |
|
758 | "use strict";
|
759 |
|
760 |
|
761 | exports.__esModule = true;
|
762 | exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;
|
763 |
|
764 | var _propTypes = __webpack_require__(0);
|
765 |
|
766 | var PropTypes = _interopRequireWildcard(_propTypes);
|
767 |
|
768 | var _react = __webpack_require__(1);
|
769 |
|
770 | var _react2 = _interopRequireDefault(_react);
|
771 |
|
772 | var _reactDom = __webpack_require__(4);
|
773 |
|
774 | var _reactDom2 = _interopRequireDefault(_reactDom);
|
775 |
|
776 | var _reactLifecyclesCompat = __webpack_require__(117);
|
777 |
|
778 | var _PropTypes = __webpack_require__(118);
|
779 |
|
780 | function _interopRequireDefault(obj) {
|
781 | return obj && obj.__esModule ? obj : {
|
782 | default: obj
|
783 | };
|
784 | }
|
785 |
|
786 | function _interopRequireWildcard(obj) {
|
787 | if (obj && obj.__esModule) {
|
788 | return obj;
|
789 | } else {
|
790 | var newObj = {};
|
791 |
|
792 | if (obj != null) {
|
793 | for (var key in obj) {
|
794 | if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
|
795 | }
|
796 | }
|
797 |
|
798 | newObj.default = obj;
|
799 | return newObj;
|
800 | }
|
801 | }
|
802 |
|
803 | function _objectWithoutProperties(obj, keys) {
|
804 | var target = {};
|
805 |
|
806 | for (var i in obj) {
|
807 | if (keys.indexOf(i) >= 0) continue;
|
808 | if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
809 | target[i] = obj[i];
|
810 | }
|
811 |
|
812 | return target;
|
813 | }
|
814 |
|
815 | function _classCallCheck(instance, Constructor) {
|
816 | if (!(instance instanceof Constructor)) {
|
817 | throw new TypeError("Cannot call a class as a function");
|
818 | }
|
819 | }
|
820 |
|
821 | function _possibleConstructorReturn(self, call) {
|
822 | if (!self) {
|
823 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
824 | }
|
825 |
|
826 | return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
827 | }
|
828 |
|
829 | function _inherits(subClass, superClass) {
|
830 | if (typeof superClass !== "function" && superClass !== null) {
|
831 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
832 | }
|
833 |
|
834 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
835 | constructor: {
|
836 | value: subClass,
|
837 | enumerable: false,
|
838 | writable: true,
|
839 | configurable: true
|
840 | }
|
841 | });
|
842 | if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
843 | }
|
844 |
|
845 | var UNMOUNTED = exports.UNMOUNTED = 'unmounted';
|
846 | var EXITED = exports.EXITED = 'exited';
|
847 | var ENTERING = exports.ENTERING = 'entering';
|
848 | var ENTERED = exports.ENTERED = 'entered';
|
849 | var EXITING = exports.EXITING = 'exiting';
|
850 |
|
851 |
|
852 |
|
853 |
|
854 |
|
855 |
|
856 |
|
857 |
|
858 |
|
859 |
|
860 |
|
861 |
|
862 |
|
863 |
|
864 |
|
865 |
|
866 |
|
867 |
|
868 |
|
869 |
|
870 |
|
871 |
|
872 |
|
873 |
|
874 |
|
875 |
|
876 |
|
877 |
|
878 |
|
879 |
|
880 |
|
881 |
|
882 |
|
883 |
|
884 |
|
885 |
|
886 |
|
887 |
|
888 |
|
889 |
|
890 |
|
891 |
|
892 |
|
893 |
|
894 |
|
895 |
|
896 |
|
897 |
|
898 |
|
899 |
|
900 |
|
901 |
|
902 |
|
903 |
|
904 |
|
905 |
|
906 |
|
907 |
|
908 |
|
909 |
|
910 |
|
911 |
|
912 |
|
913 |
|
914 |
|
915 |
|
916 |
|
917 |
|
918 |
|
919 |
|
920 |
|
921 |
|
922 |
|
923 |
|
924 |
|
925 |
|
926 |
|
927 |
|
928 |
|
929 |
|
930 |
|
931 |
|
932 |
|
933 |
|
934 |
|
935 |
|
936 |
|
937 |
|
938 |
|
939 |
|
940 |
|
941 |
|
942 |
|
943 |
|
944 |
|
945 |
|
946 |
|
947 |
|
948 |
|
949 |
|
950 |
|
951 | var Transition = function (_React$Component) {
|
952 | _inherits(Transition, _React$Component);
|
953 |
|
954 | function Transition(props, context) {
|
955 | _classCallCheck(this, Transition);
|
956 |
|
957 | var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));
|
958 |
|
959 | var parentGroup = context.transitionGroup;
|
960 |
|
961 | var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
|
962 | var initialStatus = void 0;
|
963 | _this.appearStatus = null;
|
964 |
|
965 | if (props.in) {
|
966 | if (appear) {
|
967 | initialStatus = EXITED;
|
968 | _this.appearStatus = ENTERING;
|
969 | } else {
|
970 | initialStatus = ENTERED;
|
971 | }
|
972 | } else {
|
973 | if (props.unmountOnExit || props.mountOnEnter) {
|
974 | initialStatus = UNMOUNTED;
|
975 | } else {
|
976 | initialStatus = EXITED;
|
977 | }
|
978 | }
|
979 |
|
980 | _this.state = {
|
981 | status: initialStatus
|
982 | };
|
983 | _this.nextCallback = null;
|
984 | return _this;
|
985 | }
|
986 |
|
987 | Transition.prototype.getChildContext = function getChildContext() {
|
988 | return {
|
989 | transitionGroup: null
|
990 |
|
991 | };
|
992 | };
|
993 |
|
994 | Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
|
995 | var nextIn = _ref.in;
|
996 |
|
997 | if (nextIn && prevState.status === UNMOUNTED) {
|
998 | return {
|
999 | status: EXITED
|
1000 | };
|
1001 | }
|
1002 |
|
1003 | return null;
|
1004 | };
|
1005 |
|
1006 |
|
1007 |
|
1008 |
|
1009 |
|
1010 |
|
1011 |
|
1012 |
|
1013 |
|
1014 |
|
1015 |
|
1016 |
|
1017 |
|
1018 |
|
1019 |
|
1020 |
|
1021 |
|
1022 | Transition.prototype.componentDidMount = function componentDidMount() {
|
1023 | this.updateStatus(true, this.appearStatus);
|
1024 | };
|
1025 |
|
1026 | Transition.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
|
1027 | var nextStatus = null;
|
1028 |
|
1029 | if (prevProps !== this.props) {
|
1030 | var status = this.state.status;
|
1031 |
|
1032 | if (this.props.in) {
|
1033 | if (status !== ENTERING && status !== ENTERED) {
|
1034 | nextStatus = ENTERING;
|
1035 | }
|
1036 | } else {
|
1037 | if (status === ENTERING || status === ENTERED) {
|
1038 | nextStatus = EXITING;
|
1039 | }
|
1040 | }
|
1041 | }
|
1042 |
|
1043 | this.updateStatus(false, nextStatus);
|
1044 | };
|
1045 |
|
1046 | Transition.prototype.componentWillUnmount = function componentWillUnmount() {
|
1047 | this.cancelNextCallback();
|
1048 | };
|
1049 |
|
1050 | Transition.prototype.getTimeouts = function getTimeouts() {
|
1051 | var timeout = this.props.timeout;
|
1052 | var exit = void 0,
|
1053 | enter = void 0,
|
1054 | appear = void 0;
|
1055 | exit = enter = appear = timeout;
|
1056 |
|
1057 | if (timeout != null && typeof timeout !== 'number') {
|
1058 | exit = timeout.exit;
|
1059 | enter = timeout.enter;
|
1060 | appear = timeout.appear;
|
1061 | }
|
1062 |
|
1063 | return {
|
1064 | exit: exit,
|
1065 | enter: enter,
|
1066 | appear: appear
|
1067 | };
|
1068 | };
|
1069 |
|
1070 | Transition.prototype.updateStatus = function updateStatus() {
|
1071 | var mounting = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
1072 | var nextStatus = arguments[1];
|
1073 |
|
1074 | if (nextStatus !== null) {
|
1075 |
|
1076 | this.cancelNextCallback();
|
1077 |
|
1078 | var node = _reactDom2.default.findDOMNode(this);
|
1079 |
|
1080 | if (nextStatus === ENTERING) {
|
1081 | this.performEnter(node, mounting);
|
1082 | } else {
|
1083 | this.performExit(node);
|
1084 | }
|
1085 | } else if (this.props.unmountOnExit && this.state.status === EXITED) {
|
1086 | this.setState({
|
1087 | status: UNMOUNTED
|
1088 | });
|
1089 | }
|
1090 | };
|
1091 |
|
1092 | Transition.prototype.performEnter = function performEnter(node, mounting) {
|
1093 | var _this2 = this;
|
1094 |
|
1095 | var enter = this.props.enter;
|
1096 | var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;
|
1097 | var timeouts = this.getTimeouts();
|
1098 |
|
1099 |
|
1100 | if (!mounting && !enter) {
|
1101 | this.safeSetState({
|
1102 | status: ENTERED
|
1103 | }, function () {
|
1104 | _this2.props.onEntered(node);
|
1105 | });
|
1106 | return;
|
1107 | }
|
1108 |
|
1109 | this.props.onEnter(node, appearing);
|
1110 | this.safeSetState({
|
1111 | status: ENTERING
|
1112 | }, function () {
|
1113 | _this2.props.onEntering(node, appearing);
|
1114 |
|
1115 |
|
1116 | _this2.onTransitionEnd(node, timeouts.enter, function () {
|
1117 | _this2.safeSetState({
|
1118 | status: ENTERED
|
1119 | }, function () {
|
1120 | _this2.props.onEntered(node, appearing);
|
1121 | });
|
1122 | });
|
1123 | });
|
1124 | };
|
1125 |
|
1126 | Transition.prototype.performExit = function performExit(node) {
|
1127 | var _this3 = this;
|
1128 |
|
1129 | var exit = this.props.exit;
|
1130 | var timeouts = this.getTimeouts();
|
1131 |
|
1132 | if (!exit) {
|
1133 | this.safeSetState({
|
1134 | status: EXITED
|
1135 | }, function () {
|
1136 | _this3.props.onExited(node);
|
1137 | });
|
1138 | return;
|
1139 | }
|
1140 |
|
1141 | this.props.onExit(node);
|
1142 | this.safeSetState({
|
1143 | status: EXITING
|
1144 | }, function () {
|
1145 | _this3.props.onExiting(node);
|
1146 |
|
1147 | _this3.onTransitionEnd(node, timeouts.exit, function () {
|
1148 | _this3.safeSetState({
|
1149 | status: EXITED
|
1150 | }, function () {
|
1151 | _this3.props.onExited(node);
|
1152 | });
|
1153 | });
|
1154 | });
|
1155 | };
|
1156 |
|
1157 | Transition.prototype.cancelNextCallback = function cancelNextCallback() {
|
1158 | if (this.nextCallback !== null) {
|
1159 | this.nextCallback.cancel();
|
1160 | this.nextCallback = null;
|
1161 | }
|
1162 | };
|
1163 |
|
1164 | Transition.prototype.safeSetState = function safeSetState(nextState, callback) {
|
1165 |
|
1166 |
|
1167 |
|
1168 | callback = this.setNextCallback(callback);
|
1169 | this.setState(nextState, callback);
|
1170 | };
|
1171 |
|
1172 | Transition.prototype.setNextCallback = function setNextCallback(callback) {
|
1173 | var _this4 = this;
|
1174 |
|
1175 | var active = true;
|
1176 |
|
1177 | this.nextCallback = function (event) {
|
1178 | if (active) {
|
1179 | active = false;
|
1180 | _this4.nextCallback = null;
|
1181 | callback(event);
|
1182 | }
|
1183 | };
|
1184 |
|
1185 | this.nextCallback.cancel = function () {
|
1186 | active = false;
|
1187 | };
|
1188 |
|
1189 | return this.nextCallback;
|
1190 | };
|
1191 |
|
1192 | Transition.prototype.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
|
1193 | this.setNextCallback(handler);
|
1194 |
|
1195 | if (node) {
|
1196 | if (this.props.addEndListener) {
|
1197 | this.props.addEndListener(node, this.nextCallback);
|
1198 | }
|
1199 |
|
1200 | if (timeout != null) {
|
1201 | setTimeout(this.nextCallback, timeout);
|
1202 | }
|
1203 | } else {
|
1204 | setTimeout(this.nextCallback, 0);
|
1205 | }
|
1206 | };
|
1207 |
|
1208 | Transition.prototype.render = function render() {
|
1209 | var status = this.state.status;
|
1210 |
|
1211 | if (status === UNMOUNTED) {
|
1212 | return null;
|
1213 | }
|
1214 |
|
1215 | var _props = this.props,
|
1216 | children = _props.children,
|
1217 | childProps = _objectWithoutProperties(_props, ['children']);
|
1218 |
|
1219 |
|
1220 | delete childProps.in;
|
1221 | delete childProps.mountOnEnter;
|
1222 | delete childProps.unmountOnExit;
|
1223 | delete childProps.appear;
|
1224 | delete childProps.enter;
|
1225 | delete childProps.exit;
|
1226 | delete childProps.timeout;
|
1227 | delete childProps.addEndListener;
|
1228 | delete childProps.onEnter;
|
1229 | delete childProps.onEntering;
|
1230 | delete childProps.onEntered;
|
1231 | delete childProps.onExit;
|
1232 | delete childProps.onExiting;
|
1233 | delete childProps.onExited;
|
1234 |
|
1235 | if (typeof children === 'function') {
|
1236 | return children(status, childProps);
|
1237 | }
|
1238 |
|
1239 | var child = _react2.default.Children.only(children);
|
1240 |
|
1241 | return _react2.default.cloneElement(child, childProps);
|
1242 | };
|
1243 |
|
1244 | return Transition;
|
1245 | }(_react2.default.Component);
|
1246 |
|
1247 | Transition.contextTypes = {
|
1248 | transitionGroup: PropTypes.object
|
1249 | };
|
1250 | Transition.childContextTypes = {
|
1251 | transitionGroup: function transitionGroup() {}
|
1252 | };
|
1253 | Transition.propTypes = false ? undefined : {};
|
1254 |
|
1255 | function noop() {}
|
1256 |
|
1257 | Transition.defaultProps = {
|
1258 | in: false,
|
1259 | mountOnEnter: false,
|
1260 | unmountOnExit: false,
|
1261 | appear: false,
|
1262 | enter: true,
|
1263 | exit: true,
|
1264 | onEnter: noop,
|
1265 | onEntering: noop,
|
1266 | onEntered: noop,
|
1267 | onExit: noop,
|
1268 | onExiting: noop,
|
1269 | onExited: noop
|
1270 | };
|
1271 | Transition.UNMOUNTED = 0;
|
1272 | Transition.EXITED = 1;
|
1273 | Transition.ENTERING = 2;
|
1274 | Transition.ENTERED = 3;
|
1275 | Transition.EXITING = 4;
|
1276 | exports.default = (0, _reactLifecyclesCompat.polyfill)(Transition);
|
1277 |
|
1278 | }),
|
1279 |
|
1280 | (function(module, exports, __webpack_require__) {
|
1281 |
|
1282 | "use strict";
|
1283 |
|
1284 |
|
1285 | Object.defineProperty(exports, "__esModule", {
|
1286 | value: true
|
1287 | });
|
1288 | exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
1289 | module.exports = exports['default'];
|
1290 |
|
1291 | }),
|
1292 |
|
1293 | (function(module, exports, __webpack_require__) {
|
1294 |
|
1295 | "use strict";
|
1296 |
|
1297 |
|
1298 | Object.defineProperty(exports, "__esModule", {
|
1299 | value: true
|
1300 | });
|
1301 |
|
1302 | var _inDOM = __webpack_require__(12);
|
1303 |
|
1304 | var _inDOM2 = _interopRequireDefault(_inDOM);
|
1305 |
|
1306 | function _interopRequireDefault(obj) {
|
1307 | return obj && obj.__esModule ? obj : {
|
1308 | default: obj
|
1309 | };
|
1310 | }
|
1311 |
|
1312 | exports.default = function () {
|
1313 |
|
1314 |
|
1315 | return _inDOM2.default ? function (context, node) {
|
1316 | if (context.contains) {
|
1317 | return context.contains(node);
|
1318 | } else if (context.compareDocumentPosition) {
|
1319 | return context === node || !!(context.compareDocumentPosition(node) & 16);
|
1320 | } else {
|
1321 | return fallback(context, node);
|
1322 | }
|
1323 | } : fallback;
|
1324 | }();
|
1325 |
|
1326 | function fallback(context, node) {
|
1327 | if (node) do {
|
1328 | if (node === context) return true;
|
1329 | } while (node = node.parentNode);
|
1330 | return false;
|
1331 | }
|
1332 |
|
1333 | module.exports = exports['default'];
|
1334 |
|
1335 | }),
|
1336 |
|
1337 | (function(module, exports, __webpack_require__) {
|
1338 |
|
1339 | "use strict";
|
1340 |
|
1341 |
|
1342 | Object.defineProperty(exports, "__esModule", {
|
1343 | value: true
|
1344 | });
|
1345 | exports.default = all;
|
1346 |
|
1347 | var _createChainableTypeChecker = __webpack_require__(22);
|
1348 |
|
1349 | var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
|
1350 |
|
1351 | function _interopRequireDefault(obj) {
|
1352 | return obj && obj.__esModule ? obj : {
|
1353 | default: obj
|
1354 | };
|
1355 | }
|
1356 |
|
1357 | function all() {
|
1358 | for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) {
|
1359 | validators[_key] = arguments[_key];
|
1360 | }
|
1361 |
|
1362 | function allPropTypes() {
|
1363 | for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
1364 | args[_key2] = arguments[_key2];
|
1365 | }
|
1366 |
|
1367 | var error = null;
|
1368 | validators.forEach(function (validator) {
|
1369 | if (error != null) {
|
1370 | return;
|
1371 | }
|
1372 |
|
1373 | var result = validator.apply(undefined, args);
|
1374 |
|
1375 | if (result != null) {
|
1376 | error = result;
|
1377 | }
|
1378 | });
|
1379 | return error;
|
1380 | }
|
1381 |
|
1382 | return (0, _createChainableTypeChecker2.default)(allPropTypes);
|
1383 | }
|
1384 |
|
1385 | module.exports = exports['default'];
|
1386 |
|
1387 | }),
|
1388 |
|
1389 | (function(module, exports, __webpack_require__) {
|
1390 |
|
1391 | "use strict";
|
1392 |
|
1393 |
|
1394 | Object.defineProperty(exports, "__esModule", {
|
1395 | value: true
|
1396 | });
|
1397 | exports.default = isRequiredForA11y;
|
1398 |
|
1399 | function isRequiredForA11y(validator) {
|
1400 | return function validate(props, propName, componentName, location, propFullName) {
|
1401 | var componentNameSafe = componentName || '<<anonymous>>';
|
1402 | var propFullNameSafe = propFullName || propName;
|
1403 |
|
1404 | if (props[propName] == null) {
|
1405 | return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.');
|
1406 | }
|
1407 |
|
1408 | for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
|
1409 | args[_key - 5] = arguments[_key];
|
1410 | }
|
1411 |
|
1412 | return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));
|
1413 | };
|
1414 | }
|
1415 |
|
1416 | module.exports = exports['default'];
|
1417 |
|
1418 | }),
|
1419 |
|
1420 | (function(module, exports, __webpack_require__) {
|
1421 |
|
1422 | var store = __webpack_require__(60)('wks');
|
1423 |
|
1424 | var uid = __webpack_require__(62);
|
1425 |
|
1426 | var Symbol = __webpack_require__(19).Symbol;
|
1427 |
|
1428 | var USE_SYMBOL = typeof Symbol == 'function';
|
1429 |
|
1430 | var $exports = module.exports = function (name) {
|
1431 | return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
|
1432 | };
|
1433 |
|
1434 | $exports.store = store;
|
1435 |
|
1436 | }),
|
1437 |
|
1438 | (function(module, exports, __webpack_require__) {
|
1439 |
|
1440 | "use strict";
|
1441 |
|
1442 |
|
1443 | Object.defineProperty(exports, "__esModule", {
|
1444 | value: true
|
1445 | });
|
1446 | exports.default = ownerDocument;
|
1447 |
|
1448 | function ownerDocument(node) {
|
1449 | return node && node.ownerDocument || document;
|
1450 | }
|
1451 |
|
1452 | module.exports = exports["default"];
|
1453 |
|
1454 | }),
|
1455 |
|
1456 | (function(module, exports, __webpack_require__) {
|
1457 |
|
1458 | "use strict";
|
1459 |
|
1460 |
|
1461 | Object.defineProperty(exports, "__esModule", {
|
1462 | value: true
|
1463 | });
|
1464 | exports.default = style;
|
1465 |
|
1466 | var _camelizeStyle = __webpack_require__(67);
|
1467 |
|
1468 | var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle);
|
1469 |
|
1470 | var _hyphenateStyle = __webpack_require__(108);
|
1471 |
|
1472 | var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle);
|
1473 |
|
1474 | var _getComputedStyle2 = __webpack_require__(110);
|
1475 |
|
1476 | var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2);
|
1477 |
|
1478 | var _removeStyle = __webpack_require__(111);
|
1479 |
|
1480 | var _removeStyle2 = _interopRequireDefault(_removeStyle);
|
1481 |
|
1482 | var _properties = __webpack_require__(46);
|
1483 |
|
1484 | var _isTransform = __webpack_require__(112);
|
1485 |
|
1486 | var _isTransform2 = _interopRequireDefault(_isTransform);
|
1487 |
|
1488 | function _interopRequireDefault(obj) {
|
1489 | return obj && obj.__esModule ? obj : {
|
1490 | default: obj
|
1491 | };
|
1492 | }
|
1493 |
|
1494 | function style(node, property, value) {
|
1495 | var css = '';
|
1496 | var transforms = '';
|
1497 | var props = property;
|
1498 |
|
1499 | if (typeof property === 'string') {
|
1500 | if (value === undefined) {
|
1501 | return node.style[(0, _camelizeStyle2.default)(property)] || (0, _getComputedStyle3.default)(node).getPropertyValue((0, _hyphenateStyle2.default)(property));
|
1502 | } else {
|
1503 | (props = {})[property] = value;
|
1504 | }
|
1505 | }
|
1506 |
|
1507 | Object.keys(props).forEach(function (key) {
|
1508 | var value = props[key];
|
1509 |
|
1510 | if (!value && value !== 0) {
|
1511 | (0, _removeStyle2.default)(node, (0, _hyphenateStyle2.default)(key));
|
1512 | } else if ((0, _isTransform2.default)(key)) {
|
1513 | transforms += key + '(' + value + ') ';
|
1514 | } else {
|
1515 | css += (0, _hyphenateStyle2.default)(key) + ': ' + value + ';';
|
1516 | }
|
1517 | });
|
1518 |
|
1519 | if (transforms) {
|
1520 | css += _properties.transform + ': ' + transforms + ';';
|
1521 | }
|
1522 |
|
1523 | node.style.cssText += ';' + css;
|
1524 | }
|
1525 |
|
1526 | module.exports = exports['default'];
|
1527 |
|
1528 | }),
|
1529 |
|
1530 | (function(module, exports) {
|
1531 |
|
1532 |
|
1533 | var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self
|
1534 | : Function('return this')();
|
1535 | if (typeof __g == 'number') __g = global;
|
1536 |
|
1537 | }),
|
1538 |
|
1539 | (function(module, exports, __webpack_require__) {
|
1540 |
|
1541 | "use strict";
|
1542 |
|
1543 |
|
1544 | exports.__esModule = true;
|
1545 |
|
1546 | exports.default = function (componentOrElement) {
|
1547 | return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement));
|
1548 | };
|
1549 |
|
1550 | var _reactDom = __webpack_require__(4);
|
1551 |
|
1552 | var _reactDom2 = _interopRequireDefault(_reactDom);
|
1553 |
|
1554 | var _ownerDocument = __webpack_require__(17);
|
1555 |
|
1556 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
1557 |
|
1558 | function _interopRequireDefault(obj) {
|
1559 | return obj && obj.__esModule ? obj : {
|
1560 | default: obj
|
1561 | };
|
1562 | }
|
1563 |
|
1564 | module.exports = exports['default'];
|
1565 |
|
1566 | }),
|
1567 |
|
1568 | (function(module, exports, __webpack_require__) {
|
1569 |
|
1570 | "use strict";
|
1571 |
|
1572 |
|
1573 |
|
1574 |
|
1575 |
|
1576 |
|
1577 |
|
1578 |
|
1579 |
|
1580 |
|
1581 |
|
1582 |
|
1583 |
|
1584 |
|
1585 |
|
1586 |
|
1587 |
|
1588 |
|
1589 | var invariant = function (condition, format, a, b, c, d, e, f) {
|
1590 | if (false) {}
|
1591 |
|
1592 | if (!condition) {
|
1593 | var error;
|
1594 |
|
1595 | if (format === undefined) {
|
1596 | error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
|
1597 | } else {
|
1598 | var args = [a, b, c, d, e, f];
|
1599 | var argIndex = 0;
|
1600 | error = new Error(format.replace(/%s/g, function () {
|
1601 | return args[argIndex++];
|
1602 | }));
|
1603 | error.name = 'Invariant Violation';
|
1604 | }
|
1605 |
|
1606 | error.framesToPop = 1;
|
1607 |
|
1608 | throw error;
|
1609 | }
|
1610 | };
|
1611 |
|
1612 | module.exports = invariant;
|
1613 |
|
1614 | }),
|
1615 |
|
1616 | (function(module, exports, __webpack_require__) {
|
1617 |
|
1618 | "use strict";
|
1619 |
|
1620 |
|
1621 | Object.defineProperty(exports, "__esModule", {
|
1622 | value: true
|
1623 | });
|
1624 | exports.default = createChainableTypeChecker;
|
1625 |
|
1626 |
|
1627 |
|
1628 |
|
1629 |
|
1630 |
|
1631 |
|
1632 |
|
1633 |
|
1634 |
|
1635 | function createChainableTypeChecker(validate) {
|
1636 | function checkType(isRequired, props, propName, componentName, location, propFullName) {
|
1637 | var componentNameSafe = componentName || '<<anonymous>>';
|
1638 | var propFullNameSafe = propFullName || propName;
|
1639 |
|
1640 | if (props[propName] == null) {
|
1641 | if (isRequired) {
|
1642 | return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
|
1643 | }
|
1644 |
|
1645 | return null;
|
1646 | }
|
1647 |
|
1648 | for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
|
1649 | args[_key - 6] = arguments[_key];
|
1650 | }
|
1651 |
|
1652 | return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
|
1653 | }
|
1654 |
|
1655 | var chainedCheckType = checkType.bind(null, false);
|
1656 | chainedCheckType.isRequired = checkType.bind(null, true);
|
1657 | return chainedCheckType;
|
1658 | }
|
1659 |
|
1660 | module.exports = exports['default'];
|
1661 |
|
1662 | }),
|
1663 |
|
1664 | (function(module, exports, __webpack_require__) {
|
1665 |
|
1666 | "use strict";
|
1667 |
|
1668 |
|
1669 | exports.__esModule = true;
|
1670 |
|
1671 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
1672 | return typeof obj;
|
1673 | } : function (obj) {
|
1674 | return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
1675 | };
|
1676 |
|
1677 | var _react = __webpack_require__(1);
|
1678 |
|
1679 | var _react2 = _interopRequireDefault(_react);
|
1680 |
|
1681 | var _createChainableTypeChecker = __webpack_require__(153);
|
1682 |
|
1683 | var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
|
1684 |
|
1685 | function _interopRequireDefault(obj) {
|
1686 | return obj && obj.__esModule ? obj : {
|
1687 | default: obj
|
1688 | };
|
1689 | }
|
1690 |
|
1691 | function elementType(props, propName, componentName, location, propFullName) {
|
1692 | var propValue = props[propName];
|
1693 | var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue);
|
1694 |
|
1695 | if (_react2.default.isValidElement(propValue)) {
|
1696 | return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).');
|
1697 | }
|
1698 |
|
1699 | if (propType !== 'function' && propType !== 'string') {
|
1700 | return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).');
|
1701 | }
|
1702 |
|
1703 | return null;
|
1704 | }
|
1705 |
|
1706 | exports.default = (0, _createChainableTypeChecker2.default)(elementType);
|
1707 |
|
1708 | }),
|
1709 |
|
1710 | (function(module, exports, __webpack_require__) {
|
1711 |
|
1712 | "use strict";
|
1713 |
|
1714 |
|
1715 | exports.__esModule = true;
|
1716 |
|
1717 | var _extends = Object.assign || function (target) {
|
1718 | for (var i = 1; i < arguments.length; i++) {
|
1719 | var source = arguments[i];
|
1720 |
|
1721 | for (var key in source) {
|
1722 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
1723 | target[key] = source[key];
|
1724 | }
|
1725 | }
|
1726 | }
|
1727 |
|
1728 | return target;
|
1729 | };
|
1730 |
|
1731 | var _activeElement = __webpack_require__(50);
|
1732 |
|
1733 | var _activeElement2 = _interopRequireDefault(_activeElement);
|
1734 |
|
1735 | var _contains = __webpack_require__(13);
|
1736 |
|
1737 | var _contains2 = _interopRequireDefault(_contains);
|
1738 |
|
1739 | var _inDOM = __webpack_require__(12);
|
1740 |
|
1741 | var _inDOM2 = _interopRequireDefault(_inDOM);
|
1742 |
|
1743 | var _propTypes = __webpack_require__(0);
|
1744 |
|
1745 | var _propTypes2 = _interopRequireDefault(_propTypes);
|
1746 |
|
1747 | var _componentOrElement = __webpack_require__(35);
|
1748 |
|
1749 | var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
|
1750 |
|
1751 | var _deprecated = __webpack_require__(136);
|
1752 |
|
1753 | var _deprecated2 = _interopRequireDefault(_deprecated);
|
1754 |
|
1755 | var _elementType = __webpack_require__(3);
|
1756 |
|
1757 | var _elementType2 = _interopRequireDefault(_elementType);
|
1758 |
|
1759 | var _react = __webpack_require__(1);
|
1760 |
|
1761 | var _react2 = _interopRequireDefault(_react);
|
1762 |
|
1763 | var _reactDom = __webpack_require__(4);
|
1764 |
|
1765 | var _reactDom2 = _interopRequireDefault(_reactDom);
|
1766 |
|
1767 | var _warning = __webpack_require__(7);
|
1768 |
|
1769 | var _warning2 = _interopRequireDefault(_warning);
|
1770 |
|
1771 | var _ModalManager = __webpack_require__(137);
|
1772 |
|
1773 | var _ModalManager2 = _interopRequireDefault(_ModalManager);
|
1774 |
|
1775 | var _Portal = __webpack_require__(72);
|
1776 |
|
1777 | var _Portal2 = _interopRequireDefault(_Portal);
|
1778 |
|
1779 | var _RefHolder = __webpack_require__(143);
|
1780 |
|
1781 | var _RefHolder2 = _interopRequireDefault(_RefHolder);
|
1782 |
|
1783 | var _addEventListener = __webpack_require__(70);
|
1784 |
|
1785 | var _addEventListener2 = _interopRequireDefault(_addEventListener);
|
1786 |
|
1787 | var _addFocusListener = __webpack_require__(144);
|
1788 |
|
1789 | var _addFocusListener2 = _interopRequireDefault(_addFocusListener);
|
1790 |
|
1791 | var _getContainer = __webpack_require__(37);
|
1792 |
|
1793 | var _getContainer2 = _interopRequireDefault(_getContainer);
|
1794 |
|
1795 | var _ownerDocument = __webpack_require__(20);
|
1796 |
|
1797 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
1798 |
|
1799 | function _interopRequireDefault(obj) {
|
1800 | return obj && obj.__esModule ? obj : {
|
1801 | default: obj
|
1802 | };
|
1803 | }
|
1804 |
|
1805 | function _classCallCheck(instance, Constructor) {
|
1806 | if (!(instance instanceof Constructor)) {
|
1807 | throw new TypeError("Cannot call a class as a function");
|
1808 | }
|
1809 | }
|
1810 |
|
1811 | function _possibleConstructorReturn(self, call) {
|
1812 | if (!self) {
|
1813 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
1814 | }
|
1815 |
|
1816 | return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
1817 | }
|
1818 |
|
1819 | function _inherits(subClass, superClass) {
|
1820 | if (typeof superClass !== "function" && superClass !== null) {
|
1821 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
1822 | }
|
1823 |
|
1824 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
1825 | constructor: {
|
1826 | value: subClass,
|
1827 | enumerable: false,
|
1828 | writable: true,
|
1829 | configurable: true
|
1830 | }
|
1831 | });
|
1832 | if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
1833 | }
|
1834 |
|
1835 |
|
1836 |
|
1837 | var modalManager = new _ModalManager2.default();
|
1838 |
|
1839 |
|
1840 |
|
1841 |
|
1842 |
|
1843 |
|
1844 |
|
1845 |
|
1846 |
|
1847 |
|
1848 |
|
1849 |
|
1850 |
|
1851 |
|
1852 |
|
1853 |
|
1854 |
|
1855 |
|
1856 |
|
1857 |
|
1858 |
|
1859 | var Modal = function (_React$Component) {
|
1860 | _inherits(Modal, _React$Component);
|
1861 |
|
1862 | function Modal() {
|
1863 | var _temp, _this, _ret;
|
1864 |
|
1865 | _classCallCheck(this, Modal);
|
1866 |
|
1867 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
1868 | args[_key] = arguments[_key];
|
1869 | }
|
1870 |
|
1871 | return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), _possibleConstructorReturn(_this, _ret);
|
1872 | }
|
1873 |
|
1874 | Modal.prototype.omitProps = function omitProps(props, propTypes) {
|
1875 | var keys = Object.keys(props);
|
1876 | var newProps = {};
|
1877 | keys.map(function (prop) {
|
1878 | if (!Object.prototype.hasOwnProperty.call(propTypes, prop)) {
|
1879 | newProps[prop] = props[prop];
|
1880 | }
|
1881 | });
|
1882 | return newProps;
|
1883 | };
|
1884 |
|
1885 | Modal.prototype.render = function render() {
|
1886 | var _props = this.props,
|
1887 | show = _props.show,
|
1888 | container = _props.container,
|
1889 | children = _props.children,
|
1890 | Transition = _props.transition,
|
1891 | backdrop = _props.backdrop,
|
1892 | className = _props.className,
|
1893 | style = _props.style,
|
1894 | onExit = _props.onExit,
|
1895 | onExiting = _props.onExiting,
|
1896 | onEnter = _props.onEnter,
|
1897 | onEntering = _props.onEntering,
|
1898 | onEntered = _props.onEntered;
|
1899 |
|
1900 | var dialog = _react2.default.Children.only(children);
|
1901 |
|
1902 | var filteredProps = this.omitProps(this.props, Modal.propTypes);
|
1903 | var mountModal = show || Transition && !this.state.exited;
|
1904 |
|
1905 | if (!mountModal) {
|
1906 | return null;
|
1907 | }
|
1908 |
|
1909 | var _dialog$props = dialog.props,
|
1910 | role = _dialog$props.role,
|
1911 | tabIndex = _dialog$props.tabIndex;
|
1912 |
|
1913 | if (role === undefined || tabIndex === undefined) {
|
1914 | dialog = (0, _react.cloneElement)(dialog, {
|
1915 | role: role === undefined ? 'document' : role,
|
1916 | tabIndex: tabIndex == null ? '-1' : tabIndex
|
1917 | });
|
1918 | }
|
1919 |
|
1920 | if (Transition) {
|
1921 | dialog = _react2.default.createElement(Transition, {
|
1922 | appear: true,
|
1923 | unmountOnExit: true,
|
1924 | 'in': show,
|
1925 | onExit: onExit,
|
1926 | onExiting: onExiting,
|
1927 | onExited: this.handleHidden,
|
1928 | onEnter: onEnter,
|
1929 | onEntering: onEntering,
|
1930 | onEntered: onEntered
|
1931 | }, dialog);
|
1932 | }
|
1933 |
|
1934 | return _react2.default.createElement(_Portal2.default, {
|
1935 | ref: this.setMountNode,
|
1936 | container: container,
|
1937 | onRendered: this.onPortalRendered
|
1938 | }, _react2.default.createElement('div', _extends({
|
1939 | ref: this.setModalNodeRef,
|
1940 | role: role || 'dialog'
|
1941 | }, filteredProps, {
|
1942 | style: style,
|
1943 | className: className
|
1944 | }), backdrop && this.renderBackdrop(), _react2.default.createElement(_RefHolder2.default, {
|
1945 | ref: this.setDialogRef
|
1946 | }, dialog)));
|
1947 | };
|
1948 |
|
1949 | Modal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
1950 | if (nextProps.show) {
|
1951 | this.setState({
|
1952 | exited: false
|
1953 | });
|
1954 | } else if (!nextProps.transition) {
|
1955 |
|
1956 | this.setState({
|
1957 | exited: true
|
1958 | });
|
1959 | }
|
1960 | };
|
1961 |
|
1962 | Modal.prototype.componentWillUpdate = function componentWillUpdate(nextProps) {
|
1963 | if (!this.props.show && nextProps.show) {
|
1964 | this.checkForFocus();
|
1965 | }
|
1966 | };
|
1967 |
|
1968 | Modal.prototype.componentDidMount = function componentDidMount() {
|
1969 | this._isMounted = true;
|
1970 |
|
1971 | if (this.props.show) {
|
1972 | this.onShow();
|
1973 | }
|
1974 | };
|
1975 |
|
1976 | Modal.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
|
1977 | var transition = this.props.transition;
|
1978 |
|
1979 | if (prevProps.show && !this.props.show && !transition) {
|
1980 |
|
1981 | this.onHide();
|
1982 | } else if (!prevProps.show && this.props.show) {
|
1983 | this.onShow();
|
1984 | }
|
1985 | };
|
1986 |
|
1987 | Modal.prototype.componentWillUnmount = function componentWillUnmount() {
|
1988 | var _props2 = this.props,
|
1989 | show = _props2.show,
|
1990 | transition = _props2.transition;
|
1991 | this._isMounted = false;
|
1992 |
|
1993 | if (show || transition && !this.state.exited) {
|
1994 | this.onHide();
|
1995 | }
|
1996 | };
|
1997 |
|
1998 | Modal.prototype.autoFocus = function autoFocus() {
|
1999 | if (!this.props.autoFocus) {
|
2000 | return;
|
2001 | }
|
2002 |
|
2003 | var dialogElement = this.getDialogElement();
|
2004 | var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(this));
|
2005 |
|
2006 | if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) {
|
2007 | this.lastFocus = currentActiveElement;
|
2008 |
|
2009 | if (!dialogElement.hasAttribute('tabIndex')) {
|
2010 | (0, _warning2.default)(false, 'The modal content node does not accept focus. For the benefit of ' + 'assistive technologies, the tabIndex of the node is being set ' + 'to "-1".');
|
2011 | dialogElement.setAttribute('tabIndex', -1);
|
2012 | }
|
2013 |
|
2014 | dialogElement.focus();
|
2015 | }
|
2016 | };
|
2017 |
|
2018 | Modal.prototype.restoreLastFocus = function restoreLastFocus() {
|
2019 |
|
2020 | if (this.lastFocus && this.lastFocus.focus) {
|
2021 | this.lastFocus.focus();
|
2022 | this.lastFocus = null;
|
2023 | }
|
2024 | };
|
2025 |
|
2026 | Modal.prototype.getDialogElement = function getDialogElement() {
|
2027 | return _reactDom2.default.findDOMNode(this.dialog);
|
2028 | };
|
2029 |
|
2030 | Modal.prototype.isTopModal = function isTopModal() {
|
2031 | return this.props.manager.isTopModal(this);
|
2032 | };
|
2033 |
|
2034 | return Modal;
|
2035 | }(_react2.default.Component);
|
2036 |
|
2037 | Modal.propTypes = _extends({}, _Portal2.default.propTypes, {
|
2038 | |
2039 |
|
2040 |
|
2041 | show: _propTypes2.default.bool,
|
2042 |
|
2043 | |
2044 |
|
2045 |
|
2046 |
|
2047 |
|
2048 |
|
2049 | container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
|
2050 |
|
2051 | |
2052 |
|
2053 |
|
2054 | onShow: _propTypes2.default.func,
|
2055 |
|
2056 | |
2057 |
|
2058 |
|
2059 |
|
2060 |
|
2061 |
|
2062 | onHide: _propTypes2.default.func,
|
2063 |
|
2064 | |
2065 |
|
2066 |
|
2067 | backdrop: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.oneOf(['static'])]),
|
2068 |
|
2069 | |
2070 |
|
2071 |
|
2072 |
|
2073 |
|
2074 |
|
2075 |
|
2076 |
|
2077 | renderBackdrop: _propTypes2.default.func,
|
2078 |
|
2079 | |
2080 |
|
2081 |
|
2082 | onEscapeKeyDown: _propTypes2.default.func,
|
2083 |
|
2084 | |
2085 |
|
2086 |
|
2087 |
|
2088 |
|
2089 | onEscapeKeyUp: (0, _deprecated2.default)(_propTypes2.default.func, 'Please use onEscapeKeyDown instead for consistency'),
|
2090 |
|
2091 | |
2092 |
|
2093 |
|
2094 | onBackdropClick: _propTypes2.default.func,
|
2095 |
|
2096 | |
2097 |
|
2098 |
|
2099 | backdropStyle: _propTypes2.default.object,
|
2100 |
|
2101 | |
2102 |
|
2103 |
|
2104 | backdropClassName: _propTypes2.default.string,
|
2105 |
|
2106 | |
2107 |
|
2108 |
|
2109 |
|
2110 | containerClassName: _propTypes2.default.string,
|
2111 |
|
2112 | |
2113 |
|
2114 |
|
2115 | keyboard: _propTypes2.default.bool,
|
2116 |
|
2117 | |
2118 |
|
2119 |
|
2120 |
|
2121 | transition: _elementType2.default,
|
2122 |
|
2123 | |
2124 |
|
2125 |
|
2126 |
|
2127 | backdropTransition: _elementType2.default,
|
2128 |
|
2129 | |
2130 |
|
2131 |
|
2132 |
|
2133 |
|
2134 |
|
2135 |
|
2136 |
|
2137 | autoFocus: _propTypes2.default.bool,
|
2138 |
|
2139 | |
2140 |
|
2141 |
|
2142 |
|
2143 |
|
2144 |
|
2145 | enforceFocus: _propTypes2.default.bool,
|
2146 |
|
2147 | |
2148 |
|
2149 |
|
2150 |
|
2151 | restoreFocus: _propTypes2.default.bool,
|
2152 |
|
2153 | |
2154 |
|
2155 |
|
2156 | onEnter: _propTypes2.default.func,
|
2157 |
|
2158 | |
2159 |
|
2160 |
|
2161 | onEntering: _propTypes2.default.func,
|
2162 |
|
2163 | |
2164 |
|
2165 |
|
2166 | onEntered: _propTypes2.default.func,
|
2167 |
|
2168 | |
2169 |
|
2170 |
|
2171 | onExit: _propTypes2.default.func,
|
2172 |
|
2173 | |
2174 |
|
2175 |
|
2176 | onExiting: _propTypes2.default.func,
|
2177 |
|
2178 | |
2179 |
|
2180 |
|
2181 | onExited: _propTypes2.default.func,
|
2182 |
|
2183 | |
2184 |
|
2185 |
|
2186 |
|
2187 | manager: _propTypes2.default.object.isRequired
|
2188 | });
|
2189 | Modal.defaultProps = {
|
2190 | show: false,
|
2191 | backdrop: true,
|
2192 | keyboard: true,
|
2193 | autoFocus: true,
|
2194 | enforceFocus: true,
|
2195 | restoreFocus: true,
|
2196 | onHide: function onHide() {},
|
2197 | manager: modalManager,
|
2198 | renderBackdrop: function renderBackdrop(props) {
|
2199 | return _react2.default.createElement('div', props);
|
2200 | }
|
2201 | };
|
2202 |
|
2203 | var _initialiseProps = function _initialiseProps() {
|
2204 | var _this2 = this;
|
2205 |
|
2206 | this.state = {
|
2207 | exited: !this.props.show
|
2208 | };
|
2209 |
|
2210 | this.renderBackdrop = function () {
|
2211 | var _props3 = _this2.props,
|
2212 | backdropStyle = _props3.backdropStyle,
|
2213 | backdropClassName = _props3.backdropClassName,
|
2214 | renderBackdrop = _props3.renderBackdrop,
|
2215 | Transition = _props3.backdropTransition;
|
2216 |
|
2217 | var backdropRef = function backdropRef(ref) {
|
2218 | return _this2.backdrop = ref;
|
2219 | };
|
2220 |
|
2221 | var backdrop = renderBackdrop({
|
2222 | ref: backdropRef,
|
2223 | style: backdropStyle,
|
2224 | className: backdropClassName,
|
2225 | onClick: _this2.handleBackdropClick
|
2226 | });
|
2227 |
|
2228 | if (Transition) {
|
2229 | backdrop = _react2.default.createElement(Transition, {
|
2230 | appear: true,
|
2231 | 'in': _this2.props.show
|
2232 | }, backdrop);
|
2233 | }
|
2234 |
|
2235 | return backdrop;
|
2236 | };
|
2237 |
|
2238 | this.onPortalRendered = function () {
|
2239 | _this2.autoFocus();
|
2240 |
|
2241 | if (_this2.props.onShow) {
|
2242 | _this2.props.onShow();
|
2243 | }
|
2244 | };
|
2245 |
|
2246 | this.onShow = function () {
|
2247 | var doc = (0, _ownerDocument2.default)(_this2);
|
2248 | var container = (0, _getContainer2.default)(_this2.props.container, doc.body);
|
2249 |
|
2250 | _this2.props.manager.add(_this2, container, _this2.props.containerClassName);
|
2251 |
|
2252 | _this2._onDocumentKeydownListener = (0, _addEventListener2.default)(doc, 'keydown', _this2.handleDocumentKeyDown);
|
2253 | _this2._onDocumentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this2.handleDocumentKeyUp);
|
2254 | _this2._onFocusinListener = (0, _addFocusListener2.default)(_this2.enforceFocus);
|
2255 | };
|
2256 |
|
2257 | this.onHide = function () {
|
2258 | _this2.props.manager.remove(_this2);
|
2259 |
|
2260 | _this2._onDocumentKeydownListener.remove();
|
2261 |
|
2262 | _this2._onDocumentKeyupListener.remove();
|
2263 |
|
2264 | _this2._onFocusinListener.remove();
|
2265 |
|
2266 | if (_this2.props.restoreFocus) {
|
2267 | _this2.restoreLastFocus();
|
2268 | }
|
2269 | };
|
2270 |
|
2271 | this.setMountNode = function (ref) {
|
2272 | _this2.mountNode = ref ? ref.getMountNode() : ref;
|
2273 | };
|
2274 |
|
2275 | this.setModalNodeRef = function (ref) {
|
2276 | _this2.modalNode = ref;
|
2277 | };
|
2278 |
|
2279 | this.setDialogRef = function (ref) {
|
2280 | _this2.dialog = ref;
|
2281 | };
|
2282 |
|
2283 | this.handleHidden = function () {
|
2284 | _this2.setState({
|
2285 | exited: true
|
2286 | });
|
2287 |
|
2288 | _this2.onHide();
|
2289 |
|
2290 | if (_this2.props.onExited) {
|
2291 | var _props4;
|
2292 |
|
2293 | (_props4 = _this2.props).onExited.apply(_props4, arguments);
|
2294 | }
|
2295 | };
|
2296 |
|
2297 | this.handleBackdropClick = function (e) {
|
2298 | if (e.target !== e.currentTarget) {
|
2299 | return;
|
2300 | }
|
2301 |
|
2302 | if (_this2.props.onBackdropClick) {
|
2303 | _this2.props.onBackdropClick(e);
|
2304 | }
|
2305 |
|
2306 | if (_this2.props.backdrop === true) {
|
2307 | _this2.props.onHide();
|
2308 | }
|
2309 | };
|
2310 |
|
2311 | this.handleDocumentKeyDown = function (e) {
|
2312 | if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) {
|
2313 | if (_this2.props.onEscapeKeyDown) {
|
2314 | _this2.props.onEscapeKeyDown(e);
|
2315 | }
|
2316 |
|
2317 | _this2.props.onHide();
|
2318 | }
|
2319 | };
|
2320 |
|
2321 | this.handleDocumentKeyUp = function (e) {
|
2322 | if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) {
|
2323 | if (_this2.props.onEscapeKeyUp) {
|
2324 | _this2.props.onEscapeKeyUp(e);
|
2325 | }
|
2326 | }
|
2327 | };
|
2328 |
|
2329 | this.checkForFocus = function () {
|
2330 | if (_inDOM2.default) {
|
2331 | _this2.lastFocus = (0, _activeElement2.default)();
|
2332 | }
|
2333 | };
|
2334 |
|
2335 | this.enforceFocus = function () {
|
2336 | if (!_this2.props.enforceFocus || !_this2._isMounted || !_this2.isTopModal()) {
|
2337 | return;
|
2338 | }
|
2339 |
|
2340 | var dialogElement = _this2.getDialogElement();
|
2341 |
|
2342 | var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(_this2));
|
2343 |
|
2344 | if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) {
|
2345 | dialogElement.focus();
|
2346 | }
|
2347 | };
|
2348 | };
|
2349 |
|
2350 | Modal.Manager = _ModalManager2.default;
|
2351 | exports.default = Modal;
|
2352 | module.exports = exports['default'];
|
2353 |
|
2354 | }),
|
2355 |
|
2356 | (function(module, exports) {
|
2357 |
|
2358 | module.exports = function (exec) {
|
2359 | try {
|
2360 | return !!exec();
|
2361 | } catch (e) {
|
2362 | return true;
|
2363 | }
|
2364 | };
|
2365 |
|
2366 | }),
|
2367 |
|
2368 | (function(module, exports, __webpack_require__) {
|
2369 |
|
2370 | module.exports = __webpack_require__(100);
|
2371 |
|
2372 | }),
|
2373 |
|
2374 | (function(module, exports, __webpack_require__) {
|
2375 |
|
2376 | var dP = __webpack_require__(28);
|
2377 |
|
2378 | var createDesc = __webpack_require__(41);
|
2379 |
|
2380 | module.exports = __webpack_require__(30) ? function (object, key, value) {
|
2381 | return dP.f(object, key, createDesc(1, value));
|
2382 | } : function (object, key, value) {
|
2383 | object[key] = value;
|
2384 | return object;
|
2385 | };
|
2386 |
|
2387 | }),
|
2388 |
|
2389 | (function(module, exports, __webpack_require__) {
|
2390 |
|
2391 | var anObject = __webpack_require__(29);
|
2392 |
|
2393 | var IE8_DOM_DEFINE = __webpack_require__(83);
|
2394 |
|
2395 | var toPrimitive = __webpack_require__(84);
|
2396 |
|
2397 | var dP = Object.defineProperty;
|
2398 | exports.f = __webpack_require__(30) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
2399 | anObject(O);
|
2400 | P = toPrimitive(P, true);
|
2401 | anObject(Attributes);
|
2402 | if (IE8_DOM_DEFINE) try {
|
2403 | return dP(O, P, Attributes);
|
2404 | } catch (e) {
|
2405 |
|
2406 | }
|
2407 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
2408 | if ('value' in Attributes) O[P] = Attributes.value;
|
2409 | return O;
|
2410 | };
|
2411 |
|
2412 | }),
|
2413 |
|
2414 | (function(module, exports, __webpack_require__) {
|
2415 |
|
2416 | var isObject = __webpack_require__(40);
|
2417 |
|
2418 | module.exports = function (it) {
|
2419 | if (!isObject(it)) throw TypeError(it + ' is not an object!');
|
2420 | return it;
|
2421 | };
|
2422 |
|
2423 | }),
|
2424 |
|
2425 | (function(module, exports, __webpack_require__) {
|
2426 |
|
2427 |
|
2428 | module.exports = !__webpack_require__(25)(function () {
|
2429 | return Object.defineProperty({}, 'a', {
|
2430 | get: function () {
|
2431 | return 7;
|
2432 | }
|
2433 | }).a != 7;
|
2434 | });
|
2435 |
|
2436 | }),
|
2437 |
|
2438 | (function(module, exports) {
|
2439 |
|
2440 | var hasOwnProperty = {}.hasOwnProperty;
|
2441 |
|
2442 | module.exports = function (it, key) {
|
2443 | return hasOwnProperty.call(it, key);
|
2444 | };
|
2445 |
|
2446 | }),
|
2447 |
|
2448 | (function(module, exports, __webpack_require__) {
|
2449 |
|
2450 |
|
2451 | var $keys = __webpack_require__(86);
|
2452 |
|
2453 | var enumBugKeys = __webpack_require__(63);
|
2454 |
|
2455 | module.exports = Object.keys || function keys(O) {
|
2456 | return $keys(O, enumBugKeys);
|
2457 | };
|
2458 |
|
2459 | }),
|
2460 |
|
2461 | (function(module, exports) {
|
2462 |
|
2463 |
|
2464 | module.exports = function (it) {
|
2465 | if (it == undefined) throw TypeError("Can't call method on " + it);
|
2466 | return it;
|
2467 | };
|
2468 |
|
2469 | }),
|
2470 |
|
2471 | (function(module, exports, __webpack_require__) {
|
2472 |
|
2473 |
|
2474 | var defined = __webpack_require__(33);
|
2475 |
|
2476 | module.exports = function (it) {
|
2477 | return Object(defined(it));
|
2478 | };
|
2479 |
|
2480 | }),
|
2481 |
|
2482 | (function(module, exports, __webpack_require__) {
|
2483 |
|
2484 | "use strict";
|
2485 |
|
2486 |
|
2487 | Object.defineProperty(exports, "__esModule", {
|
2488 | value: true
|
2489 | });
|
2490 |
|
2491 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
2492 | return typeof obj;
|
2493 | } : function (obj) {
|
2494 | return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
2495 | };
|
2496 |
|
2497 | var _react = __webpack_require__(1);
|
2498 |
|
2499 | var _react2 = _interopRequireDefault(_react);
|
2500 |
|
2501 | var _createChainableTypeChecker = __webpack_require__(22);
|
2502 |
|
2503 | var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
|
2504 |
|
2505 | function _interopRequireDefault(obj) {
|
2506 | return obj && obj.__esModule ? obj : {
|
2507 | default: obj
|
2508 | };
|
2509 | }
|
2510 |
|
2511 | function validate(props, propName, componentName, location, propFullName) {
|
2512 | var propValue = props[propName];
|
2513 | var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue);
|
2514 |
|
2515 | if (_react2.default.isValidElement(propValue)) {
|
2516 | return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement. You can usually obtain a ReactComponent or DOMElement ' + 'from a ReactElement by attaching a ref to it.');
|
2517 | }
|
2518 |
|
2519 | if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) {
|
2520 | return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.');
|
2521 | }
|
2522 |
|
2523 | return null;
|
2524 | }
|
2525 |
|
2526 | exports.default = (0, _createChainableTypeChecker2.default)(validate);
|
2527 | module.exports = exports['default'];
|
2528 |
|
2529 | }),
|
2530 |
|
2531 | (function(module, exports, __webpack_require__) {
|
2532 |
|
2533 | "use strict";
|
2534 |
|
2535 |
|
2536 | Object.defineProperty(exports, "__esModule", {
|
2537 | value: true
|
2538 | });
|
2539 | exports.default = getWindow;
|
2540 |
|
2541 | function getWindow(node) {
|
2542 | return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false;
|
2543 | }
|
2544 |
|
2545 | module.exports = exports["default"];
|
2546 |
|
2547 | }),
|
2548 |
|
2549 | (function(module, exports, __webpack_require__) {
|
2550 |
|
2551 | "use strict";
|
2552 |
|
2553 |
|
2554 | exports.__esModule = true;
|
2555 | exports.default = getContainer;
|
2556 |
|
2557 | var _reactDom = __webpack_require__(4);
|
2558 |
|
2559 | var _reactDom2 = _interopRequireDefault(_reactDom);
|
2560 |
|
2561 | function _interopRequireDefault(obj) {
|
2562 | return obj && obj.__esModule ? obj : {
|
2563 | default: obj
|
2564 | };
|
2565 | }
|
2566 |
|
2567 | function getContainer(container, defaultContainer) {
|
2568 | container = typeof container === 'function' ? container() : container;
|
2569 | return _reactDom2.default.findDOMNode(container) || defaultContainer;
|
2570 | }
|
2571 |
|
2572 | module.exports = exports['default'];
|
2573 |
|
2574 | }),
|
2575 |
|
2576 | (function(module, exports, __webpack_require__) {
|
2577 |
|
2578 | module.exports = __webpack_require__(80);
|
2579 |
|
2580 | }),
|
2581 |
|
2582 | (function(module, exports, __webpack_require__) {
|
2583 |
|
2584 | "use strict";
|
2585 |
|
2586 |
|
2587 | Object.defineProperty(exports, "__esModule", {
|
2588 | value: true
|
2589 | });
|
2590 |
|
2591 | exports.default = function (recalc) {
|
2592 | if (!size && size !== 0 || recalc) {
|
2593 | if (_inDOM2.default) {
|
2594 | var scrollDiv = document.createElement('div');
|
2595 | scrollDiv.style.position = 'absolute';
|
2596 | scrollDiv.style.top = '-9999px';
|
2597 | scrollDiv.style.width = '50px';
|
2598 | scrollDiv.style.height = '50px';
|
2599 | scrollDiv.style.overflow = 'scroll';
|
2600 | document.body.appendChild(scrollDiv);
|
2601 | size = scrollDiv.offsetWidth - scrollDiv.clientWidth;
|
2602 | document.body.removeChild(scrollDiv);
|
2603 | }
|
2604 | }
|
2605 |
|
2606 | return size;
|
2607 | };
|
2608 |
|
2609 | var _inDOM = __webpack_require__(12);
|
2610 |
|
2611 | var _inDOM2 = _interopRequireDefault(_inDOM);
|
2612 |
|
2613 | function _interopRequireDefault(obj) {
|
2614 | return obj && obj.__esModule ? obj : {
|
2615 | default: obj
|
2616 | };
|
2617 | }
|
2618 |
|
2619 | var size = void 0;
|
2620 | module.exports = exports['default'];
|
2621 |
|
2622 | }),
|
2623 |
|
2624 | (function(module, exports) {
|
2625 |
|
2626 | module.exports = function (it) {
|
2627 | return typeof it === 'object' ? it !== null : typeof it === 'function';
|
2628 | };
|
2629 |
|
2630 | }),
|
2631 |
|
2632 | (function(module, exports) {
|
2633 |
|
2634 | module.exports = function (bitmap, value) {
|
2635 | return {
|
2636 | enumerable: !(bitmap & 1),
|
2637 | configurable: !(bitmap & 2),
|
2638 | writable: !(bitmap & 4),
|
2639 | value: value
|
2640 | };
|
2641 | };
|
2642 |
|
2643 | }),
|
2644 |
|
2645 | (function(module, exports, __webpack_require__) {
|
2646 |
|
2647 |
|
2648 | var IObject = __webpack_require__(58);
|
2649 |
|
2650 | var defined = __webpack_require__(33);
|
2651 |
|
2652 | module.exports = function (it) {
|
2653 | return IObject(defined(it));
|
2654 | };
|
2655 |
|
2656 | }),
|
2657 |
|
2658 | (function(module, exports) {
|
2659 |
|
2660 | var toString = {}.toString;
|
2661 |
|
2662 | module.exports = function (it) {
|
2663 | return toString.call(it).slice(8, -1);
|
2664 | };
|
2665 |
|
2666 | }),
|
2667 |
|
2668 | (function(module, exports) {
|
2669 |
|
2670 |
|
2671 | var ceil = Math.ceil;
|
2672 | var floor = Math.floor;
|
2673 |
|
2674 | module.exports = function (it) {
|
2675 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
|
2676 | };
|
2677 |
|
2678 | }),
|
2679 |
|
2680 | (function(module, exports, __webpack_require__) {
|
2681 |
|
2682 | var shared = __webpack_require__(60)('keys');
|
2683 |
|
2684 | var uid = __webpack_require__(62);
|
2685 |
|
2686 | module.exports = function (key) {
|
2687 | return shared[key] || (shared[key] = uid(key));
|
2688 | };
|
2689 |
|
2690 | }),
|
2691 |
|
2692 | (function(module, exports, __webpack_require__) {
|
2693 |
|
2694 | "use strict";
|
2695 |
|
2696 |
|
2697 | Object.defineProperty(exports, "__esModule", {
|
2698 | value: true
|
2699 | });
|
2700 | exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined;
|
2701 |
|
2702 | var _inDOM = __webpack_require__(12);
|
2703 |
|
2704 | var _inDOM2 = _interopRequireDefault(_inDOM);
|
2705 |
|
2706 | function _interopRequireDefault(obj) {
|
2707 | return obj && obj.__esModule ? obj : {
|
2708 | default: obj
|
2709 | };
|
2710 | }
|
2711 |
|
2712 | var transform = 'transform';
|
2713 | var prefix = void 0,
|
2714 | transitionEnd = void 0,
|
2715 | animationEnd = void 0;
|
2716 | var transitionProperty = void 0,
|
2717 | transitionDuration = void 0,
|
2718 | transitionTiming = void 0,
|
2719 | transitionDelay = void 0;
|
2720 | var animationName = void 0,
|
2721 | animationDuration = void 0,
|
2722 | animationTiming = void 0,
|
2723 | animationDelay = void 0;
|
2724 |
|
2725 | if (_inDOM2.default) {
|
2726 | var _getTransitionPropert = getTransitionProperties();
|
2727 |
|
2728 | prefix = _getTransitionPropert.prefix;
|
2729 | exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd;
|
2730 | exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd;
|
2731 | exports.transform = transform = prefix + '-' + transform;
|
2732 | exports.transitionProperty = transitionProperty = prefix + '-transition-property';
|
2733 | exports.transitionDuration = transitionDuration = prefix + '-transition-duration';
|
2734 | exports.transitionDelay = transitionDelay = prefix + '-transition-delay';
|
2735 | exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function';
|
2736 | exports.animationName = animationName = prefix + '-animation-name';
|
2737 | exports.animationDuration = animationDuration = prefix + '-animation-duration';
|
2738 | exports.animationTiming = animationTiming = prefix + '-animation-delay';
|
2739 | exports.animationDelay = animationDelay = prefix + '-animation-timing-function';
|
2740 | }
|
2741 |
|
2742 | exports.transform = transform;
|
2743 | exports.transitionProperty = transitionProperty;
|
2744 | exports.transitionTiming = transitionTiming;
|
2745 | exports.transitionDelay = transitionDelay;
|
2746 | exports.transitionDuration = transitionDuration;
|
2747 | exports.transitionEnd = transitionEnd;
|
2748 | exports.animationName = animationName;
|
2749 | exports.animationDuration = animationDuration;
|
2750 | exports.animationTiming = animationTiming;
|
2751 | exports.animationDelay = animationDelay;
|
2752 | exports.animationEnd = animationEnd;
|
2753 | exports.default = {
|
2754 | transform: transform,
|
2755 | end: transitionEnd,
|
2756 | property: transitionProperty,
|
2757 | timing: transitionTiming,
|
2758 | delay: transitionDelay,
|
2759 | duration: transitionDuration
|
2760 | };
|
2761 |
|
2762 | function getTransitionProperties() {
|
2763 | var style = document.createElement('div').style;
|
2764 | var vendorMap = {
|
2765 | O: function O(e) {
|
2766 | return 'o' + e.toLowerCase();
|
2767 | },
|
2768 | Moz: function Moz(e) {
|
2769 | return e.toLowerCase();
|
2770 | },
|
2771 | Webkit: function Webkit(e) {
|
2772 | return 'webkit' + e;
|
2773 | },
|
2774 | ms: function ms(e) {
|
2775 | return 'MS' + e;
|
2776 | }
|
2777 | };
|
2778 | var vendors = Object.keys(vendorMap);
|
2779 | var transitionEnd = void 0,
|
2780 | animationEnd = void 0;
|
2781 | var prefix = '';
|
2782 |
|
2783 | for (var i = 0; i < vendors.length; i++) {
|
2784 | var vendor = vendors[i];
|
2785 |
|
2786 | if (vendor + 'TransitionProperty' in style) {
|
2787 | prefix = '-' + vendor.toLowerCase();
|
2788 | transitionEnd = vendorMap[vendor]('TransitionEnd');
|
2789 | animationEnd = vendorMap[vendor]('AnimationEnd');
|
2790 | break;
|
2791 | }
|
2792 | }
|
2793 |
|
2794 | if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend';
|
2795 | if (!animationEnd && 'animationName' in style) animationEnd = 'animationend';
|
2796 | style = null;
|
2797 | return {
|
2798 | animationEnd: animationEnd,
|
2799 | transitionEnd: transitionEnd,
|
2800 | prefix: prefix
|
2801 | };
|
2802 | }
|
2803 |
|
2804 | }),
|
2805 |
|
2806 | (function(module, exports) {
|
2807 |
|
2808 | module.exports = {};
|
2809 |
|
2810 | }),
|
2811 |
|
2812 | (function(module, exports, __webpack_require__) {
|
2813 |
|
2814 | "use strict";
|
2815 |
|
2816 |
|
2817 | Object.defineProperty(exports, "__esModule", {
|
2818 | value: true
|
2819 | });
|
2820 |
|
2821 | var _inDOM = __webpack_require__(12);
|
2822 |
|
2823 | var _inDOM2 = _interopRequireDefault(_inDOM);
|
2824 |
|
2825 | function _interopRequireDefault(obj) {
|
2826 | return obj && obj.__esModule ? obj : {
|
2827 | default: obj
|
2828 | };
|
2829 | }
|
2830 |
|
2831 | var on = function on() {};
|
2832 |
|
2833 | if (_inDOM2.default) {
|
2834 | on = function () {
|
2835 | if (document.addEventListener) return function (node, eventName, handler, capture) {
|
2836 | return node.addEventListener(eventName, handler, capture || false);
|
2837 | };else if (document.attachEvent) return function (node, eventName, handler) {
|
2838 | return node.attachEvent('on' + eventName, function (e) {
|
2839 | e = e || window.event;
|
2840 | e.target = e.target || e.srcElement;
|
2841 | e.currentTarget = node;
|
2842 | handler.call(node, e);
|
2843 | });
|
2844 | };
|
2845 | }();
|
2846 | }
|
2847 |
|
2848 | exports.default = on;
|
2849 | module.exports = exports['default'];
|
2850 |
|
2851 | }),
|
2852 |
|
2853 | (function(module, exports, __webpack_require__) {
|
2854 |
|
2855 | "use strict";
|
2856 |
|
2857 |
|
2858 | Object.defineProperty(exports, "__esModule", {
|
2859 | value: true
|
2860 | });
|
2861 |
|
2862 | var _inDOM = __webpack_require__(12);
|
2863 |
|
2864 | var _inDOM2 = _interopRequireDefault(_inDOM);
|
2865 |
|
2866 | function _interopRequireDefault(obj) {
|
2867 | return obj && obj.__esModule ? obj : {
|
2868 | default: obj
|
2869 | };
|
2870 | }
|
2871 |
|
2872 | var off = function off() {};
|
2873 |
|
2874 | if (_inDOM2.default) {
|
2875 | off = function () {
|
2876 | if (document.addEventListener) return function (node, eventName, handler, capture) {
|
2877 | return node.removeEventListener(eventName, handler, capture || false);
|
2878 | };else if (document.attachEvent) return function (node, eventName, handler) {
|
2879 | return node.detachEvent('on' + eventName, handler);
|
2880 | };
|
2881 | }();
|
2882 | }
|
2883 |
|
2884 | exports.default = off;
|
2885 | module.exports = exports['default'];
|
2886 |
|
2887 | }),
|
2888 |
|
2889 | (function(module, exports, __webpack_require__) {
|
2890 |
|
2891 | "use strict";
|
2892 |
|
2893 |
|
2894 | Object.defineProperty(exports, "__esModule", {
|
2895 | value: true
|
2896 | });
|
2897 | exports.default = activeElement;
|
2898 |
|
2899 | var _ownerDocument = __webpack_require__(17);
|
2900 |
|
2901 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
2902 |
|
2903 | function _interopRequireDefault(obj) {
|
2904 | return obj && obj.__esModule ? obj : {
|
2905 | default: obj
|
2906 | };
|
2907 | }
|
2908 |
|
2909 | function activeElement() {
|
2910 | var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _ownerDocument2.default)();
|
2911 |
|
2912 | try {
|
2913 | return doc.activeElement;
|
2914 | } catch (e) {
|
2915 |
|
2916 | }
|
2917 | }
|
2918 |
|
2919 | module.exports = exports['default'];
|
2920 |
|
2921 | }),
|
2922 |
|
2923 | (function(module, exports, __webpack_require__) {
|
2924 |
|
2925 | "use strict";
|
2926 |
|
2927 |
|
2928 | exports.__esModule = true;
|
2929 |
|
2930 | var _contains = __webpack_require__(13);
|
2931 |
|
2932 | var _contains2 = _interopRequireDefault(_contains);
|
2933 |
|
2934 | var _propTypes = __webpack_require__(0);
|
2935 |
|
2936 | var _propTypes2 = _interopRequireDefault(_propTypes);
|
2937 |
|
2938 | var _react = __webpack_require__(1);
|
2939 |
|
2940 | var _react2 = _interopRequireDefault(_react);
|
2941 |
|
2942 | var _reactDom = __webpack_require__(4);
|
2943 |
|
2944 | var _reactDom2 = _interopRequireDefault(_reactDom);
|
2945 |
|
2946 | var _addEventListener = __webpack_require__(70);
|
2947 |
|
2948 | var _addEventListener2 = _interopRequireDefault(_addEventListener);
|
2949 |
|
2950 | var _ownerDocument = __webpack_require__(20);
|
2951 |
|
2952 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
2953 |
|
2954 | function _interopRequireDefault(obj) {
|
2955 | return obj && obj.__esModule ? obj : {
|
2956 | default: obj
|
2957 | };
|
2958 | }
|
2959 |
|
2960 | function _classCallCheck(instance, Constructor) {
|
2961 | if (!(instance instanceof Constructor)) {
|
2962 | throw new TypeError("Cannot call a class as a function");
|
2963 | }
|
2964 | }
|
2965 |
|
2966 | function _possibleConstructorReturn(self, call) {
|
2967 | if (!self) {
|
2968 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
2969 | }
|
2970 |
|
2971 | return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
2972 | }
|
2973 |
|
2974 | function _inherits(subClass, superClass) {
|
2975 | if (typeof superClass !== "function" && superClass !== null) {
|
2976 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
2977 | }
|
2978 |
|
2979 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
2980 | constructor: {
|
2981 | value: subClass,
|
2982 | enumerable: false,
|
2983 | writable: true,
|
2984 | configurable: true
|
2985 | }
|
2986 | });
|
2987 | if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
2988 | }
|
2989 |
|
2990 | var escapeKeyCode = 27;
|
2991 |
|
2992 | function isLeftClickEvent(event) {
|
2993 | return event.button === 0;
|
2994 | }
|
2995 |
|
2996 | function isModifiedEvent(event) {
|
2997 | return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
|
2998 | }
|
2999 |
|
3000 |
|
3001 |
|
3002 |
|
3003 |
|
3004 |
|
3005 |
|
3006 |
|
3007 | var RootCloseWrapper = function (_React$Component) {
|
3008 | _inherits(RootCloseWrapper, _React$Component);
|
3009 |
|
3010 | function RootCloseWrapper(props, context) {
|
3011 | _classCallCheck(this, RootCloseWrapper);
|
3012 |
|
3013 | var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));
|
3014 |
|
3015 | _this.addEventListeners = function () {
|
3016 | var event = _this.props.event;
|
3017 | var doc = (0, _ownerDocument2.default)(_this);
|
3018 |
|
3019 |
|
3020 |
|
3021 | _this.documentMouseCaptureListener = (0, _addEventListener2.default)(doc, event, _this.handleMouseCapture, true);
|
3022 | _this.documentMouseListener = (0, _addEventListener2.default)(doc, event, _this.handleMouse);
|
3023 | _this.documentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this.handleKeyUp);
|
3024 | };
|
3025 |
|
3026 | _this.removeEventListeners = function () {
|
3027 | if (_this.documentMouseCaptureListener) {
|
3028 | _this.documentMouseCaptureListener.remove();
|
3029 | }
|
3030 |
|
3031 | if (_this.documentMouseListener) {
|
3032 | _this.documentMouseListener.remove();
|
3033 | }
|
3034 |
|
3035 | if (_this.documentKeyupListener) {
|
3036 | _this.documentKeyupListener.remove();
|
3037 | }
|
3038 | };
|
3039 |
|
3040 | _this.handleMouseCapture = function (e) {
|
3041 | _this.preventMouseRootClose = isModifiedEvent(e) || !isLeftClickEvent(e) || (0, _contains2.default)(_reactDom2.default.findDOMNode(_this), e.target);
|
3042 | };
|
3043 |
|
3044 | _this.handleMouse = function (e) {
|
3045 | if (!_this.preventMouseRootClose && _this.props.onRootClose) {
|
3046 | _this.props.onRootClose(e);
|
3047 | }
|
3048 | };
|
3049 |
|
3050 | _this.handleKeyUp = function (e) {
|
3051 | if (e.keyCode === escapeKeyCode && _this.props.onRootClose) {
|
3052 | _this.props.onRootClose(e);
|
3053 | }
|
3054 | };
|
3055 |
|
3056 | _this.preventMouseRootClose = false;
|
3057 | return _this;
|
3058 | }
|
3059 |
|
3060 | RootCloseWrapper.prototype.componentDidMount = function componentDidMount() {
|
3061 | if (!this.props.disabled) {
|
3062 | this.addEventListeners();
|
3063 | }
|
3064 | };
|
3065 |
|
3066 | RootCloseWrapper.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
|
3067 | if (!this.props.disabled && prevProps.disabled) {
|
3068 | this.addEventListeners();
|
3069 | } else if (this.props.disabled && !prevProps.disabled) {
|
3070 | this.removeEventListeners();
|
3071 | }
|
3072 | };
|
3073 |
|
3074 | RootCloseWrapper.prototype.componentWillUnmount = function componentWillUnmount() {
|
3075 | if (!this.props.disabled) {
|
3076 | this.removeEventListeners();
|
3077 | }
|
3078 | };
|
3079 |
|
3080 | RootCloseWrapper.prototype.render = function render() {
|
3081 | return this.props.children;
|
3082 | };
|
3083 |
|
3084 | return RootCloseWrapper;
|
3085 | }(_react2.default.Component);
|
3086 |
|
3087 | RootCloseWrapper.displayName = 'RootCloseWrapper';
|
3088 | RootCloseWrapper.propTypes = {
|
3089 | |
3090 |
|
3091 |
|
3092 | onRootClose: _propTypes2.default.func,
|
3093 |
|
3094 | |
3095 |
|
3096 |
|
3097 | children: _propTypes2.default.element,
|
3098 |
|
3099 | |
3100 |
|
3101 |
|
3102 | disabled: _propTypes2.default.bool,
|
3103 |
|
3104 | |
3105 |
|
3106 |
|
3107 | event: _propTypes2.default.oneOf(['click', 'mousedown'])
|
3108 | };
|
3109 | RootCloseWrapper.defaultProps = {
|
3110 | event: 'click'
|
3111 | };
|
3112 | exports.default = RootCloseWrapper;
|
3113 | module.exports = exports['default'];
|
3114 |
|
3115 | }),
|
3116 |
|
3117 | (function(module, exports, __webpack_require__) {
|
3118 |
|
3119 | "use strict";
|
3120 |
|
3121 |
|
3122 | exports.__esModule = true;
|
3123 | exports.default = isOverflowing;
|
3124 |
|
3125 | var _isWindow = __webpack_require__(36);
|
3126 |
|
3127 | var _isWindow2 = _interopRequireDefault(_isWindow);
|
3128 |
|
3129 | var _ownerDocument = __webpack_require__(17);
|
3130 |
|
3131 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
3132 |
|
3133 | function _interopRequireDefault(obj) {
|
3134 | return obj && obj.__esModule ? obj : {
|
3135 | default: obj
|
3136 | };
|
3137 | }
|
3138 |
|
3139 | function isBody(node) {
|
3140 | return node && node.tagName.toLowerCase() === 'body';
|
3141 | }
|
3142 |
|
3143 | function bodyIsOverflowing(node) {
|
3144 | var doc = (0, _ownerDocument2.default)(node);
|
3145 | var win = (0, _isWindow2.default)(doc);
|
3146 | var fullWidth = win.innerWidth;
|
3147 |
|
3148 | if (!fullWidth) {
|
3149 | var documentElementRect = doc.documentElement.getBoundingClientRect();
|
3150 | fullWidth = documentElementRect.right - Math.abs(documentElementRect.left);
|
3151 | }
|
3152 |
|
3153 | return doc.body.clientWidth < fullWidth;
|
3154 | }
|
3155 |
|
3156 | function isOverflowing(container) {
|
3157 | var win = (0, _isWindow2.default)(container);
|
3158 | return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight;
|
3159 | }
|
3160 |
|
3161 | module.exports = exports['default'];
|
3162 |
|
3163 | }),
|
3164 |
|
3165 | (function(module, exports, __webpack_require__) {
|
3166 |
|
3167 | module.exports = __webpack_require__(113);
|
3168 |
|
3169 | }),
|
3170 |
|
3171 | (function(module, exports, __webpack_require__) {
|
3172 |
|
3173 | "use strict";
|
3174 |
|
3175 |
|
3176 | Object.defineProperty(exports, "__esModule", {
|
3177 | value: true
|
3178 | });
|
3179 | exports.listen = exports.filter = exports.off = exports.on = undefined;
|
3180 |
|
3181 | var _on = __webpack_require__(48);
|
3182 |
|
3183 | var _on2 = _interopRequireDefault(_on);
|
3184 |
|
3185 | var _off = __webpack_require__(49);
|
3186 |
|
3187 | var _off2 = _interopRequireDefault(_off);
|
3188 |
|
3189 | var _filter = __webpack_require__(133);
|
3190 |
|
3191 | var _filter2 = _interopRequireDefault(_filter);
|
3192 |
|
3193 | var _listen = __webpack_require__(135);
|
3194 |
|
3195 | var _listen2 = _interopRequireDefault(_listen);
|
3196 |
|
3197 | function _interopRequireDefault(obj) {
|
3198 | return obj && obj.__esModule ? obj : {
|
3199 | default: obj
|
3200 | };
|
3201 | }
|
3202 |
|
3203 | exports.on = _on2.default;
|
3204 | exports.off = _off2.default;
|
3205 | exports.filter = _filter2.default;
|
3206 | exports.listen = _listen2.default;
|
3207 | exports.default = {
|
3208 | on: _on2.default,
|
3209 | off: _off2.default,
|
3210 | filter: _filter2.default,
|
3211 | listen: _listen2.default
|
3212 | };
|
3213 |
|
3214 | }),
|
3215 |
|
3216 | (function(module, exports, __webpack_require__) {
|
3217 |
|
3218 | "use strict";
|
3219 |
|
3220 |
|
3221 | exports.__esModule = true;
|
3222 |
|
3223 | var _extends = Object.assign || function (target) {
|
3224 | for (var i = 1; i < arguments.length; i++) {
|
3225 | var source = arguments[i];
|
3226 |
|
3227 | for (var key in source) {
|
3228 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
3229 | target[key] = source[key];
|
3230 | }
|
3231 | }
|
3232 | }
|
3233 |
|
3234 | return target;
|
3235 | };
|
3236 |
|
3237 | var _propTypes = __webpack_require__(0);
|
3238 |
|
3239 | var _propTypes2 = _interopRequireDefault(_propTypes);
|
3240 |
|
3241 | var _elementType = __webpack_require__(3);
|
3242 |
|
3243 | var _elementType2 = _interopRequireDefault(_elementType);
|
3244 |
|
3245 | var _react = __webpack_require__(1);
|
3246 |
|
3247 | var _react2 = _interopRequireDefault(_react);
|
3248 |
|
3249 | var _Portal = __webpack_require__(72);
|
3250 |
|
3251 | var _Portal2 = _interopRequireDefault(_Portal);
|
3252 |
|
3253 | var _Position = __webpack_require__(145);
|
3254 |
|
3255 | var _Position2 = _interopRequireDefault(_Position);
|
3256 |
|
3257 | var _RootCloseWrapper = __webpack_require__(51);
|
3258 |
|
3259 | var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper);
|
3260 |
|
3261 | function _interopRequireDefault(obj) {
|
3262 | return obj && obj.__esModule ? obj : {
|
3263 | default: obj
|
3264 | };
|
3265 | }
|
3266 |
|
3267 | function _objectWithoutProperties(obj, keys) {
|
3268 | var target = {};
|
3269 |
|
3270 | for (var i in obj) {
|
3271 | if (keys.indexOf(i) >= 0) continue;
|
3272 | if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
3273 | target[i] = obj[i];
|
3274 | }
|
3275 |
|
3276 | return target;
|
3277 | }
|
3278 |
|
3279 | function _classCallCheck(instance, Constructor) {
|
3280 | if (!(instance instanceof Constructor)) {
|
3281 | throw new TypeError("Cannot call a class as a function");
|
3282 | }
|
3283 | }
|
3284 |
|
3285 | function _possibleConstructorReturn(self, call) {
|
3286 | if (!self) {
|
3287 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
3288 | }
|
3289 |
|
3290 | return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
3291 | }
|
3292 |
|
3293 | function _inherits(subClass, superClass) {
|
3294 | if (typeof superClass !== "function" && superClass !== null) {
|
3295 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
3296 | }
|
3297 |
|
3298 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
3299 | constructor: {
|
3300 | value: subClass,
|
3301 | enumerable: false,
|
3302 | writable: true,
|
3303 | configurable: true
|
3304 | }
|
3305 | });
|
3306 | if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
3307 | }
|
3308 |
|
3309 |
|
3310 |
|
3311 |
|
3312 |
|
3313 | var Overlay = function (_React$Component) {
|
3314 | _inherits(Overlay, _React$Component);
|
3315 |
|
3316 | function Overlay(props, context) {
|
3317 | _classCallCheck(this, Overlay);
|
3318 |
|
3319 | var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));
|
3320 |
|
3321 | _this.handleHidden = function () {
|
3322 | _this.setState({
|
3323 | exited: true
|
3324 | });
|
3325 |
|
3326 | if (_this.props.onExited) {
|
3327 | var _this$props;
|
3328 |
|
3329 | (_this$props = _this.props).onExited.apply(_this$props, arguments);
|
3330 | }
|
3331 | };
|
3332 |
|
3333 | _this.state = {
|
3334 | exited: !props.show
|
3335 | };
|
3336 | _this.onHiddenListener = _this.handleHidden.bind(_this);
|
3337 | return _this;
|
3338 | }
|
3339 |
|
3340 | Overlay.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
3341 | if (nextProps.show) {
|
3342 | this.setState({
|
3343 | exited: false
|
3344 | });
|
3345 | } else if (!nextProps.transition) {
|
3346 |
|
3347 | this.setState({
|
3348 | exited: true
|
3349 | });
|
3350 | }
|
3351 | };
|
3352 |
|
3353 | Overlay.prototype.render = function render() {
|
3354 | var _props = this.props,
|
3355 | container = _props.container,
|
3356 | containerPadding = _props.containerPadding,
|
3357 | target = _props.target,
|
3358 | placement = _props.placement,
|
3359 | shouldUpdatePosition = _props.shouldUpdatePosition,
|
3360 | rootClose = _props.rootClose,
|
3361 | children = _props.children,
|
3362 | Transition = _props.transition,
|
3363 | props = _objectWithoutProperties(_props, ['container', 'containerPadding', 'target', 'placement', 'shouldUpdatePosition', 'rootClose', 'children', 'transition']);
|
3364 |
|
3365 |
|
3366 | var mountOverlay = props.show || Transition && !this.state.exited;
|
3367 |
|
3368 | if (!mountOverlay) {
|
3369 |
|
3370 | return null;
|
3371 | }
|
3372 |
|
3373 | var child = children;
|
3374 |
|
3375 |
|
3376 | child = _react2.default.createElement(_Position2.default, {
|
3377 | container: container,
|
3378 | containerPadding: containerPadding,
|
3379 | target: target,
|
3380 | placement: placement,
|
3381 | shouldUpdatePosition: shouldUpdatePosition
|
3382 | }, child);
|
3383 |
|
3384 | if (Transition) {
|
3385 | var onExit = props.onExit,
|
3386 | onExiting = props.onExiting,
|
3387 | onEnter = props.onEnter,
|
3388 | onEntering = props.onEntering,
|
3389 | onEntered = props.onEntered;
|
3390 |
|
3391 |
|
3392 | child = _react2.default.createElement(Transition, {
|
3393 | 'in': props.show,
|
3394 | appear: true,
|
3395 | onExit: onExit,
|
3396 | onExiting: onExiting,
|
3397 | onExited: this.onHiddenListener,
|
3398 | onEnter: onEnter,
|
3399 | onEntering: onEntering,
|
3400 | onEntered: onEntered
|
3401 | }, child);
|
3402 | }
|
3403 |
|
3404 |
|
3405 | if (rootClose) {
|
3406 | child = _react2.default.createElement(_RootCloseWrapper2.default, {
|
3407 | onRootClose: props.onHide
|
3408 | }, child);
|
3409 | }
|
3410 |
|
3411 | return _react2.default.createElement(_Portal2.default, {
|
3412 | container: container
|
3413 | }, child);
|
3414 | };
|
3415 |
|
3416 | return Overlay;
|
3417 | }(_react2.default.Component);
|
3418 |
|
3419 | Overlay.propTypes = _extends({}, _Portal2.default.propTypes, _Position2.default.propTypes, {
|
3420 | |
3421 |
|
3422 |
|
3423 | show: _propTypes2.default.bool,
|
3424 |
|
3425 | |
3426 |
|
3427 |
|
3428 | rootClose: _propTypes2.default.bool,
|
3429 |
|
3430 | |
3431 |
|
3432 |
|
3433 |
|
3434 |
|
3435 |
|
3436 |
|
3437 | onHide: function onHide(props) {
|
3438 | var propType = _propTypes2.default.func;
|
3439 |
|
3440 | if (props.rootClose) {
|
3441 | propType = propType.isRequired;
|
3442 | }
|
3443 |
|
3444 | for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
3445 | args[_key - 1] = arguments[_key];
|
3446 | }
|
3447 |
|
3448 | return propType.apply(undefined, [props].concat(args));
|
3449 | },
|
3450 |
|
3451 | |
3452 |
|
3453 |
|
3454 |
|
3455 | transition: _elementType2.default,
|
3456 |
|
3457 | |
3458 |
|
3459 |
|
3460 | onEnter: _propTypes2.default.func,
|
3461 |
|
3462 | |
3463 |
|
3464 |
|
3465 | onEntering: _propTypes2.default.func,
|
3466 |
|
3467 | |
3468 |
|
3469 |
|
3470 | onEntered: _propTypes2.default.func,
|
3471 |
|
3472 | |
3473 |
|
3474 |
|
3475 | onExit: _propTypes2.default.func,
|
3476 |
|
3477 | |
3478 |
|
3479 |
|
3480 | onExiting: _propTypes2.default.func,
|
3481 |
|
3482 | |
3483 |
|
3484 |
|
3485 | onExited: _propTypes2.default.func
|
3486 | });
|
3487 | exports.default = Overlay;
|
3488 | module.exports = exports['default'];
|
3489 |
|
3490 | }),
|
3491 |
|
3492 | (function(module, exports, __webpack_require__) {
|
3493 |
|
3494 |
|
3495 | var aFunction = __webpack_require__(82);
|
3496 |
|
3497 | module.exports = function (fn, that, length) {
|
3498 | aFunction(fn);
|
3499 | if (that === undefined) return fn;
|
3500 |
|
3501 | switch (length) {
|
3502 | case 1:
|
3503 | return function (a) {
|
3504 | return fn.call(that, a);
|
3505 | };
|
3506 |
|
3507 | case 2:
|
3508 | return function (a, b) {
|
3509 | return fn.call(that, a, b);
|
3510 | };
|
3511 |
|
3512 | case 3:
|
3513 | return function (a, b, c) {
|
3514 | return fn.call(that, a, b, c);
|
3515 | };
|
3516 | }
|
3517 |
|
3518 | return function ()
|
3519 | /* ...args */
|
3520 | {
|
3521 | return fn.apply(that, arguments);
|
3522 | };
|
3523 | };
|
3524 |
|
3525 | }),
|
3526 |
|
3527 | (function(module, exports, __webpack_require__) {
|
3528 |
|
3529 | var isObject = __webpack_require__(40);
|
3530 |
|
3531 | var document = __webpack_require__(19).document;
|
3532 |
|
3533 |
|
3534 | var is = isObject(document) && isObject(document.createElement);
|
3535 |
|
3536 | module.exports = function (it) {
|
3537 | return is ? document.createElement(it) : {};
|
3538 | };
|
3539 |
|
3540 | }),
|
3541 |
|
3542 | (function(module, exports, __webpack_require__) {
|
3543 |
|
3544 |
|
3545 | var cof = __webpack_require__(43);
|
3546 |
|
3547 |
|
3548 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
3549 | return cof(it) == 'String' ? it.split('') : Object(it);
|
3550 | };
|
3551 |
|
3552 | }),
|
3553 |
|
3554 | (function(module, exports, __webpack_require__) {
|
3555 |
|
3556 |
|
3557 | var toInteger = __webpack_require__(44);
|
3558 |
|
3559 | var min = Math.min;
|
3560 |
|
3561 | module.exports = function (it) {
|
3562 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0;
|
3563 | };
|
3564 |
|
3565 | }),
|
3566 |
|
3567 | (function(module, exports, __webpack_require__) {
|
3568 |
|
3569 | var core = __webpack_require__(8);
|
3570 |
|
3571 | var global = __webpack_require__(19);
|
3572 |
|
3573 | var SHARED = '__core-js_shared__';
|
3574 | var store = global[SHARED] || (global[SHARED] = {});
|
3575 | (module.exports = function (key, value) {
|
3576 | return store[key] || (store[key] = value !== undefined ? value : {});
|
3577 | })('versions', []).push({
|
3578 | version: core.version,
|
3579 | mode: __webpack_require__(61) ? 'pure' : 'global',
|
3580 | copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
|
3581 | });
|
3582 |
|
3583 | }),
|
3584 |
|
3585 | (function(module, exports) {
|
3586 |
|
3587 | module.exports = true;
|
3588 |
|
3589 | }),
|
3590 |
|
3591 | (function(module, exports) {
|
3592 |
|
3593 | var id = 0;
|
3594 | var px = Math.random();
|
3595 |
|
3596 | module.exports = function (key) {
|
3597 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
3598 | };
|
3599 |
|
3600 | }),
|
3601 |
|
3602 | (function(module, exports) {
|
3603 |
|
3604 |
|
3605 | module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(',');
|
3606 |
|
3607 | }),
|
3608 |
|
3609 | (function(module, exports) {
|
3610 |
|
3611 | exports.f = {}.propertyIsEnumerable;
|
3612 |
|
3613 | }),
|
3614 |
|
3615 | (function(module, exports, __webpack_require__) {
|
3616 |
|
3617 |
|
3618 | var anObject = __webpack_require__(29);
|
3619 |
|
3620 | var dPs = __webpack_require__(92);
|
3621 |
|
3622 | var enumBugKeys = __webpack_require__(63);
|
3623 |
|
3624 | var IE_PROTO = __webpack_require__(45)('IE_PROTO');
|
3625 |
|
3626 | var Empty = function () {
|
3627 |
|
3628 | };
|
3629 |
|
3630 | var PROTOTYPE = 'prototype';
|
3631 |
|
3632 | var createDict = function () {
|
3633 |
|
3634 | var iframe = __webpack_require__(57)('iframe');
|
3635 |
|
3636 | var i = enumBugKeys.length;
|
3637 | var lt = '<';
|
3638 | var gt = '>';
|
3639 | var iframeDocument;
|
3640 | iframe.style.display = 'none';
|
3641 |
|
3642 | __webpack_require__(93).appendChild(iframe);
|
3643 |
|
3644 | iframe.src = 'javascript:';
|
3645 |
|
3646 |
|
3647 |
|
3648 | iframeDocument = iframe.contentWindow.document;
|
3649 | iframeDocument.open();
|
3650 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
|
3651 | iframeDocument.close();
|
3652 | createDict = iframeDocument.F;
|
3653 |
|
3654 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
|
3655 |
|
3656 | return createDict();
|
3657 | };
|
3658 |
|
3659 | module.exports = Object.create || function create(O, Properties) {
|
3660 | var result;
|
3661 |
|
3662 | if (O !== null) {
|
3663 | Empty[PROTOTYPE] = anObject(O);
|
3664 | result = new Empty();
|
3665 | Empty[PROTOTYPE] = null;
|
3666 |
|
3667 | result[IE_PROTO] = O;
|
3668 | } else result = createDict();
|
3669 |
|
3670 | return Properties === undefined ? result : dPs(result, Properties);
|
3671 | };
|
3672 |
|
3673 | }),
|
3674 |
|
3675 | (function(module, exports, __webpack_require__) {
|
3676 |
|
3677 | var getKeys = __webpack_require__(32);
|
3678 |
|
3679 | var toIObject = __webpack_require__(42);
|
3680 |
|
3681 | var isEnum = __webpack_require__(64).f;
|
3682 |
|
3683 | module.exports = function (isEntries) {
|
3684 | return function (it) {
|
3685 | var O = toIObject(it);
|
3686 | var keys = getKeys(O);
|
3687 | var length = keys.length;
|
3688 | var i = 0;
|
3689 | var result = [];
|
3690 | var key;
|
3691 |
|
3692 | while (length > i) if (isEnum.call(O, key = keys[i++])) {
|
3693 | result.push(isEntries ? [key, O[key]] : O[key]);
|
3694 | }
|
3695 |
|
3696 | return result;
|
3697 | };
|
3698 | };
|
3699 |
|
3700 | }),
|
3701 |
|
3702 | (function(module, exports, __webpack_require__) {
|
3703 |
|
3704 | "use strict";
|
3705 |
|
3706 |
|
3707 | Object.defineProperty(exports, "__esModule", {
|
3708 | value: true
|
3709 | });
|
3710 | exports.default = camelizeStyleName;
|
3711 |
|
3712 | var _camelize = __webpack_require__(107);
|
3713 |
|
3714 | var _camelize2 = _interopRequireDefault(_camelize);
|
3715 |
|
3716 | function _interopRequireDefault(obj) {
|
3717 | return obj && obj.__esModule ? obj : {
|
3718 | default: obj
|
3719 | };
|
3720 | }
|
3721 |
|
3722 | var msPattern = /^-ms-/;
|
3723 |
|
3724 |
|
3725 |
|
3726 |
|
3727 |
|
3728 |
|
3729 | function camelizeStyleName(string) {
|
3730 | return (0, _camelize2.default)(string.replace(msPattern, 'ms-'));
|
3731 | }
|
3732 |
|
3733 | module.exports = exports['default'];
|
3734 |
|
3735 | }),
|
3736 |
|
3737 | (function(module, exports) {
|
3738 |
|
3739 | module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
3740 |
|
3741 | }),
|
3742 |
|
3743 | (function(module, exports, __webpack_require__) {
|
3744 |
|
3745 | var def = __webpack_require__(28).f;
|
3746 |
|
3747 | var has = __webpack_require__(31);
|
3748 |
|
3749 | var TAG = __webpack_require__(16)('toStringTag');
|
3750 |
|
3751 | module.exports = function (it, tag, stat) {
|
3752 | if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, {
|
3753 | configurable: true,
|
3754 | value: tag
|
3755 | });
|
3756 | };
|
3757 |
|
3758 | }),
|
3759 |
|
3760 | (function(module, exports, __webpack_require__) {
|
3761 |
|
3762 | "use strict";
|
3763 |
|
3764 |
|
3765 | exports.__esModule = true;
|
3766 |
|
3767 | exports.default = function (node, event, handler, capture) {
|
3768 | (0, _on2.default)(node, event, handler, capture);
|
3769 | return {
|
3770 | remove: function remove() {
|
3771 | (0, _off2.default)(node, event, handler, capture);
|
3772 | }
|
3773 | };
|
3774 | };
|
3775 |
|
3776 | var _on = __webpack_require__(48);
|
3777 |
|
3778 | var _on2 = _interopRequireDefault(_on);
|
3779 |
|
3780 | var _off = __webpack_require__(49);
|
3781 |
|
3782 | var _off2 = _interopRequireDefault(_off);
|
3783 |
|
3784 | function _interopRequireDefault(obj) {
|
3785 | return obj && obj.__esModule ? obj : {
|
3786 | default: obj
|
3787 | };
|
3788 | }
|
3789 |
|
3790 | module.exports = exports['default'];
|
3791 |
|
3792 | }),
|
3793 |
|
3794 | (function(module, exports, __webpack_require__) {
|
3795 |
|
3796 | "use strict";
|
3797 |
|
3798 |
|
3799 | Object.defineProperty(exports, "__esModule", {
|
3800 | value: true
|
3801 | });
|
3802 | exports.default = hasClass;
|
3803 |
|
3804 | function hasClass(element, className) {
|
3805 | if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
3806 | }
|
3807 |
|
3808 | module.exports = exports["default"];
|
3809 |
|
3810 | }),
|
3811 |
|
3812 | (function(module, exports, __webpack_require__) {
|
3813 |
|
3814 | "use strict";
|
3815 |
|
3816 |
|
3817 | exports.__esModule = true;
|
3818 |
|
3819 | var _propTypes = __webpack_require__(0);
|
3820 |
|
3821 | var _propTypes2 = _interopRequireDefault(_propTypes);
|
3822 |
|
3823 | var _componentOrElement = __webpack_require__(35);
|
3824 |
|
3825 | var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
|
3826 |
|
3827 | var _react = __webpack_require__(1);
|
3828 |
|
3829 | var _react2 = _interopRequireDefault(_react);
|
3830 |
|
3831 | var _reactDom = __webpack_require__(4);
|
3832 |
|
3833 | var _reactDom2 = _interopRequireDefault(_reactDom);
|
3834 |
|
3835 | var _getContainer = __webpack_require__(37);
|
3836 |
|
3837 | var _getContainer2 = _interopRequireDefault(_getContainer);
|
3838 |
|
3839 | var _ownerDocument = __webpack_require__(20);
|
3840 |
|
3841 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
3842 |
|
3843 | var _LegacyPortal = __webpack_require__(142);
|
3844 |
|
3845 | var _LegacyPortal2 = _interopRequireDefault(_LegacyPortal);
|
3846 |
|
3847 | function _interopRequireDefault(obj) {
|
3848 | return obj && obj.__esModule ? obj : {
|
3849 | default: obj
|
3850 | };
|
3851 | }
|
3852 |
|
3853 | function _classCallCheck(instance, Constructor) {
|
3854 | if (!(instance instanceof Constructor)) {
|
3855 | throw new TypeError("Cannot call a class as a function");
|
3856 | }
|
3857 | }
|
3858 |
|
3859 | function _possibleConstructorReturn(self, call) {
|
3860 | if (!self) {
|
3861 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
3862 | }
|
3863 |
|
3864 | return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
3865 | }
|
3866 |
|
3867 | function _inherits(subClass, superClass) {
|
3868 | if (typeof superClass !== "function" && superClass !== null) {
|
3869 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
3870 | }
|
3871 |
|
3872 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
3873 | constructor: {
|
3874 | value: subClass,
|
3875 | enumerable: false,
|
3876 | writable: true,
|
3877 | configurable: true
|
3878 | }
|
3879 | });
|
3880 | if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
3881 | }
|
3882 |
|
3883 |
|
3884 |
|
3885 |
|
3886 |
|
3887 |
|
3888 |
|
3889 | var Portal = function (_React$Component) {
|
3890 | _inherits(Portal, _React$Component);
|
3891 |
|
3892 | function Portal() {
|
3893 | var _temp, _this, _ret;
|
3894 |
|
3895 | _classCallCheck(this, Portal);
|
3896 |
|
3897 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
3898 | args[_key] = arguments[_key];
|
3899 | }
|
3900 |
|
3901 | return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.setContainer = function () {
|
3902 | var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.props;
|
3903 | _this._portalContainerNode = (0, _getContainer2.default)(props.container, (0, _ownerDocument2.default)(_this).body);
|
3904 | }, _this.getMountNode = function () {
|
3905 | return _this._portalContainerNode;
|
3906 | }, _temp), _possibleConstructorReturn(_this, _ret);
|
3907 | }
|
3908 |
|
3909 | Portal.prototype.componentDidMount = function componentDidMount() {
|
3910 | this.setContainer();
|
3911 | this.forceUpdate(this.props.onRendered);
|
3912 | };
|
3913 |
|
3914 | Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
3915 | if (nextProps.container !== this.props.container) {
|
3916 | this.setContainer(nextProps);
|
3917 | }
|
3918 | };
|
3919 |
|
3920 | Portal.prototype.componentWillUnmount = function componentWillUnmount() {
|
3921 | this._portalContainerNode = null;
|
3922 | };
|
3923 |
|
3924 | Portal.prototype.render = function render() {
|
3925 | return this.props.children && this._portalContainerNode ? _reactDom2.default.createPortal(this.props.children, this._portalContainerNode) : null;
|
3926 | };
|
3927 |
|
3928 | return Portal;
|
3929 | }(_react2.default.Component);
|
3930 |
|
3931 | Portal.displayName = 'Portal';
|
3932 | Portal.propTypes = {
|
3933 | |
3934 |
|
3935 |
|
3936 |
|
3937 | container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
|
3938 | onRendered: _propTypes2.default.func
|
3939 | };
|
3940 | exports.default = _reactDom2.default.createPortal ? Portal : _LegacyPortal2.default;
|
3941 | module.exports = exports['default'];
|
3942 |
|
3943 | }),
|
3944 |
|
3945 | (function(module, exports, __webpack_require__) {
|
3946 |
|
3947 | "use strict";
|
3948 |
|
3949 |
|
3950 | Object.defineProperty(exports, "__esModule", {
|
3951 | value: true
|
3952 | });
|
3953 | exports.default = offset;
|
3954 |
|
3955 | var _contains = __webpack_require__(13);
|
3956 |
|
3957 | var _contains2 = _interopRequireDefault(_contains);
|
3958 |
|
3959 | var _isWindow = __webpack_require__(36);
|
3960 |
|
3961 | var _isWindow2 = _interopRequireDefault(_isWindow);
|
3962 |
|
3963 | var _ownerDocument = __webpack_require__(17);
|
3964 |
|
3965 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
3966 |
|
3967 | function _interopRequireDefault(obj) {
|
3968 | return obj && obj.__esModule ? obj : {
|
3969 | default: obj
|
3970 | };
|
3971 | }
|
3972 |
|
3973 | function offset(node) {
|
3974 | var doc = (0, _ownerDocument2.default)(node),
|
3975 | win = (0, _isWindow2.default)(doc),
|
3976 | docElem = doc && doc.documentElement,
|
3977 | box = {
|
3978 | top: 0,
|
3979 | left: 0,
|
3980 | height: 0,
|
3981 | width: 0
|
3982 | };
|
3983 | if (!doc) return;
|
3984 |
|
3985 | if (!(0, _contains2.default)(docElem, node)) return box;
|
3986 | if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect();
|
3987 |
|
3988 | box = {
|
3989 | top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),
|
3990 | left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0),
|
3991 | width: (box.width == null ? node.offsetWidth : box.width) || 0,
|
3992 | height: (box.height == null ? node.offsetHeight : box.height) || 0
|
3993 | };
|
3994 | return box;
|
3995 | }
|
3996 |
|
3997 | module.exports = exports['default'];
|
3998 |
|
3999 | }),
|
4000 |
|
4001 | (function(module, exports, __webpack_require__) {
|
4002 |
|
4003 | "use strict";
|
4004 |
|
4005 |
|
4006 | Object.defineProperty(exports, "__esModule", {
|
4007 | value: true
|
4008 | });
|
4009 | exports.default = scrollTop;
|
4010 |
|
4011 | var _isWindow = __webpack_require__(36);
|
4012 |
|
4013 | var _isWindow2 = _interopRequireDefault(_isWindow);
|
4014 |
|
4015 | function _interopRequireDefault(obj) {
|
4016 | return obj && obj.__esModule ? obj : {
|
4017 | default: obj
|
4018 | };
|
4019 | }
|
4020 |
|
4021 | function scrollTop(node, val) {
|
4022 | var win = (0, _isWindow2.default)(node);
|
4023 | if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop;
|
4024 | if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val;
|
4025 | }
|
4026 |
|
4027 | module.exports = exports['default'];
|
4028 |
|
4029 | }),
|
4030 |
|
4031 | (function(module, exports, __webpack_require__) {
|
4032 |
|
4033 | module.exports = __webpack_require__(90);
|
4034 |
|
4035 | }),
|
4036 |
|
4037 | (function(module, exports, __webpack_require__) {
|
4038 |
|
4039 | module.exports = __webpack_require__(94);
|
4040 |
|
4041 | }),
|
4042 |
|
4043 | (function(module, exports, __webpack_require__) {
|
4044 |
|
4045 | "use strict";
|
4046 |
|
4047 |
|
4048 | Object.defineProperty(exports, "__esModule", {
|
4049 | value: true
|
4050 | });
|
4051 | exports.properties = exports.end = undefined;
|
4052 |
|
4053 | var _end = __webpack_require__(106);
|
4054 |
|
4055 | var _end2 = _interopRequireDefault(_end);
|
4056 |
|
4057 | var _properties = __webpack_require__(46);
|
4058 |
|
4059 | var _properties2 = _interopRequireDefault(_properties);
|
4060 |
|
4061 | function _interopRequireDefault(obj) {
|
4062 | return obj && obj.__esModule ? obj : {
|
4063 | default: obj
|
4064 | };
|
4065 | }
|
4066 |
|
4067 | exports.end = _end2.default;
|
4068 | exports.properties = _properties2.default;
|
4069 | exports.default = {
|
4070 | end: _end2.default,
|
4071 | properties: _properties2.default
|
4072 | };
|
4073 |
|
4074 | }),
|
4075 |
|
4076 | (function(module, exports, __webpack_require__) {
|
4077 |
|
4078 | module.exports = __webpack_require__(119);
|
4079 |
|
4080 | }),
|
4081 |
|
4082 | (function(module, exports, __webpack_require__) {
|
4083 |
|
4084 | module.exports = __webpack_require__(150);
|
4085 |
|
4086 | }),
|
4087 |
|
4088 | (function(module, exports, __webpack_require__) {
|
4089 |
|
4090 | __webpack_require__(81);
|
4091 |
|
4092 | module.exports = __webpack_require__(8).Object.assign;
|
4093 |
|
4094 | }),
|
4095 |
|
4096 | (function(module, exports, __webpack_require__) {
|
4097 |
|
4098 |
|
4099 | var $export = __webpack_require__(10);
|
4100 |
|
4101 | $export($export.S + $export.F, 'Object', {
|
4102 | assign: __webpack_require__(85)
|
4103 | });
|
4104 |
|
4105 | }),
|
4106 |
|
4107 | (function(module, exports) {
|
4108 |
|
4109 | module.exports = function (it) {
|
4110 | if (typeof it != 'function') throw TypeError(it + ' is not a function!');
|
4111 | return it;
|
4112 | };
|
4113 |
|
4114 | }),
|
4115 |
|
4116 | (function(module, exports, __webpack_require__) {
|
4117 |
|
4118 | module.exports = !__webpack_require__(30) && !__webpack_require__(25)(function () {
|
4119 | return Object.defineProperty(__webpack_require__(57)('div'), 'a', {
|
4120 | get: function () {
|
4121 | return 7;
|
4122 | }
|
4123 | }).a != 7;
|
4124 | });
|
4125 |
|
4126 | }),
|
4127 |
|
4128 | (function(module, exports, __webpack_require__) {
|
4129 |
|
4130 |
|
4131 | var isObject = __webpack_require__(40);
|
4132 |
|
4133 |
|
4134 |
|
4135 | module.exports = function (it, S) {
|
4136 | if (!isObject(it)) return it;
|
4137 | var fn, val;
|
4138 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
|
4139 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
|
4140 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
|
4141 | throw TypeError("Can't convert object to primitive value");
|
4142 | };
|
4143 |
|
4144 | }),
|
4145 |
|
4146 | (function(module, exports, __webpack_require__) {
|
4147 |
|
4148 | "use strict";
|
4149 |
|
4150 |
|
4151 | var getKeys = __webpack_require__(32);
|
4152 |
|
4153 | var gOPS = __webpack_require__(89);
|
4154 |
|
4155 | var pIE = __webpack_require__(64);
|
4156 |
|
4157 | var toObject = __webpack_require__(34);
|
4158 |
|
4159 | var IObject = __webpack_require__(58);
|
4160 |
|
4161 | var $assign = Object.assign;
|
4162 |
|
4163 | module.exports = !$assign || __webpack_require__(25)(function () {
|
4164 | var A = {};
|
4165 | var B = {};
|
4166 |
|
4167 | var S = Symbol();
|
4168 | var K = 'abcdefghijklmnopqrst';
|
4169 | A[S] = 7;
|
4170 | K.split('').forEach(function (k) {
|
4171 | B[k] = k;
|
4172 | });
|
4173 | return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
|
4174 | }) ? function assign(target, source) {
|
4175 |
|
4176 | var T = toObject(target);
|
4177 | var aLen = arguments.length;
|
4178 | var index = 1;
|
4179 | var getSymbols = gOPS.f;
|
4180 | var isEnum = pIE.f;
|
4181 |
|
4182 | while (aLen > index) {
|
4183 | var S = IObject(arguments[index++]);
|
4184 | var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
|
4185 | var length = keys.length;
|
4186 | var j = 0;
|
4187 | var key;
|
4188 |
|
4189 | while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
|
4190 | }
|
4191 |
|
4192 | return T;
|
4193 | } : $assign;
|
4194 |
|
4195 | }),
|
4196 |
|
4197 | (function(module, exports, __webpack_require__) {
|
4198 |
|
4199 | var has = __webpack_require__(31);
|
4200 |
|
4201 | var toIObject = __webpack_require__(42);
|
4202 |
|
4203 | var arrayIndexOf = __webpack_require__(87)(false);
|
4204 |
|
4205 | var IE_PROTO = __webpack_require__(45)('IE_PROTO');
|
4206 |
|
4207 | module.exports = function (object, names) {
|
4208 | var O = toIObject(object);
|
4209 | var i = 0;
|
4210 | var result = [];
|
4211 | var key;
|
4212 |
|
4213 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
|
4214 |
|
4215 |
|
4216 | while (names.length > i) if (has(O, key = names[i++])) {
|
4217 | ~arrayIndexOf(result, key) || result.push(key);
|
4218 | }
|
4219 |
|
4220 | return result;
|
4221 | };
|
4222 |
|
4223 | }),
|
4224 |
|
4225 | (function(module, exports, __webpack_require__) {
|
4226 |
|
4227 |
|
4228 |
|
4229 | var toIObject = __webpack_require__(42);
|
4230 |
|
4231 | var toLength = __webpack_require__(59);
|
4232 |
|
4233 | var toAbsoluteIndex = __webpack_require__(88);
|
4234 |
|
4235 | module.exports = function (IS_INCLUDES) {
|
4236 | return function ($this, el, fromIndex) {
|
4237 | var O = toIObject($this);
|
4238 | var length = toLength(O.length);
|
4239 | var index = toAbsoluteIndex(fromIndex, length);
|
4240 | var value;
|
4241 |
|
4242 |
|
4243 | if (IS_INCLUDES && el != el) while (length > index) {
|
4244 | value = O[index++];
|
4245 |
|
4246 | if (value != value) return true;
|
4247 | } else for (; length > index; index++) if (IS_INCLUDES || index in O) {
|
4248 | if (O[index] === el) return IS_INCLUDES || index || 0;
|
4249 | }
|
4250 | return !IS_INCLUDES && -1;
|
4251 | };
|
4252 | };
|
4253 |
|
4254 | }),
|
4255 |
|
4256 | (function(module, exports, __webpack_require__) {
|
4257 |
|
4258 | var toInteger = __webpack_require__(44);
|
4259 |
|
4260 | var max = Math.max;
|
4261 | var min = Math.min;
|
4262 |
|
4263 | module.exports = function (index, length) {
|
4264 | index = toInteger(index);
|
4265 | return index < 0 ? max(index + length, 0) : min(index, length);
|
4266 | };
|
4267 |
|
4268 | }),
|
4269 |
|
4270 | (function(module, exports) {
|
4271 |
|
4272 | exports.f = Object.getOwnPropertySymbols;
|
4273 |
|
4274 | }),
|
4275 |
|
4276 | (function(module, exports, __webpack_require__) {
|
4277 |
|
4278 | __webpack_require__(91);
|
4279 |
|
4280 | var $Object = __webpack_require__(8).Object;
|
4281 |
|
4282 | module.exports = function create(P, D) {
|
4283 | return $Object.create(P, D);
|
4284 | };
|
4285 |
|
4286 | }),
|
4287 |
|
4288 | (function(module, exports, __webpack_require__) {
|
4289 |
|
4290 | var $export = __webpack_require__(10);
|
4291 |
|
4292 |
|
4293 | $export($export.S, 'Object', {
|
4294 | create: __webpack_require__(65)
|
4295 | });
|
4296 |
|
4297 | }),
|
4298 |
|
4299 | (function(module, exports, __webpack_require__) {
|
4300 |
|
4301 | var dP = __webpack_require__(28);
|
4302 |
|
4303 | var anObject = __webpack_require__(29);
|
4304 |
|
4305 | var getKeys = __webpack_require__(32);
|
4306 |
|
4307 | module.exports = __webpack_require__(30) ? Object.defineProperties : function defineProperties(O, Properties) {
|
4308 | anObject(O);
|
4309 | var keys = getKeys(Properties);
|
4310 | var length = keys.length;
|
4311 | var i = 0;
|
4312 | var P;
|
4313 |
|
4314 | while (length > i) dP.f(O, P = keys[i++], Properties[P]);
|
4315 |
|
4316 | return O;
|
4317 | };
|
4318 |
|
4319 | }),
|
4320 |
|
4321 | (function(module, exports, __webpack_require__) {
|
4322 |
|
4323 | var document = __webpack_require__(19).document;
|
4324 |
|
4325 | module.exports = document && document.documentElement;
|
4326 |
|
4327 | }),
|
4328 |
|
4329 | (function(module, exports, __webpack_require__) {
|
4330 |
|
4331 | __webpack_require__(95);
|
4332 |
|
4333 | module.exports = __webpack_require__(8).Object.keys;
|
4334 |
|
4335 | }),
|
4336 |
|
4337 | (function(module, exports, __webpack_require__) {
|
4338 |
|
4339 |
|
4340 | var toObject = __webpack_require__(34);
|
4341 |
|
4342 | var $keys = __webpack_require__(32);
|
4343 |
|
4344 | __webpack_require__(96)('keys', function () {
|
4345 | return function keys(it) {
|
4346 | return $keys(toObject(it));
|
4347 | };
|
4348 | });
|
4349 |
|
4350 | }),
|
4351 |
|
4352 | (function(module, exports, __webpack_require__) {
|
4353 |
|
4354 |
|
4355 | var $export = __webpack_require__(10);
|
4356 |
|
4357 | var core = __webpack_require__(8);
|
4358 |
|
4359 | var fails = __webpack_require__(25);
|
4360 |
|
4361 | module.exports = function (KEY, exec) {
|
4362 | var fn = (core.Object || {})[KEY] || Object[KEY];
|
4363 | var exp = {};
|
4364 | exp[KEY] = exec(fn);
|
4365 | $export($export.S + $export.F * fails(function () {
|
4366 | fn(1);
|
4367 | }), 'Object', exp);
|
4368 | };
|
4369 |
|
4370 | }),
|
4371 |
|
4372 | (function(module, exports, __webpack_require__) {
|
4373 |
|
4374 | "use strict";
|
4375 |
|
4376 |
|
4377 |
|
4378 |
|
4379 |
|
4380 |
|
4381 |
|
4382 |
|
4383 | var ReactPropTypesSecret = __webpack_require__(98);
|
4384 |
|
4385 | function emptyFunction() {}
|
4386 |
|
4387 | module.exports = function () {
|
4388 | function shim(props, propName, componentName, location, propFullName, secret) {
|
4389 | if (secret === ReactPropTypesSecret) {
|
4390 |
|
4391 | return;
|
4392 | }
|
4393 |
|
4394 | var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
4395 | err.name = 'Invariant Violation';
|
4396 | throw err;
|
4397 | }
|
4398 |
|
4399 | ;
|
4400 | shim.isRequired = shim;
|
4401 |
|
4402 | function getShim() {
|
4403 | return shim;
|
4404 | }
|
4405 |
|
4406 | ;
|
4407 |
|
4408 |
|
4409 | var ReactPropTypes = {
|
4410 | array: shim,
|
4411 | bool: shim,
|
4412 | func: shim,
|
4413 | number: shim,
|
4414 | object: shim,
|
4415 | string: shim,
|
4416 | symbol: shim,
|
4417 | any: shim,
|
4418 | arrayOf: getShim,
|
4419 | element: shim,
|
4420 | instanceOf: getShim,
|
4421 | node: shim,
|
4422 | objectOf: getShim,
|
4423 | oneOf: getShim,
|
4424 | oneOfType: getShim,
|
4425 | shape: getShim,
|
4426 | exact: getShim
|
4427 | };
|
4428 | ReactPropTypes.checkPropTypes = emptyFunction;
|
4429 | ReactPropTypes.PropTypes = ReactPropTypes;
|
4430 | return ReactPropTypes;
|
4431 | };
|
4432 |
|
4433 | }),
|
4434 |
|
4435 | (function(module, exports, __webpack_require__) {
|
4436 |
|
4437 | "use strict";
|
4438 |
|
4439 |
|
4440 |
|
4441 |
|
4442 |
|
4443 |
|
4444 |
|
4445 |
|
4446 | var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
4447 | module.exports = ReactPropTypesSecret;
|
4448 |
|
4449 | }),
|
4450 |
|
4451 | (function(module, exports, __webpack_require__) {
|
4452 |
|
4453 | "use strict";
|
4454 |
|
4455 |
|
4456 | exports.__esModule = true;
|
4457 | exports.uncontrolledPropTypes = uncontrolledPropTypes;
|
4458 | exports.isProp = isProp;
|
4459 | exports.defaultKey = defaultKey;
|
4460 | exports.isReactComponent = isReactComponent;
|
4461 |
|
4462 | var _invariant = _interopRequireDefault(__webpack_require__(21));
|
4463 |
|
4464 | function _interopRequireDefault(obj) {
|
4465 | return obj && obj.__esModule ? obj : {
|
4466 | default: obj
|
4467 | };
|
4468 | }
|
4469 |
|
4470 | var noop = function noop() {};
|
4471 |
|
4472 | function readOnlyPropType(handler, name) {
|
4473 | return function (props, propName) {
|
4474 | if (props[propName] !== undefined) {
|
4475 | if (!props[handler]) {
|
4476 | return new Error("You have provided a `" + propName + "` prop to `" + name + "` " + ("without an `" + handler + "` handler prop. This will render a read-only field. ") + ("If the field should be mutable use `" + defaultKey(propName) + "`. ") + ("Otherwise, set `" + handler + "`."));
|
4477 | }
|
4478 | }
|
4479 | };
|
4480 | }
|
4481 |
|
4482 | function uncontrolledPropTypes(controlledValues, displayName) {
|
4483 | var propTypes = {};
|
4484 | Object.keys(controlledValues).forEach(function (prop) {
|
4485 |
|
4486 | propTypes[defaultKey(prop)] = noop;
|
4487 |
|
4488 | if (false) { var handler; }
|
4489 | });
|
4490 | return propTypes;
|
4491 | }
|
4492 |
|
4493 | function isProp(props, prop) {
|
4494 | return props[prop] !== undefined;
|
4495 | }
|
4496 |
|
4497 | function defaultKey(key) {
|
4498 | return 'default' + key.charAt(0).toUpperCase() + key.substr(1);
|
4499 | }
|
4500 |
|
4501 |
|
4502 |
|
4503 |
|
4504 |
|
4505 |
|
4506 |
|
4507 |
|
4508 |
|
4509 |
|
4510 | function isReactComponent(component) {
|
4511 | return !!(component && component.prototype && component.prototype.isReactComponent);
|
4512 | }
|
4513 |
|
4514 | }),
|
4515 |
|
4516 | (function(module, exports, __webpack_require__) {
|
4517 |
|
4518 | __webpack_require__(101);
|
4519 |
|
4520 | module.exports = __webpack_require__(8).Object.entries;
|
4521 |
|
4522 | }),
|
4523 |
|
4524 | (function(module, exports, __webpack_require__) {
|
4525 |
|
4526 |
|
4527 | var $export = __webpack_require__(10);
|
4528 |
|
4529 | var $entries = __webpack_require__(66)(true);
|
4530 |
|
4531 | $export($export.S, 'Object', {
|
4532 | entries: function entries(it) {
|
4533 | return $entries(it);
|
4534 | }
|
4535 | });
|
4536 |
|
4537 | }),
|
4538 |
|
4539 | (function(module, exports, __webpack_require__) {
|
4540 |
|
4541 | __webpack_require__(103);
|
4542 |
|
4543 | module.exports = __webpack_require__(8).Object.values;
|
4544 |
|
4545 | }),
|
4546 |
|
4547 | (function(module, exports, __webpack_require__) {
|
4548 |
|
4549 |
|
4550 | var $export = __webpack_require__(10);
|
4551 |
|
4552 | var $values = __webpack_require__(66)(false);
|
4553 |
|
4554 | $export($export.S, 'Object', {
|
4555 | values: function values(it) {
|
4556 | return $values(it);
|
4557 | }
|
4558 | });
|
4559 |
|
4560 | }),
|
4561 |
|
4562 | (function(module, exports, __webpack_require__) {
|
4563 |
|
4564 | "use strict";
|
4565 |
|
4566 |
|
4567 | if (true) {
|
4568 | module.exports = __webpack_require__(105);
|
4569 | } else {}
|
4570 |
|
4571 | }),
|
4572 |
|
4573 | (function(module, exports, __webpack_require__) {
|
4574 |
|
4575 | "use strict";
|
4576 |
|
4577 |
|
4578 |
|
4579 |
|
4580 |
|
4581 |
|
4582 |
|
4583 |
|
4584 |
|
4585 |
|
4586 | Object.defineProperty(exports, "__esModule", {
|
4587 | value: !0
|
4588 | });
|
4589 | var b = "function" === typeof Symbol && Symbol.for,
|
4590 | c = b ? Symbol.for("react.element") : 60103,
|
4591 | d = b ? Symbol.for("react.portal") : 60106,
|
4592 | e = b ? Symbol.for("react.fragment") : 60107,
|
4593 | f = b ? Symbol.for("react.strict_mode") : 60108,
|
4594 | g = b ? Symbol.for("react.profiler") : 60114,
|
4595 | h = b ? Symbol.for("react.provider") : 60109,
|
4596 | k = b ? Symbol.for("react.context") : 60110,
|
4597 | l = b ? Symbol.for("react.async_mode") : 60111,
|
4598 | m = b ? Symbol.for("react.forward_ref") : 60112,
|
4599 | n = b ? Symbol.for("react.timeout") : 60113;
|
4600 |
|
4601 | function q(a) {
|
4602 | if ("object" === typeof a && null !== a) {
|
4603 | var p = a.$$typeof;
|
4604 |
|
4605 | switch (p) {
|
4606 | case c:
|
4607 | switch (a = a.type, a) {
|
4608 | case l:
|
4609 | case e:
|
4610 | case g:
|
4611 | case f:
|
4612 | return a;
|
4613 |
|
4614 | default:
|
4615 | switch (a = a && a.$$typeof, a) {
|
4616 | case k:
|
4617 | case m:
|
4618 | case h:
|
4619 | return a;
|
4620 |
|
4621 | default:
|
4622 | return p;
|
4623 | }
|
4624 |
|
4625 | }
|
4626 |
|
4627 | case d:
|
4628 | return p;
|
4629 | }
|
4630 | }
|
4631 | }
|
4632 |
|
4633 | exports.typeOf = q;
|
4634 | exports.AsyncMode = l;
|
4635 | exports.ContextConsumer = k;
|
4636 | exports.ContextProvider = h;
|
4637 | exports.Element = c;
|
4638 | exports.ForwardRef = m;
|
4639 | exports.Fragment = e;
|
4640 | exports.Profiler = g;
|
4641 | exports.Portal = d;
|
4642 | exports.StrictMode = f;
|
4643 |
|
4644 | exports.isValidElementType = function (a) {
|
4645 | return "string" === typeof a || "function" === typeof a || a === e || a === l || a === g || a === f || a === n || "object" === typeof a && null !== a && (a.$$typeof === h || a.$$typeof === k || a.$$typeof === m);
|
4646 | };
|
4647 |
|
4648 | exports.isAsyncMode = function (a) {
|
4649 | return q(a) === l;
|
4650 | };
|
4651 |
|
4652 | exports.isContextConsumer = function (a) {
|
4653 | return q(a) === k;
|
4654 | };
|
4655 |
|
4656 | exports.isContextProvider = function (a) {
|
4657 | return q(a) === h;
|
4658 | };
|
4659 |
|
4660 | exports.isElement = function (a) {
|
4661 | return "object" === typeof a && null !== a && a.$$typeof === c;
|
4662 | };
|
4663 |
|
4664 | exports.isForwardRef = function (a) {
|
4665 | return q(a) === m;
|
4666 | };
|
4667 |
|
4668 | exports.isFragment = function (a) {
|
4669 | return q(a) === e;
|
4670 | };
|
4671 |
|
4672 | exports.isProfiler = function (a) {
|
4673 | return q(a) === g;
|
4674 | };
|
4675 |
|
4676 | exports.isPortal = function (a) {
|
4677 | return q(a) === d;
|
4678 | };
|
4679 |
|
4680 | exports.isStrictMode = function (a) {
|
4681 | return q(a) === f;
|
4682 | };
|
4683 |
|
4684 | }),
|
4685 |
|
4686 | (function(module, exports, __webpack_require__) {
|
4687 |
|
4688 | "use strict";
|
4689 |
|
4690 |
|
4691 | Object.defineProperty(exports, "__esModule", {
|
4692 | value: true
|
4693 | });
|
4694 |
|
4695 | var _properties = __webpack_require__(46);
|
4696 |
|
4697 | var _properties2 = _interopRequireDefault(_properties);
|
4698 |
|
4699 | var _style = __webpack_require__(18);
|
4700 |
|
4701 | var _style2 = _interopRequireDefault(_style);
|
4702 |
|
4703 | function _interopRequireDefault(obj) {
|
4704 | return obj && obj.__esModule ? obj : {
|
4705 | default: obj
|
4706 | };
|
4707 | }
|
4708 |
|
4709 | function onEnd(node, handler, duration) {
|
4710 | var fakeEvent = {
|
4711 | target: node,
|
4712 | currentTarget: node
|
4713 | },
|
4714 | backup;
|
4715 | if (!_properties2.default.end) duration = 0;else if (duration == null) duration = parseDuration(node) || 0;
|
4716 |
|
4717 | if (_properties2.default.end) {
|
4718 | node.addEventListener(_properties2.default.end, done, false);
|
4719 | backup = setTimeout(function () {
|
4720 | return done(fakeEvent);
|
4721 | }, (duration || 100) * 1.5);
|
4722 | } else setTimeout(done.bind(null, fakeEvent), 0);
|
4723 |
|
4724 | function done(event) {
|
4725 | if (event.target !== event.currentTarget) return;
|
4726 | clearTimeout(backup);
|
4727 | event.target.removeEventListener(_properties2.default.end, done);
|
4728 | handler.call(this);
|
4729 | }
|
4730 | }
|
4731 |
|
4732 | onEnd._parseDuration = parseDuration;
|
4733 | exports.default = onEnd;
|
4734 |
|
4735 | function parseDuration(node) {
|
4736 | var str = (0, _style2.default)(node, _properties2.default.duration),
|
4737 | mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
4738 | return parseFloat(str) * mult;
|
4739 | }
|
4740 |
|
4741 | module.exports = exports['default'];
|
4742 |
|
4743 | }),
|
4744 |
|
4745 | (function(module, exports, __webpack_require__) {
|
4746 |
|
4747 | "use strict";
|
4748 |
|
4749 |
|
4750 | Object.defineProperty(exports, "__esModule", {
|
4751 | value: true
|
4752 | });
|
4753 | exports.default = camelize;
|
4754 | var rHyphen = /-(.)/g;
|
4755 |
|
4756 | function camelize(string) {
|
4757 | return string.replace(rHyphen, function (_, chr) {
|
4758 | return chr.toUpperCase();
|
4759 | });
|
4760 | }
|
4761 |
|
4762 | module.exports = exports["default"];
|
4763 |
|
4764 | }),
|
4765 |
|
4766 | (function(module, exports, __webpack_require__) {
|
4767 |
|
4768 | "use strict";
|
4769 |
|
4770 |
|
4771 | Object.defineProperty(exports, "__esModule", {
|
4772 | value: true
|
4773 | });
|
4774 | exports.default = hyphenateStyleName;
|
4775 |
|
4776 | var _hyphenate = __webpack_require__(109);
|
4777 |
|
4778 | var _hyphenate2 = _interopRequireDefault(_hyphenate);
|
4779 |
|
4780 | function _interopRequireDefault(obj) {
|
4781 | return obj && obj.__esModule ? obj : {
|
4782 | default: obj
|
4783 | };
|
4784 | }
|
4785 |
|
4786 | var msPattern = /^ms-/;
|
4787 |
|
4788 |
|
4789 |
|
4790 |
|
4791 |
|
4792 |
|
4793 | function hyphenateStyleName(string) {
|
4794 | return (0, _hyphenate2.default)(string).replace(msPattern, '-ms-');
|
4795 | }
|
4796 |
|
4797 | module.exports = exports['default'];
|
4798 |
|
4799 | }),
|
4800 |
|
4801 | (function(module, exports, __webpack_require__) {
|
4802 |
|
4803 | "use strict";
|
4804 |
|
4805 |
|
4806 | Object.defineProperty(exports, "__esModule", {
|
4807 | value: true
|
4808 | });
|
4809 | exports.default = hyphenate;
|
4810 | var rUpper = /([A-Z])/g;
|
4811 |
|
4812 | function hyphenate(string) {
|
4813 | return string.replace(rUpper, '-$1').toLowerCase();
|
4814 | }
|
4815 |
|
4816 | module.exports = exports['default'];
|
4817 |
|
4818 | }),
|
4819 |
|
4820 | (function(module, exports, __webpack_require__) {
|
4821 |
|
4822 | "use strict";
|
4823 |
|
4824 |
|
4825 | Object.defineProperty(exports, "__esModule", {
|
4826 | value: true
|
4827 | });
|
4828 | exports.default = _getComputedStyle;
|
4829 |
|
4830 | var _camelizeStyle = __webpack_require__(67);
|
4831 |
|
4832 | var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle);
|
4833 |
|
4834 | function _interopRequireDefault(obj) {
|
4835 | return obj && obj.__esModule ? obj : {
|
4836 | default: obj
|
4837 | };
|
4838 | }
|
4839 |
|
4840 | var rposition = /^(top|right|bottom|left)$/;
|
4841 | var rnumnonpx = /^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;
|
4842 |
|
4843 | function _getComputedStyle(node) {
|
4844 | if (!node) throw new TypeError('No Element passed to `getComputedStyle()`');
|
4845 | var doc = node.ownerDocument;
|
4846 | return 'defaultView' in doc ? doc.defaultView.opener ? node.ownerDocument.defaultView.getComputedStyle(node, null) : window.getComputedStyle(node, null) : {
|
4847 |
|
4848 | getPropertyValue: function getPropertyValue(prop) {
|
4849 | var style = node.style;
|
4850 | prop = (0, _camelizeStyle2.default)(prop);
|
4851 | if (prop == 'float') prop = 'styleFloat';
|
4852 | var current = node.currentStyle[prop] || null;
|
4853 | if (current == null && style && style[prop]) current = style[prop];
|
4854 |
|
4855 | if (rnumnonpx.test(current) && !rposition.test(prop)) {
|
4856 |
|
4857 | var left = style.left;
|
4858 | var runStyle = node.runtimeStyle;
|
4859 | var rsLeft = runStyle && runStyle.left;
|
4860 |
|
4861 | if (rsLeft) runStyle.left = node.currentStyle.left;
|
4862 | style.left = prop === 'fontSize' ? '1em' : current;
|
4863 | current = style.pixelLeft + 'px';
|
4864 |
|
4865 | style.left = left;
|
4866 | if (rsLeft) runStyle.left = rsLeft;
|
4867 | }
|
4868 |
|
4869 | return current;
|
4870 | }
|
4871 | };
|
4872 | }
|
4873 |
|
4874 | module.exports = exports['default'];
|
4875 |
|
4876 | }),
|
4877 |
|
4878 | (function(module, exports, __webpack_require__) {
|
4879 |
|
4880 | "use strict";
|
4881 |
|
4882 |
|
4883 | Object.defineProperty(exports, "__esModule", {
|
4884 | value: true
|
4885 | });
|
4886 | exports.default = removeStyle;
|
4887 |
|
4888 | function removeStyle(node, key) {
|
4889 | return 'removeProperty' in node.style ? node.style.removeProperty(key) : node.style.removeAttribute(key);
|
4890 | }
|
4891 |
|
4892 | module.exports = exports['default'];
|
4893 |
|
4894 | }),
|
4895 |
|
4896 | (function(module, exports, __webpack_require__) {
|
4897 |
|
4898 | "use strict";
|
4899 |
|
4900 |
|
4901 | Object.defineProperty(exports, "__esModule", {
|
4902 | value: true
|
4903 | });
|
4904 | exports.default = isTransform;
|
4905 | var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
|
4906 |
|
4907 | function isTransform(property) {
|
4908 | return !!(property && supportedTransforms.test(property));
|
4909 | }
|
4910 |
|
4911 | module.exports = exports["default"];
|
4912 |
|
4913 | }),
|
4914 |
|
4915 | (function(module, exports, __webpack_require__) {
|
4916 |
|
4917 | __webpack_require__(114);
|
4918 |
|
4919 | module.exports = __webpack_require__(8).parseInt;
|
4920 |
|
4921 | }),
|
4922 |
|
4923 | (function(module, exports, __webpack_require__) {
|
4924 |
|
4925 | var $export = __webpack_require__(10);
|
4926 |
|
4927 | var $parseInt = __webpack_require__(115);
|
4928 |
|
4929 |
|
4930 | $export($export.G + $export.F * (parseInt != $parseInt), {
|
4931 | parseInt: $parseInt
|
4932 | });
|
4933 |
|
4934 | }),
|
4935 |
|
4936 | (function(module, exports, __webpack_require__) {
|
4937 |
|
4938 | var $parseInt = __webpack_require__(19).parseInt;
|
4939 |
|
4940 | var $trim = __webpack_require__(116).trim;
|
4941 |
|
4942 | var ws = __webpack_require__(68);
|
4943 |
|
4944 | var hex = /^[-+]?0[xX]/;
|
4945 | module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {
|
4946 | var string = $trim(String(str), 3);
|
4947 | return $parseInt(string, radix >>> 0 || (hex.test(string) ? 16 : 10));
|
4948 | } : $parseInt;
|
4949 |
|
4950 | }),
|
4951 |
|
4952 | (function(module, exports, __webpack_require__) {
|
4953 |
|
4954 | var $export = __webpack_require__(10);
|
4955 |
|
4956 | var defined = __webpack_require__(33);
|
4957 |
|
4958 | var fails = __webpack_require__(25);
|
4959 |
|
4960 | var spaces = __webpack_require__(68);
|
4961 |
|
4962 | var space = '[' + spaces + ']';
|
4963 | var non = '\u200b\u0085';
|
4964 | var ltrim = RegExp('^' + space + space + '*');
|
4965 | var rtrim = RegExp(space + space + '*$');
|
4966 |
|
4967 | var exporter = function (KEY, exec, ALIAS) {
|
4968 | var exp = {};
|
4969 | var FORCE = fails(function () {
|
4970 | return !!spaces[KEY]() || non[KEY]() != non;
|
4971 | });
|
4972 | var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
|
4973 | if (ALIAS) exp[ALIAS] = fn;
|
4974 | $export($export.P + $export.F * FORCE, 'String', exp);
|
4975 | };
|
4976 |
|
4977 |
|
4978 |
|
4979 |
|
4980 | var trim = exporter.trim = function (string, TYPE) {
|
4981 | string = String(defined(string));
|
4982 | if (TYPE & 1) string = string.replace(ltrim, '');
|
4983 | if (TYPE & 2) string = string.replace(rtrim, '');
|
4984 | return string;
|
4985 | };
|
4986 |
|
4987 | module.exports = exporter;
|
4988 |
|
4989 | }),
|
4990 |
|
4991 | (function(module, __webpack_exports__, __webpack_require__) {
|
4992 |
|
4993 | "use strict";
|
4994 | __webpack_require__.r(__webpack_exports__);
|
4995 | __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; });
|
4996 |
|
4997 |
|
4998 |
|
4999 |
|
5000 |
|
5001 |
|
5002 | function componentWillMount() {
|
5003 |
|
5004 | var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
5005 |
|
5006 | if (state !== null && state !== undefined) {
|
5007 | this.setState(state);
|
5008 | }
|
5009 | }
|
5010 |
|
5011 | function componentWillReceiveProps(nextProps) {
|
5012 |
|
5013 |
|
5014 | function updater(prevState) {
|
5015 | var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
|
5016 | return state !== null && state !== undefined ? state : null;
|
5017 | }
|
5018 |
|
5019 |
|
5020 | this.setState(updater.bind(this));
|
5021 | }
|
5022 |
|
5023 | function componentWillUpdate(nextProps, nextState) {
|
5024 | try {
|
5025 | var prevProps = this.props;
|
5026 | var prevState = this.state;
|
5027 | this.props = nextProps;
|
5028 | this.state = nextState;
|
5029 | this.__reactInternalSnapshotFlag = true;
|
5030 | this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(prevProps, prevState);
|
5031 | } finally {
|
5032 | this.props = prevProps;
|
5033 | this.state = prevState;
|
5034 | }
|
5035 | }
|
5036 |
|
5037 |
|
5038 |
|
5039 | componentWillMount.__suppressDeprecationWarning = true;
|
5040 | componentWillReceiveProps.__suppressDeprecationWarning = true;
|
5041 | componentWillUpdate.__suppressDeprecationWarning = true;
|
5042 |
|
5043 | function polyfill(Component) {
|
5044 | var prototype = Component.prototype;
|
5045 |
|
5046 | if (!prototype || !prototype.isReactComponent) {
|
5047 | throw new Error('Can only polyfill class components');
|
5048 | }
|
5049 |
|
5050 | if (typeof Component.getDerivedStateFromProps !== 'function' && typeof prototype.getSnapshotBeforeUpdate !== 'function') {
|
5051 | return Component;
|
5052 | }
|
5053 |
|
5054 |
|
5055 |
|
5056 |
|
5057 | var foundWillMountName = null;
|
5058 | var foundWillReceivePropsName = null;
|
5059 | var foundWillUpdateName = null;
|
5060 |
|
5061 | if (typeof prototype.componentWillMount === 'function') {
|
5062 | foundWillMountName = 'componentWillMount';
|
5063 | } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
|
5064 | foundWillMountName = 'UNSAFE_componentWillMount';
|
5065 | }
|
5066 |
|
5067 | if (typeof prototype.componentWillReceiveProps === 'function') {
|
5068 | foundWillReceivePropsName = 'componentWillReceiveProps';
|
5069 | } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
|
5070 | foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
|
5071 | }
|
5072 |
|
5073 | if (typeof prototype.componentWillUpdate === 'function') {
|
5074 | foundWillUpdateName = 'componentWillUpdate';
|
5075 | } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
|
5076 | foundWillUpdateName = 'UNSAFE_componentWillUpdate';
|
5077 | }
|
5078 |
|
5079 | if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
|
5080 | var componentName = Component.displayName || Component.name;
|
5081 | var newApiName = typeof Component.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
|
5082 | throw Error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + componentName + ' uses ' + newApiName + ' but also contains the following legacy lifecycles:' + (foundWillMountName !== null ? '\n ' + foundWillMountName : '') + (foundWillReceivePropsName !== null ? '\n ' + foundWillReceivePropsName : '') + (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-async-component-lifecycle-hooks');
|
5083 | }
|
5084 |
|
5085 |
|
5086 |
|
5087 |
|
5088 | if (typeof Component.getDerivedStateFromProps === 'function') {
|
5089 | prototype.componentWillMount = componentWillMount;
|
5090 | prototype.componentWillReceiveProps = componentWillReceiveProps;
|
5091 | }
|
5092 |
|
5093 |
|
5094 |
|
5095 |
|
5096 | if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
|
5097 | if (typeof prototype.componentDidUpdate !== 'function') {
|
5098 | throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype');
|
5099 | }
|
5100 |
|
5101 | prototype.componentWillUpdate = componentWillUpdate;
|
5102 | var componentDidUpdate = prototype.componentDidUpdate;
|
5103 |
|
5104 | prototype.componentDidUpdate = function componentDidUpdatePolyfill(prevProps, prevState, maybeSnapshot) {
|
5105 |
|
5106 |
|
5107 |
|
5108 |
|
5109 |
|
5110 |
|
5111 |
|
5112 |
|
5113 | var snapshot = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : maybeSnapshot;
|
5114 | componentDidUpdate.call(this, prevProps, prevState, snapshot);
|
5115 | };
|
5116 | }
|
5117 |
|
5118 | return Component;
|
5119 | }
|
5120 |
|
5121 |
|
5122 |
|
5123 | }),
|
5124 |
|
5125 | (function(module, exports, __webpack_require__) {
|
5126 |
|
5127 | "use strict";
|
5128 |
|
5129 |
|
5130 | exports.__esModule = true;
|
5131 | exports.classNamesShape = exports.timeoutsShape = undefined;
|
5132 | exports.transitionTimeout = transitionTimeout;
|
5133 |
|
5134 | var _propTypes = __webpack_require__(0);
|
5135 |
|
5136 | var _propTypes2 = _interopRequireDefault(_propTypes);
|
5137 |
|
5138 | function _interopRequireDefault(obj) {
|
5139 | return obj && obj.__esModule ? obj : {
|
5140 | default: obj
|
5141 | };
|
5142 | }
|
5143 |
|
5144 | function transitionTimeout(transitionType) {
|
5145 | var timeoutPropName = 'transition' + transitionType + 'Timeout';
|
5146 | var enabledPropName = 'transition' + transitionType;
|
5147 | return function (props) {
|
5148 |
|
5149 | if (props[enabledPropName]) {
|
5150 |
|
5151 | if (props[timeoutPropName] == null) {
|
5152 | return new Error(timeoutPropName + ' wasn\'t supplied to CSSTransitionGroup: ' + 'this can cause unreliable animations and won\'t be supported in ' + 'a future version of React. See ' + 'https://fb.me/react-animation-transition-group-timeout for more ' + 'information.');
|
5153 | } else if (typeof props[timeoutPropName] !== 'number') {
|
5154 | return new Error(timeoutPropName + ' must be a number (in milliseconds)');
|
5155 | }
|
5156 | }
|
5157 |
|
5158 | return null;
|
5159 | };
|
5160 | }
|
5161 |
|
5162 | var timeoutsShape = exports.timeoutsShape = _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.shape({
|
5163 | enter: _propTypes2.default.number,
|
5164 | exit: _propTypes2.default.number
|
5165 | }).isRequired]);
|
5166 |
|
5167 | var classNamesShape = exports.classNamesShape = _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({
|
5168 | enter: _propTypes2.default.string,
|
5169 | exit: _propTypes2.default.string,
|
5170 | active: _propTypes2.default.string
|
5171 | }), _propTypes2.default.shape({
|
5172 | enter: _propTypes2.default.string,
|
5173 | enterDone: _propTypes2.default.string,
|
5174 | enterActive: _propTypes2.default.string,
|
5175 | exit: _propTypes2.default.string,
|
5176 | exitDone: _propTypes2.default.string,
|
5177 | exitActive: _propTypes2.default.string
|
5178 | })]);
|
5179 |
|
5180 | }),
|
5181 |
|
5182 | (function(module, exports, __webpack_require__) {
|
5183 |
|
5184 | __webpack_require__(120);
|
5185 |
|
5186 | __webpack_require__(126);
|
5187 |
|
5188 | module.exports = __webpack_require__(8).Array.from;
|
5189 |
|
5190 | }),
|
5191 |
|
5192 | (function(module, exports, __webpack_require__) {
|
5193 |
|
5194 | "use strict";
|
5195 |
|
5196 |
|
5197 | var $at = __webpack_require__(121)(true);
|
5198 |
|
5199 |
|
5200 | __webpack_require__(122)(String, 'String', function (iterated) {
|
5201 | this._t = String(iterated);
|
5202 |
|
5203 | this._i = 0;
|
5204 |
|
5205 | }, function () {
|
5206 | var O = this._t;
|
5207 | var index = this._i;
|
5208 | var point;
|
5209 | if (index >= O.length) return {
|
5210 | value: undefined,
|
5211 | done: true
|
5212 | };
|
5213 | point = $at(O, index);
|
5214 | this._i += point.length;
|
5215 | return {
|
5216 | value: point,
|
5217 | done: false
|
5218 | };
|
5219 | });
|
5220 |
|
5221 | }),
|
5222 |
|
5223 | (function(module, exports, __webpack_require__) {
|
5224 |
|
5225 | var toInteger = __webpack_require__(44);
|
5226 |
|
5227 | var defined = __webpack_require__(33);
|
5228 |
|
5229 |
|
5230 |
|
5231 | module.exports = function (TO_STRING) {
|
5232 | return function (that, pos) {
|
5233 | var s = String(defined(that));
|
5234 | var i = toInteger(pos);
|
5235 | var l = s.length;
|
5236 | var a, b;
|
5237 | if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
|
5238 | a = s.charCodeAt(i);
|
5239 | return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
|
5240 | };
|
5241 | };
|
5242 |
|
5243 | }),
|
5244 |
|
5245 | (function(module, exports, __webpack_require__) {
|
5246 |
|
5247 | "use strict";
|
5248 |
|
5249 |
|
5250 | var LIBRARY = __webpack_require__(61);
|
5251 |
|
5252 | var $export = __webpack_require__(10);
|
5253 |
|
5254 | var redefine = __webpack_require__(123);
|
5255 |
|
5256 | var hide = __webpack_require__(27);
|
5257 |
|
5258 | var Iterators = __webpack_require__(47);
|
5259 |
|
5260 | var $iterCreate = __webpack_require__(124);
|
5261 |
|
5262 | var setToStringTag = __webpack_require__(69);
|
5263 |
|
5264 | var getPrototypeOf = __webpack_require__(125);
|
5265 |
|
5266 | var ITERATOR = __webpack_require__(16)('iterator');
|
5267 |
|
5268 | var BUGGY = !([].keys && 'next' in [].keys());
|
5269 |
|
5270 | var FF_ITERATOR = '@@iterator';
|
5271 | var KEYS = 'keys';
|
5272 | var VALUES = 'values';
|
5273 |
|
5274 | var returnThis = function () {
|
5275 | return this;
|
5276 | };
|
5277 |
|
5278 | module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
|
5279 | $iterCreate(Constructor, NAME, next);
|
5280 |
|
5281 | var getMethod = function (kind) {
|
5282 | if (!BUGGY && kind in proto) return proto[kind];
|
5283 |
|
5284 | switch (kind) {
|
5285 | case KEYS:
|
5286 | return function keys() {
|
5287 | return new Constructor(this, kind);
|
5288 | };
|
5289 |
|
5290 | case VALUES:
|
5291 | return function values() {
|
5292 | return new Constructor(this, kind);
|
5293 | };
|
5294 | }
|
5295 |
|
5296 | return function entries() {
|
5297 | return new Constructor(this, kind);
|
5298 | };
|
5299 | };
|
5300 |
|
5301 | var TAG = NAME + ' Iterator';
|
5302 | var DEF_VALUES = DEFAULT == VALUES;
|
5303 | var VALUES_BUG = false;
|
5304 | var proto = Base.prototype;
|
5305 | var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
|
5306 | var $default = $native || getMethod(DEFAULT);
|
5307 | var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
|
5308 | var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
|
5309 | var methods, key, IteratorPrototype;
|
5310 |
|
5311 | if ($anyNative) {
|
5312 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
|
5313 |
|
5314 | if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
|
5315 |
|
5316 | setToStringTag(IteratorPrototype, TAG, true);
|
5317 |
|
5318 | if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
|
5319 | }
|
5320 | }
|
5321 |
|
5322 |
|
5323 | if (DEF_VALUES && $native && $native.name !== VALUES) {
|
5324 | VALUES_BUG = true;
|
5325 |
|
5326 | $default = function values() {
|
5327 | return $native.call(this);
|
5328 | };
|
5329 | }
|
5330 |
|
5331 |
|
5332 | if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
|
5333 | hide(proto, ITERATOR, $default);
|
5334 | }
|
5335 |
|
5336 |
|
5337 | Iterators[NAME] = $default;
|
5338 | Iterators[TAG] = returnThis;
|
5339 |
|
5340 | if (DEFAULT) {
|
5341 | methods = {
|
5342 | values: DEF_VALUES ? $default : getMethod(VALUES),
|
5343 | keys: IS_SET ? $default : getMethod(KEYS),
|
5344 | entries: $entries
|
5345 | };
|
5346 | if (FORCED) for (key in methods) {
|
5347 | if (!(key in proto)) redefine(proto, key, methods[key]);
|
5348 | } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
|
5349 | }
|
5350 |
|
5351 | return methods;
|
5352 | };
|
5353 |
|
5354 | }),
|
5355 |
|
5356 | (function(module, exports, __webpack_require__) {
|
5357 |
|
5358 | module.exports = __webpack_require__(27);
|
5359 |
|
5360 | }),
|
5361 |
|
5362 | (function(module, exports, __webpack_require__) {
|
5363 |
|
5364 | "use strict";
|
5365 |
|
5366 |
|
5367 | var create = __webpack_require__(65);
|
5368 |
|
5369 | var descriptor = __webpack_require__(41);
|
5370 |
|
5371 | var setToStringTag = __webpack_require__(69);
|
5372 |
|
5373 | var IteratorPrototype = {};
|
5374 |
|
5375 | __webpack_require__(27)(IteratorPrototype, __webpack_require__(16)('iterator'), function () {
|
5376 | return this;
|
5377 | });
|
5378 |
|
5379 | module.exports = function (Constructor, NAME, next) {
|
5380 | Constructor.prototype = create(IteratorPrototype, {
|
5381 | next: descriptor(1, next)
|
5382 | });
|
5383 | setToStringTag(Constructor, NAME + ' Iterator');
|
5384 | };
|
5385 |
|
5386 | }),
|
5387 |
|
5388 | (function(module, exports, __webpack_require__) {
|
5389 |
|
5390 |
|
5391 | var has = __webpack_require__(31);
|
5392 |
|
5393 | var toObject = __webpack_require__(34);
|
5394 |
|
5395 | var IE_PROTO = __webpack_require__(45)('IE_PROTO');
|
5396 |
|
5397 | var ObjectProto = Object.prototype;
|
5398 |
|
5399 | module.exports = Object.getPrototypeOf || function (O) {
|
5400 | O = toObject(O);
|
5401 | if (has(O, IE_PROTO)) return O[IE_PROTO];
|
5402 |
|
5403 | if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
5404 | return O.constructor.prototype;
|
5405 | }
|
5406 |
|
5407 | return O instanceof Object ? ObjectProto : null;
|
5408 | };
|
5409 |
|
5410 | }),
|
5411 |
|
5412 | (function(module, exports, __webpack_require__) {
|
5413 |
|
5414 | "use strict";
|
5415 |
|
5416 |
|
5417 | var ctx = __webpack_require__(56);
|
5418 |
|
5419 | var $export = __webpack_require__(10);
|
5420 |
|
5421 | var toObject = __webpack_require__(34);
|
5422 |
|
5423 | var call = __webpack_require__(127);
|
5424 |
|
5425 | var isArrayIter = __webpack_require__(128);
|
5426 |
|
5427 | var toLength = __webpack_require__(59);
|
5428 |
|
5429 | var createProperty = __webpack_require__(129);
|
5430 |
|
5431 | var getIterFn = __webpack_require__(130);
|
5432 |
|
5433 | $export($export.S + $export.F * !__webpack_require__(132)(function (iter) {
|
5434 | Array.from(iter);
|
5435 | }), 'Array', {
|
5436 |
|
5437 | from: function from(arrayLike
|
5438 | /* , mapfn = undefined, thisArg = undefined */
|
5439 | ) {
|
5440 | var O = toObject(arrayLike);
|
5441 | var C = typeof this == 'function' ? this : Array;
|
5442 | var aLen = arguments.length;
|
5443 | var mapfn = aLen > 1 ? arguments[1] : undefined;
|
5444 | var mapping = mapfn !== undefined;
|
5445 | var index = 0;
|
5446 | var iterFn = getIterFn(O);
|
5447 | var length, result, step, iterator;
|
5448 | if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
|
5449 |
|
5450 | if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
|
5451 | for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
|
5452 | createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
|
5453 | }
|
5454 | } else {
|
5455 | length = toLength(O.length);
|
5456 |
|
5457 | for (result = new C(length); length > index; index++) {
|
5458 | createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
|
5459 | }
|
5460 | }
|
5461 |
|
5462 | result.length = index;
|
5463 | return result;
|
5464 | }
|
5465 | });
|
5466 |
|
5467 | }),
|
5468 |
|
5469 | (function(module, exports, __webpack_require__) {
|
5470 |
|
5471 |
|
5472 | var anObject = __webpack_require__(29);
|
5473 |
|
5474 | module.exports = function (iterator, fn, value, entries) {
|
5475 | try {
|
5476 | return entries ? fn(anObject(value)[0], value[1]) : fn(value);
|
5477 | } catch (e) {
|
5478 | var ret = iterator['return'];
|
5479 | if (ret !== undefined) anObject(ret.call(iterator));
|
5480 | throw e;
|
5481 | }
|
5482 | };
|
5483 |
|
5484 | }),
|
5485 |
|
5486 | (function(module, exports, __webpack_require__) {
|
5487 |
|
5488 |
|
5489 | var Iterators = __webpack_require__(47);
|
5490 |
|
5491 | var ITERATOR = __webpack_require__(16)('iterator');
|
5492 |
|
5493 | var ArrayProto = Array.prototype;
|
5494 |
|
5495 | module.exports = function (it) {
|
5496 | return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
5497 | };
|
5498 |
|
5499 | }),
|
5500 |
|
5501 | (function(module, exports, __webpack_require__) {
|
5502 |
|
5503 | "use strict";
|
5504 |
|
5505 |
|
5506 | var $defineProperty = __webpack_require__(28);
|
5507 |
|
5508 | var createDesc = __webpack_require__(41);
|
5509 |
|
5510 | module.exports = function (object, index, value) {
|
5511 | if (index in object) $defineProperty.f(object, index, createDesc(0, value));else object[index] = value;
|
5512 | };
|
5513 |
|
5514 | }),
|
5515 |
|
5516 | (function(module, exports, __webpack_require__) {
|
5517 |
|
5518 | var classof = __webpack_require__(131);
|
5519 |
|
5520 | var ITERATOR = __webpack_require__(16)('iterator');
|
5521 |
|
5522 | var Iterators = __webpack_require__(47);
|
5523 |
|
5524 | module.exports = __webpack_require__(8).getIteratorMethod = function (it) {
|
5525 | if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)];
|
5526 | };
|
5527 |
|
5528 | }),
|
5529 |
|
5530 | (function(module, exports, __webpack_require__) {
|
5531 |
|
5532 |
|
5533 | var cof = __webpack_require__(43);
|
5534 |
|
5535 | var TAG = __webpack_require__(16)('toStringTag');
|
5536 |
|
5537 |
|
5538 | var ARG = cof(function () {
|
5539 | return arguments;
|
5540 | }()) == 'Arguments';
|
5541 |
|
5542 | var tryGet = function (it, key) {
|
5543 | try {
|
5544 | return it[key];
|
5545 | } catch (e) {
|
5546 |
|
5547 | }
|
5548 | };
|
5549 |
|
5550 | module.exports = function (it) {
|
5551 | var O, T, B;
|
5552 | return it === undefined ? 'Undefined' : it === null ? 'Null'
|
5553 | : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
|
5554 | : ARG ? cof(O)
|
5555 | : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
|
5556 | };
|
5557 |
|
5558 | }),
|
5559 |
|
5560 | (function(module, exports, __webpack_require__) {
|
5561 |
|
5562 | var ITERATOR = __webpack_require__(16)('iterator');
|
5563 |
|
5564 | var SAFE_CLOSING = false;
|
5565 |
|
5566 | try {
|
5567 | var riter = [7][ITERATOR]();
|
5568 |
|
5569 | riter['return'] = function () {
|
5570 | SAFE_CLOSING = true;
|
5571 | };
|
5572 |
|
5573 |
|
5574 | Array.from(riter, function () {
|
5575 | throw 2;
|
5576 | });
|
5577 | } catch (e) {
|
5578 |
|
5579 | }
|
5580 |
|
5581 | module.exports = function (exec, skipClosing) {
|
5582 | if (!skipClosing && !SAFE_CLOSING) return false;
|
5583 | var safe = false;
|
5584 |
|
5585 | try {
|
5586 | var arr = [7];
|
5587 | var iter = arr[ITERATOR]();
|
5588 |
|
5589 | iter.next = function () {
|
5590 | return {
|
5591 | done: safe = true
|
5592 | };
|
5593 | };
|
5594 |
|
5595 | arr[ITERATOR] = function () {
|
5596 | return iter;
|
5597 | };
|
5598 |
|
5599 | exec(arr);
|
5600 | } catch (e) {
|
5601 |
|
5602 | }
|
5603 |
|
5604 | return safe;
|
5605 | };
|
5606 |
|
5607 | }),
|
5608 |
|
5609 | (function(module, exports, __webpack_require__) {
|
5610 |
|
5611 | "use strict";
|
5612 |
|
5613 |
|
5614 | Object.defineProperty(exports, "__esModule", {
|
5615 | value: true
|
5616 | });
|
5617 | exports.default = filterEvents;
|
5618 |
|
5619 | var _contains = __webpack_require__(13);
|
5620 |
|
5621 | var _contains2 = _interopRequireDefault(_contains);
|
5622 |
|
5623 | var _querySelectorAll = __webpack_require__(134);
|
5624 |
|
5625 | var _querySelectorAll2 = _interopRequireDefault(_querySelectorAll);
|
5626 |
|
5627 | function _interopRequireDefault(obj) {
|
5628 | return obj && obj.__esModule ? obj : {
|
5629 | default: obj
|
5630 | };
|
5631 | }
|
5632 |
|
5633 | function filterEvents(selector, handler) {
|
5634 | return function filterHandler(e) {
|
5635 | var top = e.currentTarget,
|
5636 | target = e.target,
|
5637 | matches = (0, _querySelectorAll2.default)(top, selector);
|
5638 | if (matches.some(function (match) {
|
5639 | return (0, _contains2.default)(match, target);
|
5640 | })) handler.call(this, e);
|
5641 | };
|
5642 | }
|
5643 |
|
5644 | module.exports = exports['default'];
|
5645 |
|
5646 | }),
|
5647 |
|
5648 | (function(module, exports, __webpack_require__) {
|
5649 |
|
5650 | "use strict";
|
5651 |
|
5652 |
|
5653 | Object.defineProperty(exports, "__esModule", {
|
5654 | value: true
|
5655 | });
|
5656 | exports.default = qsa;
|
5657 |
|
5658 |
|
5659 |
|
5660 | var simpleSelectorRE = /^[\w-]*$/;
|
5661 | var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
5662 |
|
5663 | function qsa(element, selector) {
|
5664 | var maybeID = selector[0] === '#',
|
5665 | maybeClass = selector[0] === '.',
|
5666 | nameOnly = maybeID || maybeClass ? selector.slice(1) : selector,
|
5667 | isSimple = simpleSelectorRE.test(nameOnly),
|
5668 | found;
|
5669 |
|
5670 | if (isSimple) {
|
5671 | if (maybeID) {
|
5672 | element = element.getElementById ? element : document;
|
5673 | return (found = element.getElementById(nameOnly)) ? [found] : [];
|
5674 | }
|
5675 |
|
5676 | if (element.getElementsByClassName && maybeClass) return toArray(element.getElementsByClassName(nameOnly));
|
5677 | return toArray(element.getElementsByTagName(selector));
|
5678 | }
|
5679 |
|
5680 | return toArray(element.querySelectorAll(selector));
|
5681 | }
|
5682 |
|
5683 | module.exports = exports['default'];
|
5684 |
|
5685 | }),
|
5686 |
|
5687 | (function(module, exports, __webpack_require__) {
|
5688 |
|
5689 | "use strict";
|
5690 |
|
5691 |
|
5692 | Object.defineProperty(exports, "__esModule", {
|
5693 | value: true
|
5694 | });
|
5695 |
|
5696 | var _inDOM = __webpack_require__(12);
|
5697 |
|
5698 | var _inDOM2 = _interopRequireDefault(_inDOM);
|
5699 |
|
5700 | var _on = __webpack_require__(48);
|
5701 |
|
5702 | var _on2 = _interopRequireDefault(_on);
|
5703 |
|
5704 | var _off = __webpack_require__(49);
|
5705 |
|
5706 | var _off2 = _interopRequireDefault(_off);
|
5707 |
|
5708 | function _interopRequireDefault(obj) {
|
5709 | return obj && obj.__esModule ? obj : {
|
5710 | default: obj
|
5711 | };
|
5712 | }
|
5713 |
|
5714 | var listen = function listen() {};
|
5715 |
|
5716 | if (_inDOM2.default) {
|
5717 | listen = function listen(node, eventName, handler, capture) {
|
5718 | (0, _on2.default)(node, eventName, handler, capture);
|
5719 | return function () {
|
5720 | (0, _off2.default)(node, eventName, handler, capture);
|
5721 | };
|
5722 | };
|
5723 | }
|
5724 |
|
5725 | exports.default = listen;
|
5726 | module.exports = exports['default'];
|
5727 |
|
5728 | }),
|
5729 |
|
5730 | (function(module, exports, __webpack_require__) {
|
5731 |
|
5732 | "use strict";
|
5733 |
|
5734 |
|
5735 | Object.defineProperty(exports, "__esModule", {
|
5736 | value: true
|
5737 | });
|
5738 | exports.default = deprecated;
|
5739 |
|
5740 | var _warning = __webpack_require__(7);
|
5741 |
|
5742 | var _warning2 = _interopRequireDefault(_warning);
|
5743 |
|
5744 | function _interopRequireDefault(obj) {
|
5745 | return obj && obj.__esModule ? obj : {
|
5746 | default: obj
|
5747 | };
|
5748 | }
|
5749 |
|
5750 | var warned = {};
|
5751 |
|
5752 | function deprecated(validator, reason) {
|
5753 | return function validate(props, propName, componentName, location, propFullName) {
|
5754 | var componentNameSafe = componentName || '<<anonymous>>';
|
5755 | var propFullNameSafe = propFullName || propName;
|
5756 |
|
5757 | if (props[propName] != null) {
|
5758 | var messageKey = componentName + '.' + propName;
|
5759 | (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.'));
|
5760 | warned[messageKey] = true;
|
5761 | }
|
5762 |
|
5763 | for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
|
5764 | args[_key - 5] = arguments[_key];
|
5765 | }
|
5766 |
|
5767 | return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));
|
5768 | };
|
5769 | }
|
5770 |
|
5771 |
|
5772 |
|
5773 | function _resetWarned() {
|
5774 | warned = {};
|
5775 | }
|
5776 |
|
5777 | deprecated._resetWarned = _resetWarned;
|
5778 |
|
5779 |
|
5780 | module.exports = exports['default'];
|
5781 |
|
5782 | }),
|
5783 |
|
5784 | (function(module, exports, __webpack_require__) {
|
5785 |
|
5786 | "use strict";
|
5787 |
|
5788 |
|
5789 | exports.__esModule = true;
|
5790 |
|
5791 | var _class = __webpack_require__(138);
|
5792 |
|
5793 | var _class2 = _interopRequireDefault(_class);
|
5794 |
|
5795 | var _style = __webpack_require__(18);
|
5796 |
|
5797 | var _style2 = _interopRequireDefault(_style);
|
5798 |
|
5799 | var _scrollbarSize = __webpack_require__(39);
|
5800 |
|
5801 | var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);
|
5802 |
|
5803 | var _isOverflowing = __webpack_require__(52);
|
5804 |
|
5805 | var _isOverflowing2 = _interopRequireDefault(_isOverflowing);
|
5806 |
|
5807 | var _manageAriaHidden = __webpack_require__(141);
|
5808 |
|
5809 | function _interopRequireDefault(obj) {
|
5810 | return obj && obj.__esModule ? obj : {
|
5811 | default: obj
|
5812 | };
|
5813 | }
|
5814 |
|
5815 | function _classCallCheck(instance, Constructor) {
|
5816 | if (!(instance instanceof Constructor)) {
|
5817 | throw new TypeError("Cannot call a class as a function");
|
5818 | }
|
5819 | }
|
5820 |
|
5821 | function findIndexOf(arr, cb) {
|
5822 | var idx = -1;
|
5823 | arr.some(function (d, i) {
|
5824 | if (cb(d, i)) {
|
5825 | idx = i;
|
5826 | return true;
|
5827 | }
|
5828 | });
|
5829 | return idx;
|
5830 | }
|
5831 |
|
5832 | function findContainer(data, modal) {
|
5833 | return findIndexOf(data, function (d) {
|
5834 | return d.modals.indexOf(modal) !== -1;
|
5835 | });
|
5836 | }
|
5837 |
|
5838 | function setContainerStyle(state, container) {
|
5839 | var style = {
|
5840 | overflow: 'hidden'
|
5841 | };
|
5842 |
|
5843 |
|
5844 | state.style = {
|
5845 | overflow: container.style.overflow,
|
5846 | paddingRight: container.style.paddingRight
|
5847 | };
|
5848 |
|
5849 | if (state.overflowing) {
|
5850 |
|
5851 |
|
5852 | style.paddingRight = parseInt((0, _style2.default)(container, 'paddingRight') || 0, 10) + (0, _scrollbarSize2.default)() + 'px';
|
5853 | }
|
5854 |
|
5855 | (0, _style2.default)(container, style);
|
5856 | }
|
5857 |
|
5858 | function removeContainerStyle(_ref, container) {
|
5859 | var style = _ref.style;
|
5860 | Object.keys(style).forEach(function (key) {
|
5861 | return container.style[key] = style[key];
|
5862 | });
|
5863 | }
|
5864 |
|
5865 |
|
5866 |
|
5867 |
|
5868 |
|
5869 |
|
5870 |
|
5871 | var ModalManager = function ModalManager() {
|
5872 | var _this = this;
|
5873 |
|
5874 | var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
5875 | _ref2$hideSiblingNode = _ref2.hideSiblingNodes,
|
5876 | hideSiblingNodes = _ref2$hideSiblingNode === undefined ? true : _ref2$hideSiblingNode,
|
5877 | _ref2$handleContainer = _ref2.handleContainerOverflow,
|
5878 | handleContainerOverflow = _ref2$handleContainer === undefined ? true : _ref2$handleContainer;
|
5879 |
|
5880 | _classCallCheck(this, ModalManager);
|
5881 |
|
5882 | this.add = function (modal, container, className) {
|
5883 | var modalIdx = _this.modals.indexOf(modal);
|
5884 |
|
5885 | var containerIdx = _this.containers.indexOf(container);
|
5886 |
|
5887 | if (modalIdx !== -1) {
|
5888 | return modalIdx;
|
5889 | }
|
5890 |
|
5891 | modalIdx = _this.modals.length;
|
5892 |
|
5893 | _this.modals.push(modal);
|
5894 |
|
5895 | if (_this.hideSiblingNodes) {
|
5896 | (0, _manageAriaHidden.hideSiblings)(container, modal.mountNode);
|
5897 | }
|
5898 |
|
5899 | if (containerIdx !== -1) {
|
5900 | _this.data[containerIdx].modals.push(modal);
|
5901 |
|
5902 | return modalIdx;
|
5903 | }
|
5904 |
|
5905 | var data = {
|
5906 | modals: [modal],
|
5907 |
|
5908 | classes: className ? className.split(/\s+/) : [],
|
5909 | overflowing: (0, _isOverflowing2.default)(container)
|
5910 | };
|
5911 |
|
5912 | if (_this.handleContainerOverflow) {
|
5913 | setContainerStyle(data, container);
|
5914 | }
|
5915 |
|
5916 | data.classes.forEach(_class2.default.addClass.bind(null, container));
|
5917 |
|
5918 | _this.containers.push(container);
|
5919 |
|
5920 | _this.data.push(data);
|
5921 |
|
5922 | return modalIdx;
|
5923 | };
|
5924 |
|
5925 | this.remove = function (modal) {
|
5926 | var modalIdx = _this.modals.indexOf(modal);
|
5927 |
|
5928 | if (modalIdx === -1) {
|
5929 | return;
|
5930 | }
|
5931 |
|
5932 | var containerIdx = findContainer(_this.data, modal);
|
5933 | var data = _this.data[containerIdx];
|
5934 | var container = _this.containers[containerIdx];
|
5935 | data.modals.splice(data.modals.indexOf(modal), 1);
|
5936 |
|
5937 | _this.modals.splice(modalIdx, 1);
|
5938 |
|
5939 |
|
5940 |
|
5941 | if (data.modals.length === 0) {
|
5942 | data.classes.forEach(_class2.default.removeClass.bind(null, container));
|
5943 |
|
5944 | if (_this.handleContainerOverflow) {
|
5945 | removeContainerStyle(data, container);
|
5946 | }
|
5947 |
|
5948 | if (_this.hideSiblingNodes) {
|
5949 | (0, _manageAriaHidden.showSiblings)(container, modal.mountNode);
|
5950 | }
|
5951 |
|
5952 | _this.containers.splice(containerIdx, 1);
|
5953 |
|
5954 | _this.data.splice(containerIdx, 1);
|
5955 | } else if (_this.hideSiblingNodes) {
|
5956 |
|
5957 | (0, _manageAriaHidden.ariaHidden)(false, data.modals[data.modals.length - 1].mountNode);
|
5958 | }
|
5959 | };
|
5960 |
|
5961 | this.isTopModal = function (modal) {
|
5962 | return !!_this.modals.length && _this.modals[_this.modals.length - 1] === modal;
|
5963 | };
|
5964 |
|
5965 | this.hideSiblingNodes = hideSiblingNodes;
|
5966 | this.handleContainerOverflow = handleContainerOverflow;
|
5967 | this.modals = [];
|
5968 | this.containers = [];
|
5969 | this.data = [];
|
5970 | };
|
5971 |
|
5972 | exports.default = ModalManager;
|
5973 | module.exports = exports['default'];
|
5974 |
|
5975 | }),
|
5976 |
|
5977 | (function(module, exports, __webpack_require__) {
|
5978 |
|
5979 | "use strict";
|
5980 |
|
5981 |
|
5982 | Object.defineProperty(exports, "__esModule", {
|
5983 | value: true
|
5984 | });
|
5985 | exports.hasClass = exports.removeClass = exports.addClass = undefined;
|
5986 |
|
5987 | var _addClass = __webpack_require__(139);
|
5988 |
|
5989 | var _addClass2 = _interopRequireDefault(_addClass);
|
5990 |
|
5991 | var _removeClass = __webpack_require__(140);
|
5992 |
|
5993 | var _removeClass2 = _interopRequireDefault(_removeClass);
|
5994 |
|
5995 | var _hasClass = __webpack_require__(71);
|
5996 |
|
5997 | var _hasClass2 = _interopRequireDefault(_hasClass);
|
5998 |
|
5999 | function _interopRequireDefault(obj) {
|
6000 | return obj && obj.__esModule ? obj : {
|
6001 | default: obj
|
6002 | };
|
6003 | }
|
6004 |
|
6005 | exports.addClass = _addClass2.default;
|
6006 | exports.removeClass = _removeClass2.default;
|
6007 | exports.hasClass = _hasClass2.default;
|
6008 | exports.default = {
|
6009 | addClass: _addClass2.default,
|
6010 | removeClass: _removeClass2.default,
|
6011 | hasClass: _hasClass2.default
|
6012 | };
|
6013 |
|
6014 | }),
|
6015 |
|
6016 | (function(module, exports, __webpack_require__) {
|
6017 |
|
6018 | "use strict";
|
6019 |
|
6020 |
|
6021 | Object.defineProperty(exports, "__esModule", {
|
6022 | value: true
|
6023 | });
|
6024 | exports.default = addClass;
|
6025 |
|
6026 | var _hasClass = __webpack_require__(71);
|
6027 |
|
6028 | var _hasClass2 = _interopRequireDefault(_hasClass);
|
6029 |
|
6030 | function _interopRequireDefault(obj) {
|
6031 | return obj && obj.__esModule ? obj : {
|
6032 | default: obj
|
6033 | };
|
6034 | }
|
6035 |
|
6036 | function addClass(element, className) {
|
6037 | if (element.classList) element.classList.add(className);else if (!(0, _hasClass2.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
|
6038 | }
|
6039 |
|
6040 | module.exports = exports['default'];
|
6041 |
|
6042 | }),
|
6043 |
|
6044 | (function(module, exports, __webpack_require__) {
|
6045 |
|
6046 | "use strict";
|
6047 |
|
6048 |
|
6049 | function replaceClassName(origClass, classToRemove) {
|
6050 | return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
6051 | }
|
6052 |
|
6053 | module.exports = function removeClass(element, className) {
|
6054 | if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
|
6055 | };
|
6056 |
|
6057 | }),
|
6058 |
|
6059 | (function(module, exports, __webpack_require__) {
|
6060 |
|
6061 | "use strict";
|
6062 |
|
6063 |
|
6064 | exports.__esModule = true;
|
6065 | exports.ariaHidden = ariaHidden;
|
6066 | exports.hideSiblings = hideSiblings;
|
6067 | exports.showSiblings = showSiblings;
|
6068 | var BLACKLIST = ['template', 'script', 'style'];
|
6069 |
|
6070 | var isHidable = function isHidable(_ref) {
|
6071 | var nodeType = _ref.nodeType,
|
6072 | tagName = _ref.tagName;
|
6073 | return nodeType === 1 && BLACKLIST.indexOf(tagName.toLowerCase()) === -1;
|
6074 | };
|
6075 |
|
6076 | var siblings = function siblings(container, mount, cb) {
|
6077 | mount = [].concat(mount);
|
6078 | [].forEach.call(container.children, function (node) {
|
6079 | if (mount.indexOf(node) === -1 && isHidable(node)) {
|
6080 | cb(node);
|
6081 | }
|
6082 | });
|
6083 | };
|
6084 |
|
6085 | function ariaHidden(show, node) {
|
6086 | if (!node) {
|
6087 | return;
|
6088 | }
|
6089 |
|
6090 | if (show) {
|
6091 | node.setAttribute('aria-hidden', 'true');
|
6092 | } else {
|
6093 | node.removeAttribute('aria-hidden');
|
6094 | }
|
6095 | }
|
6096 |
|
6097 | function hideSiblings(container, mountNode) {
|
6098 | siblings(container, mountNode, function (node) {
|
6099 | return ariaHidden(true, node);
|
6100 | });
|
6101 | }
|
6102 |
|
6103 | function showSiblings(container, mountNode) {
|
6104 | siblings(container, mountNode, function (node) {
|
6105 | return ariaHidden(false, node);
|
6106 | });
|
6107 | }
|
6108 |
|
6109 | }),
|
6110 |
|
6111 | (function(module, exports, __webpack_require__) {
|
6112 |
|
6113 | "use strict";
|
6114 |
|
6115 |
|
6116 | exports.__esModule = true;
|
6117 |
|
6118 | var _propTypes = __webpack_require__(0);
|
6119 |
|
6120 | var _propTypes2 = _interopRequireDefault(_propTypes);
|
6121 |
|
6122 | var _componentOrElement = __webpack_require__(35);
|
6123 |
|
6124 | var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
|
6125 |
|
6126 | var _react = __webpack_require__(1);
|
6127 |
|
6128 | var _react2 = _interopRequireDefault(_react);
|
6129 |
|
6130 | var _reactDom = __webpack_require__(4);
|
6131 |
|
6132 | var _reactDom2 = _interopRequireDefault(_reactDom);
|
6133 |
|
6134 | var _getContainer = __webpack_require__(37);
|
6135 |
|
6136 | var _getContainer2 = _interopRequireDefault(_getContainer);
|
6137 |
|
6138 | var _ownerDocument = __webpack_require__(20);
|
6139 |
|
6140 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
6141 |
|
6142 | function _interopRequireDefault(obj) {
|
6143 | return obj && obj.__esModule ? obj : {
|
6144 | default: obj
|
6145 | };
|
6146 | }
|
6147 |
|
6148 | function _classCallCheck(instance, Constructor) {
|
6149 | if (!(instance instanceof Constructor)) {
|
6150 | throw new TypeError("Cannot call a class as a function");
|
6151 | }
|
6152 | }
|
6153 |
|
6154 | function _possibleConstructorReturn(self, call) {
|
6155 | if (!self) {
|
6156 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
6157 | }
|
6158 |
|
6159 | return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
6160 | }
|
6161 |
|
6162 | function _inherits(subClass, superClass) {
|
6163 | if (typeof superClass !== "function" && superClass !== null) {
|
6164 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
6165 | }
|
6166 |
|
6167 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
6168 | constructor: {
|
6169 | value: subClass,
|
6170 | enumerable: false,
|
6171 | writable: true,
|
6172 | configurable: true
|
6173 | }
|
6174 | });
|
6175 | if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
6176 | }
|
6177 |
|
6178 |
|
6179 |
|
6180 |
|
6181 |
|
6182 |
|
6183 |
|
6184 | var Portal = function (_React$Component) {
|
6185 | _inherits(Portal, _React$Component);
|
6186 |
|
6187 | function Portal() {
|
6188 | var _temp, _this, _ret;
|
6189 |
|
6190 | _classCallCheck(this, Portal);
|
6191 |
|
6192 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
6193 | args[_key] = arguments[_key];
|
6194 | }
|
6195 |
|
6196 | return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._mountOverlayTarget = function () {
|
6197 | if (!_this._overlayTarget) {
|
6198 | _this._overlayTarget = document.createElement('div');
|
6199 | _this._portalContainerNode = (0, _getContainer2.default)(_this.props.container, (0, _ownerDocument2.default)(_this).body);
|
6200 |
|
6201 | _this._portalContainerNode.appendChild(_this._overlayTarget);
|
6202 | }
|
6203 | }, _this._unmountOverlayTarget = function () {
|
6204 | if (_this._overlayTarget) {
|
6205 | _this._portalContainerNode.removeChild(_this._overlayTarget);
|
6206 |
|
6207 | _this._overlayTarget = null;
|
6208 | }
|
6209 |
|
6210 | _this._portalContainerNode = null;
|
6211 | }, _this._renderOverlay = function () {
|
6212 | var overlay = !_this.props.children ? null : _react2.default.Children.only(_this.props.children);
|
6213 |
|
6214 | if (overlay !== null) {
|
6215 | _this._mountOverlayTarget();
|
6216 |
|
6217 | var initialRender = !_this._overlayInstance;
|
6218 | _this._overlayInstance = _reactDom2.default.unstable_renderSubtreeIntoContainer(_this, overlay, _this._overlayTarget, function () {
|
6219 | if (initialRender && _this.props.onRendered) {
|
6220 | _this.props.onRendered();
|
6221 | }
|
6222 | });
|
6223 | } else {
|
6224 |
|
6225 | _this._unrenderOverlay();
|
6226 |
|
6227 | _this._unmountOverlayTarget();
|
6228 | }
|
6229 | }, _this._unrenderOverlay = function () {
|
6230 | if (_this._overlayTarget) {
|
6231 | _reactDom2.default.unmountComponentAtNode(_this._overlayTarget);
|
6232 |
|
6233 | _this._overlayInstance = null;
|
6234 | }
|
6235 | }, _this.getMountNode = function () {
|
6236 | return _this._overlayTarget;
|
6237 | }, _temp), _possibleConstructorReturn(_this, _ret);
|
6238 | }
|
6239 |
|
6240 | Portal.prototype.componentDidMount = function componentDidMount() {
|
6241 | this._isMounted = true;
|
6242 |
|
6243 | this._renderOverlay();
|
6244 | };
|
6245 |
|
6246 | Portal.prototype.componentDidUpdate = function componentDidUpdate() {
|
6247 | this._renderOverlay();
|
6248 | };
|
6249 |
|
6250 | Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
6251 | if (this._overlayTarget && nextProps.container !== this.props.container) {
|
6252 | this._portalContainerNode.removeChild(this._overlayTarget);
|
6253 |
|
6254 | this._portalContainerNode = (0, _getContainer2.default)(nextProps.container, (0, _ownerDocument2.default)(this).body);
|
6255 |
|
6256 | this._portalContainerNode.appendChild(this._overlayTarget);
|
6257 | }
|
6258 | };
|
6259 |
|
6260 | Portal.prototype.componentWillUnmount = function componentWillUnmount() {
|
6261 | this._isMounted = false;
|
6262 |
|
6263 | this._unrenderOverlay();
|
6264 |
|
6265 | this._unmountOverlayTarget();
|
6266 | };
|
6267 |
|
6268 | Portal.prototype.render = function render() {
|
6269 | return null;
|
6270 | };
|
6271 |
|
6272 | return Portal;
|
6273 | }(_react2.default.Component);
|
6274 |
|
6275 | Portal.displayName = 'Portal';
|
6276 | Portal.propTypes = {
|
6277 | |
6278 |
|
6279 |
|
6280 |
|
6281 | container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
|
6282 | onRendered: _propTypes2.default.func
|
6283 | };
|
6284 | exports.default = Portal;
|
6285 | module.exports = exports['default'];
|
6286 |
|
6287 | }),
|
6288 |
|
6289 | (function(module, exports, __webpack_require__) {
|
6290 |
|
6291 | "use strict";
|
6292 |
|
6293 |
|
6294 | exports.__esModule = true;
|
6295 |
|
6296 | var _propTypes = __webpack_require__(0);
|
6297 |
|
6298 | var _propTypes2 = _interopRequireDefault(_propTypes);
|
6299 |
|
6300 | var _react = __webpack_require__(1);
|
6301 |
|
6302 | var _react2 = _interopRequireDefault(_react);
|
6303 |
|
6304 | function _interopRequireDefault(obj) {
|
6305 | return obj && obj.__esModule ? obj : {
|
6306 | default: obj
|
6307 | };
|
6308 | }
|
6309 |
|
6310 | function _classCallCheck(instance, Constructor) {
|
6311 | if (!(instance instanceof Constructor)) {
|
6312 | throw new TypeError("Cannot call a class as a function");
|
6313 | }
|
6314 | }
|
6315 |
|
6316 | function _possibleConstructorReturn(self, call) {
|
6317 | if (!self) {
|
6318 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
6319 | }
|
6320 |
|
6321 | return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
6322 | }
|
6323 |
|
6324 | function _inherits(subClass, superClass) {
|
6325 | if (typeof superClass !== "function" && superClass !== null) {
|
6326 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
6327 | }
|
6328 |
|
6329 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
6330 | constructor: {
|
6331 | value: subClass,
|
6332 | enumerable: false,
|
6333 | writable: true,
|
6334 | configurable: true
|
6335 | }
|
6336 | });
|
6337 | if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
6338 | }
|
6339 |
|
6340 | var propTypes = {
|
6341 | children: _propTypes2.default.node
|
6342 | };
|
6343 |
|
6344 |
|
6345 |
|
6346 |
|
6347 |
|
6348 | var RefHolder = function (_React$Component) {
|
6349 | _inherits(RefHolder, _React$Component);
|
6350 |
|
6351 | function RefHolder() {
|
6352 | _classCallCheck(this, RefHolder);
|
6353 |
|
6354 | return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
6355 | }
|
6356 |
|
6357 | RefHolder.prototype.render = function render() {
|
6358 | return this.props.children;
|
6359 | };
|
6360 |
|
6361 | return RefHolder;
|
6362 | }(_react2.default.Component);
|
6363 |
|
6364 | RefHolder.propTypes = propTypes;
|
6365 | exports.default = RefHolder;
|
6366 | module.exports = exports['default'];
|
6367 |
|
6368 | }),
|
6369 |
|
6370 | (function(module, exports, __webpack_require__) {
|
6371 |
|
6372 | "use strict";
|
6373 |
|
6374 |
|
6375 | exports.__esModule = true;
|
6376 | exports.default = addFocusListener;
|
6377 |
|
6378 |
|
6379 |
|
6380 |
|
6381 |
|
6382 |
|
6383 |
|
6384 | function addFocusListener(handler) {
|
6385 | var useFocusin = !document.addEventListener;
|
6386 | var remove = void 0;
|
6387 |
|
6388 | if (useFocusin) {
|
6389 | document.attachEvent('onfocusin', handler);
|
6390 |
|
6391 | remove = function remove() {
|
6392 | return document.detachEvent('onfocusin', handler);
|
6393 | };
|
6394 | } else {
|
6395 | document.addEventListener('focus', handler, true);
|
6396 |
|
6397 | remove = function remove() {
|
6398 | return document.removeEventListener('focus', handler, true);
|
6399 | };
|
6400 | }
|
6401 |
|
6402 | return {
|
6403 | remove: remove
|
6404 | };
|
6405 | }
|
6406 |
|
6407 | module.exports = exports['default'];
|
6408 |
|
6409 | }),
|
6410 |
|
6411 | (function(module, exports, __webpack_require__) {
|
6412 |
|
6413 | "use strict";
|
6414 |
|
6415 |
|
6416 | exports.__esModule = true;
|
6417 |
|
6418 | var _extends = Object.assign || function (target) {
|
6419 | for (var i = 1; i < arguments.length; i++) {
|
6420 | var source = arguments[i];
|
6421 |
|
6422 | for (var key in source) {
|
6423 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
6424 | target[key] = source[key];
|
6425 | }
|
6426 | }
|
6427 | }
|
6428 |
|
6429 | return target;
|
6430 | };
|
6431 |
|
6432 | var _classnames = __webpack_require__(2);
|
6433 |
|
6434 | var _classnames2 = _interopRequireDefault(_classnames);
|
6435 |
|
6436 | var _propTypes = __webpack_require__(0);
|
6437 |
|
6438 | var _propTypes2 = _interopRequireDefault(_propTypes);
|
6439 |
|
6440 | var _componentOrElement = __webpack_require__(35);
|
6441 |
|
6442 | var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
|
6443 |
|
6444 | var _react = __webpack_require__(1);
|
6445 |
|
6446 | var _react2 = _interopRequireDefault(_react);
|
6447 |
|
6448 | var _reactDom = __webpack_require__(4);
|
6449 |
|
6450 | var _reactDom2 = _interopRequireDefault(_reactDom);
|
6451 |
|
6452 | var _calculatePosition = __webpack_require__(146);
|
6453 |
|
6454 | var _calculatePosition2 = _interopRequireDefault(_calculatePosition);
|
6455 |
|
6456 | var _getContainer = __webpack_require__(37);
|
6457 |
|
6458 | var _getContainer2 = _interopRequireDefault(_getContainer);
|
6459 |
|
6460 | var _ownerDocument = __webpack_require__(20);
|
6461 |
|
6462 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
6463 |
|
6464 | function _interopRequireDefault(obj) {
|
6465 | return obj && obj.__esModule ? obj : {
|
6466 | default: obj
|
6467 | };
|
6468 | }
|
6469 |
|
6470 | function _objectWithoutProperties(obj, keys) {
|
6471 | var target = {};
|
6472 |
|
6473 | for (var i in obj) {
|
6474 | if (keys.indexOf(i) >= 0) continue;
|
6475 | if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
6476 | target[i] = obj[i];
|
6477 | }
|
6478 |
|
6479 | return target;
|
6480 | }
|
6481 |
|
6482 | function _classCallCheck(instance, Constructor) {
|
6483 | if (!(instance instanceof Constructor)) {
|
6484 | throw new TypeError("Cannot call a class as a function");
|
6485 | }
|
6486 | }
|
6487 |
|
6488 | function _possibleConstructorReturn(self, call) {
|
6489 | if (!self) {
|
6490 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
6491 | }
|
6492 |
|
6493 | return call && (typeof call === "object" || typeof call === "function") ? call : self;
|
6494 | }
|
6495 |
|
6496 | function _inherits(subClass, superClass) {
|
6497 | if (typeof superClass !== "function" && superClass !== null) {
|
6498 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
6499 | }
|
6500 |
|
6501 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
6502 | constructor: {
|
6503 | value: subClass,
|
6504 | enumerable: false,
|
6505 | writable: true,
|
6506 | configurable: true
|
6507 | }
|
6508 | });
|
6509 | if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
6510 | }
|
6511 |
|
6512 |
|
6513 |
|
6514 |
|
6515 |
|
6516 |
|
6517 |
|
6518 |
|
6519 |
|
6520 |
|
6521 |
|
6522 | var Position = function (_React$Component) {
|
6523 | _inherits(Position, _React$Component);
|
6524 |
|
6525 | function Position(props, context) {
|
6526 | _classCallCheck(this, Position);
|
6527 |
|
6528 | var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));
|
6529 |
|
6530 | _this.getTarget = function () {
|
6531 | var target = _this.props.target;
|
6532 | var targetElement = typeof target === 'function' ? target() : target;
|
6533 | return targetElement && _reactDom2.default.findDOMNode(targetElement) || null;
|
6534 | };
|
6535 |
|
6536 | _this.maybeUpdatePosition = function (placementChanged) {
|
6537 | var target = _this.getTarget();
|
6538 |
|
6539 | if (!_this.props.shouldUpdatePosition && target === _this._lastTarget && !placementChanged) {
|
6540 | return;
|
6541 | }
|
6542 |
|
6543 | _this.updatePosition(target);
|
6544 | };
|
6545 |
|
6546 | _this.state = {
|
6547 | positionLeft: 0,
|
6548 | positionTop: 0,
|
6549 | arrowOffsetLeft: null,
|
6550 | arrowOffsetTop: null
|
6551 | };
|
6552 | _this._needsFlush = false;
|
6553 | _this._lastTarget = null;
|
6554 | return _this;
|
6555 | }
|
6556 |
|
6557 | Position.prototype.componentDidMount = function componentDidMount() {
|
6558 | this.updatePosition(this.getTarget());
|
6559 | };
|
6560 |
|
6561 | Position.prototype.componentWillReceiveProps = function componentWillReceiveProps() {
|
6562 | this._needsFlush = true;
|
6563 | };
|
6564 |
|
6565 | Position.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
|
6566 | if (this._needsFlush) {
|
6567 | this._needsFlush = false;
|
6568 | this.maybeUpdatePosition(this.props.placement !== prevProps.placement);
|
6569 | }
|
6570 | };
|
6571 |
|
6572 | Position.prototype.render = function render() {
|
6573 | var _props = this.props,
|
6574 | children = _props.children,
|
6575 | className = _props.className,
|
6576 | props = _objectWithoutProperties(_props, ['children', 'className']);
|
6577 |
|
6578 | var _state = this.state,
|
6579 | positionLeft = _state.positionLeft,
|
6580 | positionTop = _state.positionTop,
|
6581 | arrowPosition = _objectWithoutProperties(_state, ['positionLeft', 'positionTop']);
|
6582 |
|
6583 |
|
6584 | delete props.target;
|
6585 | delete props.container;
|
6586 | delete props.containerPadding;
|
6587 | delete props.shouldUpdatePosition;
|
6588 |
|
6589 | var child = _react2.default.Children.only(children);
|
6590 |
|
6591 | return (0, _react.cloneElement)(child, _extends({}, props, arrowPosition, {
|
6592 |
|
6593 |
|
6594 | positionLeft: positionLeft,
|
6595 | positionTop: positionTop,
|
6596 | className: (0, _classnames2.default)(className, child.props.className),
|
6597 | style: _extends({}, child.props.style, {
|
6598 | left: positionLeft,
|
6599 | top: positionTop
|
6600 | })
|
6601 | }));
|
6602 | };
|
6603 |
|
6604 | Position.prototype.updatePosition = function updatePosition(target) {
|
6605 | this._lastTarget = target;
|
6606 |
|
6607 | if (!target) {
|
6608 | this.setState({
|
6609 | positionLeft: 0,
|
6610 | positionTop: 0,
|
6611 | arrowOffsetLeft: null,
|
6612 | arrowOffsetTop: null
|
6613 | });
|
6614 | return;
|
6615 | }
|
6616 |
|
6617 | var overlay = _reactDom2.default.findDOMNode(this);
|
6618 |
|
6619 | var container = (0, _getContainer2.default)(this.props.container, (0, _ownerDocument2.default)(this).body);
|
6620 | this.setState((0, _calculatePosition2.default)(this.props.placement, overlay, target, container, this.props.containerPadding));
|
6621 | };
|
6622 |
|
6623 | return Position;
|
6624 | }(_react2.default.Component);
|
6625 |
|
6626 | Position.propTypes = {
|
6627 | |
6628 |
|
6629 |
|
6630 |
|
6631 | target: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
|
6632 |
|
6633 | |
6634 |
|
6635 |
|
6636 | container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
|
6637 |
|
6638 | |
6639 |
|
6640 |
|
6641 | containerPadding: _propTypes2.default.number,
|
6642 |
|
6643 | |
6644 |
|
6645 |
|
6646 | placement: _propTypes2.default.oneOf(['top', 'right', 'bottom', 'left']),
|
6647 |
|
6648 | |
6649 |
|
6650 |
|
6651 | shouldUpdatePosition: _propTypes2.default.bool
|
6652 | };
|
6653 | Position.displayName = 'Position';
|
6654 | Position.defaultProps = {
|
6655 | containerPadding: 0,
|
6656 | placement: 'right',
|
6657 | shouldUpdatePosition: false
|
6658 | };
|
6659 | exports.default = Position;
|
6660 | module.exports = exports['default'];
|
6661 |
|
6662 | }),
|
6663 |
|
6664 | (function(module, exports, __webpack_require__) {
|
6665 |
|
6666 | "use strict";
|
6667 |
|
6668 |
|
6669 | exports.__esModule = true;
|
6670 | exports.default = calculatePosition;
|
6671 |
|
6672 | var _offset = __webpack_require__(73);
|
6673 |
|
6674 | var _offset2 = _interopRequireDefault(_offset);
|
6675 |
|
6676 | var _position = __webpack_require__(147);
|
6677 |
|
6678 | var _position2 = _interopRequireDefault(_position);
|
6679 |
|
6680 | var _scrollTop = __webpack_require__(74);
|
6681 |
|
6682 | var _scrollTop2 = _interopRequireDefault(_scrollTop);
|
6683 |
|
6684 | var _ownerDocument = __webpack_require__(20);
|
6685 |
|
6686 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
6687 |
|
6688 | function _interopRequireDefault(obj) {
|
6689 | return obj && obj.__esModule ? obj : {
|
6690 | default: obj
|
6691 | };
|
6692 | }
|
6693 |
|
6694 | function getContainerDimensions(containerNode) {
|
6695 | var width = void 0,
|
6696 | height = void 0,
|
6697 | scroll = void 0;
|
6698 |
|
6699 | if (containerNode.tagName === 'BODY') {
|
6700 | width = window.innerWidth;
|
6701 | height = window.innerHeight;
|
6702 | scroll = (0, _scrollTop2.default)((0, _ownerDocument2.default)(containerNode).documentElement) || (0, _scrollTop2.default)(containerNode);
|
6703 | } else {
|
6704 | var _getOffset = (0, _offset2.default)(containerNode);
|
6705 |
|
6706 | width = _getOffset.width;
|
6707 | height = _getOffset.height;
|
6708 | scroll = (0, _scrollTop2.default)(containerNode);
|
6709 | }
|
6710 |
|
6711 | return {
|
6712 | width: width,
|
6713 | height: height,
|
6714 | scroll: scroll
|
6715 | };
|
6716 | }
|
6717 |
|
6718 | function getTopDelta(top, overlayHeight, container, padding) {
|
6719 | var containerDimensions = getContainerDimensions(container);
|
6720 | var containerScroll = containerDimensions.scroll;
|
6721 | var containerHeight = containerDimensions.height;
|
6722 | var topEdgeOffset = top - padding - containerScroll;
|
6723 | var bottomEdgeOffset = top + padding - containerScroll + overlayHeight;
|
6724 |
|
6725 | if (topEdgeOffset < 0) {
|
6726 | return -topEdgeOffset;
|
6727 | } else if (bottomEdgeOffset > containerHeight) {
|
6728 | return containerHeight - bottomEdgeOffset;
|
6729 | } else {
|
6730 | return 0;
|
6731 | }
|
6732 | }
|
6733 |
|
6734 | function getLeftDelta(left, overlayWidth, container, padding) {
|
6735 | var containerDimensions = getContainerDimensions(container);
|
6736 | var containerWidth = containerDimensions.width;
|
6737 | var leftEdgeOffset = left - padding;
|
6738 | var rightEdgeOffset = left + padding + overlayWidth;
|
6739 |
|
6740 | if (leftEdgeOffset < 0) {
|
6741 | return -leftEdgeOffset;
|
6742 | } else if (rightEdgeOffset > containerWidth) {
|
6743 | return containerWidth - rightEdgeOffset;
|
6744 | }
|
6745 |
|
6746 | return 0;
|
6747 | }
|
6748 |
|
6749 | function calculatePosition(placement, overlayNode, target, container, padding) {
|
6750 | var childOffset = container.tagName === 'BODY' ? (0, _offset2.default)(target) : (0, _position2.default)(target, container);
|
6751 |
|
6752 | var _getOffset2 = (0, _offset2.default)(overlayNode),
|
6753 | overlayHeight = _getOffset2.height,
|
6754 | overlayWidth = _getOffset2.width;
|
6755 |
|
6756 | var positionLeft = void 0,
|
6757 | positionTop = void 0,
|
6758 | arrowOffsetLeft = void 0,
|
6759 | arrowOffsetTop = void 0;
|
6760 |
|
6761 | if (placement === 'left' || placement === 'right') {
|
6762 | positionTop = childOffset.top + (childOffset.height - overlayHeight) / 2;
|
6763 |
|
6764 | if (placement === 'left') {
|
6765 | positionLeft = childOffset.left - overlayWidth;
|
6766 | } else {
|
6767 | positionLeft = childOffset.left + childOffset.width;
|
6768 | }
|
6769 |
|
6770 | var topDelta = getTopDelta(positionTop, overlayHeight, container, padding);
|
6771 | positionTop += topDelta;
|
6772 | arrowOffsetTop = 50 * (1 - 2 * topDelta / overlayHeight) + '%';
|
6773 | arrowOffsetLeft = void 0;
|
6774 | } else if (placement === 'top' || placement === 'bottom') {
|
6775 | positionLeft = childOffset.left + (childOffset.width - overlayWidth) / 2;
|
6776 |
|
6777 | if (placement === 'top') {
|
6778 | positionTop = childOffset.top - overlayHeight;
|
6779 | } else {
|
6780 | positionTop = childOffset.top + childOffset.height;
|
6781 | }
|
6782 |
|
6783 | var leftDelta = getLeftDelta(positionLeft, overlayWidth, container, padding);
|
6784 | positionLeft += leftDelta;
|
6785 | arrowOffsetLeft = 50 * (1 - 2 * leftDelta / overlayWidth) + '%';
|
6786 | arrowOffsetTop = void 0;
|
6787 | } else {
|
6788 | throw new Error('calcOverlayPosition(): No such placement of "' + placement + '" found.');
|
6789 | }
|
6790 |
|
6791 | return {
|
6792 | positionLeft: positionLeft,
|
6793 | positionTop: positionTop,
|
6794 | arrowOffsetLeft: arrowOffsetLeft,
|
6795 | arrowOffsetTop: arrowOffsetTop
|
6796 | };
|
6797 | }
|
6798 |
|
6799 | module.exports = exports['default'];
|
6800 |
|
6801 | }),
|
6802 |
|
6803 | (function(module, exports, __webpack_require__) {
|
6804 |
|
6805 | "use strict";
|
6806 |
|
6807 |
|
6808 | Object.defineProperty(exports, "__esModule", {
|
6809 | value: true
|
6810 | });
|
6811 |
|
6812 | var _extends = Object.assign || function (target) {
|
6813 | for (var i = 1; i < arguments.length; i++) {
|
6814 | var source = arguments[i];
|
6815 |
|
6816 | for (var key in source) {
|
6817 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
6818 | target[key] = source[key];
|
6819 | }
|
6820 | }
|
6821 | }
|
6822 |
|
6823 | return target;
|
6824 | };
|
6825 |
|
6826 | exports.default = position;
|
6827 |
|
6828 | var _offset = __webpack_require__(73);
|
6829 |
|
6830 | var _offset2 = _interopRequireDefault(_offset);
|
6831 |
|
6832 | var _offsetParent = __webpack_require__(148);
|
6833 |
|
6834 | var _offsetParent2 = _interopRequireDefault(_offsetParent);
|
6835 |
|
6836 | var _scrollTop = __webpack_require__(74);
|
6837 |
|
6838 | var _scrollTop2 = _interopRequireDefault(_scrollTop);
|
6839 |
|
6840 | var _scrollLeft = __webpack_require__(149);
|
6841 |
|
6842 | var _scrollLeft2 = _interopRequireDefault(_scrollLeft);
|
6843 |
|
6844 | var _style = __webpack_require__(18);
|
6845 |
|
6846 | var _style2 = _interopRequireDefault(_style);
|
6847 |
|
6848 | function _interopRequireDefault(obj) {
|
6849 | return obj && obj.__esModule ? obj : {
|
6850 | default: obj
|
6851 | };
|
6852 | }
|
6853 |
|
6854 | function nodeName(node) {
|
6855 | return node.nodeName && node.nodeName.toLowerCase();
|
6856 | }
|
6857 |
|
6858 | function position(node, offsetParent) {
|
6859 | var parentOffset = {
|
6860 | top: 0,
|
6861 | left: 0
|
6862 | },
|
6863 | offset;
|
6864 |
|
6865 |
|
6866 | if ((0, _style2.default)(node, 'position') === 'fixed') {
|
6867 | offset = node.getBoundingClientRect();
|
6868 | } else {
|
6869 | offsetParent = offsetParent || (0, _offsetParent2.default)(node);
|
6870 | offset = (0, _offset2.default)(node);
|
6871 | if (nodeName(offsetParent) !== 'html') parentOffset = (0, _offset2.default)(offsetParent);
|
6872 | parentOffset.top += parseInt((0, _style2.default)(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop2.default)(offsetParent) || 0;
|
6873 | parentOffset.left += parseInt((0, _style2.default)(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft2.default)(offsetParent) || 0;
|
6874 | }
|
6875 |
|
6876 |
|
6877 | return _extends({}, offset, {
|
6878 | top: offset.top - parentOffset.top - (parseInt((0, _style2.default)(node, 'marginTop'), 10) || 0),
|
6879 | left: offset.left - parentOffset.left - (parseInt((0, _style2.default)(node, 'marginLeft'), 10) || 0)
|
6880 | });
|
6881 | }
|
6882 |
|
6883 | module.exports = exports['default'];
|
6884 |
|
6885 | }),
|
6886 |
|
6887 | (function(module, exports, __webpack_require__) {
|
6888 |
|
6889 | "use strict";
|
6890 |
|
6891 |
|
6892 | Object.defineProperty(exports, "__esModule", {
|
6893 | value: true
|
6894 | });
|
6895 | exports.default = offsetParent;
|
6896 |
|
6897 | var _ownerDocument = __webpack_require__(17);
|
6898 |
|
6899 | var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
6900 |
|
6901 | var _style = __webpack_require__(18);
|
6902 |
|
6903 | var _style2 = _interopRequireDefault(_style);
|
6904 |
|
6905 | function _interopRequireDefault(obj) {
|
6906 | return obj && obj.__esModule ? obj : {
|
6907 | default: obj
|
6908 | };
|
6909 | }
|
6910 |
|
6911 | function nodeName(node) {
|
6912 | return node.nodeName && node.nodeName.toLowerCase();
|
6913 | }
|
6914 |
|
6915 | function offsetParent(node) {
|
6916 | var doc = (0, _ownerDocument2.default)(node),
|
6917 | offsetParent = node && node.offsetParent;
|
6918 |
|
6919 | while (offsetParent && nodeName(node) !== 'html' && (0, _style2.default)(offsetParent, 'position') === 'static') {
|
6920 | offsetParent = offsetParent.offsetParent;
|
6921 | }
|
6922 |
|
6923 | return offsetParent || doc.documentElement;
|
6924 | }
|
6925 |
|
6926 | module.exports = exports['default'];
|
6927 |
|
6928 | }),
|
6929 |
|
6930 | (function(module, exports, __webpack_require__) {
|
6931 |
|
6932 | "use strict";
|
6933 |
|
6934 |
|
6935 | Object.defineProperty(exports, "__esModule", {
|
6936 | value: true
|
6937 | });
|
6938 | exports.default = scrollTop;
|
6939 |
|
6940 | var _isWindow = __webpack_require__(36);
|
6941 |
|
6942 | var _isWindow2 = _interopRequireDefault(_isWindow);
|
6943 |
|
6944 | function _interopRequireDefault(obj) {
|
6945 | return obj && obj.__esModule ? obj : {
|
6946 | default: obj
|
6947 | };
|
6948 | }
|
6949 |
|
6950 | function scrollTop(node, val) {
|
6951 | var win = (0, _isWindow2.default)(node);
|
6952 | if (val === undefined) return win ? 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft : node.scrollLeft;
|
6953 | if (win) win.scrollTo(val, 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop);else node.scrollLeft = val;
|
6954 | }
|
6955 |
|
6956 | module.exports = exports['default'];
|
6957 |
|
6958 | }),
|
6959 |
|
6960 | (function(module, exports, __webpack_require__) {
|
6961 |
|
6962 | __webpack_require__(151);
|
6963 |
|
6964 | module.exports = __webpack_require__(8).Array.isArray;
|
6965 |
|
6966 | }),
|
6967 |
|
6968 | (function(module, exports, __webpack_require__) {
|
6969 |
|
6970 |
|
6971 | var $export = __webpack_require__(10);
|
6972 |
|
6973 | $export($export.S, 'Array', {
|
6974 | isArray: __webpack_require__(152)
|
6975 | });
|
6976 |
|
6977 | }),
|
6978 |
|
6979 | (function(module, exports, __webpack_require__) {
|
6980 |
|
6981 |
|
6982 | var cof = __webpack_require__(43);
|
6983 |
|
6984 | module.exports = Array.isArray || function isArray(arg) {
|
6985 | return cof(arg) == 'Array';
|
6986 | };
|
6987 |
|
6988 | }),
|
6989 |
|
6990 | (function(module, exports, __webpack_require__) {
|
6991 |
|
6992 | "use strict";
|
6993 |
|
6994 |
|
6995 | exports.__esModule = true;
|
6996 | exports.default = createChainableTypeChecker;
|
6997 |
|
6998 |
|
6999 |
|
7000 |
|
7001 |
|
7002 |
|
7003 |
|
7004 |
|
7005 |
|
7006 |
|
7007 | function createChainableTypeChecker(validate) {
|
7008 | function checkType(isRequired, props, propName, componentName, location, propFullName) {
|
7009 | var componentNameSafe = componentName || '<<anonymous>>';
|
7010 | var propFullNameSafe = propFullName || propName;
|
7011 |
|
7012 | if (props[propName] == null) {
|
7013 | if (isRequired) {
|
7014 | return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
|
7015 | }
|
7016 |
|
7017 | return null;
|
7018 | }
|
7019 |
|
7020 | for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
|
7021 | args[_key - 6] = arguments[_key];
|
7022 | }
|
7023 |
|
7024 | return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
|
7025 | }
|
7026 |
|
7027 | var chainedCheckType = checkType.bind(null, false);
|
7028 | chainedCheckType.isRequired = checkType.bind(null, true);
|
7029 | return chainedCheckType;
|
7030 | }
|
7031 |
|
7032 | }),
|
7033 |
|
7034 | (function(module, __webpack_exports__, __webpack_require__) {
|
7035 |
|
7036 | "use strict";
|
7037 | __webpack_require__.r(__webpack_exports__);
|
7038 | var bootstrapUtils_namespaceObject = {};
|
7039 | __webpack_require__.r(bootstrapUtils_namespaceObject);
|
7040 | __webpack_require__.d(bootstrapUtils_namespaceObject, "prefix", function() { return prefix; });
|
7041 | __webpack_require__.d(bootstrapUtils_namespaceObject, "bsClass", function() { return bootstrapUtils_bsClass; });
|
7042 | __webpack_require__.d(bootstrapUtils_namespaceObject, "bsStyles", function() { return bsStyles; });
|
7043 | __webpack_require__.d(bootstrapUtils_namespaceObject, "bsSizes", function() { return bsSizes; });
|
7044 | __webpack_require__.d(bootstrapUtils_namespaceObject, "getClassSet", function() { return getClassSet; });
|
7045 | __webpack_require__.d(bootstrapUtils_namespaceObject, "splitBsProps", function() { return splitBsProps; });
|
7046 | __webpack_require__.d(bootstrapUtils_namespaceObject, "splitBsPropsAndOmit", function() { return splitBsPropsAndOmit; });
|
7047 | __webpack_require__.d(bootstrapUtils_namespaceObject, "addStyle", function() { return addStyle; });
|
7048 | __webpack_require__.d(bootstrapUtils_namespaceObject, "_curry", function() { return _curry; });
|
7049 | var utils_namespaceObject = {};
|
7050 | __webpack_require__.r(utils_namespaceObject);
|
7051 | __webpack_require__.d(utils_namespaceObject, "bootstrapUtils", function() { return bootstrapUtils_namespaceObject; });
|
7052 | __webpack_require__.d(utils_namespaceObject, "createChainedFunction", function() { return utils_createChainedFunction; });
|
7053 | __webpack_require__.d(utils_namespaceObject, "ValidComponentChildren", function() { return ValidComponentChildren; });
|
7054 |
|
7055 |
|
7056 | var object_assign = __webpack_require__(38);
|
7057 | var assign_default = __webpack_require__.n(object_assign);
|
7058 |
|
7059 |
|
7060 |
|
7061 | function _extends() {
|
7062 | _extends = assign_default.a || function (target) {
|
7063 | for (var i = 1; i < arguments.length; i++) {
|
7064 | var source = arguments[i];
|
7065 |
|
7066 | for (var key in source) {
|
7067 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
7068 | target[key] = source[key];
|
7069 | }
|
7070 | }
|
7071 | }
|
7072 |
|
7073 | return target;
|
7074 | };
|
7075 |
|
7076 | return _extends.apply(this, arguments);
|
7077 | }
|
7078 |
|
7079 | var create = __webpack_require__(75);
|
7080 | var create_default = __webpack_require__.n(create);
|
7081 |
|
7082 |
|
7083 |
|
7084 | function _inheritsLoose(subClass, superClass) {
|
7085 | subClass.prototype = create_default()(superClass.prototype);
|
7086 | subClass.prototype.constructor = subClass;
|
7087 | subClass.__proto__ = superClass;
|
7088 | }
|
7089 |
|
7090 | var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(1);
|
7091 | var external_root_React_commonjs2_react_commonjs_react_amd_react_default = __webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
|
7092 |
|
7093 |
|
7094 | var keys = __webpack_require__(76);
|
7095 | var keys_default = __webpack_require__.n(keys);
|
7096 |
|
7097 |
|
7098 |
|
7099 | function _objectWithoutPropertiesLoose(source, excluded) {
|
7100 | if (source == null) return {};
|
7101 | var target = {};
|
7102 |
|
7103 | var sourceKeys = keys_default()(source);
|
7104 |
|
7105 | var key, i;
|
7106 |
|
7107 | for (i = 0; i < sourceKeys.length; i++) {
|
7108 | key = sourceKeys[i];
|
7109 | if (excluded.indexOf(key) >= 0) continue;
|
7110 | target[key] = source[key];
|
7111 | }
|
7112 |
|
7113 | return target;
|
7114 | }
|
7115 |
|
7116 | var classnames = __webpack_require__(2);
|
7117 | var classnames_default = __webpack_require__.n(classnames);
|
7118 |
|
7119 |
|
7120 | var prop_types = __webpack_require__(0);
|
7121 | var prop_types_default = __webpack_require__.n(prop_types);
|
7122 |
|
7123 |
|
7124 | var uncontrollable = __webpack_require__(5);
|
7125 | var uncontrollable_default = __webpack_require__.n(uncontrollable);
|
7126 |
|
7127 |
|
7128 | var entries = __webpack_require__(26);
|
7129 | var entries_default = __webpack_require__.n(entries);
|
7130 |
|
7131 |
|
7132 | var browser = __webpack_require__(21);
|
7133 | var browser_default = __webpack_require__.n(browser);
|
7134 |
|
7135 |
|
7136 | var Size = {
|
7137 | LARGE: 'large',
|
7138 | SMALL: 'small',
|
7139 | XSMALL: 'xsmall'
|
7140 | };
|
7141 | var SIZE_MAP = {
|
7142 | large: 'lg',
|
7143 | medium: 'md',
|
7144 | small: 'sm',
|
7145 | xsmall: 'xs',
|
7146 | lg: 'lg',
|
7147 | md: 'md',
|
7148 | sm: 'sm',
|
7149 | xs: 'xs'
|
7150 | };
|
7151 | var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs'];
|
7152 | var State = {
|
7153 | SUCCESS: 'success',
|
7154 | WARNING: 'warning',
|
7155 | DANGER: 'danger',
|
7156 | INFO: 'info'
|
7157 | };
|
7158 | var Style = {
|
7159 | DEFAULT: 'default',
|
7160 | PRIMARY: 'primary',
|
7161 | LINK: 'link',
|
7162 | INVERSE: 'inverse'
|
7163 | };
|
7164 |
|
7165 |
|
7166 |
|
7167 |
|
7168 |
|
7169 |
|
7170 |
|
7171 |
|
7172 | function curry(fn) {
|
7173 | return function () {
|
7174 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
7175 | args[_key] = arguments[_key];
|
7176 | }
|
7177 |
|
7178 | var last = args[args.length - 1];
|
7179 |
|
7180 | if (typeof last === 'function') {
|
7181 | return fn.apply(void 0, args);
|
7182 | }
|
7183 |
|
7184 | return function (Component) {
|
7185 | return fn.apply(void 0, args.concat([Component]));
|
7186 | };
|
7187 | };
|
7188 | }
|
7189 |
|
7190 | function prefix(props, variant) {
|
7191 | var bsClass = (props.bsClass || '').trim();
|
7192 | !(bsClass != null) ? false ? undefined : browser_default()(false) : void 0;
|
7193 | return bsClass + (variant ? "-" + variant : '');
|
7194 | }
|
7195 | var bootstrapUtils_bsClass = curry(function (defaultClass, Component) {
|
7196 | var propTypes = Component.propTypes || (Component.propTypes = {});
|
7197 | var defaultProps = Component.defaultProps || (Component.defaultProps = {});
|
7198 | propTypes.bsClass = prop_types_default.a.string;
|
7199 | defaultProps.bsClass = defaultClass;
|
7200 | return Component;
|
7201 | });
|
7202 | var bsStyles = curry(function (styles, defaultStyle, Component) {
|
7203 | if (typeof defaultStyle !== 'string') {
|
7204 | Component = defaultStyle;
|
7205 | defaultStyle = undefined;
|
7206 | }
|
7207 |
|
7208 | var existing = Component.STYLES || [];
|
7209 | var propTypes = Component.propTypes || {};
|
7210 | styles.forEach(function (style) {
|
7211 | if (existing.indexOf(style) === -1) {
|
7212 | existing.push(style);
|
7213 | }
|
7214 | });
|
7215 | var propType = prop_types_default.a.oneOf(existing);
|
7216 |
|
7217 | Component.STYLES = existing;
|
7218 | propType._values = existing;
|
7219 | Component.propTypes = _extends({}, propTypes, {
|
7220 | bsStyle: propType
|
7221 | });
|
7222 |
|
7223 | if (defaultStyle !== undefined) {
|
7224 | var defaultProps = Component.defaultProps || (Component.defaultProps = {});
|
7225 | defaultProps.bsStyle = defaultStyle;
|
7226 | }
|
7227 |
|
7228 | return Component;
|
7229 | });
|
7230 | var bsSizes = curry(function (sizes, defaultSize, Component) {
|
7231 | if (typeof defaultSize !== 'string') {
|
7232 | Component = defaultSize;
|
7233 | defaultSize = undefined;
|
7234 | }
|
7235 |
|
7236 | var existing = Component.SIZES || [];
|
7237 | var propTypes = Component.propTypes || {};
|
7238 | sizes.forEach(function (size) {
|
7239 | if (existing.indexOf(size) === -1) {
|
7240 | existing.push(size);
|
7241 | }
|
7242 | });
|
7243 | var values = [];
|
7244 | existing.forEach(function (size) {
|
7245 | var mappedSize = SIZE_MAP[size];
|
7246 |
|
7247 | if (mappedSize && mappedSize !== size) {
|
7248 | values.push(mappedSize);
|
7249 | }
|
7250 |
|
7251 | values.push(size);
|
7252 | });
|
7253 | var propType = prop_types_default.a.oneOf(values);
|
7254 | propType._values = values;
|
7255 |
|
7256 | Component.SIZES = existing;
|
7257 | Component.propTypes = _extends({}, propTypes, {
|
7258 | bsSize: propType
|
7259 | });
|
7260 |
|
7261 | if (defaultSize !== undefined) {
|
7262 | if (!Component.defaultProps) {
|
7263 | Component.defaultProps = {};
|
7264 | }
|
7265 |
|
7266 | Component.defaultProps.bsSize = defaultSize;
|
7267 | }
|
7268 |
|
7269 | return Component;
|
7270 | });
|
7271 | function getClassSet(props) {
|
7272 | var _classes;
|
7273 |
|
7274 | var classes = (_classes = {}, _classes[prefix(props)] = true, _classes);
|
7275 |
|
7276 | if (props.bsSize) {
|
7277 | var bsSize = SIZE_MAP[props.bsSize] || props.bsSize;
|
7278 | classes[prefix(props, bsSize)] = true;
|
7279 | }
|
7280 |
|
7281 | if (props.bsStyle) {
|
7282 | classes[prefix(props, props.bsStyle)] = true;
|
7283 | }
|
7284 |
|
7285 | return classes;
|
7286 | }
|
7287 |
|
7288 | function getBsProps(props) {
|
7289 | return {
|
7290 | bsClass: props.bsClass,
|
7291 | bsSize: props.bsSize,
|
7292 | bsStyle: props.bsStyle,
|
7293 | bsRole: props.bsRole
|
7294 | };
|
7295 | }
|
7296 |
|
7297 | function isBsProp(propName) {
|
7298 | return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole';
|
7299 | }
|
7300 |
|
7301 | function splitBsProps(props) {
|
7302 | var elementProps = {};
|
7303 |
|
7304 | entries_default()(props).forEach(function (_ref) {
|
7305 | var propName = _ref[0],
|
7306 | propValue = _ref[1];
|
7307 |
|
7308 | if (!isBsProp(propName)) {
|
7309 | elementProps[propName] = propValue;
|
7310 | }
|
7311 | });
|
7312 |
|
7313 | return [getBsProps(props), elementProps];
|
7314 | }
|
7315 | function splitBsPropsAndOmit(props, omittedPropNames) {
|
7316 | var isOmittedProp = {};
|
7317 | omittedPropNames.forEach(function (propName) {
|
7318 | isOmittedProp[propName] = true;
|
7319 | });
|
7320 | var elementProps = {};
|
7321 |
|
7322 | entries_default()(props).forEach(function (_ref2) {
|
7323 | var propName = _ref2[0],
|
7324 | propValue = _ref2[1];
|
7325 |
|
7326 | if (!isBsProp(propName) && !isOmittedProp[propName]) {
|
7327 | elementProps[propName] = propValue;
|
7328 | }
|
7329 | });
|
7330 |
|
7331 | return [getBsProps(props), elementProps];
|
7332 | }
|
7333 |
|
7334 |
|
7335 |
|
7336 |
|
7337 |
|
7338 | function addStyle(Component) {
|
7339 | for (var _len2 = arguments.length, styleVariant = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
7340 | styleVariant[_key2 - 1] = arguments[_key2];
|
7341 | }
|
7342 |
|
7343 | bsStyles(styleVariant, Component);
|
7344 | }
|
7345 | var _curry = curry;
|
7346 |
|
7347 |
|
7348 |
|
7349 |
|
7350 |
|
7351 |
|
7352 |
|
7353 |
|
7354 |
|
7355 |
|
7356 |
|
7357 |
|
7358 |
|
7359 |
|
7360 |
|
7361 |
|
7362 | function map(children, func, context) {
|
7363 | var index = 0;
|
7364 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.map(children, function (child) {
|
7365 | if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child)) {
|
7366 | return child;
|
7367 | }
|
7368 |
|
7369 | return func.call(context, child, index++);
|
7370 | });
|
7371 | }
|
7372 |
|
7373 |
|
7374 |
|
7375 |
|
7376 |
|
7377 |
|
7378 |
|
7379 |
|
7380 |
|
7381 |
|
7382 |
|
7383 |
|
7384 | function forEach(children, func, context) {
|
7385 | var index = 0;
|
7386 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
|
7387 | if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child)) {
|
7388 | return;
|
7389 | }
|
7390 |
|
7391 | func.call(context, child, index++);
|
7392 | });
|
7393 | }
|
7394 |
|
7395 |
|
7396 |
|
7397 |
|
7398 |
|
7399 |
|
7400 |
|
7401 |
|
7402 | function ValidComponentChildren_count(children) {
|
7403 | var result = 0;
|
7404 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
|
7405 | if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child)) {
|
7406 | return;
|
7407 | }
|
7408 |
|
7409 | ++result;
|
7410 | });
|
7411 | return result;
|
7412 | }
|
7413 |
|
7414 |
|
7415 |
|
7416 |
|
7417 |
|
7418 |
|
7419 |
|
7420 |
|
7421 |
|
7422 |
|
7423 |
|
7424 |
|
7425 |
|
7426 |
|
7427 | function filter(children, func, context) {
|
7428 | var index = 0;
|
7429 | var result = [];
|
7430 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
|
7431 | if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child)) {
|
7432 | return;
|
7433 | }
|
7434 |
|
7435 | if (func.call(context, child, index++)) {
|
7436 | result.push(child);
|
7437 | }
|
7438 | });
|
7439 | return result;
|
7440 | }
|
7441 |
|
7442 | function find(children, func, context) {
|
7443 | var index = 0;
|
7444 | var result;
|
7445 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
|
7446 | if (result) {
|
7447 | return;
|
7448 | }
|
7449 |
|
7450 | if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child)) {
|
7451 | return;
|
7452 | }
|
7453 |
|
7454 | if (func.call(context, child, index++)) {
|
7455 | result = child;
|
7456 | }
|
7457 | });
|
7458 | return result;
|
7459 | }
|
7460 |
|
7461 | function every(children, func, context) {
|
7462 | var index = 0;
|
7463 | var result = true;
|
7464 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
|
7465 | if (!result) {
|
7466 | return;
|
7467 | }
|
7468 |
|
7469 | if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child)) {
|
7470 | return;
|
7471 | }
|
7472 |
|
7473 | if (!func.call(context, child, index++)) {
|
7474 | result = false;
|
7475 | }
|
7476 | });
|
7477 | return result;
|
7478 | }
|
7479 |
|
7480 | function some(children, func, context) {
|
7481 | var index = 0;
|
7482 | var result = false;
|
7483 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
|
7484 | if (result) {
|
7485 | return;
|
7486 | }
|
7487 |
|
7488 | if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child)) {
|
7489 | return;
|
7490 | }
|
7491 |
|
7492 | if (func.call(context, child, index++)) {
|
7493 | result = true;
|
7494 | }
|
7495 | });
|
7496 | return result;
|
7497 | }
|
7498 |
|
7499 | function toArray(children) {
|
7500 | var result = [];
|
7501 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
|
7502 | if (!external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child)) {
|
7503 | return;
|
7504 | }
|
7505 |
|
7506 | result.push(child);
|
7507 | });
|
7508 | return result;
|
7509 | }
|
7510 |
|
7511 | var ValidComponentChildren = ({
|
7512 | map: map,
|
7513 | forEach: forEach,
|
7514 | count: ValidComponentChildren_count,
|
7515 | find: find,
|
7516 | filter: filter,
|
7517 | every: every,
|
7518 | some: some,
|
7519 | toArray: toArray
|
7520 | });
|
7521 |
|
7522 | var createChainableTypeChecker = __webpack_require__(22);
|
7523 | var createChainableTypeChecker_default = __webpack_require__.n(createChainableTypeChecker);
|
7524 |
|
7525 |
|
7526 |
|
7527 |
|
7528 |
|
7529 | var idPropType = prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number]);
|
7530 | function generatedId(name) {
|
7531 | return function (props) {
|
7532 | var error = null;
|
7533 |
|
7534 | if (!props.generateChildId) {
|
7535 | for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
7536 | args[_key - 1] = arguments[_key];
|
7537 | }
|
7538 |
|
7539 | error = idPropType.apply(void 0, [props].concat(args));
|
7540 |
|
7541 | if (!error && !props.id) {
|
7542 | error = new Error("In order to properly initialize the " + name + " in a way that is accessible to assistive technologies " + ("(such as screen readers) an `id` or a `generateChildId` prop to " + name + " is required"));
|
7543 | }
|
7544 | }
|
7545 |
|
7546 | return error;
|
7547 | };
|
7548 | }
|
7549 | function requiredRoles() {
|
7550 | for (var _len2 = arguments.length, roles = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
7551 | roles[_key2] = arguments[_key2];
|
7552 | }
|
7553 |
|
7554 | return createChainableTypeChecker_default()(function (props, propName, component) {
|
7555 | var missing;
|
7556 | roles.every(function (role) {
|
7557 | if (!ValidComponentChildren.some(props.children, function (child) {
|
7558 | return child.props.bsRole === role;
|
7559 | })) {
|
7560 | missing = role;
|
7561 | return false;
|
7562 | }
|
7563 |
|
7564 | return true;
|
7565 | });
|
7566 |
|
7567 | if (missing) {
|
7568 | return new Error("(children) " + component + " - Missing a required child with bsRole: " + (missing + ". " + component + " must have at least one child of each of ") + ("the following bsRoles: " + roles.join(', ')));
|
7569 | }
|
7570 |
|
7571 | return null;
|
7572 | });
|
7573 | }
|
7574 | function exclusiveRoles() {
|
7575 | for (var _len3 = arguments.length, roles = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
7576 | roles[_key3] = arguments[_key3];
|
7577 | }
|
7578 |
|
7579 | return createChainableTypeChecker_default()(function (props, propName, component) {
|
7580 | var duplicate;
|
7581 | roles.every(function (role) {
|
7582 | var childrenWithRole = ValidComponentChildren.filter(props.children, function (child) {
|
7583 | return child.props.bsRole === role;
|
7584 | });
|
7585 |
|
7586 | if (childrenWithRole.length > 1) {
|
7587 | duplicate = role;
|
7588 | return false;
|
7589 | }
|
7590 |
|
7591 | return true;
|
7592 | });
|
7593 |
|
7594 | if (duplicate) {
|
7595 | return new Error("(children) " + component + " - Duplicate children detected of bsRole: " + (duplicate + ". Only one child each allowed with the following ") + ("bsRoles: " + roles.join(', ')));
|
7596 | }
|
7597 |
|
7598 | return null;
|
7599 | });
|
7600 | }
|
7601 |
|
7602 |
|
7603 |
|
7604 |
|
7605 | var _jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelGroup.js";
|
7606 |
|
7607 |
|
7608 |
|
7609 |
|
7610 |
|
7611 |
|
7612 |
|
7613 | var PanelGroup_propTypes = {
|
7614 | accordion: prop_types_default.a.bool,
|
7615 |
|
7616 | |
7617 |
|
7618 |
|
7619 |
|
7620 |
|
7621 |
|
7622 | activeKey: prop_types_default.a.any,
|
7623 |
|
7624 | |
7625 |
|
7626 |
|
7627 |
|
7628 |
|
7629 | onSelect: prop_types_default.a.func,
|
7630 |
|
7631 | |
7632 |
|
7633 |
|
7634 | role: prop_types_default.a.string,
|
7635 |
|
7636 | |
7637 |
|
7638 |
|
7639 |
|
7640 |
|
7641 |
|
7642 |
|
7643 |
|
7644 |
|
7645 |
|
7646 | generateChildId: prop_types_default.a.func,
|
7647 |
|
7648 | |
7649 |
|
7650 |
|
7651 |
|
7652 | id: generatedId('PanelGroup')
|
7653 | };
|
7654 | var PanelGroup_defaultProps = {
|
7655 | accordion: false
|
7656 | };
|
7657 | var childContextTypes = {
|
7658 | $bs_panelGroup: prop_types_default.a.shape({
|
7659 | getId: prop_types_default.a.func,
|
7660 | headerRole: prop_types_default.a.string,
|
7661 | panelRole: prop_types_default.a.string,
|
7662 | activeKey: prop_types_default.a.any,
|
7663 | onToggle: prop_types_default.a.func
|
7664 | })
|
7665 | };
|
7666 |
|
7667 | var PanelGroup_PanelGroup =
|
7668 |
|
7669 | function (_React$Component) {
|
7670 | _inheritsLoose(PanelGroup, _React$Component);
|
7671 |
|
7672 | function PanelGroup() {
|
7673 | var _this;
|
7674 |
|
7675 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
7676 | args[_key] = arguments[_key];
|
7677 | }
|
7678 |
|
7679 | _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
7680 |
|
7681 | _this.handleSelect = function (key, expanded, e) {
|
7682 | if (expanded) {
|
7683 | _this.props.onSelect(key, e);
|
7684 | } else if (_this.props.activeKey === key) {
|
7685 | _this.props.onSelect(null, e);
|
7686 | }
|
7687 | };
|
7688 |
|
7689 | return _this;
|
7690 | }
|
7691 |
|
7692 | var _proto = PanelGroup.prototype;
|
7693 |
|
7694 | _proto.getChildContext = function getChildContext() {
|
7695 | var _this$props = this.props,
|
7696 | activeKey = _this$props.activeKey,
|
7697 | accordion = _this$props.accordion,
|
7698 | generateChildId = _this$props.generateChildId,
|
7699 | id = _this$props.id;
|
7700 | var getId = null;
|
7701 |
|
7702 | if (accordion) {
|
7703 | getId = generateChildId || function (key, type) {
|
7704 | return id ? id + "-" + type + "-" + key : null;
|
7705 | };
|
7706 | }
|
7707 |
|
7708 | return {
|
7709 | $bs_panelGroup: _extends({
|
7710 | getId: getId,
|
7711 | headerRole: 'tab',
|
7712 | panelRole: 'tabpanel'
|
7713 | }, accordion && {
|
7714 | activeKey: activeKey,
|
7715 | onToggle: this.handleSelect
|
7716 | })
|
7717 | };
|
7718 | };
|
7719 |
|
7720 | _proto.render = function render() {
|
7721 | var _this$props2 = this.props,
|
7722 | accordion = _this$props2.accordion,
|
7723 | className = _this$props2.className,
|
7724 | children = _this$props2.children,
|
7725 | props = _objectWithoutPropertiesLoose(_this$props2, ["accordion", "className", "children"]);
|
7726 |
|
7727 | var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onSelect', 'activeKey']),
|
7728 | bsProps = _splitBsPropsAndOmit[0],
|
7729 | elementProps = _splitBsPropsAndOmit[1];
|
7730 |
|
7731 | if (accordion) {
|
7732 | elementProps.role = elementProps.role || 'tablist';
|
7733 | }
|
7734 |
|
7735 | var classes = getClassSet(bsProps);
|
7736 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
7737 | className: classnames_default()(className, classes),
|
7738 | __source: {
|
7739 | fileName: _jsxFileName,
|
7740 | lineNumber: 116
|
7741 | },
|
7742 | __self: this
|
7743 | }), ValidComponentChildren.map(children, function (child) {
|
7744 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, {
|
7745 | bsStyle: child.props.bsStyle || bsProps.bsStyle
|
7746 | });
|
7747 | }));
|
7748 | };
|
7749 |
|
7750 | return PanelGroup;
|
7751 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
7752 |
|
7753 | PanelGroup_PanelGroup.propTypes = PanelGroup_propTypes;
|
7754 | PanelGroup_PanelGroup.defaultProps = PanelGroup_defaultProps;
|
7755 | PanelGroup_PanelGroup.childContextTypes = childContextTypes;
|
7756 | var src_PanelGroup = (uncontrollable_default()(bootstrapUtils_bsClass('panel-group', PanelGroup_PanelGroup), {
|
7757 | activeKey: 'onSelect'
|
7758 | }));
|
7759 |
|
7760 |
|
7761 |
|
7762 | var Accordion_jsxFileName = "/Users/jason/src/react-bootstrap/src/Accordion.js";
|
7763 |
|
7764 |
|
7765 |
|
7766 | var Accordion_Accordion =
|
7767 |
|
7768 | function (_React$Component) {
|
7769 | _inheritsLoose(Accordion, _React$Component);
|
7770 |
|
7771 | function Accordion() {
|
7772 | return _React$Component.apply(this, arguments) || this;
|
7773 | }
|
7774 |
|
7775 | var _proto = Accordion.prototype;
|
7776 |
|
7777 | _proto.render = function render() {
|
7778 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_PanelGroup, _extends({}, this.props, {
|
7779 | accordion: true,
|
7780 | __source: {
|
7781 | fileName: Accordion_jsxFileName,
|
7782 | lineNumber: 8
|
7783 | },
|
7784 | __self: this
|
7785 | }), this.props.children);
|
7786 | };
|
7787 |
|
7788 | return Accordion;
|
7789 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
7790 |
|
7791 | var src_Accordion = (Accordion_Accordion);
|
7792 |
|
7793 | var object_values = __webpack_require__(9);
|
7794 | var values_default = __webpack_require__.n(object_values);
|
7795 |
|
7796 |
|
7797 |
|
7798 | var CloseButton_jsxFileName = "/Users/jason/src/react-bootstrap/src/CloseButton.js";
|
7799 |
|
7800 |
|
7801 | var CloseButton_propTypes = {
|
7802 | label: prop_types_default.a.string.isRequired,
|
7803 | onClick: prop_types_default.a.func
|
7804 | };
|
7805 | var CloseButton_defaultProps = {
|
7806 | label: 'Close'
|
7807 | };
|
7808 |
|
7809 | var CloseButton_CloseButton =
|
7810 |
|
7811 | function (_React$Component) {
|
7812 | _inheritsLoose(CloseButton, _React$Component);
|
7813 |
|
7814 | function CloseButton() {
|
7815 | return _React$Component.apply(this, arguments) || this;
|
7816 | }
|
7817 |
|
7818 | var _proto = CloseButton.prototype;
|
7819 |
|
7820 | _proto.render = function render() {
|
7821 | var _this$props = this.props,
|
7822 | label = _this$props.label,
|
7823 | onClick = _this$props.onClick;
|
7824 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("button", {
|
7825 | type: "button",
|
7826 | className: "close",
|
7827 | onClick: onClick,
|
7828 | __source: {
|
7829 | fileName: CloseButton_jsxFileName,
|
7830 | lineNumber: 17
|
7831 | },
|
7832 | __self: this
|
7833 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
7834 | "aria-hidden": "true",
|
7835 | __source: {
|
7836 | fileName: CloseButton_jsxFileName,
|
7837 | lineNumber: 18
|
7838 | },
|
7839 | __self: this
|
7840 | }, "\xD7"), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
7841 | className: "sr-only",
|
7842 | __source: {
|
7843 | fileName: CloseButton_jsxFileName,
|
7844 | lineNumber: 19
|
7845 | },
|
7846 | __self: this
|
7847 | }, label));
|
7848 | };
|
7849 |
|
7850 | return CloseButton;
|
7851 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
7852 |
|
7853 | CloseButton_CloseButton.propTypes = CloseButton_propTypes;
|
7854 | CloseButton_CloseButton.defaultProps = CloseButton_defaultProps;
|
7855 | var src_CloseButton = (CloseButton_CloseButton);
|
7856 |
|
7857 |
|
7858 |
|
7859 |
|
7860 |
|
7861 | var Alert_jsxFileName = "/Users/jason/src/react-bootstrap/src/Alert.js";
|
7862 |
|
7863 |
|
7864 |
|
7865 |
|
7866 |
|
7867 |
|
7868 | var Alert_propTypes = {
|
7869 | onDismiss: prop_types_default.a.func,
|
7870 | closeLabel: prop_types_default.a.string
|
7871 | };
|
7872 | var Alert_defaultProps = {
|
7873 | closeLabel: 'Close alert'
|
7874 | };
|
7875 |
|
7876 | var Alert_Alert =
|
7877 |
|
7878 | function (_React$Component) {
|
7879 | _inheritsLoose(Alert, _React$Component);
|
7880 |
|
7881 | function Alert() {
|
7882 | return _React$Component.apply(this, arguments) || this;
|
7883 | }
|
7884 |
|
7885 | var _proto = Alert.prototype;
|
7886 |
|
7887 | _proto.render = function render() {
|
7888 | var _extends2;
|
7889 |
|
7890 | var _this$props = this.props,
|
7891 | onDismiss = _this$props.onDismiss,
|
7892 | closeLabel = _this$props.closeLabel,
|
7893 | className = _this$props.className,
|
7894 | children = _this$props.children,
|
7895 | props = _objectWithoutPropertiesLoose(_this$props, ["onDismiss", "closeLabel", "className", "children"]);
|
7896 |
|
7897 | var _splitBsProps = splitBsProps(props),
|
7898 | bsProps = _splitBsProps[0],
|
7899 | elementProps = _splitBsProps[1];
|
7900 |
|
7901 | var dismissable = !!onDismiss;
|
7902 |
|
7903 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'dismissable')] = dismissable, _extends2));
|
7904 |
|
7905 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
7906 | role: "alert",
|
7907 | className: classnames_default()(className, classes),
|
7908 | __source: {
|
7909 | fileName: Alert_jsxFileName,
|
7910 | lineNumber: 36
|
7911 | },
|
7912 | __self: this
|
7913 | }), dismissable && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_CloseButton, {
|
7914 | onClick: onDismiss,
|
7915 | label: closeLabel,
|
7916 | __source: {
|
7917 | fileName: Alert_jsxFileName,
|
7918 | lineNumber: 41
|
7919 | },
|
7920 | __self: this
|
7921 | }), children);
|
7922 | };
|
7923 |
|
7924 | return Alert;
|
7925 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
7926 |
|
7927 | Alert_Alert.propTypes = Alert_propTypes;
|
7928 | Alert_Alert.defaultProps = Alert_defaultProps;
|
7929 | var src_Alert = (bsStyles(values_default()(State), State.INFO, bootstrapUtils_bsClass('alert', Alert_Alert)));
|
7930 |
|
7931 |
|
7932 |
|
7933 |
|
7934 | var Badge_jsxFileName = "/Users/jason/src/react-bootstrap/src/Badge.js";
|
7935 |
|
7936 |
|
7937 |
|
7938 |
|
7939 |
|
7940 | var Badge_propTypes = {
|
7941 | pullRight: prop_types_default.a.bool
|
7942 | };
|
7943 | var Badge_defaultProps = {
|
7944 | pullRight: false
|
7945 | };
|
7946 |
|
7947 | var Badge_Badge =
|
7948 |
|
7949 | function (_React$Component) {
|
7950 | _inheritsLoose(Badge, _React$Component);
|
7951 |
|
7952 | function Badge() {
|
7953 | return _React$Component.apply(this, arguments) || this;
|
7954 | }
|
7955 |
|
7956 | var _proto = Badge.prototype;
|
7957 |
|
7958 | _proto.hasContent = function hasContent(children) {
|
7959 | var result = false;
|
7960 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
|
7961 | if (result) {
|
7962 | return;
|
7963 | }
|
7964 |
|
7965 | if (child || child === 0) {
|
7966 | result = true;
|
7967 | }
|
7968 | });
|
7969 | return result;
|
7970 | };
|
7971 |
|
7972 | _proto.render = function render() {
|
7973 | var _this$props = this.props,
|
7974 | pullRight = _this$props.pullRight,
|
7975 | className = _this$props.className,
|
7976 | children = _this$props.children,
|
7977 | props = _objectWithoutPropertiesLoose(_this$props, ["pullRight", "className", "children"]);
|
7978 |
|
7979 | var _splitBsProps = splitBsProps(props),
|
7980 | bsProps = _splitBsProps[0],
|
7981 | elementProps = _splitBsProps[1];
|
7982 |
|
7983 | var classes = _extends({}, getClassSet(bsProps), {
|
7984 | 'pull-right': pullRight,
|
7985 |
|
7986 | hidden: !this.hasContent(children)
|
7987 | });
|
7988 |
|
7989 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", _extends({}, elementProps, {
|
7990 | className: classnames_default()(className, classes),
|
7991 | __source: {
|
7992 | fileName: Badge_jsxFileName,
|
7993 | lineNumber: 47
|
7994 | },
|
7995 | __self: this
|
7996 | }), children);
|
7997 | };
|
7998 |
|
7999 | return Badge;
|
8000 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
8001 |
|
8002 | Badge_Badge.propTypes = Badge_propTypes;
|
8003 | Badge_Badge.defaultProps = Badge_defaultProps;
|
8004 | var src_Badge = (bootstrapUtils_bsClass('badge', Badge_Badge));
|
8005 |
|
8006 | function _assertThisInitialized(self) {
|
8007 | if (self === void 0) {
|
8008 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
8009 | }
|
8010 |
|
8011 | return self;
|
8012 | }
|
8013 |
|
8014 | var elementType = __webpack_require__(3);
|
8015 | var elementType_default = __webpack_require__.n(elementType);
|
8016 |
|
8017 |
|
8018 |
|
8019 |
|
8020 |
|
8021 |
|
8022 |
|
8023 |
|
8024 |
|
8025 |
|
8026 |
|
8027 | function createChainedFunction() {
|
8028 | for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
|
8029 | funcs[_key] = arguments[_key];
|
8030 | }
|
8031 |
|
8032 | return funcs.filter(function (f) {
|
8033 | return f != null;
|
8034 | }).reduce(function (acc, f) {
|
8035 | if (typeof f !== 'function') {
|
8036 | throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
|
8037 | }
|
8038 |
|
8039 | if (acc === null) {
|
8040 | return f;
|
8041 | }
|
8042 |
|
8043 | return function chainedFunction() {
|
8044 | for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
8045 | args[_key2] = arguments[_key2];
|
8046 | }
|
8047 |
|
8048 | acc.apply(this, args);
|
8049 | f.apply(this, args);
|
8050 | };
|
8051 | }, null);
|
8052 | }
|
8053 |
|
8054 | var utils_createChainedFunction = (createChainedFunction);
|
8055 |
|
8056 |
|
8057 |
|
8058 |
|
8059 |
|
8060 | var SafeAnchor_jsxFileName = "/Users/jason/src/react-bootstrap/src/SafeAnchor.js";
|
8061 |
|
8062 |
|
8063 |
|
8064 |
|
8065 | var SafeAnchor_propTypes = {
|
8066 | href: prop_types_default.a.string,
|
8067 | onClick: prop_types_default.a.func,
|
8068 | onKeyDown: prop_types_default.a.func,
|
8069 | disabled: prop_types_default.a.bool,
|
8070 | role: prop_types_default.a.string,
|
8071 | tabIndex: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
|
8072 |
|
8073 | |
8074 |
|
8075 |
|
8076 | componentClass: elementType_default.a
|
8077 | };
|
8078 | var SafeAnchor_defaultProps = {
|
8079 | componentClass: 'a'
|
8080 | };
|
8081 |
|
8082 | function isTrivialHref(href) {
|
8083 | return !href || href.trim() === '#';
|
8084 | }
|
8085 |
|
8086 |
|
8087 |
|
8088 |
|
8089 |
|
8090 |
|
8091 |
|
8092 |
|
8093 |
|
8094 | var SafeAnchor_SafeAnchor =
|
8095 |
|
8096 | function (_React$Component) {
|
8097 | _inheritsLoose(SafeAnchor, _React$Component);
|
8098 |
|
8099 | function SafeAnchor(props, context) {
|
8100 | var _this;
|
8101 |
|
8102 | _this = _React$Component.call(this, props, context) || this;
|
8103 | _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
8104 | _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
8105 | return _this;
|
8106 | }
|
8107 |
|
8108 | var _proto = SafeAnchor.prototype;
|
8109 |
|
8110 | _proto.handleClick = function handleClick(event) {
|
8111 | var _this$props = this.props,
|
8112 | disabled = _this$props.disabled,
|
8113 | href = _this$props.href,
|
8114 | onClick = _this$props.onClick;
|
8115 |
|
8116 | if (disabled || isTrivialHref(href)) {
|
8117 | event.preventDefault();
|
8118 | }
|
8119 |
|
8120 | if (disabled) {
|
8121 | event.stopPropagation();
|
8122 | return;
|
8123 | }
|
8124 |
|
8125 | if (onClick) {
|
8126 | onClick(event);
|
8127 | }
|
8128 | };
|
8129 |
|
8130 | _proto.handleKeyDown = function handleKeyDown(event) {
|
8131 | if (event.key === ' ') {
|
8132 | event.preventDefault();
|
8133 | this.handleClick(event);
|
8134 | }
|
8135 | };
|
8136 |
|
8137 | _proto.render = function render() {
|
8138 | var _this$props2 = this.props,
|
8139 | Component = _this$props2.componentClass,
|
8140 | disabled = _this$props2.disabled,
|
8141 | onKeyDown = _this$props2.onKeyDown,
|
8142 | props = _objectWithoutPropertiesLoose(_this$props2, ["componentClass", "disabled", "onKeyDown"]);
|
8143 |
|
8144 | if (isTrivialHref(props.href)) {
|
8145 | props.role = props.role || 'button';
|
8146 |
|
8147 |
|
8148 | props.href = props.href || '#';
|
8149 | }
|
8150 |
|
8151 | if (disabled) {
|
8152 | props.tabIndex = -1;
|
8153 | props.style = _extends({
|
8154 | pointerEvents: 'none'
|
8155 | }, props.style);
|
8156 | }
|
8157 |
|
8158 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, props, {
|
8159 | onClick: this.handleClick,
|
8160 | onKeyDown: utils_createChainedFunction(this.handleKeyDown, onKeyDown),
|
8161 | __source: {
|
8162 | fileName: SafeAnchor_jsxFileName,
|
8163 | lineNumber: 88
|
8164 | },
|
8165 | __self: this
|
8166 | }));
|
8167 | };
|
8168 |
|
8169 | return SafeAnchor;
|
8170 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
8171 |
|
8172 | SafeAnchor_SafeAnchor.propTypes = SafeAnchor_propTypes;
|
8173 | SafeAnchor_SafeAnchor.defaultProps = SafeAnchor_defaultProps;
|
8174 | var src_SafeAnchor = (SafeAnchor_SafeAnchor);
|
8175 |
|
8176 |
|
8177 |
|
8178 |
|
8179 | var BreadcrumbItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/BreadcrumbItem.js";
|
8180 |
|
8181 |
|
8182 |
|
8183 |
|
8184 | var BreadcrumbItem_propTypes = {
|
8185 | |
8186 |
|
8187 |
|
8188 | active: prop_types_default.a.bool,
|
8189 |
|
8190 | |
8191 |
|
8192 |
|
8193 | href: prop_types_default.a.string,
|
8194 |
|
8195 | |
8196 |
|
8197 |
|
8198 | title: prop_types_default.a.node,
|
8199 |
|
8200 | |
8201 |
|
8202 |
|
8203 | target: prop_types_default.a.string
|
8204 | };
|
8205 | var BreadcrumbItem_defaultProps = {
|
8206 | active: false
|
8207 | };
|
8208 |
|
8209 | var BreadcrumbItem_BreadcrumbItem =
|
8210 |
|
8211 | function (_React$Component) {
|
8212 | _inheritsLoose(BreadcrumbItem, _React$Component);
|
8213 |
|
8214 | function BreadcrumbItem() {
|
8215 | return _React$Component.apply(this, arguments) || this;
|
8216 | }
|
8217 |
|
8218 | var _proto = BreadcrumbItem.prototype;
|
8219 |
|
8220 | _proto.render = function render() {
|
8221 | var _this$props = this.props,
|
8222 | active = _this$props.active,
|
8223 | href = _this$props.href,
|
8224 | title = _this$props.title,
|
8225 | target = _this$props.target,
|
8226 | className = _this$props.className,
|
8227 | props = _objectWithoutPropertiesLoose(_this$props, ["active", "href", "title", "target", "className"]);
|
8228 |
|
8229 |
|
8230 | var linkProps = {
|
8231 | href: href,
|
8232 | title: title,
|
8233 | target: target
|
8234 | };
|
8235 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", {
|
8236 | className: classnames_default()(className, {
|
8237 | active: active
|
8238 | }),
|
8239 | __source: {
|
8240 | fileName: BreadcrumbItem_jsxFileName,
|
8241 | lineNumber: 38
|
8242 | },
|
8243 | __self: this
|
8244 | }, active ? external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", _extends({}, props, {
|
8245 | __source: {
|
8246 | fileName: BreadcrumbItem_jsxFileName,
|
8247 | lineNumber: 40
|
8248 | },
|
8249 | __self: this
|
8250 | })) : external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_SafeAnchor, _extends({}, props, linkProps, {
|
8251 | __source: {
|
8252 | fileName: BreadcrumbItem_jsxFileName,
|
8253 | lineNumber: 42
|
8254 | },
|
8255 | __self: this
|
8256 | })));
|
8257 | };
|
8258 |
|
8259 | return BreadcrumbItem;
|
8260 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
8261 |
|
8262 | BreadcrumbItem_BreadcrumbItem.propTypes = BreadcrumbItem_propTypes;
|
8263 | BreadcrumbItem_BreadcrumbItem.defaultProps = BreadcrumbItem_defaultProps;
|
8264 | var src_BreadcrumbItem = (BreadcrumbItem_BreadcrumbItem);
|
8265 |
|
8266 |
|
8267 |
|
8268 |
|
8269 | var Breadcrumb_jsxFileName = "/Users/jason/src/react-bootstrap/src/Breadcrumb.js";
|
8270 |
|
8271 |
|
8272 |
|
8273 |
|
8274 |
|
8275 | var Breadcrumb_Breadcrumb =
|
8276 |
|
8277 | function (_React$Component) {
|
8278 | _inheritsLoose(Breadcrumb, _React$Component);
|
8279 |
|
8280 | function Breadcrumb() {
|
8281 | return _React$Component.apply(this, arguments) || this;
|
8282 | }
|
8283 |
|
8284 | var _proto = Breadcrumb.prototype;
|
8285 |
|
8286 | _proto.render = function render() {
|
8287 | var _this$props = this.props,
|
8288 | className = _this$props.className,
|
8289 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
8290 |
|
8291 | var _splitBsProps = splitBsProps(props),
|
8292 | bsProps = _splitBsProps[0],
|
8293 | elementProps = _splitBsProps[1];
|
8294 |
|
8295 | var classes = getClassSet(bsProps);
|
8296 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ol", _extends({}, elementProps, {
|
8297 | role: "navigation",
|
8298 | "aria-label": "breadcrumbs",
|
8299 | className: classnames_default()(className, classes),
|
8300 | __source: {
|
8301 | fileName: Breadcrumb_jsxFileName,
|
8302 | lineNumber: 15
|
8303 | },
|
8304 | __self: this
|
8305 | }));
|
8306 | };
|
8307 |
|
8308 | return Breadcrumb;
|
8309 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
8310 |
|
8311 | Breadcrumb_Breadcrumb.Item = src_BreadcrumbItem;
|
8312 | var src_Breadcrumb = (bootstrapUtils_bsClass('breadcrumb', Breadcrumb_Breadcrumb));
|
8313 |
|
8314 |
|
8315 |
|
8316 |
|
8317 |
|
8318 | var Button_jsxFileName = "/Users/jason/src/react-bootstrap/src/Button.js";
|
8319 |
|
8320 |
|
8321 |
|
8322 |
|
8323 |
|
8324 |
|
8325 |
|
8326 | var Button_propTypes = {
|
8327 | active: prop_types_default.a.bool,
|
8328 | disabled: prop_types_default.a.bool,
|
8329 | block: prop_types_default.a.bool,
|
8330 | onClick: prop_types_default.a.func,
|
8331 | componentClass: elementType_default.a,
|
8332 | href: prop_types_default.a.string,
|
8333 |
|
8334 | |
8335 |
|
8336 |
|
8337 |
|
8338 | type: prop_types_default.a.oneOf(['button', 'reset', 'submit'])
|
8339 | };
|
8340 | var Button_defaultProps = {
|
8341 | active: false,
|
8342 | block: false,
|
8343 | disabled: false
|
8344 | };
|
8345 |
|
8346 | var Button_Button =
|
8347 |
|
8348 | function (_React$Component) {
|
8349 | _inheritsLoose(Button, _React$Component);
|
8350 |
|
8351 | function Button() {
|
8352 | return _React$Component.apply(this, arguments) || this;
|
8353 | }
|
8354 |
|
8355 | var _proto = Button.prototype;
|
8356 |
|
8357 | _proto.renderAnchor = function renderAnchor(elementProps, className) {
|
8358 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_SafeAnchor, _extends({}, elementProps, {
|
8359 | className: classnames_default()(className, elementProps.disabled && 'disabled'),
|
8360 | __source: {
|
8361 | fileName: Button_jsxFileName,
|
8362 | lineNumber: 41
|
8363 | },
|
8364 | __self: this
|
8365 | }));
|
8366 | };
|
8367 |
|
8368 | _proto.renderButton = function renderButton(_ref, className) {
|
8369 | var componentClass = _ref.componentClass,
|
8370 | elementProps = _objectWithoutPropertiesLoose(_ref, ["componentClass"]);
|
8371 |
|
8372 | var Component = componentClass || 'button';
|
8373 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
8374 | type: elementProps.type || 'button',
|
8375 | className: className,
|
8376 | __source: {
|
8377 | fileName: Button_jsxFileName,
|
8378 | lineNumber: 52
|
8379 | },
|
8380 | __self: this
|
8381 | }));
|
8382 | };
|
8383 |
|
8384 | _proto.render = function render() {
|
8385 | var _extends2;
|
8386 |
|
8387 | var _this$props = this.props,
|
8388 | active = _this$props.active,
|
8389 | block = _this$props.block,
|
8390 | className = _this$props.className,
|
8391 | props = _objectWithoutPropertiesLoose(_this$props, ["active", "block", "className"]);
|
8392 |
|
8393 | var _splitBsProps = splitBsProps(props),
|
8394 | bsProps = _splitBsProps[0],
|
8395 | elementProps = _splitBsProps[1];
|
8396 |
|
8397 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {
|
8398 | active: active
|
8399 | }, _extends2[prefix(bsProps, 'block')] = block, _extends2));
|
8400 |
|
8401 | var fullClassName = classnames_default()(className, classes);
|
8402 |
|
8403 | if (elementProps.href) {
|
8404 | return this.renderAnchor(elementProps, fullClassName);
|
8405 | }
|
8406 |
|
8407 | return this.renderButton(elementProps, fullClassName);
|
8408 | };
|
8409 |
|
8410 | return Button;
|
8411 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
8412 |
|
8413 | Button_Button.propTypes = Button_propTypes;
|
8414 | Button_Button.defaultProps = Button_defaultProps;
|
8415 | var src_Button = (bootstrapUtils_bsClass('btn', bsSizes([Size.LARGE, Size.SMALL, Size.XSMALL], bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY, Style.LINK]), Style.DEFAULT, Button_Button))));
|
8416 |
|
8417 | var lib_all = __webpack_require__(14);
|
8418 | var all_default = __webpack_require__.n(lib_all);
|
8419 |
|
8420 |
|
8421 |
|
8422 |
|
8423 |
|
8424 | var ButtonGroup_jsxFileName = "/Users/jason/src/react-bootstrap/src/ButtonGroup.js";
|
8425 |
|
8426 |
|
8427 |
|
8428 |
|
8429 |
|
8430 |
|
8431 | var ButtonGroup_propTypes = {
|
8432 | vertical: prop_types_default.a.bool,
|
8433 | justified: prop_types_default.a.bool,
|
8434 |
|
8435 | |
8436 |
|
8437 |
|
8438 |
|
8439 | block: all_default()(prop_types_default.a.bool, function (_ref) {
|
8440 | var block = _ref.block,
|
8441 | vertical = _ref.vertical;
|
8442 | return block && !vertical ? new Error('`block` requires `vertical` to be set to have any effect') : null;
|
8443 | })
|
8444 | };
|
8445 | var ButtonGroup_defaultProps = {
|
8446 | block: false,
|
8447 | justified: false,
|
8448 | vertical: false
|
8449 | };
|
8450 |
|
8451 | var ButtonGroup_ButtonGroup =
|
8452 |
|
8453 | function (_React$Component) {
|
8454 | _inheritsLoose(ButtonGroup, _React$Component);
|
8455 |
|
8456 | function ButtonGroup() {
|
8457 | return _React$Component.apply(this, arguments) || this;
|
8458 | }
|
8459 |
|
8460 | var _proto = ButtonGroup.prototype;
|
8461 |
|
8462 | _proto.render = function render() {
|
8463 | var _extends2;
|
8464 |
|
8465 | var _this$props = this.props,
|
8466 | block = _this$props.block,
|
8467 | justified = _this$props.justified,
|
8468 | vertical = _this$props.vertical,
|
8469 | className = _this$props.className,
|
8470 | props = _objectWithoutPropertiesLoose(_this$props, ["block", "justified", "vertical", "className"]);
|
8471 |
|
8472 | var _splitBsProps = splitBsProps(props),
|
8473 | bsProps = _splitBsProps[0],
|
8474 | elementProps = _splitBsProps[1];
|
8475 |
|
8476 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps)] = !vertical, _extends2[prefix(bsProps, 'vertical')] = vertical, _extends2[prefix(bsProps, 'justified')] = justified, _extends2[prefix(src_Button.defaultProps, 'block')] = block, _extends2));
|
8477 |
|
8478 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
8479 | className: classnames_default()(className, classes),
|
8480 | __source: {
|
8481 | fileName: ButtonGroup_jsxFileName,
|
8482 | lineNumber: 52
|
8483 | },
|
8484 | __self: this
|
8485 | }));
|
8486 | };
|
8487 |
|
8488 | return ButtonGroup;
|
8489 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
8490 |
|
8491 | ButtonGroup_ButtonGroup.propTypes = ButtonGroup_propTypes;
|
8492 | ButtonGroup_ButtonGroup.defaultProps = ButtonGroup_defaultProps;
|
8493 | var src_ButtonGroup = (bootstrapUtils_bsClass('btn-group', ButtonGroup_ButtonGroup));
|
8494 |
|
8495 |
|
8496 |
|
8497 |
|
8498 | var ButtonToolbar_jsxFileName = "/Users/jason/src/react-bootstrap/src/ButtonToolbar.js";
|
8499 |
|
8500 |
|
8501 |
|
8502 |
|
8503 | var ButtonToolbar_ButtonToolbar =
|
8504 |
|
8505 | function (_React$Component) {
|
8506 | _inheritsLoose(ButtonToolbar, _React$Component);
|
8507 |
|
8508 | function ButtonToolbar() {
|
8509 | return _React$Component.apply(this, arguments) || this;
|
8510 | }
|
8511 |
|
8512 | var _proto = ButtonToolbar.prototype;
|
8513 |
|
8514 | _proto.render = function render() {
|
8515 | var _this$props = this.props,
|
8516 | className = _this$props.className,
|
8517 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
8518 |
|
8519 | var _splitBsProps = splitBsProps(props),
|
8520 | bsProps = _splitBsProps[0],
|
8521 | elementProps = _splitBsProps[1];
|
8522 |
|
8523 | var classes = getClassSet(bsProps);
|
8524 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
8525 | role: "toolbar",
|
8526 | className: classnames_default()(className, classes),
|
8527 | __source: {
|
8528 | fileName: ButtonToolbar_jsxFileName,
|
8529 | lineNumber: 14
|
8530 | },
|
8531 | __self: this
|
8532 | }));
|
8533 | };
|
8534 |
|
8535 | return ButtonToolbar;
|
8536 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
8537 |
|
8538 | var src_ButtonToolbar = (bootstrapUtils_bsClass('btn-toolbar', ButtonToolbar_ButtonToolbar));
|
8539 |
|
8540 |
|
8541 |
|
8542 |
|
8543 | var CarouselCaption_jsxFileName = "/Users/jason/src/react-bootstrap/src/CarouselCaption.js";
|
8544 |
|
8545 |
|
8546 |
|
8547 |
|
8548 | var CarouselCaption_propTypes = {
|
8549 | componentClass: elementType_default.a
|
8550 | };
|
8551 | var CarouselCaption_defaultProps = {
|
8552 | componentClass: 'div'
|
8553 | };
|
8554 |
|
8555 | var CarouselCaption_CarouselCaption =
|
8556 |
|
8557 | function (_React$Component) {
|
8558 | _inheritsLoose(CarouselCaption, _React$Component);
|
8559 |
|
8560 | function CarouselCaption() {
|
8561 | return _React$Component.apply(this, arguments) || this;
|
8562 | }
|
8563 |
|
8564 | var _proto = CarouselCaption.prototype;
|
8565 |
|
8566 | _proto.render = function render() {
|
8567 | var _this$props = this.props,
|
8568 | Component = _this$props.componentClass,
|
8569 | className = _this$props.className,
|
8570 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
8571 |
|
8572 | var _splitBsProps = splitBsProps(props),
|
8573 | bsProps = _splitBsProps[0],
|
8574 | elementProps = _splitBsProps[1];
|
8575 |
|
8576 | var classes = getClassSet(bsProps);
|
8577 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
8578 | className: classnames_default()(className, classes),
|
8579 | __source: {
|
8580 | fileName: CarouselCaption_jsxFileName,
|
8581 | lineNumber: 23
|
8582 | },
|
8583 | __self: this
|
8584 | }));
|
8585 | };
|
8586 |
|
8587 | return CarouselCaption;
|
8588 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
8589 |
|
8590 | CarouselCaption_CarouselCaption.propTypes = CarouselCaption_propTypes;
|
8591 | CarouselCaption_CarouselCaption.defaultProps = CarouselCaption_defaultProps;
|
8592 | var src_CarouselCaption = (bootstrapUtils_bsClass('carousel-caption', CarouselCaption_CarouselCaption));
|
8593 |
|
8594 | var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(4);
|
8595 | var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = __webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
|
8596 |
|
8597 |
|
8598 | var dom_helpers_transition = __webpack_require__(77);
|
8599 | var transition_default = __webpack_require__.n(dom_helpers_transition);
|
8600 |
|
8601 |
|
8602 |
|
8603 |
|
8604 |
|
8605 |
|
8606 | var CarouselItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/CarouselItem.js";
|
8607 |
|
8608 |
|
8609 |
|
8610 |
|
8611 |
|
8612 | var CarouselItem_propTypes = {
|
8613 | direction: prop_types_default.a.oneOf(['prev', 'next']),
|
8614 | onAnimateOutEnd: prop_types_default.a.func,
|
8615 | active: prop_types_default.a.bool,
|
8616 | animateIn: prop_types_default.a.bool,
|
8617 | animateOut: prop_types_default.a.bool,
|
8618 | index: prop_types_default.a.number
|
8619 | };
|
8620 | var CarouselItem_defaultProps = {
|
8621 | active: false,
|
8622 | animateIn: false,
|
8623 | animateOut: false
|
8624 | };
|
8625 |
|
8626 | var CarouselItem_CarouselItem =
|
8627 |
|
8628 | function (_React$Component) {
|
8629 | _inheritsLoose(CarouselItem, _React$Component);
|
8630 |
|
8631 | function CarouselItem(props, context) {
|
8632 | var _this;
|
8633 |
|
8634 | _this = _React$Component.call(this, props, context) || this;
|
8635 | _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
8636 | _this.state = {
|
8637 | direction: null
|
8638 | };
|
8639 | _this.isUnmounted = false;
|
8640 | return _this;
|
8641 | }
|
8642 |
|
8643 | var _proto = CarouselItem.prototype;
|
8644 |
|
8645 | _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
8646 | if (this.props.active !== nextProps.active) {
|
8647 | this.setState({
|
8648 | direction: null
|
8649 | });
|
8650 | }
|
8651 | };
|
8652 |
|
8653 | _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
8654 | var _this2 = this;
|
8655 |
|
8656 | var active = this.props.active;
|
8657 | var prevActive = prevProps.active;
|
8658 |
|
8659 | if (!active && prevActive) {
|
8660 | transition_default.a.end(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.findDOMNode(this), this.handleAnimateOutEnd);
|
8661 | }
|
8662 |
|
8663 | if (active !== prevActive) {
|
8664 | setTimeout(function () {
|
8665 | return _this2.startAnimation();
|
8666 | }, 20);
|
8667 | }
|
8668 | };
|
8669 |
|
8670 | _proto.componentWillUnmount = function componentWillUnmount() {
|
8671 | this.isUnmounted = true;
|
8672 | };
|
8673 |
|
8674 | _proto.handleAnimateOutEnd = function handleAnimateOutEnd() {
|
8675 | if (this.isUnmounted) {
|
8676 | return;
|
8677 | }
|
8678 |
|
8679 | if (this.props.onAnimateOutEnd) {
|
8680 | this.props.onAnimateOutEnd(this.props.index);
|
8681 | }
|
8682 | };
|
8683 |
|
8684 | _proto.startAnimation = function startAnimation() {
|
8685 | if (this.isUnmounted) {
|
8686 | return;
|
8687 | }
|
8688 |
|
8689 | this.setState({
|
8690 | direction: this.props.direction === 'prev' ? 'right' : 'left'
|
8691 | });
|
8692 | };
|
8693 |
|
8694 | _proto.render = function render() {
|
8695 | var _this$props = this.props,
|
8696 | direction = _this$props.direction,
|
8697 | active = _this$props.active,
|
8698 | animateIn = _this$props.animateIn,
|
8699 | animateOut = _this$props.animateOut,
|
8700 | className = _this$props.className,
|
8701 | props = _objectWithoutPropertiesLoose(_this$props, ["direction", "active", "animateIn", "animateOut", "className"]);
|
8702 |
|
8703 | delete props.onAnimateOutEnd;
|
8704 | delete props.index;
|
8705 | var classes = {
|
8706 | item: true,
|
8707 | active: active && !animateIn || animateOut
|
8708 | };
|
8709 |
|
8710 | if (direction && active && animateIn) {
|
8711 | classes[direction] = true;
|
8712 | }
|
8713 |
|
8714 | if (this.state.direction && (animateIn || animateOut)) {
|
8715 | classes[this.state.direction] = true;
|
8716 | }
|
8717 |
|
8718 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, props, {
|
8719 | className: classnames_default()(className, classes),
|
8720 | __source: {
|
8721 | fileName: CarouselItem_jsxFileName,
|
8722 | lineNumber: 102
|
8723 | },
|
8724 | __self: this
|
8725 | }));
|
8726 | };
|
8727 |
|
8728 | return CarouselItem;
|
8729 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
8730 |
|
8731 | CarouselItem_CarouselItem.propTypes = CarouselItem_propTypes;
|
8732 | CarouselItem_CarouselItem.defaultProps = CarouselItem_defaultProps;
|
8733 | var src_CarouselItem = (CarouselItem_CarouselItem);
|
8734 |
|
8735 |
|
8736 |
|
8737 |
|
8738 | var Glyphicon_jsxFileName = "/Users/jason/src/react-bootstrap/src/Glyphicon.js";
|
8739 |
|
8740 |
|
8741 |
|
8742 |
|
8743 | var Glyphicon_propTypes = {
|
8744 | |
8745 |
|
8746 |
|
8747 | glyph: prop_types_default.a.string.isRequired
|
8748 | };
|
8749 |
|
8750 | var Glyphicon_Glyphicon =
|
8751 |
|
8752 | function (_React$Component) {
|
8753 | _inheritsLoose(Glyphicon, _React$Component);
|
8754 |
|
8755 | function Glyphicon() {
|
8756 | return _React$Component.apply(this, arguments) || this;
|
8757 | }
|
8758 |
|
8759 | var _proto = Glyphicon.prototype;
|
8760 |
|
8761 | _proto.render = function render() {
|
8762 | var _extends2;
|
8763 |
|
8764 | var _this$props = this.props,
|
8765 | glyph = _this$props.glyph,
|
8766 | className = _this$props.className,
|
8767 | props = _objectWithoutPropertiesLoose(_this$props, ["glyph", "className"]);
|
8768 |
|
8769 | var _splitBsProps = splitBsProps(props),
|
8770 | bsProps = _splitBsProps[0],
|
8771 | elementProps = _splitBsProps[1];
|
8772 |
|
8773 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, glyph)] = true, _extends2));
|
8774 |
|
8775 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", _extends({}, elementProps, {
|
8776 | className: classnames_default()(className, classes),
|
8777 | __source: {
|
8778 | fileName: Glyphicon_jsxFileName,
|
8779 | lineNumber: 30
|
8780 | },
|
8781 | __self: this
|
8782 | }));
|
8783 | };
|
8784 |
|
8785 | return Glyphicon;
|
8786 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
8787 |
|
8788 | Glyphicon_Glyphicon.propTypes = Glyphicon_propTypes;
|
8789 | var src_Glyphicon = (bootstrapUtils_bsClass('glyphicon', Glyphicon_Glyphicon));
|
8790 |
|
8791 |
|
8792 |
|
8793 |
|
8794 |
|
8795 | var Carousel_jsxFileName = "/Users/jason/src/react-bootstrap/src/Carousel.js";
|
8796 |
|
8797 |
|
8798 |
|
8799 |
|
8800 |
|
8801 |
|
8802 |
|
8803 |
|
8804 |
|
8805 |
|
8806 |
|
8807 | var Carousel_propTypes = {
|
8808 | slide: prop_types_default.a.bool,
|
8809 | indicators: prop_types_default.a.bool,
|
8810 |
|
8811 | |
8812 |
|
8813 |
|
8814 |
|
8815 | interval: prop_types_default.a.number,
|
8816 | controls: prop_types_default.a.bool,
|
8817 | pauseOnHover: prop_types_default.a.bool,
|
8818 | wrap: prop_types_default.a.bool,
|
8819 |
|
8820 | |
8821 |
|
8822 |
|
8823 |
|
8824 |
|
8825 |
|
8826 |
|
8827 |
|
8828 |
|
8829 |
|
8830 |
|
8831 | onSelect: prop_types_default.a.func,
|
8832 | onSlideEnd: prop_types_default.a.func,
|
8833 | activeIndex: prop_types_default.a.number,
|
8834 | defaultActiveIndex: prop_types_default.a.number,
|
8835 | direction: prop_types_default.a.oneOf(['prev', 'next']),
|
8836 | prevIcon: prop_types_default.a.node,
|
8837 |
|
8838 | |
8839 |
|
8840 |
|
8841 |
|
8842 |
|
8843 | prevLabel: prop_types_default.a.string,
|
8844 | nextIcon: prop_types_default.a.node,
|
8845 |
|
8846 | |
8847 |
|
8848 |
|
8849 |
|
8850 |
|
8851 | nextLabel: prop_types_default.a.string
|
8852 | };
|
8853 | var Carousel_defaultProps = {
|
8854 | slide: true,
|
8855 | interval: 5000,
|
8856 | pauseOnHover: true,
|
8857 | wrap: true,
|
8858 | indicators: true,
|
8859 | controls: true,
|
8860 | prevIcon: external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Glyphicon, {
|
8861 | glyph: "chevron-left",
|
8862 | __source: {
|
8863 | fileName: Carousel_jsxFileName,
|
8864 | lineNumber: 71
|
8865 | },
|
8866 | __self: undefined
|
8867 | }),
|
8868 | prevLabel: 'Previous',
|
8869 | nextIcon: external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Glyphicon, {
|
8870 | glyph: "chevron-right",
|
8871 | __source: {
|
8872 | fileName: Carousel_jsxFileName,
|
8873 | lineNumber: 73
|
8874 | },
|
8875 | __self: undefined
|
8876 | }),
|
8877 | nextLabel: 'Next'
|
8878 | };
|
8879 |
|
8880 | var Carousel_Carousel =
|
8881 |
|
8882 | function (_React$Component) {
|
8883 | _inheritsLoose(Carousel, _React$Component);
|
8884 |
|
8885 | function Carousel(props, context) {
|
8886 | var _this;
|
8887 |
|
8888 | _this = _React$Component.call(this, props, context) || this;
|
8889 | _this.handleMouseOver = _this.handleMouseOver.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
8890 | _this.handleMouseOut = _this.handleMouseOut.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
8891 | _this.handlePrev = _this.handlePrev.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
8892 | _this.handleNext = _this.handleNext.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
8893 | _this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
8894 | var defaultActiveIndex = props.defaultActiveIndex;
|
8895 | _this.state = {
|
8896 | activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0,
|
8897 | previousActiveIndex: null,
|
8898 | direction: null
|
8899 | };
|
8900 | _this.isUnmounted = false;
|
8901 | return _this;
|
8902 | }
|
8903 |
|
8904 | var _proto = Carousel.prototype;
|
8905 |
|
8906 | _proto.componentDidMount = function componentDidMount() {
|
8907 | this.waitForNext();
|
8908 | };
|
8909 |
|
8910 | _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
8911 | var activeIndex = this.getActiveIndex();
|
8912 |
|
8913 | if (nextProps.activeIndex != null && nextProps.activeIndex !== activeIndex) {
|
8914 | clearTimeout(this.timeout);
|
8915 | this.setState({
|
8916 | previousActiveIndex: activeIndex,
|
8917 | direction: nextProps.direction != null ? nextProps.direction : this.getDirection(activeIndex, nextProps.activeIndex)
|
8918 | });
|
8919 | }
|
8920 |
|
8921 | if (nextProps.activeIndex == null && this.state.activeIndex >= nextProps.children.length) {
|
8922 | this.setState({
|
8923 | activeIndex: 0,
|
8924 | previousActiveIndex: null,
|
8925 | direction: null
|
8926 | });
|
8927 | }
|
8928 | };
|
8929 |
|
8930 | _proto.componentWillUnmount = function componentWillUnmount() {
|
8931 | clearTimeout(this.timeout);
|
8932 | this.isUnmounted = true;
|
8933 | };
|
8934 |
|
8935 | _proto.getActiveIndex = function getActiveIndex() {
|
8936 | var activeIndexProp = this.props.activeIndex;
|
8937 | return activeIndexProp != null ? activeIndexProp : this.state.activeIndex;
|
8938 | };
|
8939 |
|
8940 | _proto.getDirection = function getDirection(prevIndex, index) {
|
8941 | if (prevIndex === index) {
|
8942 | return null;
|
8943 | }
|
8944 |
|
8945 | return prevIndex > index ? 'prev' : 'next';
|
8946 | };
|
8947 |
|
8948 | _proto.handleItemAnimateOutEnd = function handleItemAnimateOutEnd() {
|
8949 | var _this2 = this;
|
8950 |
|
8951 | this.setState({
|
8952 | previousActiveIndex: null,
|
8953 | direction: null
|
8954 | }, function () {
|
8955 | _this2.waitForNext();
|
8956 |
|
8957 | if (_this2.props.onSlideEnd) {
|
8958 | _this2.props.onSlideEnd();
|
8959 | }
|
8960 | });
|
8961 | };
|
8962 |
|
8963 | _proto.handleMouseOut = function handleMouseOut() {
|
8964 | if (this.isPaused) {
|
8965 | this.play();
|
8966 | }
|
8967 | };
|
8968 |
|
8969 | _proto.handleMouseOver = function handleMouseOver() {
|
8970 | if (this.props.pauseOnHover) {
|
8971 | this.pause();
|
8972 | }
|
8973 | };
|
8974 |
|
8975 | _proto.handleNext = function handleNext(e) {
|
8976 | var index = this.getActiveIndex() + 1;
|
8977 | var count = ValidComponentChildren.count(this.props.children);
|
8978 |
|
8979 | if (index > count - 1) {
|
8980 | if (!this.props.wrap) {
|
8981 | return;
|
8982 | }
|
8983 |
|
8984 | index = 0;
|
8985 | }
|
8986 |
|
8987 | this.select(index, e, 'next');
|
8988 | };
|
8989 |
|
8990 | _proto.handlePrev = function handlePrev(e) {
|
8991 | var index = this.getActiveIndex() - 1;
|
8992 |
|
8993 | if (index < 0) {
|
8994 | if (!this.props.wrap) {
|
8995 | return;
|
8996 | }
|
8997 |
|
8998 | index = ValidComponentChildren.count(this.props.children) - 1;
|
8999 | }
|
9000 |
|
9001 | this.select(index, e, 'prev');
|
9002 | };
|
9003 |
|
9004 |
|
9005 | _proto.pause = function pause() {
|
9006 | this.isPaused = true;
|
9007 | clearTimeout(this.timeout);
|
9008 | };
|
9009 |
|
9010 |
|
9011 | _proto.play = function play() {
|
9012 | this.isPaused = false;
|
9013 | this.waitForNext();
|
9014 | };
|
9015 |
|
9016 | _proto.select = function select(index, e, direction) {
|
9017 | clearTimeout(this.timeout);
|
9018 |
|
9019 |
|
9020 | if (this.isUnmounted) {
|
9021 | return;
|
9022 | }
|
9023 |
|
9024 | var previousActiveIndex = this.props.slide ? this.getActiveIndex() : null;
|
9025 | direction = direction || this.getDirection(previousActiveIndex, index);
|
9026 | var onSelect = this.props.onSelect;
|
9027 |
|
9028 | if (onSelect) {
|
9029 | if (onSelect.length > 1) {
|
9030 |
|
9031 |
|
9032 |
|
9033 |
|
9034 | if (e) {
|
9035 | e.persist();
|
9036 | e.direction = direction;
|
9037 | } else {
|
9038 | e = {
|
9039 | direction: direction
|
9040 | };
|
9041 | }
|
9042 |
|
9043 | onSelect(index, e);
|
9044 | } else {
|
9045 | onSelect(index);
|
9046 | }
|
9047 | }
|
9048 |
|
9049 | if (this.props.activeIndex == null && index !== previousActiveIndex) {
|
9050 | if (this.state.previousActiveIndex != null) {
|
9051 |
|
9052 |
|
9053 |
|
9054 | return;
|
9055 | }
|
9056 |
|
9057 | this.setState({
|
9058 | activeIndex: index,
|
9059 | previousActiveIndex: previousActiveIndex,
|
9060 | direction: direction
|
9061 | });
|
9062 | }
|
9063 | };
|
9064 |
|
9065 | _proto.waitForNext = function waitForNext() {
|
9066 | var _this$props = this.props,
|
9067 | slide = _this$props.slide,
|
9068 | interval = _this$props.interval,
|
9069 | activeIndexProp = _this$props.activeIndex;
|
9070 |
|
9071 | if (!this.isPaused && slide && interval && activeIndexProp == null) {
|
9072 | this.timeout = setTimeout(this.handleNext, interval);
|
9073 | }
|
9074 | };
|
9075 |
|
9076 | _proto.renderControls = function renderControls(properties) {
|
9077 | var wrap = properties.wrap,
|
9078 | children = properties.children,
|
9079 | activeIndex = properties.activeIndex,
|
9080 | prevIcon = properties.prevIcon,
|
9081 | nextIcon = properties.nextIcon,
|
9082 | bsProps = properties.bsProps,
|
9083 | prevLabel = properties.prevLabel,
|
9084 | nextLabel = properties.nextLabel;
|
9085 | var controlClassName = prefix(bsProps, 'control');
|
9086 | var count = ValidComponentChildren.count(children);
|
9087 | return [(wrap || activeIndex !== 0) && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_SafeAnchor, {
|
9088 | key: "prev",
|
9089 | className: classnames_default()(controlClassName, 'left'),
|
9090 | onClick: this.handlePrev,
|
9091 | __source: {
|
9092 | fileName: Carousel_jsxFileName,
|
9093 | lineNumber: 290
|
9094 | },
|
9095 | __self: this
|
9096 | }, prevIcon, prevLabel && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
9097 | className: "sr-only",
|
9098 | __source: {
|
9099 | fileName: Carousel_jsxFileName,
|
9100 | lineNumber: 296
|
9101 | },
|
9102 | __self: this
|
9103 | }, prevLabel)), (wrap || activeIndex !== count - 1) && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_SafeAnchor, {
|
9104 | key: "next",
|
9105 | className: classnames_default()(controlClassName, 'right'),
|
9106 | onClick: this.handleNext,
|
9107 | __source: {
|
9108 | fileName: Carousel_jsxFileName,
|
9109 | lineNumber: 301
|
9110 | },
|
9111 | __self: this
|
9112 | }, nextIcon, nextLabel && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
9113 | className: "sr-only",
|
9114 | __source: {
|
9115 | fileName: Carousel_jsxFileName,
|
9116 | lineNumber: 307
|
9117 | },
|
9118 | __self: this
|
9119 | }, nextLabel))];
|
9120 | };
|
9121 |
|
9122 | _proto.renderIndicators = function renderIndicators(children, activeIndex, bsProps) {
|
9123 | var _this3 = this;
|
9124 |
|
9125 | var indicators = [];
|
9126 | ValidComponentChildren.forEach(children, function (child, index) {
|
9127 | indicators.push(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", {
|
9128 | key: index,
|
9129 | className: index === activeIndex ? 'active' : null,
|
9130 | onClick: function onClick(e) {
|
9131 | return _this3.select(index, e);
|
9132 | },
|
9133 | __source: {
|
9134 | fileName: Carousel_jsxFileName,
|
9135 | lineNumber: 318
|
9136 | },
|
9137 | __self: this
|
9138 | }),
|
9139 |
|
9140 | ' ');
|
9141 | });
|
9142 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ol", {
|
9143 | className: prefix(bsProps, 'indicators'),
|
9144 | __source: {
|
9145 | fileName: Carousel_jsxFileName,
|
9146 | lineNumber: 330
|
9147 | },
|
9148 | __self: this
|
9149 | }, indicators);
|
9150 | };
|
9151 |
|
9152 | _proto.render = function render() {
|
9153 | var _this4 = this;
|
9154 |
|
9155 | var _this$props2 = this.props,
|
9156 | slide = _this$props2.slide,
|
9157 | indicators = _this$props2.indicators,
|
9158 | controls = _this$props2.controls,
|
9159 | wrap = _this$props2.wrap,
|
9160 | prevIcon = _this$props2.prevIcon,
|
9161 | prevLabel = _this$props2.prevLabel,
|
9162 | nextIcon = _this$props2.nextIcon,
|
9163 | nextLabel = _this$props2.nextLabel,
|
9164 | className = _this$props2.className,
|
9165 | children = _this$props2.children,
|
9166 | props = _objectWithoutPropertiesLoose(_this$props2, ["slide", "indicators", "controls", "wrap", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
9167 |
|
9168 | var _this$state = this.state,
|
9169 | previousActiveIndex = _this$state.previousActiveIndex,
|
9170 | direction = _this$state.direction;
|
9171 |
|
9172 | var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['interval', 'pauseOnHover', 'onSelect', 'onSlideEnd', 'activeIndex',
|
9173 | 'defaultActiveIndex', 'direction']),
|
9174 | bsProps = _splitBsPropsAndOmit[0],
|
9175 | elementProps = _splitBsPropsAndOmit[1];
|
9176 |
|
9177 | var activeIndex = this.getActiveIndex();
|
9178 |
|
9179 | var classes = _extends({}, getClassSet(bsProps), {
|
9180 | slide: slide
|
9181 | });
|
9182 |
|
9183 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
9184 | className: classnames_default()(className, classes),
|
9185 | onMouseOver: this.handleMouseOver,
|
9186 | onMouseOut: this.handleMouseOut,
|
9187 | __source: {
|
9188 | fileName: Carousel_jsxFileName,
|
9189 | lineNumber: 368
|
9190 | },
|
9191 | __self: this
|
9192 | }), indicators && this.renderIndicators(children, activeIndex, bsProps), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
9193 | className: prefix(bsProps, 'inner'),
|
9194 | __source: {
|
9195 | fileName: Carousel_jsxFileName,
|
9196 | lineNumber: 376
|
9197 | },
|
9198 | __self: this
|
9199 | }, ValidComponentChildren.map(children, function (child, index) {
|
9200 | var active = index === activeIndex;
|
9201 | var previousActive = slide && index === previousActiveIndex;
|
9202 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, {
|
9203 | active: active,
|
9204 | index: index,
|
9205 | animateOut: previousActive,
|
9206 | animateIn: active && previousActiveIndex != null && slide,
|
9207 | direction: direction,
|
9208 | onAnimateOutEnd: previousActive ? _this4.handleItemAnimateOutEnd : null
|
9209 | });
|
9210 | })), controls && this.renderControls({
|
9211 | wrap: wrap,
|
9212 | children: children,
|
9213 | activeIndex: activeIndex,
|
9214 | prevIcon: prevIcon,
|
9215 | prevLabel: prevLabel,
|
9216 | nextIcon: nextIcon,
|
9217 | nextLabel: nextLabel,
|
9218 | bsProps: bsProps
|
9219 | }));
|
9220 | };
|
9221 |
|
9222 | return Carousel;
|
9223 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
9224 |
|
9225 | Carousel_Carousel.propTypes = Carousel_propTypes;
|
9226 | Carousel_Carousel.defaultProps = Carousel_defaultProps;
|
9227 | Carousel_Carousel.Caption = src_CarouselCaption;
|
9228 | Carousel_Carousel.Item = src_CarouselItem;
|
9229 | var src_Carousel = (bootstrapUtils_bsClass('carousel', Carousel_Carousel));
|
9230 |
|
9231 | var warning_browser = __webpack_require__(7);
|
9232 |
|
9233 |
|
9234 |
|
9235 |
|
9236 |
|
9237 | var Checkbox_jsxFileName = "/Users/jason/src/react-bootstrap/src/Checkbox.js";
|
9238 |
|
9239 |
|
9240 |
|
9241 |
|
9242 |
|
9243 |
|
9244 |
|
9245 | var Checkbox_propTypes = {
|
9246 | inline: prop_types_default.a.bool,
|
9247 | disabled: prop_types_default.a.bool,
|
9248 | title: prop_types_default.a.string,
|
9249 |
|
9250 | |
9251 |
|
9252 |
|
9253 | validationState: prop_types_default.a.oneOf(['success', 'warning', 'error', null]),
|
9254 |
|
9255 | |
9256 |
|
9257 |
|
9258 |
|
9259 |
|
9260 |
|
9261 |
|
9262 | inputRef: prop_types_default.a.func
|
9263 | };
|
9264 | var Checkbox_defaultProps = {
|
9265 | inline: false,
|
9266 | disabled: false,
|
9267 | title: ''
|
9268 | };
|
9269 |
|
9270 | var Checkbox_Checkbox =
|
9271 |
|
9272 | function (_React$Component) {
|
9273 | _inheritsLoose(Checkbox, _React$Component);
|
9274 |
|
9275 | function Checkbox() {
|
9276 | return _React$Component.apply(this, arguments) || this;
|
9277 | }
|
9278 |
|
9279 | var _proto = Checkbox.prototype;
|
9280 |
|
9281 | _proto.render = function render() {
|
9282 | var _this$props = this.props,
|
9283 | inline = _this$props.inline,
|
9284 | disabled = _this$props.disabled,
|
9285 | validationState = _this$props.validationState,
|
9286 | inputRef = _this$props.inputRef,
|
9287 | className = _this$props.className,
|
9288 | style = _this$props.style,
|
9289 | title = _this$props.title,
|
9290 | children = _this$props.children,
|
9291 | props = _objectWithoutPropertiesLoose(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]);
|
9292 |
|
9293 | var _splitBsProps = splitBsProps(props),
|
9294 | bsProps = _splitBsProps[0],
|
9295 | elementProps = _splitBsProps[1];
|
9296 |
|
9297 | var input = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("input", _extends({}, elementProps, {
|
9298 | ref: inputRef,
|
9299 | type: "checkbox",
|
9300 | disabled: disabled,
|
9301 | __source: {
|
9302 | fileName: Checkbox_jsxFileName,
|
9303 | lineNumber: 56
|
9304 | },
|
9305 | __self: this
|
9306 | }));
|
9307 |
|
9308 | if (inline) {
|
9309 | var _classes2;
|
9310 |
|
9311 | var _classes = (_classes2 = {}, _classes2[prefix(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2);
|
9312 |
|
9313 |
|
9314 |
|
9315 | false ? undefined : void 0;
|
9316 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("label", {
|
9317 | className: classnames_default()(className, _classes),
|
9318 | style: style,
|
9319 | title: title,
|
9320 | __source: {
|
9321 | fileName: Checkbox_jsxFileName,
|
9322 | lineNumber: 80
|
9323 | },
|
9324 | __self: this
|
9325 | }, input, children);
|
9326 | }
|
9327 |
|
9328 | var classes = _extends({}, getClassSet(bsProps), {
|
9329 | disabled: disabled
|
9330 | });
|
9331 |
|
9332 | if (validationState) {
|
9333 | classes["has-" + validationState] = true;
|
9334 | }
|
9335 |
|
9336 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
9337 | className: classnames_default()(className, classes),
|
9338 | style: style,
|
9339 | __source: {
|
9340 | fileName: Checkbox_jsxFileName,
|
9341 | lineNumber: 100
|
9342 | },
|
9343 | __self: this
|
9344 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("label", {
|
9345 | title: title,
|
9346 | __source: {
|
9347 | fileName: Checkbox_jsxFileName,
|
9348 | lineNumber: 101
|
9349 | },
|
9350 | __self: this
|
9351 | }, input, children));
|
9352 | };
|
9353 |
|
9354 | return Checkbox;
|
9355 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
9356 |
|
9357 | Checkbox_Checkbox.propTypes = Checkbox_propTypes;
|
9358 | Checkbox_Checkbox.defaultProps = Checkbox_defaultProps;
|
9359 | var src_Checkbox = (bootstrapUtils_bsClass('checkbox', Checkbox_Checkbox));
|
9360 |
|
9361 | function capitalize(string) {
|
9362 | return "" + string.charAt(0).toUpperCase() + string.slice(1);
|
9363 | }
|
9364 |
|
9365 |
|
9366 |
|
9367 |
|
9368 | var Clearfix_jsxFileName = "/Users/jason/src/react-bootstrap/src/Clearfix.js";
|
9369 |
|
9370 |
|
9371 |
|
9372 |
|
9373 |
|
9374 |
|
9375 |
|
9376 | var Clearfix_propTypes = {
|
9377 | componentClass: elementType_default.a,
|
9378 |
|
9379 | |
9380 |
|
9381 |
|
9382 |
|
9383 |
|
9384 |
|
9385 |
|
9386 | visibleXsBlock: prop_types_default.a.bool,
|
9387 |
|
9388 | |
9389 |
|
9390 |
|
9391 |
|
9392 |
|
9393 |
|
9394 |
|
9395 | visibleSmBlock: prop_types_default.a.bool,
|
9396 |
|
9397 | |
9398 |
|
9399 |
|
9400 |
|
9401 |
|
9402 |
|
9403 |
|
9404 | visibleMdBlock: prop_types_default.a.bool,
|
9405 |
|
9406 | |
9407 |
|
9408 |
|
9409 |
|
9410 |
|
9411 |
|
9412 |
|
9413 | visibleLgBlock: prop_types_default.a.bool
|
9414 | };
|
9415 | var Clearfix_defaultProps = {
|
9416 | componentClass: 'div'
|
9417 | };
|
9418 |
|
9419 | var Clearfix_Clearfix =
|
9420 |
|
9421 | function (_React$Component) {
|
9422 | _inheritsLoose(Clearfix, _React$Component);
|
9423 |
|
9424 | function Clearfix() {
|
9425 | return _React$Component.apply(this, arguments) || this;
|
9426 | }
|
9427 |
|
9428 | var _proto = Clearfix.prototype;
|
9429 |
|
9430 | _proto.render = function render() {
|
9431 | var _this$props = this.props,
|
9432 | Component = _this$props.componentClass,
|
9433 | className = _this$props.className,
|
9434 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
9435 |
|
9436 | var _splitBsProps = splitBsProps(props),
|
9437 | bsProps = _splitBsProps[0],
|
9438 | elementProps = _splitBsProps[1];
|
9439 |
|
9440 | var classes = getClassSet(bsProps);
|
9441 | DEVICE_SIZES.forEach(function (size) {
|
9442 | var propName = "visible" + capitalize(size) + "Block";
|
9443 |
|
9444 | if (elementProps[propName]) {
|
9445 | classes["visible-" + size + "-block"] = true;
|
9446 | }
|
9447 |
|
9448 | delete elementProps[propName];
|
9449 | });
|
9450 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
9451 | className: classnames_default()(className, classes),
|
9452 | __source: {
|
9453 | fileName: Clearfix_jsxFileName,
|
9454 | lineNumber: 68
|
9455 | },
|
9456 | __self: this
|
9457 | }));
|
9458 | };
|
9459 |
|
9460 | return Clearfix;
|
9461 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
9462 |
|
9463 | Clearfix_Clearfix.propTypes = Clearfix_propTypes;
|
9464 | Clearfix_Clearfix.defaultProps = Clearfix_defaultProps;
|
9465 | var src_Clearfix = (bootstrapUtils_bsClass('clearfix', Clearfix_Clearfix));
|
9466 |
|
9467 |
|
9468 |
|
9469 |
|
9470 | var ControlLabel_jsxFileName = "/Users/jason/src/react-bootstrap/src/ControlLabel.js";
|
9471 |
|
9472 |
|
9473 |
|
9474 |
|
9475 |
|
9476 | var ControlLabel_propTypes = {
|
9477 | |
9478 |
|
9479 |
|
9480 | htmlFor: prop_types_default.a.string,
|
9481 | srOnly: prop_types_default.a.bool
|
9482 | };
|
9483 | var ControlLabel_defaultProps = {
|
9484 | srOnly: false
|
9485 | };
|
9486 | var contextTypes = {
|
9487 | $bs_formGroup: prop_types_default.a.object
|
9488 | };
|
9489 |
|
9490 | var ControlLabel_ControlLabel =
|
9491 |
|
9492 | function (_React$Component) {
|
9493 | _inheritsLoose(ControlLabel, _React$Component);
|
9494 |
|
9495 | function ControlLabel() {
|
9496 | return _React$Component.apply(this, arguments) || this;
|
9497 | }
|
9498 |
|
9499 | var _proto = ControlLabel.prototype;
|
9500 |
|
9501 | _proto.render = function render() {
|
9502 | var formGroup = this.context.$bs_formGroup;
|
9503 | var controlId = formGroup && formGroup.controlId;
|
9504 |
|
9505 | var _this$props = this.props,
|
9506 | _this$props$htmlFor = _this$props.htmlFor,
|
9507 | htmlFor = _this$props$htmlFor === void 0 ? controlId : _this$props$htmlFor,
|
9508 | srOnly = _this$props.srOnly,
|
9509 | className = _this$props.className,
|
9510 | props = _objectWithoutPropertiesLoose(_this$props, ["htmlFor", "srOnly", "className"]);
|
9511 |
|
9512 | var _splitBsProps = splitBsProps(props),
|
9513 | bsProps = _splitBsProps[0],
|
9514 | elementProps = _splitBsProps[1];
|
9515 |
|
9516 | false ? undefined : void 0;
|
9517 |
|
9518 | var classes = _extends({}, getClassSet(bsProps), {
|
9519 | 'sr-only': srOnly
|
9520 | });
|
9521 |
|
9522 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("label", _extends({}, elementProps, {
|
9523 | htmlFor: htmlFor,
|
9524 | className: classnames_default()(className, classes),
|
9525 | __source: {
|
9526 | fileName: ControlLabel_jsxFileName,
|
9527 | lineNumber: 43
|
9528 | },
|
9529 | __self: this
|
9530 | }));
|
9531 | };
|
9532 |
|
9533 | return ControlLabel;
|
9534 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
9535 |
|
9536 | ControlLabel_ControlLabel.propTypes = ControlLabel_propTypes;
|
9537 | ControlLabel_ControlLabel.defaultProps = ControlLabel_defaultProps;
|
9538 | ControlLabel_ControlLabel.contextTypes = contextTypes;
|
9539 | var src_ControlLabel = (bootstrapUtils_bsClass('control-label', ControlLabel_ControlLabel));
|
9540 |
|
9541 |
|
9542 |
|
9543 |
|
9544 | var Col_jsxFileName = "/Users/jason/src/react-bootstrap/src/Col.js";
|
9545 |
|
9546 |
|
9547 |
|
9548 |
|
9549 |
|
9550 |
|
9551 | var Col_propTypes = {
|
9552 | componentClass: elementType_default.a,
|
9553 |
|
9554 | |
9555 |
|
9556 |
|
9557 |
|
9558 |
|
9559 |
|
9560 |
|
9561 | xs: prop_types_default.a.number,
|
9562 |
|
9563 | |
9564 |
|
9565 |
|
9566 |
|
9567 |
|
9568 |
|
9569 |
|
9570 | sm: prop_types_default.a.number,
|
9571 |
|
9572 | |
9573 |
|
9574 |
|
9575 |
|
9576 |
|
9577 |
|
9578 |
|
9579 | md: prop_types_default.a.number,
|
9580 |
|
9581 | |
9582 |
|
9583 |
|
9584 |
|
9585 |
|
9586 |
|
9587 |
|
9588 | lg: prop_types_default.a.number,
|
9589 |
|
9590 | |
9591 |
|
9592 |
|
9593 |
|
9594 |
|
9595 |
|
9596 |
|
9597 | xsHidden: prop_types_default.a.bool,
|
9598 |
|
9599 | |
9600 |
|
9601 |
|
9602 |
|
9603 |
|
9604 |
|
9605 |
|
9606 | smHidden: prop_types_default.a.bool,
|
9607 |
|
9608 | |
9609 |
|
9610 |
|
9611 |
|
9612 |
|
9613 |
|
9614 |
|
9615 | mdHidden: prop_types_default.a.bool,
|
9616 |
|
9617 | |
9618 |
|
9619 |
|
9620 |
|
9621 |
|
9622 |
|
9623 |
|
9624 | lgHidden: prop_types_default.a.bool,
|
9625 |
|
9626 | |
9627 |
|
9628 |
|
9629 |
|
9630 |
|
9631 |
|
9632 |
|
9633 | xsOffset: prop_types_default.a.number,
|
9634 |
|
9635 | |
9636 |
|
9637 |
|
9638 |
|
9639 |
|
9640 |
|
9641 |
|
9642 | smOffset: prop_types_default.a.number,
|
9643 |
|
9644 | |
9645 |
|
9646 |
|
9647 |
|
9648 |
|
9649 |
|
9650 |
|
9651 | mdOffset: prop_types_default.a.number,
|
9652 |
|
9653 | |
9654 |
|
9655 |
|
9656 |
|
9657 |
|
9658 |
|
9659 |
|
9660 | lgOffset: prop_types_default.a.number,
|
9661 |
|
9662 | |
9663 |
|
9664 |
|
9665 |
|
9666 |
|
9667 |
|
9668 |
|
9669 | xsPush: prop_types_default.a.number,
|
9670 |
|
9671 | |
9672 |
|
9673 |
|
9674 |
|
9675 |
|
9676 |
|
9677 |
|
9678 | smPush: prop_types_default.a.number,
|
9679 |
|
9680 | |
9681 |
|
9682 |
|
9683 |
|
9684 |
|
9685 |
|
9686 |
|
9687 | mdPush: prop_types_default.a.number,
|
9688 |
|
9689 | |
9690 |
|
9691 |
|
9692 |
|
9693 |
|
9694 |
|
9695 |
|
9696 | lgPush: prop_types_default.a.number,
|
9697 |
|
9698 | |
9699 |
|
9700 |
|
9701 |
|
9702 |
|
9703 |
|
9704 |
|
9705 | xsPull: prop_types_default.a.number,
|
9706 |
|
9707 | |
9708 |
|
9709 |
|
9710 |
|
9711 |
|
9712 |
|
9713 |
|
9714 | smPull: prop_types_default.a.number,
|
9715 |
|
9716 | |
9717 |
|
9718 |
|
9719 |
|
9720 |
|
9721 |
|
9722 |
|
9723 | mdPull: prop_types_default.a.number,
|
9724 |
|
9725 | |
9726 |
|
9727 |
|
9728 |
|
9729 |
|
9730 |
|
9731 |
|
9732 | lgPull: prop_types_default.a.number
|
9733 | };
|
9734 | var Col_defaultProps = {
|
9735 | componentClass: 'div'
|
9736 | };
|
9737 |
|
9738 | var Col_Col =
|
9739 |
|
9740 | function (_React$Component) {
|
9741 | _inheritsLoose(Col, _React$Component);
|
9742 |
|
9743 | function Col() {
|
9744 | return _React$Component.apply(this, arguments) || this;
|
9745 | }
|
9746 |
|
9747 | var _proto = Col.prototype;
|
9748 |
|
9749 | _proto.render = function render() {
|
9750 | var _this$props = this.props,
|
9751 | Component = _this$props.componentClass,
|
9752 | className = _this$props.className,
|
9753 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
9754 |
|
9755 | var _splitBsProps = splitBsProps(props),
|
9756 | bsProps = _splitBsProps[0],
|
9757 | elementProps = _splitBsProps[1];
|
9758 |
|
9759 | var classes = [];
|
9760 | DEVICE_SIZES.forEach(function (size) {
|
9761 | function popProp(propSuffix, modifier) {
|
9762 | var propName = "" + size + propSuffix;
|
9763 | var propValue = elementProps[propName];
|
9764 |
|
9765 | if (propValue != null) {
|
9766 | classes.push(prefix(bsProps, "" + size + modifier + "-" + propValue));
|
9767 | }
|
9768 |
|
9769 | delete elementProps[propName];
|
9770 | }
|
9771 |
|
9772 | popProp('', '');
|
9773 | popProp('Offset', '-offset');
|
9774 | popProp('Push', '-push');
|
9775 | popProp('Pull', '-pull');
|
9776 | var hiddenPropName = size + "Hidden";
|
9777 |
|
9778 | if (elementProps[hiddenPropName]) {
|
9779 | classes.push("hidden-" + size);
|
9780 | }
|
9781 |
|
9782 | delete elementProps[hiddenPropName];
|
9783 | });
|
9784 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
9785 | className: classnames_default()(className, classes),
|
9786 | __source: {
|
9787 | fileName: Col_jsxFileName,
|
9788 | lineNumber: 210
|
9789 | },
|
9790 | __self: this
|
9791 | }));
|
9792 | };
|
9793 |
|
9794 | return Col;
|
9795 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
9796 |
|
9797 | Col_Col.propTypes = Col_propTypes;
|
9798 | Col_Col.defaultProps = Col_defaultProps;
|
9799 | var src_Col = (bootstrapUtils_bsClass('col', Col_Col));
|
9800 |
|
9801 | var parse_int = __webpack_require__(53);
|
9802 | var parse_int_default = __webpack_require__.n(parse_int);
|
9803 |
|
9804 |
|
9805 | var dom_helpers_style = __webpack_require__(18);
|
9806 | var style_default = __webpack_require__.n(dom_helpers_style);
|
9807 |
|
9808 |
|
9809 | var react_transition_group_Transition = __webpack_require__(11);
|
9810 | var Transition_default = __webpack_require__.n(react_transition_group_Transition);
|
9811 |
|
9812 |
|
9813 |
|
9814 |
|
9815 |
|
9816 |
|
9817 |
|
9818 | var _collapseStyles,
|
9819 | Collapse_jsxFileName = "/Users/jason/src/react-bootstrap/src/Collapse.js";
|
9820 |
|
9821 |
|
9822 |
|
9823 |
|
9824 |
|
9825 |
|
9826 |
|
9827 |
|
9828 | var MARGINS = {
|
9829 | height: ['marginTop', 'marginBottom'],
|
9830 | width: ['marginLeft', 'marginRight']
|
9831 | };
|
9832 |
|
9833 |
|
9834 | function triggerBrowserReflow(node) {
|
9835 | node.offsetHeight;
|
9836 | }
|
9837 |
|
9838 | function getDimensionValue(dimension, elem) {
|
9839 | var value = elem["offset" + capitalize(dimension)];
|
9840 | var margins = MARGINS[dimension];
|
9841 | return value + parse_int_default()(style_default()(elem, margins[0]), 10) + parse_int_default()(style_default()(elem, margins[1]), 10);
|
9842 | }
|
9843 |
|
9844 | var collapseStyles = (_collapseStyles = {}, _collapseStyles[react_transition_group_Transition["EXITED"]] = 'collapse', _collapseStyles[react_transition_group_Transition["EXITING"]] = 'collapsing', _collapseStyles[react_transition_group_Transition["ENTERING"]] = 'collapsing', _collapseStyles[react_transition_group_Transition["ENTERED"]] = 'collapse in', _collapseStyles);
|
9845 | var Collapse_propTypes = {
|
9846 | |
9847 |
|
9848 |
|
9849 | in: prop_types_default.a.bool,
|
9850 |
|
9851 | |
9852 |
|
9853 |
|
9854 | mountOnEnter: prop_types_default.a.bool,
|
9855 |
|
9856 | |
9857 |
|
9858 |
|
9859 | unmountOnExit: prop_types_default.a.bool,
|
9860 |
|
9861 | |
9862 |
|
9863 |
|
9864 |
|
9865 | appear: prop_types_default.a.bool,
|
9866 |
|
9867 | |
9868 |
|
9869 |
|
9870 |
|
9871 |
|
9872 | timeout: prop_types_default.a.number,
|
9873 |
|
9874 | |
9875 |
|
9876 |
|
9877 | onEnter: prop_types_default.a.func,
|
9878 |
|
9879 | |
9880 |
|
9881 |
|
9882 | onEntering: prop_types_default.a.func,
|
9883 |
|
9884 | |
9885 |
|
9886 |
|
9887 | onEntered: prop_types_default.a.func,
|
9888 |
|
9889 | |
9890 |
|
9891 |
|
9892 | onExit: prop_types_default.a.func,
|
9893 |
|
9894 | |
9895 |
|
9896 |
|
9897 | onExiting: prop_types_default.a.func,
|
9898 |
|
9899 | |
9900 |
|
9901 |
|
9902 | onExited: prop_types_default.a.func,
|
9903 |
|
9904 | |
9905 |
|
9906 |
|
9907 |
|
9908 |
|
9909 |
|
9910 |
|
9911 | dimension: prop_types_default.a.oneOfType([prop_types_default.a.oneOf(['height', 'width']), prop_types_default.a.func]),
|
9912 |
|
9913 | |
9914 |
|
9915 |
|
9916 |
|
9917 |
|
9918 |
|
9919 |
|
9920 | getDimensionValue: prop_types_default.a.func,
|
9921 |
|
9922 | |
9923 |
|
9924 |
|
9925 | role: prop_types_default.a.string
|
9926 | };
|
9927 | var Collapse_defaultProps = {
|
9928 | in: false,
|
9929 | timeout: 300,
|
9930 | mountOnEnter: false,
|
9931 | unmountOnExit: false,
|
9932 | appear: false,
|
9933 | dimension: 'height',
|
9934 | getDimensionValue: getDimensionValue
|
9935 | };
|
9936 |
|
9937 | var Collapse_Collapse =
|
9938 |
|
9939 | function (_React$Component) {
|
9940 | _inheritsLoose(Collapse, _React$Component);
|
9941 |
|
9942 | function Collapse() {
|
9943 | var _this;
|
9944 |
|
9945 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
9946 | args[_key] = arguments[_key];
|
9947 | }
|
9948 |
|
9949 | _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
9950 |
|
9951 | _this.handleEnter = function (elem) {
|
9952 | elem.style[_this.getDimension()] = '0';
|
9953 | };
|
9954 |
|
9955 | _this.handleEntering = function (elem) {
|
9956 | var dimension = _this.getDimension();
|
9957 |
|
9958 | elem.style[dimension] = _this._getScrollDimensionValue(elem, dimension);
|
9959 | };
|
9960 |
|
9961 | _this.handleEntered = function (elem) {
|
9962 | elem.style[_this.getDimension()] = null;
|
9963 | };
|
9964 |
|
9965 | _this.handleExit = function (elem) {
|
9966 | var dimension = _this.getDimension();
|
9967 |
|
9968 | elem.style[dimension] = _this.props.getDimensionValue(dimension, elem) + "px";
|
9969 | triggerBrowserReflow(elem);
|
9970 | };
|
9971 |
|
9972 | _this.handleExiting = function (elem) {
|
9973 | elem.style[_this.getDimension()] = '0';
|
9974 | };
|
9975 |
|
9976 | return _this;
|
9977 | }
|
9978 |
|
9979 | var _proto = Collapse.prototype;
|
9980 |
|
9981 | _proto.getDimension = function getDimension() {
|
9982 | return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension;
|
9983 | };
|
9984 |
|
9985 |
|
9986 | _proto._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) {
|
9987 | return elem["scroll" + capitalize(dimension)] + "px";
|
9988 | };
|
9989 |
|
9990 |
|
9991 |
|
9992 | _proto.render = function render() {
|
9993 | var _this2 = this;
|
9994 |
|
9995 | var _this$props = this.props,
|
9996 | onEnter = _this$props.onEnter,
|
9997 | onEntering = _this$props.onEntering,
|
9998 | onEntered = _this$props.onEntered,
|
9999 | onExit = _this$props.onExit,
|
10000 | onExiting = _this$props.onExiting,
|
10001 | className = _this$props.className,
|
10002 | children = _this$props.children,
|
10003 | props = _objectWithoutPropertiesLoose(_this$props, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children"]);
|
10004 |
|
10005 | delete props.dimension;
|
10006 | delete props.getDimensionValue;
|
10007 | var handleEnter = utils_createChainedFunction(this.handleEnter, onEnter);
|
10008 | var handleEntering = utils_createChainedFunction(this.handleEntering, onEntering);
|
10009 | var handleEntered = utils_createChainedFunction(this.handleEntered, onEntered);
|
10010 | var handleExit = utils_createChainedFunction(this.handleExit, onExit);
|
10011 | var handleExiting = utils_createChainedFunction(this.handleExiting, onExiting);
|
10012 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Transition_default.a, _extends({}, props, {
|
10013 | "aria-expanded": props.role ? props.in : null,
|
10014 | onEnter: handleEnter,
|
10015 | onEntering: handleEntering,
|
10016 | onEntered: handleEntered,
|
10017 | onExit: handleExit,
|
10018 | onExiting: handleExiting,
|
10019 | __source: {
|
10020 | fileName: Collapse_jsxFileName,
|
10021 | lineNumber: 201
|
10022 | },
|
10023 | __self: this
|
10024 | }), function (state, innerProps) {
|
10025 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(children, _extends({}, innerProps, {
|
10026 | className: classnames_default()(className, children.props.className, collapseStyles[state], _this2.getDimension() === 'width' && 'width')
|
10027 | }));
|
10028 | });
|
10029 | };
|
10030 |
|
10031 | return Collapse;
|
10032 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
10033 |
|
10034 | Collapse_Collapse.propTypes = Collapse_propTypes;
|
10035 | Collapse_Collapse.defaultProps = Collapse_defaultProps;
|
10036 | var src_Collapse = (Collapse_Collapse);
|
10037 |
|
10038 | var activeElement = __webpack_require__(50);
|
10039 | var activeElement_default = __webpack_require__.n(activeElement);
|
10040 |
|
10041 |
|
10042 | var contains = __webpack_require__(13);
|
10043 | var contains_default = __webpack_require__.n(contains);
|
10044 |
|
10045 |
|
10046 | var keycode = __webpack_require__(6);
|
10047 | var keycode_default = __webpack_require__.n(keycode);
|
10048 |
|
10049 |
|
10050 | var isRequiredForA11y = __webpack_require__(15);
|
10051 | var isRequiredForA11y_default = __webpack_require__.n(isRequiredForA11y);
|
10052 |
|
10053 |
|
10054 | var from = __webpack_require__(78);
|
10055 | var from_default = __webpack_require__.n(from);
|
10056 |
|
10057 |
|
10058 | var RootCloseWrapper = __webpack_require__(51);
|
10059 | var RootCloseWrapper_default = __webpack_require__.n(RootCloseWrapper);
|
10060 |
|
10061 |
|
10062 |
|
10063 |
|
10064 |
|
10065 |
|
10066 |
|
10067 | var DropdownMenu_jsxFileName = "/Users/jason/src/react-bootstrap/src/DropdownMenu.js";
|
10068 |
|
10069 |
|
10070 |
|
10071 |
|
10072 |
|
10073 |
|
10074 |
|
10075 |
|
10076 |
|
10077 | var DropdownMenu_propTypes = {
|
10078 | open: prop_types_default.a.bool,
|
10079 | pullRight: prop_types_default.a.bool,
|
10080 | onClose: prop_types_default.a.func,
|
10081 | labelledBy: prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number]),
|
10082 | onSelect: prop_types_default.a.func,
|
10083 | rootCloseEvent: prop_types_default.a.oneOf(['click', 'mousedown'])
|
10084 | };
|
10085 | var DropdownMenu_defaultProps = {
|
10086 | bsRole: 'menu',
|
10087 | pullRight: false
|
10088 | };
|
10089 |
|
10090 | var DropdownMenu_DropdownMenu =
|
10091 |
|
10092 | function (_React$Component) {
|
10093 | _inheritsLoose(DropdownMenu, _React$Component);
|
10094 |
|
10095 | function DropdownMenu(props) {
|
10096 | var _this;
|
10097 |
|
10098 | _this = _React$Component.call(this, props) || this;
|
10099 | _this.handleRootClose = _this.handleRootClose.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
10100 | _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
10101 | return _this;
|
10102 | }
|
10103 |
|
10104 | var _proto = DropdownMenu.prototype;
|
10105 |
|
10106 | _proto.getFocusableMenuItems = function getFocusableMenuItems() {
|
10107 | var node = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.findDOMNode(this);
|
10108 |
|
10109 | if (!node) {
|
10110 | return [];
|
10111 | }
|
10112 |
|
10113 | return from_default()(node.querySelectorAll('[tabIndex="-1"]'));
|
10114 | };
|
10115 |
|
10116 | _proto.getItemsAndActiveIndex = function getItemsAndActiveIndex() {
|
10117 | var items = this.getFocusableMenuItems();
|
10118 | var activeIndex = items.indexOf(document.activeElement);
|
10119 | return {
|
10120 | items: items,
|
10121 | activeIndex: activeIndex
|
10122 | };
|
10123 | };
|
10124 |
|
10125 | _proto.focusNext = function focusNext() {
|
10126 | var _this$getItemsAndActi = this.getItemsAndActiveIndex(),
|
10127 | items = _this$getItemsAndActi.items,
|
10128 | activeIndex = _this$getItemsAndActi.activeIndex;
|
10129 |
|
10130 | if (items.length === 0) {
|
10131 | return;
|
10132 | }
|
10133 |
|
10134 | var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1;
|
10135 | items[nextIndex].focus();
|
10136 | };
|
10137 |
|
10138 | _proto.focusPrevious = function focusPrevious() {
|
10139 | var _this$getItemsAndActi2 = this.getItemsAndActiveIndex(),
|
10140 | items = _this$getItemsAndActi2.items,
|
10141 | activeIndex = _this$getItemsAndActi2.activeIndex;
|
10142 |
|
10143 | if (items.length === 0) {
|
10144 | return;
|
10145 | }
|
10146 |
|
10147 | var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1;
|
10148 | items[prevIndex].focus();
|
10149 | };
|
10150 |
|
10151 | _proto.handleKeyDown = function handleKeyDown(event) {
|
10152 | switch (event.keyCode) {
|
10153 | case keycode_default.a.codes.down:
|
10154 | this.focusNext();
|
10155 | event.preventDefault();
|
10156 | break;
|
10157 |
|
10158 | case keycode_default.a.codes.up:
|
10159 | this.focusPrevious();
|
10160 | event.preventDefault();
|
10161 | break;
|
10162 |
|
10163 | case keycode_default.a.codes.esc:
|
10164 | case keycode_default.a.codes.tab:
|
10165 | this.props.onClose(event, {
|
10166 | source: 'keydown'
|
10167 | });
|
10168 | break;
|
10169 |
|
10170 | default:
|
10171 | }
|
10172 | };
|
10173 |
|
10174 | _proto.handleRootClose = function handleRootClose(event) {
|
10175 | this.props.onClose(event, {
|
10176 | source: 'rootClose'
|
10177 | });
|
10178 | };
|
10179 |
|
10180 | _proto.render = function render() {
|
10181 | var _extends2,
|
10182 | _this2 = this;
|
10183 |
|
10184 | var _this$props = this.props,
|
10185 | open = _this$props.open,
|
10186 | pullRight = _this$props.pullRight,
|
10187 | labelledBy = _this$props.labelledBy,
|
10188 | onSelect = _this$props.onSelect,
|
10189 | className = _this$props.className,
|
10190 | rootCloseEvent = _this$props.rootCloseEvent,
|
10191 | children = _this$props.children,
|
10192 | props = _objectWithoutPropertiesLoose(_this$props, ["open", "pullRight", "labelledBy", "onSelect", "className", "rootCloseEvent", "children"]);
|
10193 |
|
10194 | var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['onClose']),
|
10195 | bsProps = _splitBsPropsAndOmit[0],
|
10196 | elementProps = _splitBsPropsAndOmit[1];
|
10197 |
|
10198 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'right')] = pullRight, _extends2));
|
10199 |
|
10200 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(RootCloseWrapper_default.a, {
|
10201 | disabled: !open,
|
10202 | onRootClose: this.handleRootClose,
|
10203 | event: rootCloseEvent,
|
10204 | __source: {
|
10205 | fileName: DropdownMenu_jsxFileName,
|
10206 | lineNumber: 117
|
10207 | },
|
10208 | __self: this
|
10209 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", _extends({}, elementProps, {
|
10210 | role: "menu",
|
10211 | className: classnames_default()(className, classes),
|
10212 | "aria-labelledby": labelledBy,
|
10213 | __source: {
|
10214 | fileName: DropdownMenu_jsxFileName,
|
10215 | lineNumber: 122
|
10216 | },
|
10217 | __self: this
|
10218 | }), ValidComponentChildren.map(children, function (child) {
|
10219 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(child, {
|
10220 | onKeyDown: utils_createChainedFunction(child.props.onKeyDown, _this2.handleKeyDown),
|
10221 | onSelect: utils_createChainedFunction(child.props.onSelect, onSelect)
|
10222 | });
|
10223 | })));
|
10224 | };
|
10225 |
|
10226 | return DropdownMenu;
|
10227 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
10228 |
|
10229 | DropdownMenu_DropdownMenu.propTypes = DropdownMenu_propTypes;
|
10230 | DropdownMenu_DropdownMenu.defaultProps = DropdownMenu_defaultProps;
|
10231 | var src_DropdownMenu = (bootstrapUtils_bsClass('dropdown-menu', DropdownMenu_DropdownMenu));
|
10232 |
|
10233 |
|
10234 |
|
10235 |
|
10236 | var DropdownToggle_jsxFileName = "/Users/jason/src/react-bootstrap/src/DropdownToggle.js";
|
10237 |
|
10238 |
|
10239 |
|
10240 |
|
10241 |
|
10242 |
|
10243 | var DropdownToggle_propTypes = {
|
10244 | noCaret: prop_types_default.a.bool,
|
10245 | open: prop_types_default.a.bool,
|
10246 | title: prop_types_default.a.string,
|
10247 | useAnchor: prop_types_default.a.bool
|
10248 | };
|
10249 | var DropdownToggle_defaultProps = {
|
10250 | open: false,
|
10251 | useAnchor: false,
|
10252 | bsRole: 'toggle'
|
10253 | };
|
10254 |
|
10255 | var DropdownToggle_DropdownToggle =
|
10256 |
|
10257 | function (_React$Component) {
|
10258 | _inheritsLoose(DropdownToggle, _React$Component);
|
10259 |
|
10260 | function DropdownToggle() {
|
10261 | return _React$Component.apply(this, arguments) || this;
|
10262 | }
|
10263 |
|
10264 | var _proto = DropdownToggle.prototype;
|
10265 |
|
10266 | _proto.render = function render() {
|
10267 | var _this$props = this.props,
|
10268 | noCaret = _this$props.noCaret,
|
10269 | open = _this$props.open,
|
10270 | useAnchor = _this$props.useAnchor,
|
10271 | bsClass = _this$props.bsClass,
|
10272 | className = _this$props.className,
|
10273 | children = _this$props.children,
|
10274 | props = _objectWithoutPropertiesLoose(_this$props, ["noCaret", "open", "useAnchor", "bsClass", "className", "children"]);
|
10275 |
|
10276 | delete props.bsRole;
|
10277 | var Component = useAnchor ? src_SafeAnchor : src_Button;
|
10278 | var useCaret = !noCaret;
|
10279 |
|
10280 |
|
10281 |
|
10282 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, props, {
|
10283 | role: "button",
|
10284 | className: classnames_default()(className, bsClass),
|
10285 | "aria-haspopup": true,
|
10286 | "aria-expanded": open,
|
10287 | __source: {
|
10288 | fileName: DropdownToggle_jsxFileName,
|
10289 | lineNumber: 45
|
10290 | },
|
10291 | __self: this
|
10292 | }), children || props.title, useCaret && ' ', useCaret && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
10293 | className: "caret",
|
10294 | __source: {
|
10295 | fileName: DropdownToggle_jsxFileName,
|
10296 | lineNumber: 54
|
10297 | },
|
10298 | __self: this
|
10299 | }));
|
10300 | };
|
10301 |
|
10302 | return DropdownToggle;
|
10303 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
10304 |
|
10305 | DropdownToggle_DropdownToggle.propTypes = DropdownToggle_propTypes;
|
10306 | DropdownToggle_DropdownToggle.defaultProps = DropdownToggle_defaultProps;
|
10307 | var src_DropdownToggle = (bootstrapUtils_bsClass('dropdown-toggle', DropdownToggle_DropdownToggle));
|
10308 |
|
10309 |
|
10310 |
|
10311 |
|
10312 |
|
10313 | var Dropdown_jsxFileName = "/Users/jason/src/react-bootstrap/src/Dropdown.js";
|
10314 |
|
10315 |
|
10316 |
|
10317 |
|
10318 |
|
10319 |
|
10320 |
|
10321 |
|
10322 |
|
10323 |
|
10324 |
|
10325 |
|
10326 |
|
10327 |
|
10328 |
|
10329 |
|
10330 |
|
10331 |
|
10332 |
|
10333 | var TOGGLE_ROLE = src_DropdownToggle.defaultProps.bsRole;
|
10334 | var MENU_ROLE = src_DropdownMenu.defaultProps.bsRole;
|
10335 | var Dropdown_propTypes = {
|
10336 | |
10337 |
|
10338 |
|
10339 | dropup: prop_types_default.a.bool,
|
10340 |
|
10341 | |
10342 |
|
10343 |
|
10344 |
|
10345 |
|
10346 | id: isRequiredForA11y_default()(prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number])),
|
10347 | componentClass: elementType_default.a,
|
10348 |
|
10349 | |
10350 |
|
10351 |
|
10352 |
|
10353 | children: all_default()(requiredRoles(TOGGLE_ROLE, MENU_ROLE), exclusiveRoles(MENU_ROLE)),
|
10354 |
|
10355 | |
10356 |
|
10357 |
|
10358 | disabled: prop_types_default.a.bool,
|
10359 |
|
10360 | |
10361 |
|
10362 |
|
10363 | pullRight: prop_types_default.a.bool,
|
10364 |
|
10365 | |
10366 |
|
10367 |
|
10368 |
|
10369 |
|
10370 | open: prop_types_default.a.bool,
|
10371 | defaultOpen: prop_types_default.a.bool,
|
10372 |
|
10373 | |
10374 |
|
10375 |
|
10376 |
|
10377 |
|
10378 |
|
10379 |
|
10380 |
|
10381 |
|
10382 | onToggle: prop_types_default.a.func,
|
10383 |
|
10384 | |
10385 |
|
10386 |
|
10387 |
|
10388 |
|
10389 |
|
10390 |
|
10391 | onSelect: prop_types_default.a.func,
|
10392 |
|
10393 | |
10394 |
|
10395 |
|
10396 |
|
10397 | role: prop_types_default.a.string,
|
10398 |
|
10399 | |
10400 |
|
10401 |
|
10402 |
|
10403 |
|
10404 |
|
10405 |
|
10406 | rootCloseEvent: prop_types_default.a.oneOf(['click', 'mousedown']),
|
10407 |
|
10408 | |
10409 |
|
10410 |
|
10411 | onMouseEnter: prop_types_default.a.func,
|
10412 |
|
10413 | |
10414 |
|
10415 |
|
10416 | onMouseLeave: prop_types_default.a.func
|
10417 | };
|
10418 | var Dropdown_defaultProps = {
|
10419 | componentClass: src_ButtonGroup
|
10420 | };
|
10421 |
|
10422 | var Dropdown_Dropdown =
|
10423 |
|
10424 | function (_React$Component) {
|
10425 | _inheritsLoose(Dropdown, _React$Component);
|
10426 |
|
10427 | function Dropdown(props, context) {
|
10428 | var _this;
|
10429 |
|
10430 | _this = _React$Component.call(this, props, context) || this;
|
10431 | _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
10432 | _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
10433 | _this.handleClose = _this.handleClose.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
10434 | _this._focusInDropdown = false;
|
10435 | _this.lastOpenEventType = null;
|
10436 | return _this;
|
10437 | }
|
10438 |
|
10439 | var _proto = Dropdown.prototype;
|
10440 |
|
10441 | _proto.componentDidMount = function componentDidMount() {
|
10442 | this.focusNextOnOpen();
|
10443 | };
|
10444 |
|
10445 | _proto.componentWillUpdate = function componentWillUpdate(nextProps) {
|
10446 | if (!nextProps.open && this.props.open) {
|
10447 | this._focusInDropdown = contains_default()(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.findDOMNode(this.menu), activeElement_default()(document));
|
10448 | }
|
10449 | };
|
10450 |
|
10451 | _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
10452 | var open = this.props.open;
|
10453 | var prevOpen = prevProps.open;
|
10454 |
|
10455 | if (open && !prevOpen) {
|
10456 | this.focusNextOnOpen();
|
10457 | }
|
10458 |
|
10459 | if (!open && prevOpen) {
|
10460 |
|
10461 |
|
10462 | if (this._focusInDropdown) {
|
10463 | this._focusInDropdown = false;
|
10464 | this.focus();
|
10465 | }
|
10466 | }
|
10467 | };
|
10468 |
|
10469 | _proto.focus = function focus() {
|
10470 | var toggle = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.findDOMNode(this.toggle);
|
10471 |
|
10472 | if (toggle && toggle.focus) {
|
10473 | toggle.focus();
|
10474 | }
|
10475 | };
|
10476 |
|
10477 | _proto.focusNextOnOpen = function focusNextOnOpen() {
|
10478 | var menu = this.menu;
|
10479 |
|
10480 | if (!menu || !menu.focusNext) {
|
10481 | return;
|
10482 | }
|
10483 |
|
10484 | if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') {
|
10485 | menu.focusNext();
|
10486 | }
|
10487 | };
|
10488 |
|
10489 | _proto.handleClick = function handleClick(event) {
|
10490 | if (this.props.disabled) {
|
10491 | return;
|
10492 | }
|
10493 |
|
10494 | this.toggleOpen(event, {
|
10495 | source: 'click'
|
10496 | });
|
10497 | };
|
10498 |
|
10499 | _proto.handleClose = function handleClose(event, eventDetails) {
|
10500 | if (!this.props.open) {
|
10501 | return;
|
10502 | }
|
10503 |
|
10504 | this.toggleOpen(event, eventDetails);
|
10505 | };
|
10506 |
|
10507 | _proto.handleKeyDown = function handleKeyDown(event) {
|
10508 | if (this.props.disabled) {
|
10509 | return;
|
10510 | }
|
10511 |
|
10512 | switch (event.keyCode) {
|
10513 | case keycode_default.a.codes.down:
|
10514 | if (!this.props.open) {
|
10515 | this.toggleOpen(event, {
|
10516 | source: 'keydown'
|
10517 | });
|
10518 | } else if (this.menu.focusNext) {
|
10519 | this.menu.focusNext();
|
10520 | }
|
10521 |
|
10522 | event.preventDefault();
|
10523 | break;
|
10524 |
|
10525 | case keycode_default.a.codes.esc:
|
10526 | case keycode_default.a.codes.tab:
|
10527 | this.handleClose(event, {
|
10528 | source: 'keydown'
|
10529 | });
|
10530 | break;
|
10531 |
|
10532 | default:
|
10533 | }
|
10534 | };
|
10535 |
|
10536 | _proto.toggleOpen = function toggleOpen(event, eventDetails) {
|
10537 | var open = !this.props.open;
|
10538 |
|
10539 | if (open) {
|
10540 | this.lastOpenEventType = eventDetails.source;
|
10541 | }
|
10542 |
|
10543 | if (this.props.onToggle) {
|
10544 | this.props.onToggle(open, event, eventDetails);
|
10545 | }
|
10546 | };
|
10547 |
|
10548 | _proto.renderMenu = function renderMenu(child, _ref) {
|
10549 | var _this2 = this;
|
10550 |
|
10551 | var id = _ref.id,
|
10552 | onSelect = _ref.onSelect,
|
10553 | rootCloseEvent = _ref.rootCloseEvent,
|
10554 | props = _objectWithoutPropertiesLoose(_ref, ["id", "onSelect", "rootCloseEvent"]);
|
10555 |
|
10556 | var ref = function ref(c) {
|
10557 | _this2.menu = c;
|
10558 | };
|
10559 |
|
10560 | if (typeof child.ref === 'string') {
|
10561 | false ? undefined : void 0;
|
10562 | } else {
|
10563 | ref = utils_createChainedFunction(child.ref, ref);
|
10564 | }
|
10565 |
|
10566 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, _extends({}, props, {
|
10567 | ref: ref,
|
10568 | labelledBy: id,
|
10569 | bsClass: prefix(props, 'menu'),
|
10570 | onClose: utils_createChainedFunction(child.props.onClose, this.handleClose),
|
10571 | onSelect: utils_createChainedFunction(child.props.onSelect, onSelect, function (key, event) {
|
10572 | return _this2.handleClose(event, {
|
10573 | source: 'select'
|
10574 | });
|
10575 | }),
|
10576 | rootCloseEvent: rootCloseEvent
|
10577 | }));
|
10578 | };
|
10579 |
|
10580 | _proto.renderToggle = function renderToggle(child, props) {
|
10581 | var _this3 = this;
|
10582 |
|
10583 | var ref = function ref(c) {
|
10584 | _this3.toggle = c;
|
10585 | };
|
10586 |
|
10587 | if (typeof child.ref === 'string') {
|
10588 | false ? undefined : void 0;
|
10589 | } else {
|
10590 | ref = utils_createChainedFunction(child.ref, ref);
|
10591 | }
|
10592 |
|
10593 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, _extends({}, props, {
|
10594 | ref: ref,
|
10595 | bsClass: prefix(props, 'toggle'),
|
10596 | onClick: utils_createChainedFunction(child.props.onClick, this.handleClick),
|
10597 | onKeyDown: utils_createChainedFunction(child.props.onKeyDown, this.handleKeyDown)
|
10598 | }));
|
10599 | };
|
10600 |
|
10601 | _proto.render = function render() {
|
10602 | var _classes,
|
10603 | _this4 = this;
|
10604 |
|
10605 | var _this$props = this.props,
|
10606 | Component = _this$props.componentClass,
|
10607 | id = _this$props.id,
|
10608 | dropup = _this$props.dropup,
|
10609 | disabled = _this$props.disabled,
|
10610 | pullRight = _this$props.pullRight,
|
10611 | open = _this$props.open,
|
10612 | onSelect = _this$props.onSelect,
|
10613 | role = _this$props.role,
|
10614 | bsClass = _this$props.bsClass,
|
10615 | className = _this$props.className,
|
10616 | rootCloseEvent = _this$props.rootCloseEvent,
|
10617 | children = _this$props.children,
|
10618 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "id", "dropup", "disabled", "pullRight", "open", "onSelect", "role", "bsClass", "className", "rootCloseEvent", "children"]);
|
10619 |
|
10620 | delete props.onToggle;
|
10621 | var classes = (_classes = {}, _classes[bsClass] = true, _classes.open = open, _classes.disabled = disabled, _classes);
|
10622 |
|
10623 | if (dropup) {
|
10624 | classes[bsClass] = false;
|
10625 | classes.dropup = true;
|
10626 | }
|
10627 |
|
10628 |
|
10629 |
|
10630 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, props, {
|
10631 | className: classnames_default()(className, classes),
|
10632 | __source: {
|
10633 | fileName: Dropdown_jsxFileName,
|
10634 | lineNumber: 328
|
10635 | },
|
10636 | __self: this
|
10637 | }), ValidComponentChildren.map(children, function (child) {
|
10638 | switch (child.props.bsRole) {
|
10639 | case TOGGLE_ROLE:
|
10640 | return _this4.renderToggle(child, {
|
10641 | id: id,
|
10642 | disabled: disabled,
|
10643 | open: open,
|
10644 | role: role,
|
10645 | bsClass: bsClass
|
10646 | });
|
10647 |
|
10648 | case MENU_ROLE:
|
10649 | return _this4.renderMenu(child, {
|
10650 | id: id,
|
10651 | open: open,
|
10652 | pullRight: pullRight,
|
10653 | bsClass: bsClass,
|
10654 | onSelect: onSelect,
|
10655 | rootCloseEvent: rootCloseEvent
|
10656 | });
|
10657 |
|
10658 | default:
|
10659 | return child;
|
10660 | }
|
10661 | }));
|
10662 | };
|
10663 |
|
10664 | return Dropdown;
|
10665 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
10666 |
|
10667 | Dropdown_Dropdown.propTypes = Dropdown_propTypes;
|
10668 | Dropdown_Dropdown.defaultProps = Dropdown_defaultProps;
|
10669 | bootstrapUtils_bsClass('dropdown', Dropdown_Dropdown);
|
10670 | var UncontrolledDropdown = uncontrollable_default()(Dropdown_Dropdown, {
|
10671 | open: 'onToggle'
|
10672 | });
|
10673 | UncontrolledDropdown.Toggle = src_DropdownToggle;
|
10674 | UncontrolledDropdown.Menu = src_DropdownMenu;
|
10675 | var src_Dropdown = (UncontrolledDropdown);
|
10676 |
|
10677 |
|
10678 | function splitComponentProps(props, Component) {
|
10679 | var componentPropTypes = Component.propTypes;
|
10680 | var parentProps = {};
|
10681 | var childProps = {};
|
10682 |
|
10683 | entries_default()(props).forEach(function (_ref) {
|
10684 | var propName = _ref[0],
|
10685 | propValue = _ref[1];
|
10686 |
|
10687 | if (componentPropTypes[propName]) {
|
10688 | parentProps[propName] = propValue;
|
10689 | } else {
|
10690 | childProps[propName] = propValue;
|
10691 | }
|
10692 | });
|
10693 |
|
10694 | return [parentProps, childProps];
|
10695 | }
|
10696 |
|
10697 |
|
10698 |
|
10699 |
|
10700 | var DropdownButton_jsxFileName = "/Users/jason/src/react-bootstrap/src/DropdownButton.js";
|
10701 |
|
10702 |
|
10703 |
|
10704 |
|
10705 |
|
10706 | var DropdownButton_propTypes = _extends({}, src_Dropdown.propTypes, {
|
10707 |
|
10708 | bsStyle: prop_types_default.a.string,
|
10709 | bsSize: prop_types_default.a.string,
|
10710 | title: prop_types_default.a.node.isRequired,
|
10711 | noCaret: prop_types_default.a.bool,
|
10712 |
|
10713 |
|
10714 | |
10715 |
|
10716 |
|
10717 | children: prop_types_default.a.node
|
10718 | });
|
10719 |
|
10720 | var DropdownButton_DropdownButton =
|
10721 |
|
10722 | function (_React$Component) {
|
10723 | _inheritsLoose(DropdownButton, _React$Component);
|
10724 |
|
10725 | function DropdownButton() {
|
10726 | return _React$Component.apply(this, arguments) || this;
|
10727 | }
|
10728 |
|
10729 | var _proto = DropdownButton.prototype;
|
10730 |
|
10731 | _proto.render = function render() {
|
10732 | var _this$props = this.props,
|
10733 | bsSize = _this$props.bsSize,
|
10734 | bsStyle = _this$props.bsStyle,
|
10735 | title = _this$props.title,
|
10736 | children = _this$props.children,
|
10737 | props = _objectWithoutPropertiesLoose(_this$props, ["bsSize", "bsStyle", "title", "children"]);
|
10738 |
|
10739 | var _splitComponentProps = splitComponentProps(props, src_Dropdown.ControlledComponent),
|
10740 | dropdownProps = _splitComponentProps[0],
|
10741 | toggleProps = _splitComponentProps[1];
|
10742 |
|
10743 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Dropdown, _extends({}, dropdownProps, {
|
10744 | bsSize: bsSize,
|
10745 | bsStyle: bsStyle,
|
10746 | __source: {
|
10747 | fileName: DropdownButton_jsxFileName,
|
10748 | lineNumber: 33
|
10749 | },
|
10750 | __self: this
|
10751 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Dropdown.Toggle, _extends({}, toggleProps, {
|
10752 | bsSize: bsSize,
|
10753 | bsStyle: bsStyle,
|
10754 | __source: {
|
10755 | fileName: DropdownButton_jsxFileName,
|
10756 | lineNumber: 34
|
10757 | },
|
10758 | __self: this
|
10759 | }), title), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Dropdown.Menu, {
|
10760 | __source: {
|
10761 | fileName: DropdownButton_jsxFileName,
|
10762 | lineNumber: 38
|
10763 | },
|
10764 | __self: this
|
10765 | }, children));
|
10766 | };
|
10767 |
|
10768 | return DropdownButton;
|
10769 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
10770 |
|
10771 | DropdownButton_DropdownButton.propTypes = DropdownButton_propTypes;
|
10772 | var src_DropdownButton = (DropdownButton_DropdownButton);
|
10773 |
|
10774 |
|
10775 |
|
10776 |
|
10777 |
|
10778 | var _fadeStyles,
|
10779 | Fade_jsxFileName = "/Users/jason/src/react-bootstrap/src/Fade.js";
|
10780 |
|
10781 |
|
10782 |
|
10783 |
|
10784 |
|
10785 | var Fade_propTypes = {
|
10786 | |
10787 |
|
10788 |
|
10789 | in: prop_types_default.a.bool,
|
10790 |
|
10791 | |
10792 |
|
10793 |
|
10794 | mountOnEnter: prop_types_default.a.bool,
|
10795 |
|
10796 | |
10797 |
|
10798 |
|
10799 | unmountOnExit: prop_types_default.a.bool,
|
10800 |
|
10801 | |
10802 |
|
10803 |
|
10804 |
|
10805 | appear: prop_types_default.a.bool,
|
10806 |
|
10807 | |
10808 |
|
10809 |
|
10810 |
|
10811 |
|
10812 | timeout: prop_types_default.a.number,
|
10813 |
|
10814 | |
10815 |
|
10816 |
|
10817 | onEnter: prop_types_default.a.func,
|
10818 |
|
10819 | |
10820 |
|
10821 |
|
10822 | onEntering: prop_types_default.a.func,
|
10823 |
|
10824 | |
10825 |
|
10826 |
|
10827 | onEntered: prop_types_default.a.func,
|
10828 |
|
10829 | |
10830 |
|
10831 |
|
10832 | onExit: prop_types_default.a.func,
|
10833 |
|
10834 | |
10835 |
|
10836 |
|
10837 | onExiting: prop_types_default.a.func,
|
10838 |
|
10839 | |
10840 |
|
10841 |
|
10842 | onExited: prop_types_default.a.func
|
10843 | };
|
10844 | var Fade_defaultProps = {
|
10845 | in: false,
|
10846 | timeout: 300,
|
10847 | mountOnEnter: false,
|
10848 | unmountOnExit: false,
|
10849 | appear: false
|
10850 | };
|
10851 | var fadeStyles = (_fadeStyles = {}, _fadeStyles[react_transition_group_Transition["ENTERING"]] = 'in', _fadeStyles[react_transition_group_Transition["ENTERED"]] = 'in', _fadeStyles);
|
10852 |
|
10853 | var Fade_Fade =
|
10854 |
|
10855 | function (_React$Component) {
|
10856 | _inheritsLoose(Fade, _React$Component);
|
10857 |
|
10858 | function Fade() {
|
10859 | return _React$Component.apply(this, arguments) || this;
|
10860 | }
|
10861 |
|
10862 | var _proto = Fade.prototype;
|
10863 |
|
10864 | _proto.render = function render() {
|
10865 | var _this$props = this.props,
|
10866 | className = _this$props.className,
|
10867 | children = _this$props.children,
|
10868 | props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
10869 |
|
10870 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Transition_default.a, _extends({}, props, {
|
10871 | __source: {
|
10872 | fileName: Fade_jsxFileName,
|
10873 | lineNumber: 82
|
10874 | },
|
10875 | __self: this
|
10876 | }), function (status, innerProps) {
|
10877 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(children, _extends({}, innerProps, {
|
10878 | className: classnames_default()('fade', className, children.props.className, fadeStyles[status])
|
10879 | }));
|
10880 | });
|
10881 | };
|
10882 |
|
10883 | return Fade;
|
10884 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
10885 |
|
10886 | Fade_Fade.propTypes = Fade_propTypes;
|
10887 | Fade_Fade.defaultProps = Fade_defaultProps;
|
10888 | var src_Fade = (Fade_Fade);
|
10889 |
|
10890 |
|
10891 |
|
10892 |
|
10893 | var Form_jsxFileName = "/Users/jason/src/react-bootstrap/src/Form.js";
|
10894 |
|
10895 |
|
10896 |
|
10897 |
|
10898 |
|
10899 | var Form_propTypes = {
|
10900 | horizontal: prop_types_default.a.bool,
|
10901 | inline: prop_types_default.a.bool,
|
10902 | componentClass: elementType_default.a
|
10903 | };
|
10904 | var Form_defaultProps = {
|
10905 | horizontal: false,
|
10906 | inline: false,
|
10907 | componentClass: 'form'
|
10908 | };
|
10909 |
|
10910 | var Form_Form =
|
10911 |
|
10912 | function (_React$Component) {
|
10913 | _inheritsLoose(Form, _React$Component);
|
10914 |
|
10915 | function Form() {
|
10916 | return _React$Component.apply(this, arguments) || this;
|
10917 | }
|
10918 |
|
10919 | var _proto = Form.prototype;
|
10920 |
|
10921 | _proto.render = function render() {
|
10922 | var _this$props = this.props,
|
10923 | horizontal = _this$props.horizontal,
|
10924 | inline = _this$props.inline,
|
10925 | Component = _this$props.componentClass,
|
10926 | className = _this$props.className,
|
10927 | props = _objectWithoutPropertiesLoose(_this$props, ["horizontal", "inline", "componentClass", "className"]);
|
10928 |
|
10929 | var _splitBsProps = splitBsProps(props),
|
10930 | bsProps = _splitBsProps[0],
|
10931 | elementProps = _splitBsProps[1];
|
10932 |
|
10933 | var classes = [];
|
10934 |
|
10935 | if (horizontal) {
|
10936 | classes.push(prefix(bsProps, 'horizontal'));
|
10937 | }
|
10938 |
|
10939 | if (inline) {
|
10940 | classes.push(prefix(bsProps, 'inline'));
|
10941 | }
|
10942 |
|
10943 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
10944 | className: classnames_default()(className, classes),
|
10945 | __source: {
|
10946 | fileName: Form_jsxFileName,
|
10947 | lineNumber: 41
|
10948 | },
|
10949 | __self: this
|
10950 | }));
|
10951 | };
|
10952 |
|
10953 | return Form;
|
10954 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
10955 |
|
10956 | Form_Form.propTypes = Form_propTypes;
|
10957 | Form_Form.defaultProps = Form_defaultProps;
|
10958 | var src_Form = (bootstrapUtils_bsClass('form', Form_Form));
|
10959 |
|
10960 |
|
10961 |
|
10962 |
|
10963 | var FormControlFeedback_jsxFileName = "/Users/jason/src/react-bootstrap/src/FormControlFeedback.js";
|
10964 |
|
10965 |
|
10966 |
|
10967 |
|
10968 |
|
10969 | var FormControlFeedback_defaultProps = {
|
10970 | bsRole: 'feedback'
|
10971 | };
|
10972 | var FormControlFeedback_contextTypes = {
|
10973 | $bs_formGroup: prop_types_default.a.object
|
10974 | };
|
10975 |
|
10976 | var FormControlFeedback_FormControlFeedback =
|
10977 |
|
10978 | function (_React$Component) {
|
10979 | _inheritsLoose(FormControlFeedback, _React$Component);
|
10980 |
|
10981 | function FormControlFeedback() {
|
10982 | return _React$Component.apply(this, arguments) || this;
|
10983 | }
|
10984 |
|
10985 | var _proto = FormControlFeedback.prototype;
|
10986 |
|
10987 | _proto.getGlyph = function getGlyph(validationState) {
|
10988 | switch (validationState) {
|
10989 | case 'success':
|
10990 | return 'ok';
|
10991 |
|
10992 | case 'warning':
|
10993 | return 'warning-sign';
|
10994 |
|
10995 | case 'error':
|
10996 | return 'remove';
|
10997 |
|
10998 | default:
|
10999 | return null;
|
11000 | }
|
11001 | };
|
11002 |
|
11003 | _proto.renderDefaultFeedback = function renderDefaultFeedback(formGroup, className, classes, elementProps) {
|
11004 | var glyph = this.getGlyph(formGroup && formGroup.validationState);
|
11005 |
|
11006 | if (!glyph) {
|
11007 | return null;
|
11008 | }
|
11009 |
|
11010 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Glyphicon, _extends({}, elementProps, {
|
11011 | glyph: glyph,
|
11012 | className: classnames_default()(className, classes),
|
11013 | __source: {
|
11014 | fileName: FormControlFeedback_jsxFileName,
|
11015 | lineNumber: 37
|
11016 | },
|
11017 | __self: this
|
11018 | }));
|
11019 | };
|
11020 |
|
11021 | _proto.render = function render() {
|
11022 | var _this$props = this.props,
|
11023 | className = _this$props.className,
|
11024 | children = _this$props.children,
|
11025 | props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
11026 |
|
11027 | var _splitBsProps = splitBsProps(props),
|
11028 | bsProps = _splitBsProps[0],
|
11029 | elementProps = _splitBsProps[1];
|
11030 |
|
11031 | var classes = getClassSet(bsProps);
|
11032 |
|
11033 | if (!children) {
|
11034 | return this.renderDefaultFeedback(this.context.$bs_formGroup, className, classes, elementProps);
|
11035 | }
|
11036 |
|
11037 | var child = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.only(children);
|
11038 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(child, _extends({}, elementProps, {
|
11039 | className: classnames_default()(child.props.className, className, classes)
|
11040 | }));
|
11041 | };
|
11042 |
|
11043 | return FormControlFeedback;
|
11044 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11045 |
|
11046 | FormControlFeedback_FormControlFeedback.defaultProps = FormControlFeedback_defaultProps;
|
11047 | FormControlFeedback_FormControlFeedback.contextTypes = FormControlFeedback_contextTypes;
|
11048 | var src_FormControlFeedback = (bootstrapUtils_bsClass('form-control-feedback', FormControlFeedback_FormControlFeedback));
|
11049 |
|
11050 |
|
11051 |
|
11052 |
|
11053 | var FormControlStatic_jsxFileName = "/Users/jason/src/react-bootstrap/src/FormControlStatic.js";
|
11054 |
|
11055 |
|
11056 |
|
11057 |
|
11058 | var FormControlStatic_propTypes = {
|
11059 | componentClass: elementType_default.a
|
11060 | };
|
11061 | var FormControlStatic_defaultProps = {
|
11062 | componentClass: 'p'
|
11063 | };
|
11064 |
|
11065 | var FormControlStatic_FormControlStatic =
|
11066 |
|
11067 | function (_React$Component) {
|
11068 | _inheritsLoose(FormControlStatic, _React$Component);
|
11069 |
|
11070 | function FormControlStatic() {
|
11071 | return _React$Component.apply(this, arguments) || this;
|
11072 | }
|
11073 |
|
11074 | var _proto = FormControlStatic.prototype;
|
11075 |
|
11076 | _proto.render = function render() {
|
11077 | var _this$props = this.props,
|
11078 | Component = _this$props.componentClass,
|
11079 | className = _this$props.className,
|
11080 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
11081 |
|
11082 | var _splitBsProps = splitBsProps(props),
|
11083 | bsProps = _splitBsProps[0],
|
11084 | elementProps = _splitBsProps[1];
|
11085 |
|
11086 | var classes = getClassSet(bsProps);
|
11087 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
11088 | className: classnames_default()(className, classes),
|
11089 | __source: {
|
11090 | fileName: FormControlStatic_jsxFileName,
|
11091 | lineNumber: 23
|
11092 | },
|
11093 | __self: this
|
11094 | }));
|
11095 | };
|
11096 |
|
11097 | return FormControlStatic;
|
11098 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11099 |
|
11100 | FormControlStatic_FormControlStatic.propTypes = FormControlStatic_propTypes;
|
11101 | FormControlStatic_FormControlStatic.defaultProps = FormControlStatic_defaultProps;
|
11102 | var src_FormControlStatic = (bootstrapUtils_bsClass('form-control-static', FormControlStatic_FormControlStatic));
|
11103 |
|
11104 |
|
11105 |
|
11106 |
|
11107 | var FormControl_jsxFileName = "/Users/jason/src/react-bootstrap/src/FormControl.js";
|
11108 |
|
11109 |
|
11110 |
|
11111 |
|
11112 |
|
11113 |
|
11114 |
|
11115 |
|
11116 |
|
11117 | var FormControl_propTypes = {
|
11118 | componentClass: elementType_default.a,
|
11119 |
|
11120 | |
11121 |
|
11122 |
|
11123 | type: prop_types_default.a.string,
|
11124 |
|
11125 | |
11126 |
|
11127 |
|
11128 | id: prop_types_default.a.string,
|
11129 |
|
11130 | |
11131 |
|
11132 |
|
11133 |
|
11134 |
|
11135 |
|
11136 |
|
11137 | inputRef: prop_types_default.a.func
|
11138 | };
|
11139 | var FormControl_defaultProps = {
|
11140 | componentClass: 'input'
|
11141 | };
|
11142 | var FormControl_contextTypes = {
|
11143 | $bs_formGroup: prop_types_default.a.object
|
11144 | };
|
11145 |
|
11146 | var FormControl_FormControl =
|
11147 |
|
11148 | function (_React$Component) {
|
11149 | _inheritsLoose(FormControl, _React$Component);
|
11150 |
|
11151 | function FormControl() {
|
11152 | return _React$Component.apply(this, arguments) || this;
|
11153 | }
|
11154 |
|
11155 | var _proto = FormControl.prototype;
|
11156 |
|
11157 | _proto.render = function render() {
|
11158 | var formGroup = this.context.$bs_formGroup;
|
11159 | var controlId = formGroup && formGroup.controlId;
|
11160 |
|
11161 | var _this$props = this.props,
|
11162 | Component = _this$props.componentClass,
|
11163 | type = _this$props.type,
|
11164 | _this$props$id = _this$props.id,
|
11165 | id = _this$props$id === void 0 ? controlId : _this$props$id,
|
11166 | inputRef = _this$props.inputRef,
|
11167 | className = _this$props.className,
|
11168 | bsSize = _this$props.bsSize,
|
11169 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "type", "id", "inputRef", "className", "bsSize"]);
|
11170 |
|
11171 | var _splitBsProps = splitBsProps(props),
|
11172 | bsProps = _splitBsProps[0],
|
11173 | elementProps = _splitBsProps[1];
|
11174 |
|
11175 | false ? undefined : void 0;
|
11176 |
|
11177 | var classes;
|
11178 |
|
11179 | if (type !== 'file') {
|
11180 | classes = getClassSet(bsProps);
|
11181 | }
|
11182 |
|
11183 |
|
11184 |
|
11185 | if (bsSize) {
|
11186 | var size = SIZE_MAP[bsSize] || bsSize;
|
11187 | classes[prefix({
|
11188 | bsClass: 'input'
|
11189 | }, size)] = true;
|
11190 | }
|
11191 |
|
11192 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
11193 | type: type,
|
11194 | id: id,
|
11195 | ref: inputRef,
|
11196 | className: classnames_default()(className, classes),
|
11197 | __source: {
|
11198 | fileName: FormControl_jsxFileName,
|
11199 | lineNumber: 82
|
11200 | },
|
11201 | __self: this
|
11202 | }));
|
11203 | };
|
11204 |
|
11205 | return FormControl;
|
11206 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11207 |
|
11208 | FormControl_FormControl.propTypes = FormControl_propTypes;
|
11209 | FormControl_FormControl.defaultProps = FormControl_defaultProps;
|
11210 | FormControl_FormControl.contextTypes = FormControl_contextTypes;
|
11211 | FormControl_FormControl.Feedback = src_FormControlFeedback;
|
11212 | FormControl_FormControl.Static = src_FormControlStatic;
|
11213 | var src_FormControl = (bootstrapUtils_bsClass('form-control', bsSizes([Size.SMALL, Size.LARGE], FormControl_FormControl)));
|
11214 |
|
11215 |
|
11216 |
|
11217 |
|
11218 | var FormGroup_jsxFileName = "/Users/jason/src/react-bootstrap/src/FormGroup.js";
|
11219 |
|
11220 |
|
11221 |
|
11222 |
|
11223 |
|
11224 |
|
11225 | var FormGroup_propTypes = {
|
11226 | |
11227 |
|
11228 |
|
11229 | controlId: prop_types_default.a.string,
|
11230 | validationState: prop_types_default.a.oneOf(['success', 'warning', 'error', null])
|
11231 | };
|
11232 | var FormGroup_childContextTypes = {
|
11233 | $bs_formGroup: prop_types_default.a.object.isRequired
|
11234 | };
|
11235 |
|
11236 | var FormGroup_FormGroup =
|
11237 |
|
11238 | function (_React$Component) {
|
11239 | _inheritsLoose(FormGroup, _React$Component);
|
11240 |
|
11241 | function FormGroup() {
|
11242 | return _React$Component.apply(this, arguments) || this;
|
11243 | }
|
11244 |
|
11245 | var _proto = FormGroup.prototype;
|
11246 |
|
11247 | _proto.getChildContext = function getChildContext() {
|
11248 | var _this$props = this.props,
|
11249 | controlId = _this$props.controlId,
|
11250 | validationState = _this$props.validationState;
|
11251 | return {
|
11252 | $bs_formGroup: {
|
11253 | controlId: controlId,
|
11254 | validationState: validationState
|
11255 | }
|
11256 | };
|
11257 | };
|
11258 |
|
11259 | _proto.hasFeedback = function hasFeedback(children) {
|
11260 | var _this = this;
|
11261 |
|
11262 | return ValidComponentChildren.some(children, function (child) {
|
11263 | return child.props.bsRole === 'feedback' || child.props.children && _this.hasFeedback(child.props.children);
|
11264 | });
|
11265 | };
|
11266 |
|
11267 | _proto.render = function render() {
|
11268 | var _this$props2 = this.props,
|
11269 | validationState = _this$props2.validationState,
|
11270 | className = _this$props2.className,
|
11271 | children = _this$props2.children,
|
11272 | props = _objectWithoutPropertiesLoose(_this$props2, ["validationState", "className", "children"]);
|
11273 |
|
11274 | var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['controlId']),
|
11275 | bsProps = _splitBsPropsAndOmit[0],
|
11276 | elementProps = _splitBsPropsAndOmit[1];
|
11277 |
|
11278 | var classes = _extends({}, getClassSet(bsProps), {
|
11279 | 'has-feedback': this.hasFeedback(children)
|
11280 | });
|
11281 |
|
11282 | if (validationState) {
|
11283 | classes["has-" + validationState] = true;
|
11284 | }
|
11285 |
|
11286 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
11287 | className: classnames_default()(className, classes),
|
11288 | __source: {
|
11289 | fileName: FormGroup_jsxFileName,
|
11290 | lineNumber: 60
|
11291 | },
|
11292 | __self: this
|
11293 | }), children);
|
11294 | };
|
11295 |
|
11296 | return FormGroup;
|
11297 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11298 |
|
11299 | FormGroup_FormGroup.propTypes = FormGroup_propTypes;
|
11300 | FormGroup_FormGroup.childContextTypes = FormGroup_childContextTypes;
|
11301 | var src_FormGroup = (bootstrapUtils_bsClass('form-group', bsSizes([Size.LARGE, Size.SMALL], FormGroup_FormGroup)));
|
11302 |
|
11303 |
|
11304 |
|
11305 |
|
11306 | var Grid_jsxFileName = "/Users/jason/src/react-bootstrap/src/Grid.js";
|
11307 |
|
11308 |
|
11309 |
|
11310 |
|
11311 |
|
11312 | var Grid_propTypes = {
|
11313 | |
11314 |
|
11315 |
|
11316 |
|
11317 |
|
11318 | fluid: prop_types_default.a.bool,
|
11319 |
|
11320 | |
11321 |
|
11322 |
|
11323 | componentClass: elementType_default.a
|
11324 | };
|
11325 | var Grid_defaultProps = {
|
11326 | componentClass: 'div',
|
11327 | fluid: false
|
11328 | };
|
11329 |
|
11330 | var Grid_Grid =
|
11331 |
|
11332 | function (_React$Component) {
|
11333 | _inheritsLoose(Grid, _React$Component);
|
11334 |
|
11335 | function Grid() {
|
11336 | return _React$Component.apply(this, arguments) || this;
|
11337 | }
|
11338 |
|
11339 | var _proto = Grid.prototype;
|
11340 |
|
11341 | _proto.render = function render() {
|
11342 | var _this$props = this.props,
|
11343 | fluid = _this$props.fluid,
|
11344 | Component = _this$props.componentClass,
|
11345 | className = _this$props.className,
|
11346 | props = _objectWithoutPropertiesLoose(_this$props, ["fluid", "componentClass", "className"]);
|
11347 |
|
11348 | var _splitBsProps = splitBsProps(props),
|
11349 | bsProps = _splitBsProps[0],
|
11350 | elementProps = _splitBsProps[1];
|
11351 |
|
11352 | var classes = prefix(bsProps, fluid && 'fluid');
|
11353 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
11354 | className: classnames_default()(className, classes),
|
11355 | __source: {
|
11356 | fileName: Grid_jsxFileName,
|
11357 | lineNumber: 39
|
11358 | },
|
11359 | __self: this
|
11360 | }));
|
11361 | };
|
11362 |
|
11363 | return Grid;
|
11364 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11365 |
|
11366 | Grid_Grid.propTypes = Grid_propTypes;
|
11367 | Grid_Grid.defaultProps = Grid_defaultProps;
|
11368 | var src_Grid = (bootstrapUtils_bsClass('container', Grid_Grid));
|
11369 |
|
11370 |
|
11371 |
|
11372 |
|
11373 | var HelpBlock_jsxFileName = "/Users/jason/src/react-bootstrap/src/HelpBlock.js";
|
11374 |
|
11375 |
|
11376 |
|
11377 |
|
11378 | var HelpBlock_HelpBlock =
|
11379 |
|
11380 | function (_React$Component) {
|
11381 | _inheritsLoose(HelpBlock, _React$Component);
|
11382 |
|
11383 | function HelpBlock() {
|
11384 | return _React$Component.apply(this, arguments) || this;
|
11385 | }
|
11386 |
|
11387 | var _proto = HelpBlock.prototype;
|
11388 |
|
11389 | _proto.render = function render() {
|
11390 | var _this$props = this.props,
|
11391 | className = _this$props.className,
|
11392 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
11393 |
|
11394 | var _splitBsProps = splitBsProps(props),
|
11395 | bsProps = _splitBsProps[0],
|
11396 | elementProps = _splitBsProps[1];
|
11397 |
|
11398 | var classes = getClassSet(bsProps);
|
11399 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", _extends({}, elementProps, {
|
11400 | className: classnames_default()(className, classes),
|
11401 | __source: {
|
11402 | fileName: HelpBlock_jsxFileName,
|
11403 | lineNumber: 14
|
11404 | },
|
11405 | __self: this
|
11406 | }));
|
11407 | };
|
11408 |
|
11409 | return HelpBlock;
|
11410 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11411 |
|
11412 | var src_HelpBlock = (bootstrapUtils_bsClass('help-block', HelpBlock_HelpBlock));
|
11413 |
|
11414 |
|
11415 |
|
11416 |
|
11417 | var Image_jsxFileName = "/Users/jason/src/react-bootstrap/src/Image.js";
|
11418 |
|
11419 |
|
11420 |
|
11421 |
|
11422 | var Image_propTypes = {
|
11423 | |
11424 |
|
11425 |
|
11426 | responsive: prop_types_default.a.bool,
|
11427 |
|
11428 | |
11429 |
|
11430 |
|
11431 | rounded: prop_types_default.a.bool,
|
11432 |
|
11433 | |
11434 |
|
11435 |
|
11436 | circle: prop_types_default.a.bool,
|
11437 |
|
11438 | |
11439 |
|
11440 |
|
11441 | thumbnail: prop_types_default.a.bool
|
11442 | };
|
11443 | var Image_defaultProps = {
|
11444 | responsive: false,
|
11445 | rounded: false,
|
11446 | circle: false,
|
11447 | thumbnail: false
|
11448 | };
|
11449 |
|
11450 | var Image_Image =
|
11451 |
|
11452 | function (_React$Component) {
|
11453 | _inheritsLoose(Image, _React$Component);
|
11454 |
|
11455 | function Image() {
|
11456 | return _React$Component.apply(this, arguments) || this;
|
11457 | }
|
11458 |
|
11459 | var _proto = Image.prototype;
|
11460 |
|
11461 | _proto.render = function render() {
|
11462 | var _classes;
|
11463 |
|
11464 | var _this$props = this.props,
|
11465 | responsive = _this$props.responsive,
|
11466 | rounded = _this$props.rounded,
|
11467 | circle = _this$props.circle,
|
11468 | thumbnail = _this$props.thumbnail,
|
11469 | className = _this$props.className,
|
11470 | props = _objectWithoutPropertiesLoose(_this$props, ["responsive", "rounded", "circle", "thumbnail", "className"]);
|
11471 |
|
11472 | var _splitBsProps = splitBsProps(props),
|
11473 | bsProps = _splitBsProps[0],
|
11474 | elementProps = _splitBsProps[1];
|
11475 |
|
11476 | var classes = (_classes = {}, _classes[prefix(bsProps, 'responsive')] = responsive, _classes[prefix(bsProps, 'rounded')] = rounded, _classes[prefix(bsProps, 'circle')] = circle, _classes[prefix(bsProps, 'thumbnail')] = thumbnail, _classes);
|
11477 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", _extends({}, elementProps, {
|
11478 | className: classnames_default()(className, classes),
|
11479 | __source: {
|
11480 | fileName: Image_jsxFileName,
|
11481 | lineNumber: 56
|
11482 | },
|
11483 | __self: this
|
11484 | }));
|
11485 | };
|
11486 |
|
11487 | return Image;
|
11488 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11489 |
|
11490 | Image_Image.propTypes = Image_propTypes;
|
11491 | Image_Image.defaultProps = Image_defaultProps;
|
11492 | var src_Image = (bootstrapUtils_bsClass('img', Image_Image));
|
11493 |
|
11494 |
|
11495 |
|
11496 |
|
11497 | var InputGroupAddon_jsxFileName = "/Users/jason/src/react-bootstrap/src/InputGroupAddon.js";
|
11498 |
|
11499 |
|
11500 |
|
11501 |
|
11502 | var InputGroupAddon_InputGroupAddon =
|
11503 |
|
11504 | function (_React$Component) {
|
11505 | _inheritsLoose(InputGroupAddon, _React$Component);
|
11506 |
|
11507 | function InputGroupAddon() {
|
11508 | return _React$Component.apply(this, arguments) || this;
|
11509 | }
|
11510 |
|
11511 | var _proto = InputGroupAddon.prototype;
|
11512 |
|
11513 | _proto.render = function render() {
|
11514 | var _this$props = this.props,
|
11515 | className = _this$props.className,
|
11516 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
11517 |
|
11518 | var _splitBsProps = splitBsProps(props),
|
11519 | bsProps = _splitBsProps[0],
|
11520 | elementProps = _splitBsProps[1];
|
11521 |
|
11522 | var classes = getClassSet(bsProps);
|
11523 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", _extends({}, elementProps, {
|
11524 | className: classnames_default()(className, classes),
|
11525 | __source: {
|
11526 | fileName: InputGroupAddon_jsxFileName,
|
11527 | lineNumber: 14
|
11528 | },
|
11529 | __self: this
|
11530 | }));
|
11531 | };
|
11532 |
|
11533 | return InputGroupAddon;
|
11534 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11535 |
|
11536 | var src_InputGroupAddon = (bootstrapUtils_bsClass('input-group-addon', InputGroupAddon_InputGroupAddon));
|
11537 |
|
11538 |
|
11539 |
|
11540 |
|
11541 | var InputGroupButton_jsxFileName = "/Users/jason/src/react-bootstrap/src/InputGroupButton.js";
|
11542 |
|
11543 |
|
11544 |
|
11545 |
|
11546 | var InputGroupButton_InputGroupButton =
|
11547 |
|
11548 | function (_React$Component) {
|
11549 | _inheritsLoose(InputGroupButton, _React$Component);
|
11550 |
|
11551 | function InputGroupButton() {
|
11552 | return _React$Component.apply(this, arguments) || this;
|
11553 | }
|
11554 |
|
11555 | var _proto = InputGroupButton.prototype;
|
11556 |
|
11557 | _proto.render = function render() {
|
11558 | var _this$props = this.props,
|
11559 | className = _this$props.className,
|
11560 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
11561 |
|
11562 | var _splitBsProps = splitBsProps(props),
|
11563 | bsProps = _splitBsProps[0],
|
11564 | elementProps = _splitBsProps[1];
|
11565 |
|
11566 | var classes = getClassSet(bsProps);
|
11567 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", _extends({}, elementProps, {
|
11568 | className: classnames_default()(className, classes),
|
11569 | __source: {
|
11570 | fileName: InputGroupButton_jsxFileName,
|
11571 | lineNumber: 14
|
11572 | },
|
11573 | __self: this
|
11574 | }));
|
11575 | };
|
11576 |
|
11577 | return InputGroupButton;
|
11578 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11579 |
|
11580 | var src_InputGroupButton = (bootstrapUtils_bsClass('input-group-btn', InputGroupButton_InputGroupButton));
|
11581 |
|
11582 |
|
11583 |
|
11584 |
|
11585 | var InputGroup_jsxFileName = "/Users/jason/src/react-bootstrap/src/InputGroup.js";
|
11586 |
|
11587 |
|
11588 |
|
11589 |
|
11590 |
|
11591 |
|
11592 |
|
11593 | var InputGroup_InputGroup =
|
11594 |
|
11595 | function (_React$Component) {
|
11596 | _inheritsLoose(InputGroup, _React$Component);
|
11597 |
|
11598 | function InputGroup() {
|
11599 | return _React$Component.apply(this, arguments) || this;
|
11600 | }
|
11601 |
|
11602 | var _proto = InputGroup.prototype;
|
11603 |
|
11604 | _proto.render = function render() {
|
11605 | var _this$props = this.props,
|
11606 | className = _this$props.className,
|
11607 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
11608 |
|
11609 | var _splitBsProps = splitBsProps(props),
|
11610 | bsProps = _splitBsProps[0],
|
11611 | elementProps = _splitBsProps[1];
|
11612 |
|
11613 | var classes = getClassSet(bsProps);
|
11614 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", _extends({}, elementProps, {
|
11615 | className: classnames_default()(className, classes),
|
11616 | __source: {
|
11617 | fileName: InputGroup_jsxFileName,
|
11618 | lineNumber: 22
|
11619 | },
|
11620 | __self: this
|
11621 | }));
|
11622 | };
|
11623 |
|
11624 | return InputGroup;
|
11625 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11626 |
|
11627 | InputGroup_InputGroup.Addon = src_InputGroupAddon;
|
11628 | InputGroup_InputGroup.Button = src_InputGroupButton;
|
11629 | var src_InputGroup = (bootstrapUtils_bsClass('input-group', bsSizes([Size.LARGE, Size.SMALL], InputGroup_InputGroup)));
|
11630 |
|
11631 |
|
11632 |
|
11633 |
|
11634 | var Jumbotron_jsxFileName = "/Users/jason/src/react-bootstrap/src/Jumbotron.js";
|
11635 |
|
11636 |
|
11637 |
|
11638 |
|
11639 | var Jumbotron_propTypes = {
|
11640 | componentClass: elementType_default.a
|
11641 | };
|
11642 | var Jumbotron_defaultProps = {
|
11643 | componentClass: 'div'
|
11644 | };
|
11645 |
|
11646 | var Jumbotron_Jumbotron =
|
11647 |
|
11648 | function (_React$Component) {
|
11649 | _inheritsLoose(Jumbotron, _React$Component);
|
11650 |
|
11651 | function Jumbotron() {
|
11652 | return _React$Component.apply(this, arguments) || this;
|
11653 | }
|
11654 |
|
11655 | var _proto = Jumbotron.prototype;
|
11656 |
|
11657 | _proto.render = function render() {
|
11658 | var _this$props = this.props,
|
11659 | Component = _this$props.componentClass,
|
11660 | className = _this$props.className,
|
11661 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
11662 |
|
11663 | var _splitBsProps = splitBsProps(props),
|
11664 | bsProps = _splitBsProps[0],
|
11665 | elementProps = _splitBsProps[1];
|
11666 |
|
11667 | var classes = getClassSet(bsProps);
|
11668 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
11669 | className: classnames_default()(className, classes),
|
11670 | __source: {
|
11671 | fileName: Jumbotron_jsxFileName,
|
11672 | lineNumber: 23
|
11673 | },
|
11674 | __self: this
|
11675 | }));
|
11676 | };
|
11677 |
|
11678 | return Jumbotron;
|
11679 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11680 |
|
11681 | Jumbotron_Jumbotron.propTypes = Jumbotron_propTypes;
|
11682 | Jumbotron_Jumbotron.defaultProps = Jumbotron_defaultProps;
|
11683 | var src_Jumbotron = (bootstrapUtils_bsClass('jumbotron', Jumbotron_Jumbotron));
|
11684 |
|
11685 |
|
11686 |
|
11687 |
|
11688 |
|
11689 | var Label_jsxFileName = "/Users/jason/src/react-bootstrap/src/Label.js";
|
11690 |
|
11691 |
|
11692 |
|
11693 |
|
11694 |
|
11695 | var Label_Label =
|
11696 |
|
11697 | function (_React$Component) {
|
11698 | _inheritsLoose(Label, _React$Component);
|
11699 |
|
11700 | function Label() {
|
11701 | return _React$Component.apply(this, arguments) || this;
|
11702 | }
|
11703 |
|
11704 | var _proto = Label.prototype;
|
11705 |
|
11706 | _proto.hasContent = function hasContent(children) {
|
11707 | var result = false;
|
11708 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
|
11709 | if (result) {
|
11710 | return;
|
11711 | }
|
11712 |
|
11713 | if (child || child === 0) {
|
11714 | result = true;
|
11715 | }
|
11716 | });
|
11717 | return result;
|
11718 | };
|
11719 |
|
11720 | _proto.render = function render() {
|
11721 | var _this$props = this.props,
|
11722 | className = _this$props.className,
|
11723 | children = _this$props.children,
|
11724 | props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
11725 |
|
11726 | var _splitBsProps = splitBsProps(props),
|
11727 | bsProps = _splitBsProps[0],
|
11728 | elementProps = _splitBsProps[1];
|
11729 |
|
11730 | var classes = _extends({}, getClassSet(bsProps), {
|
11731 |
|
11732 | hidden: !this.hasContent(children)
|
11733 | });
|
11734 |
|
11735 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", _extends({}, elementProps, {
|
11736 | className: classnames_default()(className, classes),
|
11737 | __source: {
|
11738 | fileName: Label_jsxFileName,
|
11739 | lineNumber: 41
|
11740 | },
|
11741 | __self: this
|
11742 | }), children);
|
11743 | };
|
11744 |
|
11745 | return Label;
|
11746 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11747 |
|
11748 | var src_Label = (bootstrapUtils_bsClass('label', bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY]), Style.DEFAULT, Label_Label)));
|
11749 |
|
11750 |
|
11751 |
|
11752 |
|
11753 |
|
11754 | var ListGroupItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/ListGroupItem.js";
|
11755 |
|
11756 |
|
11757 |
|
11758 |
|
11759 |
|
11760 | var ListGroupItem_propTypes = {
|
11761 | active: prop_types_default.a.any,
|
11762 | disabled: prop_types_default.a.any,
|
11763 | header: prop_types_default.a.node,
|
11764 | listItem: prop_types_default.a.bool,
|
11765 | onClick: prop_types_default.a.func,
|
11766 | href: prop_types_default.a.string,
|
11767 | type: prop_types_default.a.string
|
11768 | };
|
11769 | var ListGroupItem_defaultProps = {
|
11770 | listItem: false
|
11771 | };
|
11772 |
|
11773 | var ListGroupItem_ListGroupItem =
|
11774 |
|
11775 | function (_React$Component) {
|
11776 | _inheritsLoose(ListGroupItem, _React$Component);
|
11777 |
|
11778 | function ListGroupItem() {
|
11779 | return _React$Component.apply(this, arguments) || this;
|
11780 | }
|
11781 |
|
11782 | var _proto = ListGroupItem.prototype;
|
11783 |
|
11784 | _proto.renderHeader = function renderHeader(header, headingClassName) {
|
11785 | if (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(header)) {
|
11786 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(header, {
|
11787 | className: classnames_default()(header.props.className, headingClassName)
|
11788 | });
|
11789 | }
|
11790 |
|
11791 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("h4", {
|
11792 | className: headingClassName,
|
11793 | __source: {
|
11794 | fileName: ListGroupItem_jsxFileName,
|
11795 | lineNumber: 36
|
11796 | },
|
11797 | __self: this
|
11798 | }, header);
|
11799 | };
|
11800 |
|
11801 | _proto.render = function render() {
|
11802 | var _this$props = this.props,
|
11803 | active = _this$props.active,
|
11804 | disabled = _this$props.disabled,
|
11805 | className = _this$props.className,
|
11806 | header = _this$props.header,
|
11807 | listItem = _this$props.listItem,
|
11808 | children = _this$props.children,
|
11809 | props = _objectWithoutPropertiesLoose(_this$props, ["active", "disabled", "className", "header", "listItem", "children"]);
|
11810 |
|
11811 | var _splitBsProps = splitBsProps(props),
|
11812 | bsProps = _splitBsProps[0],
|
11813 | elementProps = _splitBsProps[1];
|
11814 |
|
11815 | var classes = _extends({}, getClassSet(bsProps), {
|
11816 | active: active,
|
11817 | disabled: disabled
|
11818 | });
|
11819 |
|
11820 | var Component;
|
11821 |
|
11822 | if (elementProps.href) {
|
11823 | Component = 'a';
|
11824 | } else if (elementProps.onClick) {
|
11825 | Component = 'button';
|
11826 | elementProps.type = elementProps.type || 'button';
|
11827 | } else if (listItem) {
|
11828 | Component = 'li';
|
11829 | } else {
|
11830 | Component = 'span';
|
11831 | }
|
11832 |
|
11833 | elementProps.className = classnames_default()(className, classes);
|
11834 |
|
11835 | if (header) {
|
11836 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
11837 | __source: {
|
11838 | fileName: ListGroupItem_jsxFileName,
|
11839 | lineNumber: 76
|
11840 | },
|
11841 | __self: this
|
11842 | }), this.renderHeader(header, prefix(bsProps, 'heading')), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("p", {
|
11843 | className: prefix(bsProps, 'text'),
|
11844 | __source: {
|
11845 | fileName: ListGroupItem_jsxFileName,
|
11846 | lineNumber: 79
|
11847 | },
|
11848 | __self: this
|
11849 | }, children));
|
11850 | }
|
11851 |
|
11852 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
11853 | __source: {
|
11854 | fileName: ListGroupItem_jsxFileName,
|
11855 | lineNumber: 84
|
11856 | },
|
11857 | __self: this
|
11858 | }), children);
|
11859 | };
|
11860 |
|
11861 | return ListGroupItem;
|
11862 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11863 |
|
11864 | ListGroupItem_ListGroupItem.propTypes = ListGroupItem_propTypes;
|
11865 | ListGroupItem_ListGroupItem.defaultProps = ListGroupItem_defaultProps;
|
11866 | var src_ListGroupItem = (bootstrapUtils_bsClass('list-group-item', bsStyles(values_default()(State), ListGroupItem_ListGroupItem)));
|
11867 |
|
11868 |
|
11869 |
|
11870 |
|
11871 | var ListGroup_jsxFileName = "/Users/jason/src/react-bootstrap/src/ListGroup.js";
|
11872 |
|
11873 |
|
11874 |
|
11875 |
|
11876 |
|
11877 |
|
11878 | var ListGroup_propTypes = {
|
11879 | |
11880 |
|
11881 |
|
11882 |
|
11883 |
|
11884 |
|
11885 | componentClass: elementType_default.a
|
11886 | };
|
11887 |
|
11888 | function getDefaultComponent(children) {
|
11889 | if (!children) {
|
11890 |
|
11891 | return 'div';
|
11892 | }
|
11893 |
|
11894 | if (ValidComponentChildren.some(children, function (child) {
|
11895 | return child.type !== src_ListGroupItem || child.props.href || child.props.onClick;
|
11896 | })) {
|
11897 | return 'div';
|
11898 | }
|
11899 |
|
11900 | return 'ul';
|
11901 | }
|
11902 |
|
11903 | var ListGroup_ListGroup =
|
11904 |
|
11905 | function (_React$Component) {
|
11906 | _inheritsLoose(ListGroup, _React$Component);
|
11907 |
|
11908 | function ListGroup() {
|
11909 | return _React$Component.apply(this, arguments) || this;
|
11910 | }
|
11911 |
|
11912 | var _proto = ListGroup.prototype;
|
11913 |
|
11914 | _proto.render = function render() {
|
11915 | var _this$props = this.props,
|
11916 | children = _this$props.children,
|
11917 | _this$props$component = _this$props.componentClass,
|
11918 | Component = _this$props$component === void 0 ? getDefaultComponent(children) : _this$props$component,
|
11919 | className = _this$props.className,
|
11920 | props = _objectWithoutPropertiesLoose(_this$props, ["children", "componentClass", "className"]);
|
11921 |
|
11922 | var _splitBsProps = splitBsProps(props),
|
11923 | bsProps = _splitBsProps[0],
|
11924 | elementProps = _splitBsProps[1];
|
11925 |
|
11926 | var classes = getClassSet(bsProps);
|
11927 | var useListItem = Component === 'ul' && ValidComponentChildren.every(children, function (child) {
|
11928 | return child.type === src_ListGroupItem;
|
11929 | });
|
11930 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
11931 | className: classnames_default()(className, classes),
|
11932 | __source: {
|
11933 | fileName: ListGroup_jsxFileName,
|
11934 | lineNumber: 59
|
11935 | },
|
11936 | __self: this
|
11937 | }), useListItem ? ValidComponentChildren.map(children, function (child) {
|
11938 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, {
|
11939 | listItem: true
|
11940 | });
|
11941 | }) : children);
|
11942 | };
|
11943 |
|
11944 | return ListGroup;
|
11945 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
11946 |
|
11947 | ListGroup_ListGroup.propTypes = ListGroup_propTypes;
|
11948 | var src_ListGroup = (bootstrapUtils_bsClass('list-group', ListGroup_ListGroup));
|
11949 |
|
11950 |
|
11951 |
|
11952 |
|
11953 | var MediaBody_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaBody.js";
|
11954 |
|
11955 |
|
11956 |
|
11957 |
|
11958 |
|
11959 |
|
11960 | var MediaBody_propTypes = {
|
11961 | |
11962 |
|
11963 |
|
11964 | align: prop_types_default.a.oneOf(['top', 'middle', 'bottom']),
|
11965 | componentClass: elementType_default.a
|
11966 | };
|
11967 | var MediaBody_defaultProps = {
|
11968 | componentClass: 'div'
|
11969 | };
|
11970 |
|
11971 | var MediaBody_MediaBody =
|
11972 |
|
11973 | function (_React$Component) {
|
11974 | _inheritsLoose(MediaBody, _React$Component);
|
11975 |
|
11976 | function MediaBody() {
|
11977 | return _React$Component.apply(this, arguments) || this;
|
11978 | }
|
11979 |
|
11980 | var _proto = MediaBody.prototype;
|
11981 |
|
11982 | _proto.render = function render() {
|
11983 | var _this$props = this.props,
|
11984 | Component = _this$props.componentClass,
|
11985 | align = _this$props.align,
|
11986 | className = _this$props.className,
|
11987 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "align", "className"]);
|
11988 |
|
11989 | var _splitBsProps = splitBsProps(props),
|
11990 | bsProps = _splitBsProps[0],
|
11991 | elementProps = _splitBsProps[1];
|
11992 |
|
11993 | var classes = getClassSet(bsProps);
|
11994 |
|
11995 | if (align) {
|
11996 |
|
11997 | classes[prefix(src_Media.defaultProps, align)] = true;
|
11998 | }
|
11999 |
|
12000 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
12001 | className: classnames_default()(className, classes),
|
12002 | __source: {
|
12003 | fileName: MediaBody_jsxFileName,
|
12004 | lineNumber: 45
|
12005 | },
|
12006 | __self: this
|
12007 | }));
|
12008 | };
|
12009 |
|
12010 | return MediaBody;
|
12011 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12012 |
|
12013 | MediaBody_MediaBody.propTypes = MediaBody_propTypes;
|
12014 | MediaBody_MediaBody.defaultProps = MediaBody_defaultProps;
|
12015 | var src_MediaBody = (bootstrapUtils_bsClass('media-body', MediaBody_MediaBody));
|
12016 |
|
12017 |
|
12018 |
|
12019 |
|
12020 | var MediaHeading_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaHeading.js";
|
12021 |
|
12022 |
|
12023 |
|
12024 |
|
12025 | var MediaHeading_propTypes = {
|
12026 | componentClass: elementType_default.a
|
12027 | };
|
12028 | var MediaHeading_defaultProps = {
|
12029 | componentClass: 'h4'
|
12030 | };
|
12031 |
|
12032 | var MediaHeading_MediaHeading =
|
12033 |
|
12034 | function (_React$Component) {
|
12035 | _inheritsLoose(MediaHeading, _React$Component);
|
12036 |
|
12037 | function MediaHeading() {
|
12038 | return _React$Component.apply(this, arguments) || this;
|
12039 | }
|
12040 |
|
12041 | var _proto = MediaHeading.prototype;
|
12042 |
|
12043 | _proto.render = function render() {
|
12044 | var _this$props = this.props,
|
12045 | Component = _this$props.componentClass,
|
12046 | className = _this$props.className,
|
12047 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
12048 |
|
12049 | var _splitBsProps = splitBsProps(props),
|
12050 | bsProps = _splitBsProps[0],
|
12051 | elementProps = _splitBsProps[1];
|
12052 |
|
12053 | var classes = getClassSet(bsProps);
|
12054 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
12055 | className: classnames_default()(className, classes),
|
12056 | __source: {
|
12057 | fileName: MediaHeading_jsxFileName,
|
12058 | lineNumber: 23
|
12059 | },
|
12060 | __self: this
|
12061 | }));
|
12062 | };
|
12063 |
|
12064 | return MediaHeading;
|
12065 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12066 |
|
12067 | MediaHeading_MediaHeading.propTypes = MediaHeading_propTypes;
|
12068 | MediaHeading_MediaHeading.defaultProps = MediaHeading_defaultProps;
|
12069 | var src_MediaHeading = (bootstrapUtils_bsClass('media-heading', MediaHeading_MediaHeading));
|
12070 |
|
12071 |
|
12072 |
|
12073 |
|
12074 | var MediaLeft_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaLeft.js";
|
12075 |
|
12076 |
|
12077 |
|
12078 |
|
12079 |
|
12080 | var MediaLeft_propTypes = {
|
12081 | |
12082 |
|
12083 |
|
12084 | align: prop_types_default.a.oneOf(['top', 'middle', 'bottom'])
|
12085 | };
|
12086 |
|
12087 | var MediaLeft_MediaLeft =
|
12088 |
|
12089 | function (_React$Component) {
|
12090 | _inheritsLoose(MediaLeft, _React$Component);
|
12091 |
|
12092 | function MediaLeft() {
|
12093 | return _React$Component.apply(this, arguments) || this;
|
12094 | }
|
12095 |
|
12096 | var _proto = MediaLeft.prototype;
|
12097 |
|
12098 | _proto.render = function render() {
|
12099 | var _this$props = this.props,
|
12100 | align = _this$props.align,
|
12101 | className = _this$props.className,
|
12102 | props = _objectWithoutPropertiesLoose(_this$props, ["align", "className"]);
|
12103 |
|
12104 | var _splitBsProps = splitBsProps(props),
|
12105 | bsProps = _splitBsProps[0],
|
12106 | elementProps = _splitBsProps[1];
|
12107 |
|
12108 | var classes = getClassSet(bsProps);
|
12109 |
|
12110 | if (align) {
|
12111 |
|
12112 | classes[prefix(src_Media.defaultProps, align)] = true;
|
12113 | }
|
12114 |
|
12115 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
12116 | className: classnames_default()(className, classes),
|
12117 | __source: {
|
12118 | fileName: MediaLeft_jsxFileName,
|
12119 | lineNumber: 32
|
12120 | },
|
12121 | __self: this
|
12122 | }));
|
12123 | };
|
12124 |
|
12125 | return MediaLeft;
|
12126 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12127 |
|
12128 | MediaLeft_MediaLeft.propTypes = MediaLeft_propTypes;
|
12129 | var src_MediaLeft = (bootstrapUtils_bsClass('media-left', MediaLeft_MediaLeft));
|
12130 |
|
12131 |
|
12132 |
|
12133 |
|
12134 | var MediaList_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaList.js";
|
12135 |
|
12136 |
|
12137 |
|
12138 |
|
12139 | var MediaList_MediaList =
|
12140 |
|
12141 | function (_React$Component) {
|
12142 | _inheritsLoose(MediaList, _React$Component);
|
12143 |
|
12144 | function MediaList() {
|
12145 | return _React$Component.apply(this, arguments) || this;
|
12146 | }
|
12147 |
|
12148 | var _proto = MediaList.prototype;
|
12149 |
|
12150 | _proto.render = function render() {
|
12151 | var _this$props = this.props,
|
12152 | className = _this$props.className,
|
12153 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
12154 |
|
12155 | var _splitBsProps = splitBsProps(props),
|
12156 | bsProps = _splitBsProps[0],
|
12157 | elementProps = _splitBsProps[1];
|
12158 |
|
12159 | var classes = getClassSet(bsProps);
|
12160 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", _extends({}, elementProps, {
|
12161 | className: classnames_default()(className, classes),
|
12162 | __source: {
|
12163 | fileName: MediaList_jsxFileName,
|
12164 | lineNumber: 13
|
12165 | },
|
12166 | __self: this
|
12167 | }));
|
12168 | };
|
12169 |
|
12170 | return MediaList;
|
12171 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12172 |
|
12173 | var src_MediaList = (bootstrapUtils_bsClass('media-list', MediaList_MediaList));
|
12174 |
|
12175 |
|
12176 |
|
12177 |
|
12178 | var MediaListItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaListItem.js";
|
12179 |
|
12180 |
|
12181 |
|
12182 |
|
12183 | var MediaListItem_MediaListItem =
|
12184 |
|
12185 | function (_React$Component) {
|
12186 | _inheritsLoose(MediaListItem, _React$Component);
|
12187 |
|
12188 | function MediaListItem() {
|
12189 | return _React$Component.apply(this, arguments) || this;
|
12190 | }
|
12191 |
|
12192 | var _proto = MediaListItem.prototype;
|
12193 |
|
12194 | _proto.render = function render() {
|
12195 | var _this$props = this.props,
|
12196 | className = _this$props.className,
|
12197 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
12198 |
|
12199 | var _splitBsProps = splitBsProps(props),
|
12200 | bsProps = _splitBsProps[0],
|
12201 | elementProps = _splitBsProps[1];
|
12202 |
|
12203 | var classes = getClassSet(bsProps);
|
12204 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", _extends({}, elementProps, {
|
12205 | className: classnames_default()(className, classes),
|
12206 | __source: {
|
12207 | fileName: MediaListItem_jsxFileName,
|
12208 | lineNumber: 13
|
12209 | },
|
12210 | __self: this
|
12211 | }));
|
12212 | };
|
12213 |
|
12214 | return MediaListItem;
|
12215 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12216 |
|
12217 | var src_MediaListItem = (bootstrapUtils_bsClass('media', MediaListItem_MediaListItem));
|
12218 |
|
12219 |
|
12220 |
|
12221 |
|
12222 | var MediaRight_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaRight.js";
|
12223 |
|
12224 |
|
12225 |
|
12226 |
|
12227 |
|
12228 | var MediaRight_propTypes = {
|
12229 | |
12230 |
|
12231 |
|
12232 | align: prop_types_default.a.oneOf(['top', 'middle', 'bottom'])
|
12233 | };
|
12234 |
|
12235 | var MediaRight_MediaRight =
|
12236 |
|
12237 | function (_React$Component) {
|
12238 | _inheritsLoose(MediaRight, _React$Component);
|
12239 |
|
12240 | function MediaRight() {
|
12241 | return _React$Component.apply(this, arguments) || this;
|
12242 | }
|
12243 |
|
12244 | var _proto = MediaRight.prototype;
|
12245 |
|
12246 | _proto.render = function render() {
|
12247 | var _this$props = this.props,
|
12248 | align = _this$props.align,
|
12249 | className = _this$props.className,
|
12250 | props = _objectWithoutPropertiesLoose(_this$props, ["align", "className"]);
|
12251 |
|
12252 | var _splitBsProps = splitBsProps(props),
|
12253 | bsProps = _splitBsProps[0],
|
12254 | elementProps = _splitBsProps[1];
|
12255 |
|
12256 | var classes = getClassSet(bsProps);
|
12257 |
|
12258 | if (align) {
|
12259 |
|
12260 | classes[prefix(src_Media.defaultProps, align)] = true;
|
12261 | }
|
12262 |
|
12263 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
12264 | className: classnames_default()(className, classes),
|
12265 | __source: {
|
12266 | fileName: MediaRight_jsxFileName,
|
12267 | lineNumber: 32
|
12268 | },
|
12269 | __self: this
|
12270 | }));
|
12271 | };
|
12272 |
|
12273 | return MediaRight;
|
12274 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12275 |
|
12276 | MediaRight_MediaRight.propTypes = MediaRight_propTypes;
|
12277 | var src_MediaRight = (bootstrapUtils_bsClass('media-right', MediaRight_MediaRight));
|
12278 |
|
12279 |
|
12280 |
|
12281 |
|
12282 | var Media_jsxFileName = "/Users/jason/src/react-bootstrap/src/Media.js";
|
12283 |
|
12284 |
|
12285 |
|
12286 |
|
12287 |
|
12288 |
|
12289 |
|
12290 |
|
12291 |
|
12292 |
|
12293 | var Media_propTypes = {
|
12294 | componentClass: elementType_default.a
|
12295 | };
|
12296 | var Media_defaultProps = {
|
12297 | componentClass: 'div'
|
12298 | };
|
12299 |
|
12300 | var Media_Media =
|
12301 |
|
12302 | function (_React$Component) {
|
12303 | _inheritsLoose(Media, _React$Component);
|
12304 |
|
12305 | function Media() {
|
12306 | return _React$Component.apply(this, arguments) || this;
|
12307 | }
|
12308 |
|
12309 | var _proto = Media.prototype;
|
12310 |
|
12311 | _proto.render = function render() {
|
12312 | var _this$props = this.props,
|
12313 | Component = _this$props.componentClass,
|
12314 | className = _this$props.className,
|
12315 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
12316 |
|
12317 | var _splitBsProps = splitBsProps(props),
|
12318 | bsProps = _splitBsProps[0],
|
12319 | elementProps = _splitBsProps[1];
|
12320 |
|
12321 | var classes = getClassSet(bsProps);
|
12322 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
12323 | className: classnames_default()(className, classes),
|
12324 | __source: {
|
12325 | fileName: Media_jsxFileName,
|
12326 | lineNumber: 29
|
12327 | },
|
12328 | __self: this
|
12329 | }));
|
12330 | };
|
12331 |
|
12332 | return Media;
|
12333 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12334 |
|
12335 | Media_Media.propTypes = Media_propTypes;
|
12336 | Media_Media.defaultProps = Media_defaultProps;
|
12337 | Media_Media.Heading = src_MediaHeading;
|
12338 | Media_Media.Body = src_MediaBody;
|
12339 | Media_Media.Left = src_MediaLeft;
|
12340 | Media_Media.Right = src_MediaRight;
|
12341 | Media_Media.List = src_MediaList;
|
12342 | Media_Media.ListItem = src_MediaListItem;
|
12343 | var src_Media = (bootstrapUtils_bsClass('media', Media_Media));
|
12344 |
|
12345 |
|
12346 |
|
12347 |
|
12348 |
|
12349 | var MenuItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/MenuItem.js";
|
12350 |
|
12351 |
|
12352 |
|
12353 |
|
12354 |
|
12355 |
|
12356 |
|
12357 | var MenuItem_propTypes = {
|
12358 | |
12359 |
|
12360 |
|
12361 | active: prop_types_default.a.bool,
|
12362 |
|
12363 | |
12364 |
|
12365 |
|
12366 | disabled: prop_types_default.a.bool,
|
12367 |
|
12368 | |
12369 |
|
12370 |
|
12371 |
|
12372 | divider: all_default()(prop_types_default.a.bool, function (_ref) {
|
12373 | var divider = _ref.divider,
|
12374 | children = _ref.children;
|
12375 | return divider && children ? new Error('Children will not be rendered for dividers') : null;
|
12376 | }),
|
12377 |
|
12378 | |
12379 |
|
12380 |
|
12381 | eventKey: prop_types_default.a.any,
|
12382 |
|
12383 | |
12384 |
|
12385 |
|
12386 | header: prop_types_default.a.bool,
|
12387 |
|
12388 | |
12389 |
|
12390 |
|
12391 | href: prop_types_default.a.string,
|
12392 |
|
12393 | |
12394 |
|
12395 |
|
12396 | onClick: prop_types_default.a.func,
|
12397 |
|
12398 | |
12399 |
|
12400 |
|
12401 |
|
12402 |
|
12403 |
|
12404 |
|
12405 | onSelect: prop_types_default.a.func
|
12406 | };
|
12407 | var MenuItem_defaultProps = {
|
12408 | divider: false,
|
12409 | disabled: false,
|
12410 | header: false
|
12411 | };
|
12412 |
|
12413 | var MenuItem_MenuItem =
|
12414 |
|
12415 | function (_React$Component) {
|
12416 | _inheritsLoose(MenuItem, _React$Component);
|
12417 |
|
12418 | function MenuItem(props, context) {
|
12419 | var _this;
|
12420 |
|
12421 | _this = _React$Component.call(this, props, context) || this;
|
12422 | _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
12423 | return _this;
|
12424 | }
|
12425 |
|
12426 | var _proto = MenuItem.prototype;
|
12427 |
|
12428 | _proto.handleClick = function handleClick(event) {
|
12429 | var _this$props = this.props,
|
12430 | href = _this$props.href,
|
12431 | disabled = _this$props.disabled,
|
12432 | onSelect = _this$props.onSelect,
|
12433 | eventKey = _this$props.eventKey;
|
12434 |
|
12435 | if (!href || disabled) {
|
12436 | event.preventDefault();
|
12437 | }
|
12438 |
|
12439 | if (disabled) {
|
12440 | return;
|
12441 | }
|
12442 |
|
12443 | if (onSelect) {
|
12444 | onSelect(eventKey, event);
|
12445 | }
|
12446 | };
|
12447 |
|
12448 | _proto.render = function render() {
|
12449 | var _this$props2 = this.props,
|
12450 | active = _this$props2.active,
|
12451 | disabled = _this$props2.disabled,
|
12452 | divider = _this$props2.divider,
|
12453 | header = _this$props2.header,
|
12454 | onClick = _this$props2.onClick,
|
12455 | className = _this$props2.className,
|
12456 | style = _this$props2.style,
|
12457 | props = _objectWithoutPropertiesLoose(_this$props2, ["active", "disabled", "divider", "header", "onClick", "className", "style"]);
|
12458 |
|
12459 | var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['eventKey', 'onSelect']),
|
12460 | bsProps = _splitBsPropsAndOmit[0],
|
12461 | elementProps = _splitBsPropsAndOmit[1];
|
12462 |
|
12463 | if (divider) {
|
12464 |
|
12465 | elementProps.children = undefined;
|
12466 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", _extends({}, elementProps, {
|
12467 | role: "separator",
|
12468 | className: classnames_default()(className, 'divider'),
|
12469 | style: style,
|
12470 | __source: {
|
12471 | fileName: MenuItem_jsxFileName,
|
12472 | lineNumber: 114
|
12473 | },
|
12474 | __self: this
|
12475 | }));
|
12476 | }
|
12477 |
|
12478 | if (header) {
|
12479 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", _extends({}, elementProps, {
|
12480 | role: "heading",
|
12481 | className: classnames_default()(className, prefix(bsProps, 'header')),
|
12482 | style: style,
|
12483 | __source: {
|
12484 | fileName: MenuItem_jsxFileName,
|
12485 | lineNumber: 125
|
12486 | },
|
12487 | __self: this
|
12488 | }));
|
12489 | }
|
12490 |
|
12491 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", {
|
12492 | role: "presentation",
|
12493 | className: classnames_default()(className, {
|
12494 | active: active,
|
12495 | disabled: disabled
|
12496 | }),
|
12497 | style: style,
|
12498 | __source: {
|
12499 | fileName: MenuItem_jsxFileName,
|
12500 | lineNumber: 135
|
12501 | },
|
12502 | __self: this
|
12503 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_SafeAnchor, _extends({}, elementProps, {
|
12504 | role: "menuitem",
|
12505 | tabIndex: "-1",
|
12506 | onClick: utils_createChainedFunction(onClick, this.handleClick),
|
12507 | __source: {
|
12508 | fileName: MenuItem_jsxFileName,
|
12509 | lineNumber: 140
|
12510 | },
|
12511 | __self: this
|
12512 | })));
|
12513 | };
|
12514 |
|
12515 | return MenuItem;
|
12516 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12517 |
|
12518 | MenuItem_MenuItem.propTypes = MenuItem_propTypes;
|
12519 | MenuItem_MenuItem.defaultProps = MenuItem_defaultProps;
|
12520 | var src_MenuItem = (bootstrapUtils_bsClass('dropdown', MenuItem_MenuItem));
|
12521 |
|
12522 | var events = __webpack_require__(54);
|
12523 | var events_default = __webpack_require__.n(events);
|
12524 |
|
12525 |
|
12526 | var ownerDocument = __webpack_require__(17);
|
12527 | var ownerDocument_default = __webpack_require__.n(ownerDocument);
|
12528 |
|
12529 |
|
12530 | var inDOM = __webpack_require__(12);
|
12531 | var inDOM_default = __webpack_require__.n(inDOM);
|
12532 |
|
12533 |
|
12534 | var scrollbarSize = __webpack_require__(39);
|
12535 | var scrollbarSize_default = __webpack_require__.n(scrollbarSize);
|
12536 |
|
12537 |
|
12538 | var lib_Modal = __webpack_require__(24);
|
12539 | var Modal_default = __webpack_require__.n(lib_Modal);
|
12540 |
|
12541 |
|
12542 | var isOverflowing = __webpack_require__(52);
|
12543 | var isOverflowing_default = __webpack_require__.n(isOverflowing);
|
12544 |
|
12545 |
|
12546 |
|
12547 |
|
12548 |
|
12549 | var ModalBody_jsxFileName = "/Users/jason/src/react-bootstrap/src/ModalBody.js";
|
12550 |
|
12551 |
|
12552 |
|
12553 |
|
12554 | var ModalBody_propTypes = {
|
12555 | componentClass: elementType_default.a
|
12556 | };
|
12557 | var ModalBody_defaultProps = {
|
12558 | componentClass: 'div'
|
12559 | };
|
12560 |
|
12561 | var ModalBody_ModalBody =
|
12562 |
|
12563 | function (_React$Component) {
|
12564 | _inheritsLoose(ModalBody, _React$Component);
|
12565 |
|
12566 | function ModalBody() {
|
12567 | return _React$Component.apply(this, arguments) || this;
|
12568 | }
|
12569 |
|
12570 | var _proto = ModalBody.prototype;
|
12571 |
|
12572 | _proto.render = function render() {
|
12573 | var _this$props = this.props,
|
12574 | Component = _this$props.componentClass,
|
12575 | className = _this$props.className,
|
12576 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
12577 |
|
12578 | var _splitBsProps = splitBsProps(props),
|
12579 | bsProps = _splitBsProps[0],
|
12580 | elementProps = _splitBsProps[1];
|
12581 |
|
12582 | var classes = getClassSet(bsProps);
|
12583 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
12584 | className: classnames_default()(className, classes),
|
12585 | __source: {
|
12586 | fileName: ModalBody_jsxFileName,
|
12587 | lineNumber: 23
|
12588 | },
|
12589 | __self: this
|
12590 | }));
|
12591 | };
|
12592 |
|
12593 | return ModalBody;
|
12594 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12595 |
|
12596 | ModalBody_ModalBody.propTypes = ModalBody_propTypes;
|
12597 | ModalBody_ModalBody.defaultProps = ModalBody_defaultProps;
|
12598 | var src_ModalBody = (bootstrapUtils_bsClass('modal-body', ModalBody_ModalBody));
|
12599 |
|
12600 |
|
12601 |
|
12602 |
|
12603 | var ModalDialog_jsxFileName = "/Users/jason/src/react-bootstrap/src/ModalDialog.js";
|
12604 |
|
12605 |
|
12606 |
|
12607 |
|
12608 |
|
12609 | var ModalDialog_propTypes = {
|
12610 | |
12611 |
|
12612 |
|
12613 | dialogClassName: prop_types_default.a.string
|
12614 | };
|
12615 |
|
12616 | var ModalDialog_ModalDialog =
|
12617 |
|
12618 | function (_React$Component) {
|
12619 | _inheritsLoose(ModalDialog, _React$Component);
|
12620 |
|
12621 | function ModalDialog() {
|
12622 | return _React$Component.apply(this, arguments) || this;
|
12623 | }
|
12624 |
|
12625 | var _proto = ModalDialog.prototype;
|
12626 |
|
12627 | _proto.render = function render() {
|
12628 | var _extends2;
|
12629 |
|
12630 | var _this$props = this.props,
|
12631 | dialogClassName = _this$props.dialogClassName,
|
12632 | className = _this$props.className,
|
12633 | style = _this$props.style,
|
12634 | children = _this$props.children,
|
12635 | props = _objectWithoutPropertiesLoose(_this$props, ["dialogClassName", "className", "style", "children"]);
|
12636 |
|
12637 | var _splitBsProps = splitBsProps(props),
|
12638 | bsProps = _splitBsProps[0],
|
12639 | elementProps = _splitBsProps[1];
|
12640 |
|
12641 | var bsClassName = prefix(bsProps);
|
12642 |
|
12643 | var modalStyle = _extends({
|
12644 | display: 'block'
|
12645 | }, style);
|
12646 |
|
12647 | var dialogClasses = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[bsClassName] = false, _extends2[prefix(bsProps, 'dialog')] = true, _extends2));
|
12648 |
|
12649 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
12650 | tabIndex: "-1",
|
12651 | role: "dialog",
|
12652 | style: modalStyle,
|
12653 | className: classnames_default()(className, bsClassName),
|
12654 | __source: {
|
12655 | fileName: ModalDialog_jsxFileName,
|
12656 | lineNumber: 43
|
12657 | },
|
12658 | __self: this
|
12659 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
12660 | className: classnames_default()(dialogClassName, dialogClasses),
|
12661 | __source: {
|
12662 | fileName: ModalDialog_jsxFileName,
|
12663 | lineNumber: 50
|
12664 | },
|
12665 | __self: this
|
12666 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
12667 | className: prefix(bsProps, 'content'),
|
12668 | role: "document",
|
12669 | __source: {
|
12670 | fileName: ModalDialog_jsxFileName,
|
12671 | lineNumber: 51
|
12672 | },
|
12673 | __self: this
|
12674 | }, children)));
|
12675 | };
|
12676 |
|
12677 | return ModalDialog;
|
12678 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12679 |
|
12680 | ModalDialog_ModalDialog.propTypes = ModalDialog_propTypes;
|
12681 | var src_ModalDialog = (bootstrapUtils_bsClass('modal', bsSizes([Size.LARGE, Size.SMALL], ModalDialog_ModalDialog)));
|
12682 |
|
12683 |
|
12684 |
|
12685 |
|
12686 | var ModalFooter_jsxFileName = "/Users/jason/src/react-bootstrap/src/ModalFooter.js";
|
12687 |
|
12688 |
|
12689 |
|
12690 |
|
12691 | var ModalFooter_propTypes = {
|
12692 | componentClass: elementType_default.a
|
12693 | };
|
12694 | var ModalFooter_defaultProps = {
|
12695 | componentClass: 'div'
|
12696 | };
|
12697 |
|
12698 | var ModalFooter_ModalFooter =
|
12699 |
|
12700 | function (_React$Component) {
|
12701 | _inheritsLoose(ModalFooter, _React$Component);
|
12702 |
|
12703 | function ModalFooter() {
|
12704 | return _React$Component.apply(this, arguments) || this;
|
12705 | }
|
12706 |
|
12707 | var _proto = ModalFooter.prototype;
|
12708 |
|
12709 | _proto.render = function render() {
|
12710 | var _this$props = this.props,
|
12711 | Component = _this$props.componentClass,
|
12712 | className = _this$props.className,
|
12713 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
12714 |
|
12715 | var _splitBsProps = splitBsProps(props),
|
12716 | bsProps = _splitBsProps[0],
|
12717 | elementProps = _splitBsProps[1];
|
12718 |
|
12719 | var classes = getClassSet(bsProps);
|
12720 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
12721 | className: classnames_default()(className, classes),
|
12722 | __source: {
|
12723 | fileName: ModalFooter_jsxFileName,
|
12724 | lineNumber: 23
|
12725 | },
|
12726 | __self: this
|
12727 | }));
|
12728 | };
|
12729 |
|
12730 | return ModalFooter;
|
12731 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12732 |
|
12733 | ModalFooter_ModalFooter.propTypes = ModalFooter_propTypes;
|
12734 | ModalFooter_ModalFooter.defaultProps = ModalFooter_defaultProps;
|
12735 | var src_ModalFooter = (bootstrapUtils_bsClass('modal-footer', ModalFooter_ModalFooter));
|
12736 |
|
12737 |
|
12738 |
|
12739 |
|
12740 | var ModalHeader_jsxFileName = "/Users/jason/src/react-bootstrap/src/ModalHeader.js";
|
12741 |
|
12742 |
|
12743 |
|
12744 |
|
12745 |
|
12746 |
|
12747 |
|
12748 | var ModalHeader_propTypes = {
|
12749 | |
12750 |
|
12751 |
|
12752 |
|
12753 |
|
12754 | closeLabel: prop_types_default.a.string,
|
12755 |
|
12756 | |
12757 |
|
12758 |
|
12759 | closeButton: prop_types_default.a.bool,
|
12760 |
|
12761 | |
12762 |
|
12763 |
|
12764 |
|
12765 |
|
12766 | onHide: prop_types_default.a.func
|
12767 | };
|
12768 | var ModalHeader_defaultProps = {
|
12769 | closeLabel: 'Close',
|
12770 | closeButton: false
|
12771 | };
|
12772 | var ModalHeader_contextTypes = {
|
12773 | $bs_modal: prop_types_default.a.shape({
|
12774 | onHide: prop_types_default.a.func
|
12775 | })
|
12776 | };
|
12777 |
|
12778 | var ModalHeader_ModalHeader =
|
12779 |
|
12780 | function (_React$Component) {
|
12781 | _inheritsLoose(ModalHeader, _React$Component);
|
12782 |
|
12783 | function ModalHeader() {
|
12784 | return _React$Component.apply(this, arguments) || this;
|
12785 | }
|
12786 |
|
12787 | var _proto = ModalHeader.prototype;
|
12788 |
|
12789 | _proto.render = function render() {
|
12790 | var _this$props = this.props,
|
12791 | closeLabel = _this$props.closeLabel,
|
12792 | closeButton = _this$props.closeButton,
|
12793 | onHide = _this$props.onHide,
|
12794 | className = _this$props.className,
|
12795 | children = _this$props.children,
|
12796 | props = _objectWithoutPropertiesLoose(_this$props, ["closeLabel", "closeButton", "onHide", "className", "children"]);
|
12797 |
|
12798 | var modal = this.context.$bs_modal;
|
12799 |
|
12800 | var _splitBsProps = splitBsProps(props),
|
12801 | bsProps = _splitBsProps[0],
|
12802 | elementProps = _splitBsProps[1];
|
12803 |
|
12804 | var classes = getClassSet(bsProps);
|
12805 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
12806 | className: classnames_default()(className, classes),
|
12807 | __source: {
|
12808 | fileName: ModalHeader_jsxFileName,
|
12809 | lineNumber: 61
|
12810 | },
|
12811 | __self: this
|
12812 | }), closeButton && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_CloseButton, {
|
12813 | label: closeLabel,
|
12814 | onClick: utils_createChainedFunction(modal && modal.onHide, onHide),
|
12815 | __source: {
|
12816 | fileName: ModalHeader_jsxFileName,
|
12817 | lineNumber: 63
|
12818 | },
|
12819 | __self: this
|
12820 | }), children);
|
12821 | };
|
12822 |
|
12823 | return ModalHeader;
|
12824 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12825 |
|
12826 | ModalHeader_ModalHeader.propTypes = ModalHeader_propTypes;
|
12827 | ModalHeader_ModalHeader.defaultProps = ModalHeader_defaultProps;
|
12828 | ModalHeader_ModalHeader.contextTypes = ModalHeader_contextTypes;
|
12829 | var src_ModalHeader = (bootstrapUtils_bsClass('modal-header', ModalHeader_ModalHeader));
|
12830 |
|
12831 |
|
12832 |
|
12833 |
|
12834 | var ModalTitle_jsxFileName = "/Users/jason/src/react-bootstrap/src/ModalTitle.js";
|
12835 |
|
12836 |
|
12837 |
|
12838 |
|
12839 | var ModalTitle_propTypes = {
|
12840 | componentClass: elementType_default.a
|
12841 | };
|
12842 | var ModalTitle_defaultProps = {
|
12843 | componentClass: 'h4'
|
12844 | };
|
12845 |
|
12846 | var ModalTitle_ModalTitle =
|
12847 |
|
12848 | function (_React$Component) {
|
12849 | _inheritsLoose(ModalTitle, _React$Component);
|
12850 |
|
12851 | function ModalTitle() {
|
12852 | return _React$Component.apply(this, arguments) || this;
|
12853 | }
|
12854 |
|
12855 | var _proto = ModalTitle.prototype;
|
12856 |
|
12857 | _proto.render = function render() {
|
12858 | var _this$props = this.props,
|
12859 | Component = _this$props.componentClass,
|
12860 | className = _this$props.className,
|
12861 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
12862 |
|
12863 | var _splitBsProps = splitBsProps(props),
|
12864 | bsProps = _splitBsProps[0],
|
12865 | elementProps = _splitBsProps[1];
|
12866 |
|
12867 | var classes = getClassSet(bsProps);
|
12868 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
12869 | className: classnames_default()(className, classes),
|
12870 | __source: {
|
12871 | fileName: ModalTitle_jsxFileName,
|
12872 | lineNumber: 23
|
12873 | },
|
12874 | __self: this
|
12875 | }));
|
12876 | };
|
12877 |
|
12878 | return ModalTitle;
|
12879 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
12880 |
|
12881 | ModalTitle_ModalTitle.propTypes = ModalTitle_propTypes;
|
12882 | ModalTitle_ModalTitle.defaultProps = ModalTitle_defaultProps;
|
12883 | var src_ModalTitle = (bootstrapUtils_bsClass('modal-title', ModalTitle_ModalTitle));
|
12884 |
|
12885 |
|
12886 |
|
12887 |
|
12888 |
|
12889 | var Modal_jsxFileName = "/Users/jason/src/react-bootstrap/src/Modal.js";
|
12890 |
|
12891 |
|
12892 |
|
12893 |
|
12894 |
|
12895 |
|
12896 |
|
12897 |
|
12898 |
|
12899 |
|
12900 |
|
12901 |
|
12902 |
|
12903 |
|
12904 |
|
12905 |
|
12906 |
|
12907 |
|
12908 |
|
12909 |
|
12910 |
|
12911 |
|
12912 | var Modal_propTypes = _extends({}, Modal_default.a.propTypes, src_ModalDialog.propTypes, {
|
12913 | |
12914 |
|
12915 |
|
12916 |
|
12917 | backdrop: prop_types_default.a.oneOf(['static', true, false]),
|
12918 |
|
12919 | |
12920 |
|
12921 |
|
12922 |
|
12923 | backdropClassName: prop_types_default.a.string,
|
12924 |
|
12925 | |
12926 |
|
12927 |
|
12928 | keyboard: prop_types_default.a.bool,
|
12929 |
|
12930 | |
12931 |
|
12932 |
|
12933 | animation: prop_types_default.a.bool,
|
12934 |
|
12935 | |
12936 |
|
12937 |
|
12938 |
|
12939 |
|
12940 | dialogComponentClass: elementType_default.a,
|
12941 |
|
12942 | |
12943 |
|
12944 |
|
12945 |
|
12946 |
|
12947 |
|
12948 | autoFocus: prop_types_default.a.bool,
|
12949 |
|
12950 | |
12951 |
|
12952 |
|
12953 |
|
12954 |
|
12955 | enforceFocus: prop_types_default.a.bool,
|
12956 |
|
12957 | |
12958 |
|
12959 |
|
12960 |
|
12961 | restoreFocus: prop_types_default.a.bool,
|
12962 |
|
12963 | |
12964 |
|
12965 |
|
12966 | show: prop_types_default.a.bool,
|
12967 |
|
12968 | |
12969 |
|
12970 |
|
12971 |
|
12972 | onHide: prop_types_default.a.func,
|
12973 |
|
12974 | |
12975 |
|
12976 |
|
12977 | onEnter: prop_types_default.a.func,
|
12978 |
|
12979 | |
12980 |
|
12981 |
|
12982 | onEntering: prop_types_default.a.func,
|
12983 |
|
12984 | |
12985 |
|
12986 |
|
12987 | onEntered: prop_types_default.a.func,
|
12988 |
|
12989 | |
12990 |
|
12991 |
|
12992 | onExit: prop_types_default.a.func,
|
12993 |
|
12994 | |
12995 |
|
12996 |
|
12997 | onExiting: prop_types_default.a.func,
|
12998 |
|
12999 | |
13000 |
|
13001 |
|
13002 | onExited: prop_types_default.a.func,
|
13003 |
|
13004 | |
13005 |
|
13006 |
|
13007 | container: Modal_default.a.propTypes.container
|
13008 | });
|
13009 |
|
13010 | var Modal_defaultProps = _extends({}, Modal_default.a.defaultProps, {
|
13011 | animation: true,
|
13012 | dialogComponentClass: src_ModalDialog
|
13013 | });
|
13014 |
|
13015 | var Modal_childContextTypes = {
|
13016 | $bs_modal: prop_types_default.a.shape({
|
13017 | onHide: prop_types_default.a.func
|
13018 | })
|
13019 | };
|
13020 |
|
13021 |
|
13022 | function DialogTransition(props) {
|
13023 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Fade, _extends({}, props, {
|
13024 | timeout: Modal_Modal.TRANSITION_DURATION,
|
13025 | __source: {
|
13026 | fileName: Modal_jsxFileName,
|
13027 | lineNumber: 139
|
13028 | },
|
13029 | __self: this
|
13030 | }));
|
13031 | }
|
13032 |
|
13033 | function BackdropTransition(props) {
|
13034 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Fade, _extends({}, props, {
|
13035 | timeout: Modal_Modal.BACKDROP_TRANSITION_DURATION,
|
13036 | __source: {
|
13037 | fileName: Modal_jsxFileName,
|
13038 | lineNumber: 143
|
13039 | },
|
13040 | __self: this
|
13041 | }));
|
13042 | }
|
13043 |
|
13044 |
|
13045 |
|
13046 | var Modal_Modal =
|
13047 |
|
13048 | function (_React$Component) {
|
13049 | _inheritsLoose(Modal, _React$Component);
|
13050 |
|
13051 | function Modal(props, context) {
|
13052 | var _this;
|
13053 |
|
13054 | _this = _React$Component.call(this, props, context) || this;
|
13055 | _this.handleEntering = _this.handleEntering.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
13056 | _this.handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
13057 | _this.handleWindowResize = _this.handleWindowResize.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
13058 | _this.handleDialogClick = _this.handleDialogClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
13059 | _this.setModalRef = _this.setModalRef.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
13060 | _this.state = {
|
13061 | style: {}
|
13062 | };
|
13063 | return _this;
|
13064 | }
|
13065 |
|
13066 | var _proto = Modal.prototype;
|
13067 |
|
13068 | _proto.getChildContext = function getChildContext() {
|
13069 | return {
|
13070 | $bs_modal: {
|
13071 | onHide: this.props.onHide
|
13072 | }
|
13073 | };
|
13074 | };
|
13075 |
|
13076 | _proto.componentWillUnmount = function componentWillUnmount() {
|
13077 |
|
13078 | this.handleExited();
|
13079 | };
|
13080 |
|
13081 | _proto.setModalRef = function setModalRef(ref) {
|
13082 | this._modal = ref;
|
13083 | };
|
13084 |
|
13085 | _proto.handleDialogClick = function handleDialogClick(e) {
|
13086 | if (e.target !== e.currentTarget) {
|
13087 | return;
|
13088 | }
|
13089 |
|
13090 | this.props.onHide();
|
13091 | };
|
13092 |
|
13093 | _proto.handleEntering = function handleEntering() {
|
13094 |
|
13095 | events_default.a.on(window, 'resize', this.handleWindowResize);
|
13096 | this.updateStyle();
|
13097 | };
|
13098 |
|
13099 | _proto.handleExited = function handleExited() {
|
13100 |
|
13101 | events_default.a.off(window, 'resize', this.handleWindowResize);
|
13102 | };
|
13103 |
|
13104 | _proto.handleWindowResize = function handleWindowResize() {
|
13105 | this.updateStyle();
|
13106 | };
|
13107 |
|
13108 | _proto.updateStyle = function updateStyle() {
|
13109 | if (!inDOM_default.a) {
|
13110 | return;
|
13111 | }
|
13112 |
|
13113 | var dialogNode = this._modal.getDialogElement();
|
13114 |
|
13115 | var dialogHeight = dialogNode.scrollHeight;
|
13116 | var document = ownerDocument_default()(dialogNode);
|
13117 | var bodyIsOverflowing = isOverflowing_default()(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.findDOMNode(this.props.container || document.body));
|
13118 | var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight;
|
13119 | this.setState({
|
13120 | style: {
|
13121 | paddingRight: bodyIsOverflowing && !modalIsOverflowing ? scrollbarSize_default()() : undefined,
|
13122 | paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? scrollbarSize_default()() : undefined
|
13123 | }
|
13124 | });
|
13125 | };
|
13126 |
|
13127 | _proto.render = function render() {
|
13128 | var _this$props = this.props,
|
13129 | backdrop = _this$props.backdrop,
|
13130 | backdropClassName = _this$props.backdropClassName,
|
13131 | animation = _this$props.animation,
|
13132 | show = _this$props.show,
|
13133 | Dialog = _this$props.dialogComponentClass,
|
13134 | className = _this$props.className,
|
13135 | style = _this$props.style,
|
13136 | children = _this$props.children,
|
13137 | onEntering = _this$props.onEntering,
|
13138 | onExited = _this$props.onExited,
|
13139 | props = _objectWithoutPropertiesLoose(_this$props, ["backdrop", "backdropClassName", "animation", "show", "dialogComponentClass", "className", "style", "children", "onEntering", "onExited"]);
|
13140 |
|
13141 | var _splitComponentProps = splitComponentProps(props, Modal_default.a),
|
13142 | baseModalProps = _splitComponentProps[0],
|
13143 | dialogProps = _splitComponentProps[1];
|
13144 |
|
13145 | var inClassName = show && !animation && 'in';
|
13146 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Modal_default.a, _extends({}, baseModalProps, {
|
13147 | ref: this.setModalRef,
|
13148 | show: show,
|
13149 | containerClassName: prefix(props, 'open'),
|
13150 | transition: animation ? DialogTransition : undefined,
|
13151 | backdrop: backdrop,
|
13152 | backdropTransition: animation ? BackdropTransition : undefined,
|
13153 | backdropClassName: classnames_default()(prefix(props, 'backdrop'), backdropClassName, inClassName),
|
13154 | onEntering: utils_createChainedFunction(onEntering, this.handleEntering),
|
13155 | onExited: utils_createChainedFunction(onExited, this.handleExited),
|
13156 | __source: {
|
13157 | fileName: Modal_jsxFileName,
|
13158 | lineNumber: 252
|
13159 | },
|
13160 | __self: this
|
13161 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Dialog, _extends({}, dialogProps, {
|
13162 | style: _extends({}, this.state.style, style),
|
13163 | className: classnames_default()(className, inClassName),
|
13164 | onClick: backdrop === true ? this.handleDialogClick : null,
|
13165 | __source: {
|
13166 | fileName: Modal_jsxFileName,
|
13167 | lineNumber: 268
|
13168 | },
|
13169 | __self: this
|
13170 | }), children));
|
13171 | };
|
13172 |
|
13173 | return Modal;
|
13174 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
13175 |
|
13176 | Modal_Modal.propTypes = Modal_propTypes;
|
13177 | Modal_Modal.defaultProps = Modal_defaultProps;
|
13178 | Modal_Modal.childContextTypes = Modal_childContextTypes;
|
13179 | Modal_Modal.Body = src_ModalBody;
|
13180 | Modal_Modal.Header = src_ModalHeader;
|
13181 | Modal_Modal.Title = src_ModalTitle;
|
13182 | Modal_Modal.Footer = src_ModalFooter;
|
13183 | Modal_Modal.Dialog = src_ModalDialog;
|
13184 | Modal_Modal.TRANSITION_DURATION = 300;
|
13185 | Modal_Modal.BACKDROP_TRANSITION_DURATION = 150;
|
13186 | var src_Modal = (bootstrapUtils_bsClass('modal', bsSizes([Size.LARGE, Size.SMALL], Modal_Modal)));
|
13187 |
|
13188 |
|
13189 |
|
13190 |
|
13191 | var Nav_jsxFileName = "/Users/jason/src/react-bootstrap/src/Nav.js";
|
13192 |
|
13193 |
|
13194 |
|
13195 |
|
13196 |
|
13197 |
|
13198 |
|
13199 |
|
13200 |
|
13201 |
|
13202 |
|
13203 |
|
13204 |
|
13205 |
|
13206 | var Nav_propTypes = {
|
13207 | |
13208 |
|
13209 |
|
13210 |
|
13211 | activeKey: prop_types_default.a.any,
|
13212 |
|
13213 | |
13214 |
|
13215 |
|
13216 | activeHref: prop_types_default.a.string,
|
13217 |
|
13218 | |
13219 |
|
13220 |
|
13221 | stacked: prop_types_default.a.bool,
|
13222 | justified: all_default()(prop_types_default.a.bool, function (_ref) {
|
13223 | var justified = _ref.justified,
|
13224 | navbar = _ref.navbar;
|
13225 | return justified && navbar ? Error('justified navbar `Nav`s are not supported') : null;
|
13226 | }),
|
13227 |
|
13228 | |
13229 |
|
13230 |
|
13231 |
|
13232 |
|
13233 |
|
13234 |
|
13235 |
|
13236 |
|
13237 |
|
13238 | onSelect: prop_types_default.a.func,
|
13239 |
|
13240 | |
13241 |
|
13242 |
|
13243 |
|
13244 |
|
13245 |
|
13246 |
|
13247 |
|
13248 | role: prop_types_default.a.string,
|
13249 |
|
13250 | |
13251 |
|
13252 |
|
13253 |
|
13254 | navbar: prop_types_default.a.bool,
|
13255 |
|
13256 | |
13257 |
|
13258 |
|
13259 |
|
13260 | pullRight: prop_types_default.a.bool,
|
13261 |
|
13262 | |
13263 |
|
13264 |
|
13265 |
|
13266 | pullLeft: prop_types_default.a.bool
|
13267 | };
|
13268 | var Nav_defaultProps = {
|
13269 | justified: false,
|
13270 | pullRight: false,
|
13271 | pullLeft: false,
|
13272 | stacked: false
|
13273 | };
|
13274 | var Nav_contextTypes = {
|
13275 | $bs_navbar: prop_types_default.a.shape({
|
13276 | bsClass: prop_types_default.a.string,
|
13277 | onSelect: prop_types_default.a.func
|
13278 | }),
|
13279 | $bs_tabContainer: prop_types_default.a.shape({
|
13280 | activeKey: prop_types_default.a.any,
|
13281 | onSelect: prop_types_default.a.func.isRequired,
|
13282 | getTabId: prop_types_default.a.func.isRequired,
|
13283 | getPaneId: prop_types_default.a.func.isRequired
|
13284 | })
|
13285 | };
|
13286 |
|
13287 | var Nav_Nav =
|
13288 |
|
13289 | function (_React$Component) {
|
13290 | _inheritsLoose(Nav, _React$Component);
|
13291 |
|
13292 | function Nav() {
|
13293 | return _React$Component.apply(this, arguments) || this;
|
13294 | }
|
13295 |
|
13296 | var _proto = Nav.prototype;
|
13297 |
|
13298 | _proto.componentDidUpdate = function componentDidUpdate() {
|
13299 | var _this = this;
|
13300 |
|
13301 | if (!this._needsRefocus) {
|
13302 | return;
|
13303 | }
|
13304 |
|
13305 | this._needsRefocus = false;
|
13306 | var children = this.props.children;
|
13307 |
|
13308 | var _this$getActiveProps = this.getActiveProps(),
|
13309 | activeKey = _this$getActiveProps.activeKey,
|
13310 | activeHref = _this$getActiveProps.activeHref;
|
13311 |
|
13312 | var activeChild = ValidComponentChildren.find(children, function (child) {
|
13313 | return _this.isActive(child, activeKey, activeHref);
|
13314 | });
|
13315 | var childrenArray = ValidComponentChildren.toArray(children);
|
13316 | var activeChildIndex = childrenArray.indexOf(activeChild);
|
13317 | var childNodes = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.findDOMNode(this).children;
|
13318 | var activeNode = childNodes && childNodes[activeChildIndex];
|
13319 |
|
13320 | if (!activeNode || !activeNode.firstChild) {
|
13321 | return;
|
13322 | }
|
13323 |
|
13324 | activeNode.firstChild.focus();
|
13325 | };
|
13326 |
|
13327 | _proto.getActiveProps = function getActiveProps() {
|
13328 | var tabContainer = this.context.$bs_tabContainer;
|
13329 |
|
13330 | if (tabContainer) {
|
13331 | false ? undefined : void 0;
|
13332 | return tabContainer;
|
13333 | }
|
13334 |
|
13335 | return this.props;
|
13336 | };
|
13337 |
|
13338 | _proto.getNextActiveChild = function getNextActiveChild(offset) {
|
13339 | var _this2 = this;
|
13340 |
|
13341 | var children = this.props.children;
|
13342 | var validChildren = children.filter(function (child) {
|
13343 | return child.props.eventKey != null && !child.props.disabled;
|
13344 | });
|
13345 |
|
13346 | var _this$getActiveProps2 = this.getActiveProps(),
|
13347 | activeKey = _this$getActiveProps2.activeKey,
|
13348 | activeHref = _this$getActiveProps2.activeHref;
|
13349 |
|
13350 | var activeChild = ValidComponentChildren.find(children, function (child) {
|
13351 | return _this2.isActive(child, activeKey, activeHref);
|
13352 | });
|
13353 |
|
13354 | var activeChildIndex = validChildren.indexOf(activeChild);
|
13355 |
|
13356 | if (activeChildIndex === -1) {
|
13357 |
|
13358 | return validChildren[0];
|
13359 | }
|
13360 |
|
13361 | var nextIndex = activeChildIndex + offset;
|
13362 | var numValidChildren = validChildren.length;
|
13363 |
|
13364 | if (nextIndex >= numValidChildren) {
|
13365 | nextIndex = 0;
|
13366 | } else if (nextIndex < 0) {
|
13367 | nextIndex = numValidChildren - 1;
|
13368 | }
|
13369 |
|
13370 | return validChildren[nextIndex];
|
13371 | };
|
13372 |
|
13373 | _proto.getTabProps = function getTabProps(child, tabContainer, navRole, active, onSelect) {
|
13374 | var _this3 = this;
|
13375 |
|
13376 | if (!tabContainer && navRole !== 'tablist') {
|
13377 |
|
13378 | return null;
|
13379 | }
|
13380 |
|
13381 | var _child$props = child.props,
|
13382 | id = _child$props.id,
|
13383 | controls = _child$props['aria-controls'],
|
13384 | eventKey = _child$props.eventKey,
|
13385 | role = _child$props.role,
|
13386 | onKeyDown = _child$props.onKeyDown,
|
13387 | tabIndex = _child$props.tabIndex;
|
13388 |
|
13389 | if (tabContainer) {
|
13390 | false ? undefined : void 0;
|
13391 | id = tabContainer.getTabId(eventKey);
|
13392 | controls = tabContainer.getPaneId(eventKey);
|
13393 | }
|
13394 |
|
13395 | if (navRole === 'tablist') {
|
13396 | role = role || 'tab';
|
13397 | onKeyDown = utils_createChainedFunction(function (event) {
|
13398 | return _this3.handleTabKeyDown(onSelect, event);
|
13399 | }, onKeyDown);
|
13400 | tabIndex = active ? tabIndex : -1;
|
13401 | }
|
13402 |
|
13403 | return {
|
13404 | id: id,
|
13405 | role: role,
|
13406 | onKeyDown: onKeyDown,
|
13407 | 'aria-controls': controls,
|
13408 | tabIndex: tabIndex
|
13409 | };
|
13410 | };
|
13411 |
|
13412 | _proto.handleTabKeyDown = function handleTabKeyDown(onSelect, event) {
|
13413 | var nextActiveChild;
|
13414 |
|
13415 | switch (event.keyCode) {
|
13416 | case keycode_default.a.codes.left:
|
13417 | case keycode_default.a.codes.up:
|
13418 | nextActiveChild = this.getNextActiveChild(-1);
|
13419 | break;
|
13420 |
|
13421 | case keycode_default.a.codes.right:
|
13422 | case keycode_default.a.codes.down:
|
13423 | nextActiveChild = this.getNextActiveChild(1);
|
13424 | break;
|
13425 |
|
13426 | default:
|
13427 |
|
13428 | return;
|
13429 | }
|
13430 |
|
13431 | event.preventDefault();
|
13432 |
|
13433 | if (onSelect && nextActiveChild && nextActiveChild.props.eventKey != null) {
|
13434 | onSelect(nextActiveChild.props.eventKey);
|
13435 | }
|
13436 |
|
13437 | this._needsRefocus = true;
|
13438 | };
|
13439 |
|
13440 | _proto.isActive = function isActive(_ref2, activeKey, activeHref) {
|
13441 | var props = _ref2.props;
|
13442 |
|
13443 | if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref) {
|
13444 | return true;
|
13445 | }
|
13446 |
|
13447 | return props.active;
|
13448 | };
|
13449 |
|
13450 | _proto.render = function render() {
|
13451 | var _extends2,
|
13452 | _this4 = this;
|
13453 |
|
13454 | var _this$props = this.props,
|
13455 | stacked = _this$props.stacked,
|
13456 | justified = _this$props.justified,
|
13457 | onSelect = _this$props.onSelect,
|
13458 | propsRole = _this$props.role,
|
13459 | propsNavbar = _this$props.navbar,
|
13460 | pullRight = _this$props.pullRight,
|
13461 | pullLeft = _this$props.pullLeft,
|
13462 | className = _this$props.className,
|
13463 | children = _this$props.children,
|
13464 | props = _objectWithoutPropertiesLoose(_this$props, ["stacked", "justified", "onSelect", "role", "navbar", "pullRight", "pullLeft", "className", "children"]);
|
13465 |
|
13466 | var tabContainer = this.context.$bs_tabContainer;
|
13467 | var role = propsRole || (tabContainer ? 'tablist' : null);
|
13468 |
|
13469 | var _this$getActiveProps3 = this.getActiveProps(),
|
13470 | activeKey = _this$getActiveProps3.activeKey,
|
13471 | activeHref = _this$getActiveProps3.activeHref;
|
13472 |
|
13473 | delete props.activeKey;
|
13474 |
|
13475 | delete props.activeHref;
|
13476 |
|
13477 | var _splitBsProps = splitBsProps(props),
|
13478 | bsProps = _splitBsProps[0],
|
13479 | elementProps = _splitBsProps[1];
|
13480 |
|
13481 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'stacked')] = stacked, _extends2[prefix(bsProps, 'justified')] = justified, _extends2));
|
13482 |
|
13483 | var navbar = propsNavbar != null ? propsNavbar : this.context.$bs_navbar;
|
13484 | var pullLeftClassName;
|
13485 | var pullRightClassName;
|
13486 |
|
13487 | if (navbar) {
|
13488 | var navbarProps = this.context.$bs_navbar || {
|
13489 | bsClass: 'navbar'
|
13490 | };
|
13491 | classes[prefix(navbarProps, 'nav')] = true;
|
13492 | pullRightClassName = prefix(navbarProps, 'right');
|
13493 | pullLeftClassName = prefix(navbarProps, 'left');
|
13494 | } else {
|
13495 | pullRightClassName = 'pull-right';
|
13496 | pullLeftClassName = 'pull-left';
|
13497 | }
|
13498 |
|
13499 | classes[pullRightClassName] = pullRight;
|
13500 | classes[pullLeftClassName] = pullLeft;
|
13501 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", _extends({}, elementProps, {
|
13502 | role: role,
|
13503 | className: classnames_default()(className, classes),
|
13504 | __source: {
|
13505 | fileName: Nav_jsxFileName,
|
13506 | lineNumber: 322
|
13507 | },
|
13508 | __self: this
|
13509 | }), ValidComponentChildren.map(children, function (child) {
|
13510 | var active = _this4.isActive(child, activeKey, activeHref);
|
13511 |
|
13512 | var childOnSelect = utils_createChainedFunction(child.props.onSelect, onSelect, navbar && navbar.onSelect, tabContainer && tabContainer.onSelect);
|
13513 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, _extends({}, _this4.getTabProps(child, tabContainer, role, active, childOnSelect), {
|
13514 | active: active,
|
13515 | activeKey: activeKey,
|
13516 | activeHref: activeHref,
|
13517 | onSelect: childOnSelect
|
13518 | }));
|
13519 | }));
|
13520 | };
|
13521 |
|
13522 | return Nav;
|
13523 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
13524 |
|
13525 | Nav_Nav.propTypes = Nav_propTypes;
|
13526 | Nav_Nav.defaultProps = Nav_defaultProps;
|
13527 | Nav_Nav.contextTypes = Nav_contextTypes;
|
13528 | var src_Nav = (bootstrapUtils_bsClass('nav', bsStyles(['tabs', 'pills'], Nav_Nav)));
|
13529 |
|
13530 |
|
13531 |
|
13532 |
|
13533 | var NavbarBrand_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavbarBrand.js";
|
13534 |
|
13535 |
|
13536 |
|
13537 |
|
13538 | var NavbarBrand_contextTypes = {
|
13539 | $bs_navbar: prop_types_default.a.shape({
|
13540 | bsClass: prop_types_default.a.string
|
13541 | })
|
13542 | };
|
13543 |
|
13544 | var NavbarBrand_NavbarBrand =
|
13545 |
|
13546 | function (_React$Component) {
|
13547 | _inheritsLoose(NavbarBrand, _React$Component);
|
13548 |
|
13549 | function NavbarBrand() {
|
13550 | return _React$Component.apply(this, arguments) || this;
|
13551 | }
|
13552 |
|
13553 | var _proto = NavbarBrand.prototype;
|
13554 |
|
13555 | _proto.render = function render() {
|
13556 | var _this$props = this.props,
|
13557 | className = _this$props.className,
|
13558 | children = _this$props.children,
|
13559 | props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
13560 |
|
13561 | var navbarProps = this.context.$bs_navbar || {
|
13562 | bsClass: 'navbar'
|
13563 | };
|
13564 | var bsClassName = prefix(navbarProps, 'brand');
|
13565 |
|
13566 | if (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(children)) {
|
13567 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(children, {
|
13568 | className: classnames_default()(children.props.className, className, bsClassName)
|
13569 | });
|
13570 | }
|
13571 |
|
13572 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", _extends({}, props, {
|
13573 | className: classnames_default()(className, bsClassName),
|
13574 | __source: {
|
13575 | fileName: NavbarBrand_jsxFileName,
|
13576 | lineNumber: 27
|
13577 | },
|
13578 | __self: this
|
13579 | }), children);
|
13580 | };
|
13581 |
|
13582 | return NavbarBrand;
|
13583 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
13584 |
|
13585 | NavbarBrand_NavbarBrand.contextTypes = NavbarBrand_contextTypes;
|
13586 | var src_NavbarBrand = (NavbarBrand_NavbarBrand);
|
13587 |
|
13588 |
|
13589 |
|
13590 |
|
13591 | var NavbarCollapse_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavbarCollapse.js";
|
13592 |
|
13593 |
|
13594 |
|
13595 |
|
13596 | var NavbarCollapse_contextTypes = {
|
13597 | $bs_navbar: prop_types_default.a.shape({
|
13598 | bsClass: prop_types_default.a.string,
|
13599 | expanded: prop_types_default.a.bool
|
13600 | })
|
13601 | };
|
13602 |
|
13603 | var NavbarCollapse_NavbarCollapse =
|
13604 |
|
13605 | function (_React$Component) {
|
13606 | _inheritsLoose(NavbarCollapse, _React$Component);
|
13607 |
|
13608 | function NavbarCollapse() {
|
13609 | return _React$Component.apply(this, arguments) || this;
|
13610 | }
|
13611 |
|
13612 | var _proto = NavbarCollapse.prototype;
|
13613 |
|
13614 | _proto.render = function render() {
|
13615 | var _this$props = this.props,
|
13616 | children = _this$props.children,
|
13617 | props = _objectWithoutPropertiesLoose(_this$props, ["children"]);
|
13618 |
|
13619 | var navbarProps = this.context.$bs_navbar || {
|
13620 | bsClass: 'navbar'
|
13621 | };
|
13622 | var bsClassName = prefix(navbarProps, 'collapse');
|
13623 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Collapse, _extends({
|
13624 | in: navbarProps.expanded
|
13625 | }, props, {
|
13626 | __source: {
|
13627 | fileName: NavbarCollapse_jsxFileName,
|
13628 | lineNumber: 22
|
13629 | },
|
13630 | __self: this
|
13631 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
13632 | className: bsClassName,
|
13633 | __source: {
|
13634 | fileName: NavbarCollapse_jsxFileName,
|
13635 | lineNumber: 23
|
13636 | },
|
13637 | __self: this
|
13638 | }, children));
|
13639 | };
|
13640 |
|
13641 | return NavbarCollapse;
|
13642 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
13643 |
|
13644 | NavbarCollapse_NavbarCollapse.contextTypes = NavbarCollapse_contextTypes;
|
13645 | var src_NavbarCollapse = (NavbarCollapse_NavbarCollapse);
|
13646 |
|
13647 |
|
13648 |
|
13649 |
|
13650 | var NavbarHeader_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavbarHeader.js";
|
13651 |
|
13652 |
|
13653 |
|
13654 |
|
13655 | var NavbarHeader_contextTypes = {
|
13656 | $bs_navbar: prop_types_default.a.shape({
|
13657 | bsClass: prop_types_default.a.string
|
13658 | })
|
13659 | };
|
13660 |
|
13661 | var NavbarHeader_NavbarHeader =
|
13662 |
|
13663 | function (_React$Component) {
|
13664 | _inheritsLoose(NavbarHeader, _React$Component);
|
13665 |
|
13666 | function NavbarHeader() {
|
13667 | return _React$Component.apply(this, arguments) || this;
|
13668 | }
|
13669 |
|
13670 | var _proto = NavbarHeader.prototype;
|
13671 |
|
13672 | _proto.render = function render() {
|
13673 | var _this$props = this.props,
|
13674 | className = _this$props.className,
|
13675 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
13676 |
|
13677 | var navbarProps = this.context.$bs_navbar || {
|
13678 | bsClass: 'navbar'
|
13679 | };
|
13680 | var bsClassName = prefix(navbarProps, 'header');
|
13681 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, props, {
|
13682 | className: classnames_default()(className, bsClassName),
|
13683 | __source: {
|
13684 | fileName: NavbarHeader_jsxFileName,
|
13685 | lineNumber: 20
|
13686 | },
|
13687 | __self: this
|
13688 | }));
|
13689 | };
|
13690 |
|
13691 | return NavbarHeader;
|
13692 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
13693 |
|
13694 | NavbarHeader_NavbarHeader.contextTypes = NavbarHeader_contextTypes;
|
13695 | var src_NavbarHeader = (NavbarHeader_NavbarHeader);
|
13696 |
|
13697 |
|
13698 |
|
13699 |
|
13700 | var NavbarToggle_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavbarToggle.js";
|
13701 |
|
13702 |
|
13703 |
|
13704 |
|
13705 |
|
13706 | var NavbarToggle_propTypes = {
|
13707 | onClick: prop_types_default.a.func,
|
13708 |
|
13709 | |
13710 |
|
13711 |
|
13712 | children: prop_types_default.a.node
|
13713 | };
|
13714 | var NavbarToggle_contextTypes = {
|
13715 | $bs_navbar: prop_types_default.a.shape({
|
13716 | bsClass: prop_types_default.a.string,
|
13717 | expanded: prop_types_default.a.bool,
|
13718 | onToggle: prop_types_default.a.func.isRequired
|
13719 | })
|
13720 | };
|
13721 |
|
13722 | var NavbarToggle_NavbarToggle =
|
13723 |
|
13724 | function (_React$Component) {
|
13725 | _inheritsLoose(NavbarToggle, _React$Component);
|
13726 |
|
13727 | function NavbarToggle() {
|
13728 | return _React$Component.apply(this, arguments) || this;
|
13729 | }
|
13730 |
|
13731 | var _proto = NavbarToggle.prototype;
|
13732 |
|
13733 | _proto.render = function render() {
|
13734 | var _this$props = this.props,
|
13735 | onClick = _this$props.onClick,
|
13736 | className = _this$props.className,
|
13737 | children = _this$props.children,
|
13738 | props = _objectWithoutPropertiesLoose(_this$props, ["onClick", "className", "children"]);
|
13739 |
|
13740 | var navbarProps = this.context.$bs_navbar || {
|
13741 | bsClass: 'navbar'
|
13742 | };
|
13743 |
|
13744 | var buttonProps = _extends({
|
13745 | type: 'button'
|
13746 | }, props, {
|
13747 | onClick: utils_createChainedFunction(onClick, navbarProps.onToggle),
|
13748 | className: classnames_default()(className, prefix(navbarProps, 'toggle'), !navbarProps.expanded && 'collapsed')
|
13749 | });
|
13750 |
|
13751 | if (children) {
|
13752 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("button", _extends({}, buttonProps, {
|
13753 | __source: {
|
13754 | fileName: NavbarToggle_jsxFileName,
|
13755 | lineNumber: 41
|
13756 | },
|
13757 | __self: this
|
13758 | }), children);
|
13759 | }
|
13760 |
|
13761 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("button", _extends({}, buttonProps, {
|
13762 | __source: {
|
13763 | fileName: NavbarToggle_jsxFileName,
|
13764 | lineNumber: 45
|
13765 | },
|
13766 | __self: this
|
13767 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
13768 | className: "sr-only",
|
13769 | __source: {
|
13770 | fileName: NavbarToggle_jsxFileName,
|
13771 | lineNumber: 46
|
13772 | },
|
13773 | __self: this
|
13774 | }, "Toggle navigation"), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
13775 | className: "icon-bar",
|
13776 | __source: {
|
13777 | fileName: NavbarToggle_jsxFileName,
|
13778 | lineNumber: 47
|
13779 | },
|
13780 | __self: this
|
13781 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
13782 | className: "icon-bar",
|
13783 | __source: {
|
13784 | fileName: NavbarToggle_jsxFileName,
|
13785 | lineNumber: 48
|
13786 | },
|
13787 | __self: this
|
13788 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
13789 | className: "icon-bar",
|
13790 | __source: {
|
13791 | fileName: NavbarToggle_jsxFileName,
|
13792 | lineNumber: 49
|
13793 | },
|
13794 | __self: this
|
13795 | }));
|
13796 | };
|
13797 |
|
13798 | return NavbarToggle;
|
13799 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
13800 |
|
13801 | NavbarToggle_NavbarToggle.propTypes = NavbarToggle_propTypes;
|
13802 | NavbarToggle_NavbarToggle.contextTypes = NavbarToggle_contextTypes;
|
13803 | var src_NavbarToggle = (NavbarToggle_NavbarToggle);
|
13804 |
|
13805 |
|
13806 |
|
13807 |
|
13808 |
|
13809 | var Navbar_jsxFileName = "/Users/jason/src/react-bootstrap/src/Navbar.js";
|
13810 |
|
13811 |
|
13812 |
|
13813 |
|
13814 |
|
13815 |
|
13816 |
|
13817 |
|
13818 |
|
13819 |
|
13820 |
|
13821 |
|
13822 |
|
13823 |
|
13824 |
|
13825 |
|
13826 | var Navbar_propTypes = {
|
13827 | |
13828 |
|
13829 |
|
13830 |
|
13831 | fixedTop: prop_types_default.a.bool,
|
13832 |
|
13833 | |
13834 |
|
13835 |
|
13836 |
|
13837 | fixedBottom: prop_types_default.a.bool,
|
13838 |
|
13839 | |
13840 |
|
13841 |
|
13842 | staticTop: prop_types_default.a.bool,
|
13843 |
|
13844 | |
13845 |
|
13846 |
|
13847 | inverse: prop_types_default.a.bool,
|
13848 |
|
13849 | |
13850 |
|
13851 |
|
13852 |
|
13853 | fluid: prop_types_default.a.bool,
|
13854 |
|
13855 | |
13856 |
|
13857 |
|
13858 | componentClass: elementType_default.a,
|
13859 |
|
13860 | |
13861 |
|
13862 |
|
13863 |
|
13864 |
|
13865 |
|
13866 |
|
13867 | onToggle: prop_types_default.a.func,
|
13868 |
|
13869 | |
13870 |
|
13871 |
|
13872 |
|
13873 |
|
13874 |
|
13875 |
|
13876 |
|
13877 |
|
13878 |
|
13879 |
|
13880 |
|
13881 |
|
13882 |
|
13883 |
|
13884 |
|
13885 |
|
13886 |
|
13887 |
|
13888 |
|
13889 |
|
13890 | onSelect: prop_types_default.a.func,
|
13891 |
|
13892 | |
13893 |
|
13894 |
|
13895 |
|
13896 |
|
13897 |
|
13898 |
|
13899 | collapseOnSelect: prop_types_default.a.bool,
|
13900 |
|
13901 | |
13902 |
|
13903 |
|
13904 |
|
13905 |
|
13906 | expanded: prop_types_default.a.bool,
|
13907 | role: prop_types_default.a.string
|
13908 | };
|
13909 | var Navbar_defaultProps = {
|
13910 | componentClass: 'nav',
|
13911 | fixedTop: false,
|
13912 | fixedBottom: false,
|
13913 | staticTop: false,
|
13914 | inverse: false,
|
13915 | fluid: false,
|
13916 | collapseOnSelect: false
|
13917 | };
|
13918 | var Navbar_childContextTypes = {
|
13919 | $bs_navbar: prop_types_default.a.shape({
|
13920 | bsClass: prop_types_default.a.string,
|
13921 | expanded: prop_types_default.a.bool,
|
13922 | onToggle: prop_types_default.a.func.isRequired,
|
13923 | onSelect: prop_types_default.a.func
|
13924 | })
|
13925 | };
|
13926 |
|
13927 | var Navbar_Navbar =
|
13928 |
|
13929 | function (_React$Component) {
|
13930 | _inheritsLoose(Navbar, _React$Component);
|
13931 |
|
13932 | function Navbar(props, context) {
|
13933 | var _this;
|
13934 |
|
13935 | _this = _React$Component.call(this, props, context) || this;
|
13936 | _this.handleToggle = _this.handleToggle.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
13937 | _this.handleCollapse = _this.handleCollapse.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
13938 | return _this;
|
13939 | }
|
13940 |
|
13941 | var _proto = Navbar.prototype;
|
13942 |
|
13943 | _proto.getChildContext = function getChildContext() {
|
13944 | var _this$props = this.props,
|
13945 | bsClass = _this$props.bsClass,
|
13946 | expanded = _this$props.expanded,
|
13947 | onSelect = _this$props.onSelect,
|
13948 | collapseOnSelect = _this$props.collapseOnSelect;
|
13949 | return {
|
13950 | $bs_navbar: {
|
13951 | bsClass: bsClass,
|
13952 | expanded: expanded,
|
13953 | onToggle: this.handleToggle,
|
13954 | onSelect: utils_createChainedFunction(onSelect, collapseOnSelect ? this.handleCollapse : null)
|
13955 | }
|
13956 | };
|
13957 | };
|
13958 |
|
13959 | _proto.handleCollapse = function handleCollapse() {
|
13960 | var _this$props2 = this.props,
|
13961 | onToggle = _this$props2.onToggle,
|
13962 | expanded = _this$props2.expanded;
|
13963 |
|
13964 | if (expanded) {
|
13965 | onToggle(false);
|
13966 | }
|
13967 | };
|
13968 |
|
13969 | _proto.handleToggle = function handleToggle() {
|
13970 | var _this$props3 = this.props,
|
13971 | onToggle = _this$props3.onToggle,
|
13972 | expanded = _this$props3.expanded;
|
13973 | onToggle(!expanded);
|
13974 | };
|
13975 |
|
13976 | _proto.render = function render() {
|
13977 | var _extends2;
|
13978 |
|
13979 | var _this$props4 = this.props,
|
13980 | Component = _this$props4.componentClass,
|
13981 | fixedTop = _this$props4.fixedTop,
|
13982 | fixedBottom = _this$props4.fixedBottom,
|
13983 | staticTop = _this$props4.staticTop,
|
13984 | inverse = _this$props4.inverse,
|
13985 | fluid = _this$props4.fluid,
|
13986 | className = _this$props4.className,
|
13987 | children = _this$props4.children,
|
13988 | props = _objectWithoutPropertiesLoose(_this$props4, ["componentClass", "fixedTop", "fixedBottom", "staticTop", "inverse", "fluid", "className", "children"]);
|
13989 |
|
13990 | var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['expanded', 'onToggle', 'onSelect', 'collapseOnSelect']),
|
13991 | bsProps = _splitBsPropsAndOmit[0],
|
13992 | elementProps = _splitBsPropsAndOmit[1];
|
13993 |
|
13994 |
|
13995 |
|
13996 |
|
13997 | if (elementProps.role === undefined && Component !== 'nav') {
|
13998 | elementProps.role = 'navigation';
|
13999 | }
|
14000 |
|
14001 | if (inverse) {
|
14002 | bsProps.bsStyle = Style.INVERSE;
|
14003 | }
|
14004 |
|
14005 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'fixed-top')] = fixedTop, _extends2[prefix(bsProps, 'fixed-bottom')] = fixedBottom, _extends2[prefix(bsProps, 'static-top')] = staticTop, _extends2));
|
14006 |
|
14007 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
14008 | className: classnames_default()(className, classes),
|
14009 | __source: {
|
14010 | fileName: Navbar_jsxFileName,
|
14011 | lineNumber: 198
|
14012 | },
|
14013 | __self: this
|
14014 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Grid, {
|
14015 | fluid: fluid,
|
14016 | __source: {
|
14017 | fileName: Navbar_jsxFileName,
|
14018 | lineNumber: 199
|
14019 | },
|
14020 | __self: this
|
14021 | }, children));
|
14022 | };
|
14023 |
|
14024 | return Navbar;
|
14025 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
14026 |
|
14027 | Navbar_Navbar.propTypes = Navbar_propTypes;
|
14028 | Navbar_Navbar.defaultProps = Navbar_defaultProps;
|
14029 | Navbar_Navbar.childContextTypes = Navbar_childContextTypes;
|
14030 | bootstrapUtils_bsClass('navbar', Navbar_Navbar);
|
14031 | var UncontrollableNavbar = uncontrollable_default()(Navbar_Navbar, {
|
14032 | expanded: 'onToggle'
|
14033 | });
|
14034 |
|
14035 | function createSimpleWrapper(tag, suffix, displayName) {
|
14036 | var Wrapper = function Wrapper(_ref, _ref2) {
|
14037 | var Component = _ref.componentClass,
|
14038 | className = _ref.className,
|
14039 | pullRight = _ref.pullRight,
|
14040 | pullLeft = _ref.pullLeft,
|
14041 | props = _objectWithoutPropertiesLoose(_ref, ["componentClass", "className", "pullRight", "pullLeft"]);
|
14042 |
|
14043 | var _ref2$$bs_navbar = _ref2.$bs_navbar,
|
14044 | navbarProps = _ref2$$bs_navbar === void 0 ? {
|
14045 | bsClass: 'navbar'
|
14046 | } : _ref2$$bs_navbar;
|
14047 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, props, {
|
14048 | className: classnames_default()(className, prefix(navbarProps, suffix), pullRight && prefix(navbarProps, 'right'), pullLeft && prefix(navbarProps, 'left')),
|
14049 | __source: {
|
14050 | fileName: Navbar_jsxFileName,
|
14051 | lineNumber: 218
|
14052 | },
|
14053 | __self: this
|
14054 | }));
|
14055 | };
|
14056 |
|
14057 | Wrapper.displayName = displayName;
|
14058 | Wrapper.propTypes = {
|
14059 | componentClass: elementType_default.a,
|
14060 | pullRight: prop_types_default.a.bool,
|
14061 | pullLeft: prop_types_default.a.bool
|
14062 | };
|
14063 | Wrapper.defaultProps = {
|
14064 | componentClass: tag,
|
14065 | pullRight: false,
|
14066 | pullLeft: false
|
14067 | };
|
14068 | Wrapper.contextTypes = {
|
14069 | $bs_navbar: prop_types_default.a.shape({
|
14070 | bsClass: prop_types_default.a.string
|
14071 | })
|
14072 | };
|
14073 | return Wrapper;
|
14074 | }
|
14075 |
|
14076 | UncontrollableNavbar.Brand = src_NavbarBrand;
|
14077 | UncontrollableNavbar.Header = src_NavbarHeader;
|
14078 | UncontrollableNavbar.Toggle = src_NavbarToggle;
|
14079 | UncontrollableNavbar.Collapse = src_NavbarCollapse;
|
14080 | UncontrollableNavbar.Form = createSimpleWrapper('div', 'form', 'NavbarForm');
|
14081 | UncontrollableNavbar.Text = createSimpleWrapper('p', 'text', 'NavbarText');
|
14082 | UncontrollableNavbar.Link = createSimpleWrapper('a', 'link', 'NavbarLink');
|
14083 |
|
14084 | var src_Navbar = (bsStyles([Style.DEFAULT, Style.INVERSE], Style.DEFAULT, UncontrollableNavbar));
|
14085 |
|
14086 |
|
14087 |
|
14088 |
|
14089 | var NavDropdown_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavDropdown.js";
|
14090 |
|
14091 |
|
14092 |
|
14093 |
|
14094 |
|
14095 |
|
14096 |
|
14097 | var NavDropdown_propTypes = _extends({}, src_Dropdown.propTypes, {
|
14098 |
|
14099 | title: prop_types_default.a.node.isRequired,
|
14100 | noCaret: prop_types_default.a.bool,
|
14101 | active: prop_types_default.a.bool,
|
14102 | activeKey: prop_types_default.a.any,
|
14103 | activeHref: prop_types_default.a.string,
|
14104 |
|
14105 |
|
14106 | |
14107 |
|
14108 |
|
14109 | children: prop_types_default.a.node
|
14110 | });
|
14111 |
|
14112 | var NavDropdown_NavDropdown =
|
14113 |
|
14114 | function (_React$Component) {
|
14115 | _inheritsLoose(NavDropdown, _React$Component);
|
14116 |
|
14117 | function NavDropdown() {
|
14118 | return _React$Component.apply(this, arguments) || this;
|
14119 | }
|
14120 |
|
14121 | var _proto = NavDropdown.prototype;
|
14122 |
|
14123 | _proto.isActive = function isActive(_ref, activeKey, activeHref) {
|
14124 | var _this = this;
|
14125 |
|
14126 | var props = _ref.props;
|
14127 |
|
14128 | if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref) {
|
14129 | return true;
|
14130 | }
|
14131 |
|
14132 | if (ValidComponentChildren.some(props.children, function (child) {
|
14133 | return _this.isActive(child, activeKey, activeHref);
|
14134 | })) {
|
14135 | return true;
|
14136 | }
|
14137 |
|
14138 | return props.active;
|
14139 | };
|
14140 |
|
14141 | _proto.render = function render() {
|
14142 | var _this2 = this;
|
14143 |
|
14144 | var _this$props = this.props,
|
14145 | title = _this$props.title,
|
14146 | activeKey = _this$props.activeKey,
|
14147 | activeHref = _this$props.activeHref,
|
14148 | className = _this$props.className,
|
14149 | style = _this$props.style,
|
14150 | children = _this$props.children,
|
14151 | props = _objectWithoutPropertiesLoose(_this$props, ["title", "activeKey", "activeHref", "className", "style", "children"]);
|
14152 |
|
14153 | var active = this.isActive(this, activeKey, activeHref);
|
14154 | delete props.active;
|
14155 |
|
14156 | delete props.eventKey;
|
14157 |
|
14158 | var _splitComponentProps = splitComponentProps(props, src_Dropdown.ControlledComponent),
|
14159 | dropdownProps = _splitComponentProps[0],
|
14160 | toggleProps = _splitComponentProps[1];
|
14161 |
|
14162 |
|
14163 |
|
14164 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Dropdown, _extends({}, dropdownProps, {
|
14165 | componentClass: "li",
|
14166 | className: classnames_default()(className, {
|
14167 | active: active
|
14168 | }),
|
14169 | style: style,
|
14170 | __source: {
|
14171 | fileName: NavDropdown_jsxFileName,
|
14172 | lineNumber: 71
|
14173 | },
|
14174 | __self: this
|
14175 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Dropdown.Toggle, _extends({}, toggleProps, {
|
14176 | useAnchor: true,
|
14177 | __source: {
|
14178 | fileName: NavDropdown_jsxFileName,
|
14179 | lineNumber: 77
|
14180 | },
|
14181 | __self: this
|
14182 | }), title), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Dropdown.Menu, {
|
14183 | __source: {
|
14184 | fileName: NavDropdown_jsxFileName,
|
14185 | lineNumber: 81
|
14186 | },
|
14187 | __self: this
|
14188 | }, ValidComponentChildren.map(children, function (child) {
|
14189 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(child, {
|
14190 | active: _this2.isActive(child, activeKey, activeHref)
|
14191 | });
|
14192 | })));
|
14193 | };
|
14194 |
|
14195 | return NavDropdown;
|
14196 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
14197 |
|
14198 | NavDropdown_NavDropdown.propTypes = NavDropdown_propTypes;
|
14199 | var src_NavDropdown = (NavDropdown_NavDropdown);
|
14200 |
|
14201 |
|
14202 |
|
14203 |
|
14204 |
|
14205 | var NavItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavItem.js";
|
14206 |
|
14207 |
|
14208 |
|
14209 |
|
14210 |
|
14211 | var NavItem_propTypes = {
|
14212 | active: prop_types_default.a.bool,
|
14213 | disabled: prop_types_default.a.bool,
|
14214 | role: prop_types_default.a.string,
|
14215 | href: prop_types_default.a.string,
|
14216 | onClick: prop_types_default.a.func,
|
14217 | onSelect: prop_types_default.a.func,
|
14218 | eventKey: prop_types_default.a.any
|
14219 | };
|
14220 | var NavItem_defaultProps = {
|
14221 | active: false,
|
14222 | disabled: false
|
14223 | };
|
14224 |
|
14225 | var NavItem_NavItem =
|
14226 |
|
14227 | function (_React$Component) {
|
14228 | _inheritsLoose(NavItem, _React$Component);
|
14229 |
|
14230 | function NavItem(props, context) {
|
14231 | var _this;
|
14232 |
|
14233 | _this = _React$Component.call(this, props, context) || this;
|
14234 | _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
14235 | return _this;
|
14236 | }
|
14237 |
|
14238 | var _proto = NavItem.prototype;
|
14239 |
|
14240 | _proto.handleClick = function handleClick(e) {
|
14241 | if (this.props.disabled) {
|
14242 | e.preventDefault();
|
14243 | return;
|
14244 | }
|
14245 |
|
14246 | if (this.props.onSelect) {
|
14247 | this.props.onSelect(this.props.eventKey, e);
|
14248 | }
|
14249 | };
|
14250 |
|
14251 | _proto.render = function render() {
|
14252 | var _this$props = this.props,
|
14253 | active = _this$props.active,
|
14254 | disabled = _this$props.disabled,
|
14255 | onClick = _this$props.onClick,
|
14256 | className = _this$props.className,
|
14257 | style = _this$props.style,
|
14258 | props = _objectWithoutPropertiesLoose(_this$props, ["active", "disabled", "onClick", "className", "style"]);
|
14259 |
|
14260 | delete props.onSelect;
|
14261 | delete props.eventKey;
|
14262 |
|
14263 | delete props.activeKey;
|
14264 | delete props.activeHref;
|
14265 |
|
14266 | if (!props.role) {
|
14267 | if (props.href === '#') {
|
14268 | props.role = 'button';
|
14269 | }
|
14270 | } else if (props.role === 'tab') {
|
14271 | props['aria-selected'] = active;
|
14272 | }
|
14273 |
|
14274 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", {
|
14275 | role: "presentation",
|
14276 | className: classnames_default()(className, {
|
14277 | active: active,
|
14278 | disabled: disabled
|
14279 | }),
|
14280 | style: style,
|
14281 | __source: {
|
14282 | fileName: NavItem_jsxFileName,
|
14283 | lineNumber: 67
|
14284 | },
|
14285 | __self: this
|
14286 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_SafeAnchor, _extends({}, props, {
|
14287 | disabled: disabled,
|
14288 | onClick: utils_createChainedFunction(onClick, this.handleClick),
|
14289 | __source: {
|
14290 | fileName: NavItem_jsxFileName,
|
14291 | lineNumber: 72
|
14292 | },
|
14293 | __self: this
|
14294 | })));
|
14295 | };
|
14296 |
|
14297 | return NavItem;
|
14298 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
14299 |
|
14300 | NavItem_NavItem.propTypes = NavItem_propTypes;
|
14301 | NavItem_NavItem.defaultProps = NavItem_defaultProps;
|
14302 | var src_NavItem = (NavItem_NavItem);
|
14303 |
|
14304 | var lib_Overlay = __webpack_require__(55);
|
14305 | var Overlay_default = __webpack_require__.n(lib_Overlay);
|
14306 |
|
14307 |
|
14308 |
|
14309 |
|
14310 |
|
14311 | var Overlay_jsxFileName = "/Users/jason/src/react-bootstrap/src/Overlay.js";
|
14312 |
|
14313 |
|
14314 |
|
14315 |
|
14316 |
|
14317 |
|
14318 |
|
14319 | var Overlay_propTypes = _extends({}, Overlay_default.a.propTypes, {
|
14320 | |
14321 |
|
14322 |
|
14323 | show: prop_types_default.a.bool,
|
14324 |
|
14325 | |
14326 |
|
14327 |
|
14328 | rootClose: prop_types_default.a.bool,
|
14329 |
|
14330 | |
14331 |
|
14332 |
|
14333 |
|
14334 | onHide: prop_types_default.a.func,
|
14335 |
|
14336 | |
14337 |
|
14338 |
|
14339 | animation: prop_types_default.a.oneOfType([prop_types_default.a.bool, elementType_default.a]),
|
14340 |
|
14341 | |
14342 |
|
14343 |
|
14344 | onEnter: prop_types_default.a.func,
|
14345 |
|
14346 | |
14347 |
|
14348 |
|
14349 | onEntering: prop_types_default.a.func,
|
14350 |
|
14351 | |
14352 |
|
14353 |
|
14354 | onEntered: prop_types_default.a.func,
|
14355 |
|
14356 | |
14357 |
|
14358 |
|
14359 | onExit: prop_types_default.a.func,
|
14360 |
|
14361 | |
14362 |
|
14363 |
|
14364 | onExiting: prop_types_default.a.func,
|
14365 |
|
14366 | |
14367 |
|
14368 |
|
14369 | onExited: prop_types_default.a.func,
|
14370 |
|
14371 | |
14372 |
|
14373 |
|
14374 | placement: prop_types_default.a.oneOf(['top', 'right', 'bottom', 'left'])
|
14375 | });
|
14376 |
|
14377 | var Overlay_defaultProps = {
|
14378 | animation: src_Fade,
|
14379 | rootClose: false,
|
14380 | show: false,
|
14381 | placement: 'right'
|
14382 | };
|
14383 |
|
14384 | var Overlay_Overlay =
|
14385 |
|
14386 | function (_React$Component) {
|
14387 | _inheritsLoose(Overlay, _React$Component);
|
14388 |
|
14389 | function Overlay() {
|
14390 | return _React$Component.apply(this, arguments) || this;
|
14391 | }
|
14392 |
|
14393 | var _proto = Overlay.prototype;
|
14394 |
|
14395 | _proto.render = function render() {
|
14396 | var _this$props = this.props,
|
14397 | animation = _this$props.animation,
|
14398 | children = _this$props.children,
|
14399 | props = _objectWithoutPropertiesLoose(_this$props, ["animation", "children"]);
|
14400 |
|
14401 | var transition = animation === true ? src_Fade : animation || null;
|
14402 | var child;
|
14403 |
|
14404 | if (!transition) {
|
14405 | child = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(children, {
|
14406 | className: classnames_default()(children.props.className, 'in')
|
14407 | });
|
14408 | } else {
|
14409 | child = children;
|
14410 | }
|
14411 |
|
14412 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Overlay_default.a, _extends({}, props, {
|
14413 | transition: transition,
|
14414 | __source: {
|
14415 | fileName: Overlay_jsxFileName,
|
14416 | lineNumber: 91
|
14417 | },
|
14418 | __self: this
|
14419 | }), child);
|
14420 | };
|
14421 |
|
14422 | return Overlay;
|
14423 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
14424 |
|
14425 | Overlay_Overlay.propTypes = Overlay_propTypes;
|
14426 | Overlay_Overlay.defaultProps = Overlay_defaultProps;
|
14427 | var src_Overlay = (Overlay_Overlay);
|
14428 |
|
14429 | var is_array = __webpack_require__(79);
|
14430 | var is_array_default = __webpack_require__.n(is_array);
|
14431 |
|
14432 |
|
14433 |
|
14434 |
|
14435 |
|
14436 |
|
14437 |
|
14438 | var OverlayTrigger_jsxFileName = "/Users/jason/src/react-bootstrap/src/OverlayTrigger.js";
|
14439 |
|
14440 |
|
14441 |
|
14442 |
|
14443 |
|
14444 |
|
14445 |
|
14446 |
|
14447 |
|
14448 |
|
14449 |
|
14450 |
|
14451 |
|
14452 |
|
14453 |
|
14454 | function isOneOf(one, of) {
|
14455 | if (is_array_default()(of)) {
|
14456 | return of.indexOf(one) >= 0;
|
14457 | }
|
14458 |
|
14459 | return one === of;
|
14460 | }
|
14461 |
|
14462 | var triggerType = prop_types_default.a.oneOf(['click', 'hover', 'focus']);
|
14463 |
|
14464 | var OverlayTrigger_propTypes = _extends({}, src_Overlay.propTypes, {
|
14465 | |
14466 |
|
14467 |
|
14468 | trigger: prop_types_default.a.oneOfType([triggerType, prop_types_default.a.arrayOf(triggerType)]),
|
14469 |
|
14470 | |
14471 |
|
14472 |
|
14473 | delay: prop_types_default.a.number,
|
14474 |
|
14475 | |
14476 |
|
14477 |
|
14478 | delayShow: prop_types_default.a.number,
|
14479 |
|
14480 | |
14481 |
|
14482 |
|
14483 | delayHide: prop_types_default.a.number,
|
14484 |
|
14485 |
|
14486 | |
14487 |
|
14488 |
|
14489 |
|
14490 | defaultOverlayShown: prop_types_default.a.bool,
|
14491 |
|
14492 | |
14493 |
|
14494 |
|
14495 | overlay: prop_types_default.a.node.isRequired,
|
14496 |
|
14497 | |
14498 |
|
14499 |
|
14500 | onBlur: prop_types_default.a.func,
|
14501 |
|
14502 | |
14503 |
|
14504 |
|
14505 | onClick: prop_types_default.a.func,
|
14506 |
|
14507 | |
14508 |
|
14509 |
|
14510 | onFocus: prop_types_default.a.func,
|
14511 |
|
14512 | |
14513 |
|
14514 |
|
14515 | onMouseOut: prop_types_default.a.func,
|
14516 |
|
14517 | |
14518 |
|
14519 |
|
14520 | onMouseOver: prop_types_default.a.func,
|
14521 |
|
14522 |
|
14523 | |
14524 |
|
14525 |
|
14526 | target: prop_types_default.a.oneOf([null]),
|
14527 |
|
14528 | |
14529 |
|
14530 |
|
14531 | onHide: prop_types_default.a.oneOf([null]),
|
14532 |
|
14533 | |
14534 |
|
14535 |
|
14536 | show: prop_types_default.a.oneOf([null])
|
14537 | });
|
14538 |
|
14539 | var OverlayTrigger_defaultProps = {
|
14540 | defaultOverlayShown: false,
|
14541 | trigger: ['hover', 'focus']
|
14542 | };
|
14543 |
|
14544 | var OverlayTrigger_OverlayTrigger =
|
14545 |
|
14546 | function (_React$Component) {
|
14547 | _inheritsLoose(OverlayTrigger, _React$Component);
|
14548 |
|
14549 | function OverlayTrigger(props, context) {
|
14550 | var _this;
|
14551 |
|
14552 | _this = _React$Component.call(this, props, context) || this;
|
14553 | _this.handleToggle = _this.handleToggle.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
14554 | _this.handleDelayedShow = _this.handleDelayedShow.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
14555 | _this.handleDelayedHide = _this.handleDelayedHide.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
14556 | _this.handleHide = _this.handleHide.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
14557 |
|
14558 | _this.handleMouseOver = function (e) {
|
14559 | return _this.handleMouseOverOut(_this.handleDelayedShow, e, 'fromElement');
|
14560 | };
|
14561 |
|
14562 | _this.handleMouseOut = function (e) {
|
14563 | return _this.handleMouseOverOut(_this.handleDelayedHide, e, 'toElement');
|
14564 | };
|
14565 |
|
14566 | _this._mountNode = null;
|
14567 | _this.state = {
|
14568 | show: props.defaultOverlayShown
|
14569 | };
|
14570 | return _this;
|
14571 | }
|
14572 |
|
14573 | var _proto = OverlayTrigger.prototype;
|
14574 |
|
14575 | _proto.componentDidMount = function componentDidMount() {
|
14576 | this._mountNode = document.createElement('div');
|
14577 | this.renderOverlay();
|
14578 | };
|
14579 |
|
14580 | _proto.componentDidUpdate = function componentDidUpdate() {
|
14581 | this.renderOverlay();
|
14582 | };
|
14583 |
|
14584 | _proto.componentWillUnmount = function componentWillUnmount() {
|
14585 | external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.unmountComponentAtNode(this._mountNode);
|
14586 | this._mountNode = null;
|
14587 | clearTimeout(this._hoverShowDelay);
|
14588 | clearTimeout(this._hoverHideDelay);
|
14589 | };
|
14590 |
|
14591 | _proto.handleDelayedHide = function handleDelayedHide() {
|
14592 | var _this2 = this;
|
14593 |
|
14594 | if (this._hoverShowDelay != null) {
|
14595 | clearTimeout(this._hoverShowDelay);
|
14596 | this._hoverShowDelay = null;
|
14597 | return;
|
14598 | }
|
14599 |
|
14600 | if (!this.state.show || this._hoverHideDelay != null) {
|
14601 | return;
|
14602 | }
|
14603 |
|
14604 | var delay = this.props.delayHide != null ? this.props.delayHide : this.props.delay;
|
14605 |
|
14606 | if (!delay) {
|
14607 | this.hide();
|
14608 | return;
|
14609 | }
|
14610 |
|
14611 | this._hoverHideDelay = setTimeout(function () {
|
14612 | _this2._hoverHideDelay = null;
|
14613 |
|
14614 | _this2.hide();
|
14615 | }, delay);
|
14616 | };
|
14617 |
|
14618 | _proto.handleDelayedShow = function handleDelayedShow() {
|
14619 | var _this3 = this;
|
14620 |
|
14621 | if (this._hoverHideDelay != null) {
|
14622 | clearTimeout(this._hoverHideDelay);
|
14623 | this._hoverHideDelay = null;
|
14624 | return;
|
14625 | }
|
14626 |
|
14627 | if (this.state.show || this._hoverShowDelay != null) {
|
14628 | return;
|
14629 | }
|
14630 |
|
14631 | var delay = this.props.delayShow != null ? this.props.delayShow : this.props.delay;
|
14632 |
|
14633 | if (!delay) {
|
14634 | this.show();
|
14635 | return;
|
14636 | }
|
14637 |
|
14638 | this._hoverShowDelay = setTimeout(function () {
|
14639 | _this3._hoverShowDelay = null;
|
14640 |
|
14641 | _this3.show();
|
14642 | }, delay);
|
14643 | };
|
14644 |
|
14645 | _proto.handleHide = function handleHide() {
|
14646 | this.hide();
|
14647 | };
|
14648 |
|
14649 |
|
14650 |
|
14651 |
|
14652 |
|
14653 | _proto.handleMouseOverOut = function handleMouseOverOut(handler, e, relatedNative) {
|
14654 | var target = e.currentTarget;
|
14655 | var related = e.relatedTarget || e.nativeEvent[relatedNative];
|
14656 |
|
14657 | if ((!related || related !== target) && !contains_default()(target, related)) {
|
14658 | handler(e);
|
14659 | }
|
14660 | };
|
14661 |
|
14662 | _proto.handleToggle = function handleToggle() {
|
14663 | if (this.state.show) {
|
14664 | this.hide();
|
14665 | } else {
|
14666 | this.show();
|
14667 | }
|
14668 | };
|
14669 |
|
14670 | _proto.hide = function hide() {
|
14671 | this.setState({
|
14672 | show: false
|
14673 | });
|
14674 | };
|
14675 |
|
14676 | _proto.makeOverlay = function makeOverlay(overlay, props) {
|
14677 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Overlay, _extends({}, props, {
|
14678 | show: this.state.show,
|
14679 | onHide: this.handleHide,
|
14680 | target: this,
|
14681 | __source: {
|
14682 | fileName: OverlayTrigger_jsxFileName,
|
14683 | lineNumber: 220
|
14684 | },
|
14685 | __self: this
|
14686 | }), overlay);
|
14687 | };
|
14688 |
|
14689 | _proto.show = function show() {
|
14690 | this.setState({
|
14691 | show: true
|
14692 | });
|
14693 | };
|
14694 |
|
14695 | _proto.renderOverlay = function renderOverlay() {
|
14696 | external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.unstable_renderSubtreeIntoContainer(this, this._overlay, this._mountNode);
|
14697 | };
|
14698 |
|
14699 | _proto.render = function render() {
|
14700 | var _this$props = this.props,
|
14701 | trigger = _this$props.trigger,
|
14702 | overlay = _this$props.overlay,
|
14703 | children = _this$props.children,
|
14704 | onBlur = _this$props.onBlur,
|
14705 | onClick = _this$props.onClick,
|
14706 | onFocus = _this$props.onFocus,
|
14707 | onMouseOut = _this$props.onMouseOut,
|
14708 | onMouseOver = _this$props.onMouseOver,
|
14709 | props = _objectWithoutPropertiesLoose(_this$props, ["trigger", "overlay", "children", "onBlur", "onClick", "onFocus", "onMouseOut", "onMouseOver"]);
|
14710 |
|
14711 | delete props.delay;
|
14712 | delete props.delayShow;
|
14713 | delete props.delayHide;
|
14714 | delete props.defaultOverlayShown;
|
14715 | var child = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.only(children);
|
14716 | var childProps = child.props;
|
14717 | var triggerProps = {};
|
14718 |
|
14719 | if (this.state.show) {
|
14720 | triggerProps['aria-describedby'] = overlay.props.id;
|
14721 | }
|
14722 |
|
14723 |
|
14724 |
|
14725 | triggerProps.onClick = utils_createChainedFunction(childProps.onClick, onClick);
|
14726 |
|
14727 | if (isOneOf('click', trigger)) {
|
14728 | triggerProps.onClick = utils_createChainedFunction(triggerProps.onClick, this.handleToggle);
|
14729 | }
|
14730 |
|
14731 | if (isOneOf('hover', trigger)) {
|
14732 | false ? undefined : void 0;
|
14733 | triggerProps.onMouseOver = utils_createChainedFunction(childProps.onMouseOver, onMouseOver, this.handleMouseOver);
|
14734 | triggerProps.onMouseOut = utils_createChainedFunction(childProps.onMouseOut, onMouseOut, this.handleMouseOut);
|
14735 | }
|
14736 |
|
14737 | if (isOneOf('focus', trigger)) {
|
14738 | triggerProps.onFocus = utils_createChainedFunction(childProps.onFocus, onFocus, this.handleDelayedShow);
|
14739 | triggerProps.onBlur = utils_createChainedFunction(childProps.onBlur, onBlur, this.handleDelayedHide);
|
14740 | }
|
14741 |
|
14742 | this._overlay = this.makeOverlay(overlay, props);
|
14743 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, triggerProps);
|
14744 | };
|
14745 |
|
14746 | return OverlayTrigger;
|
14747 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
14748 |
|
14749 | OverlayTrigger_OverlayTrigger.propTypes = OverlayTrigger_propTypes;
|
14750 | OverlayTrigger_OverlayTrigger.defaultProps = OverlayTrigger_defaultProps;
|
14751 | var src_OverlayTrigger = (OverlayTrigger_OverlayTrigger);
|
14752 |
|
14753 |
|
14754 |
|
14755 |
|
14756 | var PageHeader_jsxFileName = "/Users/jason/src/react-bootstrap/src/PageHeader.js";
|
14757 |
|
14758 |
|
14759 |
|
14760 |
|
14761 | var PageHeader_PageHeader =
|
14762 |
|
14763 | function (_React$Component) {
|
14764 | _inheritsLoose(PageHeader, _React$Component);
|
14765 |
|
14766 | function PageHeader() {
|
14767 | return _React$Component.apply(this, arguments) || this;
|
14768 | }
|
14769 |
|
14770 | var _proto = PageHeader.prototype;
|
14771 |
|
14772 | _proto.render = function render() {
|
14773 | var _this$props = this.props,
|
14774 | className = _this$props.className,
|
14775 | children = _this$props.children,
|
14776 | props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
14777 |
|
14778 | var _splitBsProps = splitBsProps(props),
|
14779 | bsProps = _splitBsProps[0],
|
14780 | elementProps = _splitBsProps[1];
|
14781 |
|
14782 | var classes = getClassSet(bsProps);
|
14783 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
14784 | className: classnames_default()(className, classes),
|
14785 | __source: {
|
14786 | fileName: PageHeader_jsxFileName,
|
14787 | lineNumber: 14
|
14788 | },
|
14789 | __self: this
|
14790 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("h1", {
|
14791 | __source: {
|
14792 | fileName: PageHeader_jsxFileName,
|
14793 | lineNumber: 15
|
14794 | },
|
14795 | __self: this
|
14796 | }, children));
|
14797 | };
|
14798 |
|
14799 | return PageHeader;
|
14800 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
14801 |
|
14802 | var src_PageHeader = (bootstrapUtils_bsClass('page-header', PageHeader_PageHeader));
|
14803 |
|
14804 |
|
14805 |
|
14806 |
|
14807 |
|
14808 | var PagerItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/PagerItem.js";
|
14809 |
|
14810 |
|
14811 |
|
14812 |
|
14813 |
|
14814 | var PagerItem_propTypes = {
|
14815 | disabled: prop_types_default.a.bool,
|
14816 | previous: prop_types_default.a.bool,
|
14817 | next: prop_types_default.a.bool,
|
14818 | onClick: prop_types_default.a.func,
|
14819 | onSelect: prop_types_default.a.func,
|
14820 | eventKey: prop_types_default.a.any
|
14821 | };
|
14822 | var PagerItem_defaultProps = {
|
14823 | disabled: false,
|
14824 | previous: false,
|
14825 | next: false
|
14826 | };
|
14827 |
|
14828 | var PagerItem_PagerItem =
|
14829 |
|
14830 | function (_React$Component) {
|
14831 | _inheritsLoose(PagerItem, _React$Component);
|
14832 |
|
14833 | function PagerItem(props, context) {
|
14834 | var _this;
|
14835 |
|
14836 | _this = _React$Component.call(this, props, context) || this;
|
14837 | _this.handleSelect = _this.handleSelect.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
14838 | return _this;
|
14839 | }
|
14840 |
|
14841 | var _proto = PagerItem.prototype;
|
14842 |
|
14843 | _proto.handleSelect = function handleSelect(e) {
|
14844 | var _this$props = this.props,
|
14845 | disabled = _this$props.disabled,
|
14846 | onSelect = _this$props.onSelect,
|
14847 | eventKey = _this$props.eventKey;
|
14848 |
|
14849 | if (disabled) {
|
14850 | e.preventDefault();
|
14851 | return;
|
14852 | }
|
14853 |
|
14854 | if (onSelect) {
|
14855 | onSelect(eventKey, e);
|
14856 | }
|
14857 | };
|
14858 |
|
14859 | _proto.render = function render() {
|
14860 | var _this$props2 = this.props,
|
14861 | disabled = _this$props2.disabled,
|
14862 | previous = _this$props2.previous,
|
14863 | next = _this$props2.next,
|
14864 | onClick = _this$props2.onClick,
|
14865 | className = _this$props2.className,
|
14866 | style = _this$props2.style,
|
14867 | props = _objectWithoutPropertiesLoose(_this$props2, ["disabled", "previous", "next", "onClick", "className", "style"]);
|
14868 |
|
14869 | delete props.onSelect;
|
14870 | delete props.eventKey;
|
14871 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", {
|
14872 | className: classnames_default()(className, {
|
14873 | disabled: disabled,
|
14874 | previous: previous,
|
14875 | next: next
|
14876 | }),
|
14877 | style: style,
|
14878 | __source: {
|
14879 | fileName: PagerItem_jsxFileName,
|
14880 | lineNumber: 58
|
14881 | },
|
14882 | __self: this
|
14883 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_SafeAnchor, _extends({}, props, {
|
14884 | disabled: disabled,
|
14885 | onClick: utils_createChainedFunction(onClick, this.handleSelect),
|
14886 | __source: {
|
14887 | fileName: PagerItem_jsxFileName,
|
14888 | lineNumber: 62
|
14889 | },
|
14890 | __self: this
|
14891 | })));
|
14892 | };
|
14893 |
|
14894 | return PagerItem;
|
14895 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
14896 |
|
14897 | PagerItem_PagerItem.propTypes = PagerItem_propTypes;
|
14898 | PagerItem_PagerItem.defaultProps = PagerItem_defaultProps;
|
14899 | var src_PagerItem = (PagerItem_PagerItem);
|
14900 |
|
14901 |
|
14902 |
|
14903 | var warned = {};
|
14904 |
|
14905 | function deprecationWarning(oldname, newname, link) {
|
14906 | var message;
|
14907 |
|
14908 | if (typeof oldname === 'object') {
|
14909 | message = oldname.message;
|
14910 | } else {
|
14911 | message = oldname + " is deprecated. Use " + newname + " instead.";
|
14912 |
|
14913 | if (link) {
|
14914 | message += "\nYou can read more about it at " + link;
|
14915 | }
|
14916 | }
|
14917 |
|
14918 | if (warned[message]) {
|
14919 | return;
|
14920 | }
|
14921 |
|
14922 | false ? undefined : void 0;
|
14923 | warned[message] = true;
|
14924 | }
|
14925 |
|
14926 | deprecationWarning.wrapper = function (Component) {
|
14927 | for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
14928 | args[_key - 1] = arguments[_key];
|
14929 | }
|
14930 |
|
14931 | return (
|
14932 |
|
14933 | function (_Component) {
|
14934 | _inheritsLoose(DeprecatedComponent, _Component);
|
14935 |
|
14936 | function DeprecatedComponent() {
|
14937 | return _Component.apply(this, arguments) || this;
|
14938 | }
|
14939 |
|
14940 | var _proto = DeprecatedComponent.prototype;
|
14941 |
|
14942 | _proto.componentWillMount = function componentWillMount() {
|
14943 | deprecationWarning.apply(void 0, args);
|
14944 |
|
14945 | if (_Component.prototype.componentWillMount) {
|
14946 | var _Component$prototype$;
|
14947 |
|
14948 | for (var _len2 = arguments.length, methodArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
14949 | methodArgs[_key2] = arguments[_key2];
|
14950 | }
|
14951 |
|
14952 | (_Component$prototype$ = _Component.prototype.componentWillMount).call.apply(_Component$prototype$, [this].concat(methodArgs));
|
14953 | }
|
14954 | };
|
14955 |
|
14956 | return DeprecatedComponent;
|
14957 | }(Component)
|
14958 | );
|
14959 | };
|
14960 |
|
14961 | var utils_deprecationWarning = (deprecationWarning);
|
14962 | function _resetWarned() {
|
14963 | warned = {};
|
14964 | }
|
14965 |
|
14966 |
|
14967 |
|
14968 | var PageItem = (utils_deprecationWarning.wrapper(src_PagerItem, '`<PageItem>`', '`<Pager.Item>`'));
|
14969 |
|
14970 |
|
14971 |
|
14972 |
|
14973 | var Pager_jsxFileName = "/Users/jason/src/react-bootstrap/src/Pager.js";
|
14974 |
|
14975 |
|
14976 |
|
14977 |
|
14978 |
|
14979 |
|
14980 |
|
14981 | var Pager_propTypes = {
|
14982 | onSelect: prop_types_default.a.func
|
14983 | };
|
14984 |
|
14985 | var Pager_Pager =
|
14986 |
|
14987 | function (_React$Component) {
|
14988 | _inheritsLoose(Pager, _React$Component);
|
14989 |
|
14990 | function Pager() {
|
14991 | return _React$Component.apply(this, arguments) || this;
|
14992 | }
|
14993 |
|
14994 | var _proto = Pager.prototype;
|
14995 |
|
14996 | _proto.render = function render() {
|
14997 | var _this$props = this.props,
|
14998 | onSelect = _this$props.onSelect,
|
14999 | className = _this$props.className,
|
15000 | children = _this$props.children,
|
15001 | props = _objectWithoutPropertiesLoose(_this$props, ["onSelect", "className", "children"]);
|
15002 |
|
15003 | var _splitBsProps = splitBsProps(props),
|
15004 | bsProps = _splitBsProps[0],
|
15005 | elementProps = _splitBsProps[1];
|
15006 |
|
15007 | var classes = getClassSet(bsProps);
|
15008 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", _extends({}, elementProps, {
|
15009 | className: classnames_default()(className, classes),
|
15010 | __source: {
|
15011 | fileName: Pager_jsxFileName,
|
15012 | lineNumber: 22
|
15013 | },
|
15014 | __self: this
|
15015 | }), ValidComponentChildren.map(children, function (child) {
|
15016 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, {
|
15017 | onSelect: utils_createChainedFunction(child.props.onSelect, onSelect)
|
15018 | });
|
15019 | }));
|
15020 | };
|
15021 |
|
15022 | return Pager;
|
15023 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
15024 |
|
15025 | Pager_Pager.propTypes = Pager_propTypes;
|
15026 | Pager_Pager.Item = src_PagerItem;
|
15027 | var src_Pager = (bootstrapUtils_bsClass('pager', Pager_Pager));
|
15028 |
|
15029 |
|
15030 |
|
15031 |
|
15032 | var PaginationItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/PaginationItem.js";
|
15033 |
|
15034 |
|
15035 |
|
15036 |
|
15037 |
|
15038 |
|
15039 | var PaginationItem_propTypes = {
|
15040 | eventKey: prop_types_default.a.any,
|
15041 | className: prop_types_default.a.string,
|
15042 | onSelect: prop_types_default.a.func,
|
15043 | disabled: prop_types_default.a.bool,
|
15044 | active: prop_types_default.a.bool,
|
15045 | activeLabel: prop_types_default.a.string.isRequired
|
15046 | };
|
15047 | var PaginationItem_defaultProps = {
|
15048 | active: false,
|
15049 | disabled: false,
|
15050 | activeLabel: '(current)'
|
15051 | };
|
15052 | function PaginationItem(_ref) {
|
15053 | var active = _ref.active,
|
15054 | disabled = _ref.disabled,
|
15055 | className = _ref.className,
|
15056 | style = _ref.style,
|
15057 | activeLabel = _ref.activeLabel,
|
15058 | children = _ref.children,
|
15059 | props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
15060 |
|
15061 | var Component = active || disabled ? 'span' : src_SafeAnchor;
|
15062 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", {
|
15063 | style: style,
|
15064 | className: classnames_default()(className, {
|
15065 | active: active,
|
15066 | disabled: disabled
|
15067 | }),
|
15068 | __source: {
|
15069 | fileName: PaginationItem_jsxFileName,
|
15070 | lineNumber: 34
|
15071 | },
|
15072 | __self: this
|
15073 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({
|
15074 | disabled: disabled
|
15075 | }, props, {
|
15076 | __source: {
|
15077 | fileName: PaginationItem_jsxFileName,
|
15078 | lineNumber: 35
|
15079 | },
|
15080 | __self: this
|
15081 | }), children, active && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
15082 | className: "sr-only",
|
15083 | __source: {
|
15084 | fileName: PaginationItem_jsxFileName,
|
15085 | lineNumber: 37
|
15086 | },
|
15087 | __self: this
|
15088 | }, activeLabel)));
|
15089 | }
|
15090 | PaginationItem.propTypes = PaginationItem_propTypes;
|
15091 | PaginationItem.defaultProps = PaginationItem_defaultProps;
|
15092 |
|
15093 | function createButton(name, defaultValue, label) {
|
15094 | var _class, _temp;
|
15095 |
|
15096 | if (label === void 0) {
|
15097 | label = name;
|
15098 | }
|
15099 |
|
15100 | return _temp = _class =
|
15101 |
|
15102 | function (_React$Component) {
|
15103 | _inheritsLoose(_class, _React$Component);
|
15104 |
|
15105 | function _class() {
|
15106 | return _React$Component.apply(this, arguments) || this;
|
15107 | }
|
15108 |
|
15109 | var _proto = _class.prototype;
|
15110 |
|
15111 | _proto.render = function render() {
|
15112 | var _this$props = this.props,
|
15113 | disabled = _this$props.disabled,
|
15114 | children = _this$props.children,
|
15115 | className = _this$props.className,
|
15116 | props = _objectWithoutPropertiesLoose(_this$props, ["disabled", "children", "className"]);
|
15117 |
|
15118 | var Component = disabled ? 'span' : src_SafeAnchor;
|
15119 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", _extends({
|
15120 | "aria-label": label,
|
15121 | className: classnames_default()(className, {
|
15122 | disabled: disabled
|
15123 | })
|
15124 | }, props, {
|
15125 | __source: {
|
15126 | fileName: PaginationItem_jsxFileName,
|
15127 | lineNumber: 55
|
15128 | },
|
15129 | __self: this
|
15130 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, {
|
15131 | __source: {
|
15132 | fileName: PaginationItem_jsxFileName,
|
15133 | lineNumber: 60
|
15134 | },
|
15135 | __self: this
|
15136 | }, children || defaultValue));
|
15137 | };
|
15138 |
|
15139 | return _class;
|
15140 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component), _class.displayName = name, _class.propTypes = {
|
15141 | disabled: prop_types_default.a.bool
|
15142 | }, _temp;
|
15143 | }
|
15144 |
|
15145 | var First = createButton('First', "\xAB");
|
15146 | var Prev = createButton('Prev', "\u2039");
|
15147 | var Ellipsis = createButton('Ellipsis', "\u2026", 'More');
|
15148 | var Next = createButton('Next', "\u203A");
|
15149 | var Last = createButton('Last', "\xBB");
|
15150 |
|
15151 |
|
15152 |
|
15153 |
|
15154 | var Pagination_jsxFileName = "/Users/jason/src/react-bootstrap/src/Pagination.js";
|
15155 |
|
15156 |
|
15157 |
|
15158 |
|
15159 |
|
15160 | var Pagination_Pagination =
|
15161 |
|
15162 | function (_React$Component) {
|
15163 | _inheritsLoose(Pagination, _React$Component);
|
15164 |
|
15165 | function Pagination() {
|
15166 | return _React$Component.apply(this, arguments) || this;
|
15167 | }
|
15168 |
|
15169 | var _proto = Pagination.prototype;
|
15170 |
|
15171 | _proto.render = function render() {
|
15172 | var _this$props = this.props,
|
15173 | className = _this$props.className,
|
15174 | children = _this$props.children,
|
15175 | props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
15176 |
|
15177 | var _splitBsProps = splitBsProps(props),
|
15178 | bsProps = _splitBsProps[0],
|
15179 | elementProps = _splitBsProps[1];
|
15180 |
|
15181 | var classes = getClassSet(bsProps);
|
15182 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", _extends({}, elementProps, {
|
15183 | className: classnames_default()(className, classes),
|
15184 | __source: {
|
15185 | fileName: Pagination_jsxFileName,
|
15186 | lineNumber: 22
|
15187 | },
|
15188 | __self: this
|
15189 | }), children);
|
15190 | };
|
15191 |
|
15192 | return Pagination;
|
15193 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
15194 |
|
15195 | bootstrapUtils_bsClass('pagination', Pagination_Pagination);
|
15196 | Pagination_Pagination.First = First;
|
15197 | Pagination_Pagination.Prev = Prev;
|
15198 | Pagination_Pagination.Ellipsis = Ellipsis;
|
15199 | Pagination_Pagination.Item = PaginationItem;
|
15200 | Pagination_Pagination.Next = Next;
|
15201 | Pagination_Pagination.Last = Last;
|
15202 | var src_Pagination = (Pagination_Pagination);
|
15203 |
|
15204 |
|
15205 |
|
15206 | var PanelCollapse_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelCollapse.js";
|
15207 |
|
15208 |
|
15209 |
|
15210 |
|
15211 | var PanelCollapse_propTypes = {
|
15212 | |
15213 |
|
15214 |
|
15215 | onEnter: prop_types_default.a.func,
|
15216 |
|
15217 | |
15218 |
|
15219 |
|
15220 | onEntering: prop_types_default.a.func,
|
15221 |
|
15222 | |
15223 |
|
15224 |
|
15225 | onEntered: prop_types_default.a.func,
|
15226 |
|
15227 | |
15228 |
|
15229 |
|
15230 | onExit: prop_types_default.a.func,
|
15231 |
|
15232 | |
15233 |
|
15234 |
|
15235 | onExiting: prop_types_default.a.func,
|
15236 |
|
15237 | |
15238 |
|
15239 |
|
15240 | onExited: prop_types_default.a.func
|
15241 | };
|
15242 | var PanelCollapse_contextTypes = {
|
15243 | $bs_panel: prop_types_default.a.shape({
|
15244 | headingId: prop_types_default.a.string,
|
15245 | bodyId: prop_types_default.a.string,
|
15246 | bsClass: prop_types_default.a.string,
|
15247 | expanded: prop_types_default.a.bool
|
15248 | })
|
15249 | };
|
15250 |
|
15251 | var PanelCollapse_PanelCollapse =
|
15252 |
|
15253 | function (_React$Component) {
|
15254 | _inheritsLoose(PanelCollapse, _React$Component);
|
15255 |
|
15256 | function PanelCollapse() {
|
15257 | return _React$Component.apply(this, arguments) || this;
|
15258 | }
|
15259 |
|
15260 | var _proto = PanelCollapse.prototype;
|
15261 |
|
15262 | _proto.render = function render() {
|
15263 | var children = this.props.children;
|
15264 |
|
15265 | var _ref = this.context.$bs_panel || {},
|
15266 | headingId = _ref.headingId,
|
15267 | bodyId = _ref.bodyId,
|
15268 | _bsClass = _ref.bsClass,
|
15269 | expanded = _ref.expanded;
|
15270 |
|
15271 | var _splitBsProps = splitBsProps(this.props),
|
15272 | bsProps = _splitBsProps[0],
|
15273 | props = _splitBsProps[1];
|
15274 |
|
15275 | bsProps.bsClass = _bsClass || bsProps.bsClass;
|
15276 |
|
15277 | if (headingId && bodyId) {
|
15278 | props.id = bodyId;
|
15279 | props.role = props.role || 'tabpanel';
|
15280 | props['aria-labelledby'] = headingId;
|
15281 | }
|
15282 |
|
15283 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Collapse, _extends({
|
15284 | in: expanded
|
15285 | }, props, {
|
15286 | __source: {
|
15287 | fileName: PanelCollapse_jsxFileName,
|
15288 | lineNumber: 60
|
15289 | },
|
15290 | __self: this
|
15291 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
15292 | className: prefix(bsProps, 'collapse'),
|
15293 | __source: {
|
15294 | fileName: PanelCollapse_jsxFileName,
|
15295 | lineNumber: 61
|
15296 | },
|
15297 | __self: this
|
15298 | }, children));
|
15299 | };
|
15300 |
|
15301 | return PanelCollapse;
|
15302 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
15303 |
|
15304 | PanelCollapse_PanelCollapse.propTypes = PanelCollapse_propTypes;
|
15305 | PanelCollapse_PanelCollapse.contextTypes = PanelCollapse_contextTypes;
|
15306 | var src_PanelCollapse = (bootstrapUtils_bsClass('panel', PanelCollapse_PanelCollapse));
|
15307 |
|
15308 |
|
15309 |
|
15310 | var PanelBody_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelBody.js";
|
15311 |
|
15312 |
|
15313 |
|
15314 |
|
15315 |
|
15316 | var PanelBody_propTypes = {
|
15317 | |
15318 |
|
15319 |
|
15320 |
|
15321 |
|
15322 |
|
15323 |
|
15324 |
|
15325 |
|
15326 |
|
15327 |
|
15328 | collapsible: prop_types_default.a.bool.isRequired
|
15329 | };
|
15330 | var PanelBody_defaultProps = {
|
15331 | collapsible: false
|
15332 | };
|
15333 | var PanelBody_contextTypes = {
|
15334 | $bs_panel: prop_types_default.a.shape({
|
15335 | bsClass: prop_types_default.a.string
|
15336 | })
|
15337 | };
|
15338 |
|
15339 | var PanelBody_PanelBody =
|
15340 |
|
15341 | function (_React$Component) {
|
15342 | _inheritsLoose(PanelBody, _React$Component);
|
15343 |
|
15344 | function PanelBody() {
|
15345 | return _React$Component.apply(this, arguments) || this;
|
15346 | }
|
15347 |
|
15348 | var _proto = PanelBody.prototype;
|
15349 |
|
15350 | _proto.render = function render() {
|
15351 | var _this$props = this.props,
|
15352 | children = _this$props.children,
|
15353 | className = _this$props.className,
|
15354 | collapsible = _this$props.collapsible;
|
15355 |
|
15356 | var _ref = this.context.$bs_panel || {},
|
15357 | _bsClass = _ref.bsClass;
|
15358 |
|
15359 | var _splitBsPropsAndOmit = splitBsPropsAndOmit(this.props, ['collapsible']),
|
15360 | bsProps = _splitBsPropsAndOmit[0],
|
15361 | elementProps = _splitBsPropsAndOmit[1];
|
15362 |
|
15363 | bsProps.bsClass = _bsClass || bsProps.bsClass;
|
15364 | var body = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
15365 | className: classnames_default()(className, prefix(bsProps, 'body')),
|
15366 | __source: {
|
15367 | fileName: PanelBody_jsxFileName,
|
15368 | lineNumber: 43
|
15369 | },
|
15370 | __self: this
|
15371 | }), children);
|
15372 |
|
15373 | if (collapsible) {
|
15374 | body = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_PanelCollapse, {
|
15375 | __source: {
|
15376 | fileName: PanelBody_jsxFileName,
|
15377 | lineNumber: 49
|
15378 | },
|
15379 | __self: this
|
15380 | }, body);
|
15381 | }
|
15382 |
|
15383 | return body;
|
15384 | };
|
15385 |
|
15386 | return PanelBody;
|
15387 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
15388 |
|
15389 | PanelBody_PanelBody.propTypes = PanelBody_propTypes;
|
15390 | PanelBody_PanelBody.defaultProps = PanelBody_defaultProps;
|
15391 | PanelBody_PanelBody.contextTypes = PanelBody_contextTypes;
|
15392 | var src_PanelBody = (bootstrapUtils_bsClass('panel', PanelBody_PanelBody));
|
15393 |
|
15394 | var lib_elementType = __webpack_require__(23);
|
15395 | var lib_elementType_default = __webpack_require__.n(lib_elementType);
|
15396 |
|
15397 |
|
15398 |
|
15399 |
|
15400 |
|
15401 | var PanelHeading_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelHeading.js";
|
15402 |
|
15403 |
|
15404 |
|
15405 |
|
15406 |
|
15407 | var PanelHeading_propTypes = {
|
15408 | componentClass: lib_elementType_default.a
|
15409 | };
|
15410 | var PanelHeading_defaultProps = {
|
15411 | componentClass: 'div'
|
15412 | };
|
15413 | var PanelHeading_contextTypes = {
|
15414 | $bs_panel: prop_types_default.a.shape({
|
15415 | headingId: prop_types_default.a.string,
|
15416 | bsClass: prop_types_default.a.string
|
15417 | })
|
15418 | };
|
15419 |
|
15420 | var PanelHeading_PanelHeading =
|
15421 |
|
15422 | function (_React$Component) {
|
15423 | _inheritsLoose(PanelHeading, _React$Component);
|
15424 |
|
15425 | function PanelHeading() {
|
15426 | return _React$Component.apply(this, arguments) || this;
|
15427 | }
|
15428 |
|
15429 | var _proto = PanelHeading.prototype;
|
15430 |
|
15431 | _proto.render = function render() {
|
15432 | var _this$props = this.props,
|
15433 | children = _this$props.children,
|
15434 | className = _this$props.className,
|
15435 | Component = _this$props.componentClass,
|
15436 | props = _objectWithoutPropertiesLoose(_this$props, ["children", "className", "componentClass"]);
|
15437 |
|
15438 | var _ref = this.context.$bs_panel || {},
|
15439 | headingId = _ref.headingId,
|
15440 | _bsClass = _ref.bsClass;
|
15441 |
|
15442 | var _splitBsProps = splitBsProps(props),
|
15443 | bsProps = _splitBsProps[0],
|
15444 | elementProps = _splitBsProps[1];
|
15445 |
|
15446 | bsProps.bsClass = _bsClass || bsProps.bsClass;
|
15447 |
|
15448 | if (headingId) {
|
15449 | elementProps.role = elementProps.role || 'tab';
|
15450 | elementProps.id = headingId;
|
15451 | }
|
15452 |
|
15453 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
15454 | className: classnames_default()(className, prefix(bsProps, 'heading')),
|
15455 | __source: {
|
15456 | fileName: PanelHeading_jsxFileName,
|
15457 | lineNumber: 42
|
15458 | },
|
15459 | __self: this
|
15460 | }), children);
|
15461 | };
|
15462 |
|
15463 | return PanelHeading;
|
15464 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
15465 |
|
15466 | PanelHeading_PanelHeading.propTypes = PanelHeading_propTypes;
|
15467 | PanelHeading_PanelHeading.defaultProps = PanelHeading_defaultProps;
|
15468 | PanelHeading_PanelHeading.contextTypes = PanelHeading_contextTypes;
|
15469 | var src_PanelHeading = (bootstrapUtils_bsClass('panel', PanelHeading_PanelHeading));
|
15470 |
|
15471 |
|
15472 |
|
15473 |
|
15474 |
|
15475 | var PanelToggle_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelToggle.js";
|
15476 |
|
15477 |
|
15478 |
|
15479 |
|
15480 |
|
15481 |
|
15482 | var PanelToggle_propTypes = {
|
15483 | |
15484 |
|
15485 |
|
15486 |
|
15487 |
|
15488 | onClick: prop_types_default.a.func,
|
15489 |
|
15490 | |
15491 |
|
15492 |
|
15493 | componentClass: lib_elementType_default.a
|
15494 | };
|
15495 | var PanelToggle_defaultProps = {
|
15496 | componentClass: src_SafeAnchor
|
15497 | };
|
15498 | var PanelToggle_contextTypes = {
|
15499 | $bs_panel: prop_types_default.a.shape({
|
15500 | bodyId: prop_types_default.a.string,
|
15501 | onToggle: prop_types_default.a.func,
|
15502 | expanded: prop_types_default.a.bool
|
15503 | })
|
15504 | };
|
15505 |
|
15506 | var PanelToggle_PanelToggle =
|
15507 |
|
15508 | function (_React$Component) {
|
15509 | _inheritsLoose(PanelToggle, _React$Component);
|
15510 |
|
15511 | function PanelToggle() {
|
15512 | var _this;
|
15513 |
|
15514 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
15515 | args[_key] = arguments[_key];
|
15516 | }
|
15517 |
|
15518 | _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
15519 | _this.handleToggle = _this.handleToggle.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
15520 | return _this;
|
15521 | }
|
15522 |
|
15523 | var _proto = PanelToggle.prototype;
|
15524 |
|
15525 | _proto.handleToggle = function handleToggle(event) {
|
15526 | var _ref = this.context.$bs_panel || {},
|
15527 | onToggle = _ref.onToggle;
|
15528 |
|
15529 | if (onToggle) {
|
15530 | onToggle(event);
|
15531 | }
|
15532 | };
|
15533 |
|
15534 | _proto.render = function render() {
|
15535 | var _this$props = this.props,
|
15536 | onClick = _this$props.onClick,
|
15537 | className = _this$props.className,
|
15538 | componentClass = _this$props.componentClass,
|
15539 | props = _objectWithoutPropertiesLoose(_this$props, ["onClick", "className", "componentClass"]);
|
15540 |
|
15541 | var _ref2 = this.context.$bs_panel || {},
|
15542 | expanded = _ref2.expanded,
|
15543 | bodyId = _ref2.bodyId;
|
15544 |
|
15545 | var Component = componentClass;
|
15546 | props.onClick = utils_createChainedFunction(onClick, this.handleToggle);
|
15547 | props['aria-expanded'] = expanded;
|
15548 | props.className = classnames_default()(className, !expanded && 'collapsed');
|
15549 |
|
15550 | if (bodyId) {
|
15551 | props['aria-controls'] = bodyId;
|
15552 | }
|
15553 |
|
15554 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, props, {
|
15555 | __source: {
|
15556 | fileName: PanelToggle_jsxFileName,
|
15557 | lineNumber: 62
|
15558 | },
|
15559 | __self: this
|
15560 | }));
|
15561 | };
|
15562 |
|
15563 | return PanelToggle;
|
15564 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
15565 |
|
15566 | PanelToggle_PanelToggle.propTypes = PanelToggle_propTypes;
|
15567 | PanelToggle_PanelToggle.defaultProps = PanelToggle_defaultProps;
|
15568 | PanelToggle_PanelToggle.contextTypes = PanelToggle_contextTypes;
|
15569 | var src_PanelToggle = (PanelToggle_PanelToggle);
|
15570 |
|
15571 |
|
15572 |
|
15573 |
|
15574 | var PanelTitle_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelTitle.js";
|
15575 |
|
15576 |
|
15577 |
|
15578 |
|
15579 |
|
15580 |
|
15581 | var PanelTitle_propTypes = {
|
15582 | componentClass: lib_elementType_default.a,
|
15583 |
|
15584 | |
15585 |
|
15586 |
|
15587 |
|
15588 | toggle: prop_types_default.a.bool
|
15589 | };
|
15590 | var PanelTitle_contextTypes = {
|
15591 | $bs_panel: prop_types_default.a.shape({
|
15592 | bsClass: prop_types_default.a.string
|
15593 | })
|
15594 | };
|
15595 | var PanelTitle_defaultProps = {
|
15596 | componentClass: 'div'
|
15597 | };
|
15598 |
|
15599 | var PanelTitle_PanelTitle =
|
15600 |
|
15601 | function (_React$Component) {
|
15602 | _inheritsLoose(PanelTitle, _React$Component);
|
15603 |
|
15604 | function PanelTitle() {
|
15605 | return _React$Component.apply(this, arguments) || this;
|
15606 | }
|
15607 |
|
15608 | var _proto = PanelTitle.prototype;
|
15609 |
|
15610 | _proto.render = function render() {
|
15611 | var _this$props = this.props,
|
15612 | children = _this$props.children,
|
15613 | className = _this$props.className,
|
15614 | toggle = _this$props.toggle,
|
15615 | Component = _this$props.componentClass,
|
15616 | props = _objectWithoutPropertiesLoose(_this$props, ["children", "className", "toggle", "componentClass"]);
|
15617 |
|
15618 | var _ref = this.context.$bs_panel || {},
|
15619 | _bsClass = _ref.bsClass;
|
15620 |
|
15621 | var _splitBsProps = splitBsProps(props),
|
15622 | bsProps = _splitBsProps[0],
|
15623 | elementProps = _splitBsProps[1];
|
15624 |
|
15625 | bsProps.bsClass = _bsClass || bsProps.bsClass;
|
15626 |
|
15627 | if (toggle) {
|
15628 | children = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_PanelToggle, {
|
15629 | __source: {
|
15630 | fileName: PanelTitle_jsxFileName,
|
15631 | lineNumber: 44
|
15632 | },
|
15633 | __self: this
|
15634 | }, children);
|
15635 | }
|
15636 |
|
15637 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
15638 | className: classnames_default()(className, prefix(bsProps, 'title')),
|
15639 | __source: {
|
15640 | fileName: PanelTitle_jsxFileName,
|
15641 | lineNumber: 48
|
15642 | },
|
15643 | __self: this
|
15644 | }), children);
|
15645 | };
|
15646 |
|
15647 | return PanelTitle;
|
15648 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
15649 |
|
15650 | PanelTitle_PanelTitle.propTypes = PanelTitle_propTypes;
|
15651 | PanelTitle_PanelTitle.defaultProps = PanelTitle_defaultProps;
|
15652 | PanelTitle_PanelTitle.contextTypes = PanelTitle_contextTypes;
|
15653 | var src_PanelTitle = (bootstrapUtils_bsClass('panel', PanelTitle_PanelTitle));
|
15654 |
|
15655 |
|
15656 |
|
15657 | var PanelFooter_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelFooter.js";
|
15658 |
|
15659 |
|
15660 |
|
15661 |
|
15662 | var PanelFooter_contextTypes = {
|
15663 | $bs_panel: prop_types_default.a.shape({
|
15664 | bsClass: prop_types_default.a.string
|
15665 | })
|
15666 | };
|
15667 |
|
15668 | var PanelFooter_PanelFooter =
|
15669 |
|
15670 | function (_React$Component) {
|
15671 | _inheritsLoose(PanelFooter, _React$Component);
|
15672 |
|
15673 | function PanelFooter() {
|
15674 | return _React$Component.apply(this, arguments) || this;
|
15675 | }
|
15676 |
|
15677 | var _proto = PanelFooter.prototype;
|
15678 |
|
15679 | _proto.render = function render() {
|
15680 | var _this$props = this.props,
|
15681 | children = _this$props.children,
|
15682 | className = _this$props.className;
|
15683 |
|
15684 | var _ref = this.context.$bs_panel || {},
|
15685 | _bsClass = _ref.bsClass;
|
15686 |
|
15687 | var _splitBsProps = splitBsProps(this.props),
|
15688 | bsProps = _splitBsProps[0],
|
15689 | elementProps = _splitBsProps[1];
|
15690 |
|
15691 | bsProps.bsClass = _bsClass || bsProps.bsClass;
|
15692 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
15693 | className: classnames_default()(className, prefix(bsProps, 'footer')),
|
15694 | __source: {
|
15695 | fileName: PanelFooter_jsxFileName,
|
15696 | lineNumber: 21
|
15697 | },
|
15698 | __self: this
|
15699 | }), children);
|
15700 | };
|
15701 |
|
15702 | return PanelFooter;
|
15703 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
15704 |
|
15705 | PanelFooter_PanelFooter.contextTypes = PanelFooter_contextTypes;
|
15706 | var src_PanelFooter = (bootstrapUtils_bsClass('panel', PanelFooter_PanelFooter));
|
15707 |
|
15708 |
|
15709 |
|
15710 |
|
15711 |
|
15712 | var Panel_jsxFileName = "/Users/jason/src/react-bootstrap/src/Panel.js";
|
15713 |
|
15714 |
|
15715 |
|
15716 |
|
15717 |
|
15718 |
|
15719 |
|
15720 |
|
15721 |
|
15722 |
|
15723 |
|
15724 |
|
15725 |
|
15726 | var has = Object.prototype.hasOwnProperty;
|
15727 |
|
15728 | var defaultGetId = function defaultGetId(id, type) {
|
15729 | return id ? id + "--" + type : null;
|
15730 | };
|
15731 |
|
15732 | var Panel_propTypes = {
|
15733 | |
15734 |
|
15735 |
|
15736 |
|
15737 |
|
15738 |
|
15739 |
|
15740 | expanded: prop_types_default.a.bool,
|
15741 |
|
15742 | |
15743 |
|
15744 |
|
15745 |
|
15746 |
|
15747 | onToggle: prop_types_default.a.func,
|
15748 | eventKey: prop_types_default.a.any,
|
15749 |
|
15750 | |
15751 |
|
15752 |
|
15753 | id: prop_types_default.a.string
|
15754 | };
|
15755 | var Panel_contextTypes = {
|
15756 | $bs_panelGroup: prop_types_default.a.shape({
|
15757 | getId: prop_types_default.a.func,
|
15758 | activeKey: prop_types_default.a.any,
|
15759 | onToggle: prop_types_default.a.func
|
15760 | })
|
15761 | };
|
15762 | var Panel_childContextTypes = {
|
15763 | $bs_panel: prop_types_default.a.shape({
|
15764 | headingId: prop_types_default.a.string,
|
15765 | bodyId: prop_types_default.a.string,
|
15766 | bsClass: prop_types_default.a.string,
|
15767 | onToggle: prop_types_default.a.func,
|
15768 | expanded: prop_types_default.a.bool
|
15769 | })
|
15770 | };
|
15771 |
|
15772 | var Panel_Panel =
|
15773 |
|
15774 | function (_React$Component) {
|
15775 | _inheritsLoose(Panel, _React$Component);
|
15776 |
|
15777 | function Panel() {
|
15778 | var _this;
|
15779 |
|
15780 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
15781 | args[_key] = arguments[_key];
|
15782 | }
|
15783 |
|
15784 | _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
15785 |
|
15786 | _this.handleToggle = function (e) {
|
15787 | var panelGroup = _this.context.$bs_panelGroup;
|
15788 | var expanded = !_this.getExpanded();
|
15789 |
|
15790 | if (panelGroup && panelGroup.onToggle) {
|
15791 | panelGroup.onToggle(_this.props.eventKey, expanded, e);
|
15792 | } else {
|
15793 | _this.props.onToggle(expanded, e);
|
15794 | }
|
15795 | };
|
15796 |
|
15797 | return _this;
|
15798 | }
|
15799 |
|
15800 | var _proto = Panel.prototype;
|
15801 |
|
15802 | _proto.getChildContext = function getChildContext() {
|
15803 | var _this$props = this.props,
|
15804 | eventKey = _this$props.eventKey,
|
15805 | id = _this$props.id;
|
15806 | var idKey = eventKey == null ? id : eventKey;
|
15807 | var ids;
|
15808 |
|
15809 | if (idKey !== null) {
|
15810 | var panelGroup = this.context.$bs_panelGroup;
|
15811 | var getId = panelGroup && panelGroup.getId || defaultGetId;
|
15812 | ids = {
|
15813 | headingId: getId(idKey, 'heading'),
|
15814 | bodyId: getId(idKey, 'body')
|
15815 | };
|
15816 | }
|
15817 |
|
15818 | return {
|
15819 | $bs_panel: _extends({}, ids, {
|
15820 | bsClass: this.props.bsClass,
|
15821 | expanded: this.getExpanded(),
|
15822 | onToggle: this.handleToggle
|
15823 | })
|
15824 | };
|
15825 | };
|
15826 |
|
15827 | _proto.getExpanded = function getExpanded() {
|
15828 | var panelGroup = this.context.$bs_panelGroup;
|
15829 |
|
15830 | if (panelGroup && has.call(panelGroup, 'activeKey')) {
|
15831 | false ? undefined : void 0;
|
15832 | return panelGroup.activeKey === this.props.eventKey;
|
15833 | }
|
15834 |
|
15835 | return !!this.props.expanded;
|
15836 | };
|
15837 |
|
15838 | _proto.render = function render() {
|
15839 | var _this$props2 = this.props,
|
15840 | className = _this$props2.className,
|
15841 | children = _this$props2.children;
|
15842 |
|
15843 | var _splitBsPropsAndOmit = splitBsPropsAndOmit(this.props, ['onToggle', 'eventKey', 'expanded']),
|
15844 | bsProps = _splitBsPropsAndOmit[0],
|
15845 | props = _splitBsPropsAndOmit[1];
|
15846 |
|
15847 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, props, {
|
15848 | className: classnames_default()(className, getClassSet(bsProps)),
|
15849 | __source: {
|
15850 | fileName: Panel_jsxFileName,
|
15851 | lineNumber: 130
|
15852 | },
|
15853 | __self: this
|
15854 | }), children);
|
15855 | };
|
15856 |
|
15857 | return Panel;
|
15858 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
15859 |
|
15860 | Panel_Panel.propTypes = Panel_propTypes;
|
15861 | Panel_Panel.contextTypes = Panel_contextTypes;
|
15862 | Panel_Panel.childContextTypes = Panel_childContextTypes;
|
15863 | var UncontrolledPanel = uncontrollable_default()(bootstrapUtils_bsClass('panel', bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY]), Style.DEFAULT, Panel_Panel)), {
|
15864 | expanded: 'onToggle'
|
15865 | });
|
15866 |
|
15867 | assign_default()(UncontrolledPanel, {
|
15868 | Heading: src_PanelHeading,
|
15869 | Title: src_PanelTitle,
|
15870 | Body: src_PanelBody,
|
15871 | Footer: src_PanelFooter,
|
15872 | Toggle: src_PanelToggle,
|
15873 | Collapse: src_PanelCollapse
|
15874 | });
|
15875 |
|
15876 | var src_Panel = (UncontrolledPanel);
|
15877 |
|
15878 |
|
15879 |
|
15880 |
|
15881 | var Popover_jsxFileName = "/Users/jason/src/react-bootstrap/src/Popover.js";
|
15882 |
|
15883 |
|
15884 |
|
15885 |
|
15886 |
|
15887 | var Popover_propTypes = {
|
15888 | |
15889 |
|
15890 |
|
15891 |
|
15892 |
|
15893 | id: isRequiredForA11y_default()(prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number])),
|
15894 |
|
15895 | |
15896 |
|
15897 |
|
15898 | placement: prop_types_default.a.oneOf(['top', 'right', 'bottom', 'left']),
|
15899 |
|
15900 | |
15901 |
|
15902 |
|
15903 | positionTop: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
|
15904 |
|
15905 | |
15906 |
|
15907 |
|
15908 | positionLeft: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
|
15909 |
|
15910 | |
15911 |
|
15912 |
|
15913 | arrowOffsetTop: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
|
15914 |
|
15915 | |
15916 |
|
15917 |
|
15918 | arrowOffsetLeft: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
|
15919 |
|
15920 | |
15921 |
|
15922 |
|
15923 | title: prop_types_default.a.node
|
15924 | };
|
15925 | var Popover_defaultProps = {
|
15926 | placement: 'right'
|
15927 | };
|
15928 |
|
15929 | var Popover_Popover =
|
15930 |
|
15931 | function (_React$Component) {
|
15932 | _inheritsLoose(Popover, _React$Component);
|
15933 |
|
15934 | function Popover() {
|
15935 | return _React$Component.apply(this, arguments) || this;
|
15936 | }
|
15937 |
|
15938 | var _proto = Popover.prototype;
|
15939 |
|
15940 | _proto.render = function render() {
|
15941 | var _extends2;
|
15942 |
|
15943 | var _this$props = this.props,
|
15944 | placement = _this$props.placement,
|
15945 | positionTop = _this$props.positionTop,
|
15946 | positionLeft = _this$props.positionLeft,
|
15947 | arrowOffsetTop = _this$props.arrowOffsetTop,
|
15948 | arrowOffsetLeft = _this$props.arrowOffsetLeft,
|
15949 | title = _this$props.title,
|
15950 | className = _this$props.className,
|
15951 | style = _this$props.style,
|
15952 | children = _this$props.children,
|
15953 | props = _objectWithoutPropertiesLoose(_this$props, ["placement", "positionTop", "positionLeft", "arrowOffsetTop", "arrowOffsetLeft", "title", "className", "style", "children"]);
|
15954 |
|
15955 | var _splitBsProps = splitBsProps(props),
|
15956 | bsProps = _splitBsProps[0],
|
15957 | elementProps = _splitBsProps[1];
|
15958 |
|
15959 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[placement] = true, _extends2));
|
15960 |
|
15961 | var outerStyle = _extends({
|
15962 | display: 'block',
|
15963 | top: positionTop,
|
15964 | left: positionLeft
|
15965 | }, style);
|
15966 |
|
15967 | var arrowStyle = {
|
15968 | top: arrowOffsetTop,
|
15969 | left: arrowOffsetLeft
|
15970 | };
|
15971 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
15972 | role: "tooltip",
|
15973 | className: classnames_default()(className, classes),
|
15974 | style: outerStyle,
|
15975 | __source: {
|
15976 | fileName: Popover_jsxFileName,
|
15977 | lineNumber: 91
|
15978 | },
|
15979 | __self: this
|
15980 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
15981 | className: "arrow",
|
15982 | style: arrowStyle,
|
15983 | __source: {
|
15984 | fileName: Popover_jsxFileName,
|
15985 | lineNumber: 97
|
15986 | },
|
15987 | __self: this
|
15988 | }), title && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("h3", {
|
15989 | className: prefix(bsProps, 'title'),
|
15990 | __source: {
|
15991 | fileName: Popover_jsxFileName,
|
15992 | lineNumber: 99
|
15993 | },
|
15994 | __self: this
|
15995 | }, title), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
15996 | className: prefix(bsProps, 'content'),
|
15997 | __source: {
|
15998 | fileName: Popover_jsxFileName,
|
15999 | lineNumber: 101
|
16000 | },
|
16001 | __self: this
|
16002 | }, children));
|
16003 | };
|
16004 |
|
16005 | return Popover;
|
16006 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
16007 |
|
16008 | Popover_Popover.propTypes = Popover_propTypes;
|
16009 | Popover_Popover.defaultProps = Popover_defaultProps;
|
16010 | var src_Popover = (bootstrapUtils_bsClass('popover', Popover_Popover));
|
16011 |
|
16012 |
|
16013 |
|
16014 |
|
16015 |
|
16016 | var ProgressBar_jsxFileName = "/Users/jason/src/react-bootstrap/src/ProgressBar.js";
|
16017 |
|
16018 |
|
16019 |
|
16020 |
|
16021 |
|
16022 |
|
16023 | var ROUND_PRECISION = 1000;
|
16024 |
|
16025 |
|
16026 |
|
16027 |
|
16028 | function onlyProgressBar(props, propName, componentName) {
|
16029 | var children = props[propName];
|
16030 |
|
16031 | if (!children) {
|
16032 | return null;
|
16033 | }
|
16034 |
|
16035 | var error = null;
|
16036 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
|
16037 | if (error) {
|
16038 | return;
|
16039 | }
|
16040 | |
16041 |
|
16042 |
|
16043 |
|
16044 |
|
16045 |
|
16046 |
|
16047 |
|
16048 | var element = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(ProgressBar_ProgressBar, {
|
16049 | __source: {
|
16050 | fileName: ProgressBar_jsxFileName,
|
16051 | lineNumber: 39
|
16052 | },
|
16053 | __self: this
|
16054 | });
|
16055 | if (child.type === element.type) return;
|
16056 | var childIdentifier = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child) ? child.type.displayName || child.type.name || child.type : child;
|
16057 | error = new Error("Children of " + componentName + " can contain only ProgressBar " + ("components. Found " + childIdentifier + "."));
|
16058 | });
|
16059 | return error;
|
16060 | }
|
16061 |
|
16062 | var ProgressBar_propTypes = {
|
16063 | min: prop_types_default.a.number,
|
16064 | now: prop_types_default.a.number,
|
16065 | max: prop_types_default.a.number,
|
16066 | label: prop_types_default.a.node,
|
16067 | srOnly: prop_types_default.a.bool,
|
16068 | striped: prop_types_default.a.bool,
|
16069 | active: prop_types_default.a.bool,
|
16070 | children: onlyProgressBar,
|
16071 |
|
16072 | |
16073 |
|
16074 |
|
16075 | isChild: prop_types_default.a.bool
|
16076 | };
|
16077 | var ProgressBar_defaultProps = {
|
16078 | min: 0,
|
16079 | max: 100,
|
16080 | active: false,
|
16081 | isChild: false,
|
16082 | srOnly: false,
|
16083 | striped: false
|
16084 | };
|
16085 |
|
16086 | function getPercentage(now, min, max) {
|
16087 | var percentage = (now - min) / (max - min) * 100;
|
16088 | return Math.round(percentage * ROUND_PRECISION) / ROUND_PRECISION;
|
16089 | }
|
16090 |
|
16091 | var ProgressBar_ProgressBar =
|
16092 |
|
16093 | function (_React$Component) {
|
16094 | _inheritsLoose(ProgressBar, _React$Component);
|
16095 |
|
16096 | function ProgressBar() {
|
16097 | return _React$Component.apply(this, arguments) || this;
|
16098 | }
|
16099 |
|
16100 | var _proto = ProgressBar.prototype;
|
16101 |
|
16102 | _proto.renderProgressBar = function renderProgressBar(_ref) {
|
16103 | var _extends2;
|
16104 |
|
16105 | var min = _ref.min,
|
16106 | now = _ref.now,
|
16107 | max = _ref.max,
|
16108 | label = _ref.label,
|
16109 | srOnly = _ref.srOnly,
|
16110 | striped = _ref.striped,
|
16111 | active = _ref.active,
|
16112 | className = _ref.className,
|
16113 | style = _ref.style,
|
16114 | props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "active", "className", "style"]);
|
16115 |
|
16116 | var _splitBsProps = splitBsProps(props),
|
16117 | bsProps = _splitBsProps[0],
|
16118 | elementProps = _splitBsProps[1];
|
16119 |
|
16120 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {
|
16121 | active: active
|
16122 | }, _extends2[prefix(bsProps, 'striped')] = active || striped, _extends2));
|
16123 |
|
16124 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
16125 | role: "progressbar",
|
16126 | className: classnames_default()(className, classes),
|
16127 | style: _extends({
|
16128 | width: getPercentage(now, min, max) + "%"
|
16129 | }, style),
|
16130 | "aria-valuenow": now,
|
16131 | "aria-valuemin": min,
|
16132 | "aria-valuemax": max,
|
16133 | __source: {
|
16134 | fileName: ProgressBar_jsxFileName,
|
16135 | lineNumber: 106
|
16136 | },
|
16137 | __self: this
|
16138 | }), srOnly ? external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
16139 | className: "sr-only",
|
16140 | __source: {
|
16141 | fileName: ProgressBar_jsxFileName,
|
16142 | lineNumber: 115
|
16143 | },
|
16144 | __self: this
|
16145 | }, label) : label);
|
16146 | };
|
16147 |
|
16148 | _proto.render = function render() {
|
16149 | var _this$props = this.props,
|
16150 | isChild = _this$props.isChild,
|
16151 | props = _objectWithoutPropertiesLoose(_this$props, ["isChild"]);
|
16152 |
|
16153 | if (isChild) {
|
16154 | return this.renderProgressBar(props);
|
16155 | }
|
16156 |
|
16157 | var min = props.min,
|
16158 | now = props.now,
|
16159 | max = props.max,
|
16160 | label = props.label,
|
16161 | srOnly = props.srOnly,
|
16162 | striped = props.striped,
|
16163 | active = props.active,
|
16164 | bsClass = props.bsClass,
|
16165 | bsStyle = props.bsStyle,
|
16166 | className = props.className,
|
16167 | children = props.children,
|
16168 | wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "active", "bsClass", "bsStyle", "className", "children"]);
|
16169 |
|
16170 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, wrapperProps, {
|
16171 | className: classnames_default()(className, 'progress'),
|
16172 | __source: {
|
16173 | fileName: ProgressBar_jsxFileName,
|
16174 | lineNumber: 143
|
16175 | },
|
16176 | __self: this
|
16177 | }), children ? ValidComponentChildren.map(children, function (child) {
|
16178 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, {
|
16179 | isChild: true
|
16180 | });
|
16181 | }) : this.renderProgressBar({
|
16182 | min: min,
|
16183 | now: now,
|
16184 | max: max,
|
16185 | label: label,
|
16186 | srOnly: srOnly,
|
16187 | striped: striped,
|
16188 | active: active,
|
16189 | bsClass: bsClass,
|
16190 | bsStyle: bsStyle
|
16191 | }));
|
16192 | };
|
16193 |
|
16194 | return ProgressBar;
|
16195 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
16196 |
|
16197 | ProgressBar_ProgressBar.propTypes = ProgressBar_propTypes;
|
16198 | ProgressBar_ProgressBar.defaultProps = ProgressBar_defaultProps;
|
16199 | var src_ProgressBar = (bootstrapUtils_bsClass('progress-bar', bsStyles(values_default()(State), ProgressBar_ProgressBar)));
|
16200 |
|
16201 |
|
16202 |
|
16203 |
|
16204 | var Radio_jsxFileName = "/Users/jason/src/react-bootstrap/src/Radio.js";
|
16205 |
|
16206 |
|
16207 |
|
16208 |
|
16209 |
|
16210 |
|
16211 |
|
16212 | var Radio_propTypes = {
|
16213 | inline: prop_types_default.a.bool,
|
16214 | disabled: prop_types_default.a.bool,
|
16215 | title: prop_types_default.a.string,
|
16216 |
|
16217 | |
16218 |
|
16219 |
|
16220 | validationState: prop_types_default.a.oneOf(['success', 'warning', 'error', null]),
|
16221 |
|
16222 | |
16223 |
|
16224 |
|
16225 |
|
16226 |
|
16227 |
|
16228 |
|
16229 | inputRef: prop_types_default.a.func
|
16230 | };
|
16231 | var Radio_defaultProps = {
|
16232 | inline: false,
|
16233 | disabled: false,
|
16234 | title: ''
|
16235 | };
|
16236 |
|
16237 | var Radio_Radio =
|
16238 |
|
16239 | function (_React$Component) {
|
16240 | _inheritsLoose(Radio, _React$Component);
|
16241 |
|
16242 | function Radio() {
|
16243 | return _React$Component.apply(this, arguments) || this;
|
16244 | }
|
16245 |
|
16246 | var _proto = Radio.prototype;
|
16247 |
|
16248 | _proto.render = function render() {
|
16249 | var _this$props = this.props,
|
16250 | inline = _this$props.inline,
|
16251 | disabled = _this$props.disabled,
|
16252 | validationState = _this$props.validationState,
|
16253 | inputRef = _this$props.inputRef,
|
16254 | className = _this$props.className,
|
16255 | style = _this$props.style,
|
16256 | title = _this$props.title,
|
16257 | children = _this$props.children,
|
16258 | props = _objectWithoutPropertiesLoose(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]);
|
16259 |
|
16260 | var _splitBsProps = splitBsProps(props),
|
16261 | bsProps = _splitBsProps[0],
|
16262 | elementProps = _splitBsProps[1];
|
16263 |
|
16264 | var input = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("input", _extends({}, elementProps, {
|
16265 | ref: inputRef,
|
16266 | type: "radio",
|
16267 | disabled: disabled,
|
16268 | __source: {
|
16269 | fileName: Radio_jsxFileName,
|
16270 | lineNumber: 56
|
16271 | },
|
16272 | __self: this
|
16273 | }));
|
16274 |
|
16275 | if (inline) {
|
16276 | var _classes2;
|
16277 |
|
16278 | var _classes = (_classes2 = {}, _classes2[prefix(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2);
|
16279 |
|
16280 |
|
16281 |
|
16282 | false ? undefined : void 0;
|
16283 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("label", {
|
16284 | className: classnames_default()(className, _classes),
|
16285 | style: style,
|
16286 | title: title,
|
16287 | __source: {
|
16288 | fileName: Radio_jsxFileName,
|
16289 | lineNumber: 80
|
16290 | },
|
16291 | __self: this
|
16292 | }, input, children);
|
16293 | }
|
16294 |
|
16295 | var classes = _extends({}, getClassSet(bsProps), {
|
16296 | disabled: disabled
|
16297 | });
|
16298 |
|
16299 | if (validationState) {
|
16300 | classes["has-" + validationState] = true;
|
16301 | }
|
16302 |
|
16303 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
16304 | className: classnames_default()(className, classes),
|
16305 | style: style,
|
16306 | __source: {
|
16307 | fileName: Radio_jsxFileName,
|
16308 | lineNumber: 100
|
16309 | },
|
16310 | __self: this
|
16311 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("label", {
|
16312 | title: title,
|
16313 | __source: {
|
16314 | fileName: Radio_jsxFileName,
|
16315 | lineNumber: 101
|
16316 | },
|
16317 | __self: this
|
16318 | }, input, children));
|
16319 | };
|
16320 |
|
16321 | return Radio;
|
16322 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
16323 |
|
16324 | Radio_Radio.propTypes = Radio_propTypes;
|
16325 | Radio_Radio.defaultProps = Radio_defaultProps;
|
16326 | var src_Radio = (bootstrapUtils_bsClass('radio', Radio_Radio));
|
16327 |
|
16328 |
|
16329 |
|
16330 |
|
16331 | var ResponsiveEmbed_jsxFileName = "/Users/jason/src/react-bootstrap/src/ResponsiveEmbed.js";
|
16332 |
|
16333 |
|
16334 |
|
16335 |
|
16336 |
|
16337 |
|
16338 | var ResponsiveEmbed_propTypes = {
|
16339 | |
16340 |
|
16341 |
|
16342 | children: prop_types_default.a.element.isRequired,
|
16343 |
|
16344 | |
16345 |
|
16346 |
|
16347 | a16by9: prop_types_default.a.bool,
|
16348 |
|
16349 | |
16350 |
|
16351 |
|
16352 | a4by3: prop_types_default.a.bool
|
16353 | };
|
16354 | var ResponsiveEmbed_defaultProps = {
|
16355 | a16by9: false,
|
16356 | a4by3: false
|
16357 | };
|
16358 |
|
16359 | var ResponsiveEmbed_ResponsiveEmbed =
|
16360 |
|
16361 | function (_React$Component) {
|
16362 | _inheritsLoose(ResponsiveEmbed, _React$Component);
|
16363 |
|
16364 | function ResponsiveEmbed() {
|
16365 | return _React$Component.apply(this, arguments) || this;
|
16366 | }
|
16367 |
|
16368 | var _proto = ResponsiveEmbed.prototype;
|
16369 |
|
16370 | _proto.render = function render() {
|
16371 | var _extends2;
|
16372 |
|
16373 | var _this$props = this.props,
|
16374 | a16by9 = _this$props.a16by9,
|
16375 | a4by3 = _this$props.a4by3,
|
16376 | className = _this$props.className,
|
16377 | children = _this$props.children,
|
16378 | props = _objectWithoutPropertiesLoose(_this$props, ["a16by9", "a4by3", "className", "children"]);
|
16379 |
|
16380 | var _splitBsProps = splitBsProps(props),
|
16381 | bsProps = _splitBsProps[0],
|
16382 | elementProps = _splitBsProps[1];
|
16383 |
|
16384 | false ? undefined : void 0;
|
16385 | false ? undefined : void 0;
|
16386 |
|
16387 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, '16by9')] = a16by9, _extends2[prefix(bsProps, '4by3')] = a4by3, _extends2));
|
16388 |
|
16389 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
16390 | className: classnames_default()(classes),
|
16391 | __source: {
|
16392 | fileName: ResponsiveEmbed_jsxFileName,
|
16393 | lineNumber: 50
|
16394 | },
|
16395 | __self: this
|
16396 | }, Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(children, _extends({}, elementProps, {
|
16397 | className: classnames_default()(className, prefix(bsProps, 'item'))
|
16398 | })));
|
16399 | };
|
16400 |
|
16401 | return ResponsiveEmbed;
|
16402 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
16403 |
|
16404 | ResponsiveEmbed_ResponsiveEmbed.propTypes = ResponsiveEmbed_propTypes;
|
16405 | ResponsiveEmbed_ResponsiveEmbed.defaultProps = ResponsiveEmbed_defaultProps;
|
16406 | var src_ResponsiveEmbed = (bootstrapUtils_bsClass('embed-responsive', ResponsiveEmbed_ResponsiveEmbed));
|
16407 |
|
16408 |
|
16409 |
|
16410 |
|
16411 | var Row_jsxFileName = "/Users/jason/src/react-bootstrap/src/Row.js";
|
16412 |
|
16413 |
|
16414 |
|
16415 |
|
16416 | var Row_propTypes = {
|
16417 | componentClass: elementType_default.a
|
16418 | };
|
16419 | var Row_defaultProps = {
|
16420 | componentClass: 'div'
|
16421 | };
|
16422 |
|
16423 | var Row_Row =
|
16424 |
|
16425 | function (_React$Component) {
|
16426 | _inheritsLoose(Row, _React$Component);
|
16427 |
|
16428 | function Row() {
|
16429 | return _React$Component.apply(this, arguments) || this;
|
16430 | }
|
16431 |
|
16432 | var _proto = Row.prototype;
|
16433 |
|
16434 | _proto.render = function render() {
|
16435 | var _this$props = this.props,
|
16436 | Component = _this$props.componentClass,
|
16437 | className = _this$props.className,
|
16438 | props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
16439 |
|
16440 | var _splitBsProps = splitBsProps(props),
|
16441 | bsProps = _splitBsProps[0],
|
16442 | elementProps = _splitBsProps[1];
|
16443 |
|
16444 | var classes = getClassSet(bsProps);
|
16445 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
16446 | className: classnames_default()(className, classes),
|
16447 | __source: {
|
16448 | fileName: Row_jsxFileName,
|
16449 | lineNumber: 23
|
16450 | },
|
16451 | __self: this
|
16452 | }));
|
16453 | };
|
16454 |
|
16455 | return Row;
|
16456 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
16457 |
|
16458 | Row_Row.propTypes = Row_propTypes;
|
16459 | Row_Row.defaultProps = Row_defaultProps;
|
16460 | var src_Row = (bootstrapUtils_bsClass('row', Row_Row));
|
16461 |
|
16462 |
|
16463 |
|
16464 | var SplitToggle_jsxFileName = "/Users/jason/src/react-bootstrap/src/SplitToggle.js";
|
16465 |
|
16466 |
|
16467 |
|
16468 | var SplitToggle_SplitToggle =
|
16469 |
|
16470 | function (_React$Component) {
|
16471 | _inheritsLoose(SplitToggle, _React$Component);
|
16472 |
|
16473 | function SplitToggle() {
|
16474 | return _React$Component.apply(this, arguments) || this;
|
16475 | }
|
16476 |
|
16477 | var _proto = SplitToggle.prototype;
|
16478 |
|
16479 | _proto.render = function render() {
|
16480 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_DropdownToggle, _extends({}, this.props, {
|
16481 | useAnchor: false,
|
16482 | noCaret: false,
|
16483 | __source: {
|
16484 | fileName: SplitToggle_jsxFileName,
|
16485 | lineNumber: 7
|
16486 | },
|
16487 | __self: this
|
16488 | }));
|
16489 | };
|
16490 |
|
16491 | return SplitToggle;
|
16492 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
16493 |
|
16494 | SplitToggle_SplitToggle.defaultProps = src_DropdownToggle.defaultProps;
|
16495 | var src_SplitToggle = (SplitToggle_SplitToggle);
|
16496 |
|
16497 |
|
16498 |
|
16499 |
|
16500 | var SplitButton_jsxFileName = "/Users/jason/src/react-bootstrap/src/SplitButton.js";
|
16501 |
|
16502 |
|
16503 |
|
16504 |
|
16505 |
|
16506 |
|
16507 |
|
16508 | var SplitButton_propTypes = _extends({}, src_Dropdown.propTypes, {
|
16509 |
|
16510 | bsStyle: prop_types_default.a.string,
|
16511 | bsSize: prop_types_default.a.string,
|
16512 | href: prop_types_default.a.string,
|
16513 | onClick: prop_types_default.a.func,
|
16514 |
|
16515 | |
16516 |
|
16517 |
|
16518 | title: prop_types_default.a.node.isRequired,
|
16519 |
|
16520 | |
16521 |
|
16522 |
|
16523 | toggleLabel: prop_types_default.a.string,
|
16524 |
|
16525 |
|
16526 | |
16527 |
|
16528 |
|
16529 | children: prop_types_default.a.node
|
16530 | });
|
16531 |
|
16532 | var SplitButton_SplitButton =
|
16533 |
|
16534 | function (_React$Component) {
|
16535 | _inheritsLoose(SplitButton, _React$Component);
|
16536 |
|
16537 | function SplitButton() {
|
16538 | return _React$Component.apply(this, arguments) || this;
|
16539 | }
|
16540 |
|
16541 | var _proto = SplitButton.prototype;
|
16542 |
|
16543 | _proto.render = function render() {
|
16544 | var _this$props = this.props,
|
16545 | bsSize = _this$props.bsSize,
|
16546 | bsStyle = _this$props.bsStyle,
|
16547 | title = _this$props.title,
|
16548 | toggleLabel = _this$props.toggleLabel,
|
16549 | children = _this$props.children,
|
16550 | props = _objectWithoutPropertiesLoose(_this$props, ["bsSize", "bsStyle", "title", "toggleLabel", "children"]);
|
16551 |
|
16552 | var _splitComponentProps = splitComponentProps(props, src_Dropdown.ControlledComponent),
|
16553 | dropdownProps = _splitComponentProps[0],
|
16554 | buttonProps = _splitComponentProps[1];
|
16555 |
|
16556 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Dropdown, _extends({}, dropdownProps, {
|
16557 | bsSize: bsSize,
|
16558 | bsStyle: bsStyle,
|
16559 | __source: {
|
16560 | fileName: SplitButton_jsxFileName,
|
16561 | lineNumber: 50
|
16562 | },
|
16563 | __self: this
|
16564 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Button, _extends({}, buttonProps, {
|
16565 | disabled: props.disabled,
|
16566 | bsSize: bsSize,
|
16567 | bsStyle: bsStyle,
|
16568 | __source: {
|
16569 | fileName: SplitButton_jsxFileName,
|
16570 | lineNumber: 51
|
16571 | },
|
16572 | __self: this
|
16573 | }), title), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_SplitToggle, {
|
16574 | "aria-label": toggleLabel || title,
|
16575 | bsSize: bsSize,
|
16576 | bsStyle: bsStyle,
|
16577 | __source: {
|
16578 | fileName: SplitButton_jsxFileName,
|
16579 | lineNumber: 59
|
16580 | },
|
16581 | __self: this
|
16582 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Dropdown.Menu, {
|
16583 | __source: {
|
16584 | fileName: SplitButton_jsxFileName,
|
16585 | lineNumber: 65
|
16586 | },
|
16587 | __self: this
|
16588 | }, children));
|
16589 | };
|
16590 |
|
16591 | return SplitButton;
|
16592 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
16593 |
|
16594 | SplitButton_SplitButton.propTypes = SplitButton_propTypes;
|
16595 | SplitButton_SplitButton.Toggle = src_SplitToggle;
|
16596 | var src_SplitButton = (SplitButton_SplitButton);
|
16597 |
|
16598 |
|
16599 |
|
16600 |
|
16601 |
|
16602 |
|
16603 | var TAB = 'tab';
|
16604 | var PANE = 'pane';
|
16605 | var TabContainer_idPropType = prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number]);
|
16606 | var TabContainer_propTypes = {
|
16607 | |
16608 |
|
16609 |
|
16610 |
|
16611 | id: function id(props) {
|
16612 | var error = null;
|
16613 |
|
16614 | if (!props.generateChildId) {
|
16615 | for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
16616 | args[_key - 1] = arguments[_key];
|
16617 | }
|
16618 |
|
16619 | error = TabContainer_idPropType.apply(void 0, [props].concat(args));
|
16620 |
|
16621 | if (!error && !props.id) {
|
16622 | error = new Error('In order to properly initialize Tabs in a way that is accessible ' + 'to assistive technologies (such as screen readers) an `id` or a ' + '`generateChildId` prop to TabContainer is required');
|
16623 | }
|
16624 | }
|
16625 |
|
16626 | return error;
|
16627 | },
|
16628 |
|
16629 | |
16630 |
|
16631 |
|
16632 |
|
16633 |
|
16634 |
|
16635 |
|
16636 |
|
16637 |
|
16638 |
|
16639 |
|
16640 | generateChildId: prop_types_default.a.func,
|
16641 |
|
16642 | |
16643 |
|
16644 |
|
16645 |
|
16646 |
|
16647 | onSelect: prop_types_default.a.func,
|
16648 |
|
16649 | |
16650 |
|
16651 |
|
16652 |
|
16653 |
|
16654 | activeKey: prop_types_default.a.any
|
16655 | };
|
16656 | var TabContainer_childContextTypes = {
|
16657 | $bs_tabContainer: prop_types_default.a.shape({
|
16658 | activeKey: prop_types_default.a.any,
|
16659 | onSelect: prop_types_default.a.func.isRequired,
|
16660 | getTabId: prop_types_default.a.func.isRequired,
|
16661 | getPaneId: prop_types_default.a.func.isRequired
|
16662 | })
|
16663 | };
|
16664 |
|
16665 | var TabContainer_TabContainer =
|
16666 |
|
16667 | function (_React$Component) {
|
16668 | _inheritsLoose(TabContainer, _React$Component);
|
16669 |
|
16670 | function TabContainer() {
|
16671 | return _React$Component.apply(this, arguments) || this;
|
16672 | }
|
16673 |
|
16674 | var _proto = TabContainer.prototype;
|
16675 |
|
16676 | _proto.getChildContext = function getChildContext() {
|
16677 | var _this$props = this.props,
|
16678 | activeKey = _this$props.activeKey,
|
16679 | onSelect = _this$props.onSelect,
|
16680 | generateChildId = _this$props.generateChildId,
|
16681 | id = _this$props.id;
|
16682 |
|
16683 | var getId = generateChildId || function (key, type) {
|
16684 | return id ? id + "-" + type + "-" + key : null;
|
16685 | };
|
16686 |
|
16687 | return {
|
16688 | $bs_tabContainer: {
|
16689 | activeKey: activeKey,
|
16690 | onSelect: onSelect,
|
16691 | getTabId: function getTabId(key) {
|
16692 | return getId(key, TAB);
|
16693 | },
|
16694 | getPaneId: function getPaneId(key) {
|
16695 | return getId(key, PANE);
|
16696 | }
|
16697 | }
|
16698 | };
|
16699 | };
|
16700 |
|
16701 | _proto.render = function render() {
|
16702 | var _this$props2 = this.props,
|
16703 | children = _this$props2.children,
|
16704 | props = _objectWithoutPropertiesLoose(_this$props2, ["children"]);
|
16705 |
|
16706 | delete props.generateChildId;
|
16707 | delete props.onSelect;
|
16708 | delete props.activeKey;
|
16709 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.only(children), props);
|
16710 | };
|
16711 |
|
16712 | return TabContainer;
|
16713 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
16714 |
|
16715 | TabContainer_TabContainer.propTypes = TabContainer_propTypes;
|
16716 | TabContainer_TabContainer.childContextTypes = TabContainer_childContextTypes;
|
16717 | var src_TabContainer = (uncontrollable_default()(TabContainer_TabContainer, {
|
16718 | activeKey: 'onSelect'
|
16719 | }));
|
16720 |
|
16721 |
|
16722 |
|
16723 |
|
16724 |
|
16725 | var TabContent_jsxFileName = "/Users/jason/src/react-bootstrap/src/TabContent.js";
|
16726 |
|
16727 |
|
16728 |
|
16729 |
|
16730 |
|
16731 | var TabContent_propTypes = {
|
16732 | componentClass: elementType_default.a,
|
16733 |
|
16734 | |
16735 |
|
16736 |
|
16737 |
|
16738 |
|
16739 | animation: prop_types_default.a.oneOfType([prop_types_default.a.bool, elementType_default.a]),
|
16740 |
|
16741 | |
16742 |
|
16743 |
|
16744 | mountOnEnter: prop_types_default.a.bool,
|
16745 |
|
16746 | |
16747 |
|
16748 |
|
16749 | unmountOnExit: prop_types_default.a.bool
|
16750 | };
|
16751 | var TabContent_defaultProps = {
|
16752 | componentClass: 'div',
|
16753 | animation: true,
|
16754 | mountOnEnter: false,
|
16755 | unmountOnExit: false
|
16756 | };
|
16757 | var TabContent_contextTypes = {
|
16758 | $bs_tabContainer: prop_types_default.a.shape({
|
16759 | activeKey: prop_types_default.a.any
|
16760 | })
|
16761 | };
|
16762 | var TabContent_childContextTypes = {
|
16763 | $bs_tabContent: prop_types_default.a.shape({
|
16764 | bsClass: prop_types_default.a.string,
|
16765 | animation: prop_types_default.a.oneOfType([prop_types_default.a.bool, elementType_default.a]),
|
16766 | activeKey: prop_types_default.a.any,
|
16767 | mountOnEnter: prop_types_default.a.bool,
|
16768 | unmountOnExit: prop_types_default.a.bool,
|
16769 | onPaneEnter: prop_types_default.a.func.isRequired,
|
16770 | onPaneExited: prop_types_default.a.func.isRequired,
|
16771 | exiting: prop_types_default.a.bool.isRequired
|
16772 | })
|
16773 | };
|
16774 |
|
16775 | var TabContent_TabContent =
|
16776 |
|
16777 | function (_React$Component) {
|
16778 | _inheritsLoose(TabContent, _React$Component);
|
16779 |
|
16780 | function TabContent(props, context) {
|
16781 | var _this;
|
16782 |
|
16783 | _this = _React$Component.call(this, props, context) || this;
|
16784 | _this.handlePaneEnter = _this.handlePaneEnter.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
16785 | _this.handlePaneExited = _this.handlePaneExited.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
16786 |
|
16787 |
|
16788 |
|
16789 | _this.state = {
|
16790 | activeKey: null,
|
16791 | activeChild: null
|
16792 | };
|
16793 | return _this;
|
16794 | }
|
16795 |
|
16796 | var _proto = TabContent.prototype;
|
16797 |
|
16798 | _proto.getChildContext = function getChildContext() {
|
16799 | var _this$props = this.props,
|
16800 | bsClass = _this$props.bsClass,
|
16801 | animation = _this$props.animation,
|
16802 | mountOnEnter = _this$props.mountOnEnter,
|
16803 | unmountOnExit = _this$props.unmountOnExit;
|
16804 | var stateActiveKey = this.state.activeKey;
|
16805 | var containerActiveKey = this.getContainerActiveKey();
|
16806 | var activeKey = stateActiveKey != null ? stateActiveKey : containerActiveKey;
|
16807 | var exiting = stateActiveKey != null && stateActiveKey !== containerActiveKey;
|
16808 | return {
|
16809 | $bs_tabContent: {
|
16810 | bsClass: bsClass,
|
16811 | animation: animation,
|
16812 | activeKey: activeKey,
|
16813 | mountOnEnter: mountOnEnter,
|
16814 | unmountOnExit: unmountOnExit,
|
16815 | onPaneEnter: this.handlePaneEnter,
|
16816 | onPaneExited: this.handlePaneExited,
|
16817 | exiting: exiting
|
16818 | }
|
16819 | };
|
16820 | };
|
16821 |
|
16822 | _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
16823 | if (!nextProps.animation && this.state.activeChild) {
|
16824 | this.setState({
|
16825 | activeKey: null,
|
16826 | activeChild: null
|
16827 | });
|
16828 | }
|
16829 | };
|
16830 |
|
16831 | _proto.componentWillUnmount = function componentWillUnmount() {
|
16832 | this.isUnmounted = true;
|
16833 | };
|
16834 |
|
16835 | _proto.getContainerActiveKey = function getContainerActiveKey() {
|
16836 | var tabContainer = this.context.$bs_tabContainer;
|
16837 | return tabContainer && tabContainer.activeKey;
|
16838 | };
|
16839 |
|
16840 | _proto.handlePaneEnter = function handlePaneEnter(child, childKey) {
|
16841 | if (!this.props.animation) {
|
16842 | return false;
|
16843 | }
|
16844 |
|
16845 |
|
16846 | if (childKey !== this.getContainerActiveKey()) {
|
16847 | return false;
|
16848 | }
|
16849 |
|
16850 | this.setState({
|
16851 | activeKey: childKey,
|
16852 | activeChild: child
|
16853 | });
|
16854 | return true;
|
16855 | };
|
16856 |
|
16857 | _proto.handlePaneExited = function handlePaneExited(child) {
|
16858 |
|
16859 | if (this.isUnmounted) {
|
16860 | return;
|
16861 | }
|
16862 |
|
16863 | this.setState(function (_ref) {
|
16864 | var activeChild = _ref.activeChild;
|
16865 |
|
16866 | if (activeChild !== child) {
|
16867 | return null;
|
16868 | }
|
16869 |
|
16870 | return {
|
16871 | activeKey: null,
|
16872 | activeChild: null
|
16873 | };
|
16874 | });
|
16875 | };
|
16876 |
|
16877 | _proto.render = function render() {
|
16878 | var _this$props2 = this.props,
|
16879 | Component = _this$props2.componentClass,
|
16880 | className = _this$props2.className,
|
16881 | props = _objectWithoutPropertiesLoose(_this$props2, ["componentClass", "className"]);
|
16882 |
|
16883 | var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['animation', 'mountOnEnter', 'unmountOnExit']),
|
16884 | bsProps = _splitBsPropsAndOmit[0],
|
16885 | elementProps = _splitBsPropsAndOmit[1];
|
16886 |
|
16887 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
16888 | className: classnames_default()(className, prefix(bsProps, 'content')),
|
16889 | __source: {
|
16890 | fileName: TabContent_jsxFileName,
|
16891 | lineNumber: 160
|
16892 | },
|
16893 | __self: this
|
16894 | }));
|
16895 | };
|
16896 |
|
16897 | return TabContent;
|
16898 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
16899 |
|
16900 | TabContent_TabContent.propTypes = TabContent_propTypes;
|
16901 | TabContent_TabContent.defaultProps = TabContent_defaultProps;
|
16902 | TabContent_TabContent.contextTypes = TabContent_contextTypes;
|
16903 | TabContent_TabContent.childContextTypes = TabContent_childContextTypes;
|
16904 | var src_TabContent = (bootstrapUtils_bsClass('tab', TabContent_TabContent));
|
16905 |
|
16906 |
|
16907 |
|
16908 |
|
16909 |
|
16910 | var TabPane_jsxFileName = "/Users/jason/src/react-bootstrap/src/TabPane.js";
|
16911 |
|
16912 |
|
16913 |
|
16914 |
|
16915 |
|
16916 |
|
16917 |
|
16918 |
|
16919 | var TabPane_propTypes = {
|
16920 | |
16921 |
|
16922 |
|
16923 | eventKey: prop_types_default.a.any,
|
16924 |
|
16925 | |
16926 |
|
16927 |
|
16928 |
|
16929 |
|
16930 | animation: prop_types_default.a.oneOfType([prop_types_default.a.bool, elementType_default.a]),
|
16931 |
|
16932 |
|
16933 | id: prop_types_default.a.string,
|
16934 |
|
16935 |
|
16936 | 'aria-labelledby': prop_types_default.a.string,
|
16937 |
|
16938 | |
16939 |
|
16940 |
|
16941 |
|
16942 |
|
16943 | bsClass: prop_types_default.a.string,
|
16944 |
|
16945 | |
16946 |
|
16947 |
|
16948 | onEnter: prop_types_default.a.func,
|
16949 |
|
16950 | |
16951 |
|
16952 |
|
16953 | onEntering: prop_types_default.a.func,
|
16954 |
|
16955 | |
16956 |
|
16957 |
|
16958 | onEntered: prop_types_default.a.func,
|
16959 |
|
16960 | |
16961 |
|
16962 |
|
16963 | onExit: prop_types_default.a.func,
|
16964 |
|
16965 | |
16966 |
|
16967 |
|
16968 | onExiting: prop_types_default.a.func,
|
16969 |
|
16970 | |
16971 |
|
16972 |
|
16973 | onExited: prop_types_default.a.func,
|
16974 |
|
16975 | |
16976 |
|
16977 |
|
16978 | mountOnEnter: prop_types_default.a.bool,
|
16979 |
|
16980 | |
16981 |
|
16982 |
|
16983 | unmountOnExit: prop_types_default.a.bool
|
16984 | };
|
16985 | var TabPane_contextTypes = {
|
16986 | $bs_tabContainer: prop_types_default.a.shape({
|
16987 | getTabId: prop_types_default.a.func,
|
16988 | getPaneId: prop_types_default.a.func
|
16989 | }),
|
16990 | $bs_tabContent: prop_types_default.a.shape({
|
16991 | bsClass: prop_types_default.a.string,
|
16992 | animation: prop_types_default.a.oneOfType([prop_types_default.a.bool, elementType_default.a]),
|
16993 | activeKey: prop_types_default.a.any,
|
16994 | mountOnEnter: prop_types_default.a.bool,
|
16995 | unmountOnExit: prop_types_default.a.bool,
|
16996 | onPaneEnter: prop_types_default.a.func.isRequired,
|
16997 | onPaneExited: prop_types_default.a.func.isRequired,
|
16998 | exiting: prop_types_default.a.bool.isRequired
|
16999 | })
|
17000 | };
|
17001 |
|
17002 |
|
17003 |
|
17004 |
|
17005 |
|
17006 | var TabPane_childContextTypes = {
|
17007 | $bs_tabContainer: prop_types_default.a.oneOf([null])
|
17008 | };
|
17009 |
|
17010 | var TabPane_TabPane =
|
17011 |
|
17012 | function (_React$Component) {
|
17013 | _inheritsLoose(TabPane, _React$Component);
|
17014 |
|
17015 | function TabPane(props, context) {
|
17016 | var _this;
|
17017 |
|
17018 | _this = _React$Component.call(this, props, context) || this;
|
17019 | _this.handleEnter = _this.handleEnter.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
17020 | _this.handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
17021 | _this.in = false;
|
17022 | return _this;
|
17023 | }
|
17024 |
|
17025 | var _proto = TabPane.prototype;
|
17026 |
|
17027 | _proto.getChildContext = function getChildContext() {
|
17028 | return {
|
17029 | $bs_tabContainer: null
|
17030 | };
|
17031 | };
|
17032 |
|
17033 | _proto.componentDidMount = function componentDidMount() {
|
17034 | if (this.shouldBeIn()) {
|
17035 |
|
17036 | this.handleEnter();
|
17037 | }
|
17038 | };
|
17039 |
|
17040 | _proto.componentDidUpdate = function componentDidUpdate() {
|
17041 | if (this.in) {
|
17042 | if (!this.shouldBeIn()) {
|
17043 |
|
17044 | this.handleExited();
|
17045 | }
|
17046 | } else if (this.shouldBeIn()) {
|
17047 |
|
17048 | this.handleEnter();
|
17049 | }
|
17050 | };
|
17051 |
|
17052 | _proto.componentWillUnmount = function componentWillUnmount() {
|
17053 | if (this.in) {
|
17054 |
|
17055 | this.handleExited();
|
17056 | }
|
17057 | };
|
17058 |
|
17059 | _proto.getAnimation = function getAnimation() {
|
17060 | if (this.props.animation != null) {
|
17061 | return this.props.animation;
|
17062 | }
|
17063 |
|
17064 | var tabContent = this.context.$bs_tabContent;
|
17065 | return tabContent && tabContent.animation;
|
17066 | };
|
17067 |
|
17068 | _proto.handleEnter = function handleEnter() {
|
17069 | var tabContent = this.context.$bs_tabContent;
|
17070 |
|
17071 | if (!tabContent) {
|
17072 | return;
|
17073 | }
|
17074 |
|
17075 | this.in = tabContent.onPaneEnter(this, this.props.eventKey);
|
17076 | };
|
17077 |
|
17078 | _proto.handleExited = function handleExited() {
|
17079 | var tabContent = this.context.$bs_tabContent;
|
17080 |
|
17081 | if (!tabContent) {
|
17082 | return;
|
17083 | }
|
17084 |
|
17085 | tabContent.onPaneExited(this);
|
17086 | this.in = false;
|
17087 | };
|
17088 |
|
17089 | _proto.isActive = function isActive() {
|
17090 | var tabContent = this.context.$bs_tabContent;
|
17091 | var activeKey = tabContent && tabContent.activeKey;
|
17092 | return this.props.eventKey === activeKey;
|
17093 | };
|
17094 |
|
17095 | _proto.shouldBeIn = function shouldBeIn() {
|
17096 | return this.getAnimation() && this.isActive();
|
17097 | };
|
17098 |
|
17099 | _proto.render = function render() {
|
17100 | var _this$props = this.props,
|
17101 | eventKey = _this$props.eventKey,
|
17102 | className = _this$props.className,
|
17103 | onEnter = _this$props.onEnter,
|
17104 | onEntering = _this$props.onEntering,
|
17105 | onEntered = _this$props.onEntered,
|
17106 | onExit = _this$props.onExit,
|
17107 | onExiting = _this$props.onExiting,
|
17108 | onExited = _this$props.onExited,
|
17109 | propsMountOnEnter = _this$props.mountOnEnter,
|
17110 | propsUnmountOnExit = _this$props.unmountOnExit,
|
17111 | props = _objectWithoutPropertiesLoose(_this$props, ["eventKey", "className", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit"]);
|
17112 |
|
17113 | var _this$context = this.context,
|
17114 | tabContent = _this$context.$bs_tabContent,
|
17115 | tabContainer = _this$context.$bs_tabContainer;
|
17116 |
|
17117 | var _splitBsPropsAndOmit = splitBsPropsAndOmit(props, ['animation']),
|
17118 | bsProps = _splitBsPropsAndOmit[0],
|
17119 | elementProps = _splitBsPropsAndOmit[1];
|
17120 |
|
17121 | var active = this.isActive();
|
17122 | var animation = this.getAnimation();
|
17123 | var mountOnEnter = propsMountOnEnter != null ? propsMountOnEnter : tabContent && tabContent.mountOnEnter;
|
17124 | var unmountOnExit = propsUnmountOnExit != null ? propsUnmountOnExit : tabContent && tabContent.unmountOnExit;
|
17125 |
|
17126 | if (!active && !animation && unmountOnExit) {
|
17127 | return null;
|
17128 | }
|
17129 |
|
17130 | var Transition = animation === true ? src_Fade : animation || null;
|
17131 |
|
17132 | if (tabContent) {
|
17133 | bsProps.bsClass = prefix(tabContent, 'pane');
|
17134 | }
|
17135 |
|
17136 | var classes = _extends({}, getClassSet(bsProps), {
|
17137 | active: active
|
17138 | });
|
17139 |
|
17140 | if (tabContainer) {
|
17141 | false ? undefined : void 0;
|
17142 | elementProps.id = tabContainer.getPaneId(eventKey);
|
17143 | elementProps['aria-labelledby'] = tabContainer.getTabId(eventKey);
|
17144 | }
|
17145 |
|
17146 | var pane = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
17147 | role: "tabpanel",
|
17148 | "aria-hidden": !active,
|
17149 | className: classnames_default()(className, classes),
|
17150 | __source: {
|
17151 | fileName: TabPane_jsxFileName,
|
17152 | lineNumber: 254
|
17153 | },
|
17154 | __self: this
|
17155 | }));
|
17156 |
|
17157 | if (Transition) {
|
17158 | var exiting = tabContent && tabContent.exiting;
|
17159 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Transition, {
|
17160 | in: active && !exiting,
|
17161 | onEnter: utils_createChainedFunction(this.handleEnter, onEnter),
|
17162 | onEntering: onEntering,
|
17163 | onEntered: onEntered,
|
17164 | onExit: onExit,
|
17165 | onExiting: onExiting,
|
17166 | onExited: utils_createChainedFunction(this.handleExited, onExited),
|
17167 | mountOnEnter: mountOnEnter,
|
17168 | unmountOnExit: unmountOnExit,
|
17169 | __source: {
|
17170 | fileName: TabPane_jsxFileName,
|
17171 | lineNumber: 266
|
17172 | },
|
17173 | __self: this
|
17174 | }, pane);
|
17175 | }
|
17176 |
|
17177 | return pane;
|
17178 | };
|
17179 |
|
17180 | return TabPane;
|
17181 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
17182 |
|
17183 | TabPane_TabPane.propTypes = TabPane_propTypes;
|
17184 | TabPane_TabPane.contextTypes = TabPane_contextTypes;
|
17185 | TabPane_TabPane.childContextTypes = TabPane_childContextTypes;
|
17186 | var src_TabPane = (bootstrapUtils_bsClass('tab-pane', TabPane_TabPane));
|
17187 |
|
17188 |
|
17189 |
|
17190 | var Tab_jsxFileName = "/Users/jason/src/react-bootstrap/src/Tab.js";
|
17191 |
|
17192 |
|
17193 |
|
17194 |
|
17195 |
|
17196 |
|
17197 | var Tab_propTypes = _extends({}, src_TabPane.propTypes, {
|
17198 | disabled: prop_types_default.a.bool,
|
17199 | title: prop_types_default.a.node,
|
17200 |
|
17201 | |
17202 |
|
17203 |
|
17204 | tabClassName: prop_types_default.a.string
|
17205 | });
|
17206 |
|
17207 | var Tab_Tab =
|
17208 |
|
17209 | function (_React$Component) {
|
17210 | _inheritsLoose(Tab, _React$Component);
|
17211 |
|
17212 | function Tab() {
|
17213 | return _React$Component.apply(this, arguments) || this;
|
17214 | }
|
17215 |
|
17216 | var _proto = Tab.prototype;
|
17217 |
|
17218 | _proto.render = function render() {
|
17219 | var props = _extends({}, this.props);
|
17220 |
|
17221 |
|
17222 | delete props.title;
|
17223 | delete props.disabled;
|
17224 | delete props.tabClassName;
|
17225 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_TabPane, _extends({}, props, {
|
17226 | __source: {
|
17227 | fileName: Tab_jsxFileName,
|
17228 | lineNumber: 30
|
17229 | },
|
17230 | __self: this
|
17231 | }));
|
17232 | };
|
17233 |
|
17234 | return Tab;
|
17235 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
17236 |
|
17237 | Tab_Tab.propTypes = Tab_propTypes;
|
17238 | Tab_Tab.Container = src_TabContainer;
|
17239 | Tab_Tab.Content = src_TabContent;
|
17240 | Tab_Tab.Pane = src_TabPane;
|
17241 | var src_Tab = (Tab_Tab);
|
17242 |
|
17243 |
|
17244 |
|
17245 |
|
17246 | var Table_jsxFileName = "/Users/jason/src/react-bootstrap/src/Table.js";
|
17247 |
|
17248 |
|
17249 |
|
17250 |
|
17251 | var Table_propTypes = {
|
17252 | striped: prop_types_default.a.bool,
|
17253 | bordered: prop_types_default.a.bool,
|
17254 | condensed: prop_types_default.a.bool,
|
17255 | hover: prop_types_default.a.bool,
|
17256 | responsive: prop_types_default.a.bool
|
17257 | };
|
17258 | var Table_defaultProps = {
|
17259 | bordered: false,
|
17260 | condensed: false,
|
17261 | hover: false,
|
17262 | responsive: false,
|
17263 | striped: false
|
17264 | };
|
17265 |
|
17266 | var Table_Table =
|
17267 |
|
17268 | function (_React$Component) {
|
17269 | _inheritsLoose(Table, _React$Component);
|
17270 |
|
17271 | function Table() {
|
17272 | return _React$Component.apply(this, arguments) || this;
|
17273 | }
|
17274 |
|
17275 | var _proto = Table.prototype;
|
17276 |
|
17277 | _proto.render = function render() {
|
17278 | var _extends2;
|
17279 |
|
17280 | var _this$props = this.props,
|
17281 | striped = _this$props.striped,
|
17282 | bordered = _this$props.bordered,
|
17283 | condensed = _this$props.condensed,
|
17284 | hover = _this$props.hover,
|
17285 | responsive = _this$props.responsive,
|
17286 | className = _this$props.className,
|
17287 | props = _objectWithoutPropertiesLoose(_this$props, ["striped", "bordered", "condensed", "hover", "responsive", "className"]);
|
17288 |
|
17289 | var _splitBsProps = splitBsProps(props),
|
17290 | bsProps = _splitBsProps[0],
|
17291 | elementProps = _splitBsProps[1];
|
17292 |
|
17293 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[prefix(bsProps, 'striped')] = striped, _extends2[prefix(bsProps, 'bordered')] = bordered, _extends2[prefix(bsProps, 'condensed')] = condensed, _extends2[prefix(bsProps, 'hover')] = hover, _extends2));
|
17294 |
|
17295 | var table = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("table", _extends({}, elementProps, {
|
17296 | className: classnames_default()(className, classes),
|
17297 | __source: {
|
17298 | fileName: Table_jsxFileName,
|
17299 | lineNumber: 51
|
17300 | },
|
17301 | __self: this
|
17302 | }));
|
17303 |
|
17304 | if (responsive) {
|
17305 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
17306 | className: prefix(bsProps, 'responsive'),
|
17307 | __source: {
|
17308 | fileName: Table_jsxFileName,
|
17309 | lineNumber: 55
|
17310 | },
|
17311 | __self: this
|
17312 | }, table);
|
17313 | }
|
17314 |
|
17315 | return table;
|
17316 | };
|
17317 |
|
17318 | return Table;
|
17319 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
17320 |
|
17321 | Table_Table.propTypes = Table_propTypes;
|
17322 | Table_Table.defaultProps = Table_defaultProps;
|
17323 | var src_Table = (bootstrapUtils_bsClass('table', Table_Table));
|
17324 |
|
17325 |
|
17326 |
|
17327 |
|
17328 | var Tabs_jsxFileName = "/Users/jason/src/react-bootstrap/src/Tabs.js";
|
17329 |
|
17330 |
|
17331 |
|
17332 |
|
17333 |
|
17334 |
|
17335 |
|
17336 |
|
17337 |
|
17338 |
|
17339 |
|
17340 | var Tabs_TabContainer = src_TabContainer.ControlledComponent;
|
17341 | var Tabs_propTypes = {
|
17342 | |
17343 |
|
17344 |
|
17345 |
|
17346 |
|
17347 | activeKey: prop_types_default.a.any,
|
17348 |
|
17349 | |
17350 |
|
17351 |
|
17352 | bsStyle: prop_types_default.a.oneOf(['tabs', 'pills']),
|
17353 |
|
17354 | |
17355 |
|
17356 |
|
17357 |
|
17358 |
|
17359 | animation: prop_types_default.a.oneOfType([prop_types_default.a.bool, elementType_default.a]),
|
17360 | id: isRequiredForA11y_default()(prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number])),
|
17361 |
|
17362 | |
17363 |
|
17364 |
|
17365 |
|
17366 |
|
17367 |
|
17368 |
|
17369 |
|
17370 |
|
17371 |
|
17372 |
|
17373 |
|
17374 | onSelect: prop_types_default.a.func,
|
17375 |
|
17376 | |
17377 |
|
17378 |
|
17379 | mountOnEnter: prop_types_default.a.bool,
|
17380 |
|
17381 | |
17382 |
|
17383 |
|
17384 | unmountOnExit: prop_types_default.a.bool
|
17385 | };
|
17386 | var Tabs_defaultProps = {
|
17387 | bsStyle: 'tabs',
|
17388 | animation: true,
|
17389 | mountOnEnter: false,
|
17390 | unmountOnExit: false
|
17391 | };
|
17392 |
|
17393 | function getDefaultActiveKey(children) {
|
17394 | var defaultActiveKey;
|
17395 | ValidComponentChildren.forEach(children, function (child) {
|
17396 | if (defaultActiveKey == null) {
|
17397 | defaultActiveKey = child.props.eventKey;
|
17398 | }
|
17399 | });
|
17400 | return defaultActiveKey;
|
17401 | }
|
17402 |
|
17403 | var Tabs_Tabs =
|
17404 |
|
17405 | function (_React$Component) {
|
17406 | _inheritsLoose(Tabs, _React$Component);
|
17407 |
|
17408 | function Tabs() {
|
17409 | return _React$Component.apply(this, arguments) || this;
|
17410 | }
|
17411 |
|
17412 | var _proto = Tabs.prototype;
|
17413 |
|
17414 | _proto.renderTab = function renderTab(child) {
|
17415 | var _child$props = child.props,
|
17416 | title = _child$props.title,
|
17417 | eventKey = _child$props.eventKey,
|
17418 | disabled = _child$props.disabled,
|
17419 | tabClassName = _child$props.tabClassName;
|
17420 |
|
17421 | if (title == null) {
|
17422 | return null;
|
17423 | }
|
17424 |
|
17425 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_NavItem, {
|
17426 | eventKey: eventKey,
|
17427 | disabled: disabled,
|
17428 | className: tabClassName,
|
17429 | __source: {
|
17430 | fileName: Tabs_jsxFileName,
|
17431 | lineNumber: 91
|
17432 | },
|
17433 | __self: this
|
17434 | }, title);
|
17435 | };
|
17436 |
|
17437 | _proto.render = function render() {
|
17438 | var _this$props = this.props,
|
17439 | id = _this$props.id,
|
17440 | onSelect = _this$props.onSelect,
|
17441 | animation = _this$props.animation,
|
17442 | mountOnEnter = _this$props.mountOnEnter,
|
17443 | unmountOnExit = _this$props.unmountOnExit,
|
17444 | bsClass = _this$props.bsClass,
|
17445 | className = _this$props.className,
|
17446 | style = _this$props.style,
|
17447 | children = _this$props.children,
|
17448 | _this$props$activeKey = _this$props.activeKey,
|
17449 | activeKey = _this$props$activeKey === void 0 ? getDefaultActiveKey(children) : _this$props$activeKey,
|
17450 | props = _objectWithoutPropertiesLoose(_this$props, ["id", "onSelect", "animation", "mountOnEnter", "unmountOnExit", "bsClass", "className", "style", "children", "activeKey"]);
|
17451 |
|
17452 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Tabs_TabContainer, {
|
17453 | id: id,
|
17454 | activeKey: activeKey,
|
17455 | onSelect: onSelect,
|
17456 | className: className,
|
17457 | style: style,
|
17458 | __source: {
|
17459 | fileName: Tabs_jsxFileName,
|
17460 | lineNumber: 113
|
17461 | },
|
17462 | __self: this
|
17463 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
17464 | __source: {
|
17465 | fileName: Tabs_jsxFileName,
|
17466 | lineNumber: 120
|
17467 | },
|
17468 | __self: this
|
17469 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Nav, _extends({}, props, {
|
17470 | role: "tablist",
|
17471 | __source: {
|
17472 | fileName: Tabs_jsxFileName,
|
17473 | lineNumber: 121
|
17474 | },
|
17475 | __self: this
|
17476 | }), ValidComponentChildren.map(children, this.renderTab)), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_TabContent, {
|
17477 | bsClass: bsClass,
|
17478 | animation: animation,
|
17479 | mountOnEnter: mountOnEnter,
|
17480 | unmountOnExit: unmountOnExit,
|
17481 | __source: {
|
17482 | fileName: Tabs_jsxFileName,
|
17483 | lineNumber: 125
|
17484 | },
|
17485 | __self: this
|
17486 | }, children)));
|
17487 | };
|
17488 |
|
17489 | return Tabs;
|
17490 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
17491 |
|
17492 | Tabs_Tabs.propTypes = Tabs_propTypes;
|
17493 | Tabs_Tabs.defaultProps = Tabs_defaultProps;
|
17494 | bootstrapUtils_bsClass('tab', Tabs_Tabs);
|
17495 | var src_Tabs = (uncontrollable_default()(Tabs_Tabs, {
|
17496 | activeKey: 'onSelect'
|
17497 | }));
|
17498 |
|
17499 |
|
17500 |
|
17501 |
|
17502 | var Thumbnail_jsxFileName = "/Users/jason/src/react-bootstrap/src/Thumbnail.js";
|
17503 |
|
17504 |
|
17505 |
|
17506 |
|
17507 |
|
17508 |
|
17509 |
|
17510 | var Thumbnail_propTypes = {
|
17511 | |
17512 |
|
17513 |
|
17514 | src: prop_types_default.a.string,
|
17515 |
|
17516 | |
17517 |
|
17518 |
|
17519 | alt: prop_types_default.a.string,
|
17520 |
|
17521 | |
17522 |
|
17523 |
|
17524 | href: prop_types_default.a.string,
|
17525 |
|
17526 | |
17527 |
|
17528 |
|
17529 | onError: prop_types_default.a.func,
|
17530 |
|
17531 | |
17532 |
|
17533 |
|
17534 | onLoad: prop_types_default.a.func
|
17535 | };
|
17536 |
|
17537 | var Thumbnail_Thumbnail =
|
17538 |
|
17539 | function (_React$Component) {
|
17540 | _inheritsLoose(Thumbnail, _React$Component);
|
17541 |
|
17542 | function Thumbnail() {
|
17543 | return _React$Component.apply(this, arguments) || this;
|
17544 | }
|
17545 |
|
17546 | var _proto = Thumbnail.prototype;
|
17547 |
|
17548 | _proto.render = function render() {
|
17549 | var _this$props = this.props,
|
17550 | src = _this$props.src,
|
17551 | alt = _this$props.alt,
|
17552 | onError = _this$props.onError,
|
17553 | onLoad = _this$props.onLoad,
|
17554 | className = _this$props.className,
|
17555 | children = _this$props.children,
|
17556 | props = _objectWithoutPropertiesLoose(_this$props, ["src", "alt", "onError", "onLoad", "className", "children"]);
|
17557 |
|
17558 | var _splitBsProps = splitBsProps(props),
|
17559 | bsProps = _splitBsProps[0],
|
17560 | elementProps = _splitBsProps[1];
|
17561 |
|
17562 | var Component = elementProps.href ? src_SafeAnchor : 'div';
|
17563 | var classes = getClassSet(bsProps);
|
17564 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, _extends({}, elementProps, {
|
17565 | className: classnames_default()(className, classes),
|
17566 | __source: {
|
17567 | fileName: Thumbnail_jsxFileName,
|
17568 | lineNumber: 50
|
17569 | },
|
17570 | __self: this
|
17571 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", _extends({
|
17572 | src: src,
|
17573 | alt: alt,
|
17574 | onError: onError,
|
17575 | onLoad: onLoad
|
17576 | }, {
|
17577 | __source: {
|
17578 | fileName: Thumbnail_jsxFileName,
|
17579 | lineNumber: 51
|
17580 | },
|
17581 | __self: this
|
17582 | })), children && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
17583 | className: "caption",
|
17584 | __source: {
|
17585 | fileName: Thumbnail_jsxFileName,
|
17586 | lineNumber: 53
|
17587 | },
|
17588 | __self: this
|
17589 | }, children));
|
17590 | };
|
17591 |
|
17592 | return Thumbnail;
|
17593 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
17594 |
|
17595 | Thumbnail_Thumbnail.propTypes = Thumbnail_propTypes;
|
17596 | var src_Thumbnail = (bootstrapUtils_bsClass('thumbnail', Thumbnail_Thumbnail));
|
17597 |
|
17598 |
|
17599 |
|
17600 |
|
17601 | var ToggleButton_jsxFileName = "/Users/jason/src/react-bootstrap/src/ToggleButton.js";
|
17602 |
|
17603 |
|
17604 |
|
17605 | var ToggleButton_propTypes = {
|
17606 | |
17607 |
|
17608 |
|
17609 |
|
17610 | type: prop_types_default.a.oneOf(['checkbox', 'radio']),
|
17611 |
|
17612 | |
17613 |
|
17614 |
|
17615 |
|
17616 | name: prop_types_default.a.string,
|
17617 |
|
17618 | |
17619 |
|
17620 |
|
17621 | checked: prop_types_default.a.bool,
|
17622 |
|
17623 | |
17624 |
|
17625 |
|
17626 | disabled: prop_types_default.a.bool,
|
17627 |
|
17628 | |
17629 |
|
17630 |
|
17631 | onChange: prop_types_default.a.func,
|
17632 |
|
17633 | |
17634 |
|
17635 |
|
17636 | value: prop_types_default.a.any.isRequired
|
17637 | };
|
17638 |
|
17639 | var ToggleButton_ToggleButton =
|
17640 |
|
17641 | function (_React$Component) {
|
17642 | _inheritsLoose(ToggleButton, _React$Component);
|
17643 |
|
17644 | function ToggleButton() {
|
17645 | return _React$Component.apply(this, arguments) || this;
|
17646 | }
|
17647 |
|
17648 | var _proto = ToggleButton.prototype;
|
17649 |
|
17650 | _proto.render = function render() {
|
17651 | var _this$props = this.props,
|
17652 | children = _this$props.children,
|
17653 | name = _this$props.name,
|
17654 | checked = _this$props.checked,
|
17655 | type = _this$props.type,
|
17656 | onChange = _this$props.onChange,
|
17657 | value = _this$props.value,
|
17658 | props = _objectWithoutPropertiesLoose(_this$props, ["children", "name", "checked", "type", "onChange", "value"]);
|
17659 |
|
17660 | var disabled = props.disabled;
|
17661 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_Button, _extends({}, props, {
|
17662 | active: !!checked,
|
17663 | componentClass: "label",
|
17664 | __source: {
|
17665 | fileName: ToggleButton_jsxFileName,
|
17666 | lineNumber: 53
|
17667 | },
|
17668 | __self: this
|
17669 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("input", {
|
17670 | name: name,
|
17671 | type: type,
|
17672 | autoComplete: "off",
|
17673 | value: value,
|
17674 | checked: !!checked,
|
17675 | disabled: !!disabled,
|
17676 | onChange: onChange,
|
17677 | __source: {
|
17678 | fileName: ToggleButton_jsxFileName,
|
17679 | lineNumber: 54
|
17680 | },
|
17681 | __self: this
|
17682 | }), children);
|
17683 | };
|
17684 |
|
17685 | return ToggleButton;
|
17686 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
17687 |
|
17688 | ToggleButton_ToggleButton.propTypes = ToggleButton_propTypes;
|
17689 | var src_ToggleButton = (ToggleButton_ToggleButton);
|
17690 |
|
17691 |
|
17692 |
|
17693 |
|
17694 | var ToggleButtonGroup_jsxFileName = "/Users/jason/src/react-bootstrap/src/ToggleButtonGroup.js";
|
17695 |
|
17696 |
|
17697 |
|
17698 |
|
17699 |
|
17700 |
|
17701 |
|
17702 |
|
17703 | var ToggleButtonGroup_propTypes = {
|
17704 | |
17705 |
|
17706 |
|
17707 |
|
17708 |
|
17709 | name: prop_types_default.a.string,
|
17710 |
|
17711 | |
17712 |
|
17713 |
|
17714 |
|
17715 |
|
17716 | value: prop_types_default.a.any,
|
17717 |
|
17718 | |
17719 |
|
17720 |
|
17721 |
|
17722 |
|
17723 |
|
17724 |
|
17725 | onChange: prop_types_default.a.func,
|
17726 |
|
17727 | |
17728 |
|
17729 |
|
17730 |
|
17731 | type: prop_types_default.a.oneOf(['checkbox', 'radio']).isRequired
|
17732 | };
|
17733 | var ToggleButtonGroup_defaultProps = {
|
17734 | type: 'radio'
|
17735 | };
|
17736 |
|
17737 | var ToggleButtonGroup_ToggleButtonGroup =
|
17738 |
|
17739 | function (_React$Component) {
|
17740 | _inheritsLoose(ToggleButtonGroup, _React$Component);
|
17741 |
|
17742 | function ToggleButtonGroup() {
|
17743 | return _React$Component.apply(this, arguments) || this;
|
17744 | }
|
17745 |
|
17746 | var _proto = ToggleButtonGroup.prototype;
|
17747 |
|
17748 | _proto.getValues = function getValues() {
|
17749 | var value = this.props.value;
|
17750 | return value == null ? [] : [].concat(value);
|
17751 | };
|
17752 |
|
17753 | _proto.handleToggle = function handleToggle(value) {
|
17754 | var _this$props = this.props,
|
17755 | type = _this$props.type,
|
17756 | onChange = _this$props.onChange;
|
17757 | var values = this.getValues();
|
17758 | var isActive = values.indexOf(value) !== -1;
|
17759 |
|
17760 | if (type === 'radio') {
|
17761 | if (!isActive) {
|
17762 | onChange(value);
|
17763 | }
|
17764 |
|
17765 | return;
|
17766 | }
|
17767 |
|
17768 | if (isActive) {
|
17769 | onChange(values.filter(function (n) {
|
17770 | return n !== value;
|
17771 | }));
|
17772 | } else {
|
17773 | onChange(values.concat([value]));
|
17774 | }
|
17775 | };
|
17776 |
|
17777 | _proto.render = function render() {
|
17778 | var _this = this;
|
17779 |
|
17780 | var _this$props2 = this.props,
|
17781 | children = _this$props2.children,
|
17782 | type = _this$props2.type,
|
17783 | name = _this$props2.name,
|
17784 | props = _objectWithoutPropertiesLoose(_this$props2, ["children", "type", "name"]);
|
17785 |
|
17786 | var values = this.getValues();
|
17787 | !(type !== 'radio' || !!name) ? false ? undefined : browser_default()(false) : void 0;
|
17788 | delete props.onChange;
|
17789 | delete props.value;
|
17790 |
|
17791 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(src_ButtonGroup, _extends({}, props, {
|
17792 | "data-toggle": "buttons",
|
17793 | __source: {
|
17794 | fileName: ToggleButtonGroup_jsxFileName,
|
17795 | lineNumber: 87
|
17796 | },
|
17797 | __self: this
|
17798 | }), ValidComponentChildren.map(children, function (child) {
|
17799 | var _child$props = child.props,
|
17800 | value = _child$props.value,
|
17801 | onChange = _child$props.onChange;
|
17802 |
|
17803 | var handler = function handler() {
|
17804 | return _this.handleToggle(value);
|
17805 | };
|
17806 |
|
17807 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(child, {
|
17808 | type: type,
|
17809 | name: child.name || name,
|
17810 | checked: values.indexOf(value) !== -1,
|
17811 | onChange: utils_createChainedFunction(onChange, handler)
|
17812 | });
|
17813 | }));
|
17814 | };
|
17815 |
|
17816 | return ToggleButtonGroup;
|
17817 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
17818 |
|
17819 | ToggleButtonGroup_ToggleButtonGroup.propTypes = ToggleButtonGroup_propTypes;
|
17820 | ToggleButtonGroup_ToggleButtonGroup.defaultProps = ToggleButtonGroup_defaultProps;
|
17821 | var UncontrolledToggleButtonGroup = uncontrollable_default()(ToggleButtonGroup_ToggleButtonGroup, {
|
17822 | value: 'onChange'
|
17823 | });
|
17824 | UncontrolledToggleButtonGroup.Button = src_ToggleButton;
|
17825 | var src_ToggleButtonGroup = (UncontrolledToggleButtonGroup);
|
17826 |
|
17827 |
|
17828 |
|
17829 |
|
17830 | var Tooltip_jsxFileName = "/Users/jason/src/react-bootstrap/src/Tooltip.js";
|
17831 |
|
17832 |
|
17833 |
|
17834 |
|
17835 |
|
17836 | var Tooltip_propTypes = {
|
17837 | |
17838 |
|
17839 |
|
17840 |
|
17841 |
|
17842 | id: isRequiredForA11y_default()(prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number])),
|
17843 |
|
17844 | |
17845 |
|
17846 |
|
17847 | placement: prop_types_default.a.oneOf(['top', 'right', 'bottom', 'left']),
|
17848 |
|
17849 | |
17850 |
|
17851 |
|
17852 | positionTop: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
|
17853 |
|
17854 | |
17855 |
|
17856 |
|
17857 | positionLeft: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
|
17858 |
|
17859 | |
17860 |
|
17861 |
|
17862 | arrowOffsetTop: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
|
17863 |
|
17864 | |
17865 |
|
17866 |
|
17867 | arrowOffsetLeft: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string])
|
17868 | };
|
17869 | var Tooltip_defaultProps = {
|
17870 | placement: 'right'
|
17871 | };
|
17872 |
|
17873 | var Tooltip_Tooltip =
|
17874 |
|
17875 | function (_React$Component) {
|
17876 | _inheritsLoose(Tooltip, _React$Component);
|
17877 |
|
17878 | function Tooltip() {
|
17879 | return _React$Component.apply(this, arguments) || this;
|
17880 | }
|
17881 |
|
17882 | var _proto = Tooltip.prototype;
|
17883 |
|
17884 | _proto.render = function render() {
|
17885 | var _extends2;
|
17886 |
|
17887 | var _this$props = this.props,
|
17888 | placement = _this$props.placement,
|
17889 | positionTop = _this$props.positionTop,
|
17890 | positionLeft = _this$props.positionLeft,
|
17891 | arrowOffsetTop = _this$props.arrowOffsetTop,
|
17892 | arrowOffsetLeft = _this$props.arrowOffsetLeft,
|
17893 | className = _this$props.className,
|
17894 | style = _this$props.style,
|
17895 | children = _this$props.children,
|
17896 | props = _objectWithoutPropertiesLoose(_this$props, ["placement", "positionTop", "positionLeft", "arrowOffsetTop", "arrowOffsetLeft", "className", "style", "children"]);
|
17897 |
|
17898 | var _splitBsProps = splitBsProps(props),
|
17899 | bsProps = _splitBsProps[0],
|
17900 | elementProps = _splitBsProps[1];
|
17901 |
|
17902 | var classes = _extends({}, getClassSet(bsProps), (_extends2 = {}, _extends2[placement] = true, _extends2));
|
17903 |
|
17904 | var outerStyle = _extends({
|
17905 | top: positionTop,
|
17906 | left: positionLeft
|
17907 | }, style);
|
17908 |
|
17909 | var arrowStyle = {
|
17910 | top: arrowOffsetTop,
|
17911 | left: arrowOffsetLeft
|
17912 | };
|
17913 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
17914 | role: "tooltip",
|
17915 | className: classnames_default()(className, classes),
|
17916 | style: outerStyle,
|
17917 | __source: {
|
17918 | fileName: Tooltip_jsxFileName,
|
17919 | lineNumber: 84
|
17920 | },
|
17921 | __self: this
|
17922 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
17923 | className: prefix(bsProps, 'arrow'),
|
17924 | style: arrowStyle,
|
17925 | __source: {
|
17926 | fileName: Tooltip_jsxFileName,
|
17927 | lineNumber: 90
|
17928 | },
|
17929 | __self: this
|
17930 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
17931 | className: prefix(bsProps, 'inner'),
|
17932 | __source: {
|
17933 | fileName: Tooltip_jsxFileName,
|
17934 | lineNumber: 92
|
17935 | },
|
17936 | __self: this
|
17937 | }, children));
|
17938 | };
|
17939 |
|
17940 | return Tooltip;
|
17941 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
17942 |
|
17943 | Tooltip_Tooltip.propTypes = Tooltip_propTypes;
|
17944 | Tooltip_Tooltip.defaultProps = Tooltip_defaultProps;
|
17945 | var src_Tooltip = (bootstrapUtils_bsClass('tooltip', Tooltip_Tooltip));
|
17946 |
|
17947 |
|
17948 |
|
17949 |
|
17950 | var Well_jsxFileName = "/Users/jason/src/react-bootstrap/src/Well.js";
|
17951 |
|
17952 |
|
17953 |
|
17954 |
|
17955 |
|
17956 | var Well_Well =
|
17957 |
|
17958 | function (_React$Component) {
|
17959 | _inheritsLoose(Well, _React$Component);
|
17960 |
|
17961 | function Well() {
|
17962 | return _React$Component.apply(this, arguments) || this;
|
17963 | }
|
17964 |
|
17965 | var _proto = Well.prototype;
|
17966 |
|
17967 | _proto.render = function render() {
|
17968 | var _this$props = this.props,
|
17969 | className = _this$props.className,
|
17970 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
17971 |
|
17972 | var _splitBsProps = splitBsProps(props),
|
17973 | bsProps = _splitBsProps[0],
|
17974 | elementProps = _splitBsProps[1];
|
17975 |
|
17976 | var classes = getClassSet(bsProps);
|
17977 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", _extends({}, elementProps, {
|
17978 | className: classnames_default()(className, classes),
|
17979 | __source: {
|
17980 | fileName: Well_jsxFileName,
|
17981 | lineNumber: 19
|
17982 | },
|
17983 | __self: this
|
17984 | }));
|
17985 | };
|
17986 |
|
17987 | return Well;
|
17988 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
17989 |
|
17990 | var src_Well = (bootstrapUtils_bsClass('well', bsSizes([Size.LARGE, Size.SMALL], Well_Well)));
|
17991 |
|
17992 |
|
17993 |
|
17994 |
|
17995 |
|
17996 |
|
17997 |
|
17998 |
|
17999 | __webpack_require__.d(__webpack_exports__, "Accordion", function() { return src_Accordion; });
|
18000 | __webpack_require__.d(__webpack_exports__, "Alert", function() { return src_Alert; });
|
18001 | __webpack_require__.d(__webpack_exports__, "Badge", function() { return src_Badge; });
|
18002 | __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return src_Breadcrumb; });
|
18003 | __webpack_require__.d(__webpack_exports__, "BreadcrumbItem", function() { return src_BreadcrumbItem; });
|
18004 | __webpack_require__.d(__webpack_exports__, "Button", function() { return src_Button; });
|
18005 | __webpack_require__.d(__webpack_exports__, "ButtonGroup", function() { return src_ButtonGroup; });
|
18006 | __webpack_require__.d(__webpack_exports__, "ButtonToolbar", function() { return src_ButtonToolbar; });
|
18007 | __webpack_require__.d(__webpack_exports__, "Carousel", function() { return src_Carousel; });
|
18008 | __webpack_require__.d(__webpack_exports__, "CarouselItem", function() { return src_CarouselItem; });
|
18009 | __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return src_Checkbox; });
|
18010 | __webpack_require__.d(__webpack_exports__, "Clearfix", function() { return src_Clearfix; });
|
18011 | __webpack_require__.d(__webpack_exports__, "CloseButton", function() { return src_CloseButton; });
|
18012 | __webpack_require__.d(__webpack_exports__, "ControlLabel", function() { return src_ControlLabel; });
|
18013 | __webpack_require__.d(__webpack_exports__, "Col", function() { return src_Col; });
|
18014 | __webpack_require__.d(__webpack_exports__, "Collapse", function() { return src_Collapse; });
|
18015 | __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return src_Dropdown; });
|
18016 | __webpack_require__.d(__webpack_exports__, "DropdownButton", function() { return src_DropdownButton; });
|
18017 | __webpack_require__.d(__webpack_exports__, "Fade", function() { return src_Fade; });
|
18018 | __webpack_require__.d(__webpack_exports__, "Form", function() { return src_Form; });
|
18019 | __webpack_require__.d(__webpack_exports__, "FormControl", function() { return src_FormControl; });
|
18020 | __webpack_require__.d(__webpack_exports__, "FormGroup", function() { return src_FormGroup; });
|
18021 | __webpack_require__.d(__webpack_exports__, "Glyphicon", function() { return src_Glyphicon; });
|
18022 | __webpack_require__.d(__webpack_exports__, "Grid", function() { return src_Grid; });
|
18023 | __webpack_require__.d(__webpack_exports__, "HelpBlock", function() { return src_HelpBlock; });
|
18024 | __webpack_require__.d(__webpack_exports__, "Image", function() { return src_Image; });
|
18025 | __webpack_require__.d(__webpack_exports__, "InputGroup", function() { return src_InputGroup; });
|
18026 | __webpack_require__.d(__webpack_exports__, "Jumbotron", function() { return src_Jumbotron; });
|
18027 | __webpack_require__.d(__webpack_exports__, "Label", function() { return src_Label; });
|
18028 | __webpack_require__.d(__webpack_exports__, "ListGroup", function() { return src_ListGroup; });
|
18029 | __webpack_require__.d(__webpack_exports__, "ListGroupItem", function() { return src_ListGroupItem; });
|
18030 | __webpack_require__.d(__webpack_exports__, "Media", function() { return src_Media; });
|
18031 | __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return src_MenuItem; });
|
18032 | __webpack_require__.d(__webpack_exports__, "Modal", function() { return src_Modal; });
|
18033 | __webpack_require__.d(__webpack_exports__, "ModalBody", function() { return src_ModalBody; });
|
18034 | __webpack_require__.d(__webpack_exports__, "ModalDialog", function() { return src_ModalDialog; });
|
18035 | __webpack_require__.d(__webpack_exports__, "ModalFooter", function() { return src_ModalFooter; });
|
18036 | __webpack_require__.d(__webpack_exports__, "ModalHeader", function() { return src_ModalHeader; });
|
18037 | __webpack_require__.d(__webpack_exports__, "ModalTitle", function() { return src_ModalTitle; });
|
18038 | __webpack_require__.d(__webpack_exports__, "Nav", function() { return src_Nav; });
|
18039 | __webpack_require__.d(__webpack_exports__, "Navbar", function() { return src_Navbar; });
|
18040 | __webpack_require__.d(__webpack_exports__, "NavbarBrand", function() { return src_NavbarBrand; });
|
18041 | __webpack_require__.d(__webpack_exports__, "NavDropdown", function() { return src_NavDropdown; });
|
18042 | __webpack_require__.d(__webpack_exports__, "NavItem", function() { return src_NavItem; });
|
18043 | __webpack_require__.d(__webpack_exports__, "Overlay", function() { return src_Overlay; });
|
18044 | __webpack_require__.d(__webpack_exports__, "OverlayTrigger", function() { return src_OverlayTrigger; });
|
18045 | __webpack_require__.d(__webpack_exports__, "PageHeader", function() { return src_PageHeader; });
|
18046 | __webpack_require__.d(__webpack_exports__, "PageItem", function() { return PageItem; });
|
18047 | __webpack_require__.d(__webpack_exports__, "Pager", function() { return src_Pager; });
|
18048 | __webpack_require__.d(__webpack_exports__, "Pagination", function() { return src_Pagination; });
|
18049 | __webpack_require__.d(__webpack_exports__, "Panel", function() { return src_Panel; });
|
18050 | __webpack_require__.d(__webpack_exports__, "PanelGroup", function() { return src_PanelGroup; });
|
18051 | __webpack_require__.d(__webpack_exports__, "Popover", function() { return src_Popover; });
|
18052 | __webpack_require__.d(__webpack_exports__, "ProgressBar", function() { return src_ProgressBar; });
|
18053 | __webpack_require__.d(__webpack_exports__, "Radio", function() { return src_Radio; });
|
18054 | __webpack_require__.d(__webpack_exports__, "ResponsiveEmbed", function() { return src_ResponsiveEmbed; });
|
18055 | __webpack_require__.d(__webpack_exports__, "Row", function() { return src_Row; });
|
18056 | __webpack_require__.d(__webpack_exports__, "SafeAnchor", function() { return src_SafeAnchor; });
|
18057 | __webpack_require__.d(__webpack_exports__, "SplitButton", function() { return src_SplitButton; });
|
18058 | __webpack_require__.d(__webpack_exports__, "Tab", function() { return src_Tab; });
|
18059 | __webpack_require__.d(__webpack_exports__, "TabContainer", function() { return src_TabContainer; });
|
18060 | __webpack_require__.d(__webpack_exports__, "TabContent", function() { return src_TabContent; });
|
18061 | __webpack_require__.d(__webpack_exports__, "Table", function() { return src_Table; });
|
18062 | __webpack_require__.d(__webpack_exports__, "TabPane", function() { return src_TabPane; });
|
18063 | __webpack_require__.d(__webpack_exports__, "Tabs", function() { return src_Tabs; });
|
18064 | __webpack_require__.d(__webpack_exports__, "Thumbnail", function() { return src_Thumbnail; });
|
18065 | __webpack_require__.d(__webpack_exports__, "ToggleButton", function() { return src_ToggleButton; });
|
18066 | __webpack_require__.d(__webpack_exports__, "ToggleButtonGroup", function() { return src_ToggleButtonGroup; });
|
18067 | __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return src_Tooltip; });
|
18068 | __webpack_require__.d(__webpack_exports__, "Well", function() { return src_Well; });
|
18069 | __webpack_require__.d(__webpack_exports__, "utils", function() { return utils_namespaceObject; });
|
18070 |
|
18071 |
|
18072 |
|
18073 |
|
18074 |
|
18075 |
|
18076 |
|
18077 |
|
18078 |
|
18079 |
|
18080 |
|
18081 |
|
18082 |
|
18083 |
|
18084 |
|
18085 |
|
18086 |
|
18087 |
|
18088 |
|
18089 |
|
18090 |
|
18091 |
|
18092 |
|
18093 |
|
18094 |
|
18095 |
|
18096 |
|
18097 |
|
18098 |
|
18099 |
|
18100 |
|
18101 |
|
18102 |
|
18103 |
|
18104 |
|
18105 |
|
18106 |
|
18107 |
|
18108 |
|
18109 |
|
18110 |
|
18111 |
|
18112 |
|
18113 |
|
18114 |
|
18115 |
|
18116 |
|
18117 |
|
18118 |
|
18119 |
|
18120 |
|
18121 |
|
18122 |
|
18123 |
|
18124 |
|
18125 |
|
18126 |
|
18127 |
|
18128 |
|
18129 |
|
18130 |
|
18131 |
|
18132 |
|
18133 |
|
18134 |
|
18135 |
|
18136 |
|
18137 |
|
18138 |
|
18139 |
|
18140 |
|
18141 |
|
18142 |
|
18143 |
|
18144 |
|
18145 |
|
18146 |
|
18147 |
|
18148 |
|
18149 |
|
18150 |
|
18151 |
|
18152 |
|
18153 |
|
18154 |
|
18155 |
|
18156 |
|
18157 |
|
18158 |
|
18159 |
|
18160 |
|
18161 |
|
18162 |
|
18163 |
|
18164 |
|
18165 |
|
18166 |
|
18167 |
|
18168 |
|
18169 |
|
18170 |
|
18171 |
|
18172 |
|
18173 |
|
18174 |
|
18175 |
|
18176 |
|
18177 |
|
18178 |
|
18179 |
|
18180 |
|
18181 |
|
18182 |
|
18183 |
|
18184 |
|
18185 |
|
18186 |
|
18187 |
|
18188 |
|
18189 |
|
18190 |
|
18191 |
|
18192 |
|
18193 |
|
18194 |
|
18195 |
|
18196 |
|
18197 |
|
18198 |
|
18199 |
|
18200 |
|
18201 |
|
18202 |
|
18203 |
|
18204 |
|
18205 |
|
18206 |
|
18207 |
|
18208 |
|
18209 |
|
18210 |
|
18211 |
|
18212 |
|
18213 | })
|
18214 | ]);
|
18215 | }); |
\ | No newline at end of file |