UNPKG

524 kBJavaScriptView Raw
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__) {
11return /******/ (function(modules) { // webpackBootstrap
12/******/ // The module cache
13/******/ var installedModules = {};
14/******/
15/******/ // The require function
16/******/ function __webpack_require__(moduleId) {
17/******/
18/******/ // Check if module is in cache
19/******/ if(installedModules[moduleId]) {
20/******/ return installedModules[moduleId].exports;
21/******/ }
22/******/ // Create a new module (and put it into the cache)
23/******/ var module = installedModules[moduleId] = {
24/******/ i: moduleId,
25/******/ l: false,
26/******/ exports: {}
27/******/ };
28/******/
29/******/ // Execute the module function
30/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31/******/
32/******/ // Flag the module as loaded
33/******/ module.l = true;
34/******/
35/******/ // Return the exports of the module
36/******/ return module.exports;
37/******/ }
38/******/
39/******/
40/******/ // expose the modules object (__webpack_modules__)
41/******/ __webpack_require__.m = modules;
42/******/
43/******/ // expose the module cache
44/******/ __webpack_require__.c = installedModules;
45/******/
46/******/ // define getter function for harmony exports
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/******/ // define __esModule on exports
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/******/ // create a fake namespace object
62/******/ // mode & 1: value is a module id, require it
63/******/ // mode & 2: merge all properties of value into the ns
64/******/ // mode & 4: return value when already ns object
65/******/ // mode & 8|1: behave like require
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/******/ // getDefaultExport function for compatibility with non-harmony modules
78/******/ __webpack_require__.n = function(module) {
79/******/ var getter = module && module.__esModule ?
80/******/ function getDefault() { return module['default']; } :
81/******/ function getModuleExports() { return module; };
82/******/ __webpack_require__.d(getter, 'a', getter);
83/******/ return getter;
84/******/ };
85/******/
86/******/ // Object.prototype.hasOwnProperty.call
87/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88/******/
89/******/ // __webpack_public_path__
90/******/ __webpack_require__.p = "";
91/******/
92/******/
93/******/ // Load entry module and return exports
94/******/ return __webpack_require__(__webpack_require__.s = 154);
95/******/ })
96/************************************************************************/
97/******/ ([
98/* 0 */
99/***/ (function(module, exports, __webpack_require__) {
100
101/**
102 * Copyright (c) 2013-present, Facebook, Inc.
103 *
104 * This source code is licensed under the MIT license found in the
105 * LICENSE file in the root directory of this source tree.
106 */
107if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else {
108 // By explicitly using `prop-types` you are opting into new production behavior.
109 // http://fb.me/prop-types-in-prod
110 module.exports = __webpack_require__(97)();
111}
112
113/***/ }),
114/* 1 */
115/***/ (function(module, exports) {
116
117module.exports = __WEBPACK_EXTERNAL_MODULE__1__;
118
119/***/ }),
120/* 2 */
121/***/ (function(module, exports, __webpack_require__) {
122
123var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
124 Copyright (c) 2017 Jed Watson.
125 Licensed under the MIT License (MIT), see
126 http://jedwatson.github.io/classnames
127*/
128
129/* global define */
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 // register as 'classnames', consistent with npm package name
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/* 3 */
177/***/ (function(module, exports, __webpack_require__) {
178
179"use strict";
180
181
182Object.defineProperty(exports, "__esModule", {
183 value: true
184});
185
186var _react = __webpack_require__(1);
187
188var _react2 = _interopRequireDefault(_react);
189
190var _reactIs = __webpack_require__(104);
191
192var _createChainableTypeChecker = __webpack_require__(22);
193
194var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
195
196function _interopRequireDefault(obj) {
197 return obj && obj.__esModule ? obj : {
198 default: obj
199 };
200}
201
202function 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
216exports.default = (0, _createChainableTypeChecker2.default)(elementType);
217module.exports = exports['default'];
218
219/***/ }),
220/* 4 */
221/***/ (function(module, exports) {
222
223module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
224
225/***/ }),
226/* 5 */
227/***/ (function(module, exports, __webpack_require__) {
228
229"use strict";
230
231
232exports.__esModule = true;
233exports.default = uncontrollable;
234
235var _react = _interopRequireDefault(__webpack_require__(1));
236
237var _invariant = _interopRequireDefault(__webpack_require__(21));
238
239var Utils = _interopRequireWildcard(__webpack_require__(99));
240
241function _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
266function _interopRequireDefault(obj) {
267 return obj && obj.__esModule ? obj : {
268 default: obj
269 };
270}
271
272function _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
290function _inheritsLoose(subClass, superClass) {
291 subClass.prototype = Object.create(superClass.prototype);
292 subClass.prototype.constructor = subClass;
293 subClass.__proto__ = superClass;
294}
295
296function 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 /*#__PURE__*/
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 //let the forceUpdate trigger the update
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 * If a prop switches from controlled to Uncontrolled
375 * reset its value to the defaultValue
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 * useful when wrapping a Component and you want to control
424 * everything
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
438module.exports = exports["default"];
439
440/***/ }),
441/* 6 */
442/***/ (function(module, exports) {
443
444// Source: http://jsfiddle.net/vWx8V/
445// http://stackoverflow.com/questions/5603195/full-list-of-javascript-keycodes
446
447/**
448 * Conenience method returns corresponding value for given keyName or keyCode.
449 *
450 * @param {Mixed} keyCode {Number} or keyName {String}
451 * @return {Mixed}
452 * @api public
453 */
454function keyCode(searchInput) {
455 // Keyboard Events
456 if (searchInput && 'object' === typeof searchInput) {
457 var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode;
458 if (hasKeyCode) searchInput = hasKeyCode;
459 } // Numbers
460
461
462 if ('number' === typeof searchInput) return names[searchInput]; // Everything else (cast to string)
463
464 var search = String(searchInput); // check codes
465
466 var foundNamedKey = codes[search.toLowerCase()];
467 if (foundNamedKey) return foundNamedKey; // check aliases
468
469 var foundNamedKey = aliases[search.toLowerCase()];
470 if (foundNamedKey) return foundNamedKey; // weird character?
471
472 if (search.length === 1) return search.charCodeAt(0);
473 return undefined;
474}
475/**
476 * Compares a keyboard event with a given keyCode or keyName.
477 *
478 * @param {Event} event Keyboard event that should be tested
479 * @param {Mixed} keyCode {Number} or keyName {String}
480 * @return {Boolean}
481 * @api public
482 */
483
484
485keyCode.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 // check codes
495 var foundNamedKey = codes[nameOrCode.toLowerCase()];
496
497 if (foundNamedKey) {
498 return foundNamedKey === keyCode;
499 } // check aliases
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
515exports = module.exports = keyCode;
516/**
517 * Get by name
518 *
519 * exports.code['enter'] // => 13
520 */
521
522var 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 // Helper aliases
566
567};
568var 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 * Programatically add the following
591 */
592 // lower case chars
593
594};
595
596for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32; // numbers
597
598
599for (var i = 48; i < 58; i++) codes[i - 48] = i; // function keys
600
601
602for (i = 1; i < 13; i++) codes['f' + i] = i + 111; // numpad keys
603
604
605for (i = 0; i < 10; i++) codes['numpad ' + i] = i + 96;
606/**
607 * Get by code
608 *
609 * exports.name[13] // => 'Enter'
610 */
611
612
613var names = exports.names = exports.title = {}; // title for backward compat
614// Create reverse mapping
615
616for (i in codes) names[codes[i]] = i; // Add aliases
617
618
619for (var alias in aliases) {
620 codes[alias] = aliases[alias];
621}
622
623/***/ }),
624/* 7 */
625/***/ (function(module, exports, __webpack_require__) {
626
627"use strict";
628/**
629 * Copyright 2014-2015, Facebook, Inc.
630 * All rights reserved.
631 *
632 * This source code is licensed under the BSD-style license found in the
633 * LICENSE file in the root directory of this source tree. An additional grant
634 * of patent rights can be found in the PATENTS file in the same directory.
635 */
636
637/**
638 * Similar to invariant but only logs a warning if the condition is not met.
639 * This can be used to log issues in development environments in critical
640 * paths. Removing the logging code for production environments will keep the
641 * same logic and follow the same code paths.
642 */
643
644var warning = function () {};
645
646if (false) {}
647
648module.exports = warning;
649
650/***/ }),
651/* 8 */
652/***/ (function(module, exports) {
653
654var core = module.exports = {
655 version: '2.5.7'
656};
657if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
658
659/***/ }),
660/* 9 */
661/***/ (function(module, exports, __webpack_require__) {
662
663module.exports = __webpack_require__(102);
664
665/***/ }),
666/* 10 */
667/***/ (function(module, exports, __webpack_require__) {
668
669var global = __webpack_require__(19);
670
671var core = __webpack_require__(8);
672
673var ctx = __webpack_require__(56);
674
675var hide = __webpack_require__(27);
676
677var has = __webpack_require__(31);
678
679var PROTOTYPE = 'prototype';
680
681var $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 // contains in native
696 own = !IS_FORCED && target && target[key] !== undefined;
697 if (own && has(exports, key)) continue; // export native or passed
698
699 out = own ? target[key] : source[key]; // prevent global pollution for namespaces
700
701 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] // bind timers to global for call from export context
702 : IS_BIND && own ? ctx(out, global) // wrap global constructors for prevent change them in library
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; // make static versions for prototype methods
725 }(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
726
727 if (IS_PROTO) {
728 (exports.virtual || (exports.virtual = {}))[key] = out; // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
729
730 if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
731 }
732 }
733}; // type bitmap
734
735
736$export.F = 1; // forced
737
738$export.G = 2; // global
739
740$export.S = 4; // static
741
742$export.P = 8; // proto
743
744$export.B = 16; // bind
745
746$export.W = 32; // wrap
747
748$export.U = 64; // safe
749
750$export.R = 128; // real proto method for `library`
751
752module.exports = $export;
753
754/***/ }),
755/* 11 */
756/***/ (function(module, exports, __webpack_require__) {
757
758"use strict";
759
760
761exports.__esModule = true;
762exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;
763
764var _propTypes = __webpack_require__(0);
765
766var PropTypes = _interopRequireWildcard(_propTypes);
767
768var _react = __webpack_require__(1);
769
770var _react2 = _interopRequireDefault(_react);
771
772var _reactDom = __webpack_require__(4);
773
774var _reactDom2 = _interopRequireDefault(_reactDom);
775
776var _reactLifecyclesCompat = __webpack_require__(117);
777
778var _PropTypes = __webpack_require__(118);
779
780function _interopRequireDefault(obj) {
781 return obj && obj.__esModule ? obj : {
782 default: obj
783 };
784}
785
786function _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
803function _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
815function _classCallCheck(instance, Constructor) {
816 if (!(instance instanceof Constructor)) {
817 throw new TypeError("Cannot call a class as a function");
818 }
819}
820
821function _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
829function _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
845var UNMOUNTED = exports.UNMOUNTED = 'unmounted';
846var EXITED = exports.EXITED = 'exited';
847var ENTERING = exports.ENTERING = 'entering';
848var ENTERED = exports.ENTERED = 'entered';
849var EXITING = exports.EXITING = 'exiting';
850/**
851 * The Transition component lets you describe a transition from one component
852 * state to another _over time_ with a simple declarative API. Most commonly
853 * it's used to animate the mounting and unmounting of a component, but can also
854 * be used to describe in-place transition states as well.
855 *
856 * By default the `Transition` component does not alter the behavior of the
857 * component it renders, it only tracks "enter" and "exit" states for the components.
858 * It's up to you to give meaning and effect to those states. For example we can
859 * add styles to a component when it enters or exits:
860 *
861 * ```jsx
862 * import Transition from 'react-transition-group/Transition';
863 *
864 * const duration = 300;
865 *
866 * const defaultStyle = {
867 * transition: `opacity ${duration}ms ease-in-out`,
868 * opacity: 0,
869 * }
870 *
871 * const transitionStyles = {
872 * entering: { opacity: 0 },
873 * entered: { opacity: 1 },
874 * };
875 *
876 * const Fade = ({ in: inProp }) => (
877 * <Transition in={inProp} timeout={duration}>
878 * {(state) => (
879 * <div style={{
880 * ...defaultStyle,
881 * ...transitionStyles[state]
882 * }}>
883 * I'm a fade Transition!
884 * </div>
885 * )}
886 * </Transition>
887 * );
888 * ```
889 *
890 * As noted the `Transition` component doesn't _do_ anything by itself to its child component.
891 * What it does do is track transition states over time so you can update the
892 * component (such as by adding styles or classes) when it changes states.
893 *
894 * There are 4 main states a Transition can be in:
895 * - `'entering'`
896 * - `'entered'`
897 * - `'exiting'`
898 * - `'exited'`
899 *
900 * Transition state is toggled via the `in` prop. When `true` the component begins the
901 * "Enter" stage. During this stage, the component will shift from its current transition state,
902 * to `'entering'` for the duration of the transition and then to the `'entered'` stage once
903 * it's complete. Let's take the following example:
904 *
905 * ```jsx
906 * state = { in: false };
907 *
908 * toggleEnterState = () => {
909 * this.setState({ in: true });
910 * }
911 *
912 * render() {
913 * return (
914 * <div>
915 * <Transition in={this.state.in} timeout={500} />
916 * <button onClick={this.toggleEnterState}>Click to Enter</button>
917 * </div>
918 * );
919 * }
920 * ```
921 *
922 * When the button is clicked the component will shift to the `'entering'` state and
923 * stay there for 500ms (the value of `timeout`) before it finally switches to `'entered'`.
924 *
925 * When `in` is `false` the same thing happens except the state moves from `'exiting'` to `'exited'`.
926 *
927 * ## Timing
928 *
929 * Timing is often the trickiest part of animation, mistakes can result in slight delays
930 * that are hard to pin down. A common example is when you want to add an exit transition,
931 * you should set the desired final styles when the state is `'exiting'`. That's when the
932 * transition to those styles will start and, if you matched the `timeout` prop with the
933 * CSS Transition duration, it will end exactly when the state changes to `'exited'`.
934 *
935 * > **Note**: For simpler transitions the `Transition` component might be enough, but
936 * > take into account that it's platform-agnostic, while the `CSSTransition` component
937 * > [forces reflows](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)
938 * > in order to make more complex transitions more predictable. For example, even though
939 * > classes `example-enter` and `example-enter-active` are applied immediately one after
940 * > another, you can still transition from one to the other because of the forced reflow
941 * > (read [this issue](https://github.com/reactjs/react-transition-group/issues/159#issuecomment-322761171)
942 * > for more info). Take this into account when choosing between `Transition` and
943 * > `CSSTransition`.
944 *
945 * ## Example
946 *
947 * <iframe src="https://codesandbox.io/embed/741op4mmj0?fontsize=14" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>
948 *
949 */
950
951var 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; // In the context of a TransitionGroup all enters are really appears
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 // allows for nested Transitions
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 }; // getSnapshotBeforeUpdate(prevProps) {
1005 // let nextStatus = null
1006 // if (prevProps !== this.props) {
1007 // const { status } = this.state
1008 // if (this.props.in) {
1009 // if (status !== ENTERING && status !== ENTERED) {
1010 // nextStatus = ENTERING
1011 // }
1012 // } else {
1013 // if (status === ENTERING || status === ENTERED) {
1014 // nextStatus = EXITING
1015 // }
1016 // }
1017 // }
1018 // return { nextStatus }
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 // nextStatus will always be ENTERING or EXITING.
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(); // no enter animation skip right to ENTERED
1098 // if we are mounting and running this it means appear _must_ be set
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); // FIXME: appear timeout?
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(); // no exit animation skip right to EXITED
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 // This shouldn't be necessary, but there are weird race conditions with
1166 // setState callbacks and unmounting in testing, so always make sure that
1167 // we can cancel any pending setState callbacks after we unmount.
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']); // filter props for Transtition
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
1247Transition.contextTypes = {
1248 transitionGroup: PropTypes.object
1249};
1250Transition.childContextTypes = {
1251 transitionGroup: function transitionGroup() {}
1252};
1253Transition.propTypes = false ? undefined : {};
1254
1255function noop() {}
1256
1257Transition.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};
1271Transition.UNMOUNTED = 0;
1272Transition.EXITED = 1;
1273Transition.ENTERING = 2;
1274Transition.ENTERED = 3;
1275Transition.EXITING = 4;
1276exports.default = (0, _reactLifecyclesCompat.polyfill)(Transition);
1277
1278/***/ }),
1279/* 12 */
1280/***/ (function(module, exports, __webpack_require__) {
1281
1282"use strict";
1283
1284
1285Object.defineProperty(exports, "__esModule", {
1286 value: true
1287});
1288exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
1289module.exports = exports['default'];
1290
1291/***/ }),
1292/* 13 */
1293/***/ (function(module, exports, __webpack_require__) {
1294
1295"use strict";
1296
1297
1298Object.defineProperty(exports, "__esModule", {
1299 value: true
1300});
1301
1302var _inDOM = __webpack_require__(12);
1303
1304var _inDOM2 = _interopRequireDefault(_inDOM);
1305
1306function _interopRequireDefault(obj) {
1307 return obj && obj.__esModule ? obj : {
1308 default: obj
1309 };
1310}
1311
1312exports.default = function () {
1313 // HTML DOM and SVG DOM may have different support levels,
1314 // so we need to check on context instead of a document root element.
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
1326function fallback(context, node) {
1327 if (node) do {
1328 if (node === context) return true;
1329 } while (node = node.parentNode);
1330 return false;
1331}
1332
1333module.exports = exports['default'];
1334
1335/***/ }),
1336/* 14 */
1337/***/ (function(module, exports, __webpack_require__) {
1338
1339"use strict";
1340
1341
1342Object.defineProperty(exports, "__esModule", {
1343 value: true
1344});
1345exports.default = all;
1346
1347var _createChainableTypeChecker = __webpack_require__(22);
1348
1349var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
1350
1351function _interopRequireDefault(obj) {
1352 return obj && obj.__esModule ? obj : {
1353 default: obj
1354 };
1355}
1356
1357function 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
1385module.exports = exports['default'];
1386
1387/***/ }),
1388/* 15 */
1389/***/ (function(module, exports, __webpack_require__) {
1390
1391"use strict";
1392
1393
1394Object.defineProperty(exports, "__esModule", {
1395 value: true
1396});
1397exports.default = isRequiredForA11y;
1398
1399function 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
1416module.exports = exports['default'];
1417
1418/***/ }),
1419/* 16 */
1420/***/ (function(module, exports, __webpack_require__) {
1421
1422var store = __webpack_require__(60)('wks');
1423
1424var uid = __webpack_require__(62);
1425
1426var Symbol = __webpack_require__(19).Symbol;
1427
1428var USE_SYMBOL = typeof Symbol == 'function';
1429
1430var $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/* 17 */
1438/***/ (function(module, exports, __webpack_require__) {
1439
1440"use strict";
1441
1442
1443Object.defineProperty(exports, "__esModule", {
1444 value: true
1445});
1446exports.default = ownerDocument;
1447
1448function ownerDocument(node) {
1449 return node && node.ownerDocument || document;
1450}
1451
1452module.exports = exports["default"];
1453
1454/***/ }),
1455/* 18 */
1456/***/ (function(module, exports, __webpack_require__) {
1457
1458"use strict";
1459
1460
1461Object.defineProperty(exports, "__esModule", {
1462 value: true
1463});
1464exports.default = style;
1465
1466var _camelizeStyle = __webpack_require__(67);
1467
1468var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle);
1469
1470var _hyphenateStyle = __webpack_require__(108);
1471
1472var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle);
1473
1474var _getComputedStyle2 = __webpack_require__(110);
1475
1476var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2);
1477
1478var _removeStyle = __webpack_require__(111);
1479
1480var _removeStyle2 = _interopRequireDefault(_removeStyle);
1481
1482var _properties = __webpack_require__(46);
1483
1484var _isTransform = __webpack_require__(112);
1485
1486var _isTransform2 = _interopRequireDefault(_isTransform);
1487
1488function _interopRequireDefault(obj) {
1489 return obj && obj.__esModule ? obj : {
1490 default: obj
1491 };
1492}
1493
1494function 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
1526module.exports = exports['default'];
1527
1528/***/ }),
1529/* 19 */
1530/***/ (function(module, exports) {
1531
1532// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1533var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self // eslint-disable-next-line no-new-func
1534: Function('return this')();
1535if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
1536
1537/***/ }),
1538/* 20 */
1539/***/ (function(module, exports, __webpack_require__) {
1540
1541"use strict";
1542
1543
1544exports.__esModule = true;
1545
1546exports.default = function (componentOrElement) {
1547 return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement));
1548};
1549
1550var _reactDom = __webpack_require__(4);
1551
1552var _reactDom2 = _interopRequireDefault(_reactDom);
1553
1554var _ownerDocument = __webpack_require__(17);
1555
1556var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
1557
1558function _interopRequireDefault(obj) {
1559 return obj && obj.__esModule ? obj : {
1560 default: obj
1561 };
1562}
1563
1564module.exports = exports['default'];
1565
1566/***/ }),
1567/* 21 */
1568/***/ (function(module, exports, __webpack_require__) {
1569
1570"use strict";
1571/**
1572 * Copyright (c) 2013-present, Facebook, Inc.
1573 *
1574 * This source code is licensed under the MIT license found in the
1575 * LICENSE file in the root directory of this source tree.
1576 */
1577
1578/**
1579 * Use invariant() to assert state which your program assumes to be true.
1580 *
1581 * Provide sprintf-style format (only %s is supported) and arguments
1582 * to provide information about what broke and what you were
1583 * expecting.
1584 *
1585 * The invariant message will be stripped in production, but the invariant
1586 * will remain to ensure logic does not differ in production.
1587 */
1588
1589var 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; // we don't care about invariant's own frame
1607
1608 throw error;
1609 }
1610};
1611
1612module.exports = invariant;
1613
1614/***/ }),
1615/* 22 */
1616/***/ (function(module, exports, __webpack_require__) {
1617
1618"use strict";
1619
1620
1621Object.defineProperty(exports, "__esModule", {
1622 value: true
1623});
1624exports.default = createChainableTypeChecker;
1625/**
1626 * Copyright 2013-present, Facebook, Inc.
1627 * All rights reserved.
1628 *
1629 * This source code is licensed under the BSD-style license found in the
1630 * LICENSE file in the root directory of this source tree. An additional grant
1631 * of patent rights can be found in the PATENTS file in the same directory.
1632 */
1633// Mostly taken from ReactPropTypes.
1634
1635function 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
1660module.exports = exports['default'];
1661
1662/***/ }),
1663/* 23 */
1664/***/ (function(module, exports, __webpack_require__) {
1665
1666"use strict";
1667
1668
1669exports.__esModule = true;
1670
1671var _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
1677var _react = __webpack_require__(1);
1678
1679var _react2 = _interopRequireDefault(_react);
1680
1681var _createChainableTypeChecker = __webpack_require__(153);
1682
1683var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
1684
1685function _interopRequireDefault(obj) {
1686 return obj && obj.__esModule ? obj : {
1687 default: obj
1688 };
1689}
1690
1691function 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
1706exports.default = (0, _createChainableTypeChecker2.default)(elementType);
1707
1708/***/ }),
1709/* 24 */
1710/***/ (function(module, exports, __webpack_require__) {
1711
1712"use strict";
1713
1714
1715exports.__esModule = true;
1716
1717var _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
1731var _activeElement = __webpack_require__(50);
1732
1733var _activeElement2 = _interopRequireDefault(_activeElement);
1734
1735var _contains = __webpack_require__(13);
1736
1737var _contains2 = _interopRequireDefault(_contains);
1738
1739var _inDOM = __webpack_require__(12);
1740
1741var _inDOM2 = _interopRequireDefault(_inDOM);
1742
1743var _propTypes = __webpack_require__(0);
1744
1745var _propTypes2 = _interopRequireDefault(_propTypes);
1746
1747var _componentOrElement = __webpack_require__(35);
1748
1749var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
1750
1751var _deprecated = __webpack_require__(136);
1752
1753var _deprecated2 = _interopRequireDefault(_deprecated);
1754
1755var _elementType = __webpack_require__(3);
1756
1757var _elementType2 = _interopRequireDefault(_elementType);
1758
1759var _react = __webpack_require__(1);
1760
1761var _react2 = _interopRequireDefault(_react);
1762
1763var _reactDom = __webpack_require__(4);
1764
1765var _reactDom2 = _interopRequireDefault(_reactDom);
1766
1767var _warning = __webpack_require__(7);
1768
1769var _warning2 = _interopRequireDefault(_warning);
1770
1771var _ModalManager = __webpack_require__(137);
1772
1773var _ModalManager2 = _interopRequireDefault(_ModalManager);
1774
1775var _Portal = __webpack_require__(72);
1776
1777var _Portal2 = _interopRequireDefault(_Portal);
1778
1779var _RefHolder = __webpack_require__(143);
1780
1781var _RefHolder2 = _interopRequireDefault(_RefHolder);
1782
1783var _addEventListener = __webpack_require__(70);
1784
1785var _addEventListener2 = _interopRequireDefault(_addEventListener);
1786
1787var _addFocusListener = __webpack_require__(144);
1788
1789var _addFocusListener2 = _interopRequireDefault(_addFocusListener);
1790
1791var _getContainer = __webpack_require__(37);
1792
1793var _getContainer2 = _interopRequireDefault(_getContainer);
1794
1795var _ownerDocument = __webpack_require__(20);
1796
1797var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
1798
1799function _interopRequireDefault(obj) {
1800 return obj && obj.__esModule ? obj : {
1801 default: obj
1802 };
1803}
1804
1805function _classCallCheck(instance, Constructor) {
1806 if (!(instance instanceof Constructor)) {
1807 throw new TypeError("Cannot call a class as a function");
1808 }
1809}
1810
1811function _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
1819function _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/* eslint-disable react/prop-types */
1835
1836
1837var modalManager = new _ModalManager2.default();
1838/**
1839 * Love them or hate them, `<Modal/>` provides a solid foundation for creating dialogs, lightboxes, or whatever else.
1840 * The Modal component renders its `children` node in front of a backdrop component.
1841 *
1842 * The Modal offers a few helpful features over using just a `<Portal/>` component and some styles:
1843 *
1844 * - Manages dialog stacking when one-at-a-time just isn't enough.
1845 * - Creates a backdrop, for disabling interaction below the modal.
1846 * - It properly manages focus; moving to the modal content, and keeping it there until the modal is closed.
1847 * - It disables scrolling of the page content while open.
1848 * - Adds the appropriate ARIA roles are automatically.
1849 * - Easily pluggable animations via a `<Transition/>` component.
1850 *
1851 * Note that, in the same way the backdrop element prevents users from clicking or interacting
1852 * with the page content underneath the Modal, Screen readers also need to be signaled to not to
1853 * interact with page content while the Modal is open. To do this, we use a common technique of applying
1854 * the `aria-hidden='true'` attribute to the non-Modal elements in the Modal `container`. This means that for
1855 * a Modal to be truly modal, it should have a `container` that is _outside_ your app's
1856 * React hierarchy (such as the default: document.body).
1857 */
1858
1859var 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 // Otherwise let handleHidden take care of marking exited.
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 // Otherwise handleHidden will call this.
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 // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917)
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
2037Modal.propTypes = _extends({}, _Portal2.default.propTypes, {
2038 /**
2039 * Set the visibility of the Modal
2040 */
2041 show: _propTypes2.default.bool,
2042
2043 /**
2044 * A Node, Component instance, or function that returns either. The Modal is appended to it's container element.
2045 *
2046 * For the sake of assistive technologies, the container should usually be the document body, so that the rest of the
2047 * page content can be placed behind a virtual backdrop as well as a visual one.
2048 */
2049 container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
2050
2051 /**
2052 * A callback fired when the Modal is opening.
2053 */
2054 onShow: _propTypes2.default.func,
2055
2056 /**
2057 * A callback fired when either the backdrop is clicked, or the escape key is pressed.
2058 *
2059 * The `onHide` callback only signals intent from the Modal,
2060 * you must actually set the `show` prop to `false` for the Modal to close.
2061 */
2062 onHide: _propTypes2.default.func,
2063
2064 /**
2065 * Include a backdrop component.
2066 */
2067 backdrop: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.oneOf(['static'])]),
2068
2069 /**
2070 * A function that returns a backdrop component. Useful for custom
2071 * backdrop rendering.
2072 *
2073 * ```js
2074 * renderBackdrop={props => <MyBackdrop {...props} />}
2075 * ```
2076 */
2077 renderBackdrop: _propTypes2.default.func,
2078
2079 /**
2080 * A callback fired when the escape key, if specified in `keyboard`, is pressed.
2081 */
2082 onEscapeKeyDown: _propTypes2.default.func,
2083
2084 /**
2085 * Support for this function will be deprecated. Please use `onEscapeKeyDown` instead
2086 * A callback fired when the escape key, if specified in `keyboard`, is pressed.
2087 * @deprecated
2088 */
2089 onEscapeKeyUp: (0, _deprecated2.default)(_propTypes2.default.func, 'Please use onEscapeKeyDown instead for consistency'),
2090
2091 /**
2092 * A callback fired when the backdrop, if specified, is clicked.
2093 */
2094 onBackdropClick: _propTypes2.default.func,
2095
2096 /**
2097 * A style object for the backdrop component.
2098 */
2099 backdropStyle: _propTypes2.default.object,
2100
2101 /**
2102 * A css class or classes for the backdrop component.
2103 */
2104 backdropClassName: _propTypes2.default.string,
2105
2106 /**
2107 * A css class or set of classes applied to the modal container when the modal is open,
2108 * and removed when it is closed.
2109 */
2110 containerClassName: _propTypes2.default.string,
2111
2112 /**
2113 * Close the modal when escape key is pressed
2114 */
2115 keyboard: _propTypes2.default.bool,
2116
2117 /**
2118 * A `react-transition-group@2.0.0` `<Transition/>` component used
2119 * to control animations for the dialog component.
2120 */
2121 transition: _elementType2.default,
2122
2123 /**
2124 * A `react-transition-group@2.0.0` `<Transition/>` component used
2125 * to control animations for the backdrop components.
2126 */
2127 backdropTransition: _elementType2.default,
2128
2129 /**
2130 * When `true` The modal will automatically shift focus to itself when it opens, and
2131 * replace it to the last focused element when it closes. This also
2132 * works correctly with any Modal children that have the `autoFocus` prop.
2133 *
2134 * Generally this should never be set to `false` as it makes the Modal less
2135 * accessible to assistive technologies, like screen readers.
2136 */
2137 autoFocus: _propTypes2.default.bool,
2138
2139 /**
2140 * When `true` The modal will prevent focus from leaving the Modal while open.
2141 *
2142 * Generally this should never be set to `false` as it makes the Modal less
2143 * accessible to assistive technologies, like screen readers.
2144 */
2145 enforceFocus: _propTypes2.default.bool,
2146
2147 /**
2148 * When `true` The modal will restore focus to previously focused element once
2149 * modal is hidden
2150 */
2151 restoreFocus: _propTypes2.default.bool,
2152
2153 /**
2154 * Callback fired before the Modal transitions in
2155 */
2156 onEnter: _propTypes2.default.func,
2157
2158 /**
2159 * Callback fired as the Modal begins to transition in
2160 */
2161 onEntering: _propTypes2.default.func,
2162
2163 /**
2164 * Callback fired after the Modal finishes transitioning in
2165 */
2166 onEntered: _propTypes2.default.func,
2167
2168 /**
2169 * Callback fired right before the Modal transitions out
2170 */
2171 onExit: _propTypes2.default.func,
2172
2173 /**
2174 * Callback fired as the Modal begins to transition out
2175 */
2176 onExiting: _propTypes2.default.func,
2177
2178 /**
2179 * Callback fired after the Modal finishes transitioning out
2180 */
2181 onExited: _propTypes2.default.func,
2182
2183 /**
2184 * A ModalManager instance used to track and manage the state of open
2185 * Modals. Useful when customizing how modals interact within a container
2186 */
2187 manager: _propTypes2.default.object.isRequired
2188});
2189Modal.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
2203var _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
2350Modal.Manager = _ModalManager2.default;
2351exports.default = Modal;
2352module.exports = exports['default'];
2353
2354/***/ }),
2355/* 25 */
2356/***/ (function(module, exports) {
2357
2358module.exports = function (exec) {
2359 try {
2360 return !!exec();
2361 } catch (e) {
2362 return true;
2363 }
2364};
2365
2366/***/ }),
2367/* 26 */
2368/***/ (function(module, exports, __webpack_require__) {
2369
2370module.exports = __webpack_require__(100);
2371
2372/***/ }),
2373/* 27 */
2374/***/ (function(module, exports, __webpack_require__) {
2375
2376var dP = __webpack_require__(28);
2377
2378var createDesc = __webpack_require__(41);
2379
2380module.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/* 28 */
2389/***/ (function(module, exports, __webpack_require__) {
2390
2391var anObject = __webpack_require__(29);
2392
2393var IE8_DOM_DEFINE = __webpack_require__(83);
2394
2395var toPrimitive = __webpack_require__(84);
2396
2397var dP = Object.defineProperty;
2398exports.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 /* empty */
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/* 29 */
2414/***/ (function(module, exports, __webpack_require__) {
2415
2416var isObject = __webpack_require__(40);
2417
2418module.exports = function (it) {
2419 if (!isObject(it)) throw TypeError(it + ' is not an object!');
2420 return it;
2421};
2422
2423/***/ }),
2424/* 30 */
2425/***/ (function(module, exports, __webpack_require__) {
2426
2427// Thank's IE8 for his funny defineProperty
2428module.exports = !__webpack_require__(25)(function () {
2429 return Object.defineProperty({}, 'a', {
2430 get: function () {
2431 return 7;
2432 }
2433 }).a != 7;
2434});
2435
2436/***/ }),
2437/* 31 */
2438/***/ (function(module, exports) {
2439
2440var hasOwnProperty = {}.hasOwnProperty;
2441
2442module.exports = function (it, key) {
2443 return hasOwnProperty.call(it, key);
2444};
2445
2446/***/ }),
2447/* 32 */
2448/***/ (function(module, exports, __webpack_require__) {
2449
2450// 19.1.2.14 / 15.2.3.14 Object.keys(O)
2451var $keys = __webpack_require__(86);
2452
2453var enumBugKeys = __webpack_require__(63);
2454
2455module.exports = Object.keys || function keys(O) {
2456 return $keys(O, enumBugKeys);
2457};
2458
2459/***/ }),
2460/* 33 */
2461/***/ (function(module, exports) {
2462
2463// 7.2.1 RequireObjectCoercible(argument)
2464module.exports = function (it) {
2465 if (it == undefined) throw TypeError("Can't call method on " + it);
2466 return it;
2467};
2468
2469/***/ }),
2470/* 34 */
2471/***/ (function(module, exports, __webpack_require__) {
2472
2473// 7.1.13 ToObject(argument)
2474var defined = __webpack_require__(33);
2475
2476module.exports = function (it) {
2477 return Object(defined(it));
2478};
2479
2480/***/ }),
2481/* 35 */
2482/***/ (function(module, exports, __webpack_require__) {
2483
2484"use strict";
2485
2486
2487Object.defineProperty(exports, "__esModule", {
2488 value: true
2489});
2490
2491var _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
2497var _react = __webpack_require__(1);
2498
2499var _react2 = _interopRequireDefault(_react);
2500
2501var _createChainableTypeChecker = __webpack_require__(22);
2502
2503var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
2504
2505function _interopRequireDefault(obj) {
2506 return obj && obj.__esModule ? obj : {
2507 default: obj
2508 };
2509}
2510
2511function 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
2526exports.default = (0, _createChainableTypeChecker2.default)(validate);
2527module.exports = exports['default'];
2528
2529/***/ }),
2530/* 36 */
2531/***/ (function(module, exports, __webpack_require__) {
2532
2533"use strict";
2534
2535
2536Object.defineProperty(exports, "__esModule", {
2537 value: true
2538});
2539exports.default = getWindow;
2540
2541function getWindow(node) {
2542 return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false;
2543}
2544
2545module.exports = exports["default"];
2546
2547/***/ }),
2548/* 37 */
2549/***/ (function(module, exports, __webpack_require__) {
2550
2551"use strict";
2552
2553
2554exports.__esModule = true;
2555exports.default = getContainer;
2556
2557var _reactDom = __webpack_require__(4);
2558
2559var _reactDom2 = _interopRequireDefault(_reactDom);
2560
2561function _interopRequireDefault(obj) {
2562 return obj && obj.__esModule ? obj : {
2563 default: obj
2564 };
2565}
2566
2567function getContainer(container, defaultContainer) {
2568 container = typeof container === 'function' ? container() : container;
2569 return _reactDom2.default.findDOMNode(container) || defaultContainer;
2570}
2571
2572module.exports = exports['default'];
2573
2574/***/ }),
2575/* 38 */
2576/***/ (function(module, exports, __webpack_require__) {
2577
2578module.exports = __webpack_require__(80);
2579
2580/***/ }),
2581/* 39 */
2582/***/ (function(module, exports, __webpack_require__) {
2583
2584"use strict";
2585
2586
2587Object.defineProperty(exports, "__esModule", {
2588 value: true
2589});
2590
2591exports.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
2609var _inDOM = __webpack_require__(12);
2610
2611var _inDOM2 = _interopRequireDefault(_inDOM);
2612
2613function _interopRequireDefault(obj) {
2614 return obj && obj.__esModule ? obj : {
2615 default: obj
2616 };
2617}
2618
2619var size = void 0;
2620module.exports = exports['default'];
2621
2622/***/ }),
2623/* 40 */
2624/***/ (function(module, exports) {
2625
2626module.exports = function (it) {
2627 return typeof it === 'object' ? it !== null : typeof it === 'function';
2628};
2629
2630/***/ }),
2631/* 41 */
2632/***/ (function(module, exports) {
2633
2634module.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/* 42 */
2645/***/ (function(module, exports, __webpack_require__) {
2646
2647// to indexed object, toObject with fallback for non-array-like ES3 strings
2648var IObject = __webpack_require__(58);
2649
2650var defined = __webpack_require__(33);
2651
2652module.exports = function (it) {
2653 return IObject(defined(it));
2654};
2655
2656/***/ }),
2657/* 43 */
2658/***/ (function(module, exports) {
2659
2660var toString = {}.toString;
2661
2662module.exports = function (it) {
2663 return toString.call(it).slice(8, -1);
2664};
2665
2666/***/ }),
2667/* 44 */
2668/***/ (function(module, exports) {
2669
2670// 7.1.4 ToInteger
2671var ceil = Math.ceil;
2672var floor = Math.floor;
2673
2674module.exports = function (it) {
2675 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
2676};
2677
2678/***/ }),
2679/* 45 */
2680/***/ (function(module, exports, __webpack_require__) {
2681
2682var shared = __webpack_require__(60)('keys');
2683
2684var uid = __webpack_require__(62);
2685
2686module.exports = function (key) {
2687 return shared[key] || (shared[key] = uid(key));
2688};
2689
2690/***/ }),
2691/* 46 */
2692/***/ (function(module, exports, __webpack_require__) {
2693
2694"use strict";
2695
2696
2697Object.defineProperty(exports, "__esModule", {
2698 value: true
2699});
2700exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined;
2701
2702var _inDOM = __webpack_require__(12);
2703
2704var _inDOM2 = _interopRequireDefault(_inDOM);
2705
2706function _interopRequireDefault(obj) {
2707 return obj && obj.__esModule ? obj : {
2708 default: obj
2709 };
2710}
2711
2712var transform = 'transform';
2713var prefix = void 0,
2714 transitionEnd = void 0,
2715 animationEnd = void 0;
2716var transitionProperty = void 0,
2717 transitionDuration = void 0,
2718 transitionTiming = void 0,
2719 transitionDelay = void 0;
2720var animationName = void 0,
2721 animationDuration = void 0,
2722 animationTiming = void 0,
2723 animationDelay = void 0;
2724
2725if (_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
2742exports.transform = transform;
2743exports.transitionProperty = transitionProperty;
2744exports.transitionTiming = transitionTiming;
2745exports.transitionDelay = transitionDelay;
2746exports.transitionDuration = transitionDuration;
2747exports.transitionEnd = transitionEnd;
2748exports.animationName = animationName;
2749exports.animationDuration = animationDuration;
2750exports.animationTiming = animationTiming;
2751exports.animationDelay = animationDelay;
2752exports.animationEnd = animationEnd;
2753exports.default = {
2754 transform: transform,
2755 end: transitionEnd,
2756 property: transitionProperty,
2757 timing: transitionTiming,
2758 delay: transitionDelay,
2759 duration: transitionDuration
2760};
2761
2762function 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/* 47 */
2806/***/ (function(module, exports) {
2807
2808module.exports = {};
2809
2810/***/ }),
2811/* 48 */
2812/***/ (function(module, exports, __webpack_require__) {
2813
2814"use strict";
2815
2816
2817Object.defineProperty(exports, "__esModule", {
2818 value: true
2819});
2820
2821var _inDOM = __webpack_require__(12);
2822
2823var _inDOM2 = _interopRequireDefault(_inDOM);
2824
2825function _interopRequireDefault(obj) {
2826 return obj && obj.__esModule ? obj : {
2827 default: obj
2828 };
2829}
2830
2831var on = function on() {};
2832
2833if (_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
2848exports.default = on;
2849module.exports = exports['default'];
2850
2851/***/ }),
2852/* 49 */
2853/***/ (function(module, exports, __webpack_require__) {
2854
2855"use strict";
2856
2857
2858Object.defineProperty(exports, "__esModule", {
2859 value: true
2860});
2861
2862var _inDOM = __webpack_require__(12);
2863
2864var _inDOM2 = _interopRequireDefault(_inDOM);
2865
2866function _interopRequireDefault(obj) {
2867 return obj && obj.__esModule ? obj : {
2868 default: obj
2869 };
2870}
2871
2872var off = function off() {};
2873
2874if (_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
2884exports.default = off;
2885module.exports = exports['default'];
2886
2887/***/ }),
2888/* 50 */
2889/***/ (function(module, exports, __webpack_require__) {
2890
2891"use strict";
2892
2893
2894Object.defineProperty(exports, "__esModule", {
2895 value: true
2896});
2897exports.default = activeElement;
2898
2899var _ownerDocument = __webpack_require__(17);
2900
2901var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
2902
2903function _interopRequireDefault(obj) {
2904 return obj && obj.__esModule ? obj : {
2905 default: obj
2906 };
2907}
2908
2909function 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 /* ie throws if no active element */
2916 }
2917}
2918
2919module.exports = exports['default'];
2920
2921/***/ }),
2922/* 51 */
2923/***/ (function(module, exports, __webpack_require__) {
2924
2925"use strict";
2926
2927
2928exports.__esModule = true;
2929
2930var _contains = __webpack_require__(13);
2931
2932var _contains2 = _interopRequireDefault(_contains);
2933
2934var _propTypes = __webpack_require__(0);
2935
2936var _propTypes2 = _interopRequireDefault(_propTypes);
2937
2938var _react = __webpack_require__(1);
2939
2940var _react2 = _interopRequireDefault(_react);
2941
2942var _reactDom = __webpack_require__(4);
2943
2944var _reactDom2 = _interopRequireDefault(_reactDom);
2945
2946var _addEventListener = __webpack_require__(70);
2947
2948var _addEventListener2 = _interopRequireDefault(_addEventListener);
2949
2950var _ownerDocument = __webpack_require__(20);
2951
2952var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
2953
2954function _interopRequireDefault(obj) {
2955 return obj && obj.__esModule ? obj : {
2956 default: obj
2957 };
2958}
2959
2960function _classCallCheck(instance, Constructor) {
2961 if (!(instance instanceof Constructor)) {
2962 throw new TypeError("Cannot call a class as a function");
2963 }
2964}
2965
2966function _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
2974function _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
2990var escapeKeyCode = 27;
2991
2992function isLeftClickEvent(event) {
2993 return event.button === 0;
2994}
2995
2996function isModifiedEvent(event) {
2997 return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
2998}
2999/**
3000 * The `<RootCloseWrapper/>` component registers your callback on the document
3001 * when rendered. Powers the `<Overlay/>` component. This is used achieve modal
3002 * style behavior where your callback is triggered when the user tries to
3003 * interact with the rest of the document or hits the `esc` key.
3004 */
3005
3006
3007var 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); // Use capture for this listener so it fires before React's listener, to
3018 // avoid false positives in the contains() check below if the target DOM
3019 // element is removed in the React mouse callback.
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
3087RootCloseWrapper.displayName = 'RootCloseWrapper';
3088RootCloseWrapper.propTypes = {
3089 /**
3090 * Callback fired after click or mousedown. Also triggers when user hits `esc`.
3091 */
3092 onRootClose: _propTypes2.default.func,
3093
3094 /**
3095 * Children to render.
3096 */
3097 children: _propTypes2.default.element,
3098
3099 /**
3100 * Disable the the RootCloseWrapper, preventing it from triggering `onRootClose`.
3101 */
3102 disabled: _propTypes2.default.bool,
3103
3104 /**
3105 * Choose which document mouse event to bind to.
3106 */
3107 event: _propTypes2.default.oneOf(['click', 'mousedown'])
3108};
3109RootCloseWrapper.defaultProps = {
3110 event: 'click'
3111};
3112exports.default = RootCloseWrapper;
3113module.exports = exports['default'];
3114
3115/***/ }),
3116/* 52 */
3117/***/ (function(module, exports, __webpack_require__) {
3118
3119"use strict";
3120
3121
3122exports.__esModule = true;
3123exports.default = isOverflowing;
3124
3125var _isWindow = __webpack_require__(36);
3126
3127var _isWindow2 = _interopRequireDefault(_isWindow);
3128
3129var _ownerDocument = __webpack_require__(17);
3130
3131var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
3132
3133function _interopRequireDefault(obj) {
3134 return obj && obj.__esModule ? obj : {
3135 default: obj
3136 };
3137}
3138
3139function isBody(node) {
3140 return node && node.tagName.toLowerCase() === 'body';
3141}
3142
3143function bodyIsOverflowing(node) {
3144 var doc = (0, _ownerDocument2.default)(node);
3145 var win = (0, _isWindow2.default)(doc);
3146 var fullWidth = win.innerWidth; // Support: ie8, no 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
3156function isOverflowing(container) {
3157 var win = (0, _isWindow2.default)(container);
3158 return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight;
3159}
3160
3161module.exports = exports['default'];
3162
3163/***/ }),
3164/* 53 */
3165/***/ (function(module, exports, __webpack_require__) {
3166
3167module.exports = __webpack_require__(113);
3168
3169/***/ }),
3170/* 54 */
3171/***/ (function(module, exports, __webpack_require__) {
3172
3173"use strict";
3174
3175
3176Object.defineProperty(exports, "__esModule", {
3177 value: true
3178});
3179exports.listen = exports.filter = exports.off = exports.on = undefined;
3180
3181var _on = __webpack_require__(48);
3182
3183var _on2 = _interopRequireDefault(_on);
3184
3185var _off = __webpack_require__(49);
3186
3187var _off2 = _interopRequireDefault(_off);
3188
3189var _filter = __webpack_require__(133);
3190
3191var _filter2 = _interopRequireDefault(_filter);
3192
3193var _listen = __webpack_require__(135);
3194
3195var _listen2 = _interopRequireDefault(_listen);
3196
3197function _interopRequireDefault(obj) {
3198 return obj && obj.__esModule ? obj : {
3199 default: obj
3200 };
3201}
3202
3203exports.on = _on2.default;
3204exports.off = _off2.default;
3205exports.filter = _filter2.default;
3206exports.listen = _listen2.default;
3207exports.default = {
3208 on: _on2.default,
3209 off: _off2.default,
3210 filter: _filter2.default,
3211 listen: _listen2.default
3212};
3213
3214/***/ }),
3215/* 55 */
3216/***/ (function(module, exports, __webpack_require__) {
3217
3218"use strict";
3219
3220
3221exports.__esModule = true;
3222
3223var _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
3237var _propTypes = __webpack_require__(0);
3238
3239var _propTypes2 = _interopRequireDefault(_propTypes);
3240
3241var _elementType = __webpack_require__(3);
3242
3243var _elementType2 = _interopRequireDefault(_elementType);
3244
3245var _react = __webpack_require__(1);
3246
3247var _react2 = _interopRequireDefault(_react);
3248
3249var _Portal = __webpack_require__(72);
3250
3251var _Portal2 = _interopRequireDefault(_Portal);
3252
3253var _Position = __webpack_require__(145);
3254
3255var _Position2 = _interopRequireDefault(_Position);
3256
3257var _RootCloseWrapper = __webpack_require__(51);
3258
3259var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper);
3260
3261function _interopRequireDefault(obj) {
3262 return obj && obj.__esModule ? obj : {
3263 default: obj
3264 };
3265}
3266
3267function _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
3279function _classCallCheck(instance, Constructor) {
3280 if (!(instance instanceof Constructor)) {
3281 throw new TypeError("Cannot call a class as a function");
3282 }
3283}
3284
3285function _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
3293function _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 * Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays.
3310 */
3311
3312
3313var 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 // Otherwise let handleHidden take care of marking exited.
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']); // Don't un-render the overlay while it's transitioning out.
3364
3365
3366 var mountOverlay = props.show || Transition && !this.state.exited;
3367
3368 if (!mountOverlay) {
3369 // Don't bother showing anything if we don't have to.
3370 return null;
3371 }
3372
3373 var child = children; // Position is be inner-most because it adds inline styles into the child,
3374 // which the other wrappers don't forward correctly.
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; // This animates the child node by injecting props, so it must precede
3390 // anything that adds a wrapping div.
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 } // This goes after everything else because it adds a wrapping div.
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
3419Overlay.propTypes = _extends({}, _Portal2.default.propTypes, _Position2.default.propTypes, {
3420 /**
3421 * Set the visibility of the Overlay
3422 */
3423 show: _propTypes2.default.bool,
3424
3425 /**
3426 * Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay
3427 */
3428 rootClose: _propTypes2.default.bool,
3429
3430 /**
3431 * A Callback fired by the Overlay when it wishes to be hidden.
3432 *
3433 * __required__ when `rootClose` is `true`.
3434 *
3435 * @type func
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 * A `react-transition-group@2.0.0` `<Transition/>` component
3453 * used to animate the overlay as it changes visibility.
3454 */
3455 transition: _elementType2.default,
3456
3457 /**
3458 * Callback fired before the Overlay transitions in
3459 */
3460 onEnter: _propTypes2.default.func,
3461
3462 /**
3463 * Callback fired as the Overlay begins to transition in
3464 */
3465 onEntering: _propTypes2.default.func,
3466
3467 /**
3468 * Callback fired after the Overlay finishes transitioning in
3469 */
3470 onEntered: _propTypes2.default.func,
3471
3472 /**
3473 * Callback fired right before the Overlay transitions out
3474 */
3475 onExit: _propTypes2.default.func,
3476
3477 /**
3478 * Callback fired as the Overlay begins to transition out
3479 */
3480 onExiting: _propTypes2.default.func,
3481
3482 /**
3483 * Callback fired after the Overlay finishes transitioning out
3484 */
3485 onExited: _propTypes2.default.func
3486});
3487exports.default = Overlay;
3488module.exports = exports['default'];
3489
3490/***/ }),
3491/* 56 */
3492/***/ (function(module, exports, __webpack_require__) {
3493
3494// optional / simple context binding
3495var aFunction = __webpack_require__(82);
3496
3497module.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/* 57 */
3527/***/ (function(module, exports, __webpack_require__) {
3528
3529var isObject = __webpack_require__(40);
3530
3531var document = __webpack_require__(19).document; // typeof document.createElement is 'object' in old IE
3532
3533
3534var is = isObject(document) && isObject(document.createElement);
3535
3536module.exports = function (it) {
3537 return is ? document.createElement(it) : {};
3538};
3539
3540/***/ }),
3541/* 58 */
3542/***/ (function(module, exports, __webpack_require__) {
3543
3544// fallback for non-array-like ES3 and non-enumerable old V8 strings
3545var cof = __webpack_require__(43); // eslint-disable-next-line no-prototype-builtins
3546
3547
3548module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
3549 return cof(it) == 'String' ? it.split('') : Object(it);
3550};
3551
3552/***/ }),
3553/* 59 */
3554/***/ (function(module, exports, __webpack_require__) {
3555
3556// 7.1.15 ToLength
3557var toInteger = __webpack_require__(44);
3558
3559var min = Math.min;
3560
3561module.exports = function (it) {
3562 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
3563};
3564
3565/***/ }),
3566/* 60 */
3567/***/ (function(module, exports, __webpack_require__) {
3568
3569var core = __webpack_require__(8);
3570
3571var global = __webpack_require__(19);
3572
3573var SHARED = '__core-js_shared__';
3574var 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/* 61 */
3585/***/ (function(module, exports) {
3586
3587module.exports = true;
3588
3589/***/ }),
3590/* 62 */
3591/***/ (function(module, exports) {
3592
3593var id = 0;
3594var px = Math.random();
3595
3596module.exports = function (key) {
3597 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
3598};
3599
3600/***/ }),
3601/* 63 */
3602/***/ (function(module, exports) {
3603
3604// IE 8- don't enum bug keys
3605module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(',');
3606
3607/***/ }),
3608/* 64 */
3609/***/ (function(module, exports) {
3610
3611exports.f = {}.propertyIsEnumerable;
3612
3613/***/ }),
3614/* 65 */
3615/***/ (function(module, exports, __webpack_require__) {
3616
3617// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
3618var anObject = __webpack_require__(29);
3619
3620var dPs = __webpack_require__(92);
3621
3622var enumBugKeys = __webpack_require__(63);
3623
3624var IE_PROTO = __webpack_require__(45)('IE_PROTO');
3625
3626var Empty = function () {
3627 /* empty */
3628};
3629
3630var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype
3631
3632var createDict = function () {
3633 // Thrash, waste and sodomy: IE GC bug
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:'; // eslint-disable-line no-script-url
3645 // createDict = iframe.contentWindow.Object;
3646 // html.removeChild(iframe);
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
3659module.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; // add "__proto__" for Object.getPrototypeOf polyfill
3666
3667 result[IE_PROTO] = O;
3668 } else result = createDict();
3669
3670 return Properties === undefined ? result : dPs(result, Properties);
3671};
3672
3673/***/ }),
3674/* 66 */
3675/***/ (function(module, exports, __webpack_require__) {
3676
3677var getKeys = __webpack_require__(32);
3678
3679var toIObject = __webpack_require__(42);
3680
3681var isEnum = __webpack_require__(64).f;
3682
3683module.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/* 67 */
3702/***/ (function(module, exports, __webpack_require__) {
3703
3704"use strict";
3705
3706
3707Object.defineProperty(exports, "__esModule", {
3708 value: true
3709});
3710exports.default = camelizeStyleName;
3711
3712var _camelize = __webpack_require__(107);
3713
3714var _camelize2 = _interopRequireDefault(_camelize);
3715
3716function _interopRequireDefault(obj) {
3717 return obj && obj.__esModule ? obj : {
3718 default: obj
3719 };
3720}
3721
3722var msPattern = /^-ms-/;
3723/**
3724 * Copyright 2014-2015, Facebook, Inc.
3725 * All rights reserved.
3726 * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js
3727 */
3728
3729function camelizeStyleName(string) {
3730 return (0, _camelize2.default)(string.replace(msPattern, 'ms-'));
3731}
3732
3733module.exports = exports['default'];
3734
3735/***/ }),
3736/* 68 */
3737/***/ (function(module, exports) {
3738
3739module.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/* 69 */
3743/***/ (function(module, exports, __webpack_require__) {
3744
3745var def = __webpack_require__(28).f;
3746
3747var has = __webpack_require__(31);
3748
3749var TAG = __webpack_require__(16)('toStringTag');
3750
3751module.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/* 70 */
3760/***/ (function(module, exports, __webpack_require__) {
3761
3762"use strict";
3763
3764
3765exports.__esModule = true;
3766
3767exports.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
3776var _on = __webpack_require__(48);
3777
3778var _on2 = _interopRequireDefault(_on);
3779
3780var _off = __webpack_require__(49);
3781
3782var _off2 = _interopRequireDefault(_off);
3783
3784function _interopRequireDefault(obj) {
3785 return obj && obj.__esModule ? obj : {
3786 default: obj
3787 };
3788}
3789
3790module.exports = exports['default'];
3791
3792/***/ }),
3793/* 71 */
3794/***/ (function(module, exports, __webpack_require__) {
3795
3796"use strict";
3797
3798
3799Object.defineProperty(exports, "__esModule", {
3800 value: true
3801});
3802exports.default = hasClass;
3803
3804function 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
3808module.exports = exports["default"];
3809
3810/***/ }),
3811/* 72 */
3812/***/ (function(module, exports, __webpack_require__) {
3813
3814"use strict";
3815
3816
3817exports.__esModule = true;
3818
3819var _propTypes = __webpack_require__(0);
3820
3821var _propTypes2 = _interopRequireDefault(_propTypes);
3822
3823var _componentOrElement = __webpack_require__(35);
3824
3825var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
3826
3827var _react = __webpack_require__(1);
3828
3829var _react2 = _interopRequireDefault(_react);
3830
3831var _reactDom = __webpack_require__(4);
3832
3833var _reactDom2 = _interopRequireDefault(_reactDom);
3834
3835var _getContainer = __webpack_require__(37);
3836
3837var _getContainer2 = _interopRequireDefault(_getContainer);
3838
3839var _ownerDocument = __webpack_require__(20);
3840
3841var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
3842
3843var _LegacyPortal = __webpack_require__(142);
3844
3845var _LegacyPortal2 = _interopRequireDefault(_LegacyPortal);
3846
3847function _interopRequireDefault(obj) {
3848 return obj && obj.__esModule ? obj : {
3849 default: obj
3850 };
3851}
3852
3853function _classCallCheck(instance, Constructor) {
3854 if (!(instance instanceof Constructor)) {
3855 throw new TypeError("Cannot call a class as a function");
3856 }
3857}
3858
3859function _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
3867function _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 * The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
3884 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`.
3885 * The children of `<Portal/>` component will be appended to the `container` specified.
3886 */
3887
3888
3889var 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
3931Portal.displayName = 'Portal';
3932Portal.propTypes = {
3933 /**
3934 * A Node, Component instance, or function that returns either. The `container` will have the Portal children
3935 * appended to it.
3936 */
3937 container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
3938 onRendered: _propTypes2.default.func
3939};
3940exports.default = _reactDom2.default.createPortal ? Portal : _LegacyPortal2.default;
3941module.exports = exports['default'];
3942
3943/***/ }),
3944/* 73 */
3945/***/ (function(module, exports, __webpack_require__) {
3946
3947"use strict";
3948
3949
3950Object.defineProperty(exports, "__esModule", {
3951 value: true
3952});
3953exports.default = offset;
3954
3955var _contains = __webpack_require__(13);
3956
3957var _contains2 = _interopRequireDefault(_contains);
3958
3959var _isWindow = __webpack_require__(36);
3960
3961var _isWindow2 = _interopRequireDefault(_isWindow);
3962
3963var _ownerDocument = __webpack_require__(17);
3964
3965var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
3966
3967function _interopRequireDefault(obj) {
3968 return obj && obj.__esModule ? obj : {
3969 default: obj
3970 };
3971}
3972
3973function 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; // Make sure it's not a disconnected DOM node
3984
3985 if (!(0, _contains2.default)(docElem, node)) return box;
3986 if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); // IE8 getBoundingClientRect doesn't support width & height
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
3997module.exports = exports['default'];
3998
3999/***/ }),
4000/* 74 */
4001/***/ (function(module, exports, __webpack_require__) {
4002
4003"use strict";
4004
4005
4006Object.defineProperty(exports, "__esModule", {
4007 value: true
4008});
4009exports.default = scrollTop;
4010
4011var _isWindow = __webpack_require__(36);
4012
4013var _isWindow2 = _interopRequireDefault(_isWindow);
4014
4015function _interopRequireDefault(obj) {
4016 return obj && obj.__esModule ? obj : {
4017 default: obj
4018 };
4019}
4020
4021function 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
4027module.exports = exports['default'];
4028
4029/***/ }),
4030/* 75 */
4031/***/ (function(module, exports, __webpack_require__) {
4032
4033module.exports = __webpack_require__(90);
4034
4035/***/ }),
4036/* 76 */
4037/***/ (function(module, exports, __webpack_require__) {
4038
4039module.exports = __webpack_require__(94);
4040
4041/***/ }),
4042/* 77 */
4043/***/ (function(module, exports, __webpack_require__) {
4044
4045"use strict";
4046
4047
4048Object.defineProperty(exports, "__esModule", {
4049 value: true
4050});
4051exports.properties = exports.end = undefined;
4052
4053var _end = __webpack_require__(106);
4054
4055var _end2 = _interopRequireDefault(_end);
4056
4057var _properties = __webpack_require__(46);
4058
4059var _properties2 = _interopRequireDefault(_properties);
4060
4061function _interopRequireDefault(obj) {
4062 return obj && obj.__esModule ? obj : {
4063 default: obj
4064 };
4065}
4066
4067exports.end = _end2.default;
4068exports.properties = _properties2.default;
4069exports.default = {
4070 end: _end2.default,
4071 properties: _properties2.default
4072};
4073
4074/***/ }),
4075/* 78 */
4076/***/ (function(module, exports, __webpack_require__) {
4077
4078module.exports = __webpack_require__(119);
4079
4080/***/ }),
4081/* 79 */
4082/***/ (function(module, exports, __webpack_require__) {
4083
4084module.exports = __webpack_require__(150);
4085
4086/***/ }),
4087/* 80 */
4088/***/ (function(module, exports, __webpack_require__) {
4089
4090__webpack_require__(81);
4091
4092module.exports = __webpack_require__(8).Object.assign;
4093
4094/***/ }),
4095/* 81 */
4096/***/ (function(module, exports, __webpack_require__) {
4097
4098// 19.1.3.1 Object.assign(target, source)
4099var $export = __webpack_require__(10);
4100
4101$export($export.S + $export.F, 'Object', {
4102 assign: __webpack_require__(85)
4103});
4104
4105/***/ }),
4106/* 82 */
4107/***/ (function(module, exports) {
4108
4109module.exports = function (it) {
4110 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
4111 return it;
4112};
4113
4114/***/ }),
4115/* 83 */
4116/***/ (function(module, exports, __webpack_require__) {
4117
4118module.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/* 84 */
4128/***/ (function(module, exports, __webpack_require__) {
4129
4130// 7.1.1 ToPrimitive(input [, PreferredType])
4131var isObject = __webpack_require__(40); // instead of the ES6 spec version, we didn't implement @@toPrimitive case
4132// and the second argument - flag - preferred type is a string
4133
4134
4135module.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/* 85 */
4146/***/ (function(module, exports, __webpack_require__) {
4147
4148"use strict";
4149 // 19.1.2.1 Object.assign(target, source, ...)
4150
4151var getKeys = __webpack_require__(32);
4152
4153var gOPS = __webpack_require__(89);
4154
4155var pIE = __webpack_require__(64);
4156
4157var toObject = __webpack_require__(34);
4158
4159var IObject = __webpack_require__(58);
4160
4161var $assign = Object.assign; // should work with symbols and should have deterministic property order (V8 bug)
4162
4163module.exports = !$assign || __webpack_require__(25)(function () {
4164 var A = {};
4165 var B = {}; // eslint-disable-next-line no-undef
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 // eslint-disable-line no-unused-vars
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/* 86 */
4197/***/ (function(module, exports, __webpack_require__) {
4198
4199var has = __webpack_require__(31);
4200
4201var toIObject = __webpack_require__(42);
4202
4203var arrayIndexOf = __webpack_require__(87)(false);
4204
4205var IE_PROTO = __webpack_require__(45)('IE_PROTO');
4206
4207module.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); // Don't enum bug & hidden keys
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/* 87 */
4225/***/ (function(module, exports, __webpack_require__) {
4226
4227// false -> Array#indexOf
4228// true -> Array#includes
4229var toIObject = __webpack_require__(42);
4230
4231var toLength = __webpack_require__(59);
4232
4233var toAbsoluteIndex = __webpack_require__(88);
4234
4235module.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; // Array#includes uses SameValueZero equality algorithm
4241 // eslint-disable-next-line no-self-compare
4242
4243 if (IS_INCLUDES && el != el) while (length > index) {
4244 value = O[index++]; // eslint-disable-next-line no-self-compare
4245
4246 if (value != value) return true; // Array#indexOf ignores holes, Array#includes - not
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/* 88 */
4256/***/ (function(module, exports, __webpack_require__) {
4257
4258var toInteger = __webpack_require__(44);
4259
4260var max = Math.max;
4261var min = Math.min;
4262
4263module.exports = function (index, length) {
4264 index = toInteger(index);
4265 return index < 0 ? max(index + length, 0) : min(index, length);
4266};
4267
4268/***/ }),
4269/* 89 */
4270/***/ (function(module, exports) {
4271
4272exports.f = Object.getOwnPropertySymbols;
4273
4274/***/ }),
4275/* 90 */
4276/***/ (function(module, exports, __webpack_require__) {
4277
4278__webpack_require__(91);
4279
4280var $Object = __webpack_require__(8).Object;
4281
4282module.exports = function create(P, D) {
4283 return $Object.create(P, D);
4284};
4285
4286/***/ }),
4287/* 91 */
4288/***/ (function(module, exports, __webpack_require__) {
4289
4290var $export = __webpack_require__(10); // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
4291
4292
4293$export($export.S, 'Object', {
4294 create: __webpack_require__(65)
4295});
4296
4297/***/ }),
4298/* 92 */
4299/***/ (function(module, exports, __webpack_require__) {
4300
4301var dP = __webpack_require__(28);
4302
4303var anObject = __webpack_require__(29);
4304
4305var getKeys = __webpack_require__(32);
4306
4307module.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/* 93 */
4321/***/ (function(module, exports, __webpack_require__) {
4322
4323var document = __webpack_require__(19).document;
4324
4325module.exports = document && document.documentElement;
4326
4327/***/ }),
4328/* 94 */
4329/***/ (function(module, exports, __webpack_require__) {
4330
4331__webpack_require__(95);
4332
4333module.exports = __webpack_require__(8).Object.keys;
4334
4335/***/ }),
4336/* 95 */
4337/***/ (function(module, exports, __webpack_require__) {
4338
4339// 19.1.2.14 Object.keys(O)
4340var toObject = __webpack_require__(34);
4341
4342var $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/* 96 */
4352/***/ (function(module, exports, __webpack_require__) {
4353
4354// most Object methods by ES6 should accept primitives
4355var $export = __webpack_require__(10);
4356
4357var core = __webpack_require__(8);
4358
4359var fails = __webpack_require__(25);
4360
4361module.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/* 97 */
4372/***/ (function(module, exports, __webpack_require__) {
4373
4374"use strict";
4375/**
4376 * Copyright (c) 2013-present, Facebook, Inc.
4377 *
4378 * This source code is licensed under the MIT license found in the
4379 * LICENSE file in the root directory of this source tree.
4380 */
4381
4382
4383var ReactPropTypesSecret = __webpack_require__(98);
4384
4385function emptyFunction() {}
4386
4387module.exports = function () {
4388 function shim(props, propName, componentName, location, propFullName, secret) {
4389 if (secret === ReactPropTypesSecret) {
4390 // It is still safe when called from React.
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 ; // Important!
4407 // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
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/* 98 */
4435/***/ (function(module, exports, __webpack_require__) {
4436
4437"use strict";
4438/**
4439 * Copyright (c) 2013-present, Facebook, Inc.
4440 *
4441 * This source code is licensed under the MIT license found in the
4442 * LICENSE file in the root directory of this source tree.
4443 */
4444
4445
4446var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
4447module.exports = ReactPropTypesSecret;
4448
4449/***/ }),
4450/* 99 */
4451/***/ (function(module, exports, __webpack_require__) {
4452
4453"use strict";
4454
4455
4456exports.__esModule = true;
4457exports.uncontrolledPropTypes = uncontrolledPropTypes;
4458exports.isProp = isProp;
4459exports.defaultKey = defaultKey;
4460exports.isReactComponent = isReactComponent;
4461
4462var _invariant = _interopRequireDefault(__webpack_require__(21));
4463
4464function _interopRequireDefault(obj) {
4465 return obj && obj.__esModule ? obj : {
4466 default: obj
4467 };
4468}
4469
4470var noop = function noop() {};
4471
4472function 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
4482function uncontrolledPropTypes(controlledValues, displayName) {
4483 var propTypes = {};
4484 Object.keys(controlledValues).forEach(function (prop) {
4485 // add default propTypes for folks that use runtime checks
4486 propTypes[defaultKey(prop)] = noop;
4487
4488 if (false) { var handler; }
4489 });
4490 return propTypes;
4491}
4492
4493function isProp(props, prop) {
4494 return props[prop] !== undefined;
4495}
4496
4497function defaultKey(key) {
4498 return 'default' + key.charAt(0).toUpperCase() + key.substr(1);
4499}
4500/**
4501 * Copyright (c) 2013-present, Facebook, Inc.
4502 * All rights reserved.
4503 *
4504 * This source code is licensed under the BSD-style license found in the
4505 * LICENSE file in the root directory of this source tree. An additional grant
4506 * of patent rights can be found in the PATENTS file in the same directory.
4507 */
4508
4509
4510function isReactComponent(component) {
4511 return !!(component && component.prototype && component.prototype.isReactComponent);
4512}
4513
4514/***/ }),
4515/* 100 */
4516/***/ (function(module, exports, __webpack_require__) {
4517
4518__webpack_require__(101);
4519
4520module.exports = __webpack_require__(8).Object.entries;
4521
4522/***/ }),
4523/* 101 */
4524/***/ (function(module, exports, __webpack_require__) {
4525
4526// https://github.com/tc39/proposal-object-values-entries
4527var $export = __webpack_require__(10);
4528
4529var $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/* 102 */
4539/***/ (function(module, exports, __webpack_require__) {
4540
4541__webpack_require__(103);
4542
4543module.exports = __webpack_require__(8).Object.values;
4544
4545/***/ }),
4546/* 103 */
4547/***/ (function(module, exports, __webpack_require__) {
4548
4549// https://github.com/tc39/proposal-object-values-entries
4550var $export = __webpack_require__(10);
4551
4552var $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/* 104 */
4562/***/ (function(module, exports, __webpack_require__) {
4563
4564"use strict";
4565
4566
4567if (true) {
4568 module.exports = __webpack_require__(105);
4569} else {}
4570
4571/***/ }),
4572/* 105 */
4573/***/ (function(module, exports, __webpack_require__) {
4574
4575"use strict";
4576/** @license React v16.4.2
4577 * react-is.production.min.js
4578 *
4579 * Copyright (c) 2013-present, Facebook, Inc.
4580 *
4581 * This source code is licensed under the MIT license found in the
4582 * LICENSE file in the root directory of this source tree.
4583 */
4584
4585
4586Object.defineProperty(exports, "__esModule", {
4587 value: !0
4588});
4589var 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
4601function 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
4633exports.typeOf = q;
4634exports.AsyncMode = l;
4635exports.ContextConsumer = k;
4636exports.ContextProvider = h;
4637exports.Element = c;
4638exports.ForwardRef = m;
4639exports.Fragment = e;
4640exports.Profiler = g;
4641exports.Portal = d;
4642exports.StrictMode = f;
4643
4644exports.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
4648exports.isAsyncMode = function (a) {
4649 return q(a) === l;
4650};
4651
4652exports.isContextConsumer = function (a) {
4653 return q(a) === k;
4654};
4655
4656exports.isContextProvider = function (a) {
4657 return q(a) === h;
4658};
4659
4660exports.isElement = function (a) {
4661 return "object" === typeof a && null !== a && a.$$typeof === c;
4662};
4663
4664exports.isForwardRef = function (a) {
4665 return q(a) === m;
4666};
4667
4668exports.isFragment = function (a) {
4669 return q(a) === e;
4670};
4671
4672exports.isProfiler = function (a) {
4673 return q(a) === g;
4674};
4675
4676exports.isPortal = function (a) {
4677 return q(a) === d;
4678};
4679
4680exports.isStrictMode = function (a) {
4681 return q(a) === f;
4682};
4683
4684/***/ }),
4685/* 106 */
4686/***/ (function(module, exports, __webpack_require__) {
4687
4688"use strict";
4689
4690
4691Object.defineProperty(exports, "__esModule", {
4692 value: true
4693});
4694
4695var _properties = __webpack_require__(46);
4696
4697var _properties2 = _interopRequireDefault(_properties);
4698
4699var _style = __webpack_require__(18);
4700
4701var _style2 = _interopRequireDefault(_style);
4702
4703function _interopRequireDefault(obj) {
4704 return obj && obj.__esModule ? obj : {
4705 default: obj
4706 };
4707}
4708
4709function 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
4732onEnd._parseDuration = parseDuration;
4733exports.default = onEnd;
4734
4735function 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
4741module.exports = exports['default'];
4742
4743/***/ }),
4744/* 107 */
4745/***/ (function(module, exports, __webpack_require__) {
4746
4747"use strict";
4748
4749
4750Object.defineProperty(exports, "__esModule", {
4751 value: true
4752});
4753exports.default = camelize;
4754var rHyphen = /-(.)/g;
4755
4756function camelize(string) {
4757 return string.replace(rHyphen, function (_, chr) {
4758 return chr.toUpperCase();
4759 });
4760}
4761
4762module.exports = exports["default"];
4763
4764/***/ }),
4765/* 108 */
4766/***/ (function(module, exports, __webpack_require__) {
4767
4768"use strict";
4769
4770
4771Object.defineProperty(exports, "__esModule", {
4772 value: true
4773});
4774exports.default = hyphenateStyleName;
4775
4776var _hyphenate = __webpack_require__(109);
4777
4778var _hyphenate2 = _interopRequireDefault(_hyphenate);
4779
4780function _interopRequireDefault(obj) {
4781 return obj && obj.__esModule ? obj : {
4782 default: obj
4783 };
4784}
4785
4786var msPattern = /^ms-/;
4787/**
4788 * Copyright 2013-2014, Facebook, Inc.
4789 * All rights reserved.
4790 * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js
4791 */
4792
4793function hyphenateStyleName(string) {
4794 return (0, _hyphenate2.default)(string).replace(msPattern, '-ms-');
4795}
4796
4797module.exports = exports['default'];
4798
4799/***/ }),
4800/* 109 */
4801/***/ (function(module, exports, __webpack_require__) {
4802
4803"use strict";
4804
4805
4806Object.defineProperty(exports, "__esModule", {
4807 value: true
4808});
4809exports.default = hyphenate;
4810var rUpper = /([A-Z])/g;
4811
4812function hyphenate(string) {
4813 return string.replace(rUpper, '-$1').toLowerCase();
4814}
4815
4816module.exports = exports['default'];
4817
4818/***/ }),
4819/* 110 */
4820/***/ (function(module, exports, __webpack_require__) {
4821
4822"use strict";
4823
4824
4825Object.defineProperty(exports, "__esModule", {
4826 value: true
4827});
4828exports.default = _getComputedStyle;
4829
4830var _camelizeStyle = __webpack_require__(67);
4831
4832var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle);
4833
4834function _interopRequireDefault(obj) {
4835 return obj && obj.__esModule ? obj : {
4836 default: obj
4837 };
4838}
4839
4840var rposition = /^(top|right|bottom|left)$/;
4841var rnumnonpx = /^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;
4842
4843function _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 //ie 8 "magic" from: https://github.com/jquery/jquery/blob/1.11-stable/src/css/curCSS.js#L72
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 // Remember the original values
4857 var left = style.left;
4858 var runStyle = node.runtimeStyle;
4859 var rsLeft = runStyle && runStyle.left; // Put in the new values to get a computed value out
4860
4861 if (rsLeft) runStyle.left = node.currentStyle.left;
4862 style.left = prop === 'fontSize' ? '1em' : current;
4863 current = style.pixelLeft + 'px'; // Revert the changed values
4864
4865 style.left = left;
4866 if (rsLeft) runStyle.left = rsLeft;
4867 }
4868
4869 return current;
4870 }
4871 };
4872}
4873
4874module.exports = exports['default'];
4875
4876/***/ }),
4877/* 111 */
4878/***/ (function(module, exports, __webpack_require__) {
4879
4880"use strict";
4881
4882
4883Object.defineProperty(exports, "__esModule", {
4884 value: true
4885});
4886exports.default = removeStyle;
4887
4888function removeStyle(node, key) {
4889 return 'removeProperty' in node.style ? node.style.removeProperty(key) : node.style.removeAttribute(key);
4890}
4891
4892module.exports = exports['default'];
4893
4894/***/ }),
4895/* 112 */
4896/***/ (function(module, exports, __webpack_require__) {
4897
4898"use strict";
4899
4900
4901Object.defineProperty(exports, "__esModule", {
4902 value: true
4903});
4904exports.default = isTransform;
4905var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
4906
4907function isTransform(property) {
4908 return !!(property && supportedTransforms.test(property));
4909}
4910
4911module.exports = exports["default"];
4912
4913/***/ }),
4914/* 113 */
4915/***/ (function(module, exports, __webpack_require__) {
4916
4917__webpack_require__(114);
4918
4919module.exports = __webpack_require__(8).parseInt;
4920
4921/***/ }),
4922/* 114 */
4923/***/ (function(module, exports, __webpack_require__) {
4924
4925var $export = __webpack_require__(10);
4926
4927var $parseInt = __webpack_require__(115); // 18.2.5 parseInt(string, radix)
4928
4929
4930$export($export.G + $export.F * (parseInt != $parseInt), {
4931 parseInt: $parseInt
4932});
4933
4934/***/ }),
4935/* 115 */
4936/***/ (function(module, exports, __webpack_require__) {
4937
4938var $parseInt = __webpack_require__(19).parseInt;
4939
4940var $trim = __webpack_require__(116).trim;
4941
4942var ws = __webpack_require__(68);
4943
4944var hex = /^[-+]?0[xX]/;
4945module.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/* 116 */
4952/***/ (function(module, exports, __webpack_require__) {
4953
4954var $export = __webpack_require__(10);
4955
4956var defined = __webpack_require__(33);
4957
4958var fails = __webpack_require__(25);
4959
4960var spaces = __webpack_require__(68);
4961
4962var space = '[' + spaces + ']';
4963var non = '\u200b\u0085';
4964var ltrim = RegExp('^' + space + space + '*');
4965var rtrim = RegExp(space + space + '*$');
4966
4967var 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}; // 1 -> String#trimLeft
4976// 2 -> String#trimRight
4977// 3 -> String#trim
4978
4979
4980var 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
4987module.exports = exporter;
4988
4989/***/ }),
4990/* 117 */
4991/***/ (function(module, __webpack_exports__, __webpack_require__) {
4992
4993"use strict";
4994__webpack_require__.r(__webpack_exports__);
4995/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; });
4996/**
4997 * Copyright (c) 2013-present, Facebook, Inc.
4998 *
4999 * This source code is licensed under the MIT license found in the
5000 * LICENSE file in the root directory of this source tree.
5001 */
5002function componentWillMount() {
5003 // Call this.constructor.gDSFP to support sub-classes.
5004 var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
5005
5006 if (state !== null && state !== undefined) {
5007 this.setState(state);
5008 }
5009}
5010
5011function componentWillReceiveProps(nextProps) {
5012 // Call this.constructor.gDSFP to support sub-classes.
5013 // Use the setState() updater to ensure state isn't stale in certain edge cases.
5014 function updater(prevState) {
5015 var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
5016 return state !== null && state !== undefined ? state : null;
5017 } // Binding "this" is important for shallow renderer support.
5018
5019
5020 this.setState(updater.bind(this));
5021}
5022
5023function 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} // React may warn about cWM/cWRP/cWU methods being deprecated.
5036// Add a flag to suppress these warnings for this special case.
5037
5038
5039componentWillMount.__suppressDeprecationWarning = true;
5040componentWillReceiveProps.__suppressDeprecationWarning = true;
5041componentWillUpdate.__suppressDeprecationWarning = true;
5042
5043function 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 } // If new component APIs are defined, "unsafe" lifecycles won't be called.
5053 // Error if any of these lifecycles are present,
5054 // Because they would work differently between older and newer (16.3+) versions of React.
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 } // React <= 16.2 does not support static getDerivedStateFromProps.
5084 // As a workaround, use cWM and cWRP to invoke the new static lifecycle.
5085 // Newer versions of React will ignore these lifecycles if gDSFP exists.
5086
5087
5088 if (typeof Component.getDerivedStateFromProps === 'function') {
5089 prototype.componentWillMount = componentWillMount;
5090 prototype.componentWillReceiveProps = componentWillReceiveProps;
5091 } // React <= 16.2 does not support getSnapshotBeforeUpdate.
5092 // As a workaround, use cWU to invoke the new lifecycle.
5093 // Newer versions of React will ignore that lifecycle if gSBU exists.
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 // 16.3+ will not execute our will-update method;
5106 // It will pass a snapshot value to did-update though.
5107 // Older versions will require our polyfilled will-update value.
5108 // We need to handle both cases, but can't just check for the presence of "maybeSnapshot",
5109 // Because for <= 15.x versions this might be a "prevContext" object.
5110 // We also can't just check "__reactInternalSnapshot",
5111 // Because get-snapshot might return a falsy value.
5112 // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.
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/* 118 */
5125/***/ (function(module, exports, __webpack_require__) {
5126
5127"use strict";
5128
5129
5130exports.__esModule = true;
5131exports.classNamesShape = exports.timeoutsShape = undefined;
5132exports.transitionTimeout = transitionTimeout;
5133
5134var _propTypes = __webpack_require__(0);
5135
5136var _propTypes2 = _interopRequireDefault(_propTypes);
5137
5138function _interopRequireDefault(obj) {
5139 return obj && obj.__esModule ? obj : {
5140 default: obj
5141 };
5142}
5143
5144function transitionTimeout(transitionType) {
5145 var timeoutPropName = 'transition' + transitionType + 'Timeout';
5146 var enabledPropName = 'transition' + transitionType;
5147 return function (props) {
5148 // If the transition is enabled
5149 if (props[enabledPropName]) {
5150 // If no timeout duration is provided
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.'); // If the duration isn't a number
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
5162var 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
5167var 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/* 119 */
5182/***/ (function(module, exports, __webpack_require__) {
5183
5184__webpack_require__(120);
5185
5186__webpack_require__(126);
5187
5188module.exports = __webpack_require__(8).Array.from;
5189
5190/***/ }),
5191/* 120 */
5192/***/ (function(module, exports, __webpack_require__) {
5193
5194"use strict";
5195
5196
5197var $at = __webpack_require__(121)(true); // 21.1.3.27 String.prototype[@@iterator]()
5198
5199
5200__webpack_require__(122)(String, 'String', function (iterated) {
5201 this._t = String(iterated); // target
5202
5203 this._i = 0; // next index
5204 // 21.1.5.2.1 %StringIteratorPrototype%.next()
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/* 121 */
5223/***/ (function(module, exports, __webpack_require__) {
5224
5225var toInteger = __webpack_require__(44);
5226
5227var defined = __webpack_require__(33); // true -> String#at
5228// false -> String#codePointAt
5229
5230
5231module.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/* 122 */
5245/***/ (function(module, exports, __webpack_require__) {
5246
5247"use strict";
5248
5249
5250var LIBRARY = __webpack_require__(61);
5251
5252var $export = __webpack_require__(10);
5253
5254var redefine = __webpack_require__(123);
5255
5256var hide = __webpack_require__(27);
5257
5258var Iterators = __webpack_require__(47);
5259
5260var $iterCreate = __webpack_require__(124);
5261
5262var setToStringTag = __webpack_require__(69);
5263
5264var getPrototypeOf = __webpack_require__(125);
5265
5266var ITERATOR = __webpack_require__(16)('iterator');
5267
5268var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
5269
5270var FF_ITERATOR = '@@iterator';
5271var KEYS = 'keys';
5272var VALUES = 'values';
5273
5274var returnThis = function () {
5275 return this;
5276};
5277
5278module.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; // Fix native
5310
5311 if ($anyNative) {
5312 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
5313
5314 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
5315 // Set @@toStringTag to native iterators
5316 setToStringTag(IteratorPrototype, TAG, true); // fix for some old engines
5317
5318 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
5319 }
5320 } // fix Array#{values, @@iterator}.name in V8 / FF
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 } // Define iterator
5330
5331
5332 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
5333 hide(proto, ITERATOR, $default);
5334 } // Plug for library
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/* 123 */
5356/***/ (function(module, exports, __webpack_require__) {
5357
5358module.exports = __webpack_require__(27);
5359
5360/***/ }),
5361/* 124 */
5362/***/ (function(module, exports, __webpack_require__) {
5363
5364"use strict";
5365
5366
5367var create = __webpack_require__(65);
5368
5369var descriptor = __webpack_require__(41);
5370
5371var setToStringTag = __webpack_require__(69);
5372
5373var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
5374
5375__webpack_require__(27)(IteratorPrototype, __webpack_require__(16)('iterator'), function () {
5376 return this;
5377});
5378
5379module.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/* 125 */
5388/***/ (function(module, exports, __webpack_require__) {
5389
5390// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
5391var has = __webpack_require__(31);
5392
5393var toObject = __webpack_require__(34);
5394
5395var IE_PROTO = __webpack_require__(45)('IE_PROTO');
5396
5397var ObjectProto = Object.prototype;
5398
5399module.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/* 126 */
5412/***/ (function(module, exports, __webpack_require__) {
5413
5414"use strict";
5415
5416
5417var ctx = __webpack_require__(56);
5418
5419var $export = __webpack_require__(10);
5420
5421var toObject = __webpack_require__(34);
5422
5423var call = __webpack_require__(127);
5424
5425var isArrayIter = __webpack_require__(128);
5426
5427var toLength = __webpack_require__(59);
5428
5429var createProperty = __webpack_require__(129);
5430
5431var getIterFn = __webpack_require__(130);
5432
5433$export($export.S + $export.F * !__webpack_require__(132)(function (iter) {
5434 Array.from(iter);
5435}), 'Array', {
5436 // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
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); // if object isn't iterable or it's array with default iterator - use simple case
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/* 127 */
5469/***/ (function(module, exports, __webpack_require__) {
5470
5471// call something on iterator step with safe closing on error
5472var anObject = __webpack_require__(29);
5473
5474module.exports = function (iterator, fn, value, entries) {
5475 try {
5476 return entries ? fn(anObject(value)[0], value[1]) : fn(value); // 7.4.6 IteratorClose(iterator, completion)
5477 } catch (e) {
5478 var ret = iterator['return'];
5479 if (ret !== undefined) anObject(ret.call(iterator));
5480 throw e;
5481 }
5482};
5483
5484/***/ }),
5485/* 128 */
5486/***/ (function(module, exports, __webpack_require__) {
5487
5488// check on default Array iterator
5489var Iterators = __webpack_require__(47);
5490
5491var ITERATOR = __webpack_require__(16)('iterator');
5492
5493var ArrayProto = Array.prototype;
5494
5495module.exports = function (it) {
5496 return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
5497};
5498
5499/***/ }),
5500/* 129 */
5501/***/ (function(module, exports, __webpack_require__) {
5502
5503"use strict";
5504
5505
5506var $defineProperty = __webpack_require__(28);
5507
5508var createDesc = __webpack_require__(41);
5509
5510module.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/* 130 */
5516/***/ (function(module, exports, __webpack_require__) {
5517
5518var classof = __webpack_require__(131);
5519
5520var ITERATOR = __webpack_require__(16)('iterator');
5521
5522var Iterators = __webpack_require__(47);
5523
5524module.exports = __webpack_require__(8).getIteratorMethod = function (it) {
5525 if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)];
5526};
5527
5528/***/ }),
5529/* 131 */
5530/***/ (function(module, exports, __webpack_require__) {
5531
5532// getting tag from 19.1.3.6 Object.prototype.toString()
5533var cof = __webpack_require__(43);
5534
5535var TAG = __webpack_require__(16)('toStringTag'); // ES3 wrong here
5536
5537
5538var ARG = cof(function () {
5539 return arguments;
5540}()) == 'Arguments'; // fallback for IE11 Script Access Denied error
5541
5542var tryGet = function (it, key) {
5543 try {
5544 return it[key];
5545 } catch (e) {
5546 /* empty */
5547 }
5548};
5549
5550module.exports = function (it) {
5551 var O, T, B;
5552 return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case
5553 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T // builtinTag case
5554 : ARG ? cof(O) // ES3 arguments fallback
5555 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
5556};
5557
5558/***/ }),
5559/* 132 */
5560/***/ (function(module, exports, __webpack_require__) {
5561
5562var ITERATOR = __webpack_require__(16)('iterator');
5563
5564var SAFE_CLOSING = false;
5565
5566try {
5567 var riter = [7][ITERATOR]();
5568
5569 riter['return'] = function () {
5570 SAFE_CLOSING = true;
5571 }; // eslint-disable-next-line no-throw-literal
5572
5573
5574 Array.from(riter, function () {
5575 throw 2;
5576 });
5577} catch (e) {
5578 /* empty */
5579}
5580
5581module.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 /* empty */
5602 }
5603
5604 return safe;
5605};
5606
5607/***/ }),
5608/* 133 */
5609/***/ (function(module, exports, __webpack_require__) {
5610
5611"use strict";
5612
5613
5614Object.defineProperty(exports, "__esModule", {
5615 value: true
5616});
5617exports.default = filterEvents;
5618
5619var _contains = __webpack_require__(13);
5620
5621var _contains2 = _interopRequireDefault(_contains);
5622
5623var _querySelectorAll = __webpack_require__(134);
5624
5625var _querySelectorAll2 = _interopRequireDefault(_querySelectorAll);
5626
5627function _interopRequireDefault(obj) {
5628 return obj && obj.__esModule ? obj : {
5629 default: obj
5630 };
5631}
5632
5633function 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
5644module.exports = exports['default'];
5645
5646/***/ }),
5647/* 134 */
5648/***/ (function(module, exports, __webpack_require__) {
5649
5650"use strict";
5651
5652
5653Object.defineProperty(exports, "__esModule", {
5654 value: true
5655});
5656exports.default = qsa; // Zepto.js
5657// (c) 2010-2015 Thomas Fuchs
5658// Zepto.js may be freely distributed under the MIT license.
5659
5660var simpleSelectorRE = /^[\w-]*$/;
5661var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
5662
5663function 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
5683module.exports = exports['default'];
5684
5685/***/ }),
5686/* 135 */
5687/***/ (function(module, exports, __webpack_require__) {
5688
5689"use strict";
5690
5691
5692Object.defineProperty(exports, "__esModule", {
5693 value: true
5694});
5695
5696var _inDOM = __webpack_require__(12);
5697
5698var _inDOM2 = _interopRequireDefault(_inDOM);
5699
5700var _on = __webpack_require__(48);
5701
5702var _on2 = _interopRequireDefault(_on);
5703
5704var _off = __webpack_require__(49);
5705
5706var _off2 = _interopRequireDefault(_off);
5707
5708function _interopRequireDefault(obj) {
5709 return obj && obj.__esModule ? obj : {
5710 default: obj
5711 };
5712}
5713
5714var listen = function listen() {};
5715
5716if (_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
5725exports.default = listen;
5726module.exports = exports['default'];
5727
5728/***/ }),
5729/* 136 */
5730/***/ (function(module, exports, __webpack_require__) {
5731
5732"use strict";
5733
5734
5735Object.defineProperty(exports, "__esModule", {
5736 value: true
5737});
5738exports.default = deprecated;
5739
5740var _warning = __webpack_require__(7);
5741
5742var _warning2 = _interopRequireDefault(_warning);
5743
5744function _interopRequireDefault(obj) {
5745 return obj && obj.__esModule ? obj : {
5746 default: obj
5747 };
5748}
5749
5750var warned = {};
5751
5752function 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/* eslint-disable no-underscore-dangle */
5771
5772
5773function _resetWarned() {
5774 warned = {};
5775}
5776
5777deprecated._resetWarned = _resetWarned;
5778/* eslint-enable no-underscore-dangle */
5779
5780module.exports = exports['default'];
5781
5782/***/ }),
5783/* 137 */
5784/***/ (function(module, exports, __webpack_require__) {
5785
5786"use strict";
5787
5788
5789exports.__esModule = true;
5790
5791var _class = __webpack_require__(138);
5792
5793var _class2 = _interopRequireDefault(_class);
5794
5795var _style = __webpack_require__(18);
5796
5797var _style2 = _interopRequireDefault(_style);
5798
5799var _scrollbarSize = __webpack_require__(39);
5800
5801var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);
5802
5803var _isOverflowing = __webpack_require__(52);
5804
5805var _isOverflowing2 = _interopRequireDefault(_isOverflowing);
5806
5807var _manageAriaHidden = __webpack_require__(141);
5808
5809function _interopRequireDefault(obj) {
5810 return obj && obj.__esModule ? obj : {
5811 default: obj
5812 };
5813}
5814
5815function _classCallCheck(instance, Constructor) {
5816 if (!(instance instanceof Constructor)) {
5817 throw new TypeError("Cannot call a class as a function");
5818 }
5819}
5820
5821function 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
5832function findContainer(data, modal) {
5833 return findIndexOf(data, function (d) {
5834 return d.modals.indexOf(modal) !== -1;
5835 });
5836}
5837
5838function setContainerStyle(state, container) {
5839 var style = {
5840 overflow: 'hidden'
5841 }; // we are only interested in the actual `style` here
5842 // becasue we will override it
5843
5844 state.style = {
5845 overflow: container.style.overflow,
5846 paddingRight: container.style.paddingRight
5847 };
5848
5849 if (state.overflowing) {
5850 // use computed style, here to get the real padding
5851 // to add our scrollbar width
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
5858function 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 * Proper state managment for containers and the modals in those containers.
5866 *
5867 * @internal Used by the Modal to ensure proper styling of containers.
5868 */
5869
5870
5871var 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 //right now only the first modal of a container will have its classes applied
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); // if that was the last modal in a container,
5938 // clean up the container
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 //otherwise make sure the next top modal is visible to a SR
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
5972exports.default = ModalManager;
5973module.exports = exports['default'];
5974
5975/***/ }),
5976/* 138 */
5977/***/ (function(module, exports, __webpack_require__) {
5978
5979"use strict";
5980
5981
5982Object.defineProperty(exports, "__esModule", {
5983 value: true
5984});
5985exports.hasClass = exports.removeClass = exports.addClass = undefined;
5986
5987var _addClass = __webpack_require__(139);
5988
5989var _addClass2 = _interopRequireDefault(_addClass);
5990
5991var _removeClass = __webpack_require__(140);
5992
5993var _removeClass2 = _interopRequireDefault(_removeClass);
5994
5995var _hasClass = __webpack_require__(71);
5996
5997var _hasClass2 = _interopRequireDefault(_hasClass);
5998
5999function _interopRequireDefault(obj) {
6000 return obj && obj.__esModule ? obj : {
6001 default: obj
6002 };
6003}
6004
6005exports.addClass = _addClass2.default;
6006exports.removeClass = _removeClass2.default;
6007exports.hasClass = _hasClass2.default;
6008exports.default = {
6009 addClass: _addClass2.default,
6010 removeClass: _removeClass2.default,
6011 hasClass: _hasClass2.default
6012};
6013
6014/***/ }),
6015/* 139 */
6016/***/ (function(module, exports, __webpack_require__) {
6017
6018"use strict";
6019
6020
6021Object.defineProperty(exports, "__esModule", {
6022 value: true
6023});
6024exports.default = addClass;
6025
6026var _hasClass = __webpack_require__(71);
6027
6028var _hasClass2 = _interopRequireDefault(_hasClass);
6029
6030function _interopRequireDefault(obj) {
6031 return obj && obj.__esModule ? obj : {
6032 default: obj
6033 };
6034}
6035
6036function 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
6040module.exports = exports['default'];
6041
6042/***/ }),
6043/* 140 */
6044/***/ (function(module, exports, __webpack_require__) {
6045
6046"use strict";
6047
6048
6049function replaceClassName(origClass, classToRemove) {
6050 return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
6051}
6052
6053module.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/* 141 */
6059/***/ (function(module, exports, __webpack_require__) {
6060
6061"use strict";
6062
6063
6064exports.__esModule = true;
6065exports.ariaHidden = ariaHidden;
6066exports.hideSiblings = hideSiblings;
6067exports.showSiblings = showSiblings;
6068var BLACKLIST = ['template', 'script', 'style'];
6069
6070var isHidable = function isHidable(_ref) {
6071 var nodeType = _ref.nodeType,
6072 tagName = _ref.tagName;
6073 return nodeType === 1 && BLACKLIST.indexOf(tagName.toLowerCase()) === -1;
6074};
6075
6076var 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
6085function 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
6097function hideSiblings(container, mountNode) {
6098 siblings(container, mountNode, function (node) {
6099 return ariaHidden(true, node);
6100 });
6101}
6102
6103function showSiblings(container, mountNode) {
6104 siblings(container, mountNode, function (node) {
6105 return ariaHidden(false, node);
6106 });
6107}
6108
6109/***/ }),
6110/* 142 */
6111/***/ (function(module, exports, __webpack_require__) {
6112
6113"use strict";
6114
6115
6116exports.__esModule = true;
6117
6118var _propTypes = __webpack_require__(0);
6119
6120var _propTypes2 = _interopRequireDefault(_propTypes);
6121
6122var _componentOrElement = __webpack_require__(35);
6123
6124var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
6125
6126var _react = __webpack_require__(1);
6127
6128var _react2 = _interopRequireDefault(_react);
6129
6130var _reactDom = __webpack_require__(4);
6131
6132var _reactDom2 = _interopRequireDefault(_reactDom);
6133
6134var _getContainer = __webpack_require__(37);
6135
6136var _getContainer2 = _interopRequireDefault(_getContainer);
6137
6138var _ownerDocument = __webpack_require__(20);
6139
6140var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
6141
6142function _interopRequireDefault(obj) {
6143 return obj && obj.__esModule ? obj : {
6144 default: obj
6145 };
6146}
6147
6148function _classCallCheck(instance, Constructor) {
6149 if (!(instance instanceof Constructor)) {
6150 throw new TypeError("Cannot call a class as a function");
6151 }
6152}
6153
6154function _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
6162function _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 * The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
6179 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`.
6180 * The children of `<Portal/>` component will be appended to the `container` specified.
6181 */
6182
6183
6184var 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); // Save reference for future access.
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 // Unrender if the component is null for transitions to null
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
6275Portal.displayName = 'Portal';
6276Portal.propTypes = {
6277 /**
6278 * A Node, Component instance, or function that returns either. The `container` will have the Portal children
6279 * appended to it.
6280 */
6281 container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
6282 onRendered: _propTypes2.default.func
6283};
6284exports.default = Portal;
6285module.exports = exports['default'];
6286
6287/***/ }),
6288/* 143 */
6289/***/ (function(module, exports, __webpack_require__) {
6290
6291"use strict";
6292
6293
6294exports.__esModule = true;
6295
6296var _propTypes = __webpack_require__(0);
6297
6298var _propTypes2 = _interopRequireDefault(_propTypes);
6299
6300var _react = __webpack_require__(1);
6301
6302var _react2 = _interopRequireDefault(_react);
6303
6304function _interopRequireDefault(obj) {
6305 return obj && obj.__esModule ? obj : {
6306 default: obj
6307 };
6308}
6309
6310function _classCallCheck(instance, Constructor) {
6311 if (!(instance instanceof Constructor)) {
6312 throw new TypeError("Cannot call a class as a function");
6313 }
6314}
6315
6316function _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
6324function _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
6340var propTypes = {
6341 children: _propTypes2.default.node
6342};
6343/**
6344 * Internal helper component to allow attaching a non-conflicting ref to a
6345 * child element that may not accept refs.
6346 */
6347
6348var 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
6364RefHolder.propTypes = propTypes;
6365exports.default = RefHolder;
6366module.exports = exports['default'];
6367
6368/***/ }),
6369/* 144 */
6370/***/ (function(module, exports, __webpack_require__) {
6371
6372"use strict";
6373
6374
6375exports.__esModule = true;
6376exports.default = addFocusListener;
6377/**
6378 * Firefox doesn't have a focusin event so using capture is easiest way to get bubbling
6379 * IE8 can't do addEventListener, but does have onfocusin, so we use that in ie8
6380 *
6381 * We only allow one Listener at a time to avoid stack overflows
6382 */
6383
6384function 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
6407module.exports = exports['default'];
6408
6409/***/ }),
6410/* 145 */
6411/***/ (function(module, exports, __webpack_require__) {
6412
6413"use strict";
6414
6415
6416exports.__esModule = true;
6417
6418var _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
6432var _classnames = __webpack_require__(2);
6433
6434var _classnames2 = _interopRequireDefault(_classnames);
6435
6436var _propTypes = __webpack_require__(0);
6437
6438var _propTypes2 = _interopRequireDefault(_propTypes);
6439
6440var _componentOrElement = __webpack_require__(35);
6441
6442var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
6443
6444var _react = __webpack_require__(1);
6445
6446var _react2 = _interopRequireDefault(_react);
6447
6448var _reactDom = __webpack_require__(4);
6449
6450var _reactDom2 = _interopRequireDefault(_reactDom);
6451
6452var _calculatePosition = __webpack_require__(146);
6453
6454var _calculatePosition2 = _interopRequireDefault(_calculatePosition);
6455
6456var _getContainer = __webpack_require__(37);
6457
6458var _getContainer2 = _interopRequireDefault(_getContainer);
6459
6460var _ownerDocument = __webpack_require__(20);
6461
6462var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
6463
6464function _interopRequireDefault(obj) {
6465 return obj && obj.__esModule ? obj : {
6466 default: obj
6467 };
6468}
6469
6470function _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
6482function _classCallCheck(instance, Constructor) {
6483 if (!(instance instanceof Constructor)) {
6484 throw new TypeError("Cannot call a class as a function");
6485 }
6486}
6487
6488function _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
6496function _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 * The Position component calculates the coordinates for its child, to position
6513 * it relative to a `target` component or node. Useful for creating callouts
6514 * and tooltips, the Position component injects a `style` props with `left` and
6515 * `top` values for positioning your component.
6516 *
6517 * It also injects "arrow" `left`, and `top` values for styling callout arrows
6518 * for giving your components a sense of directionality.
6519 */
6520
6521
6522var 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']); // These should not be forwarded to the child.
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 // FIXME: Don't forward `positionLeft` and `positionTop` via both props
6593 // and `props.style`.
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
6626Position.propTypes = {
6627 /**
6628 * A node, element, or function that returns either. The child will be
6629 * be positioned next to the `target` specified.
6630 */
6631 target: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
6632
6633 /**
6634 * "offsetParent" of the component
6635 */
6636 container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
6637
6638 /**
6639 * Minimum spacing in pixels between container border and component border
6640 */
6641 containerPadding: _propTypes2.default.number,
6642
6643 /**
6644 * How to position the component relative to the target
6645 */
6646 placement: _propTypes2.default.oneOf(['top', 'right', 'bottom', 'left']),
6647
6648 /**
6649 * Whether the position should be changed on each update
6650 */
6651 shouldUpdatePosition: _propTypes2.default.bool
6652};
6653Position.displayName = 'Position';
6654Position.defaultProps = {
6655 containerPadding: 0,
6656 placement: 'right',
6657 shouldUpdatePosition: false
6658};
6659exports.default = Position;
6660module.exports = exports['default'];
6661
6662/***/ }),
6663/* 146 */
6664/***/ (function(module, exports, __webpack_require__) {
6665
6666"use strict";
6667
6668
6669exports.__esModule = true;
6670exports.default = calculatePosition;
6671
6672var _offset = __webpack_require__(73);
6673
6674var _offset2 = _interopRequireDefault(_offset);
6675
6676var _position = __webpack_require__(147);
6677
6678var _position2 = _interopRequireDefault(_position);
6679
6680var _scrollTop = __webpack_require__(74);
6681
6682var _scrollTop2 = _interopRequireDefault(_scrollTop);
6683
6684var _ownerDocument = __webpack_require__(20);
6685
6686var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
6687
6688function _interopRequireDefault(obj) {
6689 return obj && obj.__esModule ? obj : {
6690 default: obj
6691 };
6692}
6693
6694function 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
6718function 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
6734function 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
6749function 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
6799module.exports = exports['default'];
6800
6801/***/ }),
6802/* 147 */
6803/***/ (function(module, exports, __webpack_require__) {
6804
6805"use strict";
6806
6807
6808Object.defineProperty(exports, "__esModule", {
6809 value: true
6810});
6811
6812var _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
6826exports.default = position;
6827
6828var _offset = __webpack_require__(73);
6829
6830var _offset2 = _interopRequireDefault(_offset);
6831
6832var _offsetParent = __webpack_require__(148);
6833
6834var _offsetParent2 = _interopRequireDefault(_offsetParent);
6835
6836var _scrollTop = __webpack_require__(74);
6837
6838var _scrollTop2 = _interopRequireDefault(_scrollTop);
6839
6840var _scrollLeft = __webpack_require__(149);
6841
6842var _scrollLeft2 = _interopRequireDefault(_scrollLeft);
6843
6844var _style = __webpack_require__(18);
6845
6846var _style2 = _interopRequireDefault(_style);
6847
6848function _interopRequireDefault(obj) {
6849 return obj && obj.__esModule ? obj : {
6850 default: obj
6851 };
6852}
6853
6854function nodeName(node) {
6855 return node.nodeName && node.nodeName.toLowerCase();
6856}
6857
6858function position(node, offsetParent) {
6859 var parentOffset = {
6860 top: 0,
6861 left: 0
6862 },
6863 offset; // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
6864 // because it is its only offset parent
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 } // Subtract parent offsets and node margins
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
6883module.exports = exports['default'];
6884
6885/***/ }),
6886/* 148 */
6887/***/ (function(module, exports, __webpack_require__) {
6888
6889"use strict";
6890
6891
6892Object.defineProperty(exports, "__esModule", {
6893 value: true
6894});
6895exports.default = offsetParent;
6896
6897var _ownerDocument = __webpack_require__(17);
6898
6899var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
6900
6901var _style = __webpack_require__(18);
6902
6903var _style2 = _interopRequireDefault(_style);
6904
6905function _interopRequireDefault(obj) {
6906 return obj && obj.__esModule ? obj : {
6907 default: obj
6908 };
6909}
6910
6911function nodeName(node) {
6912 return node.nodeName && node.nodeName.toLowerCase();
6913}
6914
6915function 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
6926module.exports = exports['default'];
6927
6928/***/ }),
6929/* 149 */
6930/***/ (function(module, exports, __webpack_require__) {
6931
6932"use strict";
6933
6934
6935Object.defineProperty(exports, "__esModule", {
6936 value: true
6937});
6938exports.default = scrollTop;
6939
6940var _isWindow = __webpack_require__(36);
6941
6942var _isWindow2 = _interopRequireDefault(_isWindow);
6943
6944function _interopRequireDefault(obj) {
6945 return obj && obj.__esModule ? obj : {
6946 default: obj
6947 };
6948}
6949
6950function 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
6956module.exports = exports['default'];
6957
6958/***/ }),
6959/* 150 */
6960/***/ (function(module, exports, __webpack_require__) {
6961
6962__webpack_require__(151);
6963
6964module.exports = __webpack_require__(8).Array.isArray;
6965
6966/***/ }),
6967/* 151 */
6968/***/ (function(module, exports, __webpack_require__) {
6969
6970// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
6971var $export = __webpack_require__(10);
6972
6973$export($export.S, 'Array', {
6974 isArray: __webpack_require__(152)
6975});
6976
6977/***/ }),
6978/* 152 */
6979/***/ (function(module, exports, __webpack_require__) {
6980
6981// 7.2.2 IsArray(argument)
6982var cof = __webpack_require__(43);
6983
6984module.exports = Array.isArray || function isArray(arg) {
6985 return cof(arg) == 'Array';
6986};
6987
6988/***/ }),
6989/* 153 */
6990/***/ (function(module, exports, __webpack_require__) {
6991
6992"use strict";
6993
6994
6995exports.__esModule = true;
6996exports.default = createChainableTypeChecker;
6997/**
6998 * Copyright 2013-present, Facebook, Inc.
6999 * All rights reserved.
7000 *
7001 * This source code is licensed under the BSD-style license found in the
7002 * LICENSE file in the root directory of this source tree. An additional grant
7003 * of patent rights can be found in the PATENTS file in the same directory.
7004 */
7005// Mostly taken from ReactPropTypes.
7006
7007function 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/* 154 */
7034/***/ (function(module, __webpack_exports__, __webpack_require__) {
7035
7036"use strict";
7037__webpack_require__.r(__webpack_exports__);
7038var 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; });
7049var 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// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/assign.js
7056var object_assign = __webpack_require__(38);
7057var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign);
7058
7059// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js
7060
7061function _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// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/create.js
7079var create = __webpack_require__(75);
7080var create_default = /*#__PURE__*/__webpack_require__.n(create);
7081
7082// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js
7083
7084function _inheritsLoose(subClass, superClass) {
7085 subClass.prototype = create_default()(superClass.prototype);
7086 subClass.prototype.constructor = subClass;
7087 subClass.__proto__ = superClass;
7088}
7089// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"}
7090var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(1);
7091var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
7092
7093// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js
7094var keys = __webpack_require__(76);
7095var keys_default = /*#__PURE__*/__webpack_require__.n(keys);
7096
7097// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js
7098
7099function _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// EXTERNAL MODULE: ./node_modules/classnames/index.js
7116var classnames = __webpack_require__(2);
7117var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
7118
7119// EXTERNAL MODULE: ./node_modules/prop-types/index.js
7120var prop_types = __webpack_require__(0);
7121var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
7122
7123// EXTERNAL MODULE: ./node_modules/uncontrollable/index.js
7124var uncontrollable = __webpack_require__(5);
7125var uncontrollable_default = /*#__PURE__*/__webpack_require__.n(uncontrollable);
7126
7127// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/entries.js
7128var entries = __webpack_require__(26);
7129var entries_default = /*#__PURE__*/__webpack_require__.n(entries);
7130
7131// EXTERNAL MODULE: ./node_modules/invariant/browser.js
7132var browser = __webpack_require__(21);
7133var browser_default = /*#__PURE__*/__webpack_require__.n(browser);
7134
7135// CONCATENATED MODULE: ./src/utils/StyleConfig.js
7136var Size = {
7137 LARGE: 'large',
7138 SMALL: 'small',
7139 XSMALL: 'xsmall'
7140};
7141var 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};
7151var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs'];
7152var State = {
7153 SUCCESS: 'success',
7154 WARNING: 'warning',
7155 DANGER: 'danger',
7156 INFO: 'info'
7157};
7158var Style = {
7159 DEFAULT: 'default',
7160 PRIMARY: 'primary',
7161 LINK: 'link',
7162 INVERSE: 'inverse'
7163};
7164// CONCATENATED MODULE: ./src/utils/bootstrapUtils.js
7165
7166
7167// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils.
7168
7169
7170
7171
7172function 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
7190function 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}
7195var 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});
7202var 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); // expose the values on the propType function for documentation
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});
7230var 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; // expose the values on the propType function for documentation
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});
7271function 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
7288function getBsProps(props) {
7289 return {
7290 bsClass: props.bsClass,
7291 bsSize: props.bsSize,
7292 bsStyle: props.bsStyle,
7293 bsRole: props.bsRole
7294 };
7295}
7296
7297function isBsProp(propName) {
7298 return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole';
7299}
7300
7301function 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}
7315function 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 * Add a style variant to a Component. Mutates the propTypes of the component
7335 * in order to validate the new variant.
7336 */
7337
7338function 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}
7345var _curry = curry;
7346// CONCATENATED MODULE: ./src/utils/ValidComponentChildren.js
7347// TODO: This module should be ElementChildren, and should use named exports.
7348
7349/**
7350 * Iterates through children that are typically specified as `props.children`,
7351 * but only maps over children that are "valid components".
7352 *
7353 * The mapFunction provided index will be normalised to the components mapped,
7354 * so an invalid component would not increase the index.
7355 *
7356 * @param {?*} children Children tree container.
7357 * @param {function(*, int)} func.
7358 * @param {*} context Context for func.
7359 * @return {object} Object containing the ordered map of results.
7360 */
7361
7362function 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 * Iterates through children that are "valid components".
7374 *
7375 * The provided forEachFunc(child, index) will be called for each
7376 * leaf child with the index reflecting the position relative to "valid components".
7377 *
7378 * @param {?*} children Children tree container.
7379 * @param {function(*, int)} func.
7380 * @param {*} context Context for context.
7381 */
7382
7383
7384function 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 * Count the number of "valid components" in the Children container.
7396 *
7397 * @param {?*} children Children tree container.
7398 * @returns {number}
7399 */
7400
7401
7402function 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 * Finds children that are typically specified as `props.children`,
7415 * but only iterates over children that are "valid components".
7416 *
7417 * The provided forEachFunc(child, index) will be called for each
7418 * leaf child with the index reflecting the position relative to "valid components".
7419 *
7420 * @param {?*} children Children tree container.
7421 * @param {function(*, int)} func.
7422 * @param {*} context Context for func.
7423 * @returns {array} of children that meet the func return statement
7424 */
7425
7426
7427function 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
7442function 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
7461function 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
7480function 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
7499function 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/* harmony default export */ 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// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js
7522var createChainableTypeChecker = __webpack_require__(22);
7523var createChainableTypeChecker_default = /*#__PURE__*/__webpack_require__.n(createChainableTypeChecker);
7524
7525// CONCATENATED MODULE: ./src/utils/PropTypes.js
7526
7527
7528
7529var idPropType = prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number]);
7530function 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}
7549function 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}
7574function 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// CONCATENATED MODULE: ./src/PanelGroup.js
7602
7603
7604
7605var _jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelGroup.js";
7606
7607
7608
7609
7610
7611
7612
7613var PanelGroup_propTypes = {
7614 accordion: prop_types_default.a.bool,
7615
7616 /**
7617 * When `accordion` is enabled, `activeKey` controls the which child `Panel` is expanded. `activeKey` should
7618 * match a child Panel `eventKey` prop exactly.
7619 *
7620 * @controllable onSelect
7621 */
7622 activeKey: prop_types_default.a.any,
7623
7624 /**
7625 * A callback fired when a child Panel collapse state changes. It's called with the next expanded `activeKey`
7626 *
7627 * @controllable activeKey
7628 */
7629 onSelect: prop_types_default.a.func,
7630
7631 /**
7632 * An HTML role attribute
7633 */
7634 role: prop_types_default.a.string,
7635
7636 /**
7637 * A function that takes an eventKey and type and returns a
7638 * unique id for each Panel heading and Panel Collapse. The function _must_ be a pure function,
7639 * meaning it should always return the _same_ id for the same set of inputs. The default
7640 * value requires that an `id` to be set for the PanelGroup.
7641 *
7642 * The `type` argument will either be `"body"` or `"heading"`.
7643 *
7644 * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}`
7645 */
7646 generateChildId: prop_types_default.a.func,
7647
7648 /**
7649 * HTML id attribute, required if no `generateChildId` prop
7650 * is specified.
7651 */
7652 id: generatedId('PanelGroup')
7653};
7654var PanelGroup_defaultProps = {
7655 accordion: false
7656};
7657var 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
7667var PanelGroup_PanelGroup =
7668/*#__PURE__*/
7669function (_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
7753PanelGroup_PanelGroup.propTypes = PanelGroup_propTypes;
7754PanelGroup_PanelGroup.defaultProps = PanelGroup_defaultProps;
7755PanelGroup_PanelGroup.childContextTypes = childContextTypes;
7756/* harmony default export */ var src_PanelGroup = (uncontrollable_default()(bootstrapUtils_bsClass('panel-group', PanelGroup_PanelGroup), {
7757 activeKey: 'onSelect'
7758}));
7759// CONCATENATED MODULE: ./src/Accordion.js
7760
7761
7762var Accordion_jsxFileName = "/Users/jason/src/react-bootstrap/src/Accordion.js";
7763
7764
7765
7766var Accordion_Accordion =
7767/*#__PURE__*/
7768function (_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/* harmony default export */ var src_Accordion = (Accordion_Accordion);
7792// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/values.js
7793var object_values = __webpack_require__(9);
7794var values_default = /*#__PURE__*/__webpack_require__.n(object_values);
7795
7796// CONCATENATED MODULE: ./src/CloseButton.js
7797
7798var CloseButton_jsxFileName = "/Users/jason/src/react-bootstrap/src/CloseButton.js";
7799
7800
7801var CloseButton_propTypes = {
7802 label: prop_types_default.a.string.isRequired,
7803 onClick: prop_types_default.a.func
7804};
7805var CloseButton_defaultProps = {
7806 label: 'Close'
7807};
7808
7809var CloseButton_CloseButton =
7810/*#__PURE__*/
7811function (_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
7853CloseButton_CloseButton.propTypes = CloseButton_propTypes;
7854CloseButton_CloseButton.defaultProps = CloseButton_defaultProps;
7855/* harmony default export */ var src_CloseButton = (CloseButton_CloseButton);
7856// CONCATENATED MODULE: ./src/Alert.js
7857
7858
7859
7860
7861var Alert_jsxFileName = "/Users/jason/src/react-bootstrap/src/Alert.js";
7862
7863
7864
7865
7866
7867
7868var Alert_propTypes = {
7869 onDismiss: prop_types_default.a.func,
7870 closeLabel: prop_types_default.a.string
7871};
7872var Alert_defaultProps = {
7873 closeLabel: 'Close alert'
7874};
7875
7876var Alert_Alert =
7877/*#__PURE__*/
7878function (_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
7927Alert_Alert.propTypes = Alert_propTypes;
7928Alert_Alert.defaultProps = Alert_defaultProps;
7929/* harmony default export */ var src_Alert = (bsStyles(values_default()(State), State.INFO, bootstrapUtils_bsClass('alert', Alert_Alert)));
7930// CONCATENATED MODULE: ./src/Badge.js
7931
7932
7933
7934var Badge_jsxFileName = "/Users/jason/src/react-bootstrap/src/Badge.js";
7935
7936
7937
7938 // TODO: `pullRight` doesn't belong here. There's no special handling here.
7939
7940var Badge_propTypes = {
7941 pullRight: prop_types_default.a.bool
7942};
7943var Badge_defaultProps = {
7944 pullRight: false
7945};
7946
7947var Badge_Badge =
7948/*#__PURE__*/
7949function (_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 // Hack for collapsing on IE8.
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
8002Badge_Badge.propTypes = Badge_propTypes;
8003Badge_Badge.defaultProps = Badge_defaultProps;
8004/* harmony default export */ var src_Badge = (bootstrapUtils_bsClass('badge', Badge_Badge));
8005// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js
8006function _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// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/elementType.js
8014var elementType = __webpack_require__(3);
8015var elementType_default = /*#__PURE__*/__webpack_require__.n(elementType);
8016
8017// CONCATENATED MODULE: ./src/utils/createChainedFunction.js
8018/**
8019 * Safe chained function
8020 *
8021 * Will only create a new function if needed,
8022 * otherwise will pass back existing functions or null.
8023 *
8024 * @param {function} functions to chain
8025 * @returns {function|null}
8026 */
8027function 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/* harmony default export */ var utils_createChainedFunction = (createChainedFunction);
8055// CONCATENATED MODULE: ./src/SafeAnchor.js
8056
8057
8058
8059
8060var SafeAnchor_jsxFileName = "/Users/jason/src/react-bootstrap/src/SafeAnchor.js";
8061
8062
8063
8064
8065var 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 * this is sort of silly but needed for Button
8075 */
8076 componentClass: elementType_default.a
8077};
8078var SafeAnchor_defaultProps = {
8079 componentClass: 'a'
8080};
8081
8082function isTrivialHref(href) {
8083 return !href || href.trim() === '#';
8084}
8085/**
8086 * There are situations due to browser quirks or Bootstrap CSS where
8087 * an anchor tag is needed, when semantically a button tag is the
8088 * better choice. SafeAnchor ensures that when an anchor is used like a
8089 * button its accessible. It also emulates input `disabled` behavior for
8090 * links, which is usually desirable for Buttons, NavItems, MenuItems, etc.
8091 */
8092
8093
8094var SafeAnchor_SafeAnchor =
8095/*#__PURE__*/
8096function (_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'; // we want to make sure there is a href attribute on the node
8146 // otherwise, the cursor incorrectly styled (except with role='button')
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
8172SafeAnchor_SafeAnchor.propTypes = SafeAnchor_propTypes;
8173SafeAnchor_SafeAnchor.defaultProps = SafeAnchor_defaultProps;
8174/* harmony default export */ var src_SafeAnchor = (SafeAnchor_SafeAnchor);
8175// CONCATENATED MODULE: ./src/BreadcrumbItem.js
8176
8177
8178
8179var BreadcrumbItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/BreadcrumbItem.js";
8180
8181
8182
8183
8184var BreadcrumbItem_propTypes = {
8185 /**
8186 * If set to true, renders `span` instead of `a`
8187 */
8188 active: prop_types_default.a.bool,
8189
8190 /**
8191 * `href` attribute for the inner `a` element
8192 */
8193 href: prop_types_default.a.string,
8194
8195 /**
8196 * `title` attribute for the inner `a` element
8197 */
8198 title: prop_types_default.a.node,
8199
8200 /**
8201 * `target` attribute for the inner `a` element
8202 */
8203 target: prop_types_default.a.string
8204};
8205var BreadcrumbItem_defaultProps = {
8206 active: false
8207};
8208
8209var BreadcrumbItem_BreadcrumbItem =
8210/*#__PURE__*/
8211function (_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"]); // Don't try to render these props on non-active <span>.
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
8262BreadcrumbItem_BreadcrumbItem.propTypes = BreadcrumbItem_propTypes;
8263BreadcrumbItem_BreadcrumbItem.defaultProps = BreadcrumbItem_defaultProps;
8264/* harmony default export */ var src_BreadcrumbItem = (BreadcrumbItem_BreadcrumbItem);
8265// CONCATENATED MODULE: ./src/Breadcrumb.js
8266
8267
8268
8269var Breadcrumb_jsxFileName = "/Users/jason/src/react-bootstrap/src/Breadcrumb.js";
8270
8271
8272
8273
8274
8275var Breadcrumb_Breadcrumb =
8276/*#__PURE__*/
8277function (_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
8311Breadcrumb_Breadcrumb.Item = src_BreadcrumbItem;
8312/* harmony default export */ var src_Breadcrumb = (bootstrapUtils_bsClass('breadcrumb', Breadcrumb_Breadcrumb));
8313// CONCATENATED MODULE: ./src/Button.js
8314
8315
8316
8317
8318var Button_jsxFileName = "/Users/jason/src/react-bootstrap/src/Button.js";
8319
8320
8321
8322
8323
8324
8325
8326var 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 * Defines HTML button type attribute
8336 * @defaultValue 'button'
8337 */
8338 type: prop_types_default.a.oneOf(['button', 'reset', 'submit'])
8339};
8340var Button_defaultProps = {
8341 active: false,
8342 block: false,
8343 disabled: false
8344};
8345
8346var Button_Button =
8347/*#__PURE__*/
8348function (_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
8413Button_Button.propTypes = Button_propTypes;
8414Button_Button.defaultProps = Button_defaultProps;
8415/* harmony default export */ 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// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/all.js
8417var lib_all = __webpack_require__(14);
8418var all_default = /*#__PURE__*/__webpack_require__.n(lib_all);
8419
8420// CONCATENATED MODULE: ./src/ButtonGroup.js
8421
8422
8423
8424var ButtonGroup_jsxFileName = "/Users/jason/src/react-bootstrap/src/ButtonGroup.js";
8425
8426
8427
8428
8429
8430
8431var ButtonGroup_propTypes = {
8432 vertical: prop_types_default.a.bool,
8433 justified: prop_types_default.a.bool,
8434
8435 /**
8436 * Display block buttons; only useful when used with the "vertical" prop.
8437 * @type {bool}
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};
8445var ButtonGroup_defaultProps = {
8446 block: false,
8447 justified: false,
8448 vertical: false
8449};
8450
8451var ButtonGroup_ButtonGroup =
8452/*#__PURE__*/
8453function (_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
8491ButtonGroup_ButtonGroup.propTypes = ButtonGroup_propTypes;
8492ButtonGroup_ButtonGroup.defaultProps = ButtonGroup_defaultProps;
8493/* harmony default export */ var src_ButtonGroup = (bootstrapUtils_bsClass('btn-group', ButtonGroup_ButtonGroup));
8494// CONCATENATED MODULE: ./src/ButtonToolbar.js
8495
8496
8497
8498var ButtonToolbar_jsxFileName = "/Users/jason/src/react-bootstrap/src/ButtonToolbar.js";
8499
8500
8501
8502
8503var ButtonToolbar_ButtonToolbar =
8504/*#__PURE__*/
8505function (_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/* harmony default export */ var src_ButtonToolbar = (bootstrapUtils_bsClass('btn-toolbar', ButtonToolbar_ButtonToolbar));
8539// CONCATENATED MODULE: ./src/CarouselCaption.js
8540
8541
8542
8543var CarouselCaption_jsxFileName = "/Users/jason/src/react-bootstrap/src/CarouselCaption.js";
8544
8545
8546
8547
8548var CarouselCaption_propTypes = {
8549 componentClass: elementType_default.a
8550};
8551var CarouselCaption_defaultProps = {
8552 componentClass: 'div'
8553};
8554
8555var CarouselCaption_CarouselCaption =
8556/*#__PURE__*/
8557function (_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
8590CarouselCaption_CarouselCaption.propTypes = CarouselCaption_propTypes;
8591CarouselCaption_CarouselCaption.defaultProps = CarouselCaption_defaultProps;
8592/* harmony default export */ var src_CarouselCaption = (bootstrapUtils_bsClass('carousel-caption', CarouselCaption_CarouselCaption));
8593// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
8594var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(4);
8595var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
8596
8597// EXTERNAL MODULE: ./node_modules/dom-helpers/transition/index.js
8598var dom_helpers_transition = __webpack_require__(77);
8599var transition_default = /*#__PURE__*/__webpack_require__.n(dom_helpers_transition);
8600
8601// CONCATENATED MODULE: ./src/CarouselItem.js
8602
8603
8604
8605
8606var CarouselItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/CarouselItem.js";
8607
8608
8609
8610
8611
8612var 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};
8620var CarouselItem_defaultProps = {
8621 active: false,
8622 animateIn: false,
8623 animateOut: false
8624};
8625
8626var CarouselItem_CarouselItem =
8627/*#__PURE__*/
8628function (_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
8731CarouselItem_CarouselItem.propTypes = CarouselItem_propTypes;
8732CarouselItem_CarouselItem.defaultProps = CarouselItem_defaultProps;
8733/* harmony default export */ var src_CarouselItem = (CarouselItem_CarouselItem);
8734// CONCATENATED MODULE: ./src/Glyphicon.js
8735
8736
8737
8738var Glyphicon_jsxFileName = "/Users/jason/src/react-bootstrap/src/Glyphicon.js";
8739
8740
8741
8742
8743var Glyphicon_propTypes = {
8744 /**
8745 * An icon name without "glyphicon-" prefix. See e.g. http://getbootstrap.com/components/#glyphicons
8746 */
8747 glyph: prop_types_default.a.string.isRequired
8748};
8749
8750var Glyphicon_Glyphicon =
8751/*#__PURE__*/
8752function (_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
8788Glyphicon_Glyphicon.propTypes = Glyphicon_propTypes;
8789/* harmony default export */ var src_Glyphicon = (bootstrapUtils_bsClass('glyphicon', Glyphicon_Glyphicon));
8790// CONCATENATED MODULE: ./src/Carousel.js
8791
8792
8793
8794
8795var Carousel_jsxFileName = "/Users/jason/src/react-bootstrap/src/Carousel.js";
8796
8797
8798
8799
8800
8801
8802
8803
8804 // TODO: `slide` should be `animate`.
8805// TODO: Use uncontrollable.
8806
8807var Carousel_propTypes = {
8808 slide: prop_types_default.a.bool,
8809 indicators: prop_types_default.a.bool,
8810
8811 /**
8812 * The amount of time to delay between automatically cycling an item.
8813 * If `null`, carousel will not automatically cycle.
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 * Callback fired when the active item changes.
8822 *
8823 * ```js
8824 * (eventKey: any, ?event: Object) => any
8825 * ```
8826 *
8827 * If this callback takes two or more arguments, the second argument will
8828 * be a persisted event object with `direction` set to the direction of the
8829 * transition.
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 * Label shown to screen readers only, can be used to show the previous element
8840 * in the carousel.
8841 * Set to null to deactivate.
8842 */
8843 prevLabel: prop_types_default.a.string,
8844 nextIcon: prop_types_default.a.node,
8845
8846 /**
8847 * Label shown to screen readers only, can be used to show the next element
8848 * in the carousel.
8849 * Set to null to deactivate.
8850 */
8851 nextLabel: prop_types_default.a.string
8852};
8853var 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
8880var Carousel_Carousel =
8881/*#__PURE__*/
8882function (_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 }; // This might be a public API.
9003
9004
9005 _proto.pause = function pause() {
9006 this.isPaused = true;
9007 clearTimeout(this.timeout);
9008 }; // This might be a public API.
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); // TODO: Is this necessary? Seems like the only risk is if the component
9018 // unmounts while handleItemAnimateOutEnd fires.
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 // React SyntheticEvents are pooled, so we need to remove this event
9031 // from the pool to add a custom property. To avoid unnecessarily
9032 // removing objects from the pool, only do this when the listener
9033 // actually wants the event.
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 // If currently animating don't activate the new index.
9052 // TODO: look into queueing this canceled call and
9053 // animating after the current animation has ended.
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 }), // Force whitespace between indicator elements. Bootstrap requires
9139 // this for correct spacing of elements.
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', // Accessed via this.getActiveIndex().
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
9225Carousel_Carousel.propTypes = Carousel_propTypes;
9226Carousel_Carousel.defaultProps = Carousel_defaultProps;
9227Carousel_Carousel.Caption = src_CarouselCaption;
9228Carousel_Carousel.Item = src_CarouselItem;
9229/* harmony default export */ var src_Carousel = (bootstrapUtils_bsClass('carousel', Carousel_Carousel));
9230// EXTERNAL MODULE: ./node_modules/warning/browser.js
9231var warning_browser = __webpack_require__(7);
9232
9233// CONCATENATED MODULE: ./src/Checkbox.js
9234
9235
9236
9237var Checkbox_jsxFileName = "/Users/jason/src/react-bootstrap/src/Checkbox.js";
9238
9239/* eslint-disable jsx-a11y/label-has-for */
9240
9241
9242
9243
9244
9245var 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 * Only valid if `inline` is not set.
9252 */
9253 validationState: prop_types_default.a.oneOf(['success', 'warning', 'error', null]),
9254
9255 /**
9256 * Attaches a ref to the `<input>` element. Only functions can be used here.
9257 *
9258 * ```js
9259 * <Checkbox inputRef={ref => { this.input = ref; }} />
9260 * ```
9261 */
9262 inputRef: prop_types_default.a.func
9263};
9264var Checkbox_defaultProps = {
9265 inline: false,
9266 disabled: false,
9267 title: ''
9268};
9269
9270var Checkbox_Checkbox =
9271/*#__PURE__*/
9272function (_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); // Use a warning here instead of in propTypes to get better-looking
9312 // generated documentation.
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
9357Checkbox_Checkbox.propTypes = Checkbox_propTypes;
9358Checkbox_Checkbox.defaultProps = Checkbox_defaultProps;
9359/* harmony default export */ var src_Checkbox = (bootstrapUtils_bsClass('checkbox', Checkbox_Checkbox));
9360// CONCATENATED MODULE: ./src/utils/capitalize.js
9361function capitalize(string) {
9362 return "" + string.charAt(0).toUpperCase() + string.slice(1);
9363}
9364// CONCATENATED MODULE: ./src/Clearfix.js
9365
9366
9367
9368var Clearfix_jsxFileName = "/Users/jason/src/react-bootstrap/src/Clearfix.js";
9369
9370
9371
9372
9373
9374
9375
9376var Clearfix_propTypes = {
9377 componentClass: elementType_default.a,
9378
9379 /**
9380 * Apply clearfix
9381 *
9382 * on Extra small devices Phones
9383 *
9384 * adds class `visible-xs-block`
9385 */
9386 visibleXsBlock: prop_types_default.a.bool,
9387
9388 /**
9389 * Apply clearfix
9390 *
9391 * on Small devices Tablets
9392 *
9393 * adds class `visible-sm-block`
9394 */
9395 visibleSmBlock: prop_types_default.a.bool,
9396
9397 /**
9398 * Apply clearfix
9399 *
9400 * on Medium devices Desktops
9401 *
9402 * adds class `visible-md-block`
9403 */
9404 visibleMdBlock: prop_types_default.a.bool,
9405
9406 /**
9407 * Apply clearfix
9408 *
9409 * on Large devices Desktops
9410 *
9411 * adds class `visible-lg-block`
9412 */
9413 visibleLgBlock: prop_types_default.a.bool
9414};
9415var Clearfix_defaultProps = {
9416 componentClass: 'div'
9417};
9418
9419var Clearfix_Clearfix =
9420/*#__PURE__*/
9421function (_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
9463Clearfix_Clearfix.propTypes = Clearfix_propTypes;
9464Clearfix_Clearfix.defaultProps = Clearfix_defaultProps;
9465/* harmony default export */ var src_Clearfix = (bootstrapUtils_bsClass('clearfix', Clearfix_Clearfix));
9466// CONCATENATED MODULE: ./src/ControlLabel.js
9467
9468
9469
9470var ControlLabel_jsxFileName = "/Users/jason/src/react-bootstrap/src/ControlLabel.js";
9471
9472
9473
9474
9475
9476var ControlLabel_propTypes = {
9477 /**
9478 * Uses `controlId` from `<FormGroup>` if not explicitly specified.
9479 */
9480 htmlFor: prop_types_default.a.string,
9481 srOnly: prop_types_default.a.bool
9482};
9483var ControlLabel_defaultProps = {
9484 srOnly: false
9485};
9486var contextTypes = {
9487 $bs_formGroup: prop_types_default.a.object
9488};
9489
9490var ControlLabel_ControlLabel =
9491/*#__PURE__*/
9492function (_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
9536ControlLabel_ControlLabel.propTypes = ControlLabel_propTypes;
9537ControlLabel_ControlLabel.defaultProps = ControlLabel_defaultProps;
9538ControlLabel_ControlLabel.contextTypes = contextTypes;
9539/* harmony default export */ var src_ControlLabel = (bootstrapUtils_bsClass('control-label', ControlLabel_ControlLabel));
9540// CONCATENATED MODULE: ./src/Col.js
9541
9542
9543
9544var Col_jsxFileName = "/Users/jason/src/react-bootstrap/src/Col.js";
9545
9546
9547
9548
9549
9550
9551var Col_propTypes = {
9552 componentClass: elementType_default.a,
9553
9554 /**
9555 * The number of columns you wish to span
9556 *
9557 * for Extra small devices Phones (<768px)
9558 *
9559 * class-prefix `col-xs-`
9560 */
9561 xs: prop_types_default.a.number,
9562
9563 /**
9564 * The number of columns you wish to span
9565 *
9566 * for Small devices Tablets (≥768px)
9567 *
9568 * class-prefix `col-sm-`
9569 */
9570 sm: prop_types_default.a.number,
9571
9572 /**
9573 * The number of columns you wish to span
9574 *
9575 * for Medium devices Desktops (≥992px)
9576 *
9577 * class-prefix `col-md-`
9578 */
9579 md: prop_types_default.a.number,
9580
9581 /**
9582 * The number of columns you wish to span
9583 *
9584 * for Large devices Desktops (≥1200px)
9585 *
9586 * class-prefix `col-lg-`
9587 */
9588 lg: prop_types_default.a.number,
9589
9590 /**
9591 * Hide column
9592 *
9593 * on Extra small devices Phones
9594 *
9595 * adds class `hidden-xs`
9596 */
9597 xsHidden: prop_types_default.a.bool,
9598
9599 /**
9600 * Hide column
9601 *
9602 * on Small devices Tablets
9603 *
9604 * adds class `hidden-sm`
9605 */
9606 smHidden: prop_types_default.a.bool,
9607
9608 /**
9609 * Hide column
9610 *
9611 * on Medium devices Desktops
9612 *
9613 * adds class `hidden-md`
9614 */
9615 mdHidden: prop_types_default.a.bool,
9616
9617 /**
9618 * Hide column
9619 *
9620 * on Large devices Desktops
9621 *
9622 * adds class `hidden-lg`
9623 */
9624 lgHidden: prop_types_default.a.bool,
9625
9626 /**
9627 * Move columns to the right
9628 *
9629 * for Extra small devices Phones
9630 *
9631 * class-prefix `col-xs-offset-`
9632 */
9633 xsOffset: prop_types_default.a.number,
9634
9635 /**
9636 * Move columns to the right
9637 *
9638 * for Small devices Tablets
9639 *
9640 * class-prefix `col-sm-offset-`
9641 */
9642 smOffset: prop_types_default.a.number,
9643
9644 /**
9645 * Move columns to the right
9646 *
9647 * for Medium devices Desktops
9648 *
9649 * class-prefix `col-md-offset-`
9650 */
9651 mdOffset: prop_types_default.a.number,
9652
9653 /**
9654 * Move columns to the right
9655 *
9656 * for Large devices Desktops
9657 *
9658 * class-prefix `col-lg-offset-`
9659 */
9660 lgOffset: prop_types_default.a.number,
9661
9662 /**
9663 * Change the order of grid columns to the right
9664 *
9665 * for Extra small devices Phones
9666 *
9667 * class-prefix `col-xs-push-`
9668 */
9669 xsPush: prop_types_default.a.number,
9670
9671 /**
9672 * Change the order of grid columns to the right
9673 *
9674 * for Small devices Tablets
9675 *
9676 * class-prefix `col-sm-push-`
9677 */
9678 smPush: prop_types_default.a.number,
9679
9680 /**
9681 * Change the order of grid columns to the right
9682 *
9683 * for Medium devices Desktops
9684 *
9685 * class-prefix `col-md-push-`
9686 */
9687 mdPush: prop_types_default.a.number,
9688
9689 /**
9690 * Change the order of grid columns to the right
9691 *
9692 * for Large devices Desktops
9693 *
9694 * class-prefix `col-lg-push-`
9695 */
9696 lgPush: prop_types_default.a.number,
9697
9698 /**
9699 * Change the order of grid columns to the left
9700 *
9701 * for Extra small devices Phones
9702 *
9703 * class-prefix `col-xs-pull-`
9704 */
9705 xsPull: prop_types_default.a.number,
9706
9707 /**
9708 * Change the order of grid columns to the left
9709 *
9710 * for Small devices Tablets
9711 *
9712 * class-prefix `col-sm-pull-`
9713 */
9714 smPull: prop_types_default.a.number,
9715
9716 /**
9717 * Change the order of grid columns to the left
9718 *
9719 * for Medium devices Desktops
9720 *
9721 * class-prefix `col-md-pull-`
9722 */
9723 mdPull: prop_types_default.a.number,
9724
9725 /**
9726 * Change the order of grid columns to the left
9727 *
9728 * for Large devices Desktops
9729 *
9730 * class-prefix `col-lg-pull-`
9731 */
9732 lgPull: prop_types_default.a.number
9733};
9734var Col_defaultProps = {
9735 componentClass: 'div'
9736};
9737
9738var Col_Col =
9739/*#__PURE__*/
9740function (_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
9797Col_Col.propTypes = Col_propTypes;
9798Col_Col.defaultProps = Col_defaultProps;
9799/* harmony default export */ var src_Col = (bootstrapUtils_bsClass('col', Col_Col));
9800// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/parse-int.js
9801var parse_int = __webpack_require__(53);
9802var parse_int_default = /*#__PURE__*/__webpack_require__.n(parse_int);
9803
9804// EXTERNAL MODULE: ./node_modules/dom-helpers/style/index.js
9805var dom_helpers_style = __webpack_require__(18);
9806var style_default = /*#__PURE__*/__webpack_require__.n(dom_helpers_style);
9807
9808// EXTERNAL MODULE: ./node_modules/react-transition-group/Transition.js
9809var react_transition_group_Transition = __webpack_require__(11);
9810var Transition_default = /*#__PURE__*/__webpack_require__.n(react_transition_group_Transition);
9811
9812// CONCATENATED MODULE: ./src/Collapse.js
9813
9814
9815
9816
9817
9818var _collapseStyles,
9819 Collapse_jsxFileName = "/Users/jason/src/react-bootstrap/src/Collapse.js";
9820
9821
9822
9823
9824
9825
9826
9827
9828var MARGINS = {
9829 height: ['marginTop', 'marginBottom'],
9830 width: ['marginLeft', 'marginRight']
9831}; // reading a dimension prop will cause the browser to recalculate,
9832// which will let our animations work
9833
9834function triggerBrowserReflow(node) {
9835 node.offsetHeight; // eslint-disable-line no-unused-expressions
9836}
9837
9838function 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
9844var 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);
9845var Collapse_propTypes = {
9846 /**
9847 * Show the component; triggers the expand or collapse animation
9848 */
9849 in: prop_types_default.a.bool,
9850
9851 /**
9852 * Wait until the first "enter" transition to mount the component (add it to the DOM)
9853 */
9854 mountOnEnter: prop_types_default.a.bool,
9855
9856 /**
9857 * Unmount the component (remove it from the DOM) when it is collapsed
9858 */
9859 unmountOnExit: prop_types_default.a.bool,
9860
9861 /**
9862 * Run the expand animation when the component mounts, if it is initially
9863 * shown
9864 */
9865 appear: prop_types_default.a.bool,
9866
9867 /**
9868 * Duration of the collapse animation in milliseconds, to ensure that
9869 * finishing callbacks are fired even if the original browser transition end
9870 * events are canceled
9871 */
9872 timeout: prop_types_default.a.number,
9873
9874 /**
9875 * Callback fired before the component expands
9876 */
9877 onEnter: prop_types_default.a.func,
9878
9879 /**
9880 * Callback fired after the component starts to expand
9881 */
9882 onEntering: prop_types_default.a.func,
9883
9884 /**
9885 * Callback fired after the component has expanded
9886 */
9887 onEntered: prop_types_default.a.func,
9888
9889 /**
9890 * Callback fired before the component collapses
9891 */
9892 onExit: prop_types_default.a.func,
9893
9894 /**
9895 * Callback fired after the component starts to collapse
9896 */
9897 onExiting: prop_types_default.a.func,
9898
9899 /**
9900 * Callback fired after the component has collapsed
9901 */
9902 onExited: prop_types_default.a.func,
9903
9904 /**
9905 * The dimension used when collapsing, or a function that returns the
9906 * dimension
9907 *
9908 * _Note: Bootstrap only partially supports 'width'!
9909 * You will need to supply your own CSS animation for the `.width` CSS class._
9910 */
9911 dimension: prop_types_default.a.oneOfType([prop_types_default.a.oneOf(['height', 'width']), prop_types_default.a.func]),
9912
9913 /**
9914 * Function that returns the height or width of the animating DOM node
9915 *
9916 * Allows for providing some custom logic for how much the Collapse component
9917 * should animate in its specified dimension. Called with the current
9918 * dimension prop value and the DOM node.
9919 */
9920 getDimensionValue: prop_types_default.a.func,
9921
9922 /**
9923 * ARIA role of collapsible element
9924 */
9925 role: prop_types_default.a.string
9926};
9927var 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
9937var Collapse_Collapse =
9938/*#__PURE__*/
9939function (_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 }; // for testing
9984
9985
9986 _proto._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) {
9987 return elem["scroll" + capitalize(dimension)] + "px";
9988 };
9989 /* -- Expanding -- */
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
10034Collapse_Collapse.propTypes = Collapse_propTypes;
10035Collapse_Collapse.defaultProps = Collapse_defaultProps;
10036/* harmony default export */ var src_Collapse = (Collapse_Collapse);
10037// EXTERNAL MODULE: ./node_modules/dom-helpers/activeElement.js
10038var activeElement = __webpack_require__(50);
10039var activeElement_default = /*#__PURE__*/__webpack_require__.n(activeElement);
10040
10041// EXTERNAL MODULE: ./node_modules/dom-helpers/query/contains.js
10042var contains = __webpack_require__(13);
10043var contains_default = /*#__PURE__*/__webpack_require__.n(contains);
10044
10045// EXTERNAL MODULE: ./node_modules/keycode/index.js
10046var keycode = __webpack_require__(6);
10047var keycode_default = /*#__PURE__*/__webpack_require__.n(keycode);
10048
10049// EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/isRequiredForA11y.js
10050var isRequiredForA11y = __webpack_require__(15);
10051var isRequiredForA11y_default = /*#__PURE__*/__webpack_require__.n(isRequiredForA11y);
10052
10053// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/from.js
10054var from = __webpack_require__(78);
10055var from_default = /*#__PURE__*/__webpack_require__.n(from);
10056
10057// EXTERNAL MODULE: ./node_modules/react-overlays/lib/RootCloseWrapper.js
10058var RootCloseWrapper = __webpack_require__(51);
10059var RootCloseWrapper_default = /*#__PURE__*/__webpack_require__.n(RootCloseWrapper);
10060
10061// CONCATENATED MODULE: ./src/DropdownMenu.js
10062
10063
10064
10065
10066
10067var DropdownMenu_jsxFileName = "/Users/jason/src/react-bootstrap/src/DropdownMenu.js";
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077var 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};
10085var DropdownMenu_defaultProps = {
10086 bsRole: 'menu',
10087 pullRight: false
10088};
10089
10090var DropdownMenu_DropdownMenu =
10091/*#__PURE__*/
10092function (_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
10229DropdownMenu_DropdownMenu.propTypes = DropdownMenu_propTypes;
10230DropdownMenu_DropdownMenu.defaultProps = DropdownMenu_defaultProps;
10231/* harmony default export */ var src_DropdownMenu = (bootstrapUtils_bsClass('dropdown-menu', DropdownMenu_DropdownMenu));
10232// CONCATENATED MODULE: ./src/DropdownToggle.js
10233
10234
10235
10236var DropdownToggle_jsxFileName = "/Users/jason/src/react-bootstrap/src/DropdownToggle.js";
10237
10238
10239
10240
10241
10242
10243var 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};
10249var DropdownToggle_defaultProps = {
10250 open: false,
10251 useAnchor: false,
10252 bsRole: 'toggle'
10253};
10254
10255var DropdownToggle_DropdownToggle =
10256/*#__PURE__*/
10257function (_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; // This intentionally forwards bsSize and bsStyle (if set) to the
10279 // underlying component, to allow it to render size and style variants.
10280 // FIXME: Should this really fall back to `title` as children?
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
10305DropdownToggle_DropdownToggle.propTypes = DropdownToggle_propTypes;
10306DropdownToggle_DropdownToggle.defaultProps = DropdownToggle_defaultProps;
10307/* harmony default export */ var src_DropdownToggle = (bootstrapUtils_bsClass('dropdown-toggle', DropdownToggle_DropdownToggle));
10308// CONCATENATED MODULE: ./src/Dropdown.js
10309
10310
10311
10312
10313var 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
10333var TOGGLE_ROLE = src_DropdownToggle.defaultProps.bsRole;
10334var MENU_ROLE = src_DropdownMenu.defaultProps.bsRole;
10335var Dropdown_propTypes = {
10336 /**
10337 * The menu will open above the dropdown button, instead of below it.
10338 */
10339 dropup: prop_types_default.a.bool,
10340
10341 /**
10342 * An html id attribute, necessary for assistive technologies, such as screen readers.
10343 * @type {string|number}
10344 * @required
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 * The children of a Dropdown may be a `<Dropdown.Toggle>` or a `<Dropdown.Menu>`.
10351 * @type {node}
10352 */
10353 children: all_default()(requiredRoles(TOGGLE_ROLE, MENU_ROLE), exclusiveRoles(MENU_ROLE)),
10354
10355 /**
10356 * Whether or not component is disabled.
10357 */
10358 disabled: prop_types_default.a.bool,
10359
10360 /**
10361 * Align the menu to the right side of the Dropdown toggle
10362 */
10363 pullRight: prop_types_default.a.bool,
10364
10365 /**
10366 * Whether or not the Dropdown is visible.
10367 *
10368 * @controllable onToggle
10369 */
10370 open: prop_types_default.a.bool,
10371 defaultOpen: prop_types_default.a.bool,
10372
10373 /**
10374 * A callback fired when the Dropdown wishes to change visibility. Called with the requested
10375 * `open` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`.
10376 *
10377 * ```js
10378 * function(Boolean isOpen, Object event, { String source }) {}
10379 * ```
10380 * @controllable open
10381 */
10382 onToggle: prop_types_default.a.func,
10383
10384 /**
10385 * A callback fired when a menu item is selected.
10386 *
10387 * ```js
10388 * (eventKey: any, event: Object) => any
10389 * ```
10390 */
10391 onSelect: prop_types_default.a.func,
10392
10393 /**
10394 * If `'menuitem'`, causes the dropdown to behave like a menu item rather than
10395 * a menu button.
10396 */
10397 role: prop_types_default.a.string,
10398
10399 /**
10400 * Which event when fired outside the component will cause it to be closed
10401 *
10402 * *Note: For custom dropdown components, you will have to pass the
10403 * `rootCloseEvent` to `<RootCloseWrapper>` in your custom dropdown menu
10404 * component ([similarly to how it is implemented in `<Dropdown.Menu>`](https://github.com/react-bootstrap/react-bootstrap/blob/v0.31.5/src/DropdownMenu.js#L115-L119)).*
10405 */
10406 rootCloseEvent: prop_types_default.a.oneOf(['click', 'mousedown']),
10407
10408 /**
10409 * @private
10410 */
10411 onMouseEnter: prop_types_default.a.func,
10412
10413 /**
10414 * @private
10415 */
10416 onMouseLeave: prop_types_default.a.func
10417};
10418var Dropdown_defaultProps = {
10419 componentClass: src_ButtonGroup
10420};
10421
10422var Dropdown_Dropdown =
10423/*#__PURE__*/
10424function (_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 // if focus hasn't already moved from the menu let's return it
10461 // to the toggle
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 } // This intentionally forwards bsSize and bsStyle (if set) to the
10627 // underlying component, to allow it to render size and style variants.
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
10667Dropdown_Dropdown.propTypes = Dropdown_propTypes;
10668Dropdown_Dropdown.defaultProps = Dropdown_defaultProps;
10669bootstrapUtils_bsClass('dropdown', Dropdown_Dropdown);
10670var UncontrolledDropdown = uncontrollable_default()(Dropdown_Dropdown, {
10671 open: 'onToggle'
10672});
10673UncontrolledDropdown.Toggle = src_DropdownToggle;
10674UncontrolledDropdown.Menu = src_DropdownMenu;
10675/* harmony default export */ var src_Dropdown = (UncontrolledDropdown);
10676// CONCATENATED MODULE: ./src/utils/splitComponentProps.js
10677
10678function 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// CONCATENATED MODULE: ./src/DropdownButton.js
10697
10698
10699
10700var DropdownButton_jsxFileName = "/Users/jason/src/react-bootstrap/src/DropdownButton.js";
10701
10702
10703
10704
10705
10706var DropdownButton_propTypes = _extends({}, src_Dropdown.propTypes, {
10707 // Toggle props.
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 // Override generated docs from <Dropdown>.
10713
10714 /**
10715 * @private
10716 */
10717 children: prop_types_default.a.node
10718});
10719
10720var DropdownButton_DropdownButton =
10721/*#__PURE__*/
10722function (_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
10771DropdownButton_DropdownButton.propTypes = DropdownButton_propTypes;
10772/* harmony default export */ var src_DropdownButton = (DropdownButton_DropdownButton);
10773// CONCATENATED MODULE: ./src/Fade.js
10774
10775
10776
10777
10778var _fadeStyles,
10779 Fade_jsxFileName = "/Users/jason/src/react-bootstrap/src/Fade.js";
10780
10781
10782
10783
10784
10785var Fade_propTypes = {
10786 /**
10787 * Show the component; triggers the fade in or fade out animation
10788 */
10789 in: prop_types_default.a.bool,
10790
10791 /**
10792 * Wait until the first "enter" transition to mount the component (add it to the DOM)
10793 */
10794 mountOnEnter: prop_types_default.a.bool,
10795
10796 /**
10797 * Unmount the component (remove it from the DOM) when it is faded out
10798 */
10799 unmountOnExit: prop_types_default.a.bool,
10800
10801 /**
10802 * Run the fade in animation when the component mounts, if it is initially
10803 * shown
10804 */
10805 appear: prop_types_default.a.bool,
10806
10807 /**
10808 * Duration of the fade animation in milliseconds, to ensure that finishing
10809 * callbacks are fired even if the original browser transition end events are
10810 * canceled
10811 */
10812 timeout: prop_types_default.a.number,
10813
10814 /**
10815 * Callback fired before the component fades in
10816 */
10817 onEnter: prop_types_default.a.func,
10818
10819 /**
10820 * Callback fired after the component starts to fade in
10821 */
10822 onEntering: prop_types_default.a.func,
10823
10824 /**
10825 * Callback fired after the has component faded in
10826 */
10827 onEntered: prop_types_default.a.func,
10828
10829 /**
10830 * Callback fired before the component fades out
10831 */
10832 onExit: prop_types_default.a.func,
10833
10834 /**
10835 * Callback fired after the component starts to fade out
10836 */
10837 onExiting: prop_types_default.a.func,
10838
10839 /**
10840 * Callback fired after the component has faded out
10841 */
10842 onExited: prop_types_default.a.func
10843};
10844var Fade_defaultProps = {
10845 in: false,
10846 timeout: 300,
10847 mountOnEnter: false,
10848 unmountOnExit: false,
10849 appear: false
10850};
10851var fadeStyles = (_fadeStyles = {}, _fadeStyles[react_transition_group_Transition["ENTERING"]] = 'in', _fadeStyles[react_transition_group_Transition["ENTERED"]] = 'in', _fadeStyles);
10852
10853var Fade_Fade =
10854/*#__PURE__*/
10855function (_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
10886Fade_Fade.propTypes = Fade_propTypes;
10887Fade_Fade.defaultProps = Fade_defaultProps;
10888/* harmony default export */ var src_Fade = (Fade_Fade);
10889// CONCATENATED MODULE: ./src/Form.js
10890
10891
10892
10893var Form_jsxFileName = "/Users/jason/src/react-bootstrap/src/Form.js";
10894
10895
10896
10897
10898
10899var Form_propTypes = {
10900 horizontal: prop_types_default.a.bool,
10901 inline: prop_types_default.a.bool,
10902 componentClass: elementType_default.a
10903};
10904var Form_defaultProps = {
10905 horizontal: false,
10906 inline: false,
10907 componentClass: 'form'
10908};
10909
10910var Form_Form =
10911/*#__PURE__*/
10912function (_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
10956Form_Form.propTypes = Form_propTypes;
10957Form_Form.defaultProps = Form_defaultProps;
10958/* harmony default export */ var src_Form = (bootstrapUtils_bsClass('form', Form_Form));
10959// CONCATENATED MODULE: ./src/FormControlFeedback.js
10960
10961
10962
10963var FormControlFeedback_jsxFileName = "/Users/jason/src/react-bootstrap/src/FormControlFeedback.js";
10964
10965
10966
10967
10968
10969var FormControlFeedback_defaultProps = {
10970 bsRole: 'feedback'
10971};
10972var FormControlFeedback_contextTypes = {
10973 $bs_formGroup: prop_types_default.a.object
10974};
10975
10976var FormControlFeedback_FormControlFeedback =
10977/*#__PURE__*/
10978function (_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
11046FormControlFeedback_FormControlFeedback.defaultProps = FormControlFeedback_defaultProps;
11047FormControlFeedback_FormControlFeedback.contextTypes = FormControlFeedback_contextTypes;
11048/* harmony default export */ var src_FormControlFeedback = (bootstrapUtils_bsClass('form-control-feedback', FormControlFeedback_FormControlFeedback));
11049// CONCATENATED MODULE: ./src/FormControlStatic.js
11050
11051
11052
11053var FormControlStatic_jsxFileName = "/Users/jason/src/react-bootstrap/src/FormControlStatic.js";
11054
11055
11056
11057
11058var FormControlStatic_propTypes = {
11059 componentClass: elementType_default.a
11060};
11061var FormControlStatic_defaultProps = {
11062 componentClass: 'p'
11063};
11064
11065var FormControlStatic_FormControlStatic =
11066/*#__PURE__*/
11067function (_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
11100FormControlStatic_FormControlStatic.propTypes = FormControlStatic_propTypes;
11101FormControlStatic_FormControlStatic.defaultProps = FormControlStatic_defaultProps;
11102/* harmony default export */ var src_FormControlStatic = (bootstrapUtils_bsClass('form-control-static', FormControlStatic_FormControlStatic));
11103// CONCATENATED MODULE: ./src/FormControl.js
11104
11105
11106
11107var FormControl_jsxFileName = "/Users/jason/src/react-bootstrap/src/FormControl.js";
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117var FormControl_propTypes = {
11118 componentClass: elementType_default.a,
11119
11120 /**
11121 * Only relevant if `componentClass` is `'input'`.
11122 */
11123 type: prop_types_default.a.string,
11124
11125 /**
11126 * Uses `controlId` from `<FormGroup>` if not explicitly specified.
11127 */
11128 id: prop_types_default.a.string,
11129
11130 /**
11131 * Attaches a ref to the `<input>` element. Only functions can be used here.
11132 *
11133 * ```js
11134 * <FormControl inputRef={ref => { this.input = ref; }} />
11135 * ```
11136 */
11137 inputRef: prop_types_default.a.func
11138};
11139var FormControl_defaultProps = {
11140 componentClass: 'input'
11141};
11142var FormControl_contextTypes = {
11143 $bs_formGroup: prop_types_default.a.object
11144};
11145
11146var FormControl_FormControl =
11147/*#__PURE__*/
11148function (_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; // input[type="file"] should not have .form-control.
11176
11177 var classes;
11178
11179 if (type !== 'file') {
11180 classes = getClassSet(bsProps);
11181 } // If user provides a size, make sure to append it to classes as input-
11182 // e.g. if bsSize is small, it will append input-sm
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
11208FormControl_FormControl.propTypes = FormControl_propTypes;
11209FormControl_FormControl.defaultProps = FormControl_defaultProps;
11210FormControl_FormControl.contextTypes = FormControl_contextTypes;
11211FormControl_FormControl.Feedback = src_FormControlFeedback;
11212FormControl_FormControl.Static = src_FormControlStatic;
11213/* harmony default export */ var src_FormControl = (bootstrapUtils_bsClass('form-control', bsSizes([Size.SMALL, Size.LARGE], FormControl_FormControl)));
11214// CONCATENATED MODULE: ./src/FormGroup.js
11215
11216
11217
11218var FormGroup_jsxFileName = "/Users/jason/src/react-bootstrap/src/FormGroup.js";
11219
11220
11221
11222
11223
11224
11225var FormGroup_propTypes = {
11226 /**
11227 * Sets `id` on `<FormControl>` and `htmlFor` on `<FormGroup.Label>`.
11228 */
11229 controlId: prop_types_default.a.string,
11230 validationState: prop_types_default.a.oneOf(['success', 'warning', 'error', null])
11231};
11232var FormGroup_childContextTypes = {
11233 $bs_formGroup: prop_types_default.a.object.isRequired
11234};
11235
11236var FormGroup_FormGroup =
11237/*#__PURE__*/
11238function (_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
11299FormGroup_FormGroup.propTypes = FormGroup_propTypes;
11300FormGroup_FormGroup.childContextTypes = FormGroup_childContextTypes;
11301/* harmony default export */ var src_FormGroup = (bootstrapUtils_bsClass('form-group', bsSizes([Size.LARGE, Size.SMALL], FormGroup_FormGroup)));
11302// CONCATENATED MODULE: ./src/Grid.js
11303
11304
11305
11306var Grid_jsxFileName = "/Users/jason/src/react-bootstrap/src/Grid.js";
11307
11308
11309
11310
11311
11312var Grid_propTypes = {
11313 /**
11314 * Turn any fixed-width grid layout into a full-width layout by this property.
11315 *
11316 * Adds `container-fluid` class.
11317 */
11318 fluid: prop_types_default.a.bool,
11319
11320 /**
11321 * You can use a custom element for this component
11322 */
11323 componentClass: elementType_default.a
11324};
11325var Grid_defaultProps = {
11326 componentClass: 'div',
11327 fluid: false
11328};
11329
11330var Grid_Grid =
11331/*#__PURE__*/
11332function (_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
11366Grid_Grid.propTypes = Grid_propTypes;
11367Grid_Grid.defaultProps = Grid_defaultProps;
11368/* harmony default export */ var src_Grid = (bootstrapUtils_bsClass('container', Grid_Grid));
11369// CONCATENATED MODULE: ./src/HelpBlock.js
11370
11371
11372
11373var HelpBlock_jsxFileName = "/Users/jason/src/react-bootstrap/src/HelpBlock.js";
11374
11375
11376
11377
11378var HelpBlock_HelpBlock =
11379/*#__PURE__*/
11380function (_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/* harmony default export */ var src_HelpBlock = (bootstrapUtils_bsClass('help-block', HelpBlock_HelpBlock));
11413// CONCATENATED MODULE: ./src/Image.js
11414
11415
11416
11417var Image_jsxFileName = "/Users/jason/src/react-bootstrap/src/Image.js";
11418
11419
11420
11421
11422var Image_propTypes = {
11423 /**
11424 * Sets image as responsive image
11425 */
11426 responsive: prop_types_default.a.bool,
11427
11428 /**
11429 * Sets image shape as rounded
11430 */
11431 rounded: prop_types_default.a.bool,
11432
11433 /**
11434 * Sets image shape as circle
11435 */
11436 circle: prop_types_default.a.bool,
11437
11438 /**
11439 * Sets image shape as thumbnail
11440 */
11441 thumbnail: prop_types_default.a.bool
11442};
11443var Image_defaultProps = {
11444 responsive: false,
11445 rounded: false,
11446 circle: false,
11447 thumbnail: false
11448};
11449
11450var Image_Image =
11451/*#__PURE__*/
11452function (_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
11490Image_Image.propTypes = Image_propTypes;
11491Image_Image.defaultProps = Image_defaultProps;
11492/* harmony default export */ var src_Image = (bootstrapUtils_bsClass('img', Image_Image));
11493// CONCATENATED MODULE: ./src/InputGroupAddon.js
11494
11495
11496
11497var InputGroupAddon_jsxFileName = "/Users/jason/src/react-bootstrap/src/InputGroupAddon.js";
11498
11499
11500
11501
11502var InputGroupAddon_InputGroupAddon =
11503/*#__PURE__*/
11504function (_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/* harmony default export */ var src_InputGroupAddon = (bootstrapUtils_bsClass('input-group-addon', InputGroupAddon_InputGroupAddon));
11537// CONCATENATED MODULE: ./src/InputGroupButton.js
11538
11539
11540
11541var InputGroupButton_jsxFileName = "/Users/jason/src/react-bootstrap/src/InputGroupButton.js";
11542
11543
11544
11545
11546var InputGroupButton_InputGroupButton =
11547/*#__PURE__*/
11548function (_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/* harmony default export */ var src_InputGroupButton = (bootstrapUtils_bsClass('input-group-btn', InputGroupButton_InputGroupButton));
11581// CONCATENATED MODULE: ./src/InputGroup.js
11582
11583
11584
11585var InputGroup_jsxFileName = "/Users/jason/src/react-bootstrap/src/InputGroup.js";
11586
11587
11588
11589
11590
11591
11592
11593var InputGroup_InputGroup =
11594/*#__PURE__*/
11595function (_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
11627InputGroup_InputGroup.Addon = src_InputGroupAddon;
11628InputGroup_InputGroup.Button = src_InputGroupButton;
11629/* harmony default export */ var src_InputGroup = (bootstrapUtils_bsClass('input-group', bsSizes([Size.LARGE, Size.SMALL], InputGroup_InputGroup)));
11630// CONCATENATED MODULE: ./src/Jumbotron.js
11631
11632
11633
11634var Jumbotron_jsxFileName = "/Users/jason/src/react-bootstrap/src/Jumbotron.js";
11635
11636
11637
11638
11639var Jumbotron_propTypes = {
11640 componentClass: elementType_default.a
11641};
11642var Jumbotron_defaultProps = {
11643 componentClass: 'div'
11644};
11645
11646var Jumbotron_Jumbotron =
11647/*#__PURE__*/
11648function (_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
11681Jumbotron_Jumbotron.propTypes = Jumbotron_propTypes;
11682Jumbotron_Jumbotron.defaultProps = Jumbotron_defaultProps;
11683/* harmony default export */ var src_Jumbotron = (bootstrapUtils_bsClass('jumbotron', Jumbotron_Jumbotron));
11684// CONCATENATED MODULE: ./src/Label.js
11685
11686
11687
11688
11689var Label_jsxFileName = "/Users/jason/src/react-bootstrap/src/Label.js";
11690
11691
11692
11693
11694
11695var Label_Label =
11696/*#__PURE__*/
11697function (_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 // Hack for collapsing on IE8.
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/* harmony default export */ var src_Label = (bootstrapUtils_bsClass('label', bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY]), Style.DEFAULT, Label_Label)));
11749// CONCATENATED MODULE: ./src/ListGroupItem.js
11750
11751
11752
11753
11754var ListGroupItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/ListGroupItem.js";
11755
11756
11757
11758
11759
11760var 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};
11769var ListGroupItem_defaultProps = {
11770 listItem: false
11771};
11772
11773var ListGroupItem_ListGroupItem =
11774/*#__PURE__*/
11775function (_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); // TODO: Deprecate `header` prop.
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
11864ListGroupItem_ListGroupItem.propTypes = ListGroupItem_propTypes;
11865ListGroupItem_ListGroupItem.defaultProps = ListGroupItem_defaultProps;
11866/* harmony default export */ var src_ListGroupItem = (bootstrapUtils_bsClass('list-group-item', bsStyles(values_default()(State), ListGroupItem_ListGroupItem)));
11867// CONCATENATED MODULE: ./src/ListGroup.js
11868
11869
11870
11871var ListGroup_jsxFileName = "/Users/jason/src/react-bootstrap/src/ListGroup.js";
11872
11873
11874
11875
11876
11877
11878var ListGroup_propTypes = {
11879 /**
11880 * You can use a custom element type for this component.
11881 *
11882 * If not specified, it will be treated as `'li'` if every child is a
11883 * non-actionable `<ListGroupItem>`, and `'div'` otherwise.
11884 */
11885 componentClass: elementType_default.a
11886};
11887
11888function getDefaultComponent(children) {
11889 if (!children) {
11890 // FIXME: This is the old behavior. Is this right?
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
11903var ListGroup_ListGroup =
11904/*#__PURE__*/
11905function (_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
11947ListGroup_ListGroup.propTypes = ListGroup_propTypes;
11948/* harmony default export */ var src_ListGroup = (bootstrapUtils_bsClass('list-group', ListGroup_ListGroup));
11949// CONCATENATED MODULE: ./src/MediaBody.js
11950
11951
11952
11953var MediaBody_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaBody.js";
11954
11955
11956
11957
11958
11959
11960var MediaBody_propTypes = {
11961 /**
11962 * Align the media to the top, middle, or bottom of the media object.
11963 */
11964 align: prop_types_default.a.oneOf(['top', 'middle', 'bottom']),
11965 componentClass: elementType_default.a
11966};
11967var MediaBody_defaultProps = {
11968 componentClass: 'div'
11969};
11970
11971var MediaBody_MediaBody =
11972/*#__PURE__*/
11973function (_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 // The class is e.g. `media-top`, not `media-left-top`.
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
12013MediaBody_MediaBody.propTypes = MediaBody_propTypes;
12014MediaBody_MediaBody.defaultProps = MediaBody_defaultProps;
12015/* harmony default export */ var src_MediaBody = (bootstrapUtils_bsClass('media-body', MediaBody_MediaBody));
12016// CONCATENATED MODULE: ./src/MediaHeading.js
12017
12018
12019
12020var MediaHeading_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaHeading.js";
12021
12022
12023
12024
12025var MediaHeading_propTypes = {
12026 componentClass: elementType_default.a
12027};
12028var MediaHeading_defaultProps = {
12029 componentClass: 'h4'
12030};
12031
12032var MediaHeading_MediaHeading =
12033/*#__PURE__*/
12034function (_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
12067MediaHeading_MediaHeading.propTypes = MediaHeading_propTypes;
12068MediaHeading_MediaHeading.defaultProps = MediaHeading_defaultProps;
12069/* harmony default export */ var src_MediaHeading = (bootstrapUtils_bsClass('media-heading', MediaHeading_MediaHeading));
12070// CONCATENATED MODULE: ./src/MediaLeft.js
12071
12072
12073
12074var MediaLeft_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaLeft.js";
12075
12076
12077
12078
12079
12080var MediaLeft_propTypes = {
12081 /**
12082 * Align the media to the top, middle, or bottom of the media object.
12083 */
12084 align: prop_types_default.a.oneOf(['top', 'middle', 'bottom'])
12085};
12086
12087var MediaLeft_MediaLeft =
12088/*#__PURE__*/
12089function (_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 // The class is e.g. `media-top`, not `media-left-top`.
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
12128MediaLeft_MediaLeft.propTypes = MediaLeft_propTypes;
12129/* harmony default export */ var src_MediaLeft = (bootstrapUtils_bsClass('media-left', MediaLeft_MediaLeft));
12130// CONCATENATED MODULE: ./src/MediaList.js
12131
12132
12133
12134var MediaList_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaList.js";
12135
12136
12137
12138
12139var MediaList_MediaList =
12140/*#__PURE__*/
12141function (_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/* harmony default export */ var src_MediaList = (bootstrapUtils_bsClass('media-list', MediaList_MediaList));
12174// CONCATENATED MODULE: ./src/MediaListItem.js
12175
12176
12177
12178var MediaListItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaListItem.js";
12179
12180
12181
12182
12183var MediaListItem_MediaListItem =
12184/*#__PURE__*/
12185function (_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/* harmony default export */ var src_MediaListItem = (bootstrapUtils_bsClass('media', MediaListItem_MediaListItem));
12218// CONCATENATED MODULE: ./src/MediaRight.js
12219
12220
12221
12222var MediaRight_jsxFileName = "/Users/jason/src/react-bootstrap/src/MediaRight.js";
12223
12224
12225
12226
12227
12228var MediaRight_propTypes = {
12229 /**
12230 * Align the media to the top, middle, or bottom of the media object.
12231 */
12232 align: prop_types_default.a.oneOf(['top', 'middle', 'bottom'])
12233};
12234
12235var MediaRight_MediaRight =
12236/*#__PURE__*/
12237function (_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 // The class is e.g. `media-top`, not `media-right-top`.
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
12276MediaRight_MediaRight.propTypes = MediaRight_propTypes;
12277/* harmony default export */ var src_MediaRight = (bootstrapUtils_bsClass('media-right', MediaRight_MediaRight));
12278// CONCATENATED MODULE: ./src/Media.js
12279
12280
12281
12282var Media_jsxFileName = "/Users/jason/src/react-bootstrap/src/Media.js";
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293var Media_propTypes = {
12294 componentClass: elementType_default.a
12295};
12296var Media_defaultProps = {
12297 componentClass: 'div'
12298};
12299
12300var Media_Media =
12301/*#__PURE__*/
12302function (_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
12335Media_Media.propTypes = Media_propTypes;
12336Media_Media.defaultProps = Media_defaultProps;
12337Media_Media.Heading = src_MediaHeading;
12338Media_Media.Body = src_MediaBody;
12339Media_Media.Left = src_MediaLeft;
12340Media_Media.Right = src_MediaRight;
12341Media_Media.List = src_MediaList;
12342Media_Media.ListItem = src_MediaListItem;
12343/* harmony default export */ var src_Media = (bootstrapUtils_bsClass('media', Media_Media));
12344// CONCATENATED MODULE: ./src/MenuItem.js
12345
12346
12347
12348
12349var MenuItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/MenuItem.js";
12350
12351
12352
12353
12354
12355
12356
12357var MenuItem_propTypes = {
12358 /**
12359 * Highlight the menu item as active.
12360 */
12361 active: prop_types_default.a.bool,
12362
12363 /**
12364 * Disable the menu item, making it unselectable.
12365 */
12366 disabled: prop_types_default.a.bool,
12367
12368 /**
12369 * Styles the menu item as a horizontal rule, providing visual separation between
12370 * groups of menu items.
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 * Value passed to the `onSelect` handler, useful for identifying the selected menu item.
12380 */
12381 eventKey: prop_types_default.a.any,
12382
12383 /**
12384 * Styles the menu item as a header label, useful for describing a group of menu items.
12385 */
12386 header: prop_types_default.a.bool,
12387
12388 /**
12389 * HTML `href` attribute corresponding to `a.href`.
12390 */
12391 href: prop_types_default.a.string,
12392
12393 /**
12394 * Callback fired when the menu item is clicked.
12395 */
12396 onClick: prop_types_default.a.func,
12397
12398 /**
12399 * Callback fired when the menu item is selected.
12400 *
12401 * ```js
12402 * (eventKey: any, event: Object) => any
12403 * ```
12404 */
12405 onSelect: prop_types_default.a.func
12406};
12407var MenuItem_defaultProps = {
12408 divider: false,
12409 disabled: false,
12410 header: false
12411};
12412
12413var MenuItem_MenuItem =
12414/*#__PURE__*/
12415function (_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 // Forcibly blank out the children; separators shouldn't render any.
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
12518MenuItem_MenuItem.propTypes = MenuItem_propTypes;
12519MenuItem_MenuItem.defaultProps = MenuItem_defaultProps;
12520/* harmony default export */ var src_MenuItem = (bootstrapUtils_bsClass('dropdown', MenuItem_MenuItem));
12521// EXTERNAL MODULE: ./node_modules/dom-helpers/events/index.js
12522var events = __webpack_require__(54);
12523var events_default = /*#__PURE__*/__webpack_require__.n(events);
12524
12525// EXTERNAL MODULE: ./node_modules/dom-helpers/ownerDocument.js
12526var ownerDocument = __webpack_require__(17);
12527var ownerDocument_default = /*#__PURE__*/__webpack_require__.n(ownerDocument);
12528
12529// EXTERNAL MODULE: ./node_modules/dom-helpers/util/inDOM.js
12530var inDOM = __webpack_require__(12);
12531var inDOM_default = /*#__PURE__*/__webpack_require__.n(inDOM);
12532
12533// EXTERNAL MODULE: ./node_modules/dom-helpers/util/scrollbarSize.js
12534var scrollbarSize = __webpack_require__(39);
12535var scrollbarSize_default = /*#__PURE__*/__webpack_require__.n(scrollbarSize);
12536
12537// EXTERNAL MODULE: ./node_modules/react-overlays/lib/Modal.js
12538var lib_Modal = __webpack_require__(24);
12539var Modal_default = /*#__PURE__*/__webpack_require__.n(lib_Modal);
12540
12541// EXTERNAL MODULE: ./node_modules/react-overlays/lib/utils/isOverflowing.js
12542var isOverflowing = __webpack_require__(52);
12543var isOverflowing_default = /*#__PURE__*/__webpack_require__.n(isOverflowing);
12544
12545// CONCATENATED MODULE: ./src/ModalBody.js
12546
12547
12548
12549var ModalBody_jsxFileName = "/Users/jason/src/react-bootstrap/src/ModalBody.js";
12550
12551
12552
12553
12554var ModalBody_propTypes = {
12555 componentClass: elementType_default.a
12556};
12557var ModalBody_defaultProps = {
12558 componentClass: 'div'
12559};
12560
12561var ModalBody_ModalBody =
12562/*#__PURE__*/
12563function (_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
12596ModalBody_ModalBody.propTypes = ModalBody_propTypes;
12597ModalBody_ModalBody.defaultProps = ModalBody_defaultProps;
12598/* harmony default export */ var src_ModalBody = (bootstrapUtils_bsClass('modal-body', ModalBody_ModalBody));
12599// CONCATENATED MODULE: ./src/ModalDialog.js
12600
12601
12602
12603var ModalDialog_jsxFileName = "/Users/jason/src/react-bootstrap/src/ModalDialog.js";
12604
12605
12606
12607
12608
12609var ModalDialog_propTypes = {
12610 /**
12611 * A css class to apply to the Modal dialog DOM node.
12612 */
12613 dialogClassName: prop_types_default.a.string
12614};
12615
12616var ModalDialog_ModalDialog =
12617/*#__PURE__*/
12618function (_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
12680ModalDialog_ModalDialog.propTypes = ModalDialog_propTypes;
12681/* harmony default export */ var src_ModalDialog = (bootstrapUtils_bsClass('modal', bsSizes([Size.LARGE, Size.SMALL], ModalDialog_ModalDialog)));
12682// CONCATENATED MODULE: ./src/ModalFooter.js
12683
12684
12685
12686var ModalFooter_jsxFileName = "/Users/jason/src/react-bootstrap/src/ModalFooter.js";
12687
12688
12689
12690
12691var ModalFooter_propTypes = {
12692 componentClass: elementType_default.a
12693};
12694var ModalFooter_defaultProps = {
12695 componentClass: 'div'
12696};
12697
12698var ModalFooter_ModalFooter =
12699/*#__PURE__*/
12700function (_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
12733ModalFooter_ModalFooter.propTypes = ModalFooter_propTypes;
12734ModalFooter_ModalFooter.defaultProps = ModalFooter_defaultProps;
12735/* harmony default export */ var src_ModalFooter = (bootstrapUtils_bsClass('modal-footer', ModalFooter_ModalFooter));
12736// CONCATENATED MODULE: ./src/ModalHeader.js
12737
12738
12739
12740var ModalHeader_jsxFileName = "/Users/jason/src/react-bootstrap/src/ModalHeader.js";
12741
12742
12743
12744
12745
12746 // TODO: `aria-label` should be `closeLabel`.
12747
12748var ModalHeader_propTypes = {
12749 /**
12750 * Provides an accessible label for the close
12751 * button. It is used for Assistive Technology when the label text is not
12752 * readable.
12753 */
12754 closeLabel: prop_types_default.a.string,
12755
12756 /**
12757 * Specify whether the Component should contain a close button
12758 */
12759 closeButton: prop_types_default.a.bool,
12760
12761 /**
12762 * A Callback fired when the close button is clicked. If used directly inside
12763 * a Modal component, the onHide will automatically be propagated up to the
12764 * parent Modal `onHide`.
12765 */
12766 onHide: prop_types_default.a.func
12767};
12768var ModalHeader_defaultProps = {
12769 closeLabel: 'Close',
12770 closeButton: false
12771};
12772var ModalHeader_contextTypes = {
12773 $bs_modal: prop_types_default.a.shape({
12774 onHide: prop_types_default.a.func
12775 })
12776};
12777
12778var ModalHeader_ModalHeader =
12779/*#__PURE__*/
12780function (_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
12826ModalHeader_ModalHeader.propTypes = ModalHeader_propTypes;
12827ModalHeader_ModalHeader.defaultProps = ModalHeader_defaultProps;
12828ModalHeader_ModalHeader.contextTypes = ModalHeader_contextTypes;
12829/* harmony default export */ var src_ModalHeader = (bootstrapUtils_bsClass('modal-header', ModalHeader_ModalHeader));
12830// CONCATENATED MODULE: ./src/ModalTitle.js
12831
12832
12833
12834var ModalTitle_jsxFileName = "/Users/jason/src/react-bootstrap/src/ModalTitle.js";
12835
12836
12837
12838
12839var ModalTitle_propTypes = {
12840 componentClass: elementType_default.a
12841};
12842var ModalTitle_defaultProps = {
12843 componentClass: 'h4'
12844};
12845
12846var ModalTitle_ModalTitle =
12847/*#__PURE__*/
12848function (_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
12881ModalTitle_ModalTitle.propTypes = ModalTitle_propTypes;
12882ModalTitle_ModalTitle.defaultProps = ModalTitle_defaultProps;
12883/* harmony default export */ var src_ModalTitle = (bootstrapUtils_bsClass('modal-title', ModalTitle_ModalTitle));
12884// CONCATENATED MODULE: ./src/Modal.js
12885
12886
12887
12888
12889var 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
12912var Modal_propTypes = _extends({}, Modal_default.a.propTypes, src_ModalDialog.propTypes, {
12913 /**
12914 * Include a backdrop component. Specify 'static' for a backdrop that doesn't
12915 * trigger an "onHide" when clicked.
12916 */
12917 backdrop: prop_types_default.a.oneOf(['static', true, false]),
12918
12919 /**
12920 * Add an optional extra class name to .modal-backdrop
12921 * It could end up looking like class="modal-backdrop foo-modal-backdrop in".
12922 */
12923 backdropClassName: prop_types_default.a.string,
12924
12925 /**
12926 * Close the modal when escape key is pressed
12927 */
12928 keyboard: prop_types_default.a.bool,
12929
12930 /**
12931 * Open and close the Modal with a slide and fade animation.
12932 */
12933 animation: prop_types_default.a.bool,
12934
12935 /**
12936 * A Component type that provides the modal content Markup. This is a useful
12937 * prop when you want to use your own styles and markup to create a custom
12938 * modal component.
12939 */
12940 dialogComponentClass: elementType_default.a,
12941
12942 /**
12943 * When `true` The modal will automatically shift focus to itself when it
12944 * opens, and replace it to the last focused element when it closes.
12945 * Generally this should never be set to false as it makes the Modal less
12946 * accessible to assistive technologies, like screen-readers.
12947 */
12948 autoFocus: prop_types_default.a.bool,
12949
12950 /**
12951 * When `true` The modal will prevent focus from leaving the Modal while
12952 * open. Consider leaving the default value here, as it is necessary to make
12953 * the Modal work well with assistive technologies, such as screen readers.
12954 */
12955 enforceFocus: prop_types_default.a.bool,
12956
12957 /**
12958 * When `true` The modal will restore focus to previously focused element once
12959 * modal is hidden
12960 */
12961 restoreFocus: prop_types_default.a.bool,
12962
12963 /**
12964 * When `true` The modal will show itself.
12965 */
12966 show: prop_types_default.a.bool,
12967
12968 /**
12969 * A callback fired when the header closeButton or non-static backdrop is
12970 * clicked. Required if either are specified.
12971 */
12972 onHide: prop_types_default.a.func,
12973
12974 /**
12975 * Callback fired before the Modal transitions in
12976 */
12977 onEnter: prop_types_default.a.func,
12978
12979 /**
12980 * Callback fired as the Modal begins to transition in
12981 */
12982 onEntering: prop_types_default.a.func,
12983
12984 /**
12985 * Callback fired after the Modal finishes transitioning in
12986 */
12987 onEntered: prop_types_default.a.func,
12988
12989 /**
12990 * Callback fired right before the Modal transitions out
12991 */
12992 onExit: prop_types_default.a.func,
12993
12994 /**
12995 * Callback fired as the Modal begins to transition out
12996 */
12997 onExiting: prop_types_default.a.func,
12998
12999 /**
13000 * Callback fired after the Modal finishes transitioning out
13001 */
13002 onExited: prop_types_default.a.func,
13003
13004 /**
13005 * @private
13006 */
13007 container: Modal_default.a.propTypes.container
13008});
13009
13010var Modal_defaultProps = _extends({}, Modal_default.a.defaultProps, {
13011 animation: true,
13012 dialogComponentClass: src_ModalDialog
13013});
13014
13015var Modal_childContextTypes = {
13016 $bs_modal: prop_types_default.a.shape({
13017 onHide: prop_types_default.a.func
13018 })
13019};
13020/* eslint-disable no-use-before-define, react/no-multi-comp */
13021
13022function 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
13033function 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/* eslint-enable no-use-before-define */
13044
13045
13046var Modal_Modal =
13047/*#__PURE__*/
13048function (_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 // Clean up the listener if we need to.
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 // FIXME: This should work even when animation is disabled.
13095 events_default.a.on(window, 'resize', this.handleWindowResize);
13096 this.updateStyle();
13097 };
13098
13099 _proto.handleExited = function handleExited() {
13100 // FIXME: This should work even when animation is disabled.
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
13176Modal_Modal.propTypes = Modal_propTypes;
13177Modal_Modal.defaultProps = Modal_defaultProps;
13178Modal_Modal.childContextTypes = Modal_childContextTypes;
13179Modal_Modal.Body = src_ModalBody;
13180Modal_Modal.Header = src_ModalHeader;
13181Modal_Modal.Title = src_ModalTitle;
13182Modal_Modal.Footer = src_ModalFooter;
13183Modal_Modal.Dialog = src_ModalDialog;
13184Modal_Modal.TRANSITION_DURATION = 300;
13185Modal_Modal.BACKDROP_TRANSITION_DURATION = 150;
13186/* harmony default export */ var src_Modal = (bootstrapUtils_bsClass('modal', bsSizes([Size.LARGE, Size.SMALL], Modal_Modal)));
13187// CONCATENATED MODULE: ./src/Nav.js
13188
13189
13190
13191var Nav_jsxFileName = "/Users/jason/src/react-bootstrap/src/Nav.js";
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201 // TODO: Should we expose `<NavItem>` as `<Nav.Item>`?
13202// TODO: This `bsStyle` is very unlike the others. Should we rename it?
13203// TODO: `pullRight` and `pullLeft` don't render right outside of `navbar`.
13204// Consider renaming or replacing them.
13205
13206var Nav_propTypes = {
13207 /**
13208 * Marks the NavItem with a matching `eventKey` as active. Has a
13209 * higher precedence over `activeHref`.
13210 */
13211 activeKey: prop_types_default.a.any,
13212
13213 /**
13214 * Marks the child NavItem with a matching `href` prop as active.
13215 */
13216 activeHref: prop_types_default.a.string,
13217
13218 /**
13219 * NavItems are be positioned vertically.
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 * A callback fired when a NavItem is selected.
13230 *
13231 * ```js
13232 * function (
13233 * Any eventKey,
13234 * SyntheticEvent event?
13235 * )
13236 * ```
13237 */
13238 onSelect: prop_types_default.a.func,
13239
13240 /**
13241 * ARIA role for the Nav, in the context of a TabContainer, the default will
13242 * be set to "tablist", but can be overridden by the Nav when set explicitly.
13243 *
13244 * When the role is set to "tablist" NavItem focus is managed according to
13245 * the ARIA authoring practices for tabs:
13246 * https://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#tabpanel
13247 */
13248 role: prop_types_default.a.string,
13249
13250 /**
13251 * Apply styling an alignment for use in a Navbar. This prop will be set
13252 * automatically when the Nav is used inside a Navbar.
13253 */
13254 navbar: prop_types_default.a.bool,
13255
13256 /**
13257 * Float the Nav to the right. When `navbar` is `true` the appropriate
13258 * contextual classes are added as well.
13259 */
13260 pullRight: prop_types_default.a.bool,
13261
13262 /**
13263 * Float the Nav to the left. When `navbar` is `true` the appropriate
13264 * contextual classes are added as well.
13265 */
13266 pullLeft: prop_types_default.a.bool
13267};
13268var Nav_defaultProps = {
13269 justified: false,
13270 pullRight: false,
13271 pullLeft: false,
13272 stacked: false
13273};
13274var 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
13287var Nav_Nav =
13288/*#__PURE__*/
13289function (_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 }); // This assumes the active child is not disabled.
13353
13354 var activeChildIndex = validChildren.indexOf(activeChild);
13355
13356 if (activeChildIndex === -1) {
13357 // Something has gone wrong. Select the first valid child we can find.
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 // No tab props here.
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 // It was a different key; don't handle this keypress.
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; // Accessed via this.getActiveProps().
13474
13475 delete props.activeHref; // Accessed via this.getActiveProps().
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
13525Nav_Nav.propTypes = Nav_propTypes;
13526Nav_Nav.defaultProps = Nav_defaultProps;
13527Nav_Nav.contextTypes = Nav_contextTypes;
13528/* harmony default export */ var src_Nav = (bootstrapUtils_bsClass('nav', bsStyles(['tabs', 'pills'], Nav_Nav)));
13529// CONCATENATED MODULE: ./src/NavbarBrand.js
13530
13531
13532
13533var NavbarBrand_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavbarBrand.js";
13534
13535
13536
13537
13538var NavbarBrand_contextTypes = {
13539 $bs_navbar: prop_types_default.a.shape({
13540 bsClass: prop_types_default.a.string
13541 })
13542};
13543
13544var NavbarBrand_NavbarBrand =
13545/*#__PURE__*/
13546function (_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
13585NavbarBrand_NavbarBrand.contextTypes = NavbarBrand_contextTypes;
13586/* harmony default export */ var src_NavbarBrand = (NavbarBrand_NavbarBrand);
13587// CONCATENATED MODULE: ./src/NavbarCollapse.js
13588
13589
13590
13591var NavbarCollapse_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavbarCollapse.js";
13592
13593
13594
13595
13596var 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
13603var NavbarCollapse_NavbarCollapse =
13604/*#__PURE__*/
13605function (_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
13644NavbarCollapse_NavbarCollapse.contextTypes = NavbarCollapse_contextTypes;
13645/* harmony default export */ var src_NavbarCollapse = (NavbarCollapse_NavbarCollapse);
13646// CONCATENATED MODULE: ./src/NavbarHeader.js
13647
13648
13649
13650var NavbarHeader_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavbarHeader.js";
13651
13652
13653
13654
13655var NavbarHeader_contextTypes = {
13656 $bs_navbar: prop_types_default.a.shape({
13657 bsClass: prop_types_default.a.string
13658 })
13659};
13660
13661var NavbarHeader_NavbarHeader =
13662/*#__PURE__*/
13663function (_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
13694NavbarHeader_NavbarHeader.contextTypes = NavbarHeader_contextTypes;
13695/* harmony default export */ var src_NavbarHeader = (NavbarHeader_NavbarHeader);
13696// CONCATENATED MODULE: ./src/NavbarToggle.js
13697
13698
13699
13700var NavbarToggle_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavbarToggle.js";
13701
13702
13703
13704
13705
13706var NavbarToggle_propTypes = {
13707 onClick: prop_types_default.a.func,
13708
13709 /**
13710 * The toggle content, if left empty it will render the default toggle (seen above).
13711 */
13712 children: prop_types_default.a.node
13713};
13714var 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
13722var NavbarToggle_NavbarToggle =
13723/*#__PURE__*/
13724function (_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
13801NavbarToggle_NavbarToggle.propTypes = NavbarToggle_propTypes;
13802NavbarToggle_NavbarToggle.contextTypes = NavbarToggle_contextTypes;
13803/* harmony default export */ var src_NavbarToggle = (NavbarToggle_NavbarToggle);
13804// CONCATENATED MODULE: ./src/Navbar.js
13805
13806
13807
13808
13809var Navbar_jsxFileName = "/Users/jason/src/react-bootstrap/src/Navbar.js";
13810// TODO: Remove this pragma once we upgrade eslint-config-airbnb.
13811
13812/* eslint-disable react/no-multi-comp */
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826var Navbar_propTypes = {
13827 /**
13828 * Create a fixed navbar along the top of the screen, that scrolls with the
13829 * page
13830 */
13831 fixedTop: prop_types_default.a.bool,
13832
13833 /**
13834 * Create a fixed navbar along the bottom of the screen, that scrolls with
13835 * the page
13836 */
13837 fixedBottom: prop_types_default.a.bool,
13838
13839 /**
13840 * Create a full-width navbar that scrolls away with the page
13841 */
13842 staticTop: prop_types_default.a.bool,
13843
13844 /**
13845 * An alternative dark visual style for the Navbar
13846 */
13847 inverse: prop_types_default.a.bool,
13848
13849 /**
13850 * Allow the Navbar to fluidly adjust to the page or container width, instead
13851 * of at the predefined screen breakpoints
13852 */
13853 fluid: prop_types_default.a.bool,
13854
13855 /**
13856 * Set a custom element for this component.
13857 */
13858 componentClass: elementType_default.a,
13859
13860 /**
13861 * A callback fired when the `<Navbar>` body collapses or expands. Fired when
13862 * a `<Navbar.Toggle>` is clicked and called with the new `expanded`
13863 * boolean value.
13864 *
13865 * @controllable expanded
13866 */
13867 onToggle: prop_types_default.a.func,
13868
13869 /**
13870 * A callback fired when a descendant of a child `<Nav>` is selected. Should
13871 * be used to execute complex closing or other miscellaneous actions desired
13872 * after selecting a descendant of `<Nav>`. Does nothing if no `<Nav>` or `<Nav>`
13873 * descendants exist. The callback is called with an eventKey, which is a
13874 * prop from the selected `<Nav>` descendant, and an event.
13875 *
13876 * ```js
13877 * function (
13878 * Any eventKey,
13879 * SyntheticEvent event?
13880 * )
13881 * ```
13882 *
13883 * For basic closing behavior after all `<Nav>` descendant onSelect events in
13884 * mobile viewports, try using collapseOnSelect.
13885 *
13886 * Note: If you are manually closing the navbar using this `OnSelect` prop,
13887 * ensure that you are setting `expanded` to false and not *toggling* between
13888 * true and false.
13889 */
13890 onSelect: prop_types_default.a.func,
13891
13892 /**
13893 * Sets `expanded` to `false` after the onSelect event of a descendant of a
13894 * child `<Nav>`. Does nothing if no `<Nav>` or `<Nav>` descendants exist.
13895 *
13896 * The onSelect callback should be used instead for more complex operations
13897 * that need to be executed after the `select` event of `<Nav>` descendants.
13898 */
13899 collapseOnSelect: prop_types_default.a.bool,
13900
13901 /**
13902 * Explicitly set the visiblity of the navbar body
13903 *
13904 * @controllable onToggle
13905 */
13906 expanded: prop_types_default.a.bool,
13907 role: prop_types_default.a.string
13908};
13909var Navbar_defaultProps = {
13910 componentClass: 'nav',
13911 fixedTop: false,
13912 fixedBottom: false,
13913 staticTop: false,
13914 inverse: false,
13915 fluid: false,
13916 collapseOnSelect: false
13917};
13918var 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
13927var Navbar_Navbar =
13928/*#__PURE__*/
13929function (_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]; // will result in some false positives but that seems better
13993 // than false negatives. strict `undefined` check allows explicit
13994 // "nulling" of the role if the user really doesn't want one
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
14027Navbar_Navbar.propTypes = Navbar_propTypes;
14028Navbar_Navbar.defaultProps = Navbar_defaultProps;
14029Navbar_Navbar.childContextTypes = Navbar_childContextTypes;
14030bootstrapUtils_bsClass('navbar', Navbar_Navbar);
14031var UncontrollableNavbar = uncontrollable_default()(Navbar_Navbar, {
14032 expanded: 'onToggle'
14033});
14034
14035function 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
14076UncontrollableNavbar.Brand = src_NavbarBrand;
14077UncontrollableNavbar.Header = src_NavbarHeader;
14078UncontrollableNavbar.Toggle = src_NavbarToggle;
14079UncontrollableNavbar.Collapse = src_NavbarCollapse;
14080UncontrollableNavbar.Form = createSimpleWrapper('div', 'form', 'NavbarForm');
14081UncontrollableNavbar.Text = createSimpleWrapper('p', 'text', 'NavbarText');
14082UncontrollableNavbar.Link = createSimpleWrapper('a', 'link', 'NavbarLink'); // Set bsStyles here so they can be overridden.
14083
14084/* harmony default export */ var src_Navbar = (bsStyles([Style.DEFAULT, Style.INVERSE], Style.DEFAULT, UncontrollableNavbar));
14085// CONCATENATED MODULE: ./src/NavDropdown.js
14086
14087
14088
14089var NavDropdown_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavDropdown.js";
14090
14091
14092
14093
14094
14095
14096
14097var NavDropdown_propTypes = _extends({}, src_Dropdown.propTypes, {
14098 // Toggle props.
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 // Override generated docs from <Dropdown>.
14105
14106 /**
14107 * @private
14108 */
14109 children: prop_types_default.a.node
14110});
14111
14112var NavDropdown_NavDropdown =
14113/*#__PURE__*/
14114function (_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; // Accessed via this.isActive().
14155
14156 delete props.eventKey; // Accessed via this.isActive().
14157
14158 var _splitComponentProps = splitComponentProps(props, src_Dropdown.ControlledComponent),
14159 dropdownProps = _splitComponentProps[0],
14160 toggleProps = _splitComponentProps[1]; // Unlike for the other dropdowns, styling needs to go to the `<Dropdown>`
14161 // rather than the `<Dropdown.Toggle>`.
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
14198NavDropdown_NavDropdown.propTypes = NavDropdown_propTypes;
14199/* harmony default export */ var src_NavDropdown = (NavDropdown_NavDropdown);
14200// CONCATENATED MODULE: ./src/NavItem.js
14201
14202
14203
14204
14205var NavItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/NavItem.js";
14206
14207
14208
14209
14210
14211var 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};
14220var NavItem_defaultProps = {
14221 active: false,
14222 disabled: false
14223};
14224
14225var NavItem_NavItem =
14226/*#__PURE__*/
14227function (_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; // These are injected down by `<Nav>` for building `<SubNav>`s.
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
14300NavItem_NavItem.propTypes = NavItem_propTypes;
14301NavItem_NavItem.defaultProps = NavItem_defaultProps;
14302/* harmony default export */ var src_NavItem = (NavItem_NavItem);
14303// EXTERNAL MODULE: ./node_modules/react-overlays/lib/Overlay.js
14304var lib_Overlay = __webpack_require__(55);
14305var Overlay_default = /*#__PURE__*/__webpack_require__.n(lib_Overlay);
14306
14307// CONCATENATED MODULE: ./src/Overlay.js
14308
14309
14310
14311var Overlay_jsxFileName = "/Users/jason/src/react-bootstrap/src/Overlay.js";
14312
14313
14314
14315
14316
14317
14318
14319var Overlay_propTypes = _extends({}, Overlay_default.a.propTypes, {
14320 /**
14321 * Set the visibility of the Overlay
14322 */
14323 show: prop_types_default.a.bool,
14324
14325 /**
14326 * Specify whether the overlay should trigger onHide when the user clicks outside the overlay
14327 */
14328 rootClose: prop_types_default.a.bool,
14329
14330 /**
14331 * A callback invoked by the overlay when it wishes to be hidden. Required if
14332 * `rootClose` is specified.
14333 */
14334 onHide: prop_types_default.a.func,
14335
14336 /**
14337 * Use animation
14338 */
14339 animation: prop_types_default.a.oneOfType([prop_types_default.a.bool, elementType_default.a]),
14340
14341 /**
14342 * Callback fired before the Overlay transitions in
14343 */
14344 onEnter: prop_types_default.a.func,
14345
14346 /**
14347 * Callback fired as the Overlay begins to transition in
14348 */
14349 onEntering: prop_types_default.a.func,
14350
14351 /**
14352 * Callback fired after the Overlay finishes transitioning in
14353 */
14354 onEntered: prop_types_default.a.func,
14355
14356 /**
14357 * Callback fired right before the Overlay transitions out
14358 */
14359 onExit: prop_types_default.a.func,
14360
14361 /**
14362 * Callback fired as the Overlay begins to transition out
14363 */
14364 onExiting: prop_types_default.a.func,
14365
14366 /**
14367 * Callback fired after the Overlay finishes transitioning out
14368 */
14369 onExited: prop_types_default.a.func,
14370
14371 /**
14372 * Sets the direction of the Overlay.
14373 */
14374 placement: prop_types_default.a.oneOf(['top', 'right', 'bottom', 'left'])
14375});
14376
14377var Overlay_defaultProps = {
14378 animation: src_Fade,
14379 rootClose: false,
14380 show: false,
14381 placement: 'right'
14382};
14383
14384var Overlay_Overlay =
14385/*#__PURE__*/
14386function (_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
14425Overlay_Overlay.propTypes = Overlay_propTypes;
14426Overlay_Overlay.defaultProps = Overlay_defaultProps;
14427/* harmony default export */ var src_Overlay = (Overlay_Overlay);
14428// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js
14429var is_array = __webpack_require__(79);
14430var is_array_default = /*#__PURE__*/__webpack_require__.n(is_array);
14431
14432// CONCATENATED MODULE: ./src/OverlayTrigger.js
14433
14434
14435
14436
14437
14438var OverlayTrigger_jsxFileName = "/Users/jason/src/react-bootstrap/src/OverlayTrigger.js";
14439
14440
14441
14442
14443
14444
14445
14446/**
14447 * Check if value one is inside or equal to the of value
14448 *
14449 * @param {string} one
14450 * @param {string|array} of
14451 * @returns {boolean}
14452 */
14453
14454function isOneOf(one, of) {
14455 if (is_array_default()(of)) {
14456 return of.indexOf(one) >= 0;
14457 }
14458
14459 return one === of;
14460}
14461
14462var triggerType = prop_types_default.a.oneOf(['click', 'hover', 'focus']);
14463
14464var OverlayTrigger_propTypes = _extends({}, src_Overlay.propTypes, {
14465 /**
14466 * Specify which action or actions trigger Overlay visibility
14467 */
14468 trigger: prop_types_default.a.oneOfType([triggerType, prop_types_default.a.arrayOf(triggerType)]),
14469
14470 /**
14471 * A millisecond delay amount to show and hide the Overlay once triggered
14472 */
14473 delay: prop_types_default.a.number,
14474
14475 /**
14476 * A millisecond delay amount before showing the Overlay once triggered.
14477 */
14478 delayShow: prop_types_default.a.number,
14479
14480 /**
14481 * A millisecond delay amount before hiding the Overlay once triggered.
14482 */
14483 delayHide: prop_types_default.a.number,
14484 // FIXME: This should be `defaultShow`.
14485
14486 /**
14487 * The initial visibility state of the Overlay. For more nuanced visibility
14488 * control, consider using the Overlay component directly.
14489 */
14490 defaultOverlayShown: prop_types_default.a.bool,
14491
14492 /**
14493 * An element or text to overlay next to the target.
14494 */
14495 overlay: prop_types_default.a.node.isRequired,
14496
14497 /**
14498 * @private
14499 */
14500 onBlur: prop_types_default.a.func,
14501
14502 /**
14503 * @private
14504 */
14505 onClick: prop_types_default.a.func,
14506
14507 /**
14508 * @private
14509 */
14510 onFocus: prop_types_default.a.func,
14511
14512 /**
14513 * @private
14514 */
14515 onMouseOut: prop_types_default.a.func,
14516
14517 /**
14518 * @private
14519 */
14520 onMouseOver: prop_types_default.a.func,
14521 // Overridden props from `<Overlay>`.
14522
14523 /**
14524 * @private
14525 */
14526 target: prop_types_default.a.oneOf([null]),
14527
14528 /**
14529 * @private
14530 */
14531 onHide: prop_types_default.a.oneOf([null]),
14532
14533 /**
14534 * @private
14535 */
14536 show: prop_types_default.a.oneOf([null])
14537});
14538
14539var OverlayTrigger_defaultProps = {
14540 defaultOverlayShown: false,
14541 trigger: ['hover', 'focus']
14542};
14543
14544var OverlayTrigger_OverlayTrigger =
14545/*#__PURE__*/
14546function (_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 }; // Simple implementation of mouseEnter and mouseLeave.
14648 // React's built version is broken: https://github.com/facebook/react/issues/4251
14649 // for cases when the trigger is disabled and mouseOut/Over can cause flicker
14650 // moving from one child element to another.
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 } // FIXME: The logic here for passing through handlers on this component is
14722 // inconsistent. We shouldn't be passing any of these props through.
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
14749OverlayTrigger_OverlayTrigger.propTypes = OverlayTrigger_propTypes;
14750OverlayTrigger_OverlayTrigger.defaultProps = OverlayTrigger_defaultProps;
14751/* harmony default export */ var src_OverlayTrigger = (OverlayTrigger_OverlayTrigger);
14752// CONCATENATED MODULE: ./src/PageHeader.js
14753
14754
14755
14756var PageHeader_jsxFileName = "/Users/jason/src/react-bootstrap/src/PageHeader.js";
14757
14758
14759
14760
14761var PageHeader_PageHeader =
14762/*#__PURE__*/
14763function (_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/* harmony default export */ var src_PageHeader = (bootstrapUtils_bsClass('page-header', PageHeader_PageHeader));
14803// CONCATENATED MODULE: ./src/PagerItem.js
14804
14805
14806
14807
14808var PagerItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/PagerItem.js";
14809
14810
14811
14812
14813
14814var 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};
14822var PagerItem_defaultProps = {
14823 disabled: false,
14824 previous: false,
14825 next: false
14826};
14827
14828var PagerItem_PagerItem =
14829/*#__PURE__*/
14830function (_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
14897PagerItem_PagerItem.propTypes = PagerItem_propTypes;
14898PagerItem_PagerItem.defaultProps = PagerItem_defaultProps;
14899/* harmony default export */ var src_PagerItem = (PagerItem_PagerItem);
14900// CONCATENATED MODULE: ./src/utils/deprecationWarning.js
14901
14902
14903var warned = {};
14904
14905function 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
14926deprecationWarning.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 /*#__PURE__*/
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/* harmony default export */ var utils_deprecationWarning = (deprecationWarning);
14962function _resetWarned() {
14963 warned = {};
14964}
14965// CONCATENATED MODULE: ./src/PageItem.js
14966
14967
14968/* harmony default export */ var PageItem = (utils_deprecationWarning.wrapper(src_PagerItem, '`<PageItem>`', '`<Pager.Item>`'));
14969// CONCATENATED MODULE: ./src/Pager.js
14970
14971
14972
14973var Pager_jsxFileName = "/Users/jason/src/react-bootstrap/src/Pager.js";
14974
14975
14976
14977
14978
14979
14980
14981var Pager_propTypes = {
14982 onSelect: prop_types_default.a.func
14983};
14984
14985var Pager_Pager =
14986/*#__PURE__*/
14987function (_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
15025Pager_Pager.propTypes = Pager_propTypes;
15026Pager_Pager.Item = src_PagerItem;
15027/* harmony default export */ var src_Pager = (bootstrapUtils_bsClass('pager', Pager_Pager));
15028// CONCATENATED MODULE: ./src/PaginationItem.js
15029
15030
15031
15032var PaginationItem_jsxFileName = "/Users/jason/src/react-bootstrap/src/PaginationItem.js";
15033
15034/* eslint-disable react/no-multi-comp */
15035
15036
15037
15038
15039var 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};
15047var PaginationItem_defaultProps = {
15048 active: false,
15049 disabled: false,
15050 activeLabel: '(current)'
15051};
15052function 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}
15090PaginationItem.propTypes = PaginationItem_propTypes;
15091PaginationItem.defaultProps = PaginationItem_defaultProps;
15092
15093function createButton(name, defaultValue, label) {
15094 var _class, _temp;
15095
15096 if (label === void 0) {
15097 label = name;
15098 }
15099
15100 return _temp = _class =
15101 /*#__PURE__*/
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
15145var First = createButton('First', "\xAB");
15146var Prev = createButton('Prev', "\u2039");
15147var Ellipsis = createButton('Ellipsis', "\u2026", 'More');
15148var Next = createButton('Next', "\u203A");
15149var Last = createButton('Last', "\xBB");
15150// CONCATENATED MODULE: ./src/Pagination.js
15151
15152
15153
15154var Pagination_jsxFileName = "/Users/jason/src/react-bootstrap/src/Pagination.js";
15155
15156
15157
15158
15159
15160var Pagination_Pagination =
15161/*#__PURE__*/
15162function (_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
15195bootstrapUtils_bsClass('pagination', Pagination_Pagination);
15196Pagination_Pagination.First = First;
15197Pagination_Pagination.Prev = Prev;
15198Pagination_Pagination.Ellipsis = Ellipsis;
15199Pagination_Pagination.Item = PaginationItem;
15200Pagination_Pagination.Next = Next;
15201Pagination_Pagination.Last = Last;
15202/* harmony default export */ var src_Pagination = (Pagination_Pagination);
15203// CONCATENATED MODULE: ./src/PanelCollapse.js
15204
15205
15206var PanelCollapse_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelCollapse.js";
15207
15208
15209
15210
15211var PanelCollapse_propTypes = {
15212 /**
15213 * Callback fired before the component expands
15214 */
15215 onEnter: prop_types_default.a.func,
15216
15217 /**
15218 * Callback fired after the component starts to expand
15219 */
15220 onEntering: prop_types_default.a.func,
15221
15222 /**
15223 * Callback fired after the component has expanded
15224 */
15225 onEntered: prop_types_default.a.func,
15226
15227 /**
15228 * Callback fired before the component collapses
15229 */
15230 onExit: prop_types_default.a.func,
15231
15232 /**
15233 * Callback fired after the component starts to collapse
15234 */
15235 onExiting: prop_types_default.a.func,
15236
15237 /**
15238 * Callback fired after the component has collapsed
15239 */
15240 onExited: prop_types_default.a.func
15241};
15242var 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
15251var PanelCollapse_PanelCollapse =
15252/*#__PURE__*/
15253function (_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
15304PanelCollapse_PanelCollapse.propTypes = PanelCollapse_propTypes;
15305PanelCollapse_PanelCollapse.contextTypes = PanelCollapse_contextTypes;
15306/* harmony default export */ var src_PanelCollapse = (bootstrapUtils_bsClass('panel', PanelCollapse_PanelCollapse));
15307// CONCATENATED MODULE: ./src/PanelBody.js
15308
15309
15310var PanelBody_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelBody.js";
15311
15312
15313
15314
15315
15316var PanelBody_propTypes = {
15317 /**
15318 * A convenience prop that renders a Collapse component around the Body for
15319 * situations when the parent Panel only contains a single Panel.Body child.
15320 *
15321 * renders:
15322 * ```jsx
15323 * <Panel.Collapse>
15324 * <Panel.Body />
15325 * </Panel.Collapse>
15326 * ```
15327 */
15328 collapsible: prop_types_default.a.bool.isRequired
15329};
15330var PanelBody_defaultProps = {
15331 collapsible: false
15332};
15333var PanelBody_contextTypes = {
15334 $bs_panel: prop_types_default.a.shape({
15335 bsClass: prop_types_default.a.string
15336 })
15337};
15338
15339var PanelBody_PanelBody =
15340/*#__PURE__*/
15341function (_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
15389PanelBody_PanelBody.propTypes = PanelBody_propTypes;
15390PanelBody_PanelBody.defaultProps = PanelBody_defaultProps;
15391PanelBody_PanelBody.contextTypes = PanelBody_contextTypes;
15392/* harmony default export */ var src_PanelBody = (bootstrapUtils_bsClass('panel', PanelBody_PanelBody));
15393// EXTERNAL MODULE: ./node_modules/react-prop-types/lib/elementType.js
15394var lib_elementType = __webpack_require__(23);
15395var lib_elementType_default = /*#__PURE__*/__webpack_require__.n(lib_elementType);
15396
15397// CONCATENATED MODULE: ./src/PanelHeading.js
15398
15399
15400
15401var PanelHeading_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelHeading.js";
15402
15403
15404
15405
15406
15407var PanelHeading_propTypes = {
15408 componentClass: lib_elementType_default.a
15409};
15410var PanelHeading_defaultProps = {
15411 componentClass: 'div'
15412};
15413var 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
15420var PanelHeading_PanelHeading =
15421/*#__PURE__*/
15422function (_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
15466PanelHeading_PanelHeading.propTypes = PanelHeading_propTypes;
15467PanelHeading_PanelHeading.defaultProps = PanelHeading_defaultProps;
15468PanelHeading_PanelHeading.contextTypes = PanelHeading_contextTypes;
15469/* harmony default export */ var src_PanelHeading = (bootstrapUtils_bsClass('panel', PanelHeading_PanelHeading));
15470// CONCATENATED MODULE: ./src/PanelToggle.js
15471
15472
15473
15474
15475var PanelToggle_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelToggle.js";
15476
15477
15478
15479
15480
15481
15482var PanelToggle_propTypes = {
15483 /**
15484 * only here to satisfy linting, just the html onClick handler.
15485 *
15486 * @private
15487 */
15488 onClick: prop_types_default.a.func,
15489
15490 /**
15491 * You can use a custom element for this component
15492 */
15493 componentClass: lib_elementType_default.a
15494};
15495var PanelToggle_defaultProps = {
15496 componentClass: src_SafeAnchor
15497};
15498var 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
15506var PanelToggle_PanelToggle =
15507/*#__PURE__*/
15508function (_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
15566PanelToggle_PanelToggle.propTypes = PanelToggle_propTypes;
15567PanelToggle_PanelToggle.defaultProps = PanelToggle_defaultProps;
15568PanelToggle_PanelToggle.contextTypes = PanelToggle_contextTypes;
15569/* harmony default export */ var src_PanelToggle = (PanelToggle_PanelToggle);
15570// CONCATENATED MODULE: ./src/PanelTitle.js
15571
15572
15573
15574var PanelTitle_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelTitle.js";
15575
15576
15577
15578
15579
15580
15581var PanelTitle_propTypes = {
15582 componentClass: lib_elementType_default.a,
15583
15584 /**
15585 * A convenience prop that renders the Panel.Title as a panel collapse toggle component
15586 * for the common use-case.
15587 */
15588 toggle: prop_types_default.a.bool
15589};
15590var PanelTitle_contextTypes = {
15591 $bs_panel: prop_types_default.a.shape({
15592 bsClass: prop_types_default.a.string
15593 })
15594};
15595var PanelTitle_defaultProps = {
15596 componentClass: 'div'
15597};
15598
15599var PanelTitle_PanelTitle =
15600/*#__PURE__*/
15601function (_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
15650PanelTitle_PanelTitle.propTypes = PanelTitle_propTypes;
15651PanelTitle_PanelTitle.defaultProps = PanelTitle_defaultProps;
15652PanelTitle_PanelTitle.contextTypes = PanelTitle_contextTypes;
15653/* harmony default export */ var src_PanelTitle = (bootstrapUtils_bsClass('panel', PanelTitle_PanelTitle));
15654// CONCATENATED MODULE: ./src/PanelFooter.js
15655
15656
15657var PanelFooter_jsxFileName = "/Users/jason/src/react-bootstrap/src/PanelFooter.js";
15658
15659
15660
15661
15662var PanelFooter_contextTypes = {
15663 $bs_panel: prop_types_default.a.shape({
15664 bsClass: prop_types_default.a.string
15665 })
15666};
15667
15668var PanelFooter_PanelFooter =
15669/*#__PURE__*/
15670function (_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
15705PanelFooter_PanelFooter.contextTypes = PanelFooter_contextTypes;
15706/* harmony default export */ var src_PanelFooter = (bootstrapUtils_bsClass('panel', PanelFooter_PanelFooter));
15707// CONCATENATED MODULE: ./src/Panel.js
15708
15709
15710
15711
15712var Panel_jsxFileName = "/Users/jason/src/react-bootstrap/src/Panel.js";
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726var has = Object.prototype.hasOwnProperty;
15727
15728var defaultGetId = function defaultGetId(id, type) {
15729 return id ? id + "--" + type : null;
15730};
15731
15732var Panel_propTypes = {
15733 /**
15734 * Controls the collapsed/expanded state ofthe Panel. Requires
15735 * a `Panel.Collapse` or `<Panel.Body collapsible>` child component
15736 * in order to actually animate out or in.
15737 *
15738 * @controllable onToggle
15739 */
15740 expanded: prop_types_default.a.bool,
15741
15742 /**
15743 * A callback fired when the collapse state changes.
15744 *
15745 * @controllable expanded
15746 */
15747 onToggle: prop_types_default.a.func,
15748 eventKey: prop_types_default.a.any,
15749
15750 /**
15751 * An HTML `id` attribute uniquely identifying the Panel component.
15752 */
15753 id: prop_types_default.a.string
15754};
15755var 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};
15762var 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
15772var Panel_Panel =
15773/*#__PURE__*/
15774function (_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
15860Panel_Panel.propTypes = Panel_propTypes;
15861Panel_Panel.contextTypes = Panel_contextTypes;
15862Panel_Panel.childContextTypes = Panel_childContextTypes;
15863var UncontrolledPanel = uncontrollable_default()(bootstrapUtils_bsClass('panel', bsStyles(values_default()(State).concat([Style.DEFAULT, Style.PRIMARY]), Style.DEFAULT, Panel_Panel)), {
15864 expanded: 'onToggle'
15865});
15866
15867assign_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/* harmony default export */ var src_Panel = (UncontrolledPanel);
15877// CONCATENATED MODULE: ./src/Popover.js
15878
15879
15880
15881var Popover_jsxFileName = "/Users/jason/src/react-bootstrap/src/Popover.js";
15882
15883
15884
15885
15886
15887var Popover_propTypes = {
15888 /**
15889 * An html id attribute, necessary for accessibility
15890 * @type {string}
15891 * @required
15892 */
15893 id: isRequiredForA11y_default()(prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number])),
15894
15895 /**
15896 * Sets the direction the Popover is positioned towards.
15897 */
15898 placement: prop_types_default.a.oneOf(['top', 'right', 'bottom', 'left']),
15899
15900 /**
15901 * The "top" position value for the Popover.
15902 */
15903 positionTop: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
15904
15905 /**
15906 * The "left" position value for the Popover.
15907 */
15908 positionLeft: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
15909
15910 /**
15911 * The "top" position value for the Popover arrow.
15912 */
15913 arrowOffsetTop: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
15914
15915 /**
15916 * The "left" position value for the Popover arrow.
15917 */
15918 arrowOffsetLeft: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
15919
15920 /**
15921 * Title content
15922 */
15923 title: prop_types_default.a.node
15924};
15925var Popover_defaultProps = {
15926 placement: 'right'
15927};
15928
15929var Popover_Popover =
15930/*#__PURE__*/
15931function (_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
16008Popover_Popover.propTypes = Popover_propTypes;
16009Popover_Popover.defaultProps = Popover_defaultProps;
16010/* harmony default export */ var src_Popover = (bootstrapUtils_bsClass('popover', Popover_Popover));
16011// CONCATENATED MODULE: ./src/ProgressBar.js
16012
16013
16014
16015
16016var ProgressBar_jsxFileName = "/Users/jason/src/react-bootstrap/src/ProgressBar.js";
16017
16018
16019
16020
16021
16022
16023var ROUND_PRECISION = 1000;
16024/**
16025 * Validate that children, if any, are instances of `<ProgressBar>`.
16026 */
16027
16028function 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 * Compare types in a way that works with libraries that patch and proxy
16042 * components like react-hot-loader.
16043 *
16044 * see https://github.com/gaearon/react-hot-loader#checking-element-types
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
16062var 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 * @private
16074 */
16075 isChild: prop_types_default.a.bool
16076};
16077var ProgressBar_defaultProps = {
16078 min: 0,
16079 max: 100,
16080 active: false,
16081 isChild: false,
16082 srOnly: false,
16083 striped: false
16084};
16085
16086function getPercentage(now, min, max) {
16087 var percentage = (now - min) / (max - min) * 100;
16088 return Math.round(percentage * ROUND_PRECISION) / ROUND_PRECISION;
16089}
16090
16091var ProgressBar_ProgressBar =
16092/*#__PURE__*/
16093function (_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
16197ProgressBar_ProgressBar.propTypes = ProgressBar_propTypes;
16198ProgressBar_ProgressBar.defaultProps = ProgressBar_defaultProps;
16199/* harmony default export */ var src_ProgressBar = (bootstrapUtils_bsClass('progress-bar', bsStyles(values_default()(State), ProgressBar_ProgressBar)));
16200// CONCATENATED MODULE: ./src/Radio.js
16201
16202
16203
16204var Radio_jsxFileName = "/Users/jason/src/react-bootstrap/src/Radio.js";
16205
16206/* eslint-disable jsx-a11y/label-has-for */
16207
16208
16209
16210
16211
16212var 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 * Only valid if `inline` is not set.
16219 */
16220 validationState: prop_types_default.a.oneOf(['success', 'warning', 'error', null]),
16221
16222 /**
16223 * Attaches a ref to the `<input>` element. Only functions can be used here.
16224 *
16225 * ```js
16226 * <Radio inputRef={ref => { this.input = ref; }} />
16227 * ```
16228 */
16229 inputRef: prop_types_default.a.func
16230};
16231var Radio_defaultProps = {
16232 inline: false,
16233 disabled: false,
16234 title: ''
16235};
16236
16237var Radio_Radio =
16238/*#__PURE__*/
16239function (_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); // Use a warning here instead of in propTypes to get better-looking
16279 // generated documentation.
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
16324Radio_Radio.propTypes = Radio_propTypes;
16325Radio_Radio.defaultProps = Radio_defaultProps;
16326/* harmony default export */ var src_Radio = (bootstrapUtils_bsClass('radio', Radio_Radio));
16327// CONCATENATED MODULE: ./src/ResponsiveEmbed.js
16328
16329
16330
16331var ResponsiveEmbed_jsxFileName = "/Users/jason/src/react-bootstrap/src/ResponsiveEmbed.js";
16332
16333
16334
16335
16336 // TODO: This should probably take a single `aspectRatio` prop.
16337
16338var ResponsiveEmbed_propTypes = {
16339 /**
16340 * This component requires a single child element
16341 */
16342 children: prop_types_default.a.element.isRequired,
16343
16344 /**
16345 * 16by9 aspect ratio
16346 */
16347 a16by9: prop_types_default.a.bool,
16348
16349 /**
16350 * 4by3 aspect ratio
16351 */
16352 a4by3: prop_types_default.a.bool
16353};
16354var ResponsiveEmbed_defaultProps = {
16355 a16by9: false,
16356 a4by3: false
16357};
16358
16359var ResponsiveEmbed_ResponsiveEmbed =
16360/*#__PURE__*/
16361function (_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
16404ResponsiveEmbed_ResponsiveEmbed.propTypes = ResponsiveEmbed_propTypes;
16405ResponsiveEmbed_ResponsiveEmbed.defaultProps = ResponsiveEmbed_defaultProps;
16406/* harmony default export */ var src_ResponsiveEmbed = (bootstrapUtils_bsClass('embed-responsive', ResponsiveEmbed_ResponsiveEmbed));
16407// CONCATENATED MODULE: ./src/Row.js
16408
16409
16410
16411var Row_jsxFileName = "/Users/jason/src/react-bootstrap/src/Row.js";
16412
16413
16414
16415
16416var Row_propTypes = {
16417 componentClass: elementType_default.a
16418};
16419var Row_defaultProps = {
16420 componentClass: 'div'
16421};
16422
16423var Row_Row =
16424/*#__PURE__*/
16425function (_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
16458Row_Row.propTypes = Row_propTypes;
16459Row_Row.defaultProps = Row_defaultProps;
16460/* harmony default export */ var src_Row = (bootstrapUtils_bsClass('row', Row_Row));
16461// CONCATENATED MODULE: ./src/SplitToggle.js
16462
16463
16464var SplitToggle_jsxFileName = "/Users/jason/src/react-bootstrap/src/SplitToggle.js";
16465
16466
16467
16468var SplitToggle_SplitToggle =
16469/*#__PURE__*/
16470function (_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
16494SplitToggle_SplitToggle.defaultProps = src_DropdownToggle.defaultProps;
16495/* harmony default export */ var src_SplitToggle = (SplitToggle_SplitToggle);
16496// CONCATENATED MODULE: ./src/SplitButton.js
16497
16498
16499
16500var SplitButton_jsxFileName = "/Users/jason/src/react-bootstrap/src/SplitButton.js";
16501
16502
16503
16504
16505
16506
16507
16508var SplitButton_propTypes = _extends({}, src_Dropdown.propTypes, {
16509 // Toggle props.
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 * The content of the split button.
16517 */
16518 title: prop_types_default.a.node.isRequired,
16519
16520 /**
16521 * Accessible label for the toggle; the value of `title` if not specified.
16522 */
16523 toggleLabel: prop_types_default.a.string,
16524 // Override generated docs from <Dropdown>.
16525
16526 /**
16527 * @private
16528 */
16529 children: prop_types_default.a.node
16530});
16531
16532var SplitButton_SplitButton =
16533/*#__PURE__*/
16534function (_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
16594SplitButton_SplitButton.propTypes = SplitButton_propTypes;
16595SplitButton_SplitButton.Toggle = src_SplitToggle;
16596/* harmony default export */ var src_SplitButton = (SplitButton_SplitButton);
16597// CONCATENATED MODULE: ./src/TabContainer.js
16598
16599
16600
16601
16602
16603var TAB = 'tab';
16604var PANE = 'pane';
16605var TabContainer_idPropType = prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number]);
16606var TabContainer_propTypes = {
16607 /**
16608 * HTML id attribute, required if no `generateChildId` prop
16609 * is specified.
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 * A function that takes an `eventKey` and `type` and returns a unique id for
16631 * child tab `<NavItem>`s and `<TabPane>`s. The function _must_ be a pure
16632 * function, meaning it should always return the _same_ id for the same set
16633 * of inputs. The default value requires that an `id` to be set for the
16634 * `<TabContainer>`.
16635 *
16636 * The `type` argument will either be `"tab"` or `"pane"`.
16637 *
16638 * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}`
16639 */
16640 generateChildId: prop_types_default.a.func,
16641
16642 /**
16643 * A callback fired when a tab is selected.
16644 *
16645 * @controllable activeKey
16646 */
16647 onSelect: prop_types_default.a.func,
16648
16649 /**
16650 * The `eventKey` of the currently active tab.
16651 *
16652 * @controllable onSelect
16653 */
16654 activeKey: prop_types_default.a.any
16655};
16656var 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
16665var TabContainer_TabContainer =
16666/*#__PURE__*/
16667function (_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
16715TabContainer_TabContainer.propTypes = TabContainer_propTypes;
16716TabContainer_TabContainer.childContextTypes = TabContainer_childContextTypes;
16717/* harmony default export */ var src_TabContainer = (uncontrollable_default()(TabContainer_TabContainer, {
16718 activeKey: 'onSelect'
16719}));
16720// CONCATENATED MODULE: ./src/TabContent.js
16721
16722
16723
16724
16725var TabContent_jsxFileName = "/Users/jason/src/react-bootstrap/src/TabContent.js";
16726
16727
16728
16729
16730
16731var TabContent_propTypes = {
16732 componentClass: elementType_default.a,
16733
16734 /**
16735 * Sets a default animation strategy for all children `<TabPane>`s. Use
16736 * `false` to disable, `true` to enable the default `<Fade>` animation or
16737 * a react-transition-group v2 `<Transition/>` component.
16738 */
16739 animation: prop_types_default.a.oneOfType([prop_types_default.a.bool, elementType_default.a]),
16740
16741 /**
16742 * Wait until the first "enter" transition to mount tabs (add them to the DOM)
16743 */
16744 mountOnEnter: prop_types_default.a.bool,
16745
16746 /**
16747 * Unmount tabs (remove it from the DOM) when they are no longer visible
16748 */
16749 unmountOnExit: prop_types_default.a.bool
16750};
16751var TabContent_defaultProps = {
16752 componentClass: 'div',
16753 animation: true,
16754 mountOnEnter: false,
16755 unmountOnExit: false
16756};
16757var TabContent_contextTypes = {
16758 $bs_tabContainer: prop_types_default.a.shape({
16759 activeKey: prop_types_default.a.any
16760 })
16761};
16762var 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
16775var TabContent_TabContent =
16776/*#__PURE__*/
16777function (_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))); // Active entries in state will be `null` unless `animation` is set. Need
16786 // to track active child in case keys swap and the active child changes
16787 // but the active key does not.
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 } // It's possible that this child should be transitioning out.
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 // This might happen as everything is unmounting.
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
16900TabContent_TabContent.propTypes = TabContent_propTypes;
16901TabContent_TabContent.defaultProps = TabContent_defaultProps;
16902TabContent_TabContent.contextTypes = TabContent_contextTypes;
16903TabContent_TabContent.childContextTypes = TabContent_childContextTypes;
16904/* harmony default export */ var src_TabContent = (bootstrapUtils_bsClass('tab', TabContent_TabContent));
16905// CONCATENATED MODULE: ./src/TabPane.js
16906
16907
16908
16909
16910var TabPane_jsxFileName = "/Users/jason/src/react-bootstrap/src/TabPane.js";
16911
16912
16913
16914
16915
16916
16917
16918
16919var TabPane_propTypes = {
16920 /**
16921 * Uniquely identify the `<TabPane>` among its siblings.
16922 */
16923 eventKey: prop_types_default.a.any,
16924
16925 /**
16926 * Use animation when showing or hiding `<TabPane>`s. Use `false` to disable,
16927 * `true` to enable the default `<Fade>` animation or
16928 * a react-transition-group v2 `<Transition/>` component.
16929 */
16930 animation: prop_types_default.a.oneOfType([prop_types_default.a.bool, elementType_default.a]),
16931
16932 /** @private * */
16933 id: prop_types_default.a.string,
16934
16935 /** @private * */
16936 'aria-labelledby': prop_types_default.a.string,
16937
16938 /**
16939 * If not explicitly specified and rendered in the context of a
16940 * `<TabContent>`, the `bsClass` of the `<TabContent>` suffixed by `-pane`.
16941 * If otherwise not explicitly specified, `tab-pane`.
16942 */
16943 bsClass: prop_types_default.a.string,
16944
16945 /**
16946 * Transition onEnter callback when animation is not `false`
16947 */
16948 onEnter: prop_types_default.a.func,
16949
16950 /**
16951 * Transition onEntering callback when animation is not `false`
16952 */
16953 onEntering: prop_types_default.a.func,
16954
16955 /**
16956 * Transition onEntered callback when animation is not `false`
16957 */
16958 onEntered: prop_types_default.a.func,
16959
16960 /**
16961 * Transition onExit callback when animation is not `false`
16962 */
16963 onExit: prop_types_default.a.func,
16964
16965 /**
16966 * Transition onExiting callback when animation is not `false`
16967 */
16968 onExiting: prop_types_default.a.func,
16969
16970 /**
16971 * Transition onExited callback when animation is not `false`
16972 */
16973 onExited: prop_types_default.a.func,
16974
16975 /**
16976 * Wait until the first "enter" transition to mount the tab (add it to the DOM)
16977 */
16978 mountOnEnter: prop_types_default.a.bool,
16979
16980 /**
16981 * Unmount the tab (remove it from the DOM) when it is no longer visible
16982 */
16983 unmountOnExit: prop_types_default.a.bool
16984};
16985var 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 * We override the `<TabContainer>` context so `<Nav>`s in `<TabPane>`s don't
17003 * conflict with the top level one.
17004 */
17005
17006var TabPane_childContextTypes = {
17007 $bs_tabContainer: prop_types_default.a.oneOf([null])
17008};
17009
17010var TabPane_TabPane =
17011/*#__PURE__*/
17012function (_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 // In lieu of the action event firing.
17036 this.handleEnter();
17037 }
17038 };
17039
17040 _proto.componentDidUpdate = function componentDidUpdate() {
17041 if (this.in) {
17042 if (!this.shouldBeIn()) {
17043 // We shouldn't be active any more. Notify the parent.
17044 this.handleExited();
17045 }
17046 } else if (this.shouldBeIn()) {
17047 // We are the active child. Notify the parent.
17048 this.handleEnter();
17049 }
17050 };
17051
17052 _proto.componentWillUnmount = function componentWillUnmount() {
17053 if (this.in) {
17054 // In lieu of the action event firing.
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
17183TabPane_TabPane.propTypes = TabPane_propTypes;
17184TabPane_TabPane.contextTypes = TabPane_contextTypes;
17185TabPane_TabPane.childContextTypes = TabPane_childContextTypes;
17186/* harmony default export */ var src_TabPane = (bootstrapUtils_bsClass('tab-pane', TabPane_TabPane));
17187// CONCATENATED MODULE: ./src/Tab.js
17188
17189
17190var Tab_jsxFileName = "/Users/jason/src/react-bootstrap/src/Tab.js";
17191
17192
17193
17194
17195
17196
17197var Tab_propTypes = _extends({}, src_TabPane.propTypes, {
17198 disabled: prop_types_default.a.bool,
17199 title: prop_types_default.a.node,
17200
17201 /**
17202 * tabClassName is used as className for the associated NavItem
17203 */
17204 tabClassName: prop_types_default.a.string
17205});
17206
17207var Tab_Tab =
17208/*#__PURE__*/
17209function (_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); // These props are for the parent `<Tabs>` rather than the `<TabPane>`.
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
17237Tab_Tab.propTypes = Tab_propTypes;
17238Tab_Tab.Container = src_TabContainer;
17239Tab_Tab.Content = src_TabContent;
17240Tab_Tab.Pane = src_TabPane;
17241/* harmony default export */ var src_Tab = (Tab_Tab);
17242// CONCATENATED MODULE: ./src/Table.js
17243
17244
17245
17246var Table_jsxFileName = "/Users/jason/src/react-bootstrap/src/Table.js";
17247
17248
17249
17250
17251var 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};
17258var Table_defaultProps = {
17259 bordered: false,
17260 condensed: false,
17261 hover: false,
17262 responsive: false,
17263 striped: false
17264};
17265
17266var Table_Table =
17267/*#__PURE__*/
17268function (_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
17321Table_Table.propTypes = Table_propTypes;
17322Table_Table.defaultProps = Table_defaultProps;
17323/* harmony default export */ var src_Table = (bootstrapUtils_bsClass('table', Table_Table));
17324// CONCATENATED MODULE: ./src/Tabs.js
17325
17326
17327
17328var Tabs_jsxFileName = "/Users/jason/src/react-bootstrap/src/Tabs.js";
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340var Tabs_TabContainer = src_TabContainer.ControlledComponent;
17341var Tabs_propTypes = {
17342 /**
17343 * Mark the Tab with a matching `eventKey` as active.
17344 *
17345 * @controllable onSelect
17346 */
17347 activeKey: prop_types_default.a.any,
17348
17349 /**
17350 * Navigation style
17351 */
17352 bsStyle: prop_types_default.a.oneOf(['tabs', 'pills']),
17353
17354 /**
17355 * Sets a default animation strategy. Use `false` to disable, `true`
17356 * to enable the default `<Fade>` animation, or a react-transition-group
17357 * v2 `<Transition/>` component.
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 * Callback fired when a Tab is selected.
17364 *
17365 * ```js
17366 * function (
17367 * Any eventKey,
17368 * SyntheticEvent event?
17369 * )
17370 * ```
17371 *
17372 * @controllable activeKey
17373 */
17374 onSelect: prop_types_default.a.func,
17375
17376 /**
17377 * Wait until the first "enter" transition to mount tabs (add them to the DOM)
17378 */
17379 mountOnEnter: prop_types_default.a.bool,
17380
17381 /**
17382 * Unmount tabs (remove it from the DOM) when it is no longer visible
17383 */
17384 unmountOnExit: prop_types_default.a.bool
17385};
17386var Tabs_defaultProps = {
17387 bsStyle: 'tabs',
17388 animation: true,
17389 mountOnEnter: false,
17390 unmountOnExit: false
17391};
17392
17393function 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
17403var Tabs_Tabs =
17404/*#__PURE__*/
17405function (_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
17492Tabs_Tabs.propTypes = Tabs_propTypes;
17493Tabs_Tabs.defaultProps = Tabs_defaultProps;
17494bootstrapUtils_bsClass('tab', Tabs_Tabs);
17495/* harmony default export */ var src_Tabs = (uncontrollable_default()(Tabs_Tabs, {
17496 activeKey: 'onSelect'
17497}));
17498// CONCATENATED MODULE: ./src/Thumbnail.js
17499
17500
17501
17502var Thumbnail_jsxFileName = "/Users/jason/src/react-bootstrap/src/Thumbnail.js";
17503
17504/* eslint-disable jsx-a11y/alt-text */
17505
17506
17507
17508
17509
17510var Thumbnail_propTypes = {
17511 /**
17512 * src property that is passed down to the image inside this component
17513 */
17514 src: prop_types_default.a.string,
17515
17516 /**
17517 * alt property that is passed down to the image inside this component
17518 */
17519 alt: prop_types_default.a.string,
17520
17521 /**
17522 * href property that is passed down to the image inside this component
17523 */
17524 href: prop_types_default.a.string,
17525
17526 /**
17527 * onError callback that is passed down to the image inside this component
17528 */
17529 onError: prop_types_default.a.func,
17530
17531 /**
17532 * onLoad callback that is passed down to the image inside this component
17533 */
17534 onLoad: prop_types_default.a.func
17535};
17536
17537var Thumbnail_Thumbnail =
17538/*#__PURE__*/
17539function (_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
17595Thumbnail_Thumbnail.propTypes = Thumbnail_propTypes;
17596/* harmony default export */ var src_Thumbnail = (bootstrapUtils_bsClass('thumbnail', Thumbnail_Thumbnail));
17597// CONCATENATED MODULE: ./src/ToggleButton.js
17598
17599
17600
17601var ToggleButton_jsxFileName = "/Users/jason/src/react-bootstrap/src/ToggleButton.js";
17602
17603
17604
17605var ToggleButton_propTypes = {
17606 /**
17607 * The `<input>` `type`
17608 * @type {[type]}
17609 */
17610 type: prop_types_default.a.oneOf(['checkbox', 'radio']),
17611
17612 /**
17613 * The HTML input name, used to group like checkboxes or radio buttons together
17614 * semantically
17615 */
17616 name: prop_types_default.a.string,
17617
17618 /**
17619 * The checked state of the input, managed by `<ToggleButtonGroup>`` automatically
17620 */
17621 checked: prop_types_default.a.bool,
17622
17623 /**
17624 * The disabled state of both the label and input
17625 */
17626 disabled: prop_types_default.a.bool,
17627
17628 /**
17629 * [onChange description]
17630 */
17631 onChange: prop_types_default.a.func,
17632
17633 /**
17634 * The value of the input, and unique identifier in the ToggleButtonGroup
17635 */
17636 value: prop_types_default.a.any.isRequired
17637};
17638
17639var ToggleButton_ToggleButton =
17640/*#__PURE__*/
17641function (_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
17688ToggleButton_ToggleButton.propTypes = ToggleButton_propTypes;
17689/* harmony default export */ var src_ToggleButton = (ToggleButton_ToggleButton);
17690// CONCATENATED MODULE: ./src/ToggleButtonGroup.js
17691
17692
17693
17694var ToggleButtonGroup_jsxFileName = "/Users/jason/src/react-bootstrap/src/ToggleButtonGroup.js";
17695
17696
17697
17698
17699
17700
17701
17702
17703var ToggleButtonGroup_propTypes = {
17704 /**
17705 * An HTML `<input>` name for each child button.
17706 *
17707 * __Required if `type` is set to `'radio'`__
17708 */
17709 name: prop_types_default.a.string,
17710
17711 /**
17712 * The value, or array of values, of the active (pressed) buttons
17713 *
17714 * @controllable onChange
17715 */
17716 value: prop_types_default.a.any,
17717
17718 /**
17719 * Callback fired when a button is pressed, depending on whether the `type`
17720 * is `'radio'` or `'checkbox'`, `onChange` will be called with the value or
17721 * array of active values
17722 *
17723 * @controllable values
17724 */
17725 onChange: prop_types_default.a.func,
17726
17727 /**
17728 * The input `type` of the rendered buttons, determines the toggle behavior
17729 * of the buttons
17730 */
17731 type: prop_types_default.a.oneOf(['checkbox', 'radio']).isRequired
17732};
17733var ToggleButtonGroup_defaultProps = {
17734 type: 'radio'
17735};
17736
17737var ToggleButtonGroup_ToggleButtonGroup =
17738/*#__PURE__*/
17739function (_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; // the data attribute is required b/c twbs css uses it in the selector
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
17819ToggleButtonGroup_ToggleButtonGroup.propTypes = ToggleButtonGroup_propTypes;
17820ToggleButtonGroup_ToggleButtonGroup.defaultProps = ToggleButtonGroup_defaultProps;
17821var UncontrolledToggleButtonGroup = uncontrollable_default()(ToggleButtonGroup_ToggleButtonGroup, {
17822 value: 'onChange'
17823});
17824UncontrolledToggleButtonGroup.Button = src_ToggleButton;
17825/* harmony default export */ var src_ToggleButtonGroup = (UncontrolledToggleButtonGroup);
17826// CONCATENATED MODULE: ./src/Tooltip.js
17827
17828
17829
17830var Tooltip_jsxFileName = "/Users/jason/src/react-bootstrap/src/Tooltip.js";
17831
17832
17833
17834
17835
17836var Tooltip_propTypes = {
17837 /**
17838 * An html id attribute, necessary for accessibility
17839 * @type {string|number}
17840 * @required
17841 */
17842 id: isRequiredForA11y_default()(prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.number])),
17843
17844 /**
17845 * Sets the direction the Tooltip is positioned towards.
17846 */
17847 placement: prop_types_default.a.oneOf(['top', 'right', 'bottom', 'left']),
17848
17849 /**
17850 * The "top" position value for the Tooltip.
17851 */
17852 positionTop: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
17853
17854 /**
17855 * The "left" position value for the Tooltip.
17856 */
17857 positionLeft: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
17858
17859 /**
17860 * The "top" position value for the Tooltip arrow.
17861 */
17862 arrowOffsetTop: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
17863
17864 /**
17865 * The "left" position value for the Tooltip arrow.
17866 */
17867 arrowOffsetLeft: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string])
17868};
17869var Tooltip_defaultProps = {
17870 placement: 'right'
17871};
17872
17873var Tooltip_Tooltip =
17874/*#__PURE__*/
17875function (_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
17943Tooltip_Tooltip.propTypes = Tooltip_propTypes;
17944Tooltip_Tooltip.defaultProps = Tooltip_defaultProps;
17945/* harmony default export */ var src_Tooltip = (bootstrapUtils_bsClass('tooltip', Tooltip_Tooltip));
17946// CONCATENATED MODULE: ./src/Well.js
17947
17948
17949
17950var Well_jsxFileName = "/Users/jason/src/react-bootstrap/src/Well.js";
17951
17952
17953
17954
17955
17956var Well_Well =
17957/*#__PURE__*/
17958function (_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/* harmony default export */ var src_Well = (bootstrapUtils_bsClass('well', bsSizes([Size.LARGE, Size.SMALL], Well_Well)));
17991// CONCATENATED MODULE: ./src/utils/index.js
17992
17993
17994
17995
17996
17997
17998// CONCATENATED MODULE: ./src/index.js
17999/* concated harmony reexport Accordion */__webpack_require__.d(__webpack_exports__, "Accordion", function() { return src_Accordion; });
18000/* concated harmony reexport Alert */__webpack_require__.d(__webpack_exports__, "Alert", function() { return src_Alert; });
18001/* concated harmony reexport Badge */__webpack_require__.d(__webpack_exports__, "Badge", function() { return src_Badge; });
18002/* concated harmony reexport Breadcrumb */__webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return src_Breadcrumb; });
18003/* concated harmony reexport BreadcrumbItem */__webpack_require__.d(__webpack_exports__, "BreadcrumbItem", function() { return src_BreadcrumbItem; });
18004/* concated harmony reexport Button */__webpack_require__.d(__webpack_exports__, "Button", function() { return src_Button; });
18005/* concated harmony reexport ButtonGroup */__webpack_require__.d(__webpack_exports__, "ButtonGroup", function() { return src_ButtonGroup; });
18006/* concated harmony reexport ButtonToolbar */__webpack_require__.d(__webpack_exports__, "ButtonToolbar", function() { return src_ButtonToolbar; });
18007/* concated harmony reexport Carousel */__webpack_require__.d(__webpack_exports__, "Carousel", function() { return src_Carousel; });
18008/* concated harmony reexport CarouselItem */__webpack_require__.d(__webpack_exports__, "CarouselItem", function() { return src_CarouselItem; });
18009/* concated harmony reexport Checkbox */__webpack_require__.d(__webpack_exports__, "Checkbox", function() { return src_Checkbox; });
18010/* concated harmony reexport Clearfix */__webpack_require__.d(__webpack_exports__, "Clearfix", function() { return src_Clearfix; });
18011/* concated harmony reexport CloseButton */__webpack_require__.d(__webpack_exports__, "CloseButton", function() { return src_CloseButton; });
18012/* concated harmony reexport ControlLabel */__webpack_require__.d(__webpack_exports__, "ControlLabel", function() { return src_ControlLabel; });
18013/* concated harmony reexport Col */__webpack_require__.d(__webpack_exports__, "Col", function() { return src_Col; });
18014/* concated harmony reexport Collapse */__webpack_require__.d(__webpack_exports__, "Collapse", function() { return src_Collapse; });
18015/* concated harmony reexport Dropdown */__webpack_require__.d(__webpack_exports__, "Dropdown", function() { return src_Dropdown; });
18016/* concated harmony reexport DropdownButton */__webpack_require__.d(__webpack_exports__, "DropdownButton", function() { return src_DropdownButton; });
18017/* concated harmony reexport Fade */__webpack_require__.d(__webpack_exports__, "Fade", function() { return src_Fade; });
18018/* concated harmony reexport Form */__webpack_require__.d(__webpack_exports__, "Form", function() { return src_Form; });
18019/* concated harmony reexport FormControl */__webpack_require__.d(__webpack_exports__, "FormControl", function() { return src_FormControl; });
18020/* concated harmony reexport FormGroup */__webpack_require__.d(__webpack_exports__, "FormGroup", function() { return src_FormGroup; });
18021/* concated harmony reexport Glyphicon */__webpack_require__.d(__webpack_exports__, "Glyphicon", function() { return src_Glyphicon; });
18022/* concated harmony reexport Grid */__webpack_require__.d(__webpack_exports__, "Grid", function() { return src_Grid; });
18023/* concated harmony reexport HelpBlock */__webpack_require__.d(__webpack_exports__, "HelpBlock", function() { return src_HelpBlock; });
18024/* concated harmony reexport Image */__webpack_require__.d(__webpack_exports__, "Image", function() { return src_Image; });
18025/* concated harmony reexport InputGroup */__webpack_require__.d(__webpack_exports__, "InputGroup", function() { return src_InputGroup; });
18026/* concated harmony reexport Jumbotron */__webpack_require__.d(__webpack_exports__, "Jumbotron", function() { return src_Jumbotron; });
18027/* concated harmony reexport Label */__webpack_require__.d(__webpack_exports__, "Label", function() { return src_Label; });
18028/* concated harmony reexport ListGroup */__webpack_require__.d(__webpack_exports__, "ListGroup", function() { return src_ListGroup; });
18029/* concated harmony reexport ListGroupItem */__webpack_require__.d(__webpack_exports__, "ListGroupItem", function() { return src_ListGroupItem; });
18030/* concated harmony reexport Media */__webpack_require__.d(__webpack_exports__, "Media", function() { return src_Media; });
18031/* concated harmony reexport MenuItem */__webpack_require__.d(__webpack_exports__, "MenuItem", function() { return src_MenuItem; });
18032/* concated harmony reexport Modal */__webpack_require__.d(__webpack_exports__, "Modal", function() { return src_Modal; });
18033/* concated harmony reexport ModalBody */__webpack_require__.d(__webpack_exports__, "ModalBody", function() { return src_ModalBody; });
18034/* concated harmony reexport ModalDialog */__webpack_require__.d(__webpack_exports__, "ModalDialog", function() { return src_ModalDialog; });
18035/* concated harmony reexport ModalFooter */__webpack_require__.d(__webpack_exports__, "ModalFooter", function() { return src_ModalFooter; });
18036/* concated harmony reexport ModalHeader */__webpack_require__.d(__webpack_exports__, "ModalHeader", function() { return src_ModalHeader; });
18037/* concated harmony reexport ModalTitle */__webpack_require__.d(__webpack_exports__, "ModalTitle", function() { return src_ModalTitle; });
18038/* concated harmony reexport Nav */__webpack_require__.d(__webpack_exports__, "Nav", function() { return src_Nav; });
18039/* concated harmony reexport Navbar */__webpack_require__.d(__webpack_exports__, "Navbar", function() { return src_Navbar; });
18040/* concated harmony reexport NavbarBrand */__webpack_require__.d(__webpack_exports__, "NavbarBrand", function() { return src_NavbarBrand; });
18041/* concated harmony reexport NavDropdown */__webpack_require__.d(__webpack_exports__, "NavDropdown", function() { return src_NavDropdown; });
18042/* concated harmony reexport NavItem */__webpack_require__.d(__webpack_exports__, "NavItem", function() { return src_NavItem; });
18043/* concated harmony reexport Overlay */__webpack_require__.d(__webpack_exports__, "Overlay", function() { return src_Overlay; });
18044/* concated harmony reexport OverlayTrigger */__webpack_require__.d(__webpack_exports__, "OverlayTrigger", function() { return src_OverlayTrigger; });
18045/* concated harmony reexport PageHeader */__webpack_require__.d(__webpack_exports__, "PageHeader", function() { return src_PageHeader; });
18046/* concated harmony reexport PageItem */__webpack_require__.d(__webpack_exports__, "PageItem", function() { return PageItem; });
18047/* concated harmony reexport Pager */__webpack_require__.d(__webpack_exports__, "Pager", function() { return src_Pager; });
18048/* concated harmony reexport Pagination */__webpack_require__.d(__webpack_exports__, "Pagination", function() { return src_Pagination; });
18049/* concated harmony reexport Panel */__webpack_require__.d(__webpack_exports__, "Panel", function() { return src_Panel; });
18050/* concated harmony reexport PanelGroup */__webpack_require__.d(__webpack_exports__, "PanelGroup", function() { return src_PanelGroup; });
18051/* concated harmony reexport Popover */__webpack_require__.d(__webpack_exports__, "Popover", function() { return src_Popover; });
18052/* concated harmony reexport ProgressBar */__webpack_require__.d(__webpack_exports__, "ProgressBar", function() { return src_ProgressBar; });
18053/* concated harmony reexport Radio */__webpack_require__.d(__webpack_exports__, "Radio", function() { return src_Radio; });
18054/* concated harmony reexport ResponsiveEmbed */__webpack_require__.d(__webpack_exports__, "ResponsiveEmbed", function() { return src_ResponsiveEmbed; });
18055/* concated harmony reexport Row */__webpack_require__.d(__webpack_exports__, "Row", function() { return src_Row; });
18056/* concated harmony reexport SafeAnchor */__webpack_require__.d(__webpack_exports__, "SafeAnchor", function() { return src_SafeAnchor; });
18057/* concated harmony reexport SplitButton */__webpack_require__.d(__webpack_exports__, "SplitButton", function() { return src_SplitButton; });
18058/* concated harmony reexport Tab */__webpack_require__.d(__webpack_exports__, "Tab", function() { return src_Tab; });
18059/* concated harmony reexport TabContainer */__webpack_require__.d(__webpack_exports__, "TabContainer", function() { return src_TabContainer; });
18060/* concated harmony reexport TabContent */__webpack_require__.d(__webpack_exports__, "TabContent", function() { return src_TabContent; });
18061/* concated harmony reexport Table */__webpack_require__.d(__webpack_exports__, "Table", function() { return src_Table; });
18062/* concated harmony reexport TabPane */__webpack_require__.d(__webpack_exports__, "TabPane", function() { return src_TabPane; });
18063/* concated harmony reexport Tabs */__webpack_require__.d(__webpack_exports__, "Tabs", function() { return src_Tabs; });
18064/* concated harmony reexport Thumbnail */__webpack_require__.d(__webpack_exports__, "Thumbnail", function() { return src_Thumbnail; });
18065/* concated harmony reexport ToggleButton */__webpack_require__.d(__webpack_exports__, "ToggleButton", function() { return src_ToggleButton; });
18066/* concated harmony reexport ToggleButtonGroup */__webpack_require__.d(__webpack_exports__, "ToggleButtonGroup", function() { return src_ToggleButtonGroup; });
18067/* concated harmony reexport Tooltip */__webpack_require__.d(__webpack_exports__, "Tooltip", function() { return src_Tooltip; });
18068/* concated harmony reexport Well */__webpack_require__.d(__webpack_exports__, "Well", function() { return src_Well; });
18069/* concated harmony reexport utils */__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